willba-component-library 0.3.0 → 0.3.2

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.
package/lib/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react/jsx-runtime')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'react/jsx-runtime'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WillbaComponentLibrary = {}, global.React, global.jsxRuntime));
5
- })(this, (function (exports, React, jsxRuntime) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react/jsx-runtime'), require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react/jsx-runtime', 'react'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.WillbaComponentLibrary = {}, global.jsxRuntime, global.React));
5
+ })(this, (function (exports, jsxRuntime, React) { 'use strict';
6
6
 
7
7
  /******************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -76,8 +76,6 @@
76
76
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
77
77
  };
78
78
 
79
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
80
-
81
79
  function getDefaultExportFromCjs (x) {
82
80
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
83
81
  }
@@ -90,76 +88,83 @@
90
88
  http://jedwatson.github.io/classnames
91
89
  */
92
90
 
93
- (function (module) {
94
- /* global define */
95
-
96
- (function () {
91
+ var hasRequiredClassnames;
97
92
 
98
- var hasOwn = {}.hasOwnProperty;
93
+ function requireClassnames () {
94
+ if (hasRequiredClassnames) return classnames.exports;
95
+ hasRequiredClassnames = 1;
96
+ (function (module) {
97
+ /* global define */
99
98
 
100
- function classNames () {
101
- var classes = '';
99
+ (function () {
102
100
 
103
- for (var i = 0; i < arguments.length; i++) {
104
- var arg = arguments[i];
105
- if (arg) {
106
- classes = appendClass(classes, parseValue(arg));
107
- }
108
- }
101
+ var hasOwn = {}.hasOwnProperty;
109
102
 
110
- return classes;
111
- }
103
+ function classNames () {
104
+ var classes = '';
112
105
 
113
- function parseValue (arg) {
114
- if (typeof arg === 'string' || typeof arg === 'number') {
115
- return arg;
116
- }
106
+ for (var i = 0; i < arguments.length; i++) {
107
+ var arg = arguments[i];
108
+ if (arg) {
109
+ classes = appendClass(classes, parseValue(arg));
110
+ }
111
+ }
117
112
 
118
- if (typeof arg !== 'object') {
119
- return '';
113
+ return classes;
120
114
  }
121
115
 
122
- if (Array.isArray(arg)) {
123
- return classNames.apply(null, arg);
124
- }
116
+ function parseValue (arg) {
117
+ if (typeof arg === 'string' || typeof arg === 'number') {
118
+ return arg;
119
+ }
125
120
 
126
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
127
- return arg.toString();
128
- }
121
+ if (typeof arg !== 'object') {
122
+ return '';
123
+ }
129
124
 
130
- var classes = '';
125
+ if (Array.isArray(arg)) {
126
+ return classNames.apply(null, arg);
127
+ }
131
128
 
132
- for (var key in arg) {
133
- if (hasOwn.call(arg, key) && arg[key]) {
134
- classes = appendClass(classes, key);
129
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
130
+ return arg.toString();
135
131
  }
136
- }
137
132
 
138
- return classes;
139
- }
133
+ var classes = '';
140
134
 
141
- function appendClass (value, newClass) {
142
- if (!newClass) {
143
- return value;
135
+ for (var key in arg) {
136
+ if (hasOwn.call(arg, key) && arg[key]) {
137
+ classes = appendClass(classes, key);
138
+ }
139
+ }
140
+
141
+ return classes;
144
142
  }
145
-
146
- if (value) {
147
- return value + ' ' + newClass;
143
+
144
+ function appendClass (value, newClass) {
145
+ if (!newClass) {
146
+ return value;
147
+ }
148
+
149
+ if (value) {
150
+ return value + ' ' + newClass;
151
+ }
152
+
153
+ return value + newClass;
148
154
  }
149
-
150
- return value + newClass;
151
- }
152
155
 
153
- if (module.exports) {
154
- classNames.default = classNames;
155
- module.exports = classNames;
156
- } else {
157
- window.classNames = classNames;
158
- }
159
- }());
160
- } (classnames));
156
+ if (module.exports) {
157
+ classNames.default = classNames;
158
+ module.exports = classNames;
159
+ } else {
160
+ window.classNames = classNames;
161
+ }
162
+ }());
163
+ } (classnames));
164
+ return classnames.exports;
165
+ }
161
166
 
162
- var classnamesExports = classnames.exports;
167
+ var classnamesExports = requireClassnames();
163
168
  var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
164
169
 
165
170
  function styleInject(css, ref) {
@@ -198,7 +203,7 @@
198
203
  var Button$1 = function (_a) {
199
204
  var _b = _a.type, type = _b === void 0 ? "primary" : _b, textColor = _a.textColor, _c = _a.size, size = _c === void 0 ? "medium" : _c, onClick = _a.onClick, label = _a.label;
200
205
  var _d = __read(React.useState(4), 2), theState = _d[0]; _d[1];
201
- return (React.createElement("button", { type: "button", className: classNames("storybook-button", "storybook-button--".concat(size), "storybook-button--".concat(type)), style: textColor ? { color: textColor } : {}, onClick: onClick }, "".concat(label, " ").concat(theState)));
206
+ return (jsxRuntime.jsx("button", { type: "button", className: classNames("storybook-button", "storybook-button--".concat(size), "storybook-button--".concat(type)), style: textColor ? { color: textColor } : {}, onClick: onClick, children: "".concat(label, " ").concat(theState) }));
202
207
  };
203
208
 
204
209
  function warn() {
@@ -3001,9 +3006,7 @@
3001
3006
 
3002
3007
  var SubmitButton = function (_a) {
3003
3008
  var onClick = _a.onClick, startIcon = _a.startIcon, label = _a.label, disabled = _a.disabled, isLoading = _a.isLoading, variant = _a.variant;
3004
- return (React.createElement("button", { className: "will-filter-bar-submit-button ".concat(variant || 'default'), onClick: onClick, disabled: disabled || isLoading },
3005
- isLoading ? (React.createElement("span", null, React.createElement(FaSpinner, { style: { animation: 'spin 1s linear infinite' } }))) : (startIcon && React.createElement("span", null, startIcon)),
3006
- label || 'Label'));
3009
+ return (jsxRuntime.jsxs("button", { className: "will-filter-bar-submit-button ".concat(variant || 'default'), onClick: onClick, disabled: disabled || isLoading, children: [isLoading ? (jsxRuntime.jsx("span", { children: jsxRuntime.jsx(FaSpinner, { style: { animation: 'spin 1s linear infinite' } }) })) : (startIcon && jsxRuntime.jsx("span", { children: startIcon })), label || 'Label'] }));
3007
3010
  };
3008
3011
 
3009
3012
  // THIS FILE IS AUTO GENERATED
@@ -3016,8 +3019,7 @@
3016
3019
 
3017
3020
  var CloseButton = function (_a) {
3018
3021
  var handleClose = _a.handleClose;
3019
- return (React.createElement("button", { className: "will-filter-bar-close-button", onClick: handleClose },
3020
- React.createElement(IoIosCloseCircleOutline, null)));
3022
+ return (jsxRuntime.jsx("button", { className: "will-filter-bar-close-button", onClick: handleClose, children: jsxRuntime.jsx(IoIosCloseCircleOutline, {}) }));
3021
3023
  };
3022
3024
 
3023
3025
  /**
@@ -9421,1850 +9423,1855 @@
9421
9423
  return (jsxRuntime.jsx(RootProvider, __assign({}, props, { children: jsxRuntime.jsx(Root, { initialProps: props }) })));
9422
9424
  }
9423
9425
 
9424
- var reactResponsive = {exports: {}};
9425
-
9426
- (function (module, exports) {
9427
- (function webpackUniversalModuleDefinition(root, factory) {
9428
- module.exports = factory(React);
9429
- })(commonjsGlobal, (__WEBPACK_EXTERNAL_MODULE_react__) => {
9430
- return /******/ (() => { // webpackBootstrap
9431
- /******/ var __webpack_modules__ = ({
9432
-
9433
- /***/ "./node_modules/css-mediaquery/index.js":
9434
- /*!**********************************************!*\
9435
- !*** ./node_modules/css-mediaquery/index.js ***!
9436
- \**********************************************/
9437
- /***/ ((__unused_webpack_module, exports) => {
9438
- /*
9439
- Copyright (c) 2014, Yahoo! Inc. All rights reserved.
9440
- Copyrights licensed under the New BSD License.
9441
- See the accompanying LICENSE file for terms.
9442
- */
9443
-
9444
-
9445
-
9446
- exports.match = matchQuery;
9447
- exports.parse = parseQuery;
9448
-
9449
- // -----------------------------------------------------------------------------
9450
-
9451
- var RE_MEDIA_QUERY = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,
9452
- RE_MQ_EXPRESSION = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,
9453
- RE_MQ_FEATURE = /^(?:(min|max)-)?(.+)/,
9454
- RE_LENGTH_UNIT = /(em|rem|px|cm|mm|in|pt|pc)?$/,
9455
- RE_RESOLUTION_UNIT = /(dpi|dpcm|dppx)?$/;
9456
-
9457
- function matchQuery(mediaQuery, values) {
9458
- return parseQuery(mediaQuery).some(function (query) {
9459
- var inverse = query.inverse;
9460
-
9461
- // Either the parsed or specified `type` is "all", or the types must be
9462
- // equal for a match.
9463
- var typeMatch = query.type === 'all' || values.type === query.type;
9464
-
9465
- // Quit early when `type` doesn't match, but take "not" into account.
9466
- if ((typeMatch && inverse) || !(typeMatch || inverse)) {
9467
- return false;
9468
- }
9469
-
9470
- var expressionsMatch = query.expressions.every(function (expression) {
9471
- var feature = expression.feature,
9472
- modifier = expression.modifier,
9473
- expValue = expression.value,
9474
- value = values[feature];
9475
-
9476
- // Missing or falsy values don't match.
9477
- if (!value) { return false; }
9478
-
9479
- switch (feature) {
9480
- case 'orientation':
9481
- case 'scan':
9482
- return value.toLowerCase() === expValue.toLowerCase();
9483
-
9484
- case 'width':
9485
- case 'height':
9486
- case 'device-width':
9487
- case 'device-height':
9488
- expValue = toPx(expValue);
9489
- value = toPx(value);
9490
- break;
9491
-
9492
- case 'resolution':
9493
- expValue = toDpi(expValue);
9494
- value = toDpi(value);
9495
- break;
9496
-
9497
- case 'aspect-ratio':
9498
- case 'device-aspect-ratio':
9499
- case /* Deprecated */ 'device-pixel-ratio':
9500
- expValue = toDecimal(expValue);
9501
- value = toDecimal(value);
9502
- break;
9503
-
9504
- case 'grid':
9505
- case 'color':
9506
- case 'color-index':
9507
- case 'monochrome':
9508
- expValue = parseInt(expValue, 10) || 1;
9509
- value = parseInt(value, 10) || 0;
9510
- break;
9511
- }
9512
-
9513
- switch (modifier) {
9514
- case 'min': return value >= expValue;
9515
- case 'max': return value <= expValue;
9516
- default : return value === expValue;
9517
- }
9518
- });
9519
-
9520
- return (expressionsMatch && !inverse) || (!expressionsMatch && inverse);
9521
- });
9522
- }
9426
+ var reactResponsive$1 = {exports: {}};
9427
+
9428
+ var reactResponsive = reactResponsive$1.exports;
9429
+
9430
+ var hasRequiredReactResponsive;
9431
+
9432
+ function requireReactResponsive () {
9433
+ if (hasRequiredReactResponsive) return reactResponsive$1.exports;
9434
+ hasRequiredReactResponsive = 1;
9435
+ (function (module, exports) {
9436
+ (function webpackUniversalModuleDefinition(root, factory) {
9437
+ module.exports = factory(React);
9438
+ })(reactResponsive, (__WEBPACK_EXTERNAL_MODULE_react__) => {
9439
+ return /******/ (() => { // webpackBootstrap
9440
+ /******/ var __webpack_modules__ = ({
9441
+
9442
+ /***/ "./node_modules/css-mediaquery/index.js":
9443
+ /*!**********************************************!*\
9444
+ !*** ./node_modules/css-mediaquery/index.js ***!
9445
+ \**********************************************/
9446
+ /***/ ((__unused_webpack_module, exports) => {
9447
+ /*
9448
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
9449
+ Copyrights licensed under the New BSD License.
9450
+ See the accompanying LICENSE file for terms.
9451
+ */
9452
+
9453
+
9454
+
9455
+ exports.match = matchQuery;
9456
+ exports.parse = parseQuery;
9457
+
9458
+ // -----------------------------------------------------------------------------
9459
+
9460
+ var RE_MEDIA_QUERY = /(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,
9461
+ RE_MQ_EXPRESSION = /\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,
9462
+ RE_MQ_FEATURE = /^(?:(min|max)-)?(.+)/,
9463
+ RE_LENGTH_UNIT = /(em|rem|px|cm|mm|in|pt|pc)?$/,
9464
+ RE_RESOLUTION_UNIT = /(dpi|dpcm|dppx)?$/;
9465
+
9466
+ function matchQuery(mediaQuery, values) {
9467
+ return parseQuery(mediaQuery).some(function (query) {
9468
+ var inverse = query.inverse;
9469
+
9470
+ // Either the parsed or specified `type` is "all", or the types must be
9471
+ // equal for a match.
9472
+ var typeMatch = query.type === 'all' || values.type === query.type;
9473
+
9474
+ // Quit early when `type` doesn't match, but take "not" into account.
9475
+ if ((typeMatch && inverse) || !(typeMatch || inverse)) {
9476
+ return false;
9477
+ }
9478
+
9479
+ var expressionsMatch = query.expressions.every(function (expression) {
9480
+ var feature = expression.feature,
9481
+ modifier = expression.modifier,
9482
+ expValue = expression.value,
9483
+ value = values[feature];
9484
+
9485
+ // Missing or falsy values don't match.
9486
+ if (!value) { return false; }
9487
+
9488
+ switch (feature) {
9489
+ case 'orientation':
9490
+ case 'scan':
9491
+ return value.toLowerCase() === expValue.toLowerCase();
9492
+
9493
+ case 'width':
9494
+ case 'height':
9495
+ case 'device-width':
9496
+ case 'device-height':
9497
+ expValue = toPx(expValue);
9498
+ value = toPx(value);
9499
+ break;
9500
+
9501
+ case 'resolution':
9502
+ expValue = toDpi(expValue);
9503
+ value = toDpi(value);
9504
+ break;
9505
+
9506
+ case 'aspect-ratio':
9507
+ case 'device-aspect-ratio':
9508
+ case /* Deprecated */ 'device-pixel-ratio':
9509
+ expValue = toDecimal(expValue);
9510
+ value = toDecimal(value);
9511
+ break;
9512
+
9513
+ case 'grid':
9514
+ case 'color':
9515
+ case 'color-index':
9516
+ case 'monochrome':
9517
+ expValue = parseInt(expValue, 10) || 1;
9518
+ value = parseInt(value, 10) || 0;
9519
+ break;
9520
+ }
9521
+
9522
+ switch (modifier) {
9523
+ case 'min': return value >= expValue;
9524
+ case 'max': return value <= expValue;
9525
+ default : return value === expValue;
9526
+ }
9527
+ });
9528
+
9529
+ return (expressionsMatch && !inverse) || (!expressionsMatch && inverse);
9530
+ });
9531
+ }
9523
9532
 
9524
- function parseQuery(mediaQuery) {
9525
- return mediaQuery.split(',').map(function (query) {
9526
- query = query.trim();
9533
+ function parseQuery(mediaQuery) {
9534
+ return mediaQuery.split(',').map(function (query) {
9535
+ query = query.trim();
9527
9536
 
9528
- var captures = query.match(RE_MEDIA_QUERY),
9529
- modifier = captures[1],
9530
- type = captures[2],
9531
- expressions = captures[3] || '',
9532
- parsed = {};
9537
+ var captures = query.match(RE_MEDIA_QUERY),
9538
+ modifier = captures[1],
9539
+ type = captures[2],
9540
+ expressions = captures[3] || '',
9541
+ parsed = {};
9533
9542
 
9534
- parsed.inverse = !!modifier && modifier.toLowerCase() === 'not';
9535
- parsed.type = type ? type.toLowerCase() : 'all';
9543
+ parsed.inverse = !!modifier && modifier.toLowerCase() === 'not';
9544
+ parsed.type = type ? type.toLowerCase() : 'all';
9536
9545
 
9537
- // Split expressions into a list.
9538
- expressions = expressions.match(/\([^\)]+\)/g) || [];
9546
+ // Split expressions into a list.
9547
+ expressions = expressions.match(/\([^\)]+\)/g) || [];
9539
9548
 
9540
- parsed.expressions = expressions.map(function (expression) {
9541
- var captures = expression.match(RE_MQ_EXPRESSION),
9542
- feature = captures[1].toLowerCase().match(RE_MQ_FEATURE);
9549
+ parsed.expressions = expressions.map(function (expression) {
9550
+ var captures = expression.match(RE_MQ_EXPRESSION),
9551
+ feature = captures[1].toLowerCase().match(RE_MQ_FEATURE);
9543
9552
 
9544
- return {
9545
- modifier: feature[1],
9546
- feature : feature[2],
9547
- value : captures[2]
9548
- };
9549
- });
9553
+ return {
9554
+ modifier: feature[1],
9555
+ feature : feature[2],
9556
+ value : captures[2]
9557
+ };
9558
+ });
9550
9559
 
9551
- return parsed;
9552
- });
9553
- }
9560
+ return parsed;
9561
+ });
9562
+ }
9554
9563
 
9555
- // -- Utilities ----------------------------------------------------------------
9564
+ // -- Utilities ----------------------------------------------------------------
9556
9565
 
9557
- function toDecimal(ratio) {
9558
- var decimal = Number(ratio),
9559
- numbers;
9566
+ function toDecimal(ratio) {
9567
+ var decimal = Number(ratio),
9568
+ numbers;
9560
9569
 
9561
- if (!decimal) {
9562
- numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/);
9563
- decimal = numbers[1] / numbers[2];
9564
- }
9570
+ if (!decimal) {
9571
+ numbers = ratio.match(/^(\d+)\s*\/\s*(\d+)$/);
9572
+ decimal = numbers[1] / numbers[2];
9573
+ }
9565
9574
 
9566
- return decimal;
9567
- }
9575
+ return decimal;
9576
+ }
9568
9577
 
9569
- function toDpi(resolution) {
9570
- var value = parseFloat(resolution),
9571
- units = String(resolution).match(RE_RESOLUTION_UNIT)[1];
9578
+ function toDpi(resolution) {
9579
+ var value = parseFloat(resolution),
9580
+ units = String(resolution).match(RE_RESOLUTION_UNIT)[1];
9572
9581
 
9573
- switch (units) {
9574
- case 'dpcm': return value / 2.54;
9575
- case 'dppx': return value * 96;
9576
- default : return value;
9577
- }
9578
- }
9582
+ switch (units) {
9583
+ case 'dpcm': return value / 2.54;
9584
+ case 'dppx': return value * 96;
9585
+ default : return value;
9586
+ }
9587
+ }
9579
9588
 
9580
- function toPx(length) {
9581
- var value = parseFloat(length),
9582
- units = String(length).match(RE_LENGTH_UNIT)[1];
9583
-
9584
- switch (units) {
9585
- case 'em' : return value * 16;
9586
- case 'rem': return value * 16;
9587
- case 'cm' : return value * 96 / 2.54;
9588
- case 'mm' : return value * 96 / 2.54 / 10;
9589
- case 'in' : return value * 96;
9590
- case 'pt' : return value * 72;
9591
- case 'pc' : return value * 72 / 12;
9592
- default : return value;
9593
- }
9594
- }
9589
+ function toPx(length) {
9590
+ var value = parseFloat(length),
9591
+ units = String(length).match(RE_LENGTH_UNIT)[1];
9592
+
9593
+ switch (units) {
9594
+ case 'em' : return value * 16;
9595
+ case 'rem': return value * 16;
9596
+ case 'cm' : return value * 96 / 2.54;
9597
+ case 'mm' : return value * 96 / 2.54 / 10;
9598
+ case 'in' : return value * 96;
9599
+ case 'pt' : return value * 72;
9600
+ case 'pc' : return value * 72 / 12;
9601
+ default : return value;
9602
+ }
9603
+ }
9595
9604
 
9596
9605
 
9597
- /***/ }),
9598
-
9599
- /***/ "./node_modules/hyphenate-style-name/index.js":
9600
- /*!****************************************************!*\
9601
- !*** ./node_modules/hyphenate-style-name/index.js ***!
9602
- \****************************************************/
9603
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9604
- __webpack_require__.r(__webpack_exports__);
9605
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9606
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9607
- /* harmony export */ });
9608
- /* eslint-disable no-var, prefer-template */
9609
- var uppercasePattern = /[A-Z]/g;
9610
- var msPattern = /^ms-/;
9611
- var cache = {};
9612
-
9613
- function toHyphenLower(match) {
9614
- return '-' + match.toLowerCase()
9615
- }
9606
+ /***/ }),
9607
+
9608
+ /***/ "./node_modules/hyphenate-style-name/index.js":
9609
+ /*!****************************************************!*\
9610
+ !*** ./node_modules/hyphenate-style-name/index.js ***!
9611
+ \****************************************************/
9612
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9613
+ __webpack_require__.r(__webpack_exports__);
9614
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9615
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
9616
+ /* harmony export */ });
9617
+ /* eslint-disable no-var, prefer-template */
9618
+ var uppercasePattern = /[A-Z]/g;
9619
+ var msPattern = /^ms-/;
9620
+ var cache = {};
9621
+
9622
+ function toHyphenLower(match) {
9623
+ return '-' + match.toLowerCase()
9624
+ }
9616
9625
 
9617
- function hyphenateStyleName(name) {
9618
- if (cache.hasOwnProperty(name)) {
9619
- return cache[name]
9620
- }
9626
+ function hyphenateStyleName(name) {
9627
+ if (cache.hasOwnProperty(name)) {
9628
+ return cache[name]
9629
+ }
9621
9630
 
9622
- var hName = name.replace(uppercasePattern, toHyphenLower);
9623
- return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
9624
- }
9631
+ var hName = name.replace(uppercasePattern, toHyphenLower);
9632
+ return (cache[name] = msPattern.test(hName) ? '-' + hName : hName)
9633
+ }
9625
9634
 
9626
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hyphenateStyleName);
9627
-
9628
-
9629
- /***/ }),
9630
-
9631
- /***/ "./node_modules/matchmediaquery/index.js":
9632
- /*!***********************************************!*\
9633
- !*** ./node_modules/matchmediaquery/index.js ***!
9634
- \***********************************************/
9635
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9636
-
9637
-
9638
- var staticMatch = (__webpack_require__(/*! css-mediaquery */ "./node_modules/css-mediaquery/index.js").match);
9639
- var dynamicMatch = typeof window !== 'undefined' ? window.matchMedia : null;
9640
-
9641
- // our fake MediaQueryList
9642
- function Mql(query, values, forceStatic){
9643
- var self = this;
9644
- if(dynamicMatch && !forceStatic){
9645
- var mql = dynamicMatch.call(window, query);
9646
- this.matches = mql.matches;
9647
- this.media = mql.media;
9648
- // TODO: is there a time it makes sense to remove this listener?
9649
- mql.addListener(update);
9650
- } else {
9651
- this.matches = staticMatch(query, values);
9652
- this.media = query;
9653
- }
9654
-
9655
- this.addListener = addListener;
9656
- this.removeListener = removeListener;
9657
- this.dispose = dispose;
9658
-
9659
- function addListener(listener){
9660
- if(mql){
9661
- mql.addListener(listener);
9662
- }
9663
- }
9664
-
9665
- function removeListener(listener){
9666
- if(mql){
9667
- mql.removeListener(listener);
9668
- }
9669
- }
9670
-
9671
- // update ourselves!
9672
- function update(evt){
9673
- self.matches = evt.matches;
9674
- self.media = evt.media;
9675
- }
9676
-
9677
- function dispose(){
9678
- if(mql){
9679
- mql.removeListener(update);
9680
- }
9681
- }
9682
- }
9635
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (hyphenateStyleName);
9636
+
9637
+
9638
+ /***/ }),
9639
+
9640
+ /***/ "./node_modules/matchmediaquery/index.js":
9641
+ /*!***********************************************!*\
9642
+ !*** ./node_modules/matchmediaquery/index.js ***!
9643
+ \***********************************************/
9644
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9645
+
9646
+
9647
+ var staticMatch = (__webpack_require__(/*! css-mediaquery */ "./node_modules/css-mediaquery/index.js").match);
9648
+ var dynamicMatch = typeof window !== 'undefined' ? window.matchMedia : null;
9649
+
9650
+ // our fake MediaQueryList
9651
+ function Mql(query, values, forceStatic){
9652
+ var self = this;
9653
+ if(dynamicMatch && !forceStatic){
9654
+ var mql = dynamicMatch.call(window, query);
9655
+ this.matches = mql.matches;
9656
+ this.media = mql.media;
9657
+ // TODO: is there a time it makes sense to remove this listener?
9658
+ mql.addListener(update);
9659
+ } else {
9660
+ this.matches = staticMatch(query, values);
9661
+ this.media = query;
9662
+ }
9663
+
9664
+ this.addListener = addListener;
9665
+ this.removeListener = removeListener;
9666
+ this.dispose = dispose;
9667
+
9668
+ function addListener(listener){
9669
+ if(mql){
9670
+ mql.addListener(listener);
9671
+ }
9672
+ }
9673
+
9674
+ function removeListener(listener){
9675
+ if(mql){
9676
+ mql.removeListener(listener);
9677
+ }
9678
+ }
9679
+
9680
+ // update ourselves!
9681
+ function update(evt){
9682
+ self.matches = evt.matches;
9683
+ self.media = evt.media;
9684
+ }
9685
+
9686
+ function dispose(){
9687
+ if(mql){
9688
+ mql.removeListener(update);
9689
+ }
9690
+ }
9691
+ }
9683
9692
 
9684
- function matchMedia(query, values, forceStatic){
9685
- return new Mql(query, values, forceStatic);
9686
- }
9693
+ function matchMedia(query, values, forceStatic){
9694
+ return new Mql(query, values, forceStatic);
9695
+ }
9696
+
9697
+ module.exports = matchMedia;
9687
9698
 
9688
- module.exports = matchMedia;
9689
9699
 
9700
+ /***/ }),
9690
9701
 
9691
- /***/ }),
9702
+ /***/ "./node_modules/object-assign/index.js":
9703
+ /*!*********************************************!*\
9704
+ !*** ./node_modules/object-assign/index.js ***!
9705
+ \*********************************************/
9706
+ /***/ ((module) => {
9707
+ /*
9708
+ object-assign
9709
+ (c) Sindre Sorhus
9710
+ @license MIT
9711
+ */
9692
9712
 
9693
- /***/ "./node_modules/object-assign/index.js":
9694
- /*!*********************************************!*\
9695
- !*** ./node_modules/object-assign/index.js ***!
9696
- \*********************************************/
9697
- /***/ ((module) => {
9698
- /*
9699
- object-assign
9700
- (c) Sindre Sorhus
9701
- @license MIT
9702
- */
9703
9713
 
9714
+ /* eslint-disable no-unused-vars */
9715
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
9716
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
9717
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
9704
9718
 
9705
- /* eslint-disable no-unused-vars */
9706
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
9707
- var hasOwnProperty = Object.prototype.hasOwnProperty;
9708
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
9719
+ function toObject(val) {
9720
+ if (val === null || val === undefined) {
9721
+ throw new TypeError('Object.assign cannot be called with null or undefined');
9722
+ }
9709
9723
 
9710
- function toObject(val) {
9711
- if (val === null || val === undefined) {
9712
- throw new TypeError('Object.assign cannot be called with null or undefined');
9724
+ return Object(val);
9713
9725
  }
9714
9726
 
9715
- return Object(val);
9716
- }
9727
+ function shouldUseNative() {
9728
+ try {
9729
+ if (!Object.assign) {
9730
+ return false;
9731
+ }
9717
9732
 
9718
- function shouldUseNative() {
9719
- try {
9720
- if (!Object.assign) {
9721
- return false;
9722
- }
9733
+ // Detect buggy property enumeration order in older V8 versions.
9723
9734
 
9724
- // Detect buggy property enumeration order in older V8 versions.
9735
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
9736
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
9737
+ test1[5] = 'de';
9738
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
9739
+ return false;
9740
+ }
9725
9741
 
9726
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
9727
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
9728
- test1[5] = 'de';
9729
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
9730
- return false;
9731
- }
9742
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9743
+ var test2 = {};
9744
+ for (var i = 0; i < 10; i++) {
9745
+ test2['_' + String.fromCharCode(i)] = i;
9746
+ }
9747
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
9748
+ return test2[n];
9749
+ });
9750
+ if (order2.join('') !== '0123456789') {
9751
+ return false;
9752
+ }
9732
9753
 
9733
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9734
- var test2 = {};
9735
- for (var i = 0; i < 10; i++) {
9736
- test2['_' + String.fromCharCode(i)] = i;
9737
- }
9738
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
9739
- return test2[n];
9740
- });
9741
- if (order2.join('') !== '0123456789') {
9742
- return false;
9743
- }
9754
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9755
+ var test3 = {};
9756
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
9757
+ test3[letter] = letter;
9758
+ });
9759
+ if (Object.keys(Object.assign({}, test3)).join('') !==
9760
+ 'abcdefghijklmnopqrst') {
9761
+ return false;
9762
+ }
9744
9763
 
9745
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
9746
- var test3 = {};
9747
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
9748
- test3[letter] = letter;
9749
- });
9750
- if (Object.keys(Object.assign({}, test3)).join('') !==
9751
- 'abcdefghijklmnopqrst') {
9764
+ return true;
9765
+ } catch (err) {
9766
+ // We don't expect any of the above to throw, but better to be safe.
9752
9767
  return false;
9753
9768
  }
9754
-
9755
- return true;
9756
- } catch (err) {
9757
- // We don't expect any of the above to throw, but better to be safe.
9758
- return false;
9759
9769
  }
9760
- }
9761
9770
 
9762
- module.exports = shouldUseNative() ? Object.assign : function (target, source) {
9763
- var from;
9764
- var to = toObject(target);
9765
- var symbols;
9771
+ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
9772
+ var from;
9773
+ var to = toObject(target);
9774
+ var symbols;
9766
9775
 
9767
- for (var s = 1; s < arguments.length; s++) {
9768
- from = Object(arguments[s]);
9776
+ for (var s = 1; s < arguments.length; s++) {
9777
+ from = Object(arguments[s]);
9769
9778
 
9770
- for (var key in from) {
9771
- if (hasOwnProperty.call(from, key)) {
9772
- to[key] = from[key];
9779
+ for (var key in from) {
9780
+ if (hasOwnProperty.call(from, key)) {
9781
+ to[key] = from[key];
9782
+ }
9773
9783
  }
9774
- }
9775
9784
 
9776
- if (getOwnPropertySymbols) {
9777
- symbols = getOwnPropertySymbols(from);
9778
- for (var i = 0; i < symbols.length; i++) {
9779
- if (propIsEnumerable.call(from, symbols[i])) {
9780
- to[symbols[i]] = from[symbols[i]];
9785
+ if (getOwnPropertySymbols) {
9786
+ symbols = getOwnPropertySymbols(from);
9787
+ for (var i = 0; i < symbols.length; i++) {
9788
+ if (propIsEnumerable.call(from, symbols[i])) {
9789
+ to[symbols[i]] = from[symbols[i]];
9790
+ }
9781
9791
  }
9782
9792
  }
9783
9793
  }
9794
+
9795
+ return to;
9796
+ };
9797
+
9798
+
9799
+ /***/ }),
9800
+
9801
+ /***/ "./node_modules/prop-types/checkPropTypes.js":
9802
+ /*!***************************************************!*\
9803
+ !*** ./node_modules/prop-types/checkPropTypes.js ***!
9804
+ \***************************************************/
9805
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9806
+ /**
9807
+ * Copyright (c) 2013-present, Facebook, Inc.
9808
+ *
9809
+ * This source code is licensed under the MIT license found in the
9810
+ * LICENSE file in the root directory of this source tree.
9811
+ */
9812
+
9813
+
9814
+
9815
+ var printWarning = function() {};
9816
+
9817
+ {
9818
+ var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
9819
+ var loggedTypeFailures = {};
9820
+ var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");
9821
+
9822
+ printWarning = function(text) {
9823
+ var message = 'Warning: ' + text;
9824
+ if (typeof console !== 'undefined') {
9825
+ console.error(message);
9826
+ }
9827
+ try {
9828
+ // --- Welcome to debugging React ---
9829
+ // This error was thrown as a convenience so that you can use this stack
9830
+ // to find the callsite that caused this warning to fire.
9831
+ throw new Error(message);
9832
+ } catch (x) { /**/ }
9833
+ };
9784
9834
  }
9785
9835
 
9786
- return to;
9787
- };
9788
-
9789
-
9790
- /***/ }),
9791
-
9792
- /***/ "./node_modules/prop-types/checkPropTypes.js":
9793
- /*!***************************************************!*\
9794
- !*** ./node_modules/prop-types/checkPropTypes.js ***!
9795
- \***************************************************/
9796
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9797
- /**
9798
- * Copyright (c) 2013-present, Facebook, Inc.
9799
- *
9800
- * This source code is licensed under the MIT license found in the
9801
- * LICENSE file in the root directory of this source tree.
9802
- */
9803
-
9804
-
9805
-
9806
- var printWarning = function() {};
9807
-
9808
- {
9809
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
9810
- var loggedTypeFailures = {};
9811
- var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");
9812
-
9813
- printWarning = function(text) {
9814
- var message = 'Warning: ' + text;
9815
- if (typeof console !== 'undefined') {
9816
- console.error(message);
9817
- }
9818
- try {
9819
- // --- Welcome to debugging React ---
9820
- // This error was thrown as a convenience so that you can use this stack
9821
- // to find the callsite that caused this warning to fire.
9822
- throw new Error(message);
9823
- } catch (x) { /**/ }
9824
- };
9825
- }
9836
+ /**
9837
+ * Assert that the values match with the type specs.
9838
+ * Error messages are memorized and will only be shown once.
9839
+ *
9840
+ * @param {object} typeSpecs Map of name to a ReactPropType
9841
+ * @param {object} values Runtime values that need to be type-checked
9842
+ * @param {string} location e.g. "prop", "context", "child context"
9843
+ * @param {string} componentName Name of the component for error messages.
9844
+ * @param {?Function} getStack Returns the component stack.
9845
+ * @private
9846
+ */
9847
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
9848
+ {
9849
+ for (var typeSpecName in typeSpecs) {
9850
+ if (has(typeSpecs, typeSpecName)) {
9851
+ var error;
9852
+ // Prop type validation may throw. In case they do, we don't want to
9853
+ // fail the render phase where it didn't fail before. So we log it.
9854
+ // After these have been cleaned up, we'll let them throw.
9855
+ try {
9856
+ // This is intentionally an invariant that gets caught. It's the same
9857
+ // behavior as without this statement except with a better message.
9858
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
9859
+ var err = Error(
9860
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
9861
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
9862
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
9863
+ );
9864
+ err.name = 'Invariant Violation';
9865
+ throw err;
9866
+ }
9867
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
9868
+ } catch (ex) {
9869
+ error = ex;
9870
+ }
9871
+ if (error && !(error instanceof Error)) {
9872
+ printWarning(
9873
+ (componentName || 'React class') + ': type specification of ' +
9874
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
9875
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
9876
+ 'You may have forgotten to pass an argument to the type checker ' +
9877
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
9878
+ 'shape all require an argument).'
9879
+ );
9880
+ }
9881
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
9882
+ // Only monitor this failure once because there tends to be a lot of the
9883
+ // same error.
9884
+ loggedTypeFailures[error.message] = true;
9885
+
9886
+ var stack = getStack ? getStack() : '';
9887
+
9888
+ printWarning(
9889
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
9890
+ );
9891
+ }
9892
+ }
9893
+ }
9894
+ }
9895
+ }
9826
9896
 
