pixel-react 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
package/lib/index.js CHANGED
@@ -6067,7 +6067,7 @@ function createFormControl(props = {}) {
6067
6067
  timer = setTimeout(callback, wait);
6068
6068
  };
6069
6069
  const _updateValid = async (shouldUpdateValid) => {
6070
- if (!props.disabled && (_proxyFormState.isValid || shouldUpdateValid)) {
6070
+ if (!_options.disabled && (_proxyFormState.isValid || shouldUpdateValid)) {
6071
6071
  const isValid = _options.resolver
6072
6072
  ? isEmptyObject((await _executeSchema()).errors)
6073
6073
  : await executeBuiltInValidation(_fields, true);
@@ -6079,7 +6079,7 @@ function createFormControl(props = {}) {
6079
6079
  }
6080
6080
  };
6081
6081
  const _updateIsValidating = (names, isValidating) => {
6082
- if (!props.disabled &&
6082
+ if (!_options.disabled &&
6083
6083
  (_proxyFormState.isValidating || _proxyFormState.validatingFields)) {
6084
6084
  (names || Array.from(_names.mount)).forEach((name) => {
6085
6085
  if (name) {
@@ -6095,7 +6095,7 @@ function createFormControl(props = {}) {
6095
6095
  }
6096
6096
  };
6097
6097
  const _updateFieldArray = (name, values = [], method, args, shouldSetValues = true, shouldUpdateFieldsAndState = true) => {
6098
- if (args && method && !props.disabled) {
6098
+ if (args && method && !_options.disabled) {
6099
6099
  _state.action = true;
6100
6100
  if (shouldUpdateFieldsAndState && Array.isArray(get(_fields, name))) {
6101
6101
  const fieldValues = method(get(_fields, name), args.argA, args.argB);
@@ -6159,7 +6159,7 @@ function createFormControl(props = {}) {
6159
6159
  const output = {
6160
6160
  name,
6161
6161
  };
6162
- if (!props.disabled) {
6162
+ if (!_options.disabled) {
6163
6163
  const disabledField = !!(get(_fields, name) &&
6164
6164
  get(_fields, name)._f &&
6165
6165
  get(_fields, name)._f.disabled);
@@ -6295,7 +6295,7 @@ function createFormControl(props = {}) {
6295
6295
  }
6296
6296
  _names.unMount = new Set();
6297
6297
  };
6298
- const _getDirty = (name, data) => !props.disabled &&
6298
+ const _getDirty = (name, data) => !_options.disabled &&
6299
6299
  (name && data && set(_formValues, name, data),
6300
6300
  !deepEqual(getValues(), _defaultValues));
6301
6301
  const _getWatch = (names, defaultValue, isGlobal) => generateWatchOutput(names, _names, {
@@ -6611,7 +6611,7 @@ function createFormControl(props = {}) {
6611
6611
  };
6612
6612
  const register = (name, options = {}) => {
6613
6613
  let field = get(_fields, name);
6614
- const disabledIsDefined = isBoolean(options.disabled) || isBoolean(props.disabled);
6614
+ const disabledIsDefined = isBoolean(options.disabled) || isBoolean(_options.disabled);
6615
6615
  set(_fields, name, {
6616
6616
  ...(field || {}),
6617
6617
  _f: {
@@ -6627,7 +6627,7 @@ function createFormControl(props = {}) {
6627
6627
  field,
6628
6628
  disabled: isBoolean(options.disabled)
6629
6629
  ? options.disabled
6630
- : props.disabled,
6630
+ : _options.disabled,
6631
6631
  name,
6632
6632
  value: options.value,
6633
6633
  });
@@ -6637,7 +6637,7 @@ function createFormControl(props = {}) {
6637
6637
  }
6638
6638
  return {
6639
6639
  ...(disabledIsDefined
6640
- ? { disabled: options.disabled || props.disabled }
6640
+ ? { disabled: options.disabled || _options.disabled }
6641
6641
  : {}),
6642
6642
  ...(_options.progressive
6643
6643
  ? {
@@ -6721,6 +6721,12 @@ function createFormControl(props = {}) {
6721
6721
  e.preventDefault && e.preventDefault();
6722
6722
  e.persist && e.persist();
6723
6723
  }
6724
+ if (_options.disabled) {
6725
+ if (onInvalid) {
6726
+ await onInvalid({ ..._formState.errors }, e);
6727
+ }
6728
+ return;
6729
+ }
6724
6730
  let fieldValues = cloneObject(_formValues);
6725
6731
  _subjects.state.next({
6726
6732
  isSubmitting: true,
@@ -6899,7 +6905,9 @@ function createFormControl(props = {}) {
6899
6905
  : fieldReference.ref;
6900
6906
  if (fieldRef.focus) {
6901
6907
  fieldRef.focus();
6902
- options.shouldSelect && fieldRef.select();
6908
+ options.shouldSelect &&
6909
+ isFunction(fieldRef.select) &&
6910
+ fieldRef.select();
6903
6911
  }
6904
6912
  }
6905
6913
  };
@@ -7100,11 +7108,6 @@ function useForm(props = {}) {
7100
7108
  values: control._getWatch(),
7101
7109
  });
7102
7110
  }, [props.shouldUnregister, control]);
7103
- React.useEffect(() => {
7104
- if (_formControl.current) {
7105
- _formControl.current.watch = _formControl.current.watch.bind({});
7106
- }
7107
- }, [formState]);
7108
7111
  _formControl.current.formState = getProxyFormState(formState, control);
7109
7112
  return _formControl.current;
7110
7113
  }
@@ -21461,9 +21464,12 @@ const PieChart = ({
21461
21464
  var css_248z$5 = ".ff-app-header {\n display: flex;\n justify-content: space-between;\n background-color: var(--brand-color);\n padding-left: 8px;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n}\n.ff-app-header .ff-app-header-logo-icon {\n padding: 8px;\n height: 24px;\n}\n.ff-app-header .ff-app-header-nav-bar {\n display: flex;\n align-items: center;\n background-color: var(--brand-color);\n transform: translateY(12px);\n border-radius: 20px;\n padding: 5px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items {\n display: flex;\n align-items: center;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item {\n margin-left: 8px;\n color: var(--ff-header-text-color);\n cursor: pointer;\n display: flex;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item--selected {\n padding: 3px;\n background-color: var(--primary-icon-color);\n border-radius: 20px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item--selected .ff-app-header-nav-bar-item-label {\n background-color: var(--brand-color);\n border-radius: 20px;\n padding: 4px 8px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container {\n display: flex;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-nav-bar-submenu-item {\n color: var(--ff-header-submenu-text-color);\n align-content: center;\n padding-left: 8px;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-nav-bar-submenu-item--selected {\n color: var(--ff-header-submenu-highlight-text-color);\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-nav-bar-items .ff-app-header-nav-bar-item .ff-app-header-submenu-container .ff-app-header-quickmenu-container {\n display: flex;\n align-items: center;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-more-icon svg {\n cursor: pointer;\n}\n.ff-app-header .ff-app-header-nav-bar .ff-app-header-more-icon svg path {\n fill: var(--primary-icon-color);\n}\n.ff-app-header .ff-app-header-right-content {\n height: 24px;\n padding: 8px;\n}";
21462
21465
  styleInject(css_248z$5);
21463
21466
 
21467
+ // import AllProjectsDropdown from '../AllProjectsDropdown';
21464
21468
  const AppHeader = ({
21465
21469
  logoIconName = 'fireflink_icon',
21470
+ leftContent,
21466
21471
  rightContent,
21472
+ projectsList,
21467
21473
  appHeaderMenuItems,
21468
21474
  selectedMenu,
21469
21475
  selectedSubMenu,
@@ -21483,35 +21489,36 @@ const AppHeader = ({
21483
21489
  height: 24,
21484
21490
  width: 21
21485
21491
  })
21492
+ }), leftContent && jsxRuntime.jsx("div", {
21493
+ className: "ff-app-header-left-content",
21494
+ children: leftContent
21486
21495
  }), jsxRuntime.jsxs("div", {
21487
21496
  className: "ff-app-header-nav-bar",
21488
- children: [jsxRuntime.jsx("div", {
21489
- children: "All projects"
21490
- }), jsxRuntime.jsx("div", {
21497
+ children: [checkEmpty(projectsList) && jsxRuntime.jsx("div", {}), jsxRuntime.jsx("div", {
21491
21498
  className: "ff-app-header-nav-bar-items fontSm",
21492
21499
  children: appHeaderMenuItems.map(menuItem => {
21493
21500
  return jsxRuntime.jsxs("div", {
21494
21501
  className: classNames('ff-app-header-nav-bar-item', {
21495
- ['ff-app-header-nav-bar-item--selected']: menuItem.menuName === selectedMenu
21502
+ ['ff-app-header-nav-bar-item--selected']: menuItem.menuLabel === selectedMenu
21496
21503
  }),
21497
- onClick: () => onMenuClick(menuItem.menuName),
21504
+ onClick: () => onMenuClick(menuItem),
21498
21505
  children: [jsxRuntime.jsx(Typography, {
21499
21506
  as: "div",
21500
21507
  className: "ff-app-header-nav-bar-item-label",
21501
21508
  lineHeight: "18px",
21502
- children: menuItem.menuName
21503
- }), menuItem.menuName === selectedMenu && menuItem?.subMenuItems && menuItem.subMenuItems.map(subMenuItem => {
21509
+ children: menuItem.menuLabel
21510
+ }), menuItem.menuLabel === selectedMenu && menuItem?.subMenuItems && menuItem.subMenuItems.map(subMenuItem => {
21504
21511
  return jsxRuntime.jsxs("div", {
21505
- onClick: () => onSubMenuClick(subMenuItem.subMenuName),
21512
+ onClick: () => onSubMenuClick(subMenuItem),
21506
21513
  className: "ff-app-header-submenu-container",
21507
21514
  children: [jsxRuntime.jsx(Typography, {
21508
21515
  as: "div",
21509
21516
  className: classNames('ff-app-header-nav-bar-submenu-item', {
21510
- ['ff-app-header-nav-bar-submenu-item--selected']: subMenuItem.subMenuName === selectedSubMenu
21517
+ ['ff-app-header-nav-bar-submenu-item--selected']: subMenuItem.subMenuLabel === selectedSubMenu
21511
21518
  }),
21512
21519
  lineHeight: "18px",
21513
- children: subMenuItem.subMenuName
21514
- }), subMenuItem.subMenuName === selectedSubMenu && subMenuItem?.quickMenuItems && jsxRuntime.jsxs("div", {
21520
+ children: subMenuItem.subMenuLabel
21521
+ }), subMenuItem.subMenuLabel === selectedSubMenu && subMenuItem?.quickMenuItems && jsxRuntime.jsxs("div", {
21515
21522
  className: "ff-app-header-quickmenu-container",
21516
21523
  children: [jsxRuntime.jsx("div", {
21517
21524
  children: jsxRuntime.jsx(Icon, {
@@ -21520,7 +21527,7 @@ const AppHeader = ({
21520
21527
  }), subMenuItem.quickMenuItems.map(quickMenuItem => {
21521
21528
  return jsxRuntime.jsx(jsxRuntime.Fragment, {
21522
21529
  children: jsxRuntime.jsx("div", {
21523
- onClick: () => onQuickMenuClick(quickMenuItem.quickMenuName),
21530
+ onClick: () => onQuickMenuClick(quickMenuItem),
21524
21531
  className: classNames('ff-app-header-nav-bar-quickmenu-item', {
21525
21532
  ['ff-app-header-nav-bar-quickmenu-item--selected']: quickMenuItem.quickMenuName === selectedQuickMenu
21526
21533
  }),
@@ -21533,9 +21540,9 @@ const AppHeader = ({
21533
21540
  });
21534
21541
  })]
21535
21542
  })]
21536
- }, subMenuItem.subMenuName);
21543
+ }, subMenuItem.subMenuLabel);
21537
21544
  })]
21538
- }, menuItem.menuName);
21545
+ }, menuItem.menuLabel);
21539
21546
  })
21540
21547
  }), jsxRuntime.jsx("div", {
21541
21548
  children: jsxRuntime.jsx(Icon, {
@@ -21543,7 +21550,7 @@ const AppHeader = ({
21543
21550
  className: "ff-app-header-more-icon"
21544
21551
  })
21545
21552
  })]
21546
- }), jsxRuntime.jsx("div", {
21553
+ }), rightContent && jsxRuntime.jsx("div", {
21547
21554
  className: "ff-app-header-right-content",
21548
21555
  children: rightContent
21549
21556
  })]
@@ -21837,9 +21844,9 @@ const DashboardDonutChart = ({
21837
21844
 
21838
21845
  var propTypes = {exports: {}};
21839
21846
 
21840
- var reactIs = {exports: {}};
21847
+ var reactIs$1 = {exports: {}};
21841
21848
 
21842
- var reactIs_production_min = {};
21849
+ var reactIs_production_min$1 = {};
21843
21850
 
21844
21851
  /** @license React v16.13.1
21845
21852
  * react-is.production.min.js
@@ -21849,10 +21856,10 @@ var reactIs_production_min = {};
21849
21856
  * This source code is licensed under the MIT license found in the
21850
21857
  * LICENSE file in the root directory of this source tree.
21851
21858
  */
21852
- var hasRequiredReactIs_production_min;
21853
- function requireReactIs_production_min() {
21854
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
21855
- hasRequiredReactIs_production_min = 1;
21859
+ var hasRequiredReactIs_production_min$1;
21860
+ function requireReactIs_production_min$1() {
21861
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
21862
+ hasRequiredReactIs_production_min$1 = 1;
21856
21863
  var b = "function" === typeof Symbol && Symbol.for,
21857
21864
  c = b ? Symbol.for("react.element") : 60103,
21858
21865
  d = b ? Symbol.for("react.portal") : 60106,
@@ -21905,64 +21912,64 @@ function requireReactIs_production_min() {
21905
21912
  function A(a) {
21906
21913
  return z(a) === m;
21907
21914
  }
21908
- reactIs_production_min.AsyncMode = l;
21909
- reactIs_production_min.ConcurrentMode = m;
21910
- reactIs_production_min.ContextConsumer = k;
21911
- reactIs_production_min.ContextProvider = h;
21912
- reactIs_production_min.Element = c;
21913
- reactIs_production_min.ForwardRef = n;
21914
- reactIs_production_min.Fragment = e;
21915
- reactIs_production_min.Lazy = t;
21916
- reactIs_production_min.Memo = r;
21917
- reactIs_production_min.Portal = d;
21918
- reactIs_production_min.Profiler = g;
21919
- reactIs_production_min.StrictMode = f;
21920
- reactIs_production_min.Suspense = p;
21921
- reactIs_production_min.isAsyncMode = function (a) {
21915
+ reactIs_production_min$1.AsyncMode = l;
21916
+ reactIs_production_min$1.ConcurrentMode = m;
21917
+ reactIs_production_min$1.ContextConsumer = k;
21918
+ reactIs_production_min$1.ContextProvider = h;
21919
+ reactIs_production_min$1.Element = c;
21920
+ reactIs_production_min$1.ForwardRef = n;
21921
+ reactIs_production_min$1.Fragment = e;
21922
+ reactIs_production_min$1.Lazy = t;
21923
+ reactIs_production_min$1.Memo = r;
21924
+ reactIs_production_min$1.Portal = d;
21925
+ reactIs_production_min$1.Profiler = g;
21926
+ reactIs_production_min$1.StrictMode = f;
21927
+ reactIs_production_min$1.Suspense = p;
21928
+ reactIs_production_min$1.isAsyncMode = function (a) {
21922
21929
  return A(a) || z(a) === l;
21923
21930
  };
21924
- reactIs_production_min.isConcurrentMode = A;
21925
- reactIs_production_min.isContextConsumer = function (a) {
21931
+ reactIs_production_min$1.isConcurrentMode = A;
21932
+ reactIs_production_min$1.isContextConsumer = function (a) {
21926
21933
  return z(a) === k;
21927
21934
  };
21928
- reactIs_production_min.isContextProvider = function (a) {
21935
+ reactIs_production_min$1.isContextProvider = function (a) {
21929
21936
  return z(a) === h;
21930
21937
  };
21931
- reactIs_production_min.isElement = function (a) {
21938
+ reactIs_production_min$1.isElement = function (a) {
21932
21939
  return "object" === typeof a && null !== a && a.$$typeof === c;
21933
21940
  };
21934
- reactIs_production_min.isForwardRef = function (a) {
21941
+ reactIs_production_min$1.isForwardRef = function (a) {
21935
21942
  return z(a) === n;
21936
21943
  };
21937
- reactIs_production_min.isFragment = function (a) {
21944
+ reactIs_production_min$1.isFragment = function (a) {
21938
21945
  return z(a) === e;
21939
21946
  };
21940
- reactIs_production_min.isLazy = function (a) {
21947
+ reactIs_production_min$1.isLazy = function (a) {
21941
21948
  return z(a) === t;
21942
21949
  };
21943
- reactIs_production_min.isMemo = function (a) {
21950
+ reactIs_production_min$1.isMemo = function (a) {
21944
21951
  return z(a) === r;
21945
21952
  };
21946
- reactIs_production_min.isPortal = function (a) {
21953
+ reactIs_production_min$1.isPortal = function (a) {
21947
21954
  return z(a) === d;
21948
21955
  };
21949
- reactIs_production_min.isProfiler = function (a) {
21956
+ reactIs_production_min$1.isProfiler = function (a) {
21950
21957
  return z(a) === g;
21951
21958
  };
21952
- reactIs_production_min.isStrictMode = function (a) {
21959
+ reactIs_production_min$1.isStrictMode = function (a) {
21953
21960
  return z(a) === f;
21954
21961
  };
21955
- reactIs_production_min.isSuspense = function (a) {
21962
+ reactIs_production_min$1.isSuspense = function (a) {
21956
21963
  return z(a) === p;
21957
21964
  };
21958
- reactIs_production_min.isValidElementType = function (a) {
21965
+ reactIs_production_min$1.isValidElementType = function (a) {
21959
21966
  return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
21960
21967
  };
21961
- reactIs_production_min.typeOf = z;
21962
- return reactIs_production_min;
21968
+ reactIs_production_min$1.typeOf = z;
21969
+ return reactIs_production_min$1;
21963
21970
  }
21964
21971
 
21965
- var reactIs_development = {};
21972
+ var reactIs_development$1 = {};
21966
21973
 
21967
21974
  /** @license React v16.13.1
21968
21975
  * react-is.development.js
@@ -21972,10 +21979,10 @@ var reactIs_development = {};
21972
21979
  * This source code is licensed under the MIT license found in the
21973
21980
  * LICENSE file in the root directory of this source tree.
21974
21981
  */
21975
- var hasRequiredReactIs_development;
21976
- function requireReactIs_development() {
21977
- if (hasRequiredReactIs_development) return reactIs_development;
21978
- hasRequiredReactIs_development = 1;
21982
+ var hasRequiredReactIs_development$1;
21983
+ function requireReactIs_development$1() {
21984
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
21985
+ hasRequiredReactIs_development$1 = 1;
21979
21986
  if (process.env.NODE_ENV !== "production") {
21980
21987
  (function () {
21981
21988
 
@@ -22102,49 +22109,49 @@ function requireReactIs_development() {
22102
22109
  function isSuspense(object) {
22103
22110
  return typeOf(object) === REACT_SUSPENSE_TYPE;
22104
22111
  }
22105
- reactIs_development.AsyncMode = AsyncMode;
22106
- reactIs_development.ConcurrentMode = ConcurrentMode;
22107
- reactIs_development.ContextConsumer = ContextConsumer;
22108
- reactIs_development.ContextProvider = ContextProvider;
22109
- reactIs_development.Element = Element;
22110
- reactIs_development.ForwardRef = ForwardRef;
22111
- reactIs_development.Fragment = Fragment;
22112
- reactIs_development.Lazy = Lazy;
22113
- reactIs_development.Memo = Memo;
22114
- reactIs_development.Portal = Portal;
22115
- reactIs_development.Profiler = Profiler;
22116
- reactIs_development.StrictMode = StrictMode;
22117
- reactIs_development.Suspense = Suspense;
22118
- reactIs_development.isAsyncMode = isAsyncMode;
22119
- reactIs_development.isConcurrentMode = isConcurrentMode;
22120
- reactIs_development.isContextConsumer = isContextConsumer;
22121
- reactIs_development.isContextProvider = isContextProvider;
22122
- reactIs_development.isElement = isElement;
22123
- reactIs_development.isForwardRef = isForwardRef;
22124
- reactIs_development.isFragment = isFragment;
22125
- reactIs_development.isLazy = isLazy;
22126
- reactIs_development.isMemo = isMemo;
22127
- reactIs_development.isPortal = isPortal;
22128
- reactIs_development.isProfiler = isProfiler;
22129
- reactIs_development.isStrictMode = isStrictMode;
22130
- reactIs_development.isSuspense = isSuspense;
22131
- reactIs_development.isValidElementType = isValidElementType;
22132
- reactIs_development.typeOf = typeOf;
22112
+ reactIs_development$1.AsyncMode = AsyncMode;
22113
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
22114
+ reactIs_development$1.ContextConsumer = ContextConsumer;
22115
+ reactIs_development$1.ContextProvider = ContextProvider;
22116
+ reactIs_development$1.Element = Element;
22117
+ reactIs_development$1.ForwardRef = ForwardRef;
22118
+ reactIs_development$1.Fragment = Fragment;
22119
+ reactIs_development$1.Lazy = Lazy;
22120
+ reactIs_development$1.Memo = Memo;
22121
+ reactIs_development$1.Portal = Portal;
22122
+ reactIs_development$1.Profiler = Profiler;
22123
+ reactIs_development$1.StrictMode = StrictMode;
22124
+ reactIs_development$1.Suspense = Suspense;
22125
+ reactIs_development$1.isAsyncMode = isAsyncMode;
22126
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
22127
+ reactIs_development$1.isContextConsumer = isContextConsumer;
22128
+ reactIs_development$1.isContextProvider = isContextProvider;
22129
+ reactIs_development$1.isElement = isElement;
22130
+ reactIs_development$1.isForwardRef = isForwardRef;
22131
+ reactIs_development$1.isFragment = isFragment;
22132
+ reactIs_development$1.isLazy = isLazy;
22133
+ reactIs_development$1.isMemo = isMemo;
22134
+ reactIs_development$1.isPortal = isPortal;
22135
+ reactIs_development$1.isProfiler = isProfiler;
22136
+ reactIs_development$1.isStrictMode = isStrictMode;
22137
+ reactIs_development$1.isSuspense = isSuspense;
22138
+ reactIs_development$1.isValidElementType = isValidElementType;
22139
+ reactIs_development$1.typeOf = typeOf;
22133
22140
  })();
22134
22141
  }
22135
- return reactIs_development;
22142
+ return reactIs_development$1;
22136
22143
  }
22137
22144
 
22138
- var hasRequiredReactIs;
22139
- function requireReactIs() {
22140
- if (hasRequiredReactIs) return reactIs.exports;
22141
- hasRequiredReactIs = 1;
22145
+ var hasRequiredReactIs$1;
22146
+ function requireReactIs$1() {
22147
+ if (hasRequiredReactIs$1) return reactIs$1.exports;
22148
+ hasRequiredReactIs$1 = 1;
22142
22149
  if (process.env.NODE_ENV === 'production') {
22143
- reactIs.exports = requireReactIs_production_min();
22150
+ reactIs$1.exports = requireReactIs_production_min$1();
22144
22151
  } else {
22145
- reactIs.exports = requireReactIs_development();
22152
+ reactIs$1.exports = requireReactIs_development$1();
22146
22153
  }
22147
- return reactIs.exports;
22154
+ return reactIs$1.exports;
22148
22155
  }
22149
22156
 
22150
22157
  /*
@@ -22359,7 +22366,7 @@ var hasRequiredFactoryWithTypeCheckers;
22359
22366
  function requireFactoryWithTypeCheckers() {
22360
22367
  if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
22361
22368
  hasRequiredFactoryWithTypeCheckers = 1;
22362
- var ReactIs = requireReactIs();
22369
+ var ReactIs = requireReactIs$1();
22363
22370
  var assign = requireObjectAssign();
22364
22371
  var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
22365
22372
  var has = /*@__PURE__*/requireHas();
@@ -22972,7 +22979,7 @@ function requirePropTypes() {
22972
22979
  if (hasRequiredPropTypes) return propTypes.exports;
22973
22980
  hasRequiredPropTypes = 1;
22974
22981
  if (process.env.NODE_ENV !== 'production') {
22975
- var ReactIs = requireReactIs();
22982
+ var ReactIs = requireReactIs$1();
22976
22983
 
22977
22984
  // By explicitly using `prop-types` you are opting into new development behavior.
22978
22985
  // http://fb.me/prop-types-in-prod
@@ -23207,6 +23214,316 @@ ReCAPTCHA.defaultProps = {
23207
23214
  badge: "bottomright"
23208
23215
  };
23209
23216
 
23217
+ var reactIs = {exports: {}};
23218
+
23219
+ var reactIs_production_min = {};
23220
+
23221
+ /** @license React v16.13.1
23222
+ * react-is.production.min.js
23223
+ *
23224
+ * Copyright (c) Facebook, Inc. and its affiliates.
23225
+ *
23226
+ * This source code is licensed under the MIT license found in the
23227
+ * LICENSE file in the root directory of this source tree.
23228
+ */
23229
+ var hasRequiredReactIs_production_min;
23230
+ function requireReactIs_production_min() {
23231
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
23232
+ hasRequiredReactIs_production_min = 1;
23233
+ var b = "function" === typeof Symbol && Symbol.for,
23234
+ c = b ? Symbol.for("react.element") : 60103,
23235
+ d = b ? Symbol.for("react.portal") : 60106,
23236
+ e = b ? Symbol.for("react.fragment") : 60107,
23237
+ f = b ? Symbol.for("react.strict_mode") : 60108,
23238
+ g = b ? Symbol.for("react.profiler") : 60114,
23239
+ h = b ? Symbol.for("react.provider") : 60109,
23240
+ k = b ? Symbol.for("react.context") : 60110,
23241
+ l = b ? Symbol.for("react.async_mode") : 60111,
23242
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
23243
+ n = b ? Symbol.for("react.forward_ref") : 60112,
23244
+ p = b ? Symbol.for("react.suspense") : 60113,
23245
+ q = b ? Symbol.for("react.suspense_list") : 60120,
23246
+ r = b ? Symbol.for("react.memo") : 60115,
23247
+ t = b ? Symbol.for("react.lazy") : 60116,
23248
+ v = b ? Symbol.for("react.block") : 60121,
23249
+ w = b ? Symbol.for("react.fundamental") : 60117,
23250
+ x = b ? Symbol.for("react.responder") : 60118,
23251
+ y = b ? Symbol.for("react.scope") : 60119;
23252
+ function z(a) {
23253
+ if ("object" === typeof a && null !== a) {
23254
+ var u = a.$$typeof;
23255
+ switch (u) {
23256
+ case c:
23257
+ switch (a = a.type, a) {
23258
+ case l:
23259
+ case m:
23260
+ case e:
23261
+ case g:
23262
+ case f:
23263
+ case p:
23264
+ return a;
23265
+ default:
23266
+ switch (a = a && a.$$typeof, a) {
23267
+ case k:
23268
+ case n:
23269
+ case t:
23270
+ case r:
23271
+ case h:
23272
+ return a;
23273
+ default:
23274
+ return u;
23275
+ }
23276
+ }
23277
+ case d:
23278
+ return u;
23279
+ }
23280
+ }
23281
+ }
23282
+ function A(a) {
23283
+ return z(a) === m;
23284
+ }
23285
+ reactIs_production_min.AsyncMode = l;
23286
+ reactIs_production_min.ConcurrentMode = m;
23287
+ reactIs_production_min.ContextConsumer = k;
23288
+ reactIs_production_min.ContextProvider = h;
23289
+ reactIs_production_min.Element = c;
23290
+ reactIs_production_min.ForwardRef = n;
23291
+ reactIs_production_min.Fragment = e;
23292
+ reactIs_production_min.Lazy = t;
23293
+ reactIs_production_min.Memo = r;
23294
+ reactIs_production_min.Portal = d;
23295
+ reactIs_production_min.Profiler = g;
23296
+ reactIs_production_min.StrictMode = f;
23297
+ reactIs_production_min.Suspense = p;
23298
+ reactIs_production_min.isAsyncMode = function (a) {
23299
+ return A(a) || z(a) === l;
23300
+ };
23301
+ reactIs_production_min.isConcurrentMode = A;
23302
+ reactIs_production_min.isContextConsumer = function (a) {
23303
+ return z(a) === k;
23304
+ };
23305
+ reactIs_production_min.isContextProvider = function (a) {
23306
+ return z(a) === h;
23307
+ };
23308
+ reactIs_production_min.isElement = function (a) {
23309
+ return "object" === typeof a && null !== a && a.$$typeof === c;
23310
+ };
23311
+ reactIs_production_min.isForwardRef = function (a) {
23312
+ return z(a) === n;
23313
+ };
23314
+ reactIs_production_min.isFragment = function (a) {
23315
+ return z(a) === e;
23316
+ };
23317
+ reactIs_production_min.isLazy = function (a) {
23318
+ return z(a) === t;
23319
+ };
23320
+ reactIs_production_min.isMemo = function (a) {
23321
+ return z(a) === r;
23322
+ };
23323
+ reactIs_production_min.isPortal = function (a) {
23324
+ return z(a) === d;
23325
+ };
23326
+ reactIs_production_min.isProfiler = function (a) {
23327
+ return z(a) === g;
23328
+ };
23329
+ reactIs_production_min.isStrictMode = function (a) {
23330
+ return z(a) === f;
23331
+ };
23332
+ reactIs_production_min.isSuspense = function (a) {
23333
+ return z(a) === p;
23334
+ };
23335
+ reactIs_production_min.isValidElementType = function (a) {
23336
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
23337
+ };
23338
+ reactIs_production_min.typeOf = z;
23339
+ return reactIs_production_min;
23340
+ }
23341
+
23342
+ var reactIs_development = {};
23343
+
23344
+ /** @license React v16.13.1
23345
+ * react-is.development.js
23346
+ *
23347
+ * Copyright (c) Facebook, Inc. and its affiliates.
23348
+ *
23349
+ * This source code is licensed under the MIT license found in the
23350
+ * LICENSE file in the root directory of this source tree.
23351
+ */
23352
+ var hasRequiredReactIs_development;
23353
+ function requireReactIs_development() {
23354
+ if (hasRequiredReactIs_development) return reactIs_development;
23355
+ hasRequiredReactIs_development = 1;
23356
+ if (process.env.NODE_ENV !== "production") {
23357
+ (function () {
23358
+
23359
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
23360
+ // nor polyfill, then a plain number is used for performance.
23361
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
23362
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
23363
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
23364
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
23365
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
23366
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
23367
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
23368
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
23369
+ // (unstable) APIs that have been removed. Can we remove the symbols?
23370
+
23371
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
23372
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
23373
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
23374
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
23375
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
23376
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
23377
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
23378
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
23379
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
23380
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
23381
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
23382
+ function isValidElementType(type) {
23383
+ return typeof type === 'string' || typeof type === 'function' ||
23384
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
23385
+ 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);
23386
+ }
23387
+ function typeOf(object) {
23388
+ if (typeof object === 'object' && object !== null) {
23389
+ var $$typeof = object.$$typeof;
23390
+ switch ($$typeof) {
23391
+ case REACT_ELEMENT_TYPE:
23392
+ var type = object.type;
23393
+ switch (type) {
23394
+ case REACT_ASYNC_MODE_TYPE:
23395
+ case REACT_CONCURRENT_MODE_TYPE:
23396
+ case REACT_FRAGMENT_TYPE:
23397
+ case REACT_PROFILER_TYPE:
23398
+ case REACT_STRICT_MODE_TYPE:
23399
+ case REACT_SUSPENSE_TYPE:
23400
+ return type;
23401
+ default:
23402
+ var $$typeofType = type && type.$$typeof;
23403
+ switch ($$typeofType) {
23404
+ case REACT_CONTEXT_TYPE:
23405
+ case REACT_FORWARD_REF_TYPE:
23406
+ case REACT_LAZY_TYPE:
23407
+ case REACT_MEMO_TYPE:
23408
+ case REACT_PROVIDER_TYPE:
23409
+ return $$typeofType;
23410
+ default:
23411
+ return $$typeof;
23412
+ }
23413
+ }
23414
+ case REACT_PORTAL_TYPE:
23415
+ return $$typeof;
23416
+ }
23417
+ }
23418
+ return undefined;
23419
+ } // AsyncMode is deprecated along with isAsyncMode
23420
+
23421
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
23422
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
23423
+ var ContextConsumer = REACT_CONTEXT_TYPE;
23424
+ var ContextProvider = REACT_PROVIDER_TYPE;
23425
+ var Element = REACT_ELEMENT_TYPE;
23426
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
23427
+ var Fragment = REACT_FRAGMENT_TYPE;
23428
+ var Lazy = REACT_LAZY_TYPE;
23429
+ var Memo = REACT_MEMO_TYPE;
23430
+ var Portal = REACT_PORTAL_TYPE;
23431
+ var Profiler = REACT_PROFILER_TYPE;
23432
+ var StrictMode = REACT_STRICT_MODE_TYPE;
23433
+ var Suspense = REACT_SUSPENSE_TYPE;
23434
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
23435
+
23436
+ function isAsyncMode(object) {
23437
+ {
23438
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
23439
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
23440
+
23441
+ 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.');
23442
+ }
23443
+ }
23444
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
23445
+ }
23446
+ function isConcurrentMode(object) {
23447
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
23448
+ }
23449
+ function isContextConsumer(object) {
23450
+ return typeOf(object) === REACT_CONTEXT_TYPE;
23451
+ }
23452
+ function isContextProvider(object) {
23453
+ return typeOf(object) === REACT_PROVIDER_TYPE;
23454
+ }
23455
+ function isElement(object) {
23456
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
23457
+ }
23458
+ function isForwardRef(object) {
23459
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
23460
+ }
23461
+ function isFragment(object) {
23462
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
23463
+ }
23464
+ function isLazy(object) {
23465
+ return typeOf(object) === REACT_LAZY_TYPE;
23466
+ }
23467
+ function isMemo(object) {
23468
+ return typeOf(object) === REACT_MEMO_TYPE;
23469
+ }
23470
+ function isPortal(object) {
23471
+ return typeOf(object) === REACT_PORTAL_TYPE;
23472
+ }
23473
+ function isProfiler(object) {
23474
+ return typeOf(object) === REACT_PROFILER_TYPE;
23475
+ }
23476
+ function isStrictMode(object) {
23477
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
23478
+ }
23479
+ function isSuspense(object) {
23480
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
23481
+ }
23482
+ reactIs_development.AsyncMode = AsyncMode;
23483
+ reactIs_development.ConcurrentMode = ConcurrentMode;
23484
+ reactIs_development.ContextConsumer = ContextConsumer;
23485
+ reactIs_development.ContextProvider = ContextProvider;
23486
+ reactIs_development.Element = Element;
23487
+ reactIs_development.ForwardRef = ForwardRef;
23488
+ reactIs_development.Fragment = Fragment;
23489
+ reactIs_development.Lazy = Lazy;
23490
+ reactIs_development.Memo = Memo;
23491
+ reactIs_development.Portal = Portal;
23492
+ reactIs_development.Profiler = Profiler;
23493
+ reactIs_development.StrictMode = StrictMode;
23494
+ reactIs_development.Suspense = Suspense;
23495
+ reactIs_development.isAsyncMode = isAsyncMode;
23496
+ reactIs_development.isConcurrentMode = isConcurrentMode;
23497
+ reactIs_development.isContextConsumer = isContextConsumer;
23498
+ reactIs_development.isContextProvider = isContextProvider;
23499
+ reactIs_development.isElement = isElement;
23500
+ reactIs_development.isForwardRef = isForwardRef;
23501
+ reactIs_development.isFragment = isFragment;
23502
+ reactIs_development.isLazy = isLazy;
23503
+ reactIs_development.isMemo = isMemo;
23504
+ reactIs_development.isPortal = isPortal;
23505
+ reactIs_development.isProfiler = isProfiler;
23506
+ reactIs_development.isStrictMode = isStrictMode;
23507
+ reactIs_development.isSuspense = isSuspense;
23508
+ reactIs_development.isValidElementType = isValidElementType;
23509
+ reactIs_development.typeOf = typeOf;
23510
+ })();
23511
+ }
23512
+ return reactIs_development;
23513
+ }
23514
+
23515
+ var hasRequiredReactIs;
23516
+ function requireReactIs() {
23517
+ if (hasRequiredReactIs) return reactIs.exports;
23518
+ hasRequiredReactIs = 1;
23519
+ if (process.env.NODE_ENV === 'production') {
23520
+ reactIs.exports = requireReactIs_production_min();
23521
+ } else {
23522
+ reactIs.exports = requireReactIs_development();
23523
+ }
23524
+ return reactIs.exports;
23525
+ }
23526
+
23210
23527
  var hoistNonReactStatics_cjs;
23211
23528
  var hasRequiredHoistNonReactStatics_cjs;
23212
23529
  function requireHoistNonReactStatics_cjs() {
@@ -28891,7 +29208,7 @@ KJUR.asn1.DERTaggedObject = function (params) {
28891
29208
  };
28892
29209
  YAHOO.lang.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object);
28893
29210
 
28894
- var __extends = window && window.__extends || function () {
29211
+ var __extends = undefined && undefined.__extends || function () {
28895
29212
  var extendStatics = function (d, b) {
28896
29213
  extendStatics = Object.setPrototypeOf || {
28897
29214
  __proto__: []