@marimo-team/islands 0.24.3-dev9 → 0.25.1-dev1
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-C9OF_75w.js → ConnectedDataExplorerComponent-KVhjDMSe.js} +1066 -1066
- package/dist/ErrorBoundary-pXXIvlr3.js +200 -0
- package/dist/{ImageComparisonComponent-2a9TMMm2.js → ImageComparisonComponent-Dlm5aWnH.js} +4 -4
- package/dist/{Plot-C-9MQeGP.js → Plot-CTyjbQDT.js} +21032 -20666
- package/dist/_baseMerge-BiGRwuqv.js +165 -0
- package/dist/{abnfDiagram-N423BO3Z-CQKwzX8t.js → abnfDiagram-VCTEODGH-CpN0FRda.js} +17 -18
- package/dist/{any-language-editor-DmQ7dyCx.js → any-language-editor-CycIVIeP.js} +17 -17
- package/dist/arc-7ra3iNdN.js +81 -0
- package/dist/architecture-7GRP2DOG-BWLylgiA.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-CncrDpfa.js → architectureDiagram-5GKGNRK7-DDyj5SRB.js} +25 -25
- package/dist/assets/__vite-browser-external-C9iR87Zl.js +1 -0
- package/dist/assets/worker-D7hWi02M.js +109 -0
- package/dist/blockDiagram-I7D4REHJ-BbXEXJRu.js +1922 -0
- package/dist/{button-CKBkqR9J.js → button-DdXAm8iz.js} +5 -5
- package/dist/{c4Diagram-5PPSVZJV-DarUk3Yq.js → c4Diagram-7LVT6UL2-DcLsbQmR.js} +696 -668
- package/dist/{capabilities-CMBBJTcc.js → capabilities-B3ce_GNu.js} +1 -1
- package/dist/{html-to-image-BtFMe_Nq.js → cells-DYIkSxs6.js} +6757 -10137
- package/dist/{channel-CyiYUzJv.js → channel-B5XnTarr.js} +1 -1
- package/dist/chat-ui-BXj3uYjy.js +5786 -0
- package/dist/{check-CHig47QV.js → check-B7cIK6gb.js} +1 -1
- package/dist/{chunk-2Q5K7J3B-BMuJl2jB.js → chunk-2Q5K7J3B-BMkUkeuy.js} +2 -2
- package/dist/chunk-4HAMMTFA-D2qv8E0X.js +4188 -0
- package/dist/{chunk-5VM5RSS4-Bcq0ftdy.js → chunk-5VM5RSS4-DKsmPCL6.js} +2 -2
- package/dist/{chunk-NSK5VX7P-CDTMcJB0.js → chunk-75Z2AOVW-5_HsvXwr.js} +23 -23
- package/dist/{chunk-I66GZJ75-BqyTCAPf.js → chunk-DU6HZSFF-BUgAHvnM.js} +21 -4
- package/dist/{chunk-2GRJ4B5K-DgO8Qudq.js → chunk-F27PBJKO-DHmYWZXr.js} +4 -4
- package/dist/{chunk-KEIR6QF5-C4KX3XYh.js → chunk-FOHPRMQF-BpYR8RqP.js} +4 -4
- package/dist/{chunk-WRU74C26-BpWsbiDK.js → chunk-GMAD6QVW-Czynz8aA.js} +486 -258
- package/dist/chunk-GVQU2GXP-yQEdulRS.js +37 -0
- package/dist/{chunk-5RXB4S5H-tLNUVDdO.js → chunk-IMKFNOWR-BfwTebD0.js} +11 -11
- package/dist/{chunk-JWPE2WC7-BJwjGUnF.js → chunk-JWPE2WC7-DJvv1t8U.js} +2 -2
- package/dist/chunk-L3NEJ4N5-DwRWnDDK.js +245 -0
- package/dist/{chunk-7Z6QIM7H-Dc18hFxH.js → chunk-OSK3NFVY-BBKU_Ign.js} +222 -144
- package/dist/{chunk-W5SLKNZC-DLnvpEtV.js → chunk-P2QGCYS3-C0iGU29N.js} +20 -20
- package/dist/{chunk-KBJHAD2P-BuqWqkcW.js → chunk-POPQ4Y6H-BCbS3Ozc.js} +4 -4
- package/dist/{chunk-4I5QYGJK-DpytHuZQ.js → chunk-PWAF6VOD-CTFCL0jI.js} +4 -4
- package/dist/{chunk-JQJVKLGR-CgqCwe8E.js → chunk-SHT3W25Y-BspJEJ5H.js} +109 -63
- package/dist/{chunk-6Q2QTUOP-DmTcEBMn.js → chunk-SVP7TREG-DX3rFNTe.js} +5 -5
- package/dist/{chunk-GF5L2VYU-B0wgCQgS.js → chunk-TICWLB2K-fVF7Uujg.js} +13 -13
- package/dist/{chunk-XXDRQBXY-D73H4IN0.js → chunk-XXDRQBXY-Dnl5VBqG.js} +3 -3
- package/dist/{chunk-Y2CYZVJY-DoegUj_e.js → chunk-Y2CYZVJY-DKKS1VyV.js} +1 -1
- package/dist/{chunk-5FQGJX7Z-B85XCPv6.js → chunk-YOKDWASO-DrWbKnxA.js} +6925 -5460
- package/dist/classDiagram-ZZMXUADV-Fe-V14Sc.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-xTDg7lOs.js +30 -0
- package/dist/code-visibility-BC_yF09p.js +138 -0
- package/dist/{common-Cv-4hMa0.js → common-Dv227ygK.js} +8838 -12645
- package/dist/{compiler-runtime-CAH9RLw2.js → compiler-runtime-Cj8ZWiNS.js} +2 -2
- package/dist/copy-icon-CLdENY__.js +190 -0
- package/dist/{cose-bilkent-JH36ORCC-FUWHkXFX.js → cose-bilkent-JH36ORCC-_LyRKVqm.js} +2 -2
- package/dist/cubic-OaEBhQPK.js +1404 -0
- package/dist/cynefin-OW5HDTMX-obq-i80l.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-BXSFK93J.js → cynefinDiagram-5FMLGOSQ-CFQrqzSX.js} +10 -10
- package/dist/{dagre-CGyalH38.js → dagre-BGSfXNEb.js} +678 -537
- package/dist/dagre-GXQ25YYZ-xHNAUTyG.js +425 -0
- package/dist/{data-grid-overlay-editor-DZM4BAaI.js → data-grid-overlay-editor-B-I2K7z3.js} +8 -9
- package/dist/{data-grid-types-BnZwWG8z.js → data-grid-types-BucVmDDp.js} +1 -1
- package/dist/{defaultLocale-DKaU_opG.js → defaultLocale-JI_lnoCe.js} +1 -1
- package/dist/{diagram-7IWD3JNH-BjfzDNvj.js → diagram-S7CK7UJ4-Bt1rPbAx.js} +40 -39
- package/dist/{diagram-UB23O5K3-DDg-7wLA.js → diagram-UQ7AKVKN-D1sq5FoZ.js} +10 -10
- package/dist/{diagram-B4RE2ZJO-CKccR9eE.js → diagram-VSXAHHWV-BKpmG23x.js} +10 -10
- package/dist/{diagram-Q27KOJAE-Zhz01ss7.js → diagram-VX7I27RA-BMwGFVD6.js} +21 -21
- package/dist/{diagram-LBJQPF4R-CJ-bOruh.js → diagram-Z3DM3KII--KLDR9Pl.js} +10 -10
- package/dist/dialog-CgNq6y9-.js +94 -0
- package/dist/{dist-dAqZAPcF.js → dist-1HDa70oE.js} +3 -3
- package/dist/{dist-Re9sOPOx.js → dist-9x1ZRe-e.js} +2 -2
- package/dist/{dist-DEeLqRlU.js → dist-B1vYLK28.js} +1 -1
- package/dist/{dist-C5Bn52W4.js → dist-B8D7McG3.js} +3 -3
- package/dist/{dist-_XvgytiS.js → dist-BHCHt1NI.js} +1 -1
- package/dist/{dist-CRjAdnqF.js → dist-BRxfaJgs.js} +3 -3
- package/dist/{dist-Byj2bV8o.js → dist-BVGtK7Ht.js} +1 -1
- package/dist/{dist-BIN5LKyE.js → dist-BaHjhkpZ.js} +2 -2
- package/dist/{dist-DVFbIwc5.js → dist-BtKIs9N-.js} +1 -1
- package/dist/{dist-BrQGcfQ9.js → dist-C2KzV-vf.js} +2 -2
- package/dist/{dist-DJFiGP2k.js → dist-C2wDlYdD.js} +2 -2
- package/dist/{dist-BVRM2y1P.js → dist-C8xMLVYi.js} +2 -2
- package/dist/dist-CMh_W4y4.js +538 -0
- package/dist/{extends-BPB6_lTK.js → dist-CO1AwwG_.js} +516 -561
- package/dist/{dist-BzN60Z2s.js → dist-CPGxfVGX.js} +1 -1
- package/dist/{dist-C7v-9nUK.js → dist-Cm3iAFMD.js} +3 -3
- package/dist/{dist-CGAxEiaM.js → dist-Cs2FijYk.js} +2 -2
- package/dist/{dist-hXd65f0_.js → dist-D1PpnuZB.js} +1 -1
- package/dist/{dist-VdvbxG72.js → dist-DHOTQar0.js} +1 -1
- package/dist/{dist-DcgzXCfy.js → dist-DPcEtqmG.js} +2 -2
- package/dist/{dist-D4Z_qdP4.js → dist-Df0wKI0F.js} +1 -1
- package/dist/{dist-qhLI-SHd.js → dist-DszxuxS1.js} +2 -2
- package/dist/{dist-BEmkrGoQ.js → dist-Kxgjxakw.js} +1 -1
- package/dist/{dist-BbSMhhD2.js → dist-KzZ7WELx.js} +2 -2
- package/dist/{dist-jWUab2d1.js → dist-lA1Cttkb.js} +1 -1
- package/dist/dropdown-menu-CZgjYSAh.js +4502 -0
- package/dist/{ebnfDiagram-BXEA7PRR-Dm75pCAS.js → ebnfDiagram-PWID7BFC-WnG4cvSQ.js} +17 -18
- package/dist/{erDiagram-JOGREHBK-rVDG3VSQ.js → erDiagram-RLTQ6QDP-DhzKiYHc.js} +1037 -798
- package/dist/error-banner-B94dcDmP.js +391 -0
- package/dist/error-entries-C0NsUqXl.js +56 -0
- package/dist/{esm-CR1nhb1c.js → esm-BElI3qKH.js} +22 -22
- package/dist/{esm-C1d0g6Bv.js → esm-G4Fhsgng.js} +51 -37
- package/dist/{esm-CesmlDrs.js → esm-h8f7-1CJ.js} +423 -423
- package/dist/eventmodeling-NTZA5JFV-D7nP7Uyu.js +3 -0
- package/dist/feedback-button-D2hUXe09.js +380 -0
- package/dist/flowDiagram-HODETNUW-6dMdB8pR.js +16 -0
- package/dist/{formats-CslNOKy0.js → formats-BR5iGb4s.js} +8 -8
- package/dist/{ganttDiagram-PKOTCBZU-9D-LXF6P.js → ganttDiagram-EL5Y4UJY-DbzEBLbl.js} +15 -15
- package/dist/gitGraph-4MIJSDKK-Dy9uQXGh.js +3 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-BfpsXTLf.js → gitGraphDiagram-WWUBYQGX-BMf0iKi1.js} +10 -10
- package/dist/{glide-data-editor-sPZ8fUFn.js → glide-data-editor-B851uguN.js} +2143 -1910
- package/dist/{glide-utils-NShAPPtn.js → glide-utils-B3rUT5PI.js} +15 -15
- package/dist/globals-CmijFoIU.js +19 -0
- package/dist/highlighted-body-KPVGNVTW-Ad3MKZ18.js +38 -0
- package/dist/html-to-image-CeYYvQNb.js +3272 -0
- package/dist/info-A6RAGUB7-DKoayiHY.js +3 -0
- package/dist/{infoDiagram-6WML65LV-DqCTXHVy.js → infoDiagram-27XIBGKW-BagtCX_5.js} +7 -7
- package/dist/{ishikawaDiagram-WSZJBQD7-BCUYmZ1v.js → ishikawaDiagram-5VMMS53U-DByDehYy.js} +8 -8
- package/dist/{journeyDiagram-NVQOT4AX-BXB6M4zN.js → journeyDiagram-3NMN7TZE-D2LcKDUO.js} +8 -8
- package/dist/{jsx-runtime-CpoKNRgu.js → jsx-runtime-DgDPJV9S.js} +1 -1
- package/dist/{kanban-definition-27J2QSJJ-CGRhrDUX.js → kanban-definition-UXKFOSKX-BxwkbBI_.js} +29 -29
- package/dist/katex-DFBiSucW.js +21840 -0
- package/dist/{label-lwzzBHUW.js → label-BJ49YTvk.js} +6 -6
- package/dist/{linear-D5r_1YqD.js → linear-Cnaq3Tfb.js} +4 -4
- package/dist/{loader-VZ__bv4g.js → loader-D2W4oM-3.js} +15 -15
- package/dist/main.js +8113 -13475
- package/dist/mermaid-DPNuhemn.js +3084 -0
- package/dist/mermaid-HWGCJPDP-DYCzSILp.js +2 -0
- package/dist/mermaid-parser.core-DxuSfYwJ.js +638 -0
- package/dist/{mhchem-BjwrxcV-.js → mhchem-DWCF06w9.js} +1 -1
- package/dist/{micromark-factory-space-DruVGzeG.js → micromark-factory-space-DGxAzmw8.js} +2 -2
- package/dist/{mindmap-definition-FAOFIHXS-C9gRhzZq.js → mindmap-definition-YA3MSWOX-Cgvojw3y.js} +17 -17
- package/dist/{node-sql-parser-DesT1xNw.js → node-sql-parser-BiZOJ-FS.js} +0 -3
- package/dist/{number-overlay-editor-De2CabLL.js → number-overlay-editor-BtdoxWiD.js} +5 -5
- package/dist/objectWithoutPropertiesLoose-BRDcTsfB.js +23 -0
- package/dist/packet-AYTQ26CC-Yw7ajchJ.js +3 -0
- package/dist/{pegDiagram-VL7TDLO6-Df9IUjMD.js → pegDiagram-XKGWAZYB-DahHhYyN.js} +19 -20
- package/dist/{pick-SnHlmIBN.js → pick-CJeoxYOS.js} +1 -1
- package/dist/pie-WAS4IAKB-BKdKOAkL.js +3 -0
- package/dist/{pieDiagram-7S7Q4E2Y-BmRzQ8ZP.js → pieDiagram-E7YTZNPT-CCtX0oCK.js} +29 -31
- package/dist/{process-output-CPy0YKUe.js → process-output-BCTjlyuH.js} +7 -6
- package/dist/purify.es-DgKyQviY.js +805 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-wFBvWcxS.js → quadrantDiagram-AXDQQJYC-DftINo6g.js} +5 -5
- package/dist/radar-RG4KPBEZ-ScR_D_Ts.js +3 -0
- package/dist/railroad-74A4TZTK-DQvPSdo5.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-CsJQG2O8.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-BgEobkSn.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-DjLAjofI.js +3 -0
- package/dist/{railroadDiagram-AXF67PYL-DxbIatiN.js → railroadDiagram-O6MQD6OU-Du5NsPUb.js} +17 -18
- package/dist/{react-dom-C94wmq5w.js → react-dom-BUgJ-ab_.js} +3 -3
- package/dist/{react-DMWcHin-.js → react-ofJbxM4x.js} +2 -2
- package/dist/{react-vega-DSD5aT7_.js → react-vega-5AcMW8gG.js} +10012 -9369
- package/dist/{requirementDiagram-LRYGKXZP-X_x-Y713.js → requirementDiagram-BXWQKSXE-0pmmxL6_.js} +20 -19
- package/dist/{reveal-component-CVsYlb9J.js → reveal-component-DQq7NUGJ.js} +1303 -1237
- package/dist/{sankeyDiagram-W5VNT64P-BYJALbbm.js → sankeyDiagram-P5KCCOFB-CDKR5TJH.js} +4 -4
- package/dist/{select-3qHpFKF9.js → select-C6plhmZr.js} +317 -562
- package/dist/{sequenceDiagram-SI44F4Z6-BiPBe3Sv.js → sequenceDiagram-WJ2MYXX4-DB-ChWwU.js} +11 -11
- package/dist/{sizeCapture-X5ZJPWSS-BKLDeh5H.js → sizeCapture-INFHLROL-Dx5SpkQF.js} +2 -2
- package/dist/{spec-CutWdqo3.js → spec-CAYwFeV6.js} +4 -4
- package/dist/{src-C31ngt98.js → src-CA_m4ONl.js} +298 -303
- package/dist/{stateDiagram-OKZ733FA-B7QyNBxH.js → stateDiagram-D77RDMKH-orN6AwMx.js} +19 -20
- package/dist/stateDiagram-v2-MP3YSRHH-o05_rJN8.js +30 -0
- package/dist/style.css +2 -2
- package/dist/{swimlanes-SLNWSIFB-B4f8VP3b.js → swimlanes-42K2YHIH-BkSDcqDT.js} +1501 -1591
- package/dist/swimlanesDiagram-VR7AAH4N-D_nFQfRc.js +30 -0
- package/dist/{swiper-component-C90YjhaV.js → swiper-component-IOUowglM.js} +39 -26
- package/dist/{time-aWGfjN8x.js → time-BieKwdYS.js} +42 -42
- package/dist/{timeline-definition-Z64GVDOM-Dacq_5lr.js → timeline-definition-24CTP7MA-BuqJUIRZ.js} +7 -7
- package/dist/{toDate-CpXBeDq0.js → toDate-WXg1yLcI.js} +7 -7
- package/dist/toast-DvY70eFX.js +1834 -0
- package/dist/tooltip-qB8NlSqV.js +1742 -0
- package/dist/treeView-Q6P3EWNA-DuRV97YF.js +3 -0
- package/dist/treemap-WGGIJYW6-AsLq-uwC.js +3 -0
- package/dist/use-restore-focus-D5D9xEjZ.js +5946 -0
- package/dist/{use-vega-container-remeasure-DUW4tRxq.js → use-vega-container-remeasure-4DwJbPWu.js} +2 -2
- package/dist/{useAsyncData-CH6-CgJF.js → useAsyncData-BD6AStMt.js} +3 -3
- package/dist/{useDateFormatter-Cp9Jdxls.js → useDateFormatter-BRTPsUK7.js} +8 -8
- package/dist/{useDeepCompareMemoize-JC87C_jO.js → useDeepCompareMemoize-D_HNdyvI.js} +2 -2
- package/dist/{useIframeCapabilities-De3C-9b4.js → useIframeCapabilities-CVtNkI3Y.js} +2 -2
- package/dist/{useLifecycle-B4RGlyf0.js → useLifecycle-DPgiiwwU.js} +6 -6
- package/dist/useNumberFormatter-BfDpa21j.js +251 -0
- package/dist/useTheme-DzXmYZ5V.js +904 -0
- package/dist/{vega-component-ovBXgp91.js → vega-component-D0QXopU8.js} +34 -34
- package/dist/{vega-embed-container-TJ5z5dZw.js → vega-embed-container-CbnTccZi.js} +6 -6
- package/dist/vega-loader.browser-D95WfUcj.js +1139 -0
- package/dist/{vennDiagram-T6HMQDX7-D-Rcq3Iu.js → vennDiagram-4TSXK5OY-CTUlJ2PK.js} +9 -9
- package/dist/wardley-WFR3VGLG-Na-tFhQJ.js +3 -0
- package/dist/{wardleyDiagram-T6FBY63Y-Z-Og7_Wd.js → wardleyDiagram-VM6X3IG4-3evLUb0M.js} +10 -10
- package/dist/{xychartDiagram-ELKLHX3M-BDJ2dITA.js → xychartDiagram-S5SC5T6Z-DL2E3K8-.js} +248 -139
- package/package.json +54 -57
- package/src/__mocks__/notebook.ts +1 -0
- package/src/__mocks__/requests.ts +7 -0
- package/src/__tests__/__snapshots__/CellStatus.test.tsx.snap +12 -12
- package/src/__tests__/fixtures/pair-preview.ts +19 -0
- package/src/__tests__/mount.test.ts +18 -0
- package/src/components/app-config/optional-features.tsx +6 -0
- package/src/components/chat/acp/__tests__/agent-panel-initialization.test.tsx +394 -0
- package/src/components/chat/acp/__tests__/agent-panel.test.tsx +272 -0
- package/src/components/chat/acp/__tests__/state.test.ts +2 -2
- package/src/components/chat/acp/agent-panel.tsx +115 -74
- package/src/components/chat/acp/state.ts +1 -1
- package/src/components/data-table/__tests__/filters.test.ts +21 -21
- package/src/components/data-table/charts/__tests__/spec.test.ts +5 -10
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +2 -6
- package/src/components/data-table/column-summary/chart-spec-model.tsx +1 -1
- package/src/components/data-table/columns.tsx +64 -67
- package/src/components/editor/RecoveryButton.tsx +1 -0
- package/src/components/editor/__tests__/dynamic-favicon.test.tsx +36 -2
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +115 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-modal.test.tsx +218 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +46 -9
- package/src/components/editor/actions/pair-with-agent-modal.tsx +49 -23
- package/src/components/editor/ai/add-cell-with-ai.tsx +1 -0
- package/src/components/editor/ai/ai-completion-editor.tsx +3 -1
- package/src/components/editor/alerts/__tests__/connection-notice.test.tsx +186 -0
- package/src/components/editor/alerts/__tests__/startup-progress.test.tsx +185 -0
- package/src/components/editor/alerts/connecting-alert.tsx +1 -66
- package/src/components/editor/alerts/connection-notice.tsx +186 -0
- package/src/components/editor/alerts/startup-output.tsx +173 -0
- package/src/components/editor/alerts/startup-progress.tsx +204 -0
- package/src/components/editor/app-container.tsx +9 -3
- package/src/components/editor/boundary/ErrorBoundary.tsx +38 -16
- package/src/components/editor/boundary/__tests__/ErrorBoundary.test.tsx +311 -0
- package/src/components/editor/cell/__tests__/toolbar.test.tsx +73 -0
- package/src/components/editor/cell/code/__tests__/rtc-editor-config.test.ts +50 -0
- package/src/components/editor/cell/code/cell-editor.tsx +41 -42
- package/src/components/editor/cell/toolbar.tsx +11 -0
- package/src/components/editor/chrome/components/__tests__/feedback-button.test.tsx +94 -0
- package/src/components/editor/chrome/components/feedback-button.tsx +63 -42
- package/src/components/editor/chrome/panels/__tests__/packages-panel.test.tsx +164 -8
- package/src/components/editor/chrome/panels/__tests__/sandbox-details.test.tsx +358 -0
- package/src/components/editor/chrome/panels/__tests__/sandbox-recovery.test.tsx +168 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +113 -175
- package/src/components/editor/chrome/panels/sandbox-controller.tsx +106 -0
- package/src/components/editor/chrome/panels/sandbox-details-state.ts +38 -0
- package/src/components/editor/chrome/panels/sandbox-panel.tsx +230 -0
- package/src/components/editor/chrome/panels/sandbox-toggle.tsx +52 -0
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +7 -0
- package/src/components/editor/chrome/wrapper/footer-items/backend-status.tsx +3 -1
- package/src/components/editor/code/__tests__/readonly-diff.test.tsx +65 -0
- package/src/components/editor/code/readonly-diff.tsx +1 -1
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +98 -98
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +11 -5
- package/src/components/editor/dynamic-favicon.tsx +17 -10
- package/src/components/editor/file-tree/__tests__/file-explorer-navigation.test.tsx +13 -11
- package/src/components/editor/file-tree/__tests__/tree-actions.test.tsx +54 -0
- package/src/components/editor/file-tree/tree-actions.tsx +11 -14
- package/src/components/editor/header/__tests__/status.test.tsx +8 -20
- package/src/components/editor/header/filename-input.tsx +2 -0
- package/src/components/editor/header/status.tsx +5 -3
- package/src/components/editor/navigation/clipboard.ts +1 -0
- package/src/components/editor/notebook-cell.tsx +4 -2
- package/src/components/editor/output/JsonOutput.tsx +182 -632
- package/src/components/editor/output/Outputs.css +49 -17
- package/src/components/editor/output/__tests__/JsonOutput-interactions.test.tsx +254 -0
- package/src/components/editor/output/__tests__/JsonOutput-mimetype.test.tsx +41 -46
- package/src/components/editor/output/__tests__/{json-output.test.ts → json-output-formatting.test.ts} +113 -75
- package/src/components/editor/output/__tests__/json-output-pagination.test.ts +252 -0
- package/src/components/editor/output/json-output/formatting.ts +167 -0
- package/src/components/editor/output/json-output/pagination.ts +155 -0
- package/src/components/editor/output/json-output/renderers.tsx +196 -0
- package/src/components/editor/output/json-output/themes.ts +52 -0
- package/src/components/editor/package-alert.tsx +112 -66
- package/src/components/editor/renderers/cell-array.tsx +1 -5
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +3 -7
- package/src/components/slides/slide-form.tsx +1 -0
- package/src/components/slides/slide-notes-editor.tsx +1 -0
- package/src/components/tracing/tracing-spec.ts +1 -1
- package/src/components/ui/__tests__/badge.test.ts +6 -4
- package/src/components/ui/use-toast.ts +8 -0
- package/src/core/MarimoApp.tsx +0 -2
- package/src/core/ai/context/providers/__tests__/error.test.ts +16 -22
- package/src/core/alerts/__tests__/environment.test.ts +183 -0
- package/src/core/alerts/__tests__/state.test.tsx +240 -0
- package/src/core/alerts/environment.ts +57 -0
- package/src/core/alerts/state.ts +155 -99
- package/src/core/cells/__tests__/__snapshots__/cells.test.ts.snap +296 -259
- package/src/core/cells/__tests__/apply-transaction.test.ts +34 -0
- package/src/core/cells/__tests__/cell.test.ts +61 -0
- package/src/core/cells/__tests__/cells.test.ts +182 -37
- package/src/core/cells/__tests__/document-changes.test.ts +39 -1
- package/src/core/cells/__tests__/outputs.test.tsx +117 -0
- package/src/core/cells/__tests__/pending-delete-service.test.tsx +4 -3
- package/src/core/cells/__tests__/session.test.ts +7 -0
- package/src/core/cells/cell.ts +9 -1
- package/src/core/cells/cells.ts +13 -18
- package/src/core/cells/document-changes.ts +11 -1
- package/src/core/cells/outputs.ts +66 -9
- package/src/core/cells/pending-delete-service.ts +12 -16
- package/src/core/cells/session.ts +2 -0
- package/src/core/cells/types.ts +2 -0
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +8 -16
- package/src/core/codemirror/language/__tests__/sql.test.ts +70 -2
- package/src/core/codemirror/language/embedded/__tests__/embedded-python.test.ts +4 -8
- package/src/core/codemirror/language/languages/sql/sql.ts +16 -1
- package/src/core/codemirror/rtc/extension.ts +5 -2
- package/src/core/config/pair.ts +19 -0
- package/src/core/datasets/__tests__/data-source.test.ts +2 -0
- package/src/core/datasets/data-source-connections.ts +15 -10
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/state.ts +1 -2
- package/src/core/export/__tests__/hooks.test.ts +1 -6
- package/src/core/islands/bootstrap.ts +3 -1
- package/src/core/islands/bridge.ts +3 -0
- package/src/core/islands/worker-factory.ts +2 -12
- package/src/core/kernel/messages.ts +2 -2
- package/src/core/network/__tests__/requests-network.test.ts +4 -3
- package/src/core/network/connection-notice.ts +117 -0
- package/src/core/network/connection.ts +19 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +12 -0
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/resolve.ts +2 -1
- package/src/core/network/types.ts +7 -0
- package/src/core/network/useConnectionNotice.ts +53 -0
- package/src/core/packages/__tests__/usePackageAction.test.tsx +129 -0
- package/src/core/packages/__tests__/useSandboxController.test.tsx +246 -0
- package/src/core/packages/package-data.ts +35 -0
- package/src/core/packages/sandbox-state.ts +67 -0
- package/src/core/packages/toast-components.tsx +11 -0
- package/src/core/packages/useInstallPackage.ts +1 -1
- package/src/core/packages/usePackageAction.ts +51 -0
- package/src/core/packages/usePackageDependencies.ts +22 -0
- package/src/core/packages/useSandboxController.ts +208 -0
- package/src/core/run-app.tsx +2 -0
- package/src/core/static/__tests__/files.test.ts +12 -30
- package/src/core/wasm/__tests__/bootstrap.test.ts +63 -0
- package/src/core/wasm/__tests__/bridge.test.ts +13 -4
- package/src/core/wasm/__tests__/fs.test.ts +22 -0
- package/src/core/wasm/__tests__/runtime-config.test.ts +65 -0
- package/src/core/wasm/bridge.ts +35 -23
- package/src/core/wasm/rpc.ts +2 -0
- package/src/core/wasm/runtime-config.ts +31 -0
- package/src/core/wasm/worker/bootstrap.ts +21 -11
- package/src/core/wasm/worker/constants.ts +1 -0
- package/src/core/wasm/worker/fs.ts +4 -0
- package/src/core/wasm/worker/getController.ts +3 -1
- package/src/core/wasm/worker/save-worker.ts +10 -9
- package/src/core/wasm/worker/types.ts +6 -4
- package/src/core/wasm/worker/worker.ts +9 -9
- package/src/core/websocket/__tests__/useMarimoKernelConnection.hook.test.tsx +404 -3
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +8 -6
- package/src/core/websocket/transports/transport.ts +1 -1
- package/src/core/websocket/transports/ws.ts +1 -1
- package/src/core/websocket/types.ts +11 -1
- package/src/core/websocket/useMarimoKernelConnection.tsx +63 -16
- package/src/hooks/useDebounce.ts +2 -0
- package/src/mount.tsx +3 -0
- package/src/plugins/core/BadPlugin.tsx +3 -14
- package/src/plugins/core/RenderHTML.tsx +22 -2
- package/src/plugins/core/__test__/RenderHTML.test.ts +187 -0
- package/src/plugins/core/registerReactComponent.tsx +0 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +10 -4
- package/src/plugins/impl/FormPlugin.tsx +2 -0
- package/src/plugins/impl/MatrixPlugin.tsx +2 -0
- package/src/plugins/impl/RangeSliderPlugin.tsx +2 -0
- package/src/plugins/impl/SliderPlugin.tsx +2 -0
- package/src/plugins/impl/__tests__/FileBrowserPlugin.test.tsx +50 -1
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +23 -18
- package/src/plugins/impl/data-frames/panel.tsx +1 -0
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +1 -1
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +15 -0
- package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +42 -48
- package/src/plugins/layout/AccordionPlugin.tsx +7 -2
- package/src/plugins/layout/JsonOutputPlugin.tsx +7 -10
- package/src/plugins/layout/__test__/AccordionPlugin.test.tsx +66 -0
- package/src/stories/sandbox.stories.tsx +488 -0
- package/src/utils/__tests__/path.test.ts +6 -5
- package/src/utils/__tests__/worker.test.ts +81 -0
- package/src/utils/worker.ts +22 -0
- package/dist/ErrorBoundary-CR-ZQN_c.js +0 -125
- package/dist/_baseMerge-Dv8bBloN.js +0 -73
- package/dist/_initCloneObject---vediN2.js +0 -95
- package/dist/arc-DOVLrCPd.js +0 -82
- package/dist/architecture-TIHT7OUA-MiJpPpQW.js +0 -3
- package/dist/array-CApNbSU9.js +0 -6
- package/dist/assets/__vite-browser-external-BdKGjRZ4.js +0 -1
- package/dist/assets/worker-DlIBfp9S.js +0 -98
- package/dist/blockDiagram-VBNYF7ZC-Bc--I65C.js +0 -3158
- package/dist/chat-ui-BSwr409J.js +0 -8455
- package/dist/chunk-3NCLNEKW-BIp_lB_4.js +0 -14
- package/dist/chunk-5FCAYU7R-C_HO9A1J.js +0 -23
- package/dist/chunk-5HE753X5-Bixm_MV-.js +0 -38
- package/dist/chunk-5JV3BV7I-CH5J3iZY.js +0 -54
- package/dist/chunk-5TONJI2A-DG6gDiSS.js +0 -62
- package/dist/chunk-7BUUIJ7U-5afmIPeo.js +0 -82
- package/dist/chunk-BIQX33UG-7TMBUf89.js +0 -23
- package/dist/chunk-CQNSW5MT-Cnqqsxt-.js +0 -38
- package/dist/chunk-CYSBUYHQ-BAbymFHR.js +0 -23
- package/dist/chunk-EMLP6XTP-Bsz-QL77.js +0 -23
- package/dist/chunk-J7OUQ5F2-CM_meqZH.js +0 -57
- package/dist/chunk-JG7HCLWE-DUnCDgPk.js +0 -62
- package/dist/chunk-MOZMSUNE-BG6IHvzT.js +0 -35
- package/dist/chunk-OSBZ3O6U-CYwj_bvR.js +0 -23
- package/dist/chunk-QBLGF6JB-B4vJ4j8J.js +0 -23
- package/dist/chunk-QR6OTTB3-D4wH2ldi.js +0 -3738
- package/dist/chunk-R7FJI6CG-Blf8FcmZ.js +0 -64
- package/dist/chunk-RYQCIY6F-BWbIlBIH.js +0 -241
- package/dist/chunk-U6XO7XAA-COw445DS.js +0 -63
- package/dist/chunk-UBXNYLIW-BHigVU4H.js +0 -32
- package/dist/chunk-YOTPTUD7-Dn044Q_d.js +0 -30
- package/dist/chunk-ZIRB5QZD-BR4TMfOa.js +0 -1153
- package/dist/classDiagram-JCYQIIEL-DmXSLxe_.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-CooqVexA.js +0 -30
- package/dist/click-outside-container-D_URcm3D.js +0 -167
- package/dist/code-block-37QAKDTI-CQrzBOr-.js +0 -107
- package/dist/copy-CD7S58CY.js +0 -141
- package/dist/cynefin-VYW2F7L2-CeHAxOEX.js +0 -3
- package/dist/dagre-VZM6K2ZE-CJggWPTJ.js +0 -328
- package/dist/dist-3_o3T78I.js +0 -1360
- package/dist/dist-ABQjhuek.js +0 -64
- package/dist/dist-CO5R6VMi.js +0 -538
- package/dist/dropdown-menu-DhCfcscX.js +0 -5858
- package/dist/emotion-is-prop-valid.esm-M57VsT8j.js +0 -14
- package/dist/error-banner-CsXbEEjo.js +0 -611
- package/dist/eventmodeling-45OFAUF4-B_lWZ-Pd.js +0 -3
- package/dist/flowDiagram-UKHOOZJN-g1AmrZzM.js +0 -17
- package/dist/gitGraph-TEB2WS4Q-Dj-eXUph.js +0 -3
- package/dist/info-DKCQHKI2-Bhb-pe2e.js +0 -3
- package/dist/line-CuKjIQa1.js +0 -34
- package/dist/map-BJpOfPlL.js +0 -149
- package/dist/math-BXtKgYah.js +0 -10
- package/dist/mermaid-4DMBBIKO-Ddp9TgNp.js +0 -2
- package/dist/mermaid-Bi23Ibnw.js +0 -1173
- package/dist/mermaid-parser.core-Din9FvSi.js +0 -99
- package/dist/packet-7NZHBO7P-fbkIIyKE.js +0 -3
- package/dist/path-BNHuHZP8.js +0 -87
- package/dist/pie-RZYD4A2V-CLRIsxY1.js +0 -3
- package/dist/purify.es-CB-YO1Hn.js +0 -774
- package/dist/radar-I7S5WNFK-BGzCbgXu.js +0 -3
- package/dist/railroad-3IZDKUUU-CvQIIcuU.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-CMwtlNtu.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-n1QUOAsh.js +0 -3
- package/dist/railroad-peg-LSFZ7HO6-PjnrpmCs.js +0 -3
- package/dist/schemas-DzK6U94N.js +0 -6057
- package/dist/stateDiagram-v2-UEYNNEHI-BTRUs8Il.js +0 -30
- package/dist/step-CKczO72Q.js +0 -670
- package/dist/swimlanesDiagram-ULZ7WXOC-NBmgBl9G.js +0 -31
- package/dist/timer-DpDyj9G0.js +0 -596
- package/dist/tooltip-Dt77sBeT.js +0 -390
- package/dist/treeView-QDETBFTQ-DU8LwHuf.js +0 -3
- package/dist/treemap-6X3UGDF4-DUk4-k_O.js +0 -3
- package/dist/useTheme-CVJ0UOf2.js +0 -841
- package/dist/vega-loader.browser-DEggZzni.js +0 -1083
- package/dist/wardley-OPB4EBWU-Db-AaGas.js +0 -3
- package/src/components/editor/output/EmotionCacheProvider.tsx +0 -32
|
@@ -0,0 +1,4502 @@
|
|
|
1
|
+
import { a as e } from "./rolldown-runtime-Cb76FRpK.js";
|
|
2
|
+
import { f as t, g as n, h as r, m as i, p as a, u as o } from "./button-DdXAm8iz.js";
|
|
3
|
+
import { t as s } from "./react-ofJbxM4x.js";
|
|
4
|
+
import { t as c } from "./compiler-runtime-Cj8ZWiNS.js";
|
|
5
|
+
import { c as l, d as u, g as d, l as f, s as p, u as m } from "./tooltip-qB8NlSqV.js";
|
|
6
|
+
import { t as h } from "./check-B7cIK6gb.js";
|
|
7
|
+
import { A as g, M as _, O as v, _ as y, f as b, g as x, h as S, j as C, k as w, m as T, p as E, v as D, y as O } from "./select-C6plhmZr.js";
|
|
8
|
+
import { t as k } from "./clsx-CoeGtWvn.js";
|
|
9
|
+
import { t as A } from "./react-dom-BUgJ-ab_.js";
|
|
10
|
+
import { t as j } from "./jsx-runtime-DgDPJV9S.js";
|
|
11
|
+
import { Ct as M, Et as N, K as P, Q as F, Tt as I, X as L, Y as ee, bt as te, ft as ne, gt as re, lt as ie, mt as ae, pt as oe, ut as se, vt as R, wt as ce, xt as le, yt as ue } from "./use-restore-focus-D5D9xEjZ.js";
|
|
12
|
+
import { n as de, o as fe, r as pe, t as me } from "./useNumberFormatter-BfDpa21j.js";
|
|
13
|
+
import { t as he } from "./debounce-C3jyATpc.js";
|
|
14
|
+
import { A as ge } from "./useTheme-DzXmYZ5V.js";
|
|
15
|
+
import { t as _e } from "./once-BtE-wKRL.js";
|
|
16
|
+
var ve = d("chevron-right", [["path", {
|
|
17
|
+
d: "m9 18 6-6-6-6",
|
|
18
|
+
key: "mthhwq"
|
|
19
|
+
}]]), ye = d("circle", [["circle", {
|
|
20
|
+
cx: "12",
|
|
21
|
+
cy: "12",
|
|
22
|
+
r: "10",
|
|
23
|
+
key: "1mglay"
|
|
24
|
+
}]]), be = d("search", [["path", {
|
|
25
|
+
d: "m21 21-4.34-4.34",
|
|
26
|
+
key: "14j7rj"
|
|
27
|
+
}], ["circle", {
|
|
28
|
+
cx: "11",
|
|
29
|
+
cy: "11",
|
|
30
|
+
r: "8",
|
|
31
|
+
key: "4ej97u"
|
|
32
|
+
}]]), z = /* @__PURE__ */ e(s(), 1), B = j(), xe = "rovingFocusGroup.onEntryFocus", Se = {
|
|
33
|
+
bubbles: !1,
|
|
34
|
+
cancelable: !0
|
|
35
|
+
}, Ce = "RovingFocusGroup", [we, Te, Ee] = w(Ce), [De, Oe] = ce(Ce, [Ee]), [ke, Ae] = De(Ce), je = z.forwardRef((e, t) => /* @__PURE__ */ (0, B.jsx)(we.Provider, {
|
|
36
|
+
scope: e.__scopeRovingFocusGroup,
|
|
37
|
+
children: /* @__PURE__ */ (0, B.jsx)(we.Slot, {
|
|
38
|
+
scope: e.__scopeRovingFocusGroup,
|
|
39
|
+
children: /* @__PURE__ */ (0, B.jsx)(Me, {
|
|
40
|
+
...e,
|
|
41
|
+
ref: t
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
}));
|
|
45
|
+
je.displayName = Ce;
|
|
46
|
+
var Me = z.forwardRef((e, t) => {
|
|
47
|
+
let { __scopeRovingFocusGroup: n, orientation: r, loop: i = !1, dir: o, currentTabStopId: s, defaultCurrentTabStopId: c, onCurrentTabStopIdChange: l, onEntryFocus: u, preventScrollOnEntryFocus: d = !1, ...f } = e, p = z.useRef(null), m = a(t, p), h = v(o), [g, _] = le({
|
|
48
|
+
prop: s,
|
|
49
|
+
defaultProp: c ?? null,
|
|
50
|
+
onChange: l,
|
|
51
|
+
caller: Ce
|
|
52
|
+
}), [y, b] = z.useState(!1), x = R(u), S = Te(n), C = z.useRef(!1), [w, T] = z.useState(0);
|
|
53
|
+
return z.useEffect(() => {
|
|
54
|
+
let e = p.current;
|
|
55
|
+
if (e) return e.addEventListener(xe, x), () => e.removeEventListener(xe, x);
|
|
56
|
+
}, [x]), /* @__PURE__ */ (0, B.jsx)(ke, {
|
|
57
|
+
scope: n,
|
|
58
|
+
orientation: r,
|
|
59
|
+
dir: h,
|
|
60
|
+
loop: i,
|
|
61
|
+
currentTabStopId: g,
|
|
62
|
+
onItemFocus: z.useCallback((e) => _(e), [_]),
|
|
63
|
+
onItemShiftTab: z.useCallback(() => b(!0), []),
|
|
64
|
+
onFocusableItemAdd: z.useCallback(() => T((e) => e + 1), []),
|
|
65
|
+
onFocusableItemRemove: z.useCallback(() => T((e) => e - 1), []),
|
|
66
|
+
children: /* @__PURE__ */ (0, B.jsx)(I.div, {
|
|
67
|
+
tabIndex: y || w === 0 ? -1 : 0,
|
|
68
|
+
"data-orientation": r,
|
|
69
|
+
...f,
|
|
70
|
+
ref: m,
|
|
71
|
+
style: {
|
|
72
|
+
outline: "none",
|
|
73
|
+
...e.style
|
|
74
|
+
},
|
|
75
|
+
onMouseDown: M(e.onMouseDown, () => {
|
|
76
|
+
C.current = !0;
|
|
77
|
+
}),
|
|
78
|
+
onFocus: M(e.onFocus, (e) => {
|
|
79
|
+
let t = !C.current;
|
|
80
|
+
if (e.target === e.currentTarget && t && !y) {
|
|
81
|
+
let t = new CustomEvent(xe, Se);
|
|
82
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
83
|
+
let e = S().filter((e) => e.focusable);
|
|
84
|
+
Re([
|
|
85
|
+
e.find((e) => e.active),
|
|
86
|
+
e.find((e) => e.id === g),
|
|
87
|
+
...e
|
|
88
|
+
].filter(Boolean).map((e) => e.ref.current), d);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
C.current = !1;
|
|
92
|
+
}),
|
|
93
|
+
onBlur: M(e.onBlur, () => b(!1))
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
}), Ne = "RovingFocusGroupItem", Pe = z.forwardRef((e, t) => {
|
|
97
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: i = !1, tabStopId: a, children: o, ...s } = e, c = ue(), l = a || c, u = Ae(Ne, n), d = u.currentTabStopId === l, f = Te(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: h } = u;
|
|
98
|
+
return z.useEffect(() => {
|
|
99
|
+
if (r) return p(), () => m();
|
|
100
|
+
}, [
|
|
101
|
+
r,
|
|
102
|
+
p,
|
|
103
|
+
m
|
|
104
|
+
]), /* @__PURE__ */ (0, B.jsx)(we.ItemSlot, {
|
|
105
|
+
scope: n,
|
|
106
|
+
id: l,
|
|
107
|
+
focusable: r,
|
|
108
|
+
active: i,
|
|
109
|
+
children: /* @__PURE__ */ (0, B.jsx)(I.span, {
|
|
110
|
+
tabIndex: d ? 0 : -1,
|
|
111
|
+
"data-orientation": u.orientation,
|
|
112
|
+
...s,
|
|
113
|
+
ref: t,
|
|
114
|
+
onMouseDown: M(e.onMouseDown, (e) => {
|
|
115
|
+
r ? u.onItemFocus(l) : e.preventDefault();
|
|
116
|
+
}),
|
|
117
|
+
onFocus: M(e.onFocus, () => u.onItemFocus(l)),
|
|
118
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
119
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
120
|
+
u.onItemShiftTab();
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (e.target !== e.currentTarget) return;
|
|
124
|
+
let t = Le(e, u.orientation, u.dir);
|
|
125
|
+
if (t !== void 0) {
|
|
126
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
let n = f().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
129
|
+
if (t === "last") n.reverse();
|
|
130
|
+
else if (t === "prev" || t === "next") {
|
|
131
|
+
t === "prev" && n.reverse();
|
|
132
|
+
let r = n.indexOf(e.currentTarget);
|
|
133
|
+
n = u.loop ? ze(n, r + 1) : n.slice(r + 1);
|
|
134
|
+
}
|
|
135
|
+
setTimeout(() => Re(n));
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
children: typeof o == "function" ? o({
|
|
139
|
+
isCurrentTabStop: d,
|
|
140
|
+
hasTabStop: h != null
|
|
141
|
+
}) : o
|
|
142
|
+
})
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
Pe.displayName = Ne;
|
|
146
|
+
var Fe = {
|
|
147
|
+
ArrowLeft: "prev",
|
|
148
|
+
ArrowUp: "prev",
|
|
149
|
+
ArrowRight: "next",
|
|
150
|
+
ArrowDown: "next",
|
|
151
|
+
PageUp: "first",
|
|
152
|
+
Home: "first",
|
|
153
|
+
PageDown: "last",
|
|
154
|
+
End: "last"
|
|
155
|
+
};
|
|
156
|
+
function Ie(e, t) {
|
|
157
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
158
|
+
}
|
|
159
|
+
function Le(e, t, n) {
|
|
160
|
+
let r = Ie(e.key, n);
|
|
161
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return Fe[r];
|
|
162
|
+
}
|
|
163
|
+
function Re(e, t = !1) {
|
|
164
|
+
let n = document.activeElement;
|
|
165
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
166
|
+
}
|
|
167
|
+
function ze(e, t) {
|
|
168
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
169
|
+
}
|
|
170
|
+
var Be = je, Ve = Pe, He = ["Enter", " "], Ue = [
|
|
171
|
+
"ArrowDown",
|
|
172
|
+
"PageUp",
|
|
173
|
+
"Home"
|
|
174
|
+
], We = [
|
|
175
|
+
"ArrowUp",
|
|
176
|
+
"PageDown",
|
|
177
|
+
"End"
|
|
178
|
+
], Ge = [...Ue, ...We], Ke = {
|
|
179
|
+
ltr: [...He, "ArrowRight"],
|
|
180
|
+
rtl: [...He, "ArrowLeft"]
|
|
181
|
+
}, qe = {
|
|
182
|
+
ltr: ["ArrowLeft"],
|
|
183
|
+
rtl: ["ArrowRight"]
|
|
184
|
+
}, Je = "Menu", [Ye, Xe, Ze] = w(Je), [Qe, $e] = ce(Je, [
|
|
185
|
+
Ze,
|
|
186
|
+
u,
|
|
187
|
+
Oe
|
|
188
|
+
]), et = u(), tt = Oe(), [nt, rt] = Qe(Je), [it, at] = Qe(Je), ot = (e) => {
|
|
189
|
+
let { __scopeMenu: t, open: n = !1, children: r, dir: i, onOpenChange: a, modal: o = !0 } = e, s = et(t), [c, l] = z.useState(null), u = z.useRef(!1), d = R(a), f = v(i);
|
|
190
|
+
return z.useEffect(() => {
|
|
191
|
+
let e = () => {
|
|
192
|
+
u.current = !0, document.addEventListener("pointerdown", t, {
|
|
193
|
+
capture: !0,
|
|
194
|
+
once: !0
|
|
195
|
+
}), document.addEventListener("pointermove", t, {
|
|
196
|
+
capture: !0,
|
|
197
|
+
once: !0
|
|
198
|
+
});
|
|
199
|
+
}, t = () => u.current = !1;
|
|
200
|
+
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
201
|
+
document.removeEventListener("keydown", e, { capture: !0 }), document.removeEventListener("pointerdown", t, { capture: !0 }), document.removeEventListener("pointermove", t, { capture: !0 });
|
|
202
|
+
};
|
|
203
|
+
}, []), /* @__PURE__ */ (0, B.jsx)(m, {
|
|
204
|
+
...s,
|
|
205
|
+
children: /* @__PURE__ */ (0, B.jsx)(nt, {
|
|
206
|
+
scope: t,
|
|
207
|
+
open: n,
|
|
208
|
+
onOpenChange: d,
|
|
209
|
+
content: c,
|
|
210
|
+
onContentChange: l,
|
|
211
|
+
children: /* @__PURE__ */ (0, B.jsx)(it, {
|
|
212
|
+
scope: t,
|
|
213
|
+
onClose: z.useCallback(() => d(!1), [d]),
|
|
214
|
+
isUsingKeyboardRef: u,
|
|
215
|
+
dir: f,
|
|
216
|
+
modal: o,
|
|
217
|
+
children: r
|
|
218
|
+
})
|
|
219
|
+
})
|
|
220
|
+
});
|
|
221
|
+
};
|
|
222
|
+
ot.displayName = Je;
|
|
223
|
+
var st = "MenuAnchor", ct = z.forwardRef((e, t) => {
|
|
224
|
+
let { __scopeMenu: n, ...r } = e, i = et(n);
|
|
225
|
+
return /* @__PURE__ */ (0, B.jsx)(p, {
|
|
226
|
+
...i,
|
|
227
|
+
...r,
|
|
228
|
+
ref: t
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
ct.displayName = st;
|
|
232
|
+
var lt = "MenuPortal", [ut, dt] = Qe(lt, { forceMount: void 0 }), ft = (e) => {
|
|
233
|
+
let { __scopeMenu: t, forceMount: n, children: r, container: i } = e, a = rt(lt, t);
|
|
234
|
+
return /* @__PURE__ */ (0, B.jsx)(ut, {
|
|
235
|
+
scope: t,
|
|
236
|
+
forceMount: n,
|
|
237
|
+
children: /* @__PURE__ */ (0, B.jsx)(te, {
|
|
238
|
+
present: n || a.open,
|
|
239
|
+
children: /* @__PURE__ */ (0, B.jsx)(oe, {
|
|
240
|
+
asChild: !0,
|
|
241
|
+
container: i,
|
|
242
|
+
children: r
|
|
243
|
+
})
|
|
244
|
+
})
|
|
245
|
+
});
|
|
246
|
+
};
|
|
247
|
+
ft.displayName = lt;
|
|
248
|
+
var V = "MenuContent", [pt, mt] = Qe(V), ht = z.forwardRef((e, t) => {
|
|
249
|
+
let n = dt(V, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, a = rt(V, e.__scopeMenu), o = at(V, e.__scopeMenu);
|
|
250
|
+
return /* @__PURE__ */ (0, B.jsx)(Ye.Provider, {
|
|
251
|
+
scope: e.__scopeMenu,
|
|
252
|
+
children: /* @__PURE__ */ (0, B.jsx)(te, {
|
|
253
|
+
present: r || a.open,
|
|
254
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ye.Slot, {
|
|
255
|
+
scope: e.__scopeMenu,
|
|
256
|
+
children: o.modal ? /* @__PURE__ */ (0, B.jsx)(gt, {
|
|
257
|
+
...i,
|
|
258
|
+
ref: t
|
|
259
|
+
}) : /* @__PURE__ */ (0, B.jsx)(_t, {
|
|
260
|
+
...i,
|
|
261
|
+
ref: t
|
|
262
|
+
})
|
|
263
|
+
})
|
|
264
|
+
})
|
|
265
|
+
});
|
|
266
|
+
}), gt = z.forwardRef((e, t) => {
|
|
267
|
+
let n = rt(V, e.__scopeMenu), r = z.useRef(null), i = a(t, r);
|
|
268
|
+
return z.useEffect(() => {
|
|
269
|
+
let e = r.current;
|
|
270
|
+
if (e) return ie(e);
|
|
271
|
+
}, []), /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
272
|
+
...e,
|
|
273
|
+
ref: i,
|
|
274
|
+
trapFocus: n.open,
|
|
275
|
+
disableOutsidePointerEvents: n.open,
|
|
276
|
+
disableOutsideScroll: !0,
|
|
277
|
+
onFocusOutside: M(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 }),
|
|
278
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
279
|
+
});
|
|
280
|
+
}), _t = z.forwardRef((e, t) => {
|
|
281
|
+
let n = rt(V, e.__scopeMenu);
|
|
282
|
+
return /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
283
|
+
...e,
|
|
284
|
+
ref: t,
|
|
285
|
+
trapFocus: !1,
|
|
286
|
+
disableOutsidePointerEvents: !1,
|
|
287
|
+
disableOutsideScroll: !1,
|
|
288
|
+
onDismiss: () => n.onOpenChange(!1)
|
|
289
|
+
});
|
|
290
|
+
}), vt = o("MenuContent.ScrollLock"), yt = z.forwardRef((e, t) => {
|
|
291
|
+
let { __scopeMenu: n, loop: r = !1, trapFocus: i, onOpenAutoFocus: o, onCloseAutoFocus: s, disableOutsidePointerEvents: c, onEntryFocus: l, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: p, onInteractOutside: m, onDismiss: h, disableOutsideScroll: g, ..._ } = e, v = rt(V, n), y = at(V, n), b = et(n), x = tt(n), S = Xe(n), [C, w] = z.useState(null), T = z.useRef(null), E = a(t, T, v.onContentChange), D = z.useRef(0), O = z.useRef(""), k = z.useRef(0), A = z.useRef(null), j = z.useRef("right"), N = z.useRef(0), P = g ? se : z.Fragment, F = g ? {
|
|
292
|
+
as: vt,
|
|
293
|
+
allowPinchZoom: !0
|
|
294
|
+
} : void 0, I = (e) => {
|
|
295
|
+
let t = O.current + e, n = S().filter((e) => !e.disabled), r = document.activeElement, i = n.find((e) => e.ref.current === r)?.textValue, a = rn(n.map((e) => e.textValue), t, i), o = n.find((e) => e.textValue === a)?.ref.current;
|
|
296
|
+
(function e(t) {
|
|
297
|
+
O.current = t, window.clearTimeout(D.current), t !== "" && (D.current = window.setTimeout(() => e(""), 1e3));
|
|
298
|
+
})(t), o && setTimeout(() => o.focus());
|
|
299
|
+
};
|
|
300
|
+
z.useEffect(() => () => window.clearTimeout(D.current), []), ne();
|
|
301
|
+
let L = z.useCallback((e) => j.current === A.current?.side && on(e, A.current?.area), []);
|
|
302
|
+
return /* @__PURE__ */ (0, B.jsx)(pt, {
|
|
303
|
+
scope: n,
|
|
304
|
+
searchRef: O,
|
|
305
|
+
onItemEnter: z.useCallback((e) => {
|
|
306
|
+
L(e) && e.preventDefault();
|
|
307
|
+
}, [L]),
|
|
308
|
+
onItemLeave: z.useCallback((e) => {
|
|
309
|
+
L(e) || (T.current?.focus(), w(null));
|
|
310
|
+
}, [L]),
|
|
311
|
+
onTriggerLeave: z.useCallback((e) => {
|
|
312
|
+
L(e) && e.preventDefault();
|
|
313
|
+
}, [L]),
|
|
314
|
+
pointerGraceTimerRef: k,
|
|
315
|
+
onPointerGraceIntentChange: z.useCallback((e) => {
|
|
316
|
+
A.current = e;
|
|
317
|
+
}, []),
|
|
318
|
+
children: /* @__PURE__ */ (0, B.jsx)(P, {
|
|
319
|
+
...F,
|
|
320
|
+
children: /* @__PURE__ */ (0, B.jsx)(ae, {
|
|
321
|
+
asChild: !0,
|
|
322
|
+
trapped: i,
|
|
323
|
+
onMountAutoFocus: M(o, (e) => {
|
|
324
|
+
e.preventDefault(), T.current?.focus({ preventScroll: !0 });
|
|
325
|
+
}),
|
|
326
|
+
onUnmountAutoFocus: s,
|
|
327
|
+
children: /* @__PURE__ */ (0, B.jsx)(re, {
|
|
328
|
+
asChild: !0,
|
|
329
|
+
disableOutsidePointerEvents: c,
|
|
330
|
+
onEscapeKeyDown: u,
|
|
331
|
+
onPointerDownOutside: d,
|
|
332
|
+
onFocusOutside: p,
|
|
333
|
+
onInteractOutside: m,
|
|
334
|
+
onDismiss: h,
|
|
335
|
+
children: /* @__PURE__ */ (0, B.jsx)(Be, {
|
|
336
|
+
asChild: !0,
|
|
337
|
+
...x,
|
|
338
|
+
dir: y.dir,
|
|
339
|
+
orientation: "vertical",
|
|
340
|
+
loop: r,
|
|
341
|
+
currentTabStopId: C,
|
|
342
|
+
onCurrentTabStopIdChange: w,
|
|
343
|
+
onEntryFocus: M(l, (e) => {
|
|
344
|
+
y.isUsingKeyboardRef.current || e.preventDefault();
|
|
345
|
+
}),
|
|
346
|
+
preventScrollOnEntryFocus: !0,
|
|
347
|
+
children: /* @__PURE__ */ (0, B.jsx)(f, {
|
|
348
|
+
role: "menu",
|
|
349
|
+
"aria-orientation": "vertical",
|
|
350
|
+
"data-state": Qt(v.open),
|
|
351
|
+
"data-radix-menu-content": "",
|
|
352
|
+
dir: y.dir,
|
|
353
|
+
...b,
|
|
354
|
+
..._,
|
|
355
|
+
ref: E,
|
|
356
|
+
style: {
|
|
357
|
+
outline: "none",
|
|
358
|
+
..._.style
|
|
359
|
+
},
|
|
360
|
+
onKeyDown: M(_.onKeyDown, (e) => {
|
|
361
|
+
let t = e.target.closest("[data-radix-menu-content]") === e.currentTarget, n = e.ctrlKey || e.altKey || e.metaKey, r = e.key.length === 1;
|
|
362
|
+
t && (e.key === "Tab" && e.preventDefault(), !n && r && I(e.key));
|
|
363
|
+
let i = T.current;
|
|
364
|
+
if (e.target !== i || !Ge.includes(e.key)) return;
|
|
365
|
+
e.preventDefault();
|
|
366
|
+
let a = S().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
367
|
+
We.includes(e.key) && a.reverse(), tn(a);
|
|
368
|
+
}),
|
|
369
|
+
onBlur: M(e.onBlur, (e) => {
|
|
370
|
+
e.currentTarget.contains(e.target) || (window.clearTimeout(D.current), O.current = "");
|
|
371
|
+
}),
|
|
372
|
+
onPointerMove: M(e.onPointerMove, sn((e) => {
|
|
373
|
+
let t = e.target, n = N.current !== e.clientX;
|
|
374
|
+
if (e.currentTarget.contains(t) && n) {
|
|
375
|
+
let t = e.clientX > N.current ? "right" : "left";
|
|
376
|
+
j.current = t, N.current = e.clientX;
|
|
377
|
+
}
|
|
378
|
+
}))
|
|
379
|
+
})
|
|
380
|
+
})
|
|
381
|
+
})
|
|
382
|
+
})
|
|
383
|
+
})
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
ht.displayName = V;
|
|
387
|
+
var bt = "MenuGroup", xt = z.forwardRef((e, t) => {
|
|
388
|
+
let { __scopeMenu: n, ...r } = e;
|
|
389
|
+
return /* @__PURE__ */ (0, B.jsx)(I.div, {
|
|
390
|
+
role: "group",
|
|
391
|
+
...r,
|
|
392
|
+
ref: t
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
xt.displayName = bt;
|
|
396
|
+
var St = "MenuLabel", Ct = z.forwardRef((e, t) => {
|
|
397
|
+
let { __scopeMenu: n, ...r } = e;
|
|
398
|
+
return /* @__PURE__ */ (0, B.jsx)(I.div, {
|
|
399
|
+
...r,
|
|
400
|
+
ref: t
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
Ct.displayName = St;
|
|
404
|
+
var wt = "MenuItem", Tt = "menu.itemSelect", Et = z.forwardRef((e, t) => {
|
|
405
|
+
let { disabled: n = !1, onSelect: r, ...i } = e, o = z.useRef(null), s = at(wt, e.__scopeMenu), c = mt(wt, e.__scopeMenu), l = a(t, o), u = z.useRef(!1), d = () => {
|
|
406
|
+
let e = o.current;
|
|
407
|
+
if (!n && e) {
|
|
408
|
+
let t = new CustomEvent(Tt, {
|
|
409
|
+
bubbles: !0,
|
|
410
|
+
cancelable: !0
|
|
411
|
+
});
|
|
412
|
+
e.addEventListener(Tt, (e) => r?.(e), { once: !0 }), N(e, t), t.defaultPrevented ? u.current = !1 : s.onClose();
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
return /* @__PURE__ */ (0, B.jsx)(Dt, {
|
|
416
|
+
...i,
|
|
417
|
+
ref: l,
|
|
418
|
+
disabled: n,
|
|
419
|
+
onClick: M(e.onClick, d),
|
|
420
|
+
onPointerDown: (t) => {
|
|
421
|
+
e.onPointerDown?.(t), u.current = !0;
|
|
422
|
+
},
|
|
423
|
+
onPointerUp: M(e.onPointerUp, (e) => {
|
|
424
|
+
u.current || e.currentTarget?.click();
|
|
425
|
+
}),
|
|
426
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
427
|
+
let t = c.searchRef.current !== "";
|
|
428
|
+
n || t && e.key === " " || He.includes(e.key) && (e.currentTarget.click(), e.preventDefault());
|
|
429
|
+
})
|
|
430
|
+
});
|
|
431
|
+
});
|
|
432
|
+
Et.displayName = wt;
|
|
433
|
+
var Dt = z.forwardRef((e, t) => {
|
|
434
|
+
let { __scopeMenu: n, disabled: r = !1, textValue: i, ...o } = e, s = mt(wt, n), c = tt(n), l = z.useRef(null), u = a(t, l), [d, f] = z.useState(!1), [p, m] = z.useState("");
|
|
435
|
+
return z.useEffect(() => {
|
|
436
|
+
let e = l.current;
|
|
437
|
+
e && m((e.textContent ?? "").trim());
|
|
438
|
+
}, [o.children]), /* @__PURE__ */ (0, B.jsx)(Ye.ItemSlot, {
|
|
439
|
+
scope: n,
|
|
440
|
+
disabled: r,
|
|
441
|
+
textValue: i ?? p,
|
|
442
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ve, {
|
|
443
|
+
asChild: !0,
|
|
444
|
+
...c,
|
|
445
|
+
focusable: !r,
|
|
446
|
+
children: /* @__PURE__ */ (0, B.jsx)(I.div, {
|
|
447
|
+
role: "menuitem",
|
|
448
|
+
"data-highlighted": d ? "" : void 0,
|
|
449
|
+
"aria-disabled": r || void 0,
|
|
450
|
+
"data-disabled": r ? "" : void 0,
|
|
451
|
+
...o,
|
|
452
|
+
ref: u,
|
|
453
|
+
onPointerMove: M(e.onPointerMove, sn((e) => {
|
|
454
|
+
r ? s.onItemLeave(e) : (s.onItemEnter(e), e.defaultPrevented || e.currentTarget.focus({ preventScroll: !0 }));
|
|
455
|
+
})),
|
|
456
|
+
onPointerLeave: M(e.onPointerLeave, sn((e) => s.onItemLeave(e))),
|
|
457
|
+
onFocus: M(e.onFocus, () => f(!0)),
|
|
458
|
+
onBlur: M(e.onBlur, () => f(!1))
|
|
459
|
+
})
|
|
460
|
+
})
|
|
461
|
+
});
|
|
462
|
+
}), Ot = "MenuCheckboxItem", kt = z.forwardRef((e, t) => {
|
|
463
|
+
let { checked: n = !1, onCheckedChange: r, ...i } = e;
|
|
464
|
+
return /* @__PURE__ */ (0, B.jsx)(Lt, {
|
|
465
|
+
scope: e.__scopeMenu,
|
|
466
|
+
checked: n,
|
|
467
|
+
children: /* @__PURE__ */ (0, B.jsx)(Et, {
|
|
468
|
+
role: "menuitemcheckbox",
|
|
469
|
+
"aria-checked": $t(n) ? "mixed" : n,
|
|
470
|
+
...i,
|
|
471
|
+
ref: t,
|
|
472
|
+
"data-state": en(n),
|
|
473
|
+
onSelect: M(i.onSelect, () => r?.($t(n) ? !0 : !n), { checkForDefaultPrevented: !1 })
|
|
474
|
+
})
|
|
475
|
+
});
|
|
476
|
+
});
|
|
477
|
+
kt.displayName = Ot;
|
|
478
|
+
var At = "MenuRadioGroup", [jt, Mt] = Qe(At, {
|
|
479
|
+
value: void 0,
|
|
480
|
+
onValueChange: () => {}
|
|
481
|
+
}), Nt = z.forwardRef((e, t) => {
|
|
482
|
+
let { value: n, onValueChange: r, ...i } = e, a = R(r);
|
|
483
|
+
return /* @__PURE__ */ (0, B.jsx)(jt, {
|
|
484
|
+
scope: e.__scopeMenu,
|
|
485
|
+
value: n,
|
|
486
|
+
onValueChange: a,
|
|
487
|
+
children: /* @__PURE__ */ (0, B.jsx)(xt, {
|
|
488
|
+
...i,
|
|
489
|
+
ref: t
|
|
490
|
+
})
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
Nt.displayName = At;
|
|
494
|
+
var Pt = "MenuRadioItem", Ft = z.forwardRef((e, t) => {
|
|
495
|
+
let { value: n, ...r } = e, i = Mt(Pt, e.__scopeMenu), a = n === i.value;
|
|
496
|
+
return /* @__PURE__ */ (0, B.jsx)(Lt, {
|
|
497
|
+
scope: e.__scopeMenu,
|
|
498
|
+
checked: a,
|
|
499
|
+
children: /* @__PURE__ */ (0, B.jsx)(Et, {
|
|
500
|
+
role: "menuitemradio",
|
|
501
|
+
"aria-checked": a,
|
|
502
|
+
...r,
|
|
503
|
+
ref: t,
|
|
504
|
+
"data-state": en(a),
|
|
505
|
+
onSelect: M(r.onSelect, () => i.onValueChange?.(n), { checkForDefaultPrevented: !1 })
|
|
506
|
+
})
|
|
507
|
+
});
|
|
508
|
+
});
|
|
509
|
+
Ft.displayName = Pt;
|
|
510
|
+
var It = "MenuItemIndicator", [Lt, Rt] = Qe(It, { checked: !1 }), zt = z.forwardRef((e, t) => {
|
|
511
|
+
let { __scopeMenu: n, forceMount: r, ...i } = e, a = Rt(It, n);
|
|
512
|
+
return /* @__PURE__ */ (0, B.jsx)(te, {
|
|
513
|
+
present: r || $t(a.checked) || a.checked === !0,
|
|
514
|
+
children: /* @__PURE__ */ (0, B.jsx)(I.span, {
|
|
515
|
+
...i,
|
|
516
|
+
ref: t,
|
|
517
|
+
"data-state": en(a.checked)
|
|
518
|
+
})
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
zt.displayName = It;
|
|
522
|
+
var Bt = "MenuSeparator", Vt = z.forwardRef((e, t) => {
|
|
523
|
+
let { __scopeMenu: n, ...r } = e;
|
|
524
|
+
return /* @__PURE__ */ (0, B.jsx)(I.div, {
|
|
525
|
+
role: "separator",
|
|
526
|
+
"aria-orientation": "horizontal",
|
|
527
|
+
...r,
|
|
528
|
+
ref: t
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
Vt.displayName = Bt;
|
|
532
|
+
var Ht = "MenuArrow", Ut = z.forwardRef((e, t) => {
|
|
533
|
+
let { __scopeMenu: n, ...r } = e, i = et(n);
|
|
534
|
+
return /* @__PURE__ */ (0, B.jsx)(l, {
|
|
535
|
+
...i,
|
|
536
|
+
...r,
|
|
537
|
+
ref: t
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
Ut.displayName = Ht;
|
|
541
|
+
var Wt = "MenuSub", [Gt, Kt] = Qe(Wt), qt = (e) => {
|
|
542
|
+
let { __scopeMenu: t, children: n, open: r = !1, onOpenChange: i } = e, a = rt(Wt, t), o = et(t), [s, c] = z.useState(null), [l, u] = z.useState(null), d = R(i);
|
|
543
|
+
return z.useEffect(() => (a.open === !1 && d(!1), () => d(!1)), [a.open, d]), /* @__PURE__ */ (0, B.jsx)(m, {
|
|
544
|
+
...o,
|
|
545
|
+
children: /* @__PURE__ */ (0, B.jsx)(nt, {
|
|
546
|
+
scope: t,
|
|
547
|
+
open: r,
|
|
548
|
+
onOpenChange: d,
|
|
549
|
+
content: l,
|
|
550
|
+
onContentChange: u,
|
|
551
|
+
children: /* @__PURE__ */ (0, B.jsx)(Gt, {
|
|
552
|
+
scope: t,
|
|
553
|
+
contentId: ue(),
|
|
554
|
+
triggerId: ue(),
|
|
555
|
+
trigger: s,
|
|
556
|
+
onTriggerChange: c,
|
|
557
|
+
children: n
|
|
558
|
+
})
|
|
559
|
+
})
|
|
560
|
+
});
|
|
561
|
+
};
|
|
562
|
+
qt.displayName = Wt;
|
|
563
|
+
var Jt = "MenuSubTrigger", Yt = z.forwardRef((e, n) => {
|
|
564
|
+
let r = rt(Jt, e.__scopeMenu), i = at(Jt, e.__scopeMenu), a = Kt(Jt, e.__scopeMenu), o = mt(Jt, e.__scopeMenu), s = z.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = o, u = { __scopeMenu: e.__scopeMenu }, d = z.useCallback(() => {
|
|
565
|
+
s.current && window.clearTimeout(s.current), s.current = null;
|
|
566
|
+
}, []);
|
|
567
|
+
return z.useEffect(() => d, [d]), z.useEffect(() => {
|
|
568
|
+
let e = c.current;
|
|
569
|
+
return () => {
|
|
570
|
+
window.clearTimeout(e), l(null);
|
|
571
|
+
};
|
|
572
|
+
}, [c, l]), /* @__PURE__ */ (0, B.jsx)(ct, {
|
|
573
|
+
asChild: !0,
|
|
574
|
+
...u,
|
|
575
|
+
children: /* @__PURE__ */ (0, B.jsx)(Dt, {
|
|
576
|
+
id: a.triggerId,
|
|
577
|
+
"aria-haspopup": "menu",
|
|
578
|
+
"aria-expanded": r.open,
|
|
579
|
+
"aria-controls": a.contentId,
|
|
580
|
+
"data-state": Qt(r.open),
|
|
581
|
+
...e,
|
|
582
|
+
ref: t(n, a.onTriggerChange),
|
|
583
|
+
onClick: (t) => {
|
|
584
|
+
e.onClick?.(t), !(e.disabled || t.defaultPrevented) && (t.currentTarget.focus(), r.open || r.onOpenChange(!0));
|
|
585
|
+
},
|
|
586
|
+
onPointerMove: M(e.onPointerMove, sn((t) => {
|
|
587
|
+
o.onItemEnter(t), !t.defaultPrevented && !e.disabled && !r.open && !s.current && (o.onPointerGraceIntentChange(null), s.current = window.setTimeout(() => {
|
|
588
|
+
r.onOpenChange(!0), d();
|
|
589
|
+
}, 100));
|
|
590
|
+
})),
|
|
591
|
+
onPointerLeave: M(e.onPointerLeave, sn((e) => {
|
|
592
|
+
d();
|
|
593
|
+
let t = r.content?.getBoundingClientRect();
|
|
594
|
+
if (t) {
|
|
595
|
+
let n = r.content?.dataset.side, i = n === "right", a = i ? -5 : 5, s = t[i ? "left" : "right"], l = t[i ? "right" : "left"];
|
|
596
|
+
o.onPointerGraceIntentChange({
|
|
597
|
+
area: [
|
|
598
|
+
{
|
|
599
|
+
x: e.clientX + a,
|
|
600
|
+
y: e.clientY
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
x: s,
|
|
604
|
+
y: t.top
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
x: l,
|
|
608
|
+
y: t.top
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
x: l,
|
|
612
|
+
y: t.bottom
|
|
613
|
+
},
|
|
614
|
+
{
|
|
615
|
+
x: s,
|
|
616
|
+
y: t.bottom
|
|
617
|
+
}
|
|
618
|
+
],
|
|
619
|
+
side: n
|
|
620
|
+
}), window.clearTimeout(c.current), c.current = window.setTimeout(() => o.onPointerGraceIntentChange(null), 300);
|
|
621
|
+
} else {
|
|
622
|
+
if (o.onTriggerLeave(e), e.defaultPrevented) return;
|
|
623
|
+
o.onPointerGraceIntentChange(null);
|
|
624
|
+
}
|
|
625
|
+
})),
|
|
626
|
+
onKeyDown: M(e.onKeyDown, (t) => {
|
|
627
|
+
let n = o.searchRef.current !== "";
|
|
628
|
+
e.disabled || n && t.key === " " || Ke[i.dir].includes(t.key) && (r.onOpenChange(!0), r.content?.focus(), t.preventDefault());
|
|
629
|
+
})
|
|
630
|
+
})
|
|
631
|
+
});
|
|
632
|
+
});
|
|
633
|
+
Yt.displayName = Jt;
|
|
634
|
+
var Xt = "MenuSubContent", Zt = z.forwardRef((e, t) => {
|
|
635
|
+
let n = dt(V, e.__scopeMenu), { forceMount: r = n.forceMount, ...i } = e, o = rt(V, e.__scopeMenu), s = at(V, e.__scopeMenu), c = Kt(Xt, e.__scopeMenu), l = z.useRef(null), u = a(t, l);
|
|
636
|
+
return /* @__PURE__ */ (0, B.jsx)(Ye.Provider, {
|
|
637
|
+
scope: e.__scopeMenu,
|
|
638
|
+
children: /* @__PURE__ */ (0, B.jsx)(te, {
|
|
639
|
+
present: r || o.open,
|
|
640
|
+
children: /* @__PURE__ */ (0, B.jsx)(Ye.Slot, {
|
|
641
|
+
scope: e.__scopeMenu,
|
|
642
|
+
children: /* @__PURE__ */ (0, B.jsx)(yt, {
|
|
643
|
+
id: c.contentId,
|
|
644
|
+
"aria-labelledby": c.triggerId,
|
|
645
|
+
...i,
|
|
646
|
+
ref: u,
|
|
647
|
+
align: "start",
|
|
648
|
+
side: s.dir === "rtl" ? "left" : "right",
|
|
649
|
+
disableOutsidePointerEvents: !1,
|
|
650
|
+
disableOutsideScroll: !1,
|
|
651
|
+
trapFocus: !1,
|
|
652
|
+
onOpenAutoFocus: (e) => {
|
|
653
|
+
s.isUsingKeyboardRef.current && l.current?.focus(), e.preventDefault();
|
|
654
|
+
},
|
|
655
|
+
onCloseAutoFocus: (e) => e.preventDefault(),
|
|
656
|
+
onFocusOutside: M(e.onFocusOutside, (e) => {
|
|
657
|
+
e.target !== c.trigger && o.onOpenChange(!1);
|
|
658
|
+
}),
|
|
659
|
+
onEscapeKeyDown: M(e.onEscapeKeyDown, (e) => {
|
|
660
|
+
s.onClose(), e.preventDefault();
|
|
661
|
+
}),
|
|
662
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
663
|
+
let t = e.currentTarget.contains(e.target), n = qe[s.dir].includes(e.key);
|
|
664
|
+
t && n && (o.onOpenChange(!1), c.trigger?.focus(), e.preventDefault());
|
|
665
|
+
})
|
|
666
|
+
})
|
|
667
|
+
})
|
|
668
|
+
})
|
|
669
|
+
});
|
|
670
|
+
});
|
|
671
|
+
Zt.displayName = Xt;
|
|
672
|
+
function Qt(e) {
|
|
673
|
+
return e ? "open" : "closed";
|
|
674
|
+
}
|
|
675
|
+
function $t(e) {
|
|
676
|
+
return e === "indeterminate";
|
|
677
|
+
}
|
|
678
|
+
function en(e) {
|
|
679
|
+
return $t(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
680
|
+
}
|
|
681
|
+
function tn(e) {
|
|
682
|
+
let t = document.activeElement;
|
|
683
|
+
for (let n of e) if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
684
|
+
}
|
|
685
|
+
function nn(e, t) {
|
|
686
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
687
|
+
}
|
|
688
|
+
function rn(e, t, n) {
|
|
689
|
+
let r = t.length > 1 && Array.from(t).every((e) => e === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1, a = nn(e, Math.max(i, 0));
|
|
690
|
+
r.length === 1 && (a = a.filter((e) => e !== n));
|
|
691
|
+
let o = a.find((e) => e.toLowerCase().startsWith(r.toLowerCase()));
|
|
692
|
+
return o === n ? void 0 : o;
|
|
693
|
+
}
|
|
694
|
+
function an(e, t) {
|
|
695
|
+
let { x: n, y: r } = e, i = !1;
|
|
696
|
+
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
697
|
+
let o = t[e], s = t[a], c = o.x, l = o.y, u = s.x, d = s.y;
|
|
698
|
+
l > r != d > r && n < (u - c) * (r - l) / (d - l) + c && (i = !i);
|
|
699
|
+
}
|
|
700
|
+
return i;
|
|
701
|
+
}
|
|
702
|
+
function on(e, t) {
|
|
703
|
+
return t ? an({
|
|
704
|
+
x: e.clientX,
|
|
705
|
+
y: e.clientY
|
|
706
|
+
}, t) : !1;
|
|
707
|
+
}
|
|
708
|
+
function sn(e) {
|
|
709
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
710
|
+
}
|
|
711
|
+
var cn = ot, ln = ct, un = ft, dn = ht, fn = xt, pn = Ct, mn = Et, hn = kt, gn = Nt, _n = Ft, vn = zt, yn = Vt, bn = Ut, xn = qt, Sn = Yt, Cn = Zt, wn = "DropdownMenu", [Tn, En] = ce(wn, [$e]), H = $e(), [Dn, On] = Tn(wn), kn = (e) => {
|
|
712
|
+
let { __scopeDropdownMenu: t, children: n, dir: r, open: i, defaultOpen: a, onOpenChange: o, modal: s = !0 } = e, c = H(t), l = z.useRef(null), [u, d] = le({
|
|
713
|
+
prop: i,
|
|
714
|
+
defaultProp: a ?? !1,
|
|
715
|
+
onChange: o,
|
|
716
|
+
caller: wn
|
|
717
|
+
});
|
|
718
|
+
return /* @__PURE__ */ (0, B.jsx)(Dn, {
|
|
719
|
+
scope: t,
|
|
720
|
+
triggerId: ue(),
|
|
721
|
+
triggerRef: l,
|
|
722
|
+
contentId: ue(),
|
|
723
|
+
open: u,
|
|
724
|
+
onOpenChange: d,
|
|
725
|
+
onOpenToggle: z.useCallback(() => d((e) => !e), [d]),
|
|
726
|
+
modal: s,
|
|
727
|
+
children: /* @__PURE__ */ (0, B.jsx)(cn, {
|
|
728
|
+
...c,
|
|
729
|
+
open: u,
|
|
730
|
+
onOpenChange: d,
|
|
731
|
+
dir: r,
|
|
732
|
+
modal: s,
|
|
733
|
+
children: n
|
|
734
|
+
})
|
|
735
|
+
});
|
|
736
|
+
};
|
|
737
|
+
kn.displayName = wn;
|
|
738
|
+
var An = "DropdownMenuTrigger", jn = z.forwardRef((e, n) => {
|
|
739
|
+
let { __scopeDropdownMenu: r, disabled: i = !1, ...a } = e, o = On(An, r), s = H(r);
|
|
740
|
+
return /* @__PURE__ */ (0, B.jsx)(ln, {
|
|
741
|
+
asChild: !0,
|
|
742
|
+
...s,
|
|
743
|
+
children: /* @__PURE__ */ (0, B.jsx)(I.button, {
|
|
744
|
+
type: "button",
|
|
745
|
+
id: o.triggerId,
|
|
746
|
+
"aria-haspopup": "menu",
|
|
747
|
+
"aria-expanded": o.open,
|
|
748
|
+
"aria-controls": o.open ? o.contentId : void 0,
|
|
749
|
+
"data-state": o.open ? "open" : "closed",
|
|
750
|
+
"data-disabled": i ? "" : void 0,
|
|
751
|
+
disabled: i,
|
|
752
|
+
...a,
|
|
753
|
+
ref: t(n, o.triggerRef),
|
|
754
|
+
onPointerDown: M(e.onPointerDown, (e) => {
|
|
755
|
+
!i && e.button === 0 && e.ctrlKey === !1 && (o.onOpenToggle(), o.open || e.preventDefault());
|
|
756
|
+
}),
|
|
757
|
+
onKeyDown: M(e.onKeyDown, (e) => {
|
|
758
|
+
i || (["Enter", " "].includes(e.key) && o.onOpenToggle(), e.key === "ArrowDown" && o.onOpenChange(!0), [
|
|
759
|
+
"Enter",
|
|
760
|
+
" ",
|
|
761
|
+
"ArrowDown"
|
|
762
|
+
].includes(e.key) && e.preventDefault());
|
|
763
|
+
})
|
|
764
|
+
})
|
|
765
|
+
});
|
|
766
|
+
});
|
|
767
|
+
jn.displayName = An;
|
|
768
|
+
var Mn = "DropdownMenuPortal", Nn = (e) => {
|
|
769
|
+
let { __scopeDropdownMenu: t, ...n } = e, r = H(t);
|
|
770
|
+
return /* @__PURE__ */ (0, B.jsx)(un, {
|
|
771
|
+
...r,
|
|
772
|
+
...n
|
|
773
|
+
});
|
|
774
|
+
};
|
|
775
|
+
Nn.displayName = Mn;
|
|
776
|
+
var Pn = "DropdownMenuContent", Fn = z.forwardRef((e, t) => {
|
|
777
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = On(Pn, n), a = H(n), o = z.useRef(!1);
|
|
778
|
+
return /* @__PURE__ */ (0, B.jsx)(dn, {
|
|
779
|
+
id: i.contentId,
|
|
780
|
+
"aria-labelledby": i.triggerId,
|
|
781
|
+
...a,
|
|
782
|
+
...r,
|
|
783
|
+
ref: t,
|
|
784
|
+
onCloseAutoFocus: M(e.onCloseAutoFocus, (e) => {
|
|
785
|
+
o.current || i.triggerRef.current?.focus(), o.current = !1, e.preventDefault();
|
|
786
|
+
}),
|
|
787
|
+
onInteractOutside: M(e.onInteractOutside, (e) => {
|
|
788
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
789
|
+
(!i.modal || r) && (o.current = !0);
|
|
790
|
+
}),
|
|
791
|
+
style: {
|
|
792
|
+
...e.style,
|
|
793
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
794
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
795
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
796
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
797
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
798
|
+
}
|
|
799
|
+
});
|
|
800
|
+
});
|
|
801
|
+
Fn.displayName = Pn;
|
|
802
|
+
var In = "DropdownMenuGroup", Ln = z.forwardRef((e, t) => {
|
|
803
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
804
|
+
return /* @__PURE__ */ (0, B.jsx)(fn, {
|
|
805
|
+
...i,
|
|
806
|
+
...r,
|
|
807
|
+
ref: t
|
|
808
|
+
});
|
|
809
|
+
});
|
|
810
|
+
Ln.displayName = In;
|
|
811
|
+
var Rn = "DropdownMenuLabel", zn = z.forwardRef((e, t) => {
|
|
812
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
813
|
+
return /* @__PURE__ */ (0, B.jsx)(pn, {
|
|
814
|
+
...i,
|
|
815
|
+
...r,
|
|
816
|
+
ref: t
|
|
817
|
+
});
|
|
818
|
+
});
|
|
819
|
+
zn.displayName = Rn;
|
|
820
|
+
var Bn = "DropdownMenuItem", Vn = z.forwardRef((e, t) => {
|
|
821
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
822
|
+
return /* @__PURE__ */ (0, B.jsx)(mn, {
|
|
823
|
+
...i,
|
|
824
|
+
...r,
|
|
825
|
+
ref: t
|
|
826
|
+
});
|
|
827
|
+
});
|
|
828
|
+
Vn.displayName = Bn;
|
|
829
|
+
var Hn = "DropdownMenuCheckboxItem", Un = z.forwardRef((e, t) => {
|
|
830
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
831
|
+
return /* @__PURE__ */ (0, B.jsx)(hn, {
|
|
832
|
+
...i,
|
|
833
|
+
...r,
|
|
834
|
+
ref: t
|
|
835
|
+
});
|
|
836
|
+
});
|
|
837
|
+
Un.displayName = Hn;
|
|
838
|
+
var Wn = "DropdownMenuRadioGroup", Gn = z.forwardRef((e, t) => {
|
|
839
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
840
|
+
return /* @__PURE__ */ (0, B.jsx)(gn, {
|
|
841
|
+
...i,
|
|
842
|
+
...r,
|
|
843
|
+
ref: t
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
Gn.displayName = Wn;
|
|
847
|
+
var Kn = "DropdownMenuRadioItem", qn = z.forwardRef((e, t) => {
|
|
848
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
849
|
+
return /* @__PURE__ */ (0, B.jsx)(_n, {
|
|
850
|
+
...i,
|
|
851
|
+
...r,
|
|
852
|
+
ref: t
|
|
853
|
+
});
|
|
854
|
+
});
|
|
855
|
+
qn.displayName = Kn;
|
|
856
|
+
var Jn = "DropdownMenuItemIndicator", Yn = z.forwardRef((e, t) => {
|
|
857
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
858
|
+
return /* @__PURE__ */ (0, B.jsx)(vn, {
|
|
859
|
+
...i,
|
|
860
|
+
...r,
|
|
861
|
+
ref: t
|
|
862
|
+
});
|
|
863
|
+
});
|
|
864
|
+
Yn.displayName = Jn;
|
|
865
|
+
var Xn = "DropdownMenuSeparator", Zn = z.forwardRef((e, t) => {
|
|
866
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
867
|
+
return /* @__PURE__ */ (0, B.jsx)(yn, {
|
|
868
|
+
...i,
|
|
869
|
+
...r,
|
|
870
|
+
ref: t
|
|
871
|
+
});
|
|
872
|
+
});
|
|
873
|
+
Zn.displayName = Xn;
|
|
874
|
+
var Qn = "DropdownMenuArrow", $n = z.forwardRef((e, t) => {
|
|
875
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
876
|
+
return /* @__PURE__ */ (0, B.jsx)(bn, {
|
|
877
|
+
...i,
|
|
878
|
+
...r,
|
|
879
|
+
ref: t
|
|
880
|
+
});
|
|
881
|
+
});
|
|
882
|
+
$n.displayName = Qn;
|
|
883
|
+
var er = (e) => {
|
|
884
|
+
let { __scopeDropdownMenu: t, children: n, open: r, onOpenChange: i, defaultOpen: a } = e, o = H(t), [s, c] = le({
|
|
885
|
+
prop: r,
|
|
886
|
+
defaultProp: a ?? !1,
|
|
887
|
+
onChange: i,
|
|
888
|
+
caller: "DropdownMenuSub"
|
|
889
|
+
});
|
|
890
|
+
return /* @__PURE__ */ (0, B.jsx)(xn, {
|
|
891
|
+
...o,
|
|
892
|
+
open: s,
|
|
893
|
+
onOpenChange: c,
|
|
894
|
+
children: n
|
|
895
|
+
});
|
|
896
|
+
}, tr = "DropdownMenuSubTrigger", nr = z.forwardRef((e, t) => {
|
|
897
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
898
|
+
return /* @__PURE__ */ (0, B.jsx)(Sn, {
|
|
899
|
+
...i,
|
|
900
|
+
...r,
|
|
901
|
+
ref: t
|
|
902
|
+
});
|
|
903
|
+
});
|
|
904
|
+
nr.displayName = tr;
|
|
905
|
+
var rr = "DropdownMenuSubContent", ir = z.forwardRef((e, t) => {
|
|
906
|
+
let { __scopeDropdownMenu: n, ...r } = e, i = H(n);
|
|
907
|
+
return /* @__PURE__ */ (0, B.jsx)(Cn, {
|
|
908
|
+
...i,
|
|
909
|
+
...r,
|
|
910
|
+
ref: t,
|
|
911
|
+
style: {
|
|
912
|
+
...e.style,
|
|
913
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
914
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
915
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
916
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
917
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
918
|
+
}
|
|
919
|
+
});
|
|
920
|
+
});
|
|
921
|
+
ir.displayName = rr;
|
|
922
|
+
var ar = kn, or = jn, sr = Nn, cr = Fn, lr = Ln, ur = zn, dr = Vn, fr = Un, pr = qn, mr = Yn, hr = Zn, gr = er, _r = nr, vr = ir, U = typeof document < "u" ? z.useLayoutEffect : () => {};
|
|
923
|
+
//#endregion
|
|
924
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useValueEffect.mjs
|
|
925
|
+
function yr(e) {
|
|
926
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(t), i = (0, z.useRef)(null), a = (0, z.useRef)(() => {
|
|
927
|
+
if (!i.current) return;
|
|
928
|
+
let e = i.current.next();
|
|
929
|
+
if (e.done) {
|
|
930
|
+
i.current = null;
|
|
931
|
+
return;
|
|
932
|
+
}
|
|
933
|
+
r.current === e.value ? a.current() : n(e.value);
|
|
934
|
+
});
|
|
935
|
+
return U(() => {
|
|
936
|
+
r.current = t, i.current && a.current();
|
|
937
|
+
}), [t, (0, z.useCallback)((e) => {
|
|
938
|
+
i.current = e(r.current), a.current();
|
|
939
|
+
}, [a])];
|
|
940
|
+
}
|
|
941
|
+
//#endregion
|
|
942
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useId.mjs
|
|
943
|
+
var br = !!(typeof window < "u" && window.document && window.document.createElement), xr = /* @__PURE__ */ new Map(), Sr;
|
|
944
|
+
typeof FinalizationRegistry < "u" && (Sr = new FinalizationRegistry((e) => {
|
|
945
|
+
xr.delete(e);
|
|
946
|
+
}));
|
|
947
|
+
function W(e) {
|
|
948
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(null), i = fe(t), a = (0, z.useRef)(null);
|
|
949
|
+
if (Sr && Sr.register(a, i), br) {
|
|
950
|
+
let e = xr.get(i);
|
|
951
|
+
e && !e.includes(r) ? e.push(r) : xr.set(i, [r]);
|
|
952
|
+
}
|
|
953
|
+
return U(() => {
|
|
954
|
+
let e = i;
|
|
955
|
+
return () => {
|
|
956
|
+
Sr && Sr.unregister(a), xr.delete(e);
|
|
957
|
+
};
|
|
958
|
+
}, [i]), (0, z.useEffect)(() => {
|
|
959
|
+
let e = r.current;
|
|
960
|
+
return e && n(e), () => {
|
|
961
|
+
e && (r.current = null);
|
|
962
|
+
};
|
|
963
|
+
}), i;
|
|
964
|
+
}
|
|
965
|
+
function Cr(e, t) {
|
|
966
|
+
if (e === t) return e;
|
|
967
|
+
let n = xr.get(e);
|
|
968
|
+
if (n) return n.forEach((e) => e.current = t), t;
|
|
969
|
+
let r = xr.get(t);
|
|
970
|
+
return r ? (r.forEach((t) => t.current = e), e) : t;
|
|
971
|
+
}
|
|
972
|
+
function wr(e = []) {
|
|
973
|
+
let t = W(), [n, r] = yr(t), i = (0, z.useCallback)(() => {
|
|
974
|
+
r(function* () {
|
|
975
|
+
yield t, yield document.getElementById(t) ? t : void 0;
|
|
976
|
+
});
|
|
977
|
+
}, [t, r]);
|
|
978
|
+
return U(i, [
|
|
979
|
+
t,
|
|
980
|
+
i,
|
|
981
|
+
...e
|
|
982
|
+
]), n;
|
|
983
|
+
}
|
|
984
|
+
//#endregion
|
|
985
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/chain.mjs
|
|
986
|
+
function Tr(...e) {
|
|
987
|
+
return (...t) => {
|
|
988
|
+
for (let n of e) typeof n == "function" && n(...t);
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
//#endregion
|
|
992
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/domHelpers.mjs
|
|
993
|
+
var G = (e) => e?.ownerDocument ?? document, K = (e) => e && "window" in e && e.window === e ? e : G(e).defaultView || window;
|
|
994
|
+
function Er(e) {
|
|
995
|
+
return typeof e == "object" && !!e && "nodeType" in e && typeof e.nodeType == "number";
|
|
996
|
+
}
|
|
997
|
+
function Dr(e) {
|
|
998
|
+
return Er(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
|
|
999
|
+
}
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region ../node_modules/.pnpm/@react-stately+flags@3.1.2/node_modules/@react-stately/flags/dist/import.mjs
|
|
1002
|
+
var Or = !1;
|
|
1003
|
+
function kr() {
|
|
1004
|
+
return Or;
|
|
1005
|
+
}
|
|
1006
|
+
//#endregion
|
|
1007
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/DOMFunctions.mjs
|
|
1008
|
+
function q(e, t) {
|
|
1009
|
+
if (!kr()) return t && e ? e.contains(t) : !1;
|
|
1010
|
+
if (!e || !t) return !1;
|
|
1011
|
+
let n = t;
|
|
1012
|
+
for (; n !== null;) {
|
|
1013
|
+
if (n === e) return !0;
|
|
1014
|
+
n = n.tagName === "SLOT" && n.assignedSlot ? n.assignedSlot.parentNode : Dr(n) ? n.host : n.parentNode;
|
|
1015
|
+
}
|
|
1016
|
+
return !1;
|
|
1017
|
+
}
|
|
1018
|
+
var J = (e = document) => {
|
|
1019
|
+
if (!kr()) return e.activeElement;
|
|
1020
|
+
let t = e.activeElement;
|
|
1021
|
+
for (; t && "shadowRoot" in t && t.shadowRoot?.activeElement;) t = t.shadowRoot.activeElement;
|
|
1022
|
+
return t;
|
|
1023
|
+
};
|
|
1024
|
+
function Y(e) {
|
|
1025
|
+
if (kr() && e.target instanceof Element && e.target.shadowRoot) {
|
|
1026
|
+
if ("composedPath" in e) return e.composedPath()[0] ?? null;
|
|
1027
|
+
if ("composedPath" in e.nativeEvent) return e.nativeEvent.composedPath()[0] ?? null;
|
|
1028
|
+
}
|
|
1029
|
+
return e.target;
|
|
1030
|
+
}
|
|
1031
|
+
function Ar(e) {
|
|
1032
|
+
if (!e) return !1;
|
|
1033
|
+
let t = e.getRootNode(), n = K(e);
|
|
1034
|
+
if (!(t instanceof n.Document || t instanceof n.ShadowRoot)) return !1;
|
|
1035
|
+
let r = t.activeElement;
|
|
1036
|
+
return r != null && e.contains(r);
|
|
1037
|
+
}
|
|
1038
|
+
//#endregion
|
|
1039
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/mergeRefs.mjs
|
|
1040
|
+
function jr(...e) {
|
|
1041
|
+
return e.length === 1 && e[0] ? e[0] : (t) => {
|
|
1042
|
+
let n = !1, r = e.map((e) => {
|
|
1043
|
+
let r = Mr(e, t);
|
|
1044
|
+
return n ||= typeof r == "function", r;
|
|
1045
|
+
});
|
|
1046
|
+
if (n) return () => {
|
|
1047
|
+
r.forEach((t, n) => {
|
|
1048
|
+
typeof t == "function" ? t() : Mr(e[n], null);
|
|
1049
|
+
});
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
}
|
|
1053
|
+
function Mr(e, t) {
|
|
1054
|
+
if (typeof e == "function") return e(t);
|
|
1055
|
+
e != null && (e.current = t);
|
|
1056
|
+
}
|
|
1057
|
+
//#endregion
|
|
1058
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/mergeProps.mjs
|
|
1059
|
+
function X(...e) {
|
|
1060
|
+
let t = { ...e[0] };
|
|
1061
|
+
for (let n = 1; n < e.length; n++) {
|
|
1062
|
+
let r = e[n];
|
|
1063
|
+
for (let e in r) {
|
|
1064
|
+
let n = t[e], i = r[e];
|
|
1065
|
+
typeof n == "function" && typeof i == "function" && e[0] === "o" && e[1] === "n" && e.charCodeAt(2) >= 65 && e.charCodeAt(2) <= 90 ? t[e] = Tr(n, i) : (e === "className" || e === "UNSAFE_className") && typeof n == "string" && typeof i == "string" ? t[e] = k(n, i) : e === "id" && n && i ? t.id = Cr(n, i) : e === "ref" && n && i ? t.ref = jr(n, i) : t[e] = i === void 0 ? n : i;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
return t;
|
|
1069
|
+
}
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/filterDOMProps.mjs
|
|
1072
|
+
var Nr = /* @__PURE__ */ new Set(["id"]), Pr = /* @__PURE__ */ new Set([
|
|
1073
|
+
"aria-label",
|
|
1074
|
+
"aria-labelledby",
|
|
1075
|
+
"aria-describedby",
|
|
1076
|
+
"aria-details"
|
|
1077
|
+
]), Fr = /* @__PURE__ */ new Set([
|
|
1078
|
+
"href",
|
|
1079
|
+
"hrefLang",
|
|
1080
|
+
"target",
|
|
1081
|
+
"rel",
|
|
1082
|
+
"download",
|
|
1083
|
+
"ping",
|
|
1084
|
+
"referrerPolicy"
|
|
1085
|
+
]), Ir = /* @__PURE__ */ new Set([
|
|
1086
|
+
"dir",
|
|
1087
|
+
"lang",
|
|
1088
|
+
"hidden",
|
|
1089
|
+
"inert",
|
|
1090
|
+
"translate"
|
|
1091
|
+
]), Lr = /* @__PURE__ */ new Set(/* @__PURE__ */ "onClick.onAuxClick.onContextMenu.onDoubleClick.onMouseDown.onMouseEnter.onMouseLeave.onMouseMove.onMouseOut.onMouseOver.onMouseUp.onTouchCancel.onTouchEnd.onTouchMove.onTouchStart.onPointerDown.onPointerMove.onPointerUp.onPointerCancel.onPointerEnter.onPointerLeave.onPointerOver.onPointerOut.onGotPointerCapture.onLostPointerCapture.onScroll.onWheel.onAnimationStart.onAnimationEnd.onAnimationIteration.onTransitionCancel.onTransitionEnd.onTransitionRun.onTransitionStart".split(".")), Rr = /^(data-.*)$/;
|
|
1092
|
+
function zr(e, t = {}) {
|
|
1093
|
+
let { labelable: n, isLink: r, global: i, events: a = i, propNames: o } = t, s = {};
|
|
1094
|
+
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (Nr.has(t) || n && Pr.has(t) || r && Fr.has(t) || i && Ir.has(t) || a && (Lr.has(t) || t.endsWith("Capture") && Lr.has(t.slice(0, -7))) || o?.has(t) || Rr.test(t)) && (s[t] = e[t]);
|
|
1095
|
+
return s;
|
|
1096
|
+
}
|
|
1097
|
+
//#endregion
|
|
1098
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/focusWithoutScrolling.mjs
|
|
1099
|
+
function Br(e) {
|
|
1100
|
+
if (Hr()) e.focus({ preventScroll: !0 });
|
|
1101
|
+
else {
|
|
1102
|
+
let t = Ur(e);
|
|
1103
|
+
e.focus(), Wr(t);
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
var Vr = null;
|
|
1107
|
+
function Hr() {
|
|
1108
|
+
if (Vr == null) {
|
|
1109
|
+
Vr = !1;
|
|
1110
|
+
try {
|
|
1111
|
+
document.createElement("div").focus({ get preventScroll() {
|
|
1112
|
+
return Vr = !0, !0;
|
|
1113
|
+
} });
|
|
1114
|
+
} catch {}
|
|
1115
|
+
}
|
|
1116
|
+
return Vr;
|
|
1117
|
+
}
|
|
1118
|
+
function Ur(e) {
|
|
1119
|
+
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
1120
|
+
for (; t instanceof HTMLElement && t !== r;) (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
|
|
1121
|
+
element: t,
|
|
1122
|
+
scrollTop: t.scrollTop,
|
|
1123
|
+
scrollLeft: t.scrollLeft
|
|
1124
|
+
}), t = t.parentNode;
|
|
1125
|
+
return r instanceof HTMLElement && n.push({
|
|
1126
|
+
element: r,
|
|
1127
|
+
scrollTop: r.scrollTop,
|
|
1128
|
+
scrollLeft: r.scrollLeft
|
|
1129
|
+
}), n;
|
|
1130
|
+
}
|
|
1131
|
+
function Wr(e) {
|
|
1132
|
+
for (let { element: t, scrollTop: n, scrollLeft: r } of e) t.scrollTop = n, t.scrollLeft = r;
|
|
1133
|
+
}
|
|
1134
|
+
//#endregion
|
|
1135
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/platform.mjs
|
|
1136
|
+
function Gr(e) {
|
|
1137
|
+
if (typeof window > "u" || window.navigator == null) return !1;
|
|
1138
|
+
let t = window.navigator.userAgentData?.brands;
|
|
1139
|
+
return Array.isArray(t) && t.some((t) => e.test(t.brand)) || e.test(window.navigator.userAgent);
|
|
1140
|
+
}
|
|
1141
|
+
function Kr(e) {
|
|
1142
|
+
return typeof window < "u" && window.navigator != null && e.test(window.navigator.userAgentData?.platform || window.navigator.platform);
|
|
1143
|
+
}
|
|
1144
|
+
function qr(e) {
|
|
1145
|
+
let t = null;
|
|
1146
|
+
return () => (t ??= e(), t);
|
|
1147
|
+
}
|
|
1148
|
+
var Jr = qr(function() {
|
|
1149
|
+
return Kr(/^Mac/i);
|
|
1150
|
+
}), Yr = qr(function() {
|
|
1151
|
+
return Kr(/^iPhone/i);
|
|
1152
|
+
}), Xr = qr(function() {
|
|
1153
|
+
return Kr(/^iPad/i) || Jr() && navigator.maxTouchPoints > 1;
|
|
1154
|
+
}), Zr = qr(function() {
|
|
1155
|
+
return Yr() || Xr();
|
|
1156
|
+
}), Qr = qr(function() {
|
|
1157
|
+
return Gr(/AppleWebKit/i) && !$r();
|
|
1158
|
+
}), $r = qr(function() {
|
|
1159
|
+
return Gr(/Chrome/i);
|
|
1160
|
+
}), ei = qr(function() {
|
|
1161
|
+
return Gr(/Android/i);
|
|
1162
|
+
}), ti = qr(function() {
|
|
1163
|
+
return Gr(/Firefox/i);
|
|
1164
|
+
});
|
|
1165
|
+
//#endregion
|
|
1166
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/openLink.mjs
|
|
1167
|
+
function ni(e, t, n = !0) {
|
|
1168
|
+
var r;
|
|
1169
|
+
let { metaKey: i, ctrlKey: a, altKey: o, shiftKey: s } = t;
|
|
1170
|
+
ti() && (r = window.event) != null && r.type?.startsWith("key") && e.target === "_blank" && (Jr() ? i = !0 : a = !0);
|
|
1171
|
+
let c = Qr() && Jr() && !Xr() ? new KeyboardEvent("keydown", {
|
|
1172
|
+
keyIdentifier: "Enter",
|
|
1173
|
+
metaKey: i,
|
|
1174
|
+
ctrlKey: a,
|
|
1175
|
+
altKey: o,
|
|
1176
|
+
shiftKey: s
|
|
1177
|
+
}) : new MouseEvent("click", {
|
|
1178
|
+
metaKey: i,
|
|
1179
|
+
ctrlKey: a,
|
|
1180
|
+
altKey: o,
|
|
1181
|
+
shiftKey: s,
|
|
1182
|
+
detail: 1,
|
|
1183
|
+
bubbles: !0,
|
|
1184
|
+
cancelable: !0
|
|
1185
|
+
});
|
|
1186
|
+
ni.isOpening = n, Br(e), e.dispatchEvent(c), ni.isOpening = !1;
|
|
1187
|
+
}
|
|
1188
|
+
ni.isOpening = !1;
|
|
1189
|
+
//#endregion
|
|
1190
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/runAfterTransition.mjs
|
|
1191
|
+
var ri = /* @__PURE__ */ new Map(), ii = /* @__PURE__ */ new Set();
|
|
1192
|
+
function ai() {
|
|
1193
|
+
if (typeof window > "u") return;
|
|
1194
|
+
function e(e) {
|
|
1195
|
+
return "propertyName" in e;
|
|
1196
|
+
}
|
|
1197
|
+
let t = (t) => {
|
|
1198
|
+
let r = Y(t);
|
|
1199
|
+
if (!e(t) || !r) return;
|
|
1200
|
+
let i = ri.get(r);
|
|
1201
|
+
i || (i = /* @__PURE__ */ new Set(), ri.set(r, i), r.addEventListener("transitioncancel", n, { once: !0 })), i.add(t.propertyName);
|
|
1202
|
+
}, n = (t) => {
|
|
1203
|
+
let r = Y(t);
|
|
1204
|
+
if (!e(t) || !r) return;
|
|
1205
|
+
let i = ri.get(r);
|
|
1206
|
+
if (i && (i.delete(t.propertyName), i.size === 0 && (r.removeEventListener("transitioncancel", n), ri.delete(r)), ri.size === 0)) {
|
|
1207
|
+
for (let e of ii) e();
|
|
1208
|
+
ii.clear();
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
|
|
1212
|
+
}
|
|
1213
|
+
typeof document < "u" && (document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", ai) : ai());
|
|
1214
|
+
function oi() {
|
|
1215
|
+
for (let [e] of ri) "isConnected" in e && !e.isConnected && ri.delete(e);
|
|
1216
|
+
}
|
|
1217
|
+
function si(e) {
|
|
1218
|
+
requestAnimationFrame(() => {
|
|
1219
|
+
oi(), ri.size === 0 ? e() : ii.add(e);
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
//#endregion
|
|
1223
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useGlobalListeners.mjs
|
|
1224
|
+
function ci() {
|
|
1225
|
+
let e = (0, z.useRef)(/* @__PURE__ */ new Map()), t = (0, z.useCallback)((t, n, r, i) => {
|
|
1226
|
+
let a = i?.once ? (...t) => {
|
|
1227
|
+
e.current.delete(r), r(...t);
|
|
1228
|
+
} : r;
|
|
1229
|
+
e.current.set(r, {
|
|
1230
|
+
type: n,
|
|
1231
|
+
eventTarget: t,
|
|
1232
|
+
fn: a,
|
|
1233
|
+
options: i
|
|
1234
|
+
}), t.addEventListener(n, a, i);
|
|
1235
|
+
}, []), n = (0, z.useCallback)((t, n, r, i) => {
|
|
1236
|
+
let a = e.current.get(r)?.fn || r;
|
|
1237
|
+
t.removeEventListener(n, a, i), e.current.delete(r);
|
|
1238
|
+
}, []), r = (0, z.useCallback)(() => {
|
|
1239
|
+
e.current.forEach((e, t) => {
|
|
1240
|
+
n(e.eventTarget, e.type, t, e.options);
|
|
1241
|
+
});
|
|
1242
|
+
}, [n]);
|
|
1243
|
+
return (0, z.useEffect)(() => r, [r]), {
|
|
1244
|
+
addGlobalListener: t,
|
|
1245
|
+
removeGlobalListener: n,
|
|
1246
|
+
removeAllGlobalListeners: r
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
//#endregion
|
|
1250
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useLabels.mjs
|
|
1251
|
+
function li(e, t) {
|
|
1252
|
+
let { id: n, "aria-label": r, "aria-labelledby": i } = e;
|
|
1253
|
+
return n = W(n), i && r ? i = [.../* @__PURE__ */ new Set([n, ...i.trim().split(/\s+/)])].join(" ") : i &&= i.trim().split(/\s+/).join(" "), !r && !i && t && (r = t), {
|
|
1254
|
+
id: n,
|
|
1255
|
+
"aria-label": r,
|
|
1256
|
+
"aria-labelledby": i
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
//#endregion
|
|
1260
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useObjectRef.mjs
|
|
1261
|
+
function ui(e) {
|
|
1262
|
+
let t = (0, z.useRef)(null), n = (0, z.useRef)(void 0), r = (0, z.useCallback)((t) => {
|
|
1263
|
+
if (typeof e == "function") {
|
|
1264
|
+
let n = e, r = n(t);
|
|
1265
|
+
return () => {
|
|
1266
|
+
typeof r == "function" ? r() : n(null);
|
|
1267
|
+
};
|
|
1268
|
+
}
|
|
1269
|
+
if (e) return e.current = t, () => {
|
|
1270
|
+
e.current = null;
|
|
1271
|
+
};
|
|
1272
|
+
}, [e]);
|
|
1273
|
+
return (0, z.useMemo)(() => ({
|
|
1274
|
+
get current() {
|
|
1275
|
+
return t.current;
|
|
1276
|
+
},
|
|
1277
|
+
set current(e) {
|
|
1278
|
+
t.current = e, n.current &&= (n.current(), void 0), e != null && (n.current = r(e));
|
|
1279
|
+
}
|
|
1280
|
+
}), [r]);
|
|
1281
|
+
}
|
|
1282
|
+
//#endregion
|
|
1283
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useEffectEvent.mjs
|
|
1284
|
+
var di = z.useInsertionEffect ?? U;
|
|
1285
|
+
function Z(e) {
|
|
1286
|
+
let t = (0, z.useRef)(null);
|
|
1287
|
+
return di(() => {
|
|
1288
|
+
t.current = e;
|
|
1289
|
+
}, [e]), (0, z.useCallback)((...e) => {
|
|
1290
|
+
let n = t.current;
|
|
1291
|
+
return n?.(...e);
|
|
1292
|
+
}, []);
|
|
1293
|
+
}
|
|
1294
|
+
//#endregion
|
|
1295
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useSyncRef.mjs
|
|
1296
|
+
function fi(e, t) {
|
|
1297
|
+
U(() => {
|
|
1298
|
+
if (e && e.ref && t) return e.ref.current = t.current, () => {
|
|
1299
|
+
e.ref && (e.ref.current = null);
|
|
1300
|
+
};
|
|
1301
|
+
});
|
|
1302
|
+
}
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useEvent.mjs
|
|
1305
|
+
function pi(e, t, n, r) {
|
|
1306
|
+
let i = Z(n), a = n == null;
|
|
1307
|
+
(0, z.useEffect)(() => {
|
|
1308
|
+
if (a || !e.current) return;
|
|
1309
|
+
let n = e.current;
|
|
1310
|
+
return n.addEventListener(t, i, r), () => {
|
|
1311
|
+
n.removeEventListener(t, i, r);
|
|
1312
|
+
};
|
|
1313
|
+
}, [
|
|
1314
|
+
e,
|
|
1315
|
+
t,
|
|
1316
|
+
r,
|
|
1317
|
+
a
|
|
1318
|
+
]);
|
|
1319
|
+
}
|
|
1320
|
+
//#endregion
|
|
1321
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/isVirtualEvent.mjs
|
|
1322
|
+
function mi(e) {
|
|
1323
|
+
return e.pointerType === "" && e.isTrusted ? !0 : ei() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
1324
|
+
}
|
|
1325
|
+
function hi(e) {
|
|
1326
|
+
return !ei() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
|
|
1327
|
+
}
|
|
1328
|
+
//#endregion
|
|
1329
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/useFormReset.mjs
|
|
1330
|
+
function gi(e, t, n) {
|
|
1331
|
+
let r = Z(() => {
|
|
1332
|
+
n && n(t);
|
|
1333
|
+
});
|
|
1334
|
+
(0, z.useEffect)(() => {
|
|
1335
|
+
let t = e?.current?.form;
|
|
1336
|
+
return t?.addEventListener("reset", r), () => {
|
|
1337
|
+
t?.removeEventListener("reset", r);
|
|
1338
|
+
};
|
|
1339
|
+
}, [e]);
|
|
1340
|
+
}
|
|
1341
|
+
//#endregion
|
|
1342
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/isElementVisible.mjs
|
|
1343
|
+
var _i = typeof Element < "u" && "checkVisibility" in Element.prototype;
|
|
1344
|
+
function vi(e) {
|
|
1345
|
+
let t = K(e);
|
|
1346
|
+
if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
|
|
1347
|
+
let { display: n, visibility: r } = e.style, i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
1348
|
+
if (i) {
|
|
1349
|
+
let { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r } = t(e);
|
|
1350
|
+
i = n !== "none" && r !== "hidden" && r !== "collapse";
|
|
1351
|
+
}
|
|
1352
|
+
return i;
|
|
1353
|
+
}
|
|
1354
|
+
function yi(e, t) {
|
|
1355
|
+
return !e.hasAttribute("hidden") && !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
|
|
1356
|
+
}
|
|
1357
|
+
function bi(e, t) {
|
|
1358
|
+
return _i ? e.checkVisibility({ visibilityProperty: !0 }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && vi(e) && yi(e, t) && (!e.parentElement || bi(e.parentElement, e));
|
|
1359
|
+
}
|
|
1360
|
+
//#endregion
|
|
1361
|
+
//#region ../node_modules/.pnpm/@react-aria+utils@3.33.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/utils/dist/isFocusable.mjs
|
|
1362
|
+
var xi = [
|
|
1363
|
+
"input:not([disabled]):not([type=hidden])",
|
|
1364
|
+
"select:not([disabled])",
|
|
1365
|
+
"textarea:not([disabled])",
|
|
1366
|
+
"button:not([disabled])",
|
|
1367
|
+
"a[href]",
|
|
1368
|
+
"area[href]",
|
|
1369
|
+
"summary",
|
|
1370
|
+
"iframe",
|
|
1371
|
+
"object",
|
|
1372
|
+
"embed",
|
|
1373
|
+
"audio[controls]",
|
|
1374
|
+
"video[controls]",
|
|
1375
|
+
"[contenteditable]:not([contenteditable^=\"false\"])",
|
|
1376
|
+
"permission"
|
|
1377
|
+
], Si = xi.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
|
|
1378
|
+
xi.push("[tabindex]:not([tabindex=\"-1\"]):not([disabled])");
|
|
1379
|
+
var Ci = xi.join(":not([hidden]):not([tabindex=\"-1\"]),");
|
|
1380
|
+
function wi(e) {
|
|
1381
|
+
return e.matches(Si) && bi(e) && !Ei(e);
|
|
1382
|
+
}
|
|
1383
|
+
function Ti(e) {
|
|
1384
|
+
return e.matches(Ci) && bi(e) && !Ei(e);
|
|
1385
|
+
}
|
|
1386
|
+
function Ei(e) {
|
|
1387
|
+
let t = e;
|
|
1388
|
+
for (; t != null;) {
|
|
1389
|
+
if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
|
|
1390
|
+
t = t.parentElement;
|
|
1391
|
+
}
|
|
1392
|
+
return !1;
|
|
1393
|
+
}
|
|
1394
|
+
//#endregion
|
|
1395
|
+
//#region ../node_modules/.pnpm/@react-stately+utils@3.11.0_react@19.2.8/node_modules/@react-stately/utils/dist/useControlledState.mjs
|
|
1396
|
+
var Di = typeof document < "u" ? z.useInsertionEffect ?? z.useLayoutEffect : () => {};
|
|
1397
|
+
function Oi(e, t, n) {
|
|
1398
|
+
let [r, i] = (0, z.useState)(e || t), a = (0, z.useRef)(r), o = (0, z.useRef)(e !== void 0), s = e !== void 0;
|
|
1399
|
+
(0, z.useEffect)(() => {
|
|
1400
|
+
o.current, o.current = s;
|
|
1401
|
+
}, [s]);
|
|
1402
|
+
let c = s ? e : r;
|
|
1403
|
+
Di(() => {
|
|
1404
|
+
a.current = c;
|
|
1405
|
+
});
|
|
1406
|
+
let [, l] = (0, z.useReducer)(() => ({}), {});
|
|
1407
|
+
return [c, (0, z.useCallback)((e, ...t) => {
|
|
1408
|
+
let r = typeof e == "function" ? e(a.current) : e;
|
|
1409
|
+
Object.is(a.current, r) || (a.current = r, i(r), l(), n?.(r, ...t));
|
|
1410
|
+
}, [n])];
|
|
1411
|
+
}
|
|
1412
|
+
//#endregion
|
|
1413
|
+
//#region ../node_modules/.pnpm/@react-stately+utils@3.11.0_react@19.2.8/node_modules/@react-stately/utils/dist/number.mjs
|
|
1414
|
+
function ki(e, t = -Infinity, n = Infinity) {
|
|
1415
|
+
return Math.min(Math.max(e, t), n);
|
|
1416
|
+
}
|
|
1417
|
+
function Ai(e, t) {
|
|
1418
|
+
let n = e, r = 0, i = t.toString(), a = i.toLowerCase().indexOf("e-");
|
|
1419
|
+
if (a > 0) r = Math.abs(Math.floor(Math.log10(Math.abs(t)))) + a;
|
|
1420
|
+
else {
|
|
1421
|
+
let e = i.indexOf(".");
|
|
1422
|
+
e >= 0 && (r = i.length - e);
|
|
1423
|
+
}
|
|
1424
|
+
if (r > 0) {
|
|
1425
|
+
let e = 10 ** r;
|
|
1426
|
+
n = Math.round(n * e) / e;
|
|
1427
|
+
}
|
|
1428
|
+
return n;
|
|
1429
|
+
}
|
|
1430
|
+
function Q(e, t, n, r) {
|
|
1431
|
+
t = Number(t), n = Number(n);
|
|
1432
|
+
let i = (e - (isNaN(t) ? 0 : t)) % r, a = Ai(Math.abs(i) * 2 >= r ? e + Math.sign(i) * (r - Math.abs(i)) : e - i, r);
|
|
1433
|
+
return isNaN(t) ? !isNaN(n) && a > n && (a = Math.floor(Ai(n / r, r)) * r) : a < t ? a = t : !isNaN(n) && a > n && (a = t + Math.floor(Ai((n - t) / r, r)) * r), a = Ai(a, r), a;
|
|
1434
|
+
}
|
|
1435
|
+
//#endregion
|
|
1436
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/utils.mjs
|
|
1437
|
+
function ji(e) {
|
|
1438
|
+
let t = e;
|
|
1439
|
+
return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {}, t;
|
|
1440
|
+
}
|
|
1441
|
+
function Mi(e, t) {
|
|
1442
|
+
Object.defineProperty(e, "target", { value: t }), Object.defineProperty(e, "currentTarget", { value: t });
|
|
1443
|
+
}
|
|
1444
|
+
function Ni(e) {
|
|
1445
|
+
let t = (0, z.useRef)({
|
|
1446
|
+
isFocused: !1,
|
|
1447
|
+
observer: null
|
|
1448
|
+
});
|
|
1449
|
+
return U(() => {
|
|
1450
|
+
let e = t.current;
|
|
1451
|
+
return () => {
|
|
1452
|
+
e.observer &&= (e.observer.disconnect(), null);
|
|
1453
|
+
};
|
|
1454
|
+
}, []), (0, z.useCallback)((n) => {
|
|
1455
|
+
let r = Y(n);
|
|
1456
|
+
if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
|
|
1457
|
+
t.current.isFocused = !0;
|
|
1458
|
+
let n = r;
|
|
1459
|
+
n.addEventListener("focusout", (r) => {
|
|
1460
|
+
if (t.current.isFocused = !1, n.disabled) {
|
|
1461
|
+
let t = ji(r);
|
|
1462
|
+
e?.(t);
|
|
1463
|
+
}
|
|
1464
|
+
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
1465
|
+
}, { once: !0 }), t.current.observer = new MutationObserver(() => {
|
|
1466
|
+
if (t.current.isFocused && n.disabled) {
|
|
1467
|
+
var e;
|
|
1468
|
+
(e = t.current.observer) == null || e.disconnect();
|
|
1469
|
+
let r = n === J() ? null : J();
|
|
1470
|
+
n.dispatchEvent(new FocusEvent("blur", { relatedTarget: r })), n.dispatchEvent(new FocusEvent("focusout", {
|
|
1471
|
+
bubbles: !0,
|
|
1472
|
+
relatedTarget: r
|
|
1473
|
+
}));
|
|
1474
|
+
}
|
|
1475
|
+
}), t.current.observer.observe(n, {
|
|
1476
|
+
attributes: !0,
|
|
1477
|
+
attributeFilter: ["disabled"]
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
}, [e]);
|
|
1481
|
+
}
|
|
1482
|
+
var Pi = !1;
|
|
1483
|
+
function Fi(e) {
|
|
1484
|
+
for (; e && !wi(e);) e = e.parentElement;
|
|
1485
|
+
let t = K(e), n = t.document.activeElement;
|
|
1486
|
+
if (!n || n === e) return;
|
|
1487
|
+
Pi = !0;
|
|
1488
|
+
let r = !1, i = (e) => {
|
|
1489
|
+
(Y(e) === n || r) && e.stopImmediatePropagation();
|
|
1490
|
+
}, a = (t) => {
|
|
1491
|
+
(Y(t) === n || r) && (t.stopImmediatePropagation(), !e && !r && (r = !0, Br(n), c()));
|
|
1492
|
+
}, o = (t) => {
|
|
1493
|
+
(Y(t) === e || r) && t.stopImmediatePropagation();
|
|
1494
|
+
}, s = (t) => {
|
|
1495
|
+
(Y(t) === e || r) && (t.stopImmediatePropagation(), r || (r = !0, Br(n), c()));
|
|
1496
|
+
};
|
|
1497
|
+
t.addEventListener("blur", i, !0), t.addEventListener("focusout", a, !0), t.addEventListener("focusin", s, !0), t.addEventListener("focus", o, !0);
|
|
1498
|
+
let c = () => {
|
|
1499
|
+
cancelAnimationFrame(l), t.removeEventListener("blur", i, !0), t.removeEventListener("focusout", a, !0), t.removeEventListener("focusin", s, !0), t.removeEventListener("focus", o, !0), Pi = !1, r = !1;
|
|
1500
|
+
}, l = requestAnimationFrame(c);
|
|
1501
|
+
return c;
|
|
1502
|
+
}
|
|
1503
|
+
//#endregion
|
|
1504
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/textSelection.mjs
|
|
1505
|
+
var Ii = "default", Li = "", Ri = /* @__PURE__ */ new WeakMap();
|
|
1506
|
+
function zi(e) {
|
|
1507
|
+
if (Zr()) {
|
|
1508
|
+
if (Ii === "default") {
|
|
1509
|
+
let t = G(e);
|
|
1510
|
+
Li = t.documentElement.style.webkitUserSelect, t.documentElement.style.webkitUserSelect = "none";
|
|
1511
|
+
}
|
|
1512
|
+
Ii = "disabled";
|
|
1513
|
+
} else if (e instanceof HTMLElement || e instanceof SVGElement) {
|
|
1514
|
+
let t = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
1515
|
+
Ri.set(e, e.style[t]), e.style[t] = "none";
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
function Bi(e) {
|
|
1519
|
+
if (Zr()) {
|
|
1520
|
+
if (Ii !== "disabled") return;
|
|
1521
|
+
Ii = "restoring", setTimeout(() => {
|
|
1522
|
+
si(() => {
|
|
1523
|
+
if (Ii === "restoring") {
|
|
1524
|
+
let t = G(e);
|
|
1525
|
+
t.documentElement.style.webkitUserSelect === "none" && (t.documentElement.style.webkitUserSelect = Li || ""), Li = "", Ii = "default";
|
|
1526
|
+
}
|
|
1527
|
+
});
|
|
1528
|
+
}, 300);
|
|
1529
|
+
} else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && Ri.has(e)) {
|
|
1530
|
+
let t = Ri.get(e), n = "userSelect" in e.style ? "userSelect" : "webkitUserSelect";
|
|
1531
|
+
e.style[n] === "none" && (e.style[n] = t), e.getAttribute("style") === "" && e.removeAttribute("style"), Ri.delete(e);
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/context.mjs
|
|
1536
|
+
var Vi = z.createContext({ register: () => {} });
|
|
1537
|
+
Vi.displayName = "PressResponderContext";
|
|
1538
|
+
//#endregion
|
|
1539
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js
|
|
1540
|
+
function Hi(e, t) {
|
|
1541
|
+
return t.get ? t.get.call(e) : t.value;
|
|
1542
|
+
}
|
|
1543
|
+
//#endregion
|
|
1544
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js
|
|
1545
|
+
function Ui(e, t, n) {
|
|
1546
|
+
if (!t.has(e)) throw TypeError("attempted to " + n + " private field on non-instance");
|
|
1547
|
+
return t.get(e);
|
|
1548
|
+
}
|
|
1549
|
+
//#endregion
|
|
1550
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_get.js
|
|
1551
|
+
function Wi(e, t) {
|
|
1552
|
+
return Hi(e, Ui(e, t, "get"));
|
|
1553
|
+
}
|
|
1554
|
+
//#endregion
|
|
1555
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_check_private_redeclaration.js
|
|
1556
|
+
function Gi(e, t) {
|
|
1557
|
+
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
1558
|
+
}
|
|
1559
|
+
//#endregion
|
|
1560
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_init.js
|
|
1561
|
+
function Ki(e, t, n) {
|
|
1562
|
+
Gi(e, t), t.set(e, n);
|
|
1563
|
+
}
|
|
1564
|
+
//#endregion
|
|
1565
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js
|
|
1566
|
+
function qi(e, t, n) {
|
|
1567
|
+
if (t.set) t.set.call(e, n);
|
|
1568
|
+
else {
|
|
1569
|
+
if (!t.writable) throw TypeError("attempted to set read only private field");
|
|
1570
|
+
t.value = n;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
//#endregion
|
|
1574
|
+
//#region ../node_modules/.pnpm/@swc+helpers@0.5.17/node_modules/@swc/helpers/esm/_class_private_field_set.js
|
|
1575
|
+
function Ji(e, t, n) {
|
|
1576
|
+
return qi(e, Ui(e, t, "set"), n), n;
|
|
1577
|
+
}
|
|
1578
|
+
//#endregion
|
|
1579
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/usePress.mjs
|
|
1580
|
+
var Yi = /* @__PURE__ */ e(A(), 1);
|
|
1581
|
+
function Xi(e) {
|
|
1582
|
+
let t = (0, z.useContext)(Vi);
|
|
1583
|
+
if (t) {
|
|
1584
|
+
let { register: n, ref: r, ...i } = t;
|
|
1585
|
+
e = X(i, e), n();
|
|
1586
|
+
}
|
|
1587
|
+
return fi(t, e.ref), e;
|
|
1588
|
+
}
|
|
1589
|
+
var Zi = /*#__PURE__*/ new WeakMap(), Qi = class {
|
|
1590
|
+
continuePropagation() {
|
|
1591
|
+
Ji(this, Zi, !1);
|
|
1592
|
+
}
|
|
1593
|
+
get shouldStopPropagation() {
|
|
1594
|
+
return Wi(this, Zi);
|
|
1595
|
+
}
|
|
1596
|
+
constructor(e, t, n, r) {
|
|
1597
|
+
Ki(this, Zi, {
|
|
1598
|
+
writable: !0,
|
|
1599
|
+
value: void 0
|
|
1600
|
+
}), Ji(this, Zi, !0);
|
|
1601
|
+
let i = (r?.target ?? n.currentTarget)?.getBoundingClientRect(), a, o = 0, s, c = null;
|
|
1602
|
+
n.clientX != null && n.clientY != null && (s = n.clientX, c = n.clientY), i && (s != null && c != null ? (a = s - i.left, o = c - i.top) : (a = i.width / 2, o = i.height / 2)), this.type = e, this.pointerType = t, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey, this.x = a, this.y = o, this.key = n.key;
|
|
1603
|
+
}
|
|
1604
|
+
}, $i = Symbol("linkClicked"), ea = "react-aria-pressable-style", ta = "data-react-aria-pressable";
|
|
1605
|
+
function na(e) {
|
|
1606
|
+
let { onPress: t, onPressChange: n, onPressStart: r, onPressEnd: i, onPressUp: a, onClick: o, isDisabled: s, isPressed: c, preventFocusOnPress: l, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: f, ...p } = Xi(e), [m, h] = (0, z.useState)(!1), g = (0, z.useRef)({
|
|
1607
|
+
isPressed: !1,
|
|
1608
|
+
ignoreEmulatedMouseEvents: !1,
|
|
1609
|
+
didFirePressStart: !1,
|
|
1610
|
+
isTriggeringEvent: !1,
|
|
1611
|
+
activePointerId: null,
|
|
1612
|
+
target: null,
|
|
1613
|
+
isOverTarget: !1,
|
|
1614
|
+
pointerType: null,
|
|
1615
|
+
disposables: []
|
|
1616
|
+
}), { addGlobalListener: _, removeAllGlobalListeners: v, removeGlobalListener: y } = ci(), b = (0, z.useCallback)((e, t) => {
|
|
1617
|
+
let i = g.current;
|
|
1618
|
+
if (s || i.didFirePressStart) return !1;
|
|
1619
|
+
let a = !0;
|
|
1620
|
+
if (i.isTriggeringEvent = !0, r) {
|
|
1621
|
+
let n = new Qi("pressstart", t, e);
|
|
1622
|
+
r(n), a = n.shouldStopPropagation;
|
|
1623
|
+
}
|
|
1624
|
+
return n && n(!0), i.isTriggeringEvent = !1, i.didFirePressStart = !0, h(!0), a;
|
|
1625
|
+
}, [
|
|
1626
|
+
s,
|
|
1627
|
+
r,
|
|
1628
|
+
n
|
|
1629
|
+
]), x = (0, z.useCallback)((e, r, a = !0) => {
|
|
1630
|
+
let o = g.current;
|
|
1631
|
+
if (!o.didFirePressStart) return !1;
|
|
1632
|
+
o.didFirePressStart = !1, o.isTriggeringEvent = !0;
|
|
1633
|
+
let c = !0;
|
|
1634
|
+
if (i) {
|
|
1635
|
+
let t = new Qi("pressend", r, e);
|
|
1636
|
+
i(t), c = t.shouldStopPropagation;
|
|
1637
|
+
}
|
|
1638
|
+
if (n && n(!1), h(!1), t && a && !s) {
|
|
1639
|
+
let n = new Qi("press", r, e);
|
|
1640
|
+
t(n), c &&= n.shouldStopPropagation;
|
|
1641
|
+
}
|
|
1642
|
+
return o.isTriggeringEvent = !1, c;
|
|
1643
|
+
}, [
|
|
1644
|
+
s,
|
|
1645
|
+
i,
|
|
1646
|
+
n,
|
|
1647
|
+
t
|
|
1648
|
+
]), S = Z(x), C = (0, z.useCallback)((e, t) => {
|
|
1649
|
+
let n = g.current;
|
|
1650
|
+
if (s) return !1;
|
|
1651
|
+
if (a) {
|
|
1652
|
+
n.isTriggeringEvent = !0;
|
|
1653
|
+
let r = new Qi("pressup", t, e);
|
|
1654
|
+
return a(r), n.isTriggeringEvent = !1, r.shouldStopPropagation;
|
|
1655
|
+
}
|
|
1656
|
+
return !0;
|
|
1657
|
+
}, [s, a]), w = Z(C), T = (0, z.useCallback)((e) => {
|
|
1658
|
+
let t = g.current;
|
|
1659
|
+
if (t.isPressed && t.target) {
|
|
1660
|
+
t.didFirePressStart && t.pointerType != null && x(aa(t.target, e), t.pointerType, !1), t.isPressed = !1, P(null), t.isOverTarget = !1, t.activePointerId = null, t.pointerType = null, v(), d || Bi(t.target);
|
|
1661
|
+
for (let e of t.disposables) e();
|
|
1662
|
+
t.disposables = [];
|
|
1663
|
+
}
|
|
1664
|
+
}, [
|
|
1665
|
+
d,
|
|
1666
|
+
v,
|
|
1667
|
+
x
|
|
1668
|
+
]), E = Z(T), D = (0, z.useCallback)((e) => {
|
|
1669
|
+
u && T(e);
|
|
1670
|
+
}, [u, T]), O = (0, z.useCallback)((e) => {
|
|
1671
|
+
s || o?.(e);
|
|
1672
|
+
}, [s, o]), k = (0, z.useCallback)((e, t) => {
|
|
1673
|
+
if (!s && o) {
|
|
1674
|
+
let n = new MouseEvent("click", e);
|
|
1675
|
+
Mi(n, t), o(ji(n));
|
|
1676
|
+
}
|
|
1677
|
+
}, [s, o]), A = Z(k), [j, M] = (0, z.useState)(!1);
|
|
1678
|
+
U(() => {
|
|
1679
|
+
let e = g.current;
|
|
1680
|
+
if (j) {
|
|
1681
|
+
let t = (t) => {
|
|
1682
|
+
if (e.isPressed && e.target && ia(t, e.target)) {
|
|
1683
|
+
var n;
|
|
1684
|
+
sa(Y(t), t.key) && t.preventDefault();
|
|
1685
|
+
let r = Y(t), i = q(e.target, r);
|
|
1686
|
+
S(aa(e.target, t), "keyboard", i), i && A(t, e.target), v(), t.key !== "Enter" && ra(e.target) && q(e.target, r) && !t[$i] && (t[$i] = !0, ni(e.target, t, !1)), e.isPressed = !1, M(!1), (n = e.metaKeyEvents) == null || n.delete(t.key);
|
|
1687
|
+
} else if (t.key === "Meta" && e.metaKeyEvents?.size) {
|
|
1688
|
+
var r;
|
|
1689
|
+
let t = e.metaKeyEvents;
|
|
1690
|
+
e.metaKeyEvents = void 0;
|
|
1691
|
+
for (let n of t.values()) (r = e.target) == null || r.dispatchEvent(new KeyboardEvent("keyup", n));
|
|
1692
|
+
}
|
|
1693
|
+
}, n = e.target, r = Tr((t) => {
|
|
1694
|
+
n && ia(t, n) && !t.repeat && q(n, Y(t)) && e.target && w(aa(e.target, t), "keyboard");
|
|
1695
|
+
}, t);
|
|
1696
|
+
return _(G(e.target), "keyup", r, !0), () => {
|
|
1697
|
+
y(G(e.target), "keyup", r, !0);
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
}, [
|
|
1701
|
+
j,
|
|
1702
|
+
_,
|
|
1703
|
+
v,
|
|
1704
|
+
y
|
|
1705
|
+
]);
|
|
1706
|
+
let [N, P] = (0, z.useState)(null);
|
|
1707
|
+
U(() => {
|
|
1708
|
+
let e = g.current;
|
|
1709
|
+
if (N === "pointer") {
|
|
1710
|
+
let t = (t) => {
|
|
1711
|
+
if (t.pointerId === e.activePointerId && e.isPressed && t.button === 0 && e.target) {
|
|
1712
|
+
if (q(e.target, Y(t)) && e.pointerType != null) {
|
|
1713
|
+
let n = !1, r = setTimeout(() => {
|
|
1714
|
+
e.isPressed && e.target instanceof HTMLElement && (n ? E(t) : (Br(e.target), e.target.click()));
|
|
1715
|
+
}, 80);
|
|
1716
|
+
t.currentTarget && _(t.currentTarget, "click", () => n = !0, !0), e.disposables.push(() => clearTimeout(r));
|
|
1717
|
+
} else E(t);
|
|
1718
|
+
e.isOverTarget = !1;
|
|
1719
|
+
}
|
|
1720
|
+
}, n = (e) => {
|
|
1721
|
+
E(e);
|
|
1722
|
+
};
|
|
1723
|
+
return _(G(e.target), "pointerup", t, !1), _(G(e.target), "pointercancel", n, !1), () => {
|
|
1724
|
+
y(G(e.target), "pointerup", t, !1), y(G(e.target), "pointercancel", n, !1);
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
}, [
|
|
1728
|
+
N,
|
|
1729
|
+
_,
|
|
1730
|
+
y
|
|
1731
|
+
]);
|
|
1732
|
+
let F = (0, z.useMemo)(() => {
|
|
1733
|
+
let e = g.current, t = {
|
|
1734
|
+
onKeyDown(t) {
|
|
1735
|
+
if (ia(t.nativeEvent, t.currentTarget) && q(t.currentTarget, Y(t))) {
|
|
1736
|
+
var n;
|
|
1737
|
+
sa(Y(t), t.key) && t.preventDefault();
|
|
1738
|
+
let r = !0;
|
|
1739
|
+
!e.isPressed && !t.repeat && (e.target = t.currentTarget, e.isPressed = !0, M(!0), e.pointerType = "keyboard", r = b(t, "keyboard")), r && t.stopPropagation(), t.metaKey && Jr() && ((n = e.metaKeyEvents) == null || n.set(t.key, t.nativeEvent));
|
|
1740
|
+
} else t.key === "Meta" && (e.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1741
|
+
},
|
|
1742
|
+
onClick(t) {
|
|
1743
|
+
if (!(t && !q(t.currentTarget, Y(t))) && t && t.button === 0 && !e.isTriggeringEvent && !ni.isOpening) {
|
|
1744
|
+
let n = !0;
|
|
1745
|
+
if (s && t.preventDefault(), !e.ignoreEmulatedMouseEvents && !e.isPressed && (e.pointerType === "virtual" || mi(t.nativeEvent))) {
|
|
1746
|
+
let e = b(t, "virtual"), r = C(t, "virtual"), i = x(t, "virtual");
|
|
1747
|
+
O(t), n = e && r && i;
|
|
1748
|
+
} else if (e.isPressed && e.pointerType !== "keyboard") {
|
|
1749
|
+
let r = e.pointerType || t.nativeEvent.pointerType || "virtual", i = C(aa(t.currentTarget, t), r), a = x(aa(t.currentTarget, t), r, !0);
|
|
1750
|
+
n = i && a, e.isOverTarget = !1, O(t), T(t);
|
|
1751
|
+
}
|
|
1752
|
+
e.ignoreEmulatedMouseEvents = !1, n && t.stopPropagation();
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
};
|
|
1756
|
+
return typeof PointerEvent < "u" && (t.onPointerDown = (t) => {
|
|
1757
|
+
if (t.button !== 0 || !q(t.currentTarget, Y(t))) return;
|
|
1758
|
+
if (hi(t.nativeEvent)) {
|
|
1759
|
+
e.pointerType = "virtual";
|
|
1760
|
+
return;
|
|
1761
|
+
}
|
|
1762
|
+
e.pointerType = t.pointerType;
|
|
1763
|
+
let n = !0;
|
|
1764
|
+
if (!e.isPressed) {
|
|
1765
|
+
e.isPressed = !0, P("pointer"), e.isOverTarget = !0, e.activePointerId = t.pointerId, e.target = t.currentTarget, d || zi(e.target), n = b(t, e.pointerType);
|
|
1766
|
+
let r = Y(t);
|
|
1767
|
+
"releasePointerCapture" in r && ("hasPointerCapture" in r ? r.hasPointerCapture(t.pointerId) && r.releasePointerCapture(t.pointerId) : r.releasePointerCapture(t.pointerId));
|
|
1768
|
+
}
|
|
1769
|
+
n && t.stopPropagation();
|
|
1770
|
+
}, t.onMouseDown = (t) => {
|
|
1771
|
+
if (q(t.currentTarget, Y(t)) && t.button === 0) {
|
|
1772
|
+
if (l) {
|
|
1773
|
+
let n = Fi(t.target);
|
|
1774
|
+
n && e.disposables.push(n);
|
|
1775
|
+
}
|
|
1776
|
+
t.stopPropagation();
|
|
1777
|
+
}
|
|
1778
|
+
}, t.onPointerUp = (t) => {
|
|
1779
|
+
!q(t.currentTarget, Y(t)) || e.pointerType === "virtual" || t.button === 0 && !e.isPressed && C(t, e.pointerType || t.pointerType);
|
|
1780
|
+
}, t.onPointerEnter = (t) => {
|
|
1781
|
+
t.pointerId === e.activePointerId && e.target && !e.isOverTarget && e.pointerType != null && (e.isOverTarget = !0, b(aa(e.target, t), e.pointerType));
|
|
1782
|
+
}, t.onPointerLeave = (t) => {
|
|
1783
|
+
t.pointerId === e.activePointerId && e.target && e.isOverTarget && e.pointerType != null && (e.isOverTarget = !1, x(aa(e.target, t), e.pointerType, !1), D(t));
|
|
1784
|
+
}, t.onDragStart = (e) => {
|
|
1785
|
+
q(e.currentTarget, Y(e)) && T(e);
|
|
1786
|
+
}), t;
|
|
1787
|
+
}, [
|
|
1788
|
+
s,
|
|
1789
|
+
l,
|
|
1790
|
+
v,
|
|
1791
|
+
d,
|
|
1792
|
+
T,
|
|
1793
|
+
D,
|
|
1794
|
+
x,
|
|
1795
|
+
b,
|
|
1796
|
+
C,
|
|
1797
|
+
O,
|
|
1798
|
+
k
|
|
1799
|
+
]);
|
|
1800
|
+
return (0, z.useEffect)(() => {
|
|
1801
|
+
if (!f) return;
|
|
1802
|
+
let e = G(f.current);
|
|
1803
|
+
if (!e || !e.head || e.getElementById(ea)) return;
|
|
1804
|
+
let t = e.createElement("style");
|
|
1805
|
+
t.id = ea, t.textContent = `
|
|
1806
|
+
@layer {
|
|
1807
|
+
[${ta}] {
|
|
1808
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
`.trim(), e.head.prepend(t);
|
|
1812
|
+
}, [f]), (0, z.useEffect)(() => {
|
|
1813
|
+
let e = g.current;
|
|
1814
|
+
return () => {
|
|
1815
|
+
d || Bi(e.target ?? void 0);
|
|
1816
|
+
for (let t of e.disposables) t();
|
|
1817
|
+
e.disposables = [];
|
|
1818
|
+
};
|
|
1819
|
+
}, [d]), {
|
|
1820
|
+
isPressed: c || m,
|
|
1821
|
+
pressProps: X(p, F, { [ta]: !0 })
|
|
1822
|
+
};
|
|
1823
|
+
}
|
|
1824
|
+
function ra(e) {
|
|
1825
|
+
return e.tagName === "A" && e.hasAttribute("href");
|
|
1826
|
+
}
|
|
1827
|
+
function ia(e, t) {
|
|
1828
|
+
let { key: n, code: r } = e, i = t, a = i.getAttribute("role");
|
|
1829
|
+
return (n === "Enter" || n === " " || n === "Spacebar" || r === "Space") && !(i instanceof K(i).HTMLInputElement && !la(i, n) || i instanceof K(i).HTMLTextAreaElement || i.isContentEditable) && !((a === "link" || !a && ra(i)) && n !== "Enter");
|
|
1830
|
+
}
|
|
1831
|
+
function aa(e, t) {
|
|
1832
|
+
let n = t.clientX, r = t.clientY;
|
|
1833
|
+
return {
|
|
1834
|
+
currentTarget: e,
|
|
1835
|
+
shiftKey: t.shiftKey,
|
|
1836
|
+
ctrlKey: t.ctrlKey,
|
|
1837
|
+
metaKey: t.metaKey,
|
|
1838
|
+
altKey: t.altKey,
|
|
1839
|
+
clientX: n,
|
|
1840
|
+
clientY: r,
|
|
1841
|
+
key: t.key
|
|
1842
|
+
};
|
|
1843
|
+
}
|
|
1844
|
+
function oa(e) {
|
|
1845
|
+
return e instanceof HTMLInputElement ? !1 : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !ra(e);
|
|
1846
|
+
}
|
|
1847
|
+
function sa(e, t) {
|
|
1848
|
+
return e instanceof HTMLInputElement ? !la(e, t) : oa(e);
|
|
1849
|
+
}
|
|
1850
|
+
var ca = /* @__PURE__ */ new Set([
|
|
1851
|
+
"checkbox",
|
|
1852
|
+
"radio",
|
|
1853
|
+
"range",
|
|
1854
|
+
"color",
|
|
1855
|
+
"file",
|
|
1856
|
+
"image",
|
|
1857
|
+
"button",
|
|
1858
|
+
"submit",
|
|
1859
|
+
"reset"
|
|
1860
|
+
]);
|
|
1861
|
+
function la(e, t) {
|
|
1862
|
+
return e.type === "checkbox" || e.type === "radio" ? t === " " : ca.has(e.type);
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useFocusVisible.mjs
|
|
1866
|
+
var ua = null, da = /* @__PURE__ */ new Set(), fa = /* @__PURE__ */ new Map(), pa = !1, ma = !1, ha = {
|
|
1867
|
+
Tab: !0,
|
|
1868
|
+
Escape: !0
|
|
1869
|
+
};
|
|
1870
|
+
function ga(e, t) {
|
|
1871
|
+
for (let n of da) n(e, t);
|
|
1872
|
+
}
|
|
1873
|
+
function _a(e) {
|
|
1874
|
+
return !(e.metaKey || !Jr() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
1875
|
+
}
|
|
1876
|
+
function va(e) {
|
|
1877
|
+
pa = !0, !ni.isOpening && _a(e) && (ua = "keyboard", ga("keyboard", e));
|
|
1878
|
+
}
|
|
1879
|
+
function ya(e) {
|
|
1880
|
+
ua = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (pa = !0, ga("pointer", e));
|
|
1881
|
+
}
|
|
1882
|
+
function ba(e) {
|
|
1883
|
+
!ni.isOpening && mi(e) && (pa = !0, ua = "virtual");
|
|
1884
|
+
}
|
|
1885
|
+
function xa(e) {
|
|
1886
|
+
Y(e) === window || Y(e) === document || Pi || !e.isTrusted || (!pa && !ma && (ua = "virtual", ga("virtual", e)), pa = !1, ma = !1);
|
|
1887
|
+
}
|
|
1888
|
+
function Sa() {
|
|
1889
|
+
Pi || (pa = !1, ma = !0);
|
|
1890
|
+
}
|
|
1891
|
+
function Ca(e) {
|
|
1892
|
+
if (typeof window > "u" || typeof document > "u" || fa.get(K(e))) return;
|
|
1893
|
+
let t = K(e), n = G(e), r = t.HTMLElement.prototype.focus;
|
|
1894
|
+
t.HTMLElement.prototype.focus = function() {
|
|
1895
|
+
pa = !0, r.apply(this, arguments);
|
|
1896
|
+
}, n.addEventListener("keydown", va, !0), n.addEventListener("keyup", va, !0), n.addEventListener("click", ba, !0), t.addEventListener("focus", xa, !0), t.addEventListener("blur", Sa, !1), typeof PointerEvent < "u" && (n.addEventListener("pointerdown", ya, !0), n.addEventListener("pointermove", ya, !0), n.addEventListener("pointerup", ya, !0)), t.addEventListener("beforeunload", () => {
|
|
1897
|
+
wa(e);
|
|
1898
|
+
}, { once: !0 }), fa.set(t, { focus: r });
|
|
1899
|
+
}
|
|
1900
|
+
var wa = (e, t) => {
|
|
1901
|
+
let n = K(e), r = G(e);
|
|
1902
|
+
t && r.removeEventListener("DOMContentLoaded", t), fa.has(n) && (n.HTMLElement.prototype.focus = fa.get(n).focus, r.removeEventListener("keydown", va, !0), r.removeEventListener("keyup", va, !0), r.removeEventListener("click", ba, !0), n.removeEventListener("focus", xa, !0), n.removeEventListener("blur", Sa, !1), typeof PointerEvent < "u" && (r.removeEventListener("pointerdown", ya, !0), r.removeEventListener("pointermove", ya, !0), r.removeEventListener("pointerup", ya, !0)), fa.delete(n));
|
|
1903
|
+
};
|
|
1904
|
+
function Ta(e) {
|
|
1905
|
+
let t = G(e), n;
|
|
1906
|
+
return t.readyState === "loading" ? (n = () => {
|
|
1907
|
+
Ca(e);
|
|
1908
|
+
}, t.addEventListener("DOMContentLoaded", n)) : Ca(e), () => wa(e, n);
|
|
1909
|
+
}
|
|
1910
|
+
typeof document < "u" && Ta();
|
|
1911
|
+
function Ea() {
|
|
1912
|
+
return ua !== "pointer";
|
|
1913
|
+
}
|
|
1914
|
+
function Da() {
|
|
1915
|
+
return ua;
|
|
1916
|
+
}
|
|
1917
|
+
function Oa(e) {
|
|
1918
|
+
ua = e, ga(e, null);
|
|
1919
|
+
}
|
|
1920
|
+
var ka = /* @__PURE__ */ new Set([
|
|
1921
|
+
"checkbox",
|
|
1922
|
+
"radio",
|
|
1923
|
+
"range",
|
|
1924
|
+
"color",
|
|
1925
|
+
"file",
|
|
1926
|
+
"image",
|
|
1927
|
+
"button",
|
|
1928
|
+
"submit",
|
|
1929
|
+
"reset"
|
|
1930
|
+
]);
|
|
1931
|
+
function Aa(e, t, n) {
|
|
1932
|
+
let r = G(n ? Y(n) : void 0), i = n ? Y(n) : void 0, a = typeof window < "u" ? K(i).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? K(i).HTMLTextAreaElement : HTMLTextAreaElement, s = typeof window < "u" ? K(i).HTMLElement : HTMLElement, c = typeof window < "u" ? K(i).KeyboardEvent : KeyboardEvent, l = J(r);
|
|
1933
|
+
return e = e || l instanceof a && !ka.has(l.type) || l instanceof o || l instanceof s && l.isContentEditable, !(e && t === "keyboard" && n instanceof c && !ha[n.key]);
|
|
1934
|
+
}
|
|
1935
|
+
function ja(e, t, n) {
|
|
1936
|
+
Ca(), (0, z.useEffect)(() => {
|
|
1937
|
+
if (n?.enabled === !1) return;
|
|
1938
|
+
let t = (t, r) => {
|
|
1939
|
+
Aa(!!n?.isTextInput, t, r) && e(Ea());
|
|
1940
|
+
};
|
|
1941
|
+
return da.add(t), () => {
|
|
1942
|
+
da.delete(t);
|
|
1943
|
+
};
|
|
1944
|
+
}, t);
|
|
1945
|
+
}
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/focusSafely.mjs
|
|
1948
|
+
function Ma(e) {
|
|
1949
|
+
if (!e.isConnected) return;
|
|
1950
|
+
let t = G(e);
|
|
1951
|
+
if (Da() === "virtual") {
|
|
1952
|
+
let n = J(t);
|
|
1953
|
+
si(() => {
|
|
1954
|
+
let r = J(t);
|
|
1955
|
+
(r === n || r === t.body) && e.isConnected && Br(e);
|
|
1956
|
+
});
|
|
1957
|
+
} else Br(e);
|
|
1958
|
+
}
|
|
1959
|
+
//#endregion
|
|
1960
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useFocus.mjs
|
|
1961
|
+
function Na(e) {
|
|
1962
|
+
let { isDisabled: t, onFocus: n, onBlur: r, onFocusChange: i } = e, a = (0, z.useCallback)((e) => {
|
|
1963
|
+
if (Y(e) === e.currentTarget) return r && r(e), i && i(!1), !0;
|
|
1964
|
+
}, [r, i]), o = Ni(a), s = (0, z.useCallback)((e) => {
|
|
1965
|
+
let t = Y(e), r = G(t), a = r ? J(r) : J();
|
|
1966
|
+
t === e.currentTarget && t === a && (n && n(e), i && i(!0), o(e));
|
|
1967
|
+
}, [
|
|
1968
|
+
i,
|
|
1969
|
+
n,
|
|
1970
|
+
o
|
|
1971
|
+
]);
|
|
1972
|
+
return { focusProps: {
|
|
1973
|
+
onFocus: !t && (n || i || r) ? s : void 0,
|
|
1974
|
+
onBlur: !t && (r || i) ? a : void 0
|
|
1975
|
+
} };
|
|
1976
|
+
}
|
|
1977
|
+
//#endregion
|
|
1978
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/createEventHandler.mjs
|
|
1979
|
+
function Pa(e) {
|
|
1980
|
+
if (!e) return;
|
|
1981
|
+
let t = !0;
|
|
1982
|
+
return (n) => {
|
|
1983
|
+
e({
|
|
1984
|
+
...n,
|
|
1985
|
+
preventDefault() {
|
|
1986
|
+
n.preventDefault();
|
|
1987
|
+
},
|
|
1988
|
+
isDefaultPrevented() {
|
|
1989
|
+
return n.isDefaultPrevented();
|
|
1990
|
+
},
|
|
1991
|
+
stopPropagation() {
|
|
1992
|
+
t = !0;
|
|
1993
|
+
},
|
|
1994
|
+
continuePropagation() {
|
|
1995
|
+
t = !1;
|
|
1996
|
+
},
|
|
1997
|
+
isPropagationStopped() {
|
|
1998
|
+
return t;
|
|
1999
|
+
}
|
|
2000
|
+
}), t && n.stopPropagation();
|
|
2001
|
+
};
|
|
2002
|
+
}
|
|
2003
|
+
//#endregion
|
|
2004
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useKeyboard.mjs
|
|
2005
|
+
function Fa(e) {
|
|
2006
|
+
return { keyboardProps: e.isDisabled ? {} : {
|
|
2007
|
+
onKeyDown: Pa(e.onKeyDown),
|
|
2008
|
+
onKeyUp: Pa(e.onKeyUp)
|
|
2009
|
+
} };
|
|
2010
|
+
}
|
|
2011
|
+
//#endregion
|
|
2012
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useFocusable.mjs
|
|
2013
|
+
var Ia = /*#__PURE__*/ z.createContext(null);
|
|
2014
|
+
function La(e) {
|
|
2015
|
+
let t = (0, z.useContext)(Ia) || {};
|
|
2016
|
+
fi(t, e);
|
|
2017
|
+
let { ref: n, ...r } = t;
|
|
2018
|
+
return r;
|
|
2019
|
+
}
|
|
2020
|
+
function Ra(e, t) {
|
|
2021
|
+
let { focusProps: n } = Na(e), { keyboardProps: r } = Fa(e), i = X(n, r), a = La(t), o = e.isDisabled ? {} : a, s = (0, z.useRef)(e.autoFocus);
|
|
2022
|
+
(0, z.useEffect)(() => {
|
|
2023
|
+
s.current && t.current && Ma(t.current), s.current = !1;
|
|
2024
|
+
}, [t]);
|
|
2025
|
+
let c = e.excludeFromTabOrder ? -1 : 0;
|
|
2026
|
+
return e.isDisabled && (c = void 0), { focusableProps: X({
|
|
2027
|
+
...i,
|
|
2028
|
+
tabIndex: c
|
|
2029
|
+
}, o) };
|
|
2030
|
+
}
|
|
2031
|
+
//#endregion
|
|
2032
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useFocusWithin.mjs
|
|
2033
|
+
function za(e) {
|
|
2034
|
+
let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = e, a = (0, z.useRef)({ isFocusWithin: !1 }), { addGlobalListener: o, removeAllGlobalListeners: s } = ci(), c = (0, z.useCallback)((e) => {
|
|
2035
|
+
q(e.currentTarget, Y(e)) && a.current.isFocusWithin && !q(e.currentTarget, e.relatedTarget) && (a.current.isFocusWithin = !1, s(), n && n(e), i && i(!1));
|
|
2036
|
+
}, [
|
|
2037
|
+
n,
|
|
2038
|
+
i,
|
|
2039
|
+
a,
|
|
2040
|
+
s
|
|
2041
|
+
]), l = Ni(c), u = (0, z.useCallback)((e) => {
|
|
2042
|
+
if (!q(e.currentTarget, Y(e))) return;
|
|
2043
|
+
let t = Y(e), n = G(t), s = J(n);
|
|
2044
|
+
if (!a.current.isFocusWithin && s === t) {
|
|
2045
|
+
r && r(e), i && i(!0), a.current.isFocusWithin = !0, l(e);
|
|
2046
|
+
let t = e.currentTarget;
|
|
2047
|
+
o(n, "focus", (e) => {
|
|
2048
|
+
let r = Y(e);
|
|
2049
|
+
if (a.current.isFocusWithin && !q(t, r)) {
|
|
2050
|
+
let e = new n.defaultView.FocusEvent("blur", { relatedTarget: r });
|
|
2051
|
+
Mi(e, t);
|
|
2052
|
+
let i = ji(e);
|
|
2053
|
+
c(i);
|
|
2054
|
+
}
|
|
2055
|
+
}, { capture: !0 });
|
|
2056
|
+
}
|
|
2057
|
+
}, [
|
|
2058
|
+
r,
|
|
2059
|
+
i,
|
|
2060
|
+
l,
|
|
2061
|
+
o,
|
|
2062
|
+
c
|
|
2063
|
+
]);
|
|
2064
|
+
return t ? { focusWithinProps: {
|
|
2065
|
+
onFocus: void 0,
|
|
2066
|
+
onBlur: void 0
|
|
2067
|
+
} } : { focusWithinProps: {
|
|
2068
|
+
onFocus: u,
|
|
2069
|
+
onBlur: c
|
|
2070
|
+
} };
|
|
2071
|
+
}
|
|
2072
|
+
//#endregion
|
|
2073
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useHover.mjs
|
|
2074
|
+
var Ba = !1, Va = 0;
|
|
2075
|
+
function Ha() {
|
|
2076
|
+
Ba = !0, setTimeout(() => {
|
|
2077
|
+
Ba = !1;
|
|
2078
|
+
}, 50);
|
|
2079
|
+
}
|
|
2080
|
+
function Ua(e) {
|
|
2081
|
+
e.pointerType === "touch" && Ha();
|
|
2082
|
+
}
|
|
2083
|
+
function Wa() {
|
|
2084
|
+
if (!(typeof document > "u")) return Va === 0 && typeof PointerEvent < "u" && document.addEventListener("pointerup", Ua), Va++, () => {
|
|
2085
|
+
Va--, !(Va > 0) && typeof PointerEvent < "u" && document.removeEventListener("pointerup", Ua);
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
function Ga(e) {
|
|
2089
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, isDisabled: i } = e, [a, o] = (0, z.useState)(!1), s = (0, z.useRef)({
|
|
2090
|
+
isHovered: !1,
|
|
2091
|
+
ignoreEmulatedMouseEvents: !1,
|
|
2092
|
+
pointerType: "",
|
|
2093
|
+
target: null
|
|
2094
|
+
}).current;
|
|
2095
|
+
(0, z.useEffect)(Wa, []);
|
|
2096
|
+
let { addGlobalListener: c, removeAllGlobalListeners: l } = ci(), { hoverProps: u, triggerHoverEnd: d } = (0, z.useMemo)(() => {
|
|
2097
|
+
let e = (e, r) => {
|
|
2098
|
+
if (s.pointerType = r, i || r === "touch" || s.isHovered || !q(e.currentTarget, Y(e))) return;
|
|
2099
|
+
s.isHovered = !0;
|
|
2100
|
+
let l = e.currentTarget;
|
|
2101
|
+
s.target = l, c(G(Y(e)), "pointerover", (e) => {
|
|
2102
|
+
s.isHovered && s.target && !q(s.target, Y(e)) && a(e, e.pointerType);
|
|
2103
|
+
}, { capture: !0 }), t && t({
|
|
2104
|
+
type: "hoverstart",
|
|
2105
|
+
target: l,
|
|
2106
|
+
pointerType: r
|
|
2107
|
+
}), n && n(!0), o(!0);
|
|
2108
|
+
}, a = (e, t) => {
|
|
2109
|
+
let i = s.target;
|
|
2110
|
+
s.pointerType = "", s.target = null, !(t === "touch" || !s.isHovered || !i) && (s.isHovered = !1, l(), r && r({
|
|
2111
|
+
type: "hoverend",
|
|
2112
|
+
target: i,
|
|
2113
|
+
pointerType: t
|
|
2114
|
+
}), n && n(!1), o(!1));
|
|
2115
|
+
}, u = {};
|
|
2116
|
+
return typeof PointerEvent < "u" && (u.onPointerEnter = (t) => {
|
|
2117
|
+
Ba && t.pointerType === "mouse" || e(t, t.pointerType);
|
|
2118
|
+
}, u.onPointerLeave = (e) => {
|
|
2119
|
+
!i && q(e.currentTarget, Y(e)) && a(e, e.pointerType);
|
|
2120
|
+
}), {
|
|
2121
|
+
hoverProps: u,
|
|
2122
|
+
triggerHoverEnd: a
|
|
2123
|
+
};
|
|
2124
|
+
}, [
|
|
2125
|
+
t,
|
|
2126
|
+
n,
|
|
2127
|
+
r,
|
|
2128
|
+
i,
|
|
2129
|
+
s,
|
|
2130
|
+
c,
|
|
2131
|
+
l
|
|
2132
|
+
]);
|
|
2133
|
+
return (0, z.useEffect)(() => {
|
|
2134
|
+
i && d({ currentTarget: s.target }, s.pointerType);
|
|
2135
|
+
}, [i]), {
|
|
2136
|
+
hoverProps: u,
|
|
2137
|
+
isHovered: a
|
|
2138
|
+
};
|
|
2139
|
+
}
|
|
2140
|
+
//#endregion
|
|
2141
|
+
//#region ../node_modules/.pnpm/@react-aria+interactions@3.27.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/interactions/dist/useScrollWheel.mjs
|
|
2142
|
+
function Ka(e, t) {
|
|
2143
|
+
let { onScroll: n, isDisabled: r } = e, i = (0, z.useCallback)((e) => {
|
|
2144
|
+
e.ctrlKey || (e.preventDefault(), e.stopPropagation(), n && n({
|
|
2145
|
+
deltaX: e.deltaX,
|
|
2146
|
+
deltaY: e.deltaY
|
|
2147
|
+
}));
|
|
2148
|
+
}, [n]);
|
|
2149
|
+
pi(t, "wheel", r ? void 0 : i);
|
|
2150
|
+
}
|
|
2151
|
+
//#endregion
|
|
2152
|
+
//#region ../node_modules/.pnpm/@internationalized+string@3.2.7/node_modules/@internationalized/string/dist/LocalizedStringDictionary.mjs
|
|
2153
|
+
var qa = Symbol.for("react-aria.i18n.locale"), Ja = Symbol.for("react-aria.i18n.strings"), Ya = void 0, Xa = class e {
|
|
2154
|
+
getStringForLocale(e, t) {
|
|
2155
|
+
let n = this.getStringsForLocale(t)[e];
|
|
2156
|
+
if (!n) throw Error(`Could not find intl message ${e} in ${t} locale`);
|
|
2157
|
+
return n;
|
|
2158
|
+
}
|
|
2159
|
+
getStringsForLocale(e) {
|
|
2160
|
+
let t = this.strings[e];
|
|
2161
|
+
return t || (t = Za(e, this.strings, this.defaultLocale), this.strings[e] = t), t;
|
|
2162
|
+
}
|
|
2163
|
+
static getGlobalDictionaryForPackage(t) {
|
|
2164
|
+
if (typeof window > "u") return null;
|
|
2165
|
+
let n = window[qa];
|
|
2166
|
+
if (Ya === void 0) {
|
|
2167
|
+
let t = window[Ja];
|
|
2168
|
+
if (!t) return null;
|
|
2169
|
+
Ya = {};
|
|
2170
|
+
for (let r in t) Ya[r] = new e({ [n]: t[r] }, n);
|
|
2171
|
+
}
|
|
2172
|
+
let r = Ya?.[t];
|
|
2173
|
+
if (!r) throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
|
|
2174
|
+
return r;
|
|
2175
|
+
}
|
|
2176
|
+
constructor(e, t = "en-US") {
|
|
2177
|
+
this.strings = Object.fromEntries(Object.entries(e).filter(([, e]) => e)), this.defaultLocale = t;
|
|
2178
|
+
}
|
|
2179
|
+
};
|
|
2180
|
+
function Za(e, t, n = "en-US") {
|
|
2181
|
+
if (t[e]) return t[e];
|
|
2182
|
+
let r = Qa(e);
|
|
2183
|
+
if (t[r]) return t[r];
|
|
2184
|
+
for (let e in t) if (e.startsWith(r + "-")) return t[e];
|
|
2185
|
+
return t[n];
|
|
2186
|
+
}
|
|
2187
|
+
function Qa(e) {
|
|
2188
|
+
return Intl.Locale ? new Intl.Locale(e).language : e.split("-")[0];
|
|
2189
|
+
}
|
|
2190
|
+
//#endregion
|
|
2191
|
+
//#region ../node_modules/.pnpm/@internationalized+string@3.2.7/node_modules/@internationalized/string/dist/LocalizedStringFormatter.mjs
|
|
2192
|
+
var $a = /* @__PURE__ */ new Map(), eo = /* @__PURE__ */ new Map(), to = class {
|
|
2193
|
+
format(e, t) {
|
|
2194
|
+
let n = this.strings.getStringForLocale(e, this.locale);
|
|
2195
|
+
return typeof n == "function" ? n(t, this) : n;
|
|
2196
|
+
}
|
|
2197
|
+
plural(e, t, n = "cardinal") {
|
|
2198
|
+
let r = t["=" + e];
|
|
2199
|
+
if (r) return typeof r == "function" ? r() : r;
|
|
2200
|
+
let i = this.locale + ":" + n, a = $a.get(i);
|
|
2201
|
+
return a || (a = new Intl.PluralRules(this.locale, { type: n }), $a.set(i, a)), r = t[a.select(e)] || t.other, typeof r == "function" ? r() : r;
|
|
2202
|
+
}
|
|
2203
|
+
number(e) {
|
|
2204
|
+
let t = eo.get(this.locale);
|
|
2205
|
+
return t || (t = new Intl.NumberFormat(this.locale), eo.set(this.locale, t)), t.format(e);
|
|
2206
|
+
}
|
|
2207
|
+
select(e, t) {
|
|
2208
|
+
let n = e[t] || e.other;
|
|
2209
|
+
return typeof n == "function" ? n() : n;
|
|
2210
|
+
}
|
|
2211
|
+
constructor(e, t) {
|
|
2212
|
+
this.locale = e, this.strings = t;
|
|
2213
|
+
}
|
|
2214
|
+
}, no = /* @__PURE__ */ new WeakMap();
|
|
2215
|
+
function ro(e) {
|
|
2216
|
+
let t = no.get(e);
|
|
2217
|
+
return t || (t = new Xa(e), no.set(e, t)), t;
|
|
2218
|
+
}
|
|
2219
|
+
function io(e, t) {
|
|
2220
|
+
return t && Xa.getGlobalDictionaryForPackage(t) || ro(e);
|
|
2221
|
+
}
|
|
2222
|
+
function ao(e, t) {
|
|
2223
|
+
let { locale: n } = pe(), r = io(e, t);
|
|
2224
|
+
return (0, z.useMemo)(() => new to(n, r), [n, r]);
|
|
2225
|
+
}
|
|
2226
|
+
//#endregion
|
|
2227
|
+
//#region ../node_modules/.pnpm/@internationalized+number@3.6.5/node_modules/@internationalized/number/dist/NumberParser.mjs
|
|
2228
|
+
var oo = /* @__PURE__ */ RegExp("^.*\\(.*\\).*$"), so = [
|
|
2229
|
+
"latn",
|
|
2230
|
+
"arab",
|
|
2231
|
+
"hanidec",
|
|
2232
|
+
"deva",
|
|
2233
|
+
"beng",
|
|
2234
|
+
"fullwide"
|
|
2235
|
+
], co = class {
|
|
2236
|
+
parse(e) {
|
|
2237
|
+
return uo(this.locale, this.options, e).parse(e);
|
|
2238
|
+
}
|
|
2239
|
+
isValidPartialNumber(e, t, n) {
|
|
2240
|
+
return uo(this.locale, this.options, e).isValidPartialNumber(e, t, n);
|
|
2241
|
+
}
|
|
2242
|
+
getNumberingSystem(e) {
|
|
2243
|
+
return uo(this.locale, this.options, e).options.numberingSystem;
|
|
2244
|
+
}
|
|
2245
|
+
constructor(e, t = {}) {
|
|
2246
|
+
this.locale = e, this.options = t;
|
|
2247
|
+
}
|
|
2248
|
+
}, lo = /* @__PURE__ */ new Map();
|
|
2249
|
+
function uo(e, t, n) {
|
|
2250
|
+
let r = fo(e, t);
|
|
2251
|
+
if (!e.includes("-nu-") && !r.isValidPartialNumber(n)) {
|
|
2252
|
+
for (let i of so) if (i !== r.options.numberingSystem) {
|
|
2253
|
+
let r = fo(e + (e.includes("-u-") ? "-nu-" : "-u-nu-") + i, t);
|
|
2254
|
+
if (r.isValidPartialNumber(n)) return r;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
return r;
|
|
2258
|
+
}
|
|
2259
|
+
function fo(e, t) {
|
|
2260
|
+
let n = e + (t ? Object.entries(t).sort((e, t) => e[0] < t[0] ? -1 : 1).join() : ""), r = lo.get(n);
|
|
2261
|
+
return r || (r = new po(e, t), lo.set(n, r)), r;
|
|
2262
|
+
}
|
|
2263
|
+
var po = class {
|
|
2264
|
+
parse(e) {
|
|
2265
|
+
let t = this.sanitize(e);
|
|
2266
|
+
if (this.symbols.group && (t = _o(t, this.symbols.group, "")), this.symbols.decimal && (t = t.replace(this.symbols.decimal, ".")), this.symbols.minusSign && (t = t.replace(this.symbols.minusSign, "-")), t = t.replace(this.symbols.numeral, this.symbols.index), this.options.style === "percent") {
|
|
2267
|
+
let e = t.indexOf("-");
|
|
2268
|
+
t = t.replace("-", ""), t = t.replace("+", "");
|
|
2269
|
+
let n = t.indexOf(".");
|
|
2270
|
+
n === -1 && (n = t.length), t = t.replace(".", ""), t = n - 2 == 0 ? `0.${t}` : n - 2 == -1 ? `0.0${t}` : n - 2 == -2 ? "0.00" : `${t.slice(0, n - 2)}.${t.slice(n - 2)}`, e > -1 && (t = `-${t}`);
|
|
2271
|
+
}
|
|
2272
|
+
let n = t ? +t : NaN;
|
|
2273
|
+
if (isNaN(n)) return NaN;
|
|
2274
|
+
if (this.options.style === "percent") {
|
|
2275
|
+
let e = {
|
|
2276
|
+
...this.options,
|
|
2277
|
+
style: "decimal",
|
|
2278
|
+
minimumFractionDigits: Math.min((this.options.minimumFractionDigits ?? 0) + 2, 20),
|
|
2279
|
+
maximumFractionDigits: Math.min((this.options.maximumFractionDigits ?? 0) + 2, 20)
|
|
2280
|
+
};
|
|
2281
|
+
return new co(this.locale, e).parse(new de(this.locale, e).format(n));
|
|
2282
|
+
}
|
|
2283
|
+
return this.options.currencySign === "accounting" && oo.test(e) && (n = -1 * n), n;
|
|
2284
|
+
}
|
|
2285
|
+
sanitize(e) {
|
|
2286
|
+
return e = e.replace(this.symbols.literals, ""), this.symbols.minusSign && (e = e.replace("-", this.symbols.minusSign)), this.options.numberingSystem === "arab" && (this.symbols.decimal && (e = e.replace(",", this.symbols.decimal), e = e.replace("،", this.symbols.decimal)), this.symbols.group && (e = _o(e, ".", this.symbols.group))), this.symbols.group === "’" && e.includes("'") && (e = _o(e, "'", this.symbols.group)), this.options.locale === "fr-FR" && this.symbols.group && (e = _o(e, " ", this.symbols.group), e = _o(e, /\u00A0/g, this.symbols.group)), e;
|
|
2287
|
+
}
|
|
2288
|
+
isValidPartialNumber(e, t = -Infinity, n = Infinity) {
|
|
2289
|
+
return e = this.sanitize(e), this.symbols.minusSign && e.startsWith(this.symbols.minusSign) && t < 0 ? e = e.slice(this.symbols.minusSign.length) : this.symbols.plusSign && e.startsWith(this.symbols.plusSign) && n > 0 && (e = e.slice(this.symbols.plusSign.length)), this.symbols.group && e.startsWith(this.symbols.group) || this.symbols.decimal && e.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0 ? !1 : (this.symbols.group && (e = _o(e, this.symbols.group, "")), e = e.replace(this.symbols.numeral, ""), this.symbols.decimal && (e = e.replace(this.symbols.decimal, "")), e.length === 0);
|
|
2290
|
+
}
|
|
2291
|
+
constructor(e, t = {}) {
|
|
2292
|
+
this.locale = e, t.roundingIncrement !== 1 && t.roundingIncrement != null && (t.maximumFractionDigits == null && t.minimumFractionDigits == null ? (t.maximumFractionDigits = 0, t.minimumFractionDigits = 0) : t.maximumFractionDigits == null ? t.maximumFractionDigits = t.minimumFractionDigits : t.minimumFractionDigits ??= t.maximumFractionDigits), this.formatter = new Intl.NumberFormat(e, t), this.options = this.formatter.resolvedOptions(), this.symbols = go(e, this.formatter, this.options, t), this.options.style === "percent" && ((this.options.minimumFractionDigits ?? 0) > 18 || (this.options.maximumFractionDigits ?? 0) > 18) && console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
|
|
2293
|
+
}
|
|
2294
|
+
}, mo = /* @__PURE__ */ new Set([
|
|
2295
|
+
"decimal",
|
|
2296
|
+
"fraction",
|
|
2297
|
+
"integer",
|
|
2298
|
+
"minusSign",
|
|
2299
|
+
"plusSign",
|
|
2300
|
+
"group"
|
|
2301
|
+
]), ho = [
|
|
2302
|
+
0,
|
|
2303
|
+
4,
|
|
2304
|
+
2,
|
|
2305
|
+
1,
|
|
2306
|
+
11,
|
|
2307
|
+
20,
|
|
2308
|
+
3,
|
|
2309
|
+
7,
|
|
2310
|
+
100,
|
|
2311
|
+
21,
|
|
2312
|
+
.1,
|
|
2313
|
+
1.1
|
|
2314
|
+
];
|
|
2315
|
+
function go(e, t, n, r) {
|
|
2316
|
+
let i = new Intl.NumberFormat(e, {
|
|
2317
|
+
...n,
|
|
2318
|
+
minimumSignificantDigits: 1,
|
|
2319
|
+
maximumSignificantDigits: 21,
|
|
2320
|
+
roundingIncrement: 1,
|
|
2321
|
+
roundingPriority: "auto",
|
|
2322
|
+
roundingMode: "halfExpand"
|
|
2323
|
+
}), a = i.formatToParts(-10000.111), o = i.formatToParts(10000.111), s = ho.map((e) => i.formatToParts(e)), c = a.find((e) => e.type === "minusSign")?.value ?? "-", l = o.find((e) => e.type === "plusSign")?.value;
|
|
2324
|
+
!l && (r?.signDisplay === "exceptZero" || r?.signDisplay === "always") && (l = "+");
|
|
2325
|
+
let u = new Intl.NumberFormat(e, {
|
|
2326
|
+
...n,
|
|
2327
|
+
minimumFractionDigits: 2,
|
|
2328
|
+
maximumFractionDigits: 2
|
|
2329
|
+
}).formatToParts(.001).find((e) => e.type === "decimal")?.value, d = a.find((e) => e.type === "group")?.value, f = a.filter((e) => !mo.has(e.type)).map((e) => vo(e.value)), p = s.flatMap((e) => e.filter((e) => !mo.has(e.type)).map((e) => vo(e.value))), m = [.../* @__PURE__ */ new Set([...f, ...p])].sort((e, t) => t.length - e.length), h = m.length === 0 ? /* @__PURE__ */ RegExp("[\\p{White_Space}]", "gu") : RegExp(`${m.join("|")}|[\\p{White_Space}]`, "gu"), g = [...new Intl.NumberFormat(n.locale, { useGrouping: !1 }).format(9876543210)].reverse(), _ = new Map(g.map((e, t) => [e, t])), v = RegExp(`[${g.join("")}]`, "g");
|
|
2330
|
+
return {
|
|
2331
|
+
minusSign: c,
|
|
2332
|
+
plusSign: l,
|
|
2333
|
+
decimal: u,
|
|
2334
|
+
group: d,
|
|
2335
|
+
literals: h,
|
|
2336
|
+
numeral: v,
|
|
2337
|
+
index: (e) => String(_.get(e))
|
|
2338
|
+
};
|
|
2339
|
+
}
|
|
2340
|
+
function _o(e, t, n) {
|
|
2341
|
+
return e.replaceAll ? e.replaceAll(t, n) : e.split(t).join(n);
|
|
2342
|
+
}
|
|
2343
|
+
function vo(e) {
|
|
2344
|
+
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2345
|
+
}
|
|
2346
|
+
//#endregion
|
|
2347
|
+
//#region ../node_modules/.pnpm/@react-aria+button@3.14.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/button/dist/useButton.mjs
|
|
2348
|
+
function yo(e, t) {
|
|
2349
|
+
let { elementType: n = "button", isDisabled: r, onPress: i, onPressStart: a, onPressEnd: o, onPressUp: s, onPressChange: c, preventFocusOnPress: l, allowFocusWhenDisabled: u, onClick: d, href: f, target: p, rel: m, type: h = "button" } = e, g;
|
|
2350
|
+
g = n === "button" ? {
|
|
2351
|
+
type: h,
|
|
2352
|
+
disabled: r,
|
|
2353
|
+
form: e.form,
|
|
2354
|
+
formAction: e.formAction,
|
|
2355
|
+
formEncType: e.formEncType,
|
|
2356
|
+
formMethod: e.formMethod,
|
|
2357
|
+
formNoValidate: e.formNoValidate,
|
|
2358
|
+
formTarget: e.formTarget,
|
|
2359
|
+
name: e.name,
|
|
2360
|
+
value: e.value
|
|
2361
|
+
} : {
|
|
2362
|
+
role: "button",
|
|
2363
|
+
href: n === "a" && !r ? f : void 0,
|
|
2364
|
+
target: n === "a" ? p : void 0,
|
|
2365
|
+
type: n === "input" ? h : void 0,
|
|
2366
|
+
disabled: n === "input" ? r : void 0,
|
|
2367
|
+
"aria-disabled": !r || n === "input" ? void 0 : r,
|
|
2368
|
+
rel: n === "a" ? m : void 0
|
|
2369
|
+
};
|
|
2370
|
+
let { pressProps: _, isPressed: v } = na({
|
|
2371
|
+
onPressStart: a,
|
|
2372
|
+
onPressEnd: o,
|
|
2373
|
+
onPressChange: c,
|
|
2374
|
+
onPress: i,
|
|
2375
|
+
onPressUp: s,
|
|
2376
|
+
onClick: d,
|
|
2377
|
+
isDisabled: r,
|
|
2378
|
+
preventFocusOnPress: l,
|
|
2379
|
+
ref: t
|
|
2380
|
+
}), { focusableProps: y } = Ra(e, t);
|
|
2381
|
+
u && (y.tabIndex = r ? -1 : y.tabIndex);
|
|
2382
|
+
let b = X(y, _, zr(e, { labelable: !0 }));
|
|
2383
|
+
return {
|
|
2384
|
+
isPressed: v,
|
|
2385
|
+
buttonProps: X(g, b, {
|
|
2386
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
2387
|
+
"aria-expanded": e["aria-expanded"],
|
|
2388
|
+
"aria-controls": e["aria-controls"],
|
|
2389
|
+
"aria-pressed": e["aria-pressed"],
|
|
2390
|
+
"aria-current": e["aria-current"],
|
|
2391
|
+
"aria-disabled": e["aria-disabled"]
|
|
2392
|
+
})
|
|
2393
|
+
};
|
|
2394
|
+
}
|
|
2395
|
+
//#endregion
|
|
2396
|
+
//#region ../node_modules/.pnpm/@react-aria+focus@3.21.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/focus/dist/useFocusRing.mjs
|
|
2397
|
+
function bo(e = {}) {
|
|
2398
|
+
let { autoFocus: t = !1, isTextInput: n, within: r } = e, i = (0, z.useRef)({
|
|
2399
|
+
isFocused: !1,
|
|
2400
|
+
isFocusVisible: t || Ea()
|
|
2401
|
+
}), [a, o] = (0, z.useState)(!1), [s, c] = (0, z.useState)(() => i.current.isFocused && i.current.isFocusVisible), l = (0, z.useCallback)(() => c(i.current.isFocused && i.current.isFocusVisible), []), u = (0, z.useCallback)((e) => {
|
|
2402
|
+
i.current.isFocused = e, i.current.isFocusVisible = Ea(), o(e), l();
|
|
2403
|
+
}, [l]);
|
|
2404
|
+
ja((e) => {
|
|
2405
|
+
i.current.isFocusVisible = e, l();
|
|
2406
|
+
}, [n, a], {
|
|
2407
|
+
enabled: a,
|
|
2408
|
+
isTextInput: n
|
|
2409
|
+
});
|
|
2410
|
+
let { focusProps: d } = Na({
|
|
2411
|
+
isDisabled: r,
|
|
2412
|
+
onFocusChange: u
|
|
2413
|
+
}), { focusWithinProps: f } = za({
|
|
2414
|
+
isDisabled: !r,
|
|
2415
|
+
onFocusWithinChange: u
|
|
2416
|
+
});
|
|
2417
|
+
return {
|
|
2418
|
+
isFocused: a,
|
|
2419
|
+
isFocusVisible: s,
|
|
2420
|
+
focusProps: r ? f : d
|
|
2421
|
+
};
|
|
2422
|
+
}
|
|
2423
|
+
//#endregion
|
|
2424
|
+
//#region ../node_modules/.pnpm/@react-aria+live-announcer@3.4.4/node_modules/@react-aria/live-announcer/dist/LiveAnnouncer.mjs
|
|
2425
|
+
var xo = 7e3, So = null;
|
|
2426
|
+
function Co(e, t = "assertive", n = xo) {
|
|
2427
|
+
So ? So.announce(e, t, n) : (So = new To(), (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") ? So.announce(e, t, n) : setTimeout(() => {
|
|
2428
|
+
So?.isAttached() && So?.announce(e, t, n);
|
|
2429
|
+
}, 100));
|
|
2430
|
+
}
|
|
2431
|
+
function wo(e) {
|
|
2432
|
+
So && So.clear(e);
|
|
2433
|
+
}
|
|
2434
|
+
var To = class {
|
|
2435
|
+
isAttached() {
|
|
2436
|
+
return this.node?.isConnected;
|
|
2437
|
+
}
|
|
2438
|
+
createLog(e) {
|
|
2439
|
+
let t = document.createElement("div");
|
|
2440
|
+
return t.setAttribute("role", "log"), t.setAttribute("aria-live", e), t.setAttribute("aria-relevant", "additions"), t;
|
|
2441
|
+
}
|
|
2442
|
+
destroy() {
|
|
2443
|
+
this.node &&= (document.body.removeChild(this.node), null);
|
|
2444
|
+
}
|
|
2445
|
+
announce(e, t = "assertive", n = xo) {
|
|
2446
|
+
var r, i;
|
|
2447
|
+
if (!this.node) return;
|
|
2448
|
+
let a = document.createElement("div");
|
|
2449
|
+
typeof e == "object" ? (a.setAttribute("role", "img"), a.setAttribute("aria-labelledby", e["aria-labelledby"])) : a.textContent = e, t === "assertive" ? (r = this.assertiveLog) == null || r.appendChild(a) : (i = this.politeLog) == null || i.appendChild(a), e !== "" && setTimeout(() => {
|
|
2450
|
+
a.remove();
|
|
2451
|
+
}, n);
|
|
2452
|
+
}
|
|
2453
|
+
clear(e) {
|
|
2454
|
+
this.node && ((!e || e === "assertive") && this.assertiveLog && (this.assertiveLog.innerHTML = ""), (!e || e === "polite") && this.politeLog && (this.politeLog.innerHTML = ""));
|
|
2455
|
+
}
|
|
2456
|
+
constructor() {
|
|
2457
|
+
this.node = null, this.assertiveLog = null, this.politeLog = null, typeof document < "u" && (this.node = document.createElement("div"), this.node.dataset.liveAnnouncer = "true", Object.assign(this.node.style, {
|
|
2458
|
+
border: 0,
|
|
2459
|
+
clip: "rect(0 0 0 0)",
|
|
2460
|
+
clipPath: "inset(50%)",
|
|
2461
|
+
height: "1px",
|
|
2462
|
+
margin: "-1px",
|
|
2463
|
+
overflow: "hidden",
|
|
2464
|
+
padding: 0,
|
|
2465
|
+
position: "absolute",
|
|
2466
|
+
width: "1px",
|
|
2467
|
+
whiteSpace: "nowrap"
|
|
2468
|
+
}), this.assertiveLog = this.createLog("assertive"), this.node.appendChild(this.assertiveLog), this.politeLog = this.createLog("polite"), this.node.appendChild(this.politeLog), document.body.prepend(this.node));
|
|
2469
|
+
}
|
|
2470
|
+
}, Eo = {
|
|
2471
|
+
badInput: !1,
|
|
2472
|
+
customError: !1,
|
|
2473
|
+
patternMismatch: !1,
|
|
2474
|
+
rangeOverflow: !1,
|
|
2475
|
+
rangeUnderflow: !1,
|
|
2476
|
+
stepMismatch: !1,
|
|
2477
|
+
tooLong: !1,
|
|
2478
|
+
tooShort: !1,
|
|
2479
|
+
typeMismatch: !1,
|
|
2480
|
+
valueMissing: !1,
|
|
2481
|
+
valid: !0
|
|
2482
|
+
}, Do = {
|
|
2483
|
+
...Eo,
|
|
2484
|
+
customError: !0,
|
|
2485
|
+
valid: !1
|
|
2486
|
+
}, Oo = {
|
|
2487
|
+
isInvalid: !1,
|
|
2488
|
+
validationDetails: Eo,
|
|
2489
|
+
validationErrors: []
|
|
2490
|
+
}, ko = (0, z.createContext)({}), Ao = "__formValidationState" + Date.now();
|
|
2491
|
+
function jo(e) {
|
|
2492
|
+
if (e[Ao]) {
|
|
2493
|
+
let { realtimeValidation: t, displayValidation: n, updateValidation: r, resetValidation: i, commitValidation: a } = e[Ao];
|
|
2494
|
+
return {
|
|
2495
|
+
realtimeValidation: t,
|
|
2496
|
+
displayValidation: n,
|
|
2497
|
+
updateValidation: r,
|
|
2498
|
+
resetValidation: i,
|
|
2499
|
+
commitValidation: a
|
|
2500
|
+
};
|
|
2501
|
+
}
|
|
2502
|
+
return Mo(e);
|
|
2503
|
+
}
|
|
2504
|
+
function Mo(e) {
|
|
2505
|
+
let { isInvalid: t, validationState: n, name: r, value: i, builtinValidation: a, validate: o, validationBehavior: s = "aria" } = e;
|
|
2506
|
+
n && (t ||= n === "invalid");
|
|
2507
|
+
let c = t === void 0 ? null : {
|
|
2508
|
+
isInvalid: t,
|
|
2509
|
+
validationErrors: [],
|
|
2510
|
+
validationDetails: Do
|
|
2511
|
+
}, l = (0, z.useMemo)(() => !o || i == null ? null : Fo(Po(o, i)), [o, i]);
|
|
2512
|
+
a?.validationDetails.valid && (a = void 0);
|
|
2513
|
+
let u = (0, z.useContext)(ko), d = (0, z.useMemo)(() => r ? Array.isArray(r) ? r.flatMap((e) => No(u[e])) : No(u[r]) : [], [u, r]), [f, p] = (0, z.useState)(u), [m, h] = (0, z.useState)(!1);
|
|
2514
|
+
u !== f && (p(u), h(!1));
|
|
2515
|
+
let g = (0, z.useMemo)(() => Fo(m ? [] : d), [m, d]), _ = (0, z.useRef)(Oo), [v, y] = (0, z.useState)(Oo), b = (0, z.useRef)(Oo), x = () => {
|
|
2516
|
+
if (!S) return;
|
|
2517
|
+
C(!1);
|
|
2518
|
+
let e = l || a || _.current;
|
|
2519
|
+
Io(e, b.current) || (b.current = e, y(e));
|
|
2520
|
+
}, [S, C] = (0, z.useState)(!1);
|
|
2521
|
+
return (0, z.useEffect)(x), {
|
|
2522
|
+
realtimeValidation: c || g || l || a || Oo,
|
|
2523
|
+
displayValidation: s === "native" ? c || g || v : c || g || l || a || v,
|
|
2524
|
+
updateValidation(e) {
|
|
2525
|
+
s === "aria" && !Io(v, e) ? y(e) : _.current = e;
|
|
2526
|
+
},
|
|
2527
|
+
resetValidation() {
|
|
2528
|
+
let e = Oo;
|
|
2529
|
+
Io(e, b.current) || (b.current = e, y(e)), s === "native" && C(!1), h(!0);
|
|
2530
|
+
},
|
|
2531
|
+
commitValidation() {
|
|
2532
|
+
s === "native" && C(!0), h(!0);
|
|
2533
|
+
}
|
|
2534
|
+
};
|
|
2535
|
+
}
|
|
2536
|
+
function No(e) {
|
|
2537
|
+
return e ? Array.isArray(e) ? e : [e] : [];
|
|
2538
|
+
}
|
|
2539
|
+
function Po(e, t) {
|
|
2540
|
+
if (typeof e == "function") {
|
|
2541
|
+
let n = e(t);
|
|
2542
|
+
if (n && typeof n != "boolean") return No(n);
|
|
2543
|
+
}
|
|
2544
|
+
return [];
|
|
2545
|
+
}
|
|
2546
|
+
function Fo(e) {
|
|
2547
|
+
return e.length ? {
|
|
2548
|
+
isInvalid: !0,
|
|
2549
|
+
validationErrors: e,
|
|
2550
|
+
validationDetails: Do
|
|
2551
|
+
} : null;
|
|
2552
|
+
}
|
|
2553
|
+
function Io(e, t) {
|
|
2554
|
+
return e === t || !!e && !!t && e.isInvalid === t.isInvalid && e.validationErrors.length === t.validationErrors.length && e.validationErrors.every((e, n) => e === t.validationErrors[n]) && Object.entries(e.validationDetails).every(([e, n]) => t.validationDetails[e] === n);
|
|
2555
|
+
}
|
|
2556
|
+
function Lo(...e) {
|
|
2557
|
+
let t = /* @__PURE__ */ new Set(), n = !1, r = { ...Eo };
|
|
2558
|
+
for (let o of e) {
|
|
2559
|
+
var i, a;
|
|
2560
|
+
for (let e of o.validationErrors) t.add(e);
|
|
2561
|
+
n ||= o.isInvalid;
|
|
2562
|
+
for (let e in r) (i = r)[a = e] || (i[a] = o.validationDetails[e]);
|
|
2563
|
+
}
|
|
2564
|
+
return r.valid = !n, {
|
|
2565
|
+
isInvalid: n,
|
|
2566
|
+
validationErrors: [...t],
|
|
2567
|
+
validationDetails: r
|
|
2568
|
+
};
|
|
2569
|
+
}
|
|
2570
|
+
//#endregion
|
|
2571
|
+
//#region ../node_modules/.pnpm/@react-aria+form@3.1.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/form/dist/useFormValidation.mjs
|
|
2572
|
+
function Ro(e, t, n) {
|
|
2573
|
+
let { validationBehavior: r, focus: i } = e;
|
|
2574
|
+
U(() => {
|
|
2575
|
+
if (r === "native" && n?.current && !n.current.disabled) {
|
|
2576
|
+
let e = t.realtimeValidation.isInvalid ? t.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
|
|
2577
|
+
n.current.setCustomValidity(e), n.current.hasAttribute("title") || (n.current.title = ""), t.realtimeValidation.isInvalid || t.updateValidation(Bo(n.current));
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
let a = (0, z.useRef)(!1), o = Z(() => {
|
|
2581
|
+
a.current || t.resetValidation();
|
|
2582
|
+
}), s = Z((e) => {
|
|
2583
|
+
t.displayValidation.isInvalid || t.commitValidation();
|
|
2584
|
+
let r = n?.current?.form;
|
|
2585
|
+
if (!e.defaultPrevented && n && r && Vo(r) === n.current) {
|
|
2586
|
+
var a;
|
|
2587
|
+
i ? i() : (a = n.current) == null || a.focus(), Oa("keyboard");
|
|
2588
|
+
}
|
|
2589
|
+
e.preventDefault();
|
|
2590
|
+
}), c = Z(() => {
|
|
2591
|
+
t.commitValidation();
|
|
2592
|
+
});
|
|
2593
|
+
(0, z.useEffect)(() => {
|
|
2594
|
+
let e = n?.current;
|
|
2595
|
+
if (!e) return;
|
|
2596
|
+
let t = e.form, r = t?.reset;
|
|
2597
|
+
return t && (t.reset = () => {
|
|
2598
|
+
a.current = !window.event || window.event.type === "message" && Y(window.event) instanceof MessagePort, r?.call(t), a.current = !1;
|
|
2599
|
+
}), e.addEventListener("invalid", s), e.addEventListener("change", c), t?.addEventListener("reset", o), () => {
|
|
2600
|
+
e.removeEventListener("invalid", s), e.removeEventListener("change", c), t?.removeEventListener("reset", o), t && (t.reset = r);
|
|
2601
|
+
};
|
|
2602
|
+
}, [n, r]);
|
|
2603
|
+
}
|
|
2604
|
+
function zo(e) {
|
|
2605
|
+
let t = e.validity;
|
|
2606
|
+
return {
|
|
2607
|
+
badInput: t.badInput,
|
|
2608
|
+
customError: t.customError,
|
|
2609
|
+
patternMismatch: t.patternMismatch,
|
|
2610
|
+
rangeOverflow: t.rangeOverflow,
|
|
2611
|
+
rangeUnderflow: t.rangeUnderflow,
|
|
2612
|
+
stepMismatch: t.stepMismatch,
|
|
2613
|
+
tooLong: t.tooLong,
|
|
2614
|
+
tooShort: t.tooShort,
|
|
2615
|
+
typeMismatch: t.typeMismatch,
|
|
2616
|
+
valueMissing: t.valueMissing,
|
|
2617
|
+
valid: t.valid
|
|
2618
|
+
};
|
|
2619
|
+
}
|
|
2620
|
+
function Bo(e) {
|
|
2621
|
+
return {
|
|
2622
|
+
isInvalid: !e.validity.valid,
|
|
2623
|
+
validationDetails: zo(e),
|
|
2624
|
+
validationErrors: e.validationMessage ? [e.validationMessage] : []
|
|
2625
|
+
};
|
|
2626
|
+
}
|
|
2627
|
+
function Vo(e) {
|
|
2628
|
+
for (let t = 0; t < e.elements.length; t++) {
|
|
2629
|
+
let n = e.elements[t];
|
|
2630
|
+
if (n.validity?.valid === !1) return n;
|
|
2631
|
+
}
|
|
2632
|
+
return null;
|
|
2633
|
+
}
|
|
2634
|
+
//#endregion
|
|
2635
|
+
//#region ../node_modules/.pnpm/@react-aria+label@3.7.25_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/label/dist/useLabel.mjs
|
|
2636
|
+
function Ho(e) {
|
|
2637
|
+
let { id: t, label: n, "aria-labelledby": r, "aria-label": i, labelElementType: a = "label" } = e;
|
|
2638
|
+
t = W(t);
|
|
2639
|
+
let o = W(), s = {};
|
|
2640
|
+
n && (r = r ? `${o} ${r}` : o, s = {
|
|
2641
|
+
id: o,
|
|
2642
|
+
htmlFor: a === "label" ? t : void 0
|
|
2643
|
+
});
|
|
2644
|
+
let c = li({
|
|
2645
|
+
id: t,
|
|
2646
|
+
"aria-label": i,
|
|
2647
|
+
"aria-labelledby": r
|
|
2648
|
+
});
|
|
2649
|
+
return {
|
|
2650
|
+
labelProps: s,
|
|
2651
|
+
fieldProps: c
|
|
2652
|
+
};
|
|
2653
|
+
}
|
|
2654
|
+
//#endregion
|
|
2655
|
+
//#region ../node_modules/.pnpm/@react-aria+label@3.7.25_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/label/dist/useField.mjs
|
|
2656
|
+
function Uo(e) {
|
|
2657
|
+
let { description: t, errorMessage: n, isInvalid: r, validationState: i } = e, { labelProps: a, fieldProps: o } = Ho(e), s = wr([
|
|
2658
|
+
!!t,
|
|
2659
|
+
!!n,
|
|
2660
|
+
r,
|
|
2661
|
+
i
|
|
2662
|
+
]), c = wr([
|
|
2663
|
+
!!t,
|
|
2664
|
+
!!n,
|
|
2665
|
+
r,
|
|
2666
|
+
i
|
|
2667
|
+
]);
|
|
2668
|
+
return o = X(o, { "aria-describedby": [
|
|
2669
|
+
s,
|
|
2670
|
+
c,
|
|
2671
|
+
e["aria-describedby"]
|
|
2672
|
+
].filter(Boolean).join(" ") || void 0 }), {
|
|
2673
|
+
labelProps: a,
|
|
2674
|
+
fieldProps: o,
|
|
2675
|
+
descriptionProps: { id: s },
|
|
2676
|
+
errorMessageProps: { id: c }
|
|
2677
|
+
};
|
|
2678
|
+
}
|
|
2679
|
+
//#endregion
|
|
2680
|
+
//#region ../node_modules/.pnpm/@react-stately+numberfield@3.11.0_react@19.2.8/node_modules/@react-stately/numberfield/dist/useNumberFieldState.mjs
|
|
2681
|
+
function Wo(e) {
|
|
2682
|
+
let { minValue: t, maxValue: n, step: r, formatOptions: i, value: a, defaultValue: o = NaN, onChange: s, locale: c, isDisabled: l, isReadOnly: u } = e;
|
|
2683
|
+
a === null && (a = NaN), a !== void 0 && !isNaN(a) && (a = r !== void 0 && !isNaN(r) ? Q(a, t, n, r) : ki(a, t, n)), isNaN(o) || (o = r !== void 0 && !isNaN(r) ? Q(o, t, n, r) : ki(o, t, n));
|
|
2684
|
+
let [d, f] = Oi(a, isNaN(o) ? NaN : o, s), [p] = (0, z.useState)(d), [m, h] = (0, z.useState)(() => isNaN(d) ? "" : new de(c, i).format(d)), g = (0, z.useMemo)(() => new co(c, i), [c, i]), _ = (0, z.useMemo)(() => g.getNumberingSystem(m), [g, m]), v = (0, z.useMemo)(() => new de(c, {
|
|
2685
|
+
...i,
|
|
2686
|
+
numberingSystem: _
|
|
2687
|
+
}), [
|
|
2688
|
+
c,
|
|
2689
|
+
i,
|
|
2690
|
+
_
|
|
2691
|
+
]), y = (0, z.useMemo)(() => v.resolvedOptions(), [v]), b = (0, z.useCallback)((e) => isNaN(e) || e === null ? "" : v.format(e), [v]), x = jo({
|
|
2692
|
+
...e,
|
|
2693
|
+
value: d
|
|
2694
|
+
}), S = r !== void 0 && !isNaN(r) ? r : 1;
|
|
2695
|
+
y.style === "percent" && (r === void 0 || isNaN(r)) && (S = .01);
|
|
2696
|
+
let [C, w] = (0, z.useState)(d), [T, E] = (0, z.useState)(c), [D, O] = (0, z.useState)(i);
|
|
2697
|
+
(!Object.is(d, C) || c !== T || i !== D) && (h(b(d)), w(d), E(c), O(i));
|
|
2698
|
+
let k = (0, z.useMemo)(() => g.parse(m), [g, m]), A = (e) => {
|
|
2699
|
+
let i = e === void 0 ? m : e, o = k;
|
|
2700
|
+
if (e !== void 0 && (o = g.parse(i)), !i.length) {
|
|
2701
|
+
f(NaN), h(a === void 0 ? "" : b(d));
|
|
2702
|
+
return;
|
|
2703
|
+
}
|
|
2704
|
+
if (isNaN(o)) {
|
|
2705
|
+
h(b(d));
|
|
2706
|
+
return;
|
|
2707
|
+
}
|
|
2708
|
+
let s;
|
|
2709
|
+
s = r === void 0 || isNaN(r) ? ki(o, t, n) : Q(o, t, n, r), s = g.parse(b(s)), f(s), h(b(a === void 0 ? s : d)), x.commitValidation();
|
|
2710
|
+
}, j = (e, r = 0) => {
|
|
2711
|
+
let i = k;
|
|
2712
|
+
if (isNaN(i)) return Q(isNaN(r) ? 0 : r, t, n, S);
|
|
2713
|
+
{
|
|
2714
|
+
let r = Q(i, t, n, S);
|
|
2715
|
+
return e === "+" && r > i || e === "-" && r < i ? r : Q(Go(e, i, S), t, n, S);
|
|
2716
|
+
}
|
|
2717
|
+
}, M = () => {
|
|
2718
|
+
let e = j("+", t);
|
|
2719
|
+
e === d && h(b(e)), f(e), x.commitValidation();
|
|
2720
|
+
}, N = () => {
|
|
2721
|
+
let e = j("-", n);
|
|
2722
|
+
e === d && h(b(e)), f(e), x.commitValidation();
|
|
2723
|
+
}, P = () => {
|
|
2724
|
+
n != null && (f(Q(n, t, n, S)), x.commitValidation());
|
|
2725
|
+
}, F = () => {
|
|
2726
|
+
t != null && (f(t), x.commitValidation());
|
|
2727
|
+
}, I = (0, z.useMemo)(() => !l && !u && (isNaN(k) || n === void 0 || isNaN(n) || Q(k, t, n, S) > k || Go("+", k, S) <= n), [
|
|
2728
|
+
l,
|
|
2729
|
+
u,
|
|
2730
|
+
t,
|
|
2731
|
+
n,
|
|
2732
|
+
S,
|
|
2733
|
+
k
|
|
2734
|
+
]), L = (0, z.useMemo)(() => !l && !u && (isNaN(k) || t === void 0 || isNaN(t) || Q(k, t, n, S) < k || Go("-", k, S) >= t), [
|
|
2735
|
+
l,
|
|
2736
|
+
u,
|
|
2737
|
+
t,
|
|
2738
|
+
n,
|
|
2739
|
+
S,
|
|
2740
|
+
k
|
|
2741
|
+
]), ee = (e) => g.isValidPartialNumber(e, t, n);
|
|
2742
|
+
return {
|
|
2743
|
+
...x,
|
|
2744
|
+
validate: ee,
|
|
2745
|
+
increment: M,
|
|
2746
|
+
incrementToMax: P,
|
|
2747
|
+
decrement: N,
|
|
2748
|
+
decrementToMin: F,
|
|
2749
|
+
canIncrement: I,
|
|
2750
|
+
canDecrement: L,
|
|
2751
|
+
minValue: t,
|
|
2752
|
+
maxValue: n,
|
|
2753
|
+
numberValue: k,
|
|
2754
|
+
defaultNumberValue: isNaN(o) ? p : o,
|
|
2755
|
+
setNumberValue: f,
|
|
2756
|
+
setInputValue: h,
|
|
2757
|
+
inputValue: m,
|
|
2758
|
+
commit: A
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
function Go(e, t, n) {
|
|
2762
|
+
let r = e === "+" ? t + n : t - n;
|
|
2763
|
+
if (t % 1 != 0 || n % 1 != 0) {
|
|
2764
|
+
let i = t.toString().split("."), a = n.toString().split("."), o = i[1] && i[1].length || 0, s = a[1] && a[1].length || 0, c = 10 ** Math.max(o, s);
|
|
2765
|
+
t = Math.round(t * c), n = Math.round(n * c), r = e === "+" ? t + n : t - n, r /= c;
|
|
2766
|
+
}
|
|
2767
|
+
return r;
|
|
2768
|
+
}
|
|
2769
|
+
//#endregion
|
|
2770
|
+
//#region ../node_modules/.pnpm/@react-aria+textfield@3.18.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/textfield/dist/useTextField.mjs
|
|
2771
|
+
function Ko(e, t) {
|
|
2772
|
+
let { inputElementType: n = "input", isDisabled: r = !1, isRequired: i = !1, isReadOnly: a = !1, type: o = "text", validationBehavior: s = "aria" } = e, [c, l] = Oi(e.value, e.defaultValue || "", e.onChange), { focusableProps: u } = Ra(e, t), d = jo({
|
|
2773
|
+
...e,
|
|
2774
|
+
value: c
|
|
2775
|
+
}), { isInvalid: f, validationErrors: p, validationDetails: m } = d.displayValidation, { labelProps: h, fieldProps: g, descriptionProps: _, errorMessageProps: v } = Uo({
|
|
2776
|
+
...e,
|
|
2777
|
+
isInvalid: f,
|
|
2778
|
+
errorMessage: e.errorMessage || p
|
|
2779
|
+
}), y = zr(e, { labelable: !0 }), b = {
|
|
2780
|
+
type: o,
|
|
2781
|
+
pattern: e.pattern
|
|
2782
|
+
}, [x] = (0, z.useState)(c);
|
|
2783
|
+
return gi(t, e.defaultValue ?? x, l), Ro(e, d, t), {
|
|
2784
|
+
labelProps: h,
|
|
2785
|
+
inputProps: X(y, n === "input" ? b : void 0, {
|
|
2786
|
+
disabled: r,
|
|
2787
|
+
readOnly: a,
|
|
2788
|
+
required: i && s === "native",
|
|
2789
|
+
"aria-required": i && s === "aria" || void 0,
|
|
2790
|
+
"aria-invalid": f || void 0,
|
|
2791
|
+
"aria-errormessage": e["aria-errormessage"],
|
|
2792
|
+
"aria-activedescendant": e["aria-activedescendant"],
|
|
2793
|
+
"aria-autocomplete": e["aria-autocomplete"],
|
|
2794
|
+
"aria-haspopup": e["aria-haspopup"],
|
|
2795
|
+
"aria-controls": e["aria-controls"],
|
|
2796
|
+
value: c,
|
|
2797
|
+
onChange: (e) => l(Y(e).value),
|
|
2798
|
+
autoComplete: e.autoComplete,
|
|
2799
|
+
autoCapitalize: e.autoCapitalize,
|
|
2800
|
+
maxLength: e.maxLength,
|
|
2801
|
+
minLength: e.minLength,
|
|
2802
|
+
name: e.name,
|
|
2803
|
+
form: e.form,
|
|
2804
|
+
placeholder: e.placeholder,
|
|
2805
|
+
inputMode: e.inputMode,
|
|
2806
|
+
autoCorrect: e.autoCorrect,
|
|
2807
|
+
spellCheck: e.spellCheck,
|
|
2808
|
+
enterKeyHint: e.enterKeyHint,
|
|
2809
|
+
onCopy: e.onCopy,
|
|
2810
|
+
onCut: e.onCut,
|
|
2811
|
+
onPaste: e.onPaste,
|
|
2812
|
+
onCompositionEnd: e.onCompositionEnd,
|
|
2813
|
+
onCompositionStart: e.onCompositionStart,
|
|
2814
|
+
onCompositionUpdate: e.onCompositionUpdate,
|
|
2815
|
+
onSelect: e.onSelect,
|
|
2816
|
+
onBeforeInput: e.onBeforeInput,
|
|
2817
|
+
onInput: e.onInput,
|
|
2818
|
+
...u,
|
|
2819
|
+
...g
|
|
2820
|
+
}),
|
|
2821
|
+
descriptionProps: _,
|
|
2822
|
+
errorMessageProps: v,
|
|
2823
|
+
isInvalid: f,
|
|
2824
|
+
validationErrors: p,
|
|
2825
|
+
validationDetails: m
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
//#endregion
|
|
2829
|
+
//#region ../node_modules/.pnpm/@react-aria+textfield@3.18.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/textfield/dist/useFormattedTextField.mjs
|
|
2830
|
+
function qo() {
|
|
2831
|
+
return typeof window < "u" && window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function";
|
|
2832
|
+
}
|
|
2833
|
+
function Jo(e, t, n) {
|
|
2834
|
+
let r = Z((e) => {
|
|
2835
|
+
let r = n.current;
|
|
2836
|
+
if (!r) return;
|
|
2837
|
+
let i = null;
|
|
2838
|
+
switch (e.inputType) {
|
|
2839
|
+
case "historyUndo":
|
|
2840
|
+
case "historyRedo": return;
|
|
2841
|
+
case "insertLineBreak": return;
|
|
2842
|
+
case "deleteContent":
|
|
2843
|
+
case "deleteByCut":
|
|
2844
|
+
case "deleteByDrag":
|
|
2845
|
+
i = r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
2846
|
+
break;
|
|
2847
|
+
case "deleteContentForward":
|
|
2848
|
+
i = r.selectionEnd === r.selectionStart ? r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd + 1) : r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
2849
|
+
break;
|
|
2850
|
+
case "deleteContentBackward":
|
|
2851
|
+
i = r.selectionEnd === r.selectionStart ? r.value.slice(0, r.selectionStart - 1) + r.value.slice(r.selectionStart) : r.value.slice(0, r.selectionStart) + r.value.slice(r.selectionEnd);
|
|
2852
|
+
break;
|
|
2853
|
+
case "deleteSoftLineBackward":
|
|
2854
|
+
case "deleteHardLineBackward":
|
|
2855
|
+
i = r.value.slice(r.selectionStart);
|
|
2856
|
+
break;
|
|
2857
|
+
default: e.data != null && (i = r.value.slice(0, r.selectionStart) + e.data + r.value.slice(r.selectionEnd));
|
|
2858
|
+
}
|
|
2859
|
+
(i == null || !t.validate(i)) && e.preventDefault();
|
|
2860
|
+
});
|
|
2861
|
+
(0, z.useEffect)(() => {
|
|
2862
|
+
if (!qo() || !n.current) return;
|
|
2863
|
+
let e = n.current;
|
|
2864
|
+
return e.addEventListener("beforeinput", r, !1), () => {
|
|
2865
|
+
e.removeEventListener("beforeinput", r, !1);
|
|
2866
|
+
};
|
|
2867
|
+
}, [n]);
|
|
2868
|
+
let i = qo() ? null : (e) => {
|
|
2869
|
+
let n = Y(e).value.slice(0, Y(e).selectionStart) + e.data + Y(e).value.slice(Y(e).selectionEnd);
|
|
2870
|
+
t.validate(n) || e.preventDefault();
|
|
2871
|
+
}, { labelProps: a, inputProps: o, descriptionProps: s, errorMessageProps: c, ...l } = Ko(e, n), u = (0, z.useRef)(null);
|
|
2872
|
+
return {
|
|
2873
|
+
inputProps: X(o, {
|
|
2874
|
+
onBeforeInput: i,
|
|
2875
|
+
onCompositionStart() {
|
|
2876
|
+
let { value: e, selectionStart: t, selectionEnd: r } = n.current;
|
|
2877
|
+
u.current = {
|
|
2878
|
+
value: e,
|
|
2879
|
+
selectionStart: t,
|
|
2880
|
+
selectionEnd: r
|
|
2881
|
+
};
|
|
2882
|
+
},
|
|
2883
|
+
onCompositionEnd() {
|
|
2884
|
+
if (n.current && !t.validate(n.current.value)) {
|
|
2885
|
+
let { value: e, selectionStart: r, selectionEnd: i } = u.current;
|
|
2886
|
+
n.current.value = e, n.current.setSelectionRange(r, i), t.setInputValue(e);
|
|
2887
|
+
}
|
|
2888
|
+
}
|
|
2889
|
+
}),
|
|
2890
|
+
labelProps: a,
|
|
2891
|
+
descriptionProps: s,
|
|
2892
|
+
errorMessageProps: c,
|
|
2893
|
+
...l
|
|
2894
|
+
};
|
|
2895
|
+
}
|
|
2896
|
+
//#endregion
|
|
2897
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/ar-AE.mjs
|
|
2898
|
+
var Yo = {};
|
|
2899
|
+
Yo = { Empty: "فارغ" };
|
|
2900
|
+
//#endregion
|
|
2901
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/bg-BG.mjs
|
|
2902
|
+
var Xo = {};
|
|
2903
|
+
Xo = { Empty: "Изпразни" };
|
|
2904
|
+
//#endregion
|
|
2905
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/cs-CZ.mjs
|
|
2906
|
+
var Zo = {};
|
|
2907
|
+
Zo = { Empty: "Prázdné" };
|
|
2908
|
+
//#endregion
|
|
2909
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/da-DK.mjs
|
|
2910
|
+
var Qo = {};
|
|
2911
|
+
Qo = { Empty: "Tom" };
|
|
2912
|
+
//#endregion
|
|
2913
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/de-DE.mjs
|
|
2914
|
+
var $o = {};
|
|
2915
|
+
$o = { Empty: "Leer" };
|
|
2916
|
+
//#endregion
|
|
2917
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/el-GR.mjs
|
|
2918
|
+
var es = {};
|
|
2919
|
+
es = { Empty: "Άδειο" };
|
|
2920
|
+
//#endregion
|
|
2921
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/en-US.mjs
|
|
2922
|
+
var ts = {};
|
|
2923
|
+
ts = { Empty: "Empty" };
|
|
2924
|
+
//#endregion
|
|
2925
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/es-ES.mjs
|
|
2926
|
+
var ns = {};
|
|
2927
|
+
ns = { Empty: "Vacío" };
|
|
2928
|
+
//#endregion
|
|
2929
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/et-EE.mjs
|
|
2930
|
+
var rs = {};
|
|
2931
|
+
rs = { Empty: "Tühjenda" };
|
|
2932
|
+
//#endregion
|
|
2933
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/fi-FI.mjs
|
|
2934
|
+
var is = {};
|
|
2935
|
+
is = { Empty: "Tyhjä" };
|
|
2936
|
+
//#endregion
|
|
2937
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/fr-FR.mjs
|
|
2938
|
+
var as = {};
|
|
2939
|
+
as = { Empty: "Vide" };
|
|
2940
|
+
//#endregion
|
|
2941
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/he-IL.mjs
|
|
2942
|
+
var os = {};
|
|
2943
|
+
os = { Empty: "ריק" };
|
|
2944
|
+
//#endregion
|
|
2945
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/hr-HR.mjs
|
|
2946
|
+
var ss = {};
|
|
2947
|
+
ss = { Empty: "Prazno" };
|
|
2948
|
+
//#endregion
|
|
2949
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/hu-HU.mjs
|
|
2950
|
+
var cs = {};
|
|
2951
|
+
cs = { Empty: "Üres" };
|
|
2952
|
+
//#endregion
|
|
2953
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/it-IT.mjs
|
|
2954
|
+
var ls = {};
|
|
2955
|
+
ls = { Empty: "Vuoto" };
|
|
2956
|
+
//#endregion
|
|
2957
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/ja-JP.mjs
|
|
2958
|
+
var us = {};
|
|
2959
|
+
us = { Empty: "空" };
|
|
2960
|
+
//#endregion
|
|
2961
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/ko-KR.mjs
|
|
2962
|
+
var ds = {};
|
|
2963
|
+
ds = { Empty: "비어 있음" };
|
|
2964
|
+
//#endregion
|
|
2965
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/lt-LT.mjs
|
|
2966
|
+
var fs = {};
|
|
2967
|
+
fs = { Empty: "Tuščias" };
|
|
2968
|
+
//#endregion
|
|
2969
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/lv-LV.mjs
|
|
2970
|
+
var ps = {};
|
|
2971
|
+
ps = { Empty: "Tukšs" };
|
|
2972
|
+
//#endregion
|
|
2973
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/nb-NO.mjs
|
|
2974
|
+
var ms = {};
|
|
2975
|
+
ms = { Empty: "Tom" };
|
|
2976
|
+
//#endregion
|
|
2977
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/nl-NL.mjs
|
|
2978
|
+
var hs = {};
|
|
2979
|
+
hs = { Empty: "Leeg" };
|
|
2980
|
+
//#endregion
|
|
2981
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/pl-PL.mjs
|
|
2982
|
+
var gs = {};
|
|
2983
|
+
gs = { Empty: "Pusty" };
|
|
2984
|
+
//#endregion
|
|
2985
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/pt-BR.mjs
|
|
2986
|
+
var _s = {};
|
|
2987
|
+
_s = { Empty: "Vazio" };
|
|
2988
|
+
//#endregion
|
|
2989
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/pt-PT.mjs
|
|
2990
|
+
var vs = {};
|
|
2991
|
+
vs = { Empty: "Vazio" };
|
|
2992
|
+
//#endregion
|
|
2993
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/ro-RO.mjs
|
|
2994
|
+
var ys = {};
|
|
2995
|
+
ys = { Empty: "Gol" };
|
|
2996
|
+
//#endregion
|
|
2997
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/ru-RU.mjs
|
|
2998
|
+
var bs = {};
|
|
2999
|
+
bs = { Empty: "Не заполнено" };
|
|
3000
|
+
//#endregion
|
|
3001
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/sk-SK.mjs
|
|
3002
|
+
var xs = {};
|
|
3003
|
+
xs = { Empty: "Prázdne" };
|
|
3004
|
+
//#endregion
|
|
3005
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/sl-SI.mjs
|
|
3006
|
+
var Ss = {};
|
|
3007
|
+
Ss = { Empty: "Prazen" };
|
|
3008
|
+
//#endregion
|
|
3009
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/sr-SP.mjs
|
|
3010
|
+
var Cs = {};
|
|
3011
|
+
Cs = { Empty: "Prazno" };
|
|
3012
|
+
//#endregion
|
|
3013
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/sv-SE.mjs
|
|
3014
|
+
var ws = {};
|
|
3015
|
+
ws = { Empty: "Tomt" };
|
|
3016
|
+
//#endregion
|
|
3017
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/tr-TR.mjs
|
|
3018
|
+
var Ts = {};
|
|
3019
|
+
Ts = { Empty: "Boş" };
|
|
3020
|
+
//#endregion
|
|
3021
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/uk-UA.mjs
|
|
3022
|
+
var Es = {};
|
|
3023
|
+
Es = { Empty: "Пусто" };
|
|
3024
|
+
//#endregion
|
|
3025
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/zh-CN.mjs
|
|
3026
|
+
var Ds = {};
|
|
3027
|
+
Ds = { Empty: "空" };
|
|
3028
|
+
//#endregion
|
|
3029
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/zh-TW.mjs
|
|
3030
|
+
var Os = {};
|
|
3031
|
+
Os = { Empty: "空白" };
|
|
3032
|
+
//#endregion
|
|
3033
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/intlStrings.mjs
|
|
3034
|
+
var ks = {};
|
|
3035
|
+
ks = {
|
|
3036
|
+
"ar-AE": Yo,
|
|
3037
|
+
"bg-BG": Xo,
|
|
3038
|
+
"cs-CZ": Zo,
|
|
3039
|
+
"da-DK": Qo,
|
|
3040
|
+
"de-DE": $o,
|
|
3041
|
+
"el-GR": es,
|
|
3042
|
+
"en-US": ts,
|
|
3043
|
+
"es-ES": ns,
|
|
3044
|
+
"et-EE": rs,
|
|
3045
|
+
"fi-FI": is,
|
|
3046
|
+
"fr-FR": as,
|
|
3047
|
+
"he-IL": os,
|
|
3048
|
+
"hr-HR": ss,
|
|
3049
|
+
"hu-HU": cs,
|
|
3050
|
+
"it-IT": ls,
|
|
3051
|
+
"ja-JP": us,
|
|
3052
|
+
"ko-KR": ds,
|
|
3053
|
+
"lt-LT": fs,
|
|
3054
|
+
"lv-LV": ps,
|
|
3055
|
+
"nb-NO": ms,
|
|
3056
|
+
"nl-NL": hs,
|
|
3057
|
+
"pl-PL": gs,
|
|
3058
|
+
"pt-BR": _s,
|
|
3059
|
+
"pt-PT": vs,
|
|
3060
|
+
"ro-RO": ys,
|
|
3061
|
+
"ru-RU": bs,
|
|
3062
|
+
"sk-SK": xs,
|
|
3063
|
+
"sl-SI": Ss,
|
|
3064
|
+
"sr-SP": Cs,
|
|
3065
|
+
"sv-SE": ws,
|
|
3066
|
+
"tr-TR": Ts,
|
|
3067
|
+
"uk-UA": Es,
|
|
3068
|
+
"zh-CN": Ds,
|
|
3069
|
+
"zh-TW": Os
|
|
3070
|
+
};
|
|
3071
|
+
//#endregion
|
|
3072
|
+
//#region ../node_modules/.pnpm/@react-aria+spinbutton@3.7.2_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/spinbutton/dist/useSpinButton.mjs
|
|
3073
|
+
function As(e) {
|
|
3074
|
+
return e && e.__esModule ? e.default : e;
|
|
3075
|
+
}
|
|
3076
|
+
var js = () => {};
|
|
3077
|
+
function Ms(e) {
|
|
3078
|
+
let t = (0, z.useRef)(void 0), { value: n, textValue: r, minValue: i, maxValue: a, isDisabled: o, isReadOnly: s, isRequired: c, onIncrement: l, onIncrementPage: u, onDecrement: d, onDecrementPage: f, onDecrementToMin: p, onIncrementToMax: m } = e, h = ao(As(ks), "@react-aria/spinbutton"), g = (0, z.useRef)(!1), _ = (0, z.useCallback)(() => {
|
|
3079
|
+
clearTimeout(t.current), g.current = !1;
|
|
3080
|
+
}, []), v = Z(() => {
|
|
3081
|
+
_();
|
|
3082
|
+
});
|
|
3083
|
+
(0, z.useEffect)(() => () => v(), []);
|
|
3084
|
+
let y = (e) => {
|
|
3085
|
+
if (!(e.ctrlKey || e.metaKey || e.shiftKey || e.altKey || s || e.nativeEvent.isComposing)) switch (e.key) {
|
|
3086
|
+
case "PageUp": if (u) {
|
|
3087
|
+
e.preventDefault(), u?.();
|
|
3088
|
+
break;
|
|
3089
|
+
}
|
|
3090
|
+
case "ArrowUp":
|
|
3091
|
+
case "Up":
|
|
3092
|
+
l && (e.preventDefault(), l?.());
|
|
3093
|
+
break;
|
|
3094
|
+
case "PageDown": if (f) {
|
|
3095
|
+
e.preventDefault(), f?.();
|
|
3096
|
+
break;
|
|
3097
|
+
}
|
|
3098
|
+
case "ArrowDown":
|
|
3099
|
+
case "Down":
|
|
3100
|
+
d && (e.preventDefault(), d?.());
|
|
3101
|
+
break;
|
|
3102
|
+
case "Home":
|
|
3103
|
+
p && (e.preventDefault(), p?.());
|
|
3104
|
+
break;
|
|
3105
|
+
case "End": m && (e.preventDefault(), m?.());
|
|
3106
|
+
}
|
|
3107
|
+
}, b = (0, z.useRef)(!1), x = () => {
|
|
3108
|
+
b.current = !0;
|
|
3109
|
+
}, S = () => {
|
|
3110
|
+
b.current = !1;
|
|
3111
|
+
}, C = r === "" ? h.format("Empty") : (r || `${n}`).replace("-", "−");
|
|
3112
|
+
(0, z.useEffect)(() => {
|
|
3113
|
+
b.current && (wo("assertive"), Co(C, "assertive"));
|
|
3114
|
+
}, [C]);
|
|
3115
|
+
let w = (0, z.useCallback)(() => {
|
|
3116
|
+
_();
|
|
3117
|
+
}, [_]), T = Z(l ?? js), E = Z(d ?? js), D = Z(() => {
|
|
3118
|
+
(a === void 0 || isNaN(a) || n === void 0 || isNaN(n) || n < a) && (T(), O(60));
|
|
3119
|
+
}), O = Z((e) => {
|
|
3120
|
+
v(), g.current = !0, t.current = window.setTimeout(D, e);
|
|
3121
|
+
}), k = Z(() => {
|
|
3122
|
+
(i === void 0 || isNaN(i) || n === void 0 || isNaN(n) || n > i) && (E(), A(60));
|
|
3123
|
+
}), A = Z((e) => {
|
|
3124
|
+
v(), g.current = !0, t.current = window.setTimeout(k, e);
|
|
3125
|
+
}), j = (e) => {
|
|
3126
|
+
e.preventDefault();
|
|
3127
|
+
}, { addGlobalListener: M, removeAllGlobalListeners: N } = ci(), P = (0, z.useRef)(!1), [F, I] = (0, z.useState)(null);
|
|
3128
|
+
(0, z.useEffect)(() => {
|
|
3129
|
+
F === "touch" ? O(600) : F && O(400);
|
|
3130
|
+
}, [F]);
|
|
3131
|
+
let [L, ee] = (0, z.useState)(null);
|
|
3132
|
+
return (0, z.useEffect)(() => {
|
|
3133
|
+
L === "touch" ? A(600) : L && A(400);
|
|
3134
|
+
}, [L]), {
|
|
3135
|
+
spinButtonProps: {
|
|
3136
|
+
role: "spinbutton",
|
|
3137
|
+
"aria-valuenow": n !== void 0 && !isNaN(n) ? n : void 0,
|
|
3138
|
+
"aria-valuetext": C,
|
|
3139
|
+
"aria-valuemin": i,
|
|
3140
|
+
"aria-valuemax": a,
|
|
3141
|
+
"aria-disabled": o || void 0,
|
|
3142
|
+
"aria-readonly": s || void 0,
|
|
3143
|
+
"aria-required": c || void 0,
|
|
3144
|
+
onKeyDown: y,
|
|
3145
|
+
onFocus: x,
|
|
3146
|
+
onBlur: S
|
|
3147
|
+
},
|
|
3148
|
+
incrementButtonProps: {
|
|
3149
|
+
onPressStart: (e) => {
|
|
3150
|
+
_(), e.pointerType === "touch" ? (M(window, "pointercancel", w, { capture: !0 }), P.current = !1, I("touch")) : (l?.(), I("mouse")), M(window, "contextmenu", j);
|
|
3151
|
+
},
|
|
3152
|
+
onPressUp: (e) => {
|
|
3153
|
+
_(), e.pointerType === "touch" && (P.current = !0), N(), I(null);
|
|
3154
|
+
},
|
|
3155
|
+
onPressEnd: (e) => {
|
|
3156
|
+
_(), e.pointerType === "touch" && !g.current && P.current && l?.(), P.current = !1, I(null);
|
|
3157
|
+
},
|
|
3158
|
+
onFocus: x,
|
|
3159
|
+
onBlur: S
|
|
3160
|
+
},
|
|
3161
|
+
decrementButtonProps: {
|
|
3162
|
+
onPressStart: (e) => {
|
|
3163
|
+
_(), e.pointerType === "touch" ? (M(window, "pointercancel", w, { capture: !0 }), P.current = !1, ee("touch")) : (d?.(), ee("mouse"));
|
|
3164
|
+
},
|
|
3165
|
+
onPressUp: (e) => {
|
|
3166
|
+
_(), e.pointerType === "touch" && (P.current = !0), N(), ee(null);
|
|
3167
|
+
},
|
|
3168
|
+
onPressEnd: (e) => {
|
|
3169
|
+
_(), e.pointerType === "touch" && !g.current && P.current && d?.(), P.current = !1, ee(null);
|
|
3170
|
+
},
|
|
3171
|
+
onFocus: x,
|
|
3172
|
+
onBlur: S
|
|
3173
|
+
}
|
|
3174
|
+
};
|
|
3175
|
+
}
|
|
3176
|
+
//#endregion
|
|
3177
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/ar-AE.mjs
|
|
3178
|
+
var Ns = {};
|
|
3179
|
+
Ns = {
|
|
3180
|
+
decrease: (e) => `\u{62E}\u{641}\u{636} ${e.fieldLabel}`,
|
|
3181
|
+
increase: (e) => `\u{632}\u{64A}\u{627}\u{62F}\u{629} ${e.fieldLabel}`,
|
|
3182
|
+
numberField: "حقل رقمي"
|
|
3183
|
+
};
|
|
3184
|
+
//#endregion
|
|
3185
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/bg-BG.mjs
|
|
3186
|
+
var Ps = {};
|
|
3187
|
+
Ps = {
|
|
3188
|
+
decrease: (e) => `\u{41D}\u{430}\u{43C}\u{430}\u{43B}\u{44F}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,
|
|
3189
|
+
increase: (e) => `\u{423}\u{441}\u{438}\u{43B}\u{432}\u{430}\u{43D}\u{435} ${e.fieldLabel}`,
|
|
3190
|
+
numberField: "Номер на полето"
|
|
3191
|
+
};
|
|
3192
|
+
//#endregion
|
|
3193
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/cs-CZ.mjs
|
|
3194
|
+
var Fs = {};
|
|
3195
|
+
Fs = {
|
|
3196
|
+
decrease: (e) => `Sn\xed\u{17E}it ${e.fieldLabel}`,
|
|
3197
|
+
increase: (e) => `Zv\xfd\u{161}it ${e.fieldLabel}`,
|
|
3198
|
+
numberField: "Číselné pole"
|
|
3199
|
+
};
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/da-DK.mjs
|
|
3202
|
+
var Is = {};
|
|
3203
|
+
Is = {
|
|
3204
|
+
decrease: (e) => `Reducer ${e.fieldLabel}`,
|
|
3205
|
+
increase: (e) => `\xd8g ${e.fieldLabel}`,
|
|
3206
|
+
numberField: "Talfelt"
|
|
3207
|
+
};
|
|
3208
|
+
//#endregion
|
|
3209
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/de-DE.mjs
|
|
3210
|
+
var Ls = {};
|
|
3211
|
+
Ls = {
|
|
3212
|
+
decrease: (e) => `${e.fieldLabel} verringern`,
|
|
3213
|
+
increase: (e) => `${e.fieldLabel} erh\xf6hen`,
|
|
3214
|
+
numberField: "Nummernfeld"
|
|
3215
|
+
};
|
|
3216
|
+
//#endregion
|
|
3217
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/el-GR.mjs
|
|
3218
|
+
var Rs = {};
|
|
3219
|
+
Rs = {
|
|
3220
|
+
decrease: (e) => `\u{39C}\u{3B5}\u{3AF}\u{3C9}\u{3C3}\u{3B7} ${e.fieldLabel}`,
|
|
3221
|
+
increase: (e) => `\u{391}\u{3CD}\u{3BE}\u{3B7}\u{3C3}\u{3B7} ${e.fieldLabel}`,
|
|
3222
|
+
numberField: "Πεδίο αριθμού"
|
|
3223
|
+
};
|
|
3224
|
+
//#endregion
|
|
3225
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/en-US.mjs
|
|
3226
|
+
var zs = {};
|
|
3227
|
+
zs = {
|
|
3228
|
+
decrease: (e) => `Decrease ${e.fieldLabel}`,
|
|
3229
|
+
increase: (e) => `Increase ${e.fieldLabel}`,
|
|
3230
|
+
numberField: "Number field"
|
|
3231
|
+
};
|
|
3232
|
+
//#endregion
|
|
3233
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/es-ES.mjs
|
|
3234
|
+
var Bs = {};
|
|
3235
|
+
Bs = {
|
|
3236
|
+
decrease: (e) => `Reducir ${e.fieldLabel}`,
|
|
3237
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
3238
|
+
numberField: "Campo de número"
|
|
3239
|
+
};
|
|
3240
|
+
//#endregion
|
|
3241
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/et-EE.mjs
|
|
3242
|
+
var Vs = {};
|
|
3243
|
+
Vs = {
|
|
3244
|
+
decrease: (e) => `V\xe4henda ${e.fieldLabel}`,
|
|
3245
|
+
increase: (e) => `Suurenda ${e.fieldLabel}`,
|
|
3246
|
+
numberField: "Numbri väli"
|
|
3247
|
+
};
|
|
3248
|
+
//#endregion
|
|
3249
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/fi-FI.mjs
|
|
3250
|
+
var Hs = {};
|
|
3251
|
+
Hs = {
|
|
3252
|
+
decrease: (e) => `V\xe4henn\xe4 ${e.fieldLabel}`,
|
|
3253
|
+
increase: (e) => `Lis\xe4\xe4 ${e.fieldLabel}`,
|
|
3254
|
+
numberField: "Numerokenttä"
|
|
3255
|
+
};
|
|
3256
|
+
//#endregion
|
|
3257
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/fr-FR.mjs
|
|
3258
|
+
var Us = {};
|
|
3259
|
+
Us = {
|
|
3260
|
+
decrease: (e) => `Diminuer ${e.fieldLabel}`,
|
|
3261
|
+
increase: (e) => `Augmenter ${e.fieldLabel}`,
|
|
3262
|
+
numberField: "Champ de nombre"
|
|
3263
|
+
};
|
|
3264
|
+
//#endregion
|
|
3265
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/he-IL.mjs
|
|
3266
|
+
var Ws = {};
|
|
3267
|
+
Ws = {
|
|
3268
|
+
decrease: (e) => `\u{5D4}\u{5E7}\u{5D8}\u{5DF} ${e.fieldLabel}`,
|
|
3269
|
+
increase: (e) => `\u{5D4}\u{5D2}\u{5D3}\u{5DC} ${e.fieldLabel}`,
|
|
3270
|
+
numberField: "שדה מספר"
|
|
3271
|
+
};
|
|
3272
|
+
//#endregion
|
|
3273
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/hr-HR.mjs
|
|
3274
|
+
var Gs = {};
|
|
3275
|
+
Gs = {
|
|
3276
|
+
decrease: (e) => `Smanji ${e.fieldLabel}`,
|
|
3277
|
+
increase: (e) => `Pove\u{107}aj ${e.fieldLabel}`,
|
|
3278
|
+
numberField: "Polje broja"
|
|
3279
|
+
};
|
|
3280
|
+
//#endregion
|
|
3281
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/hu-HU.mjs
|
|
3282
|
+
var Ks = {};
|
|
3283
|
+
Ks = {
|
|
3284
|
+
decrease: (e) => `${e.fieldLabel} cs\xf6kkent\xe9se`,
|
|
3285
|
+
increase: (e) => `${e.fieldLabel} n\xf6vel\xe9se`,
|
|
3286
|
+
numberField: "Számmező"
|
|
3287
|
+
};
|
|
3288
|
+
//#endregion
|
|
3289
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/it-IT.mjs
|
|
3290
|
+
var qs = {};
|
|
3291
|
+
qs = {
|
|
3292
|
+
decrease: (e) => `Riduci ${e.fieldLabel}`,
|
|
3293
|
+
increase: (e) => `Aumenta ${e.fieldLabel}`,
|
|
3294
|
+
numberField: "Campo numero"
|
|
3295
|
+
};
|
|
3296
|
+
//#endregion
|
|
3297
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/ja-JP.mjs
|
|
3298
|
+
var Js = {};
|
|
3299
|
+
Js = {
|
|
3300
|
+
decrease: (e) => `${e.fieldLabel}\u{3092}\u{7E2E}\u{5C0F}`,
|
|
3301
|
+
increase: (e) => `${e.fieldLabel}\u{3092}\u{62E1}\u{5927}`,
|
|
3302
|
+
numberField: "数値フィールド"
|
|
3303
|
+
};
|
|
3304
|
+
//#endregion
|
|
3305
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/ko-KR.mjs
|
|
3306
|
+
var Ys = {};
|
|
3307
|
+
Ys = {
|
|
3308
|
+
decrease: (e) => `${e.fieldLabel} \u{AC10}\u{C18C}`,
|
|
3309
|
+
increase: (e) => `${e.fieldLabel} \u{C99D}\u{AC00}`,
|
|
3310
|
+
numberField: "번호 필드"
|
|
3311
|
+
};
|
|
3312
|
+
//#endregion
|
|
3313
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/lt-LT.mjs
|
|
3314
|
+
var Xs = {};
|
|
3315
|
+
Xs = {
|
|
3316
|
+
decrease: (e) => `Suma\u{17E}inti ${e.fieldLabel}`,
|
|
3317
|
+
increase: (e) => `Padidinti ${e.fieldLabel}`,
|
|
3318
|
+
numberField: "Numerio laukas"
|
|
3319
|
+
};
|
|
3320
|
+
//#endregion
|
|
3321
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/lv-LV.mjs
|
|
3322
|
+
var Zs = {};
|
|
3323
|
+
Zs = {
|
|
3324
|
+
decrease: (e) => `Samazin\u{101}\u{161}ana ${e.fieldLabel}`,
|
|
3325
|
+
increase: (e) => `Palielin\u{101}\u{161}ana ${e.fieldLabel}`,
|
|
3326
|
+
numberField: "Skaitļu lauks"
|
|
3327
|
+
};
|
|
3328
|
+
//#endregion
|
|
3329
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/nb-NO.mjs
|
|
3330
|
+
var Qs = {};
|
|
3331
|
+
Qs = {
|
|
3332
|
+
decrease: (e) => `Reduser ${e.fieldLabel}`,
|
|
3333
|
+
increase: (e) => `\xd8k ${e.fieldLabel}`,
|
|
3334
|
+
numberField: "Tallfelt"
|
|
3335
|
+
};
|
|
3336
|
+
//#endregion
|
|
3337
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/nl-NL.mjs
|
|
3338
|
+
var $s = {};
|
|
3339
|
+
$s = {
|
|
3340
|
+
decrease: (e) => `${e.fieldLabel} verlagen`,
|
|
3341
|
+
increase: (e) => `${e.fieldLabel} verhogen`,
|
|
3342
|
+
numberField: "Getalveld"
|
|
3343
|
+
};
|
|
3344
|
+
//#endregion
|
|
3345
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/pl-PL.mjs
|
|
3346
|
+
var ec = {};
|
|
3347
|
+
ec = {
|
|
3348
|
+
decrease: (e) => `Zmniejsz ${e.fieldLabel}`,
|
|
3349
|
+
increase: (e) => `Zwi\u{119}ksz ${e.fieldLabel}`,
|
|
3350
|
+
numberField: "Pole numeru"
|
|
3351
|
+
};
|
|
3352
|
+
//#endregion
|
|
3353
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/pt-BR.mjs
|
|
3354
|
+
var tc = {};
|
|
3355
|
+
tc = {
|
|
3356
|
+
decrease: (e) => `Diminuir ${e.fieldLabel}`,
|
|
3357
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
3358
|
+
numberField: "Campo de número"
|
|
3359
|
+
};
|
|
3360
|
+
//#endregion
|
|
3361
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/pt-PT.mjs
|
|
3362
|
+
var nc = {};
|
|
3363
|
+
nc = {
|
|
3364
|
+
decrease: (e) => `Diminuir ${e.fieldLabel}`,
|
|
3365
|
+
increase: (e) => `Aumentar ${e.fieldLabel}`,
|
|
3366
|
+
numberField: "Campo numérico"
|
|
3367
|
+
};
|
|
3368
|
+
//#endregion
|
|
3369
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/ro-RO.mjs
|
|
3370
|
+
var rc = {};
|
|
3371
|
+
rc = {
|
|
3372
|
+
decrease: (e) => `Sc\u{103}dere ${e.fieldLabel}`,
|
|
3373
|
+
increase: (e) => `Cre\u{219}tere ${e.fieldLabel}`,
|
|
3374
|
+
numberField: "Câmp numeric"
|
|
3375
|
+
};
|
|
3376
|
+
//#endregion
|
|
3377
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/ru-RU.mjs
|
|
3378
|
+
var ic = {};
|
|
3379
|
+
ic = {
|
|
3380
|
+
decrease: (e) => `\u{423}\u{43C}\u{435}\u{43D}\u{44C}\u{448}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,
|
|
3381
|
+
increase: (e) => `\u{423}\u{432}\u{435}\u{43B}\u{438}\u{447}\u{435}\u{43D}\u{438}\u{435} ${e.fieldLabel}`,
|
|
3382
|
+
numberField: "Числовое поле"
|
|
3383
|
+
};
|
|
3384
|
+
//#endregion
|
|
3385
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/sk-SK.mjs
|
|
3386
|
+
var ac = {};
|
|
3387
|
+
ac = {
|
|
3388
|
+
decrease: (e) => `Zn\xed\u{17E}i\u{165} ${e.fieldLabel}`,
|
|
3389
|
+
increase: (e) => `Zv\xfd\u{161}i\u{165} ${e.fieldLabel}`,
|
|
3390
|
+
numberField: "Číselné pole"
|
|
3391
|
+
};
|
|
3392
|
+
//#endregion
|
|
3393
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/sl-SI.mjs
|
|
3394
|
+
var oc = {};
|
|
3395
|
+
oc = {
|
|
3396
|
+
decrease: (e) => `Upadati ${e.fieldLabel}`,
|
|
3397
|
+
increase: (e) => `Pove\u{10D}ajte ${e.fieldLabel}`,
|
|
3398
|
+
numberField: "Številčno polje"
|
|
3399
|
+
};
|
|
3400
|
+
//#endregion
|
|
3401
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/sr-SP.mjs
|
|
3402
|
+
var sc = {};
|
|
3403
|
+
sc = {
|
|
3404
|
+
decrease: (e) => `Smanji ${e.fieldLabel}`,
|
|
3405
|
+
increase: (e) => `Pove\u{107}aj ${e.fieldLabel}`,
|
|
3406
|
+
numberField: "Polje broja"
|
|
3407
|
+
};
|
|
3408
|
+
//#endregion
|
|
3409
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/sv-SE.mjs
|
|
3410
|
+
var cc = {};
|
|
3411
|
+
cc = {
|
|
3412
|
+
decrease: (e) => `Minska ${e.fieldLabel}`,
|
|
3413
|
+
increase: (e) => `\xd6ka ${e.fieldLabel}`,
|
|
3414
|
+
numberField: "Nummerfält"
|
|
3415
|
+
};
|
|
3416
|
+
//#endregion
|
|
3417
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/tr-TR.mjs
|
|
3418
|
+
var lc = {};
|
|
3419
|
+
lc = {
|
|
3420
|
+
decrease: (e) => `${e.fieldLabel} azalt`,
|
|
3421
|
+
increase: (e) => `${e.fieldLabel} artt\u{131}r`,
|
|
3422
|
+
numberField: "Sayı alanı"
|
|
3423
|
+
};
|
|
3424
|
+
//#endregion
|
|
3425
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/uk-UA.mjs
|
|
3426
|
+
var uc = {};
|
|
3427
|
+
uc = {
|
|
3428
|
+
decrease: (e) => `\u{417}\u{43C}\u{435}\u{43D}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,
|
|
3429
|
+
increase: (e) => `\u{417}\u{431}\u{456}\u{43B}\u{44C}\u{448}\u{438}\u{442}\u{438} ${e.fieldLabel}`,
|
|
3430
|
+
numberField: "Поле номера"
|
|
3431
|
+
};
|
|
3432
|
+
//#endregion
|
|
3433
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/zh-CN.mjs
|
|
3434
|
+
var dc = {};
|
|
3435
|
+
dc = {
|
|
3436
|
+
decrease: (e) => `\u{964D}\u{4F4E} ${e.fieldLabel}`,
|
|
3437
|
+
increase: (e) => `\u{63D0}\u{9AD8} ${e.fieldLabel}`,
|
|
3438
|
+
numberField: "数字字段"
|
|
3439
|
+
};
|
|
3440
|
+
//#endregion
|
|
3441
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/zh-TW.mjs
|
|
3442
|
+
var fc = {};
|
|
3443
|
+
fc = {
|
|
3444
|
+
decrease: (e) => `\u{7E2E}\u{5C0F} ${e.fieldLabel}`,
|
|
3445
|
+
increase: (e) => `\u{653E}\u{5927} ${e.fieldLabel}`,
|
|
3446
|
+
numberField: "數字欄位"
|
|
3447
|
+
};
|
|
3448
|
+
//#endregion
|
|
3449
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/intlStrings.mjs
|
|
3450
|
+
var pc = {};
|
|
3451
|
+
pc = {
|
|
3452
|
+
"ar-AE": Ns,
|
|
3453
|
+
"bg-BG": Ps,
|
|
3454
|
+
"cs-CZ": Fs,
|
|
3455
|
+
"da-DK": Is,
|
|
3456
|
+
"de-DE": Ls,
|
|
3457
|
+
"el-GR": Rs,
|
|
3458
|
+
"en-US": zs,
|
|
3459
|
+
"es-ES": Bs,
|
|
3460
|
+
"et-EE": Vs,
|
|
3461
|
+
"fi-FI": Hs,
|
|
3462
|
+
"fr-FR": Us,
|
|
3463
|
+
"he-IL": Ws,
|
|
3464
|
+
"hr-HR": Gs,
|
|
3465
|
+
"hu-HU": Ks,
|
|
3466
|
+
"it-IT": qs,
|
|
3467
|
+
"ja-JP": Js,
|
|
3468
|
+
"ko-KR": Ys,
|
|
3469
|
+
"lt-LT": Xs,
|
|
3470
|
+
"lv-LV": Zs,
|
|
3471
|
+
"nb-NO": Qs,
|
|
3472
|
+
"nl-NL": $s,
|
|
3473
|
+
"pl-PL": ec,
|
|
3474
|
+
"pt-BR": tc,
|
|
3475
|
+
"pt-PT": nc,
|
|
3476
|
+
"ro-RO": rc,
|
|
3477
|
+
"ru-RU": ic,
|
|
3478
|
+
"sk-SK": ac,
|
|
3479
|
+
"sl-SI": oc,
|
|
3480
|
+
"sr-SP": sc,
|
|
3481
|
+
"sv-SE": cc,
|
|
3482
|
+
"tr-TR": lc,
|
|
3483
|
+
"uk-UA": uc,
|
|
3484
|
+
"zh-CN": dc,
|
|
3485
|
+
"zh-TW": fc
|
|
3486
|
+
};
|
|
3487
|
+
//#endregion
|
|
3488
|
+
//#region ../node_modules/.pnpm/@react-aria+numberfield@3.12.5_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/numberfield/dist/useNumberField.mjs
|
|
3489
|
+
function mc(e) {
|
|
3490
|
+
return e && e.__esModule ? e.default : e;
|
|
3491
|
+
}
|
|
3492
|
+
function hc(e, t, n) {
|
|
3493
|
+
let { id: r, decrementAriaLabel: i, incrementAriaLabel: a, isDisabled: o, isReadOnly: s, isRequired: c, minValue: l, maxValue: u, autoFocus: d, label: f, formatOptions: p, onBlur: m = () => {}, onFocus: h, onFocusChange: g, onKeyDown: _, onKeyUp: v, description: y, errorMessage: b, isWheelDisabled: x, ...S } = e, { increment: C, incrementToMax: w, decrement: T, decrementToMin: E, numberValue: D, inputValue: O, commit: k, commitValidation: A } = t, j = ao(mc(pc), "@react-aria/numberfield"), M = (0, z.useCallback)(() => {
|
|
3494
|
+
let e = n.current?.value ?? "";
|
|
3495
|
+
(0, Yi.flushSync)(() => {
|
|
3496
|
+
k();
|
|
3497
|
+
}), n.current?.value !== e && Co(n.current?.value ?? "", "assertive");
|
|
3498
|
+
}, [k, n]), N = W(r), { focusProps: P } = Na({ onBlur() {
|
|
3499
|
+
M();
|
|
3500
|
+
} }), F = me(p), I = (0, z.useMemo)(() => F.resolvedOptions(), [F]), L = me({
|
|
3501
|
+
...p,
|
|
3502
|
+
currencySign: void 0
|
|
3503
|
+
}), { spinButtonProps: ee, incrementButtonProps: te, decrementButtonProps: ne } = Ms({
|
|
3504
|
+
isDisabled: o,
|
|
3505
|
+
isReadOnly: s,
|
|
3506
|
+
isRequired: c,
|
|
3507
|
+
maxValue: u,
|
|
3508
|
+
minValue: l,
|
|
3509
|
+
onIncrement: C,
|
|
3510
|
+
onIncrementToMax: w,
|
|
3511
|
+
onDecrement: T,
|
|
3512
|
+
onDecrementToMin: E,
|
|
3513
|
+
value: D,
|
|
3514
|
+
textValue: (0, z.useMemo)(() => isNaN(D) ? "" : L.format(D), [L, D])
|
|
3515
|
+
}), [re, ie] = (0, z.useState)(!1), { focusWithinProps: ae } = za({
|
|
3516
|
+
isDisabled: o,
|
|
3517
|
+
onFocusWithinChange: ie
|
|
3518
|
+
});
|
|
3519
|
+
Ka({
|
|
3520
|
+
onScroll: (0, z.useCallback)((e) => {
|
|
3521
|
+
Math.abs(e.deltaY) <= Math.abs(e.deltaX) || (e.deltaY > 0 ? C() : e.deltaY < 0 && T());
|
|
3522
|
+
}, [T, C]),
|
|
3523
|
+
isDisabled: x || o || s || !re
|
|
3524
|
+
}, n);
|
|
3525
|
+
let oe = (I.maximumFractionDigits ?? 0) > 0, se = t.minValue === void 0 || isNaN(t.minValue) || t.minValue < 0, R = "numeric";
|
|
3526
|
+
Yr() ? se ? R = "text" : oe && (R = "decimal") : ei() && (se ? R = "numeric" : oe && (R = "decimal"));
|
|
3527
|
+
let ce = (e) => {
|
|
3528
|
+
t.validate(e) && t.setInputValue(e);
|
|
3529
|
+
}, le = (t) => {
|
|
3530
|
+
var n;
|
|
3531
|
+
(n = e.onPaste) == null || n.call(e, t);
|
|
3532
|
+
let r = Y(t);
|
|
3533
|
+
if (r && (r.selectionEnd ?? -1) - (r.selectionStart ?? 0) === r.value.length) {
|
|
3534
|
+
var i, a;
|
|
3535
|
+
t.preventDefault(), k(((a = t.clipboardData) == null || (i = a.getData) == null ? void 0 : i.call(a, "text/plain")?.trim()) ?? "");
|
|
3536
|
+
}
|
|
3537
|
+
}, ue = zr(e), de = (0, z.useCallback)((e) => {
|
|
3538
|
+
e.nativeEvent.isComposing || (e.key === "Enter" ? (k(), A()) : e.continuePropagation());
|
|
3539
|
+
}, [k, A]), { isInvalid: fe, validationErrors: pe, validationDetails: he } = t.displayValidation, { labelProps: ge, inputProps: _e, descriptionProps: ve, errorMessageProps: ye } = Jo({
|
|
3540
|
+
...S,
|
|
3541
|
+
...ue,
|
|
3542
|
+
name: void 0,
|
|
3543
|
+
form: void 0,
|
|
3544
|
+
label: f,
|
|
3545
|
+
autoFocus: d,
|
|
3546
|
+
isDisabled: o,
|
|
3547
|
+
isReadOnly: s,
|
|
3548
|
+
isRequired: c,
|
|
3549
|
+
validate: void 0,
|
|
3550
|
+
[Ao]: t,
|
|
3551
|
+
value: O,
|
|
3552
|
+
defaultValue: "!",
|
|
3553
|
+
autoComplete: "off",
|
|
3554
|
+
"aria-label": e["aria-label"] || void 0,
|
|
3555
|
+
"aria-labelledby": e["aria-labelledby"] || void 0,
|
|
3556
|
+
id: N,
|
|
3557
|
+
type: "text",
|
|
3558
|
+
inputMode: R,
|
|
3559
|
+
onChange: ce,
|
|
3560
|
+
onBlur: m,
|
|
3561
|
+
onFocus: h,
|
|
3562
|
+
onFocusChange: g,
|
|
3563
|
+
onKeyDown: (0, z.useMemo)(() => Tr(de, _), [de, _]),
|
|
3564
|
+
onKeyUp: v,
|
|
3565
|
+
onPaste: le,
|
|
3566
|
+
description: y,
|
|
3567
|
+
errorMessage: b
|
|
3568
|
+
}, t, n);
|
|
3569
|
+
gi(n, t.defaultNumberValue, t.setNumberValue);
|
|
3570
|
+
let be = X(ee, P, _e, {
|
|
3571
|
+
role: null,
|
|
3572
|
+
"aria-roledescription": Zr() ? null : j.format("numberField"),
|
|
3573
|
+
"aria-valuemax": null,
|
|
3574
|
+
"aria-valuemin": null,
|
|
3575
|
+
"aria-valuenow": null,
|
|
3576
|
+
"aria-valuetext": null,
|
|
3577
|
+
autoCorrect: "off",
|
|
3578
|
+
spellCheck: "false"
|
|
3579
|
+
});
|
|
3580
|
+
e.validationBehavior === "native" && (be["aria-required"] = void 0);
|
|
3581
|
+
let B = (e) => {
|
|
3582
|
+
var t;
|
|
3583
|
+
J() !== n.current && (e.pointerType === "mouse" ? (t = n.current) == null || t.focus() : e.target.focus());
|
|
3584
|
+
}, xe = e["aria-label"] || (typeof e.label == "string" ? e.label : ""), Se;
|
|
3585
|
+
xe || (Se = e.label == null ? e["aria-labelledby"] : ge.id);
|
|
3586
|
+
let Ce = W(), we = W(), Te = X(te, {
|
|
3587
|
+
"aria-label": a || j.format("increase", { fieldLabel: xe }).trim(),
|
|
3588
|
+
id: Se && !a ? Ce : null,
|
|
3589
|
+
"aria-labelledby": Se && !a ? `${Ce} ${Se}` : null,
|
|
3590
|
+
"aria-controls": N,
|
|
3591
|
+
excludeFromTabOrder: !0,
|
|
3592
|
+
preventFocusOnPress: !0,
|
|
3593
|
+
allowFocusWhenDisabled: !0,
|
|
3594
|
+
isDisabled: !t.canIncrement,
|
|
3595
|
+
onPressStart: B
|
|
3596
|
+
}), Ee = X(ne, {
|
|
3597
|
+
"aria-label": i || j.format("decrease", { fieldLabel: xe }).trim(),
|
|
3598
|
+
id: Se && !i ? we : null,
|
|
3599
|
+
"aria-labelledby": Se && !i ? `${we} ${Se}` : null,
|
|
3600
|
+
"aria-controls": N,
|
|
3601
|
+
excludeFromTabOrder: !0,
|
|
3602
|
+
preventFocusOnPress: !0,
|
|
3603
|
+
allowFocusWhenDisabled: !0,
|
|
3604
|
+
isDisabled: !t.canDecrement,
|
|
3605
|
+
onPressStart: B
|
|
3606
|
+
});
|
|
3607
|
+
return {
|
|
3608
|
+
groupProps: {
|
|
3609
|
+
...ae,
|
|
3610
|
+
role: "group",
|
|
3611
|
+
"aria-disabled": o,
|
|
3612
|
+
"aria-invalid": fe ? "true" : void 0
|
|
3613
|
+
},
|
|
3614
|
+
labelProps: ge,
|
|
3615
|
+
inputProps: be,
|
|
3616
|
+
incrementButtonProps: Te,
|
|
3617
|
+
decrementButtonProps: Ee,
|
|
3618
|
+
errorMessageProps: ye,
|
|
3619
|
+
descriptionProps: ve,
|
|
3620
|
+
isInvalid: fe,
|
|
3621
|
+
validationErrors: pe,
|
|
3622
|
+
validationDetails: he
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
//#endregion
|
|
3626
|
+
//#region src/hooks/useDebounce.ts
|
|
3627
|
+
var $ = c();
|
|
3628
|
+
function gc(e, t) {
|
|
3629
|
+
let n = (0, $.c)(4), [r, i] = (0, z.useState)(e), a, o;
|
|
3630
|
+
return n[0] !== t || n[1] !== e ? (a = () => {
|
|
3631
|
+
let n = setTimeout(() => i(e), t);
|
|
3632
|
+
return () => {
|
|
3633
|
+
clearTimeout(n);
|
|
3634
|
+
};
|
|
3635
|
+
}, o = [e, t], n[0] = t, n[1] = e, n[2] = a, n[3] = o) : (a = n[2], o = n[3]), (0, z.useEffect)(a, o), r;
|
|
3636
|
+
}
|
|
3637
|
+
function _c(e) {
|
|
3638
|
+
let t = (0, $.c)(18), { initialValue: n, onChange: r, delay: i, disabled: a } = e, [o, s] = (0, z.useState)(n), c = gc(o, i || 200), l = ge(r), u, d;
|
|
3639
|
+
t[0] === n ? (u = t[1], d = t[2]) : (u = () => {
|
|
3640
|
+
s(n);
|
|
3641
|
+
}, d = [n], t[0] = n, t[1] = u, t[2] = d), (0, z.useEffect)(u, d);
|
|
3642
|
+
let f;
|
|
3643
|
+
t[3] !== c || t[4] !== a || t[5] !== n || t[6] !== l ? (f = () => {
|
|
3644
|
+
a || c !== n && l(c);
|
|
3645
|
+
}, t[3] = c, t[4] = a, t[5] = n, t[6] = l, t[7] = f) : f = t[7];
|
|
3646
|
+
let p;
|
|
3647
|
+
if (t[8] !== c || t[9] !== a || t[10] !== l ? (p = [
|
|
3648
|
+
c,
|
|
3649
|
+
a,
|
|
3650
|
+
l
|
|
3651
|
+
], t[8] = c, t[9] = a, t[10] = l, t[11] = p) : p = t[11], (0, z.useEffect)(f, p), a) {
|
|
3652
|
+
let e;
|
|
3653
|
+
return t[12] !== o || t[13] !== r ? (e = {
|
|
3654
|
+
value: o,
|
|
3655
|
+
debouncedValue: o,
|
|
3656
|
+
onChange: r
|
|
3657
|
+
}, t[12] = o, t[13] = r, t[14] = e) : e = t[14], e;
|
|
3658
|
+
}
|
|
3659
|
+
let m;
|
|
3660
|
+
return t[15] !== c || t[16] !== o ? (m = {
|
|
3661
|
+
value: o,
|
|
3662
|
+
debouncedValue: c,
|
|
3663
|
+
onChange: s
|
|
3664
|
+
}, t[15] = c, t[16] = o, t[17] = m) : m = t[17], m;
|
|
3665
|
+
}
|
|
3666
|
+
function vc(e, t) {
|
|
3667
|
+
let n = (0, $.c)(3), r = ge(e), i;
|
|
3668
|
+
return n[0] !== t || n[1] !== r ? (i = he(r, t), n[0] = t, n[1] = r, n[2] = i) : i = n[2], i;
|
|
3669
|
+
}
|
|
3670
|
+
//#endregion
|
|
3671
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/utils.mjs
|
|
3672
|
+
var yc = Symbol("default");
|
|
3673
|
+
function bc({ values: e, children: t }) {
|
|
3674
|
+
for (let [n, r] of e) t = /*#__PURE__*/ z.createElement(n.Provider, { value: r }, t);
|
|
3675
|
+
return t;
|
|
3676
|
+
}
|
|
3677
|
+
function xc(e) {
|
|
3678
|
+
let { className: t, style: n, children: r, defaultClassName: i, defaultChildren: a, defaultStyle: o, values: s, render: c } = e;
|
|
3679
|
+
return (0, z.useMemo)(() => {
|
|
3680
|
+
let e, l, u;
|
|
3681
|
+
return e = typeof t == "function" ? t({
|
|
3682
|
+
...s,
|
|
3683
|
+
defaultClassName: i
|
|
3684
|
+
}) : t, l = typeof n == "function" ? n({
|
|
3685
|
+
...s,
|
|
3686
|
+
defaultStyle: o || {}
|
|
3687
|
+
}) : n, u = typeof r == "function" ? r({
|
|
3688
|
+
...s,
|
|
3689
|
+
defaultChildren: a
|
|
3690
|
+
}) : r ?? a, {
|
|
3691
|
+
className: e ?? i,
|
|
3692
|
+
style: l || o ? {
|
|
3693
|
+
...o,
|
|
3694
|
+
...l
|
|
3695
|
+
} : void 0,
|
|
3696
|
+
children: u ?? a,
|
|
3697
|
+
"data-rac": "",
|
|
3698
|
+
render: c ? (e) => c(e, s) : void 0
|
|
3699
|
+
};
|
|
3700
|
+
}, [
|
|
3701
|
+
t,
|
|
3702
|
+
n,
|
|
3703
|
+
r,
|
|
3704
|
+
i,
|
|
3705
|
+
a,
|
|
3706
|
+
o,
|
|
3707
|
+
s,
|
|
3708
|
+
c
|
|
3709
|
+
]);
|
|
3710
|
+
}
|
|
3711
|
+
function Sc(e, t) {
|
|
3712
|
+
return (n) => t(typeof e == "function" ? e(n) : e, n);
|
|
3713
|
+
}
|
|
3714
|
+
function Cc(e, t) {
|
|
3715
|
+
let n = (0, z.useContext)(e);
|
|
3716
|
+
if (t === null) return null;
|
|
3717
|
+
if (n && typeof n == "object" && "slots" in n && n.slots) {
|
|
3718
|
+
let e = t || yc;
|
|
3719
|
+
if (!n.slots[e]) {
|
|
3720
|
+
let e = new Intl.ListFormat().format(Object.keys(n.slots).map((e) => `"${e}"`)), r = t ? `Invalid slot "${t}".` : "A slot prop is required.";
|
|
3721
|
+
throw Error(`${r} Valid slot names are ${e}.`);
|
|
3722
|
+
}
|
|
3723
|
+
return n.slots[e];
|
|
3724
|
+
}
|
|
3725
|
+
return n;
|
|
3726
|
+
}
|
|
3727
|
+
function wc(e, t, n) {
|
|
3728
|
+
let { ref: r, ...i } = Cc(n, e.slot) || {}, a = ui((0, z.useMemo)(() => jr(t, r), [t, r])), o = X(i, e);
|
|
3729
|
+
return "style" in i && i.style && "style" in e && e.style && (o.style = typeof i.style == "function" || typeof e.style == "function" ? (t) => {
|
|
3730
|
+
let n = typeof i.style == "function" ? i.style(t) : i.style, r = {
|
|
3731
|
+
...t.defaultStyle,
|
|
3732
|
+
...n
|
|
3733
|
+
}, a = typeof e.style == "function" ? e.style({
|
|
3734
|
+
...t,
|
|
3735
|
+
defaultStyle: r
|
|
3736
|
+
}) : e.style;
|
|
3737
|
+
return {
|
|
3738
|
+
...r,
|
|
3739
|
+
...a
|
|
3740
|
+
};
|
|
3741
|
+
} : {
|
|
3742
|
+
...i.style,
|
|
3743
|
+
...e.style
|
|
3744
|
+
}), [o, a];
|
|
3745
|
+
}
|
|
3746
|
+
function Tc(e = !0) {
|
|
3747
|
+
let [t, n] = (0, z.useState)(e), r = (0, z.useRef)(!1), i = (0, z.useCallback)((e) => {
|
|
3748
|
+
r.current = !0, n(!!e);
|
|
3749
|
+
}, []);
|
|
3750
|
+
return U(() => {
|
|
3751
|
+
r.current || n(!1);
|
|
3752
|
+
}, []), [i, t];
|
|
3753
|
+
}
|
|
3754
|
+
function Ec(e) {
|
|
3755
|
+
let t = /^(data-.*)$/, n = {};
|
|
3756
|
+
for (let r in e) t.test(r) || (n[r] = e[r]);
|
|
3757
|
+
return n;
|
|
3758
|
+
}
|
|
3759
|
+
function Dc(e, t, n) {
|
|
3760
|
+
let { render: r, ...i } = t, a = (0, z.useRef)(null), o = (0, z.useMemo)(() => jr(n, a), [n, a]);
|
|
3761
|
+
U(() => {}, [e, r]);
|
|
3762
|
+
let s = {
|
|
3763
|
+
...i,
|
|
3764
|
+
ref: o
|
|
3765
|
+
};
|
|
3766
|
+
return r ? r(s, void 0) : /*#__PURE__*/ z.createElement(e, s);
|
|
3767
|
+
}
|
|
3768
|
+
var Oc = {}, kc = new Proxy({}, { get(e, t) {
|
|
3769
|
+
if (typeof t != "string") return;
|
|
3770
|
+
let n = Oc[t];
|
|
3771
|
+
return n || (n = /*#__PURE__*/ (0, z.forwardRef)(Dc.bind(null, t)), Oc[t] = n), n;
|
|
3772
|
+
} });
|
|
3773
|
+
//#endregion
|
|
3774
|
+
//#region ../node_modules/.pnpm/@react-aria+collections@3.0.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@react-aria/collections/dist/Hidden.mjs
|
|
3775
|
+
typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.prototype, "firstChild", {
|
|
3776
|
+
configurable: !0,
|
|
3777
|
+
enumerable: !0,
|
|
3778
|
+
get: function() {
|
|
3779
|
+
return this.content.firstChild;
|
|
3780
|
+
}
|
|
3781
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "appendChild", {
|
|
3782
|
+
configurable: !0,
|
|
3783
|
+
enumerable: !0,
|
|
3784
|
+
value: function(e) {
|
|
3785
|
+
return this.content.appendChild(e);
|
|
3786
|
+
}
|
|
3787
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "removeChild", {
|
|
3788
|
+
configurable: !0,
|
|
3789
|
+
enumerable: !0,
|
|
3790
|
+
value: function(e) {
|
|
3791
|
+
return this.content.removeChild(e);
|
|
3792
|
+
}
|
|
3793
|
+
}), Object.defineProperty(HTMLTemplateElement.prototype, "insertBefore", {
|
|
3794
|
+
configurable: !0,
|
|
3795
|
+
enumerable: !0,
|
|
3796
|
+
value: function(e, t) {
|
|
3797
|
+
return this.content.insertBefore(e, t);
|
|
3798
|
+
}
|
|
3799
|
+
}));
|
|
3800
|
+
var Ac = /*#__PURE__*/ (0, z.createContext)(!1);
|
|
3801
|
+
function jc(e) {
|
|
3802
|
+
let t = (t, n) => (0, z.useContext)(Ac) ? null : e(t, n);
|
|
3803
|
+
return t.displayName = e.displayName || e.name, (0, z.forwardRef)(t);
|
|
3804
|
+
}
|
|
3805
|
+
function Mc() {
|
|
3806
|
+
return (0, z.useContext)(Ac);
|
|
3807
|
+
}
|
|
3808
|
+
//#endregion
|
|
3809
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/Label.mjs
|
|
3810
|
+
var Nc = /*#__PURE__*/ (0, z.createContext)({}), Pc = /*#__PURE__*/ jc(function(e, t) {
|
|
3811
|
+
[e, t] = wc(e, t, Nc);
|
|
3812
|
+
let { elementType: n = "label", ...r } = e, i = kc[n];
|
|
3813
|
+
return /*#__PURE__*/ z.createElement(i, {
|
|
3814
|
+
className: "react-aria-Label",
|
|
3815
|
+
...r,
|
|
3816
|
+
ref: t
|
|
3817
|
+
});
|
|
3818
|
+
}), Fc = /*#__PURE__*/ (0, z.createContext)(null), Ic = /*#__PURE__*/ (0, z.createContext)({}), Lc = /*#__PURE__*/ jc(function(e, t) {
|
|
3819
|
+
[e, t] = wc(e, t, Ic);
|
|
3820
|
+
let n = e, { isPending: r } = n, { buttonProps: i, isPressed: a } = yo(e, t);
|
|
3821
|
+
i = zc(i, r);
|
|
3822
|
+
let { focusProps: o, isFocused: s, isFocusVisible: c } = bo(e), { hoverProps: l, isHovered: u } = Ga({
|
|
3823
|
+
...e,
|
|
3824
|
+
isDisabled: e.isDisabled || r
|
|
3825
|
+
}), d = {
|
|
3826
|
+
isHovered: u,
|
|
3827
|
+
isPressed: (n.isPressed || a) && !r,
|
|
3828
|
+
isFocused: s,
|
|
3829
|
+
isFocusVisible: c,
|
|
3830
|
+
isDisabled: e.isDisabled || !1,
|
|
3831
|
+
isPending: r ?? !1
|
|
3832
|
+
}, f = xc({
|
|
3833
|
+
...e,
|
|
3834
|
+
values: d,
|
|
3835
|
+
defaultClassName: "react-aria-Button"
|
|
3836
|
+
}), p = W(i.id), m = W(), h = i["aria-labelledby"];
|
|
3837
|
+
r && (h ? h = `${h} ${m}` : i["aria-label"] && (h = `${p} ${m}`));
|
|
3838
|
+
let g = (0, z.useRef)(r);
|
|
3839
|
+
(0, z.useEffect)(() => {
|
|
3840
|
+
let e = { "aria-labelledby": h || p };
|
|
3841
|
+
(!g.current && s && r || g.current && s && !r) && Co(e, "assertive"), g.current = r;
|
|
3842
|
+
}, [
|
|
3843
|
+
r,
|
|
3844
|
+
s,
|
|
3845
|
+
h,
|
|
3846
|
+
p
|
|
3847
|
+
]);
|
|
3848
|
+
let _ = zr(e, { global: !0 });
|
|
3849
|
+
return delete _.onClick, /*#__PURE__*/ z.createElement(kc.button, {
|
|
3850
|
+
...X(_, f, i, o, l),
|
|
3851
|
+
type: i.type === "submit" && r ? "button" : i.type,
|
|
3852
|
+
id: p,
|
|
3853
|
+
ref: t,
|
|
3854
|
+
"aria-labelledby": h,
|
|
3855
|
+
slot: e.slot || void 0,
|
|
3856
|
+
"aria-disabled": r ? "true" : i["aria-disabled"],
|
|
3857
|
+
"data-disabled": e.isDisabled || void 0,
|
|
3858
|
+
"data-pressed": d.isPressed || void 0,
|
|
3859
|
+
"data-hovered": u || void 0,
|
|
3860
|
+
"data-focused": s || void 0,
|
|
3861
|
+
"data-pending": r || void 0,
|
|
3862
|
+
"data-focus-visible": c || void 0
|
|
3863
|
+
}, /*#__PURE__*/ z.createElement(Fc.Provider, { value: { id: m } }, f.children));
|
|
3864
|
+
}), Rc = /Focus|Blur|Hover|Pointer(Enter|Leave|Over|Out)|Mouse(Enter|Leave|Over|Out)/;
|
|
3865
|
+
function zc(e, t) {
|
|
3866
|
+
if (t) {
|
|
3867
|
+
for (let t in e) t.startsWith("on") && !Rc.test(t) && (e[t] = void 0);
|
|
3868
|
+
e.href = void 0, e.target = void 0;
|
|
3869
|
+
}
|
|
3870
|
+
return e;
|
|
3871
|
+
}
|
|
3872
|
+
//#endregion
|
|
3873
|
+
//#region ../node_modules/.pnpm/react-aria-components@1.16.0_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-aria-components/dist/Text.mjs
|
|
3874
|
+
var Bc = /*#__PURE__*/ (0, z.createContext)({}), Vc = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
3875
|
+
[e, t] = wc(e, t, Bc);
|
|
3876
|
+
let { elementType: n = "span", ...r } = e, i = kc[n];
|
|
3877
|
+
return /*#__PURE__*/ z.createElement(i, {
|
|
3878
|
+
className: "react-aria-Text",
|
|
3879
|
+
...r,
|
|
3880
|
+
ref: t
|
|
3881
|
+
});
|
|
3882
|
+
}), Hc = /*#__PURE__*/ (0, z.createContext)(null), Uc = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
3883
|
+
return (0, z.useContext)(Hc)?.isInvalid ? /*#__PURE__*/ z.createElement(Wc, {
|
|
3884
|
+
...e,
|
|
3885
|
+
ref: t
|
|
3886
|
+
}) : null;
|
|
3887
|
+
}), Wc = /*#__PURE__*/ (0, z.forwardRef)((e, t) => {
|
|
3888
|
+
let n = (0, z.useContext)(Hc), r = zr(e, { global: !0 }), i = xc({
|
|
3889
|
+
...e,
|
|
3890
|
+
defaultClassName: "react-aria-FieldError",
|
|
3891
|
+
defaultChildren: n.validationErrors.length === 0 ? void 0 : n.validationErrors.join(" "),
|
|
3892
|
+
values: n
|
|
3893
|
+
});
|
|
3894
|
+
return i.children == null ? null : /*#__PURE__*/ z.createElement(Vc, {
|
|
3895
|
+
slot: "errorMessage",
|
|
3896
|
+
...r,
|
|
3897
|
+
...i,
|
|
3898
|
+
ref: t
|
|
3899
|
+
});
|
|
3900
|
+
}), Gc = /*#__PURE__*/ (0, z.createContext)(null), Kc = /*#__PURE__*/ (0, z.createContext)({}), qc = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
3901
|
+
[e, t] = wc(e, t, Kc);
|
|
3902
|
+
let { isDisabled: n, isInvalid: r, isReadOnly: i, onHoverStart: a, onHoverChange: o, onHoverEnd: s, ...c } = e;
|
|
3903
|
+
n ??= !!e["aria-disabled"] && e["aria-disabled"] !== "false", r ??= !!e["aria-invalid"] && e["aria-invalid"] !== "false";
|
|
3904
|
+
let { hoverProps: l, isHovered: u } = Ga({
|
|
3905
|
+
onHoverStart: a,
|
|
3906
|
+
onHoverChange: o,
|
|
3907
|
+
onHoverEnd: s,
|
|
3908
|
+
isDisabled: n
|
|
3909
|
+
}), { isFocused: d, isFocusVisible: f, focusProps: p } = bo({ within: !0 }), m = xc({
|
|
3910
|
+
...e,
|
|
3911
|
+
values: {
|
|
3912
|
+
isHovered: u,
|
|
3913
|
+
isFocusWithin: d,
|
|
3914
|
+
isFocusVisible: f,
|
|
3915
|
+
isDisabled: n,
|
|
3916
|
+
isInvalid: r
|
|
3917
|
+
},
|
|
3918
|
+
defaultClassName: "react-aria-Group"
|
|
3919
|
+
});
|
|
3920
|
+
return /*#__PURE__*/ z.createElement(kc.div, {
|
|
3921
|
+
...X(c, p, l),
|
|
3922
|
+
...m,
|
|
3923
|
+
ref: t,
|
|
3924
|
+
role: e.role ?? "group",
|
|
3925
|
+
slot: e.slot ?? void 0,
|
|
3926
|
+
"data-focus-within": d || void 0,
|
|
3927
|
+
"data-hovered": u || void 0,
|
|
3928
|
+
"data-focus-visible": f || void 0,
|
|
3929
|
+
"data-disabled": n || void 0,
|
|
3930
|
+
"data-invalid": r || void 0,
|
|
3931
|
+
"data-readonly": i || void 0
|
|
3932
|
+
}, m.children);
|
|
3933
|
+
}), Jc = /*#__PURE__*/ (0, z.createContext)({}), Yc = (e) => {
|
|
3934
|
+
let { onHoverStart: t, onHoverChange: n, onHoverEnd: r, ...i } = e;
|
|
3935
|
+
return i;
|
|
3936
|
+
}, Xc = /*#__PURE__*/ jc(function(e, t) {
|
|
3937
|
+
[e, t] = wc(e, t, Jc);
|
|
3938
|
+
let { hoverProps: n, isHovered: r } = Ga({
|
|
3939
|
+
...e,
|
|
3940
|
+
isDisabled: e.disabled
|
|
3941
|
+
}), { isFocused: i, isFocusVisible: a, focusProps: o } = bo({
|
|
3942
|
+
isTextInput: !0,
|
|
3943
|
+
autoFocus: e.autoFocus
|
|
3944
|
+
}), s = !!e["aria-invalid"] && e["aria-invalid"] !== "false", c = xc({
|
|
3945
|
+
...e,
|
|
3946
|
+
values: {
|
|
3947
|
+
isHovered: r,
|
|
3948
|
+
isFocused: i,
|
|
3949
|
+
isFocusVisible: a,
|
|
3950
|
+
isDisabled: e.disabled || !1,
|
|
3951
|
+
isInvalid: s
|
|
3952
|
+
},
|
|
3953
|
+
defaultClassName: "react-aria-Input"
|
|
3954
|
+
});
|
|
3955
|
+
return /*#__PURE__*/ z.createElement(kc.input, {
|
|
3956
|
+
...X(Yc(e), o, n),
|
|
3957
|
+
...c,
|
|
3958
|
+
ref: t,
|
|
3959
|
+
"data-focused": i || void 0,
|
|
3960
|
+
"data-disabled": e.disabled || void 0,
|
|
3961
|
+
"data-hovered": r || void 0,
|
|
3962
|
+
"data-focus-visible": a || void 0,
|
|
3963
|
+
"data-invalid": s || void 0
|
|
3964
|
+
});
|
|
3965
|
+
}), Zc = /*#__PURE__*/ (0, z.createContext)(null), Qc = /*#__PURE__*/ (0, z.createContext)(null), $c = /*#__PURE__*/ (0, z.forwardRef)(function(e, t) {
|
|
3966
|
+
[e, t] = wc(e, t, Zc);
|
|
3967
|
+
let { validationBehavior: n } = Cc(Gc) || {}, r = e.validationBehavior ?? n ?? "native", { locale: i } = pe(), a = Wo({
|
|
3968
|
+
...e,
|
|
3969
|
+
locale: i,
|
|
3970
|
+
validationBehavior: r
|
|
3971
|
+
}), o = (0, z.useRef)(null), [s, c] = Tc(!e["aria-label"] && !e["aria-labelledby"]), { labelProps: l, groupProps: u, inputProps: d, incrementButtonProps: f, decrementButtonProps: p, descriptionProps: m, errorMessageProps: h, ...g } = hc({
|
|
3972
|
+
...Ec(e),
|
|
3973
|
+
label: c,
|
|
3974
|
+
validationBehavior: r
|
|
3975
|
+
}, a, o), _ = xc({
|
|
3976
|
+
...e,
|
|
3977
|
+
values: {
|
|
3978
|
+
state: a,
|
|
3979
|
+
isDisabled: e.isDisabled || !1,
|
|
3980
|
+
isInvalid: g.isInvalid || !1,
|
|
3981
|
+
isRequired: e.isRequired || !1
|
|
3982
|
+
},
|
|
3983
|
+
defaultClassName: "react-aria-NumberField"
|
|
3984
|
+
}), v = zr(e, { global: !0 });
|
|
3985
|
+
return delete v.id, /*#__PURE__*/ z.createElement(bc, { values: [
|
|
3986
|
+
[Qc, a],
|
|
3987
|
+
[Kc, u],
|
|
3988
|
+
[Jc, {
|
|
3989
|
+
...d,
|
|
3990
|
+
ref: o
|
|
3991
|
+
}],
|
|
3992
|
+
[Nc, {
|
|
3993
|
+
...l,
|
|
3994
|
+
ref: s
|
|
3995
|
+
}],
|
|
3996
|
+
[Ic, { slots: {
|
|
3997
|
+
increment: f,
|
|
3998
|
+
decrement: p
|
|
3999
|
+
} }],
|
|
4000
|
+
[Bc, { slots: {
|
|
4001
|
+
description: m,
|
|
4002
|
+
errorMessage: h
|
|
4003
|
+
} }],
|
|
4004
|
+
[Hc, g]
|
|
4005
|
+
] }, /*#__PURE__*/ z.createElement(kc.div, {
|
|
4006
|
+
...v,
|
|
4007
|
+
..._,
|
|
4008
|
+
ref: t,
|
|
4009
|
+
slot: e.slot || void 0,
|
|
4010
|
+
"data-disabled": e.isDisabled || void 0,
|
|
4011
|
+
"data-required": e.isRequired || void 0,
|
|
4012
|
+
"data-invalid": g.isInvalid || void 0
|
|
4013
|
+
}), e.name && /*#__PURE__*/ z.createElement("input", {
|
|
4014
|
+
type: "hidden",
|
|
4015
|
+
name: e.name,
|
|
4016
|
+
form: e.form,
|
|
4017
|
+
value: isNaN(a.numberValue) ? "" : a.numberValue,
|
|
4018
|
+
disabled: e.isDisabled || void 0
|
|
4019
|
+
}));
|
|
4020
|
+
}), el = _e((e) => {
|
|
4021
|
+
for (let t of [
|
|
4022
|
+
100,
|
|
4023
|
+
20,
|
|
4024
|
+
2,
|
|
4025
|
+
0
|
|
4026
|
+
]) try {
|
|
4027
|
+
return new Intl.NumberFormat(e, {
|
|
4028
|
+
minimumFractionDigits: 0,
|
|
4029
|
+
maximumFractionDigits: t
|
|
4030
|
+
}).format(1), t;
|
|
4031
|
+
} catch (e) {
|
|
4032
|
+
n.error(e);
|
|
4033
|
+
}
|
|
4034
|
+
return 0;
|
|
4035
|
+
});
|
|
4036
|
+
function tl(e) {
|
|
4037
|
+
if (!Number.isFinite(e) || e === 0) return 0;
|
|
4038
|
+
let t = e.toFixed(12).replace(/\.?0+$/, ""), n = t.indexOf(".");
|
|
4039
|
+
return n === -1 ? 0 : t.length - n - 1;
|
|
4040
|
+
}
|
|
4041
|
+
function nl(e, t) {
|
|
4042
|
+
let n = tl(t);
|
|
4043
|
+
for (let t of e) n = Math.max(n, tl(t));
|
|
4044
|
+
return n;
|
|
4045
|
+
}
|
|
4046
|
+
function rl(e, t) {
|
|
4047
|
+
return Number(e.toFixed(t));
|
|
4048
|
+
}
|
|
4049
|
+
function il(e, t) {
|
|
4050
|
+
return e == null ? "" : Array.isArray(e) ? String(e) : typeof e == "string" ? e : typeof e == "boolean" ? String(e) : typeof e == "number" || typeof e == "bigint" ? e.toLocaleString(t, {
|
|
4051
|
+
minimumFractionDigits: 0,
|
|
4052
|
+
maximumFractionDigits: 2
|
|
4053
|
+
}) : String(e);
|
|
4054
|
+
}
|
|
4055
|
+
function al(e) {
|
|
4056
|
+
return e === 0 ? "0" : Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? null : e > 0 ? "Infinity" : "-Infinity";
|
|
4057
|
+
}
|
|
4058
|
+
function ol(e, t) {
|
|
4059
|
+
let n = al(e);
|
|
4060
|
+
if (n !== null) return n;
|
|
4061
|
+
let r = Math.abs(e);
|
|
4062
|
+
if (r < .01 || r >= 1e6) return new Intl.NumberFormat(t.locale, {
|
|
4063
|
+
minimumFractionDigits: 1,
|
|
4064
|
+
maximumFractionDigits: 1,
|
|
4065
|
+
notation: "scientific"
|
|
4066
|
+
}).format(e).toLowerCase();
|
|
4067
|
+
let { shouldRound: i, locale: a } = t;
|
|
4068
|
+
return i ? new Intl.NumberFormat(a, {
|
|
4069
|
+
minimumFractionDigits: 0,
|
|
4070
|
+
maximumFractionDigits: 2
|
|
4071
|
+
}).format(e) : e.toLocaleString(a, {
|
|
4072
|
+
minimumFractionDigits: 0,
|
|
4073
|
+
maximumFractionDigits: el(a)
|
|
4074
|
+
});
|
|
4075
|
+
}
|
|
4076
|
+
var sl = {
|
|
4077
|
+
24: "Y",
|
|
4078
|
+
21: "Z",
|
|
4079
|
+
18: "E",
|
|
4080
|
+
15: "P",
|
|
4081
|
+
12: "T",
|
|
4082
|
+
9: "G",
|
|
4083
|
+
6: "M",
|
|
4084
|
+
3: "k",
|
|
4085
|
+
0: "",
|
|
4086
|
+
"-3": "m",
|
|
4087
|
+
"-6": "µ",
|
|
4088
|
+
"-9": "n",
|
|
4089
|
+
"-12": "p",
|
|
4090
|
+
"-15": "f",
|
|
4091
|
+
"-18": "a",
|
|
4092
|
+
"-21": "z",
|
|
4093
|
+
"-24": "y"
|
|
4094
|
+
};
|
|
4095
|
+
function cl(e, t) {
|
|
4096
|
+
let n = al(e);
|
|
4097
|
+
if (n !== null) return n;
|
|
4098
|
+
let [r, i] = new Intl.NumberFormat(t, {
|
|
4099
|
+
notation: "engineering",
|
|
4100
|
+
maximumSignificantDigits: 3
|
|
4101
|
+
}).format(e).split("E");
|
|
4102
|
+
return i in sl ? r + sl[i] : `${r}E${i}`;
|
|
4103
|
+
}
|
|
4104
|
+
//#endregion
|
|
4105
|
+
//#region src/components/ui/number-field.tsx
|
|
4106
|
+
var ll = z.forwardRef((e, t) => {
|
|
4107
|
+
let n = (0, $.c)(53), i, a, o, s, c;
|
|
4108
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5]) : ({placeholder: o, variant: c, onInputText: a, formatOptions: i, ...s} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c);
|
|
4109
|
+
let l = c === void 0 ? "default" : c, { locale: u } = pe(), d;
|
|
4110
|
+
n[6] === u ? d = n[7] : (d = el(u), n[6] = u, n[7] = d);
|
|
4111
|
+
let f;
|
|
4112
|
+
n[8] !== i || n[9] !== d ? (f = {
|
|
4113
|
+
minimumFractionDigits: 0,
|
|
4114
|
+
maximumFractionDigits: d,
|
|
4115
|
+
...i
|
|
4116
|
+
}, n[8] = i, n[9] = d, n[10] = f) : f = n[10];
|
|
4117
|
+
let p = l === "default" ? "h-6 w-full mb-1" : "h-4 w-full mb-0.5", m = l === "xs" && "text-xs", h;
|
|
4118
|
+
n[11] !== s.className || n[12] !== p || n[13] !== m ? (h = r("shadow-xs-solid hover:shadow-sm-solid hover:focus-within:shadow-md-solid", "flex overflow-hidden rounded-sm border border-input bg-background text-sm font-code ring-offset-background", "disabled:cursor-not-allowed disabled:opacity-50 disabled:shadow-xs-solid", "focus-within:shadow-md-solid focus-within:outline-hidden focus-within:ring-1 focus-within:ring-ring focus-within:border-primary", p, m, s.className), n[11] = s.className, n[12] = p, n[13] = m, n[14] = h) : h = n[14];
|
|
4119
|
+
let g = s.isDisabled, v;
|
|
4120
|
+
n[15] === a ? v = n[16] : (v = a ? (e) => a(e.currentTarget.value) : void 0, n[15] = a, n[16] = v);
|
|
4121
|
+
let y = l === "default" ? "px-1.5" : "px-1", b;
|
|
4122
|
+
n[17] === y ? b = n[18] : (b = r("flex-1", "w-full", "placeholder:text-muted-foreground", "outline-hidden", "disabled:cursor-not-allowed disabled:opacity-50", y), n[17] = y, n[18] = b);
|
|
4123
|
+
let x;
|
|
4124
|
+
n[19] !== o || n[20] !== s.isDisabled || n[21] !== t || n[22] !== b || n[23] !== v ? (x = /* @__PURE__ */ (0, B.jsx)(Xc, {
|
|
4125
|
+
ref: t,
|
|
4126
|
+
disabled: g,
|
|
4127
|
+
placeholder: o,
|
|
4128
|
+
onKeyDown: dl,
|
|
4129
|
+
onInput: v,
|
|
4130
|
+
className: b
|
|
4131
|
+
}), n[19] = o, n[20] = s.isDisabled, n[21] = t, n[22] = b, n[23] = v, n[24] = x) : x = n[24];
|
|
4132
|
+
let S = s.isDisabled, w = l === "xs" && "w-2 h-2", T;
|
|
4133
|
+
n[25] === w ? T = n[26] : (T = r("w-3 h-3 -mb-px", w), n[25] = w, n[26] = T);
|
|
4134
|
+
let E;
|
|
4135
|
+
n[27] === T ? E = n[28] : (E = /* @__PURE__ */ (0, B.jsx)(C, {
|
|
4136
|
+
"aria-hidden": !0,
|
|
4137
|
+
className: T
|
|
4138
|
+
}), n[27] = T, n[28] = E);
|
|
4139
|
+
let D;
|
|
4140
|
+
n[29] !== s.isDisabled || n[30] !== E || n[31] !== l ? (D = /* @__PURE__ */ (0, B.jsx)(ul, {
|
|
4141
|
+
slot: "increment",
|
|
4142
|
+
isDisabled: S,
|
|
4143
|
+
variant: l,
|
|
4144
|
+
excludeFromTabOrder: !0,
|
|
4145
|
+
children: E
|
|
4146
|
+
}), n[29] = s.isDisabled, n[30] = E, n[31] = l, n[32] = D) : D = n[32];
|
|
4147
|
+
let O;
|
|
4148
|
+
n[33] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ (0, B.jsx)("div", { className: "h-px shrink-0 divider bg-border z-10" }), n[33] = O) : O = n[33];
|
|
4149
|
+
let k = s.isDisabled, A = l === "xs" && "w-2 h-2", j;
|
|
4150
|
+
n[34] === A ? j = n[35] : (j = r("w-3 h-3 -mt-px", A), n[34] = A, n[35] = j);
|
|
4151
|
+
let M;
|
|
4152
|
+
n[36] === j ? M = n[37] : (M = /* @__PURE__ */ (0, B.jsx)(_, {
|
|
4153
|
+
"aria-hidden": !0,
|
|
4154
|
+
className: j
|
|
4155
|
+
}), n[36] = j, n[37] = M);
|
|
4156
|
+
let N;
|
|
4157
|
+
n[38] !== s.isDisabled || n[39] !== M || n[40] !== l ? (N = /* @__PURE__ */ (0, B.jsx)(ul, {
|
|
4158
|
+
slot: "decrement",
|
|
4159
|
+
isDisabled: k,
|
|
4160
|
+
variant: l,
|
|
4161
|
+
excludeFromTabOrder: !0,
|
|
4162
|
+
children: M
|
|
4163
|
+
}), n[38] = s.isDisabled, n[39] = M, n[40] = l, n[41] = N) : N = n[41];
|
|
4164
|
+
let P;
|
|
4165
|
+
n[42] !== D || n[43] !== N ? (P = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
4166
|
+
className: "flex flex-col border-s-2",
|
|
4167
|
+
children: [
|
|
4168
|
+
D,
|
|
4169
|
+
O,
|
|
4170
|
+
N
|
|
4171
|
+
]
|
|
4172
|
+
}), n[42] = D, n[43] = N, n[44] = P) : P = n[44];
|
|
4173
|
+
let F;
|
|
4174
|
+
n[45] !== x || n[46] !== P || n[47] !== h ? (F = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
4175
|
+
className: h,
|
|
4176
|
+
children: [x, P]
|
|
4177
|
+
}), n[45] = x, n[46] = P, n[47] = h, n[48] = F) : F = n[48];
|
|
4178
|
+
let I;
|
|
4179
|
+
return n[49] !== s || n[50] !== F || n[51] !== f ? (I = /* @__PURE__ */ (0, B.jsx)($c, {
|
|
4180
|
+
...s,
|
|
4181
|
+
formatOptions: f,
|
|
4182
|
+
children: F
|
|
4183
|
+
}), n[49] = s, n[50] = F, n[51] = f, n[52] = I) : I = n[52], I;
|
|
4184
|
+
});
|
|
4185
|
+
ll.displayName = "NumberField";
|
|
4186
|
+
var ul = (e) => {
|
|
4187
|
+
let t = (0, $.c)(6), n = !e.isDisabled && "hover:text-primary hover:bg-muted", i = e.variant === "default" ? "px-0.5" : "px-0.25", a;
|
|
4188
|
+
t[0] !== n || t[1] !== i ? (a = r("cursor-default text-muted-foreground pressed:bg-muted-foreground group-disabled:text-disabled-foreground outline-hidden focus-visible:text-primary", "disabled:cursor-not-allowed disabled:opacity-50", n, i), t[0] = n, t[1] = i, t[2] = a) : a = t[2];
|
|
4189
|
+
let o;
|
|
4190
|
+
return t[3] !== e || t[4] !== a ? (o = /* @__PURE__ */ (0, B.jsx)(Lc, {
|
|
4191
|
+
...e,
|
|
4192
|
+
className: a
|
|
4193
|
+
}), t[3] = e, t[4] = a, t[5] = o) : o = t[5], o;
|
|
4194
|
+
};
|
|
4195
|
+
function dl(e) {
|
|
4196
|
+
(e.key === "ArrowUp" || e.key === "ArrowDown") && e.stopPropagation();
|
|
4197
|
+
}
|
|
4198
|
+
//#endregion
|
|
4199
|
+
//#region src/components/ui/input.tsx
|
|
4200
|
+
var fl = /* @__PURE__ */ (0, B.jsx)(be, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), pl = z.forwardRef((e, t) => {
|
|
4201
|
+
let n = (0, $.c)(29), a, o, s, c;
|
|
4202
|
+
n[0] === e ? (a = n[1], o = n[2], s = n[3], c = n[4]) : ({className: a, type: c, endAdornment: o, ...s} = e, n[0] = e, n[1] = a, n[2] = o, n[3] = s, n[4] = c);
|
|
4203
|
+
let l = s.icon;
|
|
4204
|
+
if (c === "hidden") {
|
|
4205
|
+
let e;
|
|
4206
|
+
return n[5] !== s || n[6] !== t ? (e = /* @__PURE__ */ (0, B.jsx)("input", {
|
|
4207
|
+
type: "hidden",
|
|
4208
|
+
ref: t,
|
|
4209
|
+
...s
|
|
4210
|
+
}), n[5] = s, n[6] = t, n[7] = e) : e = n[7], e;
|
|
4211
|
+
}
|
|
4212
|
+
let u;
|
|
4213
|
+
n[8] === s.rootClassName ? u = n[9] : (u = r("relative", s.rootClassName), n[8] = s.rootClassName, n[9] = u);
|
|
4214
|
+
let d;
|
|
4215
|
+
n[10] === l ? d = n[11] : (d = l && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
4216
|
+
className: "absolute inset-y-0 left-0 flex items-center pl-[6px] pointer-events-none text-muted-foreground",
|
|
4217
|
+
children: l
|
|
4218
|
+
}), n[10] = l, n[11] = d);
|
|
4219
|
+
let f = l && "pl-7", p = o && "pr-10", m;
|
|
4220
|
+
n[12] !== a || n[13] !== f || n[14] !== p ? (m = r("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex h-6 w-full mb-1 rounded-sm border border-input bg-background px-1.5 py-1 text-sm font-code ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-primary disabled:cursor-not-allowed disabled:opacity-50", f, p, a), n[12] = a, n[13] = f, n[14] = p, n[15] = m) : m = n[15];
|
|
4221
|
+
let h;
|
|
4222
|
+
n[16] === Symbol.for("react.memo_cache_sentinel") ? (h = i.stopPropagation(), n[16] = h) : h = n[16];
|
|
4223
|
+
let g;
|
|
4224
|
+
n[17] !== s || n[18] !== t || n[19] !== m || n[20] !== c ? (g = /* @__PURE__ */ (0, B.jsx)("input", {
|
|
4225
|
+
type: c,
|
|
4226
|
+
className: m,
|
|
4227
|
+
ref: t,
|
|
4228
|
+
onClick: h,
|
|
4229
|
+
...s
|
|
4230
|
+
}), n[17] = s, n[18] = t, n[19] = m, n[20] = c, n[21] = g) : g = n[21];
|
|
4231
|
+
let _;
|
|
4232
|
+
n[22] === o ? _ = n[23] : (_ = o && /* @__PURE__ */ (0, B.jsx)("div", {
|
|
4233
|
+
className: "absolute inset-y-0 right-0 flex items-center pr-[6px] text-muted-foreground h-6",
|
|
4234
|
+
children: o
|
|
4235
|
+
}), n[22] = o, n[23] = _);
|
|
4236
|
+
let v;
|
|
4237
|
+
return n[24] !== u || n[25] !== d || n[26] !== g || n[27] !== _ ? (v = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
4238
|
+
className: u,
|
|
4239
|
+
children: [
|
|
4240
|
+
d,
|
|
4241
|
+
g,
|
|
4242
|
+
_
|
|
4243
|
+
]
|
|
4244
|
+
}), n[24] = u, n[25] = d, n[26] = g, n[27] = _, n[28] = v) : v = n[28], v;
|
|
4245
|
+
});
|
|
4246
|
+
pl.displayName = "Input";
|
|
4247
|
+
var ml = z.forwardRef((e, t) => {
|
|
4248
|
+
let n = (0, $.c)(16), r, i, a;
|
|
4249
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4250
|
+
let o;
|
|
4251
|
+
n[4] !== i || n[5] !== a.delay || n[6] !== a.value ? (o = {
|
|
4252
|
+
initialValue: a.value,
|
|
4253
|
+
delay: a.delay,
|
|
4254
|
+
onChange: i
|
|
4255
|
+
}, n[4] = i, n[5] = a.delay, n[6] = a.value, n[7] = o) : o = n[7];
|
|
4256
|
+
let { value: s, onChange: c } = _c(o), l;
|
|
4257
|
+
n[8] === c ? l = n[9] : (l = (e) => c(e.target.value), n[8] = c, n[9] = l);
|
|
4258
|
+
let u;
|
|
4259
|
+
return n[10] !== r || n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== s ? (u = /* @__PURE__ */ (0, B.jsx)(pl, {
|
|
4260
|
+
ref: t,
|
|
4261
|
+
className: r,
|
|
4262
|
+
...a,
|
|
4263
|
+
onChange: l,
|
|
4264
|
+
value: s
|
|
4265
|
+
}), n[10] = r, n[11] = a, n[12] = t, n[13] = l, n[14] = s, n[15] = u) : u = n[15], u;
|
|
4266
|
+
});
|
|
4267
|
+
ml.displayName = "DebouncedInput";
|
|
4268
|
+
var hl = z.forwardRef((e, t) => {
|
|
4269
|
+
let n = (0, $.c)(13), r, i, a;
|
|
4270
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4271
|
+
let o;
|
|
4272
|
+
n[4] !== i || n[5] !== a.value ? (o = {
|
|
4273
|
+
initialValue: a.value,
|
|
4274
|
+
delay: 200,
|
|
4275
|
+
onChange: i
|
|
4276
|
+
}, n[4] = i, n[5] = a.value, n[6] = o) : o = n[6];
|
|
4277
|
+
let { value: s, onChange: c } = _c(o), l;
|
|
4278
|
+
return n[7] !== r || n[8] !== c || n[9] !== a || n[10] !== t || n[11] !== s ? (l = /* @__PURE__ */ (0, B.jsx)(ll, {
|
|
4279
|
+
ref: t,
|
|
4280
|
+
className: r,
|
|
4281
|
+
...a,
|
|
4282
|
+
onChange: c,
|
|
4283
|
+
value: s
|
|
4284
|
+
}), n[7] = r, n[8] = c, n[9] = a, n[10] = t, n[11] = s, n[12] = l) : l = n[12], l;
|
|
4285
|
+
});
|
|
4286
|
+
hl.displayName = "DebouncedNumberInput";
|
|
4287
|
+
var gl = z.forwardRef((e, t) => {
|
|
4288
|
+
let n = (0, $.c)(24), i, a, o, s, c;
|
|
4289
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4], c = n[5]) : ({className: i, rootClassName: o, icon: s, clearable: c, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s, n[5] = c);
|
|
4290
|
+
let l = s === void 0 ? fl : s, u = c === void 0 || c, d = z.useId(), f = a.id || d, p;
|
|
4291
|
+
n[6] === o ? p = n[7] : (p = r("flex items-center border-b px-3", o), n[6] = o, n[7] = p);
|
|
4292
|
+
let m;
|
|
4293
|
+
n[8] === i ? m = n[9] : (m = r("placeholder:text-foreground-muted flex h-7 m-1 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", i), n[8] = i, n[9] = m);
|
|
4294
|
+
let h;
|
|
4295
|
+
n[10] !== f || n[11] !== a || n[12] !== t || n[13] !== m ? (h = /* @__PURE__ */ (0, B.jsx)("input", {
|
|
4296
|
+
id: f,
|
|
4297
|
+
ref: t,
|
|
4298
|
+
className: m,
|
|
4299
|
+
...a
|
|
4300
|
+
}), n[10] = f, n[11] = a, n[12] = t, n[13] = m, n[14] = h) : h = n[14];
|
|
4301
|
+
let _;
|
|
4302
|
+
n[15] !== u || n[16] !== f || n[17] !== a ? (_ = u && a.value && /* @__PURE__ */ (0, B.jsx)("span", {
|
|
4303
|
+
onPointerDown: (e) => {
|
|
4304
|
+
e.preventDefault(), e.stopPropagation();
|
|
4305
|
+
let t = document.getElementById(f);
|
|
4306
|
+
t && t instanceof HTMLInputElement && (t.focus(), t.value = "", a.onChange?.({
|
|
4307
|
+
...e,
|
|
4308
|
+
target: t,
|
|
4309
|
+
currentTarget: t,
|
|
4310
|
+
type: "change"
|
|
4311
|
+
}));
|
|
4312
|
+
},
|
|
4313
|
+
children: /* @__PURE__ */ (0, B.jsx)(g, { className: "h-4 w-4 opacity-50 hover:opacity-90 cursor-pointer" })
|
|
4314
|
+
}), n[15] = u, n[16] = f, n[17] = a, n[18] = _) : _ = n[18];
|
|
4315
|
+
let v;
|
|
4316
|
+
return n[19] !== l || n[20] !== p || n[21] !== h || n[22] !== _ ? (v = /* @__PURE__ */ (0, B.jsxs)("div", {
|
|
4317
|
+
className: p,
|
|
4318
|
+
children: [
|
|
4319
|
+
l,
|
|
4320
|
+
h,
|
|
4321
|
+
_
|
|
4322
|
+
]
|
|
4323
|
+
}), n[19] = l, n[20] = p, n[21] = h, n[22] = _, n[23] = v) : v = n[23], v;
|
|
4324
|
+
});
|
|
4325
|
+
gl.displayName = "SearchInput";
|
|
4326
|
+
var _l = z.forwardRef((e, t) => {
|
|
4327
|
+
let n = (0, $.c)(23), r, i, a;
|
|
4328
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, onValueChange: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4329
|
+
let [o, s] = z.useState(a.value), c;
|
|
4330
|
+
n[4] !== o || n[5] !== i || n[6] !== a.value ? (c = {
|
|
4331
|
+
prop: a.value,
|
|
4332
|
+
defaultProp: o,
|
|
4333
|
+
onChange: i
|
|
4334
|
+
}, n[4] = o, n[5] = i, n[6] = a.value, n[7] = c) : c = n[7];
|
|
4335
|
+
let [l, u] = le(c), d, f;
|
|
4336
|
+
n[8] === l ? (d = n[9], f = n[10]) : (d = () => {
|
|
4337
|
+
s(l || "");
|
|
4338
|
+
}, f = [l], n[8] = l, n[9] = d, n[10] = f), z.useEffect(d, f);
|
|
4339
|
+
let p;
|
|
4340
|
+
n[11] === Symbol.for("react.memo_cache_sentinel") ? (p = (e) => s(e.target.value), n[11] = p) : p = n[11];
|
|
4341
|
+
let m, h;
|
|
4342
|
+
n[12] !== o || n[13] !== u ? (m = () => u(o || ""), h = (e) => {
|
|
4343
|
+
e.key !== "Enter" || e.shiftKey || u(o || "");
|
|
4344
|
+
}, n[12] = o, n[13] = u, n[14] = m, n[15] = h) : (m = n[14], h = n[15]);
|
|
4345
|
+
let g;
|
|
4346
|
+
return n[16] !== r || n[17] !== o || n[18] !== a || n[19] !== t || n[20] !== m || n[21] !== h ? (g = /* @__PURE__ */ (0, B.jsx)(pl, {
|
|
4347
|
+
ref: t,
|
|
4348
|
+
className: r,
|
|
4349
|
+
...a,
|
|
4350
|
+
value: o,
|
|
4351
|
+
onChange: p,
|
|
4352
|
+
onBlur: m,
|
|
4353
|
+
onKeyDown: h
|
|
4354
|
+
}), n[16] = r, n[17] = o, n[18] = a, n[19] = t, n[20] = m, n[21] = h, n[22] = g) : g = n[22], g;
|
|
4355
|
+
});
|
|
4356
|
+
_l.displayName = "OnBlurredInput";
|
|
4357
|
+
//#endregion
|
|
4358
|
+
//#region src/components/ui/dropdown-menu.tsx
|
|
4359
|
+
var vl = ar, yl = or, bl = lr, xl = ee(sr), Sl = L(cr), Cl = L(vr), wl = gr, Tl = z.forwardRef((e, t) => {
|
|
4360
|
+
let n = (0, $.c)(17), r, i, a, o, s;
|
|
4361
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({className: i, inset: a, showChevron: s, children: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
|
|
4362
|
+
let c = s === void 0 || s, l;
|
|
4363
|
+
n[6] !== i || n[7] !== a ? (l = O({
|
|
4364
|
+
className: i,
|
|
4365
|
+
inset: a
|
|
4366
|
+
}), n[6] = i, n[7] = a, n[8] = l) : l = n[8];
|
|
4367
|
+
let u;
|
|
4368
|
+
n[9] === c ? u = n[10] : (u = c && /* @__PURE__ */ (0, B.jsx)(ve, { className: "ml-auto h-4 w-4" }), n[9] = c, n[10] = u);
|
|
4369
|
+
let d;
|
|
4370
|
+
return n[11] !== r || n[12] !== o || n[13] !== t || n[14] !== l || n[15] !== u ? (d = /* @__PURE__ */ (0, B.jsxs)(_r, {
|
|
4371
|
+
ref: t,
|
|
4372
|
+
className: l,
|
|
4373
|
+
...o,
|
|
4374
|
+
children: [r, u]
|
|
4375
|
+
}), n[11] = r, n[12] = o, n[13] = t, n[14] = l, n[15] = u, n[16] = d) : d = n[16], d;
|
|
4376
|
+
});
|
|
4377
|
+
Tl.displayName = _r.displayName;
|
|
4378
|
+
var El = z.forwardRef((e, t) => {
|
|
4379
|
+
let n = (0, $.c)(9), i, a;
|
|
4380
|
+
n[0] === e ? (i = n[1], a = n[2]) : ({className: i, ...a} = e, n[0] = e, n[1] = i, n[2] = a);
|
|
4381
|
+
let o;
|
|
4382
|
+
n[3] === i ? o = n[4] : (o = r(E({ subcontent: !0 }), "animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1", i), n[3] = i, n[4] = o);
|
|
4383
|
+
let s;
|
|
4384
|
+
return n[5] !== a || n[6] !== t || n[7] !== o ? (s = /* @__PURE__ */ (0, B.jsx)(Cl, {
|
|
4385
|
+
ref: t,
|
|
4386
|
+
className: o,
|
|
4387
|
+
...a
|
|
4388
|
+
}), n[5] = a, n[6] = t, n[7] = o, n[8] = s) : s = n[8], s;
|
|
4389
|
+
});
|
|
4390
|
+
El.displayName = vr.displayName;
|
|
4391
|
+
var Dl = z.forwardRef((e, t) => {
|
|
4392
|
+
let n = (0, $.c)(17), i, a, o, s;
|
|
4393
|
+
n[0] === e ? (i = n[1], a = n[2], o = n[3], s = n[4]) : ({className: i, scrollable: o, sideOffset: s, ...a} = e, n[0] = e, n[1] = i, n[2] = a, n[3] = o, n[4] = s);
|
|
4394
|
+
let c = o === void 0 || o, l = s === void 0 ? 4 : s, u;
|
|
4395
|
+
n[5] !== i || n[6] !== c ? (u = r(E(), "animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 print:hidden", c && "overflow-auto", i), n[5] = i, n[6] = c, n[7] = u) : u = n[7];
|
|
4396
|
+
let d = c ? `calc(var(--radix-dropdown-menu-content-available-height) - ${P}px)` : void 0, f;
|
|
4397
|
+
n[8] !== a.style || n[9] !== d ? (f = {
|
|
4398
|
+
...a.style,
|
|
4399
|
+
maxHeight: d
|
|
4400
|
+
}, n[8] = a.style, n[9] = d, n[10] = f) : f = n[10];
|
|
4401
|
+
let p;
|
|
4402
|
+
return n[11] !== a || n[12] !== t || n[13] !== l || n[14] !== u || n[15] !== f ? (p = /* @__PURE__ */ (0, B.jsx)(xl, { children: /* @__PURE__ */ (0, B.jsx)(F, { children: /* @__PURE__ */ (0, B.jsx)(Sl, {
|
|
4403
|
+
ref: t,
|
|
4404
|
+
sideOffset: l,
|
|
4405
|
+
className: u,
|
|
4406
|
+
style: f,
|
|
4407
|
+
...a
|
|
4408
|
+
}) }) }), n[11] = a, n[12] = t, n[13] = l, n[14] = u, n[15] = f, n[16] = p) : p = n[16], p;
|
|
4409
|
+
});
|
|
4410
|
+
Dl.displayName = cr.displayName;
|
|
4411
|
+
var Ol = z.forwardRef((e, t) => {
|
|
4412
|
+
let n = (0, $.c)(13), r, i, a, o;
|
|
4413
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: r, inset: i, variant: o, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
4414
|
+
let s;
|
|
4415
|
+
n[5] !== r || n[6] !== i || n[7] !== o ? (s = x({
|
|
4416
|
+
className: r,
|
|
4417
|
+
inset: i,
|
|
4418
|
+
variant: o
|
|
4419
|
+
}), n[5] = r, n[6] = i, n[7] = o, n[8] = s) : s = n[8];
|
|
4420
|
+
let c;
|
|
4421
|
+
return n[9] !== a || n[10] !== t || n[11] !== s ? (c = /* @__PURE__ */ (0, B.jsx)(dr, {
|
|
4422
|
+
ref: t,
|
|
4423
|
+
className: s,
|
|
4424
|
+
...a
|
|
4425
|
+
}), n[9] = a, n[10] = t, n[11] = s, n[12] = c) : c = n[12], c;
|
|
4426
|
+
});
|
|
4427
|
+
Ol.displayName = dr.displayName;
|
|
4428
|
+
var kl = z.forwardRef((e, t) => {
|
|
4429
|
+
let n = (0, $.c)(15), r, i, a, o;
|
|
4430
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4]) : ({className: a, children: i, checked: r, ...o} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o);
|
|
4431
|
+
let s;
|
|
4432
|
+
n[5] === a ? s = n[6] : (s = S({ className: a }), n[5] = a, n[6] = s);
|
|
4433
|
+
let c;
|
|
4434
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = T(), n[7] = c) : c = n[7];
|
|
4435
|
+
let l;
|
|
4436
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ (0, B.jsx)("span", {
|
|
4437
|
+
className: c,
|
|
4438
|
+
children: /* @__PURE__ */ (0, B.jsx)(mr, { children: /* @__PURE__ */ (0, B.jsx)(h, { className: "h-4 w-4" }) })
|
|
4439
|
+
}), n[8] = l) : l = n[8];
|
|
4440
|
+
let u;
|
|
4441
|
+
return n[9] !== r || n[10] !== i || n[11] !== o || n[12] !== t || n[13] !== s ? (u = /* @__PURE__ */ (0, B.jsxs)(fr, {
|
|
4442
|
+
ref: t,
|
|
4443
|
+
className: s,
|
|
4444
|
+
checked: r,
|
|
4445
|
+
...o,
|
|
4446
|
+
children: [l, i]
|
|
4447
|
+
}), n[9] = r, n[10] = i, n[11] = o, n[12] = t, n[13] = s, n[14] = u) : u = n[14], u;
|
|
4448
|
+
});
|
|
4449
|
+
kl.displayName = fr.displayName;
|
|
4450
|
+
var Al = z.forwardRef((e, t) => {
|
|
4451
|
+
let n = (0, $.c)(13), r, i, a;
|
|
4452
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: i, children: r, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4453
|
+
let o;
|
|
4454
|
+
n[4] === i ? o = n[5] : (o = S({ className: i }), n[4] = i, n[5] = o);
|
|
4455
|
+
let s;
|
|
4456
|
+
n[6] === Symbol.for("react.memo_cache_sentinel") ? (s = T(), n[6] = s) : s = n[6];
|
|
4457
|
+
let c;
|
|
4458
|
+
n[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ (0, B.jsx)("span", {
|
|
4459
|
+
className: s,
|
|
4460
|
+
children: /* @__PURE__ */ (0, B.jsx)(mr, { children: /* @__PURE__ */ (0, B.jsx)(ye, { className: "h-2 w-2 fill-current" }) })
|
|
4461
|
+
}), n[7] = c) : c = n[7];
|
|
4462
|
+
let l;
|
|
4463
|
+
return n[8] !== r || n[9] !== a || n[10] !== t || n[11] !== o ? (l = /* @__PURE__ */ (0, B.jsxs)(pr, {
|
|
4464
|
+
ref: t,
|
|
4465
|
+
className: o,
|
|
4466
|
+
...a,
|
|
4467
|
+
children: [c, r]
|
|
4468
|
+
}), n[8] = r, n[9] = a, n[10] = t, n[11] = o, n[12] = l) : l = n[12], l;
|
|
4469
|
+
});
|
|
4470
|
+
Al.displayName = pr.displayName;
|
|
4471
|
+
var jl = z.forwardRef((e, t) => {
|
|
4472
|
+
let n = (0, $.c)(11), r, i, a;
|
|
4473
|
+
n[0] === e ? (r = n[1], i = n[2], a = n[3]) : ({className: r, inset: i, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a);
|
|
4474
|
+
let o;
|
|
4475
|
+
n[4] !== r || n[5] !== i ? (o = y({
|
|
4476
|
+
className: r,
|
|
4477
|
+
inset: i
|
|
4478
|
+
}), n[4] = r, n[5] = i, n[6] = o) : o = n[6];
|
|
4479
|
+
let s;
|
|
4480
|
+
return n[7] !== a || n[8] !== t || n[9] !== o ? (s = /* @__PURE__ */ (0, B.jsx)(ur, {
|
|
4481
|
+
ref: t,
|
|
4482
|
+
className: o,
|
|
4483
|
+
...a
|
|
4484
|
+
}), n[7] = a, n[8] = t, n[9] = o, n[10] = s) : s = n[10], s;
|
|
4485
|
+
});
|
|
4486
|
+
jl.displayName = ur.displayName;
|
|
4487
|
+
var Ml = z.forwardRef((e, t) => {
|
|
4488
|
+
let n = (0, $.c)(9), r, i;
|
|
4489
|
+
n[0] === e ? (r = n[1], i = n[2]) : ({className: r, ...i} = e, n[0] = e, n[1] = r, n[2] = i);
|
|
4490
|
+
let a;
|
|
4491
|
+
n[3] === r ? a = n[4] : (a = D({ className: r }), n[3] = r, n[4] = a);
|
|
4492
|
+
let o;
|
|
4493
|
+
return n[5] !== i || n[6] !== t || n[7] !== a ? (o = /* @__PURE__ */ (0, B.jsx)(hr, {
|
|
4494
|
+
ref: t,
|
|
4495
|
+
className: a,
|
|
4496
|
+
...i
|
|
4497
|
+
}), n[5] = i, n[6] = t, n[7] = a, n[8] = o) : o = n[8], o;
|
|
4498
|
+
});
|
|
4499
|
+
Ml.displayName = hr.displayName;
|
|
4500
|
+
var Nl = b;
|
|
4501
|
+
//#endregion
|
|
4502
|
+
export { Ao as $, un as $t, Hc as A, Zr as At, xc as B, K as Bt, rl as C, Z as Ct, Kc as D, Qr as Dt, qc as E, $r as Et, Nc as F, Ar as Ft, Ec as G, ln as Gt, Sc as H, wr as Ht, Pc as I, J as It, vc as J, dn as Jt, Cc as K, bn as Kt, Mc as L, Y as Lt, Bc as M, zr as Mt, Ic as N, X as Nt, Gc as O, Jr as Ot, Lc as P, q as Pt, Lo as Q, pn as Qt, bc as R, kr as Rt, ol as S, pi as St, Xc as T, li as Tt, yc as U, W as Ut, Tc as V, Tr as Vt, kc as W, U as Wt, Uo as X, mn as Xt, Ms as Y, fn as Yt, Ro as Z, vn as Zt, ll as _, ki as _t, jl as a, Cn as an, yo as at, cl as b, Ti as bt, Nl as c, Ve as cn, ao as ct, Tl as d, be as dn, Ga as dt, gn as en, Eo as et, yl as f, ye as fn, za as ft, _l as g, Vi as gt, pl as h, na as ht, Ol as i, xn as in, bo as it, Vc as j, Br as jt, Uc as k, ei as kt, wl as l, Be as ln, to as lt, hl as m, Da as mt, Dl as n, cn as nn, jo as nt, xl as o, Sn as on, co as ot, ml as p, ve as pn, Ma as pt, _c as q, hn as qt, bl as r, yn as rn, Co as rt, Ml as s, $e as sn, io as st, vl as t, _n as tn, Oo as tt, El as u, Oe as un, Xa as ut, nl as v, Oi as vt, Jc as w, ui as wt, il as x, gi as xt, el as y, wi as yt, wc as z, G as zt };
|