@marimo-team/islands 0.25.3-dev322 → 0.25.3-dev348
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-DkXBUBf3.js → ConnectedDataExplorerComponent-xliyyXNO.js} +16 -16
- package/dist/{ErrorBoundary-CYa6lyKz.js → ErrorBoundary-CIimOpqs.js} +7 -7
- package/dist/{abnfDiagram-VCTEODGH-BPS-pTU2.js → abnfDiagram-VCTEODGH-Dl9Nrtbf.js} +2 -2
- package/dist/{any-language-editor-DIS7IdV1.js → any-language-editor-CBHhdCC0.js} +2 -2
- package/dist/{architectureDiagram-5GKGNRK7-DB2MHOb7.js → architectureDiagram-5GKGNRK7-DTg032fQ.js} +1 -1
- package/dist/{assertNever-HbUt8DyH.js → assertNever-ie77PjMn.js} +13 -13
- package/dist/{chat-ui-85k50jaj.js → chat-ui-BV0qyfru.js} +51 -51
- package/dist/{check-CApDh1-n.js → check-DTIv5ZZ3.js} +1 -1
- package/dist/{chunk-IMKFNOWR-CjFCedjx.js → chunk-IMKFNOWR-CsFB-2LW.js} +1 -1
- package/dist/{chunk-SHT3W25Y-Dptltg0_.js → chunk-SHT3W25Y-ByuJHeBL.js} +1 -1
- package/dist/{chunk-SVP7TREG-2jBN760m.js → chunk-SVP7TREG-9oBZhbrr.js} +1 -1
- package/dist/{chunk-TICWLB2K-CS8BE-b9.js → chunk-TICWLB2K-Bx4m0cJ1.js} +1 -1
- package/dist/{classDiagram-ZZMXUADV-HtQWp-Cm.js → classDiagram-ZZMXUADV-Cms37-C9.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DA9LETN-.js → classDiagram-v2-VYDZK3BY-qAom4Bi7.js} +2 -2
- package/dist/{code-visibility-CGcIJMGj.js → code-visibility-_-8-dvb4.js} +20 -20
- package/dist/{common-B-Ng3J3K.js → common-CNXuhphD.js} +620 -620
- package/dist/{config-B171m9zn.js → config-CvBnR945.js} +3 -3
- package/dist/{copy-icon-k2_Fx5Qv.js → copy-icon-DmtNidSa.js} +2 -2
- package/dist/{createReducer-BPPI11pP.js → createReducer-BxBCTvKn.js} +5 -5
- package/dist/{cynefinDiagram-5FMLGOSQ-eyocrg_E.js → cynefinDiagram-5FMLGOSQ-BjJZwMEz.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-Dtm96Nvx.js → dagre-GXQ25YYZ-Bohu7_09.js} +1 -1
- package/dist/{data-grid-overlay-editor-CUD6F0Vj.js → data-grid-overlay-editor--4Gk_rwA.js} +1 -1
- package/dist/{diagram-S7CK7UJ4-C09TrdNO.js → diagram-S7CK7UJ4-Chl0n835.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-vHUsSML6.js → diagram-UQ7AKVKN-DHx8nzy7.js} +1 -1
- package/dist/{diagram-VX7I27RA-Ch4mRgz8.js → diagram-VX7I27RA-CKdpv1U4.js} +1 -1
- package/dist/{diagram-Z3DM3KII-DyFQNdAL.js → diagram-Z3DM3KII-sY-sI--2.js} +1 -1
- package/dist/{dialog-C2Muh059.js → dialog-Cqu5Hp5U.js} +21 -21
- package/dist/{dropdown-menu-BGbNnuFq.js → dropdown-menu-DXEYk99S.js} +707 -707
- package/dist/{ebnfDiagram-PWID7BFC-N3SvlrCs.js → ebnfDiagram-PWID7BFC-CD0P2xeH.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-RR2q2xtd.js → erDiagram-RLTQ6QDP-BaKQuYxC.js} +1 -1
- package/dist/{error-banner-3_4Lc93Y.js → error-banner-DUB_qUeL.js} +58 -58
- package/dist/{error-entries-BhNAZWU1.js → error-entries-CTb_cxXY.js} +310 -310
- package/dist/{feedback-button-DK6zUzAk.js → feedback-button-BaA4r2dl.js} +7 -7
- package/dist/{flowDiagram-HODETNUW-nxd7WhlW.js → flowDiagram-HODETNUW-BcCpHh7-.js} +2 -2
- package/dist/{formats-aUcw6MrS.js → formats-hF6fETr6.js} +1 -1
- package/dist/{glide-data-editor-O-94UN5R.js → glide-data-editor-CRn3KXyR.js} +3129 -3119
- package/dist/{glide-utils-D4UP8TGv.js → glide-utils-Bnd_k48H.js} +2 -2
- package/dist/{globals-BVjYePCn.js → globals-_FmD97Ui.js} +3 -3
- package/dist/{html-to-image-DOOtP-4-.js → html-to-image-Bbl0PeC7.js} +478 -478
- package/dist/{infoDiagram-27XIBGKW-CUYXQKGf.js → infoDiagram-27XIBGKW-DWltseIa.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-v6gsCrlK.js → ishikawaDiagram-5VMMS53U-DHgepBPo.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-z236-0Ok.js → kanban-definition-UXKFOSKX-B2_BIjBq.js} +1 -1
- package/dist/main.js +6712 -6590
- package/dist/{mermaid-C7lQ_2LJ.js → mermaid--2K0cmt9.js} +34 -34
- package/dist/{mindmap-definition-YA3MSWOX--pZF7OCY.js → mindmap-definition-YA3MSWOX-DNebycIP.js} +1 -1
- package/dist/{number-overlay-editor-jkzzCN4e.js → number-overlay-editor-Bcg25qrp.js} +1 -1
- package/dist/{pegDiagram-XKGWAZYB-Bgw0Zz_6.js → pegDiagram-XKGWAZYB-CH4U3II-.js} +2 -2
- package/dist/{pencil-RXFY-Ek8.js → pencil-MMnw1YQh.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-B27tDYvK.js → pieDiagram-E7YTZNPT-pfcrdUCa.js} +1 -1
- package/dist/{process-output-CiX_Dl4L.js → process-output-Dw_sI4Xp.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-CBjPhGpj.js → railroadDiagram-O6MQD6OU-BZKpAbNG.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DDDrLEw9.js → requirementDiagram-BXWQKSXE-DnyfIHe3.js} +1 -1
- package/dist/{reveal-component-CvPmNI5C.js → reveal-component-BVC491am.js} +18 -18
- package/dist/{select-Cv6lR39D.js → select-suaAxFuo.js} +286 -286
- package/dist/{sequenceDiagram-WJ2MYXX4-DQPaMygQ.js → sequenceDiagram-WJ2MYXX4-BeYuWX7N.js} +1 -1
- package/dist/{spec-BoCLWa-M.js → spec-BQNx2-D7.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BDoDVVnq.js → stateDiagram-D77RDMKH-B8FxwAM2.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-KNko46uJ.js → stateDiagram-v2-MP3YSRHH-CzWLBqm1.js} +2 -2
- package/dist/{static-state-DgdOadIH.js → static-state-Al_hmf1n.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-boFjOuiI.js → swimlanes-42K2YHIH-CzKmGMts.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BC4FLNwY.js → swimlanesDiagram-VR7AAH4N-DnWIUN_9.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-CLVPYA-v.js → timeline-definition-24CTP7MA-Czf2QN2R.js} +1 -1
- package/dist/{toast-CUuX7uXg.js → toast-CsJa1nGj.js} +66 -66
- package/dist/{tooltip-DBv8QUvS.js → tooltip-BVbJPkcl.js} +49 -49
- package/dist/{use-restore-focus-BxJh5Zfa.js → use-restore-focus-tPmARo1Q.js} +1035 -1022
- package/dist/{useDateFormatter-2k4mHRBq.js → useDateFormatter-B4ygYuUU.js} +2 -2
- package/dist/{useDeepCompareMemoize-Cb2GRQIS.js → useDeepCompareMemoize-Bcu0DkCS.js} +1 -1
- package/dist/{useLifecycle-B2fV3c8N.js → useLifecycle-MTdtnR3-.js} +1 -1
- package/dist/{vega-component-do3stf0K.js → vega-component-BhBbP4S7.js} +6 -6
- package/dist/{vennDiagram-4TSXK5OY-BLq7sNjb.js → vennDiagram-4TSXK5OY-BrHqWB1U.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-oyJEWWtb.js → wardleyDiagram-VM6X3IG4-Cms1K_3v.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-DMjWgQPm.js → xychartDiagram-S5SC5T6Z-_kUiODzS.js} +1 -1
- package/package.json +1 -1
- package/src/__mocks__/requests.ts +0 -2
- package/src/components/chat/__tests__/notebook-context.test.ts +199 -0
- package/src/components/chat/chat-panel.tsx +33 -15
- package/src/components/chat/notebook-context.ts +80 -0
- package/src/components/editor/cell/StopButton.tsx +3 -3
- package/src/components/editor/cell/cell-context-menu.tsx +18 -2
- package/src/components/editor/cell/code/__tests__/language-toggle.test.tsx +38 -1
- package/src/components/editor/cell/code/cell-editor.tsx +2 -1
- package/src/components/editor/cell/code/language-toggle.tsx +6 -4
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +9 -6
- package/src/components/slides/slide-cell-view.tsx +2 -1
- package/src/components/ui/__tests__/fullscreen.test.tsx +56 -1
- package/src/components/ui/fullscreen.tsx +18 -2
- package/src/components/ui/slider.tsx +6 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/edit-app.tsx +5 -4
- package/src/core/executions/__tests__/input.test.ts +1 -1
- package/src/core/executions/__tests__/interrupt.test.ts +200 -0
- package/src/core/executions/__tests__/run.test.ts +3 -3
- package/src/core/executions/index.ts +1 -0
- package/src/core/executions/interrupt.ts +49 -0
- package/src/core/islands/bridge.ts +0 -2
- package/src/core/network/requests-network.ts +0 -15
- package/src/core/network/requests-static.ts +0 -2
- package/src/core/network/requests-toasting.tsx +0 -2
- package/src/core/network/types.ts +0 -3
- package/src/core/notebook/document/__tests__/model.test.ts +4 -4
- package/src/core/notebook/document/__tests__/test-host.test.ts +6 -6
- package/src/core/notebook/document/__tests__/test-host.ts +42 -46
- package/src/core/notebook/document/__tests__/test-notebook.ts +5 -4
- package/src/core/notebook/document/sync.ts +12 -5
- package/src/core/notebook/replica/__tests__/fixtures.ts +8 -0
- package/src/core/notebook/replica/backend.ts +1 -1
- package/src/core/saving/__tests__/document.test.tsx +1 -1
- package/src/core/transports/__tests__/static.test.ts +1 -1
- package/src/core/transports/__tests__/wasm.test.ts +1 -1
- package/src/core/transports/static.ts +8 -2
- package/src/core/transports/wasm.ts +2 -4
- package/src/core/wasm/__tests__/bridge.test.ts +170 -26
- package/src/core/wasm/bridge.ts +64 -19
- package/src/core/wasm/worker/types.ts +0 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +32 -21
- package/src/plugins/impl/SliderPlugin.tsx +35 -3
- package/src/plugins/impl/__test__/slider-labels.test.tsx +30 -0
- package/src/plugins/impl/__tests__/DataEditorPlugin.test.ts +103 -12
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +40 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +159 -4
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +30 -10
- package/src/plugins/impl/data-editor/glide-portal.tsx +5 -3
- package/src/plugins/layout/AccordionPlugin.tsx +2 -1
- package/src/plugins/layout/__tests__/AccordionPlugin.test.tsx +21 -0
|
@@ -2,89 +2,89 @@ import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
|
2
2
|
import { h as t, m as n, p as r, r as i, u as a } from "./button-qQhINE7z.js";
|
|
3
3
|
import { t as o } from "./react-Bgs_wQh3.js";
|
|
4
4
|
import { t as s } from "./compiler-runtime-C5KHtL5D.js";
|
|
5
|
-
import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-
|
|
6
|
-
import { t as m } from "./check-
|
|
7
|
-
import { a as h, s as g } from "./assertNever-
|
|
5
|
+
import { c, h as l, l as u, p as d, s as f, u as p } from "./tooltip-BVbJPkcl.js";
|
|
6
|
+
import { t as m } from "./check-DTIv5ZZ3.js";
|
|
7
|
+
import { a as h, s as g } from "./assertNever-ie77PjMn.js";
|
|
8
8
|
import { t as _ } from "./react-dom-DdqGVp5N.js";
|
|
9
9
|
import { t as v } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
-
import { $t as y,
|
|
11
|
-
var
|
|
10
|
+
import { $t as y, Qt as b, dn as x, fn as S, gn as C, hn as w, l as ee, ln as T, mn as E, nn as D, o as O, pn as k, rn as A, s as te, sn as ne, tn as re, un as j } from "./use-restore-focus-tPmARo1Q.js";
|
|
11
|
+
var M = l("chevron-down", [["path", {
|
|
12
12
|
d: "m6 9 6 6 6-6",
|
|
13
13
|
key: "qrunsl"
|
|
14
|
-
}]]),
|
|
14
|
+
}]]), ie = l("chevron-up", [["path", {
|
|
15
15
|
d: "m18 15-6-6-6 6",
|
|
16
16
|
key: "153udz"
|
|
17
|
-
}]]),
|
|
17
|
+
}]]), N = /* @__PURE__ */ e(_(), 1), P = /* @__PURE__ */ e(o(), 1), F = v(), I = Object.defineProperty, ae = (e, t) => I(e, "name", {
|
|
18
18
|
value: t,
|
|
19
19
|
configurable: !0
|
|
20
|
-
}),
|
|
20
|
+
}), L = {
|
|
21
21
|
LTR: "ltr",
|
|
22
22
|
RTL: "rtl"
|
|
23
|
-
},
|
|
24
|
-
function
|
|
25
|
-
let t =
|
|
26
|
-
return e || t ||
|
|
23
|
+
}, R = P.createContext(void 0);
|
|
24
|
+
function z(e) {
|
|
25
|
+
let t = P.useContext(R);
|
|
26
|
+
return e || t || L.LTR;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
ae(z, "useDirection");
|
|
29
29
|
//#endregion
|
|
30
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@_eb0a38c33d4564f6f3168e806730df70/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
31
|
-
var
|
|
31
|
+
var B = Object.defineProperty, V = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ ((e, t) => B(e, "name", {
|
|
32
32
|
value: t,
|
|
33
33
|
configurable: !0
|
|
34
34
|
}))(function(e, t) {
|
|
35
|
-
return /* @__PURE__ */ (0,
|
|
35
|
+
return /* @__PURE__ */ (0, F.jsx)(C.label, {
|
|
36
36
|
...e,
|
|
37
37
|
ref: t,
|
|
38
38
|
onMouseDown: (t) => {
|
|
39
39
|
t.target.closest("button, input, select, textarea") || (e.onMouseDown?.(t), !t.defaultPrevented && t.detail > 1 && t.preventDefault());
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
}, "Label")),
|
|
42
|
+
}, "Label")), oe = Object.defineProperty, se = (e, t) => oe(e, "name", {
|
|
43
43
|
value: t,
|
|
44
44
|
configurable: !0
|
|
45
45
|
});
|
|
46
|
-
function
|
|
46
|
+
function H(e, [t, n]) {
|
|
47
47
|
return Math.min(n, Math.max(t, e));
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
se(H, "clamp");
|
|
50
50
|
//#endregion
|
|
51
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@_e8fd14f43f640bf7754c8314026f8b0b/node_modules/@radix-ui/react-select/dist/index.mjs
|
|
52
|
-
var
|
|
52
|
+
var ce = Object.defineProperty, U = (e, t) => ce(e, "name", {
|
|
53
53
|
value: t,
|
|
54
54
|
configurable: !0
|
|
55
|
-
}),
|
|
55
|
+
}), le = {
|
|
56
56
|
ItemAligned: "item-aligned",
|
|
57
57
|
Popper: "popper"
|
|
58
|
-
},
|
|
58
|
+
}, ue = {
|
|
59
59
|
LTR: "ltr",
|
|
60
60
|
RTL: "rtl"
|
|
61
|
-
},
|
|
61
|
+
}, de = [
|
|
62
62
|
" ",
|
|
63
63
|
"Enter",
|
|
64
64
|
"ArrowUp",
|
|
65
65
|
"ArrowDown"
|
|
66
|
-
],
|
|
66
|
+
], fe = [" ", "Enter"], W = "Select", [G, pe, me] = h(W), [K, he] = w(W, [me, p]), ge = p(), [_e, q] = K(W), [ve, ye] = K(W);
|
|
67
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, y] =
|
|
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, y] = P.useState(null), [b, x] = P.useState(null), [C, w] = P.useState(!1), ee = z(l), [T, E] = S({
|
|
69
69
|
prop: r,
|
|
70
70
|
defaultProp: i ?? !1,
|
|
71
71
|
onChange: a,
|
|
72
|
-
caller:
|
|
73
|
-
}), [D, O] =
|
|
72
|
+
caller: W
|
|
73
|
+
}), [D, O] = S({
|
|
74
74
|
prop: o,
|
|
75
75
|
defaultProp: s,
|
|
76
76
|
onChange: c,
|
|
77
|
-
caller:
|
|
78
|
-
}), k =
|
|
79
|
-
|
|
77
|
+
caller: W
|
|
78
|
+
}), k = P.useRef(null), A = P.useRef(!1), [te, ne] = P.useState(null), re = /* @__PURE__ */ U((e) => {
|
|
79
|
+
ne({
|
|
80
80
|
value: e,
|
|
81
81
|
hasConsumerStoppedPropagation: A.current
|
|
82
82
|
}), O(e);
|
|
83
|
-
}, "handleUserSelect"),
|
|
84
|
-
|
|
83
|
+
}, "handleUserSelect"), M = P.useRef(D);
|
|
84
|
+
P.useEffect(() => {
|
|
85
85
|
let e = h ? v?.ownerDocument.getElementById(h) : v?.form;
|
|
86
86
|
if (e instanceof HTMLFormElement) {
|
|
87
|
-
let t = /* @__PURE__ */
|
|
87
|
+
let t = /* @__PURE__ */ U(() => O(M.current), "reset");
|
|
88
88
|
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
89
89
|
}
|
|
90
90
|
}, [
|
|
@@ -92,78 +92,78 @@ function be(e) {
|
|
|
92
92
|
v,
|
|
93
93
|
O
|
|
94
94
|
]);
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
}, []),
|
|
98
|
-
|
|
95
|
+
let ie = !v || !!h || !!v.closest("form"), [N, I] = P.useState(/* @__PURE__ */ new Set()), ae = j(), 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
99
|
let n = new Set(t);
|
|
100
100
|
return n.delete(e), n;
|
|
101
101
|
});
|
|
102
|
-
}, []),
|
|
102
|
+
}, []), V = {
|
|
103
103
|
required: m,
|
|
104
104
|
trigger: v,
|
|
105
105
|
onTriggerChange: y,
|
|
106
106
|
valueNode: b,
|
|
107
107
|
onValueNodeChange: x,
|
|
108
|
-
valueNodeHasChildren:
|
|
109
|
-
onValueNodeHasChildrenChange:
|
|
110
|
-
contentId:
|
|
108
|
+
valueNodeHasChildren: C,
|
|
109
|
+
onValueNodeHasChildrenChange: w,
|
|
110
|
+
contentId: ae,
|
|
111
111
|
value: D,
|
|
112
112
|
onValueChange: O,
|
|
113
113
|
hasConsumerStoppedPropagationRef: A,
|
|
114
114
|
userSelection: te,
|
|
115
|
-
onUserSelect:
|
|
115
|
+
onUserSelect: re,
|
|
116
116
|
open: T,
|
|
117
117
|
onOpenChange: E,
|
|
118
|
-
dir:
|
|
118
|
+
dir: ee,
|
|
119
119
|
triggerPointerDownPosRef: k,
|
|
120
120
|
disabled: p,
|
|
121
121
|
name: u,
|
|
122
122
|
autoComplete: d,
|
|
123
123
|
form: h,
|
|
124
|
-
nativeOptions:
|
|
125
|
-
nativeSelectKey:
|
|
126
|
-
isFormControl:
|
|
124
|
+
nativeOptions: N,
|
|
125
|
+
nativeSelectKey: L,
|
|
126
|
+
isFormControl: ie
|
|
127
127
|
};
|
|
128
|
-
return /* @__PURE__ */ (0,
|
|
128
|
+
return /* @__PURE__ */ (0, F.jsx)(f, {
|
|
129
129
|
..._,
|
|
130
|
-
children: /* @__PURE__ */ (0,
|
|
130
|
+
children: /* @__PURE__ */ (0, F.jsx)(_e, {
|
|
131
131
|
scope: t,
|
|
132
|
-
...
|
|
133
|
-
children: /* @__PURE__ */ (0,
|
|
132
|
+
...V,
|
|
133
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.Provider, {
|
|
134
134
|
scope: t,
|
|
135
|
-
children: /* @__PURE__ */ (0,
|
|
135
|
+
children: /* @__PURE__ */ (0, F.jsx)(ve, {
|
|
136
136
|
scope: t,
|
|
137
|
-
onNativeOptionAdd:
|
|
138
|
-
onNativeOptionRemove:
|
|
139
|
-
children: ct(g) ? g(
|
|
137
|
+
onNativeOptionAdd: R,
|
|
138
|
+
onNativeOptionRemove: B,
|
|
139
|
+
children: ct(g) ? g(V) : n
|
|
140
140
|
})
|
|
141
141
|
})
|
|
142
142
|
})
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
var xe = /* @__PURE__ */
|
|
145
|
+
U(be, "SelectProvider");
|
|
146
|
+
var xe = /* @__PURE__ */ U((e) => {
|
|
147
147
|
let { __scopeSelect: t, children: n, ...r } = e;
|
|
148
|
-
return /* @__PURE__ */ (0,
|
|
148
|
+
return /* @__PURE__ */ (0, F.jsx)(be, {
|
|
149
149
|
__scopeSelect: t,
|
|
150
150
|
...r,
|
|
151
|
-
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ (0,
|
|
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
152
|
});
|
|
153
|
-
}, "Select"), Se = "SelectTrigger", Ce = /* @__PURE__ */
|
|
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 =
|
|
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
155
|
let t = d().filter((e) => !e.disabled), n = ut(t, e, t.find((e) => e.value === s.value));
|
|
156
156
|
n !== void 0 && s.onUserSelect(n.value);
|
|
157
|
-
}), g = /* @__PURE__ */
|
|
157
|
+
}), g = /* @__PURE__ */ U((e) => {
|
|
158
158
|
l || (s.onOpenChange(!0), h()), e && (s.triggerPointerDownPosRef.current = {
|
|
159
159
|
x: Math.round(e.pageX),
|
|
160
160
|
y: Math.round(e.pageY)
|
|
161
161
|
});
|
|
162
162
|
}, "handleOpen");
|
|
163
|
-
return /* @__PURE__ */ (0,
|
|
163
|
+
return /* @__PURE__ */ (0, F.jsx)(c, {
|
|
164
164
|
asChild: !0,
|
|
165
165
|
...o,
|
|
166
|
-
children: /* @__PURE__ */ (0,
|
|
166
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.button, {
|
|
167
167
|
type: "button",
|
|
168
168
|
role: "combobox",
|
|
169
169
|
"aria-controls": s.open ? s.contentId : void 0,
|
|
@@ -177,108 +177,108 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
177
177
|
"data-placeholder": Z(s.value) ? "" : void 0,
|
|
178
178
|
...a,
|
|
179
179
|
ref: u,
|
|
180
|
-
onClick:
|
|
180
|
+
onClick: k(a.onClick, (e) => {
|
|
181
181
|
e.currentTarget.focus(), f.current !== "mouse" && g(e);
|
|
182
182
|
}),
|
|
183
|
-
onPointerDown:
|
|
183
|
+
onPointerDown: k(a.onPointerDown, (e) => {
|
|
184
184
|
f.current = e.pointerType;
|
|
185
185
|
let t = e.target;
|
|
186
186
|
t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), e.button === 0 && e.ctrlKey === !1 && e.pointerType === "mouse" && (g(e), e.preventDefault());
|
|
187
187
|
}),
|
|
188
|
-
onKeyDown:
|
|
188
|
+
onKeyDown: k(a.onKeyDown, (e) => {
|
|
189
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 === " ") &&
|
|
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
191
|
})
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
|
-
}, "SelectTrigger")), we = "SelectValue", Te = /* @__PURE__ */
|
|
194
|
+
}, "SelectTrigger")), we = "SelectValue", Te = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
195
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
|
-
|
|
196
|
+
E(() => {
|
|
197
197
|
u(d);
|
|
198
198
|
}, [u, d]);
|
|
199
199
|
let p = Z(l.value);
|
|
200
|
-
return /* @__PURE__ */ (0,
|
|
200
|
+
return /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
201
201
|
...c,
|
|
202
202
|
asChild: !p && c.asChild,
|
|
203
203
|
ref: f,
|
|
204
204
|
style: { pointerEvents: "none" },
|
|
205
|
-
children: /* @__PURE__ */ (0,
|
|
205
|
+
children: /* @__PURE__ */ (0, F.jsx)(P.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
|
|
206
206
|
});
|
|
207
|
-
}, "SelectValue")), Ee = /* @__PURE__ */
|
|
207
|
+
}, "SelectValue")), Ee = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
208
208
|
let { __scopeSelect: n, children: r, ...i } = e;
|
|
209
|
-
return /* @__PURE__ */ (0,
|
|
209
|
+
return /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
210
210
|
"aria-hidden": !0,
|
|
211
211
|
...i,
|
|
212
212
|
ref: t,
|
|
213
213
|
children: r || "▼"
|
|
214
214
|
});
|
|
215
|
-
}, "SelectIcon")), [De, Oe] = K("SelectPortal", { forceMount: void 0 }), ke = /* @__PURE__ */
|
|
215
|
+
}, "SelectIcon")), [De, Oe] = K("SelectPortal", { forceMount: void 0 }), ke = /* @__PURE__ */ U((e) => {
|
|
216
216
|
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
217
|
-
return /* @__PURE__ */ (0,
|
|
217
|
+
return /* @__PURE__ */ (0, F.jsx)(De, {
|
|
218
218
|
scope: e.__scopeSelect,
|
|
219
219
|
forceMount: n,
|
|
220
|
-
children: /* @__PURE__ */ (0,
|
|
220
|
+
children: /* @__PURE__ */ (0, F.jsx)(D, {
|
|
221
221
|
asChild: !0,
|
|
222
222
|
...r
|
|
223
223
|
})
|
|
224
224
|
});
|
|
225
|
-
}, "SelectPortal"), J = "SelectContent", Ae = /* @__PURE__ */
|
|
226
|
-
let n = Oe(J, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = q(J, e.__scopeSelect), [o, s] =
|
|
227
|
-
return
|
|
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
228
|
s(new DocumentFragment());
|
|
229
|
-
}, []), /* @__PURE__ */ (0,
|
|
229
|
+
}, []), /* @__PURE__ */ (0, F.jsx)(x, {
|
|
230
230
|
present: r || a.open,
|
|
231
|
-
children: ({ present: e }) => e ? /* @__PURE__ */ (0,
|
|
231
|
+
children: ({ present: e }) => e ? /* @__PURE__ */ (0, F.jsx)(Pe, {
|
|
232
232
|
...i,
|
|
233
233
|
ref: t
|
|
234
|
-
}) : /* @__PURE__ */ (0,
|
|
234
|
+
}) : /* @__PURE__ */ (0, F.jsx)(je, {
|
|
235
235
|
...i,
|
|
236
236
|
fragment: o
|
|
237
237
|
})
|
|
238
238
|
});
|
|
239
|
-
}, "SelectContent")), je = /* @__PURE__ */
|
|
239
|
+
}, "SelectContent")), je = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
240
240
|
let { __scopeSelect: n, children: r, fragment: i } = e;
|
|
241
|
-
return i ?
|
|
241
|
+
return i ? N.createPortal(/* @__PURE__ */ (0, F.jsx)(Me, {
|
|
242
242
|
scope: n,
|
|
243
|
-
children: /* @__PURE__ */ (0,
|
|
243
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.Slot, {
|
|
244
244
|
scope: n,
|
|
245
|
-
children: /* @__PURE__ */ (0,
|
|
245
|
+
children: /* @__PURE__ */ (0, F.jsx)("div", {
|
|
246
246
|
ref: t,
|
|
247
247
|
children: r
|
|
248
248
|
})
|
|
249
249
|
})
|
|
250
250
|
}), i) : null;
|
|
251
|
-
}, "SelectContentFragment")), Y = 10, [Me, X] = K(J), Ne = a("SelectContent.RemoveScroll"), Pe = /* @__PURE__ */
|
|
252
|
-
let { __scopeSelect: n } = e, { position: i =
|
|
253
|
-
|
|
254
|
-
if (
|
|
255
|
-
}, [
|
|
256
|
-
let
|
|
257
|
-
let [t, ...n] =
|
|
258
|
-
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t &&
|
|
259
|
-
}, [
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
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, x = q(J, n), [S, C] = P.useState(null), [w, ee] = P.useState(null), T = r(t, C), [E, D] = P.useState(null), [O, te] = 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 b(S);
|
|
255
|
+
}, [S]), re();
|
|
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([E, S]), [
|
|
260
|
+
L,
|
|
261
|
+
E,
|
|
262
|
+
S
|
|
263
263
|
]);
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}, [
|
|
267
|
-
let { onOpenChange:
|
|
268
|
-
|
|
269
|
-
if (
|
|
264
|
+
P.useEffect(() => {
|
|
265
|
+
M && R();
|
|
266
|
+
}, [M, R]);
|
|
267
|
+
let { onOpenChange: z, triggerPointerDownPosRef: B } = x;
|
|
268
|
+
P.useEffect(() => {
|
|
269
|
+
if (S) {
|
|
270
270
|
let e = {
|
|
271
271
|
x: 0,
|
|
272
272
|
y: 0
|
|
273
|
-
}, t = /* @__PURE__ */
|
|
273
|
+
}, t = /* @__PURE__ */ U((t) => {
|
|
274
274
|
e = {
|
|
275
|
-
x: Math.abs(Math.round(t.pageX) - (
|
|
276
|
-
y: Math.abs(Math.round(t.pageY) - (
|
|
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
277
|
};
|
|
278
|
-
}, "handlePointerMove"), n = /* @__PURE__ */
|
|
279
|
-
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(
|
|
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
280
|
}, "handlePointerUp");
|
|
281
|
-
return
|
|
281
|
+
return B.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
282
282
|
capture: !0,
|
|
283
283
|
once: !0
|
|
284
284
|
})), () => {
|
|
@@ -286,30 +286,30 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
}, [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
]),
|
|
293
|
-
let e = /* @__PURE__ */
|
|
289
|
+
S,
|
|
290
|
+
z,
|
|
291
|
+
B
|
|
292
|
+
]), P.useEffect(() => {
|
|
293
|
+
let e = /* @__PURE__ */ U(() => z(!1), "close");
|
|
294
294
|
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
295
295
|
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
296
296
|
};
|
|
297
|
-
}, [
|
|
298
|
-
let [
|
|
299
|
-
let t =
|
|
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
300
|
n && setTimeout(() => n.ref.current?.focus());
|
|
301
|
-
}),
|
|
302
|
-
let r = !
|
|
303
|
-
r && (
|
|
304
|
-
let i = !
|
|
305
|
-
|
|
306
|
-
}, [
|
|
301
|
+
}), se = P.useCallback((e, t, n) => {
|
|
302
|
+
let r = !I.current;
|
|
303
|
+
r && (I.current = !0);
|
|
304
|
+
let i = !N.current && !n;
|
|
305
|
+
x.value !== void 0 && x.value === t || i ? (D(e), i && (N.current = !0)) : r && D(e);
|
|
306
|
+
}, [x.value]), H = P.useCallback(() => S?.focus(), [S]), ce = P.useCallback((e, t, n) => {
|
|
307
307
|
if (!e) return;
|
|
308
|
-
let r = !
|
|
309
|
-
r && (
|
|
310
|
-
let i = !
|
|
311
|
-
(
|
|
312
|
-
}, [
|
|
308
|
+
let r = !ae.current;
|
|
309
|
+
r && (ae.current = !0);
|
|
310
|
+
let i = !N.current && !n;
|
|
311
|
+
(x.value !== void 0 && x.value === t || i || r) && te(e);
|
|
312
|
+
}, [x.value]), ue = i === le.Popper ? Ie : Fe, de = ue === Ie ? {
|
|
313
313
|
side: c,
|
|
314
314
|
sideOffset: l,
|
|
315
315
|
align: u,
|
|
@@ -321,69 +321,69 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
321
321
|
hideWhenDetached: g,
|
|
322
322
|
avoidCollisions: _
|
|
323
323
|
} : {};
|
|
324
|
-
return /* @__PURE__ */ (0,
|
|
324
|
+
return /* @__PURE__ */ (0, F.jsx)(Me, {
|
|
325
325
|
scope: n,
|
|
326
|
-
content:
|
|
327
|
-
viewport:
|
|
328
|
-
onViewportChange:
|
|
329
|
-
itemRefCallback:
|
|
330
|
-
selectedItem:
|
|
331
|
-
onItemLeave:
|
|
332
|
-
itemTextRefCallback:
|
|
333
|
-
focusSelectedItem:
|
|
334
|
-
selectedItemText:
|
|
326
|
+
content: S,
|
|
327
|
+
viewport: w,
|
|
328
|
+
onViewportChange: ee,
|
|
329
|
+
itemRefCallback: se,
|
|
330
|
+
selectedItem: E,
|
|
331
|
+
onItemLeave: H,
|
|
332
|
+
itemTextRefCallback: ce,
|
|
333
|
+
focusSelectedItem: R,
|
|
334
|
+
selectedItemText: O,
|
|
335
335
|
position: i,
|
|
336
|
-
isPositioned:
|
|
337
|
-
searchRef:
|
|
338
|
-
children: /* @__PURE__ */ (0,
|
|
336
|
+
isPositioned: M,
|
|
337
|
+
searchRef: V,
|
|
338
|
+
children: /* @__PURE__ */ (0, F.jsx)(y, {
|
|
339
339
|
as: Ne,
|
|
340
340
|
allowPinchZoom: !0,
|
|
341
|
-
children: /* @__PURE__ */ (0,
|
|
341
|
+
children: /* @__PURE__ */ (0, F.jsx)(A, {
|
|
342
342
|
asChild: !0,
|
|
343
|
-
trapped:
|
|
343
|
+
trapped: x.open,
|
|
344
344
|
onMountAutoFocus: (e) => {
|
|
345
345
|
e.preventDefault();
|
|
346
346
|
},
|
|
347
|
-
onUnmountAutoFocus:
|
|
348
|
-
|
|
347
|
+
onUnmountAutoFocus: k(a, (e) => {
|
|
348
|
+
x.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
349
349
|
}),
|
|
350
|
-
children: /* @__PURE__ */ (0,
|
|
350
|
+
children: /* @__PURE__ */ (0, F.jsx)(ne, {
|
|
351
351
|
asChild: !0,
|
|
352
352
|
disableOutsidePointerEvents: !0,
|
|
353
353
|
onEscapeKeyDown: o,
|
|
354
354
|
onPointerDownOutside: s,
|
|
355
355
|
onFocusOutside: (e) => e.preventDefault(),
|
|
356
|
-
onDismiss: () =>
|
|
357
|
-
children: /* @__PURE__ */ (0,
|
|
356
|
+
onDismiss: () => x.onOpenChange(!1),
|
|
357
|
+
children: /* @__PURE__ */ (0, F.jsx)(ue, {
|
|
358
358
|
role: "listbox",
|
|
359
|
-
id:
|
|
360
|
-
"data-state":
|
|
361
|
-
dir:
|
|
359
|
+
id: x.contentId,
|
|
360
|
+
"data-state": x.open ? "open" : "closed",
|
|
361
|
+
dir: x.dir,
|
|
362
362
|
onContextMenu: (e) => e.preventDefault(),
|
|
363
363
|
...v,
|
|
364
|
-
...
|
|
365
|
-
onPlaced: () =>
|
|
366
|
-
ref:
|
|
364
|
+
...de,
|
|
365
|
+
onPlaced: () => ie(!0),
|
|
366
|
+
ref: T,
|
|
367
367
|
style: {
|
|
368
368
|
display: "flex",
|
|
369
369
|
flexDirection: "column",
|
|
370
370
|
outline: "none",
|
|
371
371
|
...v.style
|
|
372
372
|
},
|
|
373
|
-
onKeyDown:
|
|
373
|
+
onKeyDown: k(v.onKeyDown, (e) => {
|
|
374
374
|
let t = e.ctrlKey || e.altKey || e.metaKey;
|
|
375
|
-
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 &&
|
|
375
|
+
if (e.key === "Tab" && e.preventDefault(), !t && e.key.length === 1 && oe(e.key), [
|
|
376
376
|
"ArrowUp",
|
|
377
377
|
"ArrowDown",
|
|
378
378
|
"Home",
|
|
379
379
|
"End"
|
|
380
380
|
].includes(e.key)) {
|
|
381
|
-
let t =
|
|
381
|
+
let t = j().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
382
382
|
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
383
383
|
let n = e.target, r = t.indexOf(n);
|
|
384
384
|
t = t.slice(r + 1);
|
|
385
385
|
}
|
|
386
|
-
setTimeout(() =>
|
|
386
|
+
setTimeout(() => L(t)), e.preventDefault();
|
|
387
387
|
}
|
|
388
388
|
})
|
|
389
389
|
})
|
|
@@ -391,15 +391,15 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
391
391
|
})
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
|
-
}, "SelectContentImpl")), Fe = /* @__PURE__ */
|
|
395
|
-
let { __scopeSelect: n, onPlaced: i, ...a } = e, o = q(J, n), s = X(J, n), [c, l] =
|
|
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
396
|
if (o.trigger && o.valueNode && c && u && g && _ && v) {
|
|
397
397
|
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), r = v.getBoundingClientRect();
|
|
398
|
-
if (o.dir !==
|
|
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 =
|
|
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
400
|
c.style.minWidth = s + "px", c.style.left = d + "px";
|
|
401
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 =
|
|
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
403
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
404
404
|
}
|
|
405
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), ee = parseInt(C.paddingBottom, 10), T = e.top + e.height / 2 - Y, E = s - T, D = _.offsetHeight / 2, O = _.offsetTop + D, k = f + h + O, A = x - k;
|
|
@@ -428,20 +428,20 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
428
428
|
o.dir,
|
|
429
429
|
i
|
|
430
430
|
]);
|
|
431
|
-
|
|
432
|
-
let [x, S] =
|
|
433
|
-
|
|
431
|
+
E(() => b(), [b]);
|
|
432
|
+
let [x, S] = P.useState();
|
|
433
|
+
E(() => {
|
|
434
434
|
u && S(window.getComputedStyle(u).zIndex);
|
|
435
435
|
}, [u]);
|
|
436
|
-
let
|
|
436
|
+
let w = P.useCallback((e) => {
|
|
437
437
|
e && h.current === !0 && (b(), y?.(), h.current = !1);
|
|
438
438
|
}, [b, y]);
|
|
439
|
-
return /* @__PURE__ */ (0,
|
|
439
|
+
return /* @__PURE__ */ (0, F.jsx)(Le, {
|
|
440
440
|
scope: n,
|
|
441
441
|
contentWrapper: c,
|
|
442
442
|
shouldExpandOnScrollRef: m,
|
|
443
|
-
onScrollButtonChange:
|
|
444
|
-
children: /* @__PURE__ */ (0,
|
|
443
|
+
onScrollButtonChange: w,
|
|
444
|
+
children: /* @__PURE__ */ (0, F.jsx)("div", {
|
|
445
445
|
ref: l,
|
|
446
446
|
style: {
|
|
447
447
|
display: "flex",
|
|
@@ -449,7 +449,7 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
449
449
|
position: "fixed",
|
|
450
450
|
zIndex: x
|
|
451
451
|
},
|
|
452
|
-
children: /* @__PURE__ */ (0,
|
|
452
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
453
453
|
...a,
|
|
454
454
|
ref: f,
|
|
455
455
|
style: {
|
|
@@ -460,9 +460,9 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
460
460
|
})
|
|
461
461
|
})
|
|
462
462
|
});
|
|
463
|
-
}, "SelectItemAlignedPosition")), Ie = /* @__PURE__ */
|
|
463
|
+
}, "SelectItemAlignedPosition")), Ie = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
464
464
|
let { __scopeSelect: n, align: r = "start", collisionPadding: i = Y, ...a } = e, o = ge(n);
|
|
465
|
-
return /* @__PURE__ */ (0,
|
|
465
|
+
return /* @__PURE__ */ (0, F.jsx)(u, {
|
|
466
466
|
...o,
|
|
467
467
|
...a,
|
|
468
468
|
ref: t,
|
|
@@ -478,14 +478,14 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
478
478
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
}, "SelectPopperPosition")), [Le, Re] = K(J, {}), ze = "SelectViewport", Be = /* @__PURE__ */
|
|
482
|
-
let { __scopeSelect: n, nonce: i, ...a } = e, o = X(ze, n), s = Re(ze, n), c = r(t, o.onViewportChange), l =
|
|
483
|
-
return /* @__PURE__ */ (0,
|
|
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
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
485
|
nonce: i
|
|
486
|
-
}), /* @__PURE__ */ (0,
|
|
486
|
+
}), /* @__PURE__ */ (0, F.jsx)(G.Slot, {
|
|
487
487
|
scope: n,
|
|
488
|
-
children: /* @__PURE__ */ (0,
|
|
488
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
489
489
|
"data-radix-select-viewport": "",
|
|
490
490
|
role: "presentation",
|
|
491
491
|
...a,
|
|
@@ -496,7 +496,7 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
496
496
|
overflow: "hidden auto",
|
|
497
497
|
...a.style
|
|
498
498
|
},
|
|
499
|
-
onScroll:
|
|
499
|
+
onScroll: k(a.onScroll, (e) => {
|
|
500
500
|
let t = e.currentTarget, { contentWrapper: n, shouldExpandOnScrollRef: r } = s;
|
|
501
501
|
if (r?.current && n) {
|
|
502
502
|
let e = Math.abs(l.current - t.scrollTop);
|
|
@@ -512,45 +512,45 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
512
512
|
})
|
|
513
513
|
})
|
|
514
514
|
})] });
|
|
515
|
-
}, "SelectViewport")), [Ve, He] = K("SelectGroup"), Ue = /* @__PURE__ */
|
|
516
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
517
|
-
return /* @__PURE__ */ (0,
|
|
515
|
+
}, "SelectViewport")), [Ve, He] = K("SelectGroup"), Ue = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
516
|
+
let { __scopeSelect: n, ...r } = e, i = j();
|
|
517
|
+
return /* @__PURE__ */ (0, F.jsx)(Ve, {
|
|
518
518
|
scope: n,
|
|
519
519
|
id: i,
|
|
520
|
-
children: /* @__PURE__ */ (0,
|
|
520
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
521
521
|
role: "group",
|
|
522
522
|
"aria-labelledby": i,
|
|
523
523
|
...r,
|
|
524
524
|
ref: t
|
|
525
525
|
})
|
|
526
526
|
});
|
|
527
|
-
}, "SelectGroup")), We = "SelectLabel", Ge = /* @__PURE__ */
|
|
527
|
+
}, "SelectGroup")), We = "SelectLabel", Ge = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
528
528
|
let { __scopeSelect: n, ...r } = e, i = He(We, n);
|
|
529
|
-
return /* @__PURE__ */ (0,
|
|
529
|
+
return /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
530
530
|
id: i.id,
|
|
531
531
|
...r,
|
|
532
532
|
ref: t
|
|
533
533
|
});
|
|
534
|
-
}, "SelectLabel")), Ke = "SelectItem", [qe, Je] = K(Ke), Ye = /* @__PURE__ */
|
|
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] =
|
|
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 = T((e) => l.itemRefCallback?.(e, i, a)), g = r(t, h), _ = j(), v = P.useRef("touch");
|
|
536
536
|
function y(e) {
|
|
537
537
|
c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(i), c.onOpenChange(!1);
|
|
538
538
|
}
|
|
539
|
-
return
|
|
539
|
+
return U(y, "handleSelect"), /* @__PURE__ */ (0, F.jsx)(qe, {
|
|
540
540
|
scope: n,
|
|
541
541
|
value: i,
|
|
542
542
|
disabled: a,
|
|
543
543
|
textId: _,
|
|
544
544
|
isSelected: u,
|
|
545
|
-
onItemTextChange:
|
|
545
|
+
onItemTextChange: P.useCallback((e) => {
|
|
546
546
|
f((t) => t || (e?.textContent ?? "").trim());
|
|
547
547
|
}, []),
|
|
548
|
-
children: /* @__PURE__ */ (0,
|
|
548
|
+
children: /* @__PURE__ */ (0, F.jsx)(G.ItemSlot, {
|
|
549
549
|
scope: n,
|
|
550
550
|
value: i,
|
|
551
551
|
disabled: a,
|
|
552
552
|
textValue: d,
|
|
553
|
-
children: /* @__PURE__ */ (0,
|
|
553
|
+
children: /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
554
554
|
role: "option",
|
|
555
555
|
"aria-labelledby": _,
|
|
556
556
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -561,31 +561,31 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
561
561
|
tabIndex: a ? void 0 : -1,
|
|
562
562
|
...s,
|
|
563
563
|
ref: g,
|
|
564
|
-
onFocus:
|
|
565
|
-
onBlur:
|
|
566
|
-
onClick:
|
|
564
|
+
onFocus: k(s.onFocus, () => m(!0)),
|
|
565
|
+
onBlur: k(s.onBlur, () => m(!1)),
|
|
566
|
+
onClick: k(s.onClick, (e) => {
|
|
567
567
|
a || v.current !== "mouse" && y(e);
|
|
568
568
|
}),
|
|
569
|
-
onPointerUp:
|
|
569
|
+
onPointerUp: k(s.onPointerUp, (e) => {
|
|
570
570
|
a || v.current === "mouse" && y(e);
|
|
571
571
|
}),
|
|
572
|
-
onPointerDown:
|
|
572
|
+
onPointerDown: k(s.onPointerDown, (e) => {
|
|
573
573
|
v.current = e.pointerType;
|
|
574
574
|
}),
|
|
575
|
-
onPointerMove:
|
|
575
|
+
onPointerMove: k(s.onPointerMove, (e) => {
|
|
576
576
|
v.current = e.pointerType, a ? l.onItemLeave?.() : v.current === "mouse" && e.currentTarget.focus({ preventScroll: !0 });
|
|
577
577
|
}),
|
|
578
|
-
onPointerLeave:
|
|
578
|
+
onPointerLeave: k(s.onPointerLeave, (e) => {
|
|
579
579
|
e.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
580
580
|
}),
|
|
581
|
-
onKeyDown:
|
|
582
|
-
a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (
|
|
581
|
+
onKeyDown: k(s.onKeyDown, (e) => {
|
|
582
|
+
a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (fe.includes(e.key) && y(e), e.key === " " && e.preventDefault());
|
|
583
583
|
})
|
|
584
584
|
})
|
|
585
585
|
})
|
|
586
586
|
});
|
|
587
|
-
}, "SelectItem")), Xe = "SelectItemText", Ze = /* @__PURE__ */
|
|
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] =
|
|
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 = T((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
589
|
value: l.value,
|
|
590
590
|
disabled: l.disabled,
|
|
591
591
|
children: h
|
|
@@ -594,35 +594,35 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
594
594
|
l.value,
|
|
595
595
|
h
|
|
596
596
|
]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
|
|
597
|
-
return
|
|
597
|
+
return E(() => (_(g), () => v(g)), [
|
|
598
598
|
_,
|
|
599
599
|
v,
|
|
600
600
|
g
|
|
601
|
-
]), /* @__PURE__ */ (0,
|
|
601
|
+
]), /* @__PURE__ */ (0, F.jsxs)(F.Fragment, { children: [/* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
602
602
|
id: l.textId,
|
|
603
603
|
...o,
|
|
604
604
|
ref: m
|
|
605
|
-
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Z(s.value) ?
|
|
606
|
-
}, "SelectItemText")), Qe = "SelectItemIndicator", $e = /* @__PURE__ */
|
|
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
607
|
let { __scopeSelect: n, ...r } = e;
|
|
608
|
-
return Je(Qe, n).isSelected ? /* @__PURE__ */ (0,
|
|
608
|
+
return Je(Qe, n).isSelected ? /* @__PURE__ */ (0, F.jsx)(C.span, {
|
|
609
609
|
"aria-hidden": !0,
|
|
610
610
|
...r,
|
|
611
611
|
ref: t
|
|
612
612
|
}) : null;
|
|
613
|
-
}, "SelectItemIndicator")), et = "SelectScrollUpButton", tt = /* @__PURE__ */
|
|
614
|
-
let n = X(et, e.__scopeSelect), i = Re(et, e.__scopeSelect), [a, o] =
|
|
615
|
-
return
|
|
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
616
|
if (n.viewport && n.isPositioned) {
|
|
617
617
|
let e = function() {
|
|
618
618
|
let e = t.scrollTop > 0;
|
|
619
619
|
o(e);
|
|
620
620
|
};
|
|
621
|
-
|
|
621
|
+
U(e, "handleScroll");
|
|
622
622
|
let t = n.viewport;
|
|
623
623
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
624
624
|
}
|
|
625
|
-
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0,
|
|
625
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, F.jsx)(it, {
|
|
626
626
|
...e,
|
|
627
627
|
ref: s,
|
|
628
628
|
onAutoScroll: () => {
|
|
@@ -630,19 +630,19 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
630
630
|
e && t && (e.scrollTop -= t.offsetHeight);
|
|
631
631
|
}
|
|
632
632
|
}) : null;
|
|
633
|
-
}, "SelectScrollUpButton")), nt = "SelectScrollDownButton", rt = /* @__PURE__ */
|
|
634
|
-
let n = X(nt, e.__scopeSelect), i = Re(nt, e.__scopeSelect), [a, o] =
|
|
635
|
-
return
|
|
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
636
|
if (n.viewport && n.isPositioned) {
|
|
637
637
|
let e = function() {
|
|
638
638
|
let e = t.scrollHeight - t.clientHeight, n = Math.ceil(t.scrollTop) < e;
|
|
639
639
|
o(n);
|
|
640
640
|
};
|
|
641
|
-
|
|
641
|
+
U(e, "handleScroll");
|
|
642
642
|
let t = n.viewport;
|
|
643
643
|
return e(), t.addEventListener("scroll", e), () => t.removeEventListener("scroll", e);
|
|
644
644
|
}
|
|
645
|
-
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0,
|
|
645
|
+
}, [n.viewport, n.isPositioned]), a ? /* @__PURE__ */ (0, F.jsx)(it, {
|
|
646
646
|
...e,
|
|
647
647
|
ref: s,
|
|
648
648
|
onAutoScroll: () => {
|
|
@@ -650,13 +650,13 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
650
650
|
e && t && (e.scrollTop += t.offsetHeight);
|
|
651
651
|
}
|
|
652
652
|
}) : null;
|
|
653
|
-
}, "SelectScrollDownButton")), it = /* @__PURE__ */
|
|
654
|
-
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = X("SelectScrollButton", n), o =
|
|
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
655
|
o.current !== null && (window.clearInterval(o.current), o.current = null);
|
|
656
656
|
}, []);
|
|
657
|
-
return
|
|
657
|
+
return P.useEffect(() => () => c(), [c]), E(() => {
|
|
658
658
|
s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
659
|
-
}, [s]), /* @__PURE__ */ (0,
|
|
659
|
+
}, [s]), /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
660
660
|
"aria-hidden": !0,
|
|
661
661
|
...i,
|
|
662
662
|
ref: t,
|
|
@@ -664,26 +664,26 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
664
664
|
flexShrink: 0,
|
|
665
665
|
...i.style
|
|
666
666
|
},
|
|
667
|
-
onPointerDown:
|
|
667
|
+
onPointerDown: k(i.onPointerDown, () => {
|
|
668
668
|
o.current === null && (o.current = window.setInterval(r, 50));
|
|
669
669
|
}),
|
|
670
|
-
onPointerMove:
|
|
670
|
+
onPointerMove: k(i.onPointerMove, () => {
|
|
671
671
|
a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
|
|
672
672
|
}),
|
|
673
|
-
onPointerLeave:
|
|
673
|
+
onPointerLeave: k(i.onPointerLeave, () => {
|
|
674
674
|
c();
|
|
675
675
|
})
|
|
676
676
|
});
|
|
677
|
-
}, "SelectScrollButtonImpl")), at = /* @__PURE__ */
|
|
677
|
+
}, "SelectScrollButtonImpl")), at = /* @__PURE__ */ P.forwardRef(/* @__PURE__ */ U(function(e, t) {
|
|
678
678
|
let { __scopeSelect: n, ...r } = e;
|
|
679
|
-
return /* @__PURE__ */ (0,
|
|
679
|
+
return /* @__PURE__ */ (0, F.jsx)(C.div, {
|
|
680
680
|
"aria-hidden": !0,
|
|
681
681
|
...r,
|
|
682
682
|
ref: t
|
|
683
683
|
});
|
|
684
|
-
}, "SelectSeparator")), ot = "SelectBubbleInput", st = /* @__PURE__ */
|
|
685
|
-
let i = q(ot, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = i, { nativeOptions: m, nativeSelectKey: h } = i, g =
|
|
686
|
-
return
|
|
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: l, autoComplete: u, 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
687
|
let e = g.current;
|
|
688
688
|
if (!e) return;
|
|
689
689
|
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== b.current;
|
|
@@ -705,7 +705,7 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
705
705
|
let t = new Event("change", { bubbles: o });
|
|
706
706
|
n.call(e, v), e.dispatchEvent(t);
|
|
707
707
|
}
|
|
708
|
-
}, [v, p]), /* @__PURE__ */ (0,
|
|
708
|
+
}, [v, p]), /* @__PURE__ */ (0, F.jsxs)(C.select, {
|
|
709
709
|
"aria-hidden": !0,
|
|
710
710
|
required: s,
|
|
711
711
|
tabIndex: -1,
|
|
@@ -723,58 +723,58 @@ var xe = /* @__PURE__ */ W((e) => {
|
|
|
723
723
|
},
|
|
724
724
|
ref: _,
|
|
725
725
|
defaultValue: v,
|
|
726
|
-
children: [Z(a) && !S ? /* @__PURE__ */ (0,
|
|
726
|
+
children: [Z(a) && !S ? /* @__PURE__ */ (0, F.jsx)("option", { value: "" }) : null, Array.from(m)]
|
|
727
727
|
}, h);
|
|
728
728
|
}, "SelectBubbleInput"));
|
|
729
729
|
function ct(e) {
|
|
730
730
|
return typeof e == "function";
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
U(ct, "isFunction");
|
|
733
733
|
function Z(e) {
|
|
734
734
|
return e === "" || e === void 0;
|
|
735
735
|
}
|
|
736
|
-
|
|
736
|
+
U(Z, "shouldShowPlaceholder");
|
|
737
737
|
function lt(e) {
|
|
738
|
-
let t =
|
|
738
|
+
let t = T(e), n = P.useRef(""), r = P.useRef(0), i = P.useCallback((e) => {
|
|
739
739
|
let i = n.current + e;
|
|
740
740
|
t(i);
|
|
741
741
|
function a(e) {
|
|
742
742
|
n.current = e, window.clearTimeout(r.current), e !== "" && (r.current = window.setTimeout(() => a(""), 1e3));
|
|
743
743
|
}
|
|
744
|
-
|
|
745
|
-
}, [t]), a =
|
|
744
|
+
U(a, "updateSearch"), a(i);
|
|
745
|
+
}, [t]), a = P.useCallback(() => {
|
|
746
746
|
n.current = "", window.clearTimeout(r.current);
|
|
747
747
|
}, []);
|
|
748
|
-
return
|
|
748
|
+
return P.useEffect(() => () => window.clearTimeout(r.current), []), [
|
|
749
749
|
n,
|
|
750
750
|
i,
|
|
751
751
|
a
|
|
752
752
|
];
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
U(lt, "useTypeaheadSearch");
|
|
755
755
|
function ut(e, t, n) {
|
|
756
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
757
|
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
758
758
|
let o = a.find((e) => e.textValue.toLowerCase().startsWith(r.toLowerCase()));
|
|
759
759
|
return o === n ? void 0 : o;
|
|
760
760
|
}
|
|
761
|
-
|
|
761
|
+
U(ut, "findNextItem");
|
|
762
762
|
function dt(e, t) {
|
|
763
763
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
764
764
|
}
|
|
765
|
-
|
|
765
|
+
U(dt, "wrapArray");
|
|
766
766
|
//#endregion
|
|
767
767
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/ssr/SSRProvider.mjs
|
|
768
768
|
var ft = {
|
|
769
769
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
770
770
|
current: 0
|
|
771
|
-
}, pt = /*#__PURE__*/
|
|
771
|
+
}, pt = /*#__PURE__*/ P.createContext(ft), mt = /*#__PURE__*/ P.createContext(!1);
|
|
772
772
|
typeof window < "u" && window.document && window.document.createElement;
|
|
773
773
|
var ht = /* @__PURE__ */ new WeakMap();
|
|
774
774
|
function gt(e = !1) {
|
|
775
|
-
let t = (0,
|
|
775
|
+
let t = (0, P.useContext)(pt), n = (0, P.useRef)(null);
|
|
776
776
|
if (n.current === null && !e) {
|
|
777
|
-
let e =
|
|
777
|
+
let e = P.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
778
778
|
if (e) {
|
|
779
779
|
let n = ht.get(e);
|
|
780
780
|
n == null ? ht.set(e, {
|
|
@@ -787,14 +787,14 @@ function gt(e = !1) {
|
|
|
787
787
|
return n.current;
|
|
788
788
|
}
|
|
789
789
|
function _t(e) {
|
|
790
|
-
let t = (0,
|
|
790
|
+
let t = (0, P.useContext)(pt), n = gt(!!e), r = `react-aria${t.prefix}`;
|
|
791
791
|
return e || `${r}-${n}`;
|
|
792
792
|
}
|
|
793
793
|
function vt(e) {
|
|
794
|
-
let t =
|
|
794
|
+
let t = P.useId(), [n] = (0, P.useState)(Ct()), r = n ? "react-aria" : `react-aria${ft.prefix}`;
|
|
795
795
|
return e || `${r}-${t}`;
|
|
796
796
|
}
|
|
797
|
-
var yt = typeof
|
|
797
|
+
var yt = typeof P.useId == "function" ? vt : _t;
|
|
798
798
|
function bt() {
|
|
799
799
|
return !1;
|
|
800
800
|
}
|
|
@@ -805,7 +805,7 @@ function St(e) {
|
|
|
805
805
|
return () => {};
|
|
806
806
|
}
|
|
807
807
|
function Ct() {
|
|
808
|
-
return typeof
|
|
808
|
+
return typeof P.useSyncExternalStore == "function" ? P.useSyncExternalStore(St, bt, xt) : (0, P.useContext)(mt);
|
|
809
809
|
}
|
|
810
810
|
//#endregion
|
|
811
811
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/i18n/utils.mjs
|
|
@@ -871,8 +871,8 @@ function At() {
|
|
|
871
871
|
for (let e of Q) e(kt);
|
|
872
872
|
}
|
|
873
873
|
function jt() {
|
|
874
|
-
let e = Ct(), [t, n] = (0,
|
|
875
|
-
return (0,
|
|
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
876
|
Q.delete(n), Q.size === 0 && window.removeEventListener("languagechange", At);
|
|
877
877
|
}), []), e ? {
|
|
878
878
|
locale: typeof window < "u" && window[Dt] || "en-US",
|
|
@@ -881,28 +881,28 @@ function jt() {
|
|
|
881
881
|
}
|
|
882
882
|
//#endregion
|
|
883
883
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/i18n/I18nProvider.mjs
|
|
884
|
-
var Mt = /*#__PURE__*/
|
|
884
|
+
var Mt = /*#__PURE__*/ P.createContext(null);
|
|
885
885
|
function Nt(e) {
|
|
886
|
-
let { locale: t, children: n } = e, r =
|
|
886
|
+
let { locale: t, children: n } = e, r = P.useMemo(() => ({
|
|
887
887
|
locale: t,
|
|
888
888
|
direction: Et(t) ? "rtl" : "ltr"
|
|
889
889
|
}), [t]);
|
|
890
|
-
return /*#__PURE__*/
|
|
890
|
+
return /*#__PURE__*/ P.createElement(Mt.Provider, { value: r }, n);
|
|
891
891
|
}
|
|
892
892
|
function Pt(e) {
|
|
893
893
|
let { children: t } = e, n = jt();
|
|
894
|
-
return /*#__PURE__*/
|
|
894
|
+
return /*#__PURE__*/ P.createElement(Mt.Provider, { value: n }, t);
|
|
895
895
|
}
|
|
896
896
|
function Ft(e) {
|
|
897
897
|
let { locale: t, children: n } = e;
|
|
898
|
-
return t ? /*#__PURE__*/
|
|
898
|
+
return t ? /*#__PURE__*/ P.createElement(Nt, {
|
|
899
899
|
locale: t,
|
|
900
900
|
children: n
|
|
901
|
-
}) : /*#__PURE__*/
|
|
901
|
+
}) : /*#__PURE__*/ P.createElement(Pt, { children: n });
|
|
902
902
|
}
|
|
903
903
|
function It() {
|
|
904
904
|
let e = jt();
|
|
905
|
-
return (0,
|
|
905
|
+
return (0, P.useContext)(Mt) || e;
|
|
906
906
|
}
|
|
907
907
|
//#endregion
|
|
908
908
|
//#region ../node_modules/.pnpm/@internationalized+number@3.6.8/node_modules/@internationalized/number/dist/private/NumberFormatter.mjs
|
|
@@ -1009,7 +1009,7 @@ function Ut(e, t, n) {
|
|
|
1009
1009
|
//#region ../node_modules/.pnpm/react-aria@3.52.1_react-dom@19.3.1_react@19.3.1__react@19.3.1/node_modules/react-aria/dist/private/i18n/useNumberFormatter.mjs
|
|
1010
1010
|
function Wt(e = {}) {
|
|
1011
1011
|
let { locale: t } = It();
|
|
1012
|
-
return (0,
|
|
1012
|
+
return (0, P.useMemo)(() => new Vt(t, e), [t, e]);
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
1015
|
//#region src/components/ui/menu-items.tsx
|
|
@@ -1031,7 +1031,7 @@ var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
|
|
|
1031
1031
|
let a;
|
|
1032
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
1033
|
let o;
|
|
1034
|
-
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0,
|
|
1034
|
+
return n[5] !== i || n[6] !== a ? (o = /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1035
1035
|
className: a,
|
|
1036
1036
|
...i
|
|
1037
1037
|
}), n[5] = i, n[6] = a, n[7] = o) : o = n[7], o;
|
|
@@ -1039,19 +1039,19 @@ var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
|
|
|
1039
1039
|
$t.displayName = "MenuShortcut";
|
|
1040
1040
|
//#endregion
|
|
1041
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 =
|
|
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
1043
|
let r = (0, $.c)(9), i, a;
|
|
1044
1044
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1045
1045
|
let o;
|
|
1046
1046
|
r[3] === i ? o = r[4] : (o = t(en(), i), r[3] = i, r[4] = o);
|
|
1047
1047
|
let s;
|
|
1048
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1048
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(V, {
|
|
1049
1049
|
ref: n,
|
|
1050
1050
|
className: o,
|
|
1051
1051
|
...a
|
|
1052
1052
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1053
1053
|
});
|
|
1054
|
-
tn.displayName =
|
|
1054
|
+
tn.displayName = V.displayName;
|
|
1055
1055
|
//#endregion
|
|
1056
1056
|
//#region src/components/ui/native-select.tsx
|
|
1057
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]", {
|
|
@@ -1060,7 +1060,7 @@ var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1060
1060
|
ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
|
|
1061
1061
|
} },
|
|
1062
1062
|
defaultVariants: { variant: "default" }
|
|
1063
|
-
}), rn =
|
|
1063
|
+
}), rn = P.forwardRef((e, r) => {
|
|
1064
1064
|
let i = (0, $.c)(12), a, o, s;
|
|
1065
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
1066
|
let c;
|
|
@@ -1068,7 +1068,7 @@ var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1068
1068
|
let l;
|
|
1069
1069
|
i[5] === o ? l = i[6] : (l = t(nn({}), o), i[5] = o, i[6] = l);
|
|
1070
1070
|
let u;
|
|
1071
|
-
return i[7] !== a || i[8] !== s || i[9] !== r || i[10] !== l ? (u = /* @__PURE__ */ (0,
|
|
1071
|
+
return i[7] !== a || i[8] !== s || i[9] !== r || i[10] !== l ? (u = /* @__PURE__ */ (0, F.jsx)("select", {
|
|
1072
1072
|
ref: r,
|
|
1073
1073
|
onClick: c,
|
|
1074
1074
|
className: l,
|
|
@@ -1079,25 +1079,25 @@ var nn = i("flex h-6 w-fit mb-1 items-center justify-between rounded-sm bg-backg
|
|
|
1079
1079
|
rn.displayName = "NativeSelect";
|
|
1080
1080
|
//#endregion
|
|
1081
1081
|
//#region src/components/ui/select.tsx
|
|
1082
|
-
var an = xe, on = Ue, sn =
|
|
1082
|
+
var an = xe, on = Ue, sn = O(ke), cn = Te, ln = P.forwardRef((e, n) => {
|
|
1083
1083
|
let r = (0, $.c)(21), i, a, o, s, c, l;
|
|
1084
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
1085
|
let u = c !== void 0 && c, d;
|
|
1086
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
1087
|
let f;
|
|
1088
|
-
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0,
|
|
1088
|
+
r[10] !== u || r[11] !== o ? (f = o ? /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1089
1089
|
onPointerDown: (e) => {
|
|
1090
1090
|
e.preventDefault(), e.stopPropagation(), o();
|
|
1091
1091
|
},
|
|
1092
|
-
children: /* @__PURE__ */ (0,
|
|
1093
|
-
}) : !u && /* @__PURE__ */ (0,
|
|
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
1094
|
let p;
|
|
1095
|
-
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0,
|
|
1095
|
+
r[13] === f ? p = r[14] : (p = /* @__PURE__ */ (0, F.jsx)(Ee, {
|
|
1096
1096
|
asChild: !0,
|
|
1097
1097
|
children: f
|
|
1098
1098
|
}), r[13] = f, r[14] = p);
|
|
1099
1099
|
let m;
|
|
1100
|
-
return r[15] !== i || r[16] !== s || r[17] !== n || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0,
|
|
1100
|
+
return r[15] !== i || r[16] !== s || r[17] !== n || r[18] !== d || r[19] !== p ? (m = /* @__PURE__ */ (0, F.jsxs)(Ce, {
|
|
1101
1101
|
ref: n,
|
|
1102
1102
|
className: d,
|
|
1103
1103
|
...s,
|
|
@@ -1105,30 +1105,30 @@ var an = xe, on = Ue, sn = S(ke), cn = Te, ln = F.forwardRef((e, n) => {
|
|
|
1105
1105
|
}), r[15] = i, r[16] = s, r[17] = n, r[18] = d, r[19] = p, r[20] = m) : m = r[20], m;
|
|
1106
1106
|
});
|
|
1107
1107
|
ln.displayName = Ce.displayName;
|
|
1108
|
-
var un =
|
|
1108
|
+
var un = te(Ae), dn = P.forwardRef((e, n) => {
|
|
1109
1109
|
let r = (0, $.c)(21), i, a, o, s;
|
|
1110
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
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
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
1113
|
let d;
|
|
1114
|
-
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0,
|
|
1114
|
+
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, F.jsx)(tt, {
|
|
1115
1115
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1116
|
-
children: /* @__PURE__ */ (0,
|
|
1116
|
+
children: /* @__PURE__ */ (0, F.jsx)(ie, { className: "h-4 w-4" })
|
|
1117
1117
|
}), r[8] = d) : d = r[8];
|
|
1118
1118
|
let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
|
|
1119
1119
|
r[9] === f ? p = r[10] : (p = t("p-1", f), r[9] = f, r[10] = p);
|
|
1120
1120
|
let m;
|
|
1121
|
-
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0,
|
|
1121
|
+
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, F.jsx)(Be, {
|
|
1122
1122
|
className: p,
|
|
1123
1123
|
children: i
|
|
1124
1124
|
}), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
|
|
1125
1125
|
let h;
|
|
1126
|
-
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0,
|
|
1126
|
+
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, F.jsx)(rt, {
|
|
1127
1127
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1128
|
-
children: /* @__PURE__ */ (0,
|
|
1128
|
+
children: /* @__PURE__ */ (0, F.jsx)(M, { className: "h-4 w-4 opacity-50" })
|
|
1129
1129
|
}), r[14] = h) : h = r[14];
|
|
1130
1130
|
let g;
|
|
1131
|
-
return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0,
|
|
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)(ee, { children: /* @__PURE__ */ (0, F.jsxs)(un, {
|
|
1132
1132
|
ref: n,
|
|
1133
1133
|
className: u,
|
|
1134
1134
|
position: c,
|
|
@@ -1141,37 +1141,37 @@ var un = A(Ae), dn = F.forwardRef((e, n) => {
|
|
|
1141
1141
|
}) }) }), r[15] = c, r[16] = o, r[17] = n, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
|
|
1142
1142
|
});
|
|
1143
1143
|
dn.displayName = Ae.displayName;
|
|
1144
|
-
var fn =
|
|
1144
|
+
var fn = P.forwardRef((e, n) => {
|
|
1145
1145
|
let r = (0, $.c)(9), i, a;
|
|
1146
1146
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1147
1147
|
let o;
|
|
1148
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
1149
|
let s;
|
|
1150
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1150
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(Ge, {
|
|
1151
1151
|
ref: n,
|
|
1152
1152
|
className: o,
|
|
1153
1153
|
...a
|
|
1154
1154
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1155
1155
|
});
|
|
1156
1156
|
fn.displayName = Ge.displayName;
|
|
1157
|
-
var pn =
|
|
1157
|
+
var pn = P.forwardRef((e, n) => {
|
|
1158
1158
|
let r = (0, $.c)(17), i, a, o, s;
|
|
1159
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
1160
|
let c;
|
|
1161
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
1162
|
let l;
|
|
1163
|
-
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0,
|
|
1163
|
+
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, F.jsx)("span", {
|
|
1164
1164
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1165
|
-
children: /* @__PURE__ */ (0,
|
|
1165
|
+
children: /* @__PURE__ */ (0, F.jsx)($e, { children: /* @__PURE__ */ (0, F.jsx)(m, { className: "h-3 w-3" }) })
|
|
1166
1166
|
}), r[7] = l) : l = r[7];
|
|
1167
1167
|
let u = typeof i != "string" || void 0, d;
|
|
1168
|
-
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0,
|
|
1168
|
+
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, F.jsx)(Ze, {
|
|
1169
1169
|
asChild: u,
|
|
1170
1170
|
className: "flex w-full flex-1",
|
|
1171
1171
|
children: i
|
|
1172
1172
|
}), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
|
|
1173
1173
|
let f;
|
|
1174
|
-
return r[11] !== o || r[12] !== n || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0,
|
|
1174
|
+
return r[11] !== o || r[12] !== n || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, F.jsxs)(Ye, {
|
|
1175
1175
|
ref: n,
|
|
1176
1176
|
className: c,
|
|
1177
1177
|
...o,
|
|
@@ -1183,13 +1183,13 @@ var pn = F.forwardRef((e, n) => {
|
|
|
1183
1183
|
}), r[11] = o, r[12] = n, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
|
|
1184
1184
|
});
|
|
1185
1185
|
pn.displayName = Ye.displayName;
|
|
1186
|
-
var mn =
|
|
1186
|
+
var mn = P.forwardRef((e, n) => {
|
|
1187
1187
|
let r = (0, $.c)(9), i, a;
|
|
1188
1188
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1189
1189
|
let o;
|
|
1190
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
1191
|
let s;
|
|
1192
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1192
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, F.jsx)(at, {
|
|
1193
1193
|
ref: n,
|
|
1194
1194
|
className: o,
|
|
1195
1195
|
...a
|
|
@@ -1197,4 +1197,4 @@ var mn = F.forwardRef((e, n) => {
|
|
|
1197
1197
|
});
|
|
1198
1198
|
mn.displayName = at.displayName;
|
|
1199
1199
|
//#endregion
|
|
1200
|
-
export {
|
|
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 };
|