react-bootstrap 2.10.2 → 2.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/cjs/AbstractModalHeader.js +2 -2
  2. package/cjs/AccordionButton.js +2 -2
  3. package/cjs/Carousel.d.ts +1 -1
  4. package/cjs/Carousel.js +13 -13
  5. package/cjs/Dropdown.js +3 -3
  6. package/cjs/DropdownMenu.js +1 -1
  7. package/cjs/Fade.js +1 -1
  8. package/cjs/Form.d.ts +60 -58
  9. package/cjs/InputGroup.d.ts +2 -2
  10. package/cjs/Modal.js +8 -8
  11. package/cjs/Navbar.js +2 -2
  12. package/cjs/Offcanvas.js +4 -4
  13. package/cjs/Overlay.js +4 -4
  14. package/cjs/OverlayTrigger.js +3 -3
  15. package/cjs/Tab.d.ts +1 -1
  16. package/cjs/TabContainer.d.ts +2 -1
  17. package/cjs/Tabs.d.ts +1 -1
  18. package/cjs/ThemeProvider.d.ts +1 -1
  19. package/cjs/Toast.js +1 -1
  20. package/cjs/ToastHeader.js +1 -1
  21. package/cjs/ToggleButtonGroup.js +1 -1
  22. package/cjs/TransitionWrapper.d.ts +2 -2
  23. package/cjs/useWrappedRefWithWarning.js +1 -1
  24. package/dist/react-bootstrap.js +550 -496
  25. package/dist/react-bootstrap.min.js +1 -1
  26. package/dist/react-bootstrap.min.js.LICENSE.txt +2 -1
  27. package/esm/AbstractModalHeader.js +2 -2
  28. package/esm/AccordionButton.js +2 -2
  29. package/esm/Carousel.d.ts +1 -1
  30. package/esm/Carousel.js +13 -13
  31. package/esm/Dropdown.js +3 -3
  32. package/esm/DropdownMenu.js +1 -1
  33. package/esm/Fade.js +1 -1
  34. package/esm/Form.d.ts +60 -58
  35. package/esm/InputGroup.d.ts +2 -2
  36. package/esm/Modal.js +8 -8
  37. package/esm/Navbar.js +2 -2
  38. package/esm/Offcanvas.js +4 -4
  39. package/esm/Overlay.js +4 -4
  40. package/esm/OverlayTrigger.js +3 -3
  41. package/esm/Tab.d.ts +1 -1
  42. package/esm/TabContainer.d.ts +2 -1
  43. package/esm/Tabs.d.ts +1 -1
  44. package/esm/ThemeProvider.d.ts +1 -1
  45. package/esm/Toast.js +1 -1
  46. package/esm/ToastHeader.js +1 -1
  47. package/esm/TransitionWrapper.d.ts +2 -2
  48. package/package.json +4 -5
@@ -7,69 +7,11 @@
7
7
  exports["ReactBootstrap"] = factory(require("react"), require("react-dom"));
8
8
  else
9
9
  root["ReactBootstrap"] = factory(root["React"], root["ReactDOM"]);
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__787__, __WEBPACK_EXTERNAL_MODULE__156__) => {
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__442__, __WEBPACK_EXTERNAL_MODULE__3__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 814:
15
- /***/ ((module, exports) => {
16
-
17
- var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
18
- Copyright (c) 2018 Jed Watson.
19
- Licensed under the MIT License (MIT), see
20
- http://jedwatson.github.io/classnames
21
- */
22
- /* global define */
23
-
24
- (function () {
25
- 'use strict';
26
-
27
- var hasOwn = {}.hasOwnProperty;
28
- var nativeCodeString = '[native code]';
29
- function classNames() {
30
- var classes = [];
31
- for (var i = 0; i < arguments.length; i++) {
32
- var arg = arguments[i];
33
- if (!arg) continue;
34
- var argType = typeof arg;
35
- if (argType === 'string' || argType === 'number') {
36
- classes.push(arg);
37
- } else if (Array.isArray(arg)) {
38
- if (arg.length) {
39
- var inner = classNames.apply(null, arg);
40
- if (inner) {
41
- classes.push(inner);
42
- }
43
- }
44
- } else if (argType === 'object') {
45
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
46
- classes.push(arg.toString());
47
- continue;
48
- }
49
- for (var key in arg) {
50
- if (hasOwn.call(arg, key) && arg[key]) {
51
- classes.push(key);
52
- }
53
- }
54
- }
55
- }
56
- return classes.join(' ');
57
- }
58
- if ( true && module.exports) {
59
- classNames.default = classNames;
60
- module.exports = classNames;
61
- } else if (true) {
62
- // register as 'classnames', consistent with npm package name
63
- !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
64
- return classNames;
65
- }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
66
- __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
67
- } else {}
68
- })();
69
-
70
- /***/ }),
71
-
72
- /***/ 286:
14
+ /***/ 737:
73
15
  /***/ ((module) => {
74
16
 
75
17
  "use strict";
@@ -114,7 +56,7 @@ module.exports = invariant;
114
56
 
115
57
  /***/ }),
116
58
 
117
- /***/ 946:
59
+ /***/ 526:
118
60
  /***/ ((module, exports, __webpack_require__) => {
119
61
 
120
62
  "use strict";
@@ -124,7 +66,7 @@ Object.defineProperty(exports, "__esModule", ({
124
66
  value: true
125
67
  }));
126
68
  exports["default"] = all;
127
- var _createChainableTypeChecker = __webpack_require__(844);
69
+ var _createChainableTypeChecker = __webpack_require__(663);
128
70
  var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
129
71
  function _interopRequireDefault(obj) {
130
72
  return obj && obj.__esModule ? obj : {
@@ -157,7 +99,7 @@ module.exports = exports['default'];
157
99
 
158
100
  /***/ }),
159
101
 
160
- /***/ 964:
102
+ /***/ 387:
161
103
  /***/ ((module, exports, __webpack_require__) => {
162
104
 
163
105
  "use strict";
@@ -171,9 +113,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
171
113
  } : function (obj) {
172
114
  return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
173
115
  };
174
- var _react = __webpack_require__(787);
116
+ var _react = __webpack_require__(442);
175
117
  var _react2 = _interopRequireDefault(_react);
176
- var _createChainableTypeChecker = __webpack_require__(844);
118
+ var _createChainableTypeChecker = __webpack_require__(663);
177
119
  var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
178
120
  function _interopRequireDefault(obj) {
179
121
  return obj && obj.__esModule ? obj : {
@@ -196,7 +138,7 @@ module.exports = exports['default'];
196
138
 
197
139
  /***/ }),
198
140
 
199
- /***/ 647:
141
+ /***/ 748:
200
142
  /***/ ((module, exports, __webpack_require__) => {
201
143
 
202
144
  "use strict";
@@ -206,7 +148,7 @@ Object.defineProperty(exports, "__esModule", ({
206
148
  value: true
207
149
  }));
208
150
  exports["default"] = deprecated;
209
- var _warning = __webpack_require__(459);
151
+ var _warning = __webpack_require__(773);
210
152
  var _warning2 = _interopRequireDefault(_warning);
211
153
  function _interopRequireDefault(obj) {
212
154
  return obj && obj.__esModule ? obj : {
@@ -241,7 +183,7 @@ module.exports = exports['default'];
241
183
 
242
184
  /***/ }),
243
185
 
244
- /***/ 835:
186
+ /***/ 105:
245
187
  /***/ ((module, exports, __webpack_require__) => {
246
188
 
247
189
  "use strict";
@@ -250,10 +192,10 @@ module.exports = exports['default'];
250
192
  Object.defineProperty(exports, "__esModule", ({
251
193
  value: true
252
194
  }));
253
- var _react = __webpack_require__(787);
195
+ var _react = __webpack_require__(442);
254
196
  var _react2 = _interopRequireDefault(_react);
255
- var _reactIs = __webpack_require__(532);
256
- var _createChainableTypeChecker = __webpack_require__(844);
197
+ var _reactIs = __webpack_require__(409);
198
+ var _createChainableTypeChecker = __webpack_require__(663);
257
199
  var _createChainableTypeChecker2 = _interopRequireDefault(_createChainableTypeChecker);
258
200
  function _interopRequireDefault(obj) {
259
201
  return obj && obj.__esModule ? obj : {
@@ -275,7 +217,7 @@ module.exports = exports['default'];
275
217
 
276
218
  /***/ }),
277
219
 
278
- /***/ 517:
220
+ /***/ 173:
279
221
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
280
222
 
281
223
  "use strict";
@@ -285,16 +227,16 @@ var __webpack_unused_export__;
285
227
  __webpack_unused_export__ = ({
286
228
  value: true
287
229
  });
288
- __webpack_unused_export__ = exports.nm = __webpack_unused_export__ = exports.ax = __webpack_unused_export__ = undefined;
289
- var _all = __webpack_require__(946);
230
+ __webpack_unused_export__ = exports.rk = __webpack_unused_export__ = exports.NP = __webpack_unused_export__ = undefined;
231
+ var _all = __webpack_require__(526);
290
232
  var _all2 = _interopRequireDefault(_all);
291
- var _componentOrElement = __webpack_require__(964);
233
+ var _componentOrElement = __webpack_require__(387);
292
234
  var _componentOrElement2 = _interopRequireDefault(_componentOrElement);
293
- var _deprecated = __webpack_require__(647);
235
+ var _deprecated = __webpack_require__(748);
294
236
  var _deprecated2 = _interopRequireDefault(_deprecated);
295
- var _elementType = __webpack_require__(835);
237
+ var _elementType = __webpack_require__(105);
296
238
  var _elementType2 = _interopRequireDefault(_elementType);
297
- var _isRequiredForA11y = __webpack_require__(422);
239
+ var _isRequiredForA11y = __webpack_require__(861);
298
240
  var _isRequiredForA11y2 = _interopRequireDefault(_isRequiredForA11y);
299
241
  function _interopRequireDefault(obj) {
300
242
  return obj && obj.__esModule ? obj : {
@@ -302,14 +244,14 @@ function _interopRequireDefault(obj) {
302
244
  };
303
245
  }
304
246
  __webpack_unused_export__ = _all2.default;
305
- exports.ax = _componentOrElement2.default;
247
+ exports.NP = _componentOrElement2.default;
306
248
  __webpack_unused_export__ = _deprecated2.default;
307
- exports.nm = _elementType2.default;
249
+ exports.rk = _elementType2.default;
308
250
  __webpack_unused_export__ = _isRequiredForA11y2.default;
309
251
 
310
252
  /***/ }),
311
253
 
312
- /***/ 422:
254
+ /***/ 861:
313
255
  /***/ ((module, exports) => {
314
256
 
315
257
  "use strict";
@@ -336,7 +278,7 @@ module.exports = exports['default'];
336
278
 
337
279
  /***/ }),
338
280
 
339
- /***/ 844:
281
+ /***/ 663:
340
282
  /***/ ((module, exports) => {
341
283
 
342
284
  "use strict";
@@ -380,7 +322,7 @@ module.exports = exports['default'];
380
322
 
381
323
  /***/ }),
382
324
 
383
- /***/ 428:
325
+ /***/ 948:
384
326
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
385
327
 
386
328
  "use strict";
@@ -393,7 +335,7 @@ module.exports = exports['default'];
393
335
 
394
336
 
395
337
 
396
- var ReactPropTypesSecret = __webpack_require__(134);
338
+ var ReactPropTypesSecret = __webpack_require__(643);
397
339
  function emptyFunction() {}
398
340
  function emptyFunctionWithReset() {}
399
341
  emptyFunctionWithReset.resetWarningCache = emptyFunction;
@@ -444,7 +386,7 @@ module.exports = function () {
444
386
 
445
387
  /***/ }),
446
388
 
447
- /***/ 526:
389
+ /***/ 762:
448
390
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
449
391
 
450
392
  /**
@@ -457,12 +399,12 @@ module.exports = function () {
457
399
  if (false) { var throwOnDirectAccess, ReactIs; } else {
458
400
  // By explicitly using `prop-types` you are opting into new production behavior.
459
401
  // http://fb.me/prop-types-in-prod
460
- module.exports = __webpack_require__(428)();
402
+ module.exports = __webpack_require__(948)();
461
403
  }
462
404
 
463
405
  /***/ }),
464
406
 
465
- /***/ 134:
407
+ /***/ 643:
466
408
  /***/ ((module) => {
467
409
 
468
410
  "use strict";
@@ -480,7 +422,7 @@ module.exports = ReactPropTypesSecret;
480
422
 
481
423
  /***/ }),
482
424
 
483
- /***/ 15:
425
+ /***/ 493:
484
426
  /***/ ((__unused_webpack_module, exports) => {
485
427
 
486
428
  "use strict";
@@ -604,23 +546,24 @@ exports.typeOf = z;
604
546
 
605
547
  /***/ }),
606
548
 
607
- /***/ 532:
549
+ /***/ 409:
608
550
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
609
551
 
610
552
  "use strict";
611
553
 
612
554
 
613
555
  if (true) {
614
- module.exports = __webpack_require__(15);
556
+ module.exports = __webpack_require__(493);
615
557
  } else {}
616
558
 
617
559
  /***/ }),
618
560
 
619
- /***/ 955:
620
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
561
+ /***/ 864:
562
+ /***/ ((__unused_webpack_module, exports) => {
621
563
 
622
564
  "use strict";
623
- /** @license React v16.14.0
565
+ /**
566
+ * @license React
624
567
  * react-jsx-dev-runtime.production.min.js
625
568
  *
626
569
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -630,21 +573,18 @@ if (true) {
630
573
  */
631
574
 
632
575
 
633
- __webpack_require__(787);
634
- exports.Fragment = 60107;
635
- if ("function" === typeof Symbol && Symbol.for) {
636
- var a = Symbol.for;
637
- exports.Fragment = a("react.fragment");
638
- }
576
+ var a = Symbol.for("react.fragment");
577
+ exports.Fragment = a;
639
578
  exports.jsxDEV = void 0;
640
579
 
641
580
  /***/ }),
642
581
 
643
- /***/ 356:
582
+ /***/ 706:
644
583
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
645
584
 
646
585
  "use strict";
647
- /** @license React v16.14.0
586
+ /**
587
+ * @license React
648
588
  * react-jsx-runtime.production.min.js
649
589
  *
650
590
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -654,71 +594,67 @@ exports.jsxDEV = void 0;
654
594
  */
655
595
 
656
596
 
657
- var f = __webpack_require__(787),
658
- g = 60103;
659
- exports.Fragment = 60107;
660
- if ("function" === typeof Symbol && Symbol.for) {
661
- var h = Symbol.for;
662
- g = h("react.element");
663
- exports.Fragment = h("react.fragment");
664
- }
665
- var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
666
- n = Object.prototype.hasOwnProperty,
597
+ var f = __webpack_require__(442),
598
+ k = Symbol.for("react.element"),
599
+ l = Symbol.for("react.fragment"),
600
+ m = Object.prototype.hasOwnProperty,
601
+ n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
667
602
  p = {
668
603
  key: !0,
669
604
  ref: !0,
670
605
  __self: !0,
671
606
  __source: !0
672
607
  };
673
- function q(c, a, k) {
608
+ function q(c, a, g) {
674
609
  var b,
675
610
  d = {},
676
611
  e = null,
677
- l = null;
678
- void 0 !== k && (e = "" + k);
612
+ h = null;
613
+ void 0 !== g && (e = "" + g);
679
614
  void 0 !== a.key && (e = "" + a.key);
680
- void 0 !== a.ref && (l = a.ref);
681
- for (b in a) n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
615
+ void 0 !== a.ref && (h = a.ref);
616
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
682
617
  if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
683
618
  return {
684
- $$typeof: g,
619
+ $$typeof: k,
685
620
  type: c,
686
621
  key: e,
687
- ref: l,
622
+ ref: h,
688
623
  props: d,
689
- _owner: m.current
624
+ _owner: n.current
690
625
  };
691
626
  }
627
+ exports.Fragment = l;
692
628
  exports.jsx = q;
693
629
  exports.jsxs = q;
694
630
 
695
631
  /***/ }),
