@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,1698 @@
1
+ 'use strict';
2
+
3
+ var require$$0__default = require('react');
4
+
5
+ function _interopNamespaceDefault(e) {
6
+ var n = Object.create(null);
7
+ if (e) {
8
+ Object.keys(e).forEach(function (k) {
9
+ if (k !== 'default') {
10
+ var d = Object.getOwnPropertyDescriptor(e, k);
11
+ Object.defineProperty(n, k, d.get ? d : {
12
+ enumerable: true,
13
+ get: function () { return e[k]; }
14
+ });
15
+ }
16
+ });
17
+ }
18
+ n.default = e;
19
+ return Object.freeze(n);
20
+ }
21
+
22
+ var require$$0__default__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$0__default);
23
+
24
+ var jsxRuntime$2 = {exports: {}};
25
+
26
+ var reactJsxRuntime_production$2 = {};
27
+
28
+ /**
29
+ * @license React
30
+ * react-jsx-runtime.production.js
31
+ *
32
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
33
+ *
34
+ * This source code is licensed under the MIT license found in the
35
+ * LICENSE file in the root directory of this source tree.
36
+ */
37
+
38
+ var hasRequiredReactJsxRuntime_production$2;
39
+
40
+ function requireReactJsxRuntime_production$2 () {
41
+ if (hasRequiredReactJsxRuntime_production$2) return reactJsxRuntime_production$2;
42
+ hasRequiredReactJsxRuntime_production$2 = 1;
43
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
44
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
45
+ function jsxProd(type, config, maybeKey) {
46
+ var key = null;
47
+ void 0 !== maybeKey && (key = "" + maybeKey);
48
+ void 0 !== config.key && (key = "" + config.key);
49
+ if ("key" in config) {
50
+ maybeKey = {};
51
+ for (var propName in config)
52
+ "key" !== propName && (maybeKey[propName] = config[propName]);
53
+ } else maybeKey = config;
54
+ config = maybeKey.ref;
55
+ return {
56
+ $$typeof: REACT_ELEMENT_TYPE,
57
+ type: type,
58
+ key: key,
59
+ ref: void 0 !== config ? config : null,
60
+ props: maybeKey
61
+ };
62
+ }
63
+ reactJsxRuntime_production$2.Fragment = REACT_FRAGMENT_TYPE;
64
+ reactJsxRuntime_production$2.jsx = jsxProd;
65
+ reactJsxRuntime_production$2.jsxs = jsxProd;
66
+ return reactJsxRuntime_production$2;
67
+ }
68
+
69
+ var reactJsxRuntime_development$2 = {};
70
+
71
+ /**
72
+ * @license React
73
+ * react-jsx-runtime.development.js
74
+ *
75
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
76
+ *
77
+ * This source code is licensed under the MIT license found in the
78
+ * LICENSE file in the root directory of this source tree.
79
+ */
80
+
81
+ var hasRequiredReactJsxRuntime_development$2;
82
+
83
+ function requireReactJsxRuntime_development$2 () {
84
+ if (hasRequiredReactJsxRuntime_development$2) return reactJsxRuntime_development$2;
85
+ hasRequiredReactJsxRuntime_development$2 = 1;
86
+ "production" !== process.env.NODE_ENV &&
87
+ (function () {
88
+ function getComponentNameFromType(type) {
89
+ if (null == type) return null;
90
+ if ("function" === typeof type)
91
+ return type.$$typeof === REACT_CLIENT_REFERENCE
92
+ ? null
93
+ : type.displayName || type.name || null;
94
+ if ("string" === typeof type) return type;
95
+ switch (type) {
96
+ case REACT_FRAGMENT_TYPE:
97
+ return "Fragment";
98
+ case REACT_PROFILER_TYPE:
99
+ return "Profiler";
100
+ case REACT_STRICT_MODE_TYPE:
101
+ return "StrictMode";
102
+ case REACT_SUSPENSE_TYPE:
103
+ return "Suspense";
104
+ case REACT_SUSPENSE_LIST_TYPE:
105
+ return "SuspenseList";
106
+ case REACT_ACTIVITY_TYPE:
107
+ return "Activity";
108
+ }
109
+ if ("object" === typeof type)
110
+ switch (
111
+ ("number" === typeof type.tag &&
112
+ console.error(
113
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
114
+ ),
115
+ type.$$typeof)
116
+ ) {
117
+ case REACT_PORTAL_TYPE:
118
+ return "Portal";
119
+ case REACT_CONTEXT_TYPE:
120
+ return type.displayName || "Context";
121
+ case REACT_CONSUMER_TYPE:
122
+ return (type._context.displayName || "Context") + ".Consumer";
123
+ case REACT_FORWARD_REF_TYPE:
124
+ var innerType = type.render;
125
+ type = type.displayName;
126
+ type ||
127
+ ((type = innerType.displayName || innerType.name || ""),
128
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
129
+ return type;
130
+ case REACT_MEMO_TYPE:
131
+ return (
132
+ (innerType = type.displayName || null),
133
+ null !== innerType
134
+ ? innerType
135
+ : getComponentNameFromType(type.type) || "Memo"
136
+ );
137
+ case REACT_LAZY_TYPE:
138
+ innerType = type._payload;
139
+ type = type._init;
140
+ try {
141
+ return getComponentNameFromType(type(innerType));
142
+ } catch (x) {}
143
+ }
144
+ return null;
145
+ }
146
+ function testStringCoercion(value) {
147
+ return "" + value;
148
+ }
149
+ function checkKeyStringCoercion(value) {
150
+ try {
151
+ testStringCoercion(value);
152
+ var JSCompiler_inline_result = !1;
153
+ } catch (e) {
154
+ JSCompiler_inline_result = true;
155
+ }
156
+ if (JSCompiler_inline_result) {
157
+ JSCompiler_inline_result = console;
158
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
159
+ var JSCompiler_inline_result$jscomp$0 =
160
+ ("function" === typeof Symbol &&
161
+ Symbol.toStringTag &&
162
+ value[Symbol.toStringTag]) ||
163
+ value.constructor.name ||
164
+ "Object";
165
+ JSCompiler_temp_const.call(
166
+ JSCompiler_inline_result,
167
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
168
+ JSCompiler_inline_result$jscomp$0
169
+ );
170
+ return testStringCoercion(value);
171
+ }
172
+ }
173
+ function getTaskName(type) {
174
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
175
+ if (
176
+ "object" === typeof type &&
177
+ null !== type &&
178
+ type.$$typeof === REACT_LAZY_TYPE
179
+ )
180
+ return "<...>";
181
+ try {
182
+ var name = getComponentNameFromType(type);
183
+ return name ? "<" + name + ">" : "<...>";
184
+ } catch (x) {
185
+ return "<...>";
186
+ }
187
+ }
188
+ function getOwner() {
189
+ var dispatcher = ReactSharedInternals.A;
190
+ return null === dispatcher ? null : dispatcher.getOwner();
191
+ }
192
+ function UnknownOwner() {
193
+ return Error("react-stack-top-frame");
194
+ }
195
+ function hasValidKey(config) {
196
+ if (hasOwnProperty.call(config, "key")) {
197
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
198
+ if (getter && getter.isReactWarning) return false;
199
+ }
200
+ return void 0 !== config.key;
201
+ }
202
+ function defineKeyPropWarningGetter(props, displayName) {
203
+ function warnAboutAccessingKey() {
204
+ specialPropKeyWarningShown ||
205
+ ((specialPropKeyWarningShown = true),
206
+ console.error(
207
+ "%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)",
208
+ displayName
209
+ ));
210
+ }
211
+ warnAboutAccessingKey.isReactWarning = true;
212
+ Object.defineProperty(props, "key", {
213
+ get: warnAboutAccessingKey,
214
+ configurable: true
215
+ });
216
+ }
217
+ function elementRefGetterWithDeprecationWarning() {
218
+ var componentName = getComponentNameFromType(this.type);
219
+ didWarnAboutElementRef[componentName] ||
220
+ ((didWarnAboutElementRef[componentName] = true),
221
+ console.error(
222
+ "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."
223
+ ));
224
+ componentName = this.props.ref;
225
+ return void 0 !== componentName ? componentName : null;
226
+ }
227
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
228
+ var refProp = props.ref;
229
+ type = {
230
+ $$typeof: REACT_ELEMENT_TYPE,
231
+ type: type,
232
+ key: key,
233
+ props: props,
234
+ _owner: owner
235
+ };
236
+ null !== (void 0 !== refProp ? refProp : null)
237
+ ? Object.defineProperty(type, "ref", {
238
+ enumerable: false,
239
+ get: elementRefGetterWithDeprecationWarning
240
+ })
241
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
242
+ type._store = {};
243
+ Object.defineProperty(type._store, "validated", {
244
+ configurable: false,
245
+ enumerable: false,
246
+ writable: true,
247
+ value: 0
248
+ });
249
+ Object.defineProperty(type, "_debugInfo", {
250
+ configurable: false,
251
+ enumerable: false,
252
+ writable: true,
253
+ value: null
254
+ });
255
+ Object.defineProperty(type, "_debugStack", {
256
+ configurable: false,
257
+ enumerable: false,
258
+ writable: true,
259
+ value: debugStack
260
+ });
261
+ Object.defineProperty(type, "_debugTask", {
262
+ configurable: false,
263
+ enumerable: false,
264
+ writable: true,
265
+ value: debugTask
266
+ });
267
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
268
+ return type;
269
+ }
270
+ function jsxDEVImpl(
271
+ type,
272
+ config,
273
+ maybeKey,
274
+ isStaticChildren,
275
+ debugStack,
276
+ debugTask
277
+ ) {
278
+ var children = config.children;
279
+ if (void 0 !== children)
280
+ if (isStaticChildren)
281
+ if (isArrayImpl(children)) {
282
+ for (
283
+ isStaticChildren = 0;
284
+ isStaticChildren < children.length;
285
+ isStaticChildren++
286
+ )
287
+ validateChildKeys(children[isStaticChildren]);
288
+ Object.freeze && Object.freeze(children);
289
+ } else
290
+ console.error(
291
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
292
+ );
293
+ else validateChildKeys(children);
294
+ if (hasOwnProperty.call(config, "key")) {
295
+ children = getComponentNameFromType(type);
296
+ var keys = Object.keys(config).filter(function (k) {
297
+ return "key" !== k;
298
+ });
299
+ isStaticChildren =
300
+ 0 < keys.length
301
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
302
+ : "{key: someKey}";
303
+ didWarnAboutKeySpread[children + isStaticChildren] ||
304
+ ((keys =
305
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
306
+ console.error(
307
+ '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} />',
308
+ isStaticChildren,
309
+ children,
310
+ keys,
311
+ children
312
+ ),
313
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
314
+ }
315
+ children = null;
316
+ void 0 !== maybeKey &&
317
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
318
+ hasValidKey(config) &&
319
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
320
+ if ("key" in config) {
321
+ maybeKey = {};
322
+ for (var propName in config)
323
+ "key" !== propName && (maybeKey[propName] = config[propName]);
324
+ } else maybeKey = config;
325
+ children &&
326
+ defineKeyPropWarningGetter(
327
+ maybeKey,
328
+ "function" === typeof type
329
+ ? type.displayName || type.name || "Unknown"
330
+ : type
331
+ );
332
+ return ReactElement(
333
+ type,
334
+ children,
335
+ maybeKey,
336
+ getOwner(),
337
+ debugStack,
338
+ debugTask
339
+ );
340
+ }
341
+ function validateChildKeys(node) {
342
+ isValidElement(node)
343
+ ? node._store && (node._store.validated = 1)
344
+ : "object" === typeof node &&
345
+ null !== node &&
346
+ node.$$typeof === REACT_LAZY_TYPE &&
347
+ ("fulfilled" === node._payload.status
348
+ ? isValidElement(node._payload.value) &&
349
+ node._payload.value._store &&
350
+ (node._payload.value._store.validated = 1)
351
+ : node._store && (node._store.validated = 1));
352
+ }
353
+ function isValidElement(object) {
354
+ return (
355
+ "object" === typeof object &&
356
+ null !== object &&
357
+ object.$$typeof === REACT_ELEMENT_TYPE
358
+ );
359
+ }
360
+ var React = require$$0__default,
361
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
362
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
363
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
364
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
365
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
366
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
367
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
368
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
369
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
370
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
371
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
372
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
373
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
374
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
375
+ ReactSharedInternals =
376
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
377
+ hasOwnProperty = Object.prototype.hasOwnProperty,
378
+ isArrayImpl = Array.isArray,
379
+ createTask = console.createTask
380
+ ? console.createTask
381
+ : function () {
382
+ return null;
383
+ };
384
+ React = {
385
+ react_stack_bottom_frame: function (callStackForError) {
386
+ return callStackForError();
387
+ }
388
+ };
389
+ var specialPropKeyWarningShown;
390
+ var didWarnAboutElementRef = {};
391
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
392
+ React,
393
+ UnknownOwner
394
+ )();
395
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
396
+ var didWarnAboutKeySpread = {};
397
+ reactJsxRuntime_development$2.Fragment = REACT_FRAGMENT_TYPE;
398
+ reactJsxRuntime_development$2.jsx = function (type, config, maybeKey) {
399
+ var trackActualOwner =
400
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
401
+ return jsxDEVImpl(
402
+ type,
403
+ config,
404
+ maybeKey,
405
+ false,
406
+ trackActualOwner
407
+ ? Error("react-stack-top-frame")
408
+ : unknownOwnerDebugStack,
409
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
410
+ );
411
+ };
412
+ reactJsxRuntime_development$2.jsxs = function (type, config, maybeKey) {
413
+ var trackActualOwner =
414
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
415
+ return jsxDEVImpl(
416
+ type,
417
+ config,
418
+ maybeKey,
419
+ true,
420
+ trackActualOwner
421
+ ? Error("react-stack-top-frame")
422
+ : unknownOwnerDebugStack,
423
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
424
+ );
425
+ };
426
+ })();
427
+ return reactJsxRuntime_development$2;
428
+ }
429
+
430
+ var hasRequiredJsxRuntime$2;
431
+
432
+ function requireJsxRuntime$2 () {
433
+ if (hasRequiredJsxRuntime$2) return jsxRuntime$2.exports;
434
+ hasRequiredJsxRuntime$2 = 1;
435
+
436
+ if (process.env.NODE_ENV === 'production') {
437
+ jsxRuntime$2.exports = requireReactJsxRuntime_production$2();
438
+ } else {
439
+ jsxRuntime$2.exports = requireReactJsxRuntime_development$2();
440
+ }
441
+ return jsxRuntime$2.exports;
442
+ }
443
+
444
+ var jsxRuntimeExports$2 = requireJsxRuntime$2();
445
+
446
+ var jsxRuntime$1 = {exports: {}};
447
+
448
+ var reactJsxRuntime_production$1 = {};
449
+
450
+ /**
451
+ * @license React
452
+ * react-jsx-runtime.production.js
453
+ *
454
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
455
+ *
456
+ * This source code is licensed under the MIT license found in the
457
+ * LICENSE file in the root directory of this source tree.
458
+ */
459
+
460
+ var hasRequiredReactJsxRuntime_production$1;
461
+
462
+ function requireReactJsxRuntime_production$1 () {
463
+ if (hasRequiredReactJsxRuntime_production$1) return reactJsxRuntime_production$1;
464
+ hasRequiredReactJsxRuntime_production$1 = 1;
465
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
466
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
467
+ function jsxProd(type, config, maybeKey) {
468
+ var key = null;
469
+ void 0 !== maybeKey && (key = "" + maybeKey);
470
+ void 0 !== config.key && (key = "" + config.key);
471
+ if ("key" in config) {
472
+ maybeKey = {};
473
+ for (var propName in config)
474
+ "key" !== propName && (maybeKey[propName] = config[propName]);
475
+ } else maybeKey = config;
476
+ config = maybeKey.ref;
477
+ return {
478
+ $$typeof: REACT_ELEMENT_TYPE,
479
+ type: type,
480
+ key: key,
481
+ ref: void 0 !== config ? config : null,
482
+ props: maybeKey
483
+ };
484
+ }
485
+ reactJsxRuntime_production$1.Fragment = REACT_FRAGMENT_TYPE;
486
+ reactJsxRuntime_production$1.jsx = jsxProd;
487
+ reactJsxRuntime_production$1.jsxs = jsxProd;
488
+ return reactJsxRuntime_production$1;
489
+ }
490
+
491
+ var reactJsxRuntime_development$1 = {};
492
+
493
+ /**
494
+ * @license React
495
+ * react-jsx-runtime.development.js
496
+ *
497
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
498
+ *
499
+ * This source code is licensed under the MIT license found in the
500
+ * LICENSE file in the root directory of this source tree.
501
+ */
502
+
503
+ var hasRequiredReactJsxRuntime_development$1;
504
+
505
+ function requireReactJsxRuntime_development$1 () {
506
+ if (hasRequiredReactJsxRuntime_development$1) return reactJsxRuntime_development$1;
507
+ hasRequiredReactJsxRuntime_development$1 = 1;
508
+ "production" !== process.env.NODE_ENV &&
509
+ (function () {
510
+ function getComponentNameFromType(type) {
511
+ if (null == type) return null;
512
+ if ("function" === typeof type)
513
+ return type.$$typeof === REACT_CLIENT_REFERENCE
514
+ ? null
515
+ : type.displayName || type.name || null;
516
+ if ("string" === typeof type) return type;
517
+ switch (type) {
518
+ case REACT_FRAGMENT_TYPE:
519
+ return "Fragment";
520
+ case REACT_PROFILER_TYPE:
521
+ return "Profiler";
522
+ case REACT_STRICT_MODE_TYPE:
523
+ return "StrictMode";
524
+ case REACT_SUSPENSE_TYPE:
525
+ return "Suspense";
526
+ case REACT_SUSPENSE_LIST_TYPE:
527
+ return "SuspenseList";
528
+ case REACT_ACTIVITY_TYPE:
529
+ return "Activity";
530
+ }
531
+ if ("object" === typeof type)
532
+ switch (
533
+ ("number" === typeof type.tag &&
534
+ console.error(
535
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
536
+ ),
537
+ type.$$typeof)
538
+ ) {
539
+ case REACT_PORTAL_TYPE:
540
+ return "Portal";
541
+ case REACT_CONTEXT_TYPE:
542
+ return type.displayName || "Context";
543
+ case REACT_CONSUMER_TYPE:
544
+ return (type._context.displayName || "Context") + ".Consumer";
545
+ case REACT_FORWARD_REF_TYPE:
546
+ var innerType = type.render;
547
+ type = type.displayName;
548
+ type ||
549
+ ((type = innerType.displayName || innerType.name || ""),
550
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
551
+ return type;
552
+ case REACT_MEMO_TYPE:
553
+ return (
554
+ (innerType = type.displayName || null),
555
+ null !== innerType
556
+ ? innerType
557
+ : getComponentNameFromType(type.type) || "Memo"
558
+ );
559
+ case REACT_LAZY_TYPE:
560
+ innerType = type._payload;
561
+ type = type._init;
562
+ try {
563
+ return getComponentNameFromType(type(innerType));
564
+ } catch (x) {}
565
+ }
566
+ return null;
567
+ }
568
+ function testStringCoercion(value) {
569
+ return "" + value;
570
+ }
571
+ function checkKeyStringCoercion(value) {
572
+ try {
573
+ testStringCoercion(value);
574
+ var JSCompiler_inline_result = !1;
575
+ } catch (e) {
576
+ JSCompiler_inline_result = true;
577
+ }
578
+ if (JSCompiler_inline_result) {
579
+ JSCompiler_inline_result = console;
580
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
581
+ var JSCompiler_inline_result$jscomp$0 =
582
+ ("function" === typeof Symbol &&
583
+ Symbol.toStringTag &&
584
+ value[Symbol.toStringTag]) ||
585
+ value.constructor.name ||
586
+ "Object";
587
+ JSCompiler_temp_const.call(
588
+ JSCompiler_inline_result,
589
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
590
+ JSCompiler_inline_result$jscomp$0
591
+ );
592
+ return testStringCoercion(value);
593
+ }
594
+ }
595
+ function getTaskName(type) {
596
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
597
+ if (
598
+ "object" === typeof type &&
599
+ null !== type &&
600
+ type.$$typeof === REACT_LAZY_TYPE
601
+ )
602
+ return "<...>";
603
+ try {
604
+ var name = getComponentNameFromType(type);
605
+ return name ? "<" + name + ">" : "<...>";
606
+ } catch (x) {
607
+ return "<...>";
608
+ }
609
+ }
610
+ function getOwner() {
611
+ var dispatcher = ReactSharedInternals.A;
612
+ return null === dispatcher ? null : dispatcher.getOwner();
613
+ }
614
+ function UnknownOwner() {
615
+ return Error("react-stack-top-frame");
616
+ }
617
+ function hasValidKey(config) {
618
+ if (hasOwnProperty.call(config, "key")) {
619
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
620
+ if (getter && getter.isReactWarning) return false;
621
+ }
622
+ return void 0 !== config.key;
623
+ }
624
+ function defineKeyPropWarningGetter(props, displayName) {
625
+ function warnAboutAccessingKey() {
626
+ specialPropKeyWarningShown ||
627
+ ((specialPropKeyWarningShown = true),
628
+ console.error(
629
+ "%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)",
630
+ displayName
631
+ ));
632
+ }
633
+ warnAboutAccessingKey.isReactWarning = true;
634
+ Object.defineProperty(props, "key", {
635
+ get: warnAboutAccessingKey,
636
+ configurable: true
637
+ });
638
+ }
639
+ function elementRefGetterWithDeprecationWarning() {
640
+ var componentName = getComponentNameFromType(this.type);
641
+ didWarnAboutElementRef[componentName] ||
642
+ ((didWarnAboutElementRef[componentName] = true),
643
+ console.error(
644
+ "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."
645
+ ));
646
+ componentName = this.props.ref;
647
+ return void 0 !== componentName ? componentName : null;
648
+ }
649
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
650
+ var refProp = props.ref;
651
+ type = {
652
+ $$typeof: REACT_ELEMENT_TYPE,
653
+ type: type,
654
+ key: key,
655
+ props: props,
656
+ _owner: owner
657
+ };
658
+ null !== (void 0 !== refProp ? refProp : null)
659
+ ? Object.defineProperty(type, "ref", {
660
+ enumerable: false,
661
+ get: elementRefGetterWithDeprecationWarning
662
+ })
663
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
664
+ type._store = {};
665
+ Object.defineProperty(type._store, "validated", {
666
+ configurable: false,
667
+ enumerable: false,
668
+ writable: true,
669
+ value: 0
670
+ });
671
+ Object.defineProperty(type, "_debugInfo", {
672
+ configurable: false,
673
+ enumerable: false,
674
+ writable: true,
675
+ value: null
676
+ });
677
+ Object.defineProperty(type, "_debugStack", {
678
+ configurable: false,
679
+ enumerable: false,
680
+ writable: true,
681
+ value: debugStack
682
+ });
683
+ Object.defineProperty(type, "_debugTask", {
684
+ configurable: false,
685
+ enumerable: false,
686
+ writable: true,
687
+ value: debugTask
688
+ });
689
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
690
+ return type;
691
+ }
692
+ function jsxDEVImpl(
693
+ type,
694
+ config,
695
+ maybeKey,
696
+ isStaticChildren,
697
+ debugStack,
698
+ debugTask
699
+ ) {
700
+ var children = config.children;
701
+ if (void 0 !== children)
702
+ if (isStaticChildren)
703
+ if (isArrayImpl(children)) {
704
+ for (
705
+ isStaticChildren = 0;
706
+ isStaticChildren < children.length;
707
+ isStaticChildren++
708
+ )
709
+ validateChildKeys(children[isStaticChildren]);
710
+ Object.freeze && Object.freeze(children);
711
+ } else
712
+ console.error(
713
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
714
+ );
715
+ else validateChildKeys(children);
716
+ if (hasOwnProperty.call(config, "key")) {
717
+ children = getComponentNameFromType(type);
718
+ var keys = Object.keys(config).filter(function (k) {
719
+ return "key" !== k;
720
+ });
721
+ isStaticChildren =
722
+ 0 < keys.length
723
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
724
+ : "{key: someKey}";
725
+ didWarnAboutKeySpread[children + isStaticChildren] ||
726
+ ((keys =
727
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
728
+ console.error(
729
+ '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} />',
730
+ isStaticChildren,
731
+ children,
732
+ keys,
733
+ children
734
+ ),
735
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
736
+ }
737
+ children = null;
738
+ void 0 !== maybeKey &&
739
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
740
+ hasValidKey(config) &&
741
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
742
+ if ("key" in config) {
743
+ maybeKey = {};
744
+ for (var propName in config)
745
+ "key" !== propName && (maybeKey[propName] = config[propName]);
746
+ } else maybeKey = config;
747
+ children &&
748
+ defineKeyPropWarningGetter(
749
+ maybeKey,
750
+ "function" === typeof type
751
+ ? type.displayName || type.name || "Unknown"
752
+ : type
753
+ );
754
+ return ReactElement(
755
+ type,
756
+ children,
757
+ maybeKey,
758
+ getOwner(),
759
+ debugStack,
760
+ debugTask
761
+ );
762
+ }
763
+ function validateChildKeys(node) {
764
+ isValidElement(node)
765
+ ? node._store && (node._store.validated = 1)
766
+ : "object" === typeof node &&
767
+ null !== node &&
768
+ node.$$typeof === REACT_LAZY_TYPE &&
769
+ ("fulfilled" === node._payload.status
770
+ ? isValidElement(node._payload.value) &&
771
+ node._payload.value._store &&
772
+ (node._payload.value._store.validated = 1)
773
+ : node._store && (node._store.validated = 1));
774
+ }
775
+ function isValidElement(object) {
776
+ return (
777
+ "object" === typeof object &&
778
+ null !== object &&
779
+ object.$$typeof === REACT_ELEMENT_TYPE
780
+ );
781
+ }
782
+ var React = require$$0__default,
783
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
784
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
785
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
786
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
787
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
788
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
789
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
790
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
791
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
792
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
793
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
794
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
795
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
796
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
797
+ ReactSharedInternals =
798
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
799
+ hasOwnProperty = Object.prototype.hasOwnProperty,
800
+ isArrayImpl = Array.isArray,
801
+ createTask = console.createTask
802
+ ? console.createTask
803
+ : function () {
804
+ return null;
805
+ };
806
+ React = {
807
+ react_stack_bottom_frame: function (callStackForError) {
808
+ return callStackForError();
809
+ }
810
+ };
811
+ var specialPropKeyWarningShown;
812
+ var didWarnAboutElementRef = {};
813
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
814
+ React,
815
+ UnknownOwner
816
+ )();
817
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
818
+ var didWarnAboutKeySpread = {};
819
+ reactJsxRuntime_development$1.Fragment = REACT_FRAGMENT_TYPE;
820
+ reactJsxRuntime_development$1.jsx = function (type, config, maybeKey) {
821
+ var trackActualOwner =
822
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
823
+ return jsxDEVImpl(
824
+ type,
825
+ config,
826
+ maybeKey,
827
+ false,
828
+ trackActualOwner
829
+ ? Error("react-stack-top-frame")
830
+ : unknownOwnerDebugStack,
831
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
832
+ );
833
+ };
834
+ reactJsxRuntime_development$1.jsxs = function (type, config, maybeKey) {
835
+ var trackActualOwner =
836
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
837
+ return jsxDEVImpl(
838
+ type,
839
+ config,
840
+ maybeKey,
841
+ true,
842
+ trackActualOwner
843
+ ? Error("react-stack-top-frame")
844
+ : unknownOwnerDebugStack,
845
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
846
+ );
847
+ };
848
+ })();
849
+ return reactJsxRuntime_development$1;
850
+ }
851
+
852
+ var hasRequiredJsxRuntime$1;
853
+
854
+ function requireJsxRuntime$1 () {
855
+ if (hasRequiredJsxRuntime$1) return jsxRuntime$1.exports;
856
+ hasRequiredJsxRuntime$1 = 1;
857
+
858
+ if (process.env.NODE_ENV === 'production') {
859
+ jsxRuntime$1.exports = requireReactJsxRuntime_production$1();
860
+ } else {
861
+ jsxRuntime$1.exports = requireReactJsxRuntime_development$1();
862
+ }
863
+ return jsxRuntime$1.exports;
864
+ }
865
+
866
+ var jsxRuntimeExports$1 = requireJsxRuntime$1();
867
+
868
+ var r,o$1={exports:{}},t={};var l$1,n,a$1={};
869
+ /**
870
+ * @license React
871
+ * react-jsx-runtime.development.js
872
+ *
873
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
874
+ *
875
+ * This source code is licensed under the MIT license found in the
876
+ * LICENSE file in the root directory of this source tree.
877
+ */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,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__namespace.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";
878
+
879
+ var jsxRuntime = {exports: {}};
880
+
881
+ var reactJsxRuntime_production = {};
882
+
883
+ /**
884
+ * @license React
885
+ * react-jsx-runtime.production.js
886
+ *
887
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
888
+ *
889
+ * This source code is licensed under the MIT license found in the
890
+ * LICENSE file in the root directory of this source tree.
891
+ */
892
+
893
+ var hasRequiredReactJsxRuntime_production;
894
+
895
+ function requireReactJsxRuntime_production () {
896
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
897
+ hasRequiredReactJsxRuntime_production = 1;
898
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
899
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
900
+ function jsxProd(type, config, maybeKey) {
901
+ var key = null;
902
+ void 0 !== maybeKey && (key = "" + maybeKey);
903
+ void 0 !== config.key && (key = "" + config.key);
904
+ if ("key" in config) {
905
+ maybeKey = {};
906
+ for (var propName in config)
907
+ "key" !== propName && (maybeKey[propName] = config[propName]);
908
+ } else maybeKey = config;
909
+ config = maybeKey.ref;
910
+ return {
911
+ $$typeof: REACT_ELEMENT_TYPE,
912
+ type: type,
913
+ key: key,
914
+ ref: void 0 !== config ? config : null,
915
+ props: maybeKey
916
+ };
917
+ }
918
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
919
+ reactJsxRuntime_production.jsx = jsxProd;
920
+ reactJsxRuntime_production.jsxs = jsxProd;
921
+ return reactJsxRuntime_production;
922
+ }
923
+
924
+ var reactJsxRuntime_development = {};
925
+
926
+ /**
927
+ * @license React
928
+ * react-jsx-runtime.development.js
929
+ *
930
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
931
+ *
932
+ * This source code is licensed under the MIT license found in the
933
+ * LICENSE file in the root directory of this source tree.
934
+ */
935
+
936
+ var hasRequiredReactJsxRuntime_development;
937
+
938
+ function requireReactJsxRuntime_development () {
939
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
940
+ hasRequiredReactJsxRuntime_development = 1;
941
+ "production" !== process.env.NODE_ENV &&
942
+ (function () {
943
+ function getComponentNameFromType(type) {
944
+ if (null == type) return null;
945
+ if ("function" === typeof type)
946
+ return type.$$typeof === REACT_CLIENT_REFERENCE
947
+ ? null
948
+ : type.displayName || type.name || null;
949
+ if ("string" === typeof type) return type;
950
+ switch (type) {
951
+ case REACT_FRAGMENT_TYPE:
952
+ return "Fragment";
953
+ case REACT_PROFILER_TYPE:
954
+ return "Profiler";
955
+ case REACT_STRICT_MODE_TYPE:
956
+ return "StrictMode";
957
+ case REACT_SUSPENSE_TYPE:
958
+ return "Suspense";
959
+ case REACT_SUSPENSE_LIST_TYPE:
960
+ return "SuspenseList";
961
+ case REACT_ACTIVITY_TYPE:
962
+ return "Activity";
963
+ }
964
+ if ("object" === typeof type)
965
+ switch (
966
+ ("number" === typeof type.tag &&
967
+ console.error(
968
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
969
+ ),
970
+ type.$$typeof)
971
+ ) {
972
+ case REACT_PORTAL_TYPE:
973
+ return "Portal";
974
+ case REACT_CONTEXT_TYPE:
975
+ return type.displayName || "Context";
976
+ case REACT_CONSUMER_TYPE:
977
+ return (type._context.displayName || "Context") + ".Consumer";
978
+ case REACT_FORWARD_REF_TYPE:
979
+ var innerType = type.render;
980
+ type = type.displayName;
981
+ type ||
982
+ ((type = innerType.displayName || innerType.name || ""),
983
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
984
+ return type;
985
+ case REACT_MEMO_TYPE:
986
+ return (
987
+ (innerType = type.displayName || null),
988
+ null !== innerType
989
+ ? innerType
990
+ : getComponentNameFromType(type.type) || "Memo"
991
+ );
992
+ case REACT_LAZY_TYPE:
993
+ innerType = type._payload;
994
+ type = type._init;
995
+ try {
996
+ return getComponentNameFromType(type(innerType));
997
+ } catch (x) {}
998
+ }
999
+ return null;
1000
+ }
1001
+ function testStringCoercion(value) {
1002
+ return "" + value;
1003
+ }
1004
+ function checkKeyStringCoercion(value) {
1005
+ try {
1006
+ testStringCoercion(value);
1007
+ var JSCompiler_inline_result = !1;
1008
+ } catch (e) {
1009
+ JSCompiler_inline_result = true;
1010
+ }
1011
+ if (JSCompiler_inline_result) {
1012
+ JSCompiler_inline_result = console;
1013
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
1014
+ var JSCompiler_inline_result$jscomp$0 =
1015
+ ("function" === typeof Symbol &&
1016
+ Symbol.toStringTag &&
1017
+ value[Symbol.toStringTag]) ||
1018
+ value.constructor.name ||
1019
+ "Object";
1020
+ JSCompiler_temp_const.call(
1021
+ JSCompiler_inline_result,
1022
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1023
+ JSCompiler_inline_result$jscomp$0
1024
+ );
1025
+ return testStringCoercion(value);
1026
+ }
1027
+ }
1028
+ function getTaskName(type) {
1029
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
1030
+ if (
1031
+ "object" === typeof type &&
1032
+ null !== type &&
1033
+ type.$$typeof === REACT_LAZY_TYPE
1034
+ )
1035
+ return "<...>";
1036
+ try {
1037
+ var name = getComponentNameFromType(type);
1038
+ return name ? "<" + name + ">" : "<...>";
1039
+ } catch (x) {
1040
+ return "<...>";
1041
+ }
1042
+ }
1043
+ function getOwner() {
1044
+ var dispatcher = ReactSharedInternals.A;
1045
+ return null === dispatcher ? null : dispatcher.getOwner();
1046
+ }
1047
+ function UnknownOwner() {
1048
+ return Error("react-stack-top-frame");
1049
+ }
1050
+ function hasValidKey(config) {
1051
+ if (hasOwnProperty.call(config, "key")) {
1052
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1053
+ if (getter && getter.isReactWarning) return false;
1054
+ }
1055
+ return void 0 !== config.key;
1056
+ }
1057
+ function defineKeyPropWarningGetter(props, displayName) {
1058
+ function warnAboutAccessingKey() {
1059
+ specialPropKeyWarningShown ||
1060
+ ((specialPropKeyWarningShown = true),
1061
+ console.error(
1062
+ "%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)",
1063
+ displayName
1064
+ ));
1065
+ }
1066
+ warnAboutAccessingKey.isReactWarning = true;
1067
+ Object.defineProperty(props, "key", {
1068
+ get: warnAboutAccessingKey,
1069
+ configurable: true
1070
+ });
1071
+ }
1072
+ function elementRefGetterWithDeprecationWarning() {
1073
+ var componentName = getComponentNameFromType(this.type);
1074
+ didWarnAboutElementRef[componentName] ||
1075
+ ((didWarnAboutElementRef[componentName] = true),
1076
+ console.error(
1077
+ "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."
1078
+ ));
1079
+ componentName = this.props.ref;
1080
+ return void 0 !== componentName ? componentName : null;
1081
+ }
1082
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
1083
+ var refProp = props.ref;
1084
+ type = {
1085
+ $$typeof: REACT_ELEMENT_TYPE,
1086
+ type: type,
1087
+ key: key,
1088
+ props: props,
1089
+ _owner: owner
1090
+ };
1091
+ null !== (void 0 !== refProp ? refProp : null)
1092
+ ? Object.defineProperty(type, "ref", {
1093
+ enumerable: false,
1094
+ get: elementRefGetterWithDeprecationWarning
1095
+ })
1096
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1097
+ type._store = {};
1098
+ Object.defineProperty(type._store, "validated", {
1099
+ configurable: false,
1100
+ enumerable: false,
1101
+ writable: true,
1102
+ value: 0
1103
+ });
1104
+ Object.defineProperty(type, "_debugInfo", {
1105
+ configurable: false,
1106
+ enumerable: false,
1107
+ writable: true,
1108
+ value: null
1109
+ });
1110
+ Object.defineProperty(type, "_debugStack", {
1111
+ configurable: false,
1112
+ enumerable: false,
1113
+ writable: true,
1114
+ value: debugStack
1115
+ });
1116
+ Object.defineProperty(type, "_debugTask", {
1117
+ configurable: false,
1118
+ enumerable: false,
1119
+ writable: true,
1120
+ value: debugTask
1121
+ });
1122
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1123
+ return type;
1124
+ }
1125
+ function jsxDEVImpl(
1126
+ type,
1127
+ config,
1128
+ maybeKey,
1129
+ isStaticChildren,
1130
+ debugStack,
1131
+ debugTask
1132
+ ) {
1133
+ var children = config.children;
1134
+ if (void 0 !== children)
1135
+ if (isStaticChildren)
1136
+ if (isArrayImpl(children)) {
1137
+ for (
1138
+ isStaticChildren = 0;
1139
+ isStaticChildren < children.length;
1140
+ isStaticChildren++
1141
+ )
1142
+ validateChildKeys(children[isStaticChildren]);
1143
+ Object.freeze && Object.freeze(children);
1144
+ } else
1145
+ console.error(
1146
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1147
+ );
1148
+ else validateChildKeys(children);
1149
+ if (hasOwnProperty.call(config, "key")) {
1150
+ children = getComponentNameFromType(type);
1151
+ var keys = Object.keys(config).filter(function (k) {
1152
+ return "key" !== k;
1153
+ });
1154
+ isStaticChildren =
1155
+ 0 < keys.length
1156
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
1157
+ : "{key: someKey}";
1158
+ didWarnAboutKeySpread[children + isStaticChildren] ||
1159
+ ((keys =
1160
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
1161
+ console.error(
1162
+ '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} />',
1163
+ isStaticChildren,
1164
+ children,
1165
+ keys,
1166
+ children
1167
+ ),
1168
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
1169
+ }
1170
+ children = null;
1171
+ void 0 !== maybeKey &&
1172
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
1173
+ hasValidKey(config) &&
1174
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
1175
+ if ("key" in config) {
1176
+ maybeKey = {};
1177
+ for (var propName in config)
1178
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1179
+ } else maybeKey = config;
1180
+ children &&
1181
+ defineKeyPropWarningGetter(
1182
+ maybeKey,
1183
+ "function" === typeof type
1184
+ ? type.displayName || type.name || "Unknown"
1185
+ : type
1186
+ );
1187
+ return ReactElement(
1188
+ type,
1189
+ children,
1190
+ maybeKey,
1191
+ getOwner(),
1192
+ debugStack,
1193
+ debugTask
1194
+ );
1195
+ }
1196
+ function validateChildKeys(node) {
1197
+ isValidElement(node)
1198
+ ? node._store && (node._store.validated = 1)
1199
+ : "object" === typeof node &&
1200
+ null !== node &&
1201
+ node.$$typeof === REACT_LAZY_TYPE &&
1202
+ ("fulfilled" === node._payload.status
1203
+ ? isValidElement(node._payload.value) &&
1204
+ node._payload.value._store &&
1205
+ (node._payload.value._store.validated = 1)
1206
+ : node._store && (node._store.validated = 1));
1207
+ }
1208
+ function isValidElement(object) {
1209
+ return (
1210
+ "object" === typeof object &&
1211
+ null !== object &&
1212
+ object.$$typeof === REACT_ELEMENT_TYPE
1213
+ );
1214
+ }
1215
+ var React = require$$0__default,
1216
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1217
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1218
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1219
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1220
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1221
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1222
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1223
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1224
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1225
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1226
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
1227
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1228
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1229
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1230
+ ReactSharedInternals =
1231
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1232
+ hasOwnProperty = Object.prototype.hasOwnProperty,
1233
+ isArrayImpl = Array.isArray,
1234
+ createTask = console.createTask
1235
+ ? console.createTask
1236
+ : function () {
1237
+ return null;
1238
+ };
1239
+ React = {
1240
+ react_stack_bottom_frame: function (callStackForError) {
1241
+ return callStackForError();
1242
+ }
1243
+ };
1244
+ var specialPropKeyWarningShown;
1245
+ var didWarnAboutElementRef = {};
1246
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
1247
+ React,
1248
+ UnknownOwner
1249
+ )();
1250
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1251
+ var didWarnAboutKeySpread = {};
1252
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1253
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
1254
+ var trackActualOwner =
1255
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1256
+ return jsxDEVImpl(
1257
+ type,
1258
+ config,
1259
+ maybeKey,
1260
+ false,
1261
+ trackActualOwner
1262
+ ? Error("react-stack-top-frame")
1263
+ : unknownOwnerDebugStack,
1264
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1265
+ );
1266
+ };
1267
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
1268
+ var trackActualOwner =
1269
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1270
+ return jsxDEVImpl(
1271
+ type,
1272
+ config,
1273
+ maybeKey,
1274
+ true,
1275
+ trackActualOwner
1276
+ ? Error("react-stack-top-frame")
1277
+ : unknownOwnerDebugStack,
1278
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1279
+ );
1280
+ };
1281
+ })();
1282
+ return reactJsxRuntime_development;
1283
+ }
1284
+
1285
+ var hasRequiredJsxRuntime;
1286
+
1287
+ function requireJsxRuntime () {
1288
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
1289
+ hasRequiredJsxRuntime = 1;
1290
+
1291
+ if (process.env.NODE_ENV === 'production') {
1292
+ jsxRuntime.exports = requireReactJsxRuntime_production();
1293
+ } else {
1294
+ jsxRuntime.exports = requireReactJsxRuntime_development();
1295
+ }
1296
+ return jsxRuntime.exports;
1297
+ }
1298
+
1299
+ var jsxRuntimeExports = requireJsxRuntime();
1300
+
1301
+ function styleInject$1(css, ref) {
1302
+ if ( ref === void 0 ) ref = {};
1303
+ var insertAt = ref.insertAt;
1304
+
1305
+ if (typeof document === 'undefined') { return; }
1306
+
1307
+ var head = document.head || document.getElementsByTagName('head')[0];
1308
+ var style = document.createElement('style');
1309
+ style.type = 'text/css';
1310
+
1311
+ if (insertAt === 'top') {
1312
+ if (head.firstChild) {
1313
+ head.insertBefore(style, head.firstChild);
1314
+ } else {
1315
+ head.appendChild(style);
1316
+ }
1317
+ } else {
1318
+ head.appendChild(style);
1319
+ }
1320
+
1321
+ if (style.styleSheet) {
1322
+ style.styleSheet.cssText = css;
1323
+ } else {
1324
+ style.appendChild(document.createTextNode(css));
1325
+ }
1326
+ }
1327
+
1328
+ 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";
1329
+ 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"};
1330
+ styleInject$1(css_248z$1);
1331
+
1332
+ function classNames$1(...classes) {
1333
+ return classes.filter(Boolean).join(" ");
1334
+ }
1335
+ /**
1336
+ * LoadingSpinner component
1337
+ * Displays a loading indicator with multiple style variants
1338
+ *
1339
+ * @param variant - 'spinner' (default circular spinner), 'dots' (three bouncing dots), 'pulse' (pulsing circle), 'ring' (rotating ring)
1340
+ * @param inline - If true, removes centering and margins for inline use (e.g., in buttons or inputs)
1341
+ * @param color - Color scheme: 'blue' (default), 'gray', 'white'
1342
+ */
1343
+ const LoadingSpinner = ({ message, size = "md", className = "", variant = "spinner", inline = false, color = "blue", }) => {
1344
+ const sizeClass = styles$1[`size${size.charAt(0).toUpperCase() + size.slice(1)}`];
1345
+ const colorClass = styles$1[`color${color.charAt(0).toUpperCase() + color.slice(1)}`];
1346
+ const dotColorClass = styles$1[`dotColor${color.charAt(0).toUpperCase() + color.slice(1)}`];
1347
+ const dotSizeClass = styles$1[`dotSize${size.charAt(0).toUpperCase() + size.slice(1)}`];
1348
+ // Spinner variant (circular border)
1349
+ if (variant === "spinner") {
1350
+ 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 })] }) }));
1351
+ }
1352
+ // Dots variant (three bouncing dots)
1353
+ if (variant === "dots") {
1354
+ 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 })] }) }));
1355
+ }
1356
+ // Pulse variant (pulsing circle)
1357
+ if (variant === "pulse") {
1358
+ 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 })] }) }));
1359
+ }
1360
+ // Ring variant (rotating ring with gradient)
1361
+ if (variant === "ring") {
1362
+ const ringSpinnerColorClass = styles$1[`ringSpinner${color.charAt(0).toUpperCase() + color.slice(1)}`];
1363
+ 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 })] }) }));
1364
+ }
1365
+ return null;
1366
+ };
1367
+
1368
+ function styleInject$2(css, ref) {
1369
+ if ( ref === void 0 ) ref = {};
1370
+ var insertAt = ref.insertAt;
1371
+
1372
+ if (typeof document === 'undefined') { return; }
1373
+
1374
+ var head = document.head || document.getElementsByTagName('head')[0];
1375
+ var style = document.createElement('style');
1376
+ style.type = 'text/css';
1377
+
1378
+ if (insertAt === 'top') {
1379
+ if (head.firstChild) {
1380
+ head.insertBefore(style, head.firstChild);
1381
+ } else {
1382
+ head.appendChild(style);
1383
+ }
1384
+ } else {
1385
+ head.appendChild(style);
1386
+ }
1387
+
1388
+ if (style.styleSheet) {
1389
+ style.styleSheet.cssText = css;
1390
+ } else {
1391
+ style.appendChild(document.createTextNode(css));
1392
+ }
1393
+ }
1394
+
1395
+ 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";
1396
+ 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"};
1397
+ styleInject$2(css_248z$2);
1398
+
1399
+ const classNames = (...classes) => classes.filter(Boolean).join(" ");
1400
+ // Helper function to highlight matching text
1401
+ const highlightMatchText = (text, search, shouldHighlight = true) => {
1402
+ if (!shouldHighlight || !search || !text)
1403
+ return text;
1404
+ const regex = new RegExp(`(${search.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
1405
+ const parts = text.split(regex);
1406
+ 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))) }));
1407
+ };
1408
+ 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", }) => {
1409
+ const [isOpen, setIsOpen] = require$$0__default.useState(false);
1410
+ const [searchTerm, setSearchTerm] = require$$0__default.useState("");
1411
+ const [highlightedIndex, setHighlightedIndex] = require$$0__default.useState(-1);
1412
+ const [isFocused, setIsFocused] = require$$0__default.useState(false);
1413
+ const containerRef = require$$0__default.useRef(null);
1414
+ const inputRef = require$$0__default.useRef(null);
1415
+ const dropdownRef = require$$0__default.useRef(null);
1416
+ const optionRefs = require$$0__default.useRef([]);
1417
+ // Get selected option
1418
+ const selectedOption = options.find((opt) => opt.value === value);
1419
+ // Filter options based on search
1420
+ const filteredOptions = require$$0__default.useMemo(() => {
1421
+ // When using external search (onSearch provided), don't filter locally
1422
+ // The parent component is responsible for filtering via onSearch callback
1423
+ if (onSearch)
1424
+ return options;
1425
+ if (!searchable || searchTerm.length < minSearchLength)
1426
+ return options;
1427
+ const lowerSearch = searchTerm.toLowerCase();
1428
+ return options.filter((opt) => opt.label.toLowerCase().includes(lowerSearch) ||
1429
+ opt.description?.toLowerCase().includes(lowerSearch));
1430
+ }, [options, searchTerm, searchable, minSearchLength, onSearch]);
1431
+ // Display value in input
1432
+ const displayValue = require$$0__default.useMemo(() => {
1433
+ if (searchable && isOpen)
1434
+ return searchTerm;
1435
+ return selectedOption?.label || "";
1436
+ }, [isOpen, searchable, searchTerm, selectedOption]);
1437
+ // Call onSearch with debounce
1438
+ require$$0__default.useEffect(() => {
1439
+ if (!onSearch || searchTerm.length < minSearchLength)
1440
+ return;
1441
+ const timer = setTimeout(() => {
1442
+ onSearch(searchTerm);
1443
+ }, debounceMs);
1444
+ return () => clearTimeout(timer);
1445
+ }, [searchTerm, onSearch, debounceMs, minSearchLength]);
1446
+ // Close dropdown on outside click
1447
+ require$$0__default.useEffect(() => {
1448
+ const handleClickOutside = (event) => {
1449
+ if (containerRef.current &&
1450
+ !containerRef.current.contains(event.target)) {
1451
+ setIsOpen(false);
1452
+ setIsFocused(false);
1453
+ if (!keepListOpen) {
1454
+ setSearchTerm("");
1455
+ }
1456
+ }
1457
+ };
1458
+ document.addEventListener("mousedown", handleClickOutside);
1459
+ return () => document.removeEventListener("mousedown", handleClickOutside);
1460
+ }, [keepListOpen]);
1461
+ // Scroll highlighted option into view
1462
+ require$$0__default.useEffect(() => {
1463
+ if (highlightedIndex >= 0 && optionRefs.current[highlightedIndex]) {
1464
+ optionRefs.current[highlightedIndex]?.scrollIntoView({
1465
+ block: "nearest",
1466
+ behavior: "smooth",
1467
+ });
1468
+ }
1469
+ }, [highlightedIndex]);
1470
+ const handleInputChange = (e) => {
1471
+ const newValue = e.target.value;
1472
+ setSearchTerm(newValue);
1473
+ if (!isOpen) {
1474
+ setIsOpen(true);
1475
+ }
1476
+ setHighlightedIndex(-1);
1477
+ };
1478
+ const handleInputFocus = () => {
1479
+ if (disabled || readOnly)
1480
+ return;
1481
+ setIsFocused(true);
1482
+ setIsOpen(true);
1483
+ onFocus?.();
1484
+ };
1485
+ const handleInputBlur = () => {
1486
+ // Delay to allow click on dropdown
1487
+ setTimeout(() => {
1488
+ if (!containerRef.current?.contains(document.activeElement)) {
1489
+ setIsFocused(false);
1490
+ if (!keepListOpen) {
1491
+ setSearchTerm("");
1492
+ }
1493
+ onBlur?.();
1494
+ }
1495
+ }, 200);
1496
+ };
1497
+ const handleSelect = (option) => {
1498
+ if (option.disabled)
1499
+ return;
1500
+ onChange(option.value, option);
1501
+ setSearchTerm("");
1502
+ setHighlightedIndex(-1);
1503
+ if (!keepListOpen) {
1504
+ setIsOpen(false);
1505
+ }
1506
+ inputRef.current?.blur();
1507
+ };
1508
+ const handleClear = (e) => {
1509
+ e.stopPropagation();
1510
+ onChange(null);
1511
+ setSearchTerm("");
1512
+ setIsOpen(false);
1513
+ inputRef.current?.focus();
1514
+ };
1515
+ const handleToggle = () => {
1516
+ if (disabled || readOnly)
1517
+ return;
1518
+ const newIsOpen = !isOpen;
1519
+ setIsOpen(newIsOpen);
1520
+ if (newIsOpen) {
1521
+ inputRef.current?.focus();
1522
+ }
1523
+ };
1524
+ const handleKeyDown = (e) => {
1525
+ if (disabled || readOnly)
1526
+ return;
1527
+ switch (e.key) {
1528
+ case "ArrowDown":
1529
+ e.preventDefault();
1530
+ if (!isOpen) {
1531
+ setIsOpen(true);
1532
+ }
1533
+ else {
1534
+ setHighlightedIndex((prev) => prev < filteredOptions.length - 1 ? prev + 1 : prev);
1535
+ }
1536
+ break;
1537
+ case "ArrowUp":
1538
+ e.preventDefault();
1539
+ if (isOpen) {
1540
+ setHighlightedIndex((prev) => (prev > 0 ? prev - 1 : -1));
1541
+ }
1542
+ break;
1543
+ case "Enter":
1544
+ e.preventDefault();
1545
+ if (isOpen &&
1546
+ highlightedIndex >= 0 &&
1547
+ filteredOptions[highlightedIndex]) {
1548
+ handleSelect(filteredOptions[highlightedIndex]);
1549
+ }
1550
+ else if (isOpen && onCreate && searchTerm.trim()) {
1551
+ onCreate(searchTerm.trim());
1552
+ setIsOpen(false);
1553
+ setSearchTerm("");
1554
+ }
1555
+ break;
1556
+ case "Escape":
1557
+ e.preventDefault();
1558
+ setIsOpen(false);
1559
+ setSearchTerm("");
1560
+ inputRef.current?.blur();
1561
+ break;
1562
+ case "Tab":
1563
+ setIsOpen(false);
1564
+ setSearchTerm("");
1565
+ break;
1566
+ }
1567
+ };
1568
+ const getInputClassName = () => {
1569
+ 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);
1570
+ };
1571
+ 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) => {
1572
+ const isSelected = option.value === value;
1573
+ const isHighlighted = index === highlightedIndex;
1574
+ return (jsxRuntimeExports$1.jsx("div", { ref: (el) => {
1575
+ optionRefs.current[index] = el;
1576
+ }, 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));
1577
+ }) })) }), onCreate && searchTerm && (jsxRuntimeExports$1.jsxs("div", { onClick: () => {
1578
+ onCreate(searchTerm.trim());
1579
+ setIsOpen(false);
1580
+ setSearchTerm("");
1581
+ }, className: classNames(styles$2.createOption, filteredOptions.length > 0 && styles$2.createOptionWithBorder, highlightedIndex === filteredOptions.length &&
1582
+ 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] }))] }));
1583
+ };
1584
+
1585
+ var o,a={exports:{}},l={};var s,i,u={};
1586
+ /**
1587
+ * @license React
1588
+ * react-jsx-runtime.development.js
1589
+ *
1590
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1591
+ *
1592
+ * This source code is licensed under the MIT license found in the
1593
+ * LICENSE file in the root directory of this source tree.
1594
+ */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,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,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__namespace.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]=require$$0__default.useState(false),Le=require$$0__default.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=require$$0__default.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=require$$0__default.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})]})]})};
1595
+
1596
+ function styleInject(css, ref) {
1597
+ if ( ref === void 0 ) ref = {};
1598
+ var insertAt = ref.insertAt;
1599
+
1600
+ if (typeof document === 'undefined') { return; }
1601
+
1602
+ var head = document.head || document.getElementsByTagName('head')[0];
1603
+ var style = document.createElement('style');
1604
+ style.type = 'text/css';
1605
+
1606
+ if (insertAt === 'top') {
1607
+ if (head.firstChild) {
1608
+ head.insertBefore(style, head.firstChild);
1609
+ } else {
1610
+ head.appendChild(style);
1611
+ }
1612
+ } else {
1613
+ head.appendChild(style);
1614
+ }
1615
+
1616
+ if (style.styleSheet) {
1617
+ style.styleSheet.cssText = css;
1618
+ } else {
1619
+ style.appendChild(document.createTextNode(css));
1620
+ }
1621
+ }
1622
+
1623
+ 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";
1624
+ var styles = {"container":"IdentificationInput-module_container__-70Fo"};
1625
+ styleInject(css_248z);
1626
+
1627
+ const PERU_IDENTIFICATION_DOCS = {
1628
+ dni: {
1629
+ type: "dni",
1630
+ label: "DNI",
1631
+ description: "National ID (8 digits)",
1632
+ maxLength: 8,
1633
+ alphanumeric: false,
1634
+ placeholder: "12345678",
1635
+ hint: "Enter 8 digits",
1636
+ },
1637
+ ce: {
1638
+ type: "ce",
1639
+ label: "CE",
1640
+ description: "Foreign ID (9 digits)",
1641
+ maxLength: 9,
1642
+ alphanumeric: false,
1643
+ placeholder: "123456789",
1644
+ hint: "Enter 9 digits",
1645
+ },
1646
+ passport: {
1647
+ type: "passport",
1648
+ label: "Passport",
1649
+ description: "Passport (alphanumeric)",
1650
+ maxLength: 12,
1651
+ alphanumeric: true,
1652
+ placeholder: "A1234567",
1653
+ hint: "Enter the passport number",
1654
+ },
1655
+ };
1656
+ const formatIdentificationInput = (type, value) => {
1657
+ const doc = PERU_IDENTIFICATION_DOCS[type];
1658
+ if (!doc)
1659
+ return value;
1660
+ const normalized = doc.alphanumeric
1661
+ ? value.replace(/[^a-zA-Z0-9]/g, "").toUpperCase()
1662
+ : value.replace(/\D/g, "");
1663
+ return normalized.slice(0, doc.maxLength);
1664
+ };
1665
+ const getIdentificationPlaceholder = (type) => {
1666
+ return PERU_IDENTIFICATION_DOCS[type]?.placeholder ?? "";
1667
+ };
1668
+ const getIdentificationHint = (type) => {
1669
+ return PERU_IDENTIFICATION_DOCS[type]?.hint ?? "";
1670
+ };
1671
+
1672
+ const IdentificationInput = ({ documentType, onDocumentTypeChange, identificationNumber, onIdentificationNumberChange, documentTypeError, identificationNumberError, required = false, disabled = false, labels, className = "", }) => {
1673
+ const selectedDoc = documentType
1674
+ ? PERU_IDENTIFICATION_DOCS[documentType]
1675
+ : null;
1676
+ const handleIdentificationChange = (value) => {
1677
+ // Format input according to document type
1678
+ if (documentType) {
1679
+ const formatted = formatIdentificationInput(documentType, value);
1680
+ onIdentificationNumberChange(formatted);
1681
+ }
1682
+ else {
1683
+ onIdentificationNumberChange(value);
1684
+ }
1685
+ };
1686
+ const documentTypeOptions = Object.values(PERU_IDENTIFICATION_DOCS).map((doc) => ({
1687
+ value: doc.type,
1688
+ label: doc.label,
1689
+ description: doc.description,
1690
+ }));
1691
+ 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) => {
1692
+ onDocumentTypeChange(value);
1693
+ // Reset identification number when changing document type
1694
+ onIdentificationNumberChange("");
1695
+ }, 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" }))] }));
1696
+ };
1697
+
1698
+ module.exports = IdentificationInput;