9827
- /**
9828
- * Assert that the values match with the type specs.
9829
- * Error messages are memorized and will only be shown once.
9830
- *
9831
- * @param {object} typeSpecs Map of name to a ReactPropType
9832
- * @param {object} values Runtime values that need to be type-checked
9833
- * @param {string} location e.g. "prop", "context", "child context"
9834
- * @param {string} componentName Name of the component for error messages.
9835
- * @param {?Function} getStack Returns the component stack.
9836
- * @private
9837
- */
9838
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
9839
- {
9840
- for (var typeSpecName in typeSpecs) {
9841
- if (has(typeSpecs, typeSpecName)) {
9842
- var error;
9843
- // Prop type validation may throw. In case they do, we don't want to
9844
- // fail the render phase where it didn't fail before. So we log it.
9845
- // After these have been cleaned up, we'll let them throw.
9846
- try {
9847
- // This is intentionally an invariant that gets caught. It's the same
9848
- // behavior as without this statement except with a better message.
9849
- if (typeof typeSpecs[typeSpecName] !== 'function') {
9850
- var err = Error(
9851
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
9852
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
9853
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
9854
- );
9855
- err.name = 'Invariant Violation';
9856
- throw err;
9857
- }
9858
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
9859
- } catch (ex) {
9860
- error = ex;
9861
- }
9862
- if (error && !(error instanceof Error)) {
9863
- printWarning(
9864
- (componentName || 'React class') + ': type specification of ' +
9865
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
9866
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
9867
- 'You may have forgotten to pass an argument to the type checker ' +
9868
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
9869
- 'shape all require an argument).'
9870
- );
9871
- }
9872
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
9873
- // Only monitor this failure once because there tends to be a lot of the
9874
- // same error.
9875
- loggedTypeFailures[error.message] = true;
9876
-
9877
- var stack = getStack ? getStack() : '';
9878
-
9879
- printWarning(
9880
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
9881
- );
9882
- }
9883
- }
9884
- }
9885
- }
9886
- }
9897
+ /**
9898
+ * Resets warning cache when testing.
9899
+ *
9900
+ * @private
9901
+ */
9902
+ checkPropTypes.resetWarningCache = function() {
9903
+ {
9904
+ loggedTypeFailures = {};
9905
+ }
9906
+ };
9907
+
9908
+ module.exports = checkPropTypes;
9909
+
9910
+
9911
+ /***/ }),
9912
+
9913
+ /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
9914
+ /*!************************************************************!*\
9915
+ !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
9916
+ \************************************************************/
9917
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9918
+ /**
9919
+ * Copyright (c) 2013-present, Facebook, Inc.
9920
+ *
9921
+ * This source code is licensed under the MIT license found in the
9922
+ * LICENSE file in the root directory of this source tree.
9923
+ */
9924
+
9925
+
9926
+
9927
+ var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
9928
+ var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
9929
+
9930
+ var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
9931
+ var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");
9932
+ var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
9933
+
9934
+ var printWarning = function() {};
9935
+
9936
+ {
9937
+ printWarning = function(text) {
9938
+ var message = 'Warning: ' + text;
9939
+ if (typeof console !== 'undefined') {
9940
+ console.error(message);
9941
+ }
9942
+ try {
9943
+ // --- Welcome to debugging React ---
9944
+ // This error was thrown as a convenience so that you can use this stack
9945
+ // to find the callsite that caused this warning to fire.
9946
+ throw new Error(message);
9947
+ } catch (x) {}
9948
+ };
9949
+ }
9887
9950
 
9888
- /**
9889
- * Resets warning cache when testing.
9890
- *
9891
- * @private
9892
- */
9893
- checkPropTypes.resetWarningCache = function() {
9894
- {
9895
- loggedTypeFailures = {};
9896
- }
9897
- };
9898
-
9899
- module.exports = checkPropTypes;
9900
-
9901
-
9902
- /***/ }),
9903
-
9904
- /***/ "./node_modules/prop-types/factoryWithTypeCheckers.js":
9905
- /*!************************************************************!*\
9906
- !*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
9907
- \************************************************************/
9908
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
9909
- /**
9910
- * Copyright (c) 2013-present, Facebook, Inc.
9911
- *
9912
- * This source code is licensed under the MIT license found in the
9913
- * LICENSE file in the root directory of this source tree.
9914
- */
9915
-
9916
-
9917
-
9918
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
9919
- var assign = __webpack_require__(/*! object-assign */ "./node_modules/object-assign/index.js");
9920
-
9921
- var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "./node_modules/prop-types/lib/ReactPropTypesSecret.js");
9922
- var has = __webpack_require__(/*! ./lib/has */ "./node_modules/prop-types/lib/has.js");
9923
- var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "./node_modules/prop-types/checkPropTypes.js");
9924
-
9925
- var printWarning = function() {};
9926
-
9927
- {
9928
- printWarning = function(text) {
9929
- var message = 'Warning: ' + text;
9930
- if (typeof console !== 'undefined') {
9931
- console.error(message);
9932
- }
9933
- try {
9934
- // --- Welcome to debugging React ---
9935
- // This error was thrown as a convenience so that you can use this stack
9936
- // to find the callsite that caused this warning to fire.
9937
- throw new Error(message);
9938
- } catch (x) {}
9939
- };
9940
- }
9951
+ function emptyFunctionThatReturnsNull() {
9952
+ return null;
9953
+ }
9941
9954
 
9942
- function emptyFunctionThatReturnsNull() {
9943
- return null;
9944
- }
9955
+ module.exports = function(isValidElement, throwOnDirectAccess) {
9956
+ /* global Symbol */
9957
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
9958
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
9959
+
9960
+ /**
9961
+ * Returns the iterator method function contained on the iterable object.
9962
+ *
9963
+ * Be sure to invoke the function with the iterable as context:
9964
+ *
9965
+ * var iteratorFn = getIteratorFn(myIterable);
9966
+ * if (iteratorFn) {
9967
+ * var iterator = iteratorFn.call(myIterable);
9968
+ * ...
9969
+ * }
9970
+ *
9971
+ * @param {?object} maybeIterable
9972
+ * @return {?function}
9973
+ */
9974
+ function getIteratorFn(maybeIterable) {
9975
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
9976
+ if (typeof iteratorFn === 'function') {
9977
+ return iteratorFn;
9978
+ }
9979
+ }
9980
+
9981
+ /**
9982
+ * Collection of methods that allow declaration and validation of props that are
9983
+ * supplied to React components. Example usage:
9984
+ *
9985
+ * var Props = require('ReactPropTypes');
9986
+ * var MyArticle = React.createClass({
9987
+ * propTypes: {
9988
+ * // An optional string prop named "description".
9989
+ * description: Props.string,
9990
+ *
9991
+ * // A required enum prop named "category".
9992
+ * category: Props.oneOf(['News','Photos']).isRequired,
9993
+ *
9994
+ * // A prop named "dialog" that requires an instance of Dialog.
9995
+ * dialog: Props.instanceOf(Dialog).isRequired
9996
+ * },
9997
+ * render: function() { ... }
9998
+ * });
9999
+ *
10000
+ * A more formal specification of how these methods are used:
10001
+ *
10002
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
10003
+ * decl := ReactPropTypes.{type}(.isRequired)?
10004
+ *
10005
+ * Each and every declaration produces a function with the same signature. This
10006
+ * allows the creation of custom validation functions. For example:
10007
+ *
10008
+ * var MyLink = React.createClass({
10009
+ * propTypes: {
10010
+ * // An optional string or URI prop named "href".
10011
+ * href: function(props, propName, componentName) {
10012
+ * var propValue = props[propName];
10013
+ * if (propValue != null && typeof propValue !== 'string' &&
10014
+ * !(propValue instanceof URI)) {
10015
+ * return new Error(
10016
+ * 'Expected a string or an URI for ' + propName + ' in ' +
10017
+ * componentName
10018
+ * );
10019
+ * }
10020
+ * }
10021
+ * },
10022
+ * render: function() {...}
10023
+ * });
10024
+ *
10025
+ * @internal
10026
+ */
10027
+
10028
+ var ANONYMOUS = '<<anonymous>>';
10029
+
10030
+ // Important!
10031
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
10032
+ var ReactPropTypes = {
10033
+ array: createPrimitiveTypeChecker('array'),
10034
+ bigint: createPrimitiveTypeChecker('bigint'),
10035
+ bool: createPrimitiveTypeChecker('boolean'),
10036
+ func: createPrimitiveTypeChecker('function'),
10037
+ number: createPrimitiveTypeChecker('number'),
10038
+ object: createPrimitiveTypeChecker('object'),
10039
+ string: createPrimitiveTypeChecker('string'),
10040
+ symbol: createPrimitiveTypeChecker('symbol'),
10041
+
10042
+ any: createAnyTypeChecker(),
10043
+ arrayOf: createArrayOfTypeChecker,
10044
+ element: createElementTypeChecker(),
10045
+ elementType: createElementTypeTypeChecker(),
10046
+ instanceOf: createInstanceTypeChecker,
10047
+ node: createNodeChecker(),
10048
+ objectOf: createObjectOfTypeChecker,
10049
+ oneOf: createEnumTypeChecker,
10050
+ oneOfType: createUnionTypeChecker,
10051
+ shape: createShapeTypeChecker,
10052
+ exact: createStrictShapeTypeChecker,
10053
+ };
10054
+
10055
+ /**
10056
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
10057
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
10058
+ */
10059
+ /*eslint-disable no-self-compare*/
10060
+ function is(x, y) {
10061
+ // SameValue algorithm
10062
+ if (x === y) {
10063
+ // Steps 1-5, 7-10
10064
+ // Steps 6.b-6.e: +0 != -0
10065
+ return x !== 0 || 1 / x === 1 / y;
10066
+ } else {
10067
+ // Step 6.a: NaN == NaN
10068
+ return x !== x && y !== y;
10069
+ }
10070
+ }
10071
+ /*eslint-enable no-self-compare*/
10072
+
10073
+ /**
10074
+ * We use an Error-like object for backward compatibility as people may call
10075
+ * PropTypes directly and inspect their output. However, we don't use real
10076
+ * Errors anymore. We don't inspect their stack anyway, and creating them
10077
+ * is prohibitively expensive if they are created too often, such as what
10078
+ * happens in oneOfType() for any type before the one that matched.
10079
+ */
10080
+ function PropTypeError(message, data) {
10081
+ this.message = message;
10082
+ this.data = data && typeof data === 'object' ? data: {};
10083
+ this.stack = '';
10084
+ }
10085
+ // Make `instanceof Error` still work for returned errors.
10086
+ PropTypeError.prototype = Error.prototype;
10087
+
10088
+ function createChainableTypeChecker(validate) {
10089
+ {
10090
+ var manualPropTypeCallCache = {};
10091
+ var manualPropTypeWarningCount = 0;
10092
+ }
10093
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
10094
+ componentName = componentName || ANONYMOUS;
10095
+ propFullName = propFullName || propName;
10096
+
10097
+ if (secret !== ReactPropTypesSecret) {
10098
+ if (throwOnDirectAccess) {
10099
+ // New behavior only for users of `prop-types` package
10100
+ var err = new Error(
10101
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
10102
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
10103
+ 'Read more at http://fb.me/use-check-prop-types'
10104
+ );
10105
+ err.name = 'Invariant Violation';
10106
+ throw err;
10107
+ } else if ( typeof console !== 'undefined') {
10108
+ // Old behavior for people using React.PropTypes
10109
+ var cacheKey = componentName + ':' + propName;
10110
+ if (
10111
+ !manualPropTypeCallCache[cacheKey] &&
10112
+ // Avoid spamming the console because they are often not actionable except for lib authors
10113
+ manualPropTypeWarningCount < 3
10114
+ ) {
10115
+ printWarning(
10116
+ 'You are manually calling a React.PropTypes validation ' +
10117
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
10118
+ 'and will throw in the standalone `prop-types` package. ' +
10119
+ 'You may be seeing this warning due to a third-party PropTypes ' +
10120
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
10121
+ );
10122
+ manualPropTypeCallCache[cacheKey] = true;
10123
+ manualPropTypeWarningCount++;
10124
+ }
10125
+ }
10126
+ }
10127
+ if (props[propName] == null) {
10128
+ if (isRequired) {
10129
+ if (props[propName] === null) {
10130
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
10131
+ }
10132
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
10133
+ }
10134
+ return null;
10135
+ } else {
10136
+ return validate(props, propName, componentName, location, propFullName);
10137
+ }
10138
+ }
10139
+
10140
+ var chainedCheckType = checkType.bind(null, false);
10141
+ chainedCheckType.isRequired = checkType.bind(null, true);
10142
+
10143
+ return chainedCheckType;
10144
+ }
10145
+
10146
+ function createPrimitiveTypeChecker(expectedType) {
10147
+ function validate(props, propName, componentName, location, propFullName, secret) {
10148
+ var propValue = props[propName];
10149
+ var propType = getPropType(propValue);
10150
+ if (propType !== expectedType) {
10151
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
10152
+ // check, but we can offer a more precise error message here rather than
10153
+ // 'of type `object`'.
10154
+ var preciseType = getPreciseType(propValue);
10155
+
10156
+ return new PropTypeError(
10157
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
10158
+ {expectedType: expectedType}
10159
+ );
10160
+ }
10161
+ return null;
10162
+ }
10163
+ return createChainableTypeChecker(validate);
10164
+ }
10165
+
10166
+ function createAnyTypeChecker() {
10167
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
10168
+ }
10169
+
10170
+ function createArrayOfTypeChecker(typeChecker) {
10171
+ function validate(props, propName, componentName, location, propFullName) {
10172
+ if (typeof typeChecker !== 'function') {
10173
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
10174
+ }
10175
+ var propValue = props[propName];
10176
+ if (!Array.isArray(propValue)) {
10177
+ var propType = getPropType(propValue);
10178
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
10179
+ }
10180
+ for (var i = 0; i < propValue.length; i++) {
10181
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
10182
+ if (error instanceof Error) {
10183
+ return error;
10184
+ }
10185
+ }
10186
+ return null;
10187
+ }
10188
+ return createChainableTypeChecker(validate);
10189
+ }
10190
+
10191
+ function createElementTypeChecker() {
10192
+ function validate(props, propName, componentName, location, propFullName) {
10193
+ var propValue = props[propName];
10194
+ if (!isValidElement(propValue)) {
10195
+ var propType = getPropType(propValue);
10196
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
10197
+ }
10198
+ return null;
10199
+ }
10200
+ return createChainableTypeChecker(validate);
10201
+ }
10202
+
10203
+ function createElementTypeTypeChecker() {
10204
+ function validate(props, propName, componentName, location, propFullName) {
10205
+ var propValue = props[propName];
10206
+ if (!ReactIs.isValidElementType(propValue)) {
10207
+ var propType = getPropType(propValue);
10208
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
10209
+ }
10210
+ return null;
10211
+ }
10212
+ return createChainableTypeChecker(validate);
10213
+ }
10214
+
10215
+ function createInstanceTypeChecker(expectedClass) {
10216
+ function validate(props, propName, componentName, location, propFullName) {
10217
+ if (!(props[propName] instanceof expectedClass)) {
10218
+ var expectedClassName = expectedClass.name || ANONYMOUS;
10219
+ var actualClassName = getClassName(props[propName]);
10220
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
10221
+ }
10222
+ return null;
10223
+ }
10224
+ return createChainableTypeChecker(validate);
10225
+ }
10226
+
10227
+ function createEnumTypeChecker(expectedValues) {
10228
+ if (!Array.isArray(expectedValues)) {
10229
+ {
10230
+ if (arguments.length > 1) {
10231
+ printWarning(
10232
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
10233
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
10234
+ );
10235
+ } else {
10236
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
10237
+ }
10238
+ }
10239
+ return emptyFunctionThatReturnsNull;
10240
+ }
10241
+
10242
+ function validate(props, propName, componentName, location, propFullName) {
10243
+ var propValue = props[propName];
10244
+ for (var i = 0; i < expectedValues.length; i++) {
10245
+ if (is(propValue, expectedValues[i])) {
10246
+ return null;
10247
+ }
10248
+ }
10249
+
10250
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
10251
+ var type = getPreciseType(value);
10252
+ if (type === 'symbol') {
10253
+ return String(value);
10254
+ }
10255
+ return value;
10256
+ });
10257
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
10258
+ }
10259
+ return createChainableTypeChecker(validate);
10260
+ }
10261
+
10262
+ function createObjectOfTypeChecker(typeChecker) {
10263
+ function validate(props, propName, componentName, location, propFullName) {
10264
+ if (typeof typeChecker !== 'function') {
10265
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
10266
+ }
10267
+ var propValue = props[propName];
10268
+ var propType = getPropType(propValue);
10269
+ if (propType !== 'object') {
10270
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
10271
+ }
10272
+ for (var key in propValue) {
10273
+ if (has(propValue, key)) {
10274
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10275
+ if (error instanceof Error) {
10276
+ return error;
10277
+ }
10278
+ }
10279
+ }
10280
+ return null;
10281
+ }
10282
+ return createChainableTypeChecker(validate);
10283
+ }
10284
+
10285
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
10286
+ if (!Array.isArray(arrayOfTypeCheckers)) {
10287
+ printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') ;
10288
+ return emptyFunctionThatReturnsNull;
10289
+ }
10290
+
10291
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
10292
+ var checker = arrayOfTypeCheckers[i];
10293
+ if (typeof checker !== 'function') {
10294
+ printWarning(
10295
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
10296
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
10297
+ );
10298
+ return emptyFunctionThatReturnsNull;
10299
+ }
10300
+ }
10301
+
10302
+ function validate(props, propName, componentName, location, propFullName) {
10303
+ var expectedTypes = [];
10304
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
10305
+ var checker = arrayOfTypeCheckers[i];
10306
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
10307
+ if (checkerResult == null) {
10308
+ return null;
10309
+ }
10310
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
10311
+ expectedTypes.push(checkerResult.data.expectedType);
10312
+ }
10313
+ }
10314
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
10315
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
10316
+ }
10317
+ return createChainableTypeChecker(validate);
10318
+ }
10319
+
10320
+ function createNodeChecker() {
10321
+ function validate(props, propName, componentName, location, propFullName) {
10322
+ if (!isNode(props[propName])) {
10323
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
10324
+ }
10325
+ return null;
10326
+ }
10327
+ return createChainableTypeChecker(validate);
10328
+ }
10329
+
10330
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
10331
+ return new PropTypeError(
10332
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
10333
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
10334
+ );
10335
+ }
10336
+
10337
+ function createShapeTypeChecker(shapeTypes) {
10338
+ function validate(props, propName, componentName, location, propFullName) {
10339
+ var propValue = props[propName];
10340
+ var propType = getPropType(propValue);
10341
+ if (propType !== 'object') {
10342
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
10343
+ }
10344
+ for (var key in shapeTypes) {
10345
+ var checker = shapeTypes[key];
10346
+ if (typeof checker !== 'function') {
10347
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
10348
+ }
10349
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10350
+ if (error) {
10351
+ return error;
10352
+ }
10353
+ }
10354
+ return null;
10355
+ }
10356
+ return createChainableTypeChecker(validate);
10357
+ }
10358
+
10359
+ function createStrictShapeTypeChecker(shapeTypes) {
10360
+ function validate(props, propName, componentName, location, propFullName) {
10361
+ var propValue = props[propName];
10362
+ var propType = getPropType(propValue);
10363
+ if (propType !== 'object') {
10364
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
10365
+ }
10366
+ // We need to check all keys in case some are required but missing from props.
10367
+ var allKeys = assign({}, props[propName], shapeTypes);
10368
+ for (var key in allKeys) {
10369
+ var checker = shapeTypes[key];
10370
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
10371
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
10372
+ }
10373
+ if (!checker) {
10374
+ return new PropTypeError(
10375
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
10376
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
10377
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
10378
+ );
10379
+ }
10380
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10381
+ if (error) {
10382
+ return error;
10383
+ }
10384
+ }
10385
+ return null;
10386
+ }
10387
+
10388
+ return createChainableTypeChecker(validate);
10389
+ }
10390
+
10391
+ function isNode(propValue) {
10392
+ switch (typeof propValue) {
10393
+ case 'number':
10394
+ case 'string':
10395
+ case 'undefined':
10396
+ return true;
10397
+ case 'boolean':
10398
+ return !propValue;
10399
+ case 'object':
10400
+ if (Array.isArray(propValue)) {
10401
+ return propValue.every(isNode);
10402
+ }
10403
+ if (propValue === null || isValidElement(propValue)) {
10404
+ return true;
10405
+ }
10406
+
10407
+ var iteratorFn = getIteratorFn(propValue);
10408
+ if (iteratorFn) {
10409
+ var iterator = iteratorFn.call(propValue);
10410
+ var step;
10411
+ if (iteratorFn !== propValue.entries) {
10412
+ while (!(step = iterator.next()).done) {
10413
+ if (!isNode(step.value)) {
10414
+ return false;
10415
+ }
10416
+ }
10417
+ } else {
10418
+ // Iterator will provide entry [k,v] tuples rather than values.
10419
+ while (!(step = iterator.next()).done) {
10420
+ var entry = step.value;
10421
+ if (entry) {
10422
+ if (!isNode(entry[1])) {
10423
+ return false;
10424
+ }
10425
+ }
10426
+ }
10427
+ }
10428
+ } else {
10429
+ return false;
10430
+ }
10431
+
10432
+ return true;
10433
+ default:
10434
+ return false;
10435
+ }
10436
+ }
10437
+
10438
+ function isSymbol(propType, propValue) {
10439
+ // Native Symbol.
10440
+ if (propType === 'symbol') {
10441
+ return true;
10442
+ }
10443
+
10444
+ // falsy value can't be a Symbol
10445
+ if (!propValue) {
10446
+ return false;
10447
+ }
10448
+
10449
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
10450
+ if (propValue['@@toStringTag'] === 'Symbol') {
10451
+ return true;
10452
+ }
10453
+
10454
+ // Fallback for non-spec compliant Symbols which are polyfilled.
10455
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
10456
+ return true;
10457
+ }
10458
+
10459
+ return false;
10460
+ }
10461
+
10462
+ // Equivalent of `typeof` but with special handling for array and regexp.
10463
+ function getPropType(propValue) {
10464
+ var propType = typeof propValue;
10465
+ if (Array.isArray(propValue)) {
10466
+ return 'array';
10467
+ }
10468
+ if (propValue instanceof RegExp) {
10469
+ // Old webkits (at least until Android 4.0) return 'function' rather than
10470
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
10471
+ // passes PropTypes.object.
10472
+ return 'object';
10473
+ }
10474
+ if (isSymbol(propType, propValue)) {
10475
+ return 'symbol';
10476
+ }
10477
+ return propType;
10478
+ }
10479
+
10480
+ // This handles more types than `getPropType`. Only used for error messages.
10481
+ // See `createPrimitiveTypeChecker`.
10482
+ function getPreciseType(propValue) {
10483
+ if (typeof propValue === 'undefined' || propValue === null) {
10484
+ return '' + propValue;
10485
+ }
10486
+ var propType = getPropType(propValue);
10487
+ if (propType === 'object') {
10488
+ if (propValue instanceof Date) {
10489
+ return 'date';
10490
+ } else if (propValue instanceof RegExp) {
10491
+ return 'regexp';
10492
+ }
10493
+ }
10494
+ return propType;
10495
+ }
10496
+
10497
+ // Returns a string that is postfixed to a warning about an invalid type.
10498
+ // For example, "undefined" or "of type array"
10499
+ function getPostfixForTypeWarning(value) {
10500
+ var type = getPreciseType(value);
10501
+ switch (type) {
10502
+ case 'array':
10503
+ case 'object':
10504
+ return 'an ' + type;
10505
+ case 'boolean':
10506
+ case 'date':
10507
+ case 'regexp':
10508
+ return 'a ' + type;
10509
+ default:
10510
+ return type;
10511
+ }
10512
+ }
10513
+
10514
+ // Returns class name of the object, if any.
10515
+ function getClassName(propValue) {
10516
+ if (!propValue.constructor || !propValue.constructor.name) {
10517
+ return ANONYMOUS;
10518
+ }
10519
+ return propValue.constructor.name;
10520
+ }
10521
+
10522
+ ReactPropTypes.checkPropTypes = checkPropTypes;
10523
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
10524
+ ReactPropTypes.PropTypes = ReactPropTypes;
10525
+
10526
+ return ReactPropTypes;
10527
+ };
10528
+
10529
+
10530
+ /***/ }),
10531
+
10532
+ /***/ "./node_modules/prop-types/index.js":
10533
+ /*!******************************************!*\
10534
+ !*** ./node_modules/prop-types/index.js ***!
10535
+ \******************************************/
10536
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10537
+
10538
+ /**
10539
+ * Copyright (c) 2013-present, Facebook, Inc.
10540
+ *
10541
+ * This source code is licensed under the MIT license found in the
10542
+ * LICENSE file in the root directory of this source tree.
10543
+ */
10544
+
10545
+ {
10546
+ var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
10547
+
10548
+ // By explicitly using `prop-types` you are opting into new development behavior.
10549
+ // http://fb.me/prop-types-in-prod
10550
+ var throwOnDirectAccess = true;
10551
+ module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
10552
+ }
9945
10553
 
9946
- module.exports = function(isValidElement, throwOnDirectAccess) {
9947
- /* global Symbol */
9948
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
9949
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
9950
-
9951
- /**
9952
- * Returns the iterator method function contained on the iterable object.
9953
- *
9954
- * Be sure to invoke the function with the iterable as context:
9955
- *
9956
- * var iteratorFn = getIteratorFn(myIterable);
9957
- * if (iteratorFn) {
9958
- * var iterator = iteratorFn.call(myIterable);
9959
- * ...
9960
- * }
9961
- *
9962
- * @param {?object} maybeIterable
9963
- * @return {?function}
9964
- */
9965
- function getIteratorFn(maybeIterable) {
9966
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
9967
- if (typeof iteratorFn === 'function') {
9968
- return iteratorFn;
9969
- }
9970
- }
9971
-
9972
- /**
9973
- * Collection of methods that allow declaration and validation of props that are
9974
- * supplied to React components. Example usage:
9975
- *
9976
- * var Props = require('ReactPropTypes');
9977
- * var MyArticle = React.createClass({
9978
- * propTypes: {
9979
- * // An optional string prop named "description".
9980
- * description: Props.string,
9981
- *
9982
- * // A required enum prop named "category".
9983
- * category: Props.oneOf(['News','Photos']).isRequired,
9984
- *
9985
- * // A prop named "dialog" that requires an instance of Dialog.
9986
- * dialog: Props.instanceOf(Dialog).isRequired
9987
- * },
9988
- * render: function() { ... }
9989
- * });
9990
- *
9991
- * A more formal specification of how these methods are used:
9992
- *
9993
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
9994
- * decl := ReactPropTypes.{type}(.isRequired)?
9995
- *
9996
- * Each and every declaration produces a function with the same signature. This
9997
- * allows the creation of custom validation functions. For example:
9998
- *
9999
- * var MyLink = React.createClass({
10000
- * propTypes: {
10001
- * // An optional string or URI prop named "href".
10002
- * href: function(props, propName, componentName) {
10003
- * var propValue = props[propName];
10004
- * if (propValue != null && typeof propValue !== 'string' &&
10005
- * !(propValue instanceof URI)) {
10006
- * return new Error(
10007
- * 'Expected a string or an URI for ' + propName + ' in ' +
10008
- * componentName
10009
- * );
10010
- * }
10011
- * }
10012
- * },
10013
- * render: function() {...}
10014
- * });
10015
- *
10016
- * @internal
10017
- */
10018
-
10019
- var ANONYMOUS = '<<anonymous>>';
10020
-
10021
- // Important!
10022
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
10023
- var ReactPropTypes = {
10024
- array: createPrimitiveTypeChecker('array'),
10025
- bigint: createPrimitiveTypeChecker('bigint'),
10026
- bool: createPrimitiveTypeChecker('boolean'),
10027
- func: createPrimitiveTypeChecker('function'),
10028
- number: createPrimitiveTypeChecker('number'),
10029
- object: createPrimitiveTypeChecker('object'),
10030
- string: createPrimitiveTypeChecker('string'),
10031
- symbol: createPrimitiveTypeChecker('symbol'),
10032
-
10033
- any: createAnyTypeChecker(),
10034
- arrayOf: createArrayOfTypeChecker,
10035
- element: createElementTypeChecker(),
10036
- elementType: createElementTypeTypeChecker(),
10037
- instanceOf: createInstanceTypeChecker,
10038
- node: createNodeChecker(),
10039
- objectOf: createObjectOfTypeChecker,
10040
- oneOf: createEnumTypeChecker,
10041
- oneOfType: createUnionTypeChecker,
10042
- shape: createShapeTypeChecker,
10043
- exact: createStrictShapeTypeChecker,
10044
- };
10045
-
10046
- /**
10047
- * inlined Object.is polyfill to avoid requiring consumers ship their own
10048
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
10049
- */
10050
- /*eslint-disable no-self-compare*/
10051
- function is(x, y) {
10052
- // SameValue algorithm
10053
- if (x === y) {
10054
- // Steps 1-5, 7-10
10055
- // Steps 6.b-6.e: +0 != -0
10056
- return x !== 0 || 1 / x === 1 / y;
10057
- } else {
10058
- // Step 6.a: NaN == NaN
10059
- return x !== x && y !== y;
10060
- }
10061
- }
10062
- /*eslint-enable no-self-compare*/
10063
-
10064
- /**
10065
- * We use an Error-like object for backward compatibility as people may call
10066
- * PropTypes directly and inspect their output. However, we don't use real
10067
- * Errors anymore. We don't inspect their stack anyway, and creating them
10068
- * is prohibitively expensive if they are created too often, such as what
10069
- * happens in oneOfType() for any type before the one that matched.
10070
- */
10071
- function PropTypeError(message, data) {
10072
- this.message = message;
10073
- this.data = data && typeof data === 'object' ? data: {};
10074
- this.stack = '';
10075
- }
10076
- // Make `instanceof Error` still work for returned errors.
10077
- PropTypeError.prototype = Error.prototype;
10078
-
10079
- function createChainableTypeChecker(validate) {
10080
- {
10081
- var manualPropTypeCallCache = {};
10082
- var manualPropTypeWarningCount = 0;
10083
- }
10084
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
10085
- componentName = componentName || ANONYMOUS;
10086
- propFullName = propFullName || propName;
10087
-
10088
- if (secret !== ReactPropTypesSecret) {
10089
- if (throwOnDirectAccess) {
10090
- // New behavior only for users of `prop-types` package
10091
- var err = new Error(
10092
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
10093
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
10094
- 'Read more at http://fb.me/use-check-prop-types'
10095
- );
10096
- err.name = 'Invariant Violation';
10097
- throw err;
10098
- } else if ( typeof console !== 'undefined') {
10099
- // Old behavior for people using React.PropTypes
10100
- var cacheKey = componentName + ':' + propName;
10101
- if (
10102
- !manualPropTypeCallCache[cacheKey] &&
10103
- // Avoid spamming the console because they are often not actionable except for lib authors
10104
- manualPropTypeWarningCount < 3
10105
- ) {
10106
- printWarning(
10107
- 'You are manually calling a React.PropTypes validation ' +
10108
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
10109
- 'and will throw in the standalone `prop-types` package. ' +
10110
- 'You may be seeing this warning due to a third-party PropTypes ' +
10111
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
10112
- );
10113
- manualPropTypeCallCache[cacheKey] = true;
10114
- manualPropTypeWarningCount++;
10115
- }
10116
- }
10117
- }
10118
- if (props[propName] == null) {
10119
- if (isRequired) {
10120
- if (props[propName] === null) {
10121
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
10122
- }
10123
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
10124
- }
10125
- return null;
10126
- } else {
10127
- return validate(props, propName, componentName, location, propFullName);
10128
- }
10129
- }
10130
-
10131
- var chainedCheckType = checkType.bind(null, false);
10132
- chainedCheckType.isRequired = checkType.bind(null, true);
10133
-
10134
- return chainedCheckType;
10135
- }
10136
-
10137
- function createPrimitiveTypeChecker(expectedType) {
10138
- function validate(props, propName, componentName, location, propFullName, secret) {
10139
- var propValue = props[propName];
10140
- var propType = getPropType(propValue);
10141
- if (propType !== expectedType) {
10142
- // `propValue` being instance of, say, date/regexp, pass the 'object'
10143
- // check, but we can offer a more precise error message here rather than
10144
- // 'of type `object`'.
10145
- var preciseType = getPreciseType(propValue);
10146
-
10147
- return new PropTypeError(
10148
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
10149
- {expectedType: expectedType}
10150
- );
10151
- }
10152
- return null;
10153
- }
10154
- return createChainableTypeChecker(validate);
10155
- }
10156
-
10157
- function createAnyTypeChecker() {
10158
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
10159
- }
10160
-
10161
- function createArrayOfTypeChecker(typeChecker) {
10162
- function validate(props, propName, componentName, location, propFullName) {
10163
- if (typeof typeChecker !== 'function') {
10164
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
10165
- }
10166
- var propValue = props[propName];
10167
- if (!Array.isArray(propValue)) {
10168
- var propType = getPropType(propValue);
10169
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
10170
- }
10171
- for (var i = 0; i < propValue.length; i++) {
10172
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
10173
- if (error instanceof Error) {
10174
- return error;
10175
- }
10176
- }
10177
- return null;
10178
- }
10179
- return createChainableTypeChecker(validate);
10180
- }
10181
-
10182
- function createElementTypeChecker() {
10183
- function validate(props, propName, componentName, location, propFullName) {
10184
- var propValue = props[propName];
10185
- if (!isValidElement(propValue)) {
10186
- var propType = getPropType(propValue);
10187
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
10188
- }
10189
- return null;
10190
- }
10191
- return createChainableTypeChecker(validate);
10192
- }
10193
-
10194
- function createElementTypeTypeChecker() {
10195
- function validate(props, propName, componentName, location, propFullName) {
10196
- var propValue = props[propName];
10197
- if (!ReactIs.isValidElementType(propValue)) {
10198
- var propType = getPropType(propValue);
10199
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
10200
- }
10201
- return null;
10202
- }
10203
- return createChainableTypeChecker(validate);
10204
- }
10205
-
10206
- function createInstanceTypeChecker(expectedClass) {
10207
- function validate(props, propName, componentName, location, propFullName) {
10208
- if (!(props[propName] instanceof expectedClass)) {
10209
- var expectedClassName = expectedClass.name || ANONYMOUS;
10210
- var actualClassName = getClassName(props[propName]);
10211
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
10212
- }
10213
- return null;
10214
- }
10215
- return createChainableTypeChecker(validate);
10216
- }
10217
-
10218
- function createEnumTypeChecker(expectedValues) {
10219
- if (!Array.isArray(expectedValues)) {
10220
- {
10221
- if (arguments.length > 1) {
10222
- printWarning(
10223
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
10224
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
10225
- );
10226
- } else {
10227
- printWarning('Invalid argument supplied to oneOf, expected an array.');
10228
- }
10229
- }
10230
- return emptyFunctionThatReturnsNull;
10231
- }
10232
-
10233
- function validate(props, propName, componentName, location, propFullName) {
10234
- var propValue = props[propName];
10235
- for (var i = 0; i < expectedValues.length; i++) {
10236
- if (is(propValue, expectedValues[i])) {
10237
- return null;
10238
- }
10239
- }
10240
-
10241
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
10242
- var type = getPreciseType(value);
10243
- if (type === 'symbol') {
10244
- return String(value);
10245
- }
10246
- return value;
10247
- });
10248
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
10249
- }
10250
- return createChainableTypeChecker(validate);
10251
- }
10252
-
10253
- function createObjectOfTypeChecker(typeChecker) {
10254
- function validate(props, propName, componentName, location, propFullName) {
10255
- if (typeof typeChecker !== 'function') {
10256
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
10257
- }
10258
- var propValue = props[propName];
10259
- var propType = getPropType(propValue);
10260
- if (propType !== 'object') {
10261
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
10262
- }
10263
- for (var key in propValue) {
10264
- if (has(propValue, key)) {
10265
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10266
- if (error instanceof Error) {
10267
- return error;
10268
- }
10269
- }
10270
- }
10271
- return null;
10272
- }
10273
- return createChainableTypeChecker(validate);
10274
- }
10275
-
10276
- function createUnionTypeChecker(arrayOfTypeCheckers) {
10277
- if (!Array.isArray(arrayOfTypeCheckers)) {
10278
- printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') ;
10279
- return emptyFunctionThatReturnsNull;
10280
- }
10281
-
10282
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
10283
- var checker = arrayOfTypeCheckers[i];
10284
- if (typeof checker !== 'function') {
10285
- printWarning(
10286
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
10287
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
10288
- );
10289
- return emptyFunctionThatReturnsNull;
10290
- }
10291
- }
10292
-
10293
- function validate(props, propName, componentName, location, propFullName) {
10294
- var expectedTypes = [];
10295
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
10296
- var checker = arrayOfTypeCheckers[i];
10297
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
10298
- if (checkerResult == null) {
10299
- return null;
10300
- }
10301
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
10302
- expectedTypes.push(checkerResult.data.expectedType);
10303
- }
10304
- }
10305
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
10306
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
10307
- }
10308
- return createChainableTypeChecker(validate);
10309
- }
10310
-
10311
- function createNodeChecker() {
10312
- function validate(props, propName, componentName, location, propFullName) {
10313
- if (!isNode(props[propName])) {
10314
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
10315
- }
10316
- return null;
10317
- }
10318
- return createChainableTypeChecker(validate);
10319
- }
10320
-
10321
- function invalidValidatorError(componentName, location, propFullName, key, type) {
10322
- return new PropTypeError(
10323
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
10324
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
10325
- );
10326
- }
10327
-
10328
- function createShapeTypeChecker(shapeTypes) {
10329
- function validate(props, propName, componentName, location, propFullName) {
10330
- var propValue = props[propName];
10331
- var propType = getPropType(propValue);
10332
- if (propType !== 'object') {
10333
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
10334
- }
10335
- for (var key in shapeTypes) {
10336
- var checker = shapeTypes[key];
10337
- if (typeof checker !== 'function') {
10338
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
10339
- }
10340
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10341
- if (error) {
10342
- return error;
10343
- }
10344
- }
10345
- return null;
10346
- }
10347
- return createChainableTypeChecker(validate);
10348
- }
10349
-
10350
- function createStrictShapeTypeChecker(shapeTypes) {
10351
- function validate(props, propName, componentName, location, propFullName) {
10352
- var propValue = props[propName];
10353
- var propType = getPropType(propValue);
10354
- if (propType !== 'object') {
10355
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
10356
- }
10357
- // We need to check all keys in case some are required but missing from props.
10358
- var allKeys = assign({}, props[propName], shapeTypes);
10359
- for (var key in allKeys) {
10360
- var checker = shapeTypes[key];
10361
- if (has(shapeTypes, key) && typeof checker !== 'function') {
10362
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
10363
- }
10364
- if (!checker) {
10365
- return new PropTypeError(
10366
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
10367
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
10368
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
10369
- );
10370
- }
10371
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
10372
- if (error) {
10373
- return error;
10374
- }
10375
- }
10376
- return null;
10377
- }
10378
-
10379
- return createChainableTypeChecker(validate);
10380
- }
10381
-
10382
- function isNode(propValue) {
10383
- switch (typeof propValue) {
10384
- case 'number':
10385
- case 'string':
10386
- case 'undefined':
10387
- return true;
10388
- case 'boolean':
10389
- return !propValue;
10390
- case 'object':
10391
- if (Array.isArray(propValue)) {
10392
- return propValue.every(isNode);
10393
- }
10394
- if (propValue === null || isValidElement(propValue)) {
10395
- return true;
10396
- }
10397
-
10398
- var iteratorFn = getIteratorFn(propValue);
10399
- if (iteratorFn) {
10400
- var iterator = iteratorFn.call(propValue);
10401
- var step;
10402
- if (iteratorFn !== propValue.entries) {
10403
- while (!(step = iterator.next()).done) {
10404
- if (!isNode(step.value)) {
10405
- return false;
10406
- }
10407
- }
10408
- } else {
10409
- // Iterator will provide entry [k,v] tuples rather than values.
10410
- while (!(step = iterator.next()).done) {
10411
- var entry = step.value;
10412
- if (entry) {
10413
- if (!isNode(entry[1])) {
10414
- return false;
10415
- }
10416
- }
10417
- }
10418
- }
10419
- } else {
10420
- return false;
10421
- }
10422
-
10423
- return true;
10424
- default:
10425
- return false;
10426
- }
10427
- }
10428
-
10429
- function isSymbol(propType, propValue) {
10430
- // Native Symbol.
10431
- if (propType === 'symbol') {
10432
- return true;
10433
- }
10434
-
10435
- // falsy value can't be a Symbol
10436
- if (!propValue) {
10437
- return false;
10438
- }
10439
-
10440
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
10441
- if (propValue['@@toStringTag'] === 'Symbol') {
10442
- return true;
10443
- }
10444
-
10445
- // Fallback for non-spec compliant Symbols which are polyfilled.
10446
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
10447
- return true;
10448
- }
10449
-
10450
- return false;
10451
- }
10452
-
10453
- // Equivalent of `typeof` but with special handling for array and regexp.
10454
- function getPropType(propValue) {
10455
- var propType = typeof propValue;
10456
- if (Array.isArray(propValue)) {
10457
- return 'array';
10458
- }
10459
- if (propValue instanceof RegExp) {
10460
- // Old webkits (at least until Android 4.0) return 'function' rather than
10461
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
10462
- // passes PropTypes.object.
10463
- return 'object';
10464
- }
10465
- if (isSymbol(propType, propValue)) {
10466
- return 'symbol';
10467
- }
10468
- return propType;
10469
- }
10470
-
10471
- // This handles more types than `getPropType`. Only used for error messages.
10472
- // See `createPrimitiveTypeChecker`.
10473
- function getPreciseType(propValue) {
10474
- if (typeof propValue === 'undefined' || propValue === null) {
10475
- return '' + propValue;
10476
- }
10477
- var propType = getPropType(propValue);
10478
- if (propType === 'object') {
10479
- if (propValue instanceof Date) {
10480
- return 'date';
10481
- } else if (propValue instanceof RegExp) {
10482
- return 'regexp';
10483
- }
10484
- }
10485
- return propType;
10486
- }
10487
-
10488
- // Returns a string that is postfixed to a warning about an invalid type.
10489
- // For example, "undefined" or "of type array"
10490
- function getPostfixForTypeWarning(value) {
10491
- var type = getPreciseType(value);
10492
- switch (type) {
10493
- case 'array':
10494
- case 'object':
10495
- return 'an ' + type;
10496
- case 'boolean':
10497
- case 'date':
10498
- case 'regexp':
10499
- return 'a ' + type;
10500
- default:
10501
- return type;
10502
- }
10503
- }
10504
-
10505
- // Returns class name of the object, if any.
10506
- function getClassName(propValue) {
10507
- if (!propValue.constructor || !propValue.constructor.name) {
10508
- return ANONYMOUS;
10509
- }
10510
- return propValue.constructor.name;
10511
- }
10512
-
10513
- ReactPropTypes.checkPropTypes = checkPropTypes;
10514
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
10515
- ReactPropTypes.PropTypes = ReactPropTypes;
10516
-
10517
- return ReactPropTypes;
10518
- };
10519
-
10520
-
10521
- /***/ }),
10522
-
10523
- /***/ "./node_modules/prop-types/index.js":
10524
- /*!******************************************!*\
10525
- !*** ./node_modules/prop-types/index.js ***!
10526
- \******************************************/
10527
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10528
-
10529
- /**
10530
- * Copyright (c) 2013-present, Facebook, Inc.
10531
- *
10532
- * This source code is licensed under the MIT license found in the
10533
- * LICENSE file in the root directory of this source tree.
10534
- */
10535
-
10536
- {
10537
- var ReactIs = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
10538
-
10539
- // By explicitly using `prop-types` you are opting into new development behavior.
10540
- // http://fb.me/prop-types-in-prod
10541
- var throwOnDirectAccess = true;
10542
- module.exports = __webpack_require__(/*! ./factoryWithTypeCheckers */ "./node_modules/prop-types/factoryWithTypeCheckers.js")(ReactIs.isElement, throwOnDirectAccess);
10543
- }
10544
10554
 
10555
+ /***/ }),
10545
10556
 
10546
- /***/ }),
10557
+ /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
10558
+ /*!*************************************************************!*\
10559
+ !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
10560
+ \*************************************************************/
10561
+ /***/ ((module) => {
10562
+ /**
10563
+ * Copyright (c) 2013-present, Facebook, Inc.
10564
+ *
10565
+ * This source code is licensed under the MIT license found in the
10566
+ * LICENSE file in the root directory of this source tree.
10567
+ */
10547
10568
 
10548
- /***/ "./node_modules/prop-types/lib/ReactPropTypesSecret.js":
10549
- /*!*************************************************************!*\
10550
- !*** ./node_modules/prop-types/lib/ReactPropTypesSecret.js ***!
10551
- \*************************************************************/
10552
- /***/ ((module) => {
10553
- /**
10554
- * Copyright (c) 2013-present, Facebook, Inc.
10555
- *
10556
- * This source code is licensed under the MIT license found in the
10557
- * LICENSE file in the root directory of this source tree.
10558
- */
10559
10569
 
10560
10570
 
10571
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
10561
10572
 
10562
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
10573
+ module.exports = ReactPropTypesSecret;
10563
10574
 
10564
- module.exports = ReactPropTypesSecret;
10565
10575
 
10576
+ /***/ }),
10566
10577
 
10567
- /***/ }),
10578
+ /***/ "./node_modules/prop-types/lib/has.js":
10579
+ /*!********************************************!*\
10580
+ !*** ./node_modules/prop-types/lib/has.js ***!
10581
+ \********************************************/
10582
+ /***/ ((module) => {
10568
10583
 
10569
- /***/ "./node_modules/prop-types/lib/has.js":
10570
- /*!********************************************!*\
10571
- !*** ./node_modules/prop-types/lib/has.js ***!
10572
- \********************************************/
10573
- /***/ ((module) => {
10584
+ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
10574
10585
 
10575
- module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
10576
10586
 
10587
+ /***/ }),
10577
10588
 
10578
- /***/ }),
10589
+ /***/ "./node_modules/react-is/cjs/react-is.development.js":
10590
+ /*!***********************************************************!*\
10591
+ !*** ./node_modules/react-is/cjs/react-is.development.js ***!
10592
+ \***********************************************************/
10593
+ /***/ ((__unused_webpack_module, exports) => {
10594
+ /** @license React v16.13.1
10595
+ * react-is.development.js
10596
+ *
10597
+ * Copyright (c) Facebook, Inc. and its affiliates.
10598
+ *
10599
+ * This source code is licensed under the MIT license found in the
10600
+ * LICENSE file in the root directory of this source tree.
10601
+ */
10579
10602
 
10580
- /***/ "./node_modules/react-is/cjs/react-is.development.js":
10581
- /*!***********************************************************!*\
10582
- !*** ./node_modules/react-is/cjs/react-is.development.js ***!
10583
- \***********************************************************/
10584
- /***/ ((__unused_webpack_module, exports) => {
10585
- /** @license React v16.13.1
10586
- * react-is.development.js
10587
- *
10588
- * Copyright (c) Facebook, Inc. and its affiliates.
10589
- *
10590
- * This source code is licensed under the MIT license found in the
10591
- * LICENSE file in the root directory of this source tree.
10592
- */
10593
10603
 
10594
10604
 
10595
10605
 
10596
10606
 
10607
+ {
10608
+ (function() {
10597
10609
 
10598
- {
10599
- (function() {
10610
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
10611
+ // nor polyfill, then a plain number is used for performance.
10612
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
10613
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
10614
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
10615
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
10616
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
10617
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
10618
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
10619
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
10620
+ // (unstable) APIs that have been removed. Can we remove the symbols?
10600
10621
 
10601
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
10602
- // nor polyfill, then a plain number is used for performance.
10603
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
10604
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
10605
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
10606
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
10607
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
10608
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
10609
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
10610
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
10611
- // (unstable) APIs that have been removed. Can we remove the symbols?
10622
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
10623
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
10624
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
10625
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
10626
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
10627
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
10628
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
10629
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
10630
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
10631
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
10632
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
10612
10633
 
10613
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
10614
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
10615
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
10616
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
10617
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
10618
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
10619
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
10620
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
10621
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
10622
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
10623
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
10634
+ function isValidElementType(type) {
10635
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
10636
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
10637
+ }
10624
10638
 
10625
- function isValidElementType(type) {
10626
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
10627
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
10628
- }
10639
+ function typeOf(object) {
10640
+ if (typeof object === 'object' && object !== null) {
10641
+ var $$typeof = object.$$typeof;
10642
+
10643
+ switch ($$typeof) {
10644
+ case REACT_ELEMENT_TYPE:
10645
+ var type = object.type;
10646
+
10647
+ switch (type) {
10648
+ case REACT_ASYNC_MODE_TYPE:
10649
+ case REACT_CONCURRENT_MODE_TYPE:
10650
+ case REACT_FRAGMENT_TYPE:
10651
+ case REACT_PROFILER_TYPE:
10652
+ case REACT_STRICT_MODE_TYPE:
10653
+ case REACT_SUSPENSE_TYPE:
10654
+ return type;
10655
+
10656
+ default:
10657
+ var $$typeofType = type && type.$$typeof;
10658
+
10659
+ switch ($$typeofType) {
10660
+ case REACT_CONTEXT_TYPE:
10661
+ case REACT_FORWARD_REF_TYPE:
10662
+ case REACT_LAZY_TYPE:
10663
+ case REACT_MEMO_TYPE:
10664
+ case REACT_PROVIDER_TYPE:
10665
+ return $$typeofType;
10666
+
10667
+ default:
10668
+ return $$typeof;
10669
+ }
10670
+
10671
+ }
10672
+
10673
+ case REACT_PORTAL_TYPE:
10674
+ return $$typeof;
10675
+ }
10676
+ }
10677
+
10678
+ return undefined;
10679
+ } // AsyncMode is deprecated along with isAsyncMode
10680
+
10681
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
10682
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
10683
+ var ContextConsumer = REACT_CONTEXT_TYPE;
10684
+ var ContextProvider = REACT_PROVIDER_TYPE;
10685
+ var Element = REACT_ELEMENT_TYPE;
10686
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
10687
+ var Fragment = REACT_FRAGMENT_TYPE;
10688
+ var Lazy = REACT_LAZY_TYPE;
10689
+ var Memo = REACT_MEMO_TYPE;
10690
+ var Portal = REACT_PORTAL_TYPE;
10691
+ var Profiler = REACT_PROFILER_TYPE;
10692
+ var StrictMode = REACT_STRICT_MODE_TYPE;
10693
+ var Suspense = REACT_SUSPENSE_TYPE;
10694
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
10695
+
10696
+ function isAsyncMode(object) {
10697
+ {
10698
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
10699
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
10700
+
10701
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
10702
+ }
10703
+ }
10704
+
10705
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
10706
+ }
10707
+ function isConcurrentMode(object) {
10708
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
10709
+ }
10710
+ function isContextConsumer(object) {
10711
+ return typeOf(object) === REACT_CONTEXT_TYPE;
10712
+ }
10713
+ function isContextProvider(object) {
10714
+ return typeOf(object) === REACT_PROVIDER_TYPE;
10715
+ }
10716
+ function isElement(object) {
10717
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
10718
+ }
10719
+ function isForwardRef(object) {
10720
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
10721
+ }
10722
+ function isFragment(object) {
10723
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
10724
+ }
10725
+ function isLazy(object) {
10726
+ return typeOf(object) === REACT_LAZY_TYPE;
10727
+ }
10728
+ function isMemo(object) {
10729
+ return typeOf(object) === REACT_MEMO_TYPE;
10730
+ }
10731
+ function isPortal(object) {
10732
+ return typeOf(object) === REACT_PORTAL_TYPE;
10733
+ }
10734
+ function isProfiler(object) {
10735
+ return typeOf(object) === REACT_PROFILER_TYPE;
10736
+ }
10737
+ function isStrictMode(object) {
10738
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
10739
+ }
10740
+ function isSuspense(object) {
10741
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
10742
+ }
10629
10743
 
10630
- function typeOf(object) {
10631
- if (typeof object === 'object' && object !== null) {
10632
- var $$typeof = object.$$typeof;
10633
-
10634
- switch ($$typeof) {
10635
- case REACT_ELEMENT_TYPE:
10636
- var type = object.type;
10637
-
10638
- switch (type) {
10639
- case REACT_ASYNC_MODE_TYPE:
10640
- case REACT_CONCURRENT_MODE_TYPE:
10641
- case REACT_FRAGMENT_TYPE:
10642
- case REACT_PROFILER_TYPE:
10643
- case REACT_STRICT_MODE_TYPE:
10644
- case REACT_SUSPENSE_TYPE:
10645
- return type;
10646
-
10647
- default:
10648
- var $$typeofType = type && type.$$typeof;
10649
-
10650
- switch ($$typeofType) {
10651
- case REACT_CONTEXT_TYPE:
10652
- case REACT_FORWARD_REF_TYPE:
10653
- case REACT_LAZY_TYPE:
10654
- case REACT_MEMO_TYPE:
10655
- case REACT_PROVIDER_TYPE:
10656
- return $$typeofType;
10657
-
10658
- default:
10659
- return $$typeof;
10660
- }
10661
-
10662
- }
10663
-
10664
- case REACT_PORTAL_TYPE:
10665
- return $$typeof;
10666
- }
10667
- }
10668
-
10669
- return undefined;
10670
- } // AsyncMode is deprecated along with isAsyncMode
10671
-
10672
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
10673
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
10674
- var ContextConsumer = REACT_CONTEXT_TYPE;
10675
- var ContextProvider = REACT_PROVIDER_TYPE;
10676
- var Element = REACT_ELEMENT_TYPE;
10677
- var ForwardRef = REACT_FORWARD_REF_TYPE;
10678
- var Fragment = REACT_FRAGMENT_TYPE;
10679
- var Lazy = REACT_LAZY_TYPE;
10680
- var Memo = REACT_MEMO_TYPE;
10681
- var Portal = REACT_PORTAL_TYPE;
10682
- var Profiler = REACT_PROFILER_TYPE;
10683
- var StrictMode = REACT_STRICT_MODE_TYPE;
10684
- var Suspense = REACT_SUSPENSE_TYPE;
10685
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
10686
-
10687
- function isAsyncMode(object) {
10688
- {
10689
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
10690
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
10691
-
10692
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
10693
- }
10694
- }
10695
-
10696
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
10697
- }
10698
- function isConcurrentMode(object) {
10699
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
10700
- }
10701
- function isContextConsumer(object) {
10702
- return typeOf(object) === REACT_CONTEXT_TYPE;
10703
- }
10704
- function isContextProvider(object) {
10705
- return typeOf(object) === REACT_PROVIDER_TYPE;
10706
- }
10707
- function isElement(object) {
10708
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
10709
- }
10710
- function isForwardRef(object) {
10711
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
10712
- }
10713
- function isFragment(object) {
10714
- return typeOf(object) === REACT_FRAGMENT_TYPE;
10715
- }
10716
- function isLazy(object) {
10717
- return typeOf(object) === REACT_LAZY_TYPE;
10718
- }
10719
- function isMemo(object) {
10720
- return typeOf(object) === REACT_MEMO_TYPE;
10721
- }
10722
- function isPortal(object) {
10723
- return typeOf(object) === REACT_PORTAL_TYPE;
10724
- }
10725
- function isProfiler(object) {
10726
- return typeOf(object) === REACT_PROFILER_TYPE;
10727
- }
10728
- function isStrictMode(object) {
10729
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
10730
- }
10731
- function isSuspense(object) {
10732
- return typeOf(object) === REACT_SUSPENSE_TYPE;
10733
- }
10744
+ exports.AsyncMode = AsyncMode;
10745
+ exports.ConcurrentMode = ConcurrentMode;
10746
+ exports.ContextConsumer = ContextConsumer;
10747
+ exports.ContextProvider = ContextProvider;
10748
+ exports.Element = Element;
10749
+ exports.ForwardRef = ForwardRef;
10750
+ exports.Fragment = Fragment;
10751
+ exports.Lazy = Lazy;
10752
+ exports.Memo = Memo;
10753
+ exports.Portal = Portal;
10754
+ exports.Profiler = Profiler;
10755
+ exports.StrictMode = StrictMode;
10756
+ exports.Suspense = Suspense;
10757
+ exports.isAsyncMode = isAsyncMode;
10758
+ exports.isConcurrentMode = isConcurrentMode;
10759
+ exports.isContextConsumer = isContextConsumer;
10760
+ exports.isContextProvider = isContextProvider;
10761
+ exports.isElement = isElement;
10762
+ exports.isForwardRef = isForwardRef;
10763
+ exports.isFragment = isFragment;
10764
+ exports.isLazy = isLazy;
10765
+ exports.isMemo = isMemo;
10766
+ exports.isPortal = isPortal;
10767
+ exports.isProfiler = isProfiler;
10768
+ exports.isStrictMode = isStrictMode;
10769
+ exports.isSuspense = isSuspense;
10770
+ exports.isValidElementType = isValidElementType;
10771
+ exports.typeOf = typeOf;
10772
+ })();
10773
+ }
10734
10774
 
10735
- exports.AsyncMode = AsyncMode;
10736
- exports.ConcurrentMode = ConcurrentMode;
10737
- exports.ContextConsumer = ContextConsumer;
10738
- exports.ContextProvider = ContextProvider;
10739
- exports.Element = Element;
10740
- exports.ForwardRef = ForwardRef;
10741
- exports.Fragment = Fragment;
10742
- exports.Lazy = Lazy;
10743
- exports.Memo = Memo;
10744
- exports.Portal = Portal;
10745
- exports.Profiler = Profiler;
10746
- exports.StrictMode = StrictMode;
10747
- exports.Suspense = Suspense;
10748
- exports.isAsyncMode = isAsyncMode;
10749
- exports.isConcurrentMode = isConcurrentMode;
10750
- exports.isContextConsumer = isContextConsumer;
10751
- exports.isContextProvider = isContextProvider;
10752
- exports.isElement = isElement;
10753
- exports.isForwardRef = isForwardRef;
10754
- exports.isFragment = isFragment;
10755
- exports.isLazy = isLazy;
10756
- exports.isMemo = isMemo;
10757
- exports.isPortal = isPortal;
10758
- exports.isProfiler = isProfiler;
10759
- exports.isStrictMode = isStrictMode;
10760
- exports.isSuspense = isSuspense;
10761
- exports.isValidElementType = isValidElementType;
10762
- exports.typeOf = typeOf;
10763
- })();
10764
- }
10765
10775
 
10776
+ /***/ }),
10766
10777
 
