@qredence/fleet 0.6.2 → 0.6.4
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/CHANGELOG.md +16 -0
- package/dist/web/client/assets/DialogTitle-BwQ9k-MZ.js +1 -0
- package/dist/web/client/assets/agent-disclosure-YgLa4c2y.js +1 -0
- package/dist/web/client/assets/alert-dialog-BfK7648p.js +1 -0
- package/dist/web/client/assets/analytics-stub-BY-GADyA.js +1 -0
- package/dist/web/client/assets/arrow-up-DCwrqIrK.js +1 -0
- package/dist/web/client/assets/artifacts-panel-DDlPULVv.js +1 -0
- package/dist/web/client/assets/bot-DETalD3q.js +1 -0
- package/dist/web/client/assets/{button-Dl0ce3Y5.js → button-BrwYi6QP.js} +1 -1
- package/dist/web/client/assets/{card-DCEnYd2G.js → card-BScRdZNS.js} +1 -1
- package/dist/web/client/assets/chat-command-palette-DdPlRVuL.js +1 -0
- package/dist/web/client/assets/chat-helpers-Bj7_hES7.js +1 -0
- package/dist/web/client/assets/check-BTwIaCtI.js +1 -0
- package/dist/web/client/assets/chevron-down-Bse1ggZM.js +1 -0
- package/dist/web/client/assets/chevron-right-BPCB1mOg.js +1 -0
- package/dist/web/client/assets/chunk-YOKDWASO-C8deEx7Z.js +143 -0
- package/dist/web/client/assets/circle-check-DBhaebaM.js +1 -0
- package/dist/web/client/assets/citations-DOkXsdCi.js +1 -0
- package/dist/web/client/assets/clsx-DB0hHKMi.js +1 -0
- package/dist/web/client/assets/{collapsible-CUxOjhDJ.js → collapsible-DsbKpD_Y.js} +1 -1
- package/dist/web/client/assets/command-DSxdh_1v.js +1 -0
- package/dist/web/client/assets/composer-intent-C5pz72T6.js +62 -0
- package/dist/web/client/assets/create-project-dialog-CaXurRpm.js +1 -0
- package/dist/web/client/assets/{createBaseUIEventDetails-B58Jldei.js → createBaseUIEventDetails-DklXWq23.js} +1 -1
- package/dist/web/client/assets/createLucideIcon-CQY2ECfR.js +1 -0
- package/dist/web/client/assets/dialog-B9nXTto4.js +1 -0
- package/dist/web/client/assets/{dist-DbHxXSgQ.js → dist-BJJVCio8.js} +1 -1
- package/dist/web/client/assets/dist-BogNzeK9.js +1 -0
- package/dist/web/client/assets/{ease-CMumuPlX.js → ease-2UPBQU5v.js} +1 -1
- package/dist/web/client/assets/eye-iNSvs0UA.js +1 -0
- package/dist/web/client/assets/file-text-cqOanUYv.js +1 -0
- package/dist/web/client/assets/folder-COBtkKZa.js +1 -0
- package/dist/web/client/assets/{fork-picker-dialog-CpwEwsxA.js → fork-picker-dialog-DEdHU89A.js} +1 -1
- package/dist/web/client/assets/gauge-0Nn96wfZ.js +1 -0
- package/dist/web/client/assets/git-branch-DZEh2mM2.js +1 -0
- package/dist/web/client/assets/globals-B-fD_O7k.css +2 -0
- package/dist/web/client/assets/hard-drive-B3opVeEB.js +1 -0
- package/dist/web/client/assets/{highlighted-body-KPVGNVTW-CgT7gqvs.js → highlighted-body-KPVGNVTW-CZcNaoxi.js} +1 -1
- package/dist/web/client/assets/horizontal-resize-5AxYvGLA.js +1 -0
- package/dist/web/client/assets/index-BJIGh8ag.js +12 -0
- package/dist/web/client/assets/{input-CxZp56Im.js → input-BceH49B1.js} +1 -1
- package/dist/web/client/assets/{input-group-D7lAfKHR.js → input-group-DThl_vkS.js} +1 -1
- package/dist/web/client/assets/ipython-tool-CuSGRhXl.js +3 -0
- package/dist/web/client/assets/is-ref-object-CEXqIz6L.js +1 -0
- package/dist/web/client/assets/loader-circle-BmKYM_C4.js +1 -0
- package/dist/web/client/assets/markdown-C-Y9gskI.js +2 -0
- package/dist/web/client/assets/{markdown-code-CDTRq-HZ.js → markdown-code-BqFVdovL.js} +1 -1
- package/dist/web/client/assets/mermaid-HWGCJPDP-CVNXPao6.js +1 -0
- package/dist/web/client/assets/{message-queue-Dl8wbCOu.js → message-queue-CPYj2iaw.js} +1 -1
- package/dist/web/client/assets/{model-selector-list-CRZCXeBf.js → model-selector-list-DDsuJCgB.js} +1 -1
- package/dist/web/client/assets/{notify-DjVixft7.js → notify-GSsGEKtR.js} +1 -1
- package/dist/web/client/assets/{openui-renderer-Bkkx5kmA.js → openui-renderer-l1qI5JDt.js} +41 -41
- package/dist/web/client/assets/package-BkC-HSi-.js +1 -0
- package/dist/web/client/assets/pencil-Cbgq3ybX.js +1 -0
- package/dist/web/client/assets/plug-wCz-036u.js +1 -0
- package/dist/web/client/assets/prompt-input-a7UP_MAw.js +1 -0
- package/dist/web/client/assets/{prompt-suggestions-BNyTcyWg.js → prompt-suggestions-ULqmPijZ.js} +1 -1
- package/dist/web/client/assets/provider-catalog-L0c-bZv6.js +1 -0
- package/dist/web/client/assets/provider-label-Buq3HZrP.js +1 -0
- package/dist/web/client/assets/react-Cvdyeg_0.js +1 -0
- package/dist/web/client/assets/react-dom-B7th3XGm.js +1 -0
- package/dist/web/client/assets/refresh-cw-CqPE3kNY.js +1 -0
- package/dist/web/client/assets/{repl-panel-L9dmPqio.js → repl-panel-UQN9UFG7.js} +1 -1
- package/dist/web/client/assets/resource-helpers-CKbSmzpw.js +2 -0
- package/dist/web/client/assets/{resources-panel-mT-aMCvV.js → resources-panel-kp_UjnpX.js} +1 -1
- package/dist/web/client/assets/right-panel-context-DHKWoetk.js +1 -0
- package/dist/web/client/assets/right-panel-registry-BqtgZw7Z.js +2 -0
- package/dist/web/client/assets/rotate-ccw-DLkfsmG9.js +1 -0
- package/dist/web/client/assets/routes-C37r2W1K.js +16 -0
- package/dist/web/client/assets/safe-external-url-BnEhm9A0.js +1 -0
- package/dist/web/client/assets/search-Cb6fFWew.js +1 -0
- package/dist/web/client/assets/{session-reasoning-panel-8D2P7iaJ.js → session-reasoning-panel-BAtKTsjn.js} +1 -1
- package/dist/web/client/assets/session-tool-renderer-pGdW2MnV.js +1389 -0
- package/dist/web/client/assets/session-tree-panel-DF3kuF0P.js +1 -0
- package/dist/web/client/assets/settings-dialog-BRWheaBZ.js +2 -0
- package/dist/web/client/assets/{skeleton-C3mo31Qu.js → skeleton-D5Y9nBfp.js} +1 -1
- package/dist/web/client/assets/{skeleton-loaders-BMa_G4yX.js → skeleton-loaders-DOKGa7CW.js} +1 -1
- package/dist/web/client/assets/sparkles-C4VQyMox.js +1 -0
- package/dist/web/client/assets/spinner-C3sPnLdu.js +1 -0
- package/dist/web/client/assets/square-BbTF3gLc.js +1 -0
- package/dist/web/client/assets/square-terminal-BLq2bQVF.js +1 -0
- package/dist/web/client/assets/{subagent-chat-panel-C5ukYiUx.js → subagent-chat-panel-B6d4Z3bV.js} +1 -1
- package/dist/web/client/assets/subagent-transcript-CQuPs6N4.js +1 -0
- package/dist/web/client/assets/{subagents-panel-SJKhaVTr.js → subagents-panel-ajf--C_-.js} +1 -1
- package/dist/web/client/assets/sun-C7zg8Oas.js +1 -0
- package/dist/web/client/assets/{surfaces-CpfsGAIA.js → surfaces-BULKVm-B.js} +1 -1
- package/dist/web/client/assets/switch-CoSNSJEY.js +1 -0
- package/dist/web/client/assets/terminal-Ceucj7us.js +1 -0
- package/dist/web/client/assets/toast-CS0pnDlS.js +1 -0
- package/dist/web/client/assets/tokens-BcUIpW6Y.js +1 -0
- package/dist/web/client/assets/tool-result-C-vs_tjQ.js +4 -0
- package/dist/web/client/assets/tool-timeline-B4ci1oJg.js +1 -0
- package/dist/web/client/assets/triangle-alert-BuzmrrqI.js +1 -0
- package/dist/web/client/assets/types-Cr5Z97oW.js +1 -0
- package/dist/web/client/assets/{ui-preferences-aG2U2jjW.js → ui-preferences-1YaENqef.js} +1 -1
- package/dist/web/client/assets/{use-presence-7I2qv4qI.js → use-presence-D2YmRKr3.js} +1 -1
- package/dist/web/client/assets/{use-reduced-motion-BOcG709U.js → use-reduced-motion-CaQBb3Qc.js} +2 -2
- package/dist/web/client/assets/{useBaseUiId-D9ZGPZ6f.js → useBaseUiId-BlzQUkVG.js} +1 -1
- package/dist/web/client/assets/{useControlled-CgAAWIy9.js → useControlled-CkQSkSv1.js} +1 -1
- package/dist/web/client/assets/utils-Dpy9ZFOr.js +1 -0
- package/dist/web/client/assets/virtualized-turn-list-Bcq088gZ.js +6 -0
- package/dist/web/client/assets/workspace-panel-CjKMroC6.js +1 -0
- package/dist/web/client/assets/{workspace-path-nav-DqPbETfJ.js → workspace-path-nav-DmxBrMV6.js} +2 -2
- package/dist/web/client/assets/wrench-BYnD147U.js +1 -0
- package/dist/web/client/assets/x-DEU6H3M-.js +1 -0
- package/dist/web/client/bundle-budget.json +6 -6
- package/dist/web/server/_tanstack-start-manifest_v-BZR0i182-OLTGGEDQ.js +96 -0
- package/dist/web/server/{artifacts-panel-BN3DgqfV-N73J6N5Y.js → artifacts-panel-BySfu7im-AKBWHYJS.js} +75 -67
- package/dist/web/server/{chat-command-palette-G8awyZRw-2QE7FXGT.js → chat-command-palette-BLGKnp-w-OKFIKD3T.js} +52 -43
- package/dist/web/server/{chunk-6SOMNRAX.js → chunk-22XP6PHK.js} +56 -17
- package/dist/web/server/{chunk-O2UYZT3Z.js → chunk-2GQATGF4.js} +93 -37
- package/dist/web/server/{chunk-EDAWH2MT.js → chunk-2HOITUWV.js} +5 -5
- package/dist/web/server/{chunk-NZ6KQT2X.js → chunk-2XQYM4KB.js} +2 -2
- package/dist/web/server/{chunk-K6PTNSCW.js → chunk-36BG6OPK.js} +2 -2
- package/dist/web/server/chunk-3OOZPQZF.js +51 -0
- package/dist/web/server/{chunk-YMPJMHXZ.js → chunk-3YYNG52U.js} +5774 -4759
- package/dist/web/server/{chunk-NMBH57JT.js → chunk-47TH5VUT.js} +17 -15
- package/dist/web/server/{chunk-CCYLHNZJ.js → chunk-4B2PJSK5.js} +150 -1787
- package/dist/web/server/chunk-4IVORBQD.js +39 -0
- package/dist/web/server/{chunk-CW6KZUKT.js → chunk-4LBXVBM7.js} +5 -5
- package/dist/web/server/{chunk-DKD32TRM.js → chunk-5FIJPXUA.js} +3343 -14
- package/dist/web/server/{chunk-JVOW2NWC.js → chunk-5VPNOUVY.js} +13 -104
- package/dist/web/server/chunk-7LUHWO5G.js +28 -0
- package/dist/web/server/chunk-7SZKAHLD.js +25 -0
- package/dist/web/server/{chunk-UE32PAV2.js → chunk-ACZS5EEZ.js} +4 -4
- package/dist/web/server/{chunk-CAPTFJOC.js → chunk-AWVHN432.js} +4 -4
- package/dist/web/server/{chunk-SDV3P3IW.js → chunk-BMXYQRMJ.js} +96 -78
- package/dist/web/server/{chunk-OVJYUWSQ.js → chunk-C2YGLMFE.js} +1 -1
- package/dist/web/server/{chunk-7HXCGBUP.js → chunk-CIE2PLNB.js} +5 -5
- package/dist/web/server/chunk-CMOAC245.js +28 -0
- package/dist/web/server/{chunk-7FK6YEMA.js → chunk-CRCVWYBA.js} +2 -9
- package/dist/web/server/chunk-DIVIHC5K.js +100 -0
- package/dist/web/server/{chunk-XJ6TGSUB.js → chunk-EKVRPCBJ.js} +1 -1
- package/dist/web/server/{chunk-ZNFXBGLK.js → chunk-ERYPONRF.js} +1 -1
- package/dist/web/server/chunk-F3OV445J.js +25 -0
- package/dist/web/server/{chunk-5727TXOK.js → chunk-F5DJQ3PQ.js} +36 -36
- package/dist/web/server/{chunk-NCK2FJAD.js → chunk-FAJILEF2.js} +142 -110
- package/dist/web/server/{chunk-JPDRUSUD.js → chunk-FF2M3MLP.js} +2 -2
- package/dist/web/server/{chunk-IPV4GLJL.js → chunk-FHZAFF2A.js} +7 -24
- package/dist/web/server/chunk-FOMB2JR7.js +26 -0
- package/dist/web/server/{chunk-43S5N7SH.js → chunk-FVWPODLT.js} +9 -8
- package/dist/web/server/chunk-G3WQTXJY.js +25 -0
- package/dist/web/server/{chunk-ESM7OCRL.js → chunk-GLNLSEZJ.js} +7 -7
- package/dist/web/server/chunk-GNDXVFJY.js +28 -0
- package/dist/web/server/chunk-GR765UTQ.js +102 -0
- package/dist/web/server/{chunk-RXUMFFUV.js → chunk-GSG3K6RA.js} +2 -2
- package/dist/web/server/chunk-HFN4TNR3.js +31 -0
- package/dist/web/server/chunk-I36LJXNY.js +113 -0
- package/dist/web/server/{chunk-ZOVXMNJM.js → chunk-IIPUA4LB.js} +249 -304
- package/dist/web/server/{chunk-7PQTPSEE.js → chunk-INWLYZZ6.js} +1 -1
- package/dist/web/server/chunk-JCK6B7ZW.js +1677 -0
- package/dist/web/server/chunk-JEQQEY6O.js +30 -0
- package/dist/web/server/{chunk-4OTHKQMG.js → chunk-JLGBOCFM.js} +145 -111
- package/dist/web/server/chunk-JVXQQYXB.js +154 -0
- package/dist/web/server/{chunk-FT74GAAH.js → chunk-JZ2WBCIH.js} +674 -669
- package/dist/web/server/chunk-KABZXD6N.js +152 -0
- package/dist/web/server/{chunk-WB2LJC3R.js → chunk-L2SVMQWB.js} +14 -45
- package/dist/web/server/chunk-LOFZS555.js +28 -0
- package/dist/web/server/{chunk-MJXXVQNA.js → chunk-LQRH6BP6.js} +25 -18
- package/dist/web/server/{chunk-WU6X3GPJ.js → chunk-MTVGA2MH.js} +72 -52
- package/dist/web/server/{chunk-DLA5TLKX.js → chunk-NHZRY22Z.js} +110 -39
- package/dist/web/server/chunk-NZ5YXXQ5.js +39 -0
- package/dist/web/server/chunk-ONWT54IL.js +148 -0
- package/dist/web/server/{chunk-E5HALE4M.js → chunk-OYWUPJ72.js} +2 -2
- package/dist/web/server/{chunk-YVGCPUAW.js → chunk-PISNXFEK.js} +3 -3
- package/dist/web/server/{chunk-33QA7BQJ.js → chunk-PYTU4DGR.js} +16 -10
- package/dist/web/server/{chunk-7E76R7MB.js → chunk-QHCQDVCQ.js} +1 -2
- package/dist/web/server/{chunk-ENGEUJIH.js → chunk-QN7KFCUW.js} +4321 -3650
- package/dist/web/server/chunk-QWWG3YC6.js +25 -0
- package/dist/web/server/chunk-RPGWRA2X.js +39 -0
- package/dist/web/server/chunk-RPWKCJHL.js +18 -0
- package/dist/web/server/chunk-RWYAKZCZ.js +39 -0
- package/dist/web/server/chunk-SGMJ5CGW.js +36 -0
- package/dist/web/server/{chunk-BQROC4PL.js → chunk-TNZKPEE6.js} +13 -7
- package/dist/web/server/chunk-TSOBRZPG.js +41 -0
- package/dist/web/server/{chunk-BUXJSBE3.js → chunk-UIUZ4ETR.js} +2 -2
- package/dist/web/server/{chunk-TLNZNR7C.js → chunk-UUDBEYKV.js} +2 -2
- package/dist/web/server/{chunk-HQ5TEXHT.js → chunk-UXS5E6OE.js} +4 -4
- package/dist/web/server/chunk-V7PDLH3T.js +73 -0
- package/dist/web/server/chunk-VCQ65B3G.js +28 -0
- package/dist/web/server/{chunk-IXGLKAPN.js → chunk-VHLBXWEN.js} +57 -42
- package/dist/web/server/{chunk-OMEDERPG.js → chunk-WU6KNEGU.js} +47 -32
- package/dist/web/server/chunk-X37KO4BO.js +29 -0
- package/dist/web/server/chunk-X5AQ7KHU.js +22 -0
- package/dist/web/server/chunk-XZCIEF54.js +28 -0
- package/dist/web/server/{chunk-7NZ3FJDA.js → chunk-YBCP4V6T.js} +2 -2
- package/dist/web/server/{chunk-7UTDOTOU.js → chunk-YKJJDQAK.js} +28 -100
- package/dist/web/server/chunk-Z4OTKGMN.js +25 -0
- package/dist/web/server/chunk-ZJIELDZL.js +39 -0
- package/dist/web/server/{chunk-UDD5W4CR.js → chunk-ZMF45HAO.js} +58 -45
- package/dist/web/server/chunk-ZNED4KTU.js +105 -0
- package/dist/web/server/chunk-ZNI5AL4B.js +30 -0
- package/dist/web/server/create-project-dialog-CigfFgAj-QS27NAJH.js +295 -0
- package/dist/web/server/{fork-picker-dialog-YKlapaxN-DR5L74ST.js → fork-picker-dialog-B5J-S5Nm-QOMVVHI7.js} +11 -10
- package/dist/web/server/{highlighted-body-KPVGNVTW-Ct6g7FVa-YZHVMLW4.js → highlighted-body-KPVGNVTW-D4Xsgab0-BZNKZ2YE.js} +3 -3
- package/dist/web/server/{markdown-BzNejPoZ-6ITTDAV6.js → markdown-DaTMVcnu-37DWI2JW.js} +4 -4
- package/dist/web/server/{markdown-code-DAwXuW6m-HHVELO6I.js → markdown-code-Cvz3a-x3-WAD4KC4A.js} +5 -5
- package/dist/web/server/{mermaid-HWGCJPDP-Ca26PwPZ-5EWRESLM.js → mermaid-HWGCJPDP-CDDePcVz-4BWFRGWL.js} +2 -2
- package/dist/web/server/{message-queue-Demph1x4-RBJUC3AT.js → message-queue-BsrLcNPX-CUCBSF6U.js} +15 -14
- package/dist/web/server/{model-selector-list-BmzLiCx9-TK6JGGKU.js → model-selector-list-Csw4nOra-IOMN5JMO.js} +23 -22
- package/dist/web/server/openui-renderer-TbIFXEW2-BET2OXM2.js +39 -0
- package/dist/web/server/{prompt-suggestions-yPZqX__K-3VGJC4IF.js → prompt-suggestions-D6RXFQF4-7WHYRNMN.js} +5 -5
- package/dist/web/server/{repl-panel-CgUF1qUw-3DFD2V53.js → repl-panel-CBwh0VGD-USDEOGGJ.js} +8 -9
- package/dist/web/server/{resources-panel-ChUliWV--JITAGS6Q.js → resources-panel-rn64m-sL-7QXEGRNX.js} +9 -10
- package/dist/web/server/{router-CPdFlpbe-LAD4MNZB.js → router-RPObiwZR-AFMFSYSZ.js} +2852 -186
- package/dist/web/server/{routes-hkom6S6L-DUPPQHPY.js → routes-Dn-deuPY-MDXEQXRU.js} +2219 -2435
- package/dist/web/server/server.js +6 -6
- package/dist/web/server/{session-insights-panel-xgrkX1Rp-FDNURBXZ.js → session-insights-panel-DKkakWj6-ITHKDXF4.js} +1 -1
- package/dist/web/server/{session-reasoning-panel-m1RgcIph-NUXGXVKE.js → session-reasoning-panel-CXMCAM8C-HZMR5JCO.js} +9 -10
- package/dist/web/server/session-tool-renderer-jldnNioy-5ATOVAG5.js +46 -0
- package/dist/web/server/session-tree-panel-WaHHv775-HRUHFSFO.js +229 -0
- package/dist/web/server/{settings-dialog-BCEfmgtP-T3WQEZHB.js → settings-dialog-CzeangBl-YKL7CLPF.js} +565 -388
- package/dist/web/server/{start-DVUbMfrb-ELVIFRUY.js → start-QK6aG02q-RXFV6K5L.js} +1 -1
- package/dist/web/server/{subagent-chat-panel-BTwI1kdB-LKBWA4GD.js → subagent-chat-panel-Fa31QewE-YDPOKN74.js} +49 -46
- package/dist/web/server/{subagents-panel-8Z9_csoV-HYMEEBHB.js → subagents-panel-DjOcQxp4-GZYOZOYC.js} +46 -44
- package/dist/web/server/tool-timeline-CfuizRid-L3Y3OSCH.js +15 -0
- package/dist/web/server/{workspace-panel-BHEB9nRM-TS62SYBA.js → workspace-panel-BU50q4Bu-JHTQPR6R.js} +109 -93
- package/package.json +1 -1
- package/dist/web/client/assets/agent-disclosure-CMrxF7L-.js +0 -1
- package/dist/web/client/assets/analytics-stub-C2vgmGm_.js +0 -1
- package/dist/web/client/assets/artifacts-panel-DmQghvw8.js +0 -1
- package/dist/web/client/assets/bot-DbB9BKL0.js +0 -1
- package/dist/web/client/assets/bundle-mjs-cJTHqqzI.js +0 -1
- package/dist/web/client/assets/chat-C24kD2SP.js +0 -52
- package/dist/web/client/assets/chat-command-palette-BIwjhE6s.js +0 -1
- package/dist/web/client/assets/check-B3LlvM65.js +0 -1
- package/dist/web/client/assets/chevron-down-DUUprRP5.js +0 -1
- package/dist/web/client/assets/chevron-right-NVqQIoiO.js +0 -1
- package/dist/web/client/assets/chunk-YOKDWASO-Bte3iwlH.js +0 -143
- package/dist/web/client/assets/citations-BUvM92nt.js +0 -1
- package/dist/web/client/assets/command-Dv96gATQ.js +0 -1
- package/dist/web/client/assets/createLucideIcon-_dfI7Arx.js +0 -1
- package/dist/web/client/assets/dialog-BCb4rQh0.js +0 -1
- package/dist/web/client/assets/dist-52wg4XPY.js +0 -1
- package/dist/web/client/assets/eye-CDHqtVoE.js +0 -1
- package/dist/web/client/assets/file-text-TmalmYrb.js +0 -1
- package/dist/web/client/assets/folder-vuNT4shY.js +0 -1
- package/dist/web/client/assets/gauge-BsDqNM1A.js +0 -1
- package/dist/web/client/assets/globals-DCtBkCSD.css +0 -2
- package/dist/web/client/assets/hard-drive-BT7UxHQu.js +0 -1
- package/dist/web/client/assets/horizontal-resize-VLjLByUV.js +0 -1
- package/dist/web/client/assets/index-BGnQeUYE.js +0 -12
- package/dist/web/client/assets/ipython-tool-CkHaO3PW.js +0 -3
- package/dist/web/client/assets/is-ref-object-BcRWZ4l7.js +0 -1
- package/dist/web/client/assets/loader-circle-B5GIZGxd.js +0 -1
- package/dist/web/client/assets/markdown-BHkByC9K.js +0 -2
- package/dist/web/client/assets/mermaid-HWGCJPDP-CY3N5ECk.js +0 -1
- package/dist/web/client/assets/package-BKBPgwMP.js +0 -1
- package/dist/web/client/assets/pencil-CdO6qfv3.js +0 -1
- package/dist/web/client/assets/plug-BRROUIw-.js +0 -1
- package/dist/web/client/assets/prompt-input-WaGSKZCU.js +0 -1
- package/dist/web/client/assets/provider-catalog-C0XBIasJ.js +0 -1
- package/dist/web/client/assets/provider-label-Cka0ep0S.js +0 -1
- package/dist/web/client/assets/react-CwJFpaho.js +0 -1
- package/dist/web/client/assets/react-dom-DX3XddaT.js +0 -1
- package/dist/web/client/assets/refresh-cw-l9WPHRkq.js +0 -1
- package/dist/web/client/assets/resource-helpers-BuWybA8l.js +0 -2
- package/dist/web/client/assets/right-panel-context-CS8tJMzE.js +0 -1
- package/dist/web/client/assets/right-panel-registry-BCW7fQTG.js +0 -2
- package/dist/web/client/assets/rotate-ccw-CfGhzOv7.js +0 -1
- package/dist/web/client/assets/routes-BWe5Iz-2.js +0 -16
- package/dist/web/client/assets/safe-external-url-BbAom7Bm.js +0 -1
- package/dist/web/client/assets/search-BjcXAUrI.js +0 -1
- package/dist/web/client/assets/session-tool-renderer-3E3cv8D0.js +0 -1395
- package/dist/web/client/assets/settings-dialog-B8lHq2tT.js +0 -2
- package/dist/web/client/assets/sparkles-D8XIY8pN.js +0 -1
- package/dist/web/client/assets/square-DQaQu9bp.js +0 -1
- package/dist/web/client/assets/square-terminal-BsopiuN7.js +0 -1
- package/dist/web/client/assets/subagent-transcript-lqNcSVbH.js +0 -1
- package/dist/web/client/assets/sun-D0llhiMU.js +0 -1
- package/dist/web/client/assets/switch-D3FhZU-S.js +0 -1
- package/dist/web/client/assets/terminal-BQAKkBY6.js +0 -1
- package/dist/web/client/assets/toast-lnCWGgSE.js +0 -1
- package/dist/web/client/assets/tokens-Ch5WqXC_.js +0 -1
- package/dist/web/client/assets/tool-result-B_yb2JoE.js +0 -4
- package/dist/web/client/assets/tool-timeline-VnMRQoLS.js +0 -1
- package/dist/web/client/assets/triangle-alert-GAYh_5d3.js +0 -1
- package/dist/web/client/assets/utils-Brtgag-m.js +0 -1
- package/dist/web/client/assets/virtualized-turn-list-BgUgX6tM.js +0 -6
- package/dist/web/client/assets/workspace-panel-CKF5JQl2.js +0 -1
- package/dist/web/client/assets/wrench-Myc12BTA.js +0 -1
- package/dist/web/client/assets/x-BGsDD848.js +0 -1
- package/dist/web/server/_tanstack-start-manifest_v-BDPifIFN-DTSNCHBX.js +0 -91
- package/dist/web/server/chunk-2ST2ULW7.js +0 -24
- package/dist/web/server/chunk-3C4CFCIS.js +0 -19
- package/dist/web/server/chunk-3IHTZSBY.js +0 -22
- package/dist/web/server/chunk-4QD4PCVP.js +0 -19
- package/dist/web/server/chunk-4ZIEVI5O.js +0 -63
- package/dist/web/server/chunk-7CNGNFFK.js +0 -23
- package/dist/web/server/chunk-AHTO6GDS.js +0 -33
- package/dist/web/server/chunk-CHEC7TWB.js +0 -22
- package/dist/web/server/chunk-D7ELZVTI.js +0 -33
- package/dist/web/server/chunk-GS2IZGRC.js +0 -19
- package/dist/web/server/chunk-HFQZLPU2.js +0 -29
- package/dist/web/server/chunk-JBLHIEVG.js +0 -22
- package/dist/web/server/chunk-JDCCC7A7.js +0 -3382
- package/dist/web/server/chunk-JIULUYHT.js +0 -24
- package/dist/web/server/chunk-KBWUBWVJ.js +0 -60
- package/dist/web/server/chunk-LJ6Y7DBH.js +0 -128
- package/dist/web/server/chunk-M5RSPNYN.js +0 -22
- package/dist/web/server/chunk-O2DUZJYK.js +0 -19
- package/dist/web/server/chunk-OKL5ZRVB.js +0 -33
- package/dist/web/server/chunk-OOXWPL22.js +0 -22
- package/dist/web/server/chunk-OSMP55KI.js +0 -94
- package/dist/web/server/chunk-SFTKGQ7H.js +0 -33
- package/dist/web/server/chunk-TNL4YV63.js +0 -29
- package/dist/web/server/chunk-UCA4WN66.js +0 -45
- package/dist/web/server/chunk-WWJF4RO2.js +0 -19
- package/dist/web/server/chunk-X7D6GFQU.js +0 -34
- package/dist/web/server/chunk-XA42CHF2.js +0 -22
- package/dist/web/server/openui-renderer-moJGf0LA-QCU3PI6H.js +0 -38
- package/dist/web/server/session-tool-renderer-CglQ2ky7-2JVYNZG2.js +0 -45
- package/dist/web/server/tool-timeline-QL9k5dzA-RLU26HXT.js +0 -16
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Badge,
|
|
3
|
+
UiErrorBoundary,
|
|
4
|
+
encodeOpenPanelActionMessage
|
|
5
|
+
} from "./chunk-2HOITUWV.js";
|
|
6
|
+
import {
|
|
7
|
+
Card,
|
|
8
|
+
CardContent,
|
|
9
|
+
CardDescription,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardTitle,
|
|
12
|
+
validateAndNormalizeOpenUIHtmlArtifact
|
|
13
|
+
} from "./chunk-FF2M3MLP.js";
|
|
14
|
+
import {
|
|
15
|
+
OpenPanelActionSchema,
|
|
16
|
+
RightPanelIdSchema,
|
|
17
|
+
WorkspaceRelativePathSchema,
|
|
18
|
+
external_exports,
|
|
19
|
+
object,
|
|
20
|
+
registry,
|
|
21
|
+
toJSONSchema
|
|
22
|
+
} from "./chunk-3YYNG52U.js";
|
|
1
23
|
import {
|
|
2
24
|
Alert,
|
|
3
25
|
AlertDescription,
|
|
@@ -6,12 +28,7 @@ import {
|
|
|
6
28
|
FieldLabel,
|
|
7
29
|
Separator,
|
|
8
30
|
Switch
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import {
|
|
11
|
-
Badge,
|
|
12
|
-
UiErrorBoundary,
|
|
13
|
-
encodeOpenPanelActionMessage
|
|
14
|
-
} from "./chunk-EDAWH2MT.js";
|
|
31
|
+
} from "./chunk-L2SVMQWB.js";
|
|
15
32
|
import {
|
|
16
33
|
Select,
|
|
17
34
|
arrow$2,
|
|
@@ -24,31 +41,17 @@ import {
|
|
|
24
41
|
shift,
|
|
25
42
|
size,
|
|
26
43
|
useFloating
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
Card,
|
|
30
|
-
CardContent,
|
|
31
|
-
CardDescription,
|
|
32
|
-
CardHeader,
|
|
33
|
-
CardTitle,
|
|
34
|
-
validateAndNormalizeOpenUIHtmlArtifact
|
|
35
|
-
} from "./chunk-JPDRUSUD.js";
|
|
36
|
-
import {
|
|
37
|
-
OpenPanelActionSchema,
|
|
38
|
-
RightPanelIdSchema,
|
|
39
|
-
WorkspaceRelativePathSchema,
|
|
40
|
-
external_exports,
|
|
41
|
-
object,
|
|
42
|
-
registry,
|
|
43
|
-
toJSONSchema
|
|
44
|
-
} from "./chunk-YMPJMHXZ.js";
|
|
44
|
+
} from "./chunk-22XP6PHK.js";
|
|
45
45
|
import {
|
|
46
46
|
segmentOpenUIContent
|
|
47
47
|
} from "./chunk-NFRJDPB3.js";
|
|
48
48
|
import {
|
|
49
49
|
ChevronUp,
|
|
50
50
|
isSafeExternalUrl
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-TNZKPEE6.js";
|
|
52
|
+
import {
|
|
53
|
+
ChevronDown
|
|
54
|
+
} from "./chunk-G3WQTXJY.js";
|
|
52
55
|
import {
|
|
53
56
|
Dialog as Dialog2,
|
|
54
57
|
DialogContent as DialogContent2,
|
|
@@ -76,41 +79,38 @@ import {
|
|
|
76
79
|
useFocusGuards,
|
|
77
80
|
useId$1,
|
|
78
81
|
useLayoutEffect2
|
|
79
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-INWLYZZ6.js";
|
|
80
83
|
import {
|
|
81
84
|
Input
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-FVWPODLT.js";
|
|
83
86
|
import {
|
|
84
87
|
Dialog,
|
|
85
88
|
DialogContent,
|
|
86
89
|
DialogHeader,
|
|
87
90
|
DialogTitle
|
|
88
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-I36LJXNY.js";
|
|
89
92
|
import {
|
|
90
93
|
Button,
|
|
91
94
|
require_with_selector,
|
|
92
95
|
visuallyHidden
|
|
93
|
-
} from "./chunk-
|
|
94
|
-
import {
|
|
95
|
-
ChevronDown
|
|
96
|
-
} from "./chunk-WWJF4RO2.js";
|
|
96
|
+
} from "./chunk-UXS5E6OE.js";
|
|
97
97
|
import {
|
|
98
98
|
useBaseUiId
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-OYWUPJ72.js";
|
|
100
100
|
import {
|
|
101
101
|
formatErrorMessage,
|
|
102
102
|
useIsoLayoutEffect,
|
|
103
103
|
useRenderElement
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-EKVRPCBJ.js";
|
|
105
105
|
import {
|
|
106
106
|
characterEntitiesLegacy
|
|
107
107
|
} from "./chunk-ST5I2PLN.js";
|
|
108
108
|
import {
|
|
109
109
|
Markdown
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-FHZAFF2A.js";
|
|
111
111
|
import {
|
|
112
112
|
cn
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-JCK6B7ZW.js";
|
|
114
114
|
import {
|
|
115
115
|
VFile,
|
|
116
116
|
decodeNamedCharacterReference,
|
|
@@ -121,10 +121,10 @@ import {
|
|
|
121
121
|
unified,
|
|
122
122
|
urlAttributes,
|
|
123
123
|
visit
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-5FIJPXUA.js";
|
|
125
125
|
import {
|
|
126
126
|
clsx
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-RPWKCJHL.js";
|
|
128
128
|
import {
|
|
129
129
|
__commonJSMin,
|
|
130
130
|
__exportAll,
|
|
@@ -132,8 +132,8 @@ import {
|
|
|
132
132
|
__toESM
|
|
133
133
|
} from "./chunk-L547YHC4.js";
|
|
134
134
|
|
|
135
|
-
// web/app/dist/server/assets/openui-renderer-
|
|
136
|
-
import * as
|
|
135
|
+
// web/app/dist/server/assets/openui-renderer-TbIFXEW2.js
|
|
136
|
+
import * as React$2 from "react";
|
|
137
137
|
import React, { Children, Component as Component2, Fragment as Fragment2, PureComponent, cloneElement as cloneElement2, createContext as createContext2, createElement as createElement2, forwardRef as forwardRef2, isValidElement as isValidElement2, memo as memo2, useCallback as useCallback2, useContext as useContext2, useEffect as useEffect2, useId as useId2, useImperativeHandle, useInsertionEffect, useLayoutEffect as useLayoutEffect3, useMemo as useMemo2, useRef as useRef2, useState as useState2, useSyncExternalStore } from "react";
|
|
138
138
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
139
139
|
import * as ReactDOM from "react-dom";
|
|
@@ -22614,8 +22614,8 @@ function createCollection(name) {
|
|
|
22614
22614
|
});
|
|
22615
22615
|
const CollectionProvider = /* @__PURE__ */ __name$22((props) => {
|
|
22616
22616
|
const { scope, children } = props;
|
|
22617
|
-
const ref =
|
|
22618
|
-
const itemMap =
|
|
22617
|
+
const ref = React$2.useRef(null);
|
|
22618
|
+
const itemMap = React$2.useRef(/* @__PURE__ */ new Map()).current;
|
|
22619
22619
|
return /* @__PURE__ */ jsx(CollectionProviderImpl, {
|
|
22620
22620
|
scope,
|
|
22621
22621
|
itemMap,
|
|
@@ -22626,7 +22626,7 @@ function createCollection(name) {
|
|
|
22626
22626
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
22627
22627
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
22628
22628
|
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
22629
|
-
const CollectionSlot =
|
|
22629
|
+
const CollectionSlot = React$2.forwardRef((props, forwardedRef) => {
|
|
22630
22630
|
const { scope, children } = props;
|
|
22631
22631
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
22632
22632
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
@@ -22639,12 +22639,12 @@ function createCollection(name) {
|
|
|
22639
22639
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
22640
22640
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
22641
22641
|
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
22642
|
-
const CollectionItemSlot =
|
|
22642
|
+
const CollectionItemSlot = React$2.forwardRef((props, forwardedRef) => {
|
|
22643
22643
|
const { scope, children, ...itemData } = props;
|
|
22644
|
-
const ref =
|
|
22644
|
+
const ref = React$2.useRef(null);
|
|
22645
22645
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
22646
22646
|
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
22647
|
-
|
|
22647
|
+
React$2.useEffect(() => {
|
|
22648
22648
|
context.itemMap.set(ref, {
|
|
22649
22649
|
ref,
|
|
22650
22650
|
...itemData
|
|
@@ -22660,7 +22660,7 @@ function createCollection(name) {
|
|
|
22660
22660
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
22661
22661
|
function useCollection2(scope) {
|
|
22662
22662
|
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
22663
|
-
return
|
|
22663
|
+
return React$2.useCallback(() => {
|
|
22664
22664
|
const collectionNode = context.collectionRef.current;
|
|
22665
22665
|
if (!collectionNode) return [];
|
|
22666
22666
|
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
@@ -22992,11 +22992,11 @@ function createCollection2(name) {
|
|
|
22992
22992
|
CollectionInit.displayName = PROVIDER_NAME2 + "Init";
|
|
22993
22993
|
const CollectionProviderImpl = /* @__PURE__ */ __name$22((props) => {
|
|
22994
22994
|
const { scope, children, state } = props;
|
|
22995
|
-
const ref =
|
|
22996
|
-
const [collectionElement, setCollectionElement] =
|
|
22995
|
+
const ref = React$2.useRef(null);
|
|
22996
|
+
const [collectionElement, setCollectionElement] = React$2.useState(null);
|
|
22997
22997
|
const composeRefs = useComposedRefs(ref, setCollectionElement);
|
|
22998
22998
|
const [itemMap, setItemMap] = state;
|
|
22999
|
-
|
|
22999
|
+
React$2.useEffect(() => {
|
|
23000
23000
|
if (!collectionElement) return;
|
|
23001
23001
|
const observer = getChildListObserver(() => {
|
|
23002
23002
|
});
|
|
@@ -23021,7 +23021,7 @@ function createCollection2(name) {
|
|
|
23021
23021
|
CollectionProviderImpl.displayName = PROVIDER_NAME2 + "Impl";
|
|
23022
23022
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
23023
23023
|
const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
|
|
23024
|
-
const CollectionSlot =
|
|
23024
|
+
const CollectionSlot = React$2.forwardRef((props, forwardedRef) => {
|
|
23025
23025
|
const { scope, children } = props;
|
|
23026
23026
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
23027
23027
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
@@ -23034,16 +23034,16 @@ function createCollection2(name) {
|
|
|
23034
23034
|
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
23035
23035
|
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
23036
23036
|
const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
|
|
23037
|
-
const CollectionItemSlot =
|
|
23037
|
+
const CollectionItemSlot = React$2.forwardRef((props, forwardedRef) => {
|
|
23038
23038
|
const { scope, children, ...itemData } = props;
|
|
23039
|
-
const ref =
|
|
23040
|
-
const [element, setElement] =
|
|
23039
|
+
const ref = React$2.useRef(null);
|
|
23040
|
+
const [element, setElement] = React$2.useState(null);
|
|
23041
23041
|
const composedRefs = useComposedRefs(forwardedRef, ref, setElement);
|
|
23042
23042
|
const { setItemMap } = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
23043
|
-
const itemDataRef =
|
|
23043
|
+
const itemDataRef = React$2.useRef(itemData);
|
|
23044
23044
|
if (!shallowEqual$3(itemDataRef.current, itemData)) itemDataRef.current = itemData;
|
|
23045
23045
|
const memoizedItemData = itemDataRef.current;
|
|
23046
|
-
|
|
23046
|
+
React$2.useEffect(() => {
|
|
23047
23047
|
const itemData2 = memoizedItemData;
|
|
23048
23048
|
setItemMap((map2) => {
|
|
23049
23049
|
if (!element) return map2;
|
|
@@ -23079,7 +23079,7 @@ function createCollection2(name) {
|
|
|
23079
23079
|
});
|
|
23080
23080
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
23081
23081
|
function useInitCollection() {
|
|
23082
|
-
return
|
|
23082
|
+
return React$2.useState(new OrderedDict());
|
|
23083
23083
|
}
|
|
23084
23084
|
__name$22(useInitCollection, "useInitCollection");
|
|
23085
23085
|
function useCollection2(scope) {
|
|
@@ -23137,7 +23137,7 @@ var __name$21 = (target, value) => __defProp$21(target, "name", {
|
|
|
23137
23137
|
var COLLAPSIBLE_NAME = "Collapsible";
|
|
23138
23138
|
var [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);
|
|
23139
23139
|
var [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);
|
|
23140
|
-
var Collapsible = /* @__PURE__ */
|
|
23140
|
+
var Collapsible = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$21(function Collapsible2(props, forwardedRef) {
|
|
23141
23141
|
const { __scopeCollapsible, open: openProp, defaultOpen, disabled, onOpenChange, ...collapsibleProps } = props;
|
|
23142
23142
|
const [open, setOpen] = useControllableState({
|
|
23143
23143
|
prop: openProp,
|
|
@@ -23150,7 +23150,7 @@ var Collapsible = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$21(fu
|
|
|
23150
23150
|
disabled,
|
|
23151
23151
|
contentId: useId$1(),
|
|
23152
23152
|
open,
|
|
23153
|
-
onOpenToggle:
|
|
23153
|
+
onOpenToggle: React$2.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
23154
23154
|
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
23155
23155
|
"data-state": getState$4(open),
|
|
23156
23156
|
"data-disabled": disabled ? "" : void 0,
|
|
@@ -23160,7 +23160,7 @@ var Collapsible = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$21(fu
|
|
|
23160
23160
|
});
|
|
23161
23161
|
}, "Collapsible"));
|
|
23162
23162
|
var TRIGGER_NAME$8 = "CollapsibleTrigger";
|
|
23163
|
-
var CollapsibleTrigger = /* @__PURE__ */
|
|
23163
|
+
var CollapsibleTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$21(function CollapsibleTrigger2(props, forwardedRef) {
|
|
23164
23164
|
const { __scopeCollapsible, ...triggerProps } = props;
|
|
23165
23165
|
const context = useCollapsibleContext(TRIGGER_NAME$8, __scopeCollapsible);
|
|
23166
23166
|
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
@@ -23176,7 +23176,7 @@ var CollapsibleTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __nam
|
|
|
23176
23176
|
});
|
|
23177
23177
|
}, "CollapsibleTrigger"));
|
|
23178
23178
|
var CONTENT_NAME$7 = "CollapsibleContent";
|
|
23179
|
-
var CollapsibleContent = /* @__PURE__ */
|
|
23179
|
+
var CollapsibleContent = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$21(function CollapsibleContent2(props, forwardedRef) {
|
|
23180
23180
|
const { forceMount, ...contentProps } = props;
|
|
23181
23181
|
const context = useCollapsibleContext(CONTENT_NAME$7, props.__scopeCollapsible);
|
|
23182
23182
|
return /* @__PURE__ */ jsx(Presence, {
|
|
@@ -23188,20 +23188,20 @@ var CollapsibleContent = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __nam
|
|
|
23188
23188
|
})
|
|
23189
23189
|
});
|
|
23190
23190
|
}, "CollapsibleContent"));
|
|
23191
|
-
var CollapsibleContentImpl = /* @__PURE__ */
|
|
23191
|
+
var CollapsibleContentImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$21(function CollapsibleContentImpl2(props, forwardedRef) {
|
|
23192
23192
|
const { __scopeCollapsible, present, children, ...contentProps } = props;
|
|
23193
23193
|
const context = useCollapsibleContext(CONTENT_NAME$7, __scopeCollapsible);
|
|
23194
|
-
const [isPresent, setIsPresent] =
|
|
23195
|
-
const ref =
|
|
23194
|
+
const [isPresent, setIsPresent] = React$2.useState(present);
|
|
23195
|
+
const ref = React$2.useRef(null);
|
|
23196
23196
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
23197
|
-
const heightRef =
|
|
23197
|
+
const heightRef = React$2.useRef(0);
|
|
23198
23198
|
const height = heightRef.current;
|
|
23199
|
-
const widthRef =
|
|
23199
|
+
const widthRef = React$2.useRef(0);
|
|
23200
23200
|
const width = widthRef.current;
|
|
23201
23201
|
const isOpen = context.open || isPresent;
|
|
23202
|
-
const isMountAnimationPreventedRef =
|
|
23203
|
-
const originalStylesRef =
|
|
23204
|
-
|
|
23202
|
+
const isMountAnimationPreventedRef = React$2.useRef(isOpen);
|
|
23203
|
+
const originalStylesRef = React$2.useRef(void 0);
|
|
23204
|
+
React$2.useEffect(() => {
|
|
23205
23205
|
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
23206
23206
|
return () => cancelAnimationFrame(rAF);
|
|
23207
23207
|
}, []);
|
|
@@ -23251,9 +23251,9 @@ var __name$20 = (target, value) => __defProp$20(target, "name", {
|
|
|
23251
23251
|
value,
|
|
23252
23252
|
configurable: true
|
|
23253
23253
|
});
|
|
23254
|
-
var DirectionContext =
|
|
23254
|
+
var DirectionContext = React$2.createContext(void 0);
|
|
23255
23255
|
function useDirection(localDir) {
|
|
23256
|
-
const globalDir =
|
|
23256
|
+
const globalDir = React$2.useContext(DirectionContext);
|
|
23257
23257
|
return localDir || globalDir || "ltr";
|
|
23258
23258
|
}
|
|
23259
23259
|
__name$20(useDirection, "useDirection");
|
|
@@ -23274,7 +23274,7 @@ var ACCORDION_KEYS = [
|
|
|
23274
23274
|
var [Collection$4, useCollection$4, createCollectionScope$4] = /* @__PURE__ */ createCollection(ACCORDION_NAME);
|
|
23275
23275
|
var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [createCollectionScope$4, createCollapsibleScope]);
|
|
23276
23276
|
var useCollapsibleScope = createCollapsibleScope();
|
|
23277
|
-
var Accordion$2 = /* @__PURE__ */
|
|
23277
|
+
var Accordion$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function Accordion2(props, forwardedRef) {
|
|
23278
23278
|
const { type, ...accordionProps } = props;
|
|
23279
23279
|
const singleProps = accordionProps;
|
|
23280
23280
|
const multipleProps = accordionProps;
|
|
@@ -23291,7 +23291,7 @@ var Accordion$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$19(fu
|
|
|
23291
23291
|
}, "Accordion"));
|
|
23292
23292
|
var [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);
|
|
23293
23293
|
var [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(ACCORDION_NAME, { collapsible: false });
|
|
23294
|
-
var AccordionImplSingle = /* @__PURE__ */
|
|
23294
|
+
var AccordionImplSingle = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionImplSingle2(props, forwardedRef) {
|
|
23295
23295
|
const { value: valueProp, defaultValue, onValueChange = /* @__PURE__ */ __name$19(() => {
|
|
23296
23296
|
}, "onValueChange"), collapsible = false, ...accordionSingleProps } = props;
|
|
23297
23297
|
const [value, setValue] = useControllableState({
|
|
@@ -23302,9 +23302,9 @@ var AccordionImplSingle = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __na
|
|
|
23302
23302
|
});
|
|
23303
23303
|
return /* @__PURE__ */ jsx(AccordionValueProvider, {
|
|
23304
23304
|
scope: props.__scopeAccordion,
|
|
23305
|
-
value:
|
|
23305
|
+
value: React$2.useMemo(() => value ? [value] : [], [value]),
|
|
23306
23306
|
onItemOpen: setValue,
|
|
23307
|
-
onItemClose:
|
|
23307
|
+
onItemClose: React$2.useCallback(() => collapsible && setValue(""), [collapsible, setValue]),
|
|
23308
23308
|
children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, {
|
|
23309
23309
|
scope: props.__scopeAccordion,
|
|
23310
23310
|
collapsible,
|
|
@@ -23315,7 +23315,7 @@ var AccordionImplSingle = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __na
|
|
|
23315
23315
|
})
|
|
23316
23316
|
});
|
|
23317
23317
|
}, "AccordionImplSingle"));
|
|
23318
|
-
var AccordionImplMultiple = /* @__PURE__ */
|
|
23318
|
+
var AccordionImplMultiple = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionImplMultiple2(props, forwardedRef) {
|
|
23319
23319
|
const { value: valueProp, defaultValue, onValueChange = /* @__PURE__ */ __name$19(() => {
|
|
23320
23320
|
}, "onValueChange"), ...accordionMultipleProps } = props;
|
|
23321
23321
|
const [value, setValue] = useControllableState({
|
|
@@ -23324,8 +23324,8 @@ var AccordionImplMultiple = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __
|
|
|
23324
23324
|
onChange: onValueChange,
|
|
23325
23325
|
caller: ACCORDION_NAME
|
|
23326
23326
|
});
|
|
23327
|
-
const handleItemOpen =
|
|
23328
|
-
const handleItemClose =
|
|
23327
|
+
const handleItemOpen = React$2.useCallback((itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]), [setValue]);
|
|
23328
|
+
const handleItemClose = React$2.useCallback((itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)), [setValue]);
|
|
23329
23329
|
return /* @__PURE__ */ jsx(AccordionValueProvider, {
|
|
23330
23330
|
scope: props.__scopeAccordion,
|
|
23331
23331
|
value,
|
|
@@ -23342,9 +23342,9 @@ var AccordionImplMultiple = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __
|
|
|
23342
23342
|
});
|
|
23343
23343
|
}, "AccordionImplMultiple"));
|
|
23344
23344
|
var [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);
|
|
23345
|
-
var AccordionImpl = /* @__PURE__ */
|
|
23345
|
+
var AccordionImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionImpl2(props, forwardedRef) {
|
|
23346
23346
|
const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
|
|
23347
|
-
const accordionRef =
|
|
23347
|
+
const accordionRef = React$2.useRef(null);
|
|
23348
23348
|
const composedRefs = useComposedRefs(accordionRef, forwardedRef);
|
|
23349
23349
|
const getItems = useCollection$4(__scopeAccordion);
|
|
23350
23350
|
const isDirectionLTR = useDirection(dir) === "ltr";
|
|
@@ -23412,7 +23412,7 @@ var AccordionImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$19(
|
|
|
23412
23412
|
}, "AccordionImpl"));
|
|
23413
23413
|
var ITEM_NAME$3 = "AccordionItem";
|
|
23414
23414
|
var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME$3);
|
|
23415
|
-
var AccordionItem$2 = /* @__PURE__ */
|
|
23415
|
+
var AccordionItem$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionItem2(props, forwardedRef) {
|
|
23416
23416
|
const { __scopeAccordion, value, ...accordionItemProps } = props;
|
|
23417
23417
|
const accordionContext = useAccordionContext(ITEM_NAME$3, __scopeAccordion);
|
|
23418
23418
|
const valueContext = useAccordionValueContext(ITEM_NAME$3, __scopeAccordion);
|
|
@@ -23441,7 +23441,7 @@ var AccordionItem$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1
|
|
|
23441
23441
|
});
|
|
23442
23442
|
}, "AccordionItem"));
|
|
23443
23443
|
var HEADER_NAME = "AccordionHeader";
|
|
23444
|
-
var AccordionHeader = /* @__PURE__ */
|
|
23444
|
+
var AccordionHeader = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionHeader2(props, forwardedRef) {
|
|
23445
23445
|
const { __scopeAccordion, ...headerProps } = props;
|
|
23446
23446
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
23447
23447
|
const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);
|
|
@@ -23454,7 +23454,7 @@ var AccordionHeader = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1
|
|
|
23454
23454
|
});
|
|
23455
23455
|
}, "AccordionHeader"));
|
|
23456
23456
|
var TRIGGER_NAME$7 = "AccordionTrigger";
|
|
23457
|
-
var AccordionTrigger$1 = /* @__PURE__ */
|
|
23457
|
+
var AccordionTrigger$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionTrigger2(props, forwardedRef) {
|
|
23458
23458
|
const { __scopeAccordion, ...triggerProps } = props;
|
|
23459
23459
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
23460
23460
|
const itemContext = useAccordionItemContext(TRIGGER_NAME$7, __scopeAccordion);
|
|
@@ -23473,7 +23473,7 @@ var AccordionTrigger$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __nam
|
|
|
23473
23473
|
});
|
|
23474
23474
|
}, "AccordionTrigger"));
|
|
23475
23475
|
var CONTENT_NAME$6 = "AccordionContent";
|
|
23476
|
-
var AccordionContent$1 = /* @__PURE__ */
|
|
23476
|
+
var AccordionContent$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$19(function AccordionContent2(props, forwardedRef) {
|
|
23477
23477
|
const { __scopeAccordion, ...contentProps } = props;
|
|
23478
23478
|
const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);
|
|
23479
23479
|
const itemContext = useAccordionItemContext(CONTENT_NAME$6, __scopeAccordion);
|
|
@@ -25423,7 +25423,7 @@ var __name$18 = (target, value) => __defProp$18(target, "name", {
|
|
|
25423
25423
|
configurable: true
|
|
25424
25424
|
});
|
|
25425
25425
|
function useSize(element) {
|
|
25426
|
-
const [size2, setSize] =
|
|
25426
|
+
const [size2, setSize] = React$2.useState(void 0);
|
|
25427
25427
|
useLayoutEffect2(() => {
|
|
25428
25428
|
if (element) {
|
|
25429
25429
|
setSize({
|
|
@@ -25467,8 +25467,8 @@ var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
|
25467
25467
|
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
25468
25468
|
var Popper = /* @__PURE__ */ __name$17((props) => {
|
|
25469
25469
|
const { __scopePopper, children } = props;
|
|
25470
|
-
const [anchor, setAnchor] =
|
|
25471
|
-
const [placementState, setPlacementState] =
|
|
25470
|
+
const [anchor, setAnchor] = React$2.useState(null);
|
|
25471
|
+
const [placementState, setPlacementState] = React$2.useState(void 0);
|
|
25472
25472
|
return /* @__PURE__ */ jsx(PopperProvider, {
|
|
25473
25473
|
scope: __scopePopper,
|
|
25474
25474
|
anchor,
|
|
@@ -25479,18 +25479,18 @@ var Popper = /* @__PURE__ */ __name$17((props) => {
|
|
|
25479
25479
|
});
|
|
25480
25480
|
}, "Popper");
|
|
25481
25481
|
var ANCHOR_NAME = "PopperAnchor";
|
|
25482
|
-
var PopperAnchor = /* @__PURE__ */
|
|
25482
|
+
var PopperAnchor = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$17(function PopperAnchor2(props, forwardedRef) {
|
|
25483
25483
|
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
25484
25484
|
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
25485
|
-
const ref =
|
|
25485
|
+
const ref = React$2.useRef(null);
|
|
25486
25486
|
const onAnchorChange = context.onAnchorChange;
|
|
25487
|
-
const callbackRef =
|
|
25487
|
+
const callbackRef = React$2.useCallback((node) => {
|
|
25488
25488
|
ref.current = node;
|
|
25489
25489
|
if (node) onAnchorChange(node);
|
|
25490
25490
|
}, [onAnchorChange]);
|
|
25491
25491
|
const composedRefs = useComposedRefs(forwardedRef, callbackRef);
|
|
25492
|
-
const anchorRef =
|
|
25493
|
-
|
|
25492
|
+
const anchorRef = React$2.useRef(null);
|
|
25493
|
+
React$2.useEffect(() => {
|
|
25494
25494
|
if (!virtualRef) return;
|
|
25495
25495
|
const previousAnchor = anchorRef.current;
|
|
25496
25496
|
anchorRef.current = virtualRef.current;
|
|
@@ -25508,12 +25508,12 @@ var PopperAnchor = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$17(f
|
|
|
25508
25508
|
}, "PopperAnchor"));
|
|
25509
25509
|
var CONTENT_NAME$5 = "PopperContent";
|
|
25510
25510
|
var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME$5);
|
|
25511
|
-
var PopperContent = /* @__PURE__ */
|
|
25511
|
+
var PopperContent = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$17(function PopperContent2(props, forwardedRef) {
|
|
25512
25512
|
const { __scopePopper, side = "bottom", sideOffset = 0, align = "center", alignOffset = 0, arrowPadding = 0, avoidCollisions = true, collisionBoundary = [], collisionPadding: collisionPaddingProp = 0, sticky = "partial", hideWhenDetached = false, updatePositionStrategy = "optimized", onPlaced, ...contentProps } = props;
|
|
25513
25513
|
const context = usePopperContext(CONTENT_NAME$5, __scopePopper);
|
|
25514
|
-
const [content, setContent] =
|
|
25514
|
+
const [content, setContent] = React$2.useState(null);
|
|
25515
25515
|
const composedRefs = useComposedRefs(forwardedRef, setContent);
|
|
25516
|
-
const [arrow$1, setArrow] =
|
|
25516
|
+
const [arrow$1, setArrow] = React$2.useState(null);
|
|
25517
25517
|
const arrowSize = useSize(arrow$1);
|
|
25518
25518
|
const arrowWidth = arrowSize?.width ?? 0;
|
|
25519
25519
|
const arrowHeight = arrowSize?.height ?? 0;
|
|
@@ -25592,7 +25592,7 @@ var PopperContent = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$17(
|
|
|
25592
25592
|
const arrowX = middlewareData.arrow?.x;
|
|
25593
25593
|
const arrowY = middlewareData.arrow?.y;
|
|
25594
25594
|
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
25595
|
-
const [contentZIndex, setContentZIndex] =
|
|
25595
|
+
const [contentZIndex, setContentZIndex] = React$2.useState();
|
|
25596
25596
|
useLayoutEffect2(() => {
|
|
25597
25597
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
25598
25598
|
}, [content]);
|
|
@@ -25698,7 +25698,7 @@ var VISUALLY_HIDDEN_STYLES = Object.freeze({
|
|
|
25698
25698
|
whiteSpace: "nowrap",
|
|
25699
25699
|
wordWrap: "normal"
|
|
25700
25700
|
});
|
|
25701
|
-
var Root$6 = /* @__PURE__ */
|
|
25701
|
+
var Root$6 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$16(function VisuallyHidden2(props, forwardedRef) {
|
|
25702
25702
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
25703
25703
|
...props,
|
|
25704
25704
|
ref: forwardedRef,
|
|
@@ -25721,10 +25721,10 @@ var TOOLTIP_OPEN = "tooltip.open";
|
|
|
25721
25721
|
var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
|
|
25722
25722
|
var TooltipProvider = /* @__PURE__ */ __name$15((props) => {
|
|
25723
25723
|
const { __scopeTooltip, delayDuration = DEFAULT_DELAY_DURATION$1, skipDelayDuration = 300, disableHoverableContent = false, children } = props;
|
|
25724
|
-
const isOpenDelayedRef =
|
|
25725
|
-
const isPointerInTransitRef =
|
|
25726
|
-
const skipDelayTimerRef =
|
|
25727
|
-
|
|
25724
|
+
const isOpenDelayedRef = React$2.useRef(true);
|
|
25725
|
+
const isPointerInTransitRef = React$2.useRef(false);
|
|
25726
|
+
const skipDelayTimerRef = React$2.useRef(0);
|
|
25727
|
+
React$2.useEffect(() => {
|
|
25728
25728
|
const skipDelayTimer = skipDelayTimerRef.current;
|
|
25729
25729
|
return () => window.clearTimeout(skipDelayTimer);
|
|
25730
25730
|
}, []);
|
|
@@ -25732,18 +25732,18 @@ var TooltipProvider = /* @__PURE__ */ __name$15((props) => {
|
|
|
25732
25732
|
scope: __scopeTooltip,
|
|
25733
25733
|
isOpenDelayedRef,
|
|
25734
25734
|
delayDuration,
|
|
25735
|
-
onOpen:
|
|
25735
|
+
onOpen: React$2.useCallback(() => {
|
|
25736
25736
|
if (skipDelayDuration <= 0) return;
|
|
25737
25737
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
25738
25738
|
isOpenDelayedRef.current = false;
|
|
25739
25739
|
}, [skipDelayDuration]),
|
|
25740
|
-
onClose:
|
|
25740
|
+
onClose: React$2.useCallback(() => {
|
|
25741
25741
|
if (skipDelayDuration <= 0) return;
|
|
25742
25742
|
window.clearTimeout(skipDelayTimerRef.current);
|
|
25743
25743
|
skipDelayTimerRef.current = window.setTimeout(() => isOpenDelayedRef.current = true, skipDelayDuration);
|
|
25744
25744
|
}, [skipDelayDuration]),
|
|
25745
25745
|
isPointerInTransitRef,
|
|
25746
|
-
onPointerInTransitChange:
|
|
25746
|
+
onPointerInTransitChange: React$2.useCallback((inTransit) => {
|
|
25747
25747
|
isPointerInTransitRef.current = inTransit;
|
|
25748
25748
|
}, []),
|
|
25749
25749
|
disableHoverableContent,
|
|
@@ -25756,13 +25756,13 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25756
25756
|
const { __scopeTooltip, children, open: openProp, defaultOpen, onOpenChange, disableHoverableContent: disableHoverableContentProp, delayDuration: delayDurationProp } = props;
|
|
25757
25757
|
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
25758
25758
|
const popperScope = usePopperScope$2(__scopeTooltip);
|
|
25759
|
-
const [trigger, setTrigger] =
|
|
25760
|
-
const [contentIdState, setContentId] =
|
|
25759
|
+
const [trigger, setTrigger] = React$2.useState(null);
|
|
25760
|
+
const [contentIdState, setContentId] = React$2.useState(void 0);
|
|
25761
25761
|
const generatedContentId = useId$1();
|
|
25762
|
-
const openTimerRef =
|
|
25762
|
+
const openTimerRef = React$2.useRef(0);
|
|
25763
25763
|
const disableHoverableContent = disableHoverableContentProp ?? providerContext.disableHoverableContent;
|
|
25764
25764
|
const delayDuration = delayDurationProp ?? providerContext.delayDuration;
|
|
25765
|
-
const wasOpenDelayedRef =
|
|
25765
|
+
const wasOpenDelayedRef = React$2.useRef(false);
|
|
25766
25766
|
const [open, setOpen] = useControllableState({
|
|
25767
25767
|
prop: openProp,
|
|
25768
25768
|
defaultProp: defaultOpen ?? false,
|
|
@@ -25775,21 +25775,21 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25775
25775
|
}, "onChange"),
|
|
25776
25776
|
caller: TOOLTIP_NAME
|
|
25777
25777
|
});
|
|
25778
|
-
const stateAttribute =
|
|
25778
|
+
const stateAttribute = React$2.useMemo(() => {
|
|
25779
25779
|
return open ? wasOpenDelayedRef.current ? "delayed-open" : "instant-open" : "closed";
|
|
25780
25780
|
}, [open]);
|
|
25781
|
-
const handleOpen =
|
|
25781
|
+
const handleOpen = React$2.useCallback(() => {
|
|
25782
25782
|
window.clearTimeout(openTimerRef.current);
|
|
25783
25783
|
openTimerRef.current = 0;
|
|
25784
25784
|
wasOpenDelayedRef.current = false;
|
|
25785
25785
|
setOpen(true);
|
|
25786
25786
|
}, [setOpen]);
|
|
25787
|
-
const handleClose =
|
|
25787
|
+
const handleClose = React$2.useCallback(() => {
|
|
25788
25788
|
window.clearTimeout(openTimerRef.current);
|
|
25789
25789
|
openTimerRef.current = 0;
|
|
25790
25790
|
setOpen(false);
|
|
25791
25791
|
}, [setOpen]);
|
|
25792
|
-
const handleDelayedOpen =
|
|
25792
|
+
const handleDelayedOpen = React$2.useCallback(() => {
|
|
25793
25793
|
window.clearTimeout(openTimerRef.current);
|
|
25794
25794
|
openTimerRef.current = window.setTimeout(() => {
|
|
25795
25795
|
wasOpenDelayedRef.current = true;
|
|
@@ -25797,7 +25797,7 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25797
25797
|
openTimerRef.current = 0;
|
|
25798
25798
|
}, delayDuration);
|
|
25799
25799
|
}, [delayDuration, setOpen]);
|
|
25800
|
-
|
|
25800
|
+
React$2.useEffect(() => {
|
|
25801
25801
|
return () => {
|
|
25802
25802
|
if (openTimerRef.current) {
|
|
25803
25803
|
window.clearTimeout(openTimerRef.current);
|
|
@@ -25816,7 +25816,7 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25816
25816
|
stateAttribute,
|
|
25817
25817
|
trigger,
|
|
25818
25818
|
onTriggerChange: setTrigger,
|
|
25819
|
-
onTriggerEnter:
|
|
25819
|
+
onTriggerEnter: React$2.useCallback(() => {
|
|
25820
25820
|
if (providerContext.isOpenDelayedRef.current) handleDelayedOpen();
|
|
25821
25821
|
else handleOpen();
|
|
25822
25822
|
}, [
|
|
@@ -25824,7 +25824,7 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25824
25824
|
handleDelayedOpen,
|
|
25825
25825
|
handleOpen
|
|
25826
25826
|
]),
|
|
25827
|
-
onTriggerLeave:
|
|
25827
|
+
onTriggerLeave: React$2.useCallback(() => {
|
|
25828
25828
|
if (disableHoverableContent) handleClose();
|
|
25829
25829
|
else {
|
|
25830
25830
|
window.clearTimeout(openTimerRef.current);
|
|
@@ -25839,17 +25839,17 @@ var Tooltip$2 = /* @__PURE__ */ __name$15((props) => {
|
|
|
25839
25839
|
});
|
|
25840
25840
|
}, "Tooltip");
|
|
25841
25841
|
var TRIGGER_NAME$6 = "TooltipTrigger";
|
|
25842
|
-
var TooltipTrigger = /* @__PURE__ */
|
|
25842
|
+
var TooltipTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$15(function TooltipTrigger2(props, forwardedRef) {
|
|
25843
25843
|
const { __scopeTooltip, ...triggerProps } = props;
|
|
25844
25844
|
const context = useTooltipContext(TRIGGER_NAME$6, __scopeTooltip);
|
|
25845
25845
|
const providerContext = useTooltipProviderContext(TRIGGER_NAME$6, __scopeTooltip);
|
|
25846
25846
|
const popperScope = usePopperScope$2(__scopeTooltip);
|
|
25847
|
-
const ref =
|
|
25847
|
+
const ref = React$2.useRef(null);
|
|
25848
25848
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);
|
|
25849
|
-
const isPointerDownRef =
|
|
25850
|
-
const hasPointerMoveOpenedRef =
|
|
25851
|
-
const handlePointerUp =
|
|
25852
|
-
|
|
25849
|
+
const isPointerDownRef = React$2.useRef(false);
|
|
25850
|
+
const hasPointerMoveOpenedRef = React$2.useRef(false);
|
|
25851
|
+
const handlePointerUp = React$2.useCallback(() => isPointerDownRef.current = false, []);
|
|
25852
|
+
React$2.useEffect(() => {
|
|
25853
25853
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
25854
25854
|
}, [handlePointerUp]);
|
|
25855
25855
|
return /* @__PURE__ */ jsx(Anchor, {
|
|
@@ -25903,7 +25903,7 @@ var TooltipPortal = /* @__PURE__ */ __name$15((props) => {
|
|
|
25903
25903
|
});
|
|
25904
25904
|
}, "TooltipPortal");
|
|
25905
25905
|
var CONTENT_NAME$4 = "TooltipContent";
|
|
25906
|
-
var TooltipContent = /* @__PURE__ */
|
|
25906
|
+
var TooltipContent = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$15(function TooltipContent2(props, forwardedRef) {
|
|
25907
25907
|
const portalContext = usePortalContext$2(CONTENT_NAME$4, props.__scopeTooltip);
|
|
25908
25908
|
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
25909
25909
|
const context = useTooltipContext(CONTENT_NAME$4, props.__scopeTooltip);
|
|
@@ -25920,20 +25920,20 @@ var TooltipContent = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$15
|
|
|
25920
25920
|
})
|
|
25921
25921
|
});
|
|
25922
25922
|
}, "TooltipContent"));
|
|
25923
|
-
var TooltipContentHoverable = /* @__PURE__ */
|
|
25923
|
+
var TooltipContentHoverable = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$15(function TooltipContentHoverable2(props, forwardedRef) {
|
|
25924
25924
|
const context = useTooltipContext(CONTENT_NAME$4, props.__scopeTooltip);
|
|
25925
25925
|
const providerContext = useTooltipProviderContext(CONTENT_NAME$4, props.__scopeTooltip);
|
|
25926
|
-
const ref =
|
|
25926
|
+
const ref = React$2.useRef(null);
|
|
25927
25927
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
25928
|
-
const [pointerGraceArea, setPointerGraceArea] =
|
|
25928
|
+
const [pointerGraceArea, setPointerGraceArea] = React$2.useState(null);
|
|
25929
25929
|
const { trigger, onClose } = context;
|
|
25930
25930
|
const content = ref.current;
|
|
25931
25931
|
const { onPointerInTransitChange } = providerContext;
|
|
25932
|
-
const handleRemoveGraceArea =
|
|
25932
|
+
const handleRemoveGraceArea = React$2.useCallback(() => {
|
|
25933
25933
|
setPointerGraceArea(null);
|
|
25934
25934
|
onPointerInTransitChange(false);
|
|
25935
25935
|
}, [onPointerInTransitChange]);
|
|
25936
|
-
const handleCreateGraceArea =
|
|
25936
|
+
const handleCreateGraceArea = React$2.useCallback((event, hoverTarget) => {
|
|
25937
25937
|
const currentTarget = event.currentTarget;
|
|
25938
25938
|
const exitPoint = {
|
|
25939
25939
|
x: event.clientX,
|
|
@@ -25945,10 +25945,10 @@ var TooltipContentHoverable = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */
|
|
|
25945
25945
|
setPointerGraceArea(graceArea);
|
|
25946
25946
|
onPointerInTransitChange(true);
|
|
25947
25947
|
}, [onPointerInTransitChange]);
|
|
25948
|
-
|
|
25948
|
+
React$2.useEffect(() => {
|
|
25949
25949
|
return () => handleRemoveGraceArea();
|
|
25950
25950
|
}, [handleRemoveGraceArea]);
|
|
25951
|
-
|
|
25951
|
+
React$2.useEffect(() => {
|
|
25952
25952
|
if (trigger && content) {
|
|
25953
25953
|
const handleTriggerLeave = /* @__PURE__ */ __name$15((event) => handleCreateGraceArea(event, content), "handleTriggerLeave");
|
|
25954
25954
|
const handleContentLeave = /* @__PURE__ */ __name$15((event) => handleCreateGraceArea(event, trigger), "handleContentLeave");
|
|
@@ -25965,7 +25965,7 @@ var TooltipContentHoverable = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */
|
|
|
25965
25965
|
handleCreateGraceArea,
|
|
25966
25966
|
handleRemoveGraceArea
|
|
25967
25967
|
]);
|
|
25968
|
-
|
|
25968
|
+
React$2.useEffect(() => {
|
|
25969
25969
|
if (pointerGraceArea) {
|
|
25970
25970
|
const handleTrackPointerGrace = /* @__PURE__ */ __name$15((event) => {
|
|
25971
25971
|
const target = event.target;
|
|
@@ -25997,16 +25997,16 @@ var TooltipContentHoverable = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */
|
|
|
25997
25997
|
});
|
|
25998
25998
|
}, "TooltipContentHoverable"));
|
|
25999
25999
|
var Slottable2 = createSlottable("TooltipContent");
|
|
26000
|
-
var TooltipContentImpl = /* @__PURE__ */
|
|
26000
|
+
var TooltipContentImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$15(function TooltipContentImpl2(props, forwardedRef) {
|
|
26001
26001
|
const { __scopeTooltip, children, "aria-label": ariaLabel, id: idProp, onEscapeKeyDown, onPointerDownOutside, ...contentProps } = props;
|
|
26002
26002
|
const context = useTooltipContext(CONTENT_NAME$4, __scopeTooltip);
|
|
26003
26003
|
const popperScope = usePopperScope$2(__scopeTooltip);
|
|
26004
26004
|
const { onClose } = context;
|
|
26005
|
-
|
|
26005
|
+
React$2.useEffect(() => {
|
|
26006
26006
|
document.addEventListener(TOOLTIP_OPEN, onClose);
|
|
26007
26007
|
return () => document.removeEventListener(TOOLTIP_OPEN, onClose);
|
|
26008
26008
|
}, [onClose]);
|
|
26009
|
-
|
|
26009
|
+
React$2.useEffect(() => {
|
|
26010
26010
|
if (context.trigger) {
|
|
26011
26011
|
const handleScroll = /* @__PURE__ */ __name$15((event) => {
|
|
26012
26012
|
if (event.target instanceof Node && event.target.contains(context.trigger)) onClose();
|
|
@@ -33598,8 +33598,8 @@ var __name$14 = (target, value) => __defProp$14(target, "name", {
|
|
|
33598
33598
|
});
|
|
33599
33599
|
var _isHydrated = false;
|
|
33600
33600
|
function useIsHydrated() {
|
|
33601
|
-
const [isHydrated, setIsHydrated] =
|
|
33602
|
-
|
|
33601
|
+
const [isHydrated, setIsHydrated] = React$2.useState(_isHydrated);
|
|
33602
|
+
React$2.useEffect(() => {
|
|
33603
33603
|
if (!_isHydrated) {
|
|
33604
33604
|
_isHydrated = true;
|
|
33605
33605
|
setIsHydrated(true);
|
|
@@ -33608,7 +33608,7 @@ function useIsHydrated() {
|
|
|
33608
33608
|
return isHydrated;
|
|
33609
33609
|
}
|
|
33610
33610
|
__name$14(useIsHydrated, "useIsHydrated");
|
|
33611
|
-
var useReactSyncExternalStore =
|
|
33611
|
+
var useReactSyncExternalStore = React$2[" useSyncExternalStore ".trim().toString()];
|
|
33612
33612
|
function subscribe() {
|
|
33613
33613
|
return () => {
|
|
33614
33614
|
};
|
|
@@ -33633,7 +33633,7 @@ var GROUP_NAME = "RovingFocusGroup";
|
|
|
33633
33633
|
var [Collection$3, useCollection$3, createCollectionScope$3] = /* @__PURE__ */ createCollection(GROUP_NAME);
|
|
33634
33634
|
var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(GROUP_NAME, [createCollectionScope$3]);
|
|
33635
33635
|
var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);
|
|
33636
|
-
var RovingFocusGroup = /* @__PURE__ */
|
|
33636
|
+
var RovingFocusGroup = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$13(function RovingFocusGroup2(props, forwardedRef) {
|
|
33637
33637
|
return /* @__PURE__ */ jsx(Collection$3.Provider, {
|
|
33638
33638
|
scope: props.__scopeRovingFocusGroup,
|
|
33639
33639
|
children: /* @__PURE__ */ jsx(Collection$3.Slot, {
|
|
@@ -33645,9 +33645,9 @@ var RovingFocusGroup = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$
|
|
|
33645
33645
|
})
|
|
33646
33646
|
});
|
|
33647
33647
|
}, "RovingFocusGroup"));
|
|
33648
|
-
var RovingFocusGroupImpl = /* @__PURE__ */
|
|
33648
|
+
var RovingFocusGroupImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$13(function RovingFocusGroupImpl2(props, forwardedRef) {
|
|
33649
33649
|
const { __scopeRovingFocusGroup, orientation, loop = false, dir, currentTabStopId: currentTabStopIdProp, defaultCurrentTabStopId, onCurrentTabStopIdChange, onEntryFocus, preventScrollOnEntryFocus = false, ...groupProps } = props;
|
|
33650
|
-
const ref =
|
|
33650
|
+
const ref = React$2.useRef(null);
|
|
33651
33651
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
33652
33652
|
const direction = useDirection(dir);
|
|
33653
33653
|
const [currentTabStopId, setCurrentTabStopId] = useControllableState({
|
|
@@ -33656,12 +33656,12 @@ var RovingFocusGroupImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
33656
33656
|
onChange: onCurrentTabStopIdChange,
|
|
33657
33657
|
caller: GROUP_NAME
|
|
33658
33658
|
});
|
|
33659
|
-
const [isTabbingBackOut, setIsTabbingBackOut] =
|
|
33659
|
+
const [isTabbingBackOut, setIsTabbingBackOut] = React$2.useState(false);
|
|
33660
33660
|
const handleEntryFocus = useCallbackRef$1(onEntryFocus);
|
|
33661
33661
|
const getItems = useCollection$3(__scopeRovingFocusGroup);
|
|
33662
|
-
const isClickFocusRef =
|
|
33663
|
-
const [focusableItemsCount, setFocusableItemsCount] =
|
|
33664
|
-
|
|
33662
|
+
const isClickFocusRef = React$2.useRef(false);
|
|
33663
|
+
const [focusableItemsCount, setFocusableItemsCount] = React$2.useState(0);
|
|
33664
|
+
React$2.useEffect(() => {
|
|
33665
33665
|
const node = ref.current;
|
|
33666
33666
|
if (node) {
|
|
33667
33667
|
node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
|
|
@@ -33674,10 +33674,10 @@ var RovingFocusGroupImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
33674
33674
|
dir: direction,
|
|
33675
33675
|
loop,
|
|
33676
33676
|
currentTabStopId,
|
|
33677
|
-
onItemFocus:
|
|
33678
|
-
onItemShiftTab:
|
|
33679
|
-
onFocusableItemAdd:
|
|
33680
|
-
onFocusableItemRemove:
|
|
33677
|
+
onItemFocus: React$2.useCallback((tabStopId) => setCurrentTabStopId(tabStopId), [setCurrentTabStopId]),
|
|
33678
|
+
onItemShiftTab: React$2.useCallback(() => setIsTabbingBackOut(true), []),
|
|
33679
|
+
onFocusableItemAdd: React$2.useCallback(() => setFocusableItemsCount((prevCount) => prevCount + 1), []),
|
|
33680
|
+
onFocusableItemRemove: React$2.useCallback(() => setFocusableItemsCount((prevCount) => prevCount - 1), []),
|
|
33681
33681
|
children: /* @__PURE__ */ jsx(Primitive.div, {
|
|
33682
33682
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
33683
33683
|
"data-orientation": orientation,
|
|
@@ -33711,7 +33711,7 @@ var RovingFocusGroupImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
33711
33711
|
});
|
|
33712
33712
|
}, "RovingFocusGroupImpl"));
|
|
33713
33713
|
var ITEM_NAME$2 = "RovingFocusGroupItem";
|
|
33714
|
-
var RovingFocusGroupItem = /* @__PURE__ */
|
|
33714
|
+
var RovingFocusGroupItem = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$13(function RovingFocusGroupItem2(props, forwardedRef) {
|
|
33715
33715
|
const { __scopeRovingFocusGroup, focusable = true, active = false, tabStopId, children, ...itemProps } = props;
|
|
33716
33716
|
const autoId = useId$1();
|
|
33717
33717
|
const id = tabStopId || autoId;
|
|
@@ -33730,7 +33730,7 @@ var RovingFocusGroupItem = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
33730
33730
|
onFocusableItemAdd,
|
|
33731
33731
|
onFocusableItemRemove
|
|
33732
33732
|
]);
|
|
33733
|
-
|
|
33733
|
+
React$2.useEffect(() => {
|
|
33734
33734
|
if (isHydrated || !focusable) return;
|
|
33735
33735
|
onFocusableItemAdd();
|
|
33736
33736
|
return () => onFocusableItemRemove();
|
|
@@ -33851,11 +33851,11 @@ var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
|
|
|
33851
33851
|
var Menu = /* @__PURE__ */ __name$12((props) => {
|
|
33852
33852
|
const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;
|
|
33853
33853
|
const popperScope = usePopperScope$1(__scopeMenu);
|
|
33854
|
-
const [content, setContent] =
|
|
33855
|
-
const isUsingKeyboardRef =
|
|
33854
|
+
const [content, setContent] = React$2.useState(null);
|
|
33855
|
+
const isUsingKeyboardRef = React$2.useRef(false);
|
|
33856
33856
|
const handleOpenChange = useCallbackRef$1(onOpenChange);
|
|
33857
33857
|
const direction = useDirection(dir);
|
|
33858
|
-
|
|
33858
|
+
React$2.useEffect(() => {
|
|
33859
33859
|
const handleKeyDown = /* @__PURE__ */ __name$12(() => {
|
|
33860
33860
|
isUsingKeyboardRef.current = true;
|
|
33861
33861
|
document.addEventListener("pointerdown", handlePointer, {
|
|
@@ -33875,7 +33875,7 @@ var Menu = /* @__PURE__ */ __name$12((props) => {
|
|
|
33875
33875
|
document.removeEventListener("pointermove", handlePointer, { capture: true });
|
|
33876
33876
|
};
|
|
33877
33877
|
}, []);
|
|
33878
|
-
|
|
33878
|
+
React$2.useEffect(() => {
|
|
33879
33879
|
if (!open) return;
|
|
33880
33880
|
const handleBlur = /* @__PURE__ */ __name$12(() => handleOpenChange(false), "handleBlur");
|
|
33881
33881
|
window.addEventListener("blur", handleBlur);
|
|
@@ -33891,7 +33891,7 @@ var Menu = /* @__PURE__ */ __name$12((props) => {
|
|
|
33891
33891
|
onContentChange: setContent,
|
|
33892
33892
|
children: /* @__PURE__ */ jsx(MenuRootProvider, {
|
|
33893
33893
|
scope: __scopeMenu,
|
|
33894
|
-
onClose:
|
|
33894
|
+
onClose: React$2.useCallback(() => handleOpenChange(false), [handleOpenChange]),
|
|
33895
33895
|
isUsingKeyboardRef,
|
|
33896
33896
|
dir: direction,
|
|
33897
33897
|
modal,
|
|
@@ -33900,7 +33900,7 @@ var Menu = /* @__PURE__ */ __name$12((props) => {
|
|
|
33900
33900
|
})
|
|
33901
33901
|
});
|
|
33902
33902
|
}, "Menu");
|
|
33903
|
-
var MenuAnchor = /* @__PURE__ */
|
|
33903
|
+
var MenuAnchor = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuAnchor2(props, forwardedRef) {
|
|
33904
33904
|
const { __scopeMenu, ...anchorProps } = props;
|
|
33905
33905
|
const popperScope = usePopperScope$1(__scopeMenu);
|
|
33906
33906
|
return /* @__PURE__ */ jsx(Anchor, {
|
|
@@ -33929,7 +33929,7 @@ var MenuPortal = /* @__PURE__ */ __name$12((props) => {
|
|
|
33929
33929
|
}, "MenuPortal");
|
|
33930
33930
|
var CONTENT_NAME$3 = "MenuContent";
|
|
33931
33931
|
var [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME$3);
|
|
33932
|
-
var MenuContent = /* @__PURE__ */
|
|
33932
|
+
var MenuContent = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuContent2(props, forwardedRef) {
|
|
33933
33933
|
const portalContext = usePortalContext$1(CONTENT_NAME$3, props.__scopeMenu);
|
|
33934
33934
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
33935
33935
|
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
@@ -33951,11 +33951,11 @@ var MenuContent = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$12(fu
|
|
|
33951
33951
|
})
|
|
33952
33952
|
});
|
|
33953
33953
|
}, "MenuContent"));
|
|
33954
|
-
var MenuRootContentModal = /* @__PURE__ */
|
|
33954
|
+
var MenuRootContentModal = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuRootContentModal2(props, forwardedRef) {
|
|
33955
33955
|
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
33956
|
-
const ref =
|
|
33956
|
+
const ref = React$2.useRef(null);
|
|
33957
33957
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
33958
|
-
|
|
33958
|
+
React$2.useEffect(() => {
|
|
33959
33959
|
const content = ref.current;
|
|
33960
33960
|
if (content) return hideOthers(content);
|
|
33961
33961
|
}, []);
|
|
@@ -33969,7 +33969,7 @@ var MenuRootContentModal = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
33969
33969
|
onDismiss: () => context.onOpenChange(false)
|
|
33970
33970
|
});
|
|
33971
33971
|
}, "MenuRootContentModal"));
|
|
33972
|
-
var MenuRootContentNonModal = /* @__PURE__ */
|
|
33972
|
+
var MenuRootContentNonModal = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuRootContentNonModal2(props, forwardedRef) {
|
|
33973
33973
|
const context = useMenuContext(CONTENT_NAME$3, props.__scopeMenu);
|
|
33974
33974
|
return /* @__PURE__ */ jsx(MenuContentImpl, {
|
|
33975
33975
|
...props,
|
|
@@ -33981,23 +33981,23 @@ var MenuRootContentNonModal = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */
|
|
|
33981
33981
|
});
|
|
33982
33982
|
}, "MenuRootContentNonModal"));
|
|
33983
33983
|
var Slot$12 = createSlot("MenuContent.ScrollLock");
|
|
33984
|
-
var MenuContentImpl = /* @__PURE__ */
|
|
33984
|
+
var MenuContentImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuContentImpl2(props, forwardedRef) {
|
|
33985
33985
|
const { __scopeMenu, loop = false, trapFocus, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, onEntryFocus, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, onDismiss, disableOutsideScroll, ...contentProps } = props;
|
|
33986
33986
|
const context = useMenuContext(CONTENT_NAME$3, __scopeMenu);
|
|
33987
33987
|
const rootContext = useMenuRootContext(CONTENT_NAME$3, __scopeMenu);
|
|
33988
33988
|
const popperScope = usePopperScope$1(__scopeMenu);
|
|
33989
33989
|
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeMenu);
|
|
33990
33990
|
const getItems = useCollection$2(__scopeMenu);
|
|
33991
|
-
const [currentItemId, setCurrentItemId] =
|
|
33992
|
-
const contentRef =
|
|
33991
|
+
const [currentItemId, setCurrentItemId] = React$2.useState(null);
|
|
33992
|
+
const contentRef = React$2.useRef(null);
|
|
33993
33993
|
const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);
|
|
33994
|
-
const timerRef =
|
|
33995
|
-
const searchRef =
|
|
33996
|
-
const pointerGraceTimerRef =
|
|
33997
|
-
const pointerGraceIntentRef =
|
|
33998
|
-
const pointerDirRef =
|
|
33999
|
-
const lastPointerXRef =
|
|
34000
|
-
const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll :
|
|
33994
|
+
const timerRef = React$2.useRef(0);
|
|
33995
|
+
const searchRef = React$2.useRef("");
|
|
33996
|
+
const pointerGraceTimerRef = React$2.useRef(0);
|
|
33997
|
+
const pointerGraceIntentRef = React$2.useRef(null);
|
|
33998
|
+
const pointerDirRef = React$2.useRef("right");
|
|
33999
|
+
const lastPointerXRef = React$2.useRef(0);
|
|
34000
|
+
const ScrollLockWrapper = disableOutsideScroll ? ReactRemoveScroll : React$2.Fragment;
|
|
34001
34001
|
const scrollLockWrapperProps = disableOutsideScroll ? {
|
|
34002
34002
|
as: Slot$12,
|
|
34003
34003
|
allowPinchZoom: true
|
|
@@ -34016,29 +34016,29 @@ var MenuContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1
|
|
|
34016
34016
|
}), "updateSearch"))(search);
|
|
34017
34017
|
if (newItem) setTimeout(() => newItem.focus());
|
|
34018
34018
|
}, "handleTypeaheadSearch");
|
|
34019
|
-
|
|
34019
|
+
React$2.useEffect(() => {
|
|
34020
34020
|
return () => window.clearTimeout(timerRef.current);
|
|
34021
34021
|
}, []);
|
|
34022
34022
|
useFocusGuards();
|
|
34023
|
-
const isPointerMovingToSubmenu =
|
|
34023
|
+
const isPointerMovingToSubmenu = React$2.useCallback((event) => {
|
|
34024
34024
|
return pointerDirRef.current === pointerGraceIntentRef.current?.side && isPointerInGraceArea(event, pointerGraceIntentRef.current?.area);
|
|
34025
34025
|
}, []);
|
|
34026
34026
|
return /* @__PURE__ */ jsx(MenuContentProvider, {
|
|
34027
34027
|
scope: __scopeMenu,
|
|
34028
34028
|
searchRef,
|
|
34029
|
-
onItemEnter:
|
|
34029
|
+
onItemEnter: React$2.useCallback((event) => {
|
|
34030
34030
|
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
34031
34031
|
}, [isPointerMovingToSubmenu]),
|
|
34032
|
-
onItemLeave:
|
|
34032
|
+
onItemLeave: React$2.useCallback((event) => {
|
|
34033
34033
|
if (isPointerMovingToSubmenu(event)) return;
|
|
34034
34034
|
contentRef.current?.focus();
|
|
34035
34035
|
setCurrentItemId(null);
|
|
34036
34036
|
}, [isPointerMovingToSubmenu]),
|
|
34037
|
-
onTriggerLeave:
|
|
34037
|
+
onTriggerLeave: React$2.useCallback((event) => {
|
|
34038
34038
|
if (isPointerMovingToSubmenu(event)) event.preventDefault();
|
|
34039
34039
|
}, [isPointerMovingToSubmenu]),
|
|
34040
34040
|
pointerGraceTimerRef,
|
|
34041
|
-
onPointerGraceIntentChange:
|
|
34041
|
+
onPointerGraceIntentChange: React$2.useCallback((intent) => {
|
|
34042
34042
|
pointerGraceIntentRef.current = intent;
|
|
34043
34043
|
}, []),
|
|
34044
34044
|
children: /* @__PURE__ */ jsx(ScrollLockWrapper, {
|
|
@@ -34124,13 +34124,13 @@ var MenuContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1
|
|
|
34124
34124
|
}, "MenuContentImpl"));
|
|
34125
34125
|
var ITEM_NAME$1 = "MenuItem";
|
|
34126
34126
|
var ITEM_SELECT = "menu.itemSelect";
|
|
34127
|
-
var MenuItem = /* @__PURE__ */
|
|
34127
|
+
var MenuItem = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuItem2(props, forwardedRef) {
|
|
34128
34128
|
const { disabled = false, onSelect, ...itemProps } = props;
|
|
34129
|
-
const ref =
|
|
34129
|
+
const ref = React$2.useRef(null);
|
|
34130
34130
|
const rootContext = useMenuRootContext(ITEM_NAME$1, props.__scopeMenu);
|
|
34131
34131
|
const contentContext = useMenuContentContext(ITEM_NAME$1, props.__scopeMenu);
|
|
34132
34132
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
34133
|
-
const isPointerDownRef =
|
|
34133
|
+
const isPointerDownRef = React$2.useRef(false);
|
|
34134
34134
|
const handleSelect = /* @__PURE__ */ __name$12(() => {
|
|
34135
34135
|
const menuItem = ref.current;
|
|
34136
34136
|
if (!disabled && menuItem) {
|
|
@@ -34166,15 +34166,15 @@ var MenuItem = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$12(funct
|
|
|
34166
34166
|
})
|
|
34167
34167
|
});
|
|
34168
34168
|
}, "MenuItem"));
|
|
34169
|
-
var MenuItemImpl = /* @__PURE__ */
|
|
34169
|
+
var MenuItemImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$12(function MenuItemImpl2(props, forwardedRef) {
|
|
34170
34170
|
const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
|
|
34171
34171
|
const contentContext = useMenuContentContext(ITEM_NAME$1, __scopeMenu);
|
|
34172
34172
|
const rovingFocusGroupScope = useRovingFocusGroupScope$2(__scopeMenu);
|
|
34173
|
-
const ref =
|
|
34173
|
+
const ref = React$2.useRef(null);
|
|
34174
34174
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
34175
|
-
const [isFocused, setIsFocused] =
|
|
34176
|
-
const [textContent, setTextContent] =
|
|
34177
|
-
|
|
34175
|
+
const [isFocused, setIsFocused] = React$2.useState(false);
|
|
34176
|
+
const [textContent, setTextContent] = React$2.useState("");
|
|
34177
|
+
React$2.useEffect(() => {
|
|
34178
34178
|
const menuItem = ref.current;
|
|
34179
34179
|
if (menuItem) setTextContent((menuItem.textContent ?? "").trim());
|
|
34180
34180
|
}, [itemProps.children]);
|
|
@@ -34292,7 +34292,7 @@ var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(D
|
|
|
34292
34292
|
var DropdownMenu = /* @__PURE__ */ __name$11((props) => {
|
|
34293
34293
|
const { __scopeDropdownMenu, children, dir, open: openProp, defaultOpen, onOpenChange, modal = true } = props;
|
|
34294
34294
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
34295
|
-
const triggerRef =
|
|
34295
|
+
const triggerRef = React$2.useRef(null);
|
|
34296
34296
|
const [open, setOpen] = useControllableState({
|
|
34297
34297
|
prop: openProp,
|
|
34298
34298
|
defaultProp: defaultOpen ?? false,
|
|
@@ -34306,7 +34306,7 @@ var DropdownMenu = /* @__PURE__ */ __name$11((props) => {
|
|
|
34306
34306
|
contentId: useId$1(),
|
|
34307
34307
|
open,
|
|
34308
34308
|
onOpenChange: setOpen,
|
|
34309
|
-
onOpenToggle:
|
|
34309
|
+
onOpenToggle: React$2.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),
|
|
34310
34310
|
modal,
|
|
34311
34311
|
children: /* @__PURE__ */ jsx(Root3, {
|
|
34312
34312
|
...menuScope,
|
|
@@ -34319,7 +34319,7 @@ var DropdownMenu = /* @__PURE__ */ __name$11((props) => {
|
|
|
34319
34319
|
});
|
|
34320
34320
|
}, "DropdownMenu");
|
|
34321
34321
|
var TRIGGER_NAME$5 = "DropdownMenuTrigger";
|
|
34322
|
-
var DropdownMenuTrigger = /* @__PURE__ */
|
|
34322
|
+
var DropdownMenuTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$11(function DropdownMenuTrigger2(props, forwardedRef) {
|
|
34323
34323
|
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
34324
34324
|
const context = useDropdownMenuContext(TRIGGER_NAME$5, __scopeDropdownMenu);
|
|
34325
34325
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
@@ -34366,11 +34366,11 @@ var DropdownMenuPortal = /* @__PURE__ */ __name$11((props) => {
|
|
|
34366
34366
|
});
|
|
34367
34367
|
}, "DropdownMenuPortal");
|
|
34368
34368
|
var CONTENT_NAME$2 = "DropdownMenuContent";
|
|
34369
|
-
var DropdownMenuContent = /* @__PURE__ */
|
|
34369
|
+
var DropdownMenuContent = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$11(function DropdownMenuContent2(props, forwardedRef) {
|
|
34370
34370
|
const { __scopeDropdownMenu, ...contentProps } = props;
|
|
34371
34371
|
const context = useDropdownMenuContext(CONTENT_NAME$2, __scopeDropdownMenu);
|
|
34372
34372
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
34373
|
-
const hasInteractedOutsideRef =
|
|
34373
|
+
const hasInteractedOutsideRef = React$2.useRef(false);
|
|
34374
34374
|
return /* @__PURE__ */ jsx(Content2$1, {
|
|
34375
34375
|
id: context.contentId,
|
|
34376
34376
|
"aria-labelledby": context.triggerId,
|
|
@@ -34398,7 +34398,7 @@ var DropdownMenuContent = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __na
|
|
|
34398
34398
|
}
|
|
34399
34399
|
});
|
|
34400
34400
|
}, "DropdownMenuContent"));
|
|
34401
|
-
var DropdownMenuItem = /* @__PURE__ */
|
|
34401
|
+
var DropdownMenuItem = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$11(function DropdownMenuItem2(props, forwardedRef) {
|
|
34402
34402
|
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
34403
34403
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
34404
34404
|
return /* @__PURE__ */ jsx(Item2$1, {
|
|
@@ -38183,11 +38183,11 @@ var __name$9 = (target, value) => __defProp$9(target, "name", {
|
|
|
38183
38183
|
configurable: true
|
|
38184
38184
|
});
|
|
38185
38185
|
function usePrevious(value) {
|
|
38186
|
-
const ref =
|
|
38186
|
+
const ref = React$2.useRef({
|
|
38187
38187
|
value,
|
|
38188
38188
|
previous: value
|
|
38189
38189
|
});
|
|
38190
|
-
return
|
|
38190
|
+
return React$2.useMemo(() => {
|
|
38191
38191
|
if (ref.current.value !== value) {
|
|
38192
38192
|
ref.current.previous = ref.current.value;
|
|
38193
38193
|
ref.current.value = value;
|
|
@@ -38217,9 +38217,9 @@ var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectC
|
|
|
38217
38217
|
function SelectProvider(props) {
|
|
38218
38218
|
const { __scopeSelect, children, open: openProp, defaultOpen, onOpenChange, value: valueProp, defaultValue, onValueChange, dir, name, autoComplete, disabled, required, form, internal_do_not_use_render } = props;
|
|
38219
38219
|
const popperScope = usePopperScope(__scopeSelect);
|
|
38220
|
-
const [trigger, setTrigger] =
|
|
38221
|
-
const [valueNode, setValueNode] =
|
|
38222
|
-
const [valueNodeHasChildren, setValueNodeHasChildren] =
|
|
38220
|
+
const [trigger, setTrigger] = React$2.useState(null);
|
|
38221
|
+
const [valueNode, setValueNode] = React$2.useState(null);
|
|
38222
|
+
const [valueNodeHasChildren, setValueNodeHasChildren] = React$2.useState(false);
|
|
38223
38223
|
const direction = useDirection(dir);
|
|
38224
38224
|
const [open, setOpen] = useControllableState({
|
|
38225
38225
|
prop: openProp,
|
|
@@ -38233,9 +38233,9 @@ function SelectProvider(props) {
|
|
|
38233
38233
|
onChange: onValueChange,
|
|
38234
38234
|
caller: SELECT_NAME
|
|
38235
38235
|
});
|
|
38236
|
-
const triggerPointerDownPosRef =
|
|
38237
|
-
const initialValueRef =
|
|
38238
|
-
|
|
38236
|
+
const triggerPointerDownPosRef = React$2.useRef(null);
|
|
38237
|
+
const initialValueRef = React$2.useRef(value);
|
|
38238
|
+
React$2.useEffect(() => {
|
|
38239
38239
|
const associatedForm = form ? trigger?.ownerDocument.getElementById(form) : trigger?.form;
|
|
38240
38240
|
if (associatedForm instanceof HTMLFormElement) {
|
|
38241
38241
|
const reset = /* @__PURE__ */ __name$8(() => setValue(initialValueRef.current), "reset");
|
|
@@ -38248,13 +38248,13 @@ function SelectProvider(props) {
|
|
|
38248
38248
|
setValue
|
|
38249
38249
|
]);
|
|
38250
38250
|
const isFormControl = trigger ? !!form || !!trigger.closest("form") : true;
|
|
38251
|
-
const [nativeOptionsSet, setNativeOptionsSet] =
|
|
38251
|
+
const [nativeOptionsSet, setNativeOptionsSet] = React$2.useState(/* @__PURE__ */ new Set());
|
|
38252
38252
|
const contentId = useId$1();
|
|
38253
38253
|
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
38254
|
-
const handleNativeOptionAdd =
|
|
38254
|
+
const handleNativeOptionAdd = React$2.useCallback((option) => {
|
|
38255
38255
|
setNativeOptionsSet((prev) => new Set(prev).add(option));
|
|
38256
38256
|
}, []);
|
|
38257
|
-
const handleNativeOptionRemove =
|
|
38257
|
+
const handleNativeOptionRemove = React$2.useCallback((option) => {
|
|
38258
38258
|
setNativeOptionsSet((prev) => {
|
|
38259
38259
|
const optionsSet = new Set(prev);
|
|
38260
38260
|
optionsSet.delete(option);
|
|
@@ -38311,14 +38311,14 @@ var Select$2 = /* @__PURE__ */ __name$8((props) => {
|
|
|
38311
38311
|
});
|
|
38312
38312
|
}, "Select");
|
|
38313
38313
|
var TRIGGER_NAME$4 = "SelectTrigger";
|
|
38314
|
-
var SelectTrigger$1 = /* @__PURE__ */
|
|
38314
|
+
var SelectTrigger$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectTrigger2(props, forwardedRef) {
|
|
38315
38315
|
const { __scopeSelect, disabled = false, ...triggerProps } = props;
|
|
38316
38316
|
const popperScope = usePopperScope(__scopeSelect);
|
|
38317
38317
|
const context = useSelectContext(TRIGGER_NAME$4, __scopeSelect);
|
|
38318
38318
|
const isDisabled = context.disabled || disabled;
|
|
38319
38319
|
const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);
|
|
38320
38320
|
const getItems = useCollection$1(__scopeSelect);
|
|
38321
|
-
const pointerTypeRef =
|
|
38321
|
+
const pointerTypeRef = React$2.useRef("touch");
|
|
38322
38322
|
const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
|
|
38323
38323
|
const enabledItems = getItems().filter((item) => !item.disabled);
|
|
38324
38324
|
const nextItem = findNextItem(enabledItems, search, enabledItems.find((item) => item.value === context.value));
|
|
@@ -38377,7 +38377,7 @@ var SelectTrigger$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8
|
|
|
38377
38377
|
});
|
|
38378
38378
|
}, "SelectTrigger"));
|
|
38379
38379
|
var VALUE_NAME = "SelectValue";
|
|
38380
|
-
var SelectValue$1 = /* @__PURE__ */
|
|
38380
|
+
var SelectValue$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectValue2(props, forwardedRef) {
|
|
38381
38381
|
const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
|
|
38382
38382
|
const context = useSelectContext(VALUE_NAME, __scopeSelect);
|
|
38383
38383
|
const { onValueNodeHasChildrenChange } = context;
|
|
@@ -38392,10 +38392,10 @@ var SelectValue$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(f
|
|
|
38392
38392
|
asChild: showPlaceholder ? false : valueProps.asChild,
|
|
38393
38393
|
ref: composedRefs,
|
|
38394
38394
|
style: { pointerEvents: "none" },
|
|
38395
|
-
children: /* @__PURE__ */ jsx(
|
|
38395
|
+
children: /* @__PURE__ */ jsx(React$2.Fragment, { children: showPlaceholder ? placeholder : children }, showPlaceholder ? "placeholder" : "value")
|
|
38396
38396
|
});
|
|
38397
38397
|
}, "SelectValue"));
|
|
38398
|
-
var SelectIcon = /* @__PURE__ */
|
|
38398
|
+
var SelectIcon = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectIcon2(props, forwardedRef) {
|
|
38399
38399
|
const { __scopeSelect, children, ...iconProps } = props;
|
|
38400
38400
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
38401
38401
|
"aria-hidden": true,
|
|
@@ -38417,11 +38417,11 @@ var SelectPortal = /* @__PURE__ */ __name$8((props) => {
|
|
|
38417
38417
|
});
|
|
38418
38418
|
}, "SelectPortal");
|
|
38419
38419
|
var CONTENT_NAME$1 = "SelectContent";
|
|
38420
|
-
var SelectContent$2 = /* @__PURE__ */
|
|
38420
|
+
var SelectContent$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectContent2(props, forwardedRef) {
|
|
38421
38421
|
const portalContext = usePortalContext(CONTENT_NAME$1, props.__scopeSelect);
|
|
38422
38422
|
const { forceMount = portalContext.forceMount, ...contentProps } = props;
|
|
38423
38423
|
const context = useSelectContext(CONTENT_NAME$1, props.__scopeSelect);
|
|
38424
|
-
const [fragment, setFragment] =
|
|
38424
|
+
const [fragment, setFragment] = React$2.useState();
|
|
38425
38425
|
useLayoutEffect2(() => {
|
|
38426
38426
|
setFragment(new DocumentFragment());
|
|
38427
38427
|
}, []);
|
|
@@ -38436,7 +38436,7 @@ var SelectContent$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8
|
|
|
38436
38436
|
})
|
|
38437
38437
|
});
|
|
38438
38438
|
}, "SelectContent"));
|
|
38439
|
-
var SelectContentFragment = /* @__PURE__ */
|
|
38439
|
+
var SelectContentFragment = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectContentFragment2(props, forwardedRef) {
|
|
38440
38440
|
const { __scopeSelect, children, fragment } = props;
|
|
38441
38441
|
if (!fragment) return null;
|
|
38442
38442
|
return ReactDOM.createPortal(/* @__PURE__ */ jsx(SelectContentProvider, {
|
|
@@ -38453,23 +38453,23 @@ var SelectContentFragment = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __
|
|
|
38453
38453
|
var CONTENT_MARGIN = 10;
|
|
38454
38454
|
var [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME$1);
|
|
38455
38455
|
var Slot = createSlot("SelectContent.RemoveScroll");
|
|
38456
|
-
var SelectContentImpl = /* @__PURE__ */
|
|
38456
|
+
var SelectContentImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectContentImpl2(props, forwardedRef) {
|
|
38457
38457
|
const { __scopeSelect } = props;
|
|
38458
38458
|
const { position = "item-aligned", onCloseAutoFocus, onEscapeKeyDown, onPointerDownOutside, side, sideOffset, align, alignOffset, arrowPadding, collisionBoundary, collisionPadding, sticky, hideWhenDetached, avoidCollisions, ...contentProps } = props;
|
|
38459
38459
|
const context = useSelectContext(CONTENT_NAME$1, __scopeSelect);
|
|
38460
|
-
const [content, setContent] =
|
|
38461
|
-
const [viewport, setViewport] =
|
|
38460
|
+
const [content, setContent] = React$2.useState(null);
|
|
38461
|
+
const [viewport, setViewport] = React$2.useState(null);
|
|
38462
38462
|
const composedRefs = useComposedRefs(forwardedRef, setContent);
|
|
38463
|
-
const [selectedItem, setSelectedItem] =
|
|
38464
|
-
const [selectedItemText, setSelectedItemText] =
|
|
38463
|
+
const [selectedItem, setSelectedItem] = React$2.useState(null);
|
|
38464
|
+
const [selectedItemText, setSelectedItemText] = React$2.useState(null);
|
|
38465
38465
|
const getItems = useCollection$1(__scopeSelect);
|
|
38466
|
-
const [isPositioned, setIsPositioned] =
|
|
38467
|
-
const firstValidItemFoundRef =
|
|
38468
|
-
|
|
38466
|
+
const [isPositioned, setIsPositioned] = React$2.useState(false);
|
|
38467
|
+
const firstValidItemFoundRef = React$2.useRef(false);
|
|
38468
|
+
React$2.useEffect(() => {
|
|
38469
38469
|
if (content) return hideOthers(content);
|
|
38470
38470
|
}, [content]);
|
|
38471
38471
|
useFocusGuards();
|
|
38472
|
-
const focusFirst2 =
|
|
38472
|
+
const focusFirst2 = React$2.useCallback((candidates) => {
|
|
38473
38473
|
const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
|
|
38474
38474
|
const [lastItem] = restItems.slice(-1);
|
|
38475
38475
|
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
@@ -38482,16 +38482,16 @@ var SelectContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
38482
38482
|
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
38483
38483
|
}
|
|
38484
38484
|
}, [getItems, viewport]);
|
|
38485
|
-
const focusSelectedItem =
|
|
38485
|
+
const focusSelectedItem = React$2.useCallback(() => focusFirst2([selectedItem, content]), [
|
|
38486
38486
|
focusFirst2,
|
|
38487
38487
|
selectedItem,
|
|
38488
38488
|
content
|
|
38489
38489
|
]);
|
|
38490
|
-
|
|
38490
|
+
React$2.useEffect(() => {
|
|
38491
38491
|
if (isPositioned) focusSelectedItem();
|
|
38492
38492
|
}, [isPositioned, focusSelectedItem]);
|
|
38493
38493
|
const { onOpenChange, triggerPointerDownPosRef } = context;
|
|
38494
|
-
|
|
38494
|
+
React$2.useEffect(() => {
|
|
38495
38495
|
if (content) {
|
|
38496
38496
|
let pointerMoveDelta = {
|
|
38497
38497
|
x: 0,
|
|
@@ -38526,7 +38526,7 @@ var SelectContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
38526
38526
|
onOpenChange,
|
|
38527
38527
|
triggerPointerDownPosRef
|
|
38528
38528
|
]);
|
|
38529
|
-
|
|
38529
|
+
React$2.useEffect(() => {
|
|
38530
38530
|
const close = /* @__PURE__ */ __name$8(() => onOpenChange(false), "close");
|
|
38531
38531
|
window.addEventListener("blur", close);
|
|
38532
38532
|
window.addEventListener("resize", close);
|
|
@@ -38540,15 +38540,15 @@ var SelectContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
38540
38540
|
const nextItem = findNextItem(enabledItems, search, enabledItems.find((item) => item.ref.current === document.activeElement));
|
|
38541
38541
|
if (nextItem) setTimeout(() => nextItem.ref.current?.focus());
|
|
38542
38542
|
});
|
|
38543
|
-
const itemRefCallback =
|
|
38543
|
+
const itemRefCallback = React$2.useCallback((node, value, disabled) => {
|
|
38544
38544
|
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
38545
38545
|
if (context.value !== void 0 && context.value === value || isFirstValidItem) {
|
|
38546
38546
|
setSelectedItem(node);
|
|
38547
38547
|
if (isFirstValidItem) firstValidItemFoundRef.current = true;
|
|
38548
38548
|
}
|
|
38549
38549
|
}, [context.value]);
|
|
38550
|
-
const handleItemLeave =
|
|
38551
|
-
const itemTextRefCallback =
|
|
38550
|
+
const handleItemLeave = React$2.useCallback(() => content?.focus(), [content]);
|
|
38551
|
+
const itemTextRefCallback = React$2.useCallback((node, value, disabled) => {
|
|
38552
38552
|
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
38553
38553
|
if (context.value !== void 0 && context.value === value || isFirstValidItem) setSelectedItemText(node);
|
|
38554
38554
|
}, [context.value]);
|
|
@@ -38642,18 +38642,18 @@ var SelectContentImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
38642
38642
|
})
|
|
38643
38643
|
});
|
|
38644
38644
|
}, "SelectContentImpl"));
|
|
38645
|
-
var SelectItemAlignedPosition = /* @__PURE__ */
|
|
38645
|
+
var SelectItemAlignedPosition = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectItemAlignedPosition2(props, forwardedRef) {
|
|
38646
38646
|
const { __scopeSelect, onPlaced, ...popperProps } = props;
|
|
38647
38647
|
const context = useSelectContext(CONTENT_NAME$1, __scopeSelect);
|
|
38648
38648
|
const contentContext = useSelectContentContext(CONTENT_NAME$1, __scopeSelect);
|
|
38649
|
-
const [contentWrapper, setContentWrapper] =
|
|
38650
|
-
const [content, setContent] =
|
|
38649
|
+
const [contentWrapper, setContentWrapper] = React$2.useState(null);
|
|
38650
|
+
const [content, setContent] = React$2.useState(null);
|
|
38651
38651
|
const composedRefs = useComposedRefs(forwardedRef, setContent);
|
|
38652
38652
|
const getItems = useCollection$1(__scopeSelect);
|
|
38653
|
-
const shouldExpandOnScrollRef =
|
|
38654
|
-
const shouldRepositionRef =
|
|
38653
|
+
const shouldExpandOnScrollRef = React$2.useRef(false);
|
|
38654
|
+
const shouldRepositionRef = React$2.useRef(true);
|
|
38655
38655
|
const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
|
|
38656
|
-
const position =
|
|
38656
|
+
const position = React$2.useCallback(() => {
|
|
38657
38657
|
if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
|
|
38658
38658
|
const triggerRect = context.trigger.getBoundingClientRect();
|
|
38659
38659
|
const contentRect = content.getBoundingClientRect();
|
|
@@ -38731,11 +38731,11 @@ var SelectItemAlignedPosition = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ *
|
|
|
38731
38731
|
onPlaced
|
|
38732
38732
|
]);
|
|
38733
38733
|
useLayoutEffect2(() => position(), [position]);
|
|
38734
|
-
const [contentZIndex, setContentZIndex] =
|
|
38734
|
+
const [contentZIndex, setContentZIndex] = React$2.useState();
|
|
38735
38735
|
useLayoutEffect2(() => {
|
|
38736
38736
|
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
38737
38737
|
}, [content]);
|
|
38738
|
-
const handleScrollButtonChange =
|
|
38738
|
+
const handleScrollButtonChange = React$2.useCallback((node) => {
|
|
38739
38739
|
if (node && shouldRepositionRef.current === true) {
|
|
38740
38740
|
position();
|
|
38741
38741
|
focusSelectedItem?.();
|
|
@@ -38767,7 +38767,7 @@ var SelectItemAlignedPosition = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ *
|
|
|
38767
38767
|
})
|
|
38768
38768
|
});
|
|
38769
38769
|
}, "SelectItemAlignedPosition"));
|
|
38770
|
-
var SelectPopperPosition = /* @__PURE__ */
|
|
38770
|
+
var SelectPopperPosition = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectPopperPosition2(props, forwardedRef) {
|
|
38771
38771
|
const { __scopeSelect, align = "start", collisionPadding = CONTENT_MARGIN, ...popperProps } = props;
|
|
38772
38772
|
const popperScope = usePopperScope(__scopeSelect);
|
|
38773
38773
|
return /* @__PURE__ */ jsx(Content$2, {
|
|
@@ -38789,12 +38789,12 @@ var SelectPopperPosition = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __n
|
|
|
38789
38789
|
}, "SelectPopperPosition"));
|
|
38790
38790
|
var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME$1, {});
|
|
38791
38791
|
var VIEWPORT_NAME = "SelectViewport";
|
|
38792
|
-
var SelectViewport = /* @__PURE__ */
|
|
38792
|
+
var SelectViewport = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectViewport2(props, forwardedRef) {
|
|
38793
38793
|
const { __scopeSelect, nonce, ...viewportProps } = props;
|
|
38794
38794
|
const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
|
|
38795
38795
|
const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
|
|
38796
38796
|
const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
|
|
38797
|
-
const prevScrollTopRef =
|
|
38797
|
+
const prevScrollTopRef = React$2.useRef(0);
|
|
38798
38798
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("style", {
|
|
38799
38799
|
dangerouslySetInnerHTML: { __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}` },
|
|
38800
38800
|
nonce
|
|
@@ -38839,7 +38839,7 @@ var SelectViewport = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(
|
|
|
38839
38839
|
})] });
|
|
38840
38840
|
}, "SelectViewport"));
|
|
38841
38841
|
var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext("SelectGroup");
|
|
38842
|
-
var SelectGroup$1 = /* @__PURE__ */
|
|
38842
|
+
var SelectGroup$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectGroup2(props, forwardedRef) {
|
|
38843
38843
|
const { __scopeSelect, ...groupProps } = props;
|
|
38844
38844
|
const groupId = useId$1();
|
|
38845
38845
|
return /* @__PURE__ */ jsx(SelectGroupContextProvider, {
|
|
@@ -38854,7 +38854,7 @@ var SelectGroup$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(f
|
|
|
38854
38854
|
});
|
|
38855
38855
|
}, "SelectGroup"));
|
|
38856
38856
|
var LABEL_NAME = "SelectLabel";
|
|
38857
|
-
var SelectLabel$1 = /* @__PURE__ */
|
|
38857
|
+
var SelectLabel$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectLabel2(props, forwardedRef) {
|
|
38858
38858
|
const { __scopeSelect, ...labelProps } = props;
|
|
38859
38859
|
const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
|
|
38860
38860
|
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
@@ -38865,17 +38865,17 @@ var SelectLabel$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(f
|
|
|
38865
38865
|
}, "SelectLabel"));
|
|
38866
38866
|
var ITEM_NAME = "SelectItem";
|
|
38867
38867
|
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
|
|
38868
|
-
var SelectItem$2 = /* @__PURE__ */
|
|
38868
|
+
var SelectItem$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectItem2(props, forwardedRef) {
|
|
38869
38869
|
const { __scopeSelect, value, disabled = false, textValue: textValueProp, ...itemProps } = props;
|
|
38870
38870
|
const context = useSelectContext(ITEM_NAME, __scopeSelect);
|
|
38871
38871
|
const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
|
|
38872
38872
|
const isSelected = context.value === value;
|
|
38873
|
-
const [textValue, setTextValue] =
|
|
38874
|
-
const [isFocused, setIsFocused] =
|
|
38873
|
+
const [textValue, setTextValue] = React$2.useState(textValueProp ?? "");
|
|
38874
|
+
const [isFocused, setIsFocused] = React$2.useState(false);
|
|
38875
38875
|
const handleItemRefCallback = useCallbackRef$1((node) => contentContext.itemRefCallback?.(node, value, disabled));
|
|
38876
38876
|
const composedRefs = useComposedRefs(forwardedRef, handleItemRefCallback);
|
|
38877
38877
|
const textId = useId$1();
|
|
38878
|
-
const pointerTypeRef =
|
|
38878
|
+
const pointerTypeRef = React$2.useRef("touch");
|
|
38879
38879
|
const handleSelect = /* @__PURE__ */ __name$8(() => {
|
|
38880
38880
|
if (!disabled) {
|
|
38881
38881
|
context.onValueChange(value);
|
|
@@ -38888,7 +38888,7 @@ var SelectItem$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(fu
|
|
|
38888
38888
|
disabled,
|
|
38889
38889
|
textId,
|
|
38890
38890
|
isSelected,
|
|
38891
|
-
onItemTextChange:
|
|
38891
|
+
onItemTextChange: React$2.useCallback((node) => {
|
|
38892
38892
|
setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
|
|
38893
38893
|
}, []),
|
|
38894
38894
|
children: /* @__PURE__ */ jsx(Collection$1.ItemSlot, {
|
|
@@ -38937,17 +38937,17 @@ var SelectItem$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(fu
|
|
|
38937
38937
|
});
|
|
38938
38938
|
}, "SelectItem"));
|
|
38939
38939
|
var ITEM_TEXT_NAME = "SelectItemText";
|
|
38940
|
-
var SelectItemText = /* @__PURE__ */
|
|
38940
|
+
var SelectItemText = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectItemText2(props, forwardedRef) {
|
|
38941
38941
|
const { __scopeSelect, className, style, ...itemTextProps } = props;
|
|
38942
38942
|
const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
38943
38943
|
const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
38944
38944
|
const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
38945
38945
|
const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
38946
|
-
const [itemTextNode, setItemTextNode] =
|
|
38946
|
+
const [itemTextNode, setItemTextNode] = React$2.useState(null);
|
|
38947
38947
|
const handleItemTextRefCallback = useCallbackRef$1((node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled));
|
|
38948
38948
|
const composedRefs = useComposedRefs(forwardedRef, setItemTextNode, itemContext.onItemTextChange, handleItemTextRefCallback);
|
|
38949
38949
|
const textContent = itemTextNode?.textContent;
|
|
38950
|
-
const nativeOption =
|
|
38950
|
+
const nativeOption = React$2.useMemo(() => /* @__PURE__ */ jsx("option", {
|
|
38951
38951
|
value: itemContext.value,
|
|
38952
38952
|
disabled: itemContext.disabled,
|
|
38953
38953
|
children: textContent
|
|
@@ -38972,7 +38972,7 @@ var SelectItemText = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$8(
|
|
|
38972
38972
|
}), itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren && !shouldShowPlaceholder(context.value) ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null] });
|
|
38973
38973
|
}, "SelectItemText"));
|
|
38974
38974
|
var ITEM_INDICATOR_NAME = "SelectItemIndicator";
|
|
38975
|
-
var SelectItemIndicator = /* @__PURE__ */
|
|
38975
|
+
var SelectItemIndicator = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectItemIndicator2(props, forwardedRef) {
|
|
38976
38976
|
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
38977
38977
|
return useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect).isSelected ? /* @__PURE__ */ jsx(Primitive.span, {
|
|
38978
38978
|
"aria-hidden": true,
|
|
@@ -38980,7 +38980,7 @@ var SelectItemIndicator = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __na
|
|
|
38980
38980
|
ref: forwardedRef
|
|
38981
38981
|
}) : null;
|
|
38982
38982
|
}, "SelectItemIndicator"));
|
|
38983
|
-
var SelectSeparator$1 = /* @__PURE__ */
|
|
38983
|
+
var SelectSeparator$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectSeparator2(props, forwardedRef) {
|
|
38984
38984
|
const { __scopeSelect, ...separatorProps } = props;
|
|
38985
38985
|
return /* @__PURE__ */ jsx(Primitive.div, {
|
|
38986
38986
|
"aria-hidden": true,
|
|
@@ -38989,16 +38989,16 @@ var SelectSeparator$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
38989
38989
|
});
|
|
38990
38990
|
}, "SelectSeparator"));
|
|
38991
38991
|
var BUBBLE_INPUT_NAME$4 = "SelectBubbleInput";
|
|
38992
|
-
var SelectBubbleInput = /* @__PURE__ */
|
|
38992
|
+
var SelectBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$8(function SelectBubbleInput2({ __scopeSelect, ...props }, forwardedRef) {
|
|
38993
38993
|
const context = useSelectContext(BUBBLE_INPUT_NAME$4, __scopeSelect);
|
|
38994
38994
|
const { value, onValueChange, required, disabled, name, autoComplete, form } = context;
|
|
38995
38995
|
const { nativeOptions, nativeSelectKey } = context;
|
|
38996
|
-
const ref =
|
|
38996
|
+
const ref = React$2.useRef(null);
|
|
38997
38997
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
38998
38998
|
const selectValue = value ?? "";
|
|
38999
38999
|
const prevValue = usePrevious(selectValue);
|
|
39000
39000
|
const hasEmptyValueOption = Array.from(nativeOptions).some((option) => (option.props.value ?? "") === "");
|
|
39001
|
-
|
|
39001
|
+
React$2.useEffect(() => {
|
|
39002
39002
|
const select = ref.current;
|
|
39003
39003
|
if (!select) return;
|
|
39004
39004
|
const selectProto = window.HTMLSelectElement.prototype;
|
|
@@ -39038,9 +39038,9 @@ function shouldShowPlaceholder(value) {
|
|
|
39038
39038
|
__name$8(shouldShowPlaceholder, "shouldShowPlaceholder");
|
|
39039
39039
|
function useTypeaheadSearch(onSearchChange) {
|
|
39040
39040
|
const handleSearchChange = useCallbackRef$1(onSearchChange);
|
|
39041
|
-
const searchRef =
|
|
39042
|
-
const timerRef =
|
|
39043
|
-
const handleTypeaheadSearch =
|
|
39041
|
+
const searchRef = React$2.useRef("");
|
|
39042
|
+
const timerRef = React$2.useRef(0);
|
|
39043
|
+
const handleTypeaheadSearch = React$2.useCallback((key) => {
|
|
39044
39044
|
const search = searchRef.current + key;
|
|
39045
39045
|
handleSearchChange(search);
|
|
39046
39046
|
(/* @__PURE__ */ __name$8((function updateSearch(value) {
|
|
@@ -39049,11 +39049,11 @@ function useTypeaheadSearch(onSearchChange) {
|
|
|
39049
39049
|
if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
|
|
39050
39050
|
}), "updateSearch"))(search);
|
|
39051
39051
|
}, [handleSearchChange]);
|
|
39052
|
-
const resetTypeahead =
|
|
39052
|
+
const resetTypeahead = React$2.useCallback(() => {
|
|
39053
39053
|
searchRef.current = "";
|
|
39054
39054
|
window.clearTimeout(timerRef.current);
|
|
39055
39055
|
}, []);
|
|
39056
|
-
|
|
39056
|
+
React$2.useEffect(() => {
|
|
39057
39057
|
return () => window.clearTimeout(timerRef.current);
|
|
39058
39058
|
}, []);
|
|
39059
39059
|
return [
|
|
@@ -51495,7 +51495,7 @@ var Curve$1 = function Curve(props) {
|
|
|
51495
51495
|
var className = props.className, points = props.points, path2 = props.path, pathRef = props.pathRef;
|
|
51496
51496
|
if ((!points || !points.length) && !path2) return null;
|
|
51497
51497
|
var realPath = points && points.length ? getPath$3(props) : path2;
|
|
51498
|
-
return /* @__PURE__ */
|
|
51498
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$59({}, filterProps(props, false), adaptEventHandlers$1(props), {
|
|
51499
51499
|
className: clsx("recharts-curve", className),
|
|
51500
51500
|
d: realPath,
|
|
51501
51501
|
ref: pathRef
|
|
@@ -53238,7 +53238,7 @@ function _extends$56() {
|
|
|
53238
53238
|
var Dot$1 = function Dot(props) {
|
|
53239
53239
|
var cx = props.cx, cy = props.cy, r2 = props.r, className = props.className;
|
|
53240
53240
|
var layerClass = clsx("recharts-dot", className);
|
|
53241
|
-
if (cx === +cx && cy === +cy && r2 === +r2) return /* @__PURE__ */
|
|
53241
|
+
if (cx === +cx && cy === +cy && r2 === +r2) return /* @__PURE__ */ React$2.createElement("circle", _extends$56({}, filterProps(props, false), adaptEventHandlers$1(props), {
|
|
53242
53242
|
className: layerClass,
|
|
53243
53243
|
cx,
|
|
53244
53244
|
cy,
|
|
@@ -60348,7 +60348,7 @@ var ZAxis = /* @__PURE__ */ (function(_React$Component) {
|
|
|
60348
60348
|
return null;
|
|
60349
60349
|
}
|
|
60350
60350
|
}]);
|
|
60351
|
-
})(
|
|
60351
|
+
})(React$2.Component);
|
|
60352
60352
|
_defineProperty$54(ZAxis, "displayName", "ZAxis");
|
|
60353
60353
|
_defineProperty$54(ZAxis, "defaultProps", {
|
|
60354
60354
|
zAxisId: 0,
|
|
@@ -60393,12 +60393,12 @@ function _objectWithoutPropertiesLoose$30(source, excluded) {
|
|
|
60393
60393
|
}
|
|
60394
60394
|
function ScatterSymbol(_ref2) {
|
|
60395
60395
|
var option = _ref2.option, isActive = _ref2.isActive, props = _objectWithoutProperties$30(_ref2, _excluded$30);
|
|
60396
|
-
if (typeof option === "string") return /* @__PURE__ */
|
|
60397
|
-
option: /* @__PURE__ */
|
|
60396
|
+
if (typeof option === "string") return /* @__PURE__ */ React$2.createElement(Shape$1, _extends$36({
|
|
60397
|
+
option: /* @__PURE__ */ React$2.createElement(Symbols$1, _extends$36({ type: option }, props)),
|
|
60398
60398
|
isActive,
|
|
60399
60399
|
shapeType: "symbols"
|
|
60400
60400
|
}, props));
|
|
60401
|
-
return /* @__PURE__ */
|
|
60401
|
+
return /* @__PURE__ */ React$2.createElement(Shape$1, _extends$36({
|
|
60402
60402
|
option,
|
|
60403
60403
|
isActive,
|
|
60404
60404
|
shapeType: "symbols"
|
|
@@ -60926,7 +60926,7 @@ function XAxisImpl$1(_ref2) {
|
|
|
60926
60926
|
var height = useChartHeight$1();
|
|
60927
60927
|
var axisOptions = useXAxisOrThrow(xAxisId);
|
|
60928
60928
|
if (axisOptions == null) return null;
|
|
60929
|
-
return /* @__PURE__ */
|
|
60929
|
+
return /* @__PURE__ */ React$2.createElement(CartesianAxis$1, _extends$34({}, axisOptions, {
|
|
60930
60930
|
className: clsx("recharts-".concat(axisOptions.axisType, " ").concat(axisOptions.axisType), axisOptions.className),
|
|
60931
60931
|
viewBox: {
|
|
60932
60932
|
x: 0,
|
|
@@ -60948,10 +60948,10 @@ var XAxis$1 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
60948
60948
|
return _createClass$3(XAxis2, [{
|
|
60949
60949
|
key: "render",
|
|
60950
60950
|
value: function render() {
|
|
60951
|
-
return /* @__PURE__ */
|
|
60951
|
+
return /* @__PURE__ */ React$2.createElement(XAxisImpl$1, this.props);
|
|
60952
60952
|
}
|
|
60953
60953
|
}]);
|
|
60954
|
-
})(
|
|
60954
|
+
})(React$2.Component);
|
|
60955
60955
|
_defineProperty$52(XAxis$1, "displayName", "XAxis");
|
|
60956
60956
|
_defineProperty$52(XAxis$1, "defaultProps", {
|
|
60957
60957
|
allowDecimals: true,
|
|
@@ -61084,7 +61084,7 @@ var YAxisImpl$1 = function YAxisImpl(_ref2) {
|
|
|
61084
61084
|
var height = useChartHeight$1();
|
|
61085
61085
|
var axisOptions = useYAxisOrThrow(yAxisId);
|
|
61086
61086
|
if (axisOptions == null) return null;
|
|
61087
|
-
return /* @__PURE__ */
|
|
61087
|
+
return /* @__PURE__ */ React$2.createElement(CartesianAxis$1, _extends$33({}, axisOptions, {
|
|
61088
61088
|
className: clsx("recharts-".concat(axisOptions.axisType, " ").concat(axisOptions.axisType), axisOptions.className),
|
|
61089
61089
|
viewBox: {
|
|
61090
61090
|
x: 0,
|
|
@@ -61106,10 +61106,10 @@ var YAxis$1 = /* @__PURE__ */ (function(_React$Component) {
|
|
|
61106
61106
|
return _createClass$2(YAxis2, [{
|
|
61107
61107
|
key: "render",
|
|
61108
61108
|
value: function render() {
|
|
61109
|
-
return /* @__PURE__ */
|
|
61109
|
+
return /* @__PURE__ */ React$2.createElement(YAxisImpl$1, this.props);
|
|
61110
61110
|
}
|
|
61111
61111
|
}]);
|
|
61112
|
-
})(
|
|
61112
|
+
})(React$2.Component);
|
|
61113
61113
|
_defineProperty$51(YAxis$1, "displayName", "YAxis");
|
|
61114
61114
|
_defineProperty$51(YAxis$1, "defaultProps", {
|
|
61115
61115
|
allowDuplicatedCategory: true,
|
|
@@ -63308,7 +63308,7 @@ var __name$7 = (target, value) => __defProp$7(target, "name", {
|
|
|
63308
63308
|
});
|
|
63309
63309
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
63310
63310
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
63311
|
-
var Separator$2 = /* @__PURE__ */
|
|
63311
|
+
var Separator$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$7(function Separator2(props, forwardedRef) {
|
|
63312
63312
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
63313
63313
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
63314
63314
|
const semanticProps = decorative ? { role: "none" } : {
|
|
@@ -63343,10 +63343,10 @@ function CheckboxProvider(props) {
|
|
|
63343
63343
|
onChange: onCheckedChange,
|
|
63344
63344
|
caller: CHECKBOX_NAME
|
|
63345
63345
|
});
|
|
63346
|
-
const [control, setControl] =
|
|
63347
|
-
const [bubbleInput, setBubbleInput] =
|
|
63348
|
-
const hasConsumerStoppedPropagationRef =
|
|
63349
|
-
const [userInteractionCount, onUserInteraction] =
|
|
63346
|
+
const [control, setControl] = React$2.useState(null);
|
|
63347
|
+
const [bubbleInput, setBubbleInput] = React$2.useState(null);
|
|
63348
|
+
const hasConsumerStoppedPropagationRef = React$2.useRef(false);
|
|
63349
|
+
const [userInteractionCount, onUserInteraction] = React$2.useReducer((count) => count + 1, 0);
|
|
63350
63350
|
const isFormControl = control ? !!form || !!control.closest("form") : true;
|
|
63351
63351
|
const context = {
|
|
63352
63352
|
checked,
|
|
@@ -63374,11 +63374,11 @@ function CheckboxProvider(props) {
|
|
|
63374
63374
|
}
|
|
63375
63375
|
__name$6(CheckboxProvider, "CheckboxProvider");
|
|
63376
63376
|
var TRIGGER_NAME$3 = "CheckboxTrigger";
|
|
63377
|
-
var CheckboxTrigger = /* @__PURE__ */
|
|
63377
|
+
var CheckboxTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$6(function CheckboxTrigger2({ __scopeCheckbox, onKeyDown, onClick, ...checkboxProps }, forwardedRef) {
|
|
63378
63378
|
const { control, value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, onUserInteraction, isFormControl, bubbleInput } = useCheckboxContext(TRIGGER_NAME$3, __scopeCheckbox);
|
|
63379
63379
|
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
63380
|
-
const initialCheckedStateRef =
|
|
63381
|
-
|
|
63380
|
+
const initialCheckedStateRef = React$2.useRef(checked);
|
|
63381
|
+
React$2.useEffect(() => {
|
|
63382
63382
|
const form = control?.form;
|
|
63383
63383
|
if (form) {
|
|
63384
63384
|
const reset = /* @__PURE__ */ __name$6(() => setChecked(initialCheckedStateRef.current), "reset");
|
|
@@ -63410,7 +63410,7 @@ var CheckboxTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$6
|
|
|
63410
63410
|
})
|
|
63411
63411
|
});
|
|
63412
63412
|
}, "CheckboxTrigger"));
|
|
63413
|
-
var Checkbox = /* @__PURE__ */
|
|
63413
|
+
var Checkbox = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$6(function Checkbox2(props, forwardedRef) {
|
|
63414
63414
|
const { __scopeCheckbox, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...checkboxProps } = props;
|
|
63415
63415
|
return /* @__PURE__ */ jsx(CheckboxProvider, {
|
|
63416
63416
|
__scopeCheckbox,
|
|
@@ -63430,7 +63430,7 @@ var Checkbox = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$6(functi
|
|
|
63430
63430
|
});
|
|
63431
63431
|
}, "Checkbox"));
|
|
63432
63432
|
var INDICATOR_NAME = "CheckboxIndicator";
|
|
63433
|
-
var CheckboxIndicator = /* @__PURE__ */
|
|
63433
|
+
var CheckboxIndicator = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$6(function CheckboxIndicator2(props, forwardedRef) {
|
|
63434
63434
|
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
63435
63435
|
const context = useCheckboxContext(INDICATOR_NAME, __scopeCheckbox);
|
|
63436
63436
|
return /* @__PURE__ */ jsx(Presence, {
|
|
@@ -63448,14 +63448,14 @@ var CheckboxIndicator = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
63448
63448
|
});
|
|
63449
63449
|
}, "CheckboxIndicator"));
|
|
63450
63450
|
var BUBBLE_INPUT_NAME$3 = "CheckboxBubbleInput";
|
|
63451
|
-
var CheckboxBubbleInput = /* @__PURE__ */
|
|
63451
|
+
var CheckboxBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$6(function CheckboxBubbleInput2({ __scopeCheckbox, onClick, ...props }, forwardedRef) {
|
|
63452
63452
|
const { control, hasConsumerStoppedPropagationRef, userInteractionCount, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useCheckboxContext(BUBBLE_INPUT_NAME$3, __scopeCheckbox);
|
|
63453
63453
|
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
|
63454
63454
|
const controlSize = useSize(control);
|
|
63455
|
-
const shouldStopClickPropagationRef =
|
|
63456
|
-
const prevCheckedRef =
|
|
63457
|
-
const prevUserInteractionCountRef =
|
|
63458
|
-
|
|
63455
|
+
const shouldStopClickPropagationRef = React$2.useRef(false);
|
|
63456
|
+
const prevCheckedRef = React$2.useRef(checked);
|
|
63457
|
+
const prevUserInteractionCountRef = React$2.useRef(userInteractionCount);
|
|
63458
|
+
React$2.useEffect(() => {
|
|
63459
63459
|
const input = bubbleInput;
|
|
63460
63460
|
if (!input) return;
|
|
63461
63461
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -63479,7 +63479,7 @@ var CheckboxBubbleInput = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __na
|
|
|
63479
63479
|
hasConsumerStoppedPropagationRef,
|
|
63480
63480
|
userInteractionCount
|
|
63481
63481
|
]);
|
|
63482
|
-
const defaultCheckedRef =
|
|
63482
|
+
const defaultCheckedRef = React$2.useRef(isIndeterminate(checked) ? false : checked);
|
|
63483
63483
|
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
63484
63484
|
type: "checkbox",
|
|
63485
63485
|
"aria-hidden": true,
|
|
@@ -63523,7 +63523,7 @@ var __name$5 = (target, value) => __defProp$5(target, "name", {
|
|
|
63523
63523
|
value,
|
|
63524
63524
|
configurable: true
|
|
63525
63525
|
});
|
|
63526
|
-
var Root$2 = /* @__PURE__ */
|
|
63526
|
+
var Root$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$5(function AspectRatio2(props, forwardedRef) {
|
|
63527
63527
|
const { ratio = 1, style, ...aspectRatioProps } = props;
|
|
63528
63528
|
return /* @__PURE__ */ jsx("div", {
|
|
63529
63529
|
style: {
|
|
@@ -63551,7 +63551,7 @@ var __name$4 = (target, value) => __defProp$4(target, "name", {
|
|
|
63551
63551
|
value,
|
|
63552
63552
|
configurable: true
|
|
63553
63553
|
});
|
|
63554
|
-
var Root$1 = /* @__PURE__ */
|
|
63554
|
+
var Root$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$4(function Label2(props, forwardedRef) {
|
|
63555
63555
|
return /* @__PURE__ */ jsx(Primitive.label, {
|
|
63556
63556
|
...props,
|
|
63557
63557
|
ref: forwardedRef,
|
|
@@ -63572,10 +63572,10 @@ var [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME);
|
|
|
63572
63572
|
var [RadioProviderImpl, useRadioContext] = createRadioContext(RADIO_NAME);
|
|
63573
63573
|
function RadioProvider(props) {
|
|
63574
63574
|
const { __scopeRadio, checked = false, children, disabled, form, name, onCheck, required, value = "on", internal_do_not_use_render } = props;
|
|
63575
|
-
const [control, setControl] =
|
|
63576
|
-
const [bubbleInput, setBubbleInput] =
|
|
63577
|
-
const hasConsumerStoppedPropagationRef =
|
|
63578
|
-
const [userInteractionCount, onUserInteraction] =
|
|
63575
|
+
const [control, setControl] = React$2.useState(null);
|
|
63576
|
+
const [bubbleInput, setBubbleInput] = React$2.useState(null);
|
|
63577
|
+
const hasConsumerStoppedPropagationRef = React$2.useRef(false);
|
|
63578
|
+
const [userInteractionCount, onUserInteraction] = React$2.useReducer((count) => count + 1, 0);
|
|
63579
63579
|
const context = {
|
|
63580
63580
|
checked,
|
|
63581
63581
|
disabled,
|
|
@@ -63601,7 +63601,7 @@ function RadioProvider(props) {
|
|
|
63601
63601
|
}
|
|
63602
63602
|
__name$3(RadioProvider, "RadioProvider");
|
|
63603
63603
|
var TRIGGER_NAME$2 = "RadioTrigger";
|
|
63604
|
-
var RadioTrigger = /* @__PURE__ */
|
|
63604
|
+
var RadioTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioTrigger2({ __scopeRadio, onClick, ...radioProps }, forwardedRef) {
|
|
63605
63605
|
const { checked, disabled, value, setControl, onCheck, hasConsumerStoppedPropagationRef, onUserInteraction, isFormControl, bubbleInput } = useRadioContext(TRIGGER_NAME$2, __scopeRadio);
|
|
63606
63606
|
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
63607
63607
|
return /* @__PURE__ */ jsx(Primitive.button, {
|
|
@@ -63627,14 +63627,14 @@ var RadioTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$3(fu
|
|
|
63627
63627
|
});
|
|
63628
63628
|
}, "RadioTrigger"));
|
|
63629
63629
|
var BUBBLE_INPUT_NAME$2 = "RadioBubbleInput";
|
|
63630
|
-
var RadioBubbleInput = /* @__PURE__ */
|
|
63630
|
+
var RadioBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioBubbleInput2({ __scopeRadio, onClick, ...props }, forwardedRef) {
|
|
63631
63631
|
const { control, checked, required, disabled, name, value, form, bubbleInput, setBubbleInput, hasConsumerStoppedPropagationRef, userInteractionCount } = useRadioContext(BUBBLE_INPUT_NAME$2, __scopeRadio);
|
|
63632
63632
|
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
|
63633
63633
|
const controlSize = useSize(control);
|
|
63634
|
-
const shouldStopClickPropagationRef =
|
|
63635
|
-
const prevCheckedRef =
|
|
63636
|
-
const prevUserInteractionCountRef =
|
|
63637
|
-
|
|
63634
|
+
const shouldStopClickPropagationRef = React$2.useRef(false);
|
|
63635
|
+
const prevCheckedRef = React$2.useRef(checked);
|
|
63636
|
+
const prevUserInteractionCountRef = React$2.useRef(userInteractionCount);
|
|
63637
|
+
React$2.useEffect(() => {
|
|
63638
63638
|
const input = bubbleInput;
|
|
63639
63639
|
if (!input) return;
|
|
63640
63640
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -63657,7 +63657,7 @@ var RadioBubbleInput = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$
|
|
|
63657
63657
|
hasConsumerStoppedPropagationRef,
|
|
63658
63658
|
userInteractionCount
|
|
63659
63659
|
]);
|
|
63660
|
-
const defaultCheckedRef =
|
|
63660
|
+
const defaultCheckedRef = React$2.useRef(checked);
|
|
63661
63661
|
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
63662
63662
|
type: "radio",
|
|
63663
63663
|
"aria-hidden": true,
|
|
@@ -63703,7 +63703,7 @@ var [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_
|
|
|
63703
63703
|
var useRovingFocusGroupScope$1 = createRovingFocusGroupScope();
|
|
63704
63704
|
var useRadioScope = createRadioScope();
|
|
63705
63705
|
var [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME);
|
|
63706
|
-
var RadioGroup$2 = /* @__PURE__ */
|
|
63706
|
+
var RadioGroup$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioGroup2(props, forwardedRef) {
|
|
63707
63707
|
const { __scopeRadioGroup, name, form, defaultValue, value: valueProp, required = false, disabled = false, orientation, dir, loop = true, onValueChange, ...groupProps } = props;
|
|
63708
63708
|
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
|
|
63709
63709
|
const direction = useDirection(dir);
|
|
@@ -63713,10 +63713,10 @@ var RadioGroup$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$3(fu
|
|
|
63713
63713
|
onChange: onValueChange,
|
|
63714
63714
|
caller: RADIO_GROUP_NAME
|
|
63715
63715
|
});
|
|
63716
|
-
const [control, setControl] =
|
|
63716
|
+
const [control, setControl] = React$2.useState(null);
|
|
63717
63717
|
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
63718
|
-
const initialValueRef =
|
|
63719
|
-
|
|
63718
|
+
const initialValueRef = React$2.useRef(value);
|
|
63719
|
+
React$2.useEffect(() => {
|
|
63720
63720
|
const associatedForm = form ? control?.ownerDocument.getElementById(form) : control?.closest("form");
|
|
63721
63721
|
if (associatedForm instanceof HTMLFormElement) {
|
|
63722
63722
|
const reset = /* @__PURE__ */ __name$3(() => setValue(initialValueRef.current), "reset");
|
|
@@ -63775,15 +63775,15 @@ function RadioGroupItemProvider(props) {
|
|
|
63775
63775
|
});
|
|
63776
63776
|
}
|
|
63777
63777
|
__name$3(RadioGroupItemProvider, "RadioGroupItemProvider");
|
|
63778
|
-
var RadioGroupItemTrigger = /* @__PURE__ */
|
|
63778
|
+
var RadioGroupItemTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioGroupItemTrigger2(props, forwardedRef) {
|
|
63779
63779
|
const { __scopeRadioGroup, ...triggerProps } = props;
|
|
63780
63780
|
const rovingFocusGroupScope = useRovingFocusGroupScope$1(__scopeRadioGroup);
|
|
63781
63781
|
const radioScope = useRadioScope(__scopeRadioGroup);
|
|
63782
63782
|
const { checked, disabled } = useRadioContext(ITEM_TRIGGER_NAME, radioScope.__scopeRadio);
|
|
63783
|
-
const ref =
|
|
63783
|
+
const ref = React$2.useRef(null);
|
|
63784
63784
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
63785
|
-
const isArrowKeyPressedRef =
|
|
63786
|
-
|
|
63785
|
+
const isArrowKeyPressedRef = React$2.useRef(false);
|
|
63786
|
+
React$2.useEffect(() => {
|
|
63787
63787
|
const handleKeyDown = /* @__PURE__ */ __name$3((event) => {
|
|
63788
63788
|
if (ARROW_KEYS$1.includes(event.key)) isArrowKeyPressedRef.current = true;
|
|
63789
63789
|
}, "handleKeyDown");
|
|
@@ -63813,7 +63813,7 @@ var RadioGroupItemTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __
|
|
|
63813
63813
|
})
|
|
63814
63814
|
});
|
|
63815
63815
|
}, "RadioGroupItemTrigger"));
|
|
63816
|
-
var RadioGroupItem = /* @__PURE__ */
|
|
63816
|
+
var RadioGroupItem = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioGroupItem2(props, forwardedRef) {
|
|
63817
63817
|
const { __scopeRadioGroup, value, disabled, ...itemProps } = props;
|
|
63818
63818
|
return /* @__PURE__ */ jsx(RadioGroupItemProvider, {
|
|
63819
63819
|
__scopeRadioGroup,
|
|
@@ -63826,7 +63826,7 @@ var RadioGroupItem = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$3(
|
|
|
63826
63826
|
}), isFormControl && /* @__PURE__ */ jsx(RadioGroupItemBubbleInput, { __scopeRadioGroup })] })
|
|
63827
63827
|
});
|
|
63828
63828
|
}, "RadioGroupItem"));
|
|
63829
|
-
var RadioGroupItemBubbleInput = /* @__PURE__ */
|
|
63829
|
+
var RadioGroupItemBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$3(function RadioGroupItemBubbleInput2(props, forwardedRef) {
|
|
63830
63830
|
const { __scopeRadioGroup, ...bubbleProps } = props;
|
|
63831
63831
|
const radioScope = useRadioScope(__scopeRadioGroup);
|
|
63832
63832
|
return /* @__PURE__ */ jsx(RadioBubbleInput, {
|
|
@@ -63877,15 +63877,15 @@ var SLIDER_NAME = "Slider";
|
|
|
63877
63877
|
var [Collection, useCollection, createCollectionScope] = /* @__PURE__ */ createCollection(SLIDER_NAME);
|
|
63878
63878
|
var [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [createCollectionScope]);
|
|
63879
63879
|
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
63880
|
-
var Slider$2 = /* @__PURE__ */
|
|
63880
|
+
var Slider$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function Slider2(props, forwardedRef) {
|
|
63881
63881
|
const { name, min = 0, max = 100, step = 1, orientation = "horizontal", disabled = false, minStepsBetweenThumbs = 0, defaultValue = [min], value, onValueChange = /* @__PURE__ */ __name$2(() => {
|
|
63882
63882
|
}, "onValueChange"), onValueCommit = /* @__PURE__ */ __name$2(() => {
|
|
63883
63883
|
}, "onValueCommit"), inverted = false, form, ...sliderProps } = props;
|
|
63884
|
-
const thumbRefs =
|
|
63885
|
-
const valueIndexToChangeRef =
|
|
63886
|
-
const isKeyboardInteractionRef =
|
|
63884
|
+
const thumbRefs = React$2.useRef(/* @__PURE__ */ new Set());
|
|
63885
|
+
const valueIndexToChangeRef = React$2.useRef(0);
|
|
63886
|
+
const isKeyboardInteractionRef = React$2.useRef(false);
|
|
63887
63887
|
const SliderOrientation = orientation === "horizontal" ? SliderHorizontal : SliderVertical;
|
|
63888
|
-
const [control, setControl] =
|
|
63888
|
+
const [control, setControl] = React$2.useState(null);
|
|
63889
63889
|
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
63890
63890
|
const [values = [], setValues] = useControllableState({
|
|
63891
63891
|
prop: value,
|
|
@@ -63899,9 +63899,9 @@ var Slider$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$2(functi
|
|
|
63899
63899
|
onValueChange(value2);
|
|
63900
63900
|
}, "onChange")
|
|
63901
63901
|
});
|
|
63902
|
-
const valuesBeforeSlideStartRef =
|
|
63903
|
-
const initialValuesRef =
|
|
63904
|
-
|
|
63902
|
+
const valuesBeforeSlideStartRef = React$2.useRef(values);
|
|
63903
|
+
const initialValuesRef = React$2.useRef(values);
|
|
63904
|
+
React$2.useEffect(() => {
|
|
63905
63905
|
const associatedForm = form ? control?.ownerDocument.getElementById(form) : control?.closest("form");
|
|
63906
63906
|
if (associatedForm instanceof HTMLFormElement) {
|
|
63907
63907
|
const reset = /* @__PURE__ */ __name$2(() => setValues(initialValuesRef.current), "reset");
|
|
@@ -64008,11 +64008,11 @@ var [SliderOrientationProvider, useSliderOrientationContext] = createSliderConte
|
|
|
64008
64008
|
size: "width",
|
|
64009
64009
|
direction: 1
|
|
64010
64010
|
});
|
|
64011
|
-
var SliderHorizontal = /* @__PURE__ */
|
|
64011
|
+
var SliderHorizontal = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderHorizontal2(props, forwardedRef) {
|
|
64012
64012
|
const { min, max, dir, inverted, onSlideStart, onSlideMove, onSlideEnd, onStepKeyDown, ...sliderProps } = props;
|
|
64013
|
-
const [slider, setSlider] =
|
|
64013
|
+
const [slider, setSlider] = React$2.useState(null);
|
|
64014
64014
|
const composedRefs = useComposedRefs(forwardedRef, setSlider);
|
|
64015
|
-
const rectRef =
|
|
64015
|
+
const rectRef = React$2.useRef(void 0);
|
|
64016
64016
|
const direction = useDirection(dir);
|
|
64017
64017
|
const isDirectionLTR = direction === "ltr";
|
|
64018
64018
|
const isSlidingFromLeft = isDirectionLTR && !inverted || !isDirectionLTR && inverted;
|
|
@@ -64060,11 +64060,11 @@ var SliderHorizontal = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$
|
|
|
64060
64060
|
})
|
|
64061
64061
|
});
|
|
64062
64062
|
}, "SliderHorizontal"));
|
|
64063
|
-
var SliderVertical = /* @__PURE__ */
|
|
64063
|
+
var SliderVertical = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderVertical2(props, forwardedRef) {
|
|
64064
64064
|
const { min, max, inverted, onSlideStart, onSlideMove, onSlideEnd, onStepKeyDown, ...sliderProps } = props;
|
|
64065
|
-
const sliderRef =
|
|
64065
|
+
const sliderRef = React$2.useRef(null);
|
|
64066
64066
|
const ref = useComposedRefs(forwardedRef, sliderRef);
|
|
64067
|
-
const rectRef =
|
|
64067
|
+
const rectRef = React$2.useRef(void 0);
|
|
64068
64068
|
const isSlidingFromBottom = !inverted;
|
|
64069
64069
|
function getValueFromPointer(pointerPosition) {
|
|
64070
64070
|
const rect = rectRef.current || sliderRef.current.getBoundingClientRect();
|
|
@@ -64109,7 +64109,7 @@ var SliderVertical = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$2(
|
|
|
64109
64109
|
})
|
|
64110
64110
|
});
|
|
64111
64111
|
}, "SliderVertical"));
|
|
64112
|
-
var SliderImpl = /* @__PURE__ */
|
|
64112
|
+
var SliderImpl = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderImpl2(props, forwardedRef) {
|
|
64113
64113
|
const { __scopeSlider, onSlideStart, onSlideMove, onSlideEnd, onHomeKeyDown, onEndKeyDown, onStepKeyDown, ...sliderProps } = props;
|
|
64114
64114
|
const context = useSliderContext(SLIDER_NAME, __scopeSlider);
|
|
64115
64115
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
@@ -64150,7 +64150,7 @@ var SliderImpl = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$2(func
|
|
|
64150
64150
|
});
|
|
64151
64151
|
}, "SliderImpl"));
|
|
64152
64152
|
var TRACK_NAME = "SliderTrack";
|
|
64153
|
-
var SliderTrack = /* @__PURE__ */
|
|
64153
|
+
var SliderTrack = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderTrack2(props, forwardedRef) {
|
|
64154
64154
|
const { __scopeSlider, ...trackProps } = props;
|
|
64155
64155
|
const context = useSliderContext(TRACK_NAME, __scopeSlider);
|
|
64156
64156
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
@@ -64161,11 +64161,11 @@ var SliderTrack = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$2(fun
|
|
|
64161
64161
|
});
|
|
64162
64162
|
}, "SliderTrack"));
|
|
64163
64163
|
var RANGE_NAME = "SliderRange";
|
|
64164
|
-
var SliderRange = /* @__PURE__ */
|
|
64164
|
+
var SliderRange = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderRange2(props, forwardedRef) {
|
|
64165
64165
|
const { __scopeSlider, ...rangeProps } = props;
|
|
64166
64166
|
const context = useSliderContext(RANGE_NAME, __scopeSlider);
|
|
64167
64167
|
const orientation = useSliderOrientationContext(RANGE_NAME, __scopeSlider);
|
|
64168
|
-
const ref =
|
|
64168
|
+
const ref = React$2.useRef(null);
|
|
64169
64169
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
64170
64170
|
const valuesCount = context.values.length;
|
|
64171
64171
|
const percentages = context.values.map((value) => convertValueToPercentage(value, context.min, context.max));
|
|
@@ -64189,14 +64189,14 @@ function SliderThumbProvider(props) {
|
|
|
64189
64189
|
const { __scopeSlider, name, children, internal_do_not_use_render } = props;
|
|
64190
64190
|
const context = useSliderContext(THUMB_PROVIDER_NAME, __scopeSlider);
|
|
64191
64191
|
const getItems = useCollection(__scopeSlider);
|
|
64192
|
-
const [thumb, setThumb] =
|
|
64193
|
-
const index =
|
|
64192
|
+
const [thumb, setThumb] = React$2.useState(null);
|
|
64193
|
+
const index = React$2.useMemo(() => thumb ? getItems().findIndex((item) => item.ref.current === thumb) : -1, [getItems, thumb]);
|
|
64194
64194
|
const size2 = useSize(thumb);
|
|
64195
64195
|
const isFormControl = thumb ? !!context.form || !!thumb.closest("form") : true;
|
|
64196
64196
|
const value = context.values[index];
|
|
64197
64197
|
const resolvedName = name ?? (context.name ? context.name + (context.values.length > 1 ? "[]" : "") : void 0);
|
|
64198
64198
|
const percent = value === void 0 ? 0 : convertValueToPercentage(value, context.min, context.max);
|
|
64199
|
-
|
|
64199
|
+
React$2.useEffect(() => {
|
|
64200
64200
|
if (thumb) {
|
|
64201
64201
|
context.thumbs.add(thumb);
|
|
64202
64202
|
return () => {
|
|
@@ -64223,7 +64223,7 @@ function SliderThumbProvider(props) {
|
|
|
64223
64223
|
}
|
|
64224
64224
|
__name$2(SliderThumbProvider, "SliderThumbProvider");
|
|
64225
64225
|
var THUMB_TRIGGER_NAME = "SliderThumbTrigger";
|
|
64226
|
-
var SliderThumbTrigger = /* @__PURE__ */
|
|
64226
|
+
var SliderThumbTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderThumbTrigger2(props, forwardedRef) {
|
|
64227
64227
|
const { __scopeSlider, ...thumbProps } = props;
|
|
64228
64228
|
const context = useSliderContext(THUMB_TRIGGER_NAME, __scopeSlider);
|
|
64229
64229
|
const orientation = useSliderOrientationContext(THUMB_TRIGGER_NAME, __scopeSlider);
|
|
@@ -64260,7 +64260,7 @@ var SliderThumbTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __nam
|
|
|
64260
64260
|
})
|
|
64261
64261
|
});
|
|
64262
64262
|
}, "SliderThumbTrigger"));
|
|
64263
|
-
var SliderThumb = /* @__PURE__ */
|
|
64263
|
+
var SliderThumb = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderThumb2(props, forwardedRef) {
|
|
64264
64264
|
const { __scopeSlider, name, ...thumbProps } = props;
|
|
64265
64265
|
return /* @__PURE__ */ jsx(SliderThumbProvider, {
|
|
64266
64266
|
__scopeSlider,
|
|
@@ -64273,12 +64273,12 @@ var SliderThumb = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$2(fun
|
|
|
64273
64273
|
});
|
|
64274
64274
|
}, "SliderThumb"));
|
|
64275
64275
|
var BUBBLE_INPUT_NAME$1 = "SliderBubbleInput";
|
|
64276
|
-
var SliderBubbleInput = /* @__PURE__ */
|
|
64276
|
+
var SliderBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$2(function SliderBubbleInput2({ __scopeSlider, ...props }, forwardedRef) {
|
|
64277
64277
|
const { value, name, form } = useSliderThumbContext(BUBBLE_INPUT_NAME$1, __scopeSlider);
|
|
64278
|
-
const ref =
|
|
64278
|
+
const ref = React$2.useRef(null);
|
|
64279
64279
|
const composedRefs = useComposedRefs(ref, forwardedRef);
|
|
64280
64280
|
const prevValue = usePrevious(value);
|
|
64281
|
-
|
|
64281
|
+
React$2.useEffect(() => {
|
|
64282
64282
|
const input = ref.current;
|
|
64283
64283
|
if (!input) return;
|
|
64284
64284
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -64396,10 +64396,10 @@ function SwitchProvider(props) {
|
|
|
64396
64396
|
onChange: onCheckedChange,
|
|
64397
64397
|
caller: SWITCH_NAME
|
|
64398
64398
|
});
|
|
64399
|
-
const [control, setControl] =
|
|
64400
|
-
const [bubbleInput, setBubbleInput] =
|
|
64401
|
-
const hasConsumerStoppedPropagationRef =
|
|
64402
|
-
const [userInteractionCount, onUserInteraction] =
|
|
64399
|
+
const [control, setControl] = React$2.useState(null);
|
|
64400
|
+
const [bubbleInput, setBubbleInput] = React$2.useState(null);
|
|
64401
|
+
const hasConsumerStoppedPropagationRef = React$2.useRef(false);
|
|
64402
|
+
const [userInteractionCount, onUserInteraction] = React$2.useReducer((count) => count + 1, 0);
|
|
64403
64403
|
const context = {
|
|
64404
64404
|
checked,
|
|
64405
64405
|
setChecked,
|
|
@@ -64426,11 +64426,11 @@ function SwitchProvider(props) {
|
|
|
64426
64426
|
}
|
|
64427
64427
|
__name$1(SwitchProvider, "SwitchProvider");
|
|
64428
64428
|
var TRIGGER_NAME$1 = "SwitchTrigger";
|
|
64429
|
-
var SwitchTrigger = /* @__PURE__ */
|
|
64429
|
+
var SwitchTrigger = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$1(function SwitchTrigger2({ __scopeSwitch, onClick, ...switchProps }, forwardedRef) {
|
|
64430
64430
|
const { control, form, value, disabled, checked, required, setControl, setChecked, hasConsumerStoppedPropagationRef, onUserInteraction, isFormControl, bubbleInput } = useSwitchContext(TRIGGER_NAME$1, __scopeSwitch);
|
|
64431
64431
|
const composedRefs = useComposedRefs(forwardedRef, setControl);
|
|
64432
|
-
const initialCheckedStateRef =
|
|
64433
|
-
|
|
64432
|
+
const initialCheckedStateRef = React$2.useRef(checked);
|
|
64433
|
+
React$2.useEffect(() => {
|
|
64434
64434
|
const associatedForm = form ? control?.ownerDocument.getElementById(form) : control?.form;
|
|
64435
64435
|
if (associatedForm instanceof HTMLFormElement) {
|
|
64436
64436
|
const reset = /* @__PURE__ */ __name$1(() => setChecked(initialCheckedStateRef.current), "reset");
|
|
@@ -64463,7 +64463,7 @@ var SwitchTrigger = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1(f
|
|
|
64463
64463
|
})
|
|
64464
64464
|
});
|
|
64465
64465
|
}, "SwitchTrigger"));
|
|
64466
|
-
var Switch2 = /* @__PURE__ */
|
|
64466
|
+
var Switch2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$1(function Switch22(props, forwardedRef) {
|
|
64467
64467
|
const { __scopeSwitch, name, checked, defaultChecked, required, disabled, value, onCheckedChange, form, ...switchProps } = props;
|
|
64468
64468
|
return /* @__PURE__ */ jsx(SwitchProvider, {
|
|
64469
64469
|
__scopeSwitch,
|
|
@@ -64483,7 +64483,7 @@ var Switch2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1(functio
|
|
|
64483
64483
|
});
|
|
64484
64484
|
}, "Switch"));
|
|
64485
64485
|
var THUMB_NAME = "SwitchThumb";
|
|
64486
|
-
var SwitchThumb = /* @__PURE__ */
|
|
64486
|
+
var SwitchThumb = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$1(function SwitchThumb2(props, forwardedRef) {
|
|
64487
64487
|
const { __scopeSwitch, ...thumbProps } = props;
|
|
64488
64488
|
const context = useSwitchContext(THUMB_NAME, __scopeSwitch);
|
|
64489
64489
|
return /* @__PURE__ */ jsx(Primitive.span, {
|
|
@@ -64494,14 +64494,14 @@ var SwitchThumb = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name$1(fun
|
|
|
64494
64494
|
});
|
|
64495
64495
|
}, "SwitchThumb"));
|
|
64496
64496
|
var BUBBLE_INPUT_NAME = "SwitchBubbleInput";
|
|
64497
|
-
var SwitchBubbleInput = /* @__PURE__ */
|
|
64497
|
+
var SwitchBubbleInput = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name$1(function SwitchBubbleInput2({ __scopeSwitch, onClick, ...props }, forwardedRef) {
|
|
64498
64498
|
const { control, hasConsumerStoppedPropagationRef, userInteractionCount, checked, defaultChecked, required, disabled, name, value, form, bubbleInput, setBubbleInput } = useSwitchContext(BUBBLE_INPUT_NAME, __scopeSwitch);
|
|
64499
64499
|
const composedRefs = useComposedRefs(forwardedRef, setBubbleInput);
|
|
64500
64500
|
const controlSize = useSize(control);
|
|
64501
|
-
const shouldStopClickPropagationRef =
|
|
64502
|
-
const prevCheckedRef =
|
|
64503
|
-
const prevUserInteractionCountRef =
|
|
64504
|
-
|
|
64501
|
+
const shouldStopClickPropagationRef = React$2.useRef(false);
|
|
64502
|
+
const prevCheckedRef = React$2.useRef(checked);
|
|
64503
|
+
const prevUserInteractionCountRef = React$2.useRef(userInteractionCount);
|
|
64504
|
+
React$2.useEffect(() => {
|
|
64505
64505
|
const input = bubbleInput;
|
|
64506
64506
|
if (!input) return;
|
|
64507
64507
|
const inputProto = window.HTMLInputElement.prototype;
|
|
@@ -64524,7 +64524,7 @@ var SwitchBubbleInput = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name
|
|
|
64524
64524
|
hasConsumerStoppedPropagationRef,
|
|
64525
64525
|
userInteractionCount
|
|
64526
64526
|
]);
|
|
64527
|
-
const defaultCheckedRef =
|
|
64527
|
+
const defaultCheckedRef = React$2.useRef(checked);
|
|
64528
64528
|
return /* @__PURE__ */ jsx(Primitive.input, {
|
|
64529
64529
|
type: "checkbox",
|
|
64530
64530
|
"aria-hidden": true,
|
|
@@ -64568,7 +64568,7 @@ var TABS_NAME = "Tabs";
|
|
|
64568
64568
|
var [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [createRovingFocusGroupScope]);
|
|
64569
64569
|
var useRovingFocusGroupScope = createRovingFocusGroupScope();
|
|
64570
64570
|
var [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME);
|
|
64571
|
-
var Tabs$2 = /* @__PURE__ */
|
|
64571
|
+
var Tabs$2 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name(function Tabs2(props, forwardedRef) {
|
|
64572
64572
|
const { __scopeTabs, value: valueProp, onValueChange, defaultValue, orientation = "horizontal", dir, activationMode = "automatic", ...tabsProps } = props;
|
|
64573
64573
|
const direction = useDirection(dir);
|
|
64574
64574
|
const [value, setValue] = useControllableState({
|
|
@@ -64594,7 +64594,7 @@ var Tabs$2 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name(function T
|
|
|
64594
64594
|
});
|
|
64595
64595
|
}, "Tabs"));
|
|
64596
64596
|
var TAB_LIST_NAME = "TabsList";
|
|
64597
|
-
var TabsList$1 = /* @__PURE__ */
|
|
64597
|
+
var TabsList$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name(function TabsList2(props, forwardedRef) {
|
|
64598
64598
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
64599
64599
|
const context = useTabsContext(TAB_LIST_NAME, __scopeTabs);
|
|
64600
64600
|
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
|
|
@@ -64613,7 +64613,7 @@ var TabsList$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name(functi
|
|
|
64613
64613
|
});
|
|
64614
64614
|
}, "TabsList"));
|
|
64615
64615
|
var TRIGGER_NAME = "TabsTrigger";
|
|
64616
|
-
var TabsTrigger$1 = /* @__PURE__ */
|
|
64616
|
+
var TabsTrigger$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name(function TabsTrigger2(props, forwardedRef) {
|
|
64617
64617
|
const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
|
|
64618
64618
|
const context = useTabsContext(TRIGGER_NAME, __scopeTabs);
|
|
64619
64619
|
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
|
|
@@ -64652,14 +64652,14 @@ var TabsTrigger$1 = /* @__PURE__ */ React2.forwardRef(/* @__PURE__ */ __name(fun
|
|
|
64652
64652
|
});
|
|
64653
64653
|
}, "TabsTrigger"));
|
|
64654
64654
|
var CONTENT_NAME = "TabsContent";
|
|
64655
|
-
var TabsContent$1 = /* @__PURE__ */
|
|
64655
|
+
var TabsContent$1 = /* @__PURE__ */ React$2.forwardRef(/* @__PURE__ */ __name(function TabsContent2(props, forwardedRef) {
|
|
64656
64656
|
const { __scopeTabs, value, forceMount, children, ...contentProps } = props;
|
|
64657
64657
|
const context = useTabsContext(CONTENT_NAME, __scopeTabs);
|
|
64658
64658
|
const triggerId = makeTriggerId(context.baseId, value);
|
|
64659
64659
|
const contentId = makeContentId(context.baseId, value);
|
|
64660
64660
|
const isSelected = value === context.value;
|
|
64661
|
-
const isMountAnimationPreventedRef =
|
|
64662
|
-
|
|
64661
|
+
const isMountAnimationPreventedRef = React$2.useRef(isSelected);
|
|
64662
|
+
React$2.useEffect(() => {
|
|
64663
64663
|
const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);
|
|
64664
64664
|
return () => cancelAnimationFrame(rAF);
|
|
64665
64665
|
}, []);
|
|
@@ -80369,14 +80369,14 @@ var Surface = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
80369
80369
|
y: 0
|
|
80370
80370
|
};
|
|
80371
80371
|
var layerClass = clsx("recharts-surface", className);
|
|
80372
|
-
return /* @__PURE__ */
|
|
80372
|
+
return /* @__PURE__ */ React$2.createElement("svg", _extends$31({}, svgPropertiesAndEvents(others), {
|
|
80373
80373
|
className: layerClass,
|
|
80374
80374
|
width,
|
|
80375
80375
|
height,
|
|
80376
80376
|
style,
|
|
80377
80377
|
viewBox: "".concat(svgView.x, " ").concat(svgView.y, " ").concat(svgView.width, " ").concat(svgView.height),
|
|
80378
80378
|
ref
|
|
80379
|
-
}), /* @__PURE__ */
|
|
80379
|
+
}), /* @__PURE__ */ React$2.createElement("title", null, title), /* @__PURE__ */ React$2.createElement("desc", null, desc), children);
|
|
80380
80380
|
});
|
|
80381
80381
|
var _excluded$27 = ["children", "className"];
|
|
80382
80382
|
function _extends$30() {
|
|
@@ -80406,10 +80406,10 @@ function _objectWithoutPropertiesLoose$27(r2, e) {
|
|
|
80406
80406
|
}
|
|
80407
80407
|
return t;
|
|
80408
80408
|
}
|
|
80409
|
-
var Layer = /* @__PURE__ */
|
|
80409
|
+
var Layer = /* @__PURE__ */ React$2.forwardRef((props, ref) => {
|
|
80410
80410
|
var children = props.children, className = props.className, others = _objectWithoutProperties$27(props, _excluded$27);
|
|
80411
80411
|
var layerClass = clsx("recharts-layer", className);
|
|
80412
|
-
return /* @__PURE__ */
|
|
80412
|
+
return /* @__PURE__ */ React$2.createElement("g", _extends$30({ className: layerClass }, svgPropertiesAndEvents(others), { ref }), children);
|
|
80413
80413
|
});
|
|
80414
80414
|
function isUnsafeProperty(key) {
|
|
80415
80415
|
return key === "__proto__";
|
|
@@ -80937,7 +80937,7 @@ var Symbols2 = (_ref2) => {
|
|
|
80937
80937
|
};
|
|
80938
80938
|
var className = props.className, cx = props.cx, cy = props.cy;
|
|
80939
80939
|
var filteredProps = svgPropertiesAndEvents(props);
|
|
80940
|
-
if (isNumber2(cx) && isNumber2(cy) && isNumber2(size2)) return /* @__PURE__ */
|
|
80940
|
+
if (isNumber2(cx) && isNumber2(cy) && isNumber2(size2)) return /* @__PURE__ */ React$2.createElement("path", _extends$29({}, filteredProps, {
|
|
80941
80941
|
className: clsx("recharts-symbols", className),
|
|
80942
80942
|
transform: "translate(".concat(cx, ", ").concat(cy, ")"),
|
|
80943
80943
|
d: getPath4()
|
|
@@ -81098,7 +81098,7 @@ function Icon(_ref2) {
|
|
|
81098
81098
|
var color2 = data.inactive ? inactiveColor : data.color;
|
|
81099
81099
|
var preferredIcon = iconType !== null && iconType !== void 0 ? iconType : data.type;
|
|
81100
81100
|
if (preferredIcon === "none") return null;
|
|
81101
|
-
if (preferredIcon === "plainline") return /* @__PURE__ */
|
|
81101
|
+
if (preferredIcon === "plainline") return /* @__PURE__ */ React$2.createElement("line", {
|
|
81102
81102
|
strokeWidth: 4,
|
|
81103
81103
|
fill: "none",
|
|
81104
81104
|
stroke: color2,
|
|
@@ -81109,25 +81109,25 @@ function Icon(_ref2) {
|
|
|
81109
81109
|
y2: halfSize,
|
|
81110
81110
|
className: "recharts-legend-icon"
|
|
81111
81111
|
});
|
|
81112
|
-
if (preferredIcon === "line") return /* @__PURE__ */
|
|
81112
|
+
if (preferredIcon === "line") return /* @__PURE__ */ React$2.createElement("path", {
|
|
81113
81113
|
strokeWidth: 4,
|
|
81114
81114
|
fill: "none",
|
|
81115
81115
|
stroke: color2,
|
|
81116
81116
|
d: "M0,".concat(halfSize, "h").concat(thirdSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(2 * thirdSize, ",").concat(halfSize, "\n H").concat(SIZE, "M").concat(2 * thirdSize, ",").concat(halfSize, "\n A").concat(sixthSize, ",").concat(sixthSize, ",0,1,1,").concat(thirdSize, ",").concat(halfSize),
|
|
81117
81117
|
className: "recharts-legend-icon"
|
|
81118
81118
|
});
|
|
81119
|
-
if (preferredIcon === "rect") return /* @__PURE__ */
|
|
81119
|
+
if (preferredIcon === "rect") return /* @__PURE__ */ React$2.createElement("path", {
|
|
81120
81120
|
stroke: "none",
|
|
81121
81121
|
fill: color2,
|
|
81122
81122
|
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-SIZE, "z"),
|
|
81123
81123
|
className: "recharts-legend-icon"
|
|
81124
81124
|
});
|
|
81125
|
-
if (/* @__PURE__ */
|
|
81125
|
+
if (/* @__PURE__ */ React$2.isValidElement(data.legendIcon)) {
|
|
81126
81126
|
var iconProps = _objectSpread$41({}, data);
|
|
81127
81127
|
delete iconProps.legendIcon;
|
|
81128
|
-
return /* @__PURE__ */
|
|
81128
|
+
return /* @__PURE__ */ React$2.cloneElement(data.legendIcon, iconProps);
|
|
81129
81129
|
}
|
|
81130
|
-
return /* @__PURE__ */
|
|
81130
|
+
return /* @__PURE__ */ React$2.createElement(Symbols2, {
|
|
81131
81131
|
fill: color2,
|
|
81132
81132
|
cx: halfSize,
|
|
81133
81133
|
cy: halfSize,
|
|
@@ -81168,21 +81168,21 @@ function Items(props) {
|
|
|
81168
81168
|
(_finalLabelStyle$whit = finalLabelStyle.whiteSpace) !== null && _finalLabelStyle$whit !== void 0 || (finalLabelStyle.whiteSpace = "normal");
|
|
81169
81169
|
(_finalLabelStyle$over = finalLabelStyle.overflowWrap) !== null && _finalLabelStyle$over !== void 0 || (finalLabelStyle.overflowWrap = "break-word");
|
|
81170
81170
|
var finalValue = finalFormatter ? finalFormatter(entry.value, entry, i) : entry.value;
|
|
81171
|
-
return /* @__PURE__ */
|
|
81171
|
+
return /* @__PURE__ */ React$2.createElement("li", _extends$28({
|
|
81172
81172
|
className,
|
|
81173
81173
|
style: itemStyle,
|
|
81174
81174
|
key: "legend-item-".concat(i)
|
|
81175
|
-
}, adaptEventsOfChild2(props, entry, i)), /* @__PURE__ */
|
|
81175
|
+
}, adaptEventsOfChild2(props, entry, i)), /* @__PURE__ */ React$2.createElement(Surface, {
|
|
81176
81176
|
width: iconSize,
|
|
81177
81177
|
height: iconSize,
|
|
81178
81178
|
viewBox,
|
|
81179
81179
|
style: svgStyle,
|
|
81180
81180
|
"aria-label": entry.value == null ? "legend icon" : "".concat(entry.value, " legend icon")
|
|
81181
|
-
}, /* @__PURE__ */
|
|
81181
|
+
}, /* @__PURE__ */ React$2.createElement(Icon, {
|
|
81182
81182
|
data: entry,
|
|
81183
81183
|
iconType,
|
|
81184
81184
|
inactiveColor
|
|
81185
|
-
})), /* @__PURE__ */
|
|
81185
|
+
})), /* @__PURE__ */ React$2.createElement("span", {
|
|
81186
81186
|
className: "recharts-legend-item-text",
|
|
81187
81187
|
style: finalLabelStyle
|
|
81188
81188
|
}, finalValue));
|
|
@@ -81197,10 +81197,10 @@ var DefaultLegendContent = (outsideProps) => {
|
|
|
81197
81197
|
margin: 0,
|
|
81198
81198
|
textAlign: layout === "horizontal" ? align : "left"
|
|
81199
81199
|
};
|
|
81200
|
-
return /* @__PURE__ */
|
|
81200
|
+
return /* @__PURE__ */ React$2.createElement("ul", {
|
|
81201
81201
|
className: "recharts-default-legend",
|
|
81202
81202
|
style: finalStyle
|
|
81203
|
-
}, /* @__PURE__ */
|
|
81203
|
+
}, /* @__PURE__ */ React$2.createElement(Items, _extends$28({}, props, { payload })));
|
|
81204
81204
|
};
|
|
81205
81205
|
function uniqBy$1(arr, mapper) {
|
|
81206
81206
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -84354,7 +84354,7 @@ function ResponsiveContainerContextProvider(_ref2) {
|
|
|
84354
84354
|
height
|
|
84355
84355
|
}), [width, height]);
|
|
84356
84356
|
if (!isAcceptableSize(size2)) return null;
|
|
84357
|
-
return /* @__PURE__ */
|
|
84357
|
+
return /* @__PURE__ */ React$2.createElement(ResponsiveContainerContext.Provider, { value: size2 }, children);
|
|
84358
84358
|
}
|
|
84359
84359
|
var useResponsiveContainerContext = () => useContext2(ResponsiveContainerContext);
|
|
84360
84360
|
var SizeDetectorContainer = /* @__PURE__ */ forwardRef2((_ref2, ref) => {
|
|
@@ -84409,7 +84409,7 @@ var SizeDetectorContainer = /* @__PURE__ */ forwardRef2((_ref2, ref) => {
|
|
|
84409
84409
|
maxHeight
|
|
84410
84410
|
}), calculatedWidth = _calculateChartDimens.calculatedWidth, calculatedHeight = _calculateChartDimens.calculatedHeight;
|
|
84411
84411
|
warn3(containerWidth < 0 || containerHeight < 0 || calculatedWidth != null && calculatedWidth > 0 || calculatedHeight != null && calculatedHeight > 0, "The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.", calculatedWidth, calculatedHeight, width, height, minWidth, minHeight, aspect);
|
|
84412
|
-
return /* @__PURE__ */
|
|
84412
|
+
return /* @__PURE__ */ React$2.createElement("div", _extends$27({
|
|
84413
84413
|
id: id ? "".concat(id) : void 0,
|
|
84414
84414
|
className: clsx("recharts-responsive-container", className),
|
|
84415
84415
|
style: _objectSpread$38(_objectSpread$38({}, style), {}, {
|
|
@@ -84420,10 +84420,10 @@ var SizeDetectorContainer = /* @__PURE__ */ forwardRef2((_ref2, ref) => {
|
|
|
84420
84420
|
maxHeight
|
|
84421
84421
|
}),
|
|
84422
84422
|
ref: containerRef
|
|
84423
|
-
}, others), /* @__PURE__ */
|
|
84423
|
+
}, others), /* @__PURE__ */ React$2.createElement("div", { style: getInnerDivStyle({
|
|
84424
84424
|
width,
|
|
84425
84425
|
height
|
|
84426
|
-
}) }, /* @__PURE__ */
|
|
84426
|
+
}) }, /* @__PURE__ */ React$2.createElement(ResponsiveContainerContextProvider, {
|
|
84427
84427
|
width: calculatedWidth,
|
|
84428
84428
|
height: calculatedHeight
|
|
84429
84429
|
}, children)));
|
|
@@ -84442,11 +84442,11 @@ var ResponsiveContainer = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
84442
84442
|
aspect: props.aspect,
|
|
84443
84443
|
maxHeight: props.maxHeight
|
|
84444
84444
|
}), calculatedWidth = _calculateChartDimens2.calculatedWidth, calculatedHeight = _calculateChartDimens2.calculatedHeight;
|
|
84445
|
-
if (isNumber2(calculatedWidth) && isNumber2(calculatedHeight)) return /* @__PURE__ */
|
|
84445
|
+
if (isNumber2(calculatedWidth) && isNumber2(calculatedHeight)) return /* @__PURE__ */ React$2.createElement(ResponsiveContainerContextProvider, {
|
|
84446
84446
|
width: calculatedWidth,
|
|
84447
84447
|
height: calculatedHeight
|
|
84448
84448
|
}, props.children);
|
|
84449
|
-
return /* @__PURE__ */
|
|
84449
|
+
return /* @__PURE__ */ React$2.createElement(SizeDetectorContainer, _extends$27({}, props, {
|
|
84450
84450
|
width,
|
|
84451
84451
|
height,
|
|
84452
84452
|
ref
|
|
@@ -84722,7 +84722,7 @@ var canUseDOM = () => !!(typeof window !== "undefined" && typeof window.document
|
|
|
84722
84722
|
var isDOM = /* @__PURE__ */ canUseDOM();
|
|
84723
84723
|
var isRunningInReactNative = () => typeof navigator !== "undefined" && navigator.product === "ReactNative";
|
|
84724
84724
|
var isReactNative = /* @__PURE__ */ isRunningInReactNative();
|
|
84725
|
-
var getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ?
|
|
84725
|
+
var getUseIsomorphicLayoutEffect = () => isDOM || isReactNative ? React$2.useLayoutEffect : React$2.useEffect;
|
|
84726
84726
|
var useIsomorphicLayoutEffect = /* @__PURE__ */ getUseIsomorphicLayoutEffect();
|
|
84727
84727
|
function is(x2, y2) {
|
|
84728
84728
|
if (x2 === y2) return x2 !== 0 || y2 !== 0 || 1 / x2 === 1 / y2;
|
|
@@ -84740,19 +84740,19 @@ function shallowEqual(objA, objB) {
|
|
|
84740
84740
|
var ContextKey = /* @__PURE__ */ Symbol.for(`react-redux-context`);
|
|
84741
84741
|
var gT = typeof globalThis !== "undefined" ? globalThis : {};
|
|
84742
84742
|
function getContext() {
|
|
84743
|
-
if (!
|
|
84743
|
+
if (!React$2.createContext) return {};
|
|
84744
84744
|
const contextMap = gT[ContextKey] ??= /* @__PURE__ */ new Map();
|
|
84745
|
-
let realContext = contextMap.get(
|
|
84745
|
+
let realContext = contextMap.get(React$2.createContext);
|
|
84746
84746
|
if (!realContext) {
|
|
84747
|
-
realContext =
|
|
84748
|
-
contextMap.set(
|
|
84747
|
+
realContext = React$2.createContext(null);
|
|
84748
|
+
contextMap.set(React$2.createContext, realContext);
|
|
84749
84749
|
}
|
|
84750
84750
|
return realContext;
|
|
84751
84751
|
}
|
|
84752
84752
|
var ReactReduxContext = /* @__PURE__ */ getContext();
|
|
84753
84753
|
function Provider(providerProps) {
|
|
84754
84754
|
const { children, context, serverState, store: store2 } = providerProps;
|
|
84755
|
-
const contextValue =
|
|
84755
|
+
const contextValue = React$2.useMemo(() => {
|
|
84756
84756
|
const subscription = createSubscription(store2);
|
|
84757
84757
|
return {
|
|
84758
84758
|
store: store2,
|
|
@@ -84760,7 +84760,7 @@ function Provider(providerProps) {
|
|
|
84760
84760
|
getServerState: serverState ? () => serverState : void 0
|
|
84761
84761
|
};
|
|
84762
84762
|
}, [store2, serverState]);
|
|
84763
|
-
const previousState =
|
|
84763
|
+
const previousState = React$2.useMemo(() => store2.getState(), [store2]);
|
|
84764
84764
|
useIsomorphicLayoutEffect(() => {
|
|
84765
84765
|
const { subscription } = contextValue;
|
|
84766
84766
|
subscription.onStateChange = subscription.notifyNestedSubs;
|
|
@@ -84772,7 +84772,7 @@ function Provider(providerProps) {
|
|
|
84772
84772
|
};
|
|
84773
84773
|
}, [contextValue, previousState]);
|
|
84774
84774
|
const Context = context || ReactReduxContext;
|
|
84775
|
-
return /* @__PURE__ */
|
|
84775
|
+
return /* @__PURE__ */ React$2.createElement(Context.Provider, { value: contextValue }, children);
|
|
84776
84776
|
}
|
|
84777
84777
|
var Provider_default = Provider;
|
|
84778
84778
|
var propsToShallowCompare = /* @__PURE__ */ new Set([
|
|
@@ -84959,9 +84959,9 @@ function LegendContent(props) {
|
|
|
84959
84959
|
var contextPayload = props.contextPayload, otherProps = _objectWithoutProperties$24(props, _excluded$24);
|
|
84960
84960
|
var finalPayload = getUniqPayload(contextPayload, props.payloadUniqBy, defaultUniqBy$1);
|
|
84961
84961
|
var contentProps = _objectSpread$37(_objectSpread$37({}, otherProps), {}, { payload: finalPayload });
|
|
84962
|
-
if (/* @__PURE__ */
|
|
84963
|
-
if (typeof props.content === "function") return /* @__PURE__ */
|
|
84964
|
-
return /* @__PURE__ */
|
|
84962
|
+
if (/* @__PURE__ */ React$2.isValidElement(props.content)) return /* @__PURE__ */ React$2.cloneElement(props.content, contentProps);
|
|
84963
|
+
if (typeof props.content === "function") return /* @__PURE__ */ React$2.createElement(props.content, contentProps);
|
|
84964
|
+
return /* @__PURE__ */ React$2.createElement(DefaultLegendContent, contentProps);
|
|
84965
84965
|
}
|
|
84966
84966
|
function getLayoutForPosition(position) {
|
|
84967
84967
|
if (position === "left" || position === "right" || position === "insideLeft" || position === "insideRight") return "vertical";
|
|
@@ -85097,18 +85097,18 @@ function LegendImpl(outsideProps) {
|
|
|
85097
85097
|
}, positionStyle), wrapperStyle);
|
|
85098
85098
|
var legendPortal = portalFromProps !== null && portalFromProps !== void 0 ? portalFromProps : legendPortalFromContext;
|
|
85099
85099
|
if (legendPortal == null || contextPayload == null) return null;
|
|
85100
|
-
var legendElement = /* @__PURE__ */
|
|
85100
|
+
var legendElement = /* @__PURE__ */ React$2.createElement("div", {
|
|
85101
85101
|
className: "recharts-legend-wrapper",
|
|
85102
85102
|
style: outerStyle,
|
|
85103
85103
|
ref: updateBoundingBox
|
|
85104
|
-
}, /* @__PURE__ */
|
|
85104
|
+
}, /* @__PURE__ */ React$2.createElement(LegendSettingsDispatcher, {
|
|
85105
85105
|
layout,
|
|
85106
85106
|
align: props.align,
|
|
85107
85107
|
verticalAlign: props.verticalAlign,
|
|
85108
85108
|
itemSorter: props.itemSorter,
|
|
85109
85109
|
position: props.position,
|
|
85110
85110
|
offset: props.offset
|
|
85111
|
-
}), shouldReportDimensions && /* @__PURE__ */
|
|
85111
|
+
}), shouldReportDimensions && /* @__PURE__ */ React$2.createElement(LegendSizeDispatcher, lastBoundingBox), /* @__PURE__ */ React$2.createElement(LegendContent, _extends$26({}, props, { layout }, widthOrHeight, {
|
|
85112
85112
|
margin,
|
|
85113
85113
|
chartWidth,
|
|
85114
85114
|
chartHeight,
|
|
@@ -85116,7 +85116,7 @@ function LegendImpl(outsideProps) {
|
|
|
85116
85116
|
})));
|
|
85117
85117
|
return /* @__PURE__ */ createPortal2(legendElement, legendPortal);
|
|
85118
85118
|
}
|
|
85119
|
-
var Legend = /* @__PURE__ */
|
|
85119
|
+
var Legend = /* @__PURE__ */ React$2.memo(LegendImpl, propsAreEqual);
|
|
85120
85120
|
Legend.displayName = "Legend";
|
|
85121
85121
|
function _extends$25() {
|
|
85122
85122
|
return _extends$25 = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -85261,13 +85261,13 @@ var DefaultTooltipContent2 = (props) => {
|
|
|
85261
85261
|
else return null;
|
|
85262
85262
|
}
|
|
85263
85263
|
var finalItemStyle = _objectSpread$36(_objectSpread$36({}, defaultDefaultTooltipContentProps.itemStyle), {}, { color: entry.color || defaultDefaultTooltipContentProps.itemStyle.color }, itemStyle);
|
|
85264
|
-
return /* @__PURE__ */
|
|
85264
|
+
return /* @__PURE__ */ React$2.createElement("li", {
|
|
85265
85265
|
className: "recharts-tooltip-item",
|
|
85266
85266
|
key: "tooltip-item-".concat(i),
|
|
85267
85267
|
style: finalItemStyle
|
|
85268
|
-
}, isNumOrStr2(finalName) ? /* @__PURE__ */
|
|
85268
|
+
}, isNumOrStr2(finalName) ? /* @__PURE__ */ React$2.createElement("span", { className: "recharts-tooltip-item-name" }, finalName) : null, isNumOrStr2(finalName) ? /* @__PURE__ */ React$2.createElement("span", { className: "recharts-tooltip-item-separator" }, separator) : null, /* @__PURE__ */ React$2.createElement("span", { className: "recharts-tooltip-item-value" }, finalValue), /* @__PURE__ */ React$2.createElement("span", { className: "recharts-tooltip-item-unit" }, entry.unit || ""));
|
|
85269
85269
|
});
|
|
85270
|
-
return /* @__PURE__ */
|
|
85270
|
+
return /* @__PURE__ */ React$2.createElement("ul", {
|
|
85271
85271
|
className: "recharts-tooltip-item-list",
|
|
85272
85272
|
style: listStyle
|
|
85273
85273
|
}, items);
|
|
@@ -85285,13 +85285,13 @@ var DefaultTooltipContent2 = (props) => {
|
|
|
85285
85285
|
role: "status",
|
|
85286
85286
|
"aria-live": "assertive"
|
|
85287
85287
|
} : {};
|
|
85288
|
-
return /* @__PURE__ */
|
|
85288
|
+
return /* @__PURE__ */ React$2.createElement("div", _extends$25({
|
|
85289
85289
|
className: wrapperCN,
|
|
85290
85290
|
style: finalStyle
|
|
85291
|
-
}, accessibilityAttributes), /* @__PURE__ */
|
|
85291
|
+
}, accessibilityAttributes), /* @__PURE__ */ React$2.createElement("p", {
|
|
85292
85292
|
className: labelCN,
|
|
85293
85293
|
style: finalLabelStyle
|
|
85294
|
-
}, /* @__PURE__ */
|
|
85294
|
+
}, /* @__PURE__ */ React$2.isValidElement(finalLabel) ? finalLabel : "".concat(finalLabel)), renderContent2());
|
|
85295
85295
|
};
|
|
85296
85296
|
var CSS_CLASS_PREFIX = "recharts-tooltip-wrapper";
|
|
85297
85297
|
var TOOLTIP_HIDDEN = { visibility: "hidden" };
|
|
@@ -85526,14 +85526,14 @@ function resolveTransitionProperty(args) {
|
|
|
85526
85526
|
function TooltipBoundingBoxImpl(props) {
|
|
85527
85527
|
var _props$coordinate3, _props$coordinate4, _props$coordinate$x2, _props$coordinate5, _props$coordinate$y2, _props$coordinate6;
|
|
85528
85528
|
var prefersReducedMotion = usePrefersReducedMotion();
|
|
85529
|
-
var _React$useState2 = _slicedToArray$17(
|
|
85529
|
+
var _React$useState2 = _slicedToArray$17(React$2.useState(() => ({
|
|
85530
85530
|
dismissed: false,
|
|
85531
85531
|
dismissedAtCoordinate: {
|
|
85532
85532
|
x: 0,
|
|
85533
85533
|
y: 0
|
|
85534
85534
|
}
|
|
85535
85535
|
})), 2), state = _React$useState2[0], setState = _React$useState2[1];
|
|
85536
|
-
|
|
85536
|
+
React$2.useEffect(() => {
|
|
85537
85537
|
var handleKeyDown = (event) => {
|
|
85538
85538
|
if (event.key === "Escape") {
|
|
85539
85539
|
var _props$coordinate$x, _props$coordinate, _props$coordinate$y, _props$coordinate2;
|
|
@@ -85575,7 +85575,7 @@ function TooltipBoundingBoxImpl(props) {
|
|
|
85575
85575
|
top: 0,
|
|
85576
85576
|
left: 0
|
|
85577
85577
|
})), {}, { visibility: !state.dismissed && props.active && props.hasPayload ? "visible" : "hidden" }, props.wrapperStyle);
|
|
85578
|
-
return /* @__PURE__ */
|
|
85578
|
+
return /* @__PURE__ */ React$2.createElement("div", {
|
|
85579
85579
|
xmlns: "http://www.w3.org/1999/xhtml",
|
|
85580
85580
|
tabIndex: -1,
|
|
85581
85581
|
className: cssClasses,
|
|
@@ -85583,7 +85583,7 @@ function TooltipBoundingBoxImpl(props) {
|
|
|
85583
85583
|
ref: props.innerRef
|
|
85584
85584
|
}, props.children);
|
|
85585
85585
|
}
|
|
85586
|
-
var TooltipBoundingBox = /* @__PURE__ */
|
|
85586
|
+
var TooltipBoundingBox = /* @__PURE__ */ React$2.memo(TooltipBoundingBoxImpl);
|
|
85587
85587
|
var useAccessibilityLayer = () => {
|
|
85588
85588
|
var _useAppSelector;
|
|
85589
85589
|
return (_useAppSelector = useAppSelector((state) => state.rootProps.accessibilityLayer)) !== null && _useAppSelector !== void 0 ? _useAppSelector : true;
|
|
@@ -85701,7 +85701,7 @@ var Curve2 = (props) => {
|
|
|
85701
85701
|
connectNulls: props.connectNulls
|
|
85702
85702
|
};
|
|
85703
85703
|
var realPath = points && points.length ? getPath$1(getPathInput) : path2;
|
|
85704
|
-
return /* @__PURE__ */
|
|
85704
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$24({}, svgPropertiesNoEvents(props), adaptEventHandlers2(props), {
|
|
85705
85705
|
className: clsx("recharts-curve", className),
|
|
85706
85706
|
d: realPath === null ? void 0 : realPath,
|
|
85707
85707
|
ref: pathRef
|
|
@@ -85800,7 +85800,7 @@ var Cross2 = (_ref2) => {
|
|
|
85800
85800
|
height
|
|
85801
85801
|
}, rest2);
|
|
85802
85802
|
if (!isNumber2(x2) || !isNumber2(y2) || !isNumber2(width) || !isNumber2(height) || !isNumber2(top) || !isNumber2(left)) return null;
|
|
85803
|
-
return /* @__PURE__ */
|
|
85803
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$23({}, svgPropertiesAndEvents(props), {
|
|
85804
85804
|
className: clsx("recharts-cross", className),
|
|
85805
85805
|
d: getPath3(x2, y2, width, height, top, left)
|
|
85806
85806
|
}));
|
|
@@ -86594,7 +86594,7 @@ var Rectangle2 = (rectangleProps) => {
|
|
|
86594
86594
|
var _svgPropertiesAndEven = svgPropertiesAndEvents(props);
|
|
86595
86595
|
_svgPropertiesAndEven.radius;
|
|
86596
86596
|
var otherPathProps = _objectWithoutProperties$22(_svgPropertiesAndEven, _excluded$22);
|
|
86597
|
-
return /* @__PURE__ */
|
|
86597
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$22({}, otherPathProps, {
|
|
86598
86598
|
x: round(x2),
|
|
86599
86599
|
y: round(y2),
|
|
86600
86600
|
width: round(width),
|
|
@@ -86611,7 +86611,7 @@ var Rectangle2 = (rectangleProps) => {
|
|
|
86611
86611
|
var from2 = "0px ".concat(totalLength === -1 ? 1 : totalLength, "px");
|
|
86612
86612
|
var to2 = "".concat(totalLength, "px ").concat(totalLength, "px");
|
|
86613
86613
|
var transition = getTransitionVal2(["strokeDasharray"], animationDuration, typeof animationEasing === "string" ? animationEasing : defaultRectangleProps.animationEasing);
|
|
86614
|
-
return /* @__PURE__ */
|
|
86614
|
+
return /* @__PURE__ */ React$2.createElement(JavascriptAnimate, {
|
|
86615
86615
|
animationId,
|
|
86616
86616
|
key: animationId,
|
|
86617
86617
|
canBegin: totalLength > 0,
|
|
@@ -86640,7 +86640,7 @@ var Rectangle2 = (rectangleProps) => {
|
|
|
86640
86640
|
var _svgPropertiesAndEven2 = svgPropertiesAndEvents(props);
|
|
86641
86641
|
_svgPropertiesAndEven2.radius;
|
|
86642
86642
|
var otherPathProps2 = _objectWithoutProperties$22(_svgPropertiesAndEven2, _excluded2$12);
|
|
86643
|
-
return /* @__PURE__ */
|
|
86643
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$22({}, otherPathProps2, {
|
|
86644
86644
|
radius: typeof radius === "number" ? radius : void 0,
|
|
86645
86645
|
className: layerClass,
|
|
86646
86646
|
d: getRectanglePath2(currX, currY, currWidth, currHeight, radius),
|
|
@@ -87020,7 +87020,7 @@ var Sector2 = (sectorProps) => {
|
|
|
87020
87020
|
startAngle,
|
|
87021
87021
|
endAngle
|
|
87022
87022
|
});
|
|
87023
|
-
return /* @__PURE__ */
|
|
87023
|
+
return /* @__PURE__ */ React$2.createElement("path", _extends$21({}, svgPropertiesAndEvents(props), {
|
|
87024
87024
|
className: layerClass,
|
|
87025
87025
|
d: path2
|
|
87026
87026
|
}));
|
|
@@ -90195,7 +90195,7 @@ function CursorInternal(props) {
|
|
|
90195
90195
|
payloadIndex: activeTooltipIndex,
|
|
90196
90196
|
className: clsx("recharts-tooltip-cursor", extraClassName)
|
|
90197
90197
|
});
|
|
90198
|
-
return /* @__PURE__ */
|
|
90198
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: (_props$zIndex = props.zIndex) !== null && _props$zIndex !== void 0 ? _props$zIndex : preferredZIndex }, /* @__PURE__ */ React$2.createElement(RenderCursor, {
|
|
90199
90199
|
cursor,
|
|
90200
90200
|
cursorComp,
|
|
90201
90201
|
cursorProps
|
|
@@ -90207,7 +90207,7 @@ function Cursor(props) {
|
|
|
90207
90207
|
var layout = useChartLayout();
|
|
90208
90208
|
var chartName = useChartName();
|
|
90209
90209
|
if (tooltipAxisBandSize == null || offset2 == null || layout == null || chartName == null) return null;
|
|
90210
|
-
return /* @__PURE__ */
|
|
90210
|
+
return /* @__PURE__ */ React$2.createElement(CursorInternal, _extends$20({}, props, {
|
|
90211
90211
|
offset: offset2,
|
|
90212
90212
|
layout,
|
|
90213
90213
|
tooltipAxisBandSize,
|
|
@@ -90736,9 +90736,9 @@ function defaultUniqBy(entry) {
|
|
|
90736
90736
|
return entry.dataKey;
|
|
90737
90737
|
}
|
|
90738
90738
|
function renderContent(content, props) {
|
|
90739
|
-
if (/* @__PURE__ */
|
|
90740
|
-
if (typeof content === "function") return /* @__PURE__ */
|
|
90741
|
-
return /* @__PURE__ */
|
|
90739
|
+
if (/* @__PURE__ */ React$2.isValidElement(content)) return /* @__PURE__ */ React$2.cloneElement(content, props);
|
|
90740
|
+
if (typeof content === "function") return /* @__PURE__ */ React$2.createElement(content, props);
|
|
90741
|
+
return /* @__PURE__ */ React$2.createElement(DefaultTooltipContent2, props);
|
|
90742
90742
|
}
|
|
90743
90743
|
var emptyPayload = [];
|
|
90744
90744
|
var defaultTooltipProps = {
|
|
@@ -90816,7 +90816,7 @@ function Tooltip(outsideProps) {
|
|
|
90816
90816
|
coordinate,
|
|
90817
90817
|
accessibilityLayer
|
|
90818
90818
|
});
|
|
90819
|
-
var tooltipElement = /* @__PURE__ */
|
|
90819
|
+
var tooltipElement = /* @__PURE__ */ React$2.createElement(TooltipBoundingBox, {
|
|
90820
90820
|
allowEscapeViewBox,
|
|
90821
90821
|
animationDuration,
|
|
90822
90822
|
animationEasing,
|
|
@@ -90834,7 +90834,7 @@ function Tooltip(outsideProps) {
|
|
|
90834
90834
|
innerRef: updateBoundingBox,
|
|
90835
90835
|
hasPortalFromProps: Boolean(portalFromProps)
|
|
90836
90836
|
}, renderContent(content, tooltipContentProps));
|
|
90837
|
-
return /* @__PURE__ */
|
|
90837
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ createPortal2(tooltipElement, tooltipPortal), finalIsActive && /* @__PURE__ */ React$2.createElement(Cursor, {
|
|
90838
90838
|
cursor,
|
|
90839
90839
|
tooltipEventType,
|
|
90840
90840
|
coordinate,
|
|
@@ -91440,7 +91440,7 @@ var Text2 = /* @__PURE__ */ forwardRef2((outsideProps, ref) => {
|
|
|
91440
91440
|
}
|
|
91441
91441
|
if (angle) transforms.push("rotate(".concat(angle, ", ").concat(x2, ", ").concat(y2, ")"));
|
|
91442
91442
|
if (transforms.length) textProps.transform = transforms.join(" ");
|
|
91443
|
-
return /* @__PURE__ */
|
|
91443
|
+
return /* @__PURE__ */ React$2.createElement("text", _extends$19({}, svgPropertiesAndEvents(textProps), {
|
|
91444
91444
|
ref,
|
|
91445
91445
|
x: x2,
|
|
91446
91446
|
y: y2,
|
|
@@ -91449,7 +91449,7 @@ var Text2 = /* @__PURE__ */ forwardRef2((outsideProps, ref) => {
|
|
|
91449
91449
|
fill: fill.includes("url") ? DEFAULT_FILL : fill
|
|
91450
91450
|
}), wordsByLines.map((line, index) => {
|
|
91451
91451
|
var words = line.words.join(breakAll ? "" : " ");
|
|
91452
|
-
return /* @__PURE__ */
|
|
91452
|
+
return /* @__PURE__ */ React$2.createElement("tspan", {
|
|
91453
91453
|
x: x2,
|
|
91454
91454
|
dy: index === 0 ? startDy : lineHeight,
|
|
91455
91455
|
key: "".concat(words, "-").concat(index)
|
|
@@ -91547,7 +91547,7 @@ var CartesianLabelContextProvider = (_ref2) => {
|
|
|
91547
91547
|
width,
|
|
91548
91548
|
height
|
|
91549
91549
|
]);
|
|
91550
|
-
return /* @__PURE__ */
|
|
91550
|
+
return /* @__PURE__ */ React$2.createElement(CartesianLabelContext.Provider, { value: viewBox }, children);
|
|
91551
91551
|
};
|
|
91552
91552
|
var useCartesianLabelContext = () => {
|
|
91553
91553
|
var labelChildContext = useContext2(CartesianLabelContext);
|
|
@@ -91574,7 +91574,7 @@ var PolarLabelContextProvider = (_ref2) => {
|
|
|
91574
91574
|
endAngle,
|
|
91575
91575
|
clockWise
|
|
91576
91576
|
]);
|
|
91577
|
-
return /* @__PURE__ */
|
|
91577
|
+
return /* @__PURE__ */ React$2.createElement(PolarLabelContext.Provider, { value: viewBox }, children);
|
|
91578
91578
|
};
|
|
91579
91579
|
var usePolarLabelContext = () => {
|
|
91580
91580
|
var labelChildContext = useContext2(PolarLabelContext);
|
|
@@ -91621,13 +91621,13 @@ var renderRadialLabel2 = (labelProps, position, label, attrs, viewBox) => {
|
|
|
91621
91621
|
var endPoint = polarToCartesian2(cx, cy, radius, labelAngle + (direction ? 1 : -1) * 359);
|
|
91622
91622
|
var path2 = "M".concat(startPoint.x, ",").concat(startPoint.y, "\n A").concat(radius, ",").concat(radius, ",0,1,").concat(direction ? 0 : 1, ",\n ").concat(endPoint.x, ",").concat(endPoint.y);
|
|
91623
91623
|
var id = isNullish2(labelProps.id) ? uniqueId2("recharts-radial-line-") : labelProps.id;
|
|
91624
|
-
return /* @__PURE__ */
|
|
91624
|
+
return /* @__PURE__ */ React$2.createElement("text", _extends$18({}, attrs, {
|
|
91625
91625
|
dominantBaseline: "central",
|
|
91626
91626
|
className: clsx("recharts-radial-bar-label", className)
|
|
91627
|
-
}), /* @__PURE__ */
|
|
91627
|
+
}), /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement("path", {
|
|
91628
91628
|
id,
|
|
91629
91629
|
d: path2
|
|
91630
|
-
})), /* @__PURE__ */
|
|
91630
|
+
})), /* @__PURE__ */ React$2.createElement("textPath", { xlinkHref: "#".concat(id) }, label));
|
|
91631
91631
|
};
|
|
91632
91632
|
var getAttrsOfPolarLabel2 = (viewBox, offset2, position) => {
|
|
91633
91633
|
var cx = viewBox.cx, cy = viewBox.cy, innerRadius = viewBox.innerRadius, outerRadius = viewBox.outerRadius;
|
|
@@ -91734,7 +91734,7 @@ function Label(outerProps) {
|
|
|
91734
91734
|
var attrs = svgPropertiesAndEvents(props);
|
|
91735
91735
|
if (isRadialPolarLabel && isPolar2(viewBox)) return renderRadialLabel2(props, position, label, attrs, viewBox);
|
|
91736
91736
|
if (positionAttrs == null) return null;
|
|
91737
|
-
return /* @__PURE__ */
|
|
91737
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: props.zIndex }, /* @__PURE__ */ React$2.createElement(Text2, _extends$18({
|
|
91738
91738
|
ref: labelRef,
|
|
91739
91739
|
className: clsx("recharts-label", className)
|
|
91740
91740
|
}, attrs, positionAttrs, {
|
|
@@ -91749,23 +91749,23 @@ var parseLabel2 = (label, viewBox, labelRef) => {
|
|
|
91749
91749
|
viewBox,
|
|
91750
91750
|
labelRef
|
|
91751
91751
|
};
|
|
91752
|
-
if (label === true) return /* @__PURE__ */
|
|
91753
|
-
if (isNumOrStr2(label)) return /* @__PURE__ */
|
|
91752
|
+
if (label === true) return /* @__PURE__ */ React$2.createElement(Label, _extends$18({ key: "label-implicit" }, commonProps));
|
|
91753
|
+
if (isNumOrStr2(label)) return /* @__PURE__ */ React$2.createElement(Label, _extends$18({
|
|
91754
91754
|
key: "label-implicit",
|
|
91755
91755
|
value: label
|
|
91756
91756
|
}, commonProps));
|
|
91757
91757
|
if (/* @__PURE__ */ isValidElement2(label)) {
|
|
91758
91758
|
if (label.type === Label) return /* @__PURE__ */ cloneElement2(label, _objectSpread$19({ key: "label-implicit" }, commonProps));
|
|
91759
|
-
return /* @__PURE__ */
|
|
91759
|
+
return /* @__PURE__ */ React$2.createElement(Label, _extends$18({
|
|
91760
91760
|
key: "label-implicit",
|
|
91761
91761
|
content: label
|
|
91762
91762
|
}, commonProps));
|
|
91763
91763
|
}
|
|
91764
|
-
if (isLabelContentAFunction(label)) return /* @__PURE__ */
|
|
91764
|
+
if (isLabelContentAFunction(label)) return /* @__PURE__ */ React$2.createElement(Label, _extends$18({
|
|
91765
91765
|
key: "label-implicit",
|
|
91766
91766
|
content: label
|
|
91767
91767
|
}, commonProps));
|
|
91768
|
-
if (label && typeof label === "object") return /* @__PURE__ */
|
|
91768
|
+
if (label && typeof label === "object") return /* @__PURE__ */ React$2.createElement(Label, _extends$18({}, label, { key: "label-implicit" }, commonProps));
|
|
91769
91769
|
return null;
|
|
91770
91770
|
};
|
|
91771
91771
|
function CartesianLabelFromLabelProp(_ref3) {
|
|
@@ -91829,11 +91829,11 @@ function LabelList(_ref2) {
|
|
|
91829
91829
|
var polarData = usePolarLabelListContext();
|
|
91830
91830
|
var data = cartesianData || polarData;
|
|
91831
91831
|
if (!data || !data.length) return null;
|
|
91832
|
-
return /* @__PURE__ */
|
|
91832
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: zIndex !== null && zIndex !== void 0 ? zIndex : DefaultZIndexes.label }, /* @__PURE__ */ React$2.createElement(Layer, { className: "recharts-label-list" }, data.map((entry, index) => {
|
|
91833
91833
|
var _restProps$fill;
|
|
91834
91834
|
var value = isNullish2(dataKey) ? valueAccessor(entry, index) : getValueByDataKey(entry.payload, dataKey);
|
|
91835
91835
|
var idProps = isNullish2(id) ? {} : { id: "".concat(id, "-").concat(index) };
|
|
91836
|
-
return /* @__PURE__ */
|
|
91836
|
+
return /* @__PURE__ */ React$2.createElement(Label, _extends$17({ key: "label-".concat(index) }, svgPropertiesAndEvents(entry), others, idProps, {
|
|
91837
91837
|
fill: (_restProps$fill = restProps.fill) !== null && _restProps$fill !== void 0 ? _restProps$fill : entry.fill,
|
|
91838
91838
|
parentViewBox: entry.parentViewBox,
|
|
91839
91839
|
value,
|
|
@@ -91848,12 +91848,12 @@ LabelList.displayName = "LabelList";
|
|
|
91848
91848
|
function LabelListFromLabelProp(_ref2) {
|
|
91849
91849
|
var label = _ref2.label;
|
|
91850
91850
|
if (!label) return null;
|
|
91851
|
-
if (label === true) return /* @__PURE__ */
|
|
91852
|
-
if (/* @__PURE__ */
|
|
91851
|
+
if (label === true) return /* @__PURE__ */ React$2.createElement(LabelList, { key: "labelList-implicit" });
|
|
91852
|
+
if (/* @__PURE__ */ React$2.isValidElement(label) || isLabelContentAFunction(label)) return /* @__PURE__ */ React$2.createElement(LabelList, {
|
|
91853
91853
|
key: "labelList-implicit",
|
|
91854
91854
|
content: label
|
|
91855
91855
|
});
|
|
91856
|
-
if (typeof label === "object") return /* @__PURE__ */
|
|
91856
|
+
if (typeof label === "object") return /* @__PURE__ */ React$2.createElement(LabelList, _extends$17({ key: "labelList-implicit" }, label, { type: String(label.type) }));
|
|
91857
91857
|
return null;
|
|
91858
91858
|
}
|
|
91859
91859
|
function _extends$16() {
|
|
@@ -91868,7 +91868,7 @@ function _extends$16() {
|
|
|
91868
91868
|
var Dot2 = (props) => {
|
|
91869
91869
|
var cx = props.cx, cy = props.cy, r2 = props.r, className = props.className;
|
|
91870
91870
|
var layerClass = clsx("recharts-dot", className);
|
|
91871
|
-
if (isNumber2(cx) && isNumber2(cy) && isNumber2(r2)) return /* @__PURE__ */
|
|
91871
|
+
if (isNumber2(cx) && isNumber2(cy) && isNumber2(r2)) return /* @__PURE__ */ React$2.createElement("circle", _extends$16({}, svgPropertiesNoEvents(props), adaptEventHandlers2(props), {
|
|
91872
91872
|
className: layerClass,
|
|
91873
91873
|
cx,
|
|
91874
91874
|
cy,
|
|
@@ -92230,12 +92230,12 @@ function Shape(_ref2) {
|
|
|
92230
92230
|
var index = getShapeIndex(shapeProps);
|
|
92231
92231
|
var shape;
|
|
92232
92232
|
if (/* @__PURE__ */ isValidElement2(option)) shape = renderWithShapeElement(option, shapeProps);
|
|
92233
|
-
else if (option === DefaultShape) shape = /* @__PURE__ */
|
|
92233
|
+
else if (option === DefaultShape) shape = /* @__PURE__ */ React$2.createElement(DefaultShape, shapeProps);
|
|
92234
92234
|
else if (typeof option === "function") shape = option(shapeProps, index);
|
|
92235
|
-
else if (typeof option === "object") shape = /* @__PURE__ */
|
|
92236
|
-
else shape = /* @__PURE__ */
|
|
92237
|
-
if (isActiveShape(shapeProps)) return /* @__PURE__ */
|
|
92238
|
-
return /* @__PURE__ */
|
|
92235
|
+
else if (typeof option === "object") shape = /* @__PURE__ */ React$2.createElement(DefaultShape, mergeShapeProps(option, shapeProps));
|
|
92236
|
+
else shape = /* @__PURE__ */ React$2.createElement(DefaultShape, shapeProps);
|
|
92237
|
+
if (isActiveShape(shapeProps)) return /* @__PURE__ */ React$2.createElement(Layer, { className: activeClassName }, shape);
|
|
92238
|
+
return /* @__PURE__ */ React$2.createElement(Layer, { className: inActiveClassName }, shape);
|
|
92239
92239
|
}
|
|
92240
92240
|
var useMouseEnterItemDispatch = (onMouseEnterFromProps, dataKey, graphicalItemId) => {
|
|
92241
92241
|
var dispatch = useAppDispatch();
|
|
@@ -92553,7 +92553,7 @@ function AnimatedItems(props) {
|
|
|
92553
92553
|
var animationStartItems = useAnimationStartSnapshot(animationId, previousItemsRef);
|
|
92554
92554
|
var rawPrevItems = (_animationStartItems$ = animationStartItems.startValue) !== null && _animationStartItems$ !== void 0 ? _animationStartItems$ : null;
|
|
92555
92555
|
var animationItems = matchAnimationItems(rawPrevItems, items, animationMatchBy !== null && animationMatchBy !== void 0 ? animationMatchBy : matchByIndex);
|
|
92556
|
-
return /* @__PURE__ */
|
|
92556
|
+
return /* @__PURE__ */ React$2.createElement(JavascriptAnimate, {
|
|
92557
92557
|
animationId,
|
|
92558
92558
|
begin: animationBegin,
|
|
92559
92559
|
duration: animationDuration,
|
|
@@ -92615,9 +92615,9 @@ function _arrayWithHoles$6(r2) {
|
|
|
92615
92615
|
if (Array.isArray(r2)) return r2;
|
|
92616
92616
|
}
|
|
92617
92617
|
var useIdFallback = () => {
|
|
92618
|
-
return _slicedToArray$6(
|
|
92618
|
+
return _slicedToArray$6(React$2.useState(() => uniqueId2("uid-")), 1)[0];
|
|
92619
92619
|
};
|
|
92620
|
-
var useId$12 = (_ref =
|
|
92620
|
+
var useId$12 = (_ref = React$2["useId".toString()]) !== null && _ref !== void 0 ? _ref : useIdFallback;
|
|
92621
92621
|
function useUniqueId(prefix2, customId) {
|
|
92622
92622
|
var generatedId = useId$12();
|
|
92623
92623
|
if (customId) return customId;
|
|
@@ -92627,7 +92627,7 @@ var GraphicalItemIdContext = /* @__PURE__ */ createContext2(void 0);
|
|
|
92627
92627
|
var RegisterGraphicalItemId = (_ref2) => {
|
|
92628
92628
|
var id = _ref2.id, type = _ref2.type, children = _ref2.children;
|
|
92629
92629
|
var resolvedId = useUniqueId("recharts-".concat(type), id);
|
|
92630
|
-
return /* @__PURE__ */
|
|
92630
|
+
return /* @__PURE__ */ React$2.createElement(GraphicalItemIdContext.Provider, { value: resolvedId }, children(resolvedId));
|
|
92631
92631
|
};
|
|
92632
92632
|
var graphicalItemsSlice = createSlice({
|
|
92633
92633
|
name: "graphicalItems",
|
|
@@ -92815,11 +92815,11 @@ function SetPiePayloadLegend(props) {
|
|
|
92815
92815
|
var cells = useMemo2(() => findAllByType(props.children, Cell2), [props.children]);
|
|
92816
92816
|
var legendPayload = useAppSelector((state) => selectPieLegend(state, props.id, cells));
|
|
92817
92817
|
if (legendPayload == null) return null;
|
|
92818
|
-
return /* @__PURE__ */
|
|
92818
|
+
return /* @__PURE__ */ React$2.createElement(SetPolarLegendPayload, { legendPayload });
|
|
92819
92819
|
}
|
|
92820
92820
|
function getActiveShapeFill(activeShape) {
|
|
92821
92821
|
if (activeShape == null || typeof activeShape === "boolean" || typeof activeShape === "function") return;
|
|
92822
|
-
if (/* @__PURE__ */
|
|
92822
|
+
if (/* @__PURE__ */ React$2.isValidElement(activeShape)) {
|
|
92823
92823
|
var _activeShape$props;
|
|
92824
92824
|
var _fill = (_activeShape$props = activeShape.props) === null || _activeShape$props === void 0 ? void 0 : _activeShape$props.fill;
|
|
92825
92825
|
return typeof _fill === "string" ? _fill : void 0;
|
|
@@ -92827,7 +92827,7 @@ function getActiveShapeFill(activeShape) {
|
|
|
92827
92827
|
var fill = activeShape.fill;
|
|
92828
92828
|
return typeof fill === "string" ? fill : void 0;
|
|
92829
92829
|
}
|
|
92830
|
-
var SetPieTooltipEntrySettings = /* @__PURE__ */
|
|
92830
|
+
var SetPieTooltipEntrySettings = /* @__PURE__ */ React$2.memo((_ref2) => {
|
|
92831
92831
|
var dataKey = _ref2.dataKey, nameKey = _ref2.nameKey, sectors = _ref2.sectors, stroke = _ref2.stroke, strokeWidth = _ref2.strokeWidth, fill = _ref2.fill, name = _ref2.name, hide = _ref2.hide, tooltipType = _ref2.tooltipType, formatter = _ref2.formatter, id = _ref2.id, activeShape = _ref2.activeShape;
|
|
92832
92832
|
var activeShapeFill = getActiveShapeFill(activeShape);
|
|
92833
92833
|
var tooltipEntrySettings = {
|
|
@@ -92858,7 +92858,7 @@ var SetPieTooltipEntrySettings = /* @__PURE__ */ React2.memo((_ref2) => {
|
|
|
92858
92858
|
graphicalItemId: id
|
|
92859
92859
|
}
|
|
92860
92860
|
};
|
|
92861
|
-
return /* @__PURE__ */
|
|
92861
|
+
return /* @__PURE__ */ React$2.createElement(SetTooltipEntrySettings, { tooltipEntrySettings });
|
|
92862
92862
|
});
|
|
92863
92863
|
var getTextAnchor = (x2, cx) => {
|
|
92864
92864
|
if (x2 > cx) return "start";
|
|
@@ -92884,25 +92884,25 @@ var parseDeltaAngle = (startAngle, endAngle) => {
|
|
|
92884
92884
|
return mathSign2(endAngle - startAngle) * Math.min(Math.abs(endAngle - startAngle), 360);
|
|
92885
92885
|
};
|
|
92886
92886
|
var renderLabelLineItem = (option, props) => {
|
|
92887
|
-
if (/* @__PURE__ */
|
|
92887
|
+
if (/* @__PURE__ */ React$2.isValidElement(option)) return /* @__PURE__ */ React$2.cloneElement(option, props);
|
|
92888
92888
|
if (typeof option === "function") return option(props);
|
|
92889
92889
|
var className = clsx("recharts-pie-label-line", typeof option !== "boolean" ? option.className : "");
|
|
92890
92890
|
props.key;
|
|
92891
92891
|
var otherProps = _objectWithoutProperties$17(props, _excluded$17);
|
|
92892
|
-
return /* @__PURE__ */
|
|
92892
|
+
return /* @__PURE__ */ React$2.createElement(Curve2, _extends$15({}, otherProps, {
|
|
92893
92893
|
type: "linear",
|
|
92894
92894
|
className
|
|
92895
92895
|
}));
|
|
92896
92896
|
};
|
|
92897
92897
|
var renderLabelItem = (option, props, value) => {
|
|
92898
|
-
if (/* @__PURE__ */
|
|
92898
|
+
if (/* @__PURE__ */ React$2.isValidElement(option)) return /* @__PURE__ */ React$2.cloneElement(option, props);
|
|
92899
92899
|
var label = value;
|
|
92900
92900
|
if (typeof option === "function") {
|
|
92901
92901
|
label = option(props);
|
|
92902
|
-
if (/* @__PURE__ */
|
|
92902
|
+
if (/* @__PURE__ */ React$2.isValidElement(label)) return label;
|
|
92903
92903
|
}
|
|
92904
92904
|
var className = clsx("recharts-pie-label-text", getClassNameFromUnknown(option));
|
|
92905
|
-
return /* @__PURE__ */
|
|
92905
|
+
return /* @__PURE__ */ React$2.createElement(Text2, _extends$15({}, props, {
|
|
92906
92906
|
alignmentBaseline: "middle",
|
|
92907
92907
|
className
|
|
92908
92908
|
}), label);
|
|
@@ -92930,18 +92930,18 @@ function PieLabels(_ref2) {
|
|
|
92930
92930
|
points: [polarToCartesian2(entry.cx, entry.cy, entry.outerRadius, midAngle), endPoint],
|
|
92931
92931
|
key: "line"
|
|
92932
92932
|
});
|
|
92933
|
-
return /* @__PURE__ */
|
|
92933
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, {
|
|
92934
92934
|
zIndex: DefaultZIndexes.label,
|
|
92935
92935
|
key: "label-".concat(entry.startAngle, "-").concat(entry.endAngle, "-").concat(entry.midAngle, "-").concat(i)
|
|
92936
|
-
}, /* @__PURE__ */
|
|
92936
|
+
}, /* @__PURE__ */ React$2.createElement(Layer, null, labelLine && renderLabelLineItem(labelLine, lineProps), renderLabelItem(label, labelProps, getValueByDataKey(entry, dataKey))));
|
|
92937
92937
|
});
|
|
92938
|
-
return /* @__PURE__ */
|
|
92938
|
+
return /* @__PURE__ */ React$2.createElement(Layer, { className: "recharts-pie-labels" }, labels);
|
|
92939
92939
|
}
|
|
92940
92940
|
function PieLabelList(_ref3) {
|
|
92941
92941
|
var sectors = _ref3.sectors, props = _ref3.props, showLabels = _ref3.showLabels;
|
|
92942
92942
|
var label = props.label;
|
|
92943
|
-
if (typeof label === "object" && label != null && "position" in label) return /* @__PURE__ */
|
|
92944
|
-
return /* @__PURE__ */
|
|
92943
|
+
if (typeof label === "object" && label != null && "position" in label) return /* @__PURE__ */ React$2.createElement(LabelListFromLabelProp, { label });
|
|
92944
|
+
return /* @__PURE__ */ React$2.createElement(PieLabels, {
|
|
92945
92945
|
sectors,
|
|
92946
92946
|
props,
|
|
92947
92947
|
showLabels
|
|
@@ -92957,7 +92957,7 @@ function PieSectors(props) {
|
|
|
92957
92957
|
var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);
|
|
92958
92958
|
var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, allOtherPieProps.dataKey, id);
|
|
92959
92959
|
if (sectors == null || sectors.length === 0) return null;
|
|
92960
|
-
return /* @__PURE__ */
|
|
92960
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, sectors.map((entry, i) => {
|
|
92961
92961
|
if ((entry === null || entry === void 0 ? void 0 : entry.startAngle) === 0 && (entry === null || entry === void 0 ? void 0 : entry.endAngle) === 0 && sectors.length !== 1) return null;
|
|
92962
92962
|
var graphicalItemMatches = activeGraphicalItemId == null || activeGraphicalItemId === id;
|
|
92963
92963
|
var isActive = String(i) === activeIndex && (activeDataKey == null || allOtherPieProps.dataKey === activeDataKey) && graphicalItemMatches;
|
|
@@ -92973,7 +92973,7 @@ function PieSectors(props) {
|
|
|
92973
92973
|
[DATA_ITEM_INDEX_ATTRIBUTE_NAME]: i,
|
|
92974
92974
|
[DATA_ITEM_GRAPHICAL_ITEM_ID_ATTRIBUTE_NAME]: id
|
|
92975
92975
|
});
|
|
92976
|
-
return /* @__PURE__ */
|
|
92976
|
+
return /* @__PURE__ */ React$2.createElement(Layer, _extends$15({
|
|
92977
92977
|
key: "sector-".concat(entry === null || entry === void 0 ? void 0 : entry.startAngle, "-").concat(entry === null || entry === void 0 ? void 0 : entry.endAngle, "-").concat(entry.midAngle, "-").concat(i),
|
|
92978
92978
|
tabIndex: -1,
|
|
92979
92979
|
className: "recharts-pie-sector"
|
|
@@ -92981,7 +92981,7 @@ function PieSectors(props) {
|
|
|
92981
92981
|
onMouseEnter: onMouseEnterFromContext(entry, i),
|
|
92982
92982
|
onMouseLeave: onMouseLeaveFromContext(entry, i),
|
|
92983
92983
|
onClick: onClickFromContext(entry, i)
|
|
92984
|
-
}), /* @__PURE__ */
|
|
92984
|
+
}), /* @__PURE__ */ React$2.createElement(Shape, {
|
|
92985
92985
|
option: sectorOptions !== null && sectorOptions !== void 0 ? sectorOptions : shape,
|
|
92986
92986
|
DefaultShape: defaultPieSectorShape,
|
|
92987
92987
|
shapeProps: sectorProps
|
|
@@ -93077,7 +93077,7 @@ function PieLabelListProvider(_ref5) {
|
|
|
93077
93077
|
fill: entry.fill
|
|
93078
93078
|
}));
|
|
93079
93079
|
}, [sectors, showLabels]);
|
|
93080
|
-
return /* @__PURE__ */
|
|
93080
|
+
return /* @__PURE__ */ React$2.createElement(PolarLabelListContextProvider, { value: showLabels ? labelListEntries : void 0 }, children);
|
|
93081
93081
|
}
|
|
93082
93082
|
var defaultPieAnimateItems = (items, animationElapsedTime) => {
|
|
93083
93083
|
if (items == null) return [];
|
|
@@ -93115,10 +93115,10 @@ function SectorsWithAnimation(_ref6) {
|
|
|
93115
93115
|
var layout = usePolarChartLayout();
|
|
93116
93116
|
if (layout == null) return null;
|
|
93117
93117
|
var firstSector = sectors[0];
|
|
93118
|
-
return /* @__PURE__ */
|
|
93118
|
+
return /* @__PURE__ */ React$2.createElement(PieLabelListProvider, {
|
|
93119
93119
|
showLabels: !isAnimating,
|
|
93120
93120
|
sectors
|
|
93121
|
-
}, /* @__PURE__ */
|
|
93121
|
+
}, /* @__PURE__ */ React$2.createElement(AnimatedItems, {
|
|
93122
93122
|
animationInput: props,
|
|
93123
93123
|
animationIdPrefix: "recharts-pie-",
|
|
93124
93124
|
items: sectors,
|
|
@@ -93132,7 +93132,7 @@ function SectorsWithAnimation(_ref6) {
|
|
|
93132
93132
|
animationInterpolateFn,
|
|
93133
93133
|
animationMatchBy: props.animationMatchBy,
|
|
93134
93134
|
layout
|
|
93135
|
-
}, (stepData, animationElapsedTime, isEntrance) => /* @__PURE__ */
|
|
93135
|
+
}, (stepData, animationElapsedTime, isEntrance) => /* @__PURE__ */ React$2.createElement(Layer, null, /* @__PURE__ */ React$2.createElement(PieSectors, {
|
|
93136
93136
|
sectors: stepData,
|
|
93137
93137
|
activeShape,
|
|
93138
93138
|
inactiveShape,
|
|
@@ -93142,11 +93142,11 @@ function SectorsWithAnimation(_ref6) {
|
|
|
93142
93142
|
animationElapsedTime,
|
|
93143
93143
|
isAnimating: isAnimating || animationElapsedTime < 1,
|
|
93144
93144
|
isEntrance
|
|
93145
|
-
}))), /* @__PURE__ */
|
|
93145
|
+
}))), /* @__PURE__ */ React$2.createElement(PieLabelList, {
|
|
93146
93146
|
showLabels: !isAnimating,
|
|
93147
93147
|
sectors,
|
|
93148
93148
|
props
|
|
93149
|
-
}), /* @__PURE__ */
|
|
93149
|
+
}), /* @__PURE__ */ React$2.createElement(PolarLabelContextProvider, {
|
|
93150
93150
|
cx: (_firstSector$cx = firstSector === null || firstSector === void 0 ? void 0 : firstSector.cx) !== null && _firstSector$cx !== void 0 ? _firstSector$cx : 0,
|
|
93151
93151
|
cy: (_firstSector$cy = firstSector === null || firstSector === void 0 ? void 0 : firstSector.cy) !== null && _firstSector$cy !== void 0 ? _firstSector$cy : 0,
|
|
93152
93152
|
innerRadius: (_firstSector$innerRad = firstSector === null || firstSector === void 0 ? void 0 : firstSector.innerRadius) !== null && _firstSector$innerRad !== void 0 ? _firstSector$innerRad : 0,
|
|
@@ -93192,12 +93192,12 @@ function PieImpl(props) {
|
|
|
93192
93192
|
var layerClass = clsx("recharts-pie", className);
|
|
93193
93193
|
if (hide || sectors == null) {
|
|
93194
93194
|
previousSectorsRef.current = null;
|
|
93195
|
-
return /* @__PURE__ */
|
|
93195
|
+
return /* @__PURE__ */ React$2.createElement(Layer, {
|
|
93196
93196
|
tabIndex: rootTabIndex,
|
|
93197
93197
|
className: layerClass
|
|
93198
93198
|
});
|
|
93199
93199
|
}
|
|
93200
|
-
return /* @__PURE__ */
|
|
93200
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: props.zIndex }, /* @__PURE__ */ React$2.createElement(SetPieTooltipEntrySettings, {
|
|
93201
93201
|
dataKey: props.dataKey,
|
|
93202
93202
|
nameKey: props.nameKey,
|
|
93203
93203
|
sectors,
|
|
@@ -93210,10 +93210,10 @@ function PieImpl(props) {
|
|
|
93210
93210
|
formatter: props.formatter,
|
|
93211
93211
|
id,
|
|
93212
93212
|
activeShape: props.activeShape
|
|
93213
|
-
}), /* @__PURE__ */
|
|
93213
|
+
}), /* @__PURE__ */ React$2.createElement(Layer, {
|
|
93214
93214
|
tabIndex: rootTabIndex,
|
|
93215
93215
|
className: layerClass
|
|
93216
|
-
}, /* @__PURE__ */
|
|
93216
|
+
}, /* @__PURE__ */ React$2.createElement(SectorsWithAnimation, {
|
|
93217
93217
|
props: _objectSpread$16(_objectSpread$16({}, propsWithoutId), {}, { sectors }),
|
|
93218
93218
|
previousSectorsRef,
|
|
93219
93219
|
id
|
|
@@ -93223,10 +93223,10 @@ function PieFn(outsideProps) {
|
|
|
93223
93223
|
var props = resolveDefaultProps(outsideProps, defaultPieProps);
|
|
93224
93224
|
var externalId = props.id, propsWithoutId = _objectWithoutProperties$17(props, _excluded4$2);
|
|
93225
93225
|
var presentationProps = svgPropertiesNoEvents(propsWithoutId);
|
|
93226
|
-
return /* @__PURE__ */
|
|
93226
|
+
return /* @__PURE__ */ React$2.createElement(RegisterGraphicalItemId, {
|
|
93227
93227
|
id: externalId,
|
|
93228
93228
|
type: "pie"
|
|
93229
|
-
}, (id) => /* @__PURE__ */
|
|
93229
|
+
}, (id) => /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetPolarGraphicalItem, {
|
|
93230
93230
|
type: "pie",
|
|
93231
93231
|
id,
|
|
93232
93232
|
data: propsWithoutId.data,
|
|
@@ -93250,7 +93250,7 @@ function PieFn(outsideProps) {
|
|
|
93250
93250
|
cornerRadius: propsWithoutId.cornerRadius,
|
|
93251
93251
|
presentationProps,
|
|
93252
93252
|
maxRadius: props.maxRadius
|
|
93253
|
-
}), /* @__PURE__ */
|
|
93253
|
+
}), /* @__PURE__ */ React$2.createElement(SetPiePayloadLegend, _extends$15({}, propsWithoutId, { id })), /* @__PURE__ */ React$2.createElement(PieImpl, _extends$15({}, propsWithoutId, { id }))));
|
|
93254
93254
|
}
|
|
93255
93255
|
var Pie = PieFn;
|
|
93256
93256
|
Pie.displayName = "Pie";
|
|
@@ -93332,7 +93332,7 @@ function DotItem(_ref2) {
|
|
|
93332
93332
|
var finalClassName = clsx(className, typeof option !== "boolean" ? option.className : ""), _ref22 = dotProps !== null && dotProps !== void 0 ? dotProps : {};
|
|
93333
93333
|
_ref22.points;
|
|
93334
93334
|
var props = _objectWithoutProperties$16(_ref22, _excluded$16);
|
|
93335
|
-
return /* @__PURE__ */
|
|
93335
|
+
return /* @__PURE__ */ React$2.createElement(Dot2, _extends$14({}, props, { className: finalClassName }));
|
|
93336
93336
|
}
|
|
93337
93337
|
function shouldRenderDots(points, dot2) {
|
|
93338
93338
|
if (points == null) return false;
|
|
@@ -93355,7 +93355,7 @@ function Dots(_ref3) {
|
|
|
93355
93355
|
payload: entry.payload,
|
|
93356
93356
|
points
|
|
93357
93357
|
});
|
|
93358
|
-
return /* @__PURE__ */
|
|
93358
|
+
return /* @__PURE__ */ React$2.createElement(DotItem, {
|
|
93359
93359
|
key: "dot-".concat(i),
|
|
93360
93360
|
option: dot2,
|
|
93361
93361
|
dotProps,
|
|
@@ -93364,7 +93364,7 @@ function Dots(_ref3) {
|
|
|
93364
93364
|
});
|
|
93365
93365
|
var layerProps = {};
|
|
93366
93366
|
if (needClip && clipPathId != null) layerProps.clipPath = "url(#clipPath-".concat(clipDot ? "" : "dots-").concat(clipPathId, ")");
|
|
93367
|
-
return /* @__PURE__ */
|
|
93367
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex }, /* @__PURE__ */ React$2.createElement(Layer, _extends$14({ className }, layerProps), dots));
|
|
93368
93368
|
}
|
|
93369
93369
|
function ownKeys$14(e, r2) {
|
|
93370
93370
|
var t = Object.keys(e);
|
|
@@ -93613,8 +93613,8 @@ var ActivePoint = (_ref2) => {
|
|
|
93613
93613
|
var dot2;
|
|
93614
93614
|
if (/* @__PURE__ */ isValidElement2(activeDot)) dot2 = /* @__PURE__ */ cloneElement2(activeDot, dotProps);
|
|
93615
93615
|
else if (typeof activeDot === "function") dot2 = activeDot(dotProps);
|
|
93616
|
-
else dot2 = /* @__PURE__ */
|
|
93617
|
-
return /* @__PURE__ */
|
|
93616
|
+
else dot2 = /* @__PURE__ */ React$2.createElement(Dot2, dotProps);
|
|
93617
|
+
return /* @__PURE__ */ React$2.createElement(Layer, {
|
|
93618
93618
|
className: "recharts-active-dot",
|
|
93619
93619
|
clipPath
|
|
93620
93620
|
}, dot2);
|
|
@@ -93626,7 +93626,7 @@ function ActivePoints(_ref2) {
|
|
|
93626
93626
|
if (points == null || activeDataPoints == null) return null;
|
|
93627
93627
|
var activePoint = points.find((p) => activeDataPoints.includes(p.payload));
|
|
93628
93628
|
if (isNullish2(activePoint)) return null;
|
|
93629
|
-
return /* @__PURE__ */
|
|
93629
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex }, /* @__PURE__ */ React$2.createElement(ActivePoint, {
|
|
93630
93630
|
point: activePoint,
|
|
93631
93631
|
childIndex: Number(activeTooltipIndex),
|
|
93632
93632
|
mainColor,
|
|
@@ -93975,7 +93975,7 @@ var ClipPathProvider = (_ref2) => {
|
|
|
93975
93975
|
var plotArea = usePlotArea();
|
|
93976
93976
|
if (plotArea == null) return null;
|
|
93977
93977
|
var x2 = plotArea.x, y2 = plotArea.y, width = plotArea.width, height = plotArea.height;
|
|
93978
|
-
return /* @__PURE__ */
|
|
93978
|
+
return /* @__PURE__ */ React$2.createElement(ClipPathIdContext.Provider, { value: clipPathId }, /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement("clipPath", { id: clipPathId }, /* @__PURE__ */ React$2.createElement("rect", {
|
|
93979
93979
|
x: x2,
|
|
93980
93980
|
y: y2,
|
|
93981
93981
|
height,
|
|
@@ -94589,7 +94589,7 @@ function AxisLine(axisLineProps) {
|
|
|
94589
94589
|
y2: y2 + height
|
|
94590
94590
|
});
|
|
94591
94591
|
}
|
|
94592
|
-
return /* @__PURE__ */
|
|
94592
|
+
return /* @__PURE__ */ React$2.createElement("line", _extends$13({}, props, { className: clsx("recharts-cartesian-axis-line", get$1(axisLine, "className")) }));
|
|
94593
94593
|
}
|
|
94594
94594
|
function getTickLineCoord(data, x2, y2, width, height, orientation, tickSize, mirror, tickMargin) {
|
|
94595
94595
|
var x1, x22, y1, y22, tx, ty;
|
|
@@ -94663,12 +94663,12 @@ function TickItem(props) {
|
|
|
94663
94663
|
var option = props.option, tickProps = props.tickProps, value = props.value;
|
|
94664
94664
|
var tickItem;
|
|
94665
94665
|
var combinedClassName = clsx(tickProps.className, "recharts-cartesian-axis-tick-value");
|
|
94666
|
-
if (/* @__PURE__ */
|
|
94666
|
+
if (/* @__PURE__ */ React$2.isValidElement(option)) tickItem = /* @__PURE__ */ React$2.cloneElement(option, _objectSpread$10(_objectSpread$10({}, tickProps), {}, { className: combinedClassName }));
|
|
94667
94667
|
else if (typeof option === "function") tickItem = option(_objectSpread$10(_objectSpread$10({}, tickProps), {}, { className: combinedClassName }));
|
|
94668
94668
|
else {
|
|
94669
94669
|
var className = "recharts-cartesian-axis-tick-value";
|
|
94670
94670
|
if (typeof option !== "boolean") className = clsx(className, getClassNameFromUnknown(option));
|
|
94671
|
-
tickItem = /* @__PURE__ */
|
|
94671
|
+
tickItem = /* @__PURE__ */ React$2.createElement(Text2, _extends$13({}, tickProps, { className }), value);
|
|
94672
94672
|
}
|
|
94673
94673
|
return tickItem;
|
|
94674
94674
|
}
|
|
@@ -94730,10 +94730,10 @@ var Ticks = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
94730
94730
|
var tickLineCoords = finalTicks.map((entry) => _objectSpread$10({ entry }, getTickLineCoord(entry, x2, y2, width, height, orientation, tickSize, mirror, tickMargin)));
|
|
94731
94731
|
var tickLines = tickLineCoords.map((_ref2) => {
|
|
94732
94732
|
var entry = _ref2.entry, lineCoord = _ref2.line;
|
|
94733
|
-
return /* @__PURE__ */
|
|
94733
|
+
return /* @__PURE__ */ React$2.createElement(Layer, {
|
|
94734
94734
|
className: "recharts-cartesian-axis-tick",
|
|
94735
94735
|
key: "tick-".concat(entry.value, "-").concat(entry.coordinate, "-").concat(entry.tickCoord)
|
|
94736
|
-
}, tickLine && /* @__PURE__ */
|
|
94736
|
+
}, tickLine && /* @__PURE__ */ React$2.createElement("line", _extends$13({}, tickLineProps, lineCoord, { className: clsx("recharts-cartesian-axis-tick-line", get$1(tickLine, "className")) })));
|
|
94737
94737
|
});
|
|
94738
94738
|
var tickLabels = tickLineCoords.map((_ref3, i) => {
|
|
94739
94739
|
var _ref4, _tickTextProps$angle;
|
|
@@ -94749,23 +94749,23 @@ var Ticks = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
94749
94749
|
tickFormatter,
|
|
94750
94750
|
padding
|
|
94751
94751
|
}, tickTextProps), {}, { angle: (_ref4 = (_tickTextProps$angle = tickTextProps === null || tickTextProps === void 0 ? void 0 : tickTextProps.angle) !== null && _tickTextProps$angle !== void 0 ? _tickTextProps$angle : axisProps.angle) !== null && _ref4 !== void 0 ? _ref4 : 0 })), customTickProps);
|
|
94752
|
-
return /* @__PURE__ */
|
|
94752
|
+
return /* @__PURE__ */ React$2.createElement(Layer, _extends$13({
|
|
94753
94753
|
className: "recharts-cartesian-axis-tick-label",
|
|
94754
94754
|
key: "tick-label-".concat(entry.value, "-").concat(entry.coordinate, "-").concat(entry.tickCoord)
|
|
94755
|
-
}, adaptEventsOfChild2(events, entry, i)), tick && /* @__PURE__ */
|
|
94755
|
+
}, adaptEventsOfChild2(events, entry, i)), tick && /* @__PURE__ */ React$2.createElement(TickItem, {
|
|
94756
94756
|
option: tick,
|
|
94757
94757
|
tickProps: finalTickProps,
|
|
94758
94758
|
value: "".concat(typeof tickFormatter === "function" ? tickFormatter(entry.value, i) : entry.value).concat(unit2 || "")
|
|
94759
94759
|
}));
|
|
94760
94760
|
});
|
|
94761
|
-
return /* @__PURE__ */
|
|
94761
|
+
return /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-axis-ticks recharts-".concat(axisType, "-ticks") }, /* @__PURE__ */ React$2.createElement(RenderedTicksReporter, {
|
|
94762
94762
|
ticks: finalTicks,
|
|
94763
94763
|
axisId,
|
|
94764
94764
|
axisType
|
|
94765
|
-
}), tickLabels.length > 0 && /* @__PURE__ */
|
|
94765
|
+
}), tickLabels.length > 0 && /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: DefaultZIndexes.label }, /* @__PURE__ */ React$2.createElement("g", {
|
|
94766
94766
|
className: "recharts-cartesian-axis-tick-labels recharts-".concat(axisType, "-tick-labels"),
|
|
94767
94767
|
ref
|
|
94768
|
-
}, tickLabels)), tickLines.length > 0 && /* @__PURE__ */
|
|
94768
|
+
}, tickLabels)), tickLines.length > 0 && /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-axis-tick-lines recharts-".concat(axisType, "-tick-lines") }, tickLines));
|
|
94769
94769
|
});
|
|
94770
94770
|
var CartesianAxisComponent = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
94771
94771
|
var axisLine = props.axisLine, width = props.width, height = props.height, className = props.className, hide = props.hide, ticks2 = props.ticks, axisType = props.axisType, axisId = props.axisId, rest2 = _objectWithoutProperties$15(props, _excluded$15);
|
|
@@ -94812,7 +94812,7 @@ var CartesianAxisComponent = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
94812
94812
|
}, [fontSize, letterSpacing]);
|
|
94813
94813
|
if (hide) return null;
|
|
94814
94814
|
if (width != null && width <= 0 || height != null && height <= 0) return null;
|
|
94815
|
-
return /* @__PURE__ */
|
|
94815
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: props.zIndex }, /* @__PURE__ */ React$2.createElement(Layer, { className: clsx("recharts-cartesian-axis", className) }, /* @__PURE__ */ React$2.createElement(AxisLine, {
|
|
94816
94816
|
x: props.x,
|
|
94817
94817
|
y: props.y,
|
|
94818
94818
|
width,
|
|
@@ -94821,7 +94821,7 @@ var CartesianAxisComponent = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
94821
94821
|
mirror: props.mirror,
|
|
94822
94822
|
axisLine,
|
|
94823
94823
|
otherSvgProps: svgPropertiesNoEvents(props)
|
|
94824
|
-
}), /* @__PURE__ */
|
|
94824
|
+
}), /* @__PURE__ */ React$2.createElement(Ticks, {
|
|
94825
94825
|
ref: layerRef,
|
|
94826
94826
|
axisType,
|
|
94827
94827
|
events: rest2,
|
|
@@ -94845,21 +94845,21 @@ var CartesianAxisComponent = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
94845
94845
|
x: props.x,
|
|
94846
94846
|
y: props.y,
|
|
94847
94847
|
axisId
|
|
94848
|
-
}), /* @__PURE__ */
|
|
94848
|
+
}), /* @__PURE__ */ React$2.createElement(CartesianLabelContextProvider, {
|
|
94849
94849
|
x: props.x,
|
|
94850
94850
|
y: props.y,
|
|
94851
94851
|
width: props.width,
|
|
94852
94852
|
height: props.height,
|
|
94853
94853
|
lowerWidth: props.width,
|
|
94854
94854
|
upperWidth: props.width
|
|
94855
|
-
}, /* @__PURE__ */
|
|
94855
|
+
}, /* @__PURE__ */ React$2.createElement(CartesianLabelFromLabelProp, {
|
|
94856
94856
|
label: props.label,
|
|
94857
94857
|
labelRef: props.labelRef
|
|
94858
94858
|
}), props.children)));
|
|
94859
94859
|
});
|
|
94860
|
-
var CartesianAxis = /* @__PURE__ */
|
|
94860
|
+
var CartesianAxis = /* @__PURE__ */ React$2.forwardRef((outsideProps, ref) => {
|
|
94861
94861
|
var props = resolveDefaultProps(outsideProps, defaultCartesianAxisProps);
|
|
94862
|
-
return /* @__PURE__ */
|
|
94862
|
+
return /* @__PURE__ */ React$2.createElement(CartesianAxisComponent, _extends$13({}, props, { ref }));
|
|
94863
94863
|
});
|
|
94864
94864
|
CartesianAxis.displayName = "CartesianAxis";
|
|
94865
94865
|
var RechartsThemeContext = /* @__PURE__ */ createContext2({ grid: {
|
|
@@ -94952,7 +94952,7 @@ var Background2 = (props) => {
|
|
|
94952
94952
|
var fill = props.fill;
|
|
94953
94953
|
if (!fill || fill === "none") return null;
|
|
94954
94954
|
var fillOpacity = props.fillOpacity, x2 = props.x, y2 = props.y, width = props.width, height = props.height, ry = props.ry;
|
|
94955
|
-
return /* @__PURE__ */
|
|
94955
|
+
return /* @__PURE__ */ React$2.createElement("rect", {
|
|
94956
94956
|
x: x2,
|
|
94957
94957
|
y: y2,
|
|
94958
94958
|
ry,
|
|
@@ -94967,7 +94967,7 @@ var Background2 = (props) => {
|
|
|
94967
94967
|
function LineItem(_ref2) {
|
|
94968
94968
|
var option = _ref2.option, lineItemProps = _ref2.lineItemProps;
|
|
94969
94969
|
var lineItem;
|
|
94970
|
-
if (/* @__PURE__ */
|
|
94970
|
+
if (/* @__PURE__ */ React$2.isValidElement(option)) lineItem = /* @__PURE__ */ React$2.cloneElement(option, lineItemProps);
|
|
94971
94971
|
else if (typeof option === "function") lineItem = option(lineItemProps);
|
|
94972
94972
|
else {
|
|
94973
94973
|
var _svgPropertiesNoEvent;
|
|
@@ -94975,7 +94975,7 @@ function LineItem(_ref2) {
|
|
|
94975
94975
|
_ref22.offset;
|
|
94976
94976
|
var restOfFilteredProps = _objectWithoutProperties$14(_ref22, _excluded2$7);
|
|
94977
94977
|
var strokeDasharray = Array.isArray(restOfFilteredProps.strokeDasharray) ? restOfFilteredProps.strokeDasharray.join(",") : restOfFilteredProps.strokeDasharray;
|
|
94978
|
-
lineItem = /* @__PURE__ */
|
|
94978
|
+
lineItem = /* @__PURE__ */ React$2.createElement("line", _extends$12({}, restOfFilteredProps, {
|
|
94979
94979
|
strokeDasharray,
|
|
94980
94980
|
x1,
|
|
94981
94981
|
y1,
|
|
@@ -95002,13 +95002,13 @@ function HorizontalGridLines(props) {
|
|
|
95002
95002
|
key: "line-".concat(i),
|
|
95003
95003
|
index: i
|
|
95004
95004
|
});
|
|
95005
|
-
return /* @__PURE__ */
|
|
95005
|
+
return /* @__PURE__ */ React$2.createElement(LineItem, {
|
|
95006
95006
|
key: "line-".concat(i),
|
|
95007
95007
|
option: horizontal,
|
|
95008
95008
|
lineItemProps
|
|
95009
95009
|
});
|
|
95010
95010
|
});
|
|
95011
|
-
return /* @__PURE__ */
|
|
95011
|
+
return /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-grid-horizontal" }, items);
|
|
95012
95012
|
}
|
|
95013
95013
|
function VerticalGridLines(props) {
|
|
95014
95014
|
var y2 = props.y, height = props.height, _props$vertical = props.vertical, vertical = _props$vertical === void 0 ? true : _props$vertical, verticalPoints = props.verticalPoints;
|
|
@@ -95025,13 +95025,13 @@ function VerticalGridLines(props) {
|
|
|
95025
95025
|
key: "line-".concat(i),
|
|
95026
95026
|
index: i
|
|
95027
95027
|
});
|
|
95028
|
-
return /* @__PURE__ */
|
|
95028
|
+
return /* @__PURE__ */ React$2.createElement(LineItem, {
|
|
95029
95029
|
option: vertical,
|
|
95030
95030
|
lineItemProps,
|
|
95031
95031
|
key: "line-".concat(i)
|
|
95032
95032
|
});
|
|
95033
95033
|
});
|
|
95034
|
-
return /* @__PURE__ */
|
|
95034
|
+
return /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-grid-vertical" }, items);
|
|
95035
95035
|
}
|
|
95036
95036
|
function HorizontalStripes(props) {
|
|
95037
95037
|
var horizontalFill = props.horizontalFill, fillOpacity = props.fillOpacity, x2 = props.x, y2 = props.y, width = props.width, height = props.height, horizontalPoints = props.horizontalPoints, _props$horizontal2 = props.horizontal;
|
|
@@ -95043,7 +95043,7 @@ function HorizontalStripes(props) {
|
|
|
95043
95043
|
var lineHeight = nextPoint == null ? y2 + height - entry : nextPoint - entry;
|
|
95044
95044
|
if (lineHeight <= 0) return null;
|
|
95045
95045
|
var colorIndex = i % horizontalFill.length;
|
|
95046
|
-
return /* @__PURE__ */
|
|
95046
|
+
return /* @__PURE__ */ React$2.createElement("rect", {
|
|
95047
95047
|
key: "react-".concat(i),
|
|
95048
95048
|
y: entry,
|
|
95049
95049
|
x: x2,
|
|
@@ -95055,7 +95055,7 @@ function HorizontalStripes(props) {
|
|
|
95055
95055
|
className: "recharts-cartesian-grid-bg"
|
|
95056
95056
|
});
|
|
95057
95057
|
});
|
|
95058
|
-
return /* @__PURE__ */
|
|
95058
|
+
return /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-gridstripes-horizontal" }, items);
|
|
95059
95059
|
}
|
|
95060
95060
|
function VerticalStripes(props) {
|
|
95061
95061
|
var _props$vertical2 = props.vertical, vertical = _props$vertical2 === void 0 ? true : _props$vertical2, verticalFill = props.verticalFill, fillOpacity = props.fillOpacity, x2 = props.x, y2 = props.y, width = props.width, height = props.height, verticalPoints = props.verticalPoints;
|
|
@@ -95067,7 +95067,7 @@ function VerticalStripes(props) {
|
|
|
95067
95067
|
var lineWidth = nextPoint == null ? x2 + width - entry : nextPoint - entry;
|
|
95068
95068
|
if (lineWidth <= 0) return null;
|
|
95069
95069
|
var colorIndex = i % verticalFill.length;
|
|
95070
|
-
return /* @__PURE__ */
|
|
95070
|
+
return /* @__PURE__ */ React$2.createElement("rect", {
|
|
95071
95071
|
key: "react-".concat(i),
|
|
95072
95072
|
x: entry,
|
|
95073
95073
|
y: y2,
|
|
@@ -95079,7 +95079,7 @@ function VerticalStripes(props) {
|
|
|
95079
95079
|
className: "recharts-cartesian-grid-bg"
|
|
95080
95080
|
});
|
|
95081
95081
|
});
|
|
95082
|
-
return /* @__PURE__ */
|
|
95082
|
+
return /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-gridstripes-vertical" }, items);
|
|
95083
95083
|
}
|
|
95084
95084
|
var defaultVerticalCoordinatesGenerator2 = (_ref3, syncWithTicks) => {
|
|
95085
95085
|
var xAxis = _ref3.xAxis, width = _ref3.width, height = _ref3.height, offset2 = _ref3.offset;
|
|
@@ -95165,7 +95165,7 @@ function CartesianGrid(props) {
|
|
|
95165
95165
|
warn3(Array.isArray(_generatorResult), "verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof _generatorResult, "]"));
|
|
95166
95166
|
if (Array.isArray(_generatorResult)) verticalPoints = _generatorResult;
|
|
95167
95167
|
}
|
|
95168
|
-
return /* @__PURE__ */
|
|
95168
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: propsIncludingDefaults.zIndex }, /* @__PURE__ */ React$2.createElement("g", { className: "recharts-cartesian-grid" }, /* @__PURE__ */ React$2.createElement(Background2, {
|
|
95169
95169
|
fill: (_propsIncludingDefaul5 = propsIncludingDefaults.fill) !== null && _propsIncludingDefaul5 !== void 0 ? _propsIncludingDefaul5 : theme.grid.fill,
|
|
95170
95170
|
fillOpacity: (_propsIncludingDefaul6 = propsIncludingDefaults.fillOpacity) !== null && _propsIncludingDefaul6 !== void 0 ? _propsIncludingDefaul6 : theme.grid.fillOpacity,
|
|
95171
95171
|
x: propsIncludingDefaults.x,
|
|
@@ -95173,12 +95173,12 @@ function CartesianGrid(props) {
|
|
|
95173
95173
|
width: propsIncludingDefaults.width,
|
|
95174
95174
|
height: propsIncludingDefaults.height,
|
|
95175
95175
|
ry: propsIncludingDefaults.ry
|
|
95176
|
-
}), /* @__PURE__ */
|
|
95176
|
+
}), /* @__PURE__ */ React$2.createElement(HorizontalStripes, _extends$12({}, propsIncludingDefaults, { horizontalPoints })), /* @__PURE__ */ React$2.createElement(VerticalStripes, _extends$12({}, propsIncludingDefaults, { verticalPoints })), /* @__PURE__ */ React$2.createElement(HorizontalGridLines, _extends$12({}, propsIncludingDefaults, themeProps, {
|
|
95177
95177
|
offset: offset2,
|
|
95178
95178
|
horizontalPoints,
|
|
95179
95179
|
xAxis,
|
|
95180
95180
|
yAxis
|
|
95181
|
-
})), /* @__PURE__ */
|
|
95181
|
+
})), /* @__PURE__ */ React$2.createElement(VerticalGridLines, _extends$12({}, propsIncludingDefaults, themeProps, {
|
|
95182
95182
|
offset: offset2,
|
|
95183
95183
|
verticalPoints,
|
|
95184
95184
|
xAxis,
|
|
@@ -95277,7 +95277,7 @@ function LineDrawShape(props) {
|
|
|
95277
95277
|
var pathRef = curveProps.pathRef;
|
|
95278
95278
|
strokeDasharray = computeAnimatedStrokeDasharray(userStrokeDasharray, getTotalLength$1((_pathRef$current = pathRef === null || pathRef === void 0 ? void 0 : pathRef.current) !== null && _pathRef$current !== void 0 ? _pathRef$current : null), visibleLength);
|
|
95279
95279
|
} else if (userStrokeDasharray != null) strokeDasharray = String(userStrokeDasharray);
|
|
95280
|
-
return /* @__PURE__ */
|
|
95280
|
+
return /* @__PURE__ */ React$2.createElement(Curve2, _extends$11({}, curveProps, {
|
|
95281
95281
|
connectNulls: finalConnectNulls,
|
|
95282
95282
|
strokeDasharray
|
|
95283
95283
|
}));
|
|
@@ -95360,7 +95360,7 @@ var ErrorBarContext = /* @__PURE__ */ createContext2({
|
|
|
95360
95360
|
});
|
|
95361
95361
|
function SetErrorBarContext(props) {
|
|
95362
95362
|
var children = props.children, rest2 = _objectWithoutProperties$12(props, _excluded$12);
|
|
95363
|
-
return /* @__PURE__ */
|
|
95363
|
+
return /* @__PURE__ */ React$2.createElement(ErrorBarContext.Provider, { value: rest2 }, children);
|
|
95364
95364
|
}
|
|
95365
95365
|
function useNeedsClip(xAxisId, yAxisId) {
|
|
95366
95366
|
var _xAxis$allowDataOverf, _yAxis$allowDataOverf;
|
|
@@ -95386,7 +95386,7 @@ function GraphicalItemClipPath(_ref2) {
|
|
|
95386
95386
|
var clipY = needClipY && yAxisRange ? Math.min(yAxisRange[0], yAxisRange[1]) : y2 - height / 2;
|
|
95387
95387
|
var clipWidth = needClipX && xAxisRange ? Math.abs(xAxisRange[1] - xAxisRange[0]) : width * 2;
|
|
95388
95388
|
var clipHeight = needClipY && yAxisRange ? Math.abs(yAxisRange[1] - yAxisRange[0]) : height * 2;
|
|
95389
|
-
return /* @__PURE__ */
|
|
95389
|
+
return /* @__PURE__ */ React$2.createElement("clipPath", { id: "clipPath-".concat(clipPathId) }, /* @__PURE__ */ React$2.createElement("rect", {
|
|
95390
95390
|
x: clipX,
|
|
95391
95391
|
y: clipY,
|
|
95392
95392
|
width: clipWidth,
|
|
@@ -95632,7 +95632,7 @@ var computeLegendPayloadFromAreaData$1 = (props) => {
|
|
|
95632
95632
|
payload: props
|
|
95633
95633
|
}];
|
|
95634
95634
|
};
|
|
95635
|
-
var SetLineTooltipEntrySettings = /* @__PURE__ */
|
|
95635
|
+
var SetLineTooltipEntrySettings = /* @__PURE__ */ React$2.memo((_ref2) => {
|
|
95636
95636
|
var dataKey = _ref2.dataKey, data = _ref2.data, stroke = _ref2.stroke, strokeWidth = _ref2.strokeWidth, fill = _ref2.fill, name = _ref2.name, hide = _ref2.hide, unit2 = _ref2.unit, formatter = _ref2.formatter, tooltipType = _ref2.tooltipType, id = _ref2.id;
|
|
95637
95637
|
var tooltipEntrySettings = {
|
|
95638
95638
|
dataDefinedOnItem: data,
|
|
@@ -95652,14 +95652,14 @@ var SetLineTooltipEntrySettings = /* @__PURE__ */ React2.memo((_ref2) => {
|
|
|
95652
95652
|
graphicalItemId: id
|
|
95653
95653
|
}
|
|
95654
95654
|
};
|
|
95655
|
-
return /* @__PURE__ */
|
|
95655
|
+
return /* @__PURE__ */ React$2.createElement(SetTooltipEntrySettings, { tooltipEntrySettings });
|
|
95656
95656
|
});
|
|
95657
95657
|
function LineDotsWrapper(_ref2) {
|
|
95658
95658
|
var clipPathId = _ref2.clipPathId, points = _ref2.points, props = _ref2.props;
|
|
95659
95659
|
var dot2 = props.dot, dataKey = props.dataKey, needClip = props.needClip;
|
|
95660
95660
|
props.id;
|
|
95661
95661
|
var lineProps = svgPropertiesNoEvents(_objectWithoutProperties$11(props, _excluded$11));
|
|
95662
|
-
return /* @__PURE__ */
|
|
95662
|
+
return /* @__PURE__ */ React$2.createElement(Dots, {
|
|
95663
95663
|
points,
|
|
95664
95664
|
dot: dot2,
|
|
95665
95665
|
className: "recharts-line-dots",
|
|
@@ -95692,7 +95692,7 @@ function LineLabelListProvider(_ref3) {
|
|
|
95692
95692
|
});
|
|
95693
95693
|
});
|
|
95694
95694
|
}, [points]);
|
|
95695
|
-
return /* @__PURE__ */
|
|
95695
|
+
return /* @__PURE__ */ React$2.createElement(CartesianLabelListContextProvider, { value: showLabels ? labelListEntries : void 0 }, children);
|
|
95696
95696
|
}
|
|
95697
95697
|
function StaticCurve(_ref4) {
|
|
95698
95698
|
var clipPathId = _ref4.clipPathId, pathRef = _ref4.pathRef, points = _ref4.points, props = _ref4.props, animationElapsedTime = _ref4.animationElapsedTime, isAnimating = _ref4.isAnimating, isEntrance = _ref4.isEntrance, visibleLength = _ref4.visibleLength;
|
|
@@ -95712,11 +95712,11 @@ function StaticCurve(_ref4) {
|
|
|
95712
95712
|
isEntrance: props.animateNewValues ? isEntrance : false,
|
|
95713
95713
|
visibleLength
|
|
95714
95714
|
});
|
|
95715
|
-
return /* @__PURE__ */
|
|
95715
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /* @__PURE__ */ React$2.createElement(Shape, {
|
|
95716
95716
|
option: shape,
|
|
95717
95717
|
DefaultShape: defaultLineProps.shape,
|
|
95718
95718
|
shapeProps: curveProps
|
|
95719
|
-
}), /* @__PURE__ */
|
|
95719
|
+
}), /* @__PURE__ */ React$2.createElement(LineDotsWrapper, {
|
|
95720
95720
|
points,
|
|
95721
95721
|
clipPathId,
|
|
95722
95722
|
props
|
|
@@ -95730,10 +95730,10 @@ function CurveWithAnimation(_ref5) {
|
|
|
95730
95730
|
var showLabels = !isAnimating;
|
|
95731
95731
|
var getVisibleLength = useAnimatedLineLength(points);
|
|
95732
95732
|
var shouldUpdatePreviousRef = useCallback2((animationElapsedTime) => animationElapsedTime > 0 && totalLength > 0, [totalLength]);
|
|
95733
|
-
return /* @__PURE__ */
|
|
95733
|
+
return /* @__PURE__ */ React$2.createElement(LineLabelListProvider, {
|
|
95734
95734
|
points,
|
|
95735
95735
|
showLabels
|
|
95736
|
-
}, props.children, /* @__PURE__ */
|
|
95736
|
+
}, props.children, /* @__PURE__ */ React$2.createElement(AnimatedItems, {
|
|
95737
95737
|
animationInput: points,
|
|
95738
95738
|
animationIdPrefix: "recharts-line-",
|
|
95739
95739
|
items: points,
|
|
@@ -95751,7 +95751,7 @@ function CurveWithAnimation(_ref5) {
|
|
|
95751
95751
|
}, (stepData, animationElapsedTime, isEntrance) => {
|
|
95752
95752
|
var animationActive = isAnimating || animationElapsedTime < 1;
|
|
95753
95753
|
var visibleLength = animationActive ? getVisibleLength(animationElapsedTime, totalLength) : null;
|
|
95754
|
-
return /* @__PURE__ */
|
|
95754
|
+
return /* @__PURE__ */ React$2.createElement(StaticCurve, {
|
|
95755
95755
|
props,
|
|
95756
95756
|
points: stepData,
|
|
95757
95757
|
clipPathId,
|
|
@@ -95761,13 +95761,13 @@ function CurveWithAnimation(_ref5) {
|
|
|
95761
95761
|
isEntrance,
|
|
95762
95762
|
visibleLength
|
|
95763
95763
|
});
|
|
95764
|
-
}), /* @__PURE__ */
|
|
95764
|
+
}), /* @__PURE__ */ React$2.createElement(LabelListFromLabelProp, { label: props.label }));
|
|
95765
95765
|
}
|
|
95766
95766
|
function RenderCurve(_ref6) {
|
|
95767
95767
|
var clipPathId = _ref6.clipPathId, props = _ref6.props;
|
|
95768
95768
|
var previousPointsRef = useRef2(null);
|
|
95769
95769
|
var pathRef = useRef2(null);
|
|
95770
|
-
return /* @__PURE__ */
|
|
95770
|
+
return /* @__PURE__ */ React$2.createElement(CurveWithAnimation, {
|
|
95771
95771
|
props,
|
|
95772
95772
|
clipPathId,
|
|
95773
95773
|
previousPointsRef,
|
|
@@ -95793,25 +95793,25 @@ var LineWithState = class extends Component2 {
|
|
|
95793
95793
|
var clipDot = isClipDot(dot2);
|
|
95794
95794
|
var dotSize = r2 * 2 + strokeWidth;
|
|
95795
95795
|
var activePointsClipPath = needClip ? "url(#clipPath-".concat(clipDot ? "" : "dots-").concat(clipPathId, ")") : void 0;
|
|
95796
|
-
return /* @__PURE__ */
|
|
95796
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex }, /* @__PURE__ */ React$2.createElement(Layer, { className: layerClass }, needClip && /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement(GraphicalItemClipPath, {
|
|
95797
95797
|
clipPathId,
|
|
95798
95798
|
xAxisId,
|
|
95799
95799
|
yAxisId
|
|
95800
|
-
}), !clipDot && /* @__PURE__ */
|
|
95800
|
+
}), !clipDot && /* @__PURE__ */ React$2.createElement("clipPath", { id: "clipPath-dots-".concat(clipPathId) }, /* @__PURE__ */ React$2.createElement("rect", {
|
|
95801
95801
|
x: left - dotSize / 2,
|
|
95802
95802
|
y: top - dotSize / 2,
|
|
95803
95803
|
width: width + dotSize,
|
|
95804
95804
|
height: height + dotSize
|
|
95805
|
-
}))), /* @__PURE__ */
|
|
95805
|
+
}))), /* @__PURE__ */ React$2.createElement(SetErrorBarContext, {
|
|
95806
95806
|
xAxisId,
|
|
95807
95807
|
yAxisId,
|
|
95808
95808
|
data: points,
|
|
95809
95809
|
dataPointFormatter: errorBarDataPointFormatter$1,
|
|
95810
95810
|
errorBarOffset: 0
|
|
95811
|
-
}, /* @__PURE__ */
|
|
95811
|
+
}, /* @__PURE__ */ React$2.createElement(RenderCurve, {
|
|
95812
95812
|
props: this.props,
|
|
95813
95813
|
clipPathId
|
|
95814
|
-
}))), /* @__PURE__ */
|
|
95814
|
+
}))), /* @__PURE__ */ React$2.createElement(ActivePoints, {
|
|
95815
95815
|
activeDot: this.props.activeDot,
|
|
95816
95816
|
points,
|
|
95817
95817
|
mainColor: this.props.stroke,
|
|
@@ -95829,7 +95829,7 @@ function LineImpl(props) {
|
|
|
95829
95829
|
var points = useAppSelector((state) => selectLinePoints(state, xAxisId, yAxisId, isPanorama, id));
|
|
95830
95830
|
if (layout !== "horizontal" && layout !== "vertical" || points == null || plotArea == null) return null;
|
|
95831
95831
|
var height = plotArea.height, width = plotArea.width, left = plotArea.x, top = plotArea.y;
|
|
95832
|
-
return /* @__PURE__ */
|
|
95832
|
+
return /* @__PURE__ */ React$2.createElement(LineWithState, _extends$10({}, everythingElse, {
|
|
95833
95833
|
id,
|
|
95834
95834
|
connectNulls,
|
|
95835
95835
|
dot: dot2,
|
|
@@ -95893,10 +95893,10 @@ function computeLinePoints(_ref7) {
|
|
|
95893
95893
|
function LineFn(outsideProps) {
|
|
95894
95894
|
var props = resolveDefaultProps(outsideProps, defaultLineProps);
|
|
95895
95895
|
var isPanorama = useIsPanorama();
|
|
95896
|
-
return /* @__PURE__ */
|
|
95896
|
+
return /* @__PURE__ */ React$2.createElement(RegisterGraphicalItemId, {
|
|
95897
95897
|
id: props.id,
|
|
95898
95898
|
type: "line"
|
|
95899
|
-
}, (id) => /* @__PURE__ */
|
|
95899
|
+
}, (id) => /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetLegendPayload, { legendPayload: computeLegendPayloadFromAreaData$1(props) }), /* @__PURE__ */ React$2.createElement(SetLineTooltipEntrySettings, {
|
|
95900
95900
|
dataKey: props.dataKey,
|
|
95901
95901
|
data: props.data,
|
|
95902
95902
|
stroke: props.stroke,
|
|
@@ -95908,7 +95908,7 @@ function LineFn(outsideProps) {
|
|
|
95908
95908
|
formatter: props.formatter,
|
|
95909
95909
|
tooltipType: props.tooltipType,
|
|
95910
95910
|
id
|
|
95911
|
-
}), /* @__PURE__ */
|
|
95911
|
+
}), /* @__PURE__ */ React$2.createElement(SetCartesianGraphicalItem, {
|
|
95912
95912
|
type: "line",
|
|
95913
95913
|
id,
|
|
95914
95914
|
data: props.data,
|
|
@@ -95918,9 +95918,9 @@ function LineFn(outsideProps) {
|
|
|
95918
95918
|
dataKey: props.dataKey,
|
|
95919
95919
|
hide: props.hide,
|
|
95920
95920
|
isPanorama
|
|
95921
|
-
}), /* @__PURE__ */
|
|
95921
|
+
}), /* @__PURE__ */ React$2.createElement(LineImpl, _extends$10({}, props, { id }))));
|
|
95922
95922
|
}
|
|
95923
|
-
var Line = /* @__PURE__ */
|
|
95923
|
+
var Line = /* @__PURE__ */ React$2.memo(LineFn, propsAreEqual);
|
|
95924
95924
|
Line.displayName = "Line";
|
|
95925
95925
|
function selectXAxisIdFromGraphicalItemId(state, id) {
|
|
95926
95926
|
var _state$graphicalItems, _state$graphicalItems2;
|
|
@@ -96051,7 +96051,7 @@ function HorizontalClipRect(_ref2) {
|
|
|
96051
96051
|
var maxY = Math.max(...points.map((entry) => entry.y || 0));
|
|
96052
96052
|
if (isNumber2(baseLine)) maxY = Math.max(baseLine, maxY);
|
|
96053
96053
|
else if (baseLine && Array.isArray(baseLine) && baseLine.length) maxY = Math.max(...baseLine.map((entry) => entry.y || 0), maxY);
|
|
96054
|
-
if (isNumber2(maxY)) return /* @__PURE__ */
|
|
96054
|
+
if (isNumber2(maxY)) return /* @__PURE__ */ React$2.createElement("rect", {
|
|
96055
96055
|
x: startX < endX ? startX : startX - width,
|
|
96056
96056
|
y: 0,
|
|
96057
96057
|
width,
|
|
@@ -96069,7 +96069,7 @@ function VerticalClipRect(_ref2) {
|
|
|
96069
96069
|
var maxX = Math.max(...points.map((entry) => entry.x || 0));
|
|
96070
96070
|
if (isNumber2(baseLine)) maxX = Math.max(baseLine, maxX);
|
|
96071
96071
|
else if (baseLine && Array.isArray(baseLine) && baseLine.length) maxX = Math.max(...baseLine.map((entry) => entry.x || 0), maxX);
|
|
96072
|
-
if (isNumber2(maxX)) return /* @__PURE__ */
|
|
96072
|
+
if (isNumber2(maxX)) return /* @__PURE__ */ React$2.createElement("rect", {
|
|
96073
96073
|
x: 0,
|
|
96074
96074
|
y: startY < endY ? startY : startY - height,
|
|
96075
96075
|
width: maxX + (strokeWidth ? parseInt("".concat(strokeWidth), 10) : 1),
|
|
@@ -96079,13 +96079,13 @@ function VerticalClipRect(_ref2) {
|
|
|
96079
96079
|
}
|
|
96080
96080
|
function RevealClipRect(_ref3) {
|
|
96081
96081
|
var alpha3 = _ref3.alpha, layout = _ref3.layout, points = _ref3.points, baseLine = _ref3.baseLine, strokeWidth = _ref3.strokeWidth;
|
|
96082
|
-
if (layout === "vertical") return /* @__PURE__ */
|
|
96082
|
+
if (layout === "vertical") return /* @__PURE__ */ React$2.createElement(VerticalClipRect, {
|
|
96083
96083
|
alpha: alpha3,
|
|
96084
96084
|
points,
|
|
96085
96085
|
baseLine,
|
|
96086
96086
|
strokeWidth
|
|
96087
96087
|
});
|
|
96088
|
-
return /* @__PURE__ */
|
|
96088
|
+
return /* @__PURE__ */ React$2.createElement(HorizontalClipRect, {
|
|
96089
96089
|
alpha: alpha3,
|
|
96090
96090
|
points,
|
|
96091
96091
|
baseLine,
|
|
@@ -96099,7 +96099,7 @@ function AreaRevealShape(props) {
|
|
|
96099
96099
|
var clipId = useId$12();
|
|
96100
96100
|
var id = restProps.id, baseLine = restProps.baseLine;
|
|
96101
96101
|
var strokeSvgProps = svgPropertiesNoEvents(_objectWithoutProperties$10(restProps, _excluded2$5));
|
|
96102
|
-
var fillCurve = /* @__PURE__ */
|
|
96102
|
+
var fillCurve = /* @__PURE__ */ React$2.createElement(Curve2, _extends$9({}, restProps, {
|
|
96103
96103
|
id,
|
|
96104
96104
|
baseLine,
|
|
96105
96105
|
connectNulls: finalConnectNulls,
|
|
@@ -96107,7 +96107,7 @@ function AreaRevealShape(props) {
|
|
|
96107
96107
|
className: "recharts-area-area",
|
|
96108
96108
|
layout
|
|
96109
96109
|
}));
|
|
96110
|
-
var strokeCurve = stroke !== "none" && /* @__PURE__ */
|
|
96110
|
+
var strokeCurve = stroke !== "none" && /* @__PURE__ */ React$2.createElement(Curve2, _extends$9({}, strokeSvgProps, {
|
|
96111
96111
|
className: "recharts-area-curve",
|
|
96112
96112
|
layout,
|
|
96113
96113
|
type: restProps.type,
|
|
@@ -96116,7 +96116,7 @@ function AreaRevealShape(props) {
|
|
|
96116
96116
|
stroke,
|
|
96117
96117
|
points: restProps.points
|
|
96118
96118
|
}));
|
|
96119
|
-
var baselineCurve = stroke !== "none" && isRange && Array.isArray(baseLine) && /* @__PURE__ */
|
|
96119
|
+
var baselineCurve = stroke !== "none" && isRange && Array.isArray(baseLine) && /* @__PURE__ */ React$2.createElement(Curve2, _extends$9({}, strokeSvgProps, {
|
|
96120
96120
|
className: "recharts-area-curve",
|
|
96121
96121
|
layout,
|
|
96122
96122
|
type: restProps.type,
|
|
@@ -96127,15 +96127,15 @@ function AreaRevealShape(props) {
|
|
|
96127
96127
|
}));
|
|
96128
96128
|
if (isEntrance && (isAnimating || animationElapsedTime < 1)) {
|
|
96129
96129
|
var _restProps$points;
|
|
96130
|
-
return /* @__PURE__ */
|
|
96130
|
+
return /* @__PURE__ */ React$2.createElement(Layer, null, /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement("clipPath", { id: clipId }, /* @__PURE__ */ React$2.createElement(RevealClipRect, {
|
|
96131
96131
|
alpha: animationElapsedTime,
|
|
96132
96132
|
points: (_restProps$points = restProps.points) !== null && _restProps$points !== void 0 ? _restProps$points : [],
|
|
96133
96133
|
baseLine,
|
|
96134
96134
|
layout,
|
|
96135
96135
|
strokeWidth: restProps.strokeWidth
|
|
96136
|
-
}))), /* @__PURE__ */
|
|
96136
|
+
}))), /* @__PURE__ */ React$2.createElement(Layer, { clipPath: "url(#".concat(clipId, ")") }, fillCurve, strokeCurve, baselineCurve));
|
|
96137
96137
|
}
|
|
96138
|
-
return /* @__PURE__ */
|
|
96138
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, fillCurve, strokeCurve, baselineCurve);
|
|
96139
96139
|
}
|
|
96140
96140
|
var _excluded$9 = ["id"];
|
|
96141
96141
|
var _excluded2$4 = [
|
|
@@ -96273,7 +96273,7 @@ var computeLegendPayloadFromAreaData = (props) => {
|
|
|
96273
96273
|
payload: props
|
|
96274
96274
|
}];
|
|
96275
96275
|
};
|
|
96276
|
-
var SetAreaTooltipEntrySettings = /* @__PURE__ */
|
|
96276
|
+
var SetAreaTooltipEntrySettings = /* @__PURE__ */ React$2.memo((_ref2) => {
|
|
96277
96277
|
var dataKey = _ref2.dataKey, data = _ref2.data, stroke = _ref2.stroke, strokeWidth = _ref2.strokeWidth, fill = _ref2.fill, name = _ref2.name, hide = _ref2.hide, unit2 = _ref2.unit, formatter = _ref2.formatter, tooltipType = _ref2.tooltipType, id = _ref2.id;
|
|
96278
96278
|
var tooltipEntrySettings = {
|
|
96279
96279
|
dataDefinedOnItem: data,
|
|
@@ -96293,13 +96293,13 @@ var SetAreaTooltipEntrySettings = /* @__PURE__ */ React2.memo((_ref2) => {
|
|
|
96293
96293
|
graphicalItemId: id
|
|
96294
96294
|
}
|
|
96295
96295
|
};
|
|
96296
|
-
return /* @__PURE__ */
|
|
96296
|
+
return /* @__PURE__ */ React$2.createElement(SetTooltipEntrySettings, { tooltipEntrySettings });
|
|
96297
96297
|
});
|
|
96298
96298
|
function AreaDotsWrapper(_ref2) {
|
|
96299
96299
|
var clipPathId = _ref2.clipPathId, points = _ref2.points, props = _ref2.props;
|
|
96300
96300
|
var needClip = props.needClip, dot2 = props.dot, dataKey = props.dataKey;
|
|
96301
96301
|
var areaProps = svgPropertiesNoEvents(props);
|
|
96302
|
-
return /* @__PURE__ */
|
|
96302
|
+
return /* @__PURE__ */ React$2.createElement(Dots, {
|
|
96303
96303
|
points,
|
|
96304
96304
|
dot: dot2,
|
|
96305
96305
|
className: "recharts-area-dots",
|
|
@@ -96330,7 +96330,7 @@ function AreaLabelListProvider(_ref3) {
|
|
|
96330
96330
|
fill: void 0
|
|
96331
96331
|
});
|
|
96332
96332
|
});
|
|
96333
|
-
return /* @__PURE__ */
|
|
96333
|
+
return /* @__PURE__ */ React$2.createElement(CartesianLabelListContextProvider, { value: showLabels ? labelListEntries : void 0 }, children);
|
|
96334
96334
|
}
|
|
96335
96335
|
function StaticArea(_ref4) {
|
|
96336
96336
|
var points = _ref4.points, baseLine = _ref4.baseLine, needClip = _ref4.needClip, clipPathId = _ref4.clipPathId, props = _ref4.props, animationElapsedTime = _ref4.animationElapsedTime, isAnimating = _ref4.isAnimating, isEntrance = _ref4.isEntrance;
|
|
@@ -96349,11 +96349,11 @@ function StaticArea(_ref4) {
|
|
|
96349
96349
|
isAnimating,
|
|
96350
96350
|
isEntrance
|
|
96351
96351
|
});
|
|
96352
|
-
return /* @__PURE__ */
|
|
96352
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /* @__PURE__ */ React$2.createElement(Layer, { clipPath: needClip ? "url(#clipPath-".concat(clipPathId, ")") : void 0 }, /* @__PURE__ */ React$2.createElement(Shape, {
|
|
96353
96353
|
option: shape,
|
|
96354
96354
|
DefaultShape: defaultAreaProps.shape,
|
|
96355
96355
|
shapeProps: curveProps
|
|
96356
|
-
})), /* @__PURE__ */
|
|
96356
|
+
})), /* @__PURE__ */ React$2.createElement(AreaDotsWrapper, {
|
|
96357
96357
|
points,
|
|
96358
96358
|
props: propsWithoutId,
|
|
96359
96359
|
clipPathId
|
|
@@ -96380,7 +96380,7 @@ function AreaWithAnimation(_ref5) {
|
|
|
96380
96380
|
if (Array.isArray(baseLine) && Array.isArray(prevBaseLine)) baseLineAnimationItems = matchAnimationItems(prevBaseLine, baseLine, animationMatchBy);
|
|
96381
96381
|
else if (Array.isArray(baseLine)) baseLineAnimationItems = matchAnimationItems(null, baseLine, animationMatchBy);
|
|
96382
96382
|
else baseLineAnimationItems = null;
|
|
96383
|
-
return /* @__PURE__ */
|
|
96383
|
+
return /* @__PURE__ */ React$2.createElement(AnimatedItems, {
|
|
96384
96384
|
animationInput,
|
|
96385
96385
|
animationIdPrefix: "recharts-area-",
|
|
96386
96386
|
items: points,
|
|
@@ -96400,10 +96400,10 @@ function AreaWithAnimation(_ref5) {
|
|
|
96400
96400
|
else if (Array.isArray(baseLine)) stepBaseLine = animationInterpolateFn(baseLineAnimationItems, animationElapsedTime, layout);
|
|
96401
96401
|
else stepBaseLine = isEntrance ? baseLine : interpolateScalarBaseLine(baseLine, prevBaseLine, animationElapsedTime);
|
|
96402
96402
|
baseLineAnimationState.syncStepValue(stepBaseLine, animationElapsedTime);
|
|
96403
|
-
return /* @__PURE__ */
|
|
96403
|
+
return /* @__PURE__ */ React$2.createElement(AreaLabelListProvider, {
|
|
96404
96404
|
showLabels: !isAnimating,
|
|
96405
96405
|
points
|
|
96406
|
-
}, props.children, /* @__PURE__ */
|
|
96406
|
+
}, props.children, /* @__PURE__ */ React$2.createElement(StaticArea, {
|
|
96407
96407
|
points: stepPoints,
|
|
96408
96408
|
baseLine: stepBaseLine,
|
|
96409
96409
|
needClip,
|
|
@@ -96412,14 +96412,14 @@ function AreaWithAnimation(_ref5) {
|
|
|
96412
96412
|
animationElapsedTime,
|
|
96413
96413
|
isAnimating: isAnimating || animationElapsedTime < 1,
|
|
96414
96414
|
isEntrance
|
|
96415
|
-
}), /* @__PURE__ */
|
|
96415
|
+
}), /* @__PURE__ */ React$2.createElement(LabelListFromLabelProp, { label: props.label }));
|
|
96416
96416
|
});
|
|
96417
96417
|
}
|
|
96418
96418
|
function RenderArea(_ref6) {
|
|
96419
96419
|
var needClip = _ref6.needClip, clipPathId = _ref6.clipPathId, props = _ref6.props;
|
|
96420
96420
|
var previousPointsRef = useRef2(null);
|
|
96421
96421
|
var previousBaselineRef = useRef2();
|
|
96422
|
-
return /* @__PURE__ */
|
|
96422
|
+
return /* @__PURE__ */ React$2.createElement(AreaWithAnimation, {
|
|
96423
96423
|
needClip,
|
|
96424
96424
|
clipPathId,
|
|
96425
96425
|
props,
|
|
@@ -96437,26 +96437,26 @@ var AreaWithState = class extends PureComponent {
|
|
|
96437
96437
|
var clipDot = isClipDot(dot2);
|
|
96438
96438
|
var dotSize = r2 * 2 + strokeWidth;
|
|
96439
96439
|
var activePointsClipPath = needClip ? "url(#clipPath-".concat(clipDot ? "" : "dots-").concat(clipPathId, ")") : void 0;
|
|
96440
|
-
return /* @__PURE__ */
|
|
96440
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex }, /* @__PURE__ */ React$2.createElement(Layer, { className: layerClass }, needClip && /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement(GraphicalItemClipPath, {
|
|
96441
96441
|
clipPathId,
|
|
96442
96442
|
xAxisId,
|
|
96443
96443
|
yAxisId
|
|
96444
|
-
}), !clipDot && /* @__PURE__ */
|
|
96444
|
+
}), !clipDot && /* @__PURE__ */ React$2.createElement("clipPath", { id: "clipPath-dots-".concat(clipPathId) }, /* @__PURE__ */ React$2.createElement("rect", {
|
|
96445
96445
|
x: left - dotSize / 2,
|
|
96446
96446
|
y: top - dotSize / 2,
|
|
96447
96447
|
width: width + dotSize,
|
|
96448
96448
|
height: height + dotSize
|
|
96449
|
-
}))), /* @__PURE__ */
|
|
96449
|
+
}))), /* @__PURE__ */ React$2.createElement(RenderArea, {
|
|
96450
96450
|
needClip,
|
|
96451
96451
|
clipPathId,
|
|
96452
96452
|
props: this.props
|
|
96453
|
-
})), /* @__PURE__ */
|
|
96453
|
+
})), /* @__PURE__ */ React$2.createElement(ActivePoints, {
|
|
96454
96454
|
points,
|
|
96455
96455
|
mainColor: getLegendItemColor(this.props.stroke, this.props.fill),
|
|
96456
96456
|
itemDataKey: this.props.dataKey,
|
|
96457
96457
|
activeDot: this.props.activeDot,
|
|
96458
96458
|
clipPath: activePointsClipPath
|
|
96459
|
-
}), this.props.isRange && Array.isArray(baseLine) && /* @__PURE__ */
|
|
96459
|
+
}), this.props.isRange && Array.isArray(baseLine) && /* @__PURE__ */ React$2.createElement(ActivePoints, {
|
|
96460
96460
|
points: baseLine,
|
|
96461
96461
|
mainColor: getLegendItemColor(this.props.stroke, this.props.fill),
|
|
96462
96462
|
itemDataKey: this.props.dataKey,
|
|
@@ -96478,7 +96478,7 @@ function AreaImpl(props) {
|
|
|
96478
96478
|
if (chartName !== "AreaChart" && chartName !== "ComposedChart") return null;
|
|
96479
96479
|
var height = plotArea.height, width = plotArea.width, left = plotArea.x, top = plotArea.y;
|
|
96480
96480
|
if (!points || !points.length) return null;
|
|
96481
|
-
return /* @__PURE__ */
|
|
96481
|
+
return /* @__PURE__ */ React$2.createElement(AreaWithState, _extends$8({}, everythingElse, {
|
|
96482
96482
|
activeDot,
|
|
96483
96483
|
animationBegin,
|
|
96484
96484
|
animationDuration,
|
|
@@ -96598,10 +96598,10 @@ function computeArea(_ref8) {
|
|
|
96598
96598
|
function AreaFn(outsideProps) {
|
|
96599
96599
|
var props = resolveDefaultProps(outsideProps, defaultAreaProps);
|
|
96600
96600
|
var isPanorama = useIsPanorama();
|
|
96601
|
-
return /* @__PURE__ */
|
|
96601
|
+
return /* @__PURE__ */ React$2.createElement(RegisterGraphicalItemId, {
|
|
96602
96602
|
id: props.id,
|
|
96603
96603
|
type: "area"
|
|
96604
|
-
}, (id) => /* @__PURE__ */
|
|
96604
|
+
}, (id) => /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetLegendPayload, { legendPayload: computeLegendPayloadFromAreaData(props) }), /* @__PURE__ */ React$2.createElement(SetAreaTooltipEntrySettings, {
|
|
96605
96605
|
dataKey: props.dataKey,
|
|
96606
96606
|
data: props.data,
|
|
96607
96607
|
stroke: props.stroke,
|
|
@@ -96613,7 +96613,7 @@ function AreaFn(outsideProps) {
|
|
|
96613
96613
|
formatter: props.formatter,
|
|
96614
96614
|
tooltipType: props.tooltipType,
|
|
96615
96615
|
id
|
|
96616
|
-
}), /* @__PURE__ */
|
|
96616
|
+
}), /* @__PURE__ */ React$2.createElement(SetCartesianGraphicalItem, {
|
|
96617
96617
|
type: "area",
|
|
96618
96618
|
id,
|
|
96619
96619
|
data: props.data,
|
|
@@ -96627,9 +96627,9 @@ function AreaFn(outsideProps) {
|
|
|
96627
96627
|
baseValue: props.baseValue,
|
|
96628
96628
|
isPanorama,
|
|
96629
96629
|
connectNulls: props.connectNulls
|
|
96630
|
-
}), /* @__PURE__ */
|
|
96630
|
+
}), /* @__PURE__ */ React$2.createElement(AreaImpl, _extends$8({}, props, { id }))));
|
|
96631
96631
|
}
|
|
96632
|
-
var Area = /* @__PURE__ */
|
|
96632
|
+
var Area = /* @__PURE__ */ React$2.memo(AreaFn, propsAreEqual);
|
|
96633
96633
|
Area.displayName = "Area";
|
|
96634
96634
|
var _excluded$8 = ["option"];
|
|
96635
96635
|
function _objectWithoutProperties$8(e, t) {
|
|
@@ -96653,7 +96653,7 @@ function _objectWithoutPropertiesLoose$8(r2, e) {
|
|
|
96653
96653
|
var defaultBarShape = Rectangle2;
|
|
96654
96654
|
function BarRectangle(_ref2) {
|
|
96655
96655
|
var option = _ref2.option, shapeProps = _objectWithoutProperties$8(_ref2, _excluded$8);
|
|
96656
|
-
return /* @__PURE__ */
|
|
96656
|
+
return /* @__PURE__ */ React$2.createElement(Shape, {
|
|
96657
96657
|
option,
|
|
96658
96658
|
DefaultShape: defaultBarShape,
|
|
96659
96659
|
shapeProps,
|
|
@@ -96858,7 +96858,7 @@ var useBarStackClipPathUrl = (index) => {
|
|
|
96858
96858
|
var BarStackClipLayer = (_ref2) => {
|
|
96859
96859
|
var index = _ref2.index, rest2 = _objectWithoutProperties$7(_ref2, _excluded$7);
|
|
96860
96860
|
var clipPathUrl = useBarStackClipPathUrl(index);
|
|
96861
|
-
return /* @__PURE__ */
|
|
96861
|
+
return /* @__PURE__ */ React$2.createElement(Layer, _extends$7({
|
|
96862
96862
|
className: "recharts-bar-stack-layer",
|
|
96863
96863
|
clipPath: clipPathUrl
|
|
96864
96864
|
}, rest2));
|
|
@@ -97002,7 +97002,7 @@ var computeLegendPayloadFromBarData = (props) => {
|
|
|
97002
97002
|
payload: props
|
|
97003
97003
|
}];
|
|
97004
97004
|
};
|
|
97005
|
-
var SetBarTooltipEntrySettings = /* @__PURE__ */
|
|
97005
|
+
var SetBarTooltipEntrySettings = /* @__PURE__ */ React$2.memo((_ref2) => {
|
|
97006
97006
|
var dataKey = _ref2.dataKey, stroke = _ref2.stroke, strokeWidth = _ref2.strokeWidth, fill = _ref2.fill, name = _ref2.name, hide = _ref2.hide, unit2 = _ref2.unit, formatter = _ref2.formatter, tooltipType = _ref2.tooltipType, id = _ref2.id;
|
|
97007
97007
|
var tooltipEntrySettings = {
|
|
97008
97008
|
dataDefinedOnItem: void 0,
|
|
@@ -97022,7 +97022,7 @@ var SetBarTooltipEntrySettings = /* @__PURE__ */ React2.memo((_ref2) => {
|
|
|
97022
97022
|
graphicalItemId: id
|
|
97023
97023
|
}
|
|
97024
97024
|
};
|
|
97025
|
-
return /* @__PURE__ */
|
|
97025
|
+
return /* @__PURE__ */ React$2.createElement(SetTooltipEntrySettings, { tooltipEntrySettings });
|
|
97026
97026
|
});
|
|
97027
97027
|
function BarBackground(props) {
|
|
97028
97028
|
var activeIndex = useAppSelector(selectActiveTooltipIndex);
|
|
@@ -97033,7 +97033,7 @@ function BarBackground(props) {
|
|
|
97033
97033
|
var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, dataKey, allOtherBarProps.id);
|
|
97034
97034
|
if (!backgroundFromProps || data == null) return null;
|
|
97035
97035
|
var backgroundProps = svgPropertiesNoEventsFromUnknown(backgroundFromProps);
|
|
97036
|
-
return /* @__PURE__ */
|
|
97036
|
+
return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: getZIndexFromUnknown(backgroundFromProps, DefaultZIndexes.barBackground) }, data.map((entry, i) => {
|
|
97037
97037
|
entry.value;
|
|
97038
97038
|
var backgroundFromDataEntry = entry.background;
|
|
97039
97039
|
entry.tooltipPosition;
|
|
@@ -97053,7 +97053,7 @@ function BarBackground(props) {
|
|
|
97053
97053
|
index: i,
|
|
97054
97054
|
className: "recharts-bar-background-rectangle"
|
|
97055
97055
|
});
|
|
97056
|
-
return /* @__PURE__ */
|
|
97056
|
+
return /* @__PURE__ */ React$2.createElement(BarRectangle, _extends$6({ key: "background-bar-".concat(i) }, barRectangleProps));
|
|
97057
97057
|
}));
|
|
97058
97058
|
}
|
|
97059
97059
|
function BarLabelListProvider(_ref2) {
|
|
@@ -97075,7 +97075,7 @@ function BarLabelListProvider(_ref2) {
|
|
|
97075
97075
|
fill: entry.fill
|
|
97076
97076
|
});
|
|
97077
97077
|
});
|
|
97078
|
-
return /* @__PURE__ */
|
|
97078
|
+
return /* @__PURE__ */ React$2.createElement(CartesianLabelListContextProvider, { value: showLabels ? labelListEntries : void 0 }, children);
|
|
97079
97079
|
}
|
|
97080
97080
|
function BarRectangleWithActiveState(props) {
|
|
97081
97081
|
var shape = props.shape, activeBar = props.activeBar, baseProps = props.baseProps, entry = props.entry, index = props.index, dataKey = props.dataKey;
|
|
@@ -97110,7 +97110,7 @@ function BarRectangleWithActiveState(props) {
|
|
|
97110
97110
|
if (activeBar === true) option = shape;
|
|
97111
97111
|
else option = activeBar;
|
|
97112
97112
|
} else option = shape;
|
|
97113
|
-
var content = /* @__PURE__ */
|
|
97113
|
+
var content = /* @__PURE__ */ React$2.createElement(BarRectangle, _extends$6({}, baseProps, { name: String(baseProps.name) }, entry, {
|
|
97114
97114
|
isActive: isVisuallyActive,
|
|
97115
97115
|
option,
|
|
97116
97116
|
index,
|
|
@@ -97120,12 +97120,12 @@ function BarRectangleWithActiveState(props) {
|
|
|
97120
97120
|
isEntrance: props.isEntrance,
|
|
97121
97121
|
onTransitionEnd: handleTransitionEnd
|
|
97122
97122
|
}));
|
|
97123
|
-
if (shouldRenderInLayer) return /* @__PURE__ */
|
|
97123
|
+
if (shouldRenderInLayer) return /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: DefaultZIndexes.activeBar }, /* @__PURE__ */ React$2.createElement(BarStackClipLayer, { index: entry.originalDataIndex }, content));
|
|
97124
97124
|
return content;
|
|
97125
97125
|
}
|
|
97126
97126
|
function BarRectangleNeverActive(props) {
|
|
97127
97127
|
var shape = props.shape, baseProps = props.baseProps, entry = props.entry, index = props.index, dataKey = props.dataKey;
|
|
97128
|
-
return /* @__PURE__ */
|
|
97128
|
+
return /* @__PURE__ */ React$2.createElement(BarRectangle, _extends$6({}, baseProps, { name: String(baseProps.name) }, entry, {
|
|
97129
97129
|
isActive: false,
|
|
97130
97130
|
option: shape,
|
|
97131
97131
|
index,
|
|
@@ -97145,8 +97145,8 @@ function BarRectangles(_ref3) {
|
|
|
97145
97145
|
var onMouseLeaveFromContext = useMouseLeaveItemDispatch(onMouseLeaveFromProps);
|
|
97146
97146
|
var onClickFromContext = useMouseClickItemDispatch(onItemClickFromProps, dataKey, id);
|
|
97147
97147
|
if (!data) return null;
|
|
97148
|
-
return /* @__PURE__ */
|
|
97149
|
-
return /* @__PURE__ */
|
|
97148
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, data.map((entry, i) => {
|
|
97149
|
+
return /* @__PURE__ */ React$2.createElement(BarStackClipLayer, _extends$6({
|
|
97150
97150
|
index: entry.originalDataIndex,
|
|
97151
97151
|
key: "rectangle-".concat(entry === null || entry === void 0 ? void 0 : entry.x, "-").concat(entry === null || entry === void 0 ? void 0 : entry.y, "-").concat(entry === null || entry === void 0 ? void 0 : entry.value, "-").concat(i),
|
|
97152
97152
|
className: "recharts-bar-rectangle"
|
|
@@ -97154,7 +97154,7 @@ function BarRectangles(_ref3) {
|
|
|
97154
97154
|
onMouseEnter: onMouseEnterFromContext(entry, entry.originalDataIndex),
|
|
97155
97155
|
onMouseLeave: onMouseLeaveFromContext(entry, entry.originalDataIndex),
|
|
97156
97156
|
onClick: onClickFromContext(entry, entry.originalDataIndex)
|
|
97157
|
-
}), activeBar ? /* @__PURE__ */
|
|
97157
|
+
}), activeBar ? /* @__PURE__ */ React$2.createElement(BarRectangleWithActiveState, {
|
|
97158
97158
|
shape,
|
|
97159
97159
|
activeBar,
|
|
97160
97160
|
baseProps,
|
|
@@ -97164,7 +97164,7 @@ function BarRectangles(_ref3) {
|
|
|
97164
97164
|
animationElapsedTime,
|
|
97165
97165
|
isAnimating,
|
|
97166
97166
|
isEntrance
|
|
97167
|
-
}) : /* @__PURE__ */
|
|
97167
|
+
}) : /* @__PURE__ */ React$2.createElement(BarRectangleNeverActive, {
|
|
97168
97168
|
shape,
|
|
97169
97169
|
baseProps,
|
|
97170
97170
|
entry,
|
|
@@ -97208,10 +97208,10 @@ function RectanglesWithAnimation(_ref5) {
|
|
|
97208
97208
|
var props = _ref5.props, previousRectanglesRef = _ref5.previousRectanglesRef;
|
|
97209
97209
|
var data = props.data, isAnimationActive = props.isAnimationActive, animationBegin = props.animationBegin, animationDuration = props.animationDuration, animationEasing = props.animationEasing, animationInterpolateFn = props.animationInterpolateFn, layout = props.layout;
|
|
97210
97210
|
var _useAnimationCallback = useAnimationCallbacks(props.onAnimationStart, props.onAnimationEnd), isAnimating = _useAnimationCallback.isAnimating, handleAnimationStart = _useAnimationCallback.handleAnimationStart, handleAnimationEnd = _useAnimationCallback.handleAnimationEnd;
|
|
97211
|
-
return /* @__PURE__ */
|
|
97211
|
+
return /* @__PURE__ */ React$2.createElement(BarLabelListProvider, {
|
|
97212
97212
|
showLabels: !isAnimating,
|
|
97213
97213
|
rects: data
|
|
97214
|
-
}, /* @__PURE__ */
|
|
97214
|
+
}, /* @__PURE__ */ React$2.createElement(AnimatedItems, {
|
|
97215
97215
|
animationInput: data,
|
|
97216
97216
|
animationIdPrefix: "recharts-bar-",
|
|
97217
97217
|
items: data,
|
|
@@ -97225,17 +97225,17 @@ function RectanglesWithAnimation(_ref5) {
|
|
|
97225
97225
|
animationInterpolateFn,
|
|
97226
97226
|
animationMatchBy: props.animationMatchBy,
|
|
97227
97227
|
layout
|
|
97228
|
-
}, (stepData, animationElapsedTime, isEntrance) => /* @__PURE__ */
|
|
97228
|
+
}, (stepData, animationElapsedTime, isEntrance) => /* @__PURE__ */ React$2.createElement(Layer, null, /* @__PURE__ */ React$2.createElement(BarRectangles, {
|
|
97229
97229
|
props,
|
|
97230
97230
|
data: stepData,
|
|
97231
97231
|
animationElapsedTime,
|
|
97232
97232
|
isAnimating: isAnimating || animationElapsedTime < 1,
|
|
97233
97233
|
isEntrance
|
|
97234
|
-
}))), /* @__PURE__ */
|
|
97234
|
+
}))), /* @__PURE__ */ React$2.createElement(LabelListFromLabelProp, { label: props.label }), props.children);
|
|
97235
97235
|
}
|
|
97236
97236
|
function RenderRectangles(props) {
|
|
97237
97237
|
var previousRectanglesRef = useRef2(null);
|
|
97238
|
-
return /* @__PURE__ */
|
|
97238
|
+
return /* @__PURE__ */ React$2.createElement(RectanglesWithAnimation, {
|
|
97239
97239
|
previousRectanglesRef,
|
|
97240
97240
|
props
|
|
97241
97241
|
});
|
|
@@ -97256,22 +97256,22 @@ var BarWithState = class extends PureComponent {
|
|
|
97256
97256
|
if (hide || data == null) return null;
|
|
97257
97257
|
var layerClass = clsx("recharts-bar", className);
|
|
97258
97258
|
var clipPathId = id;
|
|
97259
|
-
return /* @__PURE__ */
|
|
97259
|
+
return /* @__PURE__ */ React$2.createElement(Layer, {
|
|
97260
97260
|
className: layerClass,
|
|
97261
97261
|
id
|
|
97262
|
-
}, needClip && /* @__PURE__ */
|
|
97262
|
+
}, needClip && /* @__PURE__ */ React$2.createElement("defs", null, /* @__PURE__ */ React$2.createElement(GraphicalItemClipPath, {
|
|
97263
97263
|
clipPathId,
|
|
97264
97264
|
xAxisId,
|
|
97265
97265
|
yAxisId
|
|
97266
|
-
})), /* @__PURE__ */
|
|
97266
|
+
})), /* @__PURE__ */ React$2.createElement(Layer, {
|
|
97267
97267
|
className: "recharts-bar-rectangles",
|
|
97268
97268
|
clipPath: needClip ? "url(#clipPath-".concat(clipPathId, ")") : void 0
|
|
97269
|
-
}, /* @__PURE__ */
|
|
97269
|
+
}, /* @__PURE__ */ React$2.createElement(BarBackground, {
|
|
97270
97270
|
data,
|
|
97271
97271
|
dataKey,
|
|
97272
97272
|
background,
|
|
97273
97273
|
allOtherBarProps: this.props
|
|
97274
|
-
}), /* @__PURE__ */
|
|
97274
|
+
}), /* @__PURE__ */ React$2.createElement(RenderRectangles, this.props)));
|
|
97275
97275
|
}
|
|
97276
97276
|
};
|
|
97277
97277
|
var defaultBarProps = {
|
|
@@ -97304,13 +97304,13 @@ function BarImpl(props) {
|
|
|
97304
97304
|
var firstDataPoint = rects === null || rects === void 0 ? void 0 : rects[0];
|
|
97305
97305
|
if (firstDataPoint == null || firstDataPoint.height == null || firstDataPoint.width == null) errorBarOffset = 0;
|
|
97306
97306
|
else errorBarOffset = layout === "vertical" ? firstDataPoint.height / 2 : firstDataPoint.width / 2;
|
|
97307
|
-
return /* @__PURE__ */
|
|
97307
|
+
return /* @__PURE__ */ React$2.createElement(SetErrorBarContext, {
|
|
97308
97308
|
xAxisId,
|
|
97309
97309
|
yAxisId,
|
|
97310
97310
|
data: rects,
|
|
97311
97311
|
dataPointFormatter: errorBarDataPointFormatter,
|
|
97312
97312
|
errorBarOffset
|
|
97313
|
-
}, /* @__PURE__ */
|
|
97313
|
+
}, /* @__PURE__ */ React$2.createElement(BarWithState, _extends$6({}, props, {
|
|
97314
97314
|
layout,
|
|
97315
97315
|
needClip,
|
|
97316
97316
|
data: rects,
|
|
@@ -97420,10 +97420,10 @@ function BarFn(outsideProps) {
|
|
|
97420
97420
|
var props = resolveDefaultProps(outsideProps, defaultBarProps);
|
|
97421
97421
|
var stackId = useStackId(props.stackId);
|
|
97422
97422
|
var isPanorama = useIsPanorama();
|
|
97423
|
-
return /* @__PURE__ */
|
|
97423
|
+
return /* @__PURE__ */ React$2.createElement(RegisterGraphicalItemId, {
|
|
97424
97424
|
id: props.id,
|
|
97425
97425
|
type: "bar"
|
|
97426
|
-
}, (id) => /* @__PURE__ */
|
|
97426
|
+
}, (id) => /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetLegendPayload, { legendPayload: computeLegendPayloadFromBarData(props) }), /* @__PURE__ */ React$2.createElement(SetBarTooltipEntrySettings, {
|
|
97427
97427
|
dataKey: props.dataKey,
|
|
97428
97428
|
stroke: props.stroke,
|
|
97429
97429
|
strokeWidth: props.strokeWidth,
|
|
@@ -97434,7 +97434,7 @@ function BarFn(outsideProps) {
|
|
|
97434
97434
|
formatter: props.formatter,
|
|
97435
97435
|
tooltipType: props.tooltipType,
|
|
97436
97436
|
id
|
|
97437
|
-
}), /* @__PURE__ */
|
|
97437
|
+
}), /* @__PURE__ */ React$2.createElement(SetCartesianGraphicalItem, {
|
|
97438
97438
|
type: "bar",
|
|
97439
97439
|
id,
|
|
97440
97440
|
data: void 0,
|
|
@@ -97449,9 +97449,9 @@ function BarFn(outsideProps) {
|
|
|
97449
97449
|
maxBarSize: props.maxBarSize,
|
|
97450
97450
|
isPanorama,
|
|
97451
97451
|
hasCustomShape: props.shape != null && props.shape !== defaultBarShape
|
|
97452
|
-
}), /* @__PURE__ */
|
|
97452
|
+
}), /* @__PURE__ */ React$2.createElement(ZIndexLayer, { zIndex: props.zIndex }, /* @__PURE__ */ React$2.createElement(BarImpl, _extends$6({}, props, { id })))));
|
|
97453
97453
|
}
|
|
97454
|
-
var Bar = /* @__PURE__ */
|
|
97454
|
+
var Bar = /* @__PURE__ */ React$2.memo(BarFn, propsAreEqual);
|
|
97455
97455
|
Bar.displayName = "Bar";
|
|
97456
97456
|
var _excluded$5 = ["domain", "range"];
|
|
97457
97457
|
var _excluded2$2 = ["domain", "range"];
|
|
@@ -97630,7 +97630,7 @@ var XAxisImpl = (props) => {
|
|
|
97630
97630
|
synchronizedSettings.id;
|
|
97631
97631
|
synchronizedSettings.scale;
|
|
97632
97632
|
var restSynchronizedSettings = _objectWithoutProperties$4(synchronizedSettings, _excluded3$1);
|
|
97633
|
-
return /* @__PURE__ */
|
|
97633
|
+
return /* @__PURE__ */ React$2.createElement(CartesianAxis, _extends$5({}, allOtherProps, restSynchronizedSettings, {
|
|
97634
97634
|
ref: cartesianAxisRef,
|
|
97635
97635
|
labelRef,
|
|
97636
97636
|
x: position.x,
|
|
@@ -97671,7 +97671,7 @@ var xAxisDefaultProps = {
|
|
|
97671
97671
|
};
|
|
97672
97672
|
var XAxisSettingsDispatcher = (outsideProps) => {
|
|
97673
97673
|
var props = resolveDefaultProps(outsideProps, xAxisDefaultProps);
|
|
97674
|
-
return /* @__PURE__ */
|
|
97674
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetXAxisSettings, {
|
|
97675
97675
|
allowDataOverflow: props.allowDataOverflow,
|
|
97676
97676
|
allowDecimals: props.allowDecimals,
|
|
97677
97677
|
allowDuplicatedCategory: props.allowDuplicatedCategory,
|
|
@@ -97697,9 +97697,9 @@ var XAxisSettingsDispatcher = (outsideProps) => {
|
|
|
97697
97697
|
type: props.type,
|
|
97698
97698
|
unit: props.unit,
|
|
97699
97699
|
niceTicks: props.niceTicks
|
|
97700
|
-
}), /* @__PURE__ */
|
|
97700
|
+
}), /* @__PURE__ */ React$2.createElement(XAxisImpl, props));
|
|
97701
97701
|
};
|
|
97702
|
-
var XAxis = /* @__PURE__ */
|
|
97702
|
+
var XAxis = /* @__PURE__ */ React$2.memo(XAxisSettingsDispatcher, axisPropsAreEqual);
|
|
97703
97703
|
XAxis.displayName = "XAxis";
|
|
97704
97704
|
var _excluded$3 = ["type"];
|
|
97705
97705
|
var _excluded2 = [
|
|
@@ -97845,7 +97845,7 @@ function YAxisImpl2(props) {
|
|
|
97845
97845
|
synchronizedSettings.id;
|
|
97846
97846
|
synchronizedSettings.scale;
|
|
97847
97847
|
var restSynchronizedSettings = _objectWithoutProperties$3(synchronizedSettings, _excluded3);
|
|
97848
|
-
return /* @__PURE__ */
|
|
97848
|
+
return /* @__PURE__ */ React$2.createElement(CartesianAxis, _extends$4({}, allOtherProps, restSynchronizedSettings, {
|
|
97849
97849
|
ref: cartesianAxisRef,
|
|
97850
97850
|
labelRef,
|
|
97851
97851
|
x: position.x,
|
|
@@ -97887,7 +97887,7 @@ var yAxisDefaultProps = {
|
|
|
97887
97887
|
};
|
|
97888
97888
|
var YAxisSettingsDispatcher = (outsideProps) => {
|
|
97889
97889
|
var props = resolveDefaultProps(outsideProps, yAxisDefaultProps);
|
|
97890
|
-
return /* @__PURE__ */
|
|
97890
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(SetYAxisSettings, {
|
|
97891
97891
|
interval: props.interval,
|
|
97892
97892
|
id: props.yAxisId,
|
|
97893
97893
|
scale: props.scale,
|
|
@@ -97913,9 +97913,9 @@ var YAxisSettingsDispatcher = (outsideProps) => {
|
|
|
97913
97913
|
tick: props.tick,
|
|
97914
97914
|
tickFormatter: props.tickFormatter,
|
|
97915
97915
|
niceTicks: props.niceTicks
|
|
97916
|
-
}), /* @__PURE__ */
|
|
97916
|
+
}), /* @__PURE__ */ React$2.createElement(YAxisImpl2, props));
|
|
97917
97917
|
};
|
|
97918
|
-
var YAxis = /* @__PURE__ */
|
|
97918
|
+
var YAxis = /* @__PURE__ */ React$2.memo(YAxisSettingsDispatcher, axisPropsAreEqual);
|
|
97919
97919
|
YAxis.displayName = "YAxis";
|
|
97920
97920
|
var pickChartPointer = (_state, chartPointer) => chartPointer;
|
|
97921
97921
|
var selectActivePropsFromChartPointer = createSelector([
|
|
@@ -98460,7 +98460,7 @@ function RechartsStoreProvider(_ref2) {
|
|
|
98460
98460
|
if (isPanorama) return children;
|
|
98461
98461
|
if (storeRef.current == null) storeRef.current = createRechartsStore(preloadedState, reduxStoreName);
|
|
98462
98462
|
var nonNullContext = RechartsReduxContext;
|
|
98463
|
-
return /* @__PURE__ */
|
|
98463
|
+
return /* @__PURE__ */ React$2.createElement(Provider_default, {
|
|
98464
98464
|
context: nonNullContext,
|
|
98465
98465
|
store: storeRef.current
|
|
98466
98466
|
}, children);
|
|
@@ -98519,7 +98519,7 @@ function ZIndexSvgPortal(_ref2) {
|
|
|
98519
98519
|
zIndex,
|
|
98520
98520
|
isPanorama
|
|
98521
98521
|
]);
|
|
98522
|
-
return /* @__PURE__ */
|
|
98522
|
+
return /* @__PURE__ */ React$2.createElement("g", {
|
|
98523
98523
|
tabIndex: -1,
|
|
98524
98524
|
ref,
|
|
98525
98525
|
className: "recharts-zIndex-layer_".concat(zIndex)
|
|
@@ -98531,11 +98531,11 @@ function AllZIndexPortals(_ref2) {
|
|
|
98531
98531
|
if (!allRegisteredZIndexes || allRegisteredZIndexes.length === 0) return children;
|
|
98532
98532
|
var allNegativeZIndexes = allRegisteredZIndexes.filter((zIndex) => zIndex < 0);
|
|
98533
98533
|
var allPositiveZIndexes = allRegisteredZIndexes.filter((zIndex) => zIndex > 0);
|
|
98534
|
-
return /* @__PURE__ */
|
|
98534
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, allNegativeZIndexes.map((zIndex) => /* @__PURE__ */ React$2.createElement(ZIndexSvgPortal, {
|
|
98535
98535
|
key: zIndex,
|
|
98536
98536
|
zIndex,
|
|
98537
98537
|
isPanorama
|
|
98538
|
-
})), children, allPositiveZIndexes.map((zIndex) => /* @__PURE__ */
|
|
98538
|
+
})), children, allPositiveZIndexes.map((zIndex) => /* @__PURE__ */ React$2.createElement(ZIndexSvgPortal, {
|
|
98539
98539
|
key: zIndex,
|
|
98540
98540
|
zIndex,
|
|
98541
98541
|
isPanorama
|
|
@@ -98587,7 +98587,7 @@ var MainChartSurface = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
98587
98587
|
if (typeof otherAttributes.role === "string") role = otherAttributes.role;
|
|
98588
98588
|
else role = hasAccessibilityLayer ? "application" : void 0;
|
|
98589
98589
|
}
|
|
98590
|
-
return /* @__PURE__ */
|
|
98590
|
+
return /* @__PURE__ */ React$2.createElement(Surface, _extends$3({}, otherAttributes, {
|
|
98591
98591
|
title,
|
|
98592
98592
|
desc,
|
|
98593
98593
|
role,
|
|
@@ -98603,7 +98603,7 @@ var BrushPanoramaSurface = (_ref2) => {
|
|
|
98603
98603
|
var brushDimensions = useAppSelector(selectBrushDimensions);
|
|
98604
98604
|
if (!brushDimensions) return null;
|
|
98605
98605
|
var width = brushDimensions.width, height = brushDimensions.height, y2 = brushDimensions.y, x2 = brushDimensions.x;
|
|
98606
|
-
return /* @__PURE__ */
|
|
98606
|
+
return /* @__PURE__ */ React$2.createElement(Surface, {
|
|
98607
98607
|
width,
|
|
98608
98608
|
height,
|
|
98609
98609
|
x: x2,
|
|
@@ -98612,8 +98612,8 @@ var BrushPanoramaSurface = (_ref2) => {
|
|
|
98612
98612
|
};
|
|
98613
98613
|
var RootSurface = /* @__PURE__ */ forwardRef2((_ref2, ref) => {
|
|
98614
98614
|
var children = _ref2.children, rest2 = _objectWithoutProperties$2(_ref2, _excluded$2);
|
|
98615
|
-
if (useIsPanorama()) return /* @__PURE__ */
|
|
98616
|
-
return /* @__PURE__ */
|
|
98615
|
+
if (useIsPanorama()) return /* @__PURE__ */ React$2.createElement(BrushPanoramaSurface, null, /* @__PURE__ */ React$2.createElement(AllZIndexPortals, { isPanorama: true }, children));
|
|
98616
|
+
return /* @__PURE__ */ React$2.createElement(MainChartSurface, _extends$3({ ref }, rest2), /* @__PURE__ */ React$2.createElement(AllZIndexPortals, { isPanorama: false }, children));
|
|
98617
98617
|
});
|
|
98618
98618
|
function _slicedToArray$1(r2, e) {
|
|
98619
98619
|
return _arrayWithHoles$1(r2) || _iterableToArrayLimit$1(r2, e) || _unsupportedIterableToArray$1(r2, e) || _nonIterableRest$1();
|
|
@@ -98822,10 +98822,10 @@ var ResponsiveDiv = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
98822
98822
|
if (observer != null) observer.disconnect();
|
|
98823
98823
|
};
|
|
98824
98824
|
}, [setContainerSize]);
|
|
98825
|
-
return /* @__PURE__ */
|
|
98825
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(ReportChartSize, {
|
|
98826
98826
|
width: sizes2.containerWidth,
|
|
98827
98827
|
height: sizes2.containerHeight
|
|
98828
|
-
}), /* @__PURE__ */
|
|
98828
|
+
}), /* @__PURE__ */ React$2.createElement("div", _extends$2({ ref: innerRef }, props)));
|
|
98829
98829
|
});
|
|
98830
98830
|
var ReadSizeOnceDiv = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
98831
98831
|
var width = props.width, height = props.height;
|
|
@@ -98851,30 +98851,30 @@ var ReadSizeOnceDiv = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
98851
98851
|
setContainerSize(containerWidth, containerHeight);
|
|
98852
98852
|
}
|
|
98853
98853
|
}, [ref, setContainerSize]);
|
|
98854
|
-
return /* @__PURE__ */
|
|
98854
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(ReportChartSize, {
|
|
98855
98855
|
width: sizes2.containerWidth,
|
|
98856
98856
|
height: sizes2.containerHeight
|
|
98857
|
-
}), /* @__PURE__ */
|
|
98857
|
+
}), /* @__PURE__ */ React$2.createElement("div", _extends$2({ ref: innerRef }, props)));
|
|
98858
98858
|
});
|
|
98859
98859
|
var StaticDiv = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
98860
98860
|
var width = props.width, height = props.height;
|
|
98861
|
-
return /* @__PURE__ */
|
|
98861
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(ReportChartSize, {
|
|
98862
98862
|
width,
|
|
98863
98863
|
height
|
|
98864
|
-
}), /* @__PURE__ */
|
|
98864
|
+
}), /* @__PURE__ */ React$2.createElement("div", _extends$2({ ref }, props)));
|
|
98865
98865
|
});
|
|
98866
98866
|
var NonResponsiveDiv = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
98867
98867
|
var width = props.width, height = props.height;
|
|
98868
|
-
if (typeof width === "string" || typeof height === "string") return /* @__PURE__ */
|
|
98869
|
-
if (typeof width === "number" && typeof height === "number") return /* @__PURE__ */
|
|
98868
|
+
if (typeof width === "string" || typeof height === "string") return /* @__PURE__ */ React$2.createElement(ReadSizeOnceDiv, _extends$2({}, props, { ref }));
|
|
98869
|
+
if (typeof width === "number" && typeof height === "number") return /* @__PURE__ */ React$2.createElement(StaticDiv, _extends$2({}, props, {
|
|
98870
98870
|
width,
|
|
98871
98871
|
height,
|
|
98872
98872
|
ref
|
|
98873
98873
|
}));
|
|
98874
|
-
return /* @__PURE__ */
|
|
98874
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(ReportChartSize, {
|
|
98875
98875
|
width,
|
|
98876
98876
|
height
|
|
98877
|
-
}), /* @__PURE__ */
|
|
98877
|
+
}), /* @__PURE__ */ React$2.createElement("div", _extends$2({ ref }, props)));
|
|
98878
98878
|
});
|
|
98879
98879
|
function getWrapperDivComponent(responsive) {
|
|
98880
98880
|
return responsive ? ResponsiveDiv : NonResponsiveDiv;
|
|
@@ -98986,7 +98986,7 @@ var RechartsWrapper = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
98986
98986
|
}));
|
|
98987
98987
|
}, [dispatch, onTouchEnd]);
|
|
98988
98988
|
var WrapperDiv = getWrapperDivComponent(responsive);
|
|
98989
|
-
return /* @__PURE__ */
|
|
98989
|
+
return /* @__PURE__ */ React$2.createElement(TooltipPortalContext.Provider, { value: tooltipPortal }, /* @__PURE__ */ React$2.createElement(LegendPortalContext.Provider, { value: legendPortal }, /* @__PURE__ */ React$2.createElement(WrapperDiv, {
|
|
98990
98990
|
width: width !== null && width !== void 0 ? width : style === null || style === void 0 ? void 0 : style.width,
|
|
98991
98991
|
height: height !== null && height !== void 0 ? height : style === null || style === void 0 ? void 0 : style.height,
|
|
98992
98992
|
className: clsx("recharts-wrapper", className),
|
|
@@ -99011,7 +99011,7 @@ var RechartsWrapper = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
99011
99011
|
onTouchMove: myOnTouchMove,
|
|
99012
99012
|
onTouchStart: myOnTouchStart,
|
|
99013
99013
|
ref: innerRef
|
|
99014
|
-
}, /* @__PURE__ */
|
|
99014
|
+
}, /* @__PURE__ */ React$2.createElement(EventSynchronizer, null), children)));
|
|
99015
99015
|
});
|
|
99016
99016
|
var _excluded$1 = [
|
|
99017
99017
|
"width",
|
|
@@ -99045,15 +99045,15 @@ function _objectWithoutPropertiesLoose$1(r2, e) {
|
|
|
99045
99045
|
var CategoricalChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
99046
99046
|
var width = props.width, height = props.height, responsive = props.responsive, children = props.children, className = props.className, style = props.style, compact = props.compact, title = props.title, desc = props.desc;
|
|
99047
99047
|
var attrs = svgPropertiesNoEvents(_objectWithoutProperties$1(props, _excluded$1));
|
|
99048
|
-
if (compact) return /* @__PURE__ */
|
|
99048
|
+
if (compact) return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement(ReportChartSize, {
|
|
99049
99049
|
width,
|
|
99050
99050
|
height
|
|
99051
|
-
}), /* @__PURE__ */
|
|
99051
|
+
}), /* @__PURE__ */ React$2.createElement(RootSurface, {
|
|
99052
99052
|
otherAttributes: attrs,
|
|
99053
99053
|
title,
|
|
99054
99054
|
desc
|
|
99055
99055
|
}, children));
|
|
99056
|
-
return /* @__PURE__ */
|
|
99056
|
+
return /* @__PURE__ */ React$2.createElement(RechartsWrapper, {
|
|
99057
99057
|
className,
|
|
99058
99058
|
style,
|
|
99059
99059
|
width,
|
|
@@ -99070,12 +99070,12 @@ var CategoricalChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
99070
99070
|
onTouchStart: props.onTouchStart,
|
|
99071
99071
|
onTouchMove: props.onTouchMove,
|
|
99072
99072
|
onTouchEnd: props.onTouchEnd
|
|
99073
|
-
}, /* @__PURE__ */
|
|
99073
|
+
}, /* @__PURE__ */ React$2.createElement(RootSurface, {
|
|
99074
99074
|
otherAttributes: attrs,
|
|
99075
99075
|
title,
|
|
99076
99076
|
desc,
|
|
99077
99077
|
ref
|
|
99078
|
-
}, /* @__PURE__ */
|
|
99078
|
+
}, /* @__PURE__ */ React$2.createElement(ClipPathProvider, null, children)));
|
|
99079
99079
|
});
|
|
99080
99080
|
function _extends$1() {
|
|
99081
99081
|
return _extends$1 = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -99156,16 +99156,16 @@ var CartesianChart = /* @__PURE__ */ forwardRef2(function CartesianChart2(props,
|
|
|
99156
99156
|
tooltipPayloadSearcher,
|
|
99157
99157
|
eventEmitter: void 0
|
|
99158
99158
|
};
|
|
99159
|
-
return /* @__PURE__ */
|
|
99159
|
+
return /* @__PURE__ */ React$2.createElement(RechartsStoreProvider, {
|
|
99160
99160
|
preloadedState: { options },
|
|
99161
99161
|
reduxStoreName: (_categoricalChartProp = categoricalChartProps.id) !== null && _categoricalChartProp !== void 0 ? _categoricalChartProp : chartName
|
|
99162
|
-
}, /* @__PURE__ */
|
|
99162
|
+
}, /* @__PURE__ */ React$2.createElement(ChartDataContextProvider, { chartData: categoricalChartProps.data }), /* @__PURE__ */ React$2.createElement(ReportMainChartProps, {
|
|
99163
99163
|
layout: rootChartProps.layout,
|
|
99164
99164
|
margin: rootChartProps.margin
|
|
99165
|
-
}), /* @__PURE__ */
|
|
99165
|
+
}), /* @__PURE__ */ React$2.createElement(ReportEventSettings, {
|
|
99166
99166
|
throttleDelay: rootChartProps.throttleDelay,
|
|
99167
99167
|
throttledEvents: rootChartProps.throttledEvents
|
|
99168
|
-
}), /* @__PURE__ */
|
|
99168
|
+
}), /* @__PURE__ */ React$2.createElement(ReportChartProps, {
|
|
99169
99169
|
baseValue: rootChartProps.baseValue,
|
|
99170
99170
|
accessibilityLayer: rootChartProps.accessibilityLayer,
|
|
99171
99171
|
barCategoryGap: rootChartProps.barCategoryGap,
|
|
@@ -99177,11 +99177,11 @@ var CartesianChart = /* @__PURE__ */ forwardRef2(function CartesianChart2(props,
|
|
|
99177
99177
|
syncMethod: rootChartProps.syncMethod,
|
|
99178
99178
|
className: rootChartProps.className,
|
|
99179
99179
|
reverseStackOrder: rootChartProps.reverseStackOrder
|
|
99180
|
-
}), /* @__PURE__ */
|
|
99180
|
+
}), /* @__PURE__ */ React$2.createElement(CategoricalChart, _extends$1({}, rootChartProps, { ref })));
|
|
99181
99181
|
});
|
|
99182
99182
|
var allowedTooltipTypes$3 = ["axis"];
|
|
99183
99183
|
var LineChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
99184
|
-
return /* @__PURE__ */
|
|
99184
|
+
return /* @__PURE__ */ React$2.createElement(CartesianChart, {
|
|
99185
99185
|
chartName: "LineChart",
|
|
99186
99186
|
defaultTooltipEventType: "axis",
|
|
99187
99187
|
validateTooltipEventTypes: allowedTooltipTypes$3,
|
|
@@ -99192,7 +99192,7 @@ var LineChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
99192
99192
|
});
|
|
99193
99193
|
var allowedTooltipTypes$2 = ["axis", "item"];
|
|
99194
99194
|
var BarChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
99195
|
-
return /* @__PURE__ */
|
|
99195
|
+
return /* @__PURE__ */ React$2.createElement(CartesianChart, {
|
|
99196
99196
|
chartName: "BarChart",
|
|
99197
99197
|
defaultTooltipEventType: "axis",
|
|
99198
99198
|
validateTooltipEventTypes: allowedTooltipTypes$2,
|
|
@@ -99311,16 +99311,16 @@ var PolarChart = /* @__PURE__ */ forwardRef2(function PolarChart2(props, ref) {
|
|
|
99311
99311
|
tooltipPayloadSearcher: props.tooltipPayloadSearcher,
|
|
99312
99312
|
eventEmitter: void 0
|
|
99313
99313
|
};
|
|
99314
|
-
return /* @__PURE__ */
|
|
99314
|
+
return /* @__PURE__ */ React$2.createElement(RechartsStoreProvider, {
|
|
99315
99315
|
preloadedState: { options },
|
|
99316
99316
|
reduxStoreName: (_polarChartProps$id = polarChartProps.id) !== null && _polarChartProps$id !== void 0 ? _polarChartProps$id : chartName
|
|
99317
|
-
}, /* @__PURE__ */
|
|
99317
|
+
}, /* @__PURE__ */ React$2.createElement(ChartDataContextProvider, { chartData: polarChartProps.data }), /* @__PURE__ */ React$2.createElement(ReportMainChartProps, {
|
|
99318
99318
|
layout,
|
|
99319
99319
|
margin: polarChartProps.margin
|
|
99320
|
-
}), /* @__PURE__ */
|
|
99320
|
+
}), /* @__PURE__ */ React$2.createElement(ReportEventSettings, {
|
|
99321
99321
|
throttleDelay: polarChartProps.throttleDelay,
|
|
99322
99322
|
throttledEvents: polarChartProps.throttledEvents
|
|
99323
|
-
}), /* @__PURE__ */
|
|
99323
|
+
}), /* @__PURE__ */ React$2.createElement(ReportChartProps, {
|
|
99324
99324
|
baseValue: void 0,
|
|
99325
99325
|
accessibilityLayer: polarChartProps.accessibilityLayer,
|
|
99326
99326
|
barCategoryGap: polarChartProps.barCategoryGap,
|
|
@@ -99332,14 +99332,14 @@ var PolarChart = /* @__PURE__ */ forwardRef2(function PolarChart2(props, ref) {
|
|
|
99332
99332
|
syncMethod: polarChartProps.syncMethod,
|
|
99333
99333
|
className: polarChartProps.className,
|
|
99334
99334
|
reverseStackOrder: polarChartProps.reverseStackOrder
|
|
99335
|
-
}), /* @__PURE__ */
|
|
99335
|
+
}), /* @__PURE__ */ React$2.createElement(ReportPolarOptions, {
|
|
99336
99336
|
cx: polarChartProps.cx,
|
|
99337
99337
|
cy: polarChartProps.cy,
|
|
99338
99338
|
startAngle: polarChartProps.startAngle,
|
|
99339
99339
|
endAngle: polarChartProps.endAngle,
|
|
99340
99340
|
innerRadius: polarChartProps.innerRadius,
|
|
99341
99341
|
outerRadius: polarChartProps.outerRadius
|
|
99342
|
-
}), /* @__PURE__ */
|
|
99342
|
+
}), /* @__PURE__ */ React$2.createElement(CategoricalChart, _extends({}, otherCategoricalProps, { ref })));
|
|
99343
99343
|
});
|
|
99344
99344
|
function ownKeys(e, r2) {
|
|
99345
99345
|
var t = Object.keys(e);
|
|
@@ -99392,7 +99392,7 @@ var defaultPieChartProps = _objectSpread(_objectSpread({}, defaultPolarChartProp
|
|
|
99392
99392
|
});
|
|
99393
99393
|
var PieChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
99394
99394
|
var propsWithDefaults = resolveDefaultProps(props, defaultPieChartProps);
|
|
99395
|
-
return /* @__PURE__ */
|
|
99395
|
+
return /* @__PURE__ */ React$2.createElement(PolarChart, {
|
|
99396
99396
|
chartName: "PieChart",
|
|
99397
99397
|
defaultTooltipEventType: "item",
|
|
99398
99398
|
validateTooltipEventTypes: allowedTooltipTypes$1,
|
|
@@ -99403,7 +99403,7 @@ var PieChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
|
99403
99403
|
});
|
|
99404
99404
|
var allowedTooltipTypes = ["axis"];
|
|
99405
99405
|
var AreaChart = /* @__PURE__ */ forwardRef2((props, ref) => {
|
|
99406
|
-
return /* @__PURE__ */
|
|
99406
|
+
return /* @__PURE__ */ React$2.createElement(CartesianChart, {
|
|
99407
99407
|
chartName: "AreaChart",
|
|
99408
99408
|
defaultTooltipEventType: "axis",
|
|
99409
99409
|
validateTooltipEventTypes: allowedTooltipTypes,
|
|
@@ -99433,16 +99433,16 @@ function sanitizeChartColor(value) {
|
|
|
99433
99433
|
function getChartColorVarName(key) {
|
|
99434
99434
|
return `--color-${sanitizeChartToken(key)}`;
|
|
99435
99435
|
}
|
|
99436
|
-
var ChartContext =
|
|
99436
|
+
var ChartContext = React$2.createContext(null);
|
|
99437
99437
|
function useChart() {
|
|
99438
|
-
const context =
|
|
99438
|
+
const context = React$2.useContext(ChartContext);
|
|
99439
99439
|
if (!context) throw new Error("useChart must be used within a <ChartContainer />");
|
|
99440
99440
|
return context;
|
|
99441
99441
|
}
|
|
99442
99442
|
function ChartContainer({ id, className, children, config: config2, initialDimension = INITIAL_DIMENSION, ...props }) {
|
|
99443
|
-
const uniqueId3 =
|
|
99443
|
+
const uniqueId3 = React$2.useId();
|
|
99444
99444
|
const chartId = sanitizeChartToken(`chart-${id ?? uniqueId3.replace(/:/g, "")}`);
|
|
99445
|
-
const chartContextValue =
|
|
99445
|
+
const chartContextValue = React$2.useMemo(() => ({ config: config2 }), [config2]);
|
|
99446
99446
|
return /* @__PURE__ */ jsx(ChartContext.Provider, {
|
|
99447
99447
|
value: chartContextValue,
|
|
99448
99448
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -99477,7 +99477,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
99477
99477
|
var ChartTooltip = Tooltip;
|
|
99478
99478
|
function ChartTooltipLabel({ label, labelFormatter, payload, hideLabel, labelClassName, labelKey }) {
|
|
99479
99479
|
const { config: config2 } = useChart();
|
|
99480
|
-
return
|
|
99480
|
+
return React$2.useMemo(() => {
|
|
99481
99481
|
if (hideLabel || !payload?.length) return null;
|
|
99482
99482
|
const [item] = payload;
|
|
99483
99483
|
const key = `${labelKey ?? item.dataKey ?? item.name ?? "value"}`;
|
|
@@ -99612,9 +99612,9 @@ function formatNumber(value, locale2, options) {
|
|
|
99612
99612
|
function valueToPercent(value, min, max) {
|
|
99613
99613
|
return (value - min) * 100 / (max - min);
|
|
99614
99614
|
}
|
|
99615
|
-
var ProgressRootContext = /* @__PURE__ */
|
|
99615
|
+
var ProgressRootContext = /* @__PURE__ */ React$2.createContext(void 0);
|
|
99616
99616
|
function useProgressRootContext() {
|
|
99617
|
-
const context =
|
|
99617
|
+
const context = React$2.useContext(ProgressRootContext);
|
|
99618
99618
|
if (context === void 0) throw new Error(formatErrorMessage(51));
|
|
99619
99619
|
return context;
|
|
99620
99620
|
}
|
|
@@ -99627,9 +99627,9 @@ var progressStateAttributesMapping = { status(value) {
|
|
|
99627
99627
|
if (value === "indeterminate") return { [indeterminate]: "" };
|
|
99628
99628
|
return null;
|
|
99629
99629
|
} };
|
|
99630
|
-
var ProgressRoot = /* @__PURE__ */
|
|
99630
|
+
var ProgressRoot = /* @__PURE__ */ React$2.forwardRef(function ProgressRoot2(componentProps, forwardedRef) {
|
|
99631
99631
|
const { format: format2, getAriaValueText, locale: locale2, max = 100, min = 0, value, render, className, children, style, ...elementProps } = componentProps;
|
|
99632
|
-
const [labelId, setLabelId] =
|
|
99632
|
+
const [labelId, setLabelId] = React$2.useState();
|
|
99633
99633
|
let status = "indeterminate";
|
|
99634
99634
|
let percentageValue = null;
|
|
99635
99635
|
let clampedValue = null;
|
|
@@ -99643,7 +99643,7 @@ var ProgressRoot = /* @__PURE__ */ React2.forwardRef(function ProgressRoot2(comp
|
|
|
99643
99643
|
formattedValue = format2 ? formatNumber(clampedValue, locale2, format2) : formatNumber(percentageValue / 100, locale2, { style: "percent" });
|
|
99644
99644
|
defaultAriaValueText = formattedValue;
|
|
99645
99645
|
}
|
|
99646
|
-
const state =
|
|
99646
|
+
const state = React$2.useMemo(() => ({ status }), [status]);
|
|
99647
99647
|
const defaultProps2 = {
|
|
99648
99648
|
"aria-labelledby": labelId,
|
|
99649
99649
|
"aria-valuemax": max,
|
|
@@ -99651,13 +99651,13 @@ var ProgressRoot = /* @__PURE__ */ React2.forwardRef(function ProgressRoot2(comp
|
|
|
99651
99651
|
"aria-valuenow": clampedValue ?? void 0,
|
|
99652
99652
|
"aria-valuetext": getAriaValueText ? getAriaValueText(formattedValue, value) : defaultAriaValueText,
|
|
99653
99653
|
role: "progressbar",
|
|
99654
|
-
children: /* @__PURE__ */ jsxs(
|
|
99654
|
+
children: /* @__PURE__ */ jsxs(React$2.Fragment, { children: [children, /* @__PURE__ */ jsx("span", {
|
|
99655
99655
|
role: "presentation",
|
|
99656
99656
|
style: visuallyHidden,
|
|
99657
99657
|
children: "x"
|
|
99658
99658
|
})] })
|
|
99659
99659
|
};
|
|
99660
|
-
const contextValue =
|
|
99660
|
+
const contextValue = React$2.useMemo(() => ({
|
|
99661
99661
|
formattedValue,
|
|
99662
99662
|
percentageValue,
|
|
99663
99663
|
setLabelId,
|
|
@@ -99681,7 +99681,7 @@ var ProgressRoot = /* @__PURE__ */ React2.forwardRef(function ProgressRoot2(comp
|
|
|
99681
99681
|
children: element
|
|
99682
99682
|
});
|
|
99683
99683
|
});
|
|
99684
|
-
var ProgressTrack$1 = /* @__PURE__ */
|
|
99684
|
+
var ProgressTrack$1 = /* @__PURE__ */ React$2.forwardRef(function ProgressTrack(componentProps, forwardedRef) {
|
|
99685
99685
|
const { render, className, style, ...elementProps } = componentProps;
|
|
99686
99686
|
const { state } = useProgressRootContext();
|
|
99687
99687
|
return useRenderElement("div", componentProps, {
|
|
@@ -99691,7 +99691,7 @@ var ProgressTrack$1 = /* @__PURE__ */ React2.forwardRef(function ProgressTrack(c
|
|
|
99691
99691
|
stateAttributesMapping: progressStateAttributesMapping
|
|
99692
99692
|
});
|
|
99693
99693
|
});
|
|
99694
|
-
var ProgressIndicator$1 = /* @__PURE__ */
|
|
99694
|
+
var ProgressIndicator$1 = /* @__PURE__ */ React$2.forwardRef(function ProgressIndicator(componentProps, forwardedRef) {
|
|
99695
99695
|
const { render, className, style, ...elementProps } = componentProps;
|
|
99696
99696
|
const { percentageValue, state } = useProgressRootContext();
|
|
99697
99697
|
const indicatorStyle = percentageValue == null ? {} : {
|
|
@@ -99706,7 +99706,7 @@ var ProgressIndicator$1 = /* @__PURE__ */ React2.forwardRef(function ProgressInd
|
|
|
99706
99706
|
stateAttributesMapping: progressStateAttributesMapping
|
|
99707
99707
|
});
|
|
99708
99708
|
});
|
|
99709
|
-
var ProgressValue$1 = /* @__PURE__ */
|
|
99709
|
+
var ProgressValue$1 = /* @__PURE__ */ React$2.forwardRef(function ProgressValue(componentProps, forwardedRef) {
|
|
99710
99710
|
const { className, render, children, style, ...elementProps } = componentProps;
|
|
99711
99711
|
const { value, formattedValue, state } = useProgressRootContext();
|
|
99712
99712
|
const indeterminate2 = state.status === "indeterminate";
|
|
@@ -99720,7 +99720,7 @@ var ProgressValue$1 = /* @__PURE__ */ React2.forwardRef(function ProgressValue(c
|
|
|
99720
99720
|
stateAttributesMapping: progressStateAttributesMapping
|
|
99721
99721
|
});
|
|
99722
99722
|
});
|
|
99723
|
-
var ProgressLabel$1 = /* @__PURE__ */
|
|
99723
|
+
var ProgressLabel$1 = /* @__PURE__ */ React$2.forwardRef(function ProgressLabel(componentProps, forwardedRef) {
|
|
99724
99724
|
const { render, className, style, id: idProp, ...elementProps } = componentProps;
|
|
99725
99725
|
const { setLabelId, state } = useProgressRootContext();
|
|
99726
99726
|
const id = useRegisteredLabelId(idProp, setLabelId);
|
|
@@ -100272,7 +100272,7 @@ function PanelActionComponent({ props: { focus, label, panel, relativePath } })
|
|
|
100272
100272
|
}
|
|
100273
100273
|
var PanelActionDef = defineComponent$1({
|
|
100274
100274
|
name: "PanelAction",
|
|
100275
|
-
description: "A trusted local action that opens Resources, Workspace, Artifacts, REPL, Subagents, or Session
|
|
100275
|
+
description: "A trusted local action that opens Resources, Workspace, Artifacts, REPL, Subagents, Session insights, or Session tree. relativePath selects a contained workspace-relative path and is valid only for Workspace and Artifacts panels.",
|
|
100276
100276
|
props: external_exports.object({
|
|
100277
100277
|
label: external_exports.string().describe("Visible action label"),
|
|
100278
100278
|
panel: RightPanelIdSchema,
|
|
@@ -100991,18 +100991,23 @@ function OpenUIBlock({ blockId, content, initialState: initialState2, isStreamin
|
|
|
100991
100991
|
const message2 = getActionMessage(event);
|
|
100992
100992
|
if (message2) onAction?.(message2);
|
|
100993
100993
|
}, [onAction]);
|
|
100994
|
+
const artifactProviderValue = useMemo2(() => ({
|
|
100995
|
+
messageId,
|
|
100996
|
+
artifactIndex: 0,
|
|
100997
|
+
onArtifactReady,
|
|
100998
|
+
onOpenArtifact
|
|
100999
|
+
}), [
|
|
101000
|
+
messageId,
|
|
101001
|
+
onArtifactReady,
|
|
101002
|
+
onOpenArtifact
|
|
101003
|
+
]);
|
|
100994
101004
|
const finalErrors = getFinalErrors(parseResult, isStreaming);
|
|
100995
101005
|
return /* @__PURE__ */ jsxs("div", {
|
|
100996
101006
|
className: "flex w-full flex-col gap-2",
|
|
100997
101007
|
children: [/* @__PURE__ */ jsx(UiErrorBoundary, {
|
|
100998
101008
|
resetKeys: [content],
|
|
100999
101009
|
children: /* @__PURE__ */ jsx(OpenUIArtifactProvider, {
|
|
101000
|
-
value:
|
|
101001
|
-
messageId,
|
|
101002
|
-
artifactIndex: 0,
|
|
101003
|
-
onArtifactReady,
|
|
101004
|
-
onOpenArtifact
|
|
101005
|
-
},
|
|
101010
|
+
value: artifactProviderValue,
|
|
101006
101011
|
children: /* @__PURE__ */ jsx(Renderer, {
|
|
101007
101012
|
initialState: initialState2,
|
|
101008
101013
|
isStreaming,
|