{"version":3,"sources":["webpack:///main.6549c7ca172346ea45b3.bundle.js","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/modal/modal.service.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/notification/notification.service.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/app.component.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/notification/notification.component.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src async","webpack:////Users/shun/Develop/test/angular-modal-example/src/main.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/app.module.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/modal/modal.component.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/environments/environment.prod.ts","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/app.component.scss","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.scss","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/app.component.html","webpack:////Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.html"],"names":["webpackJsonp","136","module","exports","__webpack_require__","__WEBPACK_IMPORTED_MODULE_0__angular_core__","d","ModalContext","Modal","__decorate","this","decorators","target","key","desc","c","arguments","length","r","Object","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","__metadata","k","v","metadata","_resolve","_reject","prototype","resolve","val","reject","reason","cfr","count","isShow","set","p","vcr","open","comp","cr","_this","Promise","cf","resolveComponentFactory","destroy","bindings","provide","useValue","ctxInjector","parentInjector","injector","fromResolvedProviders","createComponent","element","nativeElement","appendChild","location","_a","199","__WEBPACK_IMPORTED_MODULE_1__notification_component__","NotificationContext","Notification","text","type","timeout","String","Number","299","__WEBPACK_IMPORTED_MODULE_1__modal_modal_service__","__WEBPACK_IMPORTED_MODULE_2__notification_notification_service__","__WEBPACK_IMPORTED_MODULE_3__sample_modal_sample_modal_component__","AppComponent","modal","notification","title","message","expire","openModal","then","name","catch","e","console","warn","notify","selector","template","styles","_b","300","__WEBPACK_IMPORTED_MODULE_1__notification_service__","NotificationInnerDirective","NotificationEntryComponent","NotificationComponent","__param","paramIndex","decorator","ngAfterViewInit","inner","notificationCtx","closed","elementClass","close","ngOnInit","setTimeout","301","SampleModalComponent","modalCtx","done","343","webpackEmptyContext","req","Error","keys","id","344","__WEBPACK_IMPORTED_MODULE_0__polyfills_ts__","__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__","n","__WEBPACK_IMPORTED_MODULE_2__angular_core__","__WEBPACK_IMPORTED_MODULE_3__environments_environment__","__WEBPACK_IMPORTED_MODULE_4__app___","production","bootstrapModule","452","__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__","__WEBPACK_IMPORTED_MODULE_1__angular_core__","__WEBPACK_IMPORTED_MODULE_2__angular_forms__","__WEBPACK_IMPORTED_MODULE_3__angular_http__","__WEBPACK_IMPORTED_MODULE_4__modal_modal_component__","__WEBPACK_IMPORTED_MODULE_5__modal_modal_service__","__WEBPACK_IMPORTED_MODULE_6__notification_notification_component__","__WEBPACK_IMPORTED_MODULE_7__notification_notification_service__","__WEBPACK_IMPORTED_MODULE_8__app_component__","__WEBPACK_IMPORTED_MODULE_9__sample_modal_sample_modal_component__","AppModule","declarations","entryComponents","imports","providers","bootstrap","453","__WEBPACK_IMPORTED_MODULE_1__app_module__","454","__WEBPACK_IMPORTED_MODULE_1__modal_service__","ModalInnerDirective","ModalEntryComponent","455","environment","456","__WEBPACK_IMPORTED_MODULE_0_core_js_es6_symbol__","__WEBPACK_IMPORTED_MODULE_1_core_js_es6_object__","__WEBPACK_IMPORTED_MODULE_2_core_js_es6_function__","__WEBPACK_IMPORTED_MODULE_3_core_js_es6_parse_int__","__WEBPACK_IMPORTED_MODULE_4_core_js_es6_parse_float__","__WEBPACK_IMPORTED_MODULE_5_core_js_es6_number__","__WEBPACK_IMPORTED_MODULE_6_core_js_es6_math__","__WEBPACK_IMPORTED_MODULE_7_core_js_es6_string__","__WEBPACK_IMPORTED_MODULE_8_core_js_es6_date__","__WEBPACK_IMPORTED_MODULE_9_core_js_es6_array__","__WEBPACK_IMPORTED_MODULE_10_core_js_es6_regexp__","__WEBPACK_IMPORTED_MODULE_11_core_js_es6_map__","__WEBPACK_IMPORTED_MODULE_12_core_js_es6_set__","__WEBPACK_IMPORTED_MODULE_13_core_js_es6_reflect__","__WEBPACK_IMPORTED_MODULE_14_core_js_es7_reflect__","__WEBPACK_IMPORTED_MODULE_15_zone_js_dist_zone__","608","609","610","611","624"],"mappings":"AAAAA,cAAc,EAAE,IAEVC,IACA,SAASC,EAAQC,EAASC,GAEhC,YACqB,IAAIC,GAA8CD,EAAoB,EAC5DA,GAAoBE,EAAEH,EAAS,IAAK,WAAa,MAAOI,KACxDH,EAAoBE,EAAEH,EAAS,IAAK,WAAa,MAAOK,IACvF,IAAIC,GAAcC,MAAQA,KAAKD,YAAe,SAAUE,EAAYC,EAAQC,EAAKC,GAC7E,GAA2HR,GAAvHS,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOK,OAAOC,yBAAyBR,EAAQC,GAAOC,CACrH,IAAuB,gBAAZO,UAAoD,kBAArBA,SAAQC,SAAyBJ,EAAIG,QAAQC,SAASX,EAAYC,EAAQC,EAAKC,OACpH,KAAK,GAAIS,GAAIZ,EAAWM,OAAS,EAAGM,GAAK,EAAGA,KAASjB,EAAIK,EAAWY,MAAIL,GAAKH,EAAI,EAAIT,EAAEY,GAAKH,EAAI,EAAIT,EAAEM,EAAQC,EAAKK,GAAKZ,EAAEM,EAAQC,KAASK,EAChJ,OAAOH,GAAI,GAAKG,GAAKC,OAAOK,eAAeZ,EAAQC,EAAKK,GAAIA,GAE5DO,EAAcf,MAAQA,KAAKe,YAAe,SAAUC,EAAGC,GACvD,GAAuB,gBAAZN,UAAoD,kBAArBA,SAAQO,SAAyB,MAAOP,SAAQO,SAASF,EAAGC,ICP1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EAAoBuH,EAAE8C,GAChCrK,EAAoB,KACZA,GAAoBuH,EAAE+C,IAqBpGC,IACA,SAASzK,EAAQC,GWxnBvBD,EAAAC,QAAA,IX8nBMyK,IACA,SAAS1K,EAAQC,GY/nBvBD,EAAAC,QAAA,IZqoBM0K,IACA,SAAS3K,EAAQC,GatoBvBD,EAAAC,QAAA,0oCb4oBM2K,IACA,SAAS5K,EAAQC,Gc7oBvBD,EAAAC,QAAA,4gBdmpBM4K,IACA,SAAS7K,EAAQC,EAASC,GAEhCF,EAAOC,QAAUC,EAAoB,QAKlC","file":"main.6549c7ca172346ea45b3.bundle.js","sourcesContent":["webpackJsonp([0,3],{\n\n/***/ 136:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return ModalContext; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"b\", function() { return Modal; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\nvar ModalContext = (function () {\n    function ModalContext(_resolve, _reject) {\n        this._resolve = _resolve;\n        this._reject = _reject;\n    }\n    ModalContext.prototype.resolve = function (val) {\n        this._resolve(val);\n    };\n    ModalContext.prototype.reject = function (reason) {\n        this._reject(reason);\n    };\n    ModalContext = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"R\" /* Injectable */])(), \n        __metadata('design:paramtypes', [Object, Object])\n    ], ModalContext);\n    return ModalContext;\n}());\nvar Modal = (function () {\n    function Modal(cfr) {\n        this.cfr = cfr;\n        this.count = 0;\n    }\n    Modal.prototype.isShow = function () {\n        return this.count > 0;\n    };\n    Modal.prototype.set = function (p) {\n        this.vcr = p;\n    };\n    Modal.prototype.open = function (comp) {\n        var _this = this;\n        var cr;\n        return new Promise(function (resolve, reject) {\n            var cf = _this.cfr.resolveComponentFactory(comp);\n            var _resolve = function (val) {\n                if (cr) {\n                    cr.destroy();\n                    resolve(val);\n                    _this.count--;\n                }\n            };\n            var _reject = function (reason) {\n                if (cr) {\n                    cr.destroy();\n                    reject(reason);\n                    _this.count--;\n                }\n            };\n            var bindings = __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_14\" /* ReflectiveInjector */].resolve([\n                { provide: ModalContext, useValue: new ModalContext(_resolve, _reject) }\n            ]);\n            var ctxInjector = _this.vcr.parentInjector;\n            var injector = __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_14\" /* ReflectiveInjector */].fromResolvedProviders(bindings, ctxInjector);\n            cr = _this.vcr.createComponent(cf, _this.vcr.length, injector);\n            _this.vcr.element.nativeElement.appendChild(cr.location.nativeElement);\n            _this.count++;\n        });\n    };\n    Modal = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"R\" /* Injectable */])(), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"m\" /* ComponentFactoryResolver */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"m\" /* ComponentFactoryResolver */]) === 'function' && _a) || Object])\n    ], Modal);\n    return Modal;\n    var _a;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/modal.service.js.map\n\n/***/ },\n\n/***/ 199:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__notification_component__ = __webpack_require__(300);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"b\", function() { return NotificationContext; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return Notification; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\nvar NotificationContext = (function () {\n    function NotificationContext(_resolve, _reject, text, type, timeout) {\n        this._resolve = _resolve;\n        this._reject = _reject;\n        this.text = text;\n        this.type = type;\n        this.timeout = timeout;\n    }\n    NotificationContext.prototype.resolve = function (val) {\n        this._resolve(val);\n    };\n    NotificationContext.prototype.reject = function (reason) {\n        this._reject(reason);\n    };\n    NotificationContext = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"R\" /* Injectable */])(), \n        __metadata('design:paramtypes', [Object, Object, String, String, Number])\n    ], NotificationContext);\n    return NotificationContext;\n}());\nvar Notification = (function () {\n    function Notification(cfr) {\n        this.cfr = cfr;\n        this.count = 0;\n    }\n    Notification.prototype.set = function (p) {\n        this.vcr = p;\n    };\n    Notification.prototype.open = function (text, type, timeout) {\n        var _this = this;\n        if (type === void 0) { type = 'primary'; }\n        if (timeout === void 0) { timeout = 5; }\n        var cr;\n        return new Promise(function (resolve, reject) {\n            var cf = _this.cfr.resolveComponentFactory(__WEBPACK_IMPORTED_MODULE_1__notification_component__[\"a\" /* NotificationComponent */]);\n            var _resolve = function (val) {\n                if (cr) {\n                    cr.destroy();\n                    resolve(val);\n                    _this.count--;\n                }\n            };\n            var _reject = function (reason) {\n                if (cr) {\n                    cr.destroy();\n                    reject(reason);\n                    _this.count--;\n                }\n            };\n            var bindings = __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_14\" /* ReflectiveInjector */].resolve([\n                { provide: NotificationContext, useValue: new NotificationContext(_resolve, _reject, text, type, timeout) }\n            ]);\n            var ctxInjector = _this.vcr.parentInjector;\n            var injector = __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_14\" /* ReflectiveInjector */].fromResolvedProviders(bindings, ctxInjector);\n            cr = _this.vcr.createComponent(cf, _this.vcr.length, injector);\n            _this.vcr.element.nativeElement.appendChild(cr.location.nativeElement);\n            _this.count++;\n        });\n    };\n    Notification = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"R\" /* Injectable */])(), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"m\" /* ComponentFactoryResolver */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"m\" /* ComponentFactoryResolver */]) === 'function' && _a) || Object])\n    ], Notification);\n    return Notification;\n    var _a;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/notification.service.js.map\n\n/***/ },\n\n/***/ 299:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__ = __webpack_require__(136);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__notification_notification_service__ = __webpack_require__(199);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__sample_modal_sample_modal_component__ = __webpack_require__(301);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return AppComponent; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\n\n\nvar AppComponent = (function () {\n    function AppComponent(modal, notification) {\n        this.modal = modal;\n        this.notification = notification;\n        this.title = 'app works!';\n        this.message = 'Message';\n        this.type = 'primary';\n        this.expire = 5;\n    }\n    AppComponent.prototype.openModal = function () {\n        var _this = this;\n        this.modal.open(__WEBPACK_IMPORTED_MODULE_3__sample_modal_sample_modal_component__[\"a\" /* SampleModalComponent */]).then(function (name) {\n            if (name) {\n                _this.title = \"Hello \" + name;\n            }\n            else {\n                _this.notification.open('Name was not set', 'danger', 3);\n            }\n        }).catch(function (e) {\n            // rejected\n            _this.notification.open('Modal was closed', 'warning', 3);\n            if (e) {\n                console.warn(e);\n            }\n        });\n    };\n    AppComponent.prototype.notify = function () {\n        this.notification.open(this.message, this.type, this.expire);\n    };\n    AppComponent = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"G\" /* Component */])({\n            selector: 'app-root',\n            template: __webpack_require__(610),\n            styles: [__webpack_require__(608)]\n        }), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__[\"b\" /* Modal */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__[\"b\" /* Modal */]) === 'function' && _a) || Object, (typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_2__notification_notification_service__[\"a\" /* Notification */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_2__notification_notification_service__[\"a\" /* Notification */]) === 'function' && _b) || Object])\n    ], AppComponent);\n    return AppComponent;\n    var _a, _b;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/app.component.js.map\n\n/***/ },\n\n/***/ 300:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__notification_service__ = __webpack_require__(199);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"c\", function() { return NotificationInnerDirective; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"b\", function() { return NotificationEntryComponent; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return NotificationComponent; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\n    return function (target, key) { decorator(target, key, paramIndex); }\n};\n\n\nvar NotificationInnerDirective = (function () {\n    function NotificationInnerDirective(vcr) {\n        this.vcr = vcr;\n    }\n    NotificationInnerDirective = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"H\" /* Directive */])({\n            selector: '[appNotificationInner]'\n        }), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"h\" /* ViewContainerRef */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"h\" /* ViewContainerRef */]) === 'function' && _a) || Object])\n    ], NotificationInnerDirective);\n    return NotificationInnerDirective;\n    var _a;\n}());\nvar NotificationEntryComponent = (function () {\n    function NotificationEntryComponent(notification) {\n        this.notification = notification;\n    }\n    NotificationEntryComponent.prototype.ngAfterViewInit = function () {\n        this.notification.set(this.inner.vcr);\n    };\n    __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_1\" /* ViewChild */])(NotificationInnerDirective), \n        __metadata('design:type', NotificationInnerDirective)\n    ], NotificationEntryComponent.prototype, \"inner\", void 0);\n    NotificationEntryComponent = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"G\" /* Component */])({\n            selector: 'app-notification-entry',\n            template: \"\\n    <div class='notifications'>\\n        <div appNotificationInner></div>\\n    </div>\\n    \",\n            styles: [\"\\n        .notifications{\\n            position:fixed;\\n            top:0;\\n            right:0;\\n            z-index: 10000;\\n        }\\n        [appNotificationInner]{\\n            display: flex;\\n            flex-direction: column-reverse;\\n        }\\n    \"]\n        }),\n        __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"y\" /* Inject */])(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_36\" /* forwardRef */])(function () { return __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"a\" /* Notification */]; }))), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"a\" /* Notification */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"a\" /* Notification */]) === 'function' && _a) || Object])\n    ], NotificationEntryComponent);\n    return NotificationEntryComponent;\n    var _a;\n}());\nvar NotificationComponent = (function () {\n    function NotificationComponent(notificationCtx) {\n        this.notificationCtx = notificationCtx;\n        this.closed = false;\n        this.text = notificationCtx.text;\n        this.elementClass = ['is-' + notificationCtx.type];\n    }\n    NotificationComponent.prototype.close = function () {\n        this.closed = true;\n        this.notificationCtx.resolve();\n    };\n    NotificationComponent.prototype.ngOnInit = function () {\n        var _this = this;\n        setTimeout(function () {\n            if (!_this.closed) {\n                _this.notificationCtx.resolve();\n            }\n        }, this.notificationCtx.timeout * 1000);\n    };\n    NotificationComponent = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"G\" /* Component */])({\n            selector: 'app-notification',\n            template: \"\\n    <div class=\\\"p7-notification notification\\\" [ngClass]=\\\"elementClass\\\">\\n        <button class=\\\"delete\\\" (click)=\\\"close()\\\"></button>\\n        <div [innerHTML]='text'></div>\\n    </div>\\n    \",\n            styles: [\n                \".notification{\\n            width: 300px;\\n            margin: 10px 0;\\n            position:relative;\\n        }\"\n            ]\n        }),\n        __param(0, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"y\" /* Inject */])(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_36\" /* forwardRef */])(function () { return __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"b\" /* NotificationContext */]; }))), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"b\" /* NotificationContext */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__notification_service__[\"b\" /* NotificationContext */]) === 'function' && _a) || Object])\n    ], NotificationComponent);\n    return NotificationComponent;\n    var _a;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/notification.component.js.map\n\n/***/ },\n\n/***/ 301:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__ = __webpack_require__(136);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return SampleModalComponent; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\nvar SampleModalComponent = (function () {\n    function SampleModalComponent(modalCtx) {\n        this.modalCtx = modalCtx;\n    }\n    SampleModalComponent.prototype.ngOnInit = function () {\n    };\n    SampleModalComponent.prototype.close = function () {\n        this.modalCtx.reject();\n    };\n    SampleModalComponent.prototype.done = function () {\n        this.modalCtx.resolve(this.name);\n    };\n    SampleModalComponent = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"G\" /* Component */])({\n            selector: 'app-sample-modal',\n            template: __webpack_require__(611),\n            styles: [__webpack_require__(609)]\n        }), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__[\"a\" /* ModalContext */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__modal_modal_service__[\"a\" /* ModalContext */]) === 'function' && _a) || Object])\n    ], SampleModalComponent);\n    return SampleModalComponent;\n    var _a;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/sample-modal.component.js.map\n\n/***/ },\n\n/***/ 343:\n/***/ function(module, exports) {\n\nfunction webpackEmptyContext(req) {\n\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 343;\n\n\n/***/ },\n\n/***/ 344:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__polyfills_ts__ = __webpack_require__(456);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__polyfills_ts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__polyfills_ts__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__(432);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__(455);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app___ = __webpack_require__(453);\n\n\n\n\n\nif (__WEBPACK_IMPORTED_MODULE_3__environments_environment__[\"a\" /* environment */].production) {\n    __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2__angular_core__[\"_37\" /* enableProdMode */])();\n}\n__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__[\"a\" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_4__app___[\"a\" /* AppModule */]);\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/main.js.map\n\n/***/ },\n\n/***/ 452:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(191);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(422);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_http__ = __webpack_require__(428);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__modal_modal_component__ = __webpack_require__(454);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__modal_modal_service__ = __webpack_require__(136);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__notification_notification_component__ = __webpack_require__(300);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__notification_notification_service__ = __webpack_require__(199);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__app_component__ = __webpack_require__(299);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__sample_modal_sample_modal_component__ = __webpack_require__(301);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return AppModule; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\n\n\n\n\n\n\n\n\nvar AppModule = (function () {\n    function AppModule() {\n    }\n    AppModule = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__angular_core__[\"I\" /* NgModule */])({\n            declarations: [\n                __WEBPACK_IMPORTED_MODULE_8__app_component__[\"a\" /* AppComponent */],\n                __WEBPACK_IMPORTED_MODULE_4__modal_modal_component__[\"a\" /* ModalEntryComponent */],\n                __WEBPACK_IMPORTED_MODULE_4__modal_modal_component__[\"b\" /* ModalInnerDirective */],\n                __WEBPACK_IMPORTED_MODULE_9__sample_modal_sample_modal_component__[\"a\" /* SampleModalComponent */],\n                __WEBPACK_IMPORTED_MODULE_6__notification_notification_component__[\"a\" /* NotificationComponent */],\n                __WEBPACK_IMPORTED_MODULE_6__notification_notification_component__[\"b\" /* NotificationEntryComponent */],\n                __WEBPACK_IMPORTED_MODULE_6__notification_notification_component__[\"c\" /* NotificationInnerDirective */]\n            ],\n            entryComponents: [\n                __WEBPACK_IMPORTED_MODULE_9__sample_modal_sample_modal_component__[\"a\" /* SampleModalComponent */],\n                __WEBPACK_IMPORTED_MODULE_6__notification_notification_component__[\"a\" /* NotificationComponent */]\n            ],\n            imports: [\n                __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__[\"b\" /* BrowserModule */],\n                __WEBPACK_IMPORTED_MODULE_2__angular_forms__[\"a\" /* FormsModule */],\n                __WEBPACK_IMPORTED_MODULE_3__angular_http__[\"a\" /* HttpModule */]\n            ],\n            providers: [\n                __WEBPACK_IMPORTED_MODULE_5__modal_modal_service__[\"b\" /* Modal */],\n                __WEBPACK_IMPORTED_MODULE_7__notification_notification_service__[\"a\" /* Notification */]\n            ],\n            bootstrap: [__WEBPACK_IMPORTED_MODULE_8__app_component__[\"a\" /* AppComponent */]]\n        }), \n        __metadata('design:paramtypes', [])\n    ], AppModule);\n    return AppModule;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/app.module.js.map\n\n/***/ },\n\n/***/ 453:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__app_component__ = __webpack_require__(299);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(452);\n/* unused harmony namespace reexport */\n/* harmony namespace reexport (by used) */ __webpack_require__.d(exports, \"a\", function() { return __WEBPACK_IMPORTED_MODULE_1__app_module__[\"a\"]; });\n\n\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/index.js.map\n\n/***/ },\n\n/***/ 454:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__modal_service__ = __webpack_require__(136);\n/* harmony export (binding) */ __webpack_require__.d(exports, \"b\", function() { return ModalInnerDirective; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return ModalEntryComponent; });\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\n\n\nvar ModalInnerDirective = (function () {\n    function ModalInnerDirective(vcr) {\n        this.vcr = vcr;\n    }\n    ModalInnerDirective = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"H\" /* Directive */])({\n            selector: '[appModalInner]',\n        }), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"h\" /* ViewContainerRef */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_0__angular_core__[\"h\" /* ViewContainerRef */]) === 'function' && _a) || Object])\n    ], ModalInnerDirective);\n    return ModalInnerDirective;\n    var _a;\n}());\nvar ModalEntryComponent = (function () {\n    function ModalEntryComponent(modal) {\n        this.modal = modal;\n    }\n    ModalEntryComponent.prototype.ngAfterViewInit = function () {\n        this.modal.vcr = this.inner.vcr;\n    };\n    __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"_1\" /* ViewChild */])(ModalInnerDirective), \n        __metadata('design:type', ModalInnerDirective)\n    ], ModalEntryComponent.prototype, \"inner\", void 0);\n    ModalEntryComponent = __decorate([\n        __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__[\"G\" /* Component */])({\n            selector: 'app-modal-entry',\n            template: \"\\n    <div class='bg' [class.active]=\\\"modal.isShow()\\\">\\n      <div appModalInner></div>\\n    </div>\\n  \",\n            providers: [ModalInnerDirective],\n        }), \n        __metadata('design:paramtypes', [(typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1__modal_service__[\"b\" /* Modal */] !== 'undefined' && __WEBPACK_IMPORTED_MODULE_1__modal_service__[\"b\" /* Modal */]) === 'function' && _a) || Object])\n    ], ModalEntryComponent);\n    return ModalEntryComponent;\n    var _a;\n}());\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/modal.component.js.map\n\n/***/ },\n\n/***/ 455:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return environment; });\nvar environment = {\n    production: true\n};\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/environment.prod.js.map\n\n/***/ },\n\n/***/ 456:\n/***/ function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_core_js_es6_symbol__ = __webpack_require__(470);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_core_js_es6_symbol___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_core_js_es6_symbol__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_core_js_es6_object__ = __webpack_require__(463);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_core_js_es6_object___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_core_js_es6_object__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_core_js_es6_function__ = __webpack_require__(459);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_core_js_es6_function___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_core_js_es6_function__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_core_js_es6_parse_int__ = __webpack_require__(465);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_core_js_es6_parse_int___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_core_js_es6_parse_int__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_core_js_es6_parse_float__ = __webpack_require__(464);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_core_js_es6_parse_float___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_core_js_es6_parse_float__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_core_js_es6_number__ = __webpack_require__(462);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_core_js_es6_number___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_core_js_es6_number__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_core_js_es6_math__ = __webpack_require__(461);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_core_js_es6_math___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_core_js_es6_math__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_core_js_es6_string__ = __webpack_require__(469);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_core_js_es6_string___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_core_js_es6_string__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_core_js_es6_date__ = __webpack_require__(458);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_core_js_es6_date___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_core_js_es6_date__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_core_js_es6_array__ = __webpack_require__(457);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_core_js_es6_array___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_core_js_es6_array__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_core_js_es6_regexp__ = __webpack_require__(467);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_core_js_es6_regexp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_core_js_es6_regexp__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_core_js_es6_map__ = __webpack_require__(460);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_core_js_es6_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_core_js_es6_map__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_core_js_es6_set__ = __webpack_require__(468);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_core_js_es6_set___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_core_js_es6_set__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_core_js_es6_reflect__ = __webpack_require__(466);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13_core_js_es6_reflect___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_core_js_es6_reflect__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_core_js_es7_reflect__ = __webpack_require__(471);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14_core_js_es7_reflect___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_core_js_es7_reflect__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_zone_js_dist_zone__ = __webpack_require__(623);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15_zone_js_dist_zone___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_zone_js_dist_zone__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceMappingURL=/Users/shun/Develop/test/angular-modal-example/src/polyfills.js.map\n\n/***/ },\n\n/***/ 608:\n/***/ function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ },\n\n/***/ 609:\n/***/ function(module, exports) {\n\nmodule.exports = \"\"\n\n/***/ },\n\n/***/ 610:\n/***/ function(module, exports) {\n\nmodule.exports = \"<app-modal-entry></app-modal-entry>\\n<app-notification-entry></app-notification-entry>\\n\\n<div class=\\\"container\\\">\\n\\n  <h1 class=\\\"title is-1\\\">\\n    {{title}}\\n  </h1>\\n\\n  <p><button class=\\\"button\\\" (click)=\\\"openModal()\\\">Open Modal</button></p>\\n\\n  <hr>\\n\\n  <form>\\n    <label class=\\\"label\\\">Notification Message</label>\\n    <p class=\\\"control\\\">\\n      <input class=\\\"input\\\" name=\\\"message\\\" [(ngModel)]=\\\"message\\\" type=\\\"text\\\" placeholder=\\\"Message\\\">\\n    </p>\\n    <label class=\\\"label\\\">Notification Type</label>\\n    <p class=\\\"control\\\">\\n      <span class=\\\"select\\\">\\n        <select name=\\\"type\\\" [(ngModel)]=\\\"type\\\">\\n          <option value=\\\"primary\\\">Primary</option>\\n          <option value=\\\"info\\\">Info</option>\\n          <option value=\\\"success\\\">Success</option>\\n          <option value=\\\"warning\\\">Warning</option>\\n          <option value=\\\"danger\\\">Danger</option>\\n        </select>\\n      </span>\\n    </p>\\n    <label class=\\\"label\\\">Expire</label>\\n    <p class=\\\"control\\\">\\n      <input class=\\\"input\\\" name=\\\"expire\\\" [(ngModel)]=\\\"expire\\\" type=\\\"number\\\" placeholder=\\\"0\\\">\\n    </p>\\n    <button class=\\\"button\\\" (click)=\\\"notify()\\\">Notify</button>\\n  </form>\\n</div>\"\n\n/***/ },\n\n/***/ 611:\n/***/ function(module, exports) {\n\nmodule.exports = \"<div class=\\\"modal is-active\\\">\\n  <div class=\\\"modal-background\\\" (click)=\\\"close()\\\"></div>\\n  <div class=\\\"modal-content\\\">\\n    <div class=\\\"box\\\">\\n      <h1>This is an modal</h1>\\n      <p>What is your name?</p>\\n      <label class=\\\"label\\\">Name</label>\\n      <p class=\\\"control\\\">\\n        <input class=\\\"input\\\" [(ngModel)]='name' type=\\\"text\\\" placeholder=\\\"Angular Man\\\">\\n      </p>\\n      <button class=\\\"button is-primary\\\" (click)=\\\"done()\\\">Done</button>\\n    </div>\\n  </div>\\n  <button class=\\\"modal-close\\\"></button>\\n</div>\"\n\n/***/ },\n\n/***/ 624:\n/***/ function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(344);\n\n\n/***/ }\n\n},[624]);\n\n\n// WEBPACK FOOTER //\n// main.6549c7ca172346ea45b3.bundle.js","import {\n    Injectable,\n    ViewContainerRef,\n    ComponentFactoryResolver,\n    ReflectiveInjector,\n    ComponentRef,\n} from '@angular/core';\n\n@Injectable()\nexport class ModalContext {\n    constructor(\n        private _resolve: Function,\n        private _reject: Function\n    ) {\n    }\n    resolve(val?: any) {\n        this._resolve(val);\n    }\n    reject(reason?: any) {\n        this._reject(reason);\n    }\n}\n\n@Injectable()\nexport class Modal {\n    public vcr: ViewContainerRef;\n    public count = 0;\n    constructor(\n        private cfr: ComponentFactoryResolver\n    ) {\n    }\n    isShow() {\n        return this.count > 0;\n    }\n    set(p: ViewContainerRef) {\n        this.vcr = p;\n    }\n    open<T>(comp: any) {\n        let cr: ComponentRef<any>;\n        return new Promise<T>((resolve, reject) => {\n            const cf = this.cfr.resolveComponentFactory(comp);\n            const _resolve = (val: T) => {\n                if (cr) {\n                    cr.destroy();\n                    resolve(val);\n                    this.count--;\n                }\n            };\n            const _reject = (reason?: any) => {\n                if (cr) {\n                    cr.destroy();\n                    reject(reason);\n                    this.count--;\n                }\n            };\n            const bindings = ReflectiveInjector.resolve([\n                { provide: ModalContext, useValue: new ModalContext(_resolve, _reject) }\n            ]);\n            const ctxInjector = this.vcr.parentInjector;\n            const injector = ReflectiveInjector.fromResolvedProviders(bindings, ctxInjector);\n\n            cr = this.vcr.createComponent(cf, this.vcr.length, injector);\n            this.vcr.element.nativeElement.appendChild(cr.location.nativeElement);\n            this.count++;\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/modal/modal.service.ts","import {\n    Injectable,\n    ViewContainerRef,\n    ComponentFactoryResolver,\n    ReflectiveInjector,\n    ComponentRef\n} from '@angular/core';\nimport { NotificationComponent } from './notification.component';\n\n@Injectable()\nexport class NotificationContext {\n    constructor(\n        private _resolve: Function,\n        private _reject: Function,\n        public text: string,\n        public type: NotificationTypes,\n        public timeout: number\n    ) {\n    }\n    resolve(val?: any) {\n        this._resolve(val);\n    }\n    reject(reason?: any) {\n        this._reject(reason);\n    }\n}\n\nexport type NotificationTypes = 'primary' | 'info' | 'success' | 'warning' | 'danger';\n\n@Injectable()\nexport class Notification {\n    public vcr: ViewContainerRef;\n    public count = 0;\n    constructor(\n        private cfr: ComponentFactoryResolver\n    ) {\n    }\n    set(p: ViewContainerRef) {\n        this.vcr = p;\n    }\n    open<T>(text: string, type: NotificationTypes = 'primary', timeout = 5) {\n        let cr: ComponentRef<any>;\n        return new Promise<T>((resolve, reject) => {\n            const cf = this.cfr.resolveComponentFactory(NotificationComponent);\n            const _resolve = (val: T) => {\n                if (cr) {\n                    cr.destroy();\n                    resolve(val);\n                    this.count--;\n                }\n            };\n            const _reject = (reason?: any) => {\n                if (cr) {\n                    cr.destroy();\n                    reject(reason);\n                    this.count--;\n                }\n            };\n            const bindings = ReflectiveInjector.resolve([\n                { provide: NotificationContext, useValue: new NotificationContext(_resolve, _reject, text, type, timeout) }\n            ]);\n            const ctxInjector = this.vcr.parentInjector;\n            const injector = ReflectiveInjector.fromResolvedProviders(bindings, ctxInjector);\n\n            cr = this.vcr.createComponent(cf, this.vcr.length, injector);\n            this.vcr.element.nativeElement.appendChild(cr.location.nativeElement);\n            this.count++;\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/notification/notification.service.ts","import { Component } from '@angular/core';\n\nimport { Modal } from './modal/modal.service';\nimport { Notification, NotificationTypes } from './notification/notification.service';\n\nimport { SampleModalComponent } from './sample-modal/sample-modal.component';\n\n@Component({\n  selector: 'app-root',\n  templateUrl: './app.component.html',\n  styleUrls: ['./app.component.scss']\n})\nexport class AppComponent {\n  title = 'app works!';\n  message = 'Message';\n  type: NotificationTypes = 'primary';\n  expire = 5;\n  constructor(\n    private modal: Modal,\n    private notification: Notification\n  ) { }\n  openModal() {\n    this.modal.open<string>(SampleModalComponent).then(name => {\n      if (name) {\n        this.title = `Hello ${name}`;\n      } else {\n        this.notification.open('Name was not set', 'danger', 3);\n      }\n    }).catch(e => {\n      // rejected\n      this.notification.open('Modal was closed', 'warning', 3);\n      if (e) {\n        console.warn(e);\n      }\n    });\n  }\n  notify() {\n    this.notification.open(this.message, this.type, this.expire);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/app.component.ts","import {\n    Injectable,\n    Inject,\n    forwardRef,\n    ViewContainerRef,\n    Component,\n    ViewChild,\n    Directive,\n    AfterViewInit,\n    OnInit\n} from '@angular/core';\nimport { Notification, NotificationContext } from './notification.service';\n\n@Directive({\n    selector: '[appNotificationInner]'\n})\nexport class NotificationInnerDirective {\n    constructor(public vcr: ViewContainerRef) {\n    }\n}\n\n@Component({\n    selector: 'app-notification-entry',\n    template: `\n    <div class='notifications'>\n        <div appNotificationInner></div>\n    </div>\n    `,\n    styles: [`\n        .notifications{\n            position:fixed;\n            top:0;\n            right:0;\n            z-index: 10000;\n        }\n        [appNotificationInner]{\n            display: flex;\n            flex-direction: column-reverse;\n        }\n    `]\n})\nexport class NotificationEntryComponent implements AfterViewInit {\n    @ViewChild(NotificationInnerDirective) private inner: NotificationInnerDirective;\n    constructor(\n        @Inject(forwardRef(() => Notification)) public notification: Notification\n    ) {\n    }\n    ngAfterViewInit() {\n        this.notification.set(this.inner.vcr);\n    }\n}\n\n@Component({\n    selector: 'app-notification',\n    template: `\n    <div class=\"p7-notification notification\" [ngClass]=\"elementClass\">\n        <button class=\"delete\" (click)=\"close()\"></button>\n        <div [innerHTML]='text'></div>\n    </div>\n    `,\n    styles: [\n        `.notification{\n            width: 300px;\n            margin: 10px 0;\n            position:relative;\n        }`\n    ]\n})\nexport class NotificationComponent implements OnInit {\n    public text: string;\n    public elementClass: string[];\n    private closed = false;\n    constructor(\n        @Inject(forwardRef(() => NotificationContext)) private notificationCtx: NotificationContext\n    ) {\n        this.text = notificationCtx.text;\n        this.elementClass = ['is-' + notificationCtx.type];\n    }\n    close() {\n        this.closed = true;\n        this.notificationCtx.resolve();\n    }\n    ngOnInit() {\n        setTimeout(() => {\n            if (!this.closed) {\n                this.notificationCtx.resolve();\n            }\n        }, this.notificationCtx.timeout * 1000);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/notification/notification.component.ts","import { Component, OnInit } from '@angular/core';\n\nimport { ModalContext } from '../modal/modal.service';\n\n@Component({\n  selector: 'app-sample-modal',\n  templateUrl: './sample-modal.component.html',\n  styleUrls: ['./sample-modal.component.scss']\n})\nexport class SampleModalComponent implements OnInit {\n  public name: string;\n  constructor(\n    private modalCtx: ModalContext\n  ) { }\n\n  ngOnInit() {\n  }\n  close() {\n    this.modalCtx.reject();\n  }\n  done() {\n    this.modalCtx.resolve(this.name);\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.ts","function webpackEmptyContext(req) {\n\tthrow new Error(\"Cannot find module '\" + req + \"'.\");\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nmodule.exports = webpackEmptyContext;\nwebpackEmptyContext.id = 343;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/shun/Develop/test/angular-modal-example/src async\n// module id = 343\n// module chunks = 0","import './polyfills.ts';\n\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\nimport { enableProdMode } from '@angular/core';\nimport { environment } from './environments/environment';\nimport { AppModule } from './app/';\n\nif (environment.production) {\n  enableProdMode();\n}\n\nplatformBrowserDynamic().bootstrapModule(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/main.ts","import { BrowserModule } from '@angular/platform-browser';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { HttpModule } from '@angular/http';\n\n/* Modal */\nimport { ModalEntryComponent, ModalInnerDirective } from './modal/modal.component';\nimport { Modal } from './modal/modal.service';\n\n/* Notification */\nimport { NotificationComponent, NotificationEntryComponent, NotificationInnerDirective } from './notification/notification.component';\nimport { Notification } from './notification/notification.service';\n\nimport { AppComponent } from './app.component';\nimport { SampleModalComponent } from './sample-modal/sample-modal.component';\n\n@NgModule({\n  declarations: [\n    AppComponent,\n    ModalEntryComponent,\n    ModalInnerDirective,\n    SampleModalComponent,\n    NotificationComponent,\n    NotificationEntryComponent,\n    NotificationInnerDirective\n  ],\n  entryComponents: [\n    SampleModalComponent,\n    NotificationComponent\n  ],\n  imports: [\n    BrowserModule,\n    FormsModule,\n    HttpModule\n  ],\n  providers: [\n    Modal,\n    Notification\n  ],\n  bootstrap: [AppComponent]\n})\nexport class AppModule { }\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/app.module.ts","import {\n    Injectable,\n    ViewContainerRef,\n    Component,\n    ViewChild,\n    Directive,\n    AfterViewInit\n} from '@angular/core';\nimport { Modal } from './modal.service';\n\n@Directive({\n    selector: '[appModalInner]',\n})\nexport class ModalInnerDirective {\n    constructor(public vcr: ViewContainerRef) {\n    }\n}\n\n@Component({\n    selector: 'app-modal-entry',\n    template: `\n    <div class='bg' [class.active]=\"modal.isShow()\">\n      <div appModalInner></div>\n    </div>\n  `,\n    providers: [ModalInnerDirective],\n})\nexport class ModalEntryComponent implements AfterViewInit {\n    @ViewChild(ModalInnerDirective) private inner: ModalInnerDirective;\n    constructor(\n        public modal: Modal\n    ) {\n    }\n    ngAfterViewInit() {\n        this.modal.vcr = this.inner.vcr;\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/app/modal/modal.component.ts","export const environment = {\n  production: true\n};\n\n\n\n// WEBPACK FOOTER //\n// /Users/shun/Develop/test/angular-modal-example/src/environments/environment.prod.ts","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/shun/Develop/test/angular-modal-example/src/app/app.component.scss\n// module id = 608\n// module chunks = 0","module.exports = \"\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.scss\n// module id = 609\n// module chunks = 0","module.exports = \"<app-modal-entry></app-modal-entry>\\n<app-notification-entry></app-notification-entry>\\n\\n<div class=\\\"container\\\">\\n\\n  <h1 class=\\\"title is-1\\\">\\n    {{title}}\\n  </h1>\\n\\n  <p><button class=\\\"button\\\" (click)=\\\"openModal()\\\">Open Modal</button></p>\\n\\n  <hr>\\n\\n  <form>\\n    <label class=\\\"label\\\">Notification Message</label>\\n    <p class=\\\"control\\\">\\n      <input class=\\\"input\\\" name=\\\"message\\\" [(ngModel)]=\\\"message\\\" type=\\\"text\\\" placeholder=\\\"Message\\\">\\n    </p>\\n    <label class=\\\"label\\\">Notification Type</label>\\n    <p class=\\\"control\\\">\\n      <span class=\\\"select\\\">\\n        <select name=\\\"type\\\" [(ngModel)]=\\\"type\\\">\\n          <option value=\\\"primary\\\">Primary</option>\\n          <option value=\\\"info\\\">Info</option>\\n          <option value=\\\"success\\\">Success</option>\\n          <option value=\\\"warning\\\">Warning</option>\\n          <option value=\\\"danger\\\">Danger</option>\\n        </select>\\n      </span>\\n    </p>\\n    <label class=\\\"label\\\">Expire</label>\\n    <p class=\\\"control\\\">\\n      <input class=\\\"input\\\" name=\\\"expire\\\" [(ngModel)]=\\\"expire\\\" type=\\\"number\\\" placeholder=\\\"0\\\">\\n    </p>\\n    <button class=\\\"button\\\" (click)=\\\"notify()\\\">Notify</button>\\n  </form>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/shun/Develop/test/angular-modal-example/src/app/app.component.html\n// module id = 610\n// module chunks = 0","module.exports = \"<div class=\\\"modal is-active\\\">\\n  <div class=\\\"modal-background\\\" (click)=\\\"close()\\\"></div>\\n  <div class=\\\"modal-content\\\">\\n    <div class=\\\"box\\\">\\n      <h1>This is an modal</h1>\\n      <p>What is your name?</p>\\n      <label class=\\\"label\\\">Name</label>\\n      <p class=\\\"control\\\">\\n        <input class=\\\"input\\\" [(ngModel)]='name' type=\\\"text\\\" placeholder=\\\"Angular Man\\\">\\n      </p>\\n      <button class=\\\"button is-primary\\\" (click)=\\\"done()\\\">Done</button>\\n    </div>\\n  </div>\\n  <button class=\\\"modal-close\\\"></button>\\n</div>\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// /Users/shun/Develop/test/angular-modal-example/src/app/sample-modal/sample-modal.component.html\n// module id = 611\n// module chunks = 0"],"sourceRoot":""}