pb-sxp-ui 1.0.81 → 1.0.83

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.css CHANGED
@@ -350,7 +350,7 @@
350
350
  }
351
351
 
352
352
  /**
353
- * Swiper 11.0.7
353
+ * Swiper 11.1.4
354
354
  * Most modern mobile touch slider and framework with hardware accelerated transitions
355
355
  * https://swiperjs.com
356
356
  *
@@ -358,7 +358,7 @@
358
358
  *
359
359
  * Released under the MIT License
360
360
  *
361
- * Released on: February 27, 2024
361
+ * Released on: May 30, 2024
362
362
  */
363
363
 
364
364
  /* FONT_START */
@@ -1048,7 +1048,7 @@
1048
1048
  }
1049
1049
 
1050
1050
  /**
1051
- * Swiper 11.0.7
1051
+ * Swiper 11.1.4
1052
1052
  * Most modern mobile touch slider and framework with hardware accelerated transitions
1053
1053
  * https://swiperjs.com
1054
1054
  *
@@ -1056,7 +1056,7 @@
1056
1056
  *
1057
1057
  * Released under the MIT License
1058
1058
  *
1059
- * Released on: February 27, 2024
1059
+ * Released on: May 30, 2024
1060
1060
  */
1061
1061
  /* FONT_START */
