@bigbinary/neeto-site-blocks 0.32.3 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -2,26 +2,25 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var _extends$4 = require('@babel/runtime/helpers/extends');
5
+ var _extends$3 = require('@babel/runtime/helpers/extends');
6
6
  var React = require('react');
7
7
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
8
8
  var _defineProperty$1 = require('@babel/runtime/helpers/defineProperty');
9
9
  var styled = require('styled-components');
10
10
  var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
11
11
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
12
- var require$$1 = require('react-dom');
13
12
  var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
14
13
  var _regeneratorRuntime = require('@babel/runtime/regenerator');
15
- var require$$1$2 = require('http');
14
+ var require$$1$1 = require('http');
16
15
  var require$$2 = require('https');
17
16
  var require$$0$3 = require('url');
18
17
  var require$$3 = require('stream');
19
18
  var require$$4 = require('assert');
20
19
  var require$$0$2 = require('tty');
21
- var require$$1$1 = require('util');
20
+ var require$$1 = require('util');
22
21
  var require$$0$1 = require('os');
23
22
  var require$$8 = require('zlib');
24
- var require$$1$3 = require('path');
23
+ var require$$1$2 = require('path');
25
24
  var require$$6 = require('fs');
26
25
  var pure = require('@bigbinary/neeto-commons-frontend/pure');
27
26
 
@@ -45,7 +44,7 @@ function _interopNamespace(e) {
45
44
  return Object.freeze(n);
46
45
  }
47
46
 
48
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$4);
47
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$3);
49
48
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
50
49
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
51
50
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
@@ -53,19 +52,18 @@ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_definePropert
53
52
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
54
53
  var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
55
54
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
56
- var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
57
55
  var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
58
56
  var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
59
- var require$$1__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$1$2);
57
+ var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
60
58
  var require$$2__default = /*#__PURE__*/_interopDefaultLegacy(require$$2);
61
59
  var require$$0__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$0$3);
62
60
  var require$$3__default = /*#__PURE__*/_interopDefaultLegacy(require$$3);
63
61
  var require$$4__default = /*#__PURE__*/_interopDefaultLegacy(require$$4);
64
62
  var require$$0__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
65
- var require$$1__default$1 = /*#__PURE__*/_interopDefaultLegacy(require$$1$1);
63
+ var require$$1__default = /*#__PURE__*/_interopDefaultLegacy(require$$1);
66
64
  var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$1);
67
65
  var require$$8__default = /*#__PURE__*/_interopDefaultLegacy(require$$8);
68
- var require$$1__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$1$3);
66
+ var require$$1__default$2 = /*#__PURE__*/_interopDefaultLegacy(require$$1$2);
69
67
  var require$$6__default = /*#__PURE__*/_interopDefaultLegacy(require$$6);
70
68
 
71
69
  /**
@@ -720,7 +718,7 @@ _curry2(function hasPath(_path, obj) {
720
718
  * pointHas('z'); //=> false
721
719
  */
722
720
 
723
- var has$1 =
721
+ var has =
724
722
  /*#__PURE__*/