10767
- /***/ }),
10778
+ /***/ "./node_modules/react-is/index.js":
10779
+ /*!****************************************!*\
10780
+ !*** ./node_modules/react-is/index.js ***!
10781
+ \****************************************/
10782
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10768
10783
 
10769
- /***/ "./node_modules/react-is/index.js":
10770
- /*!****************************************!*\
10771
- !*** ./node_modules/react-is/index.js ***!
10772
- \****************************************/
10773
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
10774
10784
 
10785
+ {
10786
+ module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
10787
+ }
10775
10788
 
10776
- {
10777
- module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "./node_modules/react-is/cjs/react-is.development.js");
10778
- }
10779
10789
 
10790
+ /***/ }),
10791
+
10792
+ /***/ "./node_modules/shallow-equal/dist/index.esm.js":
10793
+ /*!******************************************************!*\
10794
+ !*** ./node_modules/shallow-equal/dist/index.esm.js ***!
10795
+ \******************************************************/
10796
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10797
+ __webpack_require__.r(__webpack_exports__);
10798
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10799
+ /* harmony export */ "shallowEqualArrays": () => (/* binding */ shallowEqualArrays),
10800
+ /* harmony export */ "shallowEqualObjects": () => (/* binding */ shallowEqualObjects)
10801
+ /* harmony export */ });
10802
+ function shallowEqualObjects(objA, objB) {
10803
+ if (objA === objB) {
10804
+ return true;
10805
+ }
10806
+
10807
+ if (!objA || !objB) {
10808
+ return false;
10809
+ }
10810
+
10811
+ var aKeys = Object.keys(objA);
10812
+ var bKeys = Object.keys(objB);
10813
+ var len = aKeys.length;
10814
+
10815
+ if (bKeys.length !== len) {
10816
+ return false;
10817
+ }
10818
+
10819
+ for (var i = 0; i < len; i++) {
10820
+ var key = aKeys[i];
10821
+
10822
+ if (objA[key] !== objB[key] || !Object.prototype.hasOwnProperty.call(objB, key)) {
10823
+ return false;
10824
+ }
10825
+ }
10826
+
10827
+ return true;
10828
+ }
10780
10829
 
10781
- /***/ }),
10782
-
10783
- /***/ "./node_modules/shallow-equal/dist/index.esm.js":
10784
- /*!******************************************************!*\
10785
- !*** ./node_modules/shallow-equal/dist/index.esm.js ***!
10786
- \******************************************************/
10787
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
10788
- __webpack_require__.r(__webpack_exports__);
10789
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
10790
- /* harmony export */ "shallowEqualArrays": () => (/* binding */ shallowEqualArrays),
10791
- /* harmony export */ "shallowEqualObjects": () => (/* binding */ shallowEqualObjects)
10792
- /* harmony export */ });
10793
- function shallowEqualObjects(objA, objB) {
10794
- if (objA === objB) {
10795
- return true;
10796
- }
10797
-
10798
- if (!objA || !objB) {
10799
- return false;
10800
- }
10801
-
10802
- var aKeys = Object.keys(objA);
10803
- var bKeys = Object.keys(objB);
10804
- var len = aKeys.length;
10805
-
10806
- if (bKeys.length !== len) {
10807
- return false;
10808
- }
10809
-
10810
- for (var i = 0; i < len; i++) {
10811
- var key = aKeys[i];
10812
-
10813
- if (objA[key] !== objB[key] || !Object.prototype.hasOwnProperty.call(objB, key)) {
10814
- return false;
10815
- }
10816
- }
10817
-
10818
- return true;
10819
- }
10830
+ function shallowEqualArrays(arrA, arrB) {
10831
+ if (arrA === arrB) {
10832
+ return true;
10833
+ }
10820
10834
 
10821
- function shallowEqualArrays(arrA, arrB) {
10822
- if (arrA === arrB) {
10823
- return true;
10824
- }
10835
+ if (!arrA || !arrB) {
10836
+ return false;
10837
+ }
10825
10838
 
10826
- if (!arrA || !arrB) {
10827
- return false;
10828
- }
10839
+ var len = arrA.length;
10829
10840
 
10830
- var len = arrA.length;
10841
+ if (arrB.length !== len) {
10842
+ return false;
10843
+ }
10831
10844
 
10832
- if (arrB.length !== len) {
10833
- return false;
10834
- }
10845
+ for (var i = 0; i < len; i++) {
10846
+ if (arrA[i] !== arrB[i]) {
10847
+ return false;
10848
+ }
10849
+ }
10835
10850
 
10836
- for (var i = 0; i < len; i++) {
10837
- if (arrA[i] !== arrB[i]) {
10838
- return false;
10839
- }
10840
- }
10851
+ return true;
10852
+ }
10841
10853
 
10842
- return true;
10843
- }
10844
10854
 
10845
10855
 
10846
10856
 
10857
+ /***/ }),
10858
+
10859
+ /***/ "./src/Component.ts":
10860
+ /*!**************************!*\
10861
+ !*** ./src/Component.ts ***!
10862
+ \**************************/
10863
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10864
+
10865
+ var __rest = (this && this.__rest) || function (s, e) {
10866
+ var t = {};
10867
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10868
+ t[p] = s[p];
10869
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
10870
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10871
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
10872
+ t[p[i]] = s[p[i]];
10873
+ }
10874
+ return t;
10875
+ };
10876
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10877
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10878
+ };
10879
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10880
+ var useMediaQuery_1 = __importDefault(__webpack_require__(/*! ./useMediaQuery */ "./src/useMediaQuery.ts"));
10881
+ // ReactNode and ReactElement typings are a little funky for functional components, so the ReactElement cast is needed on the return
10882
+ var MediaQuery = function (_a) {
10883
+ var children = _a.children, device = _a.device, onChange = _a.onChange, settings = __rest(_a, ["children", "device", "onChange"]);
10884
+ var matches = (0, useMediaQuery_1.default)(settings, device, onChange);
10885
+ if (typeof children === 'function') {
10886
+ return children(matches);
10887
+ }
10888
+ return matches ? children : null;
10889
+ };
10890
+ exports["default"] = MediaQuery;
10891
+
10892
+
10893
+ /***/ }),
10894
+
10895
+ /***/ "./src/Context.ts":
10896
+ /*!************************!*\
10897
+ !*** ./src/Context.ts ***!
10898
+ \************************/
10899
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10900
+
10901
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10902
+ var react_1 = __webpack_require__(/*! react */ "react");
10903
+ var Context = (0, react_1.createContext)(undefined);
10904
+ exports["default"] = Context;
10905
+
10906
+
10907
+ /***/ }),
10908
+
10909
+ /***/ "./src/index.ts":
10910
+ /*!**********************!*\
10911
+ !*** ./src/index.ts ***!
10912
+ \**********************/
10913
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10914
+
10915
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10916
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10917
+ };
10918
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10919
+ exports.Context = exports.toQuery = exports.useMediaQuery = exports["default"] = void 0;
10920
+ var useMediaQuery_1 = __importDefault(__webpack_require__(/*! ./useMediaQuery */ "./src/useMediaQuery.ts"));
10921
+ exports.useMediaQuery = useMediaQuery_1.default;
10922
+ var Component_1 = __importDefault(__webpack_require__(/*! ./Component */ "./src/Component.ts"));
10923
+ exports["default"] = Component_1.default;
10924
+ var toQuery_1 = __importDefault(__webpack_require__(/*! ./toQuery */ "./src/toQuery.ts"));
10925
+ exports.toQuery = toQuery_1.default;
10926
+ var Context_1 = __importDefault(__webpack_require__(/*! ./Context */ "./src/Context.ts"));
10927
+ exports.Context = Context_1.default;
10928
+
10929
+
10930
+ /***/ }),
10931
+
10932
+ /***/ "./src/mediaQuery.ts":
10933
+ /*!***************************!*\
10934
+ !*** ./src/mediaQuery.ts ***!
10935
+ \***************************/
10936
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10937
+
10938
+ var __assign = (this && this.__assign) || function () {
10939
+ __assign = Object.assign || function(t) {
10940
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
10941
+ s = arguments[i];
10942
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10943
+ t[p] = s[p];
10944
+ }
10945
+ return t;
10946
+ };
10947
+ return __assign.apply(this, arguments);
10948
+ };
10949
+ var __rest = (this && this.__rest) || function (s, e) {
10950
+ var t = {};
10951
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10952
+ t[p] = s[p];
10953
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
10954
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10955
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
10956
+ t[p[i]] = s[p[i]];
10957
+ }
10958
+ return t;
10959
+ };
10960
+ var __importDefault = (this && this.__importDefault) || function (mod) {
10961
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10962
+ };
10963
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
10964
+ var prop_types_1 = __importDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));
10965
+ var stringOrNumber = prop_types_1.default.oneOfType([
10966
+ prop_types_1.default.string,
10967
+ prop_types_1.default.number
10968
+ ]);
10969
+ // media types
10970
+ var types = {
10971
+ all: prop_types_1.default.bool,
10972
+ grid: prop_types_1.default.bool,
10973
+ aural: prop_types_1.default.bool,
10974
+ braille: prop_types_1.default.bool,
10975
+ handheld: prop_types_1.default.bool,
10976
+ print: prop_types_1.default.bool,
10977
+ projection: prop_types_1.default.bool,
10978
+ screen: prop_types_1.default.bool,
10979
+ tty: prop_types_1.default.bool,
10980
+ tv: prop_types_1.default.bool,
10981
+ embossed: prop_types_1.default.bool
10982
+ };
10983
+ // properties that match media queries
10984
+ var matchers = {
10985
+ orientation: prop_types_1.default.oneOf([
10986
+ 'portrait',
10987
+ 'landscape'
10988
+ ]),
10989
+ scan: prop_types_1.default.oneOf([
10990
+ 'progressive',
10991
+ 'interlace'
10992
+ ]),
10993
+ aspectRatio: prop_types_1.default.string,
10994
+ deviceAspectRatio: prop_types_1.default.string,
10995
+ height: stringOrNumber,
10996
+ deviceHeight: stringOrNumber,
10997
+ width: stringOrNumber,
10998
+ deviceWidth: stringOrNumber,
10999
+ color: prop_types_1.default.bool,
11000
+ colorIndex: prop_types_1.default.bool,
11001
+ monochrome: prop_types_1.default.bool,
11002
+ resolution: stringOrNumber,
11003
+ type: Object.keys(types)
11004
+ };
11005
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
11006
+ matchers.type; var featureMatchers = __rest(matchers
11007
+ // media features
11008
+ , ["type"]);
11009
+ // media features
11010
+ var features = __assign({ minAspectRatio: prop_types_1.default.string, maxAspectRatio: prop_types_1.default.string, minDeviceAspectRatio: prop_types_1.default.string, maxDeviceAspectRatio: prop_types_1.default.string, minHeight: stringOrNumber, maxHeight: stringOrNumber, minDeviceHeight: stringOrNumber, maxDeviceHeight: stringOrNumber, minWidth: stringOrNumber, maxWidth: stringOrNumber, minDeviceWidth: stringOrNumber, maxDeviceWidth: stringOrNumber, minColor: prop_types_1.default.number, maxColor: prop_types_1.default.number, minColorIndex: prop_types_1.default.number, maxColorIndex: prop_types_1.default.number, minMonochrome: prop_types_1.default.number, maxMonochrome: prop_types_1.default.number, minResolution: stringOrNumber, maxResolution: stringOrNumber }, featureMatchers);
11011
+ var all = __assign(__assign({}, types), features);
11012
+ exports["default"] = {
11013
+ all: all,
11014
+ types: types,
11015
+ matchers: matchers,
11016
+ features: features
11017
+ };
11018
+
11019
+
11020
+ /***/ }),
11021
+
11022
+ /***/ "./src/toQuery.ts":
11023
+ /*!************************!*\
11024
+ !*** ./src/toQuery.ts ***!
11025
+ \************************/
11026
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
11027
+
11028
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11029
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11030
+ };
11031
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
11032
+ var hyphenate_style_name_1 = __importDefault(__webpack_require__(/*! hyphenate-style-name */ "./node_modules/hyphenate-style-name/index.js"));
11033
+ var mediaQuery_1 = __importDefault(__webpack_require__(/*! ./mediaQuery */ "./src/mediaQuery.ts"));
11034
+ var negate = function (cond) { return "not ".concat(cond); };
11035
+ var keyVal = function (k, v) {
11036
+ var realKey = (0, hyphenate_style_name_1.default)(k);
11037
+ // px shorthand
11038
+ if (typeof v === 'number') {
11039
+ v = "".concat(v, "px");
11040
+ }
11041
+ if (v === true) {
11042
+ return realKey;
11043
+ }
11044
+ if (v === false) {
11045
+ return negate(realKey);
11046
+ }
11047
+ return "(".concat(realKey, ": ").concat(v, ")");
11048
+ };
11049
+ var join = function (conds) { return conds.join(' and '); };
11050
+ var toQuery = function (obj) {
11051
+ var rules = [];
11052
+ Object.keys(mediaQuery_1.default.all).forEach(function (k) {
11053
+ var v = obj[k];
11054
+ if (v != null) {
11055
+ rules.push(keyVal(k, v));
11056
+ }
11057
+ });
11058
+ return join(rules);
11059
+ };
11060
+ exports["default"] = toQuery;
11061
+
11062
+
11063
+ /***/ }),
11064
+
11065
+ /***/ "./src/useMediaQuery.ts":
11066
+ /*!******************************!*\
11067
+ !*** ./src/useMediaQuery.ts ***!
11068
+ \******************************/
11069
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
11070
+
11071
+ var __importDefault = (this && this.__importDefault) || function (mod) {
11072
+ return (mod && mod.__esModule) ? mod : { "default": mod };
11073
+ };
11074
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
11075
+ var react_1 = __webpack_require__(/*! react */ "react");
11076
+ var matchmediaquery_1 = __importDefault(__webpack_require__(/*! matchmediaquery */ "./node_modules/matchmediaquery/index.js"));
11077
+ var hyphenate_style_name_1 = __importDefault(__webpack_require__(/*! hyphenate-style-name */ "./node_modules/hyphenate-style-name/index.js"));
11078
+ var shallow_equal_1 = __webpack_require__(/*! shallow-equal */ "./node_modules/shallow-equal/dist/index.esm.js");
11079
+ var toQuery_1 = __importDefault(__webpack_require__(/*! ./toQuery */ "./src/toQuery.ts"));
11080
+ var Context_1 = __importDefault(__webpack_require__(/*! ./Context */ "./src/Context.ts"));
11081
+ var makeQuery = function (settings) { return settings.query || (0, toQuery_1.default)(settings); };
11082
+ var hyphenateKeys = function (obj) {
11083
+ if (!obj)
11084
+ return undefined;
11085
+ var keys = Object.keys(obj);
11086
+ return keys.reduce(function (result, key) {
11087
+ result[(0, hyphenate_style_name_1.default)(key)] = obj[key];
11088
+ return result;
11089
+ }, {});
11090
+ };
11091
+ var useIsUpdate = function () {
11092
+ var ref = (0, react_1.useRef)(false);
11093
+ (0, react_1.useEffect)(function () {
11094
+ ref.current = true;
11095
+ }, []);
11096
+ return ref.current;
11097
+ };
11098
+ var useDevice = function (deviceFromProps) {
11099
+ var deviceFromContext = (0, react_1.useContext)(Context_1.default);
11100
+ var getDevice = function () {
11101
+ return hyphenateKeys(deviceFromProps) || hyphenateKeys(deviceFromContext);
11102
+ };
11103
+ var _a = (0, react_1.useState)(getDevice), device = _a[0], setDevice = _a[1];
11104
+ (0, react_1.useEffect)(function () {
11105
+ var newDevice = getDevice();
11106
+ if (!(0, shallow_equal_1.shallowEqualObjects)(device, newDevice)) {
11107
+ setDevice(newDevice);
11108
+ }
11109
+ }, [deviceFromProps, deviceFromContext]);
11110
+ return device;
11111
+ };
11112
+ var useQuery = function (settings) {
11113
+ var getQuery = function () { return makeQuery(settings); };
11114
+ var _a = (0, react_1.useState)(getQuery), query = _a[0], setQuery = _a[1];
11115
+ (0, react_1.useEffect)(function () {
11116
+ var newQuery = getQuery();
11117
+ if (query !== newQuery) {
11118
+ setQuery(newQuery);
11119
+ }
11120
+ }, [settings]);
11121
+ return query;
11122
+ };
11123
+ var useMatchMedia = function (query, device) {
11124
+ var getMatchMedia = function () { return (0, matchmediaquery_1.default)(query, device || {}, !!device); };
11125
+ var _a = (0, react_1.useState)(getMatchMedia), mq = _a[0], setMq = _a[1];
11126
+ var isUpdate = useIsUpdate();
11127
+ (0, react_1.useEffect)(function () {
11128
+ if (isUpdate) {
11129
+ // skip on mounting, it has already been set
11130
+ var newMq_1 = getMatchMedia();
11131
+ setMq(newMq_1);
11132
+ return function () {
11133
+ if (newMq_1) {
11134
+ newMq_1.dispose();
11135
+ }
11136
+ };
11137
+ }
11138
+ }, [query, device]);
11139
+ return mq;
11140
+ };
11141
+ var useMatches = function (mediaQuery) {
11142
+ var _a = (0, react_1.useState)(mediaQuery.matches), matches = _a[0], setMatches = _a[1];
11143
+ (0, react_1.useEffect)(function () {
11144
+ var updateMatches = function (ev) {
11145
+ setMatches(ev.matches);
11146
+ };
11147
+ mediaQuery.addListener(updateMatches);
11148
+ setMatches(mediaQuery.matches);
11149
+ return function () {
11150
+ mediaQuery.removeListener(updateMatches);
11151
+ };
11152
+ }, [mediaQuery]);
11153
+ return matches;
11154
+ };
11155
+ var useMediaQuery = function (settings, device, onChange) {
11156
+ var deviceSettings = useDevice(device);
11157
+ var query = useQuery(settings);
11158
+ if (!query)
11159
+ throw new Error('Invalid or missing MediaQuery!');
11160
+ var mq = useMatchMedia(query, deviceSettings);
11161
+ var matches = useMatches(mq);
11162
+ var isUpdate = useIsUpdate();
11163
+ (0, react_1.useEffect)(function () {
11164
+ if (isUpdate && onChange) {
11165
+ onChange(matches);
11166
+ }
11167
+ }, [matches]);
11168
+ (0, react_1.useEffect)(function () { return function () {
11169
+ if (mq) {
11170
+ mq.dispose();
11171
+ }
11172
+ }; }, []);
11173
+ return matches;
11174
+ };
11175
+ exports["default"] = useMediaQuery;
11176
+
11177
+
11178
+ /***/ }),
11179
+
11180
+ /***/ "react":
11181
+ /*!**************************************************************************************!*\
11182
+ !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
11183
+ \**************************************************************************************/
11184
+ /***/ ((module) => {
11185
+ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
11186
+
11187
+ /***/ })
11188
+
11189
+ /******/ });
11190
+ /************************************************************************/
11191
+ /******/ // The module cache
11192
+ /******/ var __webpack_module_cache__ = {};
11193
+ /******/
11194
+ /******/ // The require function
11195
+ /******/ function __webpack_require__(moduleId) {
11196
+ /******/ // Check if module is in cache
11197
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
11198
+ /******/ if (cachedModule !== undefined) {
11199
+ /******/ return cachedModule.exports;
11200
+ /******/ }
11201
+ /******/ // Create a new module (and put it into the cache)
11202
+ /******/ var module = __webpack_module_cache__[moduleId] = {
11203
+ /******/ // no module.id needed
11204
+ /******/ // no module.loaded needed
11205
+ /******/ exports: {}
11206
+ /******/ };
11207
+ /******/
11208
+ /******/ // Execute the module function
11209
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
11210
+ /******/
11211
+ /******/ // Return the exports of the module
11212
+ /******/ return module.exports;
11213
+ /******/ }
11214
+ /******/
11215
+ /************************************************************************/
11216
+ /******/ /* webpack/runtime/define property getters */
11217
+ /******/ (() => {
11218
+ /******/ // define getter functions for harmony exports
11219
+ /******/ __webpack_require__.d = (exports, definition) => {
11220
+ /******/ for(var key in definition) {
11221
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
11222
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
11223
+ /******/ }
11224
+ /******/ }
11225
+ /******/ };
11226
+ /******/ })();
11227
+ /******/
11228
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
11229
+ /******/ (() => {
11230
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
11231
+ /******/ })();
11232
+ /******/
11233
+ /******/ /* webpack/runtime/make namespace object */
11234
+ /******/ (() => {
11235
+ /******/ // define __esModule on exports
11236
+ /******/ __webpack_require__.r = (exports) => {
11237
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
11238
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
11239
+ /******/ }
11240
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
11241
+ /******/ };
11242
+ /******/ })();
11243
+ /******/
11244
+ /************************************************************************/
11245
+ /******/
11246
+ /******/ // startup
11247
+ /******/ // Load entry module and return exports
11248
+ /******/ // This entry module is referenced by other modules so it can't be inlined
11249
+ /******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
11250
+ /******/
11251
+ /******/ return __webpack_exports__;
11252
+ /******/ })()
11253
+ ;
11254
+ });
11255
+
11256
+ } (reactResponsive$1));
11257
+ return reactResponsive$1.exports;
11258
+ }
10847
11259
 
