import { Component, Input } from '@angular/core';
import { AbstractControl } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common";
import * as i2 from "@aztrix/helpers";
export class FontSelectComponent {
    constructor() {
        this.fonts = [
            { value: 'lato', type: 'LATO' },
            { value: 'arial', type: 'ARIAL' },
            { value: '"courier new"', type: 'COURIER_NEW' },
            { value: '"Brush Script MT"', type: 'BRUSH_SCRIPT_MT' },
        ];
    }
}
FontSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FontSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
FontSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: FontSelectComponent, selector: "ax-font-select", inputs: { form: "form" }, ngImport: i0, template: "<div class=\"font\" *ngFor=\"let font of fonts\" (click)=\"form.setValue(font.value)\">\n  <input\n    class=\"input\"\n    type=\"radio\"\n    [id]=\"'font-' + font.type\"\n    [value]=\"'font-' + font.type\"\n    [checked]=\"font.value === form?.value\"\n  />\n  <label class=\"font-label\" [for]=\"'font-' + font.type\" [ngStyle]=\"{'font-family': font.value}\">\n    <span>Aa</span>\n  </label>\n  <span class=\"option-label\">{{\n    'page.edit.appearance.background.font.' + font.type | translate\n  }}</span>\n</div>\n", styles: [":host{display:grid;grid-gap:1rem;grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}:host .font{width:100%;min-height:80px;display:flex;flex-direction:column;align-items:center;text-align:center}:host .input{position:absolute;visibility:hidden;opacity:0}:host .input+label{position:relative;display:inline-block;width:100%;height:70px;overflow:hidden;background-color:#efefef;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none}:host .input+label.bg-color-label{background-color:#363f48}:host .input+label .ax-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host input[type=radio]:checked+label{background-color:var(--primary-color-500)}.font-label span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2rem}.option-label{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: FontSelectComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-font-select', template: "<div class=\"font\" *ngFor=\"let font of fonts\" (click)=\"form.setValue(font.value)\">\n  <input\n    class=\"input\"\n    type=\"radio\"\n    [id]=\"'font-' + font.type\"\n    [value]=\"'font-' + font.type\"\n    [checked]=\"font.value === form?.value\"\n  />\n  <label class=\"font-label\" [for]=\"'font-' + font.type\" [ngStyle]=\"{'font-family': font.value}\">\n    <span>Aa</span>\n  </label>\n  <span class=\"option-label\">{{\n    'page.edit.appearance.background.font.' + font.type | translate\n  }}</span>\n</div>\n", styles: [":host{display:grid;grid-gap:1rem;grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}:host .font{width:100%;min-height:80px;display:flex;flex-direction:column;align-items:center;text-align:center}:host .input{position:absolute;visibility:hidden;opacity:0}:host .input+label{position:relative;display:inline-block;width:100%;height:70px;overflow:hidden;background-color:#efefef;border-radius:10px;cursor:pointer;-webkit-user-select:none;user-select:none}:host .input+label.bg-color-label{background-color:#363f48}:host .input+label .ax-button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host input[type=radio]:checked+label{background-color:var(--primary-color-500)}.font-label span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:2rem}.option-label{margin-top:.5rem}\n"] }]
        }], propDecorators: { form: [{
                type: Input
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9udC1zZWxlY3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOl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