import { Component, Input } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "../widget-loader/widget-loader.component";
function WidgetBoardLoaderComponent_div_0_ins_widget_loader_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ins-widget-loader", 3);
} if (rf & 2) {
    var ctx_r2 = i0.ɵɵnextContext(2);
    i0.ɵɵproperty("topLines", ctx_r2.topLines)("bottomLines", ctx_r2.bottomLines);
} }
function WidgetBoardLoaderComponent_div_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementStart(0, "div", 1);
    i0.ɵɵtemplate(1, WidgetBoardLoaderComponent_div_0_ins_widget_loader_1_Template, 1, 2, "ins-widget-loader", 2);
    i0.ɵɵelementEnd();
} if (rf & 2) {
    var ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r0.array(4));
} }
var WidgetBoardLoaderComponent = /** @class */ (function () {
    function WidgetBoardLoaderComponent() {
        this.numberOfCards = 4;
        this.topLines = 1;
        this.bottomLines = 4;
        this.cards = [];
        this.array = Array;
    }
    WidgetBoardLoaderComponent.prototype.ngOnInit = function () {
        this.cards = Array(+this.numberOfCards)
            .fill(1)
            .map(function (x, i) { return i + 1; });
    };
    WidgetBoardLoaderComponent.ɵfac = function WidgetBoardLoaderComponent_Factory(t) { return new (t || WidgetBoardLoaderComponent)(); };
    WidgetBoardLoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: WidgetBoardLoaderComponent, selectors: [["ins-widget-board-loader"]], inputs: { numberOfCards: "numberOfCards", topLines: "topLines", bottomLines: "bottomLines" }, decls: 1, vars: 1, consts: [["class", "card-grid-loader", 4, "ngFor", "ngForOf"], [1, "card-grid-loader"], [3, "topLines", "bottomLines", 4, "ngFor", "ngForOf"], [3, "topLines", "bottomLines"]], template: function WidgetBoardLoaderComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, WidgetBoardLoaderComponent_div_0_Template, 2, 1, "div", 0);
        } if (rf & 2) {
            i0.ɵɵproperty("ngForOf", ctx.cards);
        } }, directives: [i1.NgForOf, i2.WidgetLoaderComponent], 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}[_nghost-%COMP%]     .widget-pack{width:calc(25% - 20px);margin:.625rem}@media (max-width:991px){[_nghost-%COMP%]     .widget-pack{width:calc(50% - 20px)}}.card-grid-loader[_ngcontent-%COMP%]{display:flex;margin:0 -.625rem;flex-wrap:wrap}"] });
    return WidgetBoardLoaderComponent;
}());
export { WidgetBoardLoaderComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(WidgetBoardLoaderComponent, [{
        type: Component,
        args: [{
                selector: 'ins-widget-board-loader',
                templateUrl: './widget-board-loader.html',
                styleUrls: ['./widget-board-loader.scss'],
            }]
    }], function () { return []; }, { numberOfCards: [{
            type: Input
        }], topLines: [{
            type: Input
        }], bottomLines: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWJvYXJkLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9pbnNwaXJlLWxpYnJhcnkvIiwic291cmNlcyI6WyJsaWIvbG9hZGVycy93aWRnZXQtYm9hcmQtbG9hZGVyL3dpZGdldC1ib2FyZC1sb2FkZXIuY29tcG9uZW50LnRzIiwibGliL2xvYWRlcnMvd2lkZ2V0LWJvYXJkLWxvYWRlci93aWRnZXQtYm9h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