@idea-fragments/react-components-zendesk 0.1.6 → 0.1.7

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/dist/styles.js CHANGED
@@ -2,7 +2,11 @@ Object.defineProperty(exports, '__esModule', {
2
2
  value: true
3
3
  });
4
4
 
5
+ require('react');
6
+
5
7
  var styledComponents = require('styled-components');
8
+
9
+ var jsxRuntime = require('react/jsx-runtime');
6
10
  /******************************************************************************
7
11
  Copyright (c) Microsoft Corporation.
8
12
 
@@ -3525,8 +3529,8 @@ var defineProperty$1 = function () {
3525
3529
  } catch (e) {}
3526
3530
  }();
3527
3531
 
3528
- var _defineProperty = defineProperty$1;
3529
- var defineProperty = _defineProperty;
3532
+ var _defineProperty$1 = defineProperty$1;
3533
+ var defineProperty = _defineProperty$1;
3530
3534
  /**
3531
3535
  * The base implementation of `assignValue` and `assignMergeValue` without
3532
3536
  * value checks.
@@ -5214,260 +5218,1970 @@ light2.styles = __assign(__assign({}, light2.styles), {
5214
5218
  shadow: "#00000014 0 6px 14px 0"
5215
5219
  })
5216
5220
  });
5217
- var XXS = ".8rem";
5218
- var XS = ".9rem";
5219
- var SM = "1rem";
5220
- var MD = "1.3rem";
5221
- var LG = "1.7rem";
5222
- var XL = "2.3rem";
5223
- var XXL = "3.3rem"; // h1
5224
-
5225
- var XXXL = "4rem";
5226
- var XXXXL = "5rem";
5227
- var XXXXXL = "6rem";
5228
- var THIN = "100";
5229
- var LIGHT = "300";
5230
- var REGULAR = "400";
5231
- var MEDIUM = "500";
5232
- var BOLD = "700";
5233
- var BLACK = "800";
5234
- var H1 = "h1";
5235
- var H2 = "h2";
5236
- var H3 = "h3";
5237
- var H4 = "h4";
5238
- var H5 = "h5";
5239
- var H6 = "h6";
5240
- var P = "p";
5241
- var SPAN = "span";
5242
- var DIV = "div";
5243
- var FONT_TAGS = {
5244
- H1: H1,
5245
- H2: H2,
5246
- H3: H3,
5247
- H4: H4,
5248
- H5: H5,
5249
- H6: H6,
5250
- P: P,
5251
- SPAN: SPAN,
5252
- DIV: DIV
5253
- };
5254
- var FONT_SIZES = {
5255
- XXS: XXS,
5256
- XS: XS,
5257
- SM: SM,
5258
- MD: MD,
5259
- LG: LG,
5260
- XL: XL,
5261
- XXL: XXL,
5262
- XXXL: XXXL,
5263
- XXXXL: XXXXL,
5264
- XXXXXL: XXXXXL
5221
+ var propTypes = {
5222
+ exports: {}
5265
5223
  };
5266
- var FONT_SIZES_EM = Object.freeze({
5267
- XXS: XXS.replace("r", ""),
5268
- XS: XS.replace("r", ""),
5269
- SM: SM.replace("r", ""),
5270
- MD: MD.replace("r", ""),
5271
- LG: LG.replace("r", ""),
5272
- XL: XL.replace("r", ""),
5273
- XXL: XXL.replace("r", ""),
5274
- XXXL: XXXL.replace("r", ""),
5275
- XXXXL: XXXXL.replace("r", ""),
5276
- XXXXXL: XXXXXL.replace("r", "")
5277
- });
5278
- var FONT_WEIGHTS = {
5279
- THIN: THIN,
5280
- LIGHT: LIGHT,
5281
- REGULAR: REGULAR,
5282
- MEDIUM: MEDIUM,
5283
- BOLD: BOLD,
5284
- BLACK: BLACK
5224
+ var reactIs = {
5225
+ exports: {}
5285
5226
  };
5286
- var backgroundPrimaryWithText = styledComponents.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (_a) {
5287
- var theme = _a.theme;
5288
- return theme.styles.colorPrimary;
5289
- }, function (_a) {
5290
- var theme = _a.theme;
5291
- var _b = theme.styles,
5292
- getTextColorForBackground = _b.getTextColorForBackground,
5293
- colorPrimary = _b.colorPrimary;
5294
- return getTextColorForBackground({
5295
- color: colorPrimary,
5296
- theme: theme
5297
- });
5298
- });
5299
- var textColorForBackground = styledComponents.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (props) {
5300
- return props.theme.styles.getTextColorForBackground(props);
5301
- });
5302
- var textColorPrimary = styledComponents.css(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
5303
- var theme = _a.theme;
5304
- return theme.styles.textColorPrimary;
5305
- });
5306
- var textWithColor = styledComponents.css(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
5307
- var color = _a.color;
5308
- return color === COLORS.YELLOW ? darker(color) : color;
5309
- });
5310
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1; // @flow
5227
+ var reactIs_production_min = {};
5228
+ /** @license React v16.13.1
5229
+ * react-is.production.min.js
5230
+ *
5231
+ * Copyright (c) Facebook, Inc. and its affiliates.
5232
+ *
5233
+ * This source code is licensed under the MIT license found in the
5234
+ * LICENSE file in the root directory of this source tree.
5235
+ */
5311
5236
 