696
632
 
697
- /***/ 485:
633
+ /***/ 148:
698
634
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
699
635
 
700
636
  "use strict";
701
637
 
702
638
 
703
639
  if (true) {
704
- module.exports = __webpack_require__(955);
640
+ module.exports = __webpack_require__(864);
705
641
  } else {}
706
642
 
707
643
  /***/ }),
708
644
 
709
- /***/ 373:
645
+ /***/ 74:
710
646
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
711
647
 
712
648
  "use strict";
713
649
 
714
650
 
715
651
  if (true) {
716
- module.exports = __webpack_require__(356);
652
+ module.exports = __webpack_require__(706);
717
653
  } else {}
718
654
 
719
655
  /***/ }),
720
656
 
721
- /***/ 459:
657
+ /***/ 773:
722
658
  /***/ ((module) => {
723
659
 
724
660
  "use strict";
@@ -778,19 +714,87 @@ module.exports = warning;
778
714
 
779
715
  /***/ }),
780
716
 
781
- /***/ 787:
717
+ /***/ 442:
782
718
  /***/ ((module) => {
783
719
 
784
720
  "use strict";
785
- module.exports = __WEBPACK_EXTERNAL_MODULE__787__;
721
+ module.exports = __WEBPACK_EXTERNAL_MODULE__442__;
786
722
 
787
723
  /***/ }),
788
724
 
789
- /***/ 156:
725
+ /***/ 3:
790
726
  /***/ ((module) => {
791
727
 
792
728
  "use strict";
793
- module.exports = __WEBPACK_EXTERNAL_MODULE__156__;
729
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3__;
730
+
731
+ /***/ }),
732
+
733
+ /***/ 368:
734
+ /***/ ((module, exports) => {
735
+
736
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
737
+ Copyright (c) 2018 Jed Watson.
738
+ Licensed under the MIT License (MIT), see
739
+ http://jedwatson.github.io/classnames
740
+ */
741
+ /* global define */
742
+
743
+ (function () {
744
+ 'use strict';
745
+
746
+ var hasOwn = {}.hasOwnProperty;
747
+ function classNames() {
748
+ var classes = '';
749
+ for (var i = 0; i < arguments.length; i++) {
750
+ var arg = arguments[i];
751
+ if (arg) {
752
+ classes = appendClass(classes, parseValue(arg));
753
+ }
754
+ }
755
+ return classes;
756
+ }
757
+ function parseValue(arg) {
758
+ if (typeof arg === 'string' || typeof arg === 'number') {
759
+ return arg;
760
+ }
761
+ if (typeof arg !== 'object') {
762
+ return '';
763
+ }
764
+ if (Array.isArray(arg)) {
765
+ return classNames.apply(null, arg);
766
+ }
767
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
768
+ return arg.toString();
769
+ }
770
+ var classes = '';
771
+ for (var key in arg) {
772
+ if (hasOwn.call(arg, key) && arg[key]) {
773
+ classes = appendClass(classes, key);
774
+ }
775
+ }
776
+ return classes;
777
+ }
778
+ function appendClass(value, newClass) {
779
+ if (!newClass) {
780
+ return value;
781
+ }
782
+ if (value) {
783
+ return value + ' ' + newClass;
784
+ }
785
+ return value + newClass;
786
+ }
787
+ if ( true && module.exports) {
788
+ classNames.default = classNames;
789
+ module.exports = classNames;
790
+ } else if (true) {
791
+ // register as 'classnames', consistent with npm package name
792
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
793
+ return classNames;
794
+ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
795
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
796
+ } else {}
797
+ })();
794
798
 
795
799
  /***/ })
796
800
 
@@ -998,15 +1002,15 @@ __webpack_require__.d(__webpack_exports__, {
998
1002
  });
999
1003
 
1000
1004
  // EXTERNAL MODULE: ./node_modules/classnames/index.js
1001
- var classnames = __webpack_require__(814);
1005
+ var classnames = __webpack_require__(368);
1002
1006
  var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
1003
1007
  // EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
1004
- var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
1008
+ var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(442);
1005
1009
  var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
1006
1010
  // EXTERNAL MODULE: ./node_modules/prop-types/index.js
1007
- var prop_types = __webpack_require__(526);
1011
+ var prop_types = __webpack_require__(762);
1008
1012
  var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
