@kontur.candy/tools 2.238.0 → 2.240.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/distr/Common/CandyApiClient/CandyApiClient.js +68 -16
- package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/CandyApiErrors.js +26 -0
- package/distr/Common/CandyApiClient/CandyApiErrors.js.map +1 -0
- package/distr/Common/CandyApiClient/FakeCandyApiClient.js +11 -3
- package/distr/Common/CandyApiClient/FakeCandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/ICandyApiClient.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/Attachments/Attacments.js +5 -0
- package/distr/Common/CandyApiClient/Types/Attachments/Attacments.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/DraftActions/FileProperties.js.map +1 -1
- package/distr/Common/CandyApiClient/Types/HistoryEditing/InnerHistoryResponse.js.map +1 -1
- package/distr/Common/CommonConstants/DefaultServicesUrls.js +3 -1
- package/distr/Common/CommonConstants/DefaultServicesUrls.js.map +1 -1
- package/distr/Common/HttpClient/HttpClient.js +4 -0
- package/distr/Common/HttpClient/HttpClient.js.map +1 -1
- package/distr/Common/HttpClient/IHttpClient.js.map +1 -1
- package/distr/Common/KCLangRuntimeUtils.js +18 -0
- package/distr/Common/KCLangRuntimeUtils.js.map +1 -1
- package/distr/Common/ModelPath/AbsoluteModelFieldPath.js +2 -2
- package/distr/Common/ModelPath/AbsoluteModelFieldPath.js.map +1 -1
- package/distr/Common/NdsPlusApiClient/INdsPlusApiClient.js.map +1 -1
- package/distr/Common/TypingUtils.js.map +1 -1
- package/distr/Common/UUID.js +4 -1
- package/distr/Common/UUID.js.map +1 -1
- package/distr/Tools/src/BuildTasks/ResolveFormInfo.js +1 -2
- package/distr/Tools/src/BuildTasks/ResolveFormInfo.js.map +1 -1
- package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +0 -6
- package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
- package/distr/Tools/src/CLICommands/FormStats/RunFormStats.js +1 -3
- package/distr/Tools/src/CLICommands/FormStats/RunFormStats.js.map +1 -1
- package/distr/Tools/src/CLICommands/UpgradeForm/RunUpgradeForm.js +0 -4
- package/distr/Tools/src/CLICommands/UpgradeForm/RunUpgradeForm.js.map +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
- package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +1134 -2165
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +447 -913
- package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
- package/package.json +7 -6
|
@@ -3,297 +3,297 @@
|
|
|
3
3
|
!function () {
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
function t
|
|
8
|
-
return
|
|
9
|
-
return typeof
|
|
10
|
-
} : function (
|
|
11
|
-
return
|
|
12
|
-
}, t
|
|
13
|
-
}
|
|
14
|
-
function r(
|
|
15
|
-
var r = function (
|
|
16
|
-
if ("object" != t
|
|
17
|
-
var r =
|
|
6
|
+
var t = {};
|
|
7
|
+
function e(t) {
|
|
8
|
+
return e = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
|
|
9
|
+
return typeof t;
|
|
10
|
+
} : function (t) {
|
|
11
|
+
return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
12
|
+
}, e(t);
|
|
13
|
+
}
|
|
14
|
+
function r(t) {
|
|
15
|
+
var r = function (t) {
|
|
16
|
+
if ("object" != e(t) || !t) return t;
|
|
17
|
+
var r = t[Symbol.toPrimitive];
|
|
18
18
|
if (void 0 !== r) {
|
|
19
|
-
var n = r.call(
|
|
20
|
-
if ("object" !=
|
|
19
|
+
var n = r.call(t, "string");
|
|
20
|
+
if ("object" != e(n)) return n;
|
|
21
21
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
22
22
|
}
|
|
23
|
-
return String(
|
|
24
|
-
}(
|
|
25
|
-
return "symbol" ==
|
|
23
|
+
return String(t);
|
|
24
|
+
}(t);
|
|
25
|
+
return "symbol" == e(r) ? r : r + "";
|
|
26
26
|
}
|
|
27
|
-
function n(
|
|
28
|
-
return (
|
|
27
|
+
function n(t, e, n) {
|
|
28
|
+
return (e = r(e)) in t ? Object.defineProperty(t, e, {
|
|
29
29
|
value: n,
|
|
30
30
|
enumerable: !0,
|
|
31
31
|
configurable: !0,
|
|
32
32
|
writable: !0
|
|
33
|
-
}) : e
|
|
33
|
+
}) : t[e] = n, t;
|
|
34
34
|
}
|
|
35
|
-
function o(
|
|
35
|
+
function o(t, e, r, n, o, i, a) {
|
|
36
36
|
try {
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
} catch (
|
|
40
|
-
return void r(
|
|
37
|
+
var s = t[i](a),
|
|
38
|
+
u = s.value;
|
|
39
|
+
} catch (t) {
|
|
40
|
+
return void r(t);
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
s.done ? e(u) : Promise.resolve(u).then(n, o);
|
|
43
43
|
}
|
|
44
|
-
function i(
|
|
44
|
+
function i(t) {
|
|
45
45
|
return function () {
|
|
46
|
-
var
|
|
46
|
+
var e = this,
|
|
47
47
|
r = arguments;
|
|
48
48
|
return new Promise(function (n, i) {
|
|
49
|
-
var a =
|
|
50
|
-
function
|
|
51
|
-
o(a, n, i,
|
|
49
|
+
var a = t.apply(e, r);
|
|
50
|
+
function s(t) {
|
|
51
|
+
o(a, n, i, s, u, "next", t);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
o(a, n, i,
|
|
53
|
+
function u(t) {
|
|
54
|
+
o(a, n, i, s, u, "throw", t);
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
s(void 0);
|
|
57
57
|
});
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function a(
|
|
61
|
-
(null ==
|
|
62
|
-
for (var r = 0, n = Array(
|
|
60
|
+
function a(t, e) {
|
|
61
|
+
(null == e || e > t.length) && (e = t.length);
|
|
62
|
+
for (var r = 0, n = Array(e); r < e; r++) n[r] = t[r];
|
|
63
63
|
return n;
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
t.g = function () {
|
|
66
66
|
if ("object" == typeof globalThis) return globalThis;
|
|
67
67
|
try {
|
|
68
68
|
return this || new Function("return this")();
|
|
69
|
-
} catch (
|
|
69
|
+
} catch (t) {
|
|
70
70
|
if ("object" == typeof window) return window;
|
|
71
71
|
}
|
|
72
72
|
}();
|
|
73
|
-
var
|
|
74
|
-
|
|
75
|
-
c = "Symbol" in
|
|
76
|
-
l = "FileReader" in
|
|
73
|
+
var s = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== s && s,
|
|
74
|
+
u = ("URLSearchParams" in s),
|
|
75
|
+
c = "Symbol" in s && "iterator" in Symbol,
|
|
76
|
+
l = "FileReader" in s && "Blob" in s && function () {
|
|
77
77
|
try {
|
|
78
78
|
return new Blob(), !0;
|
|
79
|
-
} catch (
|
|
79
|
+
} catch (t) {
|
|
80
80
|
return !1;
|
|
81
81
|
}
|
|
82
82
|
}(),
|
|
83
|
-
f = ("FormData" in
|
|
84
|
-
|
|
85
|
-
if (
|
|
86
|
-
p = ArrayBuffer.isView || function (
|
|
87
|
-
return
|
|
83
|
+
f = ("FormData" in s),
|
|
84
|
+
d = ("ArrayBuffer" in s);
|
|
85
|
+
if (d) var h = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
|
|
86
|
+
p = ArrayBuffer.isView || function (t) {
|
|
87
|
+
return t && h.indexOf(Object.prototype.toString.call(t)) > -1;
|
|
88
88
|
};
|
|
89
|
-
function y(
|
|
90
|
-
if ("string" != typeof
|
|
91
|
-
return
|
|
89
|
+
function y(t) {
|
|
90
|
+
if ("string" != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t) || "" === t) throw new TypeError('Invalid character in header field name: "' + t + '"');
|
|
91
|
+
return t.toLowerCase();
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
return "string" != typeof
|
|
93
|
+
function b(t) {
|
|
94
|
+
return "string" != typeof t && (t = String(t)), t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
97
|
-
var
|
|
96
|
+
function m(t) {
|
|
97
|
+
var e = {
|
|
98
98
|
next: function () {
|
|
99
|
-
var
|
|
99
|
+
var e = t.shift();
|
|
100
100
|
return {
|
|
101
|
-
done: void 0 ===
|
|
102
|
-
value:
|
|
101
|
+
done: void 0 === e,
|
|
102
|
+
value: e
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
return c && (
|
|
107
|
-
return
|
|
108
|
-
}),
|
|
106
|
+
return c && (e[Symbol.iterator] = function () {
|
|
107
|
+
return e;
|
|
108
|
+
}), e;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
this.map = {},
|
|
112
|
-
this.append(
|
|
113
|
-
}, this) : Array.isArray(
|
|
114
|
-
this.append(
|
|
115
|
-
}, this) :
|
|
116
|
-
this.append(
|
|
110
|
+
function v(t) {
|
|
111
|
+
this.map = {}, t instanceof v ? t.forEach(function (t, e) {
|
|
112
|
+
this.append(e, t);
|
|
113
|
+
}, this) : Array.isArray(t) ? t.forEach(function (t) {
|
|
114
|
+
this.append(t[0], t[1]);
|
|
115
|
+
}, this) : t && Object.getOwnPropertyNames(t).forEach(function (e) {
|
|
116
|
+
this.append(e, t[e]);
|
|
117
117
|
}, this);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
if (
|
|
121
|
-
|
|
119
|
+
function g(t) {
|
|
120
|
+
if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
|
|
121
|
+
t.bodyUsed = !0;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return new Promise(function (
|
|
125
|
-
|
|
126
|
-
t
|
|
127
|
-
},
|
|
128
|
-
r(
|
|
123
|
+
function w(t) {
|
|
124
|
+
return new Promise(function (e, r) {
|
|
125
|
+
t.onload = function () {
|
|
126
|
+
e(t.result);
|
|
127
|
+
}, t.onerror = function () {
|
|
128
|
+
r(t.error);
|
|
129
129
|
};
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function E(
|
|
133
|
-
var
|
|
134
|
-
r =
|
|
135
|
-
return
|
|
132
|
+
function E(t) {
|
|
133
|
+
var e = new FileReader(),
|
|
134
|
+
r = w(e);
|
|
135
|
+
return e.readAsArrayBuffer(t), r;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (
|
|
139
|
-
var
|
|
140
|
-
return
|
|
137
|
+
function A(t) {
|
|
138
|
+
if (t.slice) return t.slice(0);
|
|
139
|
+
var e = new Uint8Array(t.byteLength);
|
|
140
|
+
return e.set(new Uint8Array(t)), e.buffer;
|
|
141
141
|
}
|
|
142
142
|
function O() {
|
|
143
|
-
return this.bodyUsed = !1, this._initBody = function (
|
|
144
|
-
var
|
|
145
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit =
|
|
143
|
+
return this.bodyUsed = !1, this._initBody = function (t) {
|
|
144
|
+
var e;
|
|
145
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = t, t ? "string" == typeof t ? this._bodyText = t : l && Blob.prototype.isPrototypeOf(t) ? this._bodyBlob = t : f && FormData.prototype.isPrototypeOf(t) ? this._bodyFormData = t : u && URLSearchParams.prototype.isPrototypeOf(t) ? this._bodyText = t.toString() : d && l && (e = t) && DataView.prototype.isPrototypeOf(e) ? (this._bodyArrayBuffer = A(t.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : d && (ArrayBuffer.prototype.isPrototypeOf(t) || p(t)) ? this._bodyArrayBuffer = A(t) : this._bodyText = t = Object.prototype.toString.call(t) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof t ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : u && URLSearchParams.prototype.isPrototypeOf(t) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
146
146
|
}, l && (this.blob = function () {
|
|
147
|
-
var
|
|
148
|
-
if (
|
|
147
|
+
var t = g(this);
|
|
148
|
+
if (t) return t;
|
|
149
149
|
if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
|
|
150
150
|
if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
|
|
151
151
|
if (this._bodyFormData) throw new Error("could not read FormData body as blob");
|
|
152
152
|
return Promise.resolve(new Blob([this._bodyText]));
|
|
153
153
|
}, this.arrayBuffer = function () {
|
|
154
|
-
return this._bodyArrayBuffer ?
|
|
154
|
+
return this._bodyArrayBuffer ? g(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(E);
|
|
155
155
|
}), this.text = function () {
|
|
156
|
-
var
|
|
157
|
-
|
|
156
|
+
var t,
|
|
157
|
+
e,
|
|
158
158
|
r,
|
|
159
|
-
n =
|
|
159
|
+
n = g(this);
|
|
160
160
|
if (n) return n;
|
|
161
|
-
if (this._bodyBlob) return
|
|
162
|
-
if (this._bodyArrayBuffer) return Promise.resolve(function (
|
|
163
|
-
for (var
|
|
161
|
+
if (this._bodyBlob) return t = this._bodyBlob, r = w(e = new FileReader()), e.readAsText(t), r;
|
|
162
|
+
if (this._bodyArrayBuffer) return Promise.resolve(function (t) {
|
|
163
|
+
for (var e = new Uint8Array(t), r = new Array(e.length), n = 0; n < e.length; n++) r[n] = String.fromCharCode(e[n]);
|
|
164
164
|
return r.join("");
|
|
165
165
|
}(this._bodyArrayBuffer));
|
|
166
166
|
if (this._bodyFormData) throw new Error("could not read FormData body as text");
|
|
167
167
|
return Promise.resolve(this._bodyText);
|
|
168
168
|
}, f && (this.formData = function () {
|
|
169
|
-
return this.text().then(
|
|
169
|
+
return this.text().then(P);
|
|
170
170
|
}), this.json = function () {
|
|
171
171
|
return this.text().then(JSON.parse);
|
|
172
172
|
}, this;
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
var r = this.map[
|
|
177
|
-
this.map[
|
|
178
|
-
},
|
|
179
|
-
delete this.map[y(
|
|
180
|
-
},
|
|
181
|
-
return
|
|
182
|
-
},
|
|
183
|
-
return this.map.hasOwnProperty(y(
|
|
184
|
-
},
|
|
185
|
-
this.map[y(
|
|
186
|
-
},
|
|
187
|
-
for (var r in this.map) this.map.hasOwnProperty(r) &&
|
|
188
|
-
},
|
|
189
|
-
var
|
|
190
|
-
return this.forEach(function (
|
|
191
|
-
|
|
192
|
-
}),
|
|
193
|
-
},
|
|
194
|
-
var
|
|
195
|
-
return this.forEach(function (
|
|
196
|
-
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
199
|
-
var
|
|
200
|
-
return this.forEach(function (
|
|
201
|
-
|
|
202
|
-
}),
|
|
203
|
-
}, c && (
|
|
204
|
-
var
|
|
205
|
-
function
|
|
206
|
-
if (!(this instanceof
|
|
174
|
+
v.prototype.append = function (t, e) {
|
|
175
|
+
t = y(t), e = b(e);
|
|
176
|
+
var r = this.map[t];
|
|
177
|
+
this.map[t] = r ? r + ", " + e : e;
|
|
178
|
+
}, v.prototype.delete = function (t) {
|
|
179
|
+
delete this.map[y(t)];
|
|
180
|
+
}, v.prototype.get = function (t) {
|
|
181
|
+
return t = y(t), this.has(t) ? this.map[t] : null;
|
|
182
|
+
}, v.prototype.has = function (t) {
|
|
183
|
+
return this.map.hasOwnProperty(y(t));
|
|
184
|
+
}, v.prototype.set = function (t, e) {
|
|
185
|
+
this.map[y(t)] = b(e);
|
|
186
|
+
}, v.prototype.forEach = function (t, e) {
|
|
187
|
+
for (var r in this.map) this.map.hasOwnProperty(r) && t.call(e, this.map[r], r, this);
|
|
188
|
+
}, v.prototype.keys = function () {
|
|
189
|
+
var t = [];
|
|
190
|
+
return this.forEach(function (e, r) {
|
|
191
|
+
t.push(r);
|
|
192
|
+
}), m(t);
|
|
193
|
+
}, v.prototype.values = function () {
|
|
194
|
+
var t = [];
|
|
195
|
+
return this.forEach(function (e) {
|
|
196
|
+
t.push(e);
|
|
197
|
+
}), m(t);
|
|
198
|
+
}, v.prototype.entries = function () {
|
|
199
|
+
var t = [];
|
|
200
|
+
return this.forEach(function (e, r) {
|
|
201
|
+
t.push([r, e]);
|
|
202
|
+
}), m(t);
|
|
203
|
+
}, c && (v.prototype[Symbol.iterator] = v.prototype.entries);
|
|
204
|
+
var T = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
|
|
205
|
+
function j(t, e) {
|
|
206
|
+
if (!(this instanceof j)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
207
207
|
var r,
|
|
208
208
|
n,
|
|
209
|
-
o = (
|
|
210
|
-
if (
|
|
211
|
-
if (
|
|
212
|
-
this.url =
|
|
213
|
-
} else this.url = String(
|
|
214
|
-
if (this.credentials =
|
|
215
|
-
if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !==
|
|
209
|
+
o = (e = e || {}).body;
|
|
210
|
+
if (t instanceof j) {
|
|
211
|
+
if (t.bodyUsed) throw new TypeError("Already read");
|
|
212
|
+
this.url = t.url, this.credentials = t.credentials, e.headers || (this.headers = new v(t.headers)), this.method = t.method, this.mode = t.mode, this.signal = t.signal, o || null == t._bodyInit || (o = t._bodyInit, t.bodyUsed = !0);
|
|
213
|
+
} else this.url = String(t);
|
|
214
|
+
if (this.credentials = e.credentials || this.credentials || "same-origin", !e.headers && this.headers || (this.headers = new v(e.headers)), this.method = (n = (r = e.method || this.method || "GET").toUpperCase(), T.indexOf(n) > -1 ? n : r), this.mode = e.mode || this.mode || null, this.signal = e.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
|
|
215
|
+
if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== e.cache && "no-cache" !== e.cache)) {
|
|
216
216
|
var i = /([?&])_=[^&]*/;
|
|
217
217
|
i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
function
|
|
221
|
-
var
|
|
222
|
-
return
|
|
223
|
-
if (
|
|
224
|
-
var r =
|
|
220
|
+
function P(t) {
|
|
221
|
+
var e = new FormData();
|
|
222
|
+
return t.trim().split("&").forEach(function (t) {
|
|
223
|
+
if (t) {
|
|
224
|
+
var r = t.split("="),
|
|
225
225
|
n = r.shift().replace(/\+/g, " "),
|
|
226
226
|
o = r.join("=").replace(/\+/g, " ");
|
|
227
|
-
|
|
227
|
+
e.append(decodeURIComponent(n), decodeURIComponent(o));
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
229
|
+
}), e;
|
|
230
230
|
}
|
|
231
|
-
function S(
|
|
231
|
+
function S(t, e) {
|
|
232
232
|
if (!(this instanceof S)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
233
|
-
|
|
233
|
+
e || (e = {}), this.type = "default", this.status = void 0 === e.status ? 200 : e.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === e.statusText ? "" : "" + e.statusText, this.headers = new v(e.headers), this.url = e.url || "", this._initBody(t);
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
return new
|
|
235
|
+
j.prototype.clone = function () {
|
|
236
|
+
return new j(this, {
|
|
237
237
|
body: this._bodyInit
|
|
238
238
|
});
|
|
239
|
-
}, O.call(
|
|
239
|
+
}, O.call(j.prototype), O.call(S.prototype), S.prototype.clone = function () {
|
|
240
240
|
return new S(this._bodyInit, {
|
|
241
241
|
status: this.status,
|
|
242
242
|
statusText: this.statusText,
|
|
243
|
-
headers: new
|
|
243
|
+
headers: new v(this.headers),
|
|
244
244
|
url: this.url
|
|
245
245
|
});
|
|
246
246
|
}, S.error = function () {
|
|
247
|
-
var
|
|
247
|
+
var t = new S(null, {
|
|
248
248
|
status: 0,
|
|
249
249
|
statusText: ""
|
|
250
250
|
});
|
|
251
|
-
return
|
|
251
|
+
return t.type = "error", t;
|
|
252
252
|
};
|
|
253
|
-
var
|
|
254
|
-
S.redirect = function (
|
|
255
|
-
if (-1 ===
|
|
253
|
+
var U = [301, 302, 303, 307, 308];
|
|
254
|
+
S.redirect = function (t, e) {
|
|
255
|
+
if (-1 === U.indexOf(e)) throw new RangeError("Invalid status code");
|
|
256
256
|
return new S(null, {
|
|
257
|
-
status:
|
|
257
|
+
status: e,
|
|
258
258
|
headers: {
|
|
259
|
-
location:
|
|
259
|
+
location: t
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
};
|
|
263
|
-
var _ =
|
|
263
|
+
var _ = s.DOMException;
|
|
264
264
|
try {
|
|
265
265
|
new _();
|
|
266
|
-
} catch (
|
|
267
|
-
(_ = function (
|
|
268
|
-
this.message =
|
|
269
|
-
var r = Error(
|
|
266
|
+
} catch (t) {
|
|
267
|
+
(_ = function (t, e) {
|
|
268
|
+
this.message = t, this.name = e;
|
|
269
|
+
var r = Error(t);
|
|
270
270
|
this.stack = r.stack;
|
|
271
271
|
}).prototype = Object.create(Error.prototype), _.prototype.constructor = _;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function x(t, e) {
|
|
274
274
|
return new Promise(function (r, n) {
|
|
275
|
-
var o = new
|
|
275
|
+
var o = new j(t, e);
|
|
276
276
|
if (o.signal && o.signal.aborted) return n(new _("Aborted", "AbortError"));
|
|
277
277
|
var i = new XMLHttpRequest();
|
|
278
278
|
function a() {
|
|
279
279
|
i.abort();
|
|
280
280
|
}
|
|
281
281
|
i.onload = function () {
|
|
282
|
-
var
|
|
283
|
-
|
|
282
|
+
var t,
|
|
283
|
+
e,
|
|
284
284
|
n = {
|
|
285
285
|
status: i.status,
|
|
286
286
|
statusText: i.statusText,
|
|
287
|
-
headers: (
|
|
288
|
-
return 0 ===
|
|
289
|
-
}).forEach(function (
|
|
290
|
-
var r =
|
|
287
|
+
headers: (t = i.getAllResponseHeaders() || "", e = new v(), t.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (t) {
|
|
288
|
+
return 0 === t.indexOf("\n") ? t.substr(1, t.length) : t;
|
|
289
|
+
}).forEach(function (t) {
|
|
290
|
+
var r = t.split(":"),
|
|
291
291
|
n = r.shift().trim();
|
|
292
292
|
if (n) {
|
|
293
293
|
var o = r.join(":").trim();
|
|
294
|
-
|
|
294
|
+
e.append(n, o);
|
|
295
295
|
}
|
|
296
|
-
}),
|
|
296
|
+
}), e)
|
|
297
297
|
};
|
|
298
298
|
n.url = "responseURL" in i ? i.responseURL : n.headers.get("X-Request-URL");
|
|
299
299
|
var o = "response" in i ? i.response : i.responseText;
|
|
@@ -312,870 +312,405 @@
|
|
|
312
312
|
setTimeout(function () {
|
|
313
313
|
n(new _("Aborted", "AbortError"));
|
|
314
314
|
}, 0);
|
|
315
|
-
}, i.open(o.method, function (
|
|
315
|
+
}, i.open(o.method, function (t) {
|
|
316
316
|
try {
|
|
317
|
-
return "" ===
|
|
318
|
-
} catch (
|
|
319
|
-
return
|
|
317
|
+
return "" === t && s.location.href ? s.location.href : t;
|
|
318
|
+
} catch (e) {
|
|
319
|
+
return t;
|
|
320
320
|
}
|
|
321
|
-
}(o.url), !0), "include" === o.credentials ? i.withCredentials = !0 : "omit" === o.credentials && (i.withCredentials = !1), "responseType" in i && (l ? i.responseType = "blob" :
|
|
322
|
-
i.setRequestHeader(
|
|
323
|
-
}) : Object.getOwnPropertyNames(
|
|
324
|
-
i.setRequestHeader(
|
|
321
|
+
}(o.url), !0), "include" === o.credentials ? i.withCredentials = !0 : "omit" === o.credentials && (i.withCredentials = !1), "responseType" in i && (l ? i.responseType = "blob" : d && o.headers.get("Content-Type") && -1 !== o.headers.get("Content-Type").indexOf("application/octet-stream") && (i.responseType = "arraybuffer")), !e || "object" != typeof e.headers || e.headers instanceof v ? o.headers.forEach(function (t, e) {
|
|
322
|
+
i.setRequestHeader(e, t);
|
|
323
|
+
}) : Object.getOwnPropertyNames(e.headers).forEach(function (t) {
|
|
324
|
+
i.setRequestHeader(t, b(e.headers[t]));
|
|
325
325
|
}), o.signal && (o.signal.addEventListener("abort", a), i.onreadystatechange = function () {
|
|
326
326
|
4 === i.readyState && o.signal.removeEventListener("abort", a);
|
|
327
327
|
}), i.send(void 0 === o._bodyInit ? null : o._bodyInit);
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
if (!function (
|
|
332
|
-
return null !=
|
|
333
|
-
}(
|
|
330
|
+
function B(t, e) {
|
|
331
|
+
if (!function (t) {
|
|
332
|
+
return null != t;
|
|
333
|
+
}(t)) throw new Error(null != e ? e : "Value must be defined");
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
if ("function" != typeof
|
|
335
|
+
function k(t, e) {
|
|
336
|
+
if ("function" != typeof t) throw new Error(null != e ? e : "Value must be defined");
|
|
337
337
|
}
|
|
338
|
-
function
|
|
339
|
-
if (!(
|
|
338
|
+
function I(t, e) {
|
|
339
|
+
if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
for (var n = 0; n <
|
|
343
|
-
var o =
|
|
344
|
-
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(
|
|
341
|
+
function R(t, e) {
|
|
342
|
+
for (var n = 0; n < e.length; n++) {
|
|
343
|
+
var o = e[n];
|
|
344
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, r(o.key), o);
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return
|
|
347
|
+
function D(t, e, r) {
|
|
348
|
+
return e && R(t.prototype, e), r && R(t, r), Object.defineProperty(t, "prototype", {
|
|
349
349
|
writable: !1
|
|
350
|
-
}),
|
|
351
|
-
}
|
|
352
|
-
function D(e, r) {
|
|
353
|
-
if (r && ("object" == t(r) || "function" == typeof r)) return r;
|
|
354
|
-
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
355
|
-
return function (e) {
|
|
356
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
357
|
-
return e;
|
|
358
|
-
}(e);
|
|
359
|
-
}
|
|
360
|
-
function F(e) {
|
|
361
|
-
return F = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (e) {
|
|
362
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
363
|
-
}, F(e);
|
|
350
|
+
}), t;
|
|
364
351
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
367
|
-
return
|
|
368
|
-
},
|
|
352
|
+
function C(t) {
|
|
353
|
+
return C = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
354
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
355
|
+
}, C(t);
|
|
369
356
|
}
|
|
370
|
-
function
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
value: e,
|
|
375
|
-
writable: !0,
|
|
376
|
-
configurable: !0
|
|
377
|
-
}
|
|
378
|
-
}), Object.defineProperty(e, "prototype", {
|
|
379
|
-
writable: !1
|
|
380
|
-
}), t && M(e, t);
|
|
357
|
+
function F(t, e) {
|
|
358
|
+
return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
359
|
+
return t.__proto__ = e, t;
|
|
360
|
+
}, F(t, e);
|
|
381
361
|
}
|
|
382
|
-
function
|
|
362
|
+
function N() {
|
|
383
363
|
try {
|
|
384
|
-
var
|
|
385
|
-
} catch (
|
|
386
|
-
return (
|
|
387
|
-
return !!
|
|
364
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
365
|
+
} catch (t) {}
|
|
366
|
+
return (N = function () {
|
|
367
|
+
return !!t;
|
|
388
368
|
})();
|
|
389
369
|
}
|
|
390
|
-
function
|
|
391
|
-
var
|
|
392
|
-
return
|
|
393
|
-
if (null ===
|
|
370
|
+
function L(t) {
|
|
371
|
+
var e = "function" == typeof Map ? new Map() : void 0;
|
|
372
|
+
return L = function (t) {
|
|
373
|
+
if (null === t || !function (t) {
|
|
394
374
|
try {
|
|
395
|
-
return -1 !== Function.toString.call(
|
|
396
|
-
} catch (
|
|
397
|
-
return "function" == typeof
|
|
375
|
+
return -1 !== Function.toString.call(t).indexOf("[native code]");
|
|
376
|
+
} catch (e) {
|
|
377
|
+
return "function" == typeof t;
|
|
398
378
|
}
|
|
399
|
-
}(
|
|
400
|
-
if ("function" != typeof
|
|
401
|
-
if (void 0 !==
|
|
402
|
-
if (
|
|
403
|
-
|
|
379
|
+
}(t)) return t;
|
|
380
|
+
if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
|
|
381
|
+
if (void 0 !== e) {
|
|
382
|
+
if (e.has(t)) return e.get(t);
|
|
383
|
+
e.set(t, r);
|
|
404
384
|
}
|
|
405
385
|
function r() {
|
|
406
|
-
return function (
|
|
407
|
-
if (
|
|
386
|
+
return function (t, e, r) {
|
|
387
|
+
if (N()) return Reflect.construct.apply(null, arguments);
|
|
408
388
|
var n = [null];
|
|
409
|
-
n.push.apply(n,
|
|
410
|
-
var o = new (
|
|
411
|
-
return r &&
|
|
412
|
-
}(
|
|
389
|
+
n.push.apply(n, e);
|
|
390
|
+
var o = new (t.bind.apply(t, n))();
|
|
391
|
+
return r && F(o, r.prototype), o;
|
|
392
|
+
}(t, arguments, C(this).constructor);
|
|
413
393
|
}
|
|
414
|
-
return r.prototype = Object.create(
|
|
394
|
+
return r.prototype = Object.create(t.prototype, {
|
|
415
395
|
constructor: {
|
|
416
396
|
value: r,
|
|
417
397
|
enumerable: !1,
|
|
418
398
|
writable: !0,
|
|
419
399
|
configurable: !0
|
|
420
400
|
}
|
|
421
|
-
}),
|
|
422
|
-
},
|
|
401
|
+
}), F(r, t);
|
|
402
|
+
}, L(t);
|
|
423
403
|
}
|
|
424
|
-
function
|
|
404
|
+
function z() {
|
|
425
405
|
try {
|
|
426
|
-
var
|
|
427
|
-
} catch (
|
|
428
|
-
return (
|
|
429
|
-
return !!
|
|
406
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
407
|
+
} catch (t) {}
|
|
408
|
+
return (z = function () {
|
|
409
|
+
return !!t;
|
|
430
410
|
})();
|
|
431
411
|
}
|
|
432
|
-
function q(
|
|
412
|
+
function q(t) {
|
|
433
413
|
return H.apply(this, arguments);
|
|
434
414
|
}
|
|
435
415
|
function H() {
|
|
436
|
-
return (H = i(regeneratorRuntime.mark(function e
|
|
416
|
+
return (H = i(regeneratorRuntime.mark(function t(e) {
|
|
437
417
|
var r, n;
|
|
438
|
-
return regeneratorRuntime.wrap(function (
|
|
439
|
-
for (;;) switch (
|
|
418
|
+
return regeneratorRuntime.wrap(function (t) {
|
|
419
|
+
for (;;) switch (t.prev = t.next) {
|
|
440
420
|
case 0:
|
|
441
|
-
return
|
|
421
|
+
return t.prev = 0, t.next = 3, fetch(e, {
|
|
442
422
|
method: "GET",
|
|
443
423
|
mode: "cors",
|
|
444
424
|
credentials: "include"
|
|
445
425
|
});
|
|
446
426
|
case 3:
|
|
447
|
-
return r =
|
|
427
|
+
return r = t.sent, t.abrupt("return", new V(r));
|
|
448
428
|
case 7:
|
|
449
|
-
return
|
|
429
|
+
return t.prev = 7, t.t0 = t.catch(0), n = t.t0, t.abrupt("return", {
|
|
450
430
|
error: n.message,
|
|
451
431
|
type: n.name,
|
|
452
432
|
stack: n.stack
|
|
453
433
|
});
|
|
454
434
|
case 11:
|
|
455
435
|
case "end":
|
|
456
|
-
return
|
|
436
|
+
return t.stop();
|
|
457
437
|
}
|
|
458
|
-
},
|
|
438
|
+
}, t, null, [[0, 7]]);
|
|
459
439
|
}))).apply(this, arguments);
|
|
460
440
|
}
|
|
461
|
-
|
|
462
|
-
var
|
|
463
|
-
function t
|
|
464
|
-
var
|
|
465
|
-
return
|
|
466
|
-
|
|
467
|
-
|
|
441
|
+
x.polyfill = !0, s.fetch || (s.fetch = x, s.Headers = v, s.Request = j, s.Response = S);
|
|
442
|
+
var V = function (t) {
|
|
443
|
+
function r(t) {
|
|
444
|
+
var n, o, i, a;
|
|
445
|
+
return I(this, r), o = this, a = ["Network error occurred."], i = C(i = r), (n = function (t, r) {
|
|
446
|
+
if (r && ("object" == e(r) || "function" == typeof r)) return r;
|
|
447
|
+
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
448
|
+
return function (t) {
|
|
449
|
+
if (void 0 === t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
450
|
+
return t;
|
|
451
|
+
}(t);
|
|
452
|
+
}(o, z() ? Reflect.construct(i, a || [], C(o).constructor) : i.apply(o, a))).status = void 0, n.statusText = void 0, n.ok = void 0, n.headers = void 0, n.status = t.status, n.statusText = t.statusText, n.ok = t.ok, n.headers = Object.fromEntries(t.headers.entries()), n;
|
|
453
|
+
}
|
|
454
|
+
return function (t, e) {
|
|
455
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
456
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
457
|
+
constructor: {
|
|
458
|
+
value: t,
|
|
459
|
+
writable: !0,
|
|
460
|
+
configurable: !0
|
|
461
|
+
}
|
|
462
|
+
}), Object.defineProperty(t, "prototype", {
|
|
463
|
+
writable: !1
|
|
464
|
+
}), e && F(t, e);
|
|
465
|
+
}(r, t), D(r, [{
|
|
468
466
|
key: "toString",
|
|
469
467
|
value: function () {
|
|
470
|
-
var
|
|
471
|
-
|
|
472
|
-
return "".concat(
|
|
468
|
+
var t = "".concat(r.name, ": ").concat(this.message),
|
|
469
|
+
e = " Info: ".concat(JSON.stringify(this));
|
|
470
|
+
return "".concat(t, "\n").concat(e);
|
|
473
471
|
}
|
|
474
472
|
}]);
|
|
475
|
-
}(
|
|
476
|
-
Z = function (
|
|
477
|
-
return
|
|
473
|
+
}(L(Error)),
|
|
474
|
+
Z = function (t) {
|
|
475
|
+
return t[t.NotFound = 404] = "NotFound", t;
|
|
478
476
|
}({}),
|
|
479
|
-
|
|
480
|
-
return
|
|
481
|
-
|
|
477
|
+
G = function () {
|
|
478
|
+
return D(function t() {
|
|
479
|
+
I(this, t);
|
|
482
480
|
}, null, [{
|
|
483
481
|
key: "script",
|
|
484
|
-
value: function (
|
|
485
|
-
var
|
|
482
|
+
value: function (t) {
|
|
483
|
+
var e = document.getElementsByTagName("head")[0] || document.documentElement,
|
|
486
484
|
r = document.createElement("script"),
|
|
487
|
-
n =
|
|
485
|
+
n = M(),
|
|
488
486
|
o = n.promise,
|
|
489
487
|
a = n.resolve,
|
|
490
|
-
|
|
491
|
-
function
|
|
488
|
+
s = n.reject;
|
|
489
|
+
function u() {
|
|
492
490
|
(!r.readyState || "loaded" === r.readyState || "complete" === r.readyState) && a();
|
|
493
491
|
}
|
|
494
|
-
return r.onload =
|
|
492
|
+
return r.onload = u, r.onreadystatechange = u, r.onerror = i(regeneratorRuntime.mark(function e() {
|
|
495
493
|
var n;
|
|
496
|
-
return regeneratorRuntime.wrap(function (
|
|
497
|
-
for (;;) switch (
|
|
494
|
+
return regeneratorRuntime.wrap(function (e) {
|
|
495
|
+
for (;;) switch (e.prev = e.next) {
|
|
498
496
|
case 0:
|
|
499
|
-
return r.parentNode && r.parentNode.removeChild(r),
|
|
497
|
+
return r.parentNode && r.parentNode.removeChild(r), e.next = 3, q(t);
|
|
500
498
|
case 3:
|
|
501
|
-
n =
|
|
499
|
+
n = e.sent, s(n);
|
|
502
500
|
case 5:
|
|
503
501
|
case "end":
|
|
504
|
-
return
|
|
502
|
+
return e.stop();
|
|
505
503
|
}
|
|
506
|
-
},
|
|
507
|
-
})), r.src =
|
|
504
|
+
}, e);
|
|
505
|
+
})), r.src = t, e.appendChild(r), o;
|
|
508
506
|
}
|
|
509
507
|
}, {
|
|
510
508
|
key: "styleSheet",
|
|
511
|
-
value: function (
|
|
512
|
-
var
|
|
509
|
+
value: function (t) {
|
|
510
|
+
var e,
|
|
513
511
|
r = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
|
|
514
|
-
n = null !== (
|
|
512
|
+
n = null !== (e = document.getElementsByTagName("head")[0]) && void 0 !== e ? e : document.documentElement,
|
|
515
513
|
o = document.createElement("link");
|
|
516
|
-
o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href",
|
|
517
|
-
var i =
|
|
514
|
+
o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", t);
|
|
515
|
+
var i = M(),
|
|
518
516
|
a = i.promise,
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
return o.addEventListener("load",
|
|
522
|
-
r ?
|
|
517
|
+
s = i.resolve,
|
|
518
|
+
u = i.reject;
|
|
519
|
+
return o.addEventListener("load", s), o.addEventListener("error", function () {
|
|
520
|
+
r ? s() : u();
|
|
523
521
|
}), n.appendChild(o), a;
|
|
524
522
|
}
|
|
525
523
|
}]);
|
|
526
524
|
}(),
|
|
527
|
-
|
|
528
|
-
var
|
|
525
|
+
M = function () {
|
|
526
|
+
var t, e;
|
|
529
527
|
return {
|
|
530
528
|
promise: new Promise(function (r, n) {
|
|
531
|
-
|
|
529
|
+
t = r, e = n;
|
|
532
530
|
}),
|
|
533
|
-
resolve:
|
|
534
|
-
reject:
|
|
531
|
+
resolve: t,
|
|
532
|
+
reject: e
|
|
535
533
|
};
|
|
536
534
|
};
|
|
537
|
-
function
|
|
538
|
-
var n = function (
|
|
539
|
-
if (void 0 ===
|
|
540
|
-
for (var r = [], n = 0, o = Object.keys(
|
|
535
|
+
function $(e, r) {
|
|
536
|
+
var n = function (t, e) {
|
|
537
|
+
if (void 0 === e) return t;
|
|
538
|
+
for (var r = [], n = 0, o = Object.keys(e); n < o.length; n++) {
|
|
541
539
|
var i = o[n],
|
|
542
|
-
a =
|
|
540
|
+
a = e[i];
|
|
543
541
|
null != a && r.push("".concat(i, "=").concat(encodeURIComponent(a)));
|
|
544
542
|
}
|
|
545
|
-
return 0 === r.length ?
|
|
546
|
-
}(
|
|
543
|
+
return 0 === r.length ? t : t + "?" + r.join("&");
|
|
544
|
+
}(e, r);
|
|
547
545
|
return function () {
|
|
548
|
-
var
|
|
549
|
-
r =
|
|
550
|
-
return "".concat(r, "/").concat(
|
|
546
|
+
var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
|
|
547
|
+
r = t.g.CF.keformsUrl || "";
|
|
548
|
+
return "".concat(r, "/").concat(e).replace(/([^:])\/{2,}/g, "$1/");
|
|
551
549
|
}(n);
|
|
552
550
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
551
|
+
function J(t, e) {
|
|
552
|
+
return $("static/public/".concat(t), e);
|
|
555
553
|
}
|
|
556
|
-
function
|
|
557
|
-
return
|
|
554
|
+
function X(t, e) {
|
|
555
|
+
return J("scripts/".concat(t), e);
|
|
558
556
|
}
|
|
559
|
-
function
|
|
560
|
-
return
|
|
557
|
+
function K(t, e) {
|
|
558
|
+
return J("styles/".concat(t), e);
|
|
561
559
|
}
|
|
562
|
-
function
|
|
563
|
-
return "string" == typeof
|
|
560
|
+
function Q(t) {
|
|
561
|
+
return "string" == typeof t ? "false" !== t && "true" === t : Boolean(t);
|
|
564
562
|
}
|
|
565
|
-
var
|
|
566
|
-
authorized:
|
|
563
|
+
var W = {
|
|
564
|
+
authorized: Q("{authorized}"),
|
|
567
565
|
cauldronApiUrl: "{cauldronApiUrl}",
|
|
568
|
-
isTestServer:
|
|
569
|
-
renderCachingForIE8:
|
|
570
|
-
normalizationOnServer:
|
|
566
|
+
isTestServer: Q("{isTestServer}"),
|
|
567
|
+
renderCachingForIE8: Q("{renderCachingForIE8}"),
|
|
568
|
+
normalizationOnServer: Q("{normalizationOnServer}"),
|
|
571
569
|
normativeUrl: "{normativeUrl}",
|
|
572
570
|
ndsPlusApiUrl: "{ndsPlusApiUrl}",
|
|
573
571
|
konturDomains: "{konturDomains}"
|
|
574
572
|
};
|
|
575
|
-
function
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
function re() {
|
|
579
|
-
try {
|
|
580
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
581
|
-
} catch (e) {}
|
|
582
|
-
return (re = function () {
|
|
583
|
-
return !!e;
|
|
584
|
-
})();
|
|
585
|
-
}
|
|
586
|
-
var ne = function (e) {
|
|
587
|
-
function t() {
|
|
588
|
-
return B(this, t), te(this, t, ["Operation not implemented"]);
|
|
589
|
-
}
|
|
590
|
-
return N(t, e), I(t);
|
|
591
|
-
}(function (e) {
|
|
592
|
-
function t(e) {
|
|
593
|
-
var r;
|
|
594
|
-
return B(this, t), (r = te(this, t, [e])).name = r.constructor.name, r;
|
|
595
|
-
}
|
|
596
|
-
return N(t, e), I(t);
|
|
597
|
-
}(z(Error)));
|
|
598
|
-
function oe(e, t) {
|
|
599
|
-
var r = Object.keys(e);
|
|
573
|
+
function Y(t, e) {
|
|
574
|
+
var r = Object.keys(t);
|
|
600
575
|
if (Object.getOwnPropertySymbols) {
|
|
601
|
-
var n = Object.getOwnPropertySymbols(
|
|
602
|
-
|
|
603
|
-
return Object.getOwnPropertyDescriptor(
|
|
576
|
+
var n = Object.getOwnPropertySymbols(t);
|
|
577
|
+
e && (n = n.filter(function (e) {
|
|
578
|
+
return Object.getOwnPropertyDescriptor(t, e).enumerable;
|
|
604
579
|
})), r.push.apply(r, n);
|
|
605
580
|
}
|
|
606
581
|
return r;
|
|
607
582
|
}
|
|
608
|
-
function
|
|
609
|
-
for (var
|
|
610
|
-
var r = null != arguments[
|
|
611
|
-
|
|
612
|
-
n(
|
|
613
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
614
|
-
Object.defineProperty(
|
|
583
|
+
function tt(t) {
|
|
584
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
585
|
+
var r = null != arguments[e] ? arguments[e] : {};
|
|
586
|
+
e % 2 ? Y(Object(r), !0).forEach(function (e) {
|
|
587
|
+
n(t, e, r[e]);
|
|
588
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : Y(Object(r)).forEach(function (e) {
|
|
589
|
+
Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e));
|
|
615
590
|
});
|
|
616
591
|
}
|
|
617
|
-
return
|
|
618
|
-
}
|
|
619
|
-
function
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
return
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
return e[t] && Object.prototype.hasOwnProperty.call(e[t], "value");
|
|
629
|
-
}).map(function (t) {
|
|
630
|
-
var r = e[t];
|
|
631
|
-
return null == r ? {} : n({}, t, r.value);
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
function se(e) {
|
|
635
|
-
return e.reduce(function (e, t) {
|
|
636
|
-
return ie(ie({}, e), t);
|
|
637
|
-
}, {});
|
|
638
|
-
}
|
|
639
|
-
var ce = function () {
|
|
640
|
-
return I(function e(t) {
|
|
641
|
-
B(this, e), this.form = void 0, this.modalFormsRegistry = void 0, this.fsPrinterClient = void 0, this.form = t;
|
|
642
|
-
}, [{
|
|
643
|
-
key: "navigateByHighlanderPaths",
|
|
644
|
-
value: function () {
|
|
645
|
-
throw new Error("Method not implemented.");
|
|
646
|
-
}
|
|
647
|
-
}, {
|
|
648
|
-
key: "getStaffClient",
|
|
649
|
-
value: function () {
|
|
650
|
-
throw new Error("Method not implemented.");
|
|
651
|
-
}
|
|
652
|
-
}, {
|
|
653
|
-
key: "cancelSelectRelative",
|
|
654
|
-
value: function () {
|
|
655
|
-
throw new Error("Method not implemented.");
|
|
656
|
-
}
|
|
657
|
-
}, {
|
|
658
|
-
key: "getNavigationPathMapper",
|
|
659
|
-
value: function () {
|
|
660
|
-
throw new Error("Method not implemented.");
|
|
661
|
-
}
|
|
662
|
-
}, {
|
|
663
|
-
key: "batchUpdate",
|
|
664
|
-
value: function () {
|
|
665
|
-
throw new Error("Method not implemented.");
|
|
666
|
-
}
|
|
667
|
-
}, {
|
|
668
|
-
key: "runCheck",
|
|
669
|
-
value: function () {
|
|
670
|
-
throw new Error("Method not implemented.");
|
|
671
|
-
}
|
|
672
|
-
}, {
|
|
673
|
-
key: "setErrorLog",
|
|
674
|
-
value: function () {
|
|
675
|
-
throw new Error("Method not implemented.");
|
|
676
|
-
}
|
|
677
|
-
}, {
|
|
678
|
-
key: "validateChildrenByPath",
|
|
679
|
-
value: (u = i(regeneratorRuntime.mark(function e() {
|
|
680
|
-
return regeneratorRuntime.wrap(function (e) {
|
|
681
|
-
for (;;) switch (e.prev = e.next) {
|
|
682
|
-
case 0:
|
|
683
|
-
throw new Error("Method not implemented.");
|
|
684
|
-
case 1:
|
|
685
|
-
case "end":
|
|
686
|
-
return e.stop();
|
|
687
|
-
}
|
|
688
|
-
}, e);
|
|
689
|
-
})), function () {
|
|
690
|
-
return u.apply(this, arguments);
|
|
691
|
-
})
|
|
692
|
-
}, {
|
|
693
|
-
key: "__INTERNAL__importFromEmployeeService",
|
|
694
|
-
value: function () {
|
|
695
|
-
throw new Error("Method not implemented.");
|
|
696
|
-
}
|
|
697
|
-
}, {
|
|
698
|
-
key: "__INTERNAL__getSelectFunctionForDisableEmployeeInSS",
|
|
699
|
-
value: (a = i(regeneratorRuntime.mark(function e() {
|
|
700
|
-
return regeneratorRuntime.wrap(function (e) {
|
|
701
|
-
for (;;) switch (e.prev = e.next) {
|
|
702
|
-
case 0:
|
|
703
|
-
throw new Error("Method not implemented.");
|
|
704
|
-
case 1:
|
|
705
|
-
case "end":
|
|
706
|
-
return e.stop();
|
|
707
|
-
}
|
|
708
|
-
}, e);
|
|
709
|
-
})), function () {
|
|
710
|
-
return a.apply(this, arguments);
|
|
711
|
-
})
|
|
712
|
-
}, {
|
|
713
|
-
key: "getModalUnitOpenedInstance",
|
|
714
|
-
value: function () {
|
|
715
|
-
throw new Error("Method not implemented.");
|
|
716
|
-
}
|
|
717
|
-
}, {
|
|
718
|
-
key: "getTabsState",
|
|
719
|
-
value: function () {
|
|
720
|
-
throw new Error("Method not implemented.");
|
|
721
|
-
}
|
|
722
|
-
}, {
|
|
723
|
-
key: "navigate",
|
|
724
|
-
value: function () {
|
|
725
|
-
throw new Error("Method not implemented.");
|
|
726
|
-
}
|
|
727
|
-
}, {
|
|
728
|
-
key: "importEmployerDocuments",
|
|
729
|
-
value: function () {
|
|
730
|
-
throw new Error("Method not implemented.");
|
|
731
|
-
}
|
|
732
|
-
}, {
|
|
733
|
-
key: "importEmployees",
|
|
734
|
-
value: function () {
|
|
735
|
-
throw new Error("Method not implemented.");
|
|
736
|
-
}
|
|
737
|
-
}, {
|
|
738
|
-
key: "print",
|
|
739
|
-
value: function () {
|
|
740
|
-
throw new Error("Method not implemented.");
|
|
741
|
-
}
|
|
742
|
-
}, {
|
|
743
|
-
key: "runMassAction",
|
|
744
|
-
value: function () {
|
|
745
|
-
throw new Error("Method not implemented.");
|
|
746
|
-
}
|
|
747
|
-
}, {
|
|
748
|
-
key: "getByGId",
|
|
749
|
-
value: function (e, t) {
|
|
750
|
-
return this.form.picklistsProvider.getDigestApiPicklist(e).query(t);
|
|
751
|
-
}
|
|
752
|
-
}, {
|
|
753
|
-
key: "on",
|
|
754
|
-
value: function (e, t) {
|
|
755
|
-
this.form.eventManager.on(["form", e], t);
|
|
756
|
-
}
|
|
757
|
-
}, {
|
|
758
|
-
key: "off",
|
|
759
|
-
value: function (e, t) {
|
|
760
|
-
this.form.eventManager.off(["form", e], t);
|
|
761
|
-
}
|
|
762
|
-
}, {
|
|
763
|
-
key: "onBeforeModelChange",
|
|
764
|
-
value: function () {
|
|
765
|
-
throw Error("form.onBeforeModelChange() is not supported yet");
|
|
766
|
-
}
|
|
767
|
-
}, {
|
|
768
|
-
key: "onModelChange",
|
|
769
|
-
value: function () {
|
|
770
|
-
throw Error("form.onModelChange() is not supported yet");
|
|
771
|
-
}
|
|
772
|
-
}, {
|
|
773
|
-
key: "save",
|
|
774
|
-
value: function () {
|
|
775
|
-
return this.form.changeSet.send();
|
|
776
|
-
}
|
|
777
|
-
}, {
|
|
778
|
-
key: "close",
|
|
779
|
-
value: function () {
|
|
780
|
-
return this.form.changeSet.stopAutosend(), this.form.unmount && this.form.unmount(), this.form.changeSet.send();
|
|
781
|
-
}
|
|
782
|
-
}, {
|
|
783
|
-
key: "getTourSteps",
|
|
784
|
-
value: function () {
|
|
785
|
-
return [];
|
|
786
|
-
}
|
|
787
|
-
}, {
|
|
788
|
-
key: "validate",
|
|
789
|
-
value: function () {
|
|
790
|
-
var e = Object.keys(this.form.model.getChunk(this.form.settings.formRoot));
|
|
791
|
-
return this.form.validator.validateAll(e);
|
|
792
|
-
}
|
|
793
|
-
}, {
|
|
794
|
-
key: "getAdditionalEmployeeInfo",
|
|
795
|
-
value: function () {
|
|
796
|
-
throw new Error("not implemented");
|
|
797
|
-
}
|
|
798
|
-
}, {
|
|
799
|
-
key: "getEmployees",
|
|
800
|
-
value: function () {
|
|
801
|
-
throw new Error("not implemented");
|
|
802
|
-
}
|
|
803
|
-
}, {
|
|
804
|
-
key: "mergeRelative",
|
|
805
|
-
value: function () {
|
|
806
|
-
throw new Error("not implemented");
|
|
807
|
-
}
|
|
808
|
-
}, {
|
|
809
|
-
key: "patchRelative",
|
|
810
|
-
value: function () {
|
|
811
|
-
throw new Error("not implemented");
|
|
812
|
-
}
|
|
813
|
-
}, {
|
|
814
|
-
key: "sendMetrics",
|
|
815
|
-
value: function () {}
|
|
816
|
-
}, {
|
|
817
|
-
key: "matchEmployee",
|
|
818
|
-
value: function () {
|
|
819
|
-
throw new Error("not implemented");
|
|
820
|
-
}
|
|
821
|
-
}, {
|
|
822
|
-
key: "reloadInner",
|
|
823
|
-
value: (o = i(regeneratorRuntime.mark(function e() {
|
|
824
|
-
return regeneratorRuntime.wrap(function (e) {
|
|
825
|
-
for (;;) switch (e.prev = e.next) {
|
|
826
|
-
case 0:
|
|
827
|
-
throw new Error("not implemented");
|
|
828
|
-
case 1:
|
|
829
|
-
case "end":
|
|
830
|
-
return e.stop();
|
|
831
|
-
}
|
|
832
|
-
}, e);
|
|
833
|
-
})), function () {
|
|
834
|
-
return o.apply(this, arguments);
|
|
835
|
-
})
|
|
836
|
-
}, {
|
|
837
|
-
key: "getWorkingEventsForEmployee",
|
|
838
|
-
value: function () {
|
|
839
|
-
throw new Error("not implemented");
|
|
840
|
-
}
|
|
841
|
-
}, {
|
|
842
|
-
key: "hasErrors",
|
|
843
|
-
value: function () {
|
|
844
|
-
var e = this.form.model.get(this.form.settings.formRoot, "errorsCount");
|
|
845
|
-
return null != e && e > 0;
|
|
846
|
-
}
|
|
847
|
-
}, {
|
|
848
|
-
key: "onErrorsCountChanged",
|
|
849
|
-
value: function (e) {
|
|
850
|
-
this.form.eventManager.on(ae(this.form.settings.formRoot, "errorsCount"), e);
|
|
851
|
-
}
|
|
852
|
-
}, {
|
|
853
|
-
key: "offErrorsCountChanged",
|
|
854
|
-
value: function (e) {
|
|
855
|
-
this.form.eventManager.off(ae(this.form.settings.formRoot, "errorsCount"), e);
|
|
856
|
-
}
|
|
857
|
-
}, {
|
|
858
|
-
key: "set",
|
|
859
|
-
value: function (e, r) {
|
|
860
|
-
if (null === e || "string" == typeof e || "object" !== t(e) || Array.isArray(e)) {
|
|
861
|
-
if ("string" != typeof e) throw new Error("form.set() parameter should be string path or object with path-value pairs");
|
|
862
|
-
this.form.model.set(e, "value", r);
|
|
863
|
-
} else {
|
|
864
|
-
var o = Object.keys(e).reduce(function (t, r) {
|
|
865
|
-
return ie(n({}, r, {
|
|
866
|
-
value: e[r]
|
|
867
|
-
}), t);
|
|
868
|
-
}, {});
|
|
869
|
-
this.form.model.fill(o);
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}, {
|
|
873
|
-
key: "get",
|
|
874
|
-
value: function (e) {
|
|
875
|
-
var t = this;
|
|
876
|
-
if (Array.isArray(e)) return se(e.map(function (e) {
|
|
877
|
-
return ue(t.form.model.getChunk(e));
|
|
878
|
-
}).reduce(function (e, t) {
|
|
879
|
-
return e.concat(t);
|
|
880
|
-
}, []));
|
|
881
|
-
if ("string" == typeof e) return se(ue(this.form.model.getChunk(e)));
|
|
882
|
-
if (void 0 === e) return se(ue(this.form.model.getChunk(this.form.settings.formRoot)));
|
|
883
|
-
throw new Error("form.get() parameter should be string path or array of paths");
|
|
884
|
-
}
|
|
885
|
-
}, {
|
|
886
|
-
key: "getValue",
|
|
887
|
-
value: function (e) {
|
|
888
|
-
return this.form.model.get(e, "value");
|
|
889
|
-
}
|
|
890
|
-
}, {
|
|
891
|
-
key: "copySubtree",
|
|
892
|
-
value: function () {
|
|
893
|
-
throw new ne();
|
|
894
|
-
}
|
|
895
|
-
}, {
|
|
896
|
-
key: "addInstance",
|
|
897
|
-
value: function () {
|
|
898
|
-
throw new ne();
|
|
899
|
-
}
|
|
900
|
-
}, {
|
|
901
|
-
key: "getChildren",
|
|
902
|
-
value: function () {
|
|
903
|
-
throw new ne();
|
|
904
|
-
}
|
|
905
|
-
}, {
|
|
906
|
-
key: "getPicklistData",
|
|
907
|
-
value: (r = i(regeneratorRuntime.mark(function e() {
|
|
908
|
-
return regeneratorRuntime.wrap(function (e) {
|
|
909
|
-
for (;;) switch (e.prev = e.next) {
|
|
910
|
-
case 0:
|
|
911
|
-
throw new ne();
|
|
912
|
-
case 1:
|
|
913
|
-
case "end":
|
|
914
|
-
return e.stop();
|
|
915
|
-
}
|
|
916
|
-
}, e);
|
|
917
|
-
})), function () {
|
|
918
|
-
return r.apply(this, arguments);
|
|
919
|
-
})
|
|
920
|
-
}, {
|
|
921
|
-
key: "uuidGenerate",
|
|
922
|
-
value: function () {
|
|
923
|
-
throw new ne();
|
|
924
|
-
}
|
|
925
|
-
}, {
|
|
926
|
-
key: "showModal",
|
|
927
|
-
value: function () {
|
|
928
|
-
throw new ne();
|
|
929
|
-
}
|
|
930
|
-
}, {
|
|
931
|
-
key: "addSection",
|
|
932
|
-
value: function () {
|
|
933
|
-
throw new ne();
|
|
934
|
-
}
|
|
935
|
-
}, {
|
|
936
|
-
key: "callInitSection",
|
|
937
|
-
value: function () {
|
|
938
|
-
throw new ne();
|
|
939
|
-
}
|
|
940
|
-
}, {
|
|
941
|
-
key: "preferredInterdocumentTransfer",
|
|
942
|
-
value: function () {
|
|
943
|
-
throw new ne();
|
|
944
|
-
}
|
|
945
|
-
}, {
|
|
946
|
-
key: "createFiasApiClient",
|
|
947
|
-
value: function () {
|
|
948
|
-
throw new ne();
|
|
949
|
-
}
|
|
950
|
-
}, {
|
|
951
|
-
key: "openEmployeeEditor",
|
|
952
|
-
value: function () {
|
|
953
|
-
throw new ne();
|
|
954
|
-
}
|
|
955
|
-
}, {
|
|
956
|
-
key: "removeInstance",
|
|
957
|
-
value: function () {
|
|
958
|
-
throw new ne();
|
|
959
|
-
}
|
|
960
|
-
}, {
|
|
961
|
-
key: "removeInstances",
|
|
962
|
-
value: function () {
|
|
963
|
-
throw new ne();
|
|
964
|
-
}
|
|
965
|
-
}, {
|
|
966
|
-
key: "focusOnControlIfExist",
|
|
967
|
-
value: function () {
|
|
968
|
-
throw new ne();
|
|
969
|
-
}
|
|
970
|
-
}, {
|
|
971
|
-
key: "setAutoFieldsToAutoValue",
|
|
972
|
-
value: function () {
|
|
973
|
-
return Promise.resolve(void 0);
|
|
974
|
-
}
|
|
975
|
-
}, {
|
|
976
|
-
key: "getInnerForm",
|
|
977
|
-
value: function () {
|
|
978
|
-
throw new ne();
|
|
979
|
-
}
|
|
980
|
-
}, {
|
|
981
|
-
key: "getAttachmentPublicFormByPath",
|
|
982
|
-
value: function () {
|
|
983
|
-
throw new ne();
|
|
984
|
-
}
|
|
985
|
-
}, {
|
|
986
|
-
key: "getGfv",
|
|
987
|
-
value: function () {
|
|
988
|
-
throw new ne();
|
|
989
|
-
}
|
|
990
|
-
}, {
|
|
991
|
-
key: "ensureInstanceFullyLoaded",
|
|
992
|
-
value: function () {
|
|
993
|
-
throw new Error("Method not implemented.");
|
|
994
|
-
}
|
|
995
|
-
}, {
|
|
996
|
-
key: "customNormalize",
|
|
997
|
-
value: function () {
|
|
998
|
-
throw new ne();
|
|
999
|
-
}
|
|
1000
|
-
}, {
|
|
1001
|
-
key: "removeInstancesByRules",
|
|
1002
|
-
value: function () {
|
|
1003
|
-
throw new ne();
|
|
1004
|
-
}
|
|
1005
|
-
}, {
|
|
1006
|
-
key: "createDnp",
|
|
1007
|
-
value: function () {
|
|
1008
|
-
throw new ne();
|
|
1009
|
-
}
|
|
1010
|
-
}, {
|
|
1011
|
-
key: "getSelectedInstances",
|
|
1012
|
-
value: function () {
|
|
1013
|
-
return Promise.resolve([]);
|
|
1014
|
-
}
|
|
1015
|
-
}, {
|
|
1016
|
-
key: "clearFormWithReload",
|
|
1017
|
-
value: (e = i(regeneratorRuntime.mark(function e() {
|
|
1018
|
-
return regeneratorRuntime.wrap(function (e) {
|
|
1019
|
-
for (;;) switch (e.prev = e.next) {
|
|
1020
|
-
case 0:
|
|
1021
|
-
throw new ne();
|
|
1022
|
-
case 1:
|
|
1023
|
-
case "end":
|
|
1024
|
-
return e.stop();
|
|
1025
|
-
}
|
|
1026
|
-
}, e);
|
|
1027
|
-
})), function () {
|
|
1028
|
-
return e.apply(this, arguments);
|
|
1029
|
-
})
|
|
1030
|
-
}, {
|
|
1031
|
-
key: "getMultilineManager",
|
|
1032
|
-
value: function () {
|
|
1033
|
-
throw new ne();
|
|
1034
|
-
}
|
|
1035
|
-
}]);
|
|
1036
|
-
var e, r, o, a, u;
|
|
1037
|
-
}();
|
|
1038
|
-
function le(e, t) {
|
|
1039
|
-
var r = Object.keys(e);
|
|
1040
|
-
if (Object.getOwnPropertySymbols) {
|
|
1041
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
1042
|
-
t && (n = n.filter(function (t) {
|
|
1043
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
1044
|
-
})), r.push.apply(r, n);
|
|
1045
|
-
}
|
|
1046
|
-
return r;
|
|
1047
|
-
}
|
|
1048
|
-
function fe(e) {
|
|
1049
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
1050
|
-
var r = null != arguments[t] ? arguments[t] : {};
|
|
1051
|
-
t % 2 ? le(Object(r), !0).forEach(function (t) {
|
|
1052
|
-
n(e, t, r[t]);
|
|
1053
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : le(Object(r)).forEach(function (t) {
|
|
1054
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
return e;
|
|
1058
|
-
}
|
|
1059
|
-
function he() {}
|
|
1060
|
-
function de(t) {
|
|
1061
|
-
return (e.g.location.search.trim().replace(/^(\?|#|&)/, "").split("&").map(function (e) {
|
|
1062
|
-
return e.replace(/\+/g, " ").split("=").map(decodeURIComponent);
|
|
1063
|
-
}).find(function (e) {
|
|
1064
|
-
return (r = e, n = 1, function (e) {
|
|
1065
|
-
if (Array.isArray(e)) return e;
|
|
1066
|
-
}(r) || function (e, t) {
|
|
1067
|
-
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
592
|
+
return t;
|
|
593
|
+
}
|
|
594
|
+
function et() {}
|
|
595
|
+
function rt(e) {
|
|
596
|
+
return (t.g.location.search.trim().replace(/^(\?|#|&)/, "").split("&").map(function (t) {
|
|
597
|
+
return t.replace(/\+/g, " ").split("=").map(decodeURIComponent);
|
|
598
|
+
}).find(function (t) {
|
|
599
|
+
return (r = t, n = 1, function (t) {
|
|
600
|
+
if (Array.isArray(t)) return t;
|
|
601
|
+
}(r) || function (t, e) {
|
|
602
|
+
var r = null == t ? null : "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"];
|
|
1068
603
|
if (null != r) {
|
|
1069
604
|
var n,
|
|
1070
605
|
o,
|
|
1071
606
|
i,
|
|
1072
607
|
a,
|
|
1073
|
-
|
|
1074
|
-
|
|
608
|
+
s = [],
|
|
609
|
+
u = !0,
|
|
1075
610
|
c = !1;
|
|
1076
611
|
try {
|
|
1077
|
-
if (i = (r = r.call(
|
|
612
|
+
if (i = (r = r.call(t)).next, 0 === e) {
|
|
1078
613
|
if (Object(r) !== r) return;
|
|
1079
|
-
|
|
1080
|
-
} else for (; !(
|
|
1081
|
-
} catch (
|
|
1082
|
-
c = !0, o =
|
|
614
|
+
u = !1;
|
|
615
|
+
} else for (; !(u = (n = i.call(r)).done) && (s.push(n.value), s.length !== e); u = !0);
|
|
616
|
+
} catch (t) {
|
|
617
|
+
c = !0, o = t;
|
|
1083
618
|
} finally {
|
|
1084
619
|
try {
|
|
1085
|
-
if (!
|
|
620
|
+
if (!u && null != r.return && (a = r.return(), Object(a) !== a)) return;
|
|
1086
621
|
} finally {
|
|
1087
622
|
if (c) throw o;
|
|
1088
623
|
}
|
|
1089
624
|
}
|
|
1090
|
-
return
|
|
625
|
+
return s;
|
|
1091
626
|
}
|
|
1092
|
-
}(r, n) || function (
|
|
1093
|
-
if (
|
|
1094
|
-
if ("string" == typeof
|
|
1095
|
-
var r = {}.toString.call(
|
|
1096
|
-
return "Object" === r &&
|
|
627
|
+
}(r, n) || function (t, e) {
|
|
628
|
+
if (t) {
|
|
629
|
+
if ("string" == typeof t) return a(t, e);
|
|
630
|
+
var r = {}.toString.call(t).slice(8, -1);
|
|
631
|
+
return "Object" === r && t.constructor && (r = t.constructor.name), "Map" === r || "Set" === r ? Array.from(t) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? a(t, e) : void 0;
|
|
1097
632
|
}
|
|
1098
633
|
}(r, n) || function () {
|
|
1099
634
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
1100
|
-
}())[0] ==
|
|
635
|
+
}())[0] == e;
|
|
1101
636
|
var r, n;
|
|
1102
637
|
}) || [])[1];
|
|
1103
638
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return (
|
|
1106
|
-
var n, o, i, a,
|
|
1107
|
-
return regeneratorRuntime.wrap(function (
|
|
1108
|
-
for (;;) switch (
|
|
639
|
+
function nt() {
|
|
640
|
+
return (nt = i(regeneratorRuntime.mark(function e(r) {
|
|
641
|
+
var n, o, i, a, s;
|
|
642
|
+
return regeneratorRuntime.wrap(function (e) {
|
|
643
|
+
for (;;) switch (e.prev = e.next) {
|
|
1109
644
|
case 0:
|
|
1110
|
-
if (n = r.gfv, o = r.engineVersion, !
|
|
1111
|
-
|
|
645
|
+
if (n = r.gfv, o = r.engineVersion, !t.g.CF.entryPoint[n]) {
|
|
646
|
+
e.next = 3;
|
|
1112
647
|
break;
|
|
1113
648
|
}
|
|
1114
|
-
return
|
|
649
|
+
return e.abrupt("return");
|
|
1115
650
|
case 3:
|
|
1116
|
-
return i = [], a = "true" ===
|
|
651
|
+
return i = [], a = "true" === rt("debug") ? "" : ".min", s = {
|
|
1117
652
|
resourceZone: r.resourceZone
|
|
1118
|
-
}, i.push(
|
|
653
|
+
}, i.push(G.styleSheet(K("".concat(n).concat(a, ".css"), s), !0)), i.push(G.script(X("".concat(n).concat(a, ".js"), s))), o && !t.g[o] && i.push(ot(o, a, s)), e.next = 12, Promise.all(i);
|
|
1119
654
|
case 12:
|
|
1120
|
-
if (
|
|
1121
|
-
|
|
655
|
+
if (t.g.CF.entryPoint[n]) {
|
|
656
|
+
e.next = 14;
|
|
1122
657
|
break;
|
|
1123
658
|
}
|
|
1124
659
|
throw new Error("Entry point is absent for gfv: ".concat(n));
|
|
1125
660
|
case 14:
|
|
1126
661
|
case "end":
|
|
1127
|
-
return
|
|
662
|
+
return e.stop();
|
|
1128
663
|
}
|
|
1129
|
-
},
|
|
664
|
+
}, e);
|
|
1130
665
|
}))).apply(this, arguments);
|
|
1131
666
|
}
|
|
1132
|
-
function
|
|
1133
|
-
return
|
|
667
|
+
function ot(t, e, r) {
|
|
668
|
+
return it.apply(this, arguments);
|
|
1134
669
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return (
|
|
670
|
+
function it() {
|
|
671
|
+
return (it = i(regeneratorRuntime.mark(function e(r, n, o) {
|
|
1137
672
|
var i, a;
|
|
1138
|
-
return regeneratorRuntime.wrap(function (
|
|
1139
|
-
for (;;) switch (
|
|
673
|
+
return regeneratorRuntime.wrap(function (e) {
|
|
674
|
+
for (;;) switch (e.prev = e.next) {
|
|
1140
675
|
case 0:
|
|
1141
|
-
return
|
|
676
|
+
return e.prev = 0, e.next = 3, G.script(X("engineLoader_".concat(r).concat(n, ".js"), o));
|
|
1142
677
|
case 3:
|
|
1143
|
-
|
|
678
|
+
e.next = 12;
|
|
1144
679
|
break;
|
|
1145
680
|
case 5:
|
|
1146
|
-
if (
|
|
1147
|
-
|
|
681
|
+
if (e.prev = 5, e.t0 = e.catch(0), !(e.t0 instanceof V && e.t0.status === Z.NotFound)) {
|
|
682
|
+
e.next = 11;
|
|
1148
683
|
break;
|
|
1149
684
|
}
|
|
1150
|
-
return
|
|
685
|
+
return e.next = 10, Promise.all([G.script(X("candy_".concat(r).concat(n, ".js"), o)), G.styleSheet(K("candy_".concat(r).concat(n, ".css"), o), !0)]);
|
|
1151
686
|
case 10:
|
|
1152
|
-
return
|
|
687
|
+
return e.abrupt("return");
|
|
1153
688
|
case 11:
|
|
1154
|
-
throw
|
|
689
|
+
throw e.t0;
|
|
1155
690
|
case 12:
|
|
1156
|
-
return i = "loadEngine_".concat(r),
|
|
691
|
+
return i = "loadEngine_".concat(r), B(a = t.g[i], "window.".concat(i, " must be defined")), k(a, "window.".concat(i, " must be a function")), e.next = 18, a(o);
|
|
1157
692
|
case 18:
|
|
1158
693
|
case "end":
|
|
1159
|
-
return
|
|
694
|
+
return e.stop();
|
|
1160
695
|
}
|
|
1161
|
-
},
|
|
696
|
+
}, e, null, [[0, 5]]);
|
|
1162
697
|
}))).apply(this, arguments);
|
|
1163
698
|
}
|
|
1164
|
-
var
|
|
1165
|
-
start: function (
|
|
699
|
+
var at = {
|
|
700
|
+
start: function (e, r) {
|
|
1166
701
|
var n,
|
|
1167
702
|
o,
|
|
1168
|
-
i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] :
|
|
703
|
+
i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : et,
|
|
1169
704
|
a = null,
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
if (new RegExp("^(?:".concat(
|
|
1173
|
-
var c = null !== (n = r.resourceZone) && void 0 !== n ? n :
|
|
1174
|
-
l =
|
|
1175
|
-
return "v1/ns/".concat(
|
|
705
|
+
s = r.ns,
|
|
706
|
+
u = r.draftId;
|
|
707
|
+
if (new RegExp("^(?:".concat(W.konturDomains.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(t.g.location.host) ? W.authorized ? u ? s || (a = new Error("options.ns is required")) : a = new Error("options.draftId is required") : a = new Error("user.unauthenticated") : a = new Error("domain.untrusted"), a) i(a);else {
|
|
708
|
+
var c = null !== (n = r.resourceZone) && void 0 !== n ? n : rt("resourceZone"),
|
|
709
|
+
l = $(function (t) {
|
|
710
|
+
return "v1/ns/".concat(t.ns, "/drafts/").concat(t.draftId, "/client-draft-info");
|
|
1176
711
|
}({
|
|
1177
|
-
ns:
|
|
1178
|
-
draftId:
|
|
712
|
+
ns: s,
|
|
713
|
+
draftId: u
|
|
1179
714
|
}), {
|
|
1180
715
|
resourceZone: c
|
|
1181
716
|
}),
|
|
@@ -1183,69 +718,67 @@
|
|
|
1183
718
|
method: "GET"
|
|
1184
719
|
};
|
|
1185
720
|
if (null == r.authentication || "browser-credentials-include" === r.authentication) f.credentials = "include";else if ("authSid" in r.authentication && null != r.authentication.authSid) {
|
|
1186
|
-
var
|
|
1187
|
-
f.credentials = "omit", f.headers = null !== (
|
|
721
|
+
var d;
|
|
722
|
+
f.credentials = "omit", f.headers = null !== (d = f.headers) && void 0 !== d ? d : {}, f.headers.Authorization = "AUTH.SID ".concat(r.authentication.authSid);
|
|
1188
723
|
} else f.credentials = "omit";
|
|
1189
|
-
(null !== (o = r.fetch) && void 0 !== o ? o :
|
|
1190
|
-
return
|
|
724
|
+
(null !== (o = r.fetch) && void 0 !== o ? o : x)(l, f).then(function (t) {
|
|
725
|
+
return t.json();
|
|
1191
726
|
}).then(function (n) {
|
|
1192
727
|
var o,
|
|
1193
728
|
a,
|
|
1194
|
-
u,
|
|
1195
729
|
s,
|
|
730
|
+
u,
|
|
1196
731
|
l,
|
|
1197
732
|
f = n.gfv,
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
authorized:
|
|
1201
|
-
cauldronApiUrl:
|
|
1202
|
-
isTestServer:
|
|
1203
|
-
renderCachingForIE8:
|
|
1204
|
-
normalizationOnServer:
|
|
1205
|
-
normativeUrl:
|
|
1206
|
-
ndsPlusApiUrl:
|
|
1207
|
-
konturDomains:
|
|
733
|
+
d = n.engineVersion,
|
|
734
|
+
h = tt(tt(tt({
|
|
735
|
+
authorized: W.authorized,
|
|
736
|
+
cauldronApiUrl: W.cauldronApiUrl,
|
|
737
|
+
isTestServer: W.isTestServer,
|
|
738
|
+
renderCachingForIE8: W.renderCachingForIE8,
|
|
739
|
+
normalizationOnServer: W.normalizationOnServer,
|
|
740
|
+
normativeUrl: W.normativeUrl,
|
|
741
|
+
ndsPlusApiUrl: W.ndsPlusApiUrl,
|
|
742
|
+
konturDomains: W.konturDomains,
|
|
1208
743
|
showNavigationSidebar: null === (o = r.showNavigationSidebar) || void 0 === o || o,
|
|
1209
744
|
onRemoveAttachment: r.onRemoveAttachment,
|
|
1210
745
|
onClearAttachment: r.onClearAttachment
|
|
1211
746
|
}, r), n), {}, {
|
|
1212
747
|
gfv: f,
|
|
1213
|
-
engineVersion:
|
|
748
|
+
engineVersion: d,
|
|
1214
749
|
feedbackEnabled: null !== (a = r.feedbackEnabled) && void 0 !== a ? a : n.feedbackEnabled,
|
|
1215
|
-
isDisabledCleanForm: null !== (
|
|
1216
|
-
isDisabledCloseButton: null !== (
|
|
750
|
+
isDisabledCleanForm: null !== (s = r.isDisabledCleanForm) && void 0 !== s && s,
|
|
751
|
+
isDisabledCloseButton: null !== (u = r.isDisabledCloseButton) && void 0 !== u && u,
|
|
1217
752
|
isDisabledCloseAndSaveButton: null !== (l = r.isDisabledCloseAndSaveButton) && void 0 !== l && l,
|
|
1218
753
|
resourceZone: c,
|
|
1219
754
|
setUnitItemExtraInfo: r.setUnitItemExtraInfo,
|
|
1220
755
|
attachmentUnitItemInfoPath: r.attachmentUnitItemInfoPaths
|
|
1221
756
|
});
|
|
1222
|
-
(function (
|
|
1223
|
-
return
|
|
757
|
+
(function (t) {
|
|
758
|
+
return nt.apply(this, arguments);
|
|
1224
759
|
})({
|
|
1225
|
-
gfv:
|
|
1226
|
-
engineVersion:
|
|
1227
|
-
resourceZone:
|
|
1228
|
-
theme:
|
|
760
|
+
gfv: h.gfv,
|
|
761
|
+
engineVersion: h.engineVersion,
|
|
762
|
+
resourceZone: h.resourceZone,
|
|
763
|
+
theme: h.theme
|
|
1229
764
|
}).then(function () {
|
|
1230
|
-
var n = function (
|
|
1231
|
-
if (null !=
|
|
1232
|
-
}(
|
|
1233
|
-
!function (
|
|
765
|
+
var n = function (e) {
|
|
766
|
+
if (null != e) return t.g[e] && t.g[e].default;
|
|
767
|
+
}(d);
|
|
768
|
+
!function (e, r, n) {
|
|
1234
769
|
var o;
|
|
1235
|
-
(null !== (o =
|
|
1236
|
-
throw "string" == typeof
|
|
1237
|
-
}("Form entry point ".concat(r.gfv, " not found.")))(
|
|
1238
|
-
var
|
|
1239
|
-
|
|
1240
|
-
}(e);
|
|
1241
|
-
n(null, t);
|
|
770
|
+
(null !== (o = t.g.CF.entryPoint[r.gfv]) && void 0 !== o ? o : function (t) {
|
|
771
|
+
throw "string" == typeof t || null == t ? new Error(null != t ? t : "Undefined is not allowed") : t;
|
|
772
|
+
}("Form entry point ".concat(r.gfv, " not found.")))(e, r).then(function (t) {
|
|
773
|
+
var e = t.publicForm;
|
|
774
|
+
n(null, e);
|
|
1242
775
|
}).catch(n);
|
|
1243
|
-
}(
|
|
776
|
+
}(e, tt(tt({}, h), {}, {
|
|
1244
777
|
templatesApi: r.templatesApi,
|
|
1245
778
|
renderForm: n
|
|
1246
779
|
}), i);
|
|
1247
|
-
}).catch(function (
|
|
1248
|
-
i(new Error("dynamic loading is not supported for gfv ".concat(f, "\n").concat(
|
|
780
|
+
}).catch(function (t) {
|
|
781
|
+
i(new Error("dynamic loading is not supported for gfv ".concat(f, "\n").concat(t)));
|
|
1249
782
|
});
|
|
1250
783
|
}).catch(i);
|
|
1251
784
|
}
|
|
@@ -1256,8 +789,9 @@
|
|
|
1256
789
|
staffServiceUrl: "{staffServiceUrl}",
|
|
1257
790
|
picklistUrl: "{picklistApiUrl}",
|
|
1258
791
|
nidusUrl: "{nidusApiUrl}",
|
|
1259
|
-
fsPrinterUrl: "{fsprinterApiUrl}"
|
|
792
|
+
fsPrinterUrl: "{fsprinterApiUrl}",
|
|
793
|
+
contractorsApiUrl: "{contractorsApiUrl}"
|
|
1260
794
|
};
|
|
1261
|
-
|
|
795
|
+
t.g.CF = at;
|
|
1262
796
|
}();
|
|
1263
797
|
//# sourceMappingURL=client.min.js.map
|