@rpcbase/ui 0.192.0 → 0.193.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.
Files changed (234) hide show
  1. package/dist/index100.js +3 -4
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +5 -4
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +4 -8
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +8 -5
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +5 -4
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +3 -3
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +4 -6
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +6 -145
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +144 -38
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +39 -4
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +4 -7
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +6 -12
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +13 -13
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +13 -7
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +6 -30
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +31 -10
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +10 -10
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +10 -8
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +8 -13
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +13 -101
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +102 -20
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +20 -54
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +51 -70
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +72 -9
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +9 -20
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +20 -16
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +16 -23
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +23 -6
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +6 -5
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +5 -23
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +24 -35
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +35 -16
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +16 -7
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +6 -4
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +4 -4
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +4 -4
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +4 -4
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +4 -3
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +3 -6
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +7 -24
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +24 -8
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +7 -6
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +6 -5
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +5 -3
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +3 -3
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +3 -4
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +4 -3
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +3 -4
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +4 -3
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +3 -3
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +3 -3
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +3 -46
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +1 -1
  106. package/dist/index154.js +1 -1
  107. package/dist/index155.js +1 -1
  108. package/dist/index157.js +13 -13
  109. package/dist/index183.js +1 -1
  110. package/dist/index19.js +405 -391
  111. package/dist/index19.js.map +1 -1
  112. package/dist/index230.js +1 -1
  113. package/dist/index233.js +1 -1
  114. package/dist/index235.js +1 -1
  115. package/dist/index236.js +1 -1
  116. package/dist/index237.js +3 -3
  117. package/dist/index238.js +2 -2
  118. package/dist/index24.js +1 -1
  119. package/dist/index242.js +2 -2
  120. package/dist/index243.js +9 -9
  121. package/dist/index244.js +1 -1
  122. package/dist/index274.js +1 -1
  123. package/dist/index276.js +4 -4
  124. package/dist/index299.js +65 -69
  125. package/dist/index299.js.map +1 -1
  126. package/dist/index300.js +68 -8
  127. package/dist/index300.js.map +1 -1
  128. package/dist/index301.js +9 -14
  129. package/dist/index301.js.map +1 -1
  130. package/dist/index302.js +14 -66
  131. package/dist/index302.js.map +1 -1
  132. package/dist/index303.js +65 -64
  133. package/dist/index303.js.map +1 -1
  134. package/dist/index31.js +5 -5
  135. package/dist/index32.js +24 -24
  136. package/dist/index33.js +3 -3
  137. package/dist/index41.js +20 -20
  138. package/dist/index45.js +1 -1
  139. package/dist/index46.js +1 -1
  140. package/dist/index49.js +1 -1
  141. package/dist/index50.js +1 -1
  142. package/dist/index51.js +2 -205
  143. package/dist/index51.js.map +1 -1
  144. package/dist/index52.js +2 -7
  145. package/dist/index52.js.map +1 -1
  146. package/dist/index53.js +6 -33
  147. package/dist/index53.js.map +1 -1
  148. package/dist/index54.js +33 -26
  149. package/dist/index54.js.map +1 -1
  150. package/dist/index55.js +26 -7
  151. package/dist/index55.js.map +1 -1
  152. package/dist/index56.js +7 -11
  153. package/dist/index56.js.map +1 -1
  154. package/dist/index57.js +11 -3
  155. package/dist/index57.js.map +1 -1
  156. package/dist/index58.js +2 -48
  157. package/dist/index58.js.map +1 -1
  158. package/dist/index59.js +2 -51
  159. package/dist/index59.js.map +1 -1
  160. package/dist/index60.js +205 -8
  161. package/dist/index60.js.map +1 -1
  162. package/dist/index61.js +3 -14
  163. package/dist/index61.js.map +1 -1
  164. package/dist/index62.js +43 -129
  165. package/dist/index62.js.map +1 -1
  166. package/dist/index63.js +50 -10
  167. package/dist/index63.js.map +1 -1
  168. package/dist/index64.js +7 -216
  169. package/dist/index64.js.map +1 -1
  170. package/dist/index65.js +15 -13
  171. package/dist/index65.js.map +1 -1
  172. package/dist/index66.js +128 -41
  173. package/dist/index66.js.map +1 -1
  174. package/dist/index67.js +9 -48
  175. package/dist/index67.js.map +1 -1
  176. package/dist/index68.js +216 -3
  177. package/dist/index68.js.map +1 -1
  178. package/dist/index69.js +13 -6
  179. package/dist/index69.js.map +1 -1
  180. package/dist/index70.js +46 -27
  181. package/dist/index70.js.map +1 -1
  182. package/dist/index71.js +50 -50
  183. package/dist/index71.js.map +1 -1
  184. package/dist/index72.js +4 -9
  185. package/dist/index72.js.map +1 -1
  186. package/dist/index73.js +6 -2
  187. package/dist/index73.js.map +1 -1
  188. package/dist/index74.js +28 -2
  189. package/dist/index74.js.map +1 -1
  190. package/dist/index75.js +50 -2
  191. package/dist/index75.js.map +1 -1
  192. package/dist/index76.js +9 -2
  193. package/dist/index76.js.map +1 -1
  194. package/dist/index80.js +47 -52
  195. package/dist/index80.js.map +1 -1
  196. package/dist/index81.js +52 -5
  197. package/dist/index81.js.map +1 -1
  198. package/dist/index82.js +4 -4
  199. package/dist/index82.js.map +1 -1
  200. package/dist/index83.js +4 -15
  201. package/dist/index83.js.map +1 -1
  202. package/dist/index84.js +15 -5
  203. package/dist/index84.js.map +1 -1
  204. package/dist/index85.js +5 -7
  205. package/dist/index85.js.map +1 -1
  206. package/dist/index86.js +6 -15
  207. package/dist/index86.js.map +1 -1
  208. package/dist/index87.js +16 -4
  209. package/dist/index87.js.map +1 -1
  210. package/dist/index88.js +1 -1
  211. package/dist/index88.js.map +1 -1
  212. package/dist/index89.js +4 -5
  213. package/dist/index89.js.map +1 -1
  214. package/dist/index90.js +4 -4
  215. package/dist/index90.js.map +1 -1
  216. package/dist/index91.js +5 -4
  217. package/dist/index91.js.map +1 -1
  218. package/dist/index92.js +2 -2
  219. package/dist/index92.js.map +1 -1
  220. package/dist/index93.js +3 -5
  221. package/dist/index93.js.map +1 -1
  222. package/dist/index94.js +6 -24
  223. package/dist/index94.js.map +1 -1
  224. package/dist/index95.js +24 -6
  225. package/dist/index95.js.map +1 -1
  226. package/dist/index96.js +6 -4
  227. package/dist/index96.js.map +1 -1
  228. package/dist/index97.js +3 -5
  229. package/dist/index97.js.map +1 -1
  230. package/dist/index98.js +6 -5
  231. package/dist/index98.js.map +1 -1
  232. package/dist/index99.js +5 -4
  233. package/dist/index99.js.map +1 -1
  234. package/package.json +1 -1
package/dist/index19.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { j as g } from "./index30.js";
2
2
  import { c as Ie } from "./index28.js";
3
3
  import { Check as Be, ChevronUp as ze, ChevronDown as Ae } from "lucide-react";
4
- import * as p from "react";
4
+ import * as c from "react";
5
5
  import { DismissableLayerBranch as $e } from "./index31.js";
6
6
  import { createPortal as qe } from "react-dom";
7
7
  import { IMaskInput as We } from "react-imask";
8
8
  import Ue, { InputMask as Ke } from "imask";
9
9
  import { SelectItem as Ye, SelectValue as _e, SelectTrigger as Ge, SelectContent as Xe, Select as Je } from "./index21.js";
10
10
  import { useIsTouchDevice as Qe } from "./index4.js";
