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) {
    const 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) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance(1);
    i0.ɵɵproperty("ngForOf", ctx_r0.array(4));
} }
export class WidgetBoardLoaderComponent {
    constructor() {
        this.numberOfCards = 4;
        this.topLines = 1;
        this.bottomLines = 4;
        this.cards = [];
        this.array = Array;
    }
    ngOnInit() {
        this.cards = Array(+this.numberOfCards)
            .fill(1)
            .map((x, i) => 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}"] });
/*@__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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lkZ2V0LWJvYXJkLWxvYWRlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9pbnNwaXJlLWxpYnJhcnkvIiwic291cmNlcyI6WyJsaWIvbG9hZGVycy93aWRnZXQtYm9hcmQtbG9hZGVyL3dpZGdldC1ib2FyZC1sb2FkZXIuY29tcG9uZW50LnRzIiwibGliL2xvYWRlcnMvd2lkZ2V0LWJvYXJkLWxvYWRlci93aWRnZXQtYm9hcmQtbG9hZGVyLmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx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