@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.
- package/dist/index151.js +1 -1
- package/dist/index152.js +605 -5
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +5 -68
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +69 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -364
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +303 -201
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +247 -46
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +56 -42
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +46 -169
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +156 -96
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +109 -24
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +25 -8
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +8 -5
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +4 -5
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -4
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +4 -466
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +420 -139
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +149 -71
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +74 -229
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +262 -9
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +9 -42
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +42 -4
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +4 -46
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +41 -200
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +204 -20
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +22 -25
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +23 -398
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +383 -589
- package/dist/index178.js.map +1 -1
- package/dist/index19.js +185 -183
- package/dist/index19.js.map +1 -1
- package/dist/index239.js +66 -12
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +176 -150
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +43 -27
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +13 -9
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +147 -41
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +29 -10
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -44
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +41 -88
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +10 -85
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +41 -102
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +88 -45
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +85 -10
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +96 -28
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +52 -8
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +10 -115
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +36 -16
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -15
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +116 -3
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +16 -35
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +14 -19
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +3 -9
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +36 -8
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +20 -24
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +10 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +9 -5
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +4 -4
- package/dist/index266.js +2 -2
- package/dist/index267.js +22 -65
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +27 -179
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +5 -47
- package/dist/index269.js.map +1 -1
- package/dist/index273.js +1 -1
- package/dist/index277.js +1 -1
- package/dist/index278.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index31.js +5 -5
- package/dist/index36.js +1 -1
- package/dist/index37.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.js +20 -20
- package/dist/index45.js +1 -1
- package/dist/index46.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index50.js +1 -1
- package/dist/index51.js +7 -2
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +34 -2
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +27 -2
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +8 -2
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +11 -6
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +2 -34
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +2 -27
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +205 -8
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +3 -11
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +44 -201
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +50 -3
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +7 -47
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +12 -48
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +133 -7
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +10 -14
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +210 -127
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +12 -10
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -214
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +49 -12
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +4 -47
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +5 -49
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +28 -4
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +50 -6
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +9 -28
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +6 -50
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +8 -9
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +5 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -8
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +2 -6
- package/dist/index79.js.map +1 -1
- 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
|
|
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:
|
|
87
|
-
} = N, y = 2, B = M > y, D = M < P -
|
|
88
|
-
if (!(P >
|
|
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
|
|
103
|
-
|
|
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),
|
|
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,
|
|
122
|
-
if (
|
|
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 -
|
|
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]),
|
|
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:
|
|
137
|
-
t ||
|
|
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 &&
|
|
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:
|
|
157
|
+
triggerTestId: X,
|
|
158
158
|
contentTestId: N,
|
|
159
159
|
isHydrated: M
|
|
160
160
|
}) {
|
|
161
|
-
const P = o.useId(),
|
|
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), [
|
|
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
|
-
})), [
|
|
168
|
-
te.current =
|
|
169
|
-
if (!
|
|
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,
|
|
175
|
+
}, [f, b, V]);
|
|
176
176
|
const W = o.useCallback((r) => {
|
|
177
177
|
z.current = r, ee(r);
|
|
178
|
-
}, []),
|
|
178
|
+
}, []), ie = o.useCallback(() => {
|
|
179
179
|
I.current = !0;
|
|
180
180
|
}, []);
|
|
181
181
|
o.useEffect(() => {
|
|
182
|
-
if (!
|
|
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
|
-
}, [
|
|
191
|
-
const
|
|
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]),
|
|
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 (!
|
|
208
|
-
const r =
|
|
209
|
-
const S =
|
|
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 =
|
|
212
|
+
const g = Q.current;
|
|
213
213
|
!g || g.contains(S) || A.current?.contains(S) || L(!1);
|
|
214
|
-
}, p = (
|
|
215
|
-
if (
|
|
214
|
+
}, p = (w) => {
|
|
215
|
+
if (w.key !== "Escape" || !te.current)
|
|
216
216
|
return;
|
|
217
|
-
const S =
|
|
217
|
+
const S = w.target;
|
|
218
218
|
if (!(S instanceof Node))
|
|
219
219
|
return;
|
|
220
|
-
const g =
|
|
221
|
-
!g?.contains(S) && !$?.contains(S) || (
|
|
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
|
-
}, [
|
|
227
|
-
if (!
|
|
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
|
|
237
|
-
if (
|
|
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
|
-
(
|
|
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 +
|
|
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
|
-
}, [
|
|
254
|
-
if (!
|
|
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
|
|
264
|
-
|
|
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,
|
|
270
|
-
const
|
|
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,
|
|
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 + $ >
|
|
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,
|
|
279
|
-
q &&
|
|
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 (!
|
|
287
|
-
|
|
288
|
-
const r = window.requestAnimationFrame(
|
|
289
|
-
return window.addEventListener("scroll",
|
|
290
|
-
window.cancelAnimationFrame(r), window.removeEventListener("scroll",
|
|
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,
|
|
293
|
-
if (!
|
|
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,
|
|
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
|
|
305
|
-
|
|
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
|
|
309
|
-
if (!
|
|
308
|
+
const w = Array.from(r.querySelectorAll('[role="option"]'));
|
|
309
|
+
if (!w.length) return;
|
|
310
310
|
let S, g;
|
|
311
|
-
for (const C of
|
|
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
|
-
}, [
|
|
324
|
-
if (!
|
|
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="${
|
|
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,
|
|
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
|
-
|
|
336
|
-
}, [
|
|
337
|
-
/* @__PURE__ */ v.jsx(Ke, { id:
|
|
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
|
-
|
|
341
|
-
const r = /* @__PURE__ */ v.jsx(Ce, { children: /* @__PURE__ */ v.jsxs("div", { ref: A, "data-testid": N, "data-state": "open", className:
|
|
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:
|
|
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
|
-
}),
|
|
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:
|
|
386
|
+
onOpenChange: X,
|
|
387
387
|
triggerTestId: N,
|
|
388
388
|
contentTestId: M,
|
|
389
389
|
isHydrated: P
|
|
390
|
-
} = n,
|
|
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 =
|
|
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
|
|
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] !==
|
|
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] !==
|
|
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] !==
|
|
409
|
-
let
|
|
410
|
-
e[20] !== d ? (
|
|
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[
|
|
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
|
-
|
|
417
|
-
] }), e[25] = m, e[26] =
|
|
418
|
-
let
|
|
419
|
-
return e[33] !==
|
|
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:
|
|
449
|
+
inputClassName: X,
|
|
450
450
|
triggerTestId: N,
|
|
451
451
|
isHydrated: M,
|
|
452
452
|
highlightedValueRef: P,
|
|
453
|
-
setHighlightedValue:
|
|
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),
|
|
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,
|
|
461
|
-
let
|
|
462
|
-
e[2] !== D ? (
|
|
463
|
-
|
|
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
|
-
}),
|
|
467
|
-
let
|
|
468
|
-
e[5] !== P || e[6] !== j || e[7] !== c || e[8] !==
|
|
469
|
-
const
|
|
470
|
-
let E = c.findIndex((
|
|
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
|
|
473
|
-
const
|
|
474
|
-
if (_(
|
|
475
|
-
|
|
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] =
|
|
480
|
-
const L =
|
|
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 ||
|
|
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
|
|
486
|
-
e[14] !== T ? (
|
|
487
|
-
|
|
488
|
-
},
|
|
489
|
-
let
|
|
490
|
-
e[17] !== t ? (
|
|
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
|
-
},
|
|
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] !==
|
|
496
|
-
const p = a,
|
|
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,
|
|
507
|
-
const E = (
|
|
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
|
|
510
|
-
const
|
|
511
|
-
return c.some((
|
|
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
|
-
|
|
516
|
-
|
|
517
|
-
|
|
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] !==
|
|
526
|
-
const
|
|
527
|
-
if (ee.current ===
|
|
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(
|
|
533
|
+
const E = ve(k, c);
|
|
532
534
|
if (!E)
|
|
533
535
|
return;
|
|
534
536
|
if (E.selectableValue) {
|
|
535
|
-
if (
|
|
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
|
|
541
|
-
if (
|
|
542
|
+
const R = xe(E.parsed);
|
|
543
|
+
if (R == null)
|
|
542
544
|
return;
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
}, e[30] = d, e[31] = c, e[32] =
|
|
546
|
-
let C, q,
|
|
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,
|
|
551
|
-
},
|
|
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] =
|
|
554
|
-
let
|
|
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] !==
|
|
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
|
|
578
|
-
if (!
|
|
579
|
+
const k = ve(T, c);
|
|
580
|
+
if (!k) {
|
|
579
581
|
if (!m || T.trim() !== "")
|
|
580
582
|
return;
|
|
581
|
-
const
|
|
582
|
-
if (!
|
|
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(),
|
|
586
|
+
i.preventDefault(), x(re), H(re), d(re), h(!1);
|
|
585
587
|
return;
|
|
586
588
|
}
|
|
587
|
-
if (
|
|
588
|
-
i.preventDefault(),
|
|
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(
|
|
593
|
+
const E = xe(k.parsed);
|
|
592
594
|
if (E == null)
|
|
593
595
|
return;
|
|
594
|
-
const
|
|
595
|
-
if (!
|
|
596
|
+
const R = Te(E, c);
|
|
597
|
+
if (!R)
|
|
596
598
|
return;
|
|
597
|
-
i.preventDefault(),
|
|
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] =
|
|
602
|
-
let
|
|
603
|
-
e[52] !== f || e[53] !== m || e[54] !== h ? (
|
|
604
|
-
const
|
|
605
|
-
if (I.current = !1,
|
|
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] =
|
|
611
|
-
let
|
|
612
|
-
e[56] !== T || e[57] !== d || e[58] !== c || e[59] !== t ? (
|
|
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
|
-
|
|
618
|
+
H(t || "");
|
|
617
619
|
return;
|
|
618
620
|
}
|
|
619
|
-
const
|
|
620
|
-
if (!
|
|
621
|
-
|
|
621
|
+
const k = ve(i, c);
|
|
622
|
+
if (!k) {
|
|
623
|
+
H(t || "");
|
|
622
624
|
return;
|
|
623
625
|
}
|
|
624
|
-
if (!
|
|
625
|
-
|
|
626
|
+
if (!k.selectableValue) {
|
|
627
|
+
H(t || "");
|
|
626
628
|
return;
|
|
627
629
|
}
|
|
628
|
-
|
|
629
|
-
}, e[56] = T, e[57] = d, e[58] = c, e[59] = t, e[60] =
|
|
630
|
-
let
|
|
631
|
-
e[61] !== f || e[62] !== T || e[63] !== u || e[64] !== B || e[65] !== l || e[66] !== V || e[67] !==
|
|
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 =
|
|
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
|
|
636
|
-
e[81] !== f || e[82] !== m || e[83] !== h ? (
|
|
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] =
|
|
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
|
|
642
|
-
e[86] !== f || e[87] !== ge || e[88] !==
|
|
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] !==
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
] }), e[90] =
|
|
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();
|