10848
- /***/ }),
10849
-
10850
- /***/ "./src/Component.ts":
10851
- /*!**************************!*\
10852
- !*** ./src/Component.ts ***!
10853
- \**************************/
10854
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10855
-
10856
- var __rest = (this && this.__rest) || function (s, e) {
10857
- var t = {};
10858
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10859
- t[p] = s[p];
10860
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
10861
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10862
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
10863
- t[p[i]] = s[p[i]];
10864
- }
10865
- return t;
10866
- };
10867
- var __importDefault = (this && this.__importDefault) || function (mod) {
10868
- return (mod && mod.__esModule) ? mod : { "default": mod };
10869
- };
10870
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10871
- var useMediaQuery_1 = __importDefault(__webpack_require__(/*! ./useMediaQuery */ "./src/useMediaQuery.ts"));
10872
- // ReactNode and ReactElement typings are a little funky for functional components, so the ReactElement cast is needed on the return
10873
- var MediaQuery = function (_a) {
10874
- var children = _a.children, device = _a.device, onChange = _a.onChange, settings = __rest(_a, ["children", "device", "onChange"]);
10875
- var matches = (0, useMediaQuery_1.default)(settings, device, onChange);
10876
- if (typeof children === 'function') {
10877
- return children(matches);
10878
- }
10879
- return matches ? children : null;
10880
- };
10881
- exports["default"] = MediaQuery;
10882
-
10883
-
10884
- /***/ }),
10885
-
10886
- /***/ "./src/Context.ts":
10887
- /*!************************!*\
10888
- !*** ./src/Context.ts ***!
10889
- \************************/
10890
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
10891
-
10892
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10893
- var react_1 = __webpack_require__(/*! react */ "react");
10894
- var Context = (0, react_1.createContext)(undefined);
10895
- exports["default"] = Context;
10896
-
10897
-
10898
- /***/ }),
10899
-
10900
- /***/ "./src/index.ts":
10901
- /*!**********************!*\
10902
- !*** ./src/index.ts ***!
10903
- \**********************/
10904
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10905
-
10906
- var __importDefault = (this && this.__importDefault) || function (mod) {
10907
- return (mod && mod.__esModule) ? mod : { "default": mod };
10908
- };
10909
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10910
- exports.Context = exports.toQuery = exports.useMediaQuery = exports["default"] = void 0;
10911
- var useMediaQuery_1 = __importDefault(__webpack_require__(/*! ./useMediaQuery */ "./src/useMediaQuery.ts"));
10912
- exports.useMediaQuery = useMediaQuery_1.default;
10913
- var Component_1 = __importDefault(__webpack_require__(/*! ./Component */ "./src/Component.ts"));
10914
- exports["default"] = Component_1.default;
10915
- var toQuery_1 = __importDefault(__webpack_require__(/*! ./toQuery */ "./src/toQuery.ts"));
10916
- exports.toQuery = toQuery_1.default;
10917
- var Context_1 = __importDefault(__webpack_require__(/*! ./Context */ "./src/Context.ts"));
10918
- exports.Context = Context_1.default;
10919
-
10920
-
10921
- /***/ }),
10922
-
10923
- /***/ "./src/mediaQuery.ts":
10924
- /*!***************************!*\
10925
- !*** ./src/mediaQuery.ts ***!
10926
- \***************************/
10927
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10928
-
10929
- var __assign = (this && this.__assign) || function () {
10930
- __assign = Object.assign || function(t) {
10931
- for (var s, i = 1, n = arguments.length; i < n; i++) {
10932
- s = arguments[i];
10933
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
10934
- t[p] = s[p];
10935
- }
10936
- return t;
10937
- };
10938
- return __assign.apply(this, arguments);
10939
- };
10940
- var __rest = (this && this.__rest) || function (s, e) {
10941
- var t = {};
10942
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
10943
- t[p] = s[p];
10944
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
10945
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
10946
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
10947
- t[p[i]] = s[p[i]];
10948
- }
10949
- return t;
10950
- };
10951
- var __importDefault = (this && this.__importDefault) || function (mod) {
10952
- return (mod && mod.__esModule) ? mod : { "default": mod };
10953
- };
10954
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10955
- var prop_types_1 = __importDefault(__webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js"));
10956
- var stringOrNumber = prop_types_1.default.oneOfType([
10957
- prop_types_1.default.string,
10958
- prop_types_1.default.number
10959
- ]);
10960
- // media types
10961
- var types = {
10962
- all: prop_types_1.default.bool,
10963
- grid: prop_types_1.default.bool,
10964
- aural: prop_types_1.default.bool,
10965
- braille: prop_types_1.default.bool,
10966
- handheld: prop_types_1.default.bool,
10967
- print: prop_types_1.default.bool,
10968
- projection: prop_types_1.default.bool,
10969
- screen: prop_types_1.default.bool,
10970
- tty: prop_types_1.default.bool,
10971
- tv: prop_types_1.default.bool,
10972
- embossed: prop_types_1.default.bool
10973
- };
10974
- // properties that match media queries
10975
- var matchers = {
10976
- orientation: prop_types_1.default.oneOf([
10977
- 'portrait',
10978
- 'landscape'
10979
- ]),
10980
- scan: prop_types_1.default.oneOf([
10981
- 'progressive',
10982
- 'interlace'
10983
- ]),
10984
- aspectRatio: prop_types_1.default.string,
10985
- deviceAspectRatio: prop_types_1.default.string,
10986
- height: stringOrNumber,
10987
- deviceHeight: stringOrNumber,
10988
- width: stringOrNumber,
10989
- deviceWidth: stringOrNumber,
10990
- color: prop_types_1.default.bool,
10991
- colorIndex: prop_types_1.default.bool,
10992
- monochrome: prop_types_1.default.bool,
10993
- resolution: stringOrNumber,
10994
- type: Object.keys(types)
10995
- };
10996
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
10997
- matchers.type; var featureMatchers = __rest(matchers
10998
- // media features
10999
- , ["type"]);
11000
- // media features
11001
- var features = __assign({ minAspectRatio: prop_types_1.default.string, maxAspectRatio: prop_types_1.default.string, minDeviceAspectRatio: prop_types_1.default.string, maxDeviceAspectRatio: prop_types_1.default.string, minHeight: stringOrNumber, maxHeight: stringOrNumber, minDeviceHeight: stringOrNumber, maxDeviceHeight: stringOrNumber, minWidth: stringOrNumber, maxWidth: stringOrNumber, minDeviceWidth: stringOrNumber, maxDeviceWidth: stringOrNumber, minColor: prop_types_1.default.number, maxColor: prop_types_1.default.number, minColorIndex: prop_types_1.default.number, maxColorIndex: prop_types_1.default.number, minMonochrome: prop_types_1.default.number, maxMonochrome: prop_types_1.default.number, minResolution: stringOrNumber, maxResolution: stringOrNumber }, featureMatchers);
11002
- var all = __assign(__assign({}, types), features);
11003
- exports["default"] = {
11004
- all: all,
11005
- types: types,
11006
- matchers: matchers,
11007
- features: features
11008
- };
11009
-
11010
-
11011
- /***/ }),
11012
-
11013
- /***/ "./src/toQuery.ts":
11014
- /*!************************!*\
11015
- !*** ./src/toQuery.ts ***!
11016
- \************************/
11017
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
11018
-
11019
- var __importDefault = (this && this.__importDefault) || function (mod) {
11020
- return (mod && mod.__esModule) ? mod : { "default": mod };
11021
- };
11022
- Object.defineProperty(exports, "__esModule", ({ value: true }));
11023
- var hyphenate_style_name_1 = __importDefault(__webpack_require__(/*! hyphenate-style-name */ "./node_modules/hyphenate-style-name/index.js"));
11024
- var mediaQuery_1 = __importDefault(__webpack_require__(/*! ./mediaQuery */ "./src/mediaQuery.ts"));
11025
- var negate = function (cond) { return "not ".concat(cond); };
11026
- var keyVal = function (k, v) {
11027
- var realKey = (0, hyphenate_style_name_1.default)(k);
11028
- // px shorthand
11029
- if (typeof v === 'number') {
11030
- v = "".concat(v, "px");
11031
- }
11032
- if (v === true) {
11033
- return realKey;
11034
- }
11035
- if (v === false) {
11036
- return negate(realKey);
11037
- }
11038
- return "(".concat(realKey, ": ").concat(v, ")");
11039
- };
11040
- var join = function (conds) { return conds.join(' and '); };
11041
- var toQuery = function (obj) {
11042
- var rules = [];
11043
- Object.keys(mediaQuery_1.default.all).forEach(function (k) {
11044
- var v = obj[k];
11045
- if (v != null) {
11046
- rules.push(keyVal(k, v));
11047
- }
11048
- });
11049
- return join(rules);
11050
- };
11051
- exports["default"] = toQuery;
11052
-
11053
-
11054
- /***/ }),
11055
-
11056
- /***/ "./src/useMediaQuery.ts":
11057
- /*!******************************!*\
11058
- !*** ./src/useMediaQuery.ts ***!
11059
- \******************************/
11060
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
11061
-
11062
- var __importDefault = (this && this.__importDefault) || function (mod) {
11063
- return (mod && mod.__esModule) ? mod : { "default": mod };
11064
- };
11065
- Object.defineProperty(exports, "__esModule", ({ value: true }));
11066
- var react_1 = __webpack_require__(/*! react */ "react");
11067
- var matchmediaquery_1 = __importDefault(__webpack_require__(/*! matchmediaquery */ "./node_modules/matchmediaquery/index.js"));
11068
- var hyphenate_style_name_1 = __importDefault(__webpack_require__(/*! hyphenate-style-name */ "./node_modules/hyphenate-style-name/index.js"));
11069
- var shallow_equal_1 = __webpack_require__(/*! shallow-equal */ "./node_modules/shallow-equal/dist/index.esm.js");
11070
- var toQuery_1 = __importDefault(__webpack_require__(/*! ./toQuery */ "./src/toQuery.ts"));
11071
- var Context_1 = __importDefault(__webpack_require__(/*! ./Context */ "./src/Context.ts"));
11072
- var makeQuery = function (settings) { return settings.query || (0, toQuery_1.default)(settings); };
11073
- var hyphenateKeys = function (obj) {
11074
- if (!obj)
11075
- return undefined;
11076
- var keys = Object.keys(obj);
11077
- return keys.reduce(function (result, key) {
11078
- result[(0, hyphenate_style_name_1.default)(key)] = obj[key];
11079
- return result;
11080
- }, {});
11081
- };
11082
- var useIsUpdate = function () {
11083
- var ref = (0, react_1.useRef)(false);
11084
- (0, react_1.useEffect)(function () {
11085
- ref.current = true;
11086
- }, []);
11087
- return ref.current;
11088
- };
11089
- var useDevice = function (deviceFromProps) {
11090
- var deviceFromContext = (0, react_1.useContext)(Context_1.default);
11091
- var getDevice = function () {
11092
- return hyphenateKeys(deviceFromProps) || hyphenateKeys(deviceFromContext);
11093
- };
11094
- var _a = (0, react_1.useState)(getDevice), device = _a[0], setDevice = _a[1];
11095
- (0, react_1.useEffect)(function () {
11096
- var newDevice = getDevice();
11097
- if (!(0, shallow_equal_1.shallowEqualObjects)(device, newDevice)) {
11098
- setDevice(newDevice);
11099
- }
11100
- }, [deviceFromProps, deviceFromContext]);
11101
- return device;
11102
- };
11103
- var useQuery = function (settings) {
11104
- var getQuery = function () { return makeQuery(settings); };
11105
- var _a = (0, react_1.useState)(getQuery), query = _a[0], setQuery = _a[1];
11106
- (0, react_1.useEffect)(function () {
11107
- var newQuery = getQuery();
11108
- if (query !== newQuery) {
11109
- setQuery(newQuery);
11110
- }
11111
- }, [settings]);
11112
- return query;
11113
- };
11114
- var useMatchMedia = function (query, device) {
11115
- var getMatchMedia = function () { return (0, matchmediaquery_1.default)(query, device || {}, !!device); };
11116
- var _a = (0, react_1.useState)(getMatchMedia), mq = _a[0], setMq = _a[1];
11117
- var isUpdate = useIsUpdate();
11118
- (0, react_1.useEffect)(function () {
11119
- if (isUpdate) {
11120
- // skip on mounting, it has already been set
11121
- var newMq_1 = getMatchMedia();
11122
- setMq(newMq_1);
11123
- return function () {
11124
- if (newMq_1) {
11125
- newMq_1.dispose();
11126
- }
11127
- };
11128
- }
11129
- }, [query, device]);
11130
- return mq;
11131
- };
11132
- var useMatches = function (mediaQuery) {
11133
- var _a = (0, react_1.useState)(mediaQuery.matches), matches = _a[0], setMatches = _a[1];
11134
- (0, react_1.useEffect)(function () {
11135
- var updateMatches = function (ev) {
11136
- setMatches(ev.matches);
11137
- };
11138
- mediaQuery.addListener(updateMatches);
11139
- setMatches(mediaQuery.matches);
11140
- return function () {
11141
- mediaQuery.removeListener(updateMatches);
11142
- };
11143
- }, [mediaQuery]);
11144
- return matches;
11145
- };
11146
- var useMediaQuery = function (settings, device, onChange) {
11147
- var deviceSettings = useDevice(device);
11148
- var query = useQuery(settings);
11149
- if (!query)
11150
- throw new Error('Invalid or missing MediaQuery!');
11151
- var mq = useMatchMedia(query, deviceSettings);
11152
- var matches = useMatches(mq);
11153
- var isUpdate = useIsUpdate();
11154
- (0, react_1.useEffect)(function () {
11155
- if (isUpdate && onChange) {
11156
- onChange(matches);
11157
- }
11158
- }, [matches]);
11159
- (0, react_1.useEffect)(function () { return function () {
11160
- if (mq) {
11161
- mq.dispose();
11162
- }
11163
- }; }, []);
11164
- return matches;
11165
- };
11166
- exports["default"] = useMediaQuery;
11167
-
11168
-
11169
- /***/ }),
11170
-
11171
- /***/ "react":
11172
- /*!**************************************************************************************!*\
11173
- !*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
11174
- \**************************************************************************************/
11175
- /***/ ((module) => {
11176
- module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
11177
-
11178
- /***/ })
11179
-
11180
- /******/ });
11181
- /************************************************************************/
11182
- /******/ // The module cache
11183
- /******/ var __webpack_module_cache__ = {};
11184
- /******/
11185
- /******/ // The require function
11186
- /******/ function __webpack_require__(moduleId) {
11187
- /******/ // Check if module is in cache
11188
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
11189
- /******/ if (cachedModule !== undefined) {
11190
- /******/ return cachedModule.exports;
11191
- /******/ }
11192
- /******/ // Create a new module (and put it into the cache)
11193
- /******/ var module = __webpack_module_cache__[moduleId] = {
11194
- /******/ // no module.id needed
11195
- /******/ // no module.loaded needed
11196
- /******/ exports: {}
11197
- /******/ };
11198
- /******/
11199
- /******/ // Execute the module function
11200
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
11201
- /******/
11202
- /******/ // Return the exports of the module
11203
- /******/ return module.exports;
11204
- /******/ }
11205
- /******/
11206
- /************************************************************************/
11207
- /******/ /* webpack/runtime/define property getters */
11208
- /******/ (() => {
11209
- /******/ // define getter functions for harmony exports
11210
- /******/ __webpack_require__.d = (exports, definition) => {
11211
- /******/ for(var key in definition) {
11212
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
11213
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
11214
- /******/ }
11215
- /******/ }
11216
- /******/ };
11217
- /******/ })();
11218
- /******/
11219
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
11220
- /******/ (() => {
11221
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
11222
- /******/ })();
11223
- /******/
11224
- /******/ /* webpack/runtime/make namespace object */
11225
- /******/ (() => {
11226
- /******/ // define __esModule on exports
11227
- /******/ __webpack_require__.r = (exports) => {
11228
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
11229
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
11230
- /******/ }
11231
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
11232
- /******/ };
11233
- /******/ })();
11234
- /******/
11235
- /************************************************************************/
11236
- /******/
11237
- /******/ // startup
11238
- /******/ // Load entry module and return exports
11239
- /******/ // This entry module is referenced by other modules so it can't be inlined
11240
- /******/ var __webpack_exports__ = __webpack_require__("./src/index.ts");
11241
- /******/
11242
- /******/ return __webpack_exports__;
11243
- /******/ })()
11244
- ;
11245
- });
11246
-
11247
- } (reactResponsive));
11248
-
11249
- var reactResponsiveExports = reactResponsive.exports;
11260
+ var reactResponsiveExports = /*@__PURE__*/ requireReactResponsive();
11250
11261
 
11251
11262
  var IconsSvg = function (_a) {
11252
11263
  var fill = _a.fill, size = _a.size, icon = _a.icon;
11253
11264
  switch (icon) {
11254
11265
  case 'spinner':
11255
- return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "".concat(size || 25), height: "".concat(size || 25), viewBox: "0 0 24 24" },
11256
- React.createElement("style", null, "\n .spinner_z9k8 {\n transform-origin: center;\n animation: spinner_StKS .75s infinite linear;\n }\n @keyframes spinner_StKS {\n 100% {\n transform: rotate(360deg);\n }\n }\n "),
11257
- React.createElement("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25", fill: fill }),
11258
- React.createElement("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z", className: "spinner_z9k8", fill: fill })));
11266
+ return (jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "".concat(size || 25), height: "".concat(size || 25), viewBox: "0 0 24 24", children: [jsxRuntime.jsx("style", { children: "\n .spinner_z9k8 {\n transform-origin: center;\n animation: spinner_StKS .75s infinite linear;\n }\n @keyframes spinner_StKS {\n 100% {\n transform: rotate(360deg);\n }\n }\n " }), jsxRuntime.jsx("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25", fill: fill }), jsxRuntime.jsx("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z", className: "spinner_z9k8", fill: fill })] }));
11259
11267
  case 'warning':
11260
- return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "".concat(size || 25), height: "".concat(size || 25), className: "svg-icon", style: {
11268
+ return (jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "".concat(size || 25), height: "".concat(size || 25), className: "svg-icon", style: {
11261
11269
  verticalAlign: 'middle',
11262
11270
  fill: fill,
11263
11271
  overflow: 'hidden',
11264
11272
  minWidth: '25px',
11265
11273
  minHeight: '25px',
11266
- }, viewBox: "0 0 1024 1024", version: "1.1" },
11267
- React.createElement("path", { d: "M42.666667 896h938.666666L512 85.333333 42.666667 896z m512-128h-85.333334v-85.333333h85.333334v85.333333z m0-170.666667h-85.333334v-170.666666h85.333334v170.666666z" })));
11274
+ }, viewBox: "0 0 1024 1024", version: "1.1", children: jsxRuntime.jsx("path", { d: "M42.666667 896h938.666666L512 85.333333 42.666667 896z m512-128h-85.333334v-85.333333h85.333334v85.333333z m0-170.666667h-85.333334v-170.666666h85.333334v170.666666z" }) }));
11268
11275
  default:
11269
11276
  return null;
11270
11277
  }
@@ -11846,53 +11853,39 @@
11846
11853
  : __spreadArray$1(__spreadArray$1(__spreadArray$1(__spreadArray$1([
11847
11854
  lastPossibleCheckout
11848
11855
  ], __read(base), false), __read(firstPossibleRangeContextCheckIn), false), __read(lastPossibleRangeContextCheckOut), false), __read(disabledInsideSelectableRange()), false);
