/**
 * @fileoverview added by tsickle
 * Generated from: lib/fhir/alert/details/comment/details/alert-comment-details.component.ts
 * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
 */
import * as tslib_1 from "tslib";
import { Component, Input } from '@angular/core';
import { AbstractDetailsComponent } from '../../../../../shared/abstracts/details/abstract-details/abstract-details.component';
var AlertCommentDetailsComponent = /** @class */ (function (_super) {
    tslib_1.__extends(AlertCommentDetailsComponent, _super);
    function AlertCommentDetailsComponent() {
        return _super.call(this) || this;
    }
    /**
     * @return {?}
     */
    AlertCommentDetailsComponent.prototype.more = /**
     * @return {?}
     */
    function () { this.callMore.emit(this.inData); };
    /**
     * @return {?}
     */
    AlertCommentDetailsComponent.prototype.checkForPermission = /**
     * @return {?}
     */
    function () {
        if (this.user && this.user.uid && this.inData && this.inData.authorReference && this.inData.authorReference.reference) {
            return this.user.uid === this.inData.authorReference.reference;
        }
    };
    AlertCommentDetailsComponent.decorators = [
        { type: Component, args: [{
                    selector: 'inc-alert-comment-details',
                    template: "<ion-item lines=\"none\" class=\"comment-item\">\r\n  <span>\r\n    <div style=\"display: flex;\">\r\n      <div class=\"comment half-padding\">\r\n        <span>\r\n          <h3>\r\n            <b>\r\n              {{inData.authorReference ? (inData.authorReference.display ? inData.authorReference.display : '') : '' }}\r\n            </b>\r\n          </h3>\r\n        </span>\r\n        <div style=\"word-break: break-all;\">\r\n          <h3>\r\n            {{inData.text ? inData.text : ''}}\r\n          </h3>\r\n        </div>\r\n      </div>\r\n      <ion-buttons *ngIf=\"checkForPermission()\">\r\n        <ion-button shape=\"round\" (click)=\"more()\">\r\n          <ion-icon name=\"more\"></ion-icon>\r\n        </ion-button>\r\n      </ion-buttons>\r\n    </div>\r\n    <div>\r\n      <div class=\"ion-padding-left comment-date\">\r\n        {{inData.time ? (inData.time | date: 'yyyy.MM.dd HH:mm:ss') : '' }}\r\n      </div>\r\n    </div>\r\n  </span>\r\n</ion-item>",
                    styles: [".comment{width:auto;background-color:var(--ion-color-light);border-radius:16px}.comment h3{margin:2px;font-size:14px;font-weight:initial}.comment b{margin:0;font-size:14px}.comment-date{padding-top:10px;position:inherit;font-size:75%}.comment-item{--padding-start:0px}"]
                }] }
    ];
    /** @nocollapse */
    AlertCommentDetailsComponent.ctorParameters = function () { return []; };
    AlertCommentDetailsComponent.propDecorators = {
        user: [{ type: Input }]
    };
    return AlertCommentDetailsComponent;
}(AbstractDetailsComponent));
export { AlertCommentDetailsComponent };
if (false) {
    /** @type {?} */
    AlertCommentDetailsComponent.prototype.user;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQtY29tbWVudC1kZXRhaWxzLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BpbmNsb3VkZWQvaW9uaWM0LWluY2xvdWRlZC1saWIvIiwic291cmNlcyI6WyJsaWIvZmhpci9hbGVydC9kZXRhaWxzL2NvbW1lbnQvZGV0YWlscy9hbGVydC1jb21tZW50LWRldGFpbHMuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRWpELE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUFNLHFGQUFxRixDQUFDO0FBRS9IO0lBS2tELHdEQUFxQztJQUdyRjtlQUFnQixpQkFBTztJQUFFLENBQUM7Ozs7SUFFMUIsMkNBQUk7OztJQUFKLGNBQWUsSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQzs7OztJQUVqRCx5REFBa0I7OztJQUFsQjtRQUNFLElBQUksSUFBSSxDQUFDLElBQUksSUFBSSxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsSUFBSSxJQUFJLENBQUM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