@marimo-team/islands 0.25.3-dev209 → 0.25.3-dev210
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/{ConnectedDataExplorerComponent-ApTYh0V3.js → ConnectedDataExplorerComponent-D6RHJV8D.js} +114 -112
- package/dist/{ErrorBoundary-B1QlXN-y.js → ErrorBoundary-VruaQLnK.js} +10 -10
- package/dist/{abnfDiagram-VCTEODGH-uo9xhZY0.js → abnfDiagram-VCTEODGH-0q7Lbmii.js} +2 -2
- package/dist/{any-language-editor-BVFHDDQ3.js → any-language-editor-jGaR0EAo.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-Hz6eyeOD.js → architectureDiagram-5GKGNRK7-1PydKPmE.js} +1 -1
- package/dist/{button-BQRdqQi1.js → button-B6RjDKJx.js} +54 -51
- package/dist/{capabilities-C2QUNRXi.js → capabilities-CkVzWJEX.js} +1 -1
- package/dist/{chat-ui-BTA1I5i1.js → chat-ui-B5pH_aXk.js} +414 -413
- package/dist/{check-C9Mp9eCK.js → check-Z_vtI3OL.js} +1 -1
- package/dist/{chunk-IMKFNOWR-DBM2i23k.js → chunk-IMKFNOWR-DEzZZ1Zc.js} +1 -1
- package/dist/{chunk-SHT3W25Y-L8KQLLBy.js → chunk-SHT3W25Y-CuHj-hnn.js} +1 -1
- package/dist/{chunk-SVP7TREG-BOUJKJEP.js → chunk-SVP7TREG-BPiZK2bA.js} +1 -1
- package/dist/{chunk-TICWLB2K-DY3CzFjX.js → chunk-TICWLB2K-DF6XcIjM.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-s9iwW-q4.js → classDiagram-ZZMXUADV-CMdR-cP4.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-2GI5CjGB.js → classDiagram-v2-VYDZK3BY-DRvc3_7Y.js} +2 -2
- package/dist/{code-visibility-CCGlDSq4.js → code-visibility-BdFhHfIC.js} +28 -28
- package/dist/{common-C1PmVtVW.js → common-Ce1SgsX1.js} +8034 -8027
- package/dist/{toDate-BZZ64K_m.js → config-DbjzjwxX.js} +98 -164
- package/dist/{copy-icon-De584pZ4.js → copy-icon-CG57cxwb.js} +3 -3
- package/dist/createReducer-DePYJ0F3.js +63 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-DOxnhBK2.js → cynefinDiagram-5FMLGOSQ-BkBjEY9l.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-D1AhEfpM.js → dagre-GXQ25YYZ-D-HEaW4I.js} +1 -1
- package/dist/{data-grid-overlay-editor-B3KXkZvo.js → data-grid-overlay-editor-Bps1p6jQ.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-DV_GebF_.js → diagram-S7CK7UJ4-Bn-oF-rB.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-6dNzGFfD.js → diagram-UQ7AKVKN-BpzzXWBj.js} +1 -1
- package/dist/{diagram-VX7I27RA-DUh9jsfi.js → diagram-VX7I27RA-COOtvfBP.js} +1 -1
- package/dist/{diagram-Z3DM3KII-Cug-qcQ8.js → diagram-Z3DM3KII-K5cXvbrl.js} +1 -1
- package/dist/{dialog-DVRfQuhD.js → dialog-DsZ49mmU.js} +26 -26
- package/dist/{dist-BJtmSgcE.js → dist-11T5wq3_.js} +41 -40
- package/dist/{dist-B1M0bGO3.js → dist-17ugwGZc.js} +59 -58
- package/dist/{dist-D7mrh5sO.js → dist-7cRjf--y.js} +135 -134
- package/dist/{dist-Ck_C32ye.js → dist-B8pkfkzc.js} +31 -30
- package/dist/{dist-Ba2VIn1K.js → dist-B9UoM_wq.js} +54 -53
- package/dist/{dist-KN80qWCP.js → dist-BGuMTs1i.js} +118 -117
- package/dist/{dist-T5rh6JvL.js → dist-BHW11fni.js} +18 -17
- package/dist/dist-BLY4m1Wi.js +850 -0
- package/dist/{dist-Bj4bmwUm.js → dist-BNlcVoxs.js} +31 -30
- package/dist/{dist-BA13RJj5.js → dist-BQYe5Bju.js} +47 -46
- package/dist/{dist-OUle2RT7.js → dist-BX1mn8na.js} +297 -297
- package/dist/{dist-CTi5FTiV.js → dist-Bh0PTKUW.js} +108 -107
- package/dist/{dist-D9Q3xjiP.js → dist-CKaXK92p.js} +56 -55
- package/dist/{dist-DYXM73-k.js → dist-CLhwfhpJ.js} +58 -57
- package/dist/{dist-BmS-ZGjl.js → dist-CYeqK4Xw.js} +1854 -2702
- package/dist/{dist-D1fnFp1J.js → dist-Cxlp3WH6.js} +16 -15
- package/dist/{dist-DVVwOfrD.js → dist-DSJPGj42.js} +64 -63
- package/dist/{dist-Bzogh7CW.js → dist-DU9ICsWZ.js} +93 -92
- package/dist/{dist-DjeybPOb.js → dist-DWv0ALBi.js} +47 -46
- package/dist/{dist-D3x9__Fu.js → dist-DiBpWEsB.js} +39 -38
- package/dist/{dist-DtGn9N4h.js → dist-DiLFTlnl.js} +165 -165
- package/dist/{dist-DTv9KkpW.js → dist-cVDV5IuI.js} +26 -25
- package/dist/{dist-DP60Ubh8.js → dist-fRfaOoq8.js} +44 -43
- package/dist/{dist-O0qFpEJh.js → dist-gTTI-9Px.js} +66 -65
- package/dist/{dropdown-menu-dlEm41Bt.js → dropdown-menu-CSNdPSnS.js} +2886 -1529
- package/dist/{ebnfDiagram-PWID7BFC-d5LKx7Vb.js → ebnfDiagram-PWID7BFC-BI1ZmjVm.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-BwvlkcID.js → erDiagram-RLTQ6QDP-BtWjj9xy.js} +1 -1
- package/dist/{error-banner-DxJ3s8YO.js → error-banner-IsonnvA0.js} +47 -46
- package/dist/error-entries-CRPfxMqm.js +2505 -0
- package/dist/{esm-Bbw_Njjx.js → esm-BgKjMvWw.js} +389 -388
- package/dist/{esm-mDQNEFe_.js → esm-CHjVSexr.js} +305 -306
- package/dist/{feedback-button-UsovT9sL.js → feedback-button-2ycmR9GG.js} +112 -112
- package/dist/{flowDiagram-HODETNUW-CJcSoFer.js → flowDiagram-HODETNUW-DQvZh96A.js} +2 -2
- package/dist/{formats-Ry7c-aIV.js → formats-BK4VefeF.js} +6 -6
- package/dist/{glide-data-editor-CRd8kBSp.js → glide-data-editor-Buj2OZjL.js} +99 -99
- package/dist/{glide-utils-D98laidb.js → glide-utils-CQddGpa-.js} +3 -3
- package/dist/{globals-BDWrOstF.js → globals-B-14fUeb.js} +3 -3
- package/dist/{error-entries-CVUHA5r_.js → html-to-image-CgAnxFi8.js} +26314 -25474
- package/dist/{infoDiagram-27XIBGKW-Cezgppw3.js → infoDiagram-27XIBGKW-BdAObnc_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-BahZQwJz.js → ishikawaDiagram-5VMMS53U-DP-jE8dw.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-Cvfn_Obm.js → kanban-definition-UXKFOSKX-BkMgPjfm.js} +1 -1
- package/dist/{loader-DOVB0Syl.js → loader-BisjOLiW.js} +1 -1
- package/dist/main.js +2996 -2992
- package/dist/{mermaid-BrdwbArF.js → mermaid-B-OFqheA.js} +36 -36
- package/dist/{mindmap-definition-YA3MSWOX-uB4B2d-J.js → mindmap-definition-YA3MSWOX-Du7toAZX.js} +1 -1
- package/dist/{number-overlay-editor-Bp9a4z5Q.js → number-overlay-editor-ZVFcJ7_u.js} +1 -1
- package/dist/{dist-CThPVKaP.js → objectWithoutPropertiesLoose-ai5NUqGa.js} +1139 -1120
- package/dist/{pegDiagram-XKGWAZYB-CYaIwAmH.js → pegDiagram-XKGWAZYB-CX_729j0.js} +2 -2
- package/dist/{pieDiagram-E7YTZNPT-BJ1oUxVv.js → pieDiagram-E7YTZNPT-dtTFJcVI.js} +1 -1
- package/dist/{process-output-SjJxB1wh.js → process-output-Bmev5azU.js} +5 -5
- package/dist/{railroadDiagram-O6MQD6OU-BqKSaBux.js → railroadDiagram-O6MQD6OU-Dsc2Cf4c.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DwFhgDhH.js → requirementDiagram-BXWQKSXE-D3g0c60I.js} +1 -1
- package/dist/{reveal-component-ov3pS-oO.js → reveal-component-BWz1KjWe.js} +725 -725
- package/dist/schemas-CdscWNy_.js +4747 -0
- package/dist/select-BSxlITBo.js +1200 -0
- package/dist/{sequenceDiagram-WJ2MYXX4-L7ENjfKF.js → sequenceDiagram-WJ2MYXX4-w1pWbIpk.js} +1 -1
- package/dist/{spec-BcJ9ncAY.js → spec-Dq8RNplp.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-CVf88u-p.js → stateDiagram-D77RDMKH-BCv7kP4H.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DvpkQ1V6.js → stateDiagram-v2-MP3YSRHH-D1cTOt0x.js} +2 -2
- package/dist/static-state-BldGd99T.js +72 -0
- package/dist/strings-BGW-fXVJ.js +507 -0
- package/dist/{swimlanes-42K2YHIH-DIuFHbVE.js → swimlanes-42K2YHIH-DNO6jDnd.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-CAqHAziW.js → swimlanesDiagram-VR7AAH4N-CkSWsxYJ.js} +2 -2
- package/dist/{swiper-component-BVfnhbnt.js → swiper-component-Dir1o8ml.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-xO4EQqBm.js → timeline-definition-24CTP7MA-DQvqGFM9.js} +1 -1
- package/dist/toast-BWIPi3aF.js +491 -0
- package/dist/{tooltip-s4zZxwKe.js → tooltip-C3UnvsRe.js} +58 -58
- package/dist/use-restore-focus-BWO0z1lo.js +1672 -0
- package/dist/{useAsyncData-Dqw22wZQ.js → useAsyncData-DsZMvNXn.js} +1 -1
- package/dist/{useDateFormatter-D3Tkfzej.js → useDateFormatter-ChB4eyim.js} +2 -2
- package/dist/{useDeepCompareMemoize-D3gozcjJ.js → useDeepCompareMemoize-KMBBux8C.js} +1 -1
- package/dist/{useIframeCapabilities-6a_yDNXp.js → useIframeCapabilities-cMNQ80CK.js} +1 -1
- package/dist/useLifecycle-BquH9ET-.js +112 -0
- package/dist/useTheme-B9C1JIy9.js +307 -0
- package/dist/utils-DXkj82sK.js +813 -0
- package/dist/{vega-component-Blvspl7v.js → vega-component-9NOEITbg.js} +55 -54
- package/dist/{vennDiagram-4TSXK5OY-DzCi-lRh.js → vennDiagram-4TSXK5OY-BfzXp4SH.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-CW48xa0n.js → wardleyDiagram-VM6X3IG4-CiqEE8eq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-UPxGGI2B.js → xychartDiagram-S5SC5T6Z-BTIHCVOI.js} +1 -1
- package/package.json +1 -1
- package/src/components/editor/cell/__tests__/StagedAICell.test.tsx +1 -1
- package/src/components/editor/cell/code/cell-editor.tsx +13 -36
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +1 -1
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +11 -5
- package/src/components/editor/notebook-cell.tsx +0 -1
- package/src/components/scratchpad/scratchpad.test.tsx +3 -11
- package/src/components/scratchpad/scratchpad.tsx +24 -22
- package/src/components/scratchpad/state.ts +7 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -8
- package/src/core/ai/staged-cells.ts +4 -2
- package/src/core/cells/__tests__/cells.test.ts +44 -60
- package/src/core/cells/__tests__/document.test.ts +1 -139
- package/src/core/cells/__tests__/notebook-outline.test.ts +8 -6
- package/src/core/cells/actions.ts +39 -0
- package/src/core/cells/cells.ts +15 -35
- package/src/core/cells/document.ts +9 -84
- package/src/core/codemirror/__tests__/format.test.ts +0 -34
- package/src/core/codemirror/cells/extensions.ts +20 -18
- package/src/core/codemirror/cells/state.ts +0 -5
- package/src/core/codemirror/format.ts +1 -19
- package/src/core/codemirror/misc/__tests__/paste.test.ts +3 -1
- package/src/core/codemirror/misc/paste.ts +1 -1
- package/src/core/notebook/document/__tests__/codemirror.test.ts +172 -0
- package/src/stories/layout/vertical/one-column.stories.tsx +26 -18
- package/dist/html-to-image--E3uFbJ9.js +0 -3348
- package/dist/label-Qvw1E97W.js +0 -281
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +0 -23
- package/dist/select-2KOiReNY.js +0 -1423
- package/dist/toast-B5t9o6s_.js +0 -1848
- package/dist/use-restore-focus-BgDTd2tc.js +0 -6418
- package/dist/useLifecycle-CaZi4wTw.js +0 -172
- package/dist/useTheme-TzPgWXwB.js +0 -1114
|
@@ -0,0 +1,1200 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { h as t, m as n, p as r, s as i, u as a } from "./button-B6RjDKJx.js";
|
|
3
|
+
import { t as o } from "./react-sHtZdjeP.js";
|
|
4
|
+
import { t as s } from "./compiler-runtime-CldRdSsv.js";
|
|
5
|
+
import { c, f as l, l as u, m as d, s as f, u as p } from "./tooltip-C3UnvsRe.js";
|
|
6
|
+
import { t as m } from "./check-Z_vtI3OL.js";
|
|
7
|
+
import { a as h, s as g } from "./strings-BGW-fXVJ.js";
|
|
8
|
+
import { t as _ } from "./react-dom-DUmH0GXv.js";
|
|
9
|
+
import { t as v } from "./jsx-runtime-3BD1kT0s.js";
|
|
10
|
+
import { A as y, C as b, D as x, F as S, I as C, M as w, N as T, P as E, S as ee, a as D, c as O, j as k, k as A, o as j, v as te, x as ne, y as re } from "./use-restore-focus-BWO0z1lo.js";
|
|
11
|
+
var M = d("chevron-down", [["path", {
|
|
12
|
+
d: "m6 9 6 6 6-6",
|
|
13
|
+
key: "qrunsl"
|
|
14
|
+
}]]), ie = d("chevron-up", [["path", {
|
|
15
|
+
d: "m18 15-6-6-6 6",
|
|
16
|
+
key: "153udz"
|
|
17
|
+
}]]), N = /* @__PURE__ */ e(_(), 1), P = /* @__PURE__ */ e(o(), 1), F = v(), I = Object.defineProperty, ae = (e, t) => I(e, "name", {
|
|
18
|
+
value: t,
|
|
19
|
+
configurable: !0
|
|
20
|
+
}), L = {
|
|
21
|
+
LTR: "ltr",
|
|
22
|
+
RTL: "rtl"
|
|
23
|
+
}, R = P.createContext(void 0);
|
|
24
|
+
function z(e) {
|
|
25
|
+
let t = P.useContext(R);
|
|
26
|
+
return e || t || L.LTR;
|
|
27
|
+
}
|
|
28
|
+
ae(z, "useDirection");
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-label@2.1.17_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_099847eca268dc359e5086947d5ece66/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
31
|
+
var B = Object.defineProperty, V = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ ((e, t) => B(e, "name", {
|
|
32
|
+
value: t,
|
|
33
|
+
configurable: !0
|
|
34
|
+
}))(function(e, t) {
|
|
35
|
+
return /* @__PURE__ */ (0, F.jsx)(C.label, {
|
|
36
|
+
...e,
|
|
37
|
+
ref: t,
|
|
38
|
+
onMouseDown: (t) => {
|
|
39
|
+
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
}, "Label")), oe = Object.defineProperty, se = (e, t) => oe(e, "name", {
|
|
43
|
+
value: t,
|
|
44
|
+
configurable: !0
|
|
45
|
+
});
|
|
46
|
+
function H(e, [t, n]) {
|
|
47
|
+
return Math.min(n, Math.max(t, e));
|
|
48
|
+
}
|
|
49
|
+
se(H, "clamp");
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region ../node_modules/.pnpm/@radix-ui+react-select@2.4.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react@_41875abfe3e9c9a7ec650dda663f0eb9/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
52
|
+
var ce = Object.defineProperty, U = (e, t) => ce(e, "name", {
|
|
53
|
+
value: t,
|
|
54
|
+
configurable: !0
|
|
55
|
+
}), le = {
|
|
56
|
+
ItemAligned: "item-aligned",
|
|
57
|
+
Popper: "popper"
|
|
58
|
+
}, ue = {
|
|
59
|
+
LTR: "ltr",
|
|
60
|
+
RTL: "rtl"
|
|
61
|
+
}, de = [
|
|
62
|
+
" ",
|
|
63
|
+
"Enter",
|
|
64
|
+
"ArrowUp",
|
|
65
|
+
"ArrowDown"
|
|
66
|
+
], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = S(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
|
|
67
|
+
function be(e) {
|
|
68
|
+
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, dir: l, name: u, autoComplete: d, disabled: p, required: m, form: h, internal_do_not_use_render: g } = e, _ = ge(t), [v, b] = P.useState(null), [x, S] = P.useState(null), [C, T] = P.useState(!1), E = z(l), [ee, D] = w({
|
|
69
|
+
prop: r,
|
|
70
|
+
defaultProp: i ?? !1,
|
|
71
|
+
onChange: a,
|
|
72
|
+
caller: W
|
|
73
|
+
}), [O, k] = w({
|
|
74
|
+
prop: o,
|
|
75
|
+
defaultProp: s,
|
|
76
|
+
onChange: c,
|
|
77
|
+
caller: W
|
|
78
|
+
}), A = P.useRef(null), j = P.useRef(!1), [te, ne] = P.useState(null), re = /* @__PURE__ */ U((e) => {
|
|
79
|
+
ne({
|
|
80
|
+
value: e,
|
|
81
|
+
hasConsumerStoppedPropagation: j.current
|
|
82
|
+
}), k(e);
|
|
83
|
+
}, "handleUserSelect"), M = P.useRef(O);
|
|
84
|
+
P.useEffect(() => {
|
|
85
|
+
let e = h ? v?.ownerDocument.getElementById(h) : v?.form;
|
|
86
|
+
if (e instanceof HTMLFormElement) {
|
|
87
|
+
let t = /* @__PURE__ */ U(() => k(M.current), "reset");
|
|
88
|
+
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
89
|
+
}
|
|
90
|
+
}, [
|
|
91
|
+
h,
|
|
92
|
+
v,
|
|
93
|
+
k
|
|
94
|
+
]);
|
|
95
|
+
let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = y(), L = Array.from(N).map((e) => e.props.value).join(";"), R = P.useCallback((e) => {
|
|
96
|
+
I((t) => new Set(t).add(e));
|
|
97
|
+
}, []), B = P.useCallback((e) => {
|
|
98
|
+
I((t) => {
|
|
99
|
+
let n = new Set(t);
|
|
100
|
+
return n.delete(e), n;
|
|
101
|
+
});
|
|
102
|
+
}, []), V = {
|
|
103
|
+
required: m,
|
|
104
|
+
trigger: v,
|
|
105
|
+
onTriggerChange: b,
|
|
106
|
+
valueNode: x,
|
|
107
|
+
onValueNodeChange: S,
|
|
108
|
+
valueNodeHasChildren: C,
|
|
109
|
+
onValueNodeHasChildrenChange: T,
|
|
110
|
+
contentId: ae,
|
|
111
|
+
value: O,
|
|
112
|
+
onValueChange: k,
|
|
113
|
+
hasConsumerStoppedPropagationRef: j,
|
|
114
|
+
userSelection: te,
|
|
115
|
+
onUserSelect: re,
|
|
116
|
+
open: ee,
|
|
117
|
+
onOpenChange: D,
|
|
118
|
+
dir: E,
|
|
119
|
+
triggerPointerDownPosRef: A,
|
|
120
|
+
disabled: p,
|
|
121
|
+
name: u,
|
|
122
|
+
autoComplete: d,
|
|
123
|
+
form: h,
|
|
124
|
+
nativeOptions: N,
|
|
125
|
+
nativeSelectKey: L,
|
|
126
|
+
isFormControl: ie
|
|
127
|
+
};
|
|
128
|
+
return /* @__PURE__ */ (0, F.jsx)(f, {
|
|
129
|
+
..._,
|
|
130
|
+
children: /* @__PURE__ */ (0, F.jsx)(_e, {
|
|
131
|
+
scope: t,
|
|
132
|
+
...V,
|
|
133
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.Provider, {
|
|
134
|
+
scope: t,
|
|
135
|
+
children: /* @__PURE__ */ (0, F.jsx)(ve, {
|
|
136
|
+
scope: t,
|
|
137
|
+
onNativeOptionAdd: R,
|
|
138
|
+
onNativeOptionRemove: B,
|
|
139
|
+
children: ct(g) ? g(V) : n
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
U(be, "SelectProvider");
|
|
146
|
+
var xe = /* @__PURE__ */ U((e) => {
|
|
147
|
+
let { __scopeSelect: t, children: n, ...r } = e;
|
|
148
|
+
return /* @__PURE__ */ (0, F.jsx)(be, {
|
|
149
|
+
__scopeSelect: t,
|
|
150
|
+
...r,
|
|
151
|
+
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [n, e ? /* @__PURE__ */ (0, F.jsx)(st, { __scopeSelect: t }) : null] })
|
|
152
|
+
});
|
|
153
|
+
}, "Select"), Se = "SelectTrigger", Ce = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
154
|
+
let { __scopeSelect: n, disabled: i = !1, ...a } = e, o = ge(n), s = q(Se, n), l = s.disabled || i, u = r(t, s.onTriggerChange), d = pe(n), f = P.useRef("touch"), [p, m, h] = lt((e) => {
|
|
155
|
+
let t = d().filter((e) => !e.disabled), n = ut(t, e, t.find((e) => e.value === s.value));
|
|
156
|
+
n !== void 0 && s.onUserSelect(n.value);
|
|
157
|
+
}), g = /* @__PURE__ */ U((e) => {
|
|
158
|
+
l || (s.onOpenChange(!0), h()), e && (s.triggerPointerDownPosRef.current = {
|
|
159
|
+
x: Math.round(e.pageX),
|
|
160
|
+
y: Math.round(e.pageY)
|
|
161
|
+
});
|
|
162
|
+
}, "handleOpen");
|
|
163
|
+
return /* @__PURE__ */ (0, F.jsx)(c, {
|
|
164
|
+
asChild: !0,
|
|
165
|
+
...o,
|
|
166
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.button, {
|
|
167
|
+
type: "button",
|
|
168
|
+
role: "combobox",
|
|
169
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
170
|
+
"aria-expanded": s.open,
|
|
171
|
+
"aria-required": s.required,
|
|
172
|
+
"aria-autocomplete": "none",
|
|
173
|
+
dir: s.dir,
|
|
174
|
+
"data-state": s.open ? "open" : "closed",
|
|
175
|
+
disabled: l,
|
|
176
|
+
"data-disabled": l ? "" : void 0,
|
|
177
|
+
"data-placeholder": Z(s.value) ? "" : void 0,
|
|
178
|
+
...a,
|
|
179
|
+
ref: u,
|
|
180
|
+
onClick: T(a.onClick, (e) => {
|
|
181
|
+
e.currentTarget.focus(), f.current !== "mouse" && g(e);
|
|
182
|
+
}),
|
|
183
|
+
onPointerDown: T(a.onPointerDown, (e) => {
|
|
184
|
+
f.current = e.pointerType;
|
|
185
|
+
let t = e.target;
|
|
186
|
+
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
|
|
187
|
+
}),
|
|
188
|
+
onKeyDown: T(a.onKeyDown, (e) => {
|
|
189
|
+
let t = p.current !== "";
|
|
190
|
+
!(e.ctrlKey || e.altKey || e.metaKey) && e.key.length === 1 && (s.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), m(e.key)), !(t && e.key === " ") && de.includes(e.key) && (g(), e.preventDefault());
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
});
|
|
194
|
+
}, "SelectTrigger")), we = "SelectValue", Te = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
195
|
+
let { __scopeSelect: n, className: i, style: a, children: o, placeholder: s = "", ...c } = e, l = q(we, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = r(t, l.onValueNodeChange);
|
|
196
|
+
E(() => {
|
|
197
|
+
u(d);
|
|
198
|
+
}, [u, d]);
|
|
199
|
+
let p = Z(l.value);
|
|
200
|
+
return /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
201
|
+
...c,
|
|
202
|
+
asChild: !p && c.asChild,
|
|
203
|
+
ref: f,
|
|
204
|
+
style: { pointerEvents: "none" },
|
|
205
|
+
children: /* @__PURE__ */ (0, F.jsx)(P.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
|
|
206
|
+
});
|
|
207
|
+
}, "SelectValue")), Ee = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
208
|
+
let { __scopeSelect: n, children: r, ...i } = e;
|
|
209
|
+
return /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
210
|
+
"aria-hidden": !0,
|
|
211
|
+
...i,
|
|
212
|
+
ref: t,
|
|
213
|
+
children: r || "▼"
|
|
214
|
+
});
|
|
215
|
+
}, "SelectIcon")), [De, Oe] = K("SelectPortal", { forceMount: void 0 }), ke = /* @__PURE__ */ U((e) => {
|
|
216
|
+
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
217
|
+
return /* @__PURE__ */ (0, F.jsx)(De, {
|
|
218
|
+
scope: e.__scopeSelect,
|
|
219
|
+
forceMount: n,
|
|
220
|
+
children: /* @__PURE__ */ (0, F.jsx)(ee, {
|
|
221
|
+
asChild: !0,
|
|
222
|
+
...r
|
|
223
|
+
})
|
|
224
|
+
});
|
|
225
|
+
}, "SelectPortal"), J = "SelectContent", Ae = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
226
|
+
let n = Oe(J, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = q(J, e.__scopeSelect), [o, s] = P.useState();
|
|
227
|
+
return E(() => {
|
|
228
|
+
s(new DocumentFragment());
|
|
229
|
+
}, []), /* @__PURE__ */ (0, F.jsx)(k, {
|
|
230
|
+
present: r || a.open,
|
|
231
|
+
children: ({ present: e }) => e ? /* @__PURE__ */ (0, F.jsx)(Pe, {
|
|
232
|
+
...i,
|
|
233
|
+
ref: t
|
|
234
|
+
}) : /* @__PURE__ */ (0, F.jsx)(je, {
|
|
235
|
+
...i,
|
|
236
|
+
fragment: o
|
|
237
|
+
})
|
|
238
|
+
});
|
|
239
|
+
}, "SelectContent")), je = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
240
|
+
let { __scopeSelect: n, children: r, fragment: i } = e;
|
|
241
|
+
return i ? N.createPortal(/* @__PURE__ */ (0, F.jsx)(Me, {
|
|
242
|
+
scope: n,
|
|
243
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.Slot, {
|
|
244
|
+
scope: n,
|
|
245
|
+
children: /* @__PURE__ */ (0, F.jsx)("div", {
|
|
246
|
+
ref: t,
|
|
247
|
+
children: r
|
|
248
|
+
})
|
|
249
|
+
})
|
|
250
|
+
}), i) : null;
|
|
251
|
+
}, "SelectContentFragment")), Y = 10, [Me, X] = K(J), Ne = a("SelectContent.RemoveScroll"), Pe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
252
|
+
let { __scopeSelect: n } = e, { position: i = le.ItemAligned, onCloseAutoFocus: a, onEscapeKeyDown: o, onPointerDownOutside: s, side: c, sideOffset: l, align: u, alignOffset: d, arrowPadding: f, collisionBoundary: p, collisionPadding: m, sticky: h, hideWhenDetached: g, avoidCollisions: _, ...v } = e, y = q(J, n), [S, C] = P.useState(null), [w, E] = P.useState(null), ee = r(t, C), [D, O] = P.useState(null), [k, A] = P.useState(null), j = pe(n), [M, ie] = P.useState(!1), N = P.useRef(!1), I = P.useRef(!1), ae = P.useRef(!1);
|
|
253
|
+
P.useEffect(() => {
|
|
254
|
+
if (S) return te(S);
|
|
255
|
+
}, [S]), ne();
|
|
256
|
+
let L = P.useCallback((e) => {
|
|
257
|
+
let [t, ...n] = j().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
258
|
+
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && w && (w.scrollTop = 0), n === r && w && (w.scrollTop = w.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
259
|
+
}, [j, w]), R = P.useCallback(() => L([D, S]), [
|
|
260
|
+
L,
|
|
261
|
+
D,
|
|
262
|
+
S
|
|
263
|
+
]);
|
|
264
|
+
P.useEffect(() => {
|
|
265
|
+
M && R();
|
|
266
|
+
}, [M, R]);
|
|
267
|
+
let { onOpenChange: z, triggerPointerDownPosRef: B } = y;
|
|
268
|
+
P.useEffect(() => {
|
|
269
|
+
if (S) {
|
|
270
|
+
let e = {
|
|
271
|
+
x: 0,
|
|
272
|
+
y: 0
|
|
273
|
+
}, t = /* @__PURE__ */ U((t) => {
|
|
274
|
+
e = {
|
|
275
|
+
x: Math.abs(Math.round(t.pageX) - (B.current?.x ?? 0)),
|
|
276
|
+
y: Math.abs(Math.round(t.pageY) - (B.current?.y ?? 0))
|
|
277
|
+
};
|
|
278
|
+
}, "handlePointerMove"), n = /* @__PURE__ */ U((n) => {
|
|
279
|
+
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(S) || z(!1), document.removeEventListener("pointermove", t), B.current = null;
|
|
280
|
+
}, "handlePointerUp");
|
|
281
|
+
return B.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
282
|
+
capture: !0,
|
|
283
|
+
once: !0
|
|
284
|
+
})), () => {
|
|
285
|
+
document.removeEventListener("pointermove", t), document.removeEventListener("pointerup", n, { capture: !0 });
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
}, [
|
|
289
|
+
S,
|
|
290
|
+
z,
|
|
291
|
+
B
|
|
292
|
+
]), P.useEffect(() => {
|
|
293
|
+
let e = /* @__PURE__ */ U(() => z(!1), "close");
|
|
294
|
+
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
295
|
+
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
296
|
+
};
|
|
297
|
+
}, [z]);
|
|
298
|
+
let [V, oe] = lt((e) => {
|
|
299
|
+
let t = j().filter((e) => !e.disabled), n = ut(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
300
|
+
n && setTimeout(() => n.ref.current?.focus());
|
|
301
|
+
}), se = P.useCallback((e, t, n) => {
|
|
302
|
+
let r = !I.current;
|
|
303
|
+
r && (I.current = !0);
|
|
304
|
+
let i = !N.current && !n;
|
|
305
|
+
y.value !== void 0 && y.value === t || i ? (O(e), i && (N.current = !0)) : r && O(e);
|
|
306
|
+
}, [y.value]), H = P.useCallback(() => S?.focus(), [S]), ce = P.useCallback((e, t, n) => {
|
|
307
|
+
if (!e) return;
|
|
308
|
+
let r = !ae.current;
|
|
309
|
+
r && (ae.current = !0);
|
|
310
|
+
let i = !N.current && !n;
|
|
311
|
+
(y.value !== void 0 && y.value === t || i || r) && A(e);
|
|
312
|
+
}, [y.value]), ue = i === le.Popper ? Ie : Fe, de = ue === Ie ? {
|
|
313
|
+
side: c,
|
|
314
|
+
sideOffset: l,
|
|
315
|
+
align: u,
|
|
316
|
+
alignOffset: d,
|
|
317
|
+
arrowPadding: f,
|
|
318
|
+
collisionBoundary: p,
|
|
319
|
+
collisionPadding: m,
|
|
320
|
+
sticky: h,
|
|
321
|
+
hideWhenDetached: g,
|
|
322
|
+
avoidCollisions: _
|
|
323
|
+
} : {};
|
|
324
|
+
return /* @__PURE__ */ (0, F.jsx)(Me, {
|
|
325
|
+
scope: n,
|
|
326
|
+
content: S,
|
|
327
|
+
viewport: w,
|
|
328
|
+
onViewportChange: E,
|
|
329
|
+
itemRefCallback: se,
|
|
330
|
+
selectedItem: D,
|
|
331
|
+
onItemLeave: H,
|
|
332
|
+
itemTextRefCallback: ce,
|
|
333
|
+
focusSelectedItem: R,
|
|
334
|
+
selectedItemText: k,
|
|
335
|
+
position: i,
|
|
336
|
+
isPositioned: M,
|
|
337
|
+
searchRef: V,
|
|
338
|
+
children: /* @__PURE__ */ (0, F.jsx)(re, {
|
|
339
|
+
as: Ne,
|
|
340
|
+
allowPinchZoom: !0,
|
|
341
|
+
children: /* @__PURE__ */ (0, F.jsx)(b, {
|
|
342
|
+
asChild: !0,
|
|
343
|
+
trapped: y.open,
|
|
344
|
+
onMountAutoFocus: (e) => {
|
|
345
|
+
e.preventDefault();
|
|
346
|
+
},
|
|
347
|
+
onUnmountAutoFocus: T(a, (e) => {
|
|
348
|
+
y.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
349
|
+
}),
|
|
350
|
+
children: /* @__PURE__ */ (0, F.jsx)(x, {
|
|
351
|
+
asChild: !0,
|
|
352
|
+
disableOutsidePointerEvents: !0,
|
|
353
|
+
onEscapeKeyDown: o,
|
|
354
|
+
onPointerDownOutside: s,
|
|
355
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
356
|
+
onDismiss: () => y.onOpenChange(!1),
|
|
357
|
+
children: /* @__PURE__ */ (0, F.jsx)(ue, {
|
|
358
|
+
role: "listbox",
|
|
359
|
+
id: y.contentId,
|
|
360
|
+
"data-state": y.open ? "open" : "closed",
|
|
361
|
+
dir: y.dir,
|
|
362
|
+
onContextMenu: (e) => e.preventDefault(),
|
|
363
|
+
...v,
|
|
364
|
+
...de,
|
|
365
|
+
onPlaced: () => ie(!0),
|
|
366
|
+
ref: ee,
|
|
367
|
+
style: {
|
|
368
|
+
display: "flex",
|
|
369
|
+
flexDirection: "column",
|
|
370
|
+
outline: "none",
|
|
371
|
+
...v.style
|
|
372
|
+
},
|
|
373
|
+
onKeyDown: T(v.onKeyDown, (e) => {
|
|
374
|
+
let t = e.ctrlKey || e.altKey || e.metaKey;
|
|
375
|
+
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && oe(e.key), [
|
|
376
|
+
"ArrowUp",
|
|
377
|
+
"ArrowDown",
|
|
378
|
+
"Home",
|
|
379
|
+
"End"
|
|
380
|
+
].includes(e.key)) {
|
|
381
|
+
let t = j().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
382
|
+
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
383
|
+
let n = e.target, r = t.indexOf(n);
|
|
384
|
+
t = t.slice(r + 1);
|
|
385
|
+
}
|
|
386
|
+
setTimeout(() => L(t)), e.preventDefault();
|
|
387
|
+
}
|
|
388
|
+
})
|
|
389
|
+
})
|
|
390
|
+
})
|
|
391
|
+
})
|
|
392
|
+
})
|
|
393
|
+
});
|
|
394
|
+
}, "SelectContentImpl")), Fe = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
395
|
+
let { __scopeSelect: n, onPlaced: i, ...a } = e, o = q(J, n), s = X(J, n), [c, l] = P.useState(null), [u, d] = P.useState(null), f = r(t, d), p = pe(n), m = P.useRef(!1), h = P.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: y } = s, b = P.useCallback(() => {
|
|
396
|
+
if (o.trigger && o.valueNode && c && u && g && _ && v) {
|
|
397
|
+
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = v.getBoundingClientRect();
|
|
398
|
+
if (o.dir !== ue.RTL) {
|
|
399
|
+
let i = r.left - t.left, a = n.left - i, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
|
|
400
|
+
c.style.minWidth = s + "px", c.style.left = d + "px";
|
|
401
|
+
} else {
|
|
402
|
+
let i = t.right - r.right, a = window.innerWidth - n.right - i, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - Y, d = H(a, [Y, Math.max(Y, u - l)]);
|
|
403
|
+
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
404
|
+
}
|
|
405
|
+
let a = p(), s = window.innerHeight - Y * 2, l = g.scrollHeight, d = window.getComputedStyle(u), f = parseInt(d.borderTopWidth, 10), h = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = f + h + l + b + y, S = Math.min(_.offsetHeight * 5, x), C = window.getComputedStyle(g), w = parseInt(C.paddingTop, 10), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - Y, ee = s - E, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
|
|
406
|
+
if (k <= E) {
|
|
407
|
+
let e = a.length > 0 && _ === a[a.length - 1].ref.current;
|
|
408
|
+
c.style.bottom = "0px";
|
|
409
|
+
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = k + Math.max(ee, D + (e ? T : 0) + t + y);
|
|
410
|
+
c.style.height = n + "px";
|
|
411
|
+
} else {
|
|
412
|
+
let e = a.length > 0 && _ === a[0].ref.current;
|
|
413
|
+
c.style.top = "0px";
|
|
414
|
+
let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + D) + A;
|
|
415
|
+
c.style.height = t + "px", g.scrollTop = k - E + g.offsetTop;
|
|
416
|
+
}
|
|
417
|
+
c.style.margin = `${Y}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", i?.(), requestAnimationFrame(() => m.current = !0);
|
|
418
|
+
}
|
|
419
|
+
}, [
|
|
420
|
+
p,
|
|
421
|
+
o.trigger,
|
|
422
|
+
o.valueNode,
|
|
423
|
+
c,
|
|
424
|
+
u,
|
|
425
|
+
g,
|
|
426
|
+
_,
|
|
427
|
+
v,
|
|
428
|
+
o.dir,
|
|
429
|
+
i
|
|
430
|
+
]);
|
|
431
|
+
E(() => b(), [b]);
|
|
432
|
+
let [x, S] = P.useState();
|
|
433
|
+
E(() => {
|
|
434
|
+
u && S(window.getComputedStyle(u).zIndex);
|
|
435
|
+
}, [u]);
|
|
436
|
+
let w = P.useCallback((e) => {
|
|
437
|
+
e && h.current === !0 && (b(), y?.(), h.current = !1);
|
|
438
|
+
}, [b, y]);
|
|
439
|
+
return /* @__PURE__ */ (0, F.jsx)(Le, {
|
|
440
|
+
scope: n,
|
|
441
|
+
contentWrapper: c,
|
|
442
|
+
shouldExpandOnScrollRef: m,
|
|
443
|
+
onScrollButtonChange: w,
|
|
444
|
+
children: /* @__PURE__ */ (0, F.jsx)("div", {
|
|
445
|
+
ref: l,
|
|
446
|
+
style: {
|
|
447
|
+
display: "flex",
|
|
448
|
+
flexDirection: "column",
|
|
449
|
+
position: "fixed",
|
|
450
|
+
zIndex: x
|
|
451
|
+
},
|
|
452
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
453
|
+
...a,
|
|
454
|
+
ref: f,
|
|
455
|
+
style: {
|
|
456
|
+
boxSizing: "border-box",
|
|
457
|
+
maxHeight: "100%",
|
|
458
|
+
...a.style
|
|
459
|
+
}
|
|
460
|
+
})
|
|
461
|
+
})
|
|
462
|
+
});
|
|
463
|
+
}, "SelectItemAlignedPosition")), Ie = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
464
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = Y, ...a } = e, o = ge(n);
|
|
465
|
+
return /* @__PURE__ */ (0, F.jsx)(u, {
|
|
466
|
+
...o,
|
|
467
|
+
...a,
|
|
468
|
+
ref: t,
|
|
469
|
+
align: r,
|
|
470
|
+
collisionPadding: i,
|
|
471
|
+
style: {
|
|
472
|
+
boxSizing: "border-box",
|
|
473
|
+
...a.style,
|
|
474
|
+
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
475
|
+
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
476
|
+
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
477
|
+
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
|
|
478
|
+
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
}, "SelectPopperPosition")), [Le, Re] = K(J, {}), ze = "SelectViewport", Be = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
482
|
+
let { __scopeSelect: n, nonce: i, ...a } = e, o = X(ze, n), s = Re(ze, n), c = r(t, o.onViewportChange), l = P.useRef(0);
|
|
483
|
+
return /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)("style", {
|
|
484
|
+
dangerouslySetInnerHTML: { __html: "[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}" },
|
|
485
|
+
nonce: i
|
|
486
|
+
}), /* @__PURE__ */ (0, F.jsx)(G.Slot, {
|
|
487
|
+
scope: n,
|
|
488
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
489
|
+
"data-radix-select-viewport": "",
|
|
490
|
+
role: "presentation",
|
|
491
|
+
...a,
|
|
492
|
+
ref: c,
|
|
493
|
+
style: {
|
|
494
|
+
position: "relative",
|
|
495
|
+
flex: 1,
|
|
496
|
+
overflow: "hidden auto",
|
|
497
|
+
...a.style
|
|
498
|
+
},
|
|
499
|
+
onScroll: T(a.onScroll, (e) => {
|
|
500
|
+
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
|
|
501
|
+
if (r?.current && n) {
|
|
502
|
+
let e = Math.abs(l.current - t.scrollTop);
|
|
503
|
+
if (e > 0) {
|
|
504
|
+
let r = window.innerHeight - Y * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
505
|
+
if (o < r) {
|
|
506
|
+
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
507
|
+
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
l.current = t.scrollTop;
|
|
512
|
+
})
|
|
513
|
+
})
|
|
514
|
+
})] });
|
|
515
|
+
}, "SelectViewport")), [Ve, He] = K("SelectGroup"), Ue = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
516
|
+
let { __scopeSelect: n, ...r } = e, i = y();
|
|
517
|
+
return /* @__PURE__ */ (0, F.jsx)(Ve, {
|
|
518
|
+
scope: n,
|
|
519
|
+
id: i,
|
|
520
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
521
|
+
role: "group",
|
|
522
|
+
"aria-labelledby": i,
|
|
523
|
+
...r,
|
|
524
|
+
ref: t
|
|
525
|
+
})
|
|
526
|
+
});
|
|
527
|
+
}, "SelectGroup")), We = "SelectLabel", Ge = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
528
|
+
let { __scopeSelect: n, ...r } = e, i = He(We, n);
|
|
529
|
+
return /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
530
|
+
id: i.id,
|
|
531
|
+
...r,
|
|
532
|
+
ref: t
|
|
533
|
+
});
|
|
534
|
+
}, "SelectLabel")), Ke = "SelectItem", [qe, Je] = K(Ke), Ye = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
535
|
+
let { __scopeSelect: n, value: i, disabled: a = !1, textValue: o, ...s } = e, c = q(Ke, n), l = X(Ke, n), u = c.value === i, [d, f] = P.useState(o ?? ""), [p, m] = P.useState(!1), h = A((e) => l.itemRefCallback?.(e, i, a)), g = r(t, h), _ = y(), v = P.useRef("touch");
|
|
536
|
+
function b(e) {
|
|
537
|
+
c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(i), c.onOpenChange(!1);
|
|
538
|
+
}
|
|
539
|
+
return U(b, "handleSelect"), /* @__PURE__ */ (0, F.jsx)(qe, {
|
|
540
|
+
scope: n,
|
|
541
|
+
value: i,
|
|
542
|
+
disabled: a,
|
|
543
|
+
textId: _,
|
|
544
|
+
isSelected: u,
|
|
545
|
+
onItemTextChange: P.useCallback((e) => {
|
|
546
|
+
f((t) => t || (e?.textContent ?? "").trim());
|
|
547
|
+
}, []),
|
|
548
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.ItemSlot, {
|
|
549
|
+
scope: n,
|
|
550
|
+
value: i,
|
|
551
|
+
disabled: a,
|
|
552
|
+
textValue: d,
|
|
553
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
554
|
+
role: "option",
|
|
555
|
+
"aria-labelledby": _,
|
|
556
|
+
"data-highlighted": p ? "" : void 0,
|
|
557
|
+
"aria-selected": u && p,
|
|
558
|
+
"data-state": u ? "checked" : "unchecked",
|
|
559
|
+
"aria-disabled": a || void 0,
|
|
560
|
+
"data-disabled": a ? "" : void 0,
|
|
561
|
+
tabIndex: a ? void 0 : -1,
|
|
562
|
+
...s,
|
|
563
|
+
ref: g,
|
|
564
|
+
onFocus: T(s.onFocus, () => m(!0)),
|
|
565
|
+
onBlur: T(s.onBlur, () => m(!1)),
|
|
566
|
+
onClick: T(s.onClick, (e) => {
|
|
567
|
+
a || v.current !== "mouse" && b(e);
|
|
568
|
+
}),
|
|
569
|
+
onPointerUp: T(s.onPointerUp, (e) => {
|
|
570
|
+
a || v.current === "mouse" && b(e);
|
|
571
|
+
}),
|
|
572
|
+
onPointerDown: T(s.onPointerDown, (e) => {
|
|
573
|
+
v.current = e.pointerType;
|
|
574
|
+
}),
|
|
575
|
+
onPointerMove: T(s.onPointerMove, (e) => {
|
|
576
|
+
v.current = e.pointerType, a ? l.onItemLeave?.() : v.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
|
|
577
|
+
}),
|
|
578
|
+
onPointerLeave: T(s.onPointerLeave, (e) => {
|
|
579
|
+
e.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
580
|
+
}),
|
|
581
|
+
onKeyDown: T(s.onKeyDown, (e) => {
|
|
582
|
+
a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (fe.includes(e.key) && b(e), e.key === " " && e.preventDefault());
|
|
583
|
+
})
|
|
584
|
+
})
|
|
585
|
+
})
|
|
586
|
+
});
|
|
587
|
+
}, "SelectItem")), Xe = "SelectItemText", Ze = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
588
|
+
let { __scopeSelect: n, className: i, style: a, ...o } = e, s = q(Xe, n), c = X(Xe, n), l = Je(Xe, n), u = ye(Xe, n), [d, f] = P.useState(null), p = A((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = r(t, f, l.onItemTextChange, p), h = d?.textContent, g = P.useMemo(() => /* @__PURE__ */ (0, F.jsx)("option", {
|
|
589
|
+
value: l.value,
|
|
590
|
+
disabled: l.disabled,
|
|
591
|
+
children: h
|
|
592
|
+
}, l.value), [
|
|
593
|
+
l.disabled,
|
|
594
|
+
l.value,
|
|
595
|
+
h
|
|
596
|
+
]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
|
|
597
|
+
return E(() => (_(g), () => v(g)), [
|
|
598
|
+
_,
|
|
599
|
+
v,
|
|
600
|
+
g
|
|
601
|
+
]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
602
|
+
id: l.textId,
|
|
603
|
+
...o,
|
|
604
|
+
ref: m
|
|
605
|
+
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Z(s.value) ? N.createPortal(o.children, s.valueNode) : null] });
|
|
606
|
+
}, "SelectItemText")), Qe = "SelectItemIndicator", $e = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
607
|
+
let { __scopeSelect: n, ...r } = e;
|
|
608
|
+
return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
609
|
+
"aria-hidden": !0,
|
|
610
|
+
...r,
|
|
611
|
+
ref: t
|
|
612
|
+
}) : null;
|
|
613
|
+
}, "SelectItemIndicator")), et = "SelectScrollUpButton", tt = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
614
|
+
let n = X(et, e.__scopeSelect), i = Re(et, e.__scopeSelect), [a, o] = P.useState(!1), s = r(t, i.onScrollButtonChange);
|
|
615
|
+
return E(() => {
|
|
616
|
+
if (n.viewport && n.isPositioned) {
|
|
617
|
+
let e = function() {
|
|
618
|
+
let e = t.scrollTop > 0;
|
|
619
|
+
o(e);
|
|
620
|
+
};
|
|
621
|
+
U(e, "handleScroll");
|
|
622
|
+
let t = n.viewport;
|
|
623
|
+
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
624
|
+
}
|
|
625
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, F.jsx)(it, {
|
|
626
|
+
...e,
|
|
627
|
+
ref: s,
|
|
628
|
+
onAutoScroll: () => {
|
|
629
|
+
let { viewport: e, selectedItem: t } = n;
|
|
630
|
+
e && t && (e.scrollTop -= t.offsetHeight);
|
|
631
|
+
}
|
|
632
|
+
}) : null;
|
|
633
|
+
}, "SelectScrollUpButton")), nt = "SelectScrollDownButton", rt = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
634
|
+
let n = X(nt, e.__scopeSelect), i = Re(nt, e.__scopeSelect), [a, o] = P.useState(!1), s = r(t, i.onScrollButtonChange);
|
|
635
|
+
return E(() => {
|
|
636
|
+
if (n.viewport && n.isPositioned) {
|
|
637
|
+
let e = function() {
|
|
638
|
+
let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
|
|
639
|
+
o(n);
|
|
640
|
+
};
|
|
641
|
+
U(e, "handleScroll");
|
|
642
|
+
let t = n.viewport;
|
|
643
|
+
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
644
|
+
}
|
|
645
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, F.jsx)(it, {
|
|
646
|
+
...e,
|
|
647
|
+
ref: s,
|
|
648
|
+
onAutoScroll: () => {
|
|
649
|
+
let { viewport: e, selectedItem: t } = n;
|
|
650
|
+
e && t && (e.scrollTop += t.offsetHeight);
|
|
651
|
+
}
|
|
652
|
+
}) : null;
|
|
653
|
+
}, "SelectScrollDownButton")), it = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
654
|
+
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = X("SelectScrollButton", n), o = P.useRef(null), s = pe(n), c = P.useCallback(() => {
|
|
655
|
+
o.current !== null && (window.clearInterval(o.current), o.current = null);
|
|
656
|
+
}, []);
|
|
657
|
+
return P.useEffect(() => () => c(), [c]), E(() => {
|
|
658
|
+
s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
659
|
+
}, [s]), /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
660
|
+
"aria-hidden": !0,
|
|
661
|
+
...i,
|
|
662
|
+
ref: t,
|
|
663
|
+
style: {
|
|
664
|
+
flexShrink: 0,
|
|
665
|
+
...i.style
|
|
666
|
+
},
|
|
667
|
+
onPointerDown: T(i.onPointerDown, () => {
|
|
668
|
+
o.current === null && (o.current = window.setInterval(r, 50));
|
|
669
|
+
}),
|
|
670
|
+
onPointerMove: T(i.onPointerMove, () => {
|
|
671
|
+
a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
|
|
672
|
+
}),
|
|
673
|
+
onPointerLeave: T(i.onPointerLeave, () => {
|
|
674
|
+
c();
|
|
675
|
+
})
|
|
676
|
+
});
|
|
677
|
+
}, "SelectScrollButtonImpl")), at = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
678
|
+
let { __scopeSelect: n, ...r } = e;
|
|
679
|
+
return /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
680
|
+
"aria-hidden": !0,
|
|
681
|
+
...r,
|
|
682
|
+
ref: t
|
|
683
|
+
});
|
|
684
|
+
}, "SelectSeparator")), ot = "SelectBubbleInput", st = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function({ __scopeSelect: e, ...t }, n) {
|
|
685
|
+
let i = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: u, autoComplete: d, form: f, userSelection: p } = i, { nativeOptions: m, nativeSelectKey: h } = i, g = P.useRef(null), _ = r(n, g), v = a ?? "", y = P.useRef(v), b = P.useRef(p), x = P.useRef(!1), S = Array.from(m).some((e) => (e.props.value ?? "") === "");
|
|
686
|
+
return P.useEffect(() => {
|
|
687
|
+
let e = g.current;
|
|
688
|
+
if (!e) return;
|
|
689
|
+
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== b.current;
|
|
690
|
+
b.current = p;
|
|
691
|
+
let i = y.current !== v;
|
|
692
|
+
y.current = v;
|
|
693
|
+
let a = r && i;
|
|
694
|
+
if (r && !i && p.value !== v && !p.hasConsumerStoppedPropagation && n) {
|
|
695
|
+
x.current = !0;
|
|
696
|
+
try {
|
|
697
|
+
n.call(e, p.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
698
|
+
} finally {
|
|
699
|
+
x.current = !1, n.call(e, v);
|
|
700
|
+
}
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
let o = a && !p.hasConsumerStoppedPropagation;
|
|
704
|
+
if (i && n) {
|
|
705
|
+
let t = new Event("change", { bubbles: o });
|
|
706
|
+
n.call(e, v), e.dispatchEvent(t);
|
|
707
|
+
}
|
|
708
|
+
}, [v, p]), /* @__PURE__ */ (0, F.jsxs)(C.select, {
|
|
709
|
+
"aria-hidden": !0,
|
|
710
|
+
required: s,
|
|
711
|
+
tabIndex: -1,
|
|
712
|
+
name: u,
|
|
713
|
+
autoComplete: d,
|
|
714
|
+
disabled: c,
|
|
715
|
+
form: f,
|
|
716
|
+
onChange: (e) => {
|
|
717
|
+
x.current || o(e.target.value);
|
|
718
|
+
},
|
|
719
|
+
...t,
|
|
720
|
+
style: {
|
|
721
|
+
...l,
|
|
722
|
+
...t.style
|
|
723
|
+
},
|
|
724
|
+
ref: _,
|
|
725
|
+
defaultValue: v,
|
|
726
|
+
children: [Z(a) && !S ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
|
|
727
|
+
}, h);
|
|
728
|
+
}, "SelectBubbleInput"));
|
|
729
|
+
function ct(e) {
|
|
730
|
+
return typeof e == "function";
|
|
731
|
+
}
|
|
732
|
+
U(ct, "isFunction");
|
|
733
|
+
function Z(e) {
|
|
734
|
+
return e === "" || e === void 0;
|
|
735
|
+
}
|
|
736
|
+
U(Z, "shouldShowPlaceholder");
|
|
737
|
+
function lt(e) {
|
|
738
|
+
let t = A(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
|
|
739
|
+
let i = n.current + e;
|
|
740
|
+
t(i);
|
|
741
|
+
function a(e) {
|
|
742
|
+
n.current = e, window.clearTimeout(r.current), e !== "" && (r.current = window.setTimeout(() => a(""), 1e3));
|
|
743
|
+
}
|
|
744
|
+
U(a, "updateSearch"), a(i);
|
|
745
|
+
}, [t]), a = P.useCallback(() => {
|
|
746
|
+
n.current = "", window.clearTimeout(r.current);
|
|
747
|
+
}, []);
|
|
748
|
+
return P.useEffect(() => () => window.clearTimeout(r.current), []), [
|
|
749
|
+
n,
|
|
750
|
+
i,
|
|
751
|
+
a
|
|
752
|
+
];
|
|
753
|
+
}
|
|
754
|
+
U(lt, "useTypeaheadSearch");
|
|
755
|
+
function ut(e, t, n) {
|
|
756
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = dt(e, Math.max(i, 0));
|
|
757
|
+
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
758
|
+
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
|
|
759
|
+
return o === n ? void 0 : o;
|
|
760
|
+
}
|
|
761
|
+
U(ut, "findNextItem");
|
|
762
|
+
function dt(e, t) {
|
|
763
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
764
|
+
}
|
|
765
|
+
U(dt, "wrapArray");
|
|
766
|
+
//#endregion
|
|
767
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
|
|
768
|
+
var ft = {
|
|
769
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
770
|
+
current: 0
|
|
771
|
+
}, pt = /*#__PURE__*/ P.createContext(ft), mt = /*#__PURE__*/ P.createContext(!1);
|
|
772
|
+
typeof window < "u" && window.document && window.document.createElement;
|
|
773
|
+
var ht = /* @__PURE__ */ new WeakMap();
|
|
774
|
+
function gt(e = !1) {
|
|
775
|
+
let t = (0, P.useContext)(pt), n = (0, P.useRef)(null);
|
|
776
|
+
if (n.current === null && !e) {
|
|
777
|
+
let e = P.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
778
|
+
if (e) {
|
|
779
|
+
let n = ht.get(e);
|
|
780
|
+
n == null ? ht.set(e, {
|
|
781
|
+
id: t.current,
|
|
782
|
+
state: e.memoizedState
|
|
783
|
+
}) : e.memoizedState !== n.state && (t.current = n.id, ht.delete(e));
|
|
784
|
+
}
|
|
785
|
+
n.current = ++t.current;
|
|
786
|
+
}
|
|
787
|
+
return n.current;
|
|
788
|
+
}
|
|
789
|
+
function _t(e) {
|
|
790
|
+
let t = (0, P.useContext)(pt), n = gt(!!e), r = `react-aria${t.prefix}`;
|
|
791
|
+
return e || `${r}-${n}`;
|
|
792
|
+
}
|
|
793
|
+
function vt(e) {
|
|
794
|
+
let t = P.useId(), [n] = (0, P.useState)(Ct()), r = n ? "react-aria" : `react-aria${ft.prefix}`;
|
|
795
|
+
return e || `${r}-${t}`;
|
|
796
|
+
}
|
|
797
|
+
var yt = typeof P.useId == "function" ? vt : _t;
|
|
798
|
+
function bt() {
|
|
799
|
+
return !1;
|
|
800
|
+
}
|
|
801
|
+
function xt() {
|
|
802
|
+
return !0;
|
|
803
|
+
}
|
|
804
|
+
function St(e) {
|
|
805
|
+
return () => {};
|
|
806
|
+
}
|
|
807
|
+
function Ct() {
|
|
808
|
+
return typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore(St, bt, xt) : (0, P.useContext)(mt);
|
|
809
|
+
}
|
|
810
|
+
//#endregion
|
|
811
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/utils.mjs
|
|
812
|
+
var wt = /* @__PURE__ */ new Set([
|
|
813
|
+
"Arab",
|
|
814
|
+
"Syrc",
|
|
815
|
+
"Samr",
|
|
816
|
+
"Mand",
|
|
817
|
+
"Thaa",
|
|
818
|
+
"Mend",
|
|
819
|
+
"Nkoo",
|
|
820
|
+
"Adlm",
|
|
821
|
+
"Rohg",
|
|
822
|
+
"Hebr"
|
|
823
|
+
]), Tt = /* @__PURE__ */ new Set([
|
|
824
|
+
"ae",
|
|
825
|
+
"ar",
|
|
826
|
+
"arc",
|
|
827
|
+
"bcc",
|
|
828
|
+
"bqi",
|
|
829
|
+
"ckb",
|
|
830
|
+
"dv",
|
|
831
|
+
"fa",
|
|
832
|
+
"glk",
|
|
833
|
+
"he",
|
|
834
|
+
"ku",
|
|
835
|
+
"mzn",
|
|
836
|
+
"nqo",
|
|
837
|
+
"pnb",
|
|
838
|
+
"ps",
|
|
839
|
+
"sd",
|
|
840
|
+
"ug",
|
|
841
|
+
"ur",
|
|
842
|
+
"yi"
|
|
843
|
+
]);
|
|
844
|
+
function Et(e) {
|
|
845
|
+
if (Intl.Locale) {
|
|
846
|
+
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
|
|
847
|
+
if (n) return n.direction === "rtl";
|
|
848
|
+
if (t.script) return wt.has(t.script);
|
|
849
|
+
}
|
|
850
|
+
let t = e.split("-")[0];
|
|
851
|
+
return Tt.has(t);
|
|
852
|
+
}
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/useDefaultLocale.mjs
|
|
855
|
+
var Dt = Symbol.for("react-aria.i18n.locale");
|
|
856
|
+
function Ot() {
|
|
857
|
+
let e = typeof window < "u" && window[Dt] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
858
|
+
try {
|
|
859
|
+
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
860
|
+
} catch {
|
|
861
|
+
e = "en-US";
|
|
862
|
+
}
|
|
863
|
+
return {
|
|
864
|
+
locale: e,
|
|
865
|
+
direction: Et(e) ? "rtl" : "ltr"
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
var kt = Ot(), Q = /* @__PURE__ */ new Set();
|
|
869
|
+
function At() {
|
|
870
|
+
kt = Ot();
|
|
871
|
+
for (let e of Q) e(kt);
|
|
872
|
+
}
|
|
873
|
+
function jt() {
|
|
874
|
+
let e = Ct(), [t, n] = (0, P.useState)(kt);
|
|
875
|
+
return (0, P.useEffect)(() => (Q.size === 0 && window.addEventListener("languagechange", At), Q.add(n), () => {
|
|
876
|
+
Q.delete(n), Q.size === 0 && window.removeEventListener("languagechange", At);
|
|
877
|
+
}), []), e ? {
|
|
878
|
+
locale: typeof window < "u" && window[Dt] || "en-US",
|
|
879
|
+
direction: "ltr"
|
|
880
|
+
} : t;
|
|
881
|
+
}
|
|
882
|
+
//#endregion
|
|
883
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
|
|
884
|
+
var Mt = /*#__PURE__*/ P.createContext(null);
|
|
885
|
+
function Nt(e) {
|
|
886
|
+
let { locale: t, children: n } = e, r = P.useMemo(() => ({
|
|
887
|
+
locale: t,
|
|
888
|
+
direction: Et(t) ? "rtl" : "ltr"
|
|
889
|
+
}), [t]);
|
|
890
|
+
return /*#__PURE__*/ P.createElement(Mt.Provider, { value: r }, n);
|
|
891
|
+
}
|
|
892
|
+
function Pt(e) {
|
|
893
|
+
let { children: t } = e, n = jt();
|
|
894
|
+
return /*#__PURE__*/ P.createElement(Mt.Provider, { value: n }, t);
|
|
895
|
+
}
|
|
896
|
+
function Ft(e) {
|
|
897
|
+
let { locale: t, children: n } = e;
|
|
898
|
+
return t ? /*#__PURE__*/ P.createElement(Nt, {
|
|
899
|
+
locale: t,
|
|
900
|
+
children: n
|
|
901
|
+
}) : /*#__PURE__*/ P.createElement(Pt, { children: n });
|
|
902
|
+
}
|
|
903
|
+
function It() {
|
|
904
|
+
let e = jt();
|
|
905
|
+
return (0, P.useContext)(Mt) || e;
|
|
906
|
+
}
|
|
907
|
+
//#endregion
|
|
908
|
+
//#region ../node_modules/.pnpm/@internationalized+number@3.6.8/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
909
|
+
var Lt = /* @__PURE__ */ new Map(), Rt = !1;
|
|
910
|
+
try {
|
|
911
|
+
Rt = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
912
|
+
} catch {}
|
|
913
|
+
var zt = !1;
|
|
914
|
+
try {
|
|
915
|
+
zt = new Intl.NumberFormat("de-DE", {
|
|
916
|
+
style: "unit",
|
|
917
|
+
unit: "degree"
|
|
918
|
+
}).resolvedOptions().style === "unit";
|
|
919
|
+
} catch {}
|
|
920
|
+
var Bt = { degree: { narrow: {
|
|
921
|
+
default: "°",
|
|
922
|
+
"ja-JP": " 度",
|
|
923
|
+
"zh-TW": "度",
|
|
924
|
+
"sl-SI": " °"
|
|
925
|
+
} } }, Vt = class {
|
|
926
|
+
constructor(e, t = {}) {
|
|
927
|
+
this.numberFormatter = Ht(e, t), this.options = t;
|
|
928
|
+
}
|
|
929
|
+
format(e) {
|
|
930
|
+
let t = "";
|
|
931
|
+
if (t = !Rt && this.options.signDisplay != null ? Ut(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !zt) {
|
|
932
|
+
let { unit: e, unitDisplay: n = "short", locale: r } = this.resolvedOptions();
|
|
933
|
+
if (!e) return t;
|
|
934
|
+
let i = Bt[e]?.[n];
|
|
935
|
+
t += i[r] || i.default;
|
|
936
|
+
}
|
|
937
|
+
return t;
|
|
938
|
+
}
|
|
939
|
+
formatToParts(e) {
|
|
940
|
+
return this.numberFormatter.formatToParts(e);
|
|
941
|
+
}
|
|
942
|
+
formatRange(e, t) {
|
|
943
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, t);
|
|
944
|
+
if (t < e) throw RangeError("End date must be >= start date");
|
|
945
|
+
return `${this.format(e)} \u{2013} ${this.format(t)}`;
|
|
946
|
+
}
|
|
947
|
+
formatRangeToParts(e, t) {
|
|
948
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, t);
|
|
949
|
+
if (t < e) throw RangeError("End date must be >= start date");
|
|
950
|
+
let n = this.numberFormatter.formatToParts(e), r = this.numberFormatter.formatToParts(t);
|
|
951
|
+
return [
|
|
952
|
+
...n.map((e) => ({
|
|
953
|
+
...e,
|
|
954
|
+
source: "startRange"
|
|
955
|
+
})),
|
|
956
|
+
{
|
|
957
|
+
type: "literal",
|
|
958
|
+
value: " – ",
|
|
959
|
+
source: "shared"
|
|
960
|
+
},
|
|
961
|
+
...r.map((e) => ({
|
|
962
|
+
...e,
|
|
963
|
+
source: "endRange"
|
|
964
|
+
}))
|
|
965
|
+
];
|
|
966
|
+
}
|
|
967
|
+
resolvedOptions() {
|
|
968
|
+
let e = this.numberFormatter.resolvedOptions();
|
|
969
|
+
return !Rt && this.options.signDisplay != null && (e = {
|
|
970
|
+
...e,
|
|
971
|
+
signDisplay: this.options.signDisplay
|
|
972
|
+
}), !zt && this.options.style === "unit" && (e = {
|
|
973
|
+
...e,
|
|
974
|
+
style: "unit",
|
|
975
|
+
unit: this.options.unit,
|
|
976
|
+
unitDisplay: this.options.unitDisplay
|
|
977
|
+
}), e;
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
function Ht(e, t = {}) {
|
|
981
|
+
let { numberingSystem: n } = t;
|
|
982
|
+
if (n && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${n}`), t.style === "unit" && !zt) {
|
|
983
|
+
let { unit: e, unitDisplay: n = "short" } = t;
|
|
984
|
+
if (!e) throw Error("unit option must be provided with style: \"unit\"");
|
|
985
|
+
if (!Bt[e]?.[n]) throw Error(`Unsupported unit ${e} with unitDisplay = ${n}`);
|
|
986
|
+
t = {
|
|
987
|
+
...t,
|
|
988
|
+
style: "decimal"
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
let r = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : "");
|
|
992
|
+
if (Lt.has(r)) return Lt.get(r);
|
|
993
|
+
let i = new Intl.NumberFormat(e, t);
|
|
994
|
+
return Lt.set(r, i), i;
|
|
995
|
+
}
|
|
996
|
+
function Ut(e, t, n) {
|
|
997
|
+
if (t === "auto") return e.format(n);
|
|
998
|
+
if (t === "never") return e.format(Math.abs(n));
|
|
999
|
+
{
|
|
1000
|
+
let r = !1;
|
|
1001
|
+
if (t === "always" ? r = n > 0 || Object.is(n, 0) : t === "exceptZero" && (Object.is(n, -0) || Object.is(n, 0) ? n = Math.abs(n) : r = n > 0), r) {
|
|
1002
|
+
let t = e.format(-n), r = e.format(n), i = t.replace(r, "").replace(/\u200e|\u061C/, "");
|
|
1003
|
+
return [...i].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), t.replace(r, "!!!").replace(i, "+").replace("!!!", r);
|
|
1004
|
+
}
|
|
1005
|
+
return e.format(n);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
//#endregion
|
|
1009
|
+
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
|
|
1010
|
+
function Wt(e = {}) {
|
|
1011
|
+
let { locale: t } = It();
|
|
1012
|
+
return (0, P.useMemo)(() => new Vt(t, e), [t, e]);
|
|
1013
|
+
}
|
|
1014
|
+
//#endregion
|
|
1015
|
+
//#region src/components/ui/menu-items.tsx
|
|
1016
|
+
var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md forced-color-adjust-none forced-colors:border-[CanvasText] forced-colors:bg-[Canvas] forced-colors:text-[CanvasText]", { variants: { subcontent: { true: "shadow-lg" } } }), Kt = i("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:data-[state=open]:bg-[Highlight] forced-colors:data-[state=open]:text-[HighlightText]", { variants: { inset: { true: "pl-8" } } }), qt = "data-disabled:pointer-events-none data-disabled:opacity-50 forced-colors:data-disabled:text-[GrayText]", Jt = i(t("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", qt), { variants: {} }), Yt = i("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), Xt = i("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), Zt = i(t("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden forced-color-adjust-none forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText] forced-colors:aria-selected:bg-[Highlight] forced-colors:aria-selected:text-[HighlightText]", qt), {
|
|
1017
|
+
variants: {
|
|
1018
|
+
inset: { true: "pl-8" },
|
|
1019
|
+
variant: {
|
|
1020
|
+
default: "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
1021
|
+
danger: "data-[highlighted]:bg-(--red-5) data-[highlighted]:text-(--red-12) aria-selected:bg-(--red-5) aria-selected:text-(--red-12)",
|
|
1022
|
+
muted: "data-[highlighted]:bg-muted/70 data-[highlighted]:text-muted-foreground aria-selected:bg-muted/70 aria-selected:text-muted-foreground",
|
|
1023
|
+
success: "data-[highlighted]:bg-(--grass-3) data-[highlighted]:text-(--grass-11) aria-selected:bg-(--grass-3) aria-selected:text-(--grass-11)",
|
|
1024
|
+
disabled: "text-muted-foreground"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
defaultVariants: { variant: "default" }
|
|
1028
|
+
}), Qt = i("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), $t = (e) => {
|
|
1029
|
+
let n = (0, $.c)(8), r, i;
|
|
1030
|
+
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
1031
|
+
let a;
|
|
1032
|
+
n[3] === r ? a = n[4] : (a = t("ml-auto text-xs tracking-widest opacity-60", r), n[3] = r, n[4] = a);
|
|
1033
|
+
let o;
|
|
1034
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1035
|
+
className: a,
|
|
1036
|
+
...i
|
|
1037
|
+
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
1038
|
+
};
|
|
1039
|
+
$t.displayName = "MenuShortcut";
|
|
1040
|
+
//#endregion
|
|
1041
|
+
//#region src/components/ui/label.tsx
|
|
1042
|
+
var en = i("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), tn = P.forwardRef((e, n) => {
|
|
1043
|
+
let r = (0, $.c)(9), i, a;
|
|
1044
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1045
|
+
let o;
|
|
1046
|
+
r[3] === i ? o = r[4] : (o = t(en(), i), r[3] = i, r[4] = o);
|
|
1047
|
+
let s;
|
|
1048
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(V, {
|
|
1049
|
+
ref: n,
|
|
1050
|
+
className: o,
|
|
1051
|
+
...a
|
|
1052
|
+
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1053
|
+
});
|
|
1054
|
+
tn.displayName = V.displayName;
|
|
1055
|
+
//#endregion
|
|
1056
|
+
//#region src/components/ui/native-select.tsx
|
|
1057
|
+
var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-background px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer forced-color-adjust-none forced-colors:bg-[ButtonFace] forced-colors:text-[ButtonText] forced-colors:disabled:text-[GrayText]", {
|
|
1058
|
+
variants: { variant: {
|
|
1059
|
+
default: "shadow-xs-solid border border-input hover:shadow-sm-solid focus-visible:border-primary focus-visible:shadow-md-solid disabled:hover:shadow-xs-solid forced-colors:border-[ButtonText] forced-colors:disabled:border-[GrayText]",
|
|
1060
|
+
ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
|
|
1061
|
+
} },
|
|
1062
|
+
defaultVariants: { variant: "default" }
|
|
1063
|
+
}), rn = P.forwardRef((e, r) => {
|
|
1064
|
+
let i = (0, $.c)(12), a, o, s;
|
|
1065
|
+
i[0] === e ? (a = i[1], o = i[2], s = i[3]) : ({className: o, children: a, ...s} = e, i[0] = e, i[1] = a, i[2] = o, i[3] = s);
|
|
1066
|
+
let c;
|
|
1067
|
+
i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = n.stopPropagation(), i[4] = c) : c = i[4];
|
|
1068
|
+
let l;
|
|
1069
|
+
i[5] === o ? l = i[6] : (l = t(nn({}), o), i[5] = o, i[6] = l);
|
|
1070
|
+
let u;
|
|
1071
|
+
return i[7] !== a || i[8] !== s || i[9] !== r || i[10] !== l ? (u = /* @__PURE__ */ (0, F.jsx)("select", {
|
|
1072
|
+
ref: r,
|
|
1073
|
+
onClick: c,
|
|
1074
|
+
className: l,
|
|
1075
|
+
...s,
|
|
1076
|
+
children: a
|
|
1077
|
+
}), i[7] = a, i[8] = s, i[9] = r, i[10] = l, i[11] = u) : u = i[11], u;
|
|
1078
|
+
});
|
|
1079
|
+
rn.displayName = "NativeSelect";
|
|
1080
|
+
//#endregion
|
|
1081
|
+
//#region src/components/ui/select.tsx
|
|
1082
|
+
var an = xe, on = Ue, sn = D(ke), cn = Te, ln = P.forwardRef((e, n) => {
|
|
1083
|
+
let r = (0, $.c)(21), i, a, o, s, c, l;
|
|
1084
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4], c = r[5], l = r[6]) : ({className: a, children: i, onClear: o, variant: l, hideChevron: c, ...s} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s, r[5] = c, r[6] = l);
|
|
1085
|
+
let u = c !== void 0 && c, d;
|
|
1086
|
+
r[7] !== a || r[8] !== l ? (d = t(nn({ variant: l }), "mb-0", a), r[7] = a, r[8] = l, r[9] = d) : d = r[9];
|
|
1087
|
+
let f;
|
|
1088
|
+
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1089
|
+
onPointerDown: (e) => {
|
|
1090
|
+
e.preventDefault(), e.stopPropagation(), o();
|
|
1091
|
+
},
|
|
1092
|
+
children: /* @__PURE__ */ (0, F.jsx)(g, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
|
|
1093
|
+
}) : !u && /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" }), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
|
|
1094
|
+
let p;
|
|
1095
|
+
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, F.jsx)(Ee, {
|
|
1096
|
+
asChild: !0,
|
|
1097
|
+
children: f
|
|
1098
|
+
}), r[13] = f, r[14] = p);
|
|
1099
|
+
let m;
|
|
1100
|
+
return r[15] !== i || r[16] !== s || r[17] !== n || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, F.jsxs)(Ce, {
|
|
1101
|
+
ref: n,
|
|
1102
|
+
className: d,
|
|
1103
|
+
...s,
|
|
1104
|
+
children: [i, p]
|
|
1105
|
+
}), r[15] = i, r[16] = s, r[17] = n, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
|
|
1106
|
+
});
|
|
1107
|
+
ln.displayName = Ce.displayName;
|
|
1108
|
+
var un = j(Ae), dn = P.forwardRef((e, n) => {
|
|
1109
|
+
let r = (0, $.c)(21), i, a, o, s;
|
|
1110
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, position: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1111
|
+
let c = s === void 0 ? "popper" : s, l = c === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", u;
|
|
1112
|
+
r[5] !== a || r[6] !== l ? (u = t("max-h-[300px] relative z-50 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-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", l, a), r[5] = a, r[6] = l, r[7] = u) : u = r[7];
|
|
1113
|
+
let d;
|
|
1114
|
+
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, F.jsx)(tt, {
|
|
1115
|
+
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1116
|
+
children: /* @__PURE__ */ (0, F.jsx)(ie, { className: "h-4 w-4" })
|
|
1117
|
+
}), r[8] = d) : d = r[8];
|
|
1118
|
+
let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
|
|
1119
|
+
r[9] === f ? p = r[10] : (p = t("p-1", f), r[9] = f, r[10] = p);
|
|
1120
|
+
let m;
|
|
1121
|
+
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, F.jsx)(Be, {
|
|
1122
|
+
className: p,
|
|
1123
|
+
children: i
|
|
1124
|
+
}), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
|
|
1125
|
+
let h;
|
|
1126
|
+
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, F.jsx)(rt, {
|
|
1127
|
+
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1128
|
+
children: /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" })
|
|
1129
|
+
}), r[14] = h) : h = r[14];
|
|
1130
|
+
let g;
|
|
1131
|
+
return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, F.jsx)(sn, { children: /* @__PURE__ */ (0, F.jsx)(O, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
|
|
1132
|
+
ref: n,
|
|
1133
|
+
className: u,
|
|
1134
|
+
position: c,
|
|
1135
|
+
...o,
|
|
1136
|
+
children: [
|
|
1137
|
+
d,
|
|
1138
|
+
m,
|
|
1139
|
+
h
|
|
1140
|
+
]
|
|
1141
|
+
}) }) }), r[15] = c, r[16] = o, r[17] = n, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
|
|
1142
|
+
});
|
|
1143
|
+
dn.displayName = Ae.displayName;
|
|
1144
|
+
var fn = P.forwardRef((e, n) => {
|
|
1145
|
+
let r = (0, $.c)(9), i, a;
|
|
1146
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1147
|
+
let o;
|
|
1148
|
+
r[3] === i ? o = r[4] : (o = t("px-2 py-1.5 text-sm font-semibold", i), r[3] = i, r[4] = o);
|
|
1149
|
+
let s;
|
|
1150
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(Ge, {
|
|
1151
|
+
ref: n,
|
|
1152
|
+
className: o,
|
|
1153
|
+
...a
|
|
1154
|
+
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1155
|
+
});
|
|
1156
|
+
fn.displayName = Ge.displayName;
|
|
1157
|
+
var pn = P.forwardRef((e, n) => {
|
|
1158
|
+
let r = (0, $.c)(17), i, a, o, s;
|
|
1159
|
+
r[0] === e ? (i = r[1], a = r[2], o = r[3], s = r[4]) : ({className: a, children: i, subtitle: s, ...o} = e, r[0] = e, r[1] = i, r[2] = a, r[3] = o, r[4] = s);
|
|
1160
|
+
let c;
|
|
1161
|
+
r[5] === a ? c = r[6] : (c = t("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-hidden data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground forced-colors:data-[highlighted]:bg-[Highlight] forced-colors:data-[highlighted]:text-[HighlightText]", qt, a), r[5] = a, r[6] = c);
|
|
1162
|
+
let l;
|
|
1163
|
+
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1164
|
+
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1165
|
+
children: /* @__PURE__ */ (0, F.jsx)($e, { children: /* @__PURE__ */ (0, F.jsx)(m, { className: "h-3 w-3" }) })
|
|
1166
|
+
}), r[7] = l) : l = r[7];
|
|
1167
|
+
let u = typeof i != "string" || void 0, d;
|
|
1168
|
+
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, F.jsx)(Ze, {
|
|
1169
|
+
asChild: u,
|
|
1170
|
+
className: "flex w-full flex-1",
|
|
1171
|
+
children: i
|
|
1172
|
+
}), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
|
|
1173
|
+
let f;
|
|
1174
|
+
return r[11] !== o || r[12] !== n || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, F.jsxs)(Ye, {
|
|
1175
|
+
ref: n,
|
|
1176
|
+
className: c,
|
|
1177
|
+
...o,
|
|
1178
|
+
children: [
|
|
1179
|
+
l,
|
|
1180
|
+
d,
|
|
1181
|
+
s
|
|
1182
|
+
]
|
|
1183
|
+
}), r[11] = o, r[12] = n, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
|
|
1184
|
+
});
|
|
1185
|
+
pn.displayName = Ye.displayName;
|
|
1186
|
+
var mn = P.forwardRef((e, n) => {
|
|
1187
|
+
let r = (0, $.c)(9), i, a;
|
|
1188
|
+
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1189
|
+
let o;
|
|
1190
|
+
r[3] === i ? o = r[4] : (o = t("-mx-1 my-1 h-px bg-muted", i), r[3] = i, r[4] = o);
|
|
1191
|
+
let s;
|
|
1192
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(at, {
|
|
1193
|
+
ref: n,
|
|
1194
|
+
className: o,
|
|
1195
|
+
...a
|
|
1196
|
+
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1197
|
+
});
|
|
1198
|
+
mn.displayName = at.displayName;
|
|
1199
|
+
//#endregion
|
|
1200
|
+
export { z as A, It as C, Ee as D, yt as E, M, Ce as O, Vt as S, Ct as T, Zt as _, fn as a, Kt as b, cn as c, tn as d, qt as f, Jt as g, Yt as h, pn as i, ie as j, H as k, rn as l, Gt as m, dn as n, mn as o, $t as p, on as r, ln as s, an as t, nn as u, Xt as v, Ft as w, Wt as x, Qt as y };
|