11849
- return (React.createElement("div", { className: "will-filter-bar-calendar", ref: ref },
11850
- React.createElement("div", { className: "will-calendar-filter-container", ref: calendarContainerRef },
11851
- React.createElement(DayPicker, { key: updateCalendarDefaultMonth, id: "will-calendar", mode: "range", locale: language === 'en' ? enUS : fi, numberOfMonths: !isTablet ? 2 : 1, weekStartsOn: 1, selected: calendarRange, onSelect: function (range) { return handleOnSelect(range); }, captionLayout: "dropdown-buttons", defaultMonth: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) ||
11852
- selectedStartDate ||
11853
- rangeContextStartDate ||
11854
- (((_b = newDisableCalendarDates === null || newDisableCalendarDates === void 0 ? void 0 : newDisableCalendarDates.disabledDates) === null || _b === void 0 ? void 0 : _b.length)
11855
- ? newDisableCalendarDates.disabledDates[0].from
11856
- : today), disabled: disabled, fromMonth: today, onMonthChange: function (val) {
11857
- requestDates === null || requestDates === void 0 ? void 0 : requestDates(val);
11858
- setUpdateCalendarMonthNavigation === null || setUpdateCalendarMonthNavigation === void 0 ? void 0 : setUpdateCalendarMonthNavigation(function (prev) { return !prev; });
11859
- }, classNames: {
11860
- day_range_start: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) ? 'rdp-day_range_start' : '',
11861
- day_range_end: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? 'rdp-day_range_end' : '',
11862
- }, modifiersClassNames: {
11863
- today: 'my-today',
11864
- booked: 'booked',
11865
- disabledAfterCheckIn: 'disabled-after-check-in',
11866
- overlappingDate: 'overlapping-date',
11867
- noActiveSelectionStart: 'no-active-selection-start',
11868
- noActiveSelectionMid: 'no-active-selection-mid',
11869
- noActiveSelectionEnd: 'no-active-selection-end',
11870
- checkoutOptionsMid: 'rdp-day_selected rdp-day_range_middle checkout-option',
11871
- checkInOnly: 'check-in-only',
11872
- checkOutOnly: 'check-out-only',
11873
- }, modifiers:
11874
- // This function handles conditions for applying the modifiersClassNames
11875
- handleCalendarModifiers({
11876
- calendarRange: calendarRange,
11877
- disabledDates: disabled,
11878
- overlappingDate: overlappingDate,
11879
- rangeContext: rangeContext,
11880
- findFirstPossibleRangeContextCheckIn: findFirstPossibleRangeContextCheckIn,
11881
- findLastPossibleRangeContextCheckOut: findLastPossibleRangeContextCheckOut,
11882
- currentSelectionLastCheckoutDate: currentSelectionAvailability,
11883
- }) }),
11884
- React.createElement("div", { className: 'will-calendar-tooltip' },
11885
- React.createElement("div", null, t('noCheckIn'))),
11886
- React.createElement("div", { className: 'will-calendar-tooltip-check-out' },
11887
- React.createElement("div", null, t('noCheckOut'))),
11888
- React.createElement("div", { className: 'will-calendar-tooltip-overlapping-date' },
11889
- React.createElement("div", null, t('checkOutOnly'))),
11890
- React.createElement("div", { className: 'will-calendar-tooltip-check-in-only' },
11891
- React.createElement("div", null, t('checkInOnly'))),
11892
- React.createElement("div", { className: 'will-calendar-tooltip-check-out-only' },
11893
- React.createElement("div", null, t('checkOutOnly'))),
11894
- React.createElement("div", { className: 'will-calendar-spinner' },
11895
- React.createElement(IconsSvg, { fill: (palette === null || palette === void 0 ? void 0 : palette.primary) || 'inherit', size: 50, icon: "spinner" })))));
11856
+ return (jsxRuntime.jsx("div", { className: "will-filter-bar-calendar", ref: ref, children: jsxRuntime.jsxs("div", { className: "will-calendar-filter-container", ref: calendarContainerRef, children: [jsxRuntime.jsx(DayPicker, { id: "will-calendar", mode: "range", locale: language === 'en' ? enUS : fi, numberOfMonths: !isTablet ? 2 : 1, weekStartsOn: 1, selected: calendarRange, onSelect: function (range) { return handleOnSelect(range); }, captionLayout: "dropdown-buttons", defaultMonth: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) ||
11857
+ selectedStartDate ||
11858
+ rangeContextStartDate ||
11859
+ (((_b = newDisableCalendarDates === null || newDisableCalendarDates === void 0 ? void 0 : newDisableCalendarDates.disabledDates) === null || _b === void 0 ? void 0 : _b.length)
11860
+ ? newDisableCalendarDates.disabledDates[0].from
11861
+ : today), disabled: disabled, fromMonth: today, onMonthChange: function (val) {
11862
+ requestDates === null || requestDates === void 0 ? void 0 : requestDates(val);
11863
+ setUpdateCalendarMonthNavigation === null || setUpdateCalendarMonthNavigation === void 0 ? void 0 : setUpdateCalendarMonthNavigation(function (prev) { return !prev; });
11864
+ }, classNames: {
11865
+ day_range_start: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from) ? 'rdp-day_range_start' : '',
11866
+ day_range_end: (calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to) ? 'rdp-day_range_end' : '',
11867
+ }, modifiersClassNames: {
11868
+ today: 'my-today',
11869
+ booked: 'booked',
11870
+ disabledAfterCheckIn: 'disabled-after-check-in',
11871
+ overlappingDate: 'overlapping-date',
11872
+ noActiveSelectionStart: 'no-active-selection-start',
11873
+ noActiveSelectionMid: 'no-active-selection-mid',
11874
+ noActiveSelectionEnd: 'no-active-selection-end',
11875
+ checkoutOptionsMid: 'rdp-day_selected rdp-day_range_middle checkout-option',
11876
+ checkInOnly: 'check-in-only',
11877
+ checkOutOnly: 'check-out-only',
11878
+ }, modifiers:
11879
+ // This function handles conditions for applying the modifiersClassNames
11880
+ handleCalendarModifiers({
11881
+ calendarRange: calendarRange,
11882
+ disabledDates: disabled,
11883
+ overlappingDate: overlappingDate,
11884
+ rangeContext: rangeContext,
11885
+ findFirstPossibleRangeContextCheckIn: findFirstPossibleRangeContextCheckIn,
11886
+ findLastPossibleRangeContextCheckOut: findLastPossibleRangeContextCheckOut,
11887
+ currentSelectionLastCheckoutDate: currentSelectionAvailability,
11888
+ }) }, updateCalendarDefaultMonth), jsxRuntime.jsx("div", { className: 'will-calendar-tooltip', children: jsxRuntime.jsx("div", { children: t('noCheckIn') }) }), jsxRuntime.jsx("div", { className: 'will-calendar-tooltip-check-out', children: jsxRuntime.jsx("div", { children: t('noCheckOut') }) }), jsxRuntime.jsx("div", { className: 'will-calendar-tooltip-overlapping-date', children: jsxRuntime.jsx("div", { children: t('checkOutOnly') }) }), jsxRuntime.jsx("div", { className: 'will-calendar-tooltip-check-in-only', children: jsxRuntime.jsx("div", { children: t('checkInOnly') }) }), jsxRuntime.jsx("div", { className: 'will-calendar-tooltip-check-out-only', children: jsxRuntime.jsx("div", { children: t('checkOutOnly') }) }), jsxRuntime.jsx("div", { className: 'will-calendar-spinner', children: jsxRuntime.jsx(IconsSvg, { fill: (palette === null || palette === void 0 ? void 0 : palette.primary) || 'inherit', size: 50, icon: "spinner" }) })] }) }));
11896
11889
  });
11897
11890
 
11898
11891
  var parseGuests = function (_a) {
@@ -11980,7 +11973,7 @@
11980
11973
  // Set selected locations from URL - handle all locationIds
11981
11974
  if (((_a = locations === null || locations === void 0 ? void 0 : locations.data) === null || _a === void 0 ? void 0 : _a.length) && locationIdParams.length) {
11982
11975
  var matchedLocations = locations.data.filter(function (location) {
11983
- return locationIdParams.includes(location.id);
11976
+ return locationIdParams.includes(location.id.toString());
11984
11977
  });
11985
11978
  setSelectedLocations(matchedLocations);
11986
11979
  }
@@ -12033,13 +12026,24 @@
12033
12026
  ageCategoryCounts: ageCategoryCounts,
12034
12027
  ageCategories: ageCategories,
12035
12028
  }),
12029
+ selectedLocations: selectedLocations
12030
+ .map(function (location) { return location.id.toString(); })
12031
+ .join(','),
12036
12032
  };
12037
12033
  var querySearchParams = new URLSearchParams();
12038
12034
  try {
12039
12035
  for (var _b = __values(Object.entries(newParams)), _c = _b.next(); !_c.done; _c = _b.next()) {
12040
12036
  var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
12041
12037
  if (value) {
12042
- querySearchParams.append(key, value.toString());
12038
+ if (key === 'selectedLocations' && !!selectedLocations.length) {
12039
+ // Append all selected locationIds
12040
+ selectedLocations.forEach(function (location) {
12041
+ querySearchParams.append('locationId', location.id.toString());
12042
+ });
12043
+ }
12044
+ else {
12045
+ querySearchParams.append(key, value.toString());
12046
+ }
12043
12047
  }
12044
12048
  }
12045
12049
  }
@@ -12050,10 +12054,6 @@
12050
12054
  }
12051
12055
  finally { if (e_2) throw e_2.error; }
12052
12056
  }
12053
- // Append all selected locationIds
12054
- selectedLocations.forEach(function (location) {
12055
- querySearchParams.append('locationId', location.id);
12056
- });
12057
12057
  handleSelectedFilter(false);
12058
12058
  if (onSubmit && window.location.href.includes(selectedPath)) {
12059
12059
  onSubmit(newParams);
@@ -12130,16 +12130,12 @@
12130
12130
  return { isMobile: isMobile, targetFilterBarRef: targetFilterBarRef };
12131
12131
  };
12132
12132
 
12133
- var css_248z$9 = ".will-filter-bar-select-button {\n width: 100%;\n height: auto;\n background-color: transparent;\n border: none;\n padding: 0 20px;\n border-radius: 20px;\n cursor: pointer;\n font-size: 14px;\n text-align: initial;\n}\n\n.will-filter-bar-select-button .select-button-wrapper {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n \n}\n\n.will-filter-bar-select-button .select-button-wrapper > div {\n display: grid\n}\n\n.will-filter-bar-select-button .select-button-label {\n color: var(--will-black);\n font-weight: 600;\n}\n\n.will-filter-bar-select-button .select-button-description {\n \n color: var(--will-black);\n font-weight: 400;\n opacity: 0.5;\n white-space: nowrap;\n min-height: 19px;\n }\n\n .will-filter-bar-select-button .select-button-description span {\n font: inherit\n }\n\n .will-root.is-full-width .will-filter-bar-select-button .select-button-description {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .will-filter-bar-select-button .select-button-label.active,\n .will-filter-bar-select-button .select-button-description.active {\n font-weight: 700;\n font-size: 15px;\n opacity: 1;\n\n }\n\n@media (max-width: 960px) {\n .will-filter-bar-select-button {\n padding: 15px 0;\n }\n\n .will-filter-bar-select-button:first-child {\n padding: 0 0 15px 0;\n }\n\n .will-filter-bar-select-button .select-button-wrapper {\n justify-content: center;\n text-align: center;\n }\n\n .will-filter-bar-select-button .select-button-description {\n white-space: wrap;\n }\n\n .will-filter-bar-select-button .select-button-divider {\n display: none\n }\n}\n\n\n";
12133
+ var css_248z$9 = ".will-filter-bar-select-button {\n width: 100%;\n height: auto;\n background-color: transparent;\n border: none;\n padding: 0 20px;\n border-radius: 20px;\n cursor: pointer;\n font-size: 14px;\n text-align: initial;\n}\n\n.will-filter-bar-select-button .select-button-wrapper {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 10px;\n \n}\n\n.will-filter-bar-select-button .select-button-wrapper > div {\n display: grid\n}\n\n.will-filter-bar-select-button .select-button-label {\n color: var(--will-black);\n font-weight: 600;\n}\n\n.will-filter-bar-select-button .select-button-description {\n color: var(--will-black);\n font-weight: 400;\n opacity: 0.5;\n white-space: nowrap;\n min-height: 19px;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.will-filter-bar-select-button .select-button-description span {\n font: inherit\n}\n\n .will-filter-bar-select-button .select-button-label.active,\n .will-filter-bar-select-button .select-button-description.active {\n font-weight: 700;\n font-size: 15px;\n opacity: 1;\n\n }\n\n@media (max-width: 960px) {\n .will-filter-bar-select-button {\n padding: 15px 0;\n }\n\n .will-filter-bar-select-button:first-child {\n padding: 0 0 15px 0;\n }\n\n .will-filter-bar-select-button .select-button-wrapper {\n justify-content: center;\n text-align: center;\n }\n\n .will-filter-bar-select-button .select-button-description {\n white-space: wrap;\n }\n\n .will-filter-bar-select-button .select-button-divider {\n display: none\n }\n}\n\n\n";
12134
12134
  styleInject(css_248z$9);
12135
12135
 
12136
12136
  var SelectButton = React.forwardRef(function (_a, ref) {
12137
12137
  var active = _a.active, label = _a.label, onClick = _a.onClick, description = _a.description, ariaExpanded = _a.ariaExpanded, ariaControls = _a.ariaControls;
12138
- return (React.createElement("button", { ref: ref, className: "will-filter-bar-select-button", onClick: onClick, "aria-expanded": ariaExpanded, "aria-controls": ariaControls, "aria-haspopup": "true" },
12139
- React.createElement("span", { className: "select-button-wrapper" },
12140
- React.createElement("div", null,
12141
- React.createElement("p", { className: "select-button-label" }, label),
12142
- React.createElement("p", { className: "select-button-description ".concat(active ? 'active' : ''), dangerouslySetInnerHTML: { __html: description } })))));
12138
+ return (jsxRuntime.jsx("button", { ref: ref, className: "will-filter-bar-select-button", onClick: onClick, "aria-expanded": ariaExpanded, "aria-controls": ariaControls, "aria-haspopup": "true", children: jsxRuntime.jsx("span", { className: "select-button-wrapper", children: jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("p", { className: "select-button-label", children: label }), jsxRuntime.jsx("p", { className: "select-button-description ".concat(active ? 'active' : ''), dangerouslySetInnerHTML: { __html: description } })] }) }) }));
12143
12139
  });
12144
12140
  SelectButton.displayName = 'SelectButton';
12145
12141
 
@@ -12148,7 +12144,7 @@
12148
12144
 
12149
12145
  var TabButton = function (_a) {
12150
12146
  var onClick = _a.onClick, label = _a.label, active = _a.active, mode = _a.mode;
12151
- return (React.createElement("button", { className: "will-filter-bar-tab-button ".concat(mode || 'light', " ").concat(active && 'active', " "), onClick: onClick }, label));
12147
+ return (jsxRuntime.jsx("button", { className: "will-filter-bar-tab-button ".concat(mode || 'light', " ").concat(active && 'active', " "), onClick: onClick, children: label }));
12152
12148
  };
12153
12149
 
12154
12150
  var css_248z$7 = ".will-guests-filter-label, .will-guests-filter-count {\n font-size: 18px;\n color: var(--will-text)\n}\n\n.will-guests-filter-inner {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 30px;\n}\n\n.will-guests-filter-label {\n display: block;\n font-weight: 600;\n margin-bottom: 10px;\n \n}\n\n.will-guests-filter-inner .will-guests-filter-counter {\n display: flex;\n align-items: center;\n}\n\n.will-guests-filter-count {\n margin: 0 10px;\n min-width: 30px;\n text-align: center;\n}\n\n.will-guests-filter-counter-button {\n \n border-radius: 50%;\n background-color: transparent;\n border: 1px solid var(--will-grey);\n width: 30px;\n height: 30px;\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 20px;\n cursor: pointer;\n color: var(--will-black);\n\n padding: 0;\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n\n.will-guests-filter-counter-button:hover {\n background-color: var(--will-onahau);\n}\n\n@media (max-width: 960px) {\n\n .will-guests-filter-inner {\n width: 100%;\n margin: 15px 0;\n justify-content: space-between;\n }\n}";
@@ -12169,20 +12165,11 @@
12169
12165
  var handleIncrement = function () {
12170
12166
  updateGuestsCount("guests-".concat(id), count + 1);
12171
12167
  };
12172
- return (React.createElement("div", { className: "will-guests-filter-inner", style: { order: "".concat(sortOrder) } },
12173
- React.createElement("p", { className: "will-guests-filter-label" }, label),
12174
- React.createElement("div", { className: "will-guests-filter-counter" },
12175
- React.createElement("button", { className: "will-guests-filter-counter-button", onClick: handleDecrement, disabled: (minVal && count <= minVal) || !count, style: {
12176
- cursor: (minVal && count <= minVal) || !count ? 'initial' : 'pointer',
12177
- paddingBottom: '4px',
12178
- opacity: (minVal && count <= minVal) || !count ? 0.4 : 1,
12179
- } },
12180
- React.createElement("svg", { width: "10", height: "10", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
12181
- React.createElement("path", { d: "M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }))),
12182
- React.createElement("span", { className: "will-guests-filter-count" }, count),
12183
- React.createElement("button", { className: "will-guests-filter-counter-button", onClick: handleIncrement },
12184
- React.createElement("svg", { width: "15", height: "15", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
12185
- React.createElement("path", { d: "M10 4V16M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }))))));
12168
+ return (jsxRuntime.jsxs("div", { className: "will-guests-filter-inner", style: { order: "".concat(sortOrder) }, children: [jsxRuntime.jsx("p", { className: "will-guests-filter-label", children: label }), jsxRuntime.jsxs("div", { className: "will-guests-filter-counter", children: [jsxRuntime.jsx("button", { className: "will-guests-filter-counter-button", onClick: handleDecrement, disabled: (minVal && count <= minVal) || !count, style: {
12169
+ cursor: (minVal && count <= minVal) || !count ? 'initial' : 'pointer',
12170
+ paddingBottom: '4px',
12171
+ opacity: (minVal && count <= minVal) || !count ? 0.4 : 1,
12172
+ }, children: jsxRuntime.jsx("svg", { width: "10", height: "10", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) }), jsxRuntime.jsx("span", { className: "will-guests-filter-count", children: count }), jsxRuntime.jsx("button", { className: "will-guests-filter-counter-button", onClick: handleIncrement, children: jsxRuntime.jsx("svg", { width: "15", height: "15", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M10 4V16M4 10H16", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round" }) }) })] })] }));
12186
12173
  };
12187
12174
 
12188
12175
  var css_248z$6 = ".will-filter-bar-guests {\n text-align: initial;\n}\n\n.will-guests-filter-title {\n font-size: 22px;\n margin: 10px 0;\n}\n\n.will-guests-filter-subtitle {\n font-size: 15px;\n font-weight: 500;\n color:var(--will-text)\n}\n\n\n.will-guests-filter-container {\n display: flex;\n flex-direction: column;\n min-width: 400px;\n}\n\n\n@media (max-width: 960px) {\n .will-guests-filter-title {\n font-size: 18px;\n }\n\n .will-guests-filter-container {\n margin-top: 15px;\n min-width: 100%;\n }\n}";
@@ -12192,9 +12179,7 @@
12192
12179
  var ageCategories = _a.ageCategories, updateGuestsCount = _a.updateGuestsCount, ageCategoryCounts = _a.ageCategoryCounts, autoFocus = _a.autoFocus;
12193
12180
  var t = useTranslation('filterBar').t;
12194
12181
  var containerRef = useAutoFocus(autoFocus);
12195
- return (React.createElement("div", { className: "will-filter-bar-guests", ref: ref },
12196
- React.createElement("h3", { className: "will-guests-filter-title" }, t('guests.title')),
12197
- React.createElement("div", { className: "will-guests-filter-container", ref: containerRef }, ageCategories === null || ageCategories === void 0 ? void 0 : ageCategories.map(function (category) { return (React.createElement(GuestCount, { key: category.id, id: category.id, label: category.name, minVal: category.minVal, sortOrder: category.sortOrder, updateGuestsCount: updateGuestsCount, count: ageCategoryCounts["guests-".concat(category.id)] || 0 })); }))));
12182
+ return (jsxRuntime.jsxs("div", { className: "will-filter-bar-guests", ref: ref, children: [jsxRuntime.jsx("h3", { className: "will-guests-filter-title", children: t('guests.title') }), jsxRuntime.jsx("div", { className: "will-guests-filter-container", ref: containerRef, children: ageCategories === null || ageCategories === void 0 ? void 0 : ageCategories.map(function (category) { return (jsxRuntime.jsx(GuestCount, { id: category.id, label: category.name, minVal: category.minVal, sortOrder: category.sortOrder, updateGuestsCount: updateGuestsCount, count: ageCategoryCounts["guests-".concat(category.id)] || 0 }, category.id)); }) })] }));
12198
12183
  });
12199
12184
  Guests.displayName = 'Guests';
12200
12185
 
@@ -12202,7 +12187,7 @@
12202
12187
  styleInject(css_248z$5);
12203
12188
 
12204
12189
  var Divider = function () {
12205
- return React.createElement("div", { className: "will-filter-bar-divider" });
12190
+ return jsxRuntime.jsx("div", { className: "will-filter-bar-divider" });
12206
12191
  };
12207
12192
 
12208
12193
  var css_248z$4 = ".will-filter-bar-categories {\n text-align: center;\n}\n\n.will-categories-filter-title {\n font-size: 16px;\n text-transform: uppercase;\n margin: 10px 0 30px 0;\n}\n\n.will-categories-filter-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20px;\n}\n\n.will-categories-filter-inner input {\n cursor: pointer;\n margin-right: 10px;\n}\n";
@@ -12222,11 +12207,7 @@
12222
12207
  setSelectedCategory(selectedCategory);
12223
12208
  setCategories(selectedCategory);
12224
12209
  };
12225
- return (React.createElement("div", { className: "will-filter-bar-categories" },
12226
- React.createElement("h3", { className: "will-categories-filter-title" }, t('categories.label')),
12227
- React.createElement("div", { className: "will-categories-filter-inner" }, categoriesPlaceholder.map(function (itm, idx) { return (React.createElement("div", { key: idx },
12228
- React.createElement("input", { type: "radio", value: itm, checked: selectedCategory === itm, onChange: function () { return handleCategoryChange(itm); } }),
12229
- React.createElement("span", null, itm))); }))));
12210
+ return (jsxRuntime.jsxs("div", { className: "will-filter-bar-categories", children: [jsxRuntime.jsx("h3", { className: "will-categories-filter-title", children: t('categories.label') }), jsxRuntime.jsx("div", { className: "will-categories-filter-inner", children: categoriesPlaceholder.map(function (itm, idx) { return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("input", { type: "radio", value: itm, checked: selectedCategory === itm, onChange: function () { return handleCategoryChange(itm); } }), jsxRuntime.jsx("span", { children: itm })] }, idx)); }) })] }));
12230
12211
  };
12231
12212
 
12232
12213
  var css_248z$3 = ".will-filter-bar-locations {\n text-align: initial;\n}\n\n.will-locations-filter-title {\n font-size: 22px;\n margin: 10px 0;\n}\n\n.will-locations-filter-subtitle {\n font-size: 15px;\n font-weight: 500;\n color: var(--will-text);\n}\n\n.will-locations-filter-container {\n display: flex;\n gap: 10px;\n flex-direction: column;\n min-width: 400px;\n}\n\n@media (max-width: 960px) {\n .will-locations-filter-title {\n font-size: 18px;\n }\n\n .will-locations-filter-container {\n margin-top: 15px;\n min-width: 100%;\n }\n}\n";
@@ -12238,16 +12219,12 @@
12238
12219
  var ImageCard = React.forwardRef(function (_a, ref) {
12239
12220
  var title = _a.title, description = _a.description, imageUrl = _a.imageUrl, isSelected = _a.isSelected, onClick = _a.onClick;
12240
12221
  var ariaLabel = "".concat(title).concat(description ? ", ".concat(description) : '');
12241
- return (React.createElement("div", { ref: ref, className: "will-image-card ".concat(isSelected ? 'is-selected' : ''), onClick: onClick, onKeyDown: function (e) {
12222
+ return (jsxRuntime.jsxs("div", { ref: ref, className: "will-image-card ".concat(isSelected ? 'is-selected' : ''), onClick: onClick, onKeyDown: function (e) {
12242
12223
  if (e.key === 'Enter' || e.key === ' ') {
12243
12224
  e.preventDefault();
12244
12225
  onClick === null || onClick === void 0 ? void 0 : onClick();
12245
12226
  }
12246
- }, role: "button", tabIndex: 0, "aria-pressed": isSelected, "aria-label": ariaLabel },
12247
- React.createElement("div", { className: "will-image-card-content" },
12248
- React.createElement("h3", null, title),
12249
- description && React.createElement("p", null, description)),
12250
- React.createElement("div", { className: "will-image-card-image" }, imageUrl && React.createElement("img", { src: imageUrl, alt: title || 'Location image' }))));
12227
+ }, role: "button", tabIndex: 0, "aria-pressed": isSelected, "aria-label": ariaLabel, children: [jsxRuntime.jsxs("div", { className: "will-image-card-content", children: [jsxRuntime.jsx("h3", { children: title }), description && jsxRuntime.jsx("p", { children: description })] }), jsxRuntime.jsx("div", { className: "will-image-card-image", children: imageUrl && jsxRuntime.jsx("img", { src: imageUrl, alt: title || 'Location image' }) })] }));
12251
12228
  });
12252
12229
  ImageCard.displayName = 'ImageCard';
12253
12230
 
@@ -12279,15 +12256,13 @@
12279
12256
  onClose === null || onClose === void 0 ? void 0 : onClose();
12280
12257
  }
12281
12258
  };
12282
- return (React.createElement("div", { className: "will-filter-bar-locations", ref: ref },
12283
- React.createElement("h3", { className: "will-locations-filter-title" }, t('locations.title')),
12284
- React.createElement("div", { className: "will-locations-filter-container" }, !!((locations === null || locations === void 0 ? void 0 : locations.length) && language) &&
12285
- locations
12286
- .filter(function (location) { var _a; return (_a = location === null || location === void 0 ? void 0 : location.label) === null || _a === void 0 ? void 0 : _a[language]; })
12287
- .map(function (location, index) {
12288
- var _a;
12289
- return (React.createElement(ImageCard, { key: location.id, ref: index === 0 ? firstCardRef : null, title: location.label[language], description: (_a = location.description) === null || _a === void 0 ? void 0 : _a[language], imageUrl: location.imageUrl, isSelected: selectedLocations.some(function (loc) { return loc.id === location.id; }), onClick: function () { return handleLocationClick(location); } }));
12290
- }))));
12259
+ return (jsxRuntime.jsxs("div", { className: "will-filter-bar-locations", ref: ref, children: [jsxRuntime.jsx("h3", { className: "will-locations-filter-title", children: t('locations.title') }), jsxRuntime.jsx("div", { className: "will-locations-filter-container", children: !!((locations === null || locations === void 0 ? void 0 : locations.length) && language) &&
12260
+ locations
12261
+ .filter(function (location) { var _a; return (_a = location === null || location === void 0 ? void 0 : location.label) === null || _a === void 0 ? void 0 : _a[language]; })
12262
+ .map(function (location, index) {
12263
+ var _a;
12264
+ return (jsxRuntime.jsx(ImageCard, { ref: index === 0 ? firstCardRef : null, title: location.label[language], description: (_a = location.description) === null || _a === void 0 ? void 0 : _a[language], imageUrl: location.imageUrl, isSelected: selectedLocations.some(function (loc) { return loc.id === location.id; }), onClick: function () { return handleLocationClick(location); } }, location.id));
12265
+ }) })] }));
12291
12266
  });