1062
1062
  @font-face {
package/dist/index.js CHANGED
@@ -3077,7 +3077,7 @@ function Scrollbar(_ref) {
3077
3077
  dragEl
3078
3078
  } = scrollbar;
3079
3079
  if (!isTouched) return;
3080
- if (e.preventDefault) e.preventDefault();else e.returnValue = false;
3080
+ if (e.preventDefault && e.cancelable) e.preventDefault();else e.returnValue = false;
3081
3081
  setDragPosition(e);
3082
3082
  wrapperEl.style.transitionDuration = '0ms';
3083
3083
  el.style.transitionDuration = '0ms';
@@ -3304,7 +3304,7 @@ function Autoplay(_ref) {
3304
3304
  if (!swiper || swiper.destroyed || !swiper.wrapperEl) return;
3305
3305
  if (e.target !== swiper.wrapperEl) return;
3306
3306
  swiper.wrapperEl.removeEventListener('transitionend', onTransitionEnd);
3307
- if (pausedByPointerEnter) {
3307
+ if (pausedByPointerEnter || e.detail && e.detail.bySwiperTouchMove) {
3308
3308
  return;
3309
3309
  }
3310
3310
  resume();
@@ -3475,8 +3475,10 @@ function Autoplay(_ref) {
3475
3475
  }
3476
3476
  };
3477
3477
  const detachMouseEvents = () => {
3478
- swiper.el.removeEventListener('pointerenter', onPointerEnter);
3479
- swiper.el.removeEventListener('pointerleave', onPointerLeave);
3478
+ if (swiper.el && typeof swiper.el !== 'string') {
3479
+ swiper.el.removeEventListener('pointerenter', onPointerEnter);
3480
+ swiper.el.removeEventListener('pointerleave', onPointerLeave);
3481
+ }
3480
3482
  };
3481
3483
  const attachDocumentEvents = () => {
3482
3484
  const document = getDocument();
@@ -4398,8 +4400,9 @@ function updateSlides() {
4398
4400
  allSlidesSize += slideSizeValue + (spaceBetween || 0);
4399
4401
  });
4400
4402
  allSlidesSize -= spaceBetween;
4401
- if (allSlidesSize < swiperSize) {
4402
- const allSlidesOffset = (swiperSize - allSlidesSize) / 2;
4403
+ const offsetSize = (params.slidesOffsetBefore || 0) + (params.slidesOffsetAfter || 0);
4404
+ if (allSlidesSize + offsetSize < swiperSize) {
4405
+ const allSlidesOffset = (swiperSize - allSlidesSize - offsetSize) / 2;
4403
4406
  snapGrid.forEach((snap, snapIndex) => {
4404
4407
  snapGrid[snapIndex] = snap - allSlidesOffset;
4405
4408
  });
@@ -4503,6 +4506,13 @@ function updateSlidesOffset() {
4503
4506
  }
4504
4507
  }
4505
4508
 
4509
+ const toggleSlideClasses$1 = (slideEl, condition, className) => {
4510
+ if (condition && !slideEl.classList.contains(className)) {
4511
+ slideEl.classList.add(className);
4512
+ } else if (!condition && slideEl.classList.contains(className)) {
4513
+ slideEl.classList.remove(className);
4514
+ }
4515
+ };
4506
4516
  function updateSlidesProgress(translate) {
4507
4517
  if (translate === void 0) {
4508
4518
  translate = this && this.translate || 0;
@@ -4518,11 +4528,6 @@ function updateSlidesProgress(translate) {
4518
4528
  if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();
4519
4529
  let offsetCenter = -translate;
4520
4530
  if (rtl) offsetCenter = translate;
4521
-
4522
- // Visible Slides
4523
- slides.forEach(slideEl => {
4524
- slideEl.classList.remove(params.slideVisibleClass, params.slideFullyVisibleClass);
4525
- });
4526
4531
  swiper.visibleSlidesIndexes = [];
4527
4532
  swiper.visibleSlides = [];
4528
4533
  let spaceBetween = params.spaceBetween;
@@ -4546,11 +4551,9 @@ function updateSlidesProgress(translate) {
4546
4551
  if (isVisible) {
4547
4552
  swiper.visibleSlides.push(slide);
4548
4553
  swiper.visibleSlidesIndexes.push(i);
4549
- slides[i].classList.add(params.slideVisibleClass);
4550
- }
4551
- if (isFullyVisible) {
4552
- slides[i].classList.add(params.slideFullyVisibleClass);
4553
4554
  }
4555
+ toggleSlideClasses$1(slide, isVisible, params.slideVisibleClass);
4556
+ toggleSlideClasses$1(slide, isFullyVisible, params.slideFullyVisibleClass);
4554
4557
  slide.progress = rtl ? -slideProgress : slideProgress;
4555
4558
  slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;
4556
4559
  }
@@ -4619,6 +4622,13 @@ function updateProgress(translate) {
4619
4622
  swiper.emit('progress', progress);
4620
4623
  }
4621
4624
 
4625
+ const toggleSlideClasses = (slideEl, condition, className) => {
4626
+ if (condition && !slideEl.classList.contains(className)) {
4627
+ slideEl.classList.add(className);
4628
+ } else if (!condition && slideEl.classList.contains(className)) {
4629
+ slideEl.classList.remove(className);
4630
+ }
4631
+ };
4622
4632
  function updateSlidesClasses() {
4623
4633
  const swiper = this;
4624
4634
  const {
@@ -4632,9 +4642,6 @@ function updateSlidesClasses() {
4632
4642
  const getFilteredSlide = selector => {
4633
4643
  return elementChildren(slidesEl, `.${params.slideClass}${selector}, swiper-slide${selector}`)[0];
4634
4644
  };
4635
- slides.forEach(slideEl => {
4636
- slideEl.classList.remove(params.slideActiveClass, params.slideNextClass, params.slidePrevClass);
4637
- });
4638
4645
  let activeSlide;
4639
4646
  let prevSlide;
4640
4647
  let nextSlide;
@@ -4657,35 +4664,25 @@ function updateSlidesClasses() {
4657
4664
  }
4658
4665
  }
4659
4666
  if (activeSlide) {
4660
- // Active classes
4661
- activeSlide.classList.add(params.slideActiveClass);
4662
- if (gridEnabled) {
4663
- if (nextSlide) {
4664
- nextSlide.classList.add(params.slideNextClass);
4665
- }
4666
- if (prevSlide) {
4667
- prevSlide.classList.add(params.slidePrevClass);
4668
- }
4669
- } else {
4667
+ if (!gridEnabled) {
4670
4668
  // Next Slide
4671
4669
  nextSlide = elementNextAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];
4672
4670
  if (params.loop && !nextSlide) {
4673
4671
  nextSlide = slides[0];
4674
4672
  }
4675
- if (nextSlide) {
4676
- nextSlide.classList.add(params.slideNextClass);
4677
- }
4678
4673
 
4679
4674
  // Prev Slide
4680
4675
  prevSlide = elementPrevAll(activeSlide, `.${params.slideClass}, swiper-slide`)[0];
4681
4676
  if (params.loop && !prevSlide === 0) {
4682
4677
  prevSlide = slides[slides.length - 1];
4683
4678
  }
4684
- if (prevSlide) {
4685
- prevSlide.classList.add(params.slidePrevClass);
4686
- }
4687
4679
  }
4688
4680
  }
4681
+ slides.forEach(slideEl => {
4682
+ toggleSlideClasses(slideEl, slideEl === activeSlide, params.slideActiveClass);
4683
+ toggleSlideClasses(slideEl, slideEl === nextSlide, params.slideNextClass);
4684
+ toggleSlideClasses(slideEl, slideEl === prevSlide, params.slidePrevClass);
4685
+ });
4689
4686
  swiper.emitSlidesClasses();
4690
4687
  }
4691
4688
 
@@ -5063,6 +5060,7 @@ function translateTo(translate, speed, runCallbacks, translateBounds, internal)
5063
5060
  swiper.wrapperEl.removeEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);
5064
5061
  swiper.onTranslateToWrapperTransitionEnd = null;
5065
5062
  delete swiper.onTranslateToWrapperTransitionEnd;
5063
+ swiper.animating = false;
5066
5064
  if (runCallbacks) {
5067
5065
  swiper.emit('transitionEnd');
5068
5066
  }
@@ -5170,9 +5168,6 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
5170
5168
  if (index === void 0) {
5171
5169
  index = 0;
5172
5170
  }
5173
- if (speed === void 0) {
5174
- speed = this.params.speed;
5175
- }
5176
5171
  if (runCallbacks === void 0) {
5177
5172
  runCallbacks = true;
5178
5173
  }
@@ -5192,9 +5187,12 @@ function slideTo(index, speed, runCallbacks, internal, initial) {
5192
5187
  wrapperEl,
5193
5188
  enabled
5194
5189
  } = swiper;
5195
- if (swiper.animating && params.preventInteractionOnTransition || !enabled && !internal && !initial || swiper.destroyed) {
5190
+ if (!enabled && !internal && !initial || swiper.destroyed || swiper.animating && params.preventInteractionOnTransition) {
5196
5191
  return false;
5197
5192
  }
5193
+ if (typeof speed === 'undefined') {
5194
+ speed = swiper.params.speed;
5195
+ }
5198
5196
  const skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
5199
5197
  let snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
5200
5198
  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
@@ -5321,9 +5319,6 @@ function slideToLoop(index, speed, runCallbacks, internal) {
5321
5319
  if (index === void 0) {
5322
5320
  index = 0;
5323
5321
  }
5324
- if (speed === void 0) {
5325
- speed = this.params.speed;
5326
- }
5327
5322
  if (runCallbacks === void 0) {
5328
5323
  runCallbacks = true;
5329
5324
  }
@@ -5333,6 +5328,9 @@ function slideToLoop(index, speed, runCallbacks, internal) {
5333
5328
  }
5334
5329
  const swiper = this;
5335
5330
  if (swiper.destroyed) return;
5331
+ if (typeof speed === 'undefined') {
5332
+ speed = swiper.params.speed;
5333
+ }
5336
5334
  const gridEnabled = swiper.grid && swiper.params.grid && swiper.params.grid.rows > 1;
5337
5335
  let newIndex = index;
5338
5336
  if (swiper.params.loop) {
@@ -5364,6 +5362,9 @@ function slideToLoop(index, speed, runCallbacks, internal) {
5364
5362
  if (centeredSlides) {
5365
5363
  needLoopFix = needLoopFix || targetSlideIndex < Math.ceil(slidesPerView / 2);
5366
5364
  }
5365
+ if (internal && centeredSlides && swiper.params.slidesPerView !== 'auto' && !gridEnabled) {
5366
+ needLoopFix = false;
5367
+ }
5367
5368
  if (needLoopFix) {
5368
5369
  const direction = centeredSlides ? targetSlideIndex < swiper.activeIndex ? 'prev' : 'next' : targetSlideIndex - swiper.activeIndex - 1 < swiper.params.slidesPerView ? 'next' : 'prev';
5369
5370
  swiper.loopFix({
@@ -5389,9 +5390,6 @@ function slideToLoop(index, speed, runCallbacks, internal) {
5389
5390
 
5390
5391
  /* eslint no-unused-vars: "off" */
5391
5392
  function slideNext(speed, runCallbacks, internal) {
5392
- if (speed === void 0) {
5393
- speed = this.params.speed;
5394
- }
5395
5393
  if (runCallbacks === void 0) {
5396
5394
  runCallbacks = true;
5397
5395
  }
@@ -5402,6 +5400,9 @@ function slideNext(speed, runCallbacks, internal) {
5402
5400
  animating
5403
5401
  } = swiper;
5404
5402
  if (!enabled || swiper.destroyed) return swiper;
5403
+ if (typeof speed === 'undefined') {
5404
+ speed = swiper.params.speed;
5405
+ }
5405
5406
  let perGroup = params.slidesPerGroup;
5406
5407
  if (params.slidesPerView === 'auto' && params.slidesPerGroup === 1 && params.slidesPerGroupAuto) {
5407
5408
  perGroup = Math.max(swiper.slidesPerViewDynamic('current', true), 1);
@@ -5430,9 +5431,6 @@ function slideNext(speed, runCallbacks, internal) {
5430
5431
 
5431
5432
  /* eslint no-unused-vars: "off" */
5432
5433
  function slidePrev(speed, runCallbacks, internal) {
5433
- if (speed === void 0) {
5434
- speed = this.params.speed;
5435
- }
5436
5434
  if (runCallbacks === void 0) {
5437
5435
  runCallbacks = true;
5438
5436
  }
@@ -5446,6 +5444,9 @@ function slidePrev(speed, runCallbacks, internal) {
5446
5444
  animating
5447
5445
  } = swiper;
5448
5446
  if (!enabled || swiper.destroyed) return swiper;
5447
+ if (typeof speed === 'undefined') {
5448
+ speed = swiper.params.speed;
5449
+ }
5449
5450
  const isVirtual = swiper.virtual && params.virtual.enabled;
5450
5451
  if (params.loop) {
5451
5452
  if (animating && !isVirtual && params.loopPreventsSliding) return false;
@@ -5498,22 +5499,19 @@ function slidePrev(speed, runCallbacks, internal) {
5498
5499
 
5499
5500
  /* eslint no-unused-vars: "off" */
5500
5501
  function slideReset(speed, runCallbacks, internal) {
5501
- if (speed === void 0) {
5502
- speed = this.params.speed;
5503
- }
5504
5502
  if (runCallbacks === void 0) {
5505
5503
  runCallbacks = true;
5506
5504
  }
5507
5505
  const swiper = this;
5508
5506
  if (swiper.destroyed) return;
5507
+ if (typeof speed === 'undefined') {
5508
+ speed = swiper.params.speed;
5509
+ }
5509
5510
  return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
5510
5511
  }
5511
5512
 
5512
5513
  /* eslint no-unused-vars: "off" */
5513
5514
  function slideToClosest(speed, runCallbacks, internal, threshold) {
5514
- if (speed === void 0) {
5515
- speed = this.params.speed;
5516
- }
5517
5515
  if (runCallbacks === void 0) {
5518
5516
  runCallbacks = true;
5519
5517
  }
@@ -5522,6 +5520,9 @@ function slideToClosest(speed, runCallbacks, internal, threshold) {
5522
5520
  }
5523
5521
  const swiper = this;
5524
5522
  if (swiper.destroyed) return;
5523
+ if (typeof speed === 'undefined') {
5524
+ speed = swiper.params.speed;
5525
+ }
5525
5526
  let index = swiper.activeIndex;
5526
5527
  const skip = Math.min(swiper.params.slidesPerGroupSkip, index);
5527
5528
  const snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);
@@ -6156,7 +6157,7 @@ function onTouchMove(event) {
6156
6157
  data.startMoving = true;
6157
6158
  }
6158
6159
  }
6159
- if (data.isScrolling) {
6160
+ if (data.isScrolling || e.type === 'touchmove' && data.preventTouchMoveFromPointerMove) {
6160
6161
  data.isTouched = false;
6161
6162
  return;
6162
6163
  }
@@ -6198,7 +6199,10 @@ function onTouchMove(event) {
6198
6199
  if (swiper.animating) {
6199
6200
  const evt = new window.CustomEvent('transitionend', {
6200
6201
  bubbles: true,
6201
- cancelable: true
6202
+ cancelable: true,
6203
+ detail: {
6204
+ bySwiperTouchMove: true
6205
+ }
6202
6206
  });
6203
6207
  swiper.wrapperEl.dispatchEvent(evt);
6204
6208
  }
@@ -6592,6 +6596,7 @@ const events = (swiper, method) => {
6592
6596
  const capture = !!params.nested;
6593
6597
  const domMethod = method === 'on' ? 'addEventListener' : 'removeEventListener';
6594
6598
  const swiperMethod = method;
6599
+ if (!el || typeof el === 'string') return;
6595
6600
 
6596
6601
  // Touch Events
6597
6602
  document[domMethod]('touchstart', swiper.onDocumentTouchStart, {
@@ -6700,6 +6705,8 @@ function setBreakpoint() {
6700
6705
  const breakpointParams = breakpointOnlyParams || swiper.originalParams;
6701
6706
  const wasMultiRow = isGridEnabled(swiper, params);
6702
6707
  const isMultiRow = isGridEnabled(swiper, breakpointParams);
6708
+ const wasGrabCursor = swiper.params.grabCursor;
6709
+ const isGrabCursor = breakpointParams.grabCursor;
6703
6710
  const wasEnabled = params.enabled;
6704
6711
  if (wasMultiRow && !isMultiRow) {
6705
6712
  el.classList.remove(`${params.containerModifierClass}grid`, `${params.containerModifierClass}grid-column`);
@@ -6711,6 +6718,11 @@ function setBreakpoint() {
6711
6718
  }
6712
6719
  swiper.emitContainerClasses();
6713
6720
  }
6721
+ if (wasGrabCursor && !isGrabCursor) {
6722
+ swiper.unsetGrabCursor();
6723
+ } else if (!wasGrabCursor && isGrabCursor) {
6724
+ swiper.setGrabCursor();
6725
+ }
6714
6726
 
6715
6727
  // Toggle navigation, pagination, scrollbar
6716
6728
  ['navigation', 'pagination', 'scrollbar'].forEach(prop => {
@@ -6861,6 +6873,7 @@ function removeClasses() {
6861
6873
  el,
6862
6874
  classNames
6863
6875
  } = swiper;
6876
+ if (!el || typeof el === 'string') return;
6864
6877
  el.classList.remove(...classNames);
6865
6878
  swiper.emitContainerClasses();
6866
6879
  }
@@ -7625,8 +7638,12 @@ let Swiper$1 = class Swiper {
7625
7638
  // Cleanup styles
7626
7639
  if (cleanStyles) {
7627
7640
  swiper.removeClasses();
7628
- el.removeAttribute('style');
7629
- wrapperEl.removeAttribute('style');
7641
+ if (el && typeof el !== 'string') {
7642
+ el.removeAttribute('style');
7643
+ }
7644
+ if (wrapperEl) {
7645
+ wrapperEl.removeAttribute('style');
7646
+ }
7630
7647
  if (slides && slides.length) {
7631
7648
  slides.forEach(slideEl => {
7632
7649
  slideEl.classList.remove(params.slideVisibleClass, params.slideFullyVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass);
@@ -7642,7 +7659,9 @@ let Swiper$1 = class Swiper {
7642
7659
  swiper.off(eventName);
7643
7660
  });
7644
7661
  if (deleteInstance !== false) {
7645
- swiper.el.swiper = null;
7662
+ if (swiper.el && typeof swiper.el !== 'string') {
7663
+ swiper.el.swiper = null;
7664
+ }
7646
7665
  deleteProps(swiper);
7647
7666
  }
7648
7667
  swiper.destroyed = true;
@@ -8036,7 +8055,7 @@ const updateOnVirtualData = swiper => {
8036
8055
  };
8037
8056
 
8038
8057
  /**
8039
- * Swiper React 11.0.7
8058
+ * Swiper React 11.1.4
8040
8059
  * Most modern mobile touch slider and framework with hardware accelerated transitions
8041
8060
  * https://swiperjs.com
8042
8061
  *
@@ -8044,7 +8063,7 @@ const updateOnVirtualData = swiper => {
8044
8063
  *
8045
8064
  * Released under the MIT License
8046
8065
  *
8047
- * Released on: February 27, 2024
8066
+ * Released on: May 30, 2024
8048
8067
  */
8049
8068
 
8050
8069
 
@@ -12297,11 +12316,12 @@ function WaterfallList$1(_a) {
12297
12316
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
12298
12317
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: 'waterFallList', ref: waterfallFlowDom },
12299
12318
  React.createElement("div", { className: 'waterFallList-scroll', ref: scrollParent },
12300
- showBanner && ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.picture) && (React.createElement(FormatImage$1, { className: css({
12301
- width: '100%',
12302
- objectFit: 'cover',
12303
- marginBottom: '20px'
12304
- }), src: (_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.picture })),
12319
+ showBanner && ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.picture) && (React.createElement("div", { onClick: handleClickLink },
12320
+ React.createElement(FormatImage$1, { className: css({
12321
+ width: '100%',
12322
+ objectFit: 'cover',
12323
+ marginBottom: '20px'
12324
+ }), src: (_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.picture }))),
12305
12325
  React.createElement("div", { className: 'waterFallList-info', style: (_d = props === null || props === void 0 ? void 0 : props.textStyles) === null || _d === void 0 ? void 0 : _d.hashTagDesc }, (_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.info),
12306
12326
  React.createElement("div", { hidden: !((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.link), className: 'waterFallList-collection', style: Object.assign({}, (_g = props === null || props === void 0 ? void 0 : props.textStyles) === null || _g === void 0 ? void 0 : _g.hashTagLink), onClick: handleClickLink }, ((_h = data === null || data === void 0 ? void 0 : data.tag) === null || _h === void 0 ? void 0 : _h.linkTitle) || 'Shop the collection'),
12307
12327
  React.createElement("div", { className: 'waterFallList-content' }, list === null || list === void 0 ? void 0 :
@@ -12521,11 +12541,12 @@ function WaterfallList(_a) {
12521
12541
  return (React.createElement(React.Fragment, null, isLoadingData ? (React.createElement("div", { style: { height: '100%', width: '100%', display: 'flex', justifyContent: 'center', alignItems: 'center' } },
12522
12542
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement("div", { className: 'list' },
12523
12543
  React.createElement("div", { className: 'list-scroll', ref: containerRef },
12524
- showBanner && ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.picture) && (React.createElement(FormatImage$1, { className: css({
12525
- width: '100%',
12526
- objectFit: 'cover',
12527
- marginBottom: '20px'
12528
- }), src: (_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.picture })),
12544
+ showBanner && ((_b = data === null || data === void 0 ? void 0 : data.tag) === null || _b === void 0 ? void 0 : _b.picture) && (React.createElement("div", { onClick: handleClickLink },
12545
+ React.createElement(FormatImage$1, { className: css({
12546
+ width: '100%',
12547
+ objectFit: 'cover',
12548
+ marginBottom: '20px'
12549
+ }), src: (_c = data === null || data === void 0 ? void 0 : data.tag) === null || _c === void 0 ? void 0 : _c.picture }))),
12529
12550
  React.createElement("div", { className: 'list-info', style: (_d = props === null || props === void 0 ? void 0 : props.textStyles) === null || _d === void 0 ? void 0 : _d.hashTagDesc }, (_e = data === null || data === void 0 ? void 0 : data.tag) === null || _e === void 0 ? void 0 : _e.info),
12530
12551
  React.createElement("div", { hidden: !((_f = data === null || data === void 0 ? void 0 : data.tag) === null || _f === void 0 ? void 0 : _f.link), className: 'list-collection', onClick: handleClickLink, style: Object.assign(Object.assign({}, (_g = props === null || props === void 0 ? void 0 : props.textStyles) === null || _g === void 0 ? void 0 : _g.hashTagLink), { marginBottom: props === null || props === void 0 ? void 0 : props.space }) }, ((_h = data === null || data === void 0 ? void 0 : data.tag) === null || _h === void 0 ? void 0 : _h.linkTitle) || 'Shop the collection'),
12531
12552
  React.createElement("div", { className: 'list-content' }, list === null || list === void 0 ? void 0 : list.map((item, ind) => {