@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.
Files changed (40) hide show
  1. package/distr/Common/CandyApiClient/CandyApiClient.js +68 -16
  2. package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
  3. package/distr/Common/CandyApiClient/CandyApiErrors.js +26 -0
  4. package/distr/Common/CandyApiClient/CandyApiErrors.js.map +1 -0
  5. package/distr/Common/CandyApiClient/FakeCandyApiClient.js +11 -3
  6. package/distr/Common/CandyApiClient/FakeCandyApiClient.js.map +1 -1
  7. package/distr/Common/CandyApiClient/ICandyApiClient.js.map +1 -1
  8. package/distr/Common/CandyApiClient/Types/Attachments/Attacments.js +5 -0
  9. package/distr/Common/CandyApiClient/Types/Attachments/Attacments.js.map +1 -1
  10. package/distr/Common/CandyApiClient/Types/DraftActions/FileProperties.js.map +1 -1
  11. package/distr/Common/CandyApiClient/Types/HistoryEditing/InnerHistoryResponse.js.map +1 -1
  12. package/distr/Common/CommonConstants/DefaultServicesUrls.js +3 -1
  13. package/distr/Common/CommonConstants/DefaultServicesUrls.js.map +1 -1
  14. package/distr/Common/HttpClient/HttpClient.js +4 -0
  15. package/distr/Common/HttpClient/HttpClient.js.map +1 -1
  16. package/distr/Common/HttpClient/IHttpClient.js.map +1 -1
  17. package/distr/Common/KCLangRuntimeUtils.js +18 -0
  18. package/distr/Common/KCLangRuntimeUtils.js.map +1 -1
  19. package/distr/Common/ModelPath/AbsoluteModelFieldPath.js +2 -2
  20. package/distr/Common/ModelPath/AbsoluteModelFieldPath.js.map +1 -1
  21. package/distr/Common/NdsPlusApiClient/INdsPlusApiClient.js.map +1 -1
  22. package/distr/Common/TypingUtils.js.map +1 -1
  23. package/distr/Common/UUID.js +4 -1
  24. package/distr/Common/UUID.js.map +1 -1
  25. package/distr/Tools/src/BuildTasks/ResolveFormInfo.js +1 -2
  26. package/distr/Tools/src/BuildTasks/ResolveFormInfo.js.map +1 -1
  27. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +0 -6
  28. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
  29. package/distr/Tools/src/CLICommands/FormStats/RunFormStats.js +1 -3
  30. package/distr/Tools/src/CLICommands/FormStats/RunFormStats.js.map +1 -1
  31. package/distr/Tools/src/CLICommands/UpgradeForm/RunUpgradeForm.js +0 -4
  32. package/distr/Tools/src/CLICommands/UpgradeForm/RunUpgradeForm.js.map +1 -1
  33. package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
  34. package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
  35. package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
  36. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +1134 -2165
  37. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
  38. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +447 -913
  39. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
  40. package/package.json +7 -6
@@ -3,297 +3,297 @@
3
3
  !function () {
4
4
  "use strict";
5
5
 
6
- var e = {};
7
- function t(e) {
8
- return t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
9
- return typeof e;
10
- } : function (e) {
11
- return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
12
- }, t(e);
13
- }
14
- function r(e) {
15
- var r = function (e) {
16
- if ("object" != t(e) || !e) return e;
17
- var r = e[Symbol.toPrimitive];
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(e, "string");
20
- if ("object" != t(n)) return n;
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(e);
24
- }(e);
25
- return "symbol" == t(r) ? r : r + "";
23
+ return String(t);
24
+ }(t);
25
+ return "symbol" == e(r) ? r : r + "";
26
26
  }
27
- function n(e, t, n) {
28
- return (t = r(t)) in e ? Object.defineProperty(e, t, {
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[t] = n, e;
33
+ }) : t[e] = n, t;
34
34
  }