5312
- /* Size key name represents all devices with a pixel width up to the number
5313
- specified */
5237
+ var hasRequiredReactIs_production_min;
5238
+
5239
+ function requireReactIs_production_min() {
5240
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
5241
+ hasRequiredReactIs_production_min = 1;
5242
+ var b = "function" === typeof Symbol && Symbol.for,
5243
+ c = b ? Symbol.for("react.element") : 60103,
5244
+ d = b ? Symbol.for("react.portal") : 60106,
5245
+ e = b ? Symbol.for("react.fragment") : 60107,
5246
+ f = b ? Symbol.for("react.strict_mode") : 60108,
5247
+ g = b ? Symbol.for("react.profiler") : 60114,
5248
+ h = b ? Symbol.for("react.provider") : 60109,
5249
+ k = b ? Symbol.for("react.context") : 60110,
5250
+ l = b ? Symbol.for("react.async_mode") : 60111,
5251
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
5252
+ n = b ? Symbol.for("react.forward_ref") : 60112,
5253
+ p = b ? Symbol.for("react.suspense") : 60113,
5254
+ q = b ? Symbol.for("react.suspense_list") : 60120,
5255
+ r = b ? Symbol.for("react.memo") : 60115,
5256
+ t = b ? Symbol.for("react.lazy") : 60116,
5257
+ v = b ? Symbol.for("react.block") : 60121,
5258
+ w = b ? Symbol.for("react.fundamental") : 60117,
5259
+ x = b ? Symbol.for("react.responder") : 60118,
5260
+ y = b ? Symbol.for("react.scope") : 60119;
5261
+
5262
+ function z(a) {
5263
+ if ("object" === typeof a && null !== a) {
5264
+ var u = a.$$typeof;
5265
+
5266
+ switch (u) {
5267
+ case c:
5268
+ switch (a = a.type, a) {
5269
+ case l:
5270
+ case m:
5271
+ case e:
5272
+ case g:
5273
+ case f:
5274
+ case p:
5275
+ return a;
5276
+
5277
+ default:
5278
+ switch (a = a && a.$$typeof, a) {
5279
+ case k:
5280
+ case n:
5281
+ case t:
5282
+ case r:
5283
+ case h:
5284
+ return a;
5285
+
5286
+ default:
5287
+ return u;
5288
+ }
5314
5289
 
5315
- var REGULAR_SIZES = {
5316
- phoneSize: 575,
5317
- tabletSize: 767,
5318
- largeTabletSize: 991,
5319
- smallComputerSize: 1199
5320
- };
5321
- var WIDE_SIZES = {
5322
- phoneSize: 560,
5323
- tabletSize: 840,
5324
- largeTabletSize: 991,
5325
- smallComputerSize: 1350
5326
- };
5290
+ }
5327
5291
 
5328
- var deviseSizes = function (wideLayout) {
5329
- if (wideLayout === void 0) {
5330
- wideLayout = false;
5292
+ case d:
5293
+ return u;
5294
+ }
5295
+ }
5331
5296
  }
5332
5297
 
5333
- return wideLayout ? WIDE_SIZES : REGULAR_SIZES;
5334
- };
5298
+ function A(a) {
5299
+ return z(a) === m;
5300
+ }
5335
5301
 
5336
- var PHONE_SIZE = 560;
5337
- var TABLET_SIZE = 840;
5302
+ reactIs_production_min.AsyncMode = l;
5303
+ reactIs_production_min.ConcurrentMode = m;
5304
+ reactIs_production_min.ContextConsumer = k;
5305
+ reactIs_production_min.ContextProvider = h;
5306
+ reactIs_production_min.Element = c;
5307
+ reactIs_production_min.ForwardRef = n;
5308
+ reactIs_production_min.Fragment = e;
5309
+ reactIs_production_min.Lazy = t;
5310
+ reactIs_production_min.Memo = r;
5311
+ reactIs_production_min.Portal = d;
5312
+ reactIs_production_min.Profiler = g;
5313
+ reactIs_production_min.StrictMode = f;
5314
+ reactIs_production_min.Suspense = p;
5315
+
5316
+ reactIs_production_min.isAsyncMode = function (a) {
5317
+ return A(a) || z(a) === l;
5318
+ };
5338
5319
 
5339
- var forPhones = function (styles) {
5340
- return "\n @media screen and (max-width: ".concat(unit(PHONE_SIZE), ") {\n ").concat(styles, "\n }\n");
5341
- };
5320
+ reactIs_production_min.isConcurrentMode = A;
5342
5321
 
5343
- var forTablets = function (styles) {
5344
- return "\n @media screen and (max-width: ".concat(unit(TABLET_SIZE), ") {\n ").concat(styles, "\n }\n");
5345
- };
5322
+ reactIs_production_min.isContextConsumer = function (a) {
5323
+ return z(a) === k;
5324
+ };
5346
5325
 
5347
- var mediaQueries = function (wideLayout) {
5348
- var _a = deviseSizes(wideLayout),
5349
- phoneSize = _a.phoneSize,
5350
- tabletSize = _a.tabletSize,
5351
- largeTabletSize = _a.largeTabletSize,
5352
- smallComputerSize = _a.smallComputerSize;
5326
+ reactIs_production_min.isContextProvider = function (a) {
5327
+ return z(a) === h;
5328
+ };
5353
5329
 
5354
- return {
5355
- forPhones: function (styles) {
5356
- return styledComponents.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media screen and (max-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (max-width: ", ") {\n ", "\n }\n "])), unit(phoneSize), styles);
5357
- },
5358
- forTablets: function (styles) {
5359
- return styledComponents.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media screen and (max-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (max-width: ", ") {\n ", "\n }\n "])), unit(tabletSize), styles);
5360
- },
5361
- forTabletsAndUp: function (styles) {
5362
- return styledComponents.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(phoneSize + 1), styles);
5363
- },
5364
- forLargeTabletsAndUp: function (styles) {
5365
- return styledComponents.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @media (min-width: ", ") {\n ", "\n }\n "], ["\n @media (min-width: ", ") {\n ", "\n }\n "])), unit(tabletSize + 1), styles);
5366
- },
5367
- forSmallComputersAndUp: function (styles) {
5368
- return styledComponents.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(largeTabletSize + 1), styles);
5369
- },
5370
- forLargeComputers: function (styles) {
5371
- return styledComponents.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(smallComputerSize + 1), styles);
5372
- }
5330
+ reactIs_production_min.isElement = function (a) {
5331
+ return "object" === typeof a && null !== a && a.$$typeof === c;
5373
5332
  };
5374
- };
5375
5333
 
5376
- var rem = function (px) {
5377
- return "".concat(px / remSize(), "rem");
5378
- };
5334
+ reactIs_production_min.isForwardRef = function (a) {
5335
+ return z(a) === n;
5336
+ };
5379
5337
 
5380
- var unit = function (px) {
5381
- return "".concat(px, "px");
5382
- };
5338
+ reactIs_production_min.isFragment = function (a) {
5339
+ return z(a) === e;
5340
+ };
5383
5341
 
5384
- var remSize = function (e) {
5385
- if (e === void 0) {
5386
- e = document.documentElement;
5387
- }
5342
+ reactIs_production_min.isLazy = function (a) {
5343
+ return z(a) === t;
5344
+ };
5388
5345
 
5389
- return Number(window.getComputedStyle(e, null).fontSize.replace(/[A-z]/g, ""));
5390
- };
5346
+ reactIs_production_min.isMemo = function (a) {
5347
+ return z(a) === r;
5348
+ };
5391
5349
 
5392
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; // @flow
5350
+ reactIs_production_min.isPortal = function (a) {
5351
+ return z(a) === d;
5352
+ };
5393
5353
 
5394
- function newIdGenerator() {
5395
- var id;
5396
- return __generator(this, function (_a) {
5397
- switch (_a.label) {
5398
- case 0:
5399
- id = 0;
5400
- _a.label = 1;
5354
+ reactIs_production_min.isProfiler = function (a) {
5355
+ return z(a) === g;
5356
+ };
5401
5357
 
5402
- case 1:
5403
- return [4
5404
- /*yield*/
5405
- , id++];
5358
+ reactIs_production_min.isStrictMode = function (a) {
5359
+ return z(a) === f;
5360
+ };
5406
5361
 
5407
- case 2:
5408
- _a.sent();
5362
+ reactIs_production_min.isSuspense = function (a) {
5363
+ return z(a) === p;
5364
+ };
5409
5365
 
5410
- return [3
5411
- /*break*/
5412
- , 1];
5366
+ reactIs_production_min.isValidElementType = function (a) {
5367
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
5368
+ };
5413
5369
 
5414
- case 3:
5415
- return [2
5416
- /*return*/
5417
- ];
5418
- }
5419
- });
5370
+ reactIs_production_min.typeOf = z;
5371
+ return reactIs_production_min;
5420
5372
  }
5421
5373
 
5422
- var nextId = function (generator) {
5423
- return generator.next().value;
5424
- };
5425
-
5426
- var LEVEL_STYLES = {
5427
- info: "background: #499cc8; color: white;",
5428
- error: "background: #c14a4f; color: white;",
5429
- warn: "background: #e0a270; color: black;"
5430
- };
5374
+ var reactIs_development = {};
5375
+ /** @license React v16.13.1
5376
+ * react-is.development.js
5377
+ *
5378
+ * Copyright (c) Facebook, Inc. and its affiliates.
5379
+ *
5380
+ * This source code is licensed under the MIT license found in the
5381
+ * LICENSE file in the root directory of this source tree.
5382
+ */
5431
5383
 
5432
- var Logger =
5433
- /** @class */
5434
- function () {
5435
- function Logger(moduleName) {
5436
- var _this = this;
5384
+ var hasRequiredReactIs_development;
5385
+
5386
+ function requireReactIs_development() {
5387
+ if (hasRequiredReactIs_development) return reactIs_development;
5388
+ hasRequiredReactIs_development = 1;
5389
+
5390
+ if (process.env.NODE_ENV !== "production") {
5391
+ (function () {
5392
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
5393
+ // nor polyfill, then a plain number is used for performance.
5394
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
5395
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
5396
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
5397
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
5398
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
5399
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
5400
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
5401
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
5402
+ // (unstable) APIs that have been removed. Can we remove the symbols?
5403
+
5404
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
5405
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
5406
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
5407
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
5408
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
5409
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
5410
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
5411
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
5412
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
5413
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
5414
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
5415
+
5416
+ function isValidElementType(type) {
5417
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
5418
+ 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);
5419
+ }
5437
5420
 
5438
- this.log = function (level) {
5439
- return function () {
5440
- var args = [];
5421
+ function typeOf(object) {
5422
+ if (typeof object === 'object' && object !== null) {
5423
+ var $$typeof = object.$$typeof;
5424
+
5425
+ switch ($$typeof) {
5426
+ case REACT_ELEMENT_TYPE:
5427
+ var type = object.type;
5428
+
5429
+ switch (type) {
5430
+ case REACT_ASYNC_MODE_TYPE:
5431
+ case REACT_CONCURRENT_MODE_TYPE:
5432
+ case REACT_FRAGMENT_TYPE:
5433
+ case REACT_PROFILER_TYPE:
5434
+ case REACT_STRICT_MODE_TYPE:
5435
+ case REACT_SUSPENSE_TYPE:
5436
+ return type;
5437
+
5438
+ default:
5439
+ var $$typeofType = type && type.$$typeof;
5440
+
5441
+ switch ($$typeofType) {
5442
+ case REACT_CONTEXT_TYPE:
5443
+ case REACT_FORWARD_REF_TYPE:
5444
+ case REACT_LAZY_TYPE:
5445
+ case REACT_MEMO_TYPE:
5446
+ case REACT_PROVIDER_TYPE:
5447
+ return $$typeofType;
5448
+
5449
+ default:
5450
+ return $$typeof;
5451
+ }
5452
+
5453
+ }
5454
+
5455
+ case REACT_PORTAL_TYPE:
5456
+ return $$typeof;
5457
+ }
5458
+ }
5441
5459
 
5442
- for (var _i = 0; _i < arguments.length; _i++) {
5443
- args[_i] = arguments[_i];
5460
+ return undefined;
5461
+ } // AsyncMode is deprecated along with isAsyncMode
5462
+
5463
+
5464
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
5465
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
5466
+ var ContextConsumer = REACT_CONTEXT_TYPE;
5467
+ var ContextProvider = REACT_PROVIDER_TYPE;
5468
+ var Element = REACT_ELEMENT_TYPE;
5469
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
5470
+ var Fragment = REACT_FRAGMENT_TYPE;
5471
+ var Lazy = REACT_LAZY_TYPE;
5472
+ var Memo = REACT_MEMO_TYPE;
5473
+ var Portal = REACT_PORTAL_TYPE;
5474
+ var Profiler = REACT_PROFILER_TYPE;
5475
+ var StrictMode = REACT_STRICT_MODE_TYPE;
5476
+ var Suspense = REACT_SUSPENSE_TYPE;
5477
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
5478
+
5479
+ function isAsyncMode(object) {
5480
+ {
5481
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
5482
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
5483
+
5484
+ 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.');
5485
+ }
5444
5486
  }
5487
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
5488
+ }
5445
5489
 
5446
- if (typeof window === "undefined" || !window.DEBUG_MODULES.has(_this.moduleName)) return;
5447
- console[level].apply(console, __spreadArray(["%c".concat(_this.moduleName), "".concat(LEVEL_STYLES[level], " padding: 2px 6px;")], __read(args), false));
5448
- };
5449
- };
5490
+ function isConcurrentMode(object) {
5491
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
5492
+ }
5450
5493
 
5451
- this.writeInfo = this.log("info");
5452
- this.writeError = this.log("error");
5453
- this.writeWarning = this.log("warn");
5454
- this.moduleName = moduleName;
5455
- }
5494
+ function isContextConsumer(object) {
5495
+ return typeOf(object) === REACT_CONTEXT_TYPE;
5496
+ }
5456
5497
 
5457
- return Logger;
5458
- }();
5498
+ function isContextProvider(object) {
5499
+ return typeOf(object) === REACT_PROVIDER_TYPE;
5500
+ }
5459
5501
 
5460
- if (typeof window !== "undefined") {
5461
- window.DEBUG_MODULES = new Set();
5462
- }
5502
+ function isElement(object) {
5503
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
5504
+ }
5463
5505
 
5464
- var DEVICES = {
5465
- phone: 0,
5466
- tablet: 1,
5467
- largeTablet: 2,
5468
- smallComputer: 3,
5469
- largeComputer: 4
5470
- };
5506
+ function isForwardRef(object) {
5507
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
5508
+ }
5509
+
5510
+ function isFragment(object) {
5511
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
5512
+ }
5513
+
5514
+ function isLazy(object) {
5515
+ return typeOf(object) === REACT_LAZY_TYPE;
5516
+ }
5517
+
5518
+ function isMemo(object) {
5519
+ return typeOf(object) === REACT_MEMO_TYPE;
5520
+ }
5521
+
5522
+ function isPortal(object) {
5523
+ return typeOf(object) === REACT_PORTAL_TYPE;
5524
+ }
5525
+
5526
+ function isProfiler(object) {
5527
+ return typeOf(object) === REACT_PROFILER_TYPE;
5528
+ }
5529
+
5530
+ function isStrictMode(object) {
5531
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
5532
+ }
5533
+
5534
+ function isSuspense(object) {
5535
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
5536
+ }
5537
+
5538
+ reactIs_development.AsyncMode = AsyncMode;
5539
+ reactIs_development.ConcurrentMode = ConcurrentMode;
5540
+ reactIs_development.ContextConsumer = ContextConsumer;
5541
+ reactIs_development.ContextProvider = ContextProvider;
5542
+ reactIs_development.Element = Element;
5543
+ reactIs_development.ForwardRef = ForwardRef;
5544
+ reactIs_development.Fragment = Fragment;
5545
+ reactIs_development.Lazy = Lazy;
5546
+ reactIs_development.Memo = Memo;
5547
+ reactIs_development.Portal = Portal;
5548
+ reactIs_development.Profiler = Profiler;
5549
+ reactIs_development.StrictMode = StrictMode;
5550
+ reactIs_development.Suspense = Suspense;
5551
+ reactIs_development.isAsyncMode = isAsyncMode;
5552
+ reactIs_development.isConcurrentMode = isConcurrentMode;
5553
+ reactIs_development.isContextConsumer = isContextConsumer;
5554
+ reactIs_development.isContextProvider = isContextProvider;
5555
+ reactIs_development.isElement = isElement;
5556
+ reactIs_development.isForwardRef = isForwardRef;
5557
+ reactIs_development.isFragment = isFragment;
5558
+ reactIs_development.isLazy = isLazy;
5559
+ reactIs_development.isMemo = isMemo;
5560
+ reactIs_development.isPortal = isPortal;
5561
+ reactIs_development.isProfiler = isProfiler;
5562
+ reactIs_development.isStrictMode = isStrictMode;
5563
+ reactIs_development.isSuspense = isSuspense;
5564
+ reactIs_development.isValidElementType = isValidElementType;
5565
+ reactIs_development.typeOf = typeOf;
5566
+ })();
5567
+ }
5568
+
5569
+ return reactIs_development;
5570
+ }
5571
+
5572
+ var hasRequiredReactIs;
5573
+
5574
+ function requireReactIs() {
5575
+ if (hasRequiredReactIs) return reactIs.exports;
5576
+ hasRequiredReactIs = 1;
5577
+
5578
+ (function (module) {
5579
+ if (process.env.NODE_ENV === 'production') {
5580
+ module.exports = requireReactIs_production_min();
5581
+ } else {
5582
+ module.exports = requireReactIs_development();
5583
+ }
5584
+ })(reactIs);
5585
+
5586
+ return reactIs.exports;
5587
+ }
5588
+ /*
5589
+ object-assign
5590
+ (c) Sindre Sorhus
5591
+ @license MIT
5592
+ */
5593
+
5594
+
5595
+ var objectAssign;
5596
+ var hasRequiredObjectAssign;
5597
+
5598
+ function requireObjectAssign() {
5599
+ if (hasRequiredObjectAssign) return objectAssign;
5600
+ hasRequiredObjectAssign = 1;
5601
+ /* eslint-disable no-unused-vars */
5602
+
5603
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
5604
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
5605
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
5606
+
5607
+ function toObject(val) {
5608
+ if (val === null || val === undefined) {
5609
+ throw new TypeError('Object.assign cannot be called with null or undefined');
5610
+ }
5611
+
5612
+ return Object(val);
5613
+ }
5614
+
5615
+ function shouldUseNative() {
5616
+ try {
5617
+ if (!Object.assign) {
5618
+ return false;
5619
+ } // Detect buggy property enumeration order in older V8 versions.
5620
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
5621
+
5622
+
5623
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
5624
+
5625
+ test1[5] = 'de';
5626
+
5627
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
5628
+ return false;
5629
+ } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5630
+
5631
+
5632
+ var test2 = {};
5633
+
5634
+ for (var i = 0; i < 10; i++) {
5635
+ test2['_' + String.fromCharCode(i)] = i;
5636
+ }
5637
+
5638
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
5639
+ return test2[n];
5640
+ });
5641
+
5642
+ if (order2.join('') !== '0123456789') {
5643
+ return false;
5644
+ } // https://bugs.chromium.org/p/v8/issues/detail?id=3056
5645
+
5646
+
5647
+ var test3 = {};
5648
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
5649
+ test3[letter] = letter;
5650
+ });
5651
+
5652
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
5653
+ return false;
5654
+ }
5655
+
5656
+ return true;
5657
+ } catch (err) {
5658
+ // We don't expect any of the above to throw, but better to be safe.
5659
+ return false;
5660
+ }
5661
+ }
5662
+
5663
+ objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
5664
+ var from;
5665
+ var to = toObject(target);
5666
+ var symbols;
5667
+
5668
+ for (var s = 1; s < arguments.length; s++) {
5669
+ from = Object(arguments[s]);
5670
+
5671
+ for (var key in from) {
5672
+ if (hasOwnProperty.call(from, key)) {
5673
+ to[key] = from[key];
5674
+ }
5675
+ }
5676
+
5677
+ if (getOwnPropertySymbols) {
5678
+ symbols = getOwnPropertySymbols(from);
5679
+
5680
+ for (var i = 0; i < symbols.length; i++) {
5681
+ if (propIsEnumerable.call(from, symbols[i])) {
5682
+ to[symbols[i]] = from[symbols[i]];
5683
+ }
5684
+ }
5685
+ }
5686
+ }
5687
+
5688
+ return to;
5689
+ };
5690
+ return objectAssign;
5691
+ }
5692
+ /**
5693
+ * Copyright (c) 2013-present, Facebook, Inc.
5694
+ *
5695
+ * This source code is licensed under the MIT license found in the
5696
+ * LICENSE file in the root directory of this source tree.
5697
+ */
5698
+
5699
+
5700
+ var ReactPropTypesSecret_1;
5701
+ var hasRequiredReactPropTypesSecret;
5702
+
5703
+ function requireReactPropTypesSecret() {
5704
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
5705
+ hasRequiredReactPropTypesSecret = 1;
5706
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5707
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
5708
+ return ReactPropTypesSecret_1;
5709
+ }
5710
+
5711
+ var has;
5712
+ var hasRequiredHas;
5713
+
5714
+ function requireHas() {
5715
+ if (hasRequiredHas) return has;
5716
+ hasRequiredHas = 1;
5717
+ has = Function.call.bind(Object.prototype.hasOwnProperty);
5718
+ return has;
5719
+ }
5720
+ /**
5721
+ * Copyright (c) 2013-present, Facebook, Inc.
5722
+ *
5723
+ * This source code is licensed under the MIT license found in the
5724
+ * LICENSE file in the root directory of this source tree.
5725
+ */
5726
+
5727
+
5728
+ var checkPropTypes_1;
5729
+ var hasRequiredCheckPropTypes;
5730
+
5731
+ function requireCheckPropTypes() {
5732
+ if (hasRequiredCheckPropTypes) return checkPropTypes_1;
5733
+ hasRequiredCheckPropTypes = 1;
5734
+
5735
+ var printWarning = function () {};
5736
+
5737
+ if (process.env.NODE_ENV !== 'production') {
5738
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
5739
+ var loggedTypeFailures = {};
5740
+ var has = requireHas();
5741
+
5742
+ printWarning = function (text) {
5743
+ var message = 'Warning: ' + text;
5744
+
5745
+ if (typeof console !== 'undefined') {
5746
+ console.error(message);
5747
+ }
5748
+
5749
+ try {
5750
+ // --- Welcome to debugging React ---
5751
+ // This error was thrown as a convenience so that you can use this stack
5752
+ // to find the callsite that caused this warning to fire.
5753
+ throw new Error(message);
5754
+ } catch (x) {
5755
+ /**/
5756
+ }
5757
+ };
5758
+ }
5759
+ /**
5760
+ * Assert that the values match with the type specs.
5761
+ * Error messages are memorized and will only be shown once.
5762
+ *
5763
+ * @param {object} typeSpecs Map of name to a ReactPropType
5764
+ * @param {object} values Runtime values that need to be type-checked
5765
+ * @param {string} location e.g. "prop", "context", "child context"
5766
+ * @param {string} componentName Name of the component for error messages.
5767
+ * @param {?Function} getStack Returns the component stack.
5768
+ * @private
5769
+ */
5770
+
5771
+
5772
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
5773
+ if (process.env.NODE_ENV !== 'production') {
5774
+ for (var typeSpecName in typeSpecs) {
5775
+ if (has(typeSpecs, typeSpecName)) {
5776
+ var error; // Prop type validation may throw. In case they do, we don't want to
5777
+ // fail the render phase where it didn't fail before. So we log it.
5778
+ // After these have been cleaned up, we'll let them throw.
5779
+
5780
+ try {
5781
+ // This is intentionally an invariant that gets caught. It's the same
5782
+ // behavior as without this statement except with a better message.
5783
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
5784
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
5785
+ err.name = 'Invariant Violation';
5786
+ throw err;
5787
+ }
5788
+
5789
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
5790
+ } catch (ex) {
5791
+ error = ex;
5792
+ }
5793
+
5794
+ if (error && !(error instanceof Error)) {
5795
+ printWarning((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
5796
+ }
5797
+
5798
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
5799
+ // Only monitor this failure once because there tends to be a lot of the
5800
+ // same error.
5801
+ loggedTypeFailures[error.message] = true;
5802
+ var stack = getStack ? getStack() : '';
5803
+ printWarning('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
5804
+ }
5805
+ }
5806
+ }
5807
+ }
5808
+ }
5809
+ /**
5810
+ * Resets warning cache when testing.
5811
+ *
5812
+ * @private
5813
+ */
5814
+
5815
+
5816
+ checkPropTypes.resetWarningCache = function () {
5817
+ if (process.env.NODE_ENV !== 'production') {
5818
+ loggedTypeFailures = {};
5819
+ }
5820
+ };
5821
+
5822
+ checkPropTypes_1 = checkPropTypes;
5823
+ return checkPropTypes_1;
5824
+ }
5825
+ /**
5826
+ * Copyright (c) 2013-present, Facebook, Inc.
5827
+ *
5828
+ * This source code is licensed under the MIT license found in the
5829
+ * LICENSE file in the root directory of this source tree.
5830
+ */
5831
+
5832
+
5833
+ var factoryWithTypeCheckers;
5834
+ var hasRequiredFactoryWithTypeCheckers;
5835
+
5836
+ function requireFactoryWithTypeCheckers() {
5837
+ if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
5838
+ hasRequiredFactoryWithTypeCheckers = 1;
5839
+ var ReactIs = requireReactIs();
5840
+ var assign = requireObjectAssign();
5841
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
5842
+ var has = requireHas();
5843
+ var checkPropTypes = requireCheckPropTypes();
5844
+
5845
+ var printWarning = function () {};
5846
+
5847
+ if (process.env.NODE_ENV !== 'production') {
5848
+ printWarning = function (text) {
5849
+ var message = 'Warning: ' + text;
5850
+
5851
+ if (typeof console !== 'undefined') {
5852
+ console.error(message);
5853
+ }
5854
+
5855
+ try {
5856
+ // --- Welcome to debugging React ---
5857
+ // This error was thrown as a convenience so that you can use this stack
5858
+ // to find the callsite that caused this warning to fire.
5859
+ throw new Error(message);
5860
+ } catch (x) {}
5861
+ };
5862
+ }
5863
+
5864
+ function emptyFunctionThatReturnsNull() {
5865
+ return null;
5866
+ }
5867
+
5868
+ factoryWithTypeCheckers = function (isValidElement, throwOnDirectAccess) {
5869
+ /* global Symbol */
5870
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5871
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
5872
+
5873
+ /**
5874
+ * Returns the iterator method function contained on the iterable object.
5875
+ *
5876
+ * Be sure to invoke the function with the iterable as context:
5877
+ *
5878
+ * var iteratorFn = getIteratorFn(myIterable);
5879
+ * if (iteratorFn) {
5880
+ * var iterator = iteratorFn.call(myIterable);
5881
+ * ...
5882
+ * }
5883
+ *
5884
+ * @param {?object} maybeIterable
5885
+ * @return {?function}
5886
+ */
5887
+
5888
+ function getIteratorFn(maybeIterable) {
5889
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
5890
+
5891
+ if (typeof iteratorFn === 'function') {
5892
+ return iteratorFn;
5893
+ }
5894
+ }
5895
+ /**
5896
+ * Collection of methods that allow declaration and validation of props that are
5897
+ * supplied to React components. Example usage:
5898
+ *
5899
+ * var Props = require('ReactPropTypes');
5900
+ * var MyArticle = React.createClass({
5901
+ * propTypes: {
5902
+ * // An optional string prop named "description".
5903
+ * description: Props.string,
5904
+ *
5905
+ * // A required enum prop named "category".
5906
+ * category: Props.oneOf(['News','Photos']).isRequired,
5907
+ *
5908
+ * // A prop named "dialog" that requires an instance of Dialog.
5909
+ * dialog: Props.instanceOf(Dialog).isRequired
5910
+ * },
5911
+ * render: function() { ... }
5912
+ * });
5913
+ *
5914
+ * A more formal specification of how these methods are used:
5915
+ *
5916
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
5917
+ * decl := ReactPropTypes.{type}(.isRequired)?
5918
+ *
5919
+ * Each and every declaration produces a function with the same signature. This
5920
+ * allows the creation of custom validation functions. For example:
5921
+ *
5922
+ * var MyLink = React.createClass({
5923
+ * propTypes: {
5924
+ * // An optional string or URI prop named "href".
5925
+ * href: function(props, propName, componentName) {
5926
+ * var propValue = props[propName];
5927
+ * if (propValue != null && typeof propValue !== 'string' &&
5928
+ * !(propValue instanceof URI)) {
5929
+ * return new Error(
5930
+ * 'Expected a string or an URI for ' + propName + ' in ' +
5931
+ * componentName
5932
+ * );
5933
+ * }
5934
+ * }
5935
+ * },
5936
+ * render: function() {...}
5937
+ * });
5938
+ *
5939
+ * @internal
5940
+ */
5941
+
5942
+
5943
+ var ANONYMOUS = '<<anonymous>>'; // Important!
5944
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
5945
+
5946
+ var ReactPropTypes = {
5947
+ array: createPrimitiveTypeChecker('array'),
5948
+ bigint: createPrimitiveTypeChecker('bigint'),
5949
+ bool: createPrimitiveTypeChecker('boolean'),
5950
+ func: createPrimitiveTypeChecker('function'),
5951
+ number: createPrimitiveTypeChecker('number'),
5952
+ object: createPrimitiveTypeChecker('object'),
5953
+ string: createPrimitiveTypeChecker('string'),
5954
+ symbol: createPrimitiveTypeChecker('symbol'),
5955
+ any: createAnyTypeChecker(),
5956
+ arrayOf: createArrayOfTypeChecker,
5957
+ element: createElementTypeChecker(),
5958
+ elementType: createElementTypeTypeChecker(),
5959
+ instanceOf: createInstanceTypeChecker,
5960
+ node: createNodeChecker(),
5961
+ objectOf: createObjectOfTypeChecker,
5962
+ oneOf: createEnumTypeChecker,
5963
+ oneOfType: createUnionTypeChecker,
5964
+ shape: createShapeTypeChecker,
5965
+ exact: createStrictShapeTypeChecker
5966
+ };
5967
+ /**
5968
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
5969
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5970
+ */
5971
+
5972
+ /*eslint-disable no-self-compare*/
5973
+
5974
+ function is(x, y) {
5975
+ // SameValue algorithm
5976
+ if (x === y) {
5977
+ // Steps 1-5, 7-10
5978
+ // Steps 6.b-6.e: +0 != -0
5979
+ return x !== 0 || 1 / x === 1 / y;
5980
+ } else {
5981
+ // Step 6.a: NaN == NaN
5982
+ return x !== x && y !== y;
5983
+ }
5984
+ }
5985
+ /*eslint-enable no-self-compare*/
5986
+
5987
+ /**
5988
+ * We use an Error-like object for backward compatibility as people may call
5989
+ * PropTypes directly and inspect their output. However, we don't use real
5990
+ * Errors anymore. We don't inspect their stack anyway, and creating them
5991
+ * is prohibitively expensive if they are created too often, such as what
5992
+ * happens in oneOfType() for any type before the one that matched.
5993
+ */
5994
+
5995
+
5996
+ function PropTypeError(message, data) {
5997
+ this.message = message;
5998
+ this.data = data && typeof data === 'object' ? data : {};
5999
+ this.stack = '';
6000
+ } // Make `instanceof Error` still work for returned errors.
6001
+
6002
+
6003
+ PropTypeError.prototype = Error.prototype;
6004
+
6005
+ function createChainableTypeChecker(validate) {
6006
+ if (process.env.NODE_ENV !== 'production') {
6007
+ var manualPropTypeCallCache = {};
6008
+ var manualPropTypeWarningCount = 0;
6009
+ }
6010
+
6011
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
6012
+ componentName = componentName || ANONYMOUS;
6013
+ propFullName = propFullName || propName;
6014
+
6015
+ if (secret !== ReactPropTypesSecret) {
6016
+ if (throwOnDirectAccess) {
6017
+ // New behavior only for users of `prop-types` package
6018
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
6019
+ err.name = 'Invariant Violation';
6020
+ throw err;
6021
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
6022
+ // Old behavior for people using React.PropTypes
6023
+ var cacheKey = componentName + ':' + propName;
6024
+
6025
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
6026
+ manualPropTypeWarningCount < 3) {
6027
+ printWarning('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
6028
+ manualPropTypeCallCache[cacheKey] = true;
6029
+ manualPropTypeWarningCount++;
6030
+ }
6031
+ }
6032
+ }
6033
+
6034
+ if (props[propName] == null) {
6035
+ if (isRequired) {
6036
+ if (props[propName] === null) {
6037
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
6038
+ }
6039
+
6040
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
6041
+ }
6042
+
6043
+ return null;
6044
+ } else {
6045
+ return validate(props, propName, componentName, location, propFullName);
6046
+ }
6047
+ }
6048
+
6049
+ var chainedCheckType = checkType.bind(null, false);
6050
+ chainedCheckType.isRequired = checkType.bind(null, true);
6051
+ return chainedCheckType;
6052
+ }
6053
+
6054
+ function createPrimitiveTypeChecker(expectedType) {
6055
+ function validate(props, propName, componentName, location, propFullName, secret) {
6056
+ var propValue = props[propName];
6057
+ var propType = getPropType(propValue);
6058
+
6059
+ if (propType !== expectedType) {
6060
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
6061
+ // check, but we can offer a more precise error message here rather than
6062
+ // 'of type `object`'.
6063
+ var preciseType = getPreciseType(propValue);
6064
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
6065
+ expectedType: expectedType
6066
+ });
6067
+ }
6068
+
6069
+ return null;
6070
+ }
6071
+
6072
+ return createChainableTypeChecker(validate);
6073
+ }
6074
+
6075
+ function createAnyTypeChecker() {
6076
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
6077
+ }
6078
+
6079
+ function createArrayOfTypeChecker(typeChecker) {
6080
+ function validate(props, propName, componentName, location, propFullName) {
6081
+ if (typeof typeChecker !== 'function') {
6082
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
6083
+ }
6084
+
6085
+ var propValue = props[propName];
6086
+
6087
+ if (!Array.isArray(propValue)) {
6088
+ var propType = getPropType(propValue);
6089
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
6090
+ }
6091
+
6092
+ for (var i = 0; i < propValue.length; i++) {
6093
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
6094
+
6095
+ if (error instanceof Error) {
6096
+ return error;
6097
+ }
6098
+ }
6099
+
6100
+ return null;
6101
+ }
6102
+
6103
+ return createChainableTypeChecker(validate);
6104
+ }
6105
+
6106
+ function createElementTypeChecker() {
6107
+ function validate(props, propName, componentName, location, propFullName) {
6108
+ var propValue = props[propName];
6109
+
6110
+ if (!isValidElement(propValue)) {
6111
+ var propType = getPropType(propValue);
6112
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
6113
+ }
6114
+
6115
+ return null;
6116
+ }
6117
+
6118
+ return createChainableTypeChecker(validate);
6119
+ }
6120
+
6121
+ function createElementTypeTypeChecker() {
6122
+ function validate(props, propName, componentName, location, propFullName) {
6123
+ var propValue = props[propName];
6124
+
6125
+ if (!ReactIs.isValidElementType(propValue)) {
6126
+ var propType = getPropType(propValue);
6127
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
6128
+ }
6129
+
6130
+ return null;
6131
+ }
6132
+
6133
+ return createChainableTypeChecker(validate);
6134
+ }
6135
+
6136
+ function createInstanceTypeChecker(expectedClass) {
6137
+ function validate(props, propName, componentName, location, propFullName) {
6138
+ if (!(props[propName] instanceof expectedClass)) {
6139
+ var expectedClassName = expectedClass.name || ANONYMOUS;
6140
+ var actualClassName = getClassName(props[propName]);
6141
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
6142
+ }
6143
+
6144
+ return null;
6145
+ }
6146
+
6147
+ return createChainableTypeChecker(validate);
6148
+ }
6149
+
6150
+ function createEnumTypeChecker(expectedValues) {
6151
+ if (!Array.isArray(expectedValues)) {
6152
+ if (process.env.NODE_ENV !== 'production') {
6153
+ if (arguments.length > 1) {
6154
+ printWarning('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
6155
+ } else {
6156
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
6157
+ }
6158
+ }
6159
+
6160
+ return emptyFunctionThatReturnsNull;
6161
+ }
6162
+
6163
+ function validate(props, propName, componentName, location, propFullName) {
6164
+ var propValue = props[propName];
6165
+
6166
+ for (var i = 0; i < expectedValues.length; i++) {
6167
+ if (is(propValue, expectedValues[i])) {
6168
+ return null;
6169
+ }
6170
+ }
6171
+
6172
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
6173
+ var type = getPreciseType(value);
6174
+
6175
+ if (type === 'symbol') {
6176
+ return String(value);
6177
+ }
6178
+
6179
+ return value;
6180
+ });
6181
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
6182
+ }
6183
+
6184
+ return createChainableTypeChecker(validate);
6185
+ }
6186
+
6187
+ function createObjectOfTypeChecker(typeChecker) {
6188
+ function validate(props, propName, componentName, location, propFullName) {
6189
+ if (typeof typeChecker !== 'function') {
6190
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
6191
+ }
6192
+
6193
+ var propValue = props[propName];
6194
+ var propType = getPropType(propValue);
6195
+
6196
+ if (propType !== 'object') {
6197
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
6198
+ }
6199
+
6200
+ for (var key in propValue) {
6201
+ if (has(propValue, key)) {
6202
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6203
+
6204
+ if (error instanceof Error) {
6205
+ return error;
6206
+ }
6207
+ }
6208
+ }
6209
+
6210
+ return null;
6211
+ }
6212
+
6213
+ return createChainableTypeChecker(validate);
6214
+ }
6215
+
6216
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
6217
+ if (!Array.isArray(arrayOfTypeCheckers)) {
6218
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
6219
+ return emptyFunctionThatReturnsNull;
6220
+ }
6221
+
6222
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6223
+ var checker = arrayOfTypeCheckers[i];
6224
+
6225
+ if (typeof checker !== 'function') {
6226
+ printWarning('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
6227
+ return emptyFunctionThatReturnsNull;
6228
+ }
6229
+ }
6230
+
6231
+ function validate(props, propName, componentName, location, propFullName) {
6232
+ var expectedTypes = [];
6233
+
6234
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6235
+ var checker = arrayOfTypeCheckers[i];
6236
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
6237
+
6238
+ if (checkerResult == null) {
6239
+ return null;
6240
+ }
6241
+
6242
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
6243
+ expectedTypes.push(checkerResult.data.expectedType);
6244
+ }
6245
+ }
6246
+
6247
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
6248
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
6249
+ }
6250
+
6251
+ return createChainableTypeChecker(validate);
6252
+ }
6253
+
6254
+ function createNodeChecker() {
6255
+ function validate(props, propName, componentName, location, propFullName) {
6256
+ if (!isNode(props[propName])) {
6257
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
6258
+ }
6259
+
6260
+ return null;
6261
+ }
6262
+
6263
+ return createChainableTypeChecker(validate);
6264
+ }
6265
+
6266
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
6267
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
6268
+ }
6269
+
6270
+ function createShapeTypeChecker(shapeTypes) {
6271
+ function validate(props, propName, componentName, location, propFullName) {
6272
+ var propValue = props[propName];
6273
+ var propType = getPropType(propValue);
6274
+
6275
+ if (propType !== 'object') {
6276
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6277
+ }
6278
+
6279
+ for (var key in shapeTypes) {
6280
+ var checker = shapeTypes[key];
6281
+
6282
+ if (typeof checker !== 'function') {
6283
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
6284
+ }
6285
+
6286
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6287
+
6288
+ if (error) {
6289
+ return error;
6290
+ }
6291
+ }
6292
+
6293
+ return null;
6294
+ }
6295
+
6296
+ return createChainableTypeChecker(validate);
6297
+ }
6298
+
6299
+ function createStrictShapeTypeChecker(shapeTypes) {
6300
+ function validate(props, propName, componentName, location, propFullName) {
6301
+ var propValue = props[propName];
6302
+ var propType = getPropType(propValue);
6303
+
6304
+ if (propType !== 'object') {
6305
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6306
+ } // We need to check all keys in case some are required but missing from props.
6307
+
6308
+
6309
+ var allKeys = assign({}, props[propName], shapeTypes);
6310
+
6311
+ for (var key in allKeys) {
6312
+ var checker = shapeTypes[key];
6313
+
6314
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
6315
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
6316
+ }
6317
+
6318
+ if (!checker) {
6319
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
6320
+ }
6321
+
6322
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
6323
+
6324
+ if (error) {
6325
+ return error;
6326
+ }
6327
+ }
6328
+
6329
+ return null;
6330
+ }
6331
+
6332
+ return createChainableTypeChecker(validate);
6333
+ }
6334
+
6335
+ function isNode(propValue) {
6336
+ switch (typeof propValue) {
6337
+ case 'number':
6338
+ case 'string':
6339
+ case 'undefined':
6340
+ return true;
6341
+
6342
+ case 'boolean':
6343
+ return !propValue;
6344
+
6345
+ case 'object':
6346
+ if (Array.isArray(propValue)) {
6347
+ return propValue.every(isNode);
6348
+ }
6349
+
6350
+ if (propValue === null || isValidElement(propValue)) {
6351
+ return true;
6352
+ }
6353
+
6354
+ var iteratorFn = getIteratorFn(propValue);
6355
+
6356
+ if (iteratorFn) {
6357
+ var iterator = iteratorFn.call(propValue);
6358
+ var step;
6359
+
6360
+ if (iteratorFn !== propValue.entries) {
6361
+ while (!(step = iterator.next()).done) {
6362
+ if (!isNode(step.value)) {
6363
+ return false;
6364
+ }
6365
+ }
6366
+ } else {
6367
+ // Iterator will provide entry [k,v] tuples rather than values.
6368
+ while (!(step = iterator.next()).done) {
6369
+ var entry = step.value;
6370
+
6371
+ if (entry) {
6372
+ if (!isNode(entry[1])) {
6373
+ return false;
6374
+ }
6375
+ }
6376
+ }
6377
+ }
6378
+ } else {
6379
+ return false;
6380
+ }
6381
+
6382
+ return true;
6383
+
6384
+ default:
6385
+ return false;
6386
+ }
6387
+ }
6388
+
6389
+ function isSymbol(propType, propValue) {
6390
+ // Native Symbol.
6391
+ if (propType === 'symbol') {
6392
+ return true;
6393
+ } // falsy value can't be a Symbol
6394
+
6395
+
6396
+ if (!propValue) {
6397
+ return false;
6398
+ } // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
6399
+
6400
+
6401
+ if (propValue['@@toStringTag'] === 'Symbol') {
6402
+ return true;
6403
+ } // Fallback for non-spec compliant Symbols which are polyfilled.
6404
+
6405
+
6406
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
6407
+ return true;
6408
+ }
6409
+
6410
+ return false;
6411
+ } // Equivalent of `typeof` but with special handling for array and regexp.
6412
+
6413
+
6414
+ function getPropType(propValue) {
6415
+ var propType = typeof propValue;
6416
+
6417
+ if (Array.isArray(propValue)) {
6418
+ return 'array';
6419
+ }
6420
+
6421
+ if (propValue instanceof RegExp) {
6422
+ // Old webkits (at least until Android 4.0) return 'function' rather than
6423
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
6424
+ // passes PropTypes.object.
6425
+ return 'object';
6426
+ }
6427
+
6428
+ if (isSymbol(propType, propValue)) {
6429
+ return 'symbol';
6430
+ }
6431
+
6432
+ return propType;
6433
+ } // This handles more types than `getPropType`. Only used for error messages.
6434
+ // See `createPrimitiveTypeChecker`.
6435
+
6436
+
6437
+ function getPreciseType(propValue) {
6438
+ if (typeof propValue === 'undefined' || propValue === null) {
6439
+ return '' + propValue;
6440
+ }
6441
+
6442
+ var propType = getPropType(propValue);
6443
+
6444
+ if (propType === 'object') {
6445
+ if (propValue instanceof Date) {
6446
+ return 'date';
6447
+ } else if (propValue instanceof RegExp) {
6448
+ return 'regexp';
6449
+ }
6450
+ }
6451
+
6452
+ return propType;
6453
+ } // Returns a string that is postfixed to a warning about an invalid type.
6454
+ // For example, "undefined" or "of type array"
6455
+
6456
+
6457
+ function getPostfixForTypeWarning(value) {
6458
+ var type = getPreciseType(value);
6459
+
6460
+ switch (type) {
6461
+ case 'array':
6462
+ case 'object':
6463
+ return 'an ' + type;
6464
+
6465
+ case 'boolean':
6466
+ case 'date':
6467
+ case 'regexp':
6468
+ return 'a ' + type;
6469
+
6470
+ default:
6471
+ return type;
6472
+ }
6473
+ } // Returns class name of the object, if any.
6474
+
6475
+
6476
+ function getClassName(propValue) {
6477
+ if (!propValue.constructor || !propValue.constructor.name) {
6478
+ return ANONYMOUS;
6479
+ }
6480
+
6481
+ return propValue.constructor.name;
6482
+ }
6483
+
6484
+ ReactPropTypes.checkPropTypes = checkPropTypes;
6485
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
6486
+ ReactPropTypes.PropTypes = ReactPropTypes;
6487
+ return ReactPropTypes;
6488
+ };
6489
+
6490
+ return factoryWithTypeCheckers;
6491
+ }
6492
+ /**
6493
+ * Copyright (c) 2013-present, Facebook, Inc.
6494
+ *
6495
+ * This source code is licensed under the MIT license found in the
6496
+ * LICENSE file in the root directory of this source tree.
6497
+ */
6498
+
6499
+
6500
+ var factoryWithThrowingShims;
6501
+ var hasRequiredFactoryWithThrowingShims;
6502
+
6503
+ function requireFactoryWithThrowingShims() {
6504
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
6505
+ hasRequiredFactoryWithThrowingShims = 1;
6506
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
6507
+
6508
+ function emptyFunction() {}
6509
+
6510
+ function emptyFunctionWithReset() {}
6511
+
6512
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
6513
+
6514
+ factoryWithThrowingShims = function () {
6515
+ function shim(props, propName, componentName, location, propFullName, secret) {
6516
+ if (secret === ReactPropTypesSecret) {
6517
+ // It is still safe when called from React.
6518
+ return;
6519
+ }
6520
+
6521
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
6522
+ err.name = 'Invariant Violation';
6523
+ throw err;
6524
+ }
6525
+
6526
+ shim.isRequired = shim;
6527
+
6528
+ function getShim() {
6529
+ return shim;
6530
+ } // Important!
6531
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
6532
+
6533
+
6534
+ var ReactPropTypes = {
6535
+ array: shim,
6536
+ bigint: shim,
6537
+ bool: shim,
6538
+ func: shim,
6539
+ number: shim,
6540
+ object: shim,
6541
+ string: shim,
6542
+ symbol: shim,
6543
+ any: shim,
6544
+ arrayOf: getShim,
6545
+ element: shim,
6546
+ elementType: shim,
6547
+ instanceOf: getShim,
6548
+ node: shim,
6549
+ objectOf: getShim,
6550
+ oneOf: getShim,
6551
+ oneOfType: getShim,
6552
+ shape: getShim,
6553
+ exact: getShim,
6554
+ checkPropTypes: emptyFunctionWithReset,
6555
+ resetWarningCache: emptyFunction
6556
+ };
6557
+ ReactPropTypes.PropTypes = ReactPropTypes;
6558
+ return ReactPropTypes;
6559
+ };
6560
+
6561
+ return factoryWithThrowingShims;
6562
+ }
6563
+ /**
6564
+ * Copyright (c) 2013-present, Facebook, Inc.
6565
+ *
6566
+ * This source code is licensed under the MIT license found in the
6567
+ * LICENSE file in the root directory of this source tree.
6568
+ */
6569
+
6570
+
6571
+ if (process.env.NODE_ENV !== 'production') {
6572
+ var ReactIs = requireReactIs(); // By explicitly using `prop-types` you are opting into new development behavior.
6573
+ // http://fb.me/prop-types-in-prod
6574
+
6575
+ var throwOnDirectAccess = true;
6576
+ propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
6577
+ } else {
6578
+ // By explicitly using `prop-types` you are opting into new production behavior.
6579
+ // http://fb.me/prop-types-in-prod
6580
+ propTypes.exports = requireFactoryWithThrowingShims()();
6581
+ }
6582
+ /**
6583
+ * Copyright Zendesk, Inc.
6584
+ *
6585
+ * Use of this source code is governed under the Apache License, Version 2.0
6586
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6587
+ */
6588
+
6589
+
6590
+ ({
6591
+ children: propTypes.exports.func,
6592
+ render: propTypes.exports.func,
6593
+ relativeDocument: propTypes.exports.object,
6594
+ className: propTypes.exports.string,
6595
+ dataAttribute: propTypes.exports.string
6596
+ });
6597
+ /**
6598
+ * Copyright Zendesk, Inc.
6599
+ *
6600
+ * Use of this source code is governed under the Apache License, Version 2.0
6601
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6602
+ */
6603
+
6604
+ var DocumentPosition;
6605
+
6606
+ (function (DocumentPosition) {
6607
+ DocumentPosition[DocumentPosition["DISCONNECTED"] = 1] = "DISCONNECTED";
6608
+ DocumentPosition[DocumentPosition["PRECEDING"] = 2] = "PRECEDING";
6609
+ DocumentPosition[DocumentPosition["FOLLOWING"] = 4] = "FOLLOWING";
6610
+ DocumentPosition[DocumentPosition["CONTAINS"] = 8] = "CONTAINS";
6611
+ DocumentPosition[DocumentPosition["CONTAINED_BY"] = 16] = "CONTAINED_BY";
6612
+ DocumentPosition[DocumentPosition["IMPLEMENTATION_SPECIFIC"] = 32] = "IMPLEMENTATION_SPECIFIC";
6613
+ })(DocumentPosition || (DocumentPosition = {}));
6614
+
6615
+ var ContainerOrientation;
6616
+
6617
+ (function (ContainerOrientation) {
6618
+ ContainerOrientation["HORIZONTAL"] = "horizontal";
6619
+ ContainerOrientation["VERTICAL"] = "vertical";
6620
+ })(ContainerOrientation || (ContainerOrientation = {}));
6621
+ /**
6622
+ * Copyright Zendesk, Inc.
6623
+ *
6624
+ * Use of this source code is governed under the Apache License, Version 2.0
6625
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6626
+ */
6627
+
6628
+
6629
+ function ownKeys(object, enumerableOnly) {
6630
+ var keys = Object.keys(object);
6631
+
6632
+ if (Object.getOwnPropertySymbols) {
6633
+ var symbols = Object.getOwnPropertySymbols(object);
6634
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
6635
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
6636
+ })), keys.push.apply(keys, symbols);
6637
+ }
6638
+
6639
+ return keys;
6640
+ }
6641
+
6642
+ function _objectSpread2(target) {
6643
+ for (var i = 1; i < arguments.length; i++) {
6644
+ var source = null != arguments[i] ? arguments[i] : {};
6645
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
6646
+ _defineProperty(target, key, source[key]);
6647
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
6648
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6649
+ });
6650
+ }
6651
+
6652
+ return target;
6653
+ }
6654
+
6655
+ function _defineProperty(obj, key, value) {
6656
+ if (key in obj) {
6657
+ Object.defineProperty(obj, key, {
6658
+ value: value,
6659
+ enumerable: true,
6660
+ configurable: true,
6661
+ writable: true
6662
+ });
6663
+ } else {
6664
+ obj[key] = value;
6665
+ }
6666
+
6667
+ return obj;
6668
+ }
6669
+
6670
+ var PALETTE = {
6671
+ black: '#000',
6672
+ white: '#fff',
6673
+ product: {
6674
+ support: '#00a656',
6675
+ message: '#37b8af',
6676
+ explore: '#30aabc',
6677
+ gather: '#f6c8be',
6678
+ guide: '#ff6224',
6679
+ connect: '#ff6224',
6680
+ chat: '#f79a3e',
6681
+ talk: '#efc93d',
6682
+ sell: '#c38f00'
6683
+ },
6684
+ grey: {
6685
+ 100: '#f8f9f9',
6686
+ 200: '#e9ebed',
6687
+ 300: '#d8dcde',
6688
+ 400: '#c2c8cc',
6689
+ 500: '#87929d',
6690
+ 600: '#68737d',
6691
+ 700: '#49545c',
6692
+ 800: '#2f3941'
6693
+ },
6694
+ blue: {
6695
+ 100: '#edf7ff',
6696
+ 200: '#cee2f2',
6697
+ 300: '#adcce4',
6698
+ 400: '#5293c7',
6699
+ 500: '#337fbd',
6700
+ 600: '#1f73b7',
6701
+ 700: '#144a75',
6702
+ 800: '#0f3554'
6703
+ },
6704
+ red: {
6705
+ 100: '#fff0f1',
6706
+ 200: '#f5d5d8',
6707
+ 300: '#f5b5ba',
6708
+ 400: '#e35b66',
6709
+ 500: '#d93f4c',
6710
+ 600: '#cc3340',
6711
+ 700: '#8c232c',
6712
+ 800: '#681219'
6713
+ },
6714
+ yellow: {
6715
+ 100: '#fff7ed',
6716
+ 200: '#ffeedb',
6717
+ 300: '#fed6a8',
6718
+ 400: '#ffb057',
6719
+ 500: '#f79a3e',
6720
+ 600: '#ed8f1c',
6721
+ 700: '#ad5918',
6722
+ 800: '#703815'
6723
+ },
6724
+ green: {
6725
+ 100: '#edf8f4',
6726
+ 200: '#d1e8df',
6727
+ 300: '#aecfc2',
6728
+ 400: '#5eae91',
6729
+ 500: '#228f67',
6730
+ 600: '#038153',
6731
+ 700: '#186146',
6732
+ 800: '#0b3b29'
6733
+ },
6734
+ kale: {
6735
+ 100: '#f5fcfc',
6736
+ 200: '#daeded',
6737
+ 300: '#bdd9d7',
6738
+ 400: '#90bbbb',
6739
+ 500: '#467b7c',
6740
+ 600: '#17494d',
6741
+ 700: '#03363d',
6742
+ 800: '#012b30'
6743
+ },
6744
+ fuschia: {
6745
+ 400: '#d653c2',
6746
+ 600: '#a81897',
6747
+ M400: '#cf62a8',
6748
+ M600: '#a8458c'
6749
+ },
6750
+ pink: {
6751
+ 400: '#ec4d63',
6752
+ 600: '#d42054',
6753
+ M400: '#d57287',
6754
+ M600: '#b23a5d'
6755
+ },
6756
+ crimson: {
6757
+ 400: '#e34f32',
6758
+ 600: '#c72a1c',
6759
+ M400: '#cc6c5b',
6760
+ M600: '#b24a3c'
6761
+ },
6762
+ orange: {
6763
+ 400: '#de701d',
6764
+ 600: '#bf5000',
6765
+ M400: '#d4772c',
6766
+ M600: '#b35827'
6767
+ },
6768
+ lemon: {
6769
+ 400: '#ffd424',
6770
+ 600: '#ffbb10',
6771
+ M400: '#e7a500',
6772
+ M600: '#c38f00'
6773
+ },
6774
+ lime: {
6775
+ 400: '#43b324',
6776
+ 600: '#2e8200',
6777
+ M400: '#519e2d',
6778
+ M600: '#47782c'
6779
+ },
6780
+ mint: {
6781
+ 400: '#00a656',
6782
+ 600: '#058541',
6783
+ M400: '#299c66',
6784
+ M600: '#2e8057'
6785
+ },
6786
+ teal: {
6787
+ 400: '#02a191',
6788
+ 600: '#028079',
6789
+ M400: '#2d9e8f',
6790
+ M600: '#3c7873'
6791
+ },
6792
+ azure: {
6793
+ 400: '#3091ec',
6794
+ 600: '#1371d6',
6795
+ M400: '#5f8dcf',
6796
+ M600: '#3a70b2'
6797
+ },
6798
+ royal: {
6799
+ 400: '#5d7df5',
6800
+ 600: '#3353e2',
6801
+ M400: '#7986d8',
6802
+ M600: '#4b61c3'
6803
+ },
6804
+ purple: {
6805
+ 400: '#b552e2',
6806
+ 600: '#6a27b8',
6807
+ M400: '#b072cc',
6808
+ M600: '#9358b0'
6809
+ }
6810
+ };
6811
+ var BASE = 4;
6812
+ var borderRadii = {
6813
+ sm: "".concat(BASE / 2, "px"),
6814
+ md: "".concat(BASE, "px")
6815
+ };
6816
+ var borderStyles = {
6817
+ solid: 'solid'
6818
+ };
6819
+ var borderWidths = {
6820
+ sm: '1px',
6821
+ md: '3px'
6822
+ };
6823
+ var borders = {
6824
+ sm: "".concat(borderWidths.sm, " ").concat(borderStyles.solid),
6825
+ md: "".concat(borderWidths.md, " ").concat(borderStyles.solid)
6826
+ };
6827
+ var breakpoints = {
6828
+ xs: '0px',
6829
+ sm: "".concat(BASE * 144, "px"),
6830
+ md: "".concat(BASE * 192, "px"),
6831
+ lg: "".concat(BASE * 248, "px"),
6832
+ xl: "".concat(BASE * 300, "px")
6833
+ };
6834
+ var colors = {
6835
+ background: PALETTE.white,
6836
+ foreground: PALETTE.grey[800],
6837
+ primaryHue: 'blue',
6838
+ dangerHue: 'red',
6839
+ warningHue: 'yellow',
6840
+ successHue: 'green',
6841
+ neutralHue: 'grey',
6842
+ chromeHue: 'kale'
6843
+ };
6844
+ var fonts = {
6845
+ mono: ['SFMono-Regular', 'Consolas', '"Liberation Mono"', 'Menlo', 'Courier', 'monospace'].join(','),
6846
+ system: ['system-ui', '-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', '"Helvetica Neue"', 'Arial', 'sans-serif'].join(',')
6847
+ };
6848
+ var fontSizes = {
6849
+ xs: '10px',
6850
+ sm: '12px',
6851
+ md: '14px',
6852
+ lg: '18px',
6853
+ xl: '22px',
6854
+ xxl: '26px',
6855
+ xxxl: '36px'
6856
+ };
6857
+ var fontWeights = {
6858
+ thin: 100,
6859
+ extralight: 200,
6860
+ light: 300,
6861
+ regular: 400,
6862
+ medium: 500,
6863
+ semibold: 600,
6864
+ bold: 700,
6865
+ extrabold: 800,
6866
+ black: 900
6867
+ };
6868
+ var iconSizes = {
6869
+ sm: '12px',
6870
+ md: '16px',
6871
+ lg: '26px'
6872
+ };
6873
+ var lineHeights = {
6874
+ sm: "".concat(BASE * 4, "px"),
6875
+ md: "".concat(BASE * 5, "px"),
6876
+ lg: "".concat(BASE * 6, "px"),
6877
+ xl: "".concat(BASE * 7, "px"),
6878
+ xxl: "".concat(BASE * 8, "px"),
6879
+ xxxl: "".concat(BASE * 11, "px")
6880
+ };
6881
+
6882
+ var palette = _objectSpread2({}, PALETTE);
6883
+
6884
+ delete palette.product;
6885
+ var shadowWidths = {
6886
+ sm: '2px',
6887
+ md: '3px'
6888
+ };
6889
+ var shadows = {
6890
+ sm: function sm(color) {
6891
+ return "0 0 0 ".concat(shadowWidths.sm, " ").concat(color);
6892
+ },
6893
+ md: function md(color) {
6894
+ return "0 0 0 ".concat(shadowWidths.md, " ").concat(color);
6895
+ },
6896
+ lg: function lg(offsetY, blurRadius, color) {
6897
+ return "0 ".concat(offsetY, " ").concat(blurRadius, " 0 ").concat(color);
6898
+ }
6899
+ };
6900
+ var space = {
6901
+ base: BASE,
6902
+ xxs: "".concat(BASE, "px"),
6903
+ xs: "".concat(BASE * 2, "px"),
6904
+ sm: "".concat(BASE * 3, "px"),
6905
+ md: "".concat(BASE * 5, "px"),
6906
+ lg: "".concat(BASE * 8, "px"),
6907
+ xl: "".concat(BASE * 10, "px"),
6908
+ xxl: "".concat(BASE * 12, "px")
6909
+ };
6910
+ var DEFAULT_THEME = {
6911
+ borders: borders,
6912
+ borderRadii: borderRadii,
6913
+ borderStyles: borderStyles,
6914
+ borderWidths: borderWidths,
6915
+ breakpoints: breakpoints,
6916
+ colors: _objectSpread2({
6917
+ base: 'light'
6918
+ }, colors),
6919
+ components: {},
6920
+ fonts: fonts,
6921
+ fontSizes: fontSizes,
6922
+ fontWeights: fontWeights,
6923
+ iconSizes: iconSizes,
6924
+ lineHeights: lineHeights,
6925
+ palette: palette,
6926
+ rtl: false,
6927
+ shadowWidths: shadowWidths,
6928
+ shadows: shadows,
6929
+ space: space
6930
+ };
6931
+ var XXS = ".8rem";
6932
+ var XS = ".9rem";
6933
+ var SM = "1rem";
6934
+ var MD = "1.3rem";
6935
+ var LG = "1.7rem";
6936
+ var XL = "2.3rem";
6937
+ var XXL = "3.3rem"; // h1
6938
+
6939
+ var XXXL = "4rem";
6940
+ var XXXXL = "5rem";
6941
+ var XXXXXL = "6rem";
6942
+ var THIN = "100";
6943
+ var LIGHT = "300";
6944
+ var REGULAR = "400";
6945
+ var MEDIUM = "500";
6946
+ var BOLD = "700";
6947
+ var BLACK = "800";
6948
+ var H1 = "h1";
6949
+ var H2 = "h2";
6950
+ var H3 = "h3";
6951
+ var H4 = "h4";
6952
+ var H5 = "h5";
6953
+ var H6 = "h6";
6954
+ var P = "p";
6955
+ var SPAN = "span";
6956
+ var DIV = "div";
6957
+ var FONT_TAGS = {
6958
+ H1: H1,
6959
+ H2: H2,
6960
+ H3: H3,
6961
+ H4: H4,
6962
+ H5: H5,
6963
+ H6: H6,
6964
+ P: P,
6965
+ SPAN: SPAN,
6966
+ DIV: DIV
6967
+ };
6968
+ var FONT_SIZES = {
6969
+ XXS: XXS,
6970
+ XS: XS,
6971
+ SM: SM,
6972
+ MD: MD,
6973
+ LG: LG,
6974
+ XL: XL,
6975
+ XXL: XXL,
6976
+ XXXL: XXXL,
6977
+ XXXXL: XXXXL,
6978
+ XXXXXL: XXXXXL
6979
+ };
6980
+ var FONT_SIZES_EM = Object.freeze({
6981
+ XXS: XXS.replace("r", ""),
6982
+ XS: XS.replace("r", ""),
6983
+ SM: SM.replace("r", ""),
6984
+ MD: MD.replace("r", ""),
6985
+ LG: LG.replace("r", ""),
6986
+ XL: XL.replace("r", ""),
6987
+ XXL: XXL.replace("r", ""),
6988
+ XXXL: XXXL.replace("r", ""),
6989
+ XXXXL: XXXXL.replace("r", ""),
6990
+ XXXXXL: XXXXXL.replace("r", "")
6991
+ });
6992
+ var FONT_WEIGHTS = {
6993
+ THIN: THIN,
6994
+ LIGHT: LIGHT,
6995
+ REGULAR: REGULAR,
6996
+ MEDIUM: MEDIUM,
6997
+ BOLD: BOLD,
6998
+ BLACK: BLACK
6999
+ };
7000
+ var backgroundPrimaryWithText = styledComponents.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n"], ["\n background: ", ";\n color: ", ";\n"])), function (_a) {
7001
+ var theme = _a.theme;
7002
+ return theme.styles.colorPrimary;
7003
+ }, function (_a) {
7004
+ var theme = _a.theme;
7005
+ var _b = theme.styles,
7006
+ getTextColorForBackground = _b.getTextColorForBackground,
7007
+ colorPrimary = _b.colorPrimary;
7008
+ return getTextColorForBackground({
7009
+ color: colorPrimary,
7010
+ theme: theme
7011
+ });
7012
+ });
7013
+ var textColorForBackground = styledComponents.css(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (props) {
7014
+ return props.theme.styles.getTextColorForBackground(props);
7015
+ });
7016
+ var textColorPrimary = styledComponents.css(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
7017
+ var theme = _a.theme;
7018
+ return theme.styles.textColorPrimary;
7019
+ });
7020
+ var textWithColor = styledComponents.css(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
7021
+ var color = _a.color;
7022
+ return color === COLORS.YELLOW ? darker(color) : color;
7023
+ });
7024
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1; // @flow
7025
+
7026
+ /* Size key name represents all devices with a pixel width up to the number
7027
+ specified */
7028
+
7029
+ var REGULAR_SIZES = {
7030
+ phoneSize: 575,
7031
+ tabletSize: 767,
7032
+ largeTabletSize: 991,
7033
+ smallComputerSize: 1199
7034
+ };
7035
+ var WIDE_SIZES = {
7036
+ phoneSize: 560,
7037
+ tabletSize: 840,
7038
+ largeTabletSize: 991,
7039
+ smallComputerSize: 1350
7040
+ };
7041
+
7042
+ var deviseSizes = function (wideLayout) {
7043
+ if (wideLayout === void 0) {
7044
+ wideLayout = false;
7045
+ }
7046
+
7047
+ return wideLayout ? WIDE_SIZES : REGULAR_SIZES;
7048
+ };
7049
+
7050
+ var PHONE_SIZE = 560;
7051
+ var TABLET_SIZE = 840;
7052
+
7053
+ var forPhones = function (styles) {
7054
+ return "\n @media screen and (max-width: ".concat(unit(PHONE_SIZE), ") {\n ").concat(styles, "\n }\n");
7055
+ };
7056
+
7057
+ var forTablets = function (styles) {
7058
+ return "\n @media screen and (max-width: ".concat(unit(TABLET_SIZE), ") {\n ").concat(styles, "\n }\n");
7059
+ };
7060
+
7061
+ var mediaQueries = function (wideLayout) {
7062
+ var _a = deviseSizes(wideLayout),
7063
+ phoneSize = _a.phoneSize,
7064
+ tabletSize = _a.tabletSize,
7065
+ largeTabletSize = _a.largeTabletSize,
7066
+ smallComputerSize = _a.smallComputerSize;
7067
+
7068
+ return {
7069
+ forPhones: function (styles) {
7070
+ return styledComponents.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n @media screen and (max-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (max-width: ", ") {\n ", "\n }\n "])), unit(phoneSize), styles);
7071
+ },
7072
+ forTablets: function (styles) {
7073
+ return styledComponents.css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n @media screen and (max-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (max-width: ", ") {\n ", "\n }\n "])), unit(tabletSize), styles);
7074
+ },
7075
+ forTabletsAndUp: function (styles) {
7076
+ return styledComponents.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(phoneSize + 1), styles);
7077
+ },
7078
+ forLargeTabletsAndUp: function (styles) {
7079
+ return styledComponents.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n @media (min-width: ", ") {\n ", "\n }\n "], ["\n @media (min-width: ", ") {\n ", "\n }\n "])), unit(tabletSize + 1), styles);
7080
+ },
7081
+ forSmallComputersAndUp: function (styles) {
7082
+ return styledComponents.css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(largeTabletSize + 1), styles);
7083
+ },
7084
+ forLargeComputers: function (styles) {
7085
+ return styledComponents.css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n @media screen and (min-width: ", ") {\n ", "\n }\n "], ["\n @media screen and (min-width: ", ") {\n ", "\n }\n "])), unit(smallComputerSize + 1), styles);
7086
+ }
7087
+ };
7088
+ };
7089
+
7090
+ var rem = function (px) {
7091
+ return "".concat(px / remSize(), "rem");
7092
+ };
7093
+
7094
+ var unit = function (px) {
7095
+ return "".concat(px, "px");
7096
+ };
7097
+
7098
+ var remSize = function (e) {
7099
+ if (e === void 0) {
7100
+ e = document.documentElement;
7101
+ }
7102
+
7103
+ return Number(window.getComputedStyle(e, null).fontSize.replace(/[A-z]/g, ""));
7104
+ };
7105
+
7106
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; // @flow
7107
+
7108
+ function newIdGenerator() {
7109
+ var id;
7110
+ return __generator(this, function (_a) {
7111
+ switch (_a.label) {
7112
+ case 0:
7113
+ id = 0;
7114
+ _a.label = 1;
7115
+
7116
+ case 1:
7117
+ return [4
7118
+ /*yield*/
7119
+ , id++];
7120
+
7121
+ case 2:
7122
+ _a.sent();
7123
+
7124
+ return [3
7125
+ /*break*/
7126
+ , 1];
7127
+
7128
+ case 3:
7129
+ return [2
7130
+ /*return*/
7131
+ ];
7132
+ }
7133
+ });
7134
+ }
7135
+
7136
+ var nextId = function (generator) {
7137
+ return generator.next().value;
7138
+ };
7139
+
7140
+ var LEVEL_STYLES = {
7141
+ info: "background: #499cc8; color: white;",
7142
+ error: "background: #c14a4f; color: white;",
7143
+ warn: "background: #e0a270; color: black;"
7144
+ };
7145
+
7146
+ var Logger =
7147
+ /** @class */
7148
+ function () {
7149
+ function Logger(moduleName) {
7150
+ var _this = this;
7151
+
7152
+ this.log = function (level) {
7153
+ return function () {
7154
+ var args = [];
7155
+
7156
+ for (var _i = 0; _i < arguments.length; _i++) {
7157
+ args[_i] = arguments[_i];
7158
+ }
7159
+
7160
+ if (typeof window === "undefined" || !window.DEBUG_MODULES.has(_this.moduleName)) return;
7161
+ console[level].apply(console, __spreadArray(["%c".concat(_this.moduleName), "".concat(LEVEL_STYLES[level], " padding: 2px 6px;")], __read(args), false));
7162
+ };
7163
+ };
7164
+
7165
+ this.writeInfo = this.log("info");
7166
+ this.writeError = this.log("error");
7167
+ this.writeWarning = this.log("warn");
7168
+ this.moduleName = moduleName;
7169
+ }
7170
+
7171
+ return Logger;
7172
+ }();
7173
+
7174
+ if (typeof window !== "undefined") {
7175
+ window.DEBUG_MODULES = new Set();
7176
+ }
7177
+
7178
+ var DEVICES = {
7179
+ phone: 0,
7180
+ tablet: 1,
7181
+ largeTablet: 2,
7182
+ smallComputer: 3,
7183
+ largeComputer: 4
7184
+ };
5471
7185
 
