diff --git a/build/angular2-file-upload-demo.js b/build/angular2-file-upload-demo.js index c0e9cf7..f5ffb04 100644 --- a/build/angular2-file-upload-demo.js +++ b/build/angular2-file-upload-demo.js @@ -1,3391 +1,10 @@ -webpackJsonp([1],{ - -/***/ 0: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var file_upload_section_1 = __webpack_require__(376); - var gettingStarted = __webpack_require__(370); - var Demo = (function () { - function Demo() { - } - Demo = __decorate([ - angular2_1.Component({ - selector: 'app' - }), - angular2_1.View({ - template: "\n
\n
\n

ng2-file-upload

\n

The Angular2 File Upload directives

\n View on GitHub\n
\n
\n
\n
\n
\n
\n\n
\n
" + gettingStarted + "
\n\n \n
\n\n \n ", - directives: [ - angular2_1.NgClass, - file_upload_section_1.FileUploadSection - ] - }), - __metadata('design:paramtypes', []) - ], Demo); - return Demo; - })(); - exports.Demo = Demo; - angular2_1.bootstrap(Demo); - - -/***/ }, - -/***/ 50: -/***/ function(module, exports) { - - function isElement(node) { - return !!(node && (node.nodeName || node.prop && node.attr && node.find)); - } - var FileLikeObject = (function () { - function FileLikeObject(fileOrInput) { - var isInput = isElement(fileOrInput); - var fakePathOrObject = isInput ? fileOrInput.value : fileOrInput; - var postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object'; - var method = '_createFrom' + postfix; - this[method](fakePathOrObject); - } - FileLikeObject.prototype._createFromFakePath = function (path) { - this.lastModifiedDate = null; - this.size = null; - this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase(); - this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\') + 2); - }; - FileLikeObject.prototype._createFromObject = function (object) { - this.size = object.size; - this.type = object.type; - this.name = object.name; - }; - return FileLikeObject; - })(); - exports.FileLikeObject = FileLikeObject; - - -/***/ }, - -/***/ 76: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var dropdown_service_1 = __webpack_require__(211); - var Dropdown = (function () { - function Dropdown(el) { - this.el = el; - this.onToggle = new angular2_1.EventEmitter(); - } - Dropdown.prototype.onInit = function () { - this.autoClose = this.autoClose || dropdown_service_1.ALWAYS; - this.keyboardNav = typeof this.keyboardNav !== 'undefined'; - this.dropdownAppendToBody = typeof this.dropdownAppendToBody !== 'undefined'; - if (this.isOpen) { - } - }; - Dropdown.prototype.onDestroy = function () { - if (this.dropdownAppendToBody && this.menuEl) { - this.menuEl.nativeElement.remove(); - } - }; - Object.defineProperty(Dropdown.prototype, "dropDownMenu", { - set: function (dropdownMenu) { - this.menuEl = dropdownMenu.el; - if (dropdownMenu.templateUrl) { - this.dropdownMenuTemplateUrl = dropdownMenu.templateUrl; - } - if (this.dropdownAppendToBody) { - window.document.body.appendChild(this.menuEl.nativeElement); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Dropdown.prototype, "dropDownToggle", { - set: function (dropdownToggle) { - this.toggleEl = dropdownToggle.el; - }, - enumerable: true, - configurable: true - }); - Dropdown.prototype.toggle = function (open) { - return this.isOpen = arguments.length ? !!open : !this.isOpen; - }; - Object.defineProperty(Dropdown.prototype, "isOpen", { - get: function () { - return this._isOpen; - }, - set: function (value) { - this._isOpen = !!value; - if (this.dropdownAppendToBody && this.menuEl) { - } - if (this.isOpen) { - if (this.dropdownMenuTemplateUrl) { - } - this.focusToggleElement(); - dropdown_service_1.dropdownService.open(this); - } - else { - if (this.dropdownMenuTemplateUrl) { - } - dropdown_service_1.dropdownService.close(this); - this.selectedOption = null; - } - this.onToggle.next(this.isOpen); - }, - enumerable: true, - configurable: true - }); - Dropdown.prototype.focusDropdownEntry = function (keyCode) { - var hostEl = this.menuEl ? - this.menuEl.nativeElement : - this.el.nativeElement.getElementsByTagName('ul')[0]; - if (!hostEl) { - return; - } - var elems = hostEl.getElementsByTagName('a'); - if (!elems || !elems.length) { - return; - } - switch (keyCode) { - case (40): - if (typeof this.selectedOption !== 'number') { - this.selectedOption = 0; - break; - } - if (this.selectedOption === elems.length - 1) { - break; - } - this.selectedOption++; - break; - case (38): - if (typeof this.selectedOption !== 'number') { - return; - } - if (this.selectedOption === 0) { - break; - } - this.selectedOption--; - break; - } - elems[this.selectedOption].focus(); - }; - Dropdown.prototype.focusToggleElement = function () { - if (this.toggleEl) { - this.toggleEl.nativeElement.focus(); - } - }; - Dropdown = __decorate([ - angular2_1.Directive({ - selector: '[dropdown]', - properties: ['isOpen', 'autoClose', 'keyboardNav', 'dropdownAppendToBody'], - events: ['onToggle'], - host: { - '[class.dropdown]': 'true', - '[class.open]': 'isOpen' - } - }), - __metadata('design:paramtypes', [angular2_1.ElementRef]) - ], Dropdown); - return Dropdown; - })(); - exports.Dropdown = Dropdown; - - -/***/ }, - -/***/ 125: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var FileDrop = (function () { - function FileDrop(element) { - this.element = element; - this.fileOver = new angular2_1.EventEmitter(); - } - FileDrop.prototype.getOptions = function () { - return this.uploader.options; - }; - FileDrop.prototype.getFilters = function () { - }; - FileDrop.prototype.onDrop = function (event) { - var transfer = this._getTransfer(event); - if (!transfer) { - return; - } - var options = this.getOptions(); - var filters = this.getFilters(); - this._preventAndStop(event); - this.uploader.addToQueue(transfer.files, options, filters); - this.fileOver.next(false); - }; - FileDrop.prototype.onDragOver = function (event) { - var transfer = this._getTransfer(event); - if (!this._haveFiles(transfer.types)) { - return; - } - transfer.dropEffect = 'copy'; - this._preventAndStop(event); - this.fileOver.next(true); - }; - FileDrop.prototype.onDragLeave = function (event) { - if (event.currentTarget === this.element[0]) { - return; - } - this._preventAndStop(event); - this.fileOver.next(false); - }; - FileDrop.prototype._getTransfer = function (event) { - return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; - }; - FileDrop.prototype._preventAndStop = function (event) { - event.preventDefault(); - event.stopPropagation(); - }; - FileDrop.prototype._haveFiles = function (types) { - if (!types) { - return false; - } - if (types.indexOf) { - return types.indexOf('Files') !== -1; - } - else if (types.contains) { - return types.contains('Files'); - } - else { - return false; - } - }; - FileDrop.prototype._addOverClass = function (item) { - item.addOverClass(); - }; - FileDrop.prototype._removeOverClass = function (item) { - item.removeOverClass(); - }; - FileDrop = __decorate([ - angular2_1.Directive({ - selector: '[ng2-file-drop]', - properties: ['uploader'], - events: ['fileOver'], - host: { - '(drop)': 'onDrop($event)', - '(dragover)': 'onDragOver($event)', - '(dragleave)': 'onDragLeave($event)' - } - }), - __metadata('design:paramtypes', [angular2_1.ElementRef]) - ], FileDrop); - return FileDrop; - })(); - exports.FileDrop = FileDrop; - - -/***/ }, - -/***/ 126: -/***/ function(module, exports, __webpack_require__) { - - var file_like_object_1 = __webpack_require__(50); - var FileItem = (function () { - function FileItem(uploader, some, options) { - this.uploader = uploader; - this.some = some; - this.options = options; - this.alias = 'file'; - this.url = '/'; - this.method = 'POST'; - this.headers = []; - this.withCredentials = true; - this.formData = []; - this.isReady = false; - this.isUploading = false; - this.isUploaded = false; - this.isSuccess = false; - this.isCancel = false; - this.isError = false; - this.progress = 0; - this.index = null; - this.file = new file_like_object_1.FileLikeObject(some); - this._file = some; - this.url = uploader.url; - } - FileItem.prototype.upload = function () { - try { - this.uploader.uploadItem(this); - } - catch (e) { - this.uploader._onCompleteItem(this, '', 0, []); - this.uploader._onErrorItem(this, '', 0, []); - } - }; - FileItem.prototype.cancel = function () { - this.uploader.cancelItem(this); - }; - FileItem.prototype.remove = function () { - this.uploader.removeFromQueue(this); - }; - FileItem.prototype.onBeforeUpload = function () { - }; - FileItem.prototype.onProgress = function (progress) { - }; - FileItem.prototype.onSuccess = function (response, status, headers) { - }; - FileItem.prototype.onError = function (response, status, headers) { - }; - FileItem.prototype.onCancel = function (response, status, headers) { - }; - FileItem.prototype.onComplete = function (response, status, headers) { - }; - FileItem.prototype._onBeforeUpload = function () { - this.isReady = true; - this.isUploading = true; - this.isUploaded = false; - this.isSuccess = false; - this.isCancel = false; - this.isError = false; - this.progress = 0; - this.onBeforeUpload(); - }; - FileItem.prototype._onProgress = function (progress) { - this.progress = progress; - this.onProgress(progress); - }; - FileItem.prototype._onSuccess = function (response, status, headers) { - this.isReady = false; - this.isUploading = false; - this.isUploaded = true; - this.isSuccess = true; - this.isCancel = false; - this.isError = false; - this.progress = 100; - this.index = null; - this.onSuccess(response, status, headers); - }; - FileItem.prototype._onError = function (response, status, headers) { - this.isReady = false; - this.isUploading = false; - this.isUploaded = true; - this.isSuccess = false; - this.isCancel = false; - this.isError = true; - this.progress = 0; - this.index = null; - this.onError(response, status, headers); - }; - FileItem.prototype._onCancel = function (response, status, headers) { - this.isReady = false; - this.isUploading = false; - this.isUploaded = false; - this.isSuccess = false; - this.isCancel = true; - this.isError = false; - this.progress = 0; - this.index = null; - this.onCancel(response, status, headers); - }; - FileItem.prototype._onComplete = function (response, status, headers) { - this.onComplete(response, status, headers); - if (this.uploader.removeAfterUpload) { - this.remove(); - } - }; - FileItem.prototype._prepareToUploading = function () { - this.index = this.index || ++this.uploader._nextIndex; - this.isReady = true; - }; - return FileItem; - })(); - exports.FileItem = FileItem; - - -/***/ }, - -/***/ 127: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var FileSelect = (function () { - function FileSelect(element) { - this.element = element; - } - FileSelect.prototype.getOptions = function () { - return this.uploader.options; - }; - FileSelect.prototype.getFilters = function () { - }; - FileSelect.prototype.isEmptyAfterSelection = function () { - return !!this.element.nativeElement.attributes.multiple; - }; - FileSelect.prototype.onChange = function () { - var files = this.element.nativeElement.files; - var options = this.getOptions(); - var filters = this.getFilters(); - this.uploader.addToQueue(files, options, filters); - if (this.isEmptyAfterSelection()) { - } - }; - FileSelect = __decorate([ - angular2_1.Directive({ - selector: '[ng2-file-select]', - properties: ['uploader'], - host: { - '(change)': 'onChange()' - } - }), - __metadata('design:paramtypes', [angular2_1.ElementRef]) - ], FileSelect); - return FileSelect; - })(); - exports.FileSelect = FileSelect; - exports.fileUpload = [FileSelect]; - - -/***/ }, - -/***/ 128: -/***/ function(module, exports, __webpack_require__) { - - var file_like_object_1 = __webpack_require__(50); - var file_item_1 = __webpack_require__(126); - function isFile(value) { - return (File && value instanceof File); - } - function isFileLikeObject(value) { - return value instanceof file_like_object_1.FileLikeObject; - } - var FileUploader = (function () { - function FileUploader(options) { - this.options = options; - this.isUploading = false; - this.queue = []; - this.progress = 0; - this.autoUpload = false; - this.isHTML5 = true; - this.removeAfterUpload = false; - this._nextIndex = 0; - this.filters = []; - this.url = options.url; - this.authToken = options.authToken; - this.filters.unshift({ name: 'queueLimit', fn: this._queueLimitFilter }); - this.filters.unshift({ name: 'folder', fn: this._folderFilter }); - } - FileUploader.prototype.addToQueue = function (files, options, filters) { - var _this = this; - var list = []; - for (var _i = 0; _i < files.length; _i++) { - var file = files[_i]; - list.push(file); - } - var arrayOfFilters = this._getFilters(filters); - var count = this.queue.length; - var addedFileItems = []; - list.map(function (some) { - var temp = new file_like_object_1.FileLikeObject(some); - if (_this._isValidFile(temp, [], options)) { - var fileItem = new file_item_1.FileItem(_this, some, options); - addedFileItems.push(fileItem); - _this.queue.push(fileItem); - _this._onAfterAddingFile(fileItem); - } - else { - var filter = arrayOfFilters[_this._failFilterIndex]; - _this._onWhenAddingFileFailed(temp, filter, options); - } - }); - if (this.queue.length !== count) { - this._onAfterAddingAll(addedFileItems); - this.progress = this._getTotalProgress(); - } - this._render(); - if (this.autoUpload) { - this.uploadAll(); - } - }; - FileUploader.prototype.removeFromQueue = function (value) { - var index = this.getIndexOfItem(value); - var item = this.queue[index]; - if (item.isUploading) { - item.cancel(); - } - this.queue.splice(index, 1); - this.progress = this._getTotalProgress(); - }; - FileUploader.prototype.clearQueue = function () { - while (this.queue.length) { - this.queue[0].remove(); - } - this.progress = 0; - }; - FileUploader.prototype.uploadItem = function (value) { - var index = this.getIndexOfItem(value); - var item = this.queue[index]; - var transport = this.isHTML5 ? '_xhrTransport' : '_iframeTransport'; - item._prepareToUploading(); - if (this.isUploading) { - return; - } - this.isUploading = true; - this[transport](item); - }; - FileUploader.prototype.cancelItem = function (value) { - var index = this.getIndexOfItem(value); - var item = this.queue[index]; - var prop = this.isHTML5 ? '_xhr' : '_form'; - if (item && item.isUploading) { - item[prop].abort(); - } - }; - FileUploader.prototype.uploadAll = function () { - var items = this.getNotUploadedItems().filter(function (item) { return !item.isUploading; }); - if (!items.length) { - return; - } - items.map(function (item) { return item._prepareToUploading(); }); - items[0].upload(); - }; - FileUploader.prototype.cancelAll = function () { - var items = this.getNotUploadedItems(); - items.map(function (item) { return item.cancel(); }); - }; - FileUploader.prototype.isFile = function (value) { - return isFile(value); - }; - FileUploader.prototype.isFileLikeObject = function (value) { - return value instanceof file_like_object_1.FileLikeObject; - }; - FileUploader.prototype.getIndexOfItem = function (value) { - return typeof value === 'number' ? value : this.queue.indexOf(value); - }; - FileUploader.prototype.getNotUploadedItems = function () { - return this.queue.filter(function (item) { return !item.isUploaded; }); - }; - FileUploader.prototype.getReadyItems = function () { - return this.queue - .filter(function (item) { return (item.isReady && !item.isUploading); }) - .sort(function (item1, item2) { return item1.index - item2.index; }); - }; - FileUploader.prototype.destroy = function () { - }; - FileUploader.prototype.onAfterAddingAll = function (fileItems) { - }; - FileUploader.prototype.onAfterAddingFile = function (fileItem) { - }; - FileUploader.prototype.onWhenAddingFileFailed = function (item, filter, options) { - }; - FileUploader.prototype.onBeforeUploadItem = function (fileItem) { - }; - FileUploader.prototype.onProgressItem = function (fileItem, progress) { - }; - FileUploader.prototype.onProgressAll = function (progress) { - }; - FileUploader.prototype.onSuccessItem = function (item, response, status, headers) { - }; - FileUploader.prototype.onErrorItem = function (item, response, status, headers) { - }; - FileUploader.prototype.onCancelItem = function (item, response, status, headers) { - }; - FileUploader.prototype.onCompleteItem = function (item, response, status, headers) { - }; - FileUploader.prototype.onCompleteAll = function () { - }; - FileUploader.prototype._getTotalProgress = function (value) { - if (value === void 0) { value = 0; } - if (this.removeAfterUpload) { - return value; - } - var notUploaded = this.getNotUploadedItems().length; - var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length; - var ratio = 100 / this.queue.length; - var current = value * ratio / 100; - return Math.round(uploaded * ratio + current); - }; - FileUploader.prototype._getFilters = function (filters) { - if (!filters) { - return this.filters; - } - if (Array.isArray(filters)) { - return filters; - } - var names = filters.match(/[^\s,]+/g); - return this.filters - .filter(function (filter) { return names.indexOf(filter.name) !== -1; }); - }; - FileUploader.prototype._render = function () { - }; - FileUploader.prototype._folderFilter = function (item) { - return !!(item.size || item.type); - }; - FileUploader.prototype._queueLimitFilter = function () { - return this.queue.length < this.queueLimit; - }; - FileUploader.prototype._isValidFile = function (file, filters, options) { - var _this = this; - this._failFilterIndex = -1; - return !filters.length ? true : filters.every(function (filter) { - _this._failFilterIndex++; - return filter.fn.call(_this, file, options); - }); - }; - FileUploader.prototype._isSuccessCode = function (status) { - return (status >= 200 && status < 300) || status === 304; - }; - FileUploader.prototype._transformResponse = function (response, headers) { - return response; - }; - FileUploader.prototype._parseHeaders = function (headers) { - var parsed = {}, key, val, i; - if (!headers) { - return parsed; - } - headers.split('\n').map(function (line) { - i = line.indexOf(':'); - key = line.slice(0, i).trim().toLowerCase(); - val = line.slice(i + 1).trim(); - if (key) { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } - }); - return parsed; - }; - FileUploader.prototype._headersGetter = function (parsedHeaders) { - return function (name) { - if (name) { - return parsedHeaders[name.toLowerCase()] || null; - } - return parsedHeaders; - }; - }; - FileUploader.prototype._xhrTransport = function (item) { - var _this = this; - var xhr = item._xhr = new XMLHttpRequest(); - var form = new FormData(); - this._onBeforeUploadItem(item); - if (typeof item._file.size !== 'number') { - throw new TypeError('The file specified is no longer valid'); - } - form.append(item.alias, item._file, item.file.name); - xhr.upload.onprogress = function (event) { - var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0); - _this._onProgressItem(item, progress); - }; - xhr.onload = function () { - var headers = _this._parseHeaders(xhr.getAllResponseHeaders()); - var response = _this._transformResponse(xhr.response, headers); - var gist = _this._isSuccessCode(xhr.status) ? 'Success' : 'Error'; - var method = '_on' + gist + 'Item'; - _this[method](item, response, xhr.status, headers); - _this._onCompleteItem(item, response, xhr.status, headers); - }; - xhr.onerror = function () { - var headers = _this._parseHeaders(xhr.getAllResponseHeaders()); - var response = _this._transformResponse(xhr.response, headers); - _this._onErrorItem(item, response, xhr.status, headers); - _this._onCompleteItem(item, response, xhr.status, headers); - }; - xhr.onabort = function () { - var headers = _this._parseHeaders(xhr.getAllResponseHeaders()); - var response = _this._transformResponse(xhr.response, headers); - _this._onCancelItem(item, response, xhr.status, headers); - _this._onCompleteItem(item, response, xhr.status, headers); - }; - xhr.open(item.method, item.url, true); - xhr.withCredentials = item.withCredentials; - if (this.authToken) { - xhr.setRequestHeader('Authorization', this.authToken); - } - xhr.send(form); - this._render(); - }; - FileUploader.prototype._iframeTransport = function (item) { - }; - FileUploader.prototype._onWhenAddingFileFailed = function (item, filter, options) { - this.onWhenAddingFileFailed(item, filter, options); - }; - FileUploader.prototype._onAfterAddingFile = function (item) { - this.onAfterAddingFile(item); - }; - FileUploader.prototype._onAfterAddingAll = function (items) { - this.onAfterAddingAll(items); - }; - FileUploader.prototype._onBeforeUploadItem = function (item) { - item._onBeforeUpload(); - this.onBeforeUploadItem(item); - }; - FileUploader.prototype._onProgressItem = function (item, progress) { - var total = this._getTotalProgress(progress); - this.progress = total; - item._onProgress(progress); - this.onProgressItem(item, progress); - this.onProgressAll(total); - this._render(); - }; - FileUploader.prototype._onSuccessItem = function (item, response, status, headers) { - item._onSuccess(response, status, headers); - this.onSuccessItem(item, response, status, headers); - }; - FileUploader.prototype._onErrorItem = function (item, response, status, headers) { - item._onError(response, status, headers); - this.onErrorItem(item, response, status, headers); - }; - FileUploader.prototype._onCancelItem = function (item, response, status, headers) { - item._onCancel(response, status, headers); - this.onCancelItem(item, response, status, headers); - }; - FileUploader.prototype._onCompleteItem = function (item, response, status, headers) { - item._onComplete(response, status, headers); - this.onCompleteItem(item, response, status, headers); - var nextItem = this.getReadyItems()[0]; - this.isUploading = false; - if (nextItem) { - nextItem.upload(); - return; - } - this.onCompleteAll(); - this.progress = this._getTotalProgress(); - this._render(); - }; - return FileUploader; - })(); - exports.FileUploader = FileUploader; - - -/***/ }, - -/***/ 129: -/***/ function(module, exports) { - - (function (Ng2BootstrapTheme) { - Ng2BootstrapTheme[Ng2BootstrapTheme["BS3"] = 1] = "BS3"; - Ng2BootstrapTheme[Ng2BootstrapTheme["BS4"] = 2] = "BS4"; - })(exports.Ng2BootstrapTheme || (exports.Ng2BootstrapTheme = {})); - var Ng2BootstrapTheme = exports.Ng2BootstrapTheme; - var Ng2BootstrapConfig = (function () { - function Ng2BootstrapConfig() { - } - Object.defineProperty(Ng2BootstrapConfig, "theme", { - get: function () { - var w = window; - if (w && w.__theme === 'bs4') { - return Ng2BootstrapTheme.BS4; - } - return (this._theme || Ng2BootstrapTheme.BS3); - }, - set: function (v) { - this._theme = v; - }, - enumerable: true, - configurable: true - }); - return Ng2BootstrapConfig; - })(); - exports.Ng2BootstrapConfig = Ng2BootstrapConfig; - - -/***/ }, - -/***/ 130: -/***/ function(module, exports) { - - var PositionService = (function () { - function PositionService() { - } - Object.defineProperty(PositionService.prototype, "window", { - get: function () { - return window; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(PositionService.prototype, "document", { - get: function () { - return window.document; - }, - enumerable: true, - configurable: true - }); - PositionService.prototype.getStyle = function (nativeEl, cssProp) { - if (nativeEl.currentStyle) { - return nativeEl.currentStyle[cssProp]; - } - if (this.window.getComputedStyle) { - return this.window.getComputedStyle(nativeEl)[cssProp]; - } - return nativeEl.style[cssProp]; - }; - PositionService.prototype.isStaticPositioned = function (nativeEl) { - return (this.getStyle(nativeEl, 'position') || 'static') === 'static'; - }; - PositionService.prototype.parentOffsetEl = function (nativeEl) { - var offsetParent = nativeEl.offsetParent || this.document; - while (offsetParent && offsetParent !== this.document && - this.isStaticPositioned(offsetParent)) { - offsetParent = offsetParent.offsetParent; - } - return offsetParent || this.document; - }; - ; - PositionService.prototype.position = function (nativeEl) { - var elBCR = this.offset(nativeEl); - var offsetParentBCR = { top: 0, left: 0 }; - var offsetParentEl = this.parentOffsetEl(nativeEl); - if (offsetParentEl !== this.document) { - offsetParentBCR = this.offset(offsetParentEl); - offsetParentBCR.top += offsetParentEl.clientTop - offsetParentEl.scrollTop; - offsetParentBCR.left += offsetParentEl.clientLeft - offsetParentEl.scrollLeft; - } - var boundingClientRect = nativeEl.getBoundingClientRect(); - return { - width: boundingClientRect.width || nativeEl.offsetWidth, - height: boundingClientRect.height || nativeEl.offsetHeight, - top: elBCR.top - offsetParentBCR.top, - left: elBCR.left - offsetParentBCR.left - }; - }; - PositionService.prototype.offset = function (nativeEl) { - var boundingClientRect = nativeEl.getBoundingClientRect(); - return { - width: boundingClientRect.width || nativeEl.offsetWidth, - height: boundingClientRect.height || nativeEl.offsetHeight, - top: boundingClientRect.top + (this.window.pageYOffset || this.document.documentElement.scrollTop), - left: boundingClientRect.left + (this.window.pageXOffset || this.document.documentElement.scrollLeft) - }; - }; - PositionService.prototype.positionElements = function (hostEl, targetEl, positionStr, appendToBody) { - var positionStrParts = positionStr.split('-'); - var pos0 = positionStrParts[0]; - var pos1 = positionStrParts[1] || 'center'; - var hostElPos = appendToBody ? - this.offset(hostEl) : - this.position(hostEl); - var targetElWidth = targetEl.offsetWidth; - var targetElHeight = targetEl.offsetHeight; - var shiftWidth = { - center: function () { - return hostElPos.left + hostElPos.width / 2 - targetElWidth / 2; - }, - left: function () { - return hostElPos.left; - }, - right: function () { - return hostElPos.left + hostElPos.width; - } - }; - var shiftHeight = { - center: function () { - return hostElPos.top + hostElPos.height / 2 - targetElHeight / 2; - }, - top: function () { - return hostElPos.top; - }, - bottom: function () { - return hostElPos.top + hostElPos.height; - } - }; - var targetElPos; - switch (pos0) { - case 'right': - targetElPos = { - top: shiftHeight[pos1](), - left: shiftWidth[pos0]() - }; - break; - case 'left': - targetElPos = { - top: shiftHeight[pos1](), - left: hostElPos.left - targetElWidth - }; - break; - case 'bottom': - targetElPos = { - top: shiftHeight[pos0](), - left: shiftWidth[pos1]() - }; - break; - default: - targetElPos = { - top: hostElPos.top - targetElHeight, - left: shiftWidth[pos1]() - }; - break; - } - return targetElPos; - }; - return PositionService; - })(); - exports.PositionService = PositionService; - exports.positionService = new PositionService(); - - -/***/ }, - -/***/ 208: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var Collapse = (function () { - function Collapse(el) { - this.el = el; - this.test = 'wtf'; - this.isExpanded = true; - this.isCollapsed = false; - this.isCollapse = true; - this.isCollapsing = false; - } - Object.defineProperty(Collapse.prototype, "collapse", { - get: function () { - return this.isExpanded; - }, - set: function (value) { - this.isExpanded = value; - this.toggle(); - }, - enumerable: true, - configurable: true - }); - Collapse.prototype.toggle = function () { - if (this.isExpanded) { - this.hide(); - } - else { - this.show(); - } - }; - Collapse.prototype.hide = function () { - var _this = this; - this.isCollapse = false; - this.isCollapsing = true; - this.isExpanded = false; - this.isCollapsed = true; - setTimeout(function () { - _this.height = '0'; - _this.isCollapse = true; - _this.isCollapsing = false; - }, 4); - }; - Collapse.prototype.show = function () { - var _this = this; - this.isCollapse = false; - this.isCollapsing = true; - this.isExpanded = true; - this.isCollapsed = false; - setTimeout(function () { - _this.height = 'auto'; - _this.isCollapse = true; - _this.isCollapsing = false; - }, 4); - }; - Collapse = __decorate([ - angular2_1.Directive({ - selector: '[collapse]', - properties: ['collapse'], - host: { - '[class.in]': 'isExpanded', - '[class.collapse]': 'isCollapse', - '[class.collapsing]': 'isCollapsing', - '[attr.aria-expanded]': 'isExpanded', - '[attr.aria-hidden]': 'isCollapsed', - '[style.height]': 'height' - } - }), - __metadata('design:paramtypes', [angular2_1.ElementRef]) - ], Collapse); - return Collapse; - })(); - exports.Collapse = Collapse; - - -/***/ }, - -/***/ 209: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var NgTransclude = (function () { - function NgTransclude(viewRef) { - this.viewRef = viewRef; - } - Object.defineProperty(NgTransclude.prototype, "ngTransclude", { - get: function () { - return this._ngTransclude; - }, - set: function (templateRef) { - this._ngTransclude = templateRef; - if (templateRef) { - this.viewRef.createEmbeddedView(templateRef); - } - }, - enumerable: true, - configurable: true - }); - NgTransclude = __decorate([ - angular2_1.Directive({ - selector: '[ng-transclude]', - properties: ['ngTransclude'] - }), - __param(0, angular2_1.Inject(angular2_1.ViewContainerRef)), - __metadata('design:paramtypes', [angular2_1.ViewContainerRef]) - ], NgTransclude); - return NgTransclude; - })(); - exports.NgTransclude = NgTransclude; - - -/***/ }, - -/***/ 210: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var dropdown_1 = __webpack_require__(76); - var DropdownMenu = (function () { - function DropdownMenu(dropdown, el) { - this.dropdown = dropdown; - this.el = el; - } - DropdownMenu.prototype.onInit = function () { - this.dropdown.dropDownMenu = this; - }; - DropdownMenu = __decorate([ - angular2_1.Directive({ - selector: '[dropdown-menu], .dropdown-menu', - properties: ['templateUrl'] - }), - __param(0, angular2_1.Host()), - __metadata('design:paramtypes', [dropdown_1.Dropdown, angular2_1.ElementRef]) - ], DropdownMenu); - return DropdownMenu; - })(); - exports.DropdownMenu = DropdownMenu; - - -/***/ }, - -/***/ 211: -/***/ function(module, exports) { - - exports.ALWAYS = 'always'; - exports.DISABLED = 'disabled'; - exports.OUTSIDECLICK = 'outsideClick'; - var DropdownService = (function () { - function DropdownService() { - this.closeDropdownBind = this.closeDropdown.bind(this); - this.keybindFilterBind = this.keybindFilter.bind(this); - } - DropdownService.prototype.open = function (dropdownScope) { - if (!this.openScope) { - window.document.addEventListener('click', this.closeDropdownBind); - window.document.addEventListener('keydown', this.keybindFilterBind); - } - if (this.openScope && this.openScope !== this.dropdownScope) { - this.openScope.isOpen = false; - } - this.openScope = dropdownScope; - }; - DropdownService.prototype.close = function (dropdownScope) { - if (this.openScope !== dropdownScope) { - return; - } - this.openScope = null; - window.document.removeEventListener('click', this.closeDropdownBind); - window.document.removeEventListener('keydown', this.keybindFilterBind); - }; - DropdownService.prototype.closeDropdown = function (event) { - if (!this.openScope) { - return; - } - if (event && this.openScope.autoClose === exports.DISABLED) { - return; - } - if (event && this.openScope.toggleEl && - this.openScope.toggleEl.nativeElement === event.target) { - return; - } - if (event && this.openScope.autoClose === exports.OUTSIDECLICK && - this.openScope.menuEl && - this.openScope.menuEl.nativeElement === event.target) { - return; - } - this.openScope.isOpen = false; - }; - DropdownService.prototype.keybindFilter = function (event) { - if (event.which === 27) { - this.openScope.focusToggleElement(); - this.closeDropdown(null); - return; - } - if (this.openScope.keyboardNav && this.openScope.isOpen && - (event.which === 38 || event.which === 40)) { - event.preventDefault(); - event.stopPropagation(); - this.openScope.focusDropdownEntry(event.which); - } - }; - return DropdownService; - })(); - exports.DropdownService = DropdownService; - exports.dropdownService = new DropdownService(); - - -/***/ }, - -/***/ 212: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var dropdown_1 = __webpack_require__(76); - var DropdownToggle = (function () { - function DropdownToggle(dropdown, el) { - this.dropdown = dropdown; - this.el = el; - this.disabled = false; - } - DropdownToggle.prototype.onInit = function () { - this.dropdown.dropDownToggle = this; - }; - Object.defineProperty(DropdownToggle.prototype, "isOpen", { - get: function () { - return this.dropdown.isOpen; - }, - enumerable: true, - configurable: true - }); - DropdownToggle.prototype.toggleDropdown = function (event) { - event.preventDefault(); - event.stopPropagation(); - if (!this.disabled) { - this.dropdown.toggle(); - } - }; - DropdownToggle = __decorate([ - angular2_1.Directive({ - selector: '[dropdown-toggle]', - properties: ['disabled'], - host: { - '(click)': 'toggleDropdown($event)', - '[class.dropdown-toggle]': 'true', - '[class.disabled]': 'disabled', - '[attr.aria-haspopup]': 'true', - '[attr.aria-expanded]': 'isOpen' - } - }), - __param(0, angular2_1.Host()), - __metadata('design:paramtypes', [dropdown_1.Dropdown, angular2_1.ElementRef]) - ], DropdownToggle); - return DropdownToggle; - })(); - exports.DropdownToggle = DropdownToggle; - - -/***/ }, - -/***/ 369: -/***/ function(module, exports) { - - module.exports = "

Usage

\n
import {FileSelect, FileDrop, FileUploader} from 'ng2-file-upload';\n
\n

Annotations

\n
// class FileSelect\n@Directive({\n  selector: '[ng2-file-select]',\n  properties: ['uploader'],\n  host: {\n    '(change)': 'onChange()'\n  }\n})\n
\n
// class FileDrop\n@Directive({\n  selector: '[ng2-file-drop]',\n  properties: ['uploader'],\n  events: ['fileOver'],\n  host: {\n    '(drop)': 'onDrop($event)',\n    '(dragover)': 'onDragOver($event)',\n    '(dragleave)': 'onDragLeave($event)'\n  }\n})\n
\n

FileSelect API

\n

Properties

\n\n

FileDrop API

\n

Properties

\n\n

Events

\n\n"; - -/***/ }, - -/***/ 370: -/***/ function(module, exports) { - - module.exports = "

Getting started

\n

First of all, Welcome!

\n

Install

\n

Install the components

\n
npm install ng2-file-upload --save\n
"; - -/***/ }, - -/***/ 371: -/***/ function(module, exports) { - - module.exports = "var express = require('express');\nvar multer = require('multer');\nvar fs = require('fs');\nvar app = express();\n\nvar DIR = './uploads/';\n\nvar upload = multer({dest: DIR});\n\napp.use(function (req, res, next) {\n res.setHeader('Access-Control-Allow-Origin', 'http://valor-software.github.io');\n res.setHeader('Access-Control-Allow-Methods', 'POST');\n res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');\n res.setHeader('Access-Control-Allow-Credentials', true);\n next();\n});\n\napp.use(multer({\n dest: DIR,\n rename: function (fieldname, filename) {\n return filename + Date.now();\n },\n onFileUploadStart: function (file) {\n console.log(file.originalname + ' is starting ...');\n },\n onFileUploadComplete: function (file) {\n console.log(file.fieldname + ' uploaded to ' + file.path);\n }\n}));\n\napp.get('/api', function (req, res) {\n res.end('file catcher example');\n});\n\napp.post('/api', function (req, res) {\n upload(req, res, function (err) {\n if (err) {\n return res.end(err.toString());\n }\n\n res.end('File is uploaded');\n });\n});\n\nvar PORT = process.env.PORT || 3000;\n\napp.listen(PORT, function () {\n console.log('Working on port ' + PORT);\n});\n" - -/***/ }, - -/***/ 372: -/***/ function(module, exports) { - - module.exports = "<style>\n .my-drop-zone { border: dotted 3px lightgray; }\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n .another-file-over-class { border: dotted 3px green; }\n\n html, body { height: 100%; }\n</style>\n\n<div class=\"container\">\n\n <div class=\"navbar navbar-default\">\n <div class=\"navbar-header\">\n <a class=\"navbar-brand\" href>Angular2 File Upload</a>\n </div>\n </div>\n\n <div class=\"row\">\n\n <div class=\"col-md-3\">\n\n <h3>Select files</h3>\n\n <div ng2-file-drop\n [ng-class]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (file-over)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n Base drop zone\n </div>\n\n <div ng2-file-drop\n [ng-class]=\"{'another-file-over-class': hasAnotherDropZoneOver}\"\n (file-over)=\"fileOverAnother($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n Another drop zone\n </div>\n\n Multiple\n <input type=\"file\" ng2-file-select [uploader]=\"uploader\" multiple /><br/>\n\n Single\n <input type=\"file\" ng2-file-select [uploader]=\"uploader\" />\n </div>\n\n <div class=\"col-md-9\" style=\"margin-bottom: 40px\">\n\n <h3>Upload queue</h3>\n <p>Queue length: {{ uploader.queue.length }}</p>\n\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">Name</th>\n <th>Size</th>\n <th>Progress</th>\n <th>Status</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n <tr *ng-for=\"#item of uploader.queue\">\n <td><strong>{{ item.file.name }}</strong></td>\n <td *ng-if=\"uploader.isHTML5\" nowrap>{{ item.file.size/1024/1024 | number:'.2' }} MB</td>\n <td *ng-if=\"uploader.isHTML5\">\n <div class=\"progress\" style=\"margin-bottom: 0;\">\n <div class=\"progress-bar\" role=\"progressbar\" [ng-style]=\"{ 'width': item.progress + '%' }\"></div>\n </div>\n </td>\n <td class=\"text-center\">\n <span *ng-if=\"item.isSuccess\"><i class=\"glyphicon glyphicon-ok\"></i></span>\n <span *ng-if=\"item.isCancel\"><i class=\"glyphicon glyphicon-ban-circle\"></i></span>\n <span *ng-if=\"item.isError\"><i class=\"glyphicon glyphicon-remove\"></i></span>\n </td>\n <td nowrap>\n <button type=\"button\" class=\"btn btn-success btn-xs\"\n (click)=\"item.upload()\" [disabled]=\"item.isReady || item.isUploading || item.isSuccess\">\n <span class=\"glyphicon glyphicon-upload\"></span> Upload\n </button>\n <button type=\"button\" class=\"btn btn-warning btn-xs\"\n (click)=\"item.cancel()\" [disabled]=\"!item.isUploading\">\n <span class=\"glyphicon glyphicon-ban-circle\"></span> Cancel\n </button>\n <button type=\"button\" class=\"btn btn-danger btn-xs\"\n (click)=\"item.remove()\">\n <span class=\"glyphicon glyphicon-trash\"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div>\n <div>\n Queue progress:\n <div class=\"progress\" style=\"\">\n <div class=\"progress-bar\" role=\"progressbar\" [ng-style]=\"{ 'width': uploader.progress + '%' }\"></div>\n </div>\n </div>\n <button type=\"button\" class=\"btn btn-success btn-s\"\n (click)=\"uploader.uploadAll()\" [disabled]=\"!uploader.getNotUploadedItems().length\">\n <span class=\"glyphicon glyphicon-upload\"></span> Upload all\n </button>\n <button type=\"button\" class=\"btn btn-warning btn-s\"\n (click)=\"uploader.cancelAll()\" [disabled]=\"!uploader.isUploading\">\n <span class=\"glyphicon glyphicon-ban-circle\"></span> Cancel all\n </button>\n <button type=\"button\" class=\"btn btn-danger btn-s\"\n (click)=\"uploader.clearQueue()\" [disabled]=\"!uploader.queue.length\">\n <span class=\"glyphicon glyphicon-trash\"></span> Remove all\n </button>\n </div>\n\n </div>\n\n </div>\n\n</div>" - -/***/ }, - -/***/ 373: -/***/ function(module, exports) { - - module.exports = "/// <reference path=\"../../../tsd.d.ts\" />\n\nimport {\n Component, View, EventEmitter,\n CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle\n} from 'angular2/angular2';\n\nimport {FileSelect} from '../../../components/file-upload/file-select';\nimport {FileDrop} from '../../../components/file-upload/file-drop';\nimport {FileUploader} from '../../../components/file-upload/file-uploader';\n\n// webpack html imports\nlet template = require('./simple-demo.html');\n\n// const URL = '/api/';\nconst URL = 'https://evening-anchorage-3159.herokuapp.com/api/';\n\n@Component({\n selector: 'simple-demo'\n})\n@View({\n template: template,\n directives: [FileSelect, FileDrop, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]\n})\nexport class SimpleDemo {\n private uploader:FileUploader = new FileUploader({url: URL});\n private hasBaseDropZoneOver:boolean = false;\n private hasAnotherDropZoneOver:boolean = false;\n\n private fileOverBase(e:any) {\n this.hasBaseDropZoneOver = e;\n }\n\n private fileOverAnother(e:any) {\n this.hasAnotherDropZoneOver = e;\n }\n}\n" - -/***/ }, - -/***/ 374: -/***/ function(module, exports) { - - module.exports = "\n\n
\n\n
\n \n
\n\n
\n\n
\n\n

Select files

\n\n
\n Base drop zone\n
\n\n
\n Another drop zone\n
\n\n Multiple\n
\n\n Single\n \n
\n\n
\n\n

Upload queue

\n

Queue length: {{ uploader.queue.length }}

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
NameSizeProgressStatusActions
{{ item.file.name }}{{ item.file.size/1024/1024 | number:'.2' }} MB\n
\n
\n
\n
\n \n \n \n \n \n \n \n
\n\n
\n
\n Queue progress:\n
\n
\n
\n
\n \n \n \n
\n\n
\n\n
\n\n
" - -/***/ }, - -/***/ 376: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var ng2_bootstrap_1 = __webpack_require__(392); - var simple_demo_1 = __webpack_require__(377); - var name = 'File Upload'; - var doc = __webpack_require__(369); - var tabDesc = [ - { - heading: 'Simple', - ts: __webpack_require__(373), - html: __webpack_require__(372), - js: __webpack_require__(371) - } - ]; - var tabsContent = ""; - tabDesc.forEach(function (desc) { - tabsContent += "\n \n
\n\n <" + desc.heading.toLowerCase() + "-demo *ng-if=\"currentHeading === '" + desc.heading + "'\">\n\n
\n\n
\n \n \n
\n
" + desc.html + "
\n
\n
\n \n
\n
" + desc.ts + "
\n
\n
\n \n
\n
" + desc.js + "
\n
\n
\n
\n
\n
\n
\n "; - }); - var FileUploadSection = (function () { - function FileUploadSection() { - this.currentHeading = 'Simple'; - } - FileUploadSection.prototype.select = function (e) { - if (e.heading) { - this.currentHeading = e.heading; - } - }; - FileUploadSection = __decorate([ - angular2_1.Component({ - selector: 'file-upload-section' - }), - angular2_1.View({ - template: "\n
\n
\n \n\n " + tabsContent + "\n\n \n
\n\n
\n

API

\n
" + doc + "
\n
\n
\n ", - directives: [simple_demo_1.SimpleDemo, ng2_bootstrap_1.tabs, angular2_1.CORE_DIRECTIVES] - }), - __metadata('design:paramtypes', []) - ], FileUploadSection); - return FileUploadSection; - })(); - exports.FileUploadSection = FileUploadSection; - - -/***/ }, - -/***/ 377: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var file_select_1 = __webpack_require__(127); - var file_drop_1 = __webpack_require__(125); - var file_uploader_1 = __webpack_require__(128); - var template = __webpack_require__(374); - var URL = 'https://evening-anchorage-3159.herokuapp.com/api/'; - var SimpleDemo = (function () { - function SimpleDemo() { - this.uploader = new file_uploader_1.FileUploader({ url: URL }); - this.hasBaseDropZoneOver = false; - this.hasAnotherDropZoneOver = false; - } - SimpleDemo.prototype.fileOverBase = function (e) { - this.hasBaseDropZoneOver = e; - }; - SimpleDemo.prototype.fileOverAnother = function (e) { - this.hasAnotherDropZoneOver = e; - }; - SimpleDemo = __decorate([ - angular2_1.Component({ - selector: 'simple-demo' - }), - angular2_1.View({ - template: template, - directives: [file_select_1.FileSelect, file_drop_1.FileDrop, angular2_1.NgClass, angular2_1.NgStyle, angular2_1.CORE_DIRECTIVES, angular2_1.FORM_DIRECTIVES] - }), - __metadata('design:paramtypes', []) - ], SimpleDemo); - return SimpleDemo; - })(); - exports.SimpleDemo = SimpleDemo; - - -/***/ }, - -/***/ 379: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var Accordion = (function () { - function Accordion() { - this.groups = []; - } - Accordion.prototype.closeOtherGroups = function (openGroup) { - if (!this.closeOthers) { - return; - } - this.groups.forEach(function (group) { - if (group !== openGroup) { - group.isOpen = false; - } - }); - }; - Accordion.prototype.addGroup = function (group) { - this.groups.push(group); - }; - Accordion.prototype.removeGroup = function (group) { - var index = this.groups.indexOf(group); - if (index !== -1) { - this.groups.slice(index, 1); - } - }; - Accordion = __decorate([ - angular2_1.Component({ - selector: 'accordion, [accordion]', - properties: ['templateUrl', 'closeOthers'], - host: { - '[class.panel-group]': 'true' - } - }), - angular2_1.View({ - template: "" - }), - __metadata('design:paramtypes', []) - ], Accordion); - return Accordion; - })(); - exports.Accordion = Accordion; - var AccordionTransclude = (function () { - function AccordionTransclude(viewRef) { - this.viewRef = viewRef; - } - AccordionTransclude.prototype.onInit = function () { - if (this.accordionTransclude) { - this.viewRef.createEmbeddedView(this.accordionTransclude); - } - }; - AccordionTransclude = __decorate([ - angular2_1.Directive({ - selector: 'accordion-transclude, [accordion-transclude]', - properties: ['accordionTransclude'] - }), - __param(0, angular2_1.Inject(angular2_1.ViewContainerRef)), - __metadata('design:paramtypes', [angular2_1.ViewContainerRef]) - ], AccordionTransclude); - return AccordionTransclude; - })(); - exports.AccordionTransclude = AccordionTransclude; - var collapse_1 = __webpack_require__(208); - var AccordionGroup = (function () { - function AccordionGroup(accordion) { - this.accordion = accordion; - } - AccordionGroup.prototype.onInit = function () { - this.panelClass = this.panelClass || 'panel-default'; - this.accordion.addGroup(this); - }; - AccordionGroup.prototype.onDestroy = function () { - this.accordion.removeGroup(this); - }; - AccordionGroup.prototype.toggleOpen = function (event) { - event.preventDefault(); - if (!this.isDisabled) { - this.isOpen = !this.isOpen; - } - }; - Object.defineProperty(AccordionGroup.prototype, "isOpen", { - get: function () { - return this._isOpen; - }, - set: function (value) { - this._isOpen = value; - if (value) { - this.accordion.closeOtherGroups(this); - } - }, - enumerable: true, - configurable: true - }); - AccordionGroup = __decorate([ - angular2_1.Component({ - selector: 'accordion-group, [accordion-group]', - properties: ['templateUrl', 'heading', 'isOpen', 'isDisabled', 'panelClass'], - host: { - '[class.panel-open]': 'isOpen' - } - }), - angular2_1.View({ - template: "\n
\n
\n

\n \n {{heading}}\n \n

\n
\n
\n
\n \n
\n
\n
\n ", - directives: [collapse_1.Collapse, AccordionTransclude, angular2_1.NgClass] - }), - __metadata('design:paramtypes', [Accordion]) - ], AccordionGroup); - return AccordionGroup; - })(); - exports.AccordionGroup = AccordionGroup; - var AccordionHeading = (function () { - function AccordionHeading(group, templateRef) { - this.group = group; - this.templateRef = templateRef; - group.headingTemplate = templateRef; - } - AccordionHeading = __decorate([ - angular2_1.Directive({ - selector: 'accordion-heading, [accordion-heading]' - }), - __metadata('design:paramtypes', [AccordionGroup, angular2_1.TemplateRef]) - ], AccordionHeading); - return AccordionHeading; - })(); - exports.AccordionHeading = AccordionHeading; - exports.accordion = [Accordion, AccordionGroup, AccordionHeading]; - - -/***/ }, - -/***/ 380: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var Alert = (function () { - function Alert(el) { - this.el = el; - this.close = new angular2_1.EventEmitter(); - this.classes = []; - this.closeable = this.closeable || el.nativeElement.getAttribute('(close)'); - } - Object.defineProperty(Alert.prototype, "dismissible", { - get: function () { - return this.closeable; - }, - set: function (v) { - this.closeable = v; - }, - enumerable: true, - configurable: true - }); - Alert.prototype.onInit = function () { - this.type = this.type || 'warning'; - this.classes[0] = 'alert-' + (this.type || 'warning'); - if (this.closeable) { - this.classes[1] = 'alert-dismissible'; - } - else { - this.classes.length = 1; - } - if (this.dismissOnTimeout) { - var close_1 = this.onClose.bind(this); - setTimeout(close_1, this.dismissOnTimeout); - } - }; - Alert.prototype.onClose = function () { - this.close.next(this); - this.closed = true; - }; - Alert = __decorate([ - angular2_1.Component({ - selector: 'alert', - inputs: ['type', 'dismissible', 'dismissOnTimeout'], - outputs: ['close'] - }), - angular2_1.View({ - template: "\n
\n \n \n
\n ", - directives: [angular2_1.NgIf, angular2_1.NgClass] - }), - __metadata('design:paramtypes', [angular2_1.ElementRef]) - ], Alert); - return Alert; - })(); - exports.Alert = Alert; - - -/***/ }, - -/***/ 381: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var ButtonCheckbox = (function () { - function ButtonCheckbox(cd) { - this.cd = cd; - this.state = false; - this.onChange = function (_) { }; - this.onTouched = function () { }; - cd.valueAccessor = this; - } - ButtonCheckbox.prototype.onInit = function () { - this.toggle(this.trueValue === this.value); - }; - Object.defineProperty(ButtonCheckbox.prototype, "trueValue", { - get: function () { - return typeof this.btnCheckboxTrue !== 'undefined' ? this.btnCheckboxTrue : true; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ButtonCheckbox.prototype, "falseValue", { - get: function () { - return typeof this.btnCheckboxFalse !== 'undefined' ? this.btnCheckboxFalse : false; - }, - enumerable: true, - configurable: true - }); - ButtonCheckbox.prototype.toggle = function (state) { - this.state = state; - this.value = this.state ? this.trueValue : this.falseValue; - }; - ButtonCheckbox.prototype.onClick = function () { - this.toggle(!this.state); - this.cd.viewToModelUpdate(this.value); - }; - ButtonCheckbox.prototype.writeValue = function (value) { - this.state = this.trueValue === value; - this.value = value; - }; - ButtonCheckbox.prototype.registerOnChange = function (fn) { - this.onChange = fn; - }; - ButtonCheckbox.prototype.registerOnTouched = function (fn) { - this.onTouched = fn; - }; - ButtonCheckbox = __decorate([ - angular2_1.Directive({ - selector: '[btn-checkbox][ng-model]', - properties: ['btnCheckboxTrue', 'btnCheckboxFalse'], - host: { - '(click)': 'onClick()', - '[class.active]': 'state' - } - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel]) - ], ButtonCheckbox); - return ButtonCheckbox; - })(); - exports.ButtonCheckbox = ButtonCheckbox; - - -/***/ }, - -/***/ 382: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var ButtonRadio = (function () { - function ButtonRadio(cd, el) { - this.cd = cd; - this.el = el; - this.onChange = function (_) { }; - this.onTouched = function () { }; - cd.valueAccessor = this; - } - ButtonRadio.prototype.onInit = function () { - this.uncheckable = typeof this.uncheckable !== 'undefined'; - }; - Object.defineProperty(ButtonRadio.prototype, "isActive", { - get: function () { - return this.btnRadio === this.value; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(ButtonRadio.prototype, "value", { - get: function () { - return this.cd.viewModel; - }, - set: function (value) { - this.cd.viewModel = value; - if (this.isActive) { - this.el.nativeElement.classList.add('active'); - } - else { - this.el.nativeElement.classList.remove('active'); - } - }, - enumerable: true, - configurable: true - }); - ButtonRadio.prototype.onClick = function () { - if (this.uncheckable && this.btnRadio === this.value) { - return this.cd.viewToModelUpdate(null); - } - this.cd.viewToModelUpdate(this.btnRadio); - }; - ButtonRadio.prototype.writeValue = function (value) { - this.value = value; - }; - ButtonRadio.prototype.registerOnChange = function (fn) { - this.onChange = fn; - }; - ButtonRadio.prototype.registerOnTouched = function (fn) { - this.onTouched = fn; - }; - ButtonRadio = __decorate([ - angular2_1.Directive({ - selector: '[btn-radio][ng-model]', - properties: ['btnRadio', 'uncheckable'], - host: { - '(click)': 'onClick()', - '[class.active]': 'isActive' - } - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel, angular2_1.ElementRef]) - ], ButtonRadio); - return ButtonRadio; - })(); - exports.ButtonRadio = ButtonRadio; - - -/***/ }, - -/***/ 383: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var ng2_bootstrap_config_1 = __webpack_require__(129); - (function (Direction) { - Direction[Direction["UNKNOWN"] = 0] = "UNKNOWN"; - Direction[Direction["NEXT"] = 1] = "NEXT"; - Direction[Direction["PREV"] = 2] = "PREV"; - })(exports.Direction || (exports.Direction = {})); - var Direction = exports.Direction; - var NAVIGATION = (_a = {}, - _a[ng2_bootstrap_config_1.Ng2BootstrapTheme.BS4] = "\n\n \n Previous\n\n\n \n Next\n\n ", - _a[ng2_bootstrap_config_1.Ng2BootstrapTheme.BS3] = "\n\n \n\n\n \n\n ", - _a - ); - var Carousel = (function () { - function Carousel() { - this.slides = []; - this.destroyed = false; - } - Carousel.prototype.onDestroy = function () { - this.destroyed = true; - }; - Object.defineProperty(Carousel.prototype, "interval", { - get: function () { - return this._interval; - }, - set: function (value) { - this._interval = value; - this.restartTimer(); - }, - enumerable: true, - configurable: true - }); - Carousel.prototype.select = function (nextSlide, direction) { - if (direction === void 0) { direction = Direction.UNKNOWN; } - var nextIndex = nextSlide.index; - if (direction === Direction.UNKNOWN) { - direction = nextIndex > this.getCurrentIndex() ? Direction.NEXT : Direction.PREV; - } - if (nextSlide && nextSlide !== this.currentSlide) { - this.goNext(nextSlide, direction); - } - }; - Carousel.prototype.goNext = function (slide, direction) { - if (this.destroyed) { - return; - } - slide.direction = direction; - slide.active = true; - if (this.currentSlide) { - this.currentSlide.direction = direction; - this.currentSlide.active = false; - } - this.currentSlide = slide; - this.restartTimer(); - }; - Carousel.prototype.getSlideByIndex = function (index) { - var len = this.slides.length; - for (var i = 0; i < len; ++i) { - if (this.slides[i].index === index) { - return this.slides[i]; - } - } - }; - Carousel.prototype.getCurrentIndex = function () { - return !this.currentSlide ? 0 : this.currentSlide.index; - }; - Carousel.prototype.next = function () { - var newIndex = (this.getCurrentIndex() + 1) % this.slides.length; - if (newIndex === 0 && this.noWrap) { - this.pause(); - return; - } - return this.select(this.getSlideByIndex(newIndex), Direction.NEXT); - }; - Carousel.prototype.prev = function () { - var newIndex = this.getCurrentIndex() - 1 < 0 ? this.slides.length - 1 : this.getCurrentIndex() - 1; - if (this.noWrap && newIndex === this.slides.length - 1) { - this.pause(); - return; - } - return this.select(this.getSlideByIndex(newIndex), Direction.PREV); - }; - Carousel.prototype.restartTimer = function () { - var _this = this; - this.resetTimer(); - var interval = +this.interval; - if (!isNaN(interval) && interval > 0) { - this.currentInterval = setInterval(function () { - var nInterval = +_this.interval; - if (_this.isPlaying && !isNaN(_this.interval) && nInterval > 0 && _this.slides.length) { - _this.next(); - } - else { - _this.pause(); - } - }, interval); - } - }; - Carousel.prototype.resetTimer = function () { - if (this.currentInterval) { - clearInterval(this.currentInterval); - this.currentInterval = null; - } - }; - Carousel.prototype.play = function () { - if (!this.isPlaying) { - this.isPlaying = true; - this.restartTimer(); - } - }; - Carousel.prototype.pause = function () { - if (!this.noPause) { - this.isPlaying = false; - this.resetTimer(); - } - }; - Carousel.prototype.addSlide = function (slide) { - slide.index = this.slides.length; - this.slides.push(slide); - if (this.slides.length === 1 || slide.active) { - this.select(this.slides[this.slides.length - 1]); - if (this.slides.length === 1) { - this.play(); - } - } - else { - slide.active = false; - } - }; - Carousel.prototype.removeSlide = function (slide) { - this.slides.splice(slide.index, 1); - if (this.slides.length === 0) { - this.currentSlide = null; - return; - } - for (var i = 0; i < this.slides.length; i++) { - this.slides[i].index = i; - } - }; - Carousel = __decorate([ - angular2_1.Component({ - selector: 'carousel, [carousel]', - properties: ['interval', 'noTransition', 'noPause', 'noWrap'] - }), - angular2_1.View({ - template: "\n
\n
    \n
  1. \n
\n
\n " + NAVIGATION[ng2_bootstrap_config_1.Ng2BootstrapConfig.theme] + "\n
\n ", - directives: [angular2_1.CORE_DIRECTIVES, angular2_1.NgClass] - }), - __metadata('design:paramtypes', []) - ], Carousel); - return Carousel; - })(); - exports.Carousel = Carousel; - var Slide = (function () { - function Slide(carousel) { - this.carousel = carousel; - } - Slide.prototype.onInit = function () { - this.carousel.addSlide(this); - }; - Slide.prototype.onDestroy = function () { - this.carousel.removeSlide(this); - }; - Slide = __decorate([ - angular2_1.Component({ - selector: 'slide, [slide]', - properties: ['direction', 'active', 'index'], - host: { - '[class.active]': 'active', - '[class.item]': 'true', - '[class.carousel-item]': 'true' - } - }), - angular2_1.View({ - template: "\n
\n \n
\n ", - directives: [angular2_1.NgClass] - }), - __metadata('design:paramtypes', [Carousel]) - ], Slide); - return Slide; - })(); - exports.Slide = Slide; - exports.carousel = [Carousel, Slide]; - var _a; - - -/***/ }, - -/***/ 384: -/***/ function(module, exports, __webpack_require__) { - - var dropdown_1 = __webpack_require__(76); - var dropdown_menu_1 = __webpack_require__(210); - var dropdown_toggle_1 = __webpack_require__(212); - exports.dropdown = [dropdown_1.Dropdown, dropdown_menu_1.DropdownMenu, dropdown_toggle_1.DropdownToggle]; - - -/***/ }, - -/***/ 385: -/***/ function(module, exports, __webpack_require__) { - - var __extends = (this && this.__extends) || function (d, b) { - for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var paginationConfig = { - maxSize: void 0, - itemsPerPage: 10, - boundaryLinks: false, - directionLinks: true, - firstText: 'First', - previousText: 'Previous', - nextText: 'Next', - lastText: 'Last', - rotate: true - }; - var Pagination = (function () { - function Pagination(cd, renderer, elementRef) { - this.cd = cd; - this.renderer = renderer; - this.elementRef = elementRef; - this.numPages = new angular2_1.EventEmitter(); - this.pageChanged = new angular2_1.EventEmitter(); - this.inited = false; - this.onChange = function (_) { }; - this.onTouched = function () { }; - cd.valueAccessor = this; - this.config = this.config || paginationConfig; - } - Object.defineProperty(Pagination.prototype, "itemsPerPage", { - get: function () { - return this._itemsPerPage; - }, - set: function (v) { - this._itemsPerPage = v; - this.totalPages = this.calculateTotalPages(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Pagination.prototype, "totalItems", { - get: function () { - return this._totalItems; - }, - set: function (v) { - this._totalItems = v; - this.totalPages = this.calculateTotalPages(); - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Pagination.prototype, "totalPages", { - get: function () { - return this._totalPages; - }, - set: function (v) { - this._totalPages = v; - this.numPages.next(v); - if (this.inited) { - this.selectPage(this.page); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Pagination.prototype, "page", { - get: function () { - return this._page; - }, - set: function (value) { - this._page = (value > this.totalPages) ? this.totalPages : (value || 1); - this.pageChanged.next({ - page: this._page, - itemsPerPage: this.itemsPerPage - }); - }, - enumerable: true, - configurable: true - }); - Pagination.prototype.onInit = function () { - this.classMap = this.elementRef.nativeElement.getAttribute('class') || ''; - this.maxSize = typeof this.maxSize !== 'undefined' ? this.maxSize : paginationConfig.maxSize; - this.rotate = typeof this.rotate !== 'undefined' ? this.rotate : paginationConfig.rotate; - this.boundaryLinks = typeof this.boundaryLinks !== 'undefined' ? this.boundaryLinks : paginationConfig.boundaryLinks; - this.directionLinks = typeof this.directionLinks !== 'undefined' ? this.directionLinks : paginationConfig.directionLinks; - this.itemsPerPage = typeof this.itemsPerPage !== 'undefined' ? this.itemsPerPage : paginationConfig.itemsPerPage; - this.totalPages = this.calculateTotalPages(); - this.pages = this.getPages(this.page, this.totalPages); - this.page = this.cd.value; - this.inited = true; - }; - Pagination.prototype.writeValue = function (value) { - this.page = value; - this.pages = this.getPages(this.page, this.totalPages); - }; - Pagination.prototype.selectPage = function (page, event) { - if (event) { - event.preventDefault(); - } - if (!this.disabled) { - if (event && event.target) { - var target = event.target; - target.blur(); - } - this.writeValue(page); - this.cd.viewToModelUpdate(this.page); - } - }; - Pagination.prototype.getText = function (key) { - return this[key + 'Text'] || paginationConfig[key + 'Text']; - }; - Pagination.prototype.noPrevious = function () { - return this.page === 1; - }; - Pagination.prototype.noNext = function () { - return this.page === this.totalPages; - }; - Pagination.prototype.makePage = function (number, text, isActive) { - return { - number: number, - text: text, - active: isActive - }; - }; - Pagination.prototype.getPages = function (currentPage, totalPages) { - var pages = []; - var startPage = 1; - var endPage = totalPages; - var isMaxSized = typeof this.maxSize !== 'undefined' && this.maxSize < totalPages; - if (isMaxSized) { - if (this.rotate) { - startPage = Math.max(currentPage - Math.floor(this.maxSize / 2), 1); - endPage = startPage + this.maxSize - 1; - if (endPage > totalPages) { - endPage = totalPages; - startPage = endPage - this.maxSize + 1; - } - } - else { - startPage = ((Math.ceil(currentPage / this.maxSize) - 1) * this.maxSize) + 1; - endPage = Math.min(startPage + this.maxSize - 1, totalPages); - } - } - for (var number = startPage; number <= endPage; number++) { - var page = this.makePage(number, number.toString(), number === currentPage); - pages.push(page); - } - if (isMaxSized && !this.rotate) { - if (startPage > 1) { - var previousPageSet = this.makePage(startPage - 1, '...', false); - pages.unshift(previousPageSet); - } - if (endPage < totalPages) { - var nextPageSet = this.makePage(endPage + 1, '...', false); - pages.push(nextPageSet); - } - } - return pages; - }; - Pagination.prototype.calculateTotalPages = function () { - var totalPages = this.itemsPerPage < 1 ? 1 : Math.ceil(this.totalItems / this.itemsPerPage); - return Math.max(totalPages || 0, 1); - }; - Pagination.prototype.registerOnChange = function (fn) { - this.onChange = fn; - }; - Pagination.prototype.registerOnTouched = function (fn) { - this.onTouched = fn; - }; - Pagination = __decorate([ - angular2_1.Component({ - selector: 'pagination[ng-model], [pagination][ng-model]', - properties: [ - 'rotate', 'disabled', - 'totalItems', 'itemsPerPage', 'maxSize', - 'boundaryLinks', 'directionLinks', - 'firstText', 'previousText', 'nextText', 'lastText' - ], - events: ['numPages', 'pageChanged'] - }), - angular2_1.View({ - template: "\n \n ", - directives: [angular2_1.CORE_DIRECTIVES, angular2_1.NgClass], - encapsulation: angular2_1.ViewEncapsulation.None - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel, angular2_1.Renderer, angular2_1.ElementRef]) - ], Pagination); - return Pagination; - })(); - exports.Pagination = Pagination; - var pagerConfig = { - itemsPerPage: 10, - previousText: '« Previous', - nextText: 'Next »', - align: true - }; - var Pager = (function (_super) { - __extends(Pager, _super); - function Pager(cd, renderer, elementRef) { - _super.call(this, cd, renderer, elementRef); - this.align = pagerConfig.align; - this.config = pagerConfig; - } - Pager = __decorate([ - angular2_1.Component({ - selector: 'pager[ng-model], [pager][ng-model]', - properties: [ - 'align', - 'totalItems', 'itemsPerPage', - 'previousText', 'nextText', - ] - }), - angular2_1.View({ - template: "\n \n ", - directives: [angular2_1.NgClass] - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel, angular2_1.Renderer, angular2_1.ElementRef]) - ], Pager); - return Pager; - })(Pagination); - exports.Pager = Pager; - exports.pagination = [Pagination, Pager]; - - -/***/ }, - -/***/ 386: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var progressConfig = { - animate: true, - max: 100 - }; - var Progress = (function () { - function Progress() { - this.bars = []; - } - Progress.prototype.onInit = function () { - this.animate = this.animate !== false; - this.max = typeof this.max === 'number' ? this.max : progressConfig.max; - }; - Object.defineProperty(Progress.prototype, "max", { - get: function () { - return this._max; - }, - set: function (v) { - this._max = v; - this.bars.forEach(function (bar) { - bar.recalculatePercentage(); - }); - }, - enumerable: true, - configurable: true - }); - Progress.prototype.addBar = function (bar) { - if (!this.animate) { - bar.transition = 'none'; - } - this.bars.push(bar); - }; - Progress.prototype.removeBar = function (bar) { - this.bars.splice(this.bars.indexOf(bar), 1); - }; - Progress = __decorate([ - angular2_1.Directive({ - selector: 'bs-progress, [progress]', - properties: ['animate', 'max'], - host: { - 'class': 'progress', - '[attr.max]': 'max' - } - }), - __metadata('design:paramtypes', []) - ], Progress); - return Progress; - })(); - exports.Progress = Progress; - var Bar = (function () { - function Bar(progress) { - this.progress = progress; - this.percent = 0; - } - Bar.prototype.onInit = function () { - this.progress.addBar(this); - }; - Bar.prototype.onDestroy = function () { - this.progress.removeBar(this); - }; - Object.defineProperty(Bar.prototype, "value", { - get: function () { - return this._value; - }, - set: function (v) { - if (!v && v !== 0) { - return; - } - this._value = v; - this.recalculatePercentage(); - }, - enumerable: true, - configurable: true - }); - Bar.prototype.recalculatePercentage = function () { - this.percent = +(100 * this.value / this.progress.max).toFixed(2); - var totalPercentage = this.progress.bars.reduce(function (total, bar) { - return total + bar.percent; - }, 0); - if (totalPercentage > 100) { - this.percent -= totalPercentage - 100; - } - }; - Bar = __decorate([ - angular2_1.Component({ - selector: 'bar, [bar]', - properties: ['type', 'value'] - }), - angular2_1.View({ - template: "\n
\n", - directives: [angular2_1.NgStyle, angular2_1.NgClass], - encapsulation: angular2_1.ViewEncapsulation.None - }), - __param(0, angular2_1.Host()), - __metadata('design:paramtypes', [Progress]) - ], Bar); - return Bar; - })(); - exports.Bar = Bar; - var Progressbar = (function () { - function Progressbar() { - } - Progressbar = __decorate([ - angular2_1.Component({ - selector: 'progressbar, [progressbar]', - properties: ['animate', 'max', 'type', 'value'] - }), - angular2_1.View({ - template: "\n
\n \n \n \n
\n ", - directives: [Progress, Bar] - }), - __metadata('design:paramtypes', []) - ], Progressbar); - return Progressbar; - })(); - exports.Progressbar = Progressbar; - exports.progressbar = [Progress, Bar, Progressbar]; - - -/***/ }, - -/***/ 387: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - var Rating = (function () { - function Rating(cd) { - this.cd = cd; - this.onHover = new angular2_1.EventEmitter(); - this.onLeave = new angular2_1.EventEmitter(); - this.onChange = function (_) { }; - this.onTouched = function () { }; - cd.valueAccessor = this; - } - Rating.prototype.onInit = function () { - this.max = typeof this.max !== 'undefined' ? this.max : 5; - this.readonly = this.readonly === true; - this.stateOn = typeof this.stateOn !== 'undefined' ? this.stateOn : 'glyphicon-star'; - this.stateOff = typeof this.stateOff !== 'undefined' ? this.stateOff : 'glyphicon-star-empty'; - this.titles = typeof this.titles !== 'undefined' && this.titles.length > 0 ? this.titles : ['one', 'two', 'three', 'four', 'five']; - this.range = this.buildTemplateObjects(this.ratingStates, this.max); - }; - Rating.prototype.writeValue = function (value) { - if (value % 1 !== value) { - this.value = Math.round(value); - this.preValue = value; - return; - } - this.preValue = value; - this.value = value; - }; - Rating.prototype.buildTemplateObjects = function (ratingStates, max) { - ratingStates = ratingStates || []; - var count = ratingStates.length || max; - var result = []; - for (var i = 0; i < count; i++) { - result.push(Object.assign({ - index: i, - stateOn: this.stateOn, - stateOff: this.stateOff, - title: this.titles[i] || i + 1 - }, ratingStates[i] || {})); - } - return result; - }; - Rating.prototype.rate = function (value) { - if (!this.readonly && value >= 0 && value <= this.range.length) { - this.writeValue(value); - this.cd.viewToModelUpdate(value); - } - }; - Rating.prototype.enter = function (value) { - if (!this.readonly) { - this.value = value; - this.onHover.next(value); - } - }; - Rating.prototype.reset = function () { - this.value = this.preValue; - this.onLeave.next(this.value); - }; - Rating.prototype.onKeydown = function (event) { - if ([37, 38, 39, 40].indexOf(event.which) === -1) { - return; - } - event.preventDefault(); - event.stopPropagation(); - var sign = event.which === 38 || event.which === 39 ? 1 : -1; - this.rate(this.value + sign); - }; - Rating.prototype.registerOnChange = function (fn) { - this.onChange = fn; - }; - Rating.prototype.registerOnTouched = function (fn) { - this.onTouched = fn; - }; - Rating = __decorate([ - angular2_1.Component({ - selector: 'rating[ng-model]', - properties: [ - 'max', 'readonly', 'titles', - 'stateOn', 'stateOff', - 'ratingStates' - ], - events: ['onHover', 'onLeave'], - host: { - '(keydown)': 'onKeydown($event)' - } - }), - angular2_1.View({ - template: "\n \n \n \n ", - directives: [angular2_1.NgClass, angular2_1.NgFor] - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel]) - ], Rating); - return Rating; - })(); - exports.Rating = Rating; - - -/***/ }, - -/***/ 388: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var common_1 = __webpack_require__(209); - var Tabset = (function () { - function Tabset() { - this.tabs = []; - } - Object.defineProperty(Tabset.prototype, "classMap", { - get: function () { - var map = { - 'nav-stacked': this.vertical, - 'nav-justified': this.justified - }; - map['nav-' + (this.type || 'tabs')] = true; - return map; - }, - enumerable: true, - configurable: true - }); - Tabset.prototype.onInit = function () { - this.type = this.type !== 'undefined' ? this.type : 'tabs'; - }; - Tabset.prototype.addTab = function (tab) { - this.tabs.push(tab); - tab.active = this.tabs.length === 1 && tab.active !== false; - }; - Tabset.prototype.removeTab = function (tab) { - var index = this.tabs.indexOf(tab); - if (index === -1) { - return; - } - if (tab.active && this.tabs.length > 1) { - var newActiveIndex = index === this.tabs.length - 1 ? index - 1 : index + 1; - this.tabs[newActiveIndex].active = true; - } - this.tabs.slice(index, 1); - }; - Tabset = __decorate([ - angular2_1.Component({ - selector: 'tabset', - properties: ['vertical', 'justified', 'type'] - }), - angular2_1.View({ - template: "\n \n
\n \n
\n ", - directives: [angular2_1.CORE_DIRECTIVES, angular2_1.NgClass, common_1.NgTransclude] - }), - __metadata('design:paramtypes', []) - ], Tabset); - return Tabset; - })(); - exports.Tabset = Tabset; - var Tab = (function () { - function Tab(tabset) { - this.tabset = tabset; - this.select = new angular2_1.EventEmitter(); - this.deselect = new angular2_1.EventEmitter(); - this.tabset.addTab(this); - } - Object.defineProperty(Tab.prototype, "disable", { - get: function () { - return this.disabled; - }, - set: function (v) { - console.warn('DEPRECATED use `disabled` property (not `disable`)'); - this.disabled = v; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Tab.prototype, "active", { - get: function () { - return this._active; - }, - set: function (active) { - var _this = this; - if (this.disabled && active || !active) { - if (!active) { - this._active = active; - } - this.deselect.next(this); - return; - } - this._active = active; - this.select.next(this); - this.tabset.tabs.forEach(function (tab) { - if (tab !== _this) { - tab.active = false; - } - }); - }, - enumerable: true, - configurable: true - }); - Tab.prototype.doCheck = function () { - return true; - }; - Tab.prototype.onInit = function () { - }; - Tab.prototype.onDestroy = function () { - this.tabset.removeTab(this); - }; - Tab = __decorate([ - angular2_1.Directive({ - selector: 'tab, [tab]', - properties: ['active', 'disable', 'disabled', 'heading'], - events: ['select', 'deselect'], - host: { - '[class.tab-pane]': 'true', - '[class.active]': 'active' - } - }), - __metadata('design:paramtypes', [Tabset]) - ], Tab); - return Tab; - })(); - exports.Tab = Tab; - var TabHeading = (function () { - function TabHeading(templateRef, tab) { - this.templateRef = templateRef; - tab.headingRef = templateRef; - } - TabHeading = __decorate([ - angular2_1.Directive({ selector: '[tab-heading]' }), - __metadata('design:paramtypes', [angular2_1.TemplateRef, Tab]) - ], TabHeading); - return TabHeading; - })(); - exports.TabHeading = TabHeading; - exports.tabs = [Tab, TabHeading, Tabset]; - - -/***/ }, - -/***/ 389: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - var angular2_1 = __webpack_require__(8); - exports.timepickerConfig = { - hourStep: 1, - minuteStep: 1, - showMeridian: true, - meridians: null, - readonlyInput: false, - mousewheel: true, - arrowkeys: true, - showSpinners: true, - min: void 0, - max: void 0 - }; - function isDefined(value) { - return typeof value !== 'undefined'; - } - function def(value, fn, defaultValue) { - return fn(value) ? value : defaultValue; - } - function addMinutes(date, minutes) { - var dt = new Date(date.getTime() + minutes * 60000); - var newDate = new Date(date); - newDate.setHours(dt.getHours(), dt.getMinutes()); - return newDate; - } - var Timepicker = (function () { - function Timepicker(cd) { - this.cd = cd; - this._selected = new Date(); - this.meridians = ['AM', 'PM']; - this.onChange = function (_) { }; - this.onTouched = function () { }; - cd.valueAccessor = this; - } - Object.defineProperty(Timepicker.prototype, "selected", { - get: function () { - return this._selected; - }, - set: function (v) { - if (v) { - this._selected = v; - this.updateTemplate(); - this.cd.viewToModelUpdate(this.selected); - } - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(Timepicker.prototype, "showMeridian", { - get: function () { - return this._showMeridian; - }, - set: function (value) { - this._showMeridian = value; - if (true) { - this.updateTemplate(); - return; - } - var hours = this.getHoursFromTemplate(); - var minutes = this.getMinutesFromTemplate(); - if (isDefined(hours) && isDefined(minutes)) { - this.selected.setHours(hours); - this.refresh(); - } - }, - enumerable: true, - configurable: true - }); - Timepicker.prototype.onInit = function () { - this.meridians = def(this.meridians, isDefined, exports.timepickerConfig.meridians) || ['AM', 'PM']; - this.mousewheel = def(this.mousewheel, isDefined, exports.timepickerConfig.mousewheel); - if (this.mousewheel) { - this.setupMousewheelEvents(); - } - this.arrowkeys = def(this.arrowkeys, isDefined, exports.timepickerConfig.arrowkeys); - if (this.arrowkeys) { - this.setupArrowkeyEvents(); - } - this.readonlyInput = def(this.readonlyInput, isDefined, exports.timepickerConfig.readonlyInput); - this.setupInputEvents(); - this.hourStep = def(this.hourStep, isDefined, exports.timepickerConfig.hourStep); - this.minuteStep = def(this.minuteStep, isDefined, exports.timepickerConfig.minuteStep); - this.min = def(this.min, isDefined, exports.timepickerConfig.min); - this.max = def(this.max, isDefined, exports.timepickerConfig.max); - this.showMeridian = def(this.showMeridian, isDefined, exports.timepickerConfig.showMeridian); - this.showSpinners = def(this.showSpinners, isDefined, exports.timepickerConfig.showSpinners); - }; - Timepicker.prototype.writeValue = function (v) { - if (v === this.selected) { - return; - } - if (v && v instanceof Date) { - this.selected = v; - return; - } - this.selected = v ? new Date(v) : null; - }; - Timepicker.prototype.refresh = function (type) { - this.updateTemplate(); - this.cd.viewToModelUpdate(this.selected); - }; - Timepicker.prototype.updateTemplate = function (keyboardChange) { - var hours = this.selected.getHours(); - var minutes = this.selected.getMinutes(); - if (this.showMeridian) { - hours = (hours === 0 || hours === 12) ? 12 : hours % 12; - } - this.hours = this.pad(hours); - this.minutes = this.pad(minutes); - this.meridian = this.selected.getHours() < 12 ? this.meridians[0] : this.meridians[1]; - }; - Timepicker.prototype.getHoursFromTemplate = function () { - var hours = parseInt(this.hours, 10); - var valid = this.showMeridian ? (hours > 0 && hours < 13) : (hours >= 0 && hours < 24); - if (!valid) { - return undefined; - } - if (this.showMeridian) { - if (hours === 12) { - hours = 0; - } - if (this.meridian === this.meridians[1]) { - hours = hours + 12; - } - } - return hours; - }; - Timepicker.prototype.getMinutesFromTemplate = function () { - var minutes = parseInt(this.minutes, 10); - return (minutes >= 0 && minutes < 60) ? minutes : undefined; - }; - Timepicker.prototype.pad = function (value) { - return (isDefined(value) && value.toString().length < 2) ? '0' + value : value.toString(); - }; - Timepicker.prototype.setupMousewheelEvents = function () { - }; - Timepicker.prototype.setupArrowkeyEvents = function () { - }; - Timepicker.prototype.setupInputEvents = function () { - }; - Timepicker.prototype.updateHours = function () { - if (this.readonlyInput) { - return; - } - var hours = this.getHoursFromTemplate(); - var minutes = this.getMinutesFromTemplate(); - if (!isDefined(hours) || !isDefined(minutes)) { - } - this.selected.setHours(hours); - if (this.selected < this.min || this.selected > this.max) { - } - else { - this.refresh('h'); - } - }; - Timepicker.prototype.hoursOnBlur = function (event) { - if (this.readonlyInput) { - return; - } - if (!this.invalidHours && parseInt(this.hours, 10) < 10) { - this.hours = this.pad(this.hours); - } - }; - Timepicker.prototype.updateMinutes = function () { - if (this.readonlyInput) { - return; - } - var minutes = this.getMinutesFromTemplate(); - var hours = this.getHoursFromTemplate(); - if (!isDefined(minutes) || !isDefined(hours)) { - } - this.selected.setMinutes(minutes); - if (this.selected < this.min || this.selected > this.max) { - } - else { - this.refresh('m'); - } - }; - Timepicker.prototype.minutesOnBlur = function (event) { - if (this.readonlyInput) { - return; - } - if (!this.invalidMinutes && parseInt(this.minutes, 10) < 10) { - this.minutes = this.pad(this.minutes); - } - }; - Timepicker.prototype.noIncrementHours = function () { - var incrementedSelected = addMinutes(this.selected, this.hourStep * 60); - return incrementedSelected > this.max || - (incrementedSelected < this.selected && incrementedSelected < this.min); - }; - Timepicker.prototype.noDecrementHours = function () { - var decrementedSelected = addMinutes(this.selected, -this.hourStep * 60); - return decrementedSelected < this.min || - (decrementedSelected > this.selected && decrementedSelected > this.max); - }; - Timepicker.prototype.noIncrementMinutes = function () { - var incrementedSelected = addMinutes(this.selected, this.minuteStep); - return incrementedSelected > this.max || - (incrementedSelected < this.selected && incrementedSelected < this.min); - }; - Timepicker.prototype.noDecrementMinutes = function () { - var decrementedSelected = addMinutes(this.selected, -this.minuteStep); - return decrementedSelected < this.min || - (decrementedSelected > this.selected && decrementedSelected > this.max); - }; - Timepicker.prototype.addMinutesToSelected = function (minutes) { - this.selected = addMinutes(this.selected, minutes); - this.refresh(); - }; - Timepicker.prototype.noToggleMeridian = function () { - if (this.selected.getHours() < 13) { - return addMinutes(this.selected, 12 * 60) > this.max; - } - else { - return addMinutes(this.selected, -12 * 60) < this.min; - } - }; - Timepicker.prototype.incrementHours = function () { - if (!this.noIncrementHours()) { - this.addMinutesToSelected(this.hourStep * 60); - } - }; - Timepicker.prototype.decrementHours = function () { - if (!this.noDecrementHours()) { - this.addMinutesToSelected(-this.hourStep * 60); - } - }; - Timepicker.prototype.incrementMinutes = function () { - if (!this.noIncrementMinutes()) { - this.addMinutesToSelected(this.minuteStep); - } - }; - Timepicker.prototype.decrementMinutes = function () { - if (!this.noDecrementMinutes()) { - this.addMinutesToSelected(-this.minuteStep); - } - }; - Timepicker.prototype.toggleMeridian = function () { - if (!this.noToggleMeridian()) { - var sign = this.selected.getHours() < 12 ? 1 : -1; - this.addMinutesToSelected(12 * 60 * sign); - } - }; - Timepicker.prototype.registerOnChange = function (fn) { - this.onChange = fn; - }; - Timepicker.prototype.registerOnTouched = function (fn) { - this.onTouched = fn; - }; - Timepicker = __decorate([ - angular2_1.Component({ - selector: 'timepicker[ng-model]', - properties: [ - 'hourStep', 'minuteStep', - 'meridians', 'showMeridian', - 'readonlyInput', - 'mousewheel', 'arrowkeys', - 'showSpinners', - 'min', 'max' - ] - }), - angular2_1.View({ - template: "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
 
\n \n :\n \n
 
\n ", - directives: [angular2_1.FORM_DIRECTIVES, angular2_1.NgClass] - }), - __param(0, angular2_1.Self()), - __metadata('design:paramtypes', [angular2_1.NgModel]) - ], Timepicker); - return Timepicker; - })(); - exports.Timepicker = Timepicker; - - -/***/ }, - -/***/ 390: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - var angular2_2 = __webpack_require__(8); - var position_1 = __webpack_require__(130); - var TooltipOptions = (function () { - function TooltipOptions(options) { - Object.assign(this, options); - } - return TooltipOptions; - })(); - var TooltipContainer = (function () { - function TooltipContainer(element, options) { - this.element = element; - Object.assign(this, options); - this.classMap = { 'in': false }; - this.classMap[options.placement] = true; - } - TooltipContainer.prototype.position = function (hostEl) { - this.display = 'block'; - this.top = '0px'; - this.left = '0px'; - var p = position_1.positionService - .positionElements(hostEl.nativeElement, this.element.nativeElement.children[0], this.placement, this.appendToBody); - this.top = p.top + 'px'; - this.left = p.left + 'px'; - this.classMap['in'] = true; - }; - TooltipContainer = __decorate([ - angular2_1.Component({ - selector: 'tooltip-container' - }), - angular2_1.View({ - template: "\n
\n
\n
\n {{content}}\n
\n
", - directives: [angular2_1.NgClass, angular2_1.NgStyle], - encapsulation: angular2_1.ViewEncapsulation.None - }), - __metadata('design:paramtypes', [angular2_1.ElementRef, TooltipOptions]) - ], TooltipContainer); - return TooltipContainer; - })(); - var Tooltip = (function () { - function Tooltip(element, loader) { - this.element = element; - this.loader = loader; - this.visible = false; - this.placement = 'top'; - } - Tooltip.prototype.onInit = function () { - }; - Tooltip.prototype.show = function () { - var _this = this; - if (this.visible) { - return; - } - this.visible = true; - var options = new TooltipOptions({ - content: this.content, - placement: this.placement - }); - var binding = angular2_2.Injector.resolve([ - angular2_2.bind(TooltipOptions).toValue(options) - ]); - this.tooltip = this.loader - .loadNextToLocation(TooltipContainer, this.element, binding) - .then(function (componentRef) { - componentRef.instance.position(_this.element); - return componentRef; - }); - }; - Tooltip.prototype.hide = function () { - if (!this.visible) { - return; - } - this.visible = false; - this.tooltip.then(function (componentRef) { - componentRef.dispose(); - return componentRef; - }); - }; - Tooltip = __decorate([ - angular2_1.Directive({ - selector: '[tooltip]', - properties: [ - 'content:tooltip', - 'placement:tooltip-placement', - 'appendToBody', - 'isOpen: tooltip-is-open', - 'enable: tooltip-enable' - ], - host: { - '(mouseenter)': 'show($event, $targe)', - '(mouseleave)': 'hide($event, $targe)', - '(focusin)': 'show($event, $targe)', - '(focusout)': 'hide($event, $targe)' - } - }), - __metadata('design:paramtypes', [angular2_1.ElementRef, angular2_1.DynamicComponentLoader]) - ], Tooltip); - return Tooltip; - })(); - exports.Tooltip = Tooltip; - exports.tooltip = [Tooltip, TooltipContainer]; - - -/***/ }, - -/***/ 391: -/***/ function(module, exports, __webpack_require__) { - - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - 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; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - }; - var angular2_1 = __webpack_require__(8); - function setProperty(renderer, elementRef, propName, propValue) { - renderer.setElementProperty(elementRef, propName, propValue); - } - var angular2_2 = __webpack_require__(8); - var ng2_bootstrap_config_1 = __webpack_require__(129); - var position_1 = __webpack_require__(130); - var TEMPLATE = (_a = {}, - _a[ng2_bootstrap_config_1.Ng2BootstrapTheme.BS4] = "\n
\n \n
\n ", - _a[ng2_bootstrap_config_1.Ng2BootstrapTheme.BS3] = "\n \n ", - _a - ); - var TypeaheadOptions = (function () { - function TypeaheadOptions(options) { - Object.assign(this, options); - } - return TypeaheadOptions; - })(); - exports.TypeaheadOptions = TypeaheadOptions; - var TypeaheadContainer = (function () { - function TypeaheadContainer(element, options) { - this.element = element; - this._matches = []; - Object.assign(this, options); - } - Object.defineProperty(TypeaheadContainer.prototype, "matches", { - get: function () { - return this._matches; - }, - set: function (value) { - this._matches = value; - if (this._matches.length > 0) { - this._active = this._matches[0]; - } - }, - enumerable: true, - configurable: true - }); - TypeaheadContainer.prototype.position = function (hostEl) { - this.display = 'block'; - this.top = '0px'; - this.left = '0px'; - var p = position_1.positionService - .positionElements(hostEl.nativeElement, this.element.nativeElement.children[0], this.placement, false); - this.top = p.top + 'px'; - this.left = p.left + 'px'; - }; - TypeaheadContainer.prototype.selectActiveMatch = function () { - this.selectMatch(this._active); - }; - TypeaheadContainer.prototype.prevActiveMatch = function () { - var index = this.matches.indexOf(this._active); - this._active = this.matches[index - 1 < 0 ? this.matches.length - 1 : index - 1]; - }; - TypeaheadContainer.prototype.nextActiveMatch = function () { - var index = this.matches.indexOf(this._active); - this._active = this.matches[index + 1 > this.matches.length - 1 ? 0 : index + 1]; - }; - TypeaheadContainer.prototype.selectActive = function (value) { - this._active = value; - }; - TypeaheadContainer.prototype.isActive = function (value) { - return this._active === value; - }; - TypeaheadContainer.prototype.selectMatch = function (value, e) { - if (e === void 0) { e = null; } - if (e) { - e.stopPropagation(); - e.preventDefault(); - } - this.parent.changeModel(value); - this.parent.typeaheadOnSelect.next({ - item: value - }); - return false; - }; - TypeaheadContainer.prototype.escapeRegexp = function (queryToEscape) { - return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1'); - }; - TypeaheadContainer.prototype.hightlight = function (item, query) { - return query ? item.replace(new RegExp(this.escapeRegexp(query), 'gi'), '$&') : item; - }; - ; - TypeaheadContainer = __decorate([ - angular2_1.Component({ - selector: 'typeahead-container' - }), - angular2_1.View({ - template: TEMPLATE[ng2_bootstrap_config_1.Ng2BootstrapConfig.theme], - directives: [angular2_1.CORE_DIRECTIVES, angular2_1.NgClass, angular2_1.NgStyle], - encapsulation: angular2_1.ViewEncapsulation.None - }), - __metadata('design:paramtypes', [angular2_1.ElementRef, TypeaheadOptions]) - ], TypeaheadContainer); - return TypeaheadContainer; - })(); - exports.TypeaheadContainer = TypeaheadContainer; - var Typeahead = (function () { - function Typeahead(cd, element, renderer, loader) { - this.cd = cd; - this.element = element; - this.renderer = renderer; - this.loader = loader; - this.typeaheadLoading = new angular2_1.EventEmitter(); - this.typeaheadNoResults = new angular2_1.EventEmitter(); - this.typeaheadOnSelect = new angular2_1.EventEmitter(); - this.async = null; - this._matches = []; - this.placement = 'bottom-left'; - } - Object.defineProperty(Typeahead.prototype, "matches", { - get: function () { - return this._matches; - }, - enumerable: true, - configurable: true - }); - Typeahead.prototype.debounce = function (func, wait) { - var timeout; - var args; - var timestamp; - var waitOriginal = wait; - return function () { - args = [].slice.call(arguments, 0); - timestamp = Date.now(); - wait = this.container ? waitOriginal : this.waitMs; - var later = function () { - var last = Date.now() - timestamp; - if (last < wait) { - timeout = setTimeout(later, wait - last); - } - else { - timeout = null; - func.apply(this, args); - } - }; - if (!timeout) { - timeout = setTimeout(later, wait); - } - }; - }; - Typeahead.prototype.processMatches = function () { - this._matches = []; - if (this.cd.model.toString().length >= this.minLength) { - for (var i = 0; i < this.source.length; i++) { - var match = void 0; - if (typeof this.source[i] === 'object' && - this.source[i][this.field]) { - match = this.source[i][this.field]; - } - if (typeof this.source[i] === 'string') { - match = this.source[i]; - } - if (!match) { - console.log('Invalid match type', typeof this.source[i], this.field); - continue; - } - if (match.toLowerCase().indexOf(this.cd.model.toString().toLowerCase()) >= 0) { - this._matches.push(match); - if (this._matches.length > this.optionsLimit - 1) { - break; - } - } - } - } - }; - Typeahead.prototype.finalizeAsyncCall = function () { - this.typeaheadLoading.next(false); - this.typeaheadNoResults.next(this.cd.model.toString().length >= - this.minLength && this.matches.length <= 0); - if (this.cd.model.toString().length <= 0 || this._matches.length <= 0) { - this.hide(); - return; - } - if (this.container && this._matches.length > 0) { - this.container.query = this.cd.model; - this.container.matches = this._matches; - } - if (!this.container && this._matches.length > 0) { - this.show(this._matches); - } - }; - Typeahead.prototype.onInit = function () { - var _this = this; - this.optionsLimit = this.optionsLimit || 20; - this.minLength = this.minLength || 1; - this.waitMs = this.waitMs || 0; - if (this.async === null && typeof this.source !== 'function') { - this.async = false; - } - if (typeof this.source === 'function') { - this.async = true; - } - if (this.async === true) { - this.debouncer = this.debounce(function () { - if (typeof _this.source === 'function') { - _this.source().then(function (matches) { - _this._matches = []; - if (_this.cd.model.toString().length >= _this.minLength) { - for (var i = 0; i < matches.length; i++) { - _this._matches.push(matches[i]); - if (_this._matches.length > _this.optionsLimit - 1) { - break; - } - } - } - _this.finalizeAsyncCall(); - }); - } - if (typeof _this.source === 'object' && _this.source.length) { - _this.processMatches(); - _this.finalizeAsyncCall(); - } - }, 100); - } - }; - Typeahead.prototype.onChange = function (e) { - if (this.container) { - if (e.keyCode === 27) { - this.hide(); - return; - } - if (e.keyCode === 38) { - this.container.prevActiveMatch(); - return; - } - if (e.keyCode === 40) { - this.container.nextActiveMatch(); - return; - } - if (e.keyCode === 13) { - this.container.selectActiveMatch(); - return; - } - } - this.typeaheadLoading.next(true); - if (this.async === true) { - this.debouncer(); - } - if (this.async === false) { - this.processMatches(); - this.finalizeAsyncCall(); - } - }; - Typeahead.prototype.changeModel = function (value) { - this.cd.viewToModelUpdate(value); - setProperty(this.renderer, this.element, 'value', value); - this.hide(); - }; - Typeahead.prototype.show = function (matches) { - var _this = this; - var options = new TypeaheadOptions({ - placement: this.placement, - animation: false - }); - var binding = angular2_2.Injector.resolve([ - angular2_2.bind(TypeaheadOptions).toValue(options) - ]); - this.popup = this.loader - .loadNextToLocation(TypeaheadContainer, this.element, binding) - .then(function (componentRef) { - componentRef.instance.position(_this.element); - _this.container = componentRef.instance; - _this.container.parent = _this; - _this.container.query = _this.cd.model; - _this.container.matches = matches; - _this.element.nativeElement.focus(); - return componentRef; - }); - }; - Typeahead.prototype.hide = function () { - var _this = this; - if (this.container) { - this.popup.then(function (componentRef) { - componentRef.dispose(); - _this.container = null; - return componentRef; - }); - } - }; - Typeahead = __decorate([ - angular2_1.Directive({ - selector: 'typeahead, [typeahead]', - properties: [ - 'source:typeahead', - 'appendToBody:typeaheadAppendToBody', - 'editable:typeaheadEditable', - 'focusFirst:typeaheadFocusFirst', - 'inputFormatter:typeaheadInputFormatter', - 'minLength:typeaheadMinLength', - 'selectOnExact:typeaheadSelectOnExact', - 'templateUrl:typeaheadTemplateUrl', - 'popupTemplateUrl:typeaheadPopupTemplateUrl', - 'waitMs:typeaheadWaitMs', - 'optionsLimit:typeaheadOptionsLimit', - 'selectOnBlur:typeaheadSelectOnBlur', - 'focusOnSelect:typeaheadFocusOnSelect', - 'field:typeaheadOptionField', - 'async:typeaheadAsync' - ], - events: ['typeaheadLoading', 'typeaheadNoResults', 'typeaheadOnSelect'], - host: { - '(keyup)': 'onChange($event)' - } - }), - __metadata('design:paramtypes', [angular2_1.NgModel, angular2_1.ElementRef, angular2_1.Renderer, angular2_1.DynamicComponentLoader]) - ], Typeahead); - return Typeahead; - })(); - exports.Typeahead = Typeahead; - exports.typeahead = [Typeahead]; - var _a; - - -/***/ }, - -/***/ 392: -/***/ function(module, exports, __webpack_require__) { - - function __export(m) { - for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; - } - __export(__webpack_require__(379)); - __export(__webpack_require__(380)); - __export(__webpack_require__(382)); - __export(__webpack_require__(381)); - __export(__webpack_require__(384)); - __export(__webpack_require__(76)); - __export(__webpack_require__(210)); - __export(__webpack_require__(211)); - __export(__webpack_require__(212)); - __export(__webpack_require__(383)); - __export(__webpack_require__(208)); - __export(__webpack_require__(385)); - __export(__webpack_require__(386)); - __export(__webpack_require__(387)); - __export(__webpack_require__(388)); - __export(__webpack_require__(389)); - __export(__webpack_require__(390)); - __export(__webpack_require__(391)); - __export(__webpack_require__(130)); - __export(__webpack_require__(209)); - __export(__webpack_require__(129)); - - -/***/ } - -}); +webpackJsonp([1],[function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(172),i=n(3),r=n(7),p=n(243),c=n(229),l=function(){function t(){}return t=s([i.Component({selector:"app"}),i.View({template:'\n
\n
\n

ng2-file-upload

\n

The Angular2 File Upload directives

\n View on GitHub\n
\n
\n
\n
\n
\n
\n\n
\n
'+c+'
\n\n \n
\n\n \n ',directives:[r.NgClass,p.FileUploadSection]}),a("design:paramtypes",[])],t)}();e.Demo=l,o.bootstrap(l)},,,,,,,,function(t,e,n){"use strict";function s(t){a.isBlank(e.DOM)&&(e.DOM=t)}var a=n(1);e.DOM=null,e.setRootDomAdapter=s;var o=function(){function t(){}return t}();e.DomAdapter=o},,,,,,,function(t,e,n){"use strict";function s(t){return d.StringWrapper.replaceAllMapped(t,f,function(t){return"-"+t[1].toLowerCase()})}function a(t){return d.StringWrapper.replaceAllMapped(t,m,function(t){return t[1].toUpperCase()})}function o(t){return d.isBlank(t)?null:"'"+r(t,g)+"'"}function i(t){return d.isBlank(t)?null:'"'+r(t,y)+'"'}function r(t,e){return d.StringWrapper.replaceAllMapped(t,e,function(t){return"$"==t[0]?d.IS_DART?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]})}function p(t){return d.IS_DART?"const "+t+" = ":"var "+t+" = exports['"+t+"'] = "}function c(t){return d.IS_DART?"const "+t:"new "+t}function l(t,e,n){return void 0===n&&(n=""),d.IS_DART?n+"("+t.join(",")+") => "+e:"function "+n+"("+t.join(",")+") { return "+e+"; }"}function u(t){return d.IS_DART?"'${"+t+"}'":t}function h(t,e){var n=d.StringWrapper.split(t.trim(),/\s*:\s*/g);return n.length>1?n:e}var d=n(1),f=/([A-Z])/g,m=/-([a-z])/g,g=/'|\\|\n|\r|\$/g,y=/"|\\|\n|\r|\$/g;e.MODULE_SUFFIX=d.IS_DART?".dart":".js",e.camelCaseToDashCase=s,e.dashCaseToCamelCase=a,e.escapeSingleQuoteString=o,e.escapeDoubleQuoteString=i,e.codeGenExportVariable=p,e.codeGenConstConstructorCall=c,e.codeGenValueFn=l,e.codeGenToString=u,e.splitAtColon=h},,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(1),r=n(4),p=n(5),c=n(57),l=n(2);e.EVENT_MANAGER_PLUGINS=i.CONST_EXPR(new p.OpaqueToken("EventManagerPlugins"));var u=function(){function t(t,e){var n=this;this._zone=e,t.forEach(function(t){return t.manager=n}),this._plugins=l.ListWrapper.reversed(t)}return t.prototype.addEventListener=function(t,e,n){var s=this._findPluginFor(e);s.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var s=this._findPluginFor(e);return s.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){for(var e=this._plugins,n=0;n",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"}),function(t){t[t.RAW_TEXT=0]="RAW_TEXT",t[t.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",t[t.PARSABLE_DATA=2]="PARSABLE_DATA"}(e.HtmlTagContentType||(e.HtmlTagContentType={}));var r=e.HtmlTagContentType,p=function(){function t(t){var e=this,n=void 0===t?{}:t,s=n.closedByChildren,a=n.requiredParents,o=n.implicitNamespacePrefix,p=n.contentType,c=n.closedByParent,l=n.isVoid,u=n.ignoreFirstLf;this.closedByChildren={},this.closedByParent=!1,i.isPresent(s)&&s.length>0&&s.forEach(function(t){return e.closedByChildren[t]=!0}),this.isVoid=i.normalizeBool(l),this.closedByParent=i.normalizeBool(c)||this.isVoid,i.isPresent(a)&&a.length>0&&(this.requiredParents={},this.parentToAdd=a[0],a.forEach(function(t){return e.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=i.isPresent(p)?p:r.PARSABLE_DATA,this.ignoreFirstLf=i.normalizeBool(u)}return t.prototype.requireExtraParent=function(t){if(i.isBlank(this.requiredParents))return!1;if(i.isBlank(t))return!0;var e=t.toLowerCase();return 1!=this.requiredParents[e]&&"template"!=e},t.prototype.isClosedByChild=function(t){return this.isVoid||i.normalizeBool(this.closedByChildren[t.toLowerCase()])},t}();e.HtmlTagDefinition=p;var c={area:new p({isVoid:!0}),embed:new p({isVoid:!0}),link:new p({isVoid:!0}),img:new p({isVoid:!0}),input:new p({isVoid:!0}),param:new p({isVoid:!0}),hr:new p({isVoid:!0}),br:new p({isVoid:!0}),source:new p({isVoid:!0}),track:new p({isVoid:!0}),wbr:new p({isVoid:!0}),p:new p({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new p({closedByChildren:["tbody","tfoot"]}),tbody:new p({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new p({closedByChildren:["tbody"],closedByParent:!0}),tr:new p({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new p({closedByChildren:["td","th"],closedByParent:!0}),th:new p({closedByChildren:["td","th"],closedByParent:!0}),col:new p({requiredParents:["colgroup"],isVoid:!0}),svg:new p({implicitNamespacePrefix:"svg"}),math:new p({implicitNamespacePrefix:"math"}),li:new p({closedByChildren:["li"],closedByParent:!0}),dt:new p({closedByChildren:["dt","dd"]}),dd:new p({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new p({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new p({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new p({closedByChildren:["optgroup"],closedByParent:!0}),option:new p({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new p({ignoreFirstLf:!0}),listing:new p({ignoreFirstLf:!0}),style:new p({contentType:r.RAW_TEXT}),script:new p({contentType:r.RAW_TEXT}),title:new p({contentType:r.ESCAPABLE_RAW_TEXT}),textarea:new p({contentType:r.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},l=new p;e.getHtmlTagDefinition=s;var u=/^@([^:]+):(.+)/g;e.splitNsName=a,e.getNsPrefix=o},function(t,e,n){"use strict";function s(t){return"#MODULE["+t+"]"}var a=n(1),o=/#MODULE\[([^\]]*)\]/g;e.moduleRef=s;var i=function(){function t(t,e){this.moduleUrl=t,this.sourceWithModuleRefs=e}return t.prototype.getSourceWithImports=function(){var t=this,e={},n=[],s=a.StringWrapper.replaceAllMapped(this.sourceWithModuleRefs,o,function(s){var o=s[1],i=e[o];return a.isBlank(i)&&(o==t.moduleUrl?i="":(i="import"+n.length,n.push([o,i])),e[o]=i),i.length>0?i+".":""});return new c(s,n)},t}();e.SourceModule=i;var r=function(){function t(t,e){this.declarations=t,this.expression=e}return t}();e.SourceExpression=r;var p=function(){function t(t,e){this.declarations=t,this.expressions=e}return t}();e.SourceExpressions=p;var c=function(){function t(t,e){this.source=t,this.imports=e}return t}();e.SourceWithImports=c},function(t,e,n){"use strict";function s(){return new y}function a(t){var e=i(t);return e&&e[v.Scheme]||""}function o(t,e,n,s,a,o,i){var r=[];return f.isPresent(t)&&r.push(t+":"),f.isPresent(n)&&(r.push("//"),f.isPresent(e)&&r.push(e+"@"),r.push(n),f.isPresent(s)&&r.push(":"+s)),f.isPresent(a)&&r.push(a),f.isPresent(o)&&r.push("?"+o),f.isPresent(i)&&r.push("#"+i),r.join("")}function i(t){return f.RegExpWrapper.firstMatch(k,t)}function r(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",s=t.split("/"),a=[],o=0,i=0;i0?a.pop():o++;break;default:a.push(r)}}if(""==e){for(;o-- >0;)a.unshift("..");0===a.length&&a.push(".")}return e+a.join("/")+n}function p(t){var e=t[v.Path];return e=f.isBlank(e)?"":r(e),t[v.Path]=e,o(t[v.Scheme],t[v.UserInfo],t[v.Domain],t[v.Port],e,t[v.QueryData],t[v.Fragment])}function c(t,e){var n=i(encodeURI(e)),s=i(t);if(f.isPresent(n[v.Scheme]))return p(n);n[v.Scheme]=s[v.Scheme];for(var a=v.Scheme;a<=v.Port;a++)f.isBlank(n[a])&&(n[a]=s[a]);if("/"==n[v.Path][0])return p(n);var o=s[v.Path];f.isBlank(o)&&(o="/");var r=o.lastIndexOf("/");return o=o.substring(0,r+1)+n[v.Path],n[v.Path]=o,p(n)}var l=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},h=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},d=n(5),f=n(1),m=n(29),g=n(5);e.createWithoutPackagePrefix=s,e.DEFAULT_PACKAGE_URL_PROVIDER=new g.Provider(m.PACKAGE_ROOT_URL,{useValue:"/"});var y=function(){function t(t){void 0===t&&(t=null),f.isPresent(t)&&(this._packagePrefix=f.StringWrapper.stripRight(t,"/")+"/")}return t.prototype.resolve=function(t,e){var n=e;return f.isPresent(t)&&t.length>0&&(n=c(t,n)),f.isPresent(this._packagePrefix)&&"package"==a(n)&&(n=n.replace("package:",this._packagePrefix)),n},t=l([d.Injectable(),h(0,d.Inject(m.PACKAGE_ROOT_URL)),u("design:paramtypes",[String])],t)}();e.UrlResolver=y,e.getUrlScheme=a;var v,k=f.RegExpWrapper.create("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!function(t){t[t.Scheme=1]="Scheme",t[t.UserInfo=2]="UserInfo",t[t.Domain=3]="Domain",t[t.Port=4]="Port",t[t.Path=5]="Path",t[t.QueryData=6]="QueryData",t[t.Fragment=7]="Fragment"}(v||(v={}))},,,,,,,,,function(t,e,n){"use strict";var s=n(5),a=n(1);e.DOCUMENT=a.CONST_EXPR(new s.OpaqueToken("DocumentToken"))},,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(t){this.element=t,this.fileOver=new o.EventEmitter}return t.prototype.getOptions=function(){return this.uploader.options},t.prototype.getFilters=function(){},t.prototype.onDrop=function(t){var e=this._getTransfer(t);if(e){var n=this.getOptions(),s=this.getFilters();this._preventAndStop(t),this.uploader.addToQueue(e.files,n,s),this.fileOver.next(!1)}},t.prototype.onDragOver=function(t){var e=this._getTransfer(t);this._haveFiles(e.types)&&(e.dropEffect="copy",this._preventAndStop(t),this.fileOver.next(!0))},t.prototype.onDragLeave=function(t){t.currentTarget!==this.element[0]&&(this._preventAndStop(t),this.fileOver.next(!1))},t.prototype._getTransfer=function(t){return t.dataTransfer?t.dataTransfer:t.originalEvent.dataTransfer},t.prototype._preventAndStop=function(t){t.preventDefault(),t.stopPropagation()},t.prototype._haveFiles=function(t){return t?t.indexOf?-1!==t.indexOf("Files"):t.contains?t.contains("Files"):!1:!1},t.prototype._addOverClass=function(t){t.addOverClass()},t.prototype._removeOverClass=function(t){t.removeOverClass()},t=s([o.Directive({selector:"[ng2-file-drop]",properties:["uploader"],events:["fileOver"],host:{"(drop)":"onDrop($event)","(dragover)":"onDragOver($event)","(dragleave)":"onDragLeave($event)"}}),a("design:paramtypes",[o.ElementRef])],t)}();e.FileDrop=i},function(t,e){function n(t){return!(!t||!(t.nodeName||t.prop&&t.attr&&t.find))}var s=function(){function t(t){var e=n(t),s=e?t.value:t,a="string"==typeof s?"FakePath":"Object",o="_createFrom"+a;this[o](s)}return t.prototype._createFromFakePath=function(t){this.lastModifiedDate=null,this.size=null,this.type="like/"+t.slice(t.lastIndexOf(".")+1).toLowerCase(),this.name=t.slice(t.lastIndexOf("/")+t.lastIndexOf("\\")+2)},t.prototype._createFromObject=function(t){this.size=t.size,this.type=t.type,this.name=t.name},t}();e.FileLikeObject=s},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(t){this.element=t}return t.prototype.getOptions=function(){return this.uploader.options},t.prototype.getFilters=function(){},t.prototype.isEmptyAfterSelection=function(){return!!this.element.nativeElement.attributes.multiple},t.prototype.onChange=function(){var t=this.element.nativeElement.files,e=this.getOptions(),n=this.getFilters();this.uploader.addToQueue(t,e,n),this.isEmptyAfterSelection()},t=s([o.Directive({selector:"[ng2-file-select]",properties:["uploader"],host:{"(change)":"onChange()"}}),a("design:paramtypes",[o.ElementRef])],t)}();e.FileSelect=i,e.fileUpload=[i]},,,,,function(t,e,n){"use strict";function s(t,e){var n=p.CssSelector.parse(e)[0].getMatchingElementTemplate();return f.create({type:new h({runtime:Object,name:"Host"+t.name,moduleUrl:t.moduleUrl,isHost:!0}),template:new d({template:n,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[]}),changeDetection:i.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},lifecycleHooks:[],isComponent:!0,dynamicLoadable:!1,selector:"*"})}var a=n(1),o=n(2),i=n(10),r=n(17),p=n(122),c=n(15),l=n(33),u=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))$/g,h=function(){function t(t){var e=void 0===t?{}:t,n=e.runtime,s=e.name,o=e.moduleUrl,i=e.isHost;this.runtime=n,this.name=s,this.moduleUrl=o,this.isHost=a.normalizeBool(i)}return t.fromJson=function(e){return new t({name:e.name,moduleUrl:e.moduleUrl,isHost:e.isHost})},t.prototype.toJson=function(){return{name:this.name,moduleUrl:this.moduleUrl,isHost:this.isHost}},t}();e.CompileTypeMetadata=h;var d=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,s=e.template,o=e.templateUrl,i=e.styles,p=e.styleUrls,c=e.ngContentSelectors;this.encapsulation=a.isPresent(n)?n:r.ViewEncapsulation.Emulated,this.template=s,this.templateUrl=o,this.styles=a.isPresent(i)?i:[],this.styleUrls=a.isPresent(p)?p:[],this.ngContentSelectors=a.isPresent(c)?c:[]}return t.fromJson=function(e){return new t({encapsulation:a.isPresent(e.encapsulation)?r.VIEW_ENCAPSULATION_VALUES[e.encapsulation]:e.encapsulation,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,ngContentSelectors:e.ngContentSelectors})},t.prototype.toJson=function(){return{encapsulation:a.isPresent(this.encapsulation)?a.serializeEnum(this.encapsulation):this.encapsulation,template:this.template,templateUrl:this.templateUrl,styles:this.styles,styleUrls:this.styleUrls,ngContentSelectors:this.ngContentSelectors}},t}();e.CompileTemplateMetadata=d;var f=function(){function t(t){var e=void 0===t?{}:t,n=e.type,s=e.isComponent,a=e.dynamicLoadable,o=e.selector,i=e.exportAs,r=e.changeDetection,p=e.inputs,c=e.outputs,l=e.hostListeners,u=e.hostProperties,h=e.hostAttributes,d=e.lifecycleHooks,f=e.template;this.type=n,this.isComponent=s,this.dynamicLoadable=a,this.selector=o,this.exportAs=i,this.changeDetection=r,this.inputs=p,this.outputs=c,this.hostListeners=l,this.hostProperties=u,this.hostAttributes=h,this.lifecycleHooks=d,this.template=f}return t.create=function(e){var n=void 0===e?{}:e,s=n.type,i=n.isComponent,r=n.dynamicLoadable,p=n.selector,l=n.exportAs,h=n.changeDetection,d=n.inputs,f=n.outputs,m=n.host,g=n.lifecycleHooks,y=n.template,v={},k={},_={};a.isPresent(m)&&o.StringMapWrapper.forEach(m,function(t,e){var n=a.RegExpWrapper.firstMatch(u,e);a.isBlank(n)?_[e]=t:a.isPresent(n[1])?k[n[1]]=t:a.isPresent(n[2])&&(v[n[2]]=t)});var b={};a.isPresent(d)&&d.forEach(function(t){var e=c.splitAtColon(t,[t,t]);b[e[0]]=e[1]});var E={};return a.isPresent(f)&&f.forEach(function(t){var e=c.splitAtColon(t,[t,t]);E[e[0]]=e[1]}),new t({type:s,isComponent:a.normalizeBool(i),dynamicLoadable:a.normalizeBool(r),selector:p,exportAs:l,changeDetection:h,inputs:b,outputs:E,hostListeners:v,hostProperties:k,hostAttributes:_,lifecycleHooks:a.isPresent(g)?g:[],template:y})},t.fromJson=function(e){return new t({isComponent:e.isComponent,dynamicLoadable:e.dynamicLoadable,selector:e.selector,exportAs:e.exportAs,type:a.isPresent(e.type)?h.fromJson(e.type):e.type,changeDetection:a.isPresent(e.changeDetection)?i.CHANGE_DETECTION_STRATEGY_VALUES[e.changeDetection]:e.changeDetection,inputs:e.inputs,outputs:e.outputs,hostListeners:e.hostListeners,hostProperties:e.hostProperties,hostAttributes:e.hostAttributes,lifecycleHooks:e.lifecycleHooks.map(function(t){return l.LIFECYCLE_HOOKS_VALUES[t]}),template:a.isPresent(e.template)?d.fromJson(e.template):e.template})},t.prototype.toJson=function(){return{isComponent:this.isComponent,dynamicLoadable:this.dynamicLoadable,selector:this.selector,exportAs:this.exportAs,type:a.isPresent(this.type)?this.type.toJson():this.type,changeDetection:a.isPresent(this.changeDetection)?a.serializeEnum(this.changeDetection):this.changeDetection,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,lifecycleHooks:this.lifecycleHooks.map(function(t){return a.serializeEnum(t)}),template:a.isPresent(this.template)?this.template.toJson():this.template}},t}();e.CompileDirectiveMetadata=f,e.createHostComponentMeta=s},function(t,e,n){"use strict";function s(t,e,n){void 0===n&&(n=null);var s=[];return e.forEach(function(e){var o=e.visit(t,n);a.isPresent(o)&&s.push(o)}),s}var a=n(1),o=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.TextAst=o;var i=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}();e.BoundTextAst=i;var r=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}();e.AttrAst=r;var p=function(){function t(t,e,n,s,a){this.name=t,this.type=e,this.value=n,this.unit=s,this.sourceSpan=a}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}();e.BoundElementPropertyAst=p;var c=function(){function t(t,e,n,s){this.name=t,this.target=e,this.handler=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return a.isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),t}();e.BoundEventAst=c;var l=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}();e.VariableAst=l;var u=function(){function t(t,e,n,s,a,o,i,r,p){this.name=t,this.attrs=e,this.inputs=n,this.outputs=s,this.exportAsVars=a,this.directives=o,this.children=i,this.ngContentIndex=r,this.sourceSpan=p}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t.prototype.isBound=function(){return this.inputs.length>0||this.outputs.length>0||this.exportAsVars.length>0||this.directives.length>0},t.prototype.getComponent=function(){return this.directives.length>0&&this.directives[0].directive.isComponent?this.directives[0].directive:null},t}();e.ElementAst=u;var h=function(){function t(t,e,n,s,a,o,i){this.attrs=t,this.outputs=e,this.vars=n,this.directives=s,this.children=a,this.ngContentIndex=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}();e.EmbeddedTemplateAst=h;var d=function(){function t(t,e,n,s){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}();e.BoundDirectivePropertyAst=d;var f=function(){function t(t,e,n,s,a,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=s,this.exportAsVars=a,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}();e.DirectiveAst=f;var m=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}();e.NgContentAst=m,function(t){t[t.Property=0]="Property",t[t.Attribute=1]="Attribute",t[t.Class=2]="Class",t[t.Style=3]="Style"}(e.PropertyBindingType||(e.PropertyBindingType={})),e.PropertyBindingType,e.templateVisitAll=s},function(t,e){"use strict";var n=function(){function t(){}return t.prototype.get=function(t){return null},t}();e.XHR=n},,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},r=n(8),p=n(5),c=n(2),l=n(37),u=function(){function t(){this._styles=[],this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=[];t.forEach(function(t){c.SetWrapper.has(e._stylesSet,t)||(e._stylesSet.add(t),e._styles.push(t),n.push(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return this._styles},t=a([p.Injectable(),o("design:paramtypes",[])],t)}();e.SharedStylesHost=u;var h=function(t){function e(e){t.call(this),this._hostNodes=new Set,this._hostNodes.add(e.head)}return s(e,t),e.prototype._addStylesToHost=function(t,e){for(var n=0;no?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(170),r=function(){function t(t){this.el=t,this.onToggle=new o.EventEmitter,this.addClass=!0}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},set:function(t){this._isOpen=!!t,this.dropdownAppendToBody&&this.menuEl,this.isOpen?(this.dropdownMenuTemplateUrl,this.focusToggleElement(),i.dropdownService.open(this)):(this.dropdownMenuTemplateUrl,i.dropdownService.close(this),this.selectedOption=null),this.onToggle.emit(this.isOpen)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.autoClose=this.autoClose||i.ALWAYS,this.keyboardNav="undefined"!=typeof this.keyboardNav,this.dropdownAppendToBody="undefined"!=typeof this.dropdownAppendToBody,this.isOpen},t.prototype.ngOnDestroy=function(){this.dropdownAppendToBody&&this.menuEl&&this.menuEl.nativeElement.remove()},Object.defineProperty(t.prototype,"dropDownMenu",{set:function(t){this.menuEl=t.el,t.templateUrl&&(this.dropdownMenuTemplateUrl=t.templateUrl),this.dropdownAppendToBody&&window.document.body.appendChild(this.menuEl.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dropDownToggle",{set:function(t){this.toggleEl=t.el},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){return this.isOpen=arguments.length?!!t:!this.isOpen},t.prototype.focusDropdownEntry=function(t){var e=this.menuEl?this.menuEl.nativeElement:this.el.nativeElement.getElementsByTagName("ul")[0];if(e){var n=e.getElementsByTagName("a");if(n&&n.length){switch(t){case 40:if("number"!=typeof this.selectedOption){this.selectedOption=0;break}if(this.selectedOption===n.length-1)break;this.selectedOption++;break;case 38:if("number"!=typeof this.selectedOption)return;if(0===this.selectedOption)break;this.selectedOption--}n[this.selectedOption].focus()}}},t.prototype.focusToggleElement=function(){this.toggleEl&&this.toggleEl.nativeElement.focus()},s([o.HostBinding("class.open"),o.Input(),a("design:type",Boolean)],t.prototype,"isOpen",null),s([o.Input(),a("design:type",String)],t.prototype,"autoClose",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"keyboardNav",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"dropdownAppendToBody",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"onToggle",void 0),s([o.HostBinding("class.dropdown"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([o.Directive({selector:"[dropdown]"}),a("design:paramtypes",[o.ElementRef])],t)}();e.Dropdown=r},,,,,,,,,,,function(t,e,n){"use strict";function s(t,e,n){return y.templateVisitAll(t,e,n),n}function a(t){for(var e=new Set,n=[],s=0;so?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},d=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0; +},f=n(1),m=n(2),g=n(52),y=n(47),v=n(27),k=n(15),_=n(5);e.TEMPLATE_COMMANDS_MODULE_REF=v.moduleRef("package:angular2/src/core/linker/template_commands"+k.MODULE_SUFFIX);var b="$implicit",E="class",C="style",T=function(){function t(){}return t.prototype.compileComponentRuntime=function(t,e,n,s){var a=new P(new w(t,s,n),0);return y.templateVisitAll(a,e),a.result},t.prototype.compileComponentCodeGen=function(t,e,n,s){var a=new P(new S(t,s,n),0);return y.templateVisitAll(a,e),new v.SourceExpression([],c(a.result))},t=h([_.Injectable(),d("design:paramtypes",[])],t)}();e.CommandCompiler=T;var w=function(){function t(t,e,n){this.component=t,this.componentTemplateFactory=e,this.changeDetectorFactories=n}return t.prototype._mapDirectives=function(t){return t.map(function(t){return t.type.runtime})},t.prototype.createText=function(t,e,n){return new g.TextCmd(t,e,n)},t.prototype.createNgContent=function(t,e){return new g.NgContentCmd(t,e)},t.prototype.createBeginElement=function(t,e,n,s,a,o,i){return new g.BeginElementCmd(t,e,n,s,this._mapDirectives(a),o,i)},t.prototype.createEndElement=function(){return new g.EndElementCmd},t.prototype.createBeginComponent=function(t,e,n,s,a,o,i){var r=this.componentTemplateFactory(a[0]);return new g.BeginComponentCmd(t,e,n,s,this._mapDirectives(a),o,i,r)},t.prototype.createEndComponent=function(){return new g.EndComponentCmd},t.prototype.createEmbeddedTemplate=function(t,e,n,s,a,o,i){return new g.EmbeddedTemplateCmd(e,n,this._mapDirectives(s),a,o,this.changeDetectorFactories[t],i)},t}(),S=function(){function t(t,e,n){this.component=t,this.componentTemplateFactory=e,this.changeDetectorFactoryExpressions=n}return t.prototype.createText=function(t,n,s){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"TextCmd")+"("+k.escapeSingleQuoteString(t)+", "+n+", "+s+")")},t.prototype.createNgContent=function(t,n){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"NgContentCmd")+"("+t+", "+n+")")},t.prototype.createBeginElement=function(t,n,s,a,o,i,r){var p=c(n);return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"BeginElementCmd")+"("+k.escapeSingleQuoteString(t)+", "+p+", "+(c(s)+", "+c(a)+", "+l(o)+", "+i+", "+r+")"))},t.prototype.createEndElement=function(){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EndElementCmd")+"()")},t.prototype.createBeginComponent=function(t,n,s,a,o,i,r){var p=c(n);return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"BeginComponentCmd")+"("+k.escapeSingleQuoteString(t)+", "+p+", "+(c(s)+", "+c(a)+", "+l(o)+", "+u(i)+", "+r+", "+this.componentTemplateFactory(o[0])+")"))},t.prototype.createEndComponent=function(){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EndComponentCmd")+"()")},t.prototype.createEmbeddedTemplate=function(t,n,s,a,o,i,r){return new O(k.codeGenConstConstructorCall(e.TEMPLATE_COMMANDS_MODULE_REF+"EmbeddedTemplateCmd")+"("+c(n)+", "+c(s)+", "+(l(a)+", "+o+", "+i+", "+this.changeDetectorFactoryExpressions[t]+", "+c(r)+")"))},t}(),P=function(){function t(t,e){this.commandFactory=t,this.embeddedTemplateIndex=e,this.result=[],this.transitiveNgContentCount=0}return t.prototype._readAttrNameAndValues=function(t,e){var n=o(s(this,e,[]));return t.forEach(function(t){m.StringMapWrapper.forEach(t.hostAttributes,function(t,e){var s=n[e];n[e]=f.isPresent(s)?r(e,s,t):t})}),i(n)},t.prototype.visitNgContent=function(t,e){return this.transitiveNgContentCount++,this.result.push(this.commandFactory.createNgContent(t.index,t.ngContentIndex)),null},t.prototype.visitEmbeddedTemplate=function(e,n){var s=this;this.embeddedTemplateIndex++;var a=new t(this.commandFactory,this.embeddedTemplateIndex);y.templateVisitAll(a,e.children);var o=a.transitiveNgContentCount>0,i=[];e.vars.forEach(function(t){i.push(t.name),i.push(t.value.length>0?t.value:b)});var r=[];return m.ListWrapper.forEachWithIndex(e.directives,function(t,e){t.visit(s,new R(e,[],[],r))}),this.result.push(this.commandFactory.createEmbeddedTemplate(this.embeddedTemplateIndex,this._readAttrNameAndValues(r,e.attrs),i,r,o,e.ngContentIndex,a.result)),this.transitiveNgContentCount+=a.transitiveNgContentCount,this.embeddedTemplateIndex=a.embeddedTemplateIndex,null},t.prototype.visitElement=function(t,e){var n=this,o=t.getComponent(),i=s(this,t.outputs,[]),r=[];f.isBlank(o)&&t.exportAsVars.forEach(function(t){r.push(t.name),r.push(null)});var p=[];m.ListWrapper.forEachWithIndex(t.directives,function(t,e){t.visit(n,new R(e,i,r,p))}),i=a(i);var c=this._readAttrNameAndValues(p,t.attrs);return f.isPresent(o)?(this.result.push(this.commandFactory.createBeginComponent(t.name,c,i,r,p,o.template.encapsulation,t.ngContentIndex)),y.templateVisitAll(this,t.children),this.result.push(this.commandFactory.createEndComponent())):(this.result.push(this.commandFactory.createBeginElement(t.name,c,i,r,p,t.isBound(),t.ngContentIndex)),y.templateVisitAll(this,t.children),this.result.push(this.commandFactory.createEndElement())),null},t.prototype.visitVariable=function(t,e){return null},t.prototype.visitAttr=function(t,e){return e.push(t.name),e.push(t.value),null},t.prototype.visitBoundText=function(t,e){return this.result.push(this.commandFactory.createText(null,!0,t.ngContentIndex)),null},t.prototype.visitText=function(t,e){return this.result.push(this.commandFactory.createText(t.value,!1,t.ngContentIndex)),null},t.prototype.visitDirective=function(t,e){return e.targetDirectives.push(t.directive),y.templateVisitAll(this,t.hostEvents,e.eventTargetAndNames),t.exportAsVars.forEach(function(t){e.targetVariableNameAndValues.push(t.name),e.targetVariableNameAndValues.push(e.index)}),null},t.prototype.visitEvent=function(t,e){return e.push(t.target),e.push(t.name),null},t.prototype.visitDirectiveProperty=function(t,e){return null},t.prototype.visitElementProperty=function(t,e){return null},t}(),R=function(){function t(t,e,n,s){this.index=t,this.eventTargetAndNames=e,this.targetVariableNameAndValues=n,this.targetDirectives=s}return t}(),O=function(){function t(t){this.value=t}return t}()},function(t,e,n){"use strict";function s(t,e,n){void 0===n&&(n=null);var s=[];return e.forEach(function(e){var o=e.visit(t,n);a.isPresent(o)&&s.push(o)}),s}var a=n(1),o=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}();e.HtmlTextAst=o;var i=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}();e.HtmlAttrAst=i;var r=function(){function t(t,e,n,s){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}();e.HtmlElementAst=r,e.htmlVisitAll=s},function(t,e,n){"use strict";function s(t,e){return p.isPresent(t)?"@"+t+":"+e:e}function a(t,e,n){return p.isBlank(t)&&(t=f.getHtmlTagDefinition(e).implicitNamespacePrefix,p.isBlank(t)&&p.isPresent(n)&&(t=f.getNsPrefix(n.name))),s(t,e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=n(1),c=n(2),l=n(72),u=n(5),h=n(186),d=n(74),f=n(26),m=function(t){function e(e,n,s){t.call(this,n,s),this.elementName=e}return o(e,t),e.create=function(t,n,s){return new e(t,n,s)},e}(d.ParseError);e.HtmlTreeError=m;var g=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}();e.HtmlParseTreeResult=g;var y=function(){function t(){}return t.prototype.parse=function(t,e){var n=h.tokenizeHtml(t,e),s=new v(n.tokens).build();return new g(s.rootNodes,n.errors.concat(s.errors))},t=i([u.Injectable(),r("design:paramtypes",[])],t)}();e.HtmlParser=y;var v=function(){function t(t){this.tokens=t,this.index=-1,this.rootNodes=[],this.errors=[],this.elementStack=[],this._advance()}return t.prototype.build=function(){for(;this.peek.type!==h.HtmlTokenType.EOF;)this.peek.type===h.HtmlTokenType.TAG_OPEN_START?this._consumeStartTag(this._advance()):this.peek.type===h.HtmlTokenType.TAG_CLOSE?this._consumeEndTag(this._advance()):this.peek.type===h.HtmlTokenType.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this.peek.type===h.HtmlTokenType.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this.peek.type===h.HtmlTokenType.TEXT||this.peek.type===h.HtmlTokenType.RAW_TEXT||this.peek.type===h.HtmlTokenType.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._advance();return new g(this.rootNodes,this.errors)},t.prototype._advance=function(){var t=this.peek;return this.index0&&"\n"==e[0]){var n=this._getParentElement();p.isPresent(n)&&0==n.children.length&&f.getHtmlTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new l.HtmlTextAst(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this.elementStack.length>0){var t=c.ListWrapper.last(this.elementStack);f.getHtmlTagDefinition(t.name).isVoid&&this.elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],s=[];this.peek.type===h.HtmlTokenType.ATTR_NAME;)s.push(this._consumeAttr(this._advance()));var o=a(e,n,this._getParentElement()),i=!1;this.peek.type===h.HtmlTokenType.TAG_OPEN_END_VOID?(this._advance(),i=!0,null!=f.getNsPrefix(o)||f.getHtmlTagDefinition(o).isVoid||this.errors.push(m.create(o,t.sourceSpan.start,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))):this.peek.type===h.HtmlTokenType.TAG_OPEN_END&&(this._advance(),i=!1);var r=this.peek.sourceSpan.start,p=new l.HtmlElementAst(o,s,[],new d.ParseSourceSpan(t.sourceSpan.start,r));this._pushElement(p),i&&this._popElement(o)},t.prototype._pushElement=function(t){if(this.elementStack.length>0){var e=c.ListWrapper.last(this.elementStack);f.getHtmlTagDefinition(e.name).isClosedByChild(t.name)&&this.elementStack.pop()}var n=f.getHtmlTagDefinition(t.name),e=this._getParentElement();if(n.requireExtraParent(p.isPresent(e)?e.name:null)){var s=new l.HtmlElementAst(n.parentToAdd,[],[t],t.sourceSpan);this._addToParent(s),this.elementStack.push(s),this.elementStack.push(t)}else this._addToParent(t),this.elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=a(t.parts[0],t.parts[1],this._getParentElement());f.getHtmlTagDefinition(e).isVoid?this.errors.push(m.create(e,t.sourceSpan.start,'Void elements do not have end tags "'+t.parts[1]+'"')):this._popElement(e)||this.errors.push(m.create(e,t.sourceSpan.start,'Unexpected closing tag "'+t.parts[1]+'"'))},t.prototype._popElement=function(t){for(var e=this.elementStack.length-1;e>=0;e--){var n=this.elementStack[e];if(n.name==t)return c.ListWrapper.splice(this.elementStack,e,this.elementStack.length-e),!0;if(!f.getHtmlTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=s(t.parts[0],t.parts[1]),n=t.sourceSpan.end,a="";if(this.peek.type===h.HtmlTokenType.ATTR_VALUE){var o=this._advance();a=o.parts[0],n=o.sourceSpan.end}return new l.HtmlAttrAst(e,a,new d.ParseSourceSpan(t.sourceSpan.start,n))},t.prototype._getParentElement=function(){return this.elementStack.length>0?c.ListWrapper.last(this.elementStack):null},t.prototype._addToParent=function(t){var e=this._getParentElement();p.isPresent(e)?e.children.push(t):this.rootNodes.push(t)},t}()},function(t,e){"use strict";var n=function(){function t(t,e,n,s){this.file=t,this.offset=e,this.line=n,this.col=s}return t.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},t}();e.ParseLocation=n;var s=function(){function t(t,e){this.content=t,this.url=e}return t}();e.ParseSourceFile=s;var a=function(){function t(t,e){this.location=t,this.msg=e}return t.prototype.toString=function(){var t=this.location.file.content,e=this.location.offset;e>t.length-1&&(e=t.length-1);for(var n=e,s=0,a=0;100>s&&e>0&&(e--,s++,"\n"!=t[e]||3!=++a););for(s=0,a=0;100>s&&n]"+t.substring(this.location.offset,n+1);return this.msg+' ("'+o+'"): '+this.location},t}();e.ParseError=a;var o=function(){function t(t,e){this.start=t,this.end=e}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}();e.ParseSourceSpan=o},function(t,e){"use strict";var n=function(){function t(){}return t.prototype.hasProperty=function(t,e){return!0},t.prototype.getMappedPropName=function(t){return t},t}();e.ElementSchemaRegistry=n},function(t,e,n){"use strict";function s(t){if(o.isBlank(t)||0===t.length||"/"==t[0])return!1;var e=o.RegExpWrapper.firstMatch(p,t);return o.isBlank(e)||"package"==e[1]||"asset"==e[1]}function a(t,e,n){var a=[],p=o.StringWrapper.replaceAllMapped(n,r,function(n){var i=o.isPresent(n[1])?n[1]:n[2];return s(i)?(a.push(t.resolve(e,i)),""):n[0]});return new i(p,a)}var o=n(1),i=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}();e.StyleWithImports=i,e.isStyleUrlResolvable=s,e.extractStyleUrls=a;var r=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,p=/^([a-zA-Z\-\+\.]+):/g},function(t,e,n){"use strict";function s(t){if(!t.isComponent)throw new d.BaseException("Could not compile '"+t.type.name+"' because it is not a component.")}function a(t){return t.name+"Template"}function o(t){return a(t)+"Getter"}function i(t){var e=t.substring(0,t.length-P.MODULE_SUFFIX.length);return e+".template"+P.MODULE_SUFFIX}function r(t,e){for(var n=0;n0;n||e.push(t)}),e}var l=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},u=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},h=n(1),d=n(4),f=n(2),m=n(6),g=n(52),y=n(46),v=n(5),k=n(27),_=n(119),b=n(123),E=n(71),C=n(78),T=n(124),w=n(121),S=n(71),P=n(15),R=function(){function t(t,e,n,s,a,o){this._runtimeMetadataResolver=t,this._templateNormalizer=e,this._templateParser=n,this._styleCompiler=s,this._commandCompiler=a,this._cdCompiler=o,this._hostCacheKeys=new Map,this._compiledTemplateCache=new Map,this._compiledTemplateDone=new Map,this._nextTemplateId=0}return t.prototype.normalizeDirectiveMetadata=function(t){return t.isComponent?this._templateNormalizer.normalizeTemplate(t.type,t.template).then(function(e){return new y.CompileDirectiveMetadata({type:t.type,isComponent:t.isComponent,dynamicLoadable:t.dynamicLoadable,selector:t.selector,exportAs:t.exportAs,changeDetection:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,lifecycleHooks:t.lifecycleHooks,template:e})}):m.PromiseWrapper.resolve(t)},t.prototype.compileHostComponentRuntime=function(t){var e=this._hostCacheKeys.get(t);if(h.isBlank(e)){e=new Object,this._hostCacheKeys.set(t,e);var n=this._runtimeMetadataResolver.getMetadata(t);s(n);var a=y.createHostComponentMeta(n.type,n.selector);this._compileComponentRuntime(e,a,[n],new Set)}return this._compiledTemplateDone.get(e).then(function(t){return new g.CompiledHostTemplate(t)})},t.prototype.clearCache=function(){this._hostCacheKeys.clear(),this._styleCompiler.clearCache(),this._compiledTemplateCache.clear(),this._compiledTemplateDone.clear()},t.prototype._compileComponentRuntime=function(t,e,n,s){var a=this,o=c(n),i=this._compiledTemplateCache.get(t),r=this._compiledTemplateDone.get(t);if(h.isBlank(i)){var p,l=[],u=[],d=h.stringify(e.type.runtime)+"Template"+this._nextTemplateId++;i=new g.CompiledComponentTemplate(d,function(t){return p(t)},u,l),this._compiledTemplateCache.set(t,i),s.add(t),r=m.PromiseWrapper.all([this._styleCompiler.compileComponentRuntime(e.template)].concat(o.map(function(t){return a.normalizeDirectiveMetadata(t)}))).then(function(t){var n=[],o=t.slice(1),i=a._templateParser.parse(e.template.template,o,e.type.name),r=a._cdCompiler.compileComponentRuntime(e.type,e.changeDetection,i);p=r[0];var c=t[0];c.forEach(function(t){return l.push(t)});var h=a._compileCommandsRuntime(e,i,r,s,n);return h.forEach(function(t){return u.push(t)}),m.PromiseWrapper.all(n)}).then(function(e){return f.SetWrapper["delete"](s,t),i}),this._compiledTemplateDone.set(t,r)}return i},t.prototype._compileCommandsRuntime=function(t,e,n,s,a){var o=this,i=this._commandCompiler.compileComponentRuntime(t,e,n,function(t){var e=t.type.runtime,n=o._runtimeMetadataResolver.getViewDirectivesMetadata(t.type.runtime),i=f.SetWrapper.has(s,e),r=o._compileComponentRuntime(e,t,n,s);return i||a.push(o._compiledTemplateDone.get(e)),function(){return r}});return i.forEach(function(t){t instanceof g.BeginComponentCmd&&t.templateGetter()}),i},t.prototype.compileTemplatesCodeGen=function(t){var e=this;if(0===t.length)throw new d.BaseException("No components given");var n=[],r=[],p=[];t.forEach(function(t){var a=t.component;if(s(a),p.push(a),e._processTemplateCodeGen(a,t.directives,n,r),a.dynamicLoadable){var o=y.createHostComponentMeta(a.type,a.selector);p.push(o),e._processTemplateCodeGen(o,[a],n,r)}}),f.ListWrapper.forEachWithIndex(p,function(t,e){var s,i=t.type.moduleUrl+"|"+t.type.name,p=h.IS_DART?"const":"new",c=p+" "+S.TEMPLATE_COMMANDS_MODULE_REF+"CompiledComponentTemplate('"+i+"',"+r[e].join(",")+")";s=t.type.isHost?p+" "+S.TEMPLATE_COMMANDS_MODULE_REF+"CompiledHostTemplate("+c+")":c;var l=a(t.type);n.push(""+P.codeGenExportVariable(l)+s+";"),n.push(P.codeGenValueFn([],l,o(t.type))+";")});var c=t[0].component.type.moduleUrl;return new k.SourceModule(""+i(c),n.join("\n"))},t.prototype.compileStylesheetCodeGen=function(t,e){return this._styleCompiler.compileStylesheetCodeGen(t,e)},t.prototype._processTemplateCodeGen=function(t,e,n,s){var a=c(e),o=this._styleCompiler.compileComponentCodeGen(t.template),i=this._templateParser.parse(t.template.template,a,t.type.name),l=this._cdCompiler.compileComponentCodeGen(t.type,t.changeDetection,i),u=this._commandCompiler.compileComponentCodeGen(t,i,l.expressions,p);r(o.declarations,n),r(l.declarations,n),r(u.declarations,n),s.push([l.expressions[0],u.expression,o.expression])},t=l([v.Injectable(),u("design:paramtypes",[w.RuntimeMetadataResolver,T.TemplateNormalizer,C.TemplateParser,b.StyleCompiler,E.CommandCompiler,_.ChangeDetectionCompiler])],t)}();e.TemplateCompiler=R;var O=function(){function t(t,e){this.component=t,this.directives=e}return t}();e.NormalizedComponentWithViewDirectives=O},function(t,e,n){"use strict";function s(t){return l.StringWrapper.split(t.trim(),/\s+/g)}function a(t,e){var n=new k.CssSelector,a=g.splitNsName(t)[1];n.setElement(a);for(var o=0;oo?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},c=n(2),l=n(1),u=n(3),h=n(1),d=n(4),f=n(10),m=n(73),g=n(26),y=n(74),v=n(47),k=n(122),_=n(75),b=n(125),E=n(76),C=n(72),T=n(15),w=/^(?:(?:(?:(bind-)|(var-|#)|(on-)|(bindon-))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,S="template",P="template",R="*",O="class",A=".",D="attr",x="class",M="style",I=k.CssSelector.parse("*")[0];e.TEMPLATE_TRANSFORMS=h.CONST_EXPR(new u.OpaqueToken("TemplateTransforms"));var N=function(t){function e(e,n){t.call(this,n,e)}return o(e,t),e}(y.ParseError);e.TemplateParseError=N;var B=function(){function t(t,e,n,s){this._exprParser=t,this._schemaRegistry=e,this._htmlParser=n,this.transforms=s}return t.prototype.parse=function(t,e,n){var s=new L(e,this._exprParser,this._schemaRegistry),a=this._htmlParser.parse(t,n),o=C.htmlVisitAll(s,a.rootNodes,F),i=a.errors.concat(s.errors);if(i.length>0){var r=i.join("\n");throw new d.BaseException("Template parse errors:\n"+r)}return l.isPresent(this.transforms)&&this.transforms.forEach(function(t){o=v.templateVisitAll(t,o)}),o},t=i([u.Injectable(),p(3,u.Optional()),p(3,u.Inject(e.TEMPLATE_TRANSFORMS)),r("design:paramtypes",[f.Parser,_.ElementSchemaRegistry,m.HtmlParser,Array])],t)}();e.TemplateParser=B;var L=function(){function t(t,e,n){var s=this;this._exprParser=e,this._schemaRegistry=n,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.selectorMatcher=new k.SelectorMatcher,c.ListWrapper.forEachWithIndex(t,function(t,e){var n=k.CssSelector.parse(t.selector);s.selectorMatcher.addSelectables(n,t),s.directivesIndex.set(t,e)})}return t.prototype._reportError=function(t,e){this.errors.push(new N(t,e.start))},t.prototype._parseInterpolation=function(t,e){var n=e.start.toString();try{return this._exprParser.parseInterpolation(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{return this._exprParser.parseAction(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseBinding=function(t,e){var n=e.start.toString();try{return this._exprParser.parseBinding(t,n)}catch(s){return this._reportError(""+s,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._parseTemplateBindings=function(t,e){var n=e.start.toString();try{return this._exprParser.parseTemplateBindings(t,n)}catch(s){return this._reportError(""+s,e),[]}},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(I),s=this._parseInterpolation(t.value,t.sourceSpan);return l.isPresent(s)?new v.BoundTextAst(s,n,t.sourceSpan):new v.TextAst(t.value,n,t.sourceSpan)},t.prototype.visitAttr=function(t,e){return new v.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this,s=t.name,o=b.preparseElement(t);if(o.type===b.PreparsedElementType.SCRIPT||o.type===b.PreparsedElementType.STYLE)return null;if(o.type===b.PreparsedElementType.STYLESHEET&&E.isStyleUrlResolvable(o.hrefAttr))return null;var i=[],r=[],p=[],c=[],u=[],h=[],d=[],f=!1,m=[];t.attrs.forEach(function(t){i.push([t.name,t.value]);var e=n._parseAttr(t,i,r,c,p),s=n._parseInlineTemplateBinding(t,d,u,h);e||s||m.push(n.visitAttr(t,null)),s&&(f=!0)});var y,k=g.splitNsName(s.toLowerCase())[1],_=k==S,T=a(s,i),w=this._createDirectiveAsts(t.name,this._parseDirectives(this.selectorMatcher,T),r,_?[]:p,t.sourceSpan),P=this._createElementPropertyAsts(t.name,r,w),R=C.htmlVisitAll(o.nonBindable?V:this,t.children,H.create(w)),O=f?null:e.findNgContentIndex(T);if(o.type===b.PreparsedElementType.NG_CONTENT)l.isPresent(t.children)&&t.children.length>0&&this._reportError(" element cannot have content. must be immediately followed by ",t.sourceSpan),y=new v.NgContentAst(this.ngContentCount++,O,t.sourceSpan);else if(_)this._assertAllEventsPublishedByDirectives(w,c),this._assertNoComponentsNorElementBindingsOnTemplate(w,P,t.sourceSpan),y=new v.EmbeddedTemplateAst(m,c,p,w,R,O,t.sourceSpan);else{this._assertOnlyOneComponent(w,t.sourceSpan);var A=p.filter(function(t){return 0===t.value.length});y=new v.ElementAst(s,m,P,c,A,w,R,O,t.sourceSpan)}if(f){var D=a(S,d),x=this._createDirectiveAsts(t.name,this._parseDirectives(this.selectorMatcher,D),u,[],t.sourceSpan),M=this._createElementPropertyAsts(t.name,u,x);this._assertNoComponentsNorElementBindingsOnTemplate(x,M,t.sourceSpan),y=new v.EmbeddedTemplateAst([],[],h,x,[y],e.findNgContentIndex(D),t.sourceSpan)}return y},t.prototype._parseInlineTemplateBinding=function(t,e,n,s){var a=null;if(t.name==P)a=t.value;else if(t.name.startsWith(R)){var o=t.name.substring(R.length);a=0==t.value.length?o:o+" "+t.value}if(l.isPresent(a)){for(var i=this._parseTemplateBindings(a,t.sourceSpan),r=0;r-1&&this._reportError('"-" is not allowed in variable names',n),s.push(new v.VariableAst(t,e,n))},t.prototype._parseProperty=function(t,e,n,s,a){this._parsePropertyAst(t,this._parseBinding(e,n),n,s,a)},t.prototype._parsePropertyInterpolation=function(t,e,n,s,a){var o=this._parseInterpolation(e,n);return l.isPresent(o)?(this._parsePropertyAst(t,o,n,s,a),!0):!1},t.prototype._parsePropertyAst=function(t,e,n,s,a){s.push([t,e.source]),a.push(new U(t,e,!1,n))},t.prototype._parseAssignmentEvent=function(t,e,n,s,a){this._parseEvent(t+"Change",e+"=$event",n,s,a)},t.prototype._parseEvent=function(t,e,n,s,a){var o=T.splitAtColon(t,[null,t]),i=o[0],r=o[1];a.push(new v.BoundEventAst(r,i,this._parseAction(e,n),n))},t.prototype._parseLiteralAttr=function(t,e,n,s){s.push(new U(t,this._exprParser.wrapLiteralPrimitive(e,""),!0,n))},t.prototype._parseDirectives=function(t,e){var n=this,s=[];return t.match(e,function(t,e){s.push(e)}),c.ListWrapper.sort(s,function(t,e){var s=t.isComponent,a=e.isComponent;return s&&!a?-1:!s&&a?1:n.directivesIndex.get(t)-n.directivesIndex.get(e)}),s},t.prototype._createDirectiveAsts=function(t,e,n,s,a){var o=this,i=new Set,r=e.map(function(e){var r=[],p=[],c=[];o._createDirectiveHostPropertyAsts(t,e.hostProperties,a,r),o._createDirectiveHostEventAsts(e.hostListeners,a,p),o._createDirectivePropertyAsts(e.inputs,n,c);var l=[];return s.forEach(function(t){(0===t.value.length&&e.isComponent||e.exportAs==t.value)&&(l.push(t),i.add(t.name))}),new v.DirectiveAst(e,c,r,p,l,a)});return s.forEach(function(t){t.value.length>0&&!c.SetWrapper.has(i,t.name)&&o._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan)}),r},t.prototype._createDirectiveHostPropertyAsts=function(t,e,n,s){var a=this;l.isPresent(e)&&c.StringMapWrapper.forEach(e,function(e,o){var i=a._parseBinding(e,n);s.push(a._createElementPropertyAst(t,o,i,n))})},t.prototype._createDirectiveHostEventAsts=function(t,e,n){var s=this;l.isPresent(t)&&c.StringMapWrapper.forEach(t,function(t,a){s._parseEvent(a,t,e,[],n)})},t.prototype._createDirectivePropertyAsts=function(t,e,n){if(l.isPresent(t)){var s=new Map;e.forEach(function(t){var e=s.get(t.name);(l.isBlank(e)||e.isLiteral)&&s.set(t.name,t)}),c.StringMapWrapper.forEach(t,function(t,e){var a=s.get(t);l.isPresent(a)&&n.push(new v.BoundDirectivePropertyAst(e,a.name,a.expression,a.sourceSpan))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var s=this,a=[],o=new Map;return n.forEach(function(t){t.inputs.forEach(function(t){o.set(t.templateName,t)})}),e.forEach(function(e){!e.isLiteral&&l.isBlank(o.get(e.name))&&a.push(s._createElementPropertyAst(t,e.name,e.expression,e.sourceSpan))}),a},t.prototype._createElementPropertyAst=function(t,e,n,s){var a,o,i=null,r=e.split(A);return 1===r.length?(o=this._schemaRegistry.getMappedPropName(r[0]),a=v.PropertyBindingType.Property,this._schemaRegistry.hasProperty(t,o)||this._reportError("Can't bind to '"+o+"' since it isn't a known native property",s)):r[0]==D?(o=r[1],a=v.PropertyBindingType.Attribute):r[0]==x?(o=r[1],a=v.PropertyBindingType.Class):r[0]==M?(i=r.length>2?r[2]:null,o=r[1],a=v.PropertyBindingType.Style):(this._reportError("Invalid property name '"+e+"'",s),a=null),new v.BoundElementPropertyAst(o,a,n,i,s)},t.prototype._findComponentDirectiveNames=function(t){var e=[];return t.forEach(function(t){var n=t.directive.type.name;t.directive.isComponent&&e.push(n)}),e},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component: "+n.join(","),e)},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var s=this,a=this._findComponentDirectiveNames(t);a.length>0&&this._reportError("Components on an embedded template: "+a.join(","),n),e.forEach(function(t){s._reportError("Property binding "+t.name+" not used by any directive on an embedded template",n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,s=new Set;t.forEach(function(t){c.StringMapWrapper.forEach(t.directive.outputs,function(t,e){s.add(t)})}),e.forEach(function(t){(l.isPresent(t.target)||!c.SetWrapper.has(s,t.name))&&n._reportError("Event binding "+t.fullName+" not emitted by any directive on an embedded template",t.sourceSpan)})},t}(),j=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=b.preparseElement(t);if(n.type===b.PreparsedElementType.SCRIPT||n.type===b.PreparsedElementType.STYLE||n.type===b.PreparsedElementType.STYLESHEET)return null;var s=t.attrs.map(function(t){return[t.name,t.value]}),o=a(t.name,s),i=e.findNgContentIndex(o),r=C.htmlVisitAll(this,t.children,F);return new v.ElementAst(t.name,C.htmlVisitAll(this,t.attrs),[],[],[],[],r,i,t.sourceSpan)},t.prototype.visitAttr=function(t,e){return new v.AttrAst(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(I); +return new v.TextAst(t.value,n,t.sourceSpan)},t}(),U=function(){function t(t,e,n,s){this.name=t,this.expression=e,this.isLiteral=n,this.sourceSpan=s}return t}();e.splitClasses=s;var H=function(){function t(t,e){this.ngContentIndexMatcher=t,this.wildcardNgContentIndex=e}return t.create=function(e){if(0===e.length||!e[0].directive.isComponent)return F;for(var n=new k.SelectorMatcher,s=e[0].directive.template.ngContentSelectors,a=null,o=0;o0?e[0]:null},t}(),F=new H(new k.SelectorMatcher,null),V=new j},,,,,,,,,,,,,,,,,,,function(t,e,n){var s=n(40),a=function(){function t(t,e,n){this.uploader=t,this.some=e,this.options=n,this.alias="file",this.url="/",this.method="POST",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.index=null,this.file=new s.FileLikeObject(e),this._file=e,this.url=t.url}return t.prototype.upload=function(){try{this.uploader.uploadItem(this)}catch(t){this.uploader._onCompleteItem(this,"",0,[]),this.uploader._onErrorItem(this,"",0,[])}},t.prototype.cancel=function(){this.uploader.cancelItem(this)},t.prototype.remove=function(){this.uploader.removeFromQueue(this)},t.prototype.onBeforeUpload=function(){},t.prototype.onProgress=function(t){},t.prototype.onSuccess=function(t,e,n){},t.prototype.onError=function(t,e,n){},t.prototype.onCancel=function(t,e,n){},t.prototype.onComplete=function(t,e,n){},t.prototype._onBeforeUpload=function(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()},t.prototype._onProgress=function(t){this.progress=t,this.onProgress(t)},t.prototype._onSuccess=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=null,this.onSuccess(t,e,n)},t.prototype._onError=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=null,this.onError(t,e,n)},t.prototype._onCancel=function(t,e,n){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=null,this.onCancel(t,e,n)},t.prototype._onComplete=function(t,e,n){this.onComplete(t,e,n),this.uploader.removeAfterUpload&&this.remove()},t.prototype._prepareToUploading=function(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0},t}();e.FileItem=a},function(t,e,n){function s(t){return File&&t instanceof File}var a=n(40),o=n(97),i=function(){function t(t){this.options=t,this.isUploading=!1,this.queue=[],this.progress=0,this.autoUpload=!1,this.isHTML5=!0,this.removeAfterUpload=!1,this._nextIndex=0,this.filters=[],this.url=t.url,this.authToken=t.authToken,this.filters.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.filters.unshift({name:"folder",fn:this._folderFilter})}return t.prototype.addToQueue=function(t,e,n){for(var s=this,i=[],r=0;r=200&&300>t||304===t},t.prototype._transformResponse=function(t,e){return t},t.prototype._parseHeaders=function(t){var e,n,s,a={};return t?(t.split("\n").map(function(t){s=t.indexOf(":"),e=t.slice(0,s).trim().toLowerCase(),n=t.slice(s+1).trim(),e&&(a[e]=a[e]?a[e]+", "+n:n)}),a):a},t.prototype._headersGetter=function(t){return function(e){return e?t[e.toLowerCase()]||null:t}},t.prototype._xhrTransport=function(t){var e=this,n=t._xhr=new XMLHttpRequest,s=new FormData;if(this._onBeforeUploadItem(t),"number"!=typeof t._file.size)throw new TypeError("The file specified is no longer valid");s.append(t.alias,t._file,t.file.name),n.upload.onprogress=function(n){var s=Math.round(n.lengthComputable?100*n.loaded/n.total:0);e._onProgressItem(t,s)},n.onload=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s),o=e._isSuccessCode(n.status)?"Success":"Error",i="_on"+o+"Item";e[i](t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.onerror=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s);e._onErrorItem(t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.onabort=function(){var s=e._parseHeaders(n.getAllResponseHeaders()),a=e._transformResponse(n.response,s);e._onCancelItem(t,a,n.status,s),e._onCompleteItem(t,a,n.status,s)},n.open(t.method,t.url,!0),n.withCredentials=t.withCredentials,this.authToken&&n.setRequestHeader("Authorization",this.authToken),n.send(s),this._render()},t.prototype._iframeTransport=function(t){},t.prototype._onWhenAddingFileFailed=function(t,e,n){this.onWhenAddingFileFailed(t,e,n)},t.prototype._onAfterAddingFile=function(t){this.onAfterAddingFile(t)},t.prototype._onAfterAddingAll=function(t){this.onAfterAddingAll(t)},t.prototype._onBeforeUploadItem=function(t){t._onBeforeUpload(),this.onBeforeUploadItem(t)},t.prototype._onProgressItem=function(t,e){var n=this._getTotalProgress(e);this.progress=n,t._onProgress(e),this.onProgressItem(t,e),this.onProgressAll(n),this._render()},t.prototype._onSuccessItem=function(t,e,n,s){t._onSuccess(e,n,s),this.onSuccessItem(t,e,n,s)},t.prototype._onErrorItem=function(t,e,n,s){t._onError(e,n,s),this.onErrorItem(t,e,n,s)},t.prototype._onCancelItem=function(t,e,n,s){t._onCancel(e,n,s),this.onCancelItem(t,e,n,s)},t.prototype._onCompleteItem=function(t,e,n,s){t._onComplete(e,n,s),this.onCompleteItem(t,e,n,s);var a=this.getReadyItems()[0];return this.isUploading=!1,a?void a.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),void this._render())},t}();e.FileUploader=i},function(t,e,n){function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(41)),s(n(39)),s(n(98));var a=n(41),o=n(39);e.FILE_UPLOAD_DIRECTIVES=[a.FileSelect,o.FileDrop]},function(t,e){!function(t){t[t.BS3=1]="BS3",t[t.BS4=2]="BS4"}(e.Ng2BootstrapTheme||(e.Ng2BootstrapTheme={}));var n=e.Ng2BootstrapTheme,s=function(){function t(){}return Object.defineProperty(t,"theme",{get:function(){var t=window;return t&&"bs4"===t.__theme?n.BS4:this._theme||n.BS3},set:function(t){this._theme=t},enumerable:!0,configurable:!0}),t}();e.Ng2BootstrapConfig=s},function(t,e){var n=function(){function t(){}return Object.defineProperty(t.prototype,"window",{get:function(){return window},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"document",{get:function(){return window.document},enumerable:!0,configurable:!0}),t.prototype.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:this.window.getComputedStyle?this.window.getComputedStyle(t)[e]:t.style[e]},t.prototype.isStaticPositioned=function(t){return"static"===(this.getStyle(t,"position")||"static")},t.prototype.parentOffsetEl=function(t){for(var e=t.offsetParent||this.document;e&&e!==this.document&&this.isStaticPositioned(e);)e=e.offsetParent;return e||this.document},t.prototype.position=function(t){var e=this.offset(t),n={top:0,left:0},s=this.parentOffsetEl(t);s!==this.document&&(n=this.offset(s),n.top+=s.clientTop-s.scrollTop,n.left+=s.clientLeft-s.scrollLeft);var a=t.getBoundingClientRect();return{width:a.width||t.offsetWidth,height:a.height||t.offsetHeight,top:e.top-n.top,left:e.left-n.left}},t.prototype.offset=function(t){var e=t.getBoundingClientRect();return{width:e.width||t.offsetWidth,height:e.height||t.offsetHeight,top:e.top+(this.window.pageYOffset||this.document.documentElement.scrollTop),left:e.left+(this.window.pageXOffset||this.document.documentElement.scrollLeft)}},t.prototype.positionElements=function(t,e,n,s){var a,o=n.split("-"),i=o[0],r=o[1]||"center",p=s?this.offset(t):this.position(t),c=e.offsetWidth,l=e.offsetHeight,u={center:function(){return p.left+p.width/2-c/2},left:function(){return p.left},right:function(){return p.left+p.width}},h={center:function(){return p.top+p.height/2-l/2},top:function(){return p.top},bottom:function(){return p.top+p.height}};switch(i){case"right":a={top:h[r](),left:u[i]()};break;case"left":a={top:h[r](),left:p.left-c};break;case"bottom":a={top:h[i](),left:u[r]()};break;default:a={top:p.top-l,left:u[r]()}}return a},t}();e.PositionService=n,e.positionService=new n},function(t,e,n){"use strict";function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(28)),s(n(48)),s(n(185))},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(5),i=n(175),r=n(104),p=function(){function t(t){this.browserDetails=t}return t.prototype.css=function(){return new i.CssAnimationBuilder(this.browserDetails)},t=s([o.Injectable(),a("design:paramtypes",[r.BrowserDetails])],t)}();e.AnimationBuilder=p},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(5),i=n(156),r=n(8),p=function(){function t(){this.elapsedTimeIncludesDelay=!1,this.doesElapsedTimeIncludesDelay()}return t.prototype.doesElapsedTimeIncludesDelay=function(){var t=this,e=r.DOM.createElement("div");r.DOM.setAttribute(e,"style","position: absolute; top: -9999px; left: -9999px; width: 1px;\n height: 1px; transition: all 1ms linear 1ms;"),this.raf(function(n){r.DOM.on(e,"transitionend",function(n){var s=i.Math.round(1e3*n.elapsedTime);t.elapsedTimeIncludesDelay=2==s,r.DOM.remove(e)}),r.DOM.setStyle(e,"width","2px")},2)},t.prototype.raf=function(t,e){void 0===e&&(e=1);var n=new c(t,e);return function(){return n.cancel()}},t=s([o.Injectable(),a("design:paramtypes",[])],t)}();e.BrowserDetails=p;var c=function(){function t(t,e){this.callback=t,this.frames=e,this._raf()}return t.prototype._raf=function(){var t=this;this.currentFrameId=r.DOM.requestAnimationFrame(function(e){return t._nextFrame(e)})},t.prototype._nextFrame=function(t){this.frames--,this.frames>0?this._raf():this.callback(t)},t.prototype.cancel=function(){r.DOM.cancelAnimationFrame(this.currentFrameId),this.currentFrameId=null},t}()},,,,,,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(27),i=n(130),r=n(184),p=n(1),c=n(10),l=n(227),u=n(15),h=n(5),d="AbstractChangeDetector",f="ChangeDetectionUtil",m="ChangeDetectorState",g=o.moduleRef("package:angular2/src/core/change_detection/abstract_change_detector"+u.MODULE_SUFFIX),y=o.moduleRef("package:angular2/src/core/change_detection/change_detection_util"+u.MODULE_SUFFIX),v=o.moduleRef("package:angular2/src/core/change_detection/pregen_proto_change_detector"+u.MODULE_SUFFIX),k=o.moduleRef("package:angular2/src/core/change_detection/constants"+u.MODULE_SUFFIX),_=function(){function t(t){this._genConfig=t}return t.prototype.compileComponentRuntime=function(t,e,n){var s=this,a=r.createChangeDetectorDefinitions(t,e,this._genConfig,n);return a.map(function(t){return s._createChangeDetectorFactory(t)})},t.prototype._createChangeDetectorFactory=function(t){if(p.IS_DART||!this._genConfig.useJit){var e=new c.DynamicProtoChangeDetector(t);return function(t){return e.instantiate(t)}}return new i.ChangeDetectorJITGenerator(t,f,d,m).generate()},t.prototype.compileComponentCodeGen=function(t,e,n){var s=r.createChangeDetectorDefinitions(t,e,this._genConfig,n),a=[],c=0,u=s.map(function(e){var n,s;if(p.IS_DART){n=new l.Codegen(v);var r="_"+e.id,u=0===c&&t.isHost?"dynamic":""+o.moduleRef(t.moduleUrl)+t.name;n.generate(u,r,e),a.push(r+".newChangeDetector"),s=n.toString()}else n=new i.ChangeDetectorJITGenerator(e,""+y+f,""+g+d,""+k+m),a.push("function(dispatcher) { return new "+n.typeName+"(dispatcher); }"),s=n.generateSource();return c++,s});return new o.SourceExpressions(u,a)},t=s([h.Injectable(),a("design:paramtypes",[c.ChangeDetectorGenConfig])],t)}();e.ChangeDetectionCompiler=_},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(23),r=n(51),p=n(77),c=n(5),l=function(t){function e(){t.apply(this,arguments)}return s(e,t),e}(i.Compiler);e.RuntimeCompiler=l;var u=function(t){function e(e,n){t.call(this,e),this._templateCompiler=n}return s(e,t),e.prototype.compileInHost=function(t){var e=this;return this._templateCompiler.compileHostComponentRuntime(t).then(function(t){return i.internalCreateProtoView(e,t)})},e.prototype.clearCache=function(){t.prototype.clearCache.call(this),this._templateCompiler.clearCache()},e=a([c.Injectable(),o("design:paramtypes",[r.ProtoViewFactory,p.TemplateCompiler])],e)}(i.Compiler_);e.RuntimeCompiler_=u},function(t,e,n){"use strict";function s(t,e){var n=[];return u.isPresent(e)&&a(e,n),u.isPresent(t.directives)&&a(t.directives,n),n}function a(t,e){for(var n=0;n0?n:"package:"+n+E.MODULE_SUFFIX}return k.reflector.importUri(t)}var r=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},p=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},c=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},l=n(5),u=n(1),h=n(4),d=n(46),f=n(35),m=n(50),g=n(54),y=n(143),v=n(33),k=n(9),_=n(5),b=n(55),E=n(15),C=n(28),T=function(){function t(t,e,n){this._directiveResolver=t,this._viewResolver=e,this._platformDirectives=n,this._cache=new Map}return t.prototype.getMetadata=function(t){var e=this._cache.get(t);if(u.isBlank(e)){var n=this._directiveResolver.resolve(t),s=null,a=null,o=null;if(n instanceof f.ComponentMetadata){var r=n;s=i(t,r);var p=this._viewResolver.resolve(t);a=new d.CompileTemplateMetadata({encapsulation:p.encapsulation,template:p.template,templateUrl:p.templateUrl,styles:p.styles,styleUrls:p.styleUrls}),o=r.changeDetection}e=d.CompileDirectiveMetadata.create({selector:n.selector,exportAs:n.exportAs,isComponent:u.isPresent(a),dynamicLoadable:!0,type:new d.CompileTypeMetadata({name:u.stringify(t),moduleUrl:s,runtime:t}),template:a,changeDetection:o,inputs:n.inputs,outputs:n.outputs,host:n.host,lifecycleHooks:v.LIFECYCLE_HOOKS_VALUES.filter(function(e){return y.hasLifecycleHook(e,t)})}),this._cache.set(t,e)}return e},t.prototype.getViewDirectivesMetadata=function(t){for(var e=this,n=this._viewResolver.resolve(t),a=s(n,this._platformDirectives),i=0;i0&&a.isBlank(e.element)&&s.ListWrapper.isEmpty(e.classNames)&&s.ListWrapper.isEmpty(e.attrs)&&(e.element="*"),t.push(e)},c=new t,l=a.RegExpWrapper.matcher(r,e),u=c,h=!1;a.isPresent(n=a.RegExpMatcherWrapper.next(l));){if(a.isPresent(n[1])){if(h)throw new o.BaseException("Nesting :not is not allowed in a selector");h=!0,u=new t,c.notSelectors.push(u)}if(a.isPresent(n[2])&&u.setElement(n[2]),a.isPresent(n[3])&&u.addClassName(n[3]),a.isPresent(n[4])&&u.addAttribute(n[4],n[5]),a.isPresent(n[6])&&(h=!1,u=c),a.isPresent(n[7])){if(h)throw new o.BaseException("Multiple selectors in :not are not supported");p(i,c),c=u=new t}}return p(i,c),i},t.prototype.isElementSelector=function(){return a.isPresent(this.element)&&s.ListWrapper.isEmpty(this.classNames)&&s.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=a.isPresent(this.element)?this.element:"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",s=0;s"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=i),this.attrs.push(t),e=a.isPresent(e)?e.toLowerCase():i,this.attrs.push(e)},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t="";if(a.isPresent(this.element)&&(t+=this.element),a.isPresent(this.classNames))for(var e=0;e0&&(t+="="+s),t+="]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}();e.CssSelector=p;var c=function(){function t(){this._elementMap=new s.Map,this._elementPartialMap=new s.Map,this._classMap=new s.Map,this._classPartialMap=new s.Map,this._attrValueMap=new s.Map,this._attrValuePartialMap=new s.Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new l(t),this._listContexts.push(n));for(var s=0;s0&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var s=c.createNotMatcher(this.notSelectors);n=!s.match(t,null)}return n&&a.isPresent(e)&&(a.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(a.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}();e.SelectorContext=u},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(27),i=n(17),r=n(48),p=n(1),c=n(6),l=n(188),u=n(28),h=n(76),d=n(15),f=n(5),m=n(154),g=function(){function t(t,e){this._xhr=t,this._urlResolver=e,this._styleCache=new Map,this._shadowCss=new l.ShadowCss}return t.prototype.compileComponentRuntime=function(t){var e=t.styles,n=t.styleUrls;return this._loadStyles(e,n,t.encapsulation===i.ViewEncapsulation.Emulated)},t.prototype.compileComponentCodeGen=function(t){var e=t.encapsulation===i.ViewEncapsulation.Emulated;return this._styleCodeGen(t.styles,t.styleUrls,e)},t.prototype.compileStylesheetCodeGen=function(t,e){var n=h.extractStyleUrls(this._urlResolver,t,e);return[this._styleModule(t,!1,this._styleCodeGen([n.style],n.styleUrls,!1)),this._styleModule(t,!0,this._styleCodeGen([n.style],n.styleUrls,!0))]},t.prototype.clearCache=function(){this._styleCache.clear()},t.prototype._loadStyles=function(t,e,n){var s=this,a=e.map(function(t){var e=""+t+(n?".shim":""),a=s._styleCache.get(e);return p.isBlank(a)&&(a=s._xhr.get(t).then(function(e){var a=h.extractStyleUrls(s._urlResolver,t,e);return s._loadStyles([a.style],a.styleUrls,n)}),s._styleCache.set(e,a)),a});return c.PromiseWrapper.all(a).then(function(e){var a=t.map(function(t){return s._shimIfNeeded(t,n)});return e.forEach(function(t){return a.push(t)}),a})},t.prototype._styleCodeGen=function(t,e,n){for(var s=this,a=p.IS_DART?"const":"",i=t.map(function(t){return d.escapeSingleQuoteString(s._shimIfNeeded(t,n))}),r=0;ro?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(46),i=n(1),r=n(4),p=n(6),c=n(48),l=n(28),u=n(76),h=n(5),d=n(17),f=n(72),m=n(73),g=n(125),y=function(){function t(t,e,n){this._xhr=t,this._urlResolver=e,this._htmlParser=n}return t.prototype.normalizeTemplate=function(t,e){var n=this;if(i.isPresent(e.template))return p.PromiseWrapper.resolve(this.normalizeLoadedTemplate(t,e,e.template,t.moduleUrl));if(i.isPresent(e.templateUrl)){var s=this._urlResolver.resolve(t.moduleUrl,e.templateUrl);return this._xhr.get(s).then(function(a){return n.normalizeLoadedTemplate(t,e,a,s)})}throw new r.BaseException("No template specified for component "+t.name)},t.prototype.normalizeLoadedTemplate=function(t,e,n,s){var a=this,i=this._htmlParser.parse(n,t.name);if(i.errors.length>0){var p=i.errors.join("\n");throw new r.BaseException("Template parse errors:\n"+p)}var c=new v;f.htmlVisitAll(c,i.rootNodes);var l=e.styles.concat(c.styles),h=c.styleUrls.filter(u.isStyleUrlResolvable).map(function(t){return a._urlResolver.resolve(s,t)}).concat(e.styleUrls.filter(u.isStyleUrlResolvable).map(function(e){return a._urlResolver.resolve(t.moduleUrl,e)})),m=l.map(function(t){var e=u.extractStyleUrls(a._urlResolver,s,t);return e.styleUrls.forEach(function(t){return h.push(t)}),e.style}),g=e.encapsulation;return g===d.ViewEncapsulation.Emulated&&0===m.length&&0===h.length&&(g=d.ViewEncapsulation.None),new o.CompileTemplateMetadata({encapsulation:g,template:n,templateUrl:s,styles:m,styleUrls:h,ngContentSelectors:c.ngContentSelectors})},t=s([h.Injectable(),a("design:paramtypes",[c.XHR,l.UrlResolver,m.HtmlParser])],t)}();e.TemplateNormalizer=y;var v=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=g.preparseElement(t);switch(n.type){case g.PreparsedElementType.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case g.PreparsedElementType.STYLE:var s="";t.children.forEach(function(t){t instanceof f.HtmlTextAst&&(s+=t.value)}),this.styles.push(s);break;case g.PreparsedElementType.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,f.htmlVisitAll(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitAttr=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}()},function(t,e,n){"use strict";function s(t){var e=null,n=null,s=null,o=!1;t.attrs.forEach(function(t){var a=t.name.toLowerCase();a==r?e=t.value:a==u?n=t.value:a==l?s=t.value:t.name==m&&(o=!0)}),e=a(e);var v=t.name.toLowerCase(),k=g.OTHER;return i.splitNsName(v)[1]==p?k=g.NG_CONTENT:v==d?k=g.STYLE:v==f?k=g.SCRIPT:v==c&&s==h&&(k=g.STYLESHEET),new y(k,e,n,o)}function a(t){return o.isBlank(t)||0===t.length?"*":t}var o=n(1),i=n(26),r="select",p="ng-content",c="link",l="rel",u="href",h="stylesheet",d="style",f="script",m="ngNonBindable";e.preparseElement=s,function(t){t[t.NG_CONTENT=0]="NG_CONTENT",t[t.STYLE=1]="STYLE",t[t.STYLESHEET=2]="STYLESHEET",t[t.SCRIPT=3]="SCRIPT",t[t.OTHER=4]="OTHER"}(e.PreparsedElementType||(e.PreparsedElementType={}));var g=e.PreparsedElementType,y=function(){function t(t,e,n,s){ +this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=s}return t}();e.PreparsedElement=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(4),o=n(2),i=n(1),r=n(18),p=function(t){function e(e,n){t.call(this),this.template=e,this.cmds=n}return s(e,t),e}(r.RenderProtoViewRef);e.DefaultProtoViewRef=p;var c=function(t){function e(e){t.call(this),this.nodes=e}return s(e,t),e}(r.RenderFragmentRef);e.DefaultRenderFragmentRef=c;var l=function(t){function e(e,n,s,a,o,i){t.call(this),this.fragments=e,this.boundTextNodes=n,this.boundElements=s,this.nativeShadowRoots=a,this.globalEventAdders=o,this.rootContentInsertionPoints=i,this.hydrated=!1,this.eventDispatcher=null,this.globalEventRemovers=null}return s(e,t),e.prototype.hydrate=function(){if(this.hydrated)throw new a.BaseException("The view is already hydrated.");this.hydrated=!0,this.globalEventRemovers=o.ListWrapper.createFixedSize(this.globalEventAdders.length);for(var t=0;ta.length){var d,f=h.ListWrapper.createFixedSize(l);for(d=0;d0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,s=0;s=200&&300>=a?e.resolve(s):e.reject("Failed to load "+t,null)},n.onerror=function(){e.reject("Failed to load "+t,null)},n.send(),e.promise},e}(i.XHR);e.XHRImpl=r},function(t,e,n){"use strict";function s(){return new p.ExceptionHandler(u.DOM,!i.IS_DART)}function a(){return u.DOM.defaultDoc()}function o(){b.BrowserDomAdapter.makeCurrent(),C.wtfInit(),E.BrowserGetTestability.init()}var i=n(1),r=n(5),p=n(3),c=n(7),l=n(56),u=n(8),h=n(161),d=n(226),f=n(225),m=n(37),g=n(160),y=n(59),v=n(59),k=n(104),_=n(103),b=n(157),E=n(218),C=n(210),T=n(24),w=n(37);e.DOCUMENT=w.DOCUMENT;var S=n(219);e.Title=S.Title;var P=n(173);e.DebugElementViewListener=P.DebugElementViewListener,e.ELEMENT_PROBE_PROVIDERS=P.ELEMENT_PROBE_PROVIDERS,e.ELEMENT_PROBE_BINDINGS=P.ELEMENT_PROBE_BINDINGS,e.inspectNativeElement=P.inspectNativeElement,e.By=P.By;var R=n(157);e.BrowserDomAdapter=R.BrowserDomAdapter;var O=n(221);e.enableDebugTools=O.enableDebugTools,e.disableDebugTools=O.disableDebugTools,e.BROWSER_PROVIDERS=i.CONST_EXPR([p.PLATFORM_COMMON_PROVIDERS,new r.Provider(p.PLATFORM_INITIALIZER,{useValue:o,multi:!0})]),e.BROWSER_APP_COMMON_PROVIDERS=i.CONST_EXPR([p.APPLICATION_COMMON_PROVIDERS,c.FORM_PROVIDERS,new r.Provider(p.PLATFORM_PIPES,{useValue:c.COMMON_PIPES,multi:!0}),new r.Provider(p.PLATFORM_DIRECTIVES,{useValue:c.COMMON_DIRECTIVES,multi:!0}),new r.Provider(p.ExceptionHandler,{useFactory:s,deps:[]}),new r.Provider(m.DOCUMENT,{useFactory:a,deps:[]}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:h.DomEventsPlugin,multi:!0}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:d.KeyEventsPlugin,multi:!0}),new r.Provider(T.EVENT_MANAGER_PLUGINS,{useClass:f.HammerGesturesPlugin,multi:!0}),new r.Provider(g.DomRenderer,{useClass:g.DomRenderer_}),new r.Provider(p.Renderer,{useExisting:g.DomRenderer}),new r.Provider(v.SharedStylesHost,{useExisting:y.DomSharedStylesHost}),y.DomSharedStylesHost,l.Testability,k.BrowserDetails,_.AnimationBuilder,T.EventManager]),e.initDomAdapter=o},function(t,e,n){"use strict";function s(t){return t}function a(t){return t.nodes}function o(t,e){var n=T.DOM.parentElement(t);if(e.length>0&&f.isPresent(n)){var s=T.DOM.nextSibling(t);if(f.isPresent(s))for(var a=0;ao?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},l=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},u=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},h=n(5),d=n(103),f=n(1),m=n(4),g=n(59),y=n(36),v=n(3),k=n(24),_=n(37),b=n(154),E=n(153),C=n(16),T=n(8),w=n(162),S=f.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),P="template bindings={}",R=/^template bindings=(.*)$/g,O=function(t){function e(){t.apply(this,arguments)}return p(e,t),e.prototype.getNativeElementSync=function(t){return s(t.renderView).boundElements[t.boundElementIndex]},e.prototype.getRootNodes=function(t){return a(t)},e.prototype.attachFragmentAfterFragment=function(t,e){var n=a(t);if(n.length>0){var s=n[n.length-1],i=a(e);o(s,i),this.animateNodesEnter(i)}},e.prototype.animateNodesEnter=function(t){for(var e=0;eo?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(8),r=n(3),p=n(24),c=function(t){function e(){t.apply(this,arguments)}return s(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){var s=this.manager.getZone(),a=function(t){return s.run(function(){return n(t)})};this.manager.getZone().runOutsideAngular(function(){i.DOM.on(t,e,a)})},e.prototype.addGlobalEventListener=function(t,e,n){var s=i.DOM.getGlobalEventTarget(t),a=this.manager.getZone(),o=function(t){return a.run(function(){return n(t)})};return this.manager.getZone().runOutsideAngular(function(){return i.DOM.onAndCancel(s,e,o)})},e=a([r.Injectable(),o("design:paramtypes",[])],e)}(p.EventManagerPlugin);e.DomEventsPlugin=c},function(t,e,n){"use strict";function s(t){return o.StringWrapper.replaceAllMapped(t,i,function(t){return"-"+t[1].toLowerCase()})}function a(t){return o.StringWrapper.replaceAllMapped(t,r,function(t){return t[1].toUpperCase()})}var o=n(1),i=/([A-Z])/g,r=/-([a-z])/g;e.camelCaseToDashCase=s,e.dashCaseToCamelCase=a},,,,,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=function(){function t(){this.isExpanded=!0,this.isCollapsed=!1,this.isCollapse=!0,this.isCollapsing=!1}return Object.defineProperty(t.prototype,"collapse",{get:function(){return this.isExpanded},set:function(t){this.isExpanded=t,this.toggle()},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){this.isExpanded?this.hide():this.show()},t.prototype.hide=function(){var t=this;this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!1,this.isCollapsed=!0,setTimeout(function(){t.height="0",t.isCollapse=!0,t.isCollapsing=!1},4)},t.prototype.show=function(){var t=this;this.isCollapse=!1,this.isCollapsing=!0,this.isExpanded=!0,this.isCollapsed=!1,setTimeout(function(){t.height="auto",t.isCollapse=!0,t.isCollapsing=!1},4)},s([o.HostBinding("style.height"),a("design:type",String)],t.prototype,"height",void 0),s([o.HostBinding("class.in"),o.HostBinding("attr.aria-expanded"),a("design:type",Boolean)],t.prototype,"isExpanded",void 0),s([o.HostBinding("attr.aria-hidden"),a("design:type",Boolean)],t.prototype,"isCollapsed",void 0),s([o.HostBinding("class.collapse"),a("design:type",Boolean)],t.prototype,"isCollapse",void 0),s([o.HostBinding("class.collapsing"),a("design:type",Boolean)],t.prototype,"isCollapsing",void 0),s([o.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],t.prototype,"collapse",null),t=s([o.Directive({selector:"[collapse]"}),a("design:paramtypes",[])],t)}();e.Collapse=i},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=function(){function t(t){this.viewRef=t}return Object.defineProperty(t.prototype,"ngTransclude",{get:function(){return this._ngTransclude},set:function(t){this._ngTransclude=t,t&&this.viewRef.createEmbeddedView(t)},enumerable:!0,configurable:!0}),t=s([i.Directive({selector:"[ngTransclude]",properties:["ngTransclude"]}),o(0,i.Inject(i.ViewContainerRef)),a("design:paramtypes",[i.ViewContainerRef])],t)}();e.NgTransclude=r},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(60),p=function(){function t(t,e){ +this.dropdown=t,this.el=e}return t.prototype.ngOnInit=function(){this.dropdown.dropDownMenu=this},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),t=s([i.Directive({selector:"[dropdown-menu]"}),o(0,i.Host()),a("design:paramtypes",[r.Dropdown,i.ElementRef])],t)}();e.DropdownMenu=p},function(t,e){e.ALWAYS="always",e.DISABLED="disabled",e.OUTSIDECLICK="outsideClick";var n=function(){function t(){this.closeDropdownBind=this.closeDropdown.bind(this),this.keybindFilterBind=this.keybindFilter.bind(this)}return t.prototype.open=function(t){this.openScope||(window.document.addEventListener("click",this.closeDropdownBind),window.document.addEventListener("keydown",this.keybindFilterBind)),this.openScope&&this.openScope!==this.dropdownScope&&(this.openScope.isOpen=!1),this.openScope=t},t.prototype.close=function(t){this.openScope===t&&(this.openScope=null,window.document.removeEventListener("click",this.closeDropdownBind),window.document.removeEventListener("keydown",this.keybindFilterBind))},t.prototype.closeDropdown=function(t){this.openScope&&(t&&this.openScope.autoClose===e.DISABLED||t&&this.openScope.toggleEl&&this.openScope.toggleEl.nativeElement===t.target||t&&this.openScope.autoClose===e.OUTSIDECLICK&&this.openScope.menuEl&&this.openScope.menuEl.nativeElement===t.target||(this.openScope.isOpen=!1))},t.prototype.keybindFilter=function(t){return 27===t.which?(this.openScope.focusToggleElement(),void this.closeDropdown(null)):void(this.openScope.keyboardNav&&this.openScope.isOpen&&(38===t.which||40===t.which)&&(t.preventDefault(),t.stopPropagation(),this.openScope.focusDropdownEntry(t.which)))},t}();e.DropdownService=n,e.dropdownService=new n},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(60),p=function(){function t(t,e){this.dropdown=t,this.el=e,this.disabled=!1,this.addClass=!0}return t.prototype.ngOnInit=function(){this.dropdown.dropDownToggle=this},Object.defineProperty(t.prototype,"isOpen",{get:function(){return this.dropdown.isOpen},enumerable:!0,configurable:!0}),t.prototype.toggleDropdown=function(t){return t.stopPropagation(),this.disabled||this.dropdown.toggle(),!1},s([i.HostBinding("class.disabled"),i.Input(),a("design:type",Boolean)],t.prototype,"disabled",void 0),s([i.HostBinding("class.dropdown-toggle"),i.HostBinding("attr.aria-haspopup"),a("design:type",Object)],t.prototype,"addClass",void 0),s([i.HostBinding("attr.aria-expanded"),a("design:type",Object)],t.prototype,"isOpen",null),s([i.HostListener("click",["$event"]),a("design:type",Function),a("design:paramtypes",[MouseEvent]),a("design:returntype",void 0)],t.prototype,"toggleDropdown",null),t=s([i.Directive({selector:"[dropdown-toggle]"}),o(0,i.Host()),a("design:paramtypes",[r.Dropdown,i.ElementRef])],t)}();e.DropdownToggle=p},function(t,e,n){"use strict";function s(t,n){c.reflector.reflectionCapabilities=new l.ReflectionCapabilities;var s=i.isPresent(n)?[e.BROWSER_APP_PROVIDERS,n]:e.BROWSER_APP_PROVIDERS;return c.platform(r.BROWSER_PROVIDERS).application(s).bootstrap(t)}var a=n(189);e.AngularEntrypoint=a.AngularEntrypoint;var o=n(159);e.BROWSER_PROVIDERS=o.BROWSER_PROVIDERS,e.ELEMENT_PROBE_BINDINGS=o.ELEMENT_PROBE_BINDINGS,e.ELEMENT_PROBE_PROVIDERS=o.ELEMENT_PROBE_PROVIDERS,e.inspectNativeElement=o.inspectNativeElement,e.BrowserDomAdapter=o.BrowserDomAdapter,e.By=o.By,e.Title=o.Title,e.DOCUMENT=o.DOCUMENT,e.enableDebugTools=o.enableDebugTools,e.disableDebugTools=o.disableDebugTools;var i=n(1),r=n(159),p=n(102),c=n(3),l=n(151),u=n(158),h=n(102),d=n(5);e.BROWSER_APP_PROVIDERS=i.CONST_EXPR([r.BROWSER_APP_COMMON_PROVIDERS,p.COMPILER_PROVIDERS,new d.Provider(h.XHR,{useClass:u.XHRImpl})]),e.bootstrap=s},function(t,e,n){"use strict";function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}var a=n(8);e.DOM=a.DOM,e.setRootDomAdapter=a.setRootDomAdapter,e.DomAdapter=a.DomAdapter;var o=n(160);e.DomRenderer=o.DomRenderer;var i=n(37);e.DOCUMENT=i.DOCUMENT;var r=n(59);e.SharedStylesHost=r.SharedStylesHost,e.DomSharedStylesHost=r.DomSharedStylesHost;var p=n(161);e.DomEventsPlugin=p.DomEventsPlugin;var c=n(24);e.EVENT_MANAGER_PLUGINS=c.EVENT_MANAGER_PLUGINS,e.EventManager=c.EventManager,e.EventManagerPlugin=c.EventManagerPlugin,s(n(222)),s(n(223))},function(t,e,n){"use strict";var s=n(1),a=n(156),o=n(162),i=n(2),r=n(8),p=function(){function t(t,e,n){var a=this;this.element=t,this.data=e,this.browserDetails=n,this.callbacks=[],this.eventClearFunctions=[],this.completed=!1,this._stringPrefix="",this.startTime=s.DateWrapper.toMillis(s.DateWrapper.now()),this._stringPrefix=r.DOM.getAnimationPrefix(),this.setup(),this.wait(function(t){return a.start()})}return Object.defineProperty(t.prototype,"totalTime",{get:function(){var t=null!=this.computedDelay?this.computedDelay:0,e=null!=this.computedDuration?this.computedDuration:0;return t+e},enumerable:!0,configurable:!0}),t.prototype.wait=function(t){this.browserDetails.raf(t,2)},t.prototype.setup=function(){null!=this.data.fromStyles&&this.applyStyles(this.data.fromStyles),null!=this.data.duration&&this.applyStyles({transitionDuration:this.data.duration.toString()+"ms"}),null!=this.data.delay&&this.applyStyles({transitionDelay:this.data.delay.toString()+"ms"})},t.prototype.start=function(){this.addClasses(this.data.classesToAdd),this.addClasses(this.data.animationClasses),this.removeClasses(this.data.classesToRemove),null!=this.data.toStyles&&this.applyStyles(this.data.toStyles);var t=r.DOM.getComputedStyle(this.element);this.computedDelay=a.Math.max(this.parseDurationString(t.getPropertyValue(this._stringPrefix+"transition-delay")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-delay"))),this.computedDuration=a.Math.max(this.parseDurationString(t.getPropertyValue(this._stringPrefix+"transition-duration")),this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix+"transition-duration"))),this.addEvents()},t.prototype.applyStyles=function(t){var e=this;i.StringMapWrapper.forEach(t,function(t,n){var a=o.camelCaseToDashCase(n);s.isPresent(r.DOM.getStyle(e.element,a))?r.DOM.setStyle(e.element,a,t.toString()):r.DOM.setStyle(e.element,e._stringPrefix+a,t.toString())})},t.prototype.addClasses=function(t){for(var e=0,n=t.length;n>e;e++)r.DOM.addClass(this.element,t[e])},t.prototype.removeClasses=function(t){for(var e=0,n=t.length;n>e;e++)r.DOM.removeClass(this.element,t[e])},t.prototype.addEvents=function(){var t=this;this.totalTime>0?this.eventClearFunctions.push(r.DOM.onAndCancel(this.element,r.DOM.getTransitionEnd(),function(e){return t.handleAnimationEvent(e)})):this.handleAnimationCompleted()},t.prototype.handleAnimationEvent=function(t){var e=a.Math.round(1e3*t.elapsedTime);this.browserDetails.elapsedTimeIncludesDelay||(e+=this.computedDelay),t.stopPropagation(),e>=this.totalTime&&this.handleAnimationCompleted()},t.prototype.handleAnimationCompleted=function(){this.removeClasses(this.data.animationClasses),this.callbacks.forEach(function(t){return t()}),this.callbacks=[],this.eventClearFunctions.forEach(function(t){return t()}),this.eventClearFunctions=[],this.completed=!0},t.prototype.onComplete=function(t){return this.completed?t():this.callbacks.push(t),this},t.prototype.parseDurationString=function(t){var e=0;if(null==t||t.length<2)return e;if("ms"==t.substring(t.length-2)){var n=s.NumberWrapper.parseInt(this.stripLetters(t),10);n>e&&(e=n)}else if("s"==t.substring(t.length-1)){var o=1e3*s.NumberWrapper.parseFloat(this.stripLetters(t)),n=a.Math.floor(o);n>e&&(e=n)}return e},t.prototype.stripLetters=function(t){return s.StringWrapper.replaceAll(t,s.RegExpWrapper.create("[^0-9]+$",""),"")},t}();e.Animation=p},function(t,e,n){"use strict";var s=n(176),a=n(174),o=function(){function t(t){this.browserDetails=t,this.data=new s.CssAnimationOptions}return t.prototype.addAnimationClass=function(t){return this.data.animationClasses.push(t),this},t.prototype.addClass=function(t){return this.data.classesToAdd.push(t),this},t.prototype.removeClass=function(t){return this.data.classesToRemove.push(t),this},t.prototype.setDuration=function(t){return this.data.duration=t,this},t.prototype.setDelay=function(t){return this.data.delay=t,this},t.prototype.setStyles=function(t,e){return this.setFromStyles(t).setToStyles(e)},t.prototype.setFromStyles=function(t){return this.data.fromStyles=t,this},t.prototype.setToStyles=function(t){return this.data.toStyles=t,this},t.prototype.start=function(t){return new a.Animation(t,this.data,this.browserDetails)},t}();e.CssAnimationBuilder=o},function(t,e){"use strict";var n=function(){function t(){this.classesToAdd=[],this.classesToRemove=[],this.animationClasses=[]}return t}();e.CssAnimationOptions=n},,,,,,,,function(t,e,n){"use strict";function s(t,e,n,s){var o=[],i=new h(null,o,e);return l.templateVisitAll(i,s),a(o,t,n)}function a(t,e,n){var s=o(t);return t.map(function(t){var a=e.name+"_"+t.viewIndex;return new c.ChangeDetectorDefinition(a,t.strategy,s[t.viewIndex],t.bindingRecords,t.eventRecords,t.directiveRecords,n)})}function o(t){var e=i.ListWrapper.createFixedSize(t.length);return t.forEach(function(t){var n=r.isPresent(t.parent)?e[t.parent.viewIndex]:[];e[t.viewIndex]=n.concat(t.variableNames)}),e}var i=n(2),r=n(1),p=n(9),c=n(10),l=n(47),u=n(33);e.createChangeDetectorDefinitions=s;var h=function(){function t(t,e,n){this.parent=t,this.allVisitors=e,this.strategy=n,this.boundTextCount=0,this.boundElementCount=0,this.variableNames=[],this.bindingRecords=[],this.eventRecords=[],this.directiveRecords=[],this.viewIndex=e.length,e.push(this)}return t.prototype.visitEmbeddedTemplate=function(e,n){this.boundElementCount++,l.templateVisitAll(this,e.outputs);for(var s=0;s;" or "&#x;" syntax'}function i(t){return!r(t)||t===w}function r(t){return t>=S&&O>=t||t===J}function p(t){return r(t)||t===W||t===B||t===I||t===D||t===V}function c(t){return($>t||t>Y)&&(z>t||t>G)&&(L>t||t>U)}function l(t){return t==j||t==w||!f(t)}function u(t){return t==j||t==w||!d(t)}function h(t){return t===F||t===w}function d(t){return t>=$&&Y>=t}function f(t){return t>=$&&K>=t||t>=L&&U>=t}function m(t){for(var e,n=[],s=0;s=this.length)throw this._createError(a(w),this._getLocation());this.peek===P?(this.line++,this.column=0):this.peek!==P&&this.peek!==R&&this.column++,this.index++,this.peek=this.index>=this.length?w:y.StringWrapper.charCodeAt(this.inputLowercase,this.index)},t.prototype._attemptChar=function(t){return this.peek===t?(this._advance(),!0):!1},t.prototype._requireChar=function(t){var e=this._getLocation();if(!this._attemptChar(t))throw this._createError(a(this.peek),e)},t.prototype._attemptChars=function(t){for(var e=0;es.offset&&o.push(this.input.substring(s.offset,this.index));this.peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],s)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(b.COMMENT_START,t),this._requireChar(N),this._endToken([]);var n=this._consumeRawText(!1,N,function(){return e._attemptChars("->")});this._beginToken(b.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(b.CDATA_START,t),this._requireChars("cdata["),this._endToken([]);var n=this._consumeRawText(!1,X,function(){return e._attemptChars("]>")});this._beginToken(b.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(b.DOC_TYPE,t),this._attemptUntilChar(W),this._advance(),this._endToken([this.input.substring(t.offset+2,this.index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this.index,e=null;this.peek!==H&&!c(this.peek);)this._advance();var n;this.peek===H?(this._advance(),e=this.input.substring(t,this.index-1),n=this.index):n=t,this._requireUntilFn(p,this.index===n?1:0);var s=this.input.substring(n,this.index);return[e,s]},t.prototype._consumeTagOpen=function(t){var e,n=this._savePosition();try{if(!d(this.peek))throw this._createError(a(this.peek),this._getLocation());var s=this.index;for(this._consumeTagOpenStart(t),e=this.inputLowercase.substring(s,this.index),this._attemptUntilFn(i);this.peek!==B&&this.peek!==W;)this._consumeAttributeName(),this._attemptUntilFn(i),this._attemptChar(V)&&(this._attemptUntilFn(i),this._consumeAttributeValue()),this._attemptUntilFn(i);this._consumeTagOpenEnd()}catch(o){if(o instanceof tt)return this._restorePosition(n),this._beginToken(b.TEXT,t),void this._endToken(["<"]);throw o}var r=_.getHtmlTagDefinition(e).contentType;r===_.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(e,!1):r===_.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(e,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,s=this._consumeRawText(e,F,function(){return n._attemptChar(B)?(n._attemptUntilFn(i),n._attemptChars(t)?(n._attemptUntilFn(i),n._attemptChar(W)?!0:!1):!1):!1});this._beginToken(b.TAG_CLOSE,s.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(b.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(b.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(b.ATTR_VALUE);var t;if(this.peek===I||this.peek===D){var e=this.peek;this._advance();for(var n=[];this.peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var s=this.index;this._requireUntilFn(p,1),t=this.input.substring(s,this.index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptChar(B)?b.TAG_OPEN_END_VOID:b.TAG_OPEN_END;this._beginToken(t),this._requireChar(W),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(b.TAG_CLOSE,t),this._attemptUntilFn(i);var e;e=this._consumePrefixAndName(),this._attemptUntilFn(i),this._requireChar(W),this._endToken(e)},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(b.TEXT,t);for(var e=[this._readChar(!0)];!h(this.peek);)e.push(this._readChar(!0));this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._savePosition=function(){return[this.peek,this.index,this.column,this.line,this.tokens.length]},t.prototype._restorePosition=function(t){this.peek=t[0],this.index=t[1],this.column=t[2],this.line=t[3];var e=t[4];eo?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(5),r=n(1),p=n(2),c=n(8),l=n(26),u=n(75),h=r.CONST_EXPR({xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg"}),d=function(t){function e(){t.apply(this,arguments),this._protoElements=new Map}return s(e,t),e.prototype._getProtoElement=function(t){var e=this._protoElements.get(t);if(r.isBlank(e)){var n=l.splitNsName(t);e=r.isPresent(n[0])?c.DOM.createElementNS(h[n[0]],n[1]):c.DOM.createElement(n[1]),this._protoElements.set(t,e)}return e},e.prototype.hasProperty=function(t,e){if(-1!==t.indexOf("-"))return!0;var n=this._getProtoElement(t);return c.DOM.hasProperty(n,e)},e.prototype.getMappedPropName=function(t){var e=p.StringMapWrapper.get(c.DOM.attrToPropMap,t);return r.isPresent(e)?e:t},e=a([i.Injectable(),o("design:paramtypes",[])],e)}(u.ElementSchemaRegistry);e.DomElementSchemaRegistry=d},function(t,e,n){"use strict";function s(t){return r.StringWrapper.replaceAllMapped(t,C,function(t){return""})}function a(t,e){var n=o(t),s=0;return r.StringWrapper.replaceAllMapped(n.escapedString,T,function(t){var a=t[2],o="",i=t[4],p="";r.isPresent(t[4])&&t[4].startsWith("{"+R)&&(o=n.blocks[s++],i=t[4].substring(R.length+1),p="{");var c=e(new O(a,o));return""+t[1]+c.selector+t[3]+p+c.content+i})}function o(t){for(var e=r.StringWrapper.split(t,w),n=[],s=[],a=0,o=[],i=0;i0?o.push(p):(o.length>0&&(s.push(o.join("")),n.push(R),o=[]),n.push(p)),p==S&&a++}return o.length>0&&(s.push(o.join("")),n.push(R)),new A(n.join(""),s)}var i=n(2),r=n(1),p=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){return void 0===n&&(n=""),t=s(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return r.StringWrapper.replaceAllMapped(t,c,function(t){return t[1]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return r.StringWrapper.replaceAllMapped(t,l,function(t){var e=t[0];return e=r.StringWrapper.replace(e,t[1],""),e=r.StringWrapper.replace(e,t[2],""),t[3]+e})},t.prototype._scopeCssText=function(t,e,n){var s=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),r.isPresent(e)&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+s,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){for(var e,n="",s=r.RegExpWrapper.matcher(u,t);r.isPresent(e=r.RegExpMatcherWrapper.next(s));){var a=e[0];a=r.StringWrapper.replace(a,e[2],""),a=r.StringWrapper.replace(a,e[1],e[3]),n+=a+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,m,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,g,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return r.StringWrapper.replaceAllMapped(t,e,function(t){if(r.isPresent(t[2])){for(var e=t[2].split(","),s=[],a=0;a","+","~"],a=t,o="["+e+"]",p=0;p0&&!i.ListWrapper.contains(s,e)&&!r.StringWrapper.contains(e,o)){var n=/([^:]*)(:*)(.*)/g,a=r.RegExpWrapper.firstMatch(n,e);r.isPresent(a)&&(t=a[1]+o+a[2]+a[3])}return t}).join(c)}return a},t.prototype._insertPolyfillHostInCssText=function(t){return t=r.StringWrapper.replaceAll(t,E,d),t=r.StringWrapper.replaceAll(t,b,h)},t}();e.ShadowCss=p;var c=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,l=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,u=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,h="-shadowcsshost",d="-shadowcsscontext",f=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",m=r.RegExpWrapper.create("("+h+f,"im"),g=r.RegExpWrapper.create("("+d+f,"im"),y=h+"-no-combinator",v=[/>>>/g,/::shadow/g,/::content/g,/\/deep\//g,/\/shadow-deep\//g,/\/shadow\//g],k="([>\\s~+[.,{:][\\s\\S]*)?$",_=r.RegExpWrapper.create(h,"im"),b=/:host/gim,E=/:host-context/gim,C=/\/\*[\s\S]*?\*\//g,T=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,S="{",P="}",R="%BLOCK%",O=function(){function t(t,e){this.selector=t,this.content=e}return t}();e.CssRule=O,e.processRules=a;var A=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}()},function(t,e,n){"use strict";var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i), +i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(1),i=function(){function t(t){this.name=t}return t=s([o.CONST(),a("design:paramtypes",[String])],t)}();e.AngularEntrypoint=i},,,,,,,,,,,,,,,,,,,,,function(t,e){"use strict";function n(){}e.wtfInit=n},,,,,function(t,e){"use strict";var n=window;e.window=n,e.document=window.document,e.location=window.location,e.gc=window.gc?function(){return window.gc()}:function(){return null},e.performance=window.performance?window.performance:null,e.Event=window.Event,e.MouseEvent=window.MouseEvent,e.KeyboardEvent=window.KeyboardEvent,e.EventTarget=window.EventTarget,e.History=window.History,e.Location=window.Location,e.EventListener=window.EventListener},,function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n(2),o=n(1),i=n(8),r=n(158),p=function(t){function e(){var e=this;t.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var n=this.createElement("div",this.defaultDoc());if(o.isPresent(this.getStyle(n,"animationName")))this._animationPrefix="";else for(var s=["Webkit","Moz","O","ms"],i=0;ip||i.DOM.performanceNow()-r<500;)this.appRef.tick(),p++;var c=i.DOM.performanceNow();e&&s&&o.window.console.profileEnd(n);var l=(c-r)/p;o.window.console.log("ran "+p+" change detection cycles"),o.window.console.log(a.NumberWrapper.toFixed(l,2)+" ms per check")},t}();e.AngularProfiler=p},function(t,e,n){"use strict";function s(t){r.ng=new i.AngularTools(t)}function a(){delete r.ng}var o=n(1),i=n(220),r=o.global;e.enableDebugTools=s,e.disableDebugTools=a},function(t,e,n){"use strict";var s=n(1),a=n(8),o=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return s.isPresent(e.nativeElement)?a.DOM.elementMatches(e.nativeElement,t):!1}},t.directive=function(t){return function(e){return e.hasDirective(t)}},t}();e.By=o},function(t,e,n){"use strict";function s(t,e){p.isPresent(t)&&h.DOM.isElementNode(t)&&h.DOM.setData(t,m,e.join(y))}function a(t){var e=h.DOM.getData(t,m);return p.isPresent(e)?e.split(y).map(function(t){return p.NumberWrapper.parseInt(t,10)}):null}function o(t){var e=a(t);if(p.isPresent(e)){var n=k.get(e[0]);if(p.isPresent(n))return new f.DebugElement_(n,e[1])}return null}var i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=n(1),c=n(2),l=n(5),u=n(89),h=n(8),d=n(18),f=n(140),m="ngid",g="ng.probe",y="#",v=new c.Map,k=new c.Map,_=0;e.inspectNativeElement=o;var b=function(){function t(t){this._renderer=t,h.DOM.setGlobalVar(g,o)}return t.prototype.onViewCreated=function(t){var e=_++;k.set(e,t),v.set(t,e);for(var n=0;no?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(224),r=n(1),p=n(4),c=n(5),l=function(t){function e(){t.apply(this,arguments)}return s(e,t),e.prototype.supports=function(e){if(!t.prototype.supports.call(this,e))return!1;if(!r.isPresent(window.Hammer))throw new p.BaseException("Hammer.js is not loaded, can not bind "+e+" event");return!0},e.prototype.addEventListener=function(t,e,n){var s=this.manager.getZone();e=e.toLowerCase(),s.runOutsideAngular(function(){var a=new Hammer(t);a.get("pinch").set({enable:!0}),a.get("rotate").set({enable:!0}),a.on(e,function(t){s.run(function(){n(t)})})})},e=a([c.Injectable(),o("design:paramtypes",[])],e)}(i.HammerGesturesPluginCommon);e.HammerGesturesPlugin=l},function(t,e,n){"use strict";var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(8),r=n(1),p=n(2),c=n(24),l=n(5),u=["alt","control","meta","shift"],h={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},d=function(t){function e(){t.call(this)}return s(e,t),e.prototype.supports=function(t){return r.isPresent(e.parseEventName(t))},e.prototype.addEventListener=function(t,n,s){var a=e.parseEventName(n),o=e.eventCallback(t,p.StringMapWrapper.get(a,"fullKey"),s,this.manager.getZone());this.manager.getZone().runOutsideAngular(function(){i.DOM.on(t,p.StringMapWrapper.get(a,"domEventName"),o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),s=n.shift();if(0===n.length||!r.StringWrapper.equals(s,"keydown")&&!r.StringWrapper.equals(s,"keyup"))return null;var a=e._normalizeKey(n.pop()),o="";if(u.forEach(function(t){p.ListWrapper.contains(n,t)&&(p.ListWrapper.remove(n,t),o+=t+".")}),o+=a,0!=n.length||0===a.length)return null;var i=p.StringMapWrapper.create();return p.StringMapWrapper.set(i,"domEventName",s),p.StringMapWrapper.set(i,"fullKey",o),i},e.getEventFullKey=function(t){var e="",n=i.DOM.getEventKey(t);return n=n.toLowerCase(),r.StringWrapper.equals(n," ")?n="space":r.StringWrapper.equals(n,".")&&(n="dot"),u.forEach(function(s){if(s!=n){var a=p.StringMapWrapper.get(h,s);a(t)&&(e+=s+".")}}),e+=n},e.eventCallback=function(t,n,s,a){return function(t){r.StringWrapper.equals(e.getEventFullKey(t),n)&&a.run(function(){return s(t)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e=a([l.Injectable(),o("design:paramtypes",[])],e)}(c.EventManagerPlugin);e.KeyEventsPlugin=d},function(t,e){"use strict";var n=function(){function t(t){}return t.prototype.generate=function(t,e,n){throw"Not implemented in JS"},t.prototype.toString=function(){throw"Not implemented in JS"},t}();e.Codegen=n},function(t,e){t.exports='

Usage

\n
import {FileSelect, FileDrop, FileUploader} from \'ng2-file-upload\';\n
\n

Annotations

\n
// class FileSelect\n@Directive({\n  selector: \'[ng2-file-select]\',\n  properties: [\'uploader\'],\n  host: {\n    \'(change)\': \'onChange()\'\n  }\n})\n
\n
// class FileDrop\n@Directive({\n  selector: \'[ng2-file-drop]\',\n  properties: [\'uploader\'],\n  events: [\'fileOver\'],\n  host: {\n    \'(drop)\': \'onDrop($event)\',\n    \'(dragover)\': \'onDragOver($event)\',\n    \'(dragleave)\': \'onDragLeave($event)\'\n  }\n})\n
\n

FileSelect API

\n

Properties

\n
    \n
  • uploader - (FileUploader) - uploader object. See using in demo

    \n

    Parameters that supported by this object:

    \n
  • \n
  • url - URL of File Uploader's route

    \n
  • \n
  • authToken - auth token that will be applied as 'Authorization' header during file send.
  • \n
\n

FileDrop API

\n

Properties

\n
    \n
  • uploader - (FileUploader) - uploader object. See using in demo
  • \n
\n

Events

\n
    \n
  • file-over - it fires during 'over' and 'out' events for Drop Area; returns boolean: true if file is over Drop Area, false in case of out.\nSee using in ts demo and\nhtml demo
  • \n
\n'},function(t,e){t.exports='

Getting started

\n

First of all, Welcome!

\n

Install

\n

Install the components

\n
npm install ng2-file-upload --save\n
'},function(t,e){t.exports='var express = require(\'express\');\nvar multer = require(\'multer\');\nvar fs = require(\'fs\');\nvar app = express();\n\nvar DIR = \'./uploads/\';\n\nvar upload = multer({dest: DIR});\n\napp.use(function (req, res, next) {\n res.setHeader(\'Access-Control-Allow-Origin\', \'http://valor-software.github.io\');\n res.setHeader(\'Access-Control-Allow-Methods\', \'POST\');\n res.setHeader(\'Access-Control-Allow-Headers\', \'X-Requested-With,content-type\');\n res.setHeader(\'Access-Control-Allow-Credentials\', true);\n next();\n});\n\napp.use(multer({\n dest: DIR,\n rename: function (fieldname, filename) {\n return filename + Date.now();\n },\n onFileUploadStart: function (file) {\n console.log(file.originalname + \' is starting ...\');\n },\n onFileUploadComplete: function (file) {\n console.log(file.fieldname + \' uploaded to \' + file.path);\n }\n}));\n\napp.get(\'/api\', function (req, res) {\n res.end(\'file catcher example\');\n});\n\napp.post(\'/api\', function (req, res) {\n upload(req, res, function (err) {\n if (err) {\n return res.end(err.toString());\n }\n\n res.end(\'File is uploaded\');\n });\n});\n\nvar PORT = process.env.PORT || 3000;\n\napp.listen(PORT, function () {\n console.log(\'Working on port \' + PORT);\n});\n'},function(t,e){t.exports='<style>\n .my-drop-zone { border: dotted 3px lightgray; }\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\n .another-file-over-class { border: dotted 3px green; }\n\n html, body { height: 100%; }\n</style>\n\n<div class="container">\n\n <div class="navbar navbar-default">\n <div class="navbar-header">\n <a class="navbar-brand" href>Angular2 File Upload</a>\n </div>\n </div>\n\n <div class="row">\n\n <div class="col-md-3">\n\n <h3>Select files</h3>\n\n <div ng2-file-drop\n [ngClass]="{\'nv-file-over\': hasBaseDropZoneOver}"\n (file-over)="fileOverBase($event)"\n [uploader]="uploader"\n class="well my-drop-zone">\n Base drop zone\n </div>\n\n <div ng2-file-drop\n [ngClass]="{\'another-file-over-class\': hasAnotherDropZoneOver}"\n (file-over)="fileOverAnother($event)"\n [uploader]="uploader"\n class="well my-drop-zone">\n Another drop zone\n </div>\n\n Multiple\n <input type="file" ng2-file-select [uploader]="uploader" multiple /><br/>\n\n Single\n <input type="file" ng2-file-select [uploader]="uploader" />\n </div>\n\n <div class="col-md-9" style="margin-bottom: 40px">\n\n <h3>Upload queue</h3>\n <p>Queue length: {{ uploader?.queue?.length }}</p>\n\n <table class="table">\n <thead>\n <tr>\n <th width="50%">Name</th>\n <th>Size</th>\n <th>Progress</th>\n <th>Status</th>\n <th>Actions</th>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor="#item of uploader.queue">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td *ngIf="uploader.isHTML5" nowrap>{{ item?.file?.size/1024/1024 | number:\'.2\' }} MB</td>\n <td *ngIf="uploader.isHTML5">\n <div class="progress" style="margin-bottom: 0;">\n <div class="progress-bar" role="progressbar" [ngStyle]="{ \'width\': item.progress + \'%\' }"></div>\n </div>\n </td>\n <td class="text-center">\n <span *ngIf="item.isSuccess"><i class="glyphicon glyphicon-ok"></i></span>\n <span *ngIf="item.isCancel"><i class="glyphicon glyphicon-ban-circle"></i></span>\n <span *ngIf="item.isError"><i class="glyphicon glyphicon-remove"></i></span>\n </td>\n <td nowrap>\n <button type="button" class="btn btn-success btn-xs"\n (click)="item.upload()" [disabled]="item.isReady || item.isUploading || item.isSuccess">\n <span class="glyphicon glyphicon-upload"></span> Upload\n </button>\n <button type="button" class="btn btn-warning btn-xs"\n (click)="item.cancel()" [disabled]="!item.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> Cancel\n </button>\n <button type="button" class="btn btn-danger btn-xs"\n (click)="item.remove()">\n <span class="glyphicon glyphicon-trash"></span> Remove\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div>\n <div>\n Queue progress:\n <div class="progress" style="">\n <div class="progress-bar" role="progressbar" [ngStyle]="{ \'width\': uploader.progress + \'%\' }"></div>\n </div>\n </div>\n <button type="button" class="btn btn-success btn-s"\n (click)="uploader.uploadAll()" [disabled]="!uploader.getNotUploadedItems().length">\n <span class="glyphicon glyphicon-upload"></span> Upload all\n </button>\n <button type="button" class="btn btn-warning btn-s"\n (click)="uploader.cancelAll()" [disabled]="!uploader.isUploading">\n <span class="glyphicon glyphicon-ban-circle"></span> Cancel all\n </button>\n <button type="button" class="btn btn-danger btn-s"\n (click)="uploader.clearQueue()" [disabled]="!uploader.queue.length">\n <span class="glyphicon glyphicon-trash"></span> Remove all\n </button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n'; +},function(t,e){t.exports='/// <reference path="../../../tsd.d.ts" />\n\nimport {Component} from \'angular2/core\';\nimport {CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle} from \'angular2/common\';\nimport {FILE_UPLOAD_DIRECTIVES, FileUploader} from \'../../../ng2-file-upload\';\n\n// webpack html imports\nlet template = require(\'./simple-demo.html\');\n\n// const URL = \'/api/\';\nconst URL = \'https://evening-anchorage-3159.herokuapp.com/api/\';\n\n@Component({\n selector: \'simple-demo\',\n template: template,\n directives: [FILE_UPLOAD_DIRECTIVES, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]\n})\nexport class SimpleDemo {\n private uploader:FileUploader = new FileUploader({url: URL});\n private hasBaseDropZoneOver:boolean = false;\n private hasAnotherDropZoneOver:boolean = false;\n\n private fileOverBase(e:any) {\n this.hasBaseDropZoneOver = e;\n }\n\n private fileOverAnother(e:any) {\n this.hasAnotherDropZoneOver = e;\n }\n}\n'},function(t,e){t.exports='\n\n
\n\n \n\n
\n\n
\n\n

Select files

\n\n
\n Base drop zone\n
\n\n
\n Another drop zone\n
\n\n Multiple\n
\n\n Single\n \n
\n\n
\n\n

Upload queue

\n

Queue length: {{ uploader?.queue?.length }}

\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
NameSizeProgressStatusActions
{{ item?.file?.name }}{{ item?.file?.size/1024/1024 | number:\'.2\' }} MB\n
\n
\n
\n
\n \n \n \n \n \n \n \n
\n\n
\n
\n Queue progress:\n
\n
\n
\n
\n \n \n \n
\n\n
\n\n
\n\n
\n'},,,,,,,,,,function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(260),p=n(244),c="File Upload",l=n(228),u=[{heading:"Simple",ts:n(232),html:n(231),js:n(230)}],h="";u.forEach(function(t){h+='\n \n
\n\n <'+t.heading.toLowerCase()+"-demo *ngIf=\"currentHeading === '"+t.heading+"'\">\n\n
\n\n
\n \n \n
\n
'+t.html+'
\n
\n
\n \n
\n
'+t.ts+'
\n
\n
\n \n
\n
'+t.js+"
\n
\n
\n
\n
\n
\n
\n "});var d=function(){function t(){this.currentHeading="Simple"}return t.prototype.select=function(t){t.heading&&(this.currentHeading=t.heading)},t=s([o.Component({selector:"file-upload-section",template:'\n
\n
\n \n\n '+h+'\n\n \n
\n\n
\n

API

\n
'+l+"
\n
\n
\n ",directives:[p.SimpleDemo,r.TAB_DIRECTIVES,i.CORE_DIRECTIVES]}),a("design:paramtypes",[])],t)}();e.FileUploadSection=d},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(99),p=n(233),c="https://evening-anchorage-3159.herokuapp.com/api/",l=function(){function t(){this.uploader=new r.FileUploader({url:c}),this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1}return t.prototype.fileOverBase=function(t){this.hasBaseDropZoneOver=t},t.prototype.fileOverAnother=function(t){this.hasAnotherDropZoneOver=t},t=s([o.Component({selector:"simple-demo",template:p,directives:[r.FILE_UPLOAD_DIRECTIVES,i.NgClass,i.NgStyle,i.CORE_DIRECTIVES,i.FORM_DIRECTIVES]}),a("design:paramtypes",[])],t)}();e.SimpleDemo=l},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=n(167),c=function(){function t(){this.addPanelGroupClass=!0,this.groups=[]}return t.prototype.closeOtherGroups=function(t){this.closeOthers&&this.groups.forEach(function(e){e!==t&&(e.isOpen=!1)})},t.prototype.addGroup=function(t){this.groups.push(t)},t.prototype.removeGroup=function(t){var e=this.groups.indexOf(t);-1!==e&&this.groups.slice(e,1)},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"closeOthers",void 0),s([i.HostBinding("class.panel-group"),a("design:type",Object)],t.prototype,"addPanelGroupClass",void 0),t=s([i.Component({selector:"accordion",template:""}),a("design:paramtypes",[])],t)}();e.Accordion=c;var l=function(){function t(t){this.viewRef=t}return t.prototype.ngOnInit=function(){this.accordionTransclude&&this.viewRef.createEmbeddedView(this.accordionTransclude)},s([i.Input(),a("design:type",i.TemplateRef)],t.prototype,"accordionTransclude",void 0),t=s([i.Directive({selector:"[accordionTransclude]"}),o(0,i.Inject(i.ViewContainerRef)),a("design:paramtypes",[i.ViewContainerRef])],t)}();e.AccordionTransclude=l;var u=function(){function t(t){this.accordion=t}return Object.defineProperty(t.prototype,"isOpen",{get:function(){return this._isOpen},set:function(t){this._isOpen=t,t&&this.accordion.closeOtherGroups(this)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.panelClass=this.panelClass||"panel-default",this.accordion.addGroup(this)},t.prototype.ngOnDestroy=function(){this.accordion.removeGroup(this)},t.prototype.toggleOpen=function(t){t.preventDefault(),this.isDisabled||(this.isOpen=!this.isOpen)},s([i.Input(),a("design:type",String)],t.prototype,"templateUrl",void 0),s([i.Input(),a("design:type",String)],t.prototype,"heading",void 0),s([i.Input(),a("design:type",String)],t.prototype,"panelClass",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"isDisabled",void 0),s([i.HostBinding("class.panel-open"),i.Input(),a("design:type",Boolean)],t.prototype,"isOpen",null),t=s([i.Component({selector:"accordion-group",directives:[p.Collapse,l,r.NgClass],template:'\n
\n
\n

\n \n {{heading}}\n \n

\n
\n
\n
\n \n
\n
\n
\n '}),a("design:paramtypes",[c])],t)}();e.AccordionGroup=u;var h=function(){function t(t,e){this.group=t,this.templateRef=e,t.headingTemplate=e}return t=s([i.Directive({selector:"[accordion-heading]"}),a("design:paramtypes",[u,i.TemplateRef])],t)}();e.AccordionHeading=h,e.ACCORDION_DIRECTIVES=[c,u,h],e.accordion=[c,u,h]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r='\n \n ',p=function(){function t(t){this.el=t,this.type="warning",this.close=new o.EventEmitter,this.classes=[],this.dismissible=this.dismissible||t.nativeElement.getAttribute("(close)")}return t.prototype.ngOnInit=function(){var t=this;this.classes[0]="alert-"+this.type,this.dismissible?this.classes[1]="alert-dismissible":this.classes.length=1,this.dismissOnTimeout&&setTimeout(function(){return t.onClose()},this.dismissOnTimeout)},t.prototype.onClose=function(){this.close.next(this),this.closed=!0},s([o.Input(),a("design:type",String)],t.prototype,"type",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"dismissible",void 0),s([o.Input(),a("design:type",Number)],t.prototype,"dismissOnTimeout",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"close",void 0),t=s([o.Component({selector:"alert",directives:[i.NgIf,i.NgClass],template:r}),a("design:paramtypes",[o.ElementRef])],t)}();e.Alert=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t){this.cd=t,this.state=!1,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return t.prototype.onClick=function(){this.toggle(!this.state),this.cd.viewToModelUpdate(this.value)},t.prototype.ngOnInit=function(){this.toggle(this.trueValue===this.value)},Object.defineProperty(t.prototype,"trueValue",{get:function(){return"undefined"!=typeof this.btnCheckboxTrue?this.btnCheckboxTrue:!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"falseValue",{get:function(){return"undefined"!=typeof this.btnCheckboxFalse?this.btnCheckboxFalse:!1},enumerable:!0,configurable:!0}),t.prototype.toggle=function(t){this.state=t,this.value=this.state?this.trueValue:this.falseValue},t.prototype.writeValue=function(t){this.state=this.trueValue===t,this.value=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",Object)],t.prototype,"btnCheckboxTrue",void 0),s([i.Input(),a("design:type",Object)],t.prototype,"btnCheckboxFalse",void 0),s([i.HostBinding("class.active"),a("design:type",Boolean)],t.prototype,"state",void 0),s([i.HostListener("click"),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"onClick",null),t=s([i.Directive({selector:"[btnCheckbox][ngModel]"}),o(0,i.Self()),a("design:paramtypes",[r.NgModel])],t)}();e.ButtonCheckbox=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t,e){this.cd=t,this.el=e,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.btnRadio===this.value},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){return this.uncheckable&&this.btnRadio===this.value?this.cd.viewToModelUpdate(null):void this.cd.viewToModelUpdate(this.btnRadio)},t.prototype.ngOnInit=function(){this.uncheckable="undefined"!=typeof this.uncheckable},Object.defineProperty(t.prototype,"value",{get:function(){return this.cd.viewModel},set:function(t){this.cd.viewModel=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",String)],t.prototype,"btnRadio",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"uncheckable",void 0),s([i.HostBinding("class.active"),a("design:type",Object)],t.prototype,"isActive",null),s([i.HostListener("click"),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"onClick",null),t=s([i.Directive({selector:"[btnRadio][ngModel]"}),o(0,i.Self()),a("design:paramtypes",[r.NgModel,i.ElementRef])],t)}();e.ButtonRadio=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(100);!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.NEXT=1]="NEXT",t[t.PREV=2]="PREV"}(e.Direction||(e.Direction={}));var p=e.Direction,c=(h={},h[r.Ng2BootstrapTheme.BS4]='\n \n \n Previous\n \n \n \n Next\n \n ',h[r.Ng2BootstrapTheme.BS3]='\n \n \n \n \n \n \n ',h),l=function(){function t(){this.slides=[],this.destroyed=!1}return Object.defineProperty(t.prototype,"interval",{get:function(){return this._interval},set:function(t){this._interval=t,this.restartTimer()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed=!0},t.prototype.select=function(t,e){void 0===e&&(e=p.UNKNOWN);var n=t.index;e===p.UNKNOWN&&(e=n>this.getCurrentIndex()?p.NEXT:p.PREV),t&&t!==this.currentSlide&&this.goNext(t,e)},t.prototype.goNext=function(t,e){this.destroyed||(t.direction=e,t.active=!0,this.currentSlide&&(this.currentSlide.direction=e,this.currentSlide.active=!1),this.currentSlide=t,this.restartTimer())},t.prototype.getSlideByIndex=function(t){for(var e=this.slides.length,n=0;e>n;++n)if(this.slides[n].index===t)return this.slides[n]},t.prototype.getCurrentIndex=function(){return this.currentSlide?this.currentSlide.index:0},t.prototype.next=function(){var t=(this.getCurrentIndex()+1)%this.slides.length;return 0===t&&this.noWrap?void this.pause():this.select(this.getSlideByIndex(t),p.NEXT)},t.prototype.prev=function(){var t=this.getCurrentIndex()-1<0?this.slides.length-1:this.getCurrentIndex()-1;return this.noWrap&&t===this.slides.length-1?void this.pause():this.select(this.getSlideByIndex(t),p.PREV)},t.prototype.restartTimer=function(){var t=this;this.resetTimer();var e=+this.interval;!isNaN(e)&&e>0&&(this.currentInterval=setInterval(function(){var e=+t.interval;t.isPlaying&&!isNaN(t.interval)&&e>0&&t.slides.length?t.next():t.pause()},e))},t.prototype.resetTimer=function(){this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=null)},t.prototype.play=function(){this.isPlaying||(this.isPlaying=!0,this.restartTimer())},t.prototype.pause=function(){this.noPause||(this.isPlaying=!1,this.resetTimer())},t.prototype.addSlide=function(t){t.index=this.slides.length,this.slides.push(t),1===this.slides.length||t.active?(this.select(this.slides[this.slides.length-1]),1===this.slides.length&&this.play()):t.active=!1},t.prototype.removeSlide=function(t){if(this.slides.splice(t.index,1),0===this.slides.length)return void(this.currentSlide=null);for(var e=0;e\n \n \n '+c[r.Ng2BootstrapConfig.theme]+"\n \n "}),a("design:paramtypes",[])],t)}();e.Carousel=l;var u=function(){function t(t){this.carousel=t,this.addClass=!0}return t.prototype.ngOnInit=function(){this.carousel.addSlide(this)},t.prototype.ngOnDestroy=function(){this.carousel.removeSlide(this)},s([o.Input(),a("design:type",Number)],t.prototype,"index",void 0),s([o.Input(),a("design:type",Number)],t.prototype,"direction",void 0),s([o.HostBinding("class.active"),o.Input(),a("design:type",Boolean)],t.prototype,"active",void 0),s([o.HostBinding("class.item"),o.HostBinding("class.carousel-item"),a("design:type",Boolean)],t.prototype,"addClass",void 0),t=s([o.Component({selector:"slide",directives:[i.NgClass],template:'\n
\n \n
\n '}),a("design:paramtypes",[l])],t)}();e.Slide=u,e.CAROUSEL_DIRECTIVES=[l,u],e.carousel=[l,u];var h},function(t,e,n){var s=n(60),a=n(169),o=n(171);e.DROPDOWN_DIRECTIVES=[s.Dropdown,a.DropdownMenu,o.DropdownToggle],e.dropdown=[s.Dropdown,a.DropdownMenu,o.DropdownToggle]},function(t,e,n){var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var s in e)e.hasOwnProperty(s)&&(t[s]=e[s]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},r=n(3),p=n(7),c={maxSize:void 0,itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0},l='\n \n ',u=function(){function t(t,e,n){this.cd=t,this.renderer=e,this.elementRef=n,this.numPages=new r.EventEmitter,this.pageChanged=new r.EventEmitter,this.inited=!1,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this,this.config=this.config||c}return Object.defineProperty(t.prototype,"itemsPerPage",{get:function(){return this._itemsPerPage},set:function(t){this._itemsPerPage=t,this.totalPages=this.calculateTotalPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalItems",{get:function(){return this._totalItems},set:function(t){this._totalItems=t,this.totalPages=this.calculateTotalPages()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"totalPages",{get:function(){return this._totalPages},set:function(t){this._totalPages=t,this.numPages.emit(t),this.inited&&this.selectPage(this.page)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this._page},set:function(t){this._page=t>this.totalPages?this.totalPages:t||1,this.pageChanged.emit({page:this._page,itemsPerPage:this.itemsPerPage})},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.classMap=this.elementRef.nativeElement.getAttribute("class")||"",this.maxSize="undefined"!=typeof this.maxSize?this.maxSize:c.maxSize,this.rotate="undefined"!=typeof this.rotate?this.rotate:c.rotate, +this.boundaryLinks="undefined"!=typeof this.boundaryLinks?this.boundaryLinks:c.boundaryLinks,this.directionLinks="undefined"!=typeof this.directionLinks?this.directionLinks:c.directionLinks,this.itemsPerPage="undefined"!=typeof this.itemsPerPage?this.itemsPerPage:c.itemsPerPage,this.totalPages=this.calculateTotalPages(),this.pages=this.getPages(this.page,this.totalPages),this.page=this.cd.value,this.inited=!0},t.prototype.writeValue=function(t){this.page=t,this.pages=this.getPages(this.page,this.totalPages)},t.prototype.selectPage=function(t,e){if(e&&e.preventDefault(),!this.disabled){if(e&&e.target){var n=e.target;n.blur()}this.writeValue(t),this.cd.viewToModelUpdate(this.page)}},t.prototype.getText=function(t){return this[t+"Text"]||c[t+"Text"]},t.prototype.noPrevious=function(){return 1===this.page},t.prototype.noNext=function(){return this.page===this.totalPages},t.prototype.makePage=function(t,e,n){return{number:t,text:e,active:n}},t.prototype.getPages=function(t,e){var n=[],s=1,a=e,o="undefined"!=typeof this.maxSize&&this.maxSizee&&(a=e,s=a-this.maxSize+1)):(s=(Math.ceil(t/this.maxSize)-1)*this.maxSize+1,a=Math.min(s+this.maxSize-1,e)));for(var i=s;a>=i;i++){var r=this.makePage(i,i.toString(),i===t);n.push(r)}if(o&&!this.rotate){if(s>1){var p=this.makePage(s-1,"...",!1);n.unshift(p)}if(e>a){var c=this.makePage(a+1,"...",!1);n.push(c)}}return n},t.prototype.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(t||0,1)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},a([r.Input(),o("design:type",Number)],t.prototype,"maxSize",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"boundaryLinks",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"directionLinks",void 0),a([r.Input(),o("design:type",String)],t.prototype,"firstText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"previousText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"nextText",void 0),a([r.Input(),o("design:type",String)],t.prototype,"lastText",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"rotate",void 0),a([r.Input(),o("design:type",Boolean)],t.prototype,"disabled",void 0),a([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"numPages",void 0),a([r.Output(),o("design:type",r.EventEmitter)],t.prototype,"pageChanged",void 0),a([r.Input(),o("design:type",Object)],t.prototype,"itemsPerPage",null),a([r.Input(),o("design:type",Number)],t.prototype,"totalItems",null),t=a([r.Component({selector:"pagination[ngModel]",template:l,directives:[p.NgFor,p.NgIf]}),i(0,r.Self()),o("design:paramtypes",[p.NgModel,r.Renderer,r.ElementRef])],t)}();e.Pagination=u;var h={itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0},d='\n \n',f=function(t){function e(e,n,s){t.call(this,e,n,s),this.config=h}return s(e,t),e=a([r.Component({selector:"pager[ngModel]",properties:["align","totalItems","itemsPerPage","previousText","nextText"],template:d,directives:[p.NgClass]}),i(0,r.Self()),o("design:paramtypes",[p.NgModel,r.Renderer,r.ElementRef])],e)}(u);e.Pager=f,e.PAGINATION_DIRECTIVES=[u,f],e.pagination=[u,f]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p={animate:!0,max:100},c=function(){function t(){this.addClass="progress",this.bars=[]}return Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=t,this.bars.forEach(function(t){t.recalculatePercentage()})},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.animate=this.animate!==!1,this.max="number"==typeof this.max?this.max:p.max},t.prototype.addBar=function(t){this.animate||(t.transition="none"),this.bars.push(t)},t.prototype.removeBar=function(t){this.bars.splice(this.bars.indexOf(t),1)},s([i.Input(),a("design:type",Boolean)],t.prototype,"animate",void 0),s([i.HostBinding("attr.max"),i.Input(),a("design:type",Number)],t.prototype,"max",null),s([i.HostBinding("class"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([i.Directive({selector:"bs-progress, [progress]"}),a("design:paramtypes",[])],t)}();e.Progress=c;var l=function(){function t(t){this.progress=t,this.percent=0}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){(t||0===t)&&(this._value=t,this.recalculatePercentage())},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.progress.addBar(this)},t.prototype.ngOnDestroy=function(){this.progress.removeBar(this)},t.prototype.recalculatePercentage=function(){this.percent=+(100*this.value/this.progress.max).toFixed(2);var t=this.progress.bars.reduce(function(t,e){return t+e.percent},0);t>100&&(this.percent-=t-100)},s([i.Input(),a("design:type",String)],t.prototype,"type",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"value",null),t=s([i.Component({selector:"bar, [bar]",directives:[r.NgClass,r.NgStyle],template:'\n
\n'}),o(0,i.Host()),a("design:paramtypes",[c])],t)}();e.Bar=l;var u=function(){function t(){}return s([i.Input(),a("design:type",Boolean)],t.prototype,"animate",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"max",void 0),s([i.Input(),a("design:type",String)],t.prototype,"type",void 0),s([i.Input(),a("design:type",Number)],t.prototype,"value",void 0),t=s([i.Component({selector:"progressbar, [progressbar]",directives:[c,l],template:'\n
\n \n \n \n
\n '}),a("design:paramtypes",[])],t)}();e.Progressbar=u,e.PROGRESSBAR_DIRECTIVES=[c,l,u],e.progressbar=[c,l,u]},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},i=n(3),r=n(7),p=function(){function t(t){this.cd=t,this.onHover=new i.EventEmitter,this.onLeave=new i.EventEmitter,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return t.prototype.onKeydown=function(t){if(-1!==[37,38,39,40].indexOf(t.which)){t.preventDefault(),t.stopPropagation();var e=38===t.which||39===t.which?1:-1;this.rate(this.value+e)}},t.prototype.ngOnInit=function(){this.max="undefined"!=typeof this.max?this.max:5,this.readonly=this.readonly===!0,this.stateOn="undefined"!=typeof this.stateOn?this.stateOn:"glyphicon-star",this.stateOff="undefined"!=typeof this.stateOff?this.stateOff:"glyphicon-star-empty",this.titles="undefined"!=typeof this.titles&&this.titles.length>0?this.titles:["one","two","three","four","five"],this.range=this.buildTemplateObjects(this.ratingStates,this.max)},t.prototype.writeValue=function(t){return t%1!==t?(this.value=Math.round(t),void(this.preValue=t)):(this.preValue=t,void(this.value=t))},t.prototype.buildTemplateObjects=function(t,e){t=t||[];for(var n=t.length||e,s=[],a=0;n>a;a++)s.push(Object.assign({index:a,stateOn:this.stateOn,stateOff:this.stateOff,title:this.titles[a]||a+1},t[a]||{}));return s},t.prototype.rate=function(t){!this.readonly&&t>=0&&t<=this.range.length&&(this.writeValue(t),this.cd.viewToModelUpdate(t))},t.prototype.enter=function(t){this.readonly||(this.value=t,this.onHover.next(t))},t.prototype.reset=function(){this.value=this.preValue,this.onLeave.next(this.value)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},s([i.Input(),a("design:type",Number)],t.prototype,"max",void 0),s([i.Input(),a("design:type",String)],t.prototype,"stateOn",void 0),s([i.Input(),a("design:type",String)],t.prototype,"stateOff",void 0),s([i.Input(),a("design:type",Boolean)],t.prototype,"readonly",void 0),s([i.Input(),a("design:type",Array)],t.prototype,"titles",void 0),s([i.Input(),a("design:type",Array)],t.prototype,"ratingStates",void 0),s([i.Output(),a("design:type",i.EventEmitter)],t.prototype,"onHover",void 0),s([i.Output(),a("design:type",i.EventEmitter)],t.prototype,"onLeave",void 0),s([i.HostListener("keydown",["$event"]),a("design:type",Function),a("design:paramtypes",[KeyboardEvent]),a("design:returntype",void 0)],t.prototype,"onKeydown",null),t=s([i.Component({selector:"rating[ngModel]",directives:[r.NgFor],template:'\n \n \n \n '}),o(0,i.Self()),a("design:paramtypes",[r.NgModel])],t)}();e.Rating=p},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(168),p=function(){function t(){this.tabs=[],this.classMap={}}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"justified",{get:function(){return this._justified},set:function(t){this._justified=t,this.setClassMap()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.setClassMap()},enumerable:!0,configurable:!0}),t.prototype.setClassMap=function(){this.classMap=(t={"nav-stacked":this.vertical,"nav-justified":this.justified},t["nav-"+(this.type||"tabs")]=!0,t);var t},t.prototype.ngOnInit=function(){this.type="undefined"!==this.type?this.type:"tabs"},t.prototype.addTab=function(t){this.tabs.push(t),t.active=1===this.tabs.length&&t.active!==!1},t.prototype.removeTab=function(t){var e=this.tabs.indexOf(t);if(-1!==e){if(t.active&&this.tabs.length>1){var n=e===this.tabs.length-1?e-1:e+1;this.tabs[n].active=!0}this.tabs.slice(e,1)}},s([o.Input(),a("design:type",Object)],t.prototype,"vertical",null),s([o.Input(),a("design:type",Object)],t.prototype,"justified",null),s([o.Input(),a("design:type",Object)],t.prototype,"type",null),t=s([o.Component({selector:"tabset",directives:[i.NgClass,r.NgTransclude],template:'\n \n
\n \n
\n '}),a("design:paramtypes",[])],t)}();e.Tabset=p;var c=function(){function t(t){this.tabset=t,this.select=new o.EventEmitter,this.deselect=new o.EventEmitter,this.addClass=!0,this.tabset.addTab(this)}return Object.defineProperty(t.prototype,"active",{get:function(){return this._active},set:function(t){var e=this;return this.disabled&&t||!t?(t||(this._active=t),void this.deselect.emit(this)):(this._active=t,this.select.emit(this),void this.tabset.tabs.forEach(function(t){t!==e&&(t.active=!1)}))},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){return!0},t.prototype.ngOnInit=function(){},t.prototype.ngOnDestroy=function(){this.tabset.removeTab(this)},s([o.Input(),a("design:type",String)],t.prototype,"heading",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"disabled",void 0),s([o.HostBinding("class.active"),o.Input(),a("design:type",Object)],t.prototype,"active",null),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"select",void 0),s([o.Output(),a("design:type",o.EventEmitter)],t.prototype,"deselect",void 0),s([o.HostBinding("class.tab-pane"),a("design:type",Object)],t.prototype,"addClass",void 0),t=s([o.Directive({selector:"tab, [tab]"}),a("design:paramtypes",[p])],t)}();e.Tab=c;var l=function(){function t(t,e){this.templateRef=t,e.headingRef=t}return t=s([o.Directive({selector:"[tab-heading]"}),a("design:paramtypes",[o.TemplateRef,c])],t)}();e.TabHeading=l,e.TAB_DIRECTIVES=[c,l,p],e.tabs=[c,l,p]},function(t,e,n){function s(t){return"undefined"!=typeof t}function a(t,e,n){return e(t)?t:n}function o(t,e){var n=new Date(t.getTime()+6e4*e),s=new Date(t);return s.setHours(n.getHours(),n.getMinutes()),s}var i=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},r=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},p=this&&this.__param||function(t,e){return function(n,s){e(n,s,t)}},c=n(3),l=n(7);e.timepickerConfig={hourStep:1,minuteStep:1,showMeridian:!0,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,min:void 0,max:void 0};var u=function(){function t(t){this.cd=t,this.meridians=["AM","PM"],this._selected=new Date,this.onChange=function(t){},this.onTouched=function(){},t.valueAccessor=this}return Object.defineProperty(t.prototype,"showMeridian",{get:function(){return this._showMeridian},set:function(t){return this._showMeridian=t,void this.updateTemplate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){t&&(this._selected=t,this.updateTemplate(),this.cd.viewToModelUpdate(this.selected))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.meridians=a(this.meridians,s,e.timepickerConfig.meridians)||["AM","PM"],this.mousewheel=a(this.mousewheel,s,e.timepickerConfig.mousewheel),this.mousewheel&&this.setupMousewheelEvents(),this.arrowkeys=a(this.arrowkeys,s,e.timepickerConfig.arrowkeys),this.arrowkeys&&this.setupArrowkeyEvents(),this.readonlyInput=a(this.readonlyInput,s,e.timepickerConfig.readonlyInput),this.setupInputEvents(),this.hourStep=a(this.hourStep,s,e.timepickerConfig.hourStep),this.minuteStep=a(this.minuteStep,s,e.timepickerConfig.minuteStep),this.min=a(this.min,s,e.timepickerConfig.min),this.max=a(this.max,s,e.timepickerConfig.max),this.showMeridian=a(this.showMeridian,s,e.timepickerConfig.showMeridian),this.showSpinners=a(this.showSpinners,s,e.timepickerConfig.showSpinners)},t.prototype.writeValue=function(t){return t!==this.selected?t&&t instanceof Date?void(this.selected=t):void(this.selected=t?new Date(t):null):void 0},t.prototype.refresh=function(t){this.updateTemplate(),this.cd.viewToModelUpdate(this.selected)},t.prototype.updateTemplate=function(t){var e=this.selected.getHours(),n=this.selected.getMinutes();this.showMeridian&&(e=0===e||12===e?12:e%12),this.hours=this.pad(e),this.minutes=this.pad(n),this.meridian=this.selected.getHours()<12?this.meridians[0]:this.meridians[1]},t.prototype.getHoursFromTemplate=function(){var t=parseInt(this.hours,10),e=this.showMeridian?t>0&&13>t:t>=0&&24>t;return e?(this.showMeridian&&(12===t&&(t=0),this.meridian===this.meridians[1]&&(t+=12)),t):void 0},t.prototype.getMinutesFromTemplate=function(){var t=parseInt(this.minutes,10);return t>=0&&60>t?t:void 0},t.prototype.pad=function(t){return s(t)&&t.toString().length<2?"0"+t:t.toString()},t.prototype.setupMousewheelEvents=function(){},t.prototype.setupArrowkeyEvents=function(){},t.prototype.setupInputEvents=function(){},t.prototype.updateHours=function(){if(!this.readonlyInput){var t=this.getHoursFromTemplate(),e=this.getMinutesFromTemplate();!s(t)||!s(e),this.selected.setHours(t),this.selectedthis.max||this.refresh("h")}},t.prototype.hoursOnBlur=function(t){this.readonlyInput||!this.invalidHours&&parseInt(this.hours,10)<10&&(this.hours=this.pad(this.hours))},t.prototype.updateMinutes=function(){if(!this.readonlyInput){var t=this.getMinutesFromTemplate(),e=this.getHoursFromTemplate();!s(t)||!s(e),this.selected.setMinutes(t),this.selectedthis.max||this.refresh("m")}},t.prototype.minutesOnBlur=function(t){this.readonlyInput||!this.invalidMinutes&&parseInt(this.minutes,10)<10&&(this.minutes=this.pad(this.minutes))},t.prototype.noIncrementHours=function(){var t=o(this.selected,60*this.hourStep);return t>this.max||tthis.selected&&t>this.max},t.prototype.noIncrementMinutes=function(){var t=o(this.selected,this.minuteStep);return t>this.max||tthis.selected&&t>this.max},t.prototype.addMinutesToSelected=function(t){this.selected=o(this.selected,t),this.refresh()},t.prototype.noToggleMeridian=function(){return this.selected.getHours()<13?o(this.selected,720)>this.max:o(this.selected,-720)\n \n \n \n  \n \n \n \n \n \n \n \n :\n \n \n \n \n \n \n \n  \n \n \n \n \n \n '}),p(0,c.Self()),r("design:paramtypes",[l.NgModel])],t)}();e.Timepicker=u},function(t,e,n){var s=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},a=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},o=n(3),i=n(7),r=n(3),p=n(101),c=function(){function t(t){Object.assign(this,t)}return t}(),l=function(){function t(t,e){this.element=t,Object.assign(this,e),this.classMap={"in":!1},this.classMap[e.placement]=!0}return t.prototype.position=function(t){this.display="block",this.top="0px",this.left="0px";var e=p.positionService.positionElements(t.nativeElement,this.element.nativeElement.children[0],this.placement,this.appendToBody);this.top=e.top+"px",this.left=e.left+"px",this.classMap["in"]=!0},t=s([o.Component({selector:"tooltip-container",directives:[i.NgClass,i.NgStyle],template:'\n '}),a("design:paramtypes",[o.ElementRef,c])],t)}(),u=function(){function t(t,e){this.element=t,this.loader=e,this.placement="top",this.visible=!1}return t.prototype.ngOnInit=function(){},t.prototype.show=function(){var t=this;if(!this.visible){this.visible=!0;var e=new c({content:this.content,placement:this.placement}),n=r.Injector.resolve([r.bind(c).toValue(e)]);this.tooltip=this.loader.loadNextToLocation(l,this.element,n).then(function(e){return e.instance.position(t.element),e})}},t.prototype.hide=function(){this.visible&&(this.visible=!1,this.tooltip.then(function(t){return t.dispose(),t}))},s([o.Input("tooltip"),a("design:type",String)],t.prototype,"content",void 0),s([o.Input("tooltip-placement"),a("design:type",String)],t.prototype,"placement",void 0),s([o.Input("tooltip-isOpen"),a("design:type",Boolean)],t.prototype,"isOpen",void 0),s([o.Input("tooltip-enable"),a("design:type",Boolean)],t.prototype,"enable",void 0),s([o.Input(),a("design:type",Boolean)],t.prototype,"appendToBody",void 0),s([o.HostListener("focusin",["$event","$target"]),o.HostListener("mouseenter",["$event","$target"]),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"show",null),s([o.HostListener("focusout",["$event","$target"]),o.HostListener("mouseleave",["$event","$target"]),a("design:type",Function),a("design:paramtypes",[]),a("design:returntype",void 0)],t.prototype,"hide",null),t=s([o.Directive({selector:"[tooltip]"}),a("design:paramtypes",[o.ElementRef,o.DynamicComponentLoader])],t)}();e.Tooltip=u,e.TOOLTIP_DIRECTIVES=[u,l],e.tooltip=[u,l]},function(t,e){e.latinMap={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","Dz":"D","Dž":"D","Đ":"D","Ƌ":"D","DZ":"DZ","DŽ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","Lj":"L","Ł":"L","LJ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","Nj":"N","Ñ":"N","NJ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","IJ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","dz":"dz","dž":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","lj":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","nj":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u", +"ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ij":"ij","œ":"oe","st":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"}},function(t,e,n){var s=n(257),a=function(){function t(){}return t.latinize=function(e){return e.replace(/[^A-Za-z0-9\[\] ]/g,function(e){return t.latinMap[e]||e})},t.escapeRegexp=function(t){return t.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},t.tokenize=function(t,e,n){void 0===e&&(e=" "),void 0===n&&(n="");for(var s,a="(?:["+n+"])([^"+n+"]+)(?:["+n+"])|([^"+e+"]+)",o=t.split(new RegExp(a,"g")),i=[],r=o.length,p=new RegExp("["+n+"]+","g"),c=0;r>c;c+=1)s=o[c],s&&s.length&&s!==e&&i.push(s.replace(p,""));return i},t.latinMap=s.latinMap,t}();e.TypeaheadUtils=a},function(t,e,n){function s(t,e,n,s){t.setElementProperty(e,n,s)}var a=this&&this.__decorate||function(t,e,n,s){var a,o=arguments.length,i=3>o?e:null===s?s=Object.getOwnPropertyDescriptor(e,n):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,n,s);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(i=(3>o?a(i):o>3?a(e,n,i):a(e,n))||i);return o>3&&i&&Object.defineProperty(e,n,i),i},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0},i=n(3),r=n(7),p=n(3),c=n(100),l=n(101),u=n(258),h=(g={},g[c.Ng2BootstrapTheme.BS4]='\n \n ',g[c.Ng2BootstrapTheme.BS3]='\n \n ',g),d=function(){function t(t){Object.assign(this,t)}return t}();e.TypeaheadOptions=d;var f=function(){function t(t,e){this.element=t,this._matches=[],Object.assign(this,e)}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._matches},set:function(t){this._matches=t,this._matches.length>0&&(this._active=this._matches[0])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"field",{set:function(t){this._field=t},enumerable:!0,configurable:!0}),t.prototype.position=function(t){this.display="block",this.top="0px",this.left="0px";var e=l.positionService.positionElements(t.nativeElement,this.element.nativeElement.children[0],this.placement,!1);this.top=e.top+"px",this.left=e.left+"px"},t.prototype.selectActiveMatch=function(){this.selectMatch(this._active)},t.prototype.prevActiveMatch=function(){var t=this.matches.indexOf(this._active);this._active=this.matches[0>t-1?this.matches.length-1:t-1]},t.prototype.nextActiveMatch=function(){var t=this.matches.indexOf(this._active);this._active=this.matches[t+1>this.matches.length-1?0:t+1]},t.prototype.selectActive=function(t){this._active=t},t.prototype.isActive=function(t){return this._active===t},t.prototype.selectMatch=function(t,e){return void 0===e&&(e=null),e&&(e.stopPropagation(),e.preventDefault()),this.parent.changeModel(t),this.parent.typeaheadOnSelect.next({item:t}),!1},t.prototype.hightlight=function(t,e){var n,s,a=("object"==typeof t&&this._field?t[this._field]:t).toString(),o=(this.parent.latinize?u.TypeaheadUtils.latinize(a):a).toLowerCase();if("object"==typeof e)for(var i=e.length,r=0;i>r;r+=1)n=o.indexOf(e[r]),s=e[r].length,n>=0&&s>0&&(a=a.substring(0,n)+""+a.substring(n,n+s)+""+a.substring(n+s),o=o.substring(0,n)+" "+" ".repeat(s)+" "+o.substring(n+s));else e&&(n=o.indexOf(e),s=e.length,n>=0&&s>0&&(a=a.substring(0,n)+""+a.substring(n,n+s)+""+a.substring(n+s)));return a},t=a([i.Component({selector:"typeahead-container",directives:[r.CORE_DIRECTIVES],template:h[c.Ng2BootstrapConfig.theme],encapsulation:i.ViewEncapsulation.None}),o("design:paramtypes",[i.ElementRef,d])],t)}();e.TypeaheadContainer=f;var m=function(){function t(t,e,n,s){this.cd=t,this.element=e,this.renderer=n,this.loader=s,this.typeaheadLoading=new i.EventEmitter,this.typeaheadNoResults=new i.EventEmitter,this.typeaheadOnSelect=new i.EventEmitter,this.latinize=!0,this.singleWords=!0,this.async=null,this.wordDelimiters=" ",this.phraseDelimiters="'\"",this._matches=[],this.placement="bottom-left"}return Object.defineProperty(t.prototype,"matches",{get:function(){return this._matches},enumerable:!0,configurable:!0}),t.prototype.debounce=function(t,e){var n,s,a,o=e;return function(){s=[].slice.call(arguments,0),a=Date.now(),e=this.container?o:this.waitMs;var i=function(){var o=Date.now()-a;e>o?n=setTimeout(i,e-o):(n=null,t.apply(this,s))};n||(n=setTimeout(i,e))}},t.prototype.processMatches=function(){if(this._matches=[],this.cd.model.toString().length>=this.minLength){var t=(this.latinize?u.TypeaheadUtils.latinize(this.cd.model):this.cd.model).toString().toLowerCase();t=this.singleWords?u.TypeaheadUtils.tokenize(t,this.wordDelimiters,this.phraseDelimiters):t;for(var e=0;ethis.optionsLimit-1))break}else console.log("Invalid match type",typeof this.source[e],this.field)}}},t.prototype.testMatch=function(t,e){var n;if("object"==typeof e){n=e.length;for(var s=0;n>s;s+=1)if(e[s].length>0&&t.indexOf(e[s])<0)return!1;return!0}return t.indexOf(e)>=0},t.prototype.finalizeAsyncCall=function(){if(this.typeaheadLoading.next(!1),this.typeaheadNoResults.next(this.cd.model.toString().length>=this.minLength&&this.matches.length<=0),this.cd.model.toString().length<=0||this._matches.length<=0)return void this.hide();if(this.container&&this._matches.length>0){var t=(this.latinize?u.TypeaheadUtils.latinize(this.cd.model):this.cd.model).toString().toLowerCase();this.container.query=this.singleWords?u.TypeaheadUtils.tokenize(t,this.wordDelimiters,this.phraseDelimiters):t,this.container.matches=this._matches}!this.container&&this._matches.length>0&&this.show(this._matches)},t.prototype.ngOnInit=function(){var t=this;this.optionsLimit=this.optionsLimit||20,this.minLength=this.minLength||1,this.waitMs=this.waitMs||0,null===this.async&&"function"!=typeof this.source&&(this.async=!1),"function"==typeof this.source&&(this.async=!0),this.async===!0&&(this.debouncer=this.debounce(function(){"function"==typeof t.source&&t.source().then(function(e){if(t._matches=[],t.cd.model.toString().length>=t.minLength)for(var n=0;nt.optionsLimit-1));n++);t.finalizeAsyncCall()}),"object"==typeof t.source&&t.source.length&&(t.processMatches(),t.finalizeAsyncCall())},100))},t.prototype.onChange=function(t){if(this.container){if(27===t.keyCode)return void this.hide();if(38===t.keyCode)return void this.container.prevActiveMatch();if(40===t.keyCode)return void this.container.nextActiveMatch();if(13===t.keyCode)return void this.container.selectActiveMatch()}this.typeaheadLoading.next(!0),this.async===!0&&this.debouncer(),this.async===!1&&(this.processMatches(),this.finalizeAsyncCall())},t.prototype.changeModel=function(t){var e=("object"==typeof t&&this.field?t[this.field]:t).toString();this.cd.viewToModelUpdate(e),s(this.renderer,this.element,"value",e),this.hide()},t.prototype.show=function(t){var e=this,n=new d({placement:this.placement,animation:!1}),s=p.Injector.resolve([p.bind(d).toValue(n)]);this.popup=this.loader.loadNextToLocation(f,this.element,s).then(function(n){n.instance.position(e.element),e.container=n.instance,e.container.parent=e;var s=(e.latinize?u.TypeaheadUtils.latinize(e.cd.model):e.cd.model).toString().toLowerCase();return e.container.query=e.singleWords?u.TypeaheadUtils.tokenize(s,e.wordDelimiters,e.phraseDelimiters):s,e.container.matches=t,e.container.field=e.field,e.element.nativeElement.focus(),n})},t.prototype.hide=function(){var t=this;this.container&&this.popup.then(function(e){return e.dispose(),t.container=null,e})},t=a([i.Directive({selector:"typeahead, [typeahead]",properties:["source:typeahead","appendToBody:typeaheadAppendToBody","editable:typeaheadEditable","focusFirst:typeaheadFocusFirst","inputFormatter:typeaheadInputFormatter","minLength:typeaheadMinLength","selectOnExact:typeaheadSelectOnExact","templateUrl:typeaheadTemplateUrl","popupTemplateUrl:typeaheadPopupTemplateUrl","waitMs:typeaheadWaitMs","optionsLimit:typeaheadOptionsLimit","selectOnBlur:typeaheadSelectOnBlur","focusOnSelect:typeaheadFocusOnSelect","field:typeaheadOptionField","async:typeaheadAsync","latinize:typeaheadLatinize","singleWords:typeaheadSingleWords","wordDelimiters:typeaheadWordDelimiters","phraseDelimiters:typeaheadPhraseDelimiters"],events:["typeaheadLoading","typeaheadNoResults","typeaheadOnSelect"],host:{"(keyup)":"onChange($event)"}}),o("design:paramtypes",[r.NgModel,i.ElementRef,i.Renderer,i.DynamicComponentLoader])],t)}();e.Typeahead=m;var g},function(t,e,n){function s(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}s(n(245)),s(n(246)),s(n(248)),s(n(247)),s(n(250)),s(n(60)),s(n(169)),s(n(170)),s(n(171)),s(n(249)),s(n(167)),s(n(251)),s(n(252)),s(n(253)),s(n(254)),s(n(255)),s(n(256)),s(n(259)),s(n(101)),s(n(168)),s(n(100))}]); //# sourceMappingURL=angular2-file-upload-demo.js.map \ No newline at end of file diff --git a/build/angular2-file-upload-demo.js.gz b/build/angular2-file-upload-demo.js.gz new file mode 100644 index 0000000..c382619 Binary files /dev/null and b/build/angular2-file-upload-demo.js.gz differ diff --git a/build/angular2-file-upload-demo.js.map b/build/angular2-file-upload-demo.js.map index f870856..061c0da 100644 --- a/build/angular2-file-upload-demo.js.map +++ b/build/angular2-file-upload-demo.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///./demo/index.ts","webpack:///./components/file-upload/file-like-object.ts","webpack:///./~/ng2-bootstrap/components/dropdown/dropdown.ts","webpack:///./components/file-upload/file-drop.ts","webpack:///./components/file-upload/file-item.ts","webpack:///./components/file-upload/file-select.ts","webpack:///./components/file-upload/file-uploader.ts","webpack:///./~/ng2-bootstrap/components/ng2-bootstrap-config.ts","webpack:///./~/ng2-bootstrap/components/position.ts","webpack:///./~/ng2-bootstrap/components/collapse/collapse.ts","webpack:///./~/ng2-bootstrap/components/common.ts","webpack:///./~/ng2-bootstrap/components/dropdown/dropdown-menu.ts","webpack:///./~/ng2-bootstrap/components/dropdown/dropdown-service.ts","webpack:///./~/ng2-bootstrap/components/dropdown/dropdown-toggle.ts","webpack:///./components/file-upload/readme.md","webpack:///./demo/getting-started.md","webpack:///./demo/components/file-upload/file-catcher.js","webpack:///./demo/components/file-upload/simple-demo.html?b671","webpack:///./demo/components/file-upload/simple-demo.ts?7401","webpack:///./demo/components/file-upload/simple-demo.html","webpack:///./demo/components/file-upload-section.ts","webpack:///./demo/components/file-upload/simple-demo.ts","webpack:///./~/ng2-bootstrap/components/accordion/accordion.ts","webpack:///./~/ng2-bootstrap/components/alert/alert.ts","webpack:///./~/ng2-bootstrap/components/buttons/button-checkbox.ts","webpack:///./~/ng2-bootstrap/components/buttons/button-radio.ts","webpack:///./~/ng2-bootstrap/components/carousel/carousel.ts","webpack:///./~/ng2-bootstrap/components/dropdown/index.ts","webpack:///./~/ng2-bootstrap/components/pagination/pagination.ts","webpack:///./~/ng2-bootstrap/components/progressbar/progressbar.ts","webpack:///./~/ng2-bootstrap/components/rating/rating.ts","webpack:///./~/ng2-bootstrap/components/tabs/tabs.ts","webpack:///./~/ng2-bootstrap/components/timepicker/timepicker.ts","webpack:///./~/ng2-bootstrap/components/tooltip/tooltip.ts","webpack:///./~/ng2-bootstrap/components/typeahead/typeahead.ts","webpack:///./~/ng2-bootstrap/ng2-bootstrap.ts"],"names":["Demo","Demo.constructor","isElement","FileLikeObject","FileLikeObject.constructor","FileLikeObject._createFromFakePath","FileLikeObject._createFromObject","Dropdown","Dropdown.constructor","Dropdown.onInit","Dropdown.onDestroy","Dropdown.dropDownMenu","Dropdown.dropDownToggle","Dropdown.toggle","Dropdown.isOpen","Dropdown.focusDropdownEntry","Dropdown.focusToggleElement","FileDrop","FileDrop.constructor","FileDrop.getOptions","FileDrop.getFilters","FileDrop.onDrop","FileDrop.onDragOver","FileDrop.onDragLeave","FileDrop._getTransfer","FileDrop._preventAndStop","FileDrop._haveFiles","FileDrop._addOverClass","FileDrop._removeOverClass","FileItem","FileItem.constructor","FileItem.upload","FileItem.cancel","FileItem.remove","FileItem.onBeforeUpload","FileItem.onProgress","FileItem.onSuccess","FileItem.onError","FileItem.onCancel","FileItem.onComplete","FileItem._onBeforeUpload","FileItem._onProgress","FileItem._onSuccess","FileItem._onError","FileItem._onCancel","FileItem._onComplete","FileItem._prepareToUploading","FileSelect","FileSelect.constructor","FileSelect.getOptions","FileSelect.getFilters","FileSelect.isEmptyAfterSelection","FileSelect.onChange","isFile","isFileLikeObject","FileUploader","FileUploader.constructor","FileUploader.addToQueue","FileUploader.removeFromQueue","FileUploader.clearQueue","FileUploader.uploadItem","FileUploader.cancelItem","FileUploader.uploadAll","FileUploader.cancelAll","FileUploader.isFile","FileUploader.isFileLikeObject","FileUploader.getIndexOfItem","FileUploader.getNotUploadedItems","FileUploader.getReadyItems","FileUploader.destroy","FileUploader.onAfterAddingAll","FileUploader.onAfterAddingFile","FileUploader.onWhenAddingFileFailed","FileUploader.onBeforeUploadItem","FileUploader.onProgressItem","FileUploader.onProgressAll","FileUploader.onSuccessItem","FileUploader.onErrorItem","FileUploader.onCancelItem","FileUploader.onCompleteItem","FileUploader.onCompleteAll","FileUploader._getTotalProgress","FileUploader._getFilters","FileUploader._render","FileUploader._folderFilter","FileUploader._queueLimitFilter","FileUploader._isValidFile","FileUploader._isSuccessCode","FileUploader._transformResponse","FileUploader._parseHeaders","FileUploader._headersGetter","FileUploader._xhrTransport","FileUploader._iframeTransport","FileUploader._onWhenAddingFileFailed","FileUploader._onAfterAddingFile","FileUploader._onAfterAddingAll","FileUploader._onBeforeUploadItem","FileUploader._onProgressItem","FileUploader._onSuccessItem","FileUploader._onErrorItem","FileUploader._onCancelItem","FileUploader._onCompleteItem","Ng2BootstrapTheme","Ng2BootstrapConfig","Ng2BootstrapConfig.constructor","Ng2BootstrapConfig.theme","PositionService","PositionService.constructor","PositionService.window","PositionService.document","PositionService.getStyle","PositionService.isStaticPositioned","PositionService.parentOffsetEl","PositionService.position","PositionService.offset","PositionService.positionElements","Collapse","Collapse.constructor","Collapse.collapse","Collapse.toggle","Collapse.hide","Collapse.show","NgTransclude","NgTransclude.constructor","NgTransclude.ngTransclude","DropdownMenu","DropdownMenu.constructor","DropdownMenu.onInit","DropdownService","DropdownService.constructor","DropdownService.open","DropdownService.close","DropdownService.closeDropdown","DropdownService.keybindFilter","DropdownToggle","DropdownToggle.constructor","DropdownToggle.onInit","DropdownToggle.isOpen","DropdownToggle.toggleDropdown","FileUploadSection","FileUploadSection.constructor","FileUploadSection.select","SimpleDemo","SimpleDemo.constructor","SimpleDemo.fileOverBase","SimpleDemo.fileOverAnother","Accordion","Accordion.constructor","Accordion.closeOtherGroups","Accordion.addGroup","Accordion.removeGroup","AccordionTransclude","AccordionTransclude.constructor","AccordionTransclude.onInit","AccordionGroup","AccordionGroup.constructor","AccordionGroup.onInit","AccordionGroup.onDestroy","AccordionGroup.toggleOpen","AccordionGroup.isOpen","AccordionHeading","AccordionHeading.constructor","Alert","Alert.constructor","Alert.dismissible","Alert.onInit","Alert.onClose","ButtonCheckbox","ButtonCheckbox.constructor","ButtonCheckbox.onInit","ButtonCheckbox.trueValue","ButtonCheckbox.falseValue","ButtonCheckbox.toggle","ButtonCheckbox.onClick","ButtonCheckbox.writeValue","ButtonCheckbox.registerOnChange","ButtonCheckbox.registerOnTouched","ButtonRadio","ButtonRadio.constructor","ButtonRadio.onInit","ButtonRadio.isActive","ButtonRadio.value","ButtonRadio.onClick","ButtonRadio.writeValue","ButtonRadio.registerOnChange","ButtonRadio.registerOnTouched","Direction","Carousel","Carousel.constructor","Carousel.onDestroy","Carousel.interval","Carousel.select","Carousel.goNext","Carousel.getSlideByIndex","Carousel.getCurrentIndex","Carousel.next","Carousel.prev","Carousel.restartTimer","Carousel.resetTimer","Carousel.play","Carousel.pause","Carousel.addSlide","Carousel.removeSlide","Slide","Slide.constructor","Slide.onInit","Slide.onDestroy","Pagination","Pagination.constructor","Pagination.itemsPerPage","Pagination.totalItems","Pagination.totalPages","Pagination.page","Pagination.onInit","Pagination.writeValue","Pagination.selectPage","Pagination.getText","Pagination.noPrevious","Pagination.noNext","Pagination.makePage","Pagination.getPages","Pagination.calculateTotalPages","Pagination.registerOnChange","Pagination.registerOnTouched","Pager","Pager.constructor","Progress","Progress.constructor","Progress.onInit","Progress.max","Progress.addBar","Progress.removeBar","Bar","Bar.constructor","Bar.onInit","Bar.onDestroy","Bar.value","Bar.recalculatePercentage","Progressbar","Progressbar.constructor","Rating","Rating.constructor","Rating.onInit","Rating.writeValue","Rating.buildTemplateObjects","Rating.rate","Rating.enter","Rating.reset","Rating.onKeydown","Rating.registerOnChange","Rating.registerOnTouched","Tabset","Tabset.constructor","Tabset.classMap","Tabset.onInit","Tabset.addTab","Tabset.removeTab","Tab","Tab.constructor","Tab.disable","Tab.active","Tab.doCheck","Tab.onInit","Tab.onDestroy","TabHeading","TabHeading.constructor","isDefined","def","addMinutes","Timepicker","Timepicker.constructor","Timepicker.selected","Timepicker.showMeridian","Timepicker.onInit","Timepicker.writeValue","Timepicker.refresh","Timepicker.updateTemplate","Timepicker.getHoursFromTemplate","Timepicker.getMinutesFromTemplate","Timepicker.pad","Timepicker.setupMousewheelEvents","Timepicker.setupArrowkeyEvents","Timepicker.setupInputEvents","Timepicker.updateHours","Timepicker.hoursOnBlur","Timepicker.updateMinutes","Timepicker.minutesOnBlur","Timepicker.noIncrementHours","Timepicker.noDecrementHours","Timepicker.noIncrementMinutes","Timepicker.noDecrementMinutes","Timepicker.addMinutesToSelected","Timepicker.noToggleMeridian","Timepicker.incrementHours","Timepicker.decrementHours","Timepicker.incrementMinutes","Timepicker.decrementMinutes","Timepicker.toggleMeridian","Timepicker.registerOnChange","Timepicker.registerOnTouched","TooltipOptions","TooltipOptions.constructor","TooltipContainer","TooltipContainer.constructor","TooltipContainer.position","Tooltip","Tooltip.constructor","Tooltip.onInit","Tooltip.show","Tooltip.hide","setProperty","TypeaheadOptions","TypeaheadOptions.constructor","TypeaheadContainer","TypeaheadContainer.constructor","TypeaheadContainer.matches","TypeaheadContainer.position","TypeaheadContainer.selectActiveMatch","TypeaheadContainer.prevActiveMatch","TypeaheadContainer.nextActiveMatch","TypeaheadContainer.selectActive","TypeaheadContainer.isActive","TypeaheadContainer.selectMatch","TypeaheadContainer.escapeRegexp","TypeaheadContainer.hightlight","Typeahead","Typeahead.constructor","Typeahead.matches","Typeahead.debounce","Typeahead.processMatches","Typeahead.finalizeAsyncCall","Typeahead.onInit","Typeahead.onChange","Typeahead.changeModel","Typeahead.show","Typeahead.hide"],"mappings":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AAaA,CAACA;KACjCA,CAACA;KAEMF,+BAAKA,GAAZA,UAAaA,aAAsBA;SACjCG,EAAEA,CAACA,CAACA,IAAIA,CAACA,SAASA,KAAKA,aAAaA,CAACA,CAACA,CAACA;aACrCA,MAAMA,CAACA;SACTA,CAACA;SAEDA,IAAIA,CAACA,SAASA,GAAGA,IAAIA,CAACA;SACtBA,MAAMA,CAACA,QAAQA,CAACA,mBAAmBA,CAACA,OAAOA,EAAEA,IAAIA,CAACA,iBAAiBA,CAACA,CAACA;SACrEA,MAAMA,CAACA,QAAQA,CAACA,mBAAmBA,CAACA,SAASA,EAAEA,IAAIA,CAACA,iBAAiBA,CAACA,CAACA;KACzEA,CAACA;KAEOH,uCAAaA,GAArBA,UAAsBA,KAAgBA;SACpCI,EAAEA,CAACA,CAACA,CAACA,IAAIA,CAACA,SAASA,CAACA,CAACA,CAACA;aACpBA,MAAMA,CAACA;SACTA,CAACA;SAEDA,EAAEA,CAACA,CAACA,KAAKA,IAAIA,IAAIA,CAACA,SAASA,CAACA,SAASA,KAAKA,gBAAQA,CAACA,CAACA,CAACA;aACnDA,MAAMA,CAACA;SACTA,CAACA;SAEDA,EAAEA,CAACA,CAACA,KAAKA,IAAIA,IAAIA,CAACA,SAASA,CAACA,QAAQA;aAClCA,IAAIA,CAACA,SAASA,CAACA,QAAQA,CAACA,aAAaA,KAAKA,KAAKA,CAACA,MAAMA,CAACA,CAACA,CAACA;aACzDA,MAAMA,CAACA;SACTA,CAACA;SAEDA,EAAEA,CAACA,CAACA,KAAKA,IAAIA,IAAIA,CAACA,SAASA,CAACA,SAASA,KAAKA,oBAAYA;aACpDA,IAAIA,CAACA,SAASA,CAACA,MAAMA;aACrBA,IAAIA,CAACA,SAASA,CAACA,MAAMA,CAACA,aAAaA,KAAKA,KAAKA,CAACA,MAAMA,CAACA,CAACA,CAACA;aACvDA,MAAMA,CAACA;SACTA,CAACA;SAEDA,IAAIA,CAACA,SAASA,CAACA,MAAMA,GAAGA,KAAKA,CAAC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IA,CAACA,IAAIA,EAAEA,CAACA;iBACdA,CAACA;iBAACA,IAAIA,CAACA,CAACA;qBACNA,KAAIA,CAACA,KAAKA,EAAEA,CAACA;iBACfA,CAACA;aACHA,CAACA,EAAEA,QAAQA,CAACA,CAACA;SACfA,CAACA;KACHA,CAACA;KAEOV,6BAAUA,GAAlBA;SACEW,EAAEA,CAACA,CAACA,IAAIA,CAACA,eAAeA,CAACA,CAACA,CAACA;aACzBA,aAAaA,CAACA,IAAIA,CAACA,eAAeA,CAACA,CAACA;aACpCA,IAAIA,CAACA,eAAeA,GAAGA,IAAIA,CAACA;SAC9BA,CAACA;KACHA,CAACA;KAEMX,uBAAIA,GAAXA;SACEY,EAAEA,CAACA,CAACA,CAACA,IAAIA,CAACA,SAASA,CAACA,CAACA,CAACA;aACpBA,IAAIA,CAACA,SAASA,GAAGA,IAAIA,CAACA;aACtBA,IAAIA,CAACA,YAAYA,EAAEA,CAACA;SACtBA,CAACA;KACHA,CAACA;KAEMZ,wBAAKA,GAAZA;SACEa,EAAEA,CAACA,CAACA,CAACA,IAAIA,CAACA,OAAOA,CAACA,CAACA,CAACA;aAClBA,IAAIA,CAACA,SAASA,GAAGA,KAAKA,CAACA;aACvBA,IAAIA,CAACA,UAAUA,EAAEA,CAACA;SACpBA,CAACA;KACHA,CAACA;KAEMb,2BAAQA,GAAfA,UAAgBA,KAAWA;SACzBc,KAAKA,CAACA,KAAKA,GAAGA,IAAIA,CAACA,MAAMA,CAACA,MAAMA,CAACA;SACjCA,IAAIA,CAACA,MAAMA,CAACA,IAAIA,CAACA,KAAKA,CAACA,CAACA;SACxBA,EAAEA,CAACA,CAACA,IAAIA,CAACA,MAAMA,CAACA,MAAMA,KAAKA,CAACA,IAAIA,KAAKA,CAACA,MAAMA,CAACA,CAACA,CAACA;aAC7CA,IAAIA,CAACA,MAAMA,CAACA,IAAIA,CAACA,MAAMA,CAACA,IAAIA,CAACA,MAAMA,CAACA,MAAMA,GAAGA,CAACA,CAACA,CAACA,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UAACA,OAAaA;yBAC/BA,KAAIA,CAACA,QAAQA,GAAGA,EAAEA,CAACA;yBACnBA,EAAEA,CAACA,CAACA,KAAIA,CAACA,EAAEA,CAACA,KAAKA,CAACA,QAAQA,EAAEA,CAACA,MAAMA,IAAIA,KAAIA,CAACA,SAASA,CAACA,CAACA,CAACA;6BACtDA,GAAGA,CAACA,CAACA,GAAGA,CAACA,CAACA,GAAGA,CAACA,EAAEA,CAACA,GAAGA,OAAOA,CAACA,MAAMA,EAAEA,CAACA,EAAEA,EAAEA,CAACA;iCACxCA,KAAIA,CAACA,QAAQA,CAACA,IAAIA,CAACA,OAAOA,CAACA,CAACA,CAACA,CAACA,CAACA;iCAC/BA,EAAEA,CAACA,CAACA,KAAIA,CAACA,QAAQA,CAACA,MAAMA,GAAGA,KAAIA,CAACA,YAAYA,GAAGA,CAACA,CAACA,CAACA,CAACA;qCACjDA,KAAKA,CAACA;iCACRA,CAACA;6BACHA,CAACA;yBACHA,CAACA;yBAEDA,KAAIA,CAACA,iBAAiBA,EAAEA,CAACA;qBAC3BA,CAACA,CAACA,CAACA;iBACLA,CAACA;iBAGDA,EAAEA,CAACA,CAACA,OAAOA,KAAIA,CAACA,MAAMA,KAAKA,QAAQA,IAAIA,KAAIA,CAACA,MAAMA,CAACA,MAAMA,CAACA,CAACA,CAACA;qBAC1DA,KAAIA,CAACA,cAAcA,EAAEA,CAACA;qBACtBA,KAAIA,CAACA,iBAAiBA,EAAEA,CAACA;iBAC3BA,CAACA;aACHA,CAACA,EAAEA,GAAGA,CAACA,CAACA;SACVA,CAACA;KACHA,CAACA;KAEDN,4BAAQA,GAARA,UAASA,CAAeA;SACtBO,EAAEA,CAACA,CAACA,IAAIA,CAACA,SAASA,CAACA,CAACA,CAACA;aAEnBA,EAAEA,CAACA,CAACA,CAACA,CAACA,OAAOA,KAAKA,EAAEA,CAACA,CAACA,CAACA;iBACrBA,IAAIA,CAACA,IAAIA,EAAEA,CAACA;iBACZA,MAAMA,CAACA;aACTA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EADmC;AACpC,8BAAc,GAAmC,CAAC","file":"angular2-file-upload-demo.js","sourcesContent":["/// \nimport {Component, View, bootstrap, NgClass} from 'angular2/angular2';\n\nimport {FileUploadSection} from './components/file-upload-section';\n\nlet gettingStarted = require('./getting-started.md');\n\n@Component({\n selector: 'app'\n})\n@View({\n template: `\n
\n
\n

ng2-file-upload

\n

The Angular2 File Upload directives

\n View on GitHub\n
\n
\n
\n
\n
\n
\n\n
\n
${gettingStarted}
\n\n \n
\n\n \n `,\n directives: [\n NgClass,\n FileUploadSection\n ]\n})\nexport class Demo {\n}\n\nbootstrap(Demo);\n\n\n\n/** WEBPACK FOOTER **\n ** ./demo/index.ts\n **/","function isElement(node:any) {\n return !!(node && (node.nodeName || node.prop && node.attr && node.find));\n}\n\nexport class FileLikeObject {\n public lastModifiedDate:any;\n public size:any;\n public type:string;\n public name:string;\n\n constructor(fileOrInput:any) {\n let isInput = isElement(fileOrInput);\n let fakePathOrObject = isInput ? fileOrInput.value : fileOrInput;\n let postfix = typeof fakePathOrObject === 'string' ? 'FakePath' : 'Object';\n let method = '_createFrom' + postfix;\n (this)[method](fakePathOrObject);\n }\n\n public _createFromFakePath(path:string) {\n this.lastModifiedDate = null;\n this.size = null;\n this.type = 'like/' + path.slice(path.lastIndexOf('.') + 1).toLowerCase();\n this.name = path.slice(path.lastIndexOf('/') + path.lastIndexOf('\\\\') + 2);\n }\n\n public _createFromObject(object:{size: number, type: string, name: string}) {\n // this.lastModifiedDate = copy(object.lastModifiedDate);\n this.size = object.size;\n this.type = object.type;\n this.name = object.name;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./components/file-upload/file-like-object.ts\n **/","import {\n Directive, OnInit, OnDestroy,\n EventEmitter, ElementRef\n} from 'angular2/angular2';\n\nimport {DropdownMenuInterface, DropdownToggleInterface} from './dropdown.interfaces';\nimport {dropdownService, ALWAYS} from './dropdown-service';\n\n@Directive({\n selector: '[dropdown]',\n properties: ['isOpen', 'autoClose', 'keyboardNav', 'dropdownAppendToBody'],\n events: ['onToggle'],\n host: {\n '[class.dropdown]': 'true',\n '[class.open]': 'isOpen'\n }\n})\nexport class Dropdown implements OnInit, OnDestroy {\n private _isOpen:boolean;\n // enum string: ['always', 'outsideClick', 'disabled']\n private dropdownAppendToBody:boolean;\n private onToggle:EventEmitter = new EventEmitter();\n\n public autoClose:string;\n public keyboardNav:boolean;\n // index of selected element\n public selectedOption:number;\n // drop menu html\n public menuEl:ElementRef;\n // drop down toggle element\n public toggleEl:ElementRef;\n // not implemented:\n private dropdownMenuTemplateUrl:string;\n\n constructor(public el:ElementRef) {\n // todo: bind to route change event\n }\n\n onInit() {\n this.autoClose = this.autoClose || ALWAYS;\n this.keyboardNav = typeof this.keyboardNav !== 'undefined';\n this.dropdownAppendToBody = typeof this.dropdownAppendToBody !== 'undefined';\n if (this.isOpen) {\n // todo: watch for event get-is-open?\n }\n }\n\n onDestroy() {\n if (this.dropdownAppendToBody && this.menuEl) {\n this.menuEl.nativeElement.remove();\n }\n }\n\n public set dropDownMenu(dropdownMenu:DropdownMenuInterface) {\n // init drop down menu\n this.menuEl = dropdownMenu.el;\n\n if (dropdownMenu.templateUrl) {\n this.dropdownMenuTemplateUrl = dropdownMenu.templateUrl;\n }\n\n if (this.dropdownAppendToBody) {\n window.document.body.appendChild(this.menuEl.nativeElement);\n }\n }\n\n public set dropDownToggle(dropdownToggle:DropdownToggleInterface) {\n // init toggle element\n this.toggleEl = dropdownToggle.el;\n }\n\n public toggle(open?:boolean):boolean {\n return this.isOpen = arguments.length ? !!open : !this.isOpen;\n }\n\n get isOpen():boolean {\n return this._isOpen;\n }\n\n set isOpen(value) {\n this._isOpen = !!value;\n\n // todo: implement after porting position\n if (this.dropdownAppendToBody && this.menuEl) {\n\n }\n\n // todo: $animate open<->close transitions, as soon as ng2Animate will be ready\n if (this.isOpen) {\n if (this.dropdownMenuTemplateUrl) {\n // todo: implement template url option\n }\n\n this.focusToggleElement();\n dropdownService.open(this);\n } else {\n if (this.dropdownMenuTemplateUrl) {\n // todo: implement template url option\n }\n\n dropdownService.close(this);\n this.selectedOption = null;\n }\n this.onToggle.next(this.isOpen);\n // todo: implement call to setIsOpen if set and function\n }\n\n public focusDropdownEntry(keyCode:number) {\n // If append to body is used.\n let hostEl = this.menuEl ?\n this.menuEl.nativeElement :\n this.el.nativeElement.getElementsByTagName('ul')[0];\n\n if (!hostEl) {\n // todo: throw exception?\n return;\n }\n\n let elems = hostEl.getElementsByTagName('a');\n if (!elems || !elems.length) {\n // todo: throw exception?\n return;\n }\n\n // todo: use parseInt to detect isNumber?\n // todo: or implement selectedOption as a get\\set pair with parseInt on set\n switch (keyCode) {\n case (40):\n if (typeof this.selectedOption !== 'number') {\n this.selectedOption = 0;\n break;\n }\n\n if (this.selectedOption === elems.length - 1) {\n break;\n }\n\n this.selectedOption++;\n break;\n case (38):\n if (typeof this.selectedOption !== 'number') {\n return;\n }\n\n if (this.selectedOption === 0) {\n // todo: return?\n break;\n }\n\n this.selectedOption--;\n break;\n }\n\n elems[this.selectedOption].focus();\n }\n\n public focusToggleElement() {\n if (this.toggleEl) {\n this.toggleEl.nativeElement.focus();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/dropdown/dropdown.ts\n **/","import {\n Component, View, OnInit, OnDestroy, OnChanges,\n Directive, EventEmitter, ElementRef, Renderer,\n CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass\n} from 'angular2/angular2';\n\nimport {FileUploader} from './file-uploader';\n\n@Directive({\n selector: '[ng2-file-drop]',\n properties: ['uploader'],\n events: ['fileOver'],\n host: {\n '(drop)': 'onDrop($event)',\n '(dragover)': 'onDragOver($event)',\n '(dragleave)': 'onDragLeave($event)'\n }\n})\nexport class FileDrop {\n public uploader:FileUploader;\n private fileOver:EventEmitter = new EventEmitter();\n\n constructor(private element:ElementRef) {\n }\n\n getOptions() {\n return this.uploader.options;\n }\n\n getFilters() {\n }\n\n onDrop(event:any) {\n let transfer = this._getTransfer(event);\n if (!transfer) {\n return;\n }\n\n let options = this.getOptions();\n let filters = this.getFilters();\n this._preventAndStop(event);\n this.uploader.addToQueue(transfer.files, options, filters);\n this.fileOver.next(false);\n }\n\n onDragOver(event:any) {\n let transfer = this._getTransfer(event);\n if (!this._haveFiles(transfer.types)) {\n return;\n }\n\n transfer.dropEffect = 'copy';\n this._preventAndStop(event);\n this.fileOver.next(true);\n }\n\n onDragLeave(event:any):any {\n if (event.currentTarget === (this).element[0]) {\n return;\n }\n\n this._preventAndStop(event);\n this.fileOver.next(false);\n }\n\n private _getTransfer(event:any):any {\n return event.dataTransfer ? event.dataTransfer : event.originalEvent.dataTransfer; // jQuery fix;\n }\n\n private _preventAndStop(event:any):any {\n event.preventDefault();\n event.stopPropagation();\n }\n\n private _haveFiles(types:any):any {\n if (!types) {\n return false;\n }\n\n if (types.indexOf) {\n return types.indexOf('Files') !== -1;\n } else if (types.contains) {\n return types.contains('Files');\n } else {\n return false;\n }\n }\n\n _addOverClass(item:any):any {\n item.addOverClass();\n }\n\n _removeOverClass(item:any):any {\n item.removeOverClass();\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./components/file-upload/file-drop.ts\n **/","import {FileLikeObject} from './file-like-object';\nimport {FileUploader} from './file-uploader';\n\nexport class FileItem {\n public file:FileLikeObject;\n public _file:File;\n public alias:string = 'file';\n public url:string = '/';\n public method:string = 'POST';\n public headers:any = [];\n public withCredentials:boolean = true;\n public formData:any = [];\n public isReady:boolean = false;\n public isUploading:boolean = false;\n public isUploaded:boolean = false;\n public isSuccess:boolean = false;\n public isCancel:boolean = false;\n public isError:boolean = false;\n public progress:number = 0;\n public index:number = null;\n\n constructor(private uploader:FileUploader, private some:any, private options:any) {\n this.file = new FileLikeObject(some);\n this._file = some;\n this.url = uploader.url;\n }\n\n public upload() {\n try {\n this.uploader.uploadItem(this);\n } catch (e) {\n this.uploader._onCompleteItem(this, '', 0, []);\n this.uploader._onErrorItem(this, '', 0, []);\n }\n }\n\n public cancel() {\n this.uploader.cancelItem(this);\n }\n\n public remove() {\n this.uploader.removeFromQueue(this);\n }\n\n public onBeforeUpload() {\n }\n\n public onProgress(progress:number) {\n }\n\n public onSuccess(response:any, status:any, headers:any) {\n }\n\n public onError(response:any, status:any, headers:any) {\n }\n\n public onCancel(response:any, status:any, headers:any) {\n }\n\n public onComplete(response:any, status:any, headers:any) {\n }\n\n private _onBeforeUpload() {\n this.isReady = true;\n this.isUploading = true;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = false;\n this.progress = 0;\n this.onBeforeUpload();\n }\n\n private _onProgress(progress:number) {\n this.progress = progress;\n this.onProgress(progress);\n }\n\n private _onSuccess(response:any, status:any, headers:any) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = true;\n this.isCancel = false;\n this.isError = false;\n this.progress = 100;\n this.index = null;\n this.onSuccess(response, status, headers);\n }\n\n private _onError(response:any, status:any, headers:any) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = true;\n this.isSuccess = false;\n this.isCancel = false;\n this.isError = true;\n this.progress = 0;\n this.index = null;\n this.onError(response, status, headers);\n }\n\n private _onCancel(response:any, status:any, headers:any) {\n this.isReady = false;\n this.isUploading = false;\n this.isUploaded = false;\n this.isSuccess = false;\n this.isCancel = true;\n this.isError = false;\n this.progress = 0;\n this.index = null;\n this.onCancel(response, status, headers);\n }\n\n private _onComplete(response:any, status:any, headers:any) {\n this.onComplete(response, status, headers);\n\n if (this.uploader.removeAfterUpload) {\n this.remove();\n }\n }\n\n private _prepareToUploading() {\n this.index = this.index || ++this.uploader._nextIndex;\n this.isReady = true;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./components/file-upload/file-item.ts\n **/","import {\n Component, View, OnInit, OnDestroy, OnChanges,\n Directive, EventEmitter, ElementRef, Renderer,\n CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass\n} from 'angular2/angular2';\n\nimport {FileUploader} from './file-uploader';\n\n// todo: filters\n\n@Directive({\n selector: '[ng2-file-select]',\n properties: ['uploader'],\n host: {\n '(change)': 'onChange()'\n }\n})\nexport class FileSelect {\n public uploader:FileUploader;\n\n constructor(private element:ElementRef) {\n }\n\n public getOptions() {\n return this.uploader.options;\n }\n\n public getFilters() {\n }\n\n public isEmptyAfterSelection():boolean {\n return !!this.element.nativeElement.attributes.multiple;\n }\n\n onChange() {\n // let files = this.uploader.isHTML5 ? this.element.nativeElement[0].files : this.element.nativeElement[0];\n let files = this.element.nativeElement.files;\n let options = this.getOptions();\n let filters = this.getFilters();\n\n // if(!this.uploader.isHTML5) this.destroy();\n\n this.uploader.addToQueue(files, options, filters);\n if (this.isEmptyAfterSelection()) {\n // todo\n // this.element.nativeElement.properties.value = '';\n /*this.element.nativeElement\n .replaceWith(this.element = this.element.nativeElement.clone(true)); // IE fix*/\n }\n }\n}\n\nexport const fileUpload:Array = [FileSelect];\n\n\n\n/** WEBPACK FOOTER **\n ** ./components/file-upload/file-select.ts\n **/","import {\n EventEmitter, ElementRef, Renderer\n} from 'angular2/angular2';\n\nimport {FileLikeObject} from './file-like-object';\nimport {FileItem} from './file-item';\n\nfunction isFile(value:any) {\n return (File && value instanceof File);\n}\n\nfunction isFileLikeObject(value:any) {\n return value instanceof FileLikeObject;\n}\n\nexport class FileUploader {\n public url:string;\n public authToken:string;\n public isUploading:boolean = false;\n public queue:Array = [];\n public progress:number = 0;\n public autoUpload:boolean = false;\n public isHTML5:boolean = true;\n public removeAfterUpload:boolean = false;\n public queueLimit:number;\n public _nextIndex = 0;\n public filters:Array = [];\n private _failFilterIndex:number;\n\n constructor(public options:any) {\n // Object.assign(this, options);\n this.url = options.url;\n this.authToken = options.authToken;\n this.filters.unshift({name: 'queueLimit', fn: this._queueLimitFilter});\n this.filters.unshift({name: 'folder', fn: this._folderFilter});\n }\n\n public addToQueue(files:any[], options:any, filters:any) {\n let list:any[] = [];\n for (let file of files) {\n list.push(file);\n }\n\n let arrayOfFilters = this._getFilters(filters);\n let count = this.queue.length;\n let addedFileItems:any[] = [];\n\n list.map(some => {\n let temp = new FileLikeObject(some);\n\n if (this._isValidFile(temp, [], options)) {\n let fileItem = new FileItem(this, some, options);\n addedFileItems.push(fileItem);\n this.queue.push(fileItem);\n this._onAfterAddingFile(fileItem);\n } else {\n let filter = arrayOfFilters[this._failFilterIndex];\n this._onWhenAddingFileFailed(temp, filter, options);\n }\n });\n\n if (this.queue.length !== count) {\n this._onAfterAddingAll(addedFileItems);\n this.progress = this._getTotalProgress();\n }\n\n this._render();\n\n if (this.autoUpload) {\n this.uploadAll();\n }\n }\n\n public removeFromQueue(value:any) {\n let index = this.getIndexOfItem(value);\n let item = this.queue[index];\n if (item.isUploading) {\n item.cancel();\n }\n\n this.queue.splice(index, 1);\n this.progress = this._getTotalProgress();\n }\n\n public clearQueue() {\n while (this.queue.length) {\n this.queue[0].remove();\n }\n\n this.progress = 0;\n }\n\n public uploadItem(value:FileItem) {\n let index = this.getIndexOfItem(value);\n let item = this.queue[index];\n let transport = this.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n\n item._prepareToUploading();\n if (this.isUploading) {\n return;\n }\n\n this.isUploading = true;\n (this)[transport](item);\n }\n\n public cancelItem(value:any) {\n let index = this.getIndexOfItem(value);\n let item = this.queue[index];\n let prop = this.isHTML5 ? '_xhr' : '_form';\n\n if (item && item.isUploading) {\n item[prop].abort();\n }\n }\n\n public uploadAll() {\n let items = this.getNotUploadedItems().filter(item => !item.isUploading);\n if (!items.length) {\n return;\n }\n\n items.map(item => item._prepareToUploading());\n items[0].upload();\n }\n\n public cancelAll() {\n let items = this.getNotUploadedItems();\n items.map(item => item.cancel());\n }\n\n\n public isFile(value:any) {\n return isFile(value);\n }\n\n public isFileLikeObject(value:any) {\n return value instanceof FileLikeObject;\n }\n\n public getIndexOfItem(value:any) {\n return typeof value === 'number' ? value : this.queue.indexOf(value);\n }\n\n public getNotUploadedItems() {\n return this.queue.filter(item => !item.isUploaded);\n }\n\n public getReadyItems() {\n return this.queue\n .filter(item => (item.isReady && !item.isUploading))\n .sort((item1, item2) => item1.index - item2.index);\n }\n\n public destroy() {\n /*forEach(this._directives, (key) => {\n forEach(this._directives[key], (object) => {\n object.destroy();\n });\n });*/\n }\n\n public onAfterAddingAll(fileItems:any) {\n }\n\n public onAfterAddingFile(fileItem:any) {\n }\n\n public onWhenAddingFileFailed(item:any, filter:any, options:any) {\n }\n\n public onBeforeUploadItem(fileItem:any) {\n }\n\n public onProgressItem(fileItem:any, progress:any) {\n }\n\n public onProgressAll(progress:any) {\n }\n\n public onSuccessItem(item:any, response:any, status:any, headers:any) {\n }\n\n public onErrorItem(item:any, response:any, status:any, headers:any) {\n }\n\n public onCancelItem(item:any, response:any, status:any, headers:any) {\n }\n\n public onCompleteItem(item:any, response:any, status:any, headers:any) {\n }\n\n public onCompleteAll() {\n }\n\n private _getTotalProgress(value = 0) {\n if (this.removeAfterUpload) {\n return value;\n }\n\n let notUploaded = this.getNotUploadedItems().length;\n let uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n let ratio = 100 / this.queue.length;\n let current = value * ratio / 100;\n\n return Math.round(uploaded * ratio + current);\n }\n\n private _getFilters(filters:any) {\n if (!filters) {\n return this.filters;\n }\n\n if (Array.isArray(filters)) {\n return filters;\n }\n\n let names = filters.match(/[^\\s,]+/g);\n return this.filters\n .filter(filter => names.indexOf(filter.name) !== -1);\n }\n\n private _render() {\n // todo: ?\n }\n\n private _folderFilter(item:any) {\n return !!(item.size || item.type);\n }\n\n private _queueLimitFilter() {\n return this.queue.length < this.queueLimit;\n }\n\n private _isValidFile(file:any, filters:any, options:any) {\n this._failFilterIndex = -1;\n return !filters.length ? true : filters.every((filter:any) => {\n this._failFilterIndex++;\n return filter.fn.call(this, file, options);\n });\n }\n\n private _isSuccessCode(status:any) {\n return (status >= 200 && status < 300) || status === 304;\n }\n\n private _transformResponse(response:any, headers:any):any {\n // todo: ?\n /*var headersGetter = this._headersGetter(headers);\n forEach($http.defaults.transformResponse, (transformFn) => {\n response = transformFn(response, headersGetter);\n });*/\n return response;\n }\n\n private _parseHeaders(headers:any) {\n let parsed:any = {}, key:any, val:any, i:any;\n\n if (!headers) {\n return parsed;\n }\n\n headers.split('\\n').map((line:any) => {\n i = line.indexOf(':');\n key = line.slice(0, i).trim().toLowerCase();\n val = line.slice(i + 1).trim();\n\n if (key) {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n }\n\n private _headersGetter(parsedHeaders:any) {\n return (name:any) => {\n if (name) {\n return parsedHeaders[name.toLowerCase()] || null;\n }\n return parsedHeaders;\n };\n }\n\n _xhrTransport(item:any) {\n let xhr = item._xhr = new XMLHttpRequest();\n let form = new FormData();\n\n this._onBeforeUploadItem(item);\n\n // todo\n /*item.formData.map(obj => {\n obj.map((value, key) => {\n form.append(key, value);\n });\n });*/\n\n if (typeof item._file.size !== 'number') {\n throw new TypeError('The file specified is no longer valid');\n }\n\n form.append(item.alias, item._file, item.file.name);\n\n xhr.upload.onprogress = (event) => {\n let progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n this._onProgressItem(item, progress);\n };\n\n xhr.onload = () => {\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n let response = this._transformResponse(xhr.response, headers);\n let gist = this._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n let method = '_on' + gist + 'Item';\n (this)[method](item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n };\n\n xhr.onerror = () => {\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n let response = this._transformResponse(xhr.response, headers);\n this._onErrorItem(item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n };\n\n xhr.onabort = () => {\n let headers = this._parseHeaders(xhr.getAllResponseHeaders());\n let response = this._transformResponse(xhr.response, headers);\n this._onCancelItem(item, response, xhr.status, headers);\n this._onCompleteItem(item, response, xhr.status, headers);\n };\n\n xhr.open(item.method, item.url, true);\n xhr.withCredentials = item.withCredentials;\n\n // todo\n /*item.headers.map((value, name) => {\n xhr.setRequestHeader(name, value);\n });*/\n\n if (this.authToken) {\n xhr.setRequestHeader('Authorization', this.authToken);\n }\n\n xhr.send(form);\n this._render();\n }\n\n private _iframeTransport(item:any) {\n // todo: implement it later\n }\n\n private _onWhenAddingFileFailed(item:any, filter:any, options:any) {\n this.onWhenAddingFileFailed(item, filter, options);\n }\n\n private _onAfterAddingFile(item:any) {\n this.onAfterAddingFile(item);\n }\n\n private _onAfterAddingAll(items:any) {\n this.onAfterAddingAll(items);\n }\n\n private _onBeforeUploadItem(item:any) {\n item._onBeforeUpload();\n this.onBeforeUploadItem(item);\n }\n\n private _onProgressItem(item:any, progress:any) {\n let total = this._getTotalProgress(progress);\n this.progress = total;\n item._onProgress(progress);\n this.onProgressItem(item, progress);\n this.onProgressAll(total);\n this._render();\n }\n\n private _onSuccessItem(item:any, response:any, status:any, headers:any) {\n item._onSuccess(response, status, headers);\n this.onSuccessItem(item, response, status, headers);\n }\n\n public _onErrorItem(item:any, response:any, status:any, headers:any) {\n item._onError(response, status, headers);\n this.onErrorItem(item, response, status, headers);\n }\n\n private _onCancelItem(item:any, response:any, status:any, headers:any) {\n item._onCancel(response, status, headers);\n this.onCancelItem(item, response, status, headers);\n }\n\n public _onCompleteItem(item:any, response:any, status:any, headers:any) {\n item._onComplete(response, status, headers);\n this.onCompleteItem(item, response, status, headers);\n\n let nextItem = this.getReadyItems()[0];\n this.isUploading = false;\n\n if (nextItem) {\n nextItem.upload();\n return;\n }\n\n this.onCompleteAll();\n this.progress = this._getTotalProgress();\n this._render();\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./components/file-upload/file-uploader.ts\n **/","export enum Ng2BootstrapTheme {BS3 = 1, BS4 = 2}\n\nexport class Ng2BootstrapConfig {\n private static _theme: Ng2BootstrapTheme;\n static get theme():Ng2BootstrapTheme {\n // hack as for now\n let w: any = window;\n if (w && w.__theme === 'bs4') {\n return Ng2BootstrapTheme.BS4;\n }\n return (this._theme || Ng2BootstrapTheme.BS3);\n }\n static set theme(v:Ng2BootstrapTheme){\n this._theme = v;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/ng2-bootstrap-config.ts\n **/","import {\n Injectable,\n ElementRef\n} from 'angular2/angular2';\nimport {IAttribute} from './common';\n\nexport class PositionService {\n private get window():any {\n return window;\n }\n\n private get document():any {\n return window.document;\n }\n\n private getStyle(nativeEl:any, cssProp:string):any {\n // IE\n if (nativeEl.currentStyle) {\n return nativeEl.currentStyle[cssProp];\n }\n\n if (this.window.getComputedStyle) {\n return this.window.getComputedStyle(nativeEl)[cssProp];\n }\n // finally try and get inline style\n return nativeEl.style[cssProp];\n }\n\n\n /**\n * Checks if a given element is statically positioned\n * @param nativeEl - raw DOM element\n */\n private isStaticPositioned(nativeEl:any):any {\n return (this.getStyle(nativeEl, 'position') || 'static' ) === 'static';\n }\n\n\n /**\n * returns the closest, non-statically positioned parentOffset of a given element\n * @param nativeEl\n */\n private parentOffsetEl(nativeEl:any) {\n let offsetParent = nativeEl.offsetParent || this.document;\n while (offsetParent && offsetParent !== this.document &&\n this.isStaticPositioned(offsetParent)) {\n offsetParent = offsetParent.offsetParent;\n }\n return offsetParent || this.document;\n };\n\n /**\n * Provides read-only equivalent of jQuery's position function:\n * http://api.jquery.com/position/\n */\n public position(nativeEl:any):{width: number, height: number, top: number, left: number} {\n let elBCR = this.offset(nativeEl);\n let offsetParentBCR = {top: 0, left: 0};\n let offsetParentEl = this.parentOffsetEl(nativeEl);\n if (offsetParentEl !== this.document) {\n offsetParentBCR = this.offset(offsetParentEl);\n offsetParentBCR.top += offsetParentEl.clientTop - offsetParentEl.scrollTop;\n offsetParentBCR.left += offsetParentEl.clientLeft - offsetParentEl.scrollLeft;\n }\n\n let boundingClientRect = nativeEl.getBoundingClientRect();\n return {\n width: boundingClientRect.width || nativeEl.offsetWidth,\n height: boundingClientRect.height || nativeEl.offsetHeight,\n top: elBCR.top - offsetParentBCR.top,\n left: elBCR.left - offsetParentBCR.left\n };\n }\n\n /**\n * Provides read-only equivalent of jQuery's offset function:\n * http://api.jquery.com/offset/\n */\n public offset(nativeEl:any):{width: number, height: number, top: number, left: number} {\n let boundingClientRect = nativeEl.getBoundingClientRect();\n return {\n width: boundingClientRect.width || nativeEl.offsetWidth,\n height: boundingClientRect.height || nativeEl.offsetHeight,\n top: boundingClientRect.top + (this.window.pageYOffset || this.document.documentElement.scrollTop),\n left: boundingClientRect.left + (this.window.pageXOffset || this.document.documentElement.scrollLeft)\n };\n }\n\n /**\n * Provides coordinates for the targetEl in relation to hostEl\n */\n public positionElements(hostEl:any, targetEl:any, positionStr:any, appendToBody:any):{top: number, left: number} {\n let positionStrParts = positionStr.split('-');\n let pos0 = positionStrParts[0];\n let pos1 = positionStrParts[1] || 'center';\n let hostElPos = appendToBody ?\n this.offset(hostEl) :\n this.position(hostEl);\n let targetElWidth = targetEl.offsetWidth;\n let targetElHeight = targetEl.offsetHeight;\n\n let shiftWidth:IAttribute = {\n center: function () {\n return hostElPos.left + hostElPos.width / 2 - targetElWidth / 2;\n },\n left: function () {\n return hostElPos.left;\n },\n right: function () {\n return hostElPos.left + hostElPos.width;\n }\n };\n\n let shiftHeight:IAttribute = {\n center: function ():number {\n return hostElPos.top + hostElPos.height / 2 - targetElHeight / 2;\n },\n top: function ():number {\n return hostElPos.top;\n },\n bottom: function ():number {\n return hostElPos.top + hostElPos.height;\n }\n };\n\n let targetElPos:{top: number, left: number};\n switch (pos0) {\n case 'right':\n targetElPos = {\n top: shiftHeight[pos1](),\n left: shiftWidth[pos0]()\n };\n break;\n case 'left':\n targetElPos = {\n top: shiftHeight[pos1](),\n left: hostElPos.left - targetElWidth\n };\n break;\n case 'bottom':\n targetElPos = {\n top: shiftHeight[pos0](),\n left: shiftWidth[pos1]()\n };\n break;\n default:\n targetElPos = {\n top: hostElPos.top - targetElHeight,\n left: shiftWidth[pos1]()\n };\n break;\n }\n\n return targetElPos;\n }\n}\n\nexport const positionService = new PositionService();\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/position.ts\n **/","import {\n Component, View,\n Directive,\n EventEmitter, ElementRef\n} from 'angular2/angular2';\n\n// todo: add animate\n// todo: add init and on change\n@Directive({\n selector: '[collapse]',\n properties: ['collapse'],\n host: {\n '[class.in]': 'isExpanded',\n '[class.collapse]': 'isCollapse',\n '[class.collapsing]': 'isCollapsing',\n '[attr.aria-expanded]': 'isExpanded',\n '[attr.aria-hidden]': 'isCollapsed',\n '[style.height]': 'height'\n }\n})\nexport class Collapse {\n public test:any = 'wtf';\n // style\n private height:string;\n // classes\n // shown\n private isExpanded:boolean = true;\n // hidden\n private isCollapsed:boolean = false;\n // stale state\n private isCollapse:boolean = true;\n // animation state\n private isCollapsing:boolean = false;\n\n constructor(private el:ElementRef) {\n }\n\n private get collapse():boolean {\n return this.isExpanded;\n }\n\n private set collapse(value:boolean) {\n this.isExpanded = value;\n this.toggle();\n }\n\n toggle() {\n if (this.isExpanded) {\n this.hide();\n } else {\n this.show();\n }\n }\n\n hide() {\n this.isCollapse = false;\n this.isCollapsing = true;\n\n this.isExpanded = false;\n this.isCollapsed = true;\n setTimeout(() => {\n this.height = '0';\n this.isCollapse = true;\n this.isCollapsing = false;\n }, 4);\n }\n\n show() {\n this.isCollapse = false;\n this.isCollapsing = true;\n\n this.isExpanded = true;\n this.isCollapsed = false;\n setTimeout(() => {\n this.height = 'auto';\n\n this.isCollapse = true;\n this.isCollapsing = false;\n }, 4);\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/collapse/collapse.ts\n **/","import {Directive, TemplateRef, ViewContainerRef, Inject} from 'angular2/angular2';\n\nexport interface IAttribute {\n [name: string]: any;\n}\n\n@Directive({\n selector: '[ng-transclude]',\n properties: ['ngTransclude']\n})\nexport class NgTransclude {\n private _ngTransclude: TemplateRef;\n\n private set ngTransclude(templateRef:TemplateRef) {\n this._ngTransclude = templateRef;\n if (templateRef) {\n this.viewRef.createEmbeddedView(templateRef);\n }\n }\n\n private get ngTransclude() {\n return this._ngTransclude;\n }\n\n constructor(@Inject(ViewContainerRef) public viewRef:ViewContainerRef) {\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/common.ts\n **/","import {Directive, ElementRef, Host, OnInit} from 'angular2/angular2';\nimport {Dropdown} from './dropdown';\n\n@Directive({\n selector: '[dropdown-menu], .dropdown-menu',\n properties: ['templateUrl']\n})\nexport class DropdownMenu implements OnInit {\n public templateUrl:string;\n\n constructor(@Host() public dropdown:Dropdown, public el:ElementRef) {\n }\n\n onInit() {\n this.dropdown.dropDownMenu = this;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/dropdown/dropdown-menu.ts\n **/","export const ALWAYS = 'always';\nexport const DISABLED = 'disabled';\nexport const OUTSIDECLICK = 'outsideClick';\n\nimport {Dropdown} from './dropdown';\n\nexport class DropdownService {\n private openScope:Dropdown;\n private dropdownScope:Dropdown;\n\n private closeDropdownBind:EventListener = this.closeDropdown.bind(this);\n private keybindFilterBind:EventListener = this.keybindFilter.bind(this);\n\n public open(dropdownScope:Dropdown) {\n if (!this.openScope) {\n window.document.addEventListener('click', this.closeDropdownBind);\n window.document.addEventListener('keydown', this.keybindFilterBind);\n }\n\n if (this.openScope && this.openScope !== this.dropdownScope) {\n this.openScope.isOpen = false;\n }\n\n this.openScope = dropdownScope;\n }\n\n public close(dropdownScope:Dropdown) {\n if (this.openScope !== dropdownScope) {\n return;\n }\n\n this.openScope = null;\n window.document.removeEventListener('click', this.closeDropdownBind);\n window.document.removeEventListener('keydown', this.keybindFilterBind);\n }\n\n private closeDropdown(event:MouseEvent) {\n if (!this.openScope) {\n return;\n }\n\n if (event && this.openScope.autoClose === DISABLED) {\n return;\n }\n\n if (event && this.openScope.toggleEl &&\n this.openScope.toggleEl.nativeElement === event.target) {\n return;\n }\n\n if (event && this.openScope.autoClose === OUTSIDECLICK &&\n this.openScope.menuEl &&\n this.openScope.menuEl.nativeElement === event.target) {\n return;\n }\n\n this.openScope.isOpen = false;\n }\n\n private keybindFilter(event:KeyboardEvent) {\n if (event.which === 27) {\n this.openScope.focusToggleElement();\n this.closeDropdown(null);\n return;\n }\n\n if (this.openScope.keyboardNav && this.openScope.isOpen &&\n (event.which === 38 || event.which === 40)) {\n event.preventDefault();\n event.stopPropagation();\n this.openScope.focusDropdownEntry(event.which);\n }\n }\n}\n\nexport let dropdownService = new DropdownService();\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/dropdown/dropdown-service.ts\n **/","import {Directive, ElementRef, Host, OnInit} from 'angular2/angular2';\n\nimport {Dropdown} from './dropdown';\n\n@Directive({\n selector: '[dropdown-toggle]',\n properties: ['disabled'],\n host: {\n '(click)': 'toggleDropdown($event)',\n '[class.dropdown-toggle]': 'true',\n '[class.disabled]': 'disabled',\n '[attr.aria-haspopup]': 'true',\n '[attr.aria-expanded]': 'isOpen'\n }\n})\nexport class DropdownToggle implements OnInit {\n private disabled:boolean = false;\n\n constructor(@Host() public dropdown:Dropdown, public el:ElementRef) {\n }\n\n onInit() {\n this.dropdown.dropDownToggle = this;\n }\n\n get isOpen() {\n return this.dropdown.isOpen;\n }\n\n toggleDropdown(event:MouseEvent) {\n event.preventDefault();\n event.stopPropagation();\n\n if (!this.disabled) {\n this.dropdown.toggle();\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/dropdown/dropdown-toggle.ts\n **/","module.exports = \"

Usage

\\n
import {FileSelect, FileDrop, FileUploader} from 'ng2-file-upload';\\n
\\n

Annotations

\\n
// class FileSelect\\n@Directive({\\n  selector: '[ng2-file-select]',\\n  properties: ['uploader'],\\n  host: {\\n    '(change)': 'onChange()'\\n  }\\n})\\n
\\n
// class FileDrop\\n@Directive({\\n  selector: '[ng2-file-drop]',\\n  properties: ['uploader'],\\n  events: ['fileOver'],\\n  host: {\\n    '(drop)': 'onDrop($event)',\\n    '(dragover)': 'onDragOver($event)',\\n    '(dragleave)': 'onDragLeave($event)'\\n  }\\n})\\n
\\n

FileSelect API

\\n

Properties

\\n
    \\n
  • uploader - (FileUploader) - uploader object. See using in demo

    \\n

    Parameters that supported by this object:

    \\n
  • \\n
  • url - URL of File Uploader's route

    \\n
  • \\n
  • authToken - auth token that will be applied as 'Authorization' header during file send.
  • \\n
\\n

FileDrop API

\\n

Properties

\\n
    \\n
  • uploader - (FileUploader) - uploader object. See using in demo
  • \\n
\\n

Events

\\n
    \\n
  • file-over - it fires during 'over' and 'out' events for Drop Area; returns boolean: true if file is over Drop Area, false in case of out.\\nSee using in ts demo and\\nhtml demo
  • \\n
\\n\";\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./components/file-upload/readme.md\n ** module id = 369\n ** module chunks = 1\n **/","module.exports = \"

Getting started

\\n

First of all, Welcome!

\\n

Install

\\n

Install the components

\\n
npm install ng2-file-upload --save\\n
\";\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./demo/getting-started.md\n ** module id = 370\n ** module chunks = 1\n **/","module.exports = \"var express = require('express');\\nvar multer = require('multer');\\nvar fs = require('fs');\\nvar app = express();\\n\\nvar DIR = './uploads/';\\n\\nvar upload = multer({dest: DIR});\\n\\napp.use(function (req, res, next) {\\n res.setHeader('Access-Control-Allow-Origin', 'http://valor-software.github.io');\\n res.setHeader('Access-Control-Allow-Methods', 'POST');\\n res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With,content-type');\\n res.setHeader('Access-Control-Allow-Credentials', true);\\n next();\\n});\\n\\napp.use(multer({\\n dest: DIR,\\n rename: function (fieldname, filename) {\\n return filename + Date.now();\\n },\\n onFileUploadStart: function (file) {\\n console.log(file.originalname + ' is starting ...');\\n },\\n onFileUploadComplete: function (file) {\\n console.log(file.fieldname + ' uploaded to ' + file.path);\\n }\\n}));\\n\\napp.get('/api', function (req, res) {\\n res.end('file catcher example');\\n});\\n\\napp.post('/api', function (req, res) {\\n upload(req, res, function (err) {\\n if (err) {\\n return res.end(err.toString());\\n }\\n\\n res.end('File is uploaded');\\n });\\n});\\n\\nvar PORT = process.env.PORT || 3000;\\n\\napp.listen(PORT, function () {\\n console.log('Working on port ' + PORT);\\n});\\n\"\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/prismjs-loader?lang=javascript!./demo/components/file-upload/file-catcher.js\n ** module id = 371\n ** module chunks = 1\n **/","module.exports = \"<style>\\n .my-drop-zone { border: dotted 3px lightgray; }\\n .nv-file-over { border: dotted 3px red; } /* Default class applied to drop zones on over */\\n .another-file-over-class { border: dotted 3px green; }\\n\\n html, body { height: 100%; }\\n</style>\\n\\n<div class=\\\"container\\\">\\n\\n <div class=\\\"navbar navbar-default\\\">\\n <div class=\\\"navbar-header\\\">\\n <a class=\\\"navbar-brand\\\" href>Angular2 File Upload</a>\\n </div>\\n </div>\\n\\n <div class=\\\"row\\\">\\n\\n <div class=\\\"col-md-3\\\">\\n\\n <h3>Select files</h3>\\n\\n <div ng2-file-drop\\n [ng-class]=\\\"{'nv-file-over': hasBaseDropZoneOver}\\\"\\n (file-over)=\\\"fileOverBase($event)\\\"\\n [uploader]=\\\"uploader\\\"\\n class=\\\"well my-drop-zone\\\">\\n Base drop zone\\n </div>\\n\\n <div ng2-file-drop\\n [ng-class]=\\\"{'another-file-over-class': hasAnotherDropZoneOver}\\\"\\n (file-over)=\\\"fileOverAnother($event)\\\"\\n [uploader]=\\\"uploader\\\"\\n class=\\\"well my-drop-zone\\\">\\n Another drop zone\\n </div>\\n\\n Multiple\\n <input type=\\\"file\\\" ng2-file-select [uploader]=\\\"uploader\\\" multiple /><br/>\\n\\n Single\\n <input type=\\\"file\\\" ng2-file-select [uploader]=\\\"uploader\\\" />\\n </div>\\n\\n <div class=\\\"col-md-9\\\" style=\\\"margin-bottom: 40px\\\">\\n\\n <h3>Upload queue</h3>\\n <p>Queue length: {{ uploader.queue.length }}</p>\\n\\n <table class=\\\"table\\\">\\n <thead>\\n <tr>\\n <th width=\\\"50%\\\">Name</th>\\n <th>Size</th>\\n <th>Progress</th>\\n <th>Status</th>\\n <th>Actions</th>\\n </tr>\\n </thead>\\n <tbody>\\n <tr *ng-for=\\\"#item of uploader.queue\\\">\\n <td><strong>{{ item.file.name }}</strong></td>\\n <td *ng-if=\\\"uploader.isHTML5\\\" nowrap>{{ item.file.size/1024/1024 | number:'.2' }} MB</td>\\n <td *ng-if=\\\"uploader.isHTML5\\\">\\n <div class=\\\"progress\\\" style=\\\"margin-bottom: 0;\\\">\\n <div class=\\\"progress-bar\\\" role=\\\"progressbar\\\" [ng-style]=\\\"{ 'width': item.progress + '%' }\\\"></div>\\n </div>\\n </td>\\n <td class=\\\"text-center\\\">\\n <span *ng-if=\\\"item.isSuccess\\\"><i class=\\\"glyphicon glyphicon-ok\\\"></i></span>\\n <span *ng-if=\\\"item.isCancel\\\"><i class=\\\"glyphicon glyphicon-ban-circle\\\"></i></span>\\n <span *ng-if=\\\"item.isError\\\"><i class=\\\"glyphicon glyphicon-remove\\\"></i></span>\\n </td>\\n <td nowrap>\\n <button type=\\\"button\\\" class=\\\"btn btn-success btn-xs\\\"\\n (click)=\\\"item.upload()\\\" [disabled]=\\\"item.isReady || item.isUploading || item.isSuccess\\\">\\n <span class=\\\"glyphicon glyphicon-upload\\\"></span> Upload\\n </button>\\n <button type=\\\"button\\\" class=\\\"btn btn-warning btn-xs\\\"\\n (click)=\\\"item.cancel()\\\" [disabled]=\\\"!item.isUploading\\\">\\n <span class=\\\"glyphicon glyphicon-ban-circle\\\"></span> Cancel\\n </button>\\n <button type=\\\"button\\\" class=\\\"btn btn-danger btn-xs\\\"\\n (click)=\\\"item.remove()\\\">\\n <span class=\\\"glyphicon glyphicon-trash\\\"></span> Remove\\n </button>\\n </td>\\n </tr>\\n </tbody>\\n </table>\\n\\n <div>\\n <div>\\n Queue progress:\\n <div class=\\\"progress\\\" style=\\\"\\\">\\n <div class=\\\"progress-bar\\\" role=\\\"progressbar\\\" [ng-style]=\\\"{ 'width': uploader.progress + '%' }\\\"></div>\\n </div>\\n </div>\\n <button type=\\\"button\\\" class=\\\"btn btn-success btn-s\\\"\\n (click)=\\\"uploader.uploadAll()\\\" [disabled]=\\\"!uploader.getNotUploadedItems().length\\\">\\n <span class=\\\"glyphicon glyphicon-upload\\\"></span> Upload all\\n </button>\\n <button type=\\\"button\\\" class=\\\"btn btn-warning btn-s\\\"\\n (click)=\\\"uploader.cancelAll()\\\" [disabled]=\\\"!uploader.isUploading\\\">\\n <span class=\\\"glyphicon glyphicon-ban-circle\\\"></span> Cancel all\\n </button>\\n <button type=\\\"button\\\" class=\\\"btn btn-danger btn-s\\\"\\n (click)=\\\"uploader.clearQueue()\\\" [disabled]=\\\"!uploader.queue.length\\\">\\n <span class=\\\"glyphicon glyphicon-trash\\\"></span> Remove all\\n </button>\\n </div>\\n\\n </div>\\n\\n </div>\\n\\n</div>\"\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/prismjs-loader?lang=markup!./demo/components/file-upload/simple-demo.html\n ** module id = 372\n ** module chunks = 1\n **/","module.exports = \"/// <reference path=\\\"../../../tsd.d.ts\\\" />\\n\\nimport {\\n Component, View, EventEmitter,\\n CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle\\n} from 'angular2/angular2';\\n\\nimport {FileSelect} from '../../../components/file-upload/file-select';\\nimport {FileDrop} from '../../../components/file-upload/file-drop';\\nimport {FileUploader} from '../../../components/file-upload/file-uploader';\\n\\n// webpack html imports\\nlet template = require('./simple-demo.html');\\n\\n// const URL = '/api/';\\nconst URL = 'https://evening-anchorage-3159.herokuapp.com/api/';\\n\\n@Component({\\n selector: 'simple-demo'\\n})\\n@View({\\n template: template,\\n directives: [FileSelect, FileDrop, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]\\n})\\nexport class SimpleDemo {\\n private uploader:FileUploader = new FileUploader({url: URL});\\n private hasBaseDropZoneOver:boolean = false;\\n private hasAnotherDropZoneOver:boolean = false;\\n\\n private fileOverBase(e:any) {\\n this.hasBaseDropZoneOver = e;\\n }\\n\\n private fileOverAnother(e:any) {\\n this.hasAnotherDropZoneOver = e;\\n }\\n}\\n\"\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/prismjs-loader?lang=typescript!./demo/components/file-upload/simple-demo.ts\n ** module id = 373\n ** module chunks = 1\n **/","module.exports = \"\\n\\n
\\n\\n
\\n \\n
\\n\\n
\\n\\n
\\n\\n

Select files

\\n\\n
\\n Base drop zone\\n
\\n\\n
\\n Another drop zone\\n
\\n\\n Multiple\\n
\\n\\n Single\\n \\n
\\n\\n
\\n\\n

Upload queue

\\n

Queue length: {{ uploader.queue.length }}

\\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n
NameSizeProgressStatusActions
{{ item.file.name }}{{ item.file.size/1024/1024 | number:'.2' }} MB\\n
\\n
\\n
\\n
\\n \\n \\n \\n \\n \\n \\n \\n
\\n\\n
\\n
\\n Queue progress:\\n
\\n
\\n
\\n
\\n \\n \\n \\n
\\n\\n
\\n\\n
\\n\\n
\"\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./demo/components/file-upload/simple-demo.html\n ** module id = 374\n ** module chunks = 1\n **/","/// \n\nimport {Component, View, CORE_DIRECTIVES} from 'angular2/angular2';\n\nimport {tabs} from 'ng2-bootstrap/ng2-bootstrap';\nimport {SimpleDemo} from './file-upload/simple-demo';\n\nlet name = 'File Upload';\nlet doc = require('../../components/file-upload/readme.md');\n\nlet tabDesc:Array = [\n {\n heading: 'Simple',\n ts: require('!!prismjs?lang=typescript!./file-upload/simple-demo.ts'),\n html: require('!!prismjs?lang=markup!./file-upload/simple-demo.html'),\n js: require('!!prismjs?lang=javascript!./file-upload/file-catcher.js')\n }\n];\n\nlet tabsContent:string = ``;\ntabDesc.forEach(desc => {\n tabsContent += `\n \n
\n\n <${desc.heading.toLowerCase()}-demo *ng-if=\"currentHeading === '${desc.heading}'\">\n\n
\n\n
\n \n \n
\n
${desc.html}
\n
\n
\n \n
\n
${desc.ts}
\n
\n
\n \n
\n
${desc.js}
\n
\n
\n
\n
\n
\n
\n `;\n});\n\n@Component({\n selector: 'file-upload-section'\n})\n@View({\n template: `\n
\n
\n \n\n ${tabsContent}\n\n \n
\n\n
\n

API

\n
${doc}
\n
\n
\n `,\n directives: [SimpleDemo, tabs, CORE_DIRECTIVES]\n})\nexport class FileUploadSection {\n private currentHeading:string = 'Simple';\n\n private select(e:any) {\n if (e.heading) {\n this.currentHeading = e.heading;\n }\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./demo/components/file-upload-section.ts\n **/","/// \n\nimport {\n Component, View, EventEmitter,\n CORE_DIRECTIVES, FORM_DIRECTIVES, NgClass, NgStyle\n} from 'angular2/angular2';\n\nimport {FileSelect} from '../../../components/file-upload/file-select';\nimport {FileDrop} from '../../../components/file-upload/file-drop';\nimport {FileUploader} from '../../../components/file-upload/file-uploader';\n\n// webpack html imports\nlet template = require('./simple-demo.html');\n\n// const URL = '/api/';\nconst URL = 'https://evening-anchorage-3159.herokuapp.com/api/';\n\n@Component({\n selector: 'simple-demo'\n})\n@View({\n template: template,\n directives: [FileSelect, FileDrop, NgClass, NgStyle, CORE_DIRECTIVES, FORM_DIRECTIVES]\n})\nexport class SimpleDemo {\n private uploader:FileUploader = new FileUploader({url: URL});\n private hasBaseDropZoneOver:boolean = false;\n private hasAnotherDropZoneOver:boolean = false;\n\n private fileOverBase(e:any) {\n this.hasBaseDropZoneOver = e;\n }\n\n private fileOverAnother(e:any) {\n this.hasAnotherDropZoneOver = e;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./demo/components/file-upload/simple-demo.ts\n **/","import {\n Component, View,\n Directive, OnInit, OnDestroy,\n NgClass, ViewContainerRef, TemplateRef, Inject\n} from 'angular2/angular2';\n\n// todo: support template url\n@Component({\n selector: 'accordion, [accordion]',\n properties: ['templateUrl', 'closeOthers'],\n host: {\n '[class.panel-group]': 'true'\n }\n})\n@View({\n template: ``\n})\nexport class Accordion {\n private templateUrl:string;\n private closeOthers:boolean;\n private groups:Array = [];\n\n constructor() {\n }\n\n public closeOtherGroups(openGroup:AccordionGroup) {\n if (!this.closeOthers) {\n return;\n }\n\n this.groups.forEach((group:AccordionGroup) => {\n if (group !== openGroup) {\n group.isOpen = false;\n }\n });\n }\n\n public addGroup(group:AccordionGroup) {\n this.groups.push(group);\n }\n\n public removeGroup(group:AccordionGroup) {\n let index = this.groups.indexOf(group);\n if (index !== -1) {\n this.groups.slice(index, 1);\n }\n }\n}\n\n@Directive({\n selector: 'accordion-transclude, [accordion-transclude]',\n properties: ['accordionTransclude']\n})\nexport class AccordionTransclude implements OnInit {\n private accordionTransclude:TemplateRef;\n\n constructor(@Inject(ViewContainerRef) private viewRef:ViewContainerRef) {\n }\n\n onInit() {\n if (this.accordionTransclude) {\n this.viewRef.createEmbeddedView(this.accordionTransclude);\n }\n }\n}\n\nimport {Collapse} from '../collapse/collapse';\n// todo: support template url\n// todo: support custom `open class`\n@Component({\n selector: 'accordion-group, [accordion-group]',\n properties: ['templateUrl', 'heading', 'isOpen', 'isDisabled', 'panelClass'],\n host: {\n '[class.panel-open]': 'isOpen'\n }\n})\n@View({\n template: `\n
\n
\n

\n \n {{heading}}\n \n

\n
\n
\n
\n \n
\n
\n
\n `,\n directives: [Collapse, AccordionTransclude, NgClass]\n})\nexport class AccordionGroup implements OnInit, OnDestroy {\n private templateUrl:string;\n private panelClass:string;\n private _isOpen:boolean;\n\n public isDisabled:boolean;\n public headingTemplate:TemplateRef;\n\n constructor(private accordion:Accordion) {\n }\n\n onInit() {\n this.panelClass = this.panelClass || 'panel-default';\n this.accordion.addGroup(this);\n }\n\n onDestroy() {\n this.accordion.removeGroup(this);\n }\n\n public toggleOpen(event:MouseEvent) {\n event.preventDefault();\n if (!this.isDisabled) {\n this.isOpen = !this.isOpen;\n }\n }\n\n public get isOpen():boolean {\n return this._isOpen;\n }\n\n public set isOpen(value:boolean) {\n this._isOpen = value;\n if (value) {\n this.accordion.closeOtherGroups(this);\n }\n }\n}\n\n@Directive({\n selector: 'accordion-heading, [accordion-heading]'\n})\nexport class AccordionHeading {\n constructor(private group:AccordionGroup, private templateRef:TemplateRef) {\n group.headingTemplate = templateRef;\n }\n}\n\nexport const accordion:Array = [Accordion, AccordionGroup, AccordionHeading];\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/accordion/accordion.ts\n **/","import {\n Component, View,\n OnInit, EventEmitter,\n ElementRef, ViewContainerRef,\n NgIf, NgClass\n} from 'angular2/angular2';\n\n// TODO: templateUrl\n@Component({\n selector: 'alert',\n inputs: ['type', 'dismissible', 'dismissOnTimeout'],\n outputs: ['close']\n})\n@View({\n template: `\n
\n \n \n
\n `,\n directives: [NgIf, NgClass]\n})\nexport class Alert implements OnInit {\n public type:string;\n public close:EventEmitter = new EventEmitter();\n public templateUrl:string;\n public dismissOnTimeout:number;\n\n private closed:boolean;\n private closeable:boolean;\n private classes:Array = [];\n\n private set dismissible(v:boolean){\n this.closeable = v;\n }\n private get dismissible():boolean{\n return this.closeable;\n }\n\n constructor(public el:ElementRef) {\n this.closeable = this.closeable || el.nativeElement.getAttribute('(close)');\n }\n\n onInit() {\n this.type = this.type || 'warning';\n this.classes[0] = 'alert-' + (this.type || 'warning');\n if (this.closeable) {\n this.classes[1] = 'alert-dismissible';\n } else {\n this.classes.length = 1;\n }\n\n if (this.dismissOnTimeout) {\n let close = this.onClose.bind(this);\n setTimeout(close, this.dismissOnTimeout);\n }\n }\n\n // todo: mouse event + touch + pointer\n onClose() {\n this.close.next(this);\n this.closed = true;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/alert/alert.ts\n **/","import {\n Directive,\n Self, NgModel, Renderer, ElementRef,\n OnInit, ControlValueAccessor\n} from 'angular2/angular2';\n\n\n@Directive({\n selector: '[btn-checkbox][ng-model]',\n properties: ['btnCheckboxTrue', 'btnCheckboxFalse'],\n host: {\n '(click)': 'onClick()',\n '[class.active]': 'state'\n }\n})\nexport class ButtonCheckbox implements ControlValueAccessor, OnInit {\n private btnCheckboxTrue:any;\n private btnCheckboxFalse:any;\n\n private value:any;\n private state:boolean = false;\n\n constructor(@Self() public cd:NgModel) {\n // hack !\n cd.valueAccessor = this;\n }\n\n onInit() {\n this.toggle(this.trueValue === this.value);\n }\n\n private get trueValue() {\n return typeof this.btnCheckboxTrue !== 'undefined' ? this.btnCheckboxTrue : true;\n }\n\n private get falseValue() {\n return typeof this.btnCheckboxFalse !== 'undefined' ? this.btnCheckboxFalse : false;\n }\n\n toggle(state:boolean) {\n this.state = state;\n this.value = this.state ? this.trueValue : this.falseValue;\n }\n\n // view -> model\n onClick() {\n this.toggle(!this.state);\n this.cd.viewToModelUpdate(this.value);\n }\n\n // ControlValueAccessor\n // model -> view\n writeValue(value:any) {\n this.state = this.trueValue === value;\n this.value = value;\n }\n\n onChange = (_:any) => {};\n onTouched = () => {};\n\n registerOnChange(fn:(_:any) => {}):void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn:() => {}):void {\n this.onTouched = fn;\n }\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/buttons/button-checkbox.ts\n **/","import {\n Directive,\n Self, NgModel, ElementRef,\n ControlValueAccessor, OnInit\n} from 'angular2/angular2';\n\n\n@Directive({\n selector: '[btn-radio][ng-model]',\n properties: ['btnRadio', 'uncheckable'],\n host: {\n '(click)': 'onClick()',\n '[class.active]': 'isActive'\n }\n})\nexport class ButtonRadio implements ControlValueAccessor, OnInit {\n public btnRadio:string;\n public uncheckable:boolean;\n\n constructor(@Self() public cd:NgModel, public el:ElementRef) {\n // hack!\n cd.valueAccessor = this;\n }\n\n onInit() {\n this.uncheckable = typeof this.uncheckable !== 'undefined';\n }\n\n private get isActive() {\n return this.btnRadio === this.value;\n }\n\n // hack view model!\n public get value() {\n return this.cd.viewModel;\n }\n\n public set value(value) {\n this.cd.viewModel = value;\n // hack: host classes updated before value is set >.<\n if (this.isActive) {\n this.el.nativeElement.classList.add('active');\n } else {\n this.el.nativeElement.classList.remove('active');\n }\n }\n\n // view -> model\n onClick() {\n if (this.uncheckable && this.btnRadio === this.value) {\n return this.cd.viewToModelUpdate(null);\n }\n\n this.cd.viewToModelUpdate(this.btnRadio);\n }\n\n // ControlValueAccessor\n // model -> view\n writeValue(value:any) {\n this.value = value;\n }\n\n onChange = (_:any) => {};\n onTouched = () => {};\n\n registerOnChange(fn:(_:any) => {}):void {\n this.onChange = fn;\n }\n\n registerOnTouched(fn:() => {}):void {\n this.onTouched = fn;\n }\n\n}\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/buttons/button-radio.ts\n **/","import {\n Component, View,\n Directive, OnInit, OnDestroy,\n EventEmitter, ElementRef,\n CORE_DIRECTIVES, NgClass\n} from 'angular2/angular2';\n\nimport {Ng2BootstrapConfig, Ng2BootstrapTheme} from '../ng2-bootstrap-config';\n\nexport enum Direction {UNKNOWN, NEXT, PREV}\n// todo: add animate\n\nconst NAVIGATION:any = {\n [Ng2BootstrapTheme.BS4]: `\n\n \n Previous\n\n\n \n Next\n\n `,\n [Ng2BootstrapTheme.BS3]: `\n\n \n\n\n \n\n `\n};\n\n@Component({\n selector: 'carousel, [carousel]',\n properties: ['interval', 'noTransition', 'noPause', 'noWrap']\n})\n// todo:\n// (ng-swipe-right)=\"prev()\" (ng-swipe-left)=\"next()\"\n@View({\n template: `\n
\n
    \n
  1. \n
\n
\n ${NAVIGATION[Ng2BootstrapConfig.theme]}\n
\n `,\n directives: [CORE_DIRECTIVES, NgClass]\n})\nexport class Carousel implements OnDestroy {\n private noPause:boolean;\n private noWrap:boolean;\n private slides:Array = [];\n private currentInterval:any;\n private isPlaying:boolean;\n private destroyed:boolean = false;\n private currentSlide:Slide;\n private _interval:number;\n\n onDestroy() {\n this.destroyed = true;\n }\n\n public get interval():number {\n return this._interval;\n }\n\n public set interval(value:number) {\n this._interval = value;\n this.restartTimer();\n }\n\n public select(nextSlide:Slide, direction:Direction = Direction.UNKNOWN) {\n let nextIndex = nextSlide.index;\n if (direction === Direction.UNKNOWN) {\n direction = nextIndex > this.getCurrentIndex() ? Direction.NEXT : Direction.PREV;\n }\n\n // Prevent this user-triggered transition from occurring if there is already one in progress\n if (nextSlide && nextSlide !== this.currentSlide) {\n this.goNext(nextSlide, direction);\n }\n }\n\n private goNext(slide:Slide, direction:Direction) {\n if (this.destroyed) {\n return;\n }\n\n slide.direction = direction;\n slide.active = true;\n\n if (this.currentSlide) {\n this.currentSlide.direction = direction;\n this.currentSlide.active = false;\n }\n\n this.currentSlide = slide;\n\n // every time you change slides, reset the timer\n this.restartTimer();\n }\n\n private getSlideByIndex(index:number) {\n let len = this.slides.length;\n for (let i = 0; i < len; ++i) {\n if (this.slides[i].index === index) {\n return this.slides[i];\n }\n }\n }\n\n private getCurrentIndex() {\n return !this.currentSlide ? 0 : this.currentSlide.index;\n }\n\n private next() {\n let newIndex = (this.getCurrentIndex() + 1) % this.slides.length;\n\n if (newIndex === 0 && this.noWrap) {\n this.pause();\n return;\n }\n\n return this.select(this.getSlideByIndex(newIndex), Direction.NEXT);\n }\n\n private prev() {\n let newIndex = this.getCurrentIndex() - 1 < 0 ? this.slides.length - 1 : this.getCurrentIndex() - 1;\n\n if (this.noWrap && newIndex === this.slides.length - 1) {\n this.pause();\n return;\n }\n\n return this.select(this.getSlideByIndex(newIndex), Direction.PREV);\n }\n\n private restartTimer() {\n this.resetTimer();\n let interval = +this.interval;\n if (!isNaN(interval) && interval > 0) {\n this.currentInterval = setInterval(() => {\n let nInterval = +this.interval;\n if (this.isPlaying && !isNaN(this.interval) && nInterval > 0 && this.slides.length) {\n this.next();\n } else {\n this.pause();\n }\n }, interval);\n }\n }\n\n private resetTimer() {\n if (this.currentInterval) {\n clearInterval(this.currentInterval);\n this.currentInterval = null;\n }\n }\n\n public play() {\n if (!this.isPlaying) {\n this.isPlaying = true;\n this.restartTimer();\n }\n }\n\n public pause() {\n if (!this.noPause) {\n this.isPlaying = false;\n this.resetTimer();\n }\n }\n\n public addSlide(slide:Slide) {\n slide.index = this.slides.length;\n this.slides.push(slide);\n if (this.slides.length === 1 || slide.active) {\n this.select(this.slides[this.slides.length - 1]);\n if (this.slides.length === 1) {\n this.play();\n }\n } else {\n slide.active = false;\n }\n }\n\n public removeSlide(slide:Slide) {\n this.slides.splice(slide.index, 1);\n\n if (this.slides.length === 0) {\n this.currentSlide = null;\n return;\n }\n\n for (let i = 0; i < this.slides.length; i++) {\n this.slides[i].index = i;\n }\n }\n}\n\n@Component({\n selector: 'slide, [slide]',\n properties: ['direction', 'active', 'index'],\n host: {\n '[class.active]': 'active',\n '[class.item]': 'true',\n '[class.carousel-item]': 'true'\n }\n})\n@View({\n template: `\n
\n \n
\n `,\n directives: [NgClass]\n})\nexport class Slide implements OnInit, OnDestroy {\n public active:boolean;\n public direction:Direction;\n public index:number;\n\n constructor(private carousel:Carousel) {\n }\n\n onInit() {\n this.carousel.addSlide(this);\n }\n\n onDestroy() {\n this.carousel.removeSlide(this);\n }\n}\n\nexport const carousel:Array = [Carousel, Slide];\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/carousel/carousel.ts\n **/","import {Dropdown} from './dropdown';\nimport {DropdownMenu} from './dropdown-menu';\nimport {DropdownToggle} from './dropdown-toggle';\nexport const dropdown: Array = [Dropdown, DropdownMenu, DropdownToggle];\n// , KeyboardNav\n\n\n\n/** WEBPACK FOOTER **\n ** ./~/ng2-bootstrap/components/dropdown/index.ts\n **/","import {\n Component, View, Directive,\n OnInit, EventEmitter,\n ElementRef,\n ControlValueAccessor,\n CORE_DIRECTIVES, NgClass,\n Self, NgModel, Renderer,\n ViewEncapsulation, ViewRef,\n ViewContainerRef, TemplateRef, NgFor, ComponentRef\n} from 'angular2/angular2';\n\nimport {IAttribute} from '../common';\n\n// todo: extract base functionality classes\n// todo: use lodash#default for configuration\n// todo: expose an option to change default configuration\n// todo: solve problem with .pagination-sm>li:first-child>a and