1009
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
1013
+ ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/extends.js
1010
1014
  function extends_extends() {
1011
1015
  extends_extends = Object.assign ? Object.assign.bind() : function (target) {
1012
1016
  for (var i = 1; i < arguments.length; i++) {
@@ -1021,7 +1025,7 @@ function extends_extends() {
1021
1025
  };
1022
1026
  return extends_extends.apply(this, arguments);
1023
1027
  }
1024
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1028
+ ;// CONCATENATED MODULE: ./node_modules/uncontrollable/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1025
1029
  function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1026
1030
  if (source == null) return {};
1027
1031
  var target = {};
@@ -1035,7 +1039,7 @@ function objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, exclu
1035
1039
  return target;
1036
1040
  }
1037
1041
  // EXTERNAL MODULE: ./node_modules/invariant/browser.js
1038
- var browser = __webpack_require__(286);
1042
+ var browser = __webpack_require__(737);
1039
1043
  var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
1040
1044
  ;// CONCATENATED MODULE: ./node_modules/uncontrollable/lib/esm/utils.js
1041
1045
 
@@ -1399,7 +1403,7 @@ function uncontrollable(Component, controlledValues, methods) {
1399
1403
 
1400
1404
 
1401
1405
  // EXTERNAL MODULE: ./node_modules/react/jsx-dev-runtime.js
1402
- var jsx_dev_runtime = __webpack_require__(485);
1406
+ var jsx_dev_runtime = __webpack_require__(148);
1403
1407
  ;// CONCATENATED MODULE: ./src/ThemeProvider.tsx
1404
1408
  var ThemeProvider_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/ThemeProvider.tsx";
1405
1409
 
@@ -1602,7 +1606,20 @@ function style(node, property) {
1602
1606
  node.style.cssText += ";" + css;
1603
1607
  }
1604
1608
  /* harmony default export */ const css = (style);
1605
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1609
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1610
+ function esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(source, excluded) {
1611
+ if (source == null) return {};
1612
+ var target = {};
1613
+ var sourceKeys = Object.keys(source);
1614
+ var key, i;
1615
+ for (i = 0; i < sourceKeys.length; i++) {
1616
+ key = sourceKeys[i];
1617
+ if (excluded.indexOf(key) >= 0) continue;
1618
+ target[key] = source[key];
1619
+ }
1620
+ return target;
1621
+ }
1622
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
1606
1623
  function _setPrototypeOf(o, p) {
1607
1624
  _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1608
1625
  o.__proto__ = p;
@@ -1610,7 +1627,7 @@ function _setPrototypeOf(o, p) {
1610
1627
  };
1611
1628
  return _setPrototypeOf(o, p);
1612
1629
  }
1613
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1630
+ ;// CONCATENATED MODULE: ./node_modules/react-transition-group/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
1614
1631
 
1615
1632
  function inheritsLoose_inheritsLoose(subClass, superClass) {
1616
1633
  subClass.prototype = Object.create(superClass.prototype);
@@ -1618,7 +1635,7 @@ function inheritsLoose_inheritsLoose(subClass, superClass) {
1618
1635
  _setPrototypeOf(subClass, superClass);
1619
1636
  }
1620
1637
  // EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
1621
- var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(156);
1638
+ var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(3);
1622
1639
  var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
1623
1640
  ;// CONCATENATED MODULE: ./node_modules/react-transition-group/esm/config.js
1624
1641
  /* harmony default export */ const config = ({
@@ -1986,7 +2003,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
1986
2003
  _onExiting = _this$props.onExiting,
1987
2004
  _onExited = _this$props.onExited,
1988
2005
  _nodeRef = _this$props.nodeRef,
1989
- childProps = objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
2006
+ childProps = esm_objectWithoutPropertiesLoose_objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
1990
2007
  return /*#__PURE__*/(
1991
2008
  // allows for nested Transitions
1992
2009
  external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TransitionGroupContext.Provider, {
@@ -2207,19 +2224,18 @@ function triggerBrowserReflow(node) {
2207
2224
  }
2208
2225
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergedRefs.js
2209
2226
 
2210
- var toFnRef = function toFnRef(ref) {
2211
- return !ref || typeof ref === 'function' ? ref : function (value) {
2212
- ref.current = value;
2213
- };
2227
+ const toFnRef = ref => !ref || typeof ref === 'function' ? ref : value => {
2228
+ ref.current = value;
2214
2229
  };
2215
2230
  function mergeRefs(refA, refB) {
2216
- var a = toFnRef(refA);
2217
- var b = toFnRef(refB);
2218
- return function (value) {
2231
+ const a = toFnRef(refA);
2232
+ const b = toFnRef(refB);
2233
+ return value => {
2219
2234
  if (a) a(value);
2220
2235
  if (b) b(value);
2221
2236
  };
2222
2237
  }
2238
+
2223
2239
  /**
2224
2240
  * Create and returns a single callback ref composed from two other Refs.
2225
2241
  *
@@ -2236,11 +2252,8 @@ function mergeRefs(refA, refB) {
2236
2252
  * @param refB A Callback or mutable Ref
2237
2253
  * @category refs
2238
2254
  */
2239
-
2240
2255
  function useMergedRefs(refA, refB) {
2241
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
2242
- return mergeRefs(refA, refB);
2243
- }, [refA, refB]);
2256
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => mergeRefs(refA, refB), [refA, refB]);
2244
2257
  }
2245
2258
  /* harmony default export */ const esm_useMergedRefs = (useMergedRefs);
2246
2259
  ;// CONCATENATED MODULE: ./src/safeFindDOMNode.ts
@@ -2689,8 +2702,8 @@ function useAccordionButton(eventKey, onClick) {
2689
2702
  eventKeyPassed = [eventKey];
2690
2703
  }
2691
2704
  }
2692
- onSelect == null ? void 0 : onSelect(eventKeyPassed, e);
2693
- onClick == null ? void 0 : onClick(e);
2705
+ onSelect == null || onSelect(eventKeyPassed, e);
2706
+ onClick == null || onClick(e);
2694
2707
  };
2695
2708
  }
2696
2709
  const AccordionButton = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef(({
@@ -2912,9 +2925,10 @@ Accordion.propTypes = Accordion_propTypes;
2912
2925
  Body: src_AccordionBody
2913
2926
  }));
2914
2927
  // EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/index.js
2915
- var lib = __webpack_require__(517);
2928
+ var lib = __webpack_require__(173);
2916
2929
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCommittedRef.js
2917
2930
 
2931
+
2918
2932
  /**
2919
2933
  * Creates a `Ref` whose value is updated in an effect, ensuring the most recent
2920
2934
  * value is the one rendered with. Generally only required for Concurrent mode usage
@@ -2924,10 +2938,9 @@ var lib = __webpack_require__(517);
2924
2938
  *
2925
2939
  * @param value The `Ref` value
2926
2940
  */
2927
-
2928
2941
  function useCommittedRef_useCommittedRef(value) {
2929
- var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
2930
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
2942
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
2943
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
2931
2944
  ref.current = value;
2932
2945
  }, [value]);
2933
2946
  return ref;
@@ -2937,9 +2950,9 @@ function useCommittedRef_useCommittedRef(value) {
2937
2950
 
2938
2951
 
2939
2952
  function useEventCallback(fn) {
2940
- var ref = esm_useCommittedRef(fn);
2941
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
2942
- return ref.current && ref.current.apply(ref, arguments);
2953
+ const ref = esm_useCommittedRef(fn);
2954
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (...args) {
2955
+ return ref.current && ref.current(...args);
2943
2956
  }, [ref]);
2944
2957
  }
2945
2958
  ;// CONCATENATED MODULE: ./src/divWithClassName.tsx
@@ -2986,6 +2999,7 @@ AlertHeading.displayName = 'AlertHeading';
2986
2999
  /* harmony default export */ const src_AlertHeading = (AlertHeading);
2987
3000
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useCallbackRef.js
2988
3001
 
3002
+
2989
3003
  /**
2990
3004
  * A convenience hook around `useState` designed to be paired with
2991
3005
  * the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
@@ -3010,14 +3024,12 @@ AlertHeading.displayName = 'AlertHeading';
3010
3024
  *
3011
3025
  * @category refs
3012
3026
  */
3013
-
3014
3027
  function useCallbackRef() {
3015
3028
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(null);
3016
3029
  }
3017
3030
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useEventListener.js
3018
3031
 
3019
3032
 
3020
-
3021
3033
  /**
3022
3034
  * Attaches an event handler outside directly to specified DOM element
3023
3035
  * bypassing the react synthetic event system.
@@ -3027,23 +3039,17 @@ function useCallbackRef() {
3027
3039
  * @param handler An event handler
3028
3040
  * @param capture Whether or not to listen during the capture event phase
3029
3041
  */
3030
- function useEventListener_useEventListener(eventTarget, event, listener, capture) {
3031
- if (capture === void 0) {
3032
- capture = false;
3033
- }
3034
- var handler = useEventCallback(listener);
3035
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3036
- var target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3042
+ function useEventListener_useEventListener(eventTarget, event, listener, capture = false) {
3043
+ const handler = useEventCallback(listener);
3044
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
3045
+ const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
3037
3046
  target.addEventListener(event, handler, capture);
3038
- return function () {
3039
- return target.removeEventListener(event, handler, capture);
3040
- };
3047
+ return () => target.removeEventListener(event, handler, capture);
3041
3048
  }, [eventTarget]);
3042
3049
  }
3043
3050
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useGlobalListener.js
3044
3051
 
3045
3052
 
3046
-
3047
3053
  /**
3048
3054
  * Attaches an event handler outside directly to the `document`,
3049
3055
  * bypassing the react synthetic event system.
@@ -3058,18 +3064,14 @@ function useEventListener_useEventListener(eventTarget, event, listener, capture
3058
3064
  * @param handler An event handler
3059
3065
  * @param capture Whether or not to listen during the capture event phase
3060
3066
  */
3061
- function useGlobalListener(event, handler, capture) {
3062
- if (capture === void 0) {
3063
- capture = false;
3064
- }
3065
- var documentTarget = useCallback(function () {
3066
- return document;
3067
- }, []);
3067
+ function useGlobalListener(event, handler, capture = false) {
3068
+ const documentTarget = useCallback(() => document, []);
3068
3069
  return useEventListener(documentTarget, event, handler, capture);
3069
3070
  }
3070
3071
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useInterval.js
3071
3072
 
3072
3073
 
3074
+
3073
3075
  /**
3074
3076
  * Creates a `setInterval` that is properly cleaned up when a component unmounted
3075
3077
  *
@@ -3086,55 +3088,88 @@ function useGlobalListener(event, handler, capture) {
3086
3088
  * @param ms The milliseconds duration of the interval
3087
3089
  */
3088
3090
 
3089
- function useInterval(fn, ms, paused, runImmediately) {
3090
- if (paused === void 0) {
3091
- paused = false;
3092
- }
3093
- if (runImmediately === void 0) {
3094
- runImmediately = false;
3095
- }
3096
- var handle;
3097
- var fnRef = useCommittedRef(fn); // this ref is necessary b/c useEffect will sometimes miss a paused toggle
3098
- // orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.
3091
+ /**
3092
+ * Creates a pausable `setInterval` that is properly cleaned up when a component unmounted
3093
+ *
3094
+ * ```tsx
3095
+ * const [paused, setPaused] = useState(false)
3096
+ * const [timer, setTimer] = useState(0)
3097
+ *
3098
+ * useInterval(() => setTimer(i => i + 1), 1000, paused)
3099
+ *
3100
+ * return (
3101
+ * <span>
3102
+ * {timer} seconds past
3103
+ *
3104
+ * <button onClick={() => setPaused(p => !p)}>{paused ? 'Play' : 'Pause' }</button>
3105
+ * </span>
3106
+ * )
3107
+ * ```
3108
+ *
3109
+ * @param fn an function run on each interval
3110
+ * @param ms The milliseconds duration of the interval
3111
+ * @param paused Whether or not the interval is currently running
3112
+ */
3099
3113
 
3100
- var pausedRef = useCommittedRef(paused);
3101
- var tick = function tick() {
3114
+ /**
3115
+ * Creates a pausable `setInterval` that _fires_ immediately and is
3116
+ * properly cleaned up when a component unmounted
3117
+ *
3118
+ * ```tsx
3119
+ * const [timer, setTimer] = useState(-1)
3120
+ * useInterval(() => setTimer(i => i + 1), 1000, false, true)
3121
+ *
3122
+ * // will update to 0 on the first effect
3123
+ * return <span>{timer} seconds past</span>
3124
+ * ```
3125
+ *
3126
+ * @param fn an function run on each interval
3127
+ * @param ms The milliseconds duration of the interval
3128
+ * @param paused Whether or not the interval is currently running
3129
+ * @param runImmediately Whether to run the function immediately on mount or unpause
3130
+ * rather than waiting for the first interval to elapse
3131
+ *
3132
+
3133
+ */
3134
+
3135
+ function useInterval(fn, ms, paused = false, runImmediately = false) {
3136
+ let handle;
3137
+ const fnRef = useCommittedRef(fn);
3138
+ // this ref is necessary b/c useEffect will sometimes miss a paused toggle
3139
+ // orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.
3140
+ const pausedRef = useCommittedRef(paused);
3141
+ const tick = () => {
3102
3142
  if (pausedRef.current) return;
3103
3143
  fnRef.current();
3104
3144
  schedule(); // eslint-disable-line no-use-before-define
3105
3145
  };
3106
- var schedule = function schedule() {
3146
+ const schedule = () => {
3107
3147
  clearTimeout(handle);
3108
3148
  handle = setTimeout(tick, ms);
3109
3149
  };
3110
- useEffect(function () {
3150
+ useEffect(() => {
3111
3151
  if (runImmediately) {
3112
3152
  tick();
3113
3153
  } else {
3114
3154
  schedule();
3115
3155
  }
3116
- return function () {
3117
- return clearTimeout(handle);
3118
- };
3156
+ return () => clearTimeout(handle);
3119
3157
  }, [paused, runImmediately]);
3120
3158
  }
3121
3159
  /* harmony default export */ const esm_useInterval = ((/* unused pure expression or super */ null && (useInterval)));
3122
3160
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useRafInterval.js
3123
3161
 
3124
3162
 
3125
- function useRafInterval(fn, ms, paused) {
3126
- if (paused === void 0) {
3127
- paused = false;
3128
- }
3129
- var handle;
3130
- var start = new Date().getTime();
3131
- var fnRef = useCommittedRef(fn); // this ref is necessary b/c useEffect will sometimes miss a paused toggle
3163
+ function useRafInterval(fn, ms, paused = false) {
3164
+ let handle;
3165
+ let start = new Date().getTime();
3166
+ const fnRef = useCommittedRef(fn);
3167
+ // this ref is necessary b/c useEffect will sometimes miss a paused toggle
3132
3168
  // orphaning a setTimeout chain in the aether, so relying on it's refresh logic is not reliable.
3133
-
3134
- var pausedRef = useCommittedRef(paused);
3169
+ const pausedRef = useCommittedRef(paused);
3135
3170
  function loop() {
3136
- var current = new Date().getTime();
3137
- var delta = current - start;
3171
+ const current = new Date().getTime();
3172
+ const delta = current - start;
3138
3173
  if (pausedRef.current) return;
3139
3174
  if (delta >= ms && fnRef.current) {
3140
3175
  fnRef.current();
@@ -3143,31 +3178,19 @@ function useRafInterval(fn, ms, paused) {
3143
3178
  cancelAnimationFrame(handle);
3144
3179
  handle = requestAnimationFrame(loop);
3145
3180
  }
3146
- useEffect(function () {
3181
+ useEffect(() => {
3147
3182
  handle = requestAnimationFrame(loop);
3148
- return function () {
3149
- return cancelAnimationFrame(handle);
3150
- };
3183
+ return () => cancelAnimationFrame(handle);
3151
3184
  }, []);
3152
3185
  }
3153
3186
  /* harmony default export */ const esm_useRafInterval = ((/* unused pure expression or super */ null && (useRafInterval)));
3154
3187
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeState.js
3155
- function useMergeState_extends() {
3156
- useMergeState_extends = Object.assign || function (target) {
3157
- for (var i = 1; i < arguments.length; i++) {
3158
- var source = arguments[i];
3159
- for (var key in source) {
3160
- if (Object.prototype.hasOwnProperty.call(source, key)) {
3161
- target[key] = source[key];
3162
- }
3163
- }
3164
- }
3165
- return target;
3166
- };
3167
- return useMergeState_extends.apply(this, arguments);
3168
- }
3169
3188
 
3170
3189
 
3190
+ /**
3191
+ * Updates state, partial updates are merged into existing state values
3192
+ */
3193
+
3171
3194
  /**
3172
3195
  * Mimics a React class component's state model, of having a single unified
3173
3196
  * `state` object and an updater that merges updates into the existing state, as
@@ -3184,20 +3207,16 @@ function useMergeState_extends() {
3184
3207
  * @param initialState The initial state object
3185
3208
  */
3186
3209
  function useMergeState_useMergeState(initialState) {
3187
- var _useState = useState(initialState),
3188
- state = _useState[0],
3189
- setState = _useState[1];
3190
- var updater = useCallback(function (update) {
3210
+ const [state, setState] = useState(initialState);
3211
+ const updater = useCallback(update => {
3191
3212
  if (update === null) return;
3192
3213
  if (typeof update === 'function') {
3193
- setState(function (state) {
3194
- var nextState = update(state);
3195
- return nextState == null ? state : useMergeState_extends({}, state, nextState);
3214
+ setState(state => {
3215
+ const nextState = update(state);
3216
+ return nextState == null ? state : Object.assign({}, state, nextState);
3196
3217
  });
3197
3218
  } else {
3198
- setState(function (state) {
3199
- return useMergeState_extends({}, state, update);
3200
- });
3219
+ setState(state => Object.assign({}, state, update));
3201
3220
  }
3202
3221
  }, [setState]);
3203
3222
  return [state, updater];
@@ -3205,15 +3224,14 @@ function useMergeState_useMergeState(initialState) {
3205
3224
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMergeStateFromProps.js
3206
3225
 
3207
3226
  function useMergeStateFromProps(props, gDSFP, initialState) {
3208
- var _useMergeState = useMergeState(initialState),
3209
- state = _useMergeState[0],
3210
- setState = _useMergeState[1];
3211
- var nextState = gDSFP(props, state);
3227
+ const [state, setState] = useMergeState(initialState);
3228
+ const nextState = gDSFP(props, state);
3212
3229
  if (nextState !== null) setState(nextState);
3213
3230
  return [state, setState];
3214
3231
  }
3215
3232
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMounted.js
3216
3233
 
3234
+
3217
3235
  /**
3218
3236
  * Track whether a component is current mounted. Generally less preferable than
3219
3237
  * properlly canceling effects so they don't run after a component is unmounted,
@@ -3234,15 +3252,12 @@ function useMergeStateFromProps(props, gDSFP, initialState) {
3234
3252
  * })
3235
3253
  * ```
3236
3254
  */
3237
-
3238
3255
  function useMounted() {
3239
- var mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
3240
- var isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(function () {
3241
- return mounted.current;
3242
- });
3243
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3256
+ const mounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
3257
+ const isMounted = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(() => mounted.current);
3258
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
3244
3259
  mounted.current = true;
3245
- return function () {
3260
+ return () => {
3246
3261
  mounted.current = false;
3247
3262
  };
3248
3263
  }, []);
@@ -3250,6 +3265,7 @@ function useMounted() {
3250
3265
  }
3251
3266
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/usePrevious.js
3252
3267
 
3268
+
3253
3269
  /**
3254
3270
  * Store the last of some value. Tracked via a `Ref` only updating it
3255
3271
  * after the component renders.
@@ -3267,17 +3283,15 @@ function useMounted() {
3267
3283
  *
3268
3284
  * @param value the value to track
3269
3285
  */
3270
-
3271
3286
  function usePrevious(value) {
3272
- var ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
3273
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
3287
+ const ref = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
3288
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
3274
3289
  ref.current = value;
3275
3290
  });
3276
3291
  return ref.current;
3277
3292
  }
3278
3293
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useImage.js
3279
3294
 
3280
-
3281
3295
  /**
3282
3296
  * Fetch and load an image for programatic use such as in a `<canvas>` element.
3283
3297
  *
@@ -3304,15 +3318,13 @@ function usePrevious(value) {
3304
3318
  * ```
3305
3319
  */
3306
3320
  function useImage(imageOrUrl, crossOrigin) {
3307
- var _useState = useState({
3308
- image: null,
3309
- error: null
3310
- }),
3311
- state = _useState[0],
3312
- setState = _useState[1];
3313
- useEffect(function () {
3321
+ const [state, setState] = useState({
3322
+ image: null,
3323
+ error: null
3324
+ });
3325
+ useEffect(() => {
3314
3326
  if (!imageOrUrl) return undefined;
3315
- var image;
3327
+ let image;
3316
3328
  if (typeof imageOrUrl === 'string') {
3317
3329
  image = new Image();
3318
3330
  if (crossOrigin) image.crossOrigin = crossOrigin;
@@ -3321,7 +3333,7 @@ function useImage(imageOrUrl, crossOrigin) {
3321
3333
  image = imageOrUrl;
3322
3334
  if (image.complete && image.naturalHeight > 0) {
3323
3335
  setState({
3324
- image: image,
3336
+ image,
3325
3337
  error: null
3326
3338
  });
3327
3339
  return;
@@ -3329,19 +3341,19 @@ function useImage(imageOrUrl, crossOrigin) {
3329
3341
  }
3330
3342
  function onLoad() {
3331
3343
  setState({
3332
- image: image,
3344
+ image,
3333
3345
  error: null
3334
3346
  });
3335
3347
  }
3336
3348
  function onError(error) {
3337
3349
  setState({
3338
- image: image,
3339
- error: error
3350
+ image,
3351
+ error
3340
3352
  });
3341
3353
  }
3342
3354
  image.addEventListener('load', onLoad);
3343
3355
  image.addEventListener('error', onError);
3344
- return function () {
3356
+ return () => {
3345
3357
  image.removeEventListener('load', onLoad);
3346
3358
  image.removeEventListener('error', onError);
3347
3359
  };
@@ -3350,12 +3362,13 @@ function useImage(imageOrUrl, crossOrigin) {
3350
3362
  }
3351
3363
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useIsomorphicEffect.js
3352
3364
 
3353
- var isReactNative = typeof __webpack_require__.g !== 'undefined' &&
3365
+ const isReactNative = typeof __webpack_require__.g !== 'undefined' &&
3354
3366
  // @ts-ignore
3355
3367
  __webpack_require__.g.navigator &&
3356
3368
  // @ts-ignore
3357
3369
  __webpack_require__.g.navigator.product === 'ReactNative';
3358
- var isDOM = typeof document !== 'undefined';
3370
+ const isDOM = typeof document !== 'undefined';
3371
+
3359
3372
  /**
3360
3373
  * Is `useLayoutEffect` in a DOM or React Native environment, otherwise resolves to useEffect
3361
3374
  * Only useful to avoid the console warning.
@@ -3364,22 +3377,22 @@ var isDOM = typeof document !== 'undefined';
3364
3377
  *
3365
3378
  * @category effects
3366
3379
  */
3367
-
3368
3380
  /* harmony default export */ const useIsomorphicEffect = (isDOM || isReactNative ? external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect : external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect);
3369
3381
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useResizeObserver.js
3370
3382
 
3371
3383
 
3372
- var targetMap = new WeakMap();
3373
- var resizeObserver;
3384
+ const targetMap = new WeakMap();
3385
+ let resizeObserver;
3374
3386
  function getResizeObserver() {
3375
3387
  // eslint-disable-next-line no-return-assign
3376
- return resizeObserver = resizeObserver || new window.ResizeObserver(function (entries) {
3377
- entries.forEach(function (entry) {
3378
- var handler = targetMap.get(entry.target);
3388
+ return resizeObserver = resizeObserver || new window.ResizeObserver(entries => {
3389
+ entries.forEach(entry => {
3390
+ const handler = targetMap.get(entry.target);
3379
3391
  if (handler) handler(entry.contentRect);
3380
3392
  });
3381
3393
  });
3382
3394
  }
3395
+
3383
3396
  /**
3384
3397
  * Efficiently observe size changes on an element. Depends on the `ResizeObserver` api,
3385
3398
  * and polyfills are needed in older browsers.
@@ -3398,19 +3411,16 @@ function getResizeObserver() {
3398
3411
  *
3399
3412
  * @param element The DOM element to observe
3400
3413
  */
3401
-
3402
3414
  function useResizeObserver(element) {
3403
- var _useState = useState(null),
3404
- rect = _useState[0],
3405
- setRect = _useState[1];
3406
- useEffect(function () {
3415
+ const [rect, setRect] = useState(null);
3416
+ useEffect(() => {
3407
3417
  if (!element) return;
3408
3418
  getResizeObserver().observe(element);
3409
3419
  setRect(element.getBoundingClientRect());
3410
- targetMap.set(element, function (rect) {
3420
+ targetMap.set(element, rect => {
3411
3421
  setRect(rect);
3412
3422
  });
3413
- return function () {
3423
+ return () => {
3414
3424
  targetMap.delete(element);
3415
3425
  };
3416
3426
  }, [element]);
@@ -3432,7 +3442,7 @@ function useResizeObserver(element) {
3432
3442
 
3433
3443
 
3434
3444
  // EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js
3435
- var jsx_runtime = __webpack_require__(373);
3445
+ var jsx_runtime = __webpack_require__(74);
3436
3446
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Button.js
3437
3447
  const _excluded = ["as", "disabled"];
3438
3448
  function Button_objectWithoutPropertiesLoose(source, excluded) {
@@ -3705,7 +3715,7 @@ const Fade = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
3705
3715
  };
3706
3716
  const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((node, isAppearing) => {
3707
3717
  triggerBrowserReflow(node);
3708
- onEnter == null ? void 0 : onEnter(node, isAppearing);
3718
+ onEnter == null || onEnter(node, isAppearing);
3709
3719
  }, [onEnter]);
3710
3720
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(src_TransitionWrapper, {
3711
3721
  ref: ref,
@@ -3818,7 +3828,7 @@ const Alert_propTypes = {
3818
3828
  * `false` to disable. A custom `react-transition-group` Transition can also
3819
3829
  * be provided.
3820
3830
  */
3821
- transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.nm])
3831
+ transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.rk])
3822
3832
  };
3823
3833
  const Alert = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.forwardRef((uncontrolledProps, ref) => {
3824
3834
  const {
@@ -4651,6 +4661,7 @@ CardGroup.displayName = 'CardGroup';
4651
4661
  /* harmony default export */ const src_CardGroup = (CardGroup);
4652
4662
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdateEffect.js
4653
4663
 
4664
+
4654
4665
  /**
4655
4666
  * Runs an effect only when the dependencies have changed, skipping the
4656
4667
  * initial "on mount" run. Caution, if the dependency list never changes,
@@ -4671,10 +4682,9 @@ CardGroup.displayName = 'CardGroup';
4671
4682
  *
4672
4683
  * @category effects
4673
4684
  */
4674
-
4675
4685
  function useUpdateEffect(fn, deps) {
4676
- var isFirst = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4677
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4686
+ const isFirst = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(true);
4687
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
4678
4688
  if (isFirst.current) {
4679
4689
  isFirst.current = false;
4680
4690
  return;
@@ -4685,40 +4695,37 @@ function useUpdateEffect(fn, deps) {
4685
4695
  /* harmony default export */ const esm_useUpdateEffect = (useUpdateEffect);
4686
4696
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useUpdatedRef.js
4687
4697
 
4698
+
4688
4699
  /**
4689
4700
  * Returns a ref that is immediately updated with the new value
4690
4701
  *
4691
4702
  * @param value The Ref value
4692
4703
  * @category refs
4693
4704
  */
4694
-
4695
4705
  function useUpdatedRef(value) {
4696
- var valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
4706
+ const valueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(value);
4697
4707
  valueRef.current = value;
4698
4708
  return valueRef;
4699
4709
  }
4700
4710
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useWillUnmount.js
4701
4711
 
4702
4712
 
4713
+
4703
4714
  /**
4704
4715
  * Attach a callback that fires when a component unmounts
4705
4716
  *
4706
4717
  * @param fn Handler to run when the component unmounts
4707
4718
  * @category effects
4708
4719
  */
4709
-
4710
4720
  function useWillUnmount(fn) {
4711
- var onUnmount = useUpdatedRef(fn);
4712
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
4713
- return function () {
4714
- return onUnmount.current();
4715
- };
4716
- }, []);
4721
+ const onUnmount = useUpdatedRef(fn);
4722
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => () => onUnmount.current(), []);
4717
4723
  }
4718
4724
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useTimeout.js
4719
4725
 
4720
4726
 
4721
4727
 
4728
+
4722
4729
  /*
4723
4730
  * Browsers including Internet Explorer, Chrome, Safari, and Firefox store the
4724
4731
  * delay as a 32-bit signed integer internally. This causes an integer overflow
@@ -4727,14 +4734,12 @@ function useWillUnmount(fn) {
4727
4734
  *
4728
4735
  * via: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
4729
4736
  */
4730
-
4731
- var MAX_DELAY_MS = Math.pow(2, 31) - 1;
4737
+ const MAX_DELAY_MS = 2 ** 31 - 1;
4732
4738
  function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4733
- var delayMs = timeoutAtMs - Date.now();
4734
- handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(function () {
4735
- return setChainedTimeout(handleRef, fn, timeoutAtMs);
4736
- }, MAX_DELAY_MS);
4739
+ const delayMs = timeoutAtMs - Date.now();
4740
+ handleRef.current = delayMs <= MAX_DELAY_MS ? setTimeout(fn, delayMs) : setTimeout(() => setChainedTimeout(handleRef, fn, timeoutAtMs), MAX_DELAY_MS);
4737
4741
  }
4742
+
4738
4743
  /**
4739
4744
  * Returns a controller object for setting a timeout that is properly cleaned up
4740
4745
  * once the component unmounts. New timeouts cancel and replace existing ones.
@@ -4753,22 +4758,15 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
4753
4758
  * );
4754
4759
  * ```
4755
4760
  */
4756
-
4757
4761
  function useTimeout() {
4758
- var isMounted = useMounted(); // types are confused between node and web here IDK
4762
+ const isMounted = useMounted();
4759
4763
 
4760
- var handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4761
- useWillUnmount(function () {
4762
- return clearTimeout(handleRef.current);
4763
- });
4764
- return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
4765
- var clear = function clear() {
4766
- return clearTimeout(handleRef.current);
4767
- };
4768
- function set(fn, delayMs) {
4769
- if (delayMs === void 0) {
4770
- delayMs = 0;
4771
- }
4764
+ // types are confused between node and web here IDK
4765
+ const handleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
4766
+ useWillUnmount(() => clearTimeout(handleRef.current));
4767
+ return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => {
4768
+ const clear = () => clearTimeout(handleRef.current);
4769
+ function set(fn, delayMs = 0) {
4772
4770
  if (!isMounted()) return;
4773
4771
  clear();
4774
4772
  if (delayMs <= MAX_DELAY_MS) {
@@ -4779,8 +4777,9 @@ function useTimeout() {
4779
4777
  }
4780
4778
  }
4781
4779
  return {
4782
- set: set,
4783
- clear: clear
4780
+ set,
4781
+ clear,
4782
+ handleRef
4784
4783
  };
4785
4784
  }, []);
4786
4785
  }
@@ -5112,7 +5111,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5112
5111
  nextActiveIndex = numChildren - 1;
5113
5112
  }
5114
5113
  nextDirectionRef.current = 'prev';
5115
- onSelect == null ? void 0 : onSelect(nextActiveIndex, event);
5114
+ onSelect == null || onSelect(nextActiveIndex, event);
5116
5115
  }, [isSliding, renderedActiveIndex, onSelect, wrap, numChildren]);
5117
5116
 
5118
5117
  // This is used in the setInterval, so it should not invalidate.
@@ -5128,7 +5127,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5128
5127
  nextActiveIndex = 0;
5129
5128
  }
5130
5129
  nextDirectionRef.current = 'next';
5131
- onSelect == null ? void 0 : onSelect(nextActiveIndex, event);
5130
+ onSelect == null || onSelect(nextActiveIndex, event);
5132
5131
  });
5133
5132
  const elementRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
5134
5133
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useImperativeHandle)(ref, () => ({
@@ -5153,18 +5152,18 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5153
5152
  // These callbacks will be handled by the <Transition> callbacks.
5154
5153
  return;
5155
5154
  }
5156
- onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);
5157
- onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);
5155
+ onSlide == null || onSlide(renderedActiveIndex, slideDirection);
5156
+ onSlid == null || onSlid(renderedActiveIndex, slideDirection);
5158
5157
  }, [renderedActiveIndex]);
5159
5158
  const orderClassName = `${prefix}-item-${direction}`;
5160
5159
  const directionalClassName = `${prefix}-item-${slideDirection}`;
5161
5160
  const handleEnter = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(node => {
5162
5161
  triggerBrowserReflow(node);
5163
- onSlide == null ? void 0 : onSlide(renderedActiveIndex, slideDirection);
5162
+ onSlide == null || onSlide(renderedActiveIndex, slideDirection);
5164
5163
  }, [onSlide, renderedActiveIndex, slideDirection]);
5165
5164
  const handleEntered = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
5166
5165
  setIsSliding(false);
5167
- onSlid == null ? void 0 : onSlid(renderedActiveIndex, slideDirection);
5166
+ onSlid == null || onSlid(renderedActiveIndex, slideDirection);
5168
5167
  }, [onSlid, renderedActiveIndex, slideDirection]);
5169
5168
  const handleKeyDown = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
5170
5169
  if (keyboard && !/input|textarea/i.test(event.target.tagName)) {
@@ -5188,17 +5187,17 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5188
5187
  default:
5189
5188
  }
5190
5189
  }
5191
- onKeyDown == null ? void 0 : onKeyDown(event);
5190
+ onKeyDown == null || onKeyDown(event);
5192
5191
  }, [keyboard, onKeyDown, prev, next, isRTL]);
5193
5192
  const handleMouseOver = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
5194
5193
  if (pause === 'hover') {
5195
5194
  setPaused(true);
5196
5195
  }
5197
- onMouseOver == null ? void 0 : onMouseOver(event);
5196
+ onMouseOver == null || onMouseOver(event);
5198
5197
  }, [pause, onMouseOver]);
5199
5198
  const handleMouseOut = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
5200
5199
  setPaused(false);
5201
- onMouseOut == null ? void 0 : onMouseOut(event);
5200
+ onMouseOut == null || onMouseOut(event);
5202
5201
  }, [onMouseOut]);
5203
5202
  const touchStartXRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(0);
5204
5203
  const touchDeltaXRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(0);
@@ -5209,7 +5208,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5209
5208
  if (pause === 'hover') {
5210
5209
  setPaused(true);
5211
5210
  }
5212
- onTouchStart == null ? void 0 : onTouchStart(event);
5211
+ onTouchStart == null || onTouchStart(event);
5213
5212
  }, [pause, onTouchStart]);
5214
5213
  const handleTouchMove = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
5215
5214
  if (event.touches && event.touches.length > 1) {
@@ -5217,7 +5216,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5217
5216
  } else {
5218
5217
  touchDeltaXRef.current = event.touches[0].clientX - touchStartXRef.current;
5219
5218
  }
5220
- onTouchMove == null ? void 0 : onTouchMove(event);
5219
+ onTouchMove == null || onTouchMove(event);
5221
5220
  }, [onTouchMove]);
5222
5221
  const handleTouchEnd = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(event => {
5223
5222
  if (touch) {
@@ -5235,7 +5234,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5235
5234
  setPaused(false);
5236
5235
  }, interval || undefined);
5237
5236
  }
5238
- onTouchEnd == null ? void 0 : onTouchEnd(event);
5237
+ onTouchEnd == null || onTouchEnd(event);
5239
5238
  }, [touch, pause, prev, next, touchUnpauseTimeout, interval, onTouchEnd]);
5240
5239
  const shouldPlay = interval != null && !paused && !isSliding;
5241
5240
  const intervalHandleRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
@@ -5255,7 +5254,7 @@ const Carousel = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react
5255
5254
  const indicatorOnClicks = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => indicators && Array.from({
5256
5255
  length: numChildren
5257
5256
  }, (_, index) => event => {
5258
- onSelect == null ? void 0 : onSelect(index, event);
5257
+ onSelect == null || onSelect(index, event);
5259
5258
  }), [indicators, numChildren, onSelect]);
5260
5259
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)(Component, {
5261
5260
  ref: elementRef,
@@ -5579,9 +5578,11 @@ function esm_useUncontrolledProp(propValue, defaultValue, handler) {
5579
5578
  if (!isProp && wasProp && stateValue !== defaultValue) {
5580
5579
  setState(defaultValue);
5581
5580
  }
5582
- return [isProp ? propValue : stateValue, (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((value, ...args) => {
5583
- if (handler) handler(value, ...args);
5581
+ return [isProp ? propValue : stateValue, (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
5582
+ const [value, ...rest] = args;
5583
+ let returnValue = handler == null ? void 0 : handler(value, ...rest);
5584
5584
  setState(value);
5585
+ return returnValue;
5585
5586
  }, [handler])];
5586
5587
  }
5587
5588
 
@@ -5604,6 +5605,7 @@ function esm_useUncontrolled(props, config) {
5604
5605
  }
5605
5606
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useForceUpdate.js
5606
5607
 
5608
+
5607
5609
  /**
5608
5610
  * Returns a function that triggers a component update. the hook equivalent to
5609
5611
  * `this.forceUpdate()` in a class component. In most cases using a state value directly
@@ -5620,14 +5622,10 @@ function esm_useUncontrolled(props, config) {
5620
5622
  * return <button type="button" onClick={updateOnClick}>Hi there</button>
5621
5623
  * ```
5622
5624
  */
5623
-
5624
5625
  function useForceUpdate() {
5625
5626
  // The toggling state value is designed to defeat React optimizations for skipping
5626
- // updates when they are stricting equal to the last state value
5627
- var _useReducer = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(function (state) {
5628
- return !state;
5629
- }, false),
5630
- dispatch = _useReducer[1];
5627
+ // updates when they are strictly equal to the last state value
5628
+ const [, dispatch] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useReducer)(state => !state, false);
5631
5629
  return dispatch;
5632
5630
  }
5633
5631
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownContext.js
@@ -5723,9 +5721,22 @@ function dequal(foo, bar) {
5723
5721
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useSafeState.js
5724
5722
 
5725
5723
 
5724
+
5725
+ /**
5726
+ * `useSafeState` takes the return value of a `useState` hook and wraps the
5727
+ * setter to prevent updates onces the component has unmounted. Can used
5728
+ * with `useMergeState` and `useStateAsync` as well
5729
+ *
5730
+ * @param state The return value of a useStateHook
5731
+ *
5732
+ * ```ts
5733
+ * const [show, setShow] = useSafeState(useState(true));
5734
+ * ```
5735
+ */
5736
+
5726
5737
  function useSafeState(state) {
5727
- var isMounted = useMounted();
5728
- return [state[0], (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (nextState) {
5738
+ const isMounted = useMounted();
5739
+ return [state[0], (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(nextState => {
5729
5740
  if (!isMounted()) return;
5730
5741
  return state[1](nextState);
5731
5742
  }, [isMounted, state[1]])];
@@ -6043,7 +6054,6 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
6043
6054
 
6044
6055
 
6045
6056
 
6046
-
6047
6057
  // eslint-disable-next-line import/no-unused-modules
6048
6058
 
6049
6059
  var toPaddingObject = function toPaddingObject(padding, state) {
@@ -6100,9 +6110,7 @@ function effect(_ref2) {
6100
6110
  return;
6101
6111
  }
6102
6112
  }
6103
- if (false) {}
6104
6113
  if (!contains(state.elements.popper, arrowElement)) {
6105
- if (false) {}
6106
6114
  return;
6107
6115
  }
6108
6116
  state.elements.arrow = arrowElement;
@@ -6236,7 +6244,6 @@ function computeStyles(_ref5) {
6236
6244
  adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
6237
6245
  _options$roundOffsets = options.roundOffsets,
6238
6246
  roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
6239
- if (false) { var transitionProperty; }
6240
6247
  var commonStyles = {
6241
6248
  placement: getBasePlacement(state.placement),
6242
6249
  variation: getVariation(state.placement),
@@ -6695,7 +6702,6 @@ function computeAutoPlacement(state, options) {
6695
6702
  });
6696
6703
  if (allowedPlacements.length === 0) {
6697
6704
  allowedPlacements = placements;
6698
- if (false) {}
6699
6705
  } // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
6700
6706
 
6701
6707
  var overflows = allowedPlacements.reduce(function (acc, placement) {
@@ -7251,13 +7257,6 @@ function mergeByName(modifiers) {
7251
7257
 
7252
7258
 
7253
7259
 
7254
-
7255
-
7256
-
7257
-
7258
-
7259
- var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
7260
- var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
7261
7260
  var DEFAULT_OPTIONS = {
7262
7261
  placement: 'bottom',
7263
7262
  modifiers: [],
@@ -7314,10 +7313,7 @@ function popperGenerator(generatorOptions) {
7314
7313
 
7315
7314
  state.orderedModifiers = orderedModifiers.filter(function (m) {
7316
7315
  return m.enabled;
7317
- }); // Validate the provided modifiers so that the consumer will get warned
7318
- // if one of the modifiers is invalid for any reason
7319
-
7320
- if (false) { var _getComputedStyle, marginTop, marginRight, marginBottom, marginLeft, flipModifier, modifiers; }
7316
+ });
7321
7317
  runModifierEffects();
7322
7318
  return instance.update();
7323
7319
  },
@@ -7336,7 +7332,6 @@ function popperGenerator(generatorOptions) {
7336
7332
  // anymore
7337
7333
 
7338
7334
  if (!areValidElements(reference, popper)) {
7339
- if (false) {}
7340
7335
  return;
7341
7336
  } // Store the reference and popper rects to be read by modifiers
7342
7337
 
@@ -7358,9 +7353,7 @@ function popperGenerator(generatorOptions) {
7358
7353
  state.orderedModifiers.forEach(function (modifier) {
7359
7354
  return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
7360
7355
  });
7361
- var __debug_loops__ = 0;
7362
7356
  for (var index = 0; index < state.orderedModifiers.length; index++) {
7363
- if (false) {}
7364
7357
  if (state.reset === true) {
7365
7358
  state.reset = false;
7366
7359
  index = -1;
@@ -7395,7 +7388,6 @@ function popperGenerator(generatorOptions) {
7395
7388
  }
7396
7389
  };
7397
7390
  if (!areValidElements(reference, popper)) {
7398
- if (false) {}
7399
7391
  return instance;
7400
7392
  }
7401
7393
  instance.setOptions(options).then(function (state) {
@@ -7409,11 +7401,11 @@ function popperGenerator(generatorOptions) {
7409
7401
  // one.
7410
7402
 
7411
7403
  function runModifierEffects() {
7412
- state.orderedModifiers.forEach(function (_ref3) {
7413
- var name = _ref3.name,
7414
- _ref3$options = _ref3.options,
7415
- options = _ref3$options === void 0 ? {} : _ref3$options,
7416
- effect = _ref3.effect;
7404
+ state.orderedModifiers.forEach(function (_ref) {
7405
+ var name = _ref.name,
7406
+ _ref$options = _ref.options,
7407
+ options = _ref$options === void 0 ? {} : _ref$options,
7408
+ effect = _ref.effect;
7417
7409
  if (typeof effect === 'function') {
7418
7410
  var cleanupFn = effect({
7419
7411
  state: state,
@@ -7642,7 +7634,7 @@ function contains_contains(context, node) {
7642
7634
  if (context.compareDocumentPosition) return context === node || !!(context.compareDocumentPosition(node) & 16);
7643
7635
  }
7644
7636
  // EXTERNAL MODULE: ./node_modules/warning/warning.js
7645
- var warning = __webpack_require__(459);
7637
+ var warning = __webpack_require__(773);
7646
7638
  var warning_default = /*#__PURE__*/__webpack_require__.n(warning);
7647
7639
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useClickOutside.js
7648
7640
 
@@ -7804,7 +7796,7 @@ function mergeOptionsWithPopperConfig({
7804
7796
  });
7805
7797
  }
7806
7798
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/DropdownMenu.js
7807
- const DropdownMenu_excluded = ["children"];
7799
+ const DropdownMenu_excluded = ["children", "usePopper"];
7808
7800
  function DropdownMenu_objectWithoutPropertiesLoose(source, excluded) {
7809
7801
  if (source == null) return {};
7810
7802
  var target = {};
@@ -7899,9 +7891,6 @@ function useDropdownMenu(options = {}) {
7899
7891
  });
7900
7892
  return [menuProps, metadata];
7901
7893
  }
7902
- const defaultProps = {
7903
- usePopper: true
7904
- };
7905
7894
  /**
7906
7895
  * Also exported as `<Dropdown.Menu>` from `Dropdown`.
7907
7896
  *
@@ -7910,16 +7899,18 @@ const defaultProps = {
7910
7899
  */
7911
7900
  function DropdownMenu(_ref) {
7912
7901
  let {
7913
- children
7902
+ children,
7903
+ usePopper: usePopperProp = true
7914
7904
  } = _ref,
7915
7905
  options = DropdownMenu_objectWithoutPropertiesLoose(_ref, DropdownMenu_excluded);
7916
- const [props, meta] = useDropdownMenu(options);
7906
+ const [props, meta] = useDropdownMenu(Object.assign({}, options, {
7907
+ usePopper: usePopperProp
7908
+ }));
7917
7909
  return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
7918
7910
  children: children(props, meta)
7919
7911
  });
7920
7912
  }
7921
7913
  DropdownMenu.displayName = 'DropdownMenu';
7922
- DropdownMenu.defaultProps = defaultProps;
7923
7914
 
7924
7915
  /** @component */
7925
7916
  /* harmony default export */ const esm_DropdownMenu = (DropdownMenu);
@@ -7955,46 +7946,59 @@ DropdownMenu.defaultProps = defaultProps;
7955
7946
  // being on the page at once, the prefix is set to a random number. SSRProvider
7956
7947
  // will reset this to zero for consistency between server and client, so in the
7957
7948
  // SSR case multiple copies of React Aria is not supported.
7958
- const $704cf1d3b684cc5c$var$defaultContext = {
7949
+ const $b5e257d569688ac6$var$defaultContext = {
7959
7950
  prefix: String(Math.round(Math.random() * 10000000000)),
7960
- current: 0,
7961
- isSSR: false
7951
+ current: 0
7962
7952
  };
7963
- const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext($704cf1d3b684cc5c$var$defaultContext);
7964
- function $704cf1d3b684cc5c$export$9f8ac96af4b1b2ae(props) {
7965
- let cur = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7966
- let counter = $704cf1d3b684cc5c$var$useCounter(cur === $704cf1d3b684cc5c$var$defaultContext);
7953
+ const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext($b5e257d569688ac6$var$defaultContext);
7954
+ const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createContext(false);
7955
+ // This is only used in React < 18.
7956
+ function $b5e257d569688ac6$var$LegacySSRProvider(props) {
7957
+ let cur = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
7958
+ let counter = $b5e257d569688ac6$var$useCounter(cur === $b5e257d569688ac6$var$defaultContext);
7967
7959
  let [isSSR, setIsSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(true);
7968
7960
  let value = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(()=>({
7969
7961
  // If this is the first SSRProvider, start with an empty string prefix, otherwise
7970
7962
  // append and increment the counter.
7971
- prefix: cur === $704cf1d3b684cc5c$var$defaultContext ? "" : `${cur.prefix}-${counter}`,
7972
- current: 0,
7973
- isSSR: isSSR
7963
+ prefix: cur === $b5e257d569688ac6$var$defaultContext ? "" : `${cur.prefix}-${counter}`,
7964
+ current: 0
7974
7965
  }), [
7975
7966
  cur,
7976
- counter,
7977
- isSSR
7967
+ counter
7978
7968
  ]);
7979
7969
  // If on the client, and the component was initially server rendered,
7980
7970
  // then schedule a layout effect to update the component after hydration.
7981
- if (typeof window !== "undefined") // This if statement technically breaks the rules of hooks, but is safe
7971
+ if (typeof document !== "undefined") // This if statement technically breaks the rules of hooks, but is safe
7982
7972
  // because the condition never changes after mounting.
7983
7973
  // eslint-disable-next-line react-hooks/rules-of-hooks
7984
7974
  (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(()=>{
7985
7975
  setIsSSR(false);
7986
7976
  }, []);
7987
- return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($704cf1d3b684cc5c$var$SSRContext.Provider, {
7977
+ return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$SSRContext.Provider, {
7988
7978
  value: value
7989
- }, props.children);
7979
+ }, /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$IsSSRContext.Provider, {
7980
+ value: isSSR
7981
+ }, props.children));
7990
7982
  }
7991
- let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
7992
- let $704cf1d3b684cc5c$var$componentIds = new WeakMap();
7993
- function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
7994
- let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
7983
+ let $b5e257d569688ac6$var$warnedAboutSSRProvider = false;
7984
+ function $b5e257d569688ac6$export$9f8ac96af4b1b2ae(props) {
7985
+ if (typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useId"] === "function") {
7986
+ if ( true && !$b5e257d569688ac6$var$warnedAboutSSRProvider) {
7987
+ console.warn("In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.");
7988
+ $b5e257d569688ac6$var$warnedAboutSSRProvider = true;
7989
+ }
7990
+ return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement((0, external_root_React_commonjs2_react_commonjs_react_amd_react_).Fragment, null, props.children);
7991
+ }
7992
+ return /*#__PURE__*/ (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).createElement($b5e257d569688ac6$var$LegacySSRProvider, props);
7993
+ }
7994
+ let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
7995
+ let $b5e257d569688ac6$var$componentIds = new WeakMap();
7996
+ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
7997
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
7995
7998
  let ref = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
7999
+ // eslint-disable-next-line rulesdir/pure-render
7996
8000
  if (ref.current === null && !isDisabled) {
7997
- var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
8001
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
7998
8002
  // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
7999
8003
  // This means our id counter will be incremented twice instead of once. This is a problem because on the
8000
8004
  // server, components are only rendered once and so ids generated on the server won't match the client.
@@ -8007,9 +8011,9 @@ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
8007
8011
  // @ts-ignore
8008
8012
  let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
8009
8013
  if (currentOwner) {
8010
- let prevComponentValue = $704cf1d3b684cc5c$var$componentIds.get(currentOwner);
8014
+ let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
8011
8015
  if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
8012
- $704cf1d3b684cc5c$var$componentIds.set(currentOwner, {
8016
+ $b5e257d569688ac6$var$componentIds.set(currentOwner, {
8013
8017
  id: ctx.current,
8014
8018
  state: currentOwner.memoizedState
8015
8019
  });
@@ -8018,24 +8022,48 @@ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
8018
8022
  // Reset the counter, and remove from the weak map so we don't
8019
8023
  // do this for subsequent useId calls.
8020
8024
  ctx.current = prevComponentValue.id;
8021
- $704cf1d3b684cc5c$var$componentIds.delete(currentOwner);
8025
+ $b5e257d569688ac6$var$componentIds.delete(currentOwner);
8022
8026
  }
8023
8027
  }
8028
+ // eslint-disable-next-line rulesdir/pure-render
8024
8029
  ref.current = ++ctx.current;
8025
8030
  }
8031
+ // eslint-disable-next-line rulesdir/pure-render
8026
8032
  return ref.current;
8027
8033
  }
8028
- function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
8029
- let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($704cf1d3b684cc5c$var$SSRContext);
8034
+ function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
8035
+ let ctx = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$SSRContext);
8030
8036
  // If we are rendering in a non-DOM environment, and there's no SSRProvider,
8031
8037
  // provide a warning to hint to the developer to add one.
8032
- if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
8033
- let counter = $704cf1d3b684cc5c$var$useCounter(!!defaultId);
8034
- return defaultId || `react-aria${ctx.prefix}-${counter}`;
8038
+ if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
8039
+ let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
8040
+ let prefix = ctx === $b5e257d569688ac6$var$defaultContext && "production" === "test" ? 0 : `react-aria${ctx.prefix}`;
8041
+ return defaultId || `${prefix}-${counter}`;
8042
+ }
8043
+ function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
8044
+ // @ts-ignore
8045
+ let id = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_).useId();
8046
+ let [didSSR] = (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
8047
+ let prefix = didSSR || "production" === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
8048
+ return defaultId || `${prefix}-${id}`;
8049
+ }
8050
+ const $b5e257d569688ac6$export$619500959fc48b26 = typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
8051
+ function $b5e257d569688ac6$var$getSnapshot() {
8052
+ return false;
8035
8053
  }
8036
- function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
8037
- let cur = (0, $89yE2$useContext)($704cf1d3b684cc5c$var$SSRContext);
8038
- return cur.isSSR;
8054
+ function $b5e257d569688ac6$var$getServerSnapshot() {
8055
+ return true;
8056
+ }
8057
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
8058
+ function $b5e257d569688ac6$var$subscribe(onStoreChange) {
8059
+ // noop
8060
+ return ()=>{};
8061
+ }
8062
+ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
8063
+ // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
8064
+ if (typeof (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useSyncExternalStore"] === "function") return (0, external_root_React_commonjs2_react_commonjs_react_amd_react_)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
8065
+ // eslint-disable-next-line react-hooks/rules-of-hooks
8066
+ return (0, external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)($b5e257d569688ac6$var$IsSSRContext);
8039
8067
  }
8040
8068
 
8041
8069
 
@@ -8064,7 +8092,7 @@ const DropdownToggle_noop = () => {};
8064
8092
  * @memberOf Dropdown
8065
8093
  */
8066
8094
  function useDropdownToggle() {
8067
- const id = $704cf1d3b684cc5c$export$619500959fc48b26();
8095
+ const id = $b5e257d569688ac6$export$619500959fc48b26();
8068
8096
  const {
8069
8097
  show = false,
8070
8098
  toggle = DropdownToggle_noop,
@@ -8752,7 +8780,7 @@ const DropdownMenu_DropdownMenu = /*#__PURE__*/external_root_React_commonjs2_rea
8752
8780
  useIsomorphicEffect(() => {
8753
8781
  // Popper's initial position for the menu is incorrect when
8754
8782
  // renderOnMount=true. Need to call update() to correct it.
8755
- if (show) popper == null ? void 0 : popper.update();
8783
+ if (show) popper == null || popper.update();
8756
8784
  }, [show]);
8757
8785
  if (!hasShown && !renderOnMount && !isInputGroup) return null;
8758
8786
 
@@ -8970,16 +8998,16 @@ const Dropdown_Dropdown = /*#__PURE__*/external_root_React_commonjs2_react_commo
8970
8998
  return true;
8971
8999
  };
8972
9000
  const handleToggle = useEventCallback((nextShow, meta) => {
8973
- var _meta$originalEvent, _meta$originalEvent$t;
9001
+ var _meta$originalEvent;
8974
9002
  /** Checking if target of event is ToggleButton,
8975
9003
  * if it is then nullify mousedown event
8976
9004
  */
8977
- const isToggleButton = (_meta$originalEvent = meta.originalEvent) == null ? void 0 : (_meta$originalEvent$t = _meta$originalEvent.target) == null ? void 0 : _meta$originalEvent$t.classList.contains('dropdown-toggle');
9005
+ const isToggleButton = (_meta$originalEvent = meta.originalEvent) == null || (_meta$originalEvent = _meta$originalEvent.target) == null ? void 0 : _meta$originalEvent.classList.contains('dropdown-toggle');
8978
9006
  if (isToggleButton && meta.source === 'mousedown') {
8979
9007
  return;
8980
9008
  }
8981
9009
  if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';
8982
- if (isClosingPermitted(meta.source)) onToggle == null ? void 0 : onToggle(nextShow, meta);
9010
+ if (isClosingPermitted(meta.source)) onToggle == null || onToggle(nextShow, meta);
8983
9011
  });
8984
9012
  const alignEnd = align === 'end';
8985
9013
  const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
@@ -10930,6 +10958,19 @@ function NoopTransition({
10930
10958
  return child;
10931
10959
  }
10932
10960
  /* harmony default export */ const esm_NoopTransition = (NoopTransition);
10961
+ ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
10962
+
10963
+ function isEscKey(e) {
10964
+ return e.code === 'Escape' || e.keyCode === 27;
10965
+ }
10966
+ function getReactVersion() {
10967
+ const parts = external_root_React_commonjs2_react_commonjs_react_amd_react_.version.split('.');
10968
+ return {
10969
+ major: +parts[0],
10970
+ minor: +parts[1],
10971
+ patch: +parts[2]
10972
+ };
10973
+ }
10933
10974
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/useRTGTransitionProps.js
10934
10975
  const useRTGTransitionProps_excluded = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
10935
10976
  function useRTGTransitionProps_objectWithoutPropertiesLoose(source, excluded) {
@@ -10946,6 +10987,7 @@ function useRTGTransitionProps_objectWithoutPropertiesLoose(source, excluded) {
10946
10987
  }
10947
10988
 
10948
10989
 
10990
+
10949
10991
  /**
10950
10992
  * Normalizes RTG transition callbacks with nodeRef to better support
10951
10993
  * strict mode.
@@ -10965,8 +11007,12 @@ function useRTGTransitionProps(_ref) {
10965
11007
  children
10966
11008
  } = _ref,
10967
11009
  props = useRTGTransitionProps_objectWithoutPropertiesLoose(_ref, useRTGTransitionProps_excluded);
11010
+ const {
11011
+ major
11012
+ } = getReactVersion();
11013
+ const childRef = major >= 19 ? children.props.ref : children.ref;
10968
11014
  const nodeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
10969
- const mergedRef = esm_useMergedRefs(nodeRef, typeof children === 'function' ? null : children.ref);
11015
+ const mergedRef = esm_useMergedRefs(nodeRef, typeof children === 'function' ? null : childRef);
10970
11016
  const normalize = callback => param => {
10971
11017
  if (callback && nodeRef.current) {
10972
11018
  callback(nodeRef.current, param);
@@ -11132,11 +11178,6 @@ function renderTransition(component, runTransition, props) {
11132
11178
  }
11133
11179
  return /*#__PURE__*/(0,jsx_runtime.jsx)(esm_NoopTransition, Object.assign({}, props));
11134
11180
  }
11135
- ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/utils.js
11136
- /* eslint-disable import/prefer-default-export */
11137
- function isEscKey(e) {
11138
- return e.code === 'Escape' || e.keyCode === 27;
11139
- }
11140
11181
  ;// CONCATENATED MODULE: ./node_modules/@restart/ui/esm/Modal.js
11141
11182
  const Modal_excluded = ["show", "role", "className", "style", "children", "backdrop", "keyboard", "onBackdropClick", "onEscapeKeyDown", "transition", "runTransition", "backdropTransition", "runBackdropTransition", "autoFocus", "enforceFocus", "restoreFocus", "restoreFocusOptions", "renderDialog", "renderBackdrop", "manager", "container", "onShow", "onHide", "onExit", "onExited", "onExiting", "onEnter", "onEntering", "onEntered"];
11142
11183
  function Modal_objectWithoutPropertiesLoose(source, excluded) {
@@ -11657,8 +11698,8 @@ const AbstractModalHeader = /*#__PURE__*/external_root_React_commonjs2_react_com
11657
11698
  }, ref) => {
11658
11699
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(src_ModalContext);
11659
11700
  const handleClick = useEventCallback(() => {
11660
- context == null ? void 0 : context.onHide();
11661
- onHide == null ? void 0 : onHide();
11701
+ context == null || context.onHide();
11702
+ onHide == null || onHide();
11662
11703
  });
11663
11704
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
11664
11705
  ref: ref,
@@ -12025,7 +12066,7 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12025
12066
  });
12026
12067
  useWillUnmount(() => {
12027
12068
  esm_removeEventListener(window, 'resize', handleWindowResize);
12028
- removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();
12069
+ removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
12029
12070
  });
12030
12071
 
12031
12072
  // We prevent the modal from closing during a drag by detecting where the
@@ -12061,11 +12102,11 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12061
12102
  ignoreBackdropClickRef.current = false;
12062
12103
  return;
12063
12104
  }
12064
- onHide == null ? void 0 : onHide();
12105
+ onHide == null || onHide();
12065
12106
  };
12066
12107
  const handleEscapeKeyDown = e => {
12067
12108
  if (keyboard) {
12068
- onEscapeKeyDown == null ? void 0 : onEscapeKeyDown(e);
12109
+ onEscapeKeyDown == null || onEscapeKeyDown(e);
12069
12110
  } else {
12070
12111
  // Call preventDefault to stop modal from closing in @restart/ui.
12071
12112
  e.preventDefault();
@@ -12079,21 +12120,21 @@ const Modal_Modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
12079
12120
  if (node) {
12080
12121
  updateDialogStyle(node);
12081
12122
  }
12082
- onEnter == null ? void 0 : onEnter(node, isAppearing);
12123
+ onEnter == null || onEnter(node, isAppearing);
12083
12124
  };
12084
12125
  const handleExit = node => {
12085
- removeStaticModalAnimationRef.current == null ? void 0 : removeStaticModalAnimationRef.current();
12086
- onExit == null ? void 0 : onExit(node);
12126
+ removeStaticModalAnimationRef.current == null || removeStaticModalAnimationRef.current();
12127
+ onExit == null || onExit(node);
12087
12128
  };
12088
12129
  const handleEntering = (node, isAppearing) => {
12089
- onEntering == null ? void 0 : onEntering(node, isAppearing);
12130
+ onEntering == null || onEntering(node, isAppearing);
12090
12131
 
12091
12132
  // FIXME: This should work even when animation is disabled.
12092
12133
  esm_addEventListener(window, 'resize', handleWindowResize);
12093
12134
  };
12094
12135
  const handleExited = node => {
12095
12136
  if (node) node.style.display = ''; // RHL removes it sometimes
12096
- onExited == null ? void 0 : onExited(node);
12137
+ onExited == null || onExited(node);
12097
12138
 
12098
12139
  // FIXME: This should work even when animation is disabled.
12099
12140
  esm_removeEventListener(window, 'resize', handleWindowResize);
@@ -12191,7 +12232,7 @@ Modal_Modal.propTypes = Modal_propTypes;
12191
12232
  BACKDROP_TRANSITION_DURATION: 150
12192
12233
  }));
12193
12234
  // EXTERNAL MODULE: ./node_modules/prop-types-extra/lib/all.js
12194
- var lib_all = __webpack_require__(946);
12235
+ var lib_all = __webpack_require__(526);
12195
12236
  var all_default = /*#__PURE__*/__webpack_require__.n(lib_all);
12196
12237
  ;// CONCATENATED MODULE: ./src/NavItem.tsx
12197
12238
  var NavItem_jsxFileName = "/Users/kyletsang/Documents/Kyle/Code/react-bootstrap/src/NavItem.tsx";
@@ -12246,11 +12287,15 @@ const NavLink_propTypes = {
12246
12287
  * the role defaults to 'tab'
12247
12288
  * */
12248
12289
  role: (prop_types_default()).string,
12249
- /** The HTML href attribute for the `NavLink` */
12290
+ /**
12291
+ * The HTML href attribute for the `NavLink`. Used as the unique identifier
12292
+ * for the `NavLink` if an `eventKey` is not provided.
12293
+ */
12250
12294
  href: (prop_types_default()).string,
12251
12295
  /**
12252
12296
  * Uniquely identifies the `NavItem` amongst its siblings,
12253
12297
  * used to determine and control the active state of the parent `Nav`
12298
+ * as well as onSelect behavior of a parent `Navbar`.
12254
12299
  */
12255
12300
  eventKey: prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number]),
12256
12301
  /** @default 'a' */
@@ -12280,7 +12325,7 @@ const NavLink = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
12280
12325
  className: classnames_default()(className, bsPrefix, disabled && 'disabled', meta.isActive && 'active')
12281
12326
  }, void 0, false, {
12282
12327
  fileName: NavLink_jsxFileName,
12283
- lineNumber: 76,
12328
+ lineNumber: 80,
12284
12329
  columnNumber: 9
12285
12330
  }, undefined);
12286
12331
  });
@@ -12577,12 +12622,12 @@ NavbarToggle.propTypes = NavbarToggle_propTypes;
12577
12622
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useMediaQuery.js
12578
12623
 
12579
12624
 
12580
- var matchersByWindow = new WeakMap();
12581
- var getMatcher = function getMatcher(query, targetWindow) {
12625
+ const matchersByWindow = new WeakMap();
12626
+ const getMatcher = (query, targetWindow) => {
12582
12627
  if (!query || !targetWindow) return undefined;
12583
- var matchers = matchersByWindow.get(targetWindow) || new Map();
12628
+ const matchers = matchersByWindow.get(targetWindow) || new Map();
12584
12629
  matchersByWindow.set(targetWindow, matchers);
12585
- var mql = matchers.get(query);
12630
+ let mql = matchers.get(query);
12586
12631
  if (!mql) {
12587
12632
  mql = targetWindow.matchMedia(query);
12588
12633
  mql.refCount = 0;
@@ -12609,30 +12654,22 @@ var getMatcher = function getMatcher(query, targetWindow) {
12609
12654
  * @param query A media query
12610
12655
  * @param targetWindow The window to match against, uses the globally available one as a default.
12611
12656
  */
12612
-
12613
- function useMediaQuery(query, targetWindow) {
12614
- if (targetWindow === void 0) {
12615
- targetWindow = typeof window === 'undefined' ? undefined : window;
12616
- }
12617
- var mql = getMatcher(query, targetWindow);
12618
- var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(function () {
12619
- return mql ? mql.matches : false;
12620
- }),
12621
- matches = _useState[0],
12622
- setMatches = _useState[1];
12623
- useIsomorphicEffect(function () {
12624
- var mql = getMatcher(query, targetWindow);
12657
+ function useMediaQuery(query, targetWindow = typeof window === 'undefined' ? undefined : window) {
12658
+ const mql = getMatcher(query, targetWindow);
12659
+ const [matches, setMatches] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(() => mql ? mql.matches : false);
12660
+ useIsomorphicEffect(() => {
12661
+ let mql = getMatcher(query, targetWindow);
12625
12662
  if (!mql) {
12626
12663
  return setMatches(false);
12627
12664
  }
12628
- var matchers = matchersByWindow.get(targetWindow);
12629
- var handleChange = function handleChange() {
12665
+ let matchers = matchersByWindow.get(targetWindow);
12666
+ const handleChange = () => {
12630
12667
  setMatches(mql.matches);
12631
12668
  };
12632
12669
  mql.refCount++;
12633
12670
  mql.addListener(handleChange);
12634
12671
  handleChange();
12635
- return function () {
12672
+ return () => {
12636
12673
  mql.removeListener(handleChange);
12637
12674
  mql.refCount--;
12638
12675
  if (mql.refCount <= 0) {
@@ -12646,7 +12683,6 @@ function useMediaQuery(query, targetWindow) {
12646
12683
  ;// CONCATENATED MODULE: ./node_modules/@restart/hooks/esm/useBreakpoint.js
12647
12684
 
12648
12685
 
12649
-
12650
12686
  /**
12651
12687
  * Create a responsive hook we a set of breakpoint names and widths.
12652
12688
  * You can use any valid css units as well as a numbers (for pixels).
@@ -12670,29 +12706,30 @@ function useMediaQuery(query, targetWindow) {
12670
12706
  * @param breakpointValues A object hash of names to breakpoint dimensions
12671
12707
  */
12672
12708
  function createBreakpointHook(breakpointValues) {
12673
- var names = Object.keys(breakpointValues);
12709
+ const names = Object.keys(breakpointValues);
12674
12710
  function and(query, next) {
12675
12711
  if (query === next) {
12676
12712
  return next;
12677
12713
  }
12678
- return query ? query + " and " + next : next;
12714
+ return query ? `${query} and ${next}` : next;
12679
12715
  }
12680
12716
  function getNext(breakpoint) {
12681
12717
  return names[Math.min(names.indexOf(breakpoint) + 1, names.length - 1)];
12682
12718
  }
12683
12719
  function getMaxQuery(breakpoint) {
12684
- var next = getNext(breakpoint);
12685
- var value = breakpointValues[next];
12686
- if (typeof value === 'number') value = value - 0.2 + "px";else value = "calc(" + value + " - 0.2px)";
12687
- return "(max-width: " + value + ")";
12720
+ const next = getNext(breakpoint);
12721
+ let value = breakpointValues[next];
12722
+ if (typeof value === 'number') value = `${value - 0.2}px`;else value = `calc(${value} - 0.2px)`;
12723
+ return `(max-width: ${value})`;
12688
12724
  }
12689
12725
  function getMinQuery(breakpoint) {
12690
- var value = breakpointValues[breakpoint];
12726
+ let value = breakpointValues[breakpoint];
12691
12727
  if (typeof value === 'number') {
12692
- value = value + "px";
12728
+ value = `${value}px`;
12693
12729
  }
12694
- return "(min-width: " + value + ")";
12730
+ return `(min-width: ${value})`;
12695
12731
  }
12732
+
12696
12733
  /**
12697
12734
  * Match a set of breakpoints
12698
12735
  *
@@ -12709,35 +12746,49 @@ function createBreakpointHook(breakpointValues) {
12709
12746
  * @param window Optionally specify the target window to match against (useful when rendering into iframes)
12710
12747
  */
12711
12748
 
12749
+ /**
12750
+ * Match a single breakpoint exactly, up, or down.
12751
+ *
12752
+ * ```tsx
12753
+ * const PhoneOnly = () => {
12754
+ * const isSmall = useBreakpoint('sm', 'down');
12755
+ *
12756
+ * if (isSmall) return <div>On a Small Screen!</div>
12757
+ * return null;
12758
+ * }
12759
+ * ```
12760
+ *
12761
+ * @param breakpoint The breakpoint key
12762
+ * @param direction A direction 'up' for a max, 'down' for min, true to match only the breakpoint
12763
+ * @param window Optionally specify the target window to match against (useful when rendering into iframes)
12764
+ */
12765
+
12712
12766
  function useBreakpoint(breakpointOrMap, direction, window) {
12713
- var breakpointMap;
12767
+ let breakpointMap;
12714
12768
  if (typeof breakpointOrMap === 'object') {
12715
12769
  breakpointMap = breakpointOrMap;
12716
12770
  window = direction;
12717
12771
  direction = true;
12718
12772
  } else {
12719
- var _breakpointMap;
12720
12773
  direction = direction || true;
12721
- breakpointMap = (_breakpointMap = {}, _breakpointMap[breakpointOrMap] = direction, _breakpointMap);
12774
+ breakpointMap = {
12775
+ [breakpointOrMap]: direction
12776
+ };
12722
12777
  }
12723
- var query = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
12724
- return Object.entries(breakpointMap).reduce(function (query, _ref) {
12725
- var key = _ref[0],
12726
- direction = _ref[1];
12727
- if (direction === 'up' || direction === true) {
12728
- query = and(query, getMinQuery(key));
12729
- }
12730
- if (direction === 'down' || direction === true) {
12731
- query = and(query, getMaxQuery(key));
12732
- }
12733
- return query;
12734
- }, '');
12735
- }, [JSON.stringify(breakpointMap)]);
12778
+ let query = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => Object.entries(breakpointMap).reduce((query, [key, direction]) => {
12779
+ if (direction === 'up' || direction === true) {
12780
+ query = and(query, getMinQuery(key));
12781
+ }
12782
+ if (direction === 'down' || direction === true) {
12783
+ query = and(query, getMaxQuery(key));
12784
+ }
12785
+ return query;
12786
+ }, ''), [JSON.stringify(breakpointMap)]);
12736
12787
  return useMediaQuery(query, window);
12737
12788
  }
12738
12789
  return useBreakpoint;
12739
12790
  }
12740
- var useBreakpoint = createBreakpointHook({
12791
+ const useBreakpoint = createBreakpointHook({
12741
12792
  xs: 0,
12742
12793
  sm: 576,
12743
12794
  md: 768,
@@ -13144,8 +13195,8 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13144
13195
  setShowOffcanvas(responsive ? show && !hideResponsiveOffcanvas : show);
13145
13196
  }, [show, responsive, hideResponsiveOffcanvas]);
13146
13197
  const handleHide = useEventCallback(() => {
13147
- onToggle == null ? void 0 : onToggle();
13148
- onHide == null ? void 0 : onHide();
13198
+ onToggle == null || onToggle();
13199
+ onHide == null || onHide();
13149
13200
  });
13150
13201
  const modalContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
13151
13202
  onHide: handleHide
@@ -13164,11 +13215,11 @@ const Offcanvas = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_reac
13164
13215
  }
13165
13216
  const handleEnter = (node, ...args) => {
13166
13217
  if (node) node.style.visibility = 'visible';
13167
- onEnter == null ? void 0 : onEnter(node, ...args);
13218
+ onEnter == null || onEnter(node, ...args);
13168
13219
  };
13169
13220
  const handleExited = (node, ...args) => {
13170
13221
  if (node) node.style.visibility = '';
13171
- onExited == null ? void 0 : onExited(...args);
13222
+ onExited == null || onExited(...args);
13172
13223
  };
13173
13224
  const renderBackdrop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(backdropProps => /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
13174
13225
  ...backdropProps,
@@ -13369,6 +13420,9 @@ const Navbar_propTypes = {
13369
13420
  * Toggles `expanded` to `false` after the onSelect event of a descendant of a
13370
13421
  * child `<Nav>` fires. Does nothing if no `<Nav>` or `<Nav>` descendants exist.
13371
13422
  *
13423
+ * `<NavLink>` descendants of `<Nav>` will not trigger the `onSelect` event unless
13424
+ * an `eventKey` or `href` prop is defined.
13425
+ *
13372
13426
  * Manually controlling `expanded` via the onSelect callback is recommended instead,
13373
13427
  * for more complex operations that need to be executed after
13374
13428
  * the `select` event of `<Nav>` descendants.
@@ -13409,9 +13463,9 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13409
13463
  });
13410
13464
  const bsPrefix = useBootstrapPrefix(initialBsPrefix, 'navbar');
13411
13465
  const handleCollapse = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
13412
- onSelect == null ? void 0 : onSelect(...args);
13466
+ onSelect == null || onSelect(...args);
13413
13467
  if (collapseOnSelect && expanded) {
13414
- onToggle == null ? void 0 : onToggle(false);
13468
+ onToggle == null || onToggle(false);
13415
13469
  }
13416
13470
  }, [onSelect, collapseOnSelect, expanded, onToggle]);
13417
13471
 
@@ -13439,17 +13493,17 @@ const Navbar = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
13439
13493
  className: classnames_default()(className, bsPrefix, expand && expandClass, variant && `${bsPrefix}-${variant}`, bg && `bg-${bg}`, sticky && `sticky-${sticky}`, fixed && `fixed-${fixed}`)
13440
13494
  }, void 0, false, {
13441
13495
  fileName: Navbar_jsxFileName,
13442
- lineNumber: 189,
13496
+ lineNumber: 192,
13443
13497
  columnNumber: 11
13444
13498
  }, undefined)
13445
13499
  }, void 0, false, {
13446
13500
  fileName: Navbar_jsxFileName,
13447
- lineNumber: 188,
13501
+ lineNumber: 191,
13448
13502
  columnNumber: 9
13449
13503
  }, undefined)
13450
13504
  }, void 0, false, {
13451
13505
  fileName: Navbar_jsxFileName,
13452
- lineNumber: 187,
13506
+ lineNumber: 190,
13453
13507
  columnNumber: 7
13454
13508
  }, undefined);
13455
13509
  });
@@ -14057,12 +14111,12 @@ const Overlay_propTypes = {
14057
14111
  * A component instance, DOM node, or function that returns either.
14058
14112
  * The `container` element will have the Overlay appended to it via a React portal.
14059
14113
  */
14060
- container: prop_types_default().oneOfType([lib/* componentOrElement */.ax, (prop_types_default()).func]),
14114
+ container: prop_types_default().oneOfType([lib/* componentOrElement */.NP, (prop_types_default()).func]),
14061
14115
  /**
14062
14116
  * A component instance, DOM node, or function that returns either.
14063
14117
  * The overlay will be positioned in relation to the `target`
14064
14118
  */
14065
- target: prop_types_default().oneOfType([lib/* componentOrElement */.ax, (prop_types_default()).func]),
14119
+ target: prop_types_default().oneOfType([lib/* componentOrElement */.NP, (prop_types_default()).func]),
14066
14120
  /**
14067
14121
  * Set the visibility of the Overlay
14068
14122
  */
@@ -14088,7 +14142,7 @@ const Overlay_propTypes = {
14088
14142
  * Animate the entering and exiting of the Overlay. `true` will use the `<Fade>` transition,
14089
14143
  * or a custom react-transition-group `<Transition>` component can be provided.
14090
14144
  */
14091
- transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.nm]),
14145
+ transition: prop_types_default().oneOfType([(prop_types_default()).bool, lib/* elementType */.rk]),
14092
14146
  /**
14093
14147
  * Callback fired before the Overlay transitions in
14094
14148
  */
@@ -14144,12 +14198,12 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14144
14198
  const actualTransition = transition === true ? src_Fade : transition || undefined;
14145
14199
  const handleFirstUpdate = useEventCallback(state => {
14146
14200
  setFirstRenderedState(state);
14147
- popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
14201
+ popperConfig == null || popperConfig.onFirstUpdate == null || popperConfig.onFirstUpdate(state);
14148
14202
  });
14149
14203
  useIsomorphicEffect(() => {
14150
14204
  if (firstRenderedState && outerProps.target) {
14151
14205
  // Must wait for target element to resolve before updating popper.
14152
- popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
14206
+ popperRef.current.scheduleUpdate == null || popperRef.current.scheduleUpdate();
14153
14207
  }
14154
14208
  }, [firstRenderedState, outerProps.target]);
14155
14209
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
@@ -14174,7 +14228,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14174
14228
  popper: popperObj,
14175
14229
  show
14176
14230
  }) => {
14177
- var _popperObj$state, _popperObj$state$modi;
14231
+ var _popperObj$state;
14178
14232
  wrapRefs(overlayProps, arrowProps);
14179
14233
  // Need to get placement from popper object, handling case when overlay is flipped using 'flip' prop
14180
14234
  const updatedPlacement = popperObj == null ? void 0 : popperObj.placement;
@@ -14182,7 +14236,7 @@ const Overlay_Overlay = /*#__PURE__*/external_root_React_commonjs2_react_commonj
14182
14236
  state: popperObj == null ? void 0 : popperObj.state,
14183
14237
  scheduleUpdate: popperObj == null ? void 0 : popperObj.update,
14184
14238
  placement: updatedPlacement,
14185
- outOfBoundaries: (popperObj == null ? void 0 : (_popperObj$state = popperObj.state) == null ? void 0 : (_popperObj$state$modi = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state$modi.isReferenceHidden) || false,
14239
+ outOfBoundaries: (popperObj == null || (_popperObj$state = popperObj.state) == null || (_popperObj$state = _popperObj$state.modifiersData.hide) == null ? void 0 : _popperObj$state.isReferenceHidden) || false,
14186
14240
  strategy: popperConfig.strategy
14187
14241
  });
14188
14242
  const hasDoneInitialMeasure = !!firstRenderedState;
@@ -14371,15 +14425,15 @@ const OverlayTrigger = ({
14371
14425
  }, [delay.hide, setShow, timeout]);
14372
14426
  const handleFocus = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
14373
14427
  handleShow();
14374
- onFocus == null ? void 0 : onFocus(...args);
14428
+ onFocus == null || onFocus(...args);
14375
14429
  }, [handleShow, onFocus]);
14376
14430
  const handleBlur = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
14377
14431
  handleHide();
14378
- onBlur == null ? void 0 : onBlur(...args);
14432
+ onBlur == null || onBlur(...args);
14379
14433
  }, [handleHide, onBlur]);
14380
14434
  const handleClick = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
14381
14435
  setShow(!show);
14382
- onClick == null ? void 0 : onClick(...args);
14436
+ onClick == null || onClick(...args);
14383
14437
  }, [onClick, setShow, show]);
14384
14438
  const handleMouseOver = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)((...args) => {
14385
14439
  handleMouseOverOut(handleShow, args, 'fromElement');
@@ -15255,7 +15309,7 @@ SplitButton.displayName = 'SplitButton';
15255
15309
  /* harmony default export */ const src_SplitButton = (SplitButton);
15256
15310
  ;// CONCATENATED MODULE: ./src/SSRProvider.ts
15257
15311
 
15258
- /* harmony default export */ const SSRProvider = ($704cf1d3b684cc5c$export$9f8ac96af4b1b2ae);
15312
+ /* harmony default export */ const SSRProvider = ($b5e257d569688ac6$export$9f8ac96af4b1b2ae);
15259
15313
  ;// CONCATENATED MODULE: ./src/createUtilityClasses.ts
15260
15314
 
15261
15315
 
@@ -15485,7 +15539,7 @@ const Tabs = props => {
15485
15539
  children
15486
15540
  } = props;
15487
15541
  const [activeKey, onSelect] = esm_useUncontrolledProp(propsActiveKey, defaultActiveKey, propsOnSelect);
15488
- const id = $704cf1d3b684cc5c$export$619500959fc48b26(userId);
15542
+ const id = $b5e257d569688ac6$export$619500959fc48b26(userId);
15489
15543
  const generateChildId = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => generateCustomChildId || ((key, type) => id ? `${id}-${type}-${key}` : null), [id, generateCustomChildId]);
15490
15544
  const tabContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => ({
15491
15545
  onSelect,
@@ -16128,7 +16182,7 @@ const ToastHeader = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_re
16128
16182
  bsPrefix = useBootstrapPrefix(bsPrefix, 'toast-header');
16129
16183
  const context = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(src_ToastContext);
16130
16184
  const handleClick = useEventCallback(e => {
16131
- context == null ? void 0 : context.onClose == null ? void 0 : context.onClose(e);
16185
+ context == null || context.onClose == null || context.onClose(e);
16132
16186
  });
16133
16187
  return /*#__PURE__*/(0,jsx_dev_runtime.jsxDEV)("div", {
16134
16188
  ref: ref,
@@ -16283,7 +16337,7 @@ const Toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
16283
16337
  const autohideToast = !!(autohide && show);
16284
16338
  const autohideFunc = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
16285
16339
  if (autohideToast) {
16286
- onCloseRef.current == null ? void 0 : onCloseRef.current();
16340
+ onCloseRef.current == null || onCloseRef.current();
16287
16341
  }
16288
16342
  }, [autohideToast]);
16289
16343
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {