import { Component, Input } from '@angular/core';
import { BackgroundDirective } from '../../directive/background-directive';
import { HoverDirective } from '../../directive/hover-element-directive';
import BaseSection from '../BaseSection';
import { SvgDividerComponent } from '../../elements/svg-divider/svg-divider.component';
import { SimpoComponentModule } from '../../components/index';
import { CommonModule } from '@angular/common';
import { OverlayDirective } from '../../directive/overlay-directive';
import { SpacingHorizontalDirective } from '../../directive/spacing-horizontal.directive';
import { AnimationDirective } from '../../directive/animation-directive';
import { ContentTitleDirective } from '../../directive/content-title-spacing.directive';
import { TextEditorComponent } from '../../elements/text-editor/text-editor.component';
import { CornerDirective } from '../../directive/corner-directive';
import { BorderDirective } from '../../directive/border-directive';
import { PositionLayoutDirectiveDirective } from '../../directive/position-layout-directive.directive';
import { ContentFitDirective } from '../../directive/content-fit-directive';
import { SimpoContainerAligment } from '../../directive/container-alignment.directive';
import * as i0 from "@angular/core";
import * as i1 from "../../components/hover-elements/hover-elements.component";
import * as i2 from "../../components/delete-hover-element/delete-hover-element.component";
import * as i3 from "@angular/common";
export class FaqColumnsCardsComponent extends BaseSection {
    constructor() {
        super();
    }
    ngOnInit() {
        this.content = this.data?.content;
        this.style = this.data?.styles;
    }
    get headingSpace() {
        return this.style?.layout.headingSpacing;
    }
    get stylesLayout() {
        return { ...this.style?.layout };
    }
    getLayout() {
        if (this.style?.layout?.align == 'left')
            return 'justify-content-start';
        if (this.style?.layout?.align == 'center')
            return 'justify-content-center';
        if (this.style?.layout?.align == 'right')
            return 'justify-content-end';
        return 'justify-content-center';
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FaqColumnsCardsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FaqColumnsCardsComponent, isStandalone: true, selector: "simpo-faq-columns-cards", inputs: { data: "data", customClass: "customClass", index: "index", delete: "delete", edit: "edit", nextComponentColor: "nextComponentColor" }, usesInheritance: true, ngImport: i0, template: "<section class=\"faq-section total-container\" [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover\r\n    (hovering)=\"showEditTabs($event)\" [attr.style]=\"customClass\" [simpoBorder]=\"style?.border\">\r\n    <div class=\"main-section\" #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\"\r\n        [spacingHorizontal]=\"stylesLayout\" [simpoAnimation]=\"style?.animation\"\r\n        [simpoPositionLayoutDirective]=\"style?.positionLayout\" [simpoLayout]=\"style?.layout\">\r\n        <div class=\"row w-100\" [id]=\"data?.id\" [simpoContainerAlignment]=\"stylesLayout\" [class]=\"getLayout()\">\r\n            <div *ngFor=\"let text of data?.content?.inputText; let i = index\" class=\"w-100 mb-3\" [id]=\"data?.id\"\r\n                [simpoContentTitleSpace]=\"headingSpace\">\r\n                <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"faq-container\">\r\n                <div class=\"faq-card\" *ngFor=\"let itemData of content?.listItem?.data; let i = index\" [simpoCorner]=\"style?.corners\"\r\n                    [ngStyle]=\"{'background' : data?.styles?.background?.accentBackgroundType == 'Gradient' ? 'linear-gradient(90deg, ' + data?.styles?.background?.accentColor + ', ' + data?.styles?.background?.secondaryAccentColor + ')' : data?.styles?.background?.accentColor}\">\r\n                    <div class=\"w-100 mb-3\">\r\n                        <simpo-text-editor [(value)]=\"itemData.inputText[0].value\"\r\n                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"itemData.inputText[0]?.isRTE\"></simpo-text-editor>\r\n                    </div>\r\n                    <!-- <h3>How do I become a webmaster?</h3> -->\r\n                    <div class=\"w-100\">\r\n                        <simpo-text-editor [(value)]=\"itemData.inputText[1].value\"\r\n                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"1\" [itemIndex]=\"i\" [isRTE]=\"itemData.inputText[1]?.isRTE\"></simpo-text-editor>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\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}.faq-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(335px,1fr));gap:20px}.faq-card{border:1px solid #e2e8f0;padding:20px;transition:.3s ease;color:#0f172a}.faq-card:hover{box-shadow:0 4px 12px #0000000d}.faq-card p{font-size:14px;color:#64748b;line-height:1.5}@media (max-width: 992px){.faq-container{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.faq-container{grid-template-columns:1fr}}\n"], dependencies: [{ kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i1.HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: i2.DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: SvgDividerComponent, selector: "simpo-svg-divider", inputs: ["dividerType", "color"] }, { 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: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: ContentTitleDirective, selector: "[simpoContentTitleSpace]", inputs: ["simpoContentTitleSpace"] }, { kind: "component", type: TextEditorComponent, selector: "simpo-text-editor", inputs: ["value", "editable", "isRTE", "sectionId", "label", "type", "inputTextIndex", "itemIndex"], outputs: ["valueChange"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: PositionLayoutDirectiveDirective, selector: "[simpoPositionLayoutDirective]", inputs: ["simpoPositionLayoutDirective"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: SimpoContainerAligment, selector: "[simpoContainerAlignment]", inputs: ["simpoContainerAlignment"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FaqColumnsCardsComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-faq-columns-cards', standalone: true, imports: [
                        BackgroundDirective,
                        SimpoComponentModule,
                        CommonModule,
                        SvgDividerComponent,
                        HoverDirective,
                        OverlayDirective,
                        SpacingHorizontalDirective,
                        AnimationDirective,
                        ContentTitleDirective,
                        TextEditorComponent,
                        CornerDirective,
                        PositionLayoutDirectiveDirective,
                        ContentFitDirective,
                        BorderDirective,
                        SimpoContainerAligment
                    ], template: "<section class=\"faq-section total-container\" [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover\r\n    (hovering)=\"showEditTabs($event)\" [attr.style]=\"customClass\" [simpoBorder]=\"style?.border\">\r\n    <div class=\"main-section\" #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\"\r\n        [spacingHorizontal]=\"stylesLayout\" [simpoAnimation]=\"style?.animation\"\r\n        [simpoPositionLayoutDirective]=\"style?.positionLayout\" [simpoLayout]=\"style?.layout\">\r\n        <div class=\"row w-100\" [id]=\"data?.id\" [simpoContainerAlignment]=\"stylesLayout\" [class]=\"getLayout()\">\r\n            <div *ngFor=\"let text of data?.content?.inputText; let i = index\" class=\"w-100 mb-3\" [id]=\"data?.id\"\r\n                [simpoContentTitleSpace]=\"headingSpace\">\r\n                <simpo-text-editor [(value)]=\"text.value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"i\" [isRTE]=\"text.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"faq-container\">\r\n                <div class=\"faq-card\" *ngFor=\"let itemData of content?.listItem?.data; let i = index\" [simpoCorner]=\"style?.corners\"\r\n                    [ngStyle]=\"{'background' : data?.styles?.background?.accentBackgroundType == 'Gradient' ? 'linear-gradient(90deg, ' + data?.styles?.background?.accentColor + ', ' + data?.styles?.background?.secondaryAccentColor + ')' : data?.styles?.background?.accentColor}\">\r\n                    <div class=\"w-100 mb-3\">\r\n                        <simpo-text-editor [(value)]=\"itemData.inputText[0].value\"\r\n                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"itemData.inputText[0]?.isRTE\"></simpo-text-editor>\r\n                    </div>\r\n                    <!-- <h3>How do I become a webmaster?</h3> -->\r\n                    <div class=\"w-100\">\r\n                        <simpo-text-editor [(value)]=\"itemData.inputText[1].value\"\r\n                            [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"1\" [itemIndex]=\"i\" [isRTE]=\"itemData.inputText[1]?.isRTE\"></simpo-text-editor>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n        </div>\r\n    </div>\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}.faq-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(335px,1fr));gap:20px}.faq-card{border:1px solid #e2e8f0;padding:20px;transition:.3s ease;color:#0f172a}.faq-card:hover{box-shadow:0 4px 12px #0000000d}.faq-card p{font-size:14px;color:#64748b;line-height:1.5}@media (max-width: 992px){.faq-container{grid-template-columns:repeat(2,1fr)}}@media (max-width: 600px){.faq-container{grid-template-columns:1fr}}\n"] }]
        }], ctorParameters: () => [], propDecorators: { data: [{
                type: Input
            }], customClass: [{
                type: Input
            }], index: [{
                type: Input
            }], delete: [{
                type: Input
            }], edit: [{
                type: Input
            }], nextComponentColor: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 