import { Component, ElementRef, Input } from '@angular/core';
import { ModalService } from '../modal.service';
import * as i0 from "@angular/core";
import * as i1 from "../modal.service";
import * as i2 from "@angular/common";
var _c0 = function (a0) { return { "background": a0 }; };
var _c1 = ["*"];
var ModalComponent = /** @class */ (function () {
    function ModalComponent(modalService, el) {
        this.modalService = modalService;
        this.el = el;
        this.element = el.nativeElement;
    }
    ModalComponent.prototype.ngOnInit = function () {
        var modal = this;
        if (!this.id) {
            console.error('modal must have an id');
            return;
        }
        document.body.appendChild(this.element);
        this.element.addEventListener('click', function (e) {
            if (e.target.className === 'modal__content') {
                modal.close();
            }
        });
        this.bemifyClass(this.size);
        this.modalService.add(this);
    };
    ModalComponent.prototype.ngOnDestroy = function () {
        this.modalService.remove(this.id);
        this.element.remove();
    };
    ModalComponent.prototype.open = function () {
        this.element.style.display = 'block';
        document.body.classList.add('modal__content--open');
    };
    ModalComponent.prototype.close = function () {
        this.element.style.display = 'none';
        document.body.classList.remove('modal__content--open');
    };
    ModalComponent.prototype.bemifyClass = function (input) {
        if (input === undefined) {
            this.bemSize = '';
        }
        else {
            this.bemSize = '--' + input;
        }
    };
    ModalComponent.ɵfac = function ModalComponent_Factory(t) { return new (t || ModalComponent)(i0.ɵɵdirectiveInject(i1.ModalService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
    ModalComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ModalComponent, selectors: [["ins-modal"]], inputs: { id: "id", size: "size", backgroundColor: "backgroundColor" }, ngContentSelectors: _c1, decls: 4, vars: 4, consts: [[1, "modal__content"], [3, "className", "ngStyle"], [1, "modal__background"]], template: function ModalComponent_Template(rf, ctx) { if (rf & 1) {
            i0.ɵɵprojectionDef();
            i0.ɵɵelementStart(0, "div", 0);
            i0.ɵɵelementStart(1, "div", 1);
            i0.ɵɵprojection(2);
            i0.ɵɵelementEnd();
            i0.ɵɵelementEnd();
            i0.ɵɵelement(3, "div", 2);
        } if (rf & 2) {
            i0.ɵɵadvance(1);
            i0.ɵɵproperty("className", "modal__body" + ctx.bemSize)("ngStyle", i0.ɵɵpureFunction1(2, _c0, ctx.backgroundColor));
        } }, directives: [i2.NgStyle], styles: [".add-sign[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-186px -87px;width:20px;height:20px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.add-sign[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon_treatment-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-164px -227px;width:15px;height:15px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon_treatment-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-add-friend[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px -87px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-add-friend[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-arrow-down-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -50px;width:13px;height:8px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-arrow-down-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-arrow-down[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -58px;width:13px;height:8px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-arrow-down[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-comment-count[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-134px -97px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-comment-count[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-111px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-141px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-condition-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-149px -227px;width:15px;height:20px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-condition-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-double-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -157px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-double-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-facebook-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-179px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-facebook-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-facebook[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -181px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-facebook[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px -50px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-171px -160px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-following[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-97px -78px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-following[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px 0;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -30px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -60px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-friends[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-37px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-friends[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-74px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -90px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -120px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -150px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-206px -180px;width:20px;height:15px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups-xs[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-groups[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-111px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-groups[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-hamburger-menu-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -205px;width:25px;height:22px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-hamburger-menu-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-hamburger-menu[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-72px -227px;width:25px;height:22px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-hamburger-menu[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-148px -123px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-home-feed[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-home-feed[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-instagram-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-193px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-instagram-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-instagram[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-210px -197px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-instagram[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-logout-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-30px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-logout-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-37px -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-60px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-messages[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-74px -160px;width:37px;height:37px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-messages[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-pinterest-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-207px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-pinterest-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-pinterest[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-pinterest[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-profile-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-90px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-profile-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-search-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-185px -123px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-search-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-search-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-185px -141px;width:18px;height:18px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-search-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-thumbnails-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -107px;width:25px;height:25px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-thumbnails-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-thumbnails[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -132px;width:25px;height:25px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-thumbnails[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-transcript-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-97px -227px;width:26px;height:21px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-transcript-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-transcript[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-123px -227px;width:26px;height:21px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-transcript[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-treatment-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-120px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-treatment-sm-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-treatment-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-150px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-treatment-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-tumblr-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-221px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-tumblr-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-tumblr[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-24px -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-tumblr[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-twitter-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-235px -227px;width:14px;height:14px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-twitter-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-twitter[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-48px -227px;width:24px;height:24px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-twitter[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-user-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-180px -197px;width:30px;height:30px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-user-white-sm[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-video-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -27px;width:26px;height:26px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-video-on[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.icon-video[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -53px;width:26px;height:26px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.icon-video[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.inspire-guy-small[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px -79px;width:23px;height:28px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.inspire-guy-small[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.left-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-134px -78px;width:22px;height:19px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.left-arrow[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy-blue-lg[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 0;width:78px;height:78px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy-blue-lg[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy-blue[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-236px 0;width:27px;height:27px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy-blue[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.logo-inspire-guy[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-78px 0;width:78px;height:78px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.logo-inspire-guy[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.media-open[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:-156px 0;width:50px;height:50px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.media-open[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.unav-logo[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.91d0815ca.png);background-position:0 -78px;width:97px;height:45px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.unav-logo[_ngcontent-%COMP%]{background-image:url(https://static.inspire.com/ng-library/icons/icons-inspire.26bbb921e@2x.png);background-size:263px 251px}}.modal__content[_ngcontent-%COMP%]{position:relative;display:flex;justify-content:center;margin-top:25%;z-index:1000;overflow:auto}.modal__body[_ngcontent-%COMP%], .modal__body--button[_ngcontent-%COMP%], .modal__body--large[_ngcontent-%COMP%], .modal__body--medium[_ngcontent-%COMP%], .modal__body--small[_ngcontent-%COMP%]{padding:20px;background:#fff;border-radius:10px}.modal__body--large[_ngcontent-%COMP%]{height:400px;width:800px}.modal__body--medium[_ngcontent-%COMP%]{height:200px;width:400px}.modal__body--small[_ngcontent-%COMP%]{height:100px;width:200px}.modal__body--button[_ngcontent-%COMP%]{height:25px;width:150px;padding:0 20px 20px;text-align:center;border-radius:none}.modal__background[_ngcontent-%COMP%]{position:fixed;top:0;right:0;bottom:0;left:0;background:#000;opacity:.5;z-index:900}"] });
    return ModalComponent;
}());
export { ModalComponent };
/*@__PURE__*/ (function () { i0.ɵsetClassMetadata(ModalComponent, [{
        type: Component,
        args: [{
                selector: 'ins-modal',
                templateUrl: './modal.component.html',
                styleUrls: ['./modal.component.scss']
            }]
    }], function () { return [{ type: i1.ModalService }, { type: i0.ElementRef }]; }, { id: [{
            type: Input
        }], size: [{
            type: Input
        }], backgroundColor: [{
            type: Input
        }] }); })();
//# sourceMappingURL=data:application/json;base64, 