@thecb/components 5.7.0-beta.4 → 5.7.0-beta.5
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.js +1410 -380
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1409 -379
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -33962,10 +33962,1008 @@ const TypeaheadInput = ({
|
|
|
33962
33962
|
}));
|
|
33963
33963
|
};
|
|
33964
33964
|
|
|
33965
|
-
|
|
33966
|
-
|
|
33967
|
-
|
|
33968
|
-
|
|
33965
|
+
// makes subclassing work correct for wrapped built-ins
|
|
33966
|
+
var inheritIfRequired = function ($this, dummy, Wrapper) {
|
|
33967
|
+
var NewTarget, NewTargetPrototype;
|
|
33968
|
+
if (
|
|
33969
|
+
// it can work only with native `setPrototypeOf`
|
|
33970
|
+
objectSetPrototypeOf &&
|
|
33971
|
+
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
33972
|
+
isCallable(NewTarget = dummy.constructor) &&
|
|
33973
|
+
NewTarget !== Wrapper &&
|
|
33974
|
+
isObject(NewTargetPrototype = NewTarget.prototype) &&
|
|
33975
|
+
NewTargetPrototype !== Wrapper.prototype
|
|
33976
|
+
) objectSetPrototypeOf($this, NewTargetPrototype);
|
|
33977
|
+
return $this;
|
|
33978
|
+
};
|
|
33979
|
+
|
|
33980
|
+
var valueOf = 1.0.valueOf;
|
|
33981
|
+
|
|
33982
|
+
// `thisNumberValue` abstract operation
|
|
33983
|
+
// https://tc39.es/ecma262/#sec-thisnumbervalue
|
|
33984
|
+
var thisNumberValue = function (value) {
|
|
33985
|
+
return valueOf.call(value);
|
|
33986
|
+
};
|
|
33987
|
+
|
|
33988
|
+
// a string of all valid unicode whitespaces
|
|
33989
|
+
var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
33990
|
+
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
33991
|
+
|
|
33992
|
+
var whitespace = '[' + whitespaces + ']';
|
|
33993
|
+
var ltrim = RegExp('^' + whitespace + whitespace + '*');
|
|
33994
|
+
var rtrim = RegExp(whitespace + whitespace + '*$');
|
|
33995
|
+
|
|
33996
|
+
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
33997
|
+
var createMethod$2 = function (TYPE) {
|
|
33998
|
+
return function ($this) {
|
|
33999
|
+
var string = toString_1(requireObjectCoercible($this));
|
|
34000
|
+
if (TYPE & 1) string = string.replace(ltrim, '');
|
|
34001
|
+
if (TYPE & 2) string = string.replace(rtrim, '');
|
|
34002
|
+
return string;
|
|
34003
|
+
};
|
|
34004
|
+
};
|
|
34005
|
+
|
|
34006
|
+
var stringTrim = {
|
|
34007
|
+
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
34008
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
34009
|
+
start: createMethod$2(1),
|
|
34010
|
+
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
34011
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
34012
|
+
end: createMethod$2(2),
|
|
34013
|
+
// `String.prototype.trim` method
|
|
34014
|
+
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
34015
|
+
trim: createMethod$2(3)
|
|
34016
|
+
};
|
|
34017
|
+
|
|
34018
|
+
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
34019
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
34020
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
34021
|
+
|
|
34022
|
+
var trim = stringTrim.trim;
|
|
34023
|
+
|
|
34024
|
+
var NUMBER = 'Number';
|
|
34025
|
+
var NativeNumber = global_1[NUMBER];
|
|
34026
|
+
var NumberPrototype = NativeNumber.prototype;
|
|
34027
|
+
|
|
34028
|
+
// `ToNumeric` abstract operation
|
|
34029
|
+
// https://tc39.es/ecma262/#sec-tonumeric
|
|
34030
|
+
var toNumeric = function (value) {
|
|
34031
|
+
var primValue = toPrimitive(value, 'number');
|
|
34032
|
+
return typeof primValue === 'bigint' ? primValue : toNumber(primValue);
|
|
34033
|
+
};
|
|
34034
|
+
|
|
34035
|
+
// `ToNumber` abstract operation
|
|
34036
|
+
// https://tc39.es/ecma262/#sec-tonumber
|
|
34037
|
+
var toNumber = function (argument) {
|
|
34038
|
+
var it = toPrimitive(argument, 'number');
|
|
34039
|
+
var first, third, radix, maxCode, digits, length, index, code;
|
|
34040
|
+
if (isSymbol(it)) throw TypeError('Cannot convert a Symbol value to a number');
|
|
34041
|
+
if (typeof it == 'string' && it.length > 2) {
|
|
34042
|
+
it = trim(it);
|
|
34043
|
+
first = it.charCodeAt(0);
|
|
34044
|
+
if (first === 43 || first === 45) {
|
|
34045
|
+
third = it.charCodeAt(2);
|
|
34046
|
+
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
|
|
34047
|
+
} else if (first === 48) {
|
|
34048
|
+
switch (it.charCodeAt(1)) {
|
|
34049
|
+
case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i
|
|
34050
|
+
case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i
|
|
34051
|
+
default: return +it;
|
|
34052
|
+
}
|
|
34053
|
+
digits = it.slice(2);
|
|
34054
|
+
length = digits.length;
|
|
34055
|
+
for (index = 0; index < length; index++) {
|
|
34056
|
+
code = digits.charCodeAt(index);
|
|
34057
|
+
// parseInt parses a string to a first unavailable symbol
|
|
34058
|
+
// but ToNumber should return NaN if a string contains unavailable symbols
|
|
34059
|
+
if (code < 48 || code > maxCode) return NaN;
|
|
34060
|
+
} return parseInt(digits, radix);
|
|
34061
|
+
}
|
|
34062
|
+
} return +it;
|
|
34063
|
+
};
|
|
34064
|
+
|
|
34065
|
+
// `Number` constructor
|
|
34066
|
+
// https://tc39.es/ecma262/#sec-number-constructor
|
|
34067
|
+
if (isForced_1(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'))) {
|
|
34068
|
+
var NumberWrapper = function Number(value) {
|
|
34069
|
+
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
|
|
34070
|
+
var dummy = this;
|
|
34071
|
+
// check on 1..constructor(foo) case
|
|
34072
|
+
return dummy instanceof NumberWrapper && fails(function () { thisNumberValue(dummy); })
|
|
34073
|
+
? inheritIfRequired(Object(n), dummy, NumberWrapper) : n;
|
|
34074
|
+
};
|
|
34075
|
+
for (var keys$2 = descriptors ? getOwnPropertyNames(NativeNumber) : (
|
|
34076
|
+
// ES3:
|
|
34077
|
+
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
|
|
34078
|
+
// ES2015 (in case, if modules with ES2015 Number statics required before):
|
|
34079
|
+
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
|
|
34080
|
+
// ESNext
|
|
34081
|
+
'fromString,range'
|
|
34082
|
+
).split(','), j = 0, key; keys$2.length > j; j++) {
|
|
34083
|
+
if (hasOwnProperty_1(NativeNumber, key = keys$2[j]) && !hasOwnProperty_1(NumberWrapper, key)) {
|
|
34084
|
+
defineProperty$1(NumberWrapper, key, getOwnPropertyDescriptor$2(NativeNumber, key));
|
|
34085
|
+
}
|
|
34086
|
+
}
|
|
34087
|
+
NumberWrapper.prototype = NumberPrototype;
|
|
34088
|
+
NumberPrototype.constructor = NumberWrapper;
|
|
34089
|
+
redefine(global_1, NUMBER, NumberWrapper);
|
|
34090
|
+
}
|
|
34091
|
+
|
|
34092
|
+
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
34093
|
+
var createMethod$3 = function (IS_RIGHT) {
|
|
34094
|
+
return function (that, callbackfn, argumentsLength, memo) {
|
|
34095
|
+
aCallable(callbackfn);
|
|
34096
|
+
var O = toObject(that);
|
|
34097
|
+
var self = indexedObject(O);
|
|
34098
|
+
var length = lengthOfArrayLike(O);
|
|
34099
|
+
var index = IS_RIGHT ? length - 1 : 0;
|
|
34100
|
+
var i = IS_RIGHT ? -1 : 1;
|
|
34101
|
+
if (argumentsLength < 2) while (true) {
|
|
34102
|
+
if (index in self) {
|
|
34103
|
+
memo = self[index];
|
|
34104
|
+
index += i;
|
|
34105
|
+
break;
|
|
34106
|
+
}
|
|
34107
|
+
index += i;
|
|
34108
|
+
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
34109
|
+
throw TypeError('Reduce of empty array with no initial value');
|
|
34110
|
+
}
|
|
34111
|
+
}
|
|
34112
|
+
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
34113
|
+
memo = callbackfn(memo, self[index], index, O);
|
|
34114
|
+
}
|
|
34115
|
+
return memo;
|
|
34116
|
+
};
|
|
34117
|
+
};
|
|
34118
|
+
|
|
34119
|
+
var arrayReduce = {
|
|
34120
|
+
// `Array.prototype.reduce` method
|
|
34121
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
34122
|
+
left: createMethod$3(false),
|
|
34123
|
+
// `Array.prototype.reduceRight` method
|
|
34124
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
34125
|
+
right: createMethod$3(true)
|
|
34126
|
+
};
|
|
34127
|
+
|
|
34128
|
+
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
|
34129
|
+
var method = [][METHOD_NAME];
|
|
34130
|
+
return !!method && fails(function () {
|
|
34131
|
+
// eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing
|
|
34132
|
+
method.call(null, argument || function () { throw 1; }, 1);
|
|
34133
|
+
});
|
|
34134
|
+
};
|
|
34135
|
+
|
|
34136
|
+
var engineIsNode = classofRaw(global_1.process) == 'process';
|
|
34137
|
+
|
|
34138
|
+
var $reduce = arrayReduce.left;
|
|
34139
|
+
|
|
34140
|
+
|
|
34141
|
+
|
|
34142
|
+
|
|
34143
|
+
var STRICT_METHOD = arrayMethodIsStrict('reduce');
|
|
34144
|
+
// Chrome 80-82 has a critical bug
|
|
34145
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
34146
|
+
var CHROME_BUG = !engineIsNode && engineV8Version > 79 && engineV8Version < 83;
|
|
34147
|
+
|
|
34148
|
+
// `Array.prototype.reduce` method
|
|
34149
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
34150
|
+
_export({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
|
|
34151
|
+
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
34152
|
+
return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
|
|
34153
|
+
}
|
|
34154
|
+
});
|
|
34155
|
+
|
|
34156
|
+
// `Object.prototype.toString` method implementation
|
|
34157
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
34158
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
|
34159
|
+
return '[object ' + classof(this) + ']';
|
|
34160
|
+
};
|
|
34161
|
+
|
|
34162
|
+
// `Object.prototype.toString` method
|
|
34163
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
|
34164
|
+
if (!toStringTagSupport) {
|
|
34165
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
|
34166
|
+
}
|
|
34167
|
+
|
|
34168
|
+
var trim$1 = stringTrim.trim;
|
|
34169
|
+
|
|
34170
|
+
|
|
34171
|
+
var $parseInt = global_1.parseInt;
|
|
34172
|
+
var Symbol$2 = global_1.Symbol;
|
|
34173
|
+
var ITERATOR$3 = Symbol$2 && Symbol$2.iterator;
|
|
34174
|
+
var hex$1 = /^[+-]?0x/i;
|
|
34175
|
+
var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
|
|
34176
|
+
// MS Edge 18- broken with boxed symbols
|
|
34177
|
+
|| (ITERATOR$3 && !fails(function () { $parseInt(Object(ITERATOR$3)); }));
|
|
34178
|
+
|
|
34179
|
+
// `parseInt` method
|
|
34180
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
34181
|
+
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
34182
|
+
var S = trim$1(toString_1(string));
|
|
34183
|
+
return $parseInt(S, (radix >>> 0) || (hex$1.test(S) ? 16 : 10));
|
|
34184
|
+
} : $parseInt;
|
|
34185
|
+
|
|
34186
|
+
// `parseInt` method
|
|
34187
|
+
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
34188
|
+
_export({ global: true, forced: parseInt != numberParseInt }, {
|
|
34189
|
+
parseInt: numberParseInt
|
|
34190
|
+
});
|
|
34191
|
+
|
|
34192
|
+
// `IsArray` abstract operation
|
|
34193
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
34194
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
34195
|
+
var isArray = Array.isArray || function isArray(argument) {
|
|
34196
|
+
return classofRaw(argument) == 'Array';
|
|
34197
|
+
};
|
|
34198
|
+
|
|
34199
|
+
var empty = [];
|
|
34200
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
|
34201
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
34202
|
+
var exec = constructorRegExp.exec;
|
|
34203
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(function () { /* empty */ });
|
|
34204
|
+
|
|
34205
|
+
var isConstructorModern = function (argument) {
|
|
34206
|
+
if (!isCallable(argument)) return false;
|
|
34207
|
+
try {
|
|
34208
|
+
construct(Object, empty, argument);
|
|
34209
|
+
return true;
|
|
34210
|
+
} catch (error) {
|
|
34211
|
+
return false;
|
|
34212
|
+
}
|
|
34213
|
+
};
|
|
34214
|
+
|
|
34215
|
+
var isConstructorLegacy = function (argument) {
|
|
34216
|
+
if (!isCallable(argument)) return false;
|
|
34217
|
+
switch (classof(argument)) {
|
|
34218
|
+
case 'AsyncFunction':
|
|
34219
|
+
case 'GeneratorFunction':
|
|
34220
|
+
case 'AsyncGeneratorFunction': return false;
|
|
34221
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
|
34222
|
+
} return INCORRECT_TO_STRING || !!exec.call(constructorRegExp, inspectSource(argument));
|
|
34223
|
+
};
|
|
34224
|
+
|
|
34225
|
+
// `IsConstructor` abstract operation
|
|
34226
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
|
34227
|
+
var isConstructor = !construct || fails(function () {
|
|
34228
|
+
var called;
|
|
34229
|
+
return isConstructorModern(isConstructorModern.call)
|
|
34230
|
+
|| !isConstructorModern(Object)
|
|
34231
|
+
|| !isConstructorModern(function () { called = true; })
|
|
34232
|
+
|| called;
|
|
34233
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
|
34234
|
+
|
|
34235
|
+
var createProperty = function (object, key, value) {
|
|
34236
|
+
var propertyKey = toPropertyKey(key);
|
|
34237
|
+
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
|
34238
|
+
else object[propertyKey] = value;
|
|
34239
|
+
};
|
|
34240
|
+
|
|
34241
|
+
var SPECIES$1 = wellKnownSymbol('species');
|
|
34242
|
+
|
|
34243
|
+
var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
|
|
34244
|
+
// We can't use this feature detection in V8 since it causes
|
|
34245
|
+
// deoptimization and serious performance degradation
|
|
34246
|
+
// https://github.com/zloirock/core-js/issues/677
|
|
34247
|
+
return engineV8Version >= 51 || !fails(function () {
|
|
34248
|
+
var array = [];
|
|
34249
|
+
var constructor = array.constructor = {};
|
|
34250
|
+
constructor[SPECIES$1] = function () {
|
|
34251
|
+
return { foo: 1 };
|
|
34252
|
+
};
|
|
34253
|
+
return array[METHOD_NAME](Boolean).foo !== 1;
|
|
34254
|
+
});
|
|
34255
|
+
};
|
|
34256
|
+
|
|
34257
|
+
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');
|
|
34258
|
+
|
|
34259
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
|
34260
|
+
var nativeSlice = [].slice;
|
|
34261
|
+
var max$2 = Math.max;
|
|
34262
|
+
|
|
34263
|
+
// `Array.prototype.slice` method
|
|
34264
|
+
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
|
34265
|
+
// fallback for not array-like ES3 strings and DOM objects
|
|
34266
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
|
|
34267
|
+
slice: function slice(start, end) {
|
|
34268
|
+
var O = toIndexedObject(this);
|
|
34269
|
+
var length = lengthOfArrayLike(O);
|
|
34270
|
+
var k = toAbsoluteIndex(start, length);
|
|
34271
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
34272
|
+
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
|
34273
|
+
var Constructor, result, n;
|
|
34274
|
+
if (isArray(O)) {
|
|
34275
|
+
Constructor = O.constructor;
|
|
34276
|
+
// cross-realm fallback
|
|
34277
|
+
if (isConstructor(Constructor) && (Constructor === Array || isArray(Constructor.prototype))) {
|
|
34278
|
+
Constructor = undefined;
|
|
34279
|
+
} else if (isObject(Constructor)) {
|
|
34280
|
+
Constructor = Constructor[SPECIES$2];
|
|
34281
|
+
if (Constructor === null) Constructor = undefined;
|
|
34282
|
+
}
|
|
34283
|
+
if (Constructor === Array || Constructor === undefined) {
|
|
34284
|
+
return nativeSlice.call(O, k, fin);
|
|
34285
|
+
}
|
|
34286
|
+
}
|
|
34287
|
+
result = new (Constructor === undefined ? Array : Constructor)(max$2(fin - k, 0));
|
|
34288
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
|
34289
|
+
result.length = n;
|
|
34290
|
+
return result;
|
|
34291
|
+
}
|
|
34292
|
+
});
|
|
34293
|
+
|
|
34294
|
+
var MATCH = wellKnownSymbol('match');
|
|
34295
|
+
|
|
34296
|
+
// `IsRegExp` abstract operation
|
|
34297
|
+
// https://tc39.es/ecma262/#sec-isregexp
|
|
34298
|
+
var isRegexp = function (it) {
|
|
34299
|
+
var isRegExp;
|
|
34300
|
+
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
34301
|
+
};
|
|
34302
|
+
|
|
34303
|
+
var SPECIES$3 = wellKnownSymbol('species');
|
|
34304
|
+
|
|
34305
|
+
var setSpecies = function (CONSTRUCTOR_NAME) {
|
|
34306
|
+
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
34307
|
+
var defineProperty = objectDefineProperty.f;
|
|
34308
|
+
|
|
34309
|
+
if (descriptors && Constructor && !Constructor[SPECIES$3]) {
|
|
34310
|
+
defineProperty(Constructor, SPECIES$3, {
|
|
34311
|
+
configurable: true,
|
|
34312
|
+
get: function () { return this; }
|
|
34313
|
+
});
|
|
34314
|
+
}
|
|
34315
|
+
};
|
|
34316
|
+
|
|
34317
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
34318
|
+
var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
|
|
34319
|
+
|
|
34320
|
+
|
|
34321
|
+
|
|
34322
|
+
|
|
34323
|
+
|
|
34324
|
+
|
|
34325
|
+
|
|
34326
|
+
var enforceInternalState = internalState.enforce;
|
|
34327
|
+
|
|
34328
|
+
|
|
34329
|
+
|
|
34330
|
+
|
|
34331
|
+
|
|
34332
|
+
var MATCH$1 = wellKnownSymbol('match');
|
|
34333
|
+
var NativeRegExp = global_1.RegExp;
|
|
34334
|
+
var RegExpPrototype$1 = NativeRegExp.prototype;
|
|
34335
|
+
// TODO: Use only propper RegExpIdentifierName
|
|
34336
|
+
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
|
|
34337
|
+
var re1 = /a/g;
|
|
34338
|
+
var re2 = /a/g;
|
|
34339
|
+
|
|
34340
|
+
// "new" should create a new object, old webkit bug
|
|
34341
|
+
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
|
|
34342
|
+
|
|
34343
|
+
var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
34344
|
+
|
|
34345
|
+
var BASE_FORCED = descriptors &&
|
|
34346
|
+
(!CORRECT_NEW || UNSUPPORTED_Y$2 || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
|
|
34347
|
+
re2[MATCH$1] = false;
|
|
34348
|
+
// RegExp constructor can alter flags and IsRegExp works correct with @@match
|
|
34349
|
+
return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
|
|
34350
|
+
}));
|
|
34351
|
+
|
|
34352
|
+
var handleDotAll = function (string) {
|
|
34353
|
+
var length = string.length;
|
|
34354
|
+
var index = 0;
|
|
34355
|
+
var result = '';
|
|
34356
|
+
var brackets = false;
|
|
34357
|
+
var chr;
|
|
34358
|
+
for (; index <= length; index++) {
|
|
34359
|
+
chr = string.charAt(index);
|
|
34360
|
+
if (chr === '\\') {
|
|
34361
|
+
result += chr + string.charAt(++index);
|
|
34362
|
+
continue;
|
|
34363
|
+
}
|
|
34364
|
+
if (!brackets && chr === '.') {
|
|
34365
|
+
result += '[\\s\\S]';
|
|
34366
|
+
} else {
|
|
34367
|
+
if (chr === '[') {
|
|
34368
|
+
brackets = true;
|
|
34369
|
+
} else if (chr === ']') {
|
|
34370
|
+
brackets = false;
|
|
34371
|
+
} result += chr;
|
|
34372
|
+
}
|
|
34373
|
+
} return result;
|
|
34374
|
+
};
|
|
34375
|
+
|
|
34376
|
+
var handleNCG = function (string) {
|
|
34377
|
+
var length = string.length;
|
|
34378
|
+
var index = 0;
|
|
34379
|
+
var result = '';
|
|
34380
|
+
var named = [];
|
|
34381
|
+
var names = {};
|
|
34382
|
+
var brackets = false;
|
|
34383
|
+
var ncg = false;
|
|
34384
|
+
var groupid = 0;
|
|
34385
|
+
var groupname = '';
|
|
34386
|
+
var chr;
|
|
34387
|
+
for (; index <= length; index++) {
|
|
34388
|
+
chr = string.charAt(index);
|
|
34389
|
+
if (chr === '\\') {
|
|
34390
|
+
chr = chr + string.charAt(++index);
|
|
34391
|
+
} else if (chr === ']') {
|
|
34392
|
+
brackets = false;
|
|
34393
|
+
} else if (!brackets) switch (true) {
|
|
34394
|
+
case chr === '[':
|
|
34395
|
+
brackets = true;
|
|
34396
|
+
break;
|
|
34397
|
+
case chr === '(':
|
|
34398
|
+
if (IS_NCG.test(string.slice(index + 1))) {
|
|
34399
|
+
index += 2;
|
|
34400
|
+
ncg = true;
|
|
34401
|
+
}
|
|
34402
|
+
result += chr;
|
|
34403
|
+
groupid++;
|
|
34404
|
+
continue;
|
|
34405
|
+
case chr === '>' && ncg:
|
|
34406
|
+
if (groupname === '' || hasOwnProperty_1(names, groupname)) {
|
|
34407
|
+
throw new SyntaxError('Invalid capture group name');
|
|
34408
|
+
}
|
|
34409
|
+
names[groupname] = true;
|
|
34410
|
+
named.push([groupname, groupid]);
|
|
34411
|
+
ncg = false;
|
|
34412
|
+
groupname = '';
|
|
34413
|
+
continue;
|
|
34414
|
+
}
|
|
34415
|
+
if (ncg) groupname += chr;
|
|
34416
|
+
else result += chr;
|
|
34417
|
+
} return [result, named];
|
|
34418
|
+
};
|
|
34419
|
+
|
|
34420
|
+
// `RegExp` constructor
|
|
34421
|
+
// https://tc39.es/ecma262/#sec-regexp-constructor
|
|
34422
|
+
if (isForced_1('RegExp', BASE_FORCED)) {
|
|
34423
|
+
var RegExpWrapper = function RegExp(pattern, flags) {
|
|
34424
|
+
var thisIsRegExp = this instanceof RegExpWrapper;
|
|
34425
|
+
var patternIsRegExp = isRegexp(pattern);
|
|
34426
|
+
var flagsAreUndefined = flags === undefined;
|
|
34427
|
+
var groups = [];
|
|
34428
|
+
var rawPattern = pattern;
|
|
34429
|
+
var rawFlags, dotAll, sticky, handled, result, state;
|
|
34430
|
+
|
|
34431
|
+
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
|
|
34432
|
+
return pattern;
|
|
34433
|
+
}
|
|
34434
|
+
|
|
34435
|
+
if (patternIsRegExp || pattern instanceof RegExpWrapper) {
|
|
34436
|
+
pattern = pattern.source;
|
|
34437
|
+
if (flagsAreUndefined) flags = 'flags' in rawPattern ? rawPattern.flags : regexpFlags.call(rawPattern);
|
|
34438
|
+
}
|
|
34439
|
+
|
|
34440
|
+
pattern = pattern === undefined ? '' : toString_1(pattern);
|
|
34441
|
+
flags = flags === undefined ? '' : toString_1(flags);
|
|
34442
|
+
rawPattern = pattern;
|
|
34443
|
+
|
|
34444
|
+
if (regexpUnsupportedDotAll && 'dotAll' in re1) {
|
|
34445
|
+
dotAll = !!flags && flags.indexOf('s') > -1;
|
|
34446
|
+
if (dotAll) flags = flags.replace(/s/g, '');
|
|
34447
|
+
}
|
|
34448
|
+
|
|
34449
|
+
rawFlags = flags;
|
|
34450
|
+
|
|
34451
|
+
if (UNSUPPORTED_Y$2 && 'sticky' in re1) {
|
|
34452
|
+
sticky = !!flags && flags.indexOf('y') > -1;
|
|
34453
|
+
if (sticky) flags = flags.replace(/y/g, '');
|
|
34454
|
+
}
|
|
34455
|
+
|
|
34456
|
+
if (regexpUnsupportedNcg) {
|
|
34457
|
+
handled = handleNCG(pattern);
|
|
34458
|
+
pattern = handled[0];
|
|
34459
|
+
groups = handled[1];
|
|
34460
|
+
}
|
|
34461
|
+
|
|
34462
|
+
result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$1, RegExpWrapper);
|
|
34463
|
+
|
|
34464
|
+
if (dotAll || sticky || groups.length) {
|
|
34465
|
+
state = enforceInternalState(result);
|
|
34466
|
+
if (dotAll) {
|
|
34467
|
+
state.dotAll = true;
|
|
34468
|
+
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
|
|
34469
|
+
}
|
|
34470
|
+
if (sticky) state.sticky = true;
|
|
34471
|
+
if (groups.length) state.groups = groups;
|
|
34472
|
+
}
|
|
34473
|
+
|
|
34474
|
+
if (pattern !== rawPattern) try {
|
|
34475
|
+
// fails in old engines, but we have no alternatives for unsupported regex syntax
|
|
34476
|
+
createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
|
|
34477
|
+
} catch (error) { /* empty */ }
|
|
34478
|
+
|
|
34479
|
+
return result;
|
|
34480
|
+
};
|
|
34481
|
+
|
|
34482
|
+
var proxy = function (key) {
|
|
34483
|
+
key in RegExpWrapper || defineProperty$2(RegExpWrapper, key, {
|
|
34484
|
+
configurable: true,
|
|
34485
|
+
get: function () { return NativeRegExp[key]; },
|
|
34486
|
+
set: function (it) { NativeRegExp[key] = it; }
|
|
34487
|
+
});
|
|
34488
|
+
};
|
|
34489
|
+
|
|
34490
|
+
for (var keys$3 = getOwnPropertyNames$1(NativeRegExp), index$4 = 0; keys$3.length > index$4;) {
|
|
34491
|
+
proxy(keys$3[index$4++]);
|
|
34492
|
+
}
|
|
34493
|
+
|
|
34494
|
+
RegExpPrototype$1.constructor = RegExpWrapper;
|
|
34495
|
+
RegExpWrapper.prototype = RegExpPrototype$1;
|
|
34496
|
+
redefine(global_1, 'RegExp', RegExpWrapper);
|
|
34497
|
+
}
|
|
34498
|
+
|
|
34499
|
+
// https://tc39.es/ecma262/#sec-get-regexp-@@species
|
|
34500
|
+
setSpecies('RegExp');
|
|
34501
|
+
|
|
34502
|
+
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
|
|
34503
|
+
|
|
34504
|
+
|
|
34505
|
+
|
|
34506
|
+
|
|
34507
|
+
|
|
34508
|
+
|
|
34509
|
+
var TO_STRING = 'toString';
|
|
34510
|
+
var RegExpPrototype$2 = RegExp.prototype;
|
|
34511
|
+
var nativeToString = RegExpPrototype$2[TO_STRING];
|
|
34512
|
+
|
|
34513
|
+
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
|
|
34514
|
+
// FF44- RegExp#toString has a wrong name
|
|
34515
|
+
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name != TO_STRING;
|
|
34516
|
+
|
|
34517
|
+
// `RegExp.prototype.toString` method
|
|
34518
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
34519
|
+
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
34520
|
+
redefine(RegExp.prototype, TO_STRING, function toString() {
|
|
34521
|
+
var R = anObject(this);
|
|
34522
|
+
var p = toString_1(R.source);
|
|
34523
|
+
var rf = R.flags;
|
|
34524
|
+
var f = toString_1(rf === undefined && R instanceof RegExp && !('flags' in RegExpPrototype$2) ? regexpFlags.call(R) : rf);
|
|
34525
|
+
return '/' + p + '/' + f;
|
|
34526
|
+
}, { unsafe: true });
|
|
34527
|
+
}
|
|
34528
|
+
|
|
34529
|
+
// optional / simple context binding
|
|
34530
|
+
var functionBindContext = function (fn, that, length) {
|
|
34531
|
+
aCallable(fn);
|
|
34532
|
+
if (that === undefined) return fn;
|
|
34533
|
+
switch (length) {
|
|
34534
|
+
case 0: return function () {
|
|
34535
|
+
return fn.call(that);
|
|
34536
|
+
};
|
|
34537
|
+
case 1: return function (a) {
|
|
34538
|
+
return fn.call(that, a);
|
|
34539
|
+
};
|
|
34540
|
+
case 2: return function (a, b) {
|
|
34541
|
+
return fn.call(that, a, b);
|
|
34542
|
+
};
|
|
34543
|
+
case 3: return function (a, b, c) {
|
|
34544
|
+
return fn.call(that, a, b, c);
|
|
34545
|
+
};
|
|
34546
|
+
}
|
|
34547
|
+
return function (/* ...args */) {
|
|
34548
|
+
return fn.apply(that, arguments);
|
|
34549
|
+
};
|
|
34550
|
+
};
|
|
34551
|
+
|
|
34552
|
+
var SPECIES$4 = wellKnownSymbol('species');
|
|
34553
|
+
|
|
34554
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
|
34555
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
34556
|
+
var arraySpeciesConstructor = function (originalArray) {
|
|
34557
|
+
var C;
|
|
34558
|
+
if (isArray(originalArray)) {
|
|
34559
|
+
C = originalArray.constructor;
|
|
34560
|
+
// cross-realm fallback
|
|
34561
|
+
if (isConstructor(C) && (C === Array || isArray(C.prototype))) C = undefined;
|
|
34562
|
+
else if (isObject(C)) {
|
|
34563
|
+
C = C[SPECIES$4];
|
|
34564
|
+
if (C === null) C = undefined;
|
|
34565
|
+
}
|
|
34566
|
+
} return C === undefined ? Array : C;
|
|
34567
|
+
};
|
|
34568
|
+
|
|
34569
|
+
// `ArraySpeciesCreate` abstract operation
|
|
34570
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
|
34571
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
|
34572
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
34573
|
+
};
|
|
34574
|
+
|
|
34575
|
+
var push = [].push;
|
|
34576
|
+
|
|
34577
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
34578
|
+
var createMethod$4 = function (TYPE) {
|
|
34579
|
+
var IS_MAP = TYPE == 1;
|
|
34580
|
+
var IS_FILTER = TYPE == 2;
|
|
34581
|
+
var IS_SOME = TYPE == 3;
|
|
34582
|
+
var IS_EVERY = TYPE == 4;
|
|
34583
|
+
var IS_FIND_INDEX = TYPE == 6;
|
|
34584
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
|
34585
|
+
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
|
34586
|
+
return function ($this, callbackfn, that, specificCreate) {
|
|
34587
|
+
var O = toObject($this);
|
|
34588
|
+
var self = indexedObject(O);
|
|
34589
|
+
var boundFunction = functionBindContext(callbackfn, that, 3);
|
|
34590
|
+
var length = lengthOfArrayLike(self);
|
|
34591
|
+
var index = 0;
|
|
34592
|
+
var create = specificCreate || arraySpeciesCreate;
|
|
34593
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
34594
|
+
var value, result;
|
|
34595
|
+
for (;length > index; index++) if (NO_HOLES || index in self) {
|
|
34596
|
+
value = self[index];
|
|
34597
|
+
result = boundFunction(value, index, O);
|
|
34598
|
+
if (TYPE) {
|
|
34599
|
+
if (IS_MAP) target[index] = result; // map
|
|
34600
|
+
else if (result) switch (TYPE) {
|
|
34601
|
+
case 3: return true; // some
|
|
34602
|
+
case 5: return value; // find
|
|
34603
|
+
case 6: return index; // findIndex
|
|
34604
|
+
case 2: push.call(target, value); // filter
|
|
34605
|
+
} else switch (TYPE) {
|
|
34606
|
+
case 4: return false; // every
|
|
34607
|
+
case 7: push.call(target, value); // filterReject
|
|
34608
|
+
}
|
|
34609
|
+
}
|
|
34610
|
+
}
|
|
34611
|
+
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
34612
|
+
};
|
|
34613
|
+
};
|
|
34614
|
+
|
|
34615
|
+
var arrayIteration = {
|
|
34616
|
+
// `Array.prototype.forEach` method
|
|
34617
|
+
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
34618
|
+
forEach: createMethod$4(0),
|
|
34619
|
+
// `Array.prototype.map` method
|
|
34620
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
34621
|
+
map: createMethod$4(1),
|
|
34622
|
+
// `Array.prototype.filter` method
|
|
34623
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
34624
|
+
filter: createMethod$4(2),
|
|
34625
|
+
// `Array.prototype.some` method
|
|
34626
|
+
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
34627
|
+
some: createMethod$4(3),
|
|
34628
|
+
// `Array.prototype.every` method
|
|
34629
|
+
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
34630
|
+
every: createMethod$4(4),
|
|
34631
|
+
// `Array.prototype.find` method
|
|
34632
|
+
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
34633
|
+
find: createMethod$4(5),
|
|
34634
|
+
// `Array.prototype.findIndex` method
|
|
34635
|
+
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
34636
|
+
findIndex: createMethod$4(6),
|
|
34637
|
+
// `Array.prototype.filterReject` method
|
|
34638
|
+
// https://github.com/tc39/proposal-array-filtering
|
|
34639
|
+
filterReject: createMethod$4(7)
|
|
34640
|
+
};
|
|
34641
|
+
|
|
34642
|
+
var $map = arrayIteration.map;
|
|
34643
|
+
|
|
34644
|
+
|
|
34645
|
+
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('map');
|
|
34646
|
+
|
|
34647
|
+
// `Array.prototype.map` method
|
|
34648
|
+
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
34649
|
+
// with adding support of @@species
|
|
34650
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
34651
|
+
map: function map(callbackfn /* , thisArg */) {
|
|
34652
|
+
return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
34653
|
+
}
|
|
34654
|
+
});
|
|
34655
|
+
|
|
34656
|
+
// `Assert: IsConstructor(argument) is true`
|
|
34657
|
+
var aConstructor = function (argument) {
|
|
34658
|
+
if (isConstructor(argument)) return argument;
|
|
34659
|
+
throw TypeError(tryToString(argument) + ' is not a constructor');
|
|
34660
|
+
};
|
|
34661
|
+
|
|
34662
|
+
var SPECIES$5 = wellKnownSymbol('species');
|
|
34663
|
+
|
|
34664
|
+
// `SpeciesConstructor` abstract operation
|
|
34665
|
+
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
34666
|
+
var speciesConstructor = function (O, defaultConstructor) {
|
|
34667
|
+
var C = anObject(O).constructor;
|
|
34668
|
+
var S;
|
|
34669
|
+
return C === undefined || (S = anObject(C)[SPECIES$5]) == undefined ? defaultConstructor : aConstructor(S);
|
|
34670
|
+
};
|
|
34671
|
+
|
|
34672
|
+
var UNSUPPORTED_Y$3 = regexpStickyHelpers.UNSUPPORTED_Y;
|
|
34673
|
+
var arrayPush = [].push;
|
|
34674
|
+
var min$3 = Math.min;
|
|
34675
|
+
var MAX_UINT32 = 0xFFFFFFFF;
|
|
34676
|
+
|
|
34677
|
+
// Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
|
|
34678
|
+
// Weex JS has frozen built-in prototypes, so use try / catch wrapper
|
|
34679
|
+
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
|
34680
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
34681
|
+
var re = /(?:)/;
|
|
34682
|
+
var originalExec = re.exec;
|
|
34683
|
+
re.exec = function () { return originalExec.apply(this, arguments); };
|
|
34684
|
+
var result = 'ab'.split(re);
|
|
34685
|
+
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
|
34686
|
+
});
|
|
34687
|
+
|
|
34688
|
+
// @@split logic
|
|
34689
|
+
fixRegexpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
|
|
34690
|
+
var internalSplit;
|
|
34691
|
+
if (
|
|
34692
|
+
'abbc'.split(/(b)*/)[1] == 'c' ||
|
|
34693
|
+
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
34694
|
+
'test'.split(/(?:)/, -1).length != 4 ||
|
|
34695
|
+
'ab'.split(/(?:ab)*/).length != 2 ||
|
|
34696
|
+
'.'.split(/(.?)(.?)/).length != 4 ||
|
|
34697
|
+
// eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
34698
|
+
'.'.split(/()()/).length > 1 ||
|
|
34699
|
+
''.split(/.?/).length
|
|
34700
|
+
) {
|
|
34701
|
+
// based on es5-shim implementation, need to rework it
|
|
34702
|
+
internalSplit = function (separator, limit) {
|
|
34703
|
+
var string = toString_1(requireObjectCoercible(this));
|
|
34704
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
34705
|
+
if (lim === 0) return [];
|
|
34706
|
+
if (separator === undefined) return [string];
|
|
34707
|
+
// If `separator` is not a regex, use native split
|
|
34708
|
+
if (!isRegexp(separator)) {
|
|
34709
|
+
return nativeSplit.call(string, separator, lim);
|
|
34710
|
+
}
|
|
34711
|
+
var output = [];
|
|
34712
|
+
var flags = (separator.ignoreCase ? 'i' : '') +
|
|
34713
|
+
(separator.multiline ? 'm' : '') +
|
|
34714
|
+
(separator.unicode ? 'u' : '') +
|
|
34715
|
+
(separator.sticky ? 'y' : '');
|
|
34716
|
+
var lastLastIndex = 0;
|
|
34717
|
+
// Make `global` and avoid `lastIndex` issues by working with a copy
|
|
34718
|
+
var separatorCopy = new RegExp(separator.source, flags + 'g');
|
|
34719
|
+
var match, lastIndex, lastLength;
|
|
34720
|
+
while (match = regexpExec.call(separatorCopy, string)) {
|
|
34721
|
+
lastIndex = separatorCopy.lastIndex;
|
|
34722
|
+
if (lastIndex > lastLastIndex) {
|
|
34723
|
+
output.push(string.slice(lastLastIndex, match.index));
|
|
34724
|
+
if (match.length > 1 && match.index < string.length) arrayPush.apply(output, match.slice(1));
|
|
34725
|
+
lastLength = match[0].length;
|
|
34726
|
+
lastLastIndex = lastIndex;
|
|
34727
|
+
if (output.length >= lim) break;
|
|
34728
|
+
}
|
|
34729
|
+
if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
|
|
34730
|
+
}
|
|
34731
|
+
if (lastLastIndex === string.length) {
|
|
34732
|
+
if (lastLength || !separatorCopy.test('')) output.push('');
|
|
34733
|
+
} else output.push(string.slice(lastLastIndex));
|
|
34734
|
+
return output.length > lim ? output.slice(0, lim) : output;
|
|
34735
|
+
};
|
|
34736
|
+
// Chakra, V8
|
|
34737
|
+
} else if ('0'.split(undefined, 0).length) {
|
|
34738
|
+
internalSplit = function (separator, limit) {
|
|
34739
|
+
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
|
|
34740
|
+
};
|
|
34741
|
+
} else internalSplit = nativeSplit;
|
|
34742
|
+
|
|
34743
|
+
return [
|
|
34744
|
+
// `String.prototype.split` method
|
|
34745
|
+
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
34746
|
+
function split(separator, limit) {
|
|
34747
|
+
var O = requireObjectCoercible(this);
|
|
34748
|
+
var splitter = separator == undefined ? undefined : getMethod(separator, SPLIT);
|
|
34749
|
+
return splitter
|
|
34750
|
+
? splitter.call(separator, O, limit)
|
|
34751
|
+
: internalSplit.call(toString_1(O), separator, limit);
|
|
34752
|
+
},
|
|
34753
|
+
// `RegExp.prototype[@@split]` method
|
|
34754
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
34755
|
+
//
|
|
34756
|
+
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
34757
|
+
// the 'y' flag.
|
|
34758
|
+
function (string, limit) {
|
|
34759
|
+
var rx = anObject(this);
|
|
34760
|
+
var S = toString_1(string);
|
|
34761
|
+
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
|
|
34762
|
+
|
|
34763
|
+
if (res.done) return res.value;
|
|
34764
|
+
|
|
34765
|
+
var C = speciesConstructor(rx, RegExp);
|
|
34766
|
+
|
|
34767
|
+
var unicodeMatching = rx.unicode;
|
|
34768
|
+
var flags = (rx.ignoreCase ? 'i' : '') +
|
|
34769
|
+
(rx.multiline ? 'm' : '') +
|
|
34770
|
+
(rx.unicode ? 'u' : '') +
|
|
34771
|
+
(UNSUPPORTED_Y$3 ? 'g' : 'y');
|
|
34772
|
+
|
|
34773
|
+
// ^(? + rx + ) is needed, in combination with some S slicing, to
|
|
34774
|
+
// simulate the 'y' flag.
|
|
34775
|
+
var splitter = new C(UNSUPPORTED_Y$3 ? '^(?:' + rx.source + ')' : rx, flags);
|
|
34776
|
+
var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
|
|
34777
|
+
if (lim === 0) return [];
|
|
34778
|
+
if (S.length === 0) return regexpExecAbstract(splitter, S) === null ? [S] : [];
|
|
34779
|
+
var p = 0;
|
|
34780
|
+
var q = 0;
|
|
34781
|
+
var A = [];
|
|
34782
|
+
while (q < S.length) {
|
|
34783
|
+
splitter.lastIndex = UNSUPPORTED_Y$3 ? 0 : q;
|
|
34784
|
+
var z = regexpExecAbstract(splitter, UNSUPPORTED_Y$3 ? S.slice(q) : S);
|
|
34785
|
+
var e;
|
|
34786
|
+
if (
|
|
34787
|
+
z === null ||
|
|
34788
|
+
(e = min$3(toLength(splitter.lastIndex + (UNSUPPORTED_Y$3 ? q : 0)), S.length)) === p
|
|
34789
|
+
) {
|
|
34790
|
+
q = advanceStringIndex(S, q, unicodeMatching);
|
|
34791
|
+
} else {
|
|
34792
|
+
A.push(S.slice(p, q));
|
|
34793
|
+
if (A.length === lim) return A;
|
|
34794
|
+
for (var i = 1; i <= z.length - 1; i++) {
|
|
34795
|
+
A.push(z[i]);
|
|
34796
|
+
if (A.length === lim) return A;
|
|
34797
|
+
}
|
|
34798
|
+
q = p = e;
|
|
34799
|
+
}
|
|
34800
|
+
}
|
|
34801
|
+
A.push(S.slice(p));
|
|
34802
|
+
return A;
|
|
34803
|
+
}
|
|
34804
|
+
];
|
|
34805
|
+
}, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y$3);
|
|
34806
|
+
|
|
34807
|
+
var $filter = arrayIteration.filter;
|
|
34808
|
+
|
|
34809
|
+
|
|
34810
|
+
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport('filter');
|
|
34811
|
+
|
|
34812
|
+
// `Array.prototype.filter` method
|
|
34813
|
+
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
34814
|
+
// with adding support of @@species
|
|
34815
|
+
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
|
|
34816
|
+
filter: function filter(callbackfn /* , thisArg */) {
|
|
34817
|
+
return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
|
34818
|
+
}
|
|
34819
|
+
});
|
|
34820
|
+
|
|
34821
|
+
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
|
34822
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
|
34823
|
+
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
|
34824
|
+
|
|
34825
|
+
// We can't use this feature detection in V8 since it causes
|
|
34826
|
+
// deoptimization and serious performance degradation
|
|
34827
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
34828
|
+
var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
|
|
34829
|
+
var array = [];
|
|
34830
|
+
array[IS_CONCAT_SPREADABLE] = false;
|
|
34831
|
+
return array.concat()[0] !== array;
|
|
34832
|
+
});
|
|
34833
|
+
|
|
34834
|
+
var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
|
|
34835
|
+
|
|
34836
|
+
var isConcatSpreadable = function (O) {
|
|
34837
|
+
if (!isObject(O)) return false;
|
|
34838
|
+
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
34839
|
+
return spreadable !== undefined ? !!spreadable : isArray(O);
|
|
34840
|
+
};
|
|
34841
|
+
|
|
34842
|
+
var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
|
|
34843
|
+
|
|
34844
|
+
// `Array.prototype.concat` method
|
|
34845
|
+
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
|
34846
|
+
// with adding support of @@isConcatSpreadable and @@species
|
|
34847
|
+
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
|
34848
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
34849
|
+
concat: function concat(arg) {
|
|
34850
|
+
var O = toObject(this);
|
|
34851
|
+
var A = arraySpeciesCreate(O, 0);
|
|
34852
|
+
var n = 0;
|
|
34853
|
+
var i, k, length, len, E;
|
|
34854
|
+
for (i = -1, length = arguments.length; i < length; i++) {
|
|
34855
|
+
E = i === -1 ? O : arguments[i];
|
|
34856
|
+
if (isConcatSpreadable(E)) {
|
|
34857
|
+
len = lengthOfArrayLike(E);
|
|
34858
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
34859
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
|
34860
|
+
} else {
|
|
34861
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
|
34862
|
+
createProperty(A, n++, E);
|
|
34863
|
+
}
|
|
34864
|
+
}
|
|
34865
|
+
A.length = n;
|
|
34866
|
+
return A;
|
|
34867
|
+
}
|
|
34868
|
+
});
|
|
34869
|
+
|
|
34870
|
+
var FAILS_ON_PRIMITIVES = fails(function () { objectKeys(1); });
|
|
34871
|
+
|
|
34872
|
+
// `Object.keys` method
|
|
34873
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
|
34874
|
+
_export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
34875
|
+
keys: function keys(it) {
|
|
34876
|
+
return objectKeys(toObject(it));
|
|
34877
|
+
}
|
|
34878
|
+
});
|
|
34879
|
+
|
|
34880
|
+
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
|
34881
|
+
|
|
34882
|
+
// `Object.{ entries, values }` methods implementation
|
|
34883
|
+
var createMethod$5 = function (TO_ENTRIES) {
|
|
34884
|
+
return function (it) {
|
|
34885
|
+
var O = toIndexedObject(it);
|
|
34886
|
+
var keys = objectKeys(O);
|
|
34887
|
+
var length = keys.length;
|
|
34888
|
+
var i = 0;
|
|
34889
|
+
var result = [];
|
|
34890
|
+
var key;
|
|
34891
|
+
while (length > i) {
|
|
34892
|
+
key = keys[i++];
|
|
34893
|
+
if (!descriptors || propertyIsEnumerable.call(O, key)) {
|
|
34894
|
+
result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
|
|
34895
|
+
}
|
|
34896
|
+
}
|
|
34897
|
+
return result;
|
|
34898
|
+
};
|
|
34899
|
+
};
|
|
34900
|
+
|
|
34901
|
+
var objectToArray = {
|
|
34902
|
+
// `Object.entries` method
|
|
34903
|
+
// https://tc39.es/ecma262/#sec-object.entries
|
|
34904
|
+
entries: createMethod$5(true),
|
|
34905
|
+
// `Object.values` method
|
|
34906
|
+
// https://tc39.es/ecma262/#sec-object.values
|
|
34907
|
+
values: createMethod$5(false)
|
|
34908
|
+
};
|
|
34909
|
+
|
|
34910
|
+
var $entries = objectToArray.entries;
|
|
34911
|
+
|
|
34912
|
+
// `Object.entries` method
|
|
34913
|
+
// https://tc39.es/ecma262/#sec-object.entries
|
|
34914
|
+
_export({ target: 'Object', stat: true }, {
|
|
34915
|
+
entries: function entries(O) {
|
|
34916
|
+
return $entries(O);
|
|
34917
|
+
}
|
|
34918
|
+
});
|
|
34919
|
+
|
|
34920
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
34921
|
+
if (!o) return;
|
|
34922
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
34923
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
34924
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
34925
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
34926
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
34927
|
+
}
|
|
34928
|
+
|
|
34929
|
+
function _arrayLikeToArray(arr, len) {
|
|
34930
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
34931
|
+
|
|
34932
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
34933
|
+
|
|
34934
|
+
return arr2;
|
|
34935
|
+
}
|
|
34936
|
+
|
|
34937
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
34938
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
34939
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
34940
|
+
|
|
34941
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
34942
|
+
if (it) o = it;
|
|
34943
|
+
var i = 0;
|
|
34944
|
+
return function () {
|
|
34945
|
+
if (i >= o.length) return {
|
|
34946
|
+
done: true
|
|
34947
|
+
};
|
|
34948
|
+
return {
|
|
34949
|
+
done: false,
|
|
34950
|
+
value: o[i++]
|
|
34951
|
+
};
|
|
34952
|
+
};
|
|
34953
|
+
}
|
|
34954
|
+
|
|
34955
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
34956
|
+
}
|
|
34957
|
+
|
|
34958
|
+
var validatorToPredicate = function validatorToPredicate(validatorFn, emptyCase) {
|
|
34959
|
+
return function (value) {
|
|
34960
|
+
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
34961
|
+
rest[_key - 1] = arguments[_key];
|
|
34962
|
+
}
|
|
34963
|
+
|
|
34964
|
+
return value === "" ? emptyCase : validatorFn.apply(void 0, [value].concat(rest));
|
|
34965
|
+
};
|
|
34966
|
+
};
|
|
33969
34967
|
|
|
33970
34968
|
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
33971
34969
|
|
|
@@ -34001,10 +34999,19 @@ var isSameOrAfter$1 = {exports: {}};
|
|
|
34001
34999
|
|
|
34002
35000
|
var isSameOrAfter = isSameOrAfter$1.exports;
|
|
34003
35001
|
|
|
34004
|
-
|
|
35002
|
+
var createValidator = function createValidator(type, error) {
|
|
35003
|
+
var validator = function validator() {
|
|
35004
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
35005
|
+
args[_key] = arguments[_key];
|
|
35006
|
+
}
|
|
35007
|
+
|
|
35008
|
+
return {
|
|
35009
|
+
type: type,
|
|
35010
|
+
args: args,
|
|
35011
|
+
error: error
|
|
35012
|
+
};
|
|
35013
|
+
};
|
|
34005
35014
|
|
|
34006
|
-
const createValidator = (type, error) => {
|
|
34007
|
-
let validator = (...args) => ({ type, args, error });
|
|
34008
35015
|
validator.error = error;
|
|
34009
35016
|
return validator;
|
|
34010
35017
|
};
|
|
@@ -34012,428 +35019,408 @@ const createValidator = (type, error) => {
|
|
|
34012
35019
|
dayjs.extend(customParseFormat);
|
|
34013
35020
|
dayjs.extend(isSameOrBefore);
|
|
34014
35021
|
dayjs.extend(isSameOrAfter);
|
|
35022
|
+
var validatorFns = {};
|
|
35023
|
+
var REQUIRED = "validator/REQUIRED";
|
|
35024
|
+
var REQUIRED_ERROR = "error/REQUIRED";
|
|
35025
|
+
var required = createValidator(REQUIRED, REQUIRED_ERROR);
|
|
35026
|
+
|
|
35027
|
+
validatorFns[REQUIRED] = function (value, args, form) {
|
|
35028
|
+
return value !== "";
|
|
35029
|
+
};
|
|
34015
35030
|
|
|
34016
|
-
|
|
35031
|
+
var ONLY_INTEGERS = "validator/ONLY_INTEGERS";
|
|
35032
|
+
var ONLY_INTEGERS_ERROR = "error/ONLY_INTEGERS";
|
|
35033
|
+
var onlyIntegers = createValidator(ONLY_INTEGERS, ONLY_INTEGERS_ERROR);
|
|
34017
35034
|
|
|
34018
|
-
|
|
34019
|
-
|
|
34020
|
-
|
|
34021
|
-
|
|
35035
|
+
validatorFns[ONLY_INTEGERS] = function (value, args, form) {
|
|
35036
|
+
return /^(-?\d+)?$/.test(value);
|
|
35037
|
+
};
|
|
35038
|
+
|
|
35039
|
+
var ONLY_NATURALS = "validator/ONLY_NATURALS";
|
|
35040
|
+
var ONLY_NATURALS_ERROR = "error/ONLY_NATURALS";
|
|
35041
|
+
var onlyNaturals = createValidator(ONLY_NATURALS, ONLY_NATURALS_ERROR);
|
|
34022
35042
|
|
|
34023
|
-
|
|
34024
|
-
|
|
34025
|
-
|
|
34026
|
-
validatorFns[ONLY_INTEGERS] = (value, args, form) => /^(-?\d+)?$/.test(value);
|
|
35043
|
+
validatorFns[ONLY_NATURALS] = function (value, args, form) {
|
|
35044
|
+
return /^(\d+)?$/.test(value);
|
|
35045
|
+
};
|
|
34027
35046
|
|
|
34028
|
-
|
|
34029
|
-
|
|
34030
|
-
|
|
34031
|
-
validatorFns[ONLY_NATURALS] = (value, args, form) => /^(\d+)?$/.test(value);
|
|
35047
|
+
var NUMBER_LESS_THAN = "validator/NUMBER_LESS_THAN";
|
|
35048
|
+
var NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
|
|
35049
|
+
var numberLessThan = createValidator(NUMBER_LESS_THAN, NUMBER_LESS_THAN_ERROR);
|
|
34032
35050
|
|
|
34033
|
-
|
|
34034
|
-
const NUMBER_LESS_THAN_ERROR = "error/NUMBER_LESS_THAN";
|
|
34035
|
-
const numberLessThan = createValidator(
|
|
34036
|
-
NUMBER_LESS_THAN,
|
|
34037
|
-
NUMBER_LESS_THAN_ERROR
|
|
34038
|
-
);
|
|
34039
|
-
validatorFns[NUMBER_LESS_THAN] = (value, args, form) => {
|
|
35051
|
+
validatorFns[NUMBER_LESS_THAN] = function (value, args, form) {
|
|
34040
35052
|
if (value === "") {
|
|
34041
35053
|
return true;
|
|
34042
35054
|
}
|
|
35055
|
+
|
|
34043
35056
|
return Number(value) < args[0];
|
|
34044
35057
|
};
|
|
34045
35058
|
|
|
34046
|
-
|
|
34047
|
-
|
|
34048
|
-
|
|
34049
|
-
|
|
34050
|
-
|
|
34051
|
-
NUMBER_LESS_THAN_OR_EQUAL_TO,
|
|
34052
|
-
NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR
|
|
34053
|
-
);
|
|
34054
|
-
validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = (value, args, form) => {
|
|
35059
|
+
var NUMBER_LESS_THAN_OR_EQUAL_TO = "validator/NUMBER_LESS_THAN_OR_EQUAL_TO";
|
|
35060
|
+
var NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR = "error/NUMBER_LESS_THAN_OR_EQUAL_TO";
|
|
35061
|
+
var numberLessThanOrEqualTo = createValidator(NUMBER_LESS_THAN_OR_EQUAL_TO, NUMBER_LESS_THAN_OR_EQUAL_TO_ERROR);
|
|
35062
|
+
|
|
35063
|
+
validatorFns[NUMBER_LESS_THAN_OR_EQUAL_TO] = function (value, args, form) {
|
|
34055
35064
|
if (value === "") {
|
|
34056
35065
|
return true;
|
|
34057
35066
|
}
|
|
35067
|
+
|
|
34058
35068
|
return Number(value) <= args[0];
|
|
34059
35069
|
};
|
|
34060
35070
|
|
|
34061
|
-
|
|
34062
|
-
|
|
34063
|
-
|
|
34064
|
-
|
|
34065
|
-
|
|
34066
|
-
);
|
|
34067
|
-
validatorFns[NUMBER_GREATER_THAN] = (value, args, form) => {
|
|
35071
|
+
var NUMBER_GREATER_THAN = "validator/NUMBER_GREATER_THAN";
|
|
35072
|
+
var NUMBER_GREATER_THAN_ERROR = "error/NUMBER_GREATER_THAN";
|
|
35073
|
+
var numberGreaterThan = createValidator(NUMBER_GREATER_THAN, NUMBER_GREATER_THAN_ERROR);
|
|
35074
|
+
|
|
35075
|
+
validatorFns[NUMBER_GREATER_THAN] = function (value, args, form) {
|
|
34068
35076
|
if (value === "") {
|
|
34069
35077
|
return true;
|
|
34070
35078
|
}
|
|
35079
|
+
|
|
34071
35080
|
return Number(value) > args[0];
|
|
34072
35081
|
};
|
|
34073
35082
|
|
|
34074
|
-
|
|
34075
|
-
|
|
34076
|
-
|
|
34077
|
-
|
|
34078
|
-
|
|
34079
|
-
NUMBER_GREATER_THAN_OR_EQUAL_TO,
|
|
34080
|
-
NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR
|
|
34081
|
-
);
|
|
34082
|
-
validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = (value, args, form) => {
|
|
35083
|
+
var NUMBER_GREATER_THAN_OR_EQUAL_TO = "validator/NUMBER_GREATER_THAN_OR_EQUAL_TO";
|
|
35084
|
+
var NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR = "error/NUMBER_GREATER_THAN_OR_EQUAL_TO";
|
|
35085
|
+
var numberGreaterThanOrEqualTo = createValidator(NUMBER_GREATER_THAN_OR_EQUAL_TO, NUMBER_GREATER_THAN_OR_EQUAL_TO_ERROR);
|
|
35086
|
+
|
|
35087
|
+
validatorFns[NUMBER_GREATER_THAN_OR_EQUAL_TO] = function (value, args, form) {
|
|
34083
35088
|
if (value === "") {
|
|
34084
35089
|
return true;
|
|
34085
35090
|
}
|
|
35091
|
+
|
|
34086
35092
|
return Number(value) >= args[0];
|
|
34087
35093
|
};
|
|
34088
35094
|
|
|
34089
|
-
|
|
34090
|
-
|
|
34091
|
-
|
|
34092
|
-
|
|
34093
|
-
|
|
34094
|
-
|
|
35095
|
+
var MATCHES_FIELD = "validator/MATCHES_FIELD";
|
|
35096
|
+
var MATCHES_FIELD_ERROR$1 = "error/MATCHES_FIELD";
|
|
35097
|
+
var matchesField = createValidator(MATCHES_FIELD, MATCHES_FIELD_ERROR$1);
|
|
35098
|
+
|
|
35099
|
+
validatorFns[MATCHES_FIELD] = function (value, args, form) {
|
|
35100
|
+
var _dependentField$rawVa;
|
|
35101
|
+
|
|
35102
|
+
var dependentField = form[args[0]];
|
|
35103
|
+
var dependentFieldValue = (_dependentField$rawVa = dependentField == null ? void 0 : dependentField.rawValue) != null ? _dependentField$rawVa : "";
|
|
35104
|
+
|
|
34095
35105
|
if (dependentField === undefined) {
|
|
34096
|
-
throw new Error(
|
|
34097
|
-
`${args[0]} was passed to matchesField, but that field does not exist in the form`
|
|
34098
|
-
);
|
|
35106
|
+
throw new Error(args[0] + " was passed to matchesField, but that field does not exist in the form");
|
|
34099
35107
|
}
|
|
35108
|
+
|
|
34100
35109
|
return value === dependentFieldValue;
|
|
34101
35110
|
};
|
|
34102
35111
|
|
|
34103
|
-
|
|
34104
|
-
|
|
34105
|
-
|
|
34106
|
-
|
|
34107
|
-
|
|
34108
|
-
|
|
34109
|
-
|
|
34110
|
-
|
|
34111
|
-
|
|
34112
|
-
|
|
34113
|
-
|
|
34114
|
-
|
|
34115
|
-
|
|
34116
|
-
|
|
34117
|
-
) => ({
|
|
34118
|
-
type: VALIDATE_WHEN,
|
|
34119
|
-
args: [dependentValidator, primaryValidator, optionalFieldName],
|
|
34120
|
-
error: dependentValidator.error
|
|
34121
|
-
});
|
|
35112
|
+
var validateWhenErrorMessage = function validateWhenErrorMessage(type) {
|
|
35113
|
+
return type + " was passed to validateWhen, but that validator type does not exist.\n Please check that you are only calling validator creator functions exported from\n redux-freeform in your form config and that you didn't forget to\n invoke the validator creator (you cannot pass the functions themselves to\n createFormState). Also make sure you aren't passing validateWhen() to validateWhen\n as the primary validator.";
|
|
35114
|
+
};
|
|
35115
|
+
var VALIDATE_WHEN = "validator/VALIDATE_WHEN";
|
|
35116
|
+
var VALIDATE_WHEN_ERROR = "error/VALIDATE_WHEN";
|
|
35117
|
+
|
|
35118
|
+
var validateWhen = function validateWhen(dependentValidator, primaryValidator, optionalFieldName) {
|
|
35119
|
+
return {
|
|
35120
|
+
type: VALIDATE_WHEN,
|
|
35121
|
+
args: [dependentValidator, primaryValidator, optionalFieldName],
|
|
35122
|
+
error: dependentValidator.error
|
|
35123
|
+
};
|
|
35124
|
+
};
|
|
35125
|
+
|
|
34122
35126
|
validateWhen.error = VALIDATE_WHEN_ERROR;
|
|
34123
|
-
validatorFns[VALIDATE_WHEN] = (value, args, form) => {
|
|
34124
|
-
const [dependentValidator, primaryValidator, optionalFieldName] = args;
|
|
34125
|
-
const dependsOnOtherField = typeof optionalFieldName === "string";
|
|
34126
35127
|
|
|
34127
|
-
|
|
34128
|
-
|
|
34129
|
-
|
|
34130
|
-
|
|
35128
|
+
validatorFns[VALIDATE_WHEN] = function (value, args, form) {
|
|
35129
|
+
var dependentValidator = args[0],
|
|
35130
|
+
primaryValidator = args[1],
|
|
35131
|
+
optionalFieldName = args[2];
|
|
35132
|
+
var dependsOnOtherField = typeof optionalFieldName === "string";
|
|
35133
|
+
|
|
35134
|
+
if (primaryValidator.type === undefined || typeof validatorFns[primaryValidator.type] !== "function") {
|
|
34131
35135
|
throw new Error(validateWhenErrorMessage(primaryValidator.type));
|
|
34132
35136
|
}
|
|
35137
|
+
|
|
34133
35138
|
if (dependsOnOtherField && form[optionalFieldName] === undefined) {
|
|
34134
|
-
throw new Error(
|
|
34135
|
-
`${args[2]} was passed to matchesField, but that field does not exist in the form`
|
|
34136
|
-
);
|
|
35139
|
+
throw new Error(args[2] + " was passed to matchesField, but that field does not exist in the form");
|
|
34137
35140
|
}
|
|
34138
35141
|
|
|
34139
|
-
|
|
34140
|
-
|
|
34141
|
-
|
|
34142
|
-
);
|
|
34143
|
-
|
|
34144
|
-
|
|
34145
|
-
|
|
34146
|
-
|
|
34147
|
-
|
|
34148
|
-
|
|
34149
|
-
|
|
34150
|
-
|
|
35142
|
+
var primaryPredicate = validatorToPredicate(validatorFns[primaryValidator.type], false);
|
|
35143
|
+
var primaryValue = dependsOnOtherField ? form[optionalFieldName].rawValue : value;
|
|
35144
|
+
var primaryPredicatePassed = primaryPredicate(primaryValue, primaryValidator.args, form);
|
|
35145
|
+
return primaryPredicatePassed ? validatorFns[dependentValidator.type](value, dependentValidator.args, form) : true;
|
|
35146
|
+
};
|
|
35147
|
+
|
|
35148
|
+
var validateSumErrorMessage = function validateSumErrorMessage(type) {
|
|
35149
|
+
return type + " was passed to validateSum, but that validator type does not exist.\n Please check that you are only calling validator creator functions exported from\n redux-freeform in your form config and that you didn't forget to\n invoke the validator creator (you cannot pass the functions themselves to\n createFormState).";
|
|
35150
|
+
};
|
|
35151
|
+
var VALIDATE_SUM = "validator/VALIDATE_SUM";
|
|
35152
|
+
var VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
|
|
35153
|
+
|
|
35154
|
+
var validateSum = function validateSum(validator, fieldNamesArray) {
|
|
35155
|
+
return {
|
|
35156
|
+
type: VALIDATE_SUM,
|
|
35157
|
+
args: [validator, fieldNamesArray],
|
|
35158
|
+
error: validator.error
|
|
35159
|
+
};
|
|
35160
|
+
};
|
|
34151
35161
|
|
|
34152
|
-
return primaryPredicatePassed
|
|
34153
|
-
? validatorFns[dependentValidator.type](
|
|
34154
|
-
value,
|
|
34155
|
-
dependentValidator.args,
|
|
34156
|
-
form
|
|
34157
|
-
)
|
|
34158
|
-
: true;
|
|
34159
|
-
};
|
|
34160
|
-
|
|
34161
|
-
const validateSumErrorMessage = type =>
|
|
34162
|
-
`${type} was passed to validateSum, but that validator type does not exist.
|
|
34163
|
-
Please check that you are only calling validator creator functions exported from
|
|
34164
|
-
redux-freeform in your form config and that you didn't forget to
|
|
34165
|
-
invoke the validator creator (you cannot pass the functions themselves to
|
|
34166
|
-
createFormState).`;
|
|
34167
|
-
const VALIDATE_SUM = "validator/VALIDATE_SUM";
|
|
34168
|
-
const VALIDATE_SUM_ERROR = "error/VALIDATE_SUM";
|
|
34169
|
-
const validateSum = (validator, fieldNamesArray) => ({
|
|
34170
|
-
type: VALIDATE_SUM,
|
|
34171
|
-
args: [validator, fieldNamesArray],
|
|
34172
|
-
error: validator.error
|
|
34173
|
-
});
|
|
34174
35162
|
validateSum.error = VALIDATE_SUM_ERROR;
|
|
34175
|
-
validatorFns[VALIDATE_SUM] = (value, args, form) => {
|
|
34176
|
-
const [validator, fieldNamesArray] = args;
|
|
34177
35163
|
|
|
34178
|
-
|
|
34179
|
-
|
|
34180
|
-
|
|
34181
|
-
|
|
35164
|
+
validatorFns[VALIDATE_SUM] = function (value, args, form) {
|
|
35165
|
+
var validator = args[0],
|
|
35166
|
+
fieldNamesArray = args[1];
|
|
35167
|
+
|
|
35168
|
+
if (validator.type === undefined || typeof validatorFns[validator.type] !== "function") {
|
|
34182
35169
|
throw new Error(validateSumErrorMessage(validator.type));
|
|
34183
35170
|
}
|
|
34184
35171
|
|
|
34185
|
-
for (
|
|
35172
|
+
for (var _iterator = _createForOfIteratorHelperLoose(fieldNamesArray), _step; !(_step = _iterator()).done;) {
|
|
35173
|
+
var fieldName = _step.value;
|
|
35174
|
+
|
|
34186
35175
|
if (form[fieldName] === undefined) {
|
|
34187
|
-
throw new Error(
|
|
34188
|
-
`${fieldName} was passed to matchesField, but that field does not exist in the form`
|
|
34189
|
-
);
|
|
35176
|
+
throw new Error(fieldName + " was passed to matchesField, but that field does not exist in the form");
|
|
34190
35177
|
}
|
|
34191
35178
|
}
|
|
34192
35179
|
|
|
34193
|
-
|
|
34194
|
-
|
|
34195
|
-
|
|
34196
|
-
);
|
|
34197
|
-
|
|
35180
|
+
var sum = fieldNamesArray.reduce(function (acc, curr) {
|
|
35181
|
+
return acc + Number(form[curr].rawValue);
|
|
35182
|
+
}, Number(value));
|
|
34198
35183
|
return validatorFns[validator.type](sum, validator.args, form);
|
|
34199
35184
|
};
|
|
34200
35185
|
|
|
34201
|
-
|
|
34202
|
-
|
|
34203
|
-
|
|
34204
|
-
|
|
35186
|
+
var HAS_LENGTH = "validator/HAS_LENGTH";
|
|
35187
|
+
var HAS_LENGTH_ERROR = "error/HAS_LENGTH";
|
|
35188
|
+
var hasLength = createValidator(HAS_LENGTH, HAS_LENGTH_ERROR);
|
|
35189
|
+
|
|
35190
|
+
validatorFns[HAS_LENGTH] = function (value, args, form) {
|
|
34205
35191
|
if (value === "") {
|
|
34206
35192
|
return true;
|
|
34207
35193
|
}
|
|
34208
|
-
|
|
34209
|
-
|
|
35194
|
+
|
|
35195
|
+
var min = args[0];
|
|
35196
|
+
var max = args[1];
|
|
35197
|
+
|
|
34210
35198
|
if (max == undefined || min == undefined) {
|
|
34211
|
-
throw new Error(
|
|
34212
|
-
"Max and min need to be defined for hasLength, both or one of them is undefined"
|
|
34213
|
-
);
|
|
35199
|
+
throw new Error("Max and min need to be defined for hasLength, both or one of them is undefined");
|
|
34214
35200
|
}
|
|
35201
|
+
|
|
34215
35202
|
if (max < min) {
|
|
34216
|
-
throw new Error(
|
|
34217
|
-
"hasLength validator was passed a min greater than the max"
|
|
34218
|
-
);
|
|
35203
|
+
throw new Error("hasLength validator was passed a min greater than the max");
|
|
34219
35204
|
}
|
|
34220
|
-
|
|
35205
|
+
|
|
35206
|
+
var valueLength = value.length;
|
|
34221
35207
|
return max >= valueLength && valueLength >= min;
|
|
34222
35208
|
};
|
|
34223
35209
|
|
|
34224
|
-
|
|
34225
|
-
|
|
34226
|
-
|
|
34227
|
-
|
|
34228
|
-
|
|
34229
|
-
);
|
|
34230
|
-
validatorFns[DATE_BEFORE_TODAY] = (value, args, form) => {
|
|
35210
|
+
var DATE_BEFORE_TODAY = "validator/DATE_BEFORE_TODAY";
|
|
35211
|
+
var DATE_BEFORE_TODAY_ERROR = "error/DATE_BEFORE_TODAY";
|
|
35212
|
+
var dateBeforeToday = createValidator(DATE_BEFORE_TODAY, DATE_BEFORE_TODAY_ERROR);
|
|
35213
|
+
|
|
35214
|
+
validatorFns[DATE_BEFORE_TODAY] = function (value, args, form) {
|
|
34231
35215
|
if (value === "") {
|
|
34232
35216
|
return true;
|
|
34233
35217
|
}
|
|
34234
|
-
|
|
34235
|
-
|
|
34236
|
-
|
|
35218
|
+
|
|
35219
|
+
var dateFormat = args[0];
|
|
35220
|
+
var unit = args[1];
|
|
35221
|
+
var inclusive = args[2] || false;
|
|
34237
35222
|
|
|
34238
35223
|
if (dateFormat == undefined || unit == undefined) {
|
|
34239
|
-
throw new Error(
|
|
34240
|
-
"Date format and unit need to be defined for dateBeforeToday, one or both are undefined"
|
|
34241
|
-
);
|
|
35224
|
+
throw new Error("Date format and unit need to be defined for dateBeforeToday, one or both are undefined");
|
|
34242
35225
|
}
|
|
34243
|
-
|
|
34244
|
-
|
|
35226
|
+
|
|
35227
|
+
var now = dayjs();
|
|
35228
|
+
var dateValue = dayjs(value, dateFormat);
|
|
34245
35229
|
|
|
34246
35230
|
if (inclusive === true) {
|
|
34247
35231
|
return dateValue.isSameOrBefore(now, unit);
|
|
34248
35232
|
}
|
|
35233
|
+
|
|
34249
35234
|
return dateValue.isBefore(now, unit);
|
|
34250
35235
|
};
|
|
34251
35236
|
|
|
34252
|
-
|
|
34253
|
-
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
|
|
34257
|
-
);
|
|
34258
|
-
validatorFns[DATE_AFTER_TODAY] = (value, args, form) => {
|
|
35237
|
+
var DATE_AFTER_TODAY = "validator/DATE_AFTER_TODAY";
|
|
35238
|
+
var DATE_AFTER_TODAY_ERROR = "error/DATE_AFTER_TODAY";
|
|
35239
|
+
var dateAfterToday = createValidator(DATE_AFTER_TODAY, DATE_AFTER_TODAY_ERROR);
|
|
35240
|
+
|
|
35241
|
+
validatorFns[DATE_AFTER_TODAY] = function (value, args, form) {
|
|
34259
35242
|
if (value === "") {
|
|
34260
35243
|
return true;
|
|
34261
35244
|
}
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
35245
|
+
|
|
35246
|
+
var dateFormat = args[0];
|
|
35247
|
+
var unit = args[1];
|
|
35248
|
+
var inclusive = args[2] || false;
|
|
34265
35249
|
|
|
34266
35250
|
if (dateFormat == undefined || unit == undefined) {
|
|
34267
|
-
throw new Error(
|
|
34268
|
-
"Date format and unit need to be defined for dateAfterToday, one or both are undefined"
|
|
34269
|
-
);
|
|
35251
|
+
throw new Error("Date format and unit need to be defined for dateAfterToday, one or both are undefined");
|
|
34270
35252
|
}
|
|
34271
|
-
|
|
34272
|
-
|
|
35253
|
+
|
|
35254
|
+
var now = dayjs();
|
|
35255
|
+
var dateValue = dayjs(value, dateFormat);
|
|
34273
35256
|
|
|
34274
35257
|
if (inclusive === true) {
|
|
34275
35258
|
return dateValue.isSameOrAfter(now, unit);
|
|
34276
35259
|
}
|
|
35260
|
+
|
|
34277
35261
|
return dateValue.isAfter(now, unit);
|
|
34278
35262
|
};
|
|
34279
35263
|
|
|
34280
|
-
|
|
34281
|
-
|
|
34282
|
-
|
|
34283
|
-
|
|
34284
|
-
|
|
34285
|
-
);
|
|
34286
|
-
validatorFns[IS_VALID_MONTH] = (value, args, form) => {
|
|
35264
|
+
var IS_VALID_MONTH = "validator/IS_VALID_MONTH";
|
|
35265
|
+
var IS_VALID_MONTH_ERROR = "error/IS_VALID_MONTH";
|
|
35266
|
+
var isValidMonth = createValidator(IS_VALID_MONTH, IS_VALID_MONTH_ERROR);
|
|
35267
|
+
|
|
35268
|
+
validatorFns[IS_VALID_MONTH] = function (value, args, form) {
|
|
34287
35269
|
if (value === "") {
|
|
34288
35270
|
return true;
|
|
34289
|
-
}
|
|
34290
|
-
// Function takes one argument representing the character position
|
|
35271
|
+
} // Function takes one argument representing the character position
|
|
34291
35272
|
// In a date string to identify where the month is
|
|
34292
35273
|
// Eg "10/21/2021" - start position is 0
|
|
34293
35274
|
// Or "18/03/1990" - start position is 3
|
|
34294
35275
|
// Only works with two digit months (01, 02, 03, etc)
|
|
34295
|
-
|
|
34296
|
-
|
|
35276
|
+
|
|
35277
|
+
|
|
35278
|
+
var monthStartPosition = parseInt(args[0]);
|
|
35279
|
+
var monthEndPosition = monthStartPosition + 2;
|
|
35280
|
+
|
|
34297
35281
|
if (monthStartPosition === NaN) {
|
|
34298
35282
|
throw new Error("Month start position has to be a valid integer string");
|
|
34299
35283
|
}
|
|
34300
|
-
|
|
35284
|
+
|
|
35285
|
+
var month = parseInt(value.slice(monthStartPosition, monthEndPosition));
|
|
35286
|
+
|
|
34301
35287
|
if (month === NaN) {
|
|
34302
35288
|
return false;
|
|
34303
35289
|
}
|
|
35290
|
+
|
|
34304
35291
|
return month >= 1 && month <= 12;
|
|
34305
35292
|
};
|
|
34306
35293
|
|
|
34307
|
-
|
|
34308
|
-
|
|
34309
|
-
|
|
34310
|
-
|
|
35294
|
+
var MATCHES_REGEX = "validator/MATCHES_REGEX";
|
|
35295
|
+
var MATCHES_REGEX_ERROR = "error/MATCHES_REGEX";
|
|
35296
|
+
var matchesRegex = createValidator(MATCHES_REGEX, MATCHES_REGEX_ERROR);
|
|
35297
|
+
|
|
35298
|
+
validatorFns[MATCHES_REGEX] = function (value, args, form) {
|
|
34311
35299
|
if (value === "") {
|
|
34312
35300
|
return true;
|
|
34313
35301
|
}
|
|
35302
|
+
|
|
34314
35303
|
return new RegExp(args[0]).test(value); // new RexExp never throws an error, no matter the input
|
|
34315
|
-
};
|
|
35304
|
+
}; // based on http://www.brainjar.com/js/validation/
|
|
34316
35305
|
|
|
34317
|
-
|
|
34318
|
-
|
|
34319
|
-
|
|
34320
|
-
|
|
34321
|
-
|
|
34322
|
-
|
|
34323
|
-
);
|
|
34324
|
-
validatorFns[IS_ROUTING_NUMBER] = (value, args, form) => {
|
|
35306
|
+
|
|
35307
|
+
var IS_ROUTING_NUMBER = "validator/IS_ROUTING_NUMBER";
|
|
35308
|
+
var IS_ROUTING_NUMBER_ERROR = "error/IS_ROUTING_NUMBER";
|
|
35309
|
+
var isRoutingNumber = createValidator(IS_ROUTING_NUMBER, IS_ROUTING_NUMBER_ERROR);
|
|
35310
|
+
|
|
35311
|
+
validatorFns[IS_ROUTING_NUMBER] = function (value, args, form) {
|
|
34325
35312
|
if (value === "") {
|
|
34326
35313
|
return true;
|
|
34327
35314
|
}
|
|
35315
|
+
|
|
34328
35316
|
if (value.length != 9) {
|
|
34329
35317
|
return false;
|
|
34330
35318
|
}
|
|
34331
|
-
|
|
34332
|
-
|
|
34333
|
-
|
|
34334
|
-
|
|
34335
|
-
|
|
34336
|
-
|
|
34337
|
-
|
|
34338
|
-
|
|
34339
|
-
|
|
34340
|
-
|
|
34341
|
-
|
|
34342
|
-
|
|
34343
|
-
|
|
35319
|
+
|
|
35320
|
+
var sum = value.split("").map(function (ch) {
|
|
35321
|
+
return parseInt(ch);
|
|
35322
|
+
}).reduce(function (acc, cur, idx) {
|
|
35323
|
+
switch (idx % 3) {
|
|
35324
|
+
case 0:
|
|
35325
|
+
return acc + 3 * cur;
|
|
35326
|
+
|
|
35327
|
+
case 1:
|
|
35328
|
+
return acc + 7 * cur;
|
|
35329
|
+
|
|
35330
|
+
case 2:
|
|
35331
|
+
return acc + 1 * cur;
|
|
35332
|
+
}
|
|
35333
|
+
}, 0);
|
|
34344
35334
|
return sum != 0 && sum % 10 == 0;
|
|
34345
35335
|
};
|
|
34346
35336
|
|
|
34347
|
-
|
|
34348
|
-
|
|
34349
|
-
|
|
34350
|
-
|
|
35337
|
+
var HAS_NUMBER = "validator/HAS_NUMBER";
|
|
35338
|
+
var HAS_NUMBER_ERROR$1 = "error/HAS_NUMBER";
|
|
35339
|
+
var hasNumber = createValidator(HAS_NUMBER, HAS_NUMBER_ERROR$1);
|
|
35340
|
+
|
|
35341
|
+
validatorFns[HAS_NUMBER] = function (value, args, form) {
|
|
34351
35342
|
if (value === "") {
|
|
34352
35343
|
return true;
|
|
34353
35344
|
}
|
|
35345
|
+
|
|
34354
35346
|
return new RegExp(/[0-9]/).test(value);
|
|
34355
35347
|
};
|
|
34356
35348
|
|
|
34357
|
-
|
|
34358
|
-
|
|
34359
|
-
|
|
34360
|
-
|
|
34361
|
-
|
|
34362
|
-
);
|
|
34363
|
-
validatorFns[HAS_LOWERCASE_LETTER] = (value, args, form) => {
|
|
35349
|
+
var HAS_LOWERCASE_LETTER = "validator/HAS_LOWERCASE_LETTER";
|
|
35350
|
+
var HAS_LOWERCASE_LETTER_ERROR$1 = "error/HAS_LOWERCASE_LETTER";
|
|
35351
|
+
var hasLowercaseLetter = createValidator(HAS_LOWERCASE_LETTER, HAS_LOWERCASE_LETTER_ERROR$1);
|
|
35352
|
+
|
|
35353
|
+
validatorFns[HAS_LOWERCASE_LETTER] = function (value, args, form) {
|
|
34364
35354
|
if (value === "") {
|
|
34365
35355
|
return true;
|
|
34366
35356
|
}
|
|
35357
|
+
|
|
34367
35358
|
return new RegExp(/[a-z]/).test(value);
|
|
34368
35359
|
};
|
|
34369
35360
|
|
|
34370
|
-
|
|
34371
|
-
|
|
34372
|
-
|
|
34373
|
-
|
|
34374
|
-
|
|
34375
|
-
);
|
|
34376
|
-
validatorFns[HAS_UPPERCASE_LETTER] = (value, args, form) => {
|
|
35361
|
+
var HAS_UPPERCASE_LETTER = "validator/HAS_UPPERCASE_LETTER";
|
|
35362
|
+
var HAS_UPPERCASE_LETTER_ERROR$1 = "error/HAS_UPPERCASE_LETTER";
|
|
35363
|
+
var hasUppercaseLetter = createValidator(HAS_UPPERCASE_LETTER, HAS_UPPERCASE_LETTER_ERROR$1);
|
|
35364
|
+
|
|
35365
|
+
validatorFns[HAS_UPPERCASE_LETTER] = function (value, args, form) {
|
|
34377
35366
|
if (value === "") {
|
|
34378
35367
|
return true;
|
|
34379
35368
|
}
|
|
35369
|
+
|
|
34380
35370
|
return new RegExp(/[A-Z]/).test(value);
|
|
34381
35371
|
};
|
|
34382
35372
|
|
|
34383
|
-
|
|
34384
|
-
|
|
34385
|
-
|
|
34386
|
-
|
|
34387
|
-
|
|
34388
|
-
);
|
|
34389
|
-
validatorFns[HAS_SPECIAL_CHARACTER] = (value, args, form) => {
|
|
35373
|
+
var HAS_SPECIAL_CHARACTER = "validator/HAS_SPECIAL_CHARACTER";
|
|
35374
|
+
var HAS_SPECIAL_CHARACTER_ERROR$1 = "error/HAS_SPECIAL_CHARACTER";
|
|
35375
|
+
var hasSpecialCharacter = createValidator(HAS_SPECIAL_CHARACTER, HAS_SPECIAL_CHARACTER_ERROR$1);
|
|
35376
|
+
|
|
35377
|
+
validatorFns[HAS_SPECIAL_CHARACTER] = function (value, args, form) {
|
|
34390
35378
|
if (value === "") {
|
|
34391
35379
|
return true;
|
|
34392
35380
|
}
|
|
35381
|
+
|
|
34393
35382
|
return new RegExp(/[!@#$%^&*.?]/).test(value);
|
|
34394
35383
|
};
|
|
34395
35384
|
|
|
34396
|
-
|
|
34397
|
-
|
|
34398
|
-
|
|
34399
|
-
|
|
34400
|
-
|
|
34401
|
-
);
|
|
34402
|
-
validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
35385
|
+
var IS_PROBABLY_EMAIL = "validator/IS_PROBABLY_EMAIL";
|
|
35386
|
+
var IS_PROBABLY_EMAIL_ERROR = "error/IS_PROBABLY_EMAIL";
|
|
35387
|
+
var isProbablyEmail = createValidator(IS_PROBABLY_EMAIL, IS_PROBABLY_EMAIL_ERROR);
|
|
35388
|
+
|
|
35389
|
+
validatorFns[IS_PROBABLY_EMAIL] = function (value, args, form) {
|
|
34403
35390
|
if (value === "") {
|
|
34404
35391
|
return true;
|
|
34405
35392
|
}
|
|
35393
|
+
|
|
34406
35394
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
34407
35395
|
};
|
|
34408
35396
|
|
|
34409
|
-
|
|
34410
|
-
|
|
34411
|
-
|
|
34412
|
-
|
|
34413
|
-
|
|
34414
|
-
createFormState)`;
|
|
35397
|
+
var runValidatorErrorMessage = function runValidatorErrorMessage(type) {
|
|
35398
|
+
return type + " was passed to runValidator, but that validator type does not exist. \n Please check that you are only calling validator creator functions exported from \n redux-freeform in your form config and that you didn't forget to \n invoke the validator creator (you cannot pass the functions themselves to \n createFormState)";
|
|
35399
|
+
};
|
|
35400
|
+
var runValidator = function runValidator(validator, value, form) {
|
|
35401
|
+
var validatorFn = validatorFns[validator.type];
|
|
34415
35402
|
|
|
34416
|
-
const runValidator = (validator, value, form) => {
|
|
34417
|
-
const validatorFn = validatorFns[validator.type];
|
|
34418
35403
|
if (validatorFn === undefined) {
|
|
34419
35404
|
throw new Error(runValidatorErrorMessage(validator.type));
|
|
34420
35405
|
}
|
|
35406
|
+
|
|
34421
35407
|
return validatorFn(value, validator.args, form) ? null : validator.error;
|
|
34422
35408
|
};
|
|
34423
35409
|
|
|
34424
|
-
|
|
34425
|
-
return validators
|
|
34426
|
-
|
|
34427
|
-
|
|
35410
|
+
var _computeErrors = function _computeErrors(fieldName, form, validators) {
|
|
35411
|
+
return validators.map(function (v) {
|
|
35412
|
+
return runValidator(v, form[fieldName].rawValue, form);
|
|
35413
|
+
}).filter(function (x) {
|
|
35414
|
+
return x !== null;
|
|
35415
|
+
});
|
|
34428
35416
|
};
|
|
34429
35417
|
|
|
34430
|
-
|
|
34431
|
-
|
|
35418
|
+
var computeConstraints = function computeConstraints(fieldName, form) {
|
|
35419
|
+
var constraints = form[fieldName].constraints;
|
|
34432
35420
|
return _computeErrors(fieldName, form, constraints);
|
|
34433
35421
|
};
|
|
34434
|
-
|
|
34435
|
-
|
|
34436
|
-
const validators = form[fieldName].validators;
|
|
35422
|
+
var computeErrors = function computeErrors(fieldName, form) {
|
|
35423
|
+
var validators = form[fieldName].validators;
|
|
34437
35424
|
return _computeErrors(fieldName, form, validators);
|
|
34438
35425
|
};
|
|
34439
35426
|
|
|
@@ -34888,7 +35875,7 @@ var objectTraps = {
|
|
|
34888
35875
|
|
|
34889
35876
|
set: set$1$1,
|
|
34890
35877
|
deleteProperty: deleteProperty,
|
|
34891
|
-
getOwnPropertyDescriptor: getOwnPropertyDescriptor$
|
|
35878
|
+
getOwnPropertyDescriptor: getOwnPropertyDescriptor$3,
|
|
34892
35879
|
|
|
34893
35880
|
defineProperty: function defineProperty() {
|
|
34894
35881
|
throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
|
|
@@ -34996,7 +35983,7 @@ function deleteProperty(state, prop) {
|
|
|
34996
35983
|
// the same guarantee in ES5 mode.
|
|
34997
35984
|
|
|
34998
35985
|
|
|
34999
|
-
function getOwnPropertyDescriptor$
|
|
35986
|
+
function getOwnPropertyDescriptor$3(state, prop) {
|
|
35000
35987
|
var owner = source$1(state);
|
|
35001
35988
|
var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
|
|
35002
35989
|
|
|
@@ -35571,127 +36558,179 @@ immer.createDraft.bind(immer);
|
|
|
35571
36558
|
|
|
35572
36559
|
immer.finishDraft.bind(immer);
|
|
35573
36560
|
|
|
35574
|
-
|
|
35575
|
-
|
|
35576
|
-
|
|
35577
|
-
|
|
36561
|
+
var createInitialState = function createInitialState(formConfig) {
|
|
36562
|
+
var initialForm = {};
|
|
36563
|
+
var formConfigKeys = Object.keys(formConfig);
|
|
36564
|
+
|
|
36565
|
+
for (var _i = 0, _formConfigKeys = formConfigKeys; _i < _formConfigKeys.length; _i++) {
|
|
36566
|
+
var formKey = _formConfigKeys[_i];
|
|
35578
36567
|
initialForm[formKey] = {
|
|
35579
36568
|
dirty: false,
|
|
35580
36569
|
rawValue: formConfig[formKey].defaultValue || "",
|
|
35581
36570
|
validators: formConfig[formKey].validators || [],
|
|
35582
36571
|
constraints: formConfig[formKey].constraints || []
|
|
35583
36572
|
};
|
|
35584
|
-
}
|
|
35585
|
-
// Because validators require the entire form we have to do a
|
|
36573
|
+
} // Because validators require the entire form we have to do a
|
|
35586
36574
|
// second pass to add errors once the initial form has been
|
|
35587
36575
|
// constructed
|
|
35588
|
-
|
|
35589
|
-
|
|
35590
|
-
|
|
35591
|
-
|
|
36576
|
+
|
|
36577
|
+
|
|
36578
|
+
for (var _i2 = 0, _formConfigKeys2 = formConfigKeys; _i2 < _formConfigKeys2.length; _i2++) {
|
|
36579
|
+
var _formKey = _formConfigKeys2[_i2];
|
|
36580
|
+
var errors = computeErrors(_formKey, initialForm);
|
|
36581
|
+
initialForm[_formKey].errors = errors;
|
|
36582
|
+
initialForm[_formKey].hasErrors = errors.length > 0;
|
|
35592
36583
|
}
|
|
36584
|
+
|
|
35593
36585
|
return initialForm;
|
|
35594
36586
|
};
|
|
36587
|
+
var SET = "field/SET";
|
|
35595
36588
|
|
|
35596
|
-
|
|
35597
|
-
|
|
35598
|
-
|
|
35599
|
-
|
|
35600
|
-
|
|
36589
|
+
var _set = function set(fieldName) {
|
|
36590
|
+
return function (value) {
|
|
36591
|
+
return {
|
|
36592
|
+
type: SET,
|
|
36593
|
+
payload: {
|
|
36594
|
+
fieldName: fieldName,
|
|
36595
|
+
value: value
|
|
36596
|
+
}
|
|
36597
|
+
};
|
|
36598
|
+
};
|
|
36599
|
+
};
|
|
36600
|
+
var CLEAR = "form/CLEAR";
|
|
36601
|
+
|
|
36602
|
+
var _clear = function clear() {
|
|
36603
|
+
return {
|
|
36604
|
+
type: CLEAR
|
|
36605
|
+
};
|
|
36606
|
+
};
|
|
36607
|
+
var ADD_VALIDATOR = "field/ADD_VALIDATOR";
|
|
35601
36608
|
|
|
35602
|
-
|
|
35603
|
-
|
|
36609
|
+
var _addValidator = function addValidator(fieldName) {
|
|
36610
|
+
return function (validator) {
|
|
36611
|
+
return {
|
|
36612
|
+
type: ADD_VALIDATOR,
|
|
36613
|
+
payload: {
|
|
36614
|
+
fieldName: fieldName,
|
|
36615
|
+
validator: validator
|
|
36616
|
+
}
|
|
36617
|
+
};
|
|
36618
|
+
};
|
|
36619
|
+
};
|
|
36620
|
+
var createFormReducer = function createFormReducer(formConfig) {
|
|
36621
|
+
return function (state, action) {
|
|
36622
|
+
if (state === void 0) {
|
|
36623
|
+
state = createInitialState(formConfig);
|
|
36624
|
+
}
|
|
35604
36625
|
|
|
35605
|
-
|
|
35606
|
-
|
|
35607
|
-
|
|
35608
|
-
|
|
35609
|
-
|
|
36626
|
+
switch (action.type) {
|
|
36627
|
+
case SET:
|
|
36628
|
+
var changedFieldName = action.payload.fieldName;
|
|
36629
|
+
var newRawValue = action.payload.value;
|
|
36630
|
+
return produce(state, function (draftState) {
|
|
36631
|
+
var originalValue = draftState[changedFieldName].rawValue;
|
|
36632
|
+
draftState[changedFieldName].rawValue = newRawValue;
|
|
36633
|
+
|
|
36634
|
+
if (computeConstraints(changedFieldName, draftState).length > 0) {
|
|
36635
|
+
// If the change violates constraints, revert the change
|
|
36636
|
+
draftState[changedFieldName].rawValue = originalValue;
|
|
36637
|
+
return draftState;
|
|
36638
|
+
}
|
|
35610
36639
|
|
|
35611
|
-
|
|
35612
|
-
|
|
35613
|
-
|
|
35614
|
-
|
|
35615
|
-
|
|
35616
|
-
|
|
35617
|
-
|
|
35618
|
-
|
|
35619
|
-
|
|
35620
|
-
|
|
35621
|
-
|
|
35622
|
-
|
|
35623
|
-
|
|
35624
|
-
// If the change violates constraints, revert the change
|
|
35625
|
-
draftState[changedFieldName].rawValue = originalValue;
|
|
35626
|
-
return draftState;
|
|
35627
|
-
}
|
|
36640
|
+
var fields = Object.entries(draftState);
|
|
36641
|
+
|
|
36642
|
+
for (var _i3 = 0, _fields = fields; _i3 < _fields.length; _i3++) {
|
|
36643
|
+
var entry = _fields[_i3];
|
|
36644
|
+
var fieldName = entry[0];
|
|
36645
|
+
var field = entry[1];
|
|
36646
|
+
var errors = computeErrors(fieldName, draftState);
|
|
36647
|
+
var dirty = fieldName === changedFieldName ? true : field.dirty;
|
|
36648
|
+
draftState[fieldName].errors = errors;
|
|
36649
|
+
draftState[fieldName].dirty = dirty;
|
|
36650
|
+
draftState[fieldName].hasErrors = errors.length > 0;
|
|
36651
|
+
}
|
|
36652
|
+
});
|
|
35628
36653
|
|
|
35629
|
-
|
|
35630
|
-
|
|
35631
|
-
|
|
35632
|
-
|
|
35633
|
-
|
|
35634
|
-
|
|
35635
|
-
|
|
35636
|
-
draftState[
|
|
35637
|
-
|
|
35638
|
-
|
|
35639
|
-
|
|
35640
|
-
|
|
35641
|
-
|
|
35642
|
-
|
|
35643
|
-
|
|
35644
|
-
|
|
35645
|
-
|
|
35646
|
-
|
|
35647
|
-
|
|
35648
|
-
|
|
35649
|
-
|
|
35650
|
-
let fieldName = entry[0];
|
|
35651
|
-
let field = entry[1];
|
|
35652
|
-
let errors = computeErrors(fieldName, draftState);
|
|
35653
|
-
let dirty = field.dirty;
|
|
35654
|
-
draftState[fieldName].errors = errors;
|
|
35655
|
-
draftState[fieldName].dirty = dirty;
|
|
35656
|
-
draftState[fieldName].hasErrors = errors.length > 0;
|
|
35657
|
-
}
|
|
35658
|
-
});
|
|
35659
|
-
default:
|
|
35660
|
-
return state;
|
|
35661
|
-
}
|
|
35662
|
-
};
|
|
36654
|
+
case CLEAR:
|
|
36655
|
+
return createInitialState(formConfig);
|
|
36656
|
+
|
|
36657
|
+
case ADD_VALIDATOR:
|
|
36658
|
+
var fieldWithOverride = action.payload.fieldName;
|
|
36659
|
+
var newValidator = action.payload.validator;
|
|
36660
|
+
return produce(state, function (draftState) {
|
|
36661
|
+
draftState[fieldWithOverride].validators.push(newValidator);
|
|
36662
|
+
var fields = Object.entries(draftState);
|
|
36663
|
+
|
|
36664
|
+
for (var _i4 = 0, _fields2 = fields; _i4 < _fields2.length; _i4++) {
|
|
36665
|
+
var entry = _fields2[_i4];
|
|
36666
|
+
var fieldName = entry[0];
|
|
36667
|
+
var field = entry[1];
|
|
36668
|
+
var errors = computeErrors(fieldName, draftState);
|
|
36669
|
+
var dirty = field.dirty;
|
|
36670
|
+
draftState[fieldName].errors = errors;
|
|
36671
|
+
draftState[fieldName].dirty = dirty;
|
|
36672
|
+
draftState[fieldName].hasErrors = errors.length > 0;
|
|
36673
|
+
}
|
|
36674
|
+
});
|
|
35663
36675
|
|
|
35664
|
-
|
|
36676
|
+
default:
|
|
36677
|
+
return state;
|
|
36678
|
+
}
|
|
36679
|
+
};
|
|
36680
|
+
};
|
|
36681
|
+
var createMapDispatchToProps = function createMapDispatchToProps(formConfig) {
|
|
35665
36682
|
// Do memo-ization
|
|
35666
|
-
|
|
35667
|
-
|
|
35668
|
-
return dispatch
|
|
36683
|
+
var cachedDispatch;
|
|
36684
|
+
var cacheValue;
|
|
36685
|
+
return function (dispatch) {
|
|
35669
36686
|
if (dispatch == cachedDispatch) {
|
|
35670
36687
|
return cacheValue;
|
|
35671
36688
|
}
|
|
35672
|
-
|
|
36689
|
+
|
|
36690
|
+
var dispatchObj = {};
|
|
35673
36691
|
dispatchObj.fields = {};
|
|
35674
|
-
|
|
35675
|
-
|
|
36692
|
+
var keys = Object.keys(formConfig);
|
|
36693
|
+
|
|
36694
|
+
var _loop = function _loop() {
|
|
36695
|
+
var fieldName = _keys[_i5];
|
|
35676
36696
|
dispatchObj.fields[fieldName] = {
|
|
35677
|
-
set:
|
|
35678
|
-
|
|
36697
|
+
set: function set(value) {
|
|
36698
|
+
return dispatch(_set(fieldName)(value));
|
|
36699
|
+
},
|
|
36700
|
+
addValidator: function addValidator(validator) {
|
|
36701
|
+
return dispatch(_addValidator(fieldName)(validator));
|
|
36702
|
+
}
|
|
35679
36703
|
};
|
|
36704
|
+
};
|
|
36705
|
+
|
|
36706
|
+
for (var _i5 = 0, _keys = keys; _i5 < _keys.length; _i5++) {
|
|
36707
|
+
_loop();
|
|
35680
36708
|
}
|
|
35681
|
-
|
|
36709
|
+
|
|
36710
|
+
dispatchObj.form = {
|
|
36711
|
+
clear: function clear() {
|
|
36712
|
+
return dispatch(_clear());
|
|
36713
|
+
}
|
|
36714
|
+
};
|
|
35682
36715
|
cachedDispatch = dispatch;
|
|
35683
|
-
cacheValue = {
|
|
36716
|
+
cacheValue = {
|
|
36717
|
+
actions: dispatchObj
|
|
36718
|
+
};
|
|
35684
36719
|
return cacheValue;
|
|
35685
36720
|
};
|
|
35686
36721
|
};
|
|
35687
|
-
|
|
35688
|
-
|
|
35689
|
-
|
|
35690
|
-
|
|
35691
|
-
|
|
35692
|
-
|
|
35693
|
-
|
|
35694
|
-
|
|
36722
|
+
var mapStateToProps = function mapStateToProps(state) {
|
|
36723
|
+
return {
|
|
36724
|
+
fields: state
|
|
36725
|
+
};
|
|
36726
|
+
};
|
|
36727
|
+
var createFormState = function createFormState(formConfig) {
|
|
36728
|
+
return {
|
|
36729
|
+
reducer: createFormReducer(formConfig),
|
|
36730
|
+
mapDispatchToProps: createMapDispatchToProps(formConfig),
|
|
36731
|
+
mapStateToProps: mapStateToProps
|
|
36732
|
+
};
|
|
36733
|
+
};
|
|
35695
36734
|
|
|
35696
36735
|
const formatDelimiter = "_";
|
|
35697
36736
|
const phoneFormats = ["", "_", "__", "(___) ", "(___) _", "(___) __", "(___) ___-", "(___) ___-_", "(___) ___-__", "(___) ___-___", "(___) ___-____"];
|
|
@@ -35977,18 +37016,9 @@ ChangePasswordForm.reducer = reducer$1;
|
|
|
35977
37016
|
ChangePasswordForm.mapStateToProps = mapStateToProps$2;
|
|
35978
37017
|
ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
|
|
35979
37018
|
|
|
35980
|
-
var MATCH = wellKnownSymbol('match');
|
|
35981
|
-
|
|
35982
|
-
// `IsRegExp` abstract operation
|
|
35983
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
35984
|
-
var isRegexp = function (it) {
|
|
35985
|
-
var isRegExp;
|
|
35986
|
-
return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
|
35987
|
-
};
|
|
35988
|
-
|
|
35989
37019
|
var REPLACE$1 = wellKnownSymbol('replace');
|
|
35990
|
-
var RegExpPrototype$
|
|
35991
|
-
var max$
|
|
37020
|
+
var RegExpPrototype$3 = RegExp.prototype;
|
|
37021
|
+
var max$3 = Math.max;
|
|
35992
37022
|
|
|
35993
37023
|
var stringIndexOf = function (string, searchValue, fromIndex) {
|
|
35994
37024
|
if (fromIndex > string.length) return -1;
|
|
@@ -36008,7 +37038,7 @@ _export({ target: 'String', proto: true }, {
|
|
|
36008
37038
|
if (searchValue != null) {
|
|
36009
37039
|
IS_REG_EXP = isRegexp(searchValue);
|
|
36010
37040
|
if (IS_REG_EXP) {
|
|
36011
|
-
flags = toString_1(requireObjectCoercible('flags' in RegExpPrototype$
|
|
37041
|
+
flags = toString_1(requireObjectCoercible('flags' in RegExpPrototype$3
|
|
36012
37042
|
? searchValue.flags
|
|
36013
37043
|
: regexpFlags.call(searchValue)
|
|
36014
37044
|
));
|
|
@@ -36024,7 +37054,7 @@ _export({ target: 'String', proto: true }, {
|
|
|
36024
37054
|
functionalReplace = isCallable(replaceValue);
|
|
36025
37055
|
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
|
36026
37056
|
searchLength = searchString.length;
|
|
36027
|
-
advanceBy = max$
|
|
37057
|
+
advanceBy = max$3(1, searchLength);
|
|
36028
37058
|
position = stringIndexOf(string, searchString, 0);
|
|
36029
37059
|
while (position !== -1) {
|
|
36030
37060
|
if (functionalReplace) {
|
|
@@ -42221,7 +43251,7 @@ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "
|
|
|
42221
43251
|
|
|
42222
43252
|
|
|
42223
43253
|
|
|
42224
|
-
var index$
|
|
43254
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
42225
43255
|
__proto__: null,
|
|
42226
43256
|
colors: colors,
|
|
42227
43257
|
fontWeights: style_constants
|
|
@@ -42229,12 +43259,12 @@ var index$4 = /*#__PURE__*/Object.freeze({
|
|
|
42229
43259
|
|
|
42230
43260
|
|
|
42231
43261
|
|
|
42232
|
-
var index$
|
|
43262
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
42233
43263
|
__proto__: null,
|
|
42234
43264
|
formats: formats,
|
|
42235
43265
|
general: general,
|
|
42236
43266
|
theme: themeUtils
|
|
42237
43267
|
});
|
|
42238
43268
|
|
|
42239
|
-
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon$1 as AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, FailedIcon, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$
|
|
43269
|
+
export { AccountNumberImage, AccountsAddIcon$1 as AccountsAddIcon, AccountsIcon$1 as AccountsIcon, AccountsIconSmall$1 as AccountsIconSmall, AchReturnIcon, AddObligation$1 as AddObligation, AddressForm, Alert$1 as Alert, AllocatedIcon, AmountCallout$1 as AmountCallout, AutopayOnIcon$1 as AutopayOnIcon, BankIcon, Box, BoxWithShadow$1 as BoxWithShadow, Breadcrumbs as Breadcrumb, ButtonWithAction, ButtonWithLink, CalendarIcon, CarrotIcon$1 as CarrotIcon, CashIcon, Center, CenterSingle$1 as CenterSingle, CenterStack$1 as CenterStack, ChangePasswordForm, ChargebackIcon, ChargebackReversalIcon, CheckIcon, Checkbox$1 as Checkbox, CheckboxList$1 as CheckboxList, CheckmarkIcon, ChevronIcon$1 as ChevronIcon, Cluster, CollapsibleSection$1 as CollapsibleSection, CountryDropdown, Cover, CustomerSearchIcon, DefaultPageTemplate, Detail$1 as Detail, DisplayBox$1 as DisplayBox, DisplayCard, Dropdown$1 as Dropdown, DuplicateIcon, EditNameForm, EditableList, EditableTable, EmailForm, EmptyCartIcon$1 as EmptyCartIcon, ErroredIcon, ExternalLink, FailedIcon, ForgotPasswordForm, ForgotPasswordIcon$1 as ForgotPasswordIcon, FormContainer$1 as FormContainer, FormFooterPanel$1 as FormFooterPanel, FormInput$1 as FormInput, FormInputColumn, FormInputRow, FormSelect$1 as FormSelect, FormattedAddress$1 as FormattedAddress, FormattedCreditCard$1 as FormattedCreditCard, Frame, GenericCard, GenericCardLarge, GoToEmailIcon$1 as GoToEmailIcon, Grid, HamburgerButton, Heading$1 as Heading, HighlightTabRow$1 as HighlightTabRow, IconAdd, IconQuitLarge, Imposter, InternalLink, InternalUserInfoForm, Jumbo$1 as Jumbo, LabeledAmount$1 as LabeledAmount, LineItem$1 as LineItem, Loading, LoginForm, Modal$1 as Modal, Module$1 as Module, Motion, NavFooter, NavHeader, NavMenuDesktop$1 as NavMenuDesktop, NavMenuMobile$1 as NavMenuMobile, NoCustomerResultsIcon, NoPaymentResultsIcon, NotFoundIcon, Obligation, iconsMap as ObligationIcons, Pagination, Paragraph$1 as Paragraph, PartialAmountForm, PasswordRequirements, PaymentButtonBar, PaymentDetails$1 as PaymentDetails, PaymentFormACH, PaymentFormCard$1 as PaymentFormCard, PaymentIcon, PaymentMethodAddIcon$1 as PaymentMethodAddIcon, PaymentMethodIcon$1 as PaymentMethodIcon, PaymentSearchIcon, PaymentsIconSmall$1 as PaymentsIconSmall, PendingIcon, PeriscopeFailedIcon, PhoneForm, Placeholder$1 as Placeholder, ProcessingFee$1 as ProcessingFee, ProfileIcon$1 as ProfileIcon, ProfileIconSmall$1 as ProfileIconSmall, PropertiesAddIcon$1 as PropertiesAddIcon, PropertiesIconSmall$1 as PropertiesIconSmall, RadioButton$2 as RadioButton, RadioSection$1 as RadioSection, Reel, RefundIcon, RegistrationForm, RejectedIcon, RejectedVelocityIcon, ResetConfirmationForm$1 as ResetConfirmationForm, ResetPasswordForm, ResetPasswordIcon, ResetPasswordSuccess, RoutingNumberImage, SearchIcon, SearchableSelect$1 as SearchableSelect, SettingsIconSmall$1 as SettingsIconSmall, ShoppingCartIcon, Sidebar, SidebarSingleContent$1 as SidebarSingleContent, SidebarStackContent$1 as SidebarStackContent, SolidDivider$1 as SolidDivider, Spinner$2 as Spinner, Stack, FormStateDropdown as StateProvinceDropdown, StatusUnknownIcon, SuccessfulIcon, Switcher, TabSidebar$1 as TabSidebar, TableListItem, Tabs$1 as Tabs, TermsAndConditions, TermsAndConditionsModal$1 as TermsAndConditionsModal, Text$1 as Text, Timeout$1 as Timeout, TimeoutImage, Title$1 as Title, ToggleSwitch$1 as ToggleSwitch, TrashIcon$1 as TrashIcon, TypeaheadInput, VerifiedEmailIcon$1 as VerifiedEmailIcon, VoidedIcon, WalletIcon$1 as WalletIcon, WarningIconXS, WelcomeModule$1 as WelcomeModule, WorkflowTile, cardRegistry, index$5 as constants, createPartialAmountFormState, index$6 as util, withWindowSize };
|
|
42240
43270
|
//# sourceMappingURL=index.esm.js.map
|