import { Component, Input, Output, EventEmitter } from '@angular/core';
import * as i0 from "@angular/core";
import * as i1 from "@angular/forms";
import * as i2 from "@softpak/frontend-components-ng";
export class SpaCompanySelectionComponent {
    constructor() {
        this.options = [];
        this.spaChange = new EventEmitter();
    }
    onChange() {
        this.spaChange.emit();
    }
}
SpaCompanySelectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCompanySelectionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
SpaCompanySelectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: SpaCompanySelectionComponent, selector: "spa-company-selection", inputs: { control: "control", options: "options", txtChannel: "txtChannel", txtCompany: "txtCompany" }, outputs: { spaChange: "spaChange" }, ngImport: i0, template: `<spf-form-section [spfTitle]="txtChannel" [spfIndex]="2">
  <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
    <spn-input [formControl]="control" [spfLabel]="txtCompany"
      [spfType]="'radio'" [spfSuggestions]="options"></spn-input>
  </div>
</spf-form-section>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.SpfFormSection, selector: "spf-form-section", inputs: ["spfIndex", "spfIndexSecondary", "spfTitle"] }, { kind: "component", type: i2.SpnInput, selector: "spn-input", inputs: ["spfAutofocus", "spfCapitalize", "spfCompact", "spfE2E", "spfInputMode", "spfLabel", "spfMax", "spfMin", "spfName", "spfPattern", "spfReadonly", "spfRequired", "spfSelectDay", "spfSelectMonth", "spfShowEdit", "spfShowHelp", "spfShowSearch", "spfShowValidationMessages", "spfStep", "spfSuggestions", "spfType", "spfValidators", "value"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "spf-input, spn-input" }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SpaCompanySelectionComponent, decorators: [{
            type: Component,
            args: [{
                    selector: 'spa-company-selection',
                    template: `<spf-form-section [spfTitle]="txtChannel" [spfIndex]="2">
  <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-3">
    <spn-input [formControl]="control" [spfLabel]="txtCompany"
      [spfType]="'radio'" [spfSuggestions]="options"></spn-input>
  </div>
</spf-form-section>`,
                }]
        }], ctorParameters: function () { return []; }, propDecorators: { control: [{
                type: Input
            }], options: [{
                type: Input
            }], txtChannel: [{
                type: Input
            }], txtCompany: [{
                type: Input
            }], spaChange: [{
                type: Output
            }] } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhLWNvbXBhbnktc2VsZWN0aW9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuZ3VsYXItY29tcG9uZW50cy9zcGEtY2hhbm5lbC1zZWxlY3Rpb24vc3JjL3NwYS1jb21wYW55LXNlbGVjdGlvbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQzs7OztBQWF2RSxNQUFNLE9BQU8sNEJBQTRCO0lBT3ZDO1FBTFMsWUFBTyxHQUE0QixFQUFFLENBQUM7UUFHckMsY0FBUyxHQUF1QixJQUFJLFlBQVksRUFBUSxDQUFDO0lBRy9ELENBQUM7SUFFTCxRQUFRO1FBQ04sSUFBSSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUN4QixDQUFDOzt5SEFaVSw0QkFBNEI7NkdBQTVCLDRCQUE0QiwwTUFQ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