import { CommonModule } from '@angular/common';
import { Component, Input } from '@angular/core';
import { HoverDirective } from '../../directive/hover-element-directive';
import BaseSection from '../BaseSection';
import { BackgroundDirective } from '../../directive/background-directive';
import { OverlayDirective } from '../../directive/overlay-directive';
import { BorderDirective } from '../../directive/border-directive';
import { AnimationDirective } from '../../directive/animation-directive';
import { PositionLayoutDirectiveDirective } from '../../directive/position-layout-directive.directive';
import { ContentFitDirective } from '../../directive/content-fit-directive';
import { HoverElementsComponent } from "../../components/hover-elements/hover-elements.component";
import { DeleteHoverElementComponent } from "../../components/delete-hover-element/delete-hover-element.component";
import { ObjectPositionDirective } from '../../directive/image-position.directive';
import { CornerDirective } from '../../directive/corner-directive';
import { ImageDirectiveDirective } from '../../directive/image-directive.directive';
import { SimpoButtonComponent } from '../../elements/simpo-button/simpo-button.component';
import { MatIcon } from '@angular/material/icon';
import { ButtonDirectiveDirective } from '../../directive/button-directive.directive';
import { ColorDirective } from '../../directive/color.directive';
import { ContentTitleDirective } from '../../directive/content-title-spacing.directive';
import { SanitizeHtmlPipe } from '../../services/sanitizeHtml';
import { SvgDividerComponent } from '../../elements/svg-divider/svg-divider.component';
import { TextEditorComponent } from '../../elements/text-editor/text-editor.component';
import { ImageEditorDirective } from '../../directive/image-editor.directive';
import { SpacingHorizontalDirective } from '../../directive/spacing-horizontal.directive';
import { PricingS1Component } from '../../elements/pricing-s1/pricing-s1.component';
import { ButtonEditorDirective } from '../../directive/button-editor.directive';
import * as i0 from "@angular/core";
import * as i1 from "../../services/events.service";
import * as i2 from "@angular/common";
export class PricingSectionComponent extends BaseSection {
    constructor(_eventService) {
        super();
        this._eventService = _eventService;
    }
    ngOnInit() {
        this.content = this.data?.content;
        this.style = this.data?.styles;
        this.deleteSelected = this.delete;
        this.button = this.data?.action.buttons[0];
    }
    get stylesLayout() {
        return { ...this.style?.layout };
    }
    getTextColor() {
        let bgColor = this.style?.background.color || '#FFFFFF';
        const threshold = 130;
        const r = parseInt(bgColor.slice(1, 3), 16);
        const g = parseInt(bgColor.slice(3, 5), 16);
        const b = parseInt(bgColor.slice(5, 7), 16);
        const brightness = (r * 299 + g * 587 + b * 114) / 1000;
        return brightness > threshold ? '#000000' : '#ffffff';
    }
    get headingSpace() {
        return this.style?.layout.headingSpacing;
    }
    getButtonId() {
        return this.button?.id ?? "";
    }
    editSection() {
        if (window.innerWidth <= 475)
            return;
        this._eventService.toggleEditorEvent.emit(false);
        setTimeout(() => {
            this._eventService.editSection.emit({ data: this.data });
        }, 100);
    }
    redirectTo(data) {
        if (!data?.pageId && !data?.redirectionUrl)
            return;
        this._eventService.buttonRedirection.emit({ data: data });
    }
    getClass() {
        if (this.content?.listItem?.data?.length === 1) {
            return 'col-12';
        }
        else if (this.content?.listItem?.data?.length === 2) {
            return 'col-6';
        }
        else if (this.content?.listItem?.data?.length === 3) {
            return 'col-4';
        }
        else if (this.content?.listItem?.data?.length === 4) {
            return 'col-3';
        }
        else {
            return 'col-3';
        }
    }
    getAlignment() {
        switch (this.style?.layout?.align) {
            case 'left':
                return 'justify-content-start';
            case 'right':
                return 'justify-content-end';
            case 'center':
                return 'justify-content-center';
            default:
                return 'justify-content-start';
        }
    }
    static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PricingSectionComponent, deps: [{ token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Component }); }
    static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PricingSectionComponent, isStandalone: true, selector: "simpo-pricing-section", inputs: { data: "data", index: "index", edit: "edit", customClass: "customClass", delete: "delete", nextComponentColor: "nextComponentColor" }, usesInheritance: true, ngImport: i0, template: "<section [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n  class=\"total-container\" [attr.style]=\"customClass\">\r\n  <div #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\" [spacingHorizontal]=\"stylesLayout\">\r\n    <div class=\"container-fluid\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\" [simpoLayout]=\"style?.layout\">\r\n      <div class=\"row w-100\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\">\r\n        <div [simpoContentTitleSpace]=\"headingSpace\">\r\n          <ng-container *ngFor=\"let text of data?.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 class=\"heading-large content-side\" [simpoContentTitleSpace]=\"headingSpace\" [innerHTML]=\"text.value | sanitizeHtml\"></div> -->\r\n        </div>\r\n        <div class=\"pricing-options row\" *ngIf=\"style?.pricingStyle =='STYLE1'\">\r\n          <div [id]=\"data?.id\" [simpoCorner]=\"style?.corners\" *ngFor=\"let options of content?.listItem?.data; let i = index\"\r\n            [ngStyle]=\"{'border': options?.highlight?.highlighted === true ? '3px solid ' + data?.styles?.background?.accentColor : ''}\"\r\n            [attr.class]=\"getClass() + ' position-relative'\">\r\n            <img loading=\"lazy\" class=\"image w-100\" *ngIf=\"content?.display?.showImage === true\"\r\n              [simpoImageDirective]=\"style?.image\" [id]=\"data?.id\" [simpoObjectPosition]=\"options.image.position\"\r\n              [simpoCorner]=\"style?.corners\" [src]=\"options.image.url \" alt=\"\" loading=\"lazy\"\r\n              [appImageEditor]=\"edit || false\" [imageData]=\"options?.image\" [sectionId]=\"data?.id\" [itemIndex]=\"i\"\r\n              [class]=\"data?.id+(options?.image?.id || '')\">\r\n            <div class=\"highlight-label\" *ngIf=\"options?.highlight?.highlighted === true\"\r\n              [ngStyle]=\"{'background-color': data?.styles?.background?.accentColor}\" [simpoColor]=\"getTextColor()\"\r\n              [simpoCorner]=\"style?.corners\">\r\n              <simpo-text-editor [(value)]=\"options.highlight.label\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [itemIndex]=\"i\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"heading-small\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[0].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[0]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"heading-large price\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[2].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"2\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[2]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"body-desc\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[3].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"3\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[3]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n\r\n            <div class=\"btn\" *ngIf=\"content?.display?.showButton === true\">\r\n              <!-- <button class=\"button\" simpoButtonDirective [id]=\"data?.id+(button?.id || '')\" [buttonStyle]=\"button?.styles\" [color]=\"data?.styles?.background?.accentColor\" [backgroundInfo]=\"style?.background\" (click)=\"redirectTo()\">{{options?.button?.label}}</button> -->\r\n              <button [buttonData]=\"options?.button\" [buttonStyle]=\"button?.styles\" simpoButtonDirective\r\n                [id]=\"data?.id+(button?.id || '')\" [sectionId]=\"data?.id\"\r\n                class=\"d-flex gap-1 align-items-center justify-content-center\"\r\n                [color]=\"data?.styles?.background?.accentColor\" [backgroundInfo]=\"data?.styles?.background\"\r\n                [appButtonEditor]=\"edit ?? false\" [buttonId]=\"getButtonId()\" [itemIndex]=\"i\" (click)=\"redirectTo(options?.button)\"\r\n                [class.flex-row-reverse]=\"options?.button?.icon?.iconPosition === 'left'\">\r\n                <div>{{options?.button?.label}}</div>\r\n                <div class=\"btn-icon\" *ngIf=\"options?.button?.showIcon \" [ngStyle]=\"{\r\n                    'background': button?.styles?.type == 'Text' ? button?.styles?.background : button?.styles?.textColor,\r\n                    'mask-image': 'url(' + options?.button?.icon?.url + ')',\r\n                    'mask-repeat': 'no-repeat',\r\n                    'mask-size': 'cover',\r\n                    'width': '25px',\r\n                    'height': '25px',\r\n                  }\">\r\n                </div>\r\n              </button>\r\n            </div>\r\n            <div class=\"body-desc description\" *ngIf=\"content?.display?.showContent === true\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[1].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"1\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[1]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"body-desc content-options\" *ngIf=\"content?.display?.showIncludeditems\">\r\n              <div class=\"d-flex gap-15\" *ngFor=\"let content of options.additionalData; let j = index\">\r\n                <mat-icon>check</mat-icon><simpo-text-editor [(value)]=\"content.content\"\r\n                  [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"j\" [itemIndex]=\"i\"></simpo-text-editor>\r\n                <!-- {{content.content}} -->\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div *ngIf=\"style?.pricingStyle =='STYLE2'\">\r\n          <simpo-pricing-s1 [data]=\"data\" [edit]=\"edit\"></simpo-pricing-s1>\r\n        </div>\r\n        <div [attr.class]=\"getAlignment() + ' mt-3 w-100 d-flex gap-2'\" *ngIf=\"data?.action?.display\">\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\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: [".hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.container-fluid{height:auto;padding:6rem 3rem}.pricing-options{width:100%;justify-content:center!important}.individual-options{border:1.5px solid;display:flex;flex-direction:column;align-items:center;padding:30px 10px;margin-top:6rem;margin-bottom:3rem;width:25%}.individual-options-3{width:32%}.individual-options-3 .btn{width:95%}.btn{width:97%;border:none;box-shadow:none}.individual-options-2{width:40%}.individual-options-1{width:75%}.individual-options-1 .btn{width:95%}.highlighted-option{margin-top:1rem;margin-bottom:0rem;padding-top:7rem;height:auto;border:3px solid}.highlighted-option .heading-small{padding-top:5px}.heading-small{padding:15px 5px;text-align:left;font-size:24px;width:94%}.price,.body-desc{text-align:left;width:89%}.description{line-height:30px;padding-top:11px}.content-options{padding-top:20px}.gap-15{gap:15px;padding:.75rem 0}.highlight-label{right:-2px;padding:5px 17px;display:flex;align-items:flex-start;flex-direction:column;width:auto;position:absolute;top:0;border-top-left-radius:0!important;border-bottom-right-radius:0!important}.button{margin-top:2rem;margin-bottom:.25rem;font-size:17px!important;padding:.75rem 0}.pricing-package{margin-top:10px;width:90%;margin-bottom:10px}@media only screen and (max-width: 475px){.container-fluid{padding:6rem 1rem}.pricing-options{flex-direction:column}.individual-options,.highlighted-option{width:100%;margin-top:1rem;margin-bottom:1rem;padding:2rem}.button{white-space:nowrap!important;margin-top:2.5rem;margin-bottom:2rem}.btn{width:106%}.highlight-label{margin-left:4px}.price{margin-top:10px;width:97%}.body-desc{width:97%}:is(.individual-options-1,.individual-options-2,.individual-options-3) .btn{width:100%}.image{width:100%!important}.heading-small{width:100%}.content-options{padding-top:10px}}\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: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground", "scrollValue"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "component", type: HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions", "isMerged", "isEcommerce"], outputs: ["edit"] }, { kind: "component", type: DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "directive", type: ObjectPositionDirective, selector: "[simpoObjectPosition]", inputs: ["simpoObjectPosition"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: ImageDirectiveDirective, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "buttonId", "color", "sectionId", "edit", "backgroundInfo", "disabled", "loading", "isFullWidth"] }, { kind: "component", type: TextEditorComponent, selector: "simpo-text-editor", inputs: ["value", "editable", "isRTE", "sectionId", "label", "type", "inputTextIndex", "itemIndex"], outputs: ["valueChange"] }, { kind: "directive", type: ButtonDirectiveDirective, selector: "[simpoButtonDirective]", inputs: ["buttonStyle", "color", "scrollValue", "backgroundInfo"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: ColorDirective, selector: "[simpoColor]", inputs: ["simpoColor"] }, { kind: "directive", type: ContentTitleDirective, selector: "[simpoContentTitleSpace]", inputs: ["simpoContentTitleSpace"] }, { kind: "component", type: SvgDividerComponent, selector: "simpo-svg-divider", inputs: ["dividerType", "color"] }, { kind: "directive", type: ImageEditorDirective, selector: "[appImageEditor]", inputs: ["appImageEditor", "imageData", "sectionId", "showIcon", "iconData", "itemIndex"] }, { kind: "directive", type: SpacingHorizontalDirective, selector: "[spacingHorizontal]", inputs: ["spacingHorizontal", "isHeader"] }, { kind: "component", type: PricingS1Component, selector: "simpo-pricing-s1", inputs: ["data", "edit"] }, { kind: "directive", type: ButtonEditorDirective, selector: "button[appButtonEditor]", inputs: ["appButtonEditor", "buttonData", "buttonStyle", "backgroundInfo", "sectionId", "buttonId", "itemIndex"] }] }); }
}
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PricingSectionComponent, decorators: [{
            type: Component,
            args: [{ selector: 'simpo-pricing-section', standalone: true, imports: [CommonModule,
                        HoverDirective,
                        BackgroundDirective,
                        OverlayDirective,
                        BorderDirective,
                        AnimationDirective,
                        PositionLayoutDirectiveDirective,
                        ContentFitDirective,
                        HoverElementsComponent,
                        DeleteHoverElementComponent,
                        ObjectPositionDirective,
                        CornerDirective,
                        ImageDirectiveDirective,
                        SimpoButtonComponent,
                        TextEditorComponent,
                        ButtonDirectiveDirective,
                        MatIcon, ColorDirective,
                        ContentTitleDirective,
                        SanitizeHtmlPipe, SvgDividerComponent,
                        ImageEditorDirective, SpacingHorizontalDirective,
                        PricingS1Component,
                        ButtonEditorDirective
                    ], template: "<section [id]=\"data?.id\" [simpoBackground]=\"style?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n  class=\"total-container\" [attr.style]=\"customClass\">\r\n  <div #mainContainer [id]=\"data?.id\" [simpoOverlay]=\"style?.background\" [spacingHorizontal]=\"stylesLayout\">\r\n    <div class=\"container-fluid\" [id]=\"data?.id\" [simpoBorder]=\"style?.border\" [simpoLayout]=\"style?.layout\">\r\n      <div class=\"row w-100\" [id]=\"data?.id\" [simpoAnimation]=\"style?.animation\">\r\n        <div [simpoContentTitleSpace]=\"headingSpace\">\r\n          <ng-container *ngFor=\"let text of data?.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 class=\"heading-large content-side\" [simpoContentTitleSpace]=\"headingSpace\" [innerHTML]=\"text.value | sanitizeHtml\"></div> -->\r\n        </div>\r\n        <div class=\"pricing-options row\" *ngIf=\"style?.pricingStyle =='STYLE1'\">\r\n          <div [id]=\"data?.id\" [simpoCorner]=\"style?.corners\" *ngFor=\"let options of content?.listItem?.data; let i = index\"\r\n            [ngStyle]=\"{'border': options?.highlight?.highlighted === true ? '3px solid ' + data?.styles?.background?.accentColor : ''}\"\r\n            [attr.class]=\"getClass() + ' position-relative'\">\r\n            <img loading=\"lazy\" class=\"image w-100\" *ngIf=\"content?.display?.showImage === true\"\r\n              [simpoImageDirective]=\"style?.image\" [id]=\"data?.id\" [simpoObjectPosition]=\"options.image.position\"\r\n              [simpoCorner]=\"style?.corners\" [src]=\"options.image.url \" alt=\"\" loading=\"lazy\"\r\n              [appImageEditor]=\"edit || false\" [imageData]=\"options?.image\" [sectionId]=\"data?.id\" [itemIndex]=\"i\"\r\n              [class]=\"data?.id+(options?.image?.id || '')\">\r\n            <div class=\"highlight-label\" *ngIf=\"options?.highlight?.highlighted === true\"\r\n              [ngStyle]=\"{'background-color': data?.styles?.background?.accentColor}\" [simpoColor]=\"getTextColor()\"\r\n              [simpoCorner]=\"style?.corners\">\r\n              <simpo-text-editor [(value)]=\"options.highlight.label\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [itemIndex]=\"i\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"heading-small\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[0].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"0\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[0]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"heading-large price\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[2].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"2\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[2]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"body-desc\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[3].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"3\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[3]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n\r\n            <div class=\"btn\" *ngIf=\"content?.display?.showButton === true\">\r\n              <!-- <button class=\"button\" simpoButtonDirective [id]=\"data?.id+(button?.id || '')\" [buttonStyle]=\"button?.styles\" [color]=\"data?.styles?.background?.accentColor\" [backgroundInfo]=\"style?.background\" (click)=\"redirectTo()\">{{options?.button?.label}}</button> -->\r\n              <button [buttonData]=\"options?.button\" [buttonStyle]=\"button?.styles\" simpoButtonDirective\r\n                [id]=\"data?.id+(button?.id || '')\" [sectionId]=\"data?.id\"\r\n                class=\"d-flex gap-1 align-items-center justify-content-center\"\r\n                [color]=\"data?.styles?.background?.accentColor\" [backgroundInfo]=\"data?.styles?.background\"\r\n                [appButtonEditor]=\"edit ?? false\" [buttonId]=\"getButtonId()\" [itemIndex]=\"i\" (click)=\"redirectTo(options?.button)\"\r\n                [class.flex-row-reverse]=\"options?.button?.icon?.iconPosition === 'left'\">\r\n                <div>{{options?.button?.label}}</div>\r\n                <div class=\"btn-icon\" *ngIf=\"options?.button?.showIcon \" [ngStyle]=\"{\r\n                    'background': button?.styles?.type == 'Text' ? button?.styles?.background : button?.styles?.textColor,\r\n                    'mask-image': 'url(' + options?.button?.icon?.url + ')',\r\n                    'mask-repeat': 'no-repeat',\r\n                    'mask-size': 'cover',\r\n                    'width': '25px',\r\n                    'height': '25px',\r\n                  }\">\r\n                </div>\r\n              </button>\r\n            </div>\r\n            <div class=\"body-desc description\" *ngIf=\"content?.display?.showContent === true\">\r\n              <simpo-text-editor [(value)]=\"options.inputText[1].value\" [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"1\" [itemIndex]=\"i\" [isRTE]=\"options.inputText[1]?.isRTE\"></simpo-text-editor>\r\n            </div>\r\n            <div class=\"body-desc content-options\" *ngIf=\"content?.display?.showIncludeditems\">\r\n              <div class=\"d-flex gap-15\" *ngFor=\"let content of options.additionalData; let j = index\">\r\n                <mat-icon>check</mat-icon><simpo-text-editor [(value)]=\"content.content\"\r\n                  [editable]=\"edit || false\" [sectionId]=\"data?.id\" [inputTextIndex]=\"j\" [itemIndex]=\"i\"></simpo-text-editor>\r\n                <!-- {{content.content}} -->\r\n              </div>\r\n            </div>\r\n          </div>\r\n        </div>\r\n        <div *ngIf=\"style?.pricingStyle =='STYLE2'\">\r\n          <simpo-pricing-s1 [data]=\"data\" [edit]=\"edit\"></simpo-pricing-s1>\r\n        </div>\r\n        <div [attr.class]=\"getAlignment() + ' mt-3 w-100 d-flex gap-2'\" *ngIf=\"data?.action?.display\">\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\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: [".hover_effect{position:unset;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.container-fluid{height:auto;padding:6rem 3rem}.pricing-options{width:100%;justify-content:center!important}.individual-options{border:1.5px solid;display:flex;flex-direction:column;align-items:center;padding:30px 10px;margin-top:6rem;margin-bottom:3rem;width:25%}.individual-options-3{width:32%}.individual-options-3 .btn{width:95%}.btn{width:97%;border:none;box-shadow:none}.individual-options-2{width:40%}.individual-options-1{width:75%}.individual-options-1 .btn{width:95%}.highlighted-option{margin-top:1rem;margin-bottom:0rem;padding-top:7rem;height:auto;border:3px solid}.highlighted-option .heading-small{padding-top:5px}.heading-small{padding:15px 5px;text-align:left;font-size:24px;width:94%}.price,.body-desc{text-align:left;width:89%}.description{line-height:30px;padding-top:11px}.content-options{padding-top:20px}.gap-15{gap:15px;padding:.75rem 0}.highlight-label{right:-2px;padding:5px 17px;display:flex;align-items:flex-start;flex-direction:column;width:auto;position:absolute;top:0;border-top-left-radius:0!important;border-bottom-right-radius:0!important}.button{margin-top:2rem;margin-bottom:.25rem;font-size:17px!important;padding:.75rem 0}.pricing-package{margin-top:10px;width:90%;margin-bottom:10px}@media only screen and (max-width: 475px){.container-fluid{padding:6rem 1rem}.pricing-options{flex-direction:column}.individual-options,.highlighted-option{width:100%;margin-top:1rem;margin-bottom:1rem;padding:2rem}.button{white-space:nowrap!important;margin-top:2.5rem;margin-bottom:2rem}.btn{width:106%}.highlight-label{margin-left:4px}.price{margin-top:10px;width:97%}.body-desc{width:97%}:is(.individual-options-1,.individual-options-2,.individual-options-3) .btn{width:100%}.image{width:100%!important}.heading-small{width:100%}.content-options{padding-top:10px}}\n"] }]
        }], ctorParameters: () => [{ type: i1.EventsService }], propDecorators: { data: [{
                type: Input
            }], index: [{
                type: Input
            }], edit: [{
                type: Input
            }], customClass: [{
                type: Input
            }], delete: [{
                type: Input
            }], nextComponentColor: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64, 