import { __decorate } from "tslib";
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { ewFontFamilyTypes } from '../../../constants/webinar-event-codes';
import { EwMaDesignService } from '../../../ew-ma-design.service';
var CalendarSidebarComponent = /** @class */ (function () {
    /**
     * constructor
     */
    function CalendarSidebarComponent(designService) {
        this.designService = designService;
        /**
         * Current Preview Layout
         */
        this.currentPreviewLayout = "desktop";
        /**
         * Font Familty options constant
         */
        this.fontFamilyOptions = ewFontFamilyTypes;
        /**
         * Mobile version of top margins
         */
        this.topMarginWebMobileBind = true;
        /**
         * Output
         * @param Event
         */
        this.onSidebarBackClick = new EventEmitter();
        this.callParentContainer = new EventEmitter();
    }
    /**
     * NgOnint hook
     */
    CalendarSidebarComponent.prototype.ngOnInit = function () {
        this.environment = this.designService.environment;
        this.eventId = this.designService.eventId;
    };
    /**
     * Get the current value of Preview Layout style
     */
    CalendarSidebarComponent.prototype.ngDoCheck = function () {
        this.currentPreviewLayout = localStorage.getItem('currentPreviewLayout');
    };
    CalendarSidebarComponent.prototype.selectedGCalendarImage = function (image) {
        if (image) {
            this.model.meta_data.google_calendar_image_url = image.url;
            this.model.meta_data.showImageLibrary = false;
        }
    };
    CalendarSidebarComponent.prototype.removeGCalendarImage = function () {
        this.model.meta_data.showImageLibrary = true;
        this.model.meta_data.google_calendar_image_url = '';
    };
    CalendarSidebarComponent.prototype.selectedOutlookCalendarImage = function (image) {
        if (image) {
            this.model.meta_data.outlook_calendar_image_url = image.url;
            this.model.meta_data.showImageLibraryForOutlook = false;
        }
    };
    CalendarSidebarComponent.prototype.removeOutlookCalendarImage = function () {
        this.model.meta_data.showImageLibraryForOutlook = true;
        this.model.meta_data.outlook_calendar_image_url = '';
    };
    CalendarSidebarComponent.prototype.selectedYahooCalendarImage = function (image) {
        if (image) {
            this.model.meta_data.yahoo_calendar_image_url = image.url;
            this.model.meta_data.showImageLibraryForYahoo = false;
        }
    };
    CalendarSidebarComponent.prototype.removeYahooCalendarImage = function () {
        this.model.meta_data.showImageLibraryForYahoo = true;
        this.model.meta_data.yahoo_calendar_image_url = '';
    };
    CalendarSidebarComponent.prototype.selectedICallCalendarImage = function (image) {
        if (image) {
            this.model.meta_data.icall_calendar_image_url = image.url;
            this.model.meta_data.showImageLibraryForICall = false;
        }
    };
    CalendarSidebarComponent.prototype.removeICallCalendarImage = function () {
        this.model.meta_data.showImageLibraryForICall = true;
        this.model.meta_data.icall_calendar_image_url = '';
    };
    /**
     * @description
     * Show/hide Count Down box
     */
    CalendarSidebarComponent.prototype.toggleCheckbox = function (key) {
        this.model.meta_data[key] = !this.model.meta_data[key];
    };
    /*
    * close the sidebar
    * @param type:option param
    */
    CalendarSidebarComponent.prototype.sidebarBack = function (type) {
        this.onSidebarBackClick.emit(type);
    };
    /*
    * OnChange of Color Picker
    */
    CalendarSidebarComponent.prototype.changeColorPicker = function (event) {
        this.model.meta_data.box_bg_color = event;
    };
    /*
      * OnChange of Color Picker
      */
    CalendarSidebarComponent.prototype.changeColorPicker1 = function (event) {
        this.model.meta_data.background_color = event;
    };
    /*
    * Checking the value is undefined or not
    */
    CalendarSidebarComponent.prototype.isUndefined = function (val) { return typeof val === 'undefined'; };
    CalendarSidebarComponent.prototype.callElementContainer = function (data) {
        // this.callParentContainer.emit(data);
    };
    CalendarSidebarComponent.ctorParameters = function () { return [
        { type: EwMaDesignService }
    ]; };
    __decorate([
        Input()
    ], CalendarSidebarComponent.prototype, "model", void 0);
    __decorate([
        Output()
    ], CalendarSidebarComponent.prototype, "onSidebarBackClick", void 0);
    __decorate([
        Output()
    ], CalendarSidebarComponent.prototype, "callParentContainer", void 0);
    CalendarSidebarComponent = __decorate([
        Component({
            selector: 'ew-element-calendar-sidebar',
            template: "<div class=\"elemets-ew-sidebar\" >\r\n    <div class=\"mat-widget-header tab-toggle-ew\">\r\n        <span class=\"title-content-ew\">{{ 'BUILDER.ELEMENTS.CALENDAR_OPTIONS' | 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        <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.margin_top\"  (input)=\"(model?.meta_data.margin_top=$event.value);\"  min=\"10\" max=\"100\" step=\"1\"></mat-slider>\r\n                        </span>\r\n                        <!--(topMarginWebMobileBind && model.meta_data.mobile_margin_top = $event.value)-->\r\n                        \r\n                        <span class=\"value-count-slider\">{{model?.meta_data.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_margin_top = model.meta_data.event_schedule_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 [(ngModel)]=\"model?.meta_data.mobile_margin_top\" (input)=\"model.meta_data.mobile_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_margin_top }} 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>Top Margin</span>\r\n                        <div class=\"mat-slider-outer-part common-builder-right slider-2-digit\">\r\n                            <span class=\"mat-slider-inner\">\r\n                                <mat-slider [value]=\"model?.meta_data.mobile_margin_top\" (input)=\"model.meta_data.mobile_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_margin_top }} 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.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.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            \r\n            <div class=\"advance-title-sec-box\"><span class=\"title-advance-box\">{{ 'BUILDER.ELEMENTS.CALENDAR' | translate }} </span></div>\r\n            <div class=\"builder-elements-outer calender-option-ew-view\">\r\n\r\n                <div class=\"element-builder-row\">\r\n                    <span class=\"builder-elements-name\">{{ 'DESIGN.GOOGLE' | translate }} {{ 'BUILDER.ELEMENTS.CALENDAR' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <div class=\"ew-toggle-button\">\r\n                            <div class=\"toggle-button-cover\">\r\n                                <div class=\"button-cover\">\r\n                                  <div class=\"button b3\" id=\"button-ew\">\r\n                                    <input type=\"checkbox\" class=\"checkbox\" (change)=\"toggleCheckbox('google_calendar_status')\">\r\n                                    <div class=\"knobs\">\r\n                                      <span></span>\r\n                                    </div>\r\n                                    <div class=\"layer\"></div>\r\n                                  </div>\r\n                                </div>\r\n                              </div>\r\n                        </div>\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.LABEL' | 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.google_calendar_label\">\r\n                        </mat-form-field>                        \r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"element-builder-row  bottom-seprator-calender padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.ICON' | translate }}</span>                    \r\n                    <lib-ew-ma-image\r\n                        [event_id]=\"eventId\"\r\n                        [label_text]=\"''\"\r\n                        [default_language]=\"designService.defaultLang\"\r\n                        [env]=\"environment\"\r\n                        (selectedImage)=\"selectedGCalendarImage($event)\"\r\n                        *ngIf=\"model?.meta_data.showImageLibrary\"\r\n                    ></lib-ew-ma-image>\r\n    \r\n                    <div class=\"uploaded-img-sec\" *ngIf=\"!model?.meta_data.showImageLibrary\">\r\n                        <div class=\"uploaded-img-left\">\r\n                            <img src=\"{{ model?.meta_data.google_calendar_image_url }}\" />\r\n                        </div>\r\n                        <div class=\"uploader-img-right\">\r\n                            <div class=\"call-action-upload-file\">\r\n                                <!-- <button (click)=\"removeImage()\" class=\"small-button-ew\" mat-flat-button color=\"grey\">Change</button> -->\r\n                                <button (click)=\"removeGCalendarImage()\" class=\"no-bg-btn theme-button-text-ew-small warning-btn-no-text\">{{ 'DESIGN.REMOVE' | translate }} </button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                </div>\r\n\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'DESIGN.OUTLOOK' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <div class=\"ew-toggle-button\">\r\n                            <div class=\"toggle-button-cover\">\r\n                                <div class=\"button-cover\">\r\n                                  <div class=\"button b3\" id=\"button-ew\">\r\n                                    <input type=\"checkbox\" class=\"checkbox\" (change)=\"toggleCheckbox('outlook_calendar_status')\">\r\n                                    <div class=\"knobs\">\r\n                                      <span></span>\r\n                                    </div>\r\n                                    <div class=\"layer\"></div>\r\n                                  </div>\r\n                                </div>\r\n                              </div>\r\n                        </div>\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.LABEL' | 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.outlook_calendar_label\">\r\n                        </mat-form-field>                        \r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"element-builder-row  bottom-seprator-calender padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.ICON' | translate }}</span>                    \r\n                    <lib-ew-ma-image\r\n                        [event_id]=\"eventId\"\r\n                        [label_text]=\"''\"\r\n                        [default_language]=\"designService.defaultLang\"\r\n                        [env]=\"environment\"\r\n                        (selectedImage)=\"selectedOutlookCalendarImage($event)\"\r\n                        *ngIf=\"model?.meta_data.showImageLibraryForOutlook\"\r\n                    ></lib-ew-ma-image>\r\n    \r\n                    <div class=\"uploaded-img-sec\" *ngIf=\"!model?.meta_data.showImageLibraryForOutlook\">\r\n                        <div class=\"uploaded-img-left\">\r\n                            <img src=\"{{ model?.meta_data.outlook_calendar_image_url }}\" />\r\n                        </div>\r\n                        <div class=\"uploader-img-right\">\r\n                            <div class=\"call-action-upload-file\">\r\n                                <!-- <button (click)=\"removeImage()\" class=\"small-button-ew\" mat-flat-button color=\"grey\">Change</button> -->\r\n                                <button (click)=\"removeOutlookCalendarImage()\" class=\"no-bg-btn theme-button-text-ew-small warning-btn-no-text\">{{ 'DESIGN.REMOVE' | translate }}</button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                </div>\r\n\r\n                <!-- <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'DESIGN.YAHOO' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <div class=\"ew-toggle-button\">\r\n                            <div class=\"toggle-button-cover\">\r\n                                <div class=\"button-cover\">\r\n                                  <div class=\"button b3\" id=\"button-ew\">\r\n                                    <input type=\"checkbox\" class=\"checkbox\" (change)=\"toggleCheckbox('yahoo_calendar_status')\">\r\n                                    <div class=\"knobs\">\r\n                                      <span></span>\r\n                                    </div>\r\n                                    <div class=\"layer\"></div>\r\n                                  </div>\r\n                                </div>\r\n                              </div>\r\n                        </div>\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.LABEL' | 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.yahoo_calendar_label\">\r\n                        </mat-form-field>                        \r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"element-builder-row  bottom-seprator-calender padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.ICON' | translate }}</span>                    \r\n                    <lib-ew-ma-image\r\n                        [event_id]=\"eventId\"\r\n                        [label_text]=\"''\"\r\n                        [default_language]=\"designService.defaultLang\"\r\n                        [env]=\"environment\"\r\n                        (selectedImage)=\"selectedYahooCalendarImage($event)\"\r\n                        *ngIf=\"model?.meta_data.showImageLibraryForYahoo\"\r\n                    ></lib-ew-ma-image>\r\n    \r\n                    <div class=\"uploaded-img-sec\" *ngIf=\"!model?.meta_data.showImageLibraryForYahoo\">\r\n                        <div class=\"uploaded-img-left\">\r\n                            <img src=\"{{ model?.meta_data.yahoo_calendar_image_url }}\" />\r\n                        </div>\r\n                        <div class=\"uploader-img-right\">\r\n                            <div class=\"call-action-upload-file\">\r\n                                <button (click)=\"removeYahooCalendarImage()\" class=\"no-bg-btn theme-button-text-ew-small warning-btn-no-text\">{{ 'DESIGN.REMOVE' | translate }}</button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                </div> -->\r\n\r\n                <div class=\"element-builder-row padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'DESIGN.ICALL' | translate }}</span>\r\n                    <div class=\"common-builder-right\">\r\n                        <div class=\"ew-toggle-button\">\r\n                            <div class=\"toggle-button-cover\">\r\n                                <div class=\"button-cover\">\r\n                                  <div class=\"button b3\" id=\"button-ew\">\r\n                                    <input type=\"checkbox\" class=\"checkbox\" (change)=\"toggleCheckbox('icall_calendar_status')\">\r\n                                    <div class=\"knobs\">\r\n                                      <span></span>\r\n                                    </div>\r\n                                    <div class=\"layer\"></div>\r\n                                  </div>\r\n                                </div>\r\n                              </div>\r\n                        </div>\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.LABEL' | 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.icall_calendar_label\">\r\n                        </mat-form-field>                        \r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"element-builder-row  bottom-seprator-calender padding-elements-30-top\">\r\n                    <span class=\"builder-elements-name\">{{ 'BUILDER.ELEMENTS.ICON' | translate }}</span>                    \r\n                    <lib-ew-ma-image\r\n                        [event_id]=\"eventId\"\r\n                        [label_text]=\"''\"\r\n                        [default_language]=\"designService.defaultLang\"\r\n                        [env]=\"environment\"\r\n                        (selectedImage)=\"selectedICallCalendarImage($event)\"\r\n                        *ngIf=\"model?.meta_data.showImageLibraryForICall\"\r\n                    ></lib-ew-ma-image>\r\n    \r\n                    <div class=\"uploaded-img-sec\" *ngIf=\"!model?.meta_data.showImageLibraryForICall\">\r\n                        <div class=\"uploaded-img-left\">\r\n                            <img src=\"{{ model?.meta_data.icall_calendar_image_url }}\" />\r\n                        </div>\r\n                        <div class=\"uploader-img-right\">\r\n                            <div class=\"call-action-upload-file\">\r\n                                <!-- <button (click)=\"removeImage()\" class=\"small-button-ew\" mat-flat-button color=\"grey\">Change</button> -->\r\n                                <button (click)=\"removeICallCalendarImage()\" class=\"no-bg-btn theme-button-text-ew-small warning-btn-no-text\">{{ 'DESIGN.REMOVE' | translate }}</button>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    \r\n                </div>\r\n\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.font_family\">\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                <div class=\"element-builder-row  padding-elements-30-top\"\r\n                    *ngIf=\"(currentPreviewLayout == 'desktop')\"\r\n                >\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.font_size\"  (input)=\"(model?.meta_data.font_size=$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.font_size}} PX</span>\r\n                    </div>\r\n                </div>\r\n                <div class=\"element-builder-row  padding-elements-30-top\"\r\n                    *ngIf=\"(currentPreviewLayout == 'mobile')\"\r\n                >\r\n                    <span class=\"builder-elements-name\">Mobile Font Size</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.mobile_font_size\"  (input)=\"(model?.meta_data.mobile_font_size=$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.mobile_font_size}} PX</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.BOX_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_bg_color\"\r\n                                (colorPickerChange)=\"changeColorPicker($event)\"\r\n                                [ngModel]=\"model.meta_data?.box_bg_color\"\r\n                            />\r\n                        <span class=\"color-picker-box\" \r\n                            [ngClass]=\"{'transparent-color-ew': (isUndefined(model.meta_data?.box_bg_color) || model.meta_data?.box_bg_color.slice(-2,-1) == '0') }\" \r\n                            \r\n                            [style.background-color]=\"model?.meta_data.box_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.text_color\"                                          \r\n                                (colorPickerChange)=\"model.meta_data.text_color=$event\"\r\n                                [(ngModel)]=\"model?.meta_data.text_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [style.background-color]=\"model?.meta_data.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\"><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?.background_color\"\r\n                                (colorPickerChange)=\"changeColorPicker1($event)\"\r\n                                [ngModel]=\"model.meta_data?.background_color\"\r\n                                \r\n                            />\r\n                            <span class=\"color-picker-box\"\r\n                            [ngClass]=\"{'transparent-color-ew': (isUndefined(model.meta_data?.background_color) || model.meta_data?.background_color.slice(-2,-1) == '0') }\" \r\n                             [style.background-color]=\"model?.meta_data.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                <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.padding_top\" (input)=\"model?.meta_data.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.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.padding_right\" (input)=\"model?.meta_data.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.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.padding_bottom\" (input)=\"model?.meta_data.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.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.padding_left\" (input)=\"model?.meta_data.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.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.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.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.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.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.border_radius\"  (input)=\"(model?.meta_data.border_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.border_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.border_position\">\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                                \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.border_position != '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.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.border_position != '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.border_size\"  (input)=\"(model?.meta_data.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.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.border_position != '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.border_color\"                                          \r\n                                (colorPickerChange)=\"model.meta_data.border_color=$event\"\r\n                                [(ngModel)]=\"model?.meta_data.border_color\"\r\n                            />\r\n                            <span class=\"color-picker-box\" [style.background-color]=\"model?.meta_data.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\r\n\r\n            \r\n        </div>\r\n    </div>\r\n</div>",
            styles: [""]
        })
    ], CalendarSidebarComponent);
    return CalendarSidebarComponent;
}());
export { CalendarSidebarComponent };
//# sourceMappingURL=data:application/json;base64, 