cmspageblocks 1.0.26 → 1.0.31

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
@@ -31,7 +31,7 @@ function getAugmentedNamespace(n) {
31
31
  return a;
32
32
  }
33
33
 
34
- var propTypes$1 = {exports: {}};
34
+ var propTypes$2 = {exports: {}};
35
35
 
36
36
  var reactIs$1 = {exports: {}};
37
37
 
@@ -335,11 +335,11 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
335
335
  * LICENSE file in the root directory of this source tree.
336
336
  */
337
337
 
338
- var ReactPropTypesSecret$7 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
338
+ var ReactPropTypesSecret$b = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
339
339
 
340
- var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
340
+ var ReactPropTypesSecret_1$2 = ReactPropTypesSecret$b;
341
341
 
342
- var has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
342
+ var has$6 = Function.call.bind(Object.prototype.hasOwnProperty);
343
343
 
344
344
  /**
345
345
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -348,14 +348,14 @@ var has$4 = Function.call.bind(Object.prototype.hasOwnProperty);
348
348
  * LICENSE file in the root directory of this source tree.
349
349
  */
350
350
 
351
- var printWarning$3 = function() {};
351
+ var printWarning$5 = function() {};
352
352
 
353
353
  if (process.env.NODE_ENV !== 'production') {
354
- var ReactPropTypesSecret$6 = ReactPropTypesSecret_1$1;
355
- var loggedTypeFailures$1 = {};
356
- var has$3 = has$4;
354
+ var ReactPropTypesSecret$a = ReactPropTypesSecret_1$2;
355
+ var loggedTypeFailures$2 = {};
356
+ var has$5 = has$6;
357
357
 
358
- printWarning$3 = function(text) {
358
+ printWarning$5 = function(text) {
359
359
  var message = 'Warning: ' + text;
360
360
  if (typeof console !== 'undefined') {
361
361
  console.error(message);
@@ -380,10 +380,10 @@ if (process.env.NODE_ENV !== 'production') {
380
380
  * @param {?Function} getStack Returns the component stack.
381
381
  * @private
382
382
  */
383
- function checkPropTypes$3(typeSpecs, values, location, componentName, getStack) {
383
+ function checkPropTypes$5(typeSpecs, values, location, componentName, getStack) {
384
384
  if (process.env.NODE_ENV !== 'production') {
385
385
  for (var typeSpecName in typeSpecs) {
386
- if (has$3(typeSpecs, typeSpecName)) {
386
+ if (has$5(typeSpecs, typeSpecName)) {
387
387
  var error;
388
388
  // Prop type validation may throw. In case they do, we don't want to
389
389
  // fail the render phase where it didn't fail before. So we log it.
@@ -400,12 +400,12 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
400
400
  err.name = 'Invariant Violation';
401
401
  throw err;
402
402
  }
403
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$6);
403
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$a);
404
404
  } catch (ex) {
405
405
  error = ex;
406
406
  }
407
407
  if (error && !(error instanceof Error)) {
408
- printWarning$3(
408
+ printWarning$5(
409
409
  (componentName || 'React class') + ': type specification of ' +
410
410
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
411
411
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -414,14 +414,14 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
414
414
  'shape all require an argument).'
415
415
  );
416
416
  }
417
- if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
417
+ if (error instanceof Error && !(error.message in loggedTypeFailures$2)) {
418
418
  // Only monitor this failure once because there tends to be a lot of the
419
419
  // same error.
420
- loggedTypeFailures$1[error.message] = true;
420
+ loggedTypeFailures$2[error.message] = true;
421
421
 
422
422
  var stack = getStack ? getStack() : '';
423
423
 
424
- printWarning$3(
424
+ printWarning$5(
425
425
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
426
426
  );
427
427
  }
@@ -435,13 +435,13 @@ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack)
435
435
  *
436
436
  * @private
437
437
  */
438
- checkPropTypes$3.resetWarningCache = function() {
438
+ checkPropTypes$5.resetWarningCache = function() {
439
439
  if (process.env.NODE_ENV !== 'production') {
440
- loggedTypeFailures$1 = {};
440
+ loggedTypeFailures$2 = {};
441
441
  }
442
442
  };
443
443
 
444
- var checkPropTypes_1$1 = checkPropTypes$3;
444
+ var checkPropTypes_1$2 = checkPropTypes$5;
445
445
 
446
446
  /**
447
447
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -450,17 +450,17 @@ var checkPropTypes_1$1 = checkPropTypes$3;
450
450
  * LICENSE file in the root directory of this source tree.
451
451
  */
452
452
 
453
- var ReactIs$3 = reactIs$1.exports;
454
- var assign$1 = objectAssign;
453
+ var ReactIs$5 = reactIs$1.exports;
454
+ var assign$2 = objectAssign;
455
455
 
456
- var ReactPropTypesSecret$5 = ReactPropTypesSecret_1$1;
457
- var has$2 = has$4;
458
- var checkPropTypes$2 = checkPropTypes_1$1;
456
+ var ReactPropTypesSecret$9 = ReactPropTypesSecret_1$2;
457
+ var has$4 = has$6;
458
+ var checkPropTypes$4 = checkPropTypes_1$2;
459
459
 
460
- var printWarning$2 = function() {};
460
+ var printWarning$4 = function() {};
461
461
 
462
462
  if (process.env.NODE_ENV !== 'production') {
463
- printWarning$2 = function(text) {
463
+ printWarning$4 = function(text) {
464
464
  var message = 'Warning: ' + text;
465
465
  if (typeof console !== 'undefined') {
466
466
  console.error(message);
@@ -474,11 +474,11 @@ if (process.env.NODE_ENV !== 'production') {
474
474
  };
475
475
  }
476
476
 
477
- function emptyFunctionThatReturnsNull$1() {
477
+ function emptyFunctionThatReturnsNull$2() {
478
478
  return null;
479
479
  }
480
480
 
481
- var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
481
+ var factoryWithTypeCheckers$2 = function(isValidElement, throwOnDirectAccess) {
482
482
  /* global Symbol */
483
483
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
484
484
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -620,7 +620,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
620
620
  componentName = componentName || ANONYMOUS;
621
621
  propFullName = propFullName || propName;
622
622
 
623
- if (secret !== ReactPropTypesSecret$5) {
623
+ if (secret !== ReactPropTypesSecret$9) {
624
624
  if (throwOnDirectAccess) {
625
625
  // New behavior only for users of `prop-types` package
626
626
  var err = new Error(
@@ -638,7 +638,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
638
638
  // Avoid spamming the console because they are often not actionable except for lib authors
639
639
  manualPropTypeWarningCount < 3
640
640
  ) {
641
- printWarning$2(
641
+ printWarning$4(
642
642
  'You are manually calling a React.PropTypes validation ' +
643
643
  'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
644
644
  'and will throw in the standalone `prop-types` package. ' +
@@ -690,7 +690,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
690
690
  }
691
691
 
692
692
  function createAnyTypeChecker() {
693
- return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
693
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull$2);
694
694
  }
695
695
 
696
696
  function createArrayOfTypeChecker(typeChecker) {
@@ -704,7 +704,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
704
704
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
705
705
  }
706
706
  for (var i = 0; i < propValue.length; i++) {
707
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$5);
707
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$9);
708
708
  if (error instanceof Error) {
709
709
  return error;
710
710
  }
@@ -729,7 +729,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
729
729
  function createElementTypeTypeChecker() {
730
730
  function validate(props, propName, componentName, location, propFullName) {
731
731
  var propValue = props[propName];
732
- if (!ReactIs$3.isValidElementType(propValue)) {
732
+ if (!ReactIs$5.isValidElementType(propValue)) {
733
733
  var propType = getPropType(propValue);
734
734
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
735
735
  }
@@ -754,15 +754,15 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
754
754
  if (!Array.isArray(expectedValues)) {
755
755
  if (process.env.NODE_ENV !== 'production') {
756
756
  if (arguments.length > 1) {
757
- printWarning$2(
757
+ printWarning$4(
758
758
  'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
759
759
  'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
760
760
  );
761
761
  } else {
762
- printWarning$2('Invalid argument supplied to oneOf, expected an array.');
762
+ printWarning$4('Invalid argument supplied to oneOf, expected an array.');
763
763
  }
764
764
  }
765
- return emptyFunctionThatReturnsNull$1;
765
+ return emptyFunctionThatReturnsNull$2;
766
766
  }
767
767
 
768
768
  function validate(props, propName, componentName, location, propFullName) {
@@ -796,8 +796,8 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
796
796
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
797
797
  }
798
798
  for (var key in propValue) {
799
- if (has$2(propValue, key)) {
800
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
799
+ if (has$4(propValue, key)) {
800
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
801
801
  if (error instanceof Error) {
802
802
  return error;
803
803
  }
@@ -810,18 +810,18 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
810
810
 
811
811
  function createUnionTypeChecker(arrayOfTypeCheckers) {
812
812
  if (!Array.isArray(arrayOfTypeCheckers)) {
813
- process.env.NODE_ENV !== 'production' ? printWarning$2('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
814
- return emptyFunctionThatReturnsNull$1;
813
+ process.env.NODE_ENV !== 'production' ? printWarning$4('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
814
+ return emptyFunctionThatReturnsNull$2;
815
815
  }
816
816
 
817
817
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
818
818
  var checker = arrayOfTypeCheckers[i];
819
819
  if (typeof checker !== 'function') {
820
- printWarning$2(
820
+ printWarning$4(
821
821
  'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
822
822
  'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
823
823
  );
824
- return emptyFunctionThatReturnsNull$1;
824
+ return emptyFunctionThatReturnsNull$2;
825
825
  }
826
826
  }
827
827
 
@@ -829,11 +829,11 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
829
829
  var expectedTypes = [];
830
830
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
831
831
  var checker = arrayOfTypeCheckers[i];
832
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5);
832
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$9);
833
833
  if (checkerResult == null) {
834
834
  return null;
835
835
  }
836
- if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
836
+ if (checkerResult.data && has$4(checkerResult.data, 'expectedType')) {
837
837
  expectedTypes.push(checkerResult.data.expectedType);
838
838
  }
839
839
  }
@@ -872,7 +872,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
872
872
  if (typeof checker !== 'function') {
873
873
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
874
874
  }
875
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
875
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
876
876
  if (error) {
877
877
  return error;
878
878
  }
@@ -890,10 +890,10 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
890
890
  return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
891
891
  }
892
892
  // We need to check all keys in case some are required but missing from props.
893
- var allKeys = assign$1({}, props[propName], shapeTypes);
893
+ var allKeys = assign$2({}, props[propName], shapeTypes);
894
894
  for (var key in allKeys) {
895
895
  var checker = shapeTypes[key];
896
- if (has$2(shapeTypes, key) && typeof checker !== 'function') {
896
+ if (has$4(shapeTypes, key) && typeof checker !== 'function') {
897
897
  return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
898
898
  }
899
899
  if (!checker) {
@@ -903,7 +903,7 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
903
903
  '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
904
904
  );
905
905
  }
906
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
906
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$9);
907
907
  if (error) {
908
908
  return error;
909
909
  }
@@ -1045,8 +1045,8 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
1045
1045
  return propValue.constructor.name;
1046
1046
  }
1047
1047
 
1048
- ReactPropTypes.checkPropTypes = checkPropTypes$2;
1049
- ReactPropTypes.resetWarningCache = checkPropTypes$2.resetWarningCache;
1048
+ ReactPropTypes.checkPropTypes = checkPropTypes$4;
1049
+ ReactPropTypes.resetWarningCache = checkPropTypes$4.resetWarningCache;
1050
1050
  ReactPropTypes.PropTypes = ReactPropTypes;
1051
1051
 
1052
1052
  return ReactPropTypes;
@@ -1059,15 +1059,15 @@ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
1059
1059
  * LICENSE file in the root directory of this source tree.
1060
1060
  */
1061
1061
 
1062
- var ReactPropTypesSecret$4 = ReactPropTypesSecret_1$1;
1062
+ var ReactPropTypesSecret$8 = ReactPropTypesSecret_1$2;
1063
1063
 
1064
- function emptyFunction$1() {}
1065
- function emptyFunctionWithReset$1() {}
1066
- emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
1064
+ function emptyFunction$2() {}
1065
+ function emptyFunctionWithReset$2() {}
1066
+ emptyFunctionWithReset$2.resetWarningCache = emptyFunction$2;
1067
1067
 
1068
- var factoryWithThrowingShims$1 = function() {
1068
+ var factoryWithThrowingShims$2 = function() {
1069
1069
  function shim(props, propName, componentName, location, propFullName, secret) {
1070
- if (secret === ReactPropTypesSecret$4) {
1070
+ if (secret === ReactPropTypesSecret$8) {
1071
1071
  // It is still safe when called from React.
1072
1072
  return;
1073
1073
  }
@@ -1105,8 +1105,8 @@ var factoryWithThrowingShims$1 = function() {
1105
1105
  shape: getShim,
1106
1106
  exact: getShim,
1107
1107
 
1108
- checkPropTypes: emptyFunctionWithReset$1,
1109
- resetWarningCache: emptyFunction$1
1108
+ checkPropTypes: emptyFunctionWithReset$2,
1109
+ resetWarningCache: emptyFunction$2
1110
1110
  };
1111
1111
 
1112
1112
  ReactPropTypes.PropTypes = ReactPropTypes;
@@ -1122,19 +1122,19 @@ var factoryWithThrowingShims$1 = function() {
1122
1122
  */
1123
1123
 
1124
1124
  if (process.env.NODE_ENV !== 'production') {
1125
- var ReactIs$2 = reactIs$1.exports;
1125
+ var ReactIs$4 = reactIs$1.exports;
1126
1126
 
1127
1127
  // By explicitly using `prop-types` you are opting into new development behavior.
1128
1128
  // http://fb.me/prop-types-in-prod
1129
- var throwOnDirectAccess$1 = true;
1130
- propTypes$1.exports = factoryWithTypeCheckers$1(ReactIs$2.isElement, throwOnDirectAccess$1);
1129
+ var throwOnDirectAccess$2 = true;
1130
+ propTypes$2.exports = factoryWithTypeCheckers$2(ReactIs$4.isElement, throwOnDirectAccess$2);
1131
1131
  } else {
1132
1132
  // By explicitly using `prop-types` you are opting into new production behavior.
1133
1133
  // http://fb.me/prop-types-in-prod
1134
- propTypes$1.exports = factoryWithThrowingShims$1();
1134
+ propTypes$2.exports = factoryWithThrowingShims$2();
1135
1135
  }
1136
1136
 
1137
- var PropTypes = propTypes$1.exports;
1137
+ var PropTypes$1 = propTypes$2.exports;
1138
1138
 
1139
1139
  var classnames = {exports: {}};
1140
1140
 
@@ -1196,9 +1196,307 @@ var classnames = {exports: {}};
1196
1196
 
1197
1197
  var classNames = classnames.exports;
1198
1198
 
1199
+ function _taggedTemplateLiteral(strings, raw) {
1200
+ if (!raw) {
1201
+ raw = strings.slice(0);
1202
+ }
1203
+
1204
+ return Object.freeze(Object.defineProperties(strings, {
1205
+ raw: {
1206
+ value: Object.freeze(raw)
1207
+ }
1208
+ }));
1209
+ }
1210
+
1211
+ function _slicedToArray$1(arr, i) {
1212
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest$1();
1213
+ }
1214
+
1215
+ function _arrayWithHoles$1(arr) {
1216
+ if (Array.isArray(arr)) return arr;
1217
+ }
1218
+
1219
+ function _iterableToArrayLimit$1(arr, i) {
1220
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1221
+
1222
+ if (_i == null) return;
1223
+ var _arr = [];
1224
+ var _n = true;
1225
+ var _d = false;
1226
+
1227
+ var _s, _e;
1228
+
1229
+ try {
1230
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
1231
+ _arr.push(_s.value);
1232
+
1233
+ if (i && _arr.length === i) break;
1234
+ }
1235
+ } catch (err) {
1236
+ _d = true;
1237
+ _e = err;
1238
+ } finally {
1239
+ try {
1240
+ if (!_n && _i["return"] != null) _i["return"]();
1241
+ } finally {
1242
+ if (_d) throw _e;
1243
+ }
1244
+ }
1245
+
1246
+ return _arr;
1247
+ }
1248
+
1249
+ function _unsupportedIterableToArray(o, minLen) {
1250
+ if (!o) return;
1251
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1252
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1253
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1254
+ if (n === "Map" || n === "Set") return Array.from(o);
1255
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1256
+ }
1257
+
1258
+ function _arrayLikeToArray(arr, len) {
1259
+ if (len == null || len > arr.length) len = arr.length;
1260
+
1261
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1262
+
1263
+ return arr2;
1264
+ }
1265
+
1266
+ function _nonIterableRest$1() {
1267
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1268
+ }
1269
+
1270
+ var _templateObject$8, _templateObject2$3;
1271
+ var BREAKPOINTS = {
1272
+ DESKTOP: 992,
1273
+ TABLET: 768,
1274
+ PHONE: 376
1275
+ };
1276
+ var MEDIA = Object.keys(BREAKPOINTS).reduce(function (acc, label) {
1277
+ acc[label] = function () {
1278
+ return styled.css(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteral(["\n @media (max-width: ", "em) {\n ", ";\n }\n "])), BREAKPOINTS[label] / 16, styled.css.apply(void 0, arguments));
1279
+ };
1280
+
1281
+ acc["MIN_".concat(label)] = function () {
1282
+ return styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteral(["\n @media (min-width: ", "em) {\n ", ";\n }\n "])), BREAKPOINTS[label] / 16, styled.css.apply(void 0, arguments));
1283
+ };
1284
+
1285
+ return acc;
1286
+ }, {});
1287
+
1288
+ var _templateObject$7, _templateObject2$2, _templateObject3$2, _templateObject4$1, _templateObject5$1;
1289
+ 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) {
1290
+ return props.theme.primaryColor;
1291
+ }, MEDIA.PHONE(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteral(["\n flex-direction: column;\n width: 100%;\n overflow: hidden;\n "]))));
1292
+ 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 "]))));
1293
+
1294
+ var _templateObject$6;
1295
+ 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"])));
1296
+
1297
+ var Bedroom = function Bedroom(_ref) {
1298
+ var width = _ref.width,
1299
+ height = _ref.height,
1300
+ fill = _ref.fill;
1301
+ return /*#__PURE__*/React__default["default"].createElement(Svg$2, {
1302
+ width: width,
1303
+ height: height,
1304
+ fill: fill,
1305
+ viewBox: "0 0 84 60",
1306
+ version: "1.1",
1307
+ xmlns: "http://www.w3.org/2000/svg",
1308
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1309
+ xmlSpace: "preserve",
1310
+ xmlnsSerif: "http://www.serif.com/"
1311
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
1312
+ transform: "matrix(1,0,0,1,-8,-20)"
1313
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
1314
+ d: "M92,56L92,77C92,78.657 90.657,80 89,80C87.343,80 86,78.657 86,77L86,74L14,74L14,77C14,78.657 12.657,80 11,80C9.343,80 8,78.657 8,77L8,56C8,51.037 12.037,47 17,47L83,47C87.963,47 92,51.037 92,56Z",
1315
+ style: {
1316
+ fillRule: 'nonzero'
1317
+ }
1318
+ }), /*#__PURE__*/React__default["default"].createElement("path", {
1319
+ d: "M17,41L17,23C17,21.343 18.343,20 20,20L80,20C81.657,20 83,21.343 83,23L83,41L74,41L74,38C74,34.691 71.309,32 68,32L59,32C55.691,32 53,34.691 53,38L53,41L47,41L47,38C47,34.691 44.309,32 41,32L32,32C28.691,32 26,34.691 26,38L26,41L17,41Z",
1320
+ style: {
1321
+ fillRule: 'nonzero'
1322
+ }
1323
+ })));
1324
+ };
1325
+
1326
+ var _templateObject$5;
1327
+ var Svg$1 = styled__default["default"].svg(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n fill-rule: evenodd;\n clip-rule: evenodd;\n stroke-linejoin: round;\n stroke-miterlimit: 1.41421;\n"])));
1328
+
1329
+ var Bathroom = function Bathroom(_ref) {
1330
+ var width = _ref.width,
1331
+ height = _ref.height,
1332
+ fill = _ref.fill;
1333
+ return /*#__PURE__*/React__default["default"].createElement(Svg$1, {
1334
+ width: width,
1335
+ height: height,
1336
+ fill: fill,
1337
+ viewBox: "0 0 54 51",
1338
+ version: "1.1",
1339
+ xmlns: "http://www.w3.org/2000/svg",
1340
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1341
+ xmlSpace: "preserve",
1342
+ xmlnsSerif: "http://www.serif.com/"
1343
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
1344
+ transform: "matrix(1,0,0,1,-5,-6.085)"
1345
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
1346
+ d: "M58,37L56,37L13,37L13,12C13,11.199 13.312,10.445 13.878,9.879C14.853,8.904 16.332,8.754 17.476,9.403C15.292,12.068 14.927,15.327 16.736,17.136C16.931,17.331 17.187,17.429 17.443,17.429C17.699,17.429 17.955,17.331 18.15,17.136L26.635,8.651C26.83,8.456 26.928,8.2 26.928,7.944C26.928,7.688 26.83,7.432 26.635,7.237C25.635,6.237 24.164,5.871 22.489,6.206C21.26,6.452 20.028,7.077 18.928,7.969C16.974,6.549 14.224,6.703 12.463,8.465C11.52,9.409 11,10.664 11,12L11,37L8,37L6,37C5.448,37 5,37.447 5,38C5,38.553 5.448,39 6,39L7.307,39L13.064,54.352C13.21,54.741 13.583,55 14,55L15,55L15,56C15,56.553 15.448,57 16,57C16.552,57 17,56.553 17,56L17,55L47,55L47,56C47,56.553 47.447,57 48,57C48.553,57 49,56.553 49,56L49,55L50,55C50.417,55 50.79,54.741 50.937,54.352L56.693,39L58,39C58.553,39 59,38.553 59,38C59,37.447 58.553,37 58,37Z",
1347
+ style: {
1348
+ fillRule: 'nonzero'
1349
+ }
1350
+ })));
1351
+ };
1352
+
1353
+ var _templateObject$4;
1354
+ var Svg = styled__default["default"].svg(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n fill-rule: evenodd;\n clip-rule: evenodd;\n stroke-linejoin: round;\n stroke-miterlimit: 1.41421;\n fill: ", ";\n"])), function (props) {
1355
+ return props.fill ? props.fill : 'inherit';
1356
+ });
1357
+
1358
+ var Persons = function Persons(_ref) {
1359
+ var width = _ref.width,
1360
+ height = _ref.height,
1361
+ fill = _ref.fill;
1362
+ return /*#__PURE__*/React__default["default"].createElement(Svg, {
1363
+ width: width,
1364
+ height: height,
1365
+ fill: fill,
1366
+ viewBox: "0 0 101 77",
1367
+ version: "1.1",
1368
+ xmlns: "http://www.w3.org/2000/svg",
1369
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
1370
+ xmlSpace: "preserve",
1371
+ xmlnsSerif: "http://www.serif.com/"
1372
+ }, /*#__PURE__*/React__default["default"].createElement("g", {
1373
+ transform: "matrix(1,0,0,1,0.000512728,-11.918)"
1374
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
1375
+ d: "M50.083,48.696C53.206,48.696 55.738,46.165 55.738,43.041C55.738,39.918 53.206,37.386 50.083,37.386C46.96,37.386 44.428,39.918 44.428,43.041C44.428,46.165 46.96,48.696 50.083,48.696ZM50.083,48.696C53.206,48.696 55.738,46.165 55.738,43.041C55.738,39.918 53.206,37.386 50.083,37.386C46.96,37.386 44.428,39.918 44.428,43.041C44.428,46.165 46.96,48.696 50.083,48.696ZM43.18,47.973L40.133,41.285C37.004,34.814 34.895,30.374 28.664,30.374L17.566,30.374C11.335,30.374 9.226,34.814 6.097,41.285L0.356,53.115C-0.497,54.861 0.234,56.958 1.98,57.809C3.727,58.662 5.841,57.937 6.694,56.191L14.633,40.858L14.633,84.234C14.633,86.343 16.342,88.053 18.452,88.053C20.562,88.053 22.271,86.343 22.271,84.234L22.271,61.999L23.981,61.999L23.981,84.263C23.981,86.372 25.691,88.082 27.8,88.082C29.909,88.082 31.62,86.372 31.62,84.263L31.62,40.857L37.957,53.574C39.275,51.035 40.722,48.847 43.18,47.973ZM23.113,28.91C27.805,28.91 31.61,25.106 31.61,20.414C31.61,15.722 27.806,11.918 23.113,11.918C18.42,11.918 14.617,15.722 14.617,20.414C14.617,25.106 18.42,28.91 23.113,28.91ZM99.644,53.114L93.903,41.284C90.775,34.813 88.666,30.373 82.434,30.373L71.336,30.373C65.106,30.373 62.996,34.813 59.867,41.284L56.719,47.972C59.213,48.797 60.68,50.538 62.002,53.055L68.403,40.857L64.713,59.227L66.781,63.49C67.726,65.428 67.023,68.399 65.082,69.346C64.756,69.505 64.416,69.617 64.066,69.68L68.403,69.68L68.403,84.233C68.403,86.342 70.113,88.052 72.222,88.052C74.331,88.052 76.04,86.342 76.04,84.233L76.04,69.681L77.75,69.681L77.75,84.263C77.75,86.372 79.46,88.082 81.569,88.082C83.678,88.082 85.388,86.372 85.388,84.263L85.388,69.681L91.338,69.681L85.388,40.858L93.305,56.191C94.157,57.937 96.272,58.662 98.018,57.809C99.766,56.957 100.496,54.86 99.644,53.114ZM76.883,28.91C81.575,28.91 85.379,25.106 85.379,20.414C85.379,15.722 81.575,11.918 76.883,11.918C72.191,11.918 68.387,15.722 68.387,20.414C68.387,25.106 72.19,28.91 76.883,28.91ZM61.412,56.933C59.329,52.626 57.926,49.67 53.778,49.67L46.391,49.67C42.244,49.67 40.84,52.626 38.758,56.933L34.936,64.807C34.369,65.969 34.846,67.383 36.017,67.932C37.398,68.58 38.749,67.686 39.155,66.855L44.439,56.649L44.439,85.521C44.439,86.924 45.577,88.063 46.981,88.063C48.385,88.063 49.523,86.924 49.523,85.521L49.523,70.721L50.661,70.721L50.661,85.54C50.661,86.943 51.799,88.082 53.203,88.082C54.607,88.082 55.745,86.943 55.745,85.54L55.745,56.648L61.015,66.854C61.42,67.685 62.593,68.58 64.153,67.931C65.346,67.435 65.801,65.968 65.233,64.806L61.412,56.933Z",
1376
+ style: {
1377
+ fillRule: 'nonzero'
1378
+ }
1379
+ })));
1380
+ };
1381
+
1382
+ var HousePreview = function HousePreview(_ref) {
1383
+ var house = _ref.house,
1384
+ locale = _ref.locale;
1385
+ console.log({
1386
+ house: house
1387
+ });
1388
+ var data = JSON.parse(house.field);
1389
+ var img;
1390
+
1391
+ if (data.images[0]) {
1392
+ if (data.images[0].reference) {
1393
+ if (data.brand === 'BUKAZU') {
1394
+ img = data.images[0].reference;
1395
+ } else {
1396
+ img = 'https://cms.burobork.nl/images/' + data.images[0].reference;
1397
+ }
1398
+ } else {
1399
+ if (data.brand === 'LEISURE') {
1400
+ img = 'https://' + data.images[0].preview;
1401
+ } else {
1402
+ img = data.images[0].preview;
1403
+ }
1404
+ }
1405
+ } // const
1406
+
1407
+ if (locale === 'nl') {
1408
+ '/' + data.slug + '-' + data.house_code;
1409
+ } else {
1410
+ '/' + locale + '/' + data.slug + '-' + data.house_code;
1411
+ }
1412
+
1413
+ return /*#__PURE__*/React__default["default"].createElement(Result, null, /*#__PURE__*/React__default["default"].createElement("div", {
1414
+ className: "inner"
1415
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1416
+ className: "inner-image"
1417
+ }, /*#__PURE__*/React__default["default"].createElement("img", {
1418
+ src: img,
1419
+ alt: house.name
1420
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
1421
+ className: "inner-content"
1422
+ }, /*#__PURE__*/React__default["default"].createElement("h4", null, data.name, ", ", data.city), /*#__PURE__*/React__default["default"].createElement("div", {
1423
+ style: {
1424
+ padding: '8px 0'
1425
+ },
1426
+ dangerouslySetInnerHTML: {
1427
+ __html: data.short_description[locale] ? data.short_description[locale] : ''
1428
+ }
1429
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1430
+ className: "inner-content--bottom"
1431
+ }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Persons, {
1432
+ width: "32px",
1433
+ height: "16px"
1434
+ }), data.persons), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Bedroom, {
1435
+ width: "32px",
1436
+ height: "16px"
1437
+ }), data.bedrooms), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Bathroom, {
1438
+ width: "32px",
1439
+ height: "16px"
1440
+ }), data.bathrooms)))));
1441
+ };
1442
+
1443
+ function AssortedHouses(_ref) {
1444
+ var options = _ref.options,
1445
+ houses = _ref.houses,
1446
+ locale = _ref.locale;
1447
+ console.log({
1448
+ houses: houses,
1449
+ options: options
1450
+ });
1451
+ return /*#__PURE__*/React__default["default"].createElement(AssortedHousesContainer, null, options.content.map(function (item) {
1452
+ var house = houses.find(function (e) {
1453
+ return e.node.id === item.toString();
1454
+ });
1455
+ console.log({
1456
+ house: house
1457
+ });
1458
+
1459
+ if (house == null) {
1460
+ return /*#__PURE__*/React__default["default"].createElement("div", null);
1461
+ }
1462
+
1463
+ return /*#__PURE__*/React__default["default"].createElement(HousePreview, {
1464
+ house: house.node,
1465
+ locale: locale,
1466
+ key: item
1467
+ });
1468
+ }));
1469
+ }
1470
+
1471
+ var _templateObject$3;
1472
+ 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) {
1473
+ return props.purple ? '#642C8F' : '#000';
1474
+ }, function (props) {
1475
+ return props.purple ? '#642C8F' : props.theme.primaryColor;
1476
+ }, function (props) {
1477
+ return props.purple ? '#fff' : props.theme.primaryColor;
1478
+ }, function (props) {
1479
+ return props.purple ? '#642C8F' : props.theme.primaryColor;
1480
+ }, function (props) {
1481
+ return props.theme.primaryColor;
1482
+ });
1483
+ var StyledButton = function StyledButton(_ref) {
1484
+ var to = _ref.to,
1485
+ children = _ref.children,
1486
+ className = _ref.className,
1487
+ title = _ref.title;
1488
+ return /*#__PURE__*/React__default["default"].createElement(ButtonStyle, {
1489
+ href: to,
1490
+ title: title,
1491
+ className: className
1492
+ }, /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, children));
1493
+ };
1494
+
1199
1495
  function Button(_ref) {
1200
- _ref.options;
1201
- return /*#__PURE__*/React__default["default"].createElement("div", null, "Button");
1496
+ var options = _ref.options;
1497
+ return /*#__PURE__*/React__default["default"].createElement(StyledButton, {
1498
+ to: options.content.link
1499
+ }, options.content.title);
1202
1500
  }
1203
1501
 
1204
1502
  function Embed (_ref) {
@@ -1211,18 +1509,6 @@ function Embed (_ref) {
1211
1509
  });
1212
1510
  }
1213
1511
 
1214
- function _taggedTemplateLiteral(strings, raw) {
1215
- if (!raw) {
1216
- raw = strings.slice(0);
1217
- }
1218
-
1219
- return Object.freeze(Object.defineProperties(strings, {
1220
- raw: {
1221
- value: Object.freeze(raw)
1222
- }
1223
- }));
1224
- }
1225
-
1226
1512
  var isArray$2 = Array.isArray;
1227
1513
  var keyList = Object.keys;
1228
1514
  var hasProp = Object.prototype.hasOwnProperty;
@@ -4079,8 +4365,8 @@ var TYPE_STATICS = {};
4079
4365
  TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
4080
4366
  TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
4081
4367
 
4082
- function _extends$2() {
4083
- _extends$2 = Object.assign || function (target) {
4368
+ function _extends$3() {
4369
+ _extends$3 = Object.assign || function (target) {
4084
4370
  for (var i = 1; i < arguments.length; i++) {
4085
4371
  var source = arguments[i];
4086
4372
 
@@ -4094,10 +4380,10 @@ function _extends$2() {
4094
4380
  return target;
4095
4381
  };
4096
4382
 
4097
- return _extends$2.apply(this, arguments);
4383
+ return _extends$3.apply(this, arguments);
4098
4384
  }
4099
4385
 
4100
- function _objectWithoutPropertiesLoose(source, excluded) {
4386
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
4101
4387
  if (source == null) return {};
4102
4388
  var target = {};
4103
4389
  var sourceKeys = Object.keys(source);
@@ -4297,12 +4583,12 @@ function useFormikContext() {
4297
4583
  function formikReducer(state, msg) {
4298
4584
  switch (msg.type) {
4299
4585
  case 'SET_VALUES':
4300
- return _extends$2({}, state, {
4586
+ return _extends$3({}, state, {
4301
4587
  values: msg.payload
4302
4588
  });
4303
4589
 
4304
4590
  case 'SET_TOUCHED':
4305
- return _extends$2({}, state, {
4591
+ return _extends$3({}, state, {
4306
4592
  touched: msg.payload
4307
4593
  });
4308
4594
 
@@ -4311,60 +4597,60 @@ function formikReducer(state, msg) {
4311
4597
  return state;
4312
4598
  }
4313
4599
 
4314
- return _extends$2({}, state, {
4600
+ return _extends$3({}, state, {
4315
4601
  errors: msg.payload
4316
4602
  });
4317
4603
 
4318
4604
  case 'SET_STATUS':
4319
- return _extends$2({}, state, {
4605
+ return _extends$3({}, state, {
4320
4606
  status: msg.payload
4321
4607
  });
4322
4608
 
4323
4609
  case 'SET_ISSUBMITTING':
4324
- return _extends$2({}, state, {
4610
+ return _extends$3({}, state, {
4325
4611
  isSubmitting: msg.payload
4326
4612
  });
4327
4613
 
4328
4614
  case 'SET_ISVALIDATING':
4329
- return _extends$2({}, state, {
4615
+ return _extends$3({}, state, {
4330
4616
  isValidating: msg.payload
4331
4617
  });
4332
4618
 
4333
4619
  case 'SET_FIELD_VALUE':
4334
- return _extends$2({}, state, {
4620
+ return _extends$3({}, state, {
4335
4621
  values: setIn(state.values, msg.payload.field, msg.payload.value)
4336
4622
  });
4337
4623
 
4338
4624
  case 'SET_FIELD_TOUCHED':
4339
- return _extends$2({}, state, {
4625
+ return _extends$3({}, state, {
4340
4626
  touched: setIn(state.touched, msg.payload.field, msg.payload.value)
4341
4627
  });
4342
4628
 
4343
4629
  case 'SET_FIELD_ERROR':
4344
- return _extends$2({}, state, {
4630
+ return _extends$3({}, state, {
4345
4631
  errors: setIn(state.errors, msg.payload.field, msg.payload.value)
4346
4632
  });
4347
4633
 
4348
4634
  case 'RESET_FORM':
4349
- return _extends$2({}, state, msg.payload);
4635
+ return _extends$3({}, state, msg.payload);
4350
4636
 
4351
4637
  case 'SET_FORMIK_STATE':
4352
4638
  return msg.payload(state);
4353
4639
 
4354
4640
  case 'SUBMIT_ATTEMPT':
4355
- return _extends$2({}, state, {
4641
+ return _extends$3({}, state, {
4356
4642
  touched: setNestedObjectValues(state.values, true),
4357
4643
  isSubmitting: true,
4358
4644
  submitCount: state.submitCount + 1
4359
4645
  });
4360
4646
 
4361
4647
  case 'SUBMIT_FAILURE':
4362
- return _extends$2({}, state, {
4648
+ return _extends$3({}, state, {
4363
4649
  isSubmitting: false
4364
4650
  });
4365
4651
 
4366
4652
  case 'SUBMIT_SUCCESS':
4367
- return _extends$2({}, state, {
4653
+ return _extends$3({}, state, {
4368
4654
  isSubmitting: false
4369
4655
  });
4370
4656
 
@@ -4387,9 +4673,9 @@ function useFormik(_ref) {
4387
4673
  _ref$enableReinitiali = _ref.enableReinitialize,
4388
4674
  enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
4389
4675
  onSubmit = _ref.onSubmit,
4390
- rest = _objectWithoutPropertiesLoose(_ref, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]);
4676
+ rest = _objectWithoutPropertiesLoose$1(_ref, ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"]);
4391
4677
 
4392
- var props = _extends$2({
4678
+ var props = _extends$3({
4393
4679
  validateOnChange: validateOnChange,
4394
4680
  validateOnBlur: validateOnBlur,
4395
4681
  validateOnMount: validateOnMount,
@@ -5057,7 +5343,7 @@ function useFormik(_ref) {
5057
5343
  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;
5058
5344
  }, [isInitialValid, dirty, state.errors, props]);
5059
5345
 
5060
- var ctx = _extends$2({}, state, {
5346
+ var ctx = _extends$3({}, state, {
5061
5347
  initialValues: initialValues.current,
5062
5348
  initialErrors: initialErrors.current,
5063
5349
  initialTouched: initialTouched.current,
@@ -5301,7 +5587,7 @@ var Form$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5301
5587
  // iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
5302
5588
  // We default the action to "#" in case the preventDefault fails (just updates the URL hash)
5303
5589
  var action = props.action,
5304
- rest = _objectWithoutPropertiesLoose(props, ["action"]);
5590
+ rest = _objectWithoutPropertiesLoose$1(props, ["action"]);
5305
5591
 
5306
5592
  var _action = action != null ? action : '#';
5307
5593
 
@@ -5318,7 +5604,7 @@ var Form$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
5318
5604
  });
5319
5605
  Form$1.displayName = 'Form';
5320
5606
 
5321
- var _templateObject$3;
5607
+ var _templateObject$2;
5322
5608
 
5323
5609
  var Form = function Form(_ref) {
5324
5610
  var options = _ref.options;
@@ -5415,32 +5701,36 @@ var Form = function Form(_ref) {
5415
5701
  };
5416
5702
 
5417
5703
  Form.propTypes = {
5418
- options: PropTypes.object.isRequired
5704
+ options: PropTypes$1.object.isRequired
5419
5705
  };
5420
- var FormContainer = styled__default["default"].div(_templateObject$3 || (_templateObject$3 = _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) {
5706
+ 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) {
5421
5707
  return props.theme.primaryColor;
5422
5708
  });
5423
5709
 
5424
5710
  function Image (_ref) {
5711
+ var _options$style, _options$style2;
5712
+
5425
5713
  var options = _ref.options;
5426
5714
  return /*#__PURE__*/React__default["default"].createElement("img", {
5427
5715
  style: {
5428
- objectFit: 'contain'
5716
+ objectFit: 'contain',
5717
+ width: (_options$style = options.style) === null || _options$style === void 0 ? void 0 : _options$style.width,
5718
+ height: (_options$style2 = options.style) === null || _options$style2 === void 0 ? void 0 : _options$style2.height
5429
5719
  },
5430
5720
  src: options.content[0] ? 'https://cdn.burobork.nl/' + options.content[0].reference : null,
5431
5721
  alt: options.content[0] ? options.content[0].title : null
5432
5722
  });
5433
5723
  }
5434
5724
 
5435
- var js = {};
5725
+ var imageGallery = {exports: {}};
5436
5726
 
5437
- var Carousel$1 = {};
5438
-
5439
- var lib = {};
5727
+ (function (module, exports) {
5728
+ !function(e,t){module.exports=t(React__default["default"]);}(commonjsGlobal,(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&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;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})()}));
5729
+ }(imageGallery));
5440
5730
 
5441
- var reactSwipe = {};
5731
+ var Gallery$1 = /*@__PURE__*/getDefaultExportFromCjs(imageGallery.exports);
5442
5732
 
5443
- var propTypes = {exports: {}};
5733
+ var propTypes$1 = {exports: {}};
5444
5734
 
5445
5735
  /**
5446
5736
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5449,9 +5739,9 @@ var propTypes = {exports: {}};
5449
5739
  * LICENSE file in the root directory of this source tree.
5450
5740
  */
5451
5741
 
5452
- var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5742
+ var ReactPropTypesSecret$7 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
5453
5743
 
5454
- var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
5744
+ var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$7;
5455
5745
 
5456
5746
  /**
5457
5747
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5460,14 +5750,14 @@ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
5460
5750
  * LICENSE file in the root directory of this source tree.
5461
5751
  */
5462
5752
 
5463
- var printWarning$1 = function() {};
5753
+ var printWarning$3 = function() {};
5464
5754
 
5465
5755
  if (process.env.NODE_ENV !== 'production') {
5466
- var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
5467
- var loggedTypeFailures = {};
5468
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
5756
+ var ReactPropTypesSecret$6 = ReactPropTypesSecret_1$1;
5757
+ var loggedTypeFailures$1 = {};
5758
+ var has$3 = Function.call.bind(Object.prototype.hasOwnProperty);
5469
5759
 
5470
- printWarning$1 = function(text) {
5760
+ printWarning$3 = function(text) {
5471
5761
  var message = 'Warning: ' + text;
5472
5762
  if (typeof console !== 'undefined') {
5473
5763
  console.error(message);
@@ -5492,10 +5782,10 @@ if (process.env.NODE_ENV !== 'production') {
5492
5782
  * @param {?Function} getStack Returns the component stack.
5493
5783
  * @private
5494
5784
  */
5495
- function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
5785
+ function checkPropTypes$3(typeSpecs, values, location, componentName, getStack) {
5496
5786
  if (process.env.NODE_ENV !== 'production') {
5497
5787
  for (var typeSpecName in typeSpecs) {
5498
- if (has$1(typeSpecs, typeSpecName)) {
5788
+ if (has$3(typeSpecs, typeSpecName)) {
5499
5789
  var error;
5500
5790
  // Prop type validation may throw. In case they do, we don't want to
5501
5791
  // fail the render phase where it didn't fail before. So we log it.
@@ -5511,12 +5801,12 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
5511
5801
  err.name = 'Invariant Violation';
5512
5802
  throw err;
5513
5803
  }
5514
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
5804
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$6);
5515
5805
  } catch (ex) {
5516
5806
  error = ex;
5517
5807
  }
5518
5808
  if (error && !(error instanceof Error)) {
5519
- printWarning$1(
5809
+ printWarning$3(
5520
5810
  (componentName || 'React class') + ': type specification of ' +
5521
5811
  location + ' `' + typeSpecName + '` is invalid; the type checker ' +
5522
5812
  'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
@@ -5525,14 +5815,14 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
5525
5815
  'shape all require an argument).'
5526
5816
  );
5527
5817
  }
5528
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
5818
+ if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
5529
5819
  // Only monitor this failure once because there tends to be a lot of the
5530
5820
  // same error.
5531
- loggedTypeFailures[error.message] = true;
5821
+ loggedTypeFailures$1[error.message] = true;
5532
5822
 
5533
5823
  var stack = getStack ? getStack() : '';
5534
5824
 
5535
- printWarning$1(
5825
+ printWarning$3(
5536
5826
  'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
5537
5827
  );
5538
5828
  }
@@ -5546,13 +5836,13 @@ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack)
5546
5836
  *
5547
5837
  * @private
5548
5838
  */
5549
- checkPropTypes$1.resetWarningCache = function() {
5839
+ checkPropTypes$3.resetWarningCache = function() {
5550
5840
  if (process.env.NODE_ENV !== 'production') {
5551
- loggedTypeFailures = {};
5841
+ loggedTypeFailures$1 = {};
5552
5842
  }
5553
5843
  };
5554
5844
 
5555
- var checkPropTypes_1 = checkPropTypes$1;
5845
+ var checkPropTypes_1$1 = checkPropTypes$3;
5556
5846
 
5557
5847
  /**
5558
5848
  * Copyright (c) 2013-present, Facebook, Inc.
@@ -5561,17 +5851,17 @@ var checkPropTypes_1 = checkPropTypes$1;
5561
5851
  * LICENSE file in the root directory of this source tree.
5562
5852
  */
5563
5853
 
5564
- var ReactIs$1 = reactIs$1.exports;
5565
- var assign = objectAssign;
5854
+ var ReactIs$3 = reactIs$1.exports;
5855
+ var assign$1 = objectAssign;
5566
5856
 
5567
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
5568
- var checkPropTypes = checkPropTypes_1;
5857
+ var ReactPropTypesSecret$5 = ReactPropTypesSecret_1$1;
5858
+ var checkPropTypes$2 = checkPropTypes_1$1;
5569
5859
 
5570
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
5571
- var printWarning = function() {};
5860
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
5861
+ var printWarning$2 = function() {};
5572
5862
 
5573
5863
  if (process.env.NODE_ENV !== 'production') {
5574
- printWarning = function(text) {
5864
+ printWarning$2 = function(text) {
5575
5865
  var message = 'Warning: ' + text;
5576
5866
  if (typeof console !== 'undefined') {
5577
5867
  console.error(message);
@@ -5585,11 +5875,2430 @@ if (process.env.NODE_ENV !== 'production') {
5585
5875
  };
5586
5876
  }
5587
5877
 
5588
- function emptyFunctionThatReturnsNull() {
5878
+ function emptyFunctionThatReturnsNull$1() {
5589
5879
  return null;
5590
5880
  }
5591
5881
 
5592
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
5882
+ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
5883
+ /* global Symbol */
5884
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5885
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
5886
+
5887
+ /**
5888
+ * Returns the iterator method function contained on the iterable object.
5889
+ *
5890
+ * Be sure to invoke the function with the iterable as context:
5891
+ *
5892
+ * var iteratorFn = getIteratorFn(myIterable);
5893
+ * if (iteratorFn) {
5894
+ * var iterator = iteratorFn.call(myIterable);
5895
+ * ...
5896
+ * }
5897
+ *
5898
+ * @param {?object} maybeIterable
5899
+ * @return {?function}
5900
+ */
5901
+ function getIteratorFn(maybeIterable) {
5902
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
5903
+ if (typeof iteratorFn === 'function') {
5904
+ return iteratorFn;
5905
+ }
5906
+ }
5907
+
5908
+ /**
5909
+ * Collection of methods that allow declaration and validation of props that are
5910
+ * supplied to React components. Example usage:
5911
+ *
5912
+ * var Props = require('ReactPropTypes');
5913
+ * var MyArticle = React.createClass({
5914
+ * propTypes: {
5915
+ * // An optional string prop named "description".
5916
+ * description: Props.string,
5917
+ *
5918
+ * // A required enum prop named "category".
5919
+ * category: Props.oneOf(['News','Photos']).isRequired,
5920
+ *
5921
+ * // A prop named "dialog" that requires an instance of Dialog.
5922
+ * dialog: Props.instanceOf(Dialog).isRequired
5923
+ * },
5924
+ * render: function() { ... }
5925
+ * });
5926
+ *
5927
+ * A more formal specification of how these methods are used:
5928
+ *
5929
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
5930
+ * decl := ReactPropTypes.{type}(.isRequired)?
5931
+ *
5932
+ * Each and every declaration produces a function with the same signature. This
5933
+ * allows the creation of custom validation functions. For example:
5934
+ *
5935
+ * var MyLink = React.createClass({
5936
+ * propTypes: {
5937
+ * // An optional string or URI prop named "href".
5938
+ * href: function(props, propName, componentName) {
5939
+ * var propValue = props[propName];
5940
+ * if (propValue != null && typeof propValue !== 'string' &&
5941
+ * !(propValue instanceof URI)) {
5942
+ * return new Error(
5943
+ * 'Expected a string or an URI for ' + propName + ' in ' +
5944
+ * componentName
5945
+ * );
5946
+ * }
5947
+ * }
5948
+ * },
5949
+ * render: function() {...}
5950
+ * });
5951
+ *
5952
+ * @internal
5953
+ */
5954
+
5955
+ var ANONYMOUS = '<<anonymous>>';
5956
+
5957
+ // Important!
5958
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
5959
+ var ReactPropTypes = {
5960
+ array: createPrimitiveTypeChecker('array'),
5961
+ bool: createPrimitiveTypeChecker('boolean'),
5962
+ func: createPrimitiveTypeChecker('function'),
5963
+ number: createPrimitiveTypeChecker('number'),
5964
+ object: createPrimitiveTypeChecker('object'),
5965
+ string: createPrimitiveTypeChecker('string'),
5966
+ symbol: createPrimitiveTypeChecker('symbol'),
5967
+
5968
+ any: createAnyTypeChecker(),
5969
+ arrayOf: createArrayOfTypeChecker,
5970
+ element: createElementTypeChecker(),
5971
+ elementType: createElementTypeTypeChecker(),
5972
+ instanceOf: createInstanceTypeChecker,
5973
+ node: createNodeChecker(),
5974
+ objectOf: createObjectOfTypeChecker,
5975
+ oneOf: createEnumTypeChecker,
5976
+ oneOfType: createUnionTypeChecker,
5977
+ shape: createShapeTypeChecker,
5978
+ exact: createStrictShapeTypeChecker,
5979
+ };
5980
+
5981
+ /**
5982
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
5983
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
5984
+ */
5985
+ /*eslint-disable no-self-compare*/
5986
+ function is(x, y) {
5987
+ // SameValue algorithm
5988
+ if (x === y) {
5989
+ // Steps 1-5, 7-10
5990
+ // Steps 6.b-6.e: +0 != -0
5991
+ return x !== 0 || 1 / x === 1 / y;
5992
+ } else {
5993
+ // Step 6.a: NaN == NaN
5994
+ return x !== x && y !== y;
5995
+ }
5996
+ }
5997
+ /*eslint-enable no-self-compare*/
5998
+
5999
+ /**
6000
+ * We use an Error-like object for backward compatibility as people may call
6001
+ * PropTypes directly and inspect their output. However, we don't use real
6002
+ * Errors anymore. We don't inspect their stack anyway, and creating them
6003
+ * is prohibitively expensive if they are created too often, such as what
6004
+ * happens in oneOfType() for any type before the one that matched.
6005
+ */
6006
+ function PropTypeError(message) {
6007
+ this.message = message;
6008
+ this.stack = '';
6009
+ }
6010
+ // Make `instanceof Error` still work for returned errors.
6011
+ PropTypeError.prototype = Error.prototype;
6012
+
6013
+ function createChainableTypeChecker(validate) {
6014
+ if (process.env.NODE_ENV !== 'production') {
6015
+ var manualPropTypeCallCache = {};
6016
+ var manualPropTypeWarningCount = 0;
6017
+ }
6018
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
6019
+ componentName = componentName || ANONYMOUS;
6020
+ propFullName = propFullName || propName;
6021
+
6022
+ if (secret !== ReactPropTypesSecret$5) {
6023
+ if (throwOnDirectAccess) {
6024
+ // New behavior only for users of `prop-types` package
6025
+ var err = new Error(
6026
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
6027
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
6028
+ 'Read more at http://fb.me/use-check-prop-types'
6029
+ );
6030
+ err.name = 'Invariant Violation';
6031
+ throw err;
6032
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
6033
+ // Old behavior for people using React.PropTypes
6034
+ var cacheKey = componentName + ':' + propName;
6035
+ if (
6036
+ !manualPropTypeCallCache[cacheKey] &&
6037
+ // Avoid spamming the console because they are often not actionable except for lib authors
6038
+ manualPropTypeWarningCount < 3
6039
+ ) {
6040
+ printWarning$2(
6041
+ 'You are manually calling a React.PropTypes validation ' +
6042
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
6043
+ 'and will throw in the standalone `prop-types` package. ' +
6044
+ 'You may be seeing this warning due to a third-party PropTypes ' +
6045
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
6046
+ );
6047
+ manualPropTypeCallCache[cacheKey] = true;
6048
+ manualPropTypeWarningCount++;
6049
+ }
6050
+ }
6051
+ }
6052
+ if (props[propName] == null) {
6053
+ if (isRequired) {
6054
+ if (props[propName] === null) {
6055
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
6056
+ }
6057
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
6058
+ }
6059
+ return null;
6060
+ } else {
6061
+ return validate(props, propName, componentName, location, propFullName);
6062
+ }
6063
+ }
6064
+
6065
+ var chainedCheckType = checkType.bind(null, false);
6066
+ chainedCheckType.isRequired = checkType.bind(null, true);
6067
+
6068
+ return chainedCheckType;
6069
+ }
6070
+
6071
+ function createPrimitiveTypeChecker(expectedType) {
6072
+ function validate(props, propName, componentName, location, propFullName, secret) {
6073
+ var propValue = props[propName];
6074
+ var propType = getPropType(propValue);
6075
+ if (propType !== expectedType) {
6076
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
6077
+ // check, but we can offer a more precise error message here rather than
6078
+ // 'of type `object`'.
6079
+ var preciseType = getPreciseType(propValue);
6080
+
6081
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
6082
+ }
6083
+ return null;
6084
+ }
6085
+ return createChainableTypeChecker(validate);
6086
+ }
6087
+
6088
+ function createAnyTypeChecker() {
6089
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
6090
+ }
6091
+
6092
+ function createArrayOfTypeChecker(typeChecker) {
6093
+ function validate(props, propName, componentName, location, propFullName) {
6094
+ if (typeof typeChecker !== 'function') {
6095
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
6096
+ }
6097
+ var propValue = props[propName];
6098
+ if (!Array.isArray(propValue)) {
6099
+ var propType = getPropType(propValue);
6100
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
6101
+ }
6102
+ for (var i = 0; i < propValue.length; i++) {
6103
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$5);
6104
+ if (error instanceof Error) {
6105
+ return error;
6106
+ }
6107
+ }
6108
+ return null;
6109
+ }
6110
+ return createChainableTypeChecker(validate);
6111
+ }
6112
+
6113
+ function createElementTypeChecker() {
6114
+ function validate(props, propName, componentName, location, propFullName) {
6115
+ var propValue = props[propName];
6116
+ if (!isValidElement(propValue)) {
6117
+ var propType = getPropType(propValue);
6118
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
6119
+ }
6120
+ return null;
6121
+ }
6122
+ return createChainableTypeChecker(validate);
6123
+ }
6124
+
6125
+ function createElementTypeTypeChecker() {
6126
+ function validate(props, propName, componentName, location, propFullName) {
6127
+ var propValue = props[propName];
6128
+ if (!ReactIs$3.isValidElementType(propValue)) {
6129
+ var propType = getPropType(propValue);
6130
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
6131
+ }
6132
+ return null;
6133
+ }
6134
+ return createChainableTypeChecker(validate);
6135
+ }
6136
+
6137
+ function createInstanceTypeChecker(expectedClass) {
6138
+ function validate(props, propName, componentName, location, propFullName) {
6139
+ if (!(props[propName] instanceof expectedClass)) {
6140
+ var expectedClassName = expectedClass.name || ANONYMOUS;
6141
+ var actualClassName = getClassName(props[propName]);
6142
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
6143
+ }
6144
+ return null;
6145
+ }
6146
+ return createChainableTypeChecker(validate);
6147
+ }
6148
+
6149
+ function createEnumTypeChecker(expectedValues) {
6150
+ if (!Array.isArray(expectedValues)) {
6151
+ if (process.env.NODE_ENV !== 'production') {
6152
+ if (arguments.length > 1) {
6153
+ printWarning$2(
6154
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
6155
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
6156
+ );
6157
+ } else {
6158
+ printWarning$2('Invalid argument supplied to oneOf, expected an array.');
6159
+ }
6160
+ }
6161
+ return emptyFunctionThatReturnsNull$1;
6162
+ }
6163
+
6164
+ function validate(props, propName, componentName, location, propFullName) {
6165
+ var propValue = props[propName];
6166
+ for (var i = 0; i < expectedValues.length; i++) {
6167
+ if (is(propValue, expectedValues[i])) {
6168
+ return null;
6169
+ }
6170
+ }
6171
+
6172
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
6173
+ var type = getPreciseType(value);
6174
+ if (type === 'symbol') {
6175
+ return String(value);
6176
+ }
6177
+ return value;
6178
+ });
6179
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
6180
+ }
6181
+ return createChainableTypeChecker(validate);
6182
+ }
6183
+
6184
+ function createObjectOfTypeChecker(typeChecker) {
6185
+ function validate(props, propName, componentName, location, propFullName) {
6186
+ if (typeof typeChecker !== 'function') {
6187
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
6188
+ }
6189
+ var propValue = props[propName];
6190
+ var propType = getPropType(propValue);
6191
+ if (propType !== 'object') {
6192
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
6193
+ }
6194
+ for (var key in propValue) {
6195
+ if (has$2(propValue, key)) {
6196
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6197
+ if (error instanceof Error) {
6198
+ return error;
6199
+ }
6200
+ }
6201
+ }
6202
+ return null;
6203
+ }
6204
+ return createChainableTypeChecker(validate);
6205
+ }
6206
+
6207
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
6208
+ if (!Array.isArray(arrayOfTypeCheckers)) {
6209
+ process.env.NODE_ENV !== 'production' ? printWarning$2('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
6210
+ return emptyFunctionThatReturnsNull$1;
6211
+ }
6212
+
6213
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6214
+ var checker = arrayOfTypeCheckers[i];
6215
+ if (typeof checker !== 'function') {
6216
+ printWarning$2(
6217
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
6218
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
6219
+ );
6220
+ return emptyFunctionThatReturnsNull$1;
6221
+ }
6222
+ }
6223
+
6224
+ function validate(props, propName, componentName, location, propFullName) {
6225
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
6226
+ var checker = arrayOfTypeCheckers[i];
6227
+ if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$5) == null) {
6228
+ return null;
6229
+ }
6230
+ }
6231
+
6232
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
6233
+ }
6234
+ return createChainableTypeChecker(validate);
6235
+ }
6236
+
6237
+ function createNodeChecker() {
6238
+ function validate(props, propName, componentName, location, propFullName) {
6239
+ if (!isNode(props[propName])) {
6240
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
6241
+ }
6242
+ return null;
6243
+ }
6244
+ return createChainableTypeChecker(validate);
6245
+ }
6246
+
6247
+ function createShapeTypeChecker(shapeTypes) {
6248
+ function validate(props, propName, componentName, location, propFullName) {
6249
+ var propValue = props[propName];
6250
+ var propType = getPropType(propValue);
6251
+ if (propType !== 'object') {
6252
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6253
+ }
6254
+ for (var key in shapeTypes) {
6255
+ var checker = shapeTypes[key];
6256
+ if (!checker) {
6257
+ continue;
6258
+ }
6259
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6260
+ if (error) {
6261
+ return error;
6262
+ }
6263
+ }
6264
+ return null;
6265
+ }
6266
+ return createChainableTypeChecker(validate);
6267
+ }
6268
+
6269
+ function createStrictShapeTypeChecker(shapeTypes) {
6270
+ function validate(props, propName, componentName, location, propFullName) {
6271
+ var propValue = props[propName];
6272
+ var propType = getPropType(propValue);
6273
+ if (propType !== 'object') {
6274
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
6275
+ }
6276
+ // We need to check all keys in case some are required but missing from
6277
+ // props.
6278
+ var allKeys = assign$1({}, props[propName], shapeTypes);
6279
+ for (var key in allKeys) {
6280
+ var checker = shapeTypes[key];
6281
+ if (!checker) {
6282
+ return new PropTypeError(
6283
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
6284
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
6285
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
6286
+ );
6287
+ }
6288
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$5);
6289
+ if (error) {
6290
+ return error;
6291
+ }
6292
+ }
6293
+ return null;
6294
+ }
6295
+
6296
+ return createChainableTypeChecker(validate);
6297
+ }
6298
+
6299
+ function isNode(propValue) {
6300
+ switch (typeof propValue) {
6301
+ case 'number':
6302
+ case 'string':
6303
+ case 'undefined':
6304
+ return true;
6305
+ case 'boolean':
6306
+ return !propValue;
6307
+ case 'object':
6308
+ if (Array.isArray(propValue)) {
6309
+ return propValue.every(isNode);
6310
+ }
6311
+ if (propValue === null || isValidElement(propValue)) {
6312
+ return true;
6313
+ }
6314
+
6315
+ var iteratorFn = getIteratorFn(propValue);
6316
+ if (iteratorFn) {
6317
+ var iterator = iteratorFn.call(propValue);
6318
+ var step;
6319
+ if (iteratorFn !== propValue.entries) {
6320
+ while (!(step = iterator.next()).done) {
6321
+ if (!isNode(step.value)) {
6322
+ return false;
6323
+ }
6324
+ }
6325
+ } else {
6326
+ // Iterator will provide entry [k,v] tuples rather than values.
6327
+ while (!(step = iterator.next()).done) {
6328
+ var entry = step.value;
6329
+ if (entry) {
6330
+ if (!isNode(entry[1])) {
6331
+ return false;
6332
+ }
6333
+ }
6334
+ }
6335
+ }
6336
+ } else {
6337
+ return false;
6338
+ }
6339
+
6340
+ return true;
6341
+ default:
6342
+ return false;
6343
+ }
6344
+ }
6345
+
6346
+ function isSymbol(propType, propValue) {
6347
+ // Native Symbol.
6348
+ if (propType === 'symbol') {
6349
+ return true;
6350
+ }
6351
+
6352
+ // falsy value can't be a Symbol
6353
+ if (!propValue) {
6354
+ return false;
6355
+ }
6356
+
6357
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
6358
+ if (propValue['@@toStringTag'] === 'Symbol') {
6359
+ return true;
6360
+ }
6361
+
6362
+ // Fallback for non-spec compliant Symbols which are polyfilled.
6363
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
6364
+ return true;
6365
+ }
6366
+
6367
+ return false;
6368
+ }
6369
+
6370
+ // Equivalent of `typeof` but with special handling for array and regexp.
6371
+ function getPropType(propValue) {
6372
+ var propType = typeof propValue;
6373
+ if (Array.isArray(propValue)) {
6374
+ return 'array';
6375
+ }
6376
+ if (propValue instanceof RegExp) {
6377
+ // Old webkits (at least until Android 4.0) return 'function' rather than
6378
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
6379
+ // passes PropTypes.object.
6380
+ return 'object';
6381
+ }
6382
+ if (isSymbol(propType, propValue)) {
6383
+ return 'symbol';
6384
+ }
6385
+ return propType;
6386
+ }
6387
+
6388
+ // This handles more types than `getPropType`. Only used for error messages.
6389
+ // See `createPrimitiveTypeChecker`.
6390
+ function getPreciseType(propValue) {
6391
+ if (typeof propValue === 'undefined' || propValue === null) {
6392
+ return '' + propValue;
6393
+ }
6394
+ var propType = getPropType(propValue);
6395
+ if (propType === 'object') {
6396
+ if (propValue instanceof Date) {
6397
+ return 'date';
6398
+ } else if (propValue instanceof RegExp) {
6399
+ return 'regexp';
6400
+ }
6401
+ }
6402
+ return propType;
6403
+ }
6404
+
6405
+ // Returns a string that is postfixed to a warning about an invalid type.
6406
+ // For example, "undefined" or "of type array"
6407
+ function getPostfixForTypeWarning(value) {
6408
+ var type = getPreciseType(value);
6409
+ switch (type) {
6410
+ case 'array':
6411
+ case 'object':
6412
+ return 'an ' + type;
6413
+ case 'boolean':
6414
+ case 'date':
6415
+ case 'regexp':
6416
+ return 'a ' + type;
6417
+ default:
6418
+ return type;
6419
+ }
6420
+ }
6421
+
6422
+ // Returns class name of the object, if any.
6423
+ function getClassName(propValue) {
6424
+ if (!propValue.constructor || !propValue.constructor.name) {
6425
+ return ANONYMOUS;
6426
+ }
6427
+ return propValue.constructor.name;
6428
+ }
6429
+
6430
+ ReactPropTypes.checkPropTypes = checkPropTypes$2;
6431
+ ReactPropTypes.resetWarningCache = checkPropTypes$2.resetWarningCache;
6432
+ ReactPropTypes.PropTypes = ReactPropTypes;
6433
+
6434
+ return ReactPropTypes;
6435
+ };
6436
+
6437
+ /**
6438
+ * Copyright (c) 2013-present, Facebook, Inc.
6439
+ *
6440
+ * This source code is licensed under the MIT license found in the
6441
+ * LICENSE file in the root directory of this source tree.
6442
+ */
6443
+
6444
+ var ReactPropTypesSecret$4 = ReactPropTypesSecret_1$1;
6445
+
6446
+ function emptyFunction$1() {}
6447
+ function emptyFunctionWithReset$1() {}
6448
+ emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
6449
+
6450
+ var factoryWithThrowingShims$1 = function() {
6451
+ function shim(props, propName, componentName, location, propFullName, secret) {
6452
+ if (secret === ReactPropTypesSecret$4) {
6453
+ // It is still safe when called from React.
6454
+ return;
6455
+ }
6456
+ var err = new Error(
6457
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
6458
+ 'Use PropTypes.checkPropTypes() to call them. ' +
6459
+ 'Read more at http://fb.me/use-check-prop-types'
6460
+ );
6461
+ err.name = 'Invariant Violation';
6462
+ throw err;
6463
+ } shim.isRequired = shim;
6464
+ function getShim() {
6465
+ return shim;
6466
+ } // Important!
6467
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
6468
+ var ReactPropTypes = {
6469
+ array: shim,
6470
+ bool: shim,
6471
+ func: shim,
6472
+ number: shim,
6473
+ object: shim,
6474
+ string: shim,
6475
+ symbol: shim,
6476
+
6477
+ any: shim,
6478
+ arrayOf: getShim,
6479
+ element: shim,
6480
+ elementType: shim,
6481
+ instanceOf: getShim,
6482
+ node: shim,
6483
+ objectOf: getShim,
6484
+ oneOf: getShim,
6485
+ oneOfType: getShim,
6486
+ shape: getShim,
6487
+ exact: getShim,
6488
+
6489
+ checkPropTypes: emptyFunctionWithReset$1,
6490
+ resetWarningCache: emptyFunction$1
6491
+ };
6492
+
6493
+ ReactPropTypes.PropTypes = ReactPropTypes;
6494
+
6495
+ return ReactPropTypes;
6496
+ };
6497
+
6498
+ /**
6499
+ * Copyright (c) 2013-present, Facebook, Inc.
6500
+ *
6501
+ * This source code is licensed under the MIT license found in the
6502
+ * LICENSE file in the root directory of this source tree.
6503
+ */
6504
+
6505
+ if (process.env.NODE_ENV !== 'production') {
6506
+ var ReactIs$2 = reactIs$1.exports;
6507
+
6508
+ // By explicitly using `prop-types` you are opting into new development behavior.
6509
+ // http://fb.me/prop-types-in-prod
6510
+ var throwOnDirectAccess$1 = true;
6511
+ propTypes$1.exports = factoryWithTypeCheckers$1(ReactIs$2.isElement, throwOnDirectAccess$1);
6512
+ } else {
6513
+ // By explicitly using `prop-types` you are opting into new production behavior.
6514
+ // http://fb.me/prop-types-in-prod
6515
+ propTypes$1.exports = factoryWithThrowingShims$1();
6516
+ }
6517
+
6518
+ var PropTypes = propTypes$1.exports;
6519
+
6520
+ /**
6521
+ * A collection of shims that provide minimal functionality of the ES6 collections.
6522
+ *
6523
+ * These implementations are not meant to be used outside of the ResizeObserver
6524
+ * modules as they cover only a limited range of use cases.
6525
+ */
6526
+ /* eslint-disable require-jsdoc, valid-jsdoc */
6527
+ var MapShim = (function () {
6528
+ if (typeof Map !== 'undefined') {
6529
+ return Map;
6530
+ }
6531
+ /**
6532
+ * Returns index in provided array that matches the specified key.
6533
+ *
6534
+ * @param {Array<Array>} arr
6535
+ * @param {*} key
6536
+ * @returns {number}
6537
+ */
6538
+ function getIndex(arr, key) {
6539
+ var result = -1;
6540
+ arr.some(function (entry, index) {
6541
+ if (entry[0] === key) {
6542
+ result = index;
6543
+ return true;
6544
+ }
6545
+ return false;
6546
+ });
6547
+ return result;
6548
+ }
6549
+ return /** @class */ (function () {
6550
+ function class_1() {
6551
+ this.__entries__ = [];
6552
+ }
6553
+ Object.defineProperty(class_1.prototype, "size", {
6554
+ /**
6555
+ * @returns {boolean}
6556
+ */
6557
+ get: function () {
6558
+ return this.__entries__.length;
6559
+ },
6560
+ enumerable: true,
6561
+ configurable: true
6562
+ });
6563
+ /**
6564
+ * @param {*} key
6565
+ * @returns {*}
6566
+ */
6567
+ class_1.prototype.get = function (key) {
6568
+ var index = getIndex(this.__entries__, key);
6569
+ var entry = this.__entries__[index];
6570
+ return entry && entry[1];
6571
+ };
6572
+ /**
6573
+ * @param {*} key
6574
+ * @param {*} value
6575
+ * @returns {void}
6576
+ */
6577
+ class_1.prototype.set = function (key, value) {
6578
+ var index = getIndex(this.__entries__, key);
6579
+ if (~index) {
6580
+ this.__entries__[index][1] = value;
6581
+ }
6582
+ else {
6583
+ this.__entries__.push([key, value]);
6584
+ }
6585
+ };
6586
+ /**
6587
+ * @param {*} key
6588
+ * @returns {void}
6589
+ */
6590
+ class_1.prototype.delete = function (key) {
6591
+ var entries = this.__entries__;
6592
+ var index = getIndex(entries, key);
6593
+ if (~index) {
6594
+ entries.splice(index, 1);
6595
+ }
6596
+ };
6597
+ /**
6598
+ * @param {*} key
6599
+ * @returns {void}
6600
+ */
6601
+ class_1.prototype.has = function (key) {
6602
+ return !!~getIndex(this.__entries__, key);
6603
+ };
6604
+ /**
6605
+ * @returns {void}
6606
+ */
6607
+ class_1.prototype.clear = function () {
6608
+ this.__entries__.splice(0);
6609
+ };
6610
+ /**
6611
+ * @param {Function} callback
6612
+ * @param {*} [ctx=null]
6613
+ * @returns {void}
6614
+ */
6615
+ class_1.prototype.forEach = function (callback, ctx) {
6616
+ if (ctx === void 0) { ctx = null; }
6617
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
6618
+ var entry = _a[_i];
6619
+ callback.call(ctx, entry[1], entry[0]);
6620
+ }
6621
+ };
6622
+ return class_1;
6623
+ }());
6624
+ })();
6625
+
6626
+ /**
6627
+ * Detects whether window and document objects are available in current environment.
6628
+ */
6629
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
6630
+
6631
+ // Returns global object of a current environment.
6632
+ var global$1 = (function () {
6633
+ if (typeof global !== 'undefined' && global.Math === Math) {
6634
+ return global;
6635
+ }
6636
+ if (typeof self !== 'undefined' && self.Math === Math) {
6637
+ return self;
6638
+ }
6639
+ if (typeof window !== 'undefined' && window.Math === Math) {
6640
+ return window;
6641
+ }
6642
+ // eslint-disable-next-line no-new-func
6643
+ return Function('return this')();
6644
+ })();
6645
+
6646
+ /**
6647
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
6648
+ * first one is not supported.
6649
+ *
6650
+ * @returns {number} Requests' identifier.
6651
+ */
6652
+ var requestAnimationFrame$1 = (function () {
6653
+ if (typeof requestAnimationFrame === 'function') {
6654
+ // It's required to use a bounded function because IE sometimes throws
6655
+ // an "Invalid calling object" error if rAF is invoked without the global
6656
+ // object on the left hand side.
6657
+ return requestAnimationFrame.bind(global$1);
6658
+ }
6659
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
6660
+ })();
6661
+
6662
+ // Defines minimum timeout before adding a trailing call.
6663
+ var trailingTimeout = 2;
6664
+ /**
6665
+ * Creates a wrapper function which ensures that provided callback will be
6666
+ * invoked only once during the specified delay period.
6667
+ *
6668
+ * @param {Function} callback - Function to be invoked after the delay period.
6669
+ * @param {number} delay - Delay after which to invoke callback.
6670
+ * @returns {Function}
6671
+ */
6672
+ function throttle (callback, delay) {
6673
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
6674
+ /**
6675
+ * Invokes the original callback function and schedules new invocation if
6676
+ * the "proxy" was called during current request.
6677
+ *
6678
+ * @returns {void}
6679
+ */
6680
+ function resolvePending() {
6681
+ if (leadingCall) {
6682
+ leadingCall = false;
6683
+ callback();
6684
+ }
6685
+ if (trailingCall) {
6686
+ proxy();
6687
+ }
6688
+ }
6689
+ /**
6690
+ * Callback invoked after the specified delay. It will further postpone
6691
+ * invocation of the original function delegating it to the
6692
+ * requestAnimationFrame.
6693
+ *
6694
+ * @returns {void}
6695
+ */
6696
+ function timeoutCallback() {
6697
+ requestAnimationFrame$1(resolvePending);
6698
+ }
6699
+ /**
6700
+ * Schedules invocation of the original function.
6701
+ *
6702
+ * @returns {void}
6703
+ */
6704
+ function proxy() {
6705
+ var timeStamp = Date.now();
6706
+ if (leadingCall) {
6707
+ // Reject immediately following calls.
6708
+ if (timeStamp - lastCallTime < trailingTimeout) {
6709
+ return;
6710
+ }
6711
+ // Schedule new call to be in invoked when the pending one is resolved.
6712
+ // This is important for "transitions" which never actually start
6713
+ // immediately so there is a chance that we might miss one if change
6714
+ // happens amids the pending invocation.
6715
+ trailingCall = true;
6716
+ }
6717
+ else {
6718
+ leadingCall = true;
6719
+ trailingCall = false;
6720
+ setTimeout(timeoutCallback, delay);
6721
+ }
6722
+ lastCallTime = timeStamp;
6723
+ }
6724
+ return proxy;
6725
+ }
6726
+
6727
+ // Minimum delay before invoking the update of observers.
6728
+ var REFRESH_DELAY = 20;
6729
+ // A list of substrings of CSS properties used to find transition events that
6730
+ // might affect dimensions of observed elements.
6731
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
6732
+ // Check if MutationObserver is available.
6733
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
6734
+ /**
6735
+ * Singleton controller class which handles updates of ResizeObserver instances.
6736
+ */
6737
+ var ResizeObserverController = /** @class */ (function () {
6738
+ /**
6739
+ * Creates a new instance of ResizeObserverController.
6740
+ *
6741
+ * @private
6742
+ */
6743
+ function ResizeObserverController() {
6744
+ /**
6745
+ * Indicates whether DOM listeners have been added.
6746
+ *
6747
+ * @private {boolean}
6748
+ */
6749
+ this.connected_ = false;
6750
+ /**
6751
+ * Tells that controller has subscribed for Mutation Events.
6752
+ *
6753
+ * @private {boolean}
6754
+ */
6755
+ this.mutationEventsAdded_ = false;
6756
+ /**
6757
+ * Keeps reference to the instance of MutationObserver.
6758
+ *
6759
+ * @private {MutationObserver}
6760
+ */
6761
+ this.mutationsObserver_ = null;
6762
+ /**
6763
+ * A list of connected observers.
6764
+ *
6765
+ * @private {Array<ResizeObserverSPI>}
6766
+ */
6767
+ this.observers_ = [];
6768
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
6769
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
6770
+ }
6771
+ /**
6772
+ * Adds observer to observers list.
6773
+ *
6774
+ * @param {ResizeObserverSPI} observer - Observer to be added.
6775
+ * @returns {void}
6776
+ */
6777
+ ResizeObserverController.prototype.addObserver = function (observer) {
6778
+ if (!~this.observers_.indexOf(observer)) {
6779
+ this.observers_.push(observer);
6780
+ }
6781
+ // Add listeners if they haven't been added yet.
6782
+ if (!this.connected_) {
6783
+ this.connect_();
6784
+ }
6785
+ };
6786
+ /**
6787
+ * Removes observer from observers list.
6788
+ *
6789
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
6790
+ * @returns {void}
6791
+ */
6792
+ ResizeObserverController.prototype.removeObserver = function (observer) {
6793
+ var observers = this.observers_;
6794
+ var index = observers.indexOf(observer);
6795
+ // Remove observer if it's present in registry.
6796
+ if (~index) {
6797
+ observers.splice(index, 1);
6798
+ }
6799
+ // Remove listeners if controller has no connected observers.
6800
+ if (!observers.length && this.connected_) {
6801
+ this.disconnect_();
6802
+ }
6803
+ };
6804
+ /**
6805
+ * Invokes the update of observers. It will continue running updates insofar
6806
+ * it detects changes.
6807
+ *
6808
+ * @returns {void}
6809
+ */
6810
+ ResizeObserverController.prototype.refresh = function () {
6811
+ var changesDetected = this.updateObservers_();
6812
+ // Continue running updates if changes have been detected as there might
6813
+ // be future ones caused by CSS transitions.
6814
+ if (changesDetected) {
6815
+ this.refresh();
6816
+ }
6817
+ };
6818
+ /**
6819
+ * Updates every observer from observers list and notifies them of queued
6820
+ * entries.
6821
+ *
6822
+ * @private
6823
+ * @returns {boolean} Returns "true" if any observer has detected changes in
6824
+ * dimensions of it's elements.
6825
+ */
6826
+ ResizeObserverController.prototype.updateObservers_ = function () {
6827
+ // Collect observers that have active observations.
6828
+ var activeObservers = this.observers_.filter(function (observer) {
6829
+ return observer.gatherActive(), observer.hasActive();
6830
+ });
6831
+ // Deliver notifications in a separate cycle in order to avoid any
6832
+ // collisions between observers, e.g. when multiple instances of
6833
+ // ResizeObserver are tracking the same element and the callback of one
6834
+ // of them changes content dimensions of the observed target. Sometimes
6835
+ // this may result in notifications being blocked for the rest of observers.
6836
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
6837
+ return activeObservers.length > 0;
6838
+ };
6839
+ /**
6840
+ * Initializes DOM listeners.
6841
+ *
6842
+ * @private
6843
+ * @returns {void}
6844
+ */
6845
+ ResizeObserverController.prototype.connect_ = function () {
6846
+ // Do nothing if running in a non-browser environment or if listeners
6847
+ // have been already added.
6848
+ if (!isBrowser || this.connected_) {
6849
+ return;
6850
+ }
6851
+ // Subscription to the "Transitionend" event is used as a workaround for
6852
+ // delayed transitions. This way it's possible to capture at least the
6853
+ // final state of an element.
6854
+ document.addEventListener('transitionend', this.onTransitionEnd_);
6855
+ window.addEventListener('resize', this.refresh);
6856
+ if (mutationObserverSupported) {
6857
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
6858
+ this.mutationsObserver_.observe(document, {
6859
+ attributes: true,
6860
+ childList: true,
6861
+ characterData: true,
6862
+ subtree: true
6863
+ });
6864
+ }
6865
+ else {
6866
+ document.addEventListener('DOMSubtreeModified', this.refresh);
6867
+ this.mutationEventsAdded_ = true;
6868
+ }
6869
+ this.connected_ = true;
6870
+ };
6871
+ /**
6872
+ * Removes DOM listeners.
6873
+ *
6874
+ * @private
6875
+ * @returns {void}
6876
+ */
6877
+ ResizeObserverController.prototype.disconnect_ = function () {
6878
+ // Do nothing if running in a non-browser environment or if listeners
6879
+ // have been already removed.
6880
+ if (!isBrowser || !this.connected_) {
6881
+ return;
6882
+ }
6883
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
6884
+ window.removeEventListener('resize', this.refresh);
6885
+ if (this.mutationsObserver_) {
6886
+ this.mutationsObserver_.disconnect();
6887
+ }
6888
+ if (this.mutationEventsAdded_) {
6889
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
6890
+ }
6891
+ this.mutationsObserver_ = null;
6892
+ this.mutationEventsAdded_ = false;
6893
+ this.connected_ = false;
6894
+ };
6895
+ /**
6896
+ * "Transitionend" event handler.
6897
+ *
6898
+ * @private
6899
+ * @param {TransitionEvent} event
6900
+ * @returns {void}
6901
+ */
6902
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
6903
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
6904
+ // Detect whether transition may affect dimensions of an element.
6905
+ var isReflowProperty = transitionKeys.some(function (key) {
6906
+ return !!~propertyName.indexOf(key);
6907
+ });
6908
+ if (isReflowProperty) {
6909
+ this.refresh();
6910
+ }
6911
+ };
6912
+ /**
6913
+ * Returns instance of the ResizeObserverController.
6914
+ *
6915
+ * @returns {ResizeObserverController}
6916
+ */
6917
+ ResizeObserverController.getInstance = function () {
6918
+ if (!this.instance_) {
6919
+ this.instance_ = new ResizeObserverController();
6920
+ }
6921
+ return this.instance_;
6922
+ };
6923
+ /**
6924
+ * Holds reference to the controller's instance.
6925
+ *
6926
+ * @private {ResizeObserverController}
6927
+ */
6928
+ ResizeObserverController.instance_ = null;
6929
+ return ResizeObserverController;
6930
+ }());
6931
+
6932
+ /**
6933
+ * Defines non-writable/enumerable properties of the provided target object.
6934
+ *
6935
+ * @param {Object} target - Object for which to define properties.
6936
+ * @param {Object} props - Properties to be defined.
6937
+ * @returns {Object} Target object.
6938
+ */
6939
+ var defineConfigurable = (function (target, props) {
6940
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
6941
+ var key = _a[_i];
6942
+ Object.defineProperty(target, key, {
6943
+ value: props[key],
6944
+ enumerable: false,
6945
+ writable: false,
6946
+ configurable: true
6947
+ });
6948
+ }
6949
+ return target;
6950
+ });
6951
+
6952
+ /**
6953
+ * Returns the global object associated with provided element.
6954
+ *
6955
+ * @param {Object} target
6956
+ * @returns {Object}
6957
+ */
6958
+ var getWindowOf = (function (target) {
6959
+ // Assume that the element is an instance of Node, which means that it
6960
+ // has the "ownerDocument" property from which we can retrieve a
6961
+ // corresponding global object.
6962
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
6963
+ // Return the local global object if it's not possible extract one from
6964
+ // provided element.
6965
+ return ownerGlobal || global$1;
6966
+ });
6967
+
6968
+ // Placeholder of an empty content rectangle.
6969
+ var emptyRect = createRectInit(0, 0, 0, 0);
6970
+ /**
6971
+ * Converts provided string to a number.
6972
+ *
6973
+ * @param {number|string} value
6974
+ * @returns {number}
6975
+ */
6976
+ function toFloat(value) {
6977
+ return parseFloat(value) || 0;
6978
+ }
6979
+ /**
6980
+ * Extracts borders size from provided styles.
6981
+ *
6982
+ * @param {CSSStyleDeclaration} styles
6983
+ * @param {...string} positions - Borders positions (top, right, ...)
6984
+ * @returns {number}
6985
+ */
6986
+ function getBordersSize(styles) {
6987
+ var positions = [];
6988
+ for (var _i = 1; _i < arguments.length; _i++) {
6989
+ positions[_i - 1] = arguments[_i];
6990
+ }
6991
+ return positions.reduce(function (size, position) {
6992
+ var value = styles['border-' + position + '-width'];
6993
+ return size + toFloat(value);
6994
+ }, 0);
6995
+ }
6996
+ /**
6997
+ * Extracts paddings sizes from provided styles.
6998
+ *
6999
+ * @param {CSSStyleDeclaration} styles
7000
+ * @returns {Object} Paddings box.
7001
+ */
7002
+ function getPaddings(styles) {
7003
+ var positions = ['top', 'right', 'bottom', 'left'];
7004
+ var paddings = {};
7005
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
7006
+ var position = positions_1[_i];
7007
+ var value = styles['padding-' + position];
7008
+ paddings[position] = toFloat(value);
7009
+ }
7010
+ return paddings;
7011
+ }
7012
+ /**
7013
+ * Calculates content rectangle of provided SVG element.
7014
+ *
7015
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
7016
+ * to be calculated.
7017
+ * @returns {DOMRectInit}
7018
+ */
7019
+ function getSVGContentRect(target) {
7020
+ var bbox = target.getBBox();
7021
+ return createRectInit(0, 0, bbox.width, bbox.height);
7022
+ }
7023
+ /**
7024
+ * Calculates content rectangle of provided HTMLElement.
7025
+ *
7026
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
7027
+ * @returns {DOMRectInit}
7028
+ */
7029
+ function getHTMLElementContentRect(target) {
7030
+ // Client width & height properties can't be
7031
+ // used exclusively as they provide rounded values.
7032
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
7033
+ // By this condition we can catch all non-replaced inline, hidden and
7034
+ // detached elements. Though elements with width & height properties less
7035
+ // than 0.5 will be discarded as well.
7036
+ //
7037
+ // Without it we would need to implement separate methods for each of
7038
+ // those cases and it's not possible to perform a precise and performance
7039
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
7040
+ // gives wrong results for elements with width & height less than 0.5.
7041
+ if (!clientWidth && !clientHeight) {
7042
+ return emptyRect;
7043
+ }
7044
+ var styles = getWindowOf(target).getComputedStyle(target);
7045
+ var paddings = getPaddings(styles);
7046
+ var horizPad = paddings.left + paddings.right;
7047
+ var vertPad = paddings.top + paddings.bottom;
7048
+ // Computed styles of width & height are being used because they are the
7049
+ // only dimensions available to JS that contain non-rounded values. It could
7050
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
7051
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
7052
+ var width = toFloat(styles.width), height = toFloat(styles.height);
7053
+ // Width & height include paddings and borders when the 'border-box' box
7054
+ // model is applied (except for IE).
7055
+ if (styles.boxSizing === 'border-box') {
7056
+ // Following conditions are required to handle Internet Explorer which
7057
+ // doesn't include paddings and borders to computed CSS dimensions.
7058
+ //
7059
+ // We can say that if CSS dimensions + paddings are equal to the "client"
7060
+ // properties then it's either IE, and thus we don't need to subtract
7061
+ // anything, or an element merely doesn't have paddings/borders styles.
7062
+ if (Math.round(width + horizPad) !== clientWidth) {
7063
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
7064
+ }
7065
+ if (Math.round(height + vertPad) !== clientHeight) {
7066
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
7067
+ }
7068
+ }
7069
+ // Following steps can't be applied to the document's root element as its
7070
+ // client[Width/Height] properties represent viewport area of the window.
7071
+ // Besides, it's as well not necessary as the <html> itself neither has
7072
+ // rendered scroll bars nor it can be clipped.
7073
+ if (!isDocumentElement(target)) {
7074
+ // In some browsers (only in Firefox, actually) CSS width & height
7075
+ // include scroll bars size which can be removed at this step as scroll
7076
+ // bars are the only difference between rounded dimensions + paddings
7077
+ // and "client" properties, though that is not always true in Chrome.
7078
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
7079
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
7080
+ // Chrome has a rather weird rounding of "client" properties.
7081
+ // E.g. for an element with content width of 314.2px it sometimes gives
7082
+ // the client width of 315px and for the width of 314.7px it may give
7083
+ // 314px. And it doesn't happen all the time. So just ignore this delta
7084
+ // as a non-relevant.
7085
+ if (Math.abs(vertScrollbar) !== 1) {
7086
+ width -= vertScrollbar;
7087
+ }
7088
+ if (Math.abs(horizScrollbar) !== 1) {
7089
+ height -= horizScrollbar;
7090
+ }
7091
+ }
7092
+ return createRectInit(paddings.left, paddings.top, width, height);
7093
+ }
7094
+ /**
7095
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
7096
+ *
7097
+ * @param {Element} target - Element to be checked.
7098
+ * @returns {boolean}
7099
+ */
7100
+ var isSVGGraphicsElement = (function () {
7101
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
7102
+ // interface.
7103
+ if (typeof SVGGraphicsElement !== 'undefined') {
7104
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
7105
+ }
7106
+ // If it's so, then check that element is at least an instance of the
7107
+ // SVGElement and that it has the "getBBox" method.
7108
+ // eslint-disable-next-line no-extra-parens
7109
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
7110
+ typeof target.getBBox === 'function'); };
7111
+ })();
7112
+ /**
7113
+ * Checks whether provided element is a document element (<html>).
7114
+ *
7115
+ * @param {Element} target - Element to be checked.
7116
+ * @returns {boolean}
7117
+ */
7118
+ function isDocumentElement(target) {
7119
+ return target === getWindowOf(target).document.documentElement;
7120
+ }
7121
+ /**
7122
+ * Calculates an appropriate content rectangle for provided html or svg element.
7123
+ *
7124
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
7125
+ * @returns {DOMRectInit}
7126
+ */
7127
+ function getContentRect(target) {
7128
+ if (!isBrowser) {
7129
+ return emptyRect;
7130
+ }
7131
+ if (isSVGGraphicsElement(target)) {
7132
+ return getSVGContentRect(target);
7133
+ }
7134
+ return getHTMLElementContentRect(target);
7135
+ }
7136
+ /**
7137
+ * Creates rectangle with an interface of the DOMRectReadOnly.
7138
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
7139
+ *
7140
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
7141
+ * @returns {DOMRectReadOnly}
7142
+ */
7143
+ function createReadOnlyRect(_a) {
7144
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
7145
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
7146
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
7147
+ var rect = Object.create(Constr.prototype);
7148
+ // Rectangle's properties are not writable and non-enumerable.
7149
+ defineConfigurable(rect, {
7150
+ x: x, y: y, width: width, height: height,
7151
+ top: y,
7152
+ right: x + width,
7153
+ bottom: height + y,
7154
+ left: x
7155
+ });
7156
+ return rect;
7157
+ }
7158
+ /**
7159
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
7160
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
7161
+ *
7162
+ * @param {number} x - X coordinate.
7163
+ * @param {number} y - Y coordinate.
7164
+ * @param {number} width - Rectangle's width.
7165
+ * @param {number} height - Rectangle's height.
7166
+ * @returns {DOMRectInit}
7167
+ */
7168
+ function createRectInit(x, y, width, height) {
7169
+ return { x: x, y: y, width: width, height: height };
7170
+ }
7171
+
7172
+ /**
7173
+ * Class that is responsible for computations of the content rectangle of
7174
+ * provided DOM element and for keeping track of it's changes.
7175
+ */
7176
+ var ResizeObservation = /** @class */ (function () {
7177
+ /**
7178
+ * Creates an instance of ResizeObservation.
7179
+ *
7180
+ * @param {Element} target - Element to be observed.
7181
+ */
7182
+ function ResizeObservation(target) {
7183
+ /**
7184
+ * Broadcasted width of content rectangle.
7185
+ *
7186
+ * @type {number}
7187
+ */
7188
+ this.broadcastWidth = 0;
7189
+ /**
7190
+ * Broadcasted height of content rectangle.
7191
+ *
7192
+ * @type {number}
7193
+ */
7194
+ this.broadcastHeight = 0;
7195
+ /**
7196
+ * Reference to the last observed content rectangle.
7197
+ *
7198
+ * @private {DOMRectInit}
7199
+ */
7200
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
7201
+ this.target = target;
7202
+ }
7203
+ /**
7204
+ * Updates content rectangle and tells whether it's width or height properties
7205
+ * have changed since the last broadcast.
7206
+ *
7207
+ * @returns {boolean}
7208
+ */
7209
+ ResizeObservation.prototype.isActive = function () {
7210
+ var rect = getContentRect(this.target);
7211
+ this.contentRect_ = rect;
7212
+ return (rect.width !== this.broadcastWidth ||
7213
+ rect.height !== this.broadcastHeight);
7214
+ };
7215
+ /**
7216
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
7217
+ * from the corresponding properties of the last observed content rectangle.
7218
+ *
7219
+ * @returns {DOMRectInit} Last observed content rectangle.
7220
+ */
7221
+ ResizeObservation.prototype.broadcastRect = function () {
7222
+ var rect = this.contentRect_;
7223
+ this.broadcastWidth = rect.width;
7224
+ this.broadcastHeight = rect.height;
7225
+ return rect;
7226
+ };
7227
+ return ResizeObservation;
7228
+ }());
7229
+
7230
+ var ResizeObserverEntry = /** @class */ (function () {
7231
+ /**
7232
+ * Creates an instance of ResizeObserverEntry.
7233
+ *
7234
+ * @param {Element} target - Element that is being observed.
7235
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
7236
+ */
7237
+ function ResizeObserverEntry(target, rectInit) {
7238
+ var contentRect = createReadOnlyRect(rectInit);
7239
+ // According to the specification following properties are not writable
7240
+ // and are also not enumerable in the native implementation.
7241
+ //
7242
+ // Property accessors are not being used as they'd require to define a
7243
+ // private WeakMap storage which may cause memory leaks in browsers that
7244
+ // don't support this type of collections.
7245
+ defineConfigurable(this, { target: target, contentRect: contentRect });
7246
+ }
7247
+ return ResizeObserverEntry;
7248
+ }());
7249
+
7250
+ var ResizeObserverSPI = /** @class */ (function () {
7251
+ /**
7252
+ * Creates a new instance of ResizeObserver.
7253
+ *
7254
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
7255
+ * when one of the observed elements changes it's content dimensions.
7256
+ * @param {ResizeObserverController} controller - Controller instance which
7257
+ * is responsible for the updates of observer.
7258
+ * @param {ResizeObserver} callbackCtx - Reference to the public
7259
+ * ResizeObserver instance which will be passed to callback function.
7260
+ */
7261
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
7262
+ /**
7263
+ * Collection of resize observations that have detected changes in dimensions
7264
+ * of elements.
7265
+ *
7266
+ * @private {Array<ResizeObservation>}
7267
+ */
7268
+ this.activeObservations_ = [];
7269
+ /**
7270
+ * Registry of the ResizeObservation instances.
7271
+ *
7272
+ * @private {Map<Element, ResizeObservation>}
7273
+ */
7274
+ this.observations_ = new MapShim();
7275
+ if (typeof callback !== 'function') {
7276
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
7277
+ }
7278
+ this.callback_ = callback;
7279
+ this.controller_ = controller;
7280
+ this.callbackCtx_ = callbackCtx;
7281
+ }
7282
+ /**
7283
+ * Starts observing provided element.
7284
+ *
7285
+ * @param {Element} target - Element to be observed.
7286
+ * @returns {void}
7287
+ */
7288
+ ResizeObserverSPI.prototype.observe = function (target) {
7289
+ if (!arguments.length) {
7290
+ throw new TypeError('1 argument required, but only 0 present.');
7291
+ }
7292
+ // Do nothing if current environment doesn't have the Element interface.
7293
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
7294
+ return;
7295
+ }
7296
+ if (!(target instanceof getWindowOf(target).Element)) {
7297
+ throw new TypeError('parameter 1 is not of type "Element".');
7298
+ }
7299
+ var observations = this.observations_;
7300
+ // Do nothing if element is already being observed.
7301
+ if (observations.has(target)) {
7302
+ return;
7303
+ }
7304
+ observations.set(target, new ResizeObservation(target));
7305
+ this.controller_.addObserver(this);
7306
+ // Force the update of observations.
7307
+ this.controller_.refresh();
7308
+ };
7309
+ /**
7310
+ * Stops observing provided element.
7311
+ *
7312
+ * @param {Element} target - Element to stop observing.
7313
+ * @returns {void}
7314
+ */
7315
+ ResizeObserverSPI.prototype.unobserve = function (target) {
7316
+ if (!arguments.length) {
7317
+ throw new TypeError('1 argument required, but only 0 present.');
7318
+ }
7319
+ // Do nothing if current environment doesn't have the Element interface.
7320
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
7321
+ return;
7322
+ }
7323
+ if (!(target instanceof getWindowOf(target).Element)) {
7324
+ throw new TypeError('parameter 1 is not of type "Element".');
7325
+ }
7326
+ var observations = this.observations_;
7327
+ // Do nothing if element is not being observed.
7328
+ if (!observations.has(target)) {
7329
+ return;
7330
+ }
7331
+ observations.delete(target);
7332
+ if (!observations.size) {
7333
+ this.controller_.removeObserver(this);
7334
+ }
7335
+ };
7336
+ /**
7337
+ * Stops observing all elements.
7338
+ *
7339
+ * @returns {void}
7340
+ */
7341
+ ResizeObserverSPI.prototype.disconnect = function () {
7342
+ this.clearActive();
7343
+ this.observations_.clear();
7344
+ this.controller_.removeObserver(this);
7345
+ };
7346
+ /**
7347
+ * Collects observation instances the associated element of which has changed
7348
+ * it's content rectangle.
7349
+ *
7350
+ * @returns {void}
7351
+ */
7352
+ ResizeObserverSPI.prototype.gatherActive = function () {
7353
+ var _this = this;
7354
+ this.clearActive();
7355
+ this.observations_.forEach(function (observation) {
7356
+ if (observation.isActive()) {
7357
+ _this.activeObservations_.push(observation);
7358
+ }
7359
+ });
7360
+ };
7361
+ /**
7362
+ * Invokes initial callback function with a list of ResizeObserverEntry
7363
+ * instances collected from active resize observations.
7364
+ *
7365
+ * @returns {void}
7366
+ */
7367
+ ResizeObserverSPI.prototype.broadcastActive = function () {
7368
+ // Do nothing if observer doesn't have active observations.
7369
+ if (!this.hasActive()) {
7370
+ return;
7371
+ }
7372
+ var ctx = this.callbackCtx_;
7373
+ // Create ResizeObserverEntry instance for every active observation.
7374
+ var entries = this.activeObservations_.map(function (observation) {
7375
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
7376
+ });
7377
+ this.callback_.call(ctx, entries, ctx);
7378
+ this.clearActive();
7379
+ };
7380
+ /**
7381
+ * Clears the collection of active observations.
7382
+ *
7383
+ * @returns {void}
7384
+ */
7385
+ ResizeObserverSPI.prototype.clearActive = function () {
7386
+ this.activeObservations_.splice(0);
7387
+ };
7388
+ /**
7389
+ * Tells whether observer has active observations.
7390
+ *
7391
+ * @returns {boolean}
7392
+ */
7393
+ ResizeObserverSPI.prototype.hasActive = function () {
7394
+ return this.activeObservations_.length > 0;
7395
+ };
7396
+ return ResizeObserverSPI;
7397
+ }());
7398
+
7399
+ // Registry of internal observers. If WeakMap is not available use current shim
7400
+ // for the Map collection as it has all required methods and because WeakMap
7401
+ // can't be fully polyfilled anyway.
7402
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
7403
+ /**
7404
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
7405
+ * exposing only those methods and properties that are defined in the spec.
7406
+ */
7407
+ var ResizeObserver = /** @class */ (function () {
7408
+ /**
7409
+ * Creates a new instance of ResizeObserver.
7410
+ *
7411
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
7412
+ * dimensions of the observed elements change.
7413
+ */
7414
+ function ResizeObserver(callback) {
7415
+ if (!(this instanceof ResizeObserver)) {
7416
+ throw new TypeError('Cannot call a class as a function.');
7417
+ }
7418
+ if (!arguments.length) {
7419
+ throw new TypeError('1 argument required, but only 0 present.');
7420
+ }
7421
+ var controller = ResizeObserverController.getInstance();
7422
+ var observer = new ResizeObserverSPI(callback, controller, this);
7423
+ observers.set(this, observer);
7424
+ }
7425
+ return ResizeObserver;
7426
+ }());
7427
+ // Expose public methods of ResizeObserver.
7428
+ [
7429
+ 'observe',
7430
+ 'unobserve',
7431
+ 'disconnect'
7432
+ ].forEach(function (method) {
7433
+ ResizeObserver.prototype[method] = function () {
7434
+ var _a;
7435
+ return (_a = observers.get(this))[method].apply(_a, arguments);
7436
+ };
7437
+ });
7438
+
7439
+ var index = (function () {
7440
+ // Export existing implementation if available.
7441
+ if (typeof global$1.ResizeObserver !== 'undefined') {
7442
+ return global$1.ResizeObserver;
7443
+ }
7444
+ return ResizeObserver;
7445
+ })();
7446
+
7447
+ function _defineProperty$3(obj, key, value) {
7448
+ if (key in obj) {
7449
+ Object.defineProperty(obj, key, {
7450
+ value: value,
7451
+ enumerable: true,
7452
+ configurable: true,
7453
+ writable: true
7454
+ });
7455
+ } else {
7456
+ obj[key] = value;
7457
+ }
7458
+
7459
+ return obj;
7460
+ }
7461
+
7462
+ function _extends$2() {
7463
+ _extends$2 = Object.assign || function (target) {
7464
+ for (var i = 1; i < arguments.length; i++) {
7465
+ var source = arguments[i];
7466
+
7467
+ for (var key in source) {
7468
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
7469
+ target[key] = source[key];
7470
+ }
7471
+ }
7472
+ }
7473
+
7474
+ return target;
7475
+ };
7476
+
7477
+ return _extends$2.apply(this, arguments);
7478
+ }
7479
+
7480
+ function _objectSpread$1(target) {
7481
+ for (var i = 1; i < arguments.length; i++) {
7482
+ var source = arguments[i] != null ? arguments[i] : {};
7483
+ var ownKeys = Object.keys(source);
7484
+
7485
+ if (typeof Object.getOwnPropertySymbols === 'function') {
7486
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
7487
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
7488
+ }));
7489
+ }
7490
+
7491
+ ownKeys.forEach(function (key) {
7492
+ _defineProperty$3(target, key, source[key]);
7493
+ });
7494
+ }
7495
+
7496
+ return target;
7497
+ }
7498
+
7499
+ function _objectWithoutPropertiesLoose(source, excluded) {
7500
+ if (source == null) return {};
7501
+ var target = {};
7502
+ var sourceKeys = Object.keys(source);
7503
+ var key, i;
7504
+
7505
+ for (i = 0; i < sourceKeys.length; i++) {
7506
+ key = sourceKeys[i];
7507
+ if (excluded.indexOf(key) >= 0) continue;
7508
+ target[key] = source[key];
7509
+ }
7510
+
7511
+ return target;
7512
+ }
7513
+
7514
+ function _objectWithoutProperties(source, excluded) {
7515
+ if (source == null) return {};
7516
+
7517
+ var target = _objectWithoutPropertiesLoose(source, excluded);
7518
+
7519
+ var key, i;
7520
+
7521
+ if (Object.getOwnPropertySymbols) {
7522
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
7523
+
7524
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
7525
+ key = sourceSymbolKeys[i];
7526
+ if (excluded.indexOf(key) >= 0) continue;
7527
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
7528
+ target[key] = source[key];
7529
+ }
7530
+ }
7531
+
7532
+ return target;
7533
+ }
7534
+
7535
+ function _slicedToArray(arr, i) {
7536
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
7537
+ }
7538
+
7539
+ function _arrayWithHoles(arr) {
7540
+ if (Array.isArray(arr)) return arr;
7541
+ }
7542
+
7543
+ function _iterableToArrayLimit(arr, i) {
7544
+ var _arr = [];
7545
+ var _n = true;
7546
+ var _d = false;
7547
+ var _e = undefined;
7548
+
7549
+ try {
7550
+ for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
7551
+ _arr.push(_s.value);
7552
+
7553
+ if (i && _arr.length === i) break;
7554
+ }
7555
+ } catch (err) {
7556
+ _d = true;
7557
+ _e = err;
7558
+ } finally {
7559
+ try {
7560
+ if (!_n && _i["return"] != null) _i["return"]();
7561
+ } finally {
7562
+ if (_d) throw _e;
7563
+ }
7564
+ }
7565
+
7566
+ return _arr;
7567
+ }
7568
+
7569
+ function _nonIterableRest() {
7570
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
7571
+ }
7572
+
7573
+ var imgWithClick = {
7574
+ cursor: 'pointer'
7575
+ };
7576
+
7577
+ var Photo = function Photo(_ref) {
7578
+ var index = _ref.index,
7579
+ onClick = _ref.onClick,
7580
+ photo = _ref.photo,
7581
+ margin = _ref.margin,
7582
+ direction = _ref.direction,
7583
+ top = _ref.top,
7584
+ left = _ref.left,
7585
+ key = _ref.key;
7586
+ var imgStyle = {
7587
+ margin: margin,
7588
+ display: 'block'
7589
+ };
7590
+
7591
+ if (direction === 'column') {
7592
+ imgStyle.position = 'absolute';
7593
+ imgStyle.left = left;
7594
+ imgStyle.top = top;
7595
+ }
7596
+
7597
+ var handleClick = function handleClick(event) {
7598
+ onClick(event, {
7599
+ photo: photo,
7600
+ index: index
7601
+ });
7602
+ };
7603
+
7604
+ return React__default["default"].createElement("img", _extends$2({
7605
+ key: key,
7606
+ style: onClick ? _objectSpread$1({}, imgStyle, imgWithClick) : imgStyle
7607
+ }, photo, {
7608
+ onClick: onClick ? handleClick : null
7609
+ }));
7610
+ };
7611
+
7612
+ var photoPropType = PropTypes.shape({
7613
+ key: PropTypes.string,
7614
+ src: PropTypes.string.isRequired,
7615
+ width: PropTypes.number.isRequired,
7616
+ height: PropTypes.number.isRequired,
7617
+ alt: PropTypes.string,
7618
+ title: PropTypes.string,
7619
+ srcSet: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),
7620
+ sizes: PropTypes.oneOfType([PropTypes.string, PropTypes.array])
7621
+ });
7622
+ Photo.propTypes = {
7623
+ index: PropTypes.number.isRequired,
7624
+ onClick: PropTypes.func,
7625
+ photo: photoPropType.isRequired,
7626
+ margin: PropTypes.number,
7627
+ top: function top(props) {
7628
+ if (props.direction === 'column' && typeof props.top !== 'number') {
7629
+ return new Error('top is a required number when direction is set to `column`');
7630
+ }
7631
+ },
7632
+ left: function left(props) {
7633
+ if (props.direction === 'column' && typeof props.left !== 'number') {
7634
+ return new Error('left is a required number when direction is set to `column`');
7635
+ }
7636
+ },
7637
+ direction: PropTypes.string
7638
+ };
7639
+
7640
+ var round = function round(value, decimals) {
7641
+ if (!decimals) decimals = 0;
7642
+ return Number(Math.round(value + 'e' + decimals) + 'e-' + decimals);
7643
+ };
7644
+
7645
+ var computeColumnLayout = function computeColumnLayout(_ref) {
7646
+ var photos = _ref.photos,
7647
+ columns = _ref.columns,
7648
+ containerWidth = _ref.containerWidth,
7649
+ margin = _ref.margin;
7650
+ // calculate each colWidth based on total width and column amount
7651
+ var colWidth = (containerWidth - margin * 2 * columns) / columns; // map through each photo to assign adjusted height and width based on colWidth
7652
+
7653
+ var photosWithSizes = photos.map(function (photo) {
7654
+ var newHeight = photo.height / photo.width * colWidth;
7655
+ return _objectSpread$1({}, photo, {
7656
+ width: round(colWidth, 1),
7657
+ height: round(newHeight, 1)
7658
+ });
7659
+ }); // store all possible left positions
7660
+ // and current top positions for each column
7661
+
7662
+ var colLeftPositions = [];
7663
+ var colCurrTopPositions = [];
7664
+
7665
+ for (var i = 0; i < columns; i++) {
7666
+ colLeftPositions[i] = round(i * (colWidth + margin * 2), 1);
7667
+ colCurrTopPositions[i] = 0;
7668
+ } // map through each photo, then reduce thru each "column"
7669
+ // find column with the smallest height and assign to photo's 'top'
7670
+ // update that column's height with this photo's height
7671
+
7672
+
7673
+ var photosPositioned = photosWithSizes.map(function (photo) {
7674
+ var smallestCol = colCurrTopPositions.reduce(function (acc, item, i) {
7675
+ acc = item < colCurrTopPositions[acc] ? i : acc;
7676
+ return acc;
7677
+ }, 0);
7678
+ photo.top = colCurrTopPositions[smallestCol];
7679
+ photo.left = colLeftPositions[smallestCol];
7680
+ colCurrTopPositions[smallestCol] = colCurrTopPositions[smallestCol] + photo.height + margin * 2; // store the tallest col to use for gallery height because of abs positioned elements
7681
+
7682
+ var tallestCol = colCurrTopPositions.reduce(function (acc, item, i) {
7683
+ acc = item > colCurrTopPositions[acc] ? i : acc;
7684
+ return acc;
7685
+ }, 0);
7686
+ photo.containerHeight = colCurrTopPositions[tallestCol];
7687
+ return photo;
7688
+ });
7689
+ return photosPositioned;
7690
+ };
7691
+
7692
+ var ratio = function ratio(_ref) {
7693
+ var width = _ref.width,
7694
+ height = _ref.height;
7695
+ return round(width / height, 2);
7696
+ };
7697
+
7698
+ /*
7699
+ Copyright 2007-2013 Marijn Haverbeke frin "Eloquent Javascript, 1st Edition"
7700
+
7701
+ 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:
7702
+
7703
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7704
+
7705
+ 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.
7706
+ */
7707
+ function BinaryHeap(scoreFunction) {
7708
+ this.content = [];
7709
+ this.scoreFunction = scoreFunction;
7710
+ }
7711
+ BinaryHeap.prototype = {
7712
+ push: function push(element) {
7713
+ // Add the new element to the end of the array.
7714
+ this.content.push(element); // Allow it to bubble up.
7715
+
7716
+ this.bubbleUp(this.content.length - 1);
7717
+ },
7718
+ pop: function pop() {
7719
+ // Store the first element so we can return it later.
7720
+ var result = this.content[0]; // Get the element at the end of the array.
7721
+
7722
+ var end = this.content.pop(); // If there are any elements left, put the end element at the
7723
+ // start, and let it sink down.
7724
+
7725
+ if (this.content.length > 0) {
7726
+ this.content[0] = end;
7727
+ this.sinkDown(0);
7728
+ }
7729
+
7730
+ return result;
7731
+ },
7732
+ remove: function remove(node) {
7733
+ var length = this.content.length; // To remove a value, we must search through the array to find
7734
+ // it.
7735
+
7736
+ for (var i = 0; i < length; i++) {
7737
+ if (this.content[i] != node) continue; // When it is found, the process seen in 'pop' is repeated
7738
+ // to fill up the hole.
7739
+
7740
+ var end = this.content.pop(); // If the element we popped was the one we needed to remove,
7741
+ // we're done.
7742
+
7743
+ if (i == length - 1) break; // Otherwise, we replace the removed element with the popped
7744
+ // one, and allow it to float up or sink down as appropriate.
7745
+
7746
+ this.content[i] = end;
7747
+ this.bubbleUp(i);
7748
+ this.sinkDown(i);
7749
+ break;
7750
+ }
7751
+ },
7752
+ size: function size() {
7753
+ return this.content.length;
7754
+ },
7755
+ bubbleUp: function bubbleUp(n) {
7756
+ // Fetch the element that has to be moved.
7757
+ var element = this.content[n],
7758
+ score = this.scoreFunction(element); // When at 0, an element can not go up any further.
7759
+
7760
+ while (n > 0) {
7761
+ // Compute the parent element's index, and fetch it.
7762
+ var parentN = Math.floor((n + 1) / 2) - 1,
7763
+ parent = this.content[parentN]; // If the parent has a lesser score, things are in order and we
7764
+ // are done.
7765
+
7766
+ if (score >= this.scoreFunction(parent)) break; // Otherwise, swap the parent with the current element and
7767
+ // continue.
7768
+
7769
+ this.content[parentN] = element;
7770
+ this.content[n] = parent;
7771
+ n = parentN;
7772
+ }
7773
+ },
7774
+ sinkDown: function sinkDown(n) {
7775
+ // Look up the target element and its score.
7776
+ var length = this.content.length,
7777
+ element = this.content[n],
7778
+ elemScore = this.scoreFunction(element);
7779
+
7780
+ while (true) {
7781
+ // Compute the indices of the child elements.
7782
+ var child2N = (n + 1) * 2,
7783
+ child1N = child2N - 1; // This is used to store the new position of the element,
7784
+ // if any.
7785
+
7786
+ var swap = null; // If the first child exists (is inside the array)...
7787
+
7788
+ if (child1N < length) {
7789
+ // Look it up and compute its score.
7790
+ var child1 = this.content[child1N],
7791
+ child1Score = this.scoreFunction(child1); // If the score is less than our element's, we need to swap.
7792
+
7793
+ if (child1Score < elemScore) swap = child1N;
7794
+ } // Do the same checks for the other child.
7795
+
7796
+
7797
+ if (child2N < length) {
7798
+ var child2 = this.content[child2N],
7799
+ child2Score = this.scoreFunction(child2);
7800
+ if (child2Score < (swap == null ? elemScore : child1Score)) swap = child2N;
7801
+ } // No need to swap further, we are done.
7802
+
7803
+
7804
+ if (swap == null) break; // Otherwise, swap and continue.
7805
+
7806
+ this.content[n] = this.content[swap];
7807
+ this.content[swap] = element;
7808
+ n = swap;
7809
+ }
7810
+ }
7811
+ };
7812
+
7813
+ var buildPrecedentsMap = function buildPrecedentsMap(graph, startNode, endNode) {
7814
+ // store the previous vertex of the shortest path of arrival
7815
+ var precedentsMap = {}; // store nodes already visited
7816
+
7817
+ var visited = {}; // store/update only the shortest edge weights measured
7818
+ // the purpose of this is object is constant time lookup vs. binary heap lookup O(n)
7819
+
7820
+ var storedShortestPaths = {};
7821
+ storedShortestPaths[startNode] = 0; // priority queue of ALL nodes and storedShortestPaths
7822
+ // don't bother to delete them because it's faster to look at visited?
7823
+
7824
+ var pQueue = new BinaryHeap(function (n) {
7825
+ return n.weight;
7826
+ });
7827
+ pQueue.push({
7828
+ id: startNode,
7829
+ weight: 0
7830
+ });
7831
+
7832
+ while (pQueue.size()) {
7833
+ // pop node with shortest total weight from start node
7834
+ var shortestNode = pQueue.pop();
7835
+ var shortestNodeId = shortestNode.id; // if already visited, continue
7836
+
7837
+ if (visited[shortestNodeId]) continue; // visit neighboring nodes
7838
+
7839
+ var neighboringNodes = graph(shortestNodeId) || {};
7840
+ visited[shortestNodeId] = 1; // meet the neighbors, looking for shorter paths
7841
+
7842
+ for (var neighbor in neighboringNodes) {
7843
+ // weight of path from startNode to this neighbor
7844
+ var newTotalWeight = shortestNode.weight + neighboringNodes[neighbor]; // if this is the first time meeting the neighbor OR if the new total weight from
7845
+ // start node to this neighbor node is greater than the old weight path, update it,
7846
+ // and update precedent node
7847
+
7848
+ if (typeof storedShortestPaths[neighbor] === 'undefined' || storedShortestPaths[neighbor] > newTotalWeight) {
7849
+ storedShortestPaths[neighbor] = newTotalWeight;
7850
+ pQueue.push({
7851
+ id: neighbor,
7852
+ weight: newTotalWeight
7853
+ });
7854
+ precedentsMap[neighbor] = shortestNodeId;
7855
+ }
7856
+ }
7857
+ }
7858
+
7859
+ if (typeof storedShortestPaths[endNode] === 'undefined') {
7860
+ throw new Error("There is no path from ".concat(startNode, " to ").concat(endNode));
7861
+ }
7862
+
7863
+ return precedentsMap;
7864
+ }; // build the route from precedent node vertices
7865
+
7866
+
7867
+ var getPathFromPrecedentsMap = function getPathFromPrecedentsMap(precedentsMap, endNode) {
7868
+ var nodes = [];
7869
+ var n = endNode;
7870
+
7871
+ while (n) {
7872
+ nodes.push(n);
7873
+ n = precedentsMap[n];
7874
+ }
7875
+
7876
+ return nodes.reverse();
7877
+ }; // build the precedentsMap and find the shortest path from it
7878
+
7879
+
7880
+ var findShortestPath = function findShortestPath(graph, startNode, endNode) {
7881
+ var precedentsMap = buildPrecedentsMap(graph, startNode, endNode);
7882
+ return getPathFromPrecedentsMap(precedentsMap, endNode);
7883
+ };
7884
+
7885
+ // to calculate the single best layout using Dijkstra's findShortestPat
7886
+ // get the height for a set of photos in a potential row
7887
+
7888
+ var getCommonHeight = function getCommonHeight(row, containerWidth, margin) {
7889
+ var rowWidth = containerWidth - row.length * (margin * 2);
7890
+ var totalAspectRatio = row.reduce(function (acc, photo) {
7891
+ return acc + ratio(photo);
7892
+ }, 0);
7893
+ return rowWidth / totalAspectRatio;
7894
+ }; // calculate the cost of breaking at this node (edge weight)
7895
+
7896
+
7897
+ var cost = function cost(photos, i, j, width, targetHeight, margin) {
7898
+ var row = photos.slice(i, j);
7899
+ var commonHeight = getCommonHeight(row, width, margin);
7900
+ return Math.pow(Math.abs(commonHeight - targetHeight), 2);
7901
+ }; // return function that gets the neighboring nodes of node and returns costs
7902
+
7903
+
7904
+ var makeGetNeighbors = function makeGetNeighbors(targetHeight, containerWidth, photos, limitNodeSearch, margin) {
7905
+ return function (start) {
7906
+ var results = {};
7907
+ start = +start;
7908
+ results[+start] = 0;
7909
+
7910
+ for (var i = start + 1; i < photos.length + 1; ++i) {
7911
+ if (i - start > limitNodeSearch) break;
7912
+ results[i.toString()] = cost(photos, start, i, containerWidth, targetHeight, margin);
7913
+ }
7914
+
7915
+ return results;
7916
+ };
7917
+ };
7918
+
7919
+ var computeRowLayout = function computeRowLayout(_ref) {
7920
+ var containerWidth = _ref.containerWidth,
7921
+ limitNodeSearch = _ref.limitNodeSearch,
7922
+ targetRowHeight = _ref.targetRowHeight,
7923
+ margin = _ref.margin,
7924
+ photos = _ref.photos;
7925
+ // const t = +new Date();
7926
+ var getNeighbors = makeGetNeighbors(targetRowHeight, containerWidth, photos, limitNodeSearch, margin);
7927
+ var path = findShortestPath(getNeighbors, '0', photos.length);
7928
+ path = path.map(function (node) {
7929
+ return +node;
7930
+ }); // console.log(`time to find the shortest path: ${(+new Date() - t)} ms`);
7931
+
7932
+ for (var i = 1; i < path.length; ++i) {
7933
+ var row = photos.slice(path[i - 1], path[i]);
7934
+ var height = getCommonHeight(row, containerWidth, margin);
7935
+
7936
+ for (var j = path[i - 1]; j < path[i]; ++j) {
7937
+ photos[j].width = round(height * ratio(photos[j]), 1);
7938
+ photos[j].height = height;
7939
+ }
7940
+ }
7941
+
7942
+ return photos;
7943
+ };
7944
+
7945
+ // the aspect ratio of the container with images having an avg AR of 1.5
7946
+ // as the minimum amount of photos per row, plus some nodes
7947
+
7948
+ var findIdealNodeSearch = function findIdealNodeSearch(_ref) {
7949
+ var targetRowHeight = _ref.targetRowHeight,
7950
+ containerWidth = _ref.containerWidth;
7951
+ var rowAR = containerWidth / targetRowHeight;
7952
+ return round(rowAR / 1.5) + 8;
7953
+ };
7954
+
7955
+ var Gallery = React__default["default"].memo(function Gallery(_ref) {
7956
+ var photos = _ref.photos,
7957
+ onClick = _ref.onClick,
7958
+ direction = _ref.direction,
7959
+ margin = _ref.margin,
7960
+ limitNodeSearch = _ref.limitNodeSearch,
7961
+ targetRowHeight = _ref.targetRowHeight,
7962
+ columns = _ref.columns,
7963
+ renderImage = _ref.renderImage;
7964
+
7965
+ var _useState = React.useState(0),
7966
+ _useState2 = _slicedToArray(_useState, 2),
7967
+ containerWidth = _useState2[0],
7968
+ setContainerWidth = _useState2[1];
7969
+
7970
+ var galleryEl = React.useRef(null);
7971
+ React.useLayoutEffect(function () {
7972
+ var animationFrameID = null;
7973
+ var observer = new index(function (entries) {
7974
+ // only do something if width changes
7975
+ var newWidth = entries[0].contentRect.width;
7976
+
7977
+ if (containerWidth !== newWidth) {
7978
+ // put in an animation frame to stop "benign errors" from
7979
+ // ResizObserver https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded
7980
+ animationFrameID = window.requestAnimationFrame(function () {
7981
+ setContainerWidth(Math.floor(newWidth));
7982
+ });
7983
+ }
7984
+ });
7985
+ observer.observe(galleryEl.current);
7986
+ return function () {
7987
+ observer.disconnect();
7988
+ window.cancelAnimationFrame(animationFrameID);
7989
+ };
7990
+ });
7991
+
7992
+ var handleClick = function handleClick(event, _ref2) {
7993
+ var index = _ref2.index;
7994
+ onClick(event, {
7995
+ index: index,
7996
+ photo: photos[index],
7997
+ previous: photos[index - 1] || null,
7998
+ next: photos[index + 1] || null
7999
+ });
8000
+ }; // no containerWidth until after first render with refs, skip calculations and render nothing
8001
+
8002
+
8003
+ if (!containerWidth) return React__default["default"].createElement("div", {
8004
+ ref: galleryEl
8005
+ }, "\xA0"); // subtract 1 pixel because the browser may round up a pixel
8006
+
8007
+ var width = containerWidth - 1;
8008
+ var galleryStyle, thumbs;
8009
+
8010
+ if (direction === 'row') {
8011
+ // allow user to calculate limitNodeSearch from containerWidth
8012
+ if (typeof limitNodeSearch === 'function') {
8013
+ limitNodeSearch = limitNodeSearch(containerWidth);
8014
+ }
8015
+
8016
+ if (typeof targetRowHeight === 'function') {
8017
+ targetRowHeight = targetRowHeight(containerWidth);
8018
+ } // set how many neighboring nodes the graph will visit
8019
+
8020
+
8021
+ if (limitNodeSearch === undefined) {
8022
+ limitNodeSearch = 2;
8023
+
8024
+ if (containerWidth >= 450) {
8025
+ limitNodeSearch = findIdealNodeSearch({
8026
+ containerWidth: containerWidth,
8027
+ targetRowHeight: targetRowHeight
8028
+ });
8029
+ }
8030
+ }
8031
+
8032
+ galleryStyle = {
8033
+ display: 'flex',
8034
+ flexWrap: 'wrap',
8035
+ flexDirection: 'row'
8036
+ };
8037
+ thumbs = computeRowLayout({
8038
+ containerWidth: width,
8039
+ limitNodeSearch: limitNodeSearch,
8040
+ targetRowHeight: targetRowHeight,
8041
+ margin: margin,
8042
+ photos: photos
8043
+ });
8044
+ }
8045
+
8046
+ if (direction === 'column') {
8047
+ // allow user to calculate columns from containerWidth
8048
+ if (typeof columns === 'function') {
8049
+ columns = columns(containerWidth);
8050
+ } // set default breakpoints if user doesn't specify columns prop
8051
+
8052
+
8053
+ if (columns === undefined) {
8054
+ columns = 1;
8055
+ if (containerWidth >= 500) columns = 2;
8056
+ if (containerWidth >= 900) columns = 3;
8057
+ if (containerWidth >= 1500) columns = 4;
8058
+ }
8059
+
8060
+ galleryStyle = {
8061
+ position: 'relative'
8062
+ };
8063
+ thumbs = computeColumnLayout({
8064
+ containerWidth: width,
8065
+ columns: columns,
8066
+ margin: margin,
8067
+ photos: photos
8068
+ });
8069
+ galleryStyle.height = thumbs[thumbs.length - 1].containerHeight;
8070
+ }
8071
+
8072
+ var renderComponent = renderImage || Photo;
8073
+ return React__default["default"].createElement("div", {
8074
+ className: "react-photo-gallery--gallery"
8075
+ }, React__default["default"].createElement("div", {
8076
+ ref: galleryEl,
8077
+ style: galleryStyle
8078
+ }, thumbs.map(function (thumb, index) {
8079
+ var left = thumb.left,
8080
+ top = thumb.top,
8081
+ containerHeight = thumb.containerHeight,
8082
+ photo = _objectWithoutProperties(thumb, ["left", "top", "containerHeight"]);
8083
+
8084
+ return renderComponent({
8085
+ left: left,
8086
+ top: top,
8087
+ key: thumb.key || thumb.src,
8088
+ containerHeight: containerHeight,
8089
+ index: index,
8090
+ margin: margin,
8091
+ direction: direction,
8092
+ onClick: onClick ? handleClick : null,
8093
+ photo: photo
8094
+ });
8095
+ })));
8096
+ });
8097
+ Gallery.propTypes = {
8098
+ photos: PropTypes.arrayOf(photoPropType).isRequired,
8099
+ direction: PropTypes.string,
8100
+ onClick: PropTypes.func,
8101
+ columns: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8102
+ targetRowHeight: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8103
+ limitNodeSearch: PropTypes.oneOfType([PropTypes.func, PropTypes.number]),
8104
+ margin: PropTypes.number,
8105
+ renderImage: PropTypes.func
8106
+ };
8107
+ Gallery.defaultProps = {
8108
+ margin: 2,
8109
+ direction: 'row',
8110
+ targetRowHeight: 300
8111
+ };
8112
+
8113
+ var _templateObject$1, _templateObject2$1, _templateObject3$1;
8114
+ 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"])));
8115
+ 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"])));
8116
+ 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"])));
8117
+
8118
+ function ImageGallery(_ref) {
8119
+ var options = _ref.options;
8120
+
8121
+ var _useState = React.useState(false),
8122
+ _useState2 = _slicedToArray$1(_useState, 2);
8123
+ _useState2[0];
8124
+ _useState2[1];
8125
+
8126
+ var items = options.content.map(transform);
8127
+ return /*#__PURE__*/React__default["default"].createElement(NewGallery, null, /*#__PURE__*/React__default["default"].createElement(Gallery$1, {
8128
+ items: items,
8129
+ showThumbnails: true,
8130
+ thumbnailPosition: "right"
8131
+ }));
8132
+ }
8133
+
8134
+ function transform(item) {
8135
+ return {
8136
+ original: "https://cdn.burobork.nl/".concat(item.reference),
8137
+ thumbnail: "https://cdn.burobork.nl/".concat(item.reference),
8138
+ originalAlt: item.alt,
8139
+ originalTitle: item.title,
8140
+ lazyLoad: true
8141
+ };
8142
+ }
8143
+
8144
+ var js = {};
8145
+
8146
+ var Carousel$1 = {};
8147
+
8148
+ var lib = {};
8149
+
8150
+ var reactSwipe = {};
8151
+
8152
+ var propTypes = {exports: {}};
8153
+
8154
+ /**
8155
+ * Copyright (c) 2013-present, Facebook, Inc.
8156
+ *
8157
+ * This source code is licensed under the MIT license found in the
8158
+ * LICENSE file in the root directory of this source tree.
8159
+ */
8160
+
8161
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
8162
+
8163
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
8164
+
8165
+ /**
8166
+ * Copyright (c) 2013-present, Facebook, Inc.
8167
+ *
8168
+ * This source code is licensed under the MIT license found in the
8169
+ * LICENSE file in the root directory of this source tree.
8170
+ */
8171
+
8172
+ var printWarning$1 = function() {};
8173
+
8174
+ if (process.env.NODE_ENV !== 'production') {
8175
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
8176
+ var loggedTypeFailures = {};
8177
+ var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
8178
+
8179
+ printWarning$1 = function(text) {
8180
+ var message = 'Warning: ' + text;
8181
+ if (typeof console !== 'undefined') {
8182
+ console.error(message);
8183
+ }
8184
+ try {
8185
+ // --- Welcome to debugging React ---
8186
+ // This error was thrown as a convenience so that you can use this stack
8187
+ // to find the callsite that caused this warning to fire.
8188
+ throw new Error(message);
8189
+ } catch (x) {}
8190
+ };
8191
+ }
8192
+
8193
+ /**
8194
+ * Assert that the values match with the type specs.
8195
+ * Error messages are memorized and will only be shown once.
8196
+ *
8197
+ * @param {object} typeSpecs Map of name to a ReactPropType
8198
+ * @param {object} values Runtime values that need to be type-checked
8199
+ * @param {string} location e.g. "prop", "context", "child context"
8200
+ * @param {string} componentName Name of the component for error messages.
8201
+ * @param {?Function} getStack Returns the component stack.
8202
+ * @private
8203
+ */
8204
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
8205
+ if (process.env.NODE_ENV !== 'production') {
8206
+ for (var typeSpecName in typeSpecs) {
8207
+ if (has$1(typeSpecs, typeSpecName)) {
8208
+ var error;
8209
+ // Prop type validation may throw. In case they do, we don't want to
8210
+ // fail the render phase where it didn't fail before. So we log it.
8211
+ // After these have been cleaned up, we'll let them throw.
8212
+ try {
8213
+ // This is intentionally an invariant that gets caught. It's the same
8214
+ // behavior as without this statement except with a better message.
8215
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
8216
+ var err = Error(
8217
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
8218
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
8219
+ );
8220
+ err.name = 'Invariant Violation';
8221
+ throw err;
8222
+ }
8223
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
8224
+ } catch (ex) {
8225
+ error = ex;
8226
+ }
8227
+ if (error && !(error instanceof Error)) {
8228
+ printWarning$1(
8229
+ (componentName || 'React class') + ': type specification of ' +
8230
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
8231
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
8232
+ 'You may have forgotten to pass an argument to the type checker ' +
8233
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
8234
+ 'shape all require an argument).'
8235
+ );
8236
+ }
8237
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
8238
+ // Only monitor this failure once because there tends to be a lot of the
8239
+ // same error.
8240
+ loggedTypeFailures[error.message] = true;
8241
+
8242
+ var stack = getStack ? getStack() : '';
8243
+
8244
+ printWarning$1(
8245
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
8246
+ );
8247
+ }
8248
+ }
8249
+ }
8250
+ }
8251
+ }
8252
+
8253
+ /**
8254
+ * Resets warning cache when testing.
8255
+ *
8256
+ * @private
8257
+ */
8258
+ checkPropTypes$1.resetWarningCache = function() {
8259
+ if (process.env.NODE_ENV !== 'production') {
8260
+ loggedTypeFailures = {};
8261
+ }
8262
+ };
8263
+
8264
+ var checkPropTypes_1 = checkPropTypes$1;
8265
+
8266
+ /**
8267
+ * Copyright (c) 2013-present, Facebook, Inc.
8268
+ *
8269
+ * This source code is licensed under the MIT license found in the
8270
+ * LICENSE file in the root directory of this source tree.
8271
+ */
8272
+
8273
+ var ReactIs$1 = reactIs$1.exports;
8274
+ var assign = objectAssign;
8275
+
8276
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
8277
+ var checkPropTypes = checkPropTypes_1;
8278
+
8279
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
8280
+ var printWarning = function() {};
8281
+
8282
+ if (process.env.NODE_ENV !== 'production') {
8283
+ printWarning = function(text) {
8284
+ var message = 'Warning: ' + text;
8285
+ if (typeof console !== 'undefined') {
8286
+ console.error(message);
8287
+ }
8288
+ try {
8289
+ // --- Welcome to debugging React ---
8290
+ // This error was thrown as a convenience so that you can use this stack
8291
+ // to find the callsite that caused this warning to fire.
8292
+ throw new Error(message);
8293
+ } catch (x) {}
8294
+ };
8295
+ }
8296
+
8297
+ function emptyFunctionThatReturnsNull() {
8298
+ return null;
8299
+ }
8300
+
8301
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
5593
8302
  /* global Symbol */
5594
8303
  var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
5595
8304
  var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
@@ -8105,29 +10814,6 @@ var _Thumbs = _interopRequireDefault(Thumbs$1);
8105
10814
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8106
10815
  }(js));
8107
10816
 
8108
- var _templateObject$2;
8109
- var SliderContainer = styled__default["default"].div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\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"])));
8110
-
8111
- function ImageGallery(_ref) {
8112
- var options = _ref.options;
8113
- console.log({
8114
- options: options
8115
- });
8116
- return /*#__PURE__*/React__default["default"].createElement(SliderContainer, null, /*#__PURE__*/React__default["default"].createElement(js.Carousel, {
8117
- showThumbs: true,
8118
- swipeable: true,
8119
- emulateTouch: true,
8120
- dynamicHeight: true
8121
- }, options.content.map(function (image) {
8122
- return /*#__PURE__*/React__default["default"].createElement("div", {
8123
- key: image.reference
8124
- }, /*#__PURE__*/React__default["default"].createElement("img", {
8125
- src: 'https://cdn.burobork.nl/' + image.reference,
8126
- alt: image.title
8127
- }));
8128
- })));
8129
- }
8130
-
8131
10817
  function ImageSlider(_ref) {
8132
10818
  var options = _ref.options;
8133
10819
  var content = options.content;
@@ -9098,7 +11784,7 @@ Point.convert = function (a) {
9098
11784
  return a;
9099
11785
  };
9100
11786
 
9101
- function a(){return (a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);}return e}).apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},h=function(t){function o(){return t.apply(this,arguments)||this}p(o,t);var n=o.prototype;return n.shouldComponentUpdate=function(){return !1},n.render=function(){return React__default["default"].createElement("div",{ref:this.props.registerChild,style:u})},o}(React.Component),c=function(e){function t(t){var o;return (o=e.call(this)||this).gmapInstance=t,o}p(t,e);var o=t.prototype;return o.getChildren=function(){return this.gmapInstance.props.children},o.getMousePosition=function(){return this.gmapInstance.mouse_},o.getUpdateCounter=function(){return this.gmapInstance.updateCounter_},o.dispose=function(){this.gmapInstance=null,this.removeAllListeners();},t}(r),d=function(e,t){for(var o=a({},e),n=0;n<t.length;n++){var r=t[n];r in o&&delete o[r];}return o},m=Object.prototype.hasOwnProperty;function g(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(g(e,t))return !0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return !1;var o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return !1;for(var r=0;r<o.length;r++)if(!m.call(t,o[r])||!g(e[o[r]],t[o[r]]))return !1;return !0}var f={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},v={width:0,height:0,left:0,top:0,backgroundColor:"transparent",position:"absolute"},M=function(t){function o(o){var n;return (n=t.call(this,o)||this)._getState=function(){return {children:n.props.dispatcher.getChildren(),updateCounter:n.props.dispatcher.getUpdateCounter()}},n._onChangeHandler=function(){if(n.dimensionsCache_){var e=(n.state.children||[]).length,t=n._getState();n.setState(t,function(){return (t.children||[]).length!==e&&n._onMouseChangeHandler()});}},n._onChildClick=function(){n.props.onChildClick&&n.hoverChildProps_&&n.props.onChildClick(n.hoverKey_,n.hoverChildProps_);},n._onChildMouseDown=function(){n.props.onChildMouseDown&&n.hoverChildProps_&&n.props.onChildMouseDown(n.hoverKey_,n.hoverChildProps_);},n._onChildMouseEnter=function(e,t){n.dimensionsCache_&&(n.props.onChildMouseEnter&&n.props.onChildMouseEnter(e,t),n.hoverChildProps_=t,n.hoverKey_=e,n.setState({hoverKey:e}));},n._onChildMouseLeave=function(){if(n.dimensionsCache_){var e=n.hoverKey_;null!=e&&(n.props.onChildMouseLeave&&n.props.onChildMouseLeave(e,n.hoverChildProps_),n.hoverKey_=null,n.hoverChildProps_=null,n.setState({hoverKey:null}));}},n._onMouseAllow=function(e){e||n._onChildMouseLeave(),n.allowMouse_=e;},n._onMouseChangeHandler=function(){n.allowMouse_&&n._onMouseChangeHandlerRaf();},n._onMouseChangeHandlerRaf=function(){if(n.dimensionsCache_){var t=n.props.dispatcher.getMousePosition();if(t){var o=[],r=n.props.getHoverDistance();if(React__default["default"].Children.forEach(n.state.children,function(e,i){if(e&&(void 0!==e.props.latLng||void 0!==e.props.lat||void 0!==e.props.lng)){var s=null!=e.key?e.key:i,a=n.props.distanceToMouse(n.dimensionsCache_[s],t,e.props);a<r&&o.push({key:s,dist:a,props:e.props});}}),o.length){o.sort(function(e,t){return e.dist-t.dist});var i=o[0].key,s=o[0].props;n.hoverKey_!==i&&(n._onChildMouseLeave(),n._onChildMouseEnter(i,s));}else n._onChildMouseLeave();}else n._onChildMouseLeave();}},n._getDimensions=function(e){return n.dimensionsCache_[e]},n.dimensionsCache_={},n.hoverKey_=null,n.hoverChildProps_=null,n.allowMouse_=!0,n.state=a({},n._getState(),{hoverKey:null}),n}p(o,t);var n=o.prototype;return n.componentDidMount=function(){this.props.dispatcher.on("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.on("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.on("kON_CLICK",this._onChildClick),this.props.dispatcher.on("kON_MDOWN",this._onChildMouseDown);},n.shouldComponentUpdate=function(e,t){return !0===this.props.experimental?!_(this.props,e)||!_(d(this.state,["hoverKey"]),d(t,["hoverKey"])):!_(this.props,e)||!_(this.state,t)},n.componentWillUnmount=function(){this.props.dispatcher.removeListener("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.removeListener("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.removeListener("kON_CLICK",this._onChildClick),this.props.dispatcher.removeListener("kON_MDOWN",this._onChildMouseDown),this.dimensionsCache_=null;},n.render=function(){var t=this,o=this.props.style||f;this.dimensionsCache_={};var n=React__default["default"].Children.map(this.state.children,function(o,n){if(o){if(void 0===o.props.latLng&&void 0===o.props.lat&&void 0===o.props.lng)return React__default["default"].cloneElement(o,{$geoService:t.props.geoService,$onMouseAllow:t._onMouseAllow,$prerender:t.props.prerender});var r=void 0!==o.props.latLng?o.props.latLng:{lat:o.props.lat,lng:o.props.lng},i=t.props.insideMapPanes?t.props.geoService.fromLatLngToDivPixel(r):t.props.geoService.fromLatLngToCenterPixel(r),s={left:i.x,top:i.y};if(void 0!==o.props.seLatLng||void 0!==o.props.seLat&&void 0!==o.props.seLng){var p=void 0!==o.props.seLatLng?o.props.seLatLng:{lat:o.props.seLat,lng:o.props.seLng},l=t.props.insideMapPanes?t.props.geoService.fromLatLngToDivPixel(p):t.props.geoService.fromLatLngToCenterPixel(p);s.width=l.x-i.x,s.height=l.y-i.y;}var u=t.props.geoService.fromLatLngToContainerPixel(r),h=null!=o.key?o.key:n;return t.dimensionsCache_[h]=a({x:u.x,y:u.y},r),React__default["default"].createElement("div",{key:h,style:a({},v,s),className:o.props.$markerHolderClassName},React__default["default"].cloneElement(o,{$hover:h===t.state.hoverKey,$getDimensions:t._getDimensions,$dimensionKey:h,$geoService:t.props.geoService,$onMouseAllow:t._onMouseAllow,$prerender:t.props.prerender}))}});return React__default["default"].createElement("div",{style:o},n)},o}(React.Component);M.propTypes={geoService:PropTypes.any,style:PropTypes.any,distanceToMouse:PropTypes.func,dispatcher:PropTypes.any,onChildClick:PropTypes.func,onChildMouseDown:PropTypes.func,onChildMouseLeave:PropTypes.func,onChildMouseEnter:PropTypes.func,getHoverDistance:PropTypes.func,insideMapPanes:PropTypes.bool,prerender:PropTypes.bool},M.defaultProps={insideMapPanes:!1,prerender:!1};var y={width:"50%",height:"50%",left:"50%",top:"50%",margin:0,padding:0,position:"absolute"};function C(t){return React__default["default"].createElement("div",{style:y},React__default["default"].createElement(M,a({},t,{prerender:!0})))}var w,L,b,D=new Promise(function(e){b=e;}),z=function(e,t){if(!e)return D;if(L)return L;e.libraries||(e.libraries=[]);var o=[].concat(e.libraries);if(t&&(0!==o.length&&o.includes("visualization")||o.push("visualization"),console.warn("heatmapLibrary will be deprecated in the future. Please use { libraries: ['visualization'] } in bootstrapURLKeys property instead")),"production"!==process.env.NODE_ENV&&Object.keys(e).indexOf("callback")>-1){var n='"callback" key in bootstrapURLKeys is not allowed,\n use onGoogleApiLoaded property instead';throw console.error(n),new Error(n)}if("undefined"==typeof window)throw new Error("google map cannot be loaded outside browser env");var r=e.key,s=function(e,t){if(null==e)return {};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(o=i[n])>=0||(r[o]=e[o]);return r}(e,["key"]);return w||(w=new Loader(a({apiKey:r||""},s,{libraries:o}))),L=w.load().then(function(){return b(window.google.maps),window.google.maps}),b(L),L};function k(e,t,o){var n=o-t;return e===o?e:((e-t)%n+n)%n+t}var O=function(){function e(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t;}return e.prototype.wrap=function(){return new e(this.lat,k(this.lng,-180,180))},e}();O.convert=function(e){return e instanceof O?e:Array.isArray(e)?new O(e[0],e[1]):"lng"in e&&"lat"in e?new O(e.lat,e.lng):e};var x=function(){function e(e,t,o){this.tileSize=e||512,this._minZoom=t||0,this._maxZoom=o||52,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this.zoom=0,this.center=new O(0,0),this.angle=0;}var t,o=e.prototype;return o.zoomScale=function(e){return Math.pow(2,e)},o.scaleZoom=function(e){return Math.log(e)/Math.LN2},o.project=function(e,t){return new pointGeometry(this.lngX(e.lng,t),this.latY(e.lat,t))},o.unproject=function(e,t){return new O(this.yLat(e.y,t),this.xLng(e.x,t))},o.lngX=function(e,t){return (180+e)*(t||this.worldSize)/360},o.latY=function(e,t){return (180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*(t||this.worldSize)/360},o.xLng=function(e,t){return 360*e/(t||this.worldSize)-180},o.yLat=function(e,t){return 360/Math.PI*Math.atan(Math.exp((180-360*e/(t||this.worldSize))*Math.PI/180))-90},o.locationPoint=function(e){var t=this.project(e);return this.centerPoint._sub(this.point._sub(t)._rotate(this.angle))},o.pointLocation=function(e){var t=this.centerPoint._sub(e)._rotate(-this.angle);return this.unproject(this.point.sub(t))},(t=[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom=e,this.zoom=Math.max(this.zoom,e);}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom=e,this.zoom=Math.min(this.zoom,e);}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerPoint",get:function(){return new pointGeometry(0,0)}},{key:"size",get:function(){return new pointGeometry(this.width,this.height)}},{key:"bearing",get:function(){return -this.angle/Math.PI*180},set:function(e){this.angle=-k(e,-180,180)*Math.PI/180;}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom;}},{key:"x",get:function(){return this.lngX(this.center.lng)}},{key:"y",get:function(){return this.latY(this.center.lat)}},{key:"point",get:function(){return new pointGeometry(this.x,this.y)}}])&&function(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}(e.prototype,t),e}(),T=function(){function e(e){this.hasSize_=!1,this.hasView_=!1,this.transform_=new x(e||512);}var t=e.prototype;return t.setView=function(e,t,o){this.transform_.center=O.convert(e),this.transform_.zoom=+t,this.transform_.bearing=+o,this.hasView_=!0;},t.setViewSize=function(e,t){this.transform_.width=e,this.transform_.height=t,this.hasSize_=!0;},t.setMapCanvasProjection=function(e,t){this.maps_=e,this.mapCanvasProjection_=t;},t.canProject=function(){return this.hasSize_&&this.hasView_},t.hasSize=function(){return this.hasSize_},t.fromLatLngToCenterPixel=function(e){return this.transform_.locationPoint(O.convert(e))},t.fromLatLngToDivPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToDivPixel(t)}return this.fromLatLngToCenterPixel(e)},t.fromLatLngToContainerPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToContainerPixel(t)}var o=this.fromLatLngToCenterPixel(e);return o.x-=this.transform_.worldSize*Math.round(o.x/this.transform_.worldSize),o.x+=this.transform_.width/2,o.y+=this.transform_.height/2,o},t.fromContainerPixelToLatLng=function(e){if(this.mapCanvasProjection_){var t=this.mapCanvasProjection_.fromContainerPixelToLatLng(e);return {lat:t.lat(),lng:t.lng()}}var o=a({},e);o.x-=this.transform_.width/2,o.y-=this.transform_.height/2;var n=this.transform_.pointLocation(pointGeometry.convert(o));return n.lng-=360*Math.round(n.lng/360),n},t.getWidth=function(){return this.transform_.width},t.getHeight=function(){return this.transform_.height},t.getZoom=function(){return this.transform_.zoom},t.getCenter=function(){return this.transform_.pointLocation({x:0,y:0})},t.getBounds=function(e,t){var o=e&&e[0]||0,n=e&&e[1]||0,r=e&&e[2]||0,i=e&&e[3]||0;if(this.getWidth()-n-i>0&&this.getHeight()-o-r>0){var a=this.transform_.pointLocation(pointGeometry.convert({x:i-this.getWidth()/2,y:o-this.getHeight()/2})),p=this.transform_.pointLocation(pointGeometry.convert({x:this.getWidth()/2-n,y:this.getHeight()/2-r})),l=[a.lat,a.lng,p.lat,p.lng,p.lat,a.lng,a.lat,p.lng];return t&&(l=l.map(function(e){return Math.round(e*t)/t})),l}return [0,0,0,0]},e}();function S(e){if(window.requestAnimationFrame)return window.requestAnimationFrame(e);var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?t(e):window.setTimeout(e,1e3/60)}var E=Math.log2?Math.log2:function(e){return Math.log(e)/Math.LN2};function P(e,t){return Object.keys(e).reduce(function(o,n){return t(e[n])&&(o[n]=e[n]),o},{})}var A=function(e){if(null!==e&&"object"==typeof e){if(0===Object.keys(e).length)return !0}else if(null==e||""===e)return !0;return !1},I=Object.prototype.toString;function N(e){return "number"==typeof e||function(e){return !!e&&"object"==typeof e}(e)&&"[object Number]"===I.call(e)}var Z=null;function j(){if(Z)return Z;if("undefined"!=typeof navigator){var e=navigator.userAgent.indexOf("MSIE")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,o=navigator.userAgent.toLowerCase().indexOf("op")>-1,n=navigator.userAgent.indexOf("Chrome")>-1,r=navigator.userAgent.indexOf("Safari")>-1;return n&&r&&(r=!1),n&&o&&(n=!1),Z={isExplorer:e,isFirefox:t,isOpera:o,isChrome:n,isSafari:r}}return Z={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}var U=function(e){return Function.prototype.toString.call(e)};function H(e){if(!e||"object"!=typeof e)return !1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return !0;var o=t.constructor;return "function"==typeof o&&o instanceof o&&U(o)===U(Object)}function K(e,t,o,n){e.addEventListener(t,o,function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0;}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t);}catch(t){e=!1;}return e}()?{capture:n,passive:!0}:n);}var R,G=!("undefined"==typeof window||!window.document||!window.document.createElement);R=G?window:"undefined"!=typeof self?self:void 0;var B,W="undefined"!=typeof document&&document.attachEvent,V=!1;if(G&&!W){var F=function(){var e=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame||function(e){return R.setTimeout(e,20)};return function(t){return e(t)}}(),$=(B=R.cancelAnimationFrame||R.mozCancelAnimationFrame||R.webkitCancelAnimationFrame||R.clearTimeout,function(e){return B(e)}),q=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight;},Y=function(e){var t=this;q(this),this.__resizeRAF__&&$(this.__resizeRAF__),this.__resizeRAF__=F(function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e);}));});},X=!1,J="",Q="animationstart",ee="Webkit Moz O ms".split(" "),te="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");if(G){var oe=document.createElement("fakeelement");if(void 0!==oe.style.animationName&&(X=!0),!1===X)for(var ne=0;ne<ee.length;ne++)if(void 0!==oe.style[ee[ne]+"AnimationName"]){J="-"+ee[ne].toLowerCase()+"-",Q=te[ne],X=!0;break}}var re="resizeanim",ie="@"+J+"keyframes "+re+" { from { opacity: 0; } to { opacity: 0; } } ",se=J+"animation: 1ms "+re+"; ";}var ae=void 0!==n__default["default"].createPortal,pe=ae?n__default["default"].createPortal:n__default["default"].unstable_renderSubtreeIntoContainer,le=function(e){return H(e)?e:{lat:e[0],lng:e[1]}},ue=function(e,t){return "production"!==process.env.NODE_ENV&&e<t&&console.warn("GoogleMap: minZoom option is less than recommended minZoom option for your map sizes.\noverrided to value "+t),t<e?e:t},he=function(t){function o(o){var r;if((r=t.call(this,o)||this)._getMinZoom=function(){if(r.geoService_.getWidth()>0||r.geoService_.getHeight()>0){var e=Math.ceil(r.geoService_.getWidth()/256)+2,t=Math.ceil(r.geoService_.getHeight()/256)+2,o=Math.max(e,t);return Math.ceil(E(o))}return 3},r._computeMinZoom=function(e){return A(e)?r._getMinZoom():e},r._mapDomResizeCallback=function(){if(r.resetSizeOnIdle_=!0,r.maps_){var e=r.props.center||r.props.defaultCenter,t=r.map_.getCenter();r.maps_.event.trigger(r.map_,"resize"),r.map_.setCenter(r.props.resetBoundsOnResize?e:t);}},r._setLayers=function(e){e.forEach(function(e){r.layers_[e]=new r.maps_[e],r.layers_[e].setMap(r.map_);});},r._renderPortal=function(){return React__default["default"].createElement(M,{experimental:r.props.experimental,onChildClick:r._onChildClick,onChildMouseDown:r._onChildMouseDown,onChildMouseEnter:r._onChildMouseEnter,onChildMouseLeave:r._onChildMouseLeave,geoService:r.geoService_,insideMapPanes:!0,distanceToMouse:r.props.distanceToMouse,getHoverDistance:r._getHoverDistance,dispatcher:r.markersDispatcher_})},r._initMap=function(){if(!r.initialized_){r.initialized_=!0;var e=le(r.props.center||r.props.defaultCenter);r.geoService_.setView(e,r.props.zoom||r.props.defaultZoom,0),r._onBoundsChanged();var t=a({},r.props.apiKey&&{key:r.props.apiKey},r.props.bootstrapURLKeys);r.props.googleMapLoader(t,r.props.heatmapLibrary).then(function(e){if(r.mounted_){var t,o,i=r.geoService_.getCenter(),s={zoom:r.props.zoom||r.props.defaultZoom,center:new e.LatLng(i.lat,i.lng)};r.props.heatmap.positions&&(Object.assign(l(r),{heatmap:(t=e,o=r.props.heatmap,new t.visualization.HeatmapLayer({data:o.positions.reduce(function(e,o){var n=o.weight,r=void 0===n?1:n;return e.push({location:new t.LatLng(o.lat,o.lng),weight:r}),e},[])}))}),function(e,t){var o=t.options,n=void 0===o?{}:o;Object.keys(n).map(function(t){return e.set(t,n[t])});}(r.heatmap,r.props.heatmap));var p=P(e,H),u="function"==typeof r.props.options?r.props.options(p):r.props.options,h=!A(r.props.draggable)&&{draggable:r.props.draggable},c=r._computeMinZoom(u.minZoom);r.minZoom_=c;var d=a({},{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3},{minZoom:c},u,s);r.defaultDraggableOption_=A(d.draggable)?r.defaultDraggableOption_:d.draggable;var m=a({},d,h);m.minZoom=ue(m.minZoom,c);var g=new e.Map(n__default["default"].findDOMNode(r.googleMapDom_),m);r.map_=g,r.maps_=e,r._setLayers(r.props.layerTypes);var _=e.version.match(/^3\.(\d+)\./),f=_&&Number(_[1]),v=l(r),M=Object.assign(new e.OverlayView,{onAdd:function(){var t="undefined"!=typeof screen?screen.width+"px":"2000px",o="undefined"!=typeof screen?screen.height+"px":"2000px",n=document.createElement("div");if(n.style.backgroundColor="transparent",n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.width=t,n.style.height=o,v.props.overlayViewDivStyle){var r=v.props.overlayViewDivStyle;"object"==typeof r&&Object.keys(r).forEach(function(e){n.style[e]=r[e];});}this.getPanes().overlayMouseTarget.appendChild(n),v.geoService_.setMapCanvasProjection(e,M.getProjection()),ae?v.setState({overlay:n}):pe(v,v._renderPortal(),n,function(){return v.setState({overlay:n})});},onRemove:function(){var e=v.state.overlay;e&&!ae&&n__default["default"].unmountComponentAtNode(e),v.setState({overlay:null});},draw:function(){if(v.updateCounter_++,v._onBoundsChanged(g,e,!v.props.debounced),v.googleApiLoadedCalled_||(v._onGoogleApiLoaded({map:g,maps:e,ref:v.googleMapDom_}),v.googleApiLoadedCalled_=!0),v.mouse_){var t=v.geoService_.fromContainerPixelToLatLng(v.mouse_);v.mouse_.lat=t.lat,v.mouse_.lng=t.lng;}v._onChildMouseMove(),v.markersDispatcher_&&(v.markersDispatcher_.emit("kON_CHANGE"),v.fireMouseEventOnIdle_&&v.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"));}});r.overlay_=M,M.setMap(g),r.props.heatmap.positions&&r.heatmap.setMap(g),r.props.onTilesLoaded&&e.event.addListener(g,"tilesloaded",function(){v._onTilesLoaded();}),e.event.addListener(g,"zoom_changed",function(){v.geoService_.getZoom()!==g.getZoom()&&(v.zoomAnimationInProgress_||(v.zoomAnimationInProgress_=!0,v._onZoomAnimationStart(g.zoom)),f<32)&&((new Date).getTime()-r.zoomControlClickTime_<300?S(function(){return S(function(){v.updateCounter_++,v._onBoundsChanged(g,e);})}):(v.updateCounter_++,v._onBoundsChanged(g,e)));}),e.event.addListener(g,"idle",function(){if(r.resetSizeOnIdle_){r._setViewSize();var t=r._computeMinZoom(u.minZoom);t!==r.minZoom_&&(r.minZoom_=t,g.setOptions({minZoom:t})),r.resetSizeOnIdle_=!1;}v.zoomAnimationInProgress_&&(v.zoomAnimationInProgress_=!1,v._onZoomAnimationEnd(g.zoom)),v.updateCounter_++,v._onBoundsChanged(g,e),v.dragTime_=0,v.markersDispatcher_&&v.markersDispatcher_.emit("kON_CHANGE");}),e.event.addListener(g,"mouseover",function(){v.mouseInMap_=!0;}),e.event.addListener(g,"click",function(){v.mouseInMap_=!0;}),e.event.addListener(g,"mouseout",function(){v.mouseInMap_=!1,v.mouse_=null,v.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE");}),e.event.addListener(g,"drag",function(){v.dragTime_=(new Date).getTime(),v._onDrag(g);}),e.event.addListener(g,"dragend",function(){var t=e.event.addListener(g,"idle",function(){e.event.removeListener(t),v._onDragEnd(g);});}),e.event.addListener(g,"maptypeid_changed",function(){v._onMapTypeIdChange(g.getMapTypeId());});}}).catch(function(e){throw r._onGoogleApiLoaded({map:null,maps:null,ref:r.googleMapDom_}),console.error(e),e});}},r._onGoogleApiLoaded=function(){var e;r.props.onGoogleApiLoaded&&("production"!==process.env.NODE_ENV&&!0!==r.props.yesIWantToUseGoogleMapApiInternals&&console.warn("GoogleMap: Usage of internal api objects is dangerous and can cause a lot of issues.\nTo hide this warning add yesIWantToUseGoogleMapApiInternals={true} to <GoogleMap instance"),(e=r.props).onGoogleApiLoaded.apply(e,arguments));},r._getHoverDistance=function(){return r.props.hoverDistance},r._onDrag=function(){var e;return r.props.onDrag&&(e=r.props).onDrag.apply(e,arguments)},r._onDragEnd=function(){var e;return r.props.onDragEnd&&(e=r.props).onDragEnd.apply(e,arguments)},r._onMapTypeIdChange=function(){var e;return r.props.onMapTypeIdChange&&(e=r.props).onMapTypeIdChange.apply(e,arguments)},r._onZoomAnimationStart=function(){var e;return r.props.onZoomAnimationStart&&(e=r.props).onZoomAnimationStart.apply(e,arguments)},r._onZoomAnimationEnd=function(){var e;return r.props.onZoomAnimationEnd&&(e=r.props).onZoomAnimationEnd.apply(e,arguments)},r._onTilesLoaded=function(){return r.props.onTilesLoaded&&r.props.onTilesLoaded()},r._onChildClick=function(){var e;if(r.props.onChildClick)return (e=r.props).onChildClick.apply(e,arguments)},r._onChildMouseDown=function(e,t){r.childMouseDownArgs_=[e,t],r.props.onChildMouseDown&&r.props.onChildMouseDown(e,t,a({},r.mouse_));},r._onChildMouseUp=function(){var e;r.childMouseDownArgs_&&(r.props.onChildMouseUp&&(e=r.props).onChildMouseUp.apply(e,r.childMouseDownArgs_.concat([a({},r.mouse_)])),r.childMouseDownArgs_=null,r.childMouseUpTime_=(new Date).getTime());},r._onChildMouseMove=function(){var e;r.childMouseDownArgs_&&r.props.onChildMouseMove&&(e=r.props).onChildMouseMove.apply(e,r.childMouseDownArgs_.concat([a({},r.mouse_)]));},r._onChildMouseEnter=function(){var e;if(r.props.onChildMouseEnter)return (e=r.props).onChildMouseEnter.apply(e,arguments)},r._onChildMouseLeave=function(){var e;if(r.props.onChildMouseLeave)return (e=r.props).onChildMouseLeave.apply(e,arguments)},r._setViewSize=function(){if(r.mounted_){if(document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)r.geoService_.setViewSize(window.innerWidth,window.innerHeight);else {var e=n__default["default"].findDOMNode(r.googleMapDom_);r.geoService_.setViewSize(e.clientWidth,e.clientHeight);}r._onBoundsChanged();}},r._onWindowResize=function(){r.resetSizeOnIdle_=!0;},r._onMapMouseMove=function(e){if(r.mouseInMap_){var t=(new Date).getTime();t-r.mouseMoveTime_>50&&(r.boundingRect_=e.currentTarget.getBoundingClientRect()),r.mouseMoveTime_=t;var o=e.clientX-r.boundingRect_.left,n=e.clientY-r.boundingRect_.top;r.mouse_||(r.mouse_={x:0,y:0,lat:0,lng:0}),r.mouse_.x=o,r.mouse_.y=n;var i=r.geoService_.fromContainerPixelToLatLng(r.mouse_);r.mouse_.lat=i.lat,r.mouse_.lng=i.lng,r._onChildMouseMove(),t-r.dragTime_<100?r.fireMouseEventOnIdle_=!0:(r.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"),r.fireMouseEventOnIdle_=!1);}},r._onClick=function(){var e;return r.props.onClick&&!r.childMouseDownArgs_&&(new Date).getTime()-r.childMouseUpTime_>300&&0===r.dragTime_&&(e=r.props).onClick.apply(e,arguments)},r._onMapClick=function(e){r.markersDispatcher_&&(r._onMapMouseMove(e),(new Date).getTime()-r.dragTime_>100&&(r.mouse_&&r._onClick(a({},r.mouse_,{event:e})),r.markersDispatcher_.emit("kON_CLICK",e)));},r._onMapMouseDownNative=function(e){r.mouseInMap_&&r._onMapMouseDown(e);},r._onMapMouseDown=function(e){r.markersDispatcher_&&(new Date).getTime()-r.dragTime_>100&&(r._onMapMouseMove(e),r.markersDispatcher_.emit("kON_MDOWN",e));},r._onMapMouseDownCapture=function(){j().isChrome&&(r.zoomControlClickTime_=(new Date).getTime());},r._onKeyDownCapture=function(){j().isChrome&&(r.zoomControlClickTime_=(new Date).getTime());},r._isCenterDefined=function(e){return e&&(H(e)&&N(e.lat)&&N(e.lng)||2===e.length&&N(e[0])&&N(e[1]))},r._onBoundsChanged=function(e,t,o){if(e){var n=e.getCenter();r.geoService_.setView([n.lat(),n.lng()],e.getZoom(),0);}if((r.props.onChange||r.props.onBoundsChange)&&r.geoService_.canProject()){var i=r.geoService_.getZoom(),s=r.geoService_.getBounds(),p=r.geoService_.getCenter();if(!function(e,t,o){if(e&&t){for(var n=0;n!==e.length;++n)if(Math.abs(e[n]-t[n])>1e-5)return !1;return !0}return !1}(s,r.prevBounds_)&&!1!==o){var l=r.geoService_.getBounds(r.props.margin);r.props.onBoundsChange&&r.props.onBoundsChange(r.centerIsObject_?a({},p):[p.lat,p.lng],i,s,l),r.props.onChange&&r.props.onChange({center:a({},p),zoom:i,bounds:{nw:{lat:s[0],lng:s[1]},se:{lat:s[2],lng:s[3]},sw:{lat:s[4],lng:s[5]},ne:{lat:s[6],lng:s[7]}},marginBounds:{nw:{lat:l[0],lng:l[1]},se:{lat:l[2],lng:l[3]},sw:{lat:l[4],lng:l[5]},ne:{lat:l[6],lng:l[7]}},size:r.geoService_.hasSize()?{width:r.geoService_.getWidth(),height:r.geoService_.getHeight()}:{width:0,height:0}}),r.prevBounds_=s;}}},r._registerChild=function(e){r.googleMapDom_=e;},r.mounted_=!1,r.initialized_=!1,r.googleApiLoadedCalled_=!1,r.map_=null,r.maps_=null,r.prevBounds_=null,r.heatmap=null,r.layers_={},r.mouse_=null,r.mouseMoveTime_=0,r.boundingRect_=null,r.mouseInMap_=!0,r.dragTime_=0,r.fireMouseEventOnIdle_=!1,r.updateCounter_=0,r.markersDispatcher_=new c(l(r)),r.geoService_=new T(256),r.centerIsObject_=H(r.props.center),r.minZoom_=3,r.defaultDraggableOption_=!0,r.zoomControlClickTime_=0,r.childMouseDownArgs_=null,r.childMouseUpTime_=0,r.googleMapDom_=null,"production"!==process.env.NODE_ENV&&(r.props.apiKey&&console.warn("GoogleMap: apiKey is deprecated, use bootstrapURLKeys={{key: YOUR_API_KEY}} instead."),r.props.onBoundsChange&&console.warn("GoogleMap: onBoundsChange is deprecated, use onChange({center, zoom, bounds, ...other}) instead."),A(r.props.center)&&A(r.props.defaultCenter)&&console.warn("GoogleMap: center or defaultCenter property must be defined"),A(r.props.zoom)&&A(r.props.defaultZoom)&&console.warn("GoogleMap: zoom or defaultZoom property must be defined")),r._isCenterDefined(r.props.center||r.props.defaultCenter)){var i=le(r.props.center||r.props.defaultCenter);r.geoService_.setView(i,r.props.zoom||r.props.defaultZoom,0);}return r.zoomAnimationInProgress_=!1,r.state={overlay:null},r}p(o,t);var r=o.prototype;return r.componentDidMount=function(){var e=this;this.mounted_=!0,K(window,"resize",this._onWindowResize,!1),K(window,"keydown",this._onKeyDownCapture,!0);var t=n__default["default"].findDOMNode(this.googleMapDom_);t&&K(t,"mousedown",this._onMapMouseDownNative,!0),K(window,"mouseup",this._onChildMouseUp,!1);var o=a({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(o,this.props.heatmapLibrary),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap();},0,this),this.props.resetBoundsOnResize&&function(e,t){if(void 0===e.parentNode){var o=document.createElement("div");e.parentNode=o;}e=e.parentNode,W?e.attachEvent("onresize",t):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),function(){if(!V){var e=(ie||"")+".resize-triggers { "+(se||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),t.appendChild(o),V=!0;}}(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),q(e),K(e,"scroll",Y,!0),Q&&e.__resizeTriggers__.addEventListener(Q,function(t){t.animationName==re&&q(e);})),e.__resizeListeners__.push(t));}(t,this._mapDomResizeCallback);},r.shouldComponentUpdate=function(e,t){return !_(d(this.props,["draggable"]),d(e,["draggable"]))||!_(this.state,t)},r.componentDidUpdate=function(e){var t=this;if("production"!==process.env.NODE_ENV&&(_(e.defaultCenter,this.props.defaultCenter)||console.warn("GoogleMap: defaultCenter prop changed. You can't change default props."),_(e.defaultZoom,this.props.defaultZoom)||console.warn("GoogleMap: defaultZoom prop changed. You can't change default props.")),!this._isCenterDefined(e.center)&&this._isCenterDefined(this.props.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var o=this.geoService_.getCenter();if(this._isCenterDefined(this.props.center)){var n=le(this.props.center),r=this._isCenterDefined(e.center)?le(e.center):null;(!r||Math.abs(n.lat-r.lat)+Math.abs(n.lng-r.lng)>1e-5)&&Math.abs(n.lat-o.lat)+Math.abs(n.lng-o.lng)>1e-5&&this.map_.panTo({lat:n.lat,lng:n.lng});}if(A(this.props.zoom)||Math.abs(this.props.zoom-e.zoom)>0&&this.map_.setZoom(this.props.zoom),!A(e.draggable)&&A(this.props.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):_(e.draggable,this.props.draggable)||this.map_.setOptions({draggable:this.props.draggable}),!A(this.props.options)&&!_(e.options,this.props.options)){var i=P(this.maps_,H),s="function"==typeof this.props.options?this.props.options(i):this.props.options;if("minZoom"in(s=d(s,["zoom","center","draggable"]))){var a=this._computeMinZoom(s.minZoom);s.minZoom=ue(s.minZoom,a);}this.map_.setOptions(s);}_(this.props.layerTypes,e.layerTypes)||(Object.keys(this.layers_).forEach(function(e){t.layers_[e].setMap(null),delete t.layers_[e];}),this._setLayers(this.props.layerTypes)),this.heatmap&&!_(this.props.heatmap.positions,e.heatmap.positions)&&this.heatmap.setData(this.props.heatmap.positions.map(function(e){return {location:new t.maps_.LatLng(e.lat,e.lng),weight:e.weight}})),this.heatmap&&!_(this.props.heatmap.options,e.heatmap.options)&&Object.keys(this.props.heatmap.options).forEach(function(e){t.heatmap.set(e,t.props.heatmap.options[e]);});}this.markersDispatcher_.emit("kON_CHANGE"),_(this.props.hoverDistance,e.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE");},r.componentWillUnmount=function(){this.mounted_=!1;var e,t,o=n__default["default"].findDOMNode(this.googleMapDom_);o&&o.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&(t=this._mapDomResizeCallback,e=(e=o).parentNode,W?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",Y),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_);},r.render=function(){var t=this.state.overlay,o=t?null:React__default["default"].createElement(C,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return React__default["default"].createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},React__default["default"].createElement(h,{registerChild:this._registerChild}),ae&&t&&pe(this._renderPortal(),t),o)},o}(React.Component);he.propTypes={apiKey:PropTypes.string,bootstrapURLKeys:PropTypes.any,defaultCenter:PropTypes.oneOfType([PropTypes.array,PropTypes.shape({lat:PropTypes.number,lng:PropTypes.number})]),center:PropTypes.oneOfType([PropTypes.array,PropTypes.shape({lat:PropTypes.number,lng:PropTypes.number})]),defaultZoom:PropTypes.number,zoom:PropTypes.number,onBoundsChange:PropTypes.func,onChange:PropTypes.func,onClick:PropTypes.func,onChildClick:PropTypes.func,onChildMouseDown:PropTypes.func,onChildMouseUp:PropTypes.func,onChildMouseMove:PropTypes.func,onChildMouseEnter:PropTypes.func,onChildMouseLeave:PropTypes.func,onZoomAnimationStart:PropTypes.func,onZoomAnimationEnd:PropTypes.func,onDrag:PropTypes.func,onDragEnd:PropTypes.func,onMapTypeIdChange:PropTypes.func,onTilesLoaded:PropTypes.func,options:PropTypes.any,distanceToMouse:PropTypes.func,hoverDistance:PropTypes.number,debounced:PropTypes.bool,margin:PropTypes.array,googleMapLoader:PropTypes.any,onGoogleApiLoaded:PropTypes.func,yesIWantToUseGoogleMapApiInternals:PropTypes.bool,draggable:PropTypes.bool,style:PropTypes.any,resetBoundsOnResize:PropTypes.bool,layerTypes:PropTypes.arrayOf(PropTypes.string),shouldUnregisterMapOnUnmount:PropTypes.bool},he.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:function(){return {overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3}},googleMapLoader:z,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},he.googleMapLoader=z;
11787
+ function a(){return (a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);}return e}).apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t;}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},h=function(t){function o(){return t.apply(this,arguments)||this}p(o,t);var n=o.prototype;return n.shouldComponentUpdate=function(){return !1},n.render=function(){return React__default["default"].createElement("div",{ref:this.props.registerChild,style:u})},o}(React.Component),c=function(e){function t(t){var o;return (o=e.call(this)||this).gmapInstance=t,o}p(t,e);var o=t.prototype;return o.getChildren=function(){return this.gmapInstance.props.children},o.getMousePosition=function(){return this.gmapInstance.mouse_},o.getUpdateCounter=function(){return this.gmapInstance.updateCounter_},o.dispose=function(){this.gmapInstance=null,this.removeAllListeners();},t}(r),d=function(e,t){for(var o=a({},e),n=0;n<t.length;n++){var r=t[n];r in o&&delete o[r];}return o},m=Object.prototype.hasOwnProperty;function g(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(g(e,t))return !0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return !1;var o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return !1;for(var r=0;r<o.length;r++)if(!m.call(t,o[r])||!g(e[o[r]],t[o[r]]))return !1;return !0}var f={width:"100%",height:"100%",left:0,top:0,margin:0,padding:0,position:"absolute"},v={width:0,height:0,left:0,top:0,backgroundColor:"transparent",position:"absolute"},M=function(t){function o(o){var n;return (n=t.call(this,o)||this)._getState=function(){return {children:n.props.dispatcher.getChildren(),updateCounter:n.props.dispatcher.getUpdateCounter()}},n._onChangeHandler=function(){if(n.dimensionsCache_){var e=(n.state.children||[]).length,t=n._getState();n.setState(t,function(){return (t.children||[]).length!==e&&n._onMouseChangeHandler()});}},n._onChildClick=function(){n.props.onChildClick&&n.hoverChildProps_&&n.props.onChildClick(n.hoverKey_,n.hoverChildProps_);},n._onChildMouseDown=function(){n.props.onChildMouseDown&&n.hoverChildProps_&&n.props.onChildMouseDown(n.hoverKey_,n.hoverChildProps_);},n._onChildMouseEnter=function(e,t){n.dimensionsCache_&&(n.props.onChildMouseEnter&&n.props.onChildMouseEnter(e,t),n.hoverChildProps_=t,n.hoverKey_=e,n.setState({hoverKey:e}));},n._onChildMouseLeave=function(){if(n.dimensionsCache_){var e=n.hoverKey_;null!=e&&(n.props.onChildMouseLeave&&n.props.onChildMouseLeave(e,n.hoverChildProps_),n.hoverKey_=null,n.hoverChildProps_=null,n.setState({hoverKey:null}));}},n._onMouseAllow=function(e){e||n._onChildMouseLeave(),n.allowMouse_=e;},n._onMouseChangeHandler=function(){n.allowMouse_&&n._onMouseChangeHandlerRaf();},n._onMouseChangeHandlerRaf=function(){if(n.dimensionsCache_){var t=n.props.dispatcher.getMousePosition();if(t){var o=[],r=n.props.getHoverDistance();if(React__default["default"].Children.forEach(n.state.children,function(e,i){if(e&&(void 0!==e.props.latLng||void 0!==e.props.lat||void 0!==e.props.lng)){var s=null!=e.key?e.key:i,a=n.props.distanceToMouse(n.dimensionsCache_[s],t,e.props);a<r&&o.push({key:s,dist:a,props:e.props});}}),o.length){o.sort(function(e,t){return e.dist-t.dist});var i=o[0].key,s=o[0].props;n.hoverKey_!==i&&(n._onChildMouseLeave(),n._onChildMouseEnter(i,s));}else n._onChildMouseLeave();}else n._onChildMouseLeave();}},n._getDimensions=function(e){return n.dimensionsCache_[e]},n.dimensionsCache_={},n.hoverKey_=null,n.hoverChildProps_=null,n.allowMouse_=!0,n.state=a({},n._getState(),{hoverKey:null}),n}p(o,t);var n=o.prototype;return n.componentDidMount=function(){this.props.dispatcher.on("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.on("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.on("kON_CLICK",this._onChildClick),this.props.dispatcher.on("kON_MDOWN",this._onChildMouseDown);},n.shouldComponentUpdate=function(e,t){return !0===this.props.experimental?!_(this.props,e)||!_(d(this.state,["hoverKey"]),d(t,["hoverKey"])):!_(this.props,e)||!_(this.state,t)},n.componentWillUnmount=function(){this.props.dispatcher.removeListener("kON_CHANGE",this._onChangeHandler),this.props.dispatcher.removeListener("kON_MOUSE_POSITION_CHANGE",this._onMouseChangeHandler),this.props.dispatcher.removeListener("kON_CLICK",this._onChildClick),this.props.dispatcher.removeListener("kON_MDOWN",this._onChildMouseDown),this.dimensionsCache_=null;},n.render=function(){var t=this,o=this.props.style||f;this.dimensionsCache_={};var n=React__default["default"].Children.map(this.state.children,function(o,n){if(o){if(void 0===o.props.latLng&&void 0===o.props.lat&&void 0===o.props.lng)return React__default["default"].cloneElement(o,{$geoService:t.props.geoService,$onMouseAllow:t._onMouseAllow,$prerender:t.props.prerender});var r=void 0!==o.props.latLng?o.props.latLng:{lat:o.props.lat,lng:o.props.lng},i=t.props.insideMapPanes?t.props.geoService.fromLatLngToDivPixel(r):t.props.geoService.fromLatLngToCenterPixel(r),s={left:i.x,top:i.y};if(void 0!==o.props.seLatLng||void 0!==o.props.seLat&&void 0!==o.props.seLng){var p=void 0!==o.props.seLatLng?o.props.seLatLng:{lat:o.props.seLat,lng:o.props.seLng},l=t.props.insideMapPanes?t.props.geoService.fromLatLngToDivPixel(p):t.props.geoService.fromLatLngToCenterPixel(p);s.width=l.x-i.x,s.height=l.y-i.y;}var u=t.props.geoService.fromLatLngToContainerPixel(r),h=null!=o.key?o.key:n;return t.dimensionsCache_[h]=a({x:u.x,y:u.y},r),React__default["default"].createElement("div",{key:h,style:a({},v,s),className:o.props.$markerHolderClassName},React__default["default"].cloneElement(o,{$hover:h===t.state.hoverKey,$getDimensions:t._getDimensions,$dimensionKey:h,$geoService:t.props.geoService,$onMouseAllow:t._onMouseAllow,$prerender:t.props.prerender}))}});return React__default["default"].createElement("div",{style:o},n)},o}(React.Component);M.propTypes={geoService:PropTypes$1.any,style:PropTypes$1.any,distanceToMouse:PropTypes$1.func,dispatcher:PropTypes$1.any,onChildClick:PropTypes$1.func,onChildMouseDown:PropTypes$1.func,onChildMouseLeave:PropTypes$1.func,onChildMouseEnter:PropTypes$1.func,getHoverDistance:PropTypes$1.func,insideMapPanes:PropTypes$1.bool,prerender:PropTypes$1.bool},M.defaultProps={insideMapPanes:!1,prerender:!1};var y={width:"50%",height:"50%",left:"50%",top:"50%",margin:0,padding:0,position:"absolute"};function C(t){return React__default["default"].createElement("div",{style:y},React__default["default"].createElement(M,a({},t,{prerender:!0})))}var w,L,b,D=new Promise(function(e){b=e;}),z=function(e,t){if(!e)return D;if(L)return L;e.libraries||(e.libraries=[]);var o=[].concat(e.libraries);if(t&&(0!==o.length&&o.includes("visualization")||o.push("visualization"),console.warn("heatmapLibrary will be deprecated in the future. Please use { libraries: ['visualization'] } in bootstrapURLKeys property instead")),"production"!==process.env.NODE_ENV&&Object.keys(e).indexOf("callback")>-1){var n='"callback" key in bootstrapURLKeys is not allowed,\n use onGoogleApiLoaded property instead';throw console.error(n),new Error(n)}if("undefined"==typeof window)throw new Error("google map cannot be loaded outside browser env");var r=e.key,s=function(e,t){if(null==e)return {};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(o=i[n])>=0||(r[o]=e[o]);return r}(e,["key"]);return w||(w=new Loader(a({apiKey:r||""},s,{libraries:o}))),L=w.load().then(function(){return b(window.google.maps),window.google.maps}),b(L),L};function k(e,t,o){var n=o-t;return e===o?e:((e-t)%n+n)%n+t}var O=function(){function e(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LatLng object: ("+e+", "+t+")");this.lat=+e,this.lng=+t;}return e.prototype.wrap=function(){return new e(this.lat,k(this.lng,-180,180))},e}();O.convert=function(e){return e instanceof O?e:Array.isArray(e)?new O(e[0],e[1]):"lng"in e&&"lat"in e?new O(e.lat,e.lng):e};var x=function(){function e(e,t,o){this.tileSize=e||512,this._minZoom=t||0,this._maxZoom=o||52,this.latRange=[-85.05113,85.05113],this.width=0,this.height=0,this.zoom=0,this.center=new O(0,0),this.angle=0;}var t,o=e.prototype;return o.zoomScale=function(e){return Math.pow(2,e)},o.scaleZoom=function(e){return Math.log(e)/Math.LN2},o.project=function(e,t){return new pointGeometry(this.lngX(e.lng,t),this.latY(e.lat,t))},o.unproject=function(e,t){return new O(this.yLat(e.y,t),this.xLng(e.x,t))},o.lngX=function(e,t){return (180+e)*(t||this.worldSize)/360},o.latY=function(e,t){return (180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))*(t||this.worldSize)/360},o.xLng=function(e,t){return 360*e/(t||this.worldSize)-180},o.yLat=function(e,t){return 360/Math.PI*Math.atan(Math.exp((180-360*e/(t||this.worldSize))*Math.PI/180))-90},o.locationPoint=function(e){var t=this.project(e);return this.centerPoint._sub(this.point._sub(t)._rotate(this.angle))},o.pointLocation=function(e){var t=this.centerPoint._sub(e)._rotate(-this.angle);return this.unproject(this.point.sub(t))},(t=[{key:"minZoom",get:function(){return this._minZoom},set:function(e){this._minZoom=e,this.zoom=Math.max(this.zoom,e);}},{key:"maxZoom",get:function(){return this._maxZoom},set:function(e){this._maxZoom=e,this.zoom=Math.min(this.zoom,e);}},{key:"worldSize",get:function(){return this.tileSize*this.scale}},{key:"centerPoint",get:function(){return new pointGeometry(0,0)}},{key:"size",get:function(){return new pointGeometry(this.width,this.height)}},{key:"bearing",get:function(){return -this.angle/Math.PI*180},set:function(e){this.angle=-k(e,-180,180)*Math.PI/180;}},{key:"zoom",get:function(){return this._zoom},set:function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom;}},{key:"x",get:function(){return this.lngX(this.center.lng)}},{key:"y",get:function(){return this.latY(this.center.lat)}},{key:"point",get:function(){return new pointGeometry(this.x,this.y)}}])&&function(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}(e.prototype,t),e}(),T=function(){function e(e){this.hasSize_=!1,this.hasView_=!1,this.transform_=new x(e||512);}var t=e.prototype;return t.setView=function(e,t,o){this.transform_.center=O.convert(e),this.transform_.zoom=+t,this.transform_.bearing=+o,this.hasView_=!0;},t.setViewSize=function(e,t){this.transform_.width=e,this.transform_.height=t,this.hasSize_=!0;},t.setMapCanvasProjection=function(e,t){this.maps_=e,this.mapCanvasProjection_=t;},t.canProject=function(){return this.hasSize_&&this.hasView_},t.hasSize=function(){return this.hasSize_},t.fromLatLngToCenterPixel=function(e){return this.transform_.locationPoint(O.convert(e))},t.fromLatLngToDivPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToDivPixel(t)}return this.fromLatLngToCenterPixel(e)},t.fromLatLngToContainerPixel=function(e){if(this.mapCanvasProjection_){var t=new this.maps_.LatLng(e.lat,e.lng);return this.mapCanvasProjection_.fromLatLngToContainerPixel(t)}var o=this.fromLatLngToCenterPixel(e);return o.x-=this.transform_.worldSize*Math.round(o.x/this.transform_.worldSize),o.x+=this.transform_.width/2,o.y+=this.transform_.height/2,o},t.fromContainerPixelToLatLng=function(e){if(this.mapCanvasProjection_){var t=this.mapCanvasProjection_.fromContainerPixelToLatLng(e);return {lat:t.lat(),lng:t.lng()}}var o=a({},e);o.x-=this.transform_.width/2,o.y-=this.transform_.height/2;var n=this.transform_.pointLocation(pointGeometry.convert(o));return n.lng-=360*Math.round(n.lng/360),n},t.getWidth=function(){return this.transform_.width},t.getHeight=function(){return this.transform_.height},t.getZoom=function(){return this.transform_.zoom},t.getCenter=function(){return this.transform_.pointLocation({x:0,y:0})},t.getBounds=function(e,t){var o=e&&e[0]||0,n=e&&e[1]||0,r=e&&e[2]||0,i=e&&e[3]||0;if(this.getWidth()-n-i>0&&this.getHeight()-o-r>0){var a=this.transform_.pointLocation(pointGeometry.convert({x:i-this.getWidth()/2,y:o-this.getHeight()/2})),p=this.transform_.pointLocation(pointGeometry.convert({x:this.getWidth()/2-n,y:this.getHeight()/2-r})),l=[a.lat,a.lng,p.lat,p.lng,p.lat,a.lng,a.lat,p.lng];return t&&(l=l.map(function(e){return Math.round(e*t)/t})),l}return [0,0,0,0]},e}();function S(e){if(window.requestAnimationFrame)return window.requestAnimationFrame(e);var t=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;return t?t(e):window.setTimeout(e,1e3/60)}var E=Math.log2?Math.log2:function(e){return Math.log(e)/Math.LN2};function P(e,t){return Object.keys(e).reduce(function(o,n){return t(e[n])&&(o[n]=e[n]),o},{})}var A=function(e){if(null!==e&&"object"==typeof e){if(0===Object.keys(e).length)return !0}else if(null==e||""===e)return !0;return !1},I=Object.prototype.toString;function N(e){return "number"==typeof e||function(e){return !!e&&"object"==typeof e}(e)&&"[object Number]"===I.call(e)}var Z=null;function j(){if(Z)return Z;if("undefined"!=typeof navigator){var e=navigator.userAgent.indexOf("MSIE")>-1,t=navigator.userAgent.indexOf("Firefox")>-1,o=navigator.userAgent.toLowerCase().indexOf("op")>-1,n=navigator.userAgent.indexOf("Chrome")>-1,r=navigator.userAgent.indexOf("Safari")>-1;return n&&r&&(r=!1),n&&o&&(n=!1),Z={isExplorer:e,isFirefox:t,isOpera:o,isChrome:n,isSafari:r}}return Z={isChrome:!0,isExplorer:!1,isFirefox:!1,isOpera:!1,isSafari:!1}}var U=function(e){return Function.prototype.toString.call(e)};function H(e){if(!e||"object"!=typeof e)return !1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return !0;var o=t.constructor;return "function"==typeof o&&o instanceof o&&U(o)===U(Object)}function K(e,t,o,n){e.addEventListener(t,o,function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0;}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t);}catch(t){e=!1;}return e}()?{capture:n,passive:!0}:n);}var R,G=!("undefined"==typeof window||!window.document||!window.document.createElement);R=G?window:"undefined"!=typeof self?self:void 0;var B,W="undefined"!=typeof document&&document.attachEvent,V=!1;if(G&&!W){var F=function(){var e=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame||function(e){return R.setTimeout(e,20)};return function(t){return e(t)}}(),$=(B=R.cancelAnimationFrame||R.mozCancelAnimationFrame||R.webkitCancelAnimationFrame||R.clearTimeout,function(e){return B(e)}),q=function(e){var t=e.__resizeTriggers__,o=t.firstElementChild,n=t.lastElementChild,r=o.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,r.style.width=o.offsetWidth+1+"px",r.style.height=o.offsetHeight+1+"px",o.scrollLeft=o.scrollWidth,o.scrollTop=o.scrollHeight;},Y=function(e){var t=this;q(this),this.__resizeRAF__&&$(this.__resizeRAF__),this.__resizeRAF__=F(function(){(function(e){return e.offsetWidth!=e.__resizeLast__.width||e.offsetHeight!=e.__resizeLast__.height})(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(o){o.call(t,e);}));});},X=!1,J="",Q="animationstart",ee="Webkit Moz O ms".split(" "),te="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");if(G){var oe=document.createElement("fakeelement");if(void 0!==oe.style.animationName&&(X=!0),!1===X)for(var ne=0;ne<ee.length;ne++)if(void 0!==oe.style[ee[ne]+"AnimationName"]){J="-"+ee[ne].toLowerCase()+"-",Q=te[ne],X=!0;break}}var re="resizeanim",ie="@"+J+"keyframes "+re+" { from { opacity: 0; } to { opacity: 0; } } ",se=J+"animation: 1ms "+re+"; ";}var ae=void 0!==n__default["default"].createPortal,pe=ae?n__default["default"].createPortal:n__default["default"].unstable_renderSubtreeIntoContainer,le=function(e){return H(e)?e:{lat:e[0],lng:e[1]}},ue=function(e,t){return "production"!==process.env.NODE_ENV&&e<t&&console.warn("GoogleMap: minZoom option is less than recommended minZoom option for your map sizes.\noverrided to value "+t),t<e?e:t},he=function(t){function o(o){var r;if((r=t.call(this,o)||this)._getMinZoom=function(){if(r.geoService_.getWidth()>0||r.geoService_.getHeight()>0){var e=Math.ceil(r.geoService_.getWidth()/256)+2,t=Math.ceil(r.geoService_.getHeight()/256)+2,o=Math.max(e,t);return Math.ceil(E(o))}return 3},r._computeMinZoom=function(e){return A(e)?r._getMinZoom():e},r._mapDomResizeCallback=function(){if(r.resetSizeOnIdle_=!0,r.maps_){var e=r.props.center||r.props.defaultCenter,t=r.map_.getCenter();r.maps_.event.trigger(r.map_,"resize"),r.map_.setCenter(r.props.resetBoundsOnResize?e:t);}},r._setLayers=function(e){e.forEach(function(e){r.layers_[e]=new r.maps_[e],r.layers_[e].setMap(r.map_);});},r._renderPortal=function(){return React__default["default"].createElement(M,{experimental:r.props.experimental,onChildClick:r._onChildClick,onChildMouseDown:r._onChildMouseDown,onChildMouseEnter:r._onChildMouseEnter,onChildMouseLeave:r._onChildMouseLeave,geoService:r.geoService_,insideMapPanes:!0,distanceToMouse:r.props.distanceToMouse,getHoverDistance:r._getHoverDistance,dispatcher:r.markersDispatcher_})},r._initMap=function(){if(!r.initialized_){r.initialized_=!0;var e=le(r.props.center||r.props.defaultCenter);r.geoService_.setView(e,r.props.zoom||r.props.defaultZoom,0),r._onBoundsChanged();var t=a({},r.props.apiKey&&{key:r.props.apiKey},r.props.bootstrapURLKeys);r.props.googleMapLoader(t,r.props.heatmapLibrary).then(function(e){if(r.mounted_){var t,o,i=r.geoService_.getCenter(),s={zoom:r.props.zoom||r.props.defaultZoom,center:new e.LatLng(i.lat,i.lng)};r.props.heatmap.positions&&(Object.assign(l(r),{heatmap:(t=e,o=r.props.heatmap,new t.visualization.HeatmapLayer({data:o.positions.reduce(function(e,o){var n=o.weight,r=void 0===n?1:n;return e.push({location:new t.LatLng(o.lat,o.lng),weight:r}),e},[])}))}),function(e,t){var o=t.options,n=void 0===o?{}:o;Object.keys(n).map(function(t){return e.set(t,n[t])});}(r.heatmap,r.props.heatmap));var p=P(e,H),u="function"==typeof r.props.options?r.props.options(p):r.props.options,h=!A(r.props.draggable)&&{draggable:r.props.draggable},c=r._computeMinZoom(u.minZoom);r.minZoom_=c;var d=a({},{overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3},{minZoom:c},u,s);r.defaultDraggableOption_=A(d.draggable)?r.defaultDraggableOption_:d.draggable;var m=a({},d,h);m.minZoom=ue(m.minZoom,c);var g=new e.Map(n__default["default"].findDOMNode(r.googleMapDom_),m);r.map_=g,r.maps_=e,r._setLayers(r.props.layerTypes);var _=e.version.match(/^3\.(\d+)\./),f=_&&Number(_[1]),v=l(r),M=Object.assign(new e.OverlayView,{onAdd:function(){var t="undefined"!=typeof screen?screen.width+"px":"2000px",o="undefined"!=typeof screen?screen.height+"px":"2000px",n=document.createElement("div");if(n.style.backgroundColor="transparent",n.style.position="absolute",n.style.left="0px",n.style.top="0px",n.style.width=t,n.style.height=o,v.props.overlayViewDivStyle){var r=v.props.overlayViewDivStyle;"object"==typeof r&&Object.keys(r).forEach(function(e){n.style[e]=r[e];});}this.getPanes().overlayMouseTarget.appendChild(n),v.geoService_.setMapCanvasProjection(e,M.getProjection()),ae?v.setState({overlay:n}):pe(v,v._renderPortal(),n,function(){return v.setState({overlay:n})});},onRemove:function(){var e=v.state.overlay;e&&!ae&&n__default["default"].unmountComponentAtNode(e),v.setState({overlay:null});},draw:function(){if(v.updateCounter_++,v._onBoundsChanged(g,e,!v.props.debounced),v.googleApiLoadedCalled_||(v._onGoogleApiLoaded({map:g,maps:e,ref:v.googleMapDom_}),v.googleApiLoadedCalled_=!0),v.mouse_){var t=v.geoService_.fromContainerPixelToLatLng(v.mouse_);v.mouse_.lat=t.lat,v.mouse_.lng=t.lng;}v._onChildMouseMove(),v.markersDispatcher_&&(v.markersDispatcher_.emit("kON_CHANGE"),v.fireMouseEventOnIdle_&&v.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"));}});r.overlay_=M,M.setMap(g),r.props.heatmap.positions&&r.heatmap.setMap(g),r.props.onTilesLoaded&&e.event.addListener(g,"tilesloaded",function(){v._onTilesLoaded();}),e.event.addListener(g,"zoom_changed",function(){v.geoService_.getZoom()!==g.getZoom()&&(v.zoomAnimationInProgress_||(v.zoomAnimationInProgress_=!0,v._onZoomAnimationStart(g.zoom)),f<32)&&((new Date).getTime()-r.zoomControlClickTime_<300?S(function(){return S(function(){v.updateCounter_++,v._onBoundsChanged(g,e);})}):(v.updateCounter_++,v._onBoundsChanged(g,e)));}),e.event.addListener(g,"idle",function(){if(r.resetSizeOnIdle_){r._setViewSize();var t=r._computeMinZoom(u.minZoom);t!==r.minZoom_&&(r.minZoom_=t,g.setOptions({minZoom:t})),r.resetSizeOnIdle_=!1;}v.zoomAnimationInProgress_&&(v.zoomAnimationInProgress_=!1,v._onZoomAnimationEnd(g.zoom)),v.updateCounter_++,v._onBoundsChanged(g,e),v.dragTime_=0,v.markersDispatcher_&&v.markersDispatcher_.emit("kON_CHANGE");}),e.event.addListener(g,"mouseover",function(){v.mouseInMap_=!0;}),e.event.addListener(g,"click",function(){v.mouseInMap_=!0;}),e.event.addListener(g,"mouseout",function(){v.mouseInMap_=!1,v.mouse_=null,v.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE");}),e.event.addListener(g,"drag",function(){v.dragTime_=(new Date).getTime(),v._onDrag(g);}),e.event.addListener(g,"dragend",function(){var t=e.event.addListener(g,"idle",function(){e.event.removeListener(t),v._onDragEnd(g);});}),e.event.addListener(g,"maptypeid_changed",function(){v._onMapTypeIdChange(g.getMapTypeId());});}}).catch(function(e){throw r._onGoogleApiLoaded({map:null,maps:null,ref:r.googleMapDom_}),console.error(e),e});}},r._onGoogleApiLoaded=function(){var e;r.props.onGoogleApiLoaded&&("production"!==process.env.NODE_ENV&&!0!==r.props.yesIWantToUseGoogleMapApiInternals&&console.warn("GoogleMap: Usage of internal api objects is dangerous and can cause a lot of issues.\nTo hide this warning add yesIWantToUseGoogleMapApiInternals={true} to <GoogleMap instance"),(e=r.props).onGoogleApiLoaded.apply(e,arguments));},r._getHoverDistance=function(){return r.props.hoverDistance},r._onDrag=function(){var e;return r.props.onDrag&&(e=r.props).onDrag.apply(e,arguments)},r._onDragEnd=function(){var e;return r.props.onDragEnd&&(e=r.props).onDragEnd.apply(e,arguments)},r._onMapTypeIdChange=function(){var e;return r.props.onMapTypeIdChange&&(e=r.props).onMapTypeIdChange.apply(e,arguments)},r._onZoomAnimationStart=function(){var e;return r.props.onZoomAnimationStart&&(e=r.props).onZoomAnimationStart.apply(e,arguments)},r._onZoomAnimationEnd=function(){var e;return r.props.onZoomAnimationEnd&&(e=r.props).onZoomAnimationEnd.apply(e,arguments)},r._onTilesLoaded=function(){return r.props.onTilesLoaded&&r.props.onTilesLoaded()},r._onChildClick=function(){var e;if(r.props.onChildClick)return (e=r.props).onChildClick.apply(e,arguments)},r._onChildMouseDown=function(e,t){r.childMouseDownArgs_=[e,t],r.props.onChildMouseDown&&r.props.onChildMouseDown(e,t,a({},r.mouse_));},r._onChildMouseUp=function(){var e;r.childMouseDownArgs_&&(r.props.onChildMouseUp&&(e=r.props).onChildMouseUp.apply(e,r.childMouseDownArgs_.concat([a({},r.mouse_)])),r.childMouseDownArgs_=null,r.childMouseUpTime_=(new Date).getTime());},r._onChildMouseMove=function(){var e;r.childMouseDownArgs_&&r.props.onChildMouseMove&&(e=r.props).onChildMouseMove.apply(e,r.childMouseDownArgs_.concat([a({},r.mouse_)]));},r._onChildMouseEnter=function(){var e;if(r.props.onChildMouseEnter)return (e=r.props).onChildMouseEnter.apply(e,arguments)},r._onChildMouseLeave=function(){var e;if(r.props.onChildMouseLeave)return (e=r.props).onChildMouseLeave.apply(e,arguments)},r._setViewSize=function(){if(r.mounted_){if(document.fullscreen||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)r.geoService_.setViewSize(window.innerWidth,window.innerHeight);else {var e=n__default["default"].findDOMNode(r.googleMapDom_);r.geoService_.setViewSize(e.clientWidth,e.clientHeight);}r._onBoundsChanged();}},r._onWindowResize=function(){r.resetSizeOnIdle_=!0;},r._onMapMouseMove=function(e){if(r.mouseInMap_){var t=(new Date).getTime();t-r.mouseMoveTime_>50&&(r.boundingRect_=e.currentTarget.getBoundingClientRect()),r.mouseMoveTime_=t;var o=e.clientX-r.boundingRect_.left,n=e.clientY-r.boundingRect_.top;r.mouse_||(r.mouse_={x:0,y:0,lat:0,lng:0}),r.mouse_.x=o,r.mouse_.y=n;var i=r.geoService_.fromContainerPixelToLatLng(r.mouse_);r.mouse_.lat=i.lat,r.mouse_.lng=i.lng,r._onChildMouseMove(),t-r.dragTime_<100?r.fireMouseEventOnIdle_=!0:(r.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE"),r.fireMouseEventOnIdle_=!1);}},r._onClick=function(){var e;return r.props.onClick&&!r.childMouseDownArgs_&&(new Date).getTime()-r.childMouseUpTime_>300&&0===r.dragTime_&&(e=r.props).onClick.apply(e,arguments)},r._onMapClick=function(e){r.markersDispatcher_&&(r._onMapMouseMove(e),(new Date).getTime()-r.dragTime_>100&&(r.mouse_&&r._onClick(a({},r.mouse_,{event:e})),r.markersDispatcher_.emit("kON_CLICK",e)));},r._onMapMouseDownNative=function(e){r.mouseInMap_&&r._onMapMouseDown(e);},r._onMapMouseDown=function(e){r.markersDispatcher_&&(new Date).getTime()-r.dragTime_>100&&(r._onMapMouseMove(e),r.markersDispatcher_.emit("kON_MDOWN",e));},r._onMapMouseDownCapture=function(){j().isChrome&&(r.zoomControlClickTime_=(new Date).getTime());},r._onKeyDownCapture=function(){j().isChrome&&(r.zoomControlClickTime_=(new Date).getTime());},r._isCenterDefined=function(e){return e&&(H(e)&&N(e.lat)&&N(e.lng)||2===e.length&&N(e[0])&&N(e[1]))},r._onBoundsChanged=function(e,t,o){if(e){var n=e.getCenter();r.geoService_.setView([n.lat(),n.lng()],e.getZoom(),0);}if((r.props.onChange||r.props.onBoundsChange)&&r.geoService_.canProject()){var i=r.geoService_.getZoom(),s=r.geoService_.getBounds(),p=r.geoService_.getCenter();if(!function(e,t,o){if(e&&t){for(var n=0;n!==e.length;++n)if(Math.abs(e[n]-t[n])>1e-5)return !1;return !0}return !1}(s,r.prevBounds_)&&!1!==o){var l=r.geoService_.getBounds(r.props.margin);r.props.onBoundsChange&&r.props.onBoundsChange(r.centerIsObject_?a({},p):[p.lat,p.lng],i,s,l),r.props.onChange&&r.props.onChange({center:a({},p),zoom:i,bounds:{nw:{lat:s[0],lng:s[1]},se:{lat:s[2],lng:s[3]},sw:{lat:s[4],lng:s[5]},ne:{lat:s[6],lng:s[7]}},marginBounds:{nw:{lat:l[0],lng:l[1]},se:{lat:l[2],lng:l[3]},sw:{lat:l[4],lng:l[5]},ne:{lat:l[6],lng:l[7]}},size:r.geoService_.hasSize()?{width:r.geoService_.getWidth(),height:r.geoService_.getHeight()}:{width:0,height:0}}),r.prevBounds_=s;}}},r._registerChild=function(e){r.googleMapDom_=e;},r.mounted_=!1,r.initialized_=!1,r.googleApiLoadedCalled_=!1,r.map_=null,r.maps_=null,r.prevBounds_=null,r.heatmap=null,r.layers_={},r.mouse_=null,r.mouseMoveTime_=0,r.boundingRect_=null,r.mouseInMap_=!0,r.dragTime_=0,r.fireMouseEventOnIdle_=!1,r.updateCounter_=0,r.markersDispatcher_=new c(l(r)),r.geoService_=new T(256),r.centerIsObject_=H(r.props.center),r.minZoom_=3,r.defaultDraggableOption_=!0,r.zoomControlClickTime_=0,r.childMouseDownArgs_=null,r.childMouseUpTime_=0,r.googleMapDom_=null,"production"!==process.env.NODE_ENV&&(r.props.apiKey&&console.warn("GoogleMap: apiKey is deprecated, use bootstrapURLKeys={{key: YOUR_API_KEY}} instead."),r.props.onBoundsChange&&console.warn("GoogleMap: onBoundsChange is deprecated, use onChange({center, zoom, bounds, ...other}) instead."),A(r.props.center)&&A(r.props.defaultCenter)&&console.warn("GoogleMap: center or defaultCenter property must be defined"),A(r.props.zoom)&&A(r.props.defaultZoom)&&console.warn("GoogleMap: zoom or defaultZoom property must be defined")),r._isCenterDefined(r.props.center||r.props.defaultCenter)){var i=le(r.props.center||r.props.defaultCenter);r.geoService_.setView(i,r.props.zoom||r.props.defaultZoom,0);}return r.zoomAnimationInProgress_=!1,r.state={overlay:null},r}p(o,t);var r=o.prototype;return r.componentDidMount=function(){var e=this;this.mounted_=!0,K(window,"resize",this._onWindowResize,!1),K(window,"keydown",this._onKeyDownCapture,!0);var t=n__default["default"].findDOMNode(this.googleMapDom_);t&&K(t,"mousedown",this._onMapMouseDownNative,!0),K(window,"mouseup",this._onChildMouseUp,!1);var o=a({},this.props.apiKey&&{key:this.props.apiKey},this.props.bootstrapURLKeys);this.props.googleMapLoader(o,this.props.heatmapLibrary),setTimeout(function(){e._setViewSize(),e._isCenterDefined(e.props.center||e.props.defaultCenter)&&e._initMap();},0,this),this.props.resetBoundsOnResize&&function(e,t){if(void 0===e.parentNode){var o=document.createElement("div");e.parentNode=o;}e=e.parentNode,W?e.attachEvent("onresize",t):(e.__resizeTriggers__||("static"==getComputedStyle(e).position&&(e.style.position="relative"),function(){if(!V){var e=(ie||"")+".resize-triggers { "+(se||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',t=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e)),t.appendChild(o),V=!0;}}(),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=document.createElement("div")).className="resize-triggers",e.__resizeTriggers__.innerHTML='<div class="expand-trigger"><div></div></div><div class="contract-trigger"></div>',e.appendChild(e.__resizeTriggers__),q(e),K(e,"scroll",Y,!0),Q&&e.__resizeTriggers__.addEventListener(Q,function(t){t.animationName==re&&q(e);})),e.__resizeListeners__.push(t));}(t,this._mapDomResizeCallback);},r.shouldComponentUpdate=function(e,t){return !_(d(this.props,["draggable"]),d(e,["draggable"]))||!_(this.state,t)},r.componentDidUpdate=function(e){var t=this;if("production"!==process.env.NODE_ENV&&(_(e.defaultCenter,this.props.defaultCenter)||console.warn("GoogleMap: defaultCenter prop changed. You can't change default props."),_(e.defaultZoom,this.props.defaultZoom)||console.warn("GoogleMap: defaultZoom prop changed. You can't change default props.")),!this._isCenterDefined(e.center)&&this._isCenterDefined(this.props.center)&&setTimeout(function(){return t._initMap()},0),this.map_){var o=this.geoService_.getCenter();if(this._isCenterDefined(this.props.center)){var n=le(this.props.center),r=this._isCenterDefined(e.center)?le(e.center):null;(!r||Math.abs(n.lat-r.lat)+Math.abs(n.lng-r.lng)>1e-5)&&Math.abs(n.lat-o.lat)+Math.abs(n.lng-o.lng)>1e-5&&this.map_.panTo({lat:n.lat,lng:n.lng});}if(A(this.props.zoom)||Math.abs(this.props.zoom-e.zoom)>0&&this.map_.setZoom(this.props.zoom),!A(e.draggable)&&A(this.props.draggable)?this.map_.setOptions({draggable:this.defaultDraggableOption_}):_(e.draggable,this.props.draggable)||this.map_.setOptions({draggable:this.props.draggable}),!A(this.props.options)&&!_(e.options,this.props.options)){var i=P(this.maps_,H),s="function"==typeof this.props.options?this.props.options(i):this.props.options;if("minZoom"in(s=d(s,["zoom","center","draggable"]))){var a=this._computeMinZoom(s.minZoom);s.minZoom=ue(s.minZoom,a);}this.map_.setOptions(s);}_(this.props.layerTypes,e.layerTypes)||(Object.keys(this.layers_).forEach(function(e){t.layers_[e].setMap(null),delete t.layers_[e];}),this._setLayers(this.props.layerTypes)),this.heatmap&&!_(this.props.heatmap.positions,e.heatmap.positions)&&this.heatmap.setData(this.props.heatmap.positions.map(function(e){return {location:new t.maps_.LatLng(e.lat,e.lng),weight:e.weight}})),this.heatmap&&!_(this.props.heatmap.options,e.heatmap.options)&&Object.keys(this.props.heatmap.options).forEach(function(e){t.heatmap.set(e,t.props.heatmap.options[e]);});}this.markersDispatcher_.emit("kON_CHANGE"),_(this.props.hoverDistance,e.hoverDistance)||this.markersDispatcher_.emit("kON_MOUSE_POSITION_CHANGE");},r.componentWillUnmount=function(){this.mounted_=!1;var e,t,o=n__default["default"].findDOMNode(this.googleMapDom_);o&&o.removeEventListener("mousedown",this._onMapMouseDownNative,!0),window.removeEventListener("resize",this._onWindowResize),window.removeEventListener("keydown",this._onKeyDownCapture),window.removeEventListener("mouseup",this._onChildMouseUp,!1),this.props.resetBoundsOnResize&&(t=this._mapDomResizeCallback,e=(e=o).parentNode,W?e.detachEvent("onresize",t):(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||(e.removeEventListener("scroll",Y),e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)))),this.overlay_&&this.overlay_.setMap(null),this.maps_&&this.map_&&this.props.shouldUnregisterMapOnUnmount&&(this.map_.setOptions({scrollwheel:!1}),this.maps_.event.clearInstanceListeners(this.map_)),this.props.shouldUnregisterMapOnUnmount&&(this.map_=null,this.maps_=null),this.markersDispatcher_.dispose(),this.resetSizeOnIdle_=!1,this.props.shouldUnregisterMapOnUnmount&&(delete this.map_,delete this.markersDispatcher_);},r.render=function(){var t=this.state.overlay,o=t?null:React__default["default"].createElement(C,{experimental:this.props.experimental,onChildClick:this._onChildClick,onChildMouseDown:this._onChildMouseDown,onChildMouseEnter:this._onChildMouseEnter,onChildMouseLeave:this._onChildMouseLeave,geoService:this.geoService_,insideMapPanes:!1,distanceToMouse:this.props.distanceToMouse,getHoverDistance:this._getHoverDistance,dispatcher:this.markersDispatcher_});return React__default["default"].createElement("div",{style:this.props.style,onMouseMove:this._onMapMouseMove,onMouseDownCapture:this._onMapMouseDownCapture,onClick:this._onMapClick},React__default["default"].createElement(h,{registerChild:this._registerChild}),ae&&t&&pe(this._renderPortal(),t),o)},o}(React.Component);he.propTypes={apiKey:PropTypes$1.string,bootstrapURLKeys:PropTypes$1.any,defaultCenter:PropTypes$1.oneOfType([PropTypes$1.array,PropTypes$1.shape({lat:PropTypes$1.number,lng:PropTypes$1.number})]),center:PropTypes$1.oneOfType([PropTypes$1.array,PropTypes$1.shape({lat:PropTypes$1.number,lng:PropTypes$1.number})]),defaultZoom:PropTypes$1.number,zoom:PropTypes$1.number,onBoundsChange:PropTypes$1.func,onChange:PropTypes$1.func,onClick:PropTypes$1.func,onChildClick:PropTypes$1.func,onChildMouseDown:PropTypes$1.func,onChildMouseUp:PropTypes$1.func,onChildMouseMove:PropTypes$1.func,onChildMouseEnter:PropTypes$1.func,onChildMouseLeave:PropTypes$1.func,onZoomAnimationStart:PropTypes$1.func,onZoomAnimationEnd:PropTypes$1.func,onDrag:PropTypes$1.func,onDragEnd:PropTypes$1.func,onMapTypeIdChange:PropTypes$1.func,onTilesLoaded:PropTypes$1.func,options:PropTypes$1.any,distanceToMouse:PropTypes$1.func,hoverDistance:PropTypes$1.number,debounced:PropTypes$1.bool,margin:PropTypes$1.array,googleMapLoader:PropTypes$1.any,onGoogleApiLoaded:PropTypes$1.func,yesIWantToUseGoogleMapApiInternals:PropTypes$1.bool,draggable:PropTypes$1.bool,style:PropTypes$1.any,resetBoundsOnResize:PropTypes$1.bool,layerTypes:PropTypes$1.arrayOf(PropTypes$1.string),shouldUnregisterMapOnUnmount:PropTypes$1.bool},he.defaultProps={distanceToMouse:function(e,t){return Math.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y))},hoverDistance:30,debounced:!0,options:function(){return {overviewMapControl:!1,streetViewControl:!1,rotateControl:!0,mapTypeControl:!1,styles:[{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]}],minZoom:3}},googleMapLoader:z,yesIWantToUseGoogleMapApiInternals:!1,style:{width:"100%",height:"100%",margin:0,padding:0,position:"relative"},layerTypes:[],heatmap:{},heatmapLibrary:!1,shouldUnregisterMapOnUnmount:!0},he.googleMapLoader=z;
9102
11788
 
9103
11789
  var isClient = typeof window !== 'undefined';
9104
11790
  function GoogleMap(_ref) {
@@ -59019,26 +61705,8 @@ function Text (_ref) {
59019
61705
  });
59020
61706
  }
59021
61707
 
59022
- var _templateObject$1, _templateObject2$1;
59023
- var BREAKPOINTS = {
59024
- DESKTOP: 992,
59025
- TABLET: 768,
59026
- PHONE: 376
59027
- };
59028
- var MEDIA = Object.keys(BREAKPOINTS).reduce(function (acc, label) {
59029
- acc[label] = function () {
59030
- return styled.css(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n @media (max-width: ", "em) {\n ", ";\n }\n "])), BREAKPOINTS[label] / 16, styled.css.apply(void 0, arguments));
59031
- };
59032
-
59033
- acc["MIN_".concat(label)] = function () {
59034
- return styled.css(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n @media (min-width: ", "em) {\n ", ";\n }\n "])), BREAKPOINTS[label] / 16, styled.css.apply(void 0, arguments));
59035
- };
59036
-
59037
- return acc;
59038
- }, {});
59039
-
59040
61708
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
59041
- var BlockContainer = styled__default["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"], ["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"])), MEDIA.PHONE(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), MEDIA.TABLET(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {\n width: 100%;\n }\n "]))), function (props) {
61709
+ var BlockContainer = styled__default["default"].div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\n.justify-evenly {\n justify-content: space-evenly;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"], ["\ndisplay: flex;\nflex-direction: row;\nflex-wrap: wrap;\n.ql-align-center {\n text-align: center;\n}\n.justify-evenly {\n justify-content: space-evenly;\n}\nul {\n list-style: initial;\n list-style-position: outside;\n padding: 0 0 0 16px;\n li {\n font-size: 1.6rem;\n line-height: 2.4rem;\n padding: 4px 0;\n }\n}\nh1 {\n font-size: 2.8rem;\n line-height: 3.4rem;\n padding: 24px 0 16px;\n}\nh2 {\n font-size: 2.2rem;\n line-height: 2.8rem;\n padding: 16px 0 8px;\n}\np {\n font-size: 1.6rem;\n line-height: 2.4rem;\n max-width: 75ch;\n margin: 0;\n}\ndiv {\n box-sizing: border-box;\n}\nimg {\n display: block;\n width: 100%;\n max-width: 100%;\n /* position: absolute; */\n}\n.half {\n width: 50%;\n ", ";\n}\n.col {\n &-12 {\n width: 100%;\n }\n &-1 {\n width: calc(1 / 12 * 100%);\n }\n &-2 {\n width: calc(2 / 12 * 100%);\n }\n &-3 {\n width: calc(3 / 12 * 100%);\n }\n &-4 {\n width: calc(4 / 12 * 100%);\n }\n &-5 {\n width: calc(5 / 12 * 100%);\n }\n &-6 {\n width: calc(50%);\n }\n &-7 {\n width: calc(7 / 12 * 100%);\n }\n &-8 {\n width: calc(8 / 12 * 100%);\n }\n &-9 {\n width: calc(9 / 12 * 100%);\n }\n &-10 {\n width: calc(10 / 12 * 100%);\n }\n &-11 {\n width: calc(11 / 12 * 100%);\n }\n}\n.center {\n margin: 0 auto;\n}\n", ";\na {\n /* padding: 2px 0; */\n color: ", " !important;\n text-decoration: none;\n position: relative;\n &:before {\n transition: 0.2s all ease-in;\n position: absolute;\n content: '';\n height: 1px;\n width: 20px;\n bottom: 0;\n left: 0;\n background: ", ";\n }\n &:hover {\n &:before {\n width: 100%;\n }\n }\n}\n.image-gallery-fullscreen-button.active {\n top: 0;\n bottom: auto;\n background-color: #000;\n &:before {\n content: '\\\\274c';\n }\n}\n.image-gallery-content {\n .image-gallery-image {\n img {\n max-height: 500px;\n height: 500px;\n ", ";\n }\n }\n}\n.image-gallery-content.fullscreen {\n .image-gallery-image {\n img {\n /* max-height: 75vh; */\n width: auto;\n margin: 0 auto;\n }\n }\n}\n\n.image-gallery {\n max-width: 100%;\n overflow: hidden;\n}\n.page_row {\n max-width: 1240px;\n width: 100%;\n margin: 0px auto;\n padding: 16px;\n width: 100%;\n flex-direction: column;\n @media (min-width: 676px) {\n flex-direction: row;\n }\n &.full-width {\n max-width: 100%;\n padding: 0;\n }\n\n &.container-width {\n margin: 0 auto;\n @media (min-width: 676px) {\n max-width: 640px;\n }\n\n @media (min-width: 868px) {\n max-width: 820px;\n }\n\n @media (min-width: 992px) {\n max-width: 960px;\n }\n\n @media (min-width: 1290px) {\n max-width: 1260px;\n }\n }\n }\n"])), MEDIA.PHONE(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 100%;\n "]))), MEDIA.TABLET(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {\n width: 100%;\n }\n "]))), function (props) {
59042
61710
  return props.theme.linkColor;
59043
61711
  }, function (props) {
59044
61712
  return props.theme.primaryColor;
@@ -59046,7 +61714,9 @@ var BlockContainer = styled__default["default"].div(_templateObject || (_templat
59046
61714
  var BlockSelf = styled__default["default"].div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
59047
61715
 
59048
61716
  function Block(_ref) {
59049
- var pageBlock = _ref.pageBlock;
61717
+ var pageBlock = _ref.pageBlock,
61718
+ houses = _ref.houses,
61719
+ locale = _ref.locale;
59050
61720
  var options = pageBlock.options;
59051
61721
 
59052
61722
  if (options == null) {
@@ -59054,6 +61724,16 @@ function Block(_ref) {
59054
61724
  }
59055
61725
 
59056
61726
  switch (options.type) {
61727
+ case 'assorted_houses':
61728
+ return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
61729
+ options: options,
61730
+ key: pageBlock.id
61731
+ }, /*#__PURE__*/React__default["default"].createElement(AssortedHouses, {
61732
+ options: options,
61733
+ houses: houses,
61734
+ locale: locale
61735
+ }));
61736
+
59057
61737
  case 'bukazu_portal':
59058
61738
  return /*#__PURE__*/React__default["default"].createElement(Wrapper, {
59059
61739
  options: options,
@@ -59142,7 +61822,7 @@ function Block(_ref) {
59142
61822
  }
59143
61823
 
59144
61824
  Block.propTypes = {
59145
- pageBlock: PropTypes.object.isRequired
61825
+ pageBlock: PropTypes$1.object.isRequired
59146
61826
  };
59147
61827
 
59148
61828
  function Wrapper(_ref2) {
@@ -59161,7 +61841,9 @@ function Wrapper(_ref2) {
59161
61841
  }
59162
61842
 
59163
61843
  function Row(_ref) {
59164
- var content = _ref.content;
61844
+ var content = _ref.content,
61845
+ houses = _ref.houses,
61846
+ locale = _ref.locale;
59165
61847
  var options = content.options;
59166
61848
  var classes = 'page_row';
59167
61849
 
@@ -59179,17 +61861,24 @@ function Row(_ref) {
59179
61861
  }, content.page_blocks.map(function (block, index) {
59180
61862
  return /*#__PURE__*/React__default["default"].createElement(Block, {
59181
61863
  pageBlock: block,
59182
- key: index
61864
+ key: index,
61865
+ houses: houses,
61866
+ locale: locale
59183
61867
  });
59184
61868
  }));
59185
61869
  }
59186
61870
 
59187
61871
  function CmsBlocks(_ref) {
59188
- var content = _ref.content;
61872
+ var content = _ref.content,
61873
+ houses = _ref.houses,
61874
+ _ref$locale = _ref.locale,
61875
+ locale = _ref$locale === void 0 ? 'nl' : _ref$locale;
59189
61876
  return /*#__PURE__*/React__default["default"].createElement(BlockContainer, null, content.page_rows.map(function (row, index) {
59190
61877
  return /*#__PURE__*/React__default["default"].createElement(Row, {
59191
61878
  content: row,
59192
- key: index
61879
+ key: index,
61880
+ houses: houses,
61881
+ locale: locale
59193
61882
  });
59194
61883
  }));
59195
61884
  }