@availity/change-password 3.0.7 → 4.0.1

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.js ADDED
@@ -0,0 +1,2529 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ // ../../node_modules/react-fast-compare/index.js
28
+ var require_react_fast_compare = __commonJS({
29
+ "../../node_modules/react-fast-compare/index.js"(exports2, module2) {
30
+ "use strict";
31
+ var isArray2 = Array.isArray;
32
+ var keyList = Object.keys;
33
+ var hasProp = Object.prototype.hasOwnProperty;
34
+ var hasElementType = typeof Element !== "undefined";
35
+ function equal(a, b) {
36
+ if (a === b) return true;
37
+ if (a && b && typeof a == "object" && typeof b == "object") {
38
+ var arrA = isArray2(a), arrB = isArray2(b), i, length, key;
39
+ if (arrA && arrB) {
40
+ length = a.length;
41
+ if (length != b.length) return false;
42
+ for (i = length; i-- !== 0; )
43
+ if (!equal(a[i], b[i])) return false;
44
+ return true;
45
+ }
46
+ if (arrA != arrB) return false;
47
+ var dateA = a instanceof Date, dateB = b instanceof Date;
48
+ if (dateA != dateB) return false;
49
+ if (dateA && dateB) return a.getTime() == b.getTime();
50
+ var regexpA = a instanceof RegExp, regexpB = b instanceof RegExp;
51
+ if (regexpA != regexpB) return false;
52
+ if (regexpA && regexpB) return a.toString() == b.toString();
53
+ var keys2 = keyList(a);
54
+ length = keys2.length;
55
+ if (length !== keyList(b).length)
56
+ return false;
57
+ for (i = length; i-- !== 0; )
58
+ if (!hasProp.call(b, keys2[i])) return false;
59
+ if (hasElementType && a instanceof Element && b instanceof Element)
60
+ return a === b;
61
+ for (i = length; i-- !== 0; ) {
62
+ key = keys2[i];
63
+ if (key === "_owner" && a.$$typeof) {
64
+ continue;
65
+ } else {
66
+ if (!equal(a[key], b[key])) return false;
67
+ }
68
+ }
69
+ return true;
70
+ }
71
+ return a !== a && b !== b;
72
+ }
73
+ module2.exports = function exportedEqual(a, b) {
74
+ try {
75
+ return equal(a, b);
76
+ } catch (error) {
77
+ if (error.message && error.message.match(/stack|recursion/i) || error.number === -2146828260) {
78
+ console.warn("Warning: react-fast-compare does not handle circular references.", error.name, error.message);
79
+ return false;
80
+ }
81
+ throw error;
82
+ }
83
+ };
84
+ }
85
+ });
86
+
87
+ // ../../node_modules/react-is/cjs/react-is.production.min.js
88
+ var require_react_is_production_min = __commonJS({
89
+ "../../node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
90
+ "use strict";
91
+ var b = "function" === typeof Symbol && Symbol.for;
92
+ var c = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
93
+ var d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
94
+ var e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
95
+ var f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
96
+ var g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
97
+ var h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
98
+ var k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
99
+ var l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
100
+ var m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
101
+ var n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
102
+ var p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
103
+ var q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
104
+ var r = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
105
+ var t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
106
+ var v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
107
+ var w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
108
+ var x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
109
+ var y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
110
+ function z(a) {
111
+ if ("object" === typeof a && null !== a) {
112
+ var u = a.$$typeof;
113
+ switch (u) {
114
+ case c:
115
+ switch (a = a.type, a) {
116
+ case l:
117
+ case m:
118
+ case e:
119
+ case g:
120
+ case f:
121
+ case p:
122
+ return a;
123
+ default:
124
+ switch (a = a && a.$$typeof, a) {
125
+ case k:
126
+ case n:
127
+ case t:
128
+ case r:
129
+ case h:
130
+ return a;
131
+ default:
132
+ return u;
133
+ }
134
+ }
135
+ case d:
136
+ return u;
137
+ }
138
+ }
139
+ }
140
+ function A(a) {
141
+ return z(a) === m;
142
+ }
143
+ exports2.AsyncMode = l;
144
+ exports2.ConcurrentMode = m;
145
+ exports2.ContextConsumer = k;
146
+ exports2.ContextProvider = h;
147
+ exports2.Element = c;
148
+ exports2.ForwardRef = n;
149
+ exports2.Fragment = e;
150
+ exports2.Lazy = t;
151
+ exports2.Memo = r;
152
+ exports2.Portal = d;
153
+ exports2.Profiler = g;
154
+ exports2.StrictMode = f;
155
+ exports2.Suspense = p;
156
+ exports2.isAsyncMode = function(a) {
157
+ return A(a) || z(a) === l;
158
+ };
159
+ exports2.isConcurrentMode = A;
160
+ exports2.isContextConsumer = function(a) {
161
+ return z(a) === k;
162
+ };
163
+ exports2.isContextProvider = function(a) {
164
+ return z(a) === h;
165
+ };
166
+ exports2.isElement = function(a) {
167
+ return "object" === typeof a && null !== a && a.$$typeof === c;
168
+ };
169
+ exports2.isForwardRef = function(a) {
170
+ return z(a) === n;
171
+ };
172
+ exports2.isFragment = function(a) {
173
+ return z(a) === e;
174
+ };
175
+ exports2.isLazy = function(a) {
176
+ return z(a) === t;
177
+ };
178
+ exports2.isMemo = function(a) {
179
+ return z(a) === r;
180
+ };
181
+ exports2.isPortal = function(a) {
182
+ return z(a) === d;
183
+ };
184
+ exports2.isProfiler = function(a) {
185
+ return z(a) === g;
186
+ };
187
+ exports2.isStrictMode = function(a) {
188
+ return z(a) === f;
189
+ };
190
+ exports2.isSuspense = function(a) {
191
+ return z(a) === p;
192
+ };
193
+ exports2.isValidElementType = function(a) {
194
+ 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);
195
+ };
196
+ exports2.typeOf = z;
197
+ }
198
+ });
199
+
200
+ // ../../node_modules/react-is/cjs/react-is.development.js
201
+ var require_react_is_development = __commonJS({
202
+ "../../node_modules/react-is/cjs/react-is.development.js"(exports2) {
203
+ "use strict";
204
+ if (process.env.NODE_ENV !== "production") {
205
+ (function() {
206
+ "use strict";
207
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
208
+ var REACT_ELEMENT_TYPE2 = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
209
+ var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
210
+ var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
211
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
212
+ var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
213
+ var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
214
+ var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
215
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
216
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
217
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
218
+ var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
219
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
220
+ var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
221
+ var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
222
+ var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
223
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
224
+ var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
225
+ var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
226
+ function isValidElementType(type) {
227
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
228
+ 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);
229
+ }
230
+ function typeOf(object) {
231
+ if (typeof object === "object" && object !== null) {
232
+ var $$typeof = object.$$typeof;
233
+ switch ($$typeof) {
234
+ case REACT_ELEMENT_TYPE2:
235
+ var type = object.type;
236
+ switch (type) {
237
+ case REACT_ASYNC_MODE_TYPE:
238
+ case REACT_CONCURRENT_MODE_TYPE:
239
+ case REACT_FRAGMENT_TYPE:
240
+ case REACT_PROFILER_TYPE:
241
+ case REACT_STRICT_MODE_TYPE:
242
+ case REACT_SUSPENSE_TYPE:
243
+ return type;
244
+ default:
245
+ var $$typeofType = type && type.$$typeof;
246
+ switch ($$typeofType) {
247
+ case REACT_CONTEXT_TYPE:
248
+ case REACT_FORWARD_REF_TYPE:
249
+ case REACT_LAZY_TYPE:
250
+ case REACT_MEMO_TYPE:
251
+ case REACT_PROVIDER_TYPE:
252
+ return $$typeofType;
253
+ default:
254
+ return $$typeof;
255
+ }
256
+ }
257
+ case REACT_PORTAL_TYPE:
258
+ return $$typeof;
259
+ }
260
+ }
261
+ return void 0;
262
+ }
263
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
264
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
265
+ var ContextConsumer = REACT_CONTEXT_TYPE;
266
+ var ContextProvider = REACT_PROVIDER_TYPE;
267
+ var Element2 = REACT_ELEMENT_TYPE2;
268
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
269
+ var Fragment = REACT_FRAGMENT_TYPE;
270
+ var Lazy = REACT_LAZY_TYPE;
271
+ var Memo = REACT_MEMO_TYPE;
272
+ var Portal = REACT_PORTAL_TYPE;
273
+ var Profiler = REACT_PROFILER_TYPE;
274
+ var StrictMode = REACT_STRICT_MODE_TYPE;
275
+ var Suspense = REACT_SUSPENSE_TYPE;
276
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
277
+ function isAsyncMode(object) {
278
+ {
279
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
280
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
281
+ 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.");
282
+ }
283
+ }
284
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
285
+ }
286
+ function isConcurrentMode(object) {
287
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
288
+ }
289
+ function isContextConsumer(object) {
290
+ return typeOf(object) === REACT_CONTEXT_TYPE;
291
+ }
292
+ function isContextProvider(object) {
293
+ return typeOf(object) === REACT_PROVIDER_TYPE;
294
+ }
295
+ function isElement(object) {
296
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE2;
297
+ }
298
+ function isForwardRef(object) {
299
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
300
+ }
301
+ function isFragment(object) {
302
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
303
+ }
304
+ function isLazy(object) {
305
+ return typeOf(object) === REACT_LAZY_TYPE;
306
+ }
307
+ function isMemo(object) {
308
+ return typeOf(object) === REACT_MEMO_TYPE;
309
+ }
310
+ function isPortal(object) {
311
+ return typeOf(object) === REACT_PORTAL_TYPE;
312
+ }
313
+ function isProfiler(object) {
314
+ return typeOf(object) === REACT_PROFILER_TYPE;
315
+ }
316
+ function isStrictMode(object) {
317
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
318
+ }
319
+ function isSuspense(object) {
320
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
321
+ }
322
+ exports2.AsyncMode = AsyncMode;
323
+ exports2.ConcurrentMode = ConcurrentMode;
324
+ exports2.ContextConsumer = ContextConsumer;
325
+ exports2.ContextProvider = ContextProvider;
326
+ exports2.Element = Element2;
327
+ exports2.ForwardRef = ForwardRef;
328
+ exports2.Fragment = Fragment;
329
+ exports2.Lazy = Lazy;
330
+ exports2.Memo = Memo;
331
+ exports2.Portal = Portal;
332
+ exports2.Profiler = Profiler;
333
+ exports2.StrictMode = StrictMode;
334
+ exports2.Suspense = Suspense;
335
+ exports2.isAsyncMode = isAsyncMode;
336
+ exports2.isConcurrentMode = isConcurrentMode;
337
+ exports2.isContextConsumer = isContextConsumer;
338
+ exports2.isContextProvider = isContextProvider;
339
+ exports2.isElement = isElement;
340
+ exports2.isForwardRef = isForwardRef;
341
+ exports2.isFragment = isFragment;
342
+ exports2.isLazy = isLazy;
343
+ exports2.isMemo = isMemo;
344
+ exports2.isPortal = isPortal;
345
+ exports2.isProfiler = isProfiler;
346
+ exports2.isStrictMode = isStrictMode;
347
+ exports2.isSuspense = isSuspense;
348
+ exports2.isValidElementType = isValidElementType;
349
+ exports2.typeOf = typeOf;
350
+ })();
351
+ }
352
+ }
353
+ });
354
+
355
+ // ../../node_modules/react-is/index.js
356
+ var require_react_is = __commonJS({
357
+ "../../node_modules/react-is/index.js"(exports2, module2) {
358
+ "use strict";
359
+ if (process.env.NODE_ENV === "production") {
360
+ module2.exports = require_react_is_production_min();
361
+ } else {
362
+ module2.exports = require_react_is_development();
363
+ }
364
+ }
365
+ });
366
+
367
+ // ../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
368
+ var require_hoist_non_react_statics_cjs = __commonJS({
369
+ "../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports2, module2) {
370
+ "use strict";
371
+ var reactIs = require_react_is();
372
+ var REACT_STATICS = {
373
+ childContextTypes: true,
374
+ contextType: true,
375
+ contextTypes: true,
376
+ defaultProps: true,
377
+ displayName: true,
378
+ getDefaultProps: true,
379
+ getDerivedStateFromError: true,
380
+ getDerivedStateFromProps: true,
381
+ mixins: true,
382
+ propTypes: true,
383
+ type: true
384
+ };
385
+ var KNOWN_STATICS = {
386
+ name: true,
387
+ length: true,
388
+ prototype: true,
389
+ caller: true,
390
+ callee: true,
391
+ arguments: true,
392
+ arity: true
393
+ };
394
+ var FORWARD_REF_STATICS = {
395
+ "$$typeof": true,
396
+ render: true,
397
+ defaultProps: true,
398
+ displayName: true,
399
+ propTypes: true
400
+ };
401
+ var MEMO_STATICS = {
402
+ "$$typeof": true,
403
+ compare: true,
404
+ defaultProps: true,
405
+ displayName: true,
406
+ propTypes: true,
407
+ type: true
408
+ };
409
+ var TYPE_STATICS = {};
410
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
411
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
412
+ function getStatics(component) {
413
+ if (reactIs.isMemo(component)) {
414
+ return MEMO_STATICS;
415
+ }
416
+ return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
417
+ }
418
+ var defineProperty2 = Object.defineProperty;
419
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
420
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
421
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
422
+ var getPrototypeOf = Object.getPrototypeOf;
423
+ var objectPrototype = Object.prototype;
424
+ function hoistNonReactStatics2(targetComponent, sourceComponent, blacklist) {
425
+ if (typeof sourceComponent !== "string") {
426
+ if (objectPrototype) {
427
+ var inheritedComponent = getPrototypeOf(sourceComponent);
428
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
429
+ hoistNonReactStatics2(targetComponent, inheritedComponent, blacklist);
430
+ }
431
+ }
432
+ var keys2 = getOwnPropertyNames(sourceComponent);
433
+ if (getOwnPropertySymbols) {
434
+ keys2 = keys2.concat(getOwnPropertySymbols(sourceComponent));
435
+ }
436
+ var targetStatics = getStatics(targetComponent);
437
+ var sourceStatics = getStatics(sourceComponent);
438
+ for (var i = 0; i < keys2.length; ++i) {
439
+ var key = keys2[i];
440
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
441
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
442
+ try {
443
+ defineProperty2(targetComponent, key, descriptor);
444
+ } catch (e) {
445
+ }
446
+ }
447
+ }
448
+ }
449
+ return targetComponent;
450
+ }
451
+ module2.exports = hoistNonReactStatics2;
452
+ }
453
+ });
454
+
455
+ // src/ChangePassword.jsx
456
+ import React, { createContext, useContext, useState, useRef } from "react";
457
+ import PropTypes from "prop-types";
458
+ import AvApi, { AvMicroserviceApi } from "@availity/api-axios";
459
+ import { jsx } from "react/jsx-runtime";
460
+ var ChangePasswordContext = createContext();
461
+ var useChangePasswordContext = () => useContext(ChangePasswordContext);
462
+ var ChangePassword = ({ resource, schema, conditions, children }) => {
463
+ const [loading, setLoading] = useState(false);
464
+ const [error, setError] = useState(null);
465
+ const [success, setSuccess] = useState(null);
466
+ const [submitted, setSubmitted] = useState(false);
467
+ const currentPasswordIconRef = useRef(null);
468
+ const newPasswordIconRef = useRef(null);
469
+ const confirmNewPasswordIconRef = useRef(null);
470
+ const [currentPasswordVisible, setCurrentPasswordVisible] = useState(false);
471
+ const [newPasswordVisible, setNewPasswordVisible] = useState(false);
472
+ const [confirmNewPasswordVisible, setConfirmNewPasswordVisible] = useState(false);
473
+ return /* @__PURE__ */ jsx(
474
+ ChangePasswordContext.Provider,
475
+ {
476
+ value: {
477
+ loading,
478
+ setLoading,
479
+ error,
480
+ setError,
481
+ success,
482
+ setSuccess,
483
+ submitted,
484
+ setSubmitted,
485
+ resource,
486
+ schema,
487
+ conditions,
488
+ currentPasswordIconRef,
489
+ newPasswordIconRef,
490
+ confirmNewPasswordIconRef,
491
+ currentPasswordVisible,
492
+ setCurrentPasswordVisible,
493
+ newPasswordVisible,
494
+ setNewPasswordVisible,
495
+ confirmNewPasswordVisible,
496
+ setConfirmNewPasswordVisible
497
+ },
498
+ children
499
+ }
500
+ );
501
+ };
502
+ ChangePassword.propTypes = {
503
+ resource: PropTypes.oneOfType([PropTypes.instanceOf(AvApi), PropTypes.instanceOf(AvMicroserviceApi)]).isRequired,
504
+ schema: PropTypes.object,
505
+ conditions: PropTypes.arrayOf(PropTypes.shape({ message: PropTypes.string, passes: PropTypes.func })),
506
+ children: PropTypes.node
507
+ };
508
+ var ChangePassword_default = ChangePassword;
509
+
510
+ // src/ChangePasswordForm.jsx
511
+ import React3 from "react";
512
+ import PropTypes2 from "prop-types";
513
+ import BlockUI from "@availity/block-ui";
514
+ import Icon2 from "@availity/icon";
515
+ import { Alert, Button, CardBody, CardFooter, Col, Row } from "reactstrap";
516
+ import { Form as Form2, Field } from "@availity/form";
517
+
518
+ // src/ChangePasswordFeedback.jsx
519
+ import React2 from "react";
520
+ import Icon from "@availity/icon";
521
+
522
+ // ../../node_modules/deepmerge/dist/es.js
523
+ var isMergeableObject = function isMergeableObject2(value) {
524
+ return isNonNullObject(value) && !isSpecial(value);
525
+ };
526
+ function isNonNullObject(value) {
527
+ return !!value && typeof value === "object";
528
+ }
529
+ function isSpecial(value) {
530
+ var stringValue = Object.prototype.toString.call(value);
531
+ return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
532
+ }
533
+ var canUseSymbol = typeof Symbol === "function" && Symbol.for;
534
+ var REACT_ELEMENT_TYPE = canUseSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
535
+ function isReactElement(value) {
536
+ return value.$$typeof === REACT_ELEMENT_TYPE;
537
+ }
538
+ function emptyTarget(val) {
539
+ return Array.isArray(val) ? [] : {};
540
+ }
541
+ function cloneUnlessOtherwiseSpecified(value, options) {
542
+ return options.clone !== false && options.isMergeableObject(value) ? deepmerge(emptyTarget(value), value, options) : value;
543
+ }
544
+ function defaultArrayMerge(target, source, options) {
545
+ return target.concat(source).map(function(element) {
546
+ return cloneUnlessOtherwiseSpecified(element, options);
547
+ });
548
+ }
549
+ function mergeObject(target, source, options) {
550
+ var destination = {};
551
+ if (options.isMergeableObject(target)) {
552
+ Object.keys(target).forEach(function(key) {
553
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
554
+ });
555
+ }
556
+ Object.keys(source).forEach(function(key) {
557
+ if (!options.isMergeableObject(source[key]) || !target[key]) {
558
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
559
+ } else {
560
+ destination[key] = deepmerge(target[key], source[key], options);
561
+ }
562
+ });
563
+ return destination;
564
+ }
565
+ function deepmerge(target, source, options) {
566
+ options = options || {};
567
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
568
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
569
+ var sourceIsArray = Array.isArray(source);
570
+ var targetIsArray = Array.isArray(target);
571
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
572
+ if (!sourceAndTargetTypesMatch) {
573
+ return cloneUnlessOtherwiseSpecified(source, options);
574
+ } else if (sourceIsArray) {
575
+ return options.arrayMerge(target, source, options);
576
+ } else {
577
+ return mergeObject(target, source, options);
578
+ }
579
+ }
580
+ deepmerge.all = function deepmergeAll(array, options) {
581
+ if (!Array.isArray(array)) {
582
+ throw new Error("first argument should be an array");
583
+ }
584
+ return array.reduce(function(prev, next) {
585
+ return deepmerge(prev, next, options);
586
+ }, {});
587
+ };
588
+
589
+ // ../../node_modules/lodash-es/_freeGlobal.js
590
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
591
+ var freeGlobal_default = freeGlobal;
592
+
593
+ // ../../node_modules/lodash-es/_root.js
594
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
595
+ var root = freeGlobal_default || freeSelf || Function("return this")();
596
+ var root_default = root;
597
+
598
+ // ../../node_modules/lodash-es/_Symbol.js
599
+ var Symbol2 = root_default.Symbol;
600
+ var Symbol_default = Symbol2;
601
+
602
+ // ../../node_modules/lodash-es/_getRawTag.js
603
+ var objectProto = Object.prototype;
604
+ var hasOwnProperty = objectProto.hasOwnProperty;
605
+ var nativeObjectToString = objectProto.toString;
606
+ var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
607
+ function getRawTag(value) {
608
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
609
+ try {
610
+ value[symToStringTag] = void 0;
611
+ var unmasked = true;
612
+ } catch (e) {
613
+ }
614
+ var result = nativeObjectToString.call(value);
615
+ if (unmasked) {
616
+ if (isOwn) {
617
+ value[symToStringTag] = tag;
618
+ } else {
619
+ delete value[symToStringTag];
620
+ }
621
+ }
622
+ return result;
623
+ }
624
+ var getRawTag_default = getRawTag;
625
+
626
+ // ../../node_modules/lodash-es/_objectToString.js
627
+ var objectProto2 = Object.prototype;
628
+ var nativeObjectToString2 = objectProto2.toString;
629
+ function objectToString(value) {
630
+ return nativeObjectToString2.call(value);
631
+ }
632
+ var objectToString_default = objectToString;
633
+
634
+ // ../../node_modules/lodash-es/_baseGetTag.js
635
+ var nullTag = "[object Null]";
636
+ var undefinedTag = "[object Undefined]";
637
+ var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
638
+ function baseGetTag(value) {
639
+ if (value == null) {
640
+ return value === void 0 ? undefinedTag : nullTag;
641
+ }
642
+ return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
643
+ }
644
+ var baseGetTag_default = baseGetTag;
645
+
646
+ // ../../node_modules/lodash-es/_overArg.js
647
+ function overArg(func, transform) {
648
+ return function(arg) {
649
+ return func(transform(arg));
650
+ };
651
+ }
652
+ var overArg_default = overArg;
653
+
654
+ // ../../node_modules/lodash-es/_getPrototype.js
655
+ var getPrototype = overArg_default(Object.getPrototypeOf, Object);
656
+ var getPrototype_default = getPrototype;
657
+
658
+ // ../../node_modules/lodash-es/isObjectLike.js
659
+ function isObjectLike(value) {
660
+ return value != null && typeof value == "object";
661
+ }
662
+ var isObjectLike_default = isObjectLike;
663
+
664
+ // ../../node_modules/lodash-es/_listCacheClear.js
665
+ function listCacheClear() {
666
+ this.__data__ = [];
667
+ this.size = 0;
668
+ }
669
+ var listCacheClear_default = listCacheClear;
670
+
671
+ // ../../node_modules/lodash-es/eq.js
672
+ function eq(value, other) {
673
+ return value === other || value !== value && other !== other;
674
+ }
675
+ var eq_default = eq;
676
+
677
+ // ../../node_modules/lodash-es/_assocIndexOf.js
678
+ function assocIndexOf(array, key) {
679
+ var length = array.length;
680
+ while (length--) {
681
+ if (eq_default(array[length][0], key)) {
682
+ return length;
683
+ }
684
+ }
685
+ return -1;
686
+ }
687
+ var assocIndexOf_default = assocIndexOf;
688
+
689
+ // ../../node_modules/lodash-es/_listCacheDelete.js
690
+ var arrayProto = Array.prototype;
691
+ var splice = arrayProto.splice;
692
+ function listCacheDelete(key) {
693
+ var data = this.__data__, index = assocIndexOf_default(data, key);
694
+ if (index < 0) {
695
+ return false;
696
+ }
697
+ var lastIndex = data.length - 1;
698
+ if (index == lastIndex) {
699
+ data.pop();
700
+ } else {
701
+ splice.call(data, index, 1);
702
+ }
703
+ --this.size;
704
+ return true;
705
+ }
706
+ var listCacheDelete_default = listCacheDelete;
707
+
708
+ // ../../node_modules/lodash-es/_listCacheGet.js
709
+ function listCacheGet(key) {
710
+ var data = this.__data__, index = assocIndexOf_default(data, key);
711
+ return index < 0 ? void 0 : data[index][1];
712
+ }
713
+ var listCacheGet_default = listCacheGet;
714
+
715
+ // ../../node_modules/lodash-es/_listCacheHas.js
716
+ function listCacheHas(key) {
717
+ return assocIndexOf_default(this.__data__, key) > -1;
718
+ }
719
+ var listCacheHas_default = listCacheHas;
720
+
721
+ // ../../node_modules/lodash-es/_listCacheSet.js
722
+ function listCacheSet(key, value) {
723
+ var data = this.__data__, index = assocIndexOf_default(data, key);
724
+ if (index < 0) {
725
+ ++this.size;
726
+ data.push([key, value]);
727
+ } else {
728
+ data[index][1] = value;
729
+ }
730
+ return this;
731
+ }
732
+ var listCacheSet_default = listCacheSet;
733
+
734
+ // ../../node_modules/lodash-es/_ListCache.js
735
+ function ListCache(entries) {
736
+ var index = -1, length = entries == null ? 0 : entries.length;
737
+ this.clear();
738
+ while (++index < length) {
739
+ var entry = entries[index];
740
+ this.set(entry[0], entry[1]);
741
+ }
742
+ }
743
+ ListCache.prototype.clear = listCacheClear_default;
744
+ ListCache.prototype["delete"] = listCacheDelete_default;
745
+ ListCache.prototype.get = listCacheGet_default;
746
+ ListCache.prototype.has = listCacheHas_default;
747
+ ListCache.prototype.set = listCacheSet_default;
748
+ var ListCache_default = ListCache;
749
+
750
+ // ../../node_modules/lodash-es/_stackClear.js
751
+ function stackClear() {
752
+ this.__data__ = new ListCache_default();
753
+ this.size = 0;
754
+ }
755
+ var stackClear_default = stackClear;
756
+
757
+ // ../../node_modules/lodash-es/_stackDelete.js
758
+ function stackDelete(key) {
759
+ var data = this.__data__, result = data["delete"](key);
760
+ this.size = data.size;
761
+ return result;
762
+ }
763
+ var stackDelete_default = stackDelete;
764
+
765
+ // ../../node_modules/lodash-es/_stackGet.js
766
+ function stackGet(key) {
767
+ return this.__data__.get(key);
768
+ }
769
+ var stackGet_default = stackGet;
770
+
771
+ // ../../node_modules/lodash-es/_stackHas.js
772
+ function stackHas(key) {
773
+ return this.__data__.has(key);
774
+ }
775
+ var stackHas_default = stackHas;
776
+
777
+ // ../../node_modules/lodash-es/isObject.js
778
+ function isObject(value) {
779
+ var type = typeof value;
780
+ return value != null && (type == "object" || type == "function");
781
+ }
782
+ var isObject_default = isObject;
783
+
784
+ // ../../node_modules/lodash-es/isFunction.js
785
+ var asyncTag = "[object AsyncFunction]";
786
+ var funcTag = "[object Function]";
787
+ var genTag = "[object GeneratorFunction]";
788
+ var proxyTag = "[object Proxy]";
789
+ function isFunction(value) {
790
+ if (!isObject_default(value)) {
791
+ return false;
792
+ }
793
+ var tag = baseGetTag_default(value);
794
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
795
+ }
796
+ var isFunction_default = isFunction;
797
+
798
+ // ../../node_modules/lodash-es/_coreJsData.js
799
+ var coreJsData = root_default["__core-js_shared__"];
800
+ var coreJsData_default = coreJsData;
801
+
802
+ // ../../node_modules/lodash-es/_isMasked.js
803
+ var maskSrcKey = (function() {
804
+ var uid = /[^.]+$/.exec(coreJsData_default && coreJsData_default.keys && coreJsData_default.keys.IE_PROTO || "");
805
+ return uid ? "Symbol(src)_1." + uid : "";
806
+ })();
807
+ function isMasked(func) {
808
+ return !!maskSrcKey && maskSrcKey in func;
809
+ }
810
+ var isMasked_default = isMasked;
811
+
812
+ // ../../node_modules/lodash-es/_toSource.js
813
+ var funcProto = Function.prototype;
814
+ var funcToString = funcProto.toString;
815
+ function toSource(func) {
816
+ if (func != null) {
817
+ try {
818
+ return funcToString.call(func);
819
+ } catch (e) {
820
+ }
821
+ try {
822
+ return func + "";
823
+ } catch (e) {
824
+ }
825
+ }
826
+ return "";
827
+ }
828
+ var toSource_default = toSource;
829
+
830
+ // ../../node_modules/lodash-es/_baseIsNative.js
831
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
832
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
833
+ var funcProto2 = Function.prototype;
834
+ var objectProto3 = Object.prototype;
835
+ var funcToString2 = funcProto2.toString;
836
+ var hasOwnProperty2 = objectProto3.hasOwnProperty;
837
+ var reIsNative = RegExp(
838
+ "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
839
+ );
840
+ function baseIsNative(value) {
841
+ if (!isObject_default(value) || isMasked_default(value)) {
842
+ return false;
843
+ }
844
+ var pattern = isFunction_default(value) ? reIsNative : reIsHostCtor;
845
+ return pattern.test(toSource_default(value));
846
+ }
847
+ var baseIsNative_default = baseIsNative;
848
+
849
+ // ../../node_modules/lodash-es/_getValue.js
850
+ function getValue(object, key) {
851
+ return object == null ? void 0 : object[key];
852
+ }
853
+ var getValue_default = getValue;
854
+
855
+ // ../../node_modules/lodash-es/_getNative.js
856
+ function getNative(object, key) {
857
+ var value = getValue_default(object, key);
858
+ return baseIsNative_default(value) ? value : void 0;
859
+ }
860
+ var getNative_default = getNative;
861
+
862
+ // ../../node_modules/lodash-es/_Map.js
863
+ var Map = getNative_default(root_default, "Map");
864
+ var Map_default = Map;
865
+
866
+ // ../../node_modules/lodash-es/_nativeCreate.js
867
+ var nativeCreate = getNative_default(Object, "create");
868
+ var nativeCreate_default = nativeCreate;
869
+
870
+ // ../../node_modules/lodash-es/_hashClear.js
871
+ function hashClear() {
872
+ this.__data__ = nativeCreate_default ? nativeCreate_default(null) : {};
873
+ this.size = 0;
874
+ }
875
+ var hashClear_default = hashClear;
876
+
877
+ // ../../node_modules/lodash-es/_hashDelete.js
878
+ function hashDelete(key) {
879
+ var result = this.has(key) && delete this.__data__[key];
880
+ this.size -= result ? 1 : 0;
881
+ return result;
882
+ }
883
+ var hashDelete_default = hashDelete;
884
+
885
+ // ../../node_modules/lodash-es/_hashGet.js
886
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
887
+ var objectProto4 = Object.prototype;
888
+ var hasOwnProperty3 = objectProto4.hasOwnProperty;
889
+ function hashGet(key) {
890
+ var data = this.__data__;
891
+ if (nativeCreate_default) {
892
+ var result = data[key];
893
+ return result === HASH_UNDEFINED ? void 0 : result;
894
+ }
895
+ return hasOwnProperty3.call(data, key) ? data[key] : void 0;
896
+ }
897
+ var hashGet_default = hashGet;
898
+
899
+ // ../../node_modules/lodash-es/_hashHas.js
900
+ var objectProto5 = Object.prototype;
901
+ var hasOwnProperty4 = objectProto5.hasOwnProperty;
902
+ function hashHas(key) {
903
+ var data = this.__data__;
904
+ return nativeCreate_default ? data[key] !== void 0 : hasOwnProperty4.call(data, key);
905
+ }
906
+ var hashHas_default = hashHas;
907
+
908
+ // ../../node_modules/lodash-es/_hashSet.js
909
+ var HASH_UNDEFINED2 = "__lodash_hash_undefined__";
910
+ function hashSet(key, value) {
911
+ var data = this.__data__;
912
+ this.size += this.has(key) ? 0 : 1;
913
+ data[key] = nativeCreate_default && value === void 0 ? HASH_UNDEFINED2 : value;
914
+ return this;
915
+ }
916
+ var hashSet_default = hashSet;
917
+
918
+ // ../../node_modules/lodash-es/_Hash.js
919
+ function Hash(entries) {
920
+ var index = -1, length = entries == null ? 0 : entries.length;
921
+ this.clear();
922
+ while (++index < length) {
923
+ var entry = entries[index];
924
+ this.set(entry[0], entry[1]);
925
+ }
926
+ }
927
+ Hash.prototype.clear = hashClear_default;
928
+ Hash.prototype["delete"] = hashDelete_default;
929
+ Hash.prototype.get = hashGet_default;
930
+ Hash.prototype.has = hashHas_default;
931
+ Hash.prototype.set = hashSet_default;
932
+ var Hash_default = Hash;
933
+
934
+ // ../../node_modules/lodash-es/_mapCacheClear.js
935
+ function mapCacheClear() {
936
+ this.size = 0;
937
+ this.__data__ = {
938
+ "hash": new Hash_default(),
939
+ "map": new (Map_default || ListCache_default)(),
940
+ "string": new Hash_default()
941
+ };
942
+ }
943
+ var mapCacheClear_default = mapCacheClear;
944
+
945
+ // ../../node_modules/lodash-es/_isKeyable.js
946
+ function isKeyable(value) {
947
+ var type = typeof value;
948
+ return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
949
+ }
950
+ var isKeyable_default = isKeyable;
951
+
952
+ // ../../node_modules/lodash-es/_getMapData.js
953
+ function getMapData(map, key) {
954
+ var data = map.__data__;
955
+ return isKeyable_default(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
956
+ }
957
+ var getMapData_default = getMapData;
958
+
959
+ // ../../node_modules/lodash-es/_mapCacheDelete.js
960
+ function mapCacheDelete(key) {
961
+ var result = getMapData_default(this, key)["delete"](key);
962
+ this.size -= result ? 1 : 0;
963
+ return result;
964
+ }
965
+ var mapCacheDelete_default = mapCacheDelete;
966
+
967
+ // ../../node_modules/lodash-es/_mapCacheGet.js
968
+ function mapCacheGet(key) {
969
+ return getMapData_default(this, key).get(key);
970
+ }
971
+ var mapCacheGet_default = mapCacheGet;
972
+
973
+ // ../../node_modules/lodash-es/_mapCacheHas.js
974
+ function mapCacheHas(key) {
975
+ return getMapData_default(this, key).has(key);
976
+ }
977
+ var mapCacheHas_default = mapCacheHas;
978
+
979
+ // ../../node_modules/lodash-es/_mapCacheSet.js
980
+ function mapCacheSet(key, value) {
981
+ var data = getMapData_default(this, key), size = data.size;
982
+ data.set(key, value);
983
+ this.size += data.size == size ? 0 : 1;
984
+ return this;
985
+ }
986
+ var mapCacheSet_default = mapCacheSet;
987
+
988
+ // ../../node_modules/lodash-es/_MapCache.js
989
+ function MapCache(entries) {
990
+ var index = -1, length = entries == null ? 0 : entries.length;
991
+ this.clear();
992
+ while (++index < length) {
993
+ var entry = entries[index];
994
+ this.set(entry[0], entry[1]);
995
+ }
996
+ }
997
+ MapCache.prototype.clear = mapCacheClear_default;
998
+ MapCache.prototype["delete"] = mapCacheDelete_default;
999
+ MapCache.prototype.get = mapCacheGet_default;
1000
+ MapCache.prototype.has = mapCacheHas_default;
1001
+ MapCache.prototype.set = mapCacheSet_default;
1002
+ var MapCache_default = MapCache;
1003
+
1004
+ // ../../node_modules/lodash-es/_stackSet.js
1005
+ var LARGE_ARRAY_SIZE = 200;
1006
+ function stackSet(key, value) {
1007
+ var data = this.__data__;
1008
+ if (data instanceof ListCache_default) {
1009
+ var pairs = data.__data__;
1010
+ if (!Map_default || pairs.length < LARGE_ARRAY_SIZE - 1) {
1011
+ pairs.push([key, value]);
1012
+ this.size = ++data.size;
1013
+ return this;
1014
+ }
1015
+ data = this.__data__ = new MapCache_default(pairs);
1016
+ }
1017
+ data.set(key, value);
1018
+ this.size = data.size;
1019
+ return this;
1020
+ }
1021
+ var stackSet_default = stackSet;
1022
+
1023
+ // ../../node_modules/lodash-es/_Stack.js
1024
+ function Stack(entries) {
1025
+ var data = this.__data__ = new ListCache_default(entries);
1026
+ this.size = data.size;
1027
+ }
1028
+ Stack.prototype.clear = stackClear_default;
1029
+ Stack.prototype["delete"] = stackDelete_default;
1030
+ Stack.prototype.get = stackGet_default;
1031
+ Stack.prototype.has = stackHas_default;
1032
+ Stack.prototype.set = stackSet_default;
1033
+ var Stack_default = Stack;
1034
+
1035
+ // ../../node_modules/lodash-es/_arrayEach.js
1036
+ function arrayEach(array, iteratee) {
1037
+ var index = -1, length = array == null ? 0 : array.length;
1038
+ while (++index < length) {
1039
+ if (iteratee(array[index], index, array) === false) {
1040
+ break;
1041
+ }
1042
+ }
1043
+ return array;
1044
+ }
1045
+ var arrayEach_default = arrayEach;
1046
+
1047
+ // ../../node_modules/lodash-es/_defineProperty.js
1048
+ var defineProperty = (function() {
1049
+ try {
1050
+ var func = getNative_default(Object, "defineProperty");
1051
+ func({}, "", {});
1052
+ return func;
1053
+ } catch (e) {
1054
+ }
1055
+ })();
1056
+ var defineProperty_default = defineProperty;
1057
+
1058
+ // ../../node_modules/lodash-es/_baseAssignValue.js
1059
+ function baseAssignValue(object, key, value) {
1060
+ if (key == "__proto__" && defineProperty_default) {
1061
+ defineProperty_default(object, key, {
1062
+ "configurable": true,
1063
+ "enumerable": true,
1064
+ "value": value,
1065
+ "writable": true
1066
+ });
1067
+ } else {
1068
+ object[key] = value;
1069
+ }
1070
+ }
1071
+ var baseAssignValue_default = baseAssignValue;
1072
+
1073
+ // ../../node_modules/lodash-es/_assignValue.js
1074
+ var objectProto6 = Object.prototype;
1075
+ var hasOwnProperty5 = objectProto6.hasOwnProperty;
1076
+ function assignValue(object, key, value) {
1077
+ var objValue = object[key];
1078
+ if (!(hasOwnProperty5.call(object, key) && eq_default(objValue, value)) || value === void 0 && !(key in object)) {
1079
+ baseAssignValue_default(object, key, value);
1080
+ }
1081
+ }
1082
+ var assignValue_default = assignValue;
1083
+
1084
+ // ../../node_modules/lodash-es/_copyObject.js
1085
+ function copyObject(source, props, object, customizer) {
1086
+ var isNew = !object;
1087
+ object || (object = {});
1088
+ var index = -1, length = props.length;
1089
+ while (++index < length) {
1090
+ var key = props[index];
1091
+ var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
1092
+ if (newValue === void 0) {
1093
+ newValue = source[key];
1094
+ }
1095
+ if (isNew) {
1096
+ baseAssignValue_default(object, key, newValue);
1097
+ } else {
1098
+ assignValue_default(object, key, newValue);
1099
+ }
1100
+ }
1101
+ return object;
1102
+ }
1103
+ var copyObject_default = copyObject;
1104
+
1105
+ // ../../node_modules/lodash-es/_baseTimes.js
1106
+ function baseTimes(n, iteratee) {
1107
+ var index = -1, result = Array(n);
1108
+ while (++index < n) {
1109
+ result[index] = iteratee(index);
1110
+ }
1111
+ return result;
1112
+ }
1113
+ var baseTimes_default = baseTimes;
1114
+
1115
+ // ../../node_modules/lodash-es/_baseIsArguments.js
1116
+ var argsTag = "[object Arguments]";
1117
+ function baseIsArguments(value) {
1118
+ return isObjectLike_default(value) && baseGetTag_default(value) == argsTag;
1119
+ }
1120
+ var baseIsArguments_default = baseIsArguments;
1121
+
1122
+ // ../../node_modules/lodash-es/isArguments.js
1123
+ var objectProto7 = Object.prototype;
1124
+ var hasOwnProperty6 = objectProto7.hasOwnProperty;
1125
+ var propertyIsEnumerable = objectProto7.propertyIsEnumerable;
1126
+ var isArguments = baseIsArguments_default(/* @__PURE__ */ (function() {
1127
+ return arguments;
1128
+ })()) ? baseIsArguments_default : function(value) {
1129
+ return isObjectLike_default(value) && hasOwnProperty6.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
1130
+ };
1131
+ var isArguments_default = isArguments;
1132
+
1133
+ // ../../node_modules/lodash-es/isArray.js
1134
+ var isArray = Array.isArray;
1135
+ var isArray_default = isArray;
1136
+
1137
+ // ../../node_modules/lodash-es/stubFalse.js
1138
+ function stubFalse() {
1139
+ return false;
1140
+ }
1141
+ var stubFalse_default = stubFalse;
1142
+
1143
+ // ../../node_modules/lodash-es/isBuffer.js
1144
+ var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
1145
+ var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
1146
+ var moduleExports = freeModule && freeModule.exports === freeExports;
1147
+ var Buffer2 = moduleExports ? root_default.Buffer : void 0;
1148
+ var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0;
1149
+ var isBuffer = nativeIsBuffer || stubFalse_default;
1150
+ var isBuffer_default = isBuffer;
1151
+
1152
+ // ../../node_modules/lodash-es/_isIndex.js
1153
+ var MAX_SAFE_INTEGER = 9007199254740991;
1154
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
1155
+ function isIndex(value, length) {
1156
+ var type = typeof value;
1157
+ length = length == null ? MAX_SAFE_INTEGER : length;
1158
+ return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
1159
+ }
1160
+ var isIndex_default = isIndex;
1161
+
1162
+ // ../../node_modules/lodash-es/isLength.js
1163
+ var MAX_SAFE_INTEGER2 = 9007199254740991;
1164
+ function isLength(value) {
1165
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER2;
1166
+ }
1167
+ var isLength_default = isLength;
1168
+
1169
+ // ../../node_modules/lodash-es/_baseIsTypedArray.js
1170
+ var argsTag2 = "[object Arguments]";
1171
+ var arrayTag = "[object Array]";
1172
+ var boolTag = "[object Boolean]";
1173
+ var dateTag = "[object Date]";
1174
+ var errorTag = "[object Error]";
1175
+ var funcTag2 = "[object Function]";
1176
+ var mapTag = "[object Map]";
1177
+ var numberTag = "[object Number]";
1178
+ var objectTag = "[object Object]";
1179
+ var regexpTag = "[object RegExp]";
1180
+ var setTag = "[object Set]";
1181
+ var stringTag = "[object String]";
1182
+ var weakMapTag = "[object WeakMap]";
1183
+ var arrayBufferTag = "[object ArrayBuffer]";
1184
+ var dataViewTag = "[object DataView]";
1185
+ var float32Tag = "[object Float32Array]";
1186
+ var float64Tag = "[object Float64Array]";
1187
+ var int8Tag = "[object Int8Array]";
1188
+ var int16Tag = "[object Int16Array]";
1189
+ var int32Tag = "[object Int32Array]";
1190
+ var uint8Tag = "[object Uint8Array]";
1191
+ var uint8ClampedTag = "[object Uint8ClampedArray]";
1192
+ var uint16Tag = "[object Uint16Array]";
1193
+ var uint32Tag = "[object Uint32Array]";
1194
+ var typedArrayTags = {};
1195
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
1196
+ typedArrayTags[argsTag2] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag2] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
1197
+ function baseIsTypedArray(value) {
1198
+ return isObjectLike_default(value) && isLength_default(value.length) && !!typedArrayTags[baseGetTag_default(value)];
1199
+ }
1200
+ var baseIsTypedArray_default = baseIsTypedArray;
1201
+
1202
+ // ../../node_modules/lodash-es/_baseUnary.js
1203
+ function baseUnary(func) {
1204
+ return function(value) {
1205
+ return func(value);
1206
+ };
1207
+ }
1208
+ var baseUnary_default = baseUnary;
1209
+
1210
+ // ../../node_modules/lodash-es/_nodeUtil.js
1211
+ var freeExports2 = typeof exports == "object" && exports && !exports.nodeType && exports;
1212
+ var freeModule2 = freeExports2 && typeof module == "object" && module && !module.nodeType && module;
1213
+ var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
1214
+ var freeProcess = moduleExports2 && freeGlobal_default.process;
1215
+ var nodeUtil = (function() {
1216
+ try {
1217
+ var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
1218
+ if (types) {
1219
+ return types;
1220
+ }
1221
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
1222
+ } catch (e) {
1223
+ }
1224
+ })();
1225
+ var nodeUtil_default = nodeUtil;
1226
+
1227
+ // ../../node_modules/lodash-es/isTypedArray.js
1228
+ var nodeIsTypedArray = nodeUtil_default && nodeUtil_default.isTypedArray;
1229
+ var isTypedArray = nodeIsTypedArray ? baseUnary_default(nodeIsTypedArray) : baseIsTypedArray_default;
1230
+ var isTypedArray_default = isTypedArray;
1231
+
1232
+ // ../../node_modules/lodash-es/_arrayLikeKeys.js
1233
+ var objectProto8 = Object.prototype;
1234
+ var hasOwnProperty7 = objectProto8.hasOwnProperty;
1235
+ function arrayLikeKeys(value, inherited) {
1236
+ var isArr = isArray_default(value), isArg = !isArr && isArguments_default(value), isBuff = !isArr && !isArg && isBuffer_default(value), isType = !isArr && !isArg && !isBuff && isTypedArray_default(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes_default(value.length, String) : [], length = result.length;
1237
+ for (var key in value) {
1238
+ if ((inherited || hasOwnProperty7.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
1239
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
1240
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
1241
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
1242
+ isIndex_default(key, length)))) {
1243
+ result.push(key);
1244
+ }
1245
+ }
1246
+ return result;
1247
+ }
1248
+ var arrayLikeKeys_default = arrayLikeKeys;
1249
+
1250
+ // ../../node_modules/lodash-es/_isPrototype.js
1251
+ var objectProto9 = Object.prototype;
1252
+ function isPrototype(value) {
1253
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto9;
1254
+ return value === proto;
1255
+ }
1256
+ var isPrototype_default = isPrototype;
1257
+
1258
+ // ../../node_modules/lodash-es/_nativeKeys.js
1259
+ var nativeKeys = overArg_default(Object.keys, Object);
1260
+ var nativeKeys_default = nativeKeys;
1261
+
1262
+ // ../../node_modules/lodash-es/_baseKeys.js
1263
+ var objectProto10 = Object.prototype;
1264
+ var hasOwnProperty8 = objectProto10.hasOwnProperty;
1265
+ function baseKeys(object) {
1266
+ if (!isPrototype_default(object)) {
1267
+ return nativeKeys_default(object);
1268
+ }
1269
+ var result = [];
1270
+ for (var key in Object(object)) {
1271
+ if (hasOwnProperty8.call(object, key) && key != "constructor") {
1272
+ result.push(key);
1273
+ }
1274
+ }
1275
+ return result;
1276
+ }
1277
+ var baseKeys_default = baseKeys;
1278
+
1279
+ // ../../node_modules/lodash-es/isArrayLike.js
1280
+ function isArrayLike(value) {
1281
+ return value != null && isLength_default(value.length) && !isFunction_default(value);
1282
+ }
1283
+ var isArrayLike_default = isArrayLike;
1284
+
1285
+ // ../../node_modules/lodash-es/keys.js
1286
+ function keys(object) {
1287
+ return isArrayLike_default(object) ? arrayLikeKeys_default(object) : baseKeys_default(object);
1288
+ }
1289
+ var keys_default = keys;
1290
+
1291
+ // ../../node_modules/lodash-es/_baseAssign.js
1292
+ function baseAssign(object, source) {
1293
+ return object && copyObject_default(source, keys_default(source), object);
1294
+ }
1295
+ var baseAssign_default = baseAssign;
1296
+
1297
+ // ../../node_modules/lodash-es/_nativeKeysIn.js
1298
+ function nativeKeysIn(object) {
1299
+ var result = [];
1300
+ if (object != null) {
1301
+ for (var key in Object(object)) {
1302
+ result.push(key);
1303
+ }
1304
+ }
1305
+ return result;
1306
+ }
1307
+ var nativeKeysIn_default = nativeKeysIn;
1308
+
1309
+ // ../../node_modules/lodash-es/_baseKeysIn.js
1310
+ var objectProto11 = Object.prototype;
1311
+ var hasOwnProperty9 = objectProto11.hasOwnProperty;
1312
+ function baseKeysIn(object) {
1313
+ if (!isObject_default(object)) {
1314
+ return nativeKeysIn_default(object);
1315
+ }
1316
+ var isProto = isPrototype_default(object), result = [];
1317
+ for (var key in object) {
1318
+ if (!(key == "constructor" && (isProto || !hasOwnProperty9.call(object, key)))) {
1319
+ result.push(key);
1320
+ }
1321
+ }
1322
+ return result;
1323
+ }
1324
+ var baseKeysIn_default = baseKeysIn;
1325
+
1326
+ // ../../node_modules/lodash-es/keysIn.js
1327
+ function keysIn(object) {
1328
+ return isArrayLike_default(object) ? arrayLikeKeys_default(object, true) : baseKeysIn_default(object);
1329
+ }
1330
+ var keysIn_default = keysIn;
1331
+
1332
+ // ../../node_modules/lodash-es/_baseAssignIn.js
1333
+ function baseAssignIn(object, source) {
1334
+ return object && copyObject_default(source, keysIn_default(source), object);
1335
+ }
1336
+ var baseAssignIn_default = baseAssignIn;
1337
+
1338
+ // ../../node_modules/lodash-es/_cloneBuffer.js
1339
+ var freeExports3 = typeof exports == "object" && exports && !exports.nodeType && exports;
1340
+ var freeModule3 = freeExports3 && typeof module == "object" && module && !module.nodeType && module;
1341
+ var moduleExports3 = freeModule3 && freeModule3.exports === freeExports3;
1342
+ var Buffer3 = moduleExports3 ? root_default.Buffer : void 0;
1343
+ var allocUnsafe = Buffer3 ? Buffer3.allocUnsafe : void 0;
1344
+ function cloneBuffer(buffer, isDeep) {
1345
+ if (isDeep) {
1346
+ return buffer.slice();
1347
+ }
1348
+ var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
1349
+ buffer.copy(result);
1350
+ return result;
1351
+ }
1352
+ var cloneBuffer_default = cloneBuffer;
1353
+
1354
+ // ../../node_modules/lodash-es/_copyArray.js
1355
+ function copyArray(source, array) {
1356
+ var index = -1, length = source.length;
1357
+ array || (array = Array(length));
1358
+ while (++index < length) {
1359
+ array[index] = source[index];
1360
+ }
1361
+ return array;
1362
+ }
1363
+ var copyArray_default = copyArray;
1364
+
1365
+ // ../../node_modules/lodash-es/_arrayFilter.js
1366
+ function arrayFilter(array, predicate) {
1367
+ var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
1368
+ while (++index < length) {
1369
+ var value = array[index];
1370
+ if (predicate(value, index, array)) {
1371
+ result[resIndex++] = value;
1372
+ }
1373
+ }
1374
+ return result;
1375
+ }
1376
+ var arrayFilter_default = arrayFilter;
1377
+
1378
+ // ../../node_modules/lodash-es/stubArray.js
1379
+ function stubArray() {
1380
+ return [];
1381
+ }
1382
+ var stubArray_default = stubArray;
1383
+
1384
+ // ../../node_modules/lodash-es/_getSymbols.js
1385
+ var objectProto12 = Object.prototype;
1386
+ var propertyIsEnumerable2 = objectProto12.propertyIsEnumerable;
1387
+ var nativeGetSymbols = Object.getOwnPropertySymbols;
1388
+ var getSymbols = !nativeGetSymbols ? stubArray_default : function(object) {
1389
+ if (object == null) {
1390
+ return [];
1391
+ }
1392
+ object = Object(object);
1393
+ return arrayFilter_default(nativeGetSymbols(object), function(symbol) {
1394
+ return propertyIsEnumerable2.call(object, symbol);
1395
+ });
1396
+ };
1397
+ var getSymbols_default = getSymbols;
1398
+
1399
+ // ../../node_modules/lodash-es/_copySymbols.js
1400
+ function copySymbols(source, object) {
1401
+ return copyObject_default(source, getSymbols_default(source), object);
1402
+ }
1403
+ var copySymbols_default = copySymbols;
1404
+
1405
+ // ../../node_modules/lodash-es/_arrayPush.js
1406
+ function arrayPush(array, values) {
1407
+ var index = -1, length = values.length, offset = array.length;
1408
+ while (++index < length) {
1409
+ array[offset + index] = values[index];
1410
+ }
1411
+ return array;
1412
+ }
1413
+ var arrayPush_default = arrayPush;
1414
+
1415
+ // ../../node_modules/lodash-es/_getSymbolsIn.js
1416
+ var nativeGetSymbols2 = Object.getOwnPropertySymbols;
1417
+ var getSymbolsIn = !nativeGetSymbols2 ? stubArray_default : function(object) {
1418
+ var result = [];
1419
+ while (object) {
1420
+ arrayPush_default(result, getSymbols_default(object));
1421
+ object = getPrototype_default(object);
1422
+ }
1423
+ return result;
1424
+ };
1425
+ var getSymbolsIn_default = getSymbolsIn;
1426
+
1427
+ // ../../node_modules/lodash-es/_copySymbolsIn.js
1428
+ function copySymbolsIn(source, object) {
1429
+ return copyObject_default(source, getSymbolsIn_default(source), object);
1430
+ }
1431
+ var copySymbolsIn_default = copySymbolsIn;
1432
+
1433
+ // ../../node_modules/lodash-es/_baseGetAllKeys.js
1434
+ function baseGetAllKeys(object, keysFunc, symbolsFunc) {
1435
+ var result = keysFunc(object);
1436
+ return isArray_default(object) ? result : arrayPush_default(result, symbolsFunc(object));
1437
+ }
1438
+ var baseGetAllKeys_default = baseGetAllKeys;
1439
+
1440
+ // ../../node_modules/lodash-es/_getAllKeys.js
1441
+ function getAllKeys(object) {
1442
+ return baseGetAllKeys_default(object, keys_default, getSymbols_default);
1443
+ }
1444
+ var getAllKeys_default = getAllKeys;
1445
+
1446
+ // ../../node_modules/lodash-es/_getAllKeysIn.js
1447
+ function getAllKeysIn(object) {
1448
+ return baseGetAllKeys_default(object, keysIn_default, getSymbolsIn_default);
1449
+ }
1450
+ var getAllKeysIn_default = getAllKeysIn;
1451
+
1452
+ // ../../node_modules/lodash-es/_DataView.js
1453
+ var DataView = getNative_default(root_default, "DataView");
1454
+ var DataView_default = DataView;
1455
+
1456
+ // ../../node_modules/lodash-es/_Promise.js
1457
+ var Promise2 = getNative_default(root_default, "Promise");
1458
+ var Promise_default = Promise2;
1459
+
1460
+ // ../../node_modules/lodash-es/_Set.js
1461
+ var Set = getNative_default(root_default, "Set");
1462
+ var Set_default = Set;
1463
+
1464
+ // ../../node_modules/lodash-es/_WeakMap.js
1465
+ var WeakMap2 = getNative_default(root_default, "WeakMap");
1466
+ var WeakMap_default = WeakMap2;
1467
+
1468
+ // ../../node_modules/lodash-es/_getTag.js
1469
+ var mapTag2 = "[object Map]";
1470
+ var objectTag2 = "[object Object]";
1471
+ var promiseTag = "[object Promise]";
1472
+ var setTag2 = "[object Set]";
1473
+ var weakMapTag2 = "[object WeakMap]";
1474
+ var dataViewTag2 = "[object DataView]";
1475
+ var dataViewCtorString = toSource_default(DataView_default);
1476
+ var mapCtorString = toSource_default(Map_default);
1477
+ var promiseCtorString = toSource_default(Promise_default);
1478
+ var setCtorString = toSource_default(Set_default);
1479
+ var weakMapCtorString = toSource_default(WeakMap_default);
1480
+ var getTag = baseGetTag_default;
1481
+ if (DataView_default && getTag(new DataView_default(new ArrayBuffer(1))) != dataViewTag2 || Map_default && getTag(new Map_default()) != mapTag2 || Promise_default && getTag(Promise_default.resolve()) != promiseTag || Set_default && getTag(new Set_default()) != setTag2 || WeakMap_default && getTag(new WeakMap_default()) != weakMapTag2) {
1482
+ getTag = function(value) {
1483
+ var result = baseGetTag_default(value), Ctor = result == objectTag2 ? value.constructor : void 0, ctorString = Ctor ? toSource_default(Ctor) : "";
1484
+ if (ctorString) {
1485
+ switch (ctorString) {
1486
+ case dataViewCtorString:
1487
+ return dataViewTag2;
1488
+ case mapCtorString:
1489
+ return mapTag2;
1490
+ case promiseCtorString:
1491
+ return promiseTag;
1492
+ case setCtorString:
1493
+ return setTag2;
1494
+ case weakMapCtorString:
1495
+ return weakMapTag2;
1496
+ }
1497
+ }
1498
+ return result;
1499
+ };
1500
+ }
1501
+ var getTag_default = getTag;
1502
+
1503
+ // ../../node_modules/lodash-es/_initCloneArray.js
1504
+ var objectProto13 = Object.prototype;
1505
+ var hasOwnProperty10 = objectProto13.hasOwnProperty;
1506
+ function initCloneArray(array) {
1507
+ var length = array.length, result = new array.constructor(length);
1508
+ if (length && typeof array[0] == "string" && hasOwnProperty10.call(array, "index")) {
1509
+ result.index = array.index;
1510
+ result.input = array.input;
1511
+ }
1512
+ return result;
1513
+ }
1514
+ var initCloneArray_default = initCloneArray;
1515
+
1516
+ // ../../node_modules/lodash-es/_Uint8Array.js
1517
+ var Uint8Array2 = root_default.Uint8Array;
1518
+ var Uint8Array_default = Uint8Array2;
1519
+
1520
+ // ../../node_modules/lodash-es/_cloneArrayBuffer.js
1521
+ function cloneArrayBuffer(arrayBuffer) {
1522
+ var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
1523
+ new Uint8Array_default(result).set(new Uint8Array_default(arrayBuffer));
1524
+ return result;
1525
+ }
1526
+ var cloneArrayBuffer_default = cloneArrayBuffer;
1527
+
1528
+ // ../../node_modules/lodash-es/_cloneDataView.js
1529
+ function cloneDataView(dataView, isDeep) {
1530
+ var buffer = isDeep ? cloneArrayBuffer_default(dataView.buffer) : dataView.buffer;
1531
+ return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
1532
+ }
1533
+ var cloneDataView_default = cloneDataView;
1534
+
1535
+ // ../../node_modules/lodash-es/_cloneRegExp.js
1536
+ var reFlags = /\w*$/;
1537
+ function cloneRegExp(regexp) {
1538
+ var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
1539
+ result.lastIndex = regexp.lastIndex;
1540
+ return result;
1541
+ }
1542
+ var cloneRegExp_default = cloneRegExp;
1543
+
1544
+ // ../../node_modules/lodash-es/_cloneSymbol.js
1545
+ var symbolProto = Symbol_default ? Symbol_default.prototype : void 0;
1546
+ var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
1547
+ function cloneSymbol(symbol) {
1548
+ return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
1549
+ }
1550
+ var cloneSymbol_default = cloneSymbol;
1551
+
1552
+ // ../../node_modules/lodash-es/_cloneTypedArray.js
1553
+ function cloneTypedArray(typedArray, isDeep) {
1554
+ var buffer = isDeep ? cloneArrayBuffer_default(typedArray.buffer) : typedArray.buffer;
1555
+ return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
1556
+ }
1557
+ var cloneTypedArray_default = cloneTypedArray;
1558
+
1559
+ // ../../node_modules/lodash-es/_initCloneByTag.js
1560
+ var boolTag2 = "[object Boolean]";
1561
+ var dateTag2 = "[object Date]";
1562
+ var mapTag3 = "[object Map]";
1563
+ var numberTag2 = "[object Number]";
1564
+ var regexpTag2 = "[object RegExp]";
1565
+ var setTag3 = "[object Set]";
1566
+ var stringTag2 = "[object String]";
1567
+ var symbolTag = "[object Symbol]";
1568
+ var arrayBufferTag2 = "[object ArrayBuffer]";
1569
+ var dataViewTag3 = "[object DataView]";
1570
+ var float32Tag2 = "[object Float32Array]";
1571
+ var float64Tag2 = "[object Float64Array]";
1572
+ var int8Tag2 = "[object Int8Array]";
1573
+ var int16Tag2 = "[object Int16Array]";
1574
+ var int32Tag2 = "[object Int32Array]";
1575
+ var uint8Tag2 = "[object Uint8Array]";
1576
+ var uint8ClampedTag2 = "[object Uint8ClampedArray]";
1577
+ var uint16Tag2 = "[object Uint16Array]";
1578
+ var uint32Tag2 = "[object Uint32Array]";
1579
+ function initCloneByTag(object, tag, isDeep) {
1580
+ var Ctor = object.constructor;
1581
+ switch (tag) {
1582
+ case arrayBufferTag2:
1583
+ return cloneArrayBuffer_default(object);
1584
+ case boolTag2:
1585
+ case dateTag2:
1586
+ return new Ctor(+object);
1587
+ case dataViewTag3:
1588
+ return cloneDataView_default(object, isDeep);
1589
+ case float32Tag2:
1590
+ case float64Tag2:
1591
+ case int8Tag2:
1592
+ case int16Tag2:
1593
+ case int32Tag2:
1594
+ case uint8Tag2:
1595
+ case uint8ClampedTag2:
1596
+ case uint16Tag2:
1597
+ case uint32Tag2:
1598
+ return cloneTypedArray_default(object, isDeep);
1599
+ case mapTag3:
1600
+ return new Ctor();
1601
+ case numberTag2:
1602
+ case stringTag2:
1603
+ return new Ctor(object);
1604
+ case regexpTag2:
1605
+ return cloneRegExp_default(object);
1606
+ case setTag3:
1607
+ return new Ctor();
1608
+ case symbolTag:
1609
+ return cloneSymbol_default(object);
1610
+ }
1611
+ }
1612
+ var initCloneByTag_default = initCloneByTag;
1613
+
1614
+ // ../../node_modules/lodash-es/_baseCreate.js
1615
+ var objectCreate = Object.create;
1616
+ var baseCreate = /* @__PURE__ */ (function() {
1617
+ function object() {
1618
+ }
1619
+ return function(proto) {
1620
+ if (!isObject_default(proto)) {
1621
+ return {};
1622
+ }
1623
+ if (objectCreate) {
1624
+ return objectCreate(proto);
1625
+ }
1626
+ object.prototype = proto;
1627
+ var result = new object();
1628
+ object.prototype = void 0;
1629
+ return result;
1630
+ };
1631
+ })();
1632
+ var baseCreate_default = baseCreate;
1633
+
1634
+ // ../../node_modules/lodash-es/_initCloneObject.js
1635
+ function initCloneObject(object) {
1636
+ return typeof object.constructor == "function" && !isPrototype_default(object) ? baseCreate_default(getPrototype_default(object)) : {};
1637
+ }
1638
+ var initCloneObject_default = initCloneObject;
1639
+
1640
+ // ../../node_modules/lodash-es/_baseIsMap.js
1641
+ var mapTag4 = "[object Map]";
1642
+ function baseIsMap(value) {
1643
+ return isObjectLike_default(value) && getTag_default(value) == mapTag4;
1644
+ }
1645
+ var baseIsMap_default = baseIsMap;
1646
+
1647
+ // ../../node_modules/lodash-es/isMap.js
1648
+ var nodeIsMap = nodeUtil_default && nodeUtil_default.isMap;
1649
+ var isMap = nodeIsMap ? baseUnary_default(nodeIsMap) : baseIsMap_default;
1650
+ var isMap_default = isMap;
1651
+
1652
+ // ../../node_modules/lodash-es/_baseIsSet.js
1653
+ var setTag4 = "[object Set]";
1654
+ function baseIsSet(value) {
1655
+ return isObjectLike_default(value) && getTag_default(value) == setTag4;
1656
+ }
1657
+ var baseIsSet_default = baseIsSet;
1658
+
1659
+ // ../../node_modules/lodash-es/isSet.js
1660
+ var nodeIsSet = nodeUtil_default && nodeUtil_default.isSet;
1661
+ var isSet = nodeIsSet ? baseUnary_default(nodeIsSet) : baseIsSet_default;
1662
+ var isSet_default = isSet;
1663
+
1664
+ // ../../node_modules/lodash-es/_baseClone.js
1665
+ var CLONE_DEEP_FLAG = 1;
1666
+ var CLONE_FLAT_FLAG = 2;
1667
+ var CLONE_SYMBOLS_FLAG = 4;
1668
+ var argsTag3 = "[object Arguments]";
1669
+ var arrayTag2 = "[object Array]";
1670
+ var boolTag3 = "[object Boolean]";
1671
+ var dateTag3 = "[object Date]";
1672
+ var errorTag2 = "[object Error]";
1673
+ var funcTag3 = "[object Function]";
1674
+ var genTag2 = "[object GeneratorFunction]";
1675
+ var mapTag5 = "[object Map]";
1676
+ var numberTag3 = "[object Number]";
1677
+ var objectTag3 = "[object Object]";
1678
+ var regexpTag3 = "[object RegExp]";
1679
+ var setTag5 = "[object Set]";
1680
+ var stringTag3 = "[object String]";
1681
+ var symbolTag2 = "[object Symbol]";
1682
+ var weakMapTag3 = "[object WeakMap]";
1683
+ var arrayBufferTag3 = "[object ArrayBuffer]";
1684
+ var dataViewTag4 = "[object DataView]";
1685
+ var float32Tag3 = "[object Float32Array]";
1686
+ var float64Tag3 = "[object Float64Array]";
1687
+ var int8Tag3 = "[object Int8Array]";
1688
+ var int16Tag3 = "[object Int16Array]";
1689
+ var int32Tag3 = "[object Int32Array]";
1690
+ var uint8Tag3 = "[object Uint8Array]";
1691
+ var uint8ClampedTag3 = "[object Uint8ClampedArray]";
1692
+ var uint16Tag3 = "[object Uint16Array]";
1693
+ var uint32Tag3 = "[object Uint32Array]";
1694
+ var cloneableTags = {};
1695
+ cloneableTags[argsTag3] = cloneableTags[arrayTag2] = cloneableTags[arrayBufferTag3] = cloneableTags[dataViewTag4] = cloneableTags[boolTag3] = cloneableTags[dateTag3] = cloneableTags[float32Tag3] = cloneableTags[float64Tag3] = cloneableTags[int8Tag3] = cloneableTags[int16Tag3] = cloneableTags[int32Tag3] = cloneableTags[mapTag5] = cloneableTags[numberTag3] = cloneableTags[objectTag3] = cloneableTags[regexpTag3] = cloneableTags[setTag5] = cloneableTags[stringTag3] = cloneableTags[symbolTag2] = cloneableTags[uint8Tag3] = cloneableTags[uint8ClampedTag3] = cloneableTags[uint16Tag3] = cloneableTags[uint32Tag3] = true;
1696
+ cloneableTags[errorTag2] = cloneableTags[funcTag3] = cloneableTags[weakMapTag3] = false;
1697
+ function baseClone(value, bitmask, customizer, key, object, stack) {
1698
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG;
1699
+ if (customizer) {
1700
+ result = object ? customizer(value, key, object, stack) : customizer(value);
1701
+ }
1702
+ if (result !== void 0) {
1703
+ return result;
1704
+ }
1705
+ if (!isObject_default(value)) {
1706
+ return value;
1707
+ }
1708
+ var isArr = isArray_default(value);
1709
+ if (isArr) {
1710
+ result = initCloneArray_default(value);
1711
+ if (!isDeep) {
1712
+ return copyArray_default(value, result);
1713
+ }
1714
+ } else {
1715
+ var tag = getTag_default(value), isFunc = tag == funcTag3 || tag == genTag2;
1716
+ if (isBuffer_default(value)) {
1717
+ return cloneBuffer_default(value, isDeep);
1718
+ }
1719
+ if (tag == objectTag3 || tag == argsTag3 || isFunc && !object) {
1720
+ result = isFlat || isFunc ? {} : initCloneObject_default(value);
1721
+ if (!isDeep) {
1722
+ return isFlat ? copySymbolsIn_default(value, baseAssignIn_default(result, value)) : copySymbols_default(value, baseAssign_default(result, value));
1723
+ }
1724
+ } else {
1725
+ if (!cloneableTags[tag]) {
1726
+ return object ? value : {};
1727
+ }
1728
+ result = initCloneByTag_default(value, tag, isDeep);
1729
+ }
1730
+ }
1731
+ stack || (stack = new Stack_default());
1732
+ var stacked = stack.get(value);
1733
+ if (stacked) {
1734
+ return stacked;
1735
+ }
1736
+ stack.set(value, result);
1737
+ if (isSet_default(value)) {
1738
+ value.forEach(function(subValue) {
1739
+ result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
1740
+ });
1741
+ } else if (isMap_default(value)) {
1742
+ value.forEach(function(subValue, key2) {
1743
+ result.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1744
+ });
1745
+ }
1746
+ var keysFunc = isFull ? isFlat ? getAllKeysIn_default : getAllKeys_default : isFlat ? keysIn_default : keys_default;
1747
+ var props = isArr ? void 0 : keysFunc(value);
1748
+ arrayEach_default(props || value, function(subValue, key2) {
1749
+ if (props) {
1750
+ key2 = subValue;
1751
+ subValue = value[key2];
1752
+ }
1753
+ assignValue_default(result, key2, baseClone(subValue, bitmask, customizer, key2, value, stack));
1754
+ });
1755
+ return result;
1756
+ }
1757
+ var baseClone_default = baseClone;
1758
+
1759
+ // ../../node_modules/lodash-es/cloneDeep.js
1760
+ var CLONE_DEEP_FLAG2 = 1;
1761
+ var CLONE_SYMBOLS_FLAG2 = 4;
1762
+ function cloneDeep(value) {
1763
+ return baseClone_default(value, CLONE_DEEP_FLAG2 | CLONE_SYMBOLS_FLAG2);
1764
+ }
1765
+ var cloneDeep_default = cloneDeep;
1766
+
1767
+ // ../../node_modules/formik/dist/formik.esm.js
1768
+ var import_react_fast_compare = __toESM(require_react_fast_compare());
1769
+ import { createContext as createContext2, useContext as useContext2, Children, useRef as useRef2, useEffect, useState as useState2, useCallback, useMemo, useImperativeHandle, createElement, useLayoutEffect, forwardRef, Component } from "react";
1770
+
1771
+ // ../../node_modules/tiny-warning/dist/tiny-warning.esm.js
1772
+ var isProduction = process.env.NODE_ENV === "production";
1773
+ function warning(condition, message) {
1774
+ if (!isProduction) {
1775
+ if (condition) {
1776
+ return;
1777
+ }
1778
+ var text = "Warning: " + message;
1779
+ if (typeof console !== "undefined") {
1780
+ console.warn(text);
1781
+ }
1782
+ try {
1783
+ throw Error(text);
1784
+ } catch (x) {
1785
+ }
1786
+ }
1787
+ }
1788
+ var tiny_warning_esm_default = warning;
1789
+
1790
+ // ../../node_modules/lodash-es/clone.js
1791
+ var CLONE_SYMBOLS_FLAG3 = 4;
1792
+ function clone(value) {
1793
+ return baseClone_default(value, CLONE_SYMBOLS_FLAG3);
1794
+ }
1795
+ var clone_default = clone;
1796
+
1797
+ // ../../node_modules/lodash-es/_arrayMap.js
1798
+ function arrayMap(array, iteratee) {
1799
+ var index = -1, length = array == null ? 0 : array.length, result = Array(length);
1800
+ while (++index < length) {
1801
+ result[index] = iteratee(array[index], index, array);
1802
+ }
1803
+ return result;
1804
+ }
1805
+ var arrayMap_default = arrayMap;
1806
+
1807
+ // ../../node_modules/lodash-es/isSymbol.js
1808
+ var symbolTag3 = "[object Symbol]";
1809
+ function isSymbol(value) {
1810
+ return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag3;
1811
+ }
1812
+ var isSymbol_default = isSymbol;
1813
+
1814
+ // ../../node_modules/lodash-es/memoize.js
1815
+ var FUNC_ERROR_TEXT = "Expected a function";
1816
+ function memoize(func, resolver) {
1817
+ if (typeof func != "function" || resolver != null && typeof resolver != "function") {
1818
+ throw new TypeError(FUNC_ERROR_TEXT);
1819
+ }
1820
+ var memoized = function() {
1821
+ var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
1822
+ if (cache.has(key)) {
1823
+ return cache.get(key);
1824
+ }
1825
+ var result = func.apply(this, args);
1826
+ memoized.cache = cache.set(key, result) || cache;
1827
+ return result;
1828
+ };
1829
+ memoized.cache = new (memoize.Cache || MapCache_default)();
1830
+ return memoized;
1831
+ }
1832
+ memoize.Cache = MapCache_default;
1833
+ var memoize_default = memoize;
1834
+
1835
+ // ../../node_modules/lodash-es/_memoizeCapped.js
1836
+ var MAX_MEMOIZE_SIZE = 500;
1837
+ function memoizeCapped(func) {
1838
+ var result = memoize_default(func, function(key) {
1839
+ if (cache.size === MAX_MEMOIZE_SIZE) {
1840
+ cache.clear();
1841
+ }
1842
+ return key;
1843
+ });
1844
+ var cache = result.cache;
1845
+ return result;
1846
+ }
1847
+ var memoizeCapped_default = memoizeCapped;
1848
+
1849
+ // ../../node_modules/lodash-es/_stringToPath.js
1850
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1851
+ var reEscapeChar = /\\(\\)?/g;
1852
+ var stringToPath = memoizeCapped_default(function(string) {
1853
+ var result = [];
1854
+ if (string.charCodeAt(0) === 46) {
1855
+ result.push("");
1856
+ }
1857
+ string.replace(rePropName, function(match, number, quote, subString) {
1858
+ result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
1859
+ });
1860
+ return result;
1861
+ });
1862
+ var stringToPath_default = stringToPath;
1863
+
1864
+ // ../../node_modules/lodash-es/_toKey.js
1865
+ var INFINITY = 1 / 0;
1866
+ function toKey(value) {
1867
+ if (typeof value == "string" || isSymbol_default(value)) {
1868
+ return value;
1869
+ }
1870
+ var result = value + "";
1871
+ return result == "0" && 1 / value == -INFINITY ? "-0" : result;
1872
+ }
1873
+ var toKey_default = toKey;
1874
+
1875
+ // ../../node_modules/lodash-es/_baseToString.js
1876
+ var INFINITY2 = 1 / 0;
1877
+ var symbolProto2 = Symbol_default ? Symbol_default.prototype : void 0;
1878
+ var symbolToString = symbolProto2 ? symbolProto2.toString : void 0;
1879
+ function baseToString(value) {
1880
+ if (typeof value == "string") {
1881
+ return value;
1882
+ }
1883
+ if (isArray_default(value)) {
1884
+ return arrayMap_default(value, baseToString) + "";
1885
+ }
1886
+ if (isSymbol_default(value)) {
1887
+ return symbolToString ? symbolToString.call(value) : "";
1888
+ }
1889
+ var result = value + "";
1890
+ return result == "0" && 1 / value == -INFINITY2 ? "-0" : result;
1891
+ }
1892
+ var baseToString_default = baseToString;
1893
+
1894
+ // ../../node_modules/lodash-es/toString.js
1895
+ function toString(value) {
1896
+ return value == null ? "" : baseToString_default(value);
1897
+ }
1898
+ var toString_default = toString;
1899
+
1900
+ // ../../node_modules/lodash-es/toPath.js
1901
+ function toPath(value) {
1902
+ if (isArray_default(value)) {
1903
+ return arrayMap_default(value, toKey_default);
1904
+ }
1905
+ return isSymbol_default(value) ? [value] : copyArray_default(stringToPath_default(toString_default(value)));
1906
+ }
1907
+ var toPath_default = toPath;
1908
+
1909
+ // ../../node_modules/formik/dist/formik.esm.js
1910
+ var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
1911
+ function _extends() {
1912
+ _extends = Object.assign || function(target) {
1913
+ for (var i = 1; i < arguments.length; i++) {
1914
+ var source = arguments[i];
1915
+ for (var key in source) {
1916
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
1917
+ target[key] = source[key];
1918
+ }
1919
+ }
1920
+ }
1921
+ return target;
1922
+ };
1923
+ return _extends.apply(this, arguments);
1924
+ }
1925
+ function _inheritsLoose(subClass, superClass) {
1926
+ subClass.prototype = Object.create(superClass.prototype);
1927
+ subClass.prototype.constructor = subClass;
1928
+ subClass.__proto__ = superClass;
1929
+ }
1930
+ function _objectWithoutPropertiesLoose(source, excluded) {
1931
+ if (source == null) return {};
1932
+ var target = {};
1933
+ var sourceKeys = Object.keys(source);
1934
+ var key, i;
1935
+ for (i = 0; i < sourceKeys.length; i++) {
1936
+ key = sourceKeys[i];
1937
+ if (excluded.indexOf(key) >= 0) continue;
1938
+ target[key] = source[key];
1939
+ }
1940
+ return target;
1941
+ }
1942
+ function _assertThisInitialized(self2) {
1943
+ if (self2 === void 0) {
1944
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1945
+ }
1946
+ return self2;
1947
+ }
1948
+ var FormikContext = /* @__PURE__ */ createContext2(void 0);
1949
+ FormikContext.displayName = "FormikContext";
1950
+ var FormikProvider = FormikContext.Provider;
1951
+ var FormikConsumer = FormikContext.Consumer;
1952
+ function useFormikContext() {
1953
+ var formik = useContext2(FormikContext);
1954
+ !!!formik ? process.env.NODE_ENV !== "production" ? tiny_warning_esm_default(false, "Formik context is undefined, please verify you are calling useFormikContext() as child of a <Formik> component.") : tiny_warning_esm_default(false) : void 0;
1955
+ return formik;
1956
+ }
1957
+ var isEmptyArray = function isEmptyArray2(value) {
1958
+ return Array.isArray(value) && value.length === 0;
1959
+ };
1960
+ var isFunction2 = function isFunction3(obj) {
1961
+ return typeof obj === "function";
1962
+ };
1963
+ var isObject2 = function isObject3(obj) {
1964
+ return obj !== null && typeof obj === "object";
1965
+ };
1966
+ var isInteger = function isInteger2(obj) {
1967
+ return String(Math.floor(Number(obj))) === obj;
1968
+ };
1969
+ var isEmptyChildren = function isEmptyChildren2(children) {
1970
+ return Children.count(children) === 0;
1971
+ };
1972
+ function getIn(obj, key, def, p) {
1973
+ if (p === void 0) {
1974
+ p = 0;
1975
+ }
1976
+ var path = toPath_default(key);
1977
+ while (obj && p < path.length) {
1978
+ obj = obj[path[p++]];
1979
+ }
1980
+ if (p !== path.length && !obj) {
1981
+ return def;
1982
+ }
1983
+ return obj === void 0 ? def : obj;
1984
+ }
1985
+ function setIn(obj, path, value) {
1986
+ var res = clone_default(obj);
1987
+ var resVal = res;
1988
+ var i = 0;
1989
+ var pathArray = toPath_default(path);
1990
+ for (; i < pathArray.length - 1; i++) {
1991
+ var currentPath = pathArray[i];
1992
+ var currentObj = getIn(obj, pathArray.slice(0, i + 1));
1993
+ if (currentObj && (isObject2(currentObj) || Array.isArray(currentObj))) {
1994
+ resVal = resVal[currentPath] = clone_default(currentObj);
1995
+ } else {
1996
+ var nextPath = pathArray[i + 1];
1997
+ resVal = resVal[currentPath] = isInteger(nextPath) && Number(nextPath) >= 0 ? [] : {};
1998
+ }
1999
+ }
2000
+ if ((i === 0 ? obj : resVal)[pathArray[i]] === value) {
2001
+ return obj;
2002
+ }
2003
+ if (value === void 0) {
2004
+ delete resVal[pathArray[i]];
2005
+ } else {
2006
+ resVal[pathArray[i]] = value;
2007
+ }
2008
+ if (i === 0 && value === void 0) {
2009
+ delete res[pathArray[i]];
2010
+ }
2011
+ return res;
2012
+ }
2013
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined" ? useLayoutEffect : useEffect;
2014
+ var Form = /* @__PURE__ */ forwardRef(function(props, ref) {
2015
+ var action = props.action, rest = _objectWithoutPropertiesLoose(props, ["action"]);
2016
+ var _action = action != null ? action : "#";
2017
+ var _useFormikContext = useFormikContext(), handleReset = _useFormikContext.handleReset, handleSubmit = _useFormikContext.handleSubmit;
2018
+ return createElement("form", _extends({
2019
+ onSubmit: handleSubmit,
2020
+ ref,
2021
+ onReset: handleReset,
2022
+ action: _action
2023
+ }, rest));
2024
+ });
2025
+ Form.displayName = "Form";
2026
+ var move = function move2(array, from, to) {
2027
+ var copy = copyArrayLike(array);
2028
+ var value = copy[from];
2029
+ copy.splice(from, 1);
2030
+ copy.splice(to, 0, value);
2031
+ return copy;
2032
+ };
2033
+ var swap = function swap2(arrayLike, indexA, indexB) {
2034
+ var copy = copyArrayLike(arrayLike);
2035
+ var a = copy[indexA];
2036
+ copy[indexA] = copy[indexB];
2037
+ copy[indexB] = a;
2038
+ return copy;
2039
+ };
2040
+ var insert = function insert2(arrayLike, index, value) {
2041
+ var copy = copyArrayLike(arrayLike);
2042
+ copy.splice(index, 0, value);
2043
+ return copy;
2044
+ };
2045
+ var replace = function replace2(arrayLike, index, value) {
2046
+ var copy = copyArrayLike(arrayLike);
2047
+ copy[index] = value;
2048
+ return copy;
2049
+ };
2050
+ var copyArrayLike = function copyArrayLike2(arrayLike) {
2051
+ if (!arrayLike) {
2052
+ return [];
2053
+ } else if (Array.isArray(arrayLike)) {
2054
+ return [].concat(arrayLike);
2055
+ } else {
2056
+ var maxIndex = Object.keys(arrayLike).map(function(key) {
2057
+ return parseInt(key);
2058
+ }).reduce(function(max, el) {
2059
+ return el > max ? el : max;
2060
+ }, 0);
2061
+ return Array.from(_extends({}, arrayLike, {
2062
+ length: maxIndex + 1
2063
+ }));
2064
+ }
2065
+ };
2066
+ var createAlterationHandler = function createAlterationHandler2(alteration, defaultFunction) {
2067
+ var fn = typeof alteration === "function" ? alteration : defaultFunction;
2068
+ return function(data) {
2069
+ if (Array.isArray(data) || isObject2(data)) {
2070
+ var clone2 = copyArrayLike(data);
2071
+ return fn(clone2);
2072
+ }
2073
+ return data;
2074
+ };
2075
+ };
2076
+ var FieldArrayInner = /* @__PURE__ */ (function(_React$Component) {
2077
+ _inheritsLoose(FieldArrayInner2, _React$Component);
2078
+ function FieldArrayInner2(props) {
2079
+ var _this;
2080
+ _this = _React$Component.call(this, props) || this;
2081
+ _this.updateArrayField = function(fn, alterTouched, alterErrors) {
2082
+ var _this$props = _this.props, name = _this$props.name, setFormikState = _this$props.formik.setFormikState;
2083
+ setFormikState(function(prevState) {
2084
+ var updateErrors = createAlterationHandler(alterErrors, fn);
2085
+ var updateTouched = createAlterationHandler(alterTouched, fn);
2086
+ var values = setIn(prevState.values, name, fn(getIn(prevState.values, name)));
2087
+ var fieldError = alterErrors ? updateErrors(getIn(prevState.errors, name)) : void 0;
2088
+ var fieldTouched = alterTouched ? updateTouched(getIn(prevState.touched, name)) : void 0;
2089
+ if (isEmptyArray(fieldError)) {
2090
+ fieldError = void 0;
2091
+ }
2092
+ if (isEmptyArray(fieldTouched)) {
2093
+ fieldTouched = void 0;
2094
+ }
2095
+ return _extends({}, prevState, {
2096
+ values,
2097
+ errors: alterErrors ? setIn(prevState.errors, name, fieldError) : prevState.errors,
2098
+ touched: alterTouched ? setIn(prevState.touched, name, fieldTouched) : prevState.touched
2099
+ });
2100
+ });
2101
+ };
2102
+ _this.push = function(value) {
2103
+ return _this.updateArrayField(function(arrayLike) {
2104
+ return [].concat(copyArrayLike(arrayLike), [cloneDeep_default(value)]);
2105
+ }, false, false);
2106
+ };
2107
+ _this.handlePush = function(value) {
2108
+ return function() {
2109
+ return _this.push(value);
2110
+ };
2111
+ };
2112
+ _this.swap = function(indexA, indexB) {
2113
+ return _this.updateArrayField(function(array) {
2114
+ return swap(array, indexA, indexB);
2115
+ }, true, true);
2116
+ };
2117
+ _this.handleSwap = function(indexA, indexB) {
2118
+ return function() {
2119
+ return _this.swap(indexA, indexB);
2120
+ };
2121
+ };
2122
+ _this.move = function(from, to) {
2123
+ return _this.updateArrayField(function(array) {
2124
+ return move(array, from, to);
2125
+ }, true, true);
2126
+ };
2127
+ _this.handleMove = function(from, to) {
2128
+ return function() {
2129
+ return _this.move(from, to);
2130
+ };
2131
+ };
2132
+ _this.insert = function(index, value) {
2133
+ return _this.updateArrayField(function(array) {
2134
+ return insert(array, index, value);
2135
+ }, function(array) {
2136
+ return insert(array, index, null);
2137
+ }, function(array) {
2138
+ return insert(array, index, null);
2139
+ });
2140
+ };
2141
+ _this.handleInsert = function(index, value) {
2142
+ return function() {
2143
+ return _this.insert(index, value);
2144
+ };
2145
+ };
2146
+ _this.replace = function(index, value) {
2147
+ return _this.updateArrayField(function(array) {
2148
+ return replace(array, index, value);
2149
+ }, false, false);
2150
+ };
2151
+ _this.handleReplace = function(index, value) {
2152
+ return function() {
2153
+ return _this.replace(index, value);
2154
+ };
2155
+ };
2156
+ _this.unshift = function(value) {
2157
+ var length = -1;
2158
+ _this.updateArrayField(function(array) {
2159
+ var arr = array ? [value].concat(array) : [value];
2160
+ length = arr.length;
2161
+ return arr;
2162
+ }, function(array) {
2163
+ return array ? [null].concat(array) : [null];
2164
+ }, function(array) {
2165
+ return array ? [null].concat(array) : [null];
2166
+ });
2167
+ return length;
2168
+ };
2169
+ _this.handleUnshift = function(value) {
2170
+ return function() {
2171
+ return _this.unshift(value);
2172
+ };
2173
+ };
2174
+ _this.handleRemove = function(index) {
2175
+ return function() {
2176
+ return _this.remove(index);
2177
+ };
2178
+ };
2179
+ _this.handlePop = function() {
2180
+ return function() {
2181
+ return _this.pop();
2182
+ };
2183
+ };
2184
+ _this.remove = _this.remove.bind(_assertThisInitialized(_this));
2185
+ _this.pop = _this.pop.bind(_assertThisInitialized(_this));
2186
+ return _this;
2187
+ }
2188
+ var _proto = FieldArrayInner2.prototype;
2189
+ _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
2190
+ if (this.props.validateOnChange && this.props.formik.validateOnChange && !(0, import_react_fast_compare.default)(getIn(prevProps.formik.values, prevProps.name), getIn(this.props.formik.values, this.props.name))) {
2191
+ this.props.formik.validateForm(this.props.formik.values);
2192
+ }
2193
+ };
2194
+ _proto.remove = function remove(index) {
2195
+ var result;
2196
+ this.updateArrayField(
2197
+ // so this gets call 3 times
2198
+ function(array) {
2199
+ var copy = array ? copyArrayLike(array) : [];
2200
+ if (!result) {
2201
+ result = copy[index];
2202
+ }
2203
+ if (isFunction2(copy.splice)) {
2204
+ copy.splice(index, 1);
2205
+ }
2206
+ return isFunction2(copy.every) ? copy.every(function(v) {
2207
+ return v === void 0;
2208
+ }) ? [] : copy : copy;
2209
+ },
2210
+ true,
2211
+ true
2212
+ );
2213
+ return result;
2214
+ };
2215
+ _proto.pop = function pop() {
2216
+ var result;
2217
+ this.updateArrayField(
2218
+ // so this gets call 3 times
2219
+ function(array) {
2220
+ var tmp = array.slice();
2221
+ if (!result) {
2222
+ result = tmp && tmp.pop && tmp.pop();
2223
+ }
2224
+ return tmp;
2225
+ },
2226
+ true,
2227
+ true
2228
+ );
2229
+ return result;
2230
+ };
2231
+ _proto.render = function render() {
2232
+ var arrayHelpers = {
2233
+ push: this.push,
2234
+ pop: this.pop,
2235
+ swap: this.swap,
2236
+ move: this.move,
2237
+ insert: this.insert,
2238
+ replace: this.replace,
2239
+ unshift: this.unshift,
2240
+ remove: this.remove,
2241
+ handlePush: this.handlePush,
2242
+ handlePop: this.handlePop,
2243
+ handleSwap: this.handleSwap,
2244
+ handleMove: this.handleMove,
2245
+ handleInsert: this.handleInsert,
2246
+ handleReplace: this.handleReplace,
2247
+ handleUnshift: this.handleUnshift,
2248
+ handleRemove: this.handleRemove
2249
+ };
2250
+ var _this$props2 = this.props, component = _this$props2.component, render2 = _this$props2.render, children = _this$props2.children, name = _this$props2.name, _this$props2$formik = _this$props2.formik, restOfFormik = _objectWithoutPropertiesLoose(_this$props2$formik, ["validate", "validationSchema"]);
2251
+ var props = _extends({}, arrayHelpers, {
2252
+ form: restOfFormik,
2253
+ name
2254
+ });
2255
+ return component ? createElement(component, props) : render2 ? render2(props) : children ? typeof children === "function" ? children(props) : !isEmptyChildren(children) ? Children.only(children) : null : null;
2256
+ };
2257
+ return FieldArrayInner2;
2258
+ })(Component);
2259
+ FieldArrayInner.defaultProps = {
2260
+ validateOnChange: true
2261
+ };
2262
+
2263
+ // src/ChangePasswordFeedback.jsx
2264
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
2265
+ var ChangePasswordFeedback = () => {
2266
+ const { conditions = [], submitted } = useChangePasswordContext();
2267
+ const { values, touched } = useFormikContext();
2268
+ const { currentPassword, newPassword, confirmNewPassword } = values;
2269
+ return /* @__PURE__ */ jsxs("div", { children: [
2270
+ /* @__PURE__ */ jsx2("strong", { children: "Your new password must contain" }),
2271
+ /* @__PURE__ */ jsx2("div", { children: conditions.map(({ message, passes }) => {
2272
+ const conditionPasses = passes({
2273
+ currentPassword,
2274
+ newPassword,
2275
+ confirmNewPassword,
2276
+ currentPasswordTouched: currentPassword || touched.currentPassword === true,
2277
+ newPasswordTouched: newPassword || touched.newPassword === true,
2278
+ confirmNewPasswordTouched: confirmNewPassword || touched.confirmNewPassword === true,
2279
+ submitted
2280
+ });
2281
+ return /* @__PURE__ */ jsxs("div", { className: "passwordElement pt-3", children: [
2282
+ conditionPasses === true ? /* @__PURE__ */ jsx2(Icon, { "data-testid": `ok-circle-${message}`, name: "ok-circle", className: "complies" }) : conditionPasses === false ? /* @__PURE__ */ jsx2(Icon, { "data-testid": `cancel-circle-${message}`, name: "cancel-circle", className: "text-danger" }) : /* @__PURE__ */ jsx2(Icon, { "data-testid": `circle-empty-${message}`, name: "circle-empty" }),
2283
+ message
2284
+ ] }, message);
2285
+ }) })
2286
+ ] });
2287
+ };
2288
+ var ChangePasswordFeedback_default = ChangePasswordFeedback;
2289
+
2290
+ // src/ChangePasswordForm.jsx
2291
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
2292
+ var ChangePasswordForm = ({
2293
+ onErrorToggle,
2294
+ onSuccessToggle,
2295
+ onHandleSubmit,
2296
+ onError,
2297
+ additionalButtons,
2298
+ additionalFields,
2299
+ initialValues,
2300
+ header,
2301
+ maxLength = 30,
2302
+ currentPasswordProps,
2303
+ showCurrentPassword = true,
2304
+ newPasswordProps,
2305
+ confirmNewPasswordProps
2306
+ }) => {
2307
+ const {
2308
+ loading,
2309
+ setLoading,
2310
+ error,
2311
+ setError,
2312
+ success,
2313
+ setSuccess,
2314
+ resource,
2315
+ schema,
2316
+ currentPasswordIconRef,
2317
+ newPasswordIconRef,
2318
+ confirmNewPasswordIconRef,
2319
+ currentPasswordVisible,
2320
+ setCurrentPasswordVisible,
2321
+ newPasswordVisible,
2322
+ setNewPasswordVisible,
2323
+ confirmNewPasswordVisible,
2324
+ setConfirmNewPasswordVisible,
2325
+ setSubmitted
2326
+ } = useChangePasswordContext();
2327
+ const handleSubmit = async ({ ...formFields }) => {
2328
+ setLoading(true);
2329
+ setSubmitted(true);
2330
+ try {
2331
+ const result = await resource.changePassword({ ...formFields });
2332
+ setSuccess("Your password was successfully changed");
2333
+ if (onHandleSubmit) {
2334
+ await onHandleSubmit({ result, setSuccess, setError });
2335
+ }
2336
+ setLoading(false);
2337
+ } catch (error2) {
2338
+ setError("An error occurred changing your password");
2339
+ if (onError) {
2340
+ await onError({ error: error2, setSuccess, setError });
2341
+ }
2342
+ setLoading(false);
2343
+ }
2344
+ };
2345
+ const _onErrorToggle = onErrorToggle && typeof onErrorToggle === "function" ? () => onErrorToggle({ setLoading, setError, setSuccess, setSubmitted }) : () => setError(null);
2346
+ const _onSuccessToggle = onSuccessToggle && typeof onSuccessToggle === "function" ? () => onSuccessToggle({ setLoading, setError, setSuccess, setSubmitted }) : () => setSuccess(null);
2347
+ return /* @__PURE__ */ jsx3(BlockUI, { blocking: loading, children: /* @__PURE__ */ jsxs2(
2348
+ Form2,
2349
+ {
2350
+ initialValues: { currentPassword: "", newPassword: "", confirmNewPassword: "", ...initialValues },
2351
+ validationSchema: schema,
2352
+ onSubmit: handleSubmit,
2353
+ children: [
2354
+ /* @__PURE__ */ jsxs2(CardBody, { children: [
2355
+ header,
2356
+ /* @__PURE__ */ jsxs2(Row, { children: [
2357
+ /* @__PURE__ */ jsxs2(Col, { children: [
2358
+ /* @__PURE__ */ jsx3(Alert, { isOpen: !!error, color: "danger", toggle: _onErrorToggle, children: error }),
2359
+ /* @__PURE__ */ jsx3(Alert, { isOpen: !!success, color: "success", toggle: _onSuccessToggle, children: success }),
2360
+ showCurrentPassword ? /* @__PURE__ */ jsxs2("div", { className: "password-with-icon", children: [
2361
+ /* @__PURE__ */ jsx3(
2362
+ Field,
2363
+ {
2364
+ name: "currentPassword",
2365
+ "data-testid": "current-password-input",
2366
+ label: "Current Password",
2367
+ maxLength,
2368
+ placeholder: "Input your current password",
2369
+ type: currentPasswordVisible ? "text" : "password",
2370
+ ...currentPasswordProps
2371
+ }
2372
+ ),
2373
+ /* @__PURE__ */ jsx3(
2374
+ Icon2,
2375
+ {
2376
+ name: `eye${currentPasswordVisible ? "" : "-off"}`,
2377
+ "data-testid": "current-password-icon",
2378
+ id: "current-password-eye",
2379
+ role: "button",
2380
+ label: "password-visibility",
2381
+ onMouseDown: (e) => {
2382
+ currentPasswordIconRef?.current?.focus();
2383
+ e.preventDefault();
2384
+ setCurrentPasswordVisible(!currentPasswordVisible);
2385
+ },
2386
+ onKeyDown: (e) => {
2387
+ if (e.keyCode === 13 || e.keyCode === 32) {
2388
+ setCurrentPasswordVisible(!currentPasswordVisible);
2389
+ }
2390
+ },
2391
+ tabIndex: 0,
2392
+ "aria-label": currentPasswordVisible ? "Hide Password" : "Show Password",
2393
+ ref: currentPasswordIconRef
2394
+ }
2395
+ )
2396
+ ] }) : null,
2397
+ /* @__PURE__ */ jsxs2("div", { className: "password-with-icon", children: [
2398
+ /* @__PURE__ */ jsx3(
2399
+ Field,
2400
+ {
2401
+ name: "newPassword",
2402
+ "data-testid": "new-password-input",
2403
+ label: "New Password",
2404
+ maxLength,
2405
+ placeholder: "Input your new password",
2406
+ className: "password-input",
2407
+ type: newPasswordVisible ? "text" : "password",
2408
+ ...newPasswordProps
2409
+ }
2410
+ ),
2411
+ /* @__PURE__ */ jsx3(
2412
+ Icon2,
2413
+ {
2414
+ name: `eye${newPasswordVisible ? "" : "-off"}`,
2415
+ "data-testid": "new-password-icon",
2416
+ id: "new-password-eye",
2417
+ role: "button",
2418
+ label: "password-visibility",
2419
+ onMouseDown: (e) => {
2420
+ newPasswordIconRef?.current?.focus();
2421
+ e.preventDefault();
2422
+ setNewPasswordVisible(!newPasswordVisible);
2423
+ },
2424
+ onKeyDown: (e) => {
2425
+ if (e.keyCode === 13 || e.keyCode === 32) {
2426
+ setNewPasswordVisible(!newPasswordVisible);
2427
+ }
2428
+ },
2429
+ tabIndex: 0,
2430
+ "aria-label": newPasswordVisible ? "Hide Password" : "Show Password",
2431
+ ref: newPasswordIconRef
2432
+ }
2433
+ )
2434
+ ] }),
2435
+ /* @__PURE__ */ jsxs2("div", { className: "password-with-icon", children: [
2436
+ /* @__PURE__ */ jsx3(
2437
+ Field,
2438
+ {
2439
+ name: "confirmNewPassword",
2440
+ "data-testid": "confirm-new-password-input",
2441
+ label: "Confirm New Password",
2442
+ maxLength,
2443
+ placeholder: "Confirm your new password",
2444
+ className: "password-input",
2445
+ type: confirmNewPasswordVisible ? "text" : "password",
2446
+ ...confirmNewPasswordProps
2447
+ }
2448
+ ),
2449
+ /* @__PURE__ */ jsx3(
2450
+ Icon2,
2451
+ {
2452
+ name: `eye${confirmNewPasswordVisible ? "" : "-off"}`,
2453
+ "data-testid": "confirm-new-password-icon",
2454
+ id: "confirm-new-password-eye",
2455
+ role: "button",
2456
+ label: "password-visibility",
2457
+ onMouseDown: (e) => {
2458
+ confirmNewPasswordIconRef?.current?.focus();
2459
+ e.preventDefault();
2460
+ setConfirmNewPasswordVisible(!confirmNewPasswordVisible);
2461
+ },
2462
+ onKeyDown: (e) => {
2463
+ if (e.keyCode === 13 || e.keyCode === 32) {
2464
+ setConfirmNewPasswordVisible(!confirmNewPasswordVisible);
2465
+ }
2466
+ },
2467
+ tabIndex: 0,
2468
+ "aria-label": confirmNewPasswordVisible ? "Hide Password" : "Show Password",
2469
+ ref: confirmNewPasswordIconRef
2470
+ }
2471
+ )
2472
+ ] }),
2473
+ additionalFields
2474
+ ] }),
2475
+ /* @__PURE__ */ jsx3(Col, { children: /* @__PURE__ */ jsx3(ChangePasswordFeedback_default, {}) })
2476
+ ] })
2477
+ ] }),
2478
+ /* @__PURE__ */ jsx3(CardFooter, { children: /* @__PURE__ */ jsxs2("div", { className: "text-left", children: [
2479
+ /* @__PURE__ */ jsx3(Button, { className: "mx-3", color: "primary", type: "submit", "data-testid": "submit-btn", children: "Submit" }),
2480
+ additionalButtons
2481
+ ] }) })
2482
+ ]
2483
+ }
2484
+ ) });
2485
+ };
2486
+ ChangePasswordForm.propTypes = {
2487
+ onErrorToggle: PropTypes2.func,
2488
+ onSuccessToggle: PropTypes2.func,
2489
+ onHandleSubmit: PropTypes2.func,
2490
+ onError: PropTypes2.func,
2491
+ additionalButtons: PropTypes2.node,
2492
+ additionalFields: PropTypes2.node,
2493
+ header: PropTypes2.node,
2494
+ maxLength: PropTypes2.number,
2495
+ currentPasswordProps: PropTypes2.object,
2496
+ showCurrentPassword: PropTypes2.bool,
2497
+ newPasswordProps: PropTypes2.object,
2498
+ confirmNewPasswordProps: PropTypes2.object,
2499
+ initialValues: PropTypes2.object
2500
+ };
2501
+ var ChangePasswordForm_default = ChangePasswordForm;
2502
+ export {
2503
+ ChangePasswordContext,
2504
+ ChangePasswordForm_default as ChangePasswordForm,
2505
+ ChangePassword_default as default,
2506
+ useChangePasswordContext
2507
+ };
2508
+ /*! Bundled license information:
2509
+
2510
+ react-is/cjs/react-is.production.min.js:
2511
+ (** @license React v16.13.1
2512
+ * react-is.production.min.js
2513
+ *
2514
+ * Copyright (c) Facebook, Inc. and its affiliates.
2515
+ *
2516
+ * This source code is licensed under the MIT license found in the
2517
+ * LICENSE file in the root directory of this source tree.
2518
+ *)
2519
+
2520
+ react-is/cjs/react-is.development.js:
2521
+ (** @license React v16.13.1
2522
+ * react-is.development.js
2523
+ *
2524
+ * Copyright (c) Facebook, Inc. and its affiliates.
2525
+ *
2526
+ * This source code is licensed under the MIT license found in the
2527
+ * LICENSE file in the root directory of this source tree.
2528
+ *)
2529
+ */