@rpcbase/ui 0.197.0 → 0.198.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 (188) hide show
  1. package/dist/index151.js +1 -1
  2. package/dist/index152.js +605 -5
  3. package/dist/index152.js.map +1 -1
  4. package/dist/index153.js +5 -68
  5. package/dist/index153.js.map +1 -1
  6. package/dist/index154.js +69 -2
  7. package/dist/index154.js.map +1 -1
  8. package/dist/index155.js +2 -364
  9. package/dist/index155.js.map +1 -1
  10. package/dist/index156.js +303 -201
  11. package/dist/index156.js.map +1 -1
  12. package/dist/index157.js +247 -46
  13. package/dist/index157.js.map +1 -1
  14. package/dist/index158.js +56 -42
  15. package/dist/index158.js.map +1 -1
  16. package/dist/index159.js +46 -169
  17. package/dist/index159.js.map +1 -1
  18. package/dist/index160.js +156 -96
  19. package/dist/index160.js.map +1 -1
  20. package/dist/index161.js +109 -24
  21. package/dist/index161.js.map +1 -1
  22. package/dist/index162.js +25 -8
  23. package/dist/index162.js.map +1 -1
  24. package/dist/index163.js +8 -5
  25. package/dist/index163.js.map +1 -1
  26. package/dist/index164.js +4 -5
  27. package/dist/index164.js.map +1 -1
  28. package/dist/index165.js +5 -4
  29. package/dist/index165.js.map +1 -1
  30. package/dist/index166.js +4 -466
  31. package/dist/index166.js.map +1 -1
  32. package/dist/index167.js +420 -139
  33. package/dist/index167.js.map +1 -1
  34. package/dist/index168.js +149 -71
  35. package/dist/index168.js.map +1 -1
  36. package/dist/index169.js +74 -229
  37. package/dist/index169.js.map +1 -1
  38. package/dist/index170.js +262 -9
  39. package/dist/index170.js.map +1 -1
  40. package/dist/index171.js +9 -42
  41. package/dist/index171.js.map +1 -1
  42. package/dist/index172.js +42 -4
  43. package/dist/index172.js.map +1 -1
  44. package/dist/index173.js +4 -46
  45. package/dist/index173.js.map +1 -1
  46. package/dist/index174.js +41 -200
  47. package/dist/index174.js.map +1 -1
  48. package/dist/index175.js +204 -20
  49. package/dist/index175.js.map +1 -1
  50. package/dist/index176.js +22 -25
  51. package/dist/index176.js.map +1 -1
  52. package/dist/index177.js +23 -398
  53. package/dist/index177.js.map +1 -1
  54. package/dist/index178.js +383 -589
  55. package/dist/index178.js.map +1 -1
  56. package/dist/index19.js +185 -183
  57. package/dist/index19.js.map +1 -1
  58. package/dist/index239.js +66 -12
  59. package/dist/index239.js.map +1 -1
  60. package/dist/index24.js +1 -1
  61. package/dist/index240.js +176 -150
  62. package/dist/index240.js.map +1 -1
  63. package/dist/index241.js +43 -27
  64. package/dist/index241.js.map +1 -1
  65. package/dist/index242.js +13 -9
  66. package/dist/index242.js.map +1 -1
  67. package/dist/index243.js +147 -41
  68. package/dist/index243.js.map +1 -1
  69. package/dist/index244.js +29 -10
  70. package/dist/index244.js.map +1 -1
  71. package/dist/index245.js +9 -44
  72. package/dist/index245.js.map +1 -1
  73. package/dist/index246.js +41 -88
  74. package/dist/index246.js.map +1 -1
  75. package/dist/index247.js +10 -85
  76. package/dist/index247.js.map +1 -1
  77. package/dist/index248.js +41 -102
  78. package/dist/index248.js.map +1 -1
  79. package/dist/index249.js +88 -45
  80. package/dist/index249.js.map +1 -1
  81. package/dist/index250.js +85 -10
  82. package/dist/index250.js.map +1 -1
  83. package/dist/index251.js +96 -28
  84. package/dist/index251.js.map +1 -1
  85. package/dist/index252.js +52 -8
  86. package/dist/index252.js.map +1 -1
  87. package/dist/index253.js +10 -115
  88. package/dist/index253.js.map +1 -1
  89. package/dist/index254.js +36 -16
  90. package/dist/index254.js.map +1 -1
  91. package/dist/index255.js +8 -15
  92. package/dist/index255.js.map +1 -1
  93. package/dist/index256.js +116 -3
  94. package/dist/index256.js.map +1 -1
  95. package/dist/index257.js +16 -35
  96. package/dist/index257.js.map +1 -1
  97. package/dist/index258.js +14 -19
  98. package/dist/index258.js.map +1 -1
  99. package/dist/index259.js +3 -9
  100. package/dist/index259.js.map +1 -1
  101. package/dist/index260.js +36 -8
  102. package/dist/index260.js.map +1 -1
  103. package/dist/index261.js +20 -24
  104. package/dist/index261.js.map +1 -1
  105. package/dist/index262.js +10 -29
  106. package/dist/index262.js.map +1 -1
  107. package/dist/index263.js +9 -5
  108. package/dist/index263.js.map +1 -1
  109. package/dist/index264.js +4 -4
  110. package/dist/index266.js +2 -2
  111. package/dist/index267.js +22 -65
  112. package/dist/index267.js.map +1 -1
  113. package/dist/index268.js +27 -179
  114. package/dist/index268.js.map +1 -1
  115. package/dist/index269.js +5 -47
  116. package/dist/index269.js.map +1 -1
  117. package/dist/index273.js +1 -1
  118. package/dist/index277.js +1 -1
  119. package/dist/index278.js +1 -1
  120. package/dist/index299.js +1 -1
  121. package/dist/index31.js +5 -5
  122. package/dist/index36.js +1 -1
  123. package/dist/index37.js +2 -2
  124. package/dist/index40.js +2 -2
  125. package/dist/index41.js +20 -20
  126. package/dist/index45.js +1 -1
  127. package/dist/index46.js +1 -1
  128. package/dist/index49.js +1 -1
  129. package/dist/index50.js +1 -1
  130. package/dist/index51.js +7 -2
  131. package/dist/index51.js.map +1 -1
  132. package/dist/index52.js +34 -2
  133. package/dist/index52.js.map +1 -1
  134. package/dist/index53.js +27 -2
  135. package/dist/index53.js.map +1 -1
  136. package/dist/index54.js +8 -2
  137. package/dist/index54.js.map +1 -1
  138. package/dist/index55.js +11 -6
  139. package/dist/index55.js.map +1 -1
  140. package/dist/index56.js +2 -34
  141. package/dist/index56.js.map +1 -1
  142. package/dist/index57.js +2 -27
  143. package/dist/index57.js.map +1 -1
  144. package/dist/index58.js +205 -8
  145. package/dist/index58.js.map +1 -1
  146. package/dist/index59.js +3 -11
  147. package/dist/index59.js.map +1 -1
  148. package/dist/index60.js +44 -201
  149. package/dist/index60.js.map +1 -1
  150. package/dist/index61.js +50 -3
  151. package/dist/index61.js.map +1 -1
  152. package/dist/index62.js +7 -47
  153. package/dist/index62.js.map +1 -1
  154. package/dist/index63.js +12 -48
  155. package/dist/index63.js.map +1 -1
  156. package/dist/index64.js +133 -7
  157. package/dist/index64.js.map +1 -1
  158. package/dist/index65.js +10 -14
  159. package/dist/index65.js.map +1 -1
  160. package/dist/index66.js +210 -127
  161. package/dist/index66.js.map +1 -1
  162. package/dist/index67.js +12 -10
  163. package/dist/index67.js.map +1 -1
  164. package/dist/index68.js +44 -214
  165. package/dist/index68.js.map +1 -1
  166. package/dist/index69.js +49 -12
  167. package/dist/index69.js.map +1 -1
  168. package/dist/index70.js +4 -47
  169. package/dist/index70.js.map +1 -1
  170. package/dist/index71.js +5 -49
  171. package/dist/index71.js.map +1 -1
  172. package/dist/index72.js +28 -4
  173. package/dist/index72.js.map +1 -1
  174. package/dist/index73.js +50 -6
  175. package/dist/index73.js.map +1 -1
  176. package/dist/index74.js +9 -28
  177. package/dist/index74.js.map +1 -1
  178. package/dist/index75.js +6 -50
  179. package/dist/index75.js.map +1 -1
  180. package/dist/index76.js +8 -9
  181. package/dist/index76.js.map +1 -1
  182. package/dist/index77.js +5 -5
  183. package/dist/index77.js.map +1 -1
  184. package/dist/index78.js +2 -8
  185. package/dist/index78.js.map +1 -1
  186. package/dist/index79.js +2 -6
  187. package/dist/index79.js.map +1 -1
  188. package/package.json +1 -1
