@kontur.candy/tools 2.211.0 → 2.213.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 (63) hide show
  1. package/distr/Common/CandyApiClient/CandyApiClient.js +69 -19
  2. package/distr/Common/CandyApiClient/CandyApiClient.js.map +1 -1
  3. package/distr/Common/CandyApiClient/FakeCandyApiClient.js +27 -3
  4. package/distr/Common/CandyApiClient/FakeCandyApiClient.js.map +1 -1
  5. package/distr/Common/CandyApiClient/ICandyApiClient.js.map +1 -1
  6. package/distr/Common/CandyApiClient/Types/DraftFullId.js.map +1 -1
  7. package/distr/Common/CandyApiClient/Types/FeatureFlags/FeatureFlagsResponse.js.map +1 -1
  8. package/distr/Common/CandyApiClient/Types/GFV/GFVResponse.js +6 -0
  9. package/distr/Common/CandyApiClient/Types/GFV/GFVResponse.js.map +1 -0
  10. package/distr/Common/CandyApiClient/Types/HistoryEditing/InnerHistoryResponse.js +6 -0
  11. package/distr/Common/CandyApiClient/Types/HistoryEditing/InnerHistoryResponse.js.map +1 -0
  12. package/distr/Common/Errors/ExtendedError.js +31 -0
  13. package/distr/Common/Errors/ExtendedError.js.map +1 -0
  14. package/distr/Common/ExtractGFVPath/ExtractGFVPath.js +5 -3
  15. package/distr/Common/ExtractGFVPath/ExtractGFVPath.js.map +1 -1
  16. package/distr/Common/FSPrinterClient/FSPrinterClient.js +14 -5
  17. package/distr/Common/FSPrinterClient/FSPrinterClient.js.map +1 -1
  18. package/distr/Common/FSPrinterClient/IFSPrinterClient.js.map +1 -1
  19. package/distr/Common/HttpClient/HttpClient.js +50 -5
  20. package/distr/Common/HttpClient/HttpClient.js.map +1 -1
  21. package/distr/Common/HttpClient/IHttpClient.js.map +1 -1
  22. package/distr/Common/NidusClient/Fakes/FakeNidusClient.js +3 -0
  23. package/distr/Common/NidusClient/Fakes/FakeNidusClient.js.map +1 -1
  24. package/distr/Common/NidusClient/Fakes/LocalStorageBasedNidusClient.js +3 -0
  25. package/distr/Common/NidusClient/Fakes/LocalStorageBasedNidusClient.js.map +1 -1
  26. package/distr/Common/NidusClient/INidusClient.js.map +1 -1
  27. package/distr/Common/NidusClient/NidusClientImpl.js +10 -0
  28. package/distr/Common/NidusClient/NidusClientImpl.js.map +1 -1
  29. package/distr/Common/PicklistApiClient/PicklistRequestV2Builder.js +2 -1
  30. package/distr/Common/PicklistApiClient/PicklistRequestV2Builder.js.map +1 -1
  31. package/distr/Common/TypeConversionHelper.js +13 -0
  32. package/distr/Common/TypeConversionHelper.js.map +1 -0
  33. package/distr/Common/UseShowOnce.js +1 -1
  34. package/distr/Common/UseShowOnce.js.map +1 -1
  35. package/distr/Common/WellKnownDirectories.js +2 -0
  36. package/distr/Common/WellKnownDirectories.js.map +1 -1
  37. package/distr/Tools/src/BuildTasks/Form/WriteAttachmentPathByGfvFiles.js +24 -0
  38. package/distr/Tools/src/BuildTasks/Form/WriteAttachmentPathByGfvFiles.js.map +1 -0
  39. package/distr/Tools/src/BuildTasks/ResolveFormInfo.js +1 -1
  40. package/distr/Tools/src/BuildTasks/ResolveFormInfo.js.map +1 -1
  41. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js +2 -0
  42. package/distr/Tools/src/CLICommands/BuildForms/RunBuildForms.js.map +1 -1
  43. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesController.js +6 -3
  44. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBackendResourcesController.js.map +1 -1
  45. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBuildFormsController.js +5 -0
  46. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/BuildServerBuildFormsController.js.map +1 -1
  47. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/CandyWidgetDevServer.js +1 -1
  48. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/CandyWidgetDevServer.js.map +1 -1
  49. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/RunFormCompilationViaWebpackDevServer.js +1 -0
  50. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/DevServers/RunFormCompilationViaWebpackDevServer.js.map +1 -1
  51. package/distr/Tools/src/CLICommands/BuildServer/ResourcesControllers/IGeneratedServerSideSourcesProvider.js.map +1 -1
  52. package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js +2 -1
  53. package/distr/Tools/src/CLICommands/DevBuild/RunDevBuild.js.map +1 -1
  54. package/distr/Tools/src/FormWebpackConfiguration/createFormWebpackConfiguration.js +3 -1
  55. package/distr/Tools/src/FormWebpackConfiguration/createFormWebpackConfiguration.js.map +1 -1
  56. package/distr/Tools/src/LocalServerFrontEndDist/enhancedClient.js +1 -1
  57. package/distr/Tools/src/LocalServerFrontEndDist/index.js +1 -1
  58. package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
  59. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +206 -220
  60. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
  61. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +90 -102
  62. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
  63. package/package.json +1 -1
