@theengineerguy/chronos-picker 1.0.1 → 1.0.2

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.
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import Ke, { useMemo as xe, useState as z, useEffect as ce, useRef as Le, useCallback as Ee } from "react";
1
+ import Ke, { useMemo as Ee, useState as U, useEffect as ue, useRef as Le, useCallback as Te } from "react";
2
2
  import { DateTime as Y } from "luxon";
3
- var je = { exports: {} }, H = {};
3
+ var _e = { exports: {} }, Q = {};
4
4
  /**
5
5
  * @license React
6
6
  * react-jsx-runtime.production.min.js
@@ -12,19 +12,19 @@ var je = { exports: {} }, H = {};
12
12
  */
13
13
  var Ue;
14
14
  function xr() {
15
- if (Ue) return H;
15
+ if (Ue) return Q;
16
16
  Ue = 1;
17
- var a = Ke, l = Symbol.for("react.element"), d = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, p = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, j = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function v(S, y, C) {
19
- var x, w = {}, O = null, _ = null;
20
- C !== void 0 && (O = "" + C), y.key !== void 0 && (O = "" + y.key), y.ref !== void 0 && (_ = y.ref);
21
- for (x in y) c.call(y, x) && !j.hasOwnProperty(x) && (w[x] = y[x]);
22
- if (S && S.defaultProps) for (x in y = S.defaultProps, y) w[x] === void 0 && (w[x] = y[x]);
23
- return { $$typeof: l, type: S, key: O, ref: _, props: w, _owner: p.current };
17
+ var o = Ke, l = Symbol.for("react.element"), d = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, b = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function v(k, y, w) {
19
+ var x, O = {}, C = null, E = null;
20
+ w !== void 0 && (C = "" + w), y.key !== void 0 && (C = "" + y.key), y.ref !== void 0 && (E = y.ref);
21
+ for (x in y) c.call(y, x) && !R.hasOwnProperty(x) && (O[x] = y[x]);
22
+ if (k && k.defaultProps) for (x in y = k.defaultProps, y) O[x] === void 0 && (O[x] = y[x]);
23
+ return { $$typeof: l, type: k, key: C, ref: E, props: O, _owner: b.current };
24
24
  }
25
- return H.Fragment = d, H.jsx = v, H.jsxs = v, H;
25
+ return Q.Fragment = d, Q.jsx = v, Q.jsxs = v, Q;
26
26
  }
27
- var Q = {};
27
+ var ee = {};
28
28
  /**
29
29
  * @license React
30
30
  * react-jsx-runtime.development.js
@@ -34,27 +34,27 @@ var Q = {};
34
34
  * This source code is licensed under the MIT license found in the
35
35
  * LICENSE file in the root directory of this source tree.
36
36
  */
37
- var ze;
37
+ var Ve;
38
38
  function Er() {
39
- return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
40
- var a = Ke, l = Symbol.for("react.element"), d = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), j = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), S = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), D = Symbol.iterator, P = "@@iterator";
41
- function A(e) {
39
+ return Ve || (Ve = 1, process.env.NODE_ENV !== "production" && function() {
40
+ var o = Ke, l = Symbol.for("react.element"), d = Symbol.for("react.portal"), c = Symbol.for("react.fragment"), b = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), k = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), E = Symbol.for("react.offscreen"), D = Symbol.iterator, F = "@@iterator";
41
+ function P(e) {
42
42
  if (e === null || typeof e != "object")
43
43
  return null;
44
- var r = D && e[D] || e[P];
44
+ var r = D && e[D] || e[F];
45
45
  return typeof r == "function" ? r : null;
46
46
  }
47
- var o = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
- function s(e) {
47
+ var i = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
48
+ function n(e) {
49
49
  {
50
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
51
- t[i - 1] = arguments[i];
52
- b("error", e, t);
50
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), s = 1; s < r; s++)
51
+ t[s - 1] = arguments[s];
52
+ T("error", e, t);
53
53
  }
54
54
  }
