@marimo-team/islands 0.26.1-dev1 → 0.26.1-dev101
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-DtwVgVpX.js → ConnectedDataExplorerComponent-BJBdnd0O.js} +23 -23
- package/dist/{ErrorBoundary-CnVR4XMW.js → ErrorBoundary-CykWjxjc.js} +7 -7
- package/dist/{Plot-BHJLG4xm.js → Plot-gpsi2L3q.js} +76911 -88182
- package/dist/{abnfDiagram-VCTEODGH-BbZOIueZ.js → abnfDiagram-VCTEODGH-Ba0MYVW8.js} +2 -2
- package/dist/{any-language-editor-yG-YmLaK.js → any-language-editor-BNe8do3C.js} +5 -5
- package/dist/{architectureDiagram-5GKGNRK7-qjLjxapm.js → architectureDiagram-5GKGNRK7-7MqAehef.js} +1 -1
- package/dist/{assertNever-DywGMo-S.js → assertNever-5vhHGKOK.js} +14 -14
- package/dist/{button-qQhINE7z.js → button-Z2R2272J.js} +34 -31
- package/dist/{capabilities-DKqMqBzm.js → capabilities-ba3Dyv8n.js} +1 -1
- package/dist/{chat-ui-D5YPIONI.js → chat-ui-BbJTFtyC.js} +586 -585
- package/dist/{check-jchHMCfs.js → check-DUIc04aK.js} +1 -1
- package/dist/{chunk-IMKFNOWR-BzDY1_I7.js → chunk-IMKFNOWR-CAWA0HGB.js} +1 -1
- package/dist/{chunk-SHT3W25Y-DbHsMKdo.js → chunk-SHT3W25Y-BIwVQjG5.js} +1 -1
- package/dist/{chunk-SVP7TREG-CtwnwAE6.js → chunk-SVP7TREG-Cux251TB.js} +1 -1
- package/dist/{chunk-TICWLB2K-C5Z5QMbO.js → chunk-TICWLB2K-DJVQ6khO.js} +1 -1
- package/dist/circle-question-mark-evCnVIut.js +19 -0
- package/dist/{classDiagram-ZZMXUADV-B8E5Hn78.js → classDiagram-ZZMXUADV-Cwve77ev.js} +2 -2
- package/dist/{classDiagram-v2-VYDZK3BY-DeGsK9bT.js → classDiagram-v2-VYDZK3BY-BAeHKXmD.js} +2 -2
- package/dist/{code-visibility-Cs-o5weM.js → code-visibility-0-chGN-9.js} +18 -18
- package/dist/{common-C92_m-1k.js → common-C_oC5BhT.js} +6124 -6068
- package/dist/{copy-icon-BI7vZHEW.js → copy-icon-CmNLxT5_.js} +3 -3
- package/dist/{createReducer-DdSLRfBT.js → createReducer-BUQhgLOI.js} +6 -6
- package/dist/{cynefinDiagram-5FMLGOSQ-NDedRwsw.js → cynefinDiagram-5FMLGOSQ-t4eEkPJh.js} +1 -1
- package/dist/{dagre-GXQ25YYZ-De0sSZO7.js → dagre-GXQ25YYZ-IuZuI28B.js} +1 -1
- package/dist/{data-grid-overlay-editor-D32Gn15n.js → data-grid-overlay-editor-PREeXtCk.js} +5 -5
- package/dist/{data-grid-types-DIX_pCco.js → data-grid-types-DBNnjiYJ.js} +2 -2
- package/dist/{diagram-S7CK7UJ4-wBtVl61y.js → diagram-S7CK7UJ4-D8R5Q_ok.js} +1 -1
- package/dist/{diagram-UQ7AKVKN-CKWE3c1T.js → diagram-UQ7AKVKN-BGuMPsr-.js} +1 -1
- package/dist/{diagram-VX7I27RA-D2Ac5198.js → diagram-VX7I27RA-BkTtpO8P.js} +1 -1
- package/dist/{diagram-Z3DM3KII-CYaFOQcI.js → diagram-Z3DM3KII-C0__Mxfm.js} +1 -1
- package/dist/{dialog-Ic6dh09m.js → dialog-BvjfalZ9.js} +28 -28
- package/dist/{dist-BvZpdAuG.js → dist-6B1_Ttbh.js} +1 -1
- package/dist/{dist-D1D56-GS.js → dist-B28poF32.js} +2 -2
- package/dist/{dist-BozTF_gH.js → dist-BBZ7lnMw.js} +2 -2
- package/dist/{dist-BfrgytDR.js → dist-BD8ZKF5t.js} +3 -3
- package/dist/{dist-DNkrY12t.js → dist-BG-7Qpaj.js} +3 -3
- package/dist/{dist-D92tYjLc.js → dist-BIaGGUbU.js} +13 -11
- package/dist/{dist-BagHbFqG.js → dist-BR5PU2Ph.js} +3 -3
- package/dist/{dist-DpYpG8Yc.js → dist-BidYR5m4.js} +3 -3
- package/dist/{dist-D95Cd4xm.js → dist-BkGYCvFX.js} +3 -3
- package/dist/{dist-DneeBk3K.js → dist-BmEyXT7K.js} +2 -2
- package/dist/{dist-BdUitvVW.js → dist-Bt0Wt6m9.js} +2 -2
- package/dist/{dist-CEomphG1.js → dist-CG2Sl0D4.js} +2 -2
- package/dist/{dist-BMz__bo5.js → dist-CQfpgadU.js} +3 -3
- package/dist/{dist-BreKIQqQ.js → dist-CVOPvfzN.js} +3 -3
- package/dist/{dist-BEcpQbZa.js → dist-Cm0iCeQQ.js} +3 -3
- package/dist/{dist-CDVvitRS.js → dist-Cnc14jEq.js} +2 -2
- package/dist/{dist-ChcBm3jk.js → dist-D3KPC38e.js} +4 -4
- package/dist/{dist-B1qu3Bez.js → dist-D7BXk27E.js} +3 -3
- package/dist/{dist-BsE4gQHj.js → dist-D9Qhvxvg.js} +1 -1
- package/dist/{dist-OmeAz0fR.js → dist-DJKajXDB.js} +3 -3
- package/dist/{dist-ObeTgSmf.js → dist-DYbNRTYG.js} +4 -4
- package/dist/{dist-Cshl6jBw.js → dist-DhtDWnzK.js} +2 -2
- package/dist/{dist-BunZKA_9.js → dist-_x2Jks2R.js} +2 -2
- package/dist/{dist-MggMo7OR.js → dist-m0MWV-aw.js} +1 -1
- package/dist/{dist-TGSwzj8a.js → dist-pPbYNVjd.js} +4 -4
- package/dist/{dropdown-menu-Dhv4fcNl.js → dropdown-menu-D0DeN-aL.js} +2108 -2108
- package/dist/{ebnfDiagram-PWID7BFC-Ds7f42dj.js → ebnfDiagram-PWID7BFC-CSESPZoz.js} +2 -2
- package/dist/{erDiagram-RLTQ6QDP-b58Sz2Mc.js → erDiagram-RLTQ6QDP-DsDTtabH.js} +1 -1
- package/dist/{error-banner-CJVLr5_a.js → error-banner-CXLjTW24.js} +75 -80
- package/dist/{error-entries-BKlEsuk4.js → error-entries-DhZotdzQ.js} +1033 -867
- package/dist/{esm-B9n0caHs.js → esm-DY8dGAjJ.js} +23 -23
- package/dist/{esm-Bwp_FHP0.js → esm-Dw2ZydG_.js} +3 -3
- package/dist/{config-qTaTHnpE.js → export-context-CkgZeARR.js} +79 -68
- package/dist/{feedback-button-HXizISwe.js → feedback-button-BR9wcyCI.js} +123 -123
- package/dist/{flowDiagram-HODETNUW-BH9U7VZK.js → flowDiagram-HODETNUW-qxDPYbfV.js} +2 -2
- package/dist/{formats-BLNFWWhV.js → formats-CcQrzFo8.js} +3 -3
- package/dist/{glide-data-editor-Cha2TqyF.js → glide-data-editor-C-8SS0aB.js} +90 -90
- package/dist/{glide-utils-Cn2_NadX.js → glide-utils-CD8BaFTm.js} +4 -4
- package/dist/{globals-C4qZtAQ0.js → globals-DdJFuSRA.js} +3 -3
- package/dist/{html-to-image-CNM0ZSFD.js → html-to-image-B8erjaaD.js} +24154 -24055
- package/dist/{infoDiagram-27XIBGKW-xbjwrcNi.js → infoDiagram-27XIBGKW-B5hq8RM_.js} +1 -1
- package/dist/{ishikawaDiagram-5VMMS53U-DKtukhGS.js → ishikawaDiagram-5VMMS53U-DkHc_9ET.js} +1 -1
- package/dist/{kanban-definition-UXKFOSKX-BEhlkZBb.js → kanban-definition-UXKFOSKX-CqkTFXmU.js} +1 -1
- package/dist/{loader-Bin_dutt.js → loader-CGrYn73j.js} +422 -374
- package/dist/main.js +9013 -8824
- package/dist/{mermaid-D1CZDNoB.js → mermaid-pmVHDUQA.js} +35 -35
- package/dist/{mindmap-definition-YA3MSWOX-DQcnJPcV.js → mindmap-definition-YA3MSWOX-D6cNa__z.js} +1 -1
- package/dist/{number-overlay-editor-BVmdbAY7.js → number-overlay-editor-CVKX9zwo.js} +3 -3
- package/dist/{pegDiagram-XKGWAZYB-BFQuPYfI.js → pegDiagram-XKGWAZYB-CmWJX_s1.js} +2 -2
- package/dist/{pencil-DVYzq-iR.js → pencil-CxMgOe04.js} +1 -1
- package/dist/{pieDiagram-E7YTZNPT-l7aqNrem.js → pieDiagram-E7YTZNPT-CAQAxHah.js} +1 -1
- package/dist/{process-output-DthYR2Te.js → process-output-C-2_O5Ry.js} +4 -4
- package/dist/{railroadDiagram-O6MQD6OU-6R3C1lwQ.js → railroadDiagram-O6MQD6OU-jlSsiQg3.js} +2 -2
- package/dist/{requirementDiagram-BXWQKSXE-DdWYu8fn.js → requirementDiagram-BXWQKSXE-DkDjfPhn.js} +1 -1
- package/dist/{reveal-component-B8gTDFli.js → reveal-component-CEMAeVrc.js} +1017 -1017
- package/dist/{select-CDUxhHZg.js → select-CEnB18uc.js} +364 -364
- package/dist/{sequenceDiagram-WJ2MYXX4-Dzp0dgRc.js → sequenceDiagram-WJ2MYXX4-DLywsGCW.js} +1 -1
- package/dist/{spec-ZAt4P01J.js → spec-Dz-Avv1m.js} +4 -4
- package/dist/{stateDiagram-D77RDMKH-BGnTUhFJ.js → stateDiagram-D77RDMKH-DUmlKwYU.js} +2 -2
- package/dist/{stateDiagram-v2-MP3YSRHH-DsJbmDf1.js → stateDiagram-v2-MP3YSRHH-D646KiXs.js} +2 -2
- package/dist/static-state-iw0PrHK4.js +57 -0
- package/dist/style.css +1 -1
- package/dist/{swimlanes-42K2YHIH-Bd4Bzh9r.js → swimlanes-42K2YHIH-L7B1GphF.js} +1 -1
- package/dist/{swimlanesDiagram-VR7AAH4N-BlY12Jf6.js → swimlanesDiagram-VR7AAH4N-DEu2wxtC.js} +2 -2
- package/dist/{swiper-component-DTdNB9wg.js → swiper-component-B2O8hF7b.js} +2 -2
- package/dist/{timeline-definition-24CTP7MA-m0LanyCH.js → timeline-definition-24CTP7MA-DDPyx1yG.js} +1 -1
- package/dist/toDate-BZg-byuO.js +13 -0
- package/dist/{toast-U3NpO2x3.js → toast-BTjH6fIf.js} +197 -197
- package/dist/{tooltip-UzJukb3F.js → tooltip-DyLdBIM4.js} +81 -81
- package/dist/{use-restore-focus-DaTVz6S6.js → use-restore-focus-DJ_-uSn_.js} +2006 -1997
- package/dist/{useDateFormatter-LQNtoXyh.js → useDateFormatter-HpKD0jEC.js} +2 -2
- package/dist/{useDeepCompareMemoize-CmNbQ9TT.js → useDeepCompareMemoize-CHx-NxMl.js} +1 -1
- package/dist/{useIframeCapabilities-HTZiVlGV.js → useIframeCapabilities-_0KX0nu_.js} +1 -1
- package/dist/{useLifecycle-DTMczKkf.js → useLifecycle-tPpAt-OE.js} +2 -2
- package/dist/{vega-component-ZTdbCcwI.js → vega-component-BzNDFvQf.js} +212 -208
- package/dist/{vennDiagram-4TSXK5OY-BJ7vqDmn.js → vennDiagram-4TSXK5OY-CRwWeb7g.js} +1 -1
- package/dist/{wardleyDiagram-VM6X3IG4-D5kWacsn.js → wardleyDiagram-VM6X3IG4-DVlG9eoq.js} +1 -1
- package/dist/{xychartDiagram-S5SC5T6Z-gr15Ws_z.js → xychartDiagram-S5SC5T6Z-CM32AISp.js} +1 -1
- package/package.json +4 -5
- package/src/__mocks__/animation-frames.ts +31 -0
- package/src/__mocks__/executions.ts +51 -23
- package/src/__mocks__/intersection-observer.ts +45 -0
- package/src/__mocks__/notebook.ts +1 -1
- package/src/__tests__/branded.ts +4 -0
- package/src/__tests__/notebook-analysis.ts +48 -0
- package/src/__tests__/render-tracker.ts +15 -0
- package/src/__tests__/setup.ts +3 -0
- package/src/components/app-config/__tests__/add-model-discovery.test.tsx +30 -0
- package/src/components/app-config/ai-config.tsx +5 -3
- package/src/components/app-config/user-config-form.tsx +1 -1
- package/src/components/data-table/__tests__/export-actions.test.tsx +79 -0
- package/src/components/data-table/export-actions.tsx +64 -19
- package/src/components/data-table/schemas.ts +1 -0
- package/src/components/databases/engine-variable.tsx +2 -2
- package/src/components/dependency-graph/panels.tsx +2 -2
- package/src/components/editor/__tests__/cell-renders.test.tsx +116 -0
- package/src/components/editor/actions/__tests__/name-cell-input.test.tsx +1 -1
- package/src/components/editor/actions/useCellActionButton.tsx +2 -8
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +28 -61
- package/src/components/editor/cell/CreateCellButton.tsx +69 -40
- package/src/components/editor/cell/__tests__/CreateCellButton.test.tsx +49 -0
- package/src/components/editor/cell/__tests__/cell-context-menu.test.tsx +126 -0
- package/src/components/editor/cell/__tests__/useRunCells.test.tsx +5 -5
- package/src/components/editor/cell/cell-context-menu.tsx +202 -111
- package/src/components/editor/cell/code/__tests__/code-placeholder.test.tsx +40 -0
- package/src/components/editor/cell/code/cell-editor.tsx +49 -108
- package/src/components/editor/cell/code/code-placeholder.css +61 -11
- package/src/components/editor/cell/code/code-placeholder.tsx +52 -27
- package/src/components/editor/cell/collapse.tsx +6 -3
- package/src/components/editor/cell/useSplitCell.tsx +2 -2
- package/src/components/editor/chrome/panels/__tests__/secrets-panel.test.tsx +57 -0
- package/src/components/editor/chrome/panels/secrets-panel.tsx +36 -9
- package/src/components/editor/chrome/panels/secrets-utils.ts +20 -0
- package/src/components/editor/chrome/wrapper/__tests__/document-sync-status.test.tsx +5 -2
- package/src/components/editor/chrome/wrapper/__tests__/pending-ai-cells.test.tsx +6 -10
- package/src/components/editor/errors/__tests__/send-error-report-button.test.tsx +240 -93
- package/src/components/editor/errors/auto-fix.tsx +8 -7
- package/src/components/editor/errors/send-error-report-button.tsx +139 -41
- package/src/components/editor/header/status.tsx +5 -2
- package/src/components/editor/navigation/__tests__/navigation.test.ts +3 -16
- package/src/components/editor/navigation/focus-utils.ts +20 -8
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +3 -11
- package/src/components/editor/navigation/navigation.ts +2 -2
- package/src/components/editor/notebook-cell.tsx +15 -24
- package/src/components/editor/output/MarimoTracebackOutput.tsx +2 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +77 -50
- package/src/components/editor/output/console/__tests__/ConsoleOutput.test.tsx +28 -0
- package/src/components/editor/renderers/cells-renderer.tsx +3 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +6 -9
- package/src/components/editor/renderers/vertical-layout/useFocusFirstEditor.ts +2 -5
- package/src/components/find-replace/find-replace.tsx +3 -7
- package/src/components/icons/__tests__/large-spinner.test.tsx +5 -4
- package/src/components/scratchpad/scratchpad.tsx +2 -2
- package/src/components/tracing/tracing-keyboard.test.tsx +4 -3
- package/src/components/ui/__tests__/button-shortcut.test.tsx +22 -0
- package/src/components/ui/__tests__/fullscreen.test.tsx +83 -1
- package/src/components/ui/button.tsx +5 -1
- package/src/components/ui/fullscreen.tsx +43 -89
- package/src/components/variables/__tests__/variables-table.test.tsx +1 -2
- package/src/core/MarimoApp.tsx +1 -1
- package/src/core/__tests__/MarimoApp.test.tsx +147 -0
- package/src/core/ai/__tests__/staged-cells.test.ts +6 -39
- package/src/core/ai/context/providers/__tests__/error.test.ts +6 -3
- package/src/core/ai/staged-cells.ts +8 -35
- package/src/core/ai/tools/__tests__/edit-notebook-tool.test.ts +15 -13
- package/src/core/ai/tools/edit-notebook-tool.ts +13 -8
- package/src/core/cells/__tests__/actions.test.ts +2 -2
- package/src/core/cells/__tests__/add-missing-import.test.ts +14 -9
- package/src/core/cells/__tests__/arrange.test.ts +1 -1
- package/src/core/cells/__tests__/cell-editor-view.test.ts +44 -0
- package/src/core/cells/__tests__/cells.test.ts +0 -1
- package/src/core/cells/__tests__/focus.test.ts +1 -7
- package/src/core/cells/__tests__/harness.ts +9 -8
- package/src/core/cells/__tests__/layout.test.ts +1 -1
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +121 -11
- package/src/core/cells/__tests__/runs.test.ts +14 -14
- package/src/core/cells/__tests__/utils.test.ts +3 -2
- package/src/core/cells/actions.ts +6 -6
- package/src/core/cells/add-missing-import.ts +2 -3
- package/src/core/cells/cells.ts +40 -27
- package/src/core/cells/document.ts +1 -2
- package/src/core/cells/execution-console.ts +10 -5
- package/src/core/cells/focus.ts +1 -1
- package/src/core/cells/ids.ts +2 -4
- package/src/core/cells/pending-delete-service.ts +97 -85
- package/src/core/cells/runs.ts +7 -5
- package/src/core/cells/scrollCellIntoView.ts +4 -14
- package/src/core/cells/session.ts +8 -5
- package/src/core/cells/utils.ts +0 -13
- package/src/core/codemirror/__tests__/cell-documents.test.ts +79 -0
- package/src/core/codemirror/__tests__/debounced-editor-update.test.ts +72 -0
- package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +75 -105
- package/src/core/codemirror/__tests__/format.test.ts +85 -63
- package/src/core/codemirror/__tests__/setup.test.ts +61 -1
- package/src/core/codemirror/__tests__/use-lazy-editor-mount.test.tsx +198 -0
- package/src/core/codemirror/cell-documents.ts +132 -0
- package/src/core/codemirror/cells/debugger-decorations.ts +22 -18
- package/src/core/codemirror/cells/line-timing-decorations.ts +13 -11
- package/src/core/codemirror/cells/traceback-decorations.ts +10 -11
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +7 -11
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +38 -12
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +7 -9
- package/src/core/codemirror/code-lens/extension.ts +21 -13
- package/src/core/codemirror/copilot/__tests__/getCodes.test.ts +9 -14
- package/src/core/codemirror/copilot/getCodes.ts +3 -14
- package/src/core/codemirror/debounced-editor-update.ts +41 -0
- package/src/core/codemirror/editor-mount-scheduler.ts +41 -48
- package/src/core/codemirror/extensions.ts +2 -2
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -16
- package/src/core/codemirror/find-replace/__tests__/search-highlight.test.ts +30 -0
- package/src/core/codemirror/find-replace/__tests__/unmounted-cells.test.ts +145 -0
- package/src/core/codemirror/find-replace/navigate.ts +88 -129
- package/src/core/codemirror/find-replace/search-highlight.ts +3 -1
- package/src/core/codemirror/find-replace/state.ts +7 -2
- package/src/core/codemirror/format.ts +25 -31
- package/src/core/codemirror/go-to-definition/__tests__/underline.test.ts +58 -0
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +24 -44
- package/src/core/codemirror/go-to-definition/extension.ts +9 -7
- package/src/core/codemirror/go-to-definition/underline.ts +39 -48
- package/src/core/codemirror/keymaps/__tests__/keymaps.test.ts +51 -2
- package/src/core/codemirror/keymaps/vim.ts +30 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +36 -0
- package/src/core/codemirror/language/cell-code.ts +7 -0
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +2 -18
- package/src/core/codemirror/language/languages/sql/sql.ts +3 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +25 -0
- package/src/core/codemirror/lsp/notebook-lsp.ts +6 -16
- package/src/core/codemirror/placeholder/extensions.ts +26 -24
- package/src/core/codemirror/reactive-references/__tests__/extension.test.ts +54 -0
- package/src/core/codemirror/reactive-references/extension.ts +30 -21
- package/src/core/codemirror/use-lazy-editor-mount.ts +70 -0
- package/src/core/codemirror/utils.ts +2 -6
- package/src/core/datasets/__tests__/data-source.test.ts +15 -17
- package/src/core/datasets/data-source-connections.ts +8 -11
- package/src/core/datasets/state.ts +7 -12
- package/src/core/dom/__tests__/uiregistry.test.ts +27 -0
- package/src/core/dom/uiregistry.ts +9 -7
- package/src/core/executions/__tests__/atoms.test.ts +211 -5
- package/src/core/executions/__tests__/freshness.test.ts +65 -56
- package/src/core/executions/__tests__/interrupt.test.ts +5 -3
- package/src/core/executions/__tests__/output-lifecycle.test.ts +95 -7
- package/src/core/executions/__tests__/output.test.ts +5 -3
- package/src/core/executions/__tests__/run.test.ts +4 -4
- package/src/core/executions/__tests__/select.test.ts +108 -69
- package/src/core/executions/atoms.ts +248 -83
- package/src/core/executions/freshness.ts +7 -7
- package/src/core/executions/hooks.ts +15 -59
- package/src/core/executions/index.ts +2 -0
- package/src/core/executions/output.ts +49 -35
- package/src/core/executions/select.ts +90 -37
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +1 -1
- package/src/core/islands/bootstrap.ts +7 -7
- package/src/core/islands/bridge.ts +1 -1
- package/src/core/meta/__tests__/code-visibility.test.tsx +3 -2
- package/src/core/notebook/document/__tests__/codemirror.test.ts +8 -6
- package/src/core/notebook/document/__tests__/draft.test.ts +56 -58
- package/src/core/notebook/document/__tests__/fixtures.ts +8 -7
- package/src/core/notebook/document/__tests__/hooks.test.tsx +39 -35
- package/src/core/notebook/document/__tests__/lifecycle-scenarios.test.ts +8 -5
- package/src/core/notebook/document/__tests__/model.test.ts +8 -5
- package/src/core/notebook/document/__tests__/protocol-fixtures.ts +2 -2
- package/src/core/notebook/document/__tests__/recovery-scenarios.test.ts +37 -32
- package/src/core/notebook/document/__tests__/scenarios.test.ts +49 -45
- package/src/core/notebook/document/__tests__/state.test.ts +59 -56
- package/src/core/notebook/document/__tests__/submission.test.ts +15 -12
- package/src/core/notebook/document/__tests__/test-host.ts +3 -2
- package/src/core/notebook/document/__tests__/user.ts +7 -3
- package/src/core/notebook/document/draft.ts +29 -11
- package/src/core/notebook/document/state.ts +7 -6
- package/src/core/notebook/replica/__tests__/document.test.ts +9 -5
- package/src/core/notebook/replica/__tests__/executions.test.ts +90 -25
- package/src/core/notebook/replica/__tests__/fixtures.ts +7 -2
- package/src/core/notebook/replica/__tests__/frame.test.ts +206 -0
- package/src/core/notebook/replica/__tests__/once-per-frame.test.ts +95 -0
- package/src/core/notebook/replica/__tests__/replica.test.ts +53 -9
- package/src/core/notebook/replica/__tests__/results.test.ts +27 -29
- package/src/core/notebook/replica/backend.ts +4 -1
- package/src/core/notebook/replica/execution-state.ts +2 -2
- package/src/core/notebook/replica/frame.ts +54 -0
- package/src/core/notebook/replica/index.ts +1 -0
- package/src/core/notebook/replica/once-per-frame.ts +60 -0
- package/src/core/notebook/replica/replica.ts +27 -6
- package/src/core/notebook/replica/resources/analysis.ts +1 -1
- package/src/core/notebook/replica/resources/document.ts +9 -8
- package/src/core/notebook/replica/resources/executions.ts +197 -78
- package/src/core/notebook/replica/resources/results.ts +8 -14
- package/src/core/saving/__tests__/document.test.tsx +1 -1
- package/src/core/saving/__tests__/state.test.ts +2 -2
- package/src/core/session/__tests__/useNotebookReplica.hook.test.tsx +55 -9
- package/src/core/session/__tests__/useNotebookSession.hook.test.tsx +230 -12
- package/src/core/session/active-notebook.ts +10 -1
- package/src/core/session/useNotebookReplica.ts +15 -2
- package/src/core/session/useNotebookSession.tsx +38 -46
- package/src/core/state/__tests__/atom-with-selected-inputs.test.ts +48 -0
- package/src/core/state/__tests__/create-keyed-selector-hook.test.tsx +137 -0
- package/src/core/state/atom-with-selected-inputs.ts +24 -0
- package/src/core/state/create-keyed-atom-hook.ts +18 -0
- package/src/core/state/create-keyed-selector-hook.ts +22 -0
- package/src/core/storage/__tests__/state.test.ts +6 -9
- package/src/core/storage/state.ts +5 -8
- package/src/core/transports/__tests__/static.test.ts +24 -20
- package/src/core/transports/static.ts +3 -2
- package/src/core/variables/state.ts +73 -68
- package/src/core/variables/types.ts +2 -2
- package/src/core/vscode/__tests__/is-in-vscode.test.ts +36 -0
- package/src/core/vscode/is-in-vscode.ts +2 -2
- package/src/core/wasm/__tests__/bridge.test.ts +73 -1
- package/src/core/wasm/bridge.ts +5 -4
- package/src/plugins/core/__test__/trusted-url.test.ts +53 -1
- package/src/plugins/core/trusted-url.ts +59 -1
- package/src/plugins/impl/TextInputPlugin.tsx +2 -1
- package/src/plugins/impl/__test__/text-labels.test.tsx +46 -1
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +11 -4
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +51 -1
- package/src/plugins/impl/plotly/__tests__/legacy-mapbox.test.ts +132 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +14 -35
- package/src/plugins/impl/plotly/legacy-mapbox.ts +130 -0
- package/src/plugins/impl/plotly/maplibre.css +216 -0
- package/src/plugins/impl/vega/__tests__/resolve-data.test.ts +147 -2
- package/src/plugins/impl/vega/loader.ts +49 -2
- package/src/plugins/impl/vega/vega-component.tsx +3 -0
- package/src/utils/__tests__/lazy.test.tsx +33 -0
- package/src/utils/__tests__/shared-intersection-observer.test.ts +49 -0
- package/src/utils/__tests__/shared-resource.test.ts +107 -0
- package/src/utils/arrays.ts +4 -1
- package/src/utils/lazy.tsx +74 -0
- package/src/utils/shared-intersection-observer.ts +53 -0
- package/src/utils/shared-resource.ts +59 -0
- package/dist/static-state-C4bAlKTU.js +0 -68
- package/src/core/variables/__tests__/state.test.ts +0 -148
- package/src/plugins/impl/plotly/mapbox.css +0 -359
- package/src/utils/lazy.ts +0 -35
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
import { a as e } from "./rolldown-runtime-BPCzCO3I.js";
|
|
2
|
-
import { h as t,
|
|
2
|
+
import { h as t, i as n, m as r, p as i, u as a } from "./button-Z2R2272J.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-DyLdBIM4.js";
|
|
6
|
+
import { t as m } from "./check-DUIc04aK.js";
|
|
7
|
+
import { a as h, s as g } from "./assertNever-5vhHGKOK.js";
|
|
8
8
|
import { t as _ } from "./react-dom-DdqGVp5N.js";
|
|
9
9
|
import { t as v } from "./jsx-runtime-D8btoEHk.js";
|
|
10
|
-
import {
|
|
11
|
-
var
|
|
10
|
+
import { Sn as y, _n as b, an as x, bn as S, cn as C, gn as w, hn as T, in as E, l as D, ln as O, o as k, pn as A, s as j, sn as ee, vn as te, xn as M, yn as N } from "./use-restore-focus-DJ_-uSn_.js";
|
|
11
|
+
var P = l("chevron-down", [["path", {
|
|
12
12
|
d: "m6 9 6 6 6-6",
|
|
13
13
|
key: "qrunsl"
|
|
14
|
-
}]]),
|
|
14
|
+
}]]), ne = l("chevron-up", [["path", {
|
|
15
15
|
d: "m18 15-6-6-6 6",
|
|
16
16
|
key: "153udz"
|
|
17
|
-
}]]),
|
|
17
|
+
}]]), F = /* @__PURE__ */ e(_(), 1), I = /* @__PURE__ */ e(o(), 1), L = v(), R = Object.defineProperty, re = (e, t) => R(e, "name", {
|
|
18
18
|
value: t,
|
|
19
19
|
configurable: !0
|
|
20
|
-
}),
|
|
20
|
+
}), z = {
|
|
21
21
|
LTR: "ltr",
|
|
22
22
|
RTL: "rtl"
|
|
23
|
-
},
|
|
24
|
-
function
|
|
25
|
-
let t =
|
|
26
|
-
return e || t ||
|
|
23
|
+
}, B = I.createContext(void 0);
|
|
24
|
+
function V(e) {
|
|
25
|
+
let t = I.useContext(B);
|
|
26
|
+
return e || t || z.LTR;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
re(V, "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 H = Object.defineProperty, U = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ ((e, t) => H(e, "name", {
|
|
32
32
|
value: t,
|
|
33
33
|
configurable: !0
|
|
34
34
|
}))(function(e, t) {
|
|
35
|
-
return /* @__PURE__ */ (0,
|
|
35
|
+
return /* @__PURE__ */ (0, L.jsx)(y.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")), ie = Object.defineProperty, ae = (e, t) => ie(e, "name", {
|
|
43
43
|
value: t,
|
|
44
44
|
configurable: !0
|
|
45
45
|
});
|
|
46
|
-
function
|
|
46
|
+
function W(e, [t, n]) {
|
|
47
47
|
return Math.min(n, Math.max(t, e));
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
ae(W, "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 oe = Object.defineProperty, G = (e, t) => oe(e, "name", {
|
|
53
53
|
value: t,
|
|
54
54
|
configurable: !0
|
|
55
|
-
}),
|
|
55
|
+
}), se = {
|
|
56
56
|
ItemAligned: "item-aligned",
|
|
57
57
|
Popper: "popper"
|
|
58
|
-
},
|
|
58
|
+
}, ce = {
|
|
59
59
|
LTR: "ltr",
|
|
60
60
|
RTL: "rtl"
|
|
61
|
-
},
|
|
61
|
+
}, le = [
|
|
62
62
|
" ",
|
|
63
63
|
"Enter",
|
|
64
64
|
"ArrowUp",
|
|
65
65
|
"ArrowDown"
|
|
66
|
-
],
|
|
67
|
-
function
|
|
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, _ =
|
|
66
|
+
], ue = [" ", "Enter"], K = "Select", [de, fe, pe] = h(K), [q, me] = M(K, [pe, p]), he = p(), [ge, J] = q(K), [_e, ve] = q(K);
|
|
67
|
+
function ye(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, _ = he(t), [v, y] = I.useState(null), [b, x] = I.useState(null), [S, C] = I.useState(!1), T = V(l), [E, D] = te({
|
|
69
69
|
prop: r,
|
|
70
70
|
defaultProp: i ?? !1,
|
|
71
71
|
onChange: a,
|
|
72
|
-
caller:
|
|
73
|
-
}), [
|
|
72
|
+
caller: K
|
|
73
|
+
}), [O, k] = te({
|
|
74
74
|
prop: o,
|
|
75
75
|
defaultProp: s,
|
|
76
76
|
onChange: c,
|
|
77
|
-
caller:
|
|
78
|
-
}), A =
|
|
79
|
-
|
|
77
|
+
caller: K
|
|
78
|
+
}), A = I.useRef(null), j = I.useRef(!1), [ee, M] = I.useState(null), N = /* @__PURE__ */ G((e) => {
|
|
79
|
+
M({
|
|
80
80
|
value: e,
|
|
81
|
-
hasConsumerStoppedPropagation:
|
|
81
|
+
hasConsumerStoppedPropagation: j.current
|
|
82
82
|
}), k(e);
|
|
83
|
-
}, "handleUserSelect"),
|
|
84
|
-
|
|
83
|
+
}, "handleUserSelect"), P = I.useRef(O);
|
|
84
|
+
I.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__ */ G(() => k(P.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
|
k
|
|
94
94
|
]);
|
|
95
|
-
let
|
|
96
|
-
|
|
97
|
-
}, []),
|
|
98
|
-
|
|
95
|
+
let ne = !v || !!h || !!v.closest("form"), [F, R] = I.useState(/* @__PURE__ */ new Set()), re = w(), z = Array.from(F).map((e) => e.props.value).join(";"), B = I.useCallback((e) => {
|
|
96
|
+
R((t) => new Set(t).add(e));
|
|
97
|
+
}, []), H = I.useCallback((e) => {
|
|
98
|
+
R((t) => {
|
|
99
99
|
let n = new Set(t);
|
|
100
100
|
return n.delete(e), n;
|
|
101
101
|
});
|
|
102
|
-
}, []),
|
|
102
|
+
}, []), U = {
|
|
103
103
|
required: m,
|
|
104
104
|
trigger: v,
|
|
105
105
|
onTriggerChange: y,
|
|
106
106
|
valueNode: b,
|
|
107
107
|
onValueNodeChange: x,
|
|
108
108
|
valueNodeHasChildren: S,
|
|
109
|
-
onValueNodeHasChildrenChange:
|
|
110
|
-
contentId:
|
|
111
|
-
value:
|
|
109
|
+
onValueNodeHasChildrenChange: C,
|
|
110
|
+
contentId: re,
|
|
111
|
+
value: O,
|
|
112
112
|
onValueChange: k,
|
|
113
|
-
hasConsumerStoppedPropagationRef:
|
|
114
|
-
userSelection:
|
|
115
|
-
onUserSelect:
|
|
113
|
+
hasConsumerStoppedPropagationRef: j,
|
|
114
|
+
userSelection: ee,
|
|
115
|
+
onUserSelect: N,
|
|
116
116
|
open: E,
|
|
117
|
-
onOpenChange:
|
|
117
|
+
onOpenChange: D,
|
|
118
118
|
dir: T,
|
|
119
119
|
triggerPointerDownPosRef: A,
|
|
120
120
|
disabled: p,
|
|
121
121
|
name: u,
|
|
122
122
|
autoComplete: d,
|
|
123
123
|
form: h,
|
|
124
|
-
nativeOptions:
|
|
125
|
-
nativeSelectKey:
|
|
126
|
-
isFormControl:
|
|
124
|
+
nativeOptions: F,
|
|
125
|
+
nativeSelectKey: z,
|
|
126
|
+
isFormControl: ne
|
|
127
127
|
};
|
|
128
|
-
return /* @__PURE__ */ (0,
|
|
128
|
+
return /* @__PURE__ */ (0, L.jsx)(f, {
|
|
129
129
|
..._,
|
|
130
|
-
children: /* @__PURE__ */ (0,
|
|
130
|
+
children: /* @__PURE__ */ (0, L.jsx)(ge, {
|
|
131
131
|
scope: t,
|
|
132
|
-
...
|
|
133
|
-
children: /* @__PURE__ */ (0,
|
|
132
|
+
...U,
|
|
133
|
+
children: /* @__PURE__ */ (0, L.jsx)(de.Provider, {
|
|
134
134
|
scope: t,
|
|
135
|
-
children: /* @__PURE__ */ (0,
|
|
135
|
+
children: /* @__PURE__ */ (0, L.jsx)(_e, {
|
|
136
136
|
scope: t,
|
|
137
|
-
onNativeOptionAdd:
|
|
138
|
-
onNativeOptionRemove:
|
|
139
|
-
children:
|
|
137
|
+
onNativeOptionAdd: B,
|
|
138
|
+
onNativeOptionRemove: H,
|
|
139
|
+
children: st(g) ? g(U) : n
|
|
140
140
|
})
|
|
141
141
|
})
|
|
142
142
|
})
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
-
|
|
146
|
-
var
|
|
145
|
+
G(ye, "SelectProvider");
|
|
146
|
+
var be = /* @__PURE__ */ G((e) => {
|
|
147
147
|
let { __scopeSelect: t, children: n, ...r } = e;
|
|
148
|
-
return /* @__PURE__ */ (0,
|
|
148
|
+
return /* @__PURE__ */ (0, L.jsx)(ye, {
|
|
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, L.jsxs)(L.Fragment, { children: [n, e ? /* @__PURE__ */ (0, L.jsx)(ot, { __scopeSelect: t }) : null] })
|
|
152
152
|
});
|
|
153
|
-
}, "Select"),
|
|
154
|
-
let { __scopeSelect: n, disabled:
|
|
155
|
-
let t = d().filter((e) => !e.disabled), n =
|
|
153
|
+
}, "Select"), xe = "SelectTrigger", Se = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
154
|
+
let { __scopeSelect: n, disabled: r = !1, ...a } = e, o = he(n), s = J(xe, n), l = s.disabled || r, u = i(t, s.onTriggerChange), d = fe(n), f = I.useRef("touch"), [p, m, h] = ct((e) => {
|
|
155
|
+
let t = d().filter((e) => !e.disabled), n = lt(t, e, t.find((e) => e.value === s.value));
|
|
156
156
|
n !== void 0 && s.onUserSelect(n.value);
|
|
157
|
-
}), g = /* @__PURE__ */
|
|
157
|
+
}), g = /* @__PURE__ */ G((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, L.jsx)(c, {
|
|
164
164
|
asChild: !0,
|
|
165
165
|
...o,
|
|
166
|
-
children: /* @__PURE__ */ (0,
|
|
166
|
+
children: /* @__PURE__ */ (0, L.jsx)(y.button, {
|
|
167
167
|
type: "button",
|
|
168
168
|
role: "combobox",
|
|
169
169
|
"aria-controls": s.open ? s.contentId : void 0,
|
|
@@ -174,111 +174,111 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
174
174
|
"data-state": s.open ? "open" : "closed",
|
|
175
175
|
disabled: l,
|
|
176
176
|
"data-disabled": l ? "" : void 0,
|
|
177
|
-
"data-placeholder":
|
|
177
|
+
"data-placeholder": Q(s.value) ? "" : void 0,
|
|
178
178
|
...a,
|
|
179
179
|
ref: u,
|
|
180
|
-
onClick:
|
|
180
|
+
onClick: N(a.onClick, (e) => {
|
|
181
181
|
e.currentTarget.focus(), f.current !== "mouse" && g(e);
|
|
182
182
|
}),
|
|
183
|
-
onPointerDown:
|
|
183
|
+
onPointerDown: N(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: N(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 === " ") && le.includes(e.key) && (g(), e.preventDefault());
|
|
191
191
|
})
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
|
-
}, "SelectTrigger")),
|
|
195
|
-
let { __scopeSelect: n, className:
|
|
196
|
-
|
|
194
|
+
}, "SelectTrigger")), Ce = "SelectValue", we = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
195
|
+
let { __scopeSelect: n, className: r, style: a, children: o, placeholder: s = "", ...c } = e, l = J(Ce, n), { onValueNodeHasChildrenChange: u } = l, d = o !== void 0, f = i(t, l.onValueNodeChange);
|
|
196
|
+
S(() => {
|
|
197
197
|
u(d);
|
|
198
198
|
}, [u, d]);
|
|
199
|
-
let p =
|
|
200
|
-
return /* @__PURE__ */ (0,
|
|
199
|
+
let p = Q(l.value);
|
|
200
|
+
return /* @__PURE__ */ (0, L.jsx)(y.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, L.jsx)(I.Fragment, { children: p ? s : o }, p ? "placeholder" : "value")
|
|
206
206
|
});
|
|
207
|
-
}, "SelectValue")),
|
|
207
|
+
}, "SelectValue")), Te = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
208
208
|
let { __scopeSelect: n, children: r, ...i } = e;
|
|
209
|
-
return /* @__PURE__ */ (0,
|
|
209
|
+
return /* @__PURE__ */ (0, L.jsx)(y.span, {
|
|
210
210
|
"aria-hidden": !0,
|
|
211
211
|
...i,
|
|
212
212
|
ref: t,
|
|
213
213
|
children: r || "▼"
|
|
214
214
|
});
|
|
215
|
-
}, "SelectIcon")), [
|
|
215
|
+
}, "SelectIcon")), [Ee, De] = q("SelectPortal", { forceMount: void 0 }), Oe = /* @__PURE__ */ G((e) => {
|
|
216
216
|
let { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
217
|
-
return /* @__PURE__ */ (0,
|
|
217
|
+
return /* @__PURE__ */ (0, L.jsx)(Ee, {
|
|
218
218
|
scope: e.__scopeSelect,
|
|
219
219
|
forceMount: n,
|
|
220
|
-
children: /* @__PURE__ */ (0,
|
|
220
|
+
children: /* @__PURE__ */ (0, L.jsx)(C, {
|
|
221
221
|
asChild: !0,
|
|
222
222
|
...r
|
|
223
223
|
})
|
|
224
224
|
});
|
|
225
|
-
}, "SelectPortal"),
|
|
226
|
-
let n =
|
|
227
|
-
return
|
|
225
|
+
}, "SelectPortal"), Y = "SelectContent", ke = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
226
|
+
let n = De(Y, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, a = J(Y, e.__scopeSelect), [o, s] = I.useState();
|
|
227
|
+
return S(() => {
|
|
228
228
|
s(new DocumentFragment());
|
|
229
|
-
}, []), /* @__PURE__ */ (0,
|
|
229
|
+
}, []), /* @__PURE__ */ (0, L.jsx)(b, {
|
|
230
230
|
present: r || a.open,
|
|
231
|
-
children: ({ present: e }) => e ? /* @__PURE__ */ (0,
|
|
231
|
+
children: ({ present: e }) => e ? /* @__PURE__ */ (0, L.jsx)(Ne, {
|
|
232
232
|
...i,
|
|
233
233
|
ref: t
|
|
234
|
-
}) : /* @__PURE__ */ (0,
|
|
234
|
+
}) : /* @__PURE__ */ (0, L.jsx)(Ae, {
|
|
235
235
|
...i,
|
|
236
236
|
fragment: o
|
|
237
237
|
})
|
|
238
238
|
});
|
|
239
|
-
}, "SelectContent")),
|
|
239
|
+
}, "SelectContent")), Ae = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
240
240
|
let { __scopeSelect: n, children: r, fragment: i } = e;
|
|
241
|
-
return i ?
|
|
241
|
+
return i ? F.createPortal(/* @__PURE__ */ (0, L.jsx)(je, {
|
|
242
242
|
scope: n,
|
|
243
|
-
children: /* @__PURE__ */ (0,
|
|
243
|
+
children: /* @__PURE__ */ (0, L.jsx)(de.Slot, {
|
|
244
244
|
scope: n,
|
|
245
|
-
children: /* @__PURE__ */ (0,
|
|
245
|
+
children: /* @__PURE__ */ (0, L.jsx)("div", {
|
|
246
246
|
ref: t,
|
|
247
247
|
children: r
|
|
248
248
|
})
|
|
249
249
|
})
|
|
250
250
|
}), i) : null;
|
|
251
|
-
}, "SelectContentFragment")),
|
|
252
|
-
let { __scopeSelect: n } = e, { position:
|
|
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")), X = 10, [je, Z] = q(Y), Me = a("SelectContent.RemoveScroll"), Ne = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
252
|
+
let { __scopeSelect: n } = e, { position: r = se.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 = J(Y, n), [b, S] = I.useState(null), [C, w] = I.useState(null), T = i(t, S), [D, k] = I.useState(null), [j, te] = I.useState(null), M = fe(n), [P, ne] = I.useState(!1), F = I.useRef(!1), R = I.useRef(!1), re = I.useRef(!1);
|
|
253
|
+
I.useEffect(() => {
|
|
254
|
+
if (b) return E(b);
|
|
255
|
+
}, [b]), ee();
|
|
256
|
+
let z = I.useCallback((e) => {
|
|
257
|
+
let [t, ...n] = M().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 && C && (C.scrollTop = 0), n === r && C && (C.scrollTop = C.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
259
|
+
}, [M, C]), B = I.useCallback(() => z([D, b]), [
|
|
260
|
+
z,
|
|
261
|
+
D,
|
|
262
|
+
b
|
|
263
263
|
]);
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
}, [
|
|
267
|
-
let { onOpenChange:
|
|
268
|
-
|
|
269
|
-
if (
|
|
264
|
+
I.useEffect(() => {
|
|
265
|
+
P && B();
|
|
266
|
+
}, [P, B]);
|
|
267
|
+
let { onOpenChange: V, triggerPointerDownPosRef: H } = y;
|
|
268
|
+
I.useEffect(() => {
|
|
269
|
+
if (b) {
|
|
270
270
|
let e = {
|
|
271
271
|
x: 0,
|
|
272
272
|
y: 0
|
|
273
|
-
}, t = /* @__PURE__ */
|
|
273
|
+
}, t = /* @__PURE__ */ G((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) - (H.current?.x ?? 0)),
|
|
276
|
+
y: Math.abs(Math.round(t.pageY) - (H.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__ */ G((n) => {
|
|
279
|
+
e.x <= 10 && e.y <= 10 ? n.preventDefault() : n.composedPath().includes(b) || V(!1), document.removeEventListener("pointermove", t), H.current = null;
|
|
280
280
|
}, "handlePointerUp");
|
|
281
|
-
return
|
|
281
|
+
return H.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__ */ U((e) => {
|
|
|
286
286
|
};
|
|
287
287
|
}
|
|
288
288
|
}, [
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
]),
|
|
293
|
-
let e = /* @__PURE__ */
|
|
289
|
+
b,
|
|
290
|
+
V,
|
|
291
|
+
H
|
|
292
|
+
]), I.useEffect(() => {
|
|
293
|
+
let e = /* @__PURE__ */ G(() => V(!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
|
+
}, [V]);
|
|
298
|
+
let [U, ie] = ct((e) => {
|
|
299
|
+
let t = M().filter((e) => !e.disabled), n = lt(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
|
-
y.value !== void 0 && y.value === t || i ? (k(e), i && (
|
|
306
|
-
}, [y.value]),
|
|
301
|
+
}), ae = I.useCallback((e, t, n) => {
|
|
302
|
+
let r = !R.current;
|
|
303
|
+
r && (R.current = !0);
|
|
304
|
+
let i = !F.current && !n;
|
|
305
|
+
y.value !== void 0 && y.value === t || i ? (k(e), i && (F.current = !0)) : r && k(e);
|
|
306
|
+
}, [y.value]), W = I.useCallback(() => b?.focus(), [b]), oe = I.useCallback((e, t, n) => {
|
|
307
307
|
if (!e) return;
|
|
308
|
-
let r = !
|
|
309
|
-
r && (
|
|
310
|
-
let i = !
|
|
311
|
-
(y.value !== void 0 && y.value === t || i || r) &&
|
|
312
|
-
}, [y.value]),
|
|
308
|
+
let r = !re.current;
|
|
309
|
+
r && (re.current = !0);
|
|
310
|
+
let i = !F.current && !n;
|
|
311
|
+
(y.value !== void 0 && y.value === t || i || r) && te(e);
|
|
312
|
+
}, [y.value]), ce = r === se.Popper ? Fe : Pe, le = ce === Fe ? {
|
|
313
313
|
side: c,
|
|
314
314
|
sideOffset: l,
|
|
315
315
|
align: u,
|
|
@@ -321,69 +321,69 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
321
321
|
hideWhenDetached: g,
|
|
322
322
|
avoidCollisions: _
|
|
323
323
|
} : {};
|
|
324
|
-
return /* @__PURE__ */ (0,
|
|
324
|
+
return /* @__PURE__ */ (0, L.jsx)(je, {
|
|
325
325
|
scope: n,
|
|
326
|
-
content:
|
|
327
|
-
viewport:
|
|
328
|
-
onViewportChange:
|
|
329
|
-
itemRefCallback:
|
|
330
|
-
selectedItem:
|
|
331
|
-
onItemLeave:
|
|
332
|
-
itemTextRefCallback:
|
|
333
|
-
focusSelectedItem:
|
|
334
|
-
selectedItemText:
|
|
335
|
-
position:
|
|
336
|
-
isPositioned:
|
|
337
|
-
searchRef:
|
|
338
|
-
children: /* @__PURE__ */ (0,
|
|
339
|
-
as:
|
|
326
|
+
content: b,
|
|
327
|
+
viewport: C,
|
|
328
|
+
onViewportChange: w,
|
|
329
|
+
itemRefCallback: ae,
|
|
330
|
+
selectedItem: D,
|
|
331
|
+
onItemLeave: W,
|
|
332
|
+
itemTextRefCallback: oe,
|
|
333
|
+
focusSelectedItem: B,
|
|
334
|
+
selectedItemText: j,
|
|
335
|
+
position: r,
|
|
336
|
+
isPositioned: P,
|
|
337
|
+
searchRef: U,
|
|
338
|
+
children: /* @__PURE__ */ (0, L.jsx)(x, {
|
|
339
|
+
as: Me,
|
|
340
340
|
allowPinchZoom: !0,
|
|
341
|
-
children: /* @__PURE__ */ (0,
|
|
341
|
+
children: /* @__PURE__ */ (0, L.jsx)(O, {
|
|
342
342
|
asChild: !0,
|
|
343
343
|
trapped: y.open,
|
|
344
344
|
onMountAutoFocus: (e) => {
|
|
345
345
|
e.preventDefault();
|
|
346
346
|
},
|
|
347
|
-
onUnmountAutoFocus:
|
|
347
|
+
onUnmountAutoFocus: N(a, (e) => {
|
|
348
348
|
y.trigger?.focus({ preventScroll: !0 }), e.preventDefault();
|
|
349
349
|
}),
|
|
350
|
-
children: /* @__PURE__ */ (0,
|
|
350
|
+
children: /* @__PURE__ */ (0, L.jsx)(A, {
|
|
351
351
|
asChild: !0,
|
|
352
352
|
disableOutsidePointerEvents: !0,
|
|
353
353
|
onEscapeKeyDown: o,
|
|
354
354
|
onPointerDownOutside: s,
|
|
355
355
|
onFocusOutside: (e) => e.preventDefault(),
|
|
356
356
|
onDismiss: () => y.onOpenChange(!1),
|
|
357
|
-
children: /* @__PURE__ */ (0,
|
|
357
|
+
children: /* @__PURE__ */ (0, L.jsx)(ce, {
|
|
358
358
|
role: "listbox",
|
|
359
359
|
id: y.contentId,
|
|
360
360
|
"data-state": y.open ? "open" : "closed",
|
|
361
361
|
dir: y.dir,
|
|
362
362
|
onContextMenu: (e) => e.preventDefault(),
|
|
363
363
|
...v,
|
|
364
|
-
...
|
|
365
|
-
onPlaced: () =>
|
|
366
|
-
ref:
|
|
364
|
+
...le,
|
|
365
|
+
onPlaced: () => ne(!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: N(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 && ie(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 = M().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(() => z(t)), e.preventDefault();
|
|
387
387
|
}
|
|
388
388
|
})
|
|
389
389
|
})
|
|
@@ -391,30 +391,30 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
391
391
|
})
|
|
392
392
|
})
|
|
393
393
|
});
|
|
394
|
-
}, "SelectContentImpl")),
|
|
395
|
-
let { __scopeSelect: n, onPlaced:
|
|
394
|
+
}, "SelectContentImpl")), Pe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
395
|
+
let { __scopeSelect: n, onPlaced: r, ...a } = e, o = J(Y, n), s = Z(Y, n), [c, l] = I.useState(null), [u, d] = I.useState(null), f = i(t, d), p = fe(n), m = I.useRef(!1), h = I.useRef(!0), { viewport: g, selectedItem: _, selectedItemText: v, focusSelectedItem: b } = s, x = I.useCallback(() => {
|
|
396
396
|
if (o.trigger && o.valueNode && c && u && g && _ && v) {
|
|
397
|
-
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(),
|
|
398
|
-
if (o.dir !==
|
|
399
|
-
let
|
|
397
|
+
let e = o.trigger.getBoundingClientRect(), t = u.getBoundingClientRect(), n = o.valueNode.getBoundingClientRect(), i = v.getBoundingClientRect();
|
|
398
|
+
if (o.dir !== ce.RTL) {
|
|
399
|
+
let r = i.left - t.left, a = n.left - r, o = e.left - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - X, d = W(a, [X, Math.max(X, u - l)]);
|
|
400
400
|
c.style.minWidth = s + "px", c.style.left = d + "px";
|
|
401
401
|
} else {
|
|
402
|
-
let
|
|
402
|
+
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, s = e.width + o, l = Math.max(s, t.width), u = window.innerWidth - X, d = W(a, [X, Math.max(X, u - l)]);
|
|
403
403
|
c.style.minWidth = s + "px", c.style.right = d + "px";
|
|
404
404
|
}
|
|
405
|
-
let a = p(), s = window.innerHeight -
|
|
406
|
-
if (
|
|
405
|
+
let a = p(), s = window.innerHeight - X * 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 - X, D = s - E, O = _.offsetHeight / 2, k = _.offsetTop + O, A = f + h + k, j = x - A;
|
|
406
|
+
if (A <= E) {
|
|
407
407
|
let e = a.length > 0 && _ === a[a.length - 1].ref.current;
|
|
408
408
|
c.style.bottom = "0px";
|
|
409
|
-
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n =
|
|
409
|
+
let t = u.clientHeight - g.offsetTop - g.offsetHeight, n = A + Math.max(D, O + (e ? T : 0) + t + y);
|
|
410
410
|
c.style.height = n + "px";
|
|
411
411
|
} else {
|
|
412
412
|
let e = a.length > 0 && _ === a[0].ref.current;
|
|
413
413
|
c.style.top = "0px";
|
|
414
|
-
let t = Math.max(E, f + g.offsetTop + (e ? w : 0) +
|
|
415
|
-
c.style.height = t + "px", g.scrollTop =
|
|
414
|
+
let t = Math.max(E, f + g.offsetTop + (e ? w : 0) + O) + j;
|
|
415
|
+
c.style.height = t + "px", g.scrollTop = A - E + g.offsetTop;
|
|
416
416
|
}
|
|
417
|
-
c.style.margin = `${
|
|
417
|
+
c.style.margin = `${X}px 0`, c.style.minHeight = S + "px", c.style.maxHeight = s + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
418
418
|
}
|
|
419
419
|
}, [
|
|
420
420
|
p,
|
|
@@ -426,30 +426,30 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
426
426
|
_,
|
|
427
427
|
v,
|
|
428
428
|
o.dir,
|
|
429
|
-
|
|
429
|
+
r
|
|
430
430
|
]);
|
|
431
|
-
|
|
432
|
-
let [
|
|
433
|
-
|
|
434
|
-
u &&
|
|
431
|
+
S(() => x(), [x]);
|
|
432
|
+
let [C, w] = I.useState();
|
|
433
|
+
S(() => {
|
|
434
|
+
u && w(window.getComputedStyle(u).zIndex);
|
|
435
435
|
}, [u]);
|
|
436
|
-
let
|
|
437
|
-
e && h.current === !0 && (
|
|
438
|
-
}, [
|
|
439
|
-
return /* @__PURE__ */ (0,
|
|
436
|
+
let T = I.useCallback((e) => {
|
|
437
|
+
e && h.current === !0 && (x(), b?.(), h.current = !1);
|
|
438
|
+
}, [x, b]);
|
|
439
|
+
return /* @__PURE__ */ (0, L.jsx)(Ie, {
|
|
440
440
|
scope: n,
|
|
441
441
|
contentWrapper: c,
|
|
442
442
|
shouldExpandOnScrollRef: m,
|
|
443
|
-
onScrollButtonChange:
|
|
444
|
-
children: /* @__PURE__ */ (0,
|
|
443
|
+
onScrollButtonChange: T,
|
|
444
|
+
children: /* @__PURE__ */ (0, L.jsx)("div", {
|
|
445
445
|
ref: l,
|
|
446
446
|
style: {
|
|
447
447
|
display: "flex",
|
|
448
448
|
flexDirection: "column",
|
|
449
449
|
position: "fixed",
|
|
450
|
-
zIndex:
|
|
450
|
+
zIndex: C
|
|
451
451
|
},
|
|
452
|
-
children: /* @__PURE__ */ (0,
|
|
452
|
+
children: /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
453
453
|
...a,
|
|
454
454
|
ref: f,
|
|
455
455
|
style: {
|
|
@@ -460,9 +460,9 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
460
460
|
})
|
|
461
461
|
})
|
|
462
462
|
});
|
|
463
|
-
}, "SelectItemAlignedPosition")),
|
|
464
|
-
let { __scopeSelect: n, align: r = "start", collisionPadding: i =
|
|
465
|
-
return /* @__PURE__ */ (0,
|
|
463
|
+
}, "SelectItemAlignedPosition")), Fe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
464
|
+
let { __scopeSelect: n, align: r = "start", collisionPadding: i = X, ...a } = e, o = he(n);
|
|
465
|
+
return /* @__PURE__ */ (0, L.jsx)(u, {
|
|
466
466
|
...o,
|
|
467
467
|
...a,
|
|
468
468
|
ref: t,
|
|
@@ -478,14 +478,14 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
478
478
|
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
|
-
}, "SelectPopperPosition")), [
|
|
482
|
-
let { __scopeSelect: n, nonce:
|
|
483
|
-
return /* @__PURE__ */ (0,
|
|
481
|
+
}, "SelectPopperPosition")), [Ie, Le] = q(Y, {}), Re = "SelectViewport", ze = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
482
|
+
let { __scopeSelect: n, nonce: r, ...a } = e, o = Z(Re, n), s = Le(Re, n), c = i(t, o.onViewportChange), l = I.useRef(0);
|
|
483
|
+
return /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.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
|
-
nonce:
|
|
486
|
-
}), /* @__PURE__ */ (0,
|
|
485
|
+
nonce: r
|
|
486
|
+
}), /* @__PURE__ */ (0, L.jsx)(de.Slot, {
|
|
487
487
|
scope: n,
|
|
488
|
-
children: /* @__PURE__ */ (0,
|
|
488
|
+
children: /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
489
489
|
"data-radix-select-viewport": "",
|
|
490
490
|
role: "presentation",
|
|
491
491
|
...a,
|
|
@@ -496,12 +496,12 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
496
496
|
overflow: "hidden auto",
|
|
497
497
|
...a.style
|
|
498
498
|
},
|
|
499
|
-
onScroll:
|
|
499
|
+
onScroll: N(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);
|
|
503
503
|
if (e > 0) {
|
|
504
|
-
let r = window.innerHeight -
|
|
504
|
+
let r = window.innerHeight - X * 2, i = parseFloat(n.style.minHeight), a = parseFloat(n.style.height), o = Math.max(i, a);
|
|
505
505
|
if (o < r) {
|
|
506
506
|
let i = o + e, a = Math.min(r, i), s = i - a;
|
|
507
507
|
n.style.height = a + "px", n.style.bottom === "0px" && (t.scrollTop = s > 0 ? s : 0, n.style.justifyContent = "flex-end");
|
|
@@ -512,45 +512,45 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
512
512
|
})
|
|
513
513
|
})
|
|
514
514
|
})] });
|
|
515
|
-
}, "SelectViewport")), [
|
|
516
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
517
|
-
return /* @__PURE__ */ (0,
|
|
515
|
+
}, "SelectViewport")), [Be, Ve] = q("SelectGroup"), He = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
516
|
+
let { __scopeSelect: n, ...r } = e, i = w();
|
|
517
|
+
return /* @__PURE__ */ (0, L.jsx)(Be, {
|
|
518
518
|
scope: n,
|
|
519
519
|
id: i,
|
|
520
|
-
children: /* @__PURE__ */ (0,
|
|
520
|
+
children: /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
521
521
|
role: "group",
|
|
522
522
|
"aria-labelledby": i,
|
|
523
523
|
...r,
|
|
524
524
|
ref: t
|
|
525
525
|
})
|
|
526
526
|
});
|
|
527
|
-
}, "SelectGroup")),
|
|
528
|
-
let { __scopeSelect: n, ...r } = e, i =
|
|
529
|
-
return /* @__PURE__ */ (0,
|
|
527
|
+
}, "SelectGroup")), Ue = "SelectLabel", We = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
528
|
+
let { __scopeSelect: n, ...r } = e, i = Ve(Ue, n);
|
|
529
|
+
return /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
530
530
|
id: i.id,
|
|
531
531
|
...r,
|
|
532
532
|
ref: t
|
|
533
533
|
});
|
|
534
|
-
}, "SelectLabel")),
|
|
535
|
-
let { __scopeSelect: n, value:
|
|
536
|
-
function
|
|
537
|
-
c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(
|
|
534
|
+
}, "SelectLabel")), Ge = "SelectItem", [Ke, qe] = q(Ge), Je = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
535
|
+
let { __scopeSelect: n, value: r, disabled: a = !1, textValue: o, ...s } = e, c = J(Ge, n), l = Z(Ge, n), u = c.value === r, [d, f] = I.useState(o ?? ""), [p, m] = I.useState(!1), h = T((e) => l.itemRefCallback?.(e, r, a)), g = i(t, h), _ = w(), v = I.useRef("touch");
|
|
536
|
+
function b(e) {
|
|
537
|
+
c.hasConsumerStoppedPropagationRef.current = e.isPropagationStopped(), c.onUserSelect(r), c.onOpenChange(!1);
|
|
538
538
|
}
|
|
539
|
-
return
|
|
539
|
+
return G(b, "handleSelect"), /* @__PURE__ */ (0, L.jsx)(Ke, {
|
|
540
540
|
scope: n,
|
|
541
|
-
value:
|
|
541
|
+
value: r,
|
|
542
542
|
disabled: a,
|
|
543
543
|
textId: _,
|
|
544
544
|
isSelected: u,
|
|
545
|
-
onItemTextChange:
|
|
545
|
+
onItemTextChange: I.useCallback((e) => {
|
|
546
546
|
f((t) => t || (e?.textContent ?? "").trim());
|
|
547
547
|
}, []),
|
|
548
|
-
children: /* @__PURE__ */ (0,
|
|
548
|
+
children: /* @__PURE__ */ (0, L.jsx)(de.ItemSlot, {
|
|
549
549
|
scope: n,
|
|
550
|
-
value:
|
|
550
|
+
value: r,
|
|
551
551
|
disabled: a,
|
|
552
552
|
textValue: d,
|
|
553
|
-
children: /* @__PURE__ */ (0,
|
|
553
|
+
children: /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
554
554
|
role: "option",
|
|
555
555
|
"aria-labelledby": _,
|
|
556
556
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -561,31 +561,31 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
561
561
|
tabIndex: a ? void 0 : -1,
|
|
562
562
|
...s,
|
|
563
563
|
ref: g,
|
|
564
|
-
onFocus:
|
|
565
|
-
onBlur:
|
|
566
|
-
onClick:
|
|
567
|
-
a || v.current !== "mouse" &&
|
|
564
|
+
onFocus: N(s.onFocus, () => m(!0)),
|
|
565
|
+
onBlur: N(s.onBlur, () => m(!1)),
|
|
566
|
+
onClick: N(s.onClick, (e) => {
|
|
567
|
+
a || v.current !== "mouse" && b(e);
|
|
568
568
|
}),
|
|
569
|
-
onPointerUp:
|
|
570
|
-
a || v.current === "mouse" &&
|
|
569
|
+
onPointerUp: N(s.onPointerUp, (e) => {
|
|
570
|
+
a || v.current === "mouse" && b(e);
|
|
571
571
|
}),
|
|
572
|
-
onPointerDown:
|
|
572
|
+
onPointerDown: N(s.onPointerDown, (e) => {
|
|
573
573
|
v.current = e.pointerType;
|
|
574
574
|
}),
|
|
575
|
-
onPointerMove:
|
|
575
|
+
onPointerMove: N(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: N(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: N(s.onKeyDown, (e) => {
|
|
582
|
+
a || e.target !== e.currentTarget || (l.searchRef?.current === "" || e.key !== " ") && (ue.includes(e.key) && b(e), e.key === " " && e.preventDefault());
|
|
583
583
|
})
|
|
584
584
|
})
|
|
585
585
|
})
|
|
586
586
|
});
|
|
587
|
-
}, "SelectItem")),
|
|
588
|
-
let { __scopeSelect: n, className:
|
|
587
|
+
}, "SelectItem")), Ye = "SelectItemText", Xe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
588
|
+
let { __scopeSelect: n, className: r, style: a, ...o } = e, s = J(Ye, n), c = Z(Ye, n), l = qe(Ye, n), u = ve(Ye, n), [d, f] = I.useState(null), p = T((e) => c.itemTextRefCallback?.(e, l.value, l.disabled)), m = i(t, f, l.onItemTextChange, p), h = d?.textContent, g = I.useMemo(() => /* @__PURE__ */ (0, L.jsx)("option", {
|
|
589
589
|
value: l.value,
|
|
590
590
|
disabled: l.disabled,
|
|
591
591
|
children: h
|
|
@@ -594,35 +594,35 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
594
594
|
l.value,
|
|
595
595
|
h
|
|
596
596
|
]), { onNativeOptionAdd: _, onNativeOptionRemove: v } = u;
|
|
597
|
-
return
|
|
597
|
+
return S(() => (_(g), () => v(g)), [
|
|
598
598
|
_,
|
|
599
599
|
v,
|
|
600
600
|
g
|
|
601
|
-
]), /* @__PURE__ */ (0,
|
|
601
|
+
]), /* @__PURE__ */ (0, L.jsxs)(L.Fragment, { children: [/* @__PURE__ */ (0, L.jsx)(y.span, {
|
|
602
602
|
id: l.textId,
|
|
603
603
|
...o,
|
|
604
604
|
ref: m
|
|
605
|
-
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !
|
|
606
|
-
}, "SelectItemText")),
|
|
605
|
+
}), l.isSelected && s.valueNode && !s.valueNodeHasChildren && !Q(s.value) ? F.createPortal(o.children, s.valueNode) : null] });
|
|
606
|
+
}, "SelectItemText")), Ze = "SelectItemIndicator", Qe = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
607
607
|
let { __scopeSelect: n, ...r } = e;
|
|
608
|
-
return
|
|
608
|
+
return qe(Ze, n).isSelected ? /* @__PURE__ */ (0, L.jsx)(y.span, {
|
|
609
609
|
"aria-hidden": !0,
|
|
610
610
|
...r,
|
|
611
611
|
ref: t
|
|
612
612
|
}) : null;
|
|
613
|
-
}, "SelectItemIndicator")),
|
|
614
|
-
let n =
|
|
615
|
-
return
|
|
613
|
+
}, "SelectItemIndicator")), $e = "SelectScrollUpButton", et = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
614
|
+
let n = Z($e, e.__scopeSelect), r = Le($e, e.__scopeSelect), [a, o] = I.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
615
|
+
return S(() => {
|
|
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
|
+
G(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, L.jsx)(rt, {
|
|
626
626
|
...e,
|
|
627
627
|
ref: s,
|
|
628
628
|
onAutoScroll: () => {
|
|
@@ -630,19 +630,19 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
630
630
|
e && t && (e.scrollTop -= t.offsetHeight);
|
|
631
631
|
}
|
|
632
632
|
}) : null;
|
|
633
|
-
}, "SelectScrollUpButton")),
|
|
634
|
-
let n =
|
|
635
|
-
return
|
|
633
|
+
}, "SelectScrollUpButton")), tt = "SelectScrollDownButton", nt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
634
|
+
let n = Z(tt, e.__scopeSelect), r = Le(tt, e.__scopeSelect), [a, o] = I.useState(!1), s = i(t, r.onScrollButtonChange);
|
|
635
|
+
return S(() => {
|
|
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
|
+
G(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, L.jsx)(rt, {
|
|
646
646
|
...e,
|
|
647
647
|
ref: s,
|
|
648
648
|
onAutoScroll: () => {
|
|
@@ -650,13 +650,13 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
650
650
|
e && t && (e.scrollTop += t.offsetHeight);
|
|
651
651
|
}
|
|
652
652
|
}) : null;
|
|
653
|
-
}, "SelectScrollDownButton")),
|
|
654
|
-
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a =
|
|
653
|
+
}, "SelectScrollDownButton")), rt = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
654
|
+
let { __scopeSelect: n, onAutoScroll: r, ...i } = e, a = Z("SelectScrollButton", n), o = I.useRef(null), s = fe(n), c = I.useCallback(() => {
|
|
655
655
|
o.current !== null && (window.clearInterval(o.current), o.current = null);
|
|
656
656
|
}, []);
|
|
657
|
-
return
|
|
657
|
+
return I.useEffect(() => () => c(), [c]), S(() => {
|
|
658
658
|
s().find((e) => e.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
659
|
-
}, [s]), /* @__PURE__ */ (0,
|
|
659
|
+
}, [s]), /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
660
660
|
"aria-hidden": !0,
|
|
661
661
|
...i,
|
|
662
662
|
ref: t,
|
|
@@ -664,39 +664,39 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
664
664
|
flexShrink: 0,
|
|
665
665
|
...i.style
|
|
666
666
|
},
|
|
667
|
-
onPointerDown:
|
|
667
|
+
onPointerDown: N(i.onPointerDown, () => {
|
|
668
668
|
o.current === null && (o.current = window.setInterval(r, 50));
|
|
669
669
|
}),
|
|
670
|
-
onPointerMove:
|
|
670
|
+
onPointerMove: N(i.onPointerMove, () => {
|
|
671
671
|
a.onItemLeave?.(), o.current === null && (o.current = window.setInterval(r, 50));
|
|
672
672
|
}),
|
|
673
|
-
onPointerLeave:
|
|
673
|
+
onPointerLeave: N(i.onPointerLeave, () => {
|
|
674
674
|
c();
|
|
675
675
|
})
|
|
676
676
|
});
|
|
677
|
-
}, "SelectScrollButtonImpl")),
|
|
677
|
+
}, "SelectScrollButtonImpl")), it = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function(e, t) {
|
|
678
678
|
let { __scopeSelect: n, ...r } = e;
|
|
679
|
-
return /* @__PURE__ */ (0,
|
|
679
|
+
return /* @__PURE__ */ (0, L.jsx)(y.div, {
|
|
680
680
|
"aria-hidden": !0,
|
|
681
681
|
...r,
|
|
682
682
|
ref: t
|
|
683
683
|
});
|
|
684
|
-
}, "SelectSeparator")),
|
|
685
|
-
let
|
|
686
|
-
return
|
|
684
|
+
}, "SelectSeparator")), at = "SelectBubbleInput", ot = /* @__PURE__ */ I.forwardRef(/* @__PURE__ */ G(function({ __scopeSelect: e, ...t }, n) {
|
|
685
|
+
let r = J(at, e), { value: a, onValueChange: o, required: s, disabled: c, name: l, autoComplete: u, form: f, userSelection: p } = r, { nativeOptions: m, nativeSelectKey: h } = r, g = I.useRef(null), _ = i(n, g), v = a ?? "", b = I.useRef(v), x = I.useRef(p), S = I.useRef(!1), C = Array.from(m).some((e) => (e.props.value ?? "") === "");
|
|
686
|
+
return I.useEffect(() => {
|
|
687
687
|
let e = g.current;
|
|
688
688
|
if (!e) return;
|
|
689
|
-
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !==
|
|
690
|
-
|
|
691
|
-
let i =
|
|
692
|
-
|
|
689
|
+
let t = window.HTMLSelectElement.prototype, n = Object.getOwnPropertyDescriptor(t, "value").set, r = p !== null && p !== x.current;
|
|
690
|
+
x.current = p;
|
|
691
|
+
let i = b.current !== v;
|
|
692
|
+
b.current = v;
|
|
693
693
|
let a = r && i;
|
|
694
694
|
if (r && !i && p.value !== v && !p.hasConsumerStoppedPropagation && n) {
|
|
695
|
-
|
|
695
|
+
S.current = !0;
|
|
696
696
|
try {
|
|
697
697
|
n.call(e, p.value), e.dispatchEvent(new Event("change", { bubbles: !0 }));
|
|
698
698
|
} finally {
|
|
699
|
-
|
|
699
|
+
S.current = !1, n.call(e, v);
|
|
700
700
|
}
|
|
701
701
|
return;
|
|
702
702
|
}
|
|
@@ -705,7 +705,7 @@ var xe = /* @__PURE__ */ U((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, L.jsxs)(y.select, {
|
|
709
709
|
"aria-hidden": !0,
|
|
710
710
|
required: s,
|
|
711
711
|
tabIndex: -1,
|
|
@@ -714,7 +714,7 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
714
714
|
disabled: c,
|
|
715
715
|
form: f,
|
|
716
716
|
onChange: (e) => {
|
|
717
|
-
|
|
717
|
+
S.current || o(e.target.value);
|
|
718
718
|
},
|
|
719
719
|
...t,
|
|
720
720
|
style: {
|
|
@@ -723,93 +723,93 @@ var xe = /* @__PURE__ */ U((e) => {
|
|
|
723
723
|
},
|
|
724
724
|
ref: _,
|
|
725
725
|
defaultValue: v,
|
|
726
|
-
children: [
|
|
726
|
+
children: [Q(a) && !C ? /* @__PURE__ */ (0, L.jsx)("option", { value: "" }) : null, Array.from(m)]
|
|
727
727
|
}, h);
|
|
728
728
|
}, "SelectBubbleInput"));
|
|
729
|
-
function
|
|
729
|
+
function st(e) {
|
|
730
730
|
return typeof e == "function";
|
|
731
731
|
}
|
|
732
|
-
|
|
733
|
-
function
|
|
732
|
+
G(st, "isFunction");
|
|
733
|
+
function Q(e) {
|
|
734
734
|
return e === "" || e === void 0;
|
|
735
735
|
}
|
|
736
|
-
|
|
737
|
-
function
|
|
738
|
-
let t =
|
|
736
|
+
G(Q, "shouldShowPlaceholder");
|
|
737
|
+
function ct(e) {
|
|
738
|
+
let t = T(e), n = I.useRef(""), r = I.useRef(0), i = I.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
|
+
G(a, "updateSearch"), a(i);
|
|
745
|
+
}, [t]), a = I.useCallback(() => {
|
|
746
746
|
n.current = "", window.clearTimeout(r.current);
|
|
747
747
|
}, []);
|
|
748
|
-
return
|
|
748
|
+
return I.useEffect(() => () => window.clearTimeout(r.current), []), [
|
|
749
749
|
n,
|
|
750
750
|
i,
|
|
751
751
|
a
|
|
752
752
|
];
|
|
753
753
|
}
|
|
754
|
-
|
|
755
|
-
function
|
|
756
|
-
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a =
|
|
754
|
+
G(ct, "useTypeaheadSearch");
|
|
755
|
+
function lt(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 = ut(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
|
-
|
|
762
|
-
function
|
|
761
|
+
G(lt, "findNextItem");
|
|
762
|
+
function ut(e, t) {
|
|
763
763
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
764
764
|
}
|
|
765
|
-
|
|
765
|
+
G(ut, "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
|
-
var
|
|
768
|
+
var dt = {
|
|
769
769
|
prefix: String(Math.round(Math.random() * 1e10)),
|
|
770
770
|
current: 0
|
|
771
|
-
},
|
|
771
|
+
}, ft = /*#__PURE__*/ I.createContext(dt), pt = /*#__PURE__*/ I.createContext(!1);
|
|
772
772
|
typeof window < "u" && window.document && window.document.createElement;
|
|
773
|
-
var
|
|
774
|
-
function
|
|
775
|
-
let t = (0,
|
|
773
|
+
var mt = /* @__PURE__ */ new WeakMap();
|
|
774
|
+
function ht(e = !1) {
|
|
775
|
+
let t = (0, I.useContext)(ft), n = (0, I.useRef)(null);
|
|
776
776
|
if (n.current === null && !e) {
|
|
777
|
-
let e =
|
|
777
|
+
let e = I.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED?.ReactCurrentOwner?.current;
|
|
778
778
|
if (e) {
|
|
779
|
-
let n =
|
|
780
|
-
n == null ?
|
|
779
|
+
let n = mt.get(e);
|
|
780
|
+
n == null ? mt.set(e, {
|
|
781
781
|
id: t.current,
|
|
782
782
|
state: e.memoizedState
|
|
783
|
-
}) : e.memoizedState !== n.state && (t.current = n.id,
|
|
783
|
+
}) : e.memoizedState !== n.state && (t.current = n.id, mt.delete(e));
|
|
784
784
|
}
|
|
785
785
|
n.current = ++t.current;
|
|
786
786
|
}
|
|
787
787
|
return n.current;
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
let t = (0,
|
|
789
|
+
function gt(e) {
|
|
790
|
+
let t = (0, I.useContext)(ft), n = ht(!!e), r = `react-aria${t.prefix}`;
|
|
791
791
|
return e || `${r}-${n}`;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
794
|
-
let t =
|
|
793
|
+
function _t(e) {
|
|
794
|
+
let t = I.useId(), [n] = (0, I.useState)(St()), r = n ? "react-aria" : `react-aria${dt.prefix}`;
|
|
795
795
|
return e || `${r}-${t}`;
|
|
796
796
|
}
|
|
797
|
-
var
|
|
798
|
-
function
|
|
797
|
+
var vt = typeof I.useId == "function" ? _t : gt;
|
|
798
|
+
function yt() {
|
|
799
799
|
return !1;
|
|
800
800
|
}
|
|
801
|
-
function
|
|
801
|
+
function bt() {
|
|
802
802
|
return !0;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function xt(e) {
|
|
805
805
|
return () => {};
|
|
806
806
|
}
|
|
807
|
-
function
|
|
808
|
-
return typeof
|
|
807
|
+
function St() {
|
|
808
|
+
return typeof I.useSyncExternalStore == "function" ? I.useSyncExternalStore(xt, yt, bt) : (0, I.useContext)(pt);
|
|
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
|
|
812
|
-
var
|
|
812
|
+
var Ct = /* @__PURE__ */ new Set([
|
|
813
813
|
"Arab",
|
|
814
814
|
"Syrc",
|
|
815
815
|
"Samr",
|
|
@@ -820,7 +820,7 @@ var wt = /* @__PURE__ */ new Set([
|
|
|
820
820
|
"Adlm",
|
|
821
821
|
"Rohg",
|
|
822
822
|
"Hebr"
|
|
823
|
-
]),
|
|
823
|
+
]), wt = /* @__PURE__ */ new Set([
|
|
824
824
|
"ae",
|
|
825
825
|
"ar",
|
|
826
826
|
"arc",
|
|
@@ -841,20 +841,20 @@ var wt = /* @__PURE__ */ new Set([
|
|
|
841
841
|
"ur",
|
|
842
842
|
"yi"
|
|
843
843
|
]);
|
|
844
|
-
function
|
|
844
|
+
function Tt(e) {
|
|
845
845
|
if (Intl.Locale) {
|
|
846
846
|
let t = new Intl.Locale(e).maximize(), n = typeof t.getTextInfo == "function" ? t.getTextInfo() : t.textInfo;
|
|
847
847
|
if (n) return n.direction === "rtl";
|
|
848
|
-
if (t.script) return
|
|
848
|
+
if (t.script) return Ct.has(t.script);
|
|
849
849
|
}
|
|
850
850
|
let t = e.split("-")[0];
|
|
851
|
-
return
|
|
851
|
+
return wt.has(t);
|
|
852
852
|
}
|
|
853
853
|
//#endregion
|
|
854
854
|
//#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/useDefaultLocale.mjs
|
|
855
|
-
var
|
|
856
|
-
function
|
|
857
|
-
let e = typeof window < "u" && window[
|
|
855
|
+
var Et = Symbol.for("react-aria.i18n.locale");
|
|
856
|
+
function Dt() {
|
|
857
|
+
let e = typeof window < "u" && window[Et] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
858
858
|
try {
|
|
859
859
|
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
860
860
|
} catch {
|
|
@@ -862,47 +862,47 @@ function Ot() {
|
|
|
862
862
|
}
|
|
863
863
|
return {
|
|
864
864
|
locale: e,
|
|
865
|
-
direction:
|
|
865
|
+
direction: Tt(e) ? "rtl" : "ltr"
|
|
866
866
|
};
|
|
867
867
|
}
|
|
868
|
-
var
|
|
868
|
+
var Ot = Dt(), kt = /* @__PURE__ */ new Set();
|
|
869
869
|
function At() {
|
|
870
|
-
|
|
871
|
-
for (let e of
|
|
870
|
+
Ot = Dt();
|
|
871
|
+
for (let e of kt) e(Ot);
|
|
872
872
|
}
|
|
873
873
|
function jt() {
|
|
874
|
-
let e =
|
|
875
|
-
return (0,
|
|
876
|
-
|
|
874
|
+
let e = St(), [t, n] = (0, I.useState)(Ot);
|
|
875
|
+
return (0, I.useEffect)(() => (kt.size === 0 && window.addEventListener("languagechange", At), kt.add(n), () => {
|
|
876
|
+
kt.delete(n), kt.size === 0 && window.removeEventListener("languagechange", At);
|
|
877
877
|
}), []), e ? {
|
|
878
|
-
locale: typeof window < "u" && window[
|
|
878
|
+
locale: typeof window < "u" && window[Et] || "en-US",
|
|
879
879
|
direction: "ltr"
|
|
880
880
|
} : t;
|
|
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__*/ I.createContext(null);
|
|
885
885
|
function Nt(e) {
|
|
886
|
-
let { locale: t, children: n } = e, r =
|
|
886
|
+
let { locale: t, children: n } = e, r = I.useMemo(() => ({
|
|
887
887
|
locale: t,
|
|
888
|
-
direction:
|
|
888
|
+
direction: Tt(t) ? "rtl" : "ltr"
|
|
889
889
|
}), [t]);
|
|
890
|
-
return /*#__PURE__*/
|
|
890
|
+
return /*#__PURE__*/ I.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__*/ I.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__*/ I.createElement(Nt, {
|
|
899
899
|
locale: t,
|
|
900
900
|
children: n
|
|
901
|
-
}) : /*#__PURE__*/
|
|
901
|
+
}) : /*#__PURE__*/ I.createElement(Pt, { children: n });
|
|
902
902
|
}
|
|
903
903
|
function It() {
|
|
904
904
|
let e = jt();
|
|
905
|
-
return (0,
|
|
905
|
+
return (0, I.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,11 +1009,11 @@ 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, I.useMemo)(() => new Vt(t, e), [t, e]);
|
|
1013
1013
|
}
|
|
1014
1014
|
//#endregion
|
|
1015
1015
|
//#region src/components/ui/menu-items.tsx
|
|
1016
|
-
var $ = s(), Gt =
|
|
1016
|
+
var $ = s(), Gt = n("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 = n("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 = n(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 = n("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), Xt = n("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), Zt = n(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
1017
|
variants: {
|
|
1018
1018
|
inset: { true: "pl-8" },
|
|
1019
1019
|
variant: {
|
|
@@ -1025,13 +1025,13 @@ var $ = s(), Gt = i("z-50 min-w-32 overflow-hidden rounded-md border bg-popover
|
|
|
1025
1025
|
}
|
|
1026
1026
|
},
|
|
1027
1027
|
defaultVariants: { variant: "default" }
|
|
1028
|
-
}), Qt =
|
|
1028
|
+
}), Qt = n("-mx-1 my-1 h-px bg-border last:hidden", { variants: {} }), $t = (e) => {
|
|
1029
1029
|
let n = (0, $.c)(8), r, i;
|
|
1030
1030
|
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
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, L.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,94 +1039,94 @@ 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 =
|
|
1042
|
+
var en = n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), tn = I.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, L.jsx)(U, {
|
|
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 = U.displayName;
|
|
1055
1055
|
//#endregion
|
|
1056
1056
|
//#region src/components/ui/native-select.tsx
|
|
1057
|
-
var nn =
|
|
1057
|
+
var nn = n("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
1058
|
variants: { variant: {
|
|
1059
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
1060
|
ghost: "opacity-70 hover:opacity-100 focus:opacity-100"
|
|
1061
1061
|
} },
|
|
1062
1062
|
defaultVariants: { variant: "default" }
|
|
1063
|
-
}), rn =
|
|
1063
|
+
}), rn = I.forwardRef((e, n) => {
|
|
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;
|
|
1067
|
-
i[4] === Symbol.for("react.memo_cache_sentinel") ? (c =
|
|
1067
|
+
i[4] === Symbol.for("react.memo_cache_sentinel") ? (c = r.stopPropagation(), i[4] = c) : c = i[4];
|
|
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] !==
|
|
1072
|
-
ref:
|
|
1071
|
+
return i[7] !== a || i[8] !== s || i[9] !== n || i[10] !== l ? (u = /* @__PURE__ */ (0, L.jsx)("select", {
|
|
1072
|
+
ref: n,
|
|
1073
1073
|
onClick: c,
|
|
1074
1074
|
className: l,
|
|
1075
1075
|
...s,
|
|
1076
1076
|
children: a
|
|
1077
|
-
}), i[7] = a, i[8] = s, i[9] =
|
|
1077
|
+
}), i[7] = a, i[8] = s, i[9] = n, i[10] = l, i[11] = u) : u = i[11], u;
|
|
1078
1078
|
});
|
|
1079
1079
|
rn.displayName = "NativeSelect";
|
|
1080
1080
|
//#endregion
|
|
1081
1081
|
//#region src/components/ui/select.tsx
|
|
1082
|
-
var an =
|
|
1082
|
+
var an = be, on = He, sn = k(Oe), cn = we, ln = I.forwardRef((e, n) => {
|
|
1083
1083
|
let r = (0, $.c)(19), 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 || !u) && /* @__PURE__ */ (0,
|
|
1088
|
+
r[10] !== u || r[11] !== o ? (f = (o || !u) && /* @__PURE__ */ (0, L.jsx)(Te, {
|
|
1089
1089
|
asChild: !0,
|
|
1090
|
-
children: o ? /* @__PURE__ */ (0,
|
|
1090
|
+
children: o ? /* @__PURE__ */ (0, L.jsx)("span", {
|
|
1091
1091
|
onPointerDown: (e) => {
|
|
1092
1092
|
e.preventDefault(), e.stopPropagation(), o();
|
|
1093
1093
|
},
|
|
1094
|
-
children: /* @__PURE__ */ (0,
|
|
1095
|
-
}) : /* @__PURE__ */ (0,
|
|
1094
|
+
children: /* @__PURE__ */ (0, L.jsx)(g, { className: "h-4 w-4 opacity-50 hover:opacity-90" })
|
|
1095
|
+
}) : /* @__PURE__ */ (0, L.jsx)(P, { className: "h-4 w-4 opacity-50" })
|
|
1096
1096
|
}), r[10] = u, r[11] = o, r[12] = f) : f = r[12];
|
|
1097
1097
|
let p;
|
|
1098
|
-
return r[13] !== i || r[14] !== s || r[15] !== n || r[16] !== d || r[17] !== f ? (p = /* @__PURE__ */ (0,
|
|
1098
|
+
return r[13] !== i || r[14] !== s || r[15] !== n || r[16] !== d || r[17] !== f ? (p = /* @__PURE__ */ (0, L.jsxs)(Se, {
|
|
1099
1099
|
ref: n,
|
|
1100
1100
|
className: d,
|
|
1101
1101
|
...s,
|
|
1102
1102
|
children: [i, f]
|
|
1103
1103
|
}), r[13] = i, r[14] = s, r[15] = n, r[16] = d, r[17] = f, r[18] = p) : p = r[18], p;
|
|
1104
1104
|
});
|
|
1105
|
-
ln.displayName =
|
|
1106
|
-
var un =
|
|
1105
|
+
ln.displayName = Se.displayName;
|
|
1106
|
+
var un = j(ke), dn = I.forwardRef((e, n) => {
|
|
1107
1107
|
let r = (0, $.c)(21), i, a, o, s;
|
|
1108
1108
|
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);
|
|
1109
1109
|
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;
|
|
1110
1110
|
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];
|
|
1111
1111
|
let d;
|
|
1112
|
-
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0,
|
|
1112
|
+
r[8] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ (0, L.jsx)(et, {
|
|
1113
1113
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1114
|
-
children: /* @__PURE__ */ (0,
|
|
1114
|
+
children: /* @__PURE__ */ (0, L.jsx)(ne, { className: "h-4 w-4" })
|
|
1115
1115
|
}), r[8] = d) : d = r[8];
|
|
1116
1116
|
let f = c === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)", p;
|
|
1117
1117
|
r[9] === f ? p = r[10] : (p = t("p-1", f), r[9] = f, r[10] = p);
|
|
1118
1118
|
let m;
|
|
1119
|
-
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0,
|
|
1119
|
+
r[11] !== i || r[12] !== p ? (m = /* @__PURE__ */ (0, L.jsx)(ze, {
|
|
1120
1120
|
className: p,
|
|
1121
1121
|
children: i
|
|
1122
1122
|
}), r[11] = i, r[12] = p, r[13] = m) : m = r[13];
|
|
1123
1123
|
let h;
|
|
1124
|
-
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0,
|
|
1124
|
+
r[14] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ (0, L.jsx)(nt, {
|
|
1125
1125
|
className: "flex items-center justify-center h-[20px] bg-background text-muted-foreground cursor-default",
|
|
1126
|
-
children: /* @__PURE__ */ (0,
|
|
1126
|
+
children: /* @__PURE__ */ (0, L.jsx)(P, { className: "h-4 w-4 opacity-50" })
|
|
1127
1127
|
}), r[14] = h) : h = r[14];
|
|
1128
1128
|
let g;
|
|
1129
|
-
return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0,
|
|
1129
|
+
return r[15] !== c || r[16] !== o || r[17] !== n || r[18] !== u || r[19] !== m ? (g = /* @__PURE__ */ (0, L.jsx)(sn, { children: /* @__PURE__ */ (0, L.jsx)(D, { children: /* @__PURE__ */ (0, L.jsxs)(un, {
|
|
1130
1130
|
ref: n,
|
|
1131
1131
|
className: u,
|
|
1132
1132
|
position: c,
|
|
@@ -1138,38 +1138,38 @@ var un = ne(Ae), dn = P.forwardRef((e, n) => {
|
|
|
1138
1138
|
]
|
|
1139
1139
|
}) }) }), r[15] = c, r[16] = o, r[17] = n, r[18] = u, r[19] = m, r[20] = g) : g = r[20], g;
|
|
1140
1140
|
});
|
|
1141
|
-
dn.displayName =
|
|
1142
|
-
var fn =
|
|
1141
|
+
dn.displayName = ke.displayName;
|
|
1142
|
+
var fn = I.forwardRef((e, n) => {
|
|
1143
1143
|
let r = (0, $.c)(9), i, a;
|
|
1144
1144
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1145
1145
|
let o;
|
|
1146
1146
|
r[3] === i ? o = r[4] : (o = t("px-2 py-1.5 text-sm font-semibold", i), r[3] = i, r[4] = o);
|
|
1147
1147
|
let s;
|
|
1148
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1148
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, L.jsx)(We, {
|
|
1149
1149
|
ref: n,
|
|
1150
1150
|
className: o,
|
|
1151
1151
|
...a
|
|
1152
1152
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1153
1153
|
});
|
|
1154
|
-
fn.displayName =
|
|
1155
|
-
var pn =
|
|
1154
|
+
fn.displayName = We.displayName;
|
|
1155
|
+
var pn = I.forwardRef((e, n) => {
|
|
1156
1156
|
let r = (0, $.c)(17), i, a, o, s;
|
|
1157
1157
|
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);
|
|
1158
1158
|
let c;
|
|
1159
1159
|
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);
|
|
1160
1160
|
let l;
|
|
1161
|
-
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0,
|
|
1161
|
+
r[7] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, L.jsx)("span", {
|
|
1162
1162
|
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
1163
|
-
children: /* @__PURE__ */ (0,
|
|
1163
|
+
children: /* @__PURE__ */ (0, L.jsx)(Qe, { children: /* @__PURE__ */ (0, L.jsx)(m, { className: "h-3 w-3" }) })
|
|
1164
1164
|
}), r[7] = l) : l = r[7];
|
|
1165
1165
|
let u = typeof i != "string" || void 0, d;
|
|
1166
|
-
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0,
|
|
1166
|
+
r[8] !== i || r[9] !== u ? (d = /* @__PURE__ */ (0, L.jsx)(Xe, {
|
|
1167
1167
|
asChild: u,
|
|
1168
1168
|
className: "flex w-full flex-1",
|
|
1169
1169
|
children: i
|
|
1170
1170
|
}), r[8] = i, r[9] = u, r[10] = d) : d = r[10];
|
|
1171
1171
|
let f;
|
|
1172
|
-
return r[11] !== o || r[12] !== n || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0,
|
|
1172
|
+
return r[11] !== o || r[12] !== n || r[13] !== s || r[14] !== c || r[15] !== d ? (f = /* @__PURE__ */ (0, L.jsxs)(Je, {
|
|
1173
1173
|
ref: n,
|
|
1174
1174
|
className: c,
|
|
1175
1175
|
...o,
|
|
@@ -1180,19 +1180,19 @@ var pn = P.forwardRef((e, n) => {
|
|
|
1180
1180
|
]
|
|
1181
1181
|
}), r[11] = o, r[12] = n, r[13] = s, r[14] = c, r[15] = d, r[16] = f) : f = r[16], f;
|
|
1182
1182
|
});
|
|
1183
|
-
pn.displayName =
|
|
1184
|
-
var mn =
|
|
1183
|
+
pn.displayName = Je.displayName;
|
|
1184
|
+
var mn = I.forwardRef((e, n) => {
|
|
1185
1185
|
let r = (0, $.c)(9), i, a;
|
|
1186
1186
|
r[0] === e ? (i = r[1], a = r[2]) : ({className: i, ...a} = e, r[0] = e, r[1] = i, r[2] = a);
|
|
1187
1187
|
let o;
|
|
1188
1188
|
r[3] === i ? o = r[4] : (o = t("-mx-1 my-1 h-px bg-muted", i), r[3] = i, r[4] = o);
|
|
1189
1189
|
let s;
|
|
1190
|
-
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0,
|
|
1190
|
+
return r[5] !== a || r[6] !== n || r[7] !== o ? (s = /* @__PURE__ */ (0, L.jsx)(it, {
|
|
1191
1191
|
ref: n,
|
|
1192
1192
|
className: o,
|
|
1193
1193
|
...a
|
|
1194
1194
|
}), r[5] = a, r[6] = n, r[7] = o, r[8] = s) : s = r[8], s;
|
|
1195
1195
|
});
|
|
1196
|
-
mn.displayName =
|
|
1196
|
+
mn.displayName = it.displayName;
|
|
1197
1197
|
//#endregion
|
|
1198
|
-
export {
|
|
1198
|
+
export { V as A, It as C, Te as D, vt as E, P as M, Se as O, Vt as S, St 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, ne as j, W 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 };
|