@oomol-lab/open-flow 0.1.0-beta.4 → 0.1.0-beta.6
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/browser/{DesignerIcon-DdfuH2jW.js → DesignerIcon-XKBRy_0Q.js} +640 -640
- package/dist/browser/createResourceDialog-Cf7QpXp6.js +505 -0
- package/dist/browser/{dist-BMqL-qR5.js → dist-BMRLCebL.js} +291 -292
- package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
- package/dist/browser/{dist-CJpzJrLM.js → dist-Cc0y2Pli.js} +811 -812
- package/dist/browser/{dist-DUzA0Ukh.js → dist-Dg_VXC8f.js} +134 -135
- package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
- package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
- package/dist/browser/dist-DxahK_I8.js +2688 -0
- package/dist/browser/{dist-CPuF50D9.js → dist-meg_oHVR.js} +335 -335
- package/dist/browser/{esm-C9jQK70n.js → esm-CTcBY7hh.js} +5 -6
- package/dist/browser/flow-authoring-module.d.ts +2 -2
- package/dist/browser/flow-authoring-node.d.ts +2 -2
- package/dist/browser/flow-authoring.js +475 -209
- package/dist/browser/flow-change.d.ts +98 -8
- package/dist/browser/flow-change.js +319 -96
- package/dist/browser/{flowChanges-Bs-ZcJV8.js → flowChanges-BDqD_Q4G.js} +1628 -1555
- package/dist/browser/{flowRunInputEditorStore-BYa8zFLC.js → flowRunInputEditorStore-DDidwd8h.js} +9 -1
- package/dist/browser/{flowWorkspace-BewofPeU.js → flowWorkspace-CPBHm14t.js} +9803 -9769
- package/dist/browser/{getPseudoElementBounds-qDxSDwzN.js → getPseudoElementBounds-5LArT6Xc.js} +494 -474
- package/dist/browser/icons-CRxvozBE.js +726 -0
- package/dist/browser/{typeScriptSession-CwMPjseS.js → typeScriptSession-_TgJ_7Oq.js} +256 -257
- package/dist/browser/{waitNotificationInputs-DtrPBwA1.js → waitNotificationInputs-lPrLDTOd.js} +2 -2
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +573 -578
- package/dist/browser/{workbenchSelect-CX8KtT7L.js → workbenchSelect-Cf1zlVm9.js} +398 -398
- package/dist/common/control-api-conformance.js +27 -19
- package/dist/common/control-api.d.ts +4 -11
- package/dist/common/control-api.js +6 -18
- package/dist/common/flow-encoding.js +4 -0
- package/dist/common/flow-semantics.js +8 -10
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +27 -0
- package/dist/common/scheduler.d.ts +1 -1
- package/dist/common/scheduler.js +17 -18
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/browser/createResourceDialog-4YQKl8lG.js +0 -505
- package/dist/browser/dist-BpopSHwP.js +0 -1543
- package/dist/browser/dist-CUSrALSX.js +0 -1620
- package/dist/browser/icons-DRoMXL5h.js +0 -521
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as e,
|
|
2
|
-
import {
|
|
1
|
+
import { $ as e, A as t, At as n, Bn as r, Dt as i, Et as a, Fn as o, G as s, I as c, Jn as l, Jt as u, K as d, Kn as f, Mn as p, Mt as m, N as h, Nn as ee, Nt as g, On as _, P as v, Pn as y, Qn as b, Rn as x, Sn as S, St as C, Tt as w, Un as T, Vt as E, Xt as D, Yt as te, Z as O, Zn as k, Zt as A, _t as j, a as M, bt as N, c as P, en as F, et as I, f as L, ft as R, gt as z, i as ne, j as re, kt as ie, l as ae, lr as oe, lt as B, m as se, n as V, nr as H, nt as U, or as ce, p as le, qn as ue, qt as de, r as fe, rn as pe, rr as W, s as me, sr as he, t as G, tn as ge, tr as K, tt as _e, u as ve, vn as ye, vt as be, x as q, xt as xe, zn as Se, zt as J } from "./getPseudoElementBounds-5LArT6Xc.js";
|
|
2
|
+
import { s as Ce } from "./icons-CRxvozBE.js";
|
|
3
3
|
import * as Y from "react";
|
|
4
4
|
import { jsx as X, jsxs as we } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/chevron-up.js
|
|
6
|
-
var Te =
|
|
6
|
+
var Te = n("ChevronUp", [["path", {
|
|
7
7
|
d: "m18 15-6-6-6 6",
|
|
8
8
|
key: "153udz"
|
|
9
9
|
}]]);
|
|
@@ -27,12 +27,12 @@ var Oe = /*#__PURE__*/ Y.createContext(null);
|
|
|
27
27
|
process.env.NODE_ENV !== "production" && (Oe.displayName = "SelectFloatingContext");
|
|
28
28
|
function Z() {
|
|
29
29
|
let e = Y.useContext(De);
|
|
30
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ?
|
|
30
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? K(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
31
31
|
return e;
|
|
32
32
|
}
|
|
33
33
|
function ke() {
|
|
34
34
|
let e = Y.useContext(Oe);
|
|
35
|
-
if (e === null) throw Error(process.env.NODE_ENV === "production" ?
|
|
35
|
+
if (e === null) throw Error(process.env.NODE_ENV === "production" ? K(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
36
36
|
return e;
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
@@ -165,32 +165,32 @@ function We(e, t) {
|
|
|
165
165
|
//#endregion
|
|
166
166
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
167
167
|
function Ge(e) {
|
|
168
|
-
let { id: t, value: n, defaultValue:
|
|
168
|
+
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: a, defaultOpen: o = !1, onOpenChange: f, name: p, form: ee, autoComplete: g, disabled: _ = !1, readOnly: b = !1, required: S = !1, modal: C = !0, actionsRef: w, inputRef: T, onOpenChangeComplete: O, items: M, multiple: N = !1, itemToStringLabel: P, itemToStringValue: F, isItemEqualToValue: L = Ae, highlightItemOnHover: R = !0, children: ie } = e, { clearErrors: ae } = x(), { setDirty: oe, setTouched: B, setFocused: se, shouldValidateOnChange: U, validityData: le, setFilled: de, name: pe, disabled: me, validation: G, validationMode: ge } = Se(), K = y({ id: t }), ve = me || _, ye = pe ?? p, [q, xe] = te({
|
|
169
169
|
controlled: n,
|
|
170
|
-
default:
|
|
170
|
+
default: N ? r ?? ue : r,
|
|
171
171
|
name: "Select",
|
|
172
172
|
state: "value"
|
|
173
|
-
}), [J, Ce] =
|
|
174
|
-
controlled:
|
|
175
|
-
default:
|
|
173
|
+
}), [J, Ce] = te({
|
|
174
|
+
controlled: a,
|
|
175
|
+
default: o,
|
|
176
176
|
name: "Select",
|
|
177
177
|
state: "open"
|
|
178
178
|
}), Te = Y.useRef([]), Z = Y.useRef([]), ke = Y.useRef(null), je = Y.useRef(null), Me = Y.useRef(0), Pe = Y.useRef(null), Fe = Y.useRef([]), Ie = Y.useRef(!1), Le = Y.useRef(!1), Be = Y.useRef(null), Ve = Y.useRef({
|
|
179
179
|
allowSelectedMouseUp: !1,
|
|
180
180
|
allowUnselectedMouseUp: !1
|
|
181
|
-
}), He = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = D(J), { openMethod: Je, triggerProps: Ye } =
|
|
182
|
-
id:
|
|
181
|
+
}), He = Y.useRef(!1), { mounted: Ge, setMounted: Ke, transitionStatus: qe } = D(J), { openMethod: Je, triggerProps: Ye } = V(J), $ = he(() => new s({
|
|
182
|
+
id: K,
|
|
183
183
|
labelId: void 0,
|
|
184
|
-
modal:
|
|
185
|
-
multiple:
|
|
184
|
+
modal: C,
|
|
185
|
+
multiple: N,
|
|
186
186
|
itemToStringLabel: P,
|
|
187
187
|
itemToStringValue: F,
|
|
188
|
-
isItemEqualToValue:
|
|
188
|
+
isItemEqualToValue: L,
|
|
189
189
|
value: q,
|
|
190
190
|
open: J,
|
|
191
191
|
mounted: Ge,
|
|
192
192
|
transitionStatus: qe,
|
|
193
|
-
items:
|
|
193
|
+
items: M,
|
|
194
194
|
forceMount: !1,
|
|
195
195
|
openMethod: null,
|
|
196
196
|
activeIndex: null,
|
|
@@ -203,17 +203,17 @@ function Ge(e) {
|
|
|
203
203
|
scrollUpArrowVisible: !1,
|
|
204
204
|
scrollDownArrowVisible: !1,
|
|
205
205
|
hasScrollArrows: !1
|
|
206
|
-
})).current, Xe =
|
|
207
|
-
|
|
206
|
+
})).current, Xe = d($, Q.activeIndex), Ze = d($, Q.selectedIndex), Qe = d($, Q.triggerElement), $e = d($, Q.positionerElement), et = Ee(Je), tt = Je ?? et, nt = Y.useMemo(() => N && Array.isArray(q) && q.length === 0 ? "" : ze(q, F), [
|
|
207
|
+
N,
|
|
208
208
|
q,
|
|
209
209
|
F
|
|
210
|
-
]), rt = Y.useMemo(() =>
|
|
211
|
-
|
|
210
|
+
]), rt = Y.useMemo(() => N && Array.isArray(q) ? q.map((e) => ze(e, F)) : ze(q, F), [
|
|
211
|
+
N,
|
|
212
212
|
q,
|
|
213
213
|
F
|
|
214
|
-
]), it = be($.state.triggerElement), at =
|
|
215
|
-
|
|
216
|
-
id:
|
|
214
|
+
]), it = be($.state.triggerElement), at = ce(() => rt);
|
|
215
|
+
u(it, {
|
|
216
|
+
id: K,
|
|
217
217
|
value: q,
|
|
218
218
|
getValue: at
|
|
219
219
|
});
|
|
@@ -221,152 +221,152 @@ function Ge(e) {
|
|
|
221
221
|
W(() => {
|
|
222
222
|
q !== ot.current && $.set("forceMount", !0);
|
|
223
223
|
}, [$, q]), W(() => {
|
|
224
|
-
|
|
224
|
+
de(N ? Array.isArray(q) && q.length > 0 : q != null);
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
N,
|
|
227
227
|
q,
|
|
228
|
-
|
|
228
|
+
de
|
|
229
229
|
]), W(function() {
|
|
230
230
|
if (J) return;
|
|
231
231
|
let e = Fe.current;
|
|
232
|
-
if (
|
|
232
|
+
if (N) {
|
|
233
233
|
let t = Array.isArray(q) ? q : [];
|
|
234
234
|
if (t.length === 0) {
|
|
235
235
|
$.set("selectedIndex", null);
|
|
236
236
|
return;
|
|
237
237
|
}
|
|
238
|
-
let n = t[t.length - 1], r = Ne(e, n,
|
|
238
|
+
let n = t[t.length - 1], r = Ne(e, n, L);
|
|
239
239
|
$.set("selectedIndex", r === -1 ? null : r);
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
|
-
let t = Ne(e, q,
|
|
242
|
+
let t = Ne(e, q, L);
|
|
243
243
|
$.set("selectedIndex", t === -1 ? null : t);
|
|
244
244
|
}, [
|
|
245
|
-
|
|
245
|
+
N,
|
|
246
246
|
J,
|
|
247
247
|
q,
|
|
248
248
|
Fe,
|
|
249
|
-
|
|
249
|
+
L,
|
|
250
250
|
$
|
|
251
|
-
]),
|
|
252
|
-
|
|
251
|
+
]), fe(q, () => {
|
|
252
|
+
ae(ye), oe(q !== le.initialValue), U() ? G.commit(q) : G.commit(q, !0);
|
|
253
253
|
});
|
|
254
|
-
let st =
|
|
255
|
-
if (
|
|
254
|
+
let st = ce((e, t) => {
|
|
255
|
+
if (f?.(e, t), !t.isCanceled && (Ce(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (B(!0), se(!1), ge === "onBlur" && G.commit(q)), !e && $.state.activeIndex !== null)) {
|
|
256
256
|
let e = Te.current[$.state.activeIndex];
|
|
257
257
|
queueMicrotask(() => {
|
|
258
258
|
e?.setAttribute("tabindex", "-1");
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
}), ct =
|
|
261
|
+
}), ct = ce(() => {
|
|
262
262
|
Ke(!1), $.update({
|
|
263
263
|
activeIndex: null,
|
|
264
264
|
openMethod: null
|
|
265
|
-
}),
|
|
265
|
+
}), O?.(!1);
|
|
266
266
|
});
|
|
267
|
-
|
|
268
|
-
enabled: !
|
|
267
|
+
A({
|
|
268
|
+
enabled: !w,
|
|
269
269
|
open: J,
|
|
270
270
|
ref: ke,
|
|
271
271
|
onComplete() {
|
|
272
272
|
J || ct();
|
|
273
273
|
}
|
|
274
|
-
}), Y.useImperativeHandle(
|
|
275
|
-
let lt =
|
|
276
|
-
|
|
277
|
-
}), ut =
|
|
274
|
+
}), Y.useImperativeHandle(w, () => ({ unmount: ct }), [ct]);
|
|
275
|
+
let lt = ce((e, t) => {
|
|
276
|
+
i?.(e, t), !t.isCanceled && xe(e);
|
|
277
|
+
}), ut = ce(() => {
|
|
278
278
|
let e = $.state.listElement || ke.current;
|
|
279
279
|
if (!e) return;
|
|
280
280
|
let t = Ue(e.scrollHeight, e.clientHeight), n = We(e.scrollTop, t), r = n > 0, i = n < t;
|
|
281
281
|
$.state.scrollUpArrowVisible !== r && $.set("scrollUpArrowVisible", r), $.state.scrollDownArrowVisible !== i && $.set("scrollDownArrowVisible", i);
|
|
282
|
-
}), dt =
|
|
282
|
+
}), dt = c({
|
|
283
283
|
open: J,
|
|
284
284
|
onOpenChange: st,
|
|
285
285
|
elements: {
|
|
286
286
|
reference: Qe,
|
|
287
287
|
floating: $e
|
|
288
288
|
}
|
|
289
|
-
}), ft =
|
|
290
|
-
enabled: !
|
|
289
|
+
}), ft = _e(dt, {
|
|
290
|
+
enabled: !b && !ve,
|
|
291
291
|
event: "mousedown"
|
|
292
|
-
}), pt =
|
|
293
|
-
enabled: !
|
|
292
|
+
}), pt = I(dt, { bubbles: !1 }), mt = h(dt, {
|
|
293
|
+
enabled: !b && !ve,
|
|
294
294
|
listRef: Te,
|
|
295
295
|
activeIndex: Xe,
|
|
296
296
|
selectedIndex: Ze,
|
|
297
|
-
disabledIndices:
|
|
297
|
+
disabledIndices: ue,
|
|
298
298
|
onNavigate(e) {
|
|
299
299
|
e === null && !J || $.set("activeIndex", e);
|
|
300
300
|
},
|
|
301
|
-
focusItemOnHover:
|
|
302
|
-
}), ht =
|
|
303
|
-
enabled: !
|
|
301
|
+
focusItemOnHover: R
|
|
302
|
+
}), ht = re(dt, {
|
|
303
|
+
enabled: !b && !ve && (J || !N),
|
|
304
304
|
listRef: Z,
|
|
305
305
|
activeIndex: Xe,
|
|
306
306
|
selectedIndex: Ze,
|
|
307
307
|
onMatch(e) {
|
|
308
|
-
J ? $.set("activeIndex", e) : lt(Fe.current[e],
|
|
308
|
+
J ? $.set("activeIndex", e) : lt(Fe.current[e], m("none"));
|
|
309
309
|
},
|
|
310
310
|
onTypingChange(e) {
|
|
311
311
|
Ie.current = e;
|
|
312
312
|
}
|
|
313
|
-
}), { getReferenceProps: gt, getFloatingProps: _t, getItemProps: vt } =
|
|
313
|
+
}), { getReferenceProps: gt, getFloatingProps: _t, getItemProps: vt } = v([
|
|
314
314
|
ft,
|
|
315
315
|
pt,
|
|
316
316
|
mt,
|
|
317
317
|
ht
|
|
318
|
-
]), yt = Y.useMemo(() =>
|
|
318
|
+
]), yt = Y.useMemo(() => H(gt(), Ye, K ? { id: K } : l), [
|
|
319
319
|
gt,
|
|
320
320
|
Ye,
|
|
321
|
-
|
|
321
|
+
K
|
|
322
322
|
]);
|
|
323
|
-
|
|
323
|
+
ne(() => {
|
|
324
324
|
$.update({
|
|
325
325
|
popupProps: _t(),
|
|
326
326
|
triggerProps: yt
|
|
327
327
|
});
|
|
328
328
|
}), W(() => {
|
|
329
329
|
$.update({
|
|
330
|
-
id:
|
|
331
|
-
modal:
|
|
332
|
-
multiple:
|
|
330
|
+
id: K,
|
|
331
|
+
modal: C,
|
|
332
|
+
multiple: N,
|
|
333
333
|
value: q,
|
|
334
334
|
open: J,
|
|
335
335
|
mounted: Ge,
|
|
336
336
|
transitionStatus: qe,
|
|
337
337
|
popupProps: _t(),
|
|
338
338
|
triggerProps: yt,
|
|
339
|
-
items:
|
|
339
|
+
items: M,
|
|
340
340
|
itemToStringLabel: P,
|
|
341
341
|
itemToStringValue: F,
|
|
342
|
-
isItemEqualToValue:
|
|
342
|
+
isItemEqualToValue: L,
|
|
343
343
|
openMethod: tt
|
|
344
344
|
});
|
|
345
345
|
}, [
|
|
346
346
|
$,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
347
|
+
K,
|
|
348
|
+
C,
|
|
349
|
+
N,
|
|
350
350
|
q,
|
|
351
351
|
J,
|
|
352
352
|
Ge,
|
|
353
353
|
qe,
|
|
354
354
|
_t,
|
|
355
355
|
yt,
|
|
356
|
-
|
|
356
|
+
M,
|
|
357
357
|
P,
|
|
358
358
|
F,
|
|
359
|
-
|
|
359
|
+
L,
|
|
360
360
|
tt
|
|
361
361
|
]);
|
|
362
362
|
let bt = Y.useMemo(() => ({
|
|
363
363
|
store: $,
|
|
364
|
-
name:
|
|
365
|
-
required:
|
|
366
|
-
disabled:
|
|
367
|
-
readOnly:
|
|
368
|
-
multiple:
|
|
369
|
-
highlightItemOnHover:
|
|
364
|
+
name: ye,
|
|
365
|
+
required: S,
|
|
366
|
+
disabled: ve,
|
|
367
|
+
readOnly: b,
|
|
368
|
+
multiple: N,
|
|
369
|
+
highlightItemOnHover: R,
|
|
370
370
|
setValue: lt,
|
|
371
371
|
setOpen: st,
|
|
372
372
|
listRef: Te,
|
|
@@ -383,38 +383,38 @@ function Ge(e) {
|
|
|
383
383
|
selectionRef: Ve,
|
|
384
384
|
selectedItemTextRef: Be,
|
|
385
385
|
validation: G,
|
|
386
|
-
onOpenChangeComplete:
|
|
386
|
+
onOpenChangeComplete: O,
|
|
387
387
|
keyboardActiveRef: Le,
|
|
388
388
|
alignItemWithTriggerActiveRef: He,
|
|
389
389
|
initialValueRef: ot
|
|
390
390
|
}), [
|
|
391
391
|
$,
|
|
392
|
-
xe,
|
|
393
|
-
C,
|
|
394
392
|
ye,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
393
|
+
S,
|
|
394
|
+
ve,
|
|
395
|
+
b,
|
|
396
|
+
N,
|
|
397
|
+
R,
|
|
398
398
|
lt,
|
|
399
399
|
st,
|
|
400
400
|
vt,
|
|
401
401
|
dt.context.events,
|
|
402
402
|
G,
|
|
403
|
-
|
|
403
|
+
O,
|
|
404
404
|
ut
|
|
405
|
-
]), xt =
|
|
405
|
+
]), xt = k(T, G.inputRef), St = N && Array.isArray(q) && q.length > 0, Ct = N ? void 0 : ye, wt = Y.useMemo(() => !N || !Array.isArray(q) || !ye ? null : q.map((e) => {
|
|
406
406
|
let t = ze(e, F);
|
|
407
407
|
return /*#__PURE__*/ X("input", {
|
|
408
408
|
type: "hidden",
|
|
409
409
|
form: ee,
|
|
410
|
-
name:
|
|
410
|
+
name: ye,
|
|
411
411
|
value: t
|
|
412
412
|
}, t);
|
|
413
413
|
}), [
|
|
414
|
-
|
|
414
|
+
N,
|
|
415
415
|
q,
|
|
416
416
|
ee,
|
|
417
|
-
|
|
417
|
+
ye,
|
|
418
418
|
F
|
|
419
419
|
]);
|
|
420
420
|
return /*#__PURE__*/ X(De.Provider, {
|
|
@@ -422,7 +422,7 @@ function Ge(e) {
|
|
|
422
422
|
children: /*#__PURE__*/ we(Oe.Provider, {
|
|
423
423
|
value: dt,
|
|
424
424
|
children: [
|
|
425
|
-
|
|
425
|
+
ie,
|
|
426
426
|
/*#__PURE__*/ X("input", {
|
|
427
427
|
...G.getInputValidationProps({
|
|
428
428
|
onFocus() {
|
|
@@ -430,25 +430,25 @@ function Ge(e) {
|
|
|
430
430
|
},
|
|
431
431
|
onChange(e) {
|
|
432
432
|
if (e.nativeEvent.defaultPrevented) return;
|
|
433
|
-
let t = e.currentTarget.value, n =
|
|
434
|
-
function
|
|
435
|
-
if (
|
|
433
|
+
let t = e.currentTarget.value, n = m(E, e.nativeEvent);
|
|
434
|
+
function r() {
|
|
435
|
+
if (N) return;
|
|
436
436
|
let e = Fe.current.find((e) => ze(e, F).toLowerCase() === t.toLowerCase() || Re(e, P).toLowerCase() === t.toLowerCase());
|
|
437
|
-
e != null && (
|
|
437
|
+
e != null && (oe(e !== le.initialValue), lt(e, n), U() && G.commit(e));
|
|
438
438
|
}
|
|
439
|
-
$.set("forceMount", !0), queueMicrotask(
|
|
439
|
+
$.set("forceMount", !0), queueMicrotask(r);
|
|
440
440
|
}
|
|
441
441
|
}),
|
|
442
|
-
id:
|
|
442
|
+
id: K && Ct == null ? `${K}-hidden-input` : void 0,
|
|
443
443
|
form: ee,
|
|
444
444
|
name: Ct,
|
|
445
445
|
autoComplete: g,
|
|
446
446
|
value: nt,
|
|
447
|
-
disabled:
|
|
448
|
-
required:
|
|
449
|
-
readOnly:
|
|
447
|
+
disabled: ve,
|
|
448
|
+
required: S && !St,
|
|
449
|
+
readOnly: b,
|
|
450
450
|
ref: xt,
|
|
451
|
-
style:
|
|
451
|
+
style: ye ? j : z,
|
|
452
452
|
tabIndex: -1,
|
|
453
453
|
"aria-hidden": !0,
|
|
454
454
|
suppressHydrationWarning: !0
|
|
@@ -466,108 +466,108 @@ function Ke(e, t) {
|
|
|
466
466
|
//#endregion
|
|
467
467
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
|
|
468
468
|
var qe = 2, Je = 400, Ye = 200, $ = {
|
|
469
|
-
...
|
|
470
|
-
...
|
|
469
|
+
...a,
|
|
470
|
+
...r,
|
|
471
471
|
value: () => null
|
|
472
472
|
}, Xe = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
473
|
-
let { render: n, className:
|
|
474
|
-
|
|
475
|
-
let V = be(R),
|
|
473
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: s = !0, style: c, ...l } = e, { setTouched: u, setFocused: p, validationMode: h, state: v, disabled: x } = Se(), { labelId: C } = o(), { store: w, setOpen: T, selectionRef: D, validation: te, readOnly: O, required: A, alignItemWithTriggerActiveRef: j, disabled: M, keyboardActiveRef: N } = Z(), P = x || M || a, F = d(w, Q.open), I = d(w, Q.value), L = d(w, Q.triggerProps), R = d(w, Q.positionerElement), z = d(w, Q.listElement), ne = d(w, Q.id), re = d(w, Q.labelId), ie = d(w, Q.hasSelectedValue), ae = !ie && F, oe = d(w, Q.hasNullItemLabel, ae), B = i ?? ne, se = Ke(C, re);
|
|
474
|
+
y({ id: B });
|
|
475
|
+
let V = be(R), U = Y.useRef(null), { getButtonProps: le, buttonRef: ue } = b({
|
|
476
476
|
disabled: P,
|
|
477
|
-
native:
|
|
478
|
-
}),
|
|
479
|
-
|
|
480
|
-
}),
|
|
477
|
+
native: s
|
|
478
|
+
}), de = ce((e) => {
|
|
479
|
+
w.set("triggerElement", e);
|
|
480
|
+
}), fe = k(t, U, ue, de), W = pe(), me = pe(), he = pe(), ge = pe();
|
|
481
481
|
Y.useEffect(() => {
|
|
482
|
-
if (F) return ie || oe ?
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
if (F) return ie || oe ? ge.start(Ye, () => {
|
|
483
|
+
D.current.allowUnselectedMouseUp = !0, he.start(Ye, () => {
|
|
484
|
+
D.current.allowSelectedMouseUp = !0;
|
|
485
485
|
});
|
|
486
|
-
}) :
|
|
487
|
-
|
|
486
|
+
}) : he.start(Je, () => {
|
|
487
|
+
D.current.allowUnselectedMouseUp = !0, D.current.allowSelectedMouseUp = !0;
|
|
488
488
|
}), () => {
|
|
489
|
-
|
|
489
|
+
he.clear(), ge.clear();
|
|
490
490
|
};
|
|
491
|
-
|
|
491
|
+
D.current = {
|
|
492
492
|
allowSelectedMouseUp: !1,
|
|
493
493
|
allowUnselectedMouseUp: !1
|
|
494
|
-
},
|
|
494
|
+
}, me.clear();
|
|
495
495
|
}, [
|
|
496
496
|
F,
|
|
497
497
|
ie,
|
|
498
498
|
oe,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
499
|
+
D,
|
|
500
|
+
me,
|
|
501
|
+
he,
|
|
502
|
+
ge
|
|
503
503
|
]);
|
|
504
|
-
let
|
|
505
|
-
id:
|
|
504
|
+
let K = Y.useMemo(() => z?.id ?? S(R)?.id, [z, R]), _e = H(L, {
|
|
505
|
+
id: B,
|
|
506
506
|
role: "combobox",
|
|
507
507
|
"aria-expanded": F ? "true" : "false",
|
|
508
508
|
"aria-haspopup": "listbox",
|
|
509
|
-
"aria-controls": F ?
|
|
510
|
-
"aria-labelledby":
|
|
511
|
-
"aria-readonly":
|
|
512
|
-
"aria-required":
|
|
509
|
+
"aria-controls": F ? K : void 0,
|
|
510
|
+
"aria-labelledby": se,
|
|
511
|
+
"aria-readonly": O || void 0,
|
|
512
|
+
"aria-required": A || void 0,
|
|
513
513
|
tabIndex: P ? -1 : 0,
|
|
514
|
-
ref:
|
|
514
|
+
ref: fe,
|
|
515
515
|
onFocus(e) {
|
|
516
|
-
|
|
517
|
-
|
|
516
|
+
p(!0), F && j.current && T(!1, m(E, e.nativeEvent)), W.start(0, () => {
|
|
517
|
+
w.set("forceMount", !0);
|
|
518
518
|
});
|
|
519
519
|
},
|
|
520
520
|
onBlur(e) {
|
|
521
|
-
|
|
521
|
+
_(R, e.relatedTarget) || (u(!0), p(!1), h === "onBlur" && te.commit(I));
|
|
522
522
|
},
|
|
523
523
|
onPointerMove() {
|
|
524
|
-
|
|
524
|
+
N.current = !1;
|
|
525
525
|
},
|
|
526
526
|
onKeyDown() {
|
|
527
|
-
|
|
527
|
+
N.current = !0;
|
|
528
528
|
},
|
|
529
529
|
onMouseDown(e) {
|
|
530
530
|
if (F) return;
|
|
531
531
|
let t = ee(e.currentTarget);
|
|
532
532
|
function n(e) {
|
|
533
|
-
if (!
|
|
533
|
+
if (!U.current) return;
|
|
534
534
|
let t = e.target;
|
|
535
|
-
if (
|
|
536
|
-
let n =
|
|
537
|
-
e.clientX >= n.left - qe && e.clientX <= n.right + qe && e.clientY >= n.top - qe && e.clientY <= n.bottom + qe ||
|
|
535
|
+
if (_(U.current, t) || _(V.current, t) || t === U.current) return;
|
|
536
|
+
let n = G(U.current);
|
|
537
|
+
e.clientX >= n.left - qe && e.clientX <= n.right + qe && e.clientY >= n.top - qe && e.clientY <= n.bottom + qe || T(!1, m(g, e));
|
|
538
538
|
}
|
|
539
|
-
|
|
539
|
+
me.start(0, () => {
|
|
540
540
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
},
|
|
544
|
-
|
|
543
|
+
}, te.getValidationProps, l, le);
|
|
544
|
+
_e.role = "combobox";
|
|
545
545
|
let ve = {
|
|
546
|
-
...
|
|
546
|
+
...v,
|
|
547
547
|
open: F,
|
|
548
548
|
disabled: P,
|
|
549
549
|
value: I,
|
|
550
|
-
readOnly:
|
|
550
|
+
readOnly: O,
|
|
551
551
|
placeholder: !ie
|
|
552
552
|
};
|
|
553
|
-
return
|
|
554
|
-
ref: [t,
|
|
553
|
+
return f("button", e, {
|
|
554
|
+
ref: [t, U],
|
|
555
555
|
state: ve,
|
|
556
556
|
stateAttributesMapping: $,
|
|
557
|
-
props:
|
|
557
|
+
props: _e
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
process.env.NODE_ENV !== "production" && (Xe.displayName = "SelectTrigger");
|
|
561
561
|
//#endregion
|
|
562
562
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/value/SelectValue.js
|
|
563
563
|
var Ze = { value: () => null }, Qe = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
564
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store:
|
|
565
|
-
value:
|
|
564
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: l } = Z(), u = d(c, Q.value), p = d(c, Q.items), m = d(c, Q.itemToStringLabel), h = d(c, Q.hasSelectedValue), ee = !h && a != null && i == null, g = d(c, Q.hasNullItemLabel, ee), _ = {
|
|
565
|
+
value: u,
|
|
566
566
|
placeholder: !h
|
|
567
567
|
}, v = null;
|
|
568
|
-
return v = typeof i == "function" ? i(
|
|
568
|
+
return v = typeof i == "function" ? i(u) : i ?? (!h && a != null && !g ? a : Array.isArray(u) ? Ve(u, p, m) : Be(u, p, m)), f("span", e, {
|
|
569
569
|
state: _,
|
|
570
|
-
ref: [t,
|
|
570
|
+
ref: [t, l],
|
|
571
571
|
props: [{ children: v }, s],
|
|
572
572
|
stateAttributesMapping: Ze
|
|
573
573
|
});
|
|
@@ -576,15 +576,15 @@ process.env.NODE_ENV !== "production" && (Qe.displayName = "SelectValue");
|
|
|
576
576
|
//#endregion
|
|
577
577
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
|
|
578
578
|
var $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
579
|
-
let { className: n, render: r, style:
|
|
580
|
-
return
|
|
581
|
-
state:
|
|
579
|
+
let { className: n, render: r, style: a, ...o } = e, { store: s } = Z(), c = { open: d(s, Q.open) };
|
|
580
|
+
return f("span", e, {
|
|
581
|
+
state: c,
|
|
582
582
|
ref: t,
|
|
583
583
|
props: [{
|
|
584
584
|
"aria-hidden": !0,
|
|
585
585
|
children: "▼"
|
|
586
586
|
}, o],
|
|
587
|
-
stateAttributesMapping:
|
|
587
|
+
stateAttributesMapping: i
|
|
588
588
|
});
|
|
589
589
|
});
|
|
590
590
|
process.env.NODE_ENV !== "production" && ($e.displayName = "SelectIcon");
|
|
@@ -595,10 +595,10 @@ process.env.NODE_ENV !== "production" && (et.displayName = "SelectPortalContext"
|
|
|
595
595
|
//#endregion
|
|
596
596
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
597
597
|
var tt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
598
|
-
let { store: n } = Z(), r =
|
|
598
|
+
let { store: n } = Z(), r = d(n, Q.mounted), i = d(n, Q.forceMount);
|
|
599
599
|
return r || i ? /*#__PURE__*/ X(et.Provider, {
|
|
600
600
|
value: !0,
|
|
601
|
-
children: /*#__PURE__*/ X(
|
|
601
|
+
children: /*#__PURE__*/ X(B, {
|
|
602
602
|
ref: t,
|
|
603
603
|
...e
|
|
604
604
|
})
|
|
@@ -611,7 +611,7 @@ var nt = /*#__PURE__*/ Y.createContext(void 0);
|
|
|
611
611
|
process.env.NODE_ENV !== "production" && (nt.displayName = "SelectPositionerContext");
|
|
612
612
|
function rt() {
|
|
613
613
|
let e = Y.useContext(nt);
|
|
614
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ?
|
|
614
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? K(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
615
615
|
return e;
|
|
616
616
|
}
|
|
617
617
|
//#endregion
|
|
@@ -625,84 +625,84 @@ var at = {
|
|
|
625
625
|
overflowX: "hidden",
|
|
626
626
|
overflowY: "auto"
|
|
627
627
|
}, ot = { position: "fixed" }, st = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
628
|
-
let { anchor: n, positionMethod:
|
|
629
|
-
!
|
|
630
|
-
|
|
631
|
-
}, [b,
|
|
632
|
-
let H =
|
|
628
|
+
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: h = !1, disableAnchorTracking: ee, alignItemWithTrigger: g = !0, collisionAvoidance: _ = R, style: v, ...y } = e, { store: b, listRef: x, labelsRef: S, alignItemWithTriggerActiveRef: C, selectedItemTextRef: w, valuesRef: T, initialValueRef: D, popupRef: te, setValue: O } = Z(), k = ke(), A = d(b, Q.open), j = d(b, Q.mounted), N = d(b, Q.modal), F = d(b, Q.value), I = d(b, Q.openMethod), L = d(b, Q.positionerElement), z = d(b, Q.triggerElement), ne = d(b, Q.isItemEqualToValue), re = d(b, Q.transitionStatus), ie = Y.useRef(null), oe = Y.useRef(null), [B, se] = Y.useState(g), V = j && B && I !== "touch";
|
|
629
|
+
!j && B !== g && se(g), W(() => {
|
|
630
|
+
j || (Q.scrollUpArrowVisible(b.state) && b.set("scrollUpArrowVisible", !1), Q.scrollDownArrowVisible(b.state) && b.set("scrollDownArrowVisible", !1));
|
|
631
|
+
}, [b, j]), Y.useImperativeHandle(C, () => V), M((V || N) && A, I === "touch", L, z);
|
|
632
|
+
let H = ve({
|
|
633
633
|
anchor: n,
|
|
634
|
-
floatingRootContext:
|
|
635
|
-
positionMethod:
|
|
636
|
-
mounted:
|
|
637
|
-
side:
|
|
638
|
-
sideOffset:
|
|
639
|
-
align:
|
|
640
|
-
alignOffset:
|
|
641
|
-
arrowPadding:
|
|
642
|
-
collisionBoundary:
|
|
643
|
-
collisionPadding:
|
|
634
|
+
floatingRootContext: k,
|
|
635
|
+
positionMethod: r,
|
|
636
|
+
mounted: j,
|
|
637
|
+
side: o,
|
|
638
|
+
sideOffset: c,
|
|
639
|
+
align: s,
|
|
640
|
+
alignOffset: l,
|
|
641
|
+
arrowPadding: p,
|
|
642
|
+
collisionBoundary: u,
|
|
643
|
+
collisionPadding: f,
|
|
644
644
|
sticky: h,
|
|
645
|
-
disableAnchorTracking: ee ??
|
|
645
|
+
disableAnchorTracking: ee ?? V,
|
|
646
646
|
collisionAvoidance: _,
|
|
647
647
|
keepMounted: !0
|
|
648
|
-
}),
|
|
649
|
-
open:
|
|
650
|
-
side:
|
|
648
|
+
}), U = V ? "none" : H.side, ue = V ? ot : H.positionerStyles, de = {
|
|
649
|
+
open: A,
|
|
650
|
+
side: U,
|
|
651
651
|
align: H.align,
|
|
652
652
|
anchorHidden: H.anchorHidden
|
|
653
|
-
},
|
|
653
|
+
}, fe = ce((e) => {
|
|
654
654
|
b.set("positionerElement", e);
|
|
655
|
-
}),
|
|
655
|
+
}), pe = me(e, de, {
|
|
656
656
|
styles: ue,
|
|
657
657
|
transitionStatus: re,
|
|
658
658
|
props: y,
|
|
659
|
-
refs: [t,
|
|
660
|
-
hidden: !
|
|
661
|
-
inert: !
|
|
662
|
-
}),
|
|
663
|
-
if (e.size === 0 &&
|
|
664
|
-
let t =
|
|
665
|
-
if (
|
|
666
|
-
let n =
|
|
667
|
-
if (t !== 0 && !b.state.multiple &&
|
|
668
|
-
let e =
|
|
669
|
-
|
|
659
|
+
refs: [t, fe],
|
|
660
|
+
hidden: !j,
|
|
661
|
+
inert: !A
|
|
662
|
+
}), he = Y.useRef(0), G = ce((e) => {
|
|
663
|
+
if (e.size === 0 && he.current === 0 || T.current.length === 0) return;
|
|
664
|
+
let t = he.current;
|
|
665
|
+
if (he.current = e.size, e.size === t) return;
|
|
666
|
+
let n = m(E);
|
|
667
|
+
if (t !== 0 && !b.state.multiple && F !== null && Ne(T.current, F, ne) === -1) {
|
|
668
|
+
let e = D.current, t = e != null && Ne(T.current, e, ne) !== -1 ? e : null;
|
|
669
|
+
O(t, n), t === null && (b.set("selectedIndex", null), w.current = null);
|
|
670
670
|
}
|
|
671
|
-
if (t !== 0 && b.state.multiple && Array.isArray(
|
|
672
|
-
let e = (e) => Ne(T.current, e, ne) !== -1, t =
|
|
673
|
-
(t.length !==
|
|
671
|
+
if (t !== 0 && b.state.multiple && Array.isArray(F)) {
|
|
672
|
+
let e = (e) => Ne(T.current, e, ne) !== -1, t = F.filter((t) => e(t));
|
|
673
|
+
(t.length !== F.length || t.some((e) => !Me(F, e, ne))) && (O(t, n), t.length === 0 && (b.set("selectedIndex", null), w.current = null));
|
|
674
674
|
}
|
|
675
|
-
if (
|
|
675
|
+
if (A && V) {
|
|
676
676
|
b.update({
|
|
677
677
|
scrollUpArrowVisible: !1,
|
|
678
678
|
scrollDownArrowVisible: !1
|
|
679
679
|
});
|
|
680
680
|
let e = { height: "" };
|
|
681
|
-
it(L, e), it(
|
|
681
|
+
it(L, e), it(te.current, e);
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), ge = Y.useMemo(() => ({
|
|
684
684
|
...H,
|
|
685
|
-
side:
|
|
686
|
-
alignItemWithTriggerActive:
|
|
685
|
+
side: U,
|
|
686
|
+
alignItemWithTriggerActive: V,
|
|
687
687
|
setControlledAlignItemWithTrigger: se,
|
|
688
688
|
scrollUpArrowRef: ie,
|
|
689
|
-
scrollDownArrowRef:
|
|
689
|
+
scrollDownArrowRef: oe
|
|
690
690
|
}), [
|
|
691
691
|
H,
|
|
692
|
-
|
|
693
|
-
|
|
692
|
+
U,
|
|
693
|
+
V,
|
|
694
694
|
se
|
|
695
695
|
]);
|
|
696
|
-
return /*#__PURE__*/ X(
|
|
696
|
+
return /*#__PURE__*/ X(ae, {
|
|
697
697
|
elementsRef: x,
|
|
698
698
|
labelsRef: S,
|
|
699
|
-
onMapChange:
|
|
699
|
+
onMapChange: G,
|
|
700
700
|
children: /*#__PURE__*/ we(nt.Provider, {
|
|
701
|
-
value:
|
|
702
|
-
children: [
|
|
703
|
-
inert:
|
|
704
|
-
cutout:
|
|
705
|
-
}),
|
|
701
|
+
value: ge,
|
|
702
|
+
children: [j && N && /*#__PURE__*/ X(P, {
|
|
703
|
+
inert: le(!A),
|
|
704
|
+
cutout: z
|
|
705
|
+
}), pe]
|
|
706
706
|
})
|
|
707
707
|
});
|
|
708
708
|
});
|
|
@@ -732,177 +732,177 @@ function ft() {
|
|
|
732
732
|
//#endregion
|
|
733
733
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
734
734
|
var pt = {
|
|
735
|
-
...
|
|
736
|
-
...
|
|
737
|
-
}, mt = /*#__PURE__*/ Y.forwardRef(function(e,
|
|
738
|
-
let { render: r, className: i, style: a, finalFocus: o, ...s } = e, { store:
|
|
739
|
-
if (!
|
|
740
|
-
if (
|
|
741
|
-
|
|
735
|
+
...w,
|
|
736
|
+
...F
|
|
737
|
+
}, mt = /*#__PURE__*/ Y.forwardRef(function(e, n) {
|
|
738
|
+
let { render: r, className: i, style: a, finalFocus: o, ...s } = e, { store: c, popupRef: l, onOpenChangeComplete: u, setOpen: h, valueRef: g, selectedItemTextRef: _, keyboardActiveRef: v, multiple: y, handleScrollArrowVisibility: b, scrollHandlerRef: x, listRef: S, highlightItemOnHover: C } = Z(), { side: w, align: T, alignItemWithTriggerActive: E, isPositioned: D, setControlledAlignItemWithTrigger: te, scrollDownArrowRef: O, scrollUpArrowRef: k } = rt(), j = t(!0) != null, M = ke(), P = L(), { nonce: F, disableStyleElements: I } = ft(), R = d(c, Q.id), z = d(c, Q.open), ne = d(c, Q.mounted), re = d(c, Q.popupProps), ie = d(c, Q.transitionStatus), ae = d(c, Q.triggerElement), B = d(c, Q.positionerElement), V = d(c, Q.listElement), H = Y.useRef(!1), le = Y.useRef(!1), ue = Y.useRef({}), fe = ge(), pe = ce((e) => {
|
|
739
|
+
if (!B || !l.current || !le.current) return;
|
|
740
|
+
if (H.current || !E) {
|
|
741
|
+
b();
|
|
742
742
|
return;
|
|
743
743
|
}
|
|
744
|
-
let t =
|
|
744
|
+
let t = B.style.top === "0px", n = B.style.bottom === "0px";
|
|
745
745
|
if (!t && !n) {
|
|
746
|
-
|
|
746
|
+
b();
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
let r = _t(
|
|
750
|
-
|
|
751
|
-
},
|
|
749
|
+
let r = _t(B), i = vt(B.getBoundingClientRect().height, "y", r), a = ee(B), o = getComputedStyle(B), s = parseFloat(o.marginTop), c = parseFloat(o.marginBottom), u = ht(getComputedStyle(l.current)), d = Math.min(a.documentElement.clientHeight - s - c, u), f = e.scrollTop, p = gt(e), m = 0, h = null, g = !1, _ = !1, v = (e) => {
|
|
750
|
+
B.style.height = `${e}px`;
|
|
751
|
+
}, y = (t, n) => {
|
|
752
752
|
let r = He(t, 0, d - i);
|
|
753
|
-
r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (
|
|
753
|
+
r > 0 && v(i + r), e.scrollTop = n, d - (i + r) <= 1 && (H.current = !0), b();
|
|
754
754
|
}, x = t ? p - f : f, S = Math.min(i + x, d);
|
|
755
755
|
if (m = S, x <= 1) {
|
|
756
|
-
|
|
756
|
+
y(x, t ? p : 0);
|
|
757
757
|
return;
|
|
758
758
|
}
|
|
759
759
|
if (d - S > 1 ? t ? _ = !0 : h = 0 : (g = !0, n && f < p && (h = f - (x - (i + x - d)))), m = Math.ceil(m), m !== 0 && v(m), _ || h != null) {
|
|
760
760
|
let t = gt(e), n = _ ? t : He(h, 0, t);
|
|
761
761
|
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
762
762
|
}
|
|
763
|
-
(g || m >= d - 1) && (
|
|
763
|
+
(g || m >= d - 1) && (H.current = !0), b();
|
|
764
764
|
});
|
|
765
|
-
Y.useImperativeHandle(
|
|
765
|
+
Y.useImperativeHandle(x, () => pe, [pe]), A({
|
|
766
766
|
open: z,
|
|
767
|
-
ref:
|
|
767
|
+
ref: l,
|
|
768
768
|
onComplete() {
|
|
769
|
-
z &&
|
|
769
|
+
z && u?.(!0);
|
|
770
770
|
}
|
|
771
771
|
});
|
|
772
|
-
let
|
|
772
|
+
let me = {
|
|
773
773
|
open: z,
|
|
774
|
-
transitionStatus:
|
|
775
|
-
side:
|
|
776
|
-
align:
|
|
774
|
+
transitionStatus: ie,
|
|
775
|
+
side: w,
|
|
776
|
+
align: T
|
|
777
777
|
};
|
|
778
778
|
W(() => {
|
|
779
|
-
!
|
|
780
|
-
top:
|
|
781
|
-
left:
|
|
782
|
-
right:
|
|
783
|
-
height:
|
|
784
|
-
bottom:
|
|
785
|
-
minHeight:
|
|
786
|
-
maxHeight:
|
|
787
|
-
marginTop:
|
|
788
|
-
marginBottom:
|
|
779
|
+
!B || !l.current || Object.keys(ue.current).length || (ue.current = {
|
|
780
|
+
top: B.style.top || "0",
|
|
781
|
+
left: B.style.left || "0",
|
|
782
|
+
right: B.style.right,
|
|
783
|
+
height: B.style.height,
|
|
784
|
+
bottom: B.style.bottom,
|
|
785
|
+
minHeight: B.style.minHeight,
|
|
786
|
+
maxHeight: B.style.maxHeight,
|
|
787
|
+
marginTop: B.style.marginTop,
|
|
788
|
+
marginBottom: B.style.marginBottom
|
|
789
789
|
});
|
|
790
|
-
}, [
|
|
791
|
-
z ||
|
|
790
|
+
}, [l, B]), W(() => {
|
|
791
|
+
z || E || (le.current = !1, H.current = !1, it(B, ue.current));
|
|
792
792
|
}, [
|
|
793
793
|
z,
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
794
|
+
E,
|
|
795
|
+
B,
|
|
796
|
+
l
|
|
797
797
|
]), W(() => {
|
|
798
|
-
let e =
|
|
799
|
-
if (!z || !
|
|
800
|
-
if (!
|
|
801
|
-
|
|
798
|
+
let e = l.current;
|
|
799
|
+
if (!z || !ae || !B || !e || E && !D || c.state.transitionStatus === "ending") return;
|
|
800
|
+
if (!E) {
|
|
801
|
+
le.current = !0, fe.request(b), e.style.removeProperty("--transform-origin");
|
|
802
802
|
return;
|
|
803
803
|
}
|
|
804
804
|
let t = xt(e);
|
|
805
805
|
e.style.removeProperty("--transform-origin");
|
|
806
806
|
try {
|
|
807
|
-
let t =
|
|
807
|
+
let t = _.current, n = g.current, r = getComputedStyle(B), i = getComputedStyle(e), a = ee(ae), o = oe(B), s = _t(ae), l = yt(ae.getBoundingClientRect(), s), u = yt(B.getBoundingClientRect(), s), d = l.height, f = V || e, m = f.scrollHeight, h = parseFloat(i.borderBottomWidth), v = parseFloat(r.marginTop) || 10, y = parseFloat(r.marginBottom) || 10, x = parseFloat(r.minHeight) || 100, w = ht(i), T = a.documentElement.clientHeight - v - y, E = a.documentElement.clientWidth, D = T - l.bottom + d, O, k = P === "rtl" ? l.right - u.width : l.left, A = 0;
|
|
808
808
|
if (t && n) {
|
|
809
809
|
let e = yt(n.getBoundingClientRect(), s);
|
|
810
|
-
|
|
811
|
-
let r = e.top -
|
|
812
|
-
|
|
810
|
+
O = yt(t.getBoundingClientRect(), s), k = u.left + (P === "rtl" ? e.right - O.right : e.left - O.left);
|
|
811
|
+
let r = e.top - l.top + e.height / 2;
|
|
812
|
+
A = O.top - u.top + O.height / 2 - r;
|
|
813
813
|
}
|
|
814
|
-
let
|
|
815
|
-
|
|
816
|
-
let L = gt(f), R =
|
|
817
|
-
R && (
|
|
818
|
-
let
|
|
819
|
-
if (
|
|
820
|
-
|
|
814
|
+
let j = D + A + y + h, M = Math.min(T, j), N = T - v - y, F = j - M, I = E - 5;
|
|
815
|
+
B.style.left = `${He(k, 5, I - u.width)}px`, B.style.height = `${M}px`, B.style.maxHeight = "auto", B.style.marginTop = `${v}px`, B.style.marginBottom = `${y}px`, e.style.height = "100%";
|
|
816
|
+
let L = gt(f), R = F >= L - 1;
|
|
817
|
+
R && (M = Math.min(T, u.height) - (F - L));
|
|
818
|
+
let z = l.top < 20 || l.bottom > T - 20 || Math.ceil(M) + 1 < Math.min(m, x), ne = (o.visualViewport?.scale ?? 1) !== 1 && p;
|
|
819
|
+
if (z || ne) {
|
|
820
|
+
le.current = !0, it(B, ue.current), te(!1);
|
|
821
821
|
return;
|
|
822
822
|
}
|
|
823
|
-
let
|
|
823
|
+
let re = Math.max(x, M);
|
|
824
824
|
if (R) {
|
|
825
|
-
let e = Math.max(0,
|
|
826
|
-
|
|
827
|
-
} else
|
|
828
|
-
if (
|
|
829
|
-
let t = u.top, n = u.height, r =
|
|
825
|
+
let e = Math.max(0, T - j);
|
|
826
|
+
B.style.top = u.height >= N ? "0" : `${e}px`, B.style.height = `${M}px`, f.scrollTop = gt(f);
|
|
827
|
+
} else B.style.bottom = "0", f.scrollTop = F;
|
|
828
|
+
if (O) {
|
|
829
|
+
let t = u.top, n = u.height, r = O.top + O.height / 2, i = He(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
830
830
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
831
831
|
}
|
|
832
|
-
(
|
|
832
|
+
(re === T || M >= w) && (H.current = !0), b(), C && c.state.selectedIndex === null && c.state.activeIndex === null && S.current[0] != null && c.set("activeIndex", 0), le.current = !0;
|
|
833
833
|
} finally {
|
|
834
834
|
t();
|
|
835
835
|
}
|
|
836
836
|
}, [
|
|
837
|
-
|
|
837
|
+
c,
|
|
838
838
|
z,
|
|
839
|
-
V,
|
|
840
839
|
B,
|
|
841
|
-
|
|
840
|
+
ae,
|
|
842
841
|
g,
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
842
|
+
_,
|
|
843
|
+
l,
|
|
844
|
+
b,
|
|
845
|
+
E,
|
|
846
|
+
te,
|
|
847
|
+
fe,
|
|
848
848
|
O,
|
|
849
849
|
k,
|
|
850
|
-
|
|
851
|
-
x,
|
|
850
|
+
V,
|
|
852
851
|
S,
|
|
853
|
-
|
|
854
|
-
|
|
852
|
+
C,
|
|
853
|
+
P,
|
|
854
|
+
D
|
|
855
855
|
]), Y.useEffect(() => {
|
|
856
|
-
if (!
|
|
857
|
-
let e =
|
|
856
|
+
if (!E || !B || !z) return;
|
|
857
|
+
let e = oe(B);
|
|
858
858
|
function t(e) {
|
|
859
|
-
|
|
859
|
+
h(!1, m(de, e));
|
|
860
860
|
}
|
|
861
|
-
return
|
|
861
|
+
return N(e, "resize", t);
|
|
862
862
|
}, [
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
h,
|
|
864
|
+
E,
|
|
865
|
+
B,
|
|
866
866
|
z
|
|
867
867
|
]);
|
|
868
|
-
let
|
|
869
|
-
...
|
|
868
|
+
let he = {
|
|
869
|
+
...V ? {
|
|
870
870
|
role: "presentation",
|
|
871
871
|
"aria-orientation": void 0
|
|
872
872
|
} : {
|
|
873
873
|
role: "listbox",
|
|
874
|
-
"aria-multiselectable":
|
|
875
|
-
id: `${
|
|
874
|
+
"aria-multiselectable": y || void 0,
|
|
875
|
+
id: `${R}-list`
|
|
876
876
|
},
|
|
877
877
|
onKeyDown(e) {
|
|
878
|
-
|
|
878
|
+
v.current = !0, j && q.has(e.key) && e.stopPropagation();
|
|
879
879
|
},
|
|
880
880
|
onMouseMove() {
|
|
881
|
-
|
|
881
|
+
v.current = !1;
|
|
882
882
|
},
|
|
883
883
|
onScroll(e) {
|
|
884
|
-
|
|
884
|
+
V || pe(e.currentTarget);
|
|
885
885
|
},
|
|
886
|
-
...
|
|
887
|
-
},
|
|
888
|
-
ref: [
|
|
889
|
-
state:
|
|
886
|
+
...E && { style: V ? { height: "100%" } : at }
|
|
887
|
+
}, G = f("div", e, {
|
|
888
|
+
ref: [n, l],
|
|
889
|
+
state: me,
|
|
890
890
|
stateAttributesMapping: pt,
|
|
891
891
|
props: [
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
{ className: !
|
|
892
|
+
re,
|
|
893
|
+
he,
|
|
894
|
+
se(ie),
|
|
895
|
+
{ className: !V && E ? lt.className : void 0 },
|
|
896
896
|
s
|
|
897
897
|
]
|
|
898
898
|
});
|
|
899
|
-
return /*#__PURE__*/ we(Y.Fragment, { children: [!
|
|
900
|
-
context:
|
|
899
|
+
return /*#__PURE__*/ we(Y.Fragment, { children: [!I && lt.getElement(F), /*#__PURE__*/ X(U, {
|
|
900
|
+
context: M,
|
|
901
901
|
modal: !1,
|
|
902
|
-
disabled: !
|
|
902
|
+
disabled: !ne,
|
|
903
903
|
returnFocus: o,
|
|
904
904
|
restoreFocus: !0,
|
|
905
|
-
children:
|
|
905
|
+
children: G
|
|
906
906
|
})] });
|
|
907
907
|
});
|
|
908
908
|
process.env.NODE_ENV !== "production" && (mt.displayName = "SelectPopup");
|
|
@@ -920,7 +920,7 @@ function vt(e, t, n) {
|
|
|
920
920
|
return e / n[t];
|
|
921
921
|
}
|
|
922
922
|
function yt(e, t) {
|
|
923
|
-
return
|
|
923
|
+
return ye({
|
|
924
924
|
x: vt(e.x, "x", t),
|
|
925
925
|
y: vt(e.y, "y", t),
|
|
926
926
|
width: vt(e.width, "x", t),
|
|
@@ -945,19 +945,19 @@ function xt(e) {
|
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/list/SelectList.js
|
|
947
947
|
var St = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
948
|
-
let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = Z(), { alignItemWithTriggerActive:
|
|
949
|
-
id: `${
|
|
948
|
+
let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = Z(), { alignItemWithTriggerActive: c } = rt(), l = d(o, Q.hasScrollArrows), u = d(o, Q.openMethod), p = d(o, Q.multiple), m = {
|
|
949
|
+
id: `${d(o, Q.id)}-list`,
|
|
950
950
|
role: "listbox",
|
|
951
951
|
"aria-multiselectable": p || void 0,
|
|
952
952
|
onScroll(e) {
|
|
953
953
|
s.current?.(e.currentTarget);
|
|
954
954
|
},
|
|
955
|
-
...
|
|
956
|
-
className:
|
|
957
|
-
}, h =
|
|
955
|
+
...c && { style: at },
|
|
956
|
+
className: l && u !== "touch" ? lt.className : void 0
|
|
957
|
+
}, h = ce((e) => {
|
|
958
958
|
o.set("listElement", e);
|
|
959
959
|
});
|
|
960
|
-
return
|
|
960
|
+
return f("div", e, {
|
|
961
961
|
ref: [t, h],
|
|
962
962
|
props: [m, a]
|
|
963
963
|
});
|
|
@@ -969,78 +969,78 @@ var Ct = /*#__PURE__*/ Y.createContext(void 0);
|
|
|
969
969
|
process.env.NODE_ENV !== "production" && (Ct.displayName = "SelectItemContext");
|
|
970
970
|
function wt() {
|
|
971
971
|
let e = Y.useContext(Ct);
|
|
972
|
-
if (!e) throw Error(process.env.NODE_ENV === "production" ?
|
|
972
|
+
if (!e) throw Error(process.env.NODE_ENV === "production" ? K(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
973
973
|
return e;
|
|
974
974
|
}
|
|
975
975
|
//#endregion
|
|
976
976
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item/SelectItem.js
|
|
977
977
|
var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
978
|
-
let { render: n, className: r, value: i = null, label: a, disabled: o = !1, nativeButton: s = !1, style:
|
|
978
|
+
let { render: n, className: r, value: i = null, label: a, disabled: o = !1, nativeButton: s = !1, style: c, ...l } = e, u = Y.useRef(null), p = C({
|
|
979
979
|
label: a,
|
|
980
|
-
textRef:
|
|
981
|
-
indexGuessBehavior:
|
|
982
|
-
}), { store:
|
|
980
|
+
textRef: u,
|
|
981
|
+
indexGuessBehavior: xe.GuessFromOrder
|
|
982
|
+
}), { store: h, getItemProps: ee, setOpen: g, setValue: _, selectionRef: v, typingRef: y, valuesRef: x, multiple: S, selectedItemTextRef: w } = Z(), T = d(h, Q.isActive, p.index), E = d(h, Q.isSelected, p.index, i), D = d(h, Q.isSelectedByFocus, p.index), te = d(h, Q.isItemEqualToValue), O = p.index, k = O !== -1, A = Y.useRef(null), j = be(O);
|
|
983
983
|
W(() => {
|
|
984
|
-
if (!
|
|
985
|
-
let e =
|
|
986
|
-
return e[
|
|
987
|
-
delete e[
|
|
984
|
+
if (!k) return;
|
|
985
|
+
let e = x.current;
|
|
986
|
+
return e[O] = i, () => {
|
|
987
|
+
delete e[O];
|
|
988
988
|
};
|
|
989
989
|
}, [
|
|
990
|
+
k,
|
|
990
991
|
O,
|
|
991
|
-
D,
|
|
992
992
|
i,
|
|
993
|
-
|
|
993
|
+
x
|
|
994
994
|
]), W(() => {
|
|
995
|
-
if (!
|
|
996
|
-
let e =
|
|
997
|
-
|
|
995
|
+
if (!k) return;
|
|
996
|
+
let e = h.state.value, t = e;
|
|
997
|
+
S && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 && je(i, t, te) && (h.set("selectedIndex", O), u.current && (w.current = u.current));
|
|
998
998
|
}, [
|
|
999
|
+
k,
|
|
999
1000
|
O,
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
m,
|
|
1001
|
+
S,
|
|
1002
|
+
te,
|
|
1003
|
+
h,
|
|
1004
1004
|
i,
|
|
1005
|
-
|
|
1005
|
+
w
|
|
1006
1006
|
]);
|
|
1007
1007
|
let M = {
|
|
1008
1008
|
disabled: o,
|
|
1009
|
-
selected:
|
|
1010
|
-
highlighted:
|
|
1011
|
-
}, N =
|
|
1012
|
-
active:
|
|
1013
|
-
selected:
|
|
1009
|
+
selected: E,
|
|
1010
|
+
highlighted: T
|
|
1011
|
+
}, N = ee({
|
|
1012
|
+
active: T,
|
|
1013
|
+
selected: E
|
|
1014
1014
|
});
|
|
1015
1015
|
N.id = void 0;
|
|
1016
|
-
let P = Y.useRef(null), F = Y.useRef("mouse"), I = Y.useRef(!1), { getButtonProps: L, buttonRef: R } =
|
|
1016
|
+
let P = Y.useRef(null), F = Y.useRef("mouse"), I = Y.useRef(!1), { getButtonProps: L, buttonRef: R } = b({
|
|
1017
1017
|
disabled: o,
|
|
1018
1018
|
focusableWhenDisabled: !0,
|
|
1019
1019
|
native: s,
|
|
1020
1020
|
composite: !0
|
|
1021
1021
|
});
|
|
1022
|
-
function
|
|
1023
|
-
let t =
|
|
1024
|
-
if (
|
|
1025
|
-
let n = Array.isArray(t) ? t : [], r =
|
|
1026
|
-
|
|
1027
|
-
} else
|
|
1022
|
+
function z(e) {
|
|
1023
|
+
let t = h.state.value;
|
|
1024
|
+
if (S) {
|
|
1025
|
+
let n = Array.isArray(t) ? t : [], r = E ? Pe(n, i, te) : [...n, i];
|
|
1026
|
+
_(r, m(J, e));
|
|
1027
|
+
} else _(i, m(J, e)), g(!1, m(J, e));
|
|
1028
1028
|
}
|
|
1029
|
-
let
|
|
1029
|
+
let ne = {
|
|
1030
1030
|
role: "option",
|
|
1031
|
-
"aria-selected":
|
|
1032
|
-
tabIndex:
|
|
1031
|
+
"aria-selected": E,
|
|
1032
|
+
tabIndex: T ? 0 : -1,
|
|
1033
1033
|
onTouchStart() {
|
|
1034
|
-
|
|
1034
|
+
v.current = {
|
|
1035
1035
|
allowSelectedMouseUp: !1,
|
|
1036
1036
|
allowUnselectedMouseUp: !1
|
|
1037
1037
|
};
|
|
1038
1038
|
},
|
|
1039
1039
|
onKeyDown(e) {
|
|
1040
|
-
P.current = e.key,
|
|
1040
|
+
P.current = e.key, h.set("activeIndex", O), e.key === " " && y.current && e.preventDefault();
|
|
1041
1041
|
},
|
|
1042
1042
|
onClick(e) {
|
|
1043
|
-
I.current = !1, (e.type !== "keydown" || P.current !== null) && (o || e.type === "keydown" && P.current === " " &&
|
|
1043
|
+
I.current = !1, (e.type !== "keydown" || P.current !== null) && (o || e.type === "keydown" && P.current === " " && y.current || F.current !== "touch" && !T || (P.current = null, z(e.nativeEvent)));
|
|
1044
1044
|
},
|
|
1045
1045
|
onPointerEnter(e) {
|
|
1046
1046
|
F.current = e.pointerType;
|
|
@@ -1054,10 +1054,10 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1054
1054
|
I.current = !1;
|
|
1055
1055
|
return;
|
|
1056
1056
|
}
|
|
1057
|
-
let e = !
|
|
1058
|
-
e || t || F.current !== "touch" && !
|
|
1057
|
+
let e = !v.current.allowSelectedMouseUp && E, t = !v.current.allowUnselectedMouseUp && !E;
|
|
1058
|
+
e || t || F.current !== "touch" && !T || A.current?.click();
|
|
1059
1059
|
}
|
|
1060
|
-
},
|
|
1060
|
+
}, re = f("div", e, {
|
|
1061
1061
|
ref: [
|
|
1062
1062
|
R,
|
|
1063
1063
|
t,
|
|
@@ -1067,26 +1067,26 @@ var Tt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1067
1067
|
state: M,
|
|
1068
1068
|
props: [
|
|
1069
1069
|
N,
|
|
1070
|
-
|
|
1071
|
-
|
|
1070
|
+
ne,
|
|
1071
|
+
l,
|
|
1072
1072
|
L
|
|
1073
1073
|
]
|
|
1074
1074
|
}), ie = Y.useMemo(() => ({
|
|
1075
|
-
selected:
|
|
1075
|
+
selected: E,
|
|
1076
1076
|
indexRef: j,
|
|
1077
|
-
textRef:
|
|
1078
|
-
selectedByFocus:
|
|
1079
|
-
hasRegistered:
|
|
1077
|
+
textRef: u,
|
|
1078
|
+
selectedByFocus: D,
|
|
1079
|
+
hasRegistered: k
|
|
1080
1080
|
}), [
|
|
1081
|
-
|
|
1081
|
+
E,
|
|
1082
1082
|
j,
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1083
|
+
u,
|
|
1084
|
+
D,
|
|
1085
|
+
k
|
|
1086
1086
|
]);
|
|
1087
1087
|
return /*#__PURE__*/ X(Ct.Provider, {
|
|
1088
1088
|
value: ie,
|
|
1089
|
-
children:
|
|
1089
|
+
children: re
|
|
1090
1090
|
});
|
|
1091
1091
|
}));
|
|
1092
1092
|
process.env.NODE_ENV !== "production" && (Tt.displayName = "SelectItem");
|
|
@@ -1100,32 +1100,32 @@ var Et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1100
1100
|
}) : null;
|
|
1101
1101
|
});
|
|
1102
1102
|
process.env.NODE_ENV !== "production" && (Et.displayName = "SelectItemIndicator");
|
|
1103
|
-
var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e,
|
|
1104
|
-
let { render:
|
|
1105
|
-
ref: [
|
|
1103
|
+
var Dt = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef((e, t) => {
|
|
1104
|
+
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } = wt(), c = Y.useRef(null), { transitionStatus: l, setMounted: u } = D(s), d = f("span", e, {
|
|
1105
|
+
ref: [t, c],
|
|
1106
1106
|
state: {
|
|
1107
|
-
selected:
|
|
1108
|
-
transitionStatus:
|
|
1107
|
+
selected: s,
|
|
1108
|
+
transitionStatus: l
|
|
1109
1109
|
},
|
|
1110
1110
|
props: [{
|
|
1111
1111
|
"aria-hidden": !0,
|
|
1112
1112
|
children: "✔️"
|
|
1113
|
-
},
|
|
1114
|
-
stateAttributesMapping:
|
|
1113
|
+
}, o],
|
|
1114
|
+
stateAttributesMapping: F
|
|
1115
1115
|
});
|
|
1116
|
-
return
|
|
1117
|
-
open:
|
|
1118
|
-
ref:
|
|
1116
|
+
return A({
|
|
1117
|
+
open: s,
|
|
1118
|
+
ref: c,
|
|
1119
1119
|
onComplete() {
|
|
1120
|
-
|
|
1120
|
+
s || u(!1);
|
|
1121
1121
|
}
|
|
1122
|
-
}),
|
|
1122
|
+
}), d;
|
|
1123
1123
|
}));
|
|
1124
1124
|
process.env.NODE_ENV !== "production" && (Dt.displayName = "Inner");
|
|
1125
1125
|
//#endregion
|
|
1126
1126
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item-text/SelectItemText.js
|
|
1127
1127
|
var Ot = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1128
|
-
let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } = wt(), { selectedItemTextRef: o } = Z(), { className: s, render:
|
|
1128
|
+
let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } = wt(), { selectedItemTextRef: o } = Z(), { className: s, render: c, style: l, ...u } = e, d = Y.useCallback((e) => {
|
|
1129
1129
|
if (!e || !a) return;
|
|
1130
1130
|
let t = o.current === null || !o.current.isConnected;
|
|
1131
1131
|
(i || t && n.current === 0) && (o.current = e);
|
|
@@ -1135,30 +1135,30 @@ var Ot = /*#__PURE__*/ Y.memo(/*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1135
1135
|
i,
|
|
1136
1136
|
a
|
|
1137
1137
|
]);
|
|
1138
|
-
return
|
|
1138
|
+
return f("div", e, {
|
|
1139
1139
|
ref: [
|
|
1140
|
-
|
|
1140
|
+
d,
|
|
1141
1141
|
t,
|
|
1142
1142
|
r
|
|
1143
1143
|
],
|
|
1144
|
-
props:
|
|
1144
|
+
props: u
|
|
1145
1145
|
});
|
|
1146
1146
|
}));
|
|
1147
1147
|
process.env.NODE_ENV !== "production" && (Ot.displayName = "SelectItemText");
|
|
1148
1148
|
//#endregion
|
|
1149
1149
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
|
|
1150
1150
|
var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1151
|
-
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e,
|
|
1152
|
-
W(() => (h.current += 1,
|
|
1153
|
-
h.current = Math.max(0, h.current - 1), h.current === 0 &&
|
|
1154
|
-
}), [
|
|
1151
|
+
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: l, popupRef: u, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = Z(), { side: ee, scrollDownArrowRef: g, scrollUpArrowRef: _ } = rt(), v = c ? Q.scrollUpArrowVisible : Q.scrollDownArrowVisible, y = d(l, v), b = d(l, Q.openMethod), x = y && b !== "touch", S = pe(), C = c ? _ : g, { transitionStatus: w, setMounted: T } = D(x);
|
|
1152
|
+
W(() => (h.current += 1, l.state.hasScrollArrows || l.set("hasScrollArrows", !0), () => {
|
|
1153
|
+
h.current = Math.max(0, h.current - 1), h.current === 0 && l.state.hasScrollArrows && l.set("hasScrollArrows", !1);
|
|
1154
|
+
}), [l, h]), A({
|
|
1155
1155
|
open: x,
|
|
1156
1156
|
ref: C,
|
|
1157
1157
|
onComplete() {
|
|
1158
1158
|
x || T(!1);
|
|
1159
1159
|
}
|
|
1160
1160
|
});
|
|
1161
|
-
let
|
|
1161
|
+
let E = f("div", e, {
|
|
1162
1162
|
ref: [t, C],
|
|
1163
1163
|
state: {
|
|
1164
1164
|
direction: a,
|
|
@@ -1168,23 +1168,23 @@ var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1168
1168
|
},
|
|
1169
1169
|
props: [{
|
|
1170
1170
|
"aria-hidden": !0,
|
|
1171
|
-
children:
|
|
1171
|
+
children: c ? "▲" : "▼",
|
|
1172
1172
|
style: { position: "absolute" },
|
|
1173
1173
|
onMouseMove(e) {
|
|
1174
1174
|
if (e.movementX === 0 && e.movementY === 0 || S.isStarted()) return;
|
|
1175
|
-
|
|
1175
|
+
l.set("activeIndex", null);
|
|
1176
1176
|
function t() {
|
|
1177
|
-
let e =
|
|
1177
|
+
let e = l.state.listElement ?? u.current;
|
|
1178
1178
|
if (!e) return;
|
|
1179
|
-
|
|
1180
|
-
let n = Ue(e.scrollHeight, e.clientHeight), r = We(e.scrollTop, n), i = r === (
|
|
1181
|
-
if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 &&
|
|
1179
|
+
l.set("activeIndex", null), m();
|
|
1180
|
+
let n = Ue(e.scrollHeight, e.clientHeight), r = We(e.scrollTop, n), i = r === (c ? 0 : n), a = p.current;
|
|
1181
|
+
if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && l.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
|
|
1182
1182
|
S.clear();
|
|
1183
1183
|
return;
|
|
1184
1184
|
}
|
|
1185
1185
|
if (a.length > 0) {
|
|
1186
1186
|
let t = C.current?.offsetHeight || 0;
|
|
1187
|
-
e.scrollTop = At(a,
|
|
1187
|
+
e.scrollTop = At(a, c, r, e.clientHeight, t, n);
|
|
1188
1188
|
}
|
|
1189
1189
|
S.start(40, t);
|
|
1190
1190
|
}
|
|
@@ -1195,7 +1195,7 @@ var kt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}, s]
|
|
1197
1197
|
});
|
|
1198
|
-
return x || o ?
|
|
1198
|
+
return x || o ? E : null;
|
|
1199
1199
|
});
|
|
1200
1200
|
process.env.NODE_ENV !== "production" && (kt.displayName = "SelectScrollArrow");
|
|
1201
1201
|
function At(e, t, n, r, i, a) {
|
|
@@ -1249,10 +1249,10 @@ process.env.NODE_ENV !== "production" && (Nt.displayName = "SelectGroupContext")
|
|
|
1249
1249
|
//#endregion
|
|
1250
1250
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
|
|
1251
1251
|
var Pt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
1252
|
-
let { className: n, render: r, style: i, ...a } = e, [o, s] = Y.useState(),
|
|
1252
|
+
let { className: n, render: r, style: i, ...a } = e, [o, s] = Y.useState(), c = Y.useMemo(() => ({
|
|
1253
1253
|
labelId: o,
|
|
1254
1254
|
setLabelId: s
|
|
1255
|
-
}), [o, s]),
|
|
1255
|
+
}), [o, s]), l = f("div", e, {
|
|
1256
1256
|
ref: t,
|
|
1257
1257
|
props: [{
|
|
1258
1258
|
role: "group",
|
|
@@ -1260,8 +1260,8 @@ var Pt = /*#__PURE__*/ Y.forwardRef(function(e, t) {
|
|
|
1260
1260
|
}, a]
|
|
1261
1261
|
});
|
|
1262
1262
|
return /*#__PURE__*/ X(Nt.Provider, {
|
|
1263
|
-
value:
|
|
1264
|
-
children:
|
|
1263
|
+
value: c,
|
|
1264
|
+
children: l
|
|
1265
1265
|
});
|
|
1266
1266
|
});
|
|
1267
1267
|
process.env.NODE_ENV !== "production" && (Pt.displayName = "SelectGroup");
|
|
@@ -1271,14 +1271,14 @@ var Ft = Ge;
|
|
|
1271
1271
|
function It({ className: e, ...t }) {
|
|
1272
1272
|
return /* @__PURE__ */ X(Pt, {
|
|
1273
1273
|
"data-slot": "select-group",
|
|
1274
|
-
className:
|
|
1274
|
+
className: T("scroll-my-1 p-1", e),
|
|
1275
1275
|
...t
|
|
1276
1276
|
});
|
|
1277
1277
|
}
|
|
1278
1278
|
function Lt({ className: e, ...t }) {
|
|
1279
1279
|
return /* @__PURE__ */ X(Qe, {
|
|
1280
1280
|
"data-slot": "select-value",
|
|
1281
|
-
className:
|
|
1281
|
+
className: T("flex flex-1 text-left", e),
|
|
1282
1282
|
...t
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
@@ -1286,7 +1286,7 @@ function Rt({ children: e, className: t, size: n = "default", ...r }) {
|
|
|
1286
1286
|
return /* @__PURE__ */ we(Xe, {
|
|
1287
1287
|
"data-slot": "select-trigger",
|
|
1288
1288
|
"data-size": n,
|
|
1289
|
-
className:
|
|
1289
|
+
className: T("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-md *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
1290
1290
|
...r,
|
|
1291
1291
|
children: [e, /* @__PURE__ */ X($e, { render: /* @__PURE__ */ X(Ce, { className: "text-muted-foreground" }) })]
|
|
1292
1292
|
});
|
|
@@ -1304,7 +1304,7 @@ function zt({ align: e = "center", alignItemWithTrigger: t = !0, alignOffset: n
|
|
|
1304
1304
|
children: /* @__PURE__ */ we(mt, {
|
|
1305
1305
|
"data-slot": "select-content",
|
|
1306
1306
|
"data-align-trigger": t,
|
|
1307
|
-
className:
|
|
1307
|
+
className: T("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", i),
|
|
1308
1308
|
...c,
|
|
1309
1309
|
children: [
|
|
1310
1310
|
/* @__PURE__ */ X(Vt, {}),
|
|
@@ -1318,21 +1318,21 @@ function zt({ align: e = "center", alignItemWithTrigger: t = !0, alignOffset: n
|
|
|
1318
1318
|
function Bt({ className: e, children: t, ...n }) {
|
|
1319
1319
|
return /* @__PURE__ */ we(Tt, {
|
|
1320
1320
|
"data-slot": "select-item",
|
|
1321
|
-
className:
|
|
1321
|
+
className: T("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", e),
|
|
1322
1322
|
...n,
|
|
1323
1323
|
children: [/* @__PURE__ */ X(Ot, {
|
|
1324
1324
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
1325
1325
|
children: t
|
|
1326
1326
|
}), /* @__PURE__ */ X(Et, {
|
|
1327
1327
|
render: /* @__PURE__ */ X("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
1328
|
-
children: /* @__PURE__ */ X(
|
|
1328
|
+
children: /* @__PURE__ */ X(ie, {})
|
|
1329
1329
|
})]
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
1332
|
function Vt({ className: e, ...t }) {
|
|
1333
1333
|
return /* @__PURE__ */ X(Mt, {
|
|
1334
1334
|
"data-slot": "select-scroll-up-button",
|
|
1335
|
-
className:
|
|
1335
|
+
className: T("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1336
1336
|
...t,
|
|
1337
1337
|
children: /* @__PURE__ */ X(Te, {})
|
|
1338
1338
|
});
|
|
@@ -1340,7 +1340,7 @@ function Vt({ className: e, ...t }) {
|
|
|
1340
1340
|
function Ht({ className: e, ...t }) {
|
|
1341
1341
|
return /* @__PURE__ */ X(jt, {
|
|
1342
1342
|
"data-slot": "select-scroll-down-button",
|
|
1343
|
-
className:
|
|
1343
|
+
className: T("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
1344
1344
|
...t,
|
|
1345
1345
|
children: /* @__PURE__ */ X(Ce, {})
|
|
1346
1346
|
});
|
|
@@ -1356,7 +1356,7 @@ function Ut({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
|
|
|
1356
1356
|
value: s,
|
|
1357
1357
|
children: [/* @__PURE__ */ X(Rt, {
|
|
1358
1358
|
"aria-label": e,
|
|
1359
|
-
className:
|
|
1359
|
+
className: T("min-w-32", t),
|
|
1360
1360
|
id: r,
|
|
1361
1361
|
children: /* @__PURE__ */ X(Lt, { children: a.find((e) => e.value == s)?.label ?? s })
|
|
1362
1362
|
}), /* @__PURE__ */ X(zt, {
|