@marimo-team/islands 0.22.1-dev9 → 0.22.1
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-iT7t3FxV.js → ConnectedDataExplorerComponent-DuD8BVl6.js} +54 -54
- package/dist/{Plot-WhbJAbBh.js → Plot-BxlSHo0G.js} +47 -38
- package/dist/_basePickBy-Sow3pJjS.js +41 -0
- package/dist/{_baseUniq-B4eL5sTC.js → _baseUniq-C87CckHL.js} +15 -54
- package/dist/{any-language-editor-CT_9yBde.js → any-language-editor-BHH_pQ6M.js} +21 -21
- package/dist/architecture-7HQA4BMR-BHdkAMvZ.js +6 -0
- package/dist/{architectureDiagram-VXUJARFQ-vxgYGIMP.js → architectureDiagram-VXUJARFQ-B3YQo9At.js} +15 -15
- package/dist/{arrays-Du-jRBAy.js → arrays-beUWo8RF.js} +1 -1
- package/dist/assets/__vite-browser-external-WSlCcXn_.js +1 -0
- package/dist/assets/{worker-D10K3OOz.js → worker-DUYMdbtA.js} +2 -2
- package/dist/{blockDiagram-VD42YOAC-C7x6YTH7.js → blockDiagram-VD42YOAC-CpQ3TKEN.js} +7 -7
- package/dist/{button-qsiIHncQ.js → button-DNlNlZY_.js} +82 -84
- package/dist/{c4Diagram-YG6GDRKO-Cx4oseGg.js → c4Diagram-YG6GDRKO-CZSU4uqU.js} +4 -4
- package/dist/{capabilities-26mwv03y.js → capabilities-Coe9eM9T.js} +2 -2
- package/dist/{channel-C_50jIAn.js → channel-X3JKk8gE.js} +1 -1
- package/dist/{chat-ui-CtqUthFR.js → chat-ui-Cel1kBfc.js} +147 -146
- package/dist/{check-D_YwHEgY.js → check-CWUkiHmb.js} +1 -1
- package/dist/{chunk-4F5CHEZ2-Dvo_CFnR.js → chunk-4F5CHEZ2-D5mClyDv.js} +1 -1
- package/dist/{chunk-ABZYJK2D-D5YIs71w.js → chunk-ABZYJK2D-CZYCCtLy.js} +1 -1
- package/dist/{chunk-ATLVNIR6-CyOjzOcf.js → chunk-ATLVNIR6-DaOzLLgN.js} +1 -1
- package/dist/{chunk-B2363JML-BzZqINRO.js → chunk-B2363JML-Br0eA2T3.js} +1 -1
- package/dist/{chunk-B4BG7PRW-ZJeV3KdD.js → chunk-B4BG7PRW-4BjV11Br.js} +4 -4
- package/dist/{chunk-DI55MBZ5-Dx_wwX6l.js → chunk-DI55MBZ5-DITY3EyP.js} +4 -4
- package/dist/{chunk-EXTU4WIE-CgefpSXQ.js → chunk-EXTU4WIE-jUPSAk3i.js} +1 -1
- package/dist/{chunk-FRFDVMJY-Derq8UzY.js → chunk-FRFDVMJY-DnEvEFRR.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-CcIOIFpc.js → chunk-JA3XYJ7Z-BcPEfxk_.js} +2 -2
- package/dist/{chunk-JZLCHNYA-CgO0GG1p.js → chunk-JZLCHNYA-2bnLL3xL.js} +4 -4
- package/dist/{chunk-N4CR4FBY-2qzGzAxT.js → chunk-N4CR4FBY-CpZSuGSU.js} +5 -5
- package/dist/{chunk-PL6DKKU2-KoG71Zin.js → chunk-PL6DKKU2-DnId6G-x.js} +1 -1
- package/dist/{chunk-QN33PNHL-Dp1qBo28.js → chunk-QN33PNHL-B9p5ojHB.js} +1 -1
- package/dist/{chunk-QXUST7PY-BxmmeIwf.js → chunk-QXUST7PY-Ch6F5Obl.js} +5 -5
- package/dist/{chunk-S3R3BYOJ-D3Rys9ZW.js → chunk-S3R3BYOJ-B0UOFJwq.js} +3 -3
- package/dist/{chunk-SJTYNZTY-Co-DhKAG.js → chunk-SJTYNZTY-BsBZnJUj.js} +1 -1
- package/dist/{chunk-TCCFYFTB-BAhzIqBO.js → chunk-TCCFYFTB-Clbl-fTg.js} +8 -7
- package/dist/{chunk-TQ3KTPDO-DxYI735Z.js → chunk-TQ3KTPDO-CFkSQ30e.js} +1 -1
- package/dist/{chunk-TZMSLE5B-Dxumt0wv.js → chunk-TZMSLE5B-D45397J2.js} +1 -1
- package/dist/{chunk-UMXZTB3W-CuahpKin.js → chunk-UMXZTB3W-D-A834Bq.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CYoFMQKE.js → classDiagram-2ON5EDUG-C8-zE3Zv.js} +10 -10
- package/dist/{classDiagram-2ON5EDUG-DkOvXRlx.js → classDiagram-v2-WZHVMYZB-DrmbGANl.js} +10 -10
- package/dist/{clone-DDndUqI0.js → clone-DZFQCtFJ.js} +1 -1
- package/dist/{constants-D1Am36hX.js → constants-CvyfaCvs.js} +3 -3
- package/dist/{copy-CBo9JcJW.js → copy-B7781WJ3.js} +2 -2
- package/dist/{dagre-6UL2VRFP-BXBaU8PB.js → dagre-6UL2VRFP-OMItEBnY.js} +12 -12
- package/dist/{dagre-D3dlYz-r.js → dagre-QVd-lCXU.js} +13 -23
- package/dist/{data-grid-overlay-editor-nZux6_d2.js → data-grid-overlay-editor-lKF301ME.js} +1 -1
- package/dist/{diagram-PSM6KHXK-CJxjk4LG.js → diagram-PSM6KHXK-CkKbohWI.js} +16 -16
- package/dist/{diagram-QEK2KX5R-IMILPh_p.js → diagram-QEK2KX5R-DjUMpVcx.js} +14 -14
- package/dist/{diagram-S2PKOQOG-6O0g6Boj.js → diagram-S2PKOQOG-b-c0d-wZ.js} +14 -14
- package/dist/{dist-BkXs8bw0.js → dist--6TSlp8H.js} +1 -1
- package/dist/dist-7K5doRvB.js +6 -0
- package/dist/{dist-CQidOwep.js → dist-B43sbpd0.js} +3 -3
- package/dist/dist-B6I_A2-E.js +8 -0
- package/dist/dist-BEQsmaZY.js +5 -0
- package/dist/dist-BasY2RHp.js +8 -0
- package/dist/{dist-BemtTYzN.js → dist-Bfp1XXWt.js} +5 -5
- package/dist/{dist-v-1kgqZ3.js → dist-BjDuO5JW.js} +1 -1
- package/dist/dist-Bosc00dY.js +5 -0
- package/dist/{dist-DLNKBPsk.js → dist-BrxqmS9Q.js} +4 -4
- package/dist/{dist-DBYL08Lu.js → dist-BvhGByxL.js} +4 -4
- package/dist/{dist-CVqlhD3M.js → dist-C4bq5Ioy.js} +2 -2
- package/dist/{dist-DwmxBUOe.js → dist-CFKdzOIu.js} +2 -2
- package/dist/{dist-5nTQE2yt.js → dist-CIB8w0Fl.js} +2 -2
- package/dist/{dist-C-EcLtO9.js → dist-CNF0QBLR.js} +1 -1
- package/dist/dist-CQMZOn-_.js +8 -0
- package/dist/dist-CViQhWZ8.js +5 -0
- package/dist/{dist-Dg65j0em.js → dist-CcMfr7jD.js} +1 -1
- package/dist/{dist-C0XYIHKJ.js → dist-Ci0CXEFt.js} +1 -1
- package/dist/dist-Cz6rLfwY.js +5 -0
- package/dist/dist-D8eq8st3.js +6 -0
- package/dist/{dist-qoCY8giM.js → dist-DAfcmt-d.js} +2 -2
- package/dist/{dist-B6Op2ogv.js → dist-DD_cYHOl.js} +2 -2
- package/dist/{dist-BUSLKXcu.js → dist-DFK94vuS.js} +2 -2
- package/dist/{dist-DBXPlQ0D.js → dist-DGNtjMZu.js} +1 -1
- package/dist/{dist-C9qF7MRB.js → dist-DJ9F1eHs.js} +2 -2
- package/dist/{dist-Ci_jEudG.js → dist-DJKubHDd.js} +1 -1
- package/dist/{dist-CnFp2Kcl.js → dist-DLafRu9s.js} +2 -2
- package/dist/dist-DM1UDXdl.js +5 -0
- package/dist/dist-DNrtWPgS.js +5 -0
- package/dist/dist-D_UjpfOY.js +1381 -0
- package/dist/{dist-DmFS6KZW.js → dist-DbnBiLNH.js} +3 -3
- package/dist/{dist-BiZZAo22.js → dist-DlSUOIm9.js} +1 -1
- package/dist/{dist-DStU8He1.js → dist-Doy0mQDg.js} +2 -2
- package/dist/{dist-CxAX99oC.js → dist-DpkJHKB8.js} +2 -2
- package/dist/{dist-DjaZNkZ7.js → dist-LhQNUe5A.js} +3 -3
- package/dist/dist-V7q2qnpA.js +5 -0
- package/dist/{dist-BJ3fhRYu.js → dist-VqF3W_ue.js} +2 -2
- package/dist/dist-a5_hPgu2.js +8 -0
- package/dist/{dist-B9KLrfoh.js → dist-ej6AQKaS.js} +1 -1
- package/dist/{dist-Brb6VNc4.js → dist-m9tsXsFf.js} +2 -2
- package/dist/{dist-CBwMSFDu.js → dist-tGk0aZ--.js} +2 -2
- package/dist/dist-uVyZcV1-.js +5 -0
- package/dist/{erDiagram-Q2GNP2WA-sho7Cl9f.js → erDiagram-Q2GNP2WA-CDhLaOZ1.js} +10 -10
- package/dist/{error-banner-Bx9kIgrs.js → error-banner-Cjf0RU9I.js} +79 -79
- package/dist/{esm-CMg2ABu6.js → esm-4wmsH2lp.js} +6 -6
- package/dist/{esm-cqK9POGH.js → esm-CD1iby2n.js} +23 -23
- package/dist/{flowDiagram-NV44I4VS-C4nY4Fbz.js → flowDiagram-NV44I4VS-BDi4O4CL.js} +10 -10
- package/dist/{ganttDiagram-JELNMOA3-CtxNcCM2.js → ganttDiagram-JELNMOA3-BpZE6kVp.js} +3 -3
- package/dist/{gitGraph-G5XIXVHT-SL6TDof6.js → gitGraph-G5XIXVHT-B_c6xFJv.js} +3 -3
- package/dist/{gitGraphDiagram-V2S2FVAM-D9885mxd.js → gitGraphDiagram-V2S2FVAM-iQnXzbPM.js} +13 -13
- package/dist/{glide-data-editor-CkVEV-Gk.js → glide-data-editor-BqnvTmDo.js} +1739 -1708
- package/dist/{graphlib-CxWdvYQt.js → graphlib-BV1_gi0C.js} +4 -3
- package/dist/hasIn-DnfJcYpY.js +108 -0
- package/dist/{info-VBDWY6EO-6MXPTSmi.js → info-VBDWY6EO-BTyzxmhr.js} +3 -3
- package/dist/{infoDiagram-HS3SLOUP-Bw2FlRwF.js → infoDiagram-HS3SLOUP-OYrX6uO3.js} +13 -13
- package/dist/{input-BSde8uV4.js → input-CFY9gApZ.js} +5055 -5055
- package/dist/{isEmpty-BQtUinxJ.js → isEmpty-B7FX9wKt.js} +1 -1
- package/dist/{isSymbol-DFp8040B.js → isSymbol-DCbjQG_U.js} +1 -1
- package/dist/{journeyDiagram-XKPGCS4Q-BXlCEth8.js → journeyDiagram-XKPGCS4Q-ClPC94aN.js} +3 -3
- package/dist/{kanban-definition-3W4ZIXB7-CorxzSYm.js → kanban-definition-3W4ZIXB7-DHEAKdZt.js} +7 -7
- package/dist/{label-DTNqw9tv.js → label-DbZGAoCH.js} +538 -569
- package/dist/{loader-CMMa6QVT.js → loader-Bd1kgLn7.js} +15 -15
- package/dist/main.js +35011 -34898
- package/dist/{memoize-CuHciEBb.js → memoize-CSTI9eOX.js} +1 -1
- package/dist/{merge-CA_buyY3.js → merge-CVhG7q_o.js} +1 -1
- package/dist/{mermaid-CEKslOkI.js → mermaid-B2HDLx2g.js} +54 -54
- package/dist/{mermaid-parser.core-cq4YDee-.js → mermaid-parser.core-ntCgyx0x.js} +8 -8
- package/dist/min-Ds3gG0Ff.js +96 -0
- package/dist/{mindmap-definition-VGOIOE7T-DRsT8UaN.js → mindmap-definition-VGOIOE7T-CxEUZZvY.js} +9 -9
- package/dist/{now-CXAdKY5k.js → now-nrrrOr01.js} +1 -1
- package/dist/{once-CZno0h-b.js → once-C_TIu-kR.js} +1 -1
- package/dist/{packet-DYOGHKS2-Dw08gMaZ.js → packet-DYOGHKS2-BhvnpoGi.js} +3 -3
- package/dist/{pie-VRWISCQL-C5SPSvT8.js → pie-VRWISCQL-dILuA3iG.js} +3 -3
- package/dist/{pieDiagram-ADFJNKIX-DhJ1Cx2O.js → pieDiagram-ADFJNKIX-U3LrUqAS.js} +14 -14
- package/dist/{process-output-KyzWazB-.js → process-output-DC1TOnIl.js} +3184 -3207
- package/dist/{quadrantDiagram-AYHSOK5B-DXUFIWlz.js → quadrantDiagram-AYHSOK5B-BVWuq-3R.js} +2 -2
- package/dist/{radar-ZZBFDIW7-BvY0bgSg.js → radar-ZZBFDIW7-DwFrOJDj.js} +3 -3
- package/dist/range-fJeId9Ri.js +30 -0
- package/dist/{requirementDiagram-UZGBJVZJ-DO_gtQIb.js → requirementDiagram-UZGBJVZJ-D0zpQnKC.js} +9 -9
- package/dist/{sankeyDiagram-TZEHDZUN-OZzXEkuG.js → sankeyDiagram-TZEHDZUN-CExy1joT.js} +2 -2
- package/dist/{sequenceDiagram-WL72ISMW-K7nZRifV.js → sequenceDiagram-WL72ISMW-D1BJxLjH.js} +4 -4
- package/dist/{slides-component-CIcSvFh7.js → slides-component-CX2JC-Ws.js} +2 -2
- package/dist/{spec-DYaR1rJh.js → spec-CD7QaCV-.js} +3 -3
- package/dist/{stateDiagram-FKZM4ZOC-DzXJZAq7.js → stateDiagram-FKZM4ZOC-B1S8jGMn.js} +12 -12
- package/dist/{stateDiagram-v2-4FDKWEC3-BZBPUmyF.js → stateDiagram-v2-4FDKWEC3-BH5ozUbc.js} +10 -10
- package/dist/stex-CQDv3aS8.js +4 -0
- package/dist/style.css +1 -1
- package/dist/{timeline-definition-IT6M3QCI-DNoLAh-i.js → timeline-definition-IT6M3QCI-BDT9JAmn.js} +2 -2
- package/dist/{toDate-D6VXexnV.js → toDate-CUqpEbBS.js} +5 -5
- package/dist/{toNumber-xFPoy1OI.js → toNumber-55tjPCWr.js} +2 -2
- package/dist/tooltip-BXEpXV3R.js +404 -0
- package/dist/{treemap-GDKQZRPO-C5OoxpmV.js → treemap-GDKQZRPO-bx2ngsgN.js} +3 -3
- package/dist/{types-CQ-RbYxp.js → types-D_ntCXg0.js} +3 -3
- package/dist/{useAsyncData-Cd4Urlww.js → useAsyncData-rN1nzPaS.js} +2 -2
- package/dist/{useDeepCompareMemoize-DOzKCTzc.js → useDeepCompareMemoize-Ch-7Rk2x.js} +4 -4
- package/dist/{useIframeCapabilities-BVQrlRBd.js → useIframeCapabilities-CqhrVue6.js} +1 -1
- package/dist/useLifecycle-4fA1pHoh.js +177 -0
- package/dist/{useTheme-Dm1WaAGy.js → useTheme-MWfxn4oz.js} +4 -5
- package/dist/{vega-component-BaDgUvQP.js → vega-component-CPhNLfZZ.js} +25 -25
- package/dist/{xychartDiagram-PRI3JC2R-ehVeySMW.js → xychartDiagram-PRI3JC2R-CuAZiqHS.js} +5 -5
- package/dist/{Combination-B--d1_LV.js → zod-C6UGQ3fz.js} +8085 -8151
- package/package.json +8 -41
- package/src/__mocks__/common.ts +4 -4
- package/src/__tests__/main.test.tsx +12 -14
- package/src/components/ai/ai-provider-icon.tsx +3 -2
- package/src/components/app-config/user-config-form.tsx +0 -27
- package/src/components/chat/acp/agent-docs.tsx +3 -3
- package/src/components/chat/acp/agent-panel.tsx +71 -24
- package/src/components/chat/acp/agent-selector.tsx +2 -11
- package/src/components/chat/acp/state.ts +15 -3
- package/src/components/chat/chat-history-popover.tsx +1 -1
- package/src/components/chat/chat-panel.tsx +2 -1
- package/src/components/data-table/TableBottomBar.tsx +7 -1
- package/src/components/data-table/TableTopBar.tsx +31 -35
- package/src/components/data-table/__tests__/columns.test.tsx +7 -7
- package/src/components/data-table/cell-hover-template/types.ts +1 -1
- package/src/components/data-table/cell-hover-text/types.ts +1 -1
- package/src/components/data-table/cell-selection/__tests__/feature.test.ts +1 -1
- package/src/components/data-table/cell-selection/types.ts +4 -3
- package/src/components/data-table/cell-styling/types.ts +1 -1
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +2 -2
- package/src/components/data-table/charts/charts.tsx +2 -2
- package/src/components/data-table/charts/components/chart-items.tsx +1 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +1 -1
- package/src/components/data-table/column-formatting/types.ts +5 -4
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +1 -1
- package/src/components/data-table/column-wrapping/types.ts +4 -3
- package/src/components/data-table/columns.tsx +4 -1
- package/src/components/data-table/copy-column/types.ts +4 -3
- package/src/components/data-table/data-table.tsx +12 -11
- package/src/components/data-table/focus-row/types.ts +4 -3
- package/src/components/data-table/loading-table.tsx +1 -1
- package/src/components/data-table/pagination.tsx +1 -1
- package/src/components/data-table/range-focus/__tests__/atoms.test.ts +13 -13
- package/src/components/data-table/range-focus/__tests__/use-cell-range-selection.test.ts +9 -11
- package/src/components/data-table/range-focus/atoms.ts +2 -2
- package/src/components/data-table/range-focus/cell-selection-stats.tsx +3 -1
- package/src/components/data-table/renderers.tsx +18 -12
- package/src/components/data-table/row-viewer-panel/row-viewer.tsx +1 -1
- package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +2 -2
- package/src/components/dependency-graph/dependency-graph-tree.tsx +1 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +93 -94
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +1 -1
- package/src/components/editor/actions/name-cell-input.tsx +4 -2
- package/src/components/editor/actions/pair-with-agent-modal.tsx +179 -0
- package/src/components/editor/actions/useCellActionButton.tsx +4 -2
- package/src/components/editor/actions/useNotebookActions.tsx +10 -0
- package/src/components/editor/ai/add-cell-with-ai.tsx +2 -1
- package/src/components/editor/ai/ai-completion-editor.tsx +1 -1
- package/src/components/editor/app-container.tsx +1 -1
- package/src/components/editor/cell/CellStatus.tsx +4 -5
- package/src/components/editor/cell/cell-context-menu.tsx +4 -2
- package/src/components/editor/cell/code/cell-editor.tsx +3 -2
- package/src/components/editor/cell/toolbar.tsx +2 -1
- package/src/components/editor/chrome/components/contribute-snippet-button.tsx +4 -1
- package/src/components/editor/chrome/components/feedback-button.tsx +4 -1
- package/src/components/editor/chrome/panels/context-aware-panel/context-aware-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/empty-state.tsx +1 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +0 -10
- package/src/components/editor/chrome/panels/snippets-panel.tsx +1 -1
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +1 -1
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +4 -1
- package/src/components/editor/chrome/wrapper/footer-items/lsp-status.tsx +2 -1
- package/src/components/editor/chrome/wrapper/storage.ts +2 -2
- package/src/components/editor/connections/database/as-code.ts +1 -1
- package/src/components/editor/connections/form-renderers.tsx +1 -1
- package/src/components/editor/connections/storage/as-code.ts +1 -1
- package/src/components/editor/controls/keyboard-shortcuts.tsx +1 -1
- package/src/components/editor/header/filename-input.tsx +4 -1
- package/src/components/editor/links/cell-link-list.tsx +1 -1
- package/src/components/editor/navigation/__tests__/navigation.test.ts +1 -1
- package/src/components/editor/navigation/clipboard.ts +1 -1
- package/src/components/editor/navigation/multi-cell-action-toolbar.tsx +2 -2
- package/src/components/editor/navigation/navigation.ts +3 -3
- package/src/components/editor/notebook-cell.tsx +1 -1
- package/src/components/editor/output/JsonOutput.tsx +6 -6
- package/src/components/editor/output/ansi-reduce.ts +2 -2
- package/src/components/editor/output/console/ConsoleOutput.tsx +2 -2
- package/src/components/editor/renderers/cells-renderer.tsx +1 -1
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +1 -1
- package/src/components/editor/renderers/plugins.ts +1 -1
- package/src/components/editor/renderers/slides-layout/types.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/useFocusFirstEditor.test.ts +2 -2
- package/src/components/editor/renderers/vertical-layout/__tests__/vertical-layout.test.ts +1 -1
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +12 -13
- package/src/components/find-replace/find-replace.tsx +3 -1
- package/src/components/forms/form.tsx +1 -1
- package/src/components/forms/options.ts +1 -1
- package/src/components/pages/gallery-page.tsx +1 -1
- package/src/components/static-html/static-banner.tsx +2 -2
- package/src/components/storage/__tests__/storage-snippets.test.ts +4 -6
- package/src/components/terminal/terminal.tsx +4 -4
- package/src/components/tracing/tracing.test.tsx +30 -30
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +1 -1
- package/src/components/ui/badge.tsx +2 -1
- package/src/components/ui/button.tsx +5 -4
- package/src/components/ui/calendar.tsx +3 -2
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +2 -1
- package/src/components/ui/command.tsx +5 -2
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/date-input.tsx +7 -6
- package/src/components/ui/date-picker.tsx +6 -4
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/draggable-popover.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +2 -1
- package/src/components/ui/field.tsx +1 -2
- package/src/components/ui/form.tsx +4 -5
- package/src/components/ui/fullscreen.tsx +4 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/navigation.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +4 -3
- package/src/components/ui/query-param-preserving-link.tsx +4 -2
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/range-slider.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sheet.tsx +3 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -2
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/components/variables/variables-table.tsx +1 -1
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +1 -1
- package/src/core/ai/context/providers/__tests__/variable.test.ts +1 -1
- package/src/core/ai/context/providers/cell-output.ts +1 -2
- package/src/core/ai/context/registry.ts +2 -2
- package/src/core/ai/tools/edit-notebook-tool.ts +4 -3
- package/src/core/ai/tools/registry.ts +1 -1
- package/src/core/ai/tools/run-cells-tool.ts +4 -3
- package/src/core/cells/__tests__/add-missing-import.test.ts +23 -22
- package/src/core/cells/__tests__/cell.test.ts +14 -13
- package/src/core/cells/__tests__/cells.test.ts +2 -2
- package/src/core/cells/__tests__/scrollCellIntoView.test.ts +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/core/cells/__tests__/utils.test.ts +1 -1
- package/src/core/cells/cells.ts +2 -2
- package/src/core/cells/ids.ts +1 -1
- package/src/core/cells/logs.ts +1 -1
- package/src/core/codemirror/ai/request.ts +1 -1
- package/src/core/codemirror/cells/__tests__/extensions.test.ts +15 -17
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +1 -1
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +129 -3
- package/src/core/codemirror/copilot/client.ts +9 -2
- package/src/core/codemirror/copilot/getCodes.ts +1 -1
- package/src/core/codemirror/copilot/language-server.ts +12 -1
- package/src/core/codemirror/copilot/transport.ts +34 -8
- package/src/core/codemirror/copilot/types.ts +1 -1
- package/src/core/codemirror/facet.ts +1 -1
- package/src/core/codemirror/language/__tests__/sql.test.ts +4 -4
- package/src/core/codemirror/language/languages/markdown.ts +1 -3
- package/src/core/codemirror/language/languages/python.ts +4 -0
- package/src/core/codemirror/language/languages/sql/completion-builder.ts +1 -1
- package/src/core/codemirror/language/languages/sql/completion-sources.tsx +4 -6
- package/src/core/codemirror/language/languages/sql/sql.ts +1 -3
- package/src/core/codemirror/language/metadata.ts +1 -1
- package/src/core/codemirror/language/panel/sql.tsx +4 -1
- package/src/core/codemirror/language/types.ts +1 -1
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +1 -1
- package/src/core/codemirror/lsp/notebook-lsp.ts +1 -1
- package/src/core/codemirror/misc/__tests__/dnd.test.ts +1 -1
- package/src/core/codemirror/reactive-references/__tests__/analyzer.test.ts +28 -42
- package/src/core/codemirror/rtc/loro/awareness.ts +1 -1
- package/src/core/config/__tests__/config-schema.test.ts +2 -6
- package/src/core/config/config-schema.ts +0 -1
- package/src/core/config/feature-flag.tsx +1 -3
- package/src/core/datasets/data-source-connections.ts +4 -2
- package/src/core/datasets/state.ts +1 -1
- package/src/core/dom/__tests__/htmlUtils.test.ts +8 -14
- package/src/core/dom/__tests__/outline.test.ts +2 -3
- package/src/core/dom/outline.ts +1 -1
- package/src/core/dom/uiregistry.ts +42 -8
- package/src/core/edit-app.tsx +4 -1
- package/src/core/export/__tests__/hooks.test.ts +1 -1
- package/src/core/hotkeys/__tests__/hotkeys.test.ts +1 -1
- package/src/core/hotkeys/shortcuts.ts +1 -1
- package/src/core/islands/__tests__/bridge.test.ts +2 -2
- package/src/core/islands/__tests__/parse.test.ts +8 -7
- package/src/core/islands/bridge.ts +2 -2
- package/src/core/islands/components/output-wrapper.tsx +1 -1
- package/src/core/islands/parse.ts +1 -1
- package/src/core/lsp/__tests__/transport.test.ts +1 -1
- package/src/core/network/CachingRequestRegistry.ts +1 -1
- package/src/core/network/DeferredRequestRegistry.ts +1 -1
- package/src/core/network/__tests__/requests-network.test.ts +1 -1
- package/src/core/network/api.ts +2 -2
- package/src/core/network/requests-lazy.ts +1 -1
- package/src/core/network/requests-toasting.tsx +1 -1
- package/src/core/runtime/runtime.ts +1 -0
- package/src/core/saving/__tests__/filename.test.ts +7 -6
- package/src/core/static/__tests__/download-html.test.ts +16 -15
- package/src/core/static/__tests__/files.test.ts +30 -28
- package/src/core/static/files.ts +1 -1
- package/src/core/vscode/vscode-bindings.ts +1 -1
- package/src/core/wasm/bridge.ts +3 -3
- package/src/core/wasm/worker/tracer.ts +1 -1
- package/src/core/websocket/useWebSocket.tsx +5 -3
- package/src/css/app/Cell.css +5 -2
- package/src/css/globals.css +18 -16
- package/src/custom.d.ts +1 -1
- package/src/hooks/__tests__/useDuplicateShortcuts.test.ts +3 -3
- package/src/hooks/debug.ts +3 -3
- package/src/hooks/useDebounce.ts +1 -1
- package/src/hooks/useEventListener.ts +1 -1
- package/src/hooks/useHotkey.ts +1 -1
- package/src/hooks/useLifecycle.ts +2 -2
- package/src/hooks/useNonce.ts +1 -1
- package/src/hooks/useResizeObserver.ts +2 -2
- package/src/main.tsx +1 -1
- package/src/plugins/core/BadPlugin.tsx +7 -6
- package/src/plugins/core/RenderHTML.tsx +3 -3
- package/src/plugins/core/__test__/registerReactComponent.test.ts +1 -1
- package/src/plugins/core/registerReactComponent.tsx +4 -4
- package/src/plugins/core/rpc.ts +1 -1
- package/src/plugins/impl/CheckboxPlugin.tsx +4 -1
- package/src/plugins/impl/DataEditorPlugin.tsx +8 -3
- package/src/plugins/impl/DataTablePlugin.tsx +5 -2
- package/src/plugins/impl/FileBrowserPlugin.tsx +1 -1
- package/src/plugins/impl/FormPlugin.tsx +2 -3
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +4 -1
- package/src/plugins/impl/__tests__/MatrixPlugin.test.tsx +1 -1
- package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +43 -15
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +3 -12
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +2 -2
- package/src/plugins/impl/anywidget/model.ts +1 -1
- package/src/plugins/impl/anywidget/types.ts +2 -2
- package/src/plugins/impl/anywidget/widget-binding.ts +1 -1
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +5 -2
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +2 -2
- package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +2 -2
- package/src/plugins/impl/data-explorer/components/query-form.tsx +1 -1
- package/src/plugins/impl/data-explorer/functions/function.ts +1 -1
- package/src/plugins/impl/data-explorer/queries/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +1 -1
- package/src/plugins/impl/data-frames/forms/__tests__/form.test.tsx +7 -9
- package/src/plugins/impl/data-frames/forms/renderers.tsx +1 -1
- package/src/plugins/impl/data-frames/utils/operators.ts +1 -1
- package/src/plugins/impl/matplotlib/MatplotlibPlugin.tsx +1 -1
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +1 -1
- package/src/plugins/impl/panel/PanelPlugin.tsx +2 -2
- package/src/plugins/impl/plotly/Plot.tsx +3 -3
- package/src/plugins/impl/plotly/PlotlyPlugin.tsx +65 -103
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +114 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +199 -0
- package/src/plugins/impl/plotly/selection.ts +333 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +13 -14
- package/src/plugins/impl/vega/batched.ts +1 -1
- package/src/plugins/impl/vega/make-selectable.ts +3 -3
- package/src/plugins/impl/vega/types.ts +1 -1
- package/src/plugins/layout/DownloadPlugin.tsx +1 -1
- package/src/plugins/layout/ImageComparisonPlugin.tsx +1 -3
- package/src/plugins/layout/LazyPlugin.tsx +1 -1
- package/src/plugins/layout/RoutesPlugin.tsx +1 -1
- package/src/plugins/layout/mermaid/mermaid.tsx +1 -1
- package/src/plugins/plugins.ts +1 -1
- package/src/plugins/stateless-plugin.ts +4 -2
- package/src/stories/data-explorer.stories.tsx +1 -1
- package/src/stories/dataframe.stories.tsx +1 -1
- package/src/stories/editor.stories.tsx +1 -1
- package/src/stories/select.stories.tsx +1 -1
- package/src/stories/switchable-multi-select.stories.tsx +1 -1
- package/src/utils/Logger.ts +1 -1
- package/src/utils/__tests__/arrays.test.ts +1 -1
- package/src/utils/__tests__/blob.test.ts +1 -1
- package/src/utils/__tests__/cell-urls.test.ts +24 -21
- package/src/utils/__tests__/dates.test.ts +1 -1
- package/src/utils/__tests__/errors.test.ts +1 -1
- package/src/utils/__tests__/filenames.test.ts +15 -14
- package/src/utils/__tests__/json-parser.test.ts +14 -21
- package/src/utils/__tests__/multi-map.test.ts +3 -3
- package/src/utils/__tests__/objects.test.ts +3 -3
- package/src/utils/__tests__/path.test.ts +34 -31
- package/src/utils/__tests__/urls.test.ts +19 -18
- package/src/utils/__tests__/versions.test.ts +5 -5
- package/src/utils/__tests__/waitForWs.test.ts +1 -1
- package/src/utils/arrays.ts +2 -2
- package/src/utils/assertNever.ts +1 -1
- package/src/utils/batch-requests.ts +2 -2
- package/src/utils/createReducer.ts +2 -2
- package/src/utils/id-tree.tsx +2 -2
- package/src/utils/idle.ts +1 -1
- package/src/utils/invariant.ts +1 -2
- package/src/utils/json/base64.ts +2 -5
- package/src/utils/maps.ts +1 -1
- package/src/utils/math.ts +0 -1
- package/src/utils/mime-types.ts +1 -1
- package/src/utils/multi-map.ts +1 -1
- package/src/utils/objects.ts +1 -1
- package/src/utils/once.ts +2 -2
- package/src/utils/staticImplements.ts +1 -1
- package/src/utils/storage/jotai.ts +1 -1
- package/src/utils/tracer.ts +3 -2
- package/dist/_basePickBy-QjOmBDRE.js +0 -110
- package/dist/_baseSet-xgn1IbGV.js +0 -27
- package/dist/architecture-7HQA4BMR-BRyVh_Za.js +0 -6
- package/dist/assets/__vite-browser-external-Us1ds95c.js +0 -1
- package/dist/dist-B0R_ZM4-.js +0 -6
- package/dist/dist-B4a9_9pj.js +0 -5
- package/dist/dist-BCSUKEwO.js +0 -5
- package/dist/dist-BONIDQq6.js +0 -5
- package/dist/dist-BYeRx2hb.js +0 -5
- package/dist/dist-D2Rk1j4R.js +0 -1381
- package/dist/dist-DZjX5TYv.js +0 -5
- package/dist/dist-Dkw9x6kc.js +0 -5
- package/dist/dist-Ds6UaXGR.js +0 -6
- package/dist/dist-KuEJ1Q53.js +0 -8
- package/dist/dist-S72WNyTZ.js +0 -5
- package/dist/dist-bTG-yssT.js +0 -5
- package/dist/dist-diF0sguc.js +0 -8
- package/dist/dist-mJ84BIgu.js +0 -8
- package/dist/dist-wSIhFWQz.js +0 -8
- package/dist/get-CqrzlV1v.js +0 -68
- package/dist/range-CYz5jI--.js +0 -17
- package/dist/stex-CZyTRGVB.js +0 -4
- package/dist/tooltip-DGHTbHl5.js +0 -404
- package/dist/useLifecycle-Dids8BPm.js +0 -173
- /package/dist/{dist-KZI_BHqV.js → dist-CxZvoNao.js} +0 -0
- /package/dist/{invariant-D4hPsZFI.js → invariant-e8eBgdux.js} +0 -0
- /package/dist/{isArrayLikeObject-C-hFPChh.js → isArrayLikeObject-LXbTYiBa.js} +0 -0
- /package/dist/{main-CvkAPtaq.js → main-XimWhSi_.js} +0 -0
- /package/dist/{purify.es-ukiMXY-F.js → purify.es-hTCfRGdl.js} +0 -0
- /package/dist/{react-dom-BKwCWYPW.js → react-dom-BSUuJjCR.js} +0 -0
- /package/dist/{stex-Ze8D4R_5.js → stex-D887Ylhf.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { s as __toESM } from "./chunk-BNovOVIE.js";
|
|
2
2
|
import { t as require_react } from "./react-Bs6Z0kvn.js";
|
|
3
3
|
import { t as require_compiler_runtime } from "./compiler-runtime-B_OLMU9S.js";
|
|
4
|
-
import { a as
|
|
5
|
-
import { t as Check } from "./check-
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { a as createPopperScope, c as VISUALLY_HIDDEN_STYLES, i as Root2$1, l as createLucideIcon, n as Arrow, r as Content, t as Anchor } from "./dist-D_UjpfOY.js";
|
|
5
|
+
import { t as Check } from "./check-CWUkiHmb.js";
|
|
6
|
+
import { d as createSlot, g as Logger, h as Events, m as useComposedRefs, r as cva, y as cn } from "./button-DNlNlZY_.js";
|
|
7
|
+
import { t as require_react_dom } from "./react-dom-BSUuJjCR.js";
|
|
8
8
|
import { t as require_jsx_runtime } from "./jsx-runtime-9hcJiI23.js";
|
|
9
|
-
import {
|
|
10
|
-
import { t as invariant } from "./invariant-
|
|
9
|
+
import { $ as StyleNamespace, X as withFullScreenAsRoot, Z as withSmartCollisionBoundary, at as FocusScope, ct as useId, dt as useLayoutEffect2, et as hideOthers, ft as composeEventHandlers, ht as Primitive, it as Portal, mt as createContextScope, ot as DismissableLayer, rt as useFocusGuards, st as useCallbackRef, tt as Combination_default, ut as useControllableState } from "./zod-C6UGQ3fz.js";
|
|
10
|
+
import { t as invariant } from "./invariant-e8eBgdux.js";
|
|
11
11
|
var ChevronDown = createLucideIcon("chevron-down", [["path", {
|
|
12
12
|
d: "m6 9 6 6 6-6",
|
|
13
13
|
key: "qrunsl"
|
|
@@ -20,264 +20,7 @@ var ChevronDown = createLucideIcon("chevron-down", [["path", {
|
|
|
20
20
|
}], ["path", {
|
|
21
21
|
d: "m6 6 12 12",
|
|
22
22
|
key: "d8bk6v"
|
|
23
|
-
}]]), import_react = /* @__PURE__ */ __toESM(require_react(), 1),
|
|
24
|
-
prefix: String(Math.round(Math.random() * 1e10)),
|
|
25
|
-
current: 0
|
|
26
|
-
}, $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ import_react.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ import_react.createContext(false);
|
|
27
|
-
typeof window < "u" && window.document && window.document.createElement;
|
|
28
|
-
var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
29
|
-
function $b5e257d569688ac6$var$useCounter(e = false) {
|
|
30
|
-
var _a, _b;
|
|
31
|
-
let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = (0, import_react.useRef)(null);
|
|
32
|
-
if (a.current === null && !e) {
|
|
33
|
-
let e2 = (_b = (_a = import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : _a.ReactCurrentOwner) == null ? void 0 : _b.current;
|
|
34
|
-
if (e2) {
|
|
35
|
-
let a2 = $b5e257d569688ac6$var$componentIds.get(e2);
|
|
36
|
-
a2 == null ? $b5e257d569688ac6$var$componentIds.set(e2, {
|
|
37
|
-
id: i.current,
|
|
38
|
-
state: e2.memoizedState
|
|
39
|
-
}) : e2.memoizedState !== a2.state && (i.current = a2.id, $b5e257d569688ac6$var$componentIds.delete(e2));
|
|
40
|
-
}
|
|
41
|
-
a.current = ++i.current;
|
|
42
|
-
}
|
|
43
|
-
return a.current;
|
|
44
|
-
}
|
|
45
|
-
function $b5e257d569688ac6$var$useLegacySSRSafeId(e) {
|
|
46
|
-
let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = $b5e257d569688ac6$var$useCounter(!!e), o = `react-aria${i.prefix}`;
|
|
47
|
-
return e || `${o}-${a}`;
|
|
48
|
-
}
|
|
49
|
-
function $b5e257d569688ac6$var$useModernSSRSafeId(e) {
|
|
50
|
-
let i = import_react.useId(), [a] = (0, import_react.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), o = a ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
51
|
-
return e || `${o}-${i}`;
|
|
52
|
-
}
|
|
53
|
-
var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
54
|
-
function $b5e257d569688ac6$var$getSnapshot() {
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
57
|
-
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
function $b5e257d569688ac6$var$subscribe(e) {
|
|
61
|
-
return () => {
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
65
|
-
return typeof import_react.useSyncExternalStore == "function" ? import_react.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
66
|
-
}
|
|
67
|
-
var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
68
|
-
"Arab",
|
|
69
|
-
"Syrc",
|
|
70
|
-
"Samr",
|
|
71
|
-
"Mand",
|
|
72
|
-
"Thaa",
|
|
73
|
-
"Mend",
|
|
74
|
-
"Nkoo",
|
|
75
|
-
"Adlm",
|
|
76
|
-
"Rohg",
|
|
77
|
-
"Hebr"
|
|
78
|
-
]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
|
|
79
|
-
"ae",
|
|
80
|
-
"ar",
|
|
81
|
-
"arc",
|
|
82
|
-
"bcc",
|
|
83
|
-
"bqi",
|
|
84
|
-
"ckb",
|
|
85
|
-
"dv",
|
|
86
|
-
"fa",
|
|
87
|
-
"glk",
|
|
88
|
-
"he",
|
|
89
|
-
"ku",
|
|
90
|
-
"mzn",
|
|
91
|
-
"nqo",
|
|
92
|
-
"pnb",
|
|
93
|
-
"ps",
|
|
94
|
-
"sd",
|
|
95
|
-
"ug",
|
|
96
|
-
"ur",
|
|
97
|
-
"yi"
|
|
98
|
-
]);
|
|
99
|
-
function $148a7a147e38ea7f$export$702d680b21cbd764(e) {
|
|
100
|
-
if (Intl.Locale) {
|
|
101
|
-
let i2 = new Intl.Locale(e).maximize(), a = typeof i2.getTextInfo == "function" ? i2.getTextInfo() : i2.textInfo;
|
|
102
|
-
if (a) return a.direction === "rtl";
|
|
103
|
-
if (i2.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(i2.script);
|
|
104
|
-
}
|
|
105
|
-
let i = e.split("-")[0];
|
|
106
|
-
return $148a7a147e38ea7f$var$RTL_LANGS.has(i);
|
|
107
|
-
}
|
|
108
|
-
var $1e5a04cdaf7d1af8$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
|
|
109
|
-
function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
|
|
110
|
-
let e = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
111
|
-
try {
|
|
112
|
-
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
113
|
-
} catch {
|
|
114
|
-
e = "en-US";
|
|
115
|
-
}
|
|
116
|
-
return {
|
|
117
|
-
locale: e,
|
|
118
|
-
direction: $148a7a147e38ea7f$export$702d680b21cbd764(e) ? "rtl" : "ltr"
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
|
|
122
|
-
function $1e5a04cdaf7d1af8$var$updateLocale() {
|
|
123
|
-
$1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
124
|
-
for (let e of $1e5a04cdaf7d1af8$var$listeners) e($1e5a04cdaf7d1af8$var$currentLocale);
|
|
125
|
-
}
|
|
126
|
-
function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
|
|
127
|
-
let e = $b5e257d569688ac6$export$535bd6ca7f90a273(), [i, a] = (0, import_react.useState)($1e5a04cdaf7d1af8$var$currentLocale);
|
|
128
|
-
return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
|
|
129
|
-
$1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
130
|
-
}), []), e ? {
|
|
131
|
-
locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
|
|
132
|
-
direction: "ltr"
|
|
133
|
-
} : i;
|
|
134
|
-
}
|
|
135
|
-
var $18f2051aff69b9bf$var$I18nContext = /* @__PURE__ */ import_react.createContext(null);
|
|
136
|
-
function $18f2051aff69b9bf$var$I18nProviderWithLocale(e) {
|
|
137
|
-
let { locale: i, children: a } = e, o = import_react.useMemo(() => ({
|
|
138
|
-
locale: i,
|
|
139
|
-
direction: $148a7a147e38ea7f$export$702d680b21cbd764(i) ? "rtl" : "ltr"
|
|
140
|
-
}), [i]);
|
|
141
|
-
return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: o }, a);
|
|
142
|
-
}
|
|
143
|
-
function $18f2051aff69b9bf$var$I18nProviderWithDefaultLocale(e) {
|
|
144
|
-
let { children: i } = e, a = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
|
|
145
|
-
return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: a }, i);
|
|
146
|
-
}
|
|
147
|
-
function $18f2051aff69b9bf$export$a54013f0d02a8f82(e) {
|
|
148
|
-
let { locale: i, children: a } = e;
|
|
149
|
-
return i ? /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithLocale, {
|
|
150
|
-
locale: i,
|
|
151
|
-
children: a
|
|
152
|
-
}) : /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithDefaultLocale, { children: a });
|
|
153
|
-
}
|
|
154
|
-
function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
|
|
155
|
-
let e = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
|
|
156
|
-
return (0, import_react.useContext)($18f2051aff69b9bf$var$I18nContext) || e;
|
|
157
|
-
}
|
|
158
|
-
var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
|
|
159
|
-
try {
|
|
160
|
-
$488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
161
|
-
} catch {
|
|
162
|
-
}
|
|
163
|
-
var $488c6ddbf4ef74c2$var$supportsUnit = false;
|
|
164
|
-
try {
|
|
165
|
-
$488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
166
|
-
style: "unit",
|
|
167
|
-
unit: "degree"
|
|
168
|
-
}).resolvedOptions().style === "unit";
|
|
169
|
-
} catch {
|
|
170
|
-
}
|
|
171
|
-
var $488c6ddbf4ef74c2$var$UNITS = { degree: { narrow: {
|
|
172
|
-
default: "\xB0",
|
|
173
|
-
"ja-JP": " \u5EA6",
|
|
174
|
-
"zh-TW": "\u5EA6",
|
|
175
|
-
"sl-SI": " \xB0"
|
|
176
|
-
} } }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
177
|
-
format(e) {
|
|
178
|
-
var _a;
|
|
179
|
-
let i = "";
|
|
180
|
-
if (i = !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
181
|
-
let { unit: e2, unitDisplay: a = "short", locale: o } = this.resolvedOptions();
|
|
182
|
-
if (!e2) return i;
|
|
183
|
-
let s = (_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a];
|
|
184
|
-
i += s[o] || s.default;
|
|
185
|
-
}
|
|
186
|
-
return i;
|
|
187
|
-
}
|
|
188
|
-
formatToParts(e) {
|
|
189
|
-
return this.numberFormatter.formatToParts(e);
|
|
190
|
-
}
|
|
191
|
-
formatRange(e, i) {
|
|
192
|
-
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, i);
|
|
193
|
-
if (i < e) throw RangeError("End date must be >= start date");
|
|
194
|
-
return `${this.format(e)} \u2013 ${this.format(i)}`;
|
|
195
|
-
}
|
|
196
|
-
formatRangeToParts(e, i) {
|
|
197
|
-
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, i);
|
|
198
|
-
if (i < e) throw RangeError("End date must be >= start date");
|
|
199
|
-
let a = this.numberFormatter.formatToParts(e), o = this.numberFormatter.formatToParts(i);
|
|
200
|
-
return [
|
|
201
|
-
...a.map((e2) => ({
|
|
202
|
-
...e2,
|
|
203
|
-
source: "startRange"
|
|
204
|
-
})),
|
|
205
|
-
{
|
|
206
|
-
type: "literal",
|
|
207
|
-
value: " \u2013 ",
|
|
208
|
-
source: "shared"
|
|
209
|
-
},
|
|
210
|
-
...o.map((e2) => ({
|
|
211
|
-
...e2,
|
|
212
|
-
source: "endRange"
|
|
213
|
-
}))
|
|
214
|
-
];
|
|
215
|
-
}
|
|
216
|
-
resolvedOptions() {
|
|
217
|
-
let e = this.numberFormatter.resolvedOptions();
|
|
218
|
-
return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (e = {
|
|
219
|
-
...e,
|
|
220
|
-
signDisplay: this.options.signDisplay
|
|
221
|
-
}), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (e = {
|
|
222
|
-
...e,
|
|
223
|
-
style: "unit",
|
|
224
|
-
unit: this.options.unit,
|
|
225
|
-
unitDisplay: this.options.unitDisplay
|
|
226
|
-
}), e;
|
|
227
|
-
}
|
|
228
|
-
constructor(e, i = {}) {
|
|
229
|
-
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i), this.options = i;
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i = {}) {
|
|
233
|
-
var _a;
|
|
234
|
-
let { numberingSystem: a } = i;
|
|
235
|
-
if (a && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${a}`), i.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
236
|
-
let { unit: e2, unitDisplay: a2 = "short" } = i;
|
|
237
|
-
if (!e2) throw Error('unit option must be provided with style: "unit"');
|
|
238
|
-
if (!((_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a2])) throw Error(`Unsupported unit ${e2} with unitDisplay = ${a2}`);
|
|
239
|
-
i = {
|
|
240
|
-
...i,
|
|
241
|
-
style: "decimal"
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
let o = e + (i ? Object.entries(i).sort((e2, i2) => e2[0] < i2[0] ? -1 : 1).join() : "");
|
|
245
|
-
if ($488c6ddbf4ef74c2$var$formatterCache.has(o)) return $488c6ddbf4ef74c2$var$formatterCache.get(o);
|
|
246
|
-
let s = new Intl.NumberFormat(e, i);
|
|
247
|
-
return $488c6ddbf4ef74c2$var$formatterCache.set(o, s), s;
|
|
248
|
-
}
|
|
249
|
-
function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(e, i, a) {
|
|
250
|
-
if (i === "auto") return e.format(a);
|
|
251
|
-
if (i === "never") return e.format(Math.abs(a));
|
|
252
|
-
{
|
|
253
|
-
let o = false;
|
|
254
|
-
if (i === "always" ? o = a > 0 || Object.is(a, 0) : i === "exceptZero" && (Object.is(a, -0) || Object.is(a, 0) ? a = Math.abs(a) : o = a > 0), o) {
|
|
255
|
-
let i2 = e.format(-a), o2 = e.format(a), s = i2.replace(o2, "").replace(/\u200e|\u061C/, "");
|
|
256
|
-
return [...s].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i2.replace(o2, "!!!").replace(s, "+").replace("!!!", o2);
|
|
257
|
-
} else return e.format(a);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
function $a916eb452884faea$export$b7a616150fdb9f44(e = {}) {
|
|
261
|
-
let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
262
|
-
return (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(i, e), [i, e]);
|
|
263
|
-
}
|
|
264
|
-
function assertNever(e) {
|
|
265
|
-
invariant(false, `Unexpected object: ${e}`);
|
|
266
|
-
}
|
|
267
|
-
function logNever(e) {
|
|
268
|
-
return Logger.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
269
|
-
}
|
|
270
|
-
function usePrevious(e) {
|
|
271
|
-
let i = import_react.useRef({
|
|
272
|
-
value: e,
|
|
273
|
-
previous: e
|
|
274
|
-
});
|
|
275
|
-
return import_react.useMemo(() => (i.current.value !== e && (i.current.previous = i.current.value, i.current.value = e), i.current.previous), [e]);
|
|
276
|
-
}
|
|
277
|
-
function clamp(e, [i, a]) {
|
|
278
|
-
return Math.min(a, Math.max(i, e));
|
|
279
|
-
}
|
|
280
|
-
var import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
23
|
+
}]]), import_react = /* @__PURE__ */ __toESM(require_react(), 1), import_jsx_runtime = /* @__PURE__ */ __toESM(require_jsx_runtime(), 1);
|
|
281
24
|
function createCollection(e) {
|
|
282
25
|
let i = e + "CollectionProvider", [a, o] = createContextScope(i), [s, c] = a(i, {
|
|
283
26
|
collectionRef: { current: null },
|
|
@@ -292,7 +35,7 @@ function createCollection(e) {
|
|
|
292
35
|
});
|
|
293
36
|
};
|
|
294
37
|
l.displayName = i;
|
|
295
|
-
let u = e + "CollectionSlot", d = createSlot
|
|
38
|
+
let u = e + "CollectionSlot", d = createSlot(u), f = import_react.forwardRef((e2, i2) => {
|
|
296
39
|
let { scope: a2, children: o2 } = e2;
|
|
297
40
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(d, {
|
|
298
41
|
ref: useComposedRefs(i2, c(u, a2).collectionRef),
|
|
@@ -300,24 +43,24 @@ function createCollection(e) {
|
|
|
300
43
|
});
|
|
301
44
|
});
|
|
302
45
|
f.displayName = u;
|
|
303
|
-
let p = e + "CollectionItemSlot",
|
|
46
|
+
let p = e + "CollectionItemSlot", h = "data-radix-collection-item", g = createSlot(p), v = import_react.forwardRef((e2, i2) => {
|
|
304
47
|
let { scope: a2, children: o2, ...s2 } = e2, l2 = import_react.useRef(null), u2 = useComposedRefs(i2, l2), d2 = c(p, a2);
|
|
305
48
|
return import_react.useEffect(() => (d2.itemMap.set(l2, {
|
|
306
49
|
ref: l2,
|
|
307
50
|
...s2
|
|
308
|
-
}), () => void d2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
309
|
-
[
|
|
51
|
+
}), () => void d2.itemMap.delete(l2))), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(g, {
|
|
52
|
+
[h]: "",
|
|
310
53
|
ref: u2,
|
|
311
54
|
children: o2
|
|
312
55
|
});
|
|
313
56
|
});
|
|
314
|
-
|
|
315
|
-
function
|
|
57
|
+
v.displayName = p;
|
|
58
|
+
function y(i2) {
|
|
316
59
|
let a2 = c(e + "CollectionConsumer", i2);
|
|
317
60
|
return import_react.useCallback(() => {
|
|
318
61
|
let e2 = a2.collectionRef.current;
|
|
319
62
|
if (!e2) return [];
|
|
320
|
-
let i3 = Array.from(e2.querySelectorAll(`[${
|
|
63
|
+
let i3 = Array.from(e2.querySelectorAll(`[${h}]`));
|
|
321
64
|
return Array.from(a2.itemMap.values()).sort((e3, a3) => i3.indexOf(e3.ref.current) - i3.indexOf(a3.ref.current));
|
|
322
65
|
}, [a2.collectionRef, a2.itemMap]);
|
|
323
66
|
}
|
|
@@ -325,9 +68,9 @@ function createCollection(e) {
|
|
|
325
68
|
{
|
|
326
69
|
Provider: l,
|
|
327
70
|
Slot: f,
|
|
328
|
-
ItemSlot:
|
|
71
|
+
ItemSlot: v
|
|
329
72
|
},
|
|
330
|
-
|
|
73
|
+
y,
|
|
331
74
|
o
|
|
332
75
|
];
|
|
333
76
|
}
|
|
@@ -336,79 +79,99 @@ function useDirection(e) {
|
|
|
336
79
|
let i = import_react.useContext(DirectionContext);
|
|
337
80
|
return e || i || "ltr";
|
|
338
81
|
}
|
|
339
|
-
|
|
82
|
+
function usePrevious(e) {
|
|
83
|
+
let i = import_react.useRef({
|
|
84
|
+
value: e,
|
|
85
|
+
previous: e
|
|
86
|
+
});
|
|
87
|
+
return import_react.useMemo(() => (i.current.value !== e && (i.current.previous = i.current.value, i.current.value = e), i.current.previous), [e]);
|
|
88
|
+
}
|
|
89
|
+
var NAME = "Label", Label$2 = import_react.forwardRef((e, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
|
|
90
|
+
...e,
|
|
91
|
+
ref: i,
|
|
92
|
+
onMouseDown: (i2) => {
|
|
93
|
+
var _a;
|
|
94
|
+
i2.target.closest("button, input, select, textarea") || ((_a = e.onMouseDown) == null ? void 0 : _a.call(e, i2), !i2.defaultPrevented && i2.detail > 1 && i2.preventDefault());
|
|
95
|
+
}
|
|
96
|
+
}));
|
|
97
|
+
Label$2.displayName = NAME;
|
|
98
|
+
var Root = Label$2;
|
|
99
|
+
function clamp(e, [i, a]) {
|
|
100
|
+
return Math.min(a, Math.max(i, e));
|
|
101
|
+
}
|
|
102
|
+
var import_react_dom = /* @__PURE__ */ __toESM(require_react_dom(), 1), OPEN_KEYS = [
|
|
340
103
|
" ",
|
|
341
104
|
"Enter",
|
|
342
105
|
"ArrowUp",
|
|
343
106
|
"ArrowDown"
|
|
344
107
|
], SELECTION_KEYS = [" ", "Enter"], SELECT_NAME = "Select", [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME), [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [createCollectionScope, createPopperScope]), usePopperScope = createPopperScope(), [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME), [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME), Select$1 = (e) => {
|
|
345
|
-
let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange:
|
|
108
|
+
let { __scopeSelect: i, children: a, open: o, defaultOpen: s, onOpenChange: l, value: u, defaultValue: d, onValueChange: f, dir: p, name: m, autoComplete: h, disabled: g, required: _, form: v } = e, y = usePopperScope(i), [b, x] = import_react.useState(null), [S, C] = import_react.useState(null), [w, T] = import_react.useState(false), D = useDirection(p), [O, k] = useControllableState({
|
|
346
109
|
prop: o,
|
|
347
110
|
defaultProp: s ?? false,
|
|
348
|
-
onChange:
|
|
111
|
+
onChange: l,
|
|
349
112
|
caller: SELECT_NAME
|
|
350
|
-
}), [
|
|
351
|
-
prop:
|
|
113
|
+
}), [A, j] = useControllableState({
|
|
114
|
+
prop: u,
|
|
352
115
|
defaultProp: d,
|
|
353
116
|
onChange: f,
|
|
354
117
|
caller: SELECT_NAME
|
|
355
|
-
}),
|
|
118
|
+
}), M = import_react.useRef(null), N = b ? v || !!b.closest("form") : true, [P, F] = import_react.useState(/* @__PURE__ */ new Set()), I = Array.from(P).map((e2) => e2.props.value).join(";");
|
|
356
119
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Root2$1, {
|
|
357
120
|
...y,
|
|
358
121
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectProvider, {
|
|
359
122
|
required: _,
|
|
360
123
|
scope: i,
|
|
361
124
|
trigger: b,
|
|
362
|
-
onTriggerChange:
|
|
363
|
-
valueNode:
|
|
364
|
-
onValueNodeChange:
|
|
365
|
-
valueNodeHasChildren:
|
|
366
|
-
onValueNodeHasChildrenChange:
|
|
125
|
+
onTriggerChange: x,
|
|
126
|
+
valueNode: S,
|
|
127
|
+
onValueNodeChange: C,
|
|
128
|
+
valueNodeHasChildren: w,
|
|
129
|
+
onValueNodeHasChildrenChange: T,
|
|
367
130
|
contentId: useId(),
|
|
368
|
-
value:
|
|
369
|
-
onValueChange:
|
|
370
|
-
open:
|
|
371
|
-
onOpenChange:
|
|
372
|
-
dir:
|
|
373
|
-
triggerPointerDownPosRef:
|
|
131
|
+
value: A,
|
|
132
|
+
onValueChange: j,
|
|
133
|
+
open: O,
|
|
134
|
+
onOpenChange: k,
|
|
135
|
+
dir: D,
|
|
136
|
+
triggerPointerDownPosRef: M,
|
|
374
137
|
disabled: g,
|
|
375
138
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Provider, {
|
|
376
139
|
scope: i,
|
|
377
140
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectNativeOptionsProvider, {
|
|
378
141
|
scope: e.__scopeSelect,
|
|
379
142
|
onNativeOptionAdd: import_react.useCallback((e2) => {
|
|
380
|
-
|
|
143
|
+
F((i2) => new Set(i2).add(e2));
|
|
381
144
|
}, []),
|
|
382
145
|
onNativeOptionRemove: import_react.useCallback((e2) => {
|
|
383
|
-
|
|
146
|
+
F((i2) => {
|
|
384
147
|
let a2 = new Set(i2);
|
|
385
148
|
return a2.delete(e2), a2;
|
|
386
149
|
});
|
|
387
150
|
}, []),
|
|
388
151
|
children: a
|
|
389
152
|
})
|
|
390
|
-
}),
|
|
153
|
+
}), N ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectBubbleInput, {
|
|
391
154
|
"aria-hidden": true,
|
|
392
155
|
required: _,
|
|
393
156
|
tabIndex: -1,
|
|
394
157
|
name: m,
|
|
395
158
|
autoComplete: h,
|
|
396
|
-
value:
|
|
397
|
-
onChange: (e2) =>
|
|
159
|
+
value: A,
|
|
160
|
+
onChange: (e2) => j(e2.target.value),
|
|
398
161
|
disabled: g,
|
|
399
162
|
form: v,
|
|
400
|
-
children: [
|
|
401
|
-
},
|
|
163
|
+
children: [A === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "" }) : null, Array.from(P)]
|
|
164
|
+
}, I) : null]
|
|
402
165
|
})
|
|
403
166
|
});
|
|
404
167
|
};
|
|
405
168
|
Select$1.displayName = SELECT_NAME;
|
|
406
169
|
var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e, i) => {
|
|
407
|
-
let { __scopeSelect: a, disabled: o = false, ...s } = e, c = usePopperScope(a), l = useSelectContext(TRIGGER_NAME, a), u = l.disabled || o,
|
|
170
|
+
let { __scopeSelect: a, disabled: o = false, ...s } = e, c = usePopperScope(a), l = useSelectContext(TRIGGER_NAME, a), u = l.disabled || o, d = useComposedRefs(i, l.onTriggerChange), p = useCollection(a), m = import_react.useRef("touch"), [h, g, v] = useTypeaheadSearch((e2) => {
|
|
408
171
|
let i2 = p().filter((e3) => !e3.disabled), a2 = findNextItem(i2, e2, i2.find((e3) => e3.value === l.value));
|
|
409
172
|
a2 !== void 0 && l.onValueChange(a2.value);
|
|
410
173
|
}), y = (e2) => {
|
|
411
|
-
u || (l.onOpenChange(true),
|
|
174
|
+
u || (l.onOpenChange(true), v()), e2 && (l.triggerPointerDownPosRef.current = {
|
|
412
175
|
x: Math.round(e2.pageX),
|
|
413
176
|
y: Math.round(e2.pageY)
|
|
414
177
|
});
|
|
@@ -416,7 +179,7 @@ var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e
|
|
|
416
179
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Anchor, {
|
|
417
180
|
asChild: true,
|
|
418
181
|
...c,
|
|
419
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
182
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
420
183
|
type: "button",
|
|
421
184
|
role: "combobox",
|
|
422
185
|
"aria-controls": l.contentId,
|
|
@@ -429,7 +192,7 @@ var TRIGGER_NAME = "SelectTrigger", SelectTrigger$1 = import_react.forwardRef((e
|
|
|
429
192
|
"data-disabled": u ? "" : void 0,
|
|
430
193
|
"data-placeholder": shouldShowPlaceholder(l.value) ? "" : void 0,
|
|
431
194
|
...s,
|
|
432
|
-
ref:
|
|
195
|
+
ref: d,
|
|
433
196
|
onClick: composeEventHandlers(s.onClick, (e2) => {
|
|
434
197
|
e2.currentTarget.focus(), m.current !== "mouse" && y(e2);
|
|
435
198
|
}),
|
|
@@ -450,7 +213,7 @@ var VALUE_NAME = "SelectValue", SelectValue$1 = import_react.forwardRef((e, i) =
|
|
|
450
213
|
let { __scopeSelect: a, className: o, style: s, children: c, placeholder: l = "", ...u } = e, d = useSelectContext(VALUE_NAME, a), { onValueNodeHasChildrenChange: f } = d, p = c !== void 0, m = useComposedRefs(i, d.onValueNodeChange);
|
|
451
214
|
return useLayoutEffect2(() => {
|
|
452
215
|
f(p);
|
|
453
|
-
}, [f, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
216
|
+
}, [f, p]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
454
217
|
...u,
|
|
455
218
|
ref: m,
|
|
456
219
|
style: { pointerEvents: "none" },
|
|
@@ -460,7 +223,7 @@ var VALUE_NAME = "SelectValue", SelectValue$1 = import_react.forwardRef((e, i) =
|
|
|
460
223
|
SelectValue$1.displayName = VALUE_NAME;
|
|
461
224
|
var ICON_NAME = "SelectIcon", SelectIcon = import_react.forwardRef((e, i) => {
|
|
462
225
|
let { __scopeSelect: a, children: o, ...s } = e;
|
|
463
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
226
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
464
227
|
"aria-hidden": true,
|
|
465
228
|
...s,
|
|
466
229
|
ref: i,
|
|
@@ -479,7 +242,7 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
|
|
|
479
242
|
s(new DocumentFragment());
|
|
480
243
|
}, []), !a.open) {
|
|
481
244
|
let i2 = o;
|
|
482
|
-
return i2 ? import_react_dom
|
|
245
|
+
return i2 ? import_react_dom.createPortal(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContentProvider, {
|
|
483
246
|
scope: e.__scopeSelect,
|
|
484
247
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
|
|
485
248
|
scope: e.__scopeSelect,
|
|
@@ -493,17 +256,17 @@ var CONTENT_NAME = "SelectContent", SelectContent$1 = import_react.forwardRef((e
|
|
|
493
256
|
});
|
|
494
257
|
});
|
|
495
258
|
SelectContent$1.displayName = CONTENT_NAME;
|
|
496
|
-
var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot
|
|
497
|
-
let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: c, onPointerDownOutside: l, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky:
|
|
259
|
+
var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME), CONTENT_IMPL_NAME = "SelectContentImpl", Slot = createSlot("SelectContent.RemoveScroll"), SelectContentImpl = import_react.forwardRef((e, i) => {
|
|
260
|
+
let { __scopeSelect: a, position: o = "item-aligned", onCloseAutoFocus: s, onEscapeKeyDown: c, onPointerDownOutside: l, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: v, hideWhenDetached: y, avoidCollisions: b, ...x } = e, S = useSelectContext(CONTENT_NAME, a), [C, w] = import_react.useState(null), [E, D] = import_react.useState(null), A = useComposedRefs(i, (e2) => w(e2)), [j, M] = import_react.useState(null), [F, L] = import_react.useState(null), R = useCollection(a), [z, B] = import_react.useState(false), V = import_react.useRef(false);
|
|
498
261
|
import_react.useEffect(() => {
|
|
499
262
|
if (C) return hideOthers(C);
|
|
500
263
|
}, [C]), useFocusGuards();
|
|
501
264
|
let H = import_react.useCallback((e2) => {
|
|
502
265
|
let [i2, ...a2] = R().map((e3) => e3.ref.current), [o2] = a2.slice(-1), s2 = document.activeElement;
|
|
503
266
|
for (let a3 of e2) if (a3 === s2 || (a3 == null ? void 0 : a3.scrollIntoView({ block: "nearest" }), a3 === i2 && E && (E.scrollTop = 0), a3 === o2 && E && (E.scrollTop = E.scrollHeight), a3 == null ? void 0 : a3.focus(), document.activeElement !== s2)) return;
|
|
504
|
-
}, [R, E]), U = import_react.useCallback(() => H([
|
|
267
|
+
}, [R, E]), U = import_react.useCallback(() => H([j, C]), [
|
|
505
268
|
H,
|
|
506
|
-
|
|
269
|
+
j,
|
|
507
270
|
C
|
|
508
271
|
]);
|
|
509
272
|
import_react.useEffect(() => {
|
|
@@ -558,7 +321,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
558
321
|
arrowPadding: m,
|
|
559
322
|
collisionBoundary: h,
|
|
560
323
|
collisionPadding: g,
|
|
561
|
-
sticky:
|
|
324
|
+
sticky: v,
|
|
562
325
|
hideWhenDetached: y,
|
|
563
326
|
avoidCollisions: b
|
|
564
327
|
} : {};
|
|
@@ -568,11 +331,11 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
568
331
|
viewport: E,
|
|
569
332
|
onViewportChange: D,
|
|
570
333
|
itemRefCallback: J,
|
|
571
|
-
selectedItem:
|
|
334
|
+
selectedItem: j,
|
|
572
335
|
onItemLeave: Y,
|
|
573
336
|
itemTextRefCallback: Z,
|
|
574
337
|
focusSelectedItem: U,
|
|
575
|
-
selectedItemText:
|
|
338
|
+
selectedItemText: F,
|
|
576
339
|
position: o,
|
|
577
340
|
isPositioned: z,
|
|
578
341
|
searchRef: K,
|
|
@@ -605,7 +368,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
605
368
|
...x,
|
|
606
369
|
...$,
|
|
607
370
|
onPlaced: () => B(true),
|
|
608
|
-
ref:
|
|
371
|
+
ref: A,
|
|
609
372
|
style: {
|
|
610
373
|
display: "flex",
|
|
611
374
|
flexDirection: "column",
|
|
@@ -636,7 +399,7 @@ var CONTENT_MARGIN = 10, [SelectContentProvider, useSelectContentContext] = crea
|
|
|
636
399
|
});
|
|
637
400
|
SelectContentImpl.displayName = CONTENT_IMPL_NAME;
|
|
638
401
|
var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedPosition = import_react.forwardRef((e, i) => {
|
|
639
|
-
let { __scopeSelect: a, onPlaced: o, ...s } = e, c = useSelectContext(CONTENT_NAME, a), l = useSelectContentContext(CONTENT_NAME, a), [u, d] = import_react.useState(null), [f, p] = import_react.useState(null), m = useComposedRefs(i, (e2) => p(e2)), h = useCollection(a), g = import_react.useRef(false),
|
|
402
|
+
let { __scopeSelect: a, onPlaced: o, ...s } = e, c = useSelectContext(CONTENT_NAME, a), l = useSelectContentContext(CONTENT_NAME, a), [u, d] = import_react.useState(null), [f, p] = import_react.useState(null), m = useComposedRefs(i, (e2) => p(e2)), h = useCollection(a), g = import_react.useRef(false), v = import_react.useRef(true), { viewport: y, selectedItem: b, selectedItemText: x, focusSelectedItem: S } = l, C = import_react.useCallback(() => {
|
|
640
403
|
if (c.trigger && c.valueNode && u && f && y && b && x) {
|
|
641
404
|
let e2 = c.trigger.getBoundingClientRect(), i2 = f.getBoundingClientRect(), a2 = c.valueNode.getBoundingClientRect(), s2 = x.getBoundingClientRect();
|
|
642
405
|
if (c.dir !== "rtl") {
|
|
@@ -646,7 +409,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
646
409
|
let o2 = i2.right - s2.right, c2 = window.innerWidth - a2.right - o2, l3 = window.innerWidth - e2.right - c2, d3 = e2.width + l3, f2 = Math.max(d3, i2.width), p3 = window.innerWidth - CONTENT_MARGIN, m3 = clamp(c2, [CONTENT_MARGIN, Math.max(CONTENT_MARGIN, p3 - f2)]);
|
|
647
410
|
u.style.minWidth = d3 + "px", u.style.right = m3 + "px";
|
|
648
411
|
}
|
|
649
|
-
let l2 = h(), d2 = window.innerHeight - CONTENT_MARGIN * 2, p2 = y.scrollHeight, m2 = window.getComputedStyle(f),
|
|
412
|
+
let l2 = h(), d2 = window.innerHeight - CONTENT_MARGIN * 2, p2 = y.scrollHeight, m2 = window.getComputedStyle(f), _ = parseInt(m2.borderTopWidth, 10), v2 = parseInt(m2.paddingTop, 10), S2 = parseInt(m2.borderBottomWidth, 10), C2 = parseInt(m2.paddingBottom, 10), w2 = _ + v2 + p2 + C2 + S2, T2 = Math.min(b.offsetHeight * 5, w2), E = window.getComputedStyle(y), D = parseInt(E.paddingTop, 10), O = parseInt(E.paddingBottom, 10), k = e2.top + e2.height / 2 - CONTENT_MARGIN, A = d2 - k, j = b.offsetHeight / 2, M = b.offsetTop + j, N = _ + v2 + M, P = w2 - N;
|
|
650
413
|
if (N <= k) {
|
|
651
414
|
let e3 = l2.length > 0 && b === l2[l2.length - 1].ref.current;
|
|
652
415
|
u.style.bottom = "0px";
|
|
@@ -655,7 +418,7 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
655
418
|
} else {
|
|
656
419
|
let e3 = l2.length > 0 && b === l2[0].ref.current;
|
|
657
420
|
u.style.top = "0px";
|
|
658
|
-
let i3 = Math.max(k,
|
|
421
|
+
let i3 = Math.max(k, _ + y.offsetTop + (e3 ? D : 0) + j) + P;
|
|
659
422
|
u.style.height = i3 + "px", y.scrollTop = N - k + y.offsetTop;
|
|
660
423
|
}
|
|
661
424
|
u.style.margin = `${CONTENT_MARGIN}px 0`, u.style.minHeight = T2 + "px", u.style.maxHeight = d2 + "px", o == null ? void 0 : o(), requestAnimationFrame(() => g.current = true);
|
|
@@ -673,15 +436,15 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
673
436
|
o
|
|
674
437
|
]);
|
|
675
438
|
useLayoutEffect2(() => C(), [C]);
|
|
676
|
-
let [
|
|
439
|
+
let [w, T] = import_react.useState();
|
|
677
440
|
return useLayoutEffect2(() => {
|
|
678
|
-
f &&
|
|
441
|
+
f && T(window.getComputedStyle(f).zIndex);
|
|
679
442
|
}, [f]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectViewportProvider, {
|
|
680
443
|
scope: a,
|
|
681
444
|
contentWrapper: u,
|
|
682
445
|
shouldExpandOnScrollRef: g,
|
|
683
446
|
onScrollButtonChange: import_react.useCallback((e2) => {
|
|
684
|
-
e2 &&
|
|
447
|
+
e2 && v.current === true && (C(), S == null ? void 0 : S(), v.current = false);
|
|
685
448
|
}, [C, S]),
|
|
686
449
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
687
450
|
ref: d,
|
|
@@ -689,9 +452,9 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
689
452
|
display: "flex",
|
|
690
453
|
flexDirection: "column",
|
|
691
454
|
position: "fixed",
|
|
692
|
-
zIndex:
|
|
455
|
+
zIndex: w
|
|
693
456
|
},
|
|
694
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
457
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
695
458
|
...s,
|
|
696
459
|
ref: m,
|
|
697
460
|
style: {
|
|
@@ -705,16 +468,16 @@ var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition", SelectItemAlignedP
|
|
|
705
468
|
});
|
|
706
469
|
SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
|
|
707
470
|
var POPPER_POSITION_NAME = "SelectPopperPosition", SelectPopperPosition = import_react.forwardRef((e, i) => {
|
|
708
|
-
let { __scopeSelect: a, align:
|
|
471
|
+
let { __scopeSelect: a, align: o = "start", collisionPadding: s = CONTENT_MARGIN, ...c } = e, l = usePopperScope(a);
|
|
709
472
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Content, {
|
|
710
|
-
...u,
|
|
711
473
|
...l,
|
|
474
|
+
...c,
|
|
712
475
|
ref: i,
|
|
713
|
-
align:
|
|
714
|
-
collisionPadding:
|
|
476
|
+
align: o,
|
|
477
|
+
collisionPadding: s,
|
|
715
478
|
style: {
|
|
716
479
|
boxSizing: "border-box",
|
|
717
|
-
...
|
|
480
|
+
...c.style,
|
|
718
481
|
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
719
482
|
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
720
483
|
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
@@ -731,7 +494,7 @@ var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CON
|
|
|
731
494
|
nonce: o
|
|
732
495
|
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Collection.Slot, {
|
|
733
496
|
scope: a,
|
|
734
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
497
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
735
498
|
"data-radix-select-viewport": "",
|
|
736
499
|
role: "presentation",
|
|
737
500
|
...s,
|
|
@@ -765,7 +528,7 @@ var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupConte
|
|
|
765
528
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectGroupContextProvider, {
|
|
766
529
|
scope: a,
|
|
767
530
|
id: s,
|
|
768
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
531
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
769
532
|
role: "group",
|
|
770
533
|
"aria-labelledby": s,
|
|
771
534
|
...o,
|
|
@@ -776,7 +539,7 @@ var GROUP_NAME = "SelectGroup", [SelectGroupContextProvider, useSelectGroupConte
|
|
|
776
539
|
SelectGroup$1.displayName = GROUP_NAME;
|
|
777
540
|
var LABEL_NAME = "SelectLabel", SelectLabel$1 = import_react.forwardRef((e, i) => {
|
|
778
541
|
let { __scopeSelect: a, ...o } = e, s = useSelectGroupContext(LABEL_NAME, a);
|
|
779
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
780
543
|
id: s.id,
|
|
781
544
|
...o,
|
|
782
545
|
ref: i
|
|
@@ -784,7 +547,7 @@ var LABEL_NAME = "SelectLabel", SelectLabel$1 = import_react.forwardRef((e, i) =
|
|
|
784
547
|
});
|
|
785
548
|
SelectLabel$1.displayName = LABEL_NAME;
|
|
786
549
|
var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME), SelectItem$1 = import_react.forwardRef((e, i) => {
|
|
787
|
-
let { __scopeSelect: a, value: o, disabled: s = false, textValue: c, ...l } = e, u = useSelectContext(ITEM_NAME, a), d = useSelectContentContext(ITEM_NAME, a), f = u.value === o, [p, m] = import_react.useState(c ?? ""), [h, g] = import_react.useState(false),
|
|
550
|
+
let { __scopeSelect: a, value: o, disabled: s = false, textValue: c, ...l } = e, u = useSelectContext(ITEM_NAME, a), d = useSelectContentContext(ITEM_NAME, a), f = u.value === o, [p, m] = import_react.useState(c ?? ""), [h, g] = import_react.useState(false), v = useComposedRefs(i, (e2) => {
|
|
788
551
|
var _a;
|
|
789
552
|
return (_a = d.itemRefCallback) == null ? void 0 : _a.call(d, e2, o, s);
|
|
790
553
|
}), y = useId(), b = import_react.useRef("touch"), x = () => {
|
|
@@ -805,7 +568,7 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
|
|
|
805
568
|
value: o,
|
|
806
569
|
disabled: s,
|
|
807
570
|
textValue: p,
|
|
808
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
809
572
|
role: "option",
|
|
810
573
|
"aria-labelledby": y,
|
|
811
574
|
"data-highlighted": h ? "" : void 0,
|
|
@@ -815,7 +578,7 @@ var ITEM_NAME = "SelectItem", [SelectItemContextProvider, useSelectItemContext]
|
|
|
815
578
|
"data-disabled": s ? "" : void 0,
|
|
816
579
|
tabIndex: s ? void 0 : -1,
|
|
817
580
|
...l,
|
|
818
|
-
ref:
|
|
581
|
+
ref: v,
|
|
819
582
|
onFocus: composeEventHandlers(l.onFocus, () => g(true)),
|
|
820
583
|
onBlur: composeEventHandlers(l.onBlur, () => g(false)),
|
|
821
584
|
onClick: composeEventHandlers(l.onClick, () => {
|
|
@@ -847,168 +610,415 @@ SelectItem$1.displayName = ITEM_NAME;
|
|
|
847
610
|
var ITEM_TEXT_NAME = "SelectItemText", SelectItemText = import_react.forwardRef((e, i) => {
|
|
848
611
|
let { __scopeSelect: a, className: o, style: s, ...c } = e, l = useSelectContext(ITEM_TEXT_NAME, a), u = useSelectContentContext(ITEM_TEXT_NAME, a), d = useSelectItemContext(ITEM_TEXT_NAME, a), f = useSelectNativeOptionsContext(ITEM_TEXT_NAME, a), [p, m] = import_react.useState(null), h = useComposedRefs(i, (e2) => m(e2), d.onItemTextChange, (e2) => {
|
|
849
612
|
var _a;
|
|
850
|
-
return (_a = u.itemTextRefCallback) == null ? void 0 : _a.call(u, e2, d.value, d.disabled);
|
|
851
|
-
}), g = p == null ? void 0 : p.textContent,
|
|
852
|
-
value: d.value,
|
|
853
|
-
disabled: d.disabled,
|
|
854
|
-
children: g
|
|
855
|
-
}, d.value), [
|
|
856
|
-
d.disabled,
|
|
857
|
-
d.value,
|
|
858
|
-
g
|
|
859
|
-
]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = f;
|
|
860
|
-
return useLayoutEffect2(() => (y(
|
|
861
|
-
y,
|
|
862
|
-
b,
|
|
863
|
-
|
|
864
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
865
|
-
id: d.textId,
|
|
866
|
-
...c,
|
|
867
|
-
ref: h
|
|
868
|
-
}), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? import_react_dom
|
|
869
|
-
});
|
|
870
|
-
SelectItemText.displayName = ITEM_TEXT_NAME;
|
|
871
|
-
var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_react.forwardRef((e, i) => {
|
|
872
|
-
let { __scopeSelect: a, ...o } = e;
|
|
873
|
-
return useSelectItemContext(ITEM_INDICATOR_NAME, a).isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
874
|
-
"aria-hidden": true,
|
|
875
|
-
...o,
|
|
876
|
-
ref: i
|
|
877
|
-
}) : null;
|
|
878
|
-
});
|
|
879
|
-
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
880
|
-
var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = import_react.forwardRef((e, i) => {
|
|
881
|
-
let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
|
|
882
|
-
return useLayoutEffect2(() => {
|
|
883
|
-
if (a.viewport && a.isPositioned) {
|
|
884
|
-
let e2 = function() {
|
|
885
|
-
c(i2.scrollTop > 0);
|
|
886
|
-
}, i2 = a.viewport;
|
|
887
|
-
return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
|
|
888
|
-
}
|
|
889
|
-
}, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
|
|
890
|
-
...e,
|
|
891
|
-
ref: l,
|
|
892
|
-
onAutoScroll: () => {
|
|
893
|
-
let { viewport: e2, selectedItem: i2 } = a;
|
|
894
|
-
e2 && i2 && (e2.scrollTop -= i2.offsetHeight);
|
|
895
|
-
}
|
|
896
|
-
}) : null;
|
|
897
|
-
});
|
|
898
|
-
SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
|
|
899
|
-
var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton", SelectScrollDownButton = import_react.forwardRef((e, i) => {
|
|
900
|
-
let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
|
|
901
|
-
return useLayoutEffect2(() => {
|
|
902
|
-
if (a.viewport && a.isPositioned) {
|
|
903
|
-
let e2 = function() {
|
|
904
|
-
let e3 = i2.scrollHeight - i2.clientHeight;
|
|
905
|
-
c(Math.ceil(i2.scrollTop) < e3);
|
|
906
|
-
}, i2 = a.viewport;
|
|
907
|
-
return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
|
|
908
|
-
}
|
|
909
|
-
}, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
|
|
910
|
-
...e,
|
|
911
|
-
ref: l,
|
|
912
|
-
onAutoScroll: () => {
|
|
913
|
-
let { viewport: e2, selectedItem: i2 } = a;
|
|
914
|
-
e2 && i2 && (e2.scrollTop += i2.offsetHeight);
|
|
915
|
-
}
|
|
916
|
-
}) : null;
|
|
917
|
-
});
|
|
918
|
-
SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
|
|
919
|
-
var SelectScrollButtonImpl = import_react.forwardRef((e, i) => {
|
|
920
|
-
let { __scopeSelect: a, onAutoScroll: o, ...s } = e, c = useSelectContentContext("SelectScrollButton", a), l = import_react.useRef(null), u = useCollection(a), d = import_react.useCallback(() => {
|
|
921
|
-
l.current !== null && (window.clearInterval(l.current), l.current = null);
|
|
922
|
-
}, []);
|
|
923
|
-
return import_react.useEffect(() => () => d(), [d]), useLayoutEffect2(() => {
|
|
924
|
-
var _a, _b;
|
|
925
|
-
(_b = (_a = u().find((e2) => e2.ref.current === document.activeElement)) == null ? void 0 : _a.ref.current) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
|
|
926
|
-
}, [u]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
927
|
-
"aria-hidden": true,
|
|
928
|
-
...s,
|
|
929
|
-
ref: i,
|
|
930
|
-
style: {
|
|
931
|
-
flexShrink: 0,
|
|
932
|
-
...s.style
|
|
933
|
-
},
|
|
934
|
-
onPointerDown: composeEventHandlers(s.onPointerDown, () => {
|
|
935
|
-
l.current === null && (l.current = window.setInterval(o, 50));
|
|
936
|
-
}),
|
|
937
|
-
onPointerMove: composeEventHandlers(s.onPointerMove, () => {
|
|
938
|
-
var _a;
|
|
939
|
-
(_a = c.onItemLeave) == null ? void 0 : _a.call(c), l.current === null && (l.current = window.setInterval(o, 50));
|
|
940
|
-
}),
|
|
941
|
-
onPointerLeave: composeEventHandlers(s.onPointerLeave, () => {
|
|
942
|
-
d();
|
|
943
|
-
})
|
|
944
|
-
});
|
|
945
|
-
}), SEPARATOR_NAME = "SelectSeparator", SelectSeparator$1 = import_react.forwardRef((e, i) => {
|
|
946
|
-
let { __scopeSelect: a, ...o } = e;
|
|
947
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive
|
|
948
|
-
"aria-hidden": true,
|
|
949
|
-
...o,
|
|
950
|
-
ref: i
|
|
951
|
-
});
|
|
952
|
-
});
|
|
953
|
-
SelectSeparator$1.displayName = SEPARATOR_NAME;
|
|
954
|
-
var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) => {
|
|
955
|
-
let { __scopeSelect: a, ...o } = e,
|
|
956
|
-
return
|
|
957
|
-
...
|
|
958
|
-
...o,
|
|
959
|
-
ref: i
|
|
960
|
-
}) : null;
|
|
961
|
-
});
|
|
962
|
-
SelectArrow.displayName = ARROW_NAME;
|
|
963
|
-
var BUBBLE_INPUT_NAME = "SelectBubbleInput", SelectBubbleInput = import_react.forwardRef(({ __scopeSelect: e, value: i, ...a }, o) => {
|
|
964
|
-
let
|
|
965
|
-
return import_react.useEffect(() => {
|
|
966
|
-
let e2 =
|
|
967
|
-
if (!e2) return;
|
|
968
|
-
let a2 = window.HTMLSelectElement.prototype, o2 = Object.getOwnPropertyDescriptor(a2, "value").set;
|
|
969
|
-
if (u !== i && o2) {
|
|
970
|
-
let a3 = new Event("change", { bubbles: true });
|
|
971
|
-
o2.call(e2, i), e2.dispatchEvent(a3);
|
|
613
|
+
return (_a = u.itemTextRefCallback) == null ? void 0 : _a.call(u, e2, d.value, d.disabled);
|
|
614
|
+
}), g = p == null ? void 0 : p.textContent, v = import_react.useMemo(() => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", {
|
|
615
|
+
value: d.value,
|
|
616
|
+
disabled: d.disabled,
|
|
617
|
+
children: g
|
|
618
|
+
}, d.value), [
|
|
619
|
+
d.disabled,
|
|
620
|
+
d.value,
|
|
621
|
+
g
|
|
622
|
+
]), { onNativeOptionAdd: y, onNativeOptionRemove: b } = f;
|
|
623
|
+
return useLayoutEffect2(() => (y(v), () => b(v)), [
|
|
624
|
+
y,
|
|
625
|
+
b,
|
|
626
|
+
v
|
|
627
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
628
|
+
id: d.textId,
|
|
629
|
+
...c,
|
|
630
|
+
ref: h
|
|
631
|
+
}), d.isSelected && l.valueNode && !l.valueNodeHasChildren ? import_react_dom.createPortal(c.children, l.valueNode) : null] });
|
|
632
|
+
});
|
|
633
|
+
SelectItemText.displayName = ITEM_TEXT_NAME;
|
|
634
|
+
var ITEM_INDICATOR_NAME = "SelectItemIndicator", SelectItemIndicator = import_react.forwardRef((e, i) => {
|
|
635
|
+
let { __scopeSelect: a, ...o } = e;
|
|
636
|
+
return useSelectItemContext(ITEM_INDICATOR_NAME, a).isSelected ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
637
|
+
"aria-hidden": true,
|
|
638
|
+
...o,
|
|
639
|
+
ref: i
|
|
640
|
+
}) : null;
|
|
641
|
+
});
|
|
642
|
+
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
643
|
+
var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton", SelectScrollUpButton = import_react.forwardRef((e, i) => {
|
|
644
|
+
let a = useSelectContentContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
|
|
645
|
+
return useLayoutEffect2(() => {
|
|
646
|
+
if (a.viewport && a.isPositioned) {
|
|
647
|
+
let e2 = function() {
|
|
648
|
+
c(i2.scrollTop > 0);
|
|
649
|
+
}, i2 = a.viewport;
|
|
650
|
+
return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
|
|
651
|
+
}
|
|
652
|
+
}, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
|
|
653
|
+
...e,
|
|
654
|
+
ref: l,
|
|
655
|
+
onAutoScroll: () => {
|
|
656
|
+
let { viewport: e2, selectedItem: i2 } = a;
|
|
657
|
+
e2 && i2 && (e2.scrollTop -= i2.offsetHeight);
|
|
658
|
+
}
|
|
659
|
+
}) : null;
|
|
660
|
+
});
|
|
661
|
+
SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
|
|
662
|
+
var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton", SelectScrollDownButton = import_react.forwardRef((e, i) => {
|
|
663
|
+
let a = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), o = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, e.__scopeSelect), [s, c] = import_react.useState(false), l = useComposedRefs(i, o.onScrollButtonChange);
|
|
664
|
+
return useLayoutEffect2(() => {
|
|
665
|
+
if (a.viewport && a.isPositioned) {
|
|
666
|
+
let e2 = function() {
|
|
667
|
+
let e3 = i2.scrollHeight - i2.clientHeight;
|
|
668
|
+
c(Math.ceil(i2.scrollTop) < e3);
|
|
669
|
+
}, i2 = a.viewport;
|
|
670
|
+
return e2(), i2.addEventListener("scroll", e2), () => i2.removeEventListener("scroll", e2);
|
|
671
|
+
}
|
|
672
|
+
}, [a.viewport, a.isPositioned]), s ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectScrollButtonImpl, {
|
|
673
|
+
...e,
|
|
674
|
+
ref: l,
|
|
675
|
+
onAutoScroll: () => {
|
|
676
|
+
let { viewport: e2, selectedItem: i2 } = a;
|
|
677
|
+
e2 && i2 && (e2.scrollTop += i2.offsetHeight);
|
|
678
|
+
}
|
|
679
|
+
}) : null;
|
|
680
|
+
});
|
|
681
|
+
SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
|
|
682
|
+
var SelectScrollButtonImpl = import_react.forwardRef((e, i) => {
|
|
683
|
+
let { __scopeSelect: a, onAutoScroll: o, ...s } = e, c = useSelectContentContext("SelectScrollButton", a), l = import_react.useRef(null), u = useCollection(a), d = import_react.useCallback(() => {
|
|
684
|
+
l.current !== null && (window.clearInterval(l.current), l.current = null);
|
|
685
|
+
}, []);
|
|
686
|
+
return import_react.useEffect(() => () => d(), [d]), useLayoutEffect2(() => {
|
|
687
|
+
var _a, _b;
|
|
688
|
+
(_b = (_a = u().find((e2) => e2.ref.current === document.activeElement)) == null ? void 0 : _a.ref.current) == null ? void 0 : _b.scrollIntoView({ block: "nearest" });
|
|
689
|
+
}, [u]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
690
|
+
"aria-hidden": true,
|
|
691
|
+
...s,
|
|
692
|
+
ref: i,
|
|
693
|
+
style: {
|
|
694
|
+
flexShrink: 0,
|
|
695
|
+
...s.style
|
|
696
|
+
},
|
|
697
|
+
onPointerDown: composeEventHandlers(s.onPointerDown, () => {
|
|
698
|
+
l.current === null && (l.current = window.setInterval(o, 50));
|
|
699
|
+
}),
|
|
700
|
+
onPointerMove: composeEventHandlers(s.onPointerMove, () => {
|
|
701
|
+
var _a;
|
|
702
|
+
(_a = c.onItemLeave) == null ? void 0 : _a.call(c), l.current === null && (l.current = window.setInterval(o, 50));
|
|
703
|
+
}),
|
|
704
|
+
onPointerLeave: composeEventHandlers(s.onPointerLeave, () => {
|
|
705
|
+
d();
|
|
706
|
+
})
|
|
707
|
+
});
|
|
708
|
+
}), SEPARATOR_NAME = "SelectSeparator", SelectSeparator$1 = import_react.forwardRef((e, i) => {
|
|
709
|
+
let { __scopeSelect: a, ...o } = e;
|
|
710
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
711
|
+
"aria-hidden": true,
|
|
712
|
+
...o,
|
|
713
|
+
ref: i
|
|
714
|
+
});
|
|
715
|
+
});
|
|
716
|
+
SelectSeparator$1.displayName = SEPARATOR_NAME;
|
|
717
|
+
var ARROW_NAME = "SelectArrow", SelectArrow = import_react.forwardRef((e, i) => {
|
|
718
|
+
let { __scopeSelect: a, ...o } = e, s = usePopperScope(a), c = useSelectContext(ARROW_NAME, a), l = useSelectContentContext(ARROW_NAME, a);
|
|
719
|
+
return c.open && l.position === "popper" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Arrow, {
|
|
720
|
+
...s,
|
|
721
|
+
...o,
|
|
722
|
+
ref: i
|
|
723
|
+
}) : null;
|
|
724
|
+
});
|
|
725
|
+
SelectArrow.displayName = ARROW_NAME;
|
|
726
|
+
var BUBBLE_INPUT_NAME = "SelectBubbleInput", SelectBubbleInput = import_react.forwardRef(({ __scopeSelect: e, value: i, ...a }, o) => {
|
|
727
|
+
let c = import_react.useRef(null), l = useComposedRefs(o, c), u = usePrevious(i);
|
|
728
|
+
return import_react.useEffect(() => {
|
|
729
|
+
let e2 = c.current;
|
|
730
|
+
if (!e2) return;
|
|
731
|
+
let a2 = window.HTMLSelectElement.prototype, o2 = Object.getOwnPropertyDescriptor(a2, "value").set;
|
|
732
|
+
if (u !== i && o2) {
|
|
733
|
+
let a3 = new Event("change", { bubbles: true });
|
|
734
|
+
o2.call(e2, i), e2.dispatchEvent(a3);
|
|
735
|
+
}
|
|
736
|
+
}, [u, i]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.select, {
|
|
737
|
+
...a,
|
|
738
|
+
style: {
|
|
739
|
+
...VISUALLY_HIDDEN_STYLES,
|
|
740
|
+
...a.style
|
|
741
|
+
},
|
|
742
|
+
ref: l,
|
|
743
|
+
defaultValue: i
|
|
744
|
+
});
|
|
745
|
+
});
|
|
746
|
+
SelectBubbleInput.displayName = BUBBLE_INPUT_NAME;
|
|
747
|
+
function shouldShowPlaceholder(e) {
|
|
748
|
+
return e === "" || e === void 0;
|
|
749
|
+
}
|
|
750
|
+
function useTypeaheadSearch(e) {
|
|
751
|
+
let i = useCallbackRef(e), a = import_react.useRef(""), o = import_react.useRef(0), s = import_react.useCallback((e2) => {
|
|
752
|
+
let s2 = a.current + e2;
|
|
753
|
+
i(s2), (function e3(i2) {
|
|
754
|
+
a.current = i2, window.clearTimeout(o.current), i2 !== "" && (o.current = window.setTimeout(() => e3(""), 1e3));
|
|
755
|
+
})(s2);
|
|
756
|
+
}, [i]), c = import_react.useCallback(() => {
|
|
757
|
+
a.current = "", window.clearTimeout(o.current);
|
|
758
|
+
}, []);
|
|
759
|
+
return import_react.useEffect(() => () => window.clearTimeout(o.current), []), [
|
|
760
|
+
a,
|
|
761
|
+
s,
|
|
762
|
+
c
|
|
763
|
+
];
|
|
764
|
+
}
|
|
765
|
+
function findNextItem(e, i, a) {
|
|
766
|
+
let o = i.length > 1 && Array.from(i).every((e2) => e2 === i[0]) ? i[0] : i, s = a ? e.indexOf(a) : -1, c = wrapArray(e, Math.max(s, 0));
|
|
767
|
+
o.length === 1 && (c = c.filter((e2) => e2 !== a));
|
|
768
|
+
let l = c.find((e2) => e2.textValue.toLowerCase().startsWith(o.toLowerCase()));
|
|
769
|
+
return l === a ? void 0 : l;
|
|
770
|
+
}
|
|
771
|
+
function wrapArray(e, i) {
|
|
772
|
+
return e.map((a, o) => e[(i + o) % e.length]);
|
|
773
|
+
}
|
|
774
|
+
var Root2 = Select$1, Trigger = SelectTrigger$1, Value = SelectValue$1, Icon = SelectIcon, Portal$1 = SelectPortal$1, Content2 = SelectContent$1, Viewport = SelectViewport, Group = SelectGroup$1, Label$1 = SelectLabel$1, Item = SelectItem$1, ItemText = SelectItemText, ItemIndicator = SelectItemIndicator, ScrollUpButton = SelectScrollUpButton, ScrollDownButton = SelectScrollDownButton, Separator = SelectSeparator$1, $b5e257d569688ac6$var$defaultContext = {
|
|
775
|
+
prefix: String(Math.round(Math.random() * 1e10)),
|
|
776
|
+
current: 0
|
|
777
|
+
}, $b5e257d569688ac6$var$SSRContext = /* @__PURE__ */ import_react.createContext($b5e257d569688ac6$var$defaultContext), $b5e257d569688ac6$var$IsSSRContext = /* @__PURE__ */ import_react.createContext(false);
|
|
778
|
+
typeof window < "u" && window.document && window.document.createElement;
|
|
779
|
+
var $b5e257d569688ac6$var$componentIds = /* @__PURE__ */ new WeakMap();
|
|
780
|
+
function $b5e257d569688ac6$var$useCounter(e = false) {
|
|
781
|
+
var _a, _b;
|
|
782
|
+
let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = (0, import_react.useRef)(null);
|
|
783
|
+
if (a.current === null && !e) {
|
|
784
|
+
let e2 = (_b = (_a = import_react.default.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : _a.ReactCurrentOwner) == null ? void 0 : _b.current;
|
|
785
|
+
if (e2) {
|
|
786
|
+
let a2 = $b5e257d569688ac6$var$componentIds.get(e2);
|
|
787
|
+
a2 == null ? $b5e257d569688ac6$var$componentIds.set(e2, {
|
|
788
|
+
id: i.current,
|
|
789
|
+
state: e2.memoizedState
|
|
790
|
+
}) : e2.memoizedState !== a2.state && (i.current = a2.id, $b5e257d569688ac6$var$componentIds.delete(e2));
|
|
791
|
+
}
|
|
792
|
+
a.current = ++i.current;
|
|
793
|
+
}
|
|
794
|
+
return a.current;
|
|
795
|
+
}
|
|
796
|
+
function $b5e257d569688ac6$var$useLegacySSRSafeId(e) {
|
|
797
|
+
let i = (0, import_react.useContext)($b5e257d569688ac6$var$SSRContext), a = $b5e257d569688ac6$var$useCounter(!!e), o = `react-aria${i.prefix}`;
|
|
798
|
+
return e || `${o}-${a}`;
|
|
799
|
+
}
|
|
800
|
+
function $b5e257d569688ac6$var$useModernSSRSafeId(e) {
|
|
801
|
+
let i = import_react.useId(), [a] = (0, import_react.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()), o = a ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
802
|
+
return e || `${o}-${i}`;
|
|
803
|
+
}
|
|
804
|
+
var $b5e257d569688ac6$export$619500959fc48b26 = typeof import_react.useId == "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
805
|
+
function $b5e257d569688ac6$var$getSnapshot() {
|
|
806
|
+
return false;
|
|
807
|
+
}
|
|
808
|
+
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
809
|
+
return true;
|
|
810
|
+
}
|
|
811
|
+
function $b5e257d569688ac6$var$subscribe(e) {
|
|
812
|
+
return () => {
|
|
813
|
+
};
|
|
814
|
+
}
|
|
815
|
+
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
816
|
+
return typeof import_react.useSyncExternalStore == "function" ? import_react.useSyncExternalStore($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot) : (0, import_react.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
817
|
+
}
|
|
818
|
+
var $148a7a147e38ea7f$var$RTL_SCRIPTS = /* @__PURE__ */ new Set([
|
|
819
|
+
"Arab",
|
|
820
|
+
"Syrc",
|
|
821
|
+
"Samr",
|
|
822
|
+
"Mand",
|
|
823
|
+
"Thaa",
|
|
824
|
+
"Mend",
|
|
825
|
+
"Nkoo",
|
|
826
|
+
"Adlm",
|
|
827
|
+
"Rohg",
|
|
828
|
+
"Hebr"
|
|
829
|
+
]), $148a7a147e38ea7f$var$RTL_LANGS = /* @__PURE__ */ new Set([
|
|
830
|
+
"ae",
|
|
831
|
+
"ar",
|
|
832
|
+
"arc",
|
|
833
|
+
"bcc",
|
|
834
|
+
"bqi",
|
|
835
|
+
"ckb",
|
|
836
|
+
"dv",
|
|
837
|
+
"fa",
|
|
838
|
+
"glk",
|
|
839
|
+
"he",
|
|
840
|
+
"ku",
|
|
841
|
+
"mzn",
|
|
842
|
+
"nqo",
|
|
843
|
+
"pnb",
|
|
844
|
+
"ps",
|
|
845
|
+
"sd",
|
|
846
|
+
"ug",
|
|
847
|
+
"ur",
|
|
848
|
+
"yi"
|
|
849
|
+
]);
|
|
850
|
+
function $148a7a147e38ea7f$export$702d680b21cbd764(e) {
|
|
851
|
+
if (Intl.Locale) {
|
|
852
|
+
let i2 = new Intl.Locale(e).maximize(), a = typeof i2.getTextInfo == "function" ? i2.getTextInfo() : i2.textInfo;
|
|
853
|
+
if (a) return a.direction === "rtl";
|
|
854
|
+
if (i2.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(i2.script);
|
|
855
|
+
}
|
|
856
|
+
let i = e.split("-")[0];
|
|
857
|
+
return $148a7a147e38ea7f$var$RTL_LANGS.has(i);
|
|
858
|
+
}
|
|
859
|
+
var $1e5a04cdaf7d1af8$var$localeSymbol = /* @__PURE__ */ Symbol.for("react-aria.i18n.locale");
|
|
860
|
+
function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
|
|
861
|
+
let e = typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
|
|
862
|
+
try {
|
|
863
|
+
Intl.DateTimeFormat.supportedLocalesOf([e]);
|
|
864
|
+
} catch {
|
|
865
|
+
e = "en-US";
|
|
866
|
+
}
|
|
867
|
+
return {
|
|
868
|
+
locale: e,
|
|
869
|
+
direction: $148a7a147e38ea7f$export$702d680b21cbd764(e) ? "rtl" : "ltr"
|
|
870
|
+
};
|
|
871
|
+
}
|
|
872
|
+
var $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(), $1e5a04cdaf7d1af8$var$listeners = /* @__PURE__ */ new Set();
|
|
873
|
+
function $1e5a04cdaf7d1af8$var$updateLocale() {
|
|
874
|
+
$1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
|
|
875
|
+
for (let e of $1e5a04cdaf7d1af8$var$listeners) e($1e5a04cdaf7d1af8$var$currentLocale);
|
|
876
|
+
}
|
|
877
|
+
function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
|
|
878
|
+
let e = $b5e257d569688ac6$export$535bd6ca7f90a273(), [i, a] = (0, import_react.useState)($1e5a04cdaf7d1af8$var$currentLocale);
|
|
879
|
+
return (0, import_react.useEffect)(() => ($1e5a04cdaf7d1af8$var$listeners.size === 0 && window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale), $1e5a04cdaf7d1af8$var$listeners.add(a), () => {
|
|
880
|
+
$1e5a04cdaf7d1af8$var$listeners.delete(a), $1e5a04cdaf7d1af8$var$listeners.size === 0 && window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
|
|
881
|
+
}), []), e ? {
|
|
882
|
+
locale: typeof window < "u" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || "en-US",
|
|
883
|
+
direction: "ltr"
|
|
884
|
+
} : i;
|
|
885
|
+
}
|
|
886
|
+
var $18f2051aff69b9bf$var$I18nContext = /* @__PURE__ */ import_react.createContext(null);
|
|
887
|
+
function $18f2051aff69b9bf$var$I18nProviderWithLocale(e) {
|
|
888
|
+
let { locale: i, children: a } = e, o = import_react.useMemo(() => ({
|
|
889
|
+
locale: i,
|
|
890
|
+
direction: $148a7a147e38ea7f$export$702d680b21cbd764(i) ? "rtl" : "ltr"
|
|
891
|
+
}), [i]);
|
|
892
|
+
return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: o }, a);
|
|
893
|
+
}
|
|
894
|
+
function $18f2051aff69b9bf$var$I18nProviderWithDefaultLocale(e) {
|
|
895
|
+
let { children: i } = e, a = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
|
|
896
|
+
return /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nContext.Provider, { value: a }, i);
|
|
897
|
+
}
|
|
898
|
+
function $18f2051aff69b9bf$export$a54013f0d02a8f82(e) {
|
|
899
|
+
let { locale: i, children: a } = e;
|
|
900
|
+
return i ? /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithLocale, {
|
|
901
|
+
locale: i,
|
|
902
|
+
children: a
|
|
903
|
+
}) : /* @__PURE__ */ import_react.createElement($18f2051aff69b9bf$var$I18nProviderWithDefaultLocale, { children: a });
|
|
904
|
+
}
|
|
905
|
+
function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
|
|
906
|
+
let e = $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a();
|
|
907
|
+
return (0, import_react.useContext)($18f2051aff69b9bf$var$I18nContext) || e;
|
|
908
|
+
}
|
|
909
|
+
var $488c6ddbf4ef74c2$var$formatterCache = /* @__PURE__ */ new Map(), $488c6ddbf4ef74c2$var$supportsSignDisplay = false;
|
|
910
|
+
try {
|
|
911
|
+
$488c6ddbf4ef74c2$var$supportsSignDisplay = new Intl.NumberFormat("de-DE", { signDisplay: "exceptZero" }).resolvedOptions().signDisplay === "exceptZero";
|
|
912
|
+
} catch {
|
|
913
|
+
}
|
|
914
|
+
var $488c6ddbf4ef74c2$var$supportsUnit = false;
|
|
915
|
+
try {
|
|
916
|
+
$488c6ddbf4ef74c2$var$supportsUnit = new Intl.NumberFormat("de-DE", {
|
|
917
|
+
style: "unit",
|
|
918
|
+
unit: "degree"
|
|
919
|
+
}).resolvedOptions().style === "unit";
|
|
920
|
+
} catch {
|
|
921
|
+
}
|
|
922
|
+
var $488c6ddbf4ef74c2$var$UNITS = { degree: { narrow: {
|
|
923
|
+
default: "\xB0",
|
|
924
|
+
"ja-JP": " \u5EA6",
|
|
925
|
+
"zh-TW": "\u5EA6",
|
|
926
|
+
"sl-SI": " \xB0"
|
|
927
|
+
} } }, $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 = class {
|
|
928
|
+
format(e) {
|
|
929
|
+
var _a;
|
|
930
|
+
let i = "";
|
|
931
|
+
if (i = !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null ? $488c6ddbf4ef74c2$export$711b50b3c525e0f2(this.numberFormatter, this.options.signDisplay, e) : this.numberFormatter.format(e), this.options.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
932
|
+
let { unit: e2, unitDisplay: a = "short", locale: o } = this.resolvedOptions();
|
|
933
|
+
if (!e2) return i;
|
|
934
|
+
let s = (_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a];
|
|
935
|
+
i += s[o] || s.default;
|
|
972
936
|
}
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
function
|
|
985
|
-
|
|
937
|
+
return i;
|
|
938
|
+
}
|
|
939
|
+
formatToParts(e) {
|
|
940
|
+
return this.numberFormatter.formatToParts(e);
|
|
941
|
+
}
|
|
942
|
+
formatRange(e, i) {
|
|
943
|
+
if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(e, i);
|
|
944
|
+
if (i < e) throw RangeError("End date must be >= start date");
|
|
945
|
+
return `${this.format(e)} \u2013 ${this.format(i)}`;
|
|
946
|
+
}
|
|
947
|
+
formatRangeToParts(e, i) {
|
|
948
|
+
if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(e, i);
|
|
949
|
+
if (i < e) throw RangeError("End date must be >= start date");
|
|
950
|
+
let a = this.numberFormatter.formatToParts(e), o = this.numberFormatter.formatToParts(i);
|
|
951
|
+
return [
|
|
952
|
+
...a.map((e2) => ({
|
|
953
|
+
...e2,
|
|
954
|
+
source: "startRange"
|
|
955
|
+
})),
|
|
956
|
+
{
|
|
957
|
+
type: "literal",
|
|
958
|
+
value: " \u2013 ",
|
|
959
|
+
source: "shared"
|
|
960
|
+
},
|
|
961
|
+
...o.map((e2) => ({
|
|
962
|
+
...e2,
|
|
963
|
+
source: "endRange"
|
|
964
|
+
}))
|
|
965
|
+
];
|
|
966
|
+
}
|
|
967
|
+
resolvedOptions() {
|
|
968
|
+
let e = this.numberFormatter.resolvedOptions();
|
|
969
|
+
return !$488c6ddbf4ef74c2$var$supportsSignDisplay && this.options.signDisplay != null && (e = {
|
|
970
|
+
...e,
|
|
971
|
+
signDisplay: this.options.signDisplay
|
|
972
|
+
}), !$488c6ddbf4ef74c2$var$supportsUnit && this.options.style === "unit" && (e = {
|
|
973
|
+
...e,
|
|
974
|
+
style: "unit",
|
|
975
|
+
unit: this.options.unit,
|
|
976
|
+
unitDisplay: this.options.unitDisplay
|
|
977
|
+
}), e;
|
|
978
|
+
}
|
|
979
|
+
constructor(e, i = {}) {
|
|
980
|
+
this.numberFormatter = $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i), this.options = i;
|
|
981
|
+
}
|
|
982
|
+
};
|
|
983
|
+
function $488c6ddbf4ef74c2$var$getCachedNumberFormatter(e, i = {}) {
|
|
984
|
+
var _a;
|
|
985
|
+
let { numberingSystem: a } = i;
|
|
986
|
+
if (a && e.includes("-nu-") && (e.includes("-u-") || (e += "-u-"), e += `-nu-${a}`), i.style === "unit" && !$488c6ddbf4ef74c2$var$supportsUnit) {
|
|
987
|
+
let { unit: e2, unitDisplay: a2 = "short" } = i;
|
|
988
|
+
if (!e2) throw Error('unit option must be provided with style: "unit"');
|
|
989
|
+
if (!((_a = $488c6ddbf4ef74c2$var$UNITS[e2]) == null ? void 0 : _a[a2])) throw Error(`Unsupported unit ${e2} with unitDisplay = ${a2}`);
|
|
990
|
+
i = {
|
|
991
|
+
...i,
|
|
992
|
+
style: "decimal"
|
|
993
|
+
};
|
|
994
|
+
}
|
|
995
|
+
let o = e + (i ? Object.entries(i).sort((e2, i2) => e2[0] < i2[0] ? -1 : 1).join() : "");
|
|
996
|
+
if ($488c6ddbf4ef74c2$var$formatterCache.has(o)) return $488c6ddbf4ef74c2$var$formatterCache.get(o);
|
|
997
|
+
let s = new Intl.NumberFormat(e, i);
|
|
998
|
+
return $488c6ddbf4ef74c2$var$formatterCache.set(o, s), s;
|
|
986
999
|
}
|
|
987
|
-
function
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
a,
|
|
998
|
-
s,
|
|
999
|
-
c
|
|
1000
|
-
];
|
|
1000
|
+
function $488c6ddbf4ef74c2$export$711b50b3c525e0f2(e, i, a) {
|
|
1001
|
+
if (i === "auto") return e.format(a);
|
|
1002
|
+
if (i === "never") return e.format(Math.abs(a));
|
|
1003
|
+
{
|
|
1004
|
+
let o = false;
|
|
1005
|
+
if (i === "always" ? o = a > 0 || Object.is(a, 0) : i === "exceptZero" && (Object.is(a, -0) || Object.is(a, 0) ? a = Math.abs(a) : o = a > 0), o) {
|
|
1006
|
+
let i2 = e.format(-a), o2 = e.format(a), s = i2.replace(o2, "").replace(/\u200e|\u061C/, "");
|
|
1007
|
+
return [...s].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), i2.replace(o2, "!!!").replace(s, "+").replace("!!!", o2);
|
|
1008
|
+
} else return e.format(a);
|
|
1009
|
+
}
|
|
1001
1010
|
}
|
|
1002
|
-
function
|
|
1003
|
-
let
|
|
1004
|
-
|
|
1005
|
-
let l = c.find((e2) => e2.textValue.toLowerCase().startsWith(o.toLowerCase()));
|
|
1006
|
-
return l === a ? void 0 : l;
|
|
1011
|
+
function $a916eb452884faea$export$b7a616150fdb9f44(e = {}) {
|
|
1012
|
+
let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
1013
|
+
return (0, import_react.useMemo)(() => new $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(i, e), [i, e]);
|
|
1007
1014
|
}
|
|
1008
|
-
function
|
|
1009
|
-
|
|
1015
|
+
function assertNever(e) {
|
|
1016
|
+
invariant(false, `Unexpected object: ${e}`);
|
|
1017
|
+
}
|
|
1018
|
+
function logNever(e) {
|
|
1019
|
+
return Logger.warn(`Unexpected object: ${JSON.stringify(e)}`), e;
|
|
1010
1020
|
}
|
|
1011
|
-
var
|
|
1021
|
+
var import_compiler_runtime$3 = require_compiler_runtime();
|
|
1012
1022
|
const menuContentCommon = cva("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", { variants: { subcontent: { true: "shadow-lg" } } }), menuSubTriggerVariants = cva("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", { variants: { inset: { true: "pl-8" } } }), MENU_ITEM_DISABLED = "data-disabled:pointer-events-none data-disabled:opacity-50", menuControlVariants = cva(cn("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground", MENU_ITEM_DISABLED), { variants: {} }), menuControlCheckVariants = cva("absolute left-2 flex h-3.5 w-3.5 items-center justify-center", { variants: {} }), menuLabelVariants = cva("px-2 py-1.5 text-sm font-semibold", { variants: { inset: { true: "pl-8" } } }), menuItemVariants = cva(cn("menu-item relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden", MENU_ITEM_DISABLED), {
|
|
1013
1023
|
variants: {
|
|
1014
1024
|
inset: { true: "pl-8" },
|
|
@@ -1126,13 +1136,13 @@ var SelectLabel = import_react.forwardRef((e, i) => {
|
|
|
1126
1136
|
let c;
|
|
1127
1137
|
a[3] === o ? c = a[4] : (c = cn("px-2 py-1.5 text-sm font-semibold", o), a[3] = o, a[4] = c);
|
|
1128
1138
|
let l;
|
|
1129
|
-
return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$
|
|
1139
|
+
return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Label$1, {
|
|
1130
1140
|
ref: i,
|
|
1131
1141
|
className: c,
|
|
1132
1142
|
...s
|
|
1133
1143
|
}), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
|
|
1134
1144
|
});
|
|
1135
|
-
SelectLabel.displayName = Label$
|
|
1145
|
+
SelectLabel.displayName = Label$1.displayName;
|
|
1136
1146
|
var SelectItem = import_react.forwardRef((e, i) => {
|
|
1137
1147
|
let a = (0, import_compiler_runtime$1.c)(17), o, s, c, l;
|
|
1138
1148
|
a[0] === e ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({ className: s, children: o, subtitle: l, ...c } = e, a[0] = e, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
|
|
@@ -1204,47 +1214,7 @@ const Strings = {
|
|
|
1204
1214
|
}
|
|
1205
1215
|
}
|
|
1206
1216
|
};
|
|
1207
|
-
|
|
1208
|
-
var Primitive = [
|
|
1209
|
-
"a",
|
|
1210
|
-
"button",
|
|
1211
|
-
"div",
|
|
1212
|
-
"form",
|
|
1213
|
-
"h2",
|
|
1214
|
-
"h3",
|
|
1215
|
-
"img",
|
|
1216
|
-
"input",
|
|
1217
|
-
"label",
|
|
1218
|
-
"li",
|
|
1219
|
-
"nav",
|
|
1220
|
-
"ol",
|
|
1221
|
-
"p",
|
|
1222
|
-
"select",
|
|
1223
|
-
"span",
|
|
1224
|
-
"svg",
|
|
1225
|
-
"ul"
|
|
1226
|
-
].reduce((e, i) => {
|
|
1227
|
-
let a = createSlot(`Primitive.${i}`), o = import_react.forwardRef((e2, o2) => {
|
|
1228
|
-
let { asChild: s, ...c } = e2, l = s ? a : i;
|
|
1229
|
-
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = true), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(l, {
|
|
1230
|
-
...c,
|
|
1231
|
-
ref: o2
|
|
1232
|
-
});
|
|
1233
|
-
});
|
|
1234
|
-
return o.displayName = `Primitive.${i}`, {
|
|
1235
|
-
...e,
|
|
1236
|
-
[i]: o
|
|
1237
|
-
};
|
|
1238
|
-
}, {}), NAME = "Label", Label$1 = import_react.forwardRef((e, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Primitive.label, {
|
|
1239
|
-
...e,
|
|
1240
|
-
ref: i,
|
|
1241
|
-
onMouseDown: (i2) => {
|
|
1242
|
-
var _a;
|
|
1243
|
-
i2.target.closest("button, input, select, textarea") || ((_a = e.onMouseDown) == null ? void 0 : _a.call(e, i2), !i2.defaultPrevented && i2.detail > 1 && i2.preventDefault());
|
|
1244
|
-
}
|
|
1245
|
-
}));
|
|
1246
|
-
Label$1.displayName = NAME;
|
|
1247
|
-
var Root = Label$1, import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, i) => {
|
|
1217
|
+
var import_compiler_runtime = require_compiler_runtime(), labelVariants = cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Label = import_react.forwardRef((e, i) => {
|
|
1248
1218
|
let a = (0, import_compiler_runtime.c)(9), o, s;
|
|
1249
1219
|
a[0] === e ? (o = a[1], s = a[2]) : ({ className: o, ...s } = e, a[0] = e, a[1] = o, a[2] = s);
|
|
1250
1220
|
let c;
|
|
@@ -1258,43 +1228,42 @@ var Root = Label$1, import_compiler_runtime = require_compiler_runtime(), labelV
|
|
|
1258
1228
|
});
|
|
1259
1229
|
Label.displayName = Root.displayName;
|
|
1260
1230
|
export {
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1231
|
+
Icon as A,
|
|
1232
|
+
logNever as C,
|
|
1233
|
+
$18f2051aff69b9bf$export$a54013f0d02a8f82 as D,
|
|
1234
|
+
$18f2051aff69b9bf$export$43bb16f9c6d9e3f7 as E,
|
|
1235
|
+
createCollection as F,
|
|
1236
|
+
X as I,
|
|
1237
|
+
ChevronUp as L,
|
|
1238
|
+
clamp as M,
|
|
1239
|
+
usePrevious as N,
|
|
1240
|
+
$b5e257d569688ac6$export$535bd6ca7f90a273 as O,
|
|
1241
|
+
useDirection as P,
|
|
1242
|
+
ChevronDown as R,
|
|
1243
|
+
assertNever as S,
|
|
1244
|
+
$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5 as T,
|
|
1245
|
+
menuControlVariants as _,
|
|
1246
|
+
SelectContent as a,
|
|
1247
|
+
menuSeparatorVariants as b,
|
|
1248
|
+
SelectLabel as c,
|
|
1249
|
+
SelectValue as d,
|
|
1250
|
+
NativeSelect as f,
|
|
1251
|
+
menuControlCheckVariants as g,
|
|
1252
|
+
menuContentCommon as h,
|
|
1253
|
+
Select as i,
|
|
1254
|
+
Trigger as j,
|
|
1255
|
+
$b5e257d569688ac6$export$619500959fc48b26 as k,
|
|
1256
|
+
SelectSeparator as l,
|
|
1257
|
+
MENU_ITEM_DISABLED as m,
|
|
1258
|
+
Strings as n,
|
|
1259
|
+
SelectGroup as o,
|
|
1260
|
+
selectStyles as p,
|
|
1261
|
+
capitalize as r,
|
|
1262
|
+
SelectItem as s,
|
|
1293
1263
|
Label as t,
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
ChevronDown as z
|
|
1264
|
+
SelectTrigger as u,
|
|
1265
|
+
menuItemVariants as v,
|
|
1266
|
+
$a916eb452884faea$export$b7a616150fdb9f44 as w,
|
|
1267
|
+
menuSubTriggerVariants as x,
|
|
1268
|
+
menuLabelVariants as y
|
|
1300
1269
|
};
|