35
- function o(e, t, r, n, o, i, a) {
35
+ function o(t, e, r, n, o, i, a) {
36
36
  try {
37
- var u = e[i](a),
38
- s = u.value;
39
- } catch (e) {
40
- return void r(e);
37
+ var s = t[i](a),
38
+ u = s.value;
39
+ } catch (t) {
40
+ return void r(t);
41
41
  }
42
- u.done ? t(s) : Promise.resolve(s).then(n, o);
42
+ s.done ? e(u) : Promise.resolve(u).then(n, o);
43
43
  }
44
- function i(e) {
44
+ function i(t) {
45
45
  return function () {
46
- var t = this,
46
+ var e = this,
47
47
  r = arguments;
48
48
  return new Promise(function (n, i) {
49
- var a = e.apply(t, r);
50
- function u(e) {
51
- o(a, n, i, u, s, "next", e);
49
+ var a = t.apply(e, r);
50
+ function s(t) {
51
+ o(a, n, i, s, u, "next", t);
52
52
  }
53
- function s(e) {
54
- o(a, n, i, u, s, "throw", e);
53
+ function u(t) {
54
+ o(a, n, i, s, u, "throw", t);
55
55
  }
56
- u(void 0);
56
+ s(void 0);
57
57
  });
58
58
  };
59
59
  }
60
- function a(e, t) {
61
- (null == t || t > e.length) && (t = e.length);
62
- for (var r = 0, n = Array(t); r < t; r++) n[r] = e[r];
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
- e.g = function () {
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 (e) {
69
+ } catch (t) {
70
70
  if ("object" == typeof window) return window;
71
71
  }
72
72
  }();
73
- var u = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== u && u,
74
- s = ("URLSearchParams" in u),
75
- c = "Symbol" in u && "iterator" in Symbol,
76
- l = "FileReader" in u && "Blob" in u && function () {
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 (e) {
79
+ } catch (t) {
80
80
  return !1;
81
81
  }
82
82
  }(),
83
- f = ("FormData" in u),
84
- h = ("ArrayBuffer" in u);
85
- if (h) var d = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
86
- p = ArrayBuffer.isView || function (e) {
87
- return e && d.indexOf(Object.prototype.toString.call(e)) > -1;
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(e) {
90
- if ("string" != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || "" === e) throw new TypeError('Invalid character in header field name: "' + e + '"');
91
- return e.toLowerCase();
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 m(e) {
94
- return "string" != typeof e && (e = String(e)), e;
93
+ function b(t) {
94
+ return "string" != typeof t && (t = String(t)), t;
95
95
  }
96
- function v(e) {
97
- var t = {
96
+ function m(t) {
97
+ var e = {
98
98
  next: function () {
99
- var t = e.shift();
99
+ var e = t.shift();
100
100
  return {
101
- done: void 0 === t,
102
- value: t
101
+ done: void 0 === e,
102
+ value: e
103
103
  };
104
104
  }
105
105
  };
106
- return c && (t[Symbol.iterator] = function () {
107
- return t;
108
- }), t;
106
+ return c && (e[Symbol.iterator] = function () {
107
+ return e;
108
+ }), e;
109
109
  }
110
- function w(e) {
111
- this.map = {}, e instanceof w ? e.forEach(function (e, t) {
112
- this.append(t, e);
113
- }, this) : Array.isArray(e) ? e.forEach(function (e) {
114
- this.append(e[0], e[1]);
115
- }, this) : e && Object.getOwnPropertyNames(e).forEach(function (t) {
116
- this.append(t, e[t]);
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 b(e) {
120
- if (e.bodyUsed) return Promise.reject(new TypeError("Already read"));
121
- e.bodyUsed = !0;
119
+ function g(t) {
120
+ if (t.bodyUsed) return Promise.reject(new TypeError("Already read"));
121
+ t.bodyUsed = !0;
122
122
  }
123
- function g(e) {
124
- return new Promise(function (t, r) {
125
- e.onload = function () {
126
- t(e.result);
127
- }, e.onerror = function () {
128
- r(e.error);
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(e) {
133
- var t = new FileReader(),
134
- r = g(t);
135
- return t.readAsArrayBuffer(e), r;
132
+ function E(t) {
133
+ var e = new FileReader(),
134
+ r = w(e);
135
+ return e.readAsArrayBuffer(t), r;
136
136
  }
137
- function k(e) {
138
- if (e.slice) return e.slice(0);
139
- var t = new Uint8Array(e.byteLength);
140
- return t.set(new Uint8Array(e)), t.buffer;
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 (e) {
144
- var t;
145
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : l && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : f && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : s && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : h && l && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = k(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h && (ArrayBuffer.prototype.isPrototypeOf(e) || p(e)) ? this._bodyArrayBuffer = k(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", this.headers.get("content-type") || ("string" == typeof e ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : s && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
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 e = b(this);
148
- if (e) return e;
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 ? b(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);
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 e,
157
- t,
156
+ var t,
157
+ e,
158
158
  r,
159
- n = b(this);
159
+ n = g(this);
160
160
  if (n) return n;
161
- if (this._bodyBlob) return e = this._bodyBlob, r = g(t = new FileReader()), t.readAsText(e), r;
162
- if (this._bodyArrayBuffer) return Promise.resolve(function (e) {
163
- for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++) r[n] = String.fromCharCode(t[n]);
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(j);
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
- w.prototype.append = function (e, t) {
175
- e = y(e), t = m(t);
176
- var r = this.map[e];
177
- this.map[e] = r ? r + ", " + t : t;
178
- }, w.prototype.delete = function (e) {
179
- delete this.map[y(e)];
180
- }, w.prototype.get = function (e) {
181
- return e = y(e), this.has(e) ? this.map[e] : null;
182
- }, w.prototype.has = function (e) {
183
- return this.map.hasOwnProperty(y(e));
184
- }, w.prototype.set = function (e, t) {
185
- this.map[y(e)] = m(t);
186
- }, w.prototype.forEach = function (e, t) {
187
- for (var r in this.map) this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this);
188
- }, w.prototype.keys = function () {
189
- var e = [];
190
- return this.forEach(function (t, r) {
191
- e.push(r);
192
- }), v(e);
193
- }, w.prototype.values = function () {
194
- var e = [];
195
- return this.forEach(function (t) {
196
- e.push(t);
197
- }), v(e);
198
- }, w.prototype.entries = function () {
199
- var e = [];
200
- return this.forEach(function (t, r) {
201
- e.push([r, t]);
202
- }), v(e);
203
- }, c && (w.prototype[Symbol.iterator] = w.prototype.entries);
204
- var A = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
205
- function P(e, t) {
206
- if (!(this instanceof P)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
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 = (t = t || {}).body;
210
- if (e instanceof P) {
211
- if (e.bodyUsed) throw new TypeError("Already read");
212
- this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new w(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, o || null == e._bodyInit || (o = e._bodyInit, e.bodyUsed = !0);
213
- } else this.url = String(e);
214
- if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new w(t.headers)), this.method = (n = (r = t.method || this.method || "GET").toUpperCase(), A.indexOf(n) > -1 ? n : r), this.mode = t.mode || this.mode || null, this.signal = t.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" !== t.cache && "no-cache" !== t.cache)) {
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 j(e) {
221
- var t = new FormData();
222
- return e.trim().split("&").forEach(function (e) {
223
- if (e) {
224
- var r = e.split("="),
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
- t.append(decodeURIComponent(n), decodeURIComponent(o));
227
+ e.append(decodeURIComponent(n), decodeURIComponent(o));
228
228
  }
229
- }), t;
229
+ }), e;
230
230
  }
231
- function S(e, t) {
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
- t || (t = {}), this.type = "default", this.status = void 0 === t.status ? 200 : t.status, this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, this.headers = new w(t.headers), this.url = t.url || "", this._initBody(e);
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
- P.prototype.clone = function () {
236
- return new P(this, {
235
+ j.prototype.clone = function () {
236
+ return new j(this, {
237
237
  body: this._bodyInit
238
238
  });
239
- }, O.call(P.prototype), O.call(S.prototype), S.prototype.clone = function () {
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 w(this.headers),
243
+ headers: new v(this.headers),
244
244
  url: this.url
245
245
  });
246
246
  }, S.error = function () {
247
- var e = new S(null, {
247
+ var t = new S(null, {
248
248
  status: 0,
249
249
  statusText: ""
250
250
  });
251
- return e.type = "error", e;
251
+ return t.type = "error", t;
252
252
  };
253
- var T = [301, 302, 303, 307, 308];
254
- S.redirect = function (e, t) {
255
- if (-1 === T.indexOf(t)) throw new RangeError("Invalid status code");
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: t,
257
+ status: e,
258
258
  headers: {
259
- location: e
259
+ location: t
260
260
  }
261
261
  });
262
262
  };
263
- var _ = u.DOMException;
263
+ var _ = s.DOMException;
264
264
  try {
265
265
  new _();
266
- } catch (e) {
267
- (_ = function (e, t) {
268
- this.message = e, this.name = t;
269
- var r = Error(e);
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 R(e, t) {
273
+ function x(t, e) {
274
274
  return new Promise(function (r, n) {
275
- var o = new P(e, t);
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 e,
283
- t,
282
+ var t,
283
+ e,
284
284
  n = {
285
285
  status: i.status,
286
286
  statusText: i.statusText,
287
- headers: (e = i.getAllResponseHeaders() || "", t = new w(), e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (e) {
288
- return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e;
289
- }).forEach(function (e) {
290
- var r = e.split(":"),
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
- t.append(n, o);
294
+ e.append(n, o);
295
295
  }
296
- }), t)
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 (e) {
315
+ }, i.open(o.method, function (t) {
316
316
  try {
317
- return "" === e && u.location.href ? u.location.href : e;
318
- } catch (t) {
319
- return e;
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" : h && o.headers.get("Content-Type") && -1 !== o.headers.get("Content-Type").indexOf("application/octet-stream") && (i.responseType = "arraybuffer")), !t || "object" != typeof t.headers || t.headers instanceof w ? o.headers.forEach(function (e, t) {
322
- i.setRequestHeader(t, e);
323
- }) : Object.getOwnPropertyNames(t.headers).forEach(function (e) {
324
- i.setRequestHeader(e, m(t.headers[e]));
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 x(e, t) {
331
- if (!function (e) {
332
- return null != e;
333
- }(e)) throw new Error(null != t ? t : "Value must be defined");
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 U(e, t) {
336
- if ("function" != typeof e) throw new Error(null != t ? t : "Value must be defined");
335
+ function k(t, e) {
336
+ if ("function" != typeof t) throw new Error(null != e ? e : "Value must be defined");
337
337
  }
338
- function B(e, t) {
339
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
338
+ function I(t, e) {
339
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
340
340
  }
341
- function C(e, t) {
342
- for (var n = 0; n < t.length; n++) {
343
- var o = t[n];
344
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, r(o.key), o);
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 I(e, t, r) {
348
- return t && C(e.prototype, t), r && C(e, r), Object.defineProperty(e, "prototype", {
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
- }), e;
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 M(e, t) {
366
- return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (e, t) {
367
- return e.__proto__ = t, e;
368
- }, M(e, t);
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 N(e, t) {
371
- if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
372
- e.prototype = Object.create(t && t.prototype, {
373
- constructor: {
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 L() {
362
+ function N() {
383
363
  try {
384
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
385
- } catch (e) {}
386
- return (L = function () {
387
- return !!e;
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 z(e) {
391
- var t = "function" == typeof Map ? new Map() : void 0;
392
- return z = function (e) {
393
- if (null === e || !function (e) {
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(e).indexOf("[native code]");
396
- } catch (t) {
397
- return "function" == typeof e;
375
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
376
+ } catch (e) {
377
+ return "function" == typeof t;
398
378
  }
399
- }(e)) return e;
400
- if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
401
- if (void 0 !== t) {
402
- if (t.has(e)) return t.get(e);
403
- t.set(e, r);
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 (e, t, r) {
407
- if (L()) return Reflect.construct.apply(null, arguments);
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, t);
410
- var o = new (e.bind.apply(e, n))();
411
- return r && M(o, r.prototype), o;
412
- }(e, arguments, F(this).constructor);
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(e.prototype, {
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
- }), M(r, e);
422
- }, z(e);
401
+ }), F(r, t);
402
+ }, L(t);
423
403
  }
424
- function V() {
404
+ function z() {
425
405
  try {
426
- var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
427
- } catch (e) {}
428
- return (V = function () {
429
- return !!e;
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(e) {
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(t) {
416
+ return (H = i(regeneratorRuntime.mark(function t(e) {
437
417
  var r, n;
438
- return regeneratorRuntime.wrap(function (e) {
439
- for (;;) switch (e.prev = e.next) {
418
+ return regeneratorRuntime.wrap(function (t) {
419
+ for (;;) switch (t.prev = t.next) {
440
420
  case 0:
441
- return e.prev = 0, e.next = 3, fetch(t, {
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 = e.sent, e.abrupt("return", new G(r));
427
+ return r = t.sent, t.abrupt("return", new V(r));
448
428
  case 7:
449
- return e.prev = 7, e.t0 = e.catch(0), n = e.t0, e.abrupt("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 e.stop();
436
+ return t.stop();
457
437
  }
458
- }, e, null, [[0, 7]]);
438
+ }, t, null, [[0, 7]]);
459
439
  }))).apply(this, arguments);
460
440
  }
461
- R.polyfill = !0, u.fetch || (u.fetch = R, u.Headers = w, u.Request = P, u.Response = S);
462
- var G = function (e) {
463
- function t(e) {
464
- var r, n, o, i;
465
- return B(this, t), n = this, i = ["Network error occurred."], o = F(o = t), (r = D(n, V() ? Reflect.construct(o, i || [], F(n).constructor) : o.apply(n, i))).status = void 0, r.statusText = void 0, r.ok = void 0, r.headers = void 0, r.status = e.status, r.statusText = e.statusText, r.ok = e.ok, r.headers = Object.fromEntries(e.headers.entries()), r;
466
- }
467
- return N(t, e), I(t, [{
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 e = "".concat(t.name, ": ").concat(this.message),
471
- r = " Info: ".concat(JSON.stringify(this));
472
- return "".concat(e, "\n").concat(r);
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
- }(z(Error)),
476
- Z = function (e) {
477
- return e[e.NotFound = 404] = "NotFound", e;
473
+ }(L(Error)),
474
+ Z = function (t) {
475
+ return t[t.NotFound = 404] = "NotFound", t;
478
476
  }({}),
479
- $ = function () {
480
- return I(function e() {
481
- B(this, e);
477
+ G = function () {
478
+ return D(function t() {
479
+ I(this, t);
482
480
  }, null, [{
483
481
  key: "script",
484
- value: function (e) {
485
- var t = document.getElementsByTagName("head")[0] || document.documentElement,
482
+ value: function (t) {
483
+ var e = document.getElementsByTagName("head")[0] || document.documentElement,
486
484
  r = document.createElement("script"),
487
- n = J(),
485
+ n = M(),
488
486
  o = n.promise,
489
487
  a = n.resolve,
490
- u = n.reject;
491
- function s() {
488
+ s = n.reject;
489
+ function u() {
492
490
  (!r.readyState || "loaded" === r.readyState || "complete" === r.readyState) && a();
493
491
  }
494
- return r.onload = s, r.onreadystatechange = s, r.onerror = i(regeneratorRuntime.mark(function t() {
492
+ return r.onload = u, r.onreadystatechange = u, r.onerror = i(regeneratorRuntime.mark(function e() {
495
493
  var n;
496
- return regeneratorRuntime.wrap(function (t) {
497
- for (;;) switch (t.prev = t.next) {
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), t.next = 3, q(e);
497
+ return r.parentNode && r.parentNode.removeChild(r), e.next = 3, q(t);
500
498
  case 3:
501
- n = t.sent, u(n);
499
+ n = e.sent, s(n);
502
500
  case 5:
503
501
  case "end":
504
- return t.stop();
502
+ return e.stop();
505
503
  }
506
- }, t);
507
- })), r.src = e, r.setAttribute("crossorigin", "use-credentials"), t.appendChild(r), o;
504
+ }, e);
505
+ })), r.src = t, e.appendChild(r), o;
508
506
  }
509
507
  }, {
510
508
  key: "styleSheet",
511
- value: function (e) {
512
- var t,
509
+ value: function (t) {
510
+ var e,
513
511
  r = arguments.length > 1 && void 0 !== arguments[1] && arguments[1],
514
- n = null !== (t = document.getElementsByTagName("head")[0]) && void 0 !== t ? t : document.documentElement,
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", e);
517
- var i = J(),
514
+ o.setAttribute("rel", "stylesheet"), o.setAttribute("type", "text/css"), o.setAttribute("href", t);
515
+ var i = M(),
518
516
  a = i.promise,
519
- u = i.resolve,
520
- s = i.reject;
521
- return o.addEventListener("load", u), o.addEventListener("error", function () {
522
- r ? u() : s();
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
- J = function () {
528
- var e, t;
525
+ M = function () {
526
+ var t, e;
529
527
  return {
530
528
  promise: new Promise(function (r, n) {
531
- e = r, t = n;
529
+ t = r, e = n;
532
530
  }),
533
- resolve: e,
534
- reject: t
531
+ resolve: t,
532
+ reject: e
535
533
  };
536
534
  };
537
- function W(t, r) {
538
- var n = function (e, t) {
539
- if (void 0 === t) return e;
540
- for (var r = [], n = 0, o = Object.keys(t); n < o.length; n++) {
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 = t[i];
540
+ a = e[i];
543
541
  null != a && r.push("".concat(i, "=").concat(encodeURIComponent(a)));
544
542
  }
545
- return 0 === r.length ? e : e + "?" + r.join("&");
546
- }(t, r);
543
+ return 0 === r.length ? t : t + "?" + r.join("&");
544
+ }(e, r);
547
545
  return function () {
548
- var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
549
- r = e.g.CF.keformsUrl || "";
550
- return "".concat(r, "/").concat(t).replace(/([^:])\/{2,}/g, "$1/");
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 X(e, t) {
554
- return W("static/public/".concat(e), t);
551
+ function J(t, e) {
552
+ return $("static/public/".concat(t), e);
555
553
  }
556
- function K(e, t) {
557
- return X("scripts/".concat(e), t);
554
+ function X(t, e) {
555
+ return J("scripts/".concat(t), e);
558
556
  }
559
- function Q(e, t) {
560
- return X("styles/".concat(e), t);
557
+ function K(t, e) {
558
+ return J("styles/".concat(t), e);
561
559
  }
562
- function Y(e) {
563
- return "string" == typeof e ? "false" !== e && "true" === e : Boolean(e);
560
+ function Q(t) {
561
+ return "string" == typeof t ? "false" !== t && "true" === t : Boolean(t);
564
562
  }
565
- var ee = {
566
- authorized: Y("{authorized}"),
563
+ var W = {
564
+ authorized: Q("{authorized}"),
567
565
  cauldronApiUrl: "{cauldronApiUrl}",
568
- isTestServer: Y("{isTestServer}"),
569
- renderCachingForIE8: Y("{renderCachingForIE8}"),
570
- normalizationOnServer: Y("{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 te(e, t, r) {
576
- return t = F(t), D(e, re() ? Reflect.construct(t, r || [], F(e).constructor) : t.apply(e, r));
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(e);
602
- t && (n = n.filter(function (t) {
603
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
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 ie(e) {
609
- for (var t = 1; t < arguments.length; t++) {
610
- var r = null != arguments[t] ? arguments[t] : {};
611
- t % 2 ? oe(Object(r), !0).forEach(function (t) {
612
- n(e, t, r[t]);
613
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : oe(Object(r)).forEach(function (t) {
614
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
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 e;
618
- }
619
- function ae(e, t) {
620
- if (null != t) {
621
- if (null == e) throw new Error("Path must be defined");
622
- return ["model", "change", e, t];
623
- }
624
- return null != e ? ["model", "change", e] : ["model", "change"];
625
- }
626
- function ue(e) {
627
- return Object.keys(e).filter(function (t) {
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
- u = [],
1074
- s = !0,
608
+ s = [],
609
+ u = !0,
1075
610
  c = !1;
1076
611
  try {
1077
- if (i = (r = r.call(e)).next, 0 === t) {
612
+ if (i = (r = r.call(t)).next, 0 === e) {
1078
613
  if (Object(r) !== r) return;
1079
- s = !1;
1080
- } else for (; !(s = (n = i.call(r)).done) && (u.push(n.value), u.length !== t); s = !0);
1081
- } catch (e) {
1082
- c = !0, o = e;
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 (!s && null != r.return && (a = r.return(), Object(a) !== a)) return;
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 u;
625
+ return s;
1091
626
  }
1092
- }(r, n) || function (e, t) {
1093
- if (e) {
1094
- if ("string" == typeof e) return a(e, t);
1095
- var r = {}.toString.call(e).slice(8, -1);
1096
- return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? a(e, t) : void 0;
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] == t;
635
+ }())[0] == e;
1101
636
  var r, n;
1102
637
  }) || [])[1];
1103
638
  }
1104
- function pe() {
1105
- return (pe = i(regeneratorRuntime.mark(function t(r) {
1106
- var n, o, i, a, u;
1107
- return regeneratorRuntime.wrap(function (t) {
1108
- for (;;) switch (t.prev = t.next) {
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, !e.g.CF.entryPoint[n]) {
1111
- t.next = 3;
645
+ if (n = r.gfv, o = r.engineVersion, !t.g.CF.entryPoint[n]) {
646
+ e.next = 3;
1112
647
  break;
1113
648
  }
1114
- return t.abrupt("return");
649
+ return e.abrupt("return");
1115
650
  case 3:
1116
- return i = [], a = "true" === de("debug") ? "" : ".min", u = {
651
+ return i = [], a = "true" === rt("debug") ? "" : ".min", s = {
1117
652
  resourceZone: r.resourceZone
1118
- }, i.push($.styleSheet(Q("".concat(n).concat(a, ".css"), u), !0)), i.push($.script(K("".concat(n).concat(a, ".js"), u))), o && !e.g[o] && i.push(ye(o, a, u)), t.next = 12, Promise.all(i);
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 (e.g.CF.entryPoint[n]) {
1121
- t.next = 14;
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 t.stop();
662
+ return e.stop();
1128
663
  }
1129
- }, t);
664
+ }, e);
1130
665
  }))).apply(this, arguments);
1131
666
  }
1132
- function ye(e, t, r) {
1133
- return me.apply(this, arguments);
667
+ function ot(t, e, r) {
668
+ return it.apply(this, arguments);
1134
669
  }
1135
- function me() {
1136
- return (me = i(regeneratorRuntime.mark(function t(r, n, o) {
670
+ function it() {
671
+ return (it = i(regeneratorRuntime.mark(function e(r, n, o) {
1137
672
  var i, a;
1138
- return regeneratorRuntime.wrap(function (t) {
1139
- for (;;) switch (t.prev = t.next) {
673
+ return regeneratorRuntime.wrap(function (e) {
674
+ for (;;) switch (e.prev = e.next) {
1140
675
  case 0:
1141
- return t.prev = 0, t.next = 3, $.script(K("engineLoader_".concat(r).concat(n, ".js"), o));
676
+ return e.prev = 0, e.next = 3, G.script(X("engineLoader_".concat(r).concat(n, ".js"), o));
1142
677
  case 3:
1143
- t.next = 12;
678
+ e.next = 12;
1144
679
  break;
1145
680
  case 5:
1146
- if (t.prev = 5, t.t0 = t.catch(0), !(t.t0 instanceof G && t.t0.status === Z.NotFound)) {
1147
- t.next = 11;
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 t.next = 10, Promise.all([$.script(K("candy_".concat(r).concat(n, ".js"), o)), $.styleSheet(Q("candy_".concat(r).concat(n, ".css"), o), !0)]);
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 t.abrupt("return");
687
+ return e.abrupt("return");
1153
688
  case 11:
1154
- throw t.t0;
689
+ throw e.t0;
1155
690
  case 12:
1156
- return i = "loadEngine_".concat(r), x(a = e.g[i], "window.".concat(i, " must be defined")), U(a, "window.".concat(i, " must be a function")), t.next = 18, a(o);
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 t.stop();
694
+ return e.stop();
1160
695
  }
1161
- }, t, null, [[0, 5]]);
696
+ }, e, null, [[0, 5]]);
1162
697
  }))).apply(this, arguments);
1163
698
  }
1164
- var ve = {
1165
- start: function (t, r) {
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] : he,
703
+ i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : et,
1169
704
  a = null,
1170
- u = r.ns,
1171
- s = r.draftId;
1172
- if (new RegExp("^(?:".concat(ee.konturDomains.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(e.g.location.host) ? ee.authorized ? s ? u || (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 {
1173
- var c = null !== (n = r.resourceZone) && void 0 !== n ? n : de("resourceZone"),
1174
- l = W(function (e) {
1175
- return "v1/ns/".concat(e.ns, "/drafts/").concat(e.draftId, "/client-draft-info");
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: u,
1178
- draftId: s
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 h;
1187
- f.credentials = "omit", f.headers = null !== (h = f.headers) && void 0 !== h ? h : {}, f.headers.Authorization = "AUTH.SID ".concat(r.authentication.authSid);
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 : R)(l, f).then(function (e) {
1190
- return e.json();
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
- h = n.engineVersion,
1199
- d = fe(fe(fe({
1200
- authorized: ee.authorized,
1201
- cauldronApiUrl: ee.cauldronApiUrl,
1202
- isTestServer: ee.isTestServer,
1203
- renderCachingForIE8: ee.renderCachingForIE8,
1204
- normalizationOnServer: ee.normalizationOnServer,
1205
- normativeUrl: ee.normativeUrl,
1206
- ndsPlusApiUrl: ee.ndsPlusApiUrl,
1207
- konturDomains: ee.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: h,
748
+ engineVersion: d,
1214
749
  feedbackEnabled: null !== (a = r.feedbackEnabled) && void 0 !== a ? a : n.feedbackEnabled,
1215
- isDisabledCleanForm: null !== (u = r.isDisabledCleanForm) && void 0 !== u && u,
1216
- isDisabledCloseButton: null !== (s = r.isDisabledCloseButton) && void 0 !== s && s,
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 (e) {
1223
- return pe.apply(this, arguments);
757
+ (function (t) {
758
+ return nt.apply(this, arguments);
1224
759
  })({
1225
- gfv: d.gfv,
1226
- engineVersion: d.engineVersion,
1227
- resourceZone: d.resourceZone,
1228
- theme: d.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 (t) {
1231
- if (null != t) return e.g[t] && e.g[t].default;
1232
- }(h);
1233
- !function (t, r, n) {
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 = e.g.CF.entryPoint[r.gfv]) && void 0 !== o ? o : function (e) {
1236
- throw "string" == typeof e || null == e ? new Error(null != e ? e : "Undefined is not allowed") : e;
1237
- }("Form entry point ".concat(r.gfv, " not found.")))(t, r).then(function (e) {
1238
- var t = e.publicForm || function (e) {
1239
- return new ce(e);
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
- }(t, fe(fe({}, d), {}, {
776
+ }(e, tt(tt({}, h), {}, {
1244
777
  templatesApi: r.templatesApi,
1245
778
  renderForm: n
1246
779
  }), i);
1247
- }).catch(function (e) {
1248
- i(new Error("dynamic loading is not supported for gfv ".concat(f, "\n").concat(e)));
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
- e.g.CF = ve;
795
+ t.g.CF = at;
1262
796
  }();
1263
797
  //# sourceMappingURL=client.min.js.map