@@ -12,12 +12,12 @@
12
12
  }, t(e);
13
13
  }
14
14
  function r(e) {
15
- var r = function (e, r) {
15
+ var r = function (e) {
16
16
  if ("object" != t(e) || !e) return e;
17
- var n = e[Symbol.toPrimitive];
18
- if (void 0 !== n) {
19
- var o = n.call(e, "string");
20
- if ("object" != t(o)) return o;
17
+ var r = e[Symbol.toPrimitive];
18
+ if (void 0 !== r) {
19
+ var n = r.call(e, "string");
20
+ if ("object" != t(n)) return n;
21
21
  throw new TypeError("@@toPrimitive must return a primitive value.");
22
22
  }
23
23
  return String(e);
@@ -45,7 +45,7 @@
45
45
  if ("object" == typeof window) return window;
46
46
  }
47
47
  }();
48
- var i = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== e.g && e.g || {},
48
+ var i = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== i && i,
49
49
  a = ("URLSearchParams" in i),
50
50
  u = "Symbol" in i && "iterator" in Symbol,
51
51
  s = "FileReader" in i && "Blob" in i && function () {
@@ -86,14 +86,14 @@
86
86
  this.map = {}, e instanceof m ? e.forEach(function (e, t) {
87
87
  this.append(t, e);
88
88
  }, this) : Array.isArray(e) ? e.forEach(function (e) {
89
- if (2 != e.length) throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + e.length);
90
89
  this.append(e[0], e[1]);
91
90
  }, this) : e && Object.getOwnPropertyNames(e).forEach(function (t) {
92
91
  this.append(t, e[t]);
93
92
  }, this);
94
93
  }
95
94
  function v(e) {
96
- if (!e._noBody) return e.bodyUsed ? Promise.reject(new TypeError("Already read")) : void (e.bodyUsed = !0);
95
+ if (e.bodyUsed) return Promise.reject(new TypeError("Already read"));
96
+ e.bodyUsed = !0;
97
97
  }
98
98
  function b(e) {
99
99
  return new Promise(function (t, r) {
@@ -117,7 +117,7 @@
117
117
  function E() {
118
118
  return this.bodyUsed = !1, this._initBody = function (e) {
119
119
  var t;
120
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : s && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : c && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : a && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : l && s && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l && (ArrayBuffer.prototype.isPrototypeOf(e) || h(e)) ? this._bodyArrayBuffer = g(e) : this._bodyText = e = Object.prototype.toString.call(e) : (this._noBody = !0, 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) : a && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
120
+ this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : s && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : c && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : a && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : l && s && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : l && (ArrayBuffer.prototype.isPrototypeOf(e) || h(e)) ? this._bodyArrayBuffer = g(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) : a && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
121
121
  }, s && (this.blob = function () {
122
122
  var e = v(this);
123
123
  if (e) return e;
@@ -125,19 +125,15 @@
125
125
  if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
126
126
  if (this._bodyFormData) throw new Error("could not read FormData body as blob");
127
127
  return Promise.resolve(new Blob([this._bodyText]));
128
- }), this.arrayBuffer = function () {
129
- if (this._bodyArrayBuffer) return v(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer));
130
- if (s) return this.blob().then(w);
131
- throw new Error("could not read as ArrayBuffer");
132
- }, this.text = function () {
128
+ }, this.arrayBuffer = function () {
129
+ return this._bodyArrayBuffer ? v(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(w);
130
+ }), this.text = function () {
133
131
  var e,
134
132
  t,
135
133
  r,
136
- n,
137
- o,
138
- i = v(this);
139
- if (i) return i;
140
- if (this._bodyBlob) return e = this._bodyBlob, r = b(t = new FileReader()), o = (n = /charset=([A-Za-z0-9_-]+)/.exec(e.type)) ? n[1] : "utf-8", t.readAsText(e, o), r;
134
+ n = v(this);
135
+ if (n) return n;
136
+ if (this._bodyBlob) return e = this._bodyBlob, r = b(t = new FileReader()), t.readAsText(e), r;
141
137
  if (this._bodyArrayBuffer) return Promise.resolve(function (e) {
142
138
  for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++) r[n] = String.fromCharCode(t[n]);
143
139
  return r.join("");
@@ -180,7 +176,7 @@
180
176
  e.push([r, t]);
181
177
  }), y(e);
182
178
  }, u && (m.prototype[Symbol.iterator] = m.prototype.entries);
183
- var O = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
179
+ var O = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
184
180
  function k(e, t) {
185
181
  if (!(this instanceof k)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
186
182
  var r,
@@ -190,12 +186,10 @@
190
186
  if (e.bodyUsed) throw new TypeError("Already read");
191
187
  this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new m(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, o || null == e._bodyInit || (o = e._bodyInit, e.bodyUsed = !0);
192
188
  } else this.url = String(e);
193
- if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new m(t.headers)), this.method = (n = (r = t.method || this.method || "GET").toUpperCase(), O.indexOf(n) > -1 ? n : r), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || function () {
194
- if ("AbortController" in i) return new AbortController().signal;
195
- }(), this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && o) throw new TypeError("Body not allowed for GET or HEAD requests");
189
+ if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new m(t.headers)), this.method = (n = (r = t.method || this.method || "GET").toUpperCase(), O.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");
196
190
  if (this._initBody(o), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache)) {
197
- var a = /([?&])_=[^&]*/;
198
- a.test(this.url) ? this.url = this.url.replace(a, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
191
+ var i = /([?&])_=[^&]*/;
192
+ i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
199
193
  }
200
194
  }
201
195
  function A(e) {
@@ -211,8 +205,7 @@
211
205
  }
212
206
  function j(e, t) {
213
207
  if (!(this instanceof j)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
214
- if (t || (t = {}), this.type = "default", this.status = void 0 === t.status ? 200 : t.status, this.status < 200 || this.status > 599) throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");
215
- this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, this.headers = new m(t.headers), this.url = t.url || "", this._initBody(e);
208
+ 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 m(t.headers), this.url = t.url || "", this._initBody(e);
216
209
  }
217
210
  k.prototype.clone = function () {
218
211
  return new k(this, {
@@ -227,10 +220,10 @@
227
220
  });
228
221
  }, j.error = function () {
229
222
  var e = new j(null, {
230
- status: 200,
223
+ status: 0,
231
224
  statusText: ""
232
225
  });
233
- return e.ok = !1, e.status = 0, e.type = "error", e;
226
+ return e.type = "error", e;
234
227
  };
235
228
  var S = [301, 302, 303, 307, 308];
236
229
  j.redirect = function (e, t) {
@@ -242,28 +235,29 @@
242
235
  }
243
236
  });
244
237
  };
