@wix/form-public 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React30 = require('react');
3
+ var React32 = require('react');
4
4
  var ReactDOM = require('react-dom');
5
5
  var camelCase = require('lodash.camelcase');
6
6
  var mapKeys = require('lodash.mapkeys');
@@ -26,7 +26,7 @@ function _interopNamespace(e) {
26
26
  return Object.freeze(n);
27
27
  }
28
28
 
29
- var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
29
+ var React32__namespace = /*#__PURE__*/_interopNamespace(React32);
30
30
  var ReactDOM__default = /*#__PURE__*/_interopDefault(ReactDOM);
31
31
  var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
32
32
  var mapKeys__default = /*#__PURE__*/_interopDefault(mapKeys);
@@ -2030,15 +2030,15 @@ var init_typeof = __esm({
2030
2030
  });
2031
2031
 
2032
2032
  // ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
2033
- function toPrimitive(t2, r) {
2034
- if ("object" != _typeof(t2) || !t2) return t2;
2035
- var e2 = t2[Symbol.toPrimitive];
2036
- if (void 0 !== e2) {
2037
- var i2 = e2.call(t2, r);
2038
- if ("object" != _typeof(i2)) return i2;
2033
+ function toPrimitive(t, r) {
2034
+ if ("object" != _typeof(t) || !t) return t;
2035
+ var e = t[Symbol.toPrimitive];
2036
+ if (void 0 !== e) {
2037
+ var i = e.call(t, r);
2038
+ if ("object" != _typeof(i)) return i;
2039
2039
  throw new TypeError("@@toPrimitive must return a primitive value.");
2040
2040
  }
2041
- return (String )(t2);
2041
+ return (String )(t);
2042
2042
  }
2043
2043
  var init_toPrimitive = __esm({
2044
2044
  "../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js"() {
@@ -2047,9 +2047,9 @@ var init_toPrimitive = __esm({
2047
2047
  });
2048
2048
 
2049
2049
  // ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
2050
- function toPropertyKey(t2) {
2051
- var i2 = toPrimitive(t2, "string");
2052
- return "symbol" == _typeof(i2) ? i2 : i2 + "";
2050
+ function toPropertyKey(t) {
2051
+ var i = toPrimitive(t, "string");
2052
+ return "symbol" == _typeof(i) ? i : i + "";
2053
2053
  }
2054
2054
  var init_toPropertyKey = __esm({
2055
2055
  "../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js"() {
@@ -2059,13 +2059,13 @@ var init_toPropertyKey = __esm({
2059
2059
  });
2060
2060
 
2061
2061
  // ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
2062
- function _defineProperty(e2, r, t2) {
2063
- return (r = toPropertyKey(r)) in e2 ? Object.defineProperty(e2, r, {
2064
- value: t2,
2062
+ function _defineProperty(e, r, t) {
2063
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
2064
+ value: t,
2065
2065
  enumerable: true,
2066
2066
  configurable: true,
2067
2067
  writable: true
2068
- }) : e2[r] = t2, e2;
2068
+ }) : e[r] = t, e;
2069
2069
  }
2070
2070
  var init_defineProperty = __esm({
2071
2071
  "../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"() {
@@ -2074,16 +2074,16 @@ var init_defineProperty = __esm({
2074
2074
  });
2075
2075
 
2076
2076
  // ../../node_modules/@babel/runtime/helpers/esm/objectSpread.js
2077
- function _objectSpread(e2) {
2077
+ function _objectSpread(e) {
2078
2078
  for (var r = 1; r < arguments.length; r++) {
2079
- var t2 = null != arguments[r] ? Object(arguments[r]) : {}, o = Object.keys(t2);
2080
- "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t2).filter(function(e3) {
2081
- return Object.getOwnPropertyDescriptor(t2, e3).enumerable;
2079
+ var t = null != arguments[r] ? Object(arguments[r]) : {}, o = Object.keys(t);
2080
+ "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function(e2) {
2081
+ return Object.getOwnPropertyDescriptor(t, e2).enumerable;
2082
2082
  })), o.forEach(function(r2) {
2083
- _defineProperty(e2, r2, t2[r2]);
2083
+ _defineProperty(e, r2, t[r2]);
2084
2084
  });
2085
2085
  }
2086
- return e2;
2086
+ return e;
2087
2087
  }
2088
2088
  var init_objectSpread = __esm({
2089
2089
  "../../node_modules/@babel/runtime/helpers/esm/objectSpread.js"() {
@@ -2101,16 +2101,16 @@ var init_classCallCheck = __esm({
2101
2101
  });
2102
2102
 
2103
2103
  // ../../node_modules/@babel/runtime/helpers/esm/createClass.js
2104
- function _defineProperties(e2, r) {
2105
- for (var t2 = 0; t2 < r.length; t2++) {
2106
- var o = r[t2];
2107
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e2, toPropertyKey(o.key), o);
2104
+ function _defineProperties(e, r) {
2105
+ for (var t = 0; t < r.length; t++) {
2106
+ var o = r[t];
2107
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
2108
2108
  }
2109
2109
  }
2110
- function _createClass(e2, r, t2) {
2111
- return r && _defineProperties(e2.prototype, r), t2 && _defineProperties(e2, t2), Object.defineProperty(e2, "prototype", {
2110
+ function _createClass(e, r, t) {
2111
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
2112
2112
  writable: false
2113
- }), e2;
2113
+ }), e;
2114
2114
  }
2115
2115
  var init_createClass = __esm({
2116
2116
  "../../node_modules/@babel/runtime/helpers/esm/createClass.js"() {
@@ -2119,9 +2119,9 @@ var init_createClass = __esm({
2119
2119
  });
2120
2120
 
2121
2121
  // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
2122
- function _assertThisInitialized(e2) {
2123
- if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2124
- return e2;
2122
+ function _assertThisInitialized(e) {
2123
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2124
+ return e;
2125
2125
  }
2126
2126
  var init_assertThisInitialized = __esm({
2127
2127
  "../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js"() {
@@ -2129,10 +2129,10 @@ var init_assertThisInitialized = __esm({
2129
2129
  });
2130
2130
 
2131
2131
  // ../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js
2132
- function _possibleConstructorReturn(t2, e2) {
2133
- if (e2 && ("object" == _typeof(e2) || "function" == typeof e2)) return e2;
2134
- if (void 0 !== e2) throw new TypeError("Derived constructors may only return object or undefined");
2135
- return _assertThisInitialized(t2);
2132
+ function _possibleConstructorReturn(t, e) {
2133
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
2134
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
2135
+ return _assertThisInitialized(t);
2136
2136
  }
2137
2137
  var init_possibleConstructorReturn = __esm({
2138
2138
  "../../node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js"() {
@@ -2142,10 +2142,10 @@ var init_possibleConstructorReturn = __esm({
2142
2142
  });
2143
2143
 
2144
2144
  // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
2145
- function _getPrototypeOf(t2) {
2146
- return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) {
2147
- return t3.__proto__ || Object.getPrototypeOf(t3);
2148
- }, _getPrototypeOf(t2);
2145
+ function _getPrototypeOf(t) {
2146
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
2147
+ return t2.__proto__ || Object.getPrototypeOf(t2);
2148
+ }, _getPrototypeOf(t);
2149
2149
  }
2150
2150
  var init_getPrototypeOf = __esm({
2151
2151
  "../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js"() {
@@ -2153,10 +2153,10 @@ var init_getPrototypeOf = __esm({
2153
2153
  });
2154
2154
 
2155
2155
  // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
2156
- function _setPrototypeOf(t2, e2) {
2157
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
2158
- return t3.__proto__ = e3, t3;
2159
- }, _setPrototypeOf(t2, e2);
2156
+ function _setPrototypeOf(t, e) {
2157
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
2158
+ return t2.__proto__ = e2, t2;
2159
+ }, _setPrototypeOf(t, e);
2160
2160
  }
2161
2161
  var init_setPrototypeOf = __esm({
2162
2162
  "../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"() {
@@ -2164,17 +2164,17 @@ var init_setPrototypeOf = __esm({
2164
2164
  });
2165
2165
 
2166
2166
  // ../../node_modules/@babel/runtime/helpers/esm/inherits.js
2167
- function _inherits(t2, e2) {
2168
- if ("function" != typeof e2 && null !== e2) throw new TypeError("Super expression must either be null or a function");
2169
- t2.prototype = Object.create(e2 && e2.prototype, {
2167
+ function _inherits(t, e) {
2168
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
2169
+ t.prototype = Object.create(e && e.prototype, {
2170
2170
  constructor: {
2171
- value: t2,
2171
+ value: t,
2172
2172
  writable: true,
2173
2173
  configurable: true
2174
2174
  }
2175
- }), Object.defineProperty(t2, "prototype", {
2175
+ }), Object.defineProperty(t, "prototype", {
2176
2176
  writable: false
2177
- }), e2 && _setPrototypeOf(t2, e2);
2177
+ }), e && _setPrototypeOf(t, e);
2178
2178
  }
2179
2179
  var init_inherits = __esm({
2180
2180
  "../../node_modules/@babel/runtime/helpers/esm/inherits.js"() {
@@ -2198,9 +2198,9 @@ function makeString(object) {
2198
2198
  if (object == null) return "";
2199
2199
  return "" + object;
2200
2200
  }
2201
- function copy(a, s, t2) {
2201
+ function copy(a, s, t) {
2202
2202
  a.forEach(function(m) {
2203
- if (s[m]) t2[m] = s[m];
2203
+ if (s[m]) t[m] = s[m];
2204
2204
  });
2205
2205
  }
2206
2206
  function getLastOfPath(object, path, Empty) {
@@ -2827,8 +2827,8 @@ var init_i18next = __esm({
2827
2827
  var lngs = [];
2828
2828
  var fallbackLngs = this.languageUtils.getFallbackCodes(this.options.fallbackLng, options.lng || this.language);
2829
2829
  if (this.options.saveMissingTo === "fallback" && fallbackLngs && fallbackLngs[0]) {
2830
- for (var i2 = 0; i2 < fallbackLngs.length; i2++) {
2831
- lngs.push(fallbackLngs[i2]);
2830
+ for (var i = 0; i < fallbackLngs.length; i++) {
2831
+ lngs.push(fallbackLngs[i]);
2832
2832
  }
2833
2833
  } else if (this.options.saveMissingTo === "all") {
2834
2834
  lngs = this.languageUtils.toResolveHierarchy(options.lng || this.language);
@@ -3499,8 +3499,8 @@ var init_i18next = __esm({
3499
3499
  try {
3500
3500
  clonedOptions = JSON.parse(optionsString);
3501
3501
  if (inheritedOptions) clonedOptions = _objectSpread({}, inheritedOptions, clonedOptions);
3502
- } catch (e2) {
3503
- this.logger.warn("failed parsing options string in nesting for key ".concat(key), e2);
3502
+ } catch (e) {
3503
+ this.logger.warn("failed parsing options string in nesting for key ".concat(key), e);
3504
3504
  return "".concat(key).concat(sep).concat(optionsString);
3505
3505
  }
3506
3506
  delete clonedOptions.defaultValue;
@@ -3848,13 +3848,13 @@ var init_i18next = __esm({
3848
3848
  });
3849
3849
  var deferred = defer();
3850
3850
  var load = function load2() {
3851
- var finish = function finish2(err, t2) {
3851
+ var finish = function finish2(err, t) {
3852
3852
  if (_this2.isInitialized) _this2.logger.warn("init: i18next is already initialized. You should call init just once!");
3853
3853
  _this2.isInitialized = true;
3854
3854
  if (!_this2.options.isClone) _this2.logger.log("initialized", _this2.options);
3855
3855
  _this2.emit("initialized", _this2.options);
3856
- deferred.resolve(t2);
3857
- callback(err, t2);
3856
+ deferred.resolve(t);
3857
+ callback(err, t);
3858
3858
  };
3859
3859
  if (_this2.languages && _this2.options.compatibilityAPI !== "v1" && !_this2.isInitialized) return finish(null, _this2.t.bind(_this2));
3860
3860
  _this2.changeLanguage(_this2.options.lng, finish);
@@ -4017,7 +4017,7 @@ var init_i18next = __esm({
4017
4017
  }
4018
4018
  }, {
4019
4019
  key: "t",
4020
- value: function t2() {
4020
+ value: function t() {
4021
4021
  var _this$translator;
4022
4022
  return this.translator && (_this$translator = this.translator).translate.apply(_this$translator, arguments);
4023
4023
  }
@@ -4175,15 +4175,15 @@ var require_typeof = __commonJS({
4175
4175
  var require_toPrimitive = __commonJS({
4176
4176
  "../../node_modules/@babel/runtime/helpers/toPrimitive.js"(exports, module) {
4177
4177
  var _typeof8 = require_typeof()["default"];
4178
- function toPrimitive2(t2, r) {
4179
- if ("object" != _typeof8(t2) || !t2) return t2;
4180
- var e2 = t2[Symbol.toPrimitive];
4181
- if (void 0 !== e2) {
4182
- var i2 = e2.call(t2, r || "default");
4183
- if ("object" != _typeof8(i2)) return i2;
4178
+ function toPrimitive2(t, r) {
4179
+ if ("object" != _typeof8(t) || !t) return t;
4180
+ var e = t[Symbol.toPrimitive];
4181
+ if (void 0 !== e) {
4182
+ var i = e.call(t, r || "default");
4183
+ if ("object" != _typeof8(i)) return i;
4184
4184
  throw new TypeError("@@toPrimitive must return a primitive value.");
4185
4185
  }
4186
- return ("string" === r ? String : Number)(t2);
4186
+ return ("string" === r ? String : Number)(t);
4187
4187
  }
4188
4188
  module.exports = toPrimitive2, module.exports.__esModule = true, module.exports["default"] = module.exports;
4189
4189
  }
@@ -4194,9 +4194,9 @@ var require_toPropertyKey = __commonJS({
4194
4194
  "../../node_modules/@babel/runtime/helpers/toPropertyKey.js"(exports, module) {
4195
4195
  var _typeof8 = require_typeof()["default"];
4196
4196
  var toPrimitive2 = require_toPrimitive();
4197
- function toPropertyKey2(t2) {
4198
- var i2 = toPrimitive2(t2, "string");
4199
- return "symbol" == _typeof8(i2) ? i2 : i2 + "";
4197
+ function toPropertyKey2(t) {
4198
+ var i = toPrimitive2(t, "string");
4199
+ return "symbol" == _typeof8(i) ? i : i + "";
4200
4200
  }
4201
4201
  module.exports = toPropertyKey2, module.exports.__esModule = true, module.exports["default"] = module.exports;
4202
4202
  }
@@ -4206,13 +4206,13 @@ var require_toPropertyKey = __commonJS({
4206
4206
  var require_defineProperty = __commonJS({
4207
4207
  "../../node_modules/@babel/runtime/helpers/defineProperty.js"(exports, module) {
4208
4208
  var toPropertyKey2 = require_toPropertyKey();
4209
- function _defineProperty7(e2, r, t2) {
4210
- return (r = toPropertyKey2(r)) in e2 ? Object.defineProperty(e2, r, {
4211
- value: t2,
4209
+ function _defineProperty7(e, r, t) {
4210
+ return (r = toPropertyKey2(r)) in e ? Object.defineProperty(e, r, {
4211
+ value: t,
4212
4212
  enumerable: true,
4213
4213
  configurable: true,
4214
4214
  writable: true
4215
- }) : e2[r] = t2, e2;
4215
+ }) : e[r] = t, e;
4216
4216
  }
4217
4217
  module.exports = _defineProperty7, module.exports.__esModule = true, module.exports["default"] = module.exports;
4218
4218
  }
@@ -4233,8 +4233,8 @@ var require_classnames = __commonJS({
4233
4233
  var hasOwn2 = {}.hasOwnProperty;
4234
4234
  function classNames6() {
4235
4235
  var classes = "";
4236
- for (var i2 = 0; i2 < arguments.length; i2++) {
4237
- var arg = arguments[i2];
4236
+ for (var i = 0; i < arguments.length; i++) {
4237
+ var arg = arguments[i];
4238
4238
  if (arg) {
4239
4239
  classes = appendClass(classes, parseValue(arg));
4240
4240
  }
@@ -4287,7 +4287,7 @@ var require_classnames = __commonJS({
4287
4287
  var RicosViewerContext;
4288
4288
  var init_ViewerContext = __esm({
4289
4289
  "../../node_modules/@wix/ricos/dist/es/ricos-context/viewer/ViewerContext.js"() {
4290
- RicosViewerContext = React30__namespace.default.createContext(null);
4290
+ RicosViewerContext = React32__namespace.default.createContext(null);
4291
4291
  }
4292
4292
  });
4293
4293
 
@@ -4304,7 +4304,7 @@ var require_react_is_production_min = __commonJS({
4304
4304
  var b = "function" === typeof Symbol && Symbol.for;
4305
4305
  var c = b ? Symbol.for("react.element") : 60103;
4306
4306
  var d = b ? Symbol.for("react.portal") : 60106;
4307
- var e2 = b ? Symbol.for("react.fragment") : 60107;
4307
+ var e = b ? Symbol.for("react.fragment") : 60107;
4308
4308
  var f = b ? Symbol.for("react.strict_mode") : 60108;
4309
4309
  var g = b ? Symbol.for("react.profiler") : 60114;
4310
4310
  var h = b ? Symbol.for("react.provider") : 60109;
@@ -4315,7 +4315,7 @@ var require_react_is_production_min = __commonJS({
4315
4315
  var p = b ? Symbol.for("react.suspense") : 60113;
4316
4316
  var q = b ? Symbol.for("react.suspense_list") : 60120;
4317
4317
  var r = b ? Symbol.for("react.memo") : 60115;
4318
- var t2 = b ? Symbol.for("react.lazy") : 60116;
4318
+ var t = b ? Symbol.for("react.lazy") : 60116;
4319
4319
  var v = b ? Symbol.for("react.block") : 60121;
4320
4320
  var w = b ? Symbol.for("react.fundamental") : 60117;
4321
4321
  var x = b ? Symbol.for("react.responder") : 60118;
@@ -4328,7 +4328,7 @@ var require_react_is_production_min = __commonJS({
4328
4328
  switch (a = a.type, a) {
4329
4329
  case l:
4330
4330
  case m:
4331
- case e2:
4331
+ case e:
4332
4332
  case g:
4333
4333
  case f:
4334
4334
  case p:
@@ -4337,7 +4337,7 @@ var require_react_is_production_min = __commonJS({
4337
4337
  switch (a = a && a.$$typeof, a) {
4338
4338
  case k:
4339
4339
  case n:
4340
- case t2:
4340
+ case t:
4341
4341
  case r:
4342
4342
  case h:
4343
4343
  return a;
@@ -4359,8 +4359,8 @@ var require_react_is_production_min = __commonJS({
4359
4359
  exports.ContextProvider = h;
4360
4360
  exports.Element = c;
4361
4361
  exports.ForwardRef = n;
4362
- exports.Fragment = e2;
4363
- exports.Lazy = t2;
4362
+ exports.Fragment = e;
4363
+ exports.Lazy = t;
4364
4364
  exports.Memo = r;
4365
4365
  exports.Portal = d;
4366
4366
  exports.Profiler = g;
@@ -4383,10 +4383,10 @@ var require_react_is_production_min = __commonJS({
4383
4383
  return z(a) === n;
4384
4384
  };
4385
4385
  exports.isFragment = function(a) {
4386
- return z(a) === e2;
4386
+ return z(a) === e;
4387
4387
  };
4388
4388
  exports.isLazy = function(a) {
4389
- return z(a) === t2;
4389
+ return z(a) === t;
4390
4390
  };
4391
4391
  exports.isMemo = function(a) {
4392
4392
  return z(a) === r;
@@ -4404,7 +4404,7 @@ var require_react_is_production_min = __commonJS({
4404
4404
  return z(a) === p;
4405
4405
  };
4406
4406
  exports.isValidElementType = function(a) {
4407
- return "string" === typeof a || "function" === typeof a || a === e2 || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t2 || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
4407
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
4408
4408
  };
4409
4409
  exports.typeOf = z;
4410
4410
  }
@@ -4597,8 +4597,8 @@ var require_object_assign = __commonJS({
4597
4597
  return false;
4598
4598
  }
4599
4599
  var test2 = {};
4600
- for (var i2 = 0; i2 < 10; i2++) {
4601
- test2["_" + String.fromCharCode(i2)] = i2;
4600
+ for (var i = 0; i < 10; i++) {
4601
+ test2["_" + String.fromCharCode(i)] = i;
4602
4602
  }
4603
4603
  var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
4604
4604
  return test2[n];
@@ -4631,9 +4631,9 @@ var require_object_assign = __commonJS({
4631
4631
  }
4632
4632
  if (getOwnPropertySymbols2) {
4633
4633
  symbols = getOwnPropertySymbols2(from);
4634
- for (var i2 = 0; i2 < symbols.length; i2++) {
4635
- if (propIsEnumerable.call(from, symbols[i2])) {
4636
- to[symbols[i2]] = from[symbols[i2]];
4634
+ for (var i = 0; i < symbols.length; i++) {
4635
+ if (propIsEnumerable.call(from, symbols[i])) {
4636
+ to[symbols[i]] = from[symbols[i]];
4637
4637
  }
4638
4638
  }
4639
4639
  }
@@ -4863,8 +4863,8 @@ var require_factoryWithTypeCheckers = __commonJS({
4863
4863
  var propType = getPropType(propValue);
4864
4864
  return new PropTypeError("Invalid " + location2 + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
4865
4865
  }
4866
- for (var i2 = 0; i2 < propValue.length; i2++) {
4867
- var error2 = typeChecker(propValue, i2, componentName, location2, propFullName + "[" + i2 + "]", ReactPropTypesSecret);
4866
+ for (var i = 0; i < propValue.length; i++) {
4867
+ var error2 = typeChecker(propValue, i, componentName, location2, propFullName + "[" + i + "]", ReactPropTypesSecret);
4868
4868
  if (error2 instanceof Error) {
4869
4869
  return error2;
4870
4870
  }
@@ -4921,8 +4921,8 @@ var require_factoryWithTypeCheckers = __commonJS({
4921
4921
  }
4922
4922
  function validate2(props, propName, componentName, location2, propFullName) {
4923
4923
  var propValue = props[propName];
4924
- for (var i2 = 0; i2 < expectedValues.length; i2++) {
4925
- if (is(propValue, expectedValues[i2])) {
4924
+ for (var i = 0; i < expectedValues.length; i++) {
4925
+ if (is(propValue, expectedValues[i])) {
4926
4926
  return null;
4927
4927
  }
4928
4928
  }
@@ -4964,19 +4964,19 @@ var require_factoryWithTypeCheckers = __commonJS({
4964
4964
  process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
4965
4965
  return emptyFunctionThatReturnsNull;
4966
4966
  }
4967
- for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
4968
- var checker = arrayOfTypeCheckers[i2];
4967
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
4968
+ var checker = arrayOfTypeCheckers[i];
4969
4969
  if (typeof checker !== "function") {
4970
4970
  printWarning(
4971
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i2 + "."
4971
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
4972
4972
  );
4973
4973
  return emptyFunctionThatReturnsNull;
4974
4974
  }
4975
4975
  }
4976
4976
  function validate2(props, propName, componentName, location2, propFullName) {
4977
4977
  var expectedTypes = [];
4978
- for (var i3 = 0; i3 < arrayOfTypeCheckers.length; i3++) {
4979
- var checker2 = arrayOfTypeCheckers[i3];
4978
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
4979
+ var checker2 = arrayOfTypeCheckers[i2];
4980
4980
  var checkerResult = checker2(props, propName, componentName, location2, propFullName, ReactPropTypesSecret);
4981
4981
  if (checkerResult == null) {
4982
4982
  return null;
@@ -5236,28 +5236,28 @@ var require_prop_types = __commonJS({
5236
5236
  // ../../node_modules/@babel/runtime/helpers/extends.js
5237
5237
  var require_extends = __commonJS({
5238
5238
  "../../node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
5239
- function _extends6() {
5240
- return module.exports = _extends6 = Object.assign ? Object.assign.bind() : function(n) {
5241
- for (var e2 = 1; e2 < arguments.length; e2++) {
5242
- var t2 = arguments[e2];
5243
- for (var r in t2) ({}).hasOwnProperty.call(t2, r) && (n[r] = t2[r]);
5239
+ function _extends7() {
5240
+ return module.exports = _extends7 = Object.assign ? Object.assign.bind() : function(n) {
5241
+ for (var e = 1; e < arguments.length; e++) {
5242
+ var t = arguments[e];
5243
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
5244
5244
  }
5245
5245
  return n;
5246
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends6.apply(null, arguments);
5246
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends7.apply(null, arguments);
5247
5247
  }
5248
- module.exports = _extends6, module.exports.__esModule = true, module.exports["default"] = module.exports;
5248
+ module.exports = _extends7, module.exports.__esModule = true, module.exports["default"] = module.exports;
5249
5249
  }
5250
5250
  });
5251
5251
 
5252
5252
  // ../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
5253
- function _objectWithoutPropertiesLoose(r, e2) {
5253
+ function _objectWithoutPropertiesLoose(r, e) {
5254
5254
  if (null == r) return {};
5255
- var t2 = {};
5255
+ var t = {};
5256
5256
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
5257
- if (-1 !== e2.indexOf(n)) continue;
5258
- t2[n] = r[n];
5257
+ if (-1 !== e.indexOf(n)) continue;
5258
+ t[n] = r[n];
5259
5259
  }
5260
- return t2;
5260
+ return t;
5261
5261
  }
5262
5262
  var init_objectWithoutPropertiesLoose = __esm({
5263
5263
  "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"() {
@@ -5265,8 +5265,8 @@ var init_objectWithoutPropertiesLoose = __esm({
5265
5265
  });
5266
5266
 
5267
5267
  // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
5268
- function _inheritsLoose(t2, o) {
5269
- t2.prototype = Object.create(o.prototype), t2.prototype.constructor = t2, _setPrototypeOf(t2, o);
5268
+ function _inheritsLoose(t, o) {
5269
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
5270
5270
  }
5271
5271
  var init_inheritsLoose = __esm({
5272
5272
  "../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"() {
@@ -5311,7 +5311,7 @@ var init_PropTypes = __esm({
5311
5311
  var TransitionGroupContext_default;
5312
5312
  var init_TransitionGroupContext = __esm({
5313
5313
  "../../node_modules/react-transition-group/esm/TransitionGroupContext.js"() {
5314
- TransitionGroupContext_default = React30__namespace.default.createContext(null);
5314
+ TransitionGroupContext_default = React32__namespace.default.createContext(null);
5315
5315
  }
5316
5316
  });
5317
5317
 
@@ -5543,13 +5543,13 @@ var init_Transition = __esm({
5543
5543
  var _this$props = this.props, children = _this$props.children; _this$props.in; _this$props.mountOnEnter; _this$props.unmountOnExit; _this$props.appear; _this$props.enter; _this$props.exit; _this$props.timeout; _this$props.addEndListener; _this$props.onEnter; _this$props.onEntering; _this$props.onEntered; _this$props.onExit; _this$props.onExiting; _this$props.onExited; _this$props.nodeRef; var childProps = _objectWithoutPropertiesLoose(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
5544
5544
  return (
5545
5545
  // allows for nested Transitions
5546
- /* @__PURE__ */ React30__namespace.default.createElement(TransitionGroupContext_default.Provider, {
5546
+ /* @__PURE__ */ React32__namespace.default.createElement(TransitionGroupContext_default.Provider, {
5547
5547
  value: null
5548
- }, typeof children === "function" ? children(status, childProps) : React30__namespace.default.cloneElement(React30__namespace.default.Children.only(children), childProps))
5548
+ }, typeof children === "function" ? children(status, childProps) : React32__namespace.default.cloneElement(React32__namespace.default.Children.only(children), childProps))
5549
5549
  );
5550
5550
  };
5551
5551
  return Transition2;
5552
- })(React30__namespace.default.Component);
5552
+ })(React32__namespace.default.Component);
5553
5553
  Transition.contextType = TransitionGroupContext_default;
5554
5554
  Transition.propTypes = process.env.NODE_ENV !== "production" ? {
5555
5555
  /**
@@ -6726,10 +6726,10 @@ var require_code = __commonJS({
6726
6726
  exports.nil = new _Code("");
6727
6727
  function _23(strs, ...args) {
6728
6728
  const code = [strs[0]];
6729
- let i2 = 0;
6730
- while (i2 < args.length) {
6731
- addCodeArg(code, args[i2]);
6732
- code.push(strs[++i2]);
6729
+ let i = 0;
6730
+ while (i < args.length) {
6731
+ addCodeArg(code, args[i]);
6732
+ code.push(strs[++i]);
6733
6733
  }
6734
6734
  return new _Code(code);
6735
6735
  }
@@ -6737,11 +6737,11 @@ var require_code = __commonJS({
6737
6737
  var plus = new _Code("+");
6738
6738
  function str(strs, ...args) {
6739
6739
  const expr = [safeStringify(strs[0])];
6740
- let i2 = 0;
6741
- while (i2 < args.length) {
6740
+ let i = 0;
6741
+ while (i < args.length) {
6742
6742
  expr.push(plus);
6743
- addCodeArg(expr, args[i2]);
6744
- expr.push(plus, safeStringify(strs[++i2]));
6743
+ addCodeArg(expr, args[i]);
6744
+ expr.push(plus, safeStringify(strs[++i]));
6745
6745
  }
6746
6746
  optimize(expr);
6747
6747
  return new _Code(expr);
@@ -6757,17 +6757,17 @@ var require_code = __commonJS({
6757
6757
  }
6758
6758
  exports.addCodeArg = addCodeArg;
6759
6759
  function optimize(expr) {
6760
- let i2 = 1;
6761
- while (i2 < expr.length - 1) {
6762
- if (expr[i2] === plus) {
6763
- const res = mergeExprItems(expr[i2 - 1], expr[i2 + 1]);
6760
+ let i = 1;
6761
+ while (i < expr.length - 1) {
6762
+ if (expr[i] === plus) {
6763
+ const res = mergeExprItems(expr[i - 1], expr[i + 1]);
6764
6764
  if (res !== void 0) {
6765
- expr.splice(i2 - 1, 3, res);
6765
+ expr.splice(i - 1, 3, res);
6766
6766
  continue;
6767
6767
  }
6768
- expr[i2++] = "+";
6768
+ expr[i++] = "+";
6769
6769
  }
6770
- i2++;
6770
+ i++;
6771
6771
  }
6772
6772
  }
6773
6773
  function mergeExprItems(a, b) {
@@ -7145,27 +7145,27 @@ var require_codegen = __commonJS({
7145
7145
  }
7146
7146
  optimizeNodes() {
7147
7147
  const { nodes } = this;
7148
- let i2 = nodes.length;
7149
- while (i2--) {
7150
- const n = nodes[i2].optimizeNodes();
7148
+ let i = nodes.length;
7149
+ while (i--) {
7150
+ const n = nodes[i].optimizeNodes();
7151
7151
  if (Array.isArray(n))
7152
- nodes.splice(i2, 1, ...n);
7152
+ nodes.splice(i, 1, ...n);
7153
7153
  else if (n)
7154
- nodes[i2] = n;
7154
+ nodes[i] = n;
7155
7155
  else
7156
- nodes.splice(i2, 1);
7156
+ nodes.splice(i, 1);
7157
7157
  }
7158
7158
  return nodes.length > 0 ? this : void 0;
7159
7159
  }
7160
7160
  optimizeNames(names, constants) {
7161
7161
  const { nodes } = this;
7162
- let i2 = nodes.length;
7163
- while (i2--) {
7164
- const n = nodes[i2];
7162
+ let i = nodes.length;
7163
+ while (i--) {
7164
+ const n = nodes[i];
7165
7165
  if (n.optimizeNames(names, constants))
7166
7166
  continue;
7167
7167
  subtractNames(names, n.names);
7168
- nodes.splice(i2, 1);
7168
+ nodes.splice(i, 1);
7169
7169
  }
7170
7170
  return nodes.length > 0 ? this : void 0;
7171
7171
  }
@@ -7199,17 +7199,17 @@ var require_codegen = __commonJS({
7199
7199
  const cond = this.condition;
7200
7200
  if (cond === true)
7201
7201
  return this.nodes;
7202
- let e2 = this.else;
7203
- if (e2) {
7204
- const ns = e2.optimizeNodes();
7205
- e2 = this.else = Array.isArray(ns) ? new Else(ns) : ns;
7202
+ let e = this.else;
7203
+ if (e) {
7204
+ const ns = e.optimizeNodes();
7205
+ e = this.else = Array.isArray(ns) ? new Else(ns) : ns;
7206
7206
  }
7207
- if (e2) {
7207
+ if (e) {
7208
7208
  if (cond === false)
7209
- return e2 instanceof _If ? e2 : e2.nodes;
7209
+ return e instanceof _If ? e : e.nodes;
7210
7210
  if (this.nodes.length)
7211
7211
  return this;
7212
- return new _If(not(cond), e2 instanceof _If ? [e2] : e2.nodes);
7212
+ return new _If(not(cond), e instanceof _If ? [e] : e.nodes);
7213
7213
  }
7214
7214
  if (cond === false || !this.nodes.length)
7215
7215
  return void 0;
@@ -7492,8 +7492,8 @@ var require_codegen = __commonJS({
7492
7492
  const name = this._scope.toName(nameOrPrefix);
7493
7493
  if (this.opts.es5) {
7494
7494
  const arr2 = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable);
7495
- return this.forRange("_i", 0, (0, code_1._)`${arr2}.length`, (i2) => {
7496
- this.var(name, (0, code_1._)`${arr2}[${i2}]`);
7495
+ return this.forRange("_i", 0, (0, code_1._)`${arr2}.length`, (i) => {
7496
+ this.var(name, (0, code_1._)`${arr2}[${i}]`);
7497
7497
  forBody(name);
7498
7498
  });
7499
7499
  }
@@ -7653,8 +7653,8 @@ var require_codegen = __commonJS({
7653
7653
  delete names[n.str];
7654
7654
  return c;
7655
7655
  }
7656
- function canOptimize(e2) {
7657
- return e2 instanceof code_1._Code && e2._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== void 0);
7656
+ function canOptimize(e) {
7657
+ return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== void 0);
7658
7658
  }
7659
7659
  }
7660
7660
  function subtractNames(names, from) {
@@ -7932,8 +7932,8 @@ var require_errors = __commonJS({
7932
7932
  if (errsCount === void 0)
7933
7933
  throw new Error("ajv implementation error");
7934
7934
  const err = gen.name("err");
7935
- gen.forRange("i", errsCount, names_1.default.errors, (i2) => {
7936
- gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i2}]`);
7935
+ gen.forRange("i", errsCount, names_1.default.errors, (i) => {
7936
+ gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i}]`);
7937
7937
  gen.if((0, codegen_1._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._)`${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it.errorPath)));
7938
7938
  gen.assign((0, codegen_1._)`${err}.schemaPath`, (0, codegen_1.str)`${it.errSchemaPath}/${keyword}`);
7939
7939
  if (it.opts.verbose) {
@@ -8167,7 +8167,7 @@ var require_dataType = __commonJS({
8167
8167
  exports.coerceAndCheckDataType = coerceAndCheckDataType;
8168
8168
  var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
8169
8169
  function coerceToTypes(types, coerceTypes) {
8170
- return coerceTypes ? types.filter((t2) => COERCIBLE.has(t2) || coerceTypes === "array" && t2 === "array") : [];
8170
+ return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
8171
8171
  }
8172
8172
  function coerceData(it, types, coerceTo) {
8173
8173
  const { gen, data, opts } = it;
@@ -8177,9 +8177,9 @@ var require_dataType = __commonJS({
8177
8177
  gen.if((0, codegen_1._)`${dataType} == 'object' && Array.isArray(${data}) && ${data}.length == 1`, () => gen.assign(data, (0, codegen_1._)`${data}[0]`).assign(dataType, (0, codegen_1._)`typeof ${data}`).if(checkDataTypes(types, data, opts.strictNumbers), () => gen.assign(coerced, data)));
8178
8178
  }
8179
8179
  gen.if((0, codegen_1._)`${coerced} !== undefined`);
8180
- for (const t2 of coerceTo) {
8181
- if (COERCIBLE.has(t2) || t2 === "array" && opts.coerceTypes === "array") {
8182
- coerceSpecificType(t2);
8180
+ for (const t of coerceTo) {
8181
+ if (COERCIBLE.has(t) || t === "array" && opts.coerceTypes === "array") {
8182
+ coerceSpecificType(t);
8183
8183
  }
8184
8184
  }
8185
8185
  gen.else();
@@ -8189,8 +8189,8 @@ var require_dataType = __commonJS({
8189
8189
  gen.assign(data, coerced);
8190
8190
  assignParentData(it, coerced);
8191
8191
  });
8192
- function coerceSpecificType(t2) {
8193
- switch (t2) {
8192
+ function coerceSpecificType(t) {
8193
+ switch (t) {
8194
8194
  case "string":
8195
8195
  gen.elseIf((0, codegen_1._)`${dataType} == "number" || ${dataType} == "boolean"`).assign(coerced, (0, codegen_1._)`"" + ${data}`).elseIf((0, codegen_1._)`${data} === null`).assign(coerced, (0, codegen_1._)`""`);
8196
8196
  return;
@@ -8262,8 +8262,8 @@ var require_dataType = __commonJS({
8262
8262
  }
8263
8263
  if (types.number)
8264
8264
  delete types.integer;
8265
- for (const t2 in types)
8266
- cond = (0, codegen_1.and)(cond, checkDataType(t2, data, strictNums, correct));
8265
+ for (const t in types)
8266
+ cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
8267
8267
  return cond;
8268
8268
  }
8269
8269
  exports.checkDataTypes = checkDataTypes;
@@ -8308,7 +8308,7 @@ var require_defaults = __commonJS({
8308
8308
  assignDefault(it, key, properties[key].default);
8309
8309
  }
8310
8310
  } else if (ty === "array" && Array.isArray(items)) {
8311
- items.forEach((sch, i2) => assignDefault(it, i2, sch.default));
8311
+ items.forEach((sch, i) => assignDefault(it, i, sch.default));
8312
8312
  }
8313
8313
  }
8314
8314
  exports.assignDefaults = assignDefaults;
@@ -8425,10 +8425,10 @@ var require_code2 = __commonJS({
8425
8425
  return valid;
8426
8426
  function validateItems(notValid) {
8427
8427
  const len = gen.const("len", (0, codegen_1._)`${data}.length`);
8428
- gen.forRange("i", 0, len, (i2) => {
8428
+ gen.forRange("i", 0, len, (i) => {
8429
8429
  cxt.subschema({
8430
8430
  keyword,
8431
- dataProp: i2,
8431
+ dataProp: i,
8432
8432
  dataPropType: util_1.Type.Num
8433
8433
  }, valid);
8434
8434
  gen.if((0, codegen_1.not)(valid), notValid);
@@ -8445,10 +8445,10 @@ var require_code2 = __commonJS({
8445
8445
  return;
8446
8446
  const valid = gen.let("valid", false);
8447
8447
  const schValid = gen.name("_valid");
8448
- gen.block(() => schema.forEach((_sch, i2) => {
8448
+ gen.block(() => schema.forEach((_sch, i) => {
8449
8449
  const schCxt = cxt.subschema({
8450
8450
  keyword,
8451
- schemaProp: i2,
8451
+ schemaProp: i,
8452
8452
  compositeRule: true
8453
8453
  }, schValid);
8454
8454
  gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`);
@@ -8512,7 +8512,7 @@ var require_keyword = __commonJS({
8512
8512
  }
8513
8513
  function validateAsync() {
8514
8514
  const ruleErrs = gen.let("ruleErrs", null);
8515
- gen.try(() => assignValid((0, codegen_1._)`await `), (e2) => gen.assign(valid, false).if((0, codegen_1._)`${e2} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e2}.errors`), () => gen.throw(e2)));
8515
+ gen.try(() => assignValid((0, codegen_1._)`await `), (e) => gen.assign(valid, false).if((0, codegen_1._)`${e} instanceof ${it.ValidationError}`, () => gen.assign(ruleErrs, (0, codegen_1._)`${e}.errors`), () => gen.throw(e)));
8516
8516
  return ruleErrs;
8517
8517
  }
8518
8518
  function validateSync() {
@@ -8668,12 +8668,12 @@ var require_fast_deep_equal = __commonJS({
8668
8668
  if (a === b) return true;
8669
8669
  if (a && b && typeof a == "object" && typeof b == "object") {
8670
8670
  if (a.constructor !== b.constructor) return false;
8671
- var length, i2, keys2;
8671
+ var length, i, keys2;
8672
8672
  if (Array.isArray(a)) {
8673
8673
  length = a.length;
8674
8674
  if (length != b.length) return false;
8675
- for (i2 = length; i2-- !== 0; )
8676
- if (!equal(a[i2], b[i2])) return false;
8675
+ for (i = length; i-- !== 0; )
8676
+ if (!equal(a[i], b[i])) return false;
8677
8677
  return true;
8678
8678
  }
8679
8679
  if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
@@ -8682,10 +8682,10 @@ var require_fast_deep_equal = __commonJS({
8682
8682
  keys2 = Object.keys(a);
8683
8683
  length = keys2.length;
8684
8684
  if (length !== Object.keys(b).length) return false;
8685
- for (i2 = length; i2-- !== 0; )
8686
- if (!Object.prototype.hasOwnProperty.call(b, keys2[i2])) return false;
8687
- for (i2 = length; i2-- !== 0; ) {
8688
- var key = keys2[i2];
8685
+ for (i = length; i-- !== 0; )
8686
+ if (!Object.prototype.hasOwnProperty.call(b, keys2[i])) return false;
8687
+ for (i = length; i-- !== 0; ) {
8688
+ var key = keys2[i];
8689
8689
  if (!equal(a[key], b[key])) return false;
8690
8690
  }
8691
8691
  return true;
@@ -8761,8 +8761,8 @@ var require_json_schema_traverse = __commonJS({
8761
8761
  var sch = schema[key];
8762
8762
  if (Array.isArray(sch)) {
8763
8763
  if (key in traverse.arrayKeywords) {
8764
- for (var i2 = 0; i2 < sch.length; i2++)
8765
- _traverse(opts, pre, post, sch[i2], jsonPtr + "/" + key + "/" + i2, rootSchema, jsonPtr, key, schema, i2);
8764
+ for (var i = 0; i < sch.length; i++)
8765
+ _traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
8766
8766
  }
8767
8767
  } else if (key in traverse.propsKeywords) {
8768
8768
  if (sch && typeof sch == "object") {
@@ -9170,9 +9170,9 @@ var require_validate = __commonJS({
9170
9170
  it.dataTypes = types;
9171
9171
  return;
9172
9172
  }
9173
- types.forEach((t2) => {
9174
- if (!includesType(it.dataTypes, t2)) {
9175
- strictTypesError(it, `type "${t2}" not allowed by context "${it.dataTypes.join(",")}"`);
9173
+ types.forEach((t) => {
9174
+ if (!includesType(it.dataTypes, t)) {
9175
+ strictTypesError(it, `type "${t}" not allowed by context "${it.dataTypes.join(",")}"`);
9176
9176
  }
9177
9177
  });
9178
9178
  narrowSchemaTypes(it, types);
@@ -9188,7 +9188,7 @@ var require_validate = __commonJS({
9188
9188
  const rule = rules[keyword];
9189
9189
  if (typeof rule == "object" && (0, applicability_1.shouldUseRule)(it.schema, rule)) {
9190
9190
  const { type } = rule.definition;
9191
- if (type.length && !type.some((t2) => hasApplicableType(ts, t2))) {
9191
+ if (type.length && !type.some((t) => hasApplicableType(ts, t))) {
9192
9192
  strictTypesError(it, `missing type "${type.join(",")}" for keyword "${keyword}"`);
9193
9193
  }
9194
9194
  }
@@ -9197,15 +9197,15 @@ var require_validate = __commonJS({
9197
9197
  function hasApplicableType(schTs, kwdT) {
9198
9198
  return schTs.includes(kwdT) || kwdT === "number" && schTs.includes("integer");
9199
9199
  }
9200
- function includesType(ts, t2) {
9201
- return ts.includes(t2) || t2 === "integer" && ts.includes("number");
9200
+ function includesType(ts, t) {
9201
+ return ts.includes(t) || t === "integer" && ts.includes("number");
9202
9202
  }
9203
9203
  function narrowSchemaTypes(it, withTypes) {
9204
9204
  const ts = [];
9205
- for (const t2 of it.dataTypes) {
9206
- if (includesType(withTypes, t2))
9207
- ts.push(t2);
9208
- else if (withTypes.includes("integer") && t2 === "number")
9205
+ for (const t of it.dataTypes) {
9206
+ if (includesType(withTypes, t))
9207
+ ts.push(t);
9208
+ else if (withTypes.includes("integer") && t === "number")
9209
9209
  ts.push("integer");
9210
9210
  }
9211
9211
  it.dataTypes = ts;
@@ -9580,12 +9580,12 @@ var require_compile = __commonJS({
9580
9580
  }
9581
9581
  sch.validate = validate2;
9582
9582
  return sch;
9583
- } catch (e2) {
9583
+ } catch (e) {
9584
9584
  delete sch.validate;
9585
9585
  delete sch.validateName;
9586
9586
  if (sourceCode)
9587
9587
  this.logger.error("Error compiling schema, function code:", sourceCode);
9588
- throw e2;
9588
+ throw e;
9589
9589
  } finally {
9590
9590
  this._compilations.delete(sch);
9591
9591
  }
@@ -9724,24 +9724,24 @@ var require_utils = __commonJS({
9724
9724
  function stringArrayToHexStripped(input) {
9725
9725
  let acc = "";
9726
9726
  let code = 0;
9727
- let i2 = 0;
9728
- for (i2 = 0; i2 < input.length; i2++) {
9729
- code = input[i2].charCodeAt(0);
9727
+ let i = 0;
9728
+ for (i = 0; i < input.length; i++) {
9729
+ code = input[i].charCodeAt(0);
9730
9730
  if (code === 48) {
9731
9731
  continue;
9732
9732
  }
9733
9733
  if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
9734
9734
  return "";
9735
9735
  }
9736
- acc += input[i2];
9736
+ acc += input[i];
9737
9737
  break;
9738
9738
  }
9739
- for (i2 += 1; i2 < input.length; i2++) {
9740
- code = input[i2].charCodeAt(0);
9739
+ for (i += 1; i < input.length; i++) {
9740
+ code = input[i].charCodeAt(0);
9741
9741
  if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
9742
9742
  return "";
9743
9743
  }
9744
- acc += input[i2];
9744
+ acc += input[i];
9745
9745
  }
9746
9746
  return acc;
9747
9747
  }
@@ -9771,8 +9771,8 @@ var require_utils = __commonJS({
9771
9771
  let endipv6Encountered = false;
9772
9772
  let endIpv6 = false;
9773
9773
  let consume = consumeHextets;
9774
- for (let i2 = 0; i2 < input.length; i2++) {
9775
- const cursor = input[i2];
9774
+ for (let i = 0; i < input.length; i++) {
9775
+ const cursor = input[i];
9776
9776
  if (cursor === "[" || cursor === "]") {
9777
9777
  continue;
9778
9778
  }
@@ -9787,7 +9787,7 @@ var require_utils = __commonJS({
9787
9787
  output2.error = true;
9788
9788
  break;
9789
9789
  }
9790
- if (i2 > 0 && input[i2 - 1] === ":") {
9790
+ if (i > 0 && input[i - 1] === ":") {
9791
9791
  endipv6Encountered = true;
9792
9792
  }
9793
9793
  address.push(":");
@@ -9833,8 +9833,8 @@ var require_utils = __commonJS({
9833
9833
  }
9834
9834
  function findToken(str, token) {
9835
9835
  let ind = 0;
9836
- for (let i2 = 0; i2 < str.length; i2++) {
9837
- if (str[i2] === token) ind++;
9836
+ for (let i = 0; i < str.length; i++) {
9837
+ if (str[i] === token) ind++;
9838
9838
  }
9839
9839
  return ind;
9840
9840
  }
@@ -10391,8 +10391,8 @@ var require_fast_uri = __commonJS({
10391
10391
  if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
10392
10392
  try {
10393
10393
  parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
10394
- } catch (e2) {
10395
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e2;
10394
+ } catch (e) {
10395
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
10396
10396
  }
10397
10397
  }
10398
10398
  }
@@ -10636,11 +10636,11 @@ var require_core = __commonJS({
10636
10636
  async function _compileAsync(sch) {
10637
10637
  try {
10638
10638
  return this._compileSchemaEnv(sch);
10639
- } catch (e2) {
10640
- if (!(e2 instanceof ref_error_1.default))
10641
- throw e2;
10642
- checkLoaded.call(this, e2);
10643
- await loadMissingSchema.call(this, e2.missingSchema);
10639
+ } catch (e) {
10640
+ if (!(e instanceof ref_error_1.default))
10641
+ throw e;
10642
+ checkLoaded.call(this, e);
10643
+ await loadMissingSchema.call(this, e.missingSchema);
10644
10644
  return _compileAsync.call(this, sch);
10645
10645
  }
10646
10646
  }
@@ -10807,7 +10807,7 @@ var require_core = __commonJS({
10807
10807
  type: (0, dataType_1.getJSONTypes)(def.type),
10808
10808
  schemaType: (0, dataType_1.getJSONTypes)(def.schemaType)
10809
10809
  };
10810
- (0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k) => addRule.call(this, k, definition) : (k) => definition.type.forEach((t2) => addRule.call(this, k, definition, t2)));
10810
+ (0, util_1.eachItem)(keyword, definition.type.length === 0 ? (k) => addRule.call(this, k, definition) : (k) => definition.type.forEach((t) => addRule.call(this, k, definition, t)));
10811
10811
  return this;
10812
10812
  }
10813
10813
  getKeyword(keyword) {
@@ -10820,9 +10820,9 @@ var require_core = __commonJS({
10820
10820
  delete RULES.keywords[keyword];
10821
10821
  delete RULES.all[keyword];
10822
10822
  for (const group of RULES.rules) {
10823
- const i2 = group.rules.findIndex((rule) => rule.keyword === keyword);
10824
- if (i2 >= 0)
10825
- group.rules.splice(i2, 1);
10823
+ const i = group.rules.findIndex((rule) => rule.keyword === keyword);
10824
+ if (i >= 0)
10825
+ group.rules.splice(i, 1);
10826
10826
  }
10827
10827
  return this;
10828
10828
  }
@@ -10836,7 +10836,7 @@ var require_core = __commonJS({
10836
10836
  errorsText(errors = this.errors, { separator = ", ", dataVar = "data" } = {}) {
10837
10837
  if (!errors || errors.length === 0)
10838
10838
  return "No errors";
10839
- return errors.map((e2) => `${dataVar}${e2.instancePath} ${e2.message}`).reduce((text, msg) => text + separator + msg);
10839
+ return errors.map((e) => `${dataVar}${e.instancePath} ${e.message}`).reduce((text, msg) => text + separator + msg);
10840
10840
  }
10841
10841
  $dataMetaSchema(metaSchema, keywordsJsonPointers) {
10842
10842
  const rules = this.RULES.all;
@@ -11006,7 +11006,7 @@ var require_core = __commonJS({
11006
11006
  if (dataType && post)
11007
11007
  throw new Error('keyword with "post" flag cannot have "type"');
11008
11008
  const { RULES } = this;
11009
- let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t2 }) => t2 === dataType);
11009
+ let ruleGroup = post ? RULES.post : RULES.rules.find(({ type: t }) => t === dataType);
11010
11010
  if (!ruleGroup) {
11011
11011
  ruleGroup = { type: dataType, rules: [] };
11012
11012
  RULES.rules.push(ruleGroup);
@@ -11030,9 +11030,9 @@ var require_core = __commonJS({
11030
11030
  (_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
11031
11031
  }
11032
11032
  function addBeforeRule(ruleGroup, rule, before) {
11033
- const i2 = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
11034
- if (i2 >= 0) {
11035
- ruleGroup.rules.splice(i2, 0, rule);
11033
+ const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
11034
+ if (i >= 0) {
11035
+ ruleGroup.rules.splice(i, 0, rule);
11036
11036
  } else {
11037
11037
  ruleGroup.rules.push(rule);
11038
11038
  this.logger.warn(`rule ${before} is not defined`);
@@ -11142,9 +11142,9 @@ var require_ref = __commonJS({
11142
11142
  addEvaluatedFrom(v);
11143
11143
  if (!allErrors)
11144
11144
  gen.assign(valid, true);
11145
- }, (e2) => {
11146
- gen.if((0, codegen_1._)`!(${e2} instanceof ${it.ValidationError})`, () => gen.throw(e2));
11147
- addErrorsFrom(e2);
11145
+ }, (e) => {
11146
+ gen.if((0, codegen_1._)`!(${e} instanceof ${it.ValidationError})`, () => gen.throw(e));
11147
+ addErrorsFrom(e);
11148
11148
  if (!allErrors)
11149
11149
  gen.assign(valid, false);
11150
11150
  });
@@ -11507,8 +11507,8 @@ var require_uniqueItems = __commonJS({
11507
11507
  var util_1 = require_util();
11508
11508
  var equal_1 = require_equal();
11509
11509
  var error2 = {
11510
- message: ({ params: { i: i2, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i2} are identical)`,
11511
- params: ({ params: { i: i2, j } }) => (0, codegen_1._)`{i: ${i2}, j: ${j}}`
11510
+ message: ({ params: { i, j } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
11511
+ params: ({ params: { i, j } }) => (0, codegen_1._)`{i: ${i}, j: ${j}}`
11512
11512
  };
11513
11513
  var def = {
11514
11514
  keyword: "uniqueItems",
@@ -11525,21 +11525,21 @@ var require_uniqueItems = __commonJS({
11525
11525
  cxt.block$data(valid, validateUniqueItems, (0, codegen_1._)`${schemaCode} === false`);
11526
11526
  cxt.ok(valid);
11527
11527
  function validateUniqueItems() {
11528
- const i2 = gen.let("i", (0, codegen_1._)`${data}.length`);
11528
+ const i = gen.let("i", (0, codegen_1._)`${data}.length`);
11529
11529
  const j = gen.let("j");
11530
- cxt.setParams({ i: i2, j });
11530
+ cxt.setParams({ i, j });
11531
11531
  gen.assign(valid, true);
11532
- gen.if((0, codegen_1._)`${i2} > 1`, () => (canOptimize() ? loopN : loopN2)(i2, j));
11532
+ gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j));
11533
11533
  }
11534
11534
  function canOptimize() {
11535
- return itemTypes.length > 0 && !itemTypes.some((t2) => t2 === "object" || t2 === "array");
11535
+ return itemTypes.length > 0 && !itemTypes.some((t) => t === "object" || t === "array");
11536
11536
  }
11537
- function loopN(i2, j) {
11537
+ function loopN(i, j) {
11538
11538
  const item = gen.name("item");
11539
11539
  const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it.opts.strictNumbers, dataType_1.DataType.Wrong);
11540
11540
  const indices = gen.const("indices", (0, codegen_1._)`{}`);
11541
- gen.for((0, codegen_1._)`;${i2}--;`, () => {
11542
- gen.let(item, (0, codegen_1._)`${data}[${i2}]`);
11541
+ gen.for((0, codegen_1._)`;${i}--;`, () => {
11542
+ gen.let(item, (0, codegen_1._)`${data}[${i}]`);
11543
11543
  gen.if(wrongType, (0, codegen_1._)`continue`);
11544
11544
  if (itemTypes.length > 1)
11545
11545
  gen.if((0, codegen_1._)`typeof ${item} == "string"`, (0, codegen_1._)`${item} += "_"`);
@@ -11547,13 +11547,13 @@ var require_uniqueItems = __commonJS({
11547
11547
  gen.assign(j, (0, codegen_1._)`${indices}[${item}]`);
11548
11548
  cxt.error();
11549
11549
  gen.assign(valid, false).break();
11550
- }).code((0, codegen_1._)`${indices}[${item}] = ${i2}`);
11550
+ }).code((0, codegen_1._)`${indices}[${item}] = ${i}`);
11551
11551
  });
11552
11552
  }
11553
- function loopN2(i2, j) {
11553
+ function loopN2(i, j) {
11554
11554
  const eql = (0, util_1.useFunc)(gen, equal_1.default);
11555
11555
  const outer = gen.name("outer");
11556
- gen.label(outer).for((0, codegen_1._)`;${i2}--;`, () => gen.for((0, codegen_1._)`${j} = ${i2}; ${j}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i2}], ${data}[${j}])`, () => {
11556
+ gen.label(outer).for((0, codegen_1._)`;${i}--;`, () => gen.for((0, codegen_1._)`${j} = ${i}; ${j}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i}], ${data}[${j}])`, () => {
11557
11557
  cxt.error();
11558
11558
  gen.assign(valid, false).break(outer);
11559
11559
  })));
@@ -11623,16 +11623,16 @@ var require_enum = __commonJS({
11623
11623
  if (!Array.isArray(schema))
11624
11624
  throw new Error("ajv implementation error");
11625
11625
  const vSchema = gen.const("vSchema", schemaCode);
11626
- valid = (0, codegen_1.or)(...schema.map((_x, i2) => equalCode(vSchema, i2)));
11626
+ valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));
11627
11627
  }
11628
11628
  cxt.pass(valid);
11629
11629
  function loopEnum() {
11630
11630
  gen.assign(valid, false);
11631
11631
  gen.forOf("v", schemaCode, (v) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v})`, () => gen.assign(valid, true).break()));
11632
11632
  }
11633
- function equalCode(vSchema, i2) {
11634
- const sch = schema[i2];
11635
- return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i2}])` : (0, codegen_1._)`${data} === ${sch}`;
11633
+ function equalCode(vSchema, i) {
11634
+ const sch = schema[i];
11635
+ return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`;
11636
11636
  }
11637
11637
  }
11638
11638
  };
@@ -11717,8 +11717,8 @@ var require_additionalItems = __commonJS({
11717
11717
  cxt.ok(valid);
11718
11718
  }
11719
11719
  function validateItems(valid) {
11720
- gen.forRange("i", items.length, len, (i2) => {
11721
- cxt.subschema({ keyword, dataProp: i2, dataPropType: util_1.Type.Num }, valid);
11720
+ gen.forRange("i", items.length, len, (i) => {
11721
+ cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);
11722
11722
  if (!it.allErrors)
11723
11723
  gen.if((0, codegen_1.not)(valid), () => gen.break());
11724
11724
  });
@@ -11760,13 +11760,13 @@ var require_items = __commonJS({
11760
11760
  }
11761
11761
  const valid = gen.name("valid");
11762
11762
  const len = gen.const("len", (0, codegen_1._)`${data}.length`);
11763
- schArr.forEach((sch, i2) => {
11763
+ schArr.forEach((sch, i) => {
11764
11764
  if ((0, util_1.alwaysValidSchema)(it, sch))
11765
11765
  return;
11766
- gen.if((0, codegen_1._)`${len} > ${i2}`, () => cxt.subschema({
11766
+ gen.if((0, codegen_1._)`${len} > ${i}`, () => cxt.subschema({
11767
11767
  keyword,
11768
- schemaProp: i2,
11769
- dataProp: i2
11768
+ schemaProp: i,
11769
+ dataProp: i
11770
11770
  }, valid));
11771
11771
  cxt.ok(valid);
11772
11772
  });
@@ -11900,10 +11900,10 @@ var require_contains = __commonJS({
11900
11900
  validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
11901
11901
  }
11902
11902
  function validateItems(_valid, block) {
11903
- gen.forRange("i", 0, len, (i2) => {
11903
+ gen.forRange("i", 0, len, (i) => {
11904
11904
  cxt.subschema({
11905
11905
  keyword: "contains",
11906
- dataProp: i2,
11906
+ dataProp: i,
11907
11907
  dataPropType: util_1.Type.Num,
11908
11908
  compositeRule: true
11909
11909
  }, _valid);
@@ -12373,23 +12373,23 @@ var require_oneOf = __commonJS({
12373
12373
  gen.block(validateOneOf);
12374
12374
  cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
12375
12375
  function validateOneOf() {
12376
- schArr.forEach((sch, i2) => {
12376
+ schArr.forEach((sch, i) => {
12377
12377
  let schCxt;
12378
12378
  if ((0, util_1.alwaysValidSchema)(it, sch)) {
12379
12379
  gen.var(schValid, true);
12380
12380
  } else {
12381
12381
  schCxt = cxt.subschema({
12382
12382
  keyword: "oneOf",
12383
- schemaProp: i2,
12383
+ schemaProp: i,
12384
12384
  compositeRule: true
12385
12385
  }, schValid);
12386
12386
  }
12387
- if (i2 > 0) {
12388
- gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i2}]`).else();
12387
+ if (i > 0) {
12388
+ gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else();
12389
12389
  }
12390
12390
  gen.if(schValid, () => {
12391
12391
  gen.assign(valid, true);
12392
- gen.assign(passing, i2);
12392
+ gen.assign(passing, i);
12393
12393
  if (schCxt)
12394
12394
  cxt.mergeEvaluated(schCxt, codegen_1.Name);
12395
12395
  });
@@ -12414,10 +12414,10 @@ var require_allOf = __commonJS({
12414
12414
  if (!Array.isArray(schema))
12415
12415
  throw new Error("ajv implementation error");
12416
12416
  const valid = gen.name("valid");
12417
- schema.forEach((sch, i2) => {
12417
+ schema.forEach((sch, i) => {
12418
12418
  if ((0, util_1.alwaysValidSchema)(it, sch))
12419
12419
  return;
12420
- const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i2 }, valid);
12420
+ const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid);
12421
12421
  cxt.ok(valid);
12422
12422
  cxt.mergeEvaluated(schCxt);
12423
12423
  });
@@ -12771,8 +12771,8 @@ var require_discriminator = __commonJS({
12771
12771
  const oneOfMapping = {};
12772
12772
  const topRequired = hasRequired(parentSchema);
12773
12773
  let tagRequired = true;
12774
- for (let i2 = 0; i2 < oneOf.length; i2++) {
12775
- let sch = oneOf[i2];
12774
+ for (let i = 0; i < oneOf.length; i++) {
12775
+ let sch = oneOf[i];
12776
12776
  if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
12777
12777
  const ref = sch.$ref;
12778
12778
  sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
@@ -12786,7 +12786,7 @@ var require_discriminator = __commonJS({
12786
12786
  throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
12787
12787
  }
12788
12788
  tagRequired = tagRequired && (topRequired || hasRequired(sch));
12789
- addMappings(propSch, i2);
12789
+ addMappings(propSch, i);
12790
12790
  }
12791
12791
  if (!tagRequired)
12792
12792
  throw new Error(`discriminator: "${tagName}" must be required`);
@@ -12794,22 +12794,22 @@ var require_discriminator = __commonJS({
12794
12794
  function hasRequired({ required }) {
12795
12795
  return Array.isArray(required) && required.includes(tagName);
12796
12796
  }
12797
- function addMappings(sch, i2) {
12797
+ function addMappings(sch, i) {
12798
12798
  if (sch.const) {
12799
- addMapping(sch.const, i2);
12799
+ addMapping(sch.const, i);
12800
12800
  } else if (sch.enum) {
12801
12801
  for (const tagValue of sch.enum) {
12802
- addMapping(tagValue, i2);
12802
+ addMapping(tagValue, i);
12803
12803
  }
12804
12804
  } else {
12805
12805
  throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
12806
12806
  }
12807
12807
  }
12808
- function addMapping(tagValue, i2) {
12808
+ function addMapping(tagValue, i) {
12809
12809
  if (typeof tagValue != "string" || tagValue in oneOfMapping) {
12810
12810
  throw new Error(`discriminator: "${tagName}" values must be unique strings`);
12811
12811
  }
12812
- oneOfMapping[tagValue] = i2;
12812
+ oneOfMapping[tagValue] = i;
12813
12813
  }
12814
12814
  }
12815
12815
  }
@@ -13256,7 +13256,7 @@ var require_formats = __commonJS({
13256
13256
  try {
13257
13257
  new RegExp(str);
13258
13258
  return true;
13259
- } catch (e2) {
13259
+ } catch (e) {
13260
13260
  return false;
13261
13261
  }
13262
13262
  }
@@ -13905,9 +13905,9 @@ function semver_compare_default(a, b) {
13905
13905
  b = b.split("-");
13906
13906
  var pa = a[0].split(".");
13907
13907
  var pb = b[0].split(".");
13908
- for (var i2 = 0; i2 < 3; i2++) {
13909
- var na = Number(pa[i2]);
13910
- var nb = Number(pb[i2]);
13908
+ for (var i = 0; i < 3; i++) {
13909
+ var na = Number(pa[i]);
13910
+ var nb = Number(pb[i]);
13911
13911
  if (na > nb) return 1;
13912
13912
  if (nb > na) return -1;
13913
13913
  if (!isNaN(na) && isNaN(nb)) return 1;
@@ -13946,28 +13946,28 @@ function _typeof2(o) {
13946
13946
  function _classCallCheck2(a, n) {
13947
13947
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
13948
13948
  }
13949
- function _defineProperties2(e2, r) {
13950
- for (var t2 = 0; t2 < r.length; t2++) {
13951
- var o = r[t2];
13952
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e2, _toPropertyKey(o.key), o);
13949
+ function _defineProperties2(e, r) {
13950
+ for (var t = 0; t < r.length; t++) {
13951
+ var o = r[t];
13952
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
13953
13953
  }
13954
13954
  }
13955
- function _createClass2(e2, r, t2) {
13956
- return r && _defineProperties2(e2.prototype, r), Object.defineProperty(e2, "prototype", { writable: false }), e2;
13955
+ function _createClass2(e, r, t) {
13956
+ return r && _defineProperties2(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e;
13957
13957
  }
13958
- function _toPropertyKey(t2) {
13959
- var i2 = _toPrimitive(t2, "string");
13960
- return "symbol" == _typeof2(i2) ? i2 : i2 + "";
13958
+ function _toPropertyKey(t) {
13959
+ var i = _toPrimitive(t, "string");
13960
+ return "symbol" == _typeof2(i) ? i : i + "";
13961
13961
  }
13962
- function _toPrimitive(t2, r) {
13963
- if ("object" != _typeof2(t2) || !t2) return t2;
13964
- var e2 = t2[Symbol.toPrimitive];
13965
- if (void 0 !== e2) {
13966
- var i2 = e2.call(t2, r);
13967
- if ("object" != _typeof2(i2)) return i2;
13962
+ function _toPrimitive(t, r) {
13963
+ if ("object" != _typeof2(t) || !t) return t;
13964
+ var e = t[Symbol.toPrimitive];
13965
+ if (void 0 !== e) {
13966
+ var i = e.call(t, r);
13967
+ if ("object" != _typeof2(i)) return i;
13968
13968
  throw new TypeError("@@toPrimitive must return a primitive value.");
13969
13969
  }
13970
- return (String )(t2);
13970
+ return (String )(t);
13971
13971
  }
13972
13972
  function getType(types, type) {
13973
13973
  switch (type) {
@@ -14573,11 +14573,11 @@ var init_matchesEntirely = __esm({
14573
14573
  });
14574
14574
 
14575
14575
  // ../../node_modules/libphonenumber-js/es6/helpers/getNumberType.js
14576
- function _createForOfIteratorHelperLoose2(r, e2) {
14577
- var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14578
- if (t2) return (t2 = t2.call(r)).next.bind(t2);
14579
- if (Array.isArray(r) || (t2 = _unsupportedIterableToArray2(r)) || e2) {
14580
- t2 && (r = t2);
14576
+ function _createForOfIteratorHelperLoose2(r, e) {
14577
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
14578
+ if (t) return (t = t.call(r)).next.bind(t);
14579
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray2(r)) || e) {
14580
+ t && (r = t);
14581
14581
  var o = 0;
14582
14582
  return function() {
14583
14583
  return o >= r.length ? { done: true } : { done: false, value: r[o++] };
@@ -14588,13 +14588,13 @@ function _createForOfIteratorHelperLoose2(r, e2) {
14588
14588
  function _unsupportedIterableToArray2(r, a) {
14589
14589
  if (r) {
14590
14590
  if ("string" == typeof r) return _arrayLikeToArray2(r, a);
14591
- var t2 = {}.toString.call(r).slice(8, -1);
14592
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray2(r, a) : void 0;
14591
+ var t = {}.toString.call(r).slice(8, -1);
14592
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray2(r, a) : void 0;
14593
14593
  }
14594
14594
  }
14595
14595
  function _arrayLikeToArray2(r, a) {
14596
14596
  (null == a || a > r.length) && (a = r.length);
14597
- for (var e2 = 0, n = Array(a); e2 < a; e2++) n[e2] = r[e2];
14597
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
14598
14598
  return n;
14599
14599
  }
14600
14600
  function getNumberType(input, options, metadata) {
@@ -14901,18 +14901,18 @@ function extractCountryCallingCode(number, country, callingCode, metadata) {
14901
14901
  return {};
14902
14902
  }
14903
14903
  metadata = new Metadata(metadata);
14904
- var i2 = 2;
14905
- while (i2 - 1 <= MAX_LENGTH_COUNTRY_CODE && i2 <= number.length) {
14906
- var _countryCallingCode = number.slice(1, i2);
14904
+ var i = 2;
14905
+ while (i - 1 <= MAX_LENGTH_COUNTRY_CODE && i <= number.length) {
14906
+ var _countryCallingCode = number.slice(1, i);
14907
14907
  if (metadata.hasCallingCode(_countryCallingCode)) {
14908
14908
  metadata.selectNumberingPlan(_countryCallingCode);
14909
14909
  return {
14910
14910
  countryCallingCodeSource: isNumberWithIddPrefix ? "FROM_NUMBER_WITH_IDD" : "FROM_NUMBER_WITH_PLUS_SIGN",
14911
14911
  countryCallingCode: _countryCallingCode,
14912
- number: number.slice(i2)
14912
+ number: number.slice(i)
14913
14913
  };
14914
14914
  }
14915
- i2++;
14915
+ i++;
14916
14916
  }
14917
14917
  return {};
14918
14918
  }
@@ -15069,11 +15069,11 @@ function _typeof3(o) {
15069
15069
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15070
15070
  }, _typeof3(o);
15071
15071
  }
15072
- function _createForOfIteratorHelperLoose3(r, e2) {
15073
- var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15074
- if (t2) return (t2 = t2.call(r)).next.bind(t2);
15075
- if (Array.isArray(r) || (t2 = _unsupportedIterableToArray3(r)) || e2) {
15076
- t2 && (r = t2);
15072
+ function _createForOfIteratorHelperLoose3(r, e) {
15073
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15074
+ if (t) return (t = t.call(r)).next.bind(t);
15075
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray3(r)) || e) {
15076
+ t && (r = t);
15077
15077
  var o = 0;
15078
15078
  return function() {
15079
15079
  return o >= r.length ? { done: true } : { done: false, value: r[o++] };
@@ -15084,52 +15084,52 @@ function _createForOfIteratorHelperLoose3(r, e2) {
15084
15084
  function _unsupportedIterableToArray3(r, a) {
15085
15085
  if (r) {
15086
15086
  if ("string" == typeof r) return _arrayLikeToArray3(r, a);
15087
- var t2 = {}.toString.call(r).slice(8, -1);
15088
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray3(r, a) : void 0;
15087
+ var t = {}.toString.call(r).slice(8, -1);
15088
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray3(r, a) : void 0;
15089
15089
  }
15090
15090
  }
15091
15091
  function _arrayLikeToArray3(r, a) {
15092
15092
  (null == a || a > r.length) && (a = r.length);
15093
- for (var e2 = 0, n = Array(a); e2 < a; e2++) n[e2] = r[e2];
15093
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15094
15094
  return n;
15095
15095
  }
15096
- function ownKeys(e2, r) {
15097
- var t2 = Object.keys(e2);
15096
+ function ownKeys(e, r) {
15097
+ var t = Object.keys(e);
15098
15098
  if (Object.getOwnPropertySymbols) {
15099
- var o = Object.getOwnPropertySymbols(e2);
15099
+ var o = Object.getOwnPropertySymbols(e);
15100
15100
  r && (o = o.filter(function(r2) {
15101
- return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
15102
- })), t2.push.apply(t2, o);
15101
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
15102
+ })), t.push.apply(t, o);
15103
15103
  }
15104
- return t2;
15104
+ return t;
15105
15105
  }
15106
- function _objectSpread2(e2) {
15106
+ function _objectSpread2(e) {
15107
15107
  for (var r = 1; r < arguments.length; r++) {
15108
- var t2 = null != arguments[r] ? arguments[r] : {};
15109
- r % 2 ? ownKeys(Object(t2), true).forEach(function(r2) {
15110
- _defineProperty2(e2, r2, t2[r2]);
15111
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys(Object(t2)).forEach(function(r2) {
15112
- Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t2, r2));
15108
+ var t = null != arguments[r] ? arguments[r] : {};
15109
+ r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
15110
+ _defineProperty2(e, r2, t[r2]);
15111
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
15112
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
15113
15113
  });
15114
15114
  }
15115
- return e2;
15115
+ return e;
15116
15116
  }
15117
- function _defineProperty2(e2, r, t2) {
15118
- return (r = _toPropertyKey2(r)) in e2 ? Object.defineProperty(e2, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r] = t2, e2;
15117
+ function _defineProperty2(e, r, t) {
15118
+ return (r = _toPropertyKey2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
15119
15119
  }
15120
- function _toPropertyKey2(t2) {
15121
- var i2 = _toPrimitive2(t2, "string");
15122
- return "symbol" == _typeof3(i2) ? i2 : i2 + "";
15120
+ function _toPropertyKey2(t) {
15121
+ var i = _toPrimitive2(t, "string");
15122
+ return "symbol" == _typeof3(i) ? i : i + "";
15123
15123
  }
15124
- function _toPrimitive2(t2, r) {
15125
- if ("object" != _typeof3(t2) || !t2) return t2;
15126
- var e2 = t2[Symbol.toPrimitive];
15127
- if (void 0 !== e2) {
15128
- var i2 = e2.call(t2, r);
15129
- if ("object" != _typeof3(i2)) return i2;
15124
+ function _toPrimitive2(t, r) {
15125
+ if ("object" != _typeof3(t) || !t) return t;
15126
+ var e = t[Symbol.toPrimitive];
15127
+ if (void 0 !== e) {
15128
+ var i = e.call(t, r);
15129
+ if ("object" != _typeof3(i)) return i;
15130
15130
  throw new TypeError("@@toPrimitive must return a primitive value.");
15131
15131
  }
15132
- return ("string" === r ? String : Number)(t2);
15132
+ return ("string" === r ? String : Number)(t);
15133
15133
  }
15134
15134
  function formatNumber(input, format, options, metadata) {
15135
15135
  if (options) {
@@ -15249,55 +15249,55 @@ function _typeof4(o) {
15249
15249
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15250
15250
  }, _typeof4(o);
15251
15251
  }
15252
- function ownKeys2(e2, r) {
15253
- var t2 = Object.keys(e2);
15252
+ function ownKeys2(e, r) {
15253
+ var t = Object.keys(e);
15254
15254
  if (Object.getOwnPropertySymbols) {
15255
- var o = Object.getOwnPropertySymbols(e2);
15255
+ var o = Object.getOwnPropertySymbols(e);
15256
15256
  r && (o = o.filter(function(r2) {
15257
- return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
15258
- })), t2.push.apply(t2, o);
15257
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
15258
+ })), t.push.apply(t, o);
15259
15259
  }
15260
- return t2;
15260
+ return t;
15261
15261
  }
15262
- function _objectSpread3(e2) {
15262
+ function _objectSpread3(e) {
15263
15263
  for (var r = 1; r < arguments.length; r++) {
15264
- var t2 = null != arguments[r] ? arguments[r] : {};
15265
- r % 2 ? ownKeys2(Object(t2), true).forEach(function(r2) {
15266
- _defineProperty3(e2, r2, t2[r2]);
15267
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys2(Object(t2)).forEach(function(r2) {
15268
- Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t2, r2));
15264
+ var t = null != arguments[r] ? arguments[r] : {};
15265
+ r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
15266
+ _defineProperty3(e, r2, t[r2]);
15267
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
15268
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
15269
15269
  });
15270
15270
  }
15271
- return e2;
15271
+ return e;
15272
15272
  }
15273
- function _defineProperty3(e2, r, t2) {
15274
- return (r = _toPropertyKey3(r)) in e2 ? Object.defineProperty(e2, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r] = t2, e2;
15273
+ function _defineProperty3(e, r, t) {
15274
+ return (r = _toPropertyKey3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
15275
15275
  }
15276
15276
  function _classCallCheck3(a, n) {
15277
15277
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
15278
15278
  }
15279
- function _defineProperties3(e2, r) {
15280
- for (var t2 = 0; t2 < r.length; t2++) {
15281
- var o = r[t2];
15282
- o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e2, _toPropertyKey3(o.key), o);
15279
+ function _defineProperties3(e, r) {
15280
+ for (var t = 0; t < r.length; t++) {
15281
+ var o = r[t];
15282
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey3(o.key), o);
15283
15283
  }
15284
15284
  }
15285
- function _createClass3(e2, r, t2) {
15286
- return r && _defineProperties3(e2.prototype, r), Object.defineProperty(e2, "prototype", { writable: false }), e2;
15285
+ function _createClass3(e, r, t) {
15286
+ return r && _defineProperties3(e.prototype, r), Object.defineProperty(e, "prototype", { writable: false }), e;
15287
15287
  }
15288
- function _toPropertyKey3(t2) {
15289
- var i2 = _toPrimitive3(t2, "string");
15290
- return "symbol" == _typeof4(i2) ? i2 : i2 + "";
15288
+ function _toPropertyKey3(t) {
15289
+ var i = _toPrimitive3(t, "string");
15290
+ return "symbol" == _typeof4(i) ? i : i + "";
15291
15291
  }
15292
- function _toPrimitive3(t2, r) {
15293
- if ("object" != _typeof4(t2) || !t2) return t2;
15294
- var e2 = t2[Symbol.toPrimitive];
15295
- if (void 0 !== e2) {
15296
- var i2 = e2.call(t2, r);
15297
- if ("object" != _typeof4(i2)) return i2;
15292
+ function _toPrimitive3(t, r) {
15293
+ if ("object" != _typeof4(t) || !t) return t;
15294
+ var e = t[Symbol.toPrimitive];
15295
+ if (void 0 !== e) {
15296
+ var i = e.call(t, r);
15297
+ if ("object" != _typeof4(i)) return i;
15298
15298
  throw new TypeError("@@toPrimitive must return a primitive value.");
15299
15299
  }
15300
- return (String )(t2);
15300
+ return (String )(t);
15301
15301
  }
15302
15302
  function getCountryAndCountryCallingCode(countryOrCountryCallingCode, metadataJson) {
15303
15303
  var country;
@@ -15474,76 +15474,76 @@ function _typeof5(o) {
15474
15474
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
15475
15475
  }, _typeof5(o);
15476
15476
  }
15477
- function _createClass4(e2, r, t2) {
15478
- return Object.defineProperty(e2, "prototype", { writable: false }), e2;
15477
+ function _createClass4(e, r, t) {
15478
+ return Object.defineProperty(e, "prototype", { writable: false }), e;
15479
15479
  }
15480
15480
  function _classCallCheck4(a, n) {
15481
15481
  if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
15482
15482
  }
15483
- function _callSuper(t2, o, e2) {
15484
- return o = _getPrototypeOf2(o), _possibleConstructorReturn2(t2, _isNativeReflectConstruct() ? Reflect.construct(o, e2 || [], _getPrototypeOf2(t2).constructor) : o.apply(t2, e2));
15483
+ function _callSuper(t, o, e) {
15484
+ return o = _getPrototypeOf2(o), _possibleConstructorReturn2(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf2(t).constructor) : o.apply(t, e));
15485
15485
  }
15486
- function _possibleConstructorReturn2(t2, e2) {
15487
- if (e2 && ("object" == _typeof5(e2) || "function" == typeof e2)) return e2;
15488
- if (void 0 !== e2) throw new TypeError("Derived constructors may only return object or undefined");
15489
- return _assertThisInitialized2(t2);
15486
+ function _possibleConstructorReturn2(t, e) {
15487
+ if (e && ("object" == _typeof5(e) || "function" == typeof e)) return e;
15488
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
15489
+ return _assertThisInitialized2(t);
15490
15490
  }
15491
- function _assertThisInitialized2(e2) {
15492
- if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15493
- return e2;
15491
+ function _assertThisInitialized2(e) {
15492
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
15493
+ return e;
15494
15494
  }
15495
- function _inherits2(t2, e2) {
15496
- if ("function" != typeof e2 && null !== e2) throw new TypeError("Super expression must either be null or a function");
15497
- t2.prototype = Object.create(e2 && e2.prototype, { constructor: { value: t2, writable: true, configurable: true } }), Object.defineProperty(t2, "prototype", { writable: false }), e2 && _setPrototypeOf2(t2, e2);
15495
+ function _inherits2(t, e) {
15496
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
15497
+ t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: true, configurable: true } }), Object.defineProperty(t, "prototype", { writable: false }), e && _setPrototypeOf2(t, e);
15498
15498
  }
15499
- function _wrapNativeSuper(t2) {
15499
+ function _wrapNativeSuper(t) {
15500
15500
  var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
15501
- return _wrapNativeSuper = function _wrapNativeSuper2(t3) {
15502
- if (null === t3 || !_isNativeFunction(t3)) return t3;
15503
- if ("function" != typeof t3) throw new TypeError("Super expression must either be null or a function");
15501
+ return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
15502
+ if (null === t2 || !_isNativeFunction(t2)) return t2;
15503
+ if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
15504
15504
  if (void 0 !== r) {
15505
- if (r.has(t3)) return r.get(t3);
15506
- r.set(t3, Wrapper);
15505
+ if (r.has(t2)) return r.get(t2);
15506
+ r.set(t2, Wrapper);
15507
15507
  }
15508
15508
  function Wrapper() {
15509
- return _construct(t3, arguments, _getPrototypeOf2(this).constructor);
15509
+ return _construct(t2, arguments, _getPrototypeOf2(this).constructor);
15510
15510
  }
15511
- return Wrapper.prototype = Object.create(t3.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }), _setPrototypeOf2(Wrapper, t3);
15512
- }, _wrapNativeSuper(t2);
15511
+ return Wrapper.prototype = Object.create(t2.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }), _setPrototypeOf2(Wrapper, t2);
15512
+ }, _wrapNativeSuper(t);
15513
15513
  }
15514
- function _construct(t2, e2, r) {
15514
+ function _construct(t, e, r) {
15515
15515
  if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
15516
15516
  var o = [null];
15517
- o.push.apply(o, e2);
15518
- var p = new (t2.bind.apply(t2, o))();
15517
+ o.push.apply(o, e);
15518
+ var p = new (t.bind.apply(t, o))();
15519
15519
  return r && _setPrototypeOf2(p, r.prototype), p;
15520
15520
  }
15521
15521
  function _isNativeReflectConstruct() {
15522
15522
  try {
15523
- var t2 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15523
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
15524
15524
  }));
15525
- } catch (t3) {
15525
+ } catch (t2) {
15526
15526
  }
15527
15527
  return (_isNativeReflectConstruct = function _isNativeReflectConstruct2() {
15528
- return !!t2;
15528
+ return !!t;
15529
15529
  })();
15530
15530
  }
15531
- function _isNativeFunction(t2) {
15531
+ function _isNativeFunction(t) {
15532
15532
  try {
15533
- return -1 !== Function.toString.call(t2).indexOf("[native code]");
15533
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
15534
15534
  } catch (n) {
15535
- return "function" == typeof t2;
15535
+ return "function" == typeof t;
15536
15536
  }
15537
15537
  }
15538
- function _setPrototypeOf2(t2, e2) {
15539
- return _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t3, e3) {
15540
- return t3.__proto__ = e3, t3;
15541
- }, _setPrototypeOf2(t2, e2);
15538
+ function _setPrototypeOf2(t, e) {
15539
+ return _setPrototypeOf2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
15540
+ return t2.__proto__ = e2, t2;
15541
+ }, _setPrototypeOf2(t, e);
15542
15542
  }
15543
- function _getPrototypeOf2(t2) {
15544
- return _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t3) {
15545
- return t3.__proto__ || Object.getPrototypeOf(t3);
15546
- }, _getPrototypeOf2(t2);
15543
+ function _getPrototypeOf2(t) {
15544
+ return _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
15545
+ return t2.__proto__ || Object.getPrototypeOf(t2);
15546
+ }, _getPrototypeOf2(t);
15547
15547
  }
15548
15548
  var ParseError;
15549
15549
  var init_ParseError = __esm({
@@ -15571,15 +15571,15 @@ function extractExtension(number) {
15571
15571
  }
15572
15572
  var numberWithoutExtension = number.slice(0, start);
15573
15573
  var matches = number.match(EXTN_PATTERN);
15574
- var i2 = 1;
15575
- while (i2 < matches.length) {
15576
- if (matches[i2]) {
15574
+ var i = 1;
15575
+ while (i < matches.length) {
15576
+ if (matches[i]) {
15577
15577
  return {
15578
15578
  number: numberWithoutExtension,
15579
- ext: matches[i2]
15579
+ ext: matches[i]
15580
15580
  };
15581
15581
  }
15582
- i2++;
15582
+ i++;
15583
15583
  }
15584
15584
  }
15585
15585
  var EXTN_PATTERN;
@@ -15673,11 +15673,11 @@ var init_parseDigits = __esm({
15673
15673
  });
15674
15674
 
15675
15675
  // ../../node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js
15676
- function _createForOfIteratorHelperLoose4(r, e2) {
15677
- var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15678
- if (t2) return (t2 = t2.call(r)).next.bind(t2);
15679
- if (Array.isArray(r) || (t2 = _unsupportedIterableToArray4(r)) || e2) {
15680
- t2 && (r = t2);
15676
+ function _createForOfIteratorHelperLoose4(r, e) {
15677
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15678
+ if (t) return (t = t.call(r)).next.bind(t);
15679
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray4(r)) || e) {
15680
+ t && (r = t);
15681
15681
  var o = 0;
15682
15682
  return function() {
15683
15683
  return o >= r.length ? { done: true } : { done: false, value: r[o++] };
@@ -15688,13 +15688,13 @@ function _createForOfIteratorHelperLoose4(r, e2) {
15688
15688
  function _unsupportedIterableToArray4(r, a) {
15689
15689
  if (r) {
15690
15690
  if ("string" == typeof r) return _arrayLikeToArray4(r, a);
15691
- var t2 = {}.toString.call(r).slice(8, -1);
15692
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray4(r, a) : void 0;
15691
+ var t = {}.toString.call(r).slice(8, -1);
15692
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray4(r, a) : void 0;
15693
15693
  }
15694
15694
  }
15695
15695
  function _arrayLikeToArray4(r, a) {
15696
15696
  (null == a || a > r.length) && (a = r.length);
15697
- for (var e2 = 0, n = Array(a); e2 < a; e2++) n[e2] = r[e2];
15697
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15698
15698
  return n;
15699
15699
  }
15700
15700
  function parseIncompletePhoneNumber(string) {
@@ -15721,11 +15721,11 @@ var init_parseIncompletePhoneNumber = __esm({
15721
15721
  });
15722
15722
 
15723
15723
  // ../../node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js
15724
- function _createForOfIteratorHelperLoose5(r, e2) {
15725
- var t2 = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15726
- if (t2) return (t2 = t2.call(r)).next.bind(t2);
15727
- if (Array.isArray(r) || (t2 = _unsupportedIterableToArray5(r)) || e2) {
15728
- t2 && (r = t2);
15724
+ function _createForOfIteratorHelperLoose5(r, e) {
15725
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
15726
+ if (t) return (t = t.call(r)).next.bind(t);
15727
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray5(r)) || e) {
15728
+ t && (r = t);
15729
15729
  var o = 0;
15730
15730
  return function() {
15731
15731
  return o >= r.length ? { done: true } : { done: false, value: r[o++] };
@@ -15736,13 +15736,13 @@ function _createForOfIteratorHelperLoose5(r, e2) {
15736
15736
  function _unsupportedIterableToArray5(r, a) {
15737
15737
  if (r) {
15738
15738
  if ("string" == typeof r) return _arrayLikeToArray5(r, a);
15739
- var t2 = {}.toString.call(r).slice(8, -1);
15740
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray5(r, a) : void 0;
15739
+ var t = {}.toString.call(r).slice(8, -1);
15740
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray5(r, a) : void 0;
15741
15741
  }
15742
15742
  }
15743
15743
  function _arrayLikeToArray5(r, a) {
15744
15744
  (null == a || a > r.length) && (a = r.length);
15745
- for (var e2 = 0, n = Array(a); e2 < a; e2++) n[e2] = r[e2];
15745
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
15746
15746
  return n;
15747
15747
  }
15748
15748
  function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
@@ -16082,43 +16082,43 @@ function _typeof6(o) {
16082
16082
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
16083
16083
  }, _typeof6(o);
16084
16084
  }
16085
- function ownKeys3(e2, r) {
16086
- var t2 = Object.keys(e2);
16085
+ function ownKeys3(e, r) {
16086
+ var t = Object.keys(e);
16087
16087
  if (Object.getOwnPropertySymbols) {
16088
- var o = Object.getOwnPropertySymbols(e2);
16088
+ var o = Object.getOwnPropertySymbols(e);
16089
16089
  r && (o = o.filter(function(r2) {
16090
- return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
16091
- })), t2.push.apply(t2, o);
16090
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
16091
+ })), t.push.apply(t, o);
16092
16092
  }
16093
- return t2;
16093
+ return t;
16094
16094
  }
16095
- function _objectSpread4(e2) {
16095
+ function _objectSpread4(e) {
16096
16096
  for (var r = 1; r < arguments.length; r++) {
16097
- var t2 = null != arguments[r] ? arguments[r] : {};
16098
- r % 2 ? ownKeys3(Object(t2), true).forEach(function(r2) {
16099
- _defineProperty4(e2, r2, t2[r2]);
16100
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys3(Object(t2)).forEach(function(r2) {
16101
- Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t2, r2));
16097
+ var t = null != arguments[r] ? arguments[r] : {};
16098
+ r % 2 ? ownKeys3(Object(t), true).forEach(function(r2) {
16099
+ _defineProperty4(e, r2, t[r2]);
16100
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys3(Object(t)).forEach(function(r2) {
16101
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
16102
16102
  });
16103
16103
  }
16104
- return e2;
16104
+ return e;
16105
16105
  }
16106
- function _defineProperty4(e2, r, t2) {
16107
- return (r = _toPropertyKey5(r)) in e2 ? Object.defineProperty(e2, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r] = t2, e2;
16106
+ function _defineProperty4(e, r, t) {
16107
+ return (r = _toPropertyKey5(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
16108
16108
  }
16109
- function _toPropertyKey5(t2) {
16110
- var i2 = _toPrimitive5(t2, "string");
16111
- return "symbol" == _typeof6(i2) ? i2 : i2 + "";
16109
+ function _toPropertyKey5(t) {
16110
+ var i = _toPrimitive5(t, "string");
16111
+ return "symbol" == _typeof6(i) ? i : i + "";
16112
16112
  }
16113
- function _toPrimitive5(t2, r) {
16114
- if ("object" != _typeof6(t2) || !t2) return t2;
16115
- var e2 = t2[Symbol.toPrimitive];
16116
- if (void 0 !== e2) {
16117
- var i2 = e2.call(t2, r);
16118
- if ("object" != _typeof6(i2)) return i2;
16113
+ function _toPrimitive5(t, r) {
16114
+ if ("object" != _typeof6(t) || !t) return t;
16115
+ var e = t[Symbol.toPrimitive];
16116
+ if (void 0 !== e) {
16117
+ var i = e.call(t, r);
16118
+ if ("object" != _typeof6(i)) return i;
16119
16119
  throw new TypeError("@@toPrimitive must return a primitive value.");
16120
16120
  }
16121
- return ("string" === r ? String : Number)(t2);
16121
+ return ("string" === r ? String : Number)(t);
16122
16122
  }
16123
16123
  function parsePhoneNumberWithError(text, options, metadata) {
16124
16124
  return parse2(text, _objectSpread4(_objectSpread4({}, options), {}, {
@@ -16140,46 +16140,46 @@ function _typeof7(o) {
16140
16140
  return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
16141
16141
  }, _typeof7(o);
16142
16142
  }
16143
- function ownKeys4(e2, r) {
16144
- var t2 = Object.keys(e2);
16143
+ function ownKeys4(e, r) {
16144
+ var t = Object.keys(e);
16145
16145
  if (Object.getOwnPropertySymbols) {
16146
- var o = Object.getOwnPropertySymbols(e2);
16146
+ var o = Object.getOwnPropertySymbols(e);
16147
16147
  r && (o = o.filter(function(r2) {
16148
- return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
16149
- })), t2.push.apply(t2, o);
16148
+ return Object.getOwnPropertyDescriptor(e, r2).enumerable;
16149
+ })), t.push.apply(t, o);
16150
16150
  }
16151
- return t2;
16151
+ return t;
16152
16152
  }
16153
- function _objectSpread5(e2) {
16153
+ function _objectSpread5(e) {
16154
16154
  for (var r = 1; r < arguments.length; r++) {
16155
- var t2 = null != arguments[r] ? arguments[r] : {};
16156
- r % 2 ? ownKeys4(Object(t2), true).forEach(function(r2) {
16157
- _defineProperty5(e2, r2, t2[r2]);
16158
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t2)) : ownKeys4(Object(t2)).forEach(function(r2) {
16159
- Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t2, r2));
16155
+ var t = null != arguments[r] ? arguments[r] : {};
16156
+ r % 2 ? ownKeys4(Object(t), true).forEach(function(r2) {
16157
+ _defineProperty5(e, r2, t[r2]);
16158
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys4(Object(t)).forEach(function(r2) {
16159
+ Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
16160
16160
  });
16161
16161
  }
16162
- return e2;
16162
+ return e;
16163
16163
  }
16164
- function _defineProperty5(e2, r, t2) {
16165
- return (r = _toPropertyKey6(r)) in e2 ? Object.defineProperty(e2, r, { value: t2, enumerable: true, configurable: true, writable: true }) : e2[r] = t2, e2;
16164
+ function _defineProperty5(e, r, t) {
16165
+ return (r = _toPropertyKey6(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: true, configurable: true, writable: true }) : e[r] = t, e;
16166
16166
  }
16167
- function _toPropertyKey6(t2) {
16168
- var i2 = _toPrimitive6(t2, "string");
16169
- return "symbol" == _typeof7(i2) ? i2 : i2 + "";
16167
+ function _toPropertyKey6(t) {
16168
+ var i = _toPrimitive6(t, "string");
16169
+ return "symbol" == _typeof7(i) ? i : i + "";
16170
16170
  }
16171
- function _toPrimitive6(t2, r) {
16172
- if ("object" != _typeof7(t2) || !t2) return t2;
16173
- var e2 = t2[Symbol.toPrimitive];
16174
- if (void 0 !== e2) {
16175
- var i2 = e2.call(t2, r);
16176
- if ("object" != _typeof7(i2)) return i2;
16171
+ function _toPrimitive6(t, r) {
16172
+ if ("object" != _typeof7(t) || !t) return t;
16173
+ var e = t[Symbol.toPrimitive];
16174
+ if (void 0 !== e) {
16175
+ var i = e.call(t, r);
16176
+ if ("object" != _typeof7(i)) return i;
16177
16177
  throw new TypeError("@@toPrimitive must return a primitive value.");
16178
16178
  }
16179
- return ("string" === r ? String : Number)(t2);
16179
+ return ("string" === r ? String : Number)(t);
16180
16180
  }
16181
- function _slicedToArray(r, e2) {
16182
- return _arrayWithHoles(r) || _iterableToArrayLimit(r, e2) || _unsupportedIterableToArray6(r, e2) || _nonIterableRest();
16181
+ function _slicedToArray(r, e) {
16182
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray6(r, e) || _nonIterableRest();
16183
16183
  }
16184
16184
  function _nonIterableRest() {
16185
16185
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
@@ -16187,26 +16187,26 @@ function _nonIterableRest() {
16187
16187
  function _unsupportedIterableToArray6(r, a) {
16188
16188
  if (r) {
16189
16189
  if ("string" == typeof r) return _arrayLikeToArray6(r, a);
16190
- var t2 = {}.toString.call(r).slice(8, -1);
16191
- return "Object" === t2 && r.constructor && (t2 = r.constructor.name), "Map" === t2 || "Set" === t2 ? Array.from(r) : "Arguments" === t2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t2) ? _arrayLikeToArray6(r, a) : void 0;
16190
+ var t = {}.toString.call(r).slice(8, -1);
16191
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray6(r, a) : void 0;
16192
16192
  }
16193
16193
  }
16194
16194
  function _arrayLikeToArray6(r, a) {
16195
16195
  (null == a || a > r.length) && (a = r.length);
16196
- for (var e2 = 0, n = Array(a); e2 < a; e2++) n[e2] = r[e2];
16196
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
16197
16197
  return n;
16198
16198
  }
16199
16199
  function _iterableToArrayLimit(r, l) {
16200
- var t2 = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
16201
- if (null != t2) {
16202
- var e2, n, i2, u, a = [], f = true, o = false;
16200
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
16201
+ if (null != t) {
16202
+ var e, n, i, u, a = [], f = true, o = false;
16203
16203
  try {
16204
- if (i2 = (t2 = t2.call(r)).next, 0 === l) ; else for (; !(f = (e2 = i2.call(t2)).done) && (a.push(e2.value), a.length !== l); f = true) ;
16204
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
16205
16205
  } catch (r2) {
16206
16206
  o = true, n = r2;
16207
16207
  } finally {
16208
16208
  try {
16209
- if (!f && null != t2["return"] && (u = t2["return"](), Object(u) !== u)) return;
16209
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
16210
16210
  } finally {
16211
16211
  if (o) throw n;
16212
16212
  }
@@ -16344,9 +16344,9 @@ function validatePhoneNumber(data, lenientPhoneValidation) {
16344
16344
  } else {
16345
16345
  return void 0;
16346
16346
  }
16347
- } catch (e2) {
16348
- if (e2 instanceof ParseError) {
16349
- return phoneValidationErrorMessages(e2, data);
16347
+ } catch (e) {
16348
+ if (e instanceof ParseError) {
16349
+ return phoneValidationErrorMessages(e, data);
16350
16350
  } else {
16351
16351
  return {
16352
16352
  keyword: "format",
@@ -16376,8 +16376,8 @@ function compileAllowedCountryCodesValidation(schema) {
16376
16376
  };
16377
16377
  return validate2;
16378
16378
  }
16379
- function phoneValidationErrorMessages(e2, data) {
16380
- switch (e2.message) {
16379
+ function phoneValidationErrorMessages(e, data) {
16380
+ switch (e.message) {
16381
16381
  case "INVALID_COUNTRY":
16382
16382
  return {
16383
16383
  keyword: "countryCode",
@@ -16494,8 +16494,8 @@ var require_dist2 = __commonJS({
16494
16494
  }
16495
16495
  if (items) {
16496
16496
  errors.items = {};
16497
- for (let i2 = 0; i2 < items.length; i2++)
16498
- errors.items[i2] = [];
16497
+ for (let i = 0; i < items.length; i++)
16498
+ errors.items[i] = [];
16499
16499
  }
16500
16500
  return errors;
16501
16501
  }
@@ -16751,11 +16751,11 @@ var require_uniqueItemProperties = __commonJS({
16751
16751
  hash[p] = true;
16752
16752
  }
16753
16753
  } else {
16754
- for (let i2 = data.length; i2--; ) {
16755
- const x = data[i2];
16754
+ for (let i = data.length; i--; ) {
16755
+ const x = data[i];
16756
16756
  if (!x || typeof x != "object")
16757
16757
  continue;
16758
- for (let j = i2; j--; ) {
16758
+ for (let j = i; j--; ) {
16759
16759
  const y = data[j];
16760
16760
  if (y && typeof y == "object" && equal(x[key], y[key]))
16761
16761
  return false;
@@ -16776,8 +16776,8 @@ var require_uniqueItemProperties = __commonJS({
16776
16776
  function getScalarKeys(keys2, schema) {
16777
16777
  return keys2.map((key) => {
16778
16778
  var _a, _b, _c;
16779
- const t2 = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type;
16780
- return Array.isArray(t2) ? !t2.includes("object") && !t2.includes("array") : SCALAR_TYPES.includes(t2);
16779
+ const t = (_c = (_b = (_a = schema.items) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[key]) === null || _c === void 0 ? void 0 : _c.type;
16780
+ return Array.isArray(t) ? !t.includes("object") && !t.includes("array") : SCALAR_TYPES.includes(t);
16781
16781
  });
16782
16782
  }
16783
16783
  module.exports = getDef;
@@ -16902,99 +16902,99 @@ var init_form_schema_mapper = __esm({
16902
16902
  // ../../node_modules/dayjs/dayjs.min.js
16903
16903
  var require_dayjs_min = __commonJS({
16904
16904
  "../../node_modules/dayjs/dayjs.min.js"(exports, module) {
16905
- !(function(t2, e2) {
16906
- "object" == typeof exports && "undefined" != typeof module ? module.exports = e2() : "function" == typeof define && define.amd ? define(e2) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs = e2();
16905
+ !(function(t, e) {
16906
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
16907
16907
  })(exports, (function() {
16908
- var t2 = 1e3, e2 = 6e4, n = 36e5, r = "millisecond", i2 = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
16909
- var e3 = ["th", "st", "nd", "rd"], n2 = t3 % 100;
16910
- return "[" + t3 + (e3[(n2 - 20) % 10] || e3[n2] || e3[0]) + "]";
16911
- } }, m = function(t3, e3, n2) {
16912
- var r2 = String(t3);
16913
- return !r2 || r2.length >= e3 ? t3 : "" + Array(e3 + 1 - r2.length).join(n2) + t3;
16914
- }, v = { s: m, z: function(t3) {
16915
- var e3 = -t3.utcOffset(), n2 = Math.abs(e3), r2 = Math.floor(n2 / 60), i3 = n2 % 60;
16916
- return (e3 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i3, 2, "0");
16917
- }, m: function t3(e3, n2) {
16918
- if (e3.date() < n2.date()) return -t3(n2, e3);
16919
- var r2 = 12 * (n2.year() - e3.year()) + (n2.month() - e3.month()), i3 = e3.clone().add(r2, c), s2 = n2 - i3 < 0, u2 = e3.clone().add(r2 + (s2 ? -1 : 1), c);
16920
- return +(-(r2 + (n2 - i3) / (s2 ? i3 - u2 : u2 - i3)) || 0);
16921
- }, a: function(t3) {
16922
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
16923
- }, p: function(t3) {
16924
- return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i2, ms: r, Q: f }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
16925
- }, u: function(t3) {
16926
- return void 0 === t3;
16908
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
16909
+ var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
16910
+ return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
16911
+ } }, m = function(t2, e2, n2) {
16912
+ var r2 = String(t2);
16913
+ return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
16914
+ }, v = { s: m, z: function(t2) {
16915
+ var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
16916
+ return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
16917
+ }, m: function t2(e2, n2) {
16918
+ if (e2.date() < n2.date()) return -t2(n2, e2);
16919
+ var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
16920
+ return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
16921
+ }, a: function(t2) {
16922
+ return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
16923
+ }, p: function(t2) {
16924
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
16925
+ }, u: function(t2) {
16926
+ return void 0 === t2;
16927
16927
  } }, g = "en", D = {};
16928
16928
  D[g] = M;
16929
- var p = "$isDayjsObject", S = function(t3) {
16930
- return t3 instanceof _23 || !(!t3 || !t3[p]);
16931
- }, w = function t3(e3, n2, r2) {
16932
- var i3;
16933
- if (!e3) return g;
16934
- if ("string" == typeof e3) {
16935
- var s2 = e3.toLowerCase();
16936
- D[s2] && (i3 = s2), n2 && (D[s2] = n2, i3 = s2);
16937
- var u2 = e3.split("-");
16938
- if (!i3 && u2.length > 1) return t3(u2[0]);
16929
+ var p = "$isDayjsObject", S = function(t2) {
16930
+ return t2 instanceof _23 || !(!t2 || !t2[p]);
16931
+ }, w = function t2(e2, n2, r2) {
16932
+ var i2;
16933
+ if (!e2) return g;
16934
+ if ("string" == typeof e2) {
16935
+ var s2 = e2.toLowerCase();
16936
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
16937
+ var u2 = e2.split("-");
16938
+ if (!i2 && u2.length > 1) return t2(u2[0]);
16939
16939
  } else {
16940
- var a2 = e3.name;
16941
- D[a2] = e3, i3 = a2;
16942
- }
16943
- return !r2 && i3 && (g = i3), i3 || !r2 && g;
16944
- }, O = function(t3, e3) {
16945
- if (S(t3)) return t3.clone();
16946
- var n2 = "object" == typeof e3 ? e3 : {};
16947
- return n2.date = t3, n2.args = arguments, new _23(n2);
16940
+ var a2 = e2.name;
16941
+ D[a2] = e2, i2 = a2;
16942
+ }
16943
+ return !r2 && i2 && (g = i2), i2 || !r2 && g;
16944
+ }, O = function(t2, e2) {
16945
+ if (S(t2)) return t2.clone();
16946
+ var n2 = "object" == typeof e2 ? e2 : {};
16947
+ return n2.date = t2, n2.args = arguments, new _23(n2);
16948
16948
  }, b = v;
16949
- b.l = w, b.i = S, b.w = function(t3, e3) {
16950
- return O(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
16949
+ b.l = w, b.i = S, b.w = function(t2, e2) {
16950
+ return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
16951
16951
  };
16952
16952
  var _23 = (function() {
16953
- function M2(t3) {
16954
- this.$L = w(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p] = true;
16953
+ function M2(t2) {
16954
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
16955
16955
  }
16956
16956
  var m2 = M2.prototype;
16957
- return m2.parse = function(t3) {
16958
- this.$d = (function(t4) {
16959
- var e3 = t4.date, n2 = t4.utc;
16960
- if (null === e3) return /* @__PURE__ */ new Date(NaN);
16961
- if (b.u(e3)) return /* @__PURE__ */ new Date();
16962
- if (e3 instanceof Date) return new Date(e3);
16963
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
16964
- var r2 = e3.match($);
16957
+ return m2.parse = function(t2) {
16958
+ this.$d = (function(t3) {
16959
+ var e2 = t3.date, n2 = t3.utc;
16960
+ if (null === e2) return /* @__PURE__ */ new Date(NaN);
16961
+ if (b.u(e2)) return /* @__PURE__ */ new Date();
16962
+ if (e2 instanceof Date) return new Date(e2);
16963
+ if ("string" == typeof e2 && !/Z$/i.test(e2)) {
16964
+ var r2 = e2.match($);
16965
16965
  if (r2) {
16966
- var i3 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
16967
- return n2 ? new Date(Date.UTC(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i3, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
16966
+ var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
16967
+ return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
16968
16968
  }
16969
16969
  }
16970
- return new Date(e3);
16971
- })(t3), this.init();
16970
+ return new Date(e2);
16971
+ })(t2), this.init();
16972
16972
  }, m2.init = function() {
16973
- var t3 = this.$d;
16974
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
16973
+ var t2 = this.$d;
16974
+ this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
16975
16975
  }, m2.$utils = function() {
16976
16976
  return b;
16977
16977
  }, m2.isValid = function() {
16978
16978
  return !(this.$d.toString() === l);
16979
- }, m2.isSame = function(t3, e3) {
16980
- var n2 = O(t3);
16981
- return this.startOf(e3) <= n2 && n2 <= this.endOf(e3);
16982
- }, m2.isAfter = function(t3, e3) {
16983
- return O(t3) < this.startOf(e3);
16984
- }, m2.isBefore = function(t3, e3) {
16985
- return this.endOf(e3) < O(t3);
16986
- }, m2.$g = function(t3, e3, n2) {
16987
- return b.u(t3) ? this[e3] : this.set(n2, t3);
16979
+ }, m2.isSame = function(t2, e2) {
16980
+ var n2 = O(t2);
16981
+ return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
16982
+ }, m2.isAfter = function(t2, e2) {
16983
+ return O(t2) < this.startOf(e2);
16984
+ }, m2.isBefore = function(t2, e2) {
16985
+ return this.endOf(e2) < O(t2);
16986
+ }, m2.$g = function(t2, e2, n2) {
16987
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
16988
16988
  }, m2.unix = function() {
16989
16989
  return Math.floor(this.valueOf() / 1e3);
16990
16990
  }, m2.valueOf = function() {
16991
16991
  return this.$d.getTime();
16992
- }, m2.startOf = function(t3, e3) {
16993
- var n2 = this, r2 = !!b.u(e3) || e3, f2 = b.p(t3), l2 = function(t4, e4) {
16994
- var i3 = b.w(n2.$u ? Date.UTC(n2.$y, e4, t4) : new Date(n2.$y, e4, t4), n2);
16995
- return r2 ? i3 : i3.endOf(a);
16996
- }, $2 = function(t4, e4) {
16997
- return b.w(n2.toDate()[t4].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n2);
16992
+ }, m2.startOf = function(t2, e2) {
16993
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
16994
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
16995
+ return r2 ? i2 : i2.endOf(a);
16996
+ }, $2 = function(t3, e3) {
16997
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
16998
16998
  }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
16999
16999
  switch (f2) {
17000
17000
  case h:
@@ -17011,57 +17011,57 @@ var require_dayjs_min = __commonJS({
17011
17011
  return $2(v2 + "Minutes", 1);
17012
17012
  case s:
17013
17013
  return $2(v2 + "Seconds", 2);
17014
- case i2:
17014
+ case i:
17015
17015
  return $2(v2 + "Milliseconds", 3);
17016
17016
  default:
17017
17017
  return this.clone();
17018
17018
  }
17019
- }, m2.endOf = function(t3) {
17020
- return this.startOf(t3, false);
17021
- }, m2.$set = function(t3, e3) {
17022
- var n2, o2 = b.p(t3), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i2] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e3 - this.$W) : e3;
17019
+ }, m2.endOf = function(t2) {
17020
+ return this.startOf(t2, false);
17021
+ }, m2.$set = function(t2, e2) {
17022
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
17023
17023
  if (o2 === c || o2 === h) {
17024
17024
  var y2 = this.clone().set(d, 1);
17025
17025
  y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
17026
17026
  } else l2 && this.$d[l2]($2);
17027
17027
  return this.init(), this;
17028
- }, m2.set = function(t3, e3) {
17029
- return this.clone().$set(t3, e3);
17030
- }, m2.get = function(t3) {
17031
- return this[b.p(t3)]();
17028
+ }, m2.set = function(t2, e2) {
17029
+ return this.clone().$set(t2, e2);
17030
+ }, m2.get = function(t2) {
17031
+ return this[b.p(t2)]();
17032
17032
  }, m2.add = function(r2, f2) {
17033
17033
  var d2, l2 = this;
17034
17034
  r2 = Number(r2);
17035
- var $2 = b.p(f2), y2 = function(t3) {
17036
- var e3 = O(l2);
17037
- return b.w(e3.date(e3.date() + Math.round(t3 * r2)), l2);
17035
+ var $2 = b.p(f2), y2 = function(t2) {
17036
+ var e2 = O(l2);
17037
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
17038
17038
  };
17039
17039
  if ($2 === c) return this.set(c, this.$M + r2);
17040
17040
  if ($2 === h) return this.set(h, this.$y + r2);
17041
17041
  if ($2 === a) return y2(1);
17042
17042
  if ($2 === o) return y2(7);
17043
- var M3 = (d2 = {}, d2[s] = e2, d2[u] = n, d2[i2] = t2, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
17043
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
17044
17044
  return b.w(m3, this);
17045
- }, m2.subtract = function(t3, e3) {
17046
- return this.add(-1 * t3, e3);
17047
- }, m2.format = function(t3) {
17048
- var e3 = this, n2 = this.$locale();
17045
+ }, m2.subtract = function(t2, e2) {
17046
+ return this.add(-1 * t2, e2);
17047
+ }, m2.format = function(t2) {
17048
+ var e2 = this, n2 = this.$locale();
17049
17049
  if (!this.isValid()) return n2.invalidDate || l;
17050
- var r2 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t4, n3, i4, s3) {
17051
- return t4 && (t4[n3] || t4(e3, r2)) || i4[n3].slice(0, s3);
17052
- }, d2 = function(t4) {
17053
- return b.s(s2 % 12 || 12, t4, "0");
17054
- }, $2 = f2 || function(t4, e4, n3) {
17055
- var r3 = t4 < 12 ? "AM" : "PM";
17050
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
17051
+ return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
17052
+ }, d2 = function(t3) {
17053
+ return b.s(s2 % 12 || 12, t3, "0");
17054
+ }, $2 = f2 || function(t3, e3, n3) {
17055
+ var r3 = t3 < 12 ? "AM" : "PM";
17056
17056
  return n3 ? r3.toLowerCase() : r3;
17057
17057
  };
17058
- return r2.replace(y, (function(t4, r3) {
17059
- return r3 || (function(t5) {
17060
- switch (t5) {
17058
+ return r2.replace(y, (function(t3, r3) {
17059
+ return r3 || (function(t4) {
17060
+ switch (t4) {
17061
17061
  case "YY":
17062
- return String(e3.$y).slice(-2);
17062
+ return String(e2.$y).slice(-2);
17063
17063
  case "YYYY":
17064
- return b.s(e3.$y, 4, "0");
17064
+ return b.s(e2.$y, 4, "0");
17065
17065
  case "M":
17066
17066
  return a2 + 1;
17067
17067
  case "MM":
@@ -17071,17 +17071,17 @@ var require_dayjs_min = __commonJS({
17071
17071
  case "MMMM":
17072
17072
  return h2(c2, a2);
17073
17073
  case "D":
17074
- return e3.$D;
17074
+ return e2.$D;
17075
17075
  case "DD":
17076
- return b.s(e3.$D, 2, "0");
17076
+ return b.s(e2.$D, 2, "0");
17077
17077
  case "d":
17078
- return String(e3.$W);
17078
+ return String(e2.$W);
17079
17079
  case "dd":
17080
- return h2(n2.weekdaysMin, e3.$W, o2, 2);
17080
+ return h2(n2.weekdaysMin, e2.$W, o2, 2);
17081
17081
  case "ddd":
17082
- return h2(n2.weekdaysShort, e3.$W, o2, 3);
17082
+ return h2(n2.weekdaysShort, e2.$W, o2, 3);
17083
17083
  case "dddd":
17084
- return o2[e3.$W];
17084
+ return o2[e2.$W];
17085
17085
  case "H":
17086
17086
  return String(s2);
17087
17087
  case "HH":
@@ -17099,21 +17099,21 @@ var require_dayjs_min = __commonJS({
17099
17099
  case "mm":
17100
17100
  return b.s(u2, 2, "0");
17101
17101
  case "s":
17102
- return String(e3.$s);
17102
+ return String(e2.$s);
17103
17103
  case "ss":
17104
- return b.s(e3.$s, 2, "0");
17104
+ return b.s(e2.$s, 2, "0");
17105
17105
  case "SSS":
17106
- return b.s(e3.$ms, 3, "0");
17106
+ return b.s(e2.$ms, 3, "0");
17107
17107
  case "Z":
17108
- return i3;
17108
+ return i2;
17109
17109
  }
17110
17110
  return null;
17111
- })(t4) || i3.replace(":", "");
17111
+ })(t3) || i2.replace(":", "");
17112
17112
  }));
17113
17113
  }, m2.utcOffset = function() {
17114
17114
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
17115
17115
  }, m2.diff = function(r2, d2, l2) {
17116
- var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e2, g2 = this - m3, D2 = function() {
17116
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
17117
17117
  return b.m(y2, m3);
17118
17118
  };
17119
17119
  switch (M3) {
@@ -17136,10 +17136,10 @@ var require_dayjs_min = __commonJS({
17136
17136
  $2 = g2 / n;
17137
17137
  break;
17138
17138
  case s:
17139
- $2 = g2 / e2;
17139
+ $2 = g2 / e;
17140
17140
  break;
17141
- case i2:
17142
- $2 = g2 / t2;
17141
+ case i:
17142
+ $2 = g2 / t;
17143
17143
  break;
17144
17144
  default:
17145
17145
  $2 = g2;
@@ -17149,9 +17149,9 @@ var require_dayjs_min = __commonJS({
17149
17149
  return this.endOf(c).$D;
17150
17150
  }, m2.$locale = function() {
17151
17151
  return D[this.$L];
17152
- }, m2.locale = function(t3, e3) {
17153
- if (!t3) return this.$L;
17154
- var n2 = this.clone(), r2 = w(t3, e3, true);
17152
+ }, m2.locale = function(t2, e2) {
17153
+ if (!t2) return this.$L;
17154
+ var n2 = this.clone(), r2 = w(t2, e2, true);
17155
17155
  return r2 && (n2.$L = r2), n2;
17156
17156
  }, m2.clone = function() {
17157
17157
  return b.w(this.$d, this);
@@ -17165,14 +17165,14 @@ var require_dayjs_min = __commonJS({
17165
17165
  return this.$d.toUTCString();
17166
17166
  }, M2;
17167
17167
  })(), k = _23.prototype;
17168
- return O.prototype = k, [["$ms", r], ["$s", i2], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t3) {
17169
- k[t3[1]] = function(e3) {
17170
- return this.$g(e3, t3[0], t3[1]);
17168
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach((function(t2) {
17169
+ k[t2[1]] = function(e2) {
17170
+ return this.$g(e2, t2[0], t2[1]);
17171
17171
  };
17172
- })), O.extend = function(t3, e3) {
17173
- return t3.$i || (t3(e3, _23, O), t3.$i = true), O;
17174
- }, O.locale = w, O.isDayjs = S, O.unix = function(t3) {
17175
- return O(1e3 * t3);
17172
+ })), O.extend = function(t2, e2) {
17173
+ return t2.$i || (t2(e2, _23, O), t2.$i = true), O;
17174
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
17175
+ return O(1e3 * t2);
17176
17176
  }, O.en = D[g], O.Ls = D, O.p = {}, O;
17177
17177
  }));
17178
17178
  }
@@ -17181,41 +17181,41 @@ var require_dayjs_min = __commonJS({
17181
17181
  // ../../node_modules/dayjs/plugin/utc.js
17182
17182
  var require_utc = __commonJS({
17183
17183
  "../../node_modules/dayjs/plugin/utc.js"(exports, module) {
17184
- !(function(t2, i2) {
17185
- "object" == typeof exports && "undefined" != typeof module ? module.exports = i2() : "function" == typeof define && define.amd ? define(i2) : (t2 = "undefined" != typeof globalThis ? globalThis : t2 || self).dayjs_plugin_utc = i2();
17184
+ !(function(t, i) {
17185
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs_plugin_utc = i();
17186
17186
  })(exports, (function() {
17187
- var t2 = "minute", i2 = /[+-]\d\d(?::?\d\d)?/g, e2 = /([+-]|\d\d)/g;
17187
+ var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
17188
17188
  return function(s, f, n) {
17189
17189
  var u = f.prototype;
17190
- n.utc = function(t3) {
17191
- var i3 = { date: t3, utc: true, args: arguments };
17192
- return new f(i3);
17193
- }, u.utc = function(i3) {
17194
- var e3 = n(this.toDate(), { locale: this.$L, utc: true });
17195
- return i3 ? e3.add(this.utcOffset(), t2) : e3;
17190
+ n.utc = function(t2) {
17191
+ var i2 = { date: t2, utc: true, args: arguments };
17192
+ return new f(i2);
17193
+ }, u.utc = function(i2) {
17194
+ var e2 = n(this.toDate(), { locale: this.$L, utc: true });
17195
+ return i2 ? e2.add(this.utcOffset(), t) : e2;
17196
17196
  }, u.local = function() {
17197
17197
  return n(this.toDate(), { locale: this.$L, utc: false });
17198
17198
  };
17199
17199
  var r = u.parse;
17200
- u.parse = function(t3) {
17201
- t3.utc && (this.$u = true), this.$utils().u(t3.$offset) || (this.$offset = t3.$offset), r.call(this, t3);
17200
+ u.parse = function(t2) {
17201
+ t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), r.call(this, t2);
17202
17202
  };
17203
17203
  var o = u.init;
17204
17204
  u.init = function() {
17205
17205
  if (this.$u) {
17206
- var t3 = this.$d;
17207
- this.$y = t3.getUTCFullYear(), this.$M = t3.getUTCMonth(), this.$D = t3.getUTCDate(), this.$W = t3.getUTCDay(), this.$H = t3.getUTCHours(), this.$m = t3.getUTCMinutes(), this.$s = t3.getUTCSeconds(), this.$ms = t3.getUTCMilliseconds();
17206
+ var t2 = this.$d;
17207
+ this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
17208
17208
  } else o.call(this);
17209
17209
  };
17210
17210
  var a = u.utcOffset;
17211
17211
  u.utcOffset = function(s2, f2) {
17212
17212
  var n2 = this.$utils().u;
17213
17213
  if (n2(s2)) return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
17214
- if ("string" == typeof s2 && (s2 = (function(t3) {
17215
- void 0 === t3 && (t3 = "");
17216
- var s3 = t3.match(i2);
17214
+ if ("string" == typeof s2 && (s2 = (function(t2) {
17215
+ void 0 === t2 && (t2 = "");
17216
+ var s3 = t2.match(i);
17217
17217
  if (!s3) return null;
17218
- var f3 = ("" + s3[0]).match(e2) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
17218
+ var f3 = ("" + s3[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
17219
17219
  return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
17220
17220
  })(s2), null === s2)) return this;
17221
17221
  var u2 = Math.abs(s2) <= 16 ? 60 * s2 : s2;
@@ -17223,15 +17223,15 @@ var require_utc = __commonJS({
17223
17223
  var r2 = this.clone();
17224
17224
  if (f2) return r2.$offset = u2, r2.$u = false, r2;
17225
17225
  var o2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
17226
- return (r2 = this.local().add(u2 + o2, t2)).$offset = u2, r2.$x.$localOffset = o2, r2;
17226
+ return (r2 = this.local().add(u2 + o2, t)).$offset = u2, r2.$x.$localOffset = o2, r2;
17227
17227
  };
17228
17228
  var h = u.format;
17229
- u.format = function(t3) {
17230
- var i3 = t3 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
17231
- return h.call(this, i3);
17229
+ u.format = function(t2) {
17230
+ var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
17231
+ return h.call(this, i2);
17232
17232
  }, u.valueOf = function() {
17233
- var t3 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
17234
- return this.$d.valueOf() - 6e4 * t3;
17233
+ var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
17234
+ return this.$d.valueOf() - 6e4 * t2;
17235
17235
  }, u.isUTC = function() {
17236
17236
  return !!this.$u;
17237
17237
  }, u.toISOString = function() {
@@ -17240,14 +17240,14 @@ var require_utc = __commonJS({
17240
17240
  return this.toDate().toUTCString();
17241
17241
  };
17242
17242
  var l = u.toDate;
17243
- u.toDate = function(t3) {
17244
- return "s" === t3 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
17243
+ u.toDate = function(t2) {
17244
+ return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l.call(this);
17245
17245
  };
17246
17246
  var c = u.diff;
17247
- u.diff = function(t3, i3, e3) {
17248
- if (t3 && this.$u === t3.$u) return c.call(this, t3, i3, e3);
17249
- var s2 = this.local(), f2 = n(t3).local();
17250
- return c.call(s2, f2, i3, e3);
17247
+ u.diff = function(t2, i2, e2) {
17248
+ if (t2 && this.$u === t2.$u) return c.call(this, t2, i2, e2);
17249
+ var s2 = this.local(), f2 = n(t2).local();
17250
+ return c.call(s2, f2, i2, e2);
17251
17251
  };
17252
17252
  };
17253
17253
  }));
@@ -17549,8 +17549,8 @@ function mapToStaticDate(value, currentDate) {
17549
17549
  return setDate(amount, unit);
17550
17550
  }
17551
17551
  return void 0;
17552
- } catch (e2) {
17553
- console.error(`Failed to parse format ${value}`, e2);
17552
+ } catch (e) {
17553
+ console.error(`Failed to parse format ${value}`, e);
17554
17554
  return void 0;
17555
17555
  }
17556
17556
  }
@@ -19943,14 +19943,14 @@ var require_src2 = __commonJS({
19943
19943
  return;
19944
19944
  }
19945
19945
  var len = parts.length;
19946
- for (var i2 = 0; i2 < len; i2++) {
19947
- var key = parts[i2];
19948
- if (i2 === len - 1) {
19946
+ for (var i = 0; i < len; i++) {
19947
+ var key = parts[i];
19948
+ if (i === len - 1) {
19949
19949
  obj[key] = value;
19950
19950
  return;
19951
19951
  }
19952
19952
  if (key === "*" && (0, ts_util_is_1.isArray)(obj)) {
19953
- var remaining = parts.slice(i2 + 1).join(".");
19953
+ var remaining = parts.slice(i + 1).join(".");
19954
19954
  for (var _i = 0, obj_1 = obj; _i < obj_1.length; _i++) {
19955
19955
  var item = obj_1[_i];
19956
19956
  set2(item, remaining, value);
@@ -19978,9 +19978,9 @@ var require_src2 = __commonJS({
19978
19978
  return;
19979
19979
  }
19980
19980
  var len = parts.length;
19981
- for (var i2 = 0; i2 < len; i2++) {
19982
- var key = parts[i2];
19983
- if (i2 === len - 1) {
19981
+ for (var i = 0; i < len; i++) {
19982
+ var key = parts[i];
19983
+ if (i === len - 1) {
19984
19984
  return delete obj[key];
19985
19985
  }
19986
19986
  obj = obj[key];
@@ -20162,9 +20162,9 @@ var require_default_operators = __commonJS({
20162
20162
  var require_engine = __commonJS({
20163
20163
  "../../node_modules/js-rules-engine/dist/engine.js"(exports) {
20164
20164
  var __spreadArrays4 = exports && exports.__spreadArrays || function() {
20165
- for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
20166
- for (var r = Array(s), k = 0, i2 = 0; i2 < il; i2++)
20167
- for (var a = arguments[i2], j = 0, jl = a.length; j < jl; j++, k++)
20165
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
20166
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
20167
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
20168
20168
  r[k] = a[j];
20169
20169
  return r;
20170
20170
  };
@@ -20372,12 +20372,12 @@ var require_dist5 = __commonJS({
20372
20372
  // ../../node_modules/dayjs/plugin/isSameOrAfter.js
20373
20373
  var require_isSameOrAfter = __commonJS({
20374
20374
  "../../node_modules/dayjs/plugin/isSameOrAfter.js"(exports, module) {
20375
- !(function(e2, t2) {
20376
- "object" == typeof exports && "undefined" != typeof module ? module.exports = t2() : "function" == typeof define && define.amd ? define(t2) : (e2 = "undefined" != typeof globalThis ? globalThis : e2 || self).dayjs_plugin_isSameOrAfter = t2();
20375
+ !(function(e, t) {
20376
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isSameOrAfter = t();
20377
20377
  })(exports, (function() {
20378
- return function(e2, t2) {
20379
- t2.prototype.isSameOrAfter = function(e3, t3) {
20380
- return this.isSame(e3, t3) || this.isAfter(e3, t3);
20378
+ return function(e, t) {
20379
+ t.prototype.isSameOrAfter = function(e2, t2) {
20380
+ return this.isSame(e2, t2) || this.isAfter(e2, t2);
20381
20381
  };
20382
20382
  };
20383
20383
  }));
@@ -20387,12 +20387,12 @@ var require_isSameOrAfter = __commonJS({
20387
20387
  // ../../node_modules/dayjs/plugin/isSameOrBefore.js
20388
20388
  var require_isSameOrBefore = __commonJS({
20389
20389
  "../../node_modules/dayjs/plugin/isSameOrBefore.js"(exports, module) {
20390
- !(function(e2, i2) {
20391
- "object" == typeof exports && "undefined" != typeof module ? module.exports = i2() : "function" == typeof define && define.amd ? define(i2) : (e2 = "undefined" != typeof globalThis ? globalThis : e2 || self).dayjs_plugin_isSameOrBefore = i2();
20390
+ !(function(e, i) {
20391
+ "object" == typeof exports && "undefined" != typeof module ? module.exports = i() : "function" == typeof define && define.amd ? define(i) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_isSameOrBefore = i();
20392
20392
  })(exports, (function() {
20393
- return function(e2, i2) {
20394
- i2.prototype.isSameOrBefore = function(e3, i3) {
20395
- return this.isSame(e3, i3) || this.isBefore(e3, i3);
20393
+ return function(e, i) {
20394
+ i.prototype.isSameOrBefore = function(e2, i2) {
20395
+ return this.isSame(e2, i2) || this.isBefore(e2, i2);
20396
20396
  };
20397
20397
  };
20398
20398
  }));
@@ -20519,7 +20519,6 @@ var INPUT_FIELD_TYPES = {
20519
20519
  var READONLY_FIELD_TYPES = {
20520
20520
  HEADER: "HEADER",
20521
20521
  RICH_TEXT: "RICH_TEXT",
20522
- SUBMIT_BUTTON: "SUBMIT_BUTTON",
20523
20522
  ECOM_CONTACT_DETAILS: "ECOM_CONTACT_DETAILS",
20524
20523
  ECOM_SHIPPING_DETAILS: "ECOM_SHIPPING_DETAILS",
20525
20524
  BOOKINGS_HEADER: "BOOKINGS_HEADER",
@@ -20530,8 +20529,7 @@ var READONLY_FIELD_TYPES = {
20530
20529
  // ../form-fields/dist/esm/constants/field-types.js
20531
20530
  var FIELD_TYPES = {
20532
20531
  ...INPUT_FIELD_TYPES,
20533
- ...READONLY_FIELD_TYPES
20534
- };
20532
+ ...READONLY_FIELD_TYPES};
20535
20533
 
20536
20534
  // ../form-fields/dist/esm/constants/empty-values.js
20537
20535
  var EMPTY_VALUE = null;
@@ -20547,49 +20545,56 @@ var Breakpoint = /* @__PURE__ */ (function(Breakpoint2) {
20547
20545
  return Breakpoint2;
20548
20546
  })({});
20549
20547
  var DEFAULT_BREAKPOINT = Breakpoint.LARGE;
20550
- var FieldValidationContext = /* @__PURE__ */ React30.createContext(null);
20551
- var useFieldValidation = () => React30.useContext(FieldValidationContext) || {};
20548
+ var FieldValidationContext = /* @__PURE__ */ React32.createContext(null);
20549
+ var useFieldValidation = () => React32.useContext(FieldValidationContext) || {};
20552
20550
  var FORM_STATUS = {
20553
20551
  BUSY: "BUSY",
20554
20552
  READY: "READY"
20555
20553
  };
20556
- var FormStatusContext = /* @__PURE__ */ React30.createContext(void 0);
20554
+ var FormStatusContext = /* @__PURE__ */ React32.createContext(void 0);
20557
20555
  var FormStatusProvider = (_ref) => {
20558
20556
  let {
20559
20557
  children,
20560
20558
  onStatusChange
20561
20559
  } = _ref;
20562
- const previousFormStatus = React30.useRef(FORM_STATUS.READY);
20563
- const [fieldStatusByTarget, setFieldStatusByTarget] = React30.useState({});
20564
- const setFormStatus = React30.useCallback((target, status) => {
20560
+ const previousFormStatus = React32.useRef(FORM_STATUS.READY);
20561
+ const [fieldStatusByTarget, setFieldStatusByTarget] = React32.useState({});
20562
+ const setFormStatus = React32.useCallback((target, status) => {
20565
20563
  setFieldStatusByTarget((previous) => ({
20566
20564
  ...previous,
20567
20565
  [target]: status
20568
20566
  }));
20569
20567
  }, []);
20570
- const currentFormStatus = React30.useMemo(() => {
20568
+ const currentFormStatus = React32.useMemo(() => {
20571
20569
  const isFormBusy = Object.values(fieldStatusByTarget).some((status) => status === FORM_STATUS.BUSY);
20572
20570
  return isFormBusy ? FORM_STATUS.BUSY : FORM_STATUS.READY;
20573
20571
  }, [fieldStatusByTarget]);
20574
- React30.useEffect(() => {
20572
+ React32.useEffect(() => {
20575
20573
  if (previousFormStatus.current !== currentFormStatus) {
20576
20574
  previousFormStatus.current = currentFormStatus;
20577
20575
  onStatusChange == null || onStatusChange(currentFormStatus);
20578
20576
  }
20579
20577
  }, [currentFormStatus, onStatusChange]);
20580
- const contextValue = React30.useMemo(() => {
20578
+ const contextValue = React32.useMemo(() => {
20581
20579
  return {
20582
20580
  formStatus: currentFormStatus,
20583
20581
  setFormStatus
20584
20582
  };
20585
20583
  }, [currentFormStatus, setFormStatus]);
20586
- return /* @__PURE__ */ React30__namespace.default.createElement(FormStatusContext.Provider, {
20584
+ return /* @__PURE__ */ React32__namespace.default.createElement(FormStatusContext.Provider, {
20587
20585
  value: contextValue
20588
20586
  }, children);
20589
20587
  };
20590
- var WixRicosViewerContext = /* @__PURE__ */ React30.createContext(void 0);
20588
+ function useFormStatus() {
20589
+ const context = React32.useContext(FormStatusContext);
20590
+ if (context === void 0) {
20591
+ throw new Error("useFormStatus must be used within a Form Status provider");
20592
+ }
20593
+ return context;
20594
+ }
20595
+ var WixRicosViewerContext = /* @__PURE__ */ React32.createContext(void 0);
20591
20596
  function useWixRicosViewer() {
20592
- const context = React30.useContext(WixRicosViewerContext);
20597
+ const context = React32.useContext(WixRicosViewerContext);
20593
20598
  if (context === void 0) {
20594
20599
  throw new Error("useWixRicosViewer must be used within a WixRicosViewerContext.Provider");
20595
20600
  }
@@ -20645,22 +20650,22 @@ var ANCHOR_LINK = "anchor-link";
20645
20650
 
20646
20651
  // ../../node_modules/@wix/ricos/dist/es/plugin-link/statics/link-viewer-scss.js
20647
20652
  var link_viewer_default = {
20648
- "link": "ZbI--",
20649
- "linkInViewer": "mzSg8"};
20653
+ "link": "FQtO1",
20654
+ "linkInViewer": "rdZDZ"};
20650
20655
 
20651
20656
  // ../../node_modules/@wix/ricos/dist/es/plugin-link/nodeViewDecorators/anchor.js
20652
20657
  var decorator = (anchorDecoration, element) => {
20653
20658
  const { anchor } = anchorDecoration.anchorData;
20654
- return /* @__PURE__ */ React30__namespace.default.createElement(
20659
+ return /* @__PURE__ */ React32__namespace.default.createElement(
20655
20660
  "a",
20656
20661
  {
20657
20662
  key: `anchor-${element?.key}`,
20658
20663
  target: "_self",
20659
20664
  href: `#viewer-${anchor}`,
20660
20665
  className: (0, import_classnames.default)(link_viewer_default.link, link_viewer_default.linkInViewer),
20661
- onClick: (e2) => {
20662
- e2.stopPropagation();
20663
- e2.preventDefault();
20666
+ onClick: (e) => {
20667
+ e.stopPropagation();
20668
+ e.preventDefault();
20664
20669
  const anchorString = `viewer-${anchor}`;
20665
20670
  const element2 = document.getElementById(anchorString);
20666
20671
  addAnchorTagToUrl(anchorString);
@@ -20694,7 +20699,7 @@ var LINK_TYPE = "LINK";
20694
20699
 
20695
20700
  // ../../node_modules/@wix/ricos/dist/es/plugin-link/nodeViewDecorators/link.js
20696
20701
  var decorator2 = (element, linkDecoration, contextualData, node) => {
20697
- const { baseUrl } = React30.useContext(RicosViewerContext);
20702
+ const { baseUrl } = React32.useContext(RicosViewerContext);
20698
20703
  const link = linkDecoration.linkData?.link;
20699
20704
  const target = link?.target || contextualData.anchorTarget;
20700
20705
  const rel = link?.rel || {};
@@ -20709,7 +20714,7 @@ var decorator2 = (element, linkDecoration, contextualData, node) => {
20709
20714
  type: Node_Type.TEXT,
20710
20715
  textData: node.textData
20711
20716
  });
20712
- return /* @__PURE__ */ React30__namespace.default.createElement(
20717
+ return /* @__PURE__ */ React32__namespace.default.createElement(
20713
20718
  "a",
20714
20719
  {
20715
20720
  key: `link=${element.key}`,
@@ -20752,9 +20757,9 @@ var pluginLink = (config) => {
20752
20757
 
20753
20758
  // ../form-fields/dist/esm/ui/ricos-viewer/ricos-viewer.js
20754
20759
  var import_classnames3 = __toESM(require_classnames());
20755
- var ConfigContext = /* @__PURE__ */ React30.createContext(null);
20760
+ var ConfigContext = /* @__PURE__ */ React32.createContext(null);
20756
20761
  function useConfig() {
20757
- const context = React30.useContext(ConfigContext);
20762
+ const context = React32.useContext(ConfigContext);
20758
20763
  if (context === void 0) {
20759
20764
  throw new Error("useConfig must be used within a ConfigContext.Provider");
20760
20765
  }
@@ -20768,7 +20773,7 @@ var htmlAttributesPlugin = (_23) => ({
20768
20773
  type: "",
20769
20774
  nodeViewDecorators: [htmlAttributesDecorator],
20770
20775
  nodeViewRenderers: {
20771
- [Node_Type.EXTERNAL]: (__) => /* @__PURE__ */ React30__namespace.default.createElement(React30__namespace.default.Fragment, null)
20776
+ [Node_Type.EXTERNAL]: (__) => /* @__PURE__ */ React32__namespace.default.createElement(React32__namespace.default.Fragment, null)
20772
20777
  }
20773
20778
  });
20774
20779
  var htmlAttributesDecorator = {
@@ -20779,13 +20784,13 @@ var htmlAttributesDecorator = {
20779
20784
  node
20780
20785
  } = _ref;
20781
20786
  if (((_node$textData = node.textData) == null ? void 0 : _node$textData.text) == null) {
20782
- return /* @__PURE__ */ React30__namespace.default.createElement(React30__namespace.default.Fragment, null);
20787
+ return /* @__PURE__ */ React32__namespace.default.createElement(React32__namespace.default.Fragment, null);
20783
20788
  }
20784
20789
  const props = Object.fromEntries(Object.entries(((_node$externalData = node.externalData) == null ? void 0 : _node$externalData.fields) ?? []).map((_ref2) => {
20785
20790
  let [k, v] = _ref2;
20786
20791
  return [k, v.stringValue];
20787
20792
  }));
20788
- return /* @__PURE__ */ React30__namespace.default.createElement("span", props, (_node$textData2 = node.textData) == null ? void 0 : _node$textData2.text);
20793
+ return /* @__PURE__ */ React32__namespace.default.createElement("span", props, (_node$textData2 = node.textData) == null ? void 0 : _node$textData2.text);
20789
20794
  }
20790
20795
  };
20791
20796
 
@@ -20804,10 +20809,10 @@ var RicosViewer = (_ref) => {
20804
20809
  if (!content) {
20805
20810
  return null;
20806
20811
  }
20807
- return /* @__PURE__ */ React30__namespace.default.createElement("div", {
20812
+ return /* @__PURE__ */ React32__namespace.default.createElement("div", {
20808
20813
  className: (0, import_classnames3.default)(ricos_viewer_module_default.container, className),
20809
20814
  "data-hook": dataHook
20810
- }, /* @__PURE__ */ React30__namespace.default.createElement(WixRicosViewer, {
20815
+ }, /* @__PURE__ */ React32__namespace.default.createElement(WixRicosViewer, {
20811
20816
  biSettings: {
20812
20817
  consumer: "Forms",
20813
20818
  platform: "Livesite",
@@ -20821,9 +20826,9 @@ var RicosViewer = (_ref) => {
20821
20826
  locale
20822
20827
  }));
20823
20828
  };
20824
- var ricos_viewer_default = /* @__PURE__ */ React30__namespace.default.memo(RicosViewer);
20829
+ var ricos_viewer_default = /* @__PURE__ */ React32__namespace.default.memo(RicosViewer);
20825
20830
  function useRicosTheme(customTheme) {
20826
- return React30.useMemo(() => ({
20831
+ return React32.useMemo(() => ({
20827
20832
  palette: {
20828
20833
  type: "rgb",
20829
20834
  bgColor: "var(--wix-forms-formInputBackgroundColor)",
@@ -20833,7 +20838,7 @@ function useRicosTheme(customTheme) {
20833
20838
  ...customTheme
20834
20839
  }), [customTheme]);
20835
20840
  }
20836
- var UniqueFieldSuffixContext = /* @__PURE__ */ React30.createContext(void 0);
20841
+ var UniqueFieldSuffixContext = /* @__PURE__ */ React32.createContext(void 0);
20837
20842
  var UniqueFieldSuffixContextProvider = (_ref) => {
20838
20843
  let {
20839
20844
  parentId = "id",
@@ -20843,28 +20848,28 @@ var UniqueFieldSuffixContextProvider = (_ref) => {
20843
20848
  compId = "comp"
20844
20849
  } = useConfig();
20845
20850
  const uniqueId = `${compId}-${parentId.split("-").at(0)}`;
20846
- return /* @__PURE__ */ React30__namespace.default.createElement(UniqueFieldSuffixContext.Provider, {
20851
+ return /* @__PURE__ */ React32__namespace.default.createElement(UniqueFieldSuffixContext.Provider, {
20847
20852
  value: uniqueId
20848
20853
  }, children);
20849
20854
  };
20850
- var FocusedFieldContext = /* @__PURE__ */ React30.createContext(void 0);
20855
+ var FocusedFieldContext = /* @__PURE__ */ React32.createContext(void 0);
20851
20856
  var FocusedFieldProvider = (_ref) => {
20852
20857
  let {
20853
20858
  children
20854
20859
  } = _ref;
20855
- const [focusedFieldId, setFocusedFieldId] = React30__namespace.default.useState(void 0);
20856
- const contextValue = React30.useMemo(() => {
20860
+ const [focusedFieldId, setFocusedFieldId] = React32__namespace.default.useState(void 0);
20861
+ const contextValue = React32.useMemo(() => {
20857
20862
  return {
20858
20863
  focusedFieldId,
20859
20864
  setFocusedFieldId
20860
20865
  };
20861
20866
  }, [focusedFieldId, setFocusedFieldId]);
20862
- return /* @__PURE__ */ React30__namespace.default.createElement(FocusedFieldContext.Provider, {
20867
+ return /* @__PURE__ */ React32__namespace.default.createElement(FocusedFieldContext.Provider, {
20863
20868
  value: contextValue
20864
20869
  }, children);
20865
20870
  };
20866
20871
  function useFocusedField() {
20867
- const context = React30.useContext(FocusedFieldContext);
20872
+ const context = React32.useContext(FocusedFieldContext);
20868
20873
  if (context === void 0) {
20869
20874
  throw new Error("useFocusedField must be used within a FocusedFieldProvider");
20870
20875
  }
@@ -20872,14 +20877,14 @@ function useFocusedField() {
20872
20877
  }
20873
20878
 
20874
20879
  // ../form-fields/dist/esm/contexts/events-context.js
20875
- var EventsContext = /* @__PURE__ */ React30.createContext(void 0);
20880
+ var EventsContext = /* @__PURE__ */ React32.createContext(void 0);
20876
20881
  var EventsProvider = (_ref) => {
20877
20882
  let {
20878
20883
  children
20879
20884
  } = _ref;
20880
- const [submitSuccessCounter, setSubmitSuccessCounter] = React30.useState(0);
20881
- const [submittedValues, setSubmittedValues] = React30.useState({});
20882
- const value = React30.useMemo(() => ({
20885
+ const [submitSuccessCounter, setSubmitSuccessCounter] = React32.useState(0);
20886
+ const [submittedValues, setSubmittedValues] = React32.useState({});
20887
+ const value = React32.useMemo(() => ({
20883
20888
  submitSuccessCounter,
20884
20889
  submittedValues,
20885
20890
  fireSubmitSuccess: (values) => {
@@ -20887,12 +20892,12 @@ var EventsProvider = (_ref) => {
20887
20892
  setSubmittedValues(values || {});
20888
20893
  }
20889
20894
  }), [submitSuccessCounter, submittedValues]);
20890
- return /* @__PURE__ */ React30__namespace.default.createElement(EventsContext.Provider, {
20895
+ return /* @__PURE__ */ React32__namespace.default.createElement(EventsContext.Provider, {
20891
20896
  value
20892
20897
  }, children);
20893
20898
  };
20894
20899
  var useEvents = () => {
20895
- const context = React30.useContext(EventsContext);
20900
+ const context = React32.useContext(EventsContext);
20896
20901
  if (context === void 0) {
20897
20902
  throw new Error("useEvents must be used within a EventsProvider");
20898
20903
  }
@@ -20904,13 +20909,13 @@ var useSubmitSuccessTrigger = () => {
20904
20909
  } = useEvents();
20905
20910
  return fireSubmitSuccess;
20906
20911
  };
20907
- var ScrollContext = /* @__PURE__ */ React30.createContext(void 0);
20912
+ var ScrollContext = /* @__PURE__ */ React32.createContext(void 0);
20908
20913
  var ScrollProvider = (_ref) => {
20909
20914
  let {
20910
20915
  children
20911
20916
  } = _ref;
20912
- const scrollViewRef = React30.useRef(null);
20913
- const value = React30.useMemo(() => ({
20917
+ const scrollViewRef = React32.useRef(null);
20918
+ const value = React32.useMemo(() => ({
20914
20919
  scrollTo: (element) => {
20915
20920
  if (element && scrollViewRef.current) {
20916
20921
  const {
@@ -20928,14 +20933,14 @@ var ScrollProvider = (_ref) => {
20928
20933
  }
20929
20934
  }
20930
20935
  }), []);
20931
- return /* @__PURE__ */ React30__namespace.default.createElement("div", {
20936
+ return /* @__PURE__ */ React32__namespace.default.createElement("div", {
20932
20937
  ref: scrollViewRef
20933
- }, /* @__PURE__ */ React30__namespace.default.createElement(ScrollContext.Provider, {
20938
+ }, /* @__PURE__ */ React32__namespace.default.createElement(ScrollContext.Provider, {
20934
20939
  value
20935
20940
  }, children));
20936
20941
  };
20937
20942
  function useScroll() {
20938
- const context = React30.useContext(ScrollContext);
20943
+ const context = React32.useContext(ScrollContext);
20939
20944
  if (context === void 0) {
20940
20945
  throw new Error("useScroll must be used within a ScrollProvider");
20941
20946
  }
@@ -21017,13 +21022,13 @@ var __extends = /* @__PURE__ */ (function() {
21017
21022
  };
21018
21023
  })();
21019
21024
  var __assign = function() {
21020
- __assign = Object.assign || function(t2) {
21021
- for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
21022
- s = arguments[i2];
21025
+ __assign = Object.assign || function(t) {
21026
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
21027
+ s = arguments[i];
21023
21028
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21024
- t2[p] = s[p];
21029
+ t[p] = s[p];
21025
21030
  }
21026
- return t2;
21031
+ return t;
21027
21032
  };
21028
21033
  return __assign.apply(this, arguments);
21029
21034
  };
@@ -21080,13 +21085,13 @@ var SyntaxError = (
21080
21085
  }
21081
21086
  function describeExpected(expected1) {
21082
21087
  var descriptions = expected1.map(describeExpectation);
21083
- var i2;
21088
+ var i;
21084
21089
  var j;
21085
21090
  descriptions.sort();
21086
21091
  if (descriptions.length > 0) {
21087
- for (i2 = 1, j = 1; i2 < descriptions.length; i2++) {
21088
- if (descriptions[i2 - 1] !== descriptions[i2]) {
21089
- descriptions[j] = descriptions[i2];
21092
+ for (i = 1, j = 1; i < descriptions.length; i++) {
21093
+ if (descriptions[i - 1] !== descriptions[i]) {
21094
+ descriptions[j] = descriptions[i];
21090
21095
  j++;
21091
21096
  }
21092
21097
  }
@@ -23367,9 +23372,9 @@ var pegParse = peg$parse;
23367
23372
 
23368
23373
  // ../../node_modules/intl-messageformat-parser/lib/normalize.js
23369
23374
  var __spreadArrays = function() {
23370
- for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
23371
- for (var r = Array(s), k = 0, i2 = 0; i2 < il; i2++)
23372
- for (var a = arguments[i2], j = 0, jl = a.length; j < jl; j++, k++)
23375
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
23376
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
23377
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
23373
23378
  r[k] = a[j];
23374
23379
  return r;
23375
23380
  };
@@ -23384,10 +23389,10 @@ function normalizeHashtagInPlural(els) {
23384
23389
  var opt = el.options[id];
23385
23390
  var matchingLiteralElIndex = -1;
23386
23391
  var literalEl = void 0;
23387
- for (var i2 = 0; i2 < opt.value.length; i2++) {
23388
- var el_1 = opt.value[i2];
23392
+ for (var i = 0; i < opt.value.length; i++) {
23393
+ var el_1 = opt.value[i];
23389
23394
  if (isLiteralElement(el_1) && PLURAL_HASHTAG_REGEX.test(el_1.value)) {
23390
- matchingLiteralElIndex = i2;
23395
+ matchingLiteralElIndex = i;
23391
23396
  literalEl = el_1;
23392
23397
  break;
23393
23398
  }
@@ -23404,13 +23409,13 @@ function normalizeHashtagInPlural(els) {
23404
23409
 
23405
23410
  // ../../node_modules/intl-messageformat-parser/lib/skeleton.js
23406
23411
  var __assign2 = function() {
23407
- __assign2 = Object.assign || function(t2) {
23408
- for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
23409
- s = arguments[i2];
23412
+ __assign2 = Object.assign || function(t) {
23413
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
23414
+ s = arguments[i];
23410
23415
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
23411
- t2[p] = s[p];
23416
+ t[p] = s[p];
23412
23417
  }
23413
- return t2;
23418
+ return t;
23414
23419
  };
23415
23420
  return __assign2.apply(this, arguments);
23416
23421
  };
@@ -23700,9 +23705,9 @@ function parse(input, opts) {
23700
23705
 
23701
23706
  // ../../node_modules/intl-format-cache/lib/index.js
23702
23707
  var __spreadArrays2 = function() {
23703
- for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
23704
- for (var r = Array(s), k = 0, i2 = 0; i2 < il; i2++)
23705
- for (var a = arguments[i2], j = 0, jl = a.length; j < jl; j++, k++)
23708
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
23709
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
23710
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
23706
23711
  r[k] = a[j];
23707
23712
  return r;
23708
23713
  };
@@ -23759,9 +23764,9 @@ var __extends2 = /* @__PURE__ */ (function() {
23759
23764
  };
23760
23765
  })();
23761
23766
  var __spreadArrays3 = function() {
23762
- for (var s = 0, i2 = 0, il = arguments.length; i2 < il; i2++) s += arguments[i2].length;
23763
- for (var r = Array(s), k = 0, i2 = 0; i2 < il; i2++)
23764
- for (var a = arguments[i2], j = 0, jl = a.length; j < jl; j++, k++)
23767
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
23768
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
23769
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
23765
23770
  r[k] = a[j];
23766
23771
  return r;
23767
23772
  };
@@ -24004,13 +24009,13 @@ function formatHTMLMessage(els, locales, formatters, formats, values, originalMe
24004
24009
 
24005
24010
  // ../../node_modules/@wix/wix-i18n-config/node_modules/intl-messageformat/lib/core.js
24006
24011
  var __assign3 = function() {
24007
- __assign3 = Object.assign || function(t2) {
24008
- for (var s, i2 = 1, n = arguments.length; i2 < n; i2++) {
24009
- s = arguments[i2];
24012
+ __assign3 = Object.assign || function(t) {
24013
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
24014
+ s = arguments[i];
24010
24015
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
24011
- t2[p] = s[p];
24016
+ t[p] = s[p];
24012
24017
  }
24013
- return t2;
24018
+ return t;
24014
24019
  };
24015
24020
  return __assign3.apply(this, arguments);
24016
24021
  };
@@ -24351,9 +24356,9 @@ function initI18n({ icuOptions = {}, ...options }) {
24351
24356
  }
24352
24357
 
24353
24358
  // ../form-fields/dist/esm/contexts/translation-context.js
24354
- var TranslationContext = /* @__PURE__ */ React30.createContext(void 0);
24359
+ var TranslationContext = /* @__PURE__ */ React32.createContext(void 0);
24355
24360
  function useTranslation() {
24356
- const context = React30.useContext(TranslationContext);
24361
+ const context = React32.useContext(TranslationContext);
24357
24362
  if (context === void 0) {
24358
24363
  throw new Error("useTranslation must be used within a TranslationProvider");
24359
24364
  }
@@ -24364,10 +24369,10 @@ function useTranslation() {
24364
24369
  function generateUUID() {
24365
24370
  let uuid = "";
24366
24371
  const hexValues = "0123456789abcdef";
24367
- for (let i2 = 0; i2 < 36; i2++) {
24368
- if (i2 === 8 || i2 === 13 || i2 === 18 || i2 === 23) {
24372
+ for (let i = 0; i < 36; i++) {
24373
+ if (i === 8 || i === 13 || i === 18 || i === 23) {
24369
24374
  uuid += "-";
24370
- } else if (i2 === 14) {
24375
+ } else if (i === 14) {
24371
24376
  uuid += "4";
24372
24377
  } else {
24373
24378
  uuid += hexValues.charAt(Math.floor(Math.random() * hexValues.length));
@@ -24375,18 +24380,18 @@ function generateUUID() {
24375
24380
  }
24376
24381
  return uuid;
24377
24382
  }
24378
- var ExperimentsContext = /* @__PURE__ */ React30.createContext(void 0);
24383
+ var ExperimentsContext = /* @__PURE__ */ React32.createContext(void 0);
24379
24384
  var useExperiments = () => {
24380
- const experiments = React30.useContext(ExperimentsContext) || {};
24385
+ const experiments = React32.useContext(ExperimentsContext) || {};
24381
24386
  return {
24382
24387
  experiments,
24383
24388
  isExperimentEnabled: (spec) => experiments[spec] === true || experiments[spec] === "true" || false
24384
24389
  };
24385
24390
  };
24386
- var HttpClientContext = /* @__PURE__ */ React30.createContext(void 0);
24387
- var FormContext = /* @__PURE__ */ React30.createContext(void 0);
24391
+ var HttpClientContext = /* @__PURE__ */ React32.createContext(void 0);
24392
+ var FormContext = /* @__PURE__ */ React32.createContext(void 0);
24388
24393
  function useForm() {
24389
- const context = React30.useContext(FormContext);
24394
+ const context = React32.useContext(FormContext);
24390
24395
  if (context === void 0) {
24391
24396
  throw new Error("useForm must be used within a FormProvider");
24392
24397
  }
@@ -24394,9 +24399,9 @@ function useForm() {
24394
24399
  }
24395
24400
 
24396
24401
  // ../form-fields/dist/esm/contexts/panorama-context.js
24397
- var PanoramaContext = /* @__PURE__ */ React30.createContext(void 0);
24402
+ var PanoramaContext = /* @__PURE__ */ React32.createContext(void 0);
24398
24403
  function usePanorama() {
24399
- const context = React30.useContext(PanoramaContext);
24404
+ const context = React32.useContext(PanoramaContext);
24400
24405
  if (context === void 0) {
24401
24406
  throw new Error("usePanorama must be used within a PanoramaProvider");
24402
24407
  }
@@ -24415,37 +24420,40 @@ function usePanorama() {
24415
24420
  })
24416
24421
  };
24417
24422
  }
24418
- var BiContext = /* @__PURE__ */ React30.createContext(void 0);
24423
+ var BiContext = /* @__PURE__ */ React32.createContext(void 0);
24419
24424
  function useBi() {
24420
- const context = React30.useContext(BiContext);
24425
+ const context = React32.useContext(BiContext);
24421
24426
  if (context === void 0) {
24422
24427
  throw new Error("useBi must be used within a BiProvider");
24423
24428
  }
24424
24429
  return context;
24425
24430
  }
24426
- var ForcedStateContext = /* @__PURE__ */ React30.createContext([]);
24431
+ var ForcedStateContext = /* @__PURE__ */ React32.createContext([]);
24427
24432
  var FALLBACK = {};
24428
- var ExternalDataContext = /* @__PURE__ */ React30.createContext(void 0);
24433
+ var ExternalDataContext = /* @__PURE__ */ React32.createContext(void 0);
24429
24434
  var ExternalDataProvider = (_ref) => {
24430
24435
  let {
24431
24436
  children,
24432
24437
  externalData
24433
24438
  } = _ref;
24434
- return /* @__PURE__ */ React30__namespace.default.createElement(ExternalDataContext.Provider, {
24439
+ return /* @__PURE__ */ React32__namespace.default.createElement(ExternalDataContext.Provider, {
24435
24440
  value: externalData ?? FALLBACK
24436
24441
  }, children);
24437
24442
  };
24438
24443
  function useExternalData() {
24439
- const context = React30.useContext(ExternalDataContext);
24444
+ const context = React32.useContext(ExternalDataContext);
24440
24445
  if (context === void 0) {
24441
24446
  throw new Error("useExternalData must be used within a ExternalDataProvider");
24442
24447
  }
24443
24448
  return context;
24444
24449
  }
24445
- var FieldActionsContext = /* @__PURE__ */ React30.createContext({});
24446
- var FormFieldsContext = /* @__PURE__ */ React30.createContext(void 0);
24450
+ var FieldActionsContext = /* @__PURE__ */ React32.createContext({});
24451
+ function useFieldActions() {
24452
+ return React32.useContext(FieldActionsContext);
24453
+ }
24454
+ var FormFieldsContext = /* @__PURE__ */ React32.createContext(void 0);
24447
24455
  function useFormFields() {
24448
- const context = React30.useContext(FormFieldsContext);
24456
+ const context = React32.useContext(FormFieldsContext);
24449
24457
  if (context === void 0) {
24450
24458
  throw new Error("useFormFields must be used within a FormFieldsProvider");
24451
24459
  }
@@ -24453,7 +24461,7 @@ function useFormFields() {
24453
24461
  }
24454
24462
 
24455
24463
  // ../form-fields/dist/esm/ui/form/components/form/form-field.js
24456
- var import_extends4 = __toESM(require_extends());
24464
+ var import_extends5 = __toESM(require_extends());
24457
24465
 
24458
24466
  // ../form-fields/dist/esm/ui/form/types/form-view.js
24459
24467
  function isInputField2(field) {
@@ -24497,7 +24505,7 @@ var InputField = (_ref) => {
24497
24505
  } = useFieldValidation();
24498
24506
  const form = useForm();
24499
24507
  const fieldValue = values[field.target];
24500
- const errorsByTarget = React30.useMemo(() => groupErrorsByTarget(errors), [errors]);
24508
+ const errorsByTarget = React32.useMemo(() => groupErrorsByTarget(errors), [errors]);
24501
24509
  const fieldErrors = errorsByTarget == null ? void 0 : errorsByTarget[field.target];
24502
24510
  const fieldError = fieldErrors == null ? void 0 : fieldErrors[0];
24503
24511
  const {
@@ -24524,7 +24532,7 @@ var InputField = (_ref) => {
24524
24532
  field_target: field == null ? void 0 : field.target
24525
24533
  }));
24526
24534
  };
24527
- const handleChange = React30.useCallback((value) => {
24535
+ const handleChange = React32.useCallback((value) => {
24528
24536
  if (fieldError) {
24529
24537
  validateFields2([{
24530
24538
  value,
@@ -24540,7 +24548,7 @@ var InputField = (_ref) => {
24540
24548
  if (!FieldComponent) {
24541
24549
  return null;
24542
24550
  }
24543
- return /* @__PURE__ */ React30__namespace.default.createElement(FieldComponent, (0, import_extends.default)({}, field.properties, {
24551
+ return /* @__PURE__ */ React32__namespace.default.createElement(FieldComponent, (0, import_extends.default)({}, field.properties, {
24544
24552
  onChange: handleChange,
24545
24553
  onBlur: _onBlur,
24546
24554
  onFocus: _onFocus,
@@ -24576,7 +24584,7 @@ var ReadOnlyField = (_ref) => {
24576
24584
  if (!FieldComponent) {
24577
24585
  return null;
24578
24586
  }
24579
- return /* @__PURE__ */ React30__namespace.default.createElement(FieldComponent, (0, import_extends2.default)({}, field.properties, {
24587
+ return /* @__PURE__ */ React32__namespace.default.createElement(FieldComponent, (0, import_extends2.default)({}, field.properties, {
24580
24588
  id: field.id,
24581
24589
  externalData,
24582
24590
  fieldType: field.fieldType,
@@ -24601,14 +24609,14 @@ var NestedFormField = (_ref) => {
24601
24609
  const externalData = useExternalData();
24602
24610
  const form = useForm();
24603
24611
  const fieldValue = values[field.target];
24604
- const errorsByTarget = React30.useMemo(() => groupErrorsByTarget(errors), [errors]);
24612
+ const errorsByTarget = React32.useMemo(() => groupErrorsByTarget(errors), [errors]);
24605
24613
  const fieldErrors = errorsByTarget == null ? void 0 : errorsByTarget[field.target];
24606
24614
  const fieldError = fieldErrors == null ? void 0 : fieldErrors[0];
24607
24615
  const {
24608
24616
  requiredIndicator,
24609
24617
  requiredIndicatorPlacement
24610
24618
  } = form.requiredIndicatorProperties || {};
24611
- const handleChange = React30.useCallback((value) => {
24619
+ const handleChange = React32.useCallback((value) => {
24612
24620
  if (!value) {
24613
24621
  value = null;
24614
24622
  }
@@ -24618,7 +24626,7 @@ var NestedFormField = (_ref) => {
24618
24626
  if (!FieldComponent) {
24619
24627
  return null;
24620
24628
  }
24621
- return /* @__PURE__ */ React30__namespace.default.createElement(FieldComponent, (0, import_extends3.default)({}, field.properties, {
24629
+ return /* @__PURE__ */ React32__namespace.default.createElement(FieldComponent, (0, import_extends3.default)({}, field.properties, {
24622
24630
  onChange: handleChange,
24623
24631
  error: fieldError,
24624
24632
  errors: fieldErrors,
@@ -24634,6 +24642,130 @@ var NestedFormField = (_ref) => {
24634
24642
  }));
24635
24643
  };
24636
24644
 
24645
+ // ../form-fields/dist/esm/ui/form/components/form/submit-button-field.js
24646
+ var import_extends4 = __toESM(require_extends());
24647
+
24648
+ // ../form-fields/dist/esm/fields/submit-button/submit-button/utils.js
24649
+ var getCurrentStep = (form, fieldId) => {
24650
+ var _form$steps;
24651
+ const stepCount = form != null && form.steps ? form.steps.length - 1 : 0;
24652
+ const hasSteps = stepCount > 0;
24653
+ const stepNumber = hasSteps && (form == null || (_form$steps = form.steps) == null ? void 0 : _form$steps.findIndex((step) => {
24654
+ var _step$layout;
24655
+ return (_step$layout = step.layout) == null || (_step$layout = _step$layout.large) == null || (_step$layout = _step$layout.items) == null ? void 0 : _step$layout.find((item) => item.fieldId === fieldId);
24656
+ }));
24657
+ const isLastStep = stepNumber === stepCount;
24658
+ return {
24659
+ hasSteps,
24660
+ stepNumber,
24661
+ isLastStep
24662
+ };
24663
+ };
24664
+
24665
+ // ../form-fields/dist/esm/fields/submit-button/submit-button/use-submit-button.js
24666
+ var useSubmitButton = (_ref) => {
24667
+ let {
24668
+ form,
24669
+ id
24670
+ } = _ref;
24671
+ const {
24672
+ hasSteps,
24673
+ stepNumber,
24674
+ isLastStep
24675
+ } = getCurrentStep(form, id);
24676
+ const {
24677
+ inProgress,
24678
+ actions
24679
+ } = useFieldActions();
24680
+ const [submitInProgress, setSubmitInProgress] = React32.useState(false);
24681
+ const {
24682
+ formStatus
24683
+ } = useFormStatus();
24684
+ const isDisabled = submitInProgress;
24685
+ const isInProgress = inProgress || formStatus === FORM_STATUS.BUSY;
24686
+ const showPreviousButton = hasSteps && stepNumber !== 0;
24687
+ const showNextButton = hasSteps && !isLastStep;
24688
+ const showSubmitButton = !hasSteps || hasSteps && isLastStep;
24689
+ const handleSubmitClick = React32.useCallback(async () => {
24690
+ if (isInProgress) {
24691
+ return;
24692
+ }
24693
+ setSubmitInProgress(true);
24694
+ try {
24695
+ await (actions == null ? void 0 : actions.submitForm());
24696
+ } catch (error2) {
24697
+ console.error(error2);
24698
+ }
24699
+ setSubmitInProgress(false);
24700
+ }, [actions, isInProgress]);
24701
+ return {
24702
+ handleSubmitClick,
24703
+ isDisabled,
24704
+ isInProgress,
24705
+ showPreviousButton,
24706
+ showNextButton,
24707
+ showSubmitButton,
24708
+ hasSteps
24709
+ };
24710
+ };
24711
+
24712
+ // ../form-fields/dist/esm/ui/form/components/form/submit-button-field.js
24713
+ var SubmitButtonField = (_ref) => {
24714
+ let {
24715
+ field,
24716
+ FieldLayout
24717
+ } = _ref;
24718
+ const {
24719
+ submitText,
24720
+ nextText,
24721
+ previousText,
24722
+ text
24723
+ } = field.properties;
24724
+ const componentsById = useFormFields();
24725
+ const externalData = useExternalData();
24726
+ const form = useForm();
24727
+ const {
24728
+ actions
24729
+ } = useFieldActions();
24730
+ const {
24731
+ handleSubmitClick,
24732
+ isDisabled,
24733
+ isInProgress,
24734
+ showPreviousButton,
24735
+ showNextButton,
24736
+ showSubmitButton,
24737
+ hasSteps
24738
+ } = useSubmitButton({
24739
+ form,
24740
+ id: field.id
24741
+ });
24742
+ const submitButtonText = submitText || text || "";
24743
+ const previousButtonText = previousText || "";
24744
+ const nextButtonText = nextText || "";
24745
+ const FieldComponent = componentsById[field.fieldType];
24746
+ if (!FieldComponent) {
24747
+ return null;
24748
+ }
24749
+ return /* @__PURE__ */ React32__namespace.default.createElement(FieldComponent, (0, import_extends4.default)({}, field.properties, {
24750
+ id: field.id,
24751
+ externalData,
24752
+ fieldType: field.fieldType,
24753
+ FieldLayout,
24754
+ hasSteps,
24755
+ isDisabled,
24756
+ isInProgress,
24757
+ showPreviousButton,
24758
+ showNextButton,
24759
+ showSubmitButton,
24760
+ submitText: submitButtonText,
24761
+ previousText: previousButtonText,
24762
+ nextText: nextButtonText,
24763
+ onSubmitClick: handleSubmitClick,
24764
+ onPreviousClick: () => actions == null ? void 0 : actions.setPreviousStep(),
24765
+ onNextClick: () => actions == null ? void 0 : actions.setNextStep()
24766
+ }));
24767
+ };
24768
+
24637
24769
  // ../form-fields/dist/esm/services/multiline-address.js
24638
24770
  var isMultilineAddressField = (field) => {
24639
24771
  var _field$view3, _field$view4;
@@ -24648,18 +24780,24 @@ var FormField = (_ref) => {
24648
24780
  ...rest
24649
24781
  } = _ref;
24650
24782
  if (!isMultilineAddressField(field) && isNestedFormField(field)) {
24651
- return /* @__PURE__ */ React30__namespace.default.createElement(NestedFormField, (0, import_extends4.default)({}, rest, {
24783
+ return /* @__PURE__ */ React32__namespace.default.createElement(NestedFormField, (0, import_extends5.default)({}, rest, {
24652
24784
  field,
24653
24785
  FieldLayout
24654
24786
  }));
24655
24787
  }
24656
24788
  if (isInputField2(field)) {
24657
- return /* @__PURE__ */ React30__namespace.default.createElement(InputField, (0, import_extends4.default)({}, rest, {
24789
+ return /* @__PURE__ */ React32__namespace.default.createElement(InputField, (0, import_extends5.default)({}, rest, {
24790
+ field,
24791
+ FieldLayout
24792
+ }));
24793
+ }
24794
+ if (field.fieldType === "SUBMIT_BUTTON") {
24795
+ return /* @__PURE__ */ React32__namespace.default.createElement(SubmitButtonField, (0, import_extends5.default)({}, rest, {
24658
24796
  field,
24659
24797
  FieldLayout
24660
24798
  }));
24661
24799
  }
24662
- return /* @__PURE__ */ React30__namespace.default.createElement(ReadOnlyField, (0, import_extends4.default)({}, rest, {
24800
+ return /* @__PURE__ */ React32__namespace.default.createElement(ReadOnlyField, (0, import_extends5.default)({}, rest, {
24663
24801
  field,
24664
24802
  FieldLayout
24665
24803
  }));
@@ -24675,7 +24813,7 @@ var createFormFields = (_ref) => {
24675
24813
  FieldLayout
24676
24814
  } = _ref;
24677
24815
  return form.fields.map((formField) => {
24678
- const component = /* @__PURE__ */ React30__namespace.default.createElement(FormField, {
24816
+ const component = /* @__PURE__ */ React32__namespace.default.createElement(FormField, {
24679
24817
  key: formField.id,
24680
24818
  field: formField,
24681
24819
  values,
@@ -24710,19 +24848,19 @@ var Focusable = (_ref) => {
24710
24848
  children,
24711
24849
  fieldId
24712
24850
  } = _ref;
24713
- const viewRef = React30.useRef(null);
24851
+ const viewRef = React32.useRef(null);
24714
24852
  const {
24715
24853
  scrollTo
24716
24854
  } = useScroll();
24717
24855
  const {
24718
24856
  focusedFieldId
24719
24857
  } = useFocusedField();
24720
- React30.useEffect(() => {
24858
+ React32.useEffect(() => {
24721
24859
  if (viewRef.current && fieldId === focusedFieldId) {
24722
24860
  scrollTo(viewRef.current);
24723
24861
  }
24724
24862
  }, [scrollTo, fieldId, focusedFieldId]);
24725
- return /* @__PURE__ */ React30__namespace.default.createElement("div", {
24863
+ return /* @__PURE__ */ React32__namespace.default.createElement("div", {
24726
24864
  ref: viewRef
24727
24865
  }, children);
24728
24866
  };
@@ -24745,17 +24883,17 @@ var Grid = (_ref) => {
24745
24883
  enableAnimations
24746
24884
  } = useConfig();
24747
24885
  const reactElementsByRow = getReactElementsByRow(items);
24748
- return /* @__PURE__ */ React30__namespace.default.createElement("div", {
24886
+ return /* @__PURE__ */ React32__namespace.default.createElement("div", {
24749
24887
  className: grid_module_default.container,
24750
24888
  dir: isRTL ? "rtl" : ""
24751
24889
  }, reactElementsByRow.map((elements, index) => {
24752
24890
  var _elements$;
24753
24891
  const fieldId = (_elements$ = elements[0]) == null || (_elements$ = _elements$.props) == null || (_elements$ = _elements$.field) == null ? void 0 : _elements$.id;
24754
24892
  const key = isMobile && fieldId || index;
24755
- return /* @__PURE__ */ React30__namespace.default.createElement(Focusable, {
24893
+ return /* @__PURE__ */ React32__namespace.default.createElement(Focusable, {
24756
24894
  key: fieldId,
24757
24895
  fieldId
24758
- }, /* @__PURE__ */ React30__namespace.default.createElement("div", {
24896
+ }, /* @__PURE__ */ React32__namespace.default.createElement("div", {
24759
24897
  key,
24760
24898
  style: getGridStyle({
24761
24899
  layout
@@ -24769,7 +24907,7 @@ var Grid = (_ref) => {
24769
24907
  function getReactElementsByRow(items) {
24770
24908
  const reactElementsByRow = items.reduce((result2, item) => {
24771
24909
  const row = item.layout.row;
24772
- const element = /* @__PURE__ */ React30__namespace.default.cloneElement(item.component, {
24910
+ const element = /* @__PURE__ */ React32__namespace.default.cloneElement(item.component, {
24773
24911
  key: item.id
24774
24912
  });
24775
24913
  if (result2[row]) {
@@ -24781,14 +24919,14 @@ function getReactElementsByRow(items) {
24781
24919
  }, []);
24782
24920
  return reactElementsByRow;
24783
24921
  }
24784
- var FormViewContext = /* @__PURE__ */ React30.createContext(void 0);
24922
+ var FormViewContext = /* @__PURE__ */ React32.createContext(void 0);
24785
24923
  function useFieldView(fieldId) {
24786
24924
  const context = useFormView();
24787
24925
  const fieldView = context.fields.find((field) => field.id === fieldId);
24788
24926
  return fieldView;
24789
24927
  }
24790
24928
  function useFormView() {
24791
- const context = React30.useContext(FormViewContext);
24929
+ const context = React32.useContext(FormViewContext);
24792
24930
  if (context === void 0) {
24793
24931
  throw new Error("useFormView must be used within a FormViewProvider");
24794
24932
  }
@@ -24796,7 +24934,7 @@ function useFormView() {
24796
24934
  }
24797
24935
 
24798
24936
  // ../form-fields/dist/esm/field-layout/default-field-layout.js
24799
- var import_extends5 = __toESM(require_extends());
24937
+ var import_extends6 = __toESM(require_extends());
24800
24938
 
24801
24939
  // ../form-fields/dist/esm/field-layout/default-field-layout.module.scss
24802
24940
  var default_field_layout_module_default = {};
@@ -24825,7 +24963,7 @@ var DefaultFieldLayout = (_ref) => {
24825
24963
  const gridColumn = `${layout.column + 1} / span ${layout.width}`;
24826
24964
  const [labelRow, inputRow] = rows.map((currentRow) => `${currentRow} / span 1`);
24827
24965
  if ("children" in rest) {
24828
- return /* @__PURE__ */ React30__namespace.default.createElement("div", (0, import_extends5.default)({
24966
+ return /* @__PURE__ */ React32__namespace.default.createElement("div", (0, import_extends6.default)({
24829
24967
  style: {
24830
24968
  gridRow,
24831
24969
  gridColumn
@@ -24837,13 +24975,13 @@ var DefaultFieldLayout = (_ref) => {
24837
24975
  renderInput,
24838
24976
  renderDescription
24839
24977
  } = rest;
24840
- return /* @__PURE__ */ React30__namespace.default.createElement(React30__namespace.default.Fragment, null, /* @__PURE__ */ React30__namespace.default.createElement("div", {
24978
+ return /* @__PURE__ */ React32__namespace.default.createElement(React32__namespace.default.Fragment, null, /* @__PURE__ */ React32__namespace.default.createElement("div", {
24841
24979
  style: {
24842
24980
  gridRow: labelRow,
24843
24981
  gridColumn
24844
24982
  },
24845
24983
  className: default_field_layout_module_default.label
24846
- }, renderLabel()), /* @__PURE__ */ React30__namespace.default.createElement("div", (0, import_extends5.default)({
24984
+ }, renderLabel()), /* @__PURE__ */ React32__namespace.default.createElement("div", (0, import_extends6.default)({
24847
24985
  style: {
24848
24986
  gridRow: inputRow,
24849
24987
  gridColumn
@@ -24869,18 +25007,18 @@ var FormRoot = (_ref) => {
24869
25007
  errors,
24870
25008
  FieldLayout: DefaultFieldLayout
24871
25009
  });
24872
- return /* @__PURE__ */ React30__namespace.default.createElement(Grid, {
25010
+ return /* @__PURE__ */ React32__namespace.default.createElement(Grid, {
24873
25011
  isRTL,
24874
25012
  items: formFields,
24875
25013
  layout: form.grid
24876
25014
  });
24877
25015
  };
24878
25016
  var Form = (props) => {
24879
- return /* @__PURE__ */ React30__namespace.default.createElement(FormViewContext.Provider, {
25017
+ return /* @__PURE__ */ React32__namespace.default.createElement(FormViewContext.Provider, {
24880
25018
  value: props.form
24881
- }, /* @__PURE__ */ React30__namespace.default.createElement(UniqueFieldSuffixContextProvider, {
25019
+ }, /* @__PURE__ */ React32__namespace.default.createElement(UniqueFieldSuffixContextProvider, {
24882
25020
  parentId: props.form.parentId
24883
- }, /* @__PURE__ */ React30__namespace.default.createElement(FormRoot, props)));
25021
+ }, /* @__PURE__ */ React32__namespace.default.createElement(FormRoot, props)));
24884
25022
  };
24885
25023
 
24886
25024
  // ../form-fields/dist/esm/utils/sort-fields.js
@@ -26862,19 +27000,19 @@ var initialState = {
26862
27000
  getCountryAddressForm: () => void 0,
26863
27001
  addressTemplates: void 0
26864
27002
  };
26865
- var AddressFormsContext = /* @__PURE__ */ React30.createContext(initialState);
27003
+ var AddressFormsContext = /* @__PURE__ */ React32.createContext(initialState);
26866
27004
  var getAddressForm = (templates, country) => {
26867
27005
  var _templates$find, _templates$find2;
26868
27006
  return (templates == null || (_templates$find = templates.find((template) => template.country === country)) == null ? void 0 : _templates$find.template) || (templates == null || (_templates$find2 = templates.find((template) => template.country === "COMMON")) == null ? void 0 : _templates$find2.template);
26869
27007
  };
26870
27008
  function useAddressForms() {
26871
- const context = React30.useContext(AddressFormsContext);
27009
+ const context = React32.useContext(AddressFormsContext);
26872
27010
  if (context === void 0) {
26873
27011
  throw new Error("useAddressForms must be used within a AddressFormsContext");
26874
27012
  }
26875
27013
  return context;
26876
27014
  }
26877
- var FieldInitialDataContext = /* @__PURE__ */ React30.createContext(void 0);
27015
+ var FieldInitialDataContext = /* @__PURE__ */ React32.createContext(void 0);
26878
27016
 
26879
27017
  // ../form-fields/dist/esm/fields/vat-id/vat-id-validation.js
26880
27018
  init_esm2();
@@ -26902,12 +27040,12 @@ function isCpfValid(modelValue) {
26902
27040
  if (!modelValue || CPF_BLACKLIST.includes(modelValue)) {
26903
27041
  return false;
26904
27042
  }
26905
- let i2, v1 = 0, v2;
27043
+ let i, v1 = 0, v2;
26906
27044
  const chars = modelValue.replace(/\D/g, "").split("");
26907
27045
  if (chars.length === 11) {
26908
27046
  const factors = [10, 9, 8, 7, 6, 5, 4, 3, 2];
26909
- for (i2 = 0; i2 < factors.length; ++i2) {
26910
- v1 += factors[i2] * parseInt(chars[i2], 10);
27047
+ for (i = 0; i < factors.length; ++i) {
27048
+ v1 += factors[i] * parseInt(chars[i], 10);
26911
27049
  }
26912
27050
  v1 = 11 - v1 % 11;
26913
27051
  if (v1 >= 10) {
@@ -26917,8 +27055,8 @@ function isCpfValid(modelValue) {
26917
27055
  return false;
26918
27056
  }
26919
27057
  v2 = 2 * v1;
26920
- for (i2 = 0; i2 < factors.length; ++i2) {
26921
- v2 += (factors[i2] + 1) * parseInt(chars[i2], 10);
27058
+ for (i = 0; i < factors.length; ++i) {
27059
+ v2 += (factors[i] + 1) * parseInt(chars[i], 10);
26922
27060
  }
26923
27061
  v2 = 11 - v2 % 11;
26924
27062
  if (v2 >= 10) {
@@ -27964,8 +28102,8 @@ function evaluateOverrideConditionFactory(dateFactory = () => /* @__PURE__ */ ne
27964
28102
  try {
27965
28103
  const rule = getRule(override.condition);
27966
28104
  return rule.evaluate(submission);
27967
- } catch (e2) {
27968
- console.error(e2);
28105
+ } catch (e) {
28106
+ console.error(e);
27969
28107
  return false;
27970
28108
  }
27971
28109
  }
@@ -28506,7 +28644,7 @@ function clearFieldsWhenHiddenByRule(form, overrides, currentValues, newValues,
28506
28644
  const fieldCount = (form.fields ?? []).length;
28507
28645
  const clearedTargets = [];
28508
28646
  let currentForm = applyAllOverrides(form, currentValues, overrides);
28509
- for (let i2 = 0; i2 < fieldCount; i2++) {
28647
+ for (let i = 0; i < fieldCount; i++) {
28510
28648
  const newForm = applyAllOverrides(form, newValues, overrides);
28511
28649
  const newHiddenTargets = findHiddenTargets(newForm);
28512
28650
  const currentHiddenTargets = findHiddenTargets(currentForm);
@@ -28868,8 +29006,8 @@ function acceptOnlyValidPayments({ field, fieldValue }) {
28868
29006
 
28869
29007
  // ../form-viewer/dist/esm/components/form/use-form-values.js
28870
29008
  var useFormValues = (form, values, onChange, config) => {
28871
- const normalizedValues = React30.useMemo(() => normalizeValues(form, fillEmptyValues(form, values), true, config), [form, values, config]);
28872
- React30.useEffect(() => {
29009
+ const normalizedValues = React32.useMemo(() => normalizeValues(form, fillEmptyValues(form, values), true, config), [form, values, config]);
29010
+ React32.useEffect(() => {
28873
29011
  const hasAnyValueChanged = !deepEqual(normalizedValues, values);
28874
29012
  if (hasAnyValueChanged) {
28875
29013
  onChange?.(normalizedValues);
@@ -28881,7 +29019,7 @@ var useFormView2 = (form, stepId, breakpoint) => {
28881
29019
  const { isMobile } = useConfig();
28882
29020
  const experiments = useExperiments();
28883
29021
  const useFieldsV2 = experiments.isExperimentEnabled(EXPERIMENTS.USE_FIELDS_V2);
28884
- return React30.useMemo(() => {
29022
+ return React32.useMemo(() => {
28885
29023
  return (form?.steps || []).filter((step) => !stepId || stepId === step.id).map((step) => {
28886
29024
  return createFormView({
28887
29025
  form,
@@ -28894,7 +29032,7 @@ var useFormView2 = (form, stepId, breakpoint) => {
28894
29032
  }, [form, stepId, isMobile, breakpoint, useFieldsV2]);
28895
29033
  };
28896
29034
  var useReportFieldEdit = (form) => {
28897
- const lastChangedFields = React30.useRef([]);
29035
+ const lastChangedFields = React32.useRef([]);
28898
29036
  const bi = useBi();
28899
29037
  return (changedValues) => {
28900
29038
  const changedFieldTargets = Object.keys(changedValues);
@@ -28914,7 +29052,7 @@ var useReportFieldEdit = (form) => {
28914
29052
  };
28915
29053
  var useScrollToFirstError = ({ form, handleStepChange, currentStepId }) => {
28916
29054
  const { setFocusedFieldId } = useFocusedField();
28917
- const scrollToFirstError = React30.useCallback((errors) => {
29055
+ const scrollToFirstError = React32.useCallback((errors) => {
28918
29056
  const sortedFieldsInStep = getSortedFields(form, {
28919
29057
  stepId: currentStepId
28920
29058
  });
@@ -28923,7 +29061,7 @@ var useScrollToFirstError = ({ form, handleStepChange, currentStepId }) => {
28923
29061
  });
28924
29062
  setFocusedFieldId(fieldWithError?.id);
28925
29063
  }, [currentStepId, form, setFocusedFieldId]);
28926
- const handleScrollToFirstError = React30.useCallback((errors) => {
29064
+ const handleScrollToFirstError = React32.useCallback((errors) => {
28927
29065
  const sortedFields = getSortedFields(form);
28928
29066
  const field = sortedFields?.find((_field) => {
28929
29067
  return errors.some((error2) => _field.target === error2.errorPath.split("/")[0]);
@@ -28998,12 +29136,12 @@ var getCheckoutMessage = (text) => {
28998
29136
  }
28999
29137
  };
29000
29138
  };
29001
- var SubmitStatusContext = React30.createContext(void 0);
29139
+ var SubmitStatusContext = React32.createContext(void 0);
29002
29140
  var SubmitStatusProvider = ({ children }) => {
29003
- const [submitSuccessMessage, setSubmitSuccessMessage] = React30.useState();
29004
- const [submitFailureCode, setSubmitFailureCode] = React30.useState();
29005
- const [submitFailureMessage, setSubmitFailureMessage] = React30.useState();
29006
- const value = React30.useMemo(() => ({
29141
+ const [submitSuccessMessage, setSubmitSuccessMessage] = React32.useState();
29142
+ const [submitFailureCode, setSubmitFailureCode] = React32.useState();
29143
+ const [submitFailureMessage, setSubmitFailureMessage] = React32.useState();
29144
+ const value = React32.useMemo(() => ({
29007
29145
  submitSuccessMessage,
29008
29146
  submitFailureCode,
29009
29147
  submitFailureMessage,
@@ -29011,10 +29149,10 @@ var SubmitStatusProvider = ({ children }) => {
29011
29149
  setSubmitFailureCode,
29012
29150
  setSubmitFailureMessage
29013
29151
  }), [submitSuccessMessage, submitFailureCode, submitFailureMessage]);
29014
- return React30__namespace.default.createElement(SubmitStatusContext.Provider, { value }, children);
29152
+ return React32__namespace.default.createElement(SubmitStatusContext.Provider, { value }, children);
29015
29153
  };
29016
29154
  var useSubmitStatus = () => {
29017
- const context = React30.useContext(SubmitStatusContext);
29155
+ const context = React32.useContext(SubmitStatusContext);
29018
29156
  if (context === void 0) {
29019
29157
  throw new Error("useSubmitStatus must be used within a SubmitStatusProvider");
29020
29158
  }
@@ -29037,19 +29175,19 @@ var BiFormSubmissionStatus;
29037
29175
  })(BiFormSubmissionStatus || (BiFormSubmissionStatus = {}));
29038
29176
  var useSubmit = ({ validateAndScrollToError, submitAction, onSubmit, onSubmitSuccess, onSubmitFailure, resetFormValues, values, submitSettings, handleStepChange, navigateToCheckout, onValidate, handleScrollToFirstError }) => {
29039
29177
  const { setSubmitSuccessMessage, setSubmitFailureCode, setSubmitFailureMessage } = useSubmitStatus();
29040
- const { t: t2 } = useTranslation();
29178
+ const { t } = useTranslation();
29041
29179
  const { report } = useBi();
29042
29180
  const fireSubmitSuccess = useSubmitSuccessTrigger();
29043
29181
  const panorama = usePanorama();
29044
- const reportSubmitFormBi = React30.useCallback(({ status, id }) => report(submitFormClick({
29182
+ const reportSubmitFormBi = React32.useCallback(({ status, id }) => report(submitFormClick({
29045
29183
  submission_status: status,
29046
29184
  submission_id: id ?? void 0
29047
29185
  })), [report]);
29048
- const handleSubmitSuccess = React30.useCallback((submission) => {
29186
+ const handleSubmitSuccess = React32.useCallback((submission) => {
29049
29187
  const action = submitSettings?.submitSuccessAction;
29050
29188
  const checkoutId = submission?.orderDetails?.checkoutId;
29051
29189
  if (checkoutId && navigateToCheckout) {
29052
- setSubmitSuccessMessage(getCheckoutMessage(t2("submit.checkout.message")));
29190
+ setSubmitSuccessMessage(getCheckoutMessage(t("submit.checkout.message")));
29053
29191
  navigateToCheckout(checkoutId);
29054
29192
  } else if (action === SubmitSuccessAction.THANK_YOU_MESSAGE) {
29055
29193
  setSubmitSuccessMessage(submitSettings?.thankYouMessageOptions?.richContent);
@@ -29067,7 +29205,7 @@ var useSubmit = ({ validateAndScrollToError, submitAction, onSubmit, onSubmitSuc
29067
29205
  setSubmitFailureCode(void 0);
29068
29206
  setSubmitFailureMessage(void 0);
29069
29207
  }, [
29070
- t2,
29208
+ t,
29071
29209
  submitSettings,
29072
29210
  handleStepChange,
29073
29211
  navigateToCheckout,
@@ -29075,12 +29213,12 @@ var useSubmit = ({ validateAndScrollToError, submitAction, onSubmit, onSubmitSuc
29075
29213
  setSubmitFailureCode,
29076
29214
  setSubmitFailureMessage
29077
29215
  ]);
29078
- const handleSubmitFailure = React30.useCallback((error2) => {
29216
+ const handleSubmitFailure = React32.useCallback((error2) => {
29079
29217
  const err = getErrorCode(error2);
29080
29218
  setSubmitFailureCode(err);
29081
29219
  setSubmitSuccessMessage(void 0);
29082
29220
  }, [setSubmitFailureCode, setSubmitSuccessMessage]);
29083
- const handleCustomErrorMessages = React30.useCallback((error2) => {
29221
+ const handleCustomErrorMessages = React32.useCallback((error2) => {
29084
29222
  const errors = getErrorList(error2);
29085
29223
  const formCustomErrorMessage = getFormCustomErrorMessage(errors);
29086
29224
  if (formCustomErrorMessage) {
@@ -29092,7 +29230,7 @@ var useSubmit = ({ validateAndScrollToError, submitAction, onSubmit, onSubmitSuc
29092
29230
  handleScrollToFirstError?.(fieldCustomErrorMessages);
29093
29231
  }
29094
29232
  }, [setSubmitFailureMessage, onValidate, handleScrollToFirstError]);
29095
- const submitForm = React30.useCallback(async () => {
29233
+ const submitForm = React32.useCallback(async () => {
29096
29234
  const errors = await validateAndScrollToError(values);
29097
29235
  onSubmit?.();
29098
29236
  reportSubmitFormBi({ status: BiFormSubmissionStatus.INIT });
@@ -29168,7 +29306,7 @@ var reportErrorChanges = ({ bi, existingErrors, newErrors, form }) => {
29168
29306
  var useValidation = ({ form, errorsRef, setErrors, validationMode }) => {
29169
29307
  const { addressTemplates } = useAddressForms();
29170
29308
  const externalData = useExternalData();
29171
- const validateFields2 = React30.useCallback(async (newValues) => {
29309
+ const validateFields2 = React32.useCallback(async (newValues) => {
29172
29310
  const result2 = await validate(form, newValues, addressTemplates, validationMode);
29173
29311
  const _errors = result2?.errors || [];
29174
29312
  const additionalErrors = runAdditionalValidation({
@@ -29180,7 +29318,7 @@ var useValidation = ({ form, errorsRef, setErrors, validationMode }) => {
29180
29318
  setErrors(allErrors);
29181
29319
  return allErrors;
29182
29320
  }, [form, setErrors, addressTemplates, externalData, validationMode]);
29183
- const handleFieldValidation = React30.useCallback(async (fieldsToValidate) => {
29321
+ const handleFieldValidation = React32.useCallback(async (fieldsToValidate) => {
29184
29322
  const fieldErrors = await getFieldErrors(fieldsToValidate, form, addressTemplates, externalData, validationMode);
29185
29323
  const otherErrors = (errorsRef.current ?? []).filter((error2) => {
29186
29324
  return !findErrorByNormalizedPath(fieldsToValidate, error2.errorPath);
@@ -29196,7 +29334,7 @@ var useValidation = ({ form, errorsRef, setErrors, validationMode }) => {
29196
29334
  externalData,
29197
29335
  validationMode
29198
29336
  ]);
29199
- const validateStep = React30.useCallback(async (stepId, newValues) => {
29337
+ const validateStep = React32.useCallback(async (stepId, newValues) => {
29200
29338
  const items = form?.steps?.find((step) => step.id === stepId)?.layout?.large?.items || [];
29201
29339
  const validationErrors = await Promise.all(items.map(async (item) => {
29202
29340
  const field = form?.fields?.find((_field) => _field.id === item.fieldId);
@@ -29232,26 +29370,26 @@ var SubmitThankYouMessage = ({ messageText }) => {
29232
29370
  if (!messageText) {
29233
29371
  return null;
29234
29372
  }
29235
- return React30__namespace.default.createElement(ricos_viewer_default, { dataHook: DATA_HOOKS.SUBMIT_THANK_YOU_MESSAGE, content: messageText, customTheme, className: submit_status_message_module_default.thankYouMessage });
29373
+ return React32__namespace.default.createElement(ricos_viewer_default, { dataHook: DATA_HOOKS.SUBMIT_THANK_YOU_MESSAGE, content: messageText, customTheme, className: submit_status_message_module_default.thankYouMessage });
29236
29374
  };
29237
- var t = ({ size: r, ...o }) => React30__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: r || "24", height: r || "24", ...o }, React30__namespace.createElement("path", { fillRule: "evenodd", d: "M11.5,3 C16.187,3 20,6.813 20,11.5 C20,16.187 16.187,20 11.5,20 C6.813,20 3,16.187 3,11.5 C3,6.813 6.813,3 11.5,3 Z M11.5,4 C7.364,4 4,7.364 4,11.5 C4,15.636 7.364,19 11.5,19 C15.636,19 19,15.636 19,11.5 C19,7.364 15.636,4 11.5,4 Z M12,14 L12,15 L11,15 L11,14 L12,14 Z M12,8 L12,13 L11,13 L11,8 L12,8 Z" }));
29238
- t.displayName = "Error";
29239
- var i = t;
29375
+ var Error2 = ({ size, ...props }) => /* @__PURE__ */ React32__namespace.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React32__namespace.createElement("path", { fillRule: "evenodd", d: "M11.5,3 C16.187,3 20,6.813 20,11.5 C20,16.187 16.187,20 11.5,20 C6.813,20 3,16.187 3,11.5 C3,6.813 6.813,3 11.5,3 Z M11.5,4 C7.364,4 4,7.364 4,11.5 C4,15.636 7.364,19 11.5,19 C15.636,19 19,15.636 19,11.5 C19,7.364 15.636,4 11.5,4 Z M12,14 L12,15 L11,15 L11,14 L12,14 Z M12,8 L12,13 L11,13 L11,8 L12,8 Z" }));
29376
+ Error2.displayName = "Error";
29377
+ var Error_default = Error2;
29240
29378
 
29241
29379
  // ../form-viewer/dist/esm/components/submit-status-message/submit-error-message.js
29242
29380
  var ERROR_MESSAGE_KEY = "submit.failed.message";
29243
29381
  var SubmitErrorMessage = ({ errorMessageCode, errorMessage }) => {
29244
- const { t: t2, i18n: i18n2 } = useTranslation();
29382
+ const { t, i18n: i18n2 } = useTranslation();
29245
29383
  if (!errorMessageCode && !errorMessage) {
29246
29384
  return null;
29247
29385
  }
29248
29386
  const errorMessageKeyByCode = `${ERROR_MESSAGE_KEY}.${errorMessageCode}`;
29249
29387
  const errorMessageKey = i18n2.exists(`${TRANSLATIONS_NAMESPACE}:${errorMessageKeyByCode}`) ? errorMessageKeyByCode : ERROR_MESSAGE_KEY;
29250
- return React30__namespace.default.createElement(
29388
+ return React32__namespace.default.createElement(
29251
29389
  "div",
29252
29390
  { className: submit_status_message_module_default.errorMessage, "data-hook": DATA_HOOKS.SUBMIT_ERROR_MESSAGE },
29253
- React30__namespace.default.createElement(i, { className: submit_status_message_module_default.errorIcon, "aria-hidden": "true" }),
29254
- errorMessage || t2(errorMessageKey)
29391
+ React32__namespace.default.createElement(Error_default, { className: submit_status_message_module_default.errorIcon, "aria-hidden": "true" }),
29392
+ errorMessage || t(errorMessageKey)
29255
29393
  );
29256
29394
  };
29257
29395
 
@@ -29270,8 +29408,8 @@ var transitionStyles = {
29270
29408
  exited: { opacity: 0 }
29271
29409
  };
29272
29410
  var FadeOut = ({ visible, children }) => {
29273
- const nodeRef = React30.useRef(null);
29274
- return React30__namespace.default.createElement(Transition_default, { nodeRef, in: visible, timeout: DURATION }, (state) => React30__namespace.default.createElement("div", { ref: nodeRef, style: {
29411
+ const nodeRef = React32.useRef(null);
29412
+ return React32__namespace.default.createElement(Transition_default, { nodeRef, in: visible, timeout: DURATION }, (state) => React32__namespace.default.createElement("div", { ref: nodeRef, style: {
29275
29413
  ...defaultStyle,
29276
29414
  ...transitionStyles[state]
29277
29415
  } }, [ENTERING, ENTERED, EXITING].includes(state) ? children : null));
@@ -29280,24 +29418,24 @@ var FadeOut = ({ visible, children }) => {
29280
29418
  // ../form-viewer/dist/esm/components/submit-status-message/submit-status-message.js
29281
29419
  var SubmitStatusMessage = () => {
29282
29420
  const { submitSuccessMessage, submitFailureCode, submitFailureMessage } = useSubmitStatus();
29283
- return React30__namespace.default.createElement(
29421
+ return React32__namespace.default.createElement(
29284
29422
  "div",
29285
29423
  { role: "region", "aria-live": "polite" },
29286
- React30__namespace.default.createElement(
29424
+ React32__namespace.default.createElement(
29287
29425
  FadeOut,
29288
29426
  { visible: !!submitSuccessMessage },
29289
- React30__namespace.default.createElement(SubmitThankYouMessage, { messageText: submitSuccessMessage })
29427
+ React32__namespace.default.createElement(SubmitThankYouMessage, { messageText: submitSuccessMessage })
29290
29428
  ),
29291
- React30__namespace.default.createElement(SubmitErrorMessage, { errorMessageCode: submitFailureCode, errorMessage: submitFailureMessage })
29429
+ React32__namespace.default.createElement(SubmitErrorMessage, { errorMessageCode: submitFailureCode, errorMessage: submitFailureMessage })
29292
29430
  );
29293
29431
  };
29294
29432
  var StepTitleA11y = ({ index = 0, total = 0 }) => {
29295
- const { t: t2 } = useTranslation();
29296
- const stepTitleA11y = t2("form.a11y.step.index.title", {
29433
+ const { t } = useTranslation();
29434
+ const stepTitleA11y = t("form.a11y.step.index.title", {
29297
29435
  index: index + 1,
29298
29436
  total
29299
29437
  });
29300
- return total > 1 ? React30__namespace.default.createElement("span", { "aria-label": stepTitleA11y, "aria-live": "polite" }) : null;
29438
+ return total > 1 ? React32__namespace.default.createElement("span", { "aria-label": stepTitleA11y, "aria-live": "polite" }) : null;
29301
29439
  };
29302
29440
 
29303
29441
  // ../form-viewer/dist/esm/components/form/form-root.js
@@ -29324,13 +29462,13 @@ var FormRoot2 = ({
29324
29462
  onStatusChange,
29325
29463
  validationMode
29326
29464
  }) => {
29327
- const formWithOverrides = React30.useMemo(() => applyAllOverrides(unprocessedForm, unprocessedValues, overrides), [unprocessedForm, unprocessedValues, overrides]);
29465
+ const formWithOverrides = React32.useMemo(() => applyAllOverrides(unprocessedForm, unprocessedValues, overrides), [unprocessedForm, unprocessedValues, overrides]);
29328
29466
  const formId = formWithOverrides.id;
29329
29467
  const { setFocusedFieldId } = useFocusedField();
29330
29468
  const normalizedValues = useFormValues(formWithOverrides, unprocessedValues, onChange, config);
29331
- const valuesRef = React30.useRef(normalizedValues);
29469
+ const valuesRef = React32.useRef(normalizedValues);
29332
29470
  valuesRef.current = normalizedValues;
29333
- const errorsRef = React30.useRef(errors);
29471
+ const errorsRef = React32.useRef(errors);
29334
29472
  errorsRef.current = errors;
29335
29473
  const bi = useBi();
29336
29474
  const reportFieldEdit = useReportFieldEdit(formWithOverrides);
@@ -29359,7 +29497,7 @@ var FormRoot2 = ({
29359
29497
  });
29360
29498
  onValidate(newErrors);
29361
29499
  };
29362
- React30.useEffect(() => {
29500
+ React32.useEffect(() => {
29363
29501
  bi.report(formView({ mode: readOnly ? "preview" : "live_site" }));
29364
29502
  }, []);
29365
29503
  const formViews = useFormView2(formWithOverrides, stepId, breakpoint);
@@ -29370,7 +29508,7 @@ var FormRoot2 = ({
29370
29508
  setErrors: _onValidate,
29371
29509
  validationMode
29372
29510
  });
29373
- const handleStepChange = React30.useCallback((step) => {
29511
+ const handleStepChange = React32.useCallback((step) => {
29374
29512
  const newStepId = formWithOverrides.steps?.[step]?.id;
29375
29513
  if (newStepId) {
29376
29514
  const firstFieldInStep = getSortedFields(formWithOverrides, {
@@ -29385,17 +29523,17 @@ var FormRoot2 = ({
29385
29523
  handleStepChange,
29386
29524
  currentStepId: stepId
29387
29525
  });
29388
- const resetFormValues = React30.useCallback(() => {
29526
+ const resetFormValues = React32.useCallback(() => {
29389
29527
  onChange(fillEmptyValues(formWithOverrides, {}));
29390
29528
  }, [formWithOverrides, onChange]);
29391
- const validateAndScrollToError = React30.useCallback(async (values) => {
29529
+ const validateAndScrollToError = React32.useCallback(async (values) => {
29392
29530
  const validationErrors = await validateFields2(values);
29393
29531
  if (validationErrors && validationErrors.length) {
29394
29532
  handleScrollToFirstError(validationErrors);
29395
29533
  }
29396
29534
  return validationErrors;
29397
29535
  }, [validateFields2, handleScrollToFirstError]);
29398
- const submitAction = React30.useCallback(async (values) => {
29536
+ const submitAction = React32.useCallback(async (values) => {
29399
29537
  const response = await actions?.submitForm?.(formId, values);
29400
29538
  return response?.submission;
29401
29539
  }, [actions, formId]);
@@ -29413,7 +29551,7 @@ var FormRoot2 = ({
29413
29551
  onValidate: _onValidate,
29414
29552
  handleScrollToFirstError
29415
29553
  });
29416
- React30.useImperativeHandle(forwardedRef, () => ({
29554
+ React32.useImperativeHandle(forwardedRef, () => ({
29417
29555
  submit: submitForm,
29418
29556
  validate: async () => {
29419
29557
  const validationErrors = await validateFields2(normalizedValues);
@@ -29432,9 +29570,9 @@ var FormRoot2 = ({
29432
29570
  scrollToFirstError
29433
29571
  ]);
29434
29572
  const currentStep = getStepIndex(stepId, formWithOverrides.steps);
29435
- const setNextStep = React30.useCallback(() => handleStepChange(currentStep + 1), [currentStep, handleStepChange]);
29436
- const setPreviousStep = React30.useCallback(() => handleStepChange(currentStep - 1), [currentStep, handleStepChange]);
29437
- const fieldActions = React30.useMemo(() => actions ? {
29573
+ const setNextStep = React32.useCallback(() => handleStepChange(currentStep + 1), [currentStep, handleStepChange]);
29574
+ const setPreviousStep = React32.useCallback(() => handleStepChange(currentStep - 1), [currentStep, handleStepChange]);
29575
+ const fieldActions = React32.useMemo(() => actions ? {
29438
29576
  actions: { ...actions, submitForm, setNextStep, setPreviousStep },
29439
29577
  formId,
29440
29578
  inProgress
@@ -29442,23 +29580,23 @@ var FormRoot2 = ({
29442
29580
  if (!formViews?.length || !currentView) {
29443
29581
  return null;
29444
29582
  }
29445
- return React30__namespace.default.createElement(
29583
+ return React32__namespace.default.createElement(
29446
29584
  FieldValidationContext.Provider,
29447
29585
  { value: {
29448
29586
  validateFields: handleFieldValidation
29449
29587
  } },
29450
- React30__namespace.default.createElement(
29588
+ React32__namespace.default.createElement(
29451
29589
  FieldActionsContext.Provider,
29452
29590
  { value: fieldActions },
29453
- React30__namespace.default.createElement(
29591
+ React32__namespace.default.createElement(
29454
29592
  FormStatusProvider,
29455
29593
  { onStatusChange },
29456
- React30__namespace.default.createElement(
29594
+ React32__namespace.default.createElement(
29457
29595
  "div",
29458
29596
  { "data-hook": DATA_HOOKS.FORM_ROOT },
29459
- React30__namespace.default.createElement(Form, { form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT }),
29460
- React30__namespace.default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
29461
- React30__namespace.default.createElement(SubmitStatusMessage, null)
29597
+ React32__namespace.default.createElement(Form, { form: currentView, values: normalizedValues, onFieldChange, errors, dataHook: DATA_HOOKS.FORM_ROOT }),
29598
+ React32__namespace.default.createElement(StepTitleA11y, { total: formWithOverrides.steps?.length, index: currentStep }),
29599
+ React32__namespace.default.createElement(SubmitStatusMessage, null)
29462
29600
  )
29463
29601
  )
29464
29602
  )
@@ -29471,8 +29609,8 @@ var dummyBi = {
29471
29609
  updateDefaults: () => dummyBi
29472
29610
  };
29473
29611
  var useFormBi = (form, bi, biFormFillSessionId) => {
29474
- const formEditSessionId = React30.useMemo(generateUUID, []);
29475
- return React30.useMemo(() => {
29612
+ const formEditSessionId = React32.useMemo(generateUUID, []);
29613
+ return React32.useMemo(() => {
29476
29614
  if (!bi) {
29477
29615
  return dummyBi;
29478
29616
  }
@@ -29502,12 +29640,12 @@ var useFormBi = (form, bi, biFormFillSessionId) => {
29502
29640
 
29503
29641
  // ../form-viewer/dist/esm/components/root/form-viewer-provider.js
29504
29642
  var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile, isEditor, isComposer, isRTL, compId, locale, regionalFormat, externalData, fields, forcedState, instance, children, httpClient, panorama, experiments, translationNamespace, currency, userData, WixRicosViewer, addressTemplates, atlasBaseUrl, fieldInitialData, enableAnimations }) => {
29505
- const translations = React30.useMemo(() => ({
29643
+ const translations = React32.useMemo(() => ({
29506
29644
  t: i18n2.getFixedT(locale, translationNamespace),
29507
29645
  i18n: i18n2
29508
29646
  }), [locale, i18n2, translationNamespace]);
29509
29647
  const formBi = useFormBi(form, bi, biFormFillSessionId);
29510
- const config = React30.useMemo(() => ({
29648
+ const config = React32.useMemo(() => ({
29511
29649
  locale,
29512
29650
  regionalFormat,
29513
29651
  instance,
@@ -29534,59 +29672,59 @@ var FormViewerProvider = ({ i18n: i18n2, bi, biFormFillSessionId, form, isMobile
29534
29672
  isRTL,
29535
29673
  enableAnimations
29536
29674
  ]);
29537
- const forcedViewState = React30.useMemo(() => forcedState ?? [], [forcedState]);
29538
- return React30__namespace.default.createElement(
29675
+ const forcedViewState = React32.useMemo(() => forcedState ?? [], [forcedState]);
29676
+ return React32__namespace.default.createElement(
29539
29677
  FormFieldsContext.Provider,
29540
29678
  { value: fields },
29541
- React30__namespace.default.createElement(
29679
+ React32__namespace.default.createElement(
29542
29680
  HttpClientContext.Provider,
29543
29681
  { value: { httpClient } },
29544
- React30__namespace.default.createElement(
29682
+ React32__namespace.default.createElement(
29545
29683
  PanoramaContext.Provider,
29546
29684
  { value: { panorama } },
29547
- React30__namespace.default.createElement(
29685
+ React32__namespace.default.createElement(
29548
29686
  TranslationContext.Provider,
29549
29687
  { value: translations },
29550
- React30__namespace.default.createElement(
29688
+ React32__namespace.default.createElement(
29551
29689
  ScrollProvider,
29552
29690
  null,
29553
- React30__namespace.default.createElement(
29691
+ React32__namespace.default.createElement(
29554
29692
  FocusedFieldProvider,
29555
29693
  null,
29556
- React30__namespace.default.createElement(
29694
+ React32__namespace.default.createElement(
29557
29695
  FieldInitialDataContext.Provider,
29558
29696
  { value: fieldInitialData },
29559
- React30__namespace.default.createElement(
29697
+ React32__namespace.default.createElement(
29560
29698
  BiContext.Provider,
29561
29699
  { value: formBi },
29562
- React30__namespace.default.createElement(
29700
+ React32__namespace.default.createElement(
29563
29701
  ExternalDataProvider,
29564
29702
  { externalData },
29565
- React30__namespace.default.createElement(
29703
+ React32__namespace.default.createElement(
29566
29704
  ConfigContext.Provider,
29567
29705
  { value: config },
29568
- React30__namespace.default.createElement(
29706
+ React32__namespace.default.createElement(
29569
29707
  ForcedStateContext.Provider,
29570
29708
  { value: forcedViewState },
29571
- React30__namespace.default.createElement(
29709
+ React32__namespace.default.createElement(
29572
29710
  FormContext.Provider,
29573
29711
  { value: form },
29574
- React30__namespace.default.createElement(
29712
+ React32__namespace.default.createElement(
29575
29713
  AddressFormsContext.Provider,
29576
29714
  { value: {
29577
29715
  getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
29578
29716
  addressTemplates
29579
29717
  } },
29580
- React30__namespace.default.createElement(
29718
+ React32__namespace.default.createElement(
29581
29719
  ExperimentsContext.Provider,
29582
29720
  { value: experiments },
29583
- React30__namespace.default.createElement(
29721
+ React32__namespace.default.createElement(
29584
29722
  EventsProvider,
29585
29723
  null,
29586
- React30__namespace.default.createElement(
29724
+ React32__namespace.default.createElement(
29587
29725
  WixRicosViewerContext.Provider,
29588
29726
  { value: WixRicosViewer },
29589
- React30__namespace.default.createElement(SubmitStatusProvider, null, children)
29727
+ React32__namespace.default.createElement(SubmitStatusProvider, null, children)
29590
29728
  )
29591
29729
  )
29592
29730
  )
@@ -29625,17 +29763,17 @@ var DisabledFormOverlay = ({ content, isEditor }) => {
29625
29763
  if (isEditor || !content) {
29626
29764
  return null;
29627
29765
  }
29628
- return React30__namespace.default.createElement(ricos_viewer_default, { content, className: disabled_form_overlay_module_default.disabledFormOverlay, customTheme });
29766
+ return React32__namespace.default.createElement(ricos_viewer_default, { content, className: disabled_form_overlay_module_default.disabledFormOverlay, customTheme });
29629
29767
  };
29630
29768
 
29631
29769
  // ../form-viewer/dist/esm/components/root/form-viewer-static.js
29632
- var FormViewerStatic = React30.forwardRef(({ form, i18n: i18n2, isMobile, isRTL, config = null, readOnly = false, externalData, bi, biFormFillSessionId, translations, localeDataset, forcedState, httpClient, panorama, experiments, currency, fields, WixRicosViewer, breakpoint = Breakpoint.LARGE, allowFormDisable = true, fieldInitialData, enableAnimations, ...rest }, forwardedRef) => {
29770
+ var FormViewerStatic = React32.forwardRef(({ form, i18n: i18n2, isMobile, isRTL, config = null, readOnly = false, externalData, bi, biFormFillSessionId, translations, localeDataset, forcedState, httpClient, panorama, experiments, currency, fields, WixRicosViewer, breakpoint = Breakpoint.LARGE, allowFormDisable = true, fieldInitialData, enableAnimations, ...rest }, forwardedRef) => {
29633
29771
  const { locale = "en", regionalFormat = "en", userData } = config || {};
29634
- React30.useState(() => {
29772
+ React32.useState(() => {
29635
29773
  translations && i18n2.addResources(locale, TRANSLATIONS_NAMESPACE, translations);
29636
29774
  localeDataset && i18n2.addResources(locale, TRANSLATIONS_NAMESPACE, localeDataset);
29637
29775
  });
29638
- const formWithValidSteps = React30.useMemo(() => ({
29776
+ const formWithValidSteps = React32.useMemo(() => ({
29639
29777
  ...form,
29640
29778
  steps: form?.steps?.filter((step) => step.layout?.large?.items?.length) || []
29641
29779
  }), [form]);
@@ -29643,23 +29781,23 @@ var FormViewerStatic = React30.forwardRef(({ form, i18n: i18n2, isMobile, isRTL,
29643
29781
  return null;
29644
29782
  }
29645
29783
  const isDisabled = allowFormDisable && formWithValidSteps.properties?.disabled;
29646
- return React30__namespace.default.createElement(
29647
- React30__namespace.default.StrictMode,
29784
+ return React32__namespace.default.createElement(
29785
+ React32__namespace.default.StrictMode,
29648
29786
  null,
29649
- React30__namespace.default.createElement(
29787
+ React32__namespace.default.createElement(
29650
29788
  FormViewerProvider,
29651
29789
  { httpClient, i18n: i18n2, bi, panorama, biFormFillSessionId, form: formWithValidSteps, locale, regionalFormat, isRTL, isMobile, isEditor: config?.isEditor, isComposer: config?.isComposer, externalData, fields, forcedState, instance: config?.instance, experiments, translationNamespace: TRANSLATIONS_NAMESPACE, currency, userData, WixRicosViewer, addressTemplates: config?.addressTemplates, atlasBaseUrl: config?.atlasBaseUrl, fieldInitialData, compId: config?.compId, enableAnimations },
29652
- React30__namespace.default.createElement(
29790
+ React32__namespace.default.createElement(
29653
29791
  "form",
29654
29792
  { "aria-label": formWithValidSteps.properties?.name ?? "", id: `form-${formWithValidSteps.id}`, "data-hook": `form-${formWithValidSteps.id}`, className: (0, import_classnames5.default)({
29655
29793
  [form_viewer_static_module_default.readOnly]: readOnly,
29656
29794
  [form_viewer_static_module_default.disabled]: isDisabled && !config?.isEditor
29657
- }), onSubmit: (e2) => e2.preventDefault() },
29658
- isDisabled && React30__namespace.default.createElement(DisabledFormOverlay, { content: formWithValidSteps.disabledFormMessage, isEditor: config?.isEditor }),
29659
- React30__namespace.default.createElement(
29795
+ }), onSubmit: (e) => e.preventDefault() },
29796
+ isDisabled && React32__namespace.default.createElement(DisabledFormOverlay, { content: formWithValidSteps.disabledFormMessage, isEditor: config?.isEditor }),
29797
+ React32__namespace.default.createElement(
29660
29798
  "fieldset",
29661
29799
  { className: form_viewer_static_module_default.fieldsetReset, disabled: readOnly || isDisabled },
29662
- React30__namespace.default.createElement(FormRoot2, { form: formWithValidSteps, forwardedRef, config, breakpoint, ...rest })
29800
+ React32__namespace.default.createElement(FormRoot2, { form: formWithValidSteps, forwardedRef, config, breakpoint, ...rest })
29663
29801
  )
29664
29802
  )
29665
29803
  )
@@ -29816,10 +29954,8 @@ var TimeInputMapper = (props) => {
29816
29954
  };
29817
29955
  var TextMapper = (props) => props;
29818
29956
  var SubmitButtonMapper = (props) => {
29819
- const { submitText } = props;
29820
29957
  return {
29821
- ...props,
29822
- text: submitText
29958
+ ...props
29823
29959
  };
29824
29960
  };
29825
29961
  var ProductListMapper = (props) => {
@@ -30013,6 +30149,7 @@ function normalizeSchema(obj) {
30013
30149
  }
30014
30150
  return obj;
30015
30151
  }
30152
+ var LANGUAGE_CODE = "en";
30016
30153
  var mapFieldProps = (fields, mappers) => Object.fromEntries(
30017
30154
  Object.entries(fields).map(([fieldType, Component]) => [
30018
30155
  fieldType,
@@ -30031,26 +30168,31 @@ var Form2 = ({
30031
30168
  values,
30032
30169
  onChange,
30033
30170
  errors,
30034
- onValidate
30171
+ onValidate,
30172
+ submitForm
30035
30173
  }) => {
30036
30174
  const form = normalizeSchema(unformattedForm);
30037
- const siteConfig = {
30038
- locale: {
30039
- languageCode: "en"
30175
+ const i18n2 = initI18n({ locale: LANGUAGE_CODE });
30176
+ const [step, setStep] = React32.useState();
30177
+ const actions = {
30178
+ submitForm,
30179
+ uploadFile: () => {
30180
+ console.log("upload file not implemented");
30040
30181
  }
30041
30182
  };
30042
- const i18n2 = initI18n({ locale: siteConfig.locale.languageCode });
30043
- const mappedFieldProps = React30.useMemo(
30183
+ const mappedFieldProps = React32.useMemo(
30044
30184
  () => mapFieldProps(fields, FIELD_PROP_MAP),
30045
30185
  [fields]
30046
30186
  );
30047
- const mappedFieldTypes = React30.useMemo(
30187
+ const mappedFieldTypes = React32.useMemo(
30048
30188
  () => mapFieldTypes(mappedFieldProps, FIELD_TYPE_MAP),
30049
30189
  [mappedFieldProps]
30050
30190
  );
30051
30191
  return /* @__PURE__ */ jsxRuntime.jsx(
30052
30192
  FormViewerStatic,
30053
30193
  {
30194
+ stepId: step,
30195
+ onStepIdChange: setStep,
30054
30196
  form,
30055
30197
  values,
30056
30198
  onChange,
@@ -30060,9 +30202,10 @@ var Form2 = ({
30060
30202
  i18n: i18n2,
30061
30203
  WixRicosViewer: () => null,
30062
30204
  config: {
30063
- locale: siteConfig.locale.languageCode,
30064
- regionalFormat: siteConfig.locale.languageCode
30065
- }
30205
+ locale: LANGUAGE_CODE,
30206
+ regionalFormat: LANGUAGE_CODE
30207
+ },
30208
+ actions
30066
30209
  }
30067
30210
  );
30068
30211
  };