import { __decorate } from "tslib";
import { Component, Input } from '@angular/core';
import { DeviceDetectorService } from 'ngx-device-detector';
var ModalBodyComponent = /** @class */ (function () {
    function ModalBodyComponent(deviceService) {
        this.height = 'auto';
        this.isMobileOrTablet = false;
        this.isMobileOrTablet = !deviceService.isDesktop();
    }
    ModalBodyComponent.prototype.ngOnInit = function () {
    };
    ModalBodyComponent.ctorParameters = function () { return [
        { type: DeviceDetectorService }
    ]; };
    __decorate([
        Input()
    ], ModalBodyComponent.prototype, "height", void 0);
    ModalBodyComponent = __decorate([
        Component({
            selector: 'sd-modal-body',
            template: "<!-- <div class=\"c-body\" [ngStyle]=\"{'height': height}\">\r\n  <ng-content></ng-content>\r\n</div> -->\r\n<mat-dialog-content *ngIf=\"!isMobileOrTablet\" class=\"c-body\" [ngStyle]=\"{'height': height}\">\r\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</mat-dialog-content>\r\n<sd-bottom-sheet-body *ngIf=\"isMobileOrTablet\" [height]=\"height\">\r\n  <ng-container *ngTemplateOutlet=\"content\"></ng-container>\r\n</sd-bottom-sheet-body>\r\n<ng-template #content>\r\n  <ng-content></ng-content>\r\n</ng-template>",
            styles: ["::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#888;border-radius:50px}::-webkit-scrollbar-thumb:hover{background:#555}", ".c-body{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto}"]
        })
    ], ModalBodyComponent);
    return ModalBodyComponent;
}());
export { ModalBodyComponent };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kYWwtYm9keS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9zdXBlcmRldi1hbmd1bGFyLWNvcmUvIiwic291cmNlcyI6WyJsaWIvY29udHJvbHMvbW9kYWwtY29udHJvbC9tb2RhbC1ib2R5L21vZGFsLWJvZHkuY29tcG9uZW50LnRzI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