import { Component } from '@angular/core';
import { AbstractFormFieldComponent } from '../base-field/abstract-form-field.component';
import * as i0 from "@angular/core";
function WriteDateContainerFieldComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelementContainerStart(0);
    i0.ɵɵelement(1, "ccd-datetime-picker", 2);
    i0.ɵɵelementContainerEnd();
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵadvance();
    i0.ɵɵproperty("caseField", ctx_r0.caseField)("formGroup", ctx_r0.formGroup)("parent", ctx_r0.parent);
} }
function WriteDateContainerFieldComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
    i0.ɵɵelement(0, "ccd-write-date-field", 2);
} if (rf & 2) {
    const ctx_r0 = i0.ɵɵnextContext();
    i0.ɵɵproperty("caseField", ctx_r0.caseField)("formGroup", ctx_r0.formGroup)("parent", ctx_r0.parent);
} }
export class WriteDateContainerFieldComponent extends AbstractFormFieldComponent {
    static ɵfac = /*@__PURE__*/ (() => { let ɵWriteDateContainerFieldComponent_BaseFactory; return function WriteDateContainerFieldComponent_Factory(__ngFactoryType__) { return (ɵWriteDateContainerFieldComponent_BaseFactory || (ɵWriteDateContainerFieldComponent_BaseFactory = i0.ɵɵgetInheritedFactory(WriteDateContainerFieldComponent)))(__ngFactoryType__ || WriteDateContainerFieldComponent); }; })();
    static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: WriteDateContainerFieldComponent, selectors: [["ccd-write-date-container-field"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: [["nativeDatepicker", ""], [4, "ngIf", "ngIfElse"], [3, "caseField", "formGroup", "parent"]], template: function WriteDateContainerFieldComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵtemplate(0, WriteDateContainerFieldComponent_ng_container_0_Template, 2, 3, "ng-container", 1)(1, WriteDateContainerFieldComponent_ng_template_1_Template, 1, 3, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
        } if (rf & 2) {
            const nativeDatepicker_r2 = i0.ɵɵreference(2);
            i0.ɵɵproperty("ngIf", ctx.caseField.dateTimeEntryFormat)("ngIfElse", nativeDatepicker_r2);
        } }, encapsulation: 2 });
}
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WriteDateContainerFieldComponent, [{
        type: Component,
        args: [{ selector: 'ccd-write-date-container-field', template: "<ng-container *ngIf=\"caseField.dateTimeEntryFormat; else nativeDatepicker\">\n  <ccd-datetime-picker\n    [caseField]=\"caseField\"\n    [formGroup]=\"formGroup\"\n    [parent]=\"parent\">\n  </ccd-datetime-picker>\n</ng-container>\n<ng-template #nativeDatepicker>\n  <ccd-write-date-field\n    [caseField]=\"caseField\"\n    [formGroup]=\"formGroup\"\n    [parent]=\"parent\"\n  ></ccd-write-date-field>\n</ng-template>\n\n" }]
    }], null, null); })();
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(WriteDateContainerFieldComponent, { className: "WriteDateContainerFieldComponent", filePath: "lib/shared/components/palette/date/write-date-container-field.component.ts", lineNumber: 8 }); })();
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3JpdGUtZGF0ZS1jb250YWluZXItZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2NkLWNhc2UtdWktdG9vbGtpdC9zcmMvbGliL3NoYXJlZC9jb21wb25lbnRzL3BhbGV0dGUvZGF0ZS93cml0ZS1kYXRlLWNvbnRhaW5lci1maWVsZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jY2QtY2FzZS11aS10b29sa2l0L3NyYy9saWIvc2hhcmVkL2NvbXBvbmVudHMvcGFsZXR0ZS9kYXRlL3dyaXRlLWRhdGUtY29udGFpbmVyLWZpZWxkLm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