import { Component, Input } from '@angular/core';
import { LoaderType } from '../../inspire-library.enum';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../widget-loader/widget-loader.component";
import * as i3 from "../widget-board-loader/widget-board-loader.component";
import * as i4 from "../post-loader/post-loader.component";
import * as i5 from "../full-screen-loader/full-screen-loader.component";
import * as i6 from "ngx-skeleton-loader";
function LoaderComponent_ins_widget_loader_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-widget-loader");
} }
function LoaderComponent_ins_widget_board_loader_2_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-widget-board-loader");
} }
function LoaderComponent_ins_post_loader_3_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-post-loader");
} }
function LoaderComponent_ins_full_screen_loader_4_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-full-screen-loader", 4);
} if (rf & 2) {
    const ctx_r3 = i0.ɵɵnextContext();
    i0.ɵɵproperty("loaderText", ctx_r3.loaderText);
} }
const _c0 = function () { return { height: "16px", "margin-bottom": "7px" }; };
function LoaderComponent_ngx_skeleton_loader_5_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ngx-skeleton-loader", 5);
} if (rf & 2) {
    const ctx_r4 = i0.ɵɵnextContext();
    i0.ɵɵproperty("theme", i0.ɵɵpureFunction0(2, _c0))("count", ctx_r4.count);
} }
export class LoaderComponent {
    constructor() {
        this.type = LoaderType.normal;
        this.count = 4;
        this.loaderText = '';
        this.loaderType = LoaderType;
    }
    ngOnInit() {
    }
}
LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(); };
LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ins-loader"]], inputs: { type: "type", count: "count", loaderText: "loaderText" }, decls: 6, vars: 5, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], [3, "loaderText", 4, "ngSwitchCase"], ["class", "null-container", 3, "theme", "count", 4, "ngSwitchDefault"], [3, "loaderText"], [1, "null-container", 3, "theme", "count"]], template: function LoaderComponent_Template(rf, ctx) { if (rf & 1) {
        i0.ɵɵelementContainerStart(0, 0);
        i0.ɵɵtemplate(1, LoaderComponent_ins_widget_loader_1_Template, 1, 0, "ins-widget-loader", 1);
        i0.ɵɵtemplate(2, LoaderComponent_ins_widget_board_loader_2_Template, 1, 0, "ins-widget-board-loader", 1);
        i0.ɵɵtemplate(3, LoaderComponent_ins_post_loader_3_Template, 1, 0, "ins-post-loader", 1);
        i0.ɵɵtemplate(4, LoaderComponent_ins_full_screen_loader_4_Template, 1, 1, "ins-full-screen-loader", 2);
        i0.ɵɵtemplate(5, LoaderComponent_ngx_skeleton_loader_5_Template, 1, 3, "ngx-skeleton-loader", 3);
        i0.ɵɵelementContainerEnd();
    } if (rf & 2) {
        i0.ɵɵproperty("ngSwitch", ctx.type);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngSwitchCase", ctx.loaderType.widget);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngSwitchCase", ctx.loaderType.widgetBoard);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngSwitchCase", ctx.loaderType.post);
        i0.ɵɵadvance(1);
        i0.ɵɵproperty("ngSwitchCase", ctx.loaderType.fullScreen);
    } }, directives: [i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault, i2.WidgetLoaderComponent, i3.WidgetBoardLoaderComponent, i4.PostLoaderComponent, i5.FullScreenLoaderComponent, i6.NgxSkeletonLoaderComponent], styles: [".widget-pack[_ngcontent-%COMP%]{background:#fff;border-radius:.5rem;padding:.9375rem}.wp-body[_ngcontent-%COMP%], .wp-foot[_ngcontent-%COMP%]{margin-top:.9375rem}.wp-title[_ngcontent-%COMP%]{font-size:1rem;font-weight:700;color:#061a73;margin:0;font-family:Lato,sans-serif}.wp-link[_ngcontent-%COMP%]{color:#6e6f70;font-size:.875rem;cursor:pointer}.wp-link[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%] ngx-skeleton-loader .loader{display:block}.null-container[_ngcontent-%COMP%]{display:contents}"] });
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(LoaderComponent, [{
        type: Component,
        args: [{
                selector: 'ins-loader',
                templateUrl: './loader.component.html',
                styleUrls: ['./loader.component.scss']
            }]
    }], function () { return []; }, { type: [{
            type: Input
        }], count: [{
            type: Input
        }], loaderText: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL2luc3BpcmUtbGlicmFyeS8iLCJzb3VyY2VzIjpbImxpYi9sb2FkZXJzL2xvYWRlci9sb2FkZXIuY29tcG9uZW50LnRzIiwibGliL2xvYWRlcnMvbG9hZGVyL2xvYWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUN6RCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7Ozs7Ozs7OztJQ0F0RCxvQ0FBeUU7OztJQUN6RSwwQ0FBMEY7OztJQUMxRixrQ0FBbUU7OztJQUNuRSw0Q0FBa0g7OztJQUFwRCw4Q0FBeUI7Ozs7SUFDdkYseUNBS3VCOzs7SUFIckIsa0RBQW9ELHVCQUFBOztBREN4RCxNQUFNLE9BQU8sZUFBZTtJQUsxQjtRQUpTLFNBQUksR0FBVyxVQUFVLENBQUMsTUFBTSxDQUFDO1FBQ2pDLFVBQUssR0FBRyxDQUFDLENBQUM7UUFDVixlQUFVLEdBQVcsRUFBRSxDQUFDO1FBQ2pDLGVBQVUsR0FBRyxVQUFVLENBQUM7SUFDUixDQUFDO0lBRWpCLFFBQVE7SUFDUixDQUFDOzs4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