245
- var T = i.DOMException;
238
+ var P = i.DOMException;
246
239
  try {
247
- new T();
240
+ new P();
248
241
  } catch (e) {
249
- (T = function (e, t) {
242
+ (P = function (e, t) {
250
243
  this.message = e, this.name = t;
251
244
  var r = Error(e);
252
245
  this.stack = r.stack;
253
- }).prototype = Object.create(Error.prototype), T.prototype.constructor = T;
246
+ }).prototype = Object.create(Error.prototype), P.prototype.constructor = P;
254
247
  }
255
- function P(e, t) {
248
+ function T(e, t) {
256
249
  return new Promise(function (r, n) {
257
250
  var o = new k(e, t);
258
- if (o.signal && o.signal.aborted) return n(new T("Aborted", "AbortError"));
251
+ if (o.signal && o.signal.aborted) return n(new P("Aborted", "AbortError"));
259
252
  var a = new XMLHttpRequest();
260
253
  function u() {
261
254
  a.abort();
262
255
  }
263
- if (a.onload = function () {
256
+ a.onload = function () {
264
257
  var e,
265
258
  t,
266
259
  n = {
260
+ status: a.status,
267
261
  statusText: a.statusText,
268
262
  headers: (e = a.getAllResponseHeaders() || "", t = new m(), e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (e) {
269
263
  return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e;
@@ -272,18 +266,14 @@
272
266
  n = r.shift().trim();
273
267
  if (n) {
274
268
  var o = r.join(":").trim();
275
- try {
276
- t.append(n, o);
277
- } catch (e) {
278
- console.warn("Response " + e.message);
279
- }
269
+ t.append(n, o);
280
270
  }
281
271
  }), t)
282
272
  };
283
- 0 === o.url.indexOf("file://") && (a.status < 200 || a.status > 599) ? n.status = 200 : n.status = a.status, n.url = "responseURL" in a ? a.responseURL : n.headers.get("X-Request-URL");
284
- var i = "response" in a ? a.response : a.responseText;
273
+ n.url = "responseURL" in a ? a.responseURL : n.headers.get("X-Request-URL");
274
+ var o = "response" in a ? a.response : a.responseText;
285
275
  setTimeout(function () {
286
- r(new j(i, n));
276
+ r(new j(o, n));
287
277
  }, 0);
288
278
  }, a.onerror = function () {
289
279
  setTimeout(function () {
@@ -291,11 +281,11 @@
291
281
  }, 0);
292
282
  }, a.ontimeout = function () {
293
283
  setTimeout(function () {
294
- n(new TypeError("Network request timed out"));
284
+ n(new TypeError("Network request failed"));
295
285
  }, 0);
296
286
  }, a.onabort = function () {
297
287
  setTimeout(function () {
298
- n(new T("Aborted", "AbortError"));
288
+ n(new P("Aborted", "AbortError"));
299
289
  }, 0);
300
290
  }, a.open(o.method, function (e) {
301
291
  try {
@@ -303,17 +293,11 @@
303
293
  } catch (t) {
304
294
  return e;
305
295
  }
306
- }(o.url), !0), "include" === o.credentials ? a.withCredentials = !0 : "omit" === o.credentials && (a.withCredentials = !1), "responseType" in a && (s ? a.responseType = "blob" : l && (a.responseType = "arraybuffer")), t && "object" == typeof t.headers && !(t.headers instanceof m || i.Headers && t.headers instanceof i.Headers)) {
307
- var c = [];
308
- Object.getOwnPropertyNames(t.headers).forEach(function (e) {
309
- c.push(d(e)), a.setRequestHeader(e, p(t.headers[e]));
310
- }), o.headers.forEach(function (e, t) {
311
- -1 === c.indexOf(t) && a.setRequestHeader(t, e);
312
- });
313
- } else o.headers.forEach(function (e, t) {
296
+ }(o.url), !0), "include" === o.credentials ? a.withCredentials = !0 : "omit" === o.credentials && (a.withCredentials = !1), "responseType" in a && (s ? a.responseType = "blob" : l && o.headers.get("Content-Type") && -1 !== o.headers.get("Content-Type").indexOf("application/octet-stream") && (a.responseType = "arraybuffer")), !t || "object" != typeof t.headers || t.headers instanceof m ? o.headers.forEach(function (e, t) {
314
297
  a.setRequestHeader(t, e);
315
- });
316
- o.signal && (o.signal.addEventListener("abort", u), a.onreadystatechange = function () {
298
+ }) : Object.getOwnPropertyNames(t.headers).forEach(function (e) {
299
+ a.setRequestHeader(e, p(t.headers[e]));
300
+ }), o.signal && (o.signal.addEventListener("abort", u), a.onreadystatechange = function () {
317
301
  4 === a.readyState && o.signal.removeEventListener("abort", u);
318
302
  }), a.send(void 0 === o._bodyInit ? null : o._bodyInit);
319
303
  });
@@ -327,14 +311,14 @@
327
311
  o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, r(o.key), o);
328
312
  }
329
313
  }
330
- function C(e, t, r) {
314
+ function U(e, t, r) {
331
315
  return t && B(e.prototype, t), r && B(e, r), Object.defineProperty(e, "prototype", {
332
316
  writable: !1
333
317
  }), e;
334
318
  }
335
- P.polyfill = !0, i.fetch || (i.fetch = P, i.Headers = m, i.Request = k, i.Response = j);
336
- var R = function () {
337
- return C(function e() {
319
+ T.polyfill = !0, i.fetch || (i.fetch = T, i.Headers = m, i.Request = k, i.Response = j);
320
+ var C = function () {
321
+ return U(function e() {
338
322
  _(this, e);
339
323
  }, null, [{
340
324
  key: "script",
@@ -366,7 +350,7 @@
366
350
  function I(e) {
367
351
  return "string" == typeof e ? "false" !== e && "true" === e : Boolean(e);
368
352
  }
369
- var D = {
353
+ var R = {
370
354
  authorized: I("{authorized}"),
371
355
  cauldronApiUrl: "{cauldronApiUrl}",
372
356
  isTestServer: I("{isTestServer}"),
@@ -375,7 +359,7 @@
375
359
  normativeUrl: "{normativeUrl}",
376
360
  konturDomains: "{konturDomains}"
377
361
  };
378
- function U(e, t, r, n, o, i, a) {
362
+ function D(e, t, r, n, o, i, a) {
379
363
  try {
380
364
  var u = e[i](a),
381
365
  s = u.value;
@@ -391,10 +375,10 @@
391
375
  return new Promise(function (n, o) {
392
376
  var i = e.apply(t, r);
393
377
  function a(e) {
394
- U(i, n, o, a, u, "next", e);
378
+ D(i, n, o, a, u, "next", e);
395
379
  }
396
380
  function u(e) {
397
- U(i, n, o, a, u, "throw", e);
381
+ D(i, n, o, a, u, "throw", e);
398
382
  }
399
383
  a(void 0);
400
384
  });
@@ -410,7 +394,7 @@
410
394
  return e.__proto__ = t, e;
411
395
  }, M(e, t);
412
396
  }
413
- function N(e, t) {
397
+ function L(e, t) {
414
398
  if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
415
399
  e.prototype = Object.create(t && t.prototype, {
416
400
  constructor: {
@@ -422,17 +406,17 @@
422
406
  writable: !1
423
407
  }), t && M(e, t);
424
408
  }
425
- function L() {
409
+ function N() {
426
410
  try {
427
411
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
428
412
  } catch (e) {}
429
- return (L = function () {
413
+ return (N = function () {
430
414
  return !!e;
431
415
  })();
432
416
  }
433
- function H(e) {
417
+ function z(e) {
434
418
  var t = "function" == typeof Map ? new Map() : void 0;
435
- return H = function (e) {
419
+ return z = function (e) {
436
420
  if (null === e || !function (e) {
437
421
  try {
438
422
  return -1 !== Function.toString.call(e).indexOf("[native code]");
@@ -447,7 +431,7 @@
447
431
  }
448
432
  function r() {
449
433
  return function (e, t, r) {
450
- if (L()) return Reflect.construct.apply(null, arguments);
434
+ if (N()) return Reflect.construct.apply(null, arguments);
451
435
  var n = [null];
452
436
  n.push.apply(n, t);
453
437
  var o = new (e.bind.apply(e, n))();
@@ -462,9 +446,9 @@
462
446
  configurable: !0
463
447
  }
464
448
  }), M(r, e);
465
- }, H(e);
449
+ }, z(e);
466
450
  }
467
- function z(e, r, n) {
451
+ function q(e, r, n) {
468
452
  return r = F(r), function (e, r) {
469
453
  if (r && ("object" == t(r) || "function" == typeof r)) return r;
470
454
  if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
@@ -472,29 +456,29 @@
472
456
  if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
473
457
  return e;
474
458
  }(e);
475
- }(e, q() ? Reflect.construct(r, n || [], F(e).constructor) : r.apply(e, n));
459
+ }(e, H() ? Reflect.construct(r, n || [], F(e).constructor) : r.apply(e, n));
476
460
  }
477
- function q() {
461
+ function H() {
478
462
  try {
479
463
  var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
480
464
  } catch (e) {}
481
- return (q = function () {
465
+ return (H = function () {
482
466
  return !!e;
483
467
  })();
484
468
  }
485
469
  var V = function (e) {
486
470
  function t() {
487
- return _(this, t), z(this, t, ["Operation not implemented"]);
471
+ return _(this, t), q(this, t, ["Operation not implemented"]);
488
472
  }
489
- return N(t, e), C(t);
473
+ return L(t, e), U(t);
490
474
  }(function (e) {
491
475
  function t(e) {
492
476
  var r;
493
- return _(this, t), (r = z(this, t, [e])).name = r.constructor.name, r;
477
+ return _(this, t), (r = q(this, t, [e])).name = r.constructor.name, r;
494
478
  }
495
- return N(t, e), C(t);
496
- }(H(Error)));
497
- function Z(e, t) {
479
+ return L(t, e), U(t);
480
+ }(z(Error)));
481
+ function G(e, t) {
498
482
  var r = Object.keys(e);
499
483
  if (Object.getOwnPropertySymbols) {
500
484
  var n = Object.getOwnPropertySymbols(e);
@@ -504,12 +488,12 @@
504
488
  }
505
489
  return r;
506
490
  }
507
- function G(e) {
491
+ function Z(e) {
508
492
  for (var t = 1; t < arguments.length; t++) {
509
493
  var r = null != arguments[t] ? arguments[t] : {};
510
- t % 2 ? Z(Object(r), !0).forEach(function (t) {
494
+ t % 2 ? G(Object(r), !0).forEach(function (t) {
511
495
  n(e, t, r[t]);
512
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Z(Object(r)).forEach(function (t) {
496
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : G(Object(r)).forEach(function (t) {
513
497
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
514
498
  });
515
499
  }
@@ -532,11 +516,11 @@
532
516
  }
533
517
  function J(e) {
534
518
  return e.reduce(function (e, t) {
535
- return G(G({}, e), t);
519
+ return Z(Z({}, e), t);
536
520
  }, {});
537
521
  }
538
522
  var W = function () {
539
- return C(function e(t) {
523
+ return U(function e(t) {
540
524
  _(this, e), this.form = void 0, this.form = t;
541
525
  }, [{
542
526
  key: "navigateByHighlanderPaths",
@@ -751,7 +735,7 @@
751
735
  this.form.model.set(e, "value", r);
752
736
  } else {
753
737
  var o = Object.keys(e).reduce(function (t, r) {
754
- return G(n({}, r, {
738
+ return Z(n({}, r, {
755
739
  value: e[r]
756
740
  }), t);
757
741
  }, {});
@@ -962,7 +946,7 @@
962
946
  a = null,
963
947
  u = r.ns,
964
948
  s = r.draftId;
965
- if (new RegExp("^(?:".concat(D.konturDomains.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(e.g.location.host) ? D.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 {
949
+ if (new RegExp("^(?:".concat(R.konturDomains.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(e.g.location.host) ? R.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 {
966
950
  var c = null !== (n = r.resourceZone) && void 0 !== n ? n : re("resourceZone"),
967
951
  l = te(ee(function (e) {
968
952
  return "v1/ns/".concat(e.ns, "/drafts/").concat(e.draftId, "/client-draft-info");
@@ -979,7 +963,7 @@
979
963
  var h;
980
964
  f.credentials = "omit", f.headers = null !== (h = f.headers) && void 0 !== h ? h : {}, f.headers.Authorization = "AUTH.SID ".concat(r.authentication.authSid);
981
965
  } else f.credentials = "omit";
982
- (null !== (o = r.fetch) && void 0 !== o ? o : P)(l, f).then(function (e) {
966
+ (null !== (o = r.fetch) && void 0 !== o ? o : T)(l, f).then(function (e) {
983
967
  return e.json();
984
968
  }).then(function (n) {
985
969
  var o,
@@ -990,13 +974,13 @@
990
974
  f = n.gfv,
991
975
  h = n.engineVersion,
992
976
  d = Q(Q(Q({
993
- authorized: D.authorized,
994
- cauldronApiUrl: D.cauldronApiUrl,
995
- isTestServer: D.isTestServer,
996
- renderCachingForIE8: D.renderCachingForIE8,
997
- normalizationOnServer: D.normalizationOnServer,
998
- normativeUrl: D.normativeUrl,
999
- konturDomains: D.konturDomains,
977
+ authorized: R.authorized,
978
+ cauldronApiUrl: R.cauldronApiUrl,
979
+ isTestServer: R.isTestServer,
980
+ renderCachingForIE8: R.renderCachingForIE8,
981
+ normalizationOnServer: R.normalizationOnServer,
982
+ normativeUrl: R.normativeUrl,
983
+ konturDomains: R.konturDomains,
1000
984
  showNavigationSidebar: null === (o = r.showNavigationSidebar) || void 0 === o || o,
1001
985
  onRemoveAttachment: r.onRemoveAttachment
1002
986
  }, r), n), {}, {
@@ -1019,13 +1003,13 @@
1019
1003
  resourceZone: t.resourceZone
1020
1004
  };
1021
1005
  u.push(function (e) {
1022
- return R.styleSheet(ee(te("static/public/styles/".concat(n).concat(a, ".css"), s)), !0, e);
1006
+ return C.styleSheet(ee(te("static/public/styles/".concat(n).concat(a, ".css"), s)), !0, e);
1023
1007
  }), u.push(function (e) {
1024
- return R.script(ee(te("static/public/scripts/".concat(n).concat(a, ".js"), s)), e);
1008
+ return C.script(ee(te("static/public/scripts/".concat(n).concat(a, ".js"), s)), e);
1025
1009
  }), i && u.push(function (e) {
1026
- return R.styleSheet(ee(te("static/public/styles/candy_".concat(o).concat(a, ".css"), s)), !1, e);
1010
+ return C.styleSheet(ee(te("static/public/styles/candy_".concat(o).concat(a, ".css"), s)), !1, e);
1027
1011
  }, function (e) {
1028
- return R.script(ee(te("static/public/scripts/candy_".concat(o).concat(a, ".js"), s)), e);
1012
+ return C.script(ee(te("static/public/scripts/candy_".concat(o).concat(a, ".js"), s)), e);
1029
1013
  }), function (e, t) {
1030
1014
  var r = 0;
1031
1015
  e.forEach(function (n) {
@@ -1068,8 +1052,12 @@
1068
1052
  }
1069
1053
  },
1070
1054
  entryPoint: {},
1071
- partialRenderingForIE8: ("{partialRenderingForIE8}", !1),
1072
- keformsUrl: "{keformsUrl}"
1055
+ partialRenderingForIE8: !1,
1056
+ keformsUrl: "{keformsUrl}",
1057
+ staffServiceUrl: "{staffServiceUrl}",
1058
+ picklistUrl: "{picklistApiUrl}",
1059
+ nidusUrl: "{nidusApiUrl}",
1060
+ fsPrinterUrl: "{fsprinterApiUrl}"
1073
1061
  };
1074
1062
  e.g.CF = ne;
1075
1063
  }();