import { Component, Input } from '@angular/core';
import { UntypedFormGroup } from '@angular/forms';
import * as i0 from "@angular/core";
import * as i1 from "../date-input/date-input.component";
import * as i2 from "@aztrix/helpers";
export class DateRangeSelectComponent {
    constructor() {
        this.today = new Date();
    }
    get dateFrom() {
        return this.group.get('from');
    }
    get dateTo() {
        return this.group.get('to');
    }
}
DateRangeSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DateRangeSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
DateRangeSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: DateRangeSelectComponent, selector: "ax-date-range-select", inputs: { group: "group" }, ngImport: i0, template: "<ax-date-input\n  [control]=\"dateFrom\"\n  [label]=\"'label.from' | translate\"\n  [min]=\"today\"\n  [max]=\"dateTo?.value\"\n></ax-date-input>\n<span>-</span>\n<ax-date-input\n  [control]=\"dateTo\"\n  [label]=\"'label.to' | translate\"\n  [min]=\"dateFrom?.value\"\n></ax-date-input>\n", styles: [":host{display:flex}:host span{margin:auto .5rem;padding-bottom:1rem}\n"], dependencies: [{ kind: "component", type: i1.DateInputComponent, selector: "ax-date-input", inputs: ["control", "label", "min", "max"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: DateRangeSelectComponent, decorators: [{
            type: Component,
            args: [{ selector: 'ax-date-range-select', template: "<ax-date-input\n  [control]=\"dateFrom\"\n  [label]=\"'label.from' | translate\"\n  [min]=\"today\"\n  [max]=\"dateTo?.value\"\n></ax-date-input>\n<span>-</span>\n<ax-date-input\n  [control]=\"dateTo\"\n  [label]=\"'label.to' | translate\"\n  [min]=\"dateFrom?.value\"\n></ax-date-input>\n", styles: [":host{display:flex}:host span{margin:auto .5rem;padding-bottom:1rem}\n"] }]
        }], propDecorators: { group: [{
                type: Input
            }] }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