import { Component, HostListener, Input, ViewChild, ViewChildren } from '@angular/core';
import { SpacingAroundDirective } from '../../directive/spacing-around.directive';
import { TextEditorComponent } from '../../elements/text-editor/text-editor.component';
import { CommonModule, NgFor, NgIf } from '@angular/common';
import { ButtonDirectiveDirective } from '../../directive/button-directive.directive';
import { SimpoButtonComponent } from '../../elements/simpo-button/simpo-button.component';
import { PositionLayoutDirectiveDirective } from '../../directive/position-layout-directive.directive';
import { ImageDirectiveDirective } from '../../directive/image-directive.directive';
import { ImageEditorDirective } from '../../directive/image-editor.directive';
import BaseSection from '../BaseSection';
import { HoverDirective } from '../../directive/hover-element-directive';
import { SpacingHorizontalDirective } from '../../directive/spacing-horizontal.directive';
import { CornerDirective } from '../../directive/corner-directive';
import { SimpoHoverBorderDirective } from "../../directive/hoverborder.directive";
import { SimpoElementsModule } from '../../elements/index';
import { SimpoComponentModule } from '../../components/index';
import { BackgroundDirective } from '../../directive/background-directive';
import { BorderDirective } from '../../directive/border-directive';
import { ContainerFitDirective } from '../../directive/container-fir.directive';
import { simpoConetenAlignmentDirective } from '../../directive/content-alignment-directive';
import { ContentFitDirective } from '../../directive/content-fit-directive';
import { AnimationDirective } from '../../directive/animation-directive';
import { SimpoContainerAligment } from '../../directive/container-alignment.directive';
import { TextBackgroundDirectiveDirective } from '../../directive/text-background-directive.directive';
import { MatIcon } from '@angular/material/icon';
import { OverlayDirective } from '../../directive/overlay-directive';
import * as i0 from "@angular/core";
import * as i1 from "../../services/events.service";
import * as i2 from "@angular/common";
import * as i3 from "../../elements/simpo-button/simpo-button.component";
import * as i4 from "../../elements/svg-divider/svg-divider.component";
import * as i5 from "../../components/hover-elements/hover-elements.component";
import * as i6 from "../../components/delete-hover-element/delete-hover-element.component";
export class NewTestimonialsComponent extends BaseSection {
    constructor(_eventService, renderer) {
        super();
        this._eventService = _eventService;
        this.renderer = renderer;
        this.idx = 0;
        this.screenWidth = "";
        this.carouselHeightPx = null;
        this.resizeTimeout = 0;
    }
    ngOnInit() {
        this.content = this.data?.content;
        this.styles = this.data?.styles;
        this.getScreenSize();
    }
    ngAfterViewInit() {
        // const carouselElement = document.getElementById('carouselExampleIndicators');
        // if (carouselElement) {
        //   carouselElement.addEventListener('slide.bs.carousel', (event: any) => {
        //     this.idx = event.to;
        //   });
        // }
        if (window.innerWidth < 475) {
            setTimeout(() => this.updateCarouselHeight(), 50);
            this.carouselItems.changes.subscribe(() => {
                setTimeout(() => this.updateCarouselHeight(), 50);
            });
        }
    }
    get stylesLayout() {
        return { ...this.styles?.layout };
    }
    getImageData() {
        return this.content?.listItem.data[this.idx]?.image;
    }
    getImageUrl() {
        return this.content?.listItem?.data[this.idx]?.image?.url;
    }
    getImageType() {
        if (this.content?.listItem?.data[this?.idx]?.image?.url?.includes('.mp4'))
            return 'Video';
        return 'Image';
    }
    getLength() {
        return (this.content?.listItem.data.length ?? 0);
    }
    editSection() {
        this._eventService.toggleEditorEvent.emit(false);
        setTimeout(() => {
            this._eventService.editSection.emit({ data: this.data });
        }, 100);
    }
    stopPropagation(event) {
        event.stopPropagation();
    }
    getScreenSize() {
        this.screenWidth = window.innerWidth;
    }
    onWindowResize() {
        if (this.resizeTimeout) {
            clearTimeout(this.resizeTimeout);
        }
        this.resizeTimeout = setTimeout(() => this.updateCarouselHeight(), 120);
    }
    updateCarouselHeight() {
        if (!this.carouselItems || this.carouselItems.length === 0)
            return;
        const items = this.carouselItems.toArray().map(q => q.nativeElement);
        const imagePromises = [];
        items.forEach((item) => {
            const imgs = Array.from(item.querySelectorAll('img'));
            imgs.forEach(img => {
                if (img.complete) {
                    return;
                }
                imagePromises.push(new Promise(resolve => {
                    img.addEventListener('load', () => resolve());
                    img.addEventListener('error', () => resolve());
                }));
            });
        });
        Promise.all(imagePromises).then(() => {
            setTimeout(() => {
                let maxH = 15;
                items.forEach((item) => {
                    const h = item.offsetHeight;
                    if (h > maxH)
                        maxH = h;
                });
                if (maxH < 100)
                    maxH = 100;
                this.carouselHeightPx = maxH;
                if (this.carouselInner && this.carouselInner.nativeElement) {
                    this.renderer.setStyle(this.carouselInner.nativeElement, 'height', `${maxH}px`);
                    items.forEach((it) => this.renderer.setStyle(it, 'min-height', `${maxH}px`));
                }
            }, 50);
        });
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NewTestimonialsComponent, deps: [{ token: i1.EventsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: NewTestimonialsComponent, isStandalone: true, selector: "simpo-new-testimonials", inputs: { data: "data", edit: "edit", delete: "delete", customClass: "customClass", nextComponentColor: "nextComponentColor", index: "index" }, host: { listeners: { "window: resize": "getScreenSize($event)", "window:resize": "onWindowResize()" } }, viewQueries: [{ propertyName: "carouselInner", first: true, predicate: ["carouselInner"], descendants: true }, { propertyName: "carouselItems", predicate: ["carouselItem"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<section class=\"main-container\" simpoHover (hovering)=\"showEditTabs($event)\">\r\n    <div class=\"spacing-around\" [spacingAround]=\"stylesLayout\" [simpoBorder]=\"styles?.border\" [id]=\"data?.id\">\r\n        <div class=\"parent-div\" [id]=\"data?.id\" [simpoCorner]=\"styles?.corners\" [simpoBackground]=\"styles?.background\">\r\n            <div class=\"d-flex flex-column\" [simpoOverlay]=\"styles?.background\" [simpoLayout]=\"styles?.layout\"\r\n                [id]=\"data?.id\">\r\n                <div class=\"header\" [spacingHorizontal]=\"stylesLayout\" [simpoAnimation]=\"styles?.animation\">\r\n                    <ng-container *ngFor=\"let text of content?.inputText; let i = index\">\r\n                        <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n                    </ng-container>\r\n                </div>\r\n                <div class=\"list-items mt-3 d-flex gap-3\" [spacingHorizontal]=\"stylesLayout\" [id]=\"data?.id\"\r\n                    [simpoPositionLayoutDirective]=\"styles?.positionLayout\" [simpoAnimation]=\"styles?.animation\"\r\n                    [class.flex-column]=\"screenWidth < 475\">\r\n                    <div class=\"image-container w-35 height-50\" [class.w-100]=\"screenWidth < 475\" [id]=\"data?.id\"\r\n                        [class.h-30]=\"screenWidth < 475\" [class.bg-black]=\"getImageType() == 'Video'\"\r\n                        [simpoCorner]=\"styles?.corners\">\r\n                        <ng-container>\r\n                            <ng-container *ngIf=\"getImageType() == 'Image'\">\r\n                                <img loading=\"lazy\" class=\"w-100 h-100\" [src]=\"getImageUrl()\" alt=\"Selected Image\"\r\n                                    [simpoCorner]=\"styles?.corners\" [id]=\"data?.id\" loading=\"lazy\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\"\r\n                                    [sectionId]=\"data?.id\">\r\n                                <!-- <img [src]=\"getImageUrl()\" alt=\"Selected Image\" class=\"w-100 h-100\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\" [sectionId]=\"data?.id\"\r\n                                    [simpoCorner]=\"styles?.corners\" [id]=\"data?.id\"> -->\r\n                            </ng-container>\r\n                            <ng-container *ngIf=\"getImageType() == 'Video'\">\r\n                                <video [src]=\"getImageUrl()\" class=\"w-100 h-100\" [simpoCorner]=\"styles?.corners\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\" [sectionId]=\"data?.id\"\r\n                                    controls></video>\r\n                            </ng-container>\r\n                        </ng-container>\r\n                    </div>\r\n                    <div id=\"carouselExampleIndicators\" data-bs-keyboard=\"false\"\r\n                        class=\"carousel slide w-65 d-flex flex-column\"\r\n                        [simpoContentAlignment]=\"styles?.contentAlignment\" [class.w-100]=\"screenWidth < 475\">\r\n                        <div class=\"carousel-inner overflow-unset\" [class.mb-6]=\"screenWidth < 475\" #carouselInner>\r\n                            <ng-container *ngFor=\"let item of content?.listItem?.data;let i = index\">\r\n                                <div class=\"carousel-item h-100\" [ngClass]=\"{'active': i === 0}\" #carouselItem>\r\n                                    <div class=\"quote-image mb-2\">\r\n                                        <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"36\" height=\"31\"\r\n                                            viewBox=\"0 0 36 31\" fill=\"none\">\r\n                                            <path\r\n                                                d=\"M35.3998 3.29993C35.5998 3.09993 35.7998 2.69993 35.5998 2.29993C35.3998 2.09993 34.9998 1.69993 34.5998 0.899925C33.9998 0.699925 33.5998 0.699926 32.9998 1.09993C25.3998 5.89993 21.1998 11.4999 20.3998 17.8999C18.9998 27.8999 27.9998 32.6999 32.5998 28.2999C37.1998 23.8999 34.3998 18.2999 31.1998 16.6999C27.9998 15.0999 25.9998 15.6999 26.1998 13.6999C26.5998 11.6999 31.1998 6.09993 35.3998 3.29993ZM14.7998 1.09993C14.1998 0.699926 13.5998 0.699926 13.1998 1.09993C5.59983 5.89993 1.39983 11.4999 0.599832 18.0999C-0.800168 28.0999 8.19983 32.8999 12.7998 28.4999C17.3998 24.0999 14.5998 18.4999 11.3998 16.8999C7.99983 15.4999 5.99983 16.0999 6.39983 13.8999C6.79983 11.8999 11.3998 6.29993 15.5998 3.49993C15.7998 3.29993 15.9998 2.89993 15.7998 2.49993C15.5998 2.29993 15.1998 1.89993 14.7998 1.09993Z\"\r\n                                                [attr.fill]=\"styles?.background?.accentColor\" />\r\n                                        </svg>\r\n                                    </div>\r\n                                    <div class=\"item mb-3\">\r\n                                        <simpo-text-editor [(value)]=\"item.inputText[0].value\"\r\n                                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"item.inputText[0]?.isRTE\"></simpo-text-editor>\r\n                                    </div>\r\n                                </div>\r\n                            </ng-container>\r\n                        </div>\r\n                        <div class=\"prev-next d-flex align-items-center justify-content-between\">\r\n                            <div class=\"d-flex align-items-center gap-2\">\r\n                                <div class=\"carousel-control-prev\" href=\"#carouselExampleIndicators\" role=\"button\"\r\n                                    data-bs-slide=\"prev\" [style.backgroundColor]=\"styles?.background?.accentColor\"\r\n                                    (click)=\"idx = (idx - 1 < 0 ? getLength() - 1 : idx - 1)\">\r\n                                    <mat-icon>keyboard_arrow_left</mat-icon>\r\n                                </div>\r\n\r\n                                <div class=\"carousel-control-next\" href=\"#carouselExampleIndicators\" role=\"button\"\r\n                                    data-bs-slide=\"next\" [style.backgroundColor]=\"styles?.background?.accentColor\"\r\n                                    (click)=\"idx = (idx + 1 >= getLength() ? 0 : idx + 1)\">\r\n                                    <mat-icon>keyboard_arrow_right</mat-icon>\r\n                                </div>\r\n                            </div>\r\n                            <ng-container *ngIf=\"data?.action?.display\">\r\n                                <div class=\"d-flex\">\r\n                                    <app-button-element [buttonContent]=\"data?.action?.buttons[0]?.content \"\r\n                                        [buttonStyle]=\"data?.action?.buttons[0]?.styles\"\r\n                                        [buttonId]=\"data?.action?.buttons[0]?.id\" [edit]=\"edit\" [sectionId]=\"data?.id\"\r\n                                        [color]=\"data?.styles?.background?.accentColor\"\r\n                                        [backgroundInfo]=\"data?.styles?.background\"></app-button-element>\r\n                                </div>\r\n                            </ng-container>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <ng-container *ngIf=\"styles?.devider?.display\">\r\n        <simpo-svg-divider [dividerType]=\"styles?.devider?.deviderType\"\r\n            [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n    </ng-container>\r\n\r\n    <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n        <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n    </div>\r\n    <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n        <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n    </div>\r\n</section>", styles: [".hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.main-container{position:relative;height:auto}.bg-black{background:#000}.carousel-control-prev,.carousel-control-next{position:unset!important;width:30px;border-radius:50%!important;height:30px}.w-35{width:35%!important}.w-65{width:65%!important}.image-container{z-index:100}.prev-next{width:100%}.overflow-visible{overflow:visible!important}.overflow-unset{overflow:unset!important}@media screen and (max-width: 475px){.list-items{flex-direction:column!important}.h-30{height:30vh!important}}.height-50{height:50vh}.w-100{width:100%!important}.mb-6{margin-bottom:2.5rem!important}.flex-column{flex-direction:column!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: 
                // directives
                SpacingAroundDirective, selector: "[spacingAround]", inputs: ["spacingAround", "backgroundInfo"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "directive", type: PositionLayoutDirectiveDirective, selector: "[simpoPositionLayoutDirective]", inputs: ["simpoPositionLayoutDirective"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: SpacingHorizontalDirective, selector: "[spacingHorizontal]", inputs: ["spacingHorizontal", "isHeader"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "ngmodule", type: SimpoElementsModule }, { kind: "component", type: i3.SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "buttonId", "color", "sectionId", "edit", "backgroundInfo", "disabled", "loading", "isFullWidth"] }, { kind: "component", type: i4.SvgDividerComponent, selector: "simpo-svg-divider", inputs: ["dividerType", "color"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i5.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: i6.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: simpoConetenAlignmentDirective, selector: "[simpoContentAlignment]", inputs: ["simpoContentAlignment"] }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "component", type: 
                // components
                TextEditorComponent, selector: "simpo-text-editor", inputs: ["value", "editable", "isRTE", "sectionId", "label", "type", "inputTextIndex", "itemIndex"], outputs: ["valueChange"] }, { kind: "directive", type: ImageEditorDirective, selector: "[appImageEditor]", inputs: ["appImageEditor", "imageData", "sectionId", "showIcon", "iconData", "itemIndex"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: NewTestimonialsComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-new-testimonials', standalone: true, imports: [
                        CommonModule,
                        NgFor,
                        NgIf,
                        MatIcon,
                        // directives
                        SpacingAroundDirective,
                        BackgroundDirective,
                        ButtonDirectiveDirective,
                        PositionLayoutDirectiveDirective,
                        ImageDirectiveDirective,
                        HoverDirective,
                        SpacingHorizontalDirective,
                        CornerDirective,
                        SimpoHoverBorderDirective,
                        SimpoElementsModule,
                        SimpoComponentModule,
                        BorderDirective,
                        ContainerFitDirective,
                        simpoConetenAlignmentDirective,
                        AnimationDirective,
                        SimpoContainerAligment,
                        ContentFitDirective,
                        TextBackgroundDirectiveDirective,
                        OverlayDirective,
                        // components
                        TextEditorComponent,
                        SimpoButtonComponent,
                        ImageEditorDirective,
                    ], template: "<section class=\"main-container\" simpoHover (hovering)=\"showEditTabs($event)\">\r\n    <div class=\"spacing-around\" [spacingAround]=\"stylesLayout\" [simpoBorder]=\"styles?.border\" [id]=\"data?.id\">\r\n        <div class=\"parent-div\" [id]=\"data?.id\" [simpoCorner]=\"styles?.corners\" [simpoBackground]=\"styles?.background\">\r\n            <div class=\"d-flex flex-column\" [simpoOverlay]=\"styles?.background\" [simpoLayout]=\"styles?.layout\"\r\n                [id]=\"data?.id\">\r\n                <div class=\"header\" [spacingHorizontal]=\"stylesLayout\" [simpoAnimation]=\"styles?.animation\">\r\n                    <ng-container *ngFor=\"let text of content?.inputText; let i = index\">\r\n                        <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n                    </ng-container>\r\n                </div>\r\n                <div class=\"list-items mt-3 d-flex gap-3\" [spacingHorizontal]=\"stylesLayout\" [id]=\"data?.id\"\r\n                    [simpoPositionLayoutDirective]=\"styles?.positionLayout\" [simpoAnimation]=\"styles?.animation\"\r\n                    [class.flex-column]=\"screenWidth < 475\">\r\n                    <div class=\"image-container w-35 height-50\" [class.w-100]=\"screenWidth < 475\" [id]=\"data?.id\"\r\n                        [class.h-30]=\"screenWidth < 475\" [class.bg-black]=\"getImageType() == 'Video'\"\r\n                        [simpoCorner]=\"styles?.corners\">\r\n                        <ng-container>\r\n                            <ng-container *ngIf=\"getImageType() == 'Image'\">\r\n                                <img loading=\"lazy\" class=\"w-100 h-100\" [src]=\"getImageUrl()\" alt=\"Selected Image\"\r\n                                    [simpoCorner]=\"styles?.corners\" [id]=\"data?.id\" loading=\"lazy\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\"\r\n                                    [sectionId]=\"data?.id\">\r\n                                <!-- <img [src]=\"getImageUrl()\" alt=\"Selected Image\" class=\"w-100 h-100\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\" [sectionId]=\"data?.id\"\r\n                                    [simpoCorner]=\"styles?.corners\" [id]=\"data?.id\"> -->\r\n                            </ng-container>\r\n                            <ng-container *ngIf=\"getImageType() == 'Video'\">\r\n                                <video [src]=\"getImageUrl()\" class=\"w-100 h-100\" [simpoCorner]=\"styles?.corners\"\r\n                                    [appImageEditor]=\"edit || false\" [imageData]=\"getImageData()\" [sectionId]=\"data?.id\"\r\n                                    controls></video>\r\n                            </ng-container>\r\n                        </ng-container>\r\n                    </div>\r\n                    <div id=\"carouselExampleIndicators\" data-bs-keyboard=\"false\"\r\n                        class=\"carousel slide w-65 d-flex flex-column\"\r\n                        [simpoContentAlignment]=\"styles?.contentAlignment\" [class.w-100]=\"screenWidth < 475\">\r\n                        <div class=\"carousel-inner overflow-unset\" [class.mb-6]=\"screenWidth < 475\" #carouselInner>\r\n                            <ng-container *ngFor=\"let item of content?.listItem?.data;let i = index\">\r\n                                <div class=\"carousel-item h-100\" [ngClass]=\"{'active': i === 0}\" #carouselItem>\r\n                                    <div class=\"quote-image mb-2\">\r\n                                        <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"36\" height=\"31\"\r\n                                            viewBox=\"0 0 36 31\" fill=\"none\">\r\n                                            <path\r\n                                                d=\"M35.3998 3.29993C35.5998 3.09993 35.7998 2.69993 35.5998 2.29993C35.3998 2.09993 34.9998 1.69993 34.5998 0.899925C33.9998 0.699925 33.5998 0.699926 32.9998 1.09993C25.3998 5.89993 21.1998 11.4999 20.3998 17.8999C18.9998 27.8999 27.9998 32.6999 32.5998 28.2999C37.1998 23.8999 34.3998 18.2999 31.1998 16.6999C27.9998 15.0999 25.9998 15.6999 26.1998 13.6999C26.5998 11.6999 31.1998 6.09993 35.3998 3.29993ZM14.7998 1.09993C14.1998 0.699926 13.5998 0.699926 13.1998 1.09993C5.59983 5.89993 1.39983 11.4999 0.599832 18.0999C-0.800168 28.0999 8.19983 32.8999 12.7998 28.4999C17.3998 24.0999 14.5998 18.4999 11.3998 16.8999C7.99983 15.4999 5.99983 16.0999 6.39983 13.8999C6.79983 11.8999 11.3998 6.29993 15.5998 3.49993C15.7998 3.29993 15.9998 2.89993 15.7998 2.49993C15.5998 2.29993 15.1998 1.89993 14.7998 1.09993Z\"\r\n                                                [attr.fill]=\"styles?.background?.accentColor\" />\r\n                                        </svg>\r\n                                    </div>\r\n                                    <div class=\"item mb-3\">\r\n                                        <simpo-text-editor [(value)]=\"item.inputText[0].value\"\r\n                                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"item.inputText[0]?.isRTE\"></simpo-text-editor>\r\n                                    </div>\r\n                                </div>\r\n                            </ng-container>\r\n                        </div>\r\n                        <div class=\"prev-next d-flex align-items-center justify-content-between\">\r\n                            <div class=\"d-flex align-items-center gap-2\">\r\n                                <div class=\"carousel-control-prev\" href=\"#carouselExampleIndicators\" role=\"button\"\r\n                                    data-bs-slide=\"prev\" [style.backgroundColor]=\"styles?.background?.accentColor\"\r\n                                    (click)=\"idx = (idx - 1 < 0 ? getLength() - 1 : idx - 1)\">\r\n                                    <mat-icon>keyboard_arrow_left</mat-icon>\r\n                                </div>\r\n\r\n                                <div class=\"carousel-control-next\" href=\"#carouselExampleIndicators\" role=\"button\"\r\n                                    data-bs-slide=\"next\" [style.backgroundColor]=\"styles?.background?.accentColor\"\r\n                                    (click)=\"idx = (idx + 1 >= getLength() ? 0 : idx + 1)\">\r\n                                    <mat-icon>keyboard_arrow_right</mat-icon>\r\n                                </div>\r\n                            </div>\r\n                            <ng-container *ngIf=\"data?.action?.display\">\r\n                                <div class=\"d-flex\">\r\n                                    <app-button-element [buttonContent]=\"data?.action?.buttons[0]?.content \"\r\n                                        [buttonStyle]=\"data?.action?.buttons[0]?.styles\"\r\n                                        [buttonId]=\"data?.action?.buttons[0]?.id\" [edit]=\"edit\" [sectionId]=\"data?.id\"\r\n                                        [color]=\"data?.styles?.background?.accentColor\"\r\n                                        [backgroundInfo]=\"data?.styles?.background\"></app-button-element>\r\n                                </div>\r\n                            </ng-container>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\r\n    <ng-container *ngIf=\"styles?.devider?.display\">\r\n        <simpo-svg-divider [dividerType]=\"styles?.devider?.deviderType\"\r\n            [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n    </ng-container>\r\n\r\n    <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n        <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n    </div>\r\n    <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n        <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n    </div>\r\n</section>", styles: [".hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.main-container{position:relative;height:auto}.bg-black{background:#000}.carousel-control-prev,.carousel-control-next{position:unset!important;width:30px;border-radius:50%!important;height:30px}.w-35{width:35%!important}.w-65{width:65%!important}.image-container{z-index:100}.prev-next{width:100%}.overflow-visible{overflow:visible!important}.overflow-unset{overflow:unset!important}@media screen and (max-width: 475px){.list-items{flex-direction:column!important}.h-30{height:30vh!important}}.height-50{height:50vh}.w-100{width:100%!important}.mb-6{margin-bottom:2.5rem!important}.flex-column{flex-direction:column!important}\n"] }]
        }], ctorParameters: () => [{ type: i1.EventsService }, { type: i0.Renderer2 }], propDecorators: { data: [{
                type: Input
            }], edit: [{
                type: Input
            }], delete: [{
                type: Input
            }], customClass: [{
                type: Input
            }], nextComponentColor: [{
                type: Input
            }], index: [{
                type: Input
            }], carouselInner: [{
                type: ViewChild,
                args: ['carouselInner', { static: false }]
            }], carouselItems: [{
                type: ViewChildren,
                args: ['carouselItem']
            }], getScreenSize: [{
                type: HostListener,
                args: ["window: resize", ["$event"]]
            }], onWindowResize: [{
                type: HostListener,
                args: ['window:resize']
            }] } });
//# sourceMappingURL=data:application/json;base64, 