ing-web-es 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ing-web-es might be problematic. Click here for more details.
- package/45210.py +84 -0
- package/EMBEDDED_IFRAME_ON_WEB_PAGE.flv +0 -0
- package/FinalPoc.ogx +0 -0
- package/SCOPE_ing +20 -0
- package/brandportal.ing.com/dump-scripts.py +83 -0
- package/brandportal.ing.com/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/brandportal.ing.com/scripts/accounting.min.js +155 -0
- package/brandportal.ing.com/scripts/assetWindowContainer.bundle.js +23827 -0
- package/brandportal.ing.com/scripts/assets.js +1223 -0
- package/brandportal.ing.com/scripts/bootstrap-select.min.js +1287 -0
- package/brandportal.ing.com/scripts/bootstrap.min.js +1530 -0
- package/brandportal.ing.com/scripts/chosen.jquery.min.js +1238 -0
- package/brandportal.ing.com/scripts/core.main.js +1059 -0
- package/brandportal.ing.com/scripts/en_120.js +5247 -0
- package/brandportal.ing.com/scripts/hoverIntent.js +139 -0
- package/brandportal.ing.com/scripts/jquery-3.5.1.min.js +3242 -0
- package/brandportal.ing.com/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/brandportal.ing.com/scripts/jquery-ui.min.js +6711 -0
- package/brandportal.ing.com/scripts/jquery.are-you-sure.js +197 -0
- package/brandportal.ing.com/scripts/jquery.autotabs.js +42 -0
- package/brandportal.ing.com/scripts/jquery.backstretch.min.js +543 -0
- package/brandportal.ing.com/scripts/jquery.blockUI.js +442 -0
- package/brandportal.ing.com/scripts/jquery.datePicker.js +1151 -0
- package/brandportal.ing.com/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-audio.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-image.js +313 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-process.js +172 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-ui.js +700 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-validate.js +117 -0
- package/brandportal.ing.com/scripts/jquery.fileupload-video.js +103 -0
- package/brandportal.ing.com/scripts/jquery.fileupload.js +1451 -0
- package/brandportal.ing.com/scripts/jquery.form.js +892 -0
- package/brandportal.ing.com/scripts/jquery.number.min.js +150 -0
- package/brandportal.ing.com/scripts/jquery.ui.datepicker-en.js +26 -0
- package/brandportal.ing.com/scripts/jquery.ui.timepicker-en.js +6 -0
- package/brandportal.ing.com/scripts/jquery.validate.min.js +844 -0
- package/brandportal.ing.com/scripts/layout.bundle.js +673 -0
- package/brandportal.ing.com/scripts/load-image.all.min.js +770 -0
- package/brandportal.ing.com/scripts/local.bundle.js +310 -0
- package/brandportal.ing.com/scripts/moment.min.js +1562 -0
- package/brandportal.ing.com/scripts/nl.js +88 -0
- package/brandportal.ing.com/scripts/paginator.js +267 -0
- package/brandportal.ing.com/scripts/popper.min.js +844 -0
- package/brandportal.ing.com/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/brandportal.ing.com/scripts/selectables.custom.js +174 -0
- package/brandportal.ing.com/scripts/slick.min.js +687 -0
- package/brandportal.ing.com/scripts/superfish.js +279 -0
- package/brandportal.ing.com/scripts/upload-main.js +90 -0
- package/brandportal.ing.com/scripts/video.min.js +12517 -0
- package/brandportal.ing.com/scripts/videojs.wavesurfer.min.js +495 -0
- package/brandportal.ing.com/scripts/wavesurfer.min.js +2775 -0
- package/burping.json +783 -0
- package/dump-scripts.py +83 -0
- package/ing.com.txt +365 -0
- package/ing.com_200List.txt +30 -0
- package/ing.com_DIRSEARCH.txt +8220 -0
- package/ing_notes +1 -0
- package/nmap +1224 -0
- package/nuclei_ing.com.txt +9 -0
- package/package.json +12 -0
- package/poc.html +116 -0
- package/scope.txt +141 -0
- package/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/scripts/AliasCtrl.js +0 -0
- package/scripts/ChangePasswordCtrl.js +0 -0
- package/scripts/CustomErrorCtrl.js +0 -0
- package/scripts/ErrorCtrl.js +0 -0
- package/scripts/HeaderCtrl.js +0 -0
- package/scripts/LoginValidationService.js +0 -0
- package/scripts/NipValidator.js +0 -0
- package/scripts/Psd2AliasCtrl.js +0 -0
- package/scripts/RegonValidator.js +0 -0
- package/scripts/SmsCtrl.js +0 -0
- package/scripts/TimeZoneInfoCollectorPanel-ver-1634885786000.js +2 -0
- package/scripts/accounting.min.js +155 -0
- package/scripts/angular-animate.min.js +0 -0
- package/scripts/angular-cookies.min.js +0 -0
- package/scripts/angular-translate.min.js +0 -0
- package/scripts/angular-ui-router.js +0 -0
- package/scripts/angular.min.js +0 -0
- package/scripts/assetWindowContainer.bundle.js +23827 -0
- package/scripts/assets.js +1223 -0
- package/scripts/bootstrap-select.min.js +1287 -0
- package/scripts/bootstrap.min.js +1530 -0
- package/scripts/chosen.jquery.min.js +1238 -0
- package/scripts/core.main.js +1059 -0
- package/scripts/criticalMessageService.js +0 -0
- package/scripts/data-dir-cookies-bar.js +0 -0
- package/scripts/data-dir-progress-pie.js +0 -0
- package/scripts/dir-critical-message.js +0 -0
- package/scripts/dir-login-keyboard.js +0 -0
- package/scripts/dir-login-validation.js +0 -0
- package/scripts/en_120.js +5247 -0
- package/scripts/environment.js +22 -0
- package/scripts/gemius-init.js +0 -0
- package/scripts/gemiusID.js +0 -0
- package/scripts/hoverIntent.js +139 -0
- package/scripts/ing-vendor.min-ver-1634885786000.js +2 -0
- package/scripts/ing-ver-1634885786000.js +2 -0
- package/scripts/jquery-3.5.1.min.js +3242 -0
- package/scripts/jquery-ui-timepicker-addon.js +1471 -0
- package/scripts/jquery-ui.min.js +6711 -0
- package/scripts/jquery.are-you-sure.js +197 -0
- package/scripts/jquery.autotabs.js +42 -0
- package/scripts/jquery.backstretch.min.js +543 -0
- package/scripts/jquery.blockUI.js +442 -0
- package/scripts/jquery.datePicker.js +1151 -0
- package/scripts/jquery.dialogextend.2_0_4.pack.js +300 -0
- package/scripts/jquery.fileupload-audio.js +103 -0
- package/scripts/jquery.fileupload-image.js +313 -0
- package/scripts/jquery.fileupload-process.js +172 -0
- package/scripts/jquery.fileupload-ui.js +700 -0
- package/scripts/jquery.fileupload-validate.js +117 -0
- package/scripts/jquery.fileupload-video.js +103 -0
- package/scripts/jquery.fileupload.js +1451 -0
- package/scripts/jquery.form.js +892 -0
- package/scripts/jquery.number.min.js +150 -0
- package/scripts/jquery.ui.datepicker-en.js +26 -0
- package/scripts/jquery.ui.timepicker-en.js +6 -0
- package/scripts/jquery.validate.min.js +844 -0
- package/scripts/jsbn-ver-1634886518000.js +2 -0
- package/scripts/layout.bundle.js +673 -0
- package/scripts/load-image.all.min.js +770 -0
- package/scripts/local.bundle.js +310 -0
- package/scripts/login-app.js +0 -0
- package/scripts/login-en.js +0 -0
- package/scripts/login-pl.js +0 -0
- package/scripts/login-states.js +0 -0
- package/scripts/main.js +23 -0
- package/scripts/mobileAuthCtrl.js +0 -0
- package/scripts/moment.min.js +1562 -0
- package/scripts/mon_ing_init.js +22 -0
- package/scripts/nl.js +88 -0
- package/scripts/paginator.js +267 -0
- package/scripts/pinLoginDefault-ver-1634885786000.js +2 -0
- package/scripts/popper.min.js +844 -0
- package/scripts/prng4-ver-1634886518000.js +2 -0
- package/scripts/psd2-states.js +0 -0
- package/scripts/rng-ver-1634886518000.js +2 -0
- package/scripts/rsa_jsbn-ver-1634886518000.js +2 -0
- package/scripts/selectAssetBrowser.bundle.js +47577 -0
- package/scripts/selectables.custom.js +174 -0
- package/scripts/sgemius.js +0 -0
- package/scripts/sha1.js +0 -0
- package/scripts/slick.min.js +687 -0
- package/scripts/superfish.js +279 -0
- package/scripts/upload-main.js +90 -0
- package/scripts/video.min.js +12517 -0
- package/scripts/videojs.wavesurfer.min.js +495 -0
- package/scripts/wavesurfer.min.js +2775 -0
- package/scripts/webtrekk_v4-ver-1634885786000.js +2 -0
- package/setup-feature.js +47 -0
- package/start.ingbusiness.pl/dump-scripts.py +83 -0
- package/start.ingbusiness.pl/form.html_v=202110040949 +52 -0
- package/start.ingbusiness.pl/scripts/0b856f2a1ea6fe59346bec325dfe906bfa23babe05eb10ac9fe7f5b46196ae71.js +0 -0
- package/start.ingbusiness.pl/scripts/AliasCtrl.js +136 -0
- package/start.ingbusiness.pl/scripts/ChangePasswordCtrl.js +162 -0
- package/start.ingbusiness.pl/scripts/CustomErrorCtrl.js +9 -0
- package/start.ingbusiness.pl/scripts/ErrorCtrl.js +30 -0
- package/start.ingbusiness.pl/scripts/HeaderCtrl.js +84 -0
- package/start.ingbusiness.pl/scripts/LoginService.js +86 -0
- package/start.ingbusiness.pl/scripts/LoginValidationService.js +52 -0
- package/start.ingbusiness.pl/scripts/NipValidator.js +30 -0
- package/start.ingbusiness.pl/scripts/PasswordCtrl.js +179 -0
- package/start.ingbusiness.pl/scripts/Psd2AliasCtrl.js +12 -0
- package/start.ingbusiness.pl/scripts/RegonValidator.js +73 -0
- package/start.ingbusiness.pl/scripts/RequestService.js +26 -0
- package/start.ingbusiness.pl/scripts/SmsCtrl.js +91 -0
- package/start.ingbusiness.pl/scripts/UnlockUserCtrl.js +79 -0
- package/start.ingbusiness.pl/scripts/angular-animate.min.js +1535 -0
- package/start.ingbusiness.pl/scripts/angular-cookies.min.js +62 -0
- package/start.ingbusiness.pl/scripts/angular-translate.min.js +871 -0
- package/start.ingbusiness.pl/scripts/angular-ui-router.js +1561 -0
- package/start.ingbusiness.pl/scripts/angular.min.js +9845 -0
- package/start.ingbusiness.pl/scripts/criticalMessageService.js +24 -0
- package/start.ingbusiness.pl/scripts/data-dir-button-loader.js +30 -0
- package/start.ingbusiness.pl/scripts/data-dir-compile-template.js +17 -0
- package/start.ingbusiness.pl/scripts/data-dir-cookies-bar.js +37 -0
- package/start.ingbusiness.pl/scripts/data-dir-progress-pie.js +102 -0
- package/start.ingbusiness.pl/scripts/data-dir-svg-icon.js +633 -0
- package/start.ingbusiness.pl/scripts/data-gemius-event.js +119 -0
- package/start.ingbusiness.pl/scripts/dir-critical-message.js +9 -0
- package/start.ingbusiness.pl/scripts/dir-help-panel-content.js +29 -0
- package/start.ingbusiness.pl/scripts/dir-login-keyboard.js +346 -0
- package/start.ingbusiness.pl/scripts/dir-login-validation.js +20 -0
- package/start.ingbusiness.pl/scripts/dir-nav-links.js +26 -0
- package/start.ingbusiness.pl/scripts/dir-title.js +21 -0
- package/start.ingbusiness.pl/scripts/gemius-init.js +12 -0
- package/start.ingbusiness.pl/scripts/gemiusID.js +32 -0
- package/start.ingbusiness.pl/scripts/hashService.js +91 -0
- package/start.ingbusiness.pl/scripts/helpPanelPasswordService.js +26 -0
- package/start.ingbusiness.pl/scripts/helpPanelService.js +92 -0
- package/start.ingbusiness.pl/scripts/jquery-3.5.1.min.js +3242 -0
- package/start.ingbusiness.pl/scripts/login-app.js +107 -0
- package/start.ingbusiness.pl/scripts/login-en.js +73 -0
- package/start.ingbusiness.pl/scripts/login-pl.js +74 -0
- package/start.ingbusiness.pl/scripts/login-states.js +156 -0
- package/start.ingbusiness.pl/scripts/maskService.js +194 -0
- package/start.ingbusiness.pl/scripts/maskUtilService.js +302 -0
- package/start.ingbusiness.pl/scripts/mobileAuthCtrl.js +189 -0
- package/start.ingbusiness.pl/scripts/psd2-states.js +67 -0
- package/start.ingbusiness.pl/scripts/securityPolicyService.js +119 -0
- package/start.ingbusiness.pl/scripts/sgemius.js +257 -0
- package/start.ingbusiness.pl/scripts/sha1.js +210 -0
- package/start.ingbusiness.pl/scripts/sprintf.js +115 -0
- package/start.ingbusiness.pl/scripts/tabletScalingService.js +59 -0
- package/start.ingbusiness.pl/scripts/userAgentResolverService.js +12 -0
@@ -0,0 +1,871 @@
|
|
1
|
+
/*!
|
2
|
+
* angular-translate - v2.18.3 - 2020-07-08
|
3
|
+
*
|
4
|
+
* Copyright (c) 2020 The angular-translate team, Pascal Precht; Licensed MIT
|
5
|
+
*/
|
6
|
+
! function(t, e) {
|
7
|
+
"function" == typeof define && define.amd ? define([], function() {
|
8
|
+
return e()
|
9
|
+
}) : "object" == typeof module && module.exports ? module.exports = e() : e()
|
10
|
+
}(0, function() {
|
11
|
+
function t(e) {
|
12
|
+
"use strict";
|
13
|
+
var n = e.storageKey(),
|
14
|
+
a = e.storage(),
|
15
|
+
t = function() {
|
16
|
+
var t = e.preferredLanguage();
|
17
|
+
angular.isString(t) ? e.use(t) : a.put(n, e.use())
|
18
|
+
};
|
19
|
+
t.displayName = "fallbackFromIncorrectStorageValue", a ? a.get(n) ? e.use(a.get(n)).catch(t) : t() : angular.isString(e.preferredLanguage()) && e.use(e.preferredLanguage())
|
20
|
+
}
|
21
|
+
|
22
|
+
function e(t, r, e, i) {
|
23
|
+
"use strict";
|
24
|
+
var T, c, z, x, F, I, _, n, V, R, D, K, U, M, H, G, q = {},
|
25
|
+
Y = [],
|
26
|
+
B = t,
|
27
|
+
J = [],
|
28
|
+
Q = "translate-cloak",
|
29
|
+
W = !1,
|
30
|
+
X = !1,
|
31
|
+
Z = ".",
|
32
|
+
tt = !1,
|
33
|
+
et = !1,
|
34
|
+
nt = 0,
|
35
|
+
at = !0,
|
36
|
+
a = "default",
|
37
|
+
s = {
|
38
|
+
default: function(t) {
|
39
|
+
return (t || "").split("-").join("_")
|
40
|
+
},
|
41
|
+
java: function(t) {
|
42
|
+
var e = (t || "").split("-").join("_"),
|
43
|
+
n = e.split("_");
|
44
|
+
return 1 < n.length ? n[0].toLowerCase() + "_" + n[1].toUpperCase() : e
|
45
|
+
},
|
46
|
+
bcp47: function(t) {
|
47
|
+
var e = (t || "").split("_").join("-"),
|
48
|
+
n = e.split("-");
|
49
|
+
switch (n.length) {
|
50
|
+
case 1:
|
51
|
+
n[0] = n[0].toLowerCase();
|
52
|
+
break;
|
53
|
+
case 2:
|
54
|
+
n[0] = n[0].toLowerCase(), 4 === n[1].length ? n[1] = n[1].charAt(0).toUpperCase() + n[1].slice(1).toLowerCase() : n[1] = n[1].toUpperCase();
|
55
|
+
break;
|
56
|
+
case 3:
|
57
|
+
n[0] = n[0].toLowerCase(), n[1] = n[1].charAt(0).toUpperCase() + n[1].slice(1).toLowerCase(), n[2] = n[2].toUpperCase();
|
58
|
+
break;
|
59
|
+
default:
|
60
|
+
return e
|
61
|
+
}
|
62
|
+
return n.join("-")
|
63
|
+
},
|
64
|
+
"iso639-1": function(t) {
|
65
|
+
return (t || "").split("_").join("-").split("-")[0].toLowerCase()
|
66
|
+
}
|
67
|
+
},
|
68
|
+
o = function() {
|
69
|
+
if (angular.isFunction(i.getLocale)) return i.getLocale();
|
70
|
+
var t, e, n = r.$get().navigator,
|
71
|
+
a = ["language", "browserLanguage", "systemLanguage", "userLanguage"];
|
72
|
+
if (angular.isArray(n.languages))
|
73
|
+
for (t = 0; t < n.languages.length; t++)
|
74
|
+
if ((e = n.languages[t]) && e.length) return e;
|
75
|
+
for (t = 0; t < a.length; t++)
|
76
|
+
if ((e = n[a[t]]) && e.length) return e;
|
77
|
+
return null
|
78
|
+
};
|
79
|
+
o.displayName = "angular-translate/service: getFirstBrowserLanguage";
|
80
|
+
var rt = function() {
|
81
|
+
var t = o() || "";
|
82
|
+
return s[a] && (t = s[a](t)), t
|
83
|
+
};
|
84
|
+
rt.displayName = "angular-translate/service: getLocale";
|
85
|
+
var it = function(t, e) {
|
86
|
+
for (var n = 0, a = t.length; n < a; n++)
|
87
|
+
if (t[n] === e) return n;
|
88
|
+
return -1
|
89
|
+
},
|
90
|
+
st = function() {
|
91
|
+
return this.toString().replace(/^\s+|\s+$/g, "")
|
92
|
+
},
|
93
|
+
f = function(t) {
|
94
|
+
return angular.isString(t) ? t.toLowerCase() : t
|
95
|
+
},
|
96
|
+
ot = function(t) {
|
97
|
+
if (t) {
|
98
|
+
for (var e, n = [], a = f(t), r = 0, i = Y.length; r < i; r++) n.push(f(Y[r]));
|
99
|
+
if (-1 < (r = it(n, a))) return Y[r];
|
100
|
+
if (c)
|
101
|
+
for (var s in c)
|
102
|
+
if (c.hasOwnProperty(s)) {
|
103
|
+
var o = !1,
|
104
|
+
l = Object.prototype.hasOwnProperty.call(c, s) && f(s) === f(t);
|
105
|
+
if ("*" === s.slice(-1) && (o = f(s.slice(0, -1)) === f(t.slice(0, s.length - 1))), (l || o) && (e = c[s], -1 < it(n, f(e)))) return e
|
106
|
+
} var u = t.split("_");
|
107
|
+
return 1 < u.length && -1 < it(n, f(u[0])) ? u[0] : void 0
|
108
|
+
}
|
109
|
+
},
|
110
|
+
lt = function(t, e) {
|
111
|
+
if (!t && !e) return q;
|
112
|
+
if (t && !e) {
|
113
|
+
if (angular.isString(t)) return q[t]
|
114
|
+
} else angular.isObject(q[t]) || (q[t] = {}), angular.extend(q[t], ut(e));
|
115
|
+
return this
|
116
|
+
};
|
117
|
+
this.translations = lt, this.cloakClassName = function(t) {
|
118
|
+
return t ? (Q = t, this) : Q
|
119
|
+
}, this.nestedObjectDelimeter = function(t) {
|
120
|
+
return t ? (Z = t, this) : Z
|
121
|
+
};
|
122
|
+
var ut = function(t, e, n, a) {
|
123
|
+
var r, i, s;
|
124
|
+
for (r in e || (e = []), n || (n = {}), t) Object.prototype.hasOwnProperty.call(t, r) && (s = t[r], angular.isObject(s) ? ut(s, e.concat(r), n, r) : (i = e.length ? "" + e.join(Z) + Z + r : r, e.length && r === a && (n["" + e.join(Z)] = "@:" + i), n[i] = s));
|
125
|
+
return n
|
126
|
+
};
|
127
|
+
ut.displayName = "flatObject", this.addInterpolation = function(t) {
|
128
|
+
return J.push(t), this
|
129
|
+
}, this.useMessageFormatInterpolation = function() {
|
130
|
+
return this.useInterpolation("$translateMessageFormatInterpolation")
|
131
|
+
}, this.useInterpolation = function(t) {
|
132
|
+
return R = t, this
|
133
|
+
}, this.useSanitizeValueStrategy = function(t) {
|
134
|
+
return e.useStrategy(t), this
|
135
|
+
}, this.preferredLanguage = function(t) {
|
136
|
+
return t ? (ct(t), this) : T
|
137
|
+
};
|
138
|
+
var ct = function(t) {
|
139
|
+
return t && (T = t), T
|
140
|
+
};
|
141
|
+
this.translationNotFoundIndicator = function(t) {
|
142
|
+
return this.translationNotFoundIndicatorLeft(t), this.translationNotFoundIndicatorRight(t), this
|
143
|
+
}, this.translationNotFoundIndicatorLeft = function(t) {
|
144
|
+
return t ? (U = t, this) : U
|
145
|
+
}, this.translationNotFoundIndicatorRight = function(t) {
|
146
|
+
return t ? (M = t, this) : M
|
147
|
+
}, this.fallbackLanguage = function(t) {
|
148
|
+
return ft(t), this
|
149
|
+
};
|
150
|
+
var ft = function(t) {
|
151
|
+
return t ? (angular.isString(t) ? (x = !0, z = [t]) : angular.isArray(t) && (x = !1, z = t), angular.isString(T) && it(z, T) < 0 && z.push(T), this) : x ? z[0] : z
|
152
|
+
};
|
153
|
+
this.use = function(t) {
|
154
|
+
if (t) {
|
155
|
+
if (!q[t] && !D) throw new Error("$translateProvider couldn't find translationTable for langKey: '" + t + "'");
|
156
|
+
return F = t, this
|
157
|
+
}
|
158
|
+
return F
|
159
|
+
}, this.resolveClientLocale = function() {
|
160
|
+
return rt()
|
161
|
+
};
|
162
|
+
var gt = function(t) {
|
163
|
+
return t ? (B = t, this) : n ? n + B : B
|
164
|
+
};
|
165
|
+
this.storageKey = gt, this.useUrlLoader = function(t, e) {
|
166
|
+
return this.useLoader("$translateUrlLoader", angular.extend({
|
167
|
+
url: t
|
168
|
+
}, e))
|
169
|
+
}, this.useStaticFilesLoader = function(t) {
|
170
|
+
return this.useLoader("$translateStaticFilesLoader", t)
|
171
|
+
}, this.useLoader = function(t, e) {
|
172
|
+
return D = t, K = e || {}, this
|
173
|
+
}, this.useLocalStorage = function() {
|
174
|
+
return this.useStorage("$translateLocalStorage")
|
175
|
+
}, this.useCookieStorage = function() {
|
176
|
+
return this.useStorage("$translateCookieStorage")
|
177
|
+
}, this.useStorage = function(t) {
|
178
|
+
return _ = t, this
|
179
|
+
}, this.storagePrefix = function(t) {
|
180
|
+
return t ? (n = t, this) : t
|
181
|
+
}, this.useMissingTranslationHandlerLog = function() {
|
182
|
+
return this.useMissingTranslationHandler("$translateMissingTranslationHandlerLog")
|
183
|
+
}, this.useMissingTranslationHandler = function(t) {
|
184
|
+
return V = t, this
|
185
|
+
}, this.usePostCompiling = function(t) {
|
186
|
+
return W = !!t, this
|
187
|
+
}, this.forceAsyncReload = function(t) {
|
188
|
+
return X = !!t, this
|
189
|
+
}, this.uniformLanguageTag = function(t) {
|
190
|
+
return t ? angular.isString(t) && (t = {
|
191
|
+
standard: t
|
192
|
+
}) : t = {}, a = t.standard, this
|
193
|
+
}, this.determinePreferredLanguage = function(t) {
|
194
|
+
var e = t && angular.isFunction(t) ? t() : rt();
|
195
|
+
return T = Y.length && ot(e) || e, this
|
196
|
+
}, this.registerAvailableLanguageKeys = function(t, e) {
|
197
|
+
return t ? (Y = t, e && (c = e), this) : Y
|
198
|
+
}, this.useLoaderCache = function(t) {
|
199
|
+
return !1 === t ? H = void 0 : !0 === t ? H = !0 : void 0 === t ? H = "$translationCache" : t && (H = t), this
|
200
|
+
}, this.directivePriority = function(t) {
|
201
|
+
return void 0 === t ? nt : (nt = t, this)
|
202
|
+
}, this.statefulFilter = function(t) {
|
203
|
+
return void 0 === t ? at : (at = t, this)
|
204
|
+
}, this.postProcess = function(t) {
|
205
|
+
return G = t || void 0, this
|
206
|
+
}, this.keepContent = function(t) {
|
207
|
+
return et = !!t, this
|
208
|
+
}, this.$get = ["$log", "$injector", "$rootScope", "$q", function(t, o, s, m) {
|
209
|
+
var i, $, y, b = o.get(R || "$translateDefaultInterpolation"),
|
210
|
+
S = !1,
|
211
|
+
L = {},
|
212
|
+
f = {},
|
213
|
+
w = function(t, s, o, l, u, c) {
|
214
|
+
!F && T && (F = T);
|
215
|
+
var a = u && u !== F ? ot(u) || u : F;
|
216
|
+
if (u && v(u), angular.isArray(t)) {
|
217
|
+
return function(t) {
|
218
|
+
for (var a = {}, e = [], n = function(e) {
|
219
|
+
var n = m.defer(),
|
220
|
+
t = function(t) {
|
221
|
+
a[e] = t, n.resolve([e, t])
|
222
|
+
};
|
223
|
+
return w(e, s, o, l, u, c).then(t, t), n.promise
|
224
|
+
}, r = 0, i = t.length; r < i; r++) e.push(n(t[r]));
|
225
|
+
return m.all(e).then(function() {
|
226
|
+
return a
|
227
|
+
})
|
228
|
+
}(t)
|
229
|
+
}
|
230
|
+
var e = m.defer();
|
231
|
+
if (!t) throw new TypeError("translationId must be a not empty string");
|
232
|
+
t = st.apply(t);
|
233
|
+
var n = function() {
|
234
|
+
var t = f[a] || f[T];
|
235
|
+
if ($ = 0, _ && !t) {
|
236
|
+
var e = i.get(B);
|
237
|
+
if (t = f[e], z && z.length) {
|
238
|
+
var n = it(z, e);
|
239
|
+
$ = 0 === n ? 1 : 0, it(z, T) < 0 && z.push(T)
|
240
|
+
}
|
241
|
+
}
|
242
|
+
return t
|
243
|
+
}();
|
244
|
+
if (n) {
|
245
|
+
var r = function() {
|
246
|
+
u || (a = F), h(t, s, o, l, a, c).then(e.resolve, e.reject)
|
247
|
+
};
|
248
|
+
r.displayName = "promiseResolved", n.finally(r).catch(angular.noop)
|
249
|
+
} else h(t, s, o, l, a, c).then(e.resolve, e.reject);
|
250
|
+
return e.promise
|
251
|
+
},
|
252
|
+
j = function(t) {
|
253
|
+
return U && (t = [U, t].join(" ")), M && (t = [t, M].join(" ")), t
|
254
|
+
},
|
255
|
+
l = function(t) {
|
256
|
+
F = t, _ && i.put(w.storageKey(), F), s.$emit("$translateChangeSuccess", {
|
257
|
+
language: t
|
258
|
+
}), b.setLocale(F);
|
259
|
+
var e = function(t, e) {
|
260
|
+
L[e].setLocale(F)
|
261
|
+
};
|
262
|
+
e.displayName = "eachInterpolatorLocaleSetter", angular.forEach(L, e), s.$emit("$translateChangeEnd", {
|
263
|
+
language: t
|
264
|
+
})
|
265
|
+
},
|
266
|
+
u = function(n) {
|
267
|
+
if (!n) throw "No language key specified for loading.";
|
268
|
+
var a = m.defer();
|
269
|
+
s.$emit("$translateLoadingStart", {
|
270
|
+
language: n
|
271
|
+
}), S = !0;
|
272
|
+
var t = H;
|
273
|
+
"string" == typeof t && (t = o.get(t));
|
274
|
+
var e = angular.extend({}, K, {
|
275
|
+
key: n,
|
276
|
+
$http: angular.extend({}, {
|
277
|
+
cache: t
|
278
|
+
}, K.$http)
|
279
|
+
}),
|
280
|
+
r = function(t) {
|
281
|
+
var e = {};
|
282
|
+
s.$emit("$translateLoadingSuccess", {
|
283
|
+
language: n
|
284
|
+
}), angular.isArray(t) ? angular.forEach(t, function(t) {
|
285
|
+
angular.extend(e, ut(t))
|
286
|
+
}) : angular.extend(e, ut(t)), S = !1, a.resolve({
|
287
|
+
key: n,
|
288
|
+
table: e
|
289
|
+
}), s.$emit("$translateLoadingEnd", {
|
290
|
+
language: n
|
291
|
+
})
|
292
|
+
};
|
293
|
+
r.displayName = "onLoaderSuccess";
|
294
|
+
var i = function(t) {
|
295
|
+
s.$emit("$translateLoadingError", {
|
296
|
+
language: t
|
297
|
+
}), a.reject(t), s.$emit("$translateLoadingEnd", {
|
298
|
+
language: t
|
299
|
+
})
|
300
|
+
};
|
301
|
+
return i.displayName = "onLoaderError", o.get(D)(e).then(r, i), a.promise
|
302
|
+
};
|
303
|
+
if (_ && (!(i = o.get(_)).get || !i.put)) throw new Error("Couldn't use storage '" + _ + "', missing get() or put() method!");
|
304
|
+
if (J.length) {
|
305
|
+
var e = function(t) {
|
306
|
+
var e = o.get(t);
|
307
|
+
e.setLocale(T || F), L[e.getInterpolationIdentifier()] = e
|
308
|
+
};
|
309
|
+
e.displayName = "interpolationFactoryAdder", angular.forEach(J, e)
|
310
|
+
}
|
311
|
+
var c = function(a, r, i, s, o) {
|
312
|
+
var l = m.defer(),
|
313
|
+
t = function(t) {
|
314
|
+
if (Object.prototype.hasOwnProperty.call(t, r) && null !== t[r]) {
|
315
|
+
s.setLocale(a);
|
316
|
+
var e = t[r];
|
317
|
+
if ("@:" === e.substr(0, 2)) c(a, e.substr(2), i, s, o).then(l.resolve, l.reject);
|
318
|
+
else {
|
319
|
+
var n = s.interpolate(t[r], i, "service", o, r);
|
320
|
+
n = O(r, t[r], n, i, a), l.resolve(n)
|
321
|
+
}
|
322
|
+
s.setLocale(F)
|
323
|
+
} else l.reject()
|
324
|
+
};
|
325
|
+
return t.displayName = "fallbackTranslationResolver",
|
326
|
+
function(t) {
|
327
|
+
var e = m.defer();
|
328
|
+
if (Object.prototype.hasOwnProperty.call(q, t)) e.resolve(q[t]);
|
329
|
+
else if (f[t]) {
|
330
|
+
var n = function(t) {
|
331
|
+
lt(t.key, t.table), e.resolve(t.table)
|
332
|
+
};
|
333
|
+
n.displayName = "translationTableResolver", f[t].then(n, e.reject)
|
334
|
+
} else e.reject();
|
335
|
+
return e.promise
|
336
|
+
}(a).then(t, l.reject), l.promise
|
337
|
+
},
|
338
|
+
g = function(t, e, n, a, r) {
|
339
|
+
var i, s = q[t];
|
340
|
+
if (s && Object.prototype.hasOwnProperty.call(s, e) && null !== s[e]) {
|
341
|
+
if (a.setLocale(t), i = a.interpolate(s[e], n, "filter", r, e), i = O(e, s[e], i, n, t, r), !angular.isString(i) && angular.isFunction(i.$$unwrapTrustedValue)) {
|
342
|
+
var o = i.$$unwrapTrustedValue();
|
343
|
+
if ("@:" === o.substr(0, 2)) return g(t, o.substr(2), n, a, r)
|
344
|
+
} else if ("@:" === i.substr(0, 2)) return g(t, i.substr(2), n, a, r);
|
345
|
+
a.setLocale(F)
|
346
|
+
}
|
347
|
+
return i
|
348
|
+
},
|
349
|
+
C = function(t, e, n, a) {
|
350
|
+
return V ? o.get(V)(t, F, e, n, a) : t
|
351
|
+
},
|
352
|
+
N = function(t, e, n, a, r, i) {
|
353
|
+
var s = m.defer();
|
354
|
+
if (t < z.length) {
|
355
|
+
var o = z[t];
|
356
|
+
c(o, e, n, a, i).then(function(t) {
|
357
|
+
s.resolve(t)
|
358
|
+
}, function() {
|
359
|
+
return N(t + 1, e, n, a, r, i).then(s.resolve, s.reject)
|
360
|
+
})
|
361
|
+
} else if (r) s.resolve(r);
|
362
|
+
else {
|
363
|
+
var l = C(e, n, r);
|
364
|
+
V && l ? s.resolve(l) : s.reject(j(e))
|
365
|
+
}
|
366
|
+
return s.promise
|
367
|
+
},
|
368
|
+
p = function(t, e, n, a, r) {
|
369
|
+
var i;
|
370
|
+
if (t < z.length) {
|
371
|
+
var s = z[t];
|
372
|
+
(i = g(s, e, n, a, r)) || "" === i || (i = p(t + 1, e, n, a))
|
373
|
+
}
|
374
|
+
return i
|
375
|
+
},
|
376
|
+
h = function(t, e, n, a, r, i) {
|
377
|
+
var s, o, l, u, c, f = m.defer(),
|
378
|
+
g = r ? q[r] : q,
|
379
|
+
p = n ? L[n] : b;
|
380
|
+
if (g && Object.prototype.hasOwnProperty.call(g, t) && null !== g[t]) {
|
381
|
+
var h = g[t];
|
382
|
+
if ("@:" === h.substr(0, 2)) w(h.substr(2), e, n, a, r, i).then(f.resolve, f.reject);
|
383
|
+
else {
|
384
|
+
var d = p.interpolate(h, e, "service", i, t);
|
385
|
+
d = O(t, h, d, e, r), f.resolve(d)
|
386
|
+
}
|
387
|
+
} else {
|
388
|
+
var v;
|
389
|
+
V && !S && (v = C(t, e, a)), r && z && z.length ? (s = t, o = e, l = p, u = a, c = i, N(0 < y ? y : $, s, o, l, u, c)).then(function(t) {
|
390
|
+
f.resolve(t)
|
391
|
+
}, function(t) {
|
392
|
+
f.reject(j(t))
|
393
|
+
}) : V && !S && v ? a ? f.resolve(a) : f.resolve(v) : a ? f.resolve(a) : f.reject(j(t))
|
394
|
+
}
|
395
|
+
return f.promise
|
396
|
+
},
|
397
|
+
d = function(t, e, n, a, r) {
|
398
|
+
var i, s = a ? q[a] : q,
|
399
|
+
o = b;
|
400
|
+
if (L && Object.prototype.hasOwnProperty.call(L, n) && (o = L[n]), s && Object.prototype.hasOwnProperty.call(s, t) && null !== s[t]) {
|
401
|
+
var l = s[t];
|
402
|
+
i = "@:" === l.substr(0, 2) ? d(l.substr(2), e, n, a, r) : (i = o.interpolate(l, e, "filter", r, t), O(t, l, i, e, a, r))
|
403
|
+
} else {
|
404
|
+
var u;
|
405
|
+
V && !S && (u = C(t, e, r)), i = a && z && z.length ? p(($ = 0) < y ? y : $, t, e, o, r) : V && !S && u ? u : j(t)
|
406
|
+
}
|
407
|
+
return i
|
408
|
+
},
|
409
|
+
O = function(t, e, n, a, r, i) {
|
410
|
+
var s = G;
|
411
|
+
return s && ("string" == typeof s && (s = o.get(s)), s) ? s(t, e, n, a, r, i) : n
|
412
|
+
},
|
413
|
+
v = function(t) {
|
414
|
+
q[t] || !D || f[t] || (f[t] = u(t).then(function(t) {
|
415
|
+
return lt(t.key, t.table), t
|
416
|
+
}))
|
417
|
+
};
|
418
|
+
w.preferredLanguage = function(t) {
|
419
|
+
return t && ct(t), T
|
420
|
+
}, w.cloakClassName = function() {
|
421
|
+
return Q
|
422
|
+
}, w.nestedObjectDelimeter = function() {
|
423
|
+
return Z
|
424
|
+
}, w.fallbackLanguage = function(t) {
|
425
|
+
if (null != t) {
|
426
|
+
if (ft(t), D && z && z.length)
|
427
|
+
for (var e = 0, n = z.length; e < n; e++) f[z[e]] || (f[z[e]] = u(z[e]));
|
428
|
+
w.use(w.use())
|
429
|
+
}
|
430
|
+
return x ? z[0] : z
|
431
|
+
}, w.useFallbackLanguage = function(t) {
|
432
|
+
if (null != t)
|
433
|
+
if (t) {
|
434
|
+
var e = it(z, t); - 1 < e && (y = e)
|
435
|
+
} else y = 0
|
436
|
+
}, w.proposedLanguage = function() {
|
437
|
+
return I
|
438
|
+
}, w.storage = function() {
|
439
|
+
return i
|
440
|
+
}, w.negotiateLocale = ot, w.use = function(e) {
|
441
|
+
if (!e) return F;
|
442
|
+
var n = m.defer();
|
443
|
+
n.promise.then(null, angular.noop), s.$emit("$translateChangeStart", {
|
444
|
+
language: e
|
445
|
+
});
|
446
|
+
var t = ot(e);
|
447
|
+
return 0 < Y.length && !t ? m.reject(e) : (t && (e = t), I = e, !X && q[e] || !D || f[e] ? f[e] ? f[e].then(function(t) {
|
448
|
+
return I === t.key && l(t.key), n.resolve(t.key), t
|
449
|
+
}, function(t) {
|
450
|
+
return !F && z && 0 < z.length && z[0] !== t ? w.use(z[0]).then(n.resolve, n.reject) : n.reject(t)
|
451
|
+
}) : (n.resolve(e), l(e)) : (f[e] = u(e).then(function(t) {
|
452
|
+
return lt(t.key, t.table), n.resolve(t.key), I === e && l(t.key), t
|
453
|
+
}, function(t) {
|
454
|
+
return s.$emit("$translateChangeError", {
|
455
|
+
language: t
|
456
|
+
}), n.reject(t), s.$emit("$translateChangeEnd", {
|
457
|
+
language: t
|
458
|
+
}), m.reject(t)
|
459
|
+
}), f[e].finally(function() {
|
460
|
+
var t;
|
461
|
+
I === (t = e) && (I = void 0), f[t] = void 0
|
462
|
+
}).catch(angular.noop)), n.promise)
|
463
|
+
}, w.resolveClientLocale = function() {
|
464
|
+
return rt()
|
465
|
+
}, w.storageKey = function() {
|
466
|
+
return gt()
|
467
|
+
}, w.isPostCompilingEnabled = function() {
|
468
|
+
return W
|
469
|
+
}, w.isForceAsyncReloadEnabled = function() {
|
470
|
+
return X
|
471
|
+
}, w.isKeepContent = function() {
|
472
|
+
return et
|
473
|
+
}, w.refresh = function(t) {
|
474
|
+
if (!D) throw new Error("Couldn't refresh translation table, no loader registered!");
|
475
|
+
s.$emit("$translateRefreshStart", {
|
476
|
+
language: t
|
477
|
+
});
|
478
|
+
var e = m.defer(),
|
479
|
+
n = {};
|
480
|
+
|
481
|
+
function a(e) {
|
482
|
+
var t = u(e);
|
483
|
+
return (f[e] = t).then(function(t) {
|
484
|
+
q[e] = {}, lt(e, t.table), n[e] = !0
|
485
|
+
}, angular.noop), t
|
486
|
+
}
|
487
|
+
if (e.promise.then(function() {
|
488
|
+
for (var t in q) q.hasOwnProperty(t) && (t in n || delete q[t]);
|
489
|
+
F && l(F)
|
490
|
+
}, angular.noop).finally(function() {
|
491
|
+
s.$emit("$translateRefreshEnd", {
|
492
|
+
language: t
|
493
|
+
})
|
494
|
+
}), t) q[t] ? a(t).then(e.resolve, e.reject) : e.reject();
|
495
|
+
else {
|
496
|
+
var r = z && z.slice() || [];
|
497
|
+
F && -1 === r.indexOf(F) && r.push(F), m.all(r.map(a)).then(e.resolve, e.reject)
|
498
|
+
}
|
499
|
+
return e.promise
|
500
|
+
}, w.instant = function(t, e, n, a, r) {
|
501
|
+
var i = a && a !== F ? ot(a) || a : F;
|
502
|
+
if (null === t || angular.isUndefined(t)) return t;
|
503
|
+
if (a && v(a), angular.isArray(t)) {
|
504
|
+
for (var s = {}, o = 0, l = t.length; o < l; o++) s[t[o]] = w.instant(t[o], e, n, a, r);
|
505
|
+
return s
|
506
|
+
}
|
507
|
+
if (angular.isString(t) && t.length < 1) return t;
|
508
|
+
t && (t = st.apply(t));
|
509
|
+
var u, c, f = [];
|
510
|
+
T && f.push(T), i && f.push(i), z && z.length && (f = f.concat(z));
|
511
|
+
for (var g = 0, p = f.length; g < p; g++) {
|
512
|
+
var h = f[g];
|
513
|
+
if (q[h] && void 0 !== q[h][t] && (u = d(t, e, n, i, r)), void 0 !== u) break
|
514
|
+
}
|
515
|
+
u || "" === u || (U || M ? u = j(t) : (u = b.interpolate(t, e, "filter", r), V && !S && (c = C(t, e, r)), V && !S && c && (u = c)));
|
516
|
+
return u
|
517
|
+
}, w.versionInfo = function() {
|
518
|
+
return "2.18.3"
|
519
|
+
}, w.loaderCache = function() {
|
520
|
+
return H
|
521
|
+
}, w.directivePriority = function() {
|
522
|
+
return nt
|
523
|
+
}, w.statefulFilter = function() {
|
524
|
+
return at
|
525
|
+
}, w.isReady = function() {
|
526
|
+
return tt
|
527
|
+
};
|
528
|
+
var n = m.defer();
|
529
|
+
n.promise.then(function() {
|
530
|
+
tt = !0
|
531
|
+
}), w.onReady = function(t) {
|
532
|
+
var e = m.defer();
|
533
|
+
return angular.isFunction(t) && e.promise.then(t), tt ? e.resolve() : n.promise.then(e.resolve), e.promise
|
534
|
+
}, w.getAvailableLanguageKeys = function() {
|
535
|
+
return 0 < Y.length ? Y : null
|
536
|
+
}, w.getTranslationTable = function(t) {
|
537
|
+
return (t = t || w.use()) && q[t] ? angular.copy(q[t]) : null
|
538
|
+
};
|
539
|
+
var a = s.$on("$translateReady", function() {
|
540
|
+
n.resolve(), a(), a = null
|
541
|
+
}),
|
542
|
+
r = s.$on("$translateChangeEnd", function() {
|
543
|
+
n.resolve(), r(), r = null
|
544
|
+
});
|
545
|
+
if (D) {
|
546
|
+
if (angular.equals(q, {}) && w.use() && w.use(w.use()), z && z.length)
|
547
|
+
for (var E = function(t) {
|
548
|
+
return lt(t.key, t.table), s.$emit("$translateChangeEnd", {
|
549
|
+
language: t.key
|
550
|
+
}), t
|
551
|
+
}, k = 0, P = z.length; k < P; k++) {
|
552
|
+
var A = z[k];
|
553
|
+
!X && q[A] || (f[A] = u(A).then(E))
|
554
|
+
}
|
555
|
+
} else s.$emit("$translateReady", {
|
556
|
+
language: w.use()
|
557
|
+
});
|
558
|
+
return w
|
559
|
+
}]
|
560
|
+
}
|
561
|
+
|
562
|
+
function n(s, o) {
|
563
|
+
"use strict";
|
564
|
+
var t = {};
|
565
|
+
return t.setLocale = function(t) {
|
566
|
+
t
|
567
|
+
}, t.getInterpolationIdentifier = function() {
|
568
|
+
return "default"
|
569
|
+
}, t.useSanitizeValueStrategy = function(t) {
|
570
|
+
return o.useStrategy(t), this
|
571
|
+
}, t.interpolate = function(t, e, n, a, r) {
|
572
|
+
var i;
|
573
|
+
return e = e || {}, e = o.sanitize(e, "params", a, n), i = angular.isNumber(t) ? "" + t : angular.isString(t) ? (i = s(t)(e), o.sanitize(i, "text", a, n)) : ""
|
574
|
+
}, t
|
575
|
+
}
|
576
|
+
|
577
|
+
function a(S, L, w, j, C) {
|
578
|
+
"use strict";
|
579
|
+
var N = function(t) {
|
580
|
+
return angular.isString(t) ? t.toLowerCase() : t
|
581
|
+
};
|
582
|
+
return {
|
583
|
+
restrict: "AE",
|
584
|
+
scope: !0,
|
585
|
+
priority: S.directivePriority(),
|
586
|
+
compile: function(t, h) {
|
587
|
+
var d = h.translateValues ? h.translateValues : void 0,
|
588
|
+
v = h.translateInterpolation ? h.translateInterpolation : void 0,
|
589
|
+
m = h.translateSanitizeStrategy ? h.translateSanitizeStrategy : void 0,
|
590
|
+
$ = t[0].outerHTML.match(/translate-value-+/i),
|
591
|
+
y = "^(.*)(" + L.startSymbol() + ".*" + L.endSymbol() + ")(.*)",
|
592
|
+
b = "^(.*)" + L.startSymbol() + "(.*)" + L.endSymbol() + "(.*)";
|
593
|
+
return function(r, l, u) {
|
594
|
+
r.interpolateParams = {}, r.preText = "", r.postText = "", r.translateNamespace = function t(e) {
|
595
|
+
if (e.translateNamespace) return e.translateNamespace;
|
596
|
+
if (e.$parent) return t(e.$parent)
|
597
|
+
}(r);
|
598
|
+
var i = {},
|
599
|
+
s = function(t) {
|
600
|
+
if (angular.isFunction(s._unwatchOld) && (s._unwatchOld(), s._unwatchOld = void 0), angular.equals(t, "") || !angular.isDefined(t)) {
|
601
|
+
var e = function() {
|
602
|
+
return this.toString().replace(/^\s+|\s+$/g, "")
|
603
|
+
}.apply(l.text()).replace(/\n/g, " "),
|
604
|
+
n = e.match(y);
|
605
|
+
if (angular.isArray(n)) {
|
606
|
+
r.preText = n[1], r.postText = n[3], i.translate = L(n[2])(r.$parent);
|
607
|
+
var a = e.match(b);
|
608
|
+
angular.isArray(a) && a[2] && a[2].length && (s._unwatchOld = r.$watch(a[2], function(t) {
|
609
|
+
i.translate = t, c()
|
610
|
+
}))
|
611
|
+
} else i.translate = e || void 0
|
612
|
+
} else i.translate = t;
|
613
|
+
c()
|
614
|
+
},
|
615
|
+
t = function(e) {
|
616
|
+
u.$observe(e, function(t) {
|
617
|
+
i[e] = t, c()
|
618
|
+
})
|
619
|
+
};
|
620
|
+
! function(t, e, n) {
|
621
|
+
if (e.translateValues && angular.extend(t, j(e.translateValues)(r.$parent)), $)
|
622
|
+
for (var a in n) Object.prototype.hasOwnProperty.call(e, a) && "translateValue" === a.substr(0, 14) && "translateValues" !== a && (t[N(a.substr(14, 1)) + a.substr(15)] = n[a])
|
623
|
+
}(r.interpolateParams, u, h);
|
624
|
+
var e = !0;
|
625
|
+
for (var n in u.$observe("translate", function(t) {
|
626
|
+
void 0 === t ? s("") : "" === t && e || (i.translate = t, c()), e = !1
|
627
|
+
}), u) u.hasOwnProperty(n) && "translateAttr" === n.substr(0, 13) && 13 < n.length && t(n);
|
628
|
+
if (u.$observe("translateDefault", function(t) {
|
629
|
+
r.defaultText = t, c()
|
630
|
+
}), m && u.$observe("translateSanitizeStrategy", function(t) {
|
631
|
+
r.sanitizeStrategy = j(t)(r.$parent), c()
|
632
|
+
}), d && u.$observe("translateValues", function(t) {
|
633
|
+
t && r.$parent.$watch(function() {
|
634
|
+
angular.extend(r.interpolateParams, j(t)(r.$parent))
|
635
|
+
})
|
636
|
+
}), $) {
|
637
|
+
var a = function(n) {
|
638
|
+
u.$observe(n, function(t) {
|
639
|
+
var e = N(n.substr(14, 1)) + n.substr(15);
|
640
|
+
r.interpolateParams[e] = t
|
641
|
+
})
|
642
|
+
};
|
643
|
+
for (var o in u) Object.prototype.hasOwnProperty.call(u, o) && "translateValue" === o.substr(0, 14) && "translateValues" !== o && a(o)
|
644
|
+
}
|
645
|
+
var c = function() {
|
646
|
+
for (var t in i) i.hasOwnProperty(t) && void 0 !== i[t] && f(t, i[t], r, r.interpolateParams, r.defaultText, r.translateNamespace)
|
647
|
+
},
|
648
|
+
f = function(e, t, n, a, r, i) {
|
649
|
+
t ? (i && "." === t.charAt(0) && (t = i + t), S(t, a, v, r, n.translateLanguage, n.sanitizeStrategy).then(function(t) {
|
650
|
+
g(t, n, !0, e)
|
651
|
+
}, function(t) {
|
652
|
+
g(t, n, !1, e)
|
653
|
+
})) : g(t, n, !1, e)
|
654
|
+
},
|
655
|
+
g = function(t, e, n, a) {
|
656
|
+
if (n || void 0 !== e.defaultText && (t = e.defaultText), "translate" === a) {
|
657
|
+
(n || !n && !S.isKeepContent() && void 0 === u.translateKeepContent) && l.empty().append(e.preText + t + e.postText);
|
658
|
+
var r = S.isPostCompilingEnabled(),
|
659
|
+
i = void 0 !== h.translateCompile,
|
660
|
+
s = i && "false" !== h.translateCompile;
|
661
|
+
(r && !i || s) && w(l.contents())(e)
|
662
|
+
} else {
|
663
|
+
var o = u.$attr[a];
|
664
|
+
"data-" === o.substr(0, 5) && (o = o.substr(5)), o = o.substr(15), l.attr(o, t)
|
665
|
+
}
|
666
|
+
};
|
667
|
+
(d || $ || u.translateDefault) && r.$watch("interpolateParams", c, !0), r.$on("translateLanguageChanged", c);
|
668
|
+
var p = C.$on("$translateChangeSuccess", c);
|
669
|
+
l.text().length ? u.translate ? s(u.translate) : s("") : u.translate && s(u.translate), c(), r.$on("$destroy", p)
|
670
|
+
}
|
671
|
+
}
|
672
|
+
}
|
673
|
+
}
|
674
|
+
|
675
|
+
function r(u, c) {
|
676
|
+
"use strict";
|
677
|
+
return {
|
678
|
+
restrict: "A",
|
679
|
+
priority: u.directivePriority(),
|
680
|
+
link: function(n, a, r) {
|
681
|
+
var i, s, o, l = {},
|
682
|
+
t = function() {
|
683
|
+
angular.forEach(i, function(t, e) {
|
684
|
+
t && (l[e] = !0, n.translateNamespace && "." === t.charAt(0) && (t = n.translateNamespace + t), u(t, s, r.translateInterpolation, void 0, n.translateLanguage, o).then(function(t) {
|
685
|
+
a.attr(e, t)
|
686
|
+
}, function(t) {
|
687
|
+
a.attr(e, t)
|
688
|
+
}))
|
689
|
+
}), angular.forEach(l, function(t, e) {
|
690
|
+
i[e] || (a.removeAttr(e), delete l[e])
|
691
|
+
})
|
692
|
+
};
|
693
|
+
f(n, r.translateAttr, function(t) {
|
694
|
+
i = t
|
695
|
+
}, t), f(n, r.translateValues, function(t) {
|
696
|
+
s = t
|
697
|
+
}, t), f(n, r.translateSanitizeStrategy, function(t) {
|
698
|
+
o = t
|
699
|
+
}, t), r.translateValues && n.$watch(r.translateValues, t, !0), n.$on("translateLanguageChanged", t);
|
700
|
+
var e = c.$on("$translateChangeSuccess", t);
|
701
|
+
t(), n.$on("$destroy", e)
|
702
|
+
}
|
703
|
+
}
|
704
|
+
}
|
705
|
+
|
706
|
+
function f(t, e, n, a) {
|
707
|
+
"use strict";
|
708
|
+
e && ("::" === e.substr(0, 2) ? e = e.substr(2) : t.$watch(e, function(t) {
|
709
|
+
n(t), a()
|
710
|
+
}, !0), n(t.$eval(e)))
|
711
|
+
}
|
712
|
+
|
713
|
+
function i(s, o) {
|
714
|
+
"use strict";
|
715
|
+
return {
|
716
|
+
compile: function(t) {
|
717
|
+
var i = function(t) {
|
718
|
+
t.addClass(s.cloakClassName())
|
719
|
+
};
|
720
|
+
return i(t),
|
721
|
+
function(t, e, n) {
|
722
|
+
var a = function(t) {
|
723
|
+
t.removeClass(s.cloakClassName())
|
724
|
+
}.bind(this, e),
|
725
|
+
r = i.bind(this, e);
|
726
|
+
n.translateCloak && n.translateCloak.length ? (n.$observe("translateCloak", function(t) {
|
727
|
+
s(t).then(a, r)
|
728
|
+
}), o.$on("$translateChangeSuccess", function() {
|
729
|
+
s(n.translateCloak).then(a, r)
|
730
|
+
})) : s.onReady(a)
|
731
|
+
}
|
732
|
+
}
|
733
|
+
}
|
734
|
+
}
|
735
|
+
|
736
|
+
function s() {
|
737
|
+
"use strict";
|
738
|
+
return {
|
739
|
+
restrict: "A",
|
740
|
+
scope: !0,
|
741
|
+
compile: function() {
|
742
|
+
return {
|
743
|
+
pre: function(t, e, n) {
|
744
|
+
t.translateNamespace = function t(e) {
|
745
|
+
if (e.translateNamespace) return e.translateNamespace;
|
746
|
+
if (e.$parent) return t(e.$parent)
|
747
|
+
}(t), t.translateNamespace && "." === n.translateNamespace.charAt(0) ? t.translateNamespace += n.translateNamespace : t.translateNamespace = n.translateNamespace
|
748
|
+
}
|
749
|
+
}
|
750
|
+
}
|
751
|
+
}
|
752
|
+
}
|
753
|
+
|
754
|
+
function o() {
|
755
|
+
"use strict";
|
756
|
+
return {
|
757
|
+
restrict: "A",
|
758
|
+
scope: !0,
|
759
|
+
compile: function() {
|
760
|
+
return function(e, t, n) {
|
761
|
+
n.$observe("translateLanguage", function(t) {
|
762
|
+
e.translateLanguage = t
|
763
|
+
}), e.$watch("translateLanguage", function() {
|
764
|
+
e.$broadcast("translateLanguageChanged")
|
765
|
+
})
|
766
|
+
}
|
767
|
+
}
|
768
|
+
}
|
769
|
+
}
|
770
|
+
|
771
|
+
function l(i, s) {
|
772
|
+
"use strict";
|
773
|
+
var t = function(t, e, n, a) {
|
774
|
+
if (!angular.isObject(e)) {
|
775
|
+
var r = this || {
|
776
|
+
__SCOPE_IS_NOT_AVAILABLE: "More info at https://github.com/angular/angular.js/commit/8863b9d04c722b278fa93c5d66ad1e578ad6eb1f"
|
777
|
+
};
|
778
|
+
e = i(e)(r)
|
779
|
+
}
|
780
|
+
return s.instant(t, e, n, a)
|
781
|
+
};
|
782
|
+
return s.statefulFilter() && (t.$stateful = !0), t
|
783
|
+
}
|
784
|
+
|
785
|
+
function u(t) {
|
786
|
+
"use strict";
|
787
|
+
return t("translations")
|
788
|
+
}
|
789
|
+
return t.$inject = ["$translate"], e.$inject = ["$STORAGE_KEY", "$windowProvider", "$translateSanitizationProvider", "pascalprechtTranslateOverrider"], n.$inject = ["$interpolate", "$translateSanitization"], a.$inject = ["$translate", "$interpolate", "$compile", "$parse", "$rootScope"], r.$inject = ["$translate", "$rootScope"], i.$inject = ["$translate", "$rootScope"], l.$inject = ["$parse", "$translate"], u.$inject = ["$cacheFactory"], angular.module("pascalprecht.translate", ["ng"]).run(t), t.displayName = "runTranslate", angular.module("pascalprecht.translate").provider("$translateSanitization", function() {
|
790
|
+
"use strict";
|
791
|
+
var n, a, g, p = null,
|
792
|
+
h = !1,
|
793
|
+
d = !1;
|
794
|
+
(g = {
|
795
|
+
sanitize: function(t, e) {
|
796
|
+
return "text" === e && (t = i(t)), t
|
797
|
+
},
|
798
|
+
escape: function(t, e) {
|
799
|
+
return "text" === e && (t = r(t)), t
|
800
|
+
},
|
801
|
+
sanitizeParameters: function(t, e) {
|
802
|
+
return "params" === e && (t = o(t, i)), t
|
803
|
+
},
|
804
|
+
escapeParameters: function(t, e) {
|
805
|
+
return "params" === e && (t = o(t, r)), t
|
806
|
+
},
|
807
|
+
sce: function(t, e, n) {
|
808
|
+
return "text" === e ? t = s(t) : "params" === e && "filter" !== n && (t = o(t, r)), t
|
809
|
+
},
|
810
|
+
sceParameters: function(t, e) {
|
811
|
+
return "params" === e && (t = o(t, s)), t
|
812
|
+
}
|
813
|
+
}).escaped = g.escapeParameters, this.addStrategy = function(t, e) {
|
814
|
+
return g[t] = e, this
|
815
|
+
}, this.removeStrategy = function(t) {
|
816
|
+
return delete g[t], this
|
817
|
+
}, this.useStrategy = function(t) {
|
818
|
+
return h = !0, p = t, this
|
819
|
+
}, this.$get = ["$injector", "$log", function(u, c) {
|
820
|
+
var e, f = {};
|
821
|
+
return u.has("$sanitize") && (n = u.get("$sanitize")), u.has("$sce") && (a = u.get("$sce")), {
|
822
|
+
useStrategy: (e = this, function(t) {
|
823
|
+
e.useStrategy(t)
|
824
|
+
}),
|
825
|
+
sanitize: function(t, e, n, a) {
|
826
|
+
if (p || h || d || (c.warn("pascalprecht.translate.$translateSanitization: No sanitization strategy has been configured. This can have serious security implications. See http://angular-translate.github.io/docs/#/guide/19_security for details."), d = !0), n || null === n || (n = p), !n) return t;
|
827
|
+
a || (a = "service");
|
828
|
+
var r, i, s, o, l = angular.isArray(n) ? n : [n];
|
829
|
+
return r = t, i = e, s = a, o = l, angular.forEach(o, function(e) {
|
830
|
+
if (angular.isFunction(e)) r = e(r, i, s);
|
831
|
+
else if (angular.isFunction(g[e])) r = g[e](r, i, s);
|
832
|
+
else {
|
833
|
+
if (!angular.isString(g[e])) throw new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '" + e + "'");
|
834
|
+
if (!f[g[e]]) try {
|
835
|
+
f[g[e]] = u.get(g[e])
|
836
|
+
} catch (t) {
|
837
|
+
throw f[g[e]] = function() {}, new Error("pascalprecht.translate.$translateSanitization: Unknown sanitization strategy: '" + e + "'")
|
838
|
+
}
|
839
|
+
r = f[g[e]](r, i, s)
|
840
|
+
}
|
841
|
+
}), r
|
842
|
+
}
|
843
|
+
}
|
844
|
+
}];
|
845
|
+
var r = function(t) {
|
846
|
+
var e = angular.element("<div></div>");
|
847
|
+
return e.text(t), e.html()
|
848
|
+
},
|
849
|
+
i = function(t) {
|
850
|
+
if (!n) throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sanitize service. Either include the ngSanitize module (https://docs.angularjs.org/api/ngSanitize) or use a sanitization strategy which does not depend on $sanitize, such as 'escape'.");
|
851
|
+
return n(t)
|
852
|
+
},
|
853
|
+
s = function(t) {
|
854
|
+
if (!a) throw new Error("pascalprecht.translate.$translateSanitization: Error cannot find $sce service.");
|
855
|
+
return a.trustAsHtml(t)
|
856
|
+
},
|
857
|
+
o = function(t, n, a) {
|
858
|
+
if (angular.isDate(t)) return t;
|
859
|
+
if (angular.isObject(t)) {
|
860
|
+
var r = angular.isArray(t) ? [] : {};
|
861
|
+
if (a) {
|
862
|
+
if (-1 < a.indexOf(t)) throw new Error("pascalprecht.translate.$translateSanitization: Error cannot interpolate parameter due recursive object")
|
863
|
+
} else a = [];
|
864
|
+
return a.push(t), angular.forEach(t, function(t, e) {
|
865
|
+
angular.isFunction(t) || (r[e] = o(t, n, a))
|
866
|
+
}), a.splice(-1, 1), r
|
867
|
+
}
|
868
|
+
return angular.isNumber(t) ? t : !0 === t || !1 === t ? t : angular.isUndefined(t) || null === t ? t : n(t)
|
869
|
+
}
|
870
|
+
}), angular.module("pascalprecht.translate").constant("pascalprechtTranslateOverrider", {}).provider("$translate", e), e.displayName = "displayName", angular.module("pascalprecht.translate").factory("$translateDefaultInterpolation", n), n.displayName = "$translateDefaultInterpolation", angular.module("pascalprecht.translate").constant("$STORAGE_KEY", "NG_TRANSLATE_LANG_KEY"), angular.module("pascalprecht.translate").directive("translate", a), a.displayName = "translateDirective", angular.module("pascalprecht.translate").directive("translateAttr", r), r.displayName = "translateAttrDirective", angular.module("pascalprecht.translate").directive("translateCloak", i), i.displayName = "translateCloakDirective", angular.module("pascalprecht.translate").directive("translateNamespace", s), s.displayName = "translateNamespaceDirective", angular.module("pascalprecht.translate").directive("translateLanguage", o), o.displayName = "translateLanguageDirective", angular.module("pascalprecht.translate").filter("translate", l), l.displayName = "translateFilterFactory", angular.module("pascalprecht.translate").factory("$translationCache", u), u.displayName = "$translationCache", "pascalprecht.translate"
|
871
|
+
});
|