11
- import { cn as xe } from "./index2.js";
12
- const Re = Ue;
13
- typeof Re.InputMask != "function" && (Re.InputMask = Ke);
14
- function Me(o) {
11
+ import { cn as Ee } from "./index2.js";
12
+ const je = Ue;
13
+ typeof je.InputMask != "function" && (je.InputMask = Ke);
14
+ function Re(o) {
15
15
  return String(o).padStart(2, "0");
16
16
  }
17
17
  function Ze(o) {
@@ -20,14 +20,14 @@ function Ze(o) {
20
20
  const b = /^(\d{1,2}):(\d{2})$/.exec(e);
21
21
  if (!b)
22
22
  return null;
23
- const a = Number(b[1]), n = Number(b[2]);
24
- return !Number.isFinite(a) || !Number.isFinite(n) || a < 0 || a > 23 || n < 0 || n > 59 ? null : `${Me(a)}:${Me(n)}`;
23
+ const a = Number(b[1]), t = Number(b[2]);
24
+ return !Number.isFinite(a) || !Number.isFinite(t) || a < 0 || a > 23 || t < 0 || t > 59 ? null : `${Re(a)}:${Re(t)}`;
25
25
  }
26
26
  function Ce(o, e) {
27
27
  const b = Ze(o);
28
28
  if (!b) return null;
29
- const a = e.find((n) => n.value === b);
30
- return se(a) ? {
29
+ const a = e.find((t) => t.value === b);
30
+ return ue(a) ? {
31
31
  parsed: b,
32
32
  selectableValue: b
33
33
  } : {
@@ -35,24 +35,24 @@ function Ce(o, e) {
35
35
  selectableValue: null
36
36
  };
37
37
  }
38
- function je(o) {
38
+ function Me(o) {
39
39
  const e = /^(\d{2}):(\d{2})$/.exec(o);
40
40
  if (!e)
41
41
  return null;
42
42
  const b = Number(e[1]), a = Number(e[2]);
43
43
  return !Number.isFinite(b) || !Number.isFinite(a) ? null : b * 60 + a;
44
44
  }
45
- function se(o) {
45
+ function ue(o) {
46
46
  return o ? !o.disabled : !1;
47
47
  }
48
48
  function Oe(o, e) {
49
- let b = null, a = Number.POSITIVE_INFINITY, n = Number.NEGATIVE_INFINITY;
49
+ let b = null, a = Number.POSITIVE_INFINITY, t = Number.NEGATIVE_INFINITY;
50
50
  for (const x of e) {
51
- if (!se(x)) continue;
52
- const r = je(x.value);
51
+ if (!ue(x)) continue;
52
+ const r = Me(x.value);
53
53
  if (r == null) continue;
54
- const c = Math.abs(r - o);
55
- (c < a || c === a && r > n) && (b = x, a = c, n = r);
54
+ const u = Math.abs(r - o);
55
+ (u < a || u === a && r > t) && (b = x, a = u, t = r);
56
56
  }
57
57
  return b;
58
58
  }
@@ -62,7 +62,7 @@ function Pe({
62
62
  speed: b = 400,
63
63
  className: a
64
64
  }) {
65
- const [n, x] = p.useState(!0), r = p.useRef(void 0), c = p.useRef(void 0), m = p.useRef(!1), I = p.useCallback(() => {
65
+ const [t, x] = c.useState(!0), r = c.useRef(void 0), u = c.useRef(void 0), p = c.useRef(!1), M = c.useCallback(() => {
66
66
  const k = e.current;
67
67
  if (!k) {
68
68
  x(!0);
@@ -72,59 +72,59 @@ function Pe({
72
72
  scrollTop: V,
73
73
  scrollHeight: H,
74
74
  clientHeight: v
75
- } = k, D = 2, B = V > D, T = V < H - v - D;
76
- if (!(H > v + D)) {
75
+ } = k, S = 2, $ = V > S, T = V < H - v - S;
76
+ if (!(H > v + S)) {
77
77
  x(!0);
78
78
  return;
79
79
  }
80
- x(o === "up" ? !B : !T);
80
+ x(o === "up" ? !$ : !T);
81
81
  }, [o, e]);
82
- p.useEffect(() => {
82
+ c.useEffect(() => {
83
83
  const k = e.current;
84
84
  if (!k) return;
85
- I();
86
- const V = () => I(), H = () => I();
85
+ M();
86
+ const V = () => M(), H = () => M();
87
87
  k.addEventListener("scroll", V, {
88
88
  passive: !0
89
89
  });
90
90
  const v = new ResizeObserver(H);
91
91
  v.observe(k);
92
- const D = new MutationObserver(H);
93
- return D.observe(k, {
92
+ const S = new MutationObserver(H);
93
+ return S.observe(k, {
94
94
  childList: !0,
95
95
  subtree: !0
96
96
  }), () => {
97
- k.removeEventListener("scroll", V), v.disconnect(), D.disconnect();
97
+ k.removeEventListener("scroll", V), v.disconnect(), S.disconnect();
98
98
  };
99
- }, [e, I]);
100
- const i = p.useCallback(() => {
101
- r.current && (cancelAnimationFrame(r.current), r.current = void 0), m.current = !1, c.current = void 0;
102
- }, []), u = p.useCallback((k) => {
99
+ }, [e, M]);
100
+ const i = c.useCallback(() => {
101
+ r.current && (cancelAnimationFrame(r.current), r.current = void 0), p.current = !1, u.current = void 0;
102
+ }, []), f = c.useCallback((k) => {
103
103
  const V = e.current;
104
- if (!V || n || !m.current) {
104
+ if (!V || t || !p.current) {
105
105
  i();
106
106
  return;
107
107
  }
108
- c.current || (c.current = k);
109
- const H = k - c.current, v = b * H / 1e3;
108
+ u.current || (u.current = k);
109
+ const H = k - u.current, v = b * H / 1e3;
110
110
  if (v < 0.1) {
111
- r.current = requestAnimationFrame(u);
111
+ r.current = requestAnimationFrame(f);
112
112
  return;
113
113
  }
114
- const D = V.scrollTop, B = V.scrollHeight - V.clientHeight;
114
+ const S = V.scrollTop, $ = V.scrollHeight - V.clientHeight;
115
115
  let T;
116
- o === "up" ? T = Math.max(0, D - v) : T = Math.min(B, D + v), V.scrollTo({
116
+ o === "up" ? T = Math.max(0, S - v) : T = Math.min($, S + v), V.scrollTo({
117
117
  top: T
118
- }), c.current = k;
119
- const M = 1;
120
- (o === "up" ? T > M : T < B - M) && Math.abs(T - D) > 0.01 ? r.current = requestAnimationFrame(u) : (i(), setTimeout(I, 16));
121
- }, [I, o, n, b, i, e]), O = p.useCallback(() => {
122
- n || !e.current || m.current || (m.current = !0, c.current = void 0, r.current = requestAnimationFrame(u));
123
- }, [n, u, e]);
124
- return p.useEffect(() => i, [i]), /* @__PURE__ */ g.jsx("div", { className: xe("flex items-center justify-center py-1 select-none", n ? "cursor-default opacity-40" : "cursor-pointer opacity-100 hover:bg-accent/20", a), onPointerEnter: () => {
125
- n || O();
118
+ }), u.current = k;
119
+ const P = 1;
120
+ (o === "up" ? T > P : T < $ - P) && Math.abs(T - S) > 0.01 ? r.current = requestAnimationFrame(f) : (i(), setTimeout(M, 16));
121
+ }, [M, o, t, b, i, e]), A = c.useCallback(() => {
122
+ t || !e.current || p.current || (p.current = !0, u.current = void 0, r.current = requestAnimationFrame(f));
123
+ }, [t, f, e]);
124
+ return c.useEffect(() => i, [i]), /* @__PURE__ */ g.jsx("div", { className: Ee("flex items-center justify-center py-1 select-none", t ? "cursor-default opacity-40" : "cursor-pointer opacity-100 hover:bg-accent/20", a), onPointerEnter: () => {
125
+ t || A();
126
126
  }, onPointerMove: () => {
127
- !n && !m.current && O();
127
+ !t && !p.current && A();
128
128
  }, onPointerLeave: () => {
129
129
  i();
130
130
  }, children: o === "up" ? /* @__PURE__ */ g.jsx(ze, { "aria-hidden": !0, className: "h-4 w-4 opacity-50" }) : /* @__PURE__ */ g.jsx(Ae, { "aria-hidden": !0, className: "h-4 w-4 opacity-50" }) });
@@ -133,275 +133,275 @@ function Fe(o) {
133
133
  const e = Ie.c(79), {
134
134
  id: b,
135
135
  value: a,
136
- onChange: n,
136
+ onChange: t,
137
137
  onValueUpdate: x,
138
138
  options: r,
139
- placeholder: c,
140
- className: m,
141
- inputClassName: I,
139
+ placeholder: u,
140
+ className: p,
141
+ inputClassName: M,
142
142
  disabled: i,
143
- readOnly: u,
144
- open: O,
143
+ readOnly: f,
144
+ open: A,
145
145
  onOpenChange: k,
146
146
  triggerTestId: V,
147
147
  contentTestId: H,
148
148
  isHydrated: v
149
- } = o, D = c === void 0 ? "Select time" : c, B = p.useId(), T = b ?? `hours-picker-${B}`, M = p.useRef(null), P = p.useRef(null);
149
+ } = o, S = u === void 0 ? "Select time" : u, $ = c.useId(), T = b ?? `hours-picker-${$}`, P = c.useRef(null), F = c.useRef(null);
150
150
  let U;
151
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = (t) => {
152
- P.current = t;
151
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = (n) => {
152
+ F.current = n;
153
153
  }, e[0] = U) : U = e[0];
154
- const ie = U, _ = p.useRef(null), S = p.useRef(!1), [y, q] = p.useState(null), z = p.useRef(null), A = p.useRef(null), j = p.useRef(null), [L, K] = p.useState(nt), [we, ye] = p.useState(!1), s = O ?? we, C = k ?? ye;
155
- let me, ce;
156
- e[1] !== i || e[2] !== s || e[3] !== u ? (me = () => {
157
- if (!s || i || u)
154
+ const ae = U, se = c.useRef(null), j = c.useRef(!1), [I, N] = c.useState(null), E = c.useRef(null), L = c.useRef(null), O = c.useRef(null), [z, Y] = c.useState(nt), [we, ye] = c.useState(!1), s = A ?? we, C = k ?? ye;
155
+ let fe, de;
156
+ e[1] !== i || e[2] !== s || e[3] !== f ? (fe = () => {
157
+ if (!s || i || f)
158
158
  return;
159
- const t = M.current;
160
- t instanceof HTMLInputElement && (typeof document < "u" && document.activeElement === t || t.focus({
159
+ const n = P.current;
160
+ n instanceof HTMLInputElement && (typeof document < "u" && document.activeElement === n || n.focus({
161
161
  preventScroll: !0
162
162
  }));
163
- }, ce = [i, s, u], e[1] = i, e[2] = s, e[3] = u, e[4] = me, e[5] = ce) : (me = e[4], ce = e[5]), p.useEffect(me, ce);
164
- let G;
165
- e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = (t) => {
166
- _.current = t, q(t);
167
- }, e[6] = G) : G = e[6];
168
- const $ = G;
169
- let X;
170
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = () => {
171
- S.current = !0;
172
- }, e[7] = X) : X = e[7];
173
- const he = X;
174
- let J, Q;
175
- e[8] !== s || e[9] !== r || e[10] !== a ? (J = () => {
163
+ }, de = [i, s, f], e[1] = i, e[2] = s, e[3] = f, e[4] = fe, e[5] = de) : (fe = e[4], de = e[5]), c.useEffect(fe, de);
164
+ let ke;
165
+ e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = (n) => {
166
+ se.current = n, N(n);
167
+ }, e[6] = ke) : ke = e[6];
168
+ const _ = ke;
169
+ let me;
170
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = () => {
171
+ j.current = !0;
172
+ }, e[7] = me) : me = e[7];
173
+ const Ve = me;
174
+ let Te, pe;
175
+ e[8] !== s || e[9] !== r || e[10] !== a ? (Te = () => {
176
176
  if (!s)
177
177
  return;
178
- const t = r.find((h) => h.value === a);
179
- if (t && se(t)) {
180
- $(t.value);
178
+ const n = r.find((h) => h.value === a);
179
+ if (n && ue(n)) {
180
+ _(n.value);
181
181
  return;
182
182
  }
183
- const f = r.find(tt);
184
- $(f?.value ?? null);
185
- }, Q = [s, r, $, a], e[8] = s, e[9] = r, e[10] = a, e[11] = J, e[12] = Q) : (J = e[11], Q = e[12]), p.useEffect(J, Q);
186
- let Z;
187
- e[13] !== x || e[14] !== r ? (Z = (t) => {
188
- if (t === null) {
183
+ const d = r.find(tt);
184
+ _(d?.value ?? null);
185
+ }, pe = [s, r, _, a], e[8] = s, e[9] = r, e[10] = a, e[11] = Te, e[12] = pe) : (Te = e[11], pe = e[12]), c.useEffect(Te, pe);
186
+ let G;
187
+ e[13] !== x || e[14] !== r ? (G = (n) => {
188
+ if (n === null) {
189
189
  x && x(null);
190
190
  return;
191
191
  }
192
- const f = r.find((h) => h.value === t);
193
- se(f) && x && x(t);
194
- }, e[13] = x, e[14] = r, e[15] = Z) : Z = e[15];
195
- const oe = Z;
196
- let ee;
197
- e[16] !== n || e[17] !== x || e[18] !== r ? (ee = (t) => {
198
- if (t === null) {
199
- x && x(null), n(null);
192
+ const d = r.find((h) => h.value === n);
193
+ ue(d) && x && x(n);
194
+ }, e[13] = x, e[14] = r, e[15] = G) : G = e[15];
195
+ const ie = G;
196
+ let X;
197
+ e[16] !== t || e[17] !== x || e[18] !== r ? (X = (n) => {
198
+ if (n === null) {
199
+ x && x(null), t(null);
200
200
  return;
201
201
  }
202
- const f = r.find((h) => h.value === t);
203
- se(f) && (x && x(t), n(t));
204
- }, e[16] = n, e[17] = x, e[18] = r, e[19] = ee) : ee = e[19];
205
- const W = ee;
206
- let ae, ge;
207
- e[20] !== s || e[21] !== C ? (ae = () => {
202
+ const d = r.find((h) => h.value === n);
203
+ ue(d) && (x && x(n), t(n));
204
+ }, e[16] = t, e[17] = x, e[18] = r, e[19] = X) : X = e[19];
205
+ const q = X;
206
+ let J, Q;
207
+ e[20] !== s || e[21] !== C ? (J = () => {
208
208
  if (!s)
209
209
  return;
210
- const t = (f) => {
211
- const h = f.target;
210
+ const n = (d) => {
211
+ const h = d.target;
212
212
  if (!(h instanceof Node))
213
213
  return;
214
- const w = z.current;
215
- !w || w.contains(h) || A.current?.contains(h) || C(!1);
214
+ const w = E.current;
215
+ !w || w.contains(h) || L.current?.contains(h) || C(!1);
216
216
  };
217
- return document.addEventListener("pointerdown", t, !0), () => {
218
- document.removeEventListener("pointerdown", t, !0);
217
+ return document.addEventListener("pointerdown", n, !0), () => {
218
+ document.removeEventListener("pointerdown", n, !0);
219
219
  };
220
- }, ge = [s, C], e[20] = s, e[21] = C, e[22] = ae, e[23] = ge) : (ae = e[22], ge = e[23]), p.useEffect(ae, ge);
221
- let te, ue;
222
- e[24] !== s ? (te = () => {
220
+ }, Q = [s, C], e[20] = s, e[21] = C, e[22] = J, e[23] = Q) : (J = e[22], Q = e[23]), c.useEffect(J, Q);
221
+ let Z, ee;
222
+ e[24] !== s ? (Z = () => {
223
223
  if (!s)
224
224
  return;
225
- const t = A.current;
226
- if (!t)
225
+ const n = L.current;
226
+ if (!n)
227
227
  return;
228
- const f = (h) => {
229
- const w = j.current;
228
+ const d = (h) => {
229
+ const w = O.current;
230
230
  if (!w)
231
231
  return;
232
- const F = h.deltaY;
233
- if (F === 0)
232
+ const B = h.deltaY;
233
+ if (B === 0)
234
234
  return;
235
- const le = Math.max(0, w.scrollHeight - w.clientHeight), de = w.scrollTop <= 0, ve = w.scrollTop >= le, Y = h.target;
236
- if (Y instanceof Node && w.contains(Y)) {
237
- (F < 0 && de || F > 0 && ve) && h.preventDefault();
235
+ const ce = Math.max(0, w.scrollHeight - w.clientHeight), be = w.scrollTop <= 0, Ne = w.scrollTop >= ce, K = h.target;
236
+ if (K instanceof Node && w.contains(K)) {
237
+ (B < 0 && be || B > 0 && Ne) && h.preventDefault();
238
238
  return;
239
239
  }
240
240
  h.preventDefault();
241
- const be = Math.min(le, Math.max(0, w.scrollTop + F));
242
- w.scrollTop = be;
241
+ const De = Math.min(ce, Math.max(0, w.scrollTop + B));
242
+ w.scrollTop = De;
243
243
  };
244
- return t.addEventListener("wheel", f, {
244
+ return n.addEventListener("wheel", d, {
245
245
  passive: !1
246
246
  }), () => {
247
- t.removeEventListener("wheel", f);
247
+ n.removeEventListener("wheel", d);
248
248
  };
249
- }, ue = [s], e[24] = s, e[25] = te, e[26] = ue) : (te = e[25], ue = e[26]), p.useEffect(te, ue);
250
- let ne, fe;
251
- e[27] !== k || e[28] !== s || e[29] !== O || e[30] !== C ? (ne = () => {
252
- if (!s || O !== void 0 && !k || typeof window > "u" || !("IntersectionObserver" in window))
249
+ }, ee = [s], e[24] = s, e[25] = Z, e[26] = ee) : (Z = e[25], ee = e[26]), c.useEffect(Z, ee);
250
+ let te, ne;
251
+ e[27] !== k || e[28] !== s || e[29] !== A || e[30] !== C ? (te = () => {
252
+ if (!s || A !== void 0 && !k || typeof window > "u" || !("IntersectionObserver" in window))
253
253
  return;
254
- const t = M.current;
255
- if (!(t instanceof HTMLElement))
254
+ const n = P.current;
255
+ if (!(n instanceof HTMLElement))
256
256
  return;
257
- let f = !0;
257
+ let d = !0;
258
258
  const h = new IntersectionObserver((w) => {
259
- if (!f)
259
+ if (!d)
260
260
  return;
261
- const F = w[0];
262
- F && !F.isIntersecting && C(!1);
261
+ const B = w[0];
262
+ B && !B.isIntersecting && C(!1);
263
263
  });
264
- return h.observe(t), () => {
265
- f = !1, h.disconnect();
264
+ return h.observe(n), () => {
265
+ d = !1, h.disconnect();
266
266
  };
267
- }, fe = [k, s, O, C], e[27] = k, e[28] = s, e[29] = O, e[30] = C, e[31] = ne, e[32] = fe) : (ne = e[31], fe = e[32]), p.useEffect(ne, fe);
268
- let l;
269
- e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = () => {
267
+ }, ne = [k, s, A, C], e[27] = k, e[28] = s, e[29] = A, e[30] = C, e[31] = te, e[32] = ne) : (te = e[31], ne = e[32]), c.useEffect(te, ne);
268
+ let he;
269
+ e[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
270
270
  if (typeof window > "u")
271
271
  return;
272
- const t = M.current, f = A.current;
273
- if (!(t instanceof HTMLElement) || !f)
272
+ const n = P.current, d = L.current;
273
+ if (!(n instanceof HTMLElement) || !d)
274
274
  return;
275
- const h = t.getBoundingClientRect(), w = f.offsetHeight, F = window.innerWidth ?? 0, le = window.innerHeight ?? 0, de = h.width;
276
- let ve = h.left;
277
- ve + de > F - 8 && (ve = Math.max(8, F - de - 8)), ve < 8 && (ve = 8);
278
- let Y = h.bottom + 8;
279
- const pe = Y + w > le - 8, be = h.top - w - 8;
280
- pe && be >= 8 && (Y = be), Y < 8 && (Y = 8), Y + w > le - 8 && (Y = Math.max(8, le - w - 8)), K({
281
- left: ve,
282
- top: Y,
283
- width: de
275
+ const h = n.getBoundingClientRect(), w = d.offsetHeight, B = window.innerWidth ?? 0, ce = window.innerHeight ?? 0, be = h.width;
276
+ let Ne = h.left;
277
+ Ne + be > B - 8 && (Ne = Math.max(8, B - be - 8)), Ne < 8 && (Ne = 8);
278
+ let K = h.bottom + 8;
279
+ const xe = K + w > ce - 8, De = h.top - w - 8;
280
+ xe && De >= 8 && (K = De), K < 8 && (K = 8), K + w > ce - 8 && (K = Math.max(8, ce - w - 8)), Y({
281
+ left: Ne,
282
+ top: K,
283
+ width: be
284
284
  });
285
- }, e[33] = l) : l = e[33];
286
- const d = l;
287
- let N, E;
288
- e[34] !== i || e[35] !== s ? (N = () => {
285
+ }, e[33] = he) : he = e[33];
286
+ const re = he;
287
+ let oe, ge;
288
+ e[34] !== i || e[35] !== s ? (oe = () => {
289
289
  if (!s || i || typeof window > "u")
290
290
  return;
291
- d();
292
- const t = window.requestAnimationFrame(d);
293
- return window.addEventListener("scroll", d, !0), window.addEventListener("resize", d), () => {
294
- window.cancelAnimationFrame(t), window.removeEventListener("scroll", d, !0), window.removeEventListener("resize", d);
291
+ re();
292
+ const n = window.requestAnimationFrame(re);
293
+ return window.addEventListener("scroll", re, !0), window.addEventListener("resize", re), () => {
294
+ window.cancelAnimationFrame(n), window.removeEventListener("scroll", re, !0), window.removeEventListener("resize", re);
295
295
  };
296
- }, E = [i, s, d], e[34] = i, e[35] = s, e[36] = N, e[37] = E) : (N = e[36], E = e[37]), p.useLayoutEffect(N, E);
297
- let R;
298
- e[38] !== s ? (R = () => {
296
+ }, ge = [i, s, re], e[34] = i, e[35] = s, e[36] = oe, e[37] = ge) : (oe = e[36], ge = e[37]), c.useLayoutEffect(oe, ge);
297
+ let le;
298
+ e[38] !== s ? (le = () => {
299
299
  if (!s)
300
300
  return;
301
- const t = j.current;
302
- if (!t)
301
+ const n = O.current;
302
+ if (!n)
303
303
  return;
304
304
  const h = requestAnimationFrame(() => {
305
- const w = t.querySelector('[role="option"][data-state="checked"]');
305
+ const w = n.querySelector('[role="option"][data-state="checked"]');
306
306
  if (w instanceof HTMLElement) {
307
- const pe = w.offsetTop - 8, be = w.offsetTop + w.offsetHeight + 8;
308
- if (pe < t.scrollTop) {
309
- t.scrollTop = Math.max(0, pe);
307
+ const xe = w.offsetTop - 8, De = w.offsetTop + w.offsetHeight + 8;
308
+ if (xe < n.scrollTop) {
309
+ n.scrollTop = Math.max(0, xe);
310
310
  return;
311
311
  }
312
- const Le = t.scrollTop + t.clientHeight;
313
- be > Le && (t.scrollTop = Math.max(0, be - t.clientHeight));
312
+ const Le = n.scrollTop + n.clientHeight;
313
+ De > Le && (n.scrollTop = Math.max(0, De - n.clientHeight));
314
314
  return;
315
315
  }
316
- const F = Array.from(t.querySelectorAll('[role="option"]'));
317
- if (!F.length)
316
+ const B = Array.from(n.querySelectorAll('[role="option"]'));
317
+ if (!B.length)
318
318
  return;
319
- let le, de;
320
- for (const pe of F) {
321
- if (!pe.hasAttribute("data-disabled")) {
322
- le = pe;
319
+ let ce, be;
320
+ for (const xe of B) {
321
+ if (!xe.hasAttribute("data-disabled")) {
322
+ ce = xe;
323
323
  break;
324
324
  }
325
- de = pe;
325
+ be = xe;
326
326
  }
327
- if (!le)
327
+ if (!ce)
328
328
  return;
329
- const Y = Math.max(0, (de || le).offsetTop - 8);
330
- t.scrollTop = Y;
329
+ const K = Math.max(0, (be || ce).offsetTop - 8);
330
+ n.scrollTop = K;
331
331
  });
332
332
  return () => cancelAnimationFrame(h);
333
- }, e[38] = s, e[39] = R) : R = e[39];
334
- let re;
335
- e[40] !== s || e[41] !== r ? (re = [s, r], e[40] = s, e[41] = r, e[42] = re) : re = e[42], p.useEffect(R, re);
336
- let ke, Ee;
337
- e[43] !== y || e[44] !== s ? (ke = () => {
338
- if (!s || !y || !S.current)
333
+ }, e[38] = s, e[39] = le) : le = e[39];
334
+ let ve;
335
+ e[40] !== s || e[41] !== r ? (ve = [s, r], e[40] = s, e[41] = r, e[42] = ve) : ve = e[42], c.useEffect(le, ve);
336
+ let l, m;
337
+ e[43] !== I || e[44] !== s ? (l = () => {
338
+ if (!s || !I || !j.current)
339
339
  return;
340
- const t = j.current;
341
- if (!t)
340
+ const n = O.current;
341
+ if (!n)
342
342
  return;
343
- const f = t.querySelector(`[role="option"][data-value="${y}"]`);
344
- if (!(f instanceof HTMLElement))
343
+ const d = n.querySelector(`[role="option"][data-value="${I}"]`);
344
+ if (!(d instanceof HTMLElement))
345
345
  return;
346
- const h = f.offsetTop - 8, w = f.offsetTop + f.offsetHeight + 8;
347
- if (h < t.scrollTop) {
348
- t.scrollTop = Math.max(0, h);
346
+ const h = d.offsetTop - 8, w = d.offsetTop + d.offsetHeight + 8;
347
+ if (h < n.scrollTop) {
348
+ n.scrollTop = Math.max(0, h);
349
349
  return;
350
350
  }
351
- const F = t.scrollTop + t.clientHeight;
352
- w > F && (t.scrollTop = Math.max(0, w - t.clientHeight));
353
- }, Ee = [y, s], e[43] = y, e[44] = s, e[45] = ke, e[46] = Ee) : (ke = e[45], Ee = e[46]), p.useEffect(ke, Ee);
354
- let Te;
355
- e[47] !== m ? (Te = xe("w-[150px]", m), e[47] = m, e[48] = Te) : Te = e[48];
356
- let Ve;
357
- e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ve = (t) => {
358
- M.current = t;
359
- }, e[49] = Ve) : Ve = e[49];
360
- let Se;
361
- e[50] !== W || e[51] !== i || e[52] !== I || e[53] !== v || e[54] !== s || e[55] !== r || e[56] !== D || e[57] !== u || e[58] !== C || e[59] !== T || e[60] !== V || e[61] !== oe || e[62] !== a ? (Se = /* @__PURE__ */ g.jsx(st, { id: T, placeholder: D, value: a, onValueUpdate: oe, onCommit: W, options: r, disabled: i, readOnly: u, open: s, setOpen: C, inputClassName: I, triggerTestId: V, isHydrated: v, highlightedValueRef: _, setHighlightedValue: $, markKeyboardNavigation: he, inputRef: Ve, onDraftValueHandlerChange: ie }), e[50] = W, e[51] = i, e[52] = I, e[53] = v, e[54] = s, e[55] = r, e[56] = D, e[57] = u, e[58] = C, e[59] = T, e[60] = V, e[61] = oe, e[62] = a, e[63] = Se) : Se = e[63];
362
- let Ne;
363
- e[64] !== W || e[65] !== H || e[66] !== L || e[67] !== y || e[68] !== s || e[69] !== r || e[70] !== C || e[71] !== a ? (Ne = s ? (() => {
364
- const t = /* @__PURE__ */ g.jsx($e, { children: /* @__PURE__ */ g.jsxs("div", { ref: A, "data-testid": H, "data-state": "open", className: xe("pointer-events-auto fixed z-[60] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"), style: {
365
- left: L.left,
366
- top: L.top,
367
- width: L.width
351
+ const B = n.scrollTop + n.clientHeight;
352
+ w > B && (n.scrollTop = Math.max(0, w - n.clientHeight));
353
+ }, m = [I, s], e[43] = I, e[44] = s, e[45] = l, e[46] = m) : (l = e[45], m = e[46]), c.useEffect(l, m);
354
+ let y;
355
+ e[47] !== p ? (y = Ee("w-[150px]", p), e[47] = p, e[48] = y) : y = e[48];
356
+ let D;
357
+ e[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (n) => {
358
+ P.current = n;
359
+ }, e[49] = D) : D = e[49];
360
+ let R;
361
+ e[50] !== q || e[51] !== i || e[52] !== M || e[53] !== v || e[54] !== s || e[55] !== r || e[56] !== S || e[57] !== f || e[58] !== C || e[59] !== T || e[60] !== V || e[61] !== ie || e[62] !== a ? (R = /* @__PURE__ */ g.jsx(st, { id: T, placeholder: S, value: a, onValueUpdate: ie, onCommit: q, options: r, disabled: i, readOnly: f, open: s, setOpen: C, inputClassName: M, triggerTestId: V, isHydrated: v, highlightedValueRef: se, setHighlightedValue: _, markKeyboardNavigation: Ve, inputRef: D, onDraftValueHandlerChange: ae }), e[50] = q, e[51] = i, e[52] = M, e[53] = v, e[54] = s, e[55] = r, e[56] = S, e[57] = f, e[58] = C, e[59] = T, e[60] = V, e[61] = ie, e[62] = a, e[63] = R) : R = e[63];
362
+ let W;
363
+ e[64] !== q || e[65] !== H || e[66] !== z || e[67] !== I || e[68] !== s || e[69] !== r || e[70] !== C || e[71] !== a ? (W = s ? (() => {
364
+ const n = /* @__PURE__ */ g.jsx($e, { children: /* @__PURE__ */ g.jsxs("div", { ref: L, "data-testid": H, "data-state": "open", className: Ee("pointer-events-auto fixed z-[60] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md", "data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95"), style: {
365
+ left: z.left,
366
+ top: z.top,
367
+ width: z.width
368
368
  }, children: [
369
- /* @__PURE__ */ g.jsx(Pe, { direction: "up", viewportRef: j }),
370
- /* @__PURE__ */ g.jsx("div", { ref: j, role: "listbox", className: "max-h-64 overflow-y-auto p-1 [overscroll-behavior:contain] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", children: r.map((f) => {
371
- const h = f.value === a;
372
- return /* @__PURE__ */ g.jsxs("div", { role: "option", "aria-selected": h, "data-value": f.value, "data-state": h ? "checked" : "unchecked", "data-disabled": f.disabled ? "" : void 0, className: xe("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none cursor-pointer", f.disabled && "pointer-events-none opacity-50", y === f.value && "bg-accent text-accent-foreground"), onMouseDown: et, onClick: () => {
373
- f.disabled || (P.current?.(f.value), $(f.value), M.current?.focus({
369
+ /* @__PURE__ */ g.jsx(Pe, { direction: "up", viewportRef: O }),
370
+ /* @__PURE__ */ g.jsx("div", { ref: O, role: "listbox", className: "max-h-64 overflow-y-auto p-1 [overscroll-behavior:contain] [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden", children: r.map((d) => {
371
+ const h = d.value === a;
372
+ return /* @__PURE__ */ g.jsxs("div", { role: "option", "aria-selected": h, "data-value": d.value, "data-state": h ? "checked" : "unchecked", "data-disabled": d.disabled ? "" : void 0, className: Ee("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none cursor-pointer", d.disabled && "pointer-events-none opacity-50", I === d.value && "bg-accent text-accent-foreground"), onMouseDown: et, onClick: () => {
373
+ d.disabled || (F.current?.(d.value), _(d.value), P.current?.focus({
374
374
  preventScroll: !0
375
- }), W(f.value), C(!1));
375
+ }), q(d.value), C(!1));
376
376
  }, onPointerEnter: () => {
377
- S.current || (S.current = !1, $(f.value));
377
+ j.current || (j.current = !1, _(d.value));
378
378
  }, onPointerMove: (w) => {
379
- S.current && w.movementX === 0 && w.movementY === 0 || (S.current = !1, $(f.value));
379
+ j.current && w.movementX === 0 && w.movementY === 0 || (j.current = !1, _(d.value));
380
380
  }, children: [
381
381
  /* @__PURE__ */ g.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: h ? /* @__PURE__ */ g.jsx(Be, { "aria-hidden": !0, className: "h-4 w-4" }) : null }),
382
382
  /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col", children: [
383
- /* @__PURE__ */ g.jsx("span", { children: f.label }),
384
- f.description != null ? /* @__PURE__ */ g.jsx("span", { "data-slot": "description", className: "text-xs text-muted-foreground", children: f.description }) : null
383
+ /* @__PURE__ */ g.jsx("span", { children: d.label }),
384
+ d.description != null ? /* @__PURE__ */ g.jsx("span", { "data-slot": "description", className: "text-xs text-muted-foreground", children: d.description }) : null
385
385
  ] })
386
- ] }, f.value);
386
+ ] }, d.value);
387
387
  }) }),
388
- /* @__PURE__ */ g.jsx(Pe, { direction: "down", viewportRef: j })
388
+ /* @__PURE__ */ g.jsx(Pe, { direction: "down", viewportRef: O })
389
389
  ] }) });
390
- return typeof document > "u" ? t : qe(t, document.body);
391
- })() : null, e[64] = W, e[65] = H, e[66] = L, e[67] = y, e[68] = s, e[69] = r, e[70] = C, e[71] = a, e[72] = Ne) : Ne = e[72];
392
- let De;
393
- e[73] !== Se || e[74] !== Ne ? (De = /* @__PURE__ */ g.jsxs("div", { className: "relative", children: [
394
- Se,
395
- Ne
396
- ] }), e[73] = Se, e[74] = Ne, e[75] = De) : De = e[75];
390
+ return typeof document > "u" ? n : qe(n, document.body);
391
+ })() : null, e[64] = q, e[65] = H, e[66] = z, e[67] = I, e[68] = s, e[69] = r, e[70] = C, e[71] = a, e[72] = W) : W = e[72];
392
+ let Se;
393
+ e[73] !== R || e[74] !== W ? (Se = /* @__PURE__ */ g.jsxs("div", { className: "relative", children: [
394
+ R,
395
+ W
396
+ ] }), e[73] = R, e[74] = W, e[75] = Se) : Se = e[75];
397
397
  let He;
398
- return e[76] !== Te || e[77] !== De ? (He = /* @__PURE__ */ g.jsx("div", { "data-slot": "hours-picker-input", className: Te, ref: z, children: De }), e[76] = Te, e[77] = De, e[78] = He) : He = e[78], He;
398
+ return e[76] !== y || e[77] !== Se ? (He = /* @__PURE__ */ g.jsx("div", { "data-slot": "hours-picker-input", className: y, ref: E, children: Se }), e[76] = y, e[77] = Se, e[78] = He) : He = e[78], He;
399
399
  }
400
400
  function et(o) {
401
401
  o.preventDefault();
402
402
  }
403
403
  function tt(o) {
404
- return se(o);
404
+ return ue(o);
405
405
  }
406
406
  function nt() {
407
407
  return {
@@ -415,48 +415,48 @@ function rt(o) {
415
415
  const e = Ie.c(36), {
416
416
  id: b,
417
417
  value: a,
418
- onChange: n,
418
+ onChange: t,
419
419
  onValueUpdate: x,
420
420
  options: r,
421
- placeholder: c,
422
- className: m,
423
- inputClassName: I,
421
+ placeholder: u,
422
+ className: p,
423
+ inputClassName: M,
424
424
  disabled: i,
425
- open: u,
426
- onOpenChange: O,
425
+ open: f,
426
+ onOpenChange: A,
427
427
  triggerTestId: k,
428
428
  contentTestId: V,
429
429
  isHydrated: H
430
- } = o, v = c === void 0 ? "Select time" : c;
431
- let D;
432
- e[0] !== n || e[1] !== x || e[2] !== r ? (D = (K) => {
433
- const we = r.find((ye) => ye.value === K);
434
- se(we) && (x && x(K), n(K));
435
- }, e[0] = n, e[1] = x, e[2] = r, e[3] = D) : D = e[3];
436
- const B = D;
437
- let T;
438
- e[4] !== m ? (T = xe("w-[150px]", m), e[4] = m, e[5] = T) : T = e[5];
439
- const M = a ?? "";
440
- let P;
441
- e[6] !== B ? (P = (K) => B(K), e[6] = B, e[7] = P) : P = e[7];
442
- const U = H ? "true" : void 0, ie = !a && "text-muted-foreground", _ = u && "ring-2 ring-primary ring-offset-2";
430
+ } = o, v = u === void 0 ? "Select time" : u;
443
431
  let S;
444
- e[8] !== I || e[9] !== ie || e[10] !== _ ? (S = xe("transition-colors hover:bg-accent hover:text-accent-foreground", ie, _, "[&_[data-slot='description']]:hidden", I), e[8] = I, e[9] = ie, e[10] = _, e[11] = S) : S = e[11];
445
- let y;
446
- e[12] !== v ? (y = /* @__PURE__ */ g.jsx(_e, { placeholder: v }), e[12] = v, e[13] = y) : y = e[13];
447
- let q;
448
- e[14] !== b || e[15] !== y || e[16] !== U || e[17] !== S || e[18] !== k ? (q = /* @__PURE__ */ g.jsx(Ge, { id: b, "data-testid": k, "data-hydrated": U, className: S, children: y }), e[14] = b, e[15] = y, e[16] = U, e[17] = S, e[18] = k, e[19] = q) : q = e[19];
449
- let z;
450
- e[20] !== r ? (z = r.map(ot), e[20] = r, e[21] = z) : z = e[21];
451
- let A;
452
- e[22] !== V || e[23] !== z ? (A = /* @__PURE__ */ g.jsx(Xe, { "data-testid": V, autoScroll: "firstEnabledWithContext", className: "max-h-64 overflow-y-auto", children: z }), e[22] = V, e[23] = z, e[24] = A) : A = e[24];
432
+ e[0] !== t || e[1] !== x || e[2] !== r ? (S = (Y) => {
433
+ const we = r.find((ye) => ye.value === Y);
434
+ ue(we) && (x && x(Y), t(Y));
435
+ }, e[0] = t, e[1] = x, e[2] = r, e[3] = S) : S = e[3];
436
+ const $ = S;
437
+ let T;
438
+ e[4] !== p ? (T = Ee("w-[150px]", p), e[4] = p, e[5] = T) : T = e[5];
439
+ const P = a ?? "";
440
+ let F;
441
+ e[6] !== $ ? (F = (Y) => $(Y), e[6] = $, e[7] = F) : F = e[7];
442
+ const U = H ? "true" : void 0, ae = !a && "text-muted-foreground", se = f && "ring-2 ring-primary ring-offset-2";
453
443
  let j;
454
- e[25] !== i || e[26] !== O || e[27] !== u || e[28] !== q || e[29] !== A || e[30] !== M || e[31] !== P ? (j = /* @__PURE__ */ g.jsxs(Je, { disabled: i, open: u, onOpenChange: O, value: M, onValueChange: P, children: [
455
- q,
456
- A
457
- ] }), e[25] = i, e[26] = O, e[27] = u, e[28] = q, e[29] = A, e[30] = M, e[31] = P, e[32] = j) : j = e[32];
444
+ e[8] !== M || e[9] !== ae || e[10] !== se ? (j = Ee("transition-colors hover:bg-accent hover:text-accent-foreground", ae, se, "[&_[data-slot='description']]:hidden", M), e[8] = M, e[9] = ae, e[10] = se, e[11] = j) : j = e[11];
445
+ let I;
446
+ e[12] !== v ? (I = /* @__PURE__ */ g.jsx(_e, { placeholder: v }), e[12] = v, e[13] = I) : I = e[13];
447
+ let N;
448
+ e[14] !== b || e[15] !== I || e[16] !== U || e[17] !== j || e[18] !== k ? (N = /* @__PURE__ */ g.jsx(Ge, { id: b, "data-testid": k, "data-hydrated": U, className: j, children: I }), e[14] = b, e[15] = I, e[16] = U, e[17] = j, e[18] = k, e[19] = N) : N = e[19];
449
+ let E;
450
+ e[20] !== r ? (E = r.map(ot), e[20] = r, e[21] = E) : E = e[21];
458
451
  let L;
459
- return e[33] !== j || e[34] !== T ? (L = /* @__PURE__ */ g.jsx("div", { "data-slot": "hours-picker-field", className: T, children: j }), e[33] = j, e[34] = T, e[35] = L) : L = e[35], L;
452
+ e[22] !== V || e[23] !== E ? (L = /* @__PURE__ */ g.jsx(Xe, { "data-testid": V, autoScroll: "firstEnabledWithContext", className: "max-h-64 overflow-y-auto", children: E }), e[22] = V, e[23] = E, e[24] = L) : L = e[24];
453
+ let O;
454
+ e[25] !== i || e[26] !== A || e[27] !== f || e[28] !== N || e[29] !== L || e[30] !== P || e[31] !== F ? (O = /* @__PURE__ */ g.jsxs(Je, { disabled: i, open: f, onOpenChange: A, value: P, onValueChange: F, children: [
455
+ N,
456
+ L
457
+ ] }), e[25] = i, e[26] = A, e[27] = f, e[28] = N, e[29] = L, e[30] = P, e[31] = F, e[32] = O) : O = e[32];
458
+ let z;
459
+ return e[33] !== O || e[34] !== T ? (z = /* @__PURE__ */ g.jsx("div", { "data-slot": "hours-picker-field", className: T, children: O }), e[33] = O, e[34] = T, e[35] = z) : z = e[35], z;
460
460
  }
461
461
  function ot(o) {
462
462
  return /* @__PURE__ */ g.jsxs(Ye, { value: o.value, disabled: o.disabled, children: [
@@ -467,210 +467,224 @@ function ot(o) {
467
467
  function lt(o) {
468
468
  const e = Ie.c(4);
469
469
  if (Qe()) {
470
- let n;
471
- return e[0] !== o ? (n = /* @__PURE__ */ g.jsx(rt, { ...o }), e[0] = o, e[1] = n) : n = e[1], n;
470
+ let t;
471
+ return e[0] !== o ? (t = /* @__PURE__ */ g.jsx(rt, { ...o }), e[0] = o, e[1] = t) : t = e[1], t;
472
472
  }
473
473
  let a;
474
474
  return e[2] !== o ? (a = /* @__PURE__ */ g.jsx(Fe, { ...o }), e[2] = o, e[3] = a) : a = e[3], a;
475
475
  }
476
476
  lt.displayName = "HourPickerField";
477
477
  function st(o) {
478
- const e = Ie.c(87), {
478
+ const e = Ie.c(93), {
479
479
  id: b,
480
480
  placeholder: a,
481
- value: n,
481
+ value: t,
482
482
  onValueUpdate: x,
483
483
  onCommit: r,
484
- options: c,
485
- disabled: m,
486
- readOnly: I,
484
+ options: u,
485
+ disabled: p,
486
+ readOnly: M,
487
487
  open: i,
488
- setOpen: u,
489
- inputClassName: O,
488
+ setOpen: f,
489
+ inputClassName: A,
490
490
  triggerTestId: k,
491
491
  isHydrated: V,
492
492
  highlightedValueRef: H,
493
493
  setHighlightedValue: v,
494
- markKeyboardNavigation: D,
495
- inputRef: B,
494
+ markKeyboardNavigation: S,
495
+ inputRef: $,
496
496
  onDraftValueHandlerChange: T
497
- } = o, M = p.useRef(!1), P = p.useRef(!1), U = p.useRef(!1), ie = p.useRef(null);
498
- let _;
499
- e[0] !== n ? (_ = () => n || "", e[0] = n, e[1] = _) : _ = e[1];
500
- const [S, y] = p.useState(_);
501
- let q, z;
502
- e[2] !== T ? (q = () => (T((l) => {
503
- y(l);
497
+ } = o, P = c.useRef(!1), F = c.useRef(!1), U = c.useRef(!1), ae = c.useRef(null), se = c.useRef(null), j = c.useRef(!1);
498
+ let I;
499
+ e[0] !== t ? (I = () => t || "", e[0] = t, e[1] = I) : I = e[1];
500
+ const [N, E] = c.useState(I);
501
+ let L, O;
502
+ e[2] !== T ? (L = () => (T((l) => {
503
+ E(l);
504
504
  }), () => {
505
505
  T(null);
506
- }), z = [T], e[2] = T, e[3] = q, e[4] = z) : (q = e[3], z = e[4]), p.useEffect(q, z);
507
- let A;
508
- e[5] !== H || e[6] !== x || e[7] !== c || e[8] !== v || e[9] !== n ? (A = (l) => {
509
- const d = H.current ?? n ?? "";
510
- let N = c.findIndex((E) => E.value === d);
511
- N === -1 && (N = l === 1 ? -1 : c.length);
512
- for (let E = N + l; E >= 0 && E < c.length; E = E + l, E) {
513
- const R = c[E];
514
- if (se(R)) {
515
- v(R.value), ie.current = R.value, y(R.value), x(R.value);
506
+ }), O = [T], e[2] = T, e[3] = L, e[4] = O) : (L = e[3], O = e[4]), c.useEffect(L, O);
507
+ let z;
508
+ e[5] !== H || e[6] !== x || e[7] !== u || e[8] !== v || e[9] !== t ? (z = (l) => {
509
+ const m = H.current ?? t ?? "";
510
+ let y = u.findIndex((D) => D.value === m);
511
+ y === -1 && (y = l === 1 ? -1 : u.length);
512
+ for (let D = y + l; D >= 0 && D < u.length; D = D + l, D) {
513
+ const R = u[D];
514
+ if (ue(R)) {
515
+ v(R.value), ae.current = R.value, E(R.value), x(R.value);
516
516
  return;
517
517
  }
518
518
  }
519
- }, e[5] = H, e[6] = x, e[7] = c, e[8] = v, e[9] = n, e[10] = A) : A = e[10];
520
- const j = A;
521
- let L, K;
522
- e[11] !== n ? (L = () => {
523
- M.current || y(n || "");
524
- }, K = [n], e[11] = n, e[12] = L, e[13] = K) : (L = e[12], K = e[13]), p.useEffect(L, K);
525
- const we = !S && "text-muted-foreground", ye = i && "ring-2 ring-primary ring-offset-2";
526
- let s;
527
- e[14] !== O || e[15] !== we || e[16] !== ye ? (s = xe("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", we, ye, "[&_[data-slot='description']]:hidden", O), e[14] = O, e[15] = we, e[16] = ye, e[17] = s) : s = e[17];
528
- const C = s, me = V ? "true" : void 0;
529
- let ce;
530
- e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = [{
519
+ }, e[5] = H, e[6] = x, e[7] = u, e[8] = v, e[9] = t, e[10] = z) : z = e[10];
520
+ const Y = z;
521
+ let we, ye;
522
+ e[11] !== t ? (we = () => {
523
+ P.current || E(t || "");
524
+ }, ye = [t], e[11] = t, e[12] = we, e[13] = ye) : (we = e[12], ye = e[13]), c.useEffect(we, ye);
525
+ let s, C;
526
+ e[14] !== N ? (s = () => {
527
+ se.current = N;
528
+ }, C = [N], e[14] = N, e[15] = s, e[16] = C) : (s = e[15], C = e[16]), c.useEffect(s, C);
529
+ let fe, de;
530
+ e[17] !== t ? (de = () => {
531
+ t === null && (j.current = !1);
532
+ }, fe = [t], e[17] = t, e[18] = fe, e[19] = de) : (fe = e[18], de = e[19]), c.useEffect(de, fe);
533
+ const ke = !N && "text-muted-foreground", _ = i && "ring-2 ring-primary ring-offset-2";
534
+ let me;
535
+ e[20] !== A || e[21] !== ke || e[22] !== _ ? (me = Ee("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 pr-10 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "transition-colors group-hover:bg-accent group-hover:text-accent-foreground", ke, _, "[&_[data-slot='description']]:hidden", A), e[20] = A, e[21] = ke, e[22] = _, e[23] = me) : me = e[23];
536
+ const Ve = me, Te = V ? "true" : void 0;
537
+ let pe;
538
+ e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = [{
531
539
  mask: "00:00",
532
540
  lazy: !0
533
541
  }, {
534
542
  mask: "0:00",
535
543
  lazy: !0
536
- }], e[18] = ce) : ce = e[18];
544
+ }], e[24] = pe) : pe = e[24];
537
545
  let G;
538
- e[19] !== c ? (G = (l, d) => {
539
- const N = (d.value + l).replace(/\D/g, "");
540
- if (N.length <= 2 || N.length >= 4)
541
- return d.compiledMasks[0];
542
- const E = Me(Number(N.slice(0, 2)));
543
- return c.some((re) => re.value.startsWith(`${E}:`)) ? d.compiledMasks[0] : d.compiledMasks[1];
544
- }, e[19] = c, e[20] = G) : G = e[20];
545
- let $;
546
- e[21] !== r || e[22] !== n ? ($ = (l) => {
547
- const d = typeof l == "string" ? l : String(l ?? "");
548
- y(d), d.replace(/\D/g, "").length === 0 && n && r(null);
549
- }, e[21] = r, e[22] = n, e[23] = $) : $ = e[23];
546
+ e[25] !== u ? (G = (l, m) => {
547
+ const y = (m.value + l).replace(/\D/g, "");
548
+ if (y.length <= 2 || y.length >= 4)
549
+ return m.compiledMasks[0];
550
+ const D = Re(Number(y.slice(0, 2)));
551
+ return u.some((W) => W.value.startsWith(`${D}:`)) ? m.compiledMasks[0] : m.compiledMasks[1];
552
+ }, e[25] = u, e[26] = G) : G = e[26];
553
+ let ie;
554
+ e[27] !== r || e[28] !== t ? (ie = (l) => {
555
+ const m = typeof l == "string" ? l : String(l ?? "");
556
+ if (se.current !== m) {
557
+ if (se.current = m, E(m), m.replace(/\D/g, "").length !== 0) {
558
+ j.current = !1;
559
+ return;
560
+ }
561
+ t && !j.current && (j.current = !0, r(null));
562
+ }
563
+ }, e[27] = r, e[28] = t, e[29] = ie) : ie = e[29];
550
564
  let X;
551
- e[24] !== r || e[25] !== c || e[26] !== v || e[27] !== n ? (X = (l) => {
552
- const d = typeof l == "string" ? l : String(l ?? "");
553
- if (ie.current === d) {
554
- ie.current = null;
565
+ e[30] !== r || e[31] !== u || e[32] !== v || e[33] !== t ? (X = (l) => {
566
+ const m = typeof l == "string" ? l : String(l ?? "");
567
+ if (ae.current === m) {
568
+ ae.current = null;
555
569
  return;
556
570
  }
557
- const N = Ce(d, c);
558
- if (!N)
571
+ const y = Ce(m, u);
572
+ if (!y)
559
573
  return;
560
- if (N.selectableValue) {
561
- if (v(N.selectableValue), y(N.selectableValue), n === N.selectableValue)
574
+ if (y.selectableValue) {
575
+ if (v(y.selectableValue), E(y.selectableValue), t === y.selectableValue)
562
576
  return;
563
- r(N.selectableValue);
577
+ r(y.selectableValue);
564
578
  return;
565
579
  }
566
- const E = je(N.parsed);
567
- if (E == null)
580
+ const D = Me(y.parsed);
581
+ if (D == null)
568
582
  return;
569
- const R = Oe(E, c);
583
+ const R = Oe(D, u);
570
584
  R && v(R.value);
571
- }, e[24] = r, e[25] = c, e[26] = v, e[27] = n, e[28] = X) : X = e[28];
572
- let he, J, Q;
573
- e[29] !== m || e[30] !== i || e[31] !== u ? (he = () => {
574
- P.current = !0, !m && (i || u(!0));
585
+ }, e[30] = r, e[31] = u, e[32] = v, e[33] = t, e[34] = X) : X = e[34];
586
+ let q, J, Q;
587
+ e[35] !== p || e[36] !== i || e[37] !== f ? (q = () => {
588
+ F.current = !0, !p && (i || f(!0));
575
589
  }, J = (l) => {
576
- P.current = !0, U.current = typeof document < "u" && document.activeElement === l.currentTarget, !m && (i || u(!0));
590
+ F.current = !0, U.current = typeof document < "u" && document.activeElement === l.currentTarget, !p && (i || f(!0));
577
591
  }, Q = () => {
578
- m || i || u(!0);
579
- }, e[29] = m, e[30] = i, e[31] = u, e[32] = he, e[33] = J, e[34] = Q) : (he = e[32], J = e[33], Q = e[34]);
592
+ p || i || f(!0);
593
+ }, e[35] = p, e[36] = i, e[37] = f, e[38] = q, e[39] = J, e[40] = Q) : (q = e[38], J = e[39], Q = e[40]);
580
594
  let Z;
581
- e[35] !== m || e[36] !== S || e[37] !== H || e[38] !== D || e[39] !== j || e[40] !== r || e[41] !== i || e[42] !== c || e[43] !== v || e[44] !== u ? (Z = (l) => {
582
- if (!m) {
595
+ e[41] !== p || e[42] !== N || e[43] !== H || e[44] !== S || e[45] !== Y || e[46] !== r || e[47] !== i || e[48] !== u || e[49] !== v || e[50] !== f ? (Z = (l) => {
596
+ if (!p) {
583
597
  if (l.key === "Tab" && i && !l.defaultPrevented) {
584
- u(!1);
598
+ f(!1);
585
599
  return;
586
600
  }
587
601
  if (l.key === "Escape") {
588
602
  if (!i)
589
603
  return;
590
- l.preventDefault(), u(!1);
604
+ l.preventDefault(), f(!1);
591
605
  return;
592
606
  }
593
- if (!i && !l.defaultPrevented && (l.key.length === 1 || l.key === "Backspace" || l.key === "Delete") && !l.ctrlKey && !l.metaKey && !l.altKey && u(!0), l.key === "ArrowDown" || l.key === "ArrowUp") {
594
- if (D(), l.preventDefault(), !i) {
595
- u(!0);
607
+ if (!i && !l.defaultPrevented && (l.key.length === 1 || l.key === "Backspace" || l.key === "Delete") && !l.ctrlKey && !l.metaKey && !l.altKey && f(!0), l.key === "ArrowDown" || l.key === "ArrowUp") {
608
+ if (S(), l.preventDefault(), !i) {
609
+ f(!0);
596
610
  return;
597
611
  }
598
- j(l.key === "ArrowDown" ? 1 : -1);
612
+ Y(l.key === "ArrowDown" ? 1 : -1);
599
613
  return;
600
614
  }
601
615
  if (l.key === "Enter") {
602
- D();
603
- const d = Ce(S, c);
604
- if (!d) {
605
- if (!i || S.trim() !== "")
616
+ S();
617
+ const m = Ce(N, u);
618
+ if (!m) {
619
+ if (!i || N.trim() !== "")
606
620
  return;
607
- const R = c.find((ke) => ke.value === H.current), re = (se(R) ? R?.value : void 0) ?? c.find(at)?.value;
608
- if (!re)
621
+ const R = u.find((Se) => Se.value === H.current), W = (ue(R) ? R?.value : void 0) ?? u.find(ut)?.value;
622
+ if (!W)
609
623
  return;
610
- l.preventDefault(), v(re), y(re), r(re), u(!1);
624
+ l.preventDefault(), v(W), E(W), r(W), f(!1);
611
625
  return;
612
626
  }
613
- if (d.selectableValue) {
614
- l.preventDefault(), v(d.selectableValue), y(d.selectableValue), r(d.selectableValue), u(!1);
627
+ if (m.selectableValue) {
628
+ l.preventDefault(), v(m.selectableValue), E(m.selectableValue), r(m.selectableValue), f(!1);
615
629
  return;
616
630
  }
617
- const N = je(d.parsed);
618
- if (N == null)
631
+ const y = Me(m.parsed);
632
+ if (y == null)
619
633
  return;
620
- const E = Oe(N, c);
621
- if (!E)
634
+ const D = Oe(y, u);
635
+ if (!D)
622
636
  return;
623
- l.preventDefault(), v(E.value), y(E.value), r(E.value), u(!1);
637
+ l.preventDefault(), v(D.value), E(D.value), r(D.value), f(!1);
624
638
  return;
625
639
  }
626
640
  }
627
- }, e[35] = m, e[36] = S, e[37] = H, e[38] = D, e[39] = j, e[40] = r, e[41] = i, e[42] = c, e[43] = v, e[44] = u, e[45] = Z) : Z = e[45];
628
- let oe;
629
- e[46] !== m || e[47] !== i || e[48] !== u ? (oe = (l) => {
630
- const d = !P.current || !U.current;
631
- if (P.current = !1, U.current = !1, M.current = !0, d) {
632
- const N = l.currentTarget;
633
- requestAnimationFrame(() => N.select());
634
- }
635
- m || i || u(!0);
636
- }, e[46] = m, e[47] = i, e[48] = u, e[49] = oe) : oe = e[49];
641
+ }, e[41] = p, e[42] = N, e[43] = H, e[44] = S, e[45] = Y, e[46] = r, e[47] = i, e[48] = u, e[49] = v, e[50] = f, e[51] = Z) : Z = e[51];
637
642
  let ee;
638
- e[50] !== S || e[51] !== r || e[52] !== c || e[53] !== n ? (ee = () => {
639
- M.current = !1;
640
- const l = S.trim();
643
+ e[52] !== p || e[53] !== i || e[54] !== f ? (ee = (l) => {
644
+ const m = !F.current || !U.current;
645
+ if (F.current = !1, U.current = !1, P.current = !0, m) {
646
+ const y = l.currentTarget;
647
+ requestAnimationFrame(() => y.select());
648
+ }
649
+ p || i || f(!0);
650
+ }, e[52] = p, e[53] = i, e[54] = f, e[55] = ee) : ee = e[55];
651
+ let te;
652
+ e[56] !== N || e[57] !== r || e[58] !== u || e[59] !== t ? (te = () => {
653
+ P.current = !1;
654
+ const l = N.trim();
641
655
  if (!l) {
642
- y(n || "");
656
+ E(t || "");
643
657
  return;
644
658
  }
645
- const d = Ce(l, c);
646
- if (!d) {
647
- y(n || "");
659
+ const m = Ce(l, u);
660
+ if (!m) {
661
+ E(t || "");
648
662
  return;
649
663
  }
650
- if (!d.selectableValue) {
651
- y(n || "");
664
+ if (!m.selectableValue) {
665
+ E(t || "");
652
666
  return;
653
667
  }
654
- y(d.selectableValue), n !== d.selectableValue && r(d.selectableValue);
655
- }, e[50] = S, e[51] = r, e[52] = c, e[53] = n, e[54] = ee) : ee = e[54];
656
- let W;
657
- e[55] !== m || e[56] !== S || e[57] !== b || e[58] !== B || e[59] !== a || e[60] !== I || e[61] !== me || e[62] !== G || e[63] !== $ || e[64] !== X || e[65] !== he || e[66] !== J || e[67] !== Q || e[68] !== Z || e[69] !== oe || e[70] !== ee || e[71] !== C || e[72] !== k ? (W = /* @__PURE__ */ g.jsx(We, { id: b, "data-testid": k, "data-hydrated": me, type: "text", disabled: m, readOnly: I, inputRef: B, autoComplete: "off", mask: ce, dispatch: G, placeholder: a, value: S, className: C, onAccept: $, onComplete: X, onPointerDown: he, onMouseDown: J, onClick: Q, onKeyDown: Z, onFocus: oe, onBlur: ee }), e[55] = m, e[56] = S, e[57] = b, e[58] = B, e[59] = a, e[60] = I, e[61] = me, e[62] = G, e[63] = $, e[64] = X, e[65] = he, e[66] = J, e[67] = Q, e[68] = Z, e[69] = oe, e[70] = ee, e[71] = C, e[72] = k, e[73] = W) : W = e[73];
658
- let ae;
659
- e[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ae = xe("absolute right-1 top-1/2 inline-flex size-8 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"), e[74] = ae) : ae = e[74];
660
- const ge = i ? "Close time picker" : "Open time picker";
661
- let te;
662
- e[75] !== m || e[76] !== i || e[77] !== u ? (te = () => {
663
- m || u(!i);
664
- }, e[75] = m, e[76] = i, e[77] = u, e[78] = te) : te = e[78];
665
- let ue;
666
- e[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ g.jsx(Ae, { "aria-hidden": !0, className: "size-4" }), e[79] = ue) : ue = e[79];
668
+ E(m.selectableValue), t !== m.selectableValue && r(m.selectableValue);
669
+ }, e[56] = N, e[57] = r, e[58] = u, e[59] = t, e[60] = te) : te = e[60];
667
670
  let ne;
668
- e[80] !== m || e[81] !== ge || e[82] !== te ? (ne = /* @__PURE__ */ g.jsx("button", { type: "button", tabIndex: -1, disabled: m, "data-slot": "hours-picker-input-toggle", className: ae, "aria-label": ge, onPointerDown: ct, onMouseDown: it, onClick: te, children: ue }), e[80] = m, e[81] = ge, e[82] = te, e[83] = ne) : ne = e[83];
669
- let fe;
670
- return e[84] !== W || e[85] !== ne ? (fe = /* @__PURE__ */ g.jsxs("div", { className: "relative group", children: [
671
- W,
672
- ne
673
- ] }), e[84] = W, e[85] = ne, e[86] = fe) : fe = e[86], fe;
671
+ e[61] !== p || e[62] !== N || e[63] !== b || e[64] !== $ || e[65] !== a || e[66] !== M || e[67] !== Te || e[68] !== G || e[69] !== ie || e[70] !== X || e[71] !== q || e[72] !== J || e[73] !== Q || e[74] !== Z || e[75] !== ee || e[76] !== te || e[77] !== Ve || e[78] !== k ? (ne = /* @__PURE__ */ g.jsx(We, { id: b, "data-testid": k, "data-hydrated": Te, type: "text", disabled: p, readOnly: M, inputRef: $, autoComplete: "off", mask: pe, dispatch: G, placeholder: a, value: N, className: Ve, onAccept: ie, onComplete: X, onPointerDown: q, onMouseDown: J, onClick: Q, onKeyDown: Z, onFocus: ee, onBlur: te }), e[61] = p, e[62] = N, e[63] = b, e[64] = $, e[65] = a, e[66] = M, e[67] = Te, e[68] = G, e[69] = ie, e[70] = X, e[71] = q, e[72] = J, e[73] = Q, e[74] = Z, e[75] = ee, e[76] = te, e[77] = Ve, e[78] = k, e[79] = ne) : ne = e[79];
672
+ let he;
673
+ e[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = Ee("absolute right-1 top-1/2 inline-flex size-8 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"), e[80] = he) : he = e[80];
674
+ const re = i ? "Close time picker" : "Open time picker";
675
+ let oe;
676
+ e[81] !== p || e[82] !== i || e[83] !== f ? (oe = () => {
677
+ p || f(!i);
678
+ }, e[81] = p, e[82] = i, e[83] = f, e[84] = oe) : oe = e[84];
679
+ let ge;
680
+ e[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ g.jsx(Ae, { "aria-hidden": !0, className: "size-4" }), e[85] = ge) : ge = e[85];
681
+ let le;
682
+ e[86] !== p || e[87] !== re || e[88] !== oe ? (le = /* @__PURE__ */ g.jsx("button", { type: "button", tabIndex: -1, disabled: p, "data-slot": "hours-picker-input-toggle", className: he, "aria-label": re, onPointerDown: ct, onMouseDown: it, onClick: oe, children: ge }), e[86] = p, e[87] = re, e[88] = oe, e[89] = le) : le = e[89];
683
+ let ve;
684
+ return e[90] !== ne || e[91] !== le ? (ve = /* @__PURE__ */ g.jsxs("div", { className: "relative group", children: [
685
+ ne,
686
+ le
687
+ ] }), e[90] = ne, e[91] = le, e[92] = ve) : ve = e[92], ve;
674
688
  }
675
689
  function it(o) {
676
690
  o.preventDefault();
@@ -678,8 +692,8 @@ function it(o) {
678
692
  function ct(o) {
679
693
  o.preventDefault();
680
694
  }
681
- function at(o) {
682
- return se(o);
695
+ function ut(o) {
696
+ return ue(o);
683
697
  }
684
698
  export {
685
699
  lt as HourPickerField,