@rubenpazch/phone-input 0.0.0-stage → 1.1.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,647 @@
1
+ import e$2, { useState, useMemo, useEffect, useId } from 'react';
2
+ import { useFieldIds } from '@rubenpazch/shared';
3
+
4
+ var jsxRuntime = {exports: {}};
5
+
6
+ var reactJsxRuntime_production = {};
7
+
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.js
11
+ *
12
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+
18
+ var hasRequiredReactJsxRuntime_production;
19
+
20
+ function requireReactJsxRuntime_production () {
21
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
22
+ hasRequiredReactJsxRuntime_production = 1;
23
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
24
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
25
+ function jsxProd(type, config, maybeKey) {
26
+ var key = null;
27
+ void 0 !== maybeKey && (key = "" + maybeKey);
28
+ void 0 !== config.key && (key = "" + config.key);
29
+ if ("key" in config) {
30
+ maybeKey = {};
31
+ for (var propName in config)
32
+ "key" !== propName && (maybeKey[propName] = config[propName]);
33
+ } else maybeKey = config;
34
+ config = maybeKey.ref;
35
+ return {
36
+ $$typeof: REACT_ELEMENT_TYPE,
37
+ type: type,
38
+ key: key,
39
+ ref: void 0 !== config ? config : null,
40
+ props: maybeKey
41
+ };
42
+ }
43
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
44
+ reactJsxRuntime_production.jsx = jsxProd;
45
+ reactJsxRuntime_production.jsxs = jsxProd;
46
+ return reactJsxRuntime_production;
47
+ }
48
+
49
+ var reactJsxRuntime_development = {};
50
+
51
+ /**
52
+ * @license React
53
+ * react-jsx-runtime.development.js
54
+ *
55
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */
60
+
61
+ var hasRequiredReactJsxRuntime_development;
62
+
63
+ function requireReactJsxRuntime_development () {
64
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
65
+ hasRequiredReactJsxRuntime_development = 1;
66
+ "production" !== process.env.NODE_ENV &&
67
+ (function () {
68
+ function getComponentNameFromType(type) {
69
+ if (null == type) return null;
70
+ if ("function" === typeof type)
71
+ return type.$$typeof === REACT_CLIENT_REFERENCE
72
+ ? null
73
+ : type.displayName || type.name || null;
74
+ if ("string" === typeof type) return type;
75
+ switch (type) {
76
+ case REACT_FRAGMENT_TYPE:
77
+ return "Fragment";
78
+ case REACT_PROFILER_TYPE:
79
+ return "Profiler";
80
+ case REACT_STRICT_MODE_TYPE:
81
+ return "StrictMode";
82
+ case REACT_SUSPENSE_TYPE:
83
+ return "Suspense";
84
+ case REACT_SUSPENSE_LIST_TYPE:
85
+ return "SuspenseList";
86
+ case REACT_ACTIVITY_TYPE:
87
+ return "Activity";
88
+ }
89
+ if ("object" === typeof type)
90
+ switch (
91
+ ("number" === typeof type.tag &&
92
+ console.error(
93
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
94
+ ),
95
+ type.$$typeof)
96
+ ) {
97
+ case REACT_PORTAL_TYPE:
98
+ return "Portal";
99
+ case REACT_CONTEXT_TYPE:
100
+ return type.displayName || "Context";
101
+ case REACT_CONSUMER_TYPE:
102
+ return (type._context.displayName || "Context") + ".Consumer";
103
+ case REACT_FORWARD_REF_TYPE:
104
+ var innerType = type.render;
105
+ type = type.displayName;
106
+ type ||
107
+ ((type = innerType.displayName || innerType.name || ""),
108
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
109
+ return type;
110
+ case REACT_MEMO_TYPE:
111
+ return (
112
+ (innerType = type.displayName || null),
113
+ null !== innerType
114
+ ? innerType
115
+ : getComponentNameFromType(type.type) || "Memo"
116
+ );
117
+ case REACT_LAZY_TYPE:
118
+ innerType = type._payload;
119
+ type = type._init;
120
+ try {
121
+ return getComponentNameFromType(type(innerType));
122
+ } catch (x) {}
123
+ }
124
+ return null;
125
+ }
126
+ function testStringCoercion(value) {
127
+ return "" + value;
128
+ }
129
+ function checkKeyStringCoercion(value) {
130
+ try {
131
+ testStringCoercion(value);
132
+ var JSCompiler_inline_result = !1;
133
+ } catch (e) {
134
+ JSCompiler_inline_result = true;
135
+ }
136
+ if (JSCompiler_inline_result) {
137
+ JSCompiler_inline_result = console;
138
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
139
+ var JSCompiler_inline_result$jscomp$0 =
140
+ ("function" === typeof Symbol &&
141
+ Symbol.toStringTag &&
142
+ value[Symbol.toStringTag]) ||
143
+ value.constructor.name ||
144
+ "Object";
145
+ JSCompiler_temp_const.call(
146
+ JSCompiler_inline_result,
147
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
148
+ JSCompiler_inline_result$jscomp$0
149
+ );
150
+ return testStringCoercion(value);
151
+ }
152
+ }
153
+ function getTaskName(type) {
154
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
155
+ if (
156
+ "object" === typeof type &&
157
+ null !== type &&
158
+ type.$$typeof === REACT_LAZY_TYPE
159
+ )
160
+ return "<...>";
161
+ try {
162
+ var name = getComponentNameFromType(type);
163
+ return name ? "<" + name + ">" : "<...>";
164
+ } catch (x) {
165
+ return "<...>";
166
+ }
167
+ }
168
+ function getOwner() {
169
+ var dispatcher = ReactSharedInternals.A;
170
+ return null === dispatcher ? null : dispatcher.getOwner();
171
+ }
172
+ function UnknownOwner() {
173
+ return Error("react-stack-top-frame");
174
+ }
175
+ function hasValidKey(config) {
176
+ if (hasOwnProperty.call(config, "key")) {
177
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
178
+ if (getter && getter.isReactWarning) return false;
179
+ }
180
+ return void 0 !== config.key;
181
+ }
182
+ function defineKeyPropWarningGetter(props, displayName) {
183
+ function warnAboutAccessingKey() {
184
+ specialPropKeyWarningShown ||
185
+ ((specialPropKeyWarningShown = true),
186
+ console.error(
187
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
188
+ displayName
189
+ ));
190
+ }
191
+ warnAboutAccessingKey.isReactWarning = true;
192
+ Object.defineProperty(props, "key", {
193
+ get: warnAboutAccessingKey,
194
+ configurable: true
195
+ });
196
+ }
197
+ function elementRefGetterWithDeprecationWarning() {
198
+ var componentName = getComponentNameFromType(this.type);
199
+ didWarnAboutElementRef[componentName] ||
200
+ ((didWarnAboutElementRef[componentName] = true),
201
+ console.error(
202
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
203
+ ));
204
+ componentName = this.props.ref;
205
+ return void 0 !== componentName ? componentName : null;
206
+ }
207
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
208
+ var refProp = props.ref;
209
+ type = {
210
+ $$typeof: REACT_ELEMENT_TYPE,
211
+ type: type,
212
+ key: key,
213
+ props: props,
214
+ _owner: owner
215
+ };
216
+ null !== (void 0 !== refProp ? refProp : null)
217
+ ? Object.defineProperty(type, "ref", {
218
+ enumerable: false,
219
+ get: elementRefGetterWithDeprecationWarning
220
+ })
221
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
222
+ type._store = {};
223
+ Object.defineProperty(type._store, "validated", {
224
+ configurable: false,
225
+ enumerable: false,
226
+ writable: true,
227
+ value: 0
228
+ });
229
+ Object.defineProperty(type, "_debugInfo", {
230
+ configurable: false,
231
+ enumerable: false,
232
+ writable: true,
233
+ value: null
234
+ });
235
+ Object.defineProperty(type, "_debugStack", {
236
+ configurable: false,
237
+ enumerable: false,
238
+ writable: true,
239
+ value: debugStack
240
+ });
241
+ Object.defineProperty(type, "_debugTask", {
242
+ configurable: false,
243
+ enumerable: false,
244
+ writable: true,
245
+ value: debugTask
246
+ });
247
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
248
+ return type;
249
+ }
250
+ function jsxDEVImpl(
251
+ type,
252
+ config,
253
+ maybeKey,
254
+ isStaticChildren,
255
+ debugStack,
256
+ debugTask
257
+ ) {
258
+ var children = config.children;
259
+ if (void 0 !== children)
260
+ if (isStaticChildren)
261
+ if (isArrayImpl(children)) {
262
+ for (
263
+ isStaticChildren = 0;
264
+ isStaticChildren < children.length;
265
+ isStaticChildren++
266
+ )
267
+ validateChildKeys(children[isStaticChildren]);
268
+ Object.freeze && Object.freeze(children);
269
+ } else
270
+ console.error(
271
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
272
+ );
273
+ else validateChildKeys(children);
274
+ if (hasOwnProperty.call(config, "key")) {
275
+ children = getComponentNameFromType(type);
276
+ var keys = Object.keys(config).filter(function (k) {
277
+ return "key" !== k;
278
+ });
279
+ isStaticChildren =
280
+ 0 < keys.length
281
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
282
+ : "{key: someKey}";
283
+ didWarnAboutKeySpread[children + isStaticChildren] ||
284
+ ((keys =
285
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
286
+ console.error(
287
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
288
+ isStaticChildren,
289
+ children,
290
+ keys,
291
+ children
292
+ ),
293
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
294
+ }
295
+ children = null;
296
+ void 0 !== maybeKey &&
297
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
298
+ hasValidKey(config) &&
299
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
300
+ if ("key" in config) {
301
+ maybeKey = {};
302
+ for (var propName in config)
303
+ "key" !== propName && (maybeKey[propName] = config[propName]);
304
+ } else maybeKey = config;
305
+ children &&
306
+ defineKeyPropWarningGetter(
307
+ maybeKey,
308
+ "function" === typeof type
309
+ ? type.displayName || type.name || "Unknown"
310
+ : type
311
+ );
312
+ return ReactElement(
313
+ type,
314
+ children,
315
+ maybeKey,
316
+ getOwner(),
317
+ debugStack,
318
+ debugTask
319
+ );
320
+ }
321
+ function validateChildKeys(node) {
322
+ isValidElement(node)
323
+ ? node._store && (node._store.validated = 1)
324
+ : "object" === typeof node &&
325
+ null !== node &&
326
+ node.$$typeof === REACT_LAZY_TYPE &&
327
+ ("fulfilled" === node._payload.status
328
+ ? isValidElement(node._payload.value) &&
329
+ node._payload.value._store &&
330
+ (node._payload.value._store.validated = 1)
331
+ : node._store && (node._store.validated = 1));
332
+ }
333
+ function isValidElement(object) {
334
+ return (
335
+ "object" === typeof object &&
336
+ null !== object &&
337
+ object.$$typeof === REACT_ELEMENT_TYPE
338
+ );
339
+ }
340
+ var React = e$2,
341
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
342
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
343
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
344
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
345
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
346
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
347
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
348
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
349
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
350
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
351
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
352
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
353
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
354
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
355
+ ReactSharedInternals =
356
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
357
+ hasOwnProperty = Object.prototype.hasOwnProperty,
358
+ isArrayImpl = Array.isArray,
359
+ createTask = console.createTask
360
+ ? console.createTask
361
+ : function () {
362
+ return null;
363
+ };
364
+ React = {
365
+ react_stack_bottom_frame: function (callStackForError) {
366
+ return callStackForError();
367
+ }
368
+ };
369
+ var specialPropKeyWarningShown;
370
+ var didWarnAboutElementRef = {};
371
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
372
+ React,
373
+ UnknownOwner
374
+ )();
375
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
376
+ var didWarnAboutKeySpread = {};
377
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
378
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
379
+ var trackActualOwner =
380
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
381
+ return jsxDEVImpl(
382
+ type,
383
+ config,
384
+ maybeKey,
385
+ false,
386
+ trackActualOwner
387
+ ? Error("react-stack-top-frame")
388
+ : unknownOwnerDebugStack,
389
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
390
+ );
391
+ };
392
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
393
+ var trackActualOwner =
394
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
395
+ return jsxDEVImpl(
396
+ type,
397
+ config,
398
+ maybeKey,
399
+ true,
400
+ trackActualOwner
401
+ ? Error("react-stack-top-frame")
402
+ : unknownOwnerDebugStack,
403
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
404
+ );
405
+ };
406
+ })();
407
+ return reactJsxRuntime_development;
408
+ }
409
+
410
+ var hasRequiredJsxRuntime;
411
+
412
+ function requireJsxRuntime () {
413
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
414
+ hasRequiredJsxRuntime = 1;
415
+
416
+ if (process.env.NODE_ENV === 'production') {
417
+ jsxRuntime.exports = requireReactJsxRuntime_production();
418
+ } else {
419
+ jsxRuntime.exports = requireReactJsxRuntime_development();
420
+ }
421
+ return jsxRuntime.exports;
422
+ }
423
+
424
+ var jsxRuntimeExports = requireJsxRuntime();
425
+
426
+ var r$3,n$1={exports:{}},o={};var t$3,a$1,l$1={};
427
+ /**
428
+ * @license React
429
+ * react-jsx-runtime.development.js
430
+ *
431
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
432
+ *
433
+ * This source code is licensed under the MIT license found in the
434
+ * LICENSE file in the root directory of this source tree.
435
+ */function i$1(){return t$3||(t$3=1,"production"!==process.env.NODE_ENV&&function(){function r(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case b:return "Fragment";case _:return "Profiler";case y:return "StrictMode";case S:return "Suspense";case j:return "SuspenseList";case w:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case m:return "Portal";case g:return e.displayName||"Context";case v:return (e._context.displayName||"Context")+".Consumer";case h:var n=e.render;return (e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case k:return null!==(n=e.displayName||null)?n:r(e.type)||"Memo";case x:n=e._payload,e=e._init;try{return r(e(n))}catch(e){}}return null}function n(e){return ""+e}function o(e){try{n(e);var r=!1;}catch(e){r=true;}if(r){var o=(r=console).error,t="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",t),n(e)}}function t(e){if(e===b)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===x)return "<...>";try{var n=r(e);return n?"<"+n+">":"<...>"}catch(e){return "<...>"}}function a(){return Error("react-stack-top-frame")}function i(){var e=r(this.type);return C[e]||(C[e]=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!==(e=this.props.ref)?e:null}function c(e,n,t,a,l,c){var u,f=n.children;if(void 0!==f)if(a)if(E(f)){for(a=0;a<f.length;a++)s(f[a]);Object.freeze&&Object.freeze(f);}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 s(f);if(T.call(n,"key")){f=r(e);var m=Object.keys(n).filter(function(e){return "key"!==e});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",$[f+a]||(m=0<m.length?"{"+m.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,f,m,f),$[f+a]=true);}if(f=null,void 0!==t&&(o(t),f=""+t),function(e){if(T.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return void 0!==e.key}(n)&&(o(n.key),f=""+n.key),"key"in n)for(var b in t={},n)"key"!==b&&(t[b]=n[b]);else t=n;return f&&function(e,r){function n(){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)",r));}n.isReactWarning=true,Object.defineProperty(e,"key",{get:n,configurable:true});}(t,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,n,o,t,a){var l=n.ref;return e={$$typeof:p,type:e,key:r,props:n,_owner:o},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:false,get:i}):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:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,f,t,null===(u=O.A)?null:u.getOwner(),l,c)}function s(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===x&&("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===p}var d,f=e$2,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),O=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,E=Array.isArray,R=console.createTask?console.createTask:function(){return null},C={},A=(f={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(f,a)(),z=R(t(a)),$={};l$1.Fragment=b,l$1.jsx=function(e,r,n){var o=1e4>O.recentlyCreatedOwnerStacks++;return c(e,r,n,false,o?Error("react-stack-top-frame"):A,o?R(t(e)):z)},l$1.jsxs=function(e,r,n){var o=1e4>O.recentlyCreatedOwnerStacks++;return c(e,r,n,true,o?Error("react-stack-top-frame"):A,o?R(t(e)):z)};}()),l$1}var c$1=(a$1||(a$1=1,"production"===process.env.NODE_ENV?n$1.exports=function(){if(r$3)return o;r$3=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,n,o){var t=null;if(void 0!==o&&(t=""+o),void 0!==n.key&&(t=""+n.key),"key"in n)for(var a in o={},n)"key"!==a&&(o[a]=n[a]);else o=n;return n=o.ref,{$$typeof:e,type:r,key:t,ref:void 0!==n?n:null,props:o}}return o.Fragment=n,o.jsx=t,o.jsxs=t,o}():n$1.exports=i$1()),n$1.exports);var s$2="Select-module_field__Ib-hj",u$1="Select-module_label__dU5a8",d$1="Select-module_required__aINgC",f$1="Select-module_select__jkWCR",p$1="Select-module_selectError__r5GRT",m$1="Select-module_error__oELij",b$1="Select-module_hint__xTI1C",y$1="Select-module_labelRow__c2lUI",_$1="Select-module_labelAction__s6AaT",v$1="Select-module_selectWarning__zVgPA",g$1="Select-module_warning__T5-yO";!function(e,r){ void 0===r&&(r={});var n=r.insertAt;if("undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===n&&o.firstChild?o.insertBefore(t,o.firstChild):o.appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e));}}(".Select-module_field__Ib-hj {\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-1);\n}\n\n.Select-module_label__dU5a8 {\n font-size: var(--lb-font-size-sm);\n font-weight: var(--lb-font-weight-medium);\n color: var(--lb-color-neutral-700);\n}\n\n.Select-module_required__aINgC {\n color: var(--lb-color-danger);\n}\n\n.Select-module_select__jkWCR {\n appearance: none;\n width: 100%;\n padding: var(--lb-space-2) var(--lb-space-8) var(--lb-space-2)\n var(--lb-space-3);\n font-family: var(--lb-font-sans);\n font-size: var(--lb-font-size-md);\n font-weight: var(--lb-font-weight-medium);\n color: var(--lb-color-foreground);\n background-color: var(--lb-color-background);\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right var(--lb-space-3) center;\n border: 2px solid var(--lb-color-neutral-300);\n border-radius: var(--lb-radius-md);\n cursor: pointer;\n transition:\n border-color 0.15s ease,\n box-shadow 0.15s ease;\n}\n\n.Select-module_select__jkWCR:focus {\n outline: none;\n border-color: var(--lb-color-primary);\n box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);\n}\n\n.Select-module_select__jkWCR:disabled {\n cursor: not-allowed;\n opacity: 0.6;\n}\n\n.Select-module_selectError__r5GRT {\n border-color: var(--lb-color-danger);\n}\n\n.Select-module_selectError__r5GRT:focus {\n border-color: var(--lb-color-danger);\n box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);\n}\n\n.Select-module_error__oELij {\n margin: 0;\n font-size: var(--lb-font-size-sm);\n color: var(--lb-color-danger);\n}\n\n.Select-module_hint__xTI1C {\n margin: 0;\n font-size: var(--lb-font-size-xs);\n color: var(--lb-color-muted-foreground);\n}\n\n/* Etiqueta con acción a la derecha (ayuda, enlace) */\n.Select-module_labelRow__c2lUI {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lb-space-2);\n}\n\n.Select-module_labelAction__s6AaT {\n display: inline-flex;\n align-items: center;\n flex: none;\n}\n\n/* Advertencia (no bloquea el envío) */\n.Select-module_selectWarning__zVgPA {\n border-color: var(--lb-color-warning);\n}\n\n.Select-module_warning__T5-yO {\n margin: 0;\n font-size: var(--lb-font-size-xs);\n color: var(--lb-color-amber-strong);\n}\n");const h$1=(...e)=>e.filter(Boolean).join(" "),S$1=e$2.forwardRef(function({label:r,labelAction:n,value:o,onChange:t,options:a,placeholder:l,hint:i,error:S,warning:j,onBlur:k,onFocus:x,required:w=false,disabled:N=false,id:O,name:T,className:E},R){const C=e$2.useId(),A=O??T??C,z=`${A}-error`,$=`${A}-ayuda`,P=`${A}-advertencia`,I=S?void 0:j,F=[i&&$,S&&z,I&&P].filter(Boolean).join(" ")||void 0;return c$1.jsxs("div",{className:h$1(s$2,E),children:[r&&(()=>{const e=c$1.jsxs("label",{htmlFor:A,className:u$1,children:[r,w&&c$1.jsxs("span",{className:d$1,"aria-hidden":"true",children:[" ","*"]})]});return n?c$1.jsxs("div",{className:y$1,children:[e,c$1.jsx("span",{className:_$1,children:n})]}):e})(),c$1.jsxs("select",{ref:R,id:A,name:T,className:h$1(f$1,S&&p$1,I&&v$1),value:o,required:w,disabled:N,"aria-invalid":!!S||void 0,"aria-describedby":F,onChange:e=>t(e.target.value),onBlur:k,onFocus:x,children:[l&&c$1.jsx("option",{value:"",disabled:true,children:l}),a.map(e=>c$1.jsx("option",{value:e.value,children:e.label},e.value))]}),i&&c$1.jsx("p",{id:$,className:b$1,children:i}),S&&c$1.jsx("p",{id:z,className:m$1,role:"alert",children:S}),I&&c$1.jsx("p",{id:P,className:g$1,children:I})]})});
436
+
437
+ var a,s$1={exports:{}},i={};var u,d,c={};
438
+ /**
439
+ * @license React
440
+ * react-jsx-runtime.development.js
441
+ *
442
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
443
+ *
444
+ * This source code is licensed under the MIT license found in the
445
+ * LICENSE file in the root directory of this source tree.
446
+ */function m(){return u||(u=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===k?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case g:return "Fragment";case h:return "Profiler";case f:return "StrictMode";case v:return "Suspense";case T:return "SuspenseList";case j:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case _:return "Portal";case b:return e.displayName||"Context";case x:return (e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return (e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:n(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return n(e(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(e){if(e===g)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return "<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return R[e]||(R[e]=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!==(e=this.props.ref)?e:null}function s(e,t,o,l,s,u){var c,m=t.children;if(void 0!==m)if(l)if(z(m)){for(l=0;l<m.length;l++)i(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 i(m);if(S.call(t,"key")){m=n(e);var _=Object.keys(t).filter(function(e){return "key"!==e});l=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",E[m+l]||(_=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} />',l,m,_,m),E[m+l]=true);}if(m=null,void 0!==o&&(r(o),m=""+o),function(e){if(S.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 g in o={},t)"key"!==g&&(o[g]=t[g]);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 e?e.displayName||e.name||"Unknown":e),function(e,n,t,r,o,l){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:a}):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:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,m,o,null===(c=N.A)?null:c.getOwner(),s,u)}function i(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("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===p}var d,m=e$2,p=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),N=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,z=Array.isArray,O=console.createTask?console.createTask:function(){return null},R={},A=(m={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(m,l)(),C=O(o(l)),E={};c.Fragment=g,c.jsx=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,false,r?Error("react-stack-top-frame"):A,r?O(o(e)):C)},c.jsxs=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,true,r?Error("react-stack-top-frame"):A,r?O(o(e)):C)};}()),c}var p,_=(d||(d=1,"production"===process.env.NODE_ENV?s$1.exports=function(){if(a)return i;a=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 l in r={},t)"key"!==l&&(r[l]=t[l]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:o,ref:void 0!==t?t:null,props:r}}return i.Fragment=n,i.jsx=t,i.jsxs=t,i}():s$1.exports=m()),s$1.exports),g={exports:{}},f={};var h,x,b={};
447
+ /**
448
+ * @license React
449
+ * react-jsx-runtime.development.js
450
+ *
451
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
452
+ *
453
+ * This source code is licensed under the MIT license found in the
454
+ * LICENSE file in the root directory of this source tree.
455
+ */var y=(x||(x=1,"production"===process.env.NODE_ENV?g.exports=function(){if(p)return f;p=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 l in r={},t)"key"!==l&&(r[l]=t[l]);else r=t;return t=r.ref,{$$typeof:e,type:n,key:o,ref:void 0!==t?t:null,props:r}}return f.Fragment=n,f.jsx=t,f.jsxs=t,f}():g.exports=(h||(h=1,"production"!==process.env.NODE_ENV&&function(){function n(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===k?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return "Fragment";case f:return "Profiler";case g:return "StrictMode";case v:return "Suspense";case T:return "SuspenseList";case j:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return "Portal";case x:return e.displayName||"Context";case h:return (e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return (e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:n(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return n(e(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(e){if(e===_)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===w)return "<...>";try{var t=n(e);return t?"<"+t+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function a(){var e=n(this.type);return R[e]||(R[e]=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!==(e=this.props.ref)?e:null}function s(e,t,o,l,s,u){var c,p=t.children;if(void 0!==p)if(l)if(z(p)){for(l=0;l<p.length;l++)i(p[l]);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(S.call(t,"key")){p=n(e);var _=Object.keys(t).filter(function(e){return "key"!==e});l=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",E[p+l]||(_=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} />',l,p,_,p),E[p+l]=true);}if(p=null,void 0!==o&&(r(o),p=""+o),function(e){if(S.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 g in o={},t)"key"!==g&&(o[g]=t[g]);else o=t;return p&&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 e?e.displayName||e.name||"Unknown":e),function(e,n,t,r,o,l){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:a}):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:l}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}(e,p,o,null===(c=N.A)?null:c.getOwner(),s,u)}function i(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===w&&("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 d,c=e$2,m=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),x=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),N=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,S=Object.prototype.hasOwnProperty,z=Array.isArray,O=console.createTask?console.createTask:function(){return null},R={},A=(c={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(c,l)(),C=O(o(l)),E={};b.Fragment=_,b.jsx=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,false,r?Error("react-stack-top-frame"):A,r?O(o(e)):C)},b.jsxs=function(e,n,t){var r=1e4>N.recentlyCreatedOwnerStacks++;return s(e,n,t,true,r?Error("react-stack-top-frame"):A,r?O(o(e)):C)};}()),b)),g.exports);function v({className:e="",size:n="md"}){const t={sm:16,md:20,lg:24},r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return y.jsx("svg",{width:t[n],height:t[n],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:r,"aria-hidden":"true",children:y.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 T=({className:e="",size:n="md"})=>{const t={sm:16,md:20,lg:24},r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return y.jsx("svg",{width:t[n],height:t[n],className:r,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:y.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"})})},I=({className:e="",size:n="md",color:t="currentColor"})=>{const r={sm:16,md:20,lg:24};return y.jsxs("svg",{width:r[n],height:r[n],className:`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`,fill:"none",stroke:t,viewBox:"0 0 24 24",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[y.jsx("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),y.jsx("circle",{cx:"12",cy:"12",r:"3"})]})},w=({className:e="",size:n="md"})=>{const t={sm:16,md:20,lg:24},r=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[n]} ${e}`;return y.jsx("svg",{width:t[n],height:t[n],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r,"aria-hidden":"true",children:y.jsx("path",{d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})},j={sm:16,md:20,lg:24};function k({size:e="md",title:n,...t}){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:j[e],height:j[e],fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",role:n?"img":void 0,"aria-hidden":!n||void 0,focusable:"false",...t,children:[n&&y.jsx("title",{children:n}),y.jsx("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}),y.jsx("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}),y.jsx("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}),y.jsx("path",{d:"m2 2 20 20"})]})}var N="TextInput-module_container__QXVA9",S="TextInput-module_label__GGFxk",z="TextInput-module_required__qlHAH",O="TextInput-module_inputContainer__-zaWR",R="TextInput-module_icon__F1AYg",A="TextInput-module_input__I8TSn",C="TextInput-module_inputWithIcon__TDgMC",E="TextInput-module_inputWithCharCount__qgvqA",$="TextInput-module_inputError__-Ga78",L="TextInput-module_inputSuccess__xsjt7",P="TextInput-module_charCount__RyuVm",q="TextInput-module_charCountNormal__LCUr7",M="TextInput-module_charCountNear__OKroK",B="TextInput-module_charCountLimit__iaB20",F="TextInput-module_charCountIcon__lRD-4",U="TextInput-module_charProgressBar__Wva8D",V="TextInput-module_charProgress__ZUsGs",W="TextInput-module_charProgressNormal__TdFY4",Z="TextInput-module_charProgressNear__beyMs",D="TextInput-module_charProgressLimit__Vr6d-",J="TextInput-module_hint__iZiig",G="TextInput-module_requiredHelper__TUGsU",H="TextInput-module_validationMessage__3g-wc",X="TextInput-module_validationIcon__q5LT6",Y="TextInput-module_validationText__-qAuu",K="TextInput-module_validEmail__Ya1tf",Q="TextInput-module_emailSuggestion__ZzQkZ",ee="TextInput-module_suggestionButton__Rsxt8",ne="TextInput-module_error__ewnmB",te="TextInput-module_errorIcon__JkIpb",re="TextInput-module_errorText__ba7lR",oe="TextInput-module_passwordStrength__ICyJU",le="TextInput-module_strengthBar__3c8Yf",ae="TextInput-module_strengthSegment__76ih4",se="TextInput-module_strengthSegmentInactive__RK1Q8",ie="TextInput-module_strengthSegmentWeak__BFvgT",ue="TextInput-module_strengthSegmentFair__AOJW5",de="TextInput-module_strengthSegmentGood__uGgTx",ce="TextInput-module_strengthSegmentStrong__vP5Yi",me="TextInput-module_strengthSegmentVeryStrong__4Tull",pe="TextInput-module_strengthLabel__PpEO9",_e="TextInput-module_strengthText__jfVUh",ge="TextInput-module_strengthValue__04hhw",fe="TextInput-module_strengthValueWeak__8Ek8Q",he="TextInput-module_strengthValueFair__70N63",xe="TextInput-module_strengthValueGood__NgsOd",be="TextInput-module_strengthValueStrong__qaKsi",ye="TextInput-module_strengthValueVeryStrong__80d9m",ve="TextInput-module_requirements__eD6oz",Te="TextInput-module_requirement__KoZx2",Ie="TextInput-module_requirementIcon__VjQXJ",we="TextInput-module_requirementIconMet__UNZFD",je="TextInput-module_requirementIconUnmet__1MF9h",ke="TextInput-module_requirementText__fFcdn",Ne="TextInput-module_requirementTextMet__eGbSi",Se="TextInput-module_warning__ywIFl",ze="TextInput-module_labelRow__DHwBZ",Oe="TextInput-module_labelAction__gSIJc",Re="TextInput-module_inputWithToggle__ACEsI",Ae="TextInput-module_passwordToggle__691M2",Ce="TextInput-module_groupless__8WgfT",Ee="TextInput-module_group__ZT9UR",$e="TextInput-module_addon__eHX4J",Le="TextInput-module_addonStart__8MNaQ",Pe="TextInput-module_addonEnd__29ckI",qe="TextInput-module_inputAfterAddon__UEdes",Me="TextInput-module_inputBeforeAddon__kFHUQ",Be="TextInput-module_groupError__GmXum",Fe="TextInput-module_groupDisabled__iehsu",Ue="TextInput-module_rulesTitle__8Ib6c",Ve="TextInput-module_rulesList__E1UOW",We="TextInput-module_srOnly__thTJl";!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: var(--lb-font-size-sm);\n line-height: 1.25rem;\n font-weight: var(--lb-font-weight-medium);\n color: var(--lb-color-neutral-700);\n}\n\n.TextInput-module_required__qlHAH {\n color: var(--lb-color-danger);\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: var(--lb-color-neutral-400);\n pointer-events: none;\n display: flex;\n align-items: center;\n}\n\n/* Input */\n.TextInput-module_input__I8TSn {\n width: 100%;\n box-sizing: border-box;\n padding: 0.5rem 1rem;\n border-radius: var(--lb-radius-md);\n border: 2px solid var(--lb-color-neutral-300);\n transition: all 150ms ease;\n outline: none;\n font-family: var(--lb-font-sans);\n font-weight: var(--lb-font-weight-medium);\n color: var(--lb-color-foreground);\n}\n\n.TextInput-module_input__I8TSn::-moz-placeholder {\n color: var(--lb-color-neutral-400);\n}\n\n.TextInput-module_input__I8TSn::placeholder {\n color: var(--lb-color-neutral-400);\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: var(--lb-color-neutral-400);\n}\n\n.TextInput-module_input__I8TSn:focus {\n border-color: var(--lb-color-primary);\n box-shadow: 0 0 0 2px\n color-mix(in srgb, var(--lb-color-ring) 25%, transparent);\n}\n\n.TextInput-module_input__I8TSn:disabled {\n background: var(--lb-color-muted);\n color: var(--lb-color-muted-foreground);\n cursor: not-allowed;\n}\n\n.TextInput-module_inputError__-Ga78 {\n border-color: var(--lb-color-danger);\n}\n\n.TextInput-module_inputError__-Ga78:focus {\n border-color: var(--lb-color-danger);\n box-shadow: 0 0 0 2px\n color-mix(in srgb, var(--lb-color-danger) 25%, transparent);\n}\n\n.TextInput-module_inputSuccess__xsjt7 {\n border-color: var(--lb-color-success);\n}\n\n.TextInput-module_inputSuccess__xsjt7:focus {\n border-color: var(--lb-color-success);\n box-shadow: 0 0 0 2px\n color-mix(in srgb, var(--lb-color-success) 25%, transparent);\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: var(--lb-color-muted-foreground);\n}\n\n.TextInput-module_charCountNear__OKroK {\n color: var(--lb-color-warning);\n}\n\n.TextInput-module_charCountLimit__iaB20 {\n color: var(--lb-color-danger);\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: var(--lb-color-neutral-200);\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: var(--lb-color-primary);\n}\n\n.TextInput-module_charProgressNear__beyMs {\n background: var(--lb-color-warning);\n}\n\n.TextInput-module_charProgressLimit__Vr6d- {\n background: var(--lb-color-danger);\n}\n\n/* Hint text */\n.TextInput-module_hint__iZiig {\n font-size: 0.75rem;\n line-height: 1rem;\n color: var(--lb-color-muted-foreground);\n margin-top: 0.25rem;\n}\n\n.TextInput-module_requiredHelper__TUGsU {\n font-size: 0.75rem;\n line-height: 1rem;\n color: var(--lb-color-muted-foreground);\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: var(--lb-color-success);\n}\n\n.TextInput-module_validEmail__Ya1tf .TextInput-module_validationText__-qAuu {\n color: var(--lb-color-success);\n}\n\n.TextInput-module_emailSuggestion__ZzQkZ .TextInput-module_validationIcon__q5LT6 {\n color: var(--lb-color-primary);\n}\n\n.TextInput-module_emailSuggestion__ZzQkZ .TextInput-module_validationText__-qAuu {\n color: var(--lb-color-primary);\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: var(--lb-color-primary-hover);\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: var(--lb-color-danger);\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: var(--lb-color-danger);\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: var(--lb-color-neutral-200);\n}\n\n.TextInput-module_strengthSegmentWeak__BFvgT {\n background: var(--lb-color-danger);\n}\n\n.TextInput-module_strengthSegmentFair__AOJW5 {\n background: var(--lb-color-warning);\n}\n\n.TextInput-module_strengthSegmentGood__uGgTx {\n background: var(--lb-color-warning);\n}\n\n.TextInput-module_strengthSegmentStrong__vP5Yi {\n background: var(--lb-color-emerald-accent);\n}\n\n.TextInput-module_strengthSegmentVeryStrong__4Tull {\n background: var(--lb-color-success);\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: var(--lb-color-neutral-600);\n}\n\n.TextInput-module_strengthValue__04hhw {\n font-weight: 600;\n}\n\n.TextInput-module_strengthValueWeak__8Ek8Q {\n color: var(--lb-color-danger);\n}\n\n.TextInput-module_strengthValueFair__70N63 {\n color: var(--lb-color-warning);\n}\n\n.TextInput-module_strengthValueGood__NgsOd {\n color: var(--lb-color-amber-accent);\n}\n\n.TextInput-module_strengthValueStrong__qaKsi {\n color: var(--lb-color-emerald-strong);\n}\n\n.TextInput-module_strengthValueVeryStrong__80d9m {\n color: var(--lb-color-success);\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: var(--lb-color-neutral-50);\n border-radius: 0.375rem;\n border: 1px solid var(--lb-color-neutral-200);\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: var(--lb-color-emerald-accent);\n}\n\n.TextInput-module_requirementIconUnmet__1MF9h {\n color: var(--lb-color-neutral-300);\n}\n\n.TextInput-module_requirementText__fFcdn {\n color: var(--lb-color-neutral-500);\n}\n\n.TextInput-module_requirementTextMet__eGbSi {\n color: var(--lb-color-neutral-700);\n}\n\n/* Advertencia (no bloquea el envío) */\n.TextInput-module_warning__ywIFl {\n font-size: var(--lb-font-size-xs);\n line-height: var(--lb-line-height-normal);\n color: var(--lb-color-amber-strong);\n margin-top: var(--lb-space-1);\n}\n\n/* Etiqueta con acción a la derecha (ayuda, enlace) */\n.TextInput-module_labelRow__DHwBZ {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--lb-space-2);\n}\n\n.TextInput-module_labelAction__gSIJc {\n display: inline-flex;\n align-items: center;\n flex: none;\n}\n\n/* Ver / ocultar contraseña */\n.TextInput-module_inputWithToggle__ACEsI {\n padding-right: 2.75rem;\n}\n\n.TextInput-module_passwordToggle__691M2 {\n position: absolute;\n top: 50%;\n right: 0.5rem;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n padding: 0;\n border: 0;\n border-radius: var(--lb-radius-sm);\n background: transparent;\n color: var(--lb-color-muted-foreground);\n cursor: pointer;\n transform: translateY(-50%);\n}\n\n.TextInput-module_passwordToggle__691M2:hover:not(:disabled) {\n color: var(--lb-color-foreground);\n}\n\n.TextInput-module_passwordToggle__691M2:focus-visible {\n outline: 2px solid var(--lb-color-ring);\n outline-offset: 1px;\n}\n\n.TextInput-module_passwordToggle__691M2:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n}\n\n/* Bloques pegados al campo (startAddon / endAddon) */\n.TextInput-module_groupless__8WgfT {\n display: contents;\n}\n\n.TextInput-module_group__ZT9UR {\n display: flex;\n align-items: stretch;\n}\n\n.TextInput-module_group__ZT9UR > .TextInput-module_inputContainer__-zaWR {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.TextInput-module_addon__eHX4J {\n display: flex;\n flex: none;\n align-items: center;\n padding: 0 var(--lb-space-3);\n border: 2px solid var(--lb-color-neutral-300);\n background: var(--lb-color-muted);\n color: var(--lb-color-muted-foreground);\n font-family: var(--lb-font-sans);\n font-size: var(--lb-font-size-sm);\n font-weight: var(--lb-font-weight-medium);\n white-space: nowrap;\n transition: border-color 150ms ease;\n}\n\n/* Un botón dentro del bloque lo ocupa entero. */\n.TextInput-module_addon__eHX4J:has(> button) {\n padding: 0;\n background: transparent;\n}\n\n.TextInput-module_addon__eHX4J > button {\n align-self: stretch;\n height: auto;\n border-radius: 0;\n}\n\n.TextInput-module_addonStart__8MNaQ {\n border-right: 0;\n border-radius: var(--lb-radius-md) 0 0 var(--lb-radius-md);\n}\n\n.TextInput-module_addonEnd__29ckI {\n border-left: 0;\n border-radius: 0 var(--lb-radius-md) var(--lb-radius-md) 0;\n}\n\n.TextInput-module_addonStart__8MNaQ > button {\n border-radius: calc(var(--lb-radius-md) - 2px) 0 0\n calc(var(--lb-radius-md) - 2px);\n}\n\n.TextInput-module_addonEnd__29ckI > button {\n border-radius: 0 calc(var(--lb-radius-md) - 2px)\n calc(var(--lb-radius-md) - 2px) 0;\n}\n\n.TextInput-module_inputAfterAddon__UEdes {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n}\n\n.TextInput-module_inputBeforeAddon__kFHUQ {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.TextInput-module_group__ZT9UR:focus-within .TextInput-module_addon__eHX4J {\n border-color: var(--lb-color-primary);\n}\n\n.TextInput-module_groupError__GmXum .TextInput-module_addon__eHX4J,\n.TextInput-module_groupError__GmXum:focus-within .TextInput-module_addon__eHX4J {\n border-color: var(--lb-color-danger);\n}\n\n.TextInput-module_groupDisabled__iehsu .TextInput-module_addon__eHX4J {\n opacity: 0.7;\n}\n\n/* Reglas propias de la contraseña (passwordRules) */\n.TextInput-module_rulesTitle__8Ib6c {\n margin: 0;\n font-weight: var(--lb-font-weight-medium);\n color: var(--lb-color-neutral-700);\n}\n\n.TextInput-module_rulesList__E1UOW {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-1);\n}\n\n.TextInput-module_srOnly__thTJl {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n}\n");const Ze=(...e)=>e.filter(Boolean).join(" "),De=/^[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])?)*$/,Je={title:"La contraseña debe tener:",met:"cumplido",unmet:"pendiente"},Ge=e$2.forwardRef(function({id:e,name:a,label:s,value:i,onChange:u,placeholder:d,error:c,warning:m,required:p=false,disabled:g=false,type:f="text",className:h="",hint:x,maxLength:b,minLength:y,minLengthMessage:j,pattern:Ge,icon:He,onBlur:Xe,onFocus:Ye,onValidityChange:Ke,autoComplete:Qe,validateEmail:en=false,showPasswordStrength:nn=false,requiredMessage:tn,emailValidMessage:rn,emailInvalidMessage:on,emailSuggestionMessage:ln,strengthLabels:an,strengthLabelPrefix:sn,requirementsLabels:un,passwordRules:dn,passwordRulesLabels:cn,showPasswordToggle:mn=true,passwordToggleLabels:pn={show:"Mostrar contraseña",hide:"Ocultar contraseña"},labelAction:_n,startAddon:gn,endAddon:fn,...hn},xn){const[bn,yn]=useState(false),[vn,Tn]=useState(false),In="password"===f&&mn&&!en,wn=useMemo(()=>en&&i?(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})(i):null,[en,i]),jn=useMemo(()=>{if(!en||!i)return null;return De.test(i)&&!(null!==wn)},[en,i,wn]),kn=en&&i&&!jn&&!wn,Nn=kn&&on||null,Sn=Boolean(y&&i.length>0&&i.length<y),zn=!y||i.length>=y,On=!b||i.length<=b,Rn=!Ge||new RegExp(Ge).test(i),An=useMemo(()=>"password"===f&&dn?.length?dn.map(e=>({...e,met:e.test(i)})):null,[f,dn,i]),Cn=!An||An.every(e=>e.met),En={...Je,...cn},$n=Boolean(i&&!c&&!kn&&!wn&&(!p||i.length>0)&&(!en||jn)&&zn&&On&&Rn&&Cn),Ln=useMemo(()=>"password"!==f||!nn||An?null:(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"}})(i),[f,i,nn,An]),Pn=Boolean(!g&&!c&&(!p||i.trim().length>0)&&(!en||jn)&&zn&&On&&Rn&&Cn);useEffect(()=>{Ke?.(Pn);},[Pn,Ke]);const qn=b&&"text"===f&&i,Mn=i.length,Bn=b?Mn/b*100:0,Fn=Bn>80,Un=Bn>=100,Vn=c||kn&&on||Sn&&j||void 0,Wn=Boolean(x&&!c&&!kn),Zn=useFieldIds({id:e,name:a,required:p,error:Vn||void 0,warning:Vn?void 0:m,hint:Wn?x:void 0}),Dn=useId(),Jn=Boolean(gn||fn),Gn=["string"==typeof gn||"number"==typeof gn?`${Dn}-start`:null,"string"==typeof fn||"number"==typeof fn?`${Dn}-end`:null].filter(Boolean),Hn=`${Dn}-rules`,Xn=[Zn.controlProps["aria-describedby"],...Gn,An?Hn:null].filter(Boolean).join(" ")||void 0,Yn=Boolean(c||kn||Sn);return _.jsxs("div",{className:Ze(N,h),"data-testid":"text-input",children:[s&&(()=>{const e=_.jsxs("label",{htmlFor:Zn.inputId,className:S,children:[s,p&&_.jsx("span",{className:z,"aria-hidden":"true",children:"*"})]});return _n?_.jsxs("div",{className:ze,children:[e,_.jsx("span",{className:Oe,children:_n})]}):e})(),_.jsxs("div",{className:Jn?Ze(Ee,Yn?Be:void 0,g?Fe:void 0):Ce,children:[gn&&_.jsx("div",{id:`${Dn}-start`,className:Ze($e,Le),"data-testid":"start-addon",children:gn}),_.jsxs("div",{className:O,children:[He&&!bn&&_.jsx("div",{className:R,children:He}),_.jsx("input",{...hn,ref:xn,...Zn.controlProps,"aria-describedby":Xn,name:a,required:p,type:en||In&&vn?"text":f,inputMode:en?"email":hn.inputMode,value:i,onChange:e=>u(e.target.value),onFocus:()=>{yn(true),Ye?.();},onBlur:()=>{yn(false),Xe?.();},placeholder:d,disabled:g,maxLength:b,minLength:y,pattern:Ge,autoComplete:Qe,className:Ze(A,He?C:void 0,gn?qe:void 0,fn?Me:void 0,qn?E:void 0,In?Re:void 0,c||kn||Sn?$:void 0,g||c||Nn||!$n?void 0:L),"data-testid":"input-field","data-error":!!c||!!kn||Sn}),In&&_.jsx("button",{type:"button",className:Ae,onClick:()=>Tn(e=>!e),"aria-label":vn?pn.hide:pn.show,"aria-pressed":vn,"aria-controls":Zn.inputId,disabled:g,children:vn?_.jsx(k,{size:"sm"}):_.jsx(I,{size:"sm"})}),qn&&_.jsxs("div",{className:Ze(P,Un?B:Fn?M:q),"data-testid":"char-count",children:[_.jsxs("div",{children:[Mn,"/",b]}),Un&&_.jsx(T,{className:F,size:"sm"})]})]}),fn&&_.jsx("div",{id:`${Dn}-end`,className:Ze($e,Pe),"data-testid":"end-addon",children:fn})]}),qn&&b>20&&_.jsx("div",{className:U,children:_.jsx("div",{className:Ze(V,Un?D:Fn?Z:W),style:{width:`${Math.min(Bn,100)}%`}})}),Wn&&_.jsx("p",{id:Zn.hintId,className:J,children:x}),m&&!Vn&&_.jsx("p",{id:Zn.warningId,className:Se,children:m}),p&&!i&&!c&&!kn&&tn&&_.jsx("p",{className:G,children:tn}),en&&i&&jn&&rn&&_.jsxs("div",{className:Ze(H,K),children:[_.jsx(v,{className:X,size:"sm"}),_.jsx("p",{className:Y,children:rn})]}),wn&&!c&&ln&&_.jsxs("div",{className:Ze(H,Q),children:[_.jsx(w,{className:X,size:"sm"}),_.jsxs("p",{className:Y,children:[ln.replace("{suggestion}",wn),_.jsx("button",{type:"button",onClick:()=>u(wn),className:ee,children:wn})]})]}),An&&_.jsxs("div",{id:Hn,className:ve,"data-testid":"password-rules",children:[_.jsx("p",{className:Ue,children:En.title}),_.jsx("ul",{className:Ve,children:An.map(e=>_.jsxs("li",{className:Te,"data-met":e.met,children:[_.jsx(v,{"aria-hidden":"true",className:Ze(Ie,e.met?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,e.met&&Ne),children:e.label}),_.jsx("span",{className:We,children:` (${e.met?En.met:En.unmet})`})]},e.id))})]}),Ln&&Ln.score>0&&_.jsxs("div",{className:oe,children:[_.jsx("div",{className:le,children:[0,1,2,3,4].map(e=>_.jsx("div",{className:Ze(ae,e<Ln.score?"weak"===Ln.strength?ie:"fair"===Ln.strength?ue:"good"===Ln.strength?de:"strong"===Ln.strength?ce:me:se)},e))}),(sn||an?.[Ln.strength])&&_.jsx("div",{className:pe,children:_.jsxs("p",{className:_e,children:[sn&&`${sn} `,_.jsx("span",{className:Ze(ge,"weak"===Ln.strength?fe:"fair"===Ln.strength?he:"good"===Ln.strength?xe:"strong"===Ln.strength?be:ye),children:an?.[Ln.strength]})]})}),un&&_.jsxs("div",{className:ve,children:[un.lowercase&&_.jsxs("div",{className:Te,children:[_.jsx(v,{className:Ze(Ie,/[a-z]/.test(i)?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,/[a-z]/.test(i)&&Ne),children:un.lowercase})]}),un.uppercase&&_.jsxs("div",{className:Te,children:[_.jsx(v,{className:Ze(Ie,/[A-Z]/.test(i)?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,/[A-Z]/.test(i)&&Ne),children:un.uppercase})]}),un.number&&_.jsxs("div",{className:Te,children:[_.jsx(v,{className:Ze(Ie,/\d/.test(i)?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,/\d/.test(i)&&Ne),children:un.number})]}),un.special&&_.jsxs("div",{className:Te,children:[_.jsx(v,{className:Ze(Ie,/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(i)?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(i)&&Ne),children:un.special})]}),un.minLength&&_.jsxs("div",{className:Te,children:[_.jsx(v,{className:Ze(Ie,i.length>=8?we:je),size:"sm"}),_.jsx("span",{className:Ze(ke,i.length>=8&&Ne),children:un.minLength})]})]})]}),Vn&&_.jsxs("div",{id:Zn.errorId,className:ne,role:"alert",children:[_.jsx(T,{className:te,size:"sm"}),_.jsx("p",{className:re,children:Vn})]})]})});Ge.displayName="TextInput";
456
+
457
+ var e$1={exports:{}};
458
+
459
+ var r$2={};
460
+
461
+ /**
462
+ * @license React
463
+ * react-jsx-runtime.production.js
464
+ *
465
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
466
+ *
467
+ * This source code is licensed under the MIT license found in the
468
+ * LICENSE file in the root directory of this source tree.
469
+ */var e;function t$2(){if(e)return r$2;e=1;var t=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function n(r,e,o){var n=null;if(void 0!==o&&(n=""+o),void 0!==e.key&&(n=""+e.key),"key"in e)for(var i in o={},e)"key"!==i&&(o[i]=e[i]);else o=e;return e=o.ref,{$$typeof:t,type:r,key:n,ref:void 0!==e?e:null,props:o}}return r$2.Fragment=o,r$2.jsx=n,r$2.jsxs=n,r$2}
470
+
471
+ var r$1={};
472
+
473
+ /**
474
+ * @license React
475
+ * react-jsx-runtime.development.js
476
+ *
477
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
478
+ *
479
+ * This source code is licensed under the MIT license found in the
480
+ * LICENSE file in the root directory of this source tree.
481
+ */var t$1;function n(){return t$1||(t$1=1,"production"!==process.env.NODE_ENV&&function(){function t(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===N?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case d:return "Fragment";case _:return "Profiler";case b:return "StrictMode";case S:return "Suspense";case j:return "SuspenseList";case w:return "Activity"}if("object"==typeof e)switch("number"==typeof e.tag&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case m:return "Portal";case g:return e.displayName||"Context";case v:return (e._context.displayName||"Context")+".Consumer";case k:var r=e.render;return (e=e.displayName)||(e=""!==(e=r.displayName||r.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case h:return null!==(r=e.displayName||null)?r:t(e.type)||"Memo";case O:r=e._payload,e=e._init;try{return t(e(r))}catch(e){}}return null}function n(e){return ""+e}function o(e){try{n(e);var r=!1;}catch(e){r=true;}if(r){var t=(r=console).error,o="function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",o),n(e)}}function a(e){if(e===d)return "<>";if("object"==typeof e&&null!==e&&e.$$typeof===O)return "<...>";try{var r=t(e);return r?"<"+r+">":"<...>"}catch(e){return "<...>"}}function l(){return Error("react-stack-top-frame")}function i(){var e=t(this.type);return P[e]||(P[e]=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!==(e=this.props.ref)?e:null}function c(e,r,n,a,l,c){var u,y=r.children;if(void 0!==y)if(a)if(x(y)){for(a=0;a<y.length;a++)s(y[a]);Object.freeze&&Object.freeze(y);}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 s(y);if(T.call(r,"key")){y=t(e);var m=Object.keys(r).filter(function(e){return "key"!==e});a=0<m.length?"{key: someKey, "+m.join(": ..., ")+": ...}":"{key: someKey}",C[y+a]||(m=0<m.length?"{"+m.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,y,m,y),C[y+a]=true);}if(y=null,void 0!==n&&(o(n),y=""+n),function(e){if(T.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return false}return void 0!==e.key}(r)&&(o(r.key),y=""+r.key),"key"in r)for(var d in n={},r)"key"!==d&&(n[d]=r[d]);else n=r;return y&&function(e,r){function t(){f||(f=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)",r));}t.isReactWarning=true,Object.defineProperty(e,"key",{get:t,configurable:true});}(n,"function"==typeof e?e.displayName||e.name||"Unknown":e),function(e,r,t,n,o,a){var l=t.ref;return e={$$typeof:p,type:e,key:r,props:t,_owner:n},null!==(void 0!==l?l:null)?Object.defineProperty(e,"ref",{enumerable:false,get:i}):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}(e,y,n,null===(u=R.A)?null:u.getOwner(),l,c)}function s(e){u(e)?e._store&&(e._store.validated=1):"object"==typeof e&&null!==e&&e.$$typeof===O&&("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===p}var f,y=e$2,p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),N=Symbol.for("react.client.reference"),R=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,T=Object.prototype.hasOwnProperty,x=Array.isArray,E=console.createTask?console.createTask:function(){return null},P={},$=(y={react_stack_bottom_frame:function(e){return e()}}).react_stack_bottom_frame.bind(y,l)(),A=E(a(l)),C={};r$1.Fragment=d,r$1.jsx=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,false,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)},r$1.jsxs=function(e,r,t){var n=1e4>R.recentlyCreatedOwnerStacks++;return c(e,r,t,true,n?Error("react-stack-top-frame"):$,n?E(a(e)):A)};}()),r$1}
482
+
483
+ var t;function s(){return t||(t=1,"production"===process.env.NODE_ENV?e$1.exports=t$2():e$1.exports=n()),e$1.exports}
484
+
485
+ var r=s();
486
+
487
+ function l({className:l="",size:s="md"}){const a={sm:16,md:20,lg:24},t=`${{sm:"w-4 h-4",md:"w-5 h-5",lg:"w-6 h-6"}[s]} ${l}`;return r.jsx("svg",{width:a[s],height:a[s],xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:t,"aria-hidden":"true",children:r.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"})})}
488
+
489
+ function styleInject(css, ref) {
490
+ if ( ref === void 0 ) ref = {};
491
+ var insertAt = ref.insertAt;
492
+
493
+ if (typeof document === 'undefined') { return; }
494
+
495
+ var head = document.head || document.getElementsByTagName('head')[0];
496
+ var style = document.createElement('style');
497
+ style.type = 'text/css';
498
+
499
+ if (insertAt === 'top') {
500
+ if (head.firstChild) {
501
+ head.insertBefore(style, head.firstChild);
502
+ } else {
503
+ head.appendChild(style);
504
+ }
505
+ } else {
506
+ head.appendChild(style);
507
+ }
508
+
509
+ if (style.styleSheet) {
510
+ style.styleSheet.cssText = css;
511
+ } else {
512
+ style.appendChild(document.createTextNode(css));
513
+ }
514
+ }
515
+
516
+ var css_248z = ".PhoneInput-module_field__YmGIB {\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-2);\n}\n\n/* En el celular el país va arriba; desde 640 px, al lado del número */\n.PhoneInput-module_row__RdPD6 {\n display: flex;\n flex-direction: column;\n gap: var(--lb-space-3);\n}\n\n.PhoneInput-module_country__rp9-s,\n.PhoneInput-module_number__MJCgk {\n min-width: 0;\n}\n\n@media (min-width: 640px) {\n .PhoneInput-module_row__RdPD6 {\n flex-direction: row;\n align-items: flex-start;\n }\n\n .PhoneInput-module_country__rp9-s {\n flex: 0 0 13rem;\n }\n\n .PhoneInput-module_number__MJCgk {\n flex: 1;\n }\n}\n\n.PhoneInput-module_international__sXC9z {\n display: inline-flex;\n align-items: center;\n gap: var(--lb-space-1);\n margin: 0;\n font-size: var(--lb-font-size-xs);\n font-variant-numeric: tabular-nums;\n color: var(--lb-color-emerald-strong);\n}\n";
517
+ var styles = {"field":"PhoneInput-module_field__YmGIB","row":"PhoneInput-module_row__RdPD6","country":"PhoneInput-module_country__rp9-s","number":"PhoneInput-module_number__MJCgk","international":"PhoneInput-module_international__sXC9z"};
518
+ styleInject(css_248z);
519
+
520
+ /** Países disponibles por defecto. Perú primero. */
521
+ const PHONE_COUNTRIES = [
522
+ { code: "PE", name: "Perú", dialCode: "+51", digits: 9, mask: "### ### ###" },
523
+ {
524
+ code: "MX",
525
+ name: "México",
526
+ dialCode: "+52",
527
+ digits: 10,
528
+ mask: "### ### ####",
529
+ },
530
+ {
531
+ code: "CO",
532
+ name: "Colombia",
533
+ dialCode: "+57",
534
+ digits: 10,
535
+ mask: "### ### ####",
536
+ },
537
+ {
538
+ code: "CL",
539
+ name: "Chile",
540
+ dialCode: "+56",
541
+ digits: 9,
542
+ mask: "# #### ####",
543
+ },
544
+ {
545
+ code: "AR",
546
+ name: "Argentina",
547
+ dialCode: "+54",
548
+ digits: 10,
549
+ mask: "### ### ####",
550
+ },
551
+ {
552
+ code: "BR",
553
+ name: "Brasil",
554
+ dialCode: "+55",
555
+ digits: 11,
556
+ mask: "(##) ##### ####",
557
+ },
558
+ {
559
+ code: "ES",
560
+ name: "España",
561
+ dialCode: "+34",
562
+ digits: 9,
563
+ mask: "### ### ###",
564
+ },
565
+ {
566
+ code: "US",
567
+ name: "Estados Unidos",
568
+ dialCode: "+1",
569
+ digits: 10,
570
+ mask: "(###) ###-####",
571
+ },
572
+ {
573
+ code: "CA",
574
+ name: "Canadá",
575
+ dialCode: "+1",
576
+ digits: 10,
577
+ mask: "(###) ###-####",
578
+ },
579
+ ];
580
+ const findCountry = (code, countries) => countries.find((country) => country.code === code) ?? countries[0];
581
+ /** Solo los dígitos de un número escrito con espacios, guiones o paréntesis. */
582
+ const phoneDigits = (value) => value.replace(/\D/g, "");
583
+ /**
584
+ * Da formato a los dígitos con la máscara del país, sin pasar del largo
585
+ * permitido: `formatPhone("912345678", "PE")` → `"912 345 678"`.
586
+ */
587
+ const formatPhone = (value, countryCode, countries = PHONE_COUNTRIES) => {
588
+ const country = findCountry(countryCode, countries);
589
+ const digits = phoneDigits(value).slice(0, country.digits);
590
+ if (!digits)
591
+ return "";
592
+ let result = "";
593
+ let used = 0;
594
+ for (const char of country.mask) {
595
+ if (used >= digits.length)
596
+ break;
597
+ if (char === "#") {
598
+ result += digits[used];
599
+ used += 1;
600
+ }
601
+ else {
602
+ result += char;
603
+ }
604
+ }
605
+ return result;
606
+ };
607
+ /** `true` si el número tiene exactamente los dígitos del país. */
608
+ const isValidPhone = (value, countryCode, countries = PHONE_COUNTRIES) => phoneDigits(value).length === findCountry(countryCode, countries).digits;
609
+ const DEFAULT_PHONE_INPUT_LABELS = {
610
+ country: "País",
611
+ invalid: "Número no válido para {country}: deben ser {digits} dígitos",
612
+ digitsHint: "{digits} dígitos",
613
+ };
614
+ const interpolate = (template, values) => template.replace(/\{(\w+)\}/g, (_, key) => String(values[key] ?? ""));
615
+ /**
616
+ * Teléfono con país: selector de país (prefijo) y número que se formatea
617
+ * mientras se escribe con la máscara del país. Valida la cantidad de dígitos
618
+ * y, si es válido, muestra el número internacional. En el celular el selector
619
+ * va arriba del número.
620
+ */
621
+ const PhoneInput = ({ label = "Teléfono", value, country, onChange, onCountryChange, countries = PHONE_COUNTRIES, error, warning, hint, required = false, disabled = false, id, name, showInternational = true, onBlur, onFocus, className, labels: labelsProp, }) => {
622
+ const labels = { ...DEFAULT_PHONE_INPUT_LABELS, ...labelsProp };
623
+ const generatedId = e$2.useId();
624
+ const inputId = id ?? generatedId;
625
+ const selected = findCountry(country, countries);
626
+ const valid = isValidPhone(value, selected.code, countries);
627
+ const formatError = value && !valid
628
+ ? interpolate(labels.invalid, {
629
+ country: selected.name,
630
+ digits: selected.digits,
631
+ })
632
+ : undefined;
633
+ const shownError = error || formatError;
634
+ const options = countries.map((item) => ({
635
+ value: item.code,
636
+ label: `${item.name} (${item.dialCode})`,
637
+ }));
638
+ return (jsxRuntimeExports.jsxs("div", { className: [styles.field, className].filter(Boolean).join(" "), children: [jsxRuntimeExports.jsxs("div", { className: styles.row, children: [jsxRuntimeExports.jsx("div", { className: styles.country, children: jsxRuntimeExports.jsx(S$1, { label: labels.country, id: `${inputId}-pais`, name: name ? `${name}-pais` : undefined, value: selected.code, onChange: (code) => {
639
+ onCountryChange(code);
640
+ // Mismos dígitos con la máscara del nuevo país
641
+ if (value)
642
+ onChange(formatPhone(value, code, countries));
643
+ }, options: options, disabled: disabled }) }), jsxRuntimeExports.jsx("div", { className: styles.number, children: jsxRuntimeExports.jsx(Ge, { id: inputId, name: name, label: label, type: "tel", inputMode: "tel", autoComplete: "tel-national", value: value, onChange: (next) => onChange(formatPhone(next, selected.code, countries)), placeholder: selected.mask.replace(/#/g, "0"), error: shownError, warning: shownError ? undefined : warning, hint: hint ??
644
+ interpolate(labels.digitsHint, { digits: selected.digits }), required: required, disabled: disabled, onBlur: onBlur, onFocus: onFocus }) })] }), showInternational && valid && !shownError && (jsxRuntimeExports.jsxs("p", { className: styles.international, "aria-live": "polite", children: [jsxRuntimeExports.jsx(l, { size: "sm" }), selected.dialCode, " ", value] }))] }));
645
+ };
646
+
647
+ export { DEFAULT_PHONE_INPUT_LABELS, PHONE_COUNTRIES, PhoneInput as default, formatPhone, isValidPhone, phoneDigits };