package/dist/index19.js CHANGED
@@ -8,7 +8,7 @@ import { IMaskInput as je } from "react-imask";
8
8
  import Ve, { InputMask as Pe } from "imask";
9
9
  import { SelectItem as Oe, SelectValue as Ae, SelectTrigger as Le, SelectContent as Fe, Select as $e } from "./index21.js";
10
10
  import { useIsTouchDevice as Be } from "./index4.js";
11
- import { cn as ne } from "./index2.js";
11
+ import { cn as oe } from "./index2.js";
12
12
  const ke = Ve;
13
13
  typeof ke.InputMask != "function" && (ke.InputMask = Pe);
14
14
  function be(n) {
@@ -83,9 +83,9 @@ function Se({
83
83
  const {
84
84
  scrollTop: M,
85
85
  scrollHeight: P,
86
- clientHeight: w
87
- } = N, y = 2, B = M > y, D = M < P - w - y;
88
- if (!(P > w + y)) {
86
+ clientHeight: x
87
+ } = N, y = 2, B = M > y, D = M < P - x - y;
88
+ if (!(P > x + y)) {
89
89
  j(!0);
90
90
  return;
91
91
  }
@@ -99,14 +99,14 @@ function Se({
99
99
  N.addEventListener("scroll", M, {
100
100
  passive: !0
101
101
  });
102
- const w = new ResizeObserver(P);
103
- w.observe(N);
102
+ const x = new ResizeObserver(P);
103
+ x.observe(N);
104
104
  const y = new MutationObserver(P);
105
105
  return y.observe(N, {
106
106
  childList: !0,
107
107
  subtree: !0
108
108
  }), () => {
109
- N.removeEventListener("scroll", M), w.disconnect(), y.disconnect();
109
+ N.removeEventListener("scroll", M), x.disconnect(), y.disconnect();
110
110
  };
111
111
  }, [e, V]);
112
112
  const m = o.useCallback(() => {
@@ -118,25 +118,25 @@ function Se({
118
118
  return;
119
119
  }
120
120
  c.current || (c.current = N);
121
- const P = N - c.current, w = u * P / 1e3;
122
- if (w < 0.1) {
121
+ const P = N - c.current, x = u * P / 1e3;
122
+ if (x < 0.1) {
123
123
  d.current = requestAnimationFrame(h);
124
124
  return;
125
125
  }
126
126
  const y = M.scrollTop, B = M.scrollHeight - M.clientHeight;
127
127
  let D;
128
- n === "up" ? D = Math.max(0, y - w) : D = Math.min(B, y + w), M.scrollTo({
128
+ n === "up" ? D = Math.max(0, y - x) : D = Math.min(B, y + x), M.scrollTo({
129
129
  top: D
130
130
  }), c.current = N;
131
131
  const z = 1;
132
132
  (n === "up" ? D > z : D < B - z) && Math.abs(D - y) > 0.01 ? d.current = requestAnimationFrame(h) : (m(), setTimeout(V, 16));
133
- }, [V, n, t, u, m, e]), G = o.useCallback(() => {
133
+ }, [V, n, t, u, m, e]), X = o.useCallback(() => {
134
134
  t || !e.current || f.current || (f.current = !0, c.current = void 0, d.current = requestAnimationFrame(h));
135
135
  }, [t, h, e]);
136
- return o.useEffect(() => m, [m]), /* @__PURE__ */ v.jsx("div", { className: ne("flex items-center justify-center py-1 select-none", t ? "cursor-default opacity-40" : "cursor-pointer opacity-100 hover:bg-accent/20", l), onPointerEnter: () => {
137
- t || G();
136
+ return o.useEffect(() => m, [m]), /* @__PURE__ */ v.jsx("div", { className: oe("flex items-center justify-center py-1 select-none", t ? "cursor-default opacity-40" : "cursor-pointer opacity-100 hover:bg-accent/20", l), onPointerEnter: () => {
137
+ t || X();
138
138
  }, onPointerMove: () => {
139
- !t && !f.current && G();
139
+ !t && !f.current && X();
140
140
  }, onPointerLeave: () => {
141
141
  m();
142
142
  }, children: n === "up" ? /* @__PURE__ */ v.jsx(Ie, { "aria-hidden": !0, className: "h-4 w-4 opacity-50" }) : /* @__PURE__ */ v.jsx(De, { "aria-hidden": !0, className: "h-4 w-4 opacity-50" }) });
@@ -154,32 +154,32 @@ function Ee({
154
154
  readOnly: V,
155
155
  open: m,
156
156
  onOpenChange: h,
157
- triggerTestId: G,
157
+ triggerTestId: X,
158
158
  contentTestId: N,
159
159
  isHydrated: M
160
160
  }) {
161
- const P = o.useId(), w = n ?? `hours-picker-${P}`, y = o.useRef(null), B = o.useRef(null), D = o.useCallback((r) => {
161
+ const P = o.useId(), x = n ?? `hours-picker-${P}`, y = o.useRef(null), B = o.useRef(null), D = o.useCallback((r) => {
162
162
  B.current = r;
163
- }, []), z = o.useRef(null), I = o.useRef(!1), [X, ee] = o.useState(null), J = o.useRef(null), A = o.useRef(null), O = o.useRef(null), [T, R] = o.useState(() => ({
163
+ }, []), z = o.useRef(null), I = o.useRef(!1), [J, ee] = o.useState(null), Q = o.useRef(null), A = o.useRef(null), O = o.useRef(null), [T, H] = o.useState(() => ({
164
164
  left: 0,
165
165
  top: 0,
166
166
  width: 0
167
- })), [K, Y] = o.useState(!1), x = m ?? K, L = h ?? Y, te = o.useRef(!1);
168
- te.current = x, o.useEffect(() => {
169
- if (!x || f || V)
167
+ })), [Y, G] = o.useState(!1), b = m ?? Y, L = h ?? G, te = o.useRef(!1);
168
+ te.current = b, o.useEffect(() => {
169
+ if (!b || f || V)
170
170
  return;
171
171
  const r = y.current;
172
172
  r instanceof HTMLInputElement && (typeof document < "u" && document.activeElement === r || r.focus({
173
173
  preventScroll: !0
174
174
  }));
175
- }, [f, x, V]);
175
+ }, [f, b, V]);
176
176
  const W = o.useCallback((r) => {
177
177
  z.current = r, ee(r);
178
- }, []), se = o.useCallback(() => {
178
+ }, []), ie = o.useCallback(() => {
179
179
  I.current = !0;
180
180
  }, []);
181
181
  o.useEffect(() => {
182
- if (!x) return;
182
+ if (!b) return;
183
183
  const r = t.find((a) => a.value === e);
184
184
  if (r && _(r)) {
185
185
  W(r.value);
@@ -187,15 +187,15 @@ function Ee({
187
187
  }
188
188
  const s = t.find((a) => _(a));
189
189
  W(s?.value ?? null);
190
- }, [x, t, W, e]);
191
- const ie = o.useCallback((r) => {
190
+ }, [b, t, W, e]);
191
+ const le = o.useCallback((r) => {
192
192
  if (r === null) {
193
193
  l && l(null);
194
194
  return;
195
195
  }
196
196
  const s = t.find((a) => a.value === r);
197
197
  _(s) && l && l(r);
198
- }, [l, t]), oe = o.useCallback((r) => {
198
+ }, [l, t]), se = o.useCallback((r) => {
199
199
  if (r === null) {
200
200
  l && l(null), u(null);
201
201
  return;
@@ -204,27 +204,27 @@ function Ee({
204
204
  _(s) && (l && l(r), u(r));
205
205
  }, [u, l, t]);
206
206
  o.useEffect(() => {
207
- if (!x) return;
208
- const r = J.current?.ownerDocument ?? document, s = r.defaultView ?? window, a = (k) => {
209
- const S = k.target;
207
+ if (!b) return;
208
+ const r = Q.current?.ownerDocument ?? document, s = r.defaultView ?? window, a = (w) => {
209
+ const S = w.target;
210
210
  if (!(S instanceof Node))
211
211
  return;
212
- const g = J.current;
212
+ const g = Q.current;
213
213
  !g || g.contains(S) || A.current?.contains(S) || L(!1);
214
- }, p = (k) => {
215
- if (k.key !== "Escape" || !te.current)
214
+ }, p = (w) => {
215
+ if (w.key !== "Escape" || !te.current)
216
216
  return;
217
- const S = k.target;
217
+ const S = w.target;
218
218
  if (!(S instanceof Node))
219
219
  return;
220
- const g = J.current, $ = A.current;
221
- !g?.contains(S) && !$?.contains(S) || (k.preventDefault(), k.stopPropagation(), L(!1));
220
+ const g = Q.current, $ = A.current;
221
+ !g?.contains(S) && !$?.contains(S) || (w.preventDefault(), w.stopPropagation(), L(!1));
222
222
  };
223
223
  return r.addEventListener("pointerdown", a, !0), s.addEventListener("keydown", p, !0), () => {
224
224
  r.removeEventListener("pointerdown", a, !0), s.removeEventListener("keydown", p, !0);
225
225
  };
226
- }, [x, L]), o.useEffect(() => {
227
- if (!x)
226
+ }, [b, L]), o.useEffect(() => {
227
+ if (!b)
228
228
  return;
229
229
  const r = A.current;
230
230
  if (!r)
@@ -233,16 +233,16 @@ function Ee({
233
233
  const p = O.current;
234
234
  if (!p)
235
235
  return;
236
- const k = a.deltaY;
237
- if (k === 0)
236
+ const w = a.deltaY;
237
+ if (w === 0)
238
238
  return;
239
239
  const S = Math.max(0, p.scrollHeight - p.clientHeight), g = p.scrollTop <= 0, $ = p.scrollTop >= S, F = a.target;
240
240
  if (F instanceof Node && p.contains(F)) {
241
- (k < 0 && g || k > 0 && $) && a.preventDefault();
241
+ (w < 0 && g || w > 0 && $) && a.preventDefault();
242
242
  return;
243
243
  }
244
244
  a.preventDefault();
245
- const q = Math.min(S, Math.max(0, p.scrollTop + k));
245
+ const q = Math.min(S, Math.max(0, p.scrollTop + w));
246
246
  p.scrollTop = q;
247
247
  };
248
248
  return r.addEventListener("wheel", s, {
@@ -250,8 +250,8 @@ function Ee({
250
250
  }), () => {
251
251
  r.removeEventListener("wheel", s);
252
252
  };
253
- }, [x]), o.useEffect(() => {
254
- if (!x || m !== void 0 && !h || typeof window > "u" || !("IntersectionObserver" in window))
253
+ }, [b]), o.useEffect(() => {
254
+ if (!b || m !== void 0 && !h || typeof window > "u" || !("IntersectionObserver" in window))
255
255
  return;
256
256
  const r = y.current;
257
257
  if (!(r instanceof HTMLElement))
@@ -260,55 +260,55 @@ function Ee({
260
260
  const a = new IntersectionObserver((p) => {
261
261
  if (!s)
262
262
  return;
263
- const k = p[0];
264
- k && !k.isIntersecting && L(!1);
263
+ const w = p[0];
264
+ w && !w.isIntersecting && L(!1);
265
265
  });
266
266
  return a.observe(r), () => {
267
267
  s = !1, a.disconnect();
268
268
  };
269
- }, [h, x, m, L]);
270
- const Q = o.useCallback(() => {
269
+ }, [h, b, m, L]);
270
+ const Z = o.useCallback(() => {
271
271
  if (typeof window > "u") return;
272
272
  const r = y.current, s = A.current;
273
273
  if (!(r instanceof HTMLElement) || !s) return;
274
- const a = r.getBoundingClientRect(), p = s.offsetHeight, k = window.innerWidth ?? 0, S = window.innerHeight ?? 0, g = 8, $ = a.width;
274
+ const a = r.getBoundingClientRect(), p = s.offsetHeight, w = window.innerWidth ?? 0, S = window.innerHeight ?? 0, g = 8, $ = a.width;
275
275
  let F = a.left;
276
- F + $ > k - g && (F = Math.max(g, k - $ - g)), F < g && (F = g);
276
+ F + $ > w - g && (F = Math.max(g, w - $ - g)), F < g && (F = g);
277
277
  let C = a.bottom + g;
278
- const q = C + p > S - g, Z = a.top - p - g;
279
- q && Z >= g && (C = Z), C < g && (C = g), C + p > S - g && (C = Math.max(g, S - p - g)), R({
278
+ const q = C + p > S - g, U = a.top - p - g;
279
+ q && U >= g && (C = U), C < g && (C = g), C + p > S - g && (C = Math.max(g, S - p - g)), H({
280
280
  left: F,
281
281
  top: C,
282
282
  width: $
283
283
  });
284
284
  }, []);
285
285
  return o.useLayoutEffect(() => {
286
- if (!x || f || typeof window > "u") return;
287
- Q();
288
- const r = window.requestAnimationFrame(Q);
289
- return window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q), () => {
290
- window.cancelAnimationFrame(r), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
286
+ if (!b || f || typeof window > "u") return;
287
+ Z();
288
+ const r = window.requestAnimationFrame(Z);
289
+ return window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z), () => {
290
+ window.cancelAnimationFrame(r), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
291
291
  };
292
- }, [f, x, Q]), o.useEffect(() => {
293
- if (!x) return;
292
+ }, [f, b, Z]), o.useEffect(() => {
293
+ if (!b) return;
294
294
  const r = O.current;
295
295
  if (!r) return;
296
296
  const a = requestAnimationFrame(() => {
297
297
  const p = r.querySelector('[role="option"][data-state="checked"]');
298
298
  if (p instanceof HTMLElement) {
299
- const q = p.offsetTop - 8, Z = p.offsetTop + p.offsetHeight + 8;
299
+ const q = p.offsetTop - 8, U = p.offsetTop + p.offsetHeight + 8;
300
300
  if (q < r.scrollTop) {
301
301
  r.scrollTop = Math.max(0, q);
302
302
  return;
303
303
  }
304
- const re = r.scrollTop + r.clientHeight;
305
- Z > re && (r.scrollTop = Math.max(0, Z - r.clientHeight));
304
+ const ne = r.scrollTop + r.clientHeight;
305
+ U > ne && (r.scrollTop = Math.max(0, U - r.clientHeight));
306
306
  return;
307
307
  }
308
- const k = Array.from(r.querySelectorAll('[role="option"]'));
309
- if (!k.length) return;
308
+ const w = Array.from(r.querySelectorAll('[role="option"]'));
309
+ if (!w.length) return;
310
310
  let S, g;
311
- for (const C of k) {
311
+ for (const C of w) {
312
312
  if (!C.hasAttribute("data-disabled")) {
313
313
  S = C;
314
314
  break;
@@ -320,25 +320,25 @@ function Ee({
320
320
  r.scrollTop = F;
321
321
  });
322
322
  return () => cancelAnimationFrame(a);
323
- }, [x, t]), o.useEffect(() => {
324
- if (!x || !X || !I.current) return;
323
+ }, [b, t]), o.useEffect(() => {
324
+ if (!b || !J || !I.current) return;
325
325
  const r = O.current;
326
326
  if (!r) return;
327
- const s = r.querySelector(`[role="option"][data-value="${X}"]`);
327
+ const s = r.querySelector(`[role="option"][data-value="${J}"]`);
328
328
  if (!(s instanceof HTMLElement)) return;
329
- const a = 8, p = s.offsetTop - a, k = s.offsetTop + s.offsetHeight + a;
329
+ const a = 8, p = s.offsetTop - a, w = s.offsetTop + s.offsetHeight + a;
330
330
  if (p < r.scrollTop) {
331
331
  r.scrollTop = Math.max(0, p);
332
332
  return;
333
333
  }
334
334
  const S = r.scrollTop + r.clientHeight;
335
- k > S && (r.scrollTop = Math.max(0, k - r.clientHeight));
336
- }, [X, x]), /* @__PURE__ */ v.jsx("div", { "data-slot": "hours-picker-input", className: ne("w-[150px]", d), ref: J, children: /* @__PURE__ */ v.jsxs("div", { className: "relative", children: [
337
- /* @__PURE__ */ v.jsx(Ke, { id: w, placeholder: j, value: e, onValueUpdate: ie, onCommit: oe, options: t, disabled: f, readOnly: V, open: x, setOpen: L, inputClassName: c, triggerTestId: G, isHydrated: M, highlightedValueRef: z, setHighlightedValue: W, markKeyboardNavigation: se, inputRef: (r) => {
335
+ w > S && (r.scrollTop = Math.max(0, w - r.clientHeight));
336
+ }, [J, b]), /* @__PURE__ */ v.jsx("div", { "data-slot": "hours-picker-input", className: oe("w-[150px]", d), ref: Q, children: /* @__PURE__ */ v.jsxs("div", { className: "relative", children: [
337
+ /* @__PURE__ */ v.jsx(Ke, { id: x, placeholder: j, value: e, onValueUpdate: le, onCommit: se, options: t, disabled: f, readOnly: V, open: b, setOpen: L, inputClassName: c, triggerTestId: X, isHydrated: M, highlightedValueRef: z, setHighlightedValue: W, markKeyboardNavigation: ie, inputRef: (r) => {
338
338
  y.current = r;
339
339
  }, onDraftValueHandlerChange: D }),
340
- x ? (() => {
341
- const r = /* @__PURE__ */ v.jsx(Ce, { children: /* @__PURE__ */ v.jsxs("div", { ref: A, "data-testid": N, "data-state": "open", className: ne("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: {
340
+ b ? (() => {
341
+ const r = /* @__PURE__ */ v.jsx(Ce, { children: /* @__PURE__ */ v.jsxs("div", { ref: A, "data-testid": N, "data-state": "open", className: oe("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: {
342
342
  left: T.left,
343
343
  top: T.top,
344
344
  width: T.width
@@ -346,12 +346,12 @@ function Ee({
346
346
  /* @__PURE__ */ v.jsx(Se, { direction: "up", viewportRef: O }),
347
347
  /* @__PURE__ */ v.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: t.map((s) => {
348
348
  const a = s.value === e;
349
- return /* @__PURE__ */ v.jsxs("div", { role: "option", "aria-selected": a, "data-value": s.value, "data-state": a ? "checked" : "unchecked", "data-disabled": s.disabled ? "" : void 0, className: ne("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none cursor-pointer", s.disabled && "pointer-events-none opacity-50", X === s.value && "bg-accent text-accent-foreground"), onMouseDown: (p) => {
349
+ return /* @__PURE__ */ v.jsxs("div", { role: "option", "aria-selected": a, "data-value": s.value, "data-state": a ? "checked" : "unchecked", "data-disabled": s.disabled ? "" : void 0, className: oe("relative flex w-full select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none cursor-pointer", s.disabled && "pointer-events-none opacity-50", J === s.value && "bg-accent text-accent-foreground"), onMouseDown: (p) => {
350
350
  p.preventDefault();
351
351
  }, onClick: () => {
352
352
  s.disabled || (B.current?.(s.value), W(s.value), y.current?.focus({
353
353
  preventScroll: !0
354
- }), oe(s.value), L(!1));
354
+ }), se(s.value), L(!1));
355
355
  }, onPointerEnter: () => {
356
356
  I.current || (I.current = !1, W(s.value));
357
357
  }, onPointerMove: (p) => {
@@ -383,11 +383,11 @@ function ze(n) {
383
383
  inputClassName: V,
384
384
  disabled: m,
385
385
  open: h,
386
- onOpenChange: G,
386
+ onOpenChange: X,
387
387
  triggerTestId: N,
388
388
  contentTestId: M,
389
389
  isHydrated: P
390
- } = n, w = c === void 0 ? "Select time" : c;
390
+ } = n, x = c === void 0 ? "Select time" : c;
391
391
  let y;
392
392
  e[0] !== t || e[1] !== j || e[2] !== d ? (y = (L) => {
393
393
  const te = d.find((W) => W.value === L);
@@ -395,28 +395,28 @@ function ze(n) {
395
395
  }, e[0] = t, e[1] = j, e[2] = d, e[3] = y) : y = e[3];
396
396
  const B = y;
397
397
  let D;
398
- e[4] !== f ? (D = ne("w-[150px]", f), e[4] = f, e[5] = D) : D = e[5];
398
+ e[4] !== f ? (D = oe("w-[150px]", f), e[4] = f, e[5] = D) : D = e[5];
399
399
  const z = l ?? "";
400
400
  let I;
401
401
  e[6] !== B ? (I = (L) => B(L), e[6] = B, e[7] = I) : I = e[7];
402
- const X = P ? "true" : void 0, ee = !l && "text-muted-foreground", J = h && "ring-2 ring-primary ring-offset-2";
402
+ const J = P ? "true" : void 0, ee = !l && "text-muted-foreground", Q = h && "ring-2 ring-primary ring-offset-2";
403
403
  let A;
404
- e[8] !== V || e[9] !== ee || e[10] !== J ? (A = ne("transition-colors hover:bg-accent hover:text-accent-foreground", ee, J, "[&_[data-slot='description']]:hidden", V), e[8] = V, e[9] = ee, e[10] = J, e[11] = A) : A = e[11];
404
+ e[8] !== V || e[9] !== ee || e[10] !== Q ? (A = oe("transition-colors hover:bg-accent hover:text-accent-foreground", ee, Q, "[&_[data-slot='description']]:hidden", V), e[8] = V, e[9] = ee, e[10] = Q, e[11] = A) : A = e[11];
405
405
  let O;
406
- e[12] !== w ? (O = /* @__PURE__ */ v.jsx(Ae, { placeholder: w }), e[12] = w, e[13] = O) : O = e[13];
406
+ e[12] !== x ? (O = /* @__PURE__ */ v.jsx(Ae, { placeholder: x }), e[12] = x, e[13] = O) : O = e[13];
407
407
  let T;
408
- e[14] !== u || e[15] !== O || e[16] !== X || e[17] !== A || e[18] !== N ? (T = /* @__PURE__ */ v.jsx(Le, { id: u, "data-testid": N, "data-hydrated": X, className: A, children: O }), e[14] = u, e[15] = O, e[16] = X, e[17] = A, e[18] = N, e[19] = T) : T = e[19];
409
- let R;
410
- e[20] !== d ? (R = d.map(We), e[20] = d, e[21] = R) : R = e[21];
411
- let K;
412
- e[22] !== M || e[23] !== R ? (K = /* @__PURE__ */ v.jsx(Fe, { "data-testid": M, autoScroll: "firstEnabledWithContext", className: "max-h-64 overflow-y-auto", children: R }), e[22] = M, e[23] = R, e[24] = K) : K = e[24];
408
+ e[14] !== u || e[15] !== O || e[16] !== J || e[17] !== A || e[18] !== N ? (T = /* @__PURE__ */ v.jsx(Le, { id: u, "data-testid": N, "data-hydrated": J, className: A, children: O }), e[14] = u, e[15] = O, e[16] = J, e[17] = A, e[18] = N, e[19] = T) : T = e[19];
409
+ let H;
410
+ e[20] !== d ? (H = d.map(We), e[20] = d, e[21] = H) : H = e[21];
413
411
  let Y;
414
- e[25] !== m || e[26] !== G || e[27] !== h || e[28] !== T || e[29] !== K || e[30] !== z || e[31] !== I ? (Y = /* @__PURE__ */ v.jsxs($e, { disabled: m, open: h, onOpenChange: G, value: z, onValueChange: I, children: [
412
+ e[22] !== M || e[23] !== H ? (Y = /* @__PURE__ */ v.jsx(Fe, { "data-testid": M, autoScroll: "firstEnabledWithContext", className: "max-h-64 overflow-y-auto", children: H }), e[22] = M, e[23] = H, e[24] = Y) : Y = e[24];
413
+ let G;
414
+ e[25] !== m || e[26] !== X || e[27] !== h || e[28] !== T || e[29] !== Y || e[30] !== z || e[31] !== I ? (G = /* @__PURE__ */ v.jsxs($e, { disabled: m, open: h, onOpenChange: X, value: z, onValueChange: I, children: [
415
415
  T,
416
- K
417
- ] }), e[25] = m, e[26] = G, e[27] = h, e[28] = T, e[29] = K, e[30] = z, e[31] = I, e[32] = Y) : Y = e[32];
418
- let x;
419
- return e[33] !== Y || e[34] !== D ? (x = /* @__PURE__ */ v.jsx("div", { "data-slot": "hours-picker-field", className: D, children: Y }), e[33] = Y, e[34] = D, e[35] = x) : x = e[35], x;
416
+ Y
417
+ ] }), e[25] = m, e[26] = X, e[27] = h, e[28] = T, e[29] = Y, e[30] = z, e[31] = I, e[32] = G) : G = e[32];
418
+ let b;
419
+ return e[33] !== G || e[34] !== D ? (b = /* @__PURE__ */ v.jsx("div", { "data-slot": "hours-picker-field", className: D, children: G }), e[33] = G, e[34] = D, e[35] = b) : b = e[35], b;
420
420
  }
421
421
  function We(n) {
422
422
  return /* @__PURE__ */ v.jsxs(Oe, { value: n.value, disabled: n.disabled, children: [
@@ -446,54 +446,54 @@ function Ke(n) {
446
446
  readOnly: V,
447
447
  open: m,
448
448
  setOpen: h,
449
- inputClassName: G,
449
+ inputClassName: X,
450
450
  triggerTestId: N,
451
451
  isHydrated: M,
452
452
  highlightedValueRef: P,
453
- setHighlightedValue: w,
453
+ setHighlightedValue: x,
454
454
  markKeyboardNavigation: y,
455
455
  inputRef: B,
456
456
  onDraftValueHandlerChange: D
457
- } = n, z = o.useRef(!1), I = o.useRef(!1), X = o.useRef(!1), ee = o.useRef(null), J = o.useRef(null), A = o.useRef(!1);
457
+ } = n, z = o.useRef(!1), I = o.useRef(!1), J = o.useRef(!1), ee = o.useRef(null), Q = o.useRef(null), A = o.useRef(!1);
458
458
  let O;
459
459
  e[0] !== t ? (O = () => t || "", e[0] = t, e[1] = O) : O = e[1];
460
- const [T, R] = o.useState(O);
461
- let K, Y;
462
- e[2] !== D ? (K = () => (D((i) => {
463
- R(i);
460
+ const [T, H] = o.useState(O);
461
+ let Y, G;
462
+ e[2] !== D ? (Y = () => (D((i) => {
463
+ H(i);
464
464
  }), () => {
465
465
  D(null);
466
- }), Y = [D], e[2] = D, e[3] = K, e[4] = Y) : (K = e[3], Y = e[4]), o.useEffect(K, Y);
467
- let x;
468
- e[5] !== P || e[6] !== j || e[7] !== c || e[8] !== w || e[9] !== t ? (x = (i) => {
469
- const b = P.current ?? t ?? "";
470
- let E = c.findIndex((H) => H.value === b);
466
+ }), G = [D], e[2] = D, e[3] = Y, e[4] = G) : (Y = e[3], G = e[4]), o.useEffect(Y, G);
467
+ let b;
468
+ e[5] !== P || e[6] !== j || e[7] !== c || e[8] !== x || e[9] !== t ? (b = (i) => {
469
+ const k = P.current ?? t ?? "";
470
+ let E = c.findIndex((R) => R.value === k);
471
471
  E === -1 && (E = i === 1 ? -1 : c.length);
472
- for (let H = E + i; H >= 0 && H < c.length; H = H + i, H) {
473
- const U = c[H];
474
- if (_(U)) {
475
- w(U.value), ee.current = U.value, R(U.value), j(U.value);
472
+ for (let R = E + i; R >= 0 && R < c.length; R = R + i, R) {
473
+ const K = c[R];
474
+ if (_(K)) {
475
+ x(K.value), ee.current = K.value, H(K.value), j(K.value);
476
476
  return;
477
477
  }
478
478
  }
479
- }, e[5] = P, e[6] = j, e[7] = c, e[8] = w, e[9] = t, e[10] = x) : x = e[10];
480
- const L = x;
479
+ }, e[5] = P, e[6] = j, e[7] = c, e[8] = x, e[9] = t, e[10] = b) : b = e[10];
480
+ const L = b;
481
481
  let te, W;
482
482
  e[11] !== t ? (te = () => {
483
- z.current || R(t || "");
483
+ z.current || H(t || "");
484
484
  }, W = [t], e[11] = t, e[12] = te, e[13] = W) : (te = e[12], W = e[13]), o.useEffect(te, W);
485
- let se, ie;
486
- e[14] !== T ? (se = () => {
487
- J.current = ye(T);
488
- }, ie = [T], e[14] = T, e[15] = se, e[16] = ie) : (se = e[15], ie = e[16]), o.useEffect(se, ie);
489
- let oe, Q;
490
- e[17] !== t ? (Q = () => {
485
+ let ie, le;
486
+ e[14] !== T ? (ie = () => {
487
+ Q.current = ye(T);
488
+ }, le = [T], e[14] = T, e[15] = ie, e[16] = le) : (ie = e[15], le = e[16]), o.useEffect(ie, le);
489
+ let se, Z;
490
+ e[17] !== t ? (Z = () => {
491
491
  t === null && (A.current = !1);
492
- }, oe = [t], e[17] = t, e[18] = oe, e[19] = Q) : (oe = e[18], Q = e[19]), o.useEffect(Q, oe);
492
+ }, se = [t], e[17] = t, e[18] = se, e[19] = Z) : (se = e[18], Z = e[19]), o.useEffect(Z, se);
493
493
  const r = !T && "text-muted-foreground", s = m && "ring-2 ring-primary ring-offset-2";
494
494
  let a;
495
- e[20] !== G || e[21] !== r || e[22] !== s ? (a = ne("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", r, s, "[&_[data-slot='description']]:hidden", G), e[20] = G, e[21] = r, e[22] = s, e[23] = a) : a = e[23];
496
- const p = a, k = M ? "true" : void 0;
495
+ e[20] !== X || e[21] !== r || e[22] !== s ? (a = oe("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", r, s, "[&_[data-slot='description']]:hidden", X), e[20] = X, e[21] = r, e[22] = s, e[23] = a) : a = e[23];
496
+ const p = a, w = M ? "true" : void 0;
497
497
  let S;
498
498
  e[24] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = [{
499
499
  mask: "00:00",
@@ -503,18 +503,20 @@ function Ke(n) {
503
503
  lazy: !0
504
504
  }], e[24] = S) : S = e[24];
505
505
  let g;
506
- e[25] !== c ? (g = (i, b) => {
507
- const E = (b.value + i).replace(/\D/g, "");
506
+ e[25] !== c ? (g = (i, k) => {
507
+ const E = (k.value + i).replace(/\D/g, "");
508
508
  if (E.length <= 2 || E.length >= 4)
509
- return b.compiledMasks[0];
510
- const H = be(Number(E.slice(0, 2)));
511
- return c.some((de) => de.value.startsWith(`${H}:`)) ? b.compiledMasks[0] : b.compiledMasks[1];
509
+ return k.compiledMasks[0];
510
+ const R = be(Number(E.slice(0, 2)));
511
+ return c.some((re) => re.value.startsWith(`${R}:`)) ? k.compiledMasks[0] : k.compiledMasks[1];
512
512
  }, e[25] = c, e[26] = g) : g = e[26];
513
513
  let $;
514
- e[27] !== d || e[28] !== t ? ($ = (i) => {
515
- const b = typeof i == "string" ? i : String(i ?? ""), E = b.replace(/\D/g, ""), H = ye(b);
516
- if (J.current !== H) {
517
- if (J.current = H, R(b), E.length !== 0) {
514
+ e[27] !== d || e[28] !== t ? ($ = (i, k, E) => {
515
+ if (!E)
516
+ return;
517
+ const R = typeof i == "string" ? i : String(i ?? ""), K = R.replace(/\D/g, ""), re = ye(R);
518
+ if (Q.current !== re) {
519
+ if (Q.current = re, H(R), K.length !== 0) {
518
520
  A.current = !1;
519
521
  return;
520
522
  }
@@ -522,37 +524,37 @@ function Ke(n) {
522
524
  }
523
525
  }, e[27] = d, e[28] = t, e[29] = $) : $ = e[29];
524
526
  let F;
525
- e[30] !== d || e[31] !== c || e[32] !== w || e[33] !== t ? (F = (i) => {
526
- const b = typeof i == "string" ? i : String(i ?? "");
527
- if (ee.current === b) {
527
+ e[30] !== d || e[31] !== c || e[32] !== x || e[33] !== t ? (F = (i) => {
528
+ const k = typeof i == "string" ? i : String(i ?? "");
529
+ if (ee.current === k) {
528
530
  ee.current = null;
529
531
  return;
530
532
  }
531
- const E = ve(b, c);
533
+ const E = ve(k, c);
532
534
  if (!E)
533
535
  return;
534
536
  if (E.selectableValue) {
535
- if (w(E.selectableValue), R(E.selectableValue), t === E.selectableValue)
537
+ if (x(E.selectableValue), H(E.selectableValue), t === E.selectableValue)
536
538
  return;
537
539
  d(E.selectableValue);
538
540
  return;
539
541
  }
540
- const H = xe(E.parsed);
541
- if (H == null)
542
+ const R = xe(E.parsed);
543
+ if (R == null)
542
544
  return;
543
- const U = Te(H, c);
544
- U && w(U.value);
545
- }, e[30] = d, e[31] = c, e[32] = w, e[33] = t, e[34] = F) : F = e[34];
546
- let C, q, Z;
545
+ const K = Te(R, c);
546
+ K && x(K.value);
547
+ }, e[30] = d, e[31] = c, e[32] = x, e[33] = t, e[34] = F) : F = e[34];
548
+ let C, q, U;
547
549
  e[35] !== f || e[36] !== m || e[37] !== h ? (C = () => {
548
550
  I.current = !0, !f && (m || h(!0));
549
551
  }, q = (i) => {
550
- I.current = !0, X.current = typeof document < "u" && document.activeElement === i.currentTarget, !f && (m || h(!0));
551
- }, Z = () => {
552
+ I.current = !0, J.current = typeof document < "u" && document.activeElement === i.currentTarget, !f && (m || h(!0));
553
+ }, U = () => {
552
554
  f || m || h(!0);
553
- }, e[35] = f, e[36] = m, e[37] = h, e[38] = C, e[39] = q, e[40] = Z) : (C = e[38], q = e[39], Z = e[40]);
554
- let re;
555
- e[41] !== f || e[42] !== T || e[43] !== P || e[44] !== y || e[45] !== L || e[46] !== d || e[47] !== m || e[48] !== c || e[49] !== w || e[50] !== h ? (re = (i) => {
555
+ }, e[35] = f, e[36] = m, e[37] = h, e[38] = C, e[39] = q, e[40] = U) : (C = e[38], q = e[39], U = e[40]);
556
+ let ne;
557
+ e[41] !== f || e[42] !== T || e[43] !== P || e[44] !== y || e[45] !== L || e[46] !== d || e[47] !== m || e[48] !== c || e[49] !== x || e[50] !== h ? (ne = (i) => {
556
558
  if (!f) {
557
559
  if (i.key === "Tab" && m && !i.defaultPrevented) {
558
560
  h(!1);
@@ -574,77 +576,77 @@ function Ke(n) {
574
576
  }
575
577
  if (i.key === "Enter") {
576
578
  y();
577
- const b = ve(T, c);
578
- if (!b) {
579
+ const k = ve(T, c);
580
+ if (!k) {
579
581
  if (!m || T.trim() !== "")
580
582
  return;
581
- const U = c.find((Re) => Re.value === P.current), de = (_(U) ? U?.value : void 0) ?? c.find(Xe)?.value;
582
- if (!de)
583
+ const K = c.find((Re) => Re.value === P.current), re = (_(K) ? K?.value : void 0) ?? c.find(Xe)?.value;
584
+ if (!re)
583
585
  return;
584
- i.preventDefault(), w(de), R(de), d(de), h(!1);
586
+ i.preventDefault(), x(re), H(re), d(re), h(!1);
585
587
  return;
586
588
  }
587
- if (b.selectableValue) {
588
- i.preventDefault(), w(b.selectableValue), R(b.selectableValue), d(b.selectableValue), h(!1);
589
+ if (k.selectableValue) {
590
+ i.preventDefault(), x(k.selectableValue), H(k.selectableValue), d(k.selectableValue), h(!1);
589
591
  return;
590
592
  }
591
- const E = xe(b.parsed);
593
+ const E = xe(k.parsed);
592
594
  if (E == null)
593
595
  return;
594
- const H = Te(E, c);
595
- if (!H)
596
+ const R = Te(E, c);
597
+ if (!R)
596
598
  return;
597
- i.preventDefault(), w(H.value), R(H.value), d(H.value), h(!1);
599
+ i.preventDefault(), x(R.value), H(R.value), d(R.value), h(!1);
598
600
  return;
599
601
  }
600
602
  }
601
- }, e[41] = f, e[42] = T, e[43] = P, e[44] = y, e[45] = L, e[46] = d, e[47] = m, e[48] = c, e[49] = w, e[50] = h, e[51] = re) : re = e[51];
602
- let le;
603
- e[52] !== f || e[53] !== m || e[54] !== h ? (le = (i) => {
604
- const b = !I.current || !X.current;
605
- if (I.current = !1, X.current = !1, z.current = !0, b) {
603
+ }, e[41] = f, e[42] = T, e[43] = P, e[44] = y, e[45] = L, e[46] = d, e[47] = m, e[48] = c, e[49] = x, e[50] = h, e[51] = ne) : ne = e[51];
604
+ let ce;
605
+ e[52] !== f || e[53] !== m || e[54] !== h ? (ce = (i) => {
606
+ const k = !I.current || !J.current;
607
+ if (I.current = !1, J.current = !1, z.current = !0, k) {
606
608
  const E = i.currentTarget;
607
609
  requestAnimationFrame(() => E.select());
608
610
  }
609
611
  f || m || h(!0);
610
- }, e[52] = f, e[53] = m, e[54] = h, e[55] = le) : le = e[55];
611
- let ce;
612
- e[56] !== T || e[57] !== d || e[58] !== c || e[59] !== t ? (ce = () => {
612
+ }, e[52] = f, e[53] = m, e[54] = h, e[55] = ce) : ce = e[55];
613
+ let ue;
614
+ e[56] !== T || e[57] !== d || e[58] !== c || e[59] !== t ? (ue = () => {
613
615
  z.current = !1;
614
616
  const i = T.trim();
615
617
  if (!i) {
616
- R(t || "");
618
+ H(t || "");
617
619
  return;
618
620
  }
619
- const b = ve(i, c);
620
- if (!b) {
621
- R(t || "");
621
+ const k = ve(i, c);
622
+ if (!k) {
623
+ H(t || "");
622
624
  return;
623
625
  }
624
- if (!b.selectableValue) {
625
- R(t || "");
626
+ if (!k.selectableValue) {
627
+ H(t || "");
626
628
  return;
627
629
  }
628
- R(b.selectableValue), t !== b.selectableValue && d(b.selectableValue);
629
- }, e[56] = T, e[57] = d, e[58] = c, e[59] = t, e[60] = ce) : ce = e[60];
630
- let ue;
631
- e[61] !== f || e[62] !== T || e[63] !== u || e[64] !== B || e[65] !== l || e[66] !== V || e[67] !== k || e[68] !== g || e[69] !== $ || e[70] !== F || e[71] !== C || e[72] !== q || e[73] !== Z || e[74] !== re || e[75] !== le || e[76] !== ce || e[77] !== p || e[78] !== N ? (ue = /* @__PURE__ */ v.jsx(je, { id: u, "data-testid": N, "data-hydrated": k, type: "text", disabled: f, readOnly: V, inputRef: B, autoComplete: "off", mask: S, dispatch: g, placeholder: l, value: T, className: p, onAccept: $, onComplete: F, onPointerDown: C, onMouseDown: q, onClick: Z, onKeyDown: re, onFocus: le, onBlur: ce }), e[61] = f, e[62] = T, e[63] = u, e[64] = B, e[65] = l, e[66] = V, e[67] = k, e[68] = g, e[69] = $, e[70] = F, e[71] = C, e[72] = q, e[73] = Z, e[74] = re, e[75] = le, e[76] = ce, e[77] = p, e[78] = N, e[79] = ue) : ue = e[79];
630
+ H(k.selectableValue), t !== k.selectableValue && d(k.selectableValue);
631
+ }, e[56] = T, e[57] = d, e[58] = c, e[59] = t, e[60] = ue) : ue = e[60];
632
+ let ae;
633
+ e[61] !== f || e[62] !== T || e[63] !== u || e[64] !== B || e[65] !== l || e[66] !== V || e[67] !== w || e[68] !== g || e[69] !== $ || e[70] !== F || e[71] !== C || e[72] !== q || e[73] !== U || e[74] !== ne || e[75] !== ce || e[76] !== ue || e[77] !== p || e[78] !== N ? (ae = /* @__PURE__ */ v.jsx(je, { id: u, "data-testid": N, "data-hydrated": w, type: "text", disabled: f, readOnly: V, inputRef: B, autoComplete: "off", mask: S, dispatch: g, placeholder: l, value: T, className: p, onAccept: $, onComplete: F, onPointerDown: C, onMouseDown: q, onClick: U, onKeyDown: ne, onFocus: ce, onBlur: ue }), e[61] = f, e[62] = T, e[63] = u, e[64] = B, e[65] = l, e[66] = V, e[67] = w, e[68] = g, e[69] = $, e[70] = F, e[71] = C, e[72] = q, e[73] = U, e[74] = ne, e[75] = ce, e[76] = ue, e[77] = p, e[78] = N, e[79] = ae) : ae = e[79];
632
634
  let me;
633
- e[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = ne("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] = me) : me = e[80];
635
+ e[80] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = oe("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] = me) : me = e[80];
634
636
  const ge = m ? "Close time picker" : "Open time picker";
635
- let ae;
636
- e[81] !== f || e[82] !== m || e[83] !== h ? (ae = () => {
637
+ let fe;
638
+ e[81] !== f || e[82] !== m || e[83] !== h ? (fe = () => {
637
639
  f || h(!m);
638
- }, e[81] = f, e[82] = m, e[83] = h, e[84] = ae) : ae = e[84];
640
+ }, e[81] = f, e[82] = m, e[83] = h, e[84] = fe) : fe = e[84];
639
641
  let pe;
640
642
  e[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = /* @__PURE__ */ v.jsx(De, { "aria-hidden": !0, className: "size-4" }), e[85] = pe) : pe = e[85];
641
- let fe;
642
- e[86] !== f || e[87] !== ge || e[88] !== ae ? (fe = /* @__PURE__ */ v.jsx("button", { type: "button", tabIndex: -1, disabled: f, "data-slot": "hours-picker-input-toggle", className: me, "aria-label": ge, onPointerDown: Ge, onMouseDown: Ye, onClick: ae, children: pe }), e[86] = f, e[87] = ge, e[88] = ae, e[89] = fe) : fe = e[89];
643
+ let de;
644
+ e[86] !== f || e[87] !== ge || e[88] !== fe ? (de = /* @__PURE__ */ v.jsx("button", { type: "button", tabIndex: -1, disabled: f, "data-slot": "hours-picker-input-toggle", className: me, "aria-label": ge, onPointerDown: Ge, onMouseDown: Ye, onClick: fe, children: pe }), e[86] = f, e[87] = ge, e[88] = fe, e[89] = de) : de = e[89];
643
645
  let he;
644
- return e[90] !== ue || e[91] !== fe ? (he = /* @__PURE__ */ v.jsxs("div", { className: "relative group", children: [
645
- ue,
646
- fe
647
- ] }), e[90] = ue, e[91] = fe, e[92] = he) : he = e[92], he;
646
+ return e[90] !== ae || e[91] !== de ? (he = /* @__PURE__ */ v.jsxs("div", { className: "relative group", children: [
647
+ ae,
648
+ de
649
+ ] }), e[90] = ae, e[91] = de, e[92] = he) : he = e[92], he;
648
650
  }
649
651
  function Ye(n) {
650
652
  n.preventDefault();