@rubenpazch/identification-input 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1678 @@
1
+ import * as require$$0__default from 'react';
2
+ import require$$0__default__default, { useState, useRef, useMemo, useEffect } from 'react';
3
+
4
+ var jsxRuntime$2 = {exports: {}};
5
+
6
+ var reactJsxRuntime_production$2 = {};
7
+
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.js
11
+ *
12
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+
18
+ var hasRequiredReactJsxRuntime_production$2;
19
+
20
+ function requireReactJsxRuntime_production$2 () {
21
+ if (hasRequiredReactJsxRuntime_production$2) return reactJsxRuntime_production$2;
22
+ hasRequiredReactJsxRuntime_production$2 = 1;
23
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
24
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
25
+ function jsxProd(type, config, maybeKey) {
26
+ var key = null;
27
+ void 0 !== maybeKey && (key = "" + maybeKey);
28
+ void 0 !== config.key && (key = "" + config.key);
29
+ if ("key" in config) {
30
+ maybeKey = {};
31
+ for (var propName in config)
32
+ "key" !== propName && (maybeKey[propName] = config[propName]);
33
+ } else maybeKey = config;
34
+ config = maybeKey.ref;
35
+ return {
36
+ $$typeof: REACT_ELEMENT_TYPE,
37
+ type: type,
38
+ key: key,
39
+ ref: void 0 !== config ? config : null,
40
+ props: maybeKey
41
+ };
42
+ }
43
+ reactJsxRuntime_production$2.Fragment = REACT_FRAGMENT_TYPE;
44
+ reactJsxRuntime_production$2.jsx = jsxProd;
45
+ reactJsxRuntime_production$2.jsxs = jsxProd;
46
+ return reactJsxRuntime_production$2;
47
+ }
48
+
49
+ var reactJsxRuntime_development$2 = {};
50
+
51
+ /**
52
+ * @license React
53
+ * react-jsx-runtime.development.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */
60
+
61
+ var hasRequiredReactJsxRuntime_development$2;
62
+
63
+ function requireReactJsxRuntime_development$2 () {
64
+ if (hasRequiredReactJsxRuntime_development$2) return reactJsxRuntime_development$2;
65
+ hasRequiredReactJsxRuntime_development$2 = 1;
66
+ "production" !== process.env.NODE_ENV &&
67
+ (function () {
68
+ function getComponentNameFromType(type) {
69
+ if (null == type) return null;
70
+ if ("function" === typeof type)
71
+ return type.$$typeof === REACT_CLIENT_REFERENCE
72
+ ? null
73
+ : type.displayName || type.name || null;
74
+ if ("string" === typeof type) return type;
75
+ switch (type) {
76
+ case REACT_FRAGMENT_TYPE:
77
+ return "Fragment";
78
+ case REACT_PROFILER_TYPE:
79
+ return "Profiler";
80
+ case REACT_STRICT_MODE_TYPE:
81
+ return "StrictMode";
82
+ case REACT_SUSPENSE_TYPE:
83
+ return "Suspense";
84
+ case REACT_SUSPENSE_LIST_TYPE:
85
+ return "SuspenseList";
86
+ case REACT_ACTIVITY_TYPE:
87
+ return "Activity";
88
+ }
89
+ if ("object" === typeof type)
90
+ switch (
91
+ ("number" === typeof type.tag &&
92
+ console.error(
93
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
94
+ ),
95
+ type.$$typeof)
96
+ ) {
97
+ case REACT_PORTAL_TYPE:
98
+ return "Portal";
99
+ case REACT_CONTEXT_TYPE:
100
+ return type.displayName || "Context";
101
+ case REACT_CONSUMER_TYPE:
102
+ return (type._context.displayName || "Context") + ".Consumer";
103
+ case REACT_FORWARD_REF_TYPE:
104
+ var innerType = type.render;
105
+ type = type.displayName;
106
+ type ||
107
+ ((type = innerType.displayName || innerType.name || ""),
108
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
109
+ return type;
110
+ case REACT_MEMO_TYPE:
111
+ return (
112
+ (innerType = type.displayName || null),
113
+ null !== innerType
114
+ ? innerType
115
+ : getComponentNameFromType(type.type) || "Memo"
116
+ );
117
+ case REACT_LAZY_TYPE:
118
+ innerType = type._payload;
119
+ type = type._init;
120
+ try {
121
+ return getComponentNameFromType(type(innerType));
122
+ } catch (x) {}
123
+ }
124
+ return null;
125
+ }
126
+ function testStringCoercion(value) {
127
+ return "" + value;
128
+ }
129
+ function checkKeyStringCoercion(value) {
130
+ try {
131
+ testStringCoercion(value);
132
+ var JSCompiler_inline_result = !1;
133
+ } catch (e) {
134
+ JSCompiler_inline_result = true;
135
+ }
136
+ if (JSCompiler_inline_result) {
137
+ JSCompiler_inline_result = console;
138
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
139
+ var JSCompiler_inline_result$jscomp$0 =
140
+ ("function" === typeof Symbol &&
141
+ Symbol.toStringTag &&
142
+ value[Symbol.toStringTag]) ||
143
+ value.constructor.name ||
144
+ "Object";
145
+ JSCompiler_temp_const.call(
146
+ JSCompiler_inline_result,
147
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
148
+ JSCompiler_inline_result$jscomp$0
149
+ );
150
+ return testStringCoercion(value);
151
+ }
152
+ }
153
+ function getTaskName(type) {
154
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
155
+ if (
156
+ "object" === typeof type &&
157
+ null !== type &&
158
+ type.$$typeof === REACT_LAZY_TYPE
159
+ )
160
+ return "<...>";
161
+ try {
162
+ var name = getComponentNameFromType(type);
163
+ return name ? "<" + name + ">" : "<...>";
164
+ } catch (x) {
165
+ return "<...>";
166
+ }
167
+ }
168
+ function getOwner() {
169
+ var dispatcher = ReactSharedInternals.A;
170
+ return null === dispatcher ? null : dispatcher.getOwner();
171
+ }
172
+ function UnknownOwner() {
173
+ return Error("react-stack-top-frame");
174
+ }
175
+ function hasValidKey(config) {
176
+ if (hasOwnProperty.call(config, "key")) {
177
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
178
+ if (getter && getter.isReactWarning) return false;
179
+ }
180
+ return void 0 !== config.key;
181
+ }
182
+ function defineKeyPropWarningGetter(props, displayName) {
183
+ function warnAboutAccessingKey() {
184
+ specialPropKeyWarningShown ||
185
+ ((specialPropKeyWarningShown = true),
186
+ console.error(
187
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
188
+ displayName
189
+ ));
190
+ }
191
+ warnAboutAccessingKey.isReactWarning = true;
192
+ Object.defineProperty(props, "key", {
193
+ get: warnAboutAccessingKey,
194
+ configurable: true
195
+ });
196
+ }
197
+ function elementRefGetterWithDeprecationWarning() {
198
+ var componentName = getComponentNameFromType(this.type);
199
+ didWarnAboutElementRef[componentName] ||
200
+ ((didWarnAboutElementRef[componentName] = true),
201
+ console.error(
202
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
203
+ ));
204
+ componentName = this.props.ref;
205
+ return void 0 !== componentName ? componentName : null;
206
+ }
207
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
208
+ var refProp = props.ref;
209
+ type = {
210
+ $$typeof: REACT_ELEMENT_TYPE,
211
+ type: type,
212
+ key: key,
213
+ props: props,
214
+ _owner: owner
215
+ };
216
+ null !== (void 0 !== refProp ? refProp : null)
217
+ ? Object.defineProperty(type, "ref", {
218
+ enumerable: false,
219
+ get: elementRefGetterWithDeprecationWarning
220
+ })
221
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
222
+ type._store = {};
223
+ Object.defineProperty(type._store, "validated", {
224
+ configurable: false,
225
+ enumerable: false,
226
+ writable: true,
227
+ value: 0
228
+ });
229
+ Object.defineProperty(type, "_debugInfo", {
230
+ configurable: false,
231
+ enumerable: false,
232
+ writable: true,
233
+ value: null
234
+ });
235
+ Object.defineProperty(type, "_debugStack", {
236
+ configurable: false,
237
+ enumerable: false,
238
+ writable: true,
239
+ value: debugStack
240
+ });
241
+ Object.defineProperty(type, "_debugTask", {
242
+ configurable: false,
243
+ enumerable: false,
244
+ writable: true,
245
+ value: debugTask
246
+ });
247
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
248
+ return type;
249
+ }
250
+ function jsxDEVImpl(
251
+ type,
252
+ config,
253
+ maybeKey,
254
+ isStaticChildren,
255
+ debugStack,
256
+ debugTask
257
+ ) {
258
+ var children = config.children;
259
+ if (void 0 !== children)
260
+ if (isStaticChildren)
261
+ if (isArrayImpl(children)) {
262
+ for (
263
+ isStaticChildren = 0;
264
+ isStaticChildren < children.length;
265
+ isStaticChildren++
266
+ )
267
+ validateChildKeys(children[isStaticChildren]);
268
+ Object.freeze && Object.freeze(children);
269
+ } else
270
+ console.error(
271
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
272
+ );
273
+ else validateChildKeys(children);
274
+ if (hasOwnProperty.call(config, "key")) {
275
+ children = getComponentNameFromType(type);
276
+ var keys = Object.keys(config).filter(function (k) {
277
+ return "key" !== k;
278
+ });
279
+ isStaticChildren =
280
+ 0 < keys.length
281
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
282
+ : "{key: someKey}";
283
+ didWarnAboutKeySpread[children + isStaticChildren] ||
284
+ ((keys =
285
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
286
+ console.error(
287
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
288
+ isStaticChildren,
289
+ children,
290
+ keys,
291
+ children
292
+ ),
293
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
294
+ }
295
+ children = null;
296
+ void 0 !== maybeKey &&
297
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
298
+ hasValidKey(config) &&
299
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
300
+ if ("key" in config) {
301
+ maybeKey = {};
302
+ for (var propName in config)
303
+ "key" !== propName && (maybeKey[propName] = config[propName]);
304
+ } else maybeKey = config;
305
+ children &&
306
+ defineKeyPropWarningGetter(
307
+ maybeKey,
308
+ "function" === typeof type
309
+ ? type.displayName || type.name || "Unknown"
310
+ : type
311
+ );
312
+ return ReactElement(
313
+ type,
314
+ children,
315
+ maybeKey,
316
+ getOwner(),
317
+ debugStack,
318
+ debugTask
319
+ );
320
+ }
321
+ function validateChildKeys(node) {
322
+ isValidElement(node)
323
+ ? node._store && (node._store.validated = 1)
324
+ : "object" === typeof node &&
325
+ null !== node &&
326
+ node.$$typeof === REACT_LAZY_TYPE &&
327
+ ("fulfilled" === node._payload.status
328
+ ? isValidElement(node._payload.value) &&
329
+ node._payload.value._store &&
330
+ (node._payload.value._store.validated = 1)
331
+ : node._store && (node._store.validated = 1));
332
+ }
333
+ function isValidElement(object) {
334
+ return (
335
+ "object" === typeof object &&
336
+ null !== object &&
337
+ object.$$typeof === REACT_ELEMENT_TYPE
338
+ );
339
+ }
340
+ var React = require$$0__default__default,
341
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
342
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
343
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
344
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
345
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
346
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
347
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
348
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
349
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
350
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
351
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
352
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
353
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
354
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
355
+ ReactSharedInternals =
356
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
357
+ hasOwnProperty = Object.prototype.hasOwnProperty,
358
+ isArrayImpl = Array.isArray,
359
+ createTask = console.createTask
360
+ ? console.createTask
361
+ : function () {
362
+ return null;
363
+ };
364
+ React = {
365
+ react_stack_bottom_frame: function (callStackForError) {
366
+ return callStackForError();
367
+ }
368
+ };
369
+ var specialPropKeyWarningShown;
370
+ var didWarnAboutElementRef = {};
371
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
372
+ React,
373
+ UnknownOwner
374
+ )();
375
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
376
+ var didWarnAboutKeySpread = {};
377
+ reactJsxRuntime_development$2.Fragment = REACT_FRAGMENT_TYPE;
378
+ reactJsxRuntime_development$2.jsx = function (type, config, maybeKey) {
379
+ var trackActualOwner =
380
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
381
+ return jsxDEVImpl(
382
+ type,
383
+ config,
384
+ maybeKey,
385
+ false,
386
+ trackActualOwner
387
+ ? Error("react-stack-top-frame")
388
+ : unknownOwnerDebugStack,
389
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
390
+ );
391
+ };
392
+ reactJsxRuntime_development$2.jsxs = function (type, config, maybeKey) {
393
+ var trackActualOwner =
394
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
395
+ return jsxDEVImpl(
396
+ type,
397
+ config,
398
+ maybeKey,
399
+ true,
400
+ trackActualOwner
401
+ ? Error("react-stack-top-frame")
402
+ : unknownOwnerDebugStack,
403
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
404
+ );
405
+ };
406
+ })();
407
+ return reactJsxRuntime_development$2;
408
+ }
409
+
410
+ var hasRequiredJsxRuntime$2;
411
+
412
+ function requireJsxRuntime$2 () {
413
+ if (hasRequiredJsxRuntime$2) return jsxRuntime$2.exports;
414
+ hasRequiredJsxRuntime$2 = 1;
415
+
416
+ if (process.env.NODE_ENV === 'production') {
417
+ jsxRuntime$2.exports = requireReactJsxRuntime_production$2();
418
+ } else {
419
+ jsxRuntime$2.exports = requireReactJsxRuntime_development$2();
420
+ }
421
+ return jsxRuntime$2.exports;
422
+ }
423
+
424
+ var jsxRuntimeExports$2 = requireJsxRuntime$2();
425
+
426
+ var jsxRuntime$1 = {exports: {}};
427
+
428
+ var reactJsxRuntime_production$1 = {};
429
+
430
+ /**
431
+ * @license React
432
+ * react-jsx-runtime.production.js
433
+ *
434
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
435
+ *
436
+ * This source code is licensed under the MIT license found in the
437
+ * LICENSE file in the root directory of this source tree.
438
+ */
439
+
440
+ var hasRequiredReactJsxRuntime_production$1;
441
+
442
+ function requireReactJsxRuntime_production$1 () {
443
+ if (hasRequiredReactJsxRuntime_production$1) return reactJsxRuntime_production$1;
444
+ hasRequiredReactJsxRuntime_production$1 = 1;
445
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
446
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
447
+ function jsxProd(type, config, maybeKey) {
448
+ var key = null;
449
+ void 0 !== maybeKey && (key = "" + maybeKey);
450
+ void 0 !== config.key && (key = "" + config.key);
451
+ if ("key" in config) {
452
+ maybeKey = {};
453
+ for (var propName in config)
454
+ "key" !== propName && (maybeKey[propName] = config[propName]);
455
+ } else maybeKey = config;
456
+ config = maybeKey.ref;
457
+ return {
458
+ $$typeof: REACT_ELEMENT_TYPE,
459
+ type: type,
460
+ key: key,
461
+ ref: void 0 !== config ? config : null,
462
+ props: maybeKey
463
+ };
464
+ }
465
+ reactJsxRuntime_production$1.Fragment = REACT_FRAGMENT_TYPE;
466
+ reactJsxRuntime_production$1.jsx = jsxProd;
467
+ reactJsxRuntime_production$1.jsxs = jsxProd;
468
+ return reactJsxRuntime_production$1;
469
+ }
470
+
471
+ var reactJsxRuntime_development$1 = {};
472
+
473
+ /**
474
+ * @license React
475
+ * react-jsx-runtime.development.js
476
+ *
477
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
478
+ *
479
+ * This source code is licensed under the MIT license found in the
480
+ * LICENSE file in the root directory of this source tree.
481
+ */
482
+
483
+ var hasRequiredReactJsxRuntime_development$1;
484
+
485
+ function requireReactJsxRuntime_development$1 () {
486
+ if (hasRequiredReactJsxRuntime_development$1) return reactJsxRuntime_development$1;
487
+ hasRequiredReactJsxRuntime_development$1 = 1;
488
+ "production" !== process.env.NODE_ENV &&
489
+ (function () {
490
+ function getComponentNameFromType(type) {
491
+ if (null == type) return null;
492
+ if ("function" === typeof type)
493
+ return type.$$typeof === REACT_CLIENT_REFERENCE
494
+ ? null
495
+ : type.displayName || type.name || null;
496
+ if ("string" === typeof type) return type;
497
+ switch (type) {
498
+ case REACT_FRAGMENT_TYPE:
499
+ return "Fragment";
500
+ case REACT_PROFILER_TYPE:
501
+ return "Profiler";
502
+ case REACT_STRICT_MODE_TYPE:
503
+ return "StrictMode";
504
+ case REACT_SUSPENSE_TYPE:
505
+ return "Suspense";
506
+ case REACT_SUSPENSE_LIST_TYPE:
507
+ return "SuspenseList";
508
+ case REACT_ACTIVITY_TYPE:
509
+ return "Activity";
510
+ }
511
+ if ("object" === typeof type)
512
+ switch (
513
+ ("number" === typeof type.tag &&
514
+ console.error(
515
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
516
+ ),
517
+ type.$$typeof)
518
+ ) {
519
+ case REACT_PORTAL_TYPE:
520
+ return "Portal";
521
+ case REACT_CONTEXT_TYPE:
522
+ return type.displayName || "Context";
523
+ case REACT_CONSUMER_TYPE:
524
+ return (type._context.displayName || "Context") + ".Consumer";
525
+ case REACT_FORWARD_REF_TYPE:
526
+ var innerType = type.render;
527
+ type = type.displayName;
528
+ type ||
529
+ ((type = innerType.displayName || innerType.name || ""),
530
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
531
+ return type;
532
+ case REACT_MEMO_TYPE:
533
+ return (
534
+ (innerType = type.displayName || null),
535
+ null !== innerType
536
+ ? innerType
537
+ : getComponentNameFromType(type.type) || "Memo"
538
+ );
539
+ case REACT_LAZY_TYPE:
540
+ innerType = type._payload;
541
+ type = type._init;
542
+ try {
543
+ return getComponentNameFromType(type(innerType));
544
+ } catch (x) {}
545
+ }
546
+ return null;
547
+ }
548
+ function testStringCoercion(value) {
549
+ return "" + value;
550
+ }
551
+ function checkKeyStringCoercion(value) {
552
+ try {
553
+ testStringCoercion(value);
554
+ var JSCompiler_inline_result = !1;
555
+ } catch (e) {
556
+ JSCompiler_inline_result = true;
557
+ }
558
+ if (JSCompiler_inline_result) {
559
+ JSCompiler_inline_result = console;
560
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
561
+ var JSCompiler_inline_result$jscomp$0 =
562
+ ("function" === typeof Symbol &&
563
+ Symbol.toStringTag &&
564
+ value[Symbol.toStringTag]) ||
565
+ value.constructor.name ||
566
+ "Object";
567
+ JSCompiler_temp_const.call(
568
+ JSCompiler_inline_result,
569
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
570
+ JSCompiler_inline_result$jscomp$0
571
+ );
572
+ return testStringCoercion(value);
573
+ }
574
+ }
575
+ function getTaskName(type) {
576
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
577
+ if (
578
+ "object" === typeof type &&
579
+ null !== type &&
580
+ type.$$typeof === REACT_LAZY_TYPE
581
+ )
582
+ return "<...>";
583
+ try {
584
+ var name = getComponentNameFromType(type);
585
+ return name ? "<" + name + ">" : "<...>";
586
+ } catch (x) {
587
+ return "<...>";
588
+ }
589
+ }
590
+ function getOwner() {
591
+ var dispatcher = ReactSharedInternals.A;
592
+ return null === dispatcher ? null : dispatcher.getOwner();
593
+ }
594
+ function UnknownOwner() {
595
+ return Error("react-stack-top-frame");
596
+ }
597
+ function hasValidKey(config) {
598
+ if (hasOwnProperty.call(config, "key")) {
599
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
600
+ if (getter && getter.isReactWarning) return false;
601
+ }
602
+ return void 0 !== config.key;
603
+ }
604
+ function defineKeyPropWarningGetter(props, displayName) {
605
+ function warnAboutAccessingKey() {
606
+ specialPropKeyWarningShown ||
607
+ ((specialPropKeyWarningShown = true),
608
+ console.error(
609
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
610
+ displayName
611
+ ));
612
+ }
613
+ warnAboutAccessingKey.isReactWarning = true;
614
+ Object.defineProperty(props, "key", {
615
+ get: warnAboutAccessingKey,
616
+ configurable: true
617
+ });
618
+ }
619
+ function elementRefGetterWithDeprecationWarning() {
620
+ var componentName = getComponentNameFromType(this.type);
621
+ didWarnAboutElementRef[componentName] ||
622
+ ((didWarnAboutElementRef[componentName] = true),
623
+ console.error(
624
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
625
+ ));
626
+ componentName = this.props.ref;
627
+ return void 0 !== componentName ? componentName : null;
628
+ }
629
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
630
+ var refProp = props.ref;
631
+ type = {
632
+ $$typeof: REACT_ELEMENT_TYPE,
633
+ type: type,
634
+ key: key,
635
+ props: props,
636
+ _owner: owner
637
+ };
638
+ null !== (void 0 !== refProp ? refProp : null)
639
+ ? Object.defineProperty(type, "ref", {
640
+ enumerable: false,
641
+ get: elementRefGetterWithDeprecationWarning
642
+ })
643
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
644
+ type._store = {};
645
+ Object.defineProperty(type._store, "validated", {
646
+ configurable: false,
647
+ enumerable: false,
648
+ writable: true,
649
+ value: 0
650
+ });
651
+ Object.defineProperty(type, "_debugInfo", {
652
+ configurable: false,
653
+ enumerable: false,
654
+ writable: true,
655
+ value: null
656
+ });
657
+ Object.defineProperty(type, "_debugStack", {
658
+ configurable: false,
659
+ enumerable: false,
660
+ writable: true,
661
+ value: debugStack
662
+ });
663
+ Object.defineProperty(type, "_debugTask", {
664
+ configurable: false,
665
+ enumerable: false,
666
+ writable: true,
667
+ value: debugTask
668
+ });
669
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
670
+ return type;
671
+ }
672
+ function jsxDEVImpl(
673
+ type,
674
+ config,
675
+ maybeKey,
676
+ isStaticChildren,
677
+ debugStack,
678
+ debugTask
679
+ ) {
680
+ var children = config.children;
681
+ if (void 0 !== children)
682
+ if (isStaticChildren)
683
+ if (isArrayImpl(children)) {
684
+ for (
685
+ isStaticChildren = 0;
686
+ isStaticChildren < children.length;
687
+ isStaticChildren++
688
+ )
689
+ validateChildKeys(children[isStaticChildren]);
690
+ Object.freeze && Object.freeze(children);
691
+ } else
692
+ console.error(
693
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
694
+ );
695
+ else validateChildKeys(children);
696
+ if (hasOwnProperty.call(config, "key")) {
697
+ children = getComponentNameFromType(type);
698
+ var keys = Object.keys(config).filter(function (k) {
699
+ return "key" !== k;
700
+ });
701
+ isStaticChildren =
702
+ 0 < keys.length
703
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
704
+ : "{key: someKey}";
705
+ didWarnAboutKeySpread[children + isStaticChildren] ||
706
+ ((keys =
707
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
708
+ console.error(
709
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
710
+ isStaticChildren,
711
+ children,
712
+ keys,
713
+ children
714
+ ),
715
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
716
+ }
717
+ children = null;
718
+ void 0 !== maybeKey &&
719
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
720
+ hasValidKey(config) &&
721
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
722
+ if ("key" in config) {
723
+ maybeKey = {};
724
+ for (var propName in config)
725
+ "key" !== propName && (maybeKey[propName] = config[propName]);
726
+ } else maybeKey = config;
727
+ children &&
728
+ defineKeyPropWarningGetter(
729
+ maybeKey,
730
+ "function" === typeof type
731
+ ? type.displayName || type.name || "Unknown"
732
+ : type
733
+ );
734
+ return ReactElement(
735
+ type,
736
+ children,
737
+ maybeKey,
738
+ getOwner(),
739
+ debugStack,
740
+ debugTask
741
+ );
742
+ }
743
+ function validateChildKeys(node) {
744
+ isValidElement(node)
745
+ ? node._store && (node._store.validated = 1)
746
+ : "object" === typeof node &&
747
+ null !== node &&
748
+ node.$$typeof === REACT_LAZY_TYPE &&
749
+ ("fulfilled" === node._payload.status
750
+ ? isValidElement(node._payload.value) &&
751
+ node._payload.value._store &&
752
+ (node._payload.value._store.validated = 1)
753
+ : node._store && (node._store.validated = 1));
754
+ }
755
+ function isValidElement(object) {
756
+ return (
757
+ "object" === typeof object &&
758
+ null !== object &&
759
+ object.$$typeof === REACT_ELEMENT_TYPE
760
+ );
761
+ }
762
+ var React = require$$0__default__default,
763
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
764
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
765
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
766
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
767
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
768
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
769
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
770
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
771
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
772
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
773
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
774
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
775
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
776
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
777
+ ReactSharedInternals =
778
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
779
+ hasOwnProperty = Object.prototype.hasOwnProperty,
780
+ isArrayImpl = Array.isArray,
781
+ createTask = console.createTask
782
+ ? console.createTask
783
+ : function () {
784
+ return null;
785
+ };
786
+ React = {
787
+ react_stack_bottom_frame: function (callStackForError) {
788
+ return callStackForError();
789
+ }
790
+ };
791
+ var specialPropKeyWarningShown;
792
+ var didWarnAboutElementRef = {};
793
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
794
+ React,
795
+ UnknownOwner
796
+ )();
797
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
798
+ var didWarnAboutKeySpread = {};
799
+ reactJsxRuntime_development$1.Fragment = REACT_FRAGMENT_TYPE;
800
+ reactJsxRuntime_development$1.jsx = function (type, config, maybeKey) {
801
+ var trackActualOwner =
802
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
803
+ return jsxDEVImpl(
804
+ type,
805
+ config,
806
+ maybeKey,
807
+ false,
808
+ trackActualOwner
809
+ ? Error("react-stack-top-frame")
810
+ : unknownOwnerDebugStack,
811
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
812
+ );
813
+ };
814
+ reactJsxRuntime_development$1.jsxs = function (type, config, maybeKey) {
815
+ var trackActualOwner =
816
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
817
+ return jsxDEVImpl(
818
+ type,
819
+ config,
820
+ maybeKey,
821
+ true,
822
+ trackActualOwner
823
+ ? Error("react-stack-top-frame")
824
+ : unknownOwnerDebugStack,
825
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
826
+ );
827
+ };
828
+ })();
829
+ return reactJsxRuntime_development$1;
830
+ }
831
+
832
+ var hasRequiredJsxRuntime$1;
833
+
834
+ function requireJsxRuntime$1 () {
835
+ if (hasRequiredJsxRuntime$1) return jsxRuntime$1.exports;
836
+ hasRequiredJsxRuntime$1 = 1;
837
+
838
+ if (process.env.NODE_ENV === 'production') {
839
+ jsxRuntime$1.exports = requireReactJsxRuntime_production$1();
840
+ } else {
841
+ jsxRuntime$1.exports = requireReactJsxRuntime_development$1();
842
+ }
843
+ return jsxRuntime$1.exports;
844
+ }
845
+
846
+ var jsxRuntimeExports$1 = requireJsxRuntime$1();
847
+
848
+ var r,o$1={exports:{}},t={};var l$1,n,a$1={};
849
+ /**
850
+ * @license React
851
+ * react-jsx-runtime.development.js
852
+ *
853
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
854
+ *
855
+ * This source code is licensed under the MIT license found in the
856
+ * LICENSE file in the root directory of this source tree.
857
+ */function i$1(){return l$1||(l$1=1,"production"!==process.env.NODE_ENV&&function(){function e(s){if(null==s)return null;if("function"==typeof s)return s.$$typeof===M?null:s.displayName||s.name||null;if("string"==typeof s)return s;switch(s){case x:return "Fragment";case p:return "Profiler";case v:return "StrictMode";case f:return "Suspense";case C:return "SuspenseList";case N:return "Activity"}if("object"==typeof s)switch("number"==typeof s.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),s.$$typeof){case u:return "Portal";case j:return s.displayName||"Context";case g:return (s._context.displayName||"Context")+".Consumer";case k:var r=s.render;return (s=s.displayName)||(s=""!==(s=r.displayName||r.name||"")?"ForwardRef("+s+")":"ForwardRef"),s;case L:return null!==(r=s.displayName||null)?r:e(s.type)||"Memo";case y:r=s._payload,s=s._init;try{return e(s(r))}catch(e){}}return null}function r(e){return ""+e}function o(e){try{r(e);var s=!1;}catch(e){s=true;}if(s){var o=(s=console).error,t="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),r(e)}}function t(s){if(s===x)return "<>";if("object"==typeof s&&null!==s&&s.$$typeof===y)return "<...>";try{var r=e(s);return r?"<"+r+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function n(){var s=e(this.type);return B[s]||(B[s]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(s=this.props.ref)?s:null}function i(s,r,t,l,a,i){var h,m=r.children;if(void 0!==m)if(l)if(z(m)){for(l=0;l<m.length;l++)c(m[l]);Object.freeze&&Object.freeze(m);}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else c(m);if(b.call(r,"key")){m=e(s);var u=Object.keys(r).filter(function(e){return "key"!==e});l=0<u.length?"{key: someKey, "+u.join(": ..., ")+": ...}":"{key: someKey}",W[m+l]||(u=0<u.length?"{"+u.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',l,m,u,m),W[m+l]=true);}if(m=null,void 0!==t&&(o(t),m=""+t),function(e){if(b.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return false}return void 0!==e.key}(r)&&(o(r.key),m=""+r.key),"key"in r)for(var x in t={},r)"key"!==x&&(t[x]=r[x]);else t=r;return m&&function(e,s){function r(){d||(d=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",s));}r.isReactWarning=true,Object.defineProperty(e,"key",{get:r,configurable:true});}(t,"function"==typeof s?s.displayName||s.name||"Unknown":s),function(e,s,r,o,t,l){var a=r.ref;return e={$$typeof:w,type:e,key:s,props:r,_owner:o},null!==(void 0!==a?a:null)?Object.defineProperty(e,"ref",{enumerable:false,get:n}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:t}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(s,m,t,null===(h=$.A)?null:h.getOwner(),a,i)}function c(e){h(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===y&&("fulfilled"===e._payload.status?h(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function h(e){return "object"==typeof e&&null!==e&&e.$$typeof===w}var d,m=require$$0__default__default,w=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),j=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),$=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,b=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null},B={},V=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,l)(),Z=H(t(l)),W={};a$1.Fragment=x,a$1.jsx=function(e,s,r){var o=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,r,false,o?Error("react-stack-top-frame"):V,o?H(t(e)):Z)},a$1.jsxs=function(e,s,r){var o=1e4>$.recentlyCreatedOwnerStacks++;return i(e,s,r,true,o?Error("react-stack-top-frame"):V,o?H(t(e)):Z)};}()),a$1}var c$1=(n||(n=1,"production"===process.env.NODE_ENV?o$1.exports=function(){if(r)return t;r=1;var e=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(s,r,o){var t=null;if(void 0!==o&&(t=""+o),void 0!==r.key&&(t=""+r.key),"key"in r)for(var l in o={},r)"key"!==l&&(o[l]=r[l]);else o=r;return r=o.ref,{$$typeof:e,type:s,key:t,ref:void 0!==r?r:null,props:o}}return t.Fragment=s,t.jsx=o,t.jsxs=o,t}():o$1.exports=i$1()),o$1.exports);function p$1({className:e="",size:s="md"}){const r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`;return c$1.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:r,"aria-label":"Check",children:c$1.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}const y$1=({className:e="",size:s="md",color:r="currentColor",direction:o="down"})=>c$1.jsx("svg",{className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${{up:"rotate-180",down:"",left:"rotate-90",right:"-rotate-90"}[o]} ${e}`,fill:"none",stroke:r,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:c$1.jsx("path",{d:"M6 9l6 6 6-6"})});function B$1({className:e="",size:s="md",color:r="currentColor"}){return c$1.jsx("svg",{className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${e}`,fill:"none",stroke:r,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:c$1.jsx("path",{d:"M6 18L18 6M6 6l12 12"})})}const Xe={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},Ye=require$$0__default.forwardRef(({name:e,variant:s="outlined",size:r="md",fill:o=0,weight:t=400,grade:l=0,opticalSize:n=24,style:a,className:i,...h},d)=>{const m=(e=>"number"==typeof e?e:"sm"===e?16:"md"===e?20:24)(r),w=`"FILL" ${o}, "wght" ${t}, "GRAD" ${l}, "opsz" ${n}`;return c$1.jsx("span",{ref:d,"aria-hidden":"true",className:Xe[s]+(i?` ${i}`:""),style:{fontVariationSettings:w,fontSize:m,lineHeight:1,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",...a},...h,children:e})});Ye.displayName="MaterialIcon";
858
+
859
+ var jsxRuntime = {exports: {}};
860
+
861
+ var reactJsxRuntime_production = {};
862
+
863
+ /**
864
+ * @license React
865
+ * react-jsx-runtime.production.js
866
+ *
867
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
868
+ *
869
+ * This source code is licensed under the MIT license found in the
870
+ * LICENSE file in the root directory of this source tree.
871
+ */
872
+
873
+ var hasRequiredReactJsxRuntime_production;
874
+
875
+ function requireReactJsxRuntime_production () {
876
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
877
+ hasRequiredReactJsxRuntime_production = 1;
878
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
879
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
880
+ function jsxProd(type, config, maybeKey) {
881
+ var key = null;
882
+ void 0 !== maybeKey && (key = "" + maybeKey);
883
+ void 0 !== config.key && (key = "" + config.key);
884
+ if ("key" in config) {
885
+ maybeKey = {};
886
+ for (var propName in config)
887
+ "key" !== propName && (maybeKey[propName] = config[propName]);
888
+ } else maybeKey = config;
889
+ config = maybeKey.ref;
890
+ return {
891
+ $$typeof: REACT_ELEMENT_TYPE,
892
+ type: type,
893
+ key: key,
894
+ ref: void 0 !== config ? config : null,
895
+ props: maybeKey
896
+ };
897
+ }
898
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
899
+ reactJsxRuntime_production.jsx = jsxProd;
900
+ reactJsxRuntime_production.jsxs = jsxProd;
901
+ return reactJsxRuntime_production;
902
+ }
903
+
904
+ var reactJsxRuntime_development = {};
905
+
906
+ /**
907
+ * @license React
908
+ * react-jsx-runtime.development.js
909
+ *
910
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
911
+ *
912
+ * This source code is licensed under the MIT license found in the
913
+ * LICENSE file in the root directory of this source tree.
914
+ */
915
+
916
+ var hasRequiredReactJsxRuntime_development;
917
+
918
+ function requireReactJsxRuntime_development () {
919
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
920
+ hasRequiredReactJsxRuntime_development = 1;
921
+ "production" !== process.env.NODE_ENV &&
922
+ (function () {
923
+ function getComponentNameFromType(type) {
924
+ if (null == type) return null;
925
+ if ("function" === typeof type)
926
+ return type.$$typeof === REACT_CLIENT_REFERENCE
927
+ ? null
928
+ : type.displayName || type.name || null;
929
+ if ("string" === typeof type) return type;
930
+ switch (type) {
931
+ case REACT_FRAGMENT_TYPE:
932
+ return "Fragment";
933
+ case REACT_PROFILER_TYPE:
934
+ return "Profiler";
935
+ case REACT_STRICT_MODE_TYPE:
936
+ return "StrictMode";
937
+ case REACT_SUSPENSE_TYPE:
938
+ return "Suspense";
939
+ case REACT_SUSPENSE_LIST_TYPE:
940
+ return "SuspenseList";
941
+ case REACT_ACTIVITY_TYPE:
942
+ return "Activity";
943
+ }
944
+ if ("object" === typeof type)
945
+ switch (
946
+ ("number" === typeof type.tag &&
947
+ console.error(
948
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
949
+ ),
950
+ type.$$typeof)
951
+ ) {
952
+ case REACT_PORTAL_TYPE:
953
+ return "Portal";
954
+ case REACT_CONTEXT_TYPE:
955
+ return type.displayName || "Context";
956
+ case REACT_CONSUMER_TYPE:
957
+ return (type._context.displayName || "Context") + ".Consumer";
958
+ case REACT_FORWARD_REF_TYPE:
959
+ var innerType = type.render;
960
+ type = type.displayName;
961
+ type ||
962
+ ((type = innerType.displayName || innerType.name || ""),
963
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
964
+ return type;
965
+ case REACT_MEMO_TYPE:
966
+ return (
967
+ (innerType = type.displayName || null),
968
+ null !== innerType
969
+ ? innerType
970
+ : getComponentNameFromType(type.type) || "Memo"
971
+ );
972
+ case REACT_LAZY_TYPE:
973
+ innerType = type._payload;
974
+ type = type._init;
975
+ try {
976
+ return getComponentNameFromType(type(innerType));
977
+ } catch (x) {}
978
+ }
979
+ return null;
980
+ }
981
+ function testStringCoercion(value) {
982
+ return "" + value;
983
+ }
984
+ function checkKeyStringCoercion(value) {
985
+ try {
986
+ testStringCoercion(value);
987
+ var JSCompiler_inline_result = !1;
988
+ } catch (e) {
989
+ JSCompiler_inline_result = true;
990
+ }
991
+ if (JSCompiler_inline_result) {
992
+ JSCompiler_inline_result = console;
993
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
994
+ var JSCompiler_inline_result$jscomp$0 =
995
+ ("function" === typeof Symbol &&
996
+ Symbol.toStringTag &&
997
+ value[Symbol.toStringTag]) ||
998
+ value.constructor.name ||
999
+ "Object";
1000
+ JSCompiler_temp_const.call(
1001
+ JSCompiler_inline_result,
1002
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1003
+ JSCompiler_inline_result$jscomp$0
1004
+ );
1005
+ return testStringCoercion(value);
1006
+ }
1007
+ }
1008
+ function getTaskName(type) {
1009
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
1010
+ if (
1011
+ "object" === typeof type &&
1012
+ null !== type &&
1013
+ type.$$typeof === REACT_LAZY_TYPE
1014
+ )
1015
+ return "<...>";
1016
+ try {
1017
+ var name = getComponentNameFromType(type);
1018
+ return name ? "<" + name + ">" : "<...>";
1019
+ } catch (x) {
1020
+ return "<...>";
1021
+ }
1022
+ }
1023
+ function getOwner() {
1024
+ var dispatcher = ReactSharedInternals.A;
1025
+ return null === dispatcher ? null : dispatcher.getOwner();
1026
+ }
1027
+ function UnknownOwner() {
1028
+ return Error("react-stack-top-frame");
1029
+ }
1030
+ function hasValidKey(config) {
1031
+ if (hasOwnProperty.call(config, "key")) {
1032
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1033
+ if (getter && getter.isReactWarning) return false;
1034
+ }
1035
+ return void 0 !== config.key;
1036
+ }
1037
+ function defineKeyPropWarningGetter(props, displayName) {
1038
+ function warnAboutAccessingKey() {
1039
+ specialPropKeyWarningShown ||
1040
+ ((specialPropKeyWarningShown = true),
1041
+ console.error(
1042
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
1043
+ displayName
1044
+ ));
1045
+ }
1046
+ warnAboutAccessingKey.isReactWarning = true;
1047
+ Object.defineProperty(props, "key", {
1048
+ get: warnAboutAccessingKey,
1049
+ configurable: true
1050
+ });
1051
+ }
1052
+ function elementRefGetterWithDeprecationWarning() {
1053
+ var componentName = getComponentNameFromType(this.type);
1054
+ didWarnAboutElementRef[componentName] ||
1055
+ ((didWarnAboutElementRef[componentName] = true),
1056
+ console.error(
1057
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
1058
+ ));
1059
+ componentName = this.props.ref;
1060
+ return void 0 !== componentName ? componentName : null;
1061
+ }
1062
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
1063
+ var refProp = props.ref;
1064
+ type = {
1065
+ $$typeof: REACT_ELEMENT_TYPE,
1066
+ type: type,
1067
+ key: key,
1068
+ props: props,
1069
+ _owner: owner
1070
+ };
1071
+ null !== (void 0 !== refProp ? refProp : null)
1072
+ ? Object.defineProperty(type, "ref", {
1073
+ enumerable: false,
1074
+ get: elementRefGetterWithDeprecationWarning
1075
+ })
1076
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1077
+ type._store = {};
1078
+ Object.defineProperty(type._store, "validated", {
1079
+ configurable: false,
1080
+ enumerable: false,
1081
+ writable: true,
1082
+ value: 0
1083
+ });
1084
+ Object.defineProperty(type, "_debugInfo", {
1085
+ configurable: false,
1086
+ enumerable: false,
1087
+ writable: true,
1088
+ value: null
1089
+ });
1090
+ Object.defineProperty(type, "_debugStack", {
1091
+ configurable: false,
1092
+ enumerable: false,
1093
+ writable: true,
1094
+ value: debugStack
1095
+ });
1096
+ Object.defineProperty(type, "_debugTask", {
1097
+ configurable: false,
1098
+ enumerable: false,
1099
+ writable: true,
1100
+ value: debugTask
1101
+ });
1102
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1103
+ return type;
1104
+ }
1105
+ function jsxDEVImpl(
1106
+ type,
1107
+ config,
1108
+ maybeKey,
1109
+ isStaticChildren,
1110
+ debugStack,
1111
+ debugTask
1112
+ ) {
1113
+ var children = config.children;
1114
+ if (void 0 !== children)
1115
+ if (isStaticChildren)
1116
+ if (isArrayImpl(children)) {
1117
+ for (
1118
+ isStaticChildren = 0;
1119
+ isStaticChildren < children.length;
1120
+ isStaticChildren++
1121
+ )
1122
+ validateChildKeys(children[isStaticChildren]);
1123
+ Object.freeze && Object.freeze(children);
1124
+ } else
1125
+ console.error(
1126
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1127
+ );
1128
+ else validateChildKeys(children);
1129
+ if (hasOwnProperty.call(config, "key")) {
1130
+ children = getComponentNameFromType(type);
1131
+ var keys = Object.keys(config).filter(function (k) {
1132
+ return "key" !== k;
1133
+ });
1134
+ isStaticChildren =
1135
+ 0 < keys.length
1136
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
1137
+ : "{key: someKey}";
1138
+ didWarnAboutKeySpread[children + isStaticChildren] ||
1139
+ ((keys =
1140
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
1141
+ console.error(
1142
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
1143
+ isStaticChildren,
1144
+ children,
1145
+ keys,
1146
+ children
1147
+ ),
1148
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
1149
+ }
1150
+ children = null;
1151
+ void 0 !== maybeKey &&
1152
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
1153
+ hasValidKey(config) &&
1154
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
1155
+ if ("key" in config) {
1156
+ maybeKey = {};
1157
+ for (var propName in config)
1158
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1159
+ } else maybeKey = config;
1160
+ children &&
1161
+ defineKeyPropWarningGetter(
1162
+ maybeKey,
1163
+ "function" === typeof type
1164
+ ? type.displayName || type.name || "Unknown"
1165
+ : type
1166
+ );
1167
+ return ReactElement(
1168
+ type,
1169
+ children,
1170
+ maybeKey,
1171
+ getOwner(),
1172
+ debugStack,
1173
+ debugTask
1174
+ );
1175
+ }
1176
+ function validateChildKeys(node) {
1177
+ isValidElement(node)
1178
+ ? node._store && (node._store.validated = 1)
1179
+ : "object" === typeof node &&
1180
+ null !== node &&
1181
+ node.$$typeof === REACT_LAZY_TYPE &&
1182
+ ("fulfilled" === node._payload.status
1183
+ ? isValidElement(node._payload.value) &&
1184
+ node._payload.value._store &&
1185
+ (node._payload.value._store.validated = 1)
1186
+ : node._store && (node._store.validated = 1));
1187
+ }
1188
+ function isValidElement(object) {
1189
+ return (
1190
+ "object" === typeof object &&
1191
+ null !== object &&
1192
+ object.$$typeof === REACT_ELEMENT_TYPE
1193
+ );
1194
+ }
1195
+ var React = require$$0__default__default,
1196
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1197
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1198
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1199
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1200
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1201
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1202
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1203
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1204
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1205
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1206
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
1207
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1208
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1209
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1210
+ ReactSharedInternals =
1211
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1212
+ hasOwnProperty = Object.prototype.hasOwnProperty,
1213
+ isArrayImpl = Array.isArray,
1214
+ createTask = console.createTask
1215
+ ? console.createTask
1216
+ : function () {
1217
+ return null;
1218
+ };
1219
+ React = {
1220
+ react_stack_bottom_frame: function (callStackForError) {
1221
+ return callStackForError();
1222
+ }
1223
+ };
1224
+ var specialPropKeyWarningShown;
1225
+ var didWarnAboutElementRef = {};
1226
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
1227
+ React,
1228
+ UnknownOwner
1229
+ )();
1230
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1231
+ var didWarnAboutKeySpread = {};
1232
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1233
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
1234
+ var trackActualOwner =
1235
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1236
+ return jsxDEVImpl(
1237
+ type,
1238
+ config,
1239
+ maybeKey,
1240
+ false,
1241
+ trackActualOwner
1242
+ ? Error("react-stack-top-frame")
1243
+ : unknownOwnerDebugStack,
1244
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1245
+ );
1246
+ };
1247
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
1248
+ var trackActualOwner =
1249
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1250
+ return jsxDEVImpl(
1251
+ type,
1252
+ config,
1253
+ maybeKey,
1254
+ true,
1255
+ trackActualOwner
1256
+ ? Error("react-stack-top-frame")
1257
+ : unknownOwnerDebugStack,
1258
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1259
+ );
1260
+ };
1261
+ })();
1262
+ return reactJsxRuntime_development;
1263
+ }
1264
+
1265
+ var hasRequiredJsxRuntime;
1266
+
1267
+ function requireJsxRuntime () {
1268
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
1269
+ hasRequiredJsxRuntime = 1;
1270
+
1271
+ if (process.env.NODE_ENV === 'production') {
1272
+ jsxRuntime.exports = requireReactJsxRuntime_production();
1273
+ } else {
1274
+ jsxRuntime.exports = requireReactJsxRuntime_development();
1275
+ }
1276
+ return jsxRuntime.exports;
1277
+ }
1278
+
1279
+ var jsxRuntimeExports = requireJsxRuntime();
1280
+
1281
+ function styleInject$1(css, ref) {
1282
+ if ( ref === void 0 ) ref = {};
1283
+ var insertAt = ref.insertAt;
1284
+
1285
+ if (typeof document === 'undefined') { return; }
1286
+
1287
+ var head = document.head || document.getElementsByTagName('head')[0];
1288
+ var style = document.createElement('style');
1289
+ style.type = 'text/css';
1290
+
1291
+ if (insertAt === 'top') {
1292
+ if (head.firstChild) {
1293
+ head.insertBefore(style, head.firstChild);
1294
+ } else {
1295
+ head.appendChild(style);
1296
+ }
1297
+ } else {
1298
+ head.appendChild(style);
1299
+ }
1300
+
1301
+ if (style.styleSheet) {
1302
+ style.styleSheet.cssText = css;
1303
+ } else {
1304
+ style.appendChild(document.createTextNode(css));
1305
+ }
1306
+ }
1307
+
1308
+ var css_248z$1 = "/* Container */\n.LoadingSpinner-module_container__PHl1j {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.LoadingSpinner-module_containerInline__eD4FZ {\n display: inline-flex;\n}\n\n/* Inner wrapper */\n.LoadingSpinner-module_inner__SvATp {\n text-align: center;\n}\n\n.LoadingSpinner-module_innerInline__MPS3Y {\n display: inline-flex;\n}\n\n/* Spinner base */\n.LoadingSpinner-module_spinner__vu6Ri {\n border-radius: 9999px;\n border-width: 2px;\n animation: LoadingSpinner-module_spin__vEieX 1s linear infinite;\n}\n\n/* Sizes */\n.LoadingSpinner-module_sizeSm__tL-IR {\n height: 1rem;\n width: 1rem;\n}\n\n.LoadingSpinner-module_sizeMd__AT592 {\n height: 2rem;\n width: 2rem;\n}\n\n.LoadingSpinner-module_sizeLg__jyX27 {\n height: 3rem;\n width: 3rem;\n}\n\n/* Colors - spinner */\n.LoadingSpinner-module_colorBlue__Jtuu1 {\n border-color: #2563eb;\n}\n\n.LoadingSpinner-module_colorGray__-EMqs {\n border-color: #4b5563;\n}\n\n.LoadingSpinner-module_colorWhite__95Hoo {\n border-color: #ffffff;\n}\n\n/* Spinner transparent borders */\n.LoadingSpinner-module_spinnerTransparent__G3zcb {\n border-top-color: transparent;\n border-right-color: transparent;\n}\n\n/* Spacing */\n.LoadingSpinner-module_spacingDefault__8At6H {\n margin: 0 auto 1rem auto;\n}\n\n/* Dots container */\n.LoadingSpinner-module_dotsContainer__l3FsV {\n display: flex;\n gap: 0.25rem;\n}\n\n.LoadingSpinner-module_dotsContainerInline__Kl4Fz {\n display: flex;\n gap: 0.25rem;\n}\n\n/* Dot sizes */\n.LoadingSpinner-module_dotSizeSm__YuBra {\n height: 0.375rem;\n width: 0.375rem;\n}\n\n.LoadingSpinner-module_dotSizeMd__rXeyS {\n height: 0.625rem;\n width: 0.625rem;\n}\n\n.LoadingSpinner-module_dotSizeLg__M8etz {\n height: 0.875rem;\n width: 0.875rem;\n}\n\n/* Dot colors */\n.LoadingSpinner-module_dotColorBlue__5evmc {\n background-color: #2563eb;\n}\n\n.LoadingSpinner-module_dotColorGray__dr80J {\n background-color: #4b5563;\n}\n\n.LoadingSpinner-module_dotColorWhite__54ur- {\n background-color: #ffffff;\n}\n\n/* Dot */\n.LoadingSpinner-module_dot__tz0lA {\n border-radius: 9999px;\n animation: LoadingSpinner-module_bounce__7Raih 1s ease-in-out infinite;\n}\n\n.LoadingSpinner-module_dotDelay1__-94Os {\n animation-delay: 0ms;\n}\n\n.LoadingSpinner-module_dotDelay2__Oy8E- {\n animation-delay: 150ms;\n}\n\n.LoadingSpinner-module_dotDelay3__7EZYH {\n animation-delay: 300ms;\n}\n\n/* Pulse */\n.LoadingSpinner-module_pulse__gKUHJ {\n border-radius: 9999px;\n animation: LoadingSpinner-module_pulse__gKUHJ 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;\n}\n\n/* Ring */\n.LoadingSpinner-module_ringContainer__4p8NG {\n position: relative;\n}\n\n.LoadingSpinner-module_ringBackground__aF2w1 {\n position: absolute;\n inset: 0;\n border-radius: 9999px;\n border-width: 2px;\n opacity: 0.25;\n}\n\n.LoadingSpinner-module_ringSpinner__b92-S {\n position: absolute;\n inset: 0;\n border-radius: 9999px;\n border-width: 2px;\n border-color: transparent;\n animation: LoadingSpinner-module_spin__vEieX 1s linear infinite;\n}\n\n.LoadingSpinner-module_ringSpinnerBlue__zGTgw {\n border-top-color: #2563eb;\n}\n\n.LoadingSpinner-module_ringSpinnerGray__kHnkJ {\n border-top-color: #4b5563;\n}\n\n.LoadingSpinner-module_ringSpinnerWhite__yu8d0 {\n border-top-color: #ffffff;\n}\n\n.LoadingSpinner-module_ringTransparent__DTSbu {\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n}\n\n/* Message */\n.LoadingSpinner-module_message__FoOvh {\n color: #4b5563;\n font-size: 0.875rem;\n line-height: 1.25rem;\n margin-top: 0.5rem;\n}\n\n/* Animations */\n@keyframes LoadingSpinner-module_spin__vEieX {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes LoadingSpinner-module_bounce__7Raih {\n 0%,\n 100% {\n transform: translateY(0);\n animation-timing-function: cubic-bezier(0, 0, 0.2, 1);\n }\n 50% {\n transform: translateY(-25%);\n animation-timing-function: cubic-bezier(0.8, 0, 1, 1);\n }\n}\n\n@keyframes LoadingSpinner-module_pulse__gKUHJ {\n 0%,\n 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.5;\n }\n}\n";
1309
+ var styles$1 = {"container":"LoadingSpinner-module_container__PHl1j","containerInline":"LoadingSpinner-module_containerInline__eD4FZ","inner":"LoadingSpinner-module_inner__SvATp","innerInline":"LoadingSpinner-module_innerInline__MPS3Y","spinner":"LoadingSpinner-module_spinner__vu6Ri","spin":"LoadingSpinner-module_spin__vEieX","sizeSm":"LoadingSpinner-module_sizeSm__tL-IR","sizeMd":"LoadingSpinner-module_sizeMd__AT592","sizeLg":"LoadingSpinner-module_sizeLg__jyX27","colorBlue":"LoadingSpinner-module_colorBlue__Jtuu1","colorGray":"LoadingSpinner-module_colorGray__-EMqs","colorWhite":"LoadingSpinner-module_colorWhite__95Hoo","spinnerTransparent":"LoadingSpinner-module_spinnerTransparent__G3zcb","spacingDefault":"LoadingSpinner-module_spacingDefault__8At6H","dotsContainer":"LoadingSpinner-module_dotsContainer__l3FsV","dotsContainerInline":"LoadingSpinner-module_dotsContainerInline__Kl4Fz","dotSizeSm":"LoadingSpinner-module_dotSizeSm__YuBra","dotSizeMd":"LoadingSpinner-module_dotSizeMd__rXeyS","dotSizeLg":"LoadingSpinner-module_dotSizeLg__M8etz","dotColorBlue":"LoadingSpinner-module_dotColorBlue__5evmc","dotColorGray":"LoadingSpinner-module_dotColorGray__dr80J","dotColorWhite":"LoadingSpinner-module_dotColorWhite__54ur-","dot":"LoadingSpinner-module_dot__tz0lA","bounce":"LoadingSpinner-module_bounce__7Raih","dotDelay1":"LoadingSpinner-module_dotDelay1__-94Os","dotDelay2":"LoadingSpinner-module_dotDelay2__Oy8E-","dotDelay3":"LoadingSpinner-module_dotDelay3__7EZYH","pulse":"LoadingSpinner-module_pulse__gKUHJ","ringContainer":"LoadingSpinner-module_ringContainer__4p8NG","ringBackground":"LoadingSpinner-module_ringBackground__aF2w1","ringSpinner":"LoadingSpinner-module_ringSpinner__b92-S","ringSpinnerBlue":"LoadingSpinner-module_ringSpinnerBlue__zGTgw","ringSpinnerGray":"LoadingSpinner-module_ringSpinnerGray__kHnkJ","ringSpinnerWhite":"LoadingSpinner-module_ringSpinnerWhite__yu8d0","ringTransparent":"LoadingSpinner-module_ringTransparent__DTSbu","message":"LoadingSpinner-module_message__FoOvh"};
1310
+ styleInject$1(css_248z$1);
1311
+
1312
+ function classNames$1(...classes) {
1313
+ return classes.filter(Boolean).join(" ");
1314
+ }
1315
+ /**
1316
+ * LoadingSpinner component
1317
+ * Displays a loading indicator with multiple style variants
1318
+ *
1319
+ * @param variant - 'spinner' (default circular spinner), 'dots' (three bouncing dots), 'pulse' (pulsing circle), 'ring' (rotating ring)
1320
+ * @param inline - If true, removes centering and margins for inline use (e.g., in buttons or inputs)
1321
+ * @param color - Color scheme: 'blue' (default), 'gray', 'white'
1322
+ */
1323
+ const LoadingSpinner = ({ message, size = "md", className = "", variant = "spinner", inline = false, color = "blue", }) => {
1324
+ const sizeClass = styles$1[`size${size.charAt(0).toUpperCase() + size.slice(1)}`];
1325
+ const colorClass = styles$1[`color${color.charAt(0).toUpperCase() + color.slice(1)}`];
1326
+ const dotColorClass = styles$1[`dotColor${color.charAt(0).toUpperCase() + color.slice(1)}`];
1327
+ const dotSizeClass = styles$1[`dotSize${size.charAt(0).toUpperCase() + size.slice(1)}`];
1328
+ // Spinner variant (circular border)
1329
+ if (variant === "spinner") {
1330
+ return (jsxRuntimeExports.jsx("div", { className: classNames$1(inline ? styles$1.containerInline : styles$1.container, className), "data-testid": "loading-spinner", "data-variant": variant, "data-size": size, "data-color": color, children: jsxRuntimeExports.jsxs("div", { className: inline ? styles$1.innerInline : styles$1.inner, children: [jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.spinner, styles$1.spinnerTransparent, colorClass, sizeClass, !inline ? styles$1.spacingDefault : undefined) }), message && jsxRuntimeExports.jsx("p", { className: styles$1.message, children: message })] }) }));
1331
+ }
1332
+ // Dots variant (three bouncing dots)
1333
+ if (variant === "dots") {
1334
+ return (jsxRuntimeExports.jsx("div", { className: classNames$1(inline ? styles$1.containerInline : styles$1.container, className), "data-testid": "loading-spinner", "data-variant": variant, "data-size": size, "data-color": color, children: jsxRuntimeExports.jsxs("div", { className: inline ? styles$1.innerInline : styles$1.inner, children: [jsxRuntimeExports.jsxs("div", { className: classNames$1(inline ? styles$1.dotsContainerInline : styles$1.dotsContainer, !inline ? styles$1.spacingDefault : undefined), children: [jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.dot, dotSizeClass, dotColorClass, styles$1.dotDelay1) }), jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.dot, dotSizeClass, dotColorClass, styles$1.dotDelay2) }), jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.dot, dotSizeClass, dotColorClass, styles$1.dotDelay3) })] }), message && jsxRuntimeExports.jsx("p", { className: styles$1.message, children: message })] }) }));
1335
+ }
1336
+ // Pulse variant (pulsing circle)
1337
+ if (variant === "pulse") {
1338
+ return (jsxRuntimeExports.jsx("div", { className: classNames$1(inline ? styles$1.containerInline : styles$1.container, className), "data-testid": "loading-spinner", "data-variant": variant, "data-size": size, "data-color": color, children: jsxRuntimeExports.jsxs("div", { className: inline ? styles$1.innerInline : styles$1.inner, children: [jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.pulse, sizeClass, dotColorClass, !inline ? styles$1.spacingDefault : undefined) }), message && jsxRuntimeExports.jsx("p", { className: styles$1.message, children: message })] }) }));
1339
+ }
1340
+ // Ring variant (rotating ring with gradient)
1341
+ if (variant === "ring") {
1342
+ const ringSpinnerColorClass = styles$1[`ringSpinner${color.charAt(0).toUpperCase() + color.slice(1)}`];
1343
+ return (jsxRuntimeExports.jsx("div", { className: classNames$1(inline ? styles$1.containerInline : styles$1.container, className), "data-testid": "loading-spinner", "data-variant": variant, "data-size": size, "data-color": color, children: jsxRuntimeExports.jsxs("div", { className: inline ? styles$1.innerInline : styles$1.inner, children: [jsxRuntimeExports.jsxs("div", { className: classNames$1(styles$1.ringContainer, sizeClass, !inline ? styles$1.spacingDefault : undefined), children: [jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.ringBackground, colorClass) }), jsxRuntimeExports.jsx("div", { className: classNames$1(styles$1.ringSpinner, styles$1.ringTransparent, ringSpinnerColorClass) })] }), message && jsxRuntimeExports.jsx("p", { className: styles$1.message, children: message })] }) }));
1344
+ }
1345
+ return null;
1346
+ };
1347
+
1348
+ function styleInject$2(css, ref) {
1349
+ if ( ref === void 0 ) ref = {};
1350
+ var insertAt = ref.insertAt;
1351
+
1352
+ if (typeof document === 'undefined') { return; }
1353
+
1354
+ var head = document.head || document.getElementsByTagName('head')[0];
1355
+ var style = document.createElement('style');
1356
+ style.type = 'text/css';
1357
+
1358
+ if (insertAt === 'top') {
1359
+ if (head.firstChild) {
1360
+ head.insertBefore(style, head.firstChild);
1361
+ } else {
1362
+ head.appendChild(style);
1363
+ }
1364
+ } else {
1365
+ head.appendChild(style);
1366
+ }
1367
+
1368
+ if (style.styleSheet) {
1369
+ style.styleSheet.cssText = css;
1370
+ } else {
1371
+ style.appendChild(document.createTextNode(css));
1372
+ }
1373
+ }
1374
+
1375
+ var css_248z$2 = ".Autocomplete-module_container__Qc33j {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.Autocomplete-module_label__-7YPH {\n display: block;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 500;\n color: #374151;\n}\n\n.Autocomplete-module_required__N3ZwR {\n color: #ef4444;\n margin-left: 0.25rem;\n}\n\n.Autocomplete-module_inputWrapper__NS450 {\n position: relative;\n}\n\n.Autocomplete-module_iconLeft__gee-m {\n position: absolute;\n left: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n color: #9ca3af;\n pointer-events: none;\n display: flex;\n align-items: center;\n}\n\n.Autocomplete-module_input__ZShCt {\n width: 100%;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n border: 2px solid #d1d5db;\n transition:\n border-color 150ms ease,\n box-shadow 150ms ease;\n outline: none;\n font-weight: 500;\n color: #111827;\n}\n\n.Autocomplete-module_input__ZShCt::placeholder {\n color: #9ca3af;\n}\n\n.Autocomplete-module_input__ZShCt:disabled {\n background: #f3f4f6;\n color: #6b7280;\n cursor: not-allowed;\n}\n\n.Autocomplete-module_input__ZShCt:hover:not(:disabled):not(:focus) {\n border-color: #9ca3af;\n}\n\n.Autocomplete-module_input__ZShCt:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n}\n\n.Autocomplete-module_inputWithIcon__-qV4P {\n padding-left: 2.5rem;\n}\n\n.Autocomplete-module_inputWithClear__a8C83 {\n padding-right: 5rem;\n}\n\n.Autocomplete-module_inputWithoutClear__LN8yW {\n padding-right: 3rem;\n}\n\n.Autocomplete-module_inputReadOnly__dG7ZO {\n background: #f9fafb;\n cursor: default;\n}\n\n.Autocomplete-module_inputError__Kdk14 {\n border-color: #ef4444;\n}\n\n.Autocomplete-module_inputError__Kdk14:focus {\n border-color: #ef4444;\n box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);\n}\n\n.Autocomplete-module_inputWarning__XTQux {\n border-color: #eab308;\n}\n\n.Autocomplete-module_inputWarning__XTQux:focus {\n border-color: #eab308;\n box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);\n}\n\n.Autocomplete-module_inputFocused__1zKVR {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);\n}\n\n.Autocomplete-module_rightIcons__ygVzq {\n position: absolute;\n right: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.Autocomplete-module_clearButton__tVaO9 {\n color: #9ca3af;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: color 150ms ease;\n}\n\n.Autocomplete-module_clearButton__tVaO9:hover {\n color: #4b5563;\n}\n\n.Autocomplete-module_toggleButton__nxFFh {\n color: #9ca3af;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 0;\n transition: color 150ms ease;\n}\n\n.Autocomplete-module_toggleButton__nxFFh:hover:not(:disabled) {\n color: #4b5563;\n}\n\n.Autocomplete-module_toggleButton__nxFFh:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n.Autocomplete-module_toggleIcon__fD90b {\n width: 1.25rem;\n height: 1.25rem;\n transition: transform 200ms ease;\n}\n\n.Autocomplete-module_toggleIconOpen__aFQVZ {\n transform: rotate(180deg);\n}\n\n.Autocomplete-module_dropdown__oT12R {\n position: absolute;\n z-index: 50;\n left: 0;\n right: 0;\n margin-top: 0.25rem;\n background: #ffffff;\n border: 2px solid #e5e7eb;\n border-radius: 0.5rem;\n box-shadow:\n 0 10px 15px -3px rgba(0, 0, 0, 0.1),\n 0 4px 6px -2px rgba(0, 0, 0, 0.05);\n overflow: hidden;\n}\n\n.Autocomplete-module_dropdownTop__yN9gw {\n bottom: 100%;\n top: auto;\n margin-top: 0;\n margin-bottom: 0.25rem;\n}\n\n.Autocomplete-module_dropdownContent__0RNSN {\n overflow-y: auto;\n max-height: 100%;\n}\n\n.Autocomplete-module_loadingState__HQ2Vq {\n padding: 0.75rem 1rem;\n text-align: center;\n color: #6b7280;\n}\n\n.Autocomplete-module_loadingSpinner__9qSHW {\n margin: 0 auto;\n}\n\n.Autocomplete-module_loadingText__6g6Qb {\n display: block;\n margin-top: 0.5rem;\n font-size: 0.875rem;\n}\n\n.Autocomplete-module_option__O2-MC {\n padding: 0.75rem 1rem;\n cursor: pointer;\n transition: background-color 150ms ease;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.Autocomplete-module_option__O2-MC:hover:not(.Autocomplete-module_optionDisabled__kkjS2) {\n background: #f9fafb;\n}\n\n.Autocomplete-module_optionDisabled__kkjS2 {\n opacity: 0.5;\n cursor: not-allowed;\n background: #f9fafb;\n}\n\n.Autocomplete-module_optionHighlighted__WpIwj:not(.Autocomplete-module_optionDisabled__kkjS2) {\n background: #eff6ff;\n}\n\n.Autocomplete-module_optionSelected__CeDeN:not(.Autocomplete-module_optionDisabled__kkjS2) {\n background: #dbeafe;\n}\n\n.Autocomplete-module_optionContent__TzYTm {\n flex: 1;\n}\n\n.Autocomplete-module_optionLabel__5FOIH {\n font-weight: 500;\n color: #111827;\n}\n\n.Autocomplete-module_optionDescription__0HEsl {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #6b7280;\n margin-top: 0.125rem;\n}\n\n.Autocomplete-module_optionCheckIcon__MEavu {\n width: 1.25rem;\n height: 1.25rem;\n color: #3b82f6;\n flex-shrink: 0;\n}\n\n.Autocomplete-module_highlight__MW3bw {\n background: #fef08a;\n font-weight: 600;\n color: #111827;\n}\n\n.Autocomplete-module_createOption__xIHDz {\n padding: 0.75rem 1rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n transition: background-color 150ms ease;\n}\n\n.Autocomplete-module_createOption__xIHDz:hover {\n background: #f9fafb;\n}\n\n.Autocomplete-module_createOptionWithBorder__BX0mv {\n border-top: 1px solid #e5e7eb;\n}\n\n.Autocomplete-module_createOptionHighlighted__-3e6V {\n background: #eff6ff;\n}\n\n.Autocomplete-module_createIcon__wh5Nu {\n color: #3b82f6;\n font-weight: 500;\n}\n\n.Autocomplete-module_createText__V9uqQ {\n color: #111827;\n}\n\n.Autocomplete-module_noResults__rAoto {\n padding: 0.75rem 1rem;\n text-align: center;\n color: #6b7280;\n font-size: 0.875rem;\n}\n\n.Autocomplete-module_hint__E-DXp {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #6b7280;\n}\n\n.Autocomplete-module_warning__6-JRr {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #ca8a04;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.Autocomplete-module_warningIcon__gEaAt {\n width: 1rem;\n height: 1rem;\n}\n\n.Autocomplete-module_error__XLtyW {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #dc2626;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.Autocomplete-module_errorIcon__Ftizo {\n width: 1rem;\n height: 1rem;\n}\n";
1376
+ var styles$2 = {"container":"Autocomplete-module_container__Qc33j","label":"Autocomplete-module_label__-7YPH","required":"Autocomplete-module_required__N3ZwR","inputWrapper":"Autocomplete-module_inputWrapper__NS450","iconLeft":"Autocomplete-module_iconLeft__gee-m","input":"Autocomplete-module_input__ZShCt","inputWithIcon":"Autocomplete-module_inputWithIcon__-qV4P","inputWithClear":"Autocomplete-module_inputWithClear__a8C83","inputWithoutClear":"Autocomplete-module_inputWithoutClear__LN8yW","inputReadOnly":"Autocomplete-module_inputReadOnly__dG7ZO","inputError":"Autocomplete-module_inputError__Kdk14","inputWarning":"Autocomplete-module_inputWarning__XTQux","inputFocused":"Autocomplete-module_inputFocused__1zKVR","rightIcons":"Autocomplete-module_rightIcons__ygVzq","clearButton":"Autocomplete-module_clearButton__tVaO9","toggleButton":"Autocomplete-module_toggleButton__nxFFh","toggleIcon":"Autocomplete-module_toggleIcon__fD90b","toggleIconOpen":"Autocomplete-module_toggleIconOpen__aFQVZ","dropdown":"Autocomplete-module_dropdown__oT12R","dropdownTop":"Autocomplete-module_dropdownTop__yN9gw","dropdownContent":"Autocomplete-module_dropdownContent__0RNSN","loadingState":"Autocomplete-module_loadingState__HQ2Vq","loadingSpinner":"Autocomplete-module_loadingSpinner__9qSHW","loadingText":"Autocomplete-module_loadingText__6g6Qb","option":"Autocomplete-module_option__O2-MC","optionDisabled":"Autocomplete-module_optionDisabled__kkjS2","optionHighlighted":"Autocomplete-module_optionHighlighted__WpIwj","optionSelected":"Autocomplete-module_optionSelected__CeDeN","optionContent":"Autocomplete-module_optionContent__TzYTm","optionLabel":"Autocomplete-module_optionLabel__5FOIH","optionDescription":"Autocomplete-module_optionDescription__0HEsl","optionCheckIcon":"Autocomplete-module_optionCheckIcon__MEavu","highlight":"Autocomplete-module_highlight__MW3bw","createOption":"Autocomplete-module_createOption__xIHDz","createOptionWithBorder":"Autocomplete-module_createOptionWithBorder__BX0mv","createOptionHighlighted":"Autocomplete-module_createOptionHighlighted__-3e6V","createIcon":"Autocomplete-module_createIcon__wh5Nu","createText":"Autocomplete-module_createText__V9uqQ","noResults":"Autocomplete-module_noResults__rAoto","hint":"Autocomplete-module_hint__E-DXp","warning":"Autocomplete-module_warning__6-JRr","warningIcon":"Autocomplete-module_warningIcon__gEaAt","error":"Autocomplete-module_error__XLtyW","errorIcon":"Autocomplete-module_errorIcon__Ftizo"};
1377
+ styleInject$2(css_248z$2);
1378
+
1379
+ const classNames = (...classes) => classes.filter(Boolean).join(" ");
1380
+ // Helper function to highlight matching text
1381
+ const highlightMatchText = (text, search, shouldHighlight = true) => {
1382
+ if (!shouldHighlight || !search || !text)
1383
+ return text;
1384
+ const regex = new RegExp(`(${search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
1385
+ const parts = text.split(regex);
1386
+ return (jsxRuntimeExports$1.jsx(jsxRuntimeExports$1.Fragment, { children: parts.map((part, index) => regex.test(part) ? (jsxRuntimeExports$1.jsx("mark", { className: styles$2.highlight, children: part }, index)) : (jsxRuntimeExports$1.jsx("span", { children: part }, index))) }));
1387
+ };
1388
+ const Autocomplete = ({ label, value, onChange, options = [], placeholder = "Search or select...", error, warning, hint, required = false, disabled = false, loading = false, searchable = true, clearable = true, icon, className = "", maxHeight = "300px", onCreate, onSearch, readOnly = false, renderOption, onBlur, onFocus, createLabel = "Create", noResultsText = "No results found", loadingText = "Loading...", highlightMatch = true, minSearchLength = 0, debounceMs = 300, keepListOpen = false, position = "bottom", }) => {
1389
+ const [isOpen, setIsOpen] = useState(false);
1390
+ const [searchTerm, setSearchTerm] = useState("");
1391
+ const [highlightedIndex, setHighlightedIndex] = useState(-1);
1392
+ const [isFocused, setIsFocused] = useState(false);
1393
+ const containerRef = useRef(null);
1394
+ const inputRef = useRef(null);
1395
+ const dropdownRef = useRef(null);
1396
+ const optionRefs = useRef([]);
1397
+ // Get selected option
1398
+ const selectedOption = options.find((opt) => opt.value === value);
1399
+ // Filter options based on search
1400
+ const filteredOptions = useMemo(() => {
1401
+ // When using external search (onSearch provided), don't filter locally
1402
+ // The parent component is responsible for filtering via onSearch callback
1403
+ if (onSearch)
1404
+ return options;
1405
+ if (!searchable || searchTerm.length < minSearchLength)
1406
+ return options;
1407
+ const lowerSearch = searchTerm.toLowerCase();
1408
+ return options.filter((opt) => opt.label.toLowerCase().includes(lowerSearch) ||
1409
+ opt.description?.toLowerCase().includes(lowerSearch));
1410
+ }, [options, searchTerm, searchable, minSearchLength, onSearch]);
1411
+ // Display value in input
1412
+ const displayValue = useMemo(() => {
1413
+ if (searchable && isOpen)
1414
+ return searchTerm;
1415
+ return selectedOption?.label || "";
1416
+ }, [isOpen, searchable, searchTerm, selectedOption]);
1417
+ // Call onSearch with debounce
1418
+ useEffect(() => {
1419
+ if (!onSearch || searchTerm.length < minSearchLength)
1420
+ return;
1421
+ const timer = setTimeout(() => {
1422
+ onSearch(searchTerm);
1423
+ }, debounceMs);
1424
+ return () => clearTimeout(timer);
1425
+ }, [searchTerm, onSearch, debounceMs, minSearchLength]);
1426
+ // Close dropdown on outside click
1427
+ useEffect(() => {
1428
+ const handleClickOutside = (event) => {
1429
+ if (containerRef.current &&
1430
+ !containerRef.current.contains(event.target)) {
1431
+ setIsOpen(false);
1432
+ setIsFocused(false);
1433
+ if (!keepListOpen) {
1434
+ setSearchTerm("");
1435
+ }
1436
+ }
1437
+ };
1438
+ document.addEventListener("mousedown", handleClickOutside);
1439
+ return () => document.removeEventListener("mousedown", handleClickOutside);
1440
+ }, [keepListOpen]);
1441
+ // Scroll highlighted option into view
1442
+ useEffect(() => {
1443
+ if (highlightedIndex >= 0 && optionRefs.current[highlightedIndex]) {
1444
+ optionRefs.current[highlightedIndex]?.scrollIntoView({
1445
+ block: "nearest",
1446
+ behavior: "smooth",
1447
+ });
1448
+ }
1449
+ }, [highlightedIndex]);
1450
+ const handleInputChange = (e) => {
1451
+ const newValue = e.target.value;
1452
+ setSearchTerm(newValue);
1453
+ if (!isOpen) {
1454
+ setIsOpen(true);
1455
+ }
1456
+ setHighlightedIndex(-1);
1457
+ };
1458
+ const handleInputFocus = () => {
1459
+ if (disabled || readOnly)
1460
+ return;
1461
+ setIsFocused(true);
1462
+ setIsOpen(true);
1463
+ onFocus?.();
1464
+ };
1465
+ const handleInputBlur = () => {
1466
+ // Delay to allow click on dropdown
1467
+ setTimeout(() => {
1468
+ if (!containerRef.current?.contains(document.activeElement)) {
1469
+ setIsFocused(false);
1470
+ if (!keepListOpen) {
1471
+ setSearchTerm("");
1472
+ }
1473
+ onBlur?.();
1474
+ }
1475
+ }, 200);
1476
+ };
1477
+ const handleSelect = (option) => {
1478
+ if (option.disabled)
1479
+ return;
1480
+ onChange(option.value, option);
1481
+ setSearchTerm("");
1482
+ setHighlightedIndex(-1);
1483
+ if (!keepListOpen) {
1484
+ setIsOpen(false);
1485
+ }
1486
+ inputRef.current?.blur();
1487
+ };
1488
+ const handleClear = (e) => {
1489
+ e.stopPropagation();
1490
+ onChange(null);
1491
+ setSearchTerm("");
1492
+ setIsOpen(false);
1493
+ inputRef.current?.focus();
1494
+ };
1495
+ const handleToggle = () => {
1496
+ if (disabled || readOnly)
1497
+ return;
1498
+ const newIsOpen = !isOpen;
1499
+ setIsOpen(newIsOpen);
1500
+ if (newIsOpen) {
1501
+ inputRef.current?.focus();
1502
+ }
1503
+ };
1504
+ const handleKeyDown = (e) => {
1505
+ if (disabled || readOnly)
1506
+ return;
1507
+ switch (e.key) {
1508
+ case "ArrowDown":
1509
+ e.preventDefault();
1510
+ if (!isOpen) {
1511
+ setIsOpen(true);
1512
+ }
1513
+ else {
1514
+ setHighlightedIndex((prev) => prev < filteredOptions.length - 1 ? prev + 1 : prev);
1515
+ }
1516
+ break;
1517
+ case "ArrowUp":
1518
+ e.preventDefault();
1519
+ if (isOpen) {
1520
+ setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : -1));
1521
+ }
1522
+ break;
1523
+ case "Enter":
1524
+ e.preventDefault();
1525
+ if (isOpen &&
1526
+ highlightedIndex >= 0 &&
1527
+ filteredOptions[highlightedIndex]) {
1528
+ handleSelect(filteredOptions[highlightedIndex]);
1529
+ }
1530
+ else if (isOpen && onCreate && searchTerm.trim()) {
1531
+ onCreate(searchTerm.trim());
1532
+ setIsOpen(false);
1533
+ setSearchTerm("");
1534
+ }
1535
+ break;
1536
+ case "Escape":
1537
+ e.preventDefault();
1538
+ setIsOpen(false);
1539
+ setSearchTerm("");
1540
+ inputRef.current?.blur();
1541
+ break;
1542
+ case "Tab":
1543
+ setIsOpen(false);
1544
+ setSearchTerm("");
1545
+ break;
1546
+ }
1547
+ };
1548
+ const getInputClassName = () => {
1549
+ return classNames(styles$2.input, icon ? styles$2.inputWithIcon : undefined, clearable && value ? styles$2.inputWithClear : styles$2.inputWithoutClear, readOnly ? styles$2.inputReadOnly : undefined, error ? styles$2.inputError : undefined, warning && !error ? styles$2.inputWarning : undefined, isFocused && !error && !warning ? styles$2.inputFocused : undefined);
1550
+ };
1551
+ return (jsxRuntimeExports$1.jsxs("div", { className: classNames(styles$2.container, className), children: [label && (jsxRuntimeExports$1.jsxs("label", { className: styles$2.label, children: [label, required && jsxRuntimeExports$1.jsx("span", { className: styles$2.required, children: "*" })] })), jsxRuntimeExports$1.jsxs("div", { ref: containerRef, className: styles$2.inputWrapper, children: [icon && jsxRuntimeExports$1.jsx("div", { className: styles$2.iconLeft, children: icon }), jsxRuntimeExports$1.jsx("input", { ref: inputRef, type: "text", value: displayValue, onChange: handleInputChange, onFocus: handleInputFocus, onBlur: handleInputBlur, onKeyDown: handleKeyDown, placeholder: placeholder, disabled: disabled, readOnly: readOnly || !searchable, className: getInputClassName(), "data-testid": "autocomplete-input", "data-has-error": error ? "true" : "false", "data-has-warning": warning ? "true" : "false", "data-is-focused": isFocused ? "true" : "false" }), jsxRuntimeExports$1.jsxs("div", { className: styles$2.rightIcons, children: [loading && jsxRuntimeExports$1.jsx(LoadingSpinner, { size: "sm", variant: "dots", inline: true }), clearable && value && !loading && !disabled && (jsxRuntimeExports$1.jsx("button", { type: "button", onClick: handleClear, className: styles$2.clearButton, "data-testid": "autocomplete-clear", "aria-label": "Clear selection", children: jsxRuntimeExports$1.jsx(B$1, { className: "w-4 h-4" }) })), jsxRuntimeExports$1.jsx("button", { type: "button", onClick: handleToggle, className: styles$2.toggleButton, disabled: disabled, "data-testid": "autocomplete-toggle", "aria-label": isOpen ? "Close dropdown" : "Open dropdown", children: jsxRuntimeExports$1.jsx(y$1, { className: classNames(styles$2.toggleIcon, isOpen && styles$2.toggleIconOpen) }) })] }), isOpen && !disabled && !readOnly && (jsxRuntimeExports$1.jsxs("div", { ref: dropdownRef, className: classNames(styles$2.dropdown, position === "top" && styles$2.dropdownTop), style: { maxHeight }, "data-testid": "autocomplete-dropdown", children: [loading && filteredOptions.length === 0 && (jsxRuntimeExports$1.jsxs("div", { className: styles$2.loadingState, children: [jsxRuntimeExports$1.jsx(LoadingSpinner, { size: "sm", variant: "spinner", className: styles$2.loadingSpinner }), jsxRuntimeExports$1.jsx("span", { className: styles$2.loadingText, children: loadingText })] })), jsxRuntimeExports$1.jsx("div", { className: styles$2.dropdownContent, children: !loading && filteredOptions.length > 0 && (jsxRuntimeExports$1.jsx(jsxRuntimeExports$1.Fragment, { children: filteredOptions.map((option, index) => {
1552
+ const isSelected = option.value === value;
1553
+ const isHighlighted = index === highlightedIndex;
1554
+ return (jsxRuntimeExports$1.jsx("div", { ref: (el) => {
1555
+ optionRefs.current[index] = el;
1556
+ }, onClick: () => handleSelect(option), onMouseEnter: () => setHighlightedIndex(index), className: classNames(styles$2.option, option.disabled && styles$2.optionDisabled, isHighlighted && styles$2.optionHighlighted, isSelected && styles$2.optionSelected), "data-testid": `autocomplete-option-${option.value}`, "data-disabled": option.disabled ? "true" : "false", "data-selected": isSelected ? "true" : "false", "data-highlighted": isHighlighted ? "true" : "false", children: renderOption ? (renderOption(option, isSelected)) : (jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment, { children: [jsxRuntimeExports$1.jsxs("div", { className: styles$2.optionContent, children: [jsxRuntimeExports$1.jsx("div", { className: styles$2.optionLabel, children: highlightMatchText(option.label, searchTerm, highlightMatch) }), option.description && (jsxRuntimeExports$1.jsx("div", { className: styles$2.optionDescription, children: option.description }))] }), isSelected && (jsxRuntimeExports$1.jsx(p$1, { className: styles$2.optionCheckIcon }))] })) }, option.value));
1557
+ }) })) }), onCreate && searchTerm && (jsxRuntimeExports$1.jsxs("div", { onClick: () => {
1558
+ onCreate(searchTerm.trim());
1559
+ setIsOpen(false);
1560
+ setSearchTerm("");
1561
+ }, className: classNames(styles$2.createOption, filteredOptions.length > 0 && styles$2.createOptionWithBorder, highlightedIndex === filteredOptions.length &&
1562
+ styles$2.createOptionHighlighted), "data-testid": "autocomplete-create", children: [jsxRuntimeExports$1.jsx("span", { className: styles$2.createIcon, children: "+" }), jsxRuntimeExports$1.jsxs("span", { className: styles$2.createText, children: [createLabel, " \"", searchTerm, "\""] })] })), !loading && filteredOptions.length === 0 && !onCreate && (jsxRuntimeExports$1.jsx("div", { className: styles$2.noResults, children: noResultsText }))] }))] }), hint && !error && !warning && jsxRuntimeExports$1.jsx("p", { className: styles$2.hint, children: hint }), warning && !error && (jsxRuntimeExports$1.jsxs("p", { className: styles$2.warning, children: [jsxRuntimeExports$1.jsx("svg", { className: styles$2.warningIcon, fill: "currentColor", viewBox: "0 0 20 20", children: jsxRuntimeExports$1.jsx("path", { fillRule: "evenodd", d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z", clipRule: "evenodd" }) }), warning] })), error && (jsxRuntimeExports$1.jsxs("p", { className: styles$2.error, children: [jsxRuntimeExports$1.jsx("svg", { className: styles$2.errorIcon, fill: "currentColor", viewBox: "0 0 20 20", children: jsxRuntimeExports$1.jsx("path", { fillRule: "evenodd", d: "M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z", clipRule: "evenodd" }) }), error] }))] }));
1563
+ };
1564
+
1565
+ var o,a={exports:{}},l={};var s,i,u={};
1566
+ /**
1567
+ * @license React
1568
+ * react-jsx-runtime.development.js
1569
+ *
1570
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1571
+ *
1572
+ * This source code is licensed under the MIT license found in the
1573
+ * LICENSE file in the root directory of this source tree.
1574
+ */function c(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===S?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case f:return "Fragment";case h:return "Profiler";case g:return "StrictMode";case T:return "Suspense";case v:return "SuspenseList";case k:return "Activity"}if("object"==typeof n)switch("number"==typeof n.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case _:return "Portal";case y:return n.displayName||"Context";case x:return (n._context.displayName||"Context")+".Consumer";case b:var t=n.render;return (n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case I:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case j:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}function t(e){return ""+e}function r(e){try{t(e);var n=!1;}catch(e){n=true;}if(n){var r=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function o(n){if(n===f)return "<>";if("object"==typeof n&&null!==n&&n.$$typeof===j)return "<...>";try{var t=e(n);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function a(){return Error("react-stack-top-frame")}function l(){var n=e(this.type);return C[n]||(C[n]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(n=this.props.ref)?n:null}function s(n,t,o,a,s,u){var c,m=t.children;if(void 0!==m)if(a)if(O(m)){for(a=0;a<m.length;a++)i(m[a]);Object.freeze&&Object.freeze(m);}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else i(m);if(w.call(t,"key")){m=e(n);var _=Object.keys(t).filter(function(e){return "key"!==e});a=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",A[m+a]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,m,_,m),A[m+a]=true);}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(w.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return false}return void 0!==e.key}(t)&&(r(t.key),m=""+t.key),"key"in t)for(var f in o={},t)"key"!==f&&(o[f]=t[f]);else o=t;return m&&function(e,n){function t(){d||(d=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(o,"function"==typeof n?n.displayName||n.name||"Unknown":n),function(e,n,t,r,o,a){var s=t.ref;return e={$$typeof:p,type:e,key:n,props:t,_owner:r},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:false,get:l}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(n,m,o,null===(c=N.A)?null:c.getOwner(),s,u)}function i(e){c(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===j&&("fulfilled"===e._payload.status?c(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function c(e){return "object"==typeof e&&null!==e&&e.$$typeof===p}var d,m=require$$0__default__default,p=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),N=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,O=Array.isArray,z=console.createTask?console.createTask:function(){return null},C={},R=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,a)(),$=z(o(a)),A={};u.Fragment=f,u.jsx=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,false,r?Error("react-stack-top-frame"):R,r?z(o(e)):$)},u.jsxs=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,true,r?Error("react-stack-top-frame"):R,r?z(o(e)):$)};}()),u}var d,m,p,_=(i||(i=1,"production"===process.env.NODE_ENV?a.exports=function(){if(o)return l;o=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(n,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:o,ref:void 0!==t?t:null,props:r}}return l.Fragment=n,l.jsx=t,l.jsxs=t,l}():a.exports=c()),a.exports),f={exports:{}},g={},h={};var x=(p||(p=1,"production"===process.env.NODE_ENV?f.exports=function(){if(d)return g;d=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(n,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:o,ref:void 0!==t?t:null,props:r}}return g.Fragment=n,g.jsx=t,g.jsxs=t,g}():f.exports=(m||(m=1,"production"!==process.env.NODE_ENV&&function(){function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===S?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case _:return "Fragment";case g:return "Profiler";case f:return "StrictMode";case T:return "Suspense";case v:return "SuspenseList";case k:return "Activity"}if("object"==typeof n)switch("number"==typeof n.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case p:return "Portal";case y:return n.displayName||"Context";case x:return (n._context.displayName||"Context")+".Consumer";case b:var t=n.render;return (n=n.displayName)||(n=""!==(n=t.displayName||t.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case I:return null!==(t=n.displayName||null)?t:e(n.type)||"Memo";case j:t=n._payload,n=n._init;try{return e(n(t))}catch(e){}}return null}function t(e){return ""+e}function r(e){try{t(e);var n=!1;}catch(e){n=true;}if(n){var r=(n=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return r.call(n,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),t(e)}}function o(n){if(n===_)return "<>";if("object"==typeof n&&null!==n&&n.$$typeof===j)return "<...>";try{var t=e(n);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function a(){return Error("react-stack-top-frame")}function l(){var n=e(this.type);return C[n]||(C[n]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),void 0!==(n=this.props.ref)?n:null}function s(n,t,o,a,s,u){var d,p=t.children;if(void 0!==p)if(a)if(O(p)){for(a=0;a<p.length;a++)i(p[a]);Object.freeze&&Object.freeze(p);}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else i(p);if(w.call(t,"key")){p=e(n);var _=Object.keys(t).filter(function(e){return "key"!==e});a=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",A[p+a]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',a,p,_,p),A[p+a]=true);}if(p=null,void 0!==o&&(r(o),p=""+o),function(e){if(w.call(e,"key")){var n=Object.getOwnPropertyDescriptor(e,"key").get;if(n&&n.isReactWarning)return false}return void 0!==e.key}(t)&&(r(t.key),p=""+t.key),"key"in t)for(var f in o={},t)"key"!==f&&(o[f]=t[f]);else o=t;return p&&function(e,n){function t(){c||(c=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",n));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(o,"function"==typeof n?n.displayName||n.name||"Unknown":n),function(e,n,t,r,o,a){var s=t.ref;return e={$$typeof:m,type:e,key:n,props:t,_owner:r},null!==(void 0!==s?s:null)?Object.defineProperty(e,"ref",{enumerable:false,get:l}):Object.defineProperty(e,"ref",{enumerable:false,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(e,"_debugStack",{configurable:false,enumerable:false,writable:true,value:o}),Object.defineProperty(e,"_debugTask",{configurable:false,enumerable:false,writable:true,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(n,p,o,null===(d=N.A)?null:d.getOwner(),s,u)}function i(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===j&&("fulfilled"===e._payload.status?u(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1));}function u(e){return "object"==typeof e&&null!==e&&e.$$typeof===m}var c,d=require$$0__default__default,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),y=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),S=Symbol.for("react.client.reference"),N=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=Object.prototype.hasOwnProperty,O=Array.isArray,z=console.createTask?console.createTask:function(){return null},C={},R=(d={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(d,a)(),$=z(o(a)),A={};h.Fragment=_,h.jsx=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,false,r?Error("react-stack-top-frame"):R,r?z(o(e)):$)},h.jsxs=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,true,r?Error("react-stack-top-frame"):R,r?z(o(e)):$)};}()),h)),f.exports);function y({className:e="",size:n="md"}){const t=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,"aria-label":"Check",children:x.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})})}const b=({className:e="",size:n="md"})=>{const t=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return x.jsx("svg",{className:t,viewBox:"0 0 20 20",fill:"currentColor","aria-label":"Error",children:x.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})},T=({className:e="",size:n="md"})=>{const t=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-label":"Info",children:x.jsx("path",{d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})},v={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},I=require$$0__default.forwardRef(({name:e,variant:n="outlined",size:t="md",fill:r=0,weight:o=400,grade:a=0,opticalSize:l=24,style:s,className:i,...u},c)=>{const d=(e=>"number"==typeof e?e:"sm"===e?16:"md"===e?20:24)(t),m=`"FILL" ${r}, "wght" ${o}, "GRAD" ${a}, "opsz" ${l}`;return x.jsx("span",{ref:c,"aria-hidden":"true",className:v[n]+(i?` ${i}`:""),style:{fontVariationSettings:m,fontSize:d,lineHeight:1,display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",...s},...u,children:e})});I.displayName="MaterialIcon";var j="TextInput-module_container__QXVA9",k="TextInput-module_label__GGFxk",S="TextInput-module_required__qlHAH",N="TextInput-module_inputContainer__-zaWR",w="TextInput-module_icon__F1AYg",O="TextInput-module_input__I8TSn",z="TextInput-module_inputWithIcon__TDgMC",C="TextInput-module_inputWithCharCount__qgvqA",R="TextInput-module_inputError__-Ga78",$="TextInput-module_inputSuccess__xsjt7",A="TextInput-module_charCount__RyuVm",E="TextInput-module_charCountNormal__LCUr7",P="TextInput-module_charCountNear__OKroK",L="TextInput-module_charCountLimit__iaB20",q="TextInput-module_charCountIcon__lRD-4",V="TextInput-module_charProgressBar__Wva8D",F="TextInput-module_charProgress__ZUsGs",M="TextInput-module_charProgressNormal__TdFY4",U="TextInput-module_charProgressNear__beyMs",B="TextInput-module_charProgressLimit__Vr6d-",Z="TextInput-module_hint__iZiig",D="TextInput-module_requiredHelper__TUGsU",G="TextInput-module_validationMessage__3g-wc",W="TextInput-module_validationIcon__q5LT6",Y="TextInput-module_validationText__-qAuu",K="TextInput-module_validEmail__Ya1tf",J="TextInput-module_emailSuggestion__ZzQkZ",Q="TextInput-module_suggestionButton__Rsxt8",H="TextInput-module_error__ewnmB",X="TextInput-module_errorIcon__JkIpb",ee="TextInput-module_errorText__ba7lR",ne="TextInput-module_passwordStrength__ICyJU",te="TextInput-module_strengthBar__3c8Yf",re="TextInput-module_strengthSegment__76ih4",oe="TextInput-module_strengthSegmentInactive__RK1Q8",ae="TextInput-module_strengthSegmentWeak__BFvgT",le="TextInput-module_strengthSegmentFair__AOJW5",se="TextInput-module_strengthSegmentGood__uGgTx",ie="TextInput-module_strengthSegmentStrong__vP5Yi",ue="TextInput-module_strengthSegmentVeryStrong__4Tull",ce="TextInput-module_strengthLabel__PpEO9",de="TextInput-module_strengthText__jfVUh",me="TextInput-module_strengthValue__04hhw",pe="TextInput-module_strengthValueWeak__8Ek8Q",_e="TextInput-module_strengthValueFair__70N63",fe="TextInput-module_strengthValueGood__NgsOd",ge="TextInput-module_strengthValueStrong__qaKsi",he="TextInput-module_strengthValueVeryStrong__80d9m",xe="TextInput-module_requirements__eD6oz",ye="TextInput-module_requirement__KoZx2",be="TextInput-module_requirementIcon__VjQXJ",Te="TextInput-module_requirementIconMet__UNZFD",ve="TextInput-module_requirementIconUnmet__1MF9h",Ie="TextInput-module_requirementText__fFcdn",je="TextInput-module_requirementTextMet__eGbSi";!function(e,n){ void 0===n&&(n={});var t=n.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e));}}("/* Container */\n.TextInput-module_container__QXVA9 {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n/* Label */\n.TextInput-module_label__GGFxk {\n display: block;\n font-size: 0.875rem;\n line-height: 1.25rem;\n font-weight: 500;\n color: #374151;\n}\n\n.TextInput-module_required__qlHAH {\n color: #ef4444;\n margin-left: 0.25rem;\n}\n\n/* Input container */\n.TextInput-module_inputContainer__-zaWR {\n position: relative;\n}\n\n/* Icon */\n.TextInput-module_icon__F1AYg {\n position: absolute;\n left: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n color: #9ca3af;\n pointer-events: none;\n display: flex;\n align-items: center;\n}\n\n/* Input */\n.TextInput-module_input__I8TSn {\n width: 100%;\n padding: 0.5rem 1rem;\n border-radius: 0.5rem;\n border: 2px solid #d1d5db;\n transition: all 150ms ease;\n outline: none;\n font-weight: 500;\n color: #111827;\n}\n\n.TextInput-module_input__I8TSn::-moz-placeholder {\n color: #9ca3af;\n}\n\n.TextInput-module_input__I8TSn::placeholder {\n color: #9ca3af;\n}\n\n.TextInput-module_inputWithIcon__TDgMC {\n padding-left: 2.5rem;\n}\n\n.TextInput-module_inputWithCharCount__qgvqA {\n padding-right: 5rem;\n}\n\n.TextInput-module_input__I8TSn:hover:not(:disabled) {\n border-color: #9ca3af;\n}\n\n.TextInput-module_input__I8TSn:focus {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);\n}\n\n.TextInput-module_input__I8TSn:disabled {\n background: #f3f4f6;\n color: #6b7280;\n cursor: not-allowed;\n}\n\n.TextInput-module_inputError__-Ga78 {\n border-color: #ef4444;\n}\n\n.TextInput-module_inputError__-Ga78:focus {\n border-color: #ef4444;\n box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);\n}\n\n.TextInput-module_inputSuccess__xsjt7 {\n border-color: #10b981;\n}\n\n.TextInput-module_inputSuccess__xsjt7:focus {\n border-color: #10b981;\n box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);\n}\n\n/* Character count */\n.TextInput-module_charCount__RyuVm {\n position: absolute;\n right: 0.75rem;\n top: 50%;\n transform: translateY(-50%);\n font-size: 0.75rem;\n line-height: 1rem;\n font-weight: 500;\n display: flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.TextInput-module_charCountNormal__LCUr7 {\n color: #6b7280;\n}\n\n.TextInput-module_charCountNear__OKroK {\n color: #d97706;\n}\n\n.TextInput-module_charCountLimit__iaB20 {\n color: #dc2626;\n}\n\n.TextInput-module_charCountIcon__lRD-4 {\n width: 1rem;\n height: 1rem;\n}\n\n/* Progress bar */\n.TextInput-module_charProgressBar__Wva8D {\n width: 100%;\n height: 0.25rem;\n background: #e5e7eb;\n border-radius: 9999px;\n overflow: hidden;\n}\n\n.TextInput-module_charProgress__ZUsGs {\n height: 100%;\n transition: all 150ms ease;\n border-radius: 9999px;\n}\n\n.TextInput-module_charProgressNormal__TdFY4 {\n background: #3b82f6;\n}\n\n.TextInput-module_charProgressNear__beyMs {\n background: #f59e0b;\n}\n\n.TextInput-module_charProgressLimit__Vr6d- {\n background: #ef4444;\n}\n\n/* Hint text */\n.TextInput-module_hint__iZiig {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #6b7280;\n margin-top: 0.25rem;\n}\n\n.TextInput-module_requiredHelper__TUGsU {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #6b7280;\n margin-top: 0.25rem;\n}\n\n/* Validation messages */\n.TextInput-module_validationMessage__3g-wc {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n margin-top: 0.25rem;\n}\n\n.TextInput-module_validationIcon__q5LT6 {\n width: 1rem;\n height: 1rem;\n flex-shrink: 0;\n}\n\n.TextInput-module_validationText__-qAuu {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n\n.TextInput-module_validEmail__Ya1tf .TextInput-module_validationIcon__q5LT6 {\n color: #10b981;\n}\n\n.TextInput-module_validEmail__Ya1tf .TextInput-module_validationText__-qAuu {\n color: #059669;\n}\n\n.TextInput-module_emailSuggestion__ZzQkZ .TextInput-module_validationIcon__q5LT6 {\n color: #3b82f6;\n}\n\n.TextInput-module_emailSuggestion__ZzQkZ .TextInput-module_validationText__-qAuu {\n color: #2563eb;\n}\n\n.TextInput-module_suggestionButton__Rsxt8 {\n font-weight: 600;\n text-decoration: underline;\n background: none;\n border: none;\n color: inherit;\n cursor: pointer;\n padding: 0;\n}\n\n.TextInput-module_suggestionButton__Rsxt8:hover {\n color: #1e40af;\n}\n\n/* Error message */\n.TextInput-module_error__ewnmB {\n display: flex;\n align-items: flex-start;\n gap: 0.5rem;\n margin-top: 0.25rem;\n}\n\n.TextInput-module_errorIcon__JkIpb {\n width: 1rem;\n height: 1rem;\n color: #ef4444;\n flex-shrink: 0;\n margin-top: 0.125rem;\n}\n\n.TextInput-module_errorText__ba7lR {\n font-size: 0.875rem;\n line-height: 1.25rem;\n color: #dc2626;\n}\n\n/* Password strength */\n.TextInput-module_passwordStrength__ICyJU {\n margin-top: 0.5rem;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.TextInput-module_strengthBar__3c8Yf {\n display: flex;\n gap: 0.25rem;\n}\n\n.TextInput-module_strengthSegment__76ih4 {\n height: 0.375rem;\n flex: 1;\n border-radius: 9999px;\n transition: background-color 150ms ease;\n}\n\n.TextInput-module_strengthSegmentInactive__RK1Q8 {\n background: #e5e7eb;\n}\n\n.TextInput-module_strengthSegmentWeak__BFvgT {\n background: #ef4444;\n}\n\n.TextInput-module_strengthSegmentFair__AOJW5 {\n background: #f59e0b;\n}\n\n.TextInput-module_strengthSegmentGood__uGgTx {\n background: #eab308;\n}\n\n.TextInput-module_strengthSegmentStrong__vP5Yi {\n background: #84cc16;\n}\n\n.TextInput-module_strengthSegmentVeryStrong__4Tull {\n background: #10b981;\n}\n\n.TextInput-module_strengthLabel__PpEO9 {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.TextInput-module_strengthText__jfVUh {\n font-size: 0.75rem;\n line-height: 1rem;\n color: #4b5563;\n}\n\n.TextInput-module_strengthValue__04hhw {\n font-weight: 600;\n}\n\n.TextInput-module_strengthValueWeak__8Ek8Q {\n color: #dc2626;\n}\n\n.TextInput-module_strengthValueFair__70N63 {\n color: #d97706;\n}\n\n.TextInput-module_strengthValueGood__NgsOd {\n color: #ca8a04;\n}\n\n.TextInput-module_strengthValueStrong__qaKsi {\n color: #65a30d;\n}\n\n.TextInput-module_strengthValueVeryStrong__80d9m {\n color: #059669;\n}\n\n/* Requirements checklist */\n.TextInput-module_requirements__eD6oz {\n font-size: 0.75rem;\n line-height: 1rem;\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.5rem;\n background: #f9fafb;\n border-radius: 0.375rem;\n border: 1px solid #e5e7eb;\n}\n\n.TextInput-module_requirement__KoZx2 {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.TextInput-module_requirementIcon__VjQXJ {\n width: 0.875rem;\n height: 0.875rem;\n flex-shrink: 0;\n}\n\n.TextInput-module_requirementIconMet__UNZFD {\n color: #10b981;\n}\n\n.TextInput-module_requirementIconUnmet__1MF9h {\n color: #d1d5db;\n}\n\n.TextInput-module_requirementText__fFcdn {\n color: #6b7280;\n}\n\n.TextInput-module_requirementTextMet__eGbSi {\n color: #374151;\n}\n");const ke=(...e)=>e.filter(Boolean).join(" "),Se=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ne=({label:e,value:n,onChange:o,placeholder:a,error:l,required:s=false,disabled:i=false,type:u="text",className:c="",hint:d,maxLength:m,minLength:p,pattern:f,icon:g,onBlur:h,onFocus:x,autoComplete:v,validateEmail:I=false,showPasswordStrength:Ne=false,requiredMessage:we,emailValidMessage:Oe,emailInvalidMessage:ze,emailSuggestionMessage:Ce,strengthLabels:Re,strengthLabelPrefix:$e,requirementsLabels:Ae})=>{const[Ee,Pe]=useState(false),Le=useMemo(()=>I&&n?(e=>{if(!e||!e.includes("@"))return null;const[n,t]=e.split("@");if(!t)return null;const r={"gmial.com":"gmail.com","gmai.com":"gmail.com","gmil.com":"gmail.com","hotmial.com":"hotmail.com","hotmal.com":"hotmail.com","outlok.com":"outlook.com","yahooo.com":"yahoo.com","yaho.com":"yahoo.com"};return r[t.toLowerCase()]?`${n}@${r[t.toLowerCase()]}`:null})(n):null,[I,n]),qe=useMemo(()=>{if(!I||!n)return null;return Se.test(n)&&!(null!==Le)},[I,n,Le]),Ve=I&&n&&!qe&&!Le,Fe=Ve&&ze||null,Me=!p||n.length>=p,Ue=!m||n.length<=m,Be=!f||new RegExp(f).test(n),Ze=Boolean(n&&!l&&!Ve&&!Le&&(!s||n.length>0)&&(!I||qe)&&Me&&Ue&&Be),De=useMemo(()=>"password"===u&&Ne?(e=>{if(!e)return {score:0,strength:"none"};let n=0;const t=/[A-Z]/.test(e);return /[a-z]/.test(e)&&n++,t&&n++,/\d/.test(e)&&n++,/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(e)&&n++,e.length>=8&&n++,n<=1?{score:n,strength:"weak"}:n<=2?{score:n,strength:"fair"}:n<=3?{score:n,strength:"good"}:4===n?{score:n,strength:"strong"}:{score:n,strength:"very-strong"}})(n):null,[u,n,Ne]),Ge=m&&"text"===u&&n,We=n.length,Ye=m?We/m*100:0,Ke=Ye>80,Je=Ye>=100;return _.jsxs("div",{className:ke(j,c),"data-testid":"text-input",children:[e&&_.jsxs("label",{className:k,children:[e,s&&_.jsx("span",{className:S,children:"*"})]}),_.jsxs("div",{className:N,children:[g&&!Ee&&_.jsx("div",{className:w,children:g}),_.jsx("input",{type:u,value:n,onChange:e=>o(e.target.value),onFocus:()=>{Pe(true),x?.();},onBlur:()=>{Pe(false),h?.();},placeholder:a,disabled:i,maxLength:m,minLength:p,pattern:f,autoComplete:v,className:ke(O,g?z:void 0,Ge?C:void 0,l||Ve?R:void 0,i||l||Fe||!Ze?void 0:$),"data-testid":"input-field","data-error":!!l||!!Ve}),Ge&&_.jsxs("div",{className:ke(A,Je?L:Ke?P:E),"data-testid":"char-count",children:[_.jsxs("div",{children:[We,"/",m]}),Je&&_.jsx(b,{className:q,size:"sm"})]})]}),Ge&&m>20&&_.jsx("div",{className:V,children:_.jsx("div",{className:ke(F,Je?B:Ke?U:M),style:{width:`${Math.min(Ye,100)}%`}})}),d&&!l&&!Ve&&_.jsx("p",{className:Z,children:d}),s&&!n&&!l&&!Ve&&we&&_.jsx("p",{className:D,children:we}),I&&n&&qe&&Oe&&_.jsxs("div",{className:ke(G,K),children:[_.jsx(y,{className:W,size:"sm"}),_.jsx("p",{className:Y,children:Oe})]}),Le&&!l&&Ce&&_.jsxs("div",{className:ke(G,J),children:[_.jsx(T,{className:W,size:"sm"}),_.jsxs("p",{className:Y,children:[Ce.replace("{suggestion}",Le),_.jsx("button",{type:"button",onClick:()=>o(Le),className:Q,children:Le})]})]}),De&&De.score>0&&_.jsxs("div",{className:ne,children:[_.jsx("div",{className:te,children:[0,1,2,3,4].map(e=>_.jsx("div",{className:ke(re,e<De.score?"weak"===De.strength?ae:"fair"===De.strength?le:"good"===De.strength?se:"strong"===De.strength?ie:ue:oe)},e))}),($e||Re?.[De.strength])&&_.jsx("div",{className:ce,children:_.jsxs("p",{className:de,children:[$e&&`${$e} `,_.jsx("span",{className:ke(me,"weak"===De.strength?pe:"fair"===De.strength?_e:"good"===De.strength?fe:"strong"===De.strength?ge:he),children:Re?.[De.strength]})]})}),Ae&&_.jsxs("div",{className:xe,children:[Ae.lowercase&&_.jsxs("div",{className:ye,children:[_.jsx(y,{className:ke(be,/[a-z]/.test(n)?Te:ve),size:"sm"}),_.jsx("span",{className:ke(Ie,/[a-z]/.test(n)&&je),children:Ae.lowercase})]}),Ae.uppercase&&_.jsxs("div",{className:ye,children:[_.jsx(y,{className:ke(be,/[A-Z]/.test(n)?Te:ve),size:"sm"}),_.jsx("span",{className:ke(Ie,/[A-Z]/.test(n)&&je),children:Ae.uppercase})]}),Ae.number&&_.jsxs("div",{className:ye,children:[_.jsx(y,{className:ke(be,/\d/.test(n)?Te:ve),size:"sm"}),_.jsx("span",{className:ke(Ie,/\d/.test(n)&&je),children:Ae.number})]}),Ae.special&&_.jsxs("div",{className:ye,children:[_.jsx(y,{className:ke(be,/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(n)?Te:ve),size:"sm"}),_.jsx("span",{className:ke(Ie,/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/.test(n)&&je),children:Ae.special})]}),Ae.minLength&&_.jsxs("div",{className:ye,children:[_.jsx(y,{className:ke(be,n.length>=8?Te:ve),size:"sm"}),_.jsx("span",{className:ke(Ie,n.length>=8&&je),children:Ae.minLength})]})]})]}),(l||Ve&&ze)&&_.jsxs("div",{className:H,children:[_.jsx(b,{className:X,size:"sm"}),_.jsx("p",{className:ee,children:l||ze})]})]})};
1575
+
1576
+ function styleInject(css, ref) {
1577
+ if ( ref === void 0 ) ref = {};
1578
+ var insertAt = ref.insertAt;
1579
+
1580
+ if (typeof document === 'undefined') { return; }
1581
+
1582
+ var head = document.head || document.getElementsByTagName('head')[0];
1583
+ var style = document.createElement('style');
1584
+ style.type = 'text/css';
1585
+
1586
+ if (insertAt === 'top') {
1587
+ if (head.firstChild) {
1588
+ head.insertBefore(style, head.firstChild);
1589
+ } else {
1590
+ head.appendChild(style);
1591
+ }
1592
+ } else {
1593
+ head.appendChild(style);
1594
+ }
1595
+
1596
+ if (style.styleSheet) {
1597
+ style.styleSheet.cssText = css;
1598
+ } else {
1599
+ style.appendChild(document.createTextNode(css));
1600
+ }
1601
+ }
1602
+
1603
+ var css_248z = ".IdentificationInput-module_container__-70Fo {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n width: 100%;\n max-width: 420px;\n}\n";
1604
+ var styles = {"container":"IdentificationInput-module_container__-70Fo"};
1605
+ styleInject(css_248z);
1606
+
1607
+ const PERU_IDENTIFICATION_DOCS = {
1608
+ dni: {
1609
+ type: "dni",
1610
+ label: "DNI",
1611
+ description: "National ID (8 digits)",
1612
+ maxLength: 8,
1613
+ alphanumeric: false,
1614
+ placeholder: "12345678",
1615
+ hint: "Enter 8 digits",
1616
+ },
1617
+ ce: {
1618
+ type: "ce",
1619
+ label: "CE",
1620
+ description: "Foreign ID (9 digits)",
1621
+ maxLength: 9,
1622
+ alphanumeric: false,
1623
+ placeholder: "123456789",
1624
+ hint: "Enter 9 digits",
1625
+ },
1626
+ passport: {
1627
+ type: "passport",
1628
+ label: "Passport",
1629
+ description: "Passport (alphanumeric)",
1630
+ maxLength: 12,
1631
+ alphanumeric: true,
1632
+ placeholder: "A1234567",
1633
+ hint: "Enter the passport number",
1634
+ },
1635
+ };
1636
+ const formatIdentificationInput = (type, value) => {
1637
+ const doc = PERU_IDENTIFICATION_DOCS[type];
1638
+ if (!doc)
1639
+ return value;
1640
+ const normalized = doc.alphanumeric
1641
+ ? value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()
1642
+ : value.replace(/\D/g, "");
1643
+ return normalized.slice(0, doc.maxLength);
1644
+ };
1645
+ const getIdentificationPlaceholder = (type) => {
1646
+ return PERU_IDENTIFICATION_DOCS[type]?.placeholder ?? "";
1647
+ };
1648
+ const getIdentificationHint = (type) => {
1649
+ return PERU_IDENTIFICATION_DOCS[type]?.hint ?? "";
1650
+ };
1651
+
1652
+ const IdentificationInput = ({ documentType, onDocumentTypeChange, identificationNumber, onIdentificationNumberChange, documentTypeError, identificationNumberError, required = false, disabled = false, labels, className = "", }) => {
1653
+ const selectedDoc = documentType
1654
+ ? PERU_IDENTIFICATION_DOCS[documentType]
1655
+ : null;
1656
+ const handleIdentificationChange = (value) => {
1657
+ // Format input according to document type
1658
+ if (documentType) {
1659
+ const formatted = formatIdentificationInput(documentType, value);
1660
+ onIdentificationNumberChange(formatted);
1661
+ }
1662
+ else {
1663
+ onIdentificationNumberChange(value);
1664
+ }
1665
+ };
1666
+ const documentTypeOptions = Object.values(PERU_IDENTIFICATION_DOCS).map((doc) => ({
1667
+ value: doc.type,
1668
+ label: doc.label,
1669
+ description: doc.description,
1670
+ }));
1671
+ return (jsxRuntimeExports$2.jsxs("div", { className: [styles.container, className].filter(Boolean).join(" "), "data-testid": "identification-input", children: [jsxRuntimeExports$2.jsx(Autocomplete, { label: labels.documentType, value: documentType, onChange: (value) => {
1672
+ onDocumentTypeChange(value);
1673
+ // Reset identification number when changing document type
1674
+ onIdentificationNumberChange("");
1675
+ }, options: documentTypeOptions, placeholder: labels.selectDocumentType, error: documentTypeError, required: required, disabled: disabled, hint: labels.documentTypeHint, searchable: false, clearable: true }), documentType && selectedDoc && (jsxRuntimeExports$2.jsx(Ne, { label: `${labels.identificationNumber} - ${selectedDoc.label}`, value: identificationNumber, onChange: handleIdentificationChange, placeholder: getIdentificationPlaceholder(documentType), error: identificationNumberError, hint: getIdentificationHint(documentType), required: required, disabled: disabled, maxLength: selectedDoc.maxLength, type: selectedDoc.alphanumeric ? "text" : "tel", autoComplete: "off" }))] }));
1676
+ };
1677
+
1678
+ export { IdentificationInput as default };