5472
7186
  var deviceQueries = function (isSkinnyLayout) {
5473
7187
  var _a;
@@ -5585,13 +7299,77 @@ function () {
5585
7299
  }();
5586
7300
 
5587
7301
  var deviceSizeWatcher = new DeviceSizeWatcher();
7302
+ const GlobalStyle = styledComponents.createGlobalStyle`
7303
+ @import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Karla:wght@200;400;500;600;700&display=swap');
7304
+
7305
+ html {
7306
+ font-family: Karla,
7307
+ -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
7308
+ "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
7309
+ sans-serif;
7310
+ font-size: 14px;
7311
+
7312
+ -ms-text-size-adjust: 100%;
7313
+ -webkit-text-size-adjust: 100%;
7314
+ -webkit-box-sizing: border-box;
7315
+ -moz-box-sizing: border-box;
7316
+ box-sizing: border-box;
7317
+ //scroll-behavior: smooth;
7318
+
7319
+ *::selection {
7320
+ background: ${({
7321
+ theme
7322
+ }) => theme.styles.colorPrimary};
7323
+ color: ${({
7324
+ theme
7325
+ }) => theme.styles.getTextColorForBackground({
7326
+ color: theme.styles.colorPrimary,
7327
+ theme
7328
+ })};
7329
+ }
7330
+ }
7331
+
7332
+ body {
7333
+ margin: 0;
7334
+ -webkit-font-smoothing: antialiased;
7335
+ -moz-osx-font-smoothing: grayscale;
7336
+ color: ${({
7337
+ theme
7338
+ }) => theme.styles.textColorPrimary};
7339
+ }
7340
+
7341
+ *, *:before, *:after {
7342
+ font-family: inherit;
7343
+ -webkit-box-sizing: inherit;
7344
+ -moz-box-sizing: inherit;
7345
+ box-sizing: inherit;
7346
+ outline: none;
7347
+ }
7348
+ `;
7349
+
7350
+ var ThemeProvider = function (_a) {
7351
+ var children = _a.children,
7352
+ theme = _a.theme;
7353
+ return jsxRuntime.jsxs(styledComponents.ThemeProvider, __assign({
7354
+ theme: __assign(__assign(__assign({}, DEFAULT_THEME), theme), {
7355
+ zendeskThemeKeys: Object.keys(DEFAULT_THEME)
7356
+ })
7357
+ }, {
7358
+ children: [jsxRuntime.jsx(GlobalStyle, {}), children]
7359
+ }));
7360
+ };
7361
+
5588
7362
  const THEMES = {
5589
7363
  light,
5590
7364
  light2,
5591
- dark
5592
- }; // export * from "styles/theme/ThemeProvider"
7365
+ dark,
7366
+ ZENDESK_DEFAULT_THEME__: DEFAULT_THEME,
7367
+ __ZENDESK_DEFAULT_THEME__: DEFAULT_THEME,
7368
+ ZENDESK_DEFAULT_THEME: DEFAULT_THEME,
7369
+ __my_other_crap: 324,
7370
+ _mymycrap: 333
7371
+ }; // export const ThemeProvider = Provider
5593
7372
 
5594
- const ThemeProvider = styledComponents.ThemeProvider;
5595
7373
  exports.COLORS = COLORS;
5596
7374
  exports.FONT_SIZES = FONT_SIZES;
5597
7375
  exports.FONT_SIZES_EM = FONT_SIZES_EM;