55
- function b(e, r, t) {
55
+ function T(e, r, t) {
56
56
  {
57
- var i = o.ReactDebugCurrentFrame, h = i.getStackAddendum();
57
+ var s = i.ReactDebugCurrentFrame, h = s.getStackAddendum();
58
58
  h !== "" && (r += "%s", t = t.concat([h]));
59
59
  var m = t.map(function(f) {
60
60
  return String(f);
@@ -62,29 +62,29 @@ function Er() {
62
62
  m.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, m);
63
63
  }
64
64
  }
65
- var k = !1, G = !1, L = !1, q = !1, ee = !1, re;
66
- re = Symbol.for("react.module.reference");
67
- function ue(e) {
68
- return !!(typeof e == "string" || typeof e == "function" || e === c || e === j || ee || e === p || e === C || e === x || q || e === _ || k || G || L || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === w || e.$$typeof === v || e.$$typeof === S || e.$$typeof === y || // This needs to include all possible module reference object
65
+ var p = !1, G = !1, q = !1, B = !1, Z = !1, X;
66
+ X = Symbol.for("react.module.reference");
67
+ function fe(e) {
68
+ return !!(typeof e == "string" || typeof e == "function" || e === c || e === R || Z || e === b || e === w || e === x || B || e === E || p || G || q || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === O || e.$$typeof === v || e.$$typeof === k || e.$$typeof === y || // This needs to include all possible module reference object
69
69
  // types supported by any Flight configuration anywhere since
70
70
  // we don't know which Flight build this will end up being used
71
71
  // with.
72
- e.$$typeof === re || e.getModuleId !== void 0));
72
+ e.$$typeof === X || e.getModuleId !== void 0));
73
73
  }
74
- function fe(e, r, t) {
75
- var i = e.displayName;
76
- if (i)
77
- return i;
74
+ function de(e, r, t) {
75
+ var s = e.displayName;
76
+ if (s)
77
+ return s;
78
78
  var h = r.displayName || r.name || "";
79
79
  return h !== "" ? t + "(" + h + ")" : t;
80
80
  }
81
- function Z(e) {
81
+ function re(e) {
82
82
  return e.displayName || "Context";
83
83
  }
84
- function I(e) {
84
+ function $(e) {
85
85
  if (e == null)
86
86
  return null;
87
- if (typeof e.tag == "number" && s("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
+ if (typeof e.tag == "number" && n("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
88
88
  return e.displayName || e.name || null;
89
89
  if (typeof e == "string")
90
90
  return e;
@@ -93,32 +93,32 @@ function Er() {
93
93
  return "Fragment";
94
94
  case d:
95
95
  return "Portal";
96
- case j:
96
+ case R:
97
97
  return "Profiler";
98
- case p:
98
+ case b:
99
99
  return "StrictMode";
100
- case C:
100
+ case w:
101
101
  return "Suspense";
102
102
  case x:
103
103
  return "SuspenseList";
104
104
  }
105
105
  if (typeof e == "object")
106
106
  switch (e.$$typeof) {
107
- case S:
107
+ case k:
108
108
  var r = e;
109
- return Z(r) + ".Consumer";
109
+ return re(r) + ".Consumer";
110
110
  case v:
111
111
  var t = e;
112
- return Z(t._context) + ".Provider";
112
+ return re(t._context) + ".Provider";
113
113
  case y:
114
- return fe(e, e.render, "ForwardRef");
115
- case w:
116
- var i = e.displayName || null;
117
- return i !== null ? i : I(e.type) || "Memo";
118
- case O: {
114
+ return de(e, e.render, "ForwardRef");
115
+ case O:
116
+ var s = e.displayName || null;
117
+ return s !== null ? s : $(e.type) || "Memo";
118
+ case C: {
119
119
  var h = e, m = h._payload, f = h._init;
120
120
  try {
121
- return I(f(m));
121
+ return $(f(m));
122
122
  } catch {
123
123
  return null;
124
124
  }
@@ -126,14 +126,14 @@ function Er() {
126
126
  }
127
127
  return null;
128
128
  }
129
- var W = Object.assign, V = 0, te, E, g, F, U, ne, _e;
129
+ var W = Object.assign, V = 0, te, ne, j, g, I, L, ae;
130
130
  function Re() {
131
131
  }
132
132
  Re.__reactDisabledLog = !0;
133
133
  function Je() {
134
134
  {
135
135
  if (V === 0) {
136
- te = console.log, E = console.info, g = console.warn, F = console.error, U = console.group, ne = console.groupCollapsed, _e = console.groupEnd;
136
+ te = console.log, ne = console.info, j = console.warn, g = console.error, I = console.group, L = console.groupCollapsed, ae = console.groupEnd;
137
137
  var e = {
138
138
  configurable: !0,
139
139
  enumerable: !0,
@@ -166,61 +166,61 @@ function Er() {
166
166
  value: te
167
167
  }),
168
168
  info: W({}, e, {
169
- value: E
169
+ value: ne
170
170
  }),
171
171
  warn: W({}, e, {
172
- value: g
172
+ value: j
173
173
  }),
174
174
  error: W({}, e, {
175
- value: F
175
+ value: g
176
176
  }),
177
177
  group: W({}, e, {
178
- value: U
178
+ value: I
179
179
  }),
180
180
  groupCollapsed: W({}, e, {
181
- value: ne
181
+ value: L
182
182
  }),
183
183
  groupEnd: W({}, e, {
184
- value: _e
184
+ value: ae
185
185
  })
186
186
  });
187
187
  }
188
- V < 0 && s("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
+ V < 0 && n("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
189
189
  }
190
190
  }
191
- var de = o.ReactCurrentDispatcher, he;
192
- function ae(e, r, t) {
191
+ var he = i.ReactCurrentDispatcher, ve;
192
+ function oe(e, r, t) {
193
193
  {
194
- if (he === void 0)
194
+ if (ve === void 0)
195
195
  try {
196
196
  throw Error();
197
197
  } catch (h) {
198
- var i = h.stack.trim().match(/\n( *(at )?)/);
199
- he = i && i[1] || "";
198
+ var s = h.stack.trim().match(/\n( *(at )?)/);
199
+ ve = s && s[1] || "";
200
200
  }
201
201
  return `
202
- ` + he + e;
202
+ ` + ve + e;
203
203
  }
204
204
  }
205
- var ve = !1, oe;
205
+ var pe = !1, se;
206
206
  {
207
207
  var qe = typeof WeakMap == "function" ? WeakMap : Map;
208
- oe = new qe();
208
+ se = new qe();
209
209
  }
210
210
  function Se(e, r) {
211
- if (!e || ve)
211
+ if (!e || pe)
212
212
  return "";
213
213
  {
214
- var t = oe.get(e);
214
+ var t = se.get(e);
215
215
  if (t !== void 0)
216
216
  return t;
217
217
  }
218
- var i;
219
- ve = !0;
218
+ var s;
219
+ pe = !0;
220
220
  var h = Error.prepareStackTrace;
221
221
  Error.prepareStackTrace = void 0;
222
222
  var m;
223
- m = de.current, de.current = null, Je();
223
+ m = he.current, he.current = null, Je();
224
224
  try {
225
225
  if (r) {
226
226
  var f = function() {
@@ -234,14 +234,14 @@ function Er() {
234
234
  try {
235
235
  Reflect.construct(f, []);
236
236
  } catch (N) {
237
- i = N;
237
+ s = N;
238
238
  }
239
239
  Reflect.construct(e, [], f);
240
240
  } else {
241
241
  try {
242
242
  f.call();
243
243
  } catch (N) {
244
- i = N;
244
+ s = N;
245
245
  }
246
246
  e.call(f.prototype);
247
247
  }
@@ -249,34 +249,34 @@ function Er() {
249
249
  try {
250
250
  throw Error();
251
251
  } catch (N) {
252
- i = N;
252
+ s = N;
253
253
  }
254
254
  e();
255
255
  }
256
256
  } catch (N) {
257
- if (N && i && typeof N.stack == "string") {
257
+ if (N && s && typeof N.stack == "string") {
258
258
  for (var u = N.stack.split(`
259
- `), M = i.stack.split(`
260
- `), T = u.length - 1, R = M.length - 1; T >= 1 && R >= 0 && u[T] !== M[R]; )
261
- R--;
262
- for (; T >= 1 && R >= 0; T--, R--)
263
- if (u[T] !== M[R]) {
264
- if (T !== 1 || R !== 1)
259
+ `), M = s.stack.split(`
260
+ `), _ = u.length - 1, S = M.length - 1; _ >= 1 && S >= 0 && u[_] !== M[S]; )
261
+ S--;
262
+ for (; _ >= 1 && S >= 0; _--, S--)
263
+ if (u[_] !== M[S]) {
264
+ if (_ !== 1 || S !== 1)
265
265
  do
266
- if (T--, R--, R < 0 || u[T] !== M[R]) {
267
- var $ = `
268
- ` + u[T].replace(" at new ", " at ");
269
- return e.displayName && $.includes("<anonymous>") && ($ = $.replace("<anonymous>", e.displayName)), typeof e == "function" && oe.set(e, $), $;
266
+ if (_--, S--, S < 0 || u[_] !== M[S]) {
267
+ var A = `
268
+ ` + u[_].replace(" at new ", " at ");
269
+ return e.displayName && A.includes("<anonymous>") && (A = A.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, A), A;
270
270
  }
271
- while (T >= 1 && R >= 0);
271
+ while (_ >= 1 && S >= 0);
272
272
  break;
273
273
  }
274
274
  }
275
275
  } finally {
276
- ve = !1, de.current = m, Ge(), Error.prepareStackTrace = h;
276
+ pe = !1, he.current = m, Ge(), Error.prepareStackTrace = h;
277
277
  }
278
- var J = e ? e.displayName || e.name : "", B = J ? ae(J) : "";
279
- return typeof e == "function" && oe.set(e, B), B;
278
+ var J = e ? e.displayName || e.name : "", z = J ? oe(J) : "";
279
+ return typeof e == "function" && se.set(e, z), z;
280
280
  }
281
281
  function Ze(e, r, t) {
282
282
  return Se(e, !1);
@@ -285,59 +285,59 @@ function Er() {
285
285
  var r = e.prototype;
286
286
  return !!(r && r.isReactComponent);
287
287
  }
288
- function se(e, r, t) {
288
+ function ie(e, r, t) {
289
289
  if (e == null)
290
290
  return "";
291
291
  if (typeof e == "function")
292
292
  return Se(e, Xe(e));
293
293
  if (typeof e == "string")
294
- return ae(e);
294
+ return oe(e);
295
295
  switch (e) {
296
- case C:
297
- return ae("Suspense");
296
+ case w:
297
+ return oe("Suspense");
298
298
  case x:
299
- return ae("SuspenseList");
299
+ return oe("SuspenseList");
300
300
  }
301
301
  if (typeof e == "object")
302
302
  switch (e.$$typeof) {
303
303
  case y:
304
304
  return Ze(e.render);
305
- case w:
306
- return se(e.type, r, t);
307
- case O: {
308
- var i = e, h = i._payload, m = i._init;
305
+ case O:
306
+ return ie(e.type, r, t);
307
+ case C: {
308
+ var s = e, h = s._payload, m = s._init;
309
309
  try {
310
- return se(m(h), r, t);
310
+ return ie(m(h), r, t);
311
311
  } catch {
312
312
  }
313
313
  }
314
314
  }
315
315
  return "";
316
316
  }
317
- var X = Object.prototype.hasOwnProperty, ke = {}, we = o.ReactDebugCurrentFrame;
318
- function ie(e) {
317
+ var H = Object.prototype.hasOwnProperty, ke = {}, we = i.ReactDebugCurrentFrame;
318
+ function le(e) {
319
319
  if (e) {
320
- var r = e._owner, t = se(e.type, e._source, r ? r.type : null);
320
+ var r = e._owner, t = ie(e.type, e._source, r ? r.type : null);
321
321
  we.setExtraStackFrame(t);
322
322
  } else
323
323
  we.setExtraStackFrame(null);
324
324
  }
325
- function He(e, r, t, i, h) {
325
+ function He(e, r, t, s, h) {
326
326
  {
327
- var m = Function.call.bind(X);
327
+ var m = Function.call.bind(H);
328
328
  for (var f in e)
329
329
  if (m(e, f)) {
330
330
  var u = void 0;
331
331
  try {
332
332
  if (typeof e[f] != "function") {
333
- var M = Error((i || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
+ var M = Error((s || "React class") + ": " + t + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
334
334
  throw M.name = "Invariant Violation", M;
335
335
  }
336
- u = e[f](r, f, i, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
- } catch (T) {
338
- u = T;
336
+ u = e[f](r, f, s, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
337
+ } catch (_) {
338
+ u = _;
339
339
  }
340
- u && !(u instanceof Error) && (ie(h), s("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", i || "React class", t, f, typeof u), ie(null)), u instanceof Error && !(u.message in ke) && (ke[u.message] = !0, ie(h), s("Failed %s type: %s", t, u.message), ie(null));
340
+ u && !(u instanceof Error) && (le(h), n("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", s || "React class", t, f, typeof u), le(null)), u instanceof Error && !(u.message in ke) && (ke[u.message] = !0, le(h), n("Failed %s type: %s", t, u.message), le(null));
341
341
  }
342
342
  }
343
343
  }
@@ -363,16 +363,16 @@ function Er() {
363
363
  }
364
364
  function Ce(e) {
365
365
  if (rr(e))
366
- return s("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Oe(e);
366
+ return n("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(e)), Oe(e);
367
367
  }
368
- var Pe = o.ReactCurrentOwner, tr = {
368
+ var Pe = i.ReactCurrentOwner, tr = {
369
369
  key: !0,
370
370
  ref: !0,
371
371
  __self: !0,
372
372
  __source: !0
373
373
  }, Me, Ne;
374
374
  function nr(e) {
375
- if (X.call(e, "ref")) {
375
+ if (H.call(e, "ref")) {
376
376
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
377
377
  if (r && r.isReactWarning)
378
378
  return !1;
@@ -380,7 +380,7 @@ function Er() {
380
380
  return e.ref !== void 0;
381
381
  }
382
382
  function ar(e) {
383
- if (X.call(e, "key")) {
383
+ if (H.call(e, "key")) {
384
384
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
385
385
  if (r && r.isReactWarning)
386
386
  return !1;
@@ -393,7 +393,7 @@ function Er() {
393
393
  function sr(e, r) {
394
394
  {
395
395
  var t = function() {
396
- Me || (Me = !0, s("%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://reactjs.org/link/special-props)", r));
396
+ Me || (Me = !0, n("%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://reactjs.org/link/special-props)", r));
397
397
  };
398
398
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
399
399
  get: t,
@@ -404,7 +404,7 @@ function Er() {
404
404
  function ir(e, r) {
405
405
  {
406
406
  var t = function() {
407
- Ne || (Ne = !0, s("%s: `ref` 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://reactjs.org/link/special-props)", r));
407
+ Ne || (Ne = !0, n("%s: `ref` 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://reactjs.org/link/special-props)", r));
408
408
  };
409
409
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
410
410
  get: t,
@@ -412,7 +412,7 @@ function Er() {
412
412
  });
413
413
  }
414
414
  }
415
- var lr = function(e, r, t, i, h, m, f) {
415
+ var lr = function(e, r, t, s, h, m, f) {
416
416
  var u = {
417
417
  // This tag allows us to uniquely identify this as a React Element
418
418
  $$typeof: l,
@@ -433,7 +433,7 @@ function Er() {
433
433
  configurable: !1,
434
434
  enumerable: !1,
435
435
  writable: !1,
436
- value: i
436
+ value: s
437
437
  }), Object.defineProperty(u, "_source", {
438
438
  configurable: !1,
439
439
  enumerable: !1,
@@ -441,41 +441,41 @@ function Er() {
441
441
  value: h
442
442
  }), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
443
443
  };
444
- function cr(e, r, t, i, h) {
444
+ function cr(e, r, t, s, h) {
445
445
  {
446
446
  var m, f = {}, u = null, M = null;
447
447
  t !== void 0 && (Ce(t), u = "" + t), ar(r) && (Ce(r.key), u = "" + r.key), nr(r) && (M = r.ref, or(r, h));
448
448
  for (m in r)
449
- X.call(r, m) && !tr.hasOwnProperty(m) && (f[m] = r[m]);
449
+ H.call(r, m) && !tr.hasOwnProperty(m) && (f[m] = r[m]);
450
450
  if (e && e.defaultProps) {
451
- var T = e.defaultProps;
452
- for (m in T)
453
- f[m] === void 0 && (f[m] = T[m]);
451
+ var _ = e.defaultProps;
452
+ for (m in _)
453
+ f[m] === void 0 && (f[m] = _[m]);
454
454
  }
455
455
  if (u || M) {
456
- var R = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
- u && sr(f, R), M && ir(f, R);
456
+ var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
457
+ u && sr(f, S), M && ir(f, S);
458
458
  }
459
- return lr(e, u, M, h, i, Pe.current, f);
459
+ return lr(e, u, M, h, s, Pe.current, f);
460
460
  }
461
461
  }
462
- var pe = o.ReactCurrentOwner, De = o.ReactDebugCurrentFrame;
462
+ var be = i.ReactCurrentOwner, De = i.ReactDebugCurrentFrame;
463
463
  function K(e) {
464
464
  if (e) {
465
- var r = e._owner, t = se(e.type, e._source, r ? r.type : null);
465
+ var r = e._owner, t = ie(e.type, e._source, r ? r.type : null);
466
466
  De.setExtraStackFrame(t);
467
467
  } else
468
468
  De.setExtraStackFrame(null);
469
469
  }
470
- var be;
471
- be = !1;
472
- function ye(e) {
470
+ var ye;
471
+ ye = !1;
472
+ function ge(e) {
473
473
  return typeof e == "object" && e !== null && e.$$typeof === l;
474
474
  }
475
475
  function Ae() {
476
476
  {
477
- if (pe.current) {
478
- var e = I(pe.current.type);
477
+ if (be.current) {
478
+ var e = $(be.current.type);
479
479
  if (e)
480
480
  return `
481
481
 
@@ -509,8 +509,8 @@ Check the top-level render call using <` + t + ">.");
509
509
  if ($e[t])
510
510
  return;
511
511
  $e[t] = !0;
512
- var i = "";
513
- e && e._owner && e._owner !== pe.current && (i = " It was passed a child from " + I(e._owner.type) + "."), K(e), s('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, i), K(null);
512
+ var s = "";
513
+ e && e._owner && e._owner !== be.current && (s = " It was passed a child from " + $(e._owner.type) + "."), K(e), n('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, s), K(null);
514
514
  }
515
515
  }
516
516
  function Fe(e, r) {
@@ -519,16 +519,16 @@ Check the top-level render call using <` + t + ">.");
519
519
  return;
520
520
  if (me(e))
521
521
  for (var t = 0; t < e.length; t++) {
522
- var i = e[t];
523
- ye(i) && Ie(i, r);
522
+ var s = e[t];
523
+ ge(s) && Ie(s, r);
524
524
  }
525
- else if (ye(e))
525
+ else if (ge(e))
526
526
  e._store && (e._store.validated = !0);
527
527
  else if (e) {
528
- var h = A(e);
528
+ var h = P(e);
529
529
  if (typeof h == "function" && h !== e.entries)
530
530
  for (var m = h.call(e), f; !(f = m.next()).done; )
531
- ye(f.value) && Ie(f.value, r);
531
+ ge(f.value) && Ie(f.value, r);
532
532
  }
533
533
  }
534
534
  }
@@ -542,91 +542,91 @@ Check the top-level render call using <` + t + ">.");
542
542
  t = r.propTypes;
543
543
  else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here.
544
544
  // Inner props are checked in the reconciler.
545
- r.$$typeof === w))
545
+ r.$$typeof === O))
546
546
  t = r.propTypes;
547
547
  else
548
548
  return;
549
549
  if (t) {
550
- var i = I(r);
551
- He(t, e.props, "prop", i, e);
552
- } else if (r.PropTypes !== void 0 && !be) {
553
- be = !0;
554
- var h = I(r);
555
- s("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
550
+ var s = $(r);
551
+ He(t, e.props, "prop", s, e);
552
+ } else if (r.PropTypes !== void 0 && !ye) {
553
+ ye = !0;
554
+ var h = $(r);
555
+ n("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
556
556
  }
557
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && s("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && n("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
558
558
  }
559
559
  }
560
560
  function hr(e) {
561
561
  {
562
562
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
563
- var i = r[t];
564
- if (i !== "children" && i !== "key") {
565
- K(e), s("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), K(null);
563
+ var s = r[t];
564
+ if (s !== "children" && s !== "key") {
565
+ K(e), n("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", s), K(null);
566
566
  break;
567
567
  }
568
568
  }
569
- e.ref !== null && (K(e), s("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
569
+ e.ref !== null && (K(e), n("Invalid attribute `ref` supplied to `React.Fragment`."), K(null));
570
570
  }
571
571
  }
572
572
  var We = {};
573
- function Ye(e, r, t, i, h, m) {
573
+ function Ye(e, r, t, s, h, m) {
574
574
  {
575
- var f = ue(e);
575
+ var f = fe(e);
576
576
  if (!f) {
577
577
  var u = "";
578
578
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
579
579
  var M = ur();
580
580
  M ? u += M : u += Ae();
581
- var T;
582
- e === null ? T = "null" : me(e) ? T = "array" : e !== void 0 && e.$$typeof === l ? (T = "<" + (I(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, s("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, u);
581
+ var _;
582
+ e === null ? _ = "null" : me(e) ? _ = "array" : e !== void 0 && e.$$typeof === l ? (_ = "<" + ($(e.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof e, n("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, u);
583
583
  }
584
- var R = cr(e, r, t, h, m);
585
- if (R == null)
586
- return R;
584
+ var S = cr(e, r, t, h, m);
585
+ if (S == null)
586
+ return S;
587
587
  if (f) {
588
- var $ = r.children;
589
- if ($ !== void 0)
590
- if (i)
591
- if (me($)) {
592
- for (var J = 0; J < $.length; J++)
593
- Fe($[J], e);
594
- Object.freeze && Object.freeze($);
588
+ var A = r.children;
589
+ if (A !== void 0)
590
+ if (s)
591
+ if (me(A)) {
592
+ for (var J = 0; J < A.length; J++)
593
+ Fe(A[J], e);
594
+ Object.freeze && Object.freeze(A);
595
595
  } else
596
- s("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
+ n("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
597
597
  else
598
- Fe($, e);
598
+ Fe(A, e);
599
599
  }
600
- if (X.call(r, "key")) {
601
- var B = I(e), N = Object.keys(r).filter(function(gr) {
600
+ if (H.call(r, "key")) {
601
+ var z = $(e), N = Object.keys(r).filter(function(gr) {
602
602
  return gr !== "key";
603
- }), ge = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
604
- if (!We[B + ge]) {
603
+ }), xe = N.length > 0 ? "{key: someKey, " + N.join(": ..., ") + ": ...}" : "{key: someKey}";
604
+ if (!We[z + xe]) {
605
605
  var yr = N.length > 0 ? "{" + N.join(": ..., ") + ": ...}" : "{}";
606
- s(`A props object containing a "key" prop is being spread into JSX:
606
+ n(`A props object containing a "key" prop is being spread into JSX:
607
607
  let props = %s;
608
608
  <%s {...props} />
609
609
  React keys must be passed directly to JSX without using spread:
610
610
  let props = %s;
611
- <%s key={someKey} {...props} />`, ge, B, yr, B), We[B + ge] = !0;
611
+ <%s key={someKey} {...props} />`, xe, z, yr, z), We[z + xe] = !0;
612
612
  }
613
613
  }
614
- return e === c ? hr(R) : dr(R), R;
614
+ return e === c ? hr(S) : dr(S), S;
615
615
  }
616
616
  }
617
617
  function vr(e, r, t) {
618
618
  return Ye(e, r, t, !0);
619
619
  }
620
- function mr(e, r, t) {
620
+ function pr(e, r, t) {
621
621
  return Ye(e, r, t, !1);
622
622
  }
623
- var pr = mr, br = vr;
624
- Q.Fragment = c, Q.jsx = pr, Q.jsxs = br;
625
- }()), Q;
623
+ var mr = pr, br = vr;
624
+ ee.Fragment = c, ee.jsx = mr, ee.jsxs = br;
625
+ }()), ee;
626
626
  }
627
- process.env.NODE_ENV === "production" ? je.exports = xr() : je.exports = Er();
628
- var n = je.exports;
629
- const Tr = "Asia/Kolkata", Ve = [
627
+ process.env.NODE_ENV === "production" ? _e.exports = xr() : _e.exports = Er();
628
+ var a = _e.exports;
629
+ const Tr = "Asia/Kolkata", ze = [
630
630
  { value: "Asia/Kolkata", label: "India (IST)" },
631
631
  { value: "America/New_York", label: "Eastern Time (ET)" },
632
632
  { value: "America/Chicago", label: "Central Time (CT)" },
@@ -640,85 +640,85 @@ const Tr = "Asia/Kolkata", Ve = [
640
640
  { value: "Australia/Sydney", label: "Sydney (AEDT)" },
641
641
  { value: "UTC", label: "UTC" }
642
642
  ];
643
- function le(a, l) {
644
- return Y.isDateTime(a) ? a.setZone(l) : typeof a == "string" ? Y.fromISO(a, { zone: l }) : Y.fromJSDate(a, { zone: l });
643
+ function ce(o, l) {
644
+ return Y.isDateTime(o) ? o.setZone(l) : typeof o == "string" ? Y.fromISO(o, { zone: l }) : Y.fromJSDate(o, { zone: l });
645
645
  }
646
- function Te(a) {
647
- return Y.now().setZone(a);
646
+ function je(o) {
647
+ return Y.now().setZone(o);
648
648
  }
649
- function Be(a) {
650
- const d = Y.now().setZone(a).offset, c = Math.floor(Math.abs(d) / 60), p = Math.abs(d) % 60;
651
- return `UTC${d >= 0 ? "+" : "-"}${c}${p > 0 ? `:${p.toString().padStart(2, "0")}` : ""}`;
649
+ function Be(o) {
650
+ const d = Y.now().setZone(o).offset, c = Math.floor(Math.abs(d) / 60), b = Math.abs(d) % 60;
651
+ return `UTC${d >= 0 ? "+" : "-"}${c}${b > 0 ? `:${b.toString().padStart(2, "0")}` : ""}`;
652
652
  }
653
- function jr(a, l, d, c, p, j) {
653
+ function jr(o, l, d, c, b, R) {
654
654
  const v = Y.fromObject(
655
- { year: a, month: l, day: 1 },
655
+ { year: o, month: l, day: 1 },
656
656
  { zone: d }
657
- ), S = v.startOf("week"), C = v.endOf("month").endOf("week"), x = Y.now().setZone(d).startOf("day"), w = [];
658
- let O = [], _ = S;
659
- for (; _ <= C; ) {
660
- const D = _.month === l, P = _.hasSame(x, "day"), A = c ? _.hasSame(c, "day") : !1;
661
- let o = !1;
662
- p && _ < p.startOf("day") && (o = !0), j && _ > j.endOf("day") && (o = !0), O.push({
663
- date: _,
657
+ ), k = v.startOf("week"), w = v.endOf("month").endOf("week"), x = Y.now().setZone(d).startOf("day"), O = [];
658
+ let C = [], E = k;
659
+ for (; E <= w; ) {
660
+ const D = E.month === l, F = E.hasSame(x, "day"), P = c ? E.hasSame(c, "day") : !1;
661
+ let i = !1;
662
+ b && E < b.startOf("day") && (i = !0), R && E > R.endOf("day") && (i = !0), C.push({
663
+ date: E,
664
664
  isCurrentMonth: D,
665
- isToday: P,
666
- isSelected: A,
667
- isDisabled: o
668
- }), O.length === 7 && (w.push(O), O = []), _ = _.plus({ days: 1 });
665
+ isToday: F,
666
+ isSelected: P,
667
+ isDisabled: i
668
+ }), C.length === 7 && (O.push(C), C = []), E = E.plus({ days: 1 });
669
669
  }
670
- return w;
670
+ return O;
671
671
  }
672
672
  function _r() {
673
- const a = Y.now().startOf("week"), l = [];
673
+ const o = Y.now().startOf("week"), l = [];
674
674
  for (let d = 0; d < 7; d++) {
675
- const c = a.plus({ days: d });
675
+ const c = o.plus({ days: d });
676
676
  l.push(c.toFormat("ccc"));
677
677
  }
678
678
  return l;
679
679
  }
680
680
  function Rr() {
681
- const a = [];
681
+ const o = [];
682
682
  for (let l = 1; l <= 12; l++) {
683
683
  const d = Y.fromObject({ month: l });
684
- a.push(d.toFormat("MMMM"));
684
+ o.push(d.toFormat("MMMM"));
685
685
  }
686
- return a;
686
+ return o;
687
687
  }
688
688
  const Sr = ({
689
- viewDate: a,
689
+ viewDate: o,
690
690
  selectedDate: l,
691
691
  onDateSelect: d,
692
692
  onViewDateChange: c,
693
- timezone: p,
694
- minDate: j,
693
+ timezone: b,
694
+ minDate: R,
695
695
  maxDate: v
696
696
  }) => {
697
- const S = xe(() => jr(
698
- a.year,
699
- a.month,
700
- p,
697
+ const k = Ee(() => jr(
698
+ o.year,
699
+ o.month,
700
+ b,
701
701
  l ?? void 0,
702
- j,
702
+ R,
703
703
  v
704
- ), [a, l, p, j, v]), y = xe(() => _r(), []), C = xe(() => Rr(), []), x = () => {
705
- c(a.minus({ months: 1 }));
706
- }, w = () => {
707
- c(a.plus({ months: 1 }));
708
- }, O = (s) => {
709
- const b = parseInt(s.target.value, 10);
710
- c(a.set({ month: b }));
711
- }, _ = (s) => {
712
- const b = parseInt(s.target.value, 10);
713
- c(a.set({ year: b }));
714
- }, D = (s, b) => {
715
- b || d(s);
716
- }, P = (s, b, k) => {
717
- (s.key === "Enter" || s.key === " ") && (s.preventDefault(), D(b, k));
718
- }, A = a.year, o = Array.from({ length: 21 }, (s, b) => A - 10 + b);
719
- return /* @__PURE__ */ n.jsxs("div", { className: "chronos-calendar", role: "region", "aria-label": "Calendar", children: [
720
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-calendar-header", children: [
721
- /* @__PURE__ */ n.jsx(
704
+ ), [o, l, b, R, v]), y = Ee(() => _r(), []), w = Ee(() => Rr(), []), x = () => {
705
+ c(o.minus({ months: 1 }));
706
+ }, O = () => {
707
+ c(o.plus({ months: 1 }));
708
+ }, C = (n) => {
709
+ const T = parseInt(n.target.value, 10);
710
+ c(o.set({ month: T }));
711
+ }, E = (n) => {
712
+ const T = parseInt(n.target.value, 10);
713
+ c(o.set({ year: T }));
714
+ }, D = (n, T) => {
715
+ T || d(n);
716
+ }, F = (n, T, p) => {
717
+ (n.key === "Enter" || n.key === " ") && (n.preventDefault(), D(T, p));
718
+ }, P = o.year, i = Array.from({ length: 21 }, (n, T) => P - 10 + T);
719
+ return /* @__PURE__ */ a.jsxs("div", { className: "chronos-calendar", role: "region", "aria-label": "Calendar", children: [
720
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-calendar-header", children: [
721
+ /* @__PURE__ */ a.jsx(
722
722
  "button",
723
723
  {
724
724
  type: "button",
@@ -728,84 +728,84 @@ const Sr = ({
728
728
  children: "‹"
729
729
  }
730
730
  ),
731
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-month-year-selectors", children: [
732
- /* @__PURE__ */ n.jsx(
731
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-month-year-selectors", children: [
732
+ /* @__PURE__ */ a.jsx(
733
733
  "select",
734
734
  {
735
735
  className: "chronos-month-select",
736
- value: a.month,
737
- onChange: O,
736
+ value: o.month,
737
+ onChange: C,
738
738
  "aria-label": "Select month",
739
- children: C.map((s, b) => /* @__PURE__ */ n.jsx("option", { value: b + 1, children: s }, b))
739
+ children: w.map((n, T) => /* @__PURE__ */ a.jsx("option", { value: T + 1, children: n }, T))
740
740
  }
741
741
  ),
742
- /* @__PURE__ */ n.jsx(
742
+ /* @__PURE__ */ a.jsx(
743
743
  "select",
744
744
  {
745
745
  className: "chronos-year-select",
746
- value: a.year,
747
- onChange: _,
746
+ value: o.year,
747
+ onChange: E,
748
748
  "aria-label": "Select year",
749
- children: o.map((s) => /* @__PURE__ */ n.jsx("option", { value: s, children: s }, s))
749
+ children: i.map((n) => /* @__PURE__ */ a.jsx("option", { value: n, children: n }, n))
750
750
  }
751
751
  )
752
752
  ] }),
753
- /* @__PURE__ */ n.jsx(
753
+ /* @__PURE__ */ a.jsx(
754
754
  "button",
755
755
  {
756
756
  type: "button",
757
757
  className: "chronos-nav-button",
758
- onClick: w,
758
+ onClick: O,
759
759
  "aria-label": "Next month",
760
760
  children: "›"
761
761
  }
762
762
  )
763
763
  ] }),
764
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-calendar-grid", children: [
765
- /* @__PURE__ */ n.jsx("div", { className: "chronos-weekday-row", children: y.map((s) => /* @__PURE__ */ n.jsx("div", { className: "chronos-weekday", children: s }, s)) }),
766
- S.map((s, b) => /* @__PURE__ */ n.jsx("div", { className: "chronos-week-row", children: s.map((k, G) => /* @__PURE__ */ n.jsx(
764
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-calendar-grid", children: [
765
+ /* @__PURE__ */ a.jsx("div", { className: "chronos-weekday-row", children: y.map((n) => /* @__PURE__ */ a.jsx("div", { className: "chronos-weekday", children: n }, n)) }),
766
+ k.map((n, T) => /* @__PURE__ */ a.jsx("div", { className: "chronos-week-row", children: n.map((p, G) => /* @__PURE__ */ a.jsx(
767
767
  "button",
768
768
  {
769
769
  type: "button",
770
- className: `chronos-day ${k.isSelected ? "selected" : ""} ${k.isToday ? "today" : ""} ${k.isCurrentMonth ? "" : "other-month"} ${k.isDisabled ? "disabled" : ""}`,
771
- onClick: () => D(k.date, k.isDisabled),
772
- onKeyDown: (L) => P(L, k.date, k.isDisabled),
773
- disabled: k.isDisabled,
774
- "aria-label": k.date.toFormat("MMMM d, yyyy"),
775
- "aria-selected": k.isSelected,
776
- "aria-current": k.isToday ? "date" : void 0,
777
- children: k.date.day
770
+ className: `chronos-day ${p.isSelected ? "selected" : ""} ${p.isToday ? "today" : ""} ${p.isCurrentMonth ? "" : "other-month"} ${p.isDisabled ? "disabled" : ""}`,
771
+ onClick: () => D(p.date, p.isDisabled),
772
+ onKeyDown: (q) => F(q, p.date, p.isDisabled),
773
+ disabled: p.isDisabled,
774
+ "aria-label": p.date.toFormat("MMMM d, yyyy"),
775
+ "aria-selected": p.isSelected,
776
+ "aria-current": p.isToday ? "date" : void 0,
777
+ children: p.date.day
778
778
  },
779
779
  G
780
- )) }, b))
780
+ )) }, T))
781
781
  ] })
782
782
  ] });
783
783
  }, kr = ({
784
- value: a,
784
+ value: o,
785
785
  onChange: l,
786
786
  use24Hour: d
787
787
  }) => {
788
- const [c, p] = z((a == null ? void 0 : a.hour) ?? 12), [j, v] = z((a == null ? void 0 : a.minute) ?? 0), [S, y] = z(
789
- a && a.hour >= 12 ? "PM" : "AM"
788
+ const [c, b] = U((o == null ? void 0 : o.hour) ?? 12), [R, v] = U((o == null ? void 0 : o.minute) ?? 0), [k, y] = U(
789
+ o && o.hour >= 12 ? "PM" : "AM"
790
790
  );
791
- ce(() => {
792
- a && (p(a.hour), v(a.minute), y(a.hour >= 12 ? "PM" : "AM"));
793
- }, [a]);
794
- const C = (o) => {
795
- p(o);
796
- let s = o;
797
- d || (S === "PM" && o !== 12 ? s = o + 12 : S === "AM" && o === 12 && (s = 0)), l(s, j);
798
- }, x = (o) => {
799
- v(o), l(c, o);
800
- }, w = () => {
801
- const o = S === "AM" ? "PM" : "AM";
802
- y(o);
803
- let s = c;
804
- o === "PM" && c !== 12 ? s = c + 12 : o === "AM" && c === 12 ? s = 0 : o === "AM" && c > 12 && (s = c - 12), l(s, j);
805
- }, O = d ? c : c % 12 || 12, _ = d ? 23 : 12, D = d ? 0 : 1, P = Array.from({ length: _ - D + 1 }, (o, s) => D + s), A = Array.from({ length: 60 }, (o, s) => s);
806
- return /* @__PURE__ */ n.jsxs("div", { className: "chronos-time-picker", role: "group", "aria-label": "Time picker", children: [
807
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-time-header", children: [
808
- /* @__PURE__ */ n.jsxs(
791
+ ue(() => {
792
+ o && (b(o.hour), v(o.minute), y(o.hour >= 12 ? "PM" : "AM"));
793
+ }, [o]);
794
+ const w = (i) => {
795
+ b(i);
796
+ let n = i;
797
+ d || (k === "PM" && i !== 12 ? n = i + 12 : k === "AM" && i === 12 && (n = 0)), l(n, R);
798
+ }, x = (i) => {
799
+ v(i), l(c, i);
800
+ }, O = () => {
801
+ const i = k === "AM" ? "PM" : "AM";
802
+ y(i);
803
+ let n = c;
804
+ i === "PM" && c !== 12 ? n = c + 12 : i === "AM" && c === 12 ? n = 0 : i === "AM" && c > 12 && (n = c - 12), l(n, R);
805
+ }, C = d ? c : c % 12 || 12, E = d ? 23 : 12, D = d ? 0 : 1, F = Array.from({ length: E - D + 1 }, (i, n) => D + n), P = Array.from({ length: 60 }, (i, n) => n);
806
+ return /* @__PURE__ */ a.jsxs("div", { className: "chronos-time-picker", role: "group", "aria-label": "Time picker", children: [
807
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-time-header", children: [
808
+ /* @__PURE__ */ a.jsxs(
809
809
  "svg",
810
810
  {
811
811
  className: "chronos-clock-icon",
@@ -815,67 +815,67 @@ const Sr = ({
815
815
  stroke: "currentColor",
816
816
  strokeWidth: "2",
817
817
  children: [
818
- /* @__PURE__ */ n.jsx("circle", { cx: "12", cy: "12", r: "10" }),
819
- /* @__PURE__ */ n.jsx("polyline", { points: "12 6 12 12 16 14" })
818
+ /* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "10" }),
819
+ /* @__PURE__ */ a.jsx("polyline", { points: "12 6 12 12 16 14" })
820
820
  ]
821
821
  }
822
822
  ),
823
- /* @__PURE__ */ n.jsx("span", { children: "Time" })
823
+ /* @__PURE__ */ a.jsx("span", { children: "Time" })
824
824
  ] }),
825
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-time-controls", children: [
826
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-time-input-group", children: [
827
- /* @__PURE__ */ n.jsx("label", { htmlFor: "chronos-hour-select", className: "chronos-time-label", children: "Hour" }),
828
- /* @__PURE__ */ n.jsx(
825
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-time-controls", children: [
826
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-time-input-group", children: [
827
+ /* @__PURE__ */ a.jsx("label", { htmlFor: "chronos-hour-select", className: "chronos-time-label", children: "Hour" }),
828
+ /* @__PURE__ */ a.jsx(
829
829
  "select",
830
830
  {
831
831
  id: "chronos-hour-select",
832
832
  className: "chronos-time-select",
833
- value: O,
834
- onChange: (o) => C(parseInt(o.target.value, 10)),
833
+ value: C,
834
+ onChange: (i) => w(parseInt(i.target.value, 10)),
835
835
  "aria-label": "Select hour",
836
- children: P.map((o) => /* @__PURE__ */ n.jsx("option", { value: o, children: o.toString().padStart(2, "0") }, o))
836
+ children: F.map((i) => /* @__PURE__ */ a.jsx("option", { value: i, children: i.toString().padStart(2, "0") }, i))
837
837
  }
838
838
  )
839
839
  ] }),
840
- /* @__PURE__ */ n.jsx("span", { className: "chronos-time-separator", children: ":" }),
841
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-time-input-group", children: [
842
- /* @__PURE__ */ n.jsx("label", { htmlFor: "chronos-minute-select", className: "chronos-time-label", children: "Minute" }),
843
- /* @__PURE__ */ n.jsx(
840
+ /* @__PURE__ */ a.jsx("span", { className: "chronos-time-separator", children: ":" }),
841
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-time-input-group", children: [
842
+ /* @__PURE__ */ a.jsx("label", { htmlFor: "chronos-minute-select", className: "chronos-time-label", children: "Minute" }),
843
+ /* @__PURE__ */ a.jsx(
844
844
  "select",
845
845
  {
846
846
  id: "chronos-minute-select",
847
847
  className: "chronos-time-select",
848
- value: j,
849
- onChange: (o) => x(parseInt(o.target.value, 10)),
848
+ value: R,
849
+ onChange: (i) => x(parseInt(i.target.value, 10)),
850
850
  "aria-label": "Select minute",
851
- children: A.map((o) => /* @__PURE__ */ n.jsx("option", { value: o, children: o.toString().padStart(2, "0") }, o))
851
+ children: P.map((i) => /* @__PURE__ */ a.jsx("option", { value: i, children: i.toString().padStart(2, "0") }, i))
852
852
  }
853
853
  )
854
854
  ] }),
855
- !d && /* @__PURE__ */ n.jsx(
855
+ !d && /* @__PURE__ */ a.jsx(
856
856
  "button",
857
857
  {
858
858
  type: "button",
859
859
  className: "chronos-period-toggle",
860
- onClick: w,
861
- "aria-label": `Switch to ${S === "AM" ? "PM" : "AM"}`,
862
- children: S
860
+ onClick: O,
861
+ "aria-label": `Switch to ${k === "AM" ? "PM" : "AM"}`,
862
+ children: k
863
863
  }
864
864
  )
865
865
  ] })
866
866
  ] });
867
867
  }, wr = ({
868
- value: a,
868
+ value: o,
869
869
  onChange: l
870
870
  }) => {
871
- const [d, c] = z(!1), p = Ve.find((v) => v.value === a) || {
872
- label: a
873
- }, j = (v) => {
871
+ const [d, c] = U(!1), b = ze.find((v) => v.value === o) || {
872
+ label: o
873
+ }, R = (v) => {
874
874
  l(v), c(!1);
875
875
  };
876
- return /* @__PURE__ */ n.jsxs("div", { className: "chronos-timezone-selector", children: [
877
- /* @__PURE__ */ n.jsxs("div", { className: "chronos-timezone-header", children: [
878
- /* @__PURE__ */ n.jsxs(
876
+ return /* @__PURE__ */ a.jsxs("div", { className: "chronos-timezone-selector", children: [
877
+ /* @__PURE__ */ a.jsxs("div", { className: "chronos-timezone-header", children: [
878
+ /* @__PURE__ */ a.jsxs(
879
879
  "svg",
880
880
  {
881
881
  className: "chronos-globe-icon",
@@ -885,15 +885,15 @@ const Sr = ({
885
885
  stroke: "currentColor",
886
886
  strokeWidth: "2",
887
887
  children: [
888
- /* @__PURE__ */ n.jsx("circle", { cx: "12", cy: "12", r: "10" }),
889
- /* @__PURE__ */ n.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
890
- /* @__PURE__ */ n.jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
888
+ /* @__PURE__ */ a.jsx("circle", { cx: "12", cy: "12", r: "10" }),
889
+ /* @__PURE__ */ a.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
890
+ /* @__PURE__ */ a.jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
891
891
  ]
892
892
  }
893
893
  ),
894
- /* @__PURE__ */ n.jsx("span", { children: "Timezone" })
894
+ /* @__PURE__ */ a.jsx("span", { children: "Timezone" })
895
895
  ] }),
896
- /* @__PURE__ */ n.jsxs(
896
+ /* @__PURE__ */ a.jsxs(
897
897
  "button",
898
898
  {
899
899
  type: "button",
@@ -902,9 +902,9 @@ const Sr = ({
902
902
  "aria-expanded": d,
903
903
  "aria-label": "Select timezone",
904
904
  children: [
905
- /* @__PURE__ */ n.jsx("span", { className: "chronos-timezone-label", children: p.label }),
906
- /* @__PURE__ */ n.jsx("span", { className: "chronos-timezone-offset", children: Be(a) }),
907
- /* @__PURE__ */ n.jsx(
905
+ /* @__PURE__ */ a.jsx("span", { className: "chronos-timezone-label", children: b.label }),
906
+ /* @__PURE__ */ a.jsx("span", { className: "chronos-timezone-offset", children: Be(o) }),
907
+ /* @__PURE__ */ a.jsx(
908
908
  "svg",
909
909
  {
910
910
  className: `chronos-chevron ${d ? "expanded" : ""}`,
@@ -913,138 +913,139 @@ const Sr = ({
913
913
  fill: "none",
914
914
  stroke: "currentColor",
915
915
  strokeWidth: "2",
916
- children: /* @__PURE__ */ n.jsx("polyline", { points: "6 9 12 15 18 9" })
916
+ children: /* @__PURE__ */ a.jsx("polyline", { points: "6 9 12 15 18 9" })
917
917
  }
918
918
  )
919
919
  ]
920
920
  }
921
921
  ),
922
- d && /* @__PURE__ */ n.jsx("div", { className: "chronos-timezone-list", role: "listbox", children: Ve.map((v) => /* @__PURE__ */ n.jsxs(
922
+ d && /* @__PURE__ */ a.jsx("div", { className: "chronos-timezone-list", role: "listbox", children: ze.map((v) => /* @__PURE__ */ a.jsxs(
923
923
  "button",
924
924
  {
925
925
  type: "button",
926
- className: `chronos-timezone-option ${v.value === a ? "selected" : ""}`,
927
- onClick: () => j(v.value),
926
+ className: `chronos-timezone-option ${v.value === o ? "selected" : ""}`,
927
+ onClick: () => R(v.value),
928
928
  role: "option",
929
- "aria-selected": v.value === a,
929
+ "aria-selected": v.value === o,
930
930
  children: [
931
- /* @__PURE__ */ n.jsx("span", { className: "chronos-timezone-option-label", children: v.label }),
932
- /* @__PURE__ */ n.jsx("span", { className: "chronos-timezone-option-offset", children: Be(v.value) })
931
+ /* @__PURE__ */ a.jsx("span", { className: "chronos-timezone-option-label", children: v.label }),
932
+ /* @__PURE__ */ a.jsx("span", { className: "chronos-timezone-option-offset", children: Be(v.value) })
933
933
  ]
934
934
  },
935
935
  v.value
936
936
  )) })
937
937
  ] });
938
938
  }, Pr = ({
939
- value: a,
939
+ value: o,
940
940
  onChange: l,
941
941
  timezone: d = Tr,
942
942
  dateFormat: c = "DD",
943
- timeFormat: p = "HH:mm",
944
- minDate: j,
943
+ timeFormat: b = "HH:mm",
944
+ minDate: R,
945
945
  maxDate: v,
946
- placeholder: S = "Select date and time",
946
+ placeholder: k = "Select date and time",
947
947
  disabled: y = !1,
948
- showTime: C = !0,
948
+ showTime: w = !0,
949
949
  use24Hour: x = !0,
950
- className: w = "",
951
- ariaLabel: O = "Date and time picker",
952
- showTimezoneSelector: _ = !1,
953
- theme: D = "light"
950
+ className: O = "",
951
+ ariaLabel: C = "Date and time picker",
952
+ showTimezoneSelector: E = !1,
953
+ theme: D = "light",
954
+ orientation: F = "portrait"
954
955
  }) => {
955
- const [P, A] = z(!1), [o, s] = z(() => a ? le(a, d) : null), [b, k] = z(d), [G, L] = z(() => o || Te(d)), q = Le(null), ee = Le(null);
956
- ce(() => {
957
- a && s(le(a, b));
958
- }, [a, b]), ce(() => {
959
- const E = (g) => {
960
- q.current && !q.current.contains(g.target) && A(!1);
956
+ const [P, i] = U(!1), [n, T] = U(() => o ? ce(o, d) : null), [p, G] = U(d), [q, B] = U(() => n || je(d)), Z = Le(null), X = Le(null);
957
+ ue(() => {
958
+ o && T(ce(o, p));
959
+ }, [o, p]), ue(() => {
960
+ const j = (g) => {
961
+ Z.current && !Z.current.contains(g.target) && i(!1);
961
962
  };
962
963
  if (P)
963
- return document.addEventListener("mousedown", E), () => document.removeEventListener("mousedown", E);
964
- }, [P]), ce(() => {
965
- const E = (g) => {
966
- var F;
967
- g.key === "Escape" && P && (A(!1), (F = ee.current) == null || F.focus());
964
+ return document.addEventListener("mousedown", j), () => document.removeEventListener("mousedown", j);
965
+ }, [P]), ue(() => {
966
+ const j = (g) => {
967
+ var I;
968
+ g.key === "Escape" && P && (i(!1), (I = X.current) == null || I.focus());
968
969
  };
969
- return document.addEventListener("keydown", E), () => document.removeEventListener("keydown", E);
970
+ return document.addEventListener("keydown", j), () => document.removeEventListener("keydown", j);
970
971
  }, [P]);
971
- const re = Ee((E) => {
972
- let g = E;
973
- if (o && (g = E.set({
974
- hour: o.hour,
975
- minute: o.minute,
976
- second: o.second
977
- })), s(g), L(g), C || A(!1), l) {
978
- const F = {
972
+ const fe = Te((j) => {
973
+ let g = j;
974
+ if (n && (g = j.set({
975
+ hour: n.hour,
976
+ minute: n.minute,
977
+ second: n.second
978
+ })), T(g), B(g), w || i(!1), l) {
979
+ const I = {
979
980
  iso: g.toISO() || "",
980
- formatted: g.toFormat(`${c} ${p}`),
981
+ formatted: g.toFormat(`${c} ${b}`),
981
982
  timestamp: g.toMillis(),
982
983
  dateTime: g
983
984
  };
984
- l(F);
985
+ l(I);
985
986
  }
986
- }, [o, C, l, c, p]), ue = Ee((E, g) => {
987
- const U = (o || Te(b)).set({ hour: E, minute: g, second: 0 });
988
- if (s(U), l) {
989
- const ne = {
990
- iso: U.toISO() || "",
991
- formatted: U.toFormat(`${c} ${p}`),
992
- timestamp: U.toMillis(),
993
- dateTime: U
987
+ }, [n, w, l, c, b]), de = Te((j, g) => {
988
+ const L = (n || je(p)).set({ hour: j, minute: g, second: 0 });
989
+ if (T(L), l) {
990
+ const ae = {
991
+ iso: L.toISO() || "",
992
+ formatted: L.toFormat(`${c} ${b}`),
993
+ timestamp: L.toMillis(),
994
+ dateTime: L
994
995
  };
995
- l(ne);
996
+ l(ae);
996
997
  }
997
- }, [o, b, l, c, p]), fe = Ee((E) => {
998
- if (k(E), o) {
999
- const g = o.setZone(E);
1000
- if (s(g), L(g), l) {
1001
- const F = {
998
+ }, [n, p, l, c, b]), re = Te((j) => {
999
+ if (G(j), n) {
1000
+ const g = n.setZone(j);
1001
+ if (T(g), B(g), l) {
1002
+ const I = {
1002
1003
  iso: g.toISO() || "",
1003
- formatted: g.toFormat(`${c} ${p}`),
1004
+ formatted: g.toFormat(`${c} ${b}`),
1004
1005
  timestamp: g.toMillis(),
1005
1006
  dateTime: g
1006
1007
  };
1007
- l(F);
1008
+ l(I);
1008
1009
  }
1009
1010
  } else
1010
- L(Te(E));
1011
- }, [o, l, c, p]), Z = () => {
1012
- y || A(!P);
1013
- }, I = (E) => {
1014
- (E.key === "Enter" || E.key === " ") && (E.preventDefault(), Z());
1015
- }, W = o ? o.toFormat(`${c} ${C ? p : ""}`) : "", V = j ? le(j, b) : void 0, te = v ? le(v, b) : void 0;
1016
- return /* @__PURE__ */ n.jsxs(
1011
+ B(je(j));
1012
+ }, [n, l, c, b]), $ = () => {
1013
+ y || i(!P);
1014
+ }, W = (j) => {
1015
+ (j.key === "Enter" || j.key === " ") && (j.preventDefault(), $());
1016
+ }, V = n ? n.toFormat(`${c} ${w ? b : ""}`) : "", te = R ? ce(R, p) : void 0, ne = v ? ce(v, p) : void 0;
1017
+ return /* @__PURE__ */ a.jsxs(
1017
1018
  "div",
1018
1019
  {
1019
- ref: q,
1020
- className: `chronos-picker ${w}`,
1020
+ ref: Z,
1021
+ className: `chronos-picker ${O}`,
1021
1022
  "data-disabled": y,
1022
1023
  "data-theme": D,
1023
1024
  children: [
1024
- /* @__PURE__ */ n.jsxs(
1025
+ /* @__PURE__ */ a.jsxs(
1025
1026
  "div",
1026
1027
  {
1027
1028
  className: "chronos-input-wrapper",
1028
- onClick: Z,
1029
+ onClick: $,
1029
1030
  children: [
1030
- /* @__PURE__ */ n.jsx(
1031
+ /* @__PURE__ */ a.jsx(
1031
1032
  "input",
1032
1033
  {
1033
- ref: ee,
1034
+ ref: X,
1034
1035
  type: "text",
1035
1036
  className: "chronos-input",
1036
- value: W,
1037
- placeholder: S,
1037
+ value: V,
1038
+ placeholder: k,
1038
1039
  readOnly: !0,
1039
1040
  disabled: y,
1040
- onKeyDown: I,
1041
- "aria-label": O,
1041
+ onKeyDown: W,
1042
+ "aria-label": C,
1042
1043
  "aria-expanded": P,
1043
1044
  "aria-haspopup": "dialog",
1044
1045
  role: "combobox"
1045
1046
  }
1046
1047
  ),
1047
- /* @__PURE__ */ n.jsxs(
1048
+ /* @__PURE__ */ a.jsxs(
1048
1049
  "svg",
1049
1050
  {
1050
1051
  className: "chronos-calendar-icon",
@@ -1054,52 +1055,55 @@ const Sr = ({
1054
1055
  stroke: "currentColor",
1055
1056
  strokeWidth: "2",
1056
1057
  children: [
1057
- /* @__PURE__ */ n.jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
1058
- /* @__PURE__ */ n.jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
1059
- /* @__PURE__ */ n.jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
1060
- /* @__PURE__ */ n.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
1058
+ /* @__PURE__ */ a.jsx("rect", { x: "3", y: "4", width: "18", height: "18", rx: "2", ry: "2" }),
1059
+ /* @__PURE__ */ a.jsx("line", { x1: "16", y1: "2", x2: "16", y2: "6" }),
1060
+ /* @__PURE__ */ a.jsx("line", { x1: "8", y1: "2", x2: "8", y2: "6" }),
1061
+ /* @__PURE__ */ a.jsx("line", { x1: "3", y1: "10", x2: "21", y2: "10" })
1061
1062
  ]
1062
1063
  }
1063
1064
  )
1064
1065
  ]
1065
1066
  }
1066
1067
  ),
1067
- P && /* @__PURE__ */ n.jsxs(
1068
+ P && /* @__PURE__ */ a.jsx(
1068
1069
  "div",
1069
1070
  {
1070
1071
  className: "chronos-dropdown",
1072
+ "data-orientation": F,
1071
1073
  role: "dialog",
1072
1074
  "aria-label": "Date and time picker dialog",
1073
- children: [
1074
- /* @__PURE__ */ n.jsx(
1075
+ children: /* @__PURE__ */ a.jsxs("div", { className: "chronos-dropdown-content", children: [
1076
+ /* @__PURE__ */ a.jsx(
1075
1077
  Sr,
1076
1078
  {
1077
- viewDate: G,
1078
- selectedDate: o,
1079
- onDateSelect: re,
1080
- onViewDateChange: L,
1081
- timezone: b,
1082
- minDate: V,
1083
- maxDate: te
1084
- }
1085
- ),
1086
- C && /* @__PURE__ */ n.jsx(
1087
- kr,
1088
- {
1089
- value: o,
1090
- onChange: ue,
1091
- use24Hour: x,
1092
- timezone: b
1079
+ viewDate: q,
1080
+ selectedDate: n,
1081
+ onDateSelect: fe,
1082
+ onViewDateChange: B,
1083
+ timezone: p,
1084
+ minDate: te,
1085
+ maxDate: ne
1093
1086
  }
1094
1087
  ),
1095
- _ && /* @__PURE__ */ n.jsx(
1096
- wr,
1097
- {
1098
- value: b,
1099
- onChange: fe
1100
- }
1101
- )
1102
- ]
1088
+ (w || E) && /* @__PURE__ */ a.jsxs("div", { className: "chronos-sidebar", children: [
1089
+ w && /* @__PURE__ */ a.jsx(
1090
+ kr,
1091
+ {
1092
+ value: n,
1093
+ onChange: de,
1094
+ use24Hour: x,
1095
+ timezone: p
1096
+ }
1097
+ ),
1098
+ E && /* @__PURE__ */ a.jsx(
1099
+ wr,
1100
+ {
1101
+ value: p,
1102
+ onChange: re
1103
+ }
1104
+ )
1105
+ ] })
1106
+ ] })
1103
1107
  }
1104
1108
  )
1105
1109
  ]
@@ -1107,9 +1111,9 @@ const Sr = ({
1107
1111
  );
1108
1112
  };
1109
1113
  export {
1110
- Ve as COMMON_TIMEZONES,
1114
+ ze as COMMON_TIMEZONES,
1111
1115
  Tr as DEFAULT_TIMEZONE,
1112
1116
  Pr as DateTimePicker,
1113
- le as convertToTimezone,
1114
- Te as nowInTimezone
1117
+ ce as convertToTimezone,
1118
+ je as nowInTimezone
1115
1119
  };