@oomol-lab/open-flow 0.1.0-beta.11 → 0.1.0-beta.12
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/{createResourceDialog-DhIU-HYW.js → createResourceDialog-2pESP2wA.js} +11 -11
- package/dist/browser/{esm-C64_h7HF.js → esm-BPZ0P6x4.js} +1 -1
- package/dist/browser/flow-authoring.js +88 -74
- package/dist/browser/flow-change-schema.d.ts +4 -1
- package/dist/browser/flow-change.js +1408 -1390
- package/dist/browser/{flowChanges-BINNGoug.js → flowChanges-CHPdBmZb.js} +953 -937
- package/dist/browser/{flowWorkspace-Dp_b8KXF.js → flowWorkspace-BLGcgnHj.js} +25733 -25724
- package/dist/browser/host-conformance.d.ts +7 -0
- package/dist/browser/host-conformance.js +33 -0
- package/dist/browser/{select-CbQHq-GM.js → select-Dn3vpjGC.js} +506 -485
- package/dist/browser/{waitNotificationInputs-fzyKN6mk.js → waitNotificationInputs-BFbQUOyp.js} +1 -1
- package/dist/browser/workbench.js +67 -61
- package/dist/browser/{workbenchSelect-BjbJjlNd.js → workbenchSelect-DzF8oik9.js} +7 -7
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +67 -1
- package/dist/common/control-api.js +5117 -434
- package/dist/common/control-requests.d.ts +68 -0
- package/dist/common/control-requests.js +4913 -0
- package/dist/common/flow-encoding.d.ts +3 -1
- package/dist/common/flow-encoding.js +4755 -59
- package/dist/common/flow-json.d.ts +2 -0
- package/dist/common/flow-semantics.js +1121 -1107
- package/dist/common/mcp-conformance.d.ts +2 -0
- package/dist/common/mcp.d.ts +545 -0
- package/dist/common/mcp.js +4964 -0
- package/dist/common/scheduler.js +513 -499
- package/package.json +13 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, At as t, Bn as n, Dt as r, Et as i, F as a, Fn as o, I as s, In as c, J as l, Jn as u, Jt as d, Kn as f, Mn as p, Mt as m, N as h, Nn as ee, Nt as te, On as ne, Ot as g, Pn as re, Qn as _, R as v, Rn as y, Sn as ie, St as b, Tt as x, Un as S, Vt as ae, Wn as C, Xt as w, Yt as oe, Zn as se, Zt as T, _ as E, a as ce, bt as le, c as D, d as O, dt as
|
|
1
|
+
import { $ as e, At as t, Bn as n, Dt as r, Et as i, F as a, Fn as o, I as s, In as c, J as l, Jn as u, Jt as d, Kn as f, Mn as p, Mt as m, N as h, Nn as ee, Nt as te, On as ne, Ot as g, Pn as re, Qn as _, R as v, Rn as y, Sn as ie, St as b, Tt as x, Un as S, Vt as ae, Wn as C, Xt as w, Yt as oe, Zn as se, Zt as T, _ as E, a as ce, bt as le, c as D, d as O, dt as ue, en as k, f as de, g as fe, h as pe, i as me, it as he, kt as A, l as ge, lr as _e, mt as ve, n as ye, nr as j, nt as M, or as be, p as xe, q as Se, qn as Ce, qt as we, r as Te, rn as Ee, rr as De, rt as Oe, s as ke, sr as Ae, t as je, tn as Me, tr as N, tt as Ne, u as Pe, vn as Fe, vt as Ie, w as Le, yt as Re, zn as ze, zt as Be } from "./getPseudoElementBounds-Dfqo78k7.js";
|
|
2
2
|
import * as P from "react";
|
|
3
3
|
import { useMemo as Ve } from "react";
|
|
4
4
|
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
@@ -4348,40 +4348,44 @@ function sl(e) {
|
|
|
4348
4348
|
]));
|
|
4349
4349
|
return t;
|
|
4350
4350
|
}
|
|
4351
|
+
function cl(e, t = 0) {
|
|
4352
|
+
if (t > 64) throw TypeError("Value exceeds the maximum JSON depth.");
|
|
4353
|
+
if (typeof e == "object" && e) for (let n of Object.values(e)) cl(n, t + 1);
|
|
4354
|
+
}
|
|
4351
4355
|
//#endregion
|
|
4352
4356
|
//#region src/flow/common/changeSchema.ts
|
|
4353
|
-
var Z = Vs(),
|
|
4357
|
+
var Z = Vs(), ll = sl(), ul = J(Z), dl = Y({
|
|
4354
4358
|
description: Z.optional(),
|
|
4355
|
-
jsonSchema:
|
|
4359
|
+
jsonSchema: ll,
|
|
4356
4360
|
nullable: gc(),
|
|
4357
4361
|
handle: Z
|
|
4358
|
-
}),
|
|
4362
|
+
}), fl = dl.extend({ value: ll.optional() }), pl = Y({
|
|
4359
4363
|
collapsed: gc().optional(),
|
|
4360
4364
|
group: Z
|
|
4361
|
-
}),
|
|
4365
|
+
}), ml = Y({
|
|
4362
4366
|
kind: X("node"),
|
|
4363
4367
|
nodeId: Z,
|
|
4364
4368
|
output: Z
|
|
4365
|
-
}),
|
|
4369
|
+
}), hl = Y({
|
|
4366
4370
|
kind: X("flow"),
|
|
4367
4371
|
input: Z
|
|
4368
|
-
}),
|
|
4369
|
-
pl,
|
|
4372
|
+
}), gl = Ec([
|
|
4370
4373
|
ml,
|
|
4374
|
+
hl,
|
|
4371
4375
|
Y({
|
|
4372
4376
|
kind: X("binding"),
|
|
4373
4377
|
bindingId: Z
|
|
4374
4378
|
})
|
|
4375
|
-
]),
|
|
4379
|
+
]), _l = Ec([Y({
|
|
4376
4380
|
kind: X("value"),
|
|
4377
|
-
value:
|
|
4381
|
+
value: ll
|
|
4378
4382
|
}), Y({
|
|
4379
4383
|
kind: X("sources"),
|
|
4380
|
-
sources: J(
|
|
4381
|
-
})]),
|
|
4382
|
-
inputs: J(Ec([
|
|
4383
|
-
outputs: J(Ec([
|
|
4384
|
-
},
|
|
4384
|
+
sources: J(gl)
|
|
4385
|
+
})]), vl = Mc(Z, _l), yl = {
|
|
4386
|
+
inputs: J(Ec([fl, pl])),
|
|
4387
|
+
outputs: J(Ec([dl, pl]))
|
|
4388
|
+
}, bl = Y({
|
|
4385
4389
|
kind: X("connector"),
|
|
4386
4390
|
action: Z,
|
|
4387
4391
|
connectionId: Z.optional(),
|
|
@@ -4389,13 +4393,13 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4389
4393
|
connectionId: Z,
|
|
4390
4394
|
alias: Z.optional()
|
|
4391
4395
|
}))
|
|
4392
|
-
}),
|
|
4393
|
-
...
|
|
4396
|
+
}), xl = Y({
|
|
4397
|
+
...yl,
|
|
4394
4398
|
name: Z,
|
|
4395
4399
|
moduleId: Z,
|
|
4396
|
-
capabilities: J(
|
|
4397
|
-
}),
|
|
4398
|
-
...
|
|
4400
|
+
capabilities: J(bl).optional()
|
|
4401
|
+
}), Sl = Y({
|
|
4402
|
+
...yl,
|
|
4399
4403
|
name: Z,
|
|
4400
4404
|
executor: Ec([Y({
|
|
4401
4405
|
kind: X("connector"),
|
|
@@ -4405,8 +4409,8 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4405
4409
|
kind: X("llm"),
|
|
4406
4410
|
mode: Pc(["chat", "json"])
|
|
4407
4411
|
})])
|
|
4408
|
-
}),
|
|
4409
|
-
input:
|
|
4412
|
+
}), Cl = {
|
|
4413
|
+
input: fl,
|
|
4410
4414
|
cases: J(Y({
|
|
4411
4415
|
output: Z,
|
|
4412
4416
|
relation: Pc(["all", "any"]),
|
|
@@ -4434,29 +4438,29 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4434
4438
|
"notHasValue",
|
|
4435
4439
|
"startsWith"
|
|
4436
4440
|
]),
|
|
4437
|
-
value:
|
|
4441
|
+
value: ll.optional()
|
|
4438
4442
|
}))
|
|
4439
4443
|
})),
|
|
4440
4444
|
defaultOutput: Z.optional()
|
|
4441
|
-
},
|
|
4445
|
+
}, wl = {
|
|
4442
4446
|
actions: Ec([Ac([X("continue")]), Ac([X("approve"), X("reject")])]),
|
|
4443
4447
|
prompt: Z,
|
|
4444
4448
|
notification: Y({
|
|
4445
|
-
inputs:
|
|
4449
|
+
inputs: vl,
|
|
4446
4450
|
messageHandle: Z,
|
|
4447
4451
|
taskId: Z
|
|
4448
4452
|
}).optional()
|
|
4449
|
-
},
|
|
4450
|
-
inputsDef: J(
|
|
4453
|
+
}, Tl = {
|
|
4454
|
+
inputsDef: J(fl),
|
|
4451
4455
|
options: Y({
|
|
4452
|
-
allowedMethods:
|
|
4453
|
-
allowedOrigins:
|
|
4456
|
+
allowedMethods: ul.optional(),
|
|
4457
|
+
allowedOrigins: ul.optional(),
|
|
4454
4458
|
noResponseBody: gc().optional(),
|
|
4455
4459
|
responseData: Z.optional(),
|
|
4456
4460
|
responseHeaders: Mc(Z, Z).optional(),
|
|
4457
4461
|
responseStatusCode: fc().optional()
|
|
4458
4462
|
}).optional()
|
|
4459
|
-
},
|
|
4463
|
+
}, El = J(Ec([Y({
|
|
4460
4464
|
type: X("cron"),
|
|
4461
4465
|
expression: Z,
|
|
4462
4466
|
timezone: Z
|
|
@@ -4470,16 +4474,16 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4470
4474
|
"week"
|
|
4471
4475
|
]),
|
|
4472
4476
|
value: fc()
|
|
4473
|
-
})])),
|
|
4474
|
-
configSchema:
|
|
4477
|
+
})])), Dl = {
|
|
4478
|
+
configSchema: ll,
|
|
4475
4479
|
definitionVersion: fc(),
|
|
4476
4480
|
description: Z,
|
|
4477
4481
|
displayName: Z,
|
|
4478
4482
|
key: Z,
|
|
4479
4483
|
name: Z,
|
|
4480
|
-
payloadSchema:
|
|
4484
|
+
payloadSchema: ll,
|
|
4481
4485
|
provider: Z
|
|
4482
|
-
},
|
|
4486
|
+
}, Ol = Y({
|
|
4483
4487
|
body: Y({
|
|
4484
4488
|
allowArray: gc(),
|
|
4485
4489
|
allowEmpty: gc(),
|
|
@@ -4499,107 +4503,131 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4499
4503
|
"PUT"
|
|
4500
4504
|
])),
|
|
4501
4505
|
successStatus: fc()
|
|
4502
|
-
}),
|
|
4506
|
+
}), kl = {
|
|
4503
4507
|
name: Z,
|
|
4504
4508
|
description: Z.optional(),
|
|
4505
4509
|
icon: Z.optional()
|
|
4506
|
-
},
|
|
4507
|
-
inputs:
|
|
4510
|
+
}, Al = {
|
|
4511
|
+
inputs: vl,
|
|
4508
4512
|
name: Z.optional(),
|
|
4509
4513
|
description: Z.optional(),
|
|
4510
4514
|
icon: Z.optional(),
|
|
4511
4515
|
timeoutMs: fc().optional()
|
|
4512
|
-
},
|
|
4516
|
+
}, jl = Ec([
|
|
4513
4517
|
Y({
|
|
4514
|
-
...
|
|
4518
|
+
...Al,
|
|
4515
4519
|
kind: X("condition"),
|
|
4516
|
-
...
|
|
4520
|
+
...Cl
|
|
4517
4521
|
}),
|
|
4518
4522
|
Y({
|
|
4519
|
-
...
|
|
4523
|
+
...Al,
|
|
4520
4524
|
kind: X("value"),
|
|
4521
|
-
values: J(
|
|
4525
|
+
values: J(fl)
|
|
4522
4526
|
}),
|
|
4523
4527
|
Y({
|
|
4524
|
-
...
|
|
4528
|
+
...Al,
|
|
4525
4529
|
kind: X("subflow"),
|
|
4526
4530
|
subflowId: Z
|
|
4527
4531
|
}),
|
|
4528
4532
|
Y({
|
|
4529
|
-
...
|
|
4533
|
+
...Al,
|
|
4530
4534
|
kind: X("task"),
|
|
4531
|
-
task:
|
|
4532
|
-
additionalInputs: J(
|
|
4535
|
+
task: xl,
|
|
4536
|
+
additionalInputs: J(fl).optional()
|
|
4533
4537
|
}),
|
|
4534
4538
|
Y({
|
|
4535
|
-
...
|
|
4539
|
+
...Al,
|
|
4536
4540
|
kind: X("task"),
|
|
4537
4541
|
taskId: Z,
|
|
4538
|
-
additionalInputs: J(
|
|
4542
|
+
additionalInputs: J(fl).optional()
|
|
4539
4543
|
}),
|
|
4540
4544
|
Y({
|
|
4541
|
-
...
|
|
4545
|
+
...Al,
|
|
4542
4546
|
kind: X("wait"),
|
|
4543
|
-
input:
|
|
4544
|
-
...
|
|
4547
|
+
input: fl,
|
|
4548
|
+
...wl
|
|
4545
4549
|
}).omit({ timeoutMs: !0 }),
|
|
4546
4550
|
Y({
|
|
4547
|
-
...
|
|
4551
|
+
...kl,
|
|
4548
4552
|
kind: X("manual")
|
|
4549
4553
|
}),
|
|
4550
4554
|
Y({
|
|
4551
|
-
...
|
|
4555
|
+
...kl,
|
|
4552
4556
|
kind: X("webhook"),
|
|
4553
|
-
...
|
|
4557
|
+
...Tl
|
|
4554
4558
|
}),
|
|
4555
4559
|
Y({
|
|
4556
|
-
...
|
|
4560
|
+
...kl,
|
|
4557
4561
|
kind: X("cron"),
|
|
4558
|
-
cronTimes:
|
|
4562
|
+
cronTimes: El
|
|
4559
4563
|
}),
|
|
4560
4564
|
Y({
|
|
4561
|
-
...
|
|
4565
|
+
...kl,
|
|
4562
4566
|
kind: X("poll"),
|
|
4563
4567
|
bindingId: Z,
|
|
4564
|
-
config: Mc(Z,
|
|
4568
|
+
config: Mc(Z, ll),
|
|
4565
4569
|
definition: Y({
|
|
4566
|
-
...
|
|
4570
|
+
...Dl,
|
|
4567
4571
|
type: X("poll")
|
|
4568
4572
|
}),
|
|
4569
|
-
pollTimes:
|
|
4573
|
+
pollTimes: El
|
|
4570
4574
|
}),
|
|
4571
4575
|
Y({
|
|
4572
|
-
...
|
|
4576
|
+
...kl,
|
|
4573
4577
|
kind: X("integration"),
|
|
4574
4578
|
bindingId: Z,
|
|
4575
|
-
config: Mc(Z,
|
|
4579
|
+
config: Mc(Z, ll),
|
|
4576
4580
|
definition: Y({
|
|
4577
|
-
...
|
|
4581
|
+
...Dl,
|
|
4578
4582
|
type: X("integration"),
|
|
4579
|
-
endpoint:
|
|
4583
|
+
endpoint: Ol
|
|
4580
4584
|
})
|
|
4581
4585
|
})
|
|
4582
|
-
]),
|
|
4586
|
+
]), Ml = Ec([Y({ kind: X("flow") }), Y({
|
|
4583
4587
|
kind: X("subflow"),
|
|
4584
4588
|
id: Z
|
|
4585
|
-
})]),
|
|
4589
|
+
})]), Nl = Y({
|
|
4586
4590
|
source: Z,
|
|
4587
4591
|
target: Z,
|
|
4588
4592
|
sourceHandle: Z.optional()
|
|
4589
|
-
}),
|
|
4593
|
+
}), Pl = {
|
|
4590
4594
|
nodeId: Z,
|
|
4591
|
-
target:
|
|
4592
|
-
},
|
|
4595
|
+
target: Ml
|
|
4596
|
+
}, Fl = Y({
|
|
4597
|
+
name: Z,
|
|
4598
|
+
inputs: J(fl),
|
|
4599
|
+
outputs: J(dl.extend({ sources: J(Ec([ml, hl])) }))
|
|
4600
|
+
}), Il = Y({
|
|
4601
|
+
nodes: Mc(Z, jl),
|
|
4602
|
+
edges: J(Nl)
|
|
4603
|
+
}), Ll = Y({
|
|
4604
|
+
kind: Pc(["connection", "variable"]),
|
|
4605
|
+
target: Z
|
|
4606
|
+
}), Rl = Y({
|
|
4593
4607
|
name: Z,
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
}),
|
|
4608
|
+
imports: ul,
|
|
4609
|
+
source: Z
|
|
4610
|
+
}), zl = Y({
|
|
4611
|
+
bindings: Mc(Z, Ll),
|
|
4612
|
+
graph: Il,
|
|
4613
|
+
subflows: Mc(Z, Fl.extend({ graph: Il })),
|
|
4614
|
+
tasks: Mc(Z, Sl)
|
|
4615
|
+
}), Bl = Y({
|
|
4616
|
+
modelVersion: X(1),
|
|
4617
|
+
document: zl,
|
|
4618
|
+
modules: Mc(Z, Rl)
|
|
4619
|
+
});
|
|
4620
|
+
Bl.extend({
|
|
4621
|
+
kind: X("open-flow-flow-revision"),
|
|
4622
|
+
version: X(1)
|
|
4623
|
+
});
|
|
4624
|
+
function Vl(e) {
|
|
4625
|
+
return cl(e), Bl.parse(e), e;
|
|
4626
|
+
}
|
|
4627
|
+
var Hl = {
|
|
4597
4628
|
"binding.create": {
|
|
4598
4629
|
bindingId: Z,
|
|
4599
|
-
binding:
|
|
4600
|
-
kind: Pc(["connection", "variable"]),
|
|
4601
|
-
target: Z
|
|
4602
|
-
})
|
|
4630
|
+
binding: Ll
|
|
4603
4631
|
},
|
|
4604
4632
|
"binding.delete": { bindingId: Z },
|
|
4605
4633
|
"binding.target.set": {
|
|
@@ -4608,20 +4636,20 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4608
4636
|
value: Z
|
|
4609
4637
|
},
|
|
4610
4638
|
"graph.edge.connect": {
|
|
4611
|
-
target:
|
|
4612
|
-
edge:
|
|
4639
|
+
target: Ml,
|
|
4640
|
+
edge: Nl
|
|
4613
4641
|
},
|
|
4614
4642
|
"graph.edge.disconnect": {
|
|
4615
|
-
target:
|
|
4616
|
-
edge:
|
|
4643
|
+
target: Ml,
|
|
4644
|
+
edge: Nl
|
|
4617
4645
|
},
|
|
4618
4646
|
"graph.node.create": {
|
|
4619
|
-
...
|
|
4620
|
-
node:
|
|
4647
|
+
...Pl,
|
|
4648
|
+
node: jl
|
|
4621
4649
|
},
|
|
4622
|
-
"graph.node.delete":
|
|
4650
|
+
"graph.node.delete": Pl,
|
|
4623
4651
|
"graph.node.field.set": Ec([Y({
|
|
4624
|
-
...
|
|
4652
|
+
...Pl,
|
|
4625
4653
|
kind: X("graph.node.field.set"),
|
|
4626
4654
|
field: Pc([
|
|
4627
4655
|
"description",
|
|
@@ -4631,78 +4659,74 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4631
4659
|
before: Z.optional(),
|
|
4632
4660
|
value: Z.optional()
|
|
4633
4661
|
}), Y({
|
|
4634
|
-
...
|
|
4662
|
+
...Pl,
|
|
4635
4663
|
kind: X("graph.node.field.set"),
|
|
4636
4664
|
field: X("timeoutMs"),
|
|
4637
4665
|
before: fc().optional(),
|
|
4638
4666
|
value: fc().optional()
|
|
4639
4667
|
})]),
|
|
4640
4668
|
"graph.node.input.set": {
|
|
4641
|
-
...
|
|
4669
|
+
...Pl,
|
|
4642
4670
|
handle: Z,
|
|
4643
|
-
before:
|
|
4644
|
-
value:
|
|
4671
|
+
before: _l.optional(),
|
|
4672
|
+
value: _l.optional()
|
|
4645
4673
|
},
|
|
4646
4674
|
"graph.node.additional-inputs.set": {
|
|
4647
|
-
...
|
|
4648
|
-
before: J(
|
|
4649
|
-
value: J(
|
|
4675
|
+
...Pl,
|
|
4676
|
+
before: J(fl).optional(),
|
|
4677
|
+
value: J(fl).optional()
|
|
4650
4678
|
},
|
|
4651
4679
|
"graph.node.condition.set": {
|
|
4652
|
-
...
|
|
4653
|
-
before: Y(
|
|
4654
|
-
value: Y(
|
|
4680
|
+
...Pl,
|
|
4681
|
+
before: Y(Cl),
|
|
4682
|
+
value: Y(Cl)
|
|
4655
4683
|
},
|
|
4656
4684
|
"graph.node.values.set": {
|
|
4657
|
-
...
|
|
4658
|
-
before: J(
|
|
4659
|
-
value: J(
|
|
4685
|
+
...Pl,
|
|
4686
|
+
before: J(fl),
|
|
4687
|
+
value: J(fl)
|
|
4660
4688
|
},
|
|
4661
4689
|
"graph.node.wait.set": {
|
|
4662
|
-
...
|
|
4690
|
+
...Pl,
|
|
4663
4691
|
target: Y({ kind: X("flow") }),
|
|
4664
|
-
before: Y(
|
|
4665
|
-
value: Y(
|
|
4692
|
+
before: Y(wl),
|
|
4693
|
+
value: Y(wl)
|
|
4666
4694
|
},
|
|
4667
4695
|
"graph.node.webhook.set": {
|
|
4668
|
-
...
|
|
4696
|
+
...Pl,
|
|
4669
4697
|
target: Y({ kind: X("flow") }),
|
|
4670
|
-
before: Y(
|
|
4671
|
-
value: Y(
|
|
4698
|
+
before: Y(Tl),
|
|
4699
|
+
value: Y(Tl)
|
|
4672
4700
|
},
|
|
4673
4701
|
"graph.node.task.ports.set": {
|
|
4674
|
-
...
|
|
4675
|
-
before: Y(
|
|
4676
|
-
value: Y(
|
|
4702
|
+
...Pl,
|
|
4703
|
+
before: Y(yl),
|
|
4704
|
+
value: Y(yl)
|
|
4677
4705
|
},
|
|
4678
4706
|
"graph.node.task.name.set": {
|
|
4679
|
-
...
|
|
4707
|
+
...Pl,
|
|
4680
4708
|
before: Z,
|
|
4681
4709
|
value: Z
|
|
4682
4710
|
},
|
|
4683
4711
|
"graph.node.task.capabilities.set": {
|
|
4684
|
-
...
|
|
4685
|
-
before: J(
|
|
4686
|
-
value: J(
|
|
4712
|
+
...Pl,
|
|
4713
|
+
before: J(bl).optional(),
|
|
4714
|
+
value: J(bl).optional()
|
|
4687
4715
|
},
|
|
4688
4716
|
"graph.trigger.config.set": {
|
|
4689
4717
|
nodeId: Z,
|
|
4690
4718
|
name: Z,
|
|
4691
|
-
before:
|
|
4692
|
-
value:
|
|
4719
|
+
before: ll.optional(),
|
|
4720
|
+
value: ll.optional()
|
|
4693
4721
|
},
|
|
4694
4722
|
"graph.trigger.schedule.set": {
|
|
4695
4723
|
nodeId: Z,
|
|
4696
|
-
before:
|
|
4697
|
-
value:
|
|
4724
|
+
before: El,
|
|
4725
|
+
value: El
|
|
4698
4726
|
},
|
|
4699
4727
|
"module.create": {
|
|
4700
4728
|
moduleId: Z,
|
|
4701
|
-
module:
|
|
4702
|
-
name: Z,
|
|
4703
|
-
imports: ll,
|
|
4704
|
-
source: Z
|
|
4705
|
-
})
|
|
4729
|
+
module: Rl
|
|
4706
4730
|
},
|
|
4707
4731
|
"module.delete": { moduleId: Z },
|
|
4708
4732
|
"module.rename": {
|
|
@@ -4712,27 +4736,24 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4712
4736
|
},
|
|
4713
4737
|
"module.source.replace": {
|
|
4714
4738
|
moduleId: Z,
|
|
4715
|
-
beforeImports:
|
|
4739
|
+
beforeImports: ul,
|
|
4716
4740
|
beforeSource: Z,
|
|
4717
|
-
imports:
|
|
4741
|
+
imports: ul,
|
|
4718
4742
|
source: Z
|
|
4719
4743
|
},
|
|
4720
4744
|
"subflow.create": {
|
|
4721
4745
|
subflowId: Z,
|
|
4722
|
-
subflow:
|
|
4723
|
-
nodes: Mc(Z, Al),
|
|
4724
|
-
edges: J(Ml)
|
|
4725
|
-
}) })
|
|
4746
|
+
subflow: Fl.extend({ graph: Il })
|
|
4726
4747
|
},
|
|
4727
4748
|
"subflow.definition.set": {
|
|
4728
4749
|
subflowId: Z,
|
|
4729
|
-
before:
|
|
4730
|
-
definition:
|
|
4750
|
+
before: Fl,
|
|
4751
|
+
definition: Fl
|
|
4731
4752
|
},
|
|
4732
4753
|
"subflow.delete": { subflowId: Z },
|
|
4733
4754
|
"task.create": {
|
|
4734
4755
|
taskId: Z,
|
|
4735
|
-
task:
|
|
4756
|
+
task: Sl
|
|
4736
4757
|
},
|
|
4737
4758
|
"task.delete": { taskId: Z },
|
|
4738
4759
|
"task.connector.connection.set": {
|
|
@@ -4751,11 +4772,11 @@ var Z = Vs(), cl = sl(), ll = J(Z), ul = Y({
|
|
|
4751
4772
|
value: Z
|
|
4752
4773
|
}
|
|
4753
4774
|
};
|
|
4754
|
-
J(Ec([...new Map(Object.entries(
|
|
4775
|
+
J(Ec([...new Map(Object.entries(Hl).map(([e, t]) => [e, t instanceof K ? t : Y({
|
|
4755
4776
|
kind: X(e),
|
|
4756
4777
|
...t
|
|
4757
4778
|
})])).values()])).min(1);
|
|
4758
|
-
function
|
|
4779
|
+
function Ul(e) {
|
|
4759
4780
|
let t = e.trim();
|
|
4760
4781
|
if (t.length == 0) return "empty";
|
|
4761
4782
|
if (t.length > 80) return "tooLong";
|
|
@@ -4765,10 +4786,10 @@ function Il(e) {
|
|
|
4765
4786
|
}
|
|
4766
4787
|
if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
|
|
4767
4788
|
}
|
|
4768
|
-
function
|
|
4789
|
+
function Wl(e) {
|
|
4769
4790
|
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
4770
4791
|
}
|
|
4771
|
-
function
|
|
4792
|
+
function Gl(e) {
|
|
4772
4793
|
if (!Array.isArray(e)) throw TypeError("Connector capabilities must be an array.");
|
|
4773
4794
|
let t = /* @__PURE__ */ new Set();
|
|
4774
4795
|
return e.map((e) => {
|
|
@@ -4804,34 +4825,34 @@ function Rl(e) {
|
|
|
4804
4825
|
};
|
|
4805
4826
|
});
|
|
4806
4827
|
}
|
|
4807
|
-
function
|
|
4828
|
+
function Kl(e) {
|
|
4808
4829
|
return e.trim().normalize("NFC");
|
|
4809
4830
|
}
|
|
4810
|
-
function
|
|
4811
|
-
let n =
|
|
4831
|
+
function ql(e, t) {
|
|
4832
|
+
let n = Kl(e), r = new Set([...t].map(Kl));
|
|
4812
4833
|
if (!r.has(n)) return n;
|
|
4813
4834
|
let i = /^(.*) \((\d+)\)$/.exec(n), a = i?.[2], o = a != null && Number(a) >= 2 ? Number(a) : void 0, s = o == null ? n : i?.[1] ?? n, c = o == null ? 2 : o + 1;
|
|
4814
4835
|
for (; r.has(`${s} (${c})`);) c += 1;
|
|
4815
4836
|
return `${s} (${c})`;
|
|
4816
4837
|
}
|
|
4817
|
-
function
|
|
4818
|
-
let r =
|
|
4819
|
-
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null &&
|
|
4838
|
+
function Jl(e, t, n) {
|
|
4839
|
+
let r = Kl(n);
|
|
4840
|
+
return r.length == 0 ? "empty" : Object.entries(e.nodes).some(([e, n]) => e != t && n.name != null && Kl(n.name) == r) ? "duplicate" : void 0;
|
|
4820
4841
|
}
|
|
4821
|
-
var
|
|
4842
|
+
var Yl = class extends Error {
|
|
4822
4843
|
constructor(e) {
|
|
4823
4844
|
super(e), this.name = "FlowChangeError";
|
|
4824
4845
|
}
|
|
4825
4846
|
};
|
|
4826
4847
|
function Q(e) {
|
|
4827
|
-
throw new
|
|
4848
|
+
throw new Yl(e);
|
|
4828
4849
|
}
|
|
4829
|
-
function
|
|
4850
|
+
function Xl(e, t) {
|
|
4830
4851
|
if (t.kind == "flow") return e.graph;
|
|
4831
4852
|
let n = e.subflows[t.id];
|
|
4832
4853
|
return n ?? Q("The target Subflow does not exist."), n.graph;
|
|
4833
4854
|
}
|
|
4834
|
-
function
|
|
4855
|
+
function Zl(e, t, n) {
|
|
4835
4856
|
if (t.kind == "flow") return {
|
|
4836
4857
|
...e,
|
|
4837
4858
|
graph: n
|
|
@@ -4848,7 +4869,7 @@ function Wl(e, t, n) {
|
|
|
4848
4869
|
}
|
|
4849
4870
|
};
|
|
4850
4871
|
}
|
|
4851
|
-
function
|
|
4872
|
+
function Ql(e, t) {
|
|
4852
4873
|
if (!("inputs" in e)) return e;
|
|
4853
4874
|
let n = { ...e.inputs };
|
|
4854
4875
|
for (let [e, r] of Object.entries(n)) {
|
|
@@ -4864,7 +4885,7 @@ function Gl(e, t) {
|
|
|
4864
4885
|
inputs: n
|
|
4865
4886
|
};
|
|
4866
4887
|
}
|
|
4867
|
-
function
|
|
4888
|
+
function $l(e, t) {
|
|
4868
4889
|
let n = { ...e.document }, r = { ...e.modules };
|
|
4869
4890
|
for (let e of t) switch (e.kind) {
|
|
4870
4891
|
case "binding.create":
|
|
@@ -4891,31 +4912,31 @@ function Kl(e, t) {
|
|
|
4891
4912
|
break;
|
|
4892
4913
|
}
|
|
4893
4914
|
case "graph.edge.connect": {
|
|
4894
|
-
let t =
|
|
4915
|
+
let t = Xl(n, e.target);
|
|
4895
4916
|
t.nodes[e.edge.source] ?? Q("The source Node does not exist.");
|
|
4896
4917
|
let r = t.nodes[e.edge.target];
|
|
4897
|
-
(r == null || !("inputs" in r)) && Q("The target Node does not accept execution dependencies."), t.edges.some((t) => g(t, e.edge)) && Q("The Nodes are already connected."), Object.assign(n,
|
|
4918
|
+
(r == null || !("inputs" in r)) && Q("The target Node does not accept execution dependencies."), t.edges.some((t) => g(t, e.edge)) && Q("The Nodes are already connected."), Object.assign(n, Zl(n, e.target, {
|
|
4898
4919
|
...t,
|
|
4899
4920
|
edges: [...t.edges, e.edge]
|
|
4900
4921
|
}));
|
|
4901
4922
|
break;
|
|
4902
4923
|
}
|
|
4903
4924
|
case "graph.edge.disconnect": {
|
|
4904
|
-
let t =
|
|
4905
|
-
r.length == t.edges.length && Q("The Nodes are not connected."), Object.assign(n,
|
|
4925
|
+
let t = Xl(n, e.target), r = t.edges.filter((t) => !g(t, e.edge));
|
|
4926
|
+
r.length == t.edges.length && Q("The Nodes are not connected."), Object.assign(n, Zl(n, e.target, {
|
|
4906
4927
|
...t,
|
|
4907
4928
|
edges: r
|
|
4908
4929
|
}));
|
|
4909
4930
|
break;
|
|
4910
4931
|
}
|
|
4911
4932
|
case "graph.node.additional-inputs.set": {
|
|
4912
|
-
let t =
|
|
4933
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
4913
4934
|
r?.kind != "task" && Q("The Task Node does not exist."), g(r.additionalInputs, e.before) || Q("The Task Node inputs changed before this operation was applied.");
|
|
4914
4935
|
let { additionalInputs: i, ...a } = r, o = e.value == null ? a : {
|
|
4915
4936
|
...a,
|
|
4916
4937
|
additionalInputs: e.value
|
|
4917
4938
|
};
|
|
4918
|
-
Object.assign(n,
|
|
4939
|
+
Object.assign(n, Zl(n, e.target, {
|
|
4919
4940
|
...t,
|
|
4920
4941
|
nodes: {
|
|
4921
4942
|
...t.nodes,
|
|
@@ -4925,7 +4946,7 @@ function Kl(e, t) {
|
|
|
4925
4946
|
break;
|
|
4926
4947
|
}
|
|
4927
4948
|
case "graph.node.condition.set": {
|
|
4928
|
-
let t =
|
|
4949
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
4929
4950
|
r?.kind != "condition" && Q("The Condition Node does not exist."), (!g(r.cases, e.before.cases) || r.defaultOutput != e.before.defaultOutput || !g(r.input, e.before.input)) && Q("The Condition Node changed before this operation was applied.");
|
|
4930
4951
|
let { defaultOutput: i, ...a } = r, o = e.value.defaultOutput == null ? {
|
|
4931
4952
|
...a,
|
|
@@ -4934,7 +4955,7 @@ function Kl(e, t) {
|
|
|
4934
4955
|
...r,
|
|
4935
4956
|
...e.value
|
|
4936
4957
|
};
|
|
4937
|
-
Object.assign(n,
|
|
4958
|
+
Object.assign(n, Zl(n, e.target, {
|
|
4938
4959
|
...t,
|
|
4939
4960
|
nodes: {
|
|
4940
4961
|
...t.nodes,
|
|
@@ -4944,15 +4965,15 @@ function Kl(e, t) {
|
|
|
4944
4965
|
break;
|
|
4945
4966
|
}
|
|
4946
4967
|
case "graph.node.create": {
|
|
4947
|
-
let t =
|
|
4948
|
-
t.nodes[e.nodeId] != null && Q("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Q("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Q("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 &&
|
|
4949
|
-
let r =
|
|
4968
|
+
let t = Xl(n, e.target);
|
|
4969
|
+
t.nodes[e.nodeId] != null && Q("A Node with this ID already exists in the target graph."), e.target.kind == "subflow" && !("inputs" in e.node) && Q("Trigger Nodes cannot be created inside a Subflow."), e.node.kind == "manual" && Object.values(t.nodes).some((e) => e.kind == "manual") && Q("A graph can contain only one manual Trigger."), e.node.kind == "task" && e.node.task?.capabilities !== void 0 && Gl(e.node.task.capabilities), e.node.name ?? Q("A Node name cannot be empty.");
|
|
4970
|
+
let r = Kl(e.node.name), i = Jl(t, e.nodeId, r);
|
|
4950
4971
|
i == "empty" && Q("A Node name cannot be empty."), i == "duplicate" && Q("A Node with this name already exists in the target graph.");
|
|
4951
4972
|
let a = r == e.node.name ? e.node : {
|
|
4952
4973
|
...e.node,
|
|
4953
4974
|
name: r
|
|
4954
4975
|
};
|
|
4955
|
-
Object.assign(n,
|
|
4976
|
+
Object.assign(n, Zl(n, e.target, {
|
|
4956
4977
|
...t,
|
|
4957
4978
|
nodes: {
|
|
4958
4979
|
...t.nodes,
|
|
@@ -4962,10 +4983,10 @@ function Kl(e, t) {
|
|
|
4962
4983
|
break;
|
|
4963
4984
|
}
|
|
4964
4985
|
case "graph.node.delete": {
|
|
4965
|
-
let t =
|
|
4986
|
+
let t = Xl(n, e.target);
|
|
4966
4987
|
t.nodes[e.nodeId] ?? Q("The Node does not exist in the target graph.");
|
|
4967
|
-
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e,
|
|
4968
|
-
if (Object.assign(n,
|
|
4988
|
+
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, Ql(t, r)]]));
|
|
4989
|
+
if (Object.assign(n, Zl(n, e.target, {
|
|
4969
4990
|
...t,
|
|
4970
4991
|
edges: t.edges.filter((e) => !r.has(e.source) && !r.has(e.target)),
|
|
4971
4992
|
nodes: i
|
|
@@ -4985,15 +5006,15 @@ function Kl(e, t) {
|
|
|
4985
5006
|
break;
|
|
4986
5007
|
}
|
|
4987
5008
|
case "graph.node.field.set": {
|
|
4988
|
-
let t =
|
|
5009
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
4989
5010
|
r ?? Q("The Node does not exist in the target graph."), g(Reflect.get(r, e.field), e.before) || Q("The Node field changed before this operation was applied.");
|
|
4990
5011
|
let i = { ...r };
|
|
4991
5012
|
if (e.field == "name") {
|
|
4992
5013
|
typeof e.value != "string" && Q("A Node name cannot be empty.");
|
|
4993
|
-
let n =
|
|
5014
|
+
let n = Kl(e.value), r = Jl(t, e.nodeId, n);
|
|
4994
5015
|
r == "empty" && Q("A Node name cannot be empty."), r == "duplicate" && Q("A Node with this name already exists in the target graph."), Object.assign(i, { name: n });
|
|
4995
5016
|
} else e.value == null ? Reflect.deleteProperty(i, e.field) : Object.assign(i, { [e.field]: e.value });
|
|
4996
|
-
Object.assign(n,
|
|
5017
|
+
Object.assign(n, Zl(n, e.target, {
|
|
4997
5018
|
...t,
|
|
4998
5019
|
nodes: {
|
|
4999
5020
|
...t.nodes,
|
|
@@ -5003,10 +5024,10 @@ function Kl(e, t) {
|
|
|
5003
5024
|
break;
|
|
5004
5025
|
}
|
|
5005
5026
|
case "graph.node.input.set": {
|
|
5006
|
-
let t =
|
|
5027
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5007
5028
|
(r == null || !("inputs" in r)) && Q("The Node does not accept inputs."), g(r.inputs[e.handle], e.before) || Q("The Node input changed before this operation was applied.");
|
|
5008
5029
|
let i = { ...r.inputs };
|
|
5009
|
-
e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n,
|
|
5030
|
+
e.value == null ? delete i[e.handle] : i[e.handle] = e.value, Object.assign(n, Zl(n, e.target, {
|
|
5010
5031
|
...t,
|
|
5011
5032
|
nodes: {
|
|
5012
5033
|
...t.nodes,
|
|
@@ -5019,10 +5040,10 @@ function Kl(e, t) {
|
|
|
5019
5040
|
break;
|
|
5020
5041
|
}
|
|
5021
5042
|
case "graph.node.task.capabilities.set": {
|
|
5022
|
-
let t =
|
|
5043
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5023
5044
|
(r?.kind != "task" || r.task == null) && Q("The inline Task Node does not exist."), g(r.task.capabilities, e.before) || Q("The inline Task capabilities changed before this operation was applied.");
|
|
5024
5045
|
let i = { ...r.task };
|
|
5025
|
-
e.value === void 0 ? delete i.capabilities : i.capabilities =
|
|
5046
|
+
e.value === void 0 ? delete i.capabilities : i.capabilities = Gl(e.value), Object.assign(n, Zl(n, e.target, {
|
|
5026
5047
|
...t,
|
|
5027
5048
|
nodes: {
|
|
5028
5049
|
...t.nodes,
|
|
@@ -5035,7 +5056,7 @@ function Kl(e, t) {
|
|
|
5035
5056
|
break;
|
|
5036
5057
|
}
|
|
5037
5058
|
case "graph.node.task.name.set": {
|
|
5038
|
-
let t =
|
|
5059
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5039
5060
|
(r?.kind != "task" || r.task == null) && Q("The inline Task Node does not exist."), r.task.name != e.before && Q("The inline Task name changed before this operation was applied.");
|
|
5040
5061
|
let i = {
|
|
5041
5062
|
...r,
|
|
@@ -5044,7 +5065,7 @@ function Kl(e, t) {
|
|
|
5044
5065
|
name: e.value
|
|
5045
5066
|
}
|
|
5046
5067
|
};
|
|
5047
|
-
Object.assign(n,
|
|
5068
|
+
Object.assign(n, Zl(n, e.target, {
|
|
5048
5069
|
...t,
|
|
5049
5070
|
nodes: {
|
|
5050
5071
|
...t.nodes,
|
|
@@ -5054,7 +5075,7 @@ function Kl(e, t) {
|
|
|
5054
5075
|
break;
|
|
5055
5076
|
}
|
|
5056
5077
|
case "graph.node.task.ports.set": {
|
|
5057
|
-
let t =
|
|
5078
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5058
5079
|
(r?.kind != "task" || r.task == null) && Q("The inline Task Node does not exist."), g({
|
|
5059
5080
|
inputs: r.task.inputs,
|
|
5060
5081
|
outputs: r.task.outputs
|
|
@@ -5067,7 +5088,7 @@ function Kl(e, t) {
|
|
|
5067
5088
|
outputs: e.value.outputs
|
|
5068
5089
|
}
|
|
5069
5090
|
};
|
|
5070
|
-
Object.assign(n,
|
|
5091
|
+
Object.assign(n, Zl(n, e.target, {
|
|
5071
5092
|
...t,
|
|
5072
5093
|
nodes: {
|
|
5073
5094
|
...t.nodes,
|
|
@@ -5077,8 +5098,8 @@ function Kl(e, t) {
|
|
|
5077
5098
|
break;
|
|
5078
5099
|
}
|
|
5079
5100
|
case "graph.node.values.set": {
|
|
5080
|
-
let t =
|
|
5081
|
-
r?.kind != "value" && Q("The Value Node does not exist."), g(r.values, e.before) || Q("The Value Node changed before this operation was applied."), Object.assign(n,
|
|
5101
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5102
|
+
r?.kind != "value" && Q("The Value Node does not exist."), g(r.values, e.before) || Q("The Value Node changed before this operation was applied."), Object.assign(n, Zl(n, e.target, {
|
|
5082
5103
|
...t,
|
|
5083
5104
|
nodes: {
|
|
5084
5105
|
...t.nodes,
|
|
@@ -5114,7 +5135,7 @@ function Kl(e, t) {
|
|
|
5114
5135
|
break;
|
|
5115
5136
|
}
|
|
5116
5137
|
case "graph.node.webhook.set": {
|
|
5117
|
-
let t =
|
|
5138
|
+
let t = Xl(n, e.target), r = t.nodes[e.nodeId];
|
|
5118
5139
|
r?.kind != "webhook" && Q("The Webhook Node does not exist."), (!g(r.inputsDef, e.before.inputsDef) || !g(r.options, e.before.options)) && Q("The Webhook Node changed before this operation was applied.");
|
|
5119
5140
|
let { options: i, ...a } = r, o = e.value.options == null ? {
|
|
5120
5141
|
...a,
|
|
@@ -5123,7 +5144,7 @@ function Kl(e, t) {
|
|
|
5123
5144
|
...r,
|
|
5124
5145
|
...e.value
|
|
5125
5146
|
};
|
|
5126
|
-
Object.assign(n,
|
|
5147
|
+
Object.assign(n, Zl(n, e.target, {
|
|
5127
5148
|
...t,
|
|
5128
5149
|
nodes: {
|
|
5129
5150
|
...t.nodes,
|
|
@@ -5194,7 +5215,7 @@ function Kl(e, t) {
|
|
|
5194
5215
|
}
|
|
5195
5216
|
case "subflow.create":
|
|
5196
5217
|
n.subflows[e.subflowId] != null && Q("A Subflow with this ID already exists.");
|
|
5197
|
-
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 &&
|
|
5218
|
+
for (let t of Object.values(e.subflow.graph.nodes)) t.kind == "task" && t.task?.capabilities !== void 0 && Gl(t.task.capabilities);
|
|
5198
5219
|
n.subflows = {
|
|
5199
5220
|
...n.subflows,
|
|
5200
5221
|
[e.subflowId]: e.subflow
|
|
@@ -5283,7 +5304,7 @@ function Kl(e, t) {
|
|
|
5283
5304
|
}
|
|
5284
5305
|
//#endregion
|
|
5285
5306
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/usePreviousValue.js
|
|
5286
|
-
function
|
|
5307
|
+
function eu(e) {
|
|
5287
5308
|
let [t, n] = P.useState({
|
|
5288
5309
|
current: e,
|
|
5289
5310
|
previous: null
|
|
@@ -5295,7 +5316,7 @@ function ql(e) {
|
|
|
5295
5316
|
}
|
|
5296
5317
|
//#endregion
|
|
5297
5318
|
//#region src/workbench/browser/runtime/icons.tsx
|
|
5298
|
-
function
|
|
5319
|
+
function tu(e) {
|
|
5299
5320
|
switch (e) {
|
|
5300
5321
|
case "alert": return /* @__PURE__ */ L(F, { children: [
|
|
5301
5322
|
/* @__PURE__ */ I("circle", {
|
|
@@ -5479,7 +5500,7 @@ function Jl(e) {
|
|
|
5479
5500
|
] });
|
|
5480
5501
|
}
|
|
5481
5502
|
}
|
|
5482
|
-
function
|
|
5503
|
+
function nu({ name: e, size: t = 18, ...n }) {
|
|
5483
5504
|
return /* @__PURE__ */ I("svg", {
|
|
5484
5505
|
"aria-hidden": "true",
|
|
5485
5506
|
fill: "none",
|
|
@@ -5492,44 +5513,44 @@ function Yl({ name: e, size: t = 18, ...n }) {
|
|
|
5492
5513
|
strokeLinecap: "round",
|
|
5493
5514
|
strokeLinejoin: "round",
|
|
5494
5515
|
strokeWidth: "1.7",
|
|
5495
|
-
children:
|
|
5516
|
+
children: tu(e)
|
|
5496
5517
|
})
|
|
5497
5518
|
});
|
|
5498
5519
|
}
|
|
5499
5520
|
//#endregion
|
|
5500
5521
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/root/SelectRootContext.js
|
|
5501
|
-
var
|
|
5502
|
-
process.env.NODE_ENV !== "production" && (
|
|
5503
|
-
var
|
|
5504
|
-
process.env.NODE_ENV !== "production" && (
|
|
5505
|
-
function
|
|
5506
|
-
let e = P.useContext(
|
|
5522
|
+
var ru = /*#__PURE__*/ P.createContext(null);
|
|
5523
|
+
process.env.NODE_ENV !== "production" && (ru.displayName = "SelectRootContext");
|
|
5524
|
+
var iu = /*#__PURE__*/ P.createContext(null);
|
|
5525
|
+
process.env.NODE_ENV !== "production" && (iu.displayName = "SelectFloatingContext");
|
|
5526
|
+
function au() {
|
|
5527
|
+
let e = P.useContext(ru);
|
|
5507
5528
|
if (e === null) throw Error(process.env.NODE_ENV === "production" ? N(60) : "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>.");
|
|
5508
5529
|
return e;
|
|
5509
5530
|
}
|
|
5510
|
-
function
|
|
5511
|
-
let e = P.useContext(
|
|
5531
|
+
function ou() {
|
|
5532
|
+
let e = P.useContext(iu);
|
|
5512
5533
|
if (e === null) throw Error(process.env.NODE_ENV === "production" ? N(61) : "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>.");
|
|
5513
5534
|
return e;
|
|
5514
5535
|
}
|
|
5515
5536
|
//#endregion
|
|
5516
5537
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/itemEquality.js
|
|
5517
|
-
var
|
|
5518
|
-
function
|
|
5538
|
+
var su = (e, t) => Object.is(e, t);
|
|
5539
|
+
function cu(e, t, n) {
|
|
5519
5540
|
return e == null || t == null ? Object.is(e, t) : n(e, t);
|
|
5520
5541
|
}
|
|
5521
|
-
function
|
|
5522
|
-
return !e || e.length === 0 ? !1 : e.some((e) => e !== void 0 &&
|
|
5542
|
+
function lu(e, t, n) {
|
|
5543
|
+
return !e || e.length === 0 ? !1 : e.some((e) => e !== void 0 && cu(t, e, n));
|
|
5523
5544
|
}
|
|
5524
|
-
function
|
|
5525
|
-
return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 &&
|
|
5545
|
+
function uu(e, t, n) {
|
|
5546
|
+
return !e || e.length === 0 ? -1 : e.findIndex((e) => e !== void 0 && cu(e, t, n));
|
|
5526
5547
|
}
|
|
5527
|
-
function
|
|
5528
|
-
return e.filter((e) => !
|
|
5548
|
+
function du(e, t, n) {
|
|
5549
|
+
return e.filter((e) => !cu(t, e, n));
|
|
5529
5550
|
}
|
|
5530
5551
|
//#endregion
|
|
5531
5552
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/serializeValue.js
|
|
5532
|
-
function
|
|
5553
|
+
function fu(e) {
|
|
5533
5554
|
if (e == null) return "";
|
|
5534
5555
|
if (typeof e == "string") return e;
|
|
5535
5556
|
try {
|
|
@@ -5540,39 +5561,39 @@ function au(e) {
|
|
|
5540
5561
|
}
|
|
5541
5562
|
//#endregion
|
|
5542
5563
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/resolveValueLabel.js
|
|
5543
|
-
function
|
|
5564
|
+
function pu(e) {
|
|
5544
5565
|
return e != null && e.length > 0 && typeof e[0] == "object" && e[0] != null && "items" in e[0];
|
|
5545
5566
|
}
|
|
5546
|
-
function
|
|
5567
|
+
function mu(e) {
|
|
5547
5568
|
if (!Array.isArray(e)) return e != null && "null" in e;
|
|
5548
5569
|
let t = e;
|
|
5549
|
-
if (
|
|
5570
|
+
if (pu(t)) {
|
|
5550
5571
|
for (let e of t) for (let t of e.items) if (t && t.value == null && t.label != null) return !0;
|
|
5551
5572
|
return !1;
|
|
5552
5573
|
}
|
|
5553
5574
|
for (let e of t) if (e && e.value == null && e.label != null) return !0;
|
|
5554
5575
|
return !1;
|
|
5555
5576
|
}
|
|
5556
|
-
function
|
|
5577
|
+
function hu(e, t) {
|
|
5557
5578
|
if (t && e != null) return t(e) ?? "";
|
|
5558
5579
|
if (e && typeof e == "object") {
|
|
5559
5580
|
if ("label" in e && e.label != null) return String(e.label);
|
|
5560
5581
|
if ("value" in e) return String(e.value);
|
|
5561
5582
|
}
|
|
5562
|
-
return
|
|
5583
|
+
return fu(e);
|
|
5563
5584
|
}
|
|
5564
|
-
function
|
|
5565
|
-
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ?
|
|
5585
|
+
function gu(e, t) {
|
|
5586
|
+
return t && e != null ? t(e) ?? "" : e && typeof e == "object" && "value" in e && "label" in e ? fu(e.value) : fu(e);
|
|
5566
5587
|
}
|
|
5567
|
-
function
|
|
5588
|
+
function _u(e, t, n) {
|
|
5568
5589
|
function r() {
|
|
5569
|
-
return
|
|
5590
|
+
return hu(e, n);
|
|
5570
5591
|
}
|
|
5571
5592
|
if (n && e != null) return n(e);
|
|
5572
5593
|
if (e && typeof e == "object" && "label" in e && e.label != null) return e.label;
|
|
5573
5594
|
if (t && !Array.isArray(t)) return t[e] ?? r();
|
|
5574
5595
|
if (Array.isArray(t)) {
|
|
5575
|
-
let n = t, i =
|
|
5596
|
+
let n = t, i = pu(n) ? n.flatMap((e) => e.items) : n;
|
|
5576
5597
|
if (typeof e != "object" || !e) {
|
|
5577
5598
|
let t = i.find((t) => t.value === e);
|
|
5578
5599
|
return t && t.label != null ? t.label : r();
|
|
@@ -5584,8 +5605,8 @@ function uu(e, t, n) {
|
|
|
5584
5605
|
}
|
|
5585
5606
|
return r();
|
|
5586
5607
|
}
|
|
5587
|
-
function
|
|
5588
|
-
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ I(P.Fragment, { children:
|
|
5608
|
+
function vu(e, t, n) {
|
|
5609
|
+
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/*#__PURE__*/ I(P.Fragment, { children: _u(r, t, n) }, i)), e), []);
|
|
5589
5610
|
}
|
|
5590
5611
|
//#endregion
|
|
5591
5612
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/store.js
|
|
@@ -5601,9 +5622,9 @@ var $ = {
|
|
|
5601
5622
|
value: e((e) => e.value),
|
|
5602
5623
|
hasSelectedValue: e((e) => {
|
|
5603
5624
|
let { value: t, multiple: n, itemToStringValue: r } = e;
|
|
5604
|
-
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 :
|
|
5625
|
+
return t == null ? !1 : n && Array.isArray(t) ? t.length > 0 : gu(t, r) !== "";
|
|
5605
5626
|
}),
|
|
5606
|
-
hasNullItemLabel: e((e, t) => t ?
|
|
5627
|
+
hasNullItemLabel: e((e, t) => t ? mu(e.items) : !1),
|
|
5607
5628
|
open: e((e) => e.open),
|
|
5608
5629
|
mounted: e((e) => e.mounted),
|
|
5609
5630
|
forceMount: e((e) => e.forceMount),
|
|
@@ -5614,7 +5635,7 @@ var $ = {
|
|
|
5614
5635
|
isActive: e((e, t) => e.activeIndex === t),
|
|
5615
5636
|
isSelected: e((e, t, n) => {
|
|
5616
5637
|
let r = e.isItemEqualToValue, i = e.value;
|
|
5617
|
-
return e.multiple ? Array.isArray(i) && i.some((e) =>
|
|
5638
|
+
return e.multiple ? Array.isArray(i) && i.some((e) => cu(n, e, r)) : e.selectedIndex === t && e.selectedIndex !== null || cu(n, i, r);
|
|
5618
5639
|
}),
|
|
5619
5640
|
isSelectedByFocus: e((e, t) => e.selectedIndex === t),
|
|
5620
5641
|
popupProps: e((e) => e.popupProps),
|
|
@@ -5628,21 +5649,21 @@ var $ = {
|
|
|
5628
5649
|
};
|
|
5629
5650
|
//#endregion
|
|
5630
5651
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/clamp.js
|
|
5631
|
-
function
|
|
5652
|
+
function yu(e, t = -(2 ** 53 - 1), n = 2 ** 53 - 1) {
|
|
5632
5653
|
return Math.max(t, Math.min(e, n));
|
|
5633
5654
|
}
|
|
5634
|
-
function
|
|
5655
|
+
function bu(e, t) {
|
|
5635
5656
|
return Math.max(0, e - t);
|
|
5636
5657
|
}
|
|
5637
|
-
function
|
|
5658
|
+
function xu(e, t) {
|
|
5638
5659
|
if (t <= 0) return 0;
|
|
5639
|
-
let n =
|
|
5660
|
+
let n = yu(e, 0, t), r = n, i = t - n, a = r <= 1, o = i <= 1;
|
|
5640
5661
|
return a && o ? r <= i ? 0 : t : a ? 0 : o ? t : n;
|
|
5641
5662
|
}
|
|
5642
5663
|
//#endregion
|
|
5643
5664
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/root/SelectRoot.js
|
|
5644
|
-
function
|
|
5645
|
-
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: o, defaultOpen: c = !1, onOpenChange: f, name: p, form: ee, autoComplete: te, disabled: ne = !1, readOnly: g = !1, required: _ = !1, modal: ie = !0, actionsRef: b, inputRef: x, onOpenChangeComplete: S, items: C, multiple: E = !1, itemToStringLabel: ce, itemToStringValue: D, isItemEqualToValue: O =
|
|
5665
|
+
function Su(e) {
|
|
5666
|
+
let { id: t, value: n, defaultValue: r = null, onValueChange: i, open: o, defaultOpen: c = !1, onOpenChange: f, name: p, form: ee, autoComplete: te, disabled: ne = !1, readOnly: g = !1, required: _ = !1, modal: ie = !0, actionsRef: b, inputRef: x, onOpenChangeComplete: S, items: C, multiple: E = !1, itemToStringLabel: ce, itemToStringValue: D, isItemEqualToValue: O = su, highlightItemOnHover: ue = !0, children: k } = e, { clearErrors: fe } = y(), { setDirty: me, setTouched: he, setFocused: A, shouldValidateOnChange: ge, validityData: _e, setFilled: ve, name: ye, disabled: we, validation: Te, validationMode: Ee } = ze(), ke = re({ id: t }), je = we || ne, Me = ye ?? p, [N, Ne] = oe({
|
|
5646
5667
|
controlled: n,
|
|
5647
5668
|
default: E ? r ?? Ce : r,
|
|
5648
5669
|
name: "Select",
|
|
@@ -5655,7 +5676,7 @@ function hu(e) {
|
|
|
5655
5676
|
}), Le = P.useRef([]), Be = P.useRef([]), Ve = P.useRef(null), F = P.useRef(null), He = P.useRef(0), Ue = P.useRef(null), We = P.useRef([]), Ge = P.useRef(!1), Ke = P.useRef(!1), qe = P.useRef(null), Je = P.useRef({
|
|
5656
5677
|
allowSelectedMouseUp: !1,
|
|
5657
5678
|
allowUnselectedMouseUp: !1
|
|
5658
|
-
}), Ye = P.useRef(!1), { mounted: Xe, setMounted: Ze, transitionStatus: Qe } = w(Pe), { openMethod: $e, triggerProps: et } =
|
|
5679
|
+
}), Ye = P.useRef(!1), { mounted: Xe, setMounted: Ze, transitionStatus: Qe } = w(Pe), { openMethod: $e, triggerProps: et } = de(Pe), R = Ae(() => new Se({
|
|
5659
5680
|
id: ke,
|
|
5660
5681
|
labelId: void 0,
|
|
5661
5682
|
modal: ie,
|
|
@@ -5680,11 +5701,11 @@ function hu(e) {
|
|
|
5680
5701
|
scrollUpArrowVisible: !1,
|
|
5681
5702
|
scrollDownArrowVisible: !1,
|
|
5682
5703
|
hasScrollArrows: !1
|
|
5683
|
-
})).current, tt = l(R, $.activeIndex), nt = l(R, $.selectedIndex), rt = l(R, $.triggerElement), it = l(R, $.positionerElement), at =
|
|
5704
|
+
})).current, tt = l(R, $.activeIndex), nt = l(R, $.selectedIndex), rt = l(R, $.triggerElement), it = l(R, $.positionerElement), at = eu($e), ot = $e ?? at, st = P.useMemo(() => E && Array.isArray(N) && N.length === 0 ? "" : gu(N, D), [
|
|
5684
5705
|
E,
|
|
5685
5706
|
N,
|
|
5686
5707
|
D
|
|
5687
|
-
]), z = P.useMemo(() => E && Array.isArray(N) ? N.map((e) =>
|
|
5708
|
+
]), z = P.useMemo(() => E && Array.isArray(N) ? N.map((e) => gu(e, D)) : gu(N, D), [
|
|
5688
5709
|
E,
|
|
5689
5710
|
N,
|
|
5690
5711
|
D
|
|
@@ -5698,11 +5719,11 @@ function hu(e) {
|
|
|
5698
5719
|
De(() => {
|
|
5699
5720
|
N !== ut.current && R.set("forceMount", !0);
|
|
5700
5721
|
}, [R, N]), De(() => {
|
|
5701
|
-
|
|
5722
|
+
ve(E ? Array.isArray(N) && N.length > 0 : N != null);
|
|
5702
5723
|
}, [
|
|
5703
5724
|
E,
|
|
5704
5725
|
N,
|
|
5705
|
-
|
|
5726
|
+
ve
|
|
5706
5727
|
]), De(function() {
|
|
5707
5728
|
if (Pe) return;
|
|
5708
5729
|
let e = We.current;
|
|
@@ -5712,11 +5733,11 @@ function hu(e) {
|
|
|
5712
5733
|
R.set("selectedIndex", null);
|
|
5713
5734
|
return;
|
|
5714
5735
|
}
|
|
5715
|
-
let n = t[t.length - 1], r =
|
|
5736
|
+
let n = t[t.length - 1], r = uu(e, n, O);
|
|
5716
5737
|
R.set("selectedIndex", r === -1 ? null : r);
|
|
5717
5738
|
return;
|
|
5718
5739
|
}
|
|
5719
|
-
let t =
|
|
5740
|
+
let t = uu(e, N, O);
|
|
5720
5741
|
R.set("selectedIndex", t === -1 ? null : t);
|
|
5721
5742
|
}, [
|
|
5722
5743
|
E,
|
|
@@ -5726,10 +5747,10 @@ function hu(e) {
|
|
|
5726
5747
|
O,
|
|
5727
5748
|
R
|
|
5728
5749
|
]), xe(N, () => {
|
|
5729
|
-
|
|
5750
|
+
fe(Me), me(N !== _e.initialValue), ge() ? Te.commit(N) : Te.commit(N, !0);
|
|
5730
5751
|
});
|
|
5731
5752
|
let dt = be((e, t) => {
|
|
5732
|
-
if (f?.(e, t), !t.isCanceled && (Fe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (
|
|
5753
|
+
if (f?.(e, t), !t.isCanceled && (Fe(e), !e && (t.reason === "focus-out" || t.reason === "outside-press") && (he(!0), A(!1), Ee === "onBlur" && Te.commit(N)), !e && R.state.activeIndex !== null)) {
|
|
5733
5754
|
let e = Le.current[R.state.activeIndex];
|
|
5734
5755
|
queueMicrotask(() => {
|
|
5735
5756
|
e?.setAttribute("tabindex", "-1");
|
|
@@ -5754,7 +5775,7 @@ function hu(e) {
|
|
|
5754
5775
|
}), mt = be(() => {
|
|
5755
5776
|
let e = R.state.listElement || Ve.current;
|
|
5756
5777
|
if (!e) return;
|
|
5757
|
-
let t =
|
|
5778
|
+
let t = bu(e.scrollHeight, e.clientHeight), n = xu(e.scrollTop, t), r = n > 0, i = n < t;
|
|
5758
5779
|
R.state.scrollUpArrowVisible !== r && R.set("scrollUpArrowVisible", r), R.state.scrollDownArrowVisible !== i && R.set("scrollDownArrowVisible", i);
|
|
5759
5780
|
}), ht = v({
|
|
5760
5781
|
open: Pe,
|
|
@@ -5775,7 +5796,7 @@ function hu(e) {
|
|
|
5775
5796
|
onNavigate(e) {
|
|
5776
5797
|
e === null && !Pe || R.set("activeIndex", e);
|
|
5777
5798
|
},
|
|
5778
|
-
focusItemOnHover:
|
|
5799
|
+
focusItemOnHover: ue
|
|
5779
5800
|
}), B = h(ht, {
|
|
5780
5801
|
enabled: !g && !je && (Pe || !E),
|
|
5781
5802
|
listRef: Be,
|
|
@@ -5792,12 +5813,12 @@ function hu(e) {
|
|
|
5792
5813
|
_t,
|
|
5793
5814
|
vt,
|
|
5794
5815
|
B
|
|
5795
|
-
]), St = P.useMemo(() =>
|
|
5816
|
+
]), St = P.useMemo(() => j(yt(), et, ke ? { id: ke } : u), [
|
|
5796
5817
|
yt,
|
|
5797
5818
|
et,
|
|
5798
5819
|
ke
|
|
5799
5820
|
]);
|
|
5800
|
-
|
|
5821
|
+
pe(() => {
|
|
5801
5822
|
R.update({
|
|
5802
5823
|
popupProps: bt(),
|
|
5803
5824
|
triggerProps: St
|
|
@@ -5843,7 +5864,7 @@ function hu(e) {
|
|
|
5843
5864
|
disabled: je,
|
|
5844
5865
|
readOnly: g,
|
|
5845
5866
|
multiple: E,
|
|
5846
|
-
highlightItemOnHover:
|
|
5867
|
+
highlightItemOnHover: ue,
|
|
5847
5868
|
setValue: pt,
|
|
5848
5869
|
setOpen: dt,
|
|
5849
5870
|
listRef: Le,
|
|
@@ -5871,7 +5892,7 @@ function hu(e) {
|
|
|
5871
5892
|
je,
|
|
5872
5893
|
g,
|
|
5873
5894
|
E,
|
|
5874
|
-
|
|
5895
|
+
ue,
|
|
5875
5896
|
pt,
|
|
5876
5897
|
dt,
|
|
5877
5898
|
xt,
|
|
@@ -5880,7 +5901,7 @@ function hu(e) {
|
|
|
5880
5901
|
S,
|
|
5881
5902
|
mt
|
|
5882
5903
|
]), wt = se(x, Te.inputRef), Tt = E && Array.isArray(N) && N.length > 0, Et = E ? void 0 : Me, Dt = P.useMemo(() => !E || !Array.isArray(N) || !Me ? null : N.map((e) => {
|
|
5883
|
-
let t =
|
|
5904
|
+
let t = gu(e, D);
|
|
5884
5905
|
return /*#__PURE__*/ I("input", {
|
|
5885
5906
|
type: "hidden",
|
|
5886
5907
|
form: ee,
|
|
@@ -5894,12 +5915,12 @@ function hu(e) {
|
|
|
5894
5915
|
Me,
|
|
5895
5916
|
D
|
|
5896
5917
|
]);
|
|
5897
|
-
return /*#__PURE__*/ I(
|
|
5918
|
+
return /*#__PURE__*/ I(ru.Provider, {
|
|
5898
5919
|
value: Ct,
|
|
5899
|
-
children: /*#__PURE__*/ L(
|
|
5920
|
+
children: /*#__PURE__*/ L(iu.Provider, {
|
|
5900
5921
|
value: ht,
|
|
5901
5922
|
children: [
|
|
5902
|
-
|
|
5923
|
+
k,
|
|
5903
5924
|
/*#__PURE__*/ I("input", {
|
|
5904
5925
|
...Te.getInputValidationProps({
|
|
5905
5926
|
onFocus() {
|
|
@@ -5910,8 +5931,8 @@ function hu(e) {
|
|
|
5910
5931
|
let t = e.currentTarget.value, n = m(ae, e.nativeEvent);
|
|
5911
5932
|
function r() {
|
|
5912
5933
|
if (E) return;
|
|
5913
|
-
let e = We.current.find((e) =>
|
|
5914
|
-
e != null && (
|
|
5934
|
+
let e = We.current.find((e) => gu(e, D).toLowerCase() === t.toLowerCase() || hu(e, ce).toLowerCase() === t.toLowerCase());
|
|
5935
|
+
e != null && (me(e !== _e.initialValue), pt(e, n), ge() && Te.commit(e));
|
|
5915
5936
|
}
|
|
5916
5937
|
R.set("forceMount", !0), queueMicrotask(r);
|
|
5917
5938
|
}
|
|
@@ -5937,30 +5958,30 @@ function hu(e) {
|
|
|
5937
5958
|
}
|
|
5938
5959
|
//#endregion
|
|
5939
5960
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/resolveAriaLabelledBy.js
|
|
5940
|
-
function
|
|
5961
|
+
function Cu(e, t) {
|
|
5941
5962
|
return e ?? t;
|
|
5942
5963
|
}
|
|
5943
5964
|
//#endregion
|
|
5944
5965
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/trigger/SelectTrigger.js
|
|
5945
|
-
var
|
|
5966
|
+
var wu = 2, Tu = 400, Eu = 200, Du = {
|
|
5946
5967
|
...i,
|
|
5947
5968
|
...n,
|
|
5948
5969
|
value: () => null
|
|
5949
|
-
},
|
|
5950
|
-
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: s = !0, style: c, ...u } = e, { setTouched: d, setFocused: p, validationMode: h, state: g, disabled: v } = ze(), { labelId: y } = o(), { store: b, setOpen: x, selectionRef: S, validation: C, readOnly: w, required: oe, alignItemWithTriggerActiveRef: T, disabled: E, keyboardActiveRef: ce } =
|
|
5951
|
-
re({ id:
|
|
5952
|
-
let
|
|
5970
|
+
}, Ou = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
5971
|
+
let { render: n, className: r, id: i, disabled: a = !1, nativeButton: s = !0, style: c, ...u } = e, { setTouched: d, setFocused: p, validationMode: h, state: g, disabled: v } = ze(), { labelId: y } = o(), { store: b, setOpen: x, selectionRef: S, validation: C, readOnly: w, required: oe, alignItemWithTriggerActiveRef: T, disabled: E, keyboardActiveRef: ce } = au(), D = v || E || a, O = l(b, $.open), ue = l(b, $.value), k = l(b, $.triggerProps), de = l(b, $.positionerElement), fe = l(b, $.listElement), pe = l(b, $.id), me = l(b, $.labelId), he = l(b, $.hasSelectedValue), A = !he && O, ge = l(b, $.hasNullItemLabel, A), _e = i ?? pe, ve = Cu(y, me);
|
|
5972
|
+
re({ id: _e });
|
|
5973
|
+
let ye = le(de), M = P.useRef(null), { getButtonProps: xe, buttonRef: Se } = _({
|
|
5953
5974
|
disabled: D,
|
|
5954
5975
|
native: s
|
|
5955
5976
|
}), Ce = be((e) => {
|
|
5956
5977
|
b.set("triggerElement", e);
|
|
5957
5978
|
}), we = se(t, M, Se, Ce), Te = Ee(), De = Ee(), Oe = Ee(), ke = Ee();
|
|
5958
5979
|
P.useEffect(() => {
|
|
5959
|
-
if (O) return
|
|
5960
|
-
S.current.allowUnselectedMouseUp = !0, Oe.start(
|
|
5980
|
+
if (O) return he || ge ? ke.start(Eu, () => {
|
|
5981
|
+
S.current.allowUnselectedMouseUp = !0, Oe.start(Eu, () => {
|
|
5961
5982
|
S.current.allowSelectedMouseUp = !0;
|
|
5962
5983
|
});
|
|
5963
|
-
}) : Oe.start(
|
|
5984
|
+
}) : Oe.start(Tu, () => {
|
|
5964
5985
|
S.current.allowUnselectedMouseUp = !0, S.current.allowSelectedMouseUp = !0;
|
|
5965
5986
|
}), () => {
|
|
5966
5987
|
Oe.clear(), ke.clear();
|
|
@@ -5971,20 +5992,20 @@ var _u = 2, vu = 400, yu = 200, bu = {
|
|
|
5971
5992
|
}, De.clear();
|
|
5972
5993
|
}, [
|
|
5973
5994
|
O,
|
|
5974
|
-
me,
|
|
5975
5995
|
he,
|
|
5996
|
+
ge,
|
|
5976
5997
|
S,
|
|
5977
5998
|
De,
|
|
5978
5999
|
Oe,
|
|
5979
6000
|
ke
|
|
5980
6001
|
]);
|
|
5981
|
-
let Ae = P.useMemo(() =>
|
|
5982
|
-
id:
|
|
6002
|
+
let Ae = P.useMemo(() => fe?.id ?? ie(de)?.id, [fe, de]), Me = j(k, {
|
|
6003
|
+
id: _e,
|
|
5983
6004
|
role: "combobox",
|
|
5984
6005
|
"aria-expanded": O ? "true" : "false",
|
|
5985
6006
|
"aria-haspopup": "listbox",
|
|
5986
6007
|
"aria-controls": O ? Ae : void 0,
|
|
5987
|
-
"aria-labelledby":
|
|
6008
|
+
"aria-labelledby": ve,
|
|
5988
6009
|
"aria-readonly": w || void 0,
|
|
5989
6010
|
"aria-required": oe || void 0,
|
|
5990
6011
|
tabIndex: D ? -1 : 0,
|
|
@@ -5995,7 +6016,7 @@ var _u = 2, vu = 400, yu = 200, bu = {
|
|
|
5995
6016
|
});
|
|
5996
6017
|
},
|
|
5997
6018
|
onBlur(e) {
|
|
5998
|
-
ne(
|
|
6019
|
+
ne(de, e.relatedTarget) || (d(!0), p(!1), h === "onBlur" && C.commit(ue));
|
|
5999
6020
|
},
|
|
6000
6021
|
onPointerMove() {
|
|
6001
6022
|
ce.current = !1;
|
|
@@ -6009,9 +6030,9 @@ var _u = 2, vu = 400, yu = 200, bu = {
|
|
|
6009
6030
|
function n(e) {
|
|
6010
6031
|
if (!M.current) return;
|
|
6011
6032
|
let t = e.target;
|
|
6012
|
-
if (ne(M.current, t) || ne(
|
|
6033
|
+
if (ne(M.current, t) || ne(ye.current, t) || t === M.current) return;
|
|
6013
6034
|
let n = je(M.current);
|
|
6014
|
-
e.clientX >= n.left -
|
|
6035
|
+
e.clientX >= n.left - wu && e.clientX <= n.right + wu && e.clientY >= n.top - wu && e.clientY <= n.bottom + wu || x(!1, m(te, e));
|
|
6015
6036
|
}
|
|
6016
6037
|
De.start(0, () => {
|
|
6017
6038
|
t.addEventListener("mouseup", n, { once: !0 });
|
|
@@ -6023,37 +6044,37 @@ var _u = 2, vu = 400, yu = 200, bu = {
|
|
|
6023
6044
|
...g,
|
|
6024
6045
|
open: O,
|
|
6025
6046
|
disabled: D,
|
|
6026
|
-
value:
|
|
6047
|
+
value: ue,
|
|
6027
6048
|
readOnly: w,
|
|
6028
|
-
placeholder: !
|
|
6049
|
+
placeholder: !he
|
|
6029
6050
|
};
|
|
6030
6051
|
return f("button", e, {
|
|
6031
6052
|
ref: [t, M],
|
|
6032
6053
|
state: N,
|
|
6033
|
-
stateAttributesMapping:
|
|
6054
|
+
stateAttributesMapping: Du,
|
|
6034
6055
|
props: Me
|
|
6035
6056
|
});
|
|
6036
6057
|
});
|
|
6037
|
-
process.env.NODE_ENV !== "production" && (
|
|
6058
|
+
process.env.NODE_ENV !== "production" && (Ou.displayName = "SelectTrigger");
|
|
6038
6059
|
//#endregion
|
|
6039
6060
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/value/SelectValue.js
|
|
6040
|
-
var
|
|
6041
|
-
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: u } =
|
|
6061
|
+
var ku = { value: () => null }, Au = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6062
|
+
let { className: n, render: r, children: i, placeholder: a, style: o, ...s } = e, { store: c, valueRef: u } = au(), d = l(c, $.value), p = l(c, $.items), m = l(c, $.itemToStringLabel), h = l(c, $.hasSelectedValue), ee = !h && a != null && i == null, te = l(c, $.hasNullItemLabel, ee), ne = {
|
|
6042
6063
|
value: d,
|
|
6043
6064
|
placeholder: !h
|
|
6044
6065
|
}, g = null;
|
|
6045
|
-
return g = typeof i == "function" ? i(d) : i ?? (!h && a != null && !te ? a : Array.isArray(d) ?
|
|
6066
|
+
return g = typeof i == "function" ? i(d) : i ?? (!h && a != null && !te ? a : Array.isArray(d) ? vu(d, p, m) : _u(d, p, m)), f("span", e, {
|
|
6046
6067
|
state: ne,
|
|
6047
6068
|
ref: [t, u],
|
|
6048
6069
|
props: [{ children: g }, s],
|
|
6049
|
-
stateAttributesMapping:
|
|
6070
|
+
stateAttributesMapping: ku
|
|
6050
6071
|
});
|
|
6051
6072
|
});
|
|
6052
|
-
process.env.NODE_ENV !== "production" && (
|
|
6073
|
+
process.env.NODE_ENV !== "production" && (Au.displayName = "SelectValue");
|
|
6053
6074
|
//#endregion
|
|
6054
6075
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/icon/SelectIcon.js
|
|
6055
|
-
var
|
|
6056
|
-
let { className: n, render: i, style: a, ...o } = e, { store: s } =
|
|
6076
|
+
var ju = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6077
|
+
let { className: n, render: i, style: a, ...o } = e, { store: s } = au(), c = { open: l(s, $.open) };
|
|
6057
6078
|
return f("span", e, {
|
|
6058
6079
|
state: c,
|
|
6059
6080
|
ref: t,
|
|
@@ -6064,48 +6085,48 @@ var wu = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6064
6085
|
stateAttributesMapping: r
|
|
6065
6086
|
});
|
|
6066
6087
|
});
|
|
6067
|
-
process.env.NODE_ENV !== "production" && (
|
|
6088
|
+
process.env.NODE_ENV !== "production" && (ju.displayName = "SelectIcon");
|
|
6068
6089
|
//#endregion
|
|
6069
6090
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/portal/SelectPortalContext.js
|
|
6070
|
-
var
|
|
6071
|
-
process.env.NODE_ENV !== "production" && (
|
|
6091
|
+
var Mu = /*#__PURE__*/ P.createContext(void 0);
|
|
6092
|
+
process.env.NODE_ENV !== "production" && (Mu.displayName = "SelectPortalContext");
|
|
6072
6093
|
//#endregion
|
|
6073
6094
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/portal/SelectPortal.js
|
|
6074
|
-
var
|
|
6075
|
-
let { store: n } =
|
|
6076
|
-
return r || i ? /*#__PURE__*/ I(
|
|
6095
|
+
var Nu = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6096
|
+
let { store: n } = au(), r = l(n, $.mounted), i = l(n, $.forceMount);
|
|
6097
|
+
return r || i ? /*#__PURE__*/ I(Mu.Provider, {
|
|
6077
6098
|
value: !0,
|
|
6078
|
-
children: /*#__PURE__*/ I(
|
|
6099
|
+
children: /*#__PURE__*/ I(ue, {
|
|
6079
6100
|
ref: t,
|
|
6080
6101
|
...e
|
|
6081
6102
|
})
|
|
6082
6103
|
}) : null;
|
|
6083
6104
|
});
|
|
6084
|
-
process.env.NODE_ENV !== "production" && (
|
|
6105
|
+
process.env.NODE_ENV !== "production" && (Nu.displayName = "SelectPortal");
|
|
6085
6106
|
//#endregion
|
|
6086
6107
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/positioner/SelectPositionerContext.js
|
|
6087
|
-
var
|
|
6088
|
-
process.env.NODE_ENV !== "production" && (
|
|
6089
|
-
function
|
|
6090
|
-
let e = P.useContext(
|
|
6108
|
+
var Pu = /*#__PURE__*/ P.createContext(void 0);
|
|
6109
|
+
process.env.NODE_ENV !== "production" && (Pu.displayName = "SelectPositionerContext");
|
|
6110
|
+
function Fu() {
|
|
6111
|
+
let e = P.useContext(Pu);
|
|
6091
6112
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? N(59) : "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>.");
|
|
6092
6113
|
return e;
|
|
6093
6114
|
}
|
|
6094
6115
|
//#endregion
|
|
6095
6116
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/popup/utils.js
|
|
6096
|
-
function
|
|
6117
|
+
function Iu(e, t) {
|
|
6097
6118
|
e && Object.assign(e.style, t);
|
|
6098
6119
|
}
|
|
6099
|
-
var
|
|
6120
|
+
var Lu = {
|
|
6100
6121
|
position: "relative",
|
|
6101
6122
|
maxHeight: "100%",
|
|
6102
6123
|
overflowX: "hidden",
|
|
6103
6124
|
overflowY: "auto"
|
|
6104
|
-
},
|
|
6105
|
-
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: h = !1, disableAnchorTracking: ee, alignItemWithTrigger: te = !0, collisionAvoidance: ne =
|
|
6106
|
-
!T &&
|
|
6125
|
+
}, Ru = { position: "fixed" }, zu = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6126
|
+
let { anchor: n, positionMethod: r = "absolute", className: i, render: a, side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: u = 0, collisionBoundary: d = "clipping-ancestors", collisionPadding: f, arrowPadding: p = 5, sticky: h = !1, disableAnchorTracking: ee, alignItemWithTrigger: te = !0, collisionAvoidance: ne = ve, style: g, ...re } = e, { store: _, listRef: v, labelsRef: y, alignItemWithTriggerActiveRef: ie, selectedItemTextRef: b, valuesRef: x, initialValueRef: S, popupRef: C, setValue: w } = au(), oe = ou(), se = l(_, $.open), T = l(_, $.mounted), le = l(_, $.modal), D = l(_, $.value), O = l(_, $.openMethod), ue = l(_, $.positionerElement), k = l(_, $.triggerElement), de = l(_, $.isItemEqualToValue), pe = l(_, $.transitionStatus), he = P.useRef(null), A = P.useRef(null), [ge, _e] = P.useState(te), j = T && ge && O !== "touch";
|
|
6127
|
+
!T && ge !== te && _e(te), De(() => {
|
|
6107
6128
|
T || ($.scrollUpArrowVisible(_.state) && _.set("scrollUpArrowVisible", !1), $.scrollDownArrowVisible(_.state) && _.set("scrollDownArrowVisible", !1));
|
|
6108
|
-
}, [_, T]), P.useImperativeHandle(ie, () =>
|
|
6129
|
+
}, [_, T]), P.useImperativeHandle(ie, () => j), ye((j || le) && se, O === "touch", ue, k);
|
|
6109
6130
|
let M = ce({
|
|
6110
6131
|
anchor: n,
|
|
6111
6132
|
floatingRootContext: oe,
|
|
@@ -6119,10 +6140,10 @@ var Au = {
|
|
|
6119
6140
|
collisionBoundary: d,
|
|
6120
6141
|
collisionPadding: f,
|
|
6121
6142
|
sticky: h,
|
|
6122
|
-
disableAnchorTracking: ee ??
|
|
6143
|
+
disableAnchorTracking: ee ?? j,
|
|
6123
6144
|
collisionAvoidance: ne,
|
|
6124
6145
|
keepMounted: !0
|
|
6125
|
-
}), xe =
|
|
6146
|
+
}), xe = j ? "none" : M.side, Se = j ? Ru : M.positionerStyles, Ce = {
|
|
6126
6147
|
open: se,
|
|
6127
6148
|
side: xe,
|
|
6128
6149
|
align: M.align,
|
|
@@ -6131,7 +6152,7 @@ var Au = {
|
|
|
6131
6152
|
_.set("positionerElement", e);
|
|
6132
6153
|
}), Ee = Te(e, Ce, {
|
|
6133
6154
|
styles: Se,
|
|
6134
|
-
transitionStatus:
|
|
6155
|
+
transitionStatus: pe,
|
|
6135
6156
|
props: re,
|
|
6136
6157
|
refs: [t, we],
|
|
6137
6158
|
hidden: !T,
|
|
@@ -6141,180 +6162,180 @@ var Au = {
|
|
|
6141
6162
|
let t = Oe.current;
|
|
6142
6163
|
if (Oe.current = e.size, e.size === t) return;
|
|
6143
6164
|
let n = m(ae);
|
|
6144
|
-
if (t !== 0 && !_.state.multiple && D !== null &&
|
|
6145
|
-
let e = S.current, t = e != null &&
|
|
6165
|
+
if (t !== 0 && !_.state.multiple && D !== null && uu(x.current, D, de) === -1) {
|
|
6166
|
+
let e = S.current, t = e != null && uu(x.current, e, de) !== -1 ? e : null;
|
|
6146
6167
|
w(t, n), t === null && (_.set("selectedIndex", null), b.current = null);
|
|
6147
6168
|
}
|
|
6148
6169
|
if (t !== 0 && _.state.multiple && Array.isArray(D)) {
|
|
6149
|
-
let e = (e) =>
|
|
6150
|
-
(t.length !== D.length || t.some((e) => !
|
|
6170
|
+
let e = (e) => uu(x.current, e, de) !== -1, t = D.filter((t) => e(t));
|
|
6171
|
+
(t.length !== D.length || t.some((e) => !lu(D, e, de))) && (w(t, n), t.length === 0 && (_.set("selectedIndex", null), b.current = null));
|
|
6151
6172
|
}
|
|
6152
|
-
if (se &&
|
|
6173
|
+
if (se && j) {
|
|
6153
6174
|
_.update({
|
|
6154
6175
|
scrollUpArrowVisible: !1,
|
|
6155
6176
|
scrollDownArrowVisible: !1
|
|
6156
6177
|
});
|
|
6157
6178
|
let e = { height: "" };
|
|
6158
|
-
|
|
6179
|
+
Iu(ue, e), Iu(C.current, e);
|
|
6159
6180
|
}
|
|
6160
6181
|
}), Ae = P.useMemo(() => ({
|
|
6161
6182
|
...M,
|
|
6162
6183
|
side: xe,
|
|
6163
|
-
alignItemWithTriggerActive:
|
|
6164
|
-
setControlledAlignItemWithTrigger:
|
|
6165
|
-
scrollUpArrowRef:
|
|
6166
|
-
scrollDownArrowRef:
|
|
6184
|
+
alignItemWithTriggerActive: j,
|
|
6185
|
+
setControlledAlignItemWithTrigger: _e,
|
|
6186
|
+
scrollUpArrowRef: he,
|
|
6187
|
+
scrollDownArrowRef: A
|
|
6167
6188
|
}), [
|
|
6168
6189
|
M,
|
|
6169
6190
|
xe,
|
|
6170
|
-
|
|
6171
|
-
|
|
6191
|
+
j,
|
|
6192
|
+
_e
|
|
6172
6193
|
]);
|
|
6173
|
-
return /*#__PURE__*/ I(
|
|
6194
|
+
return /*#__PURE__*/ I(me, {
|
|
6174
6195
|
elementsRef: v,
|
|
6175
6196
|
labelsRef: y,
|
|
6176
6197
|
onMapChange: ke,
|
|
6177
|
-
children: /*#__PURE__*/ L(
|
|
6198
|
+
children: /*#__PURE__*/ L(Pu.Provider, {
|
|
6178
6199
|
value: Ae,
|
|
6179
|
-
children: [T && le && /*#__PURE__*/ I(
|
|
6200
|
+
children: [T && le && /*#__PURE__*/ I(fe, {
|
|
6180
6201
|
inert: E(!se),
|
|
6181
|
-
cutout:
|
|
6202
|
+
cutout: k
|
|
6182
6203
|
}), Ee]
|
|
6183
6204
|
})
|
|
6184
6205
|
});
|
|
6185
6206
|
});
|
|
6186
|
-
process.env.NODE_ENV !== "production" && (
|
|
6207
|
+
process.env.NODE_ENV !== "production" && (zu.displayName = "SelectPositioner");
|
|
6187
6208
|
//#endregion
|
|
6188
6209
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/styles.js
|
|
6189
|
-
var
|
|
6190
|
-
className:
|
|
6210
|
+
var Bu = "base-ui-disable-scrollbar", Vu = {
|
|
6211
|
+
className: Bu,
|
|
6191
6212
|
getElement(e) {
|
|
6192
6213
|
return /*#__PURE__*/ I("style", {
|
|
6193
6214
|
nonce: e,
|
|
6194
|
-
href:
|
|
6215
|
+
href: Bu,
|
|
6195
6216
|
precedence: "base-ui:low",
|
|
6196
|
-
children: `.${
|
|
6217
|
+
children: `.${Bu}{scrollbar-width:none}.${Bu}::-webkit-scrollbar{display:none}`
|
|
6197
6218
|
});
|
|
6198
6219
|
}
|
|
6199
6220
|
};
|
|
6200
|
-
process.env.NODE_ENV !== "production" && (
|
|
6221
|
+
process.env.NODE_ENV !== "production" && (Vu.getElement.displayName = "styleDisableScrollbar.getElement");
|
|
6201
6222
|
//#endregion
|
|
6202
6223
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/csp-provider/CSPContext.js
|
|
6203
|
-
var
|
|
6204
|
-
process.env.NODE_ENV !== "production" && (
|
|
6205
|
-
var
|
|
6206
|
-
function
|
|
6207
|
-
return P.useContext(
|
|
6224
|
+
var Hu = /*#__PURE__*/ P.createContext(void 0);
|
|
6225
|
+
process.env.NODE_ENV !== "production" && (Hu.displayName = "CSPContext");
|
|
6226
|
+
var Uu = { disableStyleElements: !1 };
|
|
6227
|
+
function Wu() {
|
|
6228
|
+
return P.useContext(Hu) ?? Uu;
|
|
6208
6229
|
}
|
|
6209
6230
|
//#endregion
|
|
6210
6231
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/popup/SelectPopup.js
|
|
6211
|
-
var
|
|
6232
|
+
var Gu = {
|
|
6212
6233
|
...x,
|
|
6213
|
-
...
|
|
6214
|
-
},
|
|
6215
|
-
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: u, setOpen: d, valueRef: h, selectedItemTextRef: te, keyboardActiveRef: ne, multiple: g, handleScrollArrowVisibility: re, scrollHandlerRef: _, listRef: v, highlightItemOnHover: y } =
|
|
6216
|
-
if (!
|
|
6217
|
-
if (
|
|
6234
|
+
...k
|
|
6235
|
+
}, Ku = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6236
|
+
let { render: n, className: r, style: i, finalFocus: a, ...o } = e, { store: s, popupRef: c, onOpenChangeComplete: u, setOpen: d, valueRef: h, selectedItemTextRef: te, keyboardActiveRef: ne, multiple: g, handleScrollArrowVisibility: re, scrollHandlerRef: _, listRef: v, highlightItemOnHover: y } = au(), { side: ie, align: x, alignItemWithTriggerActive: S, isPositioned: ae, setControlledAlignItemWithTrigger: C, scrollDownArrowRef: w, scrollUpArrowRef: oe } = Fu(), se = ge(!0) != null, E = ou(), ce = ke(), { nonce: le, disableStyleElements: O } = Wu(), ue = l(s, $.id), k = l(s, $.open), de = l(s, $.mounted), fe = l(s, $.popupProps), pe = l(s, $.transitionStatus), me = l(s, $.triggerElement), A = l(s, $.positionerElement), ve = l(s, $.listElement), ye = P.useRef(!1), j = P.useRef(!1), M = P.useRef({}), xe = Me(), Se = be((e) => {
|
|
6237
|
+
if (!A || !c.current || !j.current) return;
|
|
6238
|
+
if (ye.current || !S) {
|
|
6218
6239
|
re();
|
|
6219
6240
|
return;
|
|
6220
6241
|
}
|
|
6221
|
-
let t =
|
|
6242
|
+
let t = A.style.top === "0px", n = A.style.bottom === "0px";
|
|
6222
6243
|
if (!t && !n) {
|
|
6223
6244
|
re();
|
|
6224
6245
|
return;
|
|
6225
6246
|
}
|
|
6226
|
-
let r =
|
|
6227
|
-
|
|
6247
|
+
let r = Yu(A), i = Xu(A.getBoundingClientRect().height, "y", r), a = ee(A), o = getComputedStyle(A), s = parseFloat(o.marginTop), l = parseFloat(o.marginBottom), u = qu(getComputedStyle(c.current)), d = Math.min(a.documentElement.clientHeight - s - l, u), f = e.scrollTop, p = Ju(e), m = 0, h = null, te = !1, ne = !1, g = (e) => {
|
|
6248
|
+
A.style.height = `${e}px`;
|
|
6228
6249
|
}, _ = (t, n) => {
|
|
6229
|
-
let r =
|
|
6230
|
-
r > 0 && g(i + r), e.scrollTop = n, d - (i + r) <= 1 && (
|
|
6250
|
+
let r = yu(t, 0, d - i);
|
|
6251
|
+
r > 0 && g(i + r), e.scrollTop = n, d - (i + r) <= 1 && (ye.current = !0), re();
|
|
6231
6252
|
}, v = t ? p - f : f, y = Math.min(i + v, d);
|
|
6232
6253
|
if (m = y, v <= 1) {
|
|
6233
6254
|
_(v, t ? p : 0);
|
|
6234
6255
|
return;
|
|
6235
6256
|
}
|
|
6236
6257
|
if (d - y > 1 ? t ? ne = !0 : h = 0 : (te = !0, n && f < p && (h = f - (v - (i + v - d)))), m = Math.ceil(m), m !== 0 && g(m), ne || h != null) {
|
|
6237
|
-
let t =
|
|
6258
|
+
let t = Ju(e), n = ne ? t : yu(h, 0, t);
|
|
6238
6259
|
Math.abs(e.scrollTop - n) > 1 && (e.scrollTop = n);
|
|
6239
6260
|
}
|
|
6240
|
-
(te || m >= d - 1) && (
|
|
6261
|
+
(te || m >= d - 1) && (ye.current = !0), re();
|
|
6241
6262
|
});
|
|
6242
6263
|
P.useImperativeHandle(_, () => Se, [Se]), T({
|
|
6243
|
-
open:
|
|
6264
|
+
open: k,
|
|
6244
6265
|
ref: c,
|
|
6245
6266
|
onComplete() {
|
|
6246
|
-
|
|
6267
|
+
k && u?.(!0);
|
|
6247
6268
|
}
|
|
6248
6269
|
});
|
|
6249
6270
|
let Ce = {
|
|
6250
|
-
open:
|
|
6251
|
-
transitionStatus:
|
|
6271
|
+
open: k,
|
|
6272
|
+
transitionStatus: pe,
|
|
6252
6273
|
side: ie,
|
|
6253
6274
|
align: x
|
|
6254
6275
|
};
|
|
6255
6276
|
De(() => {
|
|
6256
|
-
!
|
|
6257
|
-
top:
|
|
6258
|
-
left:
|
|
6259
|
-
right:
|
|
6260
|
-
height:
|
|
6261
|
-
bottom:
|
|
6262
|
-
minHeight:
|
|
6263
|
-
maxHeight:
|
|
6264
|
-
marginTop:
|
|
6265
|
-
marginBottom:
|
|
6277
|
+
!A || !c.current || Object.keys(M.current).length || (M.current = {
|
|
6278
|
+
top: A.style.top || "0",
|
|
6279
|
+
left: A.style.left || "0",
|
|
6280
|
+
right: A.style.right,
|
|
6281
|
+
height: A.style.height,
|
|
6282
|
+
bottom: A.style.bottom,
|
|
6283
|
+
minHeight: A.style.minHeight,
|
|
6284
|
+
maxHeight: A.style.maxHeight,
|
|
6285
|
+
marginTop: A.style.marginTop,
|
|
6286
|
+
marginBottom: A.style.marginBottom
|
|
6266
6287
|
});
|
|
6267
|
-
}, [c,
|
|
6268
|
-
|
|
6288
|
+
}, [c, A]), De(() => {
|
|
6289
|
+
k || S || (j.current = !1, ye.current = !1, Iu(A, M.current));
|
|
6269
6290
|
}, [
|
|
6270
|
-
|
|
6291
|
+
k,
|
|
6271
6292
|
S,
|
|
6272
|
-
|
|
6293
|
+
A,
|
|
6273
6294
|
c
|
|
6274
6295
|
]), De(() => {
|
|
6275
6296
|
let e = c.current;
|
|
6276
|
-
if (!
|
|
6297
|
+
if (!k || !me || !A || !e || S && !ae || s.state.transitionStatus === "ending") return;
|
|
6277
6298
|
if (!S) {
|
|
6278
|
-
|
|
6299
|
+
j.current = !0, xe.request(re), e.style.removeProperty("--transform-origin");
|
|
6279
6300
|
return;
|
|
6280
6301
|
}
|
|
6281
|
-
let t =
|
|
6302
|
+
let t = $u(e);
|
|
6282
6303
|
e.style.removeProperty("--transform-origin");
|
|
6283
6304
|
try {
|
|
6284
|
-
let t = te.current, n = h.current, r = getComputedStyle(
|
|
6305
|
+
let t = te.current, n = h.current, r = getComputedStyle(A), i = getComputedStyle(e), a = ee(me), o = _e(A), c = Yu(me), l = Zu(me.getBoundingClientRect(), c), u = Zu(A.getBoundingClientRect(), c), d = l.height, f = ve || e, m = f.scrollHeight, ne = parseFloat(i.borderBottomWidth), g = parseFloat(r.marginTop) || 10, _ = parseFloat(r.marginBottom) || 10, ie = parseFloat(r.minHeight) || 100, b = qu(i), x = a.documentElement.clientHeight - g - _, S = a.documentElement.clientWidth, ae = x - l.bottom + d, w, oe = ce === "rtl" ? l.right - u.width : l.left, se = 0;
|
|
6285
6306
|
if (t && n) {
|
|
6286
|
-
let e =
|
|
6287
|
-
w =
|
|
6307
|
+
let e = Zu(n.getBoundingClientRect(), c);
|
|
6308
|
+
w = Zu(t.getBoundingClientRect(), c), oe = u.left + (ce === "rtl" ? e.right - w.right : e.left - w.left);
|
|
6288
6309
|
let r = e.top - l.top + e.height / 2;
|
|
6289
6310
|
se = w.top - u.top + w.height / 2 - r;
|
|
6290
6311
|
}
|
|
6291
6312
|
let T = ae + se + _ + ne, E = Math.min(x, T), le = x - g - _, D = T - E, O = S - 5;
|
|
6292
|
-
|
|
6293
|
-
let
|
|
6294
|
-
|
|
6295
|
-
let
|
|
6296
|
-
if (
|
|
6297
|
-
|
|
6313
|
+
A.style.left = `${yu(oe, 5, O - u.width)}px`, A.style.height = `${E}px`, A.style.maxHeight = "auto", A.style.marginTop = `${g}px`, A.style.marginBottom = `${_}px`, e.style.height = "100%";
|
|
6314
|
+
let ue = Ju(f), k = D >= ue - 1;
|
|
6315
|
+
k && (E = Math.min(x, u.height) - (D - ue));
|
|
6316
|
+
let de = l.top < 20 || l.bottom > x - 20 || Math.ceil(E) + 1 < Math.min(m, ie), fe = (o.visualViewport?.scale ?? 1) !== 1 && p;
|
|
6317
|
+
if (de || fe) {
|
|
6318
|
+
j.current = !0, Iu(A, M.current), C(!1);
|
|
6298
6319
|
return;
|
|
6299
6320
|
}
|
|
6300
|
-
let
|
|
6301
|
-
if (
|
|
6321
|
+
let pe = Math.max(ie, E);
|
|
6322
|
+
if (k) {
|
|
6302
6323
|
let e = Math.max(0, x - T);
|
|
6303
|
-
|
|
6304
|
-
} else
|
|
6324
|
+
A.style.top = u.height >= le ? "0" : `${e}px`, A.style.height = `${E}px`, f.scrollTop = Ju(f);
|
|
6325
|
+
} else A.style.bottom = "0", f.scrollTop = D;
|
|
6305
6326
|
if (w) {
|
|
6306
|
-
let t = u.top, n = u.height, r = w.top + w.height / 2, i =
|
|
6327
|
+
let t = u.top, n = u.height, r = w.top + w.height / 2, i = yu(n > 0 ? (r - t) / n * 100 : 50, 0, 100);
|
|
6307
6328
|
e.style.setProperty("--transform-origin", `50% ${i}%`);
|
|
6308
6329
|
}
|
|
6309
|
-
(
|
|
6330
|
+
(pe === x || E >= b) && (ye.current = !0), re(), y && s.state.selectedIndex === null && s.state.activeIndex === null && v.current[0] != null && s.set("activeIndex", 0), j.current = !0;
|
|
6310
6331
|
} finally {
|
|
6311
6332
|
t();
|
|
6312
6333
|
}
|
|
6313
6334
|
}, [
|
|
6314
6335
|
s,
|
|
6336
|
+
k,
|
|
6315
6337
|
A,
|
|
6316
|
-
|
|
6317
|
-
pe,
|
|
6338
|
+
me,
|
|
6318
6339
|
h,
|
|
6319
6340
|
te,
|
|
6320
6341
|
c,
|
|
@@ -6324,14 +6345,14 @@ var Ru = {
|
|
|
6324
6345
|
xe,
|
|
6325
6346
|
w,
|
|
6326
6347
|
oe,
|
|
6327
|
-
|
|
6348
|
+
ve,
|
|
6328
6349
|
v,
|
|
6329
6350
|
y,
|
|
6330
6351
|
ce,
|
|
6331
6352
|
ae
|
|
6332
6353
|
]), P.useEffect(() => {
|
|
6333
|
-
if (!S || !
|
|
6334
|
-
let e =
|
|
6354
|
+
if (!S || !A || !k) return;
|
|
6355
|
+
let e = _e(A);
|
|
6335
6356
|
function t(e) {
|
|
6336
6357
|
d(!1, m(we, e));
|
|
6337
6358
|
}
|
|
@@ -6339,17 +6360,17 @@ var Ru = {
|
|
|
6339
6360
|
}, [
|
|
6340
6361
|
d,
|
|
6341
6362
|
S,
|
|
6342
|
-
|
|
6343
|
-
|
|
6363
|
+
A,
|
|
6364
|
+
k
|
|
6344
6365
|
]);
|
|
6345
6366
|
let Te = {
|
|
6346
|
-
...
|
|
6367
|
+
...ve ? {
|
|
6347
6368
|
role: "presentation",
|
|
6348
6369
|
"aria-orientation": void 0
|
|
6349
6370
|
} : {
|
|
6350
6371
|
role: "listbox",
|
|
6351
6372
|
"aria-multiselectable": g || void 0,
|
|
6352
|
-
id: `${
|
|
6373
|
+
id: `${ue}-list`
|
|
6353
6374
|
},
|
|
6354
6375
|
onKeyDown(e) {
|
|
6355
6376
|
ne.current = !0, se && Le.has(e.key) && e.stopPropagation();
|
|
@@ -6358,62 +6379,62 @@ var Ru = {
|
|
|
6358
6379
|
ne.current = !1;
|
|
6359
6380
|
},
|
|
6360
6381
|
onScroll(e) {
|
|
6361
|
-
|
|
6382
|
+
ve || Se(e.currentTarget);
|
|
6362
6383
|
},
|
|
6363
|
-
...S && { style:
|
|
6384
|
+
...S && { style: ve ? { height: "100%" } : Lu }
|
|
6364
6385
|
}, Ee = f("div", e, {
|
|
6365
6386
|
ref: [t, c],
|
|
6366
6387
|
state: Ce,
|
|
6367
|
-
stateAttributesMapping:
|
|
6388
|
+
stateAttributesMapping: Gu,
|
|
6368
6389
|
props: [
|
|
6369
|
-
|
|
6390
|
+
fe,
|
|
6370
6391
|
Te,
|
|
6371
|
-
D(
|
|
6372
|
-
{ className: !
|
|
6392
|
+
D(pe),
|
|
6393
|
+
{ className: !ve && S ? Vu.className : void 0 },
|
|
6373
6394
|
o
|
|
6374
6395
|
]
|
|
6375
6396
|
});
|
|
6376
|
-
return /*#__PURE__*/ L(P.Fragment, { children: [!O &&
|
|
6397
|
+
return /*#__PURE__*/ L(P.Fragment, { children: [!O && Vu.getElement(le), /*#__PURE__*/ I(he, {
|
|
6377
6398
|
context: E,
|
|
6378
6399
|
modal: !1,
|
|
6379
|
-
disabled: !
|
|
6400
|
+
disabled: !de,
|
|
6380
6401
|
returnFocus: a,
|
|
6381
6402
|
restoreFocus: !0,
|
|
6382
6403
|
children: Ee
|
|
6383
6404
|
})] });
|
|
6384
6405
|
});
|
|
6385
|
-
process.env.NODE_ENV !== "production" && (
|
|
6386
|
-
function
|
|
6406
|
+
process.env.NODE_ENV !== "production" && (Ku.displayName = "SelectPopup");
|
|
6407
|
+
function qu(e) {
|
|
6387
6408
|
let t = e.maxHeight || "";
|
|
6388
6409
|
return t.endsWith("px") && parseFloat(t) || Infinity;
|
|
6389
6410
|
}
|
|
6390
|
-
function
|
|
6391
|
-
return
|
|
6411
|
+
function Ju(e) {
|
|
6412
|
+
return bu(e.scrollHeight, e.clientHeight);
|
|
6392
6413
|
}
|
|
6393
|
-
function
|
|
6414
|
+
function Yu(e) {
|
|
6394
6415
|
return Ne.getScale(e);
|
|
6395
6416
|
}
|
|
6396
|
-
function
|
|
6417
|
+
function Xu(e, t, n) {
|
|
6397
6418
|
return e / n[t];
|
|
6398
6419
|
}
|
|
6399
|
-
function
|
|
6420
|
+
function Zu(e, t) {
|
|
6400
6421
|
return Fe({
|
|
6401
|
-
x:
|
|
6402
|
-
y:
|
|
6403
|
-
width:
|
|
6404
|
-
height:
|
|
6422
|
+
x: Xu(e.x, "x", t),
|
|
6423
|
+
y: Xu(e.y, "y", t),
|
|
6424
|
+
width: Xu(e.width, "x", t),
|
|
6425
|
+
height: Xu(e.height, "y", t)
|
|
6405
6426
|
});
|
|
6406
6427
|
}
|
|
6407
|
-
var
|
|
6428
|
+
var Qu = [
|
|
6408
6429
|
["transform", "none"],
|
|
6409
6430
|
["scale", "1"],
|
|
6410
6431
|
["translate", "0 0"]
|
|
6411
6432
|
];
|
|
6412
|
-
function
|
|
6433
|
+
function $u(e) {
|
|
6413
6434
|
let { style: t } = e, n = {};
|
|
6414
|
-
for (let [e, r] of
|
|
6435
|
+
for (let [e, r] of Qu) n[e] = t.getPropertyValue(e), t.setProperty(e, r, "important");
|
|
6415
6436
|
return () => {
|
|
6416
|
-
for (let [e] of
|
|
6437
|
+
for (let [e] of Qu) {
|
|
6417
6438
|
let r = n[e];
|
|
6418
6439
|
r ? t.setProperty(e, r) : t.removeProperty(e);
|
|
6419
6440
|
}
|
|
@@ -6421,16 +6442,16 @@ function Ku(e) {
|
|
|
6421
6442
|
}
|
|
6422
6443
|
//#endregion
|
|
6423
6444
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/list/SelectList.js
|
|
6424
|
-
var
|
|
6425
|
-
let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } =
|
|
6445
|
+
var ed = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6446
|
+
let { className: n, render: r, style: i, ...a } = e, { store: o, scrollHandlerRef: s } = au(), { alignItemWithTriggerActive: c } = Fu(), u = l(o, $.hasScrollArrows), d = l(o, $.openMethod), p = l(o, $.multiple), m = {
|
|
6426
6447
|
id: `${l(o, $.id)}-list`,
|
|
6427
6448
|
role: "listbox",
|
|
6428
6449
|
"aria-multiselectable": p || void 0,
|
|
6429
6450
|
onScroll(e) {
|
|
6430
6451
|
s.current?.(e.currentTarget);
|
|
6431
6452
|
},
|
|
6432
|
-
...c && { style:
|
|
6433
|
-
className: u && d !== "touch" ?
|
|
6453
|
+
...c && { style: Lu },
|
|
6454
|
+
className: u && d !== "touch" ? Vu.className : void 0
|
|
6434
6455
|
}, h = be((e) => {
|
|
6435
6456
|
o.set("listElement", e);
|
|
6436
6457
|
});
|
|
@@ -6439,24 +6460,24 @@ var qu = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6439
6460
|
props: [m, a]
|
|
6440
6461
|
});
|
|
6441
6462
|
});
|
|
6442
|
-
process.env.NODE_ENV !== "production" && (
|
|
6463
|
+
process.env.NODE_ENV !== "production" && (ed.displayName = "SelectList");
|
|
6443
6464
|
//#endregion
|
|
6444
6465
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item/SelectItemContext.js
|
|
6445
|
-
var
|
|
6446
|
-
process.env.NODE_ENV !== "production" && (
|
|
6447
|
-
function
|
|
6448
|
-
let e = P.useContext(
|
|
6466
|
+
var td = /*#__PURE__*/ P.createContext(void 0);
|
|
6467
|
+
process.env.NODE_ENV !== "production" && (td.displayName = "SelectItemContext");
|
|
6468
|
+
function nd() {
|
|
6469
|
+
let e = P.useContext(td);
|
|
6449
6470
|
if (!e) throw Error(process.env.NODE_ENV === "production" ? N(57) : "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>.");
|
|
6450
6471
|
return e;
|
|
6451
6472
|
}
|
|
6452
6473
|
//#endregion
|
|
6453
6474
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item/SelectItem.js
|
|
6454
|
-
var
|
|
6475
|
+
var rd = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6455
6476
|
let { render: n, className: r, value: i = null, label: a, disabled: o = !1, nativeButton: s = !1, style: c, ...u } = e, d = P.useRef(null), p = O({
|
|
6456
6477
|
label: a,
|
|
6457
6478
|
textRef: d,
|
|
6458
6479
|
indexGuessBehavior: Pe.GuessFromOrder
|
|
6459
|
-
}), { store: h, getItemProps: ee, setOpen: te, setValue: ne, selectionRef: g, typingRef: re, valuesRef: v, multiple: y, selectedItemTextRef: ie } =
|
|
6480
|
+
}), { store: h, getItemProps: ee, setOpen: te, setValue: ne, selectionRef: g, typingRef: re, valuesRef: v, multiple: y, selectedItemTextRef: ie } = au(), b = l(h, $.isActive, p.index), x = l(h, $.isSelected, p.index, i), S = l(h, $.isSelectedByFocus, p.index), ae = l(h, $.isItemEqualToValue), C = p.index, w = C !== -1, oe = P.useRef(null), se = le(C);
|
|
6460
6481
|
De(() => {
|
|
6461
6482
|
if (!w) return;
|
|
6462
6483
|
let e = v.current;
|
|
@@ -6471,7 +6492,7 @@ var Xu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6471
6492
|
]), De(() => {
|
|
6472
6493
|
if (!w) return;
|
|
6473
6494
|
let e = h.state.value, t = e;
|
|
6474
|
-
y && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 &&
|
|
6495
|
+
y && Array.isArray(e) && e.length > 0 && (t = e[e.length - 1]), t !== void 0 && cu(i, t, ae) && (h.set("selectedIndex", C), d.current && (ie.current = d.current));
|
|
6475
6496
|
}, [
|
|
6476
6497
|
w,
|
|
6477
6498
|
C,
|
|
@@ -6490,20 +6511,20 @@ var Xu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6490
6511
|
selected: x
|
|
6491
6512
|
});
|
|
6492
6513
|
E.id = void 0;
|
|
6493
|
-
let ce = P.useRef(null), D = P.useRef("mouse"),
|
|
6514
|
+
let ce = P.useRef(null), D = P.useRef("mouse"), ue = P.useRef(!1), { getButtonProps: k, buttonRef: de } = _({
|
|
6494
6515
|
disabled: o,
|
|
6495
6516
|
focusableWhenDisabled: !0,
|
|
6496
6517
|
native: s,
|
|
6497
6518
|
composite: !0
|
|
6498
6519
|
});
|
|
6499
|
-
function
|
|
6520
|
+
function fe(e) {
|
|
6500
6521
|
let t = h.state.value;
|
|
6501
6522
|
if (y) {
|
|
6502
|
-
let n = Array.isArray(t) ? t : [], r = x ?
|
|
6523
|
+
let n = Array.isArray(t) ? t : [], r = x ? du(n, i, ae) : [...n, i];
|
|
6503
6524
|
ne(r, m(Be, e));
|
|
6504
6525
|
} else ne(i, m(Be, e)), te(!1, m(Be, e));
|
|
6505
6526
|
}
|
|
6506
|
-
let
|
|
6527
|
+
let pe = {
|
|
6507
6528
|
role: "option",
|
|
6508
6529
|
"aria-selected": x,
|
|
6509
6530
|
tabIndex: b ? 0 : -1,
|
|
@@ -6517,26 +6538,26 @@ var Xu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6517
6538
|
ce.current = e.key, h.set("activeIndex", C), e.key === " " && re.current && e.preventDefault();
|
|
6518
6539
|
},
|
|
6519
6540
|
onClick(e) {
|
|
6520
|
-
|
|
6541
|
+
ue.current = !1, (e.type !== "keydown" || ce.current !== null) && (o || e.type === "keydown" && ce.current === " " && re.current || D.current !== "touch" && !b || (ce.current = null, fe(e.nativeEvent)));
|
|
6521
6542
|
},
|
|
6522
6543
|
onPointerEnter(e) {
|
|
6523
6544
|
D.current = e.pointerType;
|
|
6524
6545
|
},
|
|
6525
6546
|
onPointerDown(e) {
|
|
6526
|
-
D.current = e.pointerType,
|
|
6547
|
+
D.current = e.pointerType, ue.current = !0;
|
|
6527
6548
|
},
|
|
6528
6549
|
onMouseUp() {
|
|
6529
6550
|
if (o) return;
|
|
6530
|
-
if (
|
|
6531
|
-
|
|
6551
|
+
if (ue.current) {
|
|
6552
|
+
ue.current = !1;
|
|
6532
6553
|
return;
|
|
6533
6554
|
}
|
|
6534
6555
|
let e = !g.current.allowSelectedMouseUp && x, t = !g.current.allowUnselectedMouseUp && !x;
|
|
6535
6556
|
e || t || D.current !== "touch" && !b || oe.current?.click();
|
|
6536
6557
|
}
|
|
6537
|
-
},
|
|
6558
|
+
}, me = f("div", e, {
|
|
6538
6559
|
ref: [
|
|
6539
|
-
|
|
6560
|
+
de,
|
|
6540
6561
|
t,
|
|
6541
6562
|
p.ref,
|
|
6542
6563
|
oe
|
|
@@ -6544,11 +6565,11 @@ var Xu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6544
6565
|
state: T,
|
|
6545
6566
|
props: [
|
|
6546
6567
|
E,
|
|
6547
|
-
|
|
6568
|
+
pe,
|
|
6548
6569
|
u,
|
|
6549
|
-
|
|
6570
|
+
k
|
|
6550
6571
|
]
|
|
6551
|
-
}),
|
|
6572
|
+
}), he = P.useMemo(() => ({
|
|
6552
6573
|
selected: x,
|
|
6553
6574
|
indexRef: se,
|
|
6554
6575
|
textRef: d,
|
|
@@ -6561,24 +6582,24 @@ var Xu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6561
6582
|
S,
|
|
6562
6583
|
w
|
|
6563
6584
|
]);
|
|
6564
|
-
return /*#__PURE__*/ I(
|
|
6565
|
-
value:
|
|
6566
|
-
children:
|
|
6585
|
+
return /*#__PURE__*/ I(td.Provider, {
|
|
6586
|
+
value: he,
|
|
6587
|
+
children: me
|
|
6567
6588
|
});
|
|
6568
6589
|
}));
|
|
6569
|
-
process.env.NODE_ENV !== "production" && (
|
|
6590
|
+
process.env.NODE_ENV !== "production" && (rd.displayName = "SelectItem");
|
|
6570
6591
|
//#endregion
|
|
6571
6592
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item-indicator/SelectItemIndicator.js
|
|
6572
|
-
var
|
|
6573
|
-
let n = e.keepMounted ?? !1, { selected: r } =
|
|
6574
|
-
return n || r ? /*#__PURE__*/ I(
|
|
6593
|
+
var id = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6594
|
+
let n = e.keepMounted ?? !1, { selected: r } = nd();
|
|
6595
|
+
return n || r ? /*#__PURE__*/ I(ad, {
|
|
6575
6596
|
...e,
|
|
6576
6597
|
ref: t
|
|
6577
6598
|
}) : null;
|
|
6578
6599
|
});
|
|
6579
|
-
process.env.NODE_ENV !== "production" && (
|
|
6580
|
-
var
|
|
6581
|
-
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } =
|
|
6600
|
+
process.env.NODE_ENV !== "production" && (id.displayName = "SelectItemIndicator");
|
|
6601
|
+
var ad = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef((e, t) => {
|
|
6602
|
+
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } = nd(), c = P.useRef(null), { transitionStatus: l, setMounted: u } = w(s), d = f("span", e, {
|
|
6582
6603
|
ref: [t, c],
|
|
6583
6604
|
state: {
|
|
6584
6605
|
selected: s,
|
|
@@ -6588,7 +6609,7 @@ var Qu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef((e, t) => {
|
|
|
6588
6609
|
"aria-hidden": !0,
|
|
6589
6610
|
children: "✔️"
|
|
6590
6611
|
}, o],
|
|
6591
|
-
stateAttributesMapping:
|
|
6612
|
+
stateAttributesMapping: k
|
|
6592
6613
|
});
|
|
6593
6614
|
return T({
|
|
6594
6615
|
open: s,
|
|
@@ -6598,11 +6619,11 @@ var Qu = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef((e, t) => {
|
|
|
6598
6619
|
}
|
|
6599
6620
|
}), d;
|
|
6600
6621
|
}));
|
|
6601
|
-
process.env.NODE_ENV !== "production" && (
|
|
6622
|
+
process.env.NODE_ENV !== "production" && (ad.displayName = "Inner");
|
|
6602
6623
|
//#endregion
|
|
6603
6624
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/item-text/SelectItemText.js
|
|
6604
|
-
var
|
|
6605
|
-
let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } =
|
|
6625
|
+
var od = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6626
|
+
let { indexRef: n, textRef: r, selectedByFocus: i, hasRegistered: a } = nd(), { selectedItemTextRef: o } = au(), { className: s, render: c, style: l, ...u } = e, d = P.useCallback((e) => {
|
|
6606
6627
|
if (!e || !a) return;
|
|
6607
6628
|
let t = o.current === null || !o.current.isConnected;
|
|
6608
6629
|
(i || t && n.current === 0) && (o.current = e);
|
|
@@ -6621,11 +6642,11 @@ var $u = /*#__PURE__*/ P.memo(/*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6621
6642
|
props: u
|
|
6622
6643
|
});
|
|
6623
6644
|
}));
|
|
6624
|
-
process.env.NODE_ENV !== "production" && (
|
|
6645
|
+
process.env.NODE_ENV !== "production" && (od.displayName = "SelectItemText");
|
|
6625
6646
|
//#endregion
|
|
6626
6647
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/scroll-arrow/SelectScrollArrow.js
|
|
6627
|
-
var
|
|
6628
|
-
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: u, popupRef: d, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } =
|
|
6648
|
+
var sd = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6649
|
+
let { render: n, className: r, style: i, direction: a, keepMounted: o = !1, ...s } = e, c = a === "up", { store: u, popupRef: d, listRef: p, handleScrollArrowVisibility: m, scrollArrowsMountedCountRef: h } = au(), { side: ee, scrollDownArrowRef: te, scrollUpArrowRef: ne } = Fu(), g = c ? $.scrollUpArrowVisible : $.scrollDownArrowVisible, re = l(u, g), _ = l(u, $.openMethod), v = re && _ !== "touch", y = Ee(), ie = c ? ne : te, { transitionStatus: b, setMounted: x } = w(v);
|
|
6629
6650
|
De(() => (h.current += 1, u.state.hasScrollArrows || u.set("hasScrollArrows", !0), () => {
|
|
6630
6651
|
h.current = Math.max(0, h.current - 1), h.current === 0 && u.state.hasScrollArrows && u.set("hasScrollArrows", !1);
|
|
6631
6652
|
}), [u, h]), T({
|
|
@@ -6654,14 +6675,14 @@ var ed = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6654
6675
|
let e = u.state.listElement ?? d.current;
|
|
6655
6676
|
if (!e) return;
|
|
6656
6677
|
u.set("activeIndex", null), m();
|
|
6657
|
-
let n =
|
|
6678
|
+
let n = bu(e.scrollHeight, e.clientHeight), r = xu(e.scrollTop, n), i = r === (c ? 0 : n), a = p.current;
|
|
6658
6679
|
if (r !== e.scrollTop && (e.scrollTop = r), a.length === 0 && u.set(c ? "scrollUpArrowVisible" : "scrollDownArrowVisible", !i), i) {
|
|
6659
6680
|
y.clear();
|
|
6660
6681
|
return;
|
|
6661
6682
|
}
|
|
6662
6683
|
if (a.length > 0) {
|
|
6663
6684
|
let t = ie.current?.offsetHeight || 0;
|
|
6664
|
-
e.scrollTop =
|
|
6685
|
+
e.scrollTop = cd(a, c, r, e.clientHeight, t, n);
|
|
6665
6686
|
}
|
|
6666
6687
|
y.start(40, t);
|
|
6667
6688
|
}
|
|
@@ -6674,8 +6695,8 @@ var ed = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6674
6695
|
});
|
|
6675
6696
|
return v || o ? S : null;
|
|
6676
6697
|
});
|
|
6677
|
-
process.env.NODE_ENV !== "production" && (
|
|
6678
|
-
function
|
|
6698
|
+
process.env.NODE_ENV !== "production" && (sd.displayName = "SelectScrollArrow");
|
|
6699
|
+
function cd(e, t, n, r, i, a) {
|
|
6679
6700
|
if (t) {
|
|
6680
6701
|
let t = 0, r = n + i - 1;
|
|
6681
6702
|
for (let n = 0; n < e.length; n += 1) {
|
|
@@ -6686,7 +6707,7 @@ function td(e, t, n, r, i, a) {
|
|
|
6686
6707
|
}
|
|
6687
6708
|
}
|
|
6688
6709
|
let o = Math.max(0, t - 1), s = e[o];
|
|
6689
|
-
return o < t && s ?
|
|
6710
|
+
return o < t && s ? xu(s.offsetTop - i, a) : 0;
|
|
6690
6711
|
}
|
|
6691
6712
|
let o = e.length - 1, s = n + r - i + 1;
|
|
6692
6713
|
for (let t = 0; t < e.length; t += 1) {
|
|
@@ -6697,40 +6718,40 @@ function td(e, t, n, r, i, a) {
|
|
|
6697
6718
|
}
|
|
6698
6719
|
}
|
|
6699
6720
|
let c = Math.min(e.length - 1, o + 1), l = e[c];
|
|
6700
|
-
return c > o && l ?
|
|
6721
|
+
return c > o && l ? xu(l.offsetTop + l.offsetHeight - r + i, a) : a;
|
|
6701
6722
|
}
|
|
6702
6723
|
//#endregion
|
|
6703
6724
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/scroll-down-arrow/SelectScrollDownArrow.js
|
|
6704
|
-
var
|
|
6705
|
-
return /*#__PURE__*/ I(
|
|
6725
|
+
var ld = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6726
|
+
return /*#__PURE__*/ I(sd, {
|
|
6706
6727
|
...e,
|
|
6707
6728
|
ref: t,
|
|
6708
6729
|
direction: "down"
|
|
6709
6730
|
});
|
|
6710
6731
|
});
|
|
6711
|
-
process.env.NODE_ENV !== "production" && (
|
|
6732
|
+
process.env.NODE_ENV !== "production" && (ld.displayName = "SelectScrollDownArrow");
|
|
6712
6733
|
//#endregion
|
|
6713
6734
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/scroll-up-arrow/SelectScrollUpArrow.js
|
|
6714
|
-
var
|
|
6715
|
-
return /*#__PURE__*/ I(
|
|
6735
|
+
var ud = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6736
|
+
return /*#__PURE__*/ I(sd, {
|
|
6716
6737
|
...e,
|
|
6717
6738
|
ref: t,
|
|
6718
6739
|
direction: "up"
|
|
6719
6740
|
});
|
|
6720
6741
|
});
|
|
6721
|
-
process.env.NODE_ENV !== "production" && (
|
|
6742
|
+
process.env.NODE_ENV !== "production" && (ud.displayName = "SelectScrollUpArrow");
|
|
6722
6743
|
//#endregion
|
|
6723
6744
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/group/SelectGroupContext.js
|
|
6724
|
-
var
|
|
6725
|
-
process.env.NODE_ENV !== "production" && (
|
|
6726
|
-
function
|
|
6727
|
-
let e = P.useContext(
|
|
6745
|
+
var dd = /*#__PURE__*/ P.createContext(void 0);
|
|
6746
|
+
process.env.NODE_ENV !== "production" && (dd.displayName = "SelectGroupContext");
|
|
6747
|
+
function fd() {
|
|
6748
|
+
let e = P.useContext(dd);
|
|
6728
6749
|
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? N(56) : "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>.");
|
|
6729
6750
|
return e;
|
|
6730
6751
|
}
|
|
6731
6752
|
//#endregion
|
|
6732
6753
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/group/SelectGroup.js
|
|
6733
|
-
var
|
|
6754
|
+
var pd = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6734
6755
|
let { className: n, render: r, style: i, ...a } = e, [o, s] = P.useState(), c = P.useMemo(() => ({
|
|
6735
6756
|
labelId: o,
|
|
6736
6757
|
setLabelId: s
|
|
@@ -6741,16 +6762,16 @@ var od = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6741
6762
|
"aria-labelledby": o
|
|
6742
6763
|
}, a]
|
|
6743
6764
|
});
|
|
6744
|
-
return /*#__PURE__*/ I(
|
|
6765
|
+
return /*#__PURE__*/ I(dd.Provider, {
|
|
6745
6766
|
value: c,
|
|
6746
6767
|
children: l
|
|
6747
6768
|
});
|
|
6748
6769
|
});
|
|
6749
|
-
process.env.NODE_ENV !== "production" && (
|
|
6770
|
+
process.env.NODE_ENV !== "production" && (pd.displayName = "SelectGroup");
|
|
6750
6771
|
//#endregion
|
|
6751
6772
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/select/group-label/SelectGroupLabel.js
|
|
6752
|
-
var
|
|
6753
|
-
let { className: n, render: r, id: i, style: a, ...o } = e, { setLabelId: s } =
|
|
6773
|
+
var md = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
6774
|
+
let { className: n, render: r, id: i, style: a, ...o } = e, { setLabelId: s } = fd(), l = c(i);
|
|
6754
6775
|
return De(() => {
|
|
6755
6776
|
s(l);
|
|
6756
6777
|
}, [l, s]), f("div", e, {
|
|
@@ -6758,89 +6779,89 @@ var sd = /*#__PURE__*/ P.forwardRef(function(e, t) {
|
|
|
6758
6779
|
props: [{ id: l }, o]
|
|
6759
6780
|
});
|
|
6760
6781
|
});
|
|
6761
|
-
process.env.NODE_ENV !== "production" && (
|
|
6782
|
+
process.env.NODE_ENV !== "production" && (md.displayName = "SelectGroupLabel");
|
|
6762
6783
|
//#endregion
|
|
6763
6784
|
//#region src/ui/browser/select.tsx
|
|
6764
|
-
var
|
|
6765
|
-
function
|
|
6766
|
-
return /* @__PURE__ */ I(
|
|
6785
|
+
var hd = Su;
|
|
6786
|
+
function gd({ className: e, ...t }) {
|
|
6787
|
+
return /* @__PURE__ */ I(pd, {
|
|
6767
6788
|
"data-slot": "select-group",
|
|
6768
6789
|
className: S("scroll-my-1 p-1", e),
|
|
6769
6790
|
...t
|
|
6770
6791
|
});
|
|
6771
6792
|
}
|
|
6772
|
-
function
|
|
6773
|
-
return /* @__PURE__ */ I(
|
|
6793
|
+
function _d({ className: e, ...t }) {
|
|
6794
|
+
return /* @__PURE__ */ I(Au, {
|
|
6774
6795
|
"data-slot": "select-value",
|
|
6775
6796
|
className: S("flex flex-1 text-left", e),
|
|
6776
6797
|
...t
|
|
6777
6798
|
});
|
|
6778
6799
|
}
|
|
6779
|
-
function
|
|
6780
|
-
return /* @__PURE__ */ L(
|
|
6800
|
+
function vd({ children: e, className: t, size: n = "default", variant: r = "default", ...i }) {
|
|
6801
|
+
return /* @__PURE__ */ L(Ou, {
|
|
6781
6802
|
"data-slot": "select-trigger",
|
|
6782
6803
|
"data-size": n,
|
|
6783
6804
|
"data-variant": r,
|
|
6784
6805
|
className: S("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", r == "subtle" && "rounded-sm border-transparent bg-muted px-2 py-0.5 text-xs data-[size=sm]:h-6 data-[size=sm]:rounded-sm dark:bg-muted", t),
|
|
6785
6806
|
...i,
|
|
6786
|
-
children: [e, /* @__PURE__ */ I(
|
|
6807
|
+
children: [e, /* @__PURE__ */ I(ju, { render: /* @__PURE__ */ I(Ye, { className: "text-muted-foreground" }) })]
|
|
6787
6808
|
});
|
|
6788
6809
|
}
|
|
6789
|
-
function
|
|
6790
|
-
return /* @__PURE__ */ I(
|
|
6810
|
+
function yd({ align: e = "center", alignItemWithTrigger: t = !0, alignOffset: n = 0, children: r, className: i, container: a, side: o = "bottom", sideOffset: s = 4, ...c }) {
|
|
6811
|
+
return /* @__PURE__ */ I(Nu, {
|
|
6791
6812
|
container: a,
|
|
6792
|
-
children: /* @__PURE__ */ I(
|
|
6813
|
+
children: /* @__PURE__ */ I(zu, {
|
|
6793
6814
|
align: e,
|
|
6794
6815
|
alignItemWithTrigger: t,
|
|
6795
6816
|
alignOffset: n,
|
|
6796
6817
|
className: "isolate z-50",
|
|
6797
6818
|
side: o,
|
|
6798
6819
|
sideOffset: s,
|
|
6799
|
-
children: /* @__PURE__ */ L(
|
|
6820
|
+
children: /* @__PURE__ */ L(Ku, {
|
|
6800
6821
|
"data-slot": "select-content",
|
|
6801
6822
|
"data-align-trigger": t,
|
|
6802
6823
|
className: S("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),
|
|
6803
6824
|
...c,
|
|
6804
6825
|
children: [
|
|
6805
|
-
/* @__PURE__ */ I(
|
|
6806
|
-
/* @__PURE__ */ I(
|
|
6807
|
-
/* @__PURE__ */ I(
|
|
6826
|
+
/* @__PURE__ */ I(Sd, {}),
|
|
6827
|
+
/* @__PURE__ */ I(ed, { children: r }),
|
|
6828
|
+
/* @__PURE__ */ I(Cd, {})
|
|
6808
6829
|
]
|
|
6809
6830
|
})
|
|
6810
6831
|
})
|
|
6811
6832
|
});
|
|
6812
6833
|
}
|
|
6813
|
-
function
|
|
6814
|
-
return /* @__PURE__ */ I(
|
|
6834
|
+
function bd({ className: e, ...t }) {
|
|
6835
|
+
return /* @__PURE__ */ I(md, {
|
|
6815
6836
|
"data-slot": "select-label",
|
|
6816
6837
|
className: S("px-1.5 py-1 text-xs text-muted-foreground", e),
|
|
6817
6838
|
...t
|
|
6818
6839
|
});
|
|
6819
6840
|
}
|
|
6820
|
-
function
|
|
6821
|
-
return /* @__PURE__ */ L(
|
|
6841
|
+
function xd({ className: e, children: t, ...n }) {
|
|
6842
|
+
return /* @__PURE__ */ L(rd, {
|
|
6822
6843
|
"data-slot": "select-item",
|
|
6823
6844
|
className: S("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),
|
|
6824
6845
|
...n,
|
|
6825
|
-
children: [/* @__PURE__ */ I(
|
|
6846
|
+
children: [/* @__PURE__ */ I(od, {
|
|
6826
6847
|
className: "flex flex-1 shrink-0 gap-2 whitespace-nowrap",
|
|
6827
6848
|
children: t
|
|
6828
|
-
}), /* @__PURE__ */ I(
|
|
6849
|
+
}), /* @__PURE__ */ I(id, {
|
|
6829
6850
|
render: /* @__PURE__ */ I("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center" }),
|
|
6830
|
-
children: /* @__PURE__ */ I(
|
|
6851
|
+
children: /* @__PURE__ */ I(A, {})
|
|
6831
6852
|
})]
|
|
6832
6853
|
});
|
|
6833
6854
|
}
|
|
6834
|
-
function
|
|
6835
|
-
return /* @__PURE__ */ I(
|
|
6855
|
+
function Sd({ className: e, ...t }) {
|
|
6856
|
+
return /* @__PURE__ */ I(ud, {
|
|
6836
6857
|
"data-slot": "select-scroll-up-button",
|
|
6837
6858
|
className: S("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
6838
6859
|
...t,
|
|
6839
6860
|
children: /* @__PURE__ */ I(Xe, {})
|
|
6840
6861
|
});
|
|
6841
6862
|
}
|
|
6842
|
-
function
|
|
6843
|
-
return /* @__PURE__ */ I(
|
|
6863
|
+
function Cd({ className: e, ...t }) {
|
|
6864
|
+
return /* @__PURE__ */ I(ld, {
|
|
6844
6865
|
"data-slot": "select-scroll-down-button",
|
|
6845
6866
|
className: S("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
6846
6867
|
...t,
|
|
@@ -6848,4 +6869,4 @@ function gd({ className: e, ...t }) {
|
|
|
6848
6869
|
});
|
|
6849
6870
|
}
|
|
6850
6871
|
//#endregion
|
|
6851
|
-
export {
|
|
6872
|
+
export { Ue as C, Je as S, He as T, $e as _, bd as a, Ge as b, nu as c, ql as d, Jl as f, Vl as g, Ul as h, xd as i, Yl as l, Wl as m, yd as n, vd as o, Kl as p, gd as r, _d as s, hd as t, $l as u, Qe as v, Ke as w, qe as x, Ye as y };
|