@emeraldemperaur/vector-sigma 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +268 -504
- package/lib/index.esm.js +232 -468
- package/package.json +4 -4
package/lib/index.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var ReactDOM = require('react-dom');
|
|
5
|
+
var formik = require('formik');
|
|
5
6
|
|
|
6
7
|
function _interopNamespaceDefault(e) {
|
|
7
8
|
var n = Object.create(null);
|
|
@@ -9248,473 +9249,6 @@ const vectorSigma = (name) => {
|
|
|
9248
9249
|
name)));
|
|
9249
9250
|
};
|
|
9250
9251
|
|
|
9251
|
-
var isProduction = process.env.NODE_ENV === 'production';
|
|
9252
|
-
function warning(condition, message) {
|
|
9253
|
-
if (!isProduction) {
|
|
9254
|
-
|
|
9255
|
-
var text = "Warning: " + message;
|
|
9256
|
-
|
|
9257
|
-
if (typeof console !== 'undefined') {
|
|
9258
|
-
console.warn(text);
|
|
9259
|
-
}
|
|
9260
|
-
|
|
9261
|
-
try {
|
|
9262
|
-
throw Error(text);
|
|
9263
|
-
} catch (x) {}
|
|
9264
|
-
}
|
|
9265
|
-
}
|
|
9266
|
-
|
|
9267
|
-
var reactIs = {exports: {}};
|
|
9268
|
-
|
|
9269
|
-
var reactIs_production_min = {};
|
|
9270
|
-
|
|
9271
|
-
/** @license React v16.13.1
|
|
9272
|
-
* react-is.production.min.js
|
|
9273
|
-
*
|
|
9274
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9275
|
-
*
|
|
9276
|
-
* This source code is licensed under the MIT license found in the
|
|
9277
|
-
* LICENSE file in the root directory of this source tree.
|
|
9278
|
-
*/
|
|
9279
|
-
|
|
9280
|
-
var hasRequiredReactIs_production_min;
|
|
9281
|
-
|
|
9282
|
-
function requireReactIs_production_min () {
|
|
9283
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
9284
|
-
hasRequiredReactIs_production_min = 1;
|
|
9285
|
-
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
9286
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
9287
|
-
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
9288
|
-
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
9289
|
-
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
9290
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
9291
|
-
return reactIs_production_min;
|
|
9292
|
-
}
|
|
9293
|
-
|
|
9294
|
-
var reactIs_development = {};
|
|
9295
|
-
|
|
9296
|
-
/** @license React v16.13.1
|
|
9297
|
-
* react-is.development.js
|
|
9298
|
-
*
|
|
9299
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9300
|
-
*
|
|
9301
|
-
* This source code is licensed under the MIT license found in the
|
|
9302
|
-
* LICENSE file in the root directory of this source tree.
|
|
9303
|
-
*/
|
|
9304
|
-
|
|
9305
|
-
var hasRequiredReactIs_development;
|
|
9306
|
-
|
|
9307
|
-
function requireReactIs_development () {
|
|
9308
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
9309
|
-
hasRequiredReactIs_development = 1;
|
|
9310
|
-
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9314
|
-
(function() {
|
|
9315
|
-
|
|
9316
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
9317
|
-
// nor polyfill, then a plain number is used for performance.
|
|
9318
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
9319
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
9320
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
9321
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
9322
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
9323
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
9324
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
9325
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
9326
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
9327
|
-
|
|
9328
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
9329
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
9330
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
9331
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
9332
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
9333
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
9334
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
9335
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
9336
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
9337
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
9338
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
9339
|
-
|
|
9340
|
-
function isValidElementType(type) {
|
|
9341
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
9342
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
9343
|
-
}
|
|
9344
|
-
|
|
9345
|
-
function typeOf(object) {
|
|
9346
|
-
if (typeof object === 'object' && object !== null) {
|
|
9347
|
-
var $$typeof = object.$$typeof;
|
|
9348
|
-
|
|
9349
|
-
switch ($$typeof) {
|
|
9350
|
-
case REACT_ELEMENT_TYPE:
|
|
9351
|
-
var type = object.type;
|
|
9352
|
-
|
|
9353
|
-
switch (type) {
|
|
9354
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
9355
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
9356
|
-
case REACT_FRAGMENT_TYPE:
|
|
9357
|
-
case REACT_PROFILER_TYPE:
|
|
9358
|
-
case REACT_STRICT_MODE_TYPE:
|
|
9359
|
-
case REACT_SUSPENSE_TYPE:
|
|
9360
|
-
return type;
|
|
9361
|
-
|
|
9362
|
-
default:
|
|
9363
|
-
var $$typeofType = type && type.$$typeof;
|
|
9364
|
-
|
|
9365
|
-
switch ($$typeofType) {
|
|
9366
|
-
case REACT_CONTEXT_TYPE:
|
|
9367
|
-
case REACT_FORWARD_REF_TYPE:
|
|
9368
|
-
case REACT_LAZY_TYPE:
|
|
9369
|
-
case REACT_MEMO_TYPE:
|
|
9370
|
-
case REACT_PROVIDER_TYPE:
|
|
9371
|
-
return $$typeofType;
|
|
9372
|
-
|
|
9373
|
-
default:
|
|
9374
|
-
return $$typeof;
|
|
9375
|
-
}
|
|
9376
|
-
|
|
9377
|
-
}
|
|
9378
|
-
|
|
9379
|
-
case REACT_PORTAL_TYPE:
|
|
9380
|
-
return $$typeof;
|
|
9381
|
-
}
|
|
9382
|
-
}
|
|
9383
|
-
|
|
9384
|
-
return undefined;
|
|
9385
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
9386
|
-
|
|
9387
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
9388
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
9389
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
9390
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
9391
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
9392
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
9393
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
9394
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
9395
|
-
var Memo = REACT_MEMO_TYPE;
|
|
9396
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
9397
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
9398
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
9399
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
9400
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
9401
|
-
|
|
9402
|
-
function isAsyncMode(object) {
|
|
9403
|
-
{
|
|
9404
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
9405
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
9406
|
-
|
|
9407
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
9408
|
-
}
|
|
9409
|
-
}
|
|
9410
|
-
|
|
9411
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
9412
|
-
}
|
|
9413
|
-
function isConcurrentMode(object) {
|
|
9414
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
9415
|
-
}
|
|
9416
|
-
function isContextConsumer(object) {
|
|
9417
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
9418
|
-
}
|
|
9419
|
-
function isContextProvider(object) {
|
|
9420
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
9421
|
-
}
|
|
9422
|
-
function isElement(object) {
|
|
9423
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
9424
|
-
}
|
|
9425
|
-
function isForwardRef(object) {
|
|
9426
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
9427
|
-
}
|
|
9428
|
-
function isFragment(object) {
|
|
9429
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
9430
|
-
}
|
|
9431
|
-
function isLazy(object) {
|
|
9432
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
9433
|
-
}
|
|
9434
|
-
function isMemo(object) {
|
|
9435
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
9436
|
-
}
|
|
9437
|
-
function isPortal(object) {
|
|
9438
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
9439
|
-
}
|
|
9440
|
-
function isProfiler(object) {
|
|
9441
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
9442
|
-
}
|
|
9443
|
-
function isStrictMode(object) {
|
|
9444
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
9445
|
-
}
|
|
9446
|
-
function isSuspense(object) {
|
|
9447
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
9448
|
-
}
|
|
9449
|
-
|
|
9450
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
9451
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
9452
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
9453
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
9454
|
-
reactIs_development.Element = Element;
|
|
9455
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
9456
|
-
reactIs_development.Fragment = Fragment;
|
|
9457
|
-
reactIs_development.Lazy = Lazy;
|
|
9458
|
-
reactIs_development.Memo = Memo;
|
|
9459
|
-
reactIs_development.Portal = Portal;
|
|
9460
|
-
reactIs_development.Profiler = Profiler;
|
|
9461
|
-
reactIs_development.StrictMode = StrictMode;
|
|
9462
|
-
reactIs_development.Suspense = Suspense;
|
|
9463
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
9464
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
9465
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
9466
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
9467
|
-
reactIs_development.isElement = isElement;
|
|
9468
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
9469
|
-
reactIs_development.isFragment = isFragment;
|
|
9470
|
-
reactIs_development.isLazy = isLazy;
|
|
9471
|
-
reactIs_development.isMemo = isMemo;
|
|
9472
|
-
reactIs_development.isPortal = isPortal;
|
|
9473
|
-
reactIs_development.isProfiler = isProfiler;
|
|
9474
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
9475
|
-
reactIs_development.isSuspense = isSuspense;
|
|
9476
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
9477
|
-
reactIs_development.typeOf = typeOf;
|
|
9478
|
-
})();
|
|
9479
|
-
}
|
|
9480
|
-
return reactIs_development;
|
|
9481
|
-
}
|
|
9482
|
-
|
|
9483
|
-
var hasRequiredReactIs;
|
|
9484
|
-
|
|
9485
|
-
function requireReactIs () {
|
|
9486
|
-
if (hasRequiredReactIs) return reactIs.exports;
|
|
9487
|
-
hasRequiredReactIs = 1;
|
|
9488
|
-
|
|
9489
|
-
if (process.env.NODE_ENV === 'production') {
|
|
9490
|
-
reactIs.exports = requireReactIs_production_min();
|
|
9491
|
-
} else {
|
|
9492
|
-
reactIs.exports = requireReactIs_development();
|
|
9493
|
-
}
|
|
9494
|
-
return reactIs.exports;
|
|
9495
|
-
}
|
|
9496
|
-
|
|
9497
|
-
var hoistNonReactStatics_cjs;
|
|
9498
|
-
var hasRequiredHoistNonReactStatics_cjs;
|
|
9499
|
-
|
|
9500
|
-
function requireHoistNonReactStatics_cjs () {
|
|
9501
|
-
if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
|
|
9502
|
-
hasRequiredHoistNonReactStatics_cjs = 1;
|
|
9503
|
-
|
|
9504
|
-
var reactIs = requireReactIs();
|
|
9505
|
-
|
|
9506
|
-
/**
|
|
9507
|
-
* Copyright 2015, Yahoo! Inc.
|
|
9508
|
-
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
|
|
9509
|
-
*/
|
|
9510
|
-
var REACT_STATICS = {
|
|
9511
|
-
childContextTypes: true,
|
|
9512
|
-
contextType: true,
|
|
9513
|
-
contextTypes: true,
|
|
9514
|
-
defaultProps: true,
|
|
9515
|
-
displayName: true,
|
|
9516
|
-
getDefaultProps: true,
|
|
9517
|
-
getDerivedStateFromError: true,
|
|
9518
|
-
getDerivedStateFromProps: true,
|
|
9519
|
-
mixins: true,
|
|
9520
|
-
propTypes: true,
|
|
9521
|
-
type: true
|
|
9522
|
-
};
|
|
9523
|
-
var KNOWN_STATICS = {
|
|
9524
|
-
name: true,
|
|
9525
|
-
length: true,
|
|
9526
|
-
prototype: true,
|
|
9527
|
-
caller: true,
|
|
9528
|
-
callee: true,
|
|
9529
|
-
arguments: true,
|
|
9530
|
-
arity: true
|
|
9531
|
-
};
|
|
9532
|
-
var FORWARD_REF_STATICS = {
|
|
9533
|
-
'$$typeof': true,
|
|
9534
|
-
render: true,
|
|
9535
|
-
defaultProps: true,
|
|
9536
|
-
displayName: true,
|
|
9537
|
-
propTypes: true
|
|
9538
|
-
};
|
|
9539
|
-
var MEMO_STATICS = {
|
|
9540
|
-
'$$typeof': true,
|
|
9541
|
-
compare: true,
|
|
9542
|
-
defaultProps: true,
|
|
9543
|
-
displayName: true,
|
|
9544
|
-
propTypes: true,
|
|
9545
|
-
type: true
|
|
9546
|
-
};
|
|
9547
|
-
var TYPE_STATICS = {};
|
|
9548
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
9549
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
9550
|
-
|
|
9551
|
-
function getStatics(component) {
|
|
9552
|
-
// React v16.11 and below
|
|
9553
|
-
if (reactIs.isMemo(component)) {
|
|
9554
|
-
return MEMO_STATICS;
|
|
9555
|
-
} // React v16.12 and above
|
|
9556
|
-
|
|
9557
|
-
|
|
9558
|
-
return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
|
|
9559
|
-
}
|
|
9560
|
-
|
|
9561
|
-
var defineProperty = Object.defineProperty;
|
|
9562
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
9563
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
9564
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
9565
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
9566
|
-
var objectPrototype = Object.prototype;
|
|
9567
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
9568
|
-
if (typeof sourceComponent !== 'string') {
|
|
9569
|
-
// don't hoist over string (html) components
|
|
9570
|
-
if (objectPrototype) {
|
|
9571
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
9572
|
-
|
|
9573
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
9574
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
9575
|
-
}
|
|
9576
|
-
}
|
|
9577
|
-
|
|
9578
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
9579
|
-
|
|
9580
|
-
if (getOwnPropertySymbols) {
|
|
9581
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
9582
|
-
}
|
|
9583
|
-
|
|
9584
|
-
var targetStatics = getStatics(targetComponent);
|
|
9585
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
9586
|
-
|
|
9587
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
9588
|
-
var key = keys[i];
|
|
9589
|
-
|
|
9590
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
9591
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
9592
|
-
|
|
9593
|
-
try {
|
|
9594
|
-
// Avoid failures from read-only properties
|
|
9595
|
-
defineProperty(targetComponent, key, descriptor);
|
|
9596
|
-
} catch (e) {}
|
|
9597
|
-
}
|
|
9598
|
-
}
|
|
9599
|
-
}
|
|
9600
|
-
|
|
9601
|
-
return targetComponent;
|
|
9602
|
-
}
|
|
9603
|
-
|
|
9604
|
-
hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
9605
|
-
return hoistNonReactStatics_cjs;
|
|
9606
|
-
}
|
|
9607
|
-
|
|
9608
|
-
requireHoistNonReactStatics_cjs();
|
|
9609
|
-
|
|
9610
|
-
function _extends$5() {
|
|
9611
|
-
_extends$5 = Object.assign || function (target) {
|
|
9612
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9613
|
-
var source = arguments[i];
|
|
9614
|
-
|
|
9615
|
-
for (var key in source) {
|
|
9616
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9617
|
-
target[key] = source[key];
|
|
9618
|
-
}
|
|
9619
|
-
}
|
|
9620
|
-
}
|
|
9621
|
-
|
|
9622
|
-
return target;
|
|
9623
|
-
};
|
|
9624
|
-
|
|
9625
|
-
return _extends$5.apply(this, arguments);
|
|
9626
|
-
}
|
|
9627
|
-
|
|
9628
|
-
function _objectWithoutPropertiesLoose$8(source, excluded) {
|
|
9629
|
-
if (source == null) return {};
|
|
9630
|
-
var target = {};
|
|
9631
|
-
var sourceKeys = Object.keys(source);
|
|
9632
|
-
var key, i;
|
|
9633
|
-
|
|
9634
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
9635
|
-
key = sourceKeys[i];
|
|
9636
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
9637
|
-
target[key] = source[key];
|
|
9638
|
-
}
|
|
9639
|
-
|
|
9640
|
-
return target;
|
|
9641
|
-
}
|
|
9642
|
-
|
|
9643
|
-
var FormikContext = /*#__PURE__*/React.createContext(undefined);
|
|
9644
|
-
FormikContext.displayName = 'FormikContext';
|
|
9645
|
-
FormikContext.Provider;
|
|
9646
|
-
FormikContext.Consumer;
|
|
9647
|
-
function useFormikContext() {
|
|
9648
|
-
var formik = React.useContext(FormikContext);
|
|
9649
|
-
!!!formik ? process.env.NODE_ENV !== "production" ? warning(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : warning() : void 0;
|
|
9650
|
-
return formik;
|
|
9651
|
-
}
|
|
9652
|
-
/** @private is the given object an Object? */
|
|
9653
|
-
|
|
9654
|
-
var isObject$3 = function isObject(obj) {
|
|
9655
|
-
return obj !== null && typeof obj === 'object';
|
|
9656
|
-
};
|
|
9657
|
-
|
|
9658
|
-
function useField(propsOrFieldName) {
|
|
9659
|
-
var formik = useFormikContext();
|
|
9660
|
-
var getFieldProps = formik.getFieldProps,
|
|
9661
|
-
getFieldMeta = formik.getFieldMeta,
|
|
9662
|
-
getFieldHelpers = formik.getFieldHelpers,
|
|
9663
|
-
registerField = formik.registerField,
|
|
9664
|
-
unregisterField = formik.unregisterField;
|
|
9665
|
-
var isAnObject = isObject$3(propsOrFieldName); // Normalize propsOrFieldName to FieldHookConfig<Val>
|
|
9666
|
-
|
|
9667
|
-
var props = isAnObject ? propsOrFieldName : {
|
|
9668
|
-
name: propsOrFieldName
|
|
9669
|
-
};
|
|
9670
|
-
var fieldName = props.name,
|
|
9671
|
-
validateFn = props.validate;
|
|
9672
|
-
React.useEffect(function () {
|
|
9673
|
-
if (fieldName) {
|
|
9674
|
-
registerField(fieldName, {
|
|
9675
|
-
validate: validateFn
|
|
9676
|
-
});
|
|
9677
|
-
}
|
|
9678
|
-
|
|
9679
|
-
return function () {
|
|
9680
|
-
if (fieldName) {
|
|
9681
|
-
unregisterField(fieldName);
|
|
9682
|
-
}
|
|
9683
|
-
};
|
|
9684
|
-
}, [registerField, unregisterField, fieldName, validateFn]);
|
|
9685
|
-
|
|
9686
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9687
|
-
!formik ? process.env.NODE_ENV !== "production" ? warning(false, 'useField() / <Field /> must be used underneath a <Formik> component or withFormik() higher order component') : warning() : void 0;
|
|
9688
|
-
}
|
|
9689
|
-
|
|
9690
|
-
!fieldName ? process.env.NODE_ENV !== "production" ? warning(false, 'Invalid field name. Either pass `useField` a string or an object containing a `name` key.') : warning() : void 0;
|
|
9691
|
-
var fieldHelpers = React.useMemo(function () {
|
|
9692
|
-
return getFieldHelpers(fieldName);
|
|
9693
|
-
}, [getFieldHelpers, fieldName]);
|
|
9694
|
-
return [getFieldProps(props), getFieldMeta(fieldName), fieldHelpers];
|
|
9695
|
-
}
|
|
9696
|
-
|
|
9697
|
-
var Form = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9698
|
-
// iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
|
|
9699
|
-
// We default the action to "#" in case the preventDefault fails (just updates the URL hash)
|
|
9700
|
-
var action = props.action,
|
|
9701
|
-
rest = _objectWithoutPropertiesLoose$8(props, ["action"]);
|
|
9702
|
-
|
|
9703
|
-
var _action = action != null ? action : '#';
|
|
9704
|
-
|
|
9705
|
-
var _useFormikContext = useFormikContext(),
|
|
9706
|
-
handleReset = _useFormikContext.handleReset,
|
|
9707
|
-
handleSubmit = _useFormikContext.handleSubmit;
|
|
9708
|
-
|
|
9709
|
-
return React.createElement("form", _extends$5({
|
|
9710
|
-
onSubmit: handleSubmit,
|
|
9711
|
-
ref: ref,
|
|
9712
|
-
onReset: handleReset,
|
|
9713
|
-
action: _action
|
|
9714
|
-
}, rest));
|
|
9715
|
-
});
|
|
9716
|
-
Form.displayName = 'Form';
|
|
9717
|
-
|
|
9718
9252
|
function _objectWithoutPropertiesLoose$7(source, excluded) {
|
|
9719
9253
|
if (source == null) return {};
|
|
9720
9254
|
var target = {};
|
|
@@ -12562,8 +12096,8 @@ const getStyles$1 = (inputtype, shape, hasError) => {
|
|
|
12562
12096
|
};
|
|
12563
12097
|
const xAvatar = (_a) => {
|
|
12564
12098
|
var { inputtype = 'avatar', alias, readOnly, width, placeholder = '', value, shape = 'circle', size = 120, style, accept = 'image/*' } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "shape", "size", "style", "accept"]);
|
|
12565
|
-
const [field, meta, helpers] = useField(alias);
|
|
12566
|
-
const { setTouched } = useFormikContext();
|
|
12099
|
+
const [field, meta, helpers] = formik.useField(alias);
|
|
12100
|
+
const { setTouched } = formik.useFormikContext();
|
|
12567
12101
|
const inputRef = React.useRef(null);
|
|
12568
12102
|
const [previewUrl, setPreviewUrl] = React.useState(null);
|
|
12569
12103
|
const inputId = `${alias}FormInput` || crypto.randomUUID();
|
|
@@ -12802,8 +12336,8 @@ const xButton = (_a) => {
|
|
|
12802
12336
|
|
|
12803
12337
|
const CheckboxGroup = (_a) => {
|
|
12804
12338
|
var { inputtype = 'checkbox', alias, readOnly, width, placeholder = '', style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "direction", "columns", "className"]);
|
|
12805
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
12806
|
-
const [field, meta] = useField(alias);
|
|
12339
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
12340
|
+
const [field, meta] = formik.useField(alias);
|
|
12807
12341
|
const currentValues = (Array.isArray(field.value) ? field.value : []);
|
|
12808
12342
|
const hasError = Boolean(meta.touched && meta.error);
|
|
12809
12343
|
const containerRef = React.useRef(null);
|
|
@@ -12909,8 +12443,8 @@ const getDesignStyles = (inputtype, isOpen) => {
|
|
|
12909
12443
|
};
|
|
12910
12444
|
const ConditionalTrigger = (_a) => {
|
|
12911
12445
|
var { alias, readOnly, width, placeholder = '', value, inputtype = 'conditionaltoggle', triggerValue = true, inputoptions = [], toggledinputtype = inputtype, children, style, className } = _a, props = __rest$1(_a, ["alias", "readOnly", "width", "placeholder", "value", "inputtype", "triggerValue", "inputoptions", "toggledinputtype", "children", "style", "className"]);
|
|
12912
|
-
const [field, meta, helpers] = useField(alias);
|
|
12913
|
-
const { setTouched } = useFormikContext();
|
|
12446
|
+
const [field, meta, helpers] = formik.useField(alias);
|
|
12447
|
+
const { setTouched } = formik.useFormikContext();
|
|
12914
12448
|
const inputId = `${alias}FormInput` || crypto.randomUUID();
|
|
12915
12449
|
const errorId = `${alias}-error`;
|
|
12916
12450
|
// Trigger (Equality) Logic :: If current Field value === trigger value
|
|
@@ -21239,8 +20773,8 @@ const ensureDate = (date) => {
|
|
|
21239
20773
|
|
|
21240
20774
|
const DatePicker = (_a) => {
|
|
21241
20775
|
var { inputtype = 'datepicker', alias, readOnly, width, placeholder = 'Pick a date', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
|
|
21242
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
21243
|
-
const [field, meta] = useField(alias);
|
|
20776
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
20777
|
+
const [field, meta] = formik.useField(alias);
|
|
21244
20778
|
const hasError = Boolean(meta.touched && meta.error);
|
|
21245
20779
|
const selectedDate = field.value ? (typeof field.value === 'string' ? parseISO(field.value) : field.value) : undefined;
|
|
21246
20780
|
const parsedMin = ensureDate(minvalue);
|
|
@@ -21356,8 +20890,8 @@ const DatePicker = (_a) => {
|
|
|
21356
20890
|
const DateRangePicker = (_a) => {
|
|
21357
20891
|
var _b, _c;
|
|
21358
20892
|
var { inputtype = 'daterangepicker', alias, readOnly, width, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
|
|
21359
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
21360
|
-
const [field, meta] = useField(alias);
|
|
20893
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
20894
|
+
const [field, meta] = formik.useField(alias);
|
|
21361
20895
|
const hasError = Boolean(meta.touched && meta.error);
|
|
21362
20896
|
// Range object value format: { from: "2023-01-01", to: "2023-01-05" } :: Strings or Date Objects
|
|
21363
20897
|
const rawVal = field.value || {};
|
|
@@ -21461,8 +20995,8 @@ const DateRangePicker = (_a) => {
|
|
|
21461
20995
|
|
|
21462
20996
|
const DateTimePicker = (_a) => {
|
|
21463
20997
|
var { inputtype = 'datetimepicker', alias, readOnly, width, placeholder = '', value, minvalue, maxvalue, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "className", "style"]);
|
|
21464
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
21465
|
-
const [field, meta] = useField(alias);
|
|
20998
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
20999
|
+
const [field, meta] = formik.useField(alias);
|
|
21466
21000
|
const hasError = Boolean(meta.touched && meta.error);
|
|
21467
21001
|
const selectedDate = ensureDate(field.value);
|
|
21468
21002
|
const parsedMin = ensureDate(minvalue);
|
|
@@ -21594,8 +21128,8 @@ const Dropdown = (_a) => {
|
|
|
21594
21128
|
var { inputtype = 'dropdown-material', alias, readOnly, width, placeholder, value, inputoptions, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "inputoptions", "style"]);
|
|
21595
21129
|
const triggerRef = React.useRef(null);
|
|
21596
21130
|
const [neuVars, setNeuVars] = React.useState({});
|
|
21597
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
21598
|
-
const [field, meta] = useField(alias);
|
|
21131
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21132
|
+
const [field, meta] = formik.useField(alias);
|
|
21599
21133
|
const hasError = Boolean(meta.touched && meta.error);
|
|
21600
21134
|
React.useEffect(() => {
|
|
21601
21135
|
if (inputtype === 'dropdown-neumorphic' && triggerRef.current) {
|
|
@@ -21718,8 +21252,8 @@ const getFileIcon = (type, name) => {
|
|
|
21718
21252
|
const File$1 = (_a) => {
|
|
21719
21253
|
var _b;
|
|
21720
21254
|
var { inputtype = 'fileinput', alias, readOnly, width, placeholder = '', value, preview = false, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "preview", "className", "style"]);
|
|
21721
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
21722
|
-
const [field, meta] = useField(alias);
|
|
21255
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
21256
|
+
const [field, meta] = formik.useField(alias);
|
|
21723
21257
|
// File object or null
|
|
21724
21258
|
const selectedFile = field.value;
|
|
21725
21259
|
const hasError = Boolean(meta.touched && meta.error);
|
|
@@ -29194,6 +28728,236 @@ var metadata$1 = {"version":4,"country_calling_codes":{"1":["US","AG","AI","AS",
|
|
|
29194
28728
|
|
|
29195
28729
|
var propTypes = {exports: {}};
|
|
29196
28730
|
|
|
28731
|
+
var reactIs = {exports: {}};
|
|
28732
|
+
|
|
28733
|
+
var reactIs_production_min = {};
|
|
28734
|
+
|
|
28735
|
+
/** @license React v16.13.1
|
|
28736
|
+
* react-is.production.min.js
|
|
28737
|
+
*
|
|
28738
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28739
|
+
*
|
|
28740
|
+
* This source code is licensed under the MIT license found in the
|
|
28741
|
+
* LICENSE file in the root directory of this source tree.
|
|
28742
|
+
*/
|
|
28743
|
+
|
|
28744
|
+
var hasRequiredReactIs_production_min;
|
|
28745
|
+
|
|
28746
|
+
function requireReactIs_production_min () {
|
|
28747
|
+
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
28748
|
+
hasRequiredReactIs_production_min = 1;
|
|
28749
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
28750
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
28751
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
|
|
28752
|
+
reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
|
|
28753
|
+
reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
|
|
28754
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
|
|
28755
|
+
return reactIs_production_min;
|
|
28756
|
+
}
|
|
28757
|
+
|
|
28758
|
+
var reactIs_development = {};
|
|
28759
|
+
|
|
28760
|
+
/** @license React v16.13.1
|
|
28761
|
+
* react-is.development.js
|
|
28762
|
+
*
|
|
28763
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
28764
|
+
*
|
|
28765
|
+
* This source code is licensed under the MIT license found in the
|
|
28766
|
+
* LICENSE file in the root directory of this source tree.
|
|
28767
|
+
*/
|
|
28768
|
+
|
|
28769
|
+
var hasRequiredReactIs_development;
|
|
28770
|
+
|
|
28771
|
+
function requireReactIs_development () {
|
|
28772
|
+
if (hasRequiredReactIs_development) return reactIs_development;
|
|
28773
|
+
hasRequiredReactIs_development = 1;
|
|
28774
|
+
|
|
28775
|
+
|
|
28776
|
+
|
|
28777
|
+
if (process.env.NODE_ENV !== "production") {
|
|
28778
|
+
(function() {
|
|
28779
|
+
|
|
28780
|
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
28781
|
+
// nor polyfill, then a plain number is used for performance.
|
|
28782
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
28783
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
28784
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
28785
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
28786
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
28787
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
28788
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
28789
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
28790
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
28791
|
+
|
|
28792
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
28793
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
28794
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
28795
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
28796
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
28797
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
28798
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
28799
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
28800
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
28801
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
28802
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
28803
|
+
|
|
28804
|
+
function isValidElementType(type) {
|
|
28805
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
28806
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
28807
|
+
}
|
|
28808
|
+
|
|
28809
|
+
function typeOf(object) {
|
|
28810
|
+
if (typeof object === 'object' && object !== null) {
|
|
28811
|
+
var $$typeof = object.$$typeof;
|
|
28812
|
+
|
|
28813
|
+
switch ($$typeof) {
|
|
28814
|
+
case REACT_ELEMENT_TYPE:
|
|
28815
|
+
var type = object.type;
|
|
28816
|
+
|
|
28817
|
+
switch (type) {
|
|
28818
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
28819
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
28820
|
+
case REACT_FRAGMENT_TYPE:
|
|
28821
|
+
case REACT_PROFILER_TYPE:
|
|
28822
|
+
case REACT_STRICT_MODE_TYPE:
|
|
28823
|
+
case REACT_SUSPENSE_TYPE:
|
|
28824
|
+
return type;
|
|
28825
|
+
|
|
28826
|
+
default:
|
|
28827
|
+
var $$typeofType = type && type.$$typeof;
|
|
28828
|
+
|
|
28829
|
+
switch ($$typeofType) {
|
|
28830
|
+
case REACT_CONTEXT_TYPE:
|
|
28831
|
+
case REACT_FORWARD_REF_TYPE:
|
|
28832
|
+
case REACT_LAZY_TYPE:
|
|
28833
|
+
case REACT_MEMO_TYPE:
|
|
28834
|
+
case REACT_PROVIDER_TYPE:
|
|
28835
|
+
return $$typeofType;
|
|
28836
|
+
|
|
28837
|
+
default:
|
|
28838
|
+
return $$typeof;
|
|
28839
|
+
}
|
|
28840
|
+
|
|
28841
|
+
}
|
|
28842
|
+
|
|
28843
|
+
case REACT_PORTAL_TYPE:
|
|
28844
|
+
return $$typeof;
|
|
28845
|
+
}
|
|
28846
|
+
}
|
|
28847
|
+
|
|
28848
|
+
return undefined;
|
|
28849
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
28850
|
+
|
|
28851
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
28852
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
28853
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
28854
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
28855
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
28856
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
28857
|
+
var Fragment = REACT_FRAGMENT_TYPE;
|
|
28858
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
28859
|
+
var Memo = REACT_MEMO_TYPE;
|
|
28860
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
28861
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
28862
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
28863
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
28864
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
28865
|
+
|
|
28866
|
+
function isAsyncMode(object) {
|
|
28867
|
+
{
|
|
28868
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
28869
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
28870
|
+
|
|
28871
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
28872
|
+
}
|
|
28873
|
+
}
|
|
28874
|
+
|
|
28875
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
28876
|
+
}
|
|
28877
|
+
function isConcurrentMode(object) {
|
|
28878
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
28879
|
+
}
|
|
28880
|
+
function isContextConsumer(object) {
|
|
28881
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
28882
|
+
}
|
|
28883
|
+
function isContextProvider(object) {
|
|
28884
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
28885
|
+
}
|
|
28886
|
+
function isElement(object) {
|
|
28887
|
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
28888
|
+
}
|
|
28889
|
+
function isForwardRef(object) {
|
|
28890
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
28891
|
+
}
|
|
28892
|
+
function isFragment(object) {
|
|
28893
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
28894
|
+
}
|
|
28895
|
+
function isLazy(object) {
|
|
28896
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
28897
|
+
}
|
|
28898
|
+
function isMemo(object) {
|
|
28899
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
28900
|
+
}
|
|
28901
|
+
function isPortal(object) {
|
|
28902
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
28903
|
+
}
|
|
28904
|
+
function isProfiler(object) {
|
|
28905
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
28906
|
+
}
|
|
28907
|
+
function isStrictMode(object) {
|
|
28908
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
28909
|
+
}
|
|
28910
|
+
function isSuspense(object) {
|
|
28911
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
28912
|
+
}
|
|
28913
|
+
|
|
28914
|
+
reactIs_development.AsyncMode = AsyncMode;
|
|
28915
|
+
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
28916
|
+
reactIs_development.ContextConsumer = ContextConsumer;
|
|
28917
|
+
reactIs_development.ContextProvider = ContextProvider;
|
|
28918
|
+
reactIs_development.Element = Element;
|
|
28919
|
+
reactIs_development.ForwardRef = ForwardRef;
|
|
28920
|
+
reactIs_development.Fragment = Fragment;
|
|
28921
|
+
reactIs_development.Lazy = Lazy;
|
|
28922
|
+
reactIs_development.Memo = Memo;
|
|
28923
|
+
reactIs_development.Portal = Portal;
|
|
28924
|
+
reactIs_development.Profiler = Profiler;
|
|
28925
|
+
reactIs_development.StrictMode = StrictMode;
|
|
28926
|
+
reactIs_development.Suspense = Suspense;
|
|
28927
|
+
reactIs_development.isAsyncMode = isAsyncMode;
|
|
28928
|
+
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
28929
|
+
reactIs_development.isContextConsumer = isContextConsumer;
|
|
28930
|
+
reactIs_development.isContextProvider = isContextProvider;
|
|
28931
|
+
reactIs_development.isElement = isElement;
|
|
28932
|
+
reactIs_development.isForwardRef = isForwardRef;
|
|
28933
|
+
reactIs_development.isFragment = isFragment;
|
|
28934
|
+
reactIs_development.isLazy = isLazy;
|
|
28935
|
+
reactIs_development.isMemo = isMemo;
|
|
28936
|
+
reactIs_development.isPortal = isPortal;
|
|
28937
|
+
reactIs_development.isProfiler = isProfiler;
|
|
28938
|
+
reactIs_development.isStrictMode = isStrictMode;
|
|
28939
|
+
reactIs_development.isSuspense = isSuspense;
|
|
28940
|
+
reactIs_development.isValidElementType = isValidElementType;
|
|
28941
|
+
reactIs_development.typeOf = typeOf;
|
|
28942
|
+
})();
|
|
28943
|
+
}
|
|
28944
|
+
return reactIs_development;
|
|
28945
|
+
}
|
|
28946
|
+
|
|
28947
|
+
var hasRequiredReactIs;
|
|
28948
|
+
|
|
28949
|
+
function requireReactIs () {
|
|
28950
|
+
if (hasRequiredReactIs) return reactIs.exports;
|
|
28951
|
+
hasRequiredReactIs = 1;
|
|
28952
|
+
|
|
28953
|
+
if (process.env.NODE_ENV === 'production') {
|
|
28954
|
+
reactIs.exports = requireReactIs_production_min();
|
|
28955
|
+
} else {
|
|
28956
|
+
reactIs.exports = requireReactIs_development();
|
|
28957
|
+
}
|
|
28958
|
+
return reactIs.exports;
|
|
28959
|
+
}
|
|
28960
|
+
|
|
29197
28961
|
/*
|
|
29198
28962
|
object-assign
|
|
29199
28963
|
(c) Sindre Sorhus
|
|
@@ -36496,8 +36260,8 @@ var en = {
|
|
|
36496
36260
|
};
|
|
36497
36261
|
|
|
36498
36262
|
const PhoneInput = (alias, inputLabel, width, newRow, defaultValue, value, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
36499
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
36500
|
-
const [field, meta] = useField(alias);
|
|
36263
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
36264
|
+
const [field, meta] = formik.useField(alias);
|
|
36501
36265
|
const [country, setCountry] = React.useState('US');
|
|
36502
36266
|
const hasError = Boolean(meta.touched && meta.error);
|
|
36503
36267
|
return (React.createElement(React.Fragment, null,
|
|
@@ -40346,8 +40110,8 @@ const UUIDInput = (alias, type, inputLabel, width, defaultValue, delimiter, form
|
|
|
40346
40110
|
if (type.toLocaleLowerCase().startsWith("uuid")) {
|
|
40347
40111
|
format = parseUuidFormat(type) || format;
|
|
40348
40112
|
}
|
|
40349
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
40350
|
-
const [field, meta] = useField(alias);
|
|
40113
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
40114
|
+
const [field, meta] = formik.useField(alias);
|
|
40351
40115
|
const [uuidFormat] = React.useState(format);
|
|
40352
40116
|
const maskPattern = uuidFormat.map(len => '*'.repeat(len)).join(delimiter || "-");
|
|
40353
40117
|
const [copied, setCopied] = React.useState(false);
|
|
@@ -41818,8 +41582,8 @@ var cardValidator = /*@__PURE__*/getDefaultExportFromCjs(distExports);
|
|
|
41818
41582
|
|
|
41819
41583
|
const xCreditCardInput = (alias, inputLabel, width, defaultValue, newRow, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
41820
41584
|
var _a;
|
|
41821
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
41822
|
-
const [field, meta] = useField(alias);
|
|
41585
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
41586
|
+
const [field, meta] = formik.useField(alias);
|
|
41823
41587
|
const hasError = Boolean(meta.touched && meta.error);
|
|
41824
41588
|
const cardInfo = cardValidator.number(field.value || '');
|
|
41825
41589
|
const cardType = (_a = cardInfo.card) === null || _a === void 0 ? void 0 : _a.type; // Returns 'visa', 'mastercard', 'american-express'
|
|
@@ -41944,9 +41708,9 @@ const CURRENCIES = {
|
|
|
41944
41708
|
};
|
|
41945
41709
|
|
|
41946
41710
|
const CurrencyInput = (alias, inputtype, onChange, touched, errorText, inputLabel, width, defaultValue, value, newRow, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
41947
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
41948
|
-
const [amountField, amountMeta] = useField(alias);
|
|
41949
|
-
const [currencyField] = useField(inputtype == "currency" ? "USD" : inputtype);
|
|
41711
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
41712
|
+
const [amountField, amountMeta] = formik.useField(alias);
|
|
41713
|
+
const [currencyField] = formik.useField(inputtype == "currency" ? "USD" : inputtype);
|
|
41950
41714
|
const hasError = Boolean(amountMeta.touched && amountMeta.error);
|
|
41951
41715
|
const activeCurrency = CURRENCIES[currencyField.value] || CURRENCIES.USD;
|
|
41952
41716
|
return (React.createElement(React.Fragment, null,
|
|
@@ -42027,8 +41791,8 @@ function requireFaChartLine () {
|
|
|
42027
41791
|
var FaChartLineExports = /*@__PURE__*/ requireFaChartLine();
|
|
42028
41792
|
|
|
42029
41793
|
const StockInput = (alias, inputLabel, width, defaultValue, value, newRow, placeholder, readOnly, isHinted, hintText, hintUrl) => {
|
|
42030
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42031
|
-
const [priceField, meta] = useField(alias);
|
|
41794
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
41795
|
+
const [priceField, meta] = formik.useField(alias);
|
|
42032
41796
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42033
41797
|
return (React.createElement(React.Fragment, null,
|
|
42034
41798
|
React.createElement(Column, { span: width, newLine: newRow },
|
|
@@ -42085,8 +41849,8 @@ const StockInput = (alias, inputLabel, width, defaultValue, value, newRow, place
|
|
|
42085
41849
|
|
|
42086
41850
|
const xRadioGroup = (_a) => {
|
|
42087
41851
|
var { inputtype = 'radio', alias, readOnly, width, placeholder = '', style, value, inputoptions, direction = 'column', columns, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "direction", "columns", "className"]);
|
|
42088
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42089
|
-
const [field, meta] = useField(alias);
|
|
41852
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
41853
|
+
const [field, meta] = formik.useField(alias);
|
|
42090
41854
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42091
41855
|
const containerRef = React.useRef(null);
|
|
42092
41856
|
const [neuVars, setNeuVars] = React.useState({});
|
|
@@ -42167,8 +41931,8 @@ const OptionSelect = (_a) => {
|
|
|
42167
41931
|
var { inputtype = 'select', alias, readOnly, width, placeholder = '', style, value, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "className"]);
|
|
42168
41932
|
const triggerRef = React.useRef(null);
|
|
42169
41933
|
const [neuVars, setNeuVars] = React.useState({});
|
|
42170
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42171
|
-
const [field, meta] = useField(alias);
|
|
41934
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
41935
|
+
const [field, meta] = formik.useField(alias);
|
|
42172
41936
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42173
41937
|
React.useEffect(() => {
|
|
42174
41938
|
if (inputtype === 'select-neumorphic' && triggerRef.current) {
|
|
@@ -42250,8 +42014,8 @@ const OptionSelect = (_a) => {
|
|
|
42250
42014
|
const MultipleSelect = (_a) => {
|
|
42251
42015
|
var _b;
|
|
42252
42016
|
var { inputtype = 'multiselect', alias, readOnly, width, placeholder = '', style, value, inputoptions, className } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "style", "value", "inputoptions", "className"]);
|
|
42253
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42254
|
-
const [field, meta] = useField(alias);
|
|
42017
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42018
|
+
const [field, meta] = formik.useField(alias);
|
|
42255
42019
|
const selectedValues = (Array.isArray(field.value) ? field.value : []);
|
|
42256
42020
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42257
42021
|
const triggerRef = React.useRef(null);
|
|
@@ -42346,8 +42110,8 @@ const MultipleSelect = (_a) => {
|
|
|
42346
42110
|
|
|
42347
42111
|
const xSlider = (_a) => {
|
|
42348
42112
|
var { inputtype = 'slider', alias, readOnly, width, placeholder = '', value, minvalue = 0, maxvalue = 100, stepvalue = 1, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "stepvalue", "className", "style"]);
|
|
42349
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42350
|
-
const [field, meta] = useField(alias);
|
|
42113
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42114
|
+
const [field, meta] = formik.useField(alias);
|
|
42351
42115
|
const fieldValue = Array.isArray(field.value) ? field.value : [field.value || minvalue];
|
|
42352
42116
|
const hasError = Boolean(meta.touched && meta.error);
|
|
42353
42117
|
const containerRef = React.useRef(null);
|
|
@@ -42444,8 +42208,8 @@ const xSlider = (_a) => {
|
|
|
42444
42208
|
|
|
42445
42209
|
const RangeSlider = (_a) => {
|
|
42446
42210
|
var { inputtype = 'range', alias, readOnly, width, placeholder = '', value, minvalue = 0, maxvalue = 100, stepvalue = 1, minStepsBetweenThumbs = 0, className, style } = _a, props = __rest$1(_a, ["inputtype", "alias", "readOnly", "width", "placeholder", "value", "minvalue", "maxvalue", "stepvalue", "minStepsBetweenThumbs", "className", "style"]);
|
|
42447
|
-
const { setFieldValue, setFieldTouched } = useFormikContext();
|
|
42448
|
-
const [field, meta] = useField(alias);
|
|
42211
|
+
const { setFieldValue, setFieldTouched } = formik.useFormikContext();
|
|
42212
|
+
const [field, meta] = formik.useField(alias);
|
|
42449
42213
|
// Range Formik Logic
|
|
42450
42214
|
// Synopsis
|
|
42451
42215
|
// Radix slider component requires an array.
|