{"version":3,"file":"igniteui-angular-carousel.mjs","names":[],"sources":["../../../projects/igniteui-angular/carousel/src/carousel/enums.ts","../../../projects/igniteui-angular/carousel/src/carousel/carousel-base.ts","../../../projects/igniteui-angular/carousel/src/carousel/carousel.directives.ts","../../../projects/igniteui-angular/carousel/src/carousel/slide.component.ts","../../../projects/igniteui-angular/carousel/src/carousel/slide.component.html","../../../projects/igniteui-angular/carousel/src/carousel/carousel.component.ts","../../../projects/igniteui-angular/carousel/src/carousel/carousel.component.html","../../../projects/igniteui-angular/carousel/src/carousel/public_api.ts","../../../projects/igniteui-angular/carousel/src/carousel/carousel.module.ts"],"sourcesContent":["\nexport const CarouselAnimationType = {\n    none: 'none',\n    slide: 'slide',\n    fade: 'fade'\n} as const;\nexport type CarouselAnimationType = (typeof CarouselAnimationType)[keyof typeof CarouselAnimationType];\n\nexport const CarouselIndicatorsOrientation = {\n    /**\n     * @deprecated in version 19.1.0. Use `end` instead.\n     */\n    bottom: 'bottom',\n    /**\n     * @deprecated in version 19.1.0. Use `start` instead.\n     */\n    top: 'top',\n    start: 'start',\n    end: 'end'\n} as const;\nexport type CarouselIndicatorsOrientation = (typeof CarouselIndicatorsOrientation)[keyof typeof CarouselIndicatorsOrientation];\n","import { AnimationReferenceMetadata, useAnimation } from '@angular/animations';\nimport { ChangeDetectorRef, Directive, EventEmitter, inject, OnDestroy } from '@angular/core';\nimport { IgxAngularAnimationService } from 'igniteui-angular/core';\nimport { AnimationPlayer, AnimationService } from 'igniteui-angular/core';\nimport { fadeIn, slideInLeft } from 'igniteui-angular/animations';\nimport { CarouselAnimationType } from './enums';\n\nexport enum CarouselAnimationDirection { NONE, NEXT, PREV }\n\nexport interface CarouselAnimationSettings {\n    enterAnimation: AnimationReferenceMetadata;\n    leaveAnimation: AnimationReferenceMetadata;\n}\n\n/** @hidden */\nexport interface IgxSlideComponentBase {\n    direction: CarouselAnimationDirection;\n    previous: boolean;\n}\n\n/** @hidden */\n@Directive()\nexport abstract class IgxCarouselComponentBase implements OnDestroy {\n    private animationService = inject<AnimationService>(IgxAngularAnimationService);\n    protected cdr = inject(ChangeDetectorRef);\n\n    /** @hidden */\n    public animationType: CarouselAnimationType = CarouselAnimationType.slide;\n\n    /** @hidden @internal */\n    public enterAnimationDone = new EventEmitter();\n    /** @hidden @internal */\n    public leaveAnimationDone = new EventEmitter();\n\n    /** @hidden */\n    protected currentItem!: IgxSlideComponentBase;\n    /** @hidden */\n    protected previousItem!: IgxSlideComponentBase;\n    /** @hidden */\n    protected enterAnimationPlayer?: AnimationPlayer;\n    /** @hidden */\n    protected leaveAnimationPlayer?: AnimationPlayer;\n    /** @hidden */\n    protected defaultAnimationDuration = 320;\n    /** @hidden */\n    protected animationPosition = 0;\n    /** @hidden */\n    protected newDuration = 0;\n    /** @hidden */\n    protected vertical = false;\n\n    public ngOnDestroy(): void {\n        if (this.enterAnimationPlayer) {\n            this.enterAnimationPlayer.destroy();\n            this.enterAnimationPlayer = null!;\n        }\n        if (this.leaveAnimationPlayer) {\n            this.leaveAnimationPlayer.destroy();\n            this.leaveAnimationPlayer = null!;\n        }\n    }\n\n    /** @hidden */\n    protected triggerAnimations() {\n        if (this.animationType !== CarouselAnimationType.none) {\n            if (this.animationStarted(this.leaveAnimationPlayer!) || this.animationStarted(this.enterAnimationPlayer!)) {\n                requestAnimationFrame(() => {\n                    this.resetAnimations();\n                    this.playAnimations();\n                });\n            } else {\n                this.playAnimations();\n            }\n        }\n    }\n\n    /** @hidden */\n    protected animationStarted(animation: AnimationPlayer): boolean {\n        return animation && animation.hasStarted();\n    }\n\n    /** @hidden */\n    protected playAnimations() {\n        this.playLeaveAnimation();\n        this.playEnterAnimation();\n    }\n\n    private resetAnimations() {\n        if (this.animationStarted(this.leaveAnimationPlayer!)) {\n            this.leaveAnimationPlayer!.reset();\n            this.leaveAnimationDone.emit();\n        }\n\n        if (this.animationStarted(this.enterAnimationPlayer!)) {\n            this.enterAnimationPlayer!.reset();\n            this.enterAnimationDone.emit();\n            this.cdr.markForCheck();\n        }\n    }\n\n    private getAnimation(): CarouselAnimationSettings {\n        let duration;\n        if (this.newDuration) {\n            duration = this.animationPosition ? this.animationPosition * this.newDuration : this.newDuration;\n        } else {\n            duration = this.animationPosition ? this.animationPosition * this.defaultAnimationDuration : this.defaultAnimationDuration;\n        }\n\n        const trans = this.animationPosition ? this.animationPosition * 100 : 100;\n        switch (this.animationType) {\n            case CarouselAnimationType.slide:\n                return {\n                    enterAnimation: useAnimation(slideInLeft,\n                        {\n                            params: {\n                                delay: '0s',\n                                duration: `${duration}ms`,\n                                endOpacity: 1,\n                                startOpacity: 1,\n                                fromPosition: `${this.vertical ? 'translateY' : 'translateX'}(${this.currentItem.direction === 1 ? trans : -trans}%)`,\n                                toPosition: `${this.vertical ? 'translateY(0%)' : 'translateX(0%)'}`\n                            }\n                        }),\n                    leaveAnimation: useAnimation(slideInLeft,\n                        {\n                            params: {\n                                delay: '0s',\n                                duration: `${duration}ms`,\n                                endOpacity: 1,\n                                startOpacity: 1,\n                                fromPosition: `${this.vertical ? 'translateY(0%)' : 'translateX(0%)'}`,\n                                toPosition: `${this.vertical ? 'translateY' : 'translateX'}(${this.currentItem.direction === 1 ? -trans : trans}%)`,\n                            }\n                        })\n                };\n            case CarouselAnimationType.fade:\n                return {\n                    enterAnimation: useAnimation(fadeIn,\n                        { params: { duration: `${duration}ms`, startOpacity: `${this.animationPosition}` } }),\n                    leaveAnimation: null!\n                };\n        }\n        return {\n            enterAnimation: null!,\n            leaveAnimation: null!\n        };\n    }\n\n    private playEnterAnimation() {\n        const animation = this.getAnimation().enterAnimation;\n        if (!animation) {\n            return;\n        }\n\n        this.enterAnimationPlayer = this.animationService.buildAnimation(animation, this.getCurrentElement());\n        this.enterAnimationPlayer.animationEnd.subscribe(() => {\n            // TODO: animation may never end. Find better way to clean up the player\n            if (this.enterAnimationPlayer) {\n                this.enterAnimationPlayer.destroy();\n                this.enterAnimationPlayer = null!;\n            }\n            this.animationPosition = 0;\n            this.newDuration = 0;\n            this.previousItem.previous = false;\n            this.enterAnimationDone.emit();\n            this.cdr.markForCheck();\n        });\n        this.previousItem.previous = true;\n        this.enterAnimationPlayer.play();\n    }\n\n    private playLeaveAnimation() {\n        const animation = this.getAnimation().leaveAnimation;\n        if (!animation) {\n            return;\n        }\n\n        this.leaveAnimationPlayer = this.animationService.buildAnimation(animation, this.getPreviousElement());\n        this.leaveAnimationPlayer.animationEnd.subscribe(() => {\n            // TODO: animation may never end. Find better way to clean up the player\n            if (this.leaveAnimationPlayer) {\n                this.leaveAnimationPlayer.destroy();\n                this.leaveAnimationPlayer = null!;\n            }\n            this.animationPosition = 0;\n            this.newDuration = 0;\n            this.leaveAnimationDone.emit();\n        });\n        this.leaveAnimationPlayer.play();\n    }\n\n    protected abstract getPreviousElement(): HTMLElement;\n\n    protected abstract getCurrentElement(): HTMLElement;\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n    selector: '[igxCarouselIndicator]',\n    standalone: true\n})\nexport class IgxCarouselIndicatorDirective {\n}\n\n@Directive({\n    selector: '[igxCarouselNextButton]',\n    standalone: true\n})\nexport class IgxCarouselNextButtonDirective {\n}\n\n@Directive({\n    selector: '[igxCarouselPrevButton]',\n    standalone: true\n})\nexport class IgxCarouselPrevButtonDirective {\n}\n","import { Component, Input, HostBinding, Output, EventEmitter, ElementRef, AfterContentChecked, booleanAttribute, inject, ChangeDetectionStrategy } from '@angular/core';\nimport { CarouselAnimationDirection, IgxSlideComponentBase } from './carousel-base';\n\n/**\n * A slide component that usually holds an image and/or a caption text.\n * Slide is usually a child component of a carousel.\n *\n * ```\n * <igx-slide [input bindings] >\n *    <ng-content></ng-content>\n * </igx-slide>\n * ```\n *\n * @export\n */\n@Component({\n    selector: 'igx-slide',\n    templateUrl: 'slide.component.html',\n    changeDetection: ChangeDetectionStrategy.Eager,\n    standalone: true\n})\nexport class IgxSlideComponent implements AfterContentChecked, IgxSlideComponentBase {\n    private elementRef = inject(ElementRef);\n\n    /**\n     * Gets/sets the `index` of the slide inside the carousel.\n     * ```html\n     * <igx-carousel>\n     *  <igx-slide index=\"1\"></igx-slide>\n     * <igx-carousel>\n     * ```\n     *\n     * @memberOf IgxSlideComponent\n     */\n    @Input() public index!: number;\n\n    /**\n     * Gets/sets the target `direction` for the slide.\n     * ```html\n     * <igx-carousel>\n     *  <igx-slide direction=\"NEXT\"></igx-slide>\n     * <igx-carousel>\n     * ```\n     *\n     * @memberOf IgxSlideComponent\n     */\n    @Input() public direction: CarouselAnimationDirection = CarouselAnimationDirection.NONE;\n\n    @Input()\n    public total!: number;\n\n    /**\n     * Returns the `tabIndex` of the slide component.\n     * ```typescript\n     * let tabIndex =  this.carousel.tabIndex;\n     * ```\n     *\n     * @memberof IgxSlideComponent\n     * @deprecated in version 19.2.0.\n     */\n    @HostBinding('attr.tabindex')\n    public get tabIndex() {\n        return this.active ? 0 : null;\n    }\n\n    /**\n     * @hidden\n     */\n    @HostBinding('attr.id')\n    public id!: string;\n\n    /**\n     * Returns the `role` of the slide component.\n     * By default is set to `tabpanel`\n     *\n     * @memberof IgxSlideComponent\n     */\n    @HostBinding('attr.role')\n    public tab = 'tabpanel';\n\n    /** @hidden */\n    @HostBinding('attr.aria-labelledby')\n    public ariaLabelledBy: any;\n\n    /**\n     * Returns the class of the slide component.\n     * ```typescript\n     * let class =  this.slide.cssClass;\n     * ```\n     *\n     * @memberof IgxSlideComponent\n     */\n    @HostBinding('class.igx-slide')\n    public cssClass = 'igx-slide';\n\n    /**\n     * Gets/sets the `active` state of the slide.\n     * ```html\n     * <igx-carousel>\n     *  <igx-slide [active] =\"false\"></igx-slide>\n     * <igx-carousel>\n     * ```\n     *\n     * Two-way data binding.\n     * ```html\n     * <igx-carousel>\n     *  <igx-slide [(active)] =\"model.isActive\"></igx-slide>\n     * <igx-carousel>\n     * ```\n     *\n     * @memberof IgxSlideComponent\n     */\n    @HostBinding('class.igx-slide--current')\n    @Input({ transform: booleanAttribute })\n    public get active(): boolean {\n        return this._active;\n    }\n\n    public set active(value) {\n        this._active = value;\n        this.activeChange.emit(this._active);\n    }\n\n    @HostBinding('class.igx-slide--previous')\n    @Input({ transform: booleanAttribute }) public previous = false;\n\n    /**\n     * @hidden\n     */\n    @Output() public activeChange = new EventEmitter<boolean>();\n\n    private _active = false;\n\n    /**\n     * Returns a reference to the carousel element in the DOM.\n     * ```typescript\n     * let nativeElement =  this.slide.nativeElement;\n     * ```\n     *\n     * @memberof IgxSlideComponent\n     */\n    public get nativeElement() {\n        return this.elementRef.nativeElement;\n    }\n\n    public ngAfterContentChecked() {\n        this.id = `panel-${this.index}`;\n        this.ariaLabelledBy = `tab-${this.index}-${this.total}`;\n    }\n}\n","<ng-content></ng-content>\n","import { NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n    AfterContentInit,\n    Component,\n    ContentChild,\n    ContentChildren,\n    DoCheck,\n    ElementRef,\n    EventEmitter,\n    HostBinding,\n    HostListener,\n    Input,\n    IterableChangeRecord,\n    IterableDiffer,\n    IterableDiffers,\n    OnDestroy,\n    Output,\n    QueryList,\n    TemplateRef,\n    ViewChild,\n    ViewChildren,\n    booleanAttribute,\n    inject,\n    ChangeDetectionStrategy,\n    ViewEncapsulation\n} from '@angular/core';\nimport { Subject, Subscription } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { CarouselResourceStringsEN, ICarouselResourceStrings, IgxGestureEvent, isLeftToRight } from 'igniteui-angular/core';\nimport { first, IBaseEventArgs, IgxTouchManager, last, PlatformUtil } from 'igniteui-angular/core';\nimport { CarouselAnimationDirection, IgxCarouselComponentBase } from './carousel-base';\nimport { IgxCarouselIndicatorDirective, IgxCarouselNextButtonDirective, IgxCarouselPrevButtonDirective } from './carousel.directives';\nimport { IgxSlideComponent } from './slide.component';\nimport { IgxIconComponent } from 'igniteui-angular/icon';\nimport { IgxButtonDirective } from 'igniteui-angular/directives';\nimport { getCurrentResourceStrings, onResourceChangeHandle } from 'igniteui-angular/core';\nimport { CarouselAnimationType, CarouselIndicatorsOrientation } from './enums';\n\nlet NEXT_ID = 0;\n/** Movement (in px) below which a touch is a tap and above which it starts a pan. */\nconst GESTURE_THRESHOLD = 5;\n\n/**\n * **Ignite UI for Angular Carousel** -\n * [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/carousel.html)\n *\n * The Ignite UI Carousel is used to browse or navigate through a collection of slides. Slides can contain custom\n * content such as images or cards and be used for things such as on-boarding tutorials or page-based interfaces.\n * It can be used as a separate fullscreen element or inside another component.\n *\n * Example:\n * ```html\n * <igx-carousel>\n *   <igx-slide>\n *     <h3>First Slide Header</h3>\n *     <p>First slide Content</p>\n *   <igx-slide>\n *   <igx-slide>\n *     <h3>Second Slide Header</h3>\n *     <p>Second Slide Content</p>\n * </igx-carousel>\n * ```\n */\n@Component({\n    selector: 'igx-carousel',\n    templateUrl: 'carousel.component.html',\n    styleUrl: 'carousel.component.css',\n    encapsulation: ViewEncapsulation.None,\n    changeDetection: ChangeDetectionStrategy.Eager,\n    imports: [IgxButtonDirective, IgxIconComponent, NgClass, NgTemplateOutlet]\n})\nexport class IgxCarouselComponent extends IgxCarouselComponentBase implements DoCheck, OnDestroy, AfterContentInit {\n    private element = inject(ElementRef);\n    private iterableDiffers = inject(IterableDiffers);\n    private platformUtil = inject(PlatformUtil);\n\n    /**\n     * Sets the `id` of the carousel.\n     * If not set, the `id` of the first carousel component will be `\"igx-carousel-0\"`.\n     * ```html\n     * <igx-carousel id=\"my-first-carousel\"></igx-carousel>\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    @HostBinding('attr.id')\n    @Input()\n    public id = `igx-carousel-${NEXT_ID++}`;\n    /**\n     * Returns the `role` attribute of the carousel.\n     * ```typescript\n     * let carouselRole =  this.carousel.role;\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    @HostBinding('attr.role') public role = 'region';\n\n    /** @hidden */\n    @HostBinding('attr.aria-roledescription')\n    public roleDescription = 'carousel';\n\n    /** @hidden */\n    @HostBinding('attr.aria-labelledby')\n    public get labelId() {\n        return this.showIndicatorsLabel ? `${this.id}-label` : null;\n    }\n\n    /** @hidden */\n    @HostBinding('class.igx-carousel--vertical')\n    public get isVertical(): boolean {\n        return this.vertical;\n    }\n\n    /**\n     * Returns the class of the carousel component.\n     * ```typescript\n     * let class =  this.carousel.cssClass;\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    @HostBinding('class.igx-carousel')\n    public cssClass = 'igx-carousel';\n\n    /**\n     * Gets the `touch-action` style of the carousel.\n     * ```typescript\n     * let touchAction = this.carousel.touchAction;\n     * ```\n     */\n    @HostBinding('style.touch-action')\n    public get touchAction() {\n        if (!this.gesturesSupport) {\n            return 'auto';\n        }\n        // leave the axis the carousel does not pan on to the browser (page scrolling)\n        return this.vertical ? 'pan-x' : 'pan-y';\n    }\n\n    /**\n     * Sets whether the carousel should `loop` back to the first slide after reaching the last slide.\n     * When `false`, the automatic rotation ends on the last slide, regardless of `pause`.\n     * Default value is `true`.\n     * ```html\n     * <igx-carousel [loop]=\"false\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute }) public loop = true;\n\n    /**\n     * Sets whether the carousel will `pause` the slide transitions on user interactions.\n     * Default value is `true`.\n     * ```html\n     *  <igx-carousel [pause]=\"false\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute }) public pause = true;\n\n    /**\n     * Controls whether the carousel should render the left/right `navigation` buttons.\n     * Default value is `true`.\n     * ```html\n     * <igx-carousel [navigation]=\"false\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute }) public navigation = true;\n\n    /**\n     * Controls whether the carousel should render the indicators.\n     * Default value is `true`.\n     * ```html\n     * <igx-carousel [indicators]=\"false\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute }) public indicators = true;\n\n\n    /**\n     * Controls whether the carousel has vertical alignment.\n     * Default value is `false`.\n     * ```html\n     * <igx-carousel [vertical]=\"true\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute }) public override vertical = false;\n\n    /**\n     * Controls whether the carousel should support gestures.\n     * Default value is `true`.\n     * ```html\n     * <igx-carousel [gesturesSupport]=\"false\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input({ transform: booleanAttribute })\n    public get gesturesSupport(): boolean {\n        return this._gesturesSupport;\n    }\n\n    public set gesturesSupport(value: boolean) {\n        this._gesturesSupport = value;\n        this.updateGestures();\n    }\n\n    /**\n     * Controls the maximum indexes that can be shown.\n     * Default value is `10`.\n     * ```html\n     * <igx-carousel [maximumIndicatorsCount]=\"5\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input() public maximumIndicatorsCount = 10;\n\n    /**\n     * Gets/sets the display mode of carousel indicators. It can be `start` or `end`.\n     * Default value is `end`.\n     * ```html\n     * <igx-carousel indicatorsOrientation=\"start\">\n     * <igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input() public indicatorsOrientation: CarouselIndicatorsOrientation = CarouselIndicatorsOrientation.end;\n\n    /**\n     * Gets/sets the animation type of carousel.\n     * Default value is `slide`.\n     * ```html\n     * <igx-carousel animationType=\"none\">\n     * <igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Input() public override animationType: CarouselAnimationType = CarouselAnimationType.slide;\n\n    /**\n     * The custom template, if any, that should be used when rendering carousel indicators\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.carousel.indicatorTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-carousel #carousel>\n     *      ...\n     *      <ng-template igxCarouselIndicator let-slide>\n     *         <igx-icon *ngIf=\"slide.active\">brightness_7</igx-icon>\n     *         <igx-icon *ngIf=\"!slide.active\">brightness_5</igx-icon>\n     *      </ng-template>\n     *  </igx-carousel>\n     * ```\n     */\n    @ContentChild(IgxCarouselIndicatorDirective, { read: TemplateRef, static: false })\n    public indicatorTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering carousel next button\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.carousel.nextButtonTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-carousel #carousel>\n     *      ...\n     *      <ng-template igxCarouselNextButton let-disabled>\n     *          <button type=\"button\" igxButton=\"fab\" igxRipple=\"white\" [disabled]=\"disabled\">\n     *              <igx-icon name=\"add\"></igx-icon>\n     *          </button>\n     *      </ng-template>\n     *  </igx-carousel>\n     * ```\n     */\n    @ContentChild(IgxCarouselNextButtonDirective, { read: TemplateRef, static: false })\n    public nextButtonTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The custom template, if any, that should be used when rendering carousel previous button\n     *\n     * ```typescript\n     * // Set in typescript\n     * const myCustomTemplate: TemplateRef<any> = myComponent.customTemplate;\n     * myComponent.carousel.prevButtonTemplate = myCustomTemplate;\n     * ```\n     * ```html\n     * <!-- Set in markup -->\n     *  <igx-carousel #carousel>\n     *      ...\n     *      <ng-template igxCarouselPrevButton let-disabled>\n     *          <button type=\"button\" igxButton=\"fab\" igxRipple=\"white\" [disabled]=\"disabled\">\n     *              <igx-icon name=\"remove\"></igx-icon>\n     *          </button>\n     *      </ng-template>\n     *  </igx-carousel>\n     * ```\n     */\n    @ContentChild(IgxCarouselPrevButtonDirective, { read: TemplateRef, static: false })\n    public prevButtonTemplate: TemplateRef<any> = null!;\n\n    /**\n     * The collection of `slides` currently in the carousel.\n     * ```typescript\n     * let slides: QueryList<IgxSlideComponent> = this.carousel.slides;\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @ContentChildren(IgxSlideComponent)\n    public slides!: QueryList<IgxSlideComponent>;\n\n    /**\n     * An event that is emitted after a slide transition has happened.\n     * Provides references to the carousel and slide components as event arguments.\n     * ```html\n     * <igx-carousel (slideChanged)=\"slideChanged($event)\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Output() public slideChanged = new EventEmitter<ISlideEventArgs>();\n\n    /**\n     * An event that is emitted after a slide has been added to the carousel.\n     * Provides references to the carousel and slide components as event arguments.\n     * ```html\n     * <igx-carousel (slideAdded)=\"slideAdded($event)\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Output() public slideAdded = new EventEmitter<ISlideEventArgs>();\n\n    /**\n     * An event that is emitted after a slide has been removed from the carousel.\n     * Provides references to the carousel and slide components as event arguments.\n     * ```html\n     * <igx-carousel (slideRemoved)=\"slideRemoved($event)\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Output() public slideRemoved = new EventEmitter<ISlideEventArgs>();\n\n    /**\n     * An event that is emitted after the carousel has been paused,\n     * including when the automatic rotation ends on the last slide of a non-looping carousel.\n     * Provides a reference to the carousel as an event argument.\n     * ```html\n     * <igx-carousel (carouselPaused)=\"carouselPaused($event)\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Output() public carouselPaused = new EventEmitter<IgxCarouselComponent>();\n\n    /**\n     * An event that is emitted after the carousel has resumed transitioning between `slides`.\n     * Provides a reference to the carousel as an event argument.\n     * ```html\n     * <igx-carousel (carouselPlaying)=\"carouselPlaying($event)\"></igx-carousel>\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    @Output() public carouselPlaying = new EventEmitter<IgxCarouselComponent>();\n\n    @ViewChild('defaultIndicator', { read: TemplateRef, static: true })\n    private defaultIndicator!: TemplateRef<any>;\n\n    @ViewChild('defaultNextButton', { read: TemplateRef, static: true })\n    private defaultNextButton!: TemplateRef<any>;\n\n    @ViewChild('defaultPrevButton', { read: TemplateRef, static: true })\n    private defaultPrevButton!: TemplateRef<any>;\n\n    @ViewChildren('indicators', { read: ElementRef })\n    private _indicators!: QueryList<ElementRef<HTMLDivElement>>;\n\n    /**\n     * @hidden\n     * @internal\n     */\n    public stoppedByInteraction!: boolean;\n    protected override currentItem!: IgxSlideComponent;\n    protected override previousItem!: IgxSlideComponent;\n    private _interval!: number;\n    private _gesturesSupport = true;\n    private _gestures: IgxTouchManager | null = null;\n    private gesturesAxis: 'horizontal' | 'vertical' | null = null;\n    private _resourceStrings: ICarouselResourceStrings = null!;\n    private _customResourceStrings: ICarouselResourceStrings = null!;\n    private _defaultResourceStrings = getCurrentResourceStrings(CarouselResourceStringsEN);\n    private lastInterval: ReturnType<typeof setInterval> | null = null;\n    private selectionFrame = 0;\n    private autoPlayStarted = false;\n    private autoPlayEnded = false;\n    private playing = false;\n    private destroyed = false;\n    private destroy$ = new Subject<void>();\n    private differ: IterableDiffer<IgxSlideComponent> = this.iterableDiffers.find([]).create<IgxSlideComponent>();\n    private slideSubscriptions = new Map<IgxSlideComponent, Subscription>();\n    private ownDirections = new Map<IgxSlideComponent, CarouselAnimationDirection>();\n    private incomingSlide: IgxSlideComponent | null = null;\n    private discardedSlide: IgxSlideComponent | null = null;\n    private panning = false;\n    private _hasKeyboardFocusOnIndicators = false;\n\n    /**\n     * An accessor that sets the resource strings.\n     * By default it uses EN resources.\n     */\n    @Input()\n    public set resourceStrings(value: ICarouselResourceStrings) {\n        this._resourceStrings = value;\n        this._customResourceStrings = Object.assign({}, this._defaultResourceStrings, this._resourceStrings);\n    }\n\n    /**\n     * An accessor that returns the resource strings.\n     */\n    public get resourceStrings(): ICarouselResourceStrings {\n        return this._resourceStrings ? this._customResourceStrings : this._defaultResourceStrings;\n    }\n\n    /** @hidden */\n    public get getIndicatorTemplate(): TemplateRef<any> {\n        return this.indicatorTemplate || this.defaultIndicator;\n    }\n\n    /** @hidden */\n    public get getNextButtonTemplate(): TemplateRef<any> {\n        return this.nextButtonTemplate || this.defaultNextButton;\n    }\n\n    /** @hidden */\n    public get getPrevButtonTemplate(): TemplateRef<any> {\n        return this.prevButtonTemplate || this.defaultPrevButton;\n    }\n\n    /** @hidden */\n    public get indicatorsClass() {\n        return {\n            'igx-carousel-indicators': true,\n            ['igx-carousel-indicators--focused']: this._hasKeyboardFocusOnIndicators,\n            [`igx-carousel-indicators--${this.getIndicatorsClass()}`]: true,\n            'igx-carousel-indicators--vertical': this.isVertical\n        };\n    }\n\n    /** @hidden */\n    public get showIndicators(): boolean {\n        return this.indicators && this.total <= this.maximumIndicatorsCount && this.total > 0;\n    }\n\n    /** @hidden */\n    public get showIndicatorsLabel(): boolean {\n        return this.indicators && this.total > this.maximumIndicatorsCount;\n    }\n\n    /** @hidden */\n    public get getCarouselLabel() {\n        return `${this.current + 1} ${this.resourceStrings.igx_carousel_of} ${this.total}`;\n    }\n\n    /** @hidden */\n    public get ariaLive(): 'off' | 'polite' {\n        // announce slide changes unless the carousel is rotating automatically\n        return this.playing && this.interval > 0 ? 'off' : 'polite';\n    }\n\n    /**\n     * Returns the total number of `slides` in the carousel.\n     * ```typescript\n     * let slideCount =  this.carousel.total;\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public get total(): number {\n        return this.slides?.length;\n    }\n\n    /**\n     * The index of the slide being currently shown.\n     * ```typescript\n     * let currentSlideNumber =  this.carousel.current;\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public get current(): number {\n        return !this.currentItem ? 0 : this.currentItem.index;\n    }\n\n    /**\n     * Returns a boolean indicating if the carousel is playing.\n     * ```typescript\n     * let isPlaying =  this.carousel.isPlaying;\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public get isPlaying(): boolean {\n        return this.playing;\n    }\n\n    /**\n     * Returns а boolean indicating if the carousel is destroyed.\n     * ```typescript\n     * let isDestroyed =  this.carousel.isDestroyed;\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public get isDestroyed(): boolean {\n        return this.destroyed;\n    }\n    /**\n     * Returns a reference to the carousel element in the DOM.\n     * ```typescript\n     * let nativeElement =  this.carousel.nativeElement;\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    public get nativeElement(): any {\n        return this.element.nativeElement;\n    }\n\n    /**\n     * Returns the time `interval` in milliseconds before the slide changes.\n     * ```typescript\n     * let timeInterval = this.carousel.interval;\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    @Input()\n    public get interval(): number {\n        return this._interval;\n    }\n\n    /**\n     * Sets the time `interval` in milliseconds before the slide changes.\n     * If not set, the carousel will not change `slides` automatically.\n     * ```html\n     * <igx-carousel [interval]=\"1000\"></igx-carousel>\n     * ```\n     *\n     * @memberof IgxCarouselComponent\n     */\n    public set interval(value: number) {\n        this._interval = +value;\n        this.restartInterval();\n    }\n\n    constructor() {\n        super();\n        onResourceChangeHandle(this.destroy$, () => {\n            this._defaultResourceStrings = getCurrentResourceStrings(CarouselResourceStringsEN, false);\n            this._customResourceStrings = this._resourceStrings ? Object.assign({}, this._defaultResourceStrings, this._resourceStrings) : null!;\n        }, this);\n    }\n\n    /** @hidden */\n    public onTap(event: IgxGestureEvent) {\n        // Play/pause only when the tap lands on a slide (or its content),\n        // not on the navigation buttons or indicators.\n        const slide = (event.target as Element)?.closest?.('.igx-slide');\n\n        if (this.panning) {\n            // a pan released back within the tap threshold ends as a short pan (not a swipe)\n            this.onPanEnd({ ...event, velocity: 0 });\n            return;\n        }\n\n        if (slide) {\n            if (this.isPlaying) {\n                this.stopByInteraction();\n            } else if (this.stoppedByInteraction) {\n                this.play();\n            }\n        }\n    }\n\n    /** @hidden */\n    @HostListener('mouseenter')\n    public onMouseEnter() {\n        this.stopByInteraction();\n    }\n\n    /** @hidden */\n    @HostListener('mouseleave')\n    public onMouseLeave() {\n        if (this.stoppedByInteraction) {\n            this.play();\n        }\n    }\n\n    /** @hidden */\n    public onPanLeft(event: IgxGestureEvent) {\n        if (!this.vertical) {\n            this.pan(event);\n        }\n    }\n\n    /** @hidden */\n    public onPanRight(event: IgxGestureEvent) {\n        if (!this.vertical) {\n            this.pan(event);\n        }\n    }\n\n    /** @hidden */\n    public onPanUp(event: IgxGestureEvent) {\n        if (this.vertical) {\n            this.pan(event);\n        }\n    }\n\n    /** @hidden */\n    public onPanDown(event: IgxGestureEvent) {\n        if (this.vertical) {\n            this.pan(event);\n        }\n    }\n\n    /**\n     * @hidden\n     */\n    public onPanEnd(event: IgxGestureEvent) {\n        if (!this.gesturesSupport) {\n            return;\n        }\n        if (!this.currentItem) {\n            // the slides were removed during the pan\n            this.onPanCancel();\n            return;\n        }\n        event.preventDefault();\n        const panning = this.panning;\n        this.panning = false;\n\n        const slideSize = this.getSlideSize();\n        const panOffset = (slideSize / 1000);\n        const eventDelta = this.vertical ? event.deltaY : event.deltaX;\n        const delta = Math.min(Math.abs(eventDelta), slideSize - panOffset);\n        const velocity = Math.abs(event.velocity);\n        const incomingSlide = this.incomingSlide;\n        this.incomingSlide = null;\n        this.resetSlideStyles(this.currentItem);\n\n        if (incomingSlide) {\n            this.resetSlideStyles(incomingSlide);\n            if (slideSize / 2 < delta || velocity > 1) {\n                this.setTransitionDirection(incomingSlide, eventDelta < 0 ? CarouselAnimationDirection.NEXT : CarouselAnimationDirection.PREV);\n                incomingSlide.previous = false;\n\n                this.animationPosition = this.animationType === CarouselAnimationType.fade ?\n                    delta / slideSize : (slideSize - delta) / slideSize;\n\n                if (velocity > 1) {\n                    this.newDuration = this.defaultAnimationDuration / velocity;\n                }\n                incomingSlide.active = true;\n            } else if (this.animationType === CarouselAnimationType.none) {\n                incomingSlide.previous = false;\n            } else {\n                // animate the current slide back in place\n                this.setTransitionDirection(this.currentItem, eventDelta > 0 ? CarouselAnimationDirection.NEXT : CarouselAnimationDirection.PREV);\n                this.previousItem = incomingSlide;\n                this.animationPosition = this.animationType === CarouselAnimationType.fade ?\n                    (slideSize - delta) / slideSize : delta / slideSize;\n                this.playAnimations();\n            }\n        }\n\n        // a drag across the carousel axis (e.g. page scrolling) does not resume the playback\n        if (panning && this.stoppedByInteraction) {\n            this.play();\n        }\n    }\n\n    /** @hidden */\n    public ngAfterContentInit() {\n        this.slides.changes\n            .pipe(takeUntil(this.destroy$))\n            .subscribe((change: QueryList<IgxSlideComponent>) => this.initSlides(change));\n\n        this.initSlides(this.slides);\n    }\n\n    /** @hidden */\n    public ngDoCheck() {\n        // `vertical` is a plain field, so the gestures are synced with the carousel axis on each check\n        this.updateGestures();\n    }\n\n    /** @hidden */\n    public override ngOnDestroy() {\n        super.ngOnDestroy();\n        this.destroy$.next();\n        this.destroy$.complete();\n        this.destroyed = true;\n        this.resetInterval();\n        if (this.selectionFrame) {\n            cancelAnimationFrame(this.selectionFrame);\n        }\n        this.slideSubscriptions.forEach(subscription => subscription.unsubscribe());\n        this.slideSubscriptions.clear();\n        this.ownDirections.clear();\n        this._gestures?.destroy();\n        this._gestures = null;\n    }\n\n    /** @hidden */\n    public handleKeydownPrev(event: KeyboardEvent): void {\n        if (this.platformUtil.isActivationKey(event)) {\n            event.preventDefault();\n            this.prev();\n        }\n    }\n\n    /** @hidden */\n    public handleKeydownNext(event: KeyboardEvent): void {\n        if (this.platformUtil.isActivationKey(event)) {\n            event.preventDefault();\n            this.next();\n        }\n    }\n\n    /** @hidden */\n    public handleKeyUp(event: KeyboardEvent): void {\n        if (event.key === this.platformUtil.KEYMAP.TAB) {\n            this._hasKeyboardFocusOnIndicators = true;\n        }\n    }\n\n    /** @hidden */\n    public handleFocusOut(event: FocusEvent): void {\n        const target = event.relatedTarget as HTMLElement;\n\n        if (!target || !target.classList.contains('igx-carousel-indicators__indicator')) {\n            this._hasKeyboardFocusOnIndicators = false;\n        }\n    }\n\n    /** @hidden */\n    public handleClick(): void {\n        this._hasKeyboardFocusOnIndicators = false;\n    }\n\n    /** @hidden */\n    public handleKeydown(event: KeyboardEvent): void {\n        const { key } = event;\n        const slides = this.slides.toArray();\n        const isRTL = !isLeftToRight(this.nativeElement);\n\n        switch (key) {\n            case this.platformUtil.KEYMAP.ARROW_LEFT:\n                isRTL ? this.next() : this.prev();\n                break;\n            case this.platformUtil.KEYMAP.ARROW_RIGHT:\n                isRTL ? this.prev() : this.next();\n                break;\n            case this.platformUtil.KEYMAP.HOME:\n                event.preventDefault();\n                this.select(isRTL ? last(slides) : first(slides));\n                break;\n            case this.platformUtil.KEYMAP.END:\n                event.preventDefault();\n                this.select(isRTL ? first(slides) : last(slides));\n                break;\n        }\n\n        this.indicatorsElements[this.current].nativeElement.focus();\n    }\n\n    /**\n     * Returns the slide corresponding to the provided `index` or null.\n     * ```typescript\n     * let slide1 =  this.carousel.get(1);\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public get(index: number): IgxSlideComponent {\n        return this.slides.find((slide) => slide.index === index)!;\n    }\n\n    /**\n     * Adds a new slide to the carousel.\n     * ```typescript\n     * this.carousel.add(newSlide);\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public add(slide: IgxSlideComponent) {\n        const newSlides = this.slides.toArray();\n        newSlides.push(slide);\n        this.slides.reset(newSlides);\n        this.slides.notifyOnChanges();\n    }\n\n    /**\n     * Removes a slide from the carousel.\n     * ```typescript\n     * this.carousel.remove(slide);\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public remove(slide: IgxSlideComponent) {\n        if (slide && slide === this.get(slide.index)) { // check if the requested slide for delete is present in the carousel\n            const newSlides = this.slides.toArray();\n            newSlides.splice(slide.index, 1);\n            this.slides.reset(newSlides);\n            this.slides.notifyOnChanges();\n        }\n    }\n\n    /**\n     * Switches to the passed-in slide with a given `direction`.\n     * ```typescript\n     * const slide = this.carousel.get(2);\n     * this.carousel.select(slide, CarouselAnimationDirection.NEXT);\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public select(slide: IgxSlideComponent, direction?: CarouselAnimationDirection): void;\n    /**\n     * Switches to slide by index with a given `direction`.\n     * ```typescript\n     * this.carousel.select(2, CarouselAnimationDirection.NEXT);\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public select(index: number, direction?: CarouselAnimationDirection): void;\n    public select(slideOrIndex: IgxSlideComponent | number, direction: CarouselAnimationDirection = CarouselAnimationDirection.NONE): void {\n        const slide = typeof slideOrIndex === 'number'\n            ? this.get(slideOrIndex)\n            : slideOrIndex;\n\n        if (slide && slide !== this.currentItem) {\n            this.setTransitionDirection(slide, direction);\n            slide.active = true;\n        }\n    }\n\n    /**\n     * Transitions to the next slide in the carousel.\n     * ```typescript\n     * this.carousel.next();\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public next() {\n        const index = this.getNextIndex();\n\n        if (index === 0 && !this.loop) {\n            this.stop();\n            return;\n        }\n        return this.select(this.get(index), CarouselAnimationDirection.NEXT);\n    }\n\n    /**\n     * Transitions to the previous slide in the carousel.\n     * ```typescript\n     * this.carousel.prev();\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public prev() {\n        const index = this.getPrevIndex();\n\n        if (!this.loop && index === this.total - 1) {\n            this.stop();\n            return;\n        }\n        return this.select(this.get(index), CarouselAnimationDirection.PREV);\n    }\n\n    /**\n     * Resumes playing of the carousel if in paused state.\n     * No operation otherwise.\n     * ```typescript\n     * this.carousel.play();\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public play() {\n        if (!this.playing) {\n            this.autoPlayEnded = false;\n            this.playing = true;\n            this.carouselPlaying.emit(this);\n            this.restartInterval();\n            this.stoppedByInteraction = false;\n            // the playback can be toggled from native (touch) listeners\n            this.cdr.markForCheck();\n        }\n    }\n\n    /**\n     * Stops slide transitions if the carousel is playing and the `pause` option is set to `true`.\n     * No operation otherwise.\n     * ```typescript\n     * this.carousel.stop();\n     * ```\n     *\n     * @memberOf IgxCarouselComponent\n     */\n    public stop() {\n        this.autoPlayEnded = false;\n        if (this.pause) {\n            this.endPlayback();\n        }\n    }\n\n    protected getPreviousElement(): HTMLElement {\n        return this.previousItem.nativeElement;\n    }\n\n    protected getCurrentElement(): HTMLElement {\n        return this.currentItem.nativeElement;\n    }\n\n    /**\n     * Registers the touch gestures for the carousel axis while `gesturesSupport` is enabled and removes them otherwise.\n     * Pans across the carousel axis are not tracked, so they remain native (e.g. page scrolling).\n     */\n    private updateGestures() {\n        const panAxis = this.vertical ? 'vertical' : 'horizontal';\n        if (!this.gesturesSupport || !this.platformUtil.isBrowser || panAxis !== this.gesturesAxis) {\n            this.removeGestures();\n        }\n\n        if (this.gesturesSupport && this.platformUtil.isBrowser) {\n            this._gestures ??= new IgxTouchManager(this.element.nativeElement, {\n                tap: (event) => this.onTap(event),\n                panMove: (event) => this.onPan(event),\n                panEnd: (event) => this.onPanEnd(event),\n                panCancel: () => this.onPanCancel()\n            }, { tapThreshold: GESTURE_THRESHOLD, panThreshold: GESTURE_THRESHOLD, panAxis });\n            this.gesturesAxis = panAxis;\n        }\n    }\n\n    private removeGestures() {\n        // restore the slides of a pan that will no longer receive its end\n        this.onPanCancel();\n        this._gestures?.destroy();\n        this._gestures = null;\n        this.gesturesAxis = null;\n    }\n\n    /**\n     * Routes a pan gesture to the orientation-specific handler so that only\n     * gestures matching the carousel's axis affect the active slide.\n     *\n     * @hidden\n     */\n    private onPan(event: IgxGestureEvent) {\n        if (Math.abs(event.deltaX) >= Math.abs(event.deltaY)) {\n            if (event.deltaX < 0) {\n                this.onPanLeft(event);\n            } else {\n                this.onPanRight(event);\n            }\n        } else {\n            if (event.deltaY < 0) {\n                this.onPanUp(event);\n            } else {\n                this.onPanDown(event);\n            }\n        }\n    }\n\n    /** Restores the slides when an ongoing pan is cancelled. */\n    private onPanCancel() {\n        if (!this.panning) {\n            return;\n        }\n        this.panning = false;\n        this.discardIncomingSlide();\n        if (this.stoppedByInteraction) {\n            this.play();\n        }\n    }\n\n    /** Moves the current slide back in place and hides the slide revealed by the pan. */\n    private discardIncomingSlide() {\n        if (this.currentItem) {\n            this.resetSlideStyles(this.currentItem);\n        }\n        if (this.incomingSlide) {\n            this.resetSlideStyles(this.incomingSlide);\n            this.incomingSlide.previous = false;\n            this.incomingSlide = null;\n        }\n    }\n\n    /**\n     * Sets the direction a slide transitions in, keeping the direction of the slide itself\n     * (e.g. set through its `direction` input) to restore it once the slide is no longer current.\n     */\n    private setTransitionDirection(slide: IgxSlideComponent, direction: CarouselAnimationDirection) {\n        if (!this.ownDirections.has(slide)) {\n            this.ownDirections.set(slide, slide.direction);\n        }\n        slide.direction = direction;\n    }\n\n    private restoreDirection(slide: IgxSlideComponent) {\n        if (this.ownDirections.has(slide)) {\n            slide.direction = this.ownDirections.get(slide)!;\n            this.ownDirections.delete(slide);\n        }\n    }\n\n    private endPlayback() {\n        if (this.playing) {\n            this.playing = false;\n            this.carouselPaused.emit(this);\n            this.resetInterval();\n            this.cdr.markForCheck();\n        }\n    }\n\n    private stopByInteraction() {\n        if (this.pause && this.isPlaying) {\n            this.stoppedByInteraction = true;\n            this.stop();\n        }\n    }\n\n    private resetInterval() {\n        if (this.lastInterval) {\n            clearInterval(this.lastInterval);\n            this.lastInterval = null;\n        }\n    }\n\n    private restartInterval() {\n        this.resetInterval();\n\n        if (this.playing && this.interval > 0 && this.platformUtil.isBrowser) {\n            this.lastInterval = setInterval(() => {\n                if (!this.loop && this.current === this.total - 1) {\n                    // the automatic rotation ends on the last slide, regardless of `pause`\n                    this.endPlayback();\n                    this.autoPlayEnded = true;\n                } else if (this.total) {\n                    this.next();\n                }\n            }, this.interval);\n        }\n    }\n\n    /** @hidden */\n    public get nextButtonDisabled() {\n        return !this.loop && this.current === (this.total - 1);\n    }\n\n    /** @hidden */\n    public get prevButtonDisabled() {\n        return !this.loop && this.current === 0;\n    }\n\n    private get indicatorsElements() {\n        return this._indicators.toArray();\n    }\n\n    private getIndicatorsClass(): string {\n        switch (this.indicatorsOrientation) {\n            case CarouselIndicatorsOrientation.top:\n                return CarouselIndicatorsOrientation.start;\n            case CarouselIndicatorsOrientation.bottom:\n                return CarouselIndicatorsOrientation.end;\n            default:\n                return this.indicatorsOrientation;\n        }\n    }\n\n    private getNextIndex(): number {\n        return (this.current + 1) % this.total;\n    }\n\n    private getPrevIndex(): number {\n        return this.current - 1 < 0 ? this.total - 1 : this.current - 1;\n    }\n\n    private getSlideSize(): number {\n        const element = this.currentItem.nativeElement;\n        return this.vertical ? element.offsetHeight : element.offsetWidth;\n    }\n\n    private resetSlideStyles(slide: IgxSlideComponent) {\n        slide.nativeElement.style.transform = '';\n        slide.nativeElement.style.opacity = '';\n    }\n\n    private pan(event: IgxGestureEvent) {\n        if (!this.gesturesSupport || !this.currentItem) {\n            return;\n        }\n        this.panning = true;\n\n        const slideSize = this.getSlideSize();\n        const panOffset = (slideSize / 1000);\n        const delta = this.vertical ? event.deltaY : event.deltaX;\n        const index = delta < 0 ? this.getNextIndex() : this.getPrevIndex();\n        const offset = delta < 0 ? slideSize + delta : -slideSize + delta;\n\n        if (Math.abs(delta) + panOffset >= slideSize) {\n            return;\n        }\n\n        // there is no other slide to reveal for a single slide or at the boundary of a non-looping carousel\n        if (this.total < 2 || (!this.loop && ((this.current === 0 && delta > 0) || (this.current === this.total - 1 && delta < 0)))) {\n            this.discardIncomingSlide();\n            return;\n        }\n\n        event.preventDefault();\n        this.stopByInteraction();\n\n        if (this.previousItem?.previous) {\n            this.previousItem.previous = false;\n        }\n        this.finishAnimations();\n\n        if (this.incomingSlide && index !== this.incomingSlide.index) {\n            this.resetSlideStyles(this.incomingSlide);\n            this.incomingSlide.previous = false;\n        }\n        this.incomingSlide = this.get(index);\n        this.incomingSlide.previous = true;\n\n        if (this.animationType === CarouselAnimationType.fade) {\n            this.currentItem.nativeElement.style.opacity = `${Math.abs(offset) / slideSize}`;\n        } else {\n            this.currentItem.nativeElement.style.transform = this.vertical\n                ? `translateY(${delta}px)`\n                : `translateX(${delta}px)`;\n            this.incomingSlide.nativeElement.style.transform = this.vertical\n                ? `translateY(${offset}px)`\n                : `translateX(${offset}px)`;\n        }\n    }\n\n    private onSlideActivated(slide: IgxSlideComponent) {\n        if (slide.active && slide !== this.currentItem) {\n            if (slide.direction === CarouselAnimationDirection.NONE) {\n                this.setTransitionDirection(slide, slide.index > this.current ? CarouselAnimationDirection.NEXT : CarouselAnimationDirection.PREV);\n            }\n\n            if (this.currentItem) {\n                if (this.previousItem?.previous) {\n                    this.previousItem.previous = false;\n                }\n                this.restoreDirection(this.currentItem);\n                this.currentItem.active = false;\n\n                this.previousItem = this.currentItem;\n                this.currentItem = slide;\n                this.triggerAnimations();\n            } else {\n                this.currentItem = slide;\n            }\n            this.slideChanged.emit({ carousel: this, slide });\n            this.restartInterval();\n            this.cdr.markForCheck();\n        }\n    }\n\n    private finishAnimations() {\n        if (this.animationStarted(this.leaveAnimationPlayer!)) {\n            this.leaveAnimationPlayer!.finish();\n        }\n\n        if (this.animationStarted(this.enterAnimationPlayer!)) {\n            this.enterAnimationPlayer!.finish();\n        }\n    }\n\n    private initSlides(change: QueryList<IgxSlideComponent>) {\n        const diff = this.differ.diff(change.toArray());\n        if (diff) {\n            this.slides.forEach((slide, index) => {\n                slide.index = index;\n                slide.total = this.total;\n            });\n\n            diff.forEachAddedItem((record: IterableChangeRecord<IgxSlideComponent>) => {\n                const slide = record.item;\n                this.slideAdded.emit({ carousel: this, slide });\n                if (slide.active) {\n                    this.currentItem = slide;\n                }\n                this.slideSubscriptions.set(slide, slide.activeChange.subscribe(() => this.onSlideActivated(slide)));\n            });\n\n            diff.forEachRemovedItem((record: IterableChangeRecord<IgxSlideComponent>) => {\n                const slide = record.item;\n                this.slideSubscriptions.get(slide)?.unsubscribe();\n                this.slideSubscriptions.delete(slide);\n                this.restoreDirection(slide);\n                if (this.incomingSlide && (slide === this.currentItem || slide === this.incomingSlide)) {\n                    // a pan cannot continue without one of its slides. The slides are already checked at this point,\n                    // so their `previous` state is reset with the slides selection to avoid changing it during change detection\n                    this.resetSlideStyles(this.currentItem);\n                    this.resetSlideStyles(this.incomingSlide);\n                    this.discardedSlide = this.incomingSlide;\n                    this.incomingSlide = null;\n                }\n                this.slideRemoved.emit({ carousel: this, slide });\n                if (slide.active) {\n                    slide.active = false;\n                    if (this.currentItem === slide) { // Only fall back if nothing better was found.\n                        this.currentItem = this.get(Math.min(slide.index, this.total - 1));\n                    }\n                }\n            });\n\n            this.updateSlidesSelection();\n        }\n    }\n\n    private updateSlidesSelection() {\n        if (!this.platformUtil.isBrowser) {\n            return;\n        }\n\n        cancelAnimationFrame(this.selectionFrame);\n        this.selectionFrame = requestAnimationFrame(() => {\n            this.selectionFrame = 0;\n            if (this.discardedSlide) {\n                this.discardedSlide.previous = false;\n                this.discardedSlide = null;\n            }\n            if (this.currentItem) {\n                this.currentItem.active = true;\n                this.slides\n                    .filter(slide => slide.active && slide !== this.currentItem)\n                    .forEach(slide => slide.active = false);\n            } else if (this.total) {\n                this.slides.first.active = true;\n            }\n\n            // start auto-playing once, so slide changes do not resume a carousel that was stopped,\n            // unless its automatic rotation ended on the last slide\n            if (!this.autoPlayStarted || this.autoPlayEnded) {\n                this.autoPlayStarted = true;\n                this.play();\n            }\n            this.cdr.markForCheck();\n        });\n    }\n}\n\nexport interface ISlideEventArgs extends IBaseEventArgs {\n    carousel: IgxCarouselComponent;\n    slide: IgxSlideComponent;\n}\n","<ng-template #defaultIndicator let-slide>\n    <div class=\"igx-nav-dot\"\n        [class.igx-nav-dot--active]=\"slide.active\">\n    </div>\n</ng-template>\n\n<ng-template #defaultNextButton>\n    <igx-icon aria-hidden=\"true\" family=\"default\" name=\"carousel_next\"\n        class=\"igx-nav-arrow\">\n    </igx-icon>\n</ng-template>\n\n<ng-template #defaultPrevButton>\n    <igx-icon aria-hidden=\"true\" family=\"default\" name=\"carousel_prev\"\n        class=\"igx-nav-arrow\">\n    </igx-icon>\n</ng-template>\n\n@if (showIndicators) {\n    <div [ngClass]=\"indicatorsClass\" role=\"tablist\" (keyup)=\"handleKeyUp($event)\" (focusout)=\"handleFocusOut($event)\" (click)=\"handleClick()\" (keydown)=\"handleKeydown($event)\">\n        @for (slide of slides; track slide) {\n            <div #indicators\n                class=\"igx-carousel-indicators__indicator\"\n                (click)=\"select(slide)\"\n                [id]=\"'tab-'+ slide.index + '-' + total\"\n                role=\"tab\"\n                [attr.tabindex]=\"slide.active ? 0 : -1\"\n                [attr.aria-label]=\"resourceStrings.igx_carousel_slide + ' ' + (slide.index + 1) + ' ' + resourceStrings.igx_carousel_of + ' ' + total\"\n                [attr.aria-controls]=\"'panel-' + slide.index\"\n                [attr.aria-selected]=\"slide.active\">\n                <ng-container *ngTemplateOutlet=\"getIndicatorTemplate; context: {$implicit: slide};\"></ng-container>\n            </div>\n        }\n    </div>\n}\n\n@if (navigation && slides.length) {\n    <button\n        igxButton\n        class=\"igx-carousel__arrow igx-carousel__arrow--prev\"\n        [attr.aria-label]=\"resourceStrings.igx_carousel_previous_slide\"\n        [disabled]=\"prevButtonDisabled\"\n        (click)=\"prev()\"\n        (keydown)=\"handleKeydownPrev($event)\">\n        <ng-container *ngTemplateOutlet=\"getPrevButtonTemplate; context: {$implicit: prevButtonDisabled};\"></ng-container>\n    </button>\n    <button\n        igxButton\n        class=\"igx-carousel__arrow igx-carousel__arrow--next\"\n        [attr.aria-label]=\"resourceStrings.igx_carousel_next_slide\"\n        [disabled]=\"nextButtonDisabled\"\n        (click)=\"next()\"\n        (keydown)=\"handleKeydownNext($event)\">\n        <ng-container *ngTemplateOutlet=\"getNextButtonTemplate; context: {$implicit: nextButtonDisabled};\"></ng-container>\n    </button>\n}\n\n@if (showIndicatorsLabel) {\n    <div [ngClass]=\"indicatorsClass\" class=\"igx-carousel-label-indicator\" [class.igx-carousel-label-indicator--vertical]=\"isVertical\">\n        <span [id]=\"labelId\" class=\"igx-carousel__label\">{{getCarouselLabel}}</span>\n    </div>\n}\n\n<div class=\"igx-carousel__inner\" [attr.aria-live]=\"ariaLive\">\n    <ng-content></ng-content>\n</div>\n","import { IgxCarouselComponent } from './carousel.component';\nimport { IgxCarouselIndicatorDirective, IgxCarouselNextButtonDirective, IgxCarouselPrevButtonDirective } from './carousel.directives';\nimport { IgxSlideComponent } from './slide.component';\n\nexport { CarouselAnimationDirection, IgxCarouselComponentBase, IgxSlideComponentBase, CarouselAnimationSettings } from './carousel-base';\nexport * from './carousel.component';\nexport * from './slide.component';\nexport * from './carousel.directives';\nexport { CarouselAnimationType, CarouselIndicatorsOrientation } from './enums';\n\n/* NOTE: Carousel directives collection for ease-of-use import in standalone components scenario */\nexport const IGX_CAROUSEL_DIRECTIVES = [\n    IgxCarouselComponent,\n    IgxSlideComponent,\n    IgxCarouselIndicatorDirective,\n    IgxCarouselNextButtonDirective,\n    IgxCarouselPrevButtonDirective\n] as const;\n","import { NgModule } from '@angular/core';\nimport { IGX_CAROUSEL_DIRECTIVES } from './public_api';\n\n/**\n * @hidden\n * IMPORTANT: The following is NgModule exported for backwards-compatibility before standalone components\n */\n@NgModule({\n    imports: [\n        ...IGX_CAROUSEL_DIRECTIVES\n    ],\n    exports: [\n        ...IGX_CAROUSEL_DIRECTIVES\n    ]\n})\nexport class IgxCarouselModule {\n}\n"],"mappings":";;;;;;;;;;AACA,MAAa,wBAAwB;CACjC,MAAM;CACN,OAAO;CACP,MAAM;AACA;AAGV,MAAa,gCAAgC;CAIzC,QAAQ;CAIR,KAAK;CACL,OAAO;CACP,KAAK;AACC;ACZV,IAAY;CAAZ,SAAY,4BAA0B;CAAG,2BAAA,2BAAA,UAAA,KAAA;CAAM,2BAAA,2BAAA,UAAA,KAAA;CAAM,2BAAA,2BAAA,UAAA,KAAA;AAAK,EAAA,CAA9C,+BAAA,6BAA0B,CAAA,EAAA;AAetC,IAAsB,2BAAtB,MAAsB,yBAAwB;CAD9C,cAAA;EAEY,KAAA,mBAAmB,OAAyB,0BAA0B;EACpE,KAAA,MAAM,OAAO,iBAAiB;EAGjC,KAAA,gBAAuC,sBAAsB;EAG7D,KAAA,qBAAqB,IAAI,aAAY;EAErC,KAAA,qBAAqB,IAAI,aAAY;EAWlC,KAAA,2BAA2B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