@rubenpazch/date-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,1200 @@
1
+ 'use strict';
2
+
3
+ var require$$0 = 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__namespace = /*#__PURE__*/_interopNamespaceDefault(require$$0);
23
+
24
+ var jsxRuntime$1 = {exports: {}};
25
+
26
+ var reactJsxRuntime_production$1 = {};
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$1;
39
+
40
+ function requireReactJsxRuntime_production$1 () {
41
+ if (hasRequiredReactJsxRuntime_production$1) return reactJsxRuntime_production$1;
42
+ hasRequiredReactJsxRuntime_production$1 = 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$1.Fragment = REACT_FRAGMENT_TYPE;
64
+ reactJsxRuntime_production$1.jsx = jsxProd;
65
+ reactJsxRuntime_production$1.jsxs = jsxProd;
66
+ return reactJsxRuntime_production$1;
67
+ }
68
+
69
+ var reactJsxRuntime_development$1 = {};
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$1;
82
+
83
+ function requireReactJsxRuntime_development$1 () {
84
+ if (hasRequiredReactJsxRuntime_development$1) return reactJsxRuntime_development$1;
85
+ hasRequiredReactJsxRuntime_development$1 = 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,
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$1.Fragment = REACT_FRAGMENT_TYPE;
398
+ reactJsxRuntime_development$1.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$1.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$1;
428
+ }
429
+
430
+ var hasRequiredJsxRuntime$1;
431
+
432
+ function requireJsxRuntime$1 () {
433
+ if (hasRequiredJsxRuntime$1) return jsxRuntime$1.exports;
434
+ hasRequiredJsxRuntime$1 = 1;
435
+
436
+ if (process.env.NODE_ENV === 'production') {
437
+ jsxRuntime$1.exports = requireReactJsxRuntime_production$1();
438
+ } else {
439
+ jsxRuntime$1.exports = requireReactJsxRuntime_development$1();
440
+ }
441
+ return jsxRuntime$1.exports;
442
+ }
443
+
444
+ var jsxRuntimeExports$1 = requireJsxRuntime$1();
445
+
446
+ var e,o$1={exports:{}},t$1={};var r$1,a$1,l$1={};
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
+ */function i$1(){return r$1||(r$1=1,"production"!==process.env.NODE_ENV&&function(){function e(n){if(null==n)return null;if("function"==typeof n)return n.$$typeof===O?null:n.displayName||n.name||null;if("string"==typeof n)return n;switch(n){case p:return "Fragment";case y:return "Profiler";case b:return "StrictMode";case B:return "Suspense";case v:return "SuspenseList";case E: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 f:return "Portal";case h:return n.displayName||"Context";case g:return (n._context.displayName||"Context")+".Consumer";case x:var o=n.render;return (n=n.displayName)||(n=""!==(n=o.displayName||o.name||"")?"ForwardRef("+n+")":"ForwardRef"),n;case k:return null!==(o=n.displayName||null)?o:e(n.type)||"Memo";case S:o=n._payload,n=n._init;try{return e(n(o))}catch(n){}}return null}function o(n){return ""+n}function t(n){try{o(n);var e=!1;}catch(n){e=true;}if(e){var t=(e=console).error,r="function"==typeof Symbol&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return t.call(e,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",r),o(n)}}function r(n){if(n===p)return "<>";if("object"==typeof n&&null!==n&&n.$$typeof===S)return "<...>";try{var o=e(n);return o?"<"+o+">":"<...>"}catch(n){return "<...>"}}function a(){return Error("react-stack-top-frame")}function i(){var n=e(this.type);return P[n]||(P[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 u(n,o,r,a,l,u){var c,_=o.children;if(void 0!==_)if(a)if(j(_)){for(a=0;a<_.length;a++)d(_[a]);Object.freeze&&Object.freeze(_);}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 d(_);if(N.call(o,"key")){_=e(n);var f=Object.keys(o).filter(function(n){return "key"!==n});a=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",z[_+a]||(f=0<f.length?"{"+f.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,_),z[_+a]=true);}if(_=null,void 0!==r&&(t(r),_=""+r),function(n){if(N.call(n,"key")){var e=Object.getOwnPropertyDescriptor(n,"key").get;if(e&&e.isReactWarning)return false}return void 0!==n.key}(o)&&(t(o.key),_=""+o.key),"key"in o)for(var p in r={},o)"key"!==p&&(r[p]=o[p]);else r=o;return _&&function(n,e){function o(){s||(s=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)",e));}o.isReactWarning=true,Object.defineProperty(n,"key",{get:o,configurable:true});}(r,"function"==typeof n?n.displayName||n.name||"Unknown":n),function(n,e,o,t,r,a){var l=o.ref;return n={$$typeof:m,type:n,key:e,props:o,_owner:t},null!==(void 0!==l?l:null)?Object.defineProperty(n,"ref",{enumerable:false,get:i}):Object.defineProperty(n,"ref",{enumerable:false,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(n,"_debugStack",{configurable:false,enumerable:false,writable:true,value:r}),Object.defineProperty(n,"_debugTask",{configurable:false,enumerable:false,writable:true,value:a}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}(n,_,r,null===(c=w.A)?null:c.getOwner(),l,u)}function d(n){c(n)?n._store&&(n._store.validated=1):"object"==typeof n&&null!==n&&n.$$typeof===S&&("fulfilled"===n._payload.status?c(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1));}function c(n){return "object"==typeof n&&null!==n&&n.$$typeof===m}var s,_=require$$0,m=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),h=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=Symbol.for("react.activity"),O=Symbol.for("react.client.reference"),w=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.prototype.hasOwnProperty,j=Array.isArray,I=console.createTask?console.createTask:function(){return null},P={},W=(_={react_stack_bottom_frame:function(n){return n()}}).react_stack_bottom_frame.bind(_,a)(),C=I(r(a)),z={};l$1.Fragment=p,l$1.jsx=function(n,e,o){var t=1e4>w.recentlyCreatedOwnerStacks++;return u(n,e,o,false,t?Error("react-stack-top-frame"):W,t?I(r(n)):C)},l$1.jsxs=function(n,e,o){var t=1e4>w.recentlyCreatedOwnerStacks++;return u(n,e,o,true,t?Error("react-stack-top-frame"):W,t?I(r(n)):C)};}()),l$1}var u=(a$1||(a$1=1,"production"===process.env.NODE_ENV?o$1.exports=function(){if(e)return t$1;e=1;var n=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function r(e,o,t){var r=null;if(void 0!==t&&(r=""+t),void 0!==o.key&&(r=""+o.key),"key"in o)for(var a in t={},o)"key"!==a&&(t[a]=o[a]);else t=o;return o=t.ref,{$$typeof:n,type:e,key:r,ref:void 0!==o?o:null,props:t}}return t$1.Fragment=o,t$1.jsx=r,t$1.jsxs=r,t$1}():o$1.exports=i$1()),o$1.exports);var d={root:"Button-module_root__CbGH4",sizeSmall:"Button-module_sizeSmall__cwk1u",sizeMedium:"Button-module_sizeMedium__WI9SU",sizeLarge:"Button-module_sizeLarge__DCsOs",disabled:"Button-module_disabled__JgtZl",fullWidth:"Button-module_fullWidth__dOsPn",noElevation:"Button-module_noElevation__I6-zN",loading:"Button-module_loading__fZbPs",loadingWrapper:"Button-module_loadingWrapper__NrZp3",content:"Button-module_content__xCYa9",contentHidden:"Button-module_contentHidden__lJy-Z",startIcon:"Button-module_startIcon__x3190",endIcon:"Button-module_endIcon__9vUum",text:"Button-module_text__5mE0X",textPrimary:"Button-module_textPrimary__vfnk5",textSecondary:"Button-module_textSecondary__a3EiY",textSuccess:"Button-module_textSuccess__F84Hf",textError:"Button-module_textError__47t2-",textWarning:"Button-module_textWarning__sUoJ4",textInfo:"Button-module_textInfo__eHIQf",contained:"Button-module_contained__ihcEr",containedPrimary:"Button-module_containedPrimary__QABiB",containedSecondary:"Button-module_containedSecondary__Amyuq",containedSuccess:"Button-module_containedSuccess__klgok",containedError:"Button-module_containedError__WOxWG",containedWarning:"Button-module_containedWarning__dFc-N",containedInfo:"Button-module_containedInfo__PLgZO",outlined:"Button-module_outlined__3QTXD",outlinedPrimary:"Button-module_outlinedPrimary__fKrCf",outlinedSecondary:"Button-module_outlinedSecondary__n7OpX",outlinedSuccess:"Button-module_outlinedSuccess__Y2Plg",outlinedError:"Button-module_outlinedError__6NJ-J",outlinedWarning:"Button-module_outlinedWarning__aXlYk",outlinedInfo:"Button-module_outlinedInfo__hpDkF",spinner:"Button-module_spinner__vwfOT",spin:"Button-module_spin__fjXhP",spinnerCircle:"Button-module_spinnerCircle__7vRpf",spinnerDash:"Button-module_spinnerDash__y8Dii"};!function(n,e){ void 0===e&&(e={});var o=e.insertAt;if("undefined"!=typeof document){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===o&&t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n));}}(".Button-module_root__CbGH4 {\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n font-family: inherit;\n font-weight: 500;\n border: 1px solid transparent;\n line-height: 1.75;\n white-space: nowrap;\n background: transparent;\n color: inherit;\n cursor: pointer;\n border-radius: 0.25rem;\n transition:\n background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),\n color 250ms cubic-bezier(0.4, 0, 0.2, 1),\n border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),\n box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);\n}\n\n.Button-module_root__CbGH4:focus-visible {\n outline: none;\n box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.5);\n}\n\n/* Size variants */\n.Button-module_sizeSmall__cwk1u {\n padding: 0.25rem 0.625rem;\n font-size: 0.8125rem;\n min-height: 1.875rem;\n}\n\n.Button-module_sizeMedium__WI9SU {\n padding: 0.375rem 1rem;\n font-size: 0.875rem;\n min-height: 2.25rem;\n}\n\n.Button-module_sizeLarge__DCsOs {\n padding: 0.5rem 1.375rem;\n font-size: 0.9375rem;\n min-height: 2.625rem;\n}\n\n/* Disabled state */\n.Button-module_disabled__JgtZl {\n background: rgba(0, 0, 0, 0.12);\n color: rgba(0, 0, 0, 0.26);\n border-color: transparent;\n cursor: not-allowed;\n pointer-events: none;\n box-shadow: none;\n}\n\n/* Full width */\n.Button-module_fullWidth__dOsPn {\n width: 100%;\n}\n\n/* No elevation */\n.Button-module_noElevation__I6-zN {\n box-shadow: none !important;\n}\n\n/* Loading state */\n.Button-module_loading__fZbPs {\n pointer-events: none;\n}\n\n.Button-module_loadingWrapper__NrZp3 {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.Button-module_content__xCYa9 {\n display: inline-flex;\n align-items: inherit;\n justify-content: inherit;\n gap: 0.5rem;\n}\n\n.Button-module_contentHidden__lJy-Z {\n opacity: 0;\n}\n\n.Button-module_startIcon__x3190,\n.Button-module_endIcon__9vUum {\n display: inherit;\n font-size: 1.25em;\n line-height: 1;\n}\n\n/* Variant: text */\n.Button-module_text__5mE0X {\n padding: 0.375rem 0.5rem;\n}\n\n.Button-module_text__5mE0X:hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n/* ============================================\n COLOR STYLES - TEXT VARIANT\n ============================================ */\n\n/* Primary */\n.Button-module_textPrimary__vfnk5 {\n color: #1976d2;\n}\n.Button-module_textPrimary__vfnk5:hover {\n background-color: rgba(25, 118, 210, 0.04);\n}\n\n/* Secondary */\n.Button-module_textSecondary__a3EiY {\n color: #9c27b0;\n}\n.Button-module_textSecondary__a3EiY:hover {\n background-color: rgba(156, 39, 176, 0.04);\n}\n\n/* Success */\n.Button-module_textSuccess__F84Hf {\n color: #2e7d32;\n}\n.Button-module_textSuccess__F84Hf:hover {\n background-color: rgba(46, 125, 50, 0.04);\n}\n\n/* Error */\n.Button-module_textError__47t2- {\n color: #d32f2f;\n}\n.Button-module_textError__47t2-:hover {\n background-color: rgba(211, 47, 47, 0.04);\n}\n\n/* Warning */\n.Button-module_textWarning__sUoJ4 {\n color: #ed6c02;\n}\n.Button-module_textWarning__sUoJ4:hover {\n background-color: rgba(237, 108, 2, 0.04);\n}\n\n/* Info */\n.Button-module_textInfo__eHIQf {\n color: #0288d1;\n}\n.Button-module_textInfo__eHIQf:hover {\n background-color: rgba(2, 136, 209, 0.04);\n}\n\n/* ============================================\n COLOR STYLES - CONTAINED VARIANT\n ============================================ */\n\n/* Contained base */\n.Button-module_contained__ihcEr {\n box-shadow:\n 0px 3px 1px -2px rgba(0, 0, 0, 0.2),\n 0px 2px 2px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_contained__ihcEr:hover {\n box-shadow:\n 0px 2px 4px -1px rgba(0, 0, 0, 0.2),\n 0px 4px 5px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 10px 0px rgba(0, 0, 0, 0.12);\n}\n\n.Button-module_contained__ihcEr:active {\n box-shadow:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n}\n\n/* Primary */\n.Button-module_containedPrimary__QABiB {\n background-color: #1976d2;\n color: #fff;\n}\n.Button-module_containedPrimary__QABiB:hover {\n background-color: #1565c0;\n}\n\n/* Secondary */\n.Button-module_containedSecondary__Amyuq {\n background-color: #9c27b0;\n color: #fff;\n}\n.Button-module_containedSecondary__Amyuq:hover {\n background-color: #7b1fa2;\n}\n\n/* Success */\n.Button-module_containedSuccess__klgok {\n background-color: #2e7d32;\n color: #fff;\n}\n.Button-module_containedSuccess__klgok:hover {\n background-color: #1b5e20;\n}\n\n/* Error */\n.Button-module_containedError__WOxWG {\n background-color: #d32f2f;\n color: #fff;\n}\n.Button-module_containedError__WOxWG:hover {\n background-color: #c62828;\n}\n\n/* Warning */\n.Button-module_containedWarning__dFc-N {\n background-color: #ed6c02;\n color: #fff;\n}\n.Button-module_containedWarning__dFc-N:hover {\n background-color: #e65100;\n}\n\n/* Info */\n.Button-module_containedInfo__PLgZO {\n background-color: #0288d1;\n color: #fff;\n}\n.Button-module_containedInfo__PLgZO:hover {\n background-color: #01579b;\n}\n\n/* ============================================\n COLOR STYLES - OUTLINED VARIANT\n ============================================ */\n\n/* Outlined base */\n.Button-module_outlined__3QTXD {\n border: 1px solid rgba(0, 0, 0, 0.23);\n}\n\n/* Primary */\n.Button-module_outlinedPrimary__fKrCf {\n color: #1976d2;\n border-color: rgba(25, 118, 210, 0.5);\n}\n.Button-module_outlinedPrimary__fKrCf:hover {\n background-color: rgba(25, 118, 210, 0.04);\n border-color: #1976d2;\n}\n\n/* Secondary */\n.Button-module_outlinedSecondary__n7OpX {\n color: #9c27b0;\n border-color: rgba(156, 39, 176, 0.5);\n}\n.Button-module_outlinedSecondary__n7OpX:hover {\n background-color: rgba(156, 39, 176, 0.04);\n border-color: #9c27b0;\n}\n\n/* Success */\n.Button-module_outlinedSuccess__Y2Plg {\n color: #2e7d32;\n border-color: rgba(46, 125, 50, 0.5);\n}\n.Button-module_outlinedSuccess__Y2Plg:hover {\n background-color: rgba(46, 125, 50, 0.04);\n border-color: #2e7d32;\n}\n\n/* Error */\n.Button-module_outlinedError__6NJ-J {\n color: #d32f2f;\n border-color: rgba(211, 47, 47, 0.5);\n}\n.Button-module_outlinedError__6NJ-J:hover {\n background-color: rgba(211, 47, 47, 0.04);\n border-color: #d32f2f;\n}\n\n/* Warning */\n.Button-module_outlinedWarning__aXlYk {\n color: #ed6c02;\n border-color: rgba(237, 108, 2, 0.5);\n}\n.Button-module_outlinedWarning__aXlYk:hover {\n background-color: rgba(237, 108, 2, 0.04);\n border-color: #ed6c02;\n}\n\n/* Info */\n.Button-module_outlinedInfo__hpDkF {\n color: #0288d1;\n border-color: rgba(2, 136, 209, 0.5);\n}\n.Button-module_outlinedInfo__hpDkF:hover {\n background-color: rgba(2, 136, 209, 0.04);\n border-color: #0288d1;\n}\n\n/* Spinner animation */\n.Button-module_spinner__vwfOT {\n display: inline-flex;\n animation: Button-module_spin__fjXhP 0.8s linear infinite;\n}\n\n.Button-module_spinnerCircle__7vRpf {\n stroke-dasharray: 50;\n stroke-dashoffset: 25;\n animation: Button-module_spinnerDash__y8Dii 1.5s ease-in-out infinite;\n}\n\n@keyframes Button-module_spin__fjXhP {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes Button-module_spinnerDash__y8Dii {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}\n");const c$1=(...n)=>n.filter(Boolean).join(" "),s={small:d.sizeSmall,medium:d.sizeMedium,large:d.sizeLarge},_=({size:n})=>{const e={small:14,medium:18,large:22}[n];return u.jsx("svg",{className:d.spinner,width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("circle",{className:d.spinnerCircle,cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})})},m=require$$0.forwardRef((n,e)=>{const{variant:o="text",color:t="primary",size:r="medium",component:a,className:l,loading:i=false,startIcon:m,endIcon:f,fullWidth:p=false,disableElevation:b=false,children:y,...g}=n,h="disabled"in n&&n.disabled,x="href"in n?n.href:void 0,B=a||(x?"a":"button"),v=h||i,k=c$1(d.root,d[o],((n,e)=>{const o=`${e}${n.charAt(0).toUpperCase()}${n.slice(1)}`;return d[o]||""})(t,o),s[r],v?d.disabled:void 0,p?d.fullWidth:void 0,b?d.noElevation:void 0,i?d.loading:void 0,l),S="button"===B?{disabled:v}:{},E="a"===B?{href:x,"aria-disabled":v}:{};return u.jsxs(B,{ref:e,className:k,...S,...E,...g,children:[i&&u.jsx("span",{className:d.loadingWrapper,children:u.jsx(_,{size:r})}),u.jsxs("span",{className:c$1(d.content,i?d.contentHidden:void 0),children:[m&&u.jsx("span",{className:d.startIcon,children:m}),y,f&&u.jsx("span",{className:d.endIcon,children:f})]})]})});m.displayName="Button";
456
+
457
+ var jsxRuntime = {exports: {}};
458
+
459
+ var reactJsxRuntime_production = {};
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
+ */
470
+
471
+ var hasRequiredReactJsxRuntime_production;
472
+
473
+ function requireReactJsxRuntime_production () {
474
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
475
+ hasRequiredReactJsxRuntime_production = 1;
476
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
477
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
478
+ function jsxProd(type, config, maybeKey) {
479
+ var key = null;
480
+ void 0 !== maybeKey && (key = "" + maybeKey);
481
+ void 0 !== config.key && (key = "" + config.key);
482
+ if ("key" in config) {
483
+ maybeKey = {};
484
+ for (var propName in config)
485
+ "key" !== propName && (maybeKey[propName] = config[propName]);
486
+ } else maybeKey = config;
487
+ config = maybeKey.ref;
488
+ return {
489
+ $$typeof: REACT_ELEMENT_TYPE,
490
+ type: type,
491
+ key: key,
492
+ ref: void 0 !== config ? config : null,
493
+ props: maybeKey
494
+ };
495
+ }
496
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
497
+ reactJsxRuntime_production.jsx = jsxProd;
498
+ reactJsxRuntime_production.jsxs = jsxProd;
499
+ return reactJsxRuntime_production;
500
+ }
501
+
502
+ var reactJsxRuntime_development = {};
503
+
504
+ /**
505
+ * @license React
506
+ * react-jsx-runtime.development.js
507
+ *
508
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
509
+ *
510
+ * This source code is licensed under the MIT license found in the
511
+ * LICENSE file in the root directory of this source tree.
512
+ */
513
+
514
+ var hasRequiredReactJsxRuntime_development;
515
+
516
+ function requireReactJsxRuntime_development () {
517
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
518
+ hasRequiredReactJsxRuntime_development = 1;
519
+ "production" !== process.env.NODE_ENV &&
520
+ (function () {
521
+ function getComponentNameFromType(type) {
522
+ if (null == type) return null;
523
+ if ("function" === typeof type)
524
+ return type.$$typeof === REACT_CLIENT_REFERENCE
525
+ ? null
526
+ : type.displayName || type.name || null;
527
+ if ("string" === typeof type) return type;
528
+ switch (type) {
529
+ case REACT_FRAGMENT_TYPE:
530
+ return "Fragment";
531
+ case REACT_PROFILER_TYPE:
532
+ return "Profiler";
533
+ case REACT_STRICT_MODE_TYPE:
534
+ return "StrictMode";
535
+ case REACT_SUSPENSE_TYPE:
536
+ return "Suspense";
537
+ case REACT_SUSPENSE_LIST_TYPE:
538
+ return "SuspenseList";
539
+ case REACT_ACTIVITY_TYPE:
540
+ return "Activity";
541
+ }
542
+ if ("object" === typeof type)
543
+ switch (
544
+ ("number" === typeof type.tag &&
545
+ console.error(
546
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
547
+ ),
548
+ type.$$typeof)
549
+ ) {
550
+ case REACT_PORTAL_TYPE:
551
+ return "Portal";
552
+ case REACT_CONTEXT_TYPE:
553
+ return type.displayName || "Context";
554
+ case REACT_CONSUMER_TYPE:
555
+ return (type._context.displayName || "Context") + ".Consumer";
556
+ case REACT_FORWARD_REF_TYPE:
557
+ var innerType = type.render;
558
+ type = type.displayName;
559
+ type ||
560
+ ((type = innerType.displayName || innerType.name || ""),
561
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
562
+ return type;
563
+ case REACT_MEMO_TYPE:
564
+ return (
565
+ (innerType = type.displayName || null),
566
+ null !== innerType
567
+ ? innerType
568
+ : getComponentNameFromType(type.type) || "Memo"
569
+ );
570
+ case REACT_LAZY_TYPE:
571
+ innerType = type._payload;
572
+ type = type._init;
573
+ try {
574
+ return getComponentNameFromType(type(innerType));
575
+ } catch (x) {}
576
+ }
577
+ return null;
578
+ }
579
+ function testStringCoercion(value) {
580
+ return "" + value;
581
+ }
582
+ function checkKeyStringCoercion(value) {
583
+ try {
584
+ testStringCoercion(value);
585
+ var JSCompiler_inline_result = !1;
586
+ } catch (e) {
587
+ JSCompiler_inline_result = true;
588
+ }
589
+ if (JSCompiler_inline_result) {
590
+ JSCompiler_inline_result = console;
591
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
592
+ var JSCompiler_inline_result$jscomp$0 =
593
+ ("function" === typeof Symbol &&
594
+ Symbol.toStringTag &&
595
+ value[Symbol.toStringTag]) ||
596
+ value.constructor.name ||
597
+ "Object";
598
+ JSCompiler_temp_const.call(
599
+ JSCompiler_inline_result,
600
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
601
+ JSCompiler_inline_result$jscomp$0
602
+ );
603
+ return testStringCoercion(value);
604
+ }
605
+ }
606
+ function getTaskName(type) {
607
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
608
+ if (
609
+ "object" === typeof type &&
610
+ null !== type &&
611
+ type.$$typeof === REACT_LAZY_TYPE
612
+ )
613
+ return "<...>";
614
+ try {
615
+ var name = getComponentNameFromType(type);
616
+ return name ? "<" + name + ">" : "<...>";
617
+ } catch (x) {
618
+ return "<...>";
619
+ }
620
+ }
621
+ function getOwner() {
622
+ var dispatcher = ReactSharedInternals.A;
623
+ return null === dispatcher ? null : dispatcher.getOwner();
624
+ }
625
+ function UnknownOwner() {
626
+ return Error("react-stack-top-frame");
627
+ }
628
+ function hasValidKey(config) {
629
+ if (hasOwnProperty.call(config, "key")) {
630
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
631
+ if (getter && getter.isReactWarning) return false;
632
+ }
633
+ return void 0 !== config.key;
634
+ }
635
+ function defineKeyPropWarningGetter(props, displayName) {
636
+ function warnAboutAccessingKey() {
637
+ specialPropKeyWarningShown ||
638
+ ((specialPropKeyWarningShown = true),
639
+ console.error(
640
+ "%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)",
641
+ displayName
642
+ ));
643
+ }
644
+ warnAboutAccessingKey.isReactWarning = true;
645
+ Object.defineProperty(props, "key", {
646
+ get: warnAboutAccessingKey,
647
+ configurable: true
648
+ });
649
+ }
650
+ function elementRefGetterWithDeprecationWarning() {
651
+ var componentName = getComponentNameFromType(this.type);
652
+ didWarnAboutElementRef[componentName] ||
653
+ ((didWarnAboutElementRef[componentName] = true),
654
+ console.error(
655
+ "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."
656
+ ));
657
+ componentName = this.props.ref;
658
+ return void 0 !== componentName ? componentName : null;
659
+ }
660
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
661
+ var refProp = props.ref;
662
+ type = {
663
+ $$typeof: REACT_ELEMENT_TYPE,
664
+ type: type,
665
+ key: key,
666
+ props: props,
667
+ _owner: owner
668
+ };
669
+ null !== (void 0 !== refProp ? refProp : null)
670
+ ? Object.defineProperty(type, "ref", {
671
+ enumerable: false,
672
+ get: elementRefGetterWithDeprecationWarning
673
+ })
674
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
675
+ type._store = {};
676
+ Object.defineProperty(type._store, "validated", {
677
+ configurable: false,
678
+ enumerable: false,
679
+ writable: true,
680
+ value: 0
681
+ });
682
+ Object.defineProperty(type, "_debugInfo", {
683
+ configurable: false,
684
+ enumerable: false,
685
+ writable: true,
686
+ value: null
687
+ });
688
+ Object.defineProperty(type, "_debugStack", {
689
+ configurable: false,
690
+ enumerable: false,
691
+ writable: true,
692
+ value: debugStack
693
+ });
694
+ Object.defineProperty(type, "_debugTask", {
695
+ configurable: false,
696
+ enumerable: false,
697
+ writable: true,
698
+ value: debugTask
699
+ });
700
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
701
+ return type;
702
+ }
703
+ function jsxDEVImpl(
704
+ type,
705
+ config,
706
+ maybeKey,
707
+ isStaticChildren,
708
+ debugStack,
709
+ debugTask
710
+ ) {
711
+ var children = config.children;
712
+ if (void 0 !== children)
713
+ if (isStaticChildren)
714
+ if (isArrayImpl(children)) {
715
+ for (
716
+ isStaticChildren = 0;
717
+ isStaticChildren < children.length;
718
+ isStaticChildren++
719
+ )
720
+ validateChildKeys(children[isStaticChildren]);
721
+ Object.freeze && Object.freeze(children);
722
+ } else
723
+ console.error(
724
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
725
+ );
726
+ else validateChildKeys(children);
727
+ if (hasOwnProperty.call(config, "key")) {
728
+ children = getComponentNameFromType(type);
729
+ var keys = Object.keys(config).filter(function (k) {
730
+ return "key" !== k;
731
+ });
732
+ isStaticChildren =
733
+ 0 < keys.length
734
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
735
+ : "{key: someKey}";
736
+ didWarnAboutKeySpread[children + isStaticChildren] ||
737
+ ((keys =
738
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
739
+ console.error(
740
+ '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} />',
741
+ isStaticChildren,
742
+ children,
743
+ keys,
744
+ children
745
+ ),
746
+ (didWarnAboutKeySpread[children + isStaticChildren] = true));
747
+ }
748
+ children = null;
749
+ void 0 !== maybeKey &&
750
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
751
+ hasValidKey(config) &&
752
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
753
+ if ("key" in config) {
754
+ maybeKey = {};
755
+ for (var propName in config)
756
+ "key" !== propName && (maybeKey[propName] = config[propName]);
757
+ } else maybeKey = config;
758
+ children &&
759
+ defineKeyPropWarningGetter(
760
+ maybeKey,
761
+ "function" === typeof type
762
+ ? type.displayName || type.name || "Unknown"
763
+ : type
764
+ );
765
+ return ReactElement(
766
+ type,
767
+ children,
768
+ maybeKey,
769
+ getOwner(),
770
+ debugStack,
771
+ debugTask
772
+ );
773
+ }
774
+ function validateChildKeys(node) {
775
+ isValidElement(node)
776
+ ? node._store && (node._store.validated = 1)
777
+ : "object" === typeof node &&
778
+ null !== node &&
779
+ node.$$typeof === REACT_LAZY_TYPE &&
780
+ ("fulfilled" === node._payload.status
781
+ ? isValidElement(node._payload.value) &&
782
+ node._payload.value._store &&
783
+ (node._payload.value._store.validated = 1)
784
+ : node._store && (node._store.validated = 1));
785
+ }
786
+ function isValidElement(object) {
787
+ return (
788
+ "object" === typeof object &&
789
+ null !== object &&
790
+ object.$$typeof === REACT_ELEMENT_TYPE
791
+ );
792
+ }
793
+ var React = require$$0,
794
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
795
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
796
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
797
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
798
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
799
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
800
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
801
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
802
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
803
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
804
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
805
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
806
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
807
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
808
+ ReactSharedInternals =
809
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
810
+ hasOwnProperty = Object.prototype.hasOwnProperty,
811
+ isArrayImpl = Array.isArray,
812
+ createTask = console.createTask
813
+ ? console.createTask
814
+ : function () {
815
+ return null;
816
+ };
817
+ React = {
818
+ react_stack_bottom_frame: function (callStackForError) {
819
+ return callStackForError();
820
+ }
821
+ };
822
+ var specialPropKeyWarningShown;
823
+ var didWarnAboutElementRef = {};
824
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
825
+ React,
826
+ UnknownOwner
827
+ )();
828
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
829
+ var didWarnAboutKeySpread = {};
830
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
831
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
832
+ var trackActualOwner =
833
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
834
+ return jsxDEVImpl(
835
+ type,
836
+ config,
837
+ maybeKey,
838
+ false,
839
+ trackActualOwner
840
+ ? Error("react-stack-top-frame")
841
+ : unknownOwnerDebugStack,
842
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
843
+ );
844
+ };
845
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
846
+ var trackActualOwner =
847
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
848
+ return jsxDEVImpl(
849
+ type,
850
+ config,
851
+ maybeKey,
852
+ true,
853
+ trackActualOwner
854
+ ? Error("react-stack-top-frame")
855
+ : unknownOwnerDebugStack,
856
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
857
+ );
858
+ };
859
+ })();
860
+ return reactJsxRuntime_development;
861
+ }
862
+
863
+ var hasRequiredJsxRuntime;
864
+
865
+ function requireJsxRuntime () {
866
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
867
+ hasRequiredJsxRuntime = 1;
868
+
869
+ if (process.env.NODE_ENV === 'production') {
870
+ jsxRuntime.exports = requireReactJsxRuntime_production();
871
+ } else {
872
+ jsxRuntime.exports = requireReactJsxRuntime_development();
873
+ }
874
+ return jsxRuntime.exports;
875
+ }
876
+
877
+ var jsxRuntimeExports = requireJsxRuntime();
878
+
879
+ function styleInject$1(css, ref) {
880
+ if ( ref === void 0 ) ref = {};
881
+ var insertAt = ref.insertAt;
882
+
883
+ if (typeof document === 'undefined') { return; }
884
+
885
+ var head = document.head || document.getElementsByTagName('head')[0];
886
+ var style = document.createElement('style');
887
+ style.type = 'text/css';
888
+
889
+ if (insertAt === 'top') {
890
+ if (head.firstChild) {
891
+ head.insertBefore(style, head.firstChild);
892
+ } else {
893
+ head.appendChild(style);
894
+ }
895
+ } else {
896
+ head.appendChild(style);
897
+ }
898
+
899
+ if (style.styleSheet) {
900
+ style.styleSheet.cssText = css;
901
+ } else {
902
+ style.appendChild(document.createTextNode(css));
903
+ }
904
+ }
905
+
906
+ var css_248z$1 = "/* Container */\n.IconButton-module_root__OeJI- {\n display: inline-flex;\n position: relative;\n}\n\n/* Button base */\n.IconButton-module_button__4Nd2Y {\n transition: all 200ms;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n}\n\n/* Sizes - Icon only */\n.IconButton-module_sizeSmall__bzuoa {\n padding: 0.5rem;\n width: 2rem;\n height: 2rem;\n}\n\n.IconButton-module_sizeMedium__RVUm- {\n padding: 0.625rem;\n width: 2.5rem;\n height: 2.5rem;\n}\n\n/* Sizes - With text */\n.IconButton-module_textSmall__JDLDQ {\n padding: 0.375rem 0.75rem;\n font-size: 0.75rem;\n font-weight: 500;\n}\n\n.IconButton-module_textMedium__5fZu- {\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n}\n\n/* Shapes */\n.IconButton-module_shapeRounded__coEl9 {\n border-radius: 9999px;\n}\n\n.IconButton-module_shapeSquare__sLXWp {\n border-radius: 0.5rem;\n}\n\n.IconButton-module_roundedLg__8-1dJ {\n border-radius: 0.5rem;\n}\n\n/* Icon sizes */\n.IconButton-module_iconSmall__b1FgZ {\n width: 1rem;\n height: 1rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.IconButton-module_iconMedium__eM0iz {\n width: 1.25rem;\n height: 1.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Disabled state */\n.IconButton-module_disabled__JHuO- {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* Focus styles */\n.IconButton-module_focusFilled__ZJk-n:focus {\n outline: none;\n box-shadow:\n 0 0 0 2px white,\n 0 0 0 4px currentColor;\n}\n\n.IconButton-module_focusOutline__r5GNi:focus {\n outline: none;\n box-shadow:\n 0 0 0 2px white,\n 0 0 0 4px currentColor;\n}\n\n.IconButton-module_focusUnderline__npQBO:focus {\n outline: none;\n text-decoration: underline;\n}\n\n/* Link style */\n.IconButton-module_linkStyle__Yndex:hover {\n text-decoration: underline;\n}\n\n/* Variants - Default */\n.IconButton-module_variantDefaultOutlined__Grkdb {\n color: #2563eb;\n border: 2px solid #2563eb;\n}\n\n.IconButton-module_variantDefaultOutlined__Grkdb:hover:not(:disabled) {\n background-color: #eff6ff;\n}\n\n.IconButton-module_variantDefaultFilled__1cFiO {\n background-color: #2563eb;\n color: white;\n}\n\n.IconButton-module_variantDefaultFilled__1cFiO:hover:not(:disabled) {\n background-color: #1d4ed8;\n}\n\n.IconButton-module_variantDefaultQuiet__tOMEl {\n color: #2563eb;\n}\n\n.IconButton-module_variantDefaultQuiet__tOMEl:hover:not(:disabled) {\n color: #1d4ed8;\n background-color: #eff6ff;\n}\n\n/* Variants - Secondary */\n.IconButton-module_variantSecondaryOutlined__pEjyX {\n color: #4b5563;\n border: 2px solid #4b5563;\n}\n\n.IconButton-module_variantSecondaryOutlined__pEjyX:hover:not(:disabled) {\n background-color: #f9fafb;\n}\n\n.IconButton-module_variantSecondaryFilled__ZY-cK {\n background-color: #4b5563;\n color: white;\n}\n\n.IconButton-module_variantSecondaryFilled__ZY-cK:hover:not(:disabled) {\n background-color: #374151;\n}\n\n.IconButton-module_variantSecondaryQuiet__IsOFW {\n color: #4b5563;\n}\n\n.IconButton-module_variantSecondaryQuiet__IsOFW:hover:not(:disabled) {\n color: #1f2937;\n background-color: #f9fafb;\n}\n\n/* Variants - Black */\n.IconButton-module_variantBlackOutlined__tVikC {\n color: #000;\n border: 2px solid #000;\n}\n\n.IconButton-module_variantBlackOutlined__tVikC:hover:not(:disabled) {\n background-color: #f3f4f6;\n}\n\n.IconButton-module_variantBlackFilled__71iwX {\n background-color: #000;\n color: white;\n}\n\n.IconButton-module_variantBlackFilled__71iwX:hover:not(:disabled) {\n background-color: #111827;\n}\n\n.IconButton-module_variantBlackQuiet__nNlZz {\n color: #000;\n}\n\n.IconButton-module_variantBlackQuiet__nNlZz:hover:not(:disabled) {\n color: #111827;\n background-color: #f3f4f6;\n}\n\n/* Variants - Gradient Green */\n.IconButton-module_variantGradientGreenOutlined__E3jjm {\n color: #34d399;\n border: 2px solid #34d399;\n}\n\n.IconButton-module_variantGradientGreenOutlined__E3jjm:hover:not(:disabled) {\n background-color: #ecfdf5;\n}\n\n.IconButton-module_variantGradientGreenFilled__7YMfu {\n background: linear-gradient(to right, #34d399, #22d3ee);\n color: white;\n}\n\n.IconButton-module_variantGradientGreenFilled__7YMfu:hover:not(:disabled) {\n opacity: 0.9;\n}\n\n.IconButton-module_variantGradientGreenQuiet__mNMY0 {\n color: #10b981;\n}\n\n.IconButton-module_variantGradientGreenQuiet__mNMY0:hover:not(:disabled) {\n color: #059669;\n background-color: #ecfdf5;\n}\n\n/* Variants - Solid Green */\n.IconButton-module_variantSolidGreenOutlined__vNPXm {\n color: #10b981;\n border: 2px solid #10b981;\n}\n\n.IconButton-module_variantSolidGreenOutlined__vNPXm:hover:not(:disabled) {\n background-color: #ecfdf5;\n}\n\n.IconButton-module_variantSolidGreenFilled__yUA7L {\n background-color: #10b981;\n color: white;\n}\n\n.IconButton-module_variantSolidGreenFilled__yUA7L:hover:not(:disabled) {\n background-color: #059669;\n}\n\n.IconButton-module_variantSolidGreenQuiet__3PorI {\n color: #10b981;\n}\n\n.IconButton-module_variantSolidGreenQuiet__3PorI:hover:not(:disabled) {\n color: #059669;\n background-color: #ecfdf5;\n}\n\n/* Variants - Blue */\n.IconButton-module_variantBlueOutlined__rErvH {\n color: #3b82f6;\n border: 2px solid #3b82f6;\n}\n\n.IconButton-module_variantBlueOutlined__rErvH:hover:not(:disabled) {\n background-color: #eff6ff;\n}\n\n.IconButton-module_variantBlueFilled__jDAto {\n background-color: #3b82f6;\n color: white;\n}\n\n.IconButton-module_variantBlueFilled__jDAto:hover:not(:disabled) {\n background-color: #2563eb;\n}\n\n.IconButton-module_variantBlueQuiet__blcUu {\n color: #3b82f6;\n}\n\n.IconButton-module_variantBlueQuiet__blcUu:hover:not(:disabled) {\n color: #2563eb;\n background-color: #eff6ff;\n}\n\n/* Variants - Pink */\n.IconButton-module_variantPinkOutlined__AnhZD {\n color: #ec4899;\n border: 2px solid #ec4899;\n}\n\n.IconButton-module_variantPinkOutlined__AnhZD:hover:not(:disabled) {\n background-color: #fdf2f8;\n}\n\n.IconButton-module_variantPinkFilled__hp3wm {\n background-color: #ec4899;\n color: white;\n}\n\n.IconButton-module_variantPinkFilled__hp3wm:hover:not(:disabled) {\n background-color: #db2777;\n}\n\n.IconButton-module_variantPinkQuiet__-xL4- {\n color: #ec4899;\n}\n\n.IconButton-module_variantPinkQuiet__-xL4-:hover:not(:disabled) {\n color: #db2777;\n background-color: #fdf2f8;\n}\n\n/* Variants - Warning */\n.IconButton-module_variantWarningOutlined__zWIz5 {\n color: #f97316;\n border: 2px solid #f97316;\n}\n\n.IconButton-module_variantWarningOutlined__zWIz5:hover:not(:disabled) {\n background-color: #fff7ed;\n}\n\n.IconButton-module_variantWarningFilled__m8Q-W {\n background-color: #f97316;\n color: white;\n}\n\n.IconButton-module_variantWarningFilled__m8Q-W:hover:not(:disabled) {\n background-color: #ea580c;\n}\n\n.IconButton-module_variantWarningQuiet__NmQFL {\n color: #f97316;\n}\n\n.IconButton-module_variantWarningQuiet__NmQFL:hover:not(:disabled) {\n color: #ea580c;\n background-color: #fff7ed;\n}\n\n/* Disabled quiet */\n.IconButton-module_disabledQuiet__c5jUS {\n color: #4b5563;\n}\n\n.IconButton-module_disabledQuiet__c5jUS:focus {\n outline: none;\n}\n\n/* Tooltip */\n.IconButton-module_tooltip__NWsLt {\n position: absolute;\n z-index: 50;\n padding: 0.25rem 0.5rem;\n font-size: 0.75rem;\n color: white;\n background-color: #111827;\n border-radius: 0.25rem;\n white-space: nowrap;\n pointer-events: none;\n}\n\n.IconButton-module_tooltipTop__Jl-BA {\n bottom: 100%;\n margin-bottom: 0.5rem;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.IconButton-module_tooltipTop__Jl-BA::after {\n content: \"\";\n position: absolute;\n top: 100%;\n left: 50%;\n transform: translateX(-50%);\n border: 4px solid transparent;\n border-top-color: #111827;\n}\n\n.IconButton-module_tooltipBottom__jm-42 {\n top: 100%;\n margin-top: 0.5rem;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.IconButton-module_tooltipBottom__jm-42::after {\n content: \"\";\n position: absolute;\n bottom: 100%;\n left: 50%;\n transform: translateX(-50%);\n border: 4px solid transparent;\n border-bottom-color: #111827;\n}\n\n.IconButton-module_tooltipLeft__L5doh {\n right: 100%;\n margin-right: 0.5rem;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.IconButton-module_tooltipLeft__L5doh::after {\n content: \"\";\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n border: 4px solid transparent;\n border-left-color: #111827;\n}\n\n.IconButton-module_tooltipRight__kUVkh {\n left: 100%;\n margin-left: 0.5rem;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.IconButton-module_tooltipRight__kUVkh::after {\n content: \"\";\n position: absolute;\n right: 100%;\n top: 50%;\n transform: translateY(-50%);\n border: 4px solid transparent;\n border-right-color: #111827;\n}\n\n/* Whitespace */\n.IconButton-module_whitespaceNowrap__EhkvW {\n white-space: nowrap;\n}\n";
907
+ var styles$1 = {"root":"IconButton-module_root__OeJI-","button":"IconButton-module_button__4Nd2Y","sizeSmall":"IconButton-module_sizeSmall__bzuoa","sizeMedium":"IconButton-module_sizeMedium__RVUm-","textSmall":"IconButton-module_textSmall__JDLDQ","textMedium":"IconButton-module_textMedium__5fZu-","shapeRounded":"IconButton-module_shapeRounded__coEl9","shapeSquare":"IconButton-module_shapeSquare__sLXWp","roundedLg":"IconButton-module_roundedLg__8-1dJ","iconSmall":"IconButton-module_iconSmall__b1FgZ","iconMedium":"IconButton-module_iconMedium__eM0iz","disabled":"IconButton-module_disabled__JHuO-","focusFilled":"IconButton-module_focusFilled__ZJk-n","focusOutline":"IconButton-module_focusOutline__r5GNi","focusUnderline":"IconButton-module_focusUnderline__npQBO","linkStyle":"IconButton-module_linkStyle__Yndex","variantDefaultOutlined":"IconButton-module_variantDefaultOutlined__Grkdb","variantDefaultFilled":"IconButton-module_variantDefaultFilled__1cFiO","variantDefaultQuiet":"IconButton-module_variantDefaultQuiet__tOMEl","variantSecondaryOutlined":"IconButton-module_variantSecondaryOutlined__pEjyX","variantSecondaryFilled":"IconButton-module_variantSecondaryFilled__ZY-cK","variantSecondaryQuiet":"IconButton-module_variantSecondaryQuiet__IsOFW","variantBlackOutlined":"IconButton-module_variantBlackOutlined__tVikC","variantBlackFilled":"IconButton-module_variantBlackFilled__71iwX","variantBlackQuiet":"IconButton-module_variantBlackQuiet__nNlZz","variantGradientGreenOutlined":"IconButton-module_variantGradientGreenOutlined__E3jjm","variantGradientGreenFilled":"IconButton-module_variantGradientGreenFilled__7YMfu","variantGradientGreenQuiet":"IconButton-module_variantGradientGreenQuiet__mNMY0","variantSolidGreenOutlined":"IconButton-module_variantSolidGreenOutlined__vNPXm","variantSolidGreenFilled":"IconButton-module_variantSolidGreenFilled__yUA7L","variantSolidGreenQuiet":"IconButton-module_variantSolidGreenQuiet__3PorI","variantBlueOutlined":"IconButton-module_variantBlueOutlined__rErvH","variantBlueFilled":"IconButton-module_variantBlueFilled__jDAto","variantBlueQuiet":"IconButton-module_variantBlueQuiet__blcUu","variantPinkOutlined":"IconButton-module_variantPinkOutlined__AnhZD","variantPinkFilled":"IconButton-module_variantPinkFilled__hp3wm","variantPinkQuiet":"IconButton-module_variantPinkQuiet__-xL4-","variantWarningOutlined":"IconButton-module_variantWarningOutlined__zWIz5","variantWarningFilled":"IconButton-module_variantWarningFilled__m8Q-W","variantWarningQuiet":"IconButton-module_variantWarningQuiet__NmQFL","disabledQuiet":"IconButton-module_disabledQuiet__c5jUS","tooltip":"IconButton-module_tooltip__NWsLt","tooltipTop":"IconButton-module_tooltipTop__Jl-BA","tooltipBottom":"IconButton-module_tooltipBottom__jm-42","tooltipLeft":"IconButton-module_tooltipLeft__L5doh","tooltipRight":"IconButton-module_tooltipRight__kUVkh","whitespaceNowrap":"IconButton-module_whitespaceNowrap__EhkvW"};
908
+ styleInject$1(css_248z$1);
909
+
910
+ const IconButton = require$$0.forwardRef(({ icon, variant = "default", size = "medium", shape = "rounded", filled = false, quiet = false, inverted = false, linkStyle = false, focusStyleType = "filled", focusTriggerType = "self", iconPosition = "start", label, labelPosition = "end", tooltip, tooltipPosition = "top", className, disabled, children, type = "button", ...props }, ref) => {
911
+ const [showTooltip, setShowTooltip] = require$$0.useState(false);
912
+ // Inverted styles (outline becomes filled and vice versa)
913
+ const isFilledStyle = inverted ? !filled : filled;
914
+ // Determine variant class
915
+ const getVariantClass = () => {
916
+ if (disabled && quiet) {
917
+ return styles$1.disabledQuiet;
918
+ }
919
+ const variantKey = variant.replace(/-./g, (m) => m[1].toUpperCase());
920
+ const capitalizedVariant = variantKey.charAt(0).toUpperCase() + variantKey.slice(1);
921
+ let styleType;
922
+ if (quiet) {
923
+ styleType = "Quiet";
924
+ }
925
+ else if (isFilledStyle) {
926
+ styleType = "Filled";
927
+ }
928
+ else {
929
+ styleType = "Outlined";
930
+ }
931
+ return styles$1[`variant${capitalizedVariant}${styleType}`];
932
+ };
933
+ const variantClass = getVariantClass();
934
+ const sizeClass = size === "small" ? styles$1.sizeSmall : styles$1.sizeMedium;
935
+ const textSizeClass = size === "small" ? styles$1.textSmall : styles$1.textMedium;
936
+ const shapeClass = shape === "square" ? styles$1.shapeSquare : styles$1.shapeRounded;
937
+ const iconSizeClass = size === "small" ? styles$1.iconSmall : styles$1.iconMedium;
938
+ const focusClass = styles$1[`focus${focusStyleType.charAt(0).toUpperCase() + focusStyleType.slice(1)}`];
939
+ const tooltipPosClass = styles$1[`tooltip${tooltipPosition.charAt(0).toUpperCase() + tooltipPosition.slice(1)}`];
940
+ // If icon-only button (no children, no label)
941
+ if (!children && !label) {
942
+ const buttonClasses = [
943
+ styles$1.button,
944
+ sizeClass,
945
+ variantClass,
946
+ shapeClass,
947
+ disabled && styles$1.disabled,
948
+ focusClass,
949
+ linkStyle && !disabled && styles$1.linkStyle,
950
+ className,
951
+ ]
952
+ .filter(Boolean)
953
+ .join(" ");
954
+ return (jsxRuntimeExports.jsxs("div", { className: styles$1.root, children: [jsxRuntimeExports.jsx("button", { ref: ref, disabled: disabled, className: buttonClasses, "data-focus-trigger": focusTriggerType, onMouseEnter: () => tooltip && setShowTooltip(true), onMouseLeave: () => setShowTooltip(false), onFocus: () => tooltip && setShowTooltip(true), onBlur: () => setShowTooltip(false), ...props, children: jsxRuntimeExports.jsx("span", { className: iconSizeClass, children: icon }) }), tooltip && showTooltip && (jsxRuntimeExports.jsx("div", { className: `${styles$1.tooltip} ${tooltipPosClass}`, children: tooltip }))] }));
955
+ }
956
+ // Icon button with text
957
+ const textButtonClasses = [
958
+ styles$1.button,
959
+ textSizeClass,
960
+ variantClass,
961
+ styles$1.roundedLg,
962
+ disabled && styles$1.disabled,
963
+ focusClass,
964
+ linkStyle && !disabled && styles$1.linkStyle,
965
+ styles$1.whitespaceNowrap,
966
+ className,
967
+ ]
968
+ .filter(Boolean)
969
+ .join(" ");
970
+ // Arrange icon and text based on position
971
+ const iconElement = jsxRuntimeExports.jsx("span", { className: iconSizeClass, children: icon });
972
+ const textElement = children || label;
973
+ const content = iconPosition === "start" ? (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [iconElement, textElement] })) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [textElement, iconElement] }));
974
+ return (jsxRuntimeExports.jsxs("div", { className: styles$1.root, children: [jsxRuntimeExports.jsx("button", { ref: ref, disabled: disabled, className: textButtonClasses, "data-focus-trigger": focusTriggerType, onMouseEnter: () => tooltip && setShowTooltip(true), onMouseLeave: () => setShowTooltip(false), onFocus: () => tooltip && setShowTooltip(true), onBlur: () => setShowTooltip(false), ...props, type: type, children: content }), tooltip && showTooltip && (jsxRuntimeExports.jsx("div", { className: `${styles$1.tooltip} ${tooltipPosClass}`, children: tooltip }))] }));
975
+ });
976
+ IconButton.displayName = "IconButton";
977
+
978
+ var r,o={exports:{}},t={};var l,n,a={};
979
+ /**
980
+ * @license React
981
+ * react-jsx-runtime.development.js
982
+ *
983
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
984
+ *
985
+ * This source code is licensed under the MIT license found in the
986
+ * LICENSE file in the root directory of this source tree.
987
+ */function i(){return l||(l=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,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.Fragment=x,a.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.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}var c=(n||(n=1,"production"===process.env.NODE_ENV?o.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.exports=i()),o.exports);const v=({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.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:r,"aria-label":"Calendar",children:c.jsx("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})})};const y=({className:e="",size:s="md",color:r="currentColor",direction:o="down"})=>c.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.jsx("path",{d:"M6 9l6 6 6-6"})});const E=({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.jsx("svg",{className:r,viewBox:"0 0 20 20",fill:"currentColor","aria-label":"Error",children:c.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"})})};const Xe={outlined:"material-symbols-outlined",rounded:"material-symbols-rounded",sharp:"material-symbols-sharp"},Ye=require$$0__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.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";
988
+
989
+ function styleInject(css, ref) {
990
+ if ( ref === void 0 ) ref = {};
991
+ var insertAt = ref.insertAt;
992
+
993
+ if (typeof document === 'undefined') { return; }
994
+
995
+ var head = document.head || document.getElementsByTagName('head')[0];
996
+ var style = document.createElement('style');
997
+ style.type = 'text/css';
998
+
999
+ if (insertAt === 'top') {
1000
+ if (head.firstChild) {
1001
+ head.insertBefore(style, head.firstChild);
1002
+ } else {
1003
+ head.appendChild(style);
1004
+ }
1005
+ } else {
1006
+ head.appendChild(style);
1007
+ }
1008
+
1009
+ if (style.styleSheet) {
1010
+ style.styleSheet.cssText = css;
1011
+ } else {
1012
+ style.appendChild(document.createTextNode(css));
1013
+ }
1014
+ }
1015
+
1016
+ var css_248z = ".DateInput-module_wrapper__MP3pN {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.DateInput-module_label__5Viox {\n display: block;\n font-size: 0.875rem;\n font-weight: 500;\n color: #374151;\n}\n\n.DateInput-module_required__LLtRa {\n color: #ef4444;\n margin-left: 0.25rem;\n}\n\n.DateInput-module_inputWrapper__7reUr {\n position: relative;\n}\n\n.DateInput-module_inputContainer__-gSJ0 {\n display: flex;\n align-items: center;\n border: 1px solid #d1d5db;\n border-radius: 0.5rem;\n overflow: hidden;\n transition:\n border-color 150ms ease,\n box-shadow 150ms ease;\n background: #ffffff;\n}\n\n.DateInput-module_inputContainer__-gSJ0:focus-within {\n border-color: transparent;\n box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);\n}\n\n.DateInput-module_inputError__l6qyl {\n border-color: #ef4444;\n}\n\n.DateInput-module_inputError__l6qyl:focus-within {\n box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.3);\n}\n\n.DateInput-module_inputDisabled__UfVE3 {\n background: #f3f4f6;\n}\n\n.DateInput-module_input__xXOdW {\n flex: 1;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n color: #111827;\n border: none;\n outline: none;\n background: transparent;\n}\n\n.DateInput-module_input__xXOdW::placeholder {\n color: #9ca3af;\n}\n\n.DateInput-module_input__xXOdW:disabled {\n color: #6b7280;\n}\n\n.DateInput-module_iconButton__JbQEl {\n padding: 0.5rem 0.75rem;\n color: #6b7280;\n background: transparent;\n border: none;\n cursor: pointer;\n transition:\n color 150ms ease,\n opacity 150ms ease;\n}\n\n.DateInput-module_iconButton__JbQEl:hover:not(:disabled) {\n color: #374151;\n}\n\n.DateInput-module_iconButton__JbQEl:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n.DateInput-module_icon__QYsQ2 {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.DateInput-module_calendar__J2TaA {\n position: absolute;\n top: calc(100% + 0.5rem);\n left: 0;\n z-index: 50;\n width: 20rem;\n background: #ffffff;\n border: 1px solid #d1d5db;\n border-radius: 0.75rem;\n box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);\n}\n\n.DateInput-module_header__l1q1l {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 1rem;\n border-bottom: 1px solid #e5e7eb;\n}\n\n.DateInput-module_navButton__MpmWa {\n padding: 0.5rem;\n border: none;\n background: transparent;\n border-radius: 0.5rem;\n cursor: pointer;\n transition: background-color 150ms ease;\n}\n\n.DateInput-module_navButton__MpmWa:hover {\n background: #f3f4f6;\n}\n\n.DateInput-module_navIconPrev__m4nOB,\n.DateInput-module_navIconNext__uHOxV {\n width: 1.25rem;\n height: 1.25rem;\n color: #4b5563;\n}\n\n.DateInput-module_navIconPrev__m4nOB {\n transform: rotate(90deg);\n}\n\n.DateInput-module_navIconNext__uHOxV {\n transform: rotate(-90deg);\n}\n\n.DateInput-module_monthTitle__ubEKP {\n flex: 1;\n text-align: center;\n font-size: 1rem;\n font-weight: 600;\n color: #111827;\n}\n\n.DateInput-module_dayNames__nlbfg {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0.25rem;\n padding: 0.75rem 1rem 0.5rem;\n border-bottom: 1px solid #e5e7eb;\n}\n\n.DateInput-module_dayName__tUYuM {\n text-align: center;\n font-size: 0.75rem;\n font-weight: 600;\n color: #6b7280;\n padding: 0.5rem 0;\n}\n\n.DateInput-module_calendarGrid__duNI4 {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0.25rem;\n padding: 1rem;\n}\n\n.DateInput-module_dayButton__5YF7V {\n padding: 0;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 500;\n border: none;\n background: transparent;\n transition:\n background-color 150ms ease,\n color 150ms ease,\n border-color 150ms ease;\n box-shadow: none;\n}\n\n.DateInput-module_dayEmpty__G6G3v {\n cursor: default;\n background: transparent;\n}\n\n.DateInput-module_daySelectable__JTaJu {\n color: #111827;\n cursor: pointer;\n}\n\n.DateInput-module_daySelectable__JTaJu:hover {\n background: #f3f4f6;\n}\n\n.DateInput-module_daySelected__E-Dn9 {\n background: #2563eb;\n color: #ffffff;\n}\n\n.DateInput-module_daySelected__E-Dn9:hover {\n background: #1d4ed8;\n}\n\n.DateInput-module_dayToday__agR7N {\n background: #eff6ff;\n color: #2563eb;\n border: 2px solid #bfdbfe;\n}\n\n.DateInput-module_dayToday__agR7N:hover {\n background: #dbeafe;\n}\n\n.DateInput-module_dayDisabled__xHiwC {\n color: #d1d5db;\n cursor: not-allowed;\n}\n\n.DateInput-module_quickActions__6-1px {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n padding: 1rem;\n border-top: 1px solid #e5e7eb;\n}\n\n.DateInput-module_actionButton__PZFxK {\n flex: 1;\n}\n\n.DateInput-module_hint__FQbf3 {\n margin-top: 0.25rem;\n font-size: 0.75rem;\n color: #6b7280;\n}\n\n.DateInput-module_errorRow__8nWQ1 {\n display: flex;\n align-items: flex-start;\n gap: 0.5rem;\n margin-top: 0.25rem;\n}\n\n.DateInput-module_errorIcon__s1CsH {\n width: 1rem;\n height: 1rem;\n color: #ef4444;\n flex-shrink: 0;\n margin-top: 0.125rem;\n}\n\n.DateInput-module_errorText__970HV {\n font-size: 0.875rem;\n color: #dc2626;\n}\n";
1017
+ var styles = {"wrapper":"DateInput-module_wrapper__MP3pN","label":"DateInput-module_label__5Viox","required":"DateInput-module_required__LLtRa","inputWrapper":"DateInput-module_inputWrapper__7reUr","inputContainer":"DateInput-module_inputContainer__-gSJ0","inputError":"DateInput-module_inputError__l6qyl","inputDisabled":"DateInput-module_inputDisabled__UfVE3","input":"DateInput-module_input__xXOdW","icon":"DateInput-module_icon__QYsQ2","calendar":"DateInput-module_calendar__J2TaA","header":"DateInput-module_header__l1q1l","navIconPrev":"DateInput-module_navIconPrev__m4nOB","navIconNext":"DateInput-module_navIconNext__uHOxV","monthTitle":"DateInput-module_monthTitle__ubEKP","dayNames":"DateInput-module_dayNames__nlbfg","dayName":"DateInput-module_dayName__tUYuM","calendarGrid":"DateInput-module_calendarGrid__duNI4","dayButton":"DateInput-module_dayButton__5YF7V","dayEmpty":"DateInput-module_dayEmpty__G6G3v","daySelectable":"DateInput-module_daySelectable__JTaJu","daySelected":"DateInput-module_daySelected__E-Dn9","dayToday":"DateInput-module_dayToday__agR7N","dayDisabled":"DateInput-module_dayDisabled__xHiwC","quickActions":"DateInput-module_quickActions__6-1px","actionButton":"DateInput-module_actionButton__PZFxK","hint":"DateInput-module_hint__FQbf3","errorRow":"DateInput-module_errorRow__8nWQ1","errorIcon":"DateInput-module_errorIcon__s1CsH","errorText":"DateInput-module_errorText__970HV"};
1018
+ styleInject(css_248z);
1019
+
1020
+ const DateInput = ({ label, value, onChange, placeholder = "MM/DD/YYYY", error, required = false, disabled = false, minDate, maxDate, className = "", hint, locale = "en", }) => {
1021
+ const classNames = (...classes) => classes.filter(Boolean).join(" ");
1022
+ const [isOpen, setIsOpen] = require$$0.useState(false);
1023
+ const [currentMonth, setCurrentMonth] = require$$0.useState(value ? new Date(value) : new Date());
1024
+ const [inputValue, setInputValue] = require$$0.useState(value);
1025
+ const containerRef = require$$0.useRef(null);
1026
+ const inputRef = require$$0.useRef(null);
1027
+ // Format date based on locale
1028
+ const formatDate = (date) => {
1029
+ if (locale.startsWith("es")) {
1030
+ return date.toLocaleDateString("es-ES", {
1031
+ year: "numeric",
1032
+ month: "2-digit",
1033
+ day: "2-digit",
1034
+ });
1035
+ }
1036
+ return date.toLocaleDateString("en-US", {
1037
+ year: "numeric",
1038
+ month: "2-digit",
1039
+ day: "2-digit",
1040
+ });
1041
+ };
1042
+ // Parse input value
1043
+ const parseInputValue = (val) => {
1044
+ if (!val)
1045
+ return null;
1046
+ const date = new Date(val);
1047
+ return isNaN(date.getTime()) ? null : date;
1048
+ };
1049
+ // Handle date selection from calendar
1050
+ const handleSelectDate = (day) => {
1051
+ const selectedDate = new Date(currentMonth);
1052
+ selectedDate.setDate(day);
1053
+ const isoString = selectedDate.toISOString().split("T")[0];
1054
+ onChange(isoString);
1055
+ setInputValue(formatDate(selectedDate));
1056
+ setIsOpen(false);
1057
+ };
1058
+ // Handle month navigation
1059
+ const handlePreviousMonth = () => {
1060
+ setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() - 1));
1061
+ };
1062
+ const handleNextMonth = () => {
1063
+ setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1));
1064
+ };
1065
+ // Handle input change with validation
1066
+ const handleInputChange = (e) => {
1067
+ const val = e.target.value;
1068
+ setInputValue(val);
1069
+ // Try to parse the date
1070
+ const parsed = parseInputValue(val);
1071
+ if (parsed) {
1072
+ onChange(parsed.toISOString().split("T")[0]);
1073
+ setCurrentMonth(parsed);
1074
+ }
1075
+ };
1076
+ // Handle input blur
1077
+ const handleInputBlur = () => {
1078
+ if (inputValue && !parseInputValue(inputValue)) {
1079
+ // Invalid date, reset
1080
+ setInputValue(value);
1081
+ }
1082
+ };
1083
+ // Close picker on outside click
1084
+ require$$0.useEffect(() => {
1085
+ const handleClickOutside = (event) => {
1086
+ if (containerRef.current &&
1087
+ !containerRef.current.contains(event.target)) {
1088
+ setIsOpen(false);
1089
+ }
1090
+ };
1091
+ document.addEventListener("mousedown", handleClickOutside);
1092
+ return () => document.removeEventListener("mousedown", handleClickOutside);
1093
+ }, []);
1094
+ // Update input value when prop changes
1095
+ require$$0.useEffect(() => {
1096
+ if (value) {
1097
+ const date = new Date(value);
1098
+ setInputValue(formatDate(date));
1099
+ setCurrentMonth(date);
1100
+ }
1101
+ else {
1102
+ setInputValue("");
1103
+ }
1104
+ }, [value, locale]);
1105
+ // Get days in month
1106
+ const getDaysInMonth = (date) => {
1107
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
1108
+ };
1109
+ // Get first day of month (0 = Sunday)
1110
+ const getFirstDayOfMonth = (date) => {
1111
+ return new Date(date.getFullYear(), date.getMonth(), 1).getDay();
1112
+ };
1113
+ // Get day names
1114
+ const getDayNames = () => {
1115
+ if (locale.startsWith("es")) {
1116
+ return ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"];
1117
+ }
1118
+ return ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
1119
+ };
1120
+ // Get month name
1121
+ const getMonthName = (date) => {
1122
+ if (locale.startsWith("es")) {
1123
+ return date.toLocaleDateString("es-ES", {
1124
+ month: "long",
1125
+ year: "numeric",
1126
+ });
1127
+ }
1128
+ return date.toLocaleDateString("en-US", {
1129
+ month: "long",
1130
+ year: "numeric",
1131
+ });
1132
+ };
1133
+ // Check if date is selectable
1134
+ const isDateSelectable = (day) => {
1135
+ const testDate = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day);
1136
+ const testDateStr = testDate.toISOString().split("T")[0];
1137
+ if (minDate && testDateStr < minDate)
1138
+ return false;
1139
+ if (maxDate && testDateStr > maxDate)
1140
+ return false;
1141
+ return true;
1142
+ };
1143
+ // Check if date is today
1144
+ const isToday = (day) => {
1145
+ const today = new Date();
1146
+ return (day === today.getDate() &&
1147
+ currentMonth.getMonth() === today.getMonth() &&
1148
+ currentMonth.getFullYear() === today.getFullYear());
1149
+ };
1150
+ // Check if date is selected
1151
+ const isSelected = (day) => {
1152
+ if (!value)
1153
+ return false;
1154
+ const selectedDate = new Date(value);
1155
+ return (day === selectedDate.getDate() &&
1156
+ currentMonth.getMonth() === selectedDate.getMonth() &&
1157
+ currentMonth.getFullYear() === selectedDate.getFullYear());
1158
+ };
1159
+ // Generate calendar days
1160
+ const calendarDays = [];
1161
+ const daysInMonth = getDaysInMonth(currentMonth);
1162
+ const firstDay = getFirstDayOfMonth(currentMonth);
1163
+ // Add empty cells for days before the first day of month
1164
+ for (let i = 0; i < firstDay; i++) {
1165
+ calendarDays.push(null);
1166
+ }
1167
+ // Add days of the month
1168
+ for (let i = 1; i <= daysInMonth; i++) {
1169
+ calendarDays.push(i);
1170
+ }
1171
+ const getQuickActionLabels = () => {
1172
+ if (locale.startsWith("es")) {
1173
+ return { today: "Hoy", clear: "Limpiar" };
1174
+ }
1175
+ return { today: "Today", clear: "Clear" };
1176
+ };
1177
+ const { today, clear } = getQuickActionLabels();
1178
+ return (jsxRuntimeExports$1.jsxs("div", { className: classNames(styles.wrapper, className), ref: containerRef, children: [label && (jsxRuntimeExports$1.jsxs("label", { className: styles.label, children: [label, required && jsxRuntimeExports$1.jsx("span", { className: styles.required, children: "*" })] })), jsxRuntimeExports$1.jsxs("div", { className: styles.inputWrapper, children: [jsxRuntimeExports$1.jsxs("div", { className: classNames(styles.inputContainer, error && styles.inputError, disabled && styles.inputDisabled), children: [jsxRuntimeExports$1.jsx("input", { ref: inputRef, type: "text", value: inputValue, onChange: handleInputChange, onBlur: handleInputBlur, onClick: () => !disabled && setIsOpen(!isOpen), onFocus: () => !disabled && setIsOpen(true), placeholder: placeholder, disabled: disabled, className: styles.input }), jsxRuntimeExports$1.jsx(IconButton, { icon: jsxRuntimeExports$1.jsx(v, { size: "md", className: styles.icon }), "aria-label": "Open calendar", onClick: () => !disabled && setIsOpen(!isOpen), disabled: disabled, size: "small", variant: "secondary", quiet: true })] }), isOpen && !disabled && (jsxRuntimeExports$1.jsxs("div", { className: styles.calendar, children: [jsxRuntimeExports$1.jsxs("div", { className: styles.header, children: [jsxRuntimeExports$1.jsx(IconButton, { icon: jsxRuntimeExports$1.jsx(y, { size: "md", className: styles.navIconPrev }), "aria-label": "Previous month", onClick: handlePreviousMonth, size: "small", variant: "secondary", quiet: true }), jsxRuntimeExports$1.jsx("h3", { className: styles.monthTitle, children: getMonthName(currentMonth) }), jsxRuntimeExports$1.jsx(IconButton, { icon: jsxRuntimeExports$1.jsx(y, { size: "md", className: styles.navIconNext }), "aria-label": "Next month", onClick: handleNextMonth, size: "small", variant: "secondary", quiet: true })] }), jsxRuntimeExports$1.jsx("div", { className: styles.dayNames, children: getDayNames().map((day) => (jsxRuntimeExports$1.jsx("div", { className: styles.dayName, children: day }, day))) }), jsxRuntimeExports$1.jsx("div", { className: styles.calendarGrid, children: calendarDays.map((day, index) => (jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => day !== null &&
1179
+ isDateSelectable(day) &&
1180
+ handleSelectDate(day), disabled: day === null || !isDateSelectable(day), variant: "text", color: "secondary", size: "small", disableElevation: true, className: classNames(styles.dayButton, day === null && styles.dayEmpty, day !== null && isSelected(day) && styles.daySelected, day !== null &&
1181
+ !isSelected(day) &&
1182
+ isToday(day) &&
1183
+ styles.dayToday, day !== null &&
1184
+ !isSelected(day) &&
1185
+ !isToday(day) &&
1186
+ isDateSelectable(day) &&
1187
+ styles.daySelectable, day !== null &&
1188
+ !isDateSelectable(day) &&
1189
+ styles.dayDisabled), children: day }, index))) }), jsxRuntimeExports$1.jsxs("div", { className: styles.quickActions, children: [jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => {
1190
+ const today = new Date();
1191
+ handleSelectDate(today.getDate());
1192
+ setCurrentMonth(today);
1193
+ }, variant: "outlined", color: "primary", size: "small", className: styles.actionButton, children: today }), jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => {
1194
+ onChange("");
1195
+ setInputValue("");
1196
+ setIsOpen(false);
1197
+ }, variant: "outlined", color: "secondary", size: "small", className: styles.actionButton, children: clear })] })] }))] }), hint && !error && jsxRuntimeExports$1.jsx("p", { className: styles.hint, children: hint }), error && (jsxRuntimeExports$1.jsxs("div", { className: styles.errorRow, children: [jsxRuntimeExports$1.jsx(E, { size: "sm", className: styles.errorIcon }), jsxRuntimeExports$1.jsx("p", { className: styles.errorText, children: error })] }))] }));
1198
+ };
1199
+
1200
+ module.exports = DateInput;