@itcase/forms 1.0.10 → 1.0.11

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.
@@ -66,350 +66,350 @@ var addRequiredFieldsParamToSchema = function addRequiredFieldsParamToSchema(sch
66
66
  return schema;
67
67
  };
68
68
 
69
- function _asyncIterator(iterable) {
70
- var method,
71
- async,
72
- sync,
73
- retry = 2;
74
- for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
75
- if (async && null != (method = iterable[async])) return method.call(iterable);
76
- if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
77
- async = "@@asyncIterator", sync = "@@iterator";
69
+ function _asyncIterator(r) {
70
+ var n,
71
+ t,
72
+ o,
73
+ e = 2;
74
+ for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
75
+ if (t && null != (n = r[t])) return n.call(r);
76
+ if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
77
+ t = "@@asyncIterator", o = "@@iterator";
78
78
  }
79
79
  throw new TypeError("Object is not async iterable");
80
80
  }
81
- function AsyncFromSyncIterator(s) {
81
+ function AsyncFromSyncIterator(r) {
82
82
  function AsyncFromSyncIteratorContinuation(r) {
83
83
  if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
84
- var done = r.done;
85
- return Promise.resolve(r.value).then(function (value) {
84
+ var n = r.done;
85
+ return Promise.resolve(r.value).then(function (r) {
86
86
  return {
87
- value: value,
88
- done: done
87
+ value: r,
88
+ done: n
89
89
  };
90
90
  });
91
91
  }
92
- return AsyncFromSyncIterator = function (s) {
93
- this.s = s, this.n = s.next;
92
+ return AsyncFromSyncIterator = function (r) {
93
+ this.s = r, this.n = r.next;
94
94
  }, AsyncFromSyncIterator.prototype = {
95
95
  s: null,
96
96
  n: null,
97
97
  next: function () {
98
98
  return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
99
99
  },
100
- return: function (value) {
101
- var ret = this.s.return;
102
- return void 0 === ret ? Promise.resolve({
103
- value: value,
100
+ return: function (r) {
101
+ var n = this.s.return;
102
+ return void 0 === n ? Promise.resolve({
103
+ value: r,
104
104
  done: !0
105
- }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
105
+ }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
106
106
  },
107
- throw: function (value) {
108
- var thr = this.s.return;
109
- return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
107
+ throw: function (r) {
108
+ var n = this.s.return;
109
+ return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments));
110
110
  }
111
- }, new AsyncFromSyncIterator(s);
111
+ }, new AsyncFromSyncIterator(r);
112
112
  }
113
113
  function _regeneratorRuntime() {
114
114
  _regeneratorRuntime = function () {
115
- return exports;
115
+ return e;
116
116
  };
117
- var exports = {},
118
- Op = Object.prototype,
119
- hasOwn = Op.hasOwnProperty,
120
- defineProperty = Object.defineProperty || function (obj, key, desc) {
121
- obj[key] = desc.value;
117
+ var t,
118
+ e = {},
119
+ r = Object.prototype,
120
+ n = r.hasOwnProperty,
121
+ o = Object.defineProperty || function (t, e, r) {
122
+ t[e] = r.value;
122
123
  },
123
- $Symbol = "function" == typeof Symbol ? Symbol : {},
124
- iteratorSymbol = $Symbol.iterator || "@@iterator",
125
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
126
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
127
- function define(obj, key, value) {
128
- return Object.defineProperty(obj, key, {
129
- value: value,
124
+ i = "function" == typeof Symbol ? Symbol : {},
125
+ a = i.iterator || "@@iterator",
126
+ c = i.asyncIterator || "@@asyncIterator",
127
+ u = i.toStringTag || "@@toStringTag";
128
+ function define(t, e, r) {
129
+ return Object.defineProperty(t, e, {
130
+ value: r,
130
131
  enumerable: !0,
131
132
  configurable: !0,
132
133
  writable: !0
133
- }), obj[key];
134
+ }), t[e];
134
135
  }
135
136
  try {
136
137
  define({}, "");
137
- } catch (err) {
138
- define = function (obj, key, value) {
139
- return obj[key] = value;
138
+ } catch (t) {
139
+ define = function (t, e, r) {
140
+ return t[e] = r;
140
141
  };
141
142
  }
142
- function wrap(innerFn, outerFn, self, tryLocsList) {
143
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
144
- generator = Object.create(protoGenerator.prototype),
145
- context = new Context(tryLocsList || []);
146
- return defineProperty(generator, "_invoke", {
147
- value: makeInvokeMethod(innerFn, self, context)
148
- }), generator;
143
+ function wrap(t, e, r, n) {
144
+ var i = e && e.prototype instanceof Generator ? e : Generator,
145
+ a = Object.create(i.prototype),
146
+ c = new Context(n || []);
147
+ return o(a, "_invoke", {
148
+ value: makeInvokeMethod(t, r, c)
149
+ }), a;
149
150
  }
150
- function tryCatch(fn, obj, arg) {
151
+ function tryCatch(t, e, r) {
151
152
  try {
152
153
  return {
153
154
  type: "normal",
154
- arg: fn.call(obj, arg)
155
+ arg: t.call(e, r)
155
156
  };
156
- } catch (err) {
157
+ } catch (t) {
157
158
  return {
158
159
  type: "throw",
159
- arg: err
160
+ arg: t
160
161
  };
161
162
  }
162
163
  }
163
- exports.wrap = wrap;
164
- var ContinueSentinel = {};
164
+ e.wrap = wrap;
165
+ var h = "suspendedStart",
166
+ l = "suspendedYield",
167
+ f = "executing",
168
+ s = "completed",
169
+ y = {};
165
170
  function Generator() {}
166
171
  function GeneratorFunction() {}
167
172
  function GeneratorFunctionPrototype() {}
168
- var IteratorPrototype = {};
169
- define(IteratorPrototype, iteratorSymbol, function () {
173
+ var p = {};
174
+ define(p, a, function () {
170
175
  return this;
171
176
  });
172
- var getProto = Object.getPrototypeOf,
173
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
174
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
175
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
176
- function defineIteratorMethods(prototype) {
177
- ["next", "throw", "return"].forEach(function (method) {
178
- define(prototype, method, function (arg) {
179
- return this._invoke(method, arg);
177
+ var d = Object.getPrototypeOf,
178
+ v = d && d(d(values([])));
179
+ v && v !== r && n.call(v, a) && (p = v);
180
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
181
+ function defineIteratorMethods(t) {
182
+ ["next", "throw", "return"].forEach(function (e) {
183
+ define(t, e, function (t) {
184
+ return this._invoke(e, t);
180
185
  });
181
186
  });
182
187
  }
183
- function AsyncIterator(generator, PromiseImpl) {
184
- function invoke(method, arg, resolve, reject) {
185
- var record = tryCatch(generator[method], generator, arg);
186
- if ("throw" !== record.type) {
187
- var result = record.arg,
188
- value = result.value;
189
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
190
- invoke("next", value, resolve, reject);
191
- }, function (err) {
192
- invoke("throw", err, resolve, reject);
193
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
194
- result.value = unwrapped, resolve(result);
195
- }, function (error) {
196
- return invoke("throw", error, resolve, reject);
188
+ function AsyncIterator(t, e) {
189
+ function invoke(r, o, i, a) {
190
+ var c = tryCatch(t[r], t, o);
191
+ if ("throw" !== c.type) {
192
+ var u = c.arg,
193
+ h = u.value;
194
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
195
+ invoke("next", t, i, a);
196
+ }, function (t) {
197
+ invoke("throw", t, i, a);
198
+ }) : e.resolve(h).then(function (t) {
199
+ u.value = t, i(u);
200
+ }, function (t) {
201
+ return invoke("throw", t, i, a);
197
202
  });
198
203
  }
199
- reject(record.arg);
204
+ a(c.arg);
200
205
  }
201
- var previousPromise;
202
- defineProperty(this, "_invoke", {
203
- value: function (method, arg) {
206
+ var r;
207
+ o(this, "_invoke", {
208
+ value: function (t, n) {
204
209
  function callInvokeWithMethodAndArg() {
205
- return new PromiseImpl(function (resolve, reject) {
206
- invoke(method, arg, resolve, reject);
210
+ return new e(function (e, r) {
211
+ invoke(t, n, e, r);
207
212
  });
208
213
  }
209
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
214
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
210
215
  }
211
216
  });
212
217
  }
213
- function makeInvokeMethod(innerFn, self, context) {
214
- var state = "suspendedStart";
215
- return function (method, arg) {
216
- if ("executing" === state) throw new Error("Generator is already running");
217
- if ("completed" === state) {
218
- if ("throw" === method) throw arg;
219
- return doneResult();
218
+ function makeInvokeMethod(e, r, n) {
219
+ var o = h;
220
+ return function (i, a) {
221
+ if (o === f) throw new Error("Generator is already running");
222
+ if (o === s) {
223
+ if ("throw" === i) throw a;
224
+ return {
225
+ value: t,
226
+ done: !0
227
+ };
220
228
  }
221
- for (context.method = method, context.arg = arg;;) {
222
- var delegate = context.delegate;
223
- if (delegate) {
224
- var delegateResult = maybeInvokeDelegate(delegate, context);
225
- if (delegateResult) {
226
- if (delegateResult === ContinueSentinel) continue;
227
- return delegateResult;
229
+ for (n.method = i, n.arg = a;;) {
230
+ var c = n.delegate;
231
+ if (c) {
232
+ var u = maybeInvokeDelegate(c, n);
233
+ if (u) {
234
+ if (u === y) continue;
235
+ return u;
228
236
  }
229
237
  }
230
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
231
- if ("suspendedStart" === state) throw state = "completed", context.arg;
232
- context.dispatchException(context.arg);
233
- } else "return" === context.method && context.abrupt("return", context.arg);
234
- state = "executing";
235
- var record = tryCatch(innerFn, self, context);
236
- if ("normal" === record.type) {
237
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
238
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
239
+ if (o === h) throw o = s, n.arg;
240
+ n.dispatchException(n.arg);
241
+ } else "return" === n.method && n.abrupt("return", n.arg);
242
+ o = f;
243
+ var p = tryCatch(e, r, n);
244
+ if ("normal" === p.type) {
245
+ if (o = n.done ? s : l, p.arg === y) continue;
238
246
  return {
239
- value: record.arg,
240
- done: context.done
247
+ value: p.arg,
248
+ done: n.done
241
249
  };
242
250
  }
243
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
251
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
244
252
  }
245
253
  };
246
254
  }
247
- function maybeInvokeDelegate(delegate, context) {
248
- var methodName = context.method,
249
- method = delegate.iterator[methodName];
250
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
251
- var record = tryCatch(method, delegate.iterator, context.arg);
252
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
253
- var info = record.arg;
254
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
255
+ function maybeInvokeDelegate(e, r) {
256
+ var n = r.method,
257
+ o = e.iterator[n];
258
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
259
+ var i = tryCatch(o, e.iterator, r.arg);
260
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
261
+ var a = i.arg;
262
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
255
263
  }
256
- function pushTryEntry(locs) {
257
- var entry = {
258
- tryLoc: locs[0]
264
+ function pushTryEntry(t) {
265
+ var e = {
266
+ tryLoc: t[0]
259
267
  };
260
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
268
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
261
269
  }
262
- function resetTryEntry(entry) {
263
- var record = entry.completion || {};
264
- record.type = "normal", delete record.arg, entry.completion = record;
270
+ function resetTryEntry(t) {
271
+ var e = t.completion || {};
272
+ e.type = "normal", delete e.arg, t.completion = e;
265
273
  }
266
- function Context(tryLocsList) {
274
+ function Context(t) {
267
275
  this.tryEntries = [{
268
276
  tryLoc: "root"
269
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
277
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
270
278
  }
271
- function values(iterable) {
272
- if (iterable) {
273
- var iteratorMethod = iterable[iteratorSymbol];
274
- if (iteratorMethod) return iteratorMethod.call(iterable);
275
- if ("function" == typeof iterable.next) return iterable;
276
- if (!isNaN(iterable.length)) {
277
- var i = -1,
278
- next = function next() {
279
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
280
- return next.value = undefined, next.done = !0, next;
279
+ function values(e) {
280
+ if (e || "" === e) {
281
+ var r = e[a];
282
+ if (r) return r.call(e);
283
+ if ("function" == typeof e.next) return e;
284
+ if (!isNaN(e.length)) {
285
+ var o = -1,
286
+ i = function next() {
287
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
288
+ return next.value = t, next.done = !0, next;
281
289
  };
282
- return next.next = next;
290
+ return i.next = i;
283
291
  }
284
292
  }
285
- return {
286
- next: doneResult
287
- };
288
- }
289
- function doneResult() {
290
- return {
291
- value: undefined,
292
- done: !0
293
- };
293
+ throw new TypeError(typeof e + " is not iterable");
294
294
  }
295
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
295
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
296
296
  value: GeneratorFunctionPrototype,
297
297
  configurable: !0
298
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
298
+ }), o(GeneratorFunctionPrototype, "constructor", {
299
299
  value: GeneratorFunction,
300
300
  configurable: !0
301
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
302
- var ctor = "function" == typeof genFun && genFun.constructor;
303
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
304
- }, exports.mark = function (genFun) {
305
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
306
- }, exports.awrap = function (arg) {
301
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
302
+ var e = "function" == typeof t && t.constructor;
303
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
304
+ }, e.mark = function (t) {
305
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
306
+ }, e.awrap = function (t) {
307
307
  return {
308
- __await: arg
308
+ __await: t
309
309
  };
310
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
310
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
311
311
  return this;
312
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
313
- void 0 === PromiseImpl && (PromiseImpl = Promise);
314
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
315
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
316
- return result.done ? result.value : iter.next();
312
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
313
+ void 0 === i && (i = Promise);
314
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
315
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
316
+ return t.done ? t.value : a.next();
317
317
  });
318
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
318
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
319
319
  return this;
320
- }), define(Gp, "toString", function () {
320
+ }), define(g, "toString", function () {
321
321
  return "[object Generator]";
322
- }), exports.keys = function (val) {
323
- var object = Object(val),
324
- keys = [];
325
- for (var key in object) keys.push(key);
326
- return keys.reverse(), function next() {
327
- for (; keys.length;) {
328
- var key = keys.pop();
329
- if (key in object) return next.value = key, next.done = !1, next;
322
+ }), e.keys = function (t) {
323
+ var e = Object(t),
324
+ r = [];
325
+ for (var n in e) r.push(n);
326
+ return r.reverse(), function next() {
327
+ for (; r.length;) {
328
+ var t = r.pop();
329
+ if (t in e) return next.value = t, next.done = !1, next;
330
330
  }
331
331
  return next.done = !0, next;
332
332
  };
333
- }, exports.values = values, Context.prototype = {
333
+ }, e.values = values, Context.prototype = {
334
334
  constructor: Context,
335
- reset: function (skipTempReset) {
336
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
335
+ reset: function (e) {
336
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
337
337
  },
338
338
  stop: function () {
339
339
  this.done = !0;
340
- var rootRecord = this.tryEntries[0].completion;
341
- if ("throw" === rootRecord.type) throw rootRecord.arg;
340
+ var t = this.tryEntries[0].completion;
341
+ if ("throw" === t.type) throw t.arg;
342
342
  return this.rval;
343
343
  },
344
- dispatchException: function (exception) {
345
- if (this.done) throw exception;
346
- var context = this;
347
- function handle(loc, caught) {
348
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
344
+ dispatchException: function (e) {
345
+ if (this.done) throw e;
346
+ var r = this;
347
+ function handle(n, o) {
348
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
349
349
  }
350
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
351
- var entry = this.tryEntries[i],
352
- record = entry.completion;
353
- if ("root" === entry.tryLoc) return handle("end");
354
- if (entry.tryLoc <= this.prev) {
355
- var hasCatch = hasOwn.call(entry, "catchLoc"),
356
- hasFinally = hasOwn.call(entry, "finallyLoc");
357
- if (hasCatch && hasFinally) {
358
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
359
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
360
- } else if (hasCatch) {
361
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
350
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
351
+ var i = this.tryEntries[o],
352
+ a = i.completion;
353
+ if ("root" === i.tryLoc) return handle("end");
354
+ if (i.tryLoc <= this.prev) {
355
+ var c = n.call(i, "catchLoc"),
356
+ u = n.call(i, "finallyLoc");
357
+ if (c && u) {
358
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
359
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
360
+ } else if (c) {
361
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
362
362
  } else {
363
- if (!hasFinally) throw new Error("try statement without catch or finally");
364
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
363
+ if (!u) throw new Error("try statement without catch or finally");
364
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
365
365
  }
366
366
  }
367
367
  }
368
368
  },
369
- abrupt: function (type, arg) {
370
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
371
- var entry = this.tryEntries[i];
372
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
373
- var finallyEntry = entry;
369
+ abrupt: function (t, e) {
370
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
371
+ var o = this.tryEntries[r];
372
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
373
+ var i = o;
374
374
  break;
375
375
  }
376
376
  }
377
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
378
- var record = finallyEntry ? finallyEntry.completion : {};
379
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
377
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
378
+ var a = i ? i.completion : {};
379
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
380
380
  },
381
- complete: function (record, afterLoc) {
382
- if ("throw" === record.type) throw record.arg;
383
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
381
+ complete: function (t, e) {
382
+ if ("throw" === t.type) throw t.arg;
383
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
384
384
  },
385
- finish: function (finallyLoc) {
386
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
387
- var entry = this.tryEntries[i];
388
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
385
+ finish: function (t) {
386
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
387
+ var r = this.tryEntries[e];
388
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
389
389
  }
390
390
  },
391
- catch: function (tryLoc) {
392
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
393
- var entry = this.tryEntries[i];
394
- if (entry.tryLoc === tryLoc) {
395
- var record = entry.completion;
396
- if ("throw" === record.type) {
397
- var thrown = record.arg;
398
- resetTryEntry(entry);
391
+ catch: function (t) {
392
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
393
+ var r = this.tryEntries[e];
394
+ if (r.tryLoc === t) {
395
+ var n = r.completion;
396
+ if ("throw" === n.type) {
397
+ var o = n.arg;
398
+ resetTryEntry(r);
399
399
  }
400
- return thrown;
400
+ return o;
401
401
  }
402
402
  }
403
403
  throw new Error("illegal catch attempt");
404
404
  },
405
- delegateYield: function (iterable, resultName, nextLoc) {
405
+ delegateYield: function (e, r, n) {
406
406
  return this.delegate = {
407
- iterator: values(iterable),
408
- resultName: resultName,
409
- nextLoc: nextLoc
410
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
407
+ iterator: values(e),
408
+ resultName: r,
409
+ nextLoc: n
410
+ }, "next" === this.method && (this.arg = t), y;
411
411
  }
412
- }, exports;
412
+ }, e;
413
413
  }
414
414
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
415
415
  try {
@@ -538,9 +538,8 @@ function FieldWrapperBase(props) {
538
538
  message = props.message,
539
539
  messageTextSize = props.messageTextSize,
540
540
  messageTextColor = props.messageTextColor,
541
- messageTextWeight = props.messageTextWeight;
542
- props.hideLabel;
543
- var metaActive = props.metaActive,
541
+ messageTextWeight = props.messageTextWeight,
542
+ metaActive = props.metaActive,
544
543
  metaError = props.metaError,
545
544
  metaModifiedSinceLastSubmit = props.metaModifiedSinceLastSubmit,
546
545
  metaSubmitError = props.metaSubmitError,
@@ -550,6 +549,7 @@ function FieldWrapperBase(props) {
550
549
  set = props.set,
551
550
  type = props.type,
552
551
  Tag = props.tag,
552
+ dataTour = props.dataTour,
553
553
  showErrorsOnSubmit = props.showErrorsOnSubmit;
554
554
  var error = metaError || !metaModifiedSinceLastSubmit && metaSubmitError || false;
555
555
  var showError = React.useMemo(function () {
@@ -602,6 +602,7 @@ function FieldWrapperBase(props) {
602
602
  formFieldStyles = _useStyles.styles;
603
603
  return /*#__PURE__*/React__default.default.createElement(Tag, {
604
604
  className: clsx__default.default(formFieldClass, 'form__item', 'form-field', type && "form-field_type_" + type, set && "form-field_set_" + set, sizeClass, fillClass, shapeClass, directionClass, widthClass),
605
+ "data-tour": dataTour,
605
606
  style: formFieldStyles
606
607
  }, before, label && /*#__PURE__*/React__default.default.createElement("div", {
607
608
  htmlFor: id,
@@ -866,7 +867,10 @@ var CustomField = /*#__PURE__*/React__default.default.memo(function CustomField(
866
867
  metaSubmitFailed: meta.submitFailed,
867
868
  metaTouched: meta.touched,
868
869
  metaValid: meta.valid
869
- }, fieldProps), /*#__PURE__*/React__default.default.createElement(Component, props));
870
+ }, fieldProps), /*#__PURE__*/React__default.default.createElement(Component, Object.assign({}, props, {
871
+ input: input,
872
+ meta: meta
873
+ })));
870
874
  });
871
875
  });
872
876
  CustomField.defaultProps = {
@@ -880,7 +884,7 @@ CustomField.propTypes = {
880
884
  inputProps: PropTypes__default.default.object
881
885
  };
882
886
 
883
- var DatePickerField = /*#__PURE__*/React__default.default.memo(function DatePickerField(props) {
887
+ function DatePickerField(props) {
884
888
  var isRequired = props.isRequired,
885
889
  fieldProps = props.fieldProps,
886
890
  inputProps = props.inputProps,
@@ -894,16 +898,19 @@ var DatePickerField = /*#__PURE__*/React__default.default.memo(function DatePick
894
898
  props.iconRevealableShow;
895
899
  props.iconRevealableHide;
896
900
  props.iconShape;
897
- var onChangeField = props.onChangeField,
901
+ var onChange = props.onChange,
898
902
  classNameGroupItem = props.classNameGroupItem;
899
- var _useState = React.useState(new Date());
900
- _useState[0];
901
- _useState[1];
902
903
  return /*#__PURE__*/React__default.default.createElement(reactFinalForm.Field, {
903
904
  name: name
904
905
  }, function (_ref) {
905
906
  var input = _ref.input,
906
907
  meta = _ref.meta;
908
+ var onChangeField = React.useCallback(function (value) {
909
+ input.onChange(value);
910
+ if (onChange) {
911
+ onChange(value, input.name);
912
+ }
913
+ }, [onChange]);
907
914
  return /*#__PURE__*/React__default.default.createElement(FieldWrapper, Object.assign({
908
915
  className: clsx__default.default('form-field_type_datepicker', 'form__item_type_datepicker', classNameGroupItem),
909
916
  fieldClassName: "form-datepicker",
@@ -927,7 +934,7 @@ var DatePickerField = /*#__PURE__*/React__default.default.memo(function DatePick
927
934
  datePickerProps: datePickerProps
928
935
  }));
929
936
  });
930
- });
937
+ }
931
938
  DatePickerField.defaultProps = {
932
939
  inputProps: {},
933
940
  fieldProps: {}
@@ -1451,6 +1458,7 @@ var FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(prop
1451
1458
  removeThumbTextColor = props.removeThumbTextColor,
1452
1459
  removeThumbTextWeight = props.removeThumbTextWeight,
1453
1460
  hintTitle = props.hintTitle,
1461
+ fieldProps = props.fieldProps,
1454
1462
  hintTitleTextSize = props.hintTitleTextSize,
1455
1463
  hintTitleTextColor = props.hintTitleTextColor,
1456
1464
  hintTitleTextWrap = props.hintTitleTextWrap,
@@ -1472,7 +1480,7 @@ var FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(prop
1472
1480
  }, function (_ref) {
1473
1481
  var input = _ref.input,
1474
1482
  meta = _ref.meta;
1475
- return /*#__PURE__*/React__default.default.createElement(FieldWrapper, {
1483
+ return /*#__PURE__*/React__default.default.createElement(FieldWrapper, Object.assign({
1476
1484
  className: clsx__default.default('form-field_type_dropzone', 'form__item_type_dropzone', classNameGroupItem),
1477
1485
  fieldClassName: "form-dropzone",
1478
1486
  inputName: input.name,
@@ -1487,7 +1495,7 @@ var FileInput = /*#__PURE__*/React__default.default.memo(function FileInput(prop
1487
1495
  metaSubmitFailed: meta.submitFailed,
1488
1496
  metaTouched: meta.touched,
1489
1497
  metaValid: meta.valid
1490
- }, /*#__PURE__*/React__default.default.createElement(FileInputDropzone, {
1498
+ }, fieldProps), /*#__PURE__*/React__default.default.createElement(FileInputDropzone, {
1491
1499
  dropzoneProps: dropzoneProps,
1492
1500
  hintDescription: hintDescription,
1493
1501
  hintTitle: hintTitle,
@@ -1557,9 +1565,11 @@ var Group = /*#__PURE__*/React__default.default.memo(function Group(props) {
1557
1565
  labelTextColor = props.labelTextColor,
1558
1566
  labelTextSize = props.labelTextSize,
1559
1567
  labelTextWeight = props.labelTextWeight,
1560
- children = props.children;
1568
+ children = props.children,
1569
+ dataTour = props.dataTour;
1561
1570
  return /*#__PURE__*/React__default.default.createElement("div", {
1562
- className: clsx__default.default('form__group', className)
1571
+ className: clsx__default.default('form__group', className),
1572
+ "data-tour": dataTour
1563
1573
  }, /*#__PURE__*/React__default.default.createElement("div", {
1564
1574
  className: "form__group-wrapper"
1565
1575
  }, before, /*#__PURE__*/React__default.default.createElement("div", {
@@ -2390,7 +2400,12 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2390
2400
  titleTextSize = props.titleTextSize,
2391
2401
  titleTextColor = props.titleTextColor,
2392
2402
  titleTextWeight = props.titleTextWeight,
2393
- validationSchema = props.validationSchema;
2403
+ validationSchema = props.validationSchema,
2404
+ dataTour = props.dataTour,
2405
+ dataTourButtons = props.dataTourButtons,
2406
+ dataTourPrimaryButton = props.dataTourPrimaryButton,
2407
+ dataTourSecondaryButton = props.dataTourSecondaryButton,
2408
+ dataTourTertiaryButton = props.dataTourTertiaryButton;
2394
2409
  var validate = useYupValidationSchema(validationSchema, language);
2395
2410
  var onRefFormInstance = React.useCallback(function (formInstance) {
2396
2411
  if (ref) {
@@ -2433,6 +2448,7 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2433
2448
  style: formStyles,
2434
2449
  className: clsx__default.default(className, 'form', set && "form_set_" + set, type && "form_type_" + type, directionClass, fillClass, shapeClass, elevationClass),
2435
2450
  name: formName,
2451
+ "data-tour": dataTour,
2436
2452
  ref: function ref() {
2437
2453
  return onRefFormInstance(form);
2438
2454
  },
@@ -2479,7 +2495,8 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2479
2495
  direction: buttonDirection,
2480
2496
  padding: buttonPadding,
2481
2497
  gap: buttonGap,
2482
- className: "form__button"
2498
+ className: "form__button",
2499
+ dataTour: dataTourButtons
2483
2500
  }, primaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
2484
2501
  width: "fill",
2485
2502
  className: "form__button-item",
@@ -2489,7 +2506,8 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2489
2506
  labelTextColor: primaryButtonLabelTextColor,
2490
2507
  labelSize: primaryButtonLabelSize,
2491
2508
  labelTextWeight: primaryButtonLabelTextWeight,
2492
- label: primaryButtonLabel
2509
+ label: primaryButtonLabel,
2510
+ dataTour: dataTourPrimaryButton
2493
2511
  }) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
2494
2512
  width: "fill",
2495
2513
  className: "form__button-item",
@@ -2500,7 +2518,8 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2500
2518
  labelSize: secondaryButtonLabelSize,
2501
2519
  labelTextWeight: secondaryButtonLabelTextWeight,
2502
2520
  label: secondaryButtonLabel,
2503
- onClick: onClickSecondaryButton
2521
+ onClick: onClickSecondaryButton,
2522
+ dataTour: dataTourSecondaryButton
2504
2523
  }) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
2505
2524
  width: "fill",
2506
2525
  className: "form__button-item",
@@ -2511,7 +2530,8 @@ var FinalForm = /*#__PURE__*/React__default.default.forwardRef(function (props,
2511
2530
  labelSize: tertiaryButtonLabelSize,
2512
2531
  labelTextWeight: tertiaryButtonLabelTextWeight,
2513
2532
  label: tertiaryButtonLabel,
2514
- onClick: onClickTertiaryButton
2533
+ onClick: onClickTertiaryButton,
2534
+ dataTour: dataTourTertiaryButton
2515
2535
  }) : tertiaryButton), after);
2516
2536
  });
2517
2537
  });