@elxjs/ui 0.0.205 → 0.0.207

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.
@@ -1337,7 +1337,6 @@ class EluxCarouselComponent {
1337
1337
  this.previousClickEventEmitter = new EventEmitter();
1338
1338
  this.nextClickEventEmitter = new EventEmitter();
1339
1339
  this.dotClickEventEmitter = new EventEmitter();
1340
- this.currentIndex = 0;
1341
1340
  this.currentStepIndex = 0;
1342
1341
  this.offset = 0;
1343
1342
  this.isDragging = false;
@@ -1346,62 +1345,77 @@ class EluxCarouselComponent {
1346
1345
  this.initialOffset = 0;
1347
1346
  this.dragOffset = 0;
1348
1347
  this.containerWidth = 0;
1349
- this.itemWidth = 0;
1350
1348
  this.maxOffset = 0;
1351
1349
  this.minOffset = 0;
1352
- this.animationId = null;
1353
1350
  this.velocity = 0;
1354
1351
  this.lastMoveTime = 0;
1355
1352
  this.lastMoveX = 0;
1356
- this.touchStartTime = 0;
1357
- this.touchStartX = 0;
1358
- this.touchStartY = 0;
1353
+ this.pointerStartTime = 0;
1354
+ this.pointerStartX = 0;
1355
+ this.pointerStartY = 0;
1356
+ this.pointerDownType = 'mouse';
1357
+ this.activePointerId = null;
1359
1358
  this.isVerticalScroll = false;
1360
- this.wasDragging = false;
1361
1359
  this.clicksDisabled = false;
1362
1360
  this.clickListeners = [];
1363
- this.dragStarted = false;
1364
- this.mouseDownTime = 0;
1361
+ this.itemsChangesSubscription = null;
1362
+ this.hasDragged = false;
1363
+ this.resizeHandler = () => this.onResize();
1364
+ this.transitionDuration = 'transform 0.4s ease-out';
1365
+ this.dragThresholdPx = 5;
1366
+ this.touchDragThresholdPx = 10;
1367
+ this.holdToDragThresholdMs = 200;
1368
+ this.touchDurationThresholdMs = 300;
1369
+ this.clickDisableDelayMs = 200;
1370
+ this.clearDraggedDelayMs = 250;
1371
+ this.slideChangeThresholdPx = 40;
1372
+ this.momentumThreshold = 0.3;
1373
+ this.edgeResistance = 0.3;
1365
1374
  }
1366
1375
  ngAfterContentInit() {
1367
- this.calculateDimensions();
1368
- this.setItemWidths();
1369
- this.updateLimits();
1376
+ this.refreshLayout();
1370
1377
  this.setupClickPrevention();
1371
- this.items.changes.subscribe(() => {
1372
- this.calculateDimensions();
1373
- this.setItemWidths();
1374
- this.updateLimits();
1378
+ this.itemsChangesSubscription = this.items.changes.subscribe(() => {
1379
+ this.refreshLayout();
1375
1380
  this.goToFirstSlide();
1376
1381
  this.setupClickPrevention();
1377
1382
  });
1378
1383
  // Listen for window resize to recalculate dimensions
1379
- window.addEventListener('resize', () => this.onResize());
1384
+ window.addEventListener('resize', this.resizeHandler);
1380
1385
  }
1381
1386
  ngOnDestroy() {
1382
- if (this.animationId) {
1383
- cancelAnimationFrame(this.animationId);
1384
- }
1387
+ this.itemsChangesSubscription?.unsubscribe();
1388
+ this.itemsChangesSubscription = null;
1385
1389
  // Clean up click listeners
1386
1390
  this.clickListeners.forEach(unlisten => unlisten());
1387
1391
  this.clickListeners = [];
1388
- window.removeEventListener('resize', () => this.onResize());
1392
+ window.removeEventListener('resize', this.resizeHandler);
1393
+ }
1394
+ refreshLayout() {
1395
+ this.calculateDimensions();
1396
+ this.setItemWidths();
1397
+ this.updateLimits();
1389
1398
  }
1390
1399
  calculateDimensions() {
1391
1400
  if (this.slidesContainer) {
1392
1401
  this.containerWidth = this.slidesContainer.nativeElement.offsetWidth;
1393
- const totalGap = Math.max(0, this.itemsPerSlide - 1) * this.gap;
1394
- this.itemWidth = (this.containerWidth - totalGap) / this.itemsPerSlide;
1395
1402
  }
1396
1403
  }
1397
1404
  updateLimits() {
1398
- const totalSteps = Math.ceil(this.items.length / this.itemsPerSlide);
1399
1405
  this.maxOffset = 0;
1400
- this.minOffset = -((totalSteps - 1) * 100);
1406
+ this.minOffset = -((this.getTotalSteps() - 1) * this.getPageWidthPercent());
1407
+ }
1408
+ getPageWidthPercent() {
1409
+ if (!this.containerWidth)
1410
+ return 100;
1411
+ const gapPercent = (this.gap / this.containerWidth) * 100;
1412
+ return 100 + gapPercent;
1413
+ }
1414
+ getTotalSteps() {
1415
+ return Math.ceil(this.items.length / this.itemsPerSlide);
1401
1416
  }
1402
1417
  canGoNext() {
1403
- const totalSteps = Math.ceil(this.items.length / this.itemsPerSlide);
1404
- return this.currentStepIndex < totalSteps - 1;
1418
+ return this.currentStepIndex < this.getTotalSteps() - 1;
1405
1419
  }
1406
1420
  canGoPrevious() {
1407
1421
  return this.currentStepIndex > 0;
@@ -1411,97 +1425,84 @@ class EluxCarouselComponent {
1411
1425
  this.updateOffset();
1412
1426
  }
1413
1427
  setItemWidths() {
1428
+ const totalGap = Math.max(0, this.itemsPerSlide - 1) * this.gap;
1414
1429
  this.items.forEach((item) => {
1415
1430
  this.renderer.setStyle(item.nativeElement, 'box-sizing', 'border-box');
1416
- const minWidth = `calc(100% / ${this.itemsPerSlide})`;
1417
- this.renderer.setStyle(item.nativeElement, 'minWidth', minWidth);
1431
+ const basis = `calc((100% - ${totalGap}px) / ${this.itemsPerSlide})`;
1432
+ this.renderer.setStyle(item.nativeElement, 'minWidth', basis);
1433
+ this.renderer.setStyle(item.nativeElement, 'flex', `0 0 ${basis}`);
1418
1434
  });
1419
- if (this.slidesContainer) {
1420
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'gap', `${this.gap}px`);
1421
- }
1422
1435
  }
1423
- // Mouse events
1424
- onMouseDown(event) {
1425
- event.preventDefault();
1426
- this.mouseDownTime = Date.now();
1427
- this.dragStarted = false;
1428
- this.startDrag(event.clientX);
1429
- }
1430
- onMouseMove(event) {
1431
- if (this.isDragging) {
1432
- event.preventDefault();
1433
- // Mark that we've started dragging if we've moved more than 5px
1434
- const dragDistance = Math.abs(this.currentX - this.startX);
1435
- if (dragDistance > 5 && !this.dragStarted) {
1436
- this.dragStarted = true;
1437
- this.wasDragging = true;
1438
- }
1439
- this.updateDrag(event.clientX);
1440
- }
1441
- }
1442
- onMouseUp(event) {
1443
- if (this.isDragging) {
1444
- const mouseUpTime = Date.now();
1445
- const holdDuration = mouseUpTime - this.mouseDownTime;
1446
- const mouseDistance = Math.abs(this.currentX - this.startX);
1447
- // Consider it a drag if:
1448
- // 1. We moved more than 5px, OR
1449
- // 2. We held the mouse down for more than 200ms and moved at all
1450
- if (mouseDistance > 5 || (holdDuration > 200 && mouseDistance > 0)) {
1451
- this.wasDragging = true;
1452
- }
1453
- this.endDrag();
1454
- }
1455
- }
1456
- onMouseLeave(event) {
1457
- if (this.isDragging) {
1458
- // If mouse leaves while dragging, definitely consider it a drag
1459
- this.wasDragging = true;
1460
- this.endDrag();
1461
- }
1462
- }
1463
- // Touch events
1464
- onTouchStart(event) {
1465
- this.touchStartTime = Date.now();
1466
- this.touchStartX = event.touches[0].clientX;
1467
- this.touchStartY = event.touches[0].clientY;
1436
+ onPointerDown(event) {
1437
+ if (event.pointerType === 'mouse' && event.button !== 0)
1438
+ return;
1439
+ this.activePointerId = event.pointerId;
1440
+ this.pointerDownType = event.pointerType;
1441
+ this.pointerStartTime = Date.now();
1442
+ this.pointerStartX = event.clientX;
1443
+ this.pointerStartY = event.clientY;
1468
1444
  this.isVerticalScroll = false;
1469
- this.startDrag(event.touches[0].clientX);
1445
+ if (event.pointerType !== 'mouse' &&
1446
+ this.slidesContainer?.nativeElement?.setPointerCapture) {
1447
+ this.slidesContainer.nativeElement.setPointerCapture(event.pointerId);
1448
+ }
1449
+ this.startDrag(event.clientX);
1470
1450
  }
1471
- onTouchMove(event) {
1472
- if (!this.isDragging)
1451
+ onPointerMove(event) {
1452
+ if (!this.isDragging || this.activePointerId !== event.pointerId)
1473
1453
  return;
1474
- const currentX = event.touches[0].clientX;
1475
- const currentY = event.touches[0].clientY;
1476
- const deltaX = Math.abs(currentX - this.touchStartX);
1477
- const deltaY = Math.abs(currentY - this.touchStartY);
1478
- // Check if this is a vertical scroll
1479
- if (deltaY > deltaX && deltaY > 10) {
1454
+ const deltaX = Math.abs(event.clientX - this.pointerStartX);
1455
+ const deltaY = Math.abs(event.clientY - this.pointerStartY);
1456
+ const isTouchLikePointer = this.pointerDownType !== 'mouse';
1457
+ if (isTouchLikePointer && deltaY > deltaX && deltaY > this.touchDragThresholdPx) {
1480
1458
  this.isVerticalScroll = true;
1481
1459
  this.isDragging = false;
1482
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.4s ease-out');
1460
+ this.setSlidesTransition(true);
1483
1461
  return;
1484
1462
  }
1485
- // Only prevent default if it's a horizontal drag
1486
- if (deltaX > 10) {
1463
+ if (this.pointerDownType === 'mouse' || deltaX > this.touchDragThresholdPx) {
1487
1464
  event.preventDefault();
1488
- this.updateDrag(event.touches[0].clientX);
1465
+ this.updateDrag(event.clientX);
1489
1466
  }
1490
1467
  }
1491
- onTouchEnd(event) {
1468
+ onPointerUp(event) {
1469
+ if (this.activePointerId !== event.pointerId)
1470
+ return;
1492
1471
  if (this.isVerticalScroll) {
1493
- this.isVerticalScroll = false;
1472
+ this.resetPointerState(event.pointerId);
1494
1473
  return;
1495
1474
  }
1496
- const touchDuration = Date.now() - this.touchStartTime;
1497
- const touchDistance = Math.abs(this.currentX - this.startX);
1498
- // Mark as dragging if significant movement occurred
1499
- if (touchDistance > 10 || touchDuration > 300) {
1500
- this.wasDragging = true;
1475
+ const pressDuration = Date.now() - this.pointerStartTime;
1476
+ const pointerDistance = Math.abs(this.currentX - this.startX);
1477
+ if (this.pointerDownType === 'mouse') {
1478
+ if (pointerDistance > this.dragThresholdPx) {
1479
+ this.hasDragged = true;
1480
+ }
1481
+ }
1482
+ else if (pointerDistance > this.touchDragThresholdPx || pressDuration > this.touchDurationThresholdMs) {
1483
+ this.hasDragged = true;
1501
1484
  }
1502
1485
  if (this.isDragging) {
1503
1486
  this.endDrag();
1504
1487
  }
1488
+ this.resetPointerState(event.pointerId);
1489
+ }
1490
+ onPointerCancel(event) {
1491
+ if (this.activePointerId !== event.pointerId)
1492
+ return;
1493
+ if (this.isDragging) {
1494
+ this.hasDragged = true;
1495
+ this.endDrag();
1496
+ }
1497
+ this.resetPointerState(event.pointerId);
1498
+ }
1499
+ resetPointerState(pointerId) {
1500
+ if (this.pointerDownType !== 'mouse' &&
1501
+ this.slidesContainer?.nativeElement?.releasePointerCapture) {
1502
+ this.slidesContainer.nativeElement.releasePointerCapture(pointerId);
1503
+ }
1504
+ this.activePointerId = null;
1505
+ this.isVerticalScroll = false;
1505
1506
  }
1506
1507
  setupClickPrevention() {
1507
1508
  // Clean up existing listeners
@@ -1510,7 +1511,7 @@ class EluxCarouselComponent {
1510
1511
  this.items.forEach((item) => {
1511
1512
  // Only prevent click events, not mouseup which is needed for drag functionality
1512
1513
  const eventHandler = (event) => {
1513
- if (event.type === 'click' && (this.wasDragging || this.clicksDisabled || this.dragStarted)) {
1514
+ if (event.type === 'click' && (this.hasDragged || this.clicksDisabled)) {
1514
1515
  event.preventDefault();
1515
1516
  event.stopPropagation();
1516
1517
  event.stopImmediatePropagation();
@@ -1519,16 +1520,13 @@ class EluxCarouselComponent {
1519
1520
  return true;
1520
1521
  };
1521
1522
  // Only listen to click events to avoid interfering with drag functionality
1522
- item.nativeElement.addEventListener('click', eventHandler, true);
1523
- this.clickListeners.push(() => {
1524
- item.nativeElement.removeEventListener('click', eventHandler, true);
1525
- });
1523
+ const unlisten = this.renderer.listen(item.nativeElement, 'click', eventHandler);
1524
+ this.clickListeners.push(unlisten);
1526
1525
  });
1527
1526
  }
1528
1527
  startDrag(clientX) {
1529
1528
  this.isDragging = true;
1530
- this.wasDragging = false;
1531
- this.dragStarted = false;
1529
+ this.hasDragged = false;
1532
1530
  this.clicksDisabled = false;
1533
1531
  this.startX = clientX;
1534
1532
  this.currentX = clientX;
@@ -1539,7 +1537,7 @@ class EluxCarouselComponent {
1539
1537
  this.lastMoveX = clientX;
1540
1538
  this.calculateDimensions();
1541
1539
  // Disable CSS transitions during drag
1542
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'none');
1540
+ this.setSlidesTransition(false);
1543
1541
  }
1544
1542
  updateDrag(clientX) {
1545
1543
  if (!this.isDragging)
@@ -1547,9 +1545,8 @@ class EluxCarouselComponent {
1547
1545
  this.currentX = clientX;
1548
1546
  const totalDeltaX = this.currentX - this.startX;
1549
1547
  // Mark as dragging if movement is significant
1550
- if (Math.abs(totalDeltaX) > 5) {
1551
- this.wasDragging = true;
1552
- this.dragStarted = true;
1548
+ if (Math.abs(totalDeltaX) > this.dragThresholdPx) {
1549
+ this.hasDragged = true;
1553
1550
  }
1554
1551
  // Calculate velocity for momentum
1555
1552
  const now = Date.now();
@@ -1571,11 +1568,11 @@ class EluxCarouselComponent {
1571
1568
  const potentialOffset = this.initialOffset + dragPercentage;
1572
1569
  if (potentialOffset > this.maxOffset) {
1573
1570
  const overDrag = potentialOffset - this.maxOffset;
1574
- resistedDragPercentage = dragPercentage - (overDrag * 0.3);
1571
+ resistedDragPercentage = dragPercentage - (overDrag * this.edgeResistance);
1575
1572
  }
1576
1573
  else if (potentialOffset < this.minOffset) {
1577
1574
  const overDrag = this.minOffset - potentialOffset;
1578
- resistedDragPercentage = dragPercentage + (overDrag * 0.3);
1575
+ resistedDragPercentage = dragPercentage + (overDrag * this.edgeResistance);
1579
1576
  }
1580
1577
  this.dragOffset = resistedDragPercentage;
1581
1578
  this.updateDragPosition();
@@ -1589,29 +1586,26 @@ class EluxCarouselComponent {
1589
1586
  return;
1590
1587
  this.isDragging = false;
1591
1588
  // Disable clicks temporarily after any drag
1592
- if (this.wasDragging || this.dragStarted) {
1589
+ if (this.hasDragged) {
1593
1590
  this.clicksDisabled = true;
1594
1591
  setTimeout(() => {
1595
1592
  this.clicksDisabled = false;
1596
- }, 200);
1593
+ }, this.clickDisableDelayMs);
1597
1594
  }
1598
- // Clear the wasDragging and dragStarted flags after a shorter delay
1595
+ // Clear the drag flag after a shorter delay
1599
1596
  setTimeout(() => {
1600
- this.wasDragging = false;
1601
- this.dragStarted = false;
1602
- }, 250);
1597
+ this.hasDragged = false;
1598
+ }, this.clearDraggedDelayMs);
1603
1599
  // Re-enable CSS transitions
1604
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.4s ease-out');
1605
- const threshold = 40;
1600
+ this.setSlidesTransition(true);
1606
1601
  const dragDistance = Math.abs(this.currentX - this.startX);
1607
1602
  // Check for momentum (velocity-based slide change)
1608
- const momentumThreshold = 0.3;
1609
- const hasSignificantVelocity = Math.abs(this.velocity) > momentumThreshold;
1603
+ const hasSignificantVelocity = Math.abs(this.velocity) > this.momentumThreshold;
1610
1604
  if ((this.currentStepIndex === 0 && (this.dragOffset > 0 || this.velocity > 0)) ||
1611
1605
  (!this.canGoNext() && (this.dragOffset < 0 || this.velocity < 0))) {
1612
1606
  this.updateOffset();
1613
1607
  }
1614
- else if (dragDistance > threshold || hasSignificantVelocity) {
1608
+ else if (dragDistance > this.slideChangeThresholdPx || hasSignificantVelocity) {
1615
1609
  if (this.dragOffset > 0 || (hasSignificantVelocity && this.velocity > 0)) {
1616
1610
  // Dragged right or has positive velocity - go to previous slide
1617
1611
  this.prevSlide();
@@ -1633,22 +1627,24 @@ class EluxCarouselComponent {
1633
1627
  this.dragOffset = 0;
1634
1628
  this.velocity = 0;
1635
1629
  }
1630
+ setSlidesTransition(enabled) {
1631
+ if (!this.slidesContainer)
1632
+ return;
1633
+ this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', enabled ? this.transitionDuration : 'none');
1634
+ }
1636
1635
  getStepIndexCount() {
1637
- const totalSteps = Math.ceil(this.items.length / this.itemsPerSlide);
1638
- return Array.from({ length: totalSteps }, (_, i) => i);
1636
+ return Array.from({ length: this.getTotalSteps() }, (_, i) => i);
1639
1637
  }
1640
1638
  getCurrentStepIndex() {
1641
1639
  return this.currentStepIndex;
1642
1640
  }
1643
1641
  goToFirstSlide() {
1644
- this.currentIndex = 0;
1645
1642
  this.currentStepIndex = 0;
1646
1643
  this.updateOffset();
1647
1644
  this.scrollActiveDotIntoView(0);
1648
1645
  }
1649
1646
  goToSlide(index) {
1650
1647
  this.currentStepIndex = index;
1651
- this.currentIndex = Math.min(index * this.itemsPerSlide, this.items.length - this.itemsPerSlide);
1652
1648
  this.updateOffset();
1653
1649
  this.scrollActiveDotIntoView(index);
1654
1650
  this.dotClickEventEmitter.emit();
@@ -1657,7 +1653,6 @@ class EluxCarouselComponent {
1657
1653
  if (!this.canGoPrevious())
1658
1654
  return;
1659
1655
  this.currentStepIndex--;
1660
- this.currentIndex = this.currentStepIndex * this.itemsPerSlide;
1661
1656
  this.updateOffset();
1662
1657
  this.scrollActiveDotIntoView(this.currentStepIndex);
1663
1658
  this.previousClickEventEmitter.emit();
@@ -1666,13 +1661,12 @@ class EluxCarouselComponent {
1666
1661
  if (!this.canGoNext())
1667
1662
  return;
1668
1663
  this.currentStepIndex++;
1669
- this.currentIndex = Math.min(this.currentStepIndex * this.itemsPerSlide, this.items.length - this.itemsPerSlide);
1670
1664
  this.updateOffset();
1671
1665
  this.scrollActiveDotIntoView(this.currentStepIndex);
1672
1666
  this.nextClickEventEmitter.emit();
1673
1667
  }
1674
1668
  updateOffset() {
1675
- this.offset = -100 * (this.currentIndex / this.itemsPerSlide);
1669
+ this.offset = -(this.currentStepIndex * this.getPageWidthPercent());
1676
1670
  if (!this.isDragging && this.slidesContainer) {
1677
1671
  this.renderer.setStyle(this.slidesContainer.nativeElement, 'transform', `translateX(${this.offset}%)`);
1678
1672
  }
@@ -1696,11 +1690,11 @@ class EluxCarouselComponent {
1696
1690
  });
1697
1691
  }
1698
1692
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
1699
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselComponent, isStandalone: true, selector: "lib-elux-carousel", inputs: { itemsPerSlide: "itemsPerSlide", gap: "gap", title: "title" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "dotsContainer", first: true, predicate: ["dotsContainer"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }], ngImport: i0, template: "<div class=\"c-carousel-container\">\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <button\n class=\"c-carousel-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n\n <button\n class=\"c-carousel-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n (mousedown)=\"onMouseDown($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n (touchstart)=\"onTouchStart($event)\" \n (touchmove)=\"onTouchMove($event)\" \n (touchend)=\"onTouchEnd($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <button *ngIf=\"!title\" class=\"c-carousel-nav prev\" [disabled]=\"!canGoPrevious()\" title=\"Slide anterior\" aria-label=\"Slide anterior\" (click)=\"prevSlide()\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <button *ngIf=\"!title\" class=\"c-carousel-nav next\" [disabled]=\"!canGoNext()\" title=\"Pr\u00F3ximo slide\" aria-label=\"Pr\u00F3ximo slide\" (click)=\"nextSlide()\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:10px;width:10px;margin:0 5px;background-color:#dfe7ea;border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{background-color:#3d5275}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
1693
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselComponent, isStandalone: true, selector: "lib-elux-carousel", inputs: { itemsPerSlide: "itemsPerSlide", gap: "gap", title: "title" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "dotsContainer", first: true, predicate: ["dotsContainer"], descendants: true }, { propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }], ngImport: i0, template: "<div class=\"c-carousel-container\">\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:10px;width:10px;margin:0 5px;background-color:#dfe7ea;border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{background-color:#3d5275}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
1700
1694
  }
1701
1695
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselComponent, decorators: [{
1702
1696
  type: Component,
1703
- args: [{ standalone: true, selector: 'lib-elux-carousel', imports: [CommonModule, EluxIcon], template: "<div class=\"c-carousel-container\">\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <button\n class=\"c-carousel-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n\n <button\n class=\"c-carousel-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n (mousedown)=\"onMouseDown($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n (touchstart)=\"onTouchStart($event)\" \n (touchmove)=\"onTouchMove($event)\" \n (touchend)=\"onTouchEnd($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <button *ngIf=\"!title\" class=\"c-carousel-nav prev\" [disabled]=\"!canGoPrevious()\" title=\"Slide anterior\" aria-label=\"Slide anterior\" (click)=\"prevSlide()\">\n <lib-elux-icon [icon]=\"'Chevron_Left.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <button *ngIf=\"!title\" class=\"c-carousel-nav next\" [disabled]=\"!canGoNext()\" title=\"Pr\u00F3ximo slide\" aria-label=\"Pr\u00F3ximo slide\" (click)=\"nextSlide()\">\n <lib-elux-icon [icon]=\"'Chevron_Right.svg'\" [size]=\"'16'\" [sizeType]=\"'px'\" [color]=\"'#020F2E'\"></lib-elux-icon>\n </button>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:10px;width:10px;margin:0 5px;background-color:#dfe7ea;border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{background-color:#3d5275}\n"] }]
1697
+ args: [{ standalone: true, selector: 'lib-elux-carousel', imports: [CommonModule, EluxIcon], template: "<div class=\"c-carousel-container\">\n <ng-template #prevNav>\n <button\n class=\"c-carousel-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"Slide anterior\"\n aria-label=\"Slide anterior\"\n (click)=\"prevSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3ximo slide\"\n aria-label=\"Pr\u00F3ximo slide\"\n (click)=\"nextSlide()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-header\">\n <div class=\"c-carousel-header-inner\">\n <div class=\"c-carousel-title\">{{ title }}</div>\n <div class=\"c-carousel-controls\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n <div \n class=\"c-carousel-slides\" \n #slidesContainer\n [style.transform]=\"'translateX(' + offset + '%)'\" \n [style.gap.px]=\"gap\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"c-carousel-footer\" *ngIf=\"getStepIndexCount().length > 1\">\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-dots\" #dotsContainer>\n <span\n role=\"button\"\n class=\"dot\"\n *ngFor=\"let index of getStepIndexCount()\"\n (click)=\"goToSlide(index)\"\n (keyup)=\"goToSlide(index)\"\n [class.active]=\"index === getCurrentStepIndex()\"\n [attr.aria-disabled]=\"true\"\n [attr.aria-label]=\"'pagina' + (index + 1)\"\n >\n </span>\n </div>\n\n <ng-container *ngIf=\"!title\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.c-carousel-container{position:relative;width:100%}.c-carousel-controls{display:flex;align-items:center;gap:12px}.c-carousel-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-nav:disabled:hover{transform:none}.c-carousel-nav ::ng-deep span{display:block}.c-carousel-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-header{margin-bottom:40px}}.c-carousel-header .c-carousel-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-header .c-carousel-header-inner .c-carousel-title{font-size:32px;line-height:35px}}.c-carousel-slides{display:flex;transition:transform .4s ease-out;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none;will-change:transform}.c-carousel-slides:active{cursor:grabbing}.c-carousel-item{display:flex;flex-direction:column;text-align:center;align-items:center;justify-content:center;gap:16px;height:150px;margin:6px;border:1px solid #dee7ea;border-radius:2px;cursor:pointer;pointer-events:auto}.c-carousel-item .c-span{font-weight:400;font-size:18px;color:#011e41}.c-carousel-footer{width:min-content;margin:32px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0}@media (min-width: 992px){.c-carousel-footer{margin:40px auto 0}}.c-carousel-footer .c-carousel-dots{padding:6px;display:flex;text-align:center;border-radius:16px;margin:0 16px;max-width:120px;overflow:hidden;position:relative}@media (max-width: 768px){.c-carousel-footer .c-carousel-dots{margin:0 12px;max-width:100px}}.c-carousel-footer .dot{height:10px;width:10px;margin:0 5px;background-color:#dfe7ea;border-radius:50%;display:inline-block;cursor:pointer;transition:all ease-in-out .2s;flex-shrink:0}.c-carousel-footer .dot:hover{background-color:#011e41}.c-carousel-footer .dot.active{background-color:#3d5275}\n"] }]
1704
1698
  }], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { items: [{
1705
1699
  type: ContentChildren,
1706
1700
  args: ['carouselItem', { read: ElementRef }]
@@ -2448,6 +2442,7 @@ class EluxCardBenefit {
2448
2442
  this.sanitizer = sanitizer;
2449
2443
  this.icon = '';
2450
2444
  this.description = '';
2445
+ this.link = '';
2451
2446
  this.routerLink = '';
2452
2447
  this.buttonText = '';
2453
2448
  this.BREAK_VALUE = 55;
@@ -2469,11 +2464,11 @@ class EluxCardBenefit {
2469
2464
  return this.sanitizer.bypassSecurityTrustHtml(this.description || '');
2470
2465
  }
2471
2466
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardBenefit, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component }); }
2472
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardBenefit, isStandalone: true, selector: "lib-elux-card-benefit", inputs: { title: "title", image: "image", imageAlt: "imageAlt", icon: "icon", description: "description", routerLink: "routerLink", buttonText: "buttonText" }, ngImport: i0, template: "<a [routerLink]=\"routerLink\" class=\"card-benefit\">\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</a>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;border-radius:4px;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ElectroluxDesignSystemModule }, { kind: "component", type: EluxButton, selector: "lib-elux-button", inputs: ["disabled", "type", "typeButton", "content", "done", "routerLink", "link", "size", "icon", "iconAlign", "externalLink", "loading", "onlyfirstLetterUpper", "rounded"], outputs: ["onClick"] }] }); }
2467
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCardBenefit, isStandalone: true, selector: "lib-elux-card-benefit", inputs: { title: "title", image: "image", imageAlt: "imageAlt", icon: "icon", description: "description", link: "link", routerLink: "routerLink", buttonText: "buttonText" }, ngImport: i0, template: "<a\n class=\"card-benefit\"\n [routerLink]=\"routerLink || null\"\n [attr.href]=\"routerLink ? null : link\"\n [attr.target]=\"routerLink ? null : '_blank'\"\n [attr.rel]=\"routerLink ? null : 'noopener noreferrer'\"\n>\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</a>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"], dependencies: [{ kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ElectroluxDesignSystemModule }, { kind: "component", type: EluxButton, selector: "lib-elux-button", inputs: ["disabled", "type", "typeButton", "content", "done", "routerLink", "link", "size", "icon", "iconAlign", "externalLink", "loading", "onlyfirstLetterUpper", "rounded"], outputs: ["onClick"] }] }); }
2473
2468
  }
2474
2469
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCardBenefit, decorators: [{
2475
2470
  type: Component,
2476
- args: [{ standalone: true, imports: [RouterModule, CommonModule, EluxIcon, ElectroluxDesignSystemModule], selector: 'lib-elux-card-benefit', template: "<a [routerLink]=\"routerLink\" class=\"card-benefit\">\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</a>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;border-radius:4px;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"] }]
2471
+ args: [{ standalone: true, imports: [RouterModule, CommonModule, EluxIcon, ElectroluxDesignSystemModule], selector: 'lib-elux-card-benefit', template: "<a\n class=\"card-benefit\"\n [routerLink]=\"routerLink || null\"\n [attr.href]=\"routerLink ? null : link\"\n [attr.target]=\"routerLink ? null : '_blank'\"\n [attr.rel]=\"routerLink ? null : 'noopener noreferrer'\"\n>\n <div class=\"card-benefit__image-wrapper\">\n <img [src]=\"image\" [alt]=\"imageAlt\" class=\"card-benefit__image\" />\n </div>\n <div class=\"card-benefit__content\">\n <div class=\"d-flex flex-column\">\n <img\n *ngIf=\"icon\"\n [src]=\"icon\"\n loading=\"lazy\"\n width=\"24px\"\n height=\"24px\"\n class=\"card-benefit__icon\"\n />\n <span class=\"card-benefit__title\">{{ truncateTitle(title) }}</span>\n </div>\n <div class=\"card-benefit__description\" [innerHTML]=\"descriptionHtml\"></div>\n <lib-elux-button\n *ngIf=\"buttonText\"\n class=\"card-bebenfit__button\"\n [content]=\"buttonText\"\n [type]=\"'basic-dark'\"\n />\n </div>\n</a>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}.card-benefit{display:flex;flex-direction:column;justify-content:space-between;background-color:#312e3c;overflow:hidden;text-decoration:none;transition:transform .3s ease,box-shadow .3s ease;padding:16px;height:100%;width:100%;min-width:300px;max-width:370px}.card-benefit:hover{transform:translateY(-4px);box-shadow:0 4px 12px #0000001a}.card-benefit__image-wrapper{width:100%;height:200px;overflow:hidden;margin-bottom:24px}.card-benefit__image{width:100%;height:100%;object-fit:cover;display:block}.card-benefit__content{min-height:150px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}.card-benefit__icon{align-self:flex-start;margin-bottom:8px}.card-benefit__title{color:#fff;font-size:18px;font-weight:600;line-height:22px}.card-benefit__description{color:#fff;font-size:14px;font-weight:400;line-height:21px}.card-benefit__button,.card-benefit .card-bebenfit__button{align-self:flex-start}.card-benefit__link{display:inline-flex;align-items:center;gap:6px;color:#2b3227;font-size:14px;font-weight:500;text-decoration:underline;cursor:pointer}@media (min-width: 992px){.card-benefit{width:100%;min-width:300px;max-width:370px}.card-benefit__image-wrapper{width:100%;height:250px;overflow:hidden}}\n"] }]
2477
2472
  }], ctorParameters: () => [{ type: i1$2.DomSanitizer }], propDecorators: { title: [{
2478
2473
  type: Input
2479
2474
  }], image: [{
@@ -2484,6 +2479,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
2484
2479
  type: Input
2485
2480
  }], description: [{
2486
2481
  type: Input
2482
+ }], link: [{
2483
+ type: Input
2487
2484
  }], routerLink: [{
2488
2485
  type: Input
2489
2486
  }], buttonText: [{
@@ -2647,7 +2644,6 @@ class EluxCarouselBleedComponent {
2647
2644
  this.currentIndex = 0;
2648
2645
  this.translateX = 0;
2649
2646
  this.isDragging = false;
2650
- this.isMouseDown = false;
2651
2647
  this.startX = 0;
2652
2648
  this.currentX = 0;
2653
2649
  this.initialTranslateX = 0;
@@ -2658,18 +2654,25 @@ class EluxCarouselBleedComponent {
2658
2654
  this.velocity = 0;
2659
2655
  this.lastMoveTime = 0;
2660
2656
  this.lastMoveX = 0;
2661
- this.touchStartTime = 0;
2662
- this.touchStartX = 0;
2663
- this.touchStartY = 0;
2657
+ this.pointerStartTime = 0;
2658
+ this.pointerStartX = 0;
2659
+ this.pointerStartY = 0;
2660
+ this.pointerDownType = 'mouse';
2661
+ this.activePointerId = null;
2664
2662
  this.isVerticalScroll = false;
2665
- this.wasDragging = false;
2663
+ this.hasDragged = false;
2666
2664
  this.clicksDisabled = false;
2667
2665
  this.clickListeners = [];
2668
- this.dragStarted = false;
2669
- this.mouseDownTime = 0;
2670
2666
  this.resizeRafId = null;
2671
2667
  this.lastLeftOffset = 0;
2672
2668
  this.lastScrollbarWidth = 0;
2669
+ this.transitionDuration = 'transform 0.3s ease-out';
2670
+ this.dragThresholdPx = 5;
2671
+ this.touchDragThresholdPx = 10;
2672
+ this.holdToDragThresholdMs = 200;
2673
+ this.touchDurationThresholdMs = 300;
2674
+ this.clickDisableDelayMs = 200;
2675
+ this.clearDraggedDelayMs = 250;
2673
2676
  this.calculateBleedOffsets = () => {
2674
2677
  if (!this.bleedShell)
2675
2678
  return;
@@ -2789,134 +2792,78 @@ class EluxCarouselBleedComponent {
2789
2792
  return false;
2790
2793
  return !!element.closest('.c-carousel-fixed-item');
2791
2794
  }
2792
- // Mouse events
2793
- onMouseDown(event) {
2794
- if (!this.isDragStartAllowed(event.target))
2795
+ onPointerDown(event) {
2796
+ if (event.pointerType === 'mouse' && event.button !== 0)
2795
2797
  return;
2796
- event.preventDefault();
2797
- this.mouseDownTime = Date.now();
2798
- this.dragStarted = false;
2799
- this.isMouseDown = true;
2800
- this.wasDragging = false;
2801
- this.clicksDisabled = false;
2802
- this.startX = event.clientX;
2803
- this.currentX = event.clientX;
2804
- this.initialTranslateX = this.translateX;
2805
- this.dragOffset = 0;
2806
- this.velocity = 0;
2807
- this.lastMoveTime = Date.now();
2808
- this.lastMoveX = event.clientX;
2809
- this.calculateDimensions();
2810
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'none');
2811
- }
2812
- onMouseMove(event) {
2813
- if (!this.isMouseDown)
2814
- return;
2815
- event.preventDefault();
2816
- const dragDistance = Math.abs(event.clientX - this.startX);
2817
- // Only start dragging if moved more than 5px
2818
- if (dragDistance > 5 && !this.isDragging) {
2819
- this.isDragging = true;
2820
- this.dragStarted = true;
2821
- this.wasDragging = true;
2822
- }
2823
- if (this.isDragging) {
2824
- this.updateDrag(event.clientX);
2825
- }
2826
- }
2827
- onMouseUp(event) {
2828
- if (!this.isMouseDown)
2829
- return;
2830
- this.isMouseDown = false;
2831
- if (this.isDragging) {
2832
- const mouseUpTime = Date.now();
2833
- const holdDuration = mouseUpTime - this.mouseDownTime;
2834
- const mouseDistance = Math.abs(this.currentX - this.startX);
2835
- if (mouseDistance > 5 || (holdDuration > 200 && mouseDistance > 0)) {
2836
- this.wasDragging = true;
2837
- }
2838
- this.endDrag();
2839
- }
2840
- else {
2841
- // Reset transition if it was just a click
2842
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.3s ease-out');
2843
- }
2844
- }
2845
- onMouseLeave(event) {
2846
- if (this.isDragging) {
2847
- this.wasDragging = true;
2848
- this.endDrag();
2849
- }
2850
- this.isMouseDown = false;
2851
- }
2852
- // Touch events
2853
- onTouchStart(event) {
2854
2798
  if (!this.isDragStartAllowed(event.target))
2855
2799
  return;
2856
- this.touchStartTime = Date.now();
2857
- this.touchStartX = event.touches[0].clientX;
2858
- this.touchStartY = event.touches[0].clientY;
2800
+ this.activePointerId = event.pointerId;
2801
+ this.pointerDownType = event.pointerType;
2802
+ this.pointerStartTime = Date.now();
2803
+ this.pointerStartX = event.clientX;
2804
+ this.pointerStartY = event.clientY;
2859
2805
  this.isVerticalScroll = false;
2860
- this.isMouseDown = true;
2861
- this.wasDragging = false;
2862
- this.dragStarted = false;
2863
- this.clicksDisabled = false;
2864
- this.startX = event.touches[0].clientX;
2865
- this.currentX = event.touches[0].clientX;
2866
- this.initialTranslateX = this.translateX;
2867
- this.dragOffset = 0;
2868
- this.velocity = 0;
2869
- this.lastMoveTime = Date.now();
2870
- this.lastMoveX = event.touches[0].clientX;
2871
- this.calculateDimensions();
2872
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'none');
2806
+ if (event.pointerType !== 'mouse' &&
2807
+ this.slidesContainer?.nativeElement?.setPointerCapture) {
2808
+ this.slidesContainer.nativeElement.setPointerCapture(event.pointerId);
2809
+ }
2810
+ this.startDrag(event.clientX);
2873
2811
  }
2874
- onTouchMove(event) {
2875
- if (!this.isMouseDown)
2812
+ onPointerMove(event) {
2813
+ if (!this.isDragging || this.activePointerId !== event.pointerId)
2876
2814
  return;
2877
- const currentX = event.touches[0].clientX;
2878
- const currentY = event.touches[0].clientY;
2879
- const deltaX = Math.abs(currentX - this.touchStartX);
2880
- const deltaY = Math.abs(currentY - this.touchStartY);
2881
- // Check if this is a vertical scroll
2882
- if (deltaY > deltaX && deltaY > 10) {
2815
+ const deltaX = Math.abs(event.clientX - this.pointerStartX);
2816
+ const deltaY = Math.abs(event.clientY - this.pointerStartY);
2817
+ const isTouchLikePointer = this.pointerDownType !== 'mouse';
2818
+ if (isTouchLikePointer && deltaY > deltaX && deltaY > this.touchDragThresholdPx) {
2883
2819
  this.isVerticalScroll = true;
2884
2820
  this.isDragging = false;
2885
- this.isMouseDown = false;
2886
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.3s ease-out');
2821
+ this.setSlidesTransition(true);
2887
2822
  return;
2888
2823
  }
2889
- // Start dragging if horizontal movement > 10px
2890
- if (deltaX > 10 && !this.isDragging) {
2891
- this.isDragging = true;
2892
- this.dragStarted = true;
2893
- this.wasDragging = true;
2894
- }
2895
- if (this.isDragging && deltaX > 10) {
2824
+ if (this.pointerDownType === 'mouse' || deltaX > this.touchDragThresholdPx) {
2896
2825
  event.preventDefault();
2897
- this.updateDrag(currentX);
2826
+ this.updateDrag(event.clientX);
2898
2827
  }
2899
2828
  }
2900
- onTouchEnd(event) {
2829
+ onPointerUp(event) {
2830
+ if (this.activePointerId !== event.pointerId)
2831
+ return;
2901
2832
  if (this.isVerticalScroll) {
2902
- this.isVerticalScroll = false;
2903
- this.isMouseDown = false;
2833
+ this.resetPointerState(event.pointerId);
2904
2834
  return;
2905
2835
  }
2906
- this.isMouseDown = false;
2907
- const touchDuration = Date.now() - this.touchStartTime;
2908
- const touchDistance = Math.abs(this.currentX - this.startX);
2909
- // Mark as dragging if significant movement occurred
2910
- if (touchDistance > 10 || touchDuration > 300) {
2911
- this.wasDragging = true;
2836
+ const pressDuration = Date.now() - this.pointerStartTime;
2837
+ const pointerDistance = Math.abs(this.currentX - this.startX);
2838
+ if (this.pointerDownType === 'mouse') {
2839
+ if (pointerDistance > this.dragThresholdPx) {
2840
+ this.hasDragged = true;
2841
+ }
2842
+ }
2843
+ else if (pointerDistance > this.touchDragThresholdPx || pressDuration > this.touchDurationThresholdMs) {
2844
+ this.hasDragged = true;
2912
2845
  }
2913
2846
  if (this.isDragging) {
2914
2847
  this.endDrag();
2915
2848
  }
2916
- else {
2917
- // Reset transition if it was just a tap
2918
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.3s ease-out');
2849
+ this.resetPointerState(event.pointerId);
2850
+ }
2851
+ onPointerCancel(event) {
2852
+ if (this.activePointerId !== event.pointerId)
2853
+ return;
2854
+ if (this.isDragging) {
2855
+ this.hasDragged = true;
2856
+ this.endDrag();
2919
2857
  }
2858
+ this.resetPointerState(event.pointerId);
2859
+ }
2860
+ resetPointerState(pointerId) {
2861
+ if (this.pointerDownType !== 'mouse' &&
2862
+ this.slidesContainer?.nativeElement?.releasePointerCapture) {
2863
+ this.slidesContainer.nativeElement.releasePointerCapture(pointerId);
2864
+ }
2865
+ this.activePointerId = null;
2866
+ this.isVerticalScroll = false;
2920
2867
  }
2921
2868
  setupClickPrevention() {
2922
2869
  // Clean up existing listeners
@@ -2925,7 +2872,7 @@ class EluxCarouselBleedComponent {
2925
2872
  this.items.forEach((item) => {
2926
2873
  // Only prevent click events, not mouseup which is needed for drag functionality
2927
2874
  const eventHandler = (event) => {
2928
- if (event.type === 'click' && (this.wasDragging || this.clicksDisabled || this.dragStarted)) {
2875
+ if (event.type === 'click' && (this.hasDragged || this.clicksDisabled)) {
2929
2876
  event.preventDefault();
2930
2877
  event.stopPropagation();
2931
2878
  event.stopImmediatePropagation();
@@ -2940,15 +2887,28 @@ class EluxCarouselBleedComponent {
2940
2887
  });
2941
2888
  });
2942
2889
  }
2890
+ startDrag(clientX) {
2891
+ this.isDragging = true;
2892
+ this.hasDragged = false;
2893
+ this.clicksDisabled = false;
2894
+ this.startX = clientX;
2895
+ this.currentX = clientX;
2896
+ this.initialTranslateX = this.translateX;
2897
+ this.dragOffset = 0;
2898
+ this.velocity = 0;
2899
+ this.lastMoveTime = Date.now();
2900
+ this.lastMoveX = clientX;
2901
+ this.calculateDimensions();
2902
+ this.setSlidesTransition(false);
2903
+ }
2943
2904
  updateDrag(clientX) {
2944
2905
  if (!this.isDragging)
2945
2906
  return;
2946
2907
  this.currentX = clientX;
2947
2908
  const totalDeltaX = this.currentX - this.startX;
2948
2909
  // Mark as dragging if movement is significant
2949
- if (Math.abs(totalDeltaX) > 5) {
2950
- this.wasDragging = true;
2951
- this.dragStarted = true;
2910
+ if (Math.abs(totalDeltaX) > this.dragThresholdPx) {
2911
+ this.hasDragged = true;
2952
2912
  }
2953
2913
  const now = Date.now();
2954
2914
  const timeDelta = now - this.lastMoveTime;
@@ -2980,23 +2940,27 @@ class EluxCarouselBleedComponent {
2980
2940
  return;
2981
2941
  this.isDragging = false;
2982
2942
  // Disable clicks temporarily after any drag
2983
- if (this.wasDragging || this.dragStarted) {
2943
+ if (this.hasDragged) {
2984
2944
  this.clicksDisabled = true;
2985
2945
  setTimeout(() => {
2986
2946
  this.clicksDisabled = false;
2987
- }, 200);
2947
+ }, this.clickDisableDelayMs);
2988
2948
  }
2989
- // Clear the wasDragging and dragStarted flags after a shorter delay
2949
+ // Clear the drag flag after a shorter delay
2990
2950
  setTimeout(() => {
2991
- this.wasDragging = false;
2992
- this.dragStarted = false;
2993
- }, 250);
2994
- this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', 'transform 0.3s ease-out');
2951
+ this.hasDragged = false;
2952
+ }, this.clearDraggedDelayMs);
2953
+ this.setSlidesTransition(true);
2995
2954
  // Snap sempre para o início da página mais próxima
2996
2955
  this.snapToNearestItem();
2997
2956
  this.dragOffset = 0;
2998
2957
  this.velocity = 0;
2999
2958
  }
2959
+ setSlidesTransition(enabled) {
2960
+ if (!this.slidesContainer)
2961
+ return;
2962
+ this.renderer.setStyle(this.slidesContainer.nativeElement, 'transition', enabled ? this.transitionDuration : 'none');
2963
+ }
3000
2964
  getMaxIndex() {
3001
2965
  // Permite avançar até que o último item esteja alinhado ao lado direito do shell
3002
2966
  if (!this.items || this.items.length === 0)
@@ -3138,11 +3102,11 @@ class EluxCarouselBleedComponent {
3138
3102
  this.updateTransform();
3139
3103
  }
3140
3104
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselBleedComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
3141
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselBleedComponent, isStandalone: true, selector: "lib-elux-carousel-bleed", inputs: { itemWidth: "itemWidth", gap: "gap", title: "title" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "bleedShell", first: true, predicate: ["bleedShell"], descendants: true }], ngImport: i0, template: "<div class=\"c-carousel-fixed-shell\" #bleedShell>\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <button\n class=\"c-carousel-fixed-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n\n <button\n class=\"c-carousel-fixed-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (mousedown)=\"onMouseDown($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n (touchstart)=\"onTouchStart($event)\"\n (touchmove)=\"onTouchMove($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <button\n *ngIf=\"title == ''\"\n class=\"c-carousel-fixed-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <button\n *ngIf=\"title == ''\"\n class=\"c-carousel-fixed-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav :host ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px;margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px;margin-bottom:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:10px;height:10px;border-radius:50%;background:#dfe7ea;transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{background:#3d5275}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
3105
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselBleedComponent, isStandalone: true, selector: "lib-elux-carousel-bleed", inputs: { itemWidth: "itemWidth", gap: "gap", title: "title" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "bleedShell", first: true, predicate: ["bleedShell"], descendants: true }], ngImport: i0, template: "<div class=\"c-carousel-fixed-shell\" #bleedShell>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav :host ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:10px;height:10px;border-radius:50%;background:#dfe7ea;transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{background:#3d5275}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
3142
3106
  }
3143
3107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselBleedComponent, decorators: [{
3144
3108
  type: Component,
3145
- args: [{ standalone: true, selector: 'lib-elux-carousel-bleed', imports: [CommonModule, EluxIcon], template: "<div class=\"c-carousel-fixed-shell\" #bleedShell>\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <button\n class=\"c-carousel-fixed-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n\n <button\n class=\"c-carousel-fixed-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (mousedown)=\"onMouseDown($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseUp($event)\"\n (mouseleave)=\"onMouseLeave($event)\"\n (touchstart)=\"onTouchStart($event)\"\n (touchmove)=\"onTouchMove($event)\"\n (touchend)=\"onTouchEnd($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <button\n *ngIf=\"title == ''\"\n class=\"c-carousel-fixed-nav prev\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <button\n *ngIf=\"title == ''\"\n class=\"c-carousel-fixed-nav next\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav :host ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px;margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px;margin-bottom:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:10px;height:10px;border-radius:50%;background:#dfe7ea;transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{background:#3d5275}\n"] }]
3109
+ args: [{ standalone: true, selector: 'lib-elux-carousel-bleed', imports: [CommonModule, EluxIcon], template: "<div class=\"c-carousel-fixed-shell\" #bleedShell>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:#e9ebed;transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:.2;cursor:not-allowed}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav :host ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:10px;height:10px;border-radius:50%;background:#dfe7ea;transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{background:#3d5275}\n"] }]
3146
3110
  }], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { items: [{
3147
3111
  type: ContentChildren,
3148
3112
  args: ['carouselItem', { read: ElementRef }]