@rubenpazch/date-picker 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,1381 @@
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 = ".DatePicker-module_wrapper__PLuo9 {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.DatePicker-module_label__HeVOn {\n display: block;\n font-size: 0.875rem;\n font-weight: 500;\n color: #374151;\n}\n\n.DatePicker-module_required__z35aC {\n color: #ef4444;\n margin-left: 0.25rem;\n}\n\n.DatePicker-module_inputWrapper__d7QTx {\n position: relative;\n}\n\n.DatePicker-module_inputContainer__i2kk5 {\n display: flex;\n align-items: center;\n border: 2px solid #d1d5db;\n border-radius: 0.75rem;\n background: #ffffff;\n transition:\n border-color 150ms ease,\n box-shadow 150ms ease;\n}\n\n.DatePicker-module_inputFocused__MaPwp {\n border-color: #3b82f6;\n box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);\n}\n\n.DatePicker-module_inputError__qcfGs {\n border-color: #ef4444;\n box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);\n}\n\n.DatePicker-module_inputRequired__gYago {\n border-color: #fca5a5;\n}\n\n.DatePicker-module_inputDisabled__p5x69 {\n background: #f3f4f6;\n}\n\n.DatePicker-module_inputReadOnly__K9gZ5 {\n background: #f9fafb;\n}\n\n.DatePicker-module_input__SLV7n {\n flex: 1;\n padding: 0.5rem 1rem;\n font-size: 0.875rem;\n font-weight: 500;\n color: #111827;\n border: none;\n outline: none;\n background: transparent;\n}\n\n.DatePicker-module_input__SLV7n::placeholder {\n color: #9ca3af;\n}\n\n.DatePicker-module_inputPointer__xkQ5- {\n cursor: pointer;\n}\n\n.DatePicker-module_inputReadOnlyText__vAoUU {\n cursor: default;\n}\n\n.DatePicker-module_inputDisabledText__2BwlL {\n color: #6b7280;\n cursor: not-allowed;\n}\n\n.DatePicker-module_iconButton__AK257 {\n padding: 0.5rem 0.75rem;\n border: none;\n background: transparent;\n color: #6b7280;\n cursor: pointer;\n transition:\n color 150ms ease,\n opacity 150ms ease;\n}\n\n.DatePicker-module_iconButton__AK257:hover {\n color: #374151;\n}\n\n.DatePicker-module_iconButtonDisabled__f2vnt {\n color: #9ca3af;\n cursor: not-allowed;\n}\n\n.DatePicker-module_icon__5LCYL {\n width: 1.25rem;\n height: 1.25rem;\n}\n\n.DatePicker-module_calendar__FIORK {\n position: absolute;\n top: calc(100% + 0.5rem);\n left: 0;\n z-index: 50;\n width: min(100%, 25rem);\n min-width: 20rem;\n background: #ffffff;\n border: 2px solid #e5e7eb;\n border-radius: 0.75rem;\n box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);\n}\n\n.DatePicker-module_header__aTthD {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0.75rem 1rem;\n border-bottom: 2px solid #f3f4f6;\n}\n\n.DatePicker-module_navButton__-5tdi {\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.DatePicker-module_navButton__-5tdi:hover {\n background: #f3f4f6;\n}\n\n.DatePicker-module_navIconPrev__B8bMo,\n.DatePicker-module_navIconNext__aI5mK {\n width: 1.25rem;\n height: 1.25rem;\n color: #4b5563;\n}\n\n.DatePicker-module_navIconPrev__B8bMo {\n transform: rotate(90deg);\n}\n\n.DatePicker-module_navIconNext__aI5mK {\n transform: rotate(-90deg);\n}\n\n.DatePicker-module_headerCenter__SCCd- {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.5rem;\n flex: 1;\n}\n\n.DatePicker-module_headerButton__Mc-uA {\n padding: 0.25rem 0.75rem;\n border: none;\n background: transparent;\n border-radius: 0.5rem;\n font-size: 1rem;\n font-weight: 600;\n color: #111827;\n cursor: pointer;\n transition: background-color 150ms ease;\n box-shadow: none;\n}\n\n.DatePicker-module_headerButton__Mc-uA:hover {\n background: #f3f4f6;\n}\n\n.DatePicker-module_headerTitle__HMqTy {\n font-size: 1rem;\n font-weight: 600;\n color: #111827;\n}\n\n.DatePicker-module_dayNames__IgMPI {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0.25rem;\n padding: 0.75rem 1rem 0.5rem;\n}\n\n.DatePicker-module_dayName__vRFE2 {\n text-align: center;\n font-size: 0.75rem;\n font-weight: 600;\n color: #6b7280;\n}\n\n.DatePicker-module_dayGrid__nrOFT {\n display: grid;\n grid-template-columns: repeat(7, 1fr);\n gap: 0.25rem;\n padding: 0 1rem 0.75rem;\n}\n\n.DatePicker-module_dayButton__wjjxy {\n height: 2.5rem;\n padding: 0;\n border: none;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 600;\n transition:\n background-color 150ms ease,\n color 150ms ease,\n box-shadow 150ms ease;\n background: transparent;\n box-shadow: none;\n}\n\n.DatePicker-module_dayEmpty__Unxgw {\n background: transparent;\n cursor: default;\n}\n\n.DatePicker-module_daySelectable__VOc6I {\n background: transparent;\n color: #111827;\n cursor: pointer;\n}\n\n.DatePicker-module_daySelectable__VOc6I:hover {\n background: #f3f4f6;\n}\n\n.DatePicker-module_daySelected__8UGIz {\n background: #2563eb;\n color: #ffffff;\n box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);\n}\n\n.DatePicker-module_daySelected__8UGIz:hover {\n background: #1d4ed8;\n}\n\n.DatePicker-module_dayToday__G7v74 {\n background: #f3f4f6;\n color: #2563eb;\n border: 2px solid #3b82f6;\n}\n\n.DatePicker-module_dayToday__G7v74:hover {\n background: #eff6ff;\n}\n\n.DatePicker-module_dayDisabled__cL0cR {\n color: #d1d5db;\n cursor: not-allowed;\n}\n\n.DatePicker-module_monthGrid__WBAvI,\n.DatePicker-module_yearGrid__8sgYk {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n}\n\n.DatePicker-module_monthButton__6WuMk,\n.DatePicker-module_yearButton__IqL6w {\n padding: 0.75rem 0.5rem;\n border: none;\n border-radius: 0.5rem;\n font-size: 0.875rem;\n font-weight: 600;\n background: transparent;\n color: #111827;\n cursor: pointer;\n transition:\n background-color 150ms ease,\n color 150ms ease,\n box-shadow 150ms ease;\n box-shadow: none;\n}\n\n.DatePicker-module_monthButton__6WuMk:hover,\n.DatePicker-module_yearButton__IqL6w:hover {\n background: #f3f4f6;\n}\n\n.DatePicker-module_monthSelected__Lbotn,\n.DatePicker-module_yearSelected__tCW8V {\n background: #2563eb;\n color: #ffffff;\n box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);\n}\n\n.DatePicker-module_monthCurrent__MQxnu,\n.DatePicker-module_yearCurrent__7BrrG {\n background: #f3f4f6;\n color: #2563eb;\n border: 2px solid #3b82f6;\n}\n\n.DatePicker-module_quickActions__FPy3Q {\n display: flex;\n gap: 0.5rem;\n padding: 0.75rem 1rem;\n border-top: 2px solid #f3f4f6;\n}\n\n.DatePicker-module_quickActionButton__Pst-p {\n flex: 1;\n}\n\n.DatePicker-module_hint__BoE0x {\n font-size: 0.75rem;\n color: #6b7280;\n}\n\n.DatePicker-module_errorRow__DCbrG {\n display: flex;\n align-items: flex-start;\n gap: 0.5rem;\n}\n\n.DatePicker-module_errorIcon__-qQ87 {\n width: 1rem;\n height: 1rem;\n color: #ef4444;\n flex-shrink: 0;\n margin-top: 0.125rem;\n}\n\n.DatePicker-module_errorText__WNyXj {\n font-size: 0.875rem;\n font-weight: 600;\n color: #dc2626;\n}\n\n.DatePicker-module_requiredHint__4QJ8l {\n font-size: 0.75rem;\n font-weight: 600;\n color: #ef4444;\n}\n";
1017
+ var styles = {"wrapper":"DatePicker-module_wrapper__PLuo9","label":"DatePicker-module_label__HeVOn","required":"DatePicker-module_required__z35aC","inputWrapper":"DatePicker-module_inputWrapper__d7QTx","inputContainer":"DatePicker-module_inputContainer__i2kk5","inputFocused":"DatePicker-module_inputFocused__MaPwp","inputError":"DatePicker-module_inputError__qcfGs","inputRequired":"DatePicker-module_inputRequired__gYago","inputDisabled":"DatePicker-module_inputDisabled__p5x69","inputReadOnly":"DatePicker-module_inputReadOnly__K9gZ5","input":"DatePicker-module_input__SLV7n","inputPointer":"DatePicker-module_inputPointer__xkQ5-","inputReadOnlyText":"DatePicker-module_inputReadOnlyText__vAoUU","inputDisabledText":"DatePicker-module_inputDisabledText__2BwlL","icon":"DatePicker-module_icon__5LCYL","calendar":"DatePicker-module_calendar__FIORK","header":"DatePicker-module_header__aTthD","navIconPrev":"DatePicker-module_navIconPrev__B8bMo","navIconNext":"DatePicker-module_navIconNext__aI5mK","headerCenter":"DatePicker-module_headerCenter__SCCd-","headerButton":"DatePicker-module_headerButton__Mc-uA","headerTitle":"DatePicker-module_headerTitle__HMqTy","dayNames":"DatePicker-module_dayNames__IgMPI","dayName":"DatePicker-module_dayName__vRFE2","dayGrid":"DatePicker-module_dayGrid__nrOFT","dayButton":"DatePicker-module_dayButton__wjjxy","dayEmpty":"DatePicker-module_dayEmpty__Unxgw","daySelectable":"DatePicker-module_daySelectable__VOc6I","daySelected":"DatePicker-module_daySelected__8UGIz","dayToday":"DatePicker-module_dayToday__G7v74","dayDisabled":"DatePicker-module_dayDisabled__cL0cR","monthGrid":"DatePicker-module_monthGrid__WBAvI","yearGrid":"DatePicker-module_yearGrid__8sgYk","monthButton":"DatePicker-module_monthButton__6WuMk","yearButton":"DatePicker-module_yearButton__IqL6w","monthSelected":"DatePicker-module_monthSelected__Lbotn","yearSelected":"DatePicker-module_yearSelected__tCW8V","monthCurrent":"DatePicker-module_monthCurrent__MQxnu","yearCurrent":"DatePicker-module_yearCurrent__7BrrG","quickActions":"DatePicker-module_quickActions__FPy3Q","quickActionButton":"DatePicker-module_quickActionButton__Pst-p","hint":"DatePicker-module_hint__BoE0x","errorRow":"DatePicker-module_errorRow__DCbrG","errorIcon":"DatePicker-module_errorIcon__-qQ87","errorText":"DatePicker-module_errorText__WNyXj","requiredHint":"DatePicker-module_requiredHint__4QJ8l"};
1018
+ styleInject(css_248z);
1019
+
1020
+ const DatePicker = ({ label, value, onChange, placeholder, error, required = false, disabled = false, minDate, maxDate, className = "", hint, readOnly = false, locale = "en", }) => {
1021
+ const classNames = (...classes) => classes.filter(Boolean).join(" ");
1022
+ const [isOpen, setIsOpen] = require$$0.useState(false);
1023
+ const [viewMode, setViewMode] = require$$0.useState("days");
1024
+ const [inputValue, setInputValue] = require$$0.useState(value);
1025
+ const [isFocused, setIsFocused] = require$$0.useState(false);
1026
+ const containerRef = require$$0.useRef(null);
1027
+ const inputRef = require$$0.useRef(null);
1028
+ const getLocaleLabels = () => {
1029
+ if (locale.startsWith("es")) {
1030
+ return {
1031
+ placeholder: "DD/MM/AAAA",
1032
+ today: "Hoy",
1033
+ clear: "Limpiar",
1034
+ required: "Este campo es obligatorio",
1035
+ };
1036
+ }
1037
+ return {
1038
+ placeholder: "MM/DD/YYYY",
1039
+ today: "Today",
1040
+ clear: "Clear",
1041
+ required: "This field is required",
1042
+ };
1043
+ };
1044
+ const localeLabels = getLocaleLabels();
1045
+ // Format date based on locale
1046
+ const formatDate = (date) => {
1047
+ if (locale.startsWith("es")) {
1048
+ return date.toLocaleDateString("es-ES", {
1049
+ year: "numeric",
1050
+ month: "2-digit",
1051
+ day: "2-digit",
1052
+ });
1053
+ }
1054
+ return date.toLocaleDateString("en-US", {
1055
+ year: "numeric",
1056
+ month: "2-digit",
1057
+ day: "2-digit",
1058
+ });
1059
+ };
1060
+ const toIsoDateString = (date) => {
1061
+ const y = date.getFullYear();
1062
+ const m = `${date.getMonth() + 1}`.padStart(2, "0");
1063
+ const d = `${date.getDate()}`.padStart(2, "0");
1064
+ return `${y}-${m}-${d}`;
1065
+ };
1066
+ const parseIsoDate = (val) => {
1067
+ if (!val)
1068
+ return null;
1069
+ const match = val.match(/^(\d{4})-(\d{2})-(\d{2})$/);
1070
+ if (!match)
1071
+ return null;
1072
+ const [, y, m, d] = match;
1073
+ const date = new Date(Number(y), Number(m) - 1, Number(d));
1074
+ return isNaN(date.getTime()) ? null : date;
1075
+ };
1076
+ // Fallback parser for free-typed dates (locale-dependent)
1077
+ const parseInputValue = (val) => {
1078
+ if (!val)
1079
+ return null;
1080
+ const date = new Date(val);
1081
+ return isNaN(date.getTime()) ? null : date;
1082
+ };
1083
+ const getInitialDate = () => {
1084
+ const parsedValue = value ? parseIsoDate(value) : null;
1085
+ if (parsedValue)
1086
+ return parsedValue;
1087
+ const parsedMinDate = minDate ? parseIsoDate(minDate) : null;
1088
+ if (parsedMinDate)
1089
+ return parsedMinDate;
1090
+ return new Date();
1091
+ };
1092
+ const initialDate = getInitialDate();
1093
+ const [currentMonth, setCurrentMonth] = require$$0.useState(initialDate);
1094
+ const [currentYear, setCurrentYear] = require$$0.useState(initialDate.getFullYear());
1095
+ // Handle date selection from calendar
1096
+ const handleSelectDate = (day) => {
1097
+ const selectedDate = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day);
1098
+ const isoString = toIsoDateString(selectedDate);
1099
+ onChange(isoString);
1100
+ setInputValue(formatDate(selectedDate));
1101
+ setIsOpen(false);
1102
+ setViewMode("days");
1103
+ };
1104
+ // Handle month selection
1105
+ const handleSelectMonth = (monthIndex) => {
1106
+ setCurrentMonth(new Date(currentYear, monthIndex, 1));
1107
+ setViewMode("days");
1108
+ };
1109
+ // Handle year selection
1110
+ const handleSelectYear = (year) => {
1111
+ setCurrentYear(year);
1112
+ setCurrentMonth(new Date(year, currentMonth.getMonth(), 1));
1113
+ setViewMode("months");
1114
+ };
1115
+ // Navigation handlers
1116
+ const handlePreviousMonth = () => {
1117
+ setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() - 1));
1118
+ };
1119
+ const handleNextMonth = () => {
1120
+ setCurrentMonth(new Date(currentMonth.getFullYear(), currentMonth.getMonth() + 1));
1121
+ };
1122
+ const handlePreviousYear = () => {
1123
+ setCurrentYear(currentYear - 1);
1124
+ setCurrentMonth(new Date(currentYear - 1, currentMonth.getMonth(), 1));
1125
+ };
1126
+ const handleNextYear = () => {
1127
+ setCurrentYear(currentYear + 1);
1128
+ setCurrentMonth(new Date(currentYear + 1, currentMonth.getMonth(), 1));
1129
+ };
1130
+ const handlePreviousDecade = () => {
1131
+ setCurrentYear(currentYear - 10);
1132
+ };
1133
+ const handleNextDecade = () => {
1134
+ setCurrentYear(currentYear + 10);
1135
+ };
1136
+ // Handle input change with validation
1137
+ const handleInputChange = (e) => {
1138
+ const val = e.target.value;
1139
+ setInputValue(val);
1140
+ const parsed = parseIsoDate(val) || parseInputValue(val);
1141
+ if (parsed) {
1142
+ onChange(toIsoDateString(parsed));
1143
+ setCurrentMonth(parsed);
1144
+ setCurrentYear(parsed.getFullYear());
1145
+ }
1146
+ };
1147
+ // Handle input blur
1148
+ const handleInputBlur = () => {
1149
+ setIsFocused(false);
1150
+ if (inputValue &&
1151
+ !parseIsoDate(inputValue) &&
1152
+ !parseInputValue(inputValue)) {
1153
+ if (value) {
1154
+ const date = parseIsoDate(value);
1155
+ setInputValue(date ? formatDate(date) : value);
1156
+ }
1157
+ else {
1158
+ setInputValue("");
1159
+ }
1160
+ }
1161
+ };
1162
+ // Handle input focus
1163
+ const handleInputFocus = () => {
1164
+ setIsFocused(true);
1165
+ };
1166
+ // Close picker on outside click
1167
+ require$$0.useEffect(() => {
1168
+ const handleClickOutside = (event) => {
1169
+ if (containerRef.current &&
1170
+ !containerRef.current.contains(event.target)) {
1171
+ setIsOpen(false);
1172
+ setViewMode("days");
1173
+ }
1174
+ };
1175
+ document.addEventListener("mousedown", handleClickOutside);
1176
+ return () => document.removeEventListener("mousedown", handleClickOutside);
1177
+ }, []);
1178
+ // Update input value when prop changes
1179
+ require$$0.useEffect(() => {
1180
+ if (value) {
1181
+ const date = parseIsoDate(value);
1182
+ if (date) {
1183
+ setInputValue(formatDate(date));
1184
+ setCurrentMonth(date);
1185
+ setCurrentYear(date.getFullYear());
1186
+ }
1187
+ }
1188
+ else {
1189
+ setInputValue("");
1190
+ }
1191
+ }, [value, locale]);
1192
+ require$$0.useEffect(() => {
1193
+ if (!value && minDate) {
1194
+ const parsedMinDate = parseIsoDate(minDate);
1195
+ if (parsedMinDate) {
1196
+ setCurrentMonth(parsedMinDate);
1197
+ setCurrentYear(parsedMinDate.getFullYear());
1198
+ }
1199
+ }
1200
+ }, [minDate, value]);
1201
+ // Keyboard navigation for accessibility
1202
+ require$$0.useEffect(() => {
1203
+ const handleEscape = (event) => {
1204
+ if (event.key === "Escape" && isOpen) {
1205
+ setIsOpen(false);
1206
+ setViewMode("days");
1207
+ inputRef.current?.focus();
1208
+ }
1209
+ };
1210
+ if (isOpen) {
1211
+ document.addEventListener("keydown", handleEscape);
1212
+ return () => document.removeEventListener("keydown", handleEscape);
1213
+ }
1214
+ }, [isOpen]);
1215
+ // Get days in month
1216
+ const getDaysInMonth = (date) => {
1217
+ return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();
1218
+ };
1219
+ // Get first day of month (0 = Sunday)
1220
+ const getFirstDayOfMonth = (date) => {
1221
+ return new Date(date.getFullYear(), date.getMonth(), 1).getDay();
1222
+ };
1223
+ // Get day names
1224
+ const getDayNames = () => {
1225
+ if (locale.startsWith("es")) {
1226
+ return ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sá"];
1227
+ }
1228
+ return ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
1229
+ };
1230
+ // Get month names
1231
+ const getMonthNames = () => {
1232
+ if (locale.startsWith("es")) {
1233
+ return [
1234
+ "Ene",
1235
+ "Feb",
1236
+ "Mar",
1237
+ "Abr",
1238
+ "May",
1239
+ "Jun",
1240
+ "Jul",
1241
+ "Ago",
1242
+ "Sep",
1243
+ "Oct",
1244
+ "Nov",
1245
+ "Dic",
1246
+ ];
1247
+ }
1248
+ return [
1249
+ "Jan",
1250
+ "Feb",
1251
+ "Mar",
1252
+ "Apr",
1253
+ "May",
1254
+ "Jun",
1255
+ "Jul",
1256
+ "Aug",
1257
+ "Sep",
1258
+ "Oct",
1259
+ "Nov",
1260
+ "Dec",
1261
+ ];
1262
+ };
1263
+ // Get month name
1264
+ const getMonthName = (date) => {
1265
+ if (locale.startsWith("es")) {
1266
+ return date.toLocaleDateString("es-ES", { month: "long" });
1267
+ }
1268
+ return date.toLocaleDateString("en-US", { month: "long" });
1269
+ };
1270
+ // Check if date is selectable
1271
+ const isDateSelectable = (day) => {
1272
+ const testDate = new Date(currentMonth.getFullYear(), currentMonth.getMonth(), day);
1273
+ const testDateStr = toIsoDateString(testDate);
1274
+ if (minDate && testDateStr < minDate)
1275
+ return false;
1276
+ if (maxDate && testDateStr > maxDate)
1277
+ return false;
1278
+ return true;
1279
+ };
1280
+ // Check if date is today
1281
+ const isToday = (day) => {
1282
+ const today = new Date();
1283
+ return (day === today.getDate() &&
1284
+ currentMonth.getMonth() === today.getMonth() &&
1285
+ currentMonth.getFullYear() === today.getFullYear());
1286
+ };
1287
+ // Check if date is selected
1288
+ const isSelected = (day) => {
1289
+ if (!value)
1290
+ return false;
1291
+ const selectedDate = new Date(value);
1292
+ return (day === selectedDate.getDate() &&
1293
+ currentMonth.getMonth() === selectedDate.getMonth() &&
1294
+ currentMonth.getFullYear() === selectedDate.getFullYear());
1295
+ };
1296
+ // Check if month is current
1297
+ const isCurrentMonth = (monthIndex) => {
1298
+ const today = new Date();
1299
+ return (monthIndex === today.getMonth() && currentYear === today.getFullYear());
1300
+ };
1301
+ // Check if month is selected
1302
+ const isSelectedMonth = (monthIndex) => {
1303
+ if (!value)
1304
+ return false;
1305
+ const selectedDate = new Date(value);
1306
+ return (monthIndex === selectedDate.getMonth() &&
1307
+ currentYear === selectedDate.getFullYear());
1308
+ };
1309
+ // Check if year is current
1310
+ const isCurrentYear = (year) => {
1311
+ const today = new Date();
1312
+ return year === today.getFullYear();
1313
+ };
1314
+ // Check if year is selected
1315
+ const isSelectedYear = (year) => {
1316
+ if (!value)
1317
+ return false;
1318
+ const selectedDate = new Date(value);
1319
+ return year === selectedDate.getFullYear();
1320
+ };
1321
+ // Generate calendar days
1322
+ const calendarDays = [];
1323
+ const daysInMonth = getDaysInMonth(currentMonth);
1324
+ const firstDay = getFirstDayOfMonth(currentMonth);
1325
+ for (let i = 0; i < firstDay; i++) {
1326
+ calendarDays.push(null);
1327
+ }
1328
+ for (let i = 1; i <= daysInMonth; i++) {
1329
+ calendarDays.push(i);
1330
+ }
1331
+ // Generate year range for decade view
1332
+ const startYear = Math.floor(currentYear / 10) * 10;
1333
+ const years = Array.from({ length: 12 }, (_, i) => startYear - 1 + i);
1334
+ // Handle today button
1335
+ const handleToday = () => {
1336
+ const today = new Date();
1337
+ const isoString = today.toISOString().split("T")[0];
1338
+ onChange(isoString);
1339
+ setInputValue(formatDate(today));
1340
+ setCurrentMonth(today);
1341
+ setCurrentYear(today.getFullYear());
1342
+ setIsOpen(false);
1343
+ setViewMode("days");
1344
+ };
1345
+ // Handle clear button
1346
+ const handleClear = () => {
1347
+ onChange("");
1348
+ setInputValue("");
1349
+ setIsOpen(false);
1350
+ setViewMode("days");
1351
+ };
1352
+ 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, disabled && styles.inputDisabled, readOnly && styles.inputReadOnly, !disabled &&
1353
+ !readOnly &&
1354
+ (isFocused || isOpen) &&
1355
+ styles.inputFocused, error && styles.inputError, required && !value && !error && styles.inputRequired), children: [jsxRuntimeExports$1.jsx("input", { ref: inputRef, type: "text", value: inputValue, onChange: handleInputChange, onBlur: handleInputBlur, onFocus: handleInputFocus, onClick: () => !disabled && !readOnly && setIsOpen(!isOpen), placeholder: placeholder || localeLabels.placeholder, disabled: disabled, readOnly: readOnly, className: classNames(styles.input, !disabled && !readOnly && styles.inputPointer, readOnly && styles.inputReadOnlyText, disabled && styles.inputDisabledText), "aria-label": label, "aria-invalid": !!error, "aria-required": required }), jsxRuntimeExports$1.jsx(IconButton, { shape: "square", icon: jsxRuntimeExports$1.jsx(v, { size: "md", className: styles.icon }), "aria-label": "Open calendar", onClick: () => !disabled && !readOnly && setIsOpen(!isOpen), disabled: disabled || readOnly, size: "small", variant: "secondary", quiet: true })] }), isOpen && !disabled && !readOnly && (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 ${viewMode === "days" ? "month" : viewMode === "months" ? "year" : "decade"}`, onClick: viewMode === "days"
1356
+ ? handlePreviousMonth
1357
+ : viewMode === "months"
1358
+ ? handlePreviousYear
1359
+ : handlePreviousDecade, size: "small", variant: "secondary", quiet: true }), jsxRuntimeExports$1.jsxs("div", { className: styles.headerCenter, children: [viewMode === "days" && (jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment, { children: [jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => setViewMode("months"), variant: "text", color: "secondary", size: "small", disableElevation: true, className: styles.headerButton, children: getMonthName(currentMonth) }), jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => setViewMode("years"), variant: "text", color: "secondary", size: "small", disableElevation: true, className: styles.headerButton, children: currentMonth.getFullYear() })] })), viewMode === "months" && (jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => setViewMode("years"), variant: "text", color: "secondary", size: "small", disableElevation: true, className: styles.headerButton, children: currentYear })), viewMode === "years" && (jsxRuntimeExports$1.jsxs("h3", { className: styles.headerTitle, children: [startYear - 1, " - ", startYear + 10] }))] }), jsxRuntimeExports$1.jsx(IconButton, { icon: jsxRuntimeExports$1.jsx(y, { size: "md", className: styles.navIconNext }), "aria-label": `Next ${viewMode === "days" ? "month" : viewMode === "months" ? "year" : "decade"}`, onClick: viewMode === "days"
1360
+ ? handleNextMonth
1361
+ : viewMode === "months"
1362
+ ? handleNextYear
1363
+ : handleNextDecade, size: "small", variant: "secondary", quiet: true })] }), viewMode === "days" && (jsxRuntimeExports$1.jsxs(jsxRuntimeExports$1.Fragment, { children: [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.dayGrid, children: calendarDays.map((day, index) => (jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => day !== null &&
1364
+ isDateSelectable(day) &&
1365
+ 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 &&
1366
+ !isSelected(day) &&
1367
+ isToday(day) &&
1368
+ styles.dayToday, day !== null &&
1369
+ !isSelected(day) &&
1370
+ !isToday(day) &&
1371
+ isDateSelectable(day) &&
1372
+ styles.daySelectable, day !== null &&
1373
+ !isDateSelectable(day) &&
1374
+ styles.dayDisabled), children: day }, index))) })] })), viewMode === "months" && (jsxRuntimeExports$1.jsx("div", { className: styles.monthGrid, children: getMonthNames().map((month, index) => (jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => handleSelectMonth(index), variant: "text", color: "secondary", size: "small", disableElevation: true, className: classNames(styles.monthButton, isSelectedMonth(index) && styles.monthSelected, !isSelectedMonth(index) &&
1375
+ isCurrentMonth(index) &&
1376
+ styles.monthCurrent), children: month }, index))) })), viewMode === "years" && (jsxRuntimeExports$1.jsx("div", { className: styles.yearGrid, children: years.map((year) => (jsxRuntimeExports$1.jsx(m, { type: "button", onClick: () => handleSelectYear(year), variant: "text", color: "secondary", size: "small", disableElevation: true, className: classNames(styles.yearButton, isSelectedYear(year) && styles.yearSelected, !isSelectedYear(year) &&
1377
+ isCurrentYear(year) &&
1378
+ styles.yearCurrent), children: year }, year))) })), viewMode === "days" && (jsxRuntimeExports$1.jsxs("div", { className: styles.quickActions, children: [jsxRuntimeExports$1.jsx(m, { type: "button", onClick: handleToday, variant: "outlined", color: "primary", size: "small", className: styles.quickActionButton, children: localeLabels.today }), jsxRuntimeExports$1.jsx(m, { type: "button", onClick: handleClear, variant: "outlined", color: "secondary", size: "small", className: styles.quickActionButton, children: localeLabels.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 })] })), required && !value && !error && !isFocused && (jsxRuntimeExports$1.jsx("p", { className: styles.requiredHint, children: localeLabels.required }))] }));
1379
+ };
1380
+
1381
+ module.exports = DatePicker;