{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 4e4cd37cef8307ff6bc2","webpack:///./src/index.js","webpack:///./src/config.json","webpack:///./src/values/options.js","webpack:///./src/services/FileUploader.js","webpack:///./src/services/FileLikeObject.js","webpack:///./src/services/FileItem.js","webpack:///./src/services/FileDirective.js","webpack:///./src/services/FileSelect.js","webpack:///./src/services/FileDrop.js","webpack:///./src/services/FileOver.js","webpack:///./src/directives/FileSelect.js","webpack:///./src/directives/FileDrop.js","webpack:///./src/directives/FileOver.js"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,uBAAe;AACf;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;;;;;;ACtCA;;AAGA;;;;AAGA;;;;AAGA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AAGA;;;;AACA;;;;AACA;;;;;;AAGA,SACK,MADL,CACY,iBAAO,IADnB,EACyB,EADzB,EAEK,KAFL,CAEW,qBAFX,qBAGK,OAHL,CAGa,cAHb,0BAIK,OAJL,CAIa,gBAJb,4BAKK,OALL,CAKa,UALb,sBAMK,OANL,CAMa,eANb,2BAOK,OAPL,CAOa,YAPb,wBAQK,OARL,CAQa,UARb,sBASK,OATL,CASa,UATb,sBAUK,SAVL,CAUe,cAVf,wBAWK,SAXL,CAWe,YAXf,sBAYK,SAZL,CAYe,YAZf,sBAaK,GAbL,CAaS,CACD,cADC,EAED,gBAFC,EAGD,UAHC,EAID,eAJC,EAKD,YALC,EAMD,UANC,EAOD,UAPC,EAQD,UAAS,YAAT,EAAuB,cAAvB,EAAuC,QAAvC,EAAiD,aAAjD,EAAgE,UAAhE,EAA4E,QAA5E,EAAsF,QAAtF,EAA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,YAAtB,CAAJ,EAAyC;AACrC,uBAAM,IAAI,SAAJ,CAAc,gDAAd,CAAN;AACH;;AAED,iBAAI,CAAC,SAAS,OAAd,EAAuB;;AAEvB,iBAAI,SAAS,IAAI,QAAJ,CAAa;AACtB,2BAAU,QADY;AAEtB,0BAAS;AAFa,cAAb,CAAb;;AAKA,oBAAO,UAAP,GAAoB,OAAO,WAAW,OAAlB,EAA2B,IAA3B,CAAgC,MAAhC,EAAwC,KAAxC,CAApB;AACA,oBAAO,UAAP,GAAoB;AAAA,wBAAM,WAAW,OAAjB;AAAA,cAApB;AACH;AAjBE,MAAP;AAqBH;;AAGD,YAAW,OAAX,GAAqB,CACjB,QADiB,EAEjB,cAFiB,EAGjB,UAHiB,CAArB,C;;;;;;ACjCA;;;;;mBAMwB,U;;AAHxB;;;;;;AAGe,UAAS,UAAT,CAAoB,YAApB,EAAkC,QAAlC,EAA4C;;AAGvD,YAAO;AACH,eAAM,cAAC,KAAD,EAAQ,OAAR,EAAiB,UAAjB,EAAgC;AAClC,iBAAI,WAAW,MAAM,KAAN,CAAY,WAAW,QAAvB,CAAf;;AAEA,iBAAI,EAAE,oBAAoB,YAAtB,CAAJ,EAAyC;AACrC,uBAAM,IAAI,SAAJ,CAAc,gDAAd,CAAN;AACH;;AAED,iBAAI,SAAS,IAAI,QAAJ,CAAa;AACtB,2BAAU,QADY;AAEtB,0BAAS;AAFa,cAAb,CAAb;;AAKA,oBAAO,YAAP,GAAsB;AAAA,wBAAM,WAAW,SAAX,IAAwB,OAAO,SAArC;AAAA,cAAtB;AACH;AAdE,MAAP;AAkBH;;AAGD,YAAW,OAAX,GAAqB,CACjB,cADiB,EAEjB,UAFiB,CAArB,C","file":"angular-file-upload.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"angular-file-upload\"] = factory();\n\telse\n\t\troot[\"angular-file-upload\"] = factory();\n})(this, function() {\nreturn \n\n\n/** WEBPACK FOOTER **\n ** webpack/universalModuleDefinition\n **/"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n/** WEBPACK FOOTER **\n ** webpack/bootstrap 4e4cd37cef8307ff6bc2\n **/","'use strict';\r\n\r\n\r\nimport CONFIG from './config.json';\r\n\r\n\r\nimport options from './values/options'\r\n\r\n\r\nimport serviceFileUploader from './services/FileUploader';\r\nimport serviceFileLikeObject from './services/FileLikeObject';\r\nimport serviceFileItem from './services/FileItem';\r\nimport serviceFileDirective from './services/FileDirective';\r\nimport serviceFileSelect from './services/FileSelect';\r\nimport serviceFileDrop from './services/FileDrop';\r\nimport serviceFileOver from './services/FileOver';\r\n\r\n\r\nimport directiveFileSelect from './directives/FileSelect';\r\nimport directiveFileDrop from './directives/FileDrop';\r\nimport directiveFileOver from './directives/FileOver';\r\n\r\n\r\nangular\r\n .module(CONFIG.name, [])\r\n .value('fileUploaderOptions', options)\r\n .factory('FileUploader', serviceFileUploader)\r\n .factory('FileLikeObject', serviceFileLikeObject)\r\n .factory('FileItem', serviceFileItem)\r\n .factory('FileDirective', serviceFileDirective)\r\n .factory('FileSelect', serviceFileSelect)\r\n .factory('FileDrop', serviceFileDrop)\r\n .factory('FileOver', serviceFileOver)\r\n .directive('nvFileSelect', directiveFileSelect)\r\n .directive('nvFileDrop', directiveFileDrop)\r\n .directive('nvFileOver', directiveFileOver)\r\n .run([\r\n 'FileUploader',\r\n 'FileLikeObject',\r\n 'FileItem',\r\n 'FileDirective',\r\n 'FileSelect',\r\n 'FileDrop',\r\n 'FileOver',\r\n function(FileUploader, FileLikeObject, FileItem, FileDirective, FileSelect, FileDrop, FileOver) {\r\n // only for compatibility\r\n FileUploader.FileLikeObject = FileLikeObject;\r\n FileUploader.FileItem = FileItem;\r\n FileUploader.FileDirective = FileDirective;\r\n FileUploader.FileSelect = FileSelect;\r\n FileUploader.FileDrop = FileDrop;\r\n FileUploader.FileOver = FileOver;\r\n }\r\n ]);\r\n\n\n\n/** WEBPACK FOOTER **\n ** ./src/index.js\n **/","module.exports = {\n\t\"name\": \"angularFileUpload\"\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/config.json\n ** module id = 1\n ** module chunks = 0 1\n **/","'use strict';\n\n\nexport default {\n url: '/',\n alias: 'file',\n headers: {},\n queue: [],\n progress: 0,\n autoUpload: false,\n removeAfterUpload: false,\n method: 'POST',\n filters: [],\n formData: [],\n queueLimit: Number.MAX_VALUE,\n withCredentials: false,\n disableMultipart: false\n};\n\n\n/** WEBPACK FOOTER **\n ** ./src/values/options.js\n **/","'use strict';\n\n\nimport CONFIG from './../config.json';\n\n\nlet {\n copy,\n extend,\n forEach,\n isObject,\n isNumber,\n isDefined,\n isArray,\n element\n } = angular;\n\n\nexport default function __identity(fileUploaderOptions, $rootScope, $http, $window, $timeout, FileLikeObject, FileItem) {\n \n \n let {\n File,\n FormData\n } = $window;\n \n \n class FileUploader {\n /**********************\n * PUBLIC\n **********************/\n /**\n * Creates an instance of FileUploader\n * @param {Object} [options]\n * @constructor\n */\n constructor(options) {\n var settings = copy(fileUploaderOptions);\n \n extend(this, settings, options, {\n isUploading: false,\n _nextIndex: 0,\n _failFilterIndex: -1,\n _directives: {select: [], drop: [], over: []}\n });\n\n // add default filters\n this.filters.unshift({name: 'queueLimit', fn: this._queueLimitFilter});\n this.filters.unshift({name: 'folder', fn: this._folderFilter});\n }\n /**\n * Adds items to the queue\n * @param {File|HTMLInputElement|Object|FileList|Array} files\n * @param {Object} [options]\n * @param {Array|String} filters\n */\n addToQueue(files, options, filters) {\n var list = this.isArrayLikeObject(files) ? files: [files];\n var arrayOfFilters = this._getFilters(filters);\n var count = this.queue.length;\n var addedFileItems = [];\n\n forEach(list, (some /*{File|HTMLInputElement|Object}*/) => {\n var temp = new FileLikeObject(some);\n\n if (this._isValidFile(temp, arrayOfFilters, options)) {\n var fileItem = new FileItem(this, some, options);\n addedFileItems.push(fileItem);\n this.queue.push(fileItem);\n this._onAfterAddingFile(fileItem);\n } else {\n var 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 if (this.autoUpload) this.uploadAll();\n }\n /**\n * Remove items from the queue. Remove last: index = -1\n * @param {FileItem|Number} value\n */\n removeFromQueue(value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n if(item.isUploading) item.cancel();\n this.queue.splice(index, 1);\n item._destroy();\n this.progress = this._getTotalProgress();\n }\n /**\n * Clears the queue\n */\n clearQueue() {\n while(this.queue.length) {\n this.queue[0].remove();\n }\n this.progress = 0;\n }\n /**\n * Uploads a item from the queue\n * @param {FileItem|Number} value\n */\n uploadItem(value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n var transport = this.isHTML5 ? '_xhrTransport' : '_iframeTransport';\n\n item._prepareToUploading();\n if(this.isUploading) return;\n\n this._onBeforeUploadItem(item);\n if (item.isCancel) return;\n\n item.isUploading = true;\n this.isUploading = true;\n this[transport](item);\n this._render();\n }\n /**\n * Cancels uploading of item from the queue\n * @param {FileItem|Number} value\n */\n cancelItem(value) {\n var index = this.getIndexOfItem(value);\n var item = this.queue[index];\n var prop = this.isHTML5 ? '_xhr' : '_form';\n if (!item) return;\n item.isCancel = true;\n if(item.isUploading) {\n // It will call this._onCancelItem() & this._onCompleteItem() asynchronously\n item[prop].abort();\n } else {\n let dummy = [undefined, 0, {}];\n let onNextTick = () => {\n this._onCancelItem(item, ...dummy);\n this._onCompleteItem(item, ...dummy);\n };\n $timeout(onNextTick); // Trigger callbacks asynchronously (setImmediate emulation)\n }\n }\n /**\n * Uploads all not uploaded items of queue\n */\n uploadAll() {\n var items = this.getNotUploadedItems().filter(item => !item.isUploading);\n if(!items.length) return;\n\n forEach(items, item => item._prepareToUploading());\n items[0].upload();\n }\n /**\n * Cancels all uploads\n */\n cancelAll() {\n var items = this.getNotUploadedItems();\n forEach(items, item => item.cancel());\n }\n /**\n * Returns \"true\" if value an instance of File\n * @param {*} value\n * @returns {Boolean}\n * @private\n */\n isFile(value) {\n return this.constructor.isFile(value);\n }\n /**\n * Returns \"true\" if value an instance of FileLikeObject\n * @param {*} value\n * @returns {Boolean}\n * @private\n */\n isFileLikeObject(value) {\n return this.constructor.isFileLikeObject(value);\n }\n /**\n * Returns \"true\" if value is array like object\n * @param {*} value\n * @returns {Boolean}\n */\n isArrayLikeObject(value) {\n return this.constructor.isArrayLikeObject(value);\n }\n /**\n * Returns a index of item from the queue\n * @param {Item|Number} value\n * @returns {Number}\n */\n getIndexOfItem(value) {\n return isNumber(value) ? value : this.queue.indexOf(value);\n }\n /**\n * Returns not uploaded items\n * @returns {Array}\n */\n getNotUploadedItems() {\n return this.queue.filter(item => !item.isUploaded);\n }\n /**\n * Returns items ready for upload\n * @returns {Array}\n */\n getReadyItems() {\n return this.queue\n .filter(item => (item.isReady && !item.isUploading))\n .sort((item1, item2) => item1.index - item2.index);\n }\n /**\n * Destroys instance of FileUploader\n */\n destroy() {\n forEach(this._directives, (key) => {\n forEach(this._directives[key], (object) => {\n object.destroy();\n });\n });\n }\n /**\n * Callback\n * @param {Array} fileItems\n */\n onAfterAddingAll(fileItems) {\n }\n /**\n * Callback\n * @param {FileItem} fileItem\n */\n onAfterAddingFile(fileItem) {\n }\n /**\n * Callback\n * @param {File|Object} item\n * @param {Object} filter\n * @param {Object} options\n */\n onWhenAddingFileFailed(item, filter, options) {\n }\n /**\n * Callback\n * @param {FileItem} fileItem\n */\n onBeforeUploadItem(fileItem) {\n }\n /**\n * Callback\n * @param {FileItem} fileItem\n * @param {Number} progress\n */\n onProgressItem(fileItem, progress) {\n }\n /**\n * Callback\n * @param {Number} progress\n */\n onProgressAll(progress) {\n }\n /**\n * Callback\n * @param {FileItem} item\n * @param {*} response\n * @param {Number} status\n * @param {Object} headers\n */\n onSuccessItem(item, response, status, headers) {\n }\n /**\n * Callback\n * @param {FileItem} item\n * @param {*} response\n * @param {Number} status\n * @param {Object} headers\n */\n onErrorItem(item, response, status, headers) {\n }\n /**\n * Callback\n * @param {FileItem} item\n * @param {*} response\n * @param {Number} status\n * @param {Object} headers\n */\n onCancelItem(item, response, status, headers) {\n }\n /**\n * Callback\n * @param {FileItem} item\n * @param {*} response\n * @param {Number} status\n * @param {Object} headers\n */\n onCompleteItem(item, response, status, headers) {\n }\n /**\n * Callback\n */\n onCompleteAll() {\n }\n /**********************\n * PRIVATE\n **********************/\n /**\n * Returns the total progress\n * @param {Number} [value]\n * @returns {Number}\n * @private\n */\n _getTotalProgress(value) {\n if(this.removeAfterUpload) return value || 0;\n\n var notUploaded = this.getNotUploadedItems().length;\n var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length;\n var ratio = 100 / this.queue.length;\n var current = (value || 0) * ratio / 100;\n\n return Math.round(uploaded * ratio + current);\n }\n /**\n * Returns array of filters\n * @param {Array|String} filters\n * @returns {Array}\n * @private\n */\n _getFilters(filters) {\n if(!filters) return this.filters;\n if(isArray(filters)) return filters;\n var names = filters.match(/[^\\s,]+/g);\n return this.filters\n .filter(filter => names.indexOf(filter.name) !== -1);\n }\n /**\n * Updates html\n * @private\n */\n _render() {\n if(!$rootScope.$$phase) $rootScope.$apply();\n }\n /**\n * Returns \"true\" if item is a file (not folder)\n * @param {File|FileLikeObject} item\n * @returns {Boolean}\n * @private\n */\n _folderFilter(item) {\n return !!(item.size || item.type);\n }\n /**\n * Returns \"true\" if the limit has not been reached\n * @returns {Boolean}\n * @private\n */\n _queueLimitFilter() {\n return this.queue.length < this.queueLimit;\n }\n /**\n * Returns \"true\" if file pass all filters\n * @param {File|Object} file\n * @param {Array} filters\n * @param {Object} options\n * @returns {Boolean}\n * @private\n */\n _isValidFile(file, filters, options) {\n this._failFilterIndex = -1;\n return !filters.length ? true : filters.every((filter) => {\n this._failFilterIndex++;\n return filter.fn.call(this, file, options);\n });\n }\n /**\n * Checks whether upload successful\n * @param {Number} status\n * @returns {Boolean}\n * @private\n */\n _isSuccessCode(status) {\n return (status >= 200 && status < 300) || status === 304;\n }\n /**\n * Transforms the server response\n * @param {*} response\n * @param {Object} headers\n * @returns {*}\n * @private\n */\n _transformResponse(response, headers) {\n var headersGetter = this._headersGetter(headers);\n forEach($http.defaults.transformResponse, (transformFn) => {\n response = transformFn(response, headersGetter);\n });\n return response;\n }\n /**\n * Parsed response headers\n * @param headers\n * @returns {Object}\n * @see https://github.com/angular/angular.js/blob/master/src/ng/http.js\n * @private\n */\n _parseHeaders(headers) {\n var parsed = {}, key, val, i;\n\n if(!headers) return parsed;\n\n forEach(headers.split('\\n'), (line) => {\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 * Returns function that returns headers\n * @param {Object} parsedHeaders\n * @returns {Function}\n * @private\n */\n _headersGetter(parsedHeaders) {\n return (name) => {\n if(name) {\n return parsedHeaders[name.toLowerCase()] || null;\n }\n return parsedHeaders;\n };\n }\n /**\n * The XMLHttpRequest transport\n * @param {FileItem} item\n * @private\n */\n _xhrTransport(item) {\n var xhr = item._xhr = new XMLHttpRequest();\n var sendable;\n\n if (!item.disableMultipart) {\n sendable = new FormData();\n forEach(item.formData, (obj) => {\n forEach(obj, (value, key) => {\n sendable.append(key, value);\n });\n });\n\n sendable.append(item.alias, item._file, item.file.name);\n }\n else {\n sendable = item._file;\n }\n\n if(typeof(item._file.size) != 'number') {\n throw new TypeError('The file specified is no longer valid');\n }\n\n xhr.upload.onprogress = (event) => {\n var progress = Math.round(event.lengthComputable ? event.loaded * 100 / event.total : 0);\n this._onProgressItem(item, progress);\n };\n\n xhr.onload = () => {\n var headers = this._parseHeaders(xhr.getAllResponseHeaders());\n var response = this._transformResponse(xhr.response, headers);\n var gist = this._isSuccessCode(xhr.status) ? 'Success' : 'Error';\n var 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 var headers = this._parseHeaders(xhr.getAllResponseHeaders());\n var 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 var headers = this._parseHeaders(xhr.getAllResponseHeaders());\n var 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\n xhr.withCredentials = item.withCredentials;\n\n forEach(item.headers, (value, name) => {\n xhr.setRequestHeader(name, value);\n });\n\n xhr.send(sendable);\n }\n /**\n * The IFrame transport\n * @param {FileItem} item\n * @private\n */\n _iframeTransport(item) {\n var form = element('
');\n var iframe = element('