725
723
  _curry2(function has(prop, obj) {
726
724
  return hasPath([prop], obj);
@@ -24780,7 +24778,7 @@ var applyResponsiveClasses = function applyResponsiveClasses(_ref3) {
24780
24778
  cov_mdbryxoh6().s[59]++;
24781
24779
  var generateResponsiveStyles = function generateResponsiveStyles(styles) {
24782
24780
  cov_mdbryxoh6().f[11]++;
24783
- var hasKey = (cov_mdbryxoh6().s[60]++, has$1(__, styles));
24781
+ var hasKey = (cov_mdbryxoh6().s[60]++, has(__, styles));
24784
24782
  var responsiveClasses = (cov_mdbryxoh6().s[61]++, [(cov_mdbryxoh6().b[19][0]++, hasKey("fontSize")) && (cov_mdbryxoh6().b[19][1]++, applyResponsiveClasses({
24785
24783
  fieldValue: styles.fontSize,
24786
24784
  fieldConstant: FONT_SIZE_VALUES,
@@ -36611,8 +36609,8 @@ const ATTRIBUTES_TO_PROPS = Object.freeze({
36611
36609
  srcset: 'srcSet'
36612
36610
  });
36613
36611
 
36614
- function _extends$3() {
36615
- _extends$3 = Object.assign || function (target) {
36612
+ function _extends$2() {
36613
+ _extends$2 = Object.assign || function (target) {
36616
36614
  for (var i = 1; i < arguments.length; i++) {
36617
36615
  var source = arguments[i];
36618
36616
 
@@ -36626,7 +36624,7 @@ function _extends$3() {
36626
36624
  return target;
36627
36625
  };
36628
36626
 
36629
- return _extends$3.apply(this, arguments);
36627
+ return _extends$2.apply(this, arguments);
36630
36628
  }
36631
36629
 
36632
36630
  function Element({
@@ -36637,9 +36635,9 @@ function Element({
36637
36635
  tagName
36638
36636
  }) {
36639
36637
  const Tag = tagName;
36640
- return selfClose ? /*#__PURE__*/React__default["default"].createElement(Tag, _extends$3({
36638
+ return selfClose ? /*#__PURE__*/React__default["default"].createElement(Tag, _extends$2({
36641
36639
  className: className
36642
- }, attributes)) : /*#__PURE__*/React__default["default"].createElement(Tag, _extends$3({
36640
+ }, attributes)) : /*#__PURE__*/React__default["default"].createElement(Tag, _extends$2({
36643
36641
  className: className
36644
36642
  }, attributes), children);
36645
36643
  }
@@ -38446,20 +38444,6 @@ function createElement(tag, classes = []) {
38446
38444
  el.classList.add(...(Array.isArray(classes) ? classes : [classes]));
38447
38445
  return el;
38448
38446
  }
38449
- function elementOffset(el) {
38450
- const window = getWindow();
38451
- const document = getDocument();
38452
- const box = el.getBoundingClientRect();
38453
- const body = document.body;
38454
- const clientTop = el.clientTop || body.clientTop || 0;
38455
- const clientLeft = el.clientLeft || body.clientLeft || 0;
38456
- const scrollTop = el === window ? window.scrollY : el.scrollTop;
38457
- const scrollLeft = el === window ? window.scrollX : el.scrollLeft;
38458
- return {
38459
- top: box.top + scrollTop - clientTop,
38460
- left: box.left + scrollLeft - clientLeft
38461
- };
38462
- }
38463
38447
  function elementPrevAll(el, selector) {
38464
38448
  const prevEls = [];
38465
38449
  while (el.previousElementSibling) {
@@ -41910,118 +41894,6 @@ Object.keys(prototypes).forEach(prototypeGroup => {
41910
41894
  });
41911
41895
  Swiper$1.use([Resize, Observer]);
41912
41896
 
41913
- /* eslint-disable consistent-return */
41914
- function Keyboard({
41915
- swiper,
41916
- extendParams,
41917
- on,
41918
- emit
41919
- }) {
41920
- const document = getDocument();
41921
- const window = getWindow();
41922
- swiper.keyboard = {
41923
- enabled: false
41924
- };
41925
- extendParams({
41926
- keyboard: {
41927
- enabled: false,
41928
- onlyInViewport: true,
41929
- pageUpDown: true
41930
- }
41931
- });
41932
- function handle(event) {
41933
- if (!swiper.enabled) return;
41934
- const {
41935
- rtlTranslate: rtl
41936
- } = swiper;
41937
- let e = event;
41938
- if (e.originalEvent) e = e.originalEvent; // jquery fix
41939
- const kc = e.keyCode || e.charCode;
41940
- const pageUpDown = swiper.params.keyboard.pageUpDown;
41941
- const isPageUp = pageUpDown && kc === 33;
41942
- const isPageDown = pageUpDown && kc === 34;
41943
- const isArrowLeft = kc === 37;
41944
- const isArrowRight = kc === 39;
41945
- const isArrowUp = kc === 38;
41946
- const isArrowDown = kc === 40;
41947
- // Directions locks
41948
- if (!swiper.allowSlideNext && (swiper.isHorizontal() && isArrowRight || swiper.isVertical() && isArrowDown || isPageDown)) {
41949
- return false;
41950
- }
41951
- if (!swiper.allowSlidePrev && (swiper.isHorizontal() && isArrowLeft || swiper.isVertical() && isArrowUp || isPageUp)) {
41952
- return false;
41953
- }
41954
- if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {
41955
- return undefined;
41956
- }
41957
- if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === 'input' || document.activeElement.nodeName.toLowerCase() === 'textarea')) {
41958
- return undefined;
41959
- }
41960
- if (swiper.params.keyboard.onlyInViewport && (isPageUp || isPageDown || isArrowLeft || isArrowRight || isArrowUp || isArrowDown)) {
41961
- let inView = false;
41962
- // Check that swiper should be inside of visible area of window
41963
- if (elementParents(swiper.el, `.${swiper.params.slideClass}, swiper-slide`).length > 0 && elementParents(swiper.el, `.${swiper.params.slideActiveClass}`).length === 0) {
41964
- return undefined;
41965
- }
41966
- const el = swiper.el;
41967
- const swiperWidth = el.clientWidth;
41968
- const swiperHeight = el.clientHeight;
41969
- const windowWidth = window.innerWidth;
41970
- const windowHeight = window.innerHeight;
41971
- const swiperOffset = elementOffset(el);
41972
- if (rtl) swiperOffset.left -= el.scrollLeft;
41973
- const swiperCoord = [[swiperOffset.left, swiperOffset.top], [swiperOffset.left + swiperWidth, swiperOffset.top], [swiperOffset.left, swiperOffset.top + swiperHeight], [swiperOffset.left + swiperWidth, swiperOffset.top + swiperHeight]];
41974
- for (let i = 0; i < swiperCoord.length; i += 1) {
41975
- const point = swiperCoord[i];
41976
- if (point[0] >= 0 && point[0] <= windowWidth && point[1] >= 0 && point[1] <= windowHeight) {
41977
- if (point[0] === 0 && point[1] === 0) continue; // eslint-disable-line
41978
- inView = true;
41979
- }
41980
- }
41981
- if (!inView) return undefined;
41982
- }
41983
- if (swiper.isHorizontal()) {
41984
- if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {
41985
- if (e.preventDefault) e.preventDefault();else e.returnValue = false;
41986
- }
41987
- if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();
41988
- if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();
41989
- } else {
41990
- if (isPageUp || isPageDown || isArrowUp || isArrowDown) {
41991
- if (e.preventDefault) e.preventDefault();else e.returnValue = false;
41992
- }
41993
- if (isPageDown || isArrowDown) swiper.slideNext();
41994
- if (isPageUp || isArrowUp) swiper.slidePrev();
41995
- }
41996
- emit('keyPress', kc);
41997
- return undefined;
41998
- }
41999
- function enable() {
42000
- if (swiper.keyboard.enabled) return;
42001
- document.addEventListener('keydown', handle);
42002
- swiper.keyboard.enabled = true;
42003
- }
42004
- function disable() {
42005
- if (!swiper.keyboard.enabled) return;
42006
- document.removeEventListener('keydown', handle);
42007
- swiper.keyboard.enabled = false;
42008
- }
42009
- on('init', () => {
42010
- if (swiper.params.keyboard.enabled) {
42011
- enable();
42012
- }
42013
- });
42014
- on('destroy', () => {
42015
- if (swiper.keyboard.enabled) {
42016
- disable();
42017
- }
42018
- });
42019
- Object.assign(swiper.keyboard, {
42020
- enable,
42021
- disable
42022
- });
42023
- }
42024
-
42025
41897
  /* eslint-disable consistent-return */
42026
41898
  function Mousewheel({
42027
41899
  swiper,
@@ -42422,192 +42294,6 @@ function createElementIfNotDefined(swiper, originalParams, params, checkProps) {
42422
42294
  return params;
42423
42295
  }
42424
42296
 
42425
- function Navigation({
42426
- swiper,
42427
- extendParams,
42428
- on,
42429
- emit
42430
- }) {
42431
- extendParams({
42432
- navigation: {
42433
- nextEl: null,
42434
- prevEl: null,
42435
- hideOnClick: false,
42436
- disabledClass: 'swiper-button-disabled',
42437
- hiddenClass: 'swiper-button-hidden',
42438
- lockClass: 'swiper-button-lock',
42439
- navigationDisabledClass: 'swiper-navigation-disabled'
42440
- }
42441
- });
42442
- swiper.navigation = {
42443
- nextEl: null,
42444
- prevEl: null
42445
- };
42446
- const makeElementsArray = el => {
42447
- if (!Array.isArray(el)) el = [el].filter(e => !!e);
42448
- return el;
42449
- };
42450
- function getEl(el) {
42451
- let res;
42452
- if (el && typeof el === 'string' && swiper.isElement) {
42453
- res = swiper.el.shadowRoot.querySelector(el);
42454
- if (res) return res;
42455
- }
42456
- if (el) {
42457
- if (typeof el === 'string') res = [...document.querySelectorAll(el)];
42458
- if (swiper.params.uniqueNavElements && typeof el === 'string' && res.length > 1 && swiper.el.querySelectorAll(el).length === 1) {
42459
- res = swiper.el.querySelector(el);
42460
- }
42461
- }
42462
- if (el && !res) return el;
42463
- // if (Array.isArray(res) && res.length === 1) res = res[0];
42464
- return res;
42465
- }
42466
- function toggleEl(el, disabled) {
42467
- const params = swiper.params.navigation;
42468
- el = makeElementsArray(el);
42469
- el.forEach(subEl => {
42470
- if (subEl) {
42471
- subEl.classList[disabled ? 'add' : 'remove'](...params.disabledClass.split(' '));
42472
- if (subEl.tagName === 'BUTTON') subEl.disabled = disabled;
42473
- if (swiper.params.watchOverflow && swiper.enabled) {
42474
- subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);
42475
- }
42476
- }
42477
- });
42478
- }
42479
- function update() {
42480
- // Update Navigation Buttons
42481
- const {
42482
- nextEl,
42483
- prevEl
42484
- } = swiper.navigation;
42485
- if (swiper.params.loop) {
42486
- toggleEl(prevEl, false);
42487
- toggleEl(nextEl, false);
42488
- return;
42489
- }
42490
- toggleEl(prevEl, swiper.isBeginning && !swiper.params.rewind);
42491
- toggleEl(nextEl, swiper.isEnd && !swiper.params.rewind);
42492
- }
42493
- function onPrevClick(e) {
42494
- e.preventDefault();
42495
- if (swiper.isBeginning && !swiper.params.loop && !swiper.params.rewind) return;
42496
- swiper.slidePrev();
42497
- emit('navigationPrev');
42498
- }
42499
- function onNextClick(e) {
42500
- e.preventDefault();
42501
- if (swiper.isEnd && !swiper.params.loop && !swiper.params.rewind) return;
42502
- swiper.slideNext();
42503
- emit('navigationNext');
42504
- }
42505
- function init() {
42506
- const params = swiper.params.navigation;
42507
- swiper.params.navigation = createElementIfNotDefined(swiper, swiper.originalParams.navigation, swiper.params.navigation, {
42508
- nextEl: 'swiper-button-next',
42509
- prevEl: 'swiper-button-prev'
42510
- });
42511
- if (!(params.nextEl || params.prevEl)) return;
42512
- let nextEl = getEl(params.nextEl);
42513
- let prevEl = getEl(params.prevEl);
42514
- Object.assign(swiper.navigation, {
42515
- nextEl,
42516
- prevEl
42517
- });
42518
- nextEl = makeElementsArray(nextEl);
42519
- prevEl = makeElementsArray(prevEl);
42520
- const initButton = (el, dir) => {
42521
- if (el) {
42522
- el.addEventListener('click', dir === 'next' ? onNextClick : onPrevClick);
42523
- }
42524
- if (!swiper.enabled && el) {
42525
- el.classList.add(...params.lockClass.split(' '));
42526
- }
42527
- };
42528
- nextEl.forEach(el => initButton(el, 'next'));
42529
- prevEl.forEach(el => initButton(el, 'prev'));
42530
- }
42531
- function destroy() {
42532
- let {
42533
- nextEl,
42534
- prevEl
42535
- } = swiper.navigation;
42536
- nextEl = makeElementsArray(nextEl);
42537
- prevEl = makeElementsArray(prevEl);
42538
- const destroyButton = (el, dir) => {
42539
- el.removeEventListener('click', dir === 'next' ? onNextClick : onPrevClick);
42540
- el.classList.remove(...swiper.params.navigation.disabledClass.split(' '));
42541
- };
42542
- nextEl.forEach(el => destroyButton(el, 'next'));
42543
- prevEl.forEach(el => destroyButton(el, 'prev'));
42544
- }
42545
- on('init', () => {
42546
- if (swiper.params.navigation.enabled === false) {
42547
- // eslint-disable-next-line
42548
- disable();
42549
- } else {
42550
- init();
42551
- update();
42552
- }
42553
- });
42554
- on('toEdge fromEdge lock unlock', () => {
42555
- update();
42556
- });
42557
- on('destroy', () => {
42558
- destroy();
42559
- });
42560
- on('enable disable', () => {
42561
- let {
42562
- nextEl,
42563
- prevEl
42564
- } = swiper.navigation;
42565
- nextEl = makeElementsArray(nextEl);
42566
- prevEl = makeElementsArray(prevEl);
42567
- [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.navigation.lockClass));
42568
- });
42569
- on('click', (_s, e) => {
42570
- let {
42571
- nextEl,
42572
- prevEl
42573
- } = swiper.navigation;
42574
- nextEl = makeElementsArray(nextEl);
42575
- prevEl = makeElementsArray(prevEl);
42576
- const targetEl = e.target;
42577
- if (swiper.params.navigation.hideOnClick && !prevEl.includes(targetEl) && !nextEl.includes(targetEl)) {
42578
- if (swiper.pagination && swiper.params.pagination && swiper.params.pagination.clickable && (swiper.pagination.el === targetEl || swiper.pagination.el.contains(targetEl))) return;
42579
- let isHidden;
42580
- if (nextEl.length) {
42581
- isHidden = nextEl[0].classList.contains(swiper.params.navigation.hiddenClass);
42582
- } else if (prevEl.length) {
42583
- isHidden = prevEl[0].classList.contains(swiper.params.navigation.hiddenClass);
42584
- }
42585
- if (isHidden === true) {
42586
- emit('navigationShow');
42587
- } else {
42588
- emit('navigationHide');
42589
- }
42590
- [...nextEl, ...prevEl].filter(el => !!el).forEach(el => el.classList.toggle(swiper.params.navigation.hiddenClass));
42591
- }
42592
- });
42593
- const enable = () => {
42594
- swiper.el.classList.remove(...swiper.params.navigation.navigationDisabledClass.split(' '));
42595
- init();
42596
- update();
42597
- };
42598
- const disable = () => {
42599
- swiper.el.classList.add(...swiper.params.navigation.navigationDisabledClass.split(' '));
42600
- destroy();
42601
- };
42602
- Object.assign(swiper.navigation, {
42603
- enable,
42604
- disable,
42605
- update,
42606
- init,
42607
- destroy
42608
- });
42609
- }
42610
-
42611
42297
  function classesToSelector(classes = '') {
42612
42298
  return `.${classes.trim().replace(/([\.:!+\/])/g, '\\$1') // eslint-disable-line
42613
42299
  .replace(/ /g, '.')}`;
@@ -43039,352 +42725,6 @@ function Pagination({
43039
42725
  });
43040
42726
  }
43041
42727
 
43042
- function Scrollbar({
43043
- swiper,
43044
- extendParams,
43045
- on,
43046
- emit
43047
- }) {
43048
- const document = getDocument();
43049
- let isTouched = false;
43050
- let timeout = null;
43051
- let dragTimeout = null;
43052
- let dragStartPos;
43053
- let dragSize;
43054
- let trackSize;
43055
- let divider;
43056
- extendParams({
43057
- scrollbar: {
43058
- el: null,
43059
- dragSize: 'auto',
43060
- hide: false,
43061
- draggable: false,
43062
- snapOnRelease: true,
43063
- lockClass: 'swiper-scrollbar-lock',
43064
- dragClass: 'swiper-scrollbar-drag',
43065
- scrollbarDisabledClass: 'swiper-scrollbar-disabled',
43066
- horizontalClass: `swiper-scrollbar-horizontal`,
43067
- verticalClass: `swiper-scrollbar-vertical`
43068
- }
43069
- });
43070
- swiper.scrollbar = {
43071
- el: null,
43072
- dragEl: null
43073
- };
43074
- function setTranslate() {
43075
- if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
43076
- const {
43077
- scrollbar,
43078
- rtlTranslate: rtl
43079
- } = swiper;
43080
- const {
43081
- dragEl,
43082
- el
43083
- } = scrollbar;
43084
- const params = swiper.params.scrollbar;
43085
- const progress = swiper.params.loop ? swiper.progressLoop : swiper.progress;
43086
- let newSize = dragSize;
43087
- let newPos = (trackSize - dragSize) * progress;
43088
- if (rtl) {
43089
- newPos = -newPos;
43090
- if (newPos > 0) {
43091
- newSize = dragSize - newPos;
43092
- newPos = 0;
43093
- } else if (-newPos + dragSize > trackSize) {
43094
- newSize = trackSize + newPos;
43095
- }
43096
- } else if (newPos < 0) {
43097
- newSize = dragSize + newPos;
43098
- newPos = 0;
43099
- } else if (newPos + dragSize > trackSize) {
43100
- newSize = trackSize - newPos;
43101
- }
43102
- if (swiper.isHorizontal()) {
43103
- dragEl.style.transform = `translate3d(${newPos}px, 0, 0)`;
43104
- dragEl.style.width = `${newSize}px`;
43105
- } else {
43106
- dragEl.style.transform = `translate3d(0px, ${newPos}px, 0)`;
43107
- dragEl.style.height = `${newSize}px`;
43108
- }
43109
- if (params.hide) {
43110
- clearTimeout(timeout);
43111
- el.style.opacity = 1;
43112
- timeout = setTimeout(() => {
43113
- el.style.opacity = 0;
43114
- el.style.transitionDuration = '400ms';
43115
- }, 1000);
43116
- }
43117
- }
43118
- function setTransition(duration) {
43119
- if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
43120
- swiper.scrollbar.dragEl.style.transitionDuration = `${duration}ms`;
43121
- }
43122
- function updateSize() {
43123
- if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
43124
- const {
43125
- scrollbar
43126
- } = swiper;
43127
- const {
43128
- dragEl,
43129
- el
43130
- } = scrollbar;
43131
- dragEl.style.width = '';
43132
- dragEl.style.height = '';
43133
- trackSize = swiper.isHorizontal() ? el.offsetWidth : el.offsetHeight;
43134
- divider = swiper.size / (swiper.virtualSize + swiper.params.slidesOffsetBefore - (swiper.params.centeredSlides ? swiper.snapGrid[0] : 0));
43135
- if (swiper.params.scrollbar.dragSize === 'auto') {
43136
- dragSize = trackSize * divider;
43137
- } else {
43138
- dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);
43139
- }
43140
- if (swiper.isHorizontal()) {
43141
- dragEl.style.width = `${dragSize}px`;
43142
- } else {
43143
- dragEl.style.height = `${dragSize}px`;
43144
- }
43145
- if (divider >= 1) {
43146
- el.style.display = 'none';
43147
- } else {
43148
- el.style.display = '';
43149
- }
43150
- if (swiper.params.scrollbar.hide) {
43151
- el.style.opacity = 0;
43152
- }
43153
- if (swiper.params.watchOverflow && swiper.enabled) {
43154
- scrollbar.el.classList[swiper.isLocked ? 'add' : 'remove'](swiper.params.scrollbar.lockClass);
43155
- }
43156
- }
43157
- function getPointerPosition(e) {
43158
- return swiper.isHorizontal() ? e.clientX : e.clientY;
43159
- }
43160
- function setDragPosition(e) {
43161
- const {
43162
- scrollbar,
43163
- rtlTranslate: rtl
43164
- } = swiper;
43165
- const {
43166
- el
43167
- } = scrollbar;
43168
- let positionRatio;
43169
- positionRatio = (getPointerPosition(e) - elementOffset(el)[swiper.isHorizontal() ? 'left' : 'top'] - (dragStartPos !== null ? dragStartPos : dragSize / 2)) / (trackSize - dragSize);
43170
- positionRatio = Math.max(Math.min(positionRatio, 1), 0);
43171
- if (rtl) {
43172
- positionRatio = 1 - positionRatio;
43173
- }
43174
- const position = swiper.minTranslate() + (swiper.maxTranslate() - swiper.minTranslate()) * positionRatio;
43175
- swiper.updateProgress(position);
43176
- swiper.setTranslate(position);
43177
- swiper.updateActiveIndex();
43178
- swiper.updateSlidesClasses();
43179
- }
43180
- function onDragStart(e) {
43181
- const params = swiper.params.scrollbar;
43182
- const {
43183
- scrollbar,
43184
- wrapperEl
43185
- } = swiper;
43186
- const {
43187
- el,
43188
- dragEl
43189
- } = scrollbar;
43190
- isTouched = true;
43191
- dragStartPos = e.target === dragEl ? getPointerPosition(e) - e.target.getBoundingClientRect()[swiper.isHorizontal() ? 'left' : 'top'] : null;
43192
- e.preventDefault();
43193
- e.stopPropagation();
43194
- wrapperEl.style.transitionDuration = '100ms';
43195
- dragEl.style.transitionDuration = '100ms';
43196
- setDragPosition(e);
43197
- clearTimeout(dragTimeout);
43198
- el.style.transitionDuration = '0ms';
43199
- if (params.hide) {
43200
- el.style.opacity = 1;
43201
- }
43202
- if (swiper.params.cssMode) {
43203
- swiper.wrapperEl.style['scroll-snap-type'] = 'none';
43204
- }
43205
- emit('scrollbarDragStart', e);
43206
- }
43207
- function onDragMove(e) {
43208
- const {
43209
- scrollbar,
43210
- wrapperEl
43211
- } = swiper;
43212
- const {
43213
- el,
43214
- dragEl
43215
- } = scrollbar;
43216
- if (!isTouched) return;
43217
- if (e.preventDefault) e.preventDefault();else e.returnValue = false;
43218
- setDragPosition(e);
43219
- wrapperEl.style.transitionDuration = '0ms';
43220
- el.style.transitionDuration = '0ms';
43221
- dragEl.style.transitionDuration = '0ms';
43222
- emit('scrollbarDragMove', e);
43223
- }
43224
- function onDragEnd(e) {
43225
- const params = swiper.params.scrollbar;
43226
- const {
43227
- scrollbar,
43228
- wrapperEl
43229
- } = swiper;
43230
- const {
43231
- el
43232
- } = scrollbar;
43233
- if (!isTouched) return;
43234
- isTouched = false;
43235
- if (swiper.params.cssMode) {
43236
- swiper.wrapperEl.style['scroll-snap-type'] = '';
43237
- wrapperEl.style.transitionDuration = '';
43238
- }
43239
- if (params.hide) {
43240
- clearTimeout(dragTimeout);
43241
- dragTimeout = nextTick(() => {
43242
- el.style.opacity = 0;
43243
- el.style.transitionDuration = '400ms';
43244
- }, 1000);
43245
- }
43246
- emit('scrollbarDragEnd', e);
43247
- if (params.snapOnRelease) {
43248
- swiper.slideToClosest();
43249
- }
43250
- }
43251
- function events(method) {
43252
- const {
43253
- scrollbar,
43254
- params
43255
- } = swiper;
43256
- const el = scrollbar.el;
43257
- if (!el) return;
43258
- const target = el;
43259
- const activeListener = params.passiveListeners ? {
43260
- passive: false,
43261
- capture: false
43262
- } : false;
43263
- const passiveListener = params.passiveListeners ? {
43264
- passive: true,
43265
- capture: false
43266
- } : false;
43267
- if (!target) return;
43268
- const eventMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';
43269
- target[eventMethod]('pointerdown', onDragStart, activeListener);
43270
- document[eventMethod]('pointermove', onDragMove, activeListener);
43271
- document[eventMethod]('pointerup', onDragEnd, passiveListener);
43272
- }
43273
- function enableDraggable() {
43274
- if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
43275
- events('on');
43276
- }
43277
- function disableDraggable() {
43278
- if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
43279
- events('off');
43280
- }
43281
- function init() {
43282
- const {
43283
- scrollbar,
43284
- el: swiperEl
43285
- } = swiper;
43286
- swiper.params.scrollbar = createElementIfNotDefined(swiper, swiper.originalParams.scrollbar, swiper.params.scrollbar, {
43287
- el: 'swiper-scrollbar'
43288
- });
43289
- const params = swiper.params.scrollbar;
43290
- if (!params.el) return;
43291
- let el;
43292
- if (typeof params.el === 'string' && swiper.isElement) {
43293
- el = swiper.el.shadowRoot.querySelector(params.el);
43294
- }
43295
- if (!el && typeof params.el === 'string') {
43296
- el = document.querySelectorAll(params.el);
43297
- } else if (!el) {
43298
- el = params.el;
43299
- }
43300
- if (swiper.params.uniqueNavElements && typeof params.el === 'string' && el.length > 1 && swiperEl.querySelectorAll(params.el).length === 1) {
43301
- el = swiperEl.querySelector(params.el);
43302
- }
43303
- if (el.length > 0) el = el[0];
43304
- el.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
43305
- let dragEl;
43306
- if (el) {
43307
- dragEl = el.querySelector(`.${swiper.params.scrollbar.dragClass}`);
43308
- if (!dragEl) {
43309
- dragEl = createElement('div', swiper.params.scrollbar.dragClass);
43310
- el.append(dragEl);
43311
- }
43312
- }
43313
- Object.assign(scrollbar, {
43314
- el,
43315
- dragEl
43316
- });
43317
- if (params.draggable) {
43318
- enableDraggable();
43319
- }
43320
- if (el) {
43321
- el.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.scrollbar.lockClass);
43322
- }
43323
- }
43324
- function destroy() {
43325
- const params = swiper.params.scrollbar;
43326
- const el = swiper.scrollbar.el;
43327
- if (el) {
43328
- el.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
43329
- }
43330
- disableDraggable();
43331
- }
43332
- on('init', () => {
43333
- if (swiper.params.scrollbar.enabled === false) {
43334
- // eslint-disable-next-line
43335
- disable();
43336
- } else {
43337
- init();
43338
- updateSize();
43339
- setTranslate();
43340
- }
43341
- });
43342
- on('update resize observerUpdate lock unlock', () => {
43343
- updateSize();
43344
- });
43345
- on('setTranslate', () => {
43346
- setTranslate();
43347
- });
43348
- on('setTransition', (_s, duration) => {
43349
- setTransition(duration);
43350
- });
43351
- on('enable disable', () => {
43352
- const {
43353
- el
43354
- } = swiper.scrollbar;
43355
- if (el) {
43356
- el.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.scrollbar.lockClass);
43357
- }
43358
- });
43359
- on('destroy', () => {
43360
- destroy();
43361
- });
43362
- const enable = () => {
43363
- swiper.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);
43364
- if (swiper.scrollbar.el) {
43365
- swiper.scrollbar.el.classList.remove(swiper.params.scrollbar.scrollbarDisabledClass);
43366
- }
43367
- init();
43368
- updateSize();
43369
- setTranslate();
43370
- };
43371
- const disable = () => {
43372
- swiper.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);
43373
- if (swiper.scrollbar.el) {
43374
- swiper.scrollbar.el.classList.add(swiper.params.scrollbar.scrollbarDisabledClass);
43375
- }
43376
- destroy();
43377
- };
43378
- Object.assign(swiper.scrollbar, {
43379
- enable,
43380
- disable,
43381
- updateSize,
43382
- setTranslate,
43383
- init,
43384
- destroy
43385
- });
43386
- }
43387
-
43388
42728
  /* eslint no-underscore-dangle: "off" */
43389
42729
  function Autoplay({
43390
42730
  swiper,
@@ -44262,7 +43602,7 @@ function useIsomorphicLayoutEffect(callback, deps) {
44262
43602
  const SwiperSlideContext = /*#__PURE__*/React.createContext(null);
44263
43603
  const SwiperContext = /*#__PURE__*/React.createContext(null);
44264
43604
 
44265
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
43605
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
44266
43606
  const Swiper = /*#__PURE__*/React.forwardRef(function (_temp, externalElRef) {
44267
43607
  let {
44268
43608
  className,
@@ -44424,7 +43764,7 @@ const Swiper = /*#__PURE__*/React.forwardRef(function (_temp, externalElRef) {
44424
43764
  });
44425
43765
  });
44426
43766
  }
44427
- return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$2({
43767
+ return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$1({
44428
43768
  ref: swiperElRef,
44429
43769
  className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ''}`)
44430
43770
  }, restProps), /*#__PURE__*/React__default["default"].createElement(SwiperContext.Provider, {
@@ -44447,7 +43787,7 @@ const Swiper = /*#__PURE__*/React.forwardRef(function (_temp, externalElRef) {
44447
43787
  });
44448
43788
  Swiper.displayName = 'Swiper';
44449
43789
 
44450
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
43790
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
44451
43791
  const SwiperSlide = /*#__PURE__*/React.forwardRef(function (_temp, externalRef) {
44452
43792
  let {
44453
43793
  tag: Tag = 'div',
@@ -44508,7 +43848,7 @@ const SwiperSlide = /*#__PURE__*/React.forwardRef(function (_temp, externalRef)
44508
43848
  const onLoad = () => {
44509
43849
  setLazyLoaded(true);
44510
43850
  };
44511
- return /*#__PURE__*/React__default["default"].createElement(Tag, _extends$1({
43851
+ return /*#__PURE__*/React__default["default"].createElement(Tag, _extends({
44512
43852
  ref: slideElRef,
44513
43853
  className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ''}`),
44514
43854
  "data-swiper-slide-index": virtualIndex,
@@ -45719,2849 +45059,6 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
45719
45059
  }, button))))));
45720
45060
  };
45721
45061
 
45722
- var lib = {};
45723
-
45724
- var Frame$1 = {};
45725
-
45726
- var propTypes = {exports: {}};
45727
-
45728
- var reactIs = {exports: {}};
45729
-
45730
- var reactIs_production_min = {};
45731
-
45732
- /** @license React v16.13.1
45733
- * react-is.production.min.js
45734
- *
45735
- * Copyright (c) Facebook, Inc. and its affiliates.
45736
- *
45737
- * This source code is licensed under the MIT license found in the
45738
- * LICENSE file in the root directory of this source tree.
45739
- */
45740
-
45741
- var hasRequiredReactIs_production_min;
45742
-
45743
- function requireReactIs_production_min () {
45744
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
45745
- hasRequiredReactIs_production_min = 1;
45746
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
45747
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
45748
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
45749
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
45750
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
45751
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
45752
- return reactIs_production_min;
45753
- }
45754
-
45755
- var reactIs_development = {};
45756
-
45757
- /** @license React v16.13.1
45758
- * react-is.development.js
45759
- *
45760
- * Copyright (c) Facebook, Inc. and its affiliates.
45761
- *
45762
- * This source code is licensed under the MIT license found in the
45763
- * LICENSE file in the root directory of this source tree.
45764
- */
45765
-
45766
- var hasRequiredReactIs_development;
45767
-
45768
- function requireReactIs_development () {
45769
- if (hasRequiredReactIs_development) return reactIs_development;
45770
- hasRequiredReactIs_development = 1;
45771
-
45772
-
45773
-
45774
- if (process.env.NODE_ENV !== "production") {
45775
- (function() {
45776
-
45777
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
45778
- // nor polyfill, then a plain number is used for performance.
45779
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
45780
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
45781
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
45782
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
45783
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
45784
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
45785
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
45786
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
45787
- // (unstable) APIs that have been removed. Can we remove the symbols?
45788
-
45789
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
45790
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
45791
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
45792
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
45793
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
45794
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
45795
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
45796
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
45797
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
45798
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
45799
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
45800
-
45801
- function isValidElementType(type) {
45802
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
45803
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
45804
- }
45805
-
45806
- function typeOf(object) {
45807
- if (typeof object === 'object' && object !== null) {
45808
- var $$typeof = object.$$typeof;
45809
-
45810
- switch ($$typeof) {
45811
- case REACT_ELEMENT_TYPE:
45812
- var type = object.type;
45813
-
45814
- switch (type) {
45815
- case REACT_ASYNC_MODE_TYPE:
45816
- case REACT_CONCURRENT_MODE_TYPE:
45817
- case REACT_FRAGMENT_TYPE:
45818
- case REACT_PROFILER_TYPE:
45819
- case REACT_STRICT_MODE_TYPE:
45820
- case REACT_SUSPENSE_TYPE:
45821
- return type;
45822
-
45823
- default:
45824
- var $$typeofType = type && type.$$typeof;
45825
-
45826
- switch ($$typeofType) {
45827
- case REACT_CONTEXT_TYPE:
45828
- case REACT_FORWARD_REF_TYPE:
45829
- case REACT_LAZY_TYPE:
45830
- case REACT_MEMO_TYPE:
45831
- case REACT_PROVIDER_TYPE:
45832
- return $$typeofType;
45833
-
45834
- default:
45835
- return $$typeof;
45836
- }
45837
-
45838
- }
45839
-
45840
- case REACT_PORTAL_TYPE:
45841
- return $$typeof;
45842
- }
45843
- }
45844
-
45845
- return undefined;
45846
- } // AsyncMode is deprecated along with isAsyncMode
45847
-
45848
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
45849
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
45850
- var ContextConsumer = REACT_CONTEXT_TYPE;
45851
- var ContextProvider = REACT_PROVIDER_TYPE;
45852
- var Element = REACT_ELEMENT_TYPE;
45853
- var ForwardRef = REACT_FORWARD_REF_TYPE;
45854
- var Fragment = REACT_FRAGMENT_TYPE;
45855
- var Lazy = REACT_LAZY_TYPE;
45856
- var Memo = REACT_MEMO_TYPE;
45857
- var Portal = REACT_PORTAL_TYPE;
45858
- var Profiler = REACT_PROFILER_TYPE;
45859
- var StrictMode = REACT_STRICT_MODE_TYPE;
45860
- var Suspense = REACT_SUSPENSE_TYPE;
45861
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
45862
-
45863
- function isAsyncMode(object) {
45864
- {
45865
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
45866
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
45867
-
45868
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
45869
- }
45870
- }
45871
-
45872
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
45873
- }
45874
- function isConcurrentMode(object) {
45875
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
45876
- }
45877
- function isContextConsumer(object) {
45878
- return typeOf(object) === REACT_CONTEXT_TYPE;
45879
- }
45880
- function isContextProvider(object) {
45881
- return typeOf(object) === REACT_PROVIDER_TYPE;
45882
- }
45883
- function isElement(object) {
45884
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
45885
- }
45886
- function isForwardRef(object) {
45887
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
45888
- }
45889
- function isFragment(object) {
45890
- return typeOf(object) === REACT_FRAGMENT_TYPE;
45891
- }
45892
- function isLazy(object) {
45893
- return typeOf(object) === REACT_LAZY_TYPE;
45894
- }
45895
- function isMemo(object) {
45896
- return typeOf(object) === REACT_MEMO_TYPE;
45897
- }
45898
- function isPortal(object) {
45899
- return typeOf(object) === REACT_PORTAL_TYPE;
45900
- }
45901
- function isProfiler(object) {
45902
- return typeOf(object) === REACT_PROFILER_TYPE;
45903
- }
45904
- function isStrictMode(object) {
45905
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
45906
- }
45907
- function isSuspense(object) {
45908
- return typeOf(object) === REACT_SUSPENSE_TYPE;
45909
- }
45910
-
45911
- reactIs_development.AsyncMode = AsyncMode;
45912
- reactIs_development.ConcurrentMode = ConcurrentMode;
45913
- reactIs_development.ContextConsumer = ContextConsumer;
45914
- reactIs_development.ContextProvider = ContextProvider;
45915
- reactIs_development.Element = Element;
45916
- reactIs_development.ForwardRef = ForwardRef;
45917
- reactIs_development.Fragment = Fragment;
45918
- reactIs_development.Lazy = Lazy;
45919
- reactIs_development.Memo = Memo;
45920
- reactIs_development.Portal = Portal;
45921
- reactIs_development.Profiler = Profiler;
45922
- reactIs_development.StrictMode = StrictMode;
45923
- reactIs_development.Suspense = Suspense;
45924
- reactIs_development.isAsyncMode = isAsyncMode;
45925
- reactIs_development.isConcurrentMode = isConcurrentMode;
45926
- reactIs_development.isContextConsumer = isContextConsumer;
45927
- reactIs_development.isContextProvider = isContextProvider;
45928
- reactIs_development.isElement = isElement;
45929
- reactIs_development.isForwardRef = isForwardRef;
45930
- reactIs_development.isFragment = isFragment;
45931
- reactIs_development.isLazy = isLazy;
45932
- reactIs_development.isMemo = isMemo;
45933
- reactIs_development.isPortal = isPortal;
45934
- reactIs_development.isProfiler = isProfiler;
45935
- reactIs_development.isStrictMode = isStrictMode;
45936
- reactIs_development.isSuspense = isSuspense;
45937
- reactIs_development.isValidElementType = isValidElementType;
45938
- reactIs_development.typeOf = typeOf;
45939
- })();
45940
- }
45941
- return reactIs_development;
45942
- }
45943
-
45944
- var hasRequiredReactIs;
45945
-
45946
- function requireReactIs () {
45947
- if (hasRequiredReactIs) return reactIs.exports;
45948
- hasRequiredReactIs = 1;
45949
- (function (module) {
45950
-
45951
- if (process.env.NODE_ENV === 'production') {
45952
- module.exports = requireReactIs_production_min();
45953
- } else {
45954
- module.exports = requireReactIs_development();
45955
- }
45956
- } (reactIs));
45957
- return reactIs.exports;
45958
- }
45959
-
45960
- /*
45961
- object-assign
45962
- (c) Sindre Sorhus
45963
- @license MIT
45964
- */
45965
-
45966
- var objectAssign;
45967
- var hasRequiredObjectAssign;
45968
-
45969
- function requireObjectAssign () {
45970
- if (hasRequiredObjectAssign) return objectAssign;
45971
- hasRequiredObjectAssign = 1;
45972
- /* eslint-disable no-unused-vars */
45973
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
45974
- var hasOwnProperty = Object.prototype.hasOwnProperty;
45975
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
45976
-
45977
- function toObject(val) {
45978
- if (val === null || val === undefined) {
45979
- throw new TypeError('Object.assign cannot be called with null or undefined');
45980
- }
45981
-
45982
- return Object(val);
45983
- }
45984
-
45985
- function shouldUseNative() {
45986
- try {
45987
- if (!Object.assign) {
45988
- return false;
45989
- }
45990
-
45991
- // Detect buggy property enumeration order in older V8 versions.
45992
-
45993
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
45994
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
45995
- test1[5] = 'de';
45996
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
45997
- return false;
45998
- }
45999
-
46000
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
46001
- var test2 = {};
46002
- for (var i = 0; i < 10; i++) {
46003
- test2['_' + String.fromCharCode(i)] = i;
46004
- }
46005
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
46006
- return test2[n];
46007
- });
46008
- if (order2.join('') !== '0123456789') {
46009
- return false;
46010
- }
46011
-
46012
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
46013
- var test3 = {};
46014
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
46015
- test3[letter] = letter;
46016
- });
46017
- if (Object.keys(Object.assign({}, test3)).join('') !==
46018
- 'abcdefghijklmnopqrst') {
46019
- return false;
46020
- }
46021
-
46022
- return true;
46023
- } catch (err) {
46024
- // We don't expect any of the above to throw, but better to be safe.
46025
- return false;
46026
- }
46027
- }
46028
-
46029
- objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
46030
- var from;
46031
- var to = toObject(target);
46032
- var symbols;
46033
-
46034
- for (var s = 1; s < arguments.length; s++) {
46035
- from = Object(arguments[s]);
46036
-
46037
- for (var key in from) {
46038
- if (hasOwnProperty.call(from, key)) {
46039
- to[key] = from[key];
46040
- }
46041
- }
46042
-
46043
- if (getOwnPropertySymbols) {
46044
- symbols = getOwnPropertySymbols(from);
46045
- for (var i = 0; i < symbols.length; i++) {
46046
- if (propIsEnumerable.call(from, symbols[i])) {
46047
- to[symbols[i]] = from[symbols[i]];
46048
- }
46049
- }
46050
- }
46051
- }
46052
-
46053
- return to;
46054
- };
46055
- return objectAssign;
46056
- }
46057
-
46058
- /**
46059
- * Copyright (c) 2013-present, Facebook, Inc.
46060
- *
46061
- * This source code is licensed under the MIT license found in the
46062
- * LICENSE file in the root directory of this source tree.
46063
- */
46064
-
46065
- var ReactPropTypesSecret_1;
46066
- var hasRequiredReactPropTypesSecret;
46067
-
46068
- function requireReactPropTypesSecret () {
46069
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
46070
- hasRequiredReactPropTypesSecret = 1;
46071
-
46072
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
46073
-
46074
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
46075
- return ReactPropTypesSecret_1;
46076
- }
46077
-
46078
- var has;
46079
- var hasRequiredHas;
46080
-
46081
- function requireHas () {
46082
- if (hasRequiredHas) return has;
46083
- hasRequiredHas = 1;
46084
- has = Function.call.bind(Object.prototype.hasOwnProperty);
46085
- return has;
46086
- }
46087
-
46088
- /**
46089
- * Copyright (c) 2013-present, Facebook, Inc.
46090
- *
46091
- * This source code is licensed under the MIT license found in the
46092
- * LICENSE file in the root directory of this source tree.
46093
- */
46094
-
46095
- var checkPropTypes_1;
46096
- var hasRequiredCheckPropTypes;
46097
-
46098
- function requireCheckPropTypes () {
46099
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
46100
- hasRequiredCheckPropTypes = 1;
46101
-
46102
- var printWarning = function() {};
46103
-
46104
- if (process.env.NODE_ENV !== 'production') {
46105
- var ReactPropTypesSecret = requireReactPropTypesSecret();
46106
- var loggedTypeFailures = {};
46107
- var has = requireHas();
46108
-
46109
- printWarning = function(text) {
46110
- var message = 'Warning: ' + text;
46111
- if (typeof console !== 'undefined') {
46112
- console.error(message);
46113
- }
46114
- try {
46115
- // --- Welcome to debugging React ---
46116
- // This error was thrown as a convenience so that you can use this stack
46117
- // to find the callsite that caused this warning to fire.
46118
- throw new Error(message);
46119
- } catch (x) { /**/ }
46120
- };
46121
- }
46122
-
46123
- /**
46124
- * Assert that the values match with the type specs.
46125
- * Error messages are memorized and will only be shown once.
46126
- *
46127
- * @param {object} typeSpecs Map of name to a ReactPropType
46128
- * @param {object} values Runtime values that need to be type-checked
46129
- * @param {string} location e.g. "prop", "context", "child context"
46130
- * @param {string} componentName Name of the component for error messages.
46131
- * @param {?Function} getStack Returns the component stack.
46132
- * @private
46133
- */
46134
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
46135
- if (process.env.NODE_ENV !== 'production') {
46136
- for (var typeSpecName in typeSpecs) {
46137
- if (has(typeSpecs, typeSpecName)) {
46138
- var error;
46139
- // Prop type validation may throw. In case they do, we don't want to
46140
- // fail the render phase where it didn't fail before. So we log it.
46141
- // After these have been cleaned up, we'll let them throw.
46142
- try {
46143
- // This is intentionally an invariant that gets caught. It's the same
46144
- // behavior as without this statement except with a better message.
46145
- if (typeof typeSpecs[typeSpecName] !== 'function') {
46146
- var err = Error(
46147
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
46148
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
46149
- 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
46150
- );
46151
- err.name = 'Invariant Violation';
46152
- throw err;
46153
- }
46154
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
46155
- } catch (ex) {
46156
- error = ex;
46157
- }
46158
- if (error && !(error instanceof Error)) {
46159
- printWarning(
46160
- (componentName || 'React class') + ': type specification of ' +
46161
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
46162
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
46163
- 'You may have forgotten to pass an argument to the type checker ' +
46164
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
46165
- 'shape all require an argument).'
46166
- );
46167
- }
46168
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
46169
- // Only monitor this failure once because there tends to be a lot of the
46170
- // same error.
46171
- loggedTypeFailures[error.message] = true;
46172
-
46173
- var stack = getStack ? getStack() : '';
46174
-
46175
- printWarning(
46176
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
46177
- );
46178
- }
46179
- }
46180
- }
46181
- }
46182
- }
46183
-
46184
- /**
46185
- * Resets warning cache when testing.
46186
- *
46187
- * @private
46188
- */
46189
- checkPropTypes.resetWarningCache = function() {
46190
- if (process.env.NODE_ENV !== 'production') {
46191
- loggedTypeFailures = {};
46192
- }
46193
- };
46194
-
46195
- checkPropTypes_1 = checkPropTypes;
46196
- return checkPropTypes_1;
46197
- }
46198
-
46199
- /**
46200
- * Copyright (c) 2013-present, Facebook, Inc.
46201
- *
46202
- * This source code is licensed under the MIT license found in the
46203
- * LICENSE file in the root directory of this source tree.
46204
- */
46205
-
46206
- var factoryWithTypeCheckers;
46207
- var hasRequiredFactoryWithTypeCheckers;
46208
-
46209
- function requireFactoryWithTypeCheckers () {
46210
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
46211
- hasRequiredFactoryWithTypeCheckers = 1;
46212
-
46213
- var ReactIs = requireReactIs();
46214
- var assign = requireObjectAssign();
46215
-
46216
- var ReactPropTypesSecret = requireReactPropTypesSecret();
46217
- var has = requireHas();
46218
- var checkPropTypes = requireCheckPropTypes();
46219
-
46220
- var printWarning = function() {};
46221
-
46222
- if (process.env.NODE_ENV !== 'production') {
46223
- printWarning = function(text) {
46224
- var message = 'Warning: ' + text;
46225
- if (typeof console !== 'undefined') {
46226
- console.error(message);
46227
- }
46228
- try {
46229
- // --- Welcome to debugging React ---
46230
- // This error was thrown as a convenience so that you can use this stack
46231
- // to find the callsite that caused this warning to fire.
46232
- throw new Error(message);
46233
- } catch (x) {}
46234
- };
46235
- }
46236
-
46237
- function emptyFunctionThatReturnsNull() {
46238
- return null;
46239
- }
46240
-
46241
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
46242
- /* global Symbol */
46243
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
46244
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
46245
-
46246
- /**
46247
- * Returns the iterator method function contained on the iterable object.
46248
- *
46249
- * Be sure to invoke the function with the iterable as context:
46250
- *
46251
- * var iteratorFn = getIteratorFn(myIterable);
46252
- * if (iteratorFn) {
46253
- * var iterator = iteratorFn.call(myIterable);
46254
- * ...
46255
- * }
46256
- *
46257
- * @param {?object} maybeIterable
46258
- * @return {?function}
46259
- */
46260
- function getIteratorFn(maybeIterable) {
46261
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
46262
- if (typeof iteratorFn === 'function') {
46263
- return iteratorFn;
46264
- }
46265
- }
46266
-
46267
- /**
46268
- * Collection of methods that allow declaration and validation of props that are
46269
- * supplied to React components. Example usage:
46270
- *
46271
- * var Props = require('ReactPropTypes');
46272
- * var MyArticle = React.createClass({
46273
- * propTypes: {
46274
- * // An optional string prop named "description".
46275
- * description: Props.string,
46276
- *
46277
- * // A required enum prop named "category".
46278
- * category: Props.oneOf(['News','Photos']).isRequired,
46279
- *
46280
- * // A prop named "dialog" that requires an instance of Dialog.
46281
- * dialog: Props.instanceOf(Dialog).isRequired
46282
- * },
46283
- * render: function() { ... }
46284
- * });
46285
- *
46286
- * A more formal specification of how these methods are used:
46287
- *
46288
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
46289
- * decl := ReactPropTypes.{type}(.isRequired)?
46290
- *
46291
- * Each and every declaration produces a function with the same signature. This
46292
- * allows the creation of custom validation functions. For example:
46293
- *
46294
- * var MyLink = React.createClass({
46295
- * propTypes: {
46296
- * // An optional string or URI prop named "href".
46297
- * href: function(props, propName, componentName) {
46298
- * var propValue = props[propName];
46299
- * if (propValue != null && typeof propValue !== 'string' &&
46300
- * !(propValue instanceof URI)) {
46301
- * return new Error(
46302
- * 'Expected a string or an URI for ' + propName + ' in ' +
46303
- * componentName
46304
- * );
46305
- * }
46306
- * }
46307
- * },
46308
- * render: function() {...}
46309
- * });
46310
- *
46311
- * @internal
46312
- */
46313
-
46314
- var ANONYMOUS = '<<anonymous>>';
46315
-
46316
- // Important!
46317
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
46318
- var ReactPropTypes = {
46319
- array: createPrimitiveTypeChecker('array'),
46320
- bigint: createPrimitiveTypeChecker('bigint'),
46321
- bool: createPrimitiveTypeChecker('boolean'),
46322
- func: createPrimitiveTypeChecker('function'),
46323
- number: createPrimitiveTypeChecker('number'),
46324
- object: createPrimitiveTypeChecker('object'),
46325
- string: createPrimitiveTypeChecker('string'),
46326
- symbol: createPrimitiveTypeChecker('symbol'),
46327
-
46328
- any: createAnyTypeChecker(),
46329
- arrayOf: createArrayOfTypeChecker,
46330
- element: createElementTypeChecker(),
46331
- elementType: createElementTypeTypeChecker(),
46332
- instanceOf: createInstanceTypeChecker,
46333
- node: createNodeChecker(),
46334
- objectOf: createObjectOfTypeChecker,
46335
- oneOf: createEnumTypeChecker,
46336
- oneOfType: createUnionTypeChecker,
46337
- shape: createShapeTypeChecker,
46338
- exact: createStrictShapeTypeChecker,
46339
- };
46340
-
46341
- /**
46342
- * inlined Object.is polyfill to avoid requiring consumers ship their own
46343
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
46344
- */
46345
- /*eslint-disable no-self-compare*/
46346
- function is(x, y) {
46347
- // SameValue algorithm
46348
- if (x === y) {
46349
- // Steps 1-5, 7-10
46350
- // Steps 6.b-6.e: +0 != -0
46351
- return x !== 0 || 1 / x === 1 / y;
46352
- } else {
46353
- // Step 6.a: NaN == NaN
46354
- return x !== x && y !== y;
46355
- }
46356
- }
46357
- /*eslint-enable no-self-compare*/
46358
-
46359
- /**
46360
- * We use an Error-like object for backward compatibility as people may call
46361
- * PropTypes directly and inspect their output. However, we don't use real
46362
- * Errors anymore. We don't inspect their stack anyway, and creating them
46363
- * is prohibitively expensive if they are created too often, such as what
46364
- * happens in oneOfType() for any type before the one that matched.
46365
- */
46366
- function PropTypeError(message, data) {
46367
- this.message = message;
46368
- this.data = data && typeof data === 'object' ? data: {};
46369
- this.stack = '';
46370
- }
46371
- // Make `instanceof Error` still work for returned errors.
46372
- PropTypeError.prototype = Error.prototype;
46373
-
46374
- function createChainableTypeChecker(validate) {
46375
- if (process.env.NODE_ENV !== 'production') {
46376
- var manualPropTypeCallCache = {};
46377
- var manualPropTypeWarningCount = 0;
46378
- }
46379
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
46380
- componentName = componentName || ANONYMOUS;
46381
- propFullName = propFullName || propName;
46382
-
46383
- if (secret !== ReactPropTypesSecret) {
46384
- if (throwOnDirectAccess) {
46385
- // New behavior only for users of `prop-types` package
46386
- var err = new Error(
46387
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
46388
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
46389
- 'Read more at http://fb.me/use-check-prop-types'
46390
- );
46391
- err.name = 'Invariant Violation';
46392
- throw err;
46393
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
46394
- // Old behavior for people using React.PropTypes
46395
- var cacheKey = componentName + ':' + propName;
46396
- if (
46397
- !manualPropTypeCallCache[cacheKey] &&
46398
- // Avoid spamming the console because they are often not actionable except for lib authors
46399
- manualPropTypeWarningCount < 3
46400
- ) {
46401
- printWarning(
46402
- 'You are manually calling a React.PropTypes validation ' +
46403
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
46404
- 'and will throw in the standalone `prop-types` package. ' +
46405
- 'You may be seeing this warning due to a third-party PropTypes ' +
46406
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
46407
- );
46408
- manualPropTypeCallCache[cacheKey] = true;
46409
- manualPropTypeWarningCount++;
46410
- }
46411
- }
46412
- }
46413
- if (props[propName] == null) {
46414
- if (isRequired) {
46415
- if (props[propName] === null) {
46416
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
46417
- }
46418
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
46419
- }
46420
- return null;
46421
- } else {
46422
- return validate(props, propName, componentName, location, propFullName);
46423
- }
46424
- }
46425
-
46426
- var chainedCheckType = checkType.bind(null, false);
46427
- chainedCheckType.isRequired = checkType.bind(null, true);
46428
-
46429
- return chainedCheckType;
46430
- }
46431
-
46432
- function createPrimitiveTypeChecker(expectedType) {
46433
- function validate(props, propName, componentName, location, propFullName, secret) {
46434
- var propValue = props[propName];
46435
- var propType = getPropType(propValue);
46436
- if (propType !== expectedType) {
46437
- // `propValue` being instance of, say, date/regexp, pass the 'object'
46438
- // check, but we can offer a more precise error message here rather than
46439
- // 'of type `object`'.
46440
- var preciseType = getPreciseType(propValue);
46441
-
46442
- return new PropTypeError(
46443
- 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
46444
- {expectedType: expectedType}
46445
- );
46446
- }
46447
- return null;
46448
- }
46449
- return createChainableTypeChecker(validate);
46450
- }
46451
-
46452
- function createAnyTypeChecker() {
46453
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
46454
- }
46455
-
46456
- function createArrayOfTypeChecker(typeChecker) {
46457
- function validate(props, propName, componentName, location, propFullName) {
46458
- if (typeof typeChecker !== 'function') {
46459
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
46460
- }
46461
- var propValue = props[propName];
46462
- if (!Array.isArray(propValue)) {
46463
- var propType = getPropType(propValue);
46464
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
46465
- }
46466
- for (var i = 0; i < propValue.length; i++) {
46467
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
46468
- if (error instanceof Error) {
46469
- return error;
46470
- }
46471
- }
46472
- return null;
46473
- }
46474
- return createChainableTypeChecker(validate);
46475
- }
46476
-
46477
- function createElementTypeChecker() {
46478
- function validate(props, propName, componentName, location, propFullName) {
46479
- var propValue = props[propName];
46480
- if (!isValidElement(propValue)) {
46481
- var propType = getPropType(propValue);
46482
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
46483
- }
46484
- return null;
46485
- }
46486
- return createChainableTypeChecker(validate);
46487
- }
46488
-
46489
- function createElementTypeTypeChecker() {
46490
- function validate(props, propName, componentName, location, propFullName) {
46491
- var propValue = props[propName];
46492
- if (!ReactIs.isValidElementType(propValue)) {
46493
- var propType = getPropType(propValue);
46494
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
46495
- }
46496
- return null;
46497
- }
46498
- return createChainableTypeChecker(validate);
46499
- }
46500
-
46501
- function createInstanceTypeChecker(expectedClass) {
46502
- function validate(props, propName, componentName, location, propFullName) {
46503
- if (!(props[propName] instanceof expectedClass)) {
46504
- var expectedClassName = expectedClass.name || ANONYMOUS;
46505
- var actualClassName = getClassName(props[propName]);
46506
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
46507
- }
46508
- return null;
46509
- }
46510
- return createChainableTypeChecker(validate);
46511
- }
46512
-
46513
- function createEnumTypeChecker(expectedValues) {
46514
- if (!Array.isArray(expectedValues)) {
46515
- if (process.env.NODE_ENV !== 'production') {
46516
- if (arguments.length > 1) {
46517
- printWarning(
46518
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
46519
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
46520
- );
46521
- } else {
46522
- printWarning('Invalid argument supplied to oneOf, expected an array.');
46523
- }
46524
- }
46525
- return emptyFunctionThatReturnsNull;
46526
- }
46527
-
46528
- function validate(props, propName, componentName, location, propFullName) {
46529
- var propValue = props[propName];
46530
- for (var i = 0; i < expectedValues.length; i++) {
46531
- if (is(propValue, expectedValues[i])) {
46532
- return null;
46533
- }
46534
- }
46535
-
46536
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
46537
- var type = getPreciseType(value);
46538
- if (type === 'symbol') {
46539
- return String(value);
46540
- }
46541
- return value;
46542
- });
46543
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
46544
- }
46545
- return createChainableTypeChecker(validate);
46546
- }
46547
-
46548
- function createObjectOfTypeChecker(typeChecker) {
46549
- function validate(props, propName, componentName, location, propFullName) {
46550
- if (typeof typeChecker !== 'function') {
46551
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
46552
- }
46553
- var propValue = props[propName];
46554
- var propType = getPropType(propValue);
46555
- if (propType !== 'object') {
46556
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
46557
- }
46558
- for (var key in propValue) {
46559
- if (has(propValue, key)) {
46560
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
46561
- if (error instanceof Error) {
46562
- return error;
46563
- }
46564
- }
46565
- }
46566
- return null;
46567
- }
46568
- return createChainableTypeChecker(validate);
46569
- }
46570
-
46571
- function createUnionTypeChecker(arrayOfTypeCheckers) {
46572
- if (!Array.isArray(arrayOfTypeCheckers)) {
46573
- process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
46574
- return emptyFunctionThatReturnsNull;
46575
- }
46576
-
46577
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
46578
- var checker = arrayOfTypeCheckers[i];
46579
- if (typeof checker !== 'function') {
46580
- printWarning(
46581
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
46582
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
46583
- );
46584
- return emptyFunctionThatReturnsNull;
46585
- }
46586
- }
46587
-
46588
- function validate(props, propName, componentName, location, propFullName) {
46589
- var expectedTypes = [];
46590
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
46591
- var checker = arrayOfTypeCheckers[i];
46592
- var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
46593
- if (checkerResult == null) {
46594
- return null;
46595
- }
46596
- if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
46597
- expectedTypes.push(checkerResult.data.expectedType);
46598
- }
46599
- }
46600
- var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
46601
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
46602
- }
46603
- return createChainableTypeChecker(validate);
46604
- }
46605
-
46606
- function createNodeChecker() {
46607
- function validate(props, propName, componentName, location, propFullName) {
46608
- if (!isNode(props[propName])) {
46609
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
46610
- }
46611
- return null;
46612
- }
46613
- return createChainableTypeChecker(validate);
46614
- }
46615
-
46616
- function invalidValidatorError(componentName, location, propFullName, key, type) {
46617
- return new PropTypeError(
46618
- (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
46619
- 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
46620
- );
46621
- }
46622
-
46623
- function createShapeTypeChecker(shapeTypes) {
46624
- function validate(props, propName, componentName, location, propFullName) {
46625
- var propValue = props[propName];
46626
- var propType = getPropType(propValue);
46627
- if (propType !== 'object') {
46628
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
46629
- }
46630
- for (var key in shapeTypes) {
46631
- var checker = shapeTypes[key];
46632
- if (typeof checker !== 'function') {
46633
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
46634
- }
46635
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
46636
- if (error) {
46637
- return error;
46638
- }
46639
- }
46640
- return null;
46641
- }
46642
- return createChainableTypeChecker(validate);
46643
- }
46644
-
46645
- function createStrictShapeTypeChecker(shapeTypes) {
46646
- function validate(props, propName, componentName, location, propFullName) {
46647
- var propValue = props[propName];
46648
- var propType = getPropType(propValue);
46649
- if (propType !== 'object') {
46650
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
46651
- }
46652
- // We need to check all keys in case some are required but missing from props.
46653
- var allKeys = assign({}, props[propName], shapeTypes);
46654
- for (var key in allKeys) {
46655
- var checker = shapeTypes[key];
46656
- if (has(shapeTypes, key) && typeof checker !== 'function') {
46657
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
46658
- }
46659
- if (!checker) {
46660
- return new PropTypeError(
46661
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
46662
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
46663
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
46664
- );
46665
- }
46666
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
46667
- if (error) {
46668
- return error;
46669
- }
46670
- }
46671
- return null;
46672
- }
46673
-
46674
- return createChainableTypeChecker(validate);
46675
- }
46676
-
46677
- function isNode(propValue) {
46678
- switch (typeof propValue) {
46679
- case 'number':
46680
- case 'string':
46681
- case 'undefined':
46682
- return true;
46683
- case 'boolean':
46684
- return !propValue;
46685
- case 'object':
46686
- if (Array.isArray(propValue)) {
46687
- return propValue.every(isNode);
46688
- }
46689
- if (propValue === null || isValidElement(propValue)) {
46690
- return true;
46691
- }
46692
-
46693
- var iteratorFn = getIteratorFn(propValue);
46694
- if (iteratorFn) {
46695
- var iterator = iteratorFn.call(propValue);
46696
- var step;
46697
- if (iteratorFn !== propValue.entries) {
46698
- while (!(step = iterator.next()).done) {
46699
- if (!isNode(step.value)) {
46700
- return false;
46701
- }
46702
- }
46703
- } else {
46704
- // Iterator will provide entry [k,v] tuples rather than values.
46705
- while (!(step = iterator.next()).done) {
46706
- var entry = step.value;
46707
- if (entry) {
46708
- if (!isNode(entry[1])) {
46709
- return false;
46710
- }
46711
- }
46712
- }
46713
- }
46714
- } else {
46715
- return false;
46716
- }
46717
-
46718
- return true;
46719
- default:
46720
- return false;
46721
- }
46722
- }
46723
-
46724
- function isSymbol(propType, propValue) {
46725
- // Native Symbol.
46726
- if (propType === 'symbol') {
46727
- return true;
46728
- }
46729
-
46730
- // falsy value can't be a Symbol
46731
- if (!propValue) {
46732
- return false;
46733
- }
46734
-
46735
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
46736
- if (propValue['@@toStringTag'] === 'Symbol') {
46737
- return true;
46738
- }
46739
-
46740
- // Fallback for non-spec compliant Symbols which are polyfilled.
46741
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
46742
- return true;
46743
- }
46744
-
46745
- return false;
46746
- }
46747
-
46748
- // Equivalent of `typeof` but with special handling for array and regexp.
46749
- function getPropType(propValue) {
46750
- var propType = typeof propValue;
46751
- if (Array.isArray(propValue)) {
46752
- return 'array';
46753
- }
46754
- if (propValue instanceof RegExp) {
46755
- // Old webkits (at least until Android 4.0) return 'function' rather than
46756
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
46757
- // passes PropTypes.object.
46758
- return 'object';
46759
- }
46760
- if (isSymbol(propType, propValue)) {
46761
- return 'symbol';
46762
- }
46763
- return propType;
46764
- }
46765
-
46766
- // This handles more types than `getPropType`. Only used for error messages.
46767
- // See `createPrimitiveTypeChecker`.
46768
- function getPreciseType(propValue) {
46769
- if (typeof propValue === 'undefined' || propValue === null) {
46770
- return '' + propValue;
46771
- }
46772
- var propType = getPropType(propValue);
46773
- if (propType === 'object') {
46774
- if (propValue instanceof Date) {
46775
- return 'date';
46776
- } else if (propValue instanceof RegExp) {
46777
- return 'regexp';
46778
- }
46779
- }
46780
- return propType;
46781
- }
46782
-
46783
- // Returns a string that is postfixed to a warning about an invalid type.
46784
- // For example, "undefined" or "of type array"
46785
- function getPostfixForTypeWarning(value) {
46786
- var type = getPreciseType(value);
46787
- switch (type) {
46788
- case 'array':
46789
- case 'object':
46790
- return 'an ' + type;
46791
- case 'boolean':
46792
- case 'date':
46793
- case 'regexp':
46794
- return 'a ' + type;
46795
- default:
46796
- return type;
46797
- }
46798
- }
46799
-
46800
- // Returns class name of the object, if any.
46801
- function getClassName(propValue) {
46802
- if (!propValue.constructor || !propValue.constructor.name) {
46803
- return ANONYMOUS;
46804
- }
46805
- return propValue.constructor.name;
46806
- }
46807
-
46808
- ReactPropTypes.checkPropTypes = checkPropTypes;
46809
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
46810
- ReactPropTypes.PropTypes = ReactPropTypes;
46811
-
46812
- return ReactPropTypes;
46813
- };
46814
- return factoryWithTypeCheckers;
46815
- }
46816
-
46817
- /**
46818
- * Copyright (c) 2013-present, Facebook, Inc.
46819
- *
46820
- * This source code is licensed under the MIT license found in the
46821
- * LICENSE file in the root directory of this source tree.
46822
- */
46823
-
46824
- var factoryWithThrowingShims;
46825
- var hasRequiredFactoryWithThrowingShims;
46826
-
46827
- function requireFactoryWithThrowingShims () {
46828
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
46829
- hasRequiredFactoryWithThrowingShims = 1;
46830
-
46831
- var ReactPropTypesSecret = requireReactPropTypesSecret();
46832
-
46833
- function emptyFunction() {}
46834
- function emptyFunctionWithReset() {}
46835
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
46836
-
46837
- factoryWithThrowingShims = function() {
46838
- function shim(props, propName, componentName, location, propFullName, secret) {
46839
- if (secret === ReactPropTypesSecret) {
46840
- // It is still safe when called from React.
46841
- return;
46842
- }
46843
- var err = new Error(
46844
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
46845
- 'Use PropTypes.checkPropTypes() to call them. ' +
46846
- 'Read more at http://fb.me/use-check-prop-types'
46847
- );
46848
- err.name = 'Invariant Violation';
46849
- throw err;
46850
- } shim.isRequired = shim;
46851
- function getShim() {
46852
- return shim;
46853
- } // Important!
46854
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
46855
- var ReactPropTypes = {
46856
- array: shim,
46857
- bigint: shim,
46858
- bool: shim,
46859
- func: shim,
46860
- number: shim,
46861
- object: shim,
46862
- string: shim,
46863
- symbol: shim,
46864
-
46865
- any: shim,
46866
- arrayOf: getShim,
46867
- element: shim,
46868
- elementType: shim,
46869
- instanceOf: getShim,
46870
- node: shim,
46871
- objectOf: getShim,
46872
- oneOf: getShim,
46873
- oneOfType: getShim,
46874
- shape: getShim,
46875
- exact: getShim,
46876
-
46877
- checkPropTypes: emptyFunctionWithReset,
46878
- resetWarningCache: emptyFunction
46879
- };
46880
-
46881
- ReactPropTypes.PropTypes = ReactPropTypes;
46882
-
46883
- return ReactPropTypes;
46884
- };
46885
- return factoryWithThrowingShims;
46886
- }
46887
-
46888
- /**
46889
- * Copyright (c) 2013-present, Facebook, Inc.
46890
- *
46891
- * This source code is licensed under the MIT license found in the
46892
- * LICENSE file in the root directory of this source tree.
46893
- */
46894
-
46895
- if (process.env.NODE_ENV !== 'production') {
46896
- var ReactIs = requireReactIs();
46897
-
46898
- // By explicitly using `prop-types` you are opting into new development behavior.
46899
- // http://fb.me/prop-types-in-prod
46900
- var throwOnDirectAccess = true;
46901
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
46902
- } else {
46903
- // By explicitly using `prop-types` you are opting into new production behavior.
46904
- // http://fb.me/prop-types-in-prod
46905
- propTypes.exports = requireFactoryWithThrowingShims()();
46906
- }
46907
-
46908
- var Context = {};
46909
-
46910
- Object.defineProperty(Context, "__esModule", {
46911
- value: true
46912
- });
46913
- Context.FrameContextConsumer = Context.FrameContextProvider = Context.useFrame = Context.FrameContext = undefined;
46914
-
46915
- var _react$2 = React__default["default"];
46916
-
46917
- var _react2$1 = _interopRequireDefault$2(_react$2);
46918
-
46919
- function _interopRequireDefault$2(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
46920
-
46921
- var doc = void 0;
46922
- var win = void 0;
46923
- if (typeof document !== 'undefined') {
46924
- doc = document;
46925
- }
46926
- if (typeof window !== 'undefined') {
46927
- win = window;
46928
- }
46929
-
46930
- var FrameContext = Context.FrameContext = _react2$1.default.createContext({ document: doc, window: win });
46931
-
46932
- Context.useFrame = function useFrame() {
46933
- return _react2$1.default.useContext(FrameContext);
46934
- };
46935
-
46936
- var FrameContextProvider = FrameContext.Provider,
46937
- FrameContextConsumer = FrameContext.Consumer;
46938
- Context.FrameContextProvider = FrameContextProvider;
46939
- Context.FrameContextConsumer = FrameContextConsumer;
46940
-
46941
- var Content$1 = {};
46942
-
46943
- Object.defineProperty(Content$1, "__esModule", {
46944
- value: true
46945
- });
46946
-
46947
- var _createClass$1 = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
46948
-
46949
- var _react$1 = React__default["default"];
46950
-
46951
- _interopRequireDefault$1(_react$1);
46952
-
46953
- var _propTypes$1 = propTypes.exports;
46954
-
46955
- var _propTypes2$1 = _interopRequireDefault$1(_propTypes$1);
46956
-
46957
- function _interopRequireDefault$1(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
46958
-
46959
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
46960
-
46961
- function _possibleConstructorReturn$1(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
46962
-
46963
- function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } // eslint-disable-line no-unused-vars
46964
-
46965
-
46966
- var Content = function (_Component) {
46967
- _inherits$1(Content, _Component);
46968
-
46969
- function Content() {
46970
- _classCallCheck$1(this, Content);
46971
-
46972
- return _possibleConstructorReturn$1(this, (Content.__proto__ || Object.getPrototypeOf(Content)).apply(this, arguments));
46973
- }
46974
-
46975
- _createClass$1(Content, [{
46976
- key: 'componentDidMount',
46977
- value: function componentDidMount() {
46978
- this.props.contentDidMount();
46979
- }
46980
- }, {
46981
- key: 'componentDidUpdate',
46982
- value: function componentDidUpdate() {
46983
- this.props.contentDidUpdate();
46984
- }
46985
- }, {
46986
- key: 'render',
46987
- value: function render() {
46988
- return _react$1.Children.only(this.props.children);
46989
- }
46990
- }]);
46991
-
46992
- return Content;
46993
- }(_react$1.Component);
46994
-
46995
- Content.propTypes = {
46996
- children: _propTypes2$1.default.element.isRequired,
46997
- contentDidMount: _propTypes2$1.default.func.isRequired,
46998
- contentDidUpdate: _propTypes2$1.default.func.isRequired
46999
- };
47000
- Content$1.default = Content;
47001
-
47002
- Object.defineProperty(Frame$1, "__esModule", {
47003
- value: true
47004
- });
47005
- Frame$1.Frame = undefined;
47006
-
47007
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
47008
-
47009
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
47010
-
47011
- var _react = React__default["default"];
47012
-
47013
- var _react2 = _interopRequireDefault(_react);
47014
-
47015
- var _reactDom = require$$1__default["default"];
47016
-
47017
- var _reactDom2 = _interopRequireDefault(_reactDom);
47018
-
47019
- var _propTypes = propTypes.exports;
47020
-
47021
- var _propTypes2 = _interopRequireDefault(_propTypes);
47022
-
47023
- var _Context = Context;
47024
-
47025
- var _Content = Content$1;
47026
-
47027
- var _Content2 = _interopRequireDefault(_Content);
47028
-
47029
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47030
-
47031
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
47032
-
47033
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
47034
-
47035
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
47036
-
47037
- var Frame = Frame$1.Frame = function (_Component) {
47038
- _inherits(Frame, _Component);
47039
-
47040
- // React warns when you render directly into the body since browser extensions
47041
- // also inject into the body and can mess up React. For this reason
47042
- // initialContent is expected to have a div inside of the body
47043
- // element that we render react into.
47044
- function Frame(props, context) {
47045
- _classCallCheck(this, Frame);
47046
-
47047
- var _this = _possibleConstructorReturn(this, (Frame.__proto__ || Object.getPrototypeOf(Frame)).call(this, props, context));
47048
-
47049
- _this.setRef = function (node) {
47050
- _this.nodeRef.current = node;
47051
-
47052
- var forwardedRef = _this.props.forwardedRef; // eslint-disable-line react/prop-types
47053
-
47054
- if (typeof forwardedRef === 'function') {
47055
- forwardedRef(node);
47056
- } else if (forwardedRef) {
47057
- forwardedRef.current = node;
47058
- }
47059
- };
47060
-
47061
- _this.handleLoad = function () {
47062
- clearInterval(_this.loadCheck);
47063
- // Bail update as some browsers will trigger on both DOMContentLoaded & onLoad ala firefox
47064
- if (!_this.state.iframeLoaded) {
47065
- _this.setState({ iframeLoaded: true });
47066
- }
47067
- };
47068
-
47069
- _this.loadCheck = setInterval(function loadCheckCallback() {
47070
- this.handleLoad();
47071
- }, 500);
47072
-
47073
- _this._isMounted = false;
47074
- _this.nodeRef = _react2.default.createRef();
47075
- _this.state = { iframeLoaded: false };
47076
- return _this;
47077
- }
47078
-
47079
- _createClass(Frame, [{
47080
- key: 'componentDidMount',
47081
- value: function componentDidMount() {
47082
- this._isMounted = true;
47083
-
47084
- var doc = this.getDoc();
47085
-
47086
- if (doc) {
47087
- this.nodeRef.current.contentWindow.addEventListener('DOMContentLoaded', this.handleLoad);
47088
- }
47089
- }
47090
- }, {
47091
- key: 'componentWillUnmount',
47092
- value: function componentWillUnmount() {
47093
- this._isMounted = false;
47094
-
47095
- this.nodeRef.current.removeEventListener('DOMContentLoaded', this.handleLoad);
47096
- }
47097
- }, {
47098
- key: 'getDoc',
47099
- value: function getDoc() {
47100
- return this.nodeRef.current ? this.nodeRef.current.contentDocument : null; // eslint-disable-line
47101
- }
47102
- }, {
47103
- key: 'getMountTarget',
47104
- value: function getMountTarget() {
47105
- var doc = this.getDoc();
47106
- if (this.props.mountTarget) {
47107
- return doc.querySelector(this.props.mountTarget);
47108
- }
47109
- return doc.body.children[0];
47110
- }
47111
-
47112
- // In certain situations on a cold cache DOMContentLoaded never gets called
47113
- // fallback to an interval to check if that's the case
47114
-
47115
- }, {
47116
- key: 'renderFrameContents',
47117
- value: function renderFrameContents() {
47118
- if (!this._isMounted) {
47119
- return null;
47120
- }
47121
-
47122
- var doc = this.getDoc();
47123
-
47124
- if (!doc) {
47125
- return null;
47126
- }
47127
-
47128
- var contentDidMount = this.props.contentDidMount;
47129
- var contentDidUpdate = this.props.contentDidUpdate;
47130
-
47131
- var win = doc.defaultView || doc.parentView;
47132
- var contents = _react2.default.createElement(
47133
- _Content2.default,
47134
- {
47135
- contentDidMount: contentDidMount,
47136
- contentDidUpdate: contentDidUpdate
47137
- },
47138
- _react2.default.createElement(
47139
- _Context.FrameContextProvider,
47140
- { value: { document: doc, window: win } },
47141
- _react2.default.createElement(
47142
- 'div',
47143
- { className: 'frame-content' },
47144
- this.props.children
47145
- )
47146
- )
47147
- );
47148
-
47149
- var mountTarget = this.getMountTarget();
47150
-
47151
- return [_reactDom2.default.createPortal(this.props.head, this.getDoc().head), _reactDom2.default.createPortal(contents, mountTarget)];
47152
- }
47153
- }, {
47154
- key: 'render',
47155
- value: function render() {
47156
- var props = _extends({}, this.props, {
47157
- srcDoc: this.props.initialContent,
47158
- children: undefined // The iframe isn't ready so we drop children from props here. #12, #17
47159
- });
47160
- delete props.head;
47161
- delete props.initialContent;
47162
- delete props.mountTarget;
47163
- delete props.contentDidMount;
47164
- delete props.contentDidUpdate;
47165
- delete props.forwardedRef;
47166
-
47167
- return _react2.default.createElement(
47168
- 'iframe',
47169
- _extends({}, props, { ref: this.setRef, onLoad: this.handleLoad }),
47170
- this.state.iframeLoaded && this.renderFrameContents()
47171
- );
47172
- }
47173
- }]);
47174
-
47175
- return Frame;
47176
- }(_react.Component);
47177
-
47178
- Frame.propTypes = {
47179
- style: _propTypes2.default.object, // eslint-disable-line
47180
- head: _propTypes2.default.node,
47181
- initialContent: _propTypes2.default.string,
47182
- mountTarget: _propTypes2.default.string,
47183
- contentDidMount: _propTypes2.default.func,
47184
- contentDidUpdate: _propTypes2.default.func,
47185
- children: _propTypes2.default.oneOfType([_propTypes2.default.element, _propTypes2.default.arrayOf(_propTypes2.default.element)])
47186
- };
47187
- Frame.defaultProps = {
47188
- style: {},
47189
- head: null,
47190
- children: undefined,
47191
- mountTarget: undefined,
47192
- contentDidMount: function contentDidMount() {},
47193
- contentDidUpdate: function contentDidUpdate() {},
47194
- initialContent: '<!DOCTYPE html><html><head></head><body><div class="frame-root"></div></body></html>'
47195
- };
47196
- Frame$1.default = _react2.default.forwardRef(function (props, ref) {
47197
- return _react2.default.createElement(Frame, _extends({}, props, { forwardedRef: ref }));
47198
- });
47199
-
47200
- (function (exports) {
47201
-
47202
- Object.defineProperty(exports, "__esModule", {
47203
- value: true
47204
- });
47205
-
47206
- var _Frame = Frame$1;
47207
-
47208
- Object.defineProperty(exports, 'default', {
47209
- enumerable: true,
47210
- get: function get() {
47211
- return _interopRequireDefault(_Frame).default;
47212
- }
47213
- });
47214
-
47215
- var _Context = Context;
47216
-
47217
- Object.defineProperty(exports, 'FrameContext', {
47218
- enumerable: true,
47219
- get: function get() {
47220
- return _Context.FrameContext;
47221
- }
47222
- });
47223
- Object.defineProperty(exports, 'FrameContextConsumer', {
47224
- enumerable: true,
47225
- get: function get() {
47226
- return _Context.FrameContextConsumer;
47227
- }
47228
- });
47229
- Object.defineProperty(exports, 'useFrame', {
47230
- enumerable: true,
47231
- get: function get() {
47232
- return _Context.useFrame;
47233
- }
47234
- });
47235
-
47236
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47237
- } (lib));
47238
-
47239
- function cov_2mc6ohzx2y() {
47240
- var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardsWithGallery.jsx";
47241
- var hash = "923656decae931b7633b892914a5660270fb17d3";
47242
- var global = new Function("return this")();
47243
- var gcv = "__coverage__";
47244
- var coverageData = {
47245
- path: "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardsWithGallery.jsx",
47246
- statementMap: {
47247
- "0": {
47248
- start: {
47249
- line: 16,
47250
- column: 25
47251
- },
47252
- end: {
47253
- line: 225,
47254
- column: 1
47255
- }
47256
- },
47257
- "1": {
47258
- start: {
47259
- line: 17,
47260
- column: 38
47261
- },
47262
- end: {
47263
- line: 17,
47264
- column: 50
47265
- }
47266
- },
47267
- "2": {
47268
- start: {
47269
- line: 18,
47270
- column: 40
47271
- },
47272
- end: {
47273
- line: 18,
47274
- column: 51
47275
- }
47276
- },
47277
- "3": {
47278
- start: {
47279
- line: 19,
47280
- column: 20
47281
- },
47282
- end: {
47283
- line: 19,
47284
- column: 32
47285
- }
47286
- },
47287
- "4": {
47288
- start: {
47289
- line: 20,
47290
- column: 21
47291
- },
47292
- end: {
47293
- line: 20,
47294
- column: 31
47295
- }
47296
- },
47297
- "5": {
47298
- start: {
47299
- line: 21,
47300
- column: 33
47301
- },
47302
- end: {
47303
- line: 21,
47304
- column: 47
47305
- }
47306
- },
47307
- "6": {
47308
- start: {
47309
- line: 28,
47310
- column: 6
47311
- },
47312
- end: {
47313
- line: 28,
47314
- column: 16
47315
- }
47316
- },
47317
- "7": {
47318
- start: {
47319
- line: 30,
47320
- column: 2
47321
- },
47322
- end: {
47323
- line: 54,
47324
- column: 15
47325
- }
47326
- },
47327
- "8": {
47328
- start: {
47329
- line: 31,
47330
- column: 25
47331
- },
47332
- end: {
47333
- line: 42,
47334
- column: 5
47335
- }
47336
- },
47337
- "9": {
47338
- start: {
47339
- line: 32,
47340
- column: 6
47341
- },
47342
- end: {
47343
- line: 41,
47344
- column: 7
47345
- }
47346
- },
47347
- "10": {
47348
- start: {
47349
- line: 33,
47350
- column: 8
47351
- },
47352
- end: {
47353
- line: 33,
47354
- column: 26
47355
- }
47356
- },
47357
- "11": {
47358
- start: {
47359
- line: 34,
47360
- column: 13
47361
- },
47362
- end: {
47363
- line: 41,
47364
- column: 7
47365
- }
47366
- },
47367
- "12": {
47368
- start: {
47369
- line: 38,
47370
- column: 8
47371
- },
47372
- end: {
47373
- line: 38,
47374
- column: 26
47375
- }
47376
- },
47377
- "13": {
47378
- start: {
47379
- line: 40,
47380
- column: 8
47381
- },
47382
- end: {
47383
- line: 40,
47384
- column: 26
47385
- }
47386
- },
47387
- "14": {
47388
- start: {
47389
- line: 44,
47390
- column: 4
47391
- },
47392
- end: {
47393
- line: 47,
47394
- column: 5
47395
- }
47396
- },
47397
- "15": {
47398
- start: {
47399
- line: 45,
47400
- column: 6
47401
- },
47402
- end: {
47403
- line: 45,
47404
- column: 21
47405
- }
47406
- },
47407
- "16": {
47408
- start: {
47409
- line: 46,
47410
- column: 6
47411
- },
47412
- end: {
47413
- line: 46,
47414
- column: 54
47415
- }
47416
- },
47417
- "17": {
47418
- start: {
47419
- line: 49,
47420
- column: 4
47421
- },
47422
- end: {
47423
- line: 53,
47424
- column: 6
47425
- }
47426
- },
47427
- "18": {
47428
- start: {
47429
- line: 50,
47430
- column: 6
47431
- },
47432
- end: {
47433
- line: 52,
47434
- column: 7
47435
- }
47436
- },
47437
- "19": {
47438
- start: {
47439
- line: 51,
47440
- column: 8
47441
- },
47442
- end: {
47443
- line: 51,
47444
- column: 59
47445
- }
47446
- },
47447
- "20": {
47448
- start: {
47449
- line: 56,
47450
- column: 22
47451
- },
47452
- end: {
47453
- line: 102,
47454
- column: 3
47455
- }
47456
- },
47457
- "21": {
47458
- start: {
47459
- line: 63,
47460
- column: 4
47461
- },
47462
- end: {
47463
- line: 101,
47464
- column: 7
47465
- }
47466
- },
47467
- "22": {
47468
- start: {
47469
- line: 76,
47470
- column: 10
47471
- },
47472
- end: {
47473
- line: 78,
47474
- column: 24
47475
- }
47476
- },
47477
- "23": {
47478
- start: {
47479
- line: 104,
47480
- column: 24
47481
- },
47482
- end: {
47483
- line: 202,
47484
- column: 3
47485
- }
47486
- },
47487
- "24": {
47488
- start: {
47489
- line: 105,
47490
- column: 4
47491
- },
47492
- end: {
47493
- line: 144,
47494
- column: 5
47495
- }
47496
- },
47497
- "25": {
47498
- start: {
47499
- line: 106,
47500
- column: 6
47501
- },
47502
- end: {
47503
- line: 143,
47504
- column: 8
47505
- }
47506
- },
47507
- "26": {
47508
- start: {
47509
- line: 118,
47510
- column: 14
47511
- },
47512
- end: {
47513
- line: 139,
47514
- column: 20
47515
- }
47516
- },
47517
- "27": {
47518
- start: {
47519
- line: 129,
47520
- column: 36
47521
- },
47522
- end: {
47523
- line: 129,
47524
- column: 56
47525
- }
47526
- },
47527
- "28": {
47528
- start: {
47529
- line: 130,
47530
- column: 36
47531
- },
47532
- end: {
47533
- line: 130,
47534
- column: 53
47535
- }
47536
- },
47537
- "29": {
47538
- start: {
47539
- line: 146,
47540
- column: 4
47541
- },
47542
- end: {
47543
- line: 201,
47544
- column: 6
47545
- }
47546
- },
47547
- "30": {
47548
- start: {
47549
- line: 179,
47550
- column: 12
47551
- },
47552
- end: {
47553
- line: 197,
47554
- column: 26
47555
- }
47556
- },
47557
- "31": {
47558
- start: {
47559
- line: 186,
47560
- column: 36
47561
- },
47562
- end: {
47563
- line: 186,
47564
- column: 56
47565
- }
47566
- },
47567
- "32": {
47568
- start: {
47569
- line: 187,
47570
- column: 36
47571
- },
47572
- end: {
47573
- line: 187,
47574
- column: 53
47575
- }
47576
- },
47577
- "33": {
47578
- start: {
47579
- line: 204,
47580
- column: 2
47581
- },
47582
- end: {
47583
- line: 224,
47584
- column: 4
47585
- }
47586
- }
47587
- },
47588
- fnMap: {
47589
- "0": {
47590
- name: "(anonymous_0)",
47591
- decl: {
47592
- start: {
47593
- line: 16,
47594
- column: 25
47595
- },
47596
- end: {
47597
- line: 16,
47598
- column: 26
47599
- }
47600
- },
47601
- loc: {
47602
- start: {
47603
- line: 16,
47604
- column: 69
47605
- },
47606
- end: {
47607
- line: 225,
47608
- column: 1
47609
- }
47610
- },
47611
- line: 16
47612
- },
47613
- "1": {
47614
- name: "(anonymous_1)",
47615
- decl: {
47616
- start: {
47617
- line: 30,
47618
- column: 12
47619
- },
47620
- end: {
47621
- line: 30,
47622
- column: 13
47623
- }
47624
- },
47625
- loc: {
47626
- start: {
47627
- line: 30,
47628
- column: 18
47629
- },
47630
- end: {
47631
- line: 54,
47632
- column: 3
47633
- }
47634
- },
47635
- line: 30
47636
- },
47637
- "2": {
47638
- name: "(anonymous_2)",
47639
- decl: {
47640
- start: {
47641
- line: 31,
47642
- column: 25
47643
- },
47644
- end: {
47645
- line: 31,
47646
- column: 26
47647
- }
47648
- },
47649
- loc: {
47650
- start: {
47651
- line: 31,
47652
- column: 31
47653
- },
47654
- end: {
47655
- line: 42,
47656
- column: 5
47657
- }
47658
- },
47659
- line: 31
47660
- },
47661
- "3": {
47662
- name: "(anonymous_3)",
47663
- decl: {
47664
- start: {
47665
- line: 49,
47666
- column: 11
47667
- },
47668
- end: {
47669
- line: 49,
47670
- column: 12
47671
- }
47672
- },
47673
- loc: {
47674
- start: {
47675
- line: 49,
47676
- column: 17
47677
- },
47678
- end: {
47679
- line: 53,
47680
- column: 5
47681
- }
47682
- },
47683
- line: 49
47684
- },
47685
- "4": {
47686
- name: "(anonymous_4)",
47687
- decl: {
47688
- start: {
47689
- line: 56,
47690
- column: 22
47691
- },
47692
- end: {
47693
- line: 56,
47694
- column: 23
47695
- }
47696
- },
47697
- loc: {
47698
- start: {
47699
- line: 63,
47700
- column: 4
47701
- },
47702
- end: {
47703
- line: 101,
47704
- column: 7
47705
- }
47706
- },
47707
- line: 63
47708
- },
47709
- "5": {
47710
- name: "(anonymous_5)",
47711
- decl: {
47712
- start: {
47713
- line: 75,
47714
- column: 27
47715
- },
47716
- end: {
47717
- line: 75,
47718
- column: 28
47719
- }
47720
- },
47721
- loc: {
47722
- start: {
47723
- line: 76,
47724
- column: 10
47725
- },
47726
- end: {
47727
- line: 78,
47728
- column: 24
47729
- }
47730
- },
47731
- line: 76
47732
- },
47733
- "6": {
47734
- name: "(anonymous_6)",
47735
- decl: {
47736
- start: {
47737
- line: 104,
47738
- column: 24
47739
- },
47740
- end: {
47741
- line: 104,
47742
- column: 25
47743
- }
47744
- },
47745
- loc: {
47746
- start: {
47747
- line: 104,
47748
- column: 30
47749
- },
47750
- end: {
47751
- line: 202,
47752
- column: 3
47753
- }
47754
- },
47755
- line: 104
47756
- },
47757
- "7": {
47758
- name: "(anonymous_7)",
47759
- decl: {
47760
- start: {
47761
- line: 109,
47762
- column: 12
47763
- },
47764
- end: {
47765
- line: 109,
47766
- column: 13
47767
- }
47768
- },
47769
- loc: {
47770
- start: {
47771
- line: 118,
47772
- column: 14
47773
- },
47774
- end: {
47775
- line: 139,
47776
- column: 20
47777
- }
47778
- },
47779
- line: 118
47780
- },
47781
- "8": {
47782
- name: "(anonymous_8)",
47783
- decl: {
47784
- start: {
47785
- line: 129,
47786
- column: 30
47787
- },
47788
- end: {
47789
- line: 129,
47790
- column: 31
47791
- }
47792
- },
47793
- loc: {
47794
- start: {
47795
- line: 129,
47796
- column: 36
47797
- },
47798
- end: {
47799
- line: 129,
47800
- column: 56
47801
- }
47802
- },
47803
- line: 129
47804
- },
47805
- "9": {
47806
- name: "(anonymous_9)",
47807
- decl: {
47808
- start: {
47809
- line: 130,
47810
- column: 30
47811
- },
47812
- end: {
47813
- line: 130,
47814
- column: 31
47815
- }
47816
- },
47817
- loc: {
47818
- start: {
47819
- line: 130,
47820
- column: 36
47821
- },
47822
- end: {
47823
- line: 130,
47824
- column: 53
47825
- }
47826
- },
47827
- line: 130
47828
- },
47829
- "10": {
47830
- name: "(anonymous_10)",
47831
- decl: {
47832
- start: {
47833
- line: 170,
47834
- column: 10
47835
- },
47836
- end: {
47837
- line: 170,
47838
- column: 11
47839
- }
47840
- },
47841
- loc: {
47842
- start: {
47843
- line: 179,
47844
- column: 12
47845
- },
47846
- end: {
47847
- line: 197,
47848
- column: 26
47849
- }
47850
- },
47851
- line: 179
47852
- },
47853
- "11": {
47854
- name: "(anonymous_11)",
47855
- decl: {
47856
- start: {
47857
- line: 186,
47858
- column: 30
47859
- },
47860
- end: {
47861
- line: 186,
47862
- column: 31
47863
- }
47864
- },
47865
- loc: {
47866
- start: {
47867
- line: 186,
47868
- column: 36
47869
- },
47870
- end: {
47871
- line: 186,
47872
- column: 56
47873
- }
47874
- },
47875
- line: 186
47876
- },
47877
- "12": {
47878
- name: "(anonymous_12)",
47879
- decl: {
47880
- start: {
47881
- line: 187,
47882
- column: 30
47883
- },
47884
- end: {
47885
- line: 187,
47886
- column: 31
47887
- }
47888
- },
47889
- loc: {
47890
- start: {
47891
- line: 187,
47892
- column: 36
47893
- },
47894
- end: {
47895
- line: 187,
47896
- column: 53
47897
- }
47898
- },
47899
- line: 187
47900
- }
47901
- },
47902
- branchMap: {
47903
- "0": {
47904
- loc: {
47905
- start: {
47906
- line: 16,
47907
- column: 44
47908
- },
47909
- end: {
47910
- line: 16,
47911
- column: 58
47912
- }
47913
- },
47914
- type: "default-arg",
47915
- locations: [{
47916
- start: {
47917
- line: 16,
47918
- column: 56
47919
- },
47920
- end: {
47921
- line: 16,
47922
- column: 58
47923
- }
47924
- }],
47925
- line: 16
47926
- },
47927
- "1": {
47928
- loc: {
47929
- start: {
47930
- line: 25,
47931
- column: 4
47932
- },
47933
- end: {
47934
- line: 25,
47935
- column: 17
47936
- }
47937
- },
47938
- type: "default-arg",
47939
- locations: [{
47940
- start: {
47941
- line: 25,
47942
- column: 15
47943
- },
47944
- end: {
47945
- line: 25,
47946
- column: 17
47947
- }
47948
- }],
47949
- line: 25
47950
- },
47951
- "2": {
47952
- loc: {
47953
- start: {
47954
- line: 32,
47955
- column: 6
47956
- },
47957
- end: {
47958
- line: 41,
47959
- column: 7
47960
- }
47961
- },
47962
- type: "if",
47963
- locations: [{
47964
- start: {
47965
- line: 32,
47966
- column: 6
47967
- },
47968
- end: {
47969
- line: 41,
47970
- column: 7
47971
- }
47972
- }, {
47973
- start: {
47974
- line: 34,
47975
- column: 13
47976
- },
47977
- end: {
47978
- line: 41,
47979
- column: 7
47980
- }
47981
- }],
47982
- line: 32
47983
- },
47984
- "3": {
47985
- loc: {
47986
- start: {
47987
- line: 34,
47988
- column: 13
47989
- },
47990
- end: {
47991
- line: 41,
47992
- column: 7
47993
- }
47994
- },
47995
- type: "if",
47996
- locations: [{
47997
- start: {
47998
- line: 34,
47999
- column: 13
48000
- },
48001
- end: {
48002
- line: 41,
48003
- column: 7
48004
- }
48005
- }, {
48006
- start: {
48007
- line: 39,
48008
- column: 13
48009
- },
48010
- end: {
48011
- line: 41,
48012
- column: 7
48013
- }
48014
- }],
48015
- line: 34
48016
- },
48017
- "4": {
48018
- loc: {
48019
- start: {
48020
- line: 35,
48021
- column: 8
48022
- },
48023
- end: {
48024
- line: 36,
48025
- column: 44
48026
- }
48027
- },
48028
- type: "binary-expr",
48029
- locations: [{
48030
- start: {
48031
- line: 35,
48032
- column: 8
48033
- },
48034
- end: {
48035
- line: 35,
48036
- column: 44
48037
- }
48038
- }, {
48039
- start: {
48040
- line: 36,
48041
- column: 8
48042
- },
48043
- end: {
48044
- line: 36,
48045
- column: 44
48046
- }
48047
- }],
48048
- line: 35
48049
- },
48050
- "5": {
48051
- loc: {
48052
- start: {
48053
- line: 44,
48054
- column: 4
48055
- },
48056
- end: {
48057
- line: 47,
48058
- column: 5
48059
- }
48060
- },
48061
- type: "if",
48062
- locations: [{
48063
- start: {
48064
- line: 44,
48065
- column: 4
48066
- },
48067
- end: {
48068
- line: 47,
48069
- column: 5
48070
- }
48071
- }, {
48072
- start: {
48073
- line: undefined,
48074
- column: undefined
48075
- },
48076
- end: {
48077
- line: undefined,
48078
- column: undefined
48079
- }
48080
- }],
48081
- line: 44
48082
- },
48083
- "6": {
48084
- loc: {
48085
- start: {
48086
- line: 44,
48087
- column: 8
48088
- },
48089
- end: {
48090
- line: 44,
48091
- column: 35
48092
- }
48093
- },
48094
- type: "binary-expr",
48095
- locations: [{
48096
- start: {
48097
- line: 44,
48098
- column: 8
48099
- },
48100
- end: {
48101
- line: 44,
48102
- column: 14
48103
- }
48104
- }, {
48105
- start: {
48106
- line: 44,
48107
- column: 18
48108
- },
48109
- end: {
48110
- line: 44,
48111
- column: 35
48112
- }
48113
- }],
48114
- line: 44
48115
- },
48116
- "7": {
48117
- loc: {
48118
- start: {
48119
- line: 50,
48120
- column: 6
48121
- },
48122
- end: {
48123
- line: 52,
48124
- column: 7
48125
- }
48126
- },
48127
- type: "if",
48128
- locations: [{
48129
- start: {
48130
- line: 50,
48131
- column: 6
48132
- },
48133
- end: {
48134
- line: 52,
48135
- column: 7
48136
- }
48137
- }, {
48138
- start: {
48139
- line: undefined,
48140
- column: undefined
48141
- },
48142
- end: {
48143
- line: undefined,
48144
- column: undefined
48145
- }
48146
- }],
48147
- line: 50
48148
- },
48149
- "8": {
48150
- loc: {
48151
- start: {
48152
- line: 50,
48153
- column: 10
48154
- },
48155
- end: {
48156
- line: 50,
48157
- column: 37
48158
- }
48159
- },
48160
- type: "binary-expr",
48161
- locations: [{
48162
- start: {
48163
- line: 50,
48164
- column: 10
48165
- },
48166
- end: {
48167
- line: 50,
48168
- column: 16
48169
- }
48170
- }, {
48171
- start: {
48172
- line: 50,
48173
- column: 20
48174
- },
48175
- end: {
48176
- line: 50,
48177
- column: 37
48178
- }
48179
- }],
48180
- line: 50
48181
- },
48182
- "9": {
48183
- loc: {
48184
- start: {
48185
- line: 105,
48186
- column: 4
48187
- },
48188
- end: {
48189
- line: 144,
48190
- column: 5
48191
- }
48192
- },
48193
- type: "if",
48194
- locations: [{
48195
- start: {
48196
- line: 105,
48197
- column: 4
48198
- },
48199
- end: {
48200
- line: 144,
48201
- column: 5
48202
- }
48203
- }, {
48204
- start: {
48205
- line: undefined,
48206
- column: undefined
48207
- },
48208
- end: {
48209
- line: undefined,
48210
- column: undefined
48211
- }
48212
- }],
48213
- line: 105
48214
- },
48215
- "10": {
48216
- loc: {
48217
- start: {
48218
- line: 125,
48219
- column: 22
48220
- },
48221
- end: {
48222
- line: 126,
48223
- column: 71
48224
- }
48225
- },
48226
- type: "binary-expr",
48227
- locations: [{
48228
- start: {
48229
- line: 125,
48230
- column: 22
48231
- },
48232
- end: {
48233
- line: 125,
48234
- column: 47
48235
- }
48236
- }, {
48237
- start: {
48238
- line: 126,
48239
- column: 22
48240
- },
48241
- end: {
48242
- line: 126,
48243
- column: 71
48244
- }
48245
- }],
48246
- line: 125
48247
- }
48248
- },
48249
- s: {
48250
- "0": 0,
48251
- "1": 0,
48252
- "2": 0,
48253
- "3": 0,
48254
- "4": 0,
48255
- "5": 0,
48256
- "6": 0,
48257
- "7": 0,
48258
- "8": 0,
48259
- "9": 0,
48260
- "10": 0,
48261
- "11": 0,
48262
- "12": 0,
48263
- "13": 0,
48264
- "14": 0,
48265
- "15": 0,
48266
- "16": 0,
48267
- "17": 0,
48268
- "18": 0,
48269
- "19": 0,
48270
- "20": 0,
48271
- "21": 0,
48272
- "22": 0,
48273
- "23": 0,
48274
- "24": 0,
48275
- "25": 0,
48276
- "26": 0,
48277
- "27": 0,
48278
- "28": 0,
48279
- "29": 0,
48280
- "30": 0,
48281
- "31": 0,
48282
- "32": 0,
48283
- "33": 0
48284
- },
48285
- f: {
48286
- "0": 0,
48287
- "1": 0,
48288
- "2": 0,
48289
- "3": 0,
48290
- "4": 0,
48291
- "5": 0,
48292
- "6": 0,
48293
- "7": 0,
48294
- "8": 0,
48295
- "9": 0,
48296
- "10": 0,
48297
- "11": 0,
48298
- "12": 0
48299
- },
48300
- b: {
48301
- "0": [0],
48302
- "1": [0],
48303
- "2": [0, 0],
48304
- "3": [0, 0],
48305
- "4": [0, 0],
48306
- "5": [0, 0],
48307
- "6": [0, 0],
48308
- "7": [0, 0],
48309
- "8": [0, 0],
48310
- "9": [0, 0],
48311
- "10": [0, 0]
48312
- },
48313
- _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
48314
- hash: "923656decae931b7633b892914a5660270fb17d3"
48315
- };
48316
- var coverage = global[gcv] || (global[gcv] = {});
48317
- if (!coverage[path] || coverage[path].hash !== hash) {
48318
- coverage[path] = coverageData;
48319
- }
48320
- var actualCoverage = coverage[path];
48321
- {
48322
- // @ts-ignore
48323
- cov_2mc6ohzx2y = function () {
48324
- return actualCoverage;
48325
- };
48326
- }
48327
- return actualCoverage;
48328
- }
48329
- cov_2mc6ohzx2y();
48330
- cov_2mc6ohzx2y().s[0]++;
48331
- var CardsWithGallery = function CardsWithGallery(_ref) {
48332
- var configurations = _ref.configurations,
48333
- _ref$className = _ref.className,
48334
- className = _ref$className === void 0 ? (cov_2mc6ohzx2y().b[0][0]++, "") : _ref$className,
48335
- id = _ref.id;
48336
- cov_2mc6ohzx2y().f[0]++;
48337
- var _ref2 = (cov_2mc6ohzx2y().s[1]++, React.useState(-1)),
48338
- _ref3 = _slicedToArray__default["default"](_ref2, 2),
48339
- hoverIndex = _ref3[0],
48340
- setHoverIndex = _ref3[1];
48341
- var _ref4 = (cov_2mc6ohzx2y().s[2]++, React.useState(4)),
48342
- _ref5 = _slicedToArray__default["default"](_ref4, 2),
48343
- totalSlides = _ref5[0],
48344
- setTotalSlides = _ref5[1];
48345
- var swiperRef = (cov_2mc6ohzx2y().s[3]++, React.useRef(null));
48346
- var _ref6 = (cov_2mc6ohzx2y().s[4]++, lib.useFrame()),
48347
- window = _ref6.window;
48348
- var _ref7 = (cov_2mc6ohzx2y().s[5]++, configurations),
48349
- properties = _ref7.properties,
48350
- design = _ref7.design;
48351
- var _ref8 = (cov_2mc6ohzx2y().s[6]++, properties),
48352
- layout = _ref8.layout,
48353
- title = _ref8.content.title,
48354
- _ref8$features = _ref8.features,
48355
- features = _ref8$features === void 0 ? (cov_2mc6ohzx2y().b[1][0]++, []) : _ref8$features,
48356
- enableAnimation = _ref8.enableAnimation,
48357
- src = _ref8.backgroundImage.src;
48358
- cov_2mc6ohzx2y().s[7]++;
48359
- React.useEffect(function () {
48360
- cov_2mc6ohzx2y().f[1]++;
48361
- cov_2mc6ohzx2y().s[8]++;
48362
- var handleResize = function handleResize() {
48363
- cov_2mc6ohzx2y().f[2]++;
48364
- cov_2mc6ohzx2y().s[9]++;
48365
- if (swiperRef.current.clientWidth < 688) {
48366
- cov_2mc6ohzx2y().b[2][0]++;
48367
- cov_2mc6ohzx2y().s[10]++;
48368
- setTotalSlides(1);
48369
- } else {
48370
- cov_2mc6ohzx2y().b[2][1]++;
48371
- cov_2mc6ohzx2y().s[11]++;
48372
- if ((cov_2mc6ohzx2y().b[4][0]++, swiperRef.current.clientWidth >= 688) && (cov_2mc6ohzx2y().b[4][1]++, swiperRef.current.clientWidth < 1024)) {
48373
- cov_2mc6ohzx2y().b[3][0]++;
48374
- cov_2mc6ohzx2y().s[12]++;
48375
- setTotalSlides(2);
48376
- } else {
48377
- cov_2mc6ohzx2y().b[3][1]++;
48378
- cov_2mc6ohzx2y().s[13]++;
48379
- setTotalSlides(4);
48380
- }
48381
- }
48382
- };
48383
- cov_2mc6ohzx2y().s[14]++;
48384
- if ((cov_2mc6ohzx2y().b[6][0]++, window) && (cov_2mc6ohzx2y().b[6][1]++, layout !== "grid")) {
48385
- cov_2mc6ohzx2y().b[5][0]++;
48386
- cov_2mc6ohzx2y().s[15]++;
48387
- handleResize();
48388
- cov_2mc6ohzx2y().s[16]++;
48389
- window.addEventListener("resize", handleResize);
48390
- } else {
48391
- cov_2mc6ohzx2y().b[5][1]++;
48392
- }
48393
- cov_2mc6ohzx2y().s[17]++;
48394
- return function () {
48395
- cov_2mc6ohzx2y().f[3]++;
48396
- cov_2mc6ohzx2y().s[18]++;
48397
- if ((cov_2mc6ohzx2y().b[8][0]++, window) && (cov_2mc6ohzx2y().b[8][1]++, layout !== "grid")) {
48398
- cov_2mc6ohzx2y().b[7][0]++;
48399
- cov_2mc6ohzx2y().s[19]++;
48400
- window.removeEventListener("resize", handleResize);
48401
- } else {
48402
- cov_2mc6ohzx2y().b[7][1]++;
48403
- }
48404
- };
48405
- }, [window]);
48406
- cov_2mc6ohzx2y().s[20]++;
48407
- var renderBlock = function renderBlock(_ref9) {
48408
- var featureImages = _ref9.featureImages,
48409
- button = _ref9.button,
48410
- index = _ref9.index,
48411
- featureTitle = _ref9.featureTitle,
48412
- featureDescription = _ref9.featureDescription;
48413
- cov_2mc6ohzx2y().f[4]++;
48414
- cov_2mc6ohzx2y().s[21]++;
48415
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Swiper, {
48416
- navigation: true,
48417
- className: "sliding-swiper relative flex w-full items-center justify-center gap-x-4 lg:w-5/6",
48418
- modules: [Navigation],
48419
- slidesPerView: 1,
48420
- style: {
48421
- "--swiper-navigation-size": design.navigationIcon.size,
48422
- "--swiper-navigation-color": design.navigationIcon.color,
48423
- borderRadius: design.image.borderRadius
48424
- }
48425
- }, featureImages.map(function (image, index) {
48426
- cov_2mc6ohzx2y().f[5]++;
48427
- cov_2mc6ohzx2y().s[22]++;
48428
- return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
48429
- key: getUniqueKey(image.src, index)
48430
- }, /*#__PURE__*/React__default["default"].createElement("img", {
48431
- className: "swiper-image",
48432
- src: image.src
48433
- }));
48434
- }), /*#__PURE__*/React__default["default"].createElement("div", {
48435
- className: "absolute bottom-2 z-20 flex w-full justify-center"
48436
- }, /*#__PURE__*/React__default["default"].createElement(Button, {
48437
- action: button.action,
48438
- label: button.label,
48439
- style: design.button,
48440
- to: button.to,
48441
- className: classnames("flex w-28 cursor-pointer justify-center rounded-md", {
48442
- invisible: !(hoverIndex === index)
48443
- })
48444
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
48445
- className: "m-auto flex w-5/6 flex-col items-center gap-y-1"
48446
- }, /*#__PURE__*/React__default["default"].createElement(Typography, {
48447
- style: design.featureTitle
48448
- }, featureTitle), /*#__PURE__*/React__default["default"].createElement(Typography, {
48449
- style: design.featureDescription
48450
- }, featureDescription)));
48451
- };
48452
- cov_2mc6ohzx2y().s[23]++;
48453
- var renderFeature = function renderFeature() {
48454
- cov_2mc6ohzx2y().f[6]++;
48455
- cov_2mc6ohzx2y().s[24]++;
48456
- if (layout === "grid") {
48457
- cov_2mc6ohzx2y().b[9][0]++;
48458
- cov_2mc6ohzx2y().s[25]++;
48459
- return /*#__PURE__*/React__default["default"].createElement("div", {
48460
- className: "grid grid-cols-1 gap-8 sm:grid-cols-12"
48461
- }, features.map(function (_ref10, index) {
48462
- var featureTitle = _ref10.title,
48463
- featureDescription = _ref10.description,
48464
- featureImages = _ref10.images,
48465
- button = _ref10.button;
48466
- cov_2mc6ohzx2y().f[7]++;
48467
- cov_2mc6ohzx2y().s[26]++;
48468
- return /*#__PURE__*/React__default["default"].createElement("div", {
48469
- key: getUniqueKey(featureTitle, featureDescription, index),
48470
- className: classnames("relative flex h-full flex-col items-center gap-4 py-2 lg:items-start", {
48471
- "sm:col-span-6 lg:col-span-4": !isEmpty(features),
48472
- "lg:col-start-3": (cov_2mc6ohzx2y().b[10][0]++, features.length % 3 === 2) && (cov_2mc6ohzx2y().b[10][1]++, index === features.length - features.length % 3)
48473
- }),
48474
- onMouseEnter: function onMouseEnter() {
48475
- cov_2mc6ohzx2y().f[8]++;
48476
- cov_2mc6ohzx2y().s[27]++;
48477
- return setHoverIndex(index);
48478
- },
48479
- onMouseLeave: function onMouseLeave() {
48480
- cov_2mc6ohzx2y().f[9]++;
48481
- cov_2mc6ohzx2y().s[28]++;
48482
- return setHoverIndex(-1);
48483
- }
48484
- }, renderBlock({
48485
- featureImages: featureImages,
48486
- button: button,
48487
- index: index,
48488
- featureTitle: featureTitle,
48489
- featureDescription: featureDescription
48490
- }));
48491
- }));
48492
- } else {
48493
- cov_2mc6ohzx2y().b[9][1]++;
48494
- }
48495
- cov_2mc6ohzx2y().s[29]++;
48496
- return /*#__PURE__*/React__default["default"].createElement(Swiper, {
48497
- grabCursor: true,
48498
- mousewheel: true,
48499
- className: "sliding swiper w-full pb-8",
48500
- direction: "horizontal",
48501
- modules: [Keyboard, Scrollbar, Mousewheel],
48502
- ref: swiperRef,
48503
- slidesPerView: totalSlides,
48504
- keyboard: {
48505
- enabled: true,
48506
- onlyInViewport: true
48507
- },
48508
- scrollbar: {
48509
- draggable: true,
48510
- hide: true,
48511
- dragSize: 50
48512
- },
48513
- style: {
48514
- "--swiper-navigation-size": "1.5rem",
48515
- "--swiper-navigation-color": "#2F3941"
48516
- }
48517
- }, features.map(function (_ref11, index) {
48518
- var featureTitle = _ref11.title,
48519
- featureDescription = _ref11.description,
48520
- featureImages = _ref11.images,
48521
- button = _ref11.button;
48522
- cov_2mc6ohzx2y().f[10]++;
48523
- cov_2mc6ohzx2y().s[30]++;
48524
- return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
48525
- key: getUniqueKey(featureImages, featureDescription, index)
48526
- }, /*#__PURE__*/React__default["default"].createElement("div", {
48527
- className: classnames("relative flex h-full flex-col items-center gap-4 py-2 lg:items-start"),
48528
- onMouseEnter: function onMouseEnter() {
48529
- cov_2mc6ohzx2y().f[11]++;
48530
- cov_2mc6ohzx2y().s[31]++;
48531
- return setHoverIndex(index);
48532
- },
48533
- onMouseLeave: function onMouseLeave() {
48534
- cov_2mc6ohzx2y().f[12]++;
48535
- cov_2mc6ohzx2y().s[32]++;
48536
- return setHoverIndex(-1);
48537
- }
48538
- }, renderBlock({
48539
- featureImages: featureImages,
48540
- button: button,
48541
- index: index,
48542
- featureTitle: featureTitle,
48543
- featureDescription: featureDescription
48544
- })));
48545
- }));
48546
- };
48547
- cov_2mc6ohzx2y().s[33]++;
48548
- return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
48549
- backgroundImage: mergeLeft({
48550
- src: src
48551
- }, design.backgroundImage),
48552
- design: design.body,
48553
- id: id,
48554
- className: classnames("flex w-full flex-col gap-8 border border-l-0 border-r-0 lg:flex-row", className)
48555
- }, /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
48556
- className: "flex flex-grow flex-col lg:w-1/2",
48557
- enableAnimation: enableAnimation
48558
- }, /*#__PURE__*/React__default["default"].createElement(Typography, {
48559
- isTitle: true,
48560
- component: "h1",
48561
- style: design.title
48562
- }, title), renderFeature()));
48563
- };
48564
-
48565
45062
  function cov_1ewhd24l3e() {
48566
45063
  var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardsWithImage.jsx";
48567
45064
  var hash = "c1eadeff504a61b7a5d453d7ec99c418174c6758";
@@ -51393,7 +47890,7 @@ function requireNode () {
51393
47890
  hasRequiredNode = 1;
51394
47891
  (function (module, exports) {
51395
47892
  const tty = require$$0__default$1["default"];
51396
- const util = require$$1__default$1["default"];
47893
+ const util = require$$1__default["default"];
51397
47894
 
51398
47895
  /**
51399
47896
  * This is the Node.js implementation of `debug()`.
@@ -51706,7 +48203,7 @@ function requireFollowRedirects () {
51706
48203
  hasRequiredFollowRedirects = 1;
51707
48204
  var url = require$$0__default$2["default"];
51708
48205
  var URL = url.URL;
51709
- var http = require$$1__default$2["default"];
48206
+ var http = require$$1__default$1["default"];
51710
48207
  var https = require$$2__default["default"];
51711
48208
  var Writable = require$$3__default["default"].Writable;
51712
48209
  var assert = require$$4__default["default"];
@@ -52351,7 +48848,7 @@ function requireHttp () {
52351
48848
  var settle = requireSettle();
52352
48849
  var buildFullPath = buildFullPath$1;
52353
48850
  var buildURL = buildURL$1;
52354
- var http = require$$1__default$2["default"];
48851
+ var http = require$$1__default$1["default"];
52355
48852
  var https = require$$2__default["default"];
52356
48853
  var httpFollow = requireFollowRedirects().http;
52357
48854
  var httpsFollow = requireFollowRedirects().https;
@@ -52779,7 +49276,7 @@ function requireDelayed_stream () {
52779
49276
  if (hasRequiredDelayed_stream) return delayed_stream;
52780
49277
  hasRequiredDelayed_stream = 1;
52781
49278
  var Stream = require$$3__default["default"].Stream;
52782
- var util = require$$1__default$1["default"];
49279
+ var util = require$$1__default["default"];
52783
49280
 
52784
49281
  delayed_stream = DelayedStream;
52785
49282
  function DelayedStream() {
@@ -52894,7 +49391,7 @@ var hasRequiredCombined_stream;
52894
49391
  function requireCombined_stream () {
52895
49392
  if (hasRequiredCombined_stream) return combined_stream;
52896
49393
  hasRequiredCombined_stream = 1;
52897
- var util = require$$1__default$1["default"];
49394
+ var util = require$$1__default["default"];
52898
49395
  var Stream = require$$3__default["default"].Stream;
52899
49396
  var DelayedStream = requireDelayed_stream();
52900
49397
 
@@ -63854,7 +60351,7 @@ function requireMimeTypes () {
63854
60351
  */
63855
60352
 
63856
60353
  var db = requireMimeDb();
63857
- var extname = require$$1__default$3["default"].extname;
60354
+ var extname = require$$1__default$2["default"].extname;
63858
60355
 
63859
60356
  /**
63860
60357
  * Module variables.
@@ -64519,9 +61016,9 @@ function requireForm_data () {
64519
61016
  if (hasRequiredForm_data) return form_data;
64520
61017
  hasRequiredForm_data = 1;
64521
61018
  var CombinedStream = requireCombined_stream();
64522
- var util = require$$1__default$1["default"];
64523
- var path = require$$1__default$3["default"];
64524
- var http = require$$1__default$2["default"];
61019
+ var util = require$$1__default["default"];
61020
+ var path = require$$1__default$2["default"];
61021
+ var http = require$$1__default$1["default"];
64525
61022
  var https = require$$2__default["default"];
64526
61023
  var parseUrl = require$$0__default$2["default"].parse;
64527
61024
  var fs = require$$6__default["default"];
@@ -76463,6 +72960,315 @@ var LogoClouds = function LogoClouds(_ref) {
76463
72960
  }));
76464
72961
  };
76465
72962
 
72963
+ function cov_hnzrjpdqv() {
72964
+ var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/Paragraph.jsx";
72965
+ var hash = "42025396dd6d786ea1651a7a5d899aebaaadef38";
72966
+ var global = new Function("return this")();
72967
+ var gcv = "__coverage__";
72968
+ var coverageData = {
72969
+ path: "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/Paragraph.jsx",
72970
+ statementMap: {
72971
+ "0": {
72972
+ start: {
72973
+ line: 10,
72974
+ column: 18
72975
+ },
72976
+ end: {
72977
+ line: 65,
72978
+ column: 1
72979
+ }
72980
+ },
72981
+ "1": {
72982
+ start: {
72983
+ line: 11,
72984
+ column: 33
72985
+ },
72986
+ end: {
72987
+ line: 11,
72988
+ column: 47
72989
+ }
72990
+ },
72991
+ "2": {
72992
+ start: {
72993
+ line: 17,
72994
+ column: 6
72995
+ },
72996
+ end: {
72997
+ line: 17,
72998
+ column: 16
72999
+ }
73000
+ },
73001
+ "3": {
73002
+ start: {
73003
+ line: 19,
73004
+ column: 22
73005
+ },
73006
+ end: {
73007
+ line: 19,
73008
+ column: 76
73009
+ }
73010
+ },
73011
+ "4": {
73012
+ start: {
73013
+ line: 21,
73014
+ column: 24
73015
+ },
73016
+ end: {
73017
+ line: 21,
73018
+ column: 47
73019
+ }
73020
+ },
73021
+ "5": {
73022
+ start: {
73023
+ line: 23,
73024
+ column: 2
73025
+ },
73026
+ end: {
73027
+ line: 64,
73028
+ column: 4
73029
+ }
73030
+ },
73031
+ "6": {
73032
+ start: {
73033
+ line: 46,
73034
+ column: 12
73035
+ },
73036
+ end: {
73037
+ line: 59,
73038
+ column: 28
73039
+ }
73040
+ }
73041
+ },
73042
+ fnMap: {
73043
+ "0": {
73044
+ name: "(anonymous_0)",
73045
+ decl: {
73046
+ start: {
73047
+ line: 10,
73048
+ column: 18
73049
+ },
73050
+ end: {
73051
+ line: 10,
73052
+ column: 19
73053
+ }
73054
+ },
73055
+ loc: {
73056
+ start: {
73057
+ line: 10,
73058
+ column: 62
73059
+ },
73060
+ end: {
73061
+ line: 65,
73062
+ column: 1
73063
+ }
73064
+ },
73065
+ line: 10
73066
+ },
73067
+ "1": {
73068
+ name: "(anonymous_1)",
73069
+ decl: {
73070
+ start: {
73071
+ line: 45,
73072
+ column: 24
73073
+ },
73074
+ end: {
73075
+ line: 45,
73076
+ column: 25
73077
+ }
73078
+ },
73079
+ loc: {
73080
+ start: {
73081
+ line: 46,
73082
+ column: 12
73083
+ },
73084
+ end: {
73085
+ line: 59,
73086
+ column: 28
73087
+ }
73088
+ },
73089
+ line: 46
73090
+ }
73091
+ },
73092
+ branchMap: {
73093
+ "0": {
73094
+ loc: {
73095
+ start: {
73096
+ line: 10,
73097
+ column: 37
73098
+ },
73099
+ end: {
73100
+ line: 10,
73101
+ column: 51
73102
+ }
73103
+ },
73104
+ type: "default-arg",
73105
+ locations: [{
73106
+ start: {
73107
+ line: 10,
73108
+ column: 49
73109
+ },
73110
+ end: {
73111
+ line: 10,
73112
+ column: 51
73113
+ }
73114
+ }],
73115
+ line: 10
73116
+ },
73117
+ "1": {
73118
+ loc: {
73119
+ start: {
73120
+ line: 15,
73121
+ column: 4
73122
+ },
73123
+ end: {
73124
+ line: 15,
73125
+ column: 17
73126
+ }
73127
+ },
73128
+ type: "default-arg",
73129
+ locations: [{
73130
+ start: {
73131
+ line: 15,
73132
+ column: 15
73133
+ },
73134
+ end: {
73135
+ line: 15,
73136
+ column: 17
73137
+ }
73138
+ }],
73139
+ line: 15
73140
+ },
73141
+ "2": {
73142
+ loc: {
73143
+ start: {
73144
+ line: 21,
73145
+ column: 24
73146
+ },
73147
+ end: {
73148
+ line: 21,
73149
+ column: 47
73150
+ }
73151
+ },
73152
+ type: "cond-expr",
73153
+ locations: [{
73154
+ start: {
73155
+ line: 21,
73156
+ column: 36
73157
+ },
73158
+ end: {
73159
+ line: 21,
73160
+ column: 40
73161
+ }
73162
+ }, {
73163
+ start: {
73164
+ line: 21,
73165
+ column: 43
73166
+ },
73167
+ end: {
73168
+ line: 21,
73169
+ column: 47
73170
+ }
73171
+ }],
73172
+ line: 21
73173
+ }
73174
+ },
73175
+ s: {
73176
+ "0": 0,
73177
+ "1": 0,
73178
+ "2": 0,
73179
+ "3": 0,
73180
+ "4": 0,
73181
+ "5": 0,
73182
+ "6": 0
73183
+ },
73184
+ f: {
73185
+ "0": 0,
73186
+ "1": 0
73187
+ },
73188
+ b: {
73189
+ "0": [0],
73190
+ "1": [0],
73191
+ "2": [0, 0]
73192
+ },
73193
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
73194
+ hash: "42025396dd6d786ea1651a7a5d899aebaaadef38"
73195
+ };
73196
+ var coverage = global[gcv] || (global[gcv] = {});
73197
+ if (!coverage[path] || coverage[path].hash !== hash) {
73198
+ coverage[path] = coverageData;
73199
+ }
73200
+ var actualCoverage = coverage[path];
73201
+ {
73202
+ // @ts-ignore
73203
+ cov_hnzrjpdqv = function () {
73204
+ return actualCoverage;
73205
+ };
73206
+ }
73207
+ return actualCoverage;
73208
+ }
73209
+ cov_hnzrjpdqv();
73210
+ cov_hnzrjpdqv().s[0]++;
73211
+ var Paragraph = function Paragraph(_ref) {
73212
+ var configurations = _ref.configurations,
73213
+ _ref$className = _ref.className,
73214
+ className = _ref$className === void 0 ? (cov_hnzrjpdqv().b[0][0]++, "") : _ref$className,
73215
+ id = _ref.id;
73216
+ cov_hnzrjpdqv().f[0]++;
73217
+ var _ref2 = (cov_hnzrjpdqv().s[1]++, configurations),
73218
+ properties = _ref2.properties,
73219
+ design = _ref2.design;
73220
+ var _ref3 = (cov_hnzrjpdqv().s[2]++, properties),
73221
+ _ref3$content = _ref3.content,
73222
+ title = _ref3$content.title,
73223
+ description = _ref3$content.description,
73224
+ isOrdered = _ref3$content.isOrdered,
73225
+ enableAnimation = _ref3.enableAnimation,
73226
+ _ref3$features = _ref3.features,
73227
+ features = _ref3$features === void 0 ? (cov_hnzrjpdqv().b[1][0]++, []) : _ref3$features,
73228
+ src = _ref3.backgroundImage.src;
73229
+ var baseClasses = (cov_hnzrjpdqv().s[3]++, "grid grid-cols-12 lg:gap-x-4 sm:gap-x-2 items-center");
73230
+ var ListComponent = (cov_hnzrjpdqv().s[4]++, isOrdered ? (cov_hnzrjpdqv().b[2][0]++, "ol") : (cov_hnzrjpdqv().b[2][1]++, "ul"));
73231
+ cov_hnzrjpdqv().s[5]++;
73232
+ return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
73233
+ backgroundImage: mergeLeft({
73234
+ src: src
73235
+ }, design.backgroundImage),
73236
+ className: className,
73237
+ design: design.body,
73238
+ enableAnimation: enableAnimation,
73239
+ id: id,
73240
+ nestedClassName: baseClasses
73241
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
73242
+ className: "col-span-12"
73243
+ }, /*#__PURE__*/React__default["default"].createElement(Typography, {
73244
+ isTitle: true,
73245
+ component: "h1",
73246
+ style: design.title
73247
+ }, title), /*#__PURE__*/React__default["default"].createElement(Typography, {
73248
+ component: "p",
73249
+ style: design.description
73250
+ }, description), /*#__PURE__*/React__default["default"].createElement(ListComponent, {
73251
+ className: classnames("col-span-12 mb-8 w-full space-y-5 pl-4", {
73252
+ "list-decimal": isOrdered,
73253
+ "list-disc": !isOrdered
73254
+ })
73255
+ }, features.map(function (_ref4, index) {
73256
+ var featureTitle = _ref4.title;
73257
+ cov_hnzrjpdqv().f[1]++;
73258
+ cov_hnzrjpdqv().s[6]++;
73259
+ return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
73260
+ className: "flex w-full",
73261
+ design: design.feature,
73262
+ enableAnimation: enableAnimation,
73263
+ key: getUniqueKey(featureTitle, index)
73264
+ }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
73265
+ as: "li",
73266
+ className: "pl-2",
73267
+ style: design.featureTitle
73268
+ }, featureTitle));
73269
+ }))));
73270
+ };
73271
+
76466
73272
  function cov_2k7zrmghkt() {
76467
73273
  var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/PricingInCardView.jsx";
76468
73274
  var hash = "8828fdb4c09af90a14b5d996a41ed6a25ab165f4";
@@ -77898,7 +74704,6 @@ cov_w8wufnrsd();
77898
74704
  exports.CardsClassic = CardsClassic;
77899
74705
  exports.CardsInGridView = CardsInGridView;
77900
74706
  exports.CardsWithCustomizableGrid = CardsWithCustomizableGrid;
77901
- exports.CardsWithGallery = CardsWithGallery;
77902
74707
  exports.CardsWithImage = CardsWithImage;
77903
74708
  exports.CtaClassic = CtaClassic;
77904
74709
  exports.CtaWithEmailAction = CtaWithEmailAction;
@@ -77924,6 +74729,7 @@ exports.HeroWithCallToAction = HeroWithCallToAction;
77924
74729
  exports.HeroWithMultipleLayouts = HeroWithMultipleLayouts;
77925
74730
  exports.Icons = index;
77926
74731
  exports.LogoClouds = LogoClouds;
74732
+ exports.Paragraph = Paragraph;
77927
74733
  exports.PricingInCardView = PricingInCardView;
77928
74734
  exports.TestimonialWithSlider = TestimonialWithSlider;
77929
74735
  exports.TestimonialWithVerticalView = TestimonialWithVerticalView;