cmspageblocks 1.0.34 → 1.0.38

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/build/index.js CHANGED
@@ -51,7 +51,7 @@ function getAugmentedNamespace(n) {
51
51
  return a;
52
52
  }
53
53
 
54
- var propTypes$2 = {exports: {}};
54
+ var propTypes$1 = {exports: {}};
55
55
 
56
56
  var reactIs$1 = {exports: {}};
57
57
 
@@ -355,11 +355,11 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
355
355
  * LICENSE file in the root directory of this source tree.
356
356
  */
357
357
 
358
- var ReactPropTypesSecret$b = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
358
+ var ReactPropTypesSecret$7 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
359
359
 
360
- var ReactPropTypesSecret_1$2 = ReactPropTypesSecret$b;
360
+ var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
361
361
 
362
- var has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
362
+ var has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
363
363
 
364
364
  /**
365
365
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -368,14 +368,14 @@ var has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
368
368
  * LICENSE file in the root directory of this source tree.
369
369
  */
370
370
 
371
- var printWarning$5 = function() {};
371
+ var printWarning$3 = function() {};
372
372
 
373
373
  if (process.env.NODE_ENV !== 'production') {
374
- var ReactPropTypesSecret$a = ReactPropTypesSecret_1$2;
375
- var loggedTypeFailures$2 = {};
376
- var has$5 = has$6;
374
+ var ReactPropTypesSecret$6 = ReactPropTypesSecret_1$1;
375
+ var loggedTypeFailures$1 = {};
376
+ var has$3 = has$4;
377
377
 
378
- printWarning$5 = function(text) {
378
+ printWarning$3 = function(text) {
379
379
  var message = 'Warning: ' + text;
380
380
  if (typeof console !== 'undefined') {
381
381
  console.error(message);
@@ -400,10 +400,10 @@ if (process.env.NODE_ENV !== 'production') {
400
400
  * @param {?Function} getStack Returns the component stack.
401
401
  * @private
402
402
  */
403
- function checkPropTypes$5(typeSpecs, values, location, componentName, getStack) {
403
+ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack) {
404
404
  if (process.env.NODE_ENV !== 'production') {
405
405
  for (var typeSpecName in typeSpecs) {
406
- if (has$5(typeSpecs, typeSpecName)) {
406
+ if (has$3(typeSpecs, typeSpecName)) {
407
407
  var error;
408
408
  // Prop type validation may throw. In case they do, we don't want to
409
409
  // fail the render phase where it didn't fail before. So we log it.
@@ -420,12 +420,12 @@ function checkPropTypes$5(typeSpecs, values, location, componentName, getStack)
420
420
  err.name = 'Invariant Violation';
421
421
  throw err;
422
422
  }
423
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$a);
423
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$6);
424
424
  } catch (ex) {
425
425
  error = ex;
426
426
  }
427
427
  if (error && !(error instanceof Error)) {
428
- printWarning$5(
428
+ printWarning$3(
429
429
  (componentName || 'React class') + ': type specification of ' +
430
430
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
431
431
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -434,14 +434,14 @@ function checkPropTypes$5(typeSpecs, values, location, componentName, getStack)
434
434
  'shape all require an argument).'
435
435
  );
436
436
  }
437
- if (error instanceof Error && !(error.message in loggedTypeFailures$2)) {
437
+ if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
438
438
  // Only monitor this failure once because there tends to be a lot of the
439
439
  // same error.
440
- loggedTypeFailures$2[error.message] = true;
440
+ loggedTypeFailures$1[error.message] = true;
441
441
 
442
442
  var stack = getStack ? getStack() : '';
443
443
 
444
- printWarning$5(
444
+ printWarning$3(
445
445
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
446
446
  );
447
447
  }
@@ -455,13 +455,13 @@ function checkPropTypes$5(typeSpecs, values, location, componentName, getStack)
455
455
  *
456
456
  * @private
457
457
  */
458
- checkPropTypes$5.resetWarningCache = function() {
458
+ checkPropTypes$3.resetWarningCache = function() {
459
459
  if (process.env.NODE_ENV !== 'production') {
460
- loggedTypeFailures$2 = {};
460
+ loggedTypeFailures$1 = {};
461
461
  }
462
462
  };
463
463
 
464
- var checkPropTypes_1$2 = checkPropTypes$5;
464
+ var checkPropTypes_1$1 = checkPropTypes$3;
465
465
 
466
466
  /**
467
467
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -470,17 +470,17 @@ var checkPropTypes_1$2 = checkPropTypes$5;
470
470
  * LICENSE file in the root directory of this source tree.
471
471
  */
472
472
 
473
- var ReactIs$5 = reactIs$1.exports;
474
- var assign$2 = objectAssign;
473
+ var ReactIs$3 = reactIs$1.exports;
474
+ var assign$1 = objectAssign;
475
475
 
476
- var ReactPropTypesSecret$9 = ReactPropTypesSecret_1$2;
477
- var has$4 = has$6;
478
- var checkPropTypes$4 = checkPropTypes_1$2;
476
+ var ReactPropTypesSecret$5 = ReactPropTypesSecret_1$1;
477
+ var has$2 = has$4;
478
+ var checkPropTypes$2 = checkPropTypes_1$1;
479
479
 
480
- var printWarning$4 = function() {};
480
+ var printWarning$2 = function() {};
481
481
 
482
482
  if (process.env.NODE_ENV !== 'production') {
483
- printWarning$4 = function(text) {
483
+ printWarning$2 = function(text) {
484
484
  var message = 'Warning: ' + text;
485
485
  if (typeof console !== 'undefined') {
486
486
  console.error(message);
@@ -494,11 +494,11 @@ if (process.env.NODE_ENV !== 'production') {
494
494
  };
495
495
  }
496
496
 
497
- function emptyFunctionThatReturnsNull$2() {
497
+ function emptyFunctionThatReturnsNull$1() {
498
498
  return null;
499
499
  }
500
500
 
501
- var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
501
+ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
502
502
  /* global Symbol */
503
503
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
504
504
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -640,7 +640,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
640
640
  componentName = componentName || ANONYMOUS;
641
641
  propFullName = propFullName || propName;
642
642
 
643
- if (secret !== ReactPropTypesSecret$9) {
643
+ if (secret !== ReactPropTypesSecret$5) {
644
644
  if (throwOnDirectAccess) {
645
645
  // New behavior only for users of `prop-types` package
646
646
  var err = new Error(
@@ -658,7 +658,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
658
658
  // Avoid spamming the console because they are often not actionable except for lib authors
659
659
  manualPropTypeWarningCount < 3
660
660
  ) {
661
- printWarning$4(
661
+ printWarning$2(
662
662
  'You are manually calling a React.PropTypes validation ' +
663
663
  'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
664
664
  'and will throw in the standalone `prop-types` package. ' +
@@ -710,7 +710,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
710
710
  }
711
711
 
712
712
  function createAnyTypeChecker() {
713
- return createChainableTypeChecker(emptyFunctionThatReturnsNull$2);
713
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
714
714
  }
715
715
 
716
716
  function createArrayOfTypeChecker(typeChecker) {
@@ -724,7 +724,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
724
724
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
725
725
  }
726
726
  for (var i = 0; i < propValue.length; i++) {
727
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$9);
727
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$5);
728
728
  if (error instanceof Error) {
729
729
  return error;
730
730
  }
@@ -749,7 +749,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
749
749
  function createElementTypeTypeChecker() {
750
750
  function validate(props, propName, componentName, location, propFullName) {
751
751
  var propValue = props[propName];
752
- if (!ReactIs$5.isValidElementType(propValue)) {
752
+ if (!ReactIs$3.isValidElementType(propValue)) {
753
753
  var propType = getPropType(propValue);
754
754
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
755
755
  }
@@ -774,15 +774,15 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
774
774
  if (!Array.isArray(expectedValues)) {
775
775
  if (process.env.NODE_ENV !== 'production') {
776
776
  if (arguments.length > 1) {
777
- printWarning$4(
777
+ printWarning$2(
778
778
  'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
779
779
  'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
780
780
  );
781
781
  } else {
782
- printWarning$4('Invalid argument supplied to oneOf, expected an array.');
782
+ printWarning$2('Invalid argument supplied to oneOf, expected an array.');
783
783
  }
784
784
  }
785
- return emptyFunctionThatReturnsNull$2;
785
+ return emptyFunctionThatReturnsNull$1;
786
786
  }
787
787
 
788
788
  function validate(props, propName, componentName, location, propFullName) {
@@ -816,8 +816,8 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
816
816
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
817
817
  }
818
818
  for (var key in propValue) {
819
- if (has$4(propValue, key)) {
820
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
819
+ if (has$2(propValue, key)) {
820
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
821
821
  if (error instanceof Error) {
822
822
  return error;
823
823
  }
@@ -830,18 +830,18 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
830
830
 
831
831
  function createUnionTypeChecker(arrayOfTypeCheckers) {
832
832
  if (!Array.isArray(arrayOfTypeCheckers)) {
833
- process.env.NODE_ENV !== 'production' ? printWarning$4('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
834
- return emptyFunctionThatReturnsNull$2;
833
+ process.env.NODE_ENV !== 'production' ? printWarning$2('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
834
+ return emptyFunctionThatReturnsNull$1;
835
835
  }
836
836
 
837
837
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
838
838
  var checker = arrayOfTypeCheckers[i];
839
839
  if (typeof checker !== 'function') {
840
- printWarning$4(
840
+ printWarning$2(
841
841
  'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
842
842
  'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
843
843
  );
844
- return emptyFunctionThatReturnsNull$2;
844
+ return emptyFunctionThatReturnsNull$1;
845
845
  }
846
846
  }
847
847
 
@@ -849,11 +849,11 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
849
849
  var expectedTypes = [];
850
850
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
851
851
  var checker = arrayOfTypeCheckers[i];
852
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$9);
852
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5);
853
853
  if (checkerResult == null) {
854
854
  return null;
855
855
  }
856
- if (checkerResult.data && has$4(checkerResult.data, 'expectedType')) {
856
+ if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
857
857
  expectedTypes.push(checkerResult.data.expectedType);
858
858
  }
859
859
  }
@@ -892,7 +892,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
892
892
  if (typeof checker !== 'function') {
893
893
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
894
894
  }
895
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
895
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
896
896
  if (error) {
897
897
  return error;
898
898
  }
@@ -910,10 +910,10 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
910
910
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
911
911
  }
912
912
  // We need to check all keys in case some are required but missing from props.
913
- var allKeys = assign$2({}, props[propName], shapeTypes);
913
+ var allKeys = assign$1({}, props[propName], shapeTypes);
914
914
  for (var key in allKeys) {
915
915
  var checker = shapeTypes[key];
916
- if (has$4(shapeTypes, key) && typeof checker !== 'function') {
916
+ if (has$2(shapeTypes, key) && typeof checker !== 'function') {
917
917
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
918
918
  }
919
919
  if (!checker) {
@@ -923,7 +923,7 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
923
923
  '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
924
924
  );
925
925
  }
926
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
926
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
927
927
  if (error) {
928
928
  return error;
929
929
  }
@@ -1065,8 +1065,8 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
1065
1065
  return propValue.constructor.name;
1066
1066
  }
1067
1067
 
1068
- ReactPropTypes.checkPropTypes = checkPropTypes$4;
1069
- ReactPropTypes.resetWarningCache = checkPropTypes$4.resetWarningCache;
1068
+ ReactPropTypes.checkPropTypes = checkPropTypes$2;
1069
+ ReactPropTypes.resetWarningCache = checkPropTypes$2.resetWarningCache;
1070
1070
  ReactPropTypes.PropTypes = ReactPropTypes;
1071
1071
 
1072
1072
  return ReactPropTypes;
@@ -1079,15 +1079,15 @@ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
1079
1079
  * LICENSE file in the root directory of this source tree.
1080
1080
  */
1081
1081
 
1082
- var ReactPropTypesSecret$8 = ReactPropTypesSecret_1$2;
1082
+ var ReactPropTypesSecret$4 = ReactPropTypesSecret_1$1;
1083
1083
 
1084
- function emptyFunction$2() {}
1085
- function emptyFunctionWithReset$2() {}
1086
- emptyFunctionWithReset$2.resetWarningCache = emptyFunction$2;
1084
+ function emptyFunction$1() {}
1085
+ function emptyFunctionWithReset$1() {}
1086
+ emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
1087
1087
 
1088
- var factoryWithThrowingShims$2 = function() {
1088
+ var factoryWithThrowingShims$1 = function() {
1089
1089
  function shim(props, propName, componentName, location, propFullName, secret) {
1090
- if (secret === ReactPropTypesSecret$8) {
1090
+ if (secret === ReactPropTypesSecret$4) {
1091
1091
  // It is still safe when called from React.
1092
1092
  return;
1093
1093
  }
@@ -1125,8 +1125,8 @@ var factoryWithThrowingShims$2 = function() {
1125
1125
  shape: getShim,
1126
1126
  exact: getShim,
1127
1127
 
1128
- checkPropTypes: emptyFunctionWithReset$2,
1129
- resetWarningCache: emptyFunction$2
1128
+ checkPropTypes: emptyFunctionWithReset$1,
1129
+ resetWarningCache: emptyFunction$1
1130
1130
  };
1131
1131
 
1132
1132
  ReactPropTypes.PropTypes = ReactPropTypes;
@@ -1142,19 +1142,19 @@ var factoryWithThrowingShims$2 = function() {
1142
1142
  */
1143
1143
 
1144
1144
  if (process.env.NODE_ENV !== 'production') {
1145
- var ReactIs$4 = reactIs$1.exports;
1145
+ var ReactIs$2 = reactIs$1.exports;
1146
1146
 
1147
1147
  // By explicitly using `prop-types` you are opting into new development behavior.
1148
1148
  // http://fb.me/prop-types-in-prod
1149
- var throwOnDirectAccess$2 = true;
1150
- propTypes$2.exports = factoryWithTypeCheckers$2(ReactIs$4.isElement, throwOnDirectAccess$2);
1149
+ var throwOnDirectAccess$1 = true;
1150
+ propTypes$1.exports = factoryWithTypeCheckers$1(ReactIs$2.isElement, throwOnDirectAccess$1);
1151
1151
  } else {
1152
1152
  // By explicitly using `prop-types` you are opting into new production behavior.
1153
1153
  // http://fb.me/prop-types-in-prod
1154
- propTypes$2.exports = factoryWithThrowingShims$2();
1154
+ propTypes$1.exports = factoryWithThrowingShims$1();
1155
1155
  }
1156
1156
 
1157
- var PropTypes$1 = propTypes$2.exports;
1157
+ var PropTypes = propTypes$1.exports;
1158
1158
 
1159
1159
  var classnames = {exports: {}};
1160
1160
 
@@ -1228,65 +1228,6 @@ function _taggedTemplateLiteral(strings, raw) {
1228
1228
  }));
1229
1229
  }
1230
1230
 
1231
- function _slicedToArray$1(arr, i) {
1232
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest$1();
1233
- }
1234
-
1235
- function _arrayWithHoles$1(arr) {
1236
- if (Array.isArray(arr)) return arr;
1237
- }
1238
-
1239
- function _iterableToArrayLimit$1(arr, i) {
1240
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1241
-
1242
- if (_i == null) return;
1243
- var _arr = [];
1244
- var _n = true;
1245
- var _d = false;
1246
-
1247
- var _s, _e;
1248
-
1249
- try {
1250
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1251
- _arr.push(_s.value);
1252
-
1253
- if (i && _arr.length === i) break;
1254
- }
1255
- } catch (err) {
1256
- _d = true;
1257
- _e = err;
1258
- } finally {
1259
- try {
1260
- if (!_n && _i["return"] != null) _i["return"]();
1261
- } finally {
1262
- if (_d) throw _e;
1263
- }
1264
- }
1265
-
1266
- return _arr;
1267
- }
1268
-
1269
- function _unsupportedIterableToArray(o, minLen) {
1270
- if (!o) return;
1271
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1272
- var n = Object.prototype.toString.call(o).slice(8, -1);
1273
- if (n === "Object" && o.constructor) n = o.constructor.name;
1274
- if (n === "Map" || n === "Set") return Array.from(o);
1275
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1276
- }
1277
-
1278
- function _arrayLikeToArray(arr, len) {
1279
- if (len == null || len > arr.length) len = arr.length;
1280
-
1281
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1282
-
1283
- return arr2;
1284
- }
1285
-
1286
- function _nonIterableRest$1() {
1287
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1288
- }
1289
-
1290
1231
  var _templateObject$8, _templateObject2$3;
1291
1232
  var BREAKPOINTS = {
1292
1233
  DESKTOP: 992,
@@ -1309,7 +1250,7 @@ var _templateObject$7, _templateObject2$2, _templateObject3$2, _templateObject4$
1309
1250
  var Result = styled__default["default"].article(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n padding: 16px;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n min-width: 300px;\n\n flex: 0 1;\n p {\n padding: 0;\n }\n ", "\n .inner {\n background: #fff;\n height: 100%;\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.25);\n &:hover {\n box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);\n }\n color: rgba(26, 25, 25, 1);\n transition: all 0.5s ease;\n border: 1px solid ", ";\n display: flex;\n flex-direction: column;\n position: relative;\n overflow: hidden;\n ", "\n &-image {\n position: relative;\n height: 200px;\n width: 300px;\n overflow: hidden;\n box-shadow: 1px 0 4px rgba(0, 0, 0, 0.25);\n img {\n position: absolute;\n top: 50%;\n width: 100%;\n min-height: 100%;\n transform: translate(0, -50%);\n }\n }\n &-content {\n padding: 16px;\n display: flex;\n flex: 1;\n flex-direction: column;\n justify-content: space-between;\n max-width: 75ch;\n h4 {\n font-weight: bold;\n padding: 4px 0 8px;\n line-height: 2.2rem;\n min-height: 4.2rem;\n span {\n color: rgba(0, 0, 0, 0.5);\n font-size: 90%;\n }\n }\n &--bottom {\n display: flex;\n padding: 8px 0;\n justify-content: space-between;\n align-items: center;\n }\n }\n }\n"])), MEDIA.PHONE(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n min-width: auto;\n width: 100%;\n flex: 0;\n "]))), function (props) {
1310
1251
  return props.theme.primaryColor;
1311
1252
  }, MEDIA.PHONE(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n flex-direction: column;\n width: 100%;\n overflow: hidden;\n "]))));
1312
- var AssortedHousesContainer = styled__default["default"].section(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\nbackground: #f6f6f6;\ndisplay: flex;\nflex-wrap: wrap;\nmargin: 50px 0;\npadding: 16px 10%;\n", ";\n"])), MEDIA.PHONE(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n flex-direction: column;\n "]))));
1253
+ var AssortedHousesContainer = styled__default["default"].section(_templateObject4$1 || (_templateObject4$1 = _taggedTemplateLiteral(["\n background: #f6f6f6;\n display: flex;\n flex-wrap: wrap;\n margin: 50px 0;\n padding: 16px 10%;\n max-width: 1440px;\n margin: 0 auto;\n", ";\n"])), MEDIA.PHONE(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n flex-direction: column;\n "]))));
1313
1254
 
1314
1255
  var _templateObject$6;
1315
1256
  var Svg$2 = styled__default["default"].svg(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n fill-rule: evenodd;\n clip-rule: evenodd;\n stroke-linejoin: round;\n stroke-miterlimit: 1.41421;\n"])));
@@ -1399,6 +1340,30 @@ var Persons = function Persons(_ref) {
1399
1340
  })));
1400
1341
  };
1401
1342
 
1343
+ var _templateObject$3;
1344
+ var ButtonStyle = styled__default["default"].a(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n display: block;\n padding: 12px 24px !important;\n border-radius: 12px;\n color: #fff !important;\n color: ", ";\n border: 2px solid\n ", ";\n font-weight: bold;\n text-decoration: none;\n box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.25);\n transition: all 0.5s ease;\n width: fit-content;\n position: relative;\n overflow: hidden;\n z-index: 1;\n cursor: pointer;\n &:before {\n background-color: ", " !important;;\n width: 100% !important;\n position: absolute;\n right: 0;\n top: 0;\n content: '';\n height: 100% !important;\n z-index: -1;\n transition: all 0.5s ease;\n }\n &:hover {\n border: 2px solid\n ", ";\n box-shadow: -1px 1px 4px rgba(0, 0, 0, 0.25);\n color: ", " !important;\n &:before {\n width: 1px !important;\n right: -1px;\n }\n }\n"])), function (props) {
1345
+ return props.purple ? '#642C8F' : '#000';
1346
+ }, function (props) {
1347
+ return props.theme.primaryColor ? props.theme.primaryColor : '#642C8F';
1348
+ }, function (props) {
1349
+ return props.theme.primaryColor ? props.theme.primaryColor : props.theme.primaryColor;
1350
+ }, function (props) {
1351
+ return props.purple ? '#642C8F' : props.theme.primaryColor;
1352
+ }, function (props) {
1353
+ return props.theme.primaryColor;
1354
+ });
1355
+ var StyledButton = function StyledButton(_ref) {
1356
+ var to = _ref.to,
1357
+ children = _ref.children,
1358
+ className = _ref.className,
1359
+ title = _ref.title;
1360
+ return /*#__PURE__*/React__default["default"].createElement(ButtonStyle, {
1361
+ href: to,
1362
+ title: title,
1363
+ className: className
1364
+ }, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children));
1365
+ };
1366
+
1402
1367
  var HousePreview = function HousePreview(_ref) {
1403
1368
  var house = _ref.house,
1404
1369
  locale = _ref.locale;
@@ -1424,10 +1389,13 @@ var HousePreview = function HousePreview(_ref) {
1424
1389
  }
1425
1390
  } // const
1426
1391
 
1392
+
1393
+ var house_url;
1394
+
1427
1395
  if (locale === 'nl') {
1428
- '/' + data.slug + '-' + data.house_code;
1396
+ house_url = '/' + data.slug + '-' + data.house_code;
1429
1397
  } else {
1430
- '/' + locale + '/' + data.slug + '-' + data.house_code;
1398
+ house_url = '/' + locale + '/' + data.slug + '-' + data.house_code;
1431
1399
  }
1432
1400
 
1433
1401
  return /*#__PURE__*/React__default["default"].createElement(Result, null, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1457,7 +1425,10 @@ var HousePreview = function HousePreview(_ref) {
1457
1425
  }), data.bedrooms), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Bathroom, {
1458
1426
  width: "32px",
1459
1427
  height: "16px"
1460
- }), data.bathrooms)))));
1428
+ }), data.bathrooms)), /*#__PURE__*/React__default["default"].createElement(StyledButton, {
1429
+ to: house_url,
1430
+ title: data.name
1431
+ }, data.name))));
1461
1432
  };
1462
1433
 
1463
1434
  function AssortedHouses(_ref) {
@@ -1473,9 +1444,6 @@ function AssortedHouses(_ref) {
1473
1444
  var house = houses.find(function (e) {
1474
1445
  return e.node.id === item.toString();
1475
1446
  });
1476
- console.log({
1477
- house: house
1478
- });
1479
1447
 
1480
1448
  if (house == null) {
1481
1449
  return /*#__PURE__*/React__default["default"].createElement("div", null);
@@ -1489,30 +1457,6 @@ function AssortedHouses(_ref) {
1489
1457
  }));
1490
1458
  }
1491
1459
 
1492
- var _templateObject$3;
1493
- var ButtonStyle = styled__default["default"].a(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n display: block;\n padding: 12px 24px !important;\n border-radius: 36px;\n color: #fff !important;\n color: ", ";\n border: 2px solid\n ", ";\n font-weight: bold;\n text-decoration: none;\n box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.25);\n transition: all 0.5s ease;\n width: fit-content;\n position: relative;\n overflow: hidden;\n z-index: 1;\n cursor: pointer;\n &:before {\n background-color: ", " !important;;\n width: 100% !important;\n position: absolute;\n right: 0;\n top: 0;\n content: '';\n height: 100% !important;\n z-index: -1;\n transition: all 0.5s ease;\n }\n &:hover {\n border: 2px solid\n ", ";\n box-shadow: -1px 1px 4px rgba(0, 0, 0, 0.25);\n color: ", " !important;\n &:before {\n width: 1px !important;\n right: -1px;\n }\n }\n"])), function (props) {
1494
- return props.purple ? '#642C8F' : '#000';
1495
- }, function (props) {
1496
- return props.theme.primaryColor ? props.theme.primaryColor : '#642C8F';
1497
- }, function (props) {
1498
- return props.theme.primaryColor ? props.theme.primaryColor : props.theme.primaryColor;
1499
- }, function (props) {
1500
- return props.purple ? '#642C8F' : props.theme.primaryColor;
1501
- }, function (props) {
1502
- return props.theme.primaryColor;
1503
- });
1504
- var StyledButton = function StyledButton(_ref) {
1505
- var to = _ref.to,
1506
- children = _ref.children,
1507
- className = _ref.className,
1508
- title = _ref.title;
1509
- return /*#__PURE__*/React__default["default"].createElement(ButtonStyle, {
1510
- href: to,
1511
- title: title,
1512
- className: className
1513
- }, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children));
1514
- };
1515
-
1516
1460
  function Button(_ref) {
1517
1461
  var options = _ref.options;
1518
1462
  return /*#__PURE__*/React__default["default"].createElement(StyledButton, {
@@ -4386,8 +4330,8 @@ var TYPE_STATICS = {};
4386
4330
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
4387
4331
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
4388
4332
 
4389
- function _extends$3() {
4390
- _extends$3 = Object.assign || function (target) {
4333
+ function _extends$2() {
4334
+ _extends$2 = Object.assign || function (target) {
4391
4335
  for (var i = 1; i < arguments.length; i++) {
4392
4336
  var source = arguments[i];
4393
4337
 
@@ -4401,10 +4345,10 @@ function _extends$3() {
4401
4345
  return target;
4402
4346
  };
4403
4347
 
4404
- return _extends$3.apply(this, arguments);
4348
+ return _extends$2.apply(this, arguments);
4405
4349
  }
4406
4350
 
4407
- function _objectWithoutPropertiesLoose$1(source, excluded) {
4351
+ function _objectWithoutPropertiesLoose(source, excluded) {
4408
4352
  if (source == null) return {};
4409
4353
  var target = {};
4410
4354
  var sourceKeys = Object.keys(source);
@@ -4604,12 +4548,12 @@ function useFormikContext() {
4604
4548
  function formikReducer(state, msg) {
4605
4549
  switch (msg.type) {
4606
4550
  case 'SET_VALUES':
4607
- return _extends$3({}, state, {
4551
+ return _extends$2({}, state, {
4608
4552
  values: msg.payload
4609
4553
  });
4610
4554
 
4611
4555
  case 'SET_TOUCHED':
4612
- return _extends$3({}, state, {
4556
+ return _extends$2({}, state, {
4613
4557
  touched: msg.payload
4614
4558
  });
4615
4559
 
@@ -4618,60 +4562,60 @@ function formikReducer(state, msg) {
4618
4562
  return state;
4619
4563
  }
4620
4564
 
4621
- return _extends$3({}, state, {
4565
+ return _extends$2({}, state, {
4622
4566
  errors: msg.payload
4623
4567
  });
4624
4568
 
4625
4569
  case 'SET_STATUS':
4626
- return _extends$3({}, state, {
4570
+ return _extends$2({}, state, {
4627
4571
  status: msg.payload
4628
4572
  });
4629
4573
 
4630
4574
  case 'SET_ISSUBMITTING':
4631
- return _extends$3({}, state, {
4575
+ return _extends$2({}, state, {
4632
4576
  isSubmitting: msg.payload
4633
4577
  });
4634
4578
 
4635
4579
  case 'SET_ISVALIDATING':
4636
- return _extends$3({}, state, {
4580
+ return _extends$2({}, state, {
4637
4581
  isValidating: msg.payload
4638
4582
  });
4639
4583
 
4640
4584
  case 'SET_FIELD_VALUE':
4641
- return _extends$3({}, state, {
4585
+ return _extends$2({}, state, {
4642
4586
  values: setIn(state.values, msg.payload.field, msg.payload.value)
4643
4587
  });
4644
4588
 
4645
4589
  case 'SET_FIELD_TOUCHED':
4646
- return _extends$3({}, state, {
4590
+ return _extends$2({}, state, {
4647
4591
  touched: setIn(state.touched, msg.payload.field, msg.payload.value)
4648
4592
  });
4649
4593
 
4650
4594
  case 'SET_FIELD_ERROR':
4651
- return _extends$3({}, state, {
4595
+ return _extends$2({}, state, {
4652
4596
  errors: setIn(state.errors, msg.payload.field, msg.payload.value)
4653
4597
  });
4654
4598
 
4655
4599
  case 'RESET_FORM':
4656
- return _extends$3({}, state, msg.payload);
4600
+ return _extends$2({}, state, msg.payload);
4657
4601
 
4658
4602
  case 'SET_FORMIK_STATE':
4659
4603
  return msg.payload(state);
4660
4604
 
4661
4605
  case 'SUBMIT_ATTEMPT':
4662
- return _extends$3({}, state, {
4606
+ return _extends$2({}, state, {
4663
4607
  touched: setNestedObjectValues(state.values, true),
4664
4608
  isSubmitting: true,
4665
4609
  submitCount: state.submitCount + 1
4666
4610
  });
4667
4611
 
4668
4612
  case 'SUBMIT_FAILURE':
4669
- return _extends$3({}, state, {
4613
+ return _extends$2({}, state, {
4670
4614
  isSubmitting: false
4671
4615
  });
4672
4616
 
4673
4617
  case 'SUBMIT_SUCCESS':
4674
- return _extends$3({}, state, {
4618
+ return _extends$2({}, state, {
4675
4619
  isSubmitting: false
4676
4620
  });
4677
4621
 
@@ -4694,9 +4638,9 @@ function useFormik(_ref) {
4694
4638
  _ref$enableReinitiali = _ref.enableReinitialize,
4695
4639
  enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
4696
4640
  onSubmit = _ref.onSubmit,
4697
- rest = _objectWithoutPropertiesLoose$1(_ref, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]);
4641
+ rest = _objectWithoutPropertiesLoose(_ref, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]);
4698
4642
 
4699
- var props = _extends$3({
4643
+ var props = _extends$2({
4700
4644
  validateOnChange: validateOnChange,
4701
4645
  validateOnBlur: validateOnBlur,
4702
4646
  validateOnMount: validateOnMount,
@@ -5364,7 +5308,7 @@ function useFormik(_ref) {
5364
5308
  return typeof isInitialValid !== 'undefined' ? dirty ? state.errors && Object.keys(state.errors).length === 0 : isInitialValid !== false && isFunction(isInitialValid) ? isInitialValid(props) : isInitialValid : state.errors && Object.keys(state.errors).length === 0;
5365
5309
  }, [isInitialValid, dirty, state.errors, props]);
5366
5310
 
5367
- var ctx = _extends$3({}, state, {
5311
+ var ctx = _extends$2({}, state, {
5368
5312
  initialValues: initialValues.current,
5369
5313
  initialErrors: initialErrors.current,
5370
5314
  initialTouched: initialTouched.current,
@@ -5608,7 +5552,7 @@ var Form$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5608
5552
  // iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
5609
5553
  // We default the action to "#" in case the preventDefault fails (just updates the URL hash)
5610
5554
  var action = props.action,
5611
- rest = _objectWithoutPropertiesLoose$1(props, ["action"]);
5555
+ rest = _objectWithoutPropertiesLoose(props, ["action"]);
5612
5556
 
5613
5557
  var _action = action != null ? action : '#';
5614
5558
 
@@ -5722,7 +5666,7 @@ var Form = function Form(_ref) {
5722
5666
  };
5723
5667
 
5724
5668
  Form.propTypes = {
5725
- options: PropTypes$1.object.isRequired
5669
+ options: PropTypes.object.isRequired
5726
5670
  };
5727
5671
  var FormContainer = styled__default["default"].div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n width: 100%;\n select {\n appearance: none;\n background: #fff;\n background-image: linear-gradient(45deg, transparent 50%, gray 50%),\n linear-gradient(135deg, gray 50%, transparent 50%),\n linear-gradient(to right, #ccc, #ccc);\n background-position: calc(100% - 20px) calc(1em),\n calc(100% - 15px) calc(1em), calc(100% - 2.5em);\n background-size: 5px 5px, 5px 5px, 1px 1.5em;\n background-repeat: no-repeat;\n }\n\n label {\n display: flex;\n flex-wrap: wrap;\n flex-direction: column;\n width: 100%;\n margin: 8px 0;\n }\n input,\n select,\n textarea {\n display: block;\n box-sizing: border-box;\n margin: 8px 0;\n padding: 8px;\n width: 100%;\n appearance: none;\n border: 1px solid rgba(0, 0, 0, 0.25);\n }\n button {\n border: 0;\n padding: 8px 16px;\n font-size: 1.4rem;\n line-height: 1.4;\n font-weight: bold;\n background: ", ";\n }\n"])), function (props) {
5728
5672
  return props.theme.primaryColor;
@@ -5749,9 +5693,47 @@ var imageGallery = {exports: {}};
5749
5693
  !function(e,t){module.exports=t(React__default["default"]);}(commonjsGlobal$1,(function(e){return (()=>{var t={703:(e,t,n)=>{var i=n(414);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,s){if(s!==i){var o=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");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n};},697:(e,t,n)=>{e.exports=n(703)();},414:e=>{e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";},590:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,i="function"==typeof Set,r="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,s){if(e===s)return !0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return !1;var o,l,u,c;if(Array.isArray(e)){if((o=e.length)!=s.length)return !1;for(l=o;0!=l--;)if(!a(e[l],s[l]))return !1;return !0}if(n&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return !1;for(c=e.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return !1;for(c=e.entries();!(l=c.next()).done;)if(!a(l.value[1],s.get(l.value[0])))return !1;return !0}if(i&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return !1;for(c=e.entries();!(l=c.next()).done;)if(!s.has(l.value[0]))return !1;return !0}if(r&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((o=e.length)!=s.length)return !1;for(l=o;0!=l--;)if(e[l]!==s[l])return !1;return !0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===s.toString();if((o=(u=Object.keys(e)).length)!==Object.keys(s).length)return !1;for(l=o;0!=l--;)if(!Object.prototype.hasOwnProperty.call(s,u[l]))return !1;if(t&&e instanceof Element)return !1;for(l=o;0!=l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!a(e[u[l]],s[u[l]]))return !1;return !0}return e!=e&&s!=s}e.exports=function(e,t){try{return a(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};},37:function(e,t,n){!function(e,t){function n(){return (n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);}return e}).apply(this,arguments)}var i="Left",r="Right",a="Down",s={delta:10,preventDefaultTouchmoveEvent:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0},o={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},l="mousemove",u="mouseup";function c(e,t){if(0===t)return e;var n=Math.PI/180*t;return [e[0]*Math.cos(n)+e[1]*Math.sin(n),e[1]*Math.cos(n)-e[0]*Math.sin(n)]}function h(e,t){var s=function(t){t&&"touches"in t&&t.touches.length>1||e((function(e,i){i.trackMouse&&(document.addEventListener(l,h),document.addEventListener(u,f));var r="touches"in t?t.touches[0]:t,a=c([r.clientX,r.clientY],i.rotationAngle);return n({},e,o,{initial:[].concat(a),xy:a,start:t.timeStamp||0})}));},h=function(t){e((function(e,s){if("touches"in t&&t.touches.length>1)return e;var o="touches"in t?t.touches[0]:t,l=c([o.clientX,o.clientY],s.rotationAngle),u=l[0],h=l[1],d=u-e.xy[0],f=h-e.xy[1],p=Math.abs(d),m=Math.abs(f),v=(t.timeStamp||0)-e.start,g=Math.sqrt(p*p+m*m)/(v||1),b=[d/(v||1),f/(v||1)];if(p<s.delta&&m<s.delta&&!e.swiping)return e;var y=function(e,t,n,s){return e>t?n>0?r:i:s>0?a:"Up"}(p,m,d,f),w={absX:p,absY:m,deltaX:d,deltaY:f,dir:y,event:t,first:e.first,initial:e.initial,velocity:g,vxvy:b};s.onSwiping&&s.onSwiping(w);var T=!1;return (s.onSwiping||s.onSwiped||"onSwiped"+y in s)&&(T=!0),T&&s.preventDefaultTouchmoveEvent&&s.trackTouch&&t.cancelable&&t.preventDefault(),n({},e,{first:!1,eventData:w,swiping:!0})}));},d=function(t){e((function(e,i){var r;if(e.swiping&&e.eventData){r=n({},e.eventData,{event:t}),i.onSwiped&&i.onSwiped(r);var a="onSwiped"+r.dir;a in i&&i[a](r);}else i.onTap&&i.onTap({event:t});return n({},e,o,{eventData:r})}));},f=function(e){document.removeEventListener(l,h),document.removeEventListener(u,f),d(e);},p=function(e,t){var n=function(){};if(e&&e.addEventListener){var i=[["touchstart",s],["touchmove",h],["touchend",d]];i.forEach((function(n){var i=n[0],r=n[1];return e.addEventListener(i,r,{passive:t})})),n=function(){return i.forEach((function(t){var n=t[0],i=t[1];return e.removeEventListener(n,i)}))};}return n},m={ref:function(t){null!==t&&e((function(e,i){if(e.el===t)return e;var r={};return e.el&&e.el!==t&&e.cleanUpTouch&&(e.cleanUpTouch(),r.cleanUpTouch=void 0),i.trackTouch&&t&&(r.cleanUpTouch=p(t,!i.preventDefaultTouchmoveEvent)),n({},e,{el:t},r)}));}};return t.trackMouse&&(m.onMouseDown=s),[m,p]}e.DOWN=a,e.LEFT=i,e.RIGHT=r,e.UP="Up",e.useSwipeable=function(e){var i=e.trackMouse,r=t.useRef(n({},o)),a=t.useRef(n({},s));a.current=n({},s,e);var l=t.useMemo((function(){return h((function(e){return r.current=e(r.current,a.current)}),{trackMouse:i})}),[i]),u=l[0],c=l[1];return r.current=function(e,t,i){var r={};return !t.trackTouch&&e.cleanUpTouch?(e.cleanUpTouch(),r.cleanUpTouch=void 0):t.trackTouch&&!e.cleanUpTouch&&e.el&&(r.cleanUpTouch=i(e.el,!t.preventDefaultTouchmoveEvent)),n({},e,r)}(r.current,a.current,c),u};}(t,n(888));},888:t=>{t.exports=e;}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e].call(a.exports,a,a.exports,i),a.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]});},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});};var r={};return (()=>{function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i);else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function t(){for(var t,n,i=0,r="";i<arguments.length;)(t=arguments[i++])&&(n=e(t))&&(r&&(r+=" "),r+=n);return r}i.r(r),i.d(r,{default:()=>Me});var n=i(888),a=i.n(n);const s=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},o="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1;var l="object"==typeof self&&self&&self.Object===Object&&self;const u=o||l||Function("return this")(),c=function(){return u.Date.now()};var h=/\s/;var d=/^\s+/;const f=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&h.test(e.charAt(t)););return t}(e)+1).replace(d,""):e},p=u.Symbol;var m=Object.prototype,v=m.hasOwnProperty,g=m.toString,b=p?p.toStringTag:void 0;var y=Object.prototype.toString;var w=p?p.toStringTag:void 0;const T=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":w&&w in Object(e)?function(e){var t=v.call(e,b),n=e[b];try{e[b]=void 0;var i=!0;}catch(e){}var r=g.call(e);return i&&(t?e[b]=n:delete e[b]),r}(e):function(e){return y.call(e)}(e)};var S=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,E=/^0o[0-7]+$/i,I=parseInt;const k=function(e){if("number"==typeof e)return e;if(function(e){return "symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==T(e)}(e))return NaN;if(s(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=s(t)?t+"":t;}if("string"!=typeof e)return 0===e?e:+e;e=f(e);var n=O.test(e);return n||E.test(e)?I(e.slice(2),n?2:8):S.test(e)?NaN:+e};var x=Math.max,_=Math.min;const L=function(e,t,n){var i,r,a,o,l,u,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,a=r;return i=r=void 0,h=t,o=e.apply(a,n)}function v(e){return h=e,l=setTimeout(b,t),d?m(e):o}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-h>=a}function b(){var e=c();if(g(e))return y(e);l=setTimeout(b,function(e){var n=t-(e-u);return f?_(n,a-(e-h)):n}(e));}function y(e){return l=void 0,p&&i?m(e):(i=r=void 0,o)}function w(){var e=c(),n=g(e);if(i=arguments,r=this,u=e,n){if(void 0===l)return v(u);if(f)return clearTimeout(l),l=setTimeout(b,t),m(u)}return void 0===l&&(l=setTimeout(b,t)),o}return t=k(t)||0,s(n)&&(d=!!n.leading,a=(f="maxWait"in n)?x(k(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){void 0!==l&&clearTimeout(l),h=0,i=u=r=l=void 0;},w.flush=function(){return void 0===l?o:y(c())},w},P=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return s(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),L(e,t,{leading:i,maxWait:t,trailing:r})};var M=i(590),R=i.n(M),D=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,i){return e[0]===t&&(n=i,!0)})),n}return function(){function t(){this.__entries__=[];}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(t,n){var i=e(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n]);},t.prototype.delete=function(t){var n=this.__entries__,i=e(n,t);~i&&n.splice(i,1);},t.prototype.has=function(t){return !!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0);},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,i=this.__entries__;n<i.length;n++){var r=i[n];e.call(t,r[1],r[0]);}},t}()}(),F="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,C=void 0!==i.g&&i.g.Math===Math?i.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),W="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(C):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},N=["top","right","bottom","left","width","height","size","weight"],j="undefined"!=typeof MutationObserver,z=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,i=!1,r=0;function a(){n&&(n=!1,e()),i&&o();}function s(){W(a);}function o(){var e=Date.now();if(n){if(e-r<2)return;i=!0;}else n=!0,i=!1,setTimeout(s,20);r=e;}return o}(this.refresh.bind(this));}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_();},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_();},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh();},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){F&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),j?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0);},e.prototype.disconnect_=function(){F&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1);},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;N.some((function(e){return !!~n.indexOf(e)}))&&this.refresh();},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),B=function(e,t){for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0});}return e},A=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||C},G=V(0,0,0,0);function U(e){return parseFloat(e)||0}function H(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+U(e["border-"+n+"-width"])}),0)}var q="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof A(e).SVGGraphicsElement}:function(e){return e instanceof A(e).SVGElement&&"function"==typeof e.getBBox};function K(e){return F?q(e)?function(e){var t=e.getBBox();return V(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return G;var i=A(e).getComputedStyle(e),r=function(e){for(var t={},n=0,i=["top","right","bottom","left"];n<i.length;n++){var r=i[n],a=e["padding-"+r];t[r]=U(a);}return t}(i),a=r.left+r.right,s=r.top+r.bottom,o=U(i.width),l=U(i.height);if("border-box"===i.boxSizing&&(Math.round(o+a)!==t&&(o-=H(i,"left","right")+a),Math.round(l+s)!==n&&(l-=H(i,"top","bottom")+s)),!function(e){return e===A(e).document.documentElement}(e)){var u=Math.round(o+a)-t,c=Math.round(l+s)-n;1!==Math.abs(u)&&(o-=u),1!==Math.abs(c)&&(l-=c);}return V(r.left,r.top,o,l)}(e):G}function V(e,t,n,i){return {x:e,y:t,width:n,height:i}}var X=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=V(0,0,0,0),this.target=e;}return e.prototype.isActive=function(){var e=K(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),Y=function(e,t){var n,i,r,a,s,o,l,u=(i=(n=t).x,r=n.y,a=n.width,s=n.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(o.prototype),B(l,{x:i,y:r,width:a,height:s,top:r,right:i+a,bottom:s+r,left:i}),l);B(this,{target:e,contentRect:u});},$=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new D,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n;}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new X(e)),this.controller_.addObserver(this),this.controller_.refresh());}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this));}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this);},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t);}));},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new Y(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive();}},e.prototype.clearActive=function(){this.activeObservations_.splice(0);},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),J="undefined"!=typeof WeakMap?new WeakMap:new D,Q=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=z.getInstance(),i=new $(t,n,this);J.set(this,i);};["observe","unobserve","disconnect"].forEach((function(e){Q.prototype[e]=function(){var t;return (t=J.get(this))[e].apply(t,arguments)};}));const Z=void 0!==C.ResizeObserver?C.ResizeObserver:Q;var ee=i(37),te=i(697),ne=a().memo((function(e){var t=e.description,n=e.fullscreen,i=e.handleImageLoaded,r=e.isFullscreen,s=e.onImageError,o=e.original,l=e.originalAlt,u=e.originalHeight,c=e.originalWidth,h=e.originalTitle,d=e.sizes,f=e.srcSet,p=r&&n||o;return a().createElement(a().Fragment,null,a().createElement("img",{className:"image-gallery-image",src:p,alt:l,srcSet:f,height:u,width:c,sizes:d,title:h,onLoad:function(e){return i(e,o)},onError:s}),t&&a().createElement("span",{className:"image-gallery-description"},t))}));ne.displayName="Item",ne.propTypes={description:te.string,fullscreen:te.string,handleImageLoaded:te.func.isRequired,isFullscreen:te.bool,onImageError:te.func.isRequired,original:te.string.isRequired,originalAlt:te.string,originalHeight:te.string,originalWidth:te.string,originalTitle:te.string,sizes:te.string,srcSet:te.string},ne.defaultProps={description:"",fullscreen:"",isFullscreen:!1,originalAlt:"",originalHeight:"",originalWidth:"",originalTitle:"",sizes:"",srcSet:""};const ie=ne;var re={left:a().createElement("polyline",{points:"15 18 9 12 15 6"}),right:a().createElement("polyline",{points:"9 18 15 12 9 6"}),maximize:a().createElement("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"}),minimize:a().createElement("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"}),play:a().createElement("polygon",{points:"5 3 19 12 5 21 5 3"}),pause:a().createElement(a().Fragment,null,a().createElement("rect",{x:"6",y:"4",width:"4",height:"16"}),a().createElement("rect",{x:"14",y:"4",width:"4",height:"16"}))},ae=function(e){var t=e.strokeWidth,n=e.viewBox,i=e.icon;return a().createElement("svg",{className:"image-gallery-svg",xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"},re[i])};ae.propTypes={strokeWidth:te.number,viewBox:te.string,icon:(0, te.oneOf)(["left","right","maximize","minimize","play","pause"]).isRequired},ae.defaultProps={strokeWidth:1,viewBox:"0 0 24 24"};const se=ae;var oe=a().memo((function(e){var t=e.isFullscreen,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-fullscreen-button",onClick:n,"aria-label":"Open Fullscreen"},a().createElement(se,{strokeWidth:2,icon:t?"minimize":"maximize"}))}));oe.displayName="Fullscreen",oe.propTypes={isFullscreen:te.bool.isRequired,onClick:te.func.isRequired};const le=oe;var ue=a().memo((function(e){var t=e.disabled,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-left-nav",disabled:t,onClick:n,"aria-label":"Previous Slide"},a().createElement(se,{icon:"left",viewBox:"6 0 12 24"}))}));ue.displayName="LeftNav",ue.propTypes={disabled:te.bool.isRequired,onClick:te.func.isRequired};const ce=ue;var he=a().memo((function(e){var t=e.disabled,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-right-nav",disabled:t,onClick:n,"aria-label":"Next Slide"},a().createElement(se,{icon:"right",viewBox:"6 0 12 24"}))}));he.displayName="RightNav",he.propTypes={disabled:te.bool.isRequired,onClick:te.func.isRequired};const de=he;var fe=a().memo((function(e){var t=e.isPlaying,n=e.onClick;return a().createElement("button",{type:"button",className:"image-gallery-icon image-gallery-play-button",onClick:n,"aria-label":"Play or Pause Slideshow"},a().createElement(se,{strokeWidth:2,icon:t?"pause":"play"}))}));fe.displayName="PlayPause",fe.propTypes={isPlaying:te.bool.isRequired,onClick:te.func.isRequired};const pe=fe;function me(){return (me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);}return e}).apply(this,arguments)}var ve=function(e){var t=e.children,n=e.className,i=e.delta,r=e.onSwiping,s=e.onSwiped,o=(0, ee.useSwipeable)({delta:i,onSwiping:r,onSwiped:s});return a().createElement("div",me({},o,{className:n}),t)};ve.propTypes={children:te.node.isRequired,className:te.string,delta:te.number,onSwiped:te.func,onSwiping:te.func},ve.defaultProps={className:"",delta:0,onSwiping:function(){},onSwiped:function(){}};const ge=ve;function be(e){return (be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i);}return n}function we(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){Te(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i);}}function Oe(e,t){return (Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e,t){return !t||"object"!==be(t)&&"function"!=typeof t?Ie(e):t}function Ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ke(e){return (ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=["fullscreenchange","MSFullscreenChange","mozfullscreenchange","webkitfullscreenchange"],_e=(0, te.arrayOf)((0, te.shape)({srcSet:te.string,media:te.string}));function Le(e){var t=parseInt(e.keyCode||e.which||0,10);return 66===t||62===t}var Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t);}(l,e);var n,i,r,s,o=(r=l,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return !1;if(Reflect.construct.sham)return !1;if("function"==typeof Proxy)return !0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return !1}}(),function(){var e,t=ke(r);if(s){var n=ke(this).constructor;e=Reflect.construct(t,arguments,n);}else e=t.apply(this,arguments);return Ee(this,e)});function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=o.call(this,e)).state={currentIndex:e.startIndex,thumbsTranslate:0,thumbsSwipedTranslate:0,currentSlideOffset:0,galleryWidth:0,thumbnailsWrapperWidth:0,thumbnailsWrapperHeight:0,thumbsStyle:{transition:"all ".concat(e.slideDuration,"ms ease-out")},isFullscreen:!1,isSwipingThumbnail:!1,isPlaying:!1},t.loadedImages={},t.imageGallery=a().createRef(),t.thumbnailsWrapper=a().createRef(),t.thumbnails=a().createRef(),t.imageGallerySlideWrapper=a().createRef(),t.handleImageLoaded=t.handleImageLoaded.bind(Ie(t)),t.handleKeyDown=t.handleKeyDown.bind(Ie(t)),t.handleMouseDown=t.handleMouseDown.bind(Ie(t)),t.handleTouchMove=t.handleTouchMove.bind(Ie(t)),t.handleOnSwiped=t.handleOnSwiped.bind(Ie(t)),t.handleScreenChange=t.handleScreenChange.bind(Ie(t)),t.handleSwiping=t.handleSwiping.bind(Ie(t)),t.handleThumbnailSwiping=t.handleThumbnailSwiping.bind(Ie(t)),t.handleOnThumbnailSwiped=t.handleOnThumbnailSwiped.bind(Ie(t)),t.onThumbnailMouseLeave=t.onThumbnailMouseLeave.bind(Ie(t)),t.handleImageError=t.handleImageError.bind(Ie(t)),t.pauseOrPlay=t.pauseOrPlay.bind(Ie(t)),t.renderThumbInner=t.renderThumbInner.bind(Ie(t)),t.renderItem=t.renderItem.bind(Ie(t)),t.slideLeft=t.slideLeft.bind(Ie(t)),t.slideRight=t.slideRight.bind(Ie(t)),t.toggleFullScreen=t.toggleFullScreen.bind(Ie(t)),t.togglePlay=t.togglePlay.bind(Ie(t)),t.unthrottledSlideToIndex=t.slideToIndex,t.slideToIndex=P(t.unthrottledSlideToIndex,e.slideDuration,{trailing:!1}),e.lazyLoad&&(t.lazyLoaded=[]),t}return n=l,(i=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoPlay,n=e.useWindowKeyDown;t&&this.play(),n?window.addEventListener("keydown",this.handleKeyDown):this.imageGallery.current.addEventListener("keydown",this.handleKeyDown),window.addEventListener("mousedown",this.handleMouseDown),window.addEventListener("touchmove",this.handleTouchMove,{passive:!1}),this.initResizeObserver(this.imageGallerySlideWrapper),this.addScreenChangeEvent();}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,i=n.items,r=n.lazyLoad,a=n.slideDuration,s=n.slideInterval,o=n.startIndex,l=n.thumbnailPosition,u=n.showThumbnails,c=n.useWindowKeyDown,h=this.state.currentIndex,d=e.items.length!==i.length,f=!R()(e.items,i),p=e.startIndex!==o,m=e.thumbnailPosition!==l,v=e.showThumbnails!==u;s===e.slideInterval&&a===e.slideDuration||(this.pause(),this.play()),m&&(this.removeResizeObserver(),this.initResizeObserver(this.imageGallerySlideWrapper)),(d||v)&&this.handleResize(),t.currentIndex!==h&&this.slideThumbnailBar(),e.slideDuration!==a&&(this.slideToIndex=P(this.unthrottledSlideToIndex,a,{trailing:!1})),!r||e.lazyLoad&&!f||(this.lazyLoaded=[]),c!==e.useWindowKeyDown&&(c?(this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown),window.addEventListener("keydown",this.handleKeyDown)):(window.removeEventListener("keydown",this.handleKeyDown),this.imageGallery.current.addEventListener("keydown",this.handleKeyDown))),(p||f)&&this.setState({currentIndex:o});}},{key:"componentWillUnmount",value:function(){var e=this.props.useWindowKeyDown;window.removeEventListener("mousedown",this.handleMouseDown),window.removeEventListener("touchmove",this.handleTouchMove),this.removeScreenChangeEvent(),this.removeResizeObserver(),this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null),this.transitionTimer&&window.clearTimeout(this.transitionTimer),e?window.removeEventListener("keydown",this.handleKeyDown):this.imageGallery.current.removeEventListener("keydown",this.handleKeyDown);}},{key:"onSliding",value:function(){var e=this,t=this.state,n=t.currentIndex,i=t.isTransitioning,r=this.props,a=r.onSlide,s=r.slideDuration;this.transitionTimer=window.setTimeout((function(){i&&(e.setState({isTransitioning:!i,isSwipingThumbnail:!1}),a&&a(n));}),s+50);}},{key:"onThumbnailClick",value:function(e,t){var n=this.props.onThumbnailClick;e.target.parentNode.parentNode.blur(),this.slideToIndex(t,e),n&&n(e,t);}},{key:"onThumbnailMouseOver",value:function(e,t){var n=this;this.thumbnailMouseOverTimer&&(window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null),this.thumbnailMouseOverTimer=window.setTimeout((function(){n.slideToIndex(t),n.pause();}),300);}},{key:"onThumbnailMouseLeave",value:function(){if(this.thumbnailMouseOverTimer){var e=this.props.autoPlay;window.clearTimeout(this.thumbnailMouseOverTimer),this.thumbnailMouseOverTimer=null,e&&this.play();}}},{key:"setThumbsTranslate",value:function(e){this.setState({thumbsTranslate:e});}},{key:"setModalFullscreen",value:function(e){var t=this.props.onScreenChange;this.setState({modalFullscreen:e}),t&&t(e);}},{key:"getThumbsTranslate",value:function(e){var t,n=this.props,i=n.disableThumbnailScroll,r=n.items,a=this.state,s=a.thumbnailsWrapperWidth,o=a.thumbnailsWrapperHeight,l=this.thumbnails&&this.thumbnails.current;if(i)return 0;if(l){if(this.isThumbnailVertical()){if(l.scrollHeight<=o)return 0;t=l.scrollHeight-o;}else {if(l.scrollWidth<=s||s<=0)return 0;t=l.scrollWidth-s;}return e*(t/(r.length-1))}return 0}},{key:"getAlignmentClassName",value:function(e){var t=this.state.currentIndex,n=this.props,i=n.infinite,r=n.items,a="",s="left",o="right";switch(e){case t-1:a=" ".concat(s);break;case t:a=" ".concat("center");break;case t+1:a=" ".concat(o);}return r.length>=3&&i&&(0===e&&t===r.length-1?a=" ".concat(o):e===r.length-1&&0===t&&(a=" ".concat(s))),a}},{key:"getTranslateXForTwoSlide",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,r=t.previousIndex,a=n!==r,s=0===e&&0===r,o=1===e&&1===r,l=0===e&&1===n,u=1===e&&0===n,c=0===i,h=-100*n+100*e+i;return i>0?this.direction="left":i<0&&(this.direction="right"),u&&i>0&&(h=-100+i),l&&i<0&&(h=100+i),a?s&&c&&"left"===this.direction?h=100:o&&c&&"right"===this.direction&&(h=-100):(u&&c&&"left"===this.direction&&(h=-100),l&&c&&"right"===this.direction&&(h=100)),h}},{key:"getThumbnailBarHeight",value:function(){return this.isThumbnailVertical()?{height:this.state.gallerySlideWrapperHeight}:{}}},{key:"getSlideStyle",value:function(e){var t=this.state,n=t.currentIndex,i=t.currentSlideOffset,r=t.slideStyle,a=this.props,s=a.infinite,o=a.items,l=a.useTranslate3D,u=a.isRTL,c=-100*n,h=o.length-1,d=(c+100*e)*(u?-1:1)+i;s&&o.length>2&&(0===n&&e===h?d=-100*(u?-1:1)+i:n===h&&0===e&&(d=100*(u?-1:1)+i)),s&&2===o.length&&(d=this.getTranslateXForTwoSlide(e));var f="translate(".concat(d,"%, 0)");return l&&(f="translate3d(".concat(d,"%, 0, 0)")),we({display:this.isSlideVisible(e)?"inherit":"none",WebkitTransform:f,MozTransform:f,msTransform:f,OTransform:f,transform:f},r)}},{key:"getCurrentIndex",value:function(){return this.state.currentIndex}},{key:"getThumbnailStyle",value:function(){var e,t=this.props,n=t.useTranslate3D,i=t.isRTL,r=this.state,a=r.thumbsTranslate,s=r.thumbsStyle,o=i?-1*a:a;return this.isThumbnailVertical()?(e="translate(0, ".concat(a,"px)"),n&&(e="translate3d(0, ".concat(a,"px, 0)"))):(e="translate(".concat(o,"px, 0)"),n&&(e="translate3d(".concat(o,"px, 0, 0)"))),we({WebkitTransform:e,MozTransform:e,msTransform:e,OTransform:e,transform:e},s)}},{key:"getSlideItems",value:function(){var e=this,n=this.state.currentIndex,i=this.props,r=i.items,s=i.slideOnThumbnailOver,o=i.onClick,l=i.lazyLoad,u=i.onTouchMove,c=i.onTouchEnd,h=i.onTouchStart,d=i.onMouseOver,f=i.onMouseLeave,p=i.renderItem,m=i.renderThumbInner,v=i.showThumbnails,g=i.showBullets,b=[],y=[],w=[];return r.forEach((function(i,r){var T=e.getAlignmentClassName(r),S=i.originalClass?" ".concat(i.originalClass):"",O=i.thumbnailClass?" ".concat(i.thumbnailClass):"",E=i.renderItem||p||e.renderItem,I=i.renderThumbInner||m||e.renderThumbInner,k=!l||T||e.lazyLoaded[r];k&&l&&!e.lazyLoaded[r]&&(e.lazyLoaded[r]=!0);var x=e.getSlideStyle(r),_=a().createElement("div",{"aria-label":"Go to Slide ".concat(r+1),key:"slide-".concat(r),tabIndex:"-1",className:"image-gallery-slide ".concat(T," ").concat(S),style:x,onClick:o,onKeyUp:e.handleSlideKeyUp,onTouchMove:u,onTouchEnd:c,onTouchStart:h,onMouseOver:d,onFocus:d,onMouseLeave:f,role:"button"},k?E(i):a().createElement("div",{style:{height:"100%"}}));if(b.push(_),v&&i.thumbnail){var L=t("image-gallery-thumbnail",O,{active:n===r});y.push(a().createElement("button",{key:"thumbnail-".concat(r),type:"button",tabIndex:"0","aria-pressed":n===r?"true":"false","aria-label":"Go to Slide ".concat(r+1),className:L,onMouseLeave:s?e.onThumbnailMouseLeave:null,onMouseOver:function(t){return e.handleThumbnailMouseOver(t,r)},onFocus:function(t){return e.handleThumbnailMouseOver(t,r)},onKeyUp:function(t){return e.handleThumbnailKeyUp(t,r)},onClick:function(t){return e.onThumbnailClick(t,r)}},I(i)));}if(g){var P=t("image-gallery-bullet",i.bulletClass,{active:n===r});w.push(a().createElement("button",{type:"button",key:"bullet-".concat(r),className:P,onClick:function(t){return i.bulletOnClick&&i.bulletOnClick({item:i,itemIndex:r,currentIndex:n}),t.target.blur(),e.slideToIndex.call(e,r,t)},"aria-pressed":n===r?"true":"false","aria-label":"Go to Slide ".concat(r+1)}));}})),{slides:b,thumbnails:y,bullets:w}}},{key:"ignoreIsTransitioning",value:function(){var e=this.props.items,t=this.state,n=t.previousIndex,i=t.currentIndex,r=e.length-1;return Math.abs(n-i)>1&&!(0===n&&i===r)&&!(n===r&&0===i)}},{key:"isFirstOrLastSlide",value:function(e){return e===this.props.items.length-1||0===e}},{key:"slideIsTransitioning",value:function(e){var t=this.state,n=t.isTransitioning,i=t.previousIndex,r=t.currentIndex;return n&&!(e===i||e===r)}},{key:"isSlideVisible",value:function(e){return !this.slideIsTransitioning(e)||this.ignoreIsTransitioning()&&!this.isFirstOrLastSlide(e)}},{key:"slideThumbnailBar",value:function(){var e=this.state,t=e.currentIndex,n=e.isSwipingThumbnail,i=-this.getThumbsTranslate(t);n||(0===t?this.setState({thumbsTranslate:0,thumbsSwipedTranslate:0}):this.setState({thumbsTranslate:i,thumbsSwipedTranslate:i}));}},{key:"canSlide",value:function(){return this.props.items.length>=2}},{key:"canSlideLeft",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlideNext():this.canSlidePrevious())}},{key:"canSlideRight",value:function(){var e=this.props,t=e.infinite,n=e.isRTL;return t||(n?this.canSlidePrevious():this.canSlideNext())}},{key:"canSlidePrevious",value:function(){return this.state.currentIndex>0}},{key:"canSlideNext",value:function(){return this.state.currentIndex<this.props.items.length-1}},{key:"handleSwiping",value:function(e){var t=e.event,n=e.absX,i=e.dir,r=this.props,a=r.disableSwipe,s=r.stopPropagation,o=this.state,l=o.galleryWidth,u=o.isTransitioning,c=o.swipingUpDown,h=o.swipingLeftRight;if(i!==ee.UP&&i!==ee.DOWN&&!c||h){if(i!==ee.LEFT&&i!==ee.RIGHT||h||this.setState({swipingLeftRight:!0}),!a){var d=this.props.swipingTransitionDuration;if(s&&t.preventDefault(),u)this.setState({currentSlideOffset:0});else {var f=i===ee.RIGHT?1:-1,p=n/l*100;Math.abs(p)>=100&&(p=100);var m={transition:"transform ".concat(d,"ms ease-out")};this.setState({currentSlideOffset:f*p,slideStyle:m});}}}else c||this.setState({swipingUpDown:!0});}},{key:"handleThumbnailSwiping",value:function(e){var t=e.event,n=e.absX,i=e.absY,r=e.dir,a=this.props,s=a.stopPropagation,o=a.swipingThumbnailTransitionDuration,l=this.state,u=l.thumbsSwipedTranslate,c=l.thumbnailsWrapperHeight,h=l.thumbnailsWrapperWidth,d=l.swipingUpDown,f=l.swipingLeftRight;if(this.isThumbnailVertical()){if((r===ee.LEFT||r===ee.RIGHT||f)&&!d)return void(f||this.setState({swipingLeftRight:!0}));r!==ee.UP&&r!==ee.DOWN||d||this.setState({swipingUpDown:!0});}else {if((r===ee.UP||r===ee.DOWN||d)&&!f)return void(d||this.setState({swipingUpDown:!0}));r!==ee.LEFT&&r!==ee.RIGHT||f||this.setState({swipingLeftRight:!0});}var p,m,v,g,b,y=this.thumbnails&&this.thumbnails.current;if(this.isThumbnailVertical()?(p=u+(r===ee.DOWN?i:-i),m=y.scrollHeight-c+20,v=Math.abs(p)>m,g=p>20,b=y.scrollHeight<=c):(p=u+(r===ee.RIGHT?n:-n),m=y.scrollWidth-h+20,v=Math.abs(p)>m,g=p>20,b=y.scrollWidth<=h),!b&&(r!==ee.LEFT&&r!==ee.UP||!v)&&(r!==ee.RIGHT&&r!==ee.DOWN||!g)){s&&t.stopPropagation();var w={transition:"transform ".concat(o,"ms ease-out")};this.setState({thumbsTranslate:p,thumbsStyle:w});}}},{key:"handleOnThumbnailSwiped",value:function(){var e=this.state.thumbsTranslate,t=this.props.slideDuration;this.resetSwipingDirection(),this.setState({isSwipingThumbnail:!0,thumbsSwipedTranslate:e,thumbsStyle:{transition:"all ".concat(t,"ms ease-out")}});}},{key:"sufficientSwipe",value:function(){var e=this.state.currentSlideOffset,t=this.props.swipeThreshold;return Math.abs(e)>t}},{key:"resetSwipingDirection",value:function(){var e=this.state,t=e.swipingUpDown,n=e.swipingLeftRight;t&&this.setState({swipingUpDown:!1}),n&&this.setState({swipingLeftRight:!1});}},{key:"handleOnSwiped",value:function(e){var t=e.event,n=e.dir,i=e.velocity,r=this.props,a=r.disableSwipe,s=r.stopPropagation,o=r.flickThreshold;if(!a){var l=this.props.isRTL;s&&t.stopPropagation(),this.resetSwipingDirection();var u=(n===ee.LEFT?1:-1)*(l?-1:1),c=n===ee.UP||n===ee.DOWN,h=i>o&&!c;this.handleOnSwipedTo(u,h);}}},{key:"handleOnSwipedTo",value:function(e,t){var n=this.state,i=n.currentIndex,r=n.isTransitioning,a=i;!this.sufficientSwipe()&&!t||r||(a+=e),(-1===e&&!this.canSlideLeft()||1===e&&!this.canSlideRight())&&(a=i),this.unthrottledSlideToIndex(a);}},{key:"handleTouchMove",value:function(e){this.state.swipingLeftRight&&e.preventDefault();}},{key:"handleMouseDown",value:function(){this.imageGallery.current.classList.add("image-gallery-using-mouse");}},{key:"handleKeyDown",value:function(e){var t=this.props,n=t.disableKeyDown,i=t.useBrowserFullscreen,r=this.state.isFullscreen;if(this.imageGallery.current.classList.remove("image-gallery-using-mouse"),!n)switch(parseInt(e.keyCode||e.which||0,10)){case 37:this.canSlideLeft()&&!this.playPauseIntervalId&&this.slideLeft(e);break;case 39:this.canSlideRight()&&!this.playPauseIntervalId&&this.slideRight(e);break;case 27:r&&!i&&this.exitFullScreen();}}},{key:"handleImageError",value:function(e){var t=this.props.onErrorImageURL;t&&-1===e.target.src.indexOf(t)&&(e.target.src=t);}},{key:"removeResizeObserver",value:function(){this.resizeObserver&&this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&(this.resizeObserver.unobserve(this.imageGallerySlideWrapper.current),this.resizeObserver=null);}},{key:"handleResize",value:function(){var e=this.state.currentIndex;this.resizeObserver&&(this.imageGallery&&this.imageGallery.current&&this.setState({galleryWidth:this.imageGallery.current.offsetWidth}),this.imageGallerySlideWrapper&&this.imageGallerySlideWrapper.current&&this.setState({gallerySlideWrapperHeight:this.imageGallerySlideWrapper.current.offsetHeight}),this.thumbnailsWrapper&&this.thumbnailsWrapper.current&&(this.isThumbnailVertical()?this.setState({thumbnailsWrapperHeight:this.thumbnailsWrapper.current.offsetHeight}):this.setState({thumbnailsWrapperWidth:this.thumbnailsWrapper.current.offsetWidth})),this.setThumbsTranslate(-this.getThumbsTranslate(e)));}},{key:"initResizeObserver",value:function(e){var t=this;this.resizeObserver=new Z(L((function(e){e&&e.forEach((function(){t.handleResize();}));}),300)),this.resizeObserver.observe(e.current);}},{key:"toggleFullScreen",value:function(){this.state.isFullscreen?this.exitFullScreen():this.fullScreen();}},{key:"togglePlay",value:function(){this.playPauseIntervalId?this.pause():this.play();}},{key:"handleScreenChange",value:function(){var e=this.props,t=e.onScreenChange,n=e.useBrowserFullscreen,i=document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement,r=this.imageGallery.current===i;t&&t(r),n&&this.setState({isFullscreen:r});}},{key:"slideToIndex",value:function(e,t){var n=this.state,i=n.currentIndex,r=n.isTransitioning,a=this.props,s=a.items,o=a.slideDuration,l=a.onBeforeSlide;if(!r){t&&this.playPauseIntervalId&&(this.pause(!1),this.play(!1));var u=s.length-1,c=e;e<0?c=u:e>u&&(c=0),l&&c!==i&&l(c),this.setState({previousIndex:i,currentIndex:c,isTransitioning:c!==i,currentSlideOffset:0,slideStyle:{transition:"all ".concat(o,"ms ease-out")}},this.onSliding);}}},{key:"slideLeft",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"right":"left");}},{key:"slideRight",value:function(e){var t=this.props.isRTL;this.slideTo(e,t?"left":"right");}},{key:"slideTo",value:function(e,t){var n=this,i=this.state,r=i.currentIndex,a=i.currentSlideOffset,s=i.isTransitioning,o=this.props.items,l=r+("left"===t?-1:1);s||(2===o.length?this.setState({currentSlideOffset:a+("left"===t?.001:-.001),slideStyle:{transition:"none"}},(function(){window.setTimeout((function(){return n.slideToIndex(l,e)}),25);})):this.slideToIndex(l,e));}},{key:"handleThumbnailMouseOver",value:function(e,t){this.props.slideOnThumbnailOver&&this.onThumbnailMouseOver(e,t);}},{key:"handleThumbnailKeyUp",value:function(e,t){Le(e)&&this.onThumbnailClick(e,t);}},{key:"handleSlideKeyUp",value:function(e){Le(e)&&(0, this.props.onClick)(e);}},{key:"isThumbnailVertical",value:function(){var e=this.props.thumbnailPosition;return "left"===e||"right"===e}},{key:"addScreenChangeEvent",value:function(){var e=this;xe.forEach((function(t){document.addEventListener(t,e.handleScreenChange);}));}},{key:"removeScreenChangeEvent",value:function(){var e=this;xe.forEach((function(t){document.removeEventListener(t,e.handleScreenChange);}));}},{key:"fullScreen",value:function(){var e=this.props.useBrowserFullscreen,t=this.imageGallery.current;e?t.requestFullscreen?t.requestFullscreen():t.msRequestFullscreen?t.msRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():this.setModalFullscreen(!0):this.setModalFullscreen(!0),this.setState({isFullscreen:!0});}},{key:"exitFullScreen",value:function(){var e=this.state.isFullscreen,t=this.props.useBrowserFullscreen;e&&(t?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this.setModalFullscreen(!1):this.setModalFullscreen(!1),this.setState({isFullscreen:!1}));}},{key:"pauseOrPlay",value:function(){var e=this.props.infinite,t=this.state.currentIndex;e||this.canSlideRight()?this.slideToIndex(t+1):this.pause();}},{key:"play",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props,n=t.onPlay,i=t.slideInterval,r=t.slideDuration,a=this.state.currentIndex;this.playPauseIntervalId||(this.setState({isPlaying:!0}),this.playPauseIntervalId=window.setInterval(this.pauseOrPlay,Math.max(i,r)),n&&e&&n(a));}},{key:"pause",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.props.onPause,n=this.state.currentIndex;this.playPauseIntervalId&&(window.clearInterval(this.playPauseIntervalId),this.playPauseIntervalId=null,this.setState({isPlaying:!1}),t&&e&&t(n));}},{key:"isImageLoaded",value:function(e){return !!this.loadedImages[e.original]||(this.loadedImages[e.original]=!0,!1)}},{key:"handleImageLoaded",value:function(e,t){var n=this.props.onImageLoad;!this.loadedImages[t]&&n&&(this.loadedImages[t]=!0,n(e));}},{key:"renderItem",value:function(e){var t=this.state.isFullscreen,n=this.props.onImageError||this.handleImageError;return a().createElement(ie,{description:e.description,fullscreen:e.fullscreen,handleImageLoaded:this.handleImageLoaded,isFullscreen:t,onImageError:n,original:e.original,originalAlt:e.originalAlt,originalHeight:e.originalHeight,originalWidth:e.originalWidth,originalTitle:e.originalTitle,sizes:e.sizes,srcSet:e.srcSet})}},{key:"renderThumbInner",value:function(e){var t=this.props.onThumbnailError||this.handleImageError;return a().createElement("span",{className:"image-gallery-thumbnail-inner"},a().createElement("img",{className:"image-gallery-thumbnail-image",src:e.thumbnail,height:e.thumbnailHeight,width:e.thumbnailWidth,alt:e.thumbnailAlt,title:e.thumbnailTitle,onError:t}),e.thumbnailLabel&&a().createElement("div",{className:"image-gallery-thumbnail-label"},e.thumbnailLabel))}},{key:"render",value:function(){var e=this.state,n=e.currentIndex,i=e.isFullscreen,r=e.modalFullscreen,s=e.isPlaying,o=this.props,l=o.additionalClass,u=o.disableThumbnailSwipe,c=o.indexSeparator,h=o.isRTL,d=o.items,f=o.thumbnailPosition,p=o.renderFullscreenButton,m=o.renderCustomControls,v=o.renderLeftNav,g=o.renderRightNav,b=o.showBullets,y=o.showFullscreenButton,w=o.showIndex,T=o.showThumbnails,S=o.showNav,O=o.showPlayButton,E=o.renderPlayPauseButton,I=this.getThumbnailStyle(),k=this.getSlideItems(),x=k.slides,_=k.thumbnails,L=k.bullets,P=t("image-gallery-slide-wrapper",f,{"image-gallery-rtl":h}),M=a().createElement("div",{ref:this.imageGallerySlideWrapper,className:P},m&&m(),this.canSlide()?a().createElement(a().Fragment,null,S&&a().createElement(a().Fragment,null,v(this.slideLeft,!this.canSlideLeft()),g(this.slideRight,!this.canSlideRight())),a().createElement(ge,{className:"image-gallery-swipe",delta:0,onSwiping:this.handleSwiping,onSwiped:this.handleOnSwiped},a().createElement("div",{className:"image-gallery-slides"},x))):a().createElement("div",{className:"image-gallery-slides"},x),O&&E(this.togglePlay,s),b&&a().createElement("div",{className:"image-gallery-bullets"},a().createElement("div",{className:"image-gallery-bullets-container",role:"navigation","aria-label":"Bullet Navigation"},L)),y&&p(this.toggleFullScreen,i),w&&a().createElement("div",{className:"image-gallery-index"},a().createElement("span",{className:"image-gallery-index-current"},n+1),a().createElement("span",{className:"image-gallery-index-separator"},c),a().createElement("span",{className:"image-gallery-index-total"},d.length))),R=t("image-gallery",l,{"fullscreen-modal":r}),D=t("image-gallery-content",f,{fullscreen:i}),F=t("image-gallery-thumbnails-wrapper",f,{"thumbnails-wrapper-rtl":!this.isThumbnailVertical()&&h},{"thumbnails-swipe-horizontal":!this.isThumbnailVertical()&&!u},{"thumbnails-swipe-vertical":this.isThumbnailVertical()&&!u});return a().createElement("div",{ref:this.imageGallery,className:R,"aria-live":"polite"},a().createElement("div",{className:D},("bottom"===f||"right"===f)&&M,T&&_.length>0?a().createElement(ge,{className:F,delta:0,onSwiping:!u&&this.handleThumbnailSwiping,onSwiped:!u&&this.handleOnThumbnailSwiped},a().createElement("div",{className:"image-gallery-thumbnails",ref:this.thumbnailsWrapper,style:this.getThumbnailBarHeight()},a().createElement("div",{ref:this.thumbnails,className:"image-gallery-thumbnails-container",style:I,"aria-label":"Thumbnail Navigation"},_))):null,("top"===f||"left"===f)&&M))}}])&&Se(n.prototype,i),l}(a().Component);Pe.propTypes={flickThreshold:te.number,items:(0, te.arrayOf)((0, te.shape)({bulletClass:te.string,bulletOnClick:te.func,description:te.string,original:te.string,originalHeight:te.number,originalWidth:te.number,thumbnailHeight:te.number,thumbnailWidth:te.number,fullscreen:te.string,originalAlt:te.string,originalTitle:te.string,thumbnail:te.string,thumbnailAlt:te.string,thumbnailLabel:te.string,thumbnailTitle:te.string,originalClass:te.string,thumbnailClass:te.string,renderItem:te.func,renderThumbInner:te.func,imageSet:_e,srcSet:te.string,sizes:te.string})).isRequired,showNav:te.bool,autoPlay:te.bool,lazyLoad:te.bool,infinite:te.bool,showIndex:te.bool,showBullets:te.bool,showThumbnails:te.bool,showPlayButton:te.bool,showFullscreenButton:te.bool,disableThumbnailScroll:te.bool,disableKeyDown:te.bool,disableSwipe:te.bool,disableThumbnailSwipe:te.bool,useBrowserFullscreen:te.bool,onErrorImageURL:te.string,indexSeparator:te.string,thumbnailPosition:(0, te.oneOf)(["top","bottom","left","right"]),startIndex:te.number,slideDuration:te.number,slideInterval:te.number,slideOnThumbnailOver:te.bool,swipeThreshold:te.number,swipingTransitionDuration:te.number,swipingThumbnailTransitionDuration:te.number,onSlide:te.func,onBeforeSlide:te.func,onScreenChange:te.func,onPause:te.func,onPlay:te.func,onClick:te.func,onImageLoad:te.func,onImageError:te.func,onTouchMove:te.func,onTouchEnd:te.func,onTouchStart:te.func,onMouseOver:te.func,onMouseLeave:te.func,onThumbnailError:te.func,onThumbnailClick:te.func,renderCustomControls:te.func,renderLeftNav:te.func,renderRightNav:te.func,renderPlayPauseButton:te.func,renderFullscreenButton:te.func,renderItem:te.func,renderThumbInner:te.func,stopPropagation:te.bool,additionalClass:te.string,useTranslate3D:te.bool,isRTL:te.bool,useWindowKeyDown:te.bool},Pe.defaultProps={onErrorImageURL:"",additionalClass:"",showNav:!0,autoPlay:!1,lazyLoad:!1,infinite:!0,showIndex:!1,showBullets:!1,showThumbnails:!0,showPlayButton:!0,showFullscreenButton:!0,disableThumbnailScroll:!1,disableKeyDown:!1,disableSwipe:!1,disableThumbnailSwipe:!1,useTranslate3D:!0,isRTL:!1,useBrowserFullscreen:!0,flickThreshold:.4,stopPropagation:!1,indexSeparator:" / ",thumbnailPosition:"bottom",startIndex:0,slideDuration:450,swipingTransitionDuration:0,swipingThumbnailTransitionDuration:0,onSlide:null,onBeforeSlide:null,onScreenChange:null,onPause:null,onPlay:null,onClick:null,onImageLoad:null,onImageError:null,onTouchMove:null,onTouchEnd:null,onTouchStart:null,onMouseOver:null,onMouseLeave:null,onThumbnailError:null,onThumbnailClick:null,renderCustomControls:null,renderThumbInner:null,renderItem:null,slideInterval:3e3,slideOnThumbnailOver:!1,swipeThreshold:30,renderLeftNav:function(e,t){return a().createElement(ce,{onClick:e,disabled:t})},renderRightNav:function(e,t){return a().createElement(de,{onClick:e,disabled:t})},renderPlayPauseButton:function(e,t){return a().createElement(pe,{onClick:e,isPlaying:t})},renderFullscreenButton:function(e,t){return a().createElement(le,{onClick:e,isFullscreen:t})},useWindowKeyDown:!0};const Me=Pe;})(),r})()}));
5750
5694
  }(imageGallery));
5751
5695
 
5752
- var Gallery$1 = /*@__PURE__*/getDefaultExportFromCjs(imageGallery.exports);
5696
+ var Gallery = /*@__PURE__*/getDefaultExportFromCjs(imageGallery.exports);
5753
5697
 
5754
- var propTypes$1 = {exports: {}};
5698
+ var _templateObject$1, _templateObject2$1, _templateObject3$1;
5699
+ var SliderContainer = styled__default["default"].div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\nwidth: 100%;\n.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:''}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,0.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff}.carousel:hover .slide .legend{opacity:1}\n ul li {\n padding: 0 !important;\n }\n div img {\n object-fit: cover;\n }\n .carousel .thumbs-wrapper {\n margin: 16px;\n }\n max-width: 100%;\n width: 100%;\n .carousel .thumbs {\n padding: 0;\n }\n\n"])));
5700
+ styled__default["default"].section(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n position: relative;\n &.full {\n position: fixed;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n left: 0;\n top: 0;\n z-index: 9999;\n max-height: 100vh;\n overflow: hidden;\n background: #fff;\n }\n .fullscreen-button {\n cursor: ne-resize;\n position: absolute;\n left: 16px;\n top: 16px;\n }\n"])));
5701
+ var NewGallery = styled__default["default"].div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n.image-gallery-icon{\n color:#fff;\n transition:all .3s ease-out;\n appearance:none;\n background-color:transparent;\n border:0;\n cursor:pointer;\n outline:none;\n position:absolute;\n z-index:4;\n filter:drop-shadow(0 2px 2px #1a1a1a)\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-icon:hover{\n color:#337ab7\n }\n .image-gallery-icon:hover .image-gallery-svg{\n transform:scale(1.1)\n }\n}\n.image-gallery-icon:focus{\n outline:2px solid #337ab7\n}\n.image-gallery-using-mouse .image-gallery-icon:focus{\n outline:none\n}\n.image-gallery-fullscreen-button,.image-gallery-play-button{\n bottom:0;\n padding:20px\n}\n.image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:28px;\n width:28px\n}\n@media(max-width: 768px){\n .image-gallery-fullscreen-button,.image-gallery-play-button{\n padding:15px\n }\n .image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:24px;\n width:24px\n }\n}\n@media(max-width: 480px){\n .image-gallery-fullscreen-button,.image-gallery-play-button{\n padding:10px\n }\n .image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:16px;\n width:16px\n }\n}\n.image-gallery-fullscreen-button{\n right:0\n}\n.image-gallery-play-button{\n left:0\n}\n.image-gallery-left-nav,.image-gallery-right-nav{\n padding:50px 10px;\n top:50%;\n transform:translateY(-50%)\n}\n.image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:120px;\n width:60px\n}\n@media(max-width: 768px){\n .image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:72px;\n width:36px\n }\n}\n@media(max-width: 480px){\n .image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:48px;\n width:24px\n }\n}\n.image-gallery-left-nav[disabled],.image-gallery-right-nav[disabled]{\n cursor:disabled;\n opacity:.6;\n pointer-events:none\n}\n.image-gallery-left-nav{\n left:0\n}\n.image-gallery-right-nav{\n right:0\n}\n.image-gallery{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n -o-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n position:relative\n}\n.image-gallery.fullscreen-modal{\n background:#000;\n bottom:0;\n height:100%;\n left:0;\n position:fixed;\n right:0;\n top:0;\n width:100%;\n z-index:5\n}\n.image-gallery.fullscreen-modal .image-gallery-content{\n top:50%;\n transform:translateY(-50%)\n}\n.image-gallery-content{\n position:relative;\n line-height:0;\n top:0\n}\n.image-gallery-content.fullscreen{\n background:#000\n}\n.image-gallery-content .image-gallery-slide .image-gallery-image{\n max-height:calc(100vh - 80px)\n}\n.image-gallery-content.left .image-gallery-slide .image-gallery-image,.image-gallery-content.right .image-gallery-slide .image-gallery-image{\n max-height:100vh\n}\n.image-gallery-slide-wrapper{\n position:relative\n}\n.image-gallery-slide-wrapper.left,.image-gallery-slide-wrapper.right{\n display:inline-block;\n width:calc(100% - 110px)\n}\n@media(max-width: 768px){\n .image-gallery-slide-wrapper.left,.image-gallery-slide-wrapper.right{\n width:calc(100% - 87px)\n }\n}\n.image-gallery-slide-wrapper.image-gallery-rtl{\n direction:rtl\n}\n.image-gallery-slides{\n line-height:0;\n overflow:hidden;\n position:relative;\n white-space:nowrap;\n text-align:center\n}\n.image-gallery-slide{\n left:0;\n position:absolute;\n top:0;\n width:100%\n}\n.image-gallery-slide.center{\n position:relative\n}\n.image-gallery-slide .image-gallery-image{\n width:100%;\n object-fit:contain\n}\n.image-gallery-slide .image-gallery-description{\n background:rgba(0,0,0,.4);\n bottom:70px;\n color:#fff;\n left:0;\n line-height:1;\n padding:10px 20px;\n position:absolute;\n white-space:normal\n}\n@media(max-width: 768px){\n .image-gallery-slide .image-gallery-description{\n bottom:45px;\n font-size:.8em;\n padding:8px 15px\n }\n}\n.image-gallery-bullets{\n bottom:20px;\n left:0;\n margin:0 auto;\n position:absolute;\n right:0;\n width:80%;\n z-index:4\n}\n.image-gallery-bullets .image-gallery-bullets-container{\n margin:0;\n padding:0;\n text-align:center\n}\n.image-gallery-bullets .image-gallery-bullet{\n appearance:none;\n background-color:transparent;\n border:1px solid #fff;\n border-radius:50%;\n box-shadow:0 2px 2px #1a1a1a;\n cursor:pointer;\n display:inline-block;\n margin:0 5px;\n outline:none;\n padding:5px;\n transition:all .2s ease-out\n}\n@media(max-width: 768px){\n .image-gallery-bullets .image-gallery-bullet{\n margin:0 3px;\n padding:3px\n }\n}\n@media(max-width: 480px){\n .image-gallery-bullets .image-gallery-bullet{\n padding:2.7px\n }\n}\n.image-gallery-bullets .image-gallery-bullet:focus{\n transform:scale(1.2);\n background:#337ab7;\n border:1px solid #337ab7\n}\n.image-gallery-bullets .image-gallery-bullet.active{\n transform:scale(1.2);\n border:1px solid #fff;\n background:#fff\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-bullets .image-gallery-bullet:hover{\n background:#337ab7;\n border:1px solid #337ab7\n }\n .image-gallery-bullets .image-gallery-bullet.active:hover{\n background:#337ab7\n }\n}\n.image-gallery-thumbnails-wrapper{\n position:relative\n}\n.image-gallery-thumbnails-wrapper.thumbnails-swipe-horizontal{\n touch-action:pan-y\n}\n.image-gallery-thumbnails-wrapper.thumbnails-swipe-vertical{\n touch-action:pan-x\n}\n.image-gallery-thumbnails-wrapper.thumbnails-wrapper-rtl{\n direction:rtl\n}\n.image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n display:inline-block;\n vertical-align:top;\n width:100px\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n width:81px\n }\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails{\n height:100%;\n width:100%;\n left:0;\n padding:0;\n position:absolute;\n top:0\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail{\n display:block;\n margin-right:0;\n padding:0\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail{\n margin-left:0;\n margin-top:2px\n}\n.image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n margin:0 5px\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n margin:0 3px\n }\n}\n.image-gallery-thumbnails{\n overflow:hidden;\n padding:5px 0\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails{\n padding:3px 0\n }\n}\n.image-gallery-thumbnails .image-gallery-thumbnails-container{\n cursor:pointer;\n text-align:center;\n white-space:nowrap\n}\n.image-gallery-thumbnail{\n display:inline-block;\n border:4px solid transparent;\n transition:border .3s ease-out;\n width:100px;\n background:transparent;\n padding:0\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail{\n border:3px solid transparent;\n width:81px\n }\n}\n.image-gallery-thumbnail+.image-gallery-thumbnail{\n margin-left:2px\n}\n.image-gallery-thumbnail .image-gallery-thumbnail-inner{\n display:block;\n position:relative\n}\n.image-gallery-thumbnail .image-gallery-thumbnail-image{\n vertical-align:middle;\n width:100%;\n line-height:0\n}\n.image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{\n outline:none;\n border:4px solid #337ab7\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{\n border:3px solid #337ab7\n }\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-thumbnail:hover{\n outline:none;\n border:4px solid #337ab7\n }\n}\n@media(hover: hover)and (pointer: fine)and (max-width: 768px){\n .image-gallery-thumbnail:hover{\n border:3px solid #337ab7\n }\n}\n.image-gallery-thumbnail-label{\n box-sizing:border-box;\n color:#fff;\n font-size:1em;\n left:0;\n line-height:1em;\n padding:5%;\n position:absolute;\n top:50%;\n text-shadow:0 2px 2px #1a1a1a;\n transform:translateY(-50%);\n white-space:normal;\n width:100%\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail-label{\n font-size:.8em;\n line-height:.8em\n }\n}\n.image-gallery-index{\n background:rgba(0,0,0,.4);\n color:#fff;\n line-height:1;\n padding:10px 20px;\n position:absolute;\n right:0;\n top:0;\n z-index:4\n}\n@media(max-width: 768px){\n .image-gallery-index{\n font-size:.8em;\n padding:5px 10px\n }\n}\n"])));
5702
+
5703
+ function ImageGallery(_ref) {
5704
+ var options = _ref.options;
5705
+
5706
+ if (!options.content || options.content.length < 1) {
5707
+ return /*#__PURE__*/React__default["default"].createElement("div", null);
5708
+ }
5709
+
5710
+ var items = options.content.map(transform);
5711
+ return /*#__PURE__*/React__default["default"].createElement(NewGallery, null, /*#__PURE__*/React__default["default"].createElement(Gallery, {
5712
+ items: items,
5713
+ showThumbnails: true,
5714
+ thumbnailPosition: "right"
5715
+ }));
5716
+ }
5717
+
5718
+ function transform(item) {
5719
+ return {
5720
+ original: "https://cdn.burobork.nl/".concat(item.reference),
5721
+ thumbnail: "https://cdn.burobork.nl/".concat(item.reference),
5722
+ originalAlt: item.alt,
5723
+ originalTitle: item.title,
5724
+ lazyLoad: true
5725
+ };
5726
+ }
5727
+
5728
+ var js = {};
5729
+
5730
+ var Carousel$1 = {};
5731
+
5732
+ var lib$1 = {};
5733
+
5734
+ var reactSwipe = {};
5735
+
5736
+ var propTypes = {exports: {}};
5755
5737
 
5756
5738
  /**
5757
5739
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5760,9 +5742,9 @@ var propTypes$1 = {exports: {}};
5760
5742
  * LICENSE file in the root directory of this source tree.
5761
5743
  */
5762
5744
 
5763
- var ReactPropTypesSecret$7 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5745
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5764
5746
 
5765
- var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
5747
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
5766
5748
 
5767
5749
  /**
5768
5750
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5771,14 +5753,14 @@ var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
5771
5753
  * LICENSE file in the root directory of this source tree.
5772
5754
  */
5773
5755
 
5774
- var printWarning$3 = function() {};
5756
+ var printWarning$1 = function() {};
5775
5757
 
5776
5758
  if (process.env.NODE_ENV !== 'production') {
5777
- var ReactPropTypesSecret$6 = ReactPropTypesSecret_1$1;
5778
- var loggedTypeFailures$1 = {};
5779
- var has$3 = Function.call.bind(Object.prototype.hasOwnProperty);
5759
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
5760
+ var loggedTypeFailures = {};
5761
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
5780
5762
 
5781
- printWarning$3 = function(text) {
5763
+ printWarning$1 = function(text) {
5782
5764
  var message = 'Warning: ' + text;
5783
5765
  if (typeof console !== 'undefined') {
5784
5766
  console.error(message);
@@ -5803,10 +5785,10 @@ if (process.env.NODE_ENV !== 'production') {
5803
5785
  * @param {?Function} getStack Returns the component stack.
5804
5786
  * @private
5805
5787
  */
5806
- function checkPropTypes$3(typeSpecs, values, location, componentName, getStack) {
5788
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
5807
5789
  if (process.env.NODE_ENV !== 'production') {
5808
5790
  for (var typeSpecName in typeSpecs) {
5809
- if (has$3(typeSpecs, typeSpecName)) {
5791
+ if (has$1(typeSpecs, typeSpecName)) {
5810
5792
  var error;
5811
5793
  // Prop type validation may throw. In case they do, we don't want to
5812
5794
  // fail the render phase where it didn't fail before. So we log it.
@@ -5822,12 +5804,12 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
5822
5804
  err.name = 'Invariant Violation';
5823
5805
  throw err;
5824
5806
  }
5825
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$6);
5807
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
5826
5808
  } catch (ex) {
5827
5809
  error = ex;
5828
5810
  }
5829
5811
  if (error && !(error instanceof Error)) {
5830
- printWarning$3(
5812
+ printWarning$1(
5831
5813
  (componentName || 'React class') + ': type specification of ' +
5832
5814
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
5833
5815
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -5836,14 +5818,14 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
5836
5818
  'shape all require an argument).'
5837
5819
  );
5838
5820
  }
5839
- if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
5821
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
5840
5822
  // Only monitor this failure once because there tends to be a lot of the
5841
5823
  // same error.
5842
- loggedTypeFailures$1[error.message] = true;
5824
+ loggedTypeFailures[error.message] = true;
5843
5825
 
5844
5826
  var stack = getStack ? getStack() : '';
5845
5827
 
5846
- printWarning$3(
5828
+ printWarning$1(
5847
5829
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
5848
5830
  );
5849
5831
  }
@@ -5857,13 +5839,13 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
5857
5839
  *
5858
5840
  * @private
5859
5841
  */
5860
- checkPropTypes$3.resetWarningCache = function() {
5842
+ checkPropTypes$1.resetWarningCache = function() {
5861
5843
  if (process.env.NODE_ENV !== 'production') {
5862
- loggedTypeFailures$1 = {};
5844
+ loggedTypeFailures = {};
5863
5845
  }
5864
5846
  };
5865
5847
 
5866
- var checkPropTypes_1$1 = checkPropTypes$3;
5848
+ var checkPropTypes_1 = checkPropTypes$1;
5867
5849
 
5868
5850
  /**
5869
5851
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5872,17 +5854,17 @@ var checkPropTypes_1$1 = checkPropTypes$3;
5872
5854
  * LICENSE file in the root directory of this source tree.
5873
5855
  */
5874
5856
 
5875
- var ReactIs$3 = reactIs$1.exports;
5876
- var assign$1 = objectAssign;
5857
+ var ReactIs$1 = reactIs$1.exports;
5858
+ var assign = objectAssign;
5877
5859
 
5878
- var ReactPropTypesSecret$5 = ReactPropTypesSecret_1$1;
5879
- var checkPropTypes$2 = checkPropTypes_1$1;
5860
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
5861
+ var checkPropTypes = checkPropTypes_1;
5880
5862
 
5881
- var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
5882
- var printWarning$2 = function() {};
5863
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
5864
+ var printWarning = function() {};
5883
5865
 
5884
5866
  if (process.env.NODE_ENV !== 'production') {
5885
- printWarning$2 = function(text) {
5867
+ printWarning = function(text) {
5886
5868
  var message = 'Warning: ' + text;
5887
5869
  if (typeof console !== 'undefined') {
5888
5870
  console.error(message);
@@ -5896,11 +5878,11 @@ if (process.env.NODE_ENV !== 'production') {
5896
5878
  };
5897
5879
  }
5898
5880
 
5899
- function emptyFunctionThatReturnsNull$1() {
5881
+ function emptyFunctionThatReturnsNull() {
5900
5882
  return null;
5901
5883
  }
5902
5884
 
5903
- var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
5885
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
5904
5886
  /* global Symbol */
5905
5887
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5906
5888
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -6040,7 +6022,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6040
6022
  componentName = componentName || ANONYMOUS;
6041
6023
  propFullName = propFullName || propName;
6042
6024
 
6043
- if (secret !== ReactPropTypesSecret$5) {
6025
+ if (secret !== ReactPropTypesSecret$1) {
6044
6026
  if (throwOnDirectAccess) {
6045
6027
  // New behavior only for users of `prop-types` package
6046
6028
  var err = new Error(
@@ -6058,7 +6040,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6058
6040
  // Avoid spamming the console because they are often not actionable except for lib authors
6059
6041
  manualPropTypeWarningCount < 3
6060
6042
  ) {
6061
- printWarning$2(
6043
+ printWarning(
6062
6044
  'You are manually calling a React.PropTypes validation ' +
6063
6045
  'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
6064
6046
  'and will throw in the standalone `prop-types` package. ' +
@@ -6107,7 +6089,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6107
6089
  }
6108
6090
 
6109
6091
  function createAnyTypeChecker() {
6110
- return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
6092
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
6111
6093
  }
6112
6094
 
6113
6095
  function createArrayOfTypeChecker(typeChecker) {
@@ -6121,7 +6103,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6121
6103
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
6122
6104
  }
6123
6105
  for (var i = 0; i < propValue.length; i++) {
6124
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$5);
6106
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
6125
6107
  if (error instanceof Error) {
6126
6108
  return error;
6127
6109
  }
@@ -6146,7 +6128,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6146
6128
  function createElementTypeTypeChecker() {
6147
6129
  function validate(props, propName, componentName, location, propFullName) {
6148
6130
  var propValue = props[propName];
6149
- if (!ReactIs$3.isValidElementType(propValue)) {
6131
+ if (!ReactIs$1.isValidElementType(propValue)) {
6150
6132
  var propType = getPropType(propValue);
6151
6133
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
6152
6134
  }
@@ -6171,15 +6153,15 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6171
6153
  if (!Array.isArray(expectedValues)) {
6172
6154
  if (process.env.NODE_ENV !== 'production') {
6173
6155
  if (arguments.length > 1) {
6174
- printWarning$2(
6156
+ printWarning(
6175
6157
  'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
6176
6158
  'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
6177
6159
  );
6178
6160
  } else {
6179
- printWarning$2('Invalid argument supplied to oneOf, expected an array.');
6161
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
6180
6162
  }
6181
6163
  }
6182
- return emptyFunctionThatReturnsNull$1;
6164
+ return emptyFunctionThatReturnsNull;
6183
6165
  }
6184
6166
 
6185
6167
  function validate(props, propName, componentName, location, propFullName) {
@@ -6213,8 +6195,8 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6213
6195
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
6214
6196
  }
6215
6197
  for (var key in propValue) {
6216
- if (has$2(propValue, key)) {
6217
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6198
+ if (has(propValue, key)) {
6199
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
6218
6200
  if (error instanceof Error) {
6219
6201
  return error;
6220
6202
  }
@@ -6227,2443 +6209,25 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
6227
6209
 
6228
6210
  function createUnionTypeChecker(arrayOfTypeCheckers) {
6229
6211
  if (!Array.isArray(arrayOfTypeCheckers)) {
6230
- process.env.NODE_ENV !== 'production' ? printWarning$2('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
6231
- return emptyFunctionThatReturnsNull$1;
6212
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
6213
+ return emptyFunctionThatReturnsNull;
6232
6214
  }
6233
6215
 
6234
6216
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6235
6217
  var checker = arrayOfTypeCheckers[i];
6236
6218
  if (typeof checker !== 'function') {
6237
- printWarning$2(
6219
+ printWarning(
6238
6220
  'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
6239
6221
  'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
6240
6222
  );
6241
- return emptyFunctionThatReturnsNull$1;
6223
+ return emptyFunctionThatReturnsNull;
6242
6224
  }
6243
6225
  }
6244
6226
 
6245
6227
  function validate(props, propName, componentName, location, propFullName) {
6246
6228
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6247
6229
  var checker = arrayOfTypeCheckers[i];
6248
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5) == null) {
6249
- return null;
6250
- }
6251
- }
6252
-
6253
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
6254
- }
6255
- return createChainableTypeChecker(validate);
6256
- }
6257
-
6258
- function createNodeChecker() {
6259
- function validate(props, propName, componentName, location, propFullName) {
6260
- if (!isNode(props[propName])) {
6261
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
6262
- }
6263
- return null;
6264
- }
6265
- return createChainableTypeChecker(validate);
6266
- }
6267
-
6268
- function createShapeTypeChecker(shapeTypes) {
6269
- function validate(props, propName, componentName, location, propFullName) {
6270
- var propValue = props[propName];
6271
- var propType = getPropType(propValue);
6272
- if (propType !== 'object') {
6273
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6274
- }
6275
- for (var key in shapeTypes) {
6276
- var checker = shapeTypes[key];
6277
- if (!checker) {
6278
- continue;
6279
- }
6280
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6281
- if (error) {
6282
- return error;
6283
- }
6284
- }
6285
- return null;
6286
- }
6287
- return createChainableTypeChecker(validate);
6288
- }
6289
-
6290
- function createStrictShapeTypeChecker(shapeTypes) {
6291
- function validate(props, propName, componentName, location, propFullName) {
6292
- var propValue = props[propName];
6293
- var propType = getPropType(propValue);
6294
- if (propType !== 'object') {
6295
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6296
- }
6297
- // We need to check all keys in case some are required but missing from
6298
- // props.
6299
- var allKeys = assign$1({}, props[propName], shapeTypes);
6300
- for (var key in allKeys) {
6301
- var checker = shapeTypes[key];
6302
- if (!checker) {
6303
- return new PropTypeError(
6304
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
6305
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
6306
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
6307
- );
6308
- }
6309
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6310
- if (error) {
6311
- return error;
6312
- }
6313
- }
6314
- return null;
6315
- }
6316
-
6317
- return createChainableTypeChecker(validate);
6318
- }
6319
-
6320
- function isNode(propValue) {
6321
- switch (typeof propValue) {
6322
- case 'number':
6323
- case 'string':
6324
- case 'undefined':
6325
- return true;
6326
- case 'boolean':
6327
- return !propValue;
6328
- case 'object':
6329
- if (Array.isArray(propValue)) {
6330
- return propValue.every(isNode);
6331
- }
6332
- if (propValue === null || isValidElement(propValue)) {
6333
- return true;
6334
- }
6335
-
6336
- var iteratorFn = getIteratorFn(propValue);
6337
- if (iteratorFn) {
6338
- var iterator = iteratorFn.call(propValue);
6339
- var step;
6340
- if (iteratorFn !== propValue.entries) {
6341
- while (!(step = iterator.next()).done) {
6342
- if (!isNode(step.value)) {
6343
- return false;
6344
- }
6345
- }
6346
- } else {
6347
- // Iterator will provide entry [k,v] tuples rather than values.
6348
- while (!(step = iterator.next()).done) {
6349
- var entry = step.value;
6350
- if (entry) {
6351
- if (!isNode(entry[1])) {
6352
- return false;
6353
- }
6354
- }
6355
- }
6356
- }
6357
- } else {
6358
- return false;
6359
- }
6360
-
6361
- return true;
6362
- default:
6363
- return false;
6364
- }
6365
- }
6366
-
6367
- function isSymbol(propType, propValue) {
6368
- // Native Symbol.
6369
- if (propType === 'symbol') {
6370
- return true;
6371
- }
6372
-
6373
- // falsy value can't be a Symbol
6374
- if (!propValue) {
6375
- return false;
6376
- }
6377
-
6378
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
6379
- if (propValue['@@toStringTag'] === 'Symbol') {
6380
- return true;
6381
- }
6382
-
6383
- // Fallback for non-spec compliant Symbols which are polyfilled.
6384
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
6385
- return true;
6386
- }
6387
-
6388
- return false;
6389
- }
6390
-
6391
- // Equivalent of `typeof` but with special handling for array and regexp.
6392
- function getPropType(propValue) {
6393
- var propType = typeof propValue;
6394
- if (Array.isArray(propValue)) {
6395
- return 'array';
6396
- }
6397
- if (propValue instanceof RegExp) {
6398
- // Old webkits (at least until Android 4.0) return 'function' rather than
6399
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
6400
- // passes PropTypes.object.
6401
- return 'object';
6402
- }
6403
- if (isSymbol(propType, propValue)) {
6404
- return 'symbol';
6405
- }
6406
- return propType;
6407
- }
6408
-
6409
- // This handles more types than `getPropType`. Only used for error messages.
6410
- // See `createPrimitiveTypeChecker`.
6411
- function getPreciseType(propValue) {
6412
- if (typeof propValue === 'undefined' || propValue === null) {
6413
- return '' + propValue;
6414
- }
6415
- var propType = getPropType(propValue);
6416
- if (propType === 'object') {
6417
- if (propValue instanceof Date) {
6418
- return 'date';
6419
- } else if (propValue instanceof RegExp) {
6420
- return 'regexp';
6421
- }
6422
- }
6423
- return propType;
6424
- }
6425
-
6426
- // Returns a string that is postfixed to a warning about an invalid type.
6427
- // For example, "undefined" or "of type array"
6428
- function getPostfixForTypeWarning(value) {
6429
- var type = getPreciseType(value);
6430
- switch (type) {
6431
- case 'array':
6432
- case 'object':
6433
- return 'an ' + type;
6434
- case 'boolean':
6435
- case 'date':
6436
- case 'regexp':
6437
- return 'a ' + type;
6438
- default:
6439
- return type;
6440
- }
6441
- }
6442
-
6443
- // Returns class name of the object, if any.
6444
- function getClassName(propValue) {
6445
- if (!propValue.constructor || !propValue.constructor.name) {
6446
- return ANONYMOUS;
6447
- }
6448
- return propValue.constructor.name;
6449
- }
6450
-
6451
- ReactPropTypes.checkPropTypes = checkPropTypes$2;
6452
- ReactPropTypes.resetWarningCache = checkPropTypes$2.resetWarningCache;
6453
- ReactPropTypes.PropTypes = ReactPropTypes;
6454
-
6455
- return ReactPropTypes;
6456
- };
6457
-
6458
- /**
6459
- * Copyright (c) 2013-present, Facebook, Inc.
6460
- *
6461
- * This source code is licensed under the MIT license found in the
6462
- * LICENSE file in the root directory of this source tree.
6463
- */
6464
-
6465
- var ReactPropTypesSecret$4 = ReactPropTypesSecret_1$1;
6466
-
6467
- function emptyFunction$1() {}
6468
- function emptyFunctionWithReset$1() {}
6469
- emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
6470
-
6471
- var factoryWithThrowingShims$1 = function() {
6472
- function shim(props, propName, componentName, location, propFullName, secret) {
6473
- if (secret === ReactPropTypesSecret$4) {
6474
- // It is still safe when called from React.
6475
- return;
6476
- }
6477
- var err = new Error(
6478
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
6479
- 'Use PropTypes.checkPropTypes() to call them. ' +
6480
- 'Read more at http://fb.me/use-check-prop-types'
6481
- );
6482
- err.name = 'Invariant Violation';
6483
- throw err;
6484
- } shim.isRequired = shim;
6485
- function getShim() {
6486
- return shim;
6487
- } // Important!
6488
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
6489
- var ReactPropTypes = {
6490
- array: shim,
6491
- bool: shim,
6492
- func: shim,
6493
- number: shim,
6494
- object: shim,
6495
- string: shim,
6496
- symbol: shim,
6497
-
6498
- any: shim,
6499
- arrayOf: getShim,
6500
- element: shim,
6501
- elementType: shim,
6502
- instanceOf: getShim,
6503
- node: shim,
6504
- objectOf: getShim,
6505
- oneOf: getShim,
6506
- oneOfType: getShim,
6507
- shape: getShim,
6508
- exact: getShim,
6509
-
6510
- checkPropTypes: emptyFunctionWithReset$1,
6511
- resetWarningCache: emptyFunction$1
6512
- };
6513
-
6514
- ReactPropTypes.PropTypes = ReactPropTypes;
6515
-
6516
- return ReactPropTypes;
6517
- };
6518
-
6519
- /**
6520
- * Copyright (c) 2013-present, Facebook, Inc.
6521
- *
6522
- * This source code is licensed under the MIT license found in the
6523
- * LICENSE file in the root directory of this source tree.
6524
- */
6525
-
6526
- if (process.env.NODE_ENV !== 'production') {
6527
- var ReactIs$2 = reactIs$1.exports;
6528
-
6529
- // By explicitly using `prop-types` you are opting into new development behavior.
6530
- // http://fb.me/prop-types-in-prod
6531
- var throwOnDirectAccess$1 = true;
6532
- propTypes$1.exports = factoryWithTypeCheckers$1(ReactIs$2.isElement, throwOnDirectAccess$1);
6533
- } else {
6534
- // By explicitly using `prop-types` you are opting into new production behavior.
6535
- // http://fb.me/prop-types-in-prod
6536
- propTypes$1.exports = factoryWithThrowingShims$1();
6537
- }
6538
-
6539
- var PropTypes = propTypes$1.exports;
6540
-
6541
- /**
6542
- * A collection of shims that provide minimal functionality of the ES6 collections.
6543
- *
6544
- * These implementations are not meant to be used outside of the ResizeObserver
6545
- * modules as they cover only a limited range of use cases.
6546
- */
6547
- /* eslint-disable require-jsdoc, valid-jsdoc */
6548
- var MapShim = (function () {
6549
- if (typeof Map !== 'undefined') {
6550
- return Map;
6551
- }
6552
- /**
6553
- * Returns index in provided array that matches the specified key.
6554
- *
6555
- * @param {Array<Array>} arr
6556
- * @param {*} key
6557
- * @returns {number}
6558
- */
6559
- function getIndex(arr, key) {
6560
- var result = -1;
6561
- arr.some(function (entry, index) {
6562
- if (entry[0] === key) {
6563
- result = index;
6564
- return true;
6565
- }
6566
- return false;
6567
- });
6568
- return result;
6569
- }
6570
- return /** @class */ (function () {
6571
- function class_1() {
6572
- this.__entries__ = [];
6573
- }
6574
- Object.defineProperty(class_1.prototype, "size", {
6575
- /**
6576
- * @returns {boolean}
6577
- */
6578
- get: function () {
6579
- return this.__entries__.length;
6580
- },
6581
- enumerable: true,
6582
- configurable: true
6583
- });
6584
- /**
6585
- * @param {*} key
6586
- * @returns {*}
6587
- */
6588
- class_1.prototype.get = function (key) {
6589
- var index = getIndex(this.__entries__, key);
6590
- var entry = this.__entries__[index];
6591
- return entry && entry[1];
6592
- };
6593
- /**
6594
- * @param {*} key
6595
- * @param {*} value
6596
- * @returns {void}
6597
- */
6598
- class_1.prototype.set = function (key, value) {
6599
- var index = getIndex(this.__entries__, key);
6600
- if (~index) {
6601
- this.__entries__[index][1] = value;
6602
- }
6603
- else {
6604
- this.__entries__.push([key, value]);
6605
- }
6606
- };
6607
- /**
6608
- * @param {*} key
6609
- * @returns {void}
6610
- */
6611
- class_1.prototype.delete = function (key) {
6612
- var entries = this.__entries__;
6613
- var index = getIndex(entries, key);
6614
- if (~index) {
6615
- entries.splice(index, 1);
6616
- }
6617
- };
6618
- /**
6619
- * @param {*} key
6620
- * @returns {void}
6621
- */
6622
- class_1.prototype.has = function (key) {
6623
- return !!~getIndex(this.__entries__, key);
6624
- };
6625
- /**
6626
- * @returns {void}
6627
- */
6628
- class_1.prototype.clear = function () {
6629
- this.__entries__.splice(0);
6630
- };
6631
- /**
6632
- * @param {Function} callback
6633
- * @param {*} [ctx=null]
6634
- * @returns {void}
6635
- */
6636
- class_1.prototype.forEach = function (callback, ctx) {
6637
- if (ctx === void 0) { ctx = null; }
6638
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
6639
- var entry = _a[_i];
6640
- callback.call(ctx, entry[1], entry[0]);
6641
- }
6642
- };
6643
- return class_1;
6644
- }());
6645
- })();
6646
-
6647
- /**
6648
- * Detects whether window and document objects are available in current environment.
6649
- */
6650
- var isBrowser$1 = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
6651
-
6652
- // Returns global object of a current environment.
6653
- var global$1 = (function () {
6654
- if (typeof global !== 'undefined' && global.Math === Math) {
6655
- return global;
6656
- }
6657
- if (typeof self !== 'undefined' && self.Math === Math) {
6658
- return self;
6659
- }
6660
- if (typeof window !== 'undefined' && window.Math === Math) {
6661
- return window;
6662
- }
6663
- // eslint-disable-next-line no-new-func
6664
- return Function('return this')();
6665
- })();
6666
-
6667
- /**
6668
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
6669
- * first one is not supported.
6670
- *
6671
- * @returns {number} Requests' identifier.
6672
- */
6673
- var requestAnimationFrame$1 = (function () {
6674
- if (typeof requestAnimationFrame === 'function') {
6675
- // It's required to use a bounded function because IE sometimes throws
6676
- // an "Invalid calling object" error if rAF is invoked without the global
6677
- // object on the left hand side.
6678
- return requestAnimationFrame.bind(global$1);
6679
- }
6680
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
6681
- })();
6682
-
6683
- // Defines minimum timeout before adding a trailing call.
6684
- var trailingTimeout = 2;
6685
- /**
6686
- * Creates a wrapper function which ensures that provided callback will be
6687
- * invoked only once during the specified delay period.
6688
- *
6689
- * @param {Function} callback - Function to be invoked after the delay period.
6690
- * @param {number} delay - Delay after which to invoke callback.
6691
- * @returns {Function}
6692
- */
6693
- function throttle (callback, delay) {
6694
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
6695
- /**
6696
- * Invokes the original callback function and schedules new invocation if
6697
- * the "proxy" was called during current request.
6698
- *
6699
- * @returns {void}
6700
- */
6701
- function resolvePending() {
6702
- if (leadingCall) {
6703
- leadingCall = false;
6704
- callback();
6705
- }
6706
- if (trailingCall) {
6707
- proxy();
6708
- }
6709
- }
6710
- /**
6711
- * Callback invoked after the specified delay. It will further postpone
6712
- * invocation of the original function delegating it to the
6713
- * requestAnimationFrame.
6714
- *
6715
- * @returns {void}
6716
- */
6717
- function timeoutCallback() {
6718
- requestAnimationFrame$1(resolvePending);
6719
- }
6720
- /**
6721
- * Schedules invocation of the original function.
6722
- *
6723
- * @returns {void}
6724
- */
6725
- function proxy() {
6726
- var timeStamp = Date.now();
6727
- if (leadingCall) {
6728
- // Reject immediately following calls.
6729
- if (timeStamp - lastCallTime < trailingTimeout) {
6730
- return;
6731
- }
6732
- // Schedule new call to be in invoked when the pending one is resolved.
6733
- // This is important for "transitions" which never actually start
6734
- // immediately so there is a chance that we might miss one if change
6735
- // happens amids the pending invocation.
6736
- trailingCall = true;
6737
- }
6738
- else {
6739
- leadingCall = true;
6740
- trailingCall = false;
6741
- setTimeout(timeoutCallback, delay);
6742
- }
6743
- lastCallTime = timeStamp;
6744
- }
6745
- return proxy;
6746
- }
6747
-
6748
- // Minimum delay before invoking the update of observers.
6749
- var REFRESH_DELAY = 20;
6750
- // A list of substrings of CSS properties used to find transition events that
6751
- // might affect dimensions of observed elements.
6752
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
6753
- // Check if MutationObserver is available.
6754
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
6755
- /**
6756
- * Singleton controller class which handles updates of ResizeObserver instances.
6757
- */
6758
- var ResizeObserverController = /** @class */ (function () {
6759
- /**
6760
- * Creates a new instance of ResizeObserverController.
6761
- *
6762
- * @private
6763
- */
6764
- function ResizeObserverController() {
6765
- /**
6766
- * Indicates whether DOM listeners have been added.
6767
- *
6768
- * @private {boolean}
6769
- */
6770
- this.connected_ = false;
6771
- /**
6772
- * Tells that controller has subscribed for Mutation Events.
6773
- *
6774
- * @private {boolean}
6775
- */
6776
- this.mutationEventsAdded_ = false;
6777
- /**
6778
- * Keeps reference to the instance of MutationObserver.
6779
- *
6780
- * @private {MutationObserver}
6781
- */
6782
- this.mutationsObserver_ = null;
6783
- /**
6784
- * A list of connected observers.
6785
- *
6786
- * @private {Array<ResizeObserverSPI>}
6787
- */
6788
- this.observers_ = [];
6789
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
6790
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
6791
- }
6792
- /**
6793
- * Adds observer to observers list.
6794
- *
6795
- * @param {ResizeObserverSPI} observer - Observer to be added.
6796
- * @returns {void}
6797
- */
6798
- ResizeObserverController.prototype.addObserver = function (observer) {
6799
- if (!~this.observers_.indexOf(observer)) {
6800
- this.observers_.push(observer);
6801
- }
6802
- // Add listeners if they haven't been added yet.
6803
- if (!this.connected_) {
6804
- this.connect_();
6805
- }
6806
- };
6807
- /**
6808
- * Removes observer from observers list.
6809
- *
6810
- * @param {ResizeObserverSPI} observer - Observer to be removed.
6811
- * @returns {void}
6812
- */
6813
- ResizeObserverController.prototype.removeObserver = function (observer) {
6814
- var observers = this.observers_;
6815
- var index = observers.indexOf(observer);
6816
- // Remove observer if it's present in registry.
6817
- if (~index) {
6818
- observers.splice(index, 1);
6819
- }
6820
- // Remove listeners if controller has no connected observers.
6821
- if (!observers.length && this.connected_) {
6822
- this.disconnect_();
6823
- }
6824
- };
6825
- /**
6826
- * Invokes the update of observers. It will continue running updates insofar
6827
- * it detects changes.
6828
- *
6829
- * @returns {void}
6830
- */
6831
- ResizeObserverController.prototype.refresh = function () {
6832
- var changesDetected = this.updateObservers_();
6833
- // Continue running updates if changes have been detected as there might
6834
- // be future ones caused by CSS transitions.
6835
- if (changesDetected) {
6836
- this.refresh();
6837
- }
6838
- };
6839
- /**
6840
- * Updates every observer from observers list and notifies them of queued
6841
- * entries.
6842
- *
6843
- * @private
6844
- * @returns {boolean} Returns "true" if any observer has detected changes in
6845
- * dimensions of it's elements.
6846
- */
6847
- ResizeObserverController.prototype.updateObservers_ = function () {
6848
- // Collect observers that have active observations.
6849
- var activeObservers = this.observers_.filter(function (observer) {
6850
- return observer.gatherActive(), observer.hasActive();
6851
- });
6852
- // Deliver notifications in a separate cycle in order to avoid any
6853
- // collisions between observers, e.g. when multiple instances of
6854
- // ResizeObserver are tracking the same element and the callback of one
6855
- // of them changes content dimensions of the observed target. Sometimes
6856
- // this may result in notifications being blocked for the rest of observers.
6857
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
6858
- return activeObservers.length > 0;
6859
- };
6860
- /**
6861
- * Initializes DOM listeners.
6862
- *
6863
- * @private
6864
- * @returns {void}
6865
- */
6866
- ResizeObserverController.prototype.connect_ = function () {
6867
- // Do nothing if running in a non-browser environment or if listeners
6868
- // have been already added.
6869
- if (!isBrowser$1 || this.connected_) {
6870
- return;
6871
- }
6872
- // Subscription to the "Transitionend" event is used as a workaround for
6873
- // delayed transitions. This way it's possible to capture at least the
6874
- // final state of an element.
6875
- document.addEventListener('transitionend', this.onTransitionEnd_);
6876
- window.addEventListener('resize', this.refresh);
6877
- if (mutationObserverSupported) {
6878
- this.mutationsObserver_ = new MutationObserver(this.refresh);
6879
- this.mutationsObserver_.observe(document, {
6880
- attributes: true,
6881
- childList: true,
6882
- characterData: true,
6883
- subtree: true
6884
- });
6885
- }
6886
- else {
6887
- document.addEventListener('DOMSubtreeModified', this.refresh);
6888
- this.mutationEventsAdded_ = true;
6889
- }
6890
- this.connected_ = true;
6891
- };
6892
- /**
6893
- * Removes DOM listeners.
6894
- *
6895
- * @private
6896
- * @returns {void}
6897
- */
6898
- ResizeObserverController.prototype.disconnect_ = function () {
6899
- // Do nothing if running in a non-browser environment or if listeners
6900
- // have been already removed.
6901
- if (!isBrowser$1 || !this.connected_) {
6902
- return;
6903
- }
6904
- document.removeEventListener('transitionend', this.onTransitionEnd_);
6905
- window.removeEventListener('resize', this.refresh);
6906
- if (this.mutationsObserver_) {
6907
- this.mutationsObserver_.disconnect();
6908
- }
6909
- if (this.mutationEventsAdded_) {
6910
- document.removeEventListener('DOMSubtreeModified', this.refresh);
6911
- }
6912
- this.mutationsObserver_ = null;
6913
- this.mutationEventsAdded_ = false;
6914
- this.connected_ = false;
6915
- };
6916
- /**
6917
- * "Transitionend" event handler.
6918
- *
6919
- * @private
6920
- * @param {TransitionEvent} event
6921
- * @returns {void}
6922
- */
6923
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
6924
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
6925
- // Detect whether transition may affect dimensions of an element.
6926
- var isReflowProperty = transitionKeys.some(function (key) {
6927
- return !!~propertyName.indexOf(key);
6928
- });
6929
- if (isReflowProperty) {
6930
- this.refresh();
6931
- }
6932
- };
6933
- /**
6934
- * Returns instance of the ResizeObserverController.
6935
- *
6936
- * @returns {ResizeObserverController}
6937
- */
6938
- ResizeObserverController.getInstance = function () {
6939
- if (!this.instance_) {
6940
- this.instance_ = new ResizeObserverController();
6941
- }
6942
- return this.instance_;
6943
- };
6944
- /**
6945
- * Holds reference to the controller's instance.
6946
- *
6947
- * @private {ResizeObserverController}
6948
- */
6949
- ResizeObserverController.instance_ = null;
6950
- return ResizeObserverController;
6951
- }());
6952
-
6953
- /**
6954
- * Defines non-writable/enumerable properties of the provided target object.
6955
- *
6956
- * @param {Object} target - Object for which to define properties.
6957
- * @param {Object} props - Properties to be defined.
6958
- * @returns {Object} Target object.
6959
- */
6960
- var defineConfigurable = (function (target, props) {
6961
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
6962
- var key = _a[_i];
6963
- Object.defineProperty(target, key, {
6964
- value: props[key],
6965
- enumerable: false,
6966
- writable: false,
6967
- configurable: true
6968
- });
6969
- }
6970
- return target;
6971
- });
6972
-
6973
- /**
6974
- * Returns the global object associated with provided element.
6975
- *
6976
- * @param {Object} target
6977
- * @returns {Object}
6978
- */
6979
- var getWindowOf = (function (target) {
6980
- // Assume that the element is an instance of Node, which means that it
6981
- // has the "ownerDocument" property from which we can retrieve a
6982
- // corresponding global object.
6983
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
6984
- // Return the local global object if it's not possible extract one from
6985
- // provided element.
6986
- return ownerGlobal || global$1;
6987
- });
6988
-
6989
- // Placeholder of an empty content rectangle.
6990
- var emptyRect = createRectInit(0, 0, 0, 0);
6991
- /**
6992
- * Converts provided string to a number.
6993
- *
6994
- * @param {number|string} value
6995
- * @returns {number}
6996
- */
6997
- function toFloat(value) {
6998
- return parseFloat(value) || 0;
6999
- }
7000
- /**
7001
- * Extracts borders size from provided styles.
7002
- *
7003
- * @param {CSSStyleDeclaration} styles
7004
- * @param {...string} positions - Borders positions (top, right, ...)
7005
- * @returns {number}
7006
- */
7007
- function getBordersSize(styles) {
7008
- var positions = [];
7009
- for (var _i = 1; _i < arguments.length; _i++) {
7010
- positions[_i - 1] = arguments[_i];
7011
- }
7012
- return positions.reduce(function (size, position) {
7013
- var value = styles['border-' + position + '-width'];
7014
- return size + toFloat(value);
7015
- }, 0);
7016
- }
7017
- /**
7018
- * Extracts paddings sizes from provided styles.
7019
- *
7020
- * @param {CSSStyleDeclaration} styles
7021
- * @returns {Object} Paddings box.
7022
- */
7023
- function getPaddings(styles) {
7024
- var positions = ['top', 'right', 'bottom', 'left'];
7025
- var paddings = {};
7026
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
7027
- var position = positions_1[_i];
7028
- var value = styles['padding-' + position];
7029
- paddings[position] = toFloat(value);
7030
- }
7031
- return paddings;
7032
- }
7033
- /**
7034
- * Calculates content rectangle of provided SVG element.
7035
- *
7036
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
7037
- * to be calculated.
7038
- * @returns {DOMRectInit}
7039
- */
7040
- function getSVGContentRect(target) {
7041
- var bbox = target.getBBox();
7042
- return createRectInit(0, 0, bbox.width, bbox.height);
7043
- }
7044
- /**
7045
- * Calculates content rectangle of provided HTMLElement.
7046
- *
7047
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
7048
- * @returns {DOMRectInit}
7049
- */
7050
- function getHTMLElementContentRect(target) {
7051
- // Client width & height properties can't be
7052
- // used exclusively as they provide rounded values.
7053
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
7054
- // By this condition we can catch all non-replaced inline, hidden and
7055
- // detached elements. Though elements with width & height properties less
7056
- // than 0.5 will be discarded as well.
7057
- //
7058
- // Without it we would need to implement separate methods for each of
7059
- // those cases and it's not possible to perform a precise and performance
7060
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
7061
- // gives wrong results for elements with width & height less than 0.5.
7062
- if (!clientWidth && !clientHeight) {
7063
- return emptyRect;
7064
- }
7065
- var styles = getWindowOf(target).getComputedStyle(target);
7066
- var paddings = getPaddings(styles);
7067
- var horizPad = paddings.left + paddings.right;
7068
- var vertPad = paddings.top + paddings.bottom;
7069
- // Computed styles of width & height are being used because they are the
7070
- // only dimensions available to JS that contain non-rounded values. It could
7071
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
7072
- // affected by CSS transformations let alone paddings, borders and scroll bars.
7073
- var width = toFloat(styles.width), height = toFloat(styles.height);
7074
- // Width & height include paddings and borders when the 'border-box' box
7075
- // model is applied (except for IE).
7076
- if (styles.boxSizing === 'border-box') {
7077
- // Following conditions are required to handle Internet Explorer which
7078
- // doesn't include paddings and borders to computed CSS dimensions.
7079
- //
7080
- // We can say that if CSS dimensions + paddings are equal to the "client"
7081
- // properties then it's either IE, and thus we don't need to subtract
7082
- // anything, or an element merely doesn't have paddings/borders styles.
7083
- if (Math.round(width + horizPad) !== clientWidth) {
7084
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
7085
- }
7086
- if (Math.round(height + vertPad) !== clientHeight) {
7087
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
7088
- }
7089
- }
7090
- // Following steps can't be applied to the document's root element as its
7091
- // client[Width/Height] properties represent viewport area of the window.
7092
- // Besides, it's as well not necessary as the <html> itself neither has
7093
- // rendered scroll bars nor it can be clipped.
7094
- if (!isDocumentElement(target)) {
7095
- // In some browsers (only in Firefox, actually) CSS width & height
7096
- // include scroll bars size which can be removed at this step as scroll
7097
- // bars are the only difference between rounded dimensions + paddings
7098
- // and "client" properties, though that is not always true in Chrome.
7099
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
7100
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
7101
- // Chrome has a rather weird rounding of "client" properties.
7102
- // E.g. for an element with content width of 314.2px it sometimes gives
7103
- // the client width of 315px and for the width of 314.7px it may give
7104
- // 314px. And it doesn't happen all the time. So just ignore this delta
7105
- // as a non-relevant.
7106
- if (Math.abs(vertScrollbar) !== 1) {
7107
- width -= vertScrollbar;
7108
- }
7109
- if (Math.abs(horizScrollbar) !== 1) {
7110
- height -= horizScrollbar;
7111
- }
7112
- }
7113
- return createRectInit(paddings.left, paddings.top, width, height);
7114
- }
7115
- /**
7116
- * Checks whether provided element is an instance of the SVGGraphicsElement.
7117
- *
7118
- * @param {Element} target - Element to be checked.
7119
- * @returns {boolean}
7120
- */
7121
- var isSVGGraphicsElement = (function () {
7122
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
7123
- // interface.
7124
- if (typeof SVGGraphicsElement !== 'undefined') {
7125
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
7126
- }
7127
- // If it's so, then check that element is at least an instance of the
7128
- // SVGElement and that it has the "getBBox" method.
7129
- // eslint-disable-next-line no-extra-parens
7130
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
7131
- typeof target.getBBox === 'function'); };
7132
- })();
7133
- /**
7134
- * Checks whether provided element is a document element (<html>).
7135
- *
7136
- * @param {Element} target - Element to be checked.
7137
- * @returns {boolean}
7138
- */
7139
- function isDocumentElement(target) {
7140
- return target === getWindowOf(target).document.documentElement;
7141
- }
7142
- /**
7143
- * Calculates an appropriate content rectangle for provided html or svg element.
7144
- *
7145
- * @param {Element} target - Element content rectangle of which needs to be calculated.
7146
- * @returns {DOMRectInit}
7147
- */
7148
- function getContentRect(target) {
7149
- if (!isBrowser$1) {
7150
- return emptyRect;
7151
- }
7152
- if (isSVGGraphicsElement(target)) {
7153
- return getSVGContentRect(target);
7154
- }
7155
- return getHTMLElementContentRect(target);
7156
- }
7157
- /**
7158
- * Creates rectangle with an interface of the DOMRectReadOnly.
7159
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
7160
- *
7161
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
7162
- * @returns {DOMRectReadOnly}
7163
- */
7164
- function createReadOnlyRect(_a) {
7165
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
7166
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
7167
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
7168
- var rect = Object.create(Constr.prototype);
7169
- // Rectangle's properties are not writable and non-enumerable.
7170
- defineConfigurable(rect, {
7171
- x: x, y: y, width: width, height: height,
7172
- top: y,
7173
- right: x + width,
7174
- bottom: height + y,
7175
- left: x
7176
- });
7177
- return rect;
7178
- }
7179
- /**
7180
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
7181
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
7182
- *
7183
- * @param {number} x - X coordinate.
7184
- * @param {number} y - Y coordinate.
7185
- * @param {number} width - Rectangle's width.
7186
- * @param {number} height - Rectangle's height.
7187
- * @returns {DOMRectInit}
7188
- */
7189
- function createRectInit(x, y, width, height) {
7190
- return { x: x, y: y, width: width, height: height };
7191
- }
7192
-
7193
- /**
7194
- * Class that is responsible for computations of the content rectangle of
7195
- * provided DOM element and for keeping track of it's changes.
7196
- */
7197
- var ResizeObservation = /** @class */ (function () {
7198
- /**
7199
- * Creates an instance of ResizeObservation.
7200
- *
7201
- * @param {Element} target - Element to be observed.
7202
- */
7203
- function ResizeObservation(target) {
7204
- /**
7205
- * Broadcasted width of content rectangle.
7206
- *
7207
- * @type {number}
7208
- */
7209
- this.broadcastWidth = 0;
7210
- /**
7211
- * Broadcasted height of content rectangle.
7212
- *
7213
- * @type {number}
7214
- */
7215
- this.broadcastHeight = 0;
7216
- /**
7217
- * Reference to the last observed content rectangle.
7218
- *
7219
- * @private {DOMRectInit}
7220
- */
7221
- this.contentRect_ = createRectInit(0, 0, 0, 0);
7222
- this.target = target;
7223
- }
7224
- /**
7225
- * Updates content rectangle and tells whether it's width or height properties
7226
- * have changed since the last broadcast.
7227
- *
7228
- * @returns {boolean}
7229
- */
7230
- ResizeObservation.prototype.isActive = function () {
7231
- var rect = getContentRect(this.target);
7232
- this.contentRect_ = rect;
7233
- return (rect.width !== this.broadcastWidth ||
7234
- rect.height !== this.broadcastHeight);
7235
- };
7236
- /**
7237
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
7238
- * from the corresponding properties of the last observed content rectangle.
7239
- *
7240
- * @returns {DOMRectInit} Last observed content rectangle.
7241
- */
7242
- ResizeObservation.prototype.broadcastRect = function () {
7243
- var rect = this.contentRect_;
7244
- this.broadcastWidth = rect.width;
7245
- this.broadcastHeight = rect.height;
7246
- return rect;
7247
- };
7248
- return ResizeObservation;
7249
- }());
7250
-
7251
- var ResizeObserverEntry = /** @class */ (function () {
7252
- /**
7253
- * Creates an instance of ResizeObserverEntry.
7254
- *
7255
- * @param {Element} target - Element that is being observed.
7256
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
7257
- */
7258
- function ResizeObserverEntry(target, rectInit) {
7259
- var contentRect = createReadOnlyRect(rectInit);
7260
- // According to the specification following properties are not writable
7261
- // and are also not enumerable in the native implementation.
7262
- //
7263
- // Property accessors are not being used as they'd require to define a
7264
- // private WeakMap storage which may cause memory leaks in browsers that
7265
- // don't support this type of collections.
7266
- defineConfigurable(this, { target: target, contentRect: contentRect });
7267
- }
7268
- return ResizeObserverEntry;
7269
- }());
7270
-
7271
- var ResizeObserverSPI = /** @class */ (function () {
7272
- /**
7273
- * Creates a new instance of ResizeObserver.
7274
- *
7275
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
7276
- * when one of the observed elements changes it's content dimensions.
7277
- * @param {ResizeObserverController} controller - Controller instance which
7278
- * is responsible for the updates of observer.
7279
- * @param {ResizeObserver} callbackCtx - Reference to the public
7280
- * ResizeObserver instance which will be passed to callback function.
7281
- */
7282
- function ResizeObserverSPI(callback, controller, callbackCtx) {
7283
- /**
7284
- * Collection of resize observations that have detected changes in dimensions
7285
- * of elements.
7286
- *
7287
- * @private {Array<ResizeObservation>}
7288
- */
7289
- this.activeObservations_ = [];
7290
- /**
7291
- * Registry of the ResizeObservation instances.
7292
- *
7293
- * @private {Map<Element, ResizeObservation>}
7294
- */
7295
- this.observations_ = new MapShim();
7296
- if (typeof callback !== 'function') {
7297
- throw new TypeError('The callback provided as parameter 1 is not a function.');
7298
- }
7299
- this.callback_ = callback;
7300
- this.controller_ = controller;
7301
- this.callbackCtx_ = callbackCtx;
7302
- }
7303
- /**
7304
- * Starts observing provided element.
7305
- *
7306
- * @param {Element} target - Element to be observed.
7307
- * @returns {void}
7308
- */
7309
- ResizeObserverSPI.prototype.observe = function (target) {
7310
- if (!arguments.length) {
7311
- throw new TypeError('1 argument required, but only 0 present.');
7312
- }
7313
- // Do nothing if current environment doesn't have the Element interface.
7314
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
7315
- return;
7316
- }
7317
- if (!(target instanceof getWindowOf(target).Element)) {
7318
- throw new TypeError('parameter 1 is not of type "Element".');
7319
- }
7320
- var observations = this.observations_;
7321
- // Do nothing if element is already being observed.
7322
- if (observations.has(target)) {
7323
- return;
7324
- }
7325
- observations.set(target, new ResizeObservation(target));
7326
- this.controller_.addObserver(this);
7327
- // Force the update of observations.
7328
- this.controller_.refresh();
7329
- };
7330
- /**
7331
- * Stops observing provided element.
7332
- *
7333
- * @param {Element} target - Element to stop observing.
7334
- * @returns {void}
7335
- */
7336
- ResizeObserverSPI.prototype.unobserve = function (target) {
7337
- if (!arguments.length) {
7338
- throw new TypeError('1 argument required, but only 0 present.');
7339
- }
7340
- // Do nothing if current environment doesn't have the Element interface.
7341
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
7342
- return;
7343
- }
7344
- if (!(target instanceof getWindowOf(target).Element)) {
7345
- throw new TypeError('parameter 1 is not of type "Element".');
7346
- }
7347
- var observations = this.observations_;
7348
- // Do nothing if element is not being observed.
7349
- if (!observations.has(target)) {
7350
- return;
7351
- }
7352
- observations.delete(target);
7353
- if (!observations.size) {
7354
- this.controller_.removeObserver(this);
7355
- }
7356
- };
7357
- /**
7358
- * Stops observing all elements.
7359
- *
7360
- * @returns {void}
7361
- */
7362
- ResizeObserverSPI.prototype.disconnect = function () {
7363
- this.clearActive();
7364
- this.observations_.clear();
7365
- this.controller_.removeObserver(this);
7366
- };
7367
- /**
7368
- * Collects observation instances the associated element of which has changed
7369
- * it's content rectangle.
7370
- *
7371
- * @returns {void}
7372
- */
7373
- ResizeObserverSPI.prototype.gatherActive = function () {
7374
- var _this = this;
7375
- this.clearActive();
7376
- this.observations_.forEach(function (observation) {
7377
- if (observation.isActive()) {
7378
- _this.activeObservations_.push(observation);
7379
- }
7380
- });
7381
- };
7382
- /**
7383
- * Invokes initial callback function with a list of ResizeObserverEntry
7384
- * instances collected from active resize observations.
7385
- *
7386
- * @returns {void}
7387
- */
7388
- ResizeObserverSPI.prototype.broadcastActive = function () {
7389
- // Do nothing if observer doesn't have active observations.
7390
- if (!this.hasActive()) {
7391
- return;
7392
- }
7393
- var ctx = this.callbackCtx_;
7394
- // Create ResizeObserverEntry instance for every active observation.
7395
- var entries = this.activeObservations_.map(function (observation) {
7396
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
7397
- });
7398
- this.callback_.call(ctx, entries, ctx);
7399
- this.clearActive();
7400
- };
7401
- /**
7402
- * Clears the collection of active observations.
7403
- *
7404
- * @returns {void}
7405
- */
7406
- ResizeObserverSPI.prototype.clearActive = function () {
7407
- this.activeObservations_.splice(0);
7408
- };
7409
- /**
7410
- * Tells whether observer has active observations.
7411
- *
7412
- * @returns {boolean}
7413
- */
7414
- ResizeObserverSPI.prototype.hasActive = function () {
7415
- return this.activeObservations_.length > 0;
7416
- };
7417
- return ResizeObserverSPI;
7418
- }());
7419
-
7420
- // Registry of internal observers. If WeakMap is not available use current shim
7421
- // for the Map collection as it has all required methods and because WeakMap
7422
- // can't be fully polyfilled anyway.
7423
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
7424
- /**
7425
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
7426
- * exposing only those methods and properties that are defined in the spec.
7427
- */
7428
- var ResizeObserver = /** @class */ (function () {
7429
- /**
7430
- * Creates a new instance of ResizeObserver.
7431
- *
7432
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
7433
- * dimensions of the observed elements change.
7434
- */
7435
- function ResizeObserver(callback) {
7436
- if (!(this instanceof ResizeObserver)) {
7437
- throw new TypeError('Cannot call a class as a function.');
7438
- }
7439
- if (!arguments.length) {
7440
- throw new TypeError('1 argument required, but only 0 present.');
7441
- }
7442
- var controller = ResizeObserverController.getInstance();
7443
- var observer = new ResizeObserverSPI(callback, controller, this);
7444
- observers.set(this, observer);
7445
- }
7446
- return ResizeObserver;
7447
- }());
7448
- // Expose public methods of ResizeObserver.
7449
- [
7450
- 'observe',
7451
- 'unobserve',
7452
- 'disconnect'
7453
- ].forEach(function (method) {
7454
- ResizeObserver.prototype[method] = function () {
7455
- var _a;
7456
- return (_a = observers.get(this))[method].apply(_a, arguments);
7457
- };
7458
- });
7459
-
7460
- var index = (function () {
7461
- // Export existing implementation if available.
7462
- if (typeof global$1.ResizeObserver !== 'undefined') {
7463
- return global$1.ResizeObserver;
7464
- }
7465
- return ResizeObserver;
7466
- })();
7467
-
7468
- function _defineProperty$3(obj, key, value) {
7469
- if (key in obj) {
7470
- Object.defineProperty(obj, key, {
7471
- value: value,
7472
- enumerable: true,
7473
- configurable: true,
7474
- writable: true
7475
- });
7476
- } else {
7477
- obj[key] = value;
7478
- }
7479
-
7480
- return obj;
7481
- }
7482
-
7483
- function _extends$2() {
7484
- _extends$2 = Object.assign || function (target) {
7485
- for (var i = 1; i < arguments.length; i++) {
7486
- var source = arguments[i];
7487
-
7488
- for (var key in source) {
7489
- if (Object.prototype.hasOwnProperty.call(source, key)) {
7490
- target[key] = source[key];
7491
- }
7492
- }
7493
- }
7494
-
7495
- return target;
7496
- };
7497
-
7498
- return _extends$2.apply(this, arguments);
7499
- }
7500
-
7501
- function _objectSpread$1(target) {
7502
- for (var i = 1; i < arguments.length; i++) {
7503
- var source = arguments[i] != null ? arguments[i] : {};
7504
- var ownKeys = Object.keys(source);
7505
-
7506
- if (typeof Object.getOwnPropertySymbols === 'function') {
7507
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
7508
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
7509
- }));
7510
- }
7511
-
7512
- ownKeys.forEach(function (key) {
7513
- _defineProperty$3(target, key, source[key]);
7514
- });
7515
- }
7516
-
7517
- return target;
7518
- }
7519
-
7520
- function _objectWithoutPropertiesLoose(source, excluded) {
7521
- if (source == null) return {};
7522
- var target = {};
7523
- var sourceKeys = Object.keys(source);
7524
- var key, i;
7525
-
7526
- for (i = 0; i < sourceKeys.length; i++) {
7527
- key = sourceKeys[i];
7528
- if (excluded.indexOf(key) >= 0) continue;
7529
- target[key] = source[key];
7530
- }
7531
-
7532
- return target;
7533
- }
7534
-
7535
- function _objectWithoutProperties(source, excluded) {
7536
- if (source == null) return {};
7537
-
7538
- var target = _objectWithoutPropertiesLoose(source, excluded);
7539
-
7540
- var key, i;
7541
-
7542
- if (Object.getOwnPropertySymbols) {
7543
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
7544
-
7545
- for (i = 0; i < sourceSymbolKeys.length; i++) {
7546
- key = sourceSymbolKeys[i];
7547
- if (excluded.indexOf(key) >= 0) continue;
7548
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
7549
- target[key] = source[key];
7550
- }
7551
- }
7552
-
7553
- return target;
7554
- }
7555
-
7556
- function _slicedToArray(arr, i) {
7557
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
7558
- }
7559
-
7560
- function _arrayWithHoles(arr) {
7561
- if (Array.isArray(arr)) return arr;
7562
- }
7563
-
7564
- function _iterableToArrayLimit(arr, i) {
7565
- var _arr = [];
7566
- var _n = true;
7567
- var _d = false;
7568
- var _e = undefined;
7569
-
7570
- try {
7571
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
7572
- _arr.push(_s.value);
7573
-
7574
- if (i && _arr.length === i) break;
7575
- }
7576
- } catch (err) {
7577
- _d = true;
7578
- _e = err;
7579
- } finally {
7580
- try {
7581
- if (!_n && _i["return"] != null) _i["return"]();
7582
- } finally {
7583
- if (_d) throw _e;
7584
- }
7585
- }
7586
-
7587
- return _arr;
7588
- }
7589
-
7590
- function _nonIterableRest() {
7591
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
7592
- }
7593
-
7594
- var imgWithClick = {
7595
- cursor: 'pointer'
7596
- };
7597
-
7598
- var Photo = function Photo(_ref) {
7599
- var index = _ref.index,
7600
- onClick = _ref.onClick,
7601
- photo = _ref.photo,
7602
- margin = _ref.margin,
7603
- direction = _ref.direction,
7604
- top = _ref.top,
7605
- left = _ref.left,
7606
- key = _ref.key;
7607
- var imgStyle = {
7608
- margin: margin,
7609
- display: 'block'
7610
- };
7611
-
7612
- if (direction === 'column') {
7613
- imgStyle.position = 'absolute';
7614
- imgStyle.left = left;
7615
- imgStyle.top = top;
7616
- }
7617
-
7618
- var handleClick = function handleClick(event) {
7619
- onClick(event, {
7620
- photo: photo,
7621
- index: index
7622
- });
7623
- };
7624
-
7625
- return React__default["default"].createElement("img", _extends$2({
7626
- key: key,
7627
- style: onClick ? _objectSpread$1({}, imgStyle, imgWithClick) : imgStyle
7628
- }, photo, {
7629
- onClick: onClick ? handleClick : null
7630
- }));
7631
- };
7632
-
7633
- var photoPropType = PropTypes.shape({
7634
- key: PropTypes.string,
7635
- src: PropTypes.string.isRequired,
7636
- width: PropTypes.number.isRequired,
7637
- height: PropTypes.number.isRequired,
7638
- alt: PropTypes.string,
7639
- title: PropTypes.string,
7640
- srcSet: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
7641
- sizes: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
7642
- });
7643
- Photo.propTypes = {
7644
- index: PropTypes.number.isRequired,
7645
- onClick: PropTypes.func,
7646
- photo: photoPropType.isRequired,
7647
- margin: PropTypes.number,
7648
- top: function top(props) {
7649
- if (props.direction === 'column' && typeof props.top !== 'number') {
7650
- return new Error('top is a required number when direction is set to `column`');
7651
- }
7652
- },
7653
- left: function left(props) {
7654
- if (props.direction === 'column' && typeof props.left !== 'number') {
7655
- return new Error('left is a required number when direction is set to `column`');
7656
- }
7657
- },
7658
- direction: PropTypes.string
7659
- };
7660
-
7661
- var round = function round(value, decimals) {
7662
- if (!decimals) decimals = 0;
7663
- return Number(Math.round(value + 'e' + decimals) + 'e-' + decimals);
7664
- };
7665
-
7666
- var computeColumnLayout = function computeColumnLayout(_ref) {
7667
- var photos = _ref.photos,
7668
- columns = _ref.columns,
7669
- containerWidth = _ref.containerWidth,
7670
- margin = _ref.margin;
7671
- // calculate each colWidth based on total width and column amount
7672
- var colWidth = (containerWidth - margin * 2 * columns) / columns; // map through each photo to assign adjusted height and width based on colWidth
7673
-
7674
- var photosWithSizes = photos.map(function (photo) {
7675
- var newHeight = photo.height / photo.width * colWidth;
7676
- return _objectSpread$1({}, photo, {
7677
- width: round(colWidth, 1),
7678
- height: round(newHeight, 1)
7679
- });
7680
- }); // store all possible left positions
7681
- // and current top positions for each column
7682
-
7683
- var colLeftPositions = [];
7684
- var colCurrTopPositions = [];
7685
-
7686
- for (var i = 0; i < columns; i++) {
7687
- colLeftPositions[i] = round(i * (colWidth + margin * 2), 1);
7688
- colCurrTopPositions[i] = 0;
7689
- } // map through each photo, then reduce thru each "column"
7690
- // find column with the smallest height and assign to photo's 'top'
7691
- // update that column's height with this photo's height
7692
-
7693
-
7694
- var photosPositioned = photosWithSizes.map(function (photo) {
7695
- var smallestCol = colCurrTopPositions.reduce(function (acc, item, i) {
7696
- acc = item < colCurrTopPositions[acc] ? i : acc;
7697
- return acc;
7698
- }, 0);
7699
- photo.top = colCurrTopPositions[smallestCol];
7700
- photo.left = colLeftPositions[smallestCol];
7701
- colCurrTopPositions[smallestCol] = colCurrTopPositions[smallestCol] + photo.height + margin * 2; // store the tallest col to use for gallery height because of abs positioned elements
7702
-
7703
- var tallestCol = colCurrTopPositions.reduce(function (acc, item, i) {
7704
- acc = item > colCurrTopPositions[acc] ? i : acc;
7705
- return acc;
7706
- }, 0);
7707
- photo.containerHeight = colCurrTopPositions[tallestCol];
7708
- return photo;
7709
- });
7710
- return photosPositioned;
7711
- };
7712
-
7713
- var ratio = function ratio(_ref) {
7714
- var width = _ref.width,
7715
- height = _ref.height;
7716
- return round(width / height, 2);
7717
- };
7718
-
7719
- /*
7720
- Copyright 2007-2013 Marijn Haverbeke frin "Eloquent Javascript, 1st Edition"
7721
-
7722
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7723
-
7724
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7725
-
7726
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7727
- */
7728
- function BinaryHeap(scoreFunction) {
7729
- this.content = [];
7730
- this.scoreFunction = scoreFunction;
7731
- }
7732
- BinaryHeap.prototype = {
7733
- push: function push(element) {
7734
- // Add the new element to the end of the array.
7735
- this.content.push(element); // Allow it to bubble up.
7736
-
7737
- this.bubbleUp(this.content.length - 1);
7738
- },
7739
- pop: function pop() {
7740
- // Store the first element so we can return it later.
7741
- var result = this.content[0]; // Get the element at the end of the array.
7742
-
7743
- var end = this.content.pop(); // If there are any elements left, put the end element at the
7744
- // start, and let it sink down.
7745
-
7746
- if (this.content.length > 0) {
7747
- this.content[0] = end;
7748
- this.sinkDown(0);
7749
- }
7750
-
7751
- return result;
7752
- },
7753
- remove: function remove(node) {
7754
- var length = this.content.length; // To remove a value, we must search through the array to find
7755
- // it.
7756
-
7757
- for (var i = 0; i < length; i++) {
7758
- if (this.content[i] != node) continue; // When it is found, the process seen in 'pop' is repeated
7759
- // to fill up the hole.
7760
-
7761
- var end = this.content.pop(); // If the element we popped was the one we needed to remove,
7762
- // we're done.
7763
-
7764
- if (i == length - 1) break; // Otherwise, we replace the removed element with the popped
7765
- // one, and allow it to float up or sink down as appropriate.
7766
-
7767
- this.content[i] = end;
7768
- this.bubbleUp(i);
7769
- this.sinkDown(i);
7770
- break;
7771
- }
7772
- },
7773
- size: function size() {
7774
- return this.content.length;
7775
- },
7776
- bubbleUp: function bubbleUp(n) {
7777
- // Fetch the element that has to be moved.
7778
- var element = this.content[n],
7779
- score = this.scoreFunction(element); // When at 0, an element can not go up any further.
7780
-
7781
- while (n > 0) {
7782
- // Compute the parent element's index, and fetch it.
7783
- var parentN = Math.floor((n + 1) / 2) - 1,
7784
- parent = this.content[parentN]; // If the parent has a lesser score, things are in order and we
7785
- // are done.
7786
-
7787
- if (score >= this.scoreFunction(parent)) break; // Otherwise, swap the parent with the current element and
7788
- // continue.
7789
-
7790
- this.content[parentN] = element;
7791
- this.content[n] = parent;
7792
- n = parentN;
7793
- }
7794
- },
7795
- sinkDown: function sinkDown(n) {
7796
- // Look up the target element and its score.
7797
- var length = this.content.length,
7798
- element = this.content[n],
7799
- elemScore = this.scoreFunction(element);
7800
-
7801
- while (true) {
7802
- // Compute the indices of the child elements.
7803
- var child2N = (n + 1) * 2,
7804
- child1N = child2N - 1; // This is used to store the new position of the element,
7805
- // if any.
7806
-
7807
- var swap = null; // If the first child exists (is inside the array)...
7808
-
7809
- if (child1N < length) {
7810
- // Look it up and compute its score.
7811
- var child1 = this.content[child1N],
7812
- child1Score = this.scoreFunction(child1); // If the score is less than our element's, we need to swap.
7813
-
7814
- if (child1Score < elemScore) swap = child1N;
7815
- } // Do the same checks for the other child.
7816
-
7817
-
7818
- if (child2N < length) {
7819
- var child2 = this.content[child2N],
7820
- child2Score = this.scoreFunction(child2);
7821
- if (child2Score < (swap == null ? elemScore : child1Score)) swap = child2N;
7822
- } // No need to swap further, we are done.
7823
-
7824
-
7825
- if (swap == null) break; // Otherwise, swap and continue.
7826
-
7827
- this.content[n] = this.content[swap];
7828
- this.content[swap] = element;
7829
- n = swap;
7830
- }
7831
- }
7832
- };
7833
-
7834
- var buildPrecedentsMap = function buildPrecedentsMap(graph, startNode, endNode) {
7835
- // store the previous vertex of the shortest path of arrival
7836
- var precedentsMap = {}; // store nodes already visited
7837
-
7838
- var visited = {}; // store/update only the shortest edge weights measured
7839
- // the purpose of this is object is constant time lookup vs. binary heap lookup O(n)
7840
-
7841
- var storedShortestPaths = {};
7842
- storedShortestPaths[startNode] = 0; // priority queue of ALL nodes and storedShortestPaths
7843
- // don't bother to delete them because it's faster to look at visited?
7844
-
7845
- var pQueue = new BinaryHeap(function (n) {
7846
- return n.weight;
7847
- });
7848
- pQueue.push({
7849
- id: startNode,
7850
- weight: 0
7851
- });
7852
-
7853
- while (pQueue.size()) {
7854
- // pop node with shortest total weight from start node
7855
- var shortestNode = pQueue.pop();
7856
- var shortestNodeId = shortestNode.id; // if already visited, continue
7857
-
7858
- if (visited[shortestNodeId]) continue; // visit neighboring nodes
7859
-
7860
- var neighboringNodes = graph(shortestNodeId) || {};
7861
- visited[shortestNodeId] = 1; // meet the neighbors, looking for shorter paths
7862
-
7863
- for (var neighbor in neighboringNodes) {
7864
- // weight of path from startNode to this neighbor
7865
- var newTotalWeight = shortestNode.weight + neighboringNodes[neighbor]; // if this is the first time meeting the neighbor OR if the new total weight from
7866
- // start node to this neighbor node is greater than the old weight path, update it,
7867
- // and update precedent node
7868
-
7869
- if (typeof storedShortestPaths[neighbor] === 'undefined' || storedShortestPaths[neighbor] > newTotalWeight) {
7870
- storedShortestPaths[neighbor] = newTotalWeight;
7871
- pQueue.push({
7872
- id: neighbor,
7873
- weight: newTotalWeight
7874
- });
7875
- precedentsMap[neighbor] = shortestNodeId;
7876
- }
7877
- }
7878
- }
7879
-
7880
- if (typeof storedShortestPaths[endNode] === 'undefined') {
7881
- throw new Error("There is no path from ".concat(startNode, " to ").concat(endNode));
7882
- }
7883
-
7884
- return precedentsMap;
7885
- }; // build the route from precedent node vertices
7886
-
7887
-
7888
- var getPathFromPrecedentsMap = function getPathFromPrecedentsMap(precedentsMap, endNode) {
7889
- var nodes = [];
7890
- var n = endNode;
7891
-
7892
- while (n) {
7893
- nodes.push(n);
7894
- n = precedentsMap[n];
7895
- }
7896
-
7897
- return nodes.reverse();
7898
- }; // build the precedentsMap and find the shortest path from it
7899
-
7900
-
7901
- var findShortestPath = function findShortestPath(graph, startNode, endNode) {
7902
- var precedentsMap = buildPrecedentsMap(graph, startNode, endNode);
7903
- return getPathFromPrecedentsMap(precedentsMap, endNode);
7904
- };
7905
-
7906
- // to calculate the single best layout using Dijkstra's findShortestPat
7907
- // get the height for a set of photos in a potential row
7908
-
7909
- var getCommonHeight = function getCommonHeight(row, containerWidth, margin) {
7910
- var rowWidth = containerWidth - row.length * (margin * 2);
7911
- var totalAspectRatio = row.reduce(function (acc, photo) {
7912
- return acc + ratio(photo);
7913
- }, 0);
7914
- return rowWidth / totalAspectRatio;
7915
- }; // calculate the cost of breaking at this node (edge weight)
7916
-
7917
-
7918
- var cost = function cost(photos, i, j, width, targetHeight, margin) {
7919
- var row = photos.slice(i, j);
7920
- var commonHeight = getCommonHeight(row, width, margin);
7921
- return Math.pow(Math.abs(commonHeight - targetHeight), 2);
7922
- }; // return function that gets the neighboring nodes of node and returns costs
7923
-
7924
-
7925
- var makeGetNeighbors = function makeGetNeighbors(targetHeight, containerWidth, photos, limitNodeSearch, margin) {
7926
- return function (start) {
7927
- var results = {};
7928
- start = +start;
7929
- results[+start] = 0;
7930
-
7931
- for (var i = start + 1; i < photos.length + 1; ++i) {
7932
- if (i - start > limitNodeSearch) break;
7933
- results[i.toString()] = cost(photos, start, i, containerWidth, targetHeight, margin);
7934
- }
7935
-
7936
- return results;
7937
- };
7938
- };
7939
-
7940
- var computeRowLayout = function computeRowLayout(_ref) {
7941
- var containerWidth = _ref.containerWidth,
7942
- limitNodeSearch = _ref.limitNodeSearch,
7943
- targetRowHeight = _ref.targetRowHeight,
7944
- margin = _ref.margin,
7945
- photos = _ref.photos;
7946
- // const t = +new Date();
7947
- var getNeighbors = makeGetNeighbors(targetRowHeight, containerWidth, photos, limitNodeSearch, margin);
7948
- var path = findShortestPath(getNeighbors, '0', photos.length);
7949
- path = path.map(function (node) {
7950
- return +node;
7951
- }); // console.log(`time to find the shortest path: ${(+new Date() - t)} ms`);
7952
-
7953
- for (var i = 1; i < path.length; ++i) {
7954
- var row = photos.slice(path[i - 1], path[i]);
7955
- var height = getCommonHeight(row, containerWidth, margin);
7956
-
7957
- for (var j = path[i - 1]; j < path[i]; ++j) {
7958
- photos[j].width = round(height * ratio(photos[j]), 1);
7959
- photos[j].height = height;
7960
- }
7961
- }
7962
-
7963
- return photos;
7964
- };
7965
-
7966
- // the aspect ratio of the container with images having an avg AR of 1.5
7967
- // as the minimum amount of photos per row, plus some nodes
7968
-
7969
- var findIdealNodeSearch = function findIdealNodeSearch(_ref) {
7970
- var targetRowHeight = _ref.targetRowHeight,
7971
- containerWidth = _ref.containerWidth;
7972
- var rowAR = containerWidth / targetRowHeight;
7973
- return round(rowAR / 1.5) + 8;
7974
- };
7975
-
7976
- var Gallery = React__default["default"].memo(function Gallery(_ref) {
7977
- var photos = _ref.photos,
7978
- onClick = _ref.onClick,
7979
- direction = _ref.direction,
7980
- margin = _ref.margin,
7981
- limitNodeSearch = _ref.limitNodeSearch,
7982
- targetRowHeight = _ref.targetRowHeight,
7983
- columns = _ref.columns,
7984
- renderImage = _ref.renderImage;
7985
-
7986
- var _useState = React.useState(0),
7987
- _useState2 = _slicedToArray(_useState, 2),
7988
- containerWidth = _useState2[0],
7989
- setContainerWidth = _useState2[1];
7990
-
7991
- var galleryEl = React.useRef(null);
7992
- React.useLayoutEffect(function () {
7993
- var animationFrameID = null;
7994
- var observer = new index(function (entries) {
7995
- // only do something if width changes
7996
- var newWidth = entries[0].contentRect.width;
7997
-
7998
- if (containerWidth !== newWidth) {
7999
- // put in an animation frame to stop "benign errors" from
8000
- // ResizObserver https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded
8001
- animationFrameID = window.requestAnimationFrame(function () {
8002
- setContainerWidth(Math.floor(newWidth));
8003
- });
8004
- }
8005
- });
8006
- observer.observe(galleryEl.current);
8007
- return function () {
8008
- observer.disconnect();
8009
- window.cancelAnimationFrame(animationFrameID);
8010
- };
8011
- });
8012
-
8013
- var handleClick = function handleClick(event, _ref2) {
8014
- var index = _ref2.index;
8015
- onClick(event, {
8016
- index: index,
8017
- photo: photos[index],
8018
- previous: photos[index - 1] || null,
8019
- next: photos[index + 1] || null
8020
- });
8021
- }; // no containerWidth until after first render with refs, skip calculations and render nothing
8022
-
8023
-
8024
- if (!containerWidth) return React__default["default"].createElement("div", {
8025
- ref: galleryEl
8026
- }, "\xA0"); // subtract 1 pixel because the browser may round up a pixel
8027
-
8028
- var width = containerWidth - 1;
8029
- var galleryStyle, thumbs;
8030
-
8031
- if (direction === 'row') {
8032
- // allow user to calculate limitNodeSearch from containerWidth
8033
- if (typeof limitNodeSearch === 'function') {
8034
- limitNodeSearch = limitNodeSearch(containerWidth);
8035
- }
8036
-
8037
- if (typeof targetRowHeight === 'function') {
8038
- targetRowHeight = targetRowHeight(containerWidth);
8039
- } // set how many neighboring nodes the graph will visit
8040
-
8041
-
8042
- if (limitNodeSearch === undefined) {
8043
- limitNodeSearch = 2;
8044
-
8045
- if (containerWidth >= 450) {
8046
- limitNodeSearch = findIdealNodeSearch({
8047
- containerWidth: containerWidth,
8048
- targetRowHeight: targetRowHeight
8049
- });
8050
- }
8051
- }
8052
-
8053
- galleryStyle = {
8054
- display: 'flex',
8055
- flexWrap: 'wrap',
8056
- flexDirection: 'row'
8057
- };
8058
- thumbs = computeRowLayout({
8059
- containerWidth: width,
8060
- limitNodeSearch: limitNodeSearch,
8061
- targetRowHeight: targetRowHeight,
8062
- margin: margin,
8063
- photos: photos
8064
- });
8065
- }
8066
-
8067
- if (direction === 'column') {
8068
- // allow user to calculate columns from containerWidth
8069
- if (typeof columns === 'function') {
8070
- columns = columns(containerWidth);
8071
- } // set default breakpoints if user doesn't specify columns prop
8072
-
8073
-
8074
- if (columns === undefined) {
8075
- columns = 1;
8076
- if (containerWidth >= 500) columns = 2;
8077
- if (containerWidth >= 900) columns = 3;
8078
- if (containerWidth >= 1500) columns = 4;
8079
- }
8080
-
8081
- galleryStyle = {
8082
- position: 'relative'
8083
- };
8084
- thumbs = computeColumnLayout({
8085
- containerWidth: width,
8086
- columns: columns,
8087
- margin: margin,
8088
- photos: photos
8089
- });
8090
- galleryStyle.height = thumbs[thumbs.length - 1].containerHeight;
8091
- }
8092
-
8093
- var renderComponent = renderImage || Photo;
8094
- return React__default["default"].createElement("div", {
8095
- className: "react-photo-gallery--gallery"
8096
- }, React__default["default"].createElement("div", {
8097
- ref: galleryEl,
8098
- style: galleryStyle
8099
- }, thumbs.map(function (thumb, index) {
8100
- var left = thumb.left,
8101
- top = thumb.top,
8102
- containerHeight = thumb.containerHeight,
8103
- photo = _objectWithoutProperties(thumb, ["left", "top", "containerHeight"]);
8104
-
8105
- return renderComponent({
8106
- left: left,
8107
- top: top,
8108
- key: thumb.key || thumb.src,
8109
- containerHeight: containerHeight,
8110
- index: index,
8111
- margin: margin,
8112
- direction: direction,
8113
- onClick: onClick ? handleClick : null,
8114
- photo: photo
8115
- });
8116
- })));
8117
- });
8118
- Gallery.propTypes = {
8119
- photos: PropTypes.arrayOf(photoPropType).isRequired,
8120
- direction: PropTypes.string,
8121
- onClick: PropTypes.func,
8122
- columns: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8123
- targetRowHeight: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8124
- limitNodeSearch: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8125
- margin: PropTypes.number,
8126
- renderImage: PropTypes.func
8127
- };
8128
- Gallery.defaultProps = {
8129
- margin: 2,
8130
- direction: 'row',
8131
- targetRowHeight: 300
8132
- };
8133
-
8134
- var _templateObject$1, _templateObject2$1, _templateObject3$1;
8135
- var SliderContainer = styled__default["default"].div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n\nwidth: 100%;\n.carousel .control-arrow,.carousel.carousel-slider .control-arrow{-webkit-transition:all .25s ease-in;-moz-transition:all .25s ease-in;-ms-transition:all .25s ease-in;-o-transition:all .25s ease-in;transition:all .25s ease-in;opacity:.4;filter:alpha(opacity=40);position:absolute;z-index:2;top:20px;background:none;border:0;font-size:32px;cursor:pointer}.carousel .control-arrow:focus,.carousel .control-arrow:hover{opacity:1;filter:alpha(opacity=100)}.carousel .control-arrow:before,.carousel.carousel-slider .control-arrow:before{margin:0 5px;display:inline-block;border-top:8px solid transparent;border-bottom:8px solid transparent;content:''}.carousel .control-disabled.control-arrow{opacity:0;filter:alpha(opacity=0);cursor:inherit;display:none}.carousel .control-prev.control-arrow{left:0}.carousel .control-prev.control-arrow:before{border-right:8px solid #fff}.carousel .control-next.control-arrow{right:0}.carousel .control-next.control-arrow:before{border-left:8px solid #fff}.carousel-root{outline:none}.carousel{position:relative;width:100%}.carousel *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.carousel img{width:100%;display:inline-block;pointer-events:none}.carousel .carousel{position:relative}.carousel .control-arrow{outline:0;border:0;background:none;top:50%;margin-top:-13px;font-size:18px}.carousel .thumbs-wrapper{margin:20px;overflow:hidden}.carousel .thumbs{-webkit-transition:all .15s ease-in;-moz-transition:all .15s ease-in;-ms-transition:all .15s ease-in;-o-transition:all .15s ease-in;transition:all .15s ease-in;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);position:relative;list-style:none;white-space:nowrap}.carousel .thumb{-webkit-transition:border .15s ease-in;-moz-transition:border .15s ease-in;-ms-transition:border .15s ease-in;-o-transition:border .15s ease-in;transition:border .15s ease-in;display:inline-block;margin-right:6px;white-space:nowrap;overflow:hidden;border:3px solid #fff;padding:2px}.carousel .thumb:focus{border:3px solid #ccc;outline:none}.carousel .thumb.selected,.carousel .thumb:hover{border:3px solid #333}.carousel .thumb img{vertical-align:top}.carousel.carousel-slider{position:relative;margin:0;overflow:hidden}.carousel.carousel-slider .control-arrow{top:0;color:#fff;font-size:26px;bottom:0;margin-top:0;padding:5px}.carousel.carousel-slider .control-arrow:hover{background:rgba(0,0,0,0.2)}.carousel .slider-wrapper{overflow:hidden;margin:auto;width:100%;-webkit-transition:height .15s ease-in;-moz-transition:height .15s ease-in;-ms-transition:height .15s ease-in;-o-transition:height .15s ease-in;transition:height .15s ease-in}.carousel .slider-wrapper.axis-horizontal .slider{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-horizontal .slider .slide{flex-direction:column;flex-flow:column}.carousel .slider-wrapper.axis-vertical{-ms-box-orient:horizontal;display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-moz-flex;display:-webkit-flex;display:flex}.carousel .slider-wrapper.axis-vertical .slider{-webkit-flex-direction:column;flex-direction:column}.carousel .slider{margin:0;padding:0;position:relative;list-style:none;width:100%}.carousel .slider.animated{-webkit-transition:all .35s ease-in-out;-moz-transition:all .35s ease-in-out;-ms-transition:all .35s ease-in-out;-o-transition:all .35s ease-in-out;transition:all .35s ease-in-out}.carousel .slide{min-width:100%;margin:0;position:relative;text-align:center}.carousel .slide img{width:100%;vertical-align:top;border:0}.carousel .slide iframe{display:inline-block;width:calc(100% - 80px);margin:0 40px 40px;border:0}.carousel .slide .legend{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-ms-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out;position:absolute;bottom:40px;left:50%;margin-left:-45%;width:90%;border-radius:10px;background:#000;color:#fff;padding:10px;font-size:12px;text-align:center;opacity:0.25;-webkit-transition:opacity .35s ease-in-out;-moz-transition:opacity .35s ease-in-out;-ms-transition:opacity .35s ease-in-out;-o-transition:opacity .35s ease-in-out;transition:opacity .35s ease-in-out}.carousel .control-dots{position:absolute;bottom:0;margin:10px 0;padding:0;text-align:center;width:100%;z-index:1}@media (min-width: 960px){.carousel .control-dots{bottom:0}}.carousel .control-dots .dot{-webkit-transition:opacity .25s ease-in;-moz-transition:opacity .25s ease-in;-ms-transition:opacity .25s ease-in;-o-transition:opacity .25s ease-in;transition:opacity .25s ease-in;opacity:.3;filter:alpha(opacity=30);box-shadow:1px 1px 2px rgba(0,0,0,0.9);background:#fff;border-radius:50%;width:8px;height:8px;cursor:pointer;display:inline-block;margin:0 8px}.carousel .control-dots .dot.selected,.carousel .control-dots .dot:hover{opacity:1;filter:alpha(opacity=100)}.carousel .carousel-status{position:absolute;top:0;right:0;padding:5px;font-size:10px;text-shadow:1px 1px 1px rgba(0,0,0,0.9);color:#fff}.carousel:hover .slide .legend{opacity:1}\n ul li {\n padding: 0 !important;\n }\n div img {\n object-fit: cover;\n }\n .carousel .thumbs-wrapper {\n margin: 16px;\n }\n max-width: 100%;\n width: 100%;\n .carousel .thumbs {\n padding: 0;\n }\n\n"])));
8136
- styled__default["default"].section(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n position: relative;\n &.full {\n position: fixed;\n display: flex;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n left: 0;\n top: 0;\n z-index: 9999;\n max-height: 100vh;\n overflow: hidden;\n background: #fff;\n }\n .fullscreen-button {\n cursor: ne-resize;\n position: absolute;\n left: 16px;\n top: 16px;\n }\n"])));
8137
- var NewGallery = styled__default["default"].div(_templateObject3$1 || (_templateObject3$1 = _taggedTemplateLiteral(["\n.image-gallery-icon{\n color:#fff;\n transition:all .3s ease-out;\n appearance:none;\n background-color:transparent;\n border:0;\n cursor:pointer;\n outline:none;\n position:absolute;\n z-index:4;\n filter:drop-shadow(0 2px 2px #1a1a1a)\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-icon:hover{\n color:#337ab7\n }\n .image-gallery-icon:hover .image-gallery-svg{\n transform:scale(1.1)\n }\n}\n.image-gallery-icon:focus{\n outline:2px solid #337ab7\n}\n.image-gallery-using-mouse .image-gallery-icon:focus{\n outline:none\n}\n.image-gallery-fullscreen-button,.image-gallery-play-button{\n bottom:0;\n padding:20px\n}\n.image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:28px;\n width:28px\n}\n@media(max-width: 768px){\n .image-gallery-fullscreen-button,.image-gallery-play-button{\n padding:15px\n }\n .image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:24px;\n width:24px\n }\n}\n@media(max-width: 480px){\n .image-gallery-fullscreen-button,.image-gallery-play-button{\n padding:10px\n }\n .image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{\n height:16px;\n width:16px\n }\n}\n.image-gallery-fullscreen-button{\n right:0\n}\n.image-gallery-play-button{\n left:0\n}\n.image-gallery-left-nav,.image-gallery-right-nav{\n padding:50px 10px;\n top:50%;\n transform:translateY(-50%)\n}\n.image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:120px;\n width:60px\n}\n@media(max-width: 768px){\n .image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:72px;\n width:36px\n }\n}\n@media(max-width: 480px){\n .image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{\n height:48px;\n width:24px\n }\n}\n.image-gallery-left-nav[disabled],.image-gallery-right-nav[disabled]{\n cursor:disabled;\n opacity:.6;\n pointer-events:none\n}\n.image-gallery-left-nav{\n left:0\n}\n.image-gallery-right-nav{\n right:0\n}\n.image-gallery{\n -webkit-user-select:none;\n -moz-user-select:none;\n -ms-user-select:none;\n -o-user-select:none;\n user-select:none;\n -webkit-tap-highlight-color:rgba(0,0,0,0);\n position:relative\n}\n.image-gallery.fullscreen-modal{\n background:#000;\n bottom:0;\n height:100%;\n left:0;\n position:fixed;\n right:0;\n top:0;\n width:100%;\n z-index:5\n}\n.image-gallery.fullscreen-modal .image-gallery-content{\n top:50%;\n transform:translateY(-50%)\n}\n.image-gallery-content{\n position:relative;\n line-height:0;\n top:0\n}\n.image-gallery-content.fullscreen{\n background:#000\n}\n.image-gallery-content .image-gallery-slide .image-gallery-image{\n max-height:calc(100vh - 80px)\n}\n.image-gallery-content.left .image-gallery-slide .image-gallery-image,.image-gallery-content.right .image-gallery-slide .image-gallery-image{\n max-height:100vh\n}\n.image-gallery-slide-wrapper{\n position:relative\n}\n.image-gallery-slide-wrapper.left,.image-gallery-slide-wrapper.right{\n display:inline-block;\n width:calc(100% - 110px)\n}\n@media(max-width: 768px){\n .image-gallery-slide-wrapper.left,.image-gallery-slide-wrapper.right{\n width:calc(100% - 87px)\n }\n}\n.image-gallery-slide-wrapper.image-gallery-rtl{\n direction:rtl\n}\n.image-gallery-slides{\n line-height:0;\n overflow:hidden;\n position:relative;\n white-space:nowrap;\n text-align:center\n}\n.image-gallery-slide{\n left:0;\n position:absolute;\n top:0;\n width:100%\n}\n.image-gallery-slide.center{\n position:relative\n}\n.image-gallery-slide .image-gallery-image{\n width:100%;\n object-fit:contain\n}\n.image-gallery-slide .image-gallery-description{\n background:rgba(0,0,0,.4);\n bottom:70px;\n color:#fff;\n left:0;\n line-height:1;\n padding:10px 20px;\n position:absolute;\n white-space:normal\n}\n@media(max-width: 768px){\n .image-gallery-slide .image-gallery-description{\n bottom:45px;\n font-size:.8em;\n padding:8px 15px\n }\n}\n.image-gallery-bullets{\n bottom:20px;\n left:0;\n margin:0 auto;\n position:absolute;\n right:0;\n width:80%;\n z-index:4\n}\n.image-gallery-bullets .image-gallery-bullets-container{\n margin:0;\n padding:0;\n text-align:center\n}\n.image-gallery-bullets .image-gallery-bullet{\n appearance:none;\n background-color:transparent;\n border:1px solid #fff;\n border-radius:50%;\n box-shadow:0 2px 2px #1a1a1a;\n cursor:pointer;\n display:inline-block;\n margin:0 5px;\n outline:none;\n padding:5px;\n transition:all .2s ease-out\n}\n@media(max-width: 768px){\n .image-gallery-bullets .image-gallery-bullet{\n margin:0 3px;\n padding:3px\n }\n}\n@media(max-width: 480px){\n .image-gallery-bullets .image-gallery-bullet{\n padding:2.7px\n }\n}\n.image-gallery-bullets .image-gallery-bullet:focus{\n transform:scale(1.2);\n background:#337ab7;\n border:1px solid #337ab7\n}\n.image-gallery-bullets .image-gallery-bullet.active{\n transform:scale(1.2);\n border:1px solid #fff;\n background:#fff\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-bullets .image-gallery-bullet:hover{\n background:#337ab7;\n border:1px solid #337ab7\n }\n .image-gallery-bullets .image-gallery-bullet.active:hover{\n background:#337ab7\n }\n}\n.image-gallery-thumbnails-wrapper{\n position:relative\n}\n.image-gallery-thumbnails-wrapper.thumbnails-swipe-horizontal{\n touch-action:pan-y\n}\n.image-gallery-thumbnails-wrapper.thumbnails-swipe-vertical{\n touch-action:pan-x\n}\n.image-gallery-thumbnails-wrapper.thumbnails-wrapper-rtl{\n direction:rtl\n}\n.image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n display:inline-block;\n vertical-align:top;\n width:100px\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n width:81px\n }\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails{\n height:100%;\n width:100%;\n left:0;\n padding:0;\n position:absolute;\n top:0\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail{\n display:block;\n margin-right:0;\n padding:0\n}\n.image-gallery-thumbnails-wrapper.left .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.right .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail{\n margin-left:0;\n margin-top:2px\n}\n.image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n margin:0 5px\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails-wrapper.left,.image-gallery-thumbnails-wrapper.right{\n margin:0 3px\n }\n}\n.image-gallery-thumbnails{\n overflow:hidden;\n padding:5px 0\n}\n@media(max-width: 768px){\n .image-gallery-thumbnails{\n padding:3px 0\n }\n}\n.image-gallery-thumbnails .image-gallery-thumbnails-container{\n cursor:pointer;\n text-align:center;\n white-space:nowrap\n}\n.image-gallery-thumbnail{\n display:inline-block;\n border:4px solid transparent;\n transition:border .3s ease-out;\n width:100px;\n background:transparent;\n padding:0\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail{\n border:3px solid transparent;\n width:81px\n }\n}\n.image-gallery-thumbnail+.image-gallery-thumbnail{\n margin-left:2px\n}\n.image-gallery-thumbnail .image-gallery-thumbnail-inner{\n display:block;\n position:relative\n}\n.image-gallery-thumbnail .image-gallery-thumbnail-image{\n vertical-align:middle;\n width:100%;\n line-height:0\n}\n.image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{\n outline:none;\n border:4px solid #337ab7\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{\n border:3px solid #337ab7\n }\n}\n@media(hover: hover)and (pointer: fine){\n .image-gallery-thumbnail:hover{\n outline:none;\n border:4px solid #337ab7\n }\n}\n@media(hover: hover)and (pointer: fine)and (max-width: 768px){\n .image-gallery-thumbnail:hover{\n border:3px solid #337ab7\n }\n}\n.image-gallery-thumbnail-label{\n box-sizing:border-box;\n color:#fff;\n font-size:1em;\n left:0;\n line-height:1em;\n padding:5%;\n position:absolute;\n top:50%;\n text-shadow:0 2px 2px #1a1a1a;\n transform:translateY(-50%);\n white-space:normal;\n width:100%\n}\n@media(max-width: 768px){\n .image-gallery-thumbnail-label{\n font-size:.8em;\n line-height:.8em\n }\n}\n.image-gallery-index{\n background:rgba(0,0,0,.4);\n color:#fff;\n line-height:1;\n padding:10px 20px;\n position:absolute;\n right:0;\n top:0;\n z-index:4\n}\n@media(max-width: 768px){\n .image-gallery-index{\n font-size:.8em;\n padding:5px 10px\n }\n}\n"])));
8138
-
8139
- function ImageGallery(_ref) {
8140
- var options = _ref.options;
8141
-
8142
- if (!options.content || options.content.length < 1) {
8143
- return /*#__PURE__*/React__default["default"].createElement("div", null);
8144
- }
8145
-
8146
- var items = options.content.map(transform);
8147
- return /*#__PURE__*/React__default["default"].createElement(NewGallery, null, /*#__PURE__*/React__default["default"].createElement(Gallery$1, {
8148
- items: items,
8149
- showThumbnails: true,
8150
- thumbnailPosition: "right"
8151
- }));
8152
- }
8153
-
8154
- function transform(item) {
8155
- return {
8156
- original: "https://cdn.burobork.nl/".concat(item.reference),
8157
- thumbnail: "https://cdn.burobork.nl/".concat(item.reference),
8158
- originalAlt: item.alt,
8159
- originalTitle: item.title,
8160
- lazyLoad: true
8161
- };
8162
- }
8163
-
8164
- var js = {};
8165
-
8166
- var Carousel$1 = {};
8167
-
8168
- var lib$1 = {};
8169
-
8170
- var reactSwipe = {};
8171
-
8172
- var propTypes = {exports: {}};
8173
-
8174
- /**
8175
- * Copyright (c) 2013-present, Facebook, Inc.
8176
- *
8177
- * This source code is licensed under the MIT license found in the
8178
- * LICENSE file in the root directory of this source tree.
8179
- */
8180
-
8181
- var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
8182
-
8183
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
8184
-
8185
- /**
8186
- * Copyright (c) 2013-present, Facebook, Inc.
8187
- *
8188
- * This source code is licensed under the MIT license found in the
8189
- * LICENSE file in the root directory of this source tree.
8190
- */
8191
-
8192
- var printWarning$1 = function() {};
8193
-
8194
- if (process.env.NODE_ENV !== 'production') {
8195
- var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
8196
- var loggedTypeFailures = {};
8197
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
8198
-
8199
- printWarning$1 = function(text) {
8200
- var message = 'Warning: ' + text;
8201
- if (typeof console !== 'undefined') {
8202
- console.error(message);
8203
- }
8204
- try {
8205
- // --- Welcome to debugging React ---
8206
- // This error was thrown as a convenience so that you can use this stack
8207
- // to find the callsite that caused this warning to fire.
8208
- throw new Error(message);
8209
- } catch (x) {}
8210
- };
8211
- }
8212
-
8213
- /**
8214
- * Assert that the values match with the type specs.
8215
- * Error messages are memorized and will only be shown once.
8216
- *
8217
- * @param {object} typeSpecs Map of name to a ReactPropType
8218
- * @param {object} values Runtime values that need to be type-checked
8219
- * @param {string} location e.g. "prop", "context", "child context"
8220
- * @param {string} componentName Name of the component for error messages.
8221
- * @param {?Function} getStack Returns the component stack.
8222
- * @private
8223
- */
8224
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
8225
- if (process.env.NODE_ENV !== 'production') {
8226
- for (var typeSpecName in typeSpecs) {
8227
- if (has$1(typeSpecs, typeSpecName)) {
8228
- var error;
8229
- // Prop type validation may throw. In case they do, we don't want to
8230
- // fail the render phase where it didn't fail before. So we log it.
8231
- // After these have been cleaned up, we'll let them throw.
8232
- try {
8233
- // This is intentionally an invariant that gets caught. It's the same
8234
- // behavior as without this statement except with a better message.
8235
- if (typeof typeSpecs[typeSpecName] !== 'function') {
8236
- var err = Error(
8237
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
8238
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
8239
- );
8240
- err.name = 'Invariant Violation';
8241
- throw err;
8242
- }
8243
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
8244
- } catch (ex) {
8245
- error = ex;
8246
- }
8247
- if (error && !(error instanceof Error)) {
8248
- printWarning$1(
8249
- (componentName || 'React class') + ': type specification of ' +
8250
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
8251
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
8252
- 'You may have forgotten to pass an argument to the type checker ' +
8253
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
8254
- 'shape all require an argument).'
8255
- );
8256
- }
8257
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
8258
- // Only monitor this failure once because there tends to be a lot of the
8259
- // same error.
8260
- loggedTypeFailures[error.message] = true;
8261
-
8262
- var stack = getStack ? getStack() : '';
8263
-
8264
- printWarning$1(
8265
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
8266
- );
8267
- }
8268
- }
8269
- }
8270
- }
8271
- }
8272
-
8273
- /**
8274
- * Resets warning cache when testing.
8275
- *
8276
- * @private
8277
- */
8278
- checkPropTypes$1.resetWarningCache = function() {
8279
- if (process.env.NODE_ENV !== 'production') {
8280
- loggedTypeFailures = {};
8281
- }
8282
- };
8283
-
8284
- var checkPropTypes_1 = checkPropTypes$1;
8285
-
8286
- /**
8287
- * Copyright (c) 2013-present, Facebook, Inc.
8288
- *
8289
- * This source code is licensed under the MIT license found in the
8290
- * LICENSE file in the root directory of this source tree.
8291
- */
8292
-
8293
- var ReactIs$1 = reactIs$1.exports;
8294
- var assign = objectAssign;
8295
-
8296
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
8297
- var checkPropTypes = checkPropTypes_1;
8298
-
8299
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
8300
- var printWarning = function() {};
8301
-
8302
- if (process.env.NODE_ENV !== 'production') {
8303
- printWarning = function(text) {
8304
- var message = 'Warning: ' + text;
8305
- if (typeof console !== 'undefined') {
8306
- console.error(message);
8307
- }
8308
- try {
8309
- // --- Welcome to debugging React ---
8310
- // This error was thrown as a convenience so that you can use this stack
8311
- // to find the callsite that caused this warning to fire.
8312
- throw new Error(message);
8313
- } catch (x) {}
8314
- };
8315
- }
8316
-
8317
- function emptyFunctionThatReturnsNull() {
8318
- return null;
8319
- }
8320
-
8321
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
8322
- /* global Symbol */
8323
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
8324
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
8325
-
8326
- /**
8327
- * Returns the iterator method function contained on the iterable object.
8328
- *
8329
- * Be sure to invoke the function with the iterable as context:
8330
- *
8331
- * var iteratorFn = getIteratorFn(myIterable);
8332
- * if (iteratorFn) {
8333
- * var iterator = iteratorFn.call(myIterable);
8334
- * ...
8335
- * }
8336
- *
8337
- * @param {?object} maybeIterable
8338
- * @return {?function}
8339
- */
8340
- function getIteratorFn(maybeIterable) {
8341
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
8342
- if (typeof iteratorFn === 'function') {
8343
- return iteratorFn;
8344
- }
8345
- }
8346
-
8347
- /**
8348
- * Collection of methods that allow declaration and validation of props that are
8349
- * supplied to React components. Example usage:
8350
- *
8351
- * var Props = require('ReactPropTypes');
8352
- * var MyArticle = React.createClass({
8353
- * propTypes: {
8354
- * // An optional string prop named "description".
8355
- * description: Props.string,
8356
- *
8357
- * // A required enum prop named "category".
8358
- * category: Props.oneOf(['News','Photos']).isRequired,
8359
- *
8360
- * // A prop named "dialog" that requires an instance of Dialog.
8361
- * dialog: Props.instanceOf(Dialog).isRequired
8362
- * },
8363
- * render: function() { ... }
8364
- * });
8365
- *
8366
- * A more formal specification of how these methods are used:
8367
- *
8368
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
8369
- * decl := ReactPropTypes.{type}(.isRequired)?
8370
- *
8371
- * Each and every declaration produces a function with the same signature. This
8372
- * allows the creation of custom validation functions. For example:
8373
- *
8374
- * var MyLink = React.createClass({
8375
- * propTypes: {
8376
- * // An optional string or URI prop named "href".
8377
- * href: function(props, propName, componentName) {
8378
- * var propValue = props[propName];
8379
- * if (propValue != null && typeof propValue !== 'string' &&
8380
- * !(propValue instanceof URI)) {
8381
- * return new Error(
8382
- * 'Expected a string or an URI for ' + propName + ' in ' +
8383
- * componentName
8384
- * );
8385
- * }
8386
- * }
8387
- * },
8388
- * render: function() {...}
8389
- * });
8390
- *
8391
- * @internal
8392
- */
8393
-
8394
- var ANONYMOUS = '<<anonymous>>';
8395
-
8396
- // Important!
8397
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
8398
- var ReactPropTypes = {
8399
- array: createPrimitiveTypeChecker('array'),
8400
- bool: createPrimitiveTypeChecker('boolean'),
8401
- func: createPrimitiveTypeChecker('function'),
8402
- number: createPrimitiveTypeChecker('number'),
8403
- object: createPrimitiveTypeChecker('object'),
8404
- string: createPrimitiveTypeChecker('string'),
8405
- symbol: createPrimitiveTypeChecker('symbol'),
8406
-
8407
- any: createAnyTypeChecker(),
8408
- arrayOf: createArrayOfTypeChecker,
8409
- element: createElementTypeChecker(),
8410
- elementType: createElementTypeTypeChecker(),
8411
- instanceOf: createInstanceTypeChecker,
8412
- node: createNodeChecker(),
8413
- objectOf: createObjectOfTypeChecker,
8414
- oneOf: createEnumTypeChecker,
8415
- oneOfType: createUnionTypeChecker,
8416
- shape: createShapeTypeChecker,
8417
- exact: createStrictShapeTypeChecker,
8418
- };
8419
-
8420
- /**
8421
- * inlined Object.is polyfill to avoid requiring consumers ship their own
8422
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
8423
- */
8424
- /*eslint-disable no-self-compare*/
8425
- function is(x, y) {
8426
- // SameValue algorithm
8427
- if (x === y) {
8428
- // Steps 1-5, 7-10
8429
- // Steps 6.b-6.e: +0 != -0
8430
- return x !== 0 || 1 / x === 1 / y;
8431
- } else {
8432
- // Step 6.a: NaN == NaN
8433
- return x !== x && y !== y;
8434
- }
8435
- }
8436
- /*eslint-enable no-self-compare*/
8437
-
8438
- /**
8439
- * We use an Error-like object for backward compatibility as people may call
8440
- * PropTypes directly and inspect their output. However, we don't use real
8441
- * Errors anymore. We don't inspect their stack anyway, and creating them
8442
- * is prohibitively expensive if they are created too often, such as what
8443
- * happens in oneOfType() for any type before the one that matched.
8444
- */
8445
- function PropTypeError(message) {
8446
- this.message = message;
8447
- this.stack = '';
8448
- }
8449
- // Make `instanceof Error` still work for returned errors.
8450
- PropTypeError.prototype = Error.prototype;
8451
-
8452
- function createChainableTypeChecker(validate) {
8453
- if (process.env.NODE_ENV !== 'production') {
8454
- var manualPropTypeCallCache = {};
8455
- var manualPropTypeWarningCount = 0;
8456
- }
8457
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
8458
- componentName = componentName || ANONYMOUS;
8459
- propFullName = propFullName || propName;
8460
-
8461
- if (secret !== ReactPropTypesSecret$1) {
8462
- if (throwOnDirectAccess) {
8463
- // New behavior only for users of `prop-types` package
8464
- var err = new Error(
8465
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
8466
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
8467
- 'Read more at http://fb.me/use-check-prop-types'
8468
- );
8469
- err.name = 'Invariant Violation';
8470
- throw err;
8471
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
8472
- // Old behavior for people using React.PropTypes
8473
- var cacheKey = componentName + ':' + propName;
8474
- if (
8475
- !manualPropTypeCallCache[cacheKey] &&
8476
- // Avoid spamming the console because they are often not actionable except for lib authors
8477
- manualPropTypeWarningCount < 3
8478
- ) {
8479
- printWarning(
8480
- 'You are manually calling a React.PropTypes validation ' +
8481
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
8482
- 'and will throw in the standalone `prop-types` package. ' +
8483
- 'You may be seeing this warning due to a third-party PropTypes ' +
8484
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
8485
- );
8486
- manualPropTypeCallCache[cacheKey] = true;
8487
- manualPropTypeWarningCount++;
8488
- }
8489
- }
8490
- }
8491
- if (props[propName] == null) {
8492
- if (isRequired) {
8493
- if (props[propName] === null) {
8494
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
8495
- }
8496
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
8497
- }
8498
- return null;
8499
- } else {
8500
- return validate(props, propName, componentName, location, propFullName);
8501
- }
8502
- }
8503
-
8504
- var chainedCheckType = checkType.bind(null, false);
8505
- chainedCheckType.isRequired = checkType.bind(null, true);
8506
-
8507
- return chainedCheckType;
8508
- }
8509
-
8510
- function createPrimitiveTypeChecker(expectedType) {
8511
- function validate(props, propName, componentName, location, propFullName, secret) {
8512
- var propValue = props[propName];
8513
- var propType = getPropType(propValue);
8514
- if (propType !== expectedType) {
8515
- // `propValue` being instance of, say, date/regexp, pass the 'object'
8516
- // check, but we can offer a more precise error message here rather than
8517
- // 'of type `object`'.
8518
- var preciseType = getPreciseType(propValue);
8519
-
8520
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
8521
- }
8522
- return null;
8523
- }
8524
- return createChainableTypeChecker(validate);
8525
- }
8526
-
8527
- function createAnyTypeChecker() {
8528
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
8529
- }
8530
-
8531
- function createArrayOfTypeChecker(typeChecker) {
8532
- function validate(props, propName, componentName, location, propFullName) {
8533
- if (typeof typeChecker !== 'function') {
8534
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
8535
- }
8536
- var propValue = props[propName];
8537
- if (!Array.isArray(propValue)) {
8538
- var propType = getPropType(propValue);
8539
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
8540
- }
8541
- for (var i = 0; i < propValue.length; i++) {
8542
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
8543
- if (error instanceof Error) {
8544
- return error;
8545
- }
8546
- }
8547
- return null;
8548
- }
8549
- return createChainableTypeChecker(validate);
8550
- }
8551
-
8552
- function createElementTypeChecker() {
8553
- function validate(props, propName, componentName, location, propFullName) {
8554
- var propValue = props[propName];
8555
- if (!isValidElement(propValue)) {
8556
- var propType = getPropType(propValue);
8557
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
8558
- }
8559
- return null;
8560
- }
8561
- return createChainableTypeChecker(validate);
8562
- }
8563
-
8564
- function createElementTypeTypeChecker() {
8565
- function validate(props, propName, componentName, location, propFullName) {
8566
- var propValue = props[propName];
8567
- if (!ReactIs$1.isValidElementType(propValue)) {
8568
- var propType = getPropType(propValue);
8569
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
8570
- }
8571
- return null;
8572
- }
8573
- return createChainableTypeChecker(validate);
8574
- }
8575
-
8576
- function createInstanceTypeChecker(expectedClass) {
8577
- function validate(props, propName, componentName, location, propFullName) {
8578
- if (!(props[propName] instanceof expectedClass)) {
8579
- var expectedClassName = expectedClass.name || ANONYMOUS;
8580
- var actualClassName = getClassName(props[propName]);
8581
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
8582
- }
8583
- return null;
8584
- }
8585
- return createChainableTypeChecker(validate);
8586
- }
8587
-
8588
- function createEnumTypeChecker(expectedValues) {
8589
- if (!Array.isArray(expectedValues)) {
8590
- if (process.env.NODE_ENV !== 'production') {
8591
- if (arguments.length > 1) {
8592
- printWarning(
8593
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
8594
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
8595
- );
8596
- } else {
8597
- printWarning('Invalid argument supplied to oneOf, expected an array.');
8598
- }
8599
- }
8600
- return emptyFunctionThatReturnsNull;
8601
- }
8602
-
8603
- function validate(props, propName, componentName, location, propFullName) {
8604
- var propValue = props[propName];
8605
- for (var i = 0; i < expectedValues.length; i++) {
8606
- if (is(propValue, expectedValues[i])) {
8607
- return null;
8608
- }
8609
- }
8610
-
8611
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
8612
- var type = getPreciseType(value);
8613
- if (type === 'symbol') {
8614
- return String(value);
8615
- }
8616
- return value;
8617
- });
8618
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
8619
- }
8620
- return createChainableTypeChecker(validate);
8621
- }
8622
-
8623
- function createObjectOfTypeChecker(typeChecker) {
8624
- function validate(props, propName, componentName, location, propFullName) {
8625
- if (typeof typeChecker !== 'function') {
8626
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
8627
- }
8628
- var propValue = props[propName];
8629
- var propType = getPropType(propValue);
8630
- if (propType !== 'object') {
8631
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
8632
- }
8633
- for (var key in propValue) {
8634
- if (has(propValue, key)) {
8635
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
8636
- if (error instanceof Error) {
8637
- return error;
8638
- }
8639
- }
8640
- }
8641
- return null;
8642
- }
8643
- return createChainableTypeChecker(validate);
8644
- }
8645
-
8646
- function createUnionTypeChecker(arrayOfTypeCheckers) {
8647
- if (!Array.isArray(arrayOfTypeCheckers)) {
8648
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
8649
- return emptyFunctionThatReturnsNull;
8650
- }
8651
-
8652
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
8653
- var checker = arrayOfTypeCheckers[i];
8654
- if (typeof checker !== 'function') {
8655
- printWarning(
8656
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
8657
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
8658
- );
8659
- return emptyFunctionThatReturnsNull;
8660
- }
8661
- }
8662
-
8663
- function validate(props, propName, componentName, location, propFullName) {
8664
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
8665
- var checker = arrayOfTypeCheckers[i];
8666
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
6230
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1) == null) {
8667
6231
  return null;
8668
6232
  }
8669
6233
  }
@@ -16952,21 +14516,17 @@ function Map$1(_ref) {
16952
14516
  id: 'google-map-script',
16953
14517
  googleMapsApiKey: "AIzaSyDnzyZ8cUsl2pcSJWUXqgj3nRg_EO1lY6Q"
16954
14518
  }),
16955
- isLoaded = _useJsApiLoader.isLoaded;
14519
+ isLoaded = _useJsApiLoader.isLoaded; // const [map, setMap] = React.useState(null)
14520
+ // const onLoad = React.useCallback(function callback(map) {
14521
+ // const bounds = new window.google.maps.LatLngBounds();
14522
+ // map.fitBounds(bounds);
14523
+ // setMap(map)
14524
+ // }, [])
14525
+ // const onUnmount = React.useCallback(function callback(map) {
14526
+ // setMap(null)
14527
+ // }, [])
16956
14528
 
16957
- var _React$useState = React__default["default"].useState(null),
16958
- _React$useState2 = _slicedToArray$1(_React$useState, 2);
16959
- _React$useState2[0];
16960
- var setMap = _React$useState2[1];
16961
14529
 
16962
- var onLoad = React__default["default"].useCallback(function callback(map) {
16963
- var bounds = new window.google.maps.LatLngBounds();
16964
- map.fitBounds(bounds);
16965
- setMap(map);
16966
- }, []);
16967
- var onUnmount = React__default["default"].useCallback(function callback(map) {
16968
- setMap(null);
16969
- }, []);
16970
14530
  return /*#__PURE__*/React__default["default"].createElement("div", {
16971
14531
  style: {
16972
14532
  height: '500px',
@@ -16978,9 +14538,9 @@ function Map$1(_ref) {
16978
14538
  width: '100%'
16979
14539
  },
16980
14540
  center: center,
16981
- zoom: 10,
16982
- onLoad: onLoad,
16983
- onUnmount: onUnmount
14541
+ zoom: 10 // onLoad={onLoad}
14542
+ // onUnmount={onUnmount}
14543
+
16984
14544
  }, /*#__PURE__*/React__default["default"].createElement(Marker, {
16985
14545
  position: center,
16986
14546
  icon: "https://cms.burobork.nl/marker.svg"
@@ -66997,7 +64557,7 @@ function Block(_ref) {
66997
64557
  }
66998
64558
 
66999
64559
  Block.propTypes = {
67000
- pageBlock: PropTypes$1.object.isRequired
64560
+ pageBlock: PropTypes.object.isRequired
67001
64561
  };
67002
64562
 
67003
64563
  function Wrapper(_ref2) {