import { __decorate } from "tslib";
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { ewFontFamilyTypes } from '../../../constants/webinar-event-codes';
let RegisterFormButtonSidebarComponent = class RegisterFormButtonSidebarComponent {
    /**
     * constructor
     */
    constructor() {
        /**
         * Current Preview Layout
         */
        this.currentPreviewLayout = "desktop";
        /**
         * Font Familty options constant
         */
        this.fontFamilyOptions = ewFontFamilyTypes;
        this.topMarginWebMobileBind = true;
        this.btnTxtFontSizeWebMobileBind = true;
        this.subTxtSizeWebMobileBind = true;
        /**
         * Output
         * @param Event
         */
        this.onSidebarBackClick = new EventEmitter();
        this.callParentContainer = new EventEmitter();
    }
    /**
     * NgOnint hook
     */
    ngOnInit() {
    }
    /**
     * Get the current value of Preview Layout style
     */
    ngDoCheck() {
        this.currentPreviewLayout = localStorage.getItem('currentPreviewLayout');
    }
    /*
    * OnChange of Color Picker
      */
    changeColorPicker(event) {
        this.model.meta_data.reg_form_button_bg_color = event;
    }
    /*
    * OnChange of Box BG Color Picker
      */
    changeBoxBGColorPicker(event) {
        this.model.meta_data.box_background_color = event;
    }
    /*
    * close the sidebar
    * @param type:option param
    */
    sidebarBack(type) {
        this.onSidebarBackClick.emit(type);
    }
    /*
    * Checking the value is undefined or not
    */
    isUndefined(val) { return typeof val === 'undefined'; }
    callElementContainer(data) {
        // this.callParentContainer.emit(data);
    }
    resetIconStyle(event) {
        this.model.meta_data.icon_size = 'small';
        this.model.meta_data.icon_position = 'ew-icon-position-before';
        this.model.meta_data.icon_margin_between = 5;
    }
};
__decorate([
    Input()
], RegisterFormButtonSidebarComponent.prototype, "model", void 0);
__decorate([
    Output()
], RegisterFormButtonSidebarComponent.prototype, "onSidebarBackClick", void 0);
__decorate([
    Output()
], RegisterFormButtonSidebarComponent.prototype, "callParentContainer", void 0);
RegisterFormButtonSidebarComponent = __decorate([
    Component({
        selector: 'ew-element-register-form-button-sidebar',
        template: "<div class=\"elemets-ew-sidebar\" >\r\n    <div class=\"mat-widget-header tab-toggle-ew\">\r\n        <span class=\"title-content-ew\">{{ 'DESIGN.POPUP_SIDEBAR_LABEL' | translate }}</span>\r\n        \r\n        <span class=\"btn-editor-save ew-sidebar-close-btn\"  (click)=\"sidebarBack('builderPage')\">\r\n            <button class=\"small-button-ew green base\" mat-flat-button color=\"accent\">{{ 'DESIGN.DONE' | translate }}</button>\r\n        </span>\r\n    </div>\r\n    <div class=\"elements-outer-sec-scroll   mat-toggle-multiple\">\r\n        <mat-button-toggle-group name=\"fontStyle\"  #tabOptions=\"matButtonToggleGroup\" aria-label=\"Font Style\">\r\n            <mat-button-toggle value=\"setting\" checked>{{ 'BUILDER.ELEMENTS.TABS.SETTINGS' | translate }}</mat-button-toggle>\r\n            <mat-button-toggle value=\"advanced\">{{ 'BUILDER.ELEMENTS.TABS.ADVANCED' | translate }}</mat-button-toggle>\r\n        </mat-button-toggle-group>\r\n      \r\n\r\n        <div class=\" setting-tab\" *ngIf=\"tabOptions.value == 'setting'\">\r\n            <ew-element-show-hide [model]=\"model\" (callSideBar)=\"callElementContainer($event)\" ></ew-element-show-hide>\r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.MARGIN_LABEL' | translate}}</span></div>\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\" *ngIf=\"(this.currentPreviewLayout=='desktop')\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.TOP_MARGIN' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_margin_top\"  (input)=\"(model?.meta_data.reg_form_button_margin_top=$event.value); \"  min=\"10\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        <!--(topMarginWebMobileBind && model.meta_data.mobile_reg_form_button_margin_top = $event.value)-->\r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_margin_top}} PX</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row \" *ngIf=\"(this.currentPreviewLayout=='mobile')\"> <!--padding-elements-30-top ew-mobile-property-bind [ngClass]=\"{'ew-mobile-bind-active' : topMarginWebMobileBind == false}\"-->\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.MOBILE_MARGIN' | translate }}</span>\r\n                        <!--<mat-icon (click)=\"topMarginWebMobileBind = false\" class=\"ew-on-property\">insert_link</mat-icon>\r\n                        <mat-icon (click)=\"topMarginWebMobileBind = true; model.meta_data.mobile_reg_form_button_margin_top = model.meta_data.reg_form_button_margin_top\" class=\"ew-off-property\">link_off</mat-icon>\r\n                    </span>-->\r\n                    <div class=\"mat-slider-outer-part common-builder-right slider-2-digit \"> <!--opacity-pointer-event-->\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.mobile_reg_form_button_margin_top\" (input)=\"model.meta_data.mobile_reg_form_button_margin_top = $event.value\"\r\n                                min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.mobile_reg_form_button_margin_top }} PX\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\" *ngIf=\"(this.currentPreviewLayout=='desktop')\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.WIDTH' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right \">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_width\"  (input)=\"(model?.meta_data.reg_form_button_width=$event.value)\"  min=\"0\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        \r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_width}} %</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\" *ngIf=\"(this.currentPreviewLayout=='desktop')\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.ALIGN' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.reg_form_button_box_align\">\r\n                                <mat-option value=\"left\">Left</mat-option>\r\n                                <mat-option value=\"center\">Center</mat-option>\r\n                                <mat-option value=\"right\">Right</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <!-- <div class=\"builder-elements-outer ew-mobile-elements \">\r\n                <div class=\"element-builder-row\">\r\n                    <div class=\"ew-mobile-setting\">\r\n                        <span class=\"builder-elements-name\"><span class=\"mobile-icon-title\"><mat-icon>smartphone</mat-icon>Mobile</span>Top Margin</span>\r\n                        <div class=\"mat-slider-outer-part common-builder-right slider-2-digit\">\r\n    \r\n                            <span class=\"mat-slider-inner\">\r\n                                <mat-slider [value]=\"model?.meta_data.mobile_reg_form_button_margin_top\" (input)=\"model.meta_data.mobile_reg_form_button_margin_top = $event.value\"\r\n                                    min=\"0\" max=\"100\" step=\"1\">\r\n                                </mat-slider>\r\n                            </span>\r\n                            <span class=\"value-count-slider\">\r\n                                {{ model?.meta_data.mobile_reg_form_button_margin_top }} PX\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div> -->\r\n            \r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.BUTTON' | translate }}</span></div>\r\n            <div class=\"builder-elements-outer\">\r\n                <ew-control-google-fonts-select\r\n                    [fontControlName]=\"'reg_form_button_inputs_fonts'\"\r\n                    [variantControlName]=\"'font_variant'\"\r\n                    [model]=\"model?.meta_data\"\r\n                ></ew-control-google-fonts-select>\r\n                <!-- <div class=\"element-builder-row \">\r\n                    <span class=\"builder-elements-name\">Font Family</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.reg_form_button_inputs_fonts\">\r\n                                <mat-option *ngFor=\"let n of fontFamilyOptions\" [value]=\"n.fontvalue\">\r\n                                    {{ n.fontName }}\r\n                                </mat-option>\r\n                            </mat-select>\r\n                            \r\n                        </mat-form-field>\r\n                    </div>\r\n                </div> -->\r\n\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BUTTON_TEXT' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel  builder-input-fields\">\r\n                            <input matInput  [(ngModel)]=\"model?.meta_data.reg_form_button_text\">\r\n                        </mat-form-field>                        \r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BUTTON_SUB_TEXT' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel builder-input-fields\">\r\n                            <input matInput  [(ngModel)]=\"model?.meta_data.reg_form_button_sub_text\">\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row  padding-elements-30-top\" *ngIf=\"(this.currentPreviewLayout=='desktop')\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.FONT_SIZE' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right \">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_font_size\"  (input)=\"(model?.meta_data.reg_form_button_font_size=$event.value);\"  min=\"0\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        <!-- (btnTxtFontSizeWebMobileBind && model.meta_data.reg_form_button_mobile_font_size = $event.value)-->\r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_font_size}} PX</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top \" *ngIf=\"(this.currentPreviewLayout=='mobile')\"> <!--ew-mobile-property-bind [ngClass]=\"{'ew-mobile-bind-active' : btnTxtFontSizeWebMobileBind == false}\"-->\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.MOBILE_FONT_SIZE' | translate }}</span>\r\n                       <!--<mat-icon (click)=\"btnTxtFontSizeWebMobileBind = false\" class=\"ew-on-property\">insert_link</mat-icon>\r\n                        <mat-icon (click)=\"btnTxtFontSizeWebMobileBind = true; model.meta_data.reg_form_button_mobile_font_size = model.meta_data.reg_form_button_font_size\" class=\"ew-off-property\">link_off</mat-icon>\r\n                    </span> -->\r\n                    <div class=\"mat-slider-outer-part common-builder-right slider-2-digit \"> <!--opacity-pointer-event-->\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_mobile_font_size\" (input)=\"model.meta_data.reg_form_button_mobile_font_size = $event.value\"\r\n                                min=\"0\" max=\"75\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_mobile_font_size }} PX\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <!-- <div class=\"builder-elements-outer ew-mobile-elements\">\r\n                <div class=\"element-builder-row\">\r\n                    <div class=\"ew-mobile-setting\">\r\n                        <span class=\"builder-elements-name\"><span class=\"mobile-icon-title\"><mat-icon>smartphone</mat-icon>Mobile</span>Font Size</span>\r\n                        <div class=\"mat-slider-outer-part common-builder-right slider-2-digit\">\r\n    \r\n                            <span class=\"mat-slider-inner\">\r\n                                <mat-slider [value]=\"model?.meta_data.reg_form_button_mobile_font_size\" (input)=\"model.meta_data.reg_form_button_mobile_font_size = $event.value\"\r\n                                    min=\"0\" max=\"100\" step=\"1\">\r\n                                </mat-slider>\r\n                            </span>\r\n                            <span class=\"value-count-slider\">\r\n                                {{ model?.meta_data.reg_form_button_mobile_font_size }} PX\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div> -->\r\n\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row \" *ngIf=\"(this.currentPreviewLayout=='desktop')\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BUTTON_SUB_FONT_SIZE' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right \">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_sub_text_font_size\"  (input)=\"(model?.meta_data.reg_form_button_sub_text_font_size=$event.value); \"  min=\"0\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        <!--(subTxtSizeWebMobileBind && model.meta_data.reg_form_button_sub_text_mobile_font_size = $event.value)-->\r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_sub_text_font_size}} PX</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row \" *ngIf=\"(this.currentPreviewLayout=='mobile')\"> <!--padding-elements-30-top ew-mobile-property-bind [ngClass]=\"{'ew-mobile-bind-active' : subTxtSizeWebMobileBind == false}\"-->\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.MOBILE_BUTTON_SUB_FONT_SIZE' | translate }}</span>\r\n                        <!--<mat-icon (click)=\"subTxtSizeWebMobileBind = false\" class=\"ew-on-property\">insert_link</mat-icon>\r\n                        <mat-icon (click)=\"subTxtSizeWebMobileBind = true; model.meta_data.reg_form_button_sub_text_mobile_font_size = model.meta_data.reg_form_button_sub_text_font_size\" class=\"ew-off-property\">link_off</mat-icon>\r\n                    </span> -->\r\n                    <div class=\"mat-slider-outer-part common-builder-right slider-2-digit\"> <!--opacity-pointer-event-->\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_sub_text_mobile_font_size\" (input)=\"model.meta_data.reg_form_button_sub_text_mobile_font_size = $event.value\"\r\n                                min=\"0\" max=\"75\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_sub_text_mobile_font_size }} PX\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <!-- <div class=\"builder-elements-outer ew-mobile-elements\">\r\n                <div class=\"element-builder-row\">\r\n                    <div class=\"ew-mobile-setting\">\r\n                        <span class=\"builder-elements-name\"><span class=\"mobile-icon-title\"><mat-icon>smartphone</mat-icon>Mobile</span>\r\n                        Sub text Font Size</span>\r\n                        <div class=\"mat-slider-outer-part common-builder-right slider-2-digit\">\r\n    \r\n                            <span class=\"mat-slider-inner\">\r\n                                <mat-slider [value]=\"model?.meta_data.reg_form_button_sub_text_mobile_font_size\" (input)=\"model.meta_data.reg_form_button_sub_text_mobile_font_size = $event.value\"\r\n                                    min=\"0\" max=\"100\" step=\"1\">\r\n                                </mat-slider>\r\n                            </span>\r\n                            <span class=\"value-count-slider\">\r\n                                {{ model?.meta_data.reg_form_button_sub_text_mobile_font_size }} PX\r\n                            </span>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div> -->\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row \">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BG_COLOR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"mat-form-field color-picker-mat embeded-color-widget-picker\" \r\n                             floatLabel=\"never\">\r\n                            <input matInput type=\"text\"\r\n                                [cpPosition]=\"'top'\"\r\n                                [cpAlphaChannel]=\"'disableAlpha'\"\r\n                                [cpOutputFormat]=\"'auto'\" \r\n                                [colorPicker]=\"model.meta_data?.reg_form_button_bg_color\"\r\n                                (colorPickerChange)=\"changeColorPicker($event)\"\r\n                                [ngModel]=\"model.meta_data?.reg_form_button_bg_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" \r\n                                [ngClass]=\"{'transparent-color-ew': (isUndefined(model.meta_data?.reg_form_button_bg_color) || model.meta_data?.reg_form_button_bg_color.slice(-2,-1) == '0') }\" \r\n                            [style.background-color]=\"model?.meta_data.reg_form_button_bg_color\"></span>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.TEXT_COLOR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"mat-form-field color-picker-mat embeded-color-widget-picker\" floatLabel=\"never\">\r\n                            <input matInput type=\"text\"\r\n                                [cpPosition]=\"'top'\"\r\n                                [cpAlphaChannel]=\"'disableAlpha'\"\r\n                                [cpOutputFormat]=\"'auto'\" \r\n                                [colorPicker]=\"model?.meta_data.reg_form_button_text_color\"                                          \r\n                                (colorPickerChange)=\"model.meta_data.reg_form_button_text_color=$event\"\r\n                                [(ngModel)]=\"model?.meta_data.reg_form_button_text_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [style.background-color]=\"model?.meta_data.reg_form_button_text_color\"></span>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.SUB_TEXT_COLOR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"mat-form-field color-picker-mat embeded-color-widget-picker\" floatLabel=\"never\">\r\n                            <input matInput type=\"text\"\r\n                                [cpPosition]=\"'top'\"\r\n                                [cpAlphaChannel]=\"'disableAlpha'\"\r\n                                [cpOutputFormat]=\"'auto'\" \r\n                                [colorPicker]=\"model?.meta_data.reg_form_button_sub_text_color\"                                          \r\n                                (colorPickerChange)=\"model.meta_data.reg_form_button_sub_text_color=$event\"\r\n                                [(ngModel)]=\"model?.meta_data.reg_form_button_sub_text_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [style.background-color]=\"model?.meta_data.reg_form_button_sub_text_color\"></span>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"advance-title-sec-box\">\r\n                <span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.ICON_STYLE' | translate }}</span>\r\n            </div>\r\n    \r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.STYLE' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <ew-control-bullet-icons\r\n                            [modal]=\"model?.meta_data\"\r\n                            (iconChange) = \"resetIconStyle($event)\"\r\n                        >\r\n                        </ew-control-bullet-icons>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\" *ngIf=\"model?.meta_data.icon_type != 'no_icon'\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.SIZE' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.icon_size\">\r\n                                <mat-option value=\"small\">Small</mat-option>\r\n                                <mat-option value=\"medium\">Medium</mat-option>\r\n                                <mat-option value=\"large\">Large</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\" *ngIf=\"model?.meta_data.icon_type != 'no_icon'\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.POSITION' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.icon_position\">\r\n                                <mat-option value=\"ew-icon-position-after\">After</mat-option>\r\n                                <mat-option value=\"ew-icon-position-before\">Before</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\" *ngIf=\"model?.meta_data.icon_type != 'no_icon'\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.MARGIN' | translate }}</span>\r\n                    <!--<div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"ew-field-no-label builder-input-fields\" floatLabel=\"never\">\r\n                            <input matInput [(ngModel)]=\"model?.meta_data.icon_margin_between\" type=\"number\">\r\n                        </mat-form-field>\r\n                    </div>-->\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.icon_margin_between\" (input)=\"model.meta_data.icon_margin_between = $event.value\"\r\n                                min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.icon_margin_between }} PX\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.ELEMENT_BOX_LABEL' | translate }}</span></div>\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BG_COLOR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"mat-form-field color-picker-mat embeded-color-widget-picker\" \r\n                            floatLabel=\"never\">\r\n                            <input matInput type=\"text\"\r\n                                [cpPosition]=\"'top'\"\r\n                                [cpAlphaChannel]=\"'disableAlpha'\"\r\n                                [cpOutputFormat]=\"'auto'\" \r\n                                [colorPicker]=\"model.meta_data?.box_background_color\"\r\n                                (colorPickerChange)=\"changeBoxBGColorPicker($event)\"\r\n                                [ngModel]=\"model.meta_data?.box_background_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [ngClass]=\"{'transparent-color-ew': (isUndefined(model.meta_data?.box_background_color) || model.meta_data?.box_background_color.slice(-2,-1) == '0') }\" [style.background-color]=\"model.meta_data?.box_background_color\"></span>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            \r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.PADDINGS' | translate }}</span></div>\r\n            <div class=\"builder-elements-outer\">\r\n\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.PADDING.TOP' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_padding_top\" (input)=\"model?.meta_data.reg_form_button_padding_top = $event.value\" min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_padding_top }} px\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n    \r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.PADDING.RIGHT' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right \">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_padding_right\" (input)=\"model?.meta_data.reg_form_button_padding_right = $event.value\" min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_padding_right }} px\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n    \r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.PADDING.BOTTOM' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right \">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_padding_bottom\" (input)=\"model?.meta_data.reg_form_button_padding_bottom = $event.value\" min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_padding_bottom }} px\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n    \r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.PADDING.LEFT' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [value]=\"model?.meta_data.reg_form_button_padding_left\" (input)=\"model?.meta_data.reg_form_button_padding_left = $event.value\" min=\"0\" max=\"100\" step=\"1\">\r\n                            </mat-slider>\r\n                        </span>\r\n                        <span class=\"value-count-slider\">\r\n                            {{ model?.meta_data.reg_form_button_padding_left }} px\r\n                        </span>\r\n                    </div>\r\n                </div>\r\n\r\n                <!-- <div class=\"element-builder-row padding-elements-builder-sidebar\">\r\n                    <div class=\"row\">\r\n                        <div class=\"col m3 s3\">\r\n                            <div class=\"bottom-custom-design-fields\">\r\n                                <label class=\"label-padding-sec\">{{ 'BUILDER.ELEMENTS.PADDING.TOP' | translate }}</label>\r\n                                <mat-form-field class=\"ew-field-no-label\" floatLabel=\"never\">\r\n                                    <input matInput [(ngModel)]=\"model?.meta_data.reg_form_button_padding_top\" type=\"number\">\r\n                                </mat-form-field>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col m3 s3\">\r\n                            <div class=\"bottom-custom-design-fields\">\r\n                                <label class=\"label-padding-sec\">{{ 'BUILDER.ELEMENTS.PADDING.RIGHT' | translate }}</label>\r\n                                <mat-form-field class=\"ew-field-no-label\" floatLabel=\"never\">\r\n                                    <input matInput [(ngModel)]=\"model?.meta_data.reg_form_button_padding_right\" type=\"number\">\r\n                                </mat-form-field>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col m3 s3\">\r\n                            <div class=\"bottom-custom-design-fields\">\r\n                                <label class=\"label-padding-sec\">{{ 'BUILDER.ELEMENTS.PADDING.BOTTOM' | translate }}</label>\r\n                                <mat-form-field class=\"ew-field-no-label\" floatLabel=\"never\">\r\n                                    <input matInput [(ngModel)]=\"model?.meta_data.reg_form_button_padding_bottom\" type=\"number\">\r\n                                </mat-form-field>\r\n                            </div>\r\n                        </div>\r\n                        <div class=\"col m3 s3\">\r\n                            <div class=\"bottom-custom-design-fields\">\r\n                                <label class=\"label-padding-sec\">{{ 'BUILDER.ELEMENTS.PADDING.LEFT' | translate }}</label>\r\n                                <mat-form-field class=\"ew-field-no-label\" floatLabel=\"never\">\r\n                                    <input matInput [(ngModel)]=\"model?.meta_data.reg_form_button_padding_left\" type=\"number\">\r\n                                </mat-form-field>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div> -->\r\n            </div>\r\n        </div>\r\n\r\n        \r\n        <div class=\"advanced-tab\" *ngIf=\"tabOptions.value == 'advanced'\">\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BORDER_RADIUS' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_radius\"  (input)=\"(model?.meta_data.reg_form_button_radius=$event.value)\"  min=\"0\" max=\"60\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        \r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_radius}} PX</span>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.BORDER' | translate }}</span></div>\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BORDER' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.reg_form_button_border_directions\">\r\n                                <mat-option value=\"ew_border_top_bottom\">Top & Bottom</mat-option>\r\n                                <mat-option value=\"ew_border_top\">Top Only</mat-option>\r\n                                <mat-option value=\"ew_border_bottom\">Bottom Only</mat-option>\r\n                                <mat-option value=\"ew_border_left_right\">Left & Right</mat-option>\r\n                                <mat-option value=\"ew_border_left\">Left Only</mat-option>\r\n                                <mat-option value=\"ew_border_right\">Right Only</mat-option>\r\n                                <mat-option value=\"ew_full_border\">Full Border</mat-option>\r\n                                <mat-option value=\"ew_no_border\">No Border</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\"\r\n                    *ngIf=\"model?.meta_data.reg_form_button_border_directions != 'ew_no_border'\"\r\n                >\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.STYLE' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.reg_form_button_border_style\">\r\n                                <mat-option value=\"solid\">Solid</mat-option>\r\n                                <mat-option value=\"dashed\">Dashed</mat-option>\r\n                                <mat-option value=\"dotted\">Dotted</mat-option>\r\n                                <mat-option value=\"double\">Double</mat-option>\r\n                                <mat-option value=\"groove\">Groove</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row padding-elements-30-top\"\r\n                    *ngIf=\"model?.meta_data.reg_form_button_border_directions != 'ew_no_border'\"\r\n                >\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.SIZE' | translate }}</span>\r\n                    <div class=\"mat-slider-outer-part common-builder-right\">\r\n                        <span class=\"mat-slider-inner\">\r\n                            <mat-slider [(ngModel)]=\"model?.meta_data.reg_form_button_border_size\"  (input)=\"(model?.meta_data.reg_form_button_border_size=$event.value)\"  min=\"1\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        \r\n                        <span class=\"value-count-slider\">{{model?.meta_data.reg_form_button_border_size}} PX</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row  padding-elements-30-top\"\r\n                    *ngIf=\"model?.meta_data.reg_form_button_border_directions != 'ew_no_border'\"\r\n                >\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.BORDER_COLOR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"mat-form-field color-picker-mat embeded-color-widget-picker\" floatLabel=\"never\">\r\n                            <input matInput type=\"text\"\r\n                                [cpPosition]=\"'top'\"\r\n                                [cpAlphaChannel]=\"'disableAlpha'\"\r\n                                [cpOutputFormat]=\"'auto'\" \r\n                                [colorPicker]=\"model?.meta_data.reg_form_button_border_color\"                                          \r\n                                (colorPickerChange)=\"model.meta_data.reg_form_button_border_color=$event\"\r\n                                [(ngModel)]=\"model?.meta_data.reg_form_button_border_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [style.background-color]=\"model?.meta_data.reg_form_button_border_color\"></span>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n\r\n            <div class=\"advance-title-sec-box\">\r\n                <span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.BOX_SHADOW' | translate }}</span>\r\n            </div>\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.TYPE' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field floatLabel=\"never\" class=\"ew-field-without-lebel\">\r\n                            <mat-select [(value)]=\"model?.meta_data.box_shadow\">\r\n                                <mat-option value=\"ew-no-shadow\">No Shadow</mat-option>\r\n                                <mat-option value=\"ew-small-shadow\">Small</mat-option>\r\n                                <mat-option value=\"ew-medium-shadow\">Medium</mat-option>\r\n                                <mat-option value=\"ew-large-shadow\">Large</mat-option>\r\n                            </mat-select>\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class=\"advance-title-sec-box\">\r\n                <span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.CUSTOM_CLASS' | translate }}</span>\r\n            </div>\r\n            <div class=\"builder-elements-outer\">\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.CUSTOM_CLASS_NAME' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <mat-form-field class=\"ew-field-without-lebel builder-input-fields\" floatLabel=\"never\">\r\n                            <input matInput type=\"text\" [(ngModel)]=\"model?.meta_data.custom_class\">\r\n                        </mat-form-field>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n    </div>\r\n</div>\r\n\r\n\r\n\r\n\r\n\r\n\r\n    \r\n\r\n",
        styles: [""]
    })
], RegisterFormButtonSidebarComponent);
export { RegisterFormButtonSidebarComponent };
//# sourceMappingURL=data:application/json;base64, 