12292
12267
  Locations.displayName = 'Locations';
12293
12268
 
@@ -12342,47 +12317,28 @@
12342
12317
  locationsPlaceholder: t('locations.placeholder'),
12343
12318
  locationsSelectedLabel: t('locations.selected'),
12344
12319
  });
12345
- return (React.createElement("div", { className: "will-root ".concat(fullWidth ? 'is-full-width' : ''), style: themePalette },
12346
- tabs && tabs.length > 1 && (React.createElement("div", { className: "will-filter-bar-tabs", ref: targetFilterBarRef }, tabs
12347
- .sort(function (a, b) { return a.order - b.order; })
12348
- .map(function (tab, idx) { return (React.createElement(TabButton, { key: "tab-".concat(idx), label: tab.label && language
12349
- ? tab.label[language]
12350
- : t("tabs.".concat(tab.path.substring(1))), onClick: function () {
12351
- setSelectedPath(tab.path);
12352
- handleResetFilters();
12353
- handleSelectedFilter(false);
12354
- }, active: selectedPath === tab.path, mode: mode })); }))),
12355
- React.createElement("div", { className: "will-filter-bar-header ".concat(mode || 'light'), ref: (tabs === null || tabs === void 0 ? void 0 : tabs.length) === 1 ? targetFilterBarRef : null },
12356
- !!((_b = locations === null || locations === void 0 ? void 0 : locations.data) === null || _b === void 0 ? void 0 : _b.length) && (React.createElement(React.Fragment, null,
12357
- React.createElement(SelectButton, { ref: locationsButtonRef, label: t('locations.label'), description: parsedLocations, onClick: function () {
12358
- previouslyFocusedButtonRef.current = locationsButtonRef.current;
12359
- handleSelectedFilter(FilterSections.LOCATIONS);
12360
- }, active: !!selectedLocations.length, ariaExpanded: selectedFilter === FilterSections.LOCATIONS, ariaControls: "will-locations-filter" }),
12361
- React.createElement(Divider, null))),
12362
- React.createElement(SelectButton, { ref: calendarButtonRef, label: t('calendar.label'), description: parsedDates
12363
- ? parsedDates
12364
- : selectedPath === Pages.ROOMS
12365
- ? t('calendar.roomsLabelPlaceholder')
12366
- : t('calendar.eventsLabelPlaceholder'), onClick: function () {
12367
- previouslyFocusedButtonRef.current = calendarButtonRef.current;
12368
- handleSelectedFilter(FilterSections.CALENDAR);
12369
- }, active: !!parsedDates, ariaExpanded: selectedFilter === FilterSections.CALENDAR, ariaControls: "will-calendar-filter" }),
12370
- selectedPath !== Pages.EVENTS && (React.createElement(React.Fragment, null,
12371
- React.createElement(Divider, null),
12372
- React.createElement(SelectButton, { ref: guestsButtonRef, label: t('guests.label'), description: parsedGuests.content, onClick: function () {
12373
- previouslyFocusedButtonRef.current = guestsButtonRef.current;
12374
- handleSelectedFilter(FilterSections.GUESTS);
12375
- }, active: !!parsedGuests.data.total, ariaExpanded: selectedFilter === FilterSections.GUESTS, ariaControls: "will-guests-filter" }))),
12376
- React.createElement(SubmitButton, { onClick: handleSubmit, startIcon: React.createElement(FaSearch, null), label: t('common:search'), isLoading: innerLoading || outerLoading })),
12377
- selectedFilter && (React.createElement("div", { className: "will-filter-bar-container ".concat(mode || 'light'), style: (!tabs || tabs.length < 2) && !isMobile ? { top: 66 } : {} },
12378
- React.createElement(CloseButton, { handleClose: function () { return handleSelectedFilter(false); } }),
12379
- selectedFilter === FilterSections.CALENDAR && (React.createElement("div", { id: "will-calendar-filter" },
12380
- React.createElement(Calendar, { calendarRange: calendarRange, setCalendarRange: setCalendarRange, disableCalendarDates: disableCalendarDates, selectedPath: selectedPath, language: language, ref: filtersRef, autoFocus: true }))),
12381
- selectedFilter === FilterSections.GUESTS && (React.createElement("div", { id: "will-guests-filter" },
12382
- React.createElement(Guests, { updateGuestsCount: updateGuestsCount, ageCategories: ageCategories, ageCategoryCounts: ageCategoryCounts, ref: filtersRef, autoFocus: true }))),
12383
- selectedFilter === FilterSections.CATEGORIES && (React.createElement(Categories, { categories: categories, setCategories: setCategories })),
12384
- selectedFilter === FilterSections.LOCATIONS && (React.createElement("div", { id: "will-locations-filter" },
12385
- React.createElement(Locations, { locations: locations === null || locations === void 0 ? void 0 : locations.data, ref: filtersRef, language: language, selectedLocations: selectedLocations, setSelectedLocations: setSelectedLocations, multiSelect: locations === null || locations === void 0 ? void 0 : locations.multiSelect, autoFocus: true, onClose: function () { return handleSelectedFilter(false); } })))))));
12320
+ return (jsxRuntime.jsxs("div", { className: "will-root ".concat(fullWidth ? 'is-full-width' : ''), style: themePalette, children: [tabs && tabs.length > 1 && (jsxRuntime.jsx("div", { className: "will-filter-bar-tabs", ref: targetFilterBarRef, children: tabs
12321
+ .sort(function (a, b) { return a.order - b.order; })
12322
+ .map(function (tab, idx) { return (jsxRuntime.jsx(TabButton, { label: tab.label && language
12323
+ ? tab.label[language]
12324
+ : t("tabs.".concat(tab.path.substring(1))), onClick: function () {
12325
+ setSelectedPath(tab.path);
12326
+ handleResetFilters();
12327
+ handleSelectedFilter(false);
12328
+ }, active: selectedPath === tab.path, mode: mode }, "tab-".concat(idx))); }) })), jsxRuntime.jsxs("div", { className: "will-filter-bar-header ".concat(mode || 'light'), ref: (tabs === null || tabs === void 0 ? void 0 : tabs.length) === 1 ? targetFilterBarRef : null, children: [!!((_b = locations === null || locations === void 0 ? void 0 : locations.data) === null || _b === void 0 ? void 0 : _b.length) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SelectButton, { ref: locationsButtonRef, label: t('locations.label'), description: parsedLocations, onClick: function () {
12329
+ previouslyFocusedButtonRef.current = locationsButtonRef.current;
12330
+ handleSelectedFilter(FilterSections.LOCATIONS);
12331
+ }, active: !!selectedLocations.length, ariaExpanded: selectedFilter === FilterSections.LOCATIONS, ariaControls: "will-locations-filter" }), jsxRuntime.jsx(Divider, {})] })), jsxRuntime.jsx(SelectButton, { ref: calendarButtonRef, label: t('calendar.label'), description: parsedDates
12332
+ ? parsedDates
12333
+ : selectedPath === Pages.ROOMS
12334
+ ? t('calendar.roomsLabelPlaceholder')
12335
+ : t('calendar.eventsLabelPlaceholder'), onClick: function () {
12336
+ previouslyFocusedButtonRef.current = calendarButtonRef.current;
12337
+ handleSelectedFilter(FilterSections.CALENDAR);
12338
+ }, active: !!parsedDates, ariaExpanded: selectedFilter === FilterSections.CALENDAR, ariaControls: "will-calendar-filter" }), selectedPath !== Pages.EVENTS && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Divider, {}), jsxRuntime.jsx(SelectButton, { ref: guestsButtonRef, label: t('guests.label'), description: parsedGuests.content, onClick: function () {
12339
+ previouslyFocusedButtonRef.current = guestsButtonRef.current;
12340
+ handleSelectedFilter(FilterSections.GUESTS);
12341
+ }, active: !!parsedGuests.data.total, ariaExpanded: selectedFilter === FilterSections.GUESTS, ariaControls: "will-guests-filter" })] })), jsxRuntime.jsx(SubmitButton, { onClick: handleSubmit, startIcon: jsxRuntime.jsx(FaSearch, {}), label: t('common:search'), isLoading: innerLoading || outerLoading })] }), selectedFilter && (jsxRuntime.jsxs("div", { className: "will-filter-bar-container ".concat(mode || 'light'), style: (!tabs || tabs.length < 2) && !isMobile ? { top: 66 } : {}, children: [jsxRuntime.jsx(CloseButton, { handleClose: function () { return handleSelectedFilter(false); } }), selectedFilter === FilterSections.CALENDAR && (jsxRuntime.jsx("div", { id: "will-calendar-filter", children: jsxRuntime.jsx(Calendar, { calendarRange: calendarRange, setCalendarRange: setCalendarRange, disableCalendarDates: disableCalendarDates, selectedPath: selectedPath, language: language, ref: filtersRef, autoFocus: true }) })), selectedFilter === FilterSections.GUESTS && (jsxRuntime.jsx("div", { id: "will-guests-filter", children: jsxRuntime.jsx(Guests, { updateGuestsCount: updateGuestsCount, ageCategories: ageCategories, ageCategoryCounts: ageCategoryCounts, ref: filtersRef, autoFocus: true }) })), selectedFilter === FilterSections.CATEGORIES && (jsxRuntime.jsx(Categories, { categories: categories, setCategories: setCategories })), selectedFilter === FilterSections.LOCATIONS && (jsxRuntime.jsx("div", { id: "will-locations-filter", children: jsxRuntime.jsx(Locations, { locations: locations === null || locations === void 0 ? void 0 : locations.data, ref: filtersRef, language: language, selectedLocations: selectedLocations, setSelectedLocations: setSelectedLocations, multiSelect: locations === null || locations === void 0 ? void 0 : locations.multiSelect, autoFocus: true, onClose: function () { return handleSelectedFilter(false); } }) }))] }))] }));
12386
12342
  }
12387
12343
  ////////////
12388
12344
  var AGE_CATEGORIES_FALLBACK = [
@@ -12523,36 +12479,26 @@
12523
12479
  var nights = nightsCount({
12524
12480
  calendarRange: calendarRange,
12525
12481
  });
12526
- return (React.createElement("div", { className: "will-calendar-footer-actions-wrapper" },
12527
- React.createElement("div", { className: "will-calendar-footer-dates" },
12528
- calendarHasError ? (React.createElement("div", { className: "will-calendar-footer-error" }, calendarHasError &&
12529
- renderCalendarErrorMessage({
12530
- palette: palette,
12531
- message: t("common:errors.calendarErrors.checkInAvailabilityError"),
12532
- }))) : (React.createElement("div", null,
12533
- React.createElement("span", null, parseDate({
12534
- date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from,
12535
- dateFormat: 'EEEEEE d.M.yyyy',
12536
- language: language,
12537
- }) || t('common:checkIn')),
12538
- React.createElement("span", { className: "will-calendar-footer-dates-separator" }, "-"),
12539
- React.createElement("span", null, parseDate({
12540
- date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to,
12541
- dateFormat: 'EEEEEE d.M.yyyy',
12542
- language: language,
12543
- }) || t('common:checkOut')))),
12544
- React.createElement("span", { className: "will-calendar-footer-booked" }, !calendarHasError && nights
12545
- ? "".concat(nights, " ").concat(t("common:".concat(nights === 1 ? 'night' : 'nights')))
12546
- : '')),
12547
- React.createElement("div", { className: "will-calendar-footer-actions" },
12548
- React.createElement(SubmitButton, { onClick: handleClearDates, disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from), label: t("common:clearDates"), variant: "text" }))));
12482
+ return (jsxRuntime.jsxs("div", { className: "will-calendar-footer-actions-wrapper", children: [jsxRuntime.jsxs("div", { className: "will-calendar-footer-dates", children: [calendarHasError ? (jsxRuntime.jsx("div", { className: "will-calendar-footer-error", children: calendarHasError &&
12483
+ renderCalendarErrorMessage({
12484
+ palette: palette,
12485
+ message: t("common:errors.calendarErrors.checkInAvailabilityError"),
12486
+ }) })) : (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("span", { children: parseDate({
12487
+ date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from,
12488
+ dateFormat: 'EEEEEE d.M.yyyy',
12489
+ language: language,
12490
+ }) || t('common:checkIn') }), jsxRuntime.jsx("span", { className: "will-calendar-footer-dates-separator", children: "-" }), jsxRuntime.jsx("span", { children: parseDate({
12491
+ date: calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.to,
12492
+ dateFormat: 'EEEEEE d.M.yyyy',
12493
+ language: language,
12494
+ }) || t('common:checkOut') })] })), jsxRuntime.jsx("span", { className: "will-calendar-footer-booked", children: !calendarHasError && nights
12495
+ ? "".concat(nights, " ").concat(t("common:".concat(nights === 1 ? 'night' : 'nights')))
12496
+ : '' })] }), jsxRuntime.jsx("div", { className: "will-calendar-footer-actions", children: jsxRuntime.jsx(SubmitButton, { onClick: handleClearDates, disabled: !(calendarRange === null || calendarRange === void 0 ? void 0 : calendarRange.from), label: t("common:clearDates"), variant: "text" }) })] }));
12549
12497
  };
12550
12498
  /////////
12551
12499
  var renderCalendarErrorMessage = function (_a) {
12552
12500
  var message = _a.message, palette = _a.palette;
12553
- return (React.createElement(React.Fragment, null,
12554
- React.createElement(IconsSvg, { fill: (palette === null || palette === void 0 ? void 0 : palette.error) || 'inherit', size: 25, icon: "warning" }),
12555
- React.createElement("span", null, message || '')));
12501
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(IconsSvg, { fill: (palette === null || palette === void 0 ? void 0 : palette.error) || 'inherit', size: 25, icon: "warning" }), jsxRuntime.jsx("span", { children: message || '' })] }));
12556
12502
  };
12557
12503
 
12558
12504
  var css_248z = ".will-root .will-calendar-wrapper {\n box-shadow: var(--will-box-shadow-dark);\n border-radius: 20px;\n background-color: var(--will-white);\n position: absolute;\n top: 0;\n left: 0;\n \n}\n\n.will-root .will-calendar-wrapper .will-calendar-header,\n.will-root .will-calendar-wrapper .will-calendar-main,\n.will-root .will-calendar-wrapper .will-calendar-footer {\n padding: 20px;\n}\n\n/* Header */\n\n.will-root .will-calendar-wrapper .will-calendar-header {\n display: flex;\n justify-content: space-between;\n border-bottom: 1px solid var(--will-grey);\n align-items: center;\n}\n\n/* Footer */\n\n.will-root .will-calendar-wrapper .will-calendar-footer {\n border-top: 1px solid var(--will-grey);\n}\n\n/* Footer actions */\n\n.will-root .will-calendar-wrapper .will-calendar-footer-actions-wrapper {\n display: flex;\n justify-content: space-between;\n}\n\n.will-root .will-calendar-wrapper .will-calendar-footer-dates > div {\n margin-bottom: 5px;\n}\n\n.will-root .will-calendar-wrapper .will-calendar-footer-dates-separator {\n margin: 0 15px;\n}\n\n.will-root .will-calendar-wrapper .will-calendar-footer-dates .will-calendar-footer-booked {\n display: flex;\n min-height: 20.5px;\n margin-top: 10px;\n}\n\n.will-root .will-calendar-wrapper .will-calendar-footer-error {\n display: flex;\n max-width: 80%;\n}\n\n.will-root .will-calendar-wrapper .will-calendar-footer-error span {\n display: inline-block;\n margin-left: 10px;\n}\n\n@media (max-width: 960px) {\n .will-root .will-calendar-wrapper {\n width: -webkit-fill-available;\n margin: 0 -6%;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-header,\n .will-root .will-calendar-wrapper .will-calendar-main,\n .will-root .will-calendar-wrapper .will-calendar-footer {\n padding: 20px 10px;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-actions-wrapper {\n flex-direction: column;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-dates {\n text-align: center;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-dates .will-calendar-footer-booked {\n justify-content: center;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-actions {\n flex-direction: column;\n width: 100%;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-actions button{\n width: 100%;\n margin-top: 10px;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-error {\n max-width: 100%;\n }\n\n .will-root .will-calendar-wrapper .will-calendar-footer-error span {\n text-align: center;\n margin-left: 5px;\n }\n }\n\n.will-root .will-calendar-wrapper .will-calendar-header .will-filter-bar-close-button {\n position: initial;\n}";
@@ -12578,14 +12524,7 @@
12578
12524
  var filtersRef = useCloseFilterSection({
12579
12525
  handleSelectedFilter: setToggleCalendar,
12580
12526
  }).filtersRef;
12581
- return (React.createElement("div", { className: "will-root", style: themePalette }, toggleCalendar && (React.createElement("div", { className: "will-calendar-wrapper", ref: filtersRef },
12582
- React.createElement("div", { className: "will-calendar-header" },
12583
- React.createElement("h2", null, t('filterBar:calendar.title')),
12584
- React.createElement(CloseButton, { handleClose: function () { return setToggleCalendar(false); } })),
12585
- React.createElement("div", { className: "will-calendar-main" },
12586
- React.createElement(Calendar, { calendarRange: calendarRange, setCalendarRange: setCalendarRange, calendarOffset: calendarOffset, selectedPath: '/rooms', language: language, disableCalendarDates: disableCalendarDates, requestDates: requestDates, disabledDates: disabledDates, updateCalendarMonthNavigation: updateCalendarMonthNavigation, setUpdateCalendarMonthNavigation: setUpdateCalendarMonthNavigation, updateCalendarDefaultMonth: updateCalendarDefaultMonth, loadingData: loadingData, showFeedback: showFeedback, noActiveSelection: noActiveSelection, palette: palette, setCalendarHasError: setCalendarHasError, setUpdatedForSubmit: setUpdatedForSubmit, rangeContext: rangeContext, calendarHasError: calendarHasError })),
12587
- React.createElement("div", { className: "will-calendar-footer" },
12588
- React.createElement(Footer, { calendarHasError: calendarHasError, calendarRange: calendarRange, handleClearDates: handleClearDates, language: language, palette: palette }))))));
12527
+ return (jsxRuntime.jsx("div", { className: "will-root", style: themePalette, children: toggleCalendar && (jsxRuntime.jsxs("div", { className: "will-calendar-wrapper", ref: filtersRef, children: [jsxRuntime.jsxs("div", { className: "will-calendar-header", children: [jsxRuntime.jsx("h2", { children: t('filterBar:calendar.title') }), jsxRuntime.jsx(CloseButton, { handleClose: function () { return setToggleCalendar(false); } })] }), jsxRuntime.jsx("div", { className: "will-calendar-main", children: jsxRuntime.jsx(Calendar, { calendarRange: calendarRange, setCalendarRange: setCalendarRange, calendarOffset: calendarOffset, selectedPath: '/rooms', language: language, disableCalendarDates: disableCalendarDates, requestDates: requestDates, disabledDates: disabledDates, updateCalendarMonthNavigation: updateCalendarMonthNavigation, setUpdateCalendarMonthNavigation: setUpdateCalendarMonthNavigation, updateCalendarDefaultMonth: updateCalendarDefaultMonth, loadingData: loadingData, showFeedback: showFeedback, noActiveSelection: noActiveSelection, palette: palette, setCalendarHasError: setCalendarHasError, setUpdatedForSubmit: setUpdatedForSubmit, rangeContext: rangeContext, calendarHasError: calendarHasError }) }), jsxRuntime.jsx("div", { className: "will-calendar-footer", children: jsxRuntime.jsx(Footer, { calendarHasError: calendarHasError, calendarRange: calendarRange, handleClearDates: handleClearDates, language: language, palette: palette }) })] })) }));
12589
12528
  }
12590
12529
 
12591
12530
  exports.Button = Button$1;