import { CommonModule } from '@angular/common';
import { Component, HostListener, Input, ViewChild } from '@angular/core';
import { SimpoElementsModule } from '../../elements/index';
import { TextPosition } from '../../styles/index';
import { SimpoComponentModule } from '../../components/index';
import { AnimationDirective } from '../../directive/animation-directive';
import { BackgroundDirective } from '../../directive/background-directive';
import { ContentFitDirective } from '../../directive/content-fit-directive';
import { BannerContentFitDirective } from '../../directive/banner-content-fit-directive';
import { BorderDirective } from '../../directive/border-directive';
import { ButtonDirectiveDirective } from '../../directive/button-directive.directive';
import { ColumnDirectiveDirective } from '../../directive/column-directive.directive';
import { ContainerFitDirective } from '../../directive/container-fir.directive';
import { simpoConetenAlignmentDirective } from '../../directive/content-alignment-directive';
import { CornerDirective } from '../../directive/corner-directive';
import { SimpoFooterLayoutDirective } from '../../directive/footer-layout-directive';
import { HoverDirective } from '../../directive/hover-element-directive';
import { ImageDirectiveDirective } from '../../directive/image-directive.directive';
import { OverlayDirective } from '../../directive/overlay-directive';
import { PositionLayoutDirectiveDirective } from '../../directive/position-layout-directive.directive';
import { TextBackgroundDirectiveDirective } from '../../directive/text-background-directive.directive';
import BaseSection from '../BaseSection';
import { ContentTitleDirective } from '../../directive/content-title-spacing.directive';
import { SanitizeHtmlPipe } from '../../services/sanitizeHtml';
import { SpacingHorizontalDirective } from '../../directive/spacing-horizontal.directive';
import { SpacingAroundDirective } from '../../directive/spacing-around.directive';
import { TextEditorComponent } from '../../elements/text-editor/text-editor.component';
import { SimpoContainerAligment } from '../../directive/container-alignment.directive';
import { CdkDrag } from '@angular/cdk/drag-drop';
import * as i0 from "@angular/core";
import * as i1 from "../../services/events.service";
import * as i2 from "../../elements/below-image-card/below-image-card.component";
import * as i3 from "../../elements/top-of-image-card/top-of-image-card.component";
import * as i4 from "../../elements/covering-image-card/covering-image-card.component";
import * as i5 from "../../elements/simpo-button/simpo-button.component";
import * as i6 from "../../elements/svg-divider/svg-divider.component";
import * as i7 from "@angular/common";
import * as i8 from "../../components/hover-elements/hover-elements.component";
import * as i9 from "../../components/delete-hover-element/delete-hover-element.component";
export class ServiceSectionComponent extends BaseSection {
    constructor(_eventService) {
        super();
        this._eventService = _eventService;
        this._mainContainer = null;
        this.TextPosition = TextPosition;
        this.screenWidth = "";
    }
    ngOnInit() {
        this.content = this.data?.content;
        this.style = this.data?.styles;
        this.button = this.data?.action.buttons[0];
        this.deleteSelected = this.delete;
        this.getScreenSize();
    }
    get headingSpace() {
        return this.style?.layout.headingSpacing;
    }
    get stylesLayout() {
        return { ...this.style?.layout };
    }
    get point() {
        return { ...this.content?.tag?.position };
    }
    onDragEnded(event) {
        const transform = event.source.getFreeDragPosition();
        this.content.tag.position.x = transform.x ?? 0;
        this.content.tag.position.y = transform.y ?? 0;
    }
    getScreenSize() {
        this.screenWidth = window.innerWidth;
    }
    getGlassyBackground(color) {
        return `rgba(${this.hexToRgb(color)}, 0.1)`;
    }
    hexToRgb(hex) {
        const bigint = parseInt(hex.slice(1), 16);
        const r = (bigint >> 16) & 255;
        const g = (bigint >> 8) & 255;
        const b = bigint & 255;
        return `${r}, ${g}, ${b}`;
    }
    editSection() {
        if (window.innerWidth <= 475)
            return;
        this._eventService.toggleEditorEvent.emit(false);
        setTimeout(() => {
            this._eventService.editSection.emit({ data: this.data });
        }, 100);
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ServiceSectionComponent, deps: [{ token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ServiceSectionComponent, isStandalone: true, selector: "simpo-service-section", inputs: { data: "data", index: "index", edit: "edit", delete: "delete", customClass: "customClass", nextComponentColor: "nextComponentColor" }, host: { listeners: { "window: resize": "getScreenSize()" } }, viewQueries: [{ propertyName: "_mainContainer", first: true, predicate: ["mainContainer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<section [id]=\"data?.id\" simpoHover (hovering)=\"showEditTabs($event)\" class=\"total-container\"\r\n  [attr.style]=\"customClass\">\r\n  <div [spacingAround]=\"stylesLayout\">\r\n    <div class=\"draggable\" *ngIf=\"content?.tag?.display && screenWidth > 475\" cdkDrag [cdkDragFreeDragPosition]=\"point\"\r\n      (cdkDragEnded)=\"onDragEnded($event)\" cdkDragBoundary=\".total-container\" [cdkDragDisabled]=\"!edit\"\r\n      [style.color]=\"style?.background?.accentColor\" [style.borderColor]=\"style?.background?.accentColor\"\r\n      [style.background]=\"getGlassyBackground(style?.background?.accentColor)\">\r\n      {{ content?.tag?.label }}\r\n    </div>\r\n    <div [id]=\"data?.id\" [simpoBackground]=\"style?.background\" [simpoCorner]=\"style?.corners\">\r\n      <div #mainContainer [id]=\"data?.id\" [spacingHorizontal]=\"stylesLayout\" class=\"w-100\"\r\n        [simpoOverlay]=\"style?.background\">\r\n        <div class=\"container-fluid d-flex flex-column w-100\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\"\r\n          [simpoLayout]=\"style?.layout\">\r\n\r\n          <!-- <div class=\"w-100\" *ngFor=\"let text of data?.content?.inputText\">\r\n            <div [simpoContentTitleSpace]=\"headingSpace\" class=\"w-100\"\r\n              [ngClass]=\"text.label.includes('Heading') ? 'heading-large lh-2 mb-1' : 'body-large mb-4'\">\r\n              <simpo-text-editor class=\"w-100\" [(value)]=\"text.value\" [editable]=\"edit || false\"></simpo-text-editor>\r\n            </div>\r\n          </div> -->\r\n          <div class=\"w-100\" *ngFor=\"let text of data?.content?.inputText; let i = index\">\r\n            <!-- Heading -->\r\n            <div *ngIf=\"text.label === 'Heading'\" [simpoContentTitleSpace]=\"headingSpace\"\r\n              class=\"w-100 heading-large lh-2\">\r\n              <simpo-text-editor class=\"w-100\" [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\">\r\n              </simpo-text-editor>\r\n            </div>\r\n\r\n          </div>\r\n          <div class=\"service-cards-wrapper\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\">\r\n            <div class=\"row-scroll-wrapper\" [class.is-row]=\"style?.direction === 'ROW'\">\r\n              <div class=\"row-scroll-inner\">\r\n                <div class=\"row mx-0 service-row\" [class.row-scroll]=\"style?.direction === 'ROW'\" #container>\r\n                  <div class=\"cards\" [simpoColumnDirective]=\"data?.styles?.size\" [id]=\"data?.id\"\r\n                    *ngFor=\"let service of content?.listItem?.data; let i = index\">\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.BELOW_IMAGE\">\r\n                      <simpo-below-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"\r\n                        [positionLayout]=\"style?.positionLayout?.value\"></simpo-below-image-card>\r\n                    </ng-container>\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.TOP_OF_IMAGE\">\r\n                      <simpo-top-of-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-top-of-image-card>\r\n                    </ng-container>\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.COVERING_IMAGE\">\r\n                      <simpo-covering-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-covering-image-card>\r\n                    </ng-container>\r\n                  </div>\r\n\r\n                  <ng-container *ngIf=\"style?.direction === 'ROW'\">\r\n                    <div class=\"cards\" [simpoColumnDirective]=\"data?.styles?.size\"\r\n                      *ngFor=\"let service of content?.listItem?.data; let i = index\">\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.BELOW_IMAGE\">\r\n                        <simpo-below-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                          class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-below-image-card>\r\n                      </ng-container>\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.TOP_OF_IMAGE\">\r\n                        <simpo-top-of-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                          class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\"></simpo-top-of-image-card>\r\n                      </ng-container>\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.COVERING_IMAGE\">\r\n                        <simpo-covering-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\"\r\n                          [button]=\"button\" class=\"w-100\" [componentId]=\"data?.id\"\r\n                          [edit]=\"edit\" [itemIndex]=\"i\"></simpo-covering-image-card>\r\n                      </ng-container>\r\n                    </div>\r\n                  </ng-container>\r\n\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n\r\n          <div *ngIf=\"data?.action && data?.action?.display\" class=\"button-display d-flex mt-3 gap-2\"\r\n            [simpoContainerAlignment]=\"stylesLayout\">\r\n            <div *ngFor=\"let button of data?.action?.buttons\">\r\n              <app-button-element [buttonContent]=\"button.content\" [buttonStyle]=\"button.styles\" [buttonId]=\"button.id\"\r\n                [sectionId]=\"data?.id\" [color]=\"data?.styles?.background?.accentColor\" [edit]=\"edit\"\r\n                [backgroundInfo]=\"data?.styles?.background\"></app-button-element>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n\r\n  <ng-container *ngIf=\"style?.devider?.display\">\r\n    <simpo-svg-divider [dividerType]=\"style?.devider?.deviderType\"\r\n      [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n  </ng-container>\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: [".total-container{height:auto;position:relative}.mb-1{margin-bottom:1.5rem!important}.cards{padding-bottom:10px}.hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.service-cards-wrapper{width:100%;max-width:100%}@keyframes scrollCards{0%{transform:translate(0)}to{transform:translate(-50%)}}.row-scroll-wrapper.is-row{overflow:hidden}.row-scroll-wrapper.is-row .row-scroll-inner{padding-top:25px;padding-bottom:18px;overflow:hidden}.row-scroll-wrapper.is-row .service-row{display:flex;flex-wrap:nowrap!important;width:max-content;animation:scrollCards 25s linear infinite}.row-scroll-wrapper.is-row:hover .service-row{animation-play-state:paused}.row-scroll-wrapper.is-row .cards{flex:0 0 400px;max-width:400px}.button-display{display:flex;flex-wrap:wrap;gap:10px}.draggable{background:#fff3;border-radius:32px!important;box-shadow:0 4px 30px #0000001a!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-width:1px!important;border-style:solid!important;z-index:1;position:absolute;width:max-content;padding:8px 10px;font-weight:400;font-size:12px!important;font-family:var(--website-font-family)}@media screen and (min-width: 760px){.cards{padding-bottom:24px;margin-bottom:10px}}@media screen and (max-width: 475px){.cards{padding:5px 8px 10px!important}}\n"], dependencies: [{ kind: "ngmodule", type: SimpoElementsModule }, { kind: "component", type: i2.BelowImageCardComponent, selector: "simpo-below-image-card", inputs: ["data", "styles", "content", "componentId", "button", "edit", "positionLayout", "itemIndex"] }, { kind: "component", type: i3.TopOfImageCardComponent, selector: "simpo-top-of-image-card", inputs: ["data", "styles", "content", "componentId", "button", "edit", "itemIndex"] }, { kind: "component", type: i4.CoveringImageCardComponent, selector: "simpo-covering-image-card", inputs: ["data", "styles", "content", "componentId", "button", "edit", "itemIndex"] }, { kind: "component", type: i5.SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "buttonId", "color", "sectionId", "edit", "backgroundInfo", "disabled", "loading", "isFullWidth"] }, { kind: "component", type: i6.SvgDividerComponent, selector: "simpo-svg-divider", inputs: ["dividerType", "color"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i7.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "component", type: TextEditorComponent, selector: "simpo-text-editor", inputs: ["value", "editable", "isRTE", "sectionId", "label", "type", "inputTextIndex", "itemIndex"], outputs: ["valueChange"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i8.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: i9.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: 
                //directive
                ContentTitleDirective, selector: "[simpoContentTitleSpace]", inputs: ["simpoContentTitleSpace"] }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: ColumnDirectiveDirective, selector: "[simpoColumnDirective]", inputs: ["simpoColumnDirective"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "directive", type: SpacingHorizontalDirective, selector: "[spacingHorizontal]", inputs: ["spacingHorizontal", "isHeader"] }, { kind: "directive", type: SpacingAroundDirective, selector: "[spacingAround]", inputs: ["spacingAround", "backgroundInfo"] }, { kind: "directive", type: SimpoContainerAligment, selector: "[simpoContainerAlignment]", inputs: ["simpoContainerAlignment"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ServiceSectionComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-service-section', standalone: true, imports: [
                        SimpoElementsModule,
                        CommonModule,
                        ContentFitDirective,
                        TextEditorComponent,
                        SimpoComponentModule,
                        CdkDrag,
                        //directive
                        ContentTitleDirective,
                        AnimationDirective,
                        BackgroundDirective,
                        BannerContentFitDirective,
                        BorderDirective,
                        ButtonDirectiveDirective,
                        ColumnDirectiveDirective,
                        ContainerFitDirective,
                        simpoConetenAlignmentDirective,
                        ContentFitDirective,
                        CornerDirective,
                        SimpoFooterLayoutDirective,
                        HoverDirective,
                        ImageDirectiveDirective,
                        OverlayDirective,
                        PositionLayoutDirectiveDirective,
                        TextBackgroundDirectiveDirective,
                        SanitizeHtmlPipe,
                        SpacingHorizontalDirective,
                        SpacingAroundDirective,
                        SimpoContainerAligment
                    ], template: "<section [id]=\"data?.id\" simpoHover (hovering)=\"showEditTabs($event)\" class=\"total-container\"\r\n  [attr.style]=\"customClass\">\r\n  <div [spacingAround]=\"stylesLayout\">\r\n    <div class=\"draggable\" *ngIf=\"content?.tag?.display && screenWidth > 475\" cdkDrag [cdkDragFreeDragPosition]=\"point\"\r\n      (cdkDragEnded)=\"onDragEnded($event)\" cdkDragBoundary=\".total-container\" [cdkDragDisabled]=\"!edit\"\r\n      [style.color]=\"style?.background?.accentColor\" [style.borderColor]=\"style?.background?.accentColor\"\r\n      [style.background]=\"getGlassyBackground(style?.background?.accentColor)\">\r\n      {{ content?.tag?.label }}\r\n    </div>\r\n    <div [id]=\"data?.id\" [simpoBackground]=\"style?.background\" [simpoCorner]=\"style?.corners\">\r\n      <div #mainContainer [id]=\"data?.id\" [spacingHorizontal]=\"stylesLayout\" class=\"w-100\"\r\n        [simpoOverlay]=\"style?.background\">\r\n        <div class=\"container-fluid d-flex flex-column w-100\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\"\r\n          [simpoLayout]=\"style?.layout\">\r\n\r\n          <!-- <div class=\"w-100\" *ngFor=\"let text of data?.content?.inputText\">\r\n            <div [simpoContentTitleSpace]=\"headingSpace\" class=\"w-100\"\r\n              [ngClass]=\"text.label.includes('Heading') ? 'heading-large lh-2 mb-1' : 'body-large mb-4'\">\r\n              <simpo-text-editor class=\"w-100\" [(value)]=\"text.value\" [editable]=\"edit || false\"></simpo-text-editor>\r\n            </div>\r\n          </div> -->\r\n          <div class=\"w-100\" *ngFor=\"let text of data?.content?.inputText; let i = index\">\r\n            <!-- Heading -->\r\n            <div *ngIf=\"text.label === 'Heading'\" [simpoContentTitleSpace]=\"headingSpace\"\r\n              class=\"w-100 heading-large lh-2\">\r\n              <simpo-text-editor class=\"w-100\" [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\">\r\n              </simpo-text-editor>\r\n            </div>\r\n\r\n          </div>\r\n          <div class=\"service-cards-wrapper\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\">\r\n            <div class=\"row-scroll-wrapper\" [class.is-row]=\"style?.direction === 'ROW'\">\r\n              <div class=\"row-scroll-inner\">\r\n                <div class=\"row mx-0 service-row\" [class.row-scroll]=\"style?.direction === 'ROW'\" #container>\r\n                  <div class=\"cards\" [simpoColumnDirective]=\"data?.styles?.size\" [id]=\"data?.id\"\r\n                    *ngFor=\"let service of content?.listItem?.data; let i = index\">\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.BELOW_IMAGE\">\r\n                      <simpo-below-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"\r\n                        [positionLayout]=\"style?.positionLayout?.value\"></simpo-below-image-card>\r\n                    </ng-container>\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.TOP_OF_IMAGE\">\r\n                      <simpo-top-of-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-top-of-image-card>\r\n                    </ng-container>\r\n                    <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.COVERING_IMAGE\">\r\n                      <simpo-covering-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                        class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-covering-image-card>\r\n                    </ng-container>\r\n                  </div>\r\n\r\n                  <ng-container *ngIf=\"style?.direction === 'ROW'\">\r\n                    <div class=\"cards\" [simpoColumnDirective]=\"data?.styles?.size\"\r\n                      *ngFor=\"let service of content?.listItem?.data; let i = index\">\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.BELOW_IMAGE\">\r\n                        <simpo-below-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                          class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\" [itemIndex]=\"i\"></simpo-below-image-card>\r\n                      </ng-container>\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.TOP_OF_IMAGE\">\r\n                        <simpo-top-of-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\" [button]=\"button\"\r\n                          class=\"w-100\" [componentId]=\"data?.id\" [edit]=\"edit\"></simpo-top-of-image-card>\r\n                      </ng-container>\r\n                      <ng-container class=\"w-100\" *ngIf=\"style?.textPosition === TextPosition.COVERING_IMAGE\">\r\n                        <simpo-covering-image-card [data]=\"service\" [styles]=\"style\" [content]=\"content\"\r\n                          [button]=\"button\" class=\"w-100\" [componentId]=\"data?.id\"\r\n                          [edit]=\"edit\" [itemIndex]=\"i\"></simpo-covering-image-card>\r\n                      </ng-container>\r\n                    </div>\r\n                  </ng-container>\r\n\r\n                </div>\r\n              </div>\r\n            </div>\r\n          </div>\r\n\r\n          <div *ngIf=\"data?.action && data?.action?.display\" class=\"button-display d-flex mt-3 gap-2\"\r\n            [simpoContainerAlignment]=\"stylesLayout\">\r\n            <div *ngFor=\"let button of data?.action?.buttons\">\r\n              <app-button-element [buttonContent]=\"button.content\" [buttonStyle]=\"button.styles\" [buttonId]=\"button.id\"\r\n                [sectionId]=\"data?.id\" [color]=\"data?.styles?.background?.accentColor\" [edit]=\"edit\"\r\n                [backgroundInfo]=\"data?.styles?.background\"></app-button-element>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </div>\r\n    </div>\r\n  </div>\r\n\r\n  <ng-container *ngIf=\"style?.devider?.display\">\r\n    <simpo-svg-divider [dividerType]=\"style?.devider?.deviderType\"\r\n      [color]=\"nextComponentColor?.color\"></simpo-svg-divider>\r\n  </ng-container>\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: [".total-container{height:auto;position:relative}.mb-1{margin-bottom:1.5rem!important}.cards{padding-bottom:10px}.hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.service-cards-wrapper{width:100%;max-width:100%}@keyframes scrollCards{0%{transform:translate(0)}to{transform:translate(-50%)}}.row-scroll-wrapper.is-row{overflow:hidden}.row-scroll-wrapper.is-row .row-scroll-inner{padding-top:25px;padding-bottom:18px;overflow:hidden}.row-scroll-wrapper.is-row .service-row{display:flex;flex-wrap:nowrap!important;width:max-content;animation:scrollCards 25s linear infinite}.row-scroll-wrapper.is-row:hover .service-row{animation-play-state:paused}.row-scroll-wrapper.is-row .cards{flex:0 0 400px;max-width:400px}.button-display{display:flex;flex-wrap:wrap;gap:10px}.draggable{background:#fff3;border-radius:32px!important;box-shadow:0 4px 30px #0000001a!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);border-width:1px!important;border-style:solid!important;z-index:1;position:absolute;width:max-content;padding:8px 10px;font-weight:400;font-size:12px!important;font-family:var(--website-font-family)}@media screen and (min-width: 760px){.cards{padding-bottom:24px;margin-bottom:10px}}@media screen and (max-width: 475px){.cards{padding:5px 8px 10px!important}}\n"] }]
        }], ctorParameters: () => [{ type: i1.EventsService }], propDecorators: { data: [{
                type: Input
            }], index: [{
                type: Input
            }], edit: [{
                type: Input
            }], delete: [{
                type: Input
            }], customClass: [{
                type: Input
            }], nextComponentColor: [{
                type: Input
            }], _mainContainer: [{
                type: ViewChild,
                args: ['mainContainer']
            }], getScreenSize: [{
                type: HostListener,
                args: ["window: resize"]
            }] } });
//# sourceMappingURL=data:application/json;base64, 