diff options
Diffstat (limited to 'vnfmarket/common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js')
-rw-r--r-- | vnfmarket/common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js b/vnfmarket/common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js new file mode 100644 index 00000000..ce9ad51c --- /dev/null +++ b/vnfmarket/common/thirdparty/angular-translate-loader-static-files/angular-translate-loader-static-files.min.js @@ -0,0 +1,6 @@ +/*! + * angular-translate - v2.14.0 - 2017-02-11 + * + * Copyright (c) 2017 The angular-translate team, Pascal Precht; Licensed MIT + */ +!function(a,b){"function"==typeof define&&define.amd?define([],function(){return b()}):"object"==typeof exports?module.exports=b():b()}(this,function(){function a(a,b){"use strict";return function(c){if(!(c&&(angular.isArray(c.files)||angular.isString(c.prefix)&&angular.isString(c.suffix))))throw new Error("Couldn't load static files, no files and prefix or suffix specified!");c.files||(c.files=[{prefix:c.prefix,suffix:c.suffix}]);for(var d=function(d){if(!d||!angular.isString(d.prefix)||!angular.isString(d.suffix))throw new Error("Couldn't load static file, no prefix or suffix specified!");var e=[d.prefix,c.key,d.suffix].join("");return angular.isObject(c.fileMap)&&c.fileMap[e]&&(e=c.fileMap[e]),b(angular.extend({url:e,method:"GET"},c.$http)).then(function(a){return a.data},function(){return a.reject(c.key)})},e=[],f=c.files.length,g=0;g<f;g++)e.push(d({prefix:c.files[g].prefix,key:c.key,suffix:c.files[g].suffix}));return a.all(e).then(function(a){for(var b=a.length,c={},d=0;d<b;d++)for(var e in a[d])c[e]=a[d][e];return c})}}return a.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",a),a.displayName="$translateStaticFilesLoader","pascalprecht.translate"});
\ No newline at end of file |