/**
 * @fileoverview added by tsickle
 * Generated from: lib/fhir/care-plan/history-details/careplan-history-details.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import { Component } from '@angular/core';
import { AbstractDetailsComponent } from '../../../shared/abstracts/details/abstract-details/abstract-details.component';
import { ModalController } from '@ionic/angular';
export class CareplanHistoryDetailsComponent extends AbstractDetailsComponent {
    /**
     * @param {?} modalController
     */
    constructor(modalController) {
        super();
        this.modalController = modalController;
        this.text = '';
        this.start = '';
        this.end = '';
    }
    /**
     * @return {?}
     */
    ngOnInit() {
        if (this.inData) {
            this.note = this.inData.text.split('%');
            this.text = this.note[0];
            this.start = this.note[1] !== 'null' ? this.note[1] : '';
            this.end = this.note[2] !== 'null' ? this.note[2] : '';
        }
    }
    /**
     * @return {?}
     */
    close() {
        this.modalController.dismiss();
    }
}
CareplanHistoryDetailsComponent.decorators = [
    { type: Component, args: [{
                selector: 'inc-careplan-history-details',
                template: "<ion-grid>\r\n  <ion-row>\r\n    <ion-col size=\"12\" size-md=\"8\">\r\n      <ion-item lines=\"none\" class=\"ion-no-padding\">\r\n        <ion-label>\r\n          <ion-text color=\"primary\">\r\n            <p>{{'CREATED' | translate}}:</p>\r\n          </ion-text>\r\n          {{inData?.authorReference?.display}}\r\n        </ion-label>\r\n      </ion-item>\r\n    </ion-col>\r\n  </ion-row>\r\n  <ion-row>\r\n    <ion-col size=\"12\" size-md=\"6\">\r\n      <ion-item class=\"ion-no-padding\">\r\n        <ion-label>\r\n          <ion-text color=\"primary\">\r\n            <p>{{'START_DATE' | translate}}: <br>\r\n          </ion-text>\r\n          {{start | date:'yyyy.MM.dd'}}\r\n        </ion-label>\r\n      </ion-item>\r\n    </ion-col>\r\n    <ion-col size=\"12\" size-md=\"6\">\r\n      <ion-item class=\"ion-no-padding\">\r\n        <ion-label>\r\n          <ion-text color=\"primary\">\r\n            <p>{{'END_DATE' | translate}}: <br>\r\n          </ion-text>\r\n          {{end | date:'yyyy.MM.dd'}}\r\n        </ion-label>\r\n      </ion-item>\r\n    </ion-col>\r\n  </ion-row>\r\n  <ion-row>\r\n    <ion-col size=\"12\" size-md=\"8\">\r\n      <ion-item lines=\"none\" class=\"ion-no-padding\">\r\n        <ion-label>\r\n          <ion-text color=\"primary\">\r\n            <p>{{'DESCRIPTION'| translate}}</p>\r\n          </ion-text>\r\n          <p>{{text}}</p>\r\n        </ion-label>\r\n      </ion-item>\r\n    </ion-col>\r\n  </ion-row>\r\n</ion-grid>",
                styles: ["ion-chip{color:var(--ion-color-primary)}"]
            }] }
];
/** @nocollapse */
CareplanHistoryDetailsComponent.ctorParameters = () => [
    { type: ModalController }
];
if (false) {
    /** @type {?} */
    CareplanHistoryDetailsComponent.prototype.note;
    /** @type {?} */
    CareplanHistoryDetailsComponent.prototype.text;
    /** @type {?} */
    CareplanHistoryDetailsComponent.prototype.start;
    /** @type {?} */
    CareplanHistoryDetailsComponent.prototype.end;
    /**
     * @type {?}
     * @private
     */
    CareplanHistoryDetailsComponent.prototype.modalController;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZXBsYW4taGlzdG9yeS1kZXRhaWxzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpbmNsb3VkZWQvaW9uaWM0LWluY2xvdWRlZC1saWIvIiwic291cmNlcyI6WyJsaWIvZmhpci9jYXJlLXBsYW4vaGlzdG9yeS1kZXRhaWxzL2NhcmVwbGFuLWhpc3RvcnktZGV0YWlscy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFnQyxNQUFNLGVBQWUsQ0FBQztBQUV4RSxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrRUFBK0UsQ0FBQztBQUV6SCxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0sZ0JBQ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