@kontur.candy/tools 2.212.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 (62) 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/index.js +1 -1
  57. package/distr/Tools/src/LocalServerFrontEndDist/index.js.map +1 -1
  58. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js +260 -278
  59. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.js.map +1 -1
  60. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js +87 -103
  61. package/distr/Tools/src/StaticFilesForProductionResourcesDir/client.min.js.map +1 -1
  62. package/package.json +1 -1
@@ -222,10 +222,10 @@
222
222
  function u(e) {
223
223
  return null != e;
224
224
  }
225
- function l(e) {
225
+ function c(e) {
226
226
  throw "string" == typeof e || null == e ? new Error(null != e ? e : "Undefined is not allowed") : e;
227
227
  }
228
- function c(e, t) {
228
+ function l(e, t) {
229
229
  return e.length >= t;
230
230
  }
231
231
  function s(e, t) {
@@ -239,14 +239,14 @@
239
239
  }
240
240
  r.d(t, {
241
241
  ku: function () {
242
- return l;
242
+ return c;
243
243
  }
244
244
  }), e = r.hmd(e), (o = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && o(e), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature, (n = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (n.register(u, "isNotNullOrUndefined", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {
245
245
  return "object" === a(e) && (null == e ? void 0 : e.message);
246
246
  }, "stringifyUnknownError", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {
247
247
  if (!u(e)) throw new Error("Value must be defined");
248
- }, "ensureNotNullOrUndefined", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function () {}, "noop", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(l, "reject", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(c, "isLengthGreaterThenOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e, t) {
249
- if (c(e, t)) return e;
248
+ }, "ensureNotNullOrUndefined", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function () {}, "noop", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(c, "reject", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(l, "isLengthGreaterThenOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e, t) {
249
+ if (l(e, t)) return e;
250
250
  }, "minLengthOrUndefined", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {
251
251
  if (!Array.isArray(e)) throw new Error("Must be an array!");
252
252
  return e;
@@ -257,7 +257,7 @@
257
257
  }, "ensureArrayIsNotEmpty", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e, t) {
258
258
  if (!s(e, t)) throw new Error("Array should has length ".concat(t));
259
259
  }, "ensureArrayHasLength", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e, t) {
260
- if (!c(e, t)) throw new Error("Array must have minimal length ".concat(t));
260
+ if (!l(e, t)) throw new Error("Array must have minimal length ".concat(t));
261
261
  }, "ensureArrayLengthGreaterThenOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {}, "ensureNever", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {
262
262
  return "".concat(e);
263
263
  }, "ensureAndGetString", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {
@@ -271,32 +271,30 @@
271
271
  }, "trimLastSlash", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts"), n.register(function (e) {}, "assertIs", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Common\\TypingUtils.ts")), (i = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && i(e);
272
272
  },
273
273
  591: function (e, t, r) {
274
- var o = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== r.g && r.g || {},
275
- n = {
276
- searchParams: "URLSearchParams" in o,
277
- iterable: "Symbol" in o && "iterator" in Symbol,
278
- blob: "FileReader" in o && "Blob" in o && function () {
279
- try {
280
- return new Blob(), !0;
281
- } catch (e) {
282
- return !1;
283
- }
284
- }(),
285
- formData: "FormData" in o,
286
- arrayBuffer: "ArrayBuffer" in o
287
- };
288
- if (n.arrayBuffer) var i = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
289
- a = ArrayBuffer.isView || function (e) {
290
- return e && i.indexOf(Object.prototype.toString.call(e)) > -1;
274
+ var o = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== o && o,
275
+ n = ("URLSearchParams" in o),
276
+ i = "Symbol" in o && "iterator" in Symbol,
277
+ a = "FileReader" in o && "Blob" in o && function () {
278
+ try {
279
+ return new Blob(), !0;
280
+ } catch (e) {
281
+ return !1;
282
+ }
283
+ }(),
284
+ u = ("FormData" in o),
285
+ c = ("ArrayBuffer" in o);
286
+ if (c) var l = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"],
287
+ s = ArrayBuffer.isView || function (e) {
288
+ return e && l.indexOf(Object.prototype.toString.call(e)) > -1;
291
289
  };
292
- function u(e) {
290
+ function d(e) {
293
291
  if ("string" != typeof e && (e = String(e)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || "" === e) throw new TypeError('Invalid character in header field name: "' + e + '"');
294
292
  return e.toLowerCase();
295
293
  }
296
- function l(e) {
294
+ function f(e) {
297
295
  return "string" != typeof e && (e = String(e)), e;
298
296
  }
299
- function c(e) {
297
+ function y(e) {
300
298
  var t = {
301
299
  next: function () {
302
300
  var t = e.shift();
@@ -306,24 +304,24 @@
306
304
  };
307
305
  }
308
306
  };
309
- return n.iterable && (t[Symbol.iterator] = function () {
307
+ return i && (t[Symbol.iterator] = function () {
310
308
  return t;
311
309
  }), t;
312
310
  }
313
- function s(e) {
314
- this.map = {}, e instanceof s ? e.forEach(function (e, t) {
311
+ function p(e) {
312
+ this.map = {}, e instanceof p ? e.forEach(function (e, t) {
315
313
  this.append(t, e);
316
314
  }, this) : Array.isArray(e) ? e.forEach(function (e) {
317
- if (2 != e.length) throw new TypeError("Headers constructor: expected name/value pair to be length 2, found" + e.length);
318
315
  this.append(e[0], e[1]);
319
316
  }, this) : e && Object.getOwnPropertyNames(e).forEach(function (t) {
320
317
  this.append(t, e[t]);
321
318
  }, this);
322
319
  }
323
- function d(e) {
324
- if (!e._noBody) return e.bodyUsed ? Promise.reject(new TypeError("Already read")) : void (e.bodyUsed = !0);
320
+ function h(e) {
321
+ if (e.bodyUsed) return Promise.reject(new TypeError("Already read"));
322
+ e.bodyUsed = !0;
325
323
  }
326
- function f(e) {
324
+ function m(e) {
327
325
  return new Promise(function (t, r) {
328
326
  e.onload = function () {
329
327
  t(e.result);
@@ -332,101 +330,95 @@
332
330
  };
333
331
  });
334
332
  }
335
- function y(e) {
333
+ function _(e) {
336
334
  var t = new FileReader(),
337
- r = f(t);
335
+ r = m(t);
338
336
  return t.readAsArrayBuffer(e), r;
339
337
  }
340
- function p(e) {
338
+ function g(e) {
341
339
  if (e.slice) return e.slice(0);
342
340
  var t = new Uint8Array(e.byteLength);
343
341
  return t.set(new Uint8Array(e)), t.buffer;
344
342
  }
345
- function h() {
343
+ function v() {
346
344
  return this.bodyUsed = !1, this._initBody = function (e) {
347
345
  var t;
348
- this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : n.blob && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : n.formData && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : n.searchParams && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : n.arrayBuffer && n.blob && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = p(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : n.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(e) || a(e)) ? this._bodyArrayBuffer = p(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) : n.searchParams && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
349
- }, n.blob && (this.blob = function () {
350
- var e = d(this);
346
+ this.bodyUsed = this.bodyUsed, this._bodyInit = e, e ? "string" == typeof e ? this._bodyText = e : a && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : u && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : n && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : c && a && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = g(e.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : c && (ArrayBuffer.prototype.isPrototypeOf(e) || s(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) : n && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
347
+ }, a && (this.blob = function () {
348
+ var e = h(this);
351
349
  if (e) return e;
352
350
  if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
353
351
  if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
354
352
  if (this._bodyFormData) throw new Error("could not read FormData body as blob");
355
353
  return Promise.resolve(new Blob([this._bodyText]));
356
- }), this.arrayBuffer = function () {
357
- if (this._bodyArrayBuffer) return d(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer));
358
- if (n.blob) return this.blob().then(y);
359
- throw new Error("could not read as ArrayBuffer");
360
- }, this.text = function () {
354
+ }, this.arrayBuffer = function () {
355
+ return this._bodyArrayBuffer ? h(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(_);
356
+ }), this.text = function () {
361
357
  var e,
362
358
  t,
363
359
  r,
364
- o,
365
- n,
366
- i = d(this);
367
- if (i) return i;
368
- if (this._bodyBlob) return e = this._bodyBlob, r = f(t = new FileReader()), n = (o = /charset=([A-Za-z0-9_-]+)/.exec(e.type)) ? o[1] : "utf-8", t.readAsText(e, n), r;
360
+ o = h(this);
361
+ if (o) return o;
362
+ if (this._bodyBlob) return e = this._bodyBlob, r = m(t = new FileReader()), t.readAsText(e), r;
369
363
  if (this._bodyArrayBuffer) return Promise.resolve(function (e) {
370
364
  for (var t = new Uint8Array(e), r = new Array(t.length), o = 0; o < t.length; o++) r[o] = String.fromCharCode(t[o]);
371
365
  return r.join("");
372
366
  }(this._bodyArrayBuffer));
373
367
  if (this._bodyFormData) throw new Error("could not read FormData body as text");
374
368
  return Promise.resolve(this._bodyText);
375
- }, n.formData && (this.formData = function () {
376
- return this.text().then(g);
369
+ }, u && (this.formData = function () {
370
+ return this.text().then(w);
377
371
  }), this.json = function () {
378
372
  return this.text().then(JSON.parse);
379
373
  }, this;
380
374
  }
381
- s.prototype.append = function (e, t) {
382
- e = u(e), t = l(t);
375
+ p.prototype.append = function (e, t) {
376
+ e = d(e), t = f(t);
383
377
  var r = this.map[e];
384
378
  this.map[e] = r ? r + ", " + t : t;
385
- }, s.prototype.delete = function (e) {
386
- delete this.map[u(e)];
387
- }, s.prototype.get = function (e) {
388
- return e = u(e), this.has(e) ? this.map[e] : null;
389
- }, s.prototype.has = function (e) {
390
- return this.map.hasOwnProperty(u(e));
391
- }, s.prototype.set = function (e, t) {
392
- this.map[u(e)] = l(t);
393
- }, s.prototype.forEach = function (e, t) {
379
+ }, p.prototype.delete = function (e) {
380
+ delete this.map[d(e)];
381
+ }, p.prototype.get = function (e) {
382
+ return e = d(e), this.has(e) ? this.map[e] : null;
383
+ }, p.prototype.has = function (e) {
384
+ return this.map.hasOwnProperty(d(e));
385
+ }, p.prototype.set = function (e, t) {
386
+ this.map[d(e)] = f(t);
387
+ }, p.prototype.forEach = function (e, t) {
394
388
  for (var r in this.map) this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this);
395
- }, s.prototype.keys = function () {
389
+ }, p.prototype.keys = function () {
396
390
  var e = [];
397
391
  return this.forEach(function (t, r) {
398
392
  e.push(r);
399
- }), c(e);
400
- }, s.prototype.values = function () {
393
+ }), y(e);
394
+ }, p.prototype.values = function () {
401
395
  var e = [];
402
396
  return this.forEach(function (t) {
403
397
  e.push(t);
404
- }), c(e);
405
- }, s.prototype.entries = function () {
398
+ }), y(e);
399
+ }, p.prototype.entries = function () {
406
400
  var e = [];
407
401
  return this.forEach(function (t, r) {
408
402
  e.push([r, t]);
409
- }), c(e);
410
- }, n.iterable && (s.prototype[Symbol.iterator] = s.prototype.entries);
411
- var m = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
412
- function _(e, t) {
413
- if (!(this instanceof _)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
403
+ }), y(e);
404
+ }, i && (p.prototype[Symbol.iterator] = p.prototype.entries);
405
+ var b = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
406
+ function E(e, t) {
407
+ if (!(this instanceof E)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
414
408
  var r,
415
- n,
416
- i = (t = t || {}).body;
417
- if (e instanceof _) {
409
+ o,
410
+ n = (t = t || {}).body;
411
+ if (e instanceof E) {
418
412
  if (e.bodyUsed) throw new TypeError("Already read");
419
- this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new s(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, i || null == e._bodyInit || (i = e._bodyInit, e.bodyUsed = !0);
413
+ this.url = e.url, this.credentials = e.credentials, t.headers || (this.headers = new p(e.headers)), this.method = e.method, this.mode = e.mode, this.signal = e.signal, n || null == e._bodyInit || (n = e._bodyInit, e.bodyUsed = !0);
420
414
  } else this.url = String(e);
421
- if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new s(t.headers)), this.method = (n = (r = t.method || this.method || "GET").toUpperCase(), m.indexOf(n) > -1 ? n : r), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal || function () {
422
- if ("AbortController" in o) return new AbortController().signal;
423
- }(), this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && i) throw new TypeError("Body not allowed for GET or HEAD requests");
424
- if (this._initBody(i), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache)) {
425
- var a = /([?&])_=[^&]*/;
426
- a.test(this.url) ? this.url = this.url.replace(a, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
415
+ if (this.credentials = t.credentials || this.credentials || "same-origin", !t.headers && this.headers || (this.headers = new p(t.headers)), this.method = (o = (r = t.method || this.method || "GET").toUpperCase(), b.indexOf(o) > -1 ? o : r), this.mode = t.mode || this.mode || null, this.signal = t.signal || this.signal, this.referrer = null, ("GET" === this.method || "HEAD" === this.method) && n) throw new TypeError("Body not allowed for GET or HEAD requests");
416
+ if (this._initBody(n), !("GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache)) {
417
+ var i = /([?&])_=[^&]*/;
418
+ i.test(this.url) ? this.url = this.url.replace(i, "$1_=" + new Date().getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + new Date().getTime();
427
419
  }
428
420
  }
429
- function g(e) {
421
+ function w(e) {
430
422
  var t = new FormData();
431
423
  return e.trim().split("&").forEach(function (e) {
432
424
  if (e) {
@@ -437,130 +429,120 @@
437
429
  }
438
430
  }), t;
439
431
  }
440
- function v(e, t) {
441
- if (!(this instanceof v)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
442
- 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].");
443
- this.ok = this.status >= 200 && this.status < 300, this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, this.headers = new s(t.headers), this.url = t.url || "", this._initBody(e);
432
+ function C(e, t) {
433
+ if (!(this instanceof C)) throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
434
+ 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 p(t.headers), this.url = t.url || "", this._initBody(e);
444
435
  }
445
- _.prototype.clone = function () {
446
- return new _(this, {
436
+ E.prototype.clone = function () {
437
+ return new E(this, {
447
438
  body: this._bodyInit
448
439
  });
449
- }, h.call(_.prototype), h.call(v.prototype), v.prototype.clone = function () {
450
- return new v(this._bodyInit, {
440
+ }, v.call(E.prototype), v.call(C.prototype), C.prototype.clone = function () {
441
+ return new C(this._bodyInit, {
451
442
  status: this.status,
452
443
  statusText: this.statusText,
453
- headers: new s(this.headers),
444
+ headers: new p(this.headers),
454
445
  url: this.url
455
446
  });
456
- }, v.error = function () {
457
- var e = new v(null, {
458
- status: 200,
447
+ }, C.error = function () {
448
+ var e = new C(null, {
449
+ status: 0,
459
450
  statusText: ""
460
451
  });
461
- return e.ok = !1, e.status = 0, e.type = "error", e;
452
+ return e.type = "error", e;
462
453
  };
463
- var b = [301, 302, 303, 307, 308];
464
- v.redirect = function (e, t) {
465
- if (-1 === b.indexOf(t)) throw new RangeError("Invalid status code");
466
- return new v(null, {
454
+ var k = [301, 302, 303, 307, 308];
455
+ C.redirect = function (e, t) {
456
+ if (-1 === k.indexOf(t)) throw new RangeError("Invalid status code");
457
+ return new C(null, {
467
458
  status: t,
468
459
  headers: {
469
460
  location: e
470
461
  }
471
462
  });
472
463
  };
473
- var E = o.DOMException;
464
+ var A = o.DOMException;
474
465
  try {
475
- new E();
466
+ new A();
476
467
  } catch (e) {
477
- (E = function (e, t) {
468
+ (A = function (e, t) {
478
469
  this.message = e, this.name = t;
479
470
  var r = Error(e);
480
471
  this.stack = r.stack;
481
- }).prototype = Object.create(Error.prototype), E.prototype.constructor = E;
482
- }
483
- function w(e, t) {
484
- return new Promise(function (r, i) {
485
- var a = new _(e, t);
486
- if (a.signal && a.signal.aborted) return i(new E("Aborted", "AbortError"));
487
- var c = new XMLHttpRequest();
488
- function d() {
489
- c.abort();
472
+ }).prototype = Object.create(Error.prototype), A.prototype.constructor = A;
473
+ }
474
+ function P(e, t) {
475
+ return new Promise(function (r, n) {
476
+ var i = new E(e, t);
477
+ if (i.signal && i.signal.aborted) return n(new A("Aborted", "AbortError"));
478
+ var u = new XMLHttpRequest();
479
+ function l() {
480
+ u.abort();
490
481
  }
491
- if (c.onload = function () {
482
+ u.onload = function () {
492
483
  var e,
493
484
  t,
494
485
  o = {
495
- statusText: c.statusText,
496
- headers: (e = c.getAllResponseHeaders() || "", t = new s(), e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (e) {
486
+ status: u.status,
487
+ statusText: u.statusText,
488
+ headers: (e = u.getAllResponseHeaders() || "", t = new p(), e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function (e) {
497
489
  return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e;
498
490
  }).forEach(function (e) {
499
491
  var r = e.split(":"),
500
492
  o = r.shift().trim();
501
493
  if (o) {
502
494
  var n = r.join(":").trim();
503
- try {
504
- t.append(o, n);
505
- } catch (e) {
506
- console.warn("Response " + e.message);
507
- }
495
+ t.append(o, n);
508
496
  }
509
497
  }), t)
510
498
  };
511
- 0 === a.url.indexOf("file://") && (c.status < 200 || c.status > 599) ? o.status = 200 : o.status = c.status, o.url = "responseURL" in c ? c.responseURL : o.headers.get("X-Request-URL");
512
- var n = "response" in c ? c.response : c.responseText;
499
+ o.url = "responseURL" in u ? u.responseURL : o.headers.get("X-Request-URL");
500
+ var n = "response" in u ? u.response : u.responseText;
513
501
  setTimeout(function () {
514
- r(new v(n, o));
502
+ r(new C(n, o));
515
503
  }, 0);
516
- }, c.onerror = function () {
504
+ }, u.onerror = function () {
517
505
  setTimeout(function () {
518
- i(new TypeError("Network request failed"));
506
+ n(new TypeError("Network request failed"));
519
507
  }, 0);
520
- }, c.ontimeout = function () {
508
+ }, u.ontimeout = function () {
521
509
  setTimeout(function () {
522
- i(new TypeError("Network request timed out"));
510
+ n(new TypeError("Network request failed"));
523
511
  }, 0);
524
- }, c.onabort = function () {
512
+ }, u.onabort = function () {
525
513
  setTimeout(function () {
526
- i(new E("Aborted", "AbortError"));
514
+ n(new A("Aborted", "AbortError"));
527
515
  }, 0);
528
- }, c.open(a.method, function (e) {
516
+ }, u.open(i.method, function (e) {
529
517
  try {
530
518
  return "" === e && o.location.href ? o.location.href : e;
531
519
  } catch (t) {
532
520
  return e;
533
521
  }
534
- }(a.url), !0), "include" === a.credentials ? c.withCredentials = !0 : "omit" === a.credentials && (c.withCredentials = !1), "responseType" in c && (n.blob ? c.responseType = "blob" : n.arrayBuffer && (c.responseType = "arraybuffer")), t && "object" == typeof t.headers && !(t.headers instanceof s || o.Headers && t.headers instanceof o.Headers)) {
535
- var f = [];
536
- Object.getOwnPropertyNames(t.headers).forEach(function (e) {
537
- f.push(u(e)), c.setRequestHeader(e, l(t.headers[e]));
538
- }), a.headers.forEach(function (e, t) {
539
- -1 === f.indexOf(t) && c.setRequestHeader(t, e);
540
- });
541
- } else a.headers.forEach(function (e, t) {
542
- c.setRequestHeader(t, e);
543
- });
544
- a.signal && (a.signal.addEventListener("abort", d), c.onreadystatechange = function () {
545
- 4 === c.readyState && a.signal.removeEventListener("abort", d);
546
- }), c.send(void 0 === a._bodyInit ? null : a._bodyInit);
522
+ }(i.url), !0), "include" === i.credentials ? u.withCredentials = !0 : "omit" === i.credentials && (u.withCredentials = !1), "responseType" in u && (a ? u.responseType = "blob" : c && i.headers.get("Content-Type") && -1 !== i.headers.get("Content-Type").indexOf("application/octet-stream") && (u.responseType = "arraybuffer")), !t || "object" != typeof t.headers || t.headers instanceof p ? i.headers.forEach(function (e, t) {
523
+ u.setRequestHeader(t, e);
524
+ }) : Object.getOwnPropertyNames(t.headers).forEach(function (e) {
525
+ u.setRequestHeader(e, f(t.headers[e]));
526
+ }), i.signal && (i.signal.addEventListener("abort", l), u.onreadystatechange = function () {
527
+ 4 === u.readyState && i.signal.removeEventListener("abort", l);
528
+ }), u.send(void 0 === i._bodyInit ? null : i._bodyInit);
547
529
  });
548
530
  }
549
- w.polyfill = !0, o.fetch || (o.fetch = w, o.Headers = s, o.Request = _, o.Response = v);
550
- var C,
551
- k = r(163),
552
- A = r(500),
553
- P = r(750),
554
- O = r(171),
555
- L = r(768);
556
- function S(e) {
557
- return S = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
531
+ P.polyfill = !0, o.fetch || (o.fetch = P, o.Headers = p, o.Request = E, o.Response = C);
532
+ var O,
533
+ L = r(163),
534
+ S = r(500),
535
+ T = r(750),
536
+ B = r(171),
537
+ I = r(768);
538
+ function j(e) {
539
+ return j = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) {
558
540
  return typeof e;
559
541
  } : function (e) {
560
542
  return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
561
- }, S(e);
543
+ }, j(e);
562
544
  }
563
- function B(e, t) {
545
+ function H(e, t) {
564
546
  var r = Object.keys(e);
565
547
  if (Object.getOwnPropertySymbols) {
566
548
  var o = Object.getOwnPropertySymbols(e);
@@ -570,30 +552,30 @@
570
552
  }
571
553
  return r;
572
554
  }
573
- function T(e) {
555
+ function M(e) {
574
556
  for (var t = 1; t < arguments.length; t++) {
575
557
  var r = null != arguments[t] ? arguments[t] : {};
576
- t % 2 ? B(Object(r), !0).forEach(function (t) {
577
- I(e, t, r[t]);
578
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : B(Object(r)).forEach(function (t) {
558
+ t % 2 ? H(Object(r), !0).forEach(function (t) {
559
+ U(e, t, r[t]);
560
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : H(Object(r)).forEach(function (t) {
579
561
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
580
562
  });
581
563
  }
582
564
  return e;
583
565
  }
584
- function I(e, t, r) {
566
+ function U(e, t, r) {
585
567
  return (t = function (e) {
586
- var t = function (e, t) {
587
- if ("object" != S(e) || !e) return e;
588
- var r = e[Symbol.toPrimitive];
589
- if (void 0 !== r) {
590
- var o = r.call(e, "string");
591
- if ("object" != S(o)) return o;
568
+ var t = function (e) {
569
+ if ("object" != j(e) || !e) return e;
570
+ var t = e[Symbol.toPrimitive];
571
+ if (void 0 !== t) {
572
+ var r = t.call(e, "string");
573
+ if ("object" != j(r)) return r;
592
574
  throw new TypeError("@@toPrimitive must return a primitive value.");
593
575
  }
594
576
  return String(e);
595
577
  }(e);
596
- return "symbol" == S(t) ? t : t + "";
578
+ return "symbol" == j(t) ? t : t + "";
597
579
  }(t)) in e ? Object.defineProperty(e, t, {
598
580
  value: r,
599
581
  enumerable: !0,
@@ -601,21 +583,21 @@
601
583
  writable: !0
602
584
  }) : e[t] = r, e;
603
585
  }
604
- function j(e, t) {
586
+ function F(e, t) {
605
587
  (null == t || t > e.length) && (t = e.length);
606
588
  for (var r = 0, o = Array(t); r < t; r++) o[r] = e[r];
607
589
  return o;
608
590
  }
609
- function H() {}
610
- function M(e) {
591
+ function D() {}
592
+ function G(e) {
611
593
  return "string" == typeof e ? "false" !== e && "true" === e : Boolean(e);
612
594
  }
613
- function U() {
595
+ function x() {
614
596
  var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "",
615
597
  t = r.g.CF.keformsUrl || "";
616
598
  return "".concat(t, "/").concat(e).replace(/([^:])\/{2,}/g, "$1/");
617
599
  }
618
- function F(e, t) {
600
+ function R(e, t) {
619
601
  if (void 0 === t) return e;
620
602
  for (var r = [], o = 0, n = Object.keys(t); o < n.length; o++) {
621
603
  var i = n[o],
@@ -624,10 +606,10 @@
624
606
  }
625
607
  return 0 === r.length ? e : e + "?" + r.join("&");
626
608
  }
627
- function D(e) {
609
+ function N(e) {
628
610
  return new RegExp("^(?:".concat(e.replace(/\./g, "\\.").replace(/\*/g, "[a-z0-9-._]+"), ")$")).test(r.g.location.host);
629
611
  }
630
- function G(e) {
612
+ function q(e) {
631
613
  return (r.g.location.search.trim().replace(/^(\?|#|&)/, "").split("&").map(function (e) {
632
614
  return e.replace(/\+/g, " ").split("=").map(decodeURIComponent);
633
615
  }).find(function (t) {
@@ -641,29 +623,29 @@
641
623
  i,
642
624
  a,
643
625
  u = [],
644
- l = !0,
645
- c = !1;
626
+ c = !0,
627
+ l = !1;
646
628
  try {
647
629
  if (i = (r = r.call(e)).next, 0 === t) {
648
630
  if (Object(r) !== r) return;
649
- l = !1;
650
- } else for (; !(l = (o = i.call(r)).done) && (u.push(o.value), u.length !== t); l = !0);
631
+ c = !1;
632
+ } else for (; !(c = (o = i.call(r)).done) && (u.push(o.value), u.length !== t); c = !0);
651
633
  } catch (e) {
652
- c = !0, n = e;
634
+ l = !0, n = e;
653
635
  } finally {
654
636
  try {
655
- if (!l && null != r.return && (a = r.return(), Object(a) !== a)) return;
637
+ if (!c && null != r.return && (a = r.return(), Object(a) !== a)) return;
656
638
  } finally {
657
- if (c) throw n;
639
+ if (l) throw n;
658
640
  }
659
641
  }
660
642
  return u;
661
643
  }
662
644
  }(r, o) || function (e, t) {
663
645
  if (e) {
664
- if ("string" == typeof e) return j(e, t);
646
+ if ("string" == typeof e) return F(e, t);
665
647
  var r = {}.toString.call(e).slice(8, -1);
666
- 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) ? j(e, t) : void 0;
648
+ 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) ? F(e, t) : void 0;
667
649
  }
668
650
  }(r, o) || function () {
669
651
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -671,7 +653,7 @@
671
653
  var r, o;
672
654
  }) || [])[1];
673
655
  }
674
- function x(e, t) {
656
+ function K(e, t) {
675
657
  var r = 0;
676
658
  e.forEach(function (o) {
677
659
  o(function (o) {
@@ -682,51 +664,51 @@
682
664
  });
683
665
  });
684
666
  }
685
- function R(e, t) {
667
+ function V(e, t) {
686
668
  var o = e.gfv,
687
669
  n = e.engineVersion;
688
670
  if (r.g.CF.entryPoint[o]) t();else {
689
671
  var i = n && !r.g[n],
690
- a = "true" === G("debug") ? "" : ".min",
672
+ a = "true" === q("debug") ? "" : ".min",
691
673
  u = [],
692
- l = {
674
+ c = {
693
675
  resourceZone: e.resourceZone
694
676
  };
695
677
  u.push(function (e) {
696
- return A.q.styleSheet(U(F("static/public/styles/".concat(o).concat(a, ".css"), l)), !0, e);
678
+ return S.q.styleSheet(x(R("static/public/styles/".concat(o).concat(a, ".css"), c)), !0, e);
697
679
  }), u.push(function (e) {
698
- return A.q.script(U(F("static/public/scripts/".concat(o).concat(a, ".js"), l)), e);
680
+ return S.q.script(x(R("static/public/scripts/".concat(o).concat(a, ".js"), c)), e);
699
681
  }), i && u.push(function (e) {
700
- return A.q.styleSheet(U(F("static/public/styles/candy_".concat(n).concat(a, ".css"), l)), !1, e);
682
+ return S.q.styleSheet(x(R("static/public/styles/candy_".concat(n).concat(a, ".css"), c)), !1, e);
701
683
  }, function (e) {
702
- return A.q.script(U(F("static/public/scripts/candy_".concat(n).concat(a, ".js"), l)), e);
703
- }), x(u, t);
684
+ return S.q.script(x(R("static/public/scripts/candy_".concat(n).concat(a, ".js"), c)), e);
685
+ }), K(u, t);
704
686
  }
705
687
  }
706
- function N(e, t, o) {
688
+ function W(e, t, o) {
707
689
  var n;
708
- (null !== (n = r.g.CF.entryPoint[t.gfv]) && void 0 !== n ? n : (0, k.ku)("Form entry point ".concat(t.gfv, " not found.")))(e, t).then(function (e) {
709
- var t = e.publicForm || (0, L.v)(e);
690
+ (null !== (n = r.g.CF.entryPoint[t.gfv]) && void 0 !== n ? n : (0, L.ku)("Form entry point ".concat(t.gfv, " not found.")))(e, t).then(function (e) {
691
+ var t = e.publicForm || (0, I.v)(e);
710
692
  o(null, t);
711
693
  }).catch(o);
712
694
  }
713
- function q(e) {
695
+ function z(e) {
714
696
  if (null != e) return r.g[e] && r.g[e].default;
715
697
  }
716
- function K(e, t) {
698
+ function Z(e, t) {
717
699
  var o,
718
700
  n,
719
- i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : H,
701
+ i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : D,
720
702
  a = null,
721
703
  u = t.ns,
722
- l = t.draftId;
723
- if (D(O.r.konturDomains) ? O.r.authorized ? l ? 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 {
724
- var c = null !== (o = t.resourceZone) && void 0 !== o ? o : G("resourceZone"),
725
- s = F(U((0, P.I)({
704
+ c = t.draftId;
705
+ if (N(B.r.konturDomains) ? B.r.authorized ? c ? 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 {
706
+ var l = null !== (o = t.resourceZone) && void 0 !== o ? o : q("resourceZone"),
707
+ s = R(x((0, T.I)({
726
708
  ns: u,
727
- draftId: l
709
+ draftId: c
728
710
  })), {
729
- resourceZone: c
711
+ resourceZone: l
730
712
  }),
731
713
  d = {
732
714
  method: "GET"
@@ -735,24 +717,24 @@
735
717
  var f;
736
718
  d.credentials = "omit", d.headers = null !== (f = d.headers) && void 0 !== f ? f : {}, d.headers.Authorization = "AUTH.SID ".concat(t.authentication.authSid);
737
719
  } else d.credentials = "omit";
738
- (null !== (n = t.fetch) && void 0 !== n ? n : w)(s, d).then(function (e) {
720
+ (null !== (n = t.fetch) && void 0 !== n ? n : P)(s, d).then(function (e) {
739
721
  return e.json();
740
722
  }).then(function (o) {
741
723
  var n,
742
724
  a,
743
725
  u,
744
- l,
726
+ c,
745
727
  s,
746
728
  d = o.gfv,
747
729
  f = o.engineVersion,
748
- y = T(T(T({
749
- authorized: O.r.authorized,
750
- cauldronApiUrl: O.r.cauldronApiUrl,
751
- isTestServer: O.r.isTestServer,
752
- renderCachingForIE8: O.r.renderCachingForIE8,
753
- normalizationOnServer: O.r.normalizationOnServer,
754
- normativeUrl: O.r.normativeUrl,
755
- konturDomains: O.r.konturDomains,
730
+ y = M(M(M({
731
+ authorized: B.r.authorized,
732
+ cauldronApiUrl: B.r.cauldronApiUrl,
733
+ isTestServer: B.r.isTestServer,
734
+ renderCachingForIE8: B.r.renderCachingForIE8,
735
+ normalizationOnServer: B.r.normalizationOnServer,
736
+ normativeUrl: B.r.normativeUrl,
737
+ konturDomains: B.r.konturDomains,
756
738
  showNavigationSidebar: null === (n = t.showNavigationSidebar) || void 0 === n || n,
757
739
  onRemoveAttachment: t.onRemoveAttachment
758
740
  }, t), o), {}, {
@@ -760,19 +742,19 @@
760
742
  engineVersion: f,
761
743
  feedbackEnabled: null !== (a = t.feedbackEnabled) && void 0 !== a ? a : o.feedbackEnabled,
762
744
  isDisabledCleanForm: null !== (u = t.isDisabledCleanForm) && void 0 !== u && u,
763
- isDisabledCloseButton: null !== (l = t.isDisabledCloseButton) && void 0 !== l && l,
745
+ isDisabledCloseButton: null !== (c = t.isDisabledCloseButton) && void 0 !== c && c,
764
746
  isDisabledCloseAndSaveButton: null !== (s = t.isDisabledCloseAndSaveButton) && void 0 !== s && s,
765
- resourceZone: c
747
+ resourceZone: l
766
748
  });
767
- R({
749
+ V({
768
750
  gfv: y.gfv,
769
751
  engineVersion: y.engineVersion,
770
752
  resourceZone: y.resourceZone,
771
753
  theme: y.theme
772
754
  }, function (o) {
773
755
  if (!o && r.g.CF.entryPoint[d]) {
774
- var n = q(f);
775
- N(e, T(T({}, y), {}, {
756
+ var n = z(f);
757
+ W(e, M(M({}, y), {}, {
776
758
  templatesApi: t.templatesApi,
777
759
  renderForm: n
778
760
  }), i);
@@ -781,20 +763,20 @@
781
763
  }).catch(i);
782
764
  }
783
765
  }
784
- e = r.hmd(e), (C = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && C(e), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
785
- var V,
786
- W,
787
- z = {
788
- start: K,
766
+ e = r.hmd(e), (O = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && O(e), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
767
+ var $,
768
+ X,
769
+ Y = {
770
+ start: Z,
789
771
  entryPoint: {},
790
- partialRenderingForIE8: M("{partialRenderingForIE8}"),
772
+ partialRenderingForIE8: G("{partialRenderingForIE8}"),
791
773
  keformsUrl: "{keformsUrl}",
792
774
  staffServiceUrl: "{staffServiceUrl}",
793
775
  picklistUrl: "{picklistApiUrl}",
794
776
  nidusUrl: "{nidusApiUrl}",
795
777
  fsPrinterUrl: "{fsprinterApiUrl}"
796
778
  };
797
- r.g.CF = z, (V = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && (V.register(H, "defaultCallback", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(M, "parseBool", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(U, "url", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(F, "buildUrl", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(D, "isAllowed", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(G, "getParameterByName", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(x, "runParallel", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(function (e, t) {
779
+ r.g.CF = Y, ($ = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && ($.register(D, "defaultCallback", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(G, "parseBool", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(x, "url", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(R, "buildUrl", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(N, "isAllowed", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(q, "getParameterByName", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(K, "runParallel", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(function (e, t) {
798
780
  try {
799
781
  var r,
800
782
  o,
@@ -802,8 +784,8 @@
802
784
  i,
803
785
  a,
804
786
  u,
805
- l,
806
787
  c,
788
+ l,
807
789
  s,
808
790
  d,
809
791
  f = e.split(".").slice(0, 3).map(function (e) {
@@ -812,11 +794,11 @@
812
794
  y = t.split(".").slice(0, 3).map(function (e) {
813
795
  return parseInt(e, 10);
814
796
  });
815
- return (null !== (r = f[0]) && void 0 !== r ? r : 0) > (null !== (o = y[0]) && void 0 !== o ? o : 0) || (null !== (n = f[0]) && void 0 !== n ? n : 0) === (null !== (i = y[0]) && void 0 !== i ? i : 0) && ((null !== (a = f[1]) && void 0 !== a ? a : 0) > (null !== (u = y[1]) && void 0 !== u ? u : 0) || (null !== (l = f[1]) && void 0 !== l ? l : 0) === (null !== (c = y[1]) && void 0 !== c ? c : 0) && (null !== (s = f[2]) && void 0 !== s ? s : 0) >= (null !== (d = y[2]) && void 0 !== d ? d : 0));
797
+ return (null !== (r = f[0]) && void 0 !== r ? r : 0) > (null !== (o = y[0]) && void 0 !== o ? o : 0) || (null !== (n = f[0]) && void 0 !== n ? n : 0) === (null !== (i = y[0]) && void 0 !== i ? i : 0) && ((null !== (a = f[1]) && void 0 !== a ? a : 0) > (null !== (u = y[1]) && void 0 !== u ? u : 0) || (null !== (c = f[1]) && void 0 !== c ? c : 0) === (null !== (l = y[1]) && void 0 !== l ? l : 0) && (null !== (s = f[2]) && void 0 !== s ? s : 0) >= (null !== (d = y[2]) && void 0 !== d ? d : 0));
816
798
  } catch (e) {
817
799
  return !1;
818
800
  }
819
- }, "isEngineVersionGreaterThanOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(R, "loadForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(N, "renderForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(q, "getEngineEntryPoint", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(K, "start", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), V.register(z, "CandyClientExports", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts")), (W = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && W(e);
801
+ }, "isEngineVersionGreaterThanOrEqual", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(V, "loadForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(W, "renderForm", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(z, "getEngineEntryPoint", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(Z, "start", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts"), $.register(Y, "CandyClientExports", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Forms\\Client\\Client.ts")), (X = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && X(e);
820
802
  },
821
803
  171: function (e, t, r) {
822
804
  var o;
@@ -870,8 +852,8 @@
870
852
  i = "function" == typeof Symbol ? Symbol : {},
871
853
  a = i.iterator || "@@iterator",
872
854
  u = i.asyncIterator || "@@asyncIterator",
873
- l = i.toStringTag || "@@toStringTag";
874
- function c(e, t, r) {
855
+ c = i.toStringTag || "@@toStringTag";
856
+ function l(e, t, r) {
875
857
  return Object.defineProperty(e, t, {
876
858
  value: r,
877
859
  enumerable: !0,
@@ -880,16 +862,16 @@
880
862
  }), e[t];
881
863
  }
882
864
  try {
883
- c({}, "");
865
+ l({}, "");
884
866
  } catch (e) {
885
- c = function (e, t, r) {
867
+ l = function (e, t, r) {
886
868
  return e[t] = r;
887
869
  };
888
870
  }
889
871
  function s(e, t, r, o) {
890
872
  var i = t && t.prototype instanceof _ ? t : _,
891
873
  a = Object.create(i.prototype),
892
- u = new B(o || []);
874
+ u = new T(o || []);
893
875
  return n(a, "_invoke", {
894
876
  value: P(e, r, u)
895
877
  }), a;
@@ -917,37 +899,37 @@
917
899
  function g() {}
918
900
  function v() {}
919
901
  var b = {};
920
- c(b, a, function () {
902
+ l(b, a, function () {
921
903
  return this;
922
904
  });
923
905
  var E = Object.getPrototypeOf,
924
- w = E && E(E(T([])));
906
+ w = E && E(E(B([])));
925
907
  w && w !== r && o.call(w, a) && (b = w);
926
908
  var C = v.prototype = _.prototype = Object.create(b);
927
909
  function k(e) {
928
910
  ["next", "throw", "return"].forEach(function (t) {
929
- c(e, t, function (e) {
911
+ l(e, t, function (e) {
930
912
  return this._invoke(t, e);
931
913
  });
932
914
  });
933
915
  }
934
916
  function A(e, t) {
935
917
  function r(n, i, a, u) {
936
- var l = d(e[n], e, i);
937
- if ("throw" !== l.type) {
938
- var c = l.arg,
939
- s = c.value;
918
+ var c = d(e[n], e, i);
919
+ if ("throw" !== c.type) {
920
+ var l = c.arg,
921
+ s = l.value;
940
922
  return s && "object" == _typeof(s) && o.call(s, "__await") ? t.resolve(s.__await).then(function (e) {
941
923
  r("next", e, a, u);
942
924
  }, function (e) {
943
925
  r("throw", e, a, u);
944
926
  }) : t.resolve(s).then(function (e) {
945
- c.value = e, a(c);
927
+ l.value = e, a(l);
946
928
  }, function (e) {
947
929
  return r("throw", e, a, u);
948
930
  });
949
931
  }
950
- u(l.arg);
932
+ u(c.arg);
951
933
  }
952
934
  var i;
953
935
  n(this, "_invoke", {
@@ -975,10 +957,10 @@
975
957
  for (o.method = i, o.arg = a;;) {
976
958
  var u = o.delegate;
977
959
  if (u) {
978
- var l = O(u, o);
979
- if (l) {
980
- if (l === m) continue;
981
- return l;
960
+ var c = O(u, o);
961
+ if (c) {
962
+ if (c === m) continue;
963
+ return c;
982
964
  }
983
965
  }
984
966
  if ("next" === o.method) o.sent = o._sent = o.arg;else if ("throw" === o.method) {
@@ -986,15 +968,15 @@
986
968
  o.dispatchException(o.arg);
987
969
  } else "return" === o.method && o.abrupt("return", o.arg);
988
970
  n = p;
989
- var c = d(t, r, o);
990
- if ("normal" === c.type) {
991
- if (n = o.done ? h : y, c.arg === m) continue;
971
+ var l = d(t, r, o);
972
+ if ("normal" === l.type) {
973
+ if (n = o.done ? h : y, l.arg === m) continue;
992
974
  return {
993
- value: c.arg,
975
+ value: l.arg,
994
976
  done: o.done
995
977
  };
996
978
  }
997
- "throw" === c.type && (n = h, o.method = "throw", o.arg = c.arg);
979
+ "throw" === l.type && (n = h, o.method = "throw", o.arg = l.arg);
998
980
  }
999
981
  };
1000
982
  }
@@ -1017,12 +999,12 @@
1017
999
  var t = e.completion || {};
1018
1000
  t.type = "normal", delete t.arg, e.completion = t;
1019
1001
  }
1020
- function B(e) {
1002
+ function T(e) {
1021
1003
  this.tryEntries = [{
1022
1004
  tryLoc: "root"
1023
1005
  }], e.forEach(L, this), this.reset(!0);
1024
1006
  }
1025
- function T(t) {
1007
+ function B(t) {
1026
1008
  if (t || "" === t) {
1027
1009
  var r = t[a];
1028
1010
  if (r) return r.call(t);
@@ -1044,16 +1026,16 @@
1044
1026
  }), n(v, "constructor", {
1045
1027
  value: g,
1046
1028
  configurable: !0
1047
- }), g.displayName = c(v, l, "GeneratorFunction"), t.isGeneratorFunction = function (e) {
1029
+ }), g.displayName = l(v, c, "GeneratorFunction"), t.isGeneratorFunction = function (e) {
1048
1030
  var t = "function" == typeof e && e.constructor;
1049
1031
  return !!t && (t === g || "GeneratorFunction" === (t.displayName || t.name));
1050
1032
  }, t.mark = function (e) {
1051
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, v) : (e.__proto__ = v, c(e, l, "GeneratorFunction")), e.prototype = Object.create(C), e;
1033
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, v) : (e.__proto__ = v, l(e, c, "GeneratorFunction")), e.prototype = Object.create(C), e;
1052
1034
  }, t.awrap = function (e) {
1053
1035
  return {
1054
1036
  __await: e
1055
1037
  };
1056
- }, k(A.prototype), c(A.prototype, u, function () {
1038
+ }, k(A.prototype), l(A.prototype, u, function () {
1057
1039
  return this;
1058
1040
  }), t.AsyncIterator = A, t.async = function (e, r, o, n, i) {
1059
1041
  void 0 === i && (i = Promise);
@@ -1061,9 +1043,9 @@
1061
1043
  return t.isGeneratorFunction(r) ? a : a.next().then(function (e) {
1062
1044
  return e.done ? e.value : a.next();
1063
1045
  });
1064
- }, k(C), c(C, l, "Generator"), c(C, a, function () {
1046
+ }, k(C), l(C, c, "Generator"), l(C, a, function () {
1065
1047
  return this;
1066
- }), c(C, "toString", function () {
1048
+ }), l(C, "toString", function () {
1067
1049
  return "[object Generator]";
1068
1050
  }), t.keys = function (e) {
1069
1051
  var t = Object(e),
@@ -1076,8 +1058,8 @@
1076
1058
  }
1077
1059
  return e.done = !0, e;
1078
1060
  };
1079
- }, t.values = T, B.prototype = {
1080
- constructor: B,
1061
+ }, t.values = B, T.prototype = {
1062
+ constructor: T,
1081
1063
  reset: function (t) {
1082
1064
  if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(S), !t) for (var r in this) "t" === r.charAt(0) && o.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = e);
1083
1065
  },
@@ -1098,15 +1080,15 @@
1098
1080
  u = a.completion;
1099
1081
  if ("root" === a.tryLoc) return n("end");
1100
1082
  if (a.tryLoc <= this.prev) {
1101
- var l = o.call(a, "catchLoc"),
1102
- c = o.call(a, "finallyLoc");
1103
- if (l && c) {
1083
+ var c = o.call(a, "catchLoc"),
1084
+ l = o.call(a, "finallyLoc");
1085
+ if (c && l) {
1104
1086
  if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
1105
1087
  if (this.prev < a.finallyLoc) return n(a.finallyLoc);
1106
- } else if (l) {
1088
+ } else if (c) {
1107
1089
  if (this.prev < a.catchLoc) return n(a.catchLoc, !0);
1108
1090
  } else {
1109
- if (!c) throw Error("try statement without catch or finally");
1091
+ if (!l) throw Error("try statement without catch or finally");
1110
1092
  if (this.prev < a.finallyLoc) return n(a.finallyLoc);
1111
1093
  }
1112
1094
  }
@@ -1150,7 +1132,7 @@
1150
1132
  },
1151
1133
  delegateYield: function (t, r, o) {
1152
1134
  return this.delegate = {
1153
- iterator: T(t),
1135
+ iterator: B(t),
1154
1136
  resultName: r,
1155
1137
  nextLoc: o
1156
1138
  }, "next" === this.method && (this.arg = e), m;
@@ -1160,11 +1142,11 @@
1160
1142
  function asyncGeneratorStep(e, t, r, o, n, i, a) {
1161
1143
  try {
1162
1144
  var u = e[i](a),
1163
- l = u.value;
1145
+ c = u.value;
1164
1146
  } catch (e) {
1165
1147
  return void r(e);
1166
1148
  }
1167
- u.done ? t(l) : Promise.resolve(l).then(o, n);
1149
+ u.done ? t(c) : Promise.resolve(c).then(o, n);
1168
1150
  }
1169
1151
  function _asyncToGenerator(e) {
1170
1152
  return function () {
@@ -1631,12 +1613,12 @@
1631
1613
  }
1632
1614
  }
1633
1615
  function a(e) {
1634
- var t = function (e, t) {
1616
+ var t = function (e) {
1635
1617
  if ("object" != n(e) || !e) return e;
1636
- var r = e[Symbol.toPrimitive];
1637
- if (void 0 !== r) {
1638
- var o = r.call(e, "string");
1639
- if ("object" != n(o)) return o;
1618
+ var t = e[Symbol.toPrimitive];
1619
+ if (void 0 !== t) {
1620
+ var r = t.call(e, "string");
1621
+ if ("object" != n(r)) return r;
1640
1622
  throw new TypeError("@@toPrimitive must return a primitive value.");
1641
1623
  }
1642
1624
  return String(e);
@@ -1645,12 +1627,12 @@
1645
1627
  }
1646
1628
  r.d(t, {
1647
1629
  q: function () {
1648
- return c;
1630
+ return l;
1649
1631
  }
1650
1632
  }), e = r.hmd(e), (o = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.enterModule : void 0) && o(e), "undefined" != typeof reactHotLoaderGlobal && reactHotLoaderGlobal.default.signature;
1651
1633
  var u,
1652
- l,
1653
- c = function () {
1634
+ c,
1635
+ l = function () {
1654
1636
  return e = function e() {
1655
1637
  !function (e, t) {
1656
1638
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
@@ -1685,7 +1667,7 @@
1685
1667
  }), e;
1686
1668
  var e, t;
1687
1669
  }();
1688
- (u = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && u.register(c, "LoadIntoDocument", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Helpers\\LoadIntoDocument.ts"), (l = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && l(e);
1670
+ (u = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.default : void 0) && u.register(l, "LoadIntoDocument", "C:\\BuildAgent\\work\\forms-root-candy\\candy\\Engine\\src\\Helpers\\LoadIntoDocument.ts"), (c = "undefined" != typeof reactHotLoaderGlobal ? reactHotLoaderGlobal.leaveModule : void 0) && c(e);
1689
1671
  }
1690
1672
  },
1691
1673
  __webpack_module_cache__ = {};