/**
 * @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 * as tslib_1 from "tslib";
import { Component } from '@angular/core';
import { AbstractDetailsComponent } from '../../../shared/abstracts/details/abstract-details/abstract-details.component';
import { ModalController } from '@ionic/angular';
var CareplanHistoryDetailsComponent = /** @class */ (function (_super) {
    tslib_1.__extends(CareplanHistoryDetailsComponent, _super);
    function CareplanHistoryDetailsComponent(modalController) {
        var _this = _super.call(this) || this;
        _this.modalController = modalController;
        _this.text = '';
        _this.start = '';
        _this.end = '';
        return _this;
    }
    /**
     * @return {?}
     */
    CareplanHistoryDetailsComponent.prototype.ngOnInit = /**
     * @return {?}
     */
    function () {
        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 {?}
     */
    CareplanHistoryDetailsComponent.prototype.close = /**
     * @return {?}
     */
    function () {
        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 = function () { return [
        { type: ModalController }
    ]; };
    return CareplanHistoryDetailsComponent;
}(AbstractDetailsComponent));
export { CareplanHistoryDetailsComponent };
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZXBsYW4taGlzdG9yeS1kZXRhaWxzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpbmNsb3VkZWQvaW9uaWM0LWluY2xvdWRlZC1saWIvIiwic291cmNlcyI6WyJsaWIvZmhpci9jYXJlLXBsYW4vaGlzdG9yeS1kZXRhaWxzL2NhcmVwbGFuLWhpc3RvcnktZGV0YWlscy5jb21wb25lbnQudHMi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