@p4code/cli 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.mjs +1 -1
- package/dist/{binCli-Bgjc_5FL.mjs → binCli-D9Qk_k5i.mjs} +88 -47
- package/dist/client/.vite/manifest.json +2103 -2103
- package/dist/client/assets/{AnimatedHeight-DYUgtGfz.js → AnimatedHeight-DKdClmyw.js} +2 -2
- package/dist/client/assets/{AuthSurfaceShell-CfLnzrCc.js → AuthSurfaceShell-UJgufrYU.js} +2 -2
- package/dist/client/assets/{CSPContext-i9QaQnwk.js → CSPContext-CTpTfAqS.js} +2 -2
- package/dist/client/assets/ChatGptUsageButton-9B_WUPVm.js +2 -0
- package/dist/client/assets/ChatMarkdown-B9_nJM54.js +65 -0
- package/dist/client/assets/{CodexSetupSection.logic-VTayPks4.js → CodexSetupSection.logic-YSEDjbLd.js} +2 -2
- package/dist/client/assets/{ComboboxClear-B-iYnTX_.js → ComboboxClear-TEL6MsPn.js} +2 -2
- package/dist/client/assets/{CommandBlock-dh2vBT70.js → CommandBlock-C6bCrWJ5.js} +2 -2
- package/dist/client/assets/{ComposerPromptEditor-fIqs_--j.js → ComposerPromptEditor-BpT2majW.js} +10 -10
- package/dist/client/assets/{CompositeRoot-JeAqW-33.js → CompositeRoot-CZuZX6hs.js} +2 -2
- package/dist/client/assets/{ConnectionStatusDot-BCSqqCpf.js → ConnectionStatusDot-BX6msmak.js} +2 -2
- package/dist/client/assets/{DevicePanel-BckpiUTa.js → DevicePanel-DavxmX2w.js} +2 -2
- package/dist/client/assets/{DeviceSetup-L8Q-0h1V.js → DeviceSetup-CZX8TKF_.js} +2 -2
- package/dist/client/assets/{DialogTitle-BRYusK7T.js → DialogTitle-CLcXbJRs.js} +2 -2
- package/dist/client/assets/{DiffCommentAnnotation-DxxGd0sM.js → DiffCommentAnnotation-B21n3tGU.js} +3 -3
- package/dist/client/assets/{DiffFileTree-C2N3dwbB.js → DiffFileTree--L--vp02.js} +2 -2
- package/dist/client/assets/DiffPanel-T4lIPUlN.js +2 -0
- package/dist/client/assets/{DiffWorkerPoolProvider-Dd8cIhyy.js → DiffWorkerPoolProvider-Cxzr_uYq.js} +3 -3
- package/dist/client/assets/{EnvironmentMachineIcon-giyHKjbh.js → EnvironmentMachineIcon-CGINHXnT.js} +2 -2
- package/dist/client/assets/{ExpandableText-dJhpznMp.js → ExpandableText-D1ewr-yU.js} +3 -3
- package/dist/client/assets/{FieldControl-CxuWXcJE.js → FieldControl-BVq7aDv3.js} +2 -2
- package/dist/client/assets/{FileDiff-EWd5oWlS.js → FileDiff-C0ZCBwBc.js} +2 -2
- package/dist/client/assets/{FilePreviewPanel-D3kud1xs.js → FilePreviewPanel-CxOIUI0_.js} +4 -4
- package/dist/client/assets/{FoldedSettingsSection-CsN_jb3V.js → FoldedSettingsSection-DmcJrCZO.js} +2 -2
- package/dist/client/assets/{FormContext-Vk5aZcR6.js → FormContext-CObkgUvS.js} +2 -2
- package/dist/client/assets/{Icons-DM1SzuL7.js → Icons-CSHLGz_M.js} +2 -2
- package/dist/client/assets/{KeybindingsSettings.logic-BcJGxVhV.js → KeybindingsSettings.logic-D9eYCeK5.js} +2 -2
- package/dist/client/assets/{NoProjectsHero-DrkWMiG4.js → NoProjectsHero-C0RwYoYq.js} +2 -2
- package/dist/client/assets/{PanelLayoutControls-DjmAXscr.js → PanelLayoutControls-CcE6oZUh.js} +8 -8
- package/dist/client/assets/{PierreEntryIcon-BJ8xtDqQ.js → PierreEntryIcon-D0PlfaRc.js} +2 -2
- package/dist/client/assets/{PreviewPanel-D_JLD7YP.js → PreviewPanel-DgRCZ-80.js} +2 -2
- package/dist/client/assets/ProjectDefaultsSettings-DOXJKuJ7.js +2 -0
- package/dist/client/assets/{ProjectFavicon-By6-kpgk.js → ProjectFavicon-CFPeQQsG.js} +3 -3
- package/dist/client/assets/ProjectIconPickerDialog-B5iXalFo.js +2 -0
- package/dist/client/assets/{ProjectMonogram-BJVBhwjz.js → ProjectMonogram-HCgoNxPJ.js} +2 -2
- package/dist/client/assets/{ProviderAuthTerminal-DBiUwanv.js → ProviderAuthTerminal-rBb4SeQd.js} +2 -2
- package/dist/client/assets/{ProviderModelPicker-DV64N-fE.js → ProviderModelPicker-CHfA6QfR.js} +2 -2
- package/dist/client/assets/{ProviderSettingsForm-Tkr5xKCJ.js → ProviderSettingsForm-cr5QEWx_.js} +2 -2
- package/dist/client/assets/{PullRequestCodeTab-DijqMjN0.js → PullRequestCodeTab-CyJ0_1HE.js} +3 -3
- package/dist/client/assets/{ReadOnlySourcePreview-CydDaO9-.js → ReadOnlySourcePreview-BvUk75g2.js} +2 -2
- package/dist/client/assets/{RenderErrorBoundary-D4M2khxk.js → RenderErrorBoundary-h3g72sj0.js} +2 -2
- package/dist/client/assets/ScheduledTasksSettings-CpUearCU.js +4 -0
- package/dist/client/assets/ScopedSwitch-D1QVfZHR.js +2 -0
- package/dist/client/assets/{SecretInput-CNWNAhNe.js → SecretInput-SiHUbFCV.js} +2 -2
- package/dist/client/assets/{SettingsPanels-DAv_V_mk.js → SettingsPanels-B9t76y-c.js} +5 -5
- package/dist/client/assets/{SettingsPanels.logic-BYa5iHwl.js → SettingsPanels.logic-B3IqBMv7.js} +2 -2
- package/dist/client/assets/{SettingsScopeNotice-CcLrVZWz.js → SettingsScopeNotice-B_awMQPw.js} +2 -2
- package/dist/client/assets/{T3ConnectAccountPages-DjITJ87o.js → T3ConnectAccountPages-DOpj673A.js} +2 -2
- package/dist/client/assets/{T3ConnectSidebarSignIn-B-rQNmqG.js → T3ConnectSidebarSignIn-zrB8y6DQ.js} +2 -2
- package/dist/client/assets/{ThemeEditorPanel-CJGqmeTA.js → ThemeEditorPanel-Cx7KulxB.js} +2 -2
- package/dist/client/assets/{ThreadTerminalDrawer-Cdl3DAIx.js → ThreadTerminalDrawer-ChcqArNC.js} +4 -4
- package/dist/client/assets/{Virtualizer-Bk-YJlPj.js → Virtualizer-DWmIp9HB.js} +2 -2
- package/dist/client/assets/{WorkspaceBreadcrumb-DSFWvH19.js → WorkspaceBreadcrumb-Dx7xMwQd.js} +2 -2
- package/dist/client/assets/{WorkspacePageContainer-BXUbfbEU.js → WorkspacePageContainer-sM_H3DH4.js} +2 -2
- package/dist/client/assets/{WorkspacePageHeader-LbIzJCDs.js → WorkspacePageHeader-C_J7FxVt.js} +2 -2
- package/dist/client/assets/_chat-Du_FC4wO.js +45 -0
- package/dist/client/assets/{_chat.index-CTew1WmI.js → _chat.index-DUyKTtkh.js} +2 -2
- package/dist/client/assets/_chat.new-CMoB99iV.js +4 -0
- package/dist/client/assets/{_chat.pull-requests-BlXnsqov.js → _chat.pull-requests-BuTKumeN.js} +2 -2
- package/dist/client/assets/{abnfDiagram-VCTEODGH-brKh7bzh.js → abnfDiagram-VCTEODGH-D2OflHz4.js} +2 -2
- package/dist/client/assets/{alert-quTC4YbH.js → alert-8IFNkYPw.js} +2 -2
- package/dist/client/assets/architecture-7GRP2DOG-BMsijJGx.js +1 -0
- package/dist/client/assets/{architectureDiagram-5GKGNRK7-BVDiXgfK.js → architectureDiagram-5GKGNRK7-Cz7fFw7N.js} +2 -2
- package/dist/client/assets/arrow-left-DjrJekQJ.js +1 -0
- package/dist/client/assets/arrow-right-DNQ3322O.js +1 -0
- package/dist/client/assets/arrow-up-down-DpVszLOH.js +1 -0
- package/dist/client/assets/assets-DJce0KBy.js +2 -0
- package/dist/client/assets/bell-ehBYv81q.js +1 -0
- package/dist/client/assets/{blockDiagram-I7D4REHJ-CzoRCJDe.js → blockDiagram-I7D4REHJ-BcqcXQ0x.js} +2 -2
- package/dist/client/assets/blocks-CF1Wdm4Y.js +1 -0
- package/dist/client/assets/bot-Dj9hYg2w.js +1 -0
- package/dist/client/assets/{browserHistoryStore-Cw3ffhOV.js → browserHistoryStore-CuO1erOb.js} +2 -2
- package/dist/client/assets/{browserLinkTarget-KTI1tSl7.js → browserLinkTarget-B5-9Pt65.js} +2 -2
- package/dist/client/assets/{c4Diagram-7LVT6UL2-CfyobiDu.js → c4Diagram-7LVT6UL2-DDiDhcli.js} +2 -2
- package/dist/client/assets/calendar-clock-BaXgPf_7.js +1 -0
- package/dist/client/assets/channel-pJ5lNF0h.js +2 -0
- package/dist/client/assets/chart-no-axes-column-BzuvLLND.js +1 -0
- package/dist/client/assets/checkbox-BUOikrm3.js +2 -0
- package/dist/client/assets/{chunk-4HAMMTFA-CPnMRFld.js → chunk-4HAMMTFA-_7K6yngz.js} +2 -2
- package/dist/client/assets/{chunk-75Z2AOVW-C85FbOND.js → chunk-75Z2AOVW-CUqo_4ua.js} +2 -2
- package/dist/client/assets/{chunk-DU6HZSFF-s_qrqgaz.js → chunk-DU6HZSFF-C3RStRBi.js} +2 -2
- package/dist/client/assets/{chunk-F27PBJKO-90tTgV9x.js → chunk-F27PBJKO-BOr5cbtz.js} +2 -2
- package/dist/client/assets/{chunk-GMAD6QVW-CYRPr7hZ.js → chunk-GMAD6QVW-qBcSdTWV.js} +2 -2
- package/dist/client/assets/{chunk-GVQU2GXP-CxAvUb1-.js → chunk-GVQU2GXP-D8rhGQK_.js} +2 -2
- package/dist/client/assets/{chunk-IMKFNOWR-794woOlB.js → chunk-IMKFNOWR-BjTZFMrm.js} +2 -2
- package/dist/client/assets/{chunk-L3NEJ4N5-JXcRdiIo.js → chunk-L3NEJ4N5-DnCelWBi.js} +2 -2
- package/dist/client/assets/{chunk-OSK3NFVY-ToxVvjW1.js → chunk-OSK3NFVY-BEgD3sGZ.js} +2 -2
- package/dist/client/assets/{chunk-P2QGCYS3-JB1PmfIc.js → chunk-P2QGCYS3-DDmmXS6G.js} +2 -2
- package/dist/client/assets/{chunk-POPQ4Y6H-RMxlqjhd.js → chunk-POPQ4Y6H-CefHvRtI.js} +2 -2
- package/dist/client/assets/{chunk-PWAF6VOD-AB579n2y.js → chunk-PWAF6VOD-BPIKFLCK.js} +2 -2
- package/dist/client/assets/{chunk-SHT3W25Y-CV2hE9-g.js → chunk-SHT3W25Y-B_pDi6kv.js} +2 -2
- package/dist/client/assets/{chunk-SVP7TREG-b2Gs4u5W.js → chunk-SVP7TREG-BD15vJFs.js} +2 -2
- package/dist/client/assets/{chunk-TICWLB2K-CtkYqLLJ.js → chunk-TICWLB2K-B2yA6VhZ.js} +2 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-D4Ed7oKu.js +2 -0
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-D4Ed7oKu.js +2 -0
- package/dist/client/assets/{color-picker-CFc6YapE.js → color-picker-Dqvd0njw.js} +2 -2
- package/dist/client/assets/{combobox-WVgW_agq.js → combobox-BPRK10Il.js} +2 -2
- package/dist/client/assets/{command-w6WcFbeZ.js → command-B-SWHWbd.js} +2 -2
- package/dist/client/assets/{connect-D_ncSJiK.js → connect-D8LGiBSX.js} +2 -2
- package/dist/client/assets/{connect-agent-8mHL_bau.js → connect-agent-B3TvHBIV.js} +2 -2
- package/dist/client/assets/corner-left-up-8yNxlIpO.js +1 -0
- package/dist/client/assets/{cynefin-OW5HDTMX-BDIjrXPB.js → cynefin-OW5HDTMX-D-j3kzkd.js} +1 -1
- package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-h9tw36zs.js → cynefinDiagram-5FMLGOSQ-CVEhj0G_.js} +2 -2
- package/dist/client/assets/{dagre-GXQ25YYZ-D3s1T81F.js → dagre-GXQ25YYZ-opF-kR2J.js} +2 -2
- package/dist/client/assets/device-DARKbqyG.js +2 -0
- package/dist/client/assets/{diagram-S7CK7UJ4-DTawhR4X.js → diagram-S7CK7UJ4-Y1OUf_Uf.js} +2 -2
- package/dist/client/assets/{diagram-UQ7AKVKN-CTUDQHKY.js → diagram-UQ7AKVKN-BMAkQiYU.js} +2 -2
- package/dist/client/assets/{diagram-VSXAHHWV-DsbNNWnj.js → diagram-VSXAHHWV-YWI6689v.js} +2 -2
- package/dist/client/assets/{diagram-VX7I27RA-BBy99N9O.js → diagram-VX7I27RA-DVxQ1Tyn.js} +2 -2
- package/dist/client/assets/{diagram-Z3DM3KII-CEy69xv1.js → diagram-Z3DM3KII-DzaunCE7.js} +2 -2
- package/dist/client/assets/{dialog-CPLO59bH.js → dialog-ChNU2rSW.js} +2 -2
- package/dist/client/assets/{diffRendering-BlmxsRF9.js → diffRendering-TJ6NEHef.js} +2 -2
- package/dist/client/assets/{discovery-list-D0LBmkzJ.js → discovery-list-2jVj88oX.js} +2 -2
- package/dist/client/assets/{dist-DZWol-cd.js → dist-Dc07DWZJ.js} +3 -3
- package/dist/client/assets/download-KOf4APex.js +1 -0
- package/dist/client/assets/{draft-input-CmvO5rl_.js → draft-input-CAOyi5vd.js} +2 -2
- package/dist/client/assets/{duoViewer-B0QD-fyi.js → duoViewer-CkI16mDl.js} +2 -2
- package/dist/client/assets/dynamic-B6ssT_6R.js +3 -0
- package/dist/client/assets/earth-Gh21ySR9.js +1 -0
- package/dist/client/assets/{ebnfDiagram-PWID7BFC-B9LWNbny.js → ebnfDiagram-PWID7BFC-CLu3StxL.js} +2 -2
- package/dist/client/assets/ellipsis-Dd1lpp1y.js +1 -0
- package/dist/client/assets/{embeddedScripts-B1MGNr-e.js → embeddedScripts-C0cHj-rX.js} +2 -2
- package/dist/client/assets/{empty-tr-EsB66.js → empty-DJMr9MZU.js} +2 -2
- package/dist/client/assets/entities-HApogVCu.js +2 -0
- package/dist/client/assets/{erDiagram-RLTQ6QDP-Nu9IMF5-.js → erDiagram-RLTQ6QDP-CMztaIAH.js} +2 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-D1FYr7Uj.js +1 -0
- package/dist/client/assets/eye-CQCt8uGE.js +1 -0
- package/dist/client/assets/file-search-BXNWZ1nV.js +1 -0
- package/dist/client/assets/{fileLinks-BHAkEh9k.js → fileLinks-3CrgspkN.js} +2 -2
- package/dist/client/assets/{fileTreeExpansion-BierCVUV.js → fileTreeExpansion-CYkjiRdT.js} +2 -2
- package/dist/client/assets/flowDiagram-HODETNUW-leGOLc6K.js +1 -0
- package/dist/client/assets/folder-git-2-BIZ4K8z0.js +1 -0
- package/dist/client/assets/folder-open-BI7lMTSr.js +1 -0
- package/dist/client/assets/folder-plus-B91hg6qR.js +1 -0
- package/dist/client/assets/{ganttDiagram-EL5Y4UJY-D_s5F9rI.js → ganttDiagram-EL5Y4UJY-G_L0ijf2.js} +2 -2
- package/dist/client/assets/{getDiffFileInput-B5j6sQbM.js → getDiffFileInput-Kc1w64Y-.js} +2 -2
- package/dist/client/assets/git-branch-Yqn0BBlE.js +1 -0
- package/dist/client/assets/{gitGraph-4MIJSDKK-BASxGOL3.js → gitGraph-4MIJSDKK-BmuEuxsx.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BtA4z_1S.js → gitGraphDiagram-WWUBYQGX-C6A4msS5.js} +2 -2
- package/dist/client/assets/grip-vertical-DbE6Bv-r.js +1 -0
- package/dist/client/assets/{guideRunStore-C95PbUuP.js → guideRunStore-sdfoC8zb.js} +2 -2
- package/dist/client/assets/hard-drive--FvDwcA1.js +1 -0
- package/dist/client/assets/history-D-6p2svD.js +1 -0
- package/dist/client/assets/house-6Nj_TaKT.js +1 -0
- package/dist/client/assets/{htmlRender-DgdJ8GkZ.js → htmlRender-BPiW3VQi.js} +2 -2
- package/dist/client/assets/index-EKWtrZNr.js +3 -0
- package/dist/client/assets/{info-A6RAGUB7-Q4Qe5TI_.js → info-A6RAGUB7-CwFLPSUe.js} +1 -1
- package/dist/client/assets/{infoDiagram-27XIBGKW-CNnDxcfZ.js → infoDiagram-27XIBGKW-bjIIr1Q4.js} +2 -2
- package/dist/client/assets/{input-group-DJwXFHGO.js → input-group-DM7QvN7X.js} +2 -2
- package/dist/client/assets/{input-DaCwubQj.js → input-w_nbMVAd.js} +2 -2
- package/dist/client/assets/{ishikawaDiagram-5VMMS53U-Drb03OY6.js → ishikawaDiagram-5VMMS53U-ymImqXAG.js} +2 -2
- package/dist/client/assets/{journeyDiagram-3NMN7TZE-CynC6Up1.js → journeyDiagram-3NMN7TZE-TJpDU0em.js} +2 -2
- package/dist/client/assets/{kanban-definition-UXKFOSKX-DfyC_hIe.js → kanban-definition-UXKFOSKX-Bhm6s1x1.js} +2 -2
- package/dist/client/assets/{kbd-R3wkAau0.js → kbd-CTZhqOH9.js} +2 -2
- package/dist/client/assets/{keybindings-QrjnJ5jB.js → keybindings-CJFu-Dyg.js} +2 -2
- package/dist/client/assets/keyboard-Bf3n2zS8.js +1 -0
- package/dist/client/assets/{lazyRouteComponent-cLZROdN-.js → lazyRouteComponent-WxKijHdU.js} +2 -2
- package/dist/client/assets/{line-C3gvAOpf.js → line-C24Qe7Rj.js} +2 -2
- package/dist/client/assets/link-BVjRZ3mh.js +1 -0
- package/dist/client/assets/{link-Bl21VXlj.js → link-DnBUR2mx.js} +2 -2
- package/dist/client/assets/{linkedPrompt-DAcv0O_f.js → linkedPrompt-CNv-bVSs.js} +2 -2
- package/dist/client/assets/list-DrTK4zhP.js +1 -0
- package/dist/client/assets/loader-Bc9xbkPa.js +2 -0
- package/dist/client/assets/main-D1oD2GPo.js +30 -0
- package/dist/client/assets/main-hjb9WdQ8.css +2 -0
- package/dist/client/assets/{mediaReference-DN8lzwOF.js → mediaReference-vtwfoFLK.js} +2 -2
- package/dist/client/assets/{mediaSource-0nIWHHoL.js → mediaSource-BDkqXaxs.js} +2 -2
- package/dist/client/assets/{mermaid-parser.core-B3cYmj0d.js → mermaid-parser.core-D2hAGRv3.js} +4 -4
- package/dist/client/assets/{mermaid.core-9ekBSYCO.js → mermaid.core-DWtHy2iz.js} +5 -5
- package/dist/client/assets/message-circle-question-mark-D2JAzS9x.js +1 -0
- package/dist/client/assets/message-square-DNTOkKRN.js +1 -0
- package/dist/client/assets/message-square-dashed-NGYZLQqB.js +1 -0
- package/dist/client/assets/{mindmap-definition-YA3MSWOX-K4rtZu2z.js → mindmap-definition-YA3MSWOX-DCzTD1Gd.js} +2 -2
- package/dist/client/assets/mouse-pointer-2-CgUWLVBh.js +1 -0
- package/dist/client/assets/number-field-yRjM_PYx.js +2 -0
- package/dist/client/assets/{observeResize-BEjNJ-rK.js → observeResize-wFdsooQ8.js} +2 -2
- package/dist/client/assets/{onboarding--LqcHqO0.js → onboarding-Buk_SNIp.js} +2 -2
- package/dist/client/assets/{openFileInPreview-NwK1GJFN.js → openFileInPreview-CxrjOX7D.js} +2 -2
- package/dist/client/assets/{p4ProjectFile-CVEoe1SJ.js → p4ProjectFile-DNlgD3LH.js} +2 -2
- package/dist/client/assets/{packet-AYTQ26CC-kDkfULQq.js → packet-AYTQ26CC-CSklBRjj.js} +1 -1
- package/dist/client/assets/{pair-Bxo10T5t.js → pair-DYnW2Jz0.js} +2 -2
- package/dist/client/assets/palette-DCF6iKZY.js +1 -0
- package/dist/client/assets/panel-left-BObCZ482.js +1 -0
- package/dist/client/assets/panels-top-left-4ditdjHS.js +1 -0
- package/dist/client/assets/{pegDiagram-XKGWAZYB-6b8AqBYd.js → pegDiagram-XKGWAZYB-Cgo_C_YQ.js} +2 -2
- package/dist/client/assets/{phoneViewer-Vql_2ZzY.js → phoneViewer-CVOLU68D.js} +2 -2
- package/dist/client/assets/{pie-WAS4IAKB-CfoqFIwI.js → pie-WAS4IAKB-y0cNnmhp.js} +1 -1
- package/dist/client/assets/{pieDiagram-E7YTZNPT-i8FgTMai.js → pieDiagram-E7YTZNPT-CR9uQOKX.js} +2 -2
- package/dist/client/assets/{pierre-icons-CBmlpFgP.js → pierre-icons-YFKnGmUq.js} +2 -2
- package/dist/client/assets/{popover-BXin7C0B.js → popover-D-VzRDzk.js} +2 -2
- package/dist/client/assets/{preview-6t42evKb.js → preview-C7hqmFHN.js} +2 -2
- package/dist/client/assets/{preview-C9iPHfb1.js → preview-DT6Qi-Q0.js} +2 -2
- package/dist/client/assets/{previewMiniPlayerStore-BDRPsVx0.js → previewMiniPlayerStore-Dmvk7kfx.js} +2 -2
- package/dist/client/assets/primary-bBvWt8wp.js +2 -0
- package/dist/client/assets/primaryCloudLinkState-DDmxU43H.js +2 -0
- package/dist/client/assets/projectFilesQueryState-C9bparJ7.js +2 -0
- package/dist/client/assets/projectScriptEditor-2klDgdXc.js +2 -0
- package/dist/client/assets/{providerSkills-D0IxW0_5.js → providerSkills-Bd9FOodA.js} +2 -2
- package/dist/client/assets/{pullRequestDetail.logic-BiwUoz1M.js → pullRequestDetail.logic-BHCv2eTg.js} +4 -4
- package/dist/client/assets/{pullRequestReviewStore-J7YIGsZ9.js → pullRequestReviewStore-DNDBmRdQ.js} +2 -2
- package/dist/client/assets/pullRequests-NQiU1cvE.js +2 -0
- package/dist/client/assets/puzzle-DC6izfkI.js +1 -0
- package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DzvIAxCm.js → quadrantDiagram-AXDQQJYC-B2RnhUBb.js} +2 -2
- package/dist/client/assets/queries-DrIiv9gC.js +2 -0
- package/dist/client/assets/query-B_BcLKlb.js +2 -0
- package/dist/client/assets/{radar-RG4KPBEZ-BnTV8utT.js → radar-RG4KPBEZ-Dygcuho2.js} +1 -1
- package/dist/client/assets/{radio-group-DhpPG5HP.js → radio-group-ESEwcJva.js} +2 -2
- package/dist/client/assets/{railroad-74A4TZTK-nxEBKbUo.js → railroad-74A4TZTK-CK7b6dqk.js} +1 -1
- package/dist/client/assets/railroad-abnf-HS5TGJTU-Bn3ASlRb.js +1 -0
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-DpIqYG5o.js +1 -0
- package/dist/client/assets/railroad-peg-WCYAUIDC-9vGlAMJk.js +1 -0
- package/dist/client/assets/{railroadDiagram-O6MQD6OU-DFdlMVKn.js → railroadDiagram-O6MQD6OU-DsiQNHoT.js} +2 -2
- package/dist/client/assets/{renderScheduler-DWKKtxcJ.js → renderScheduler-DwOi4uKZ.js} +2 -2
- package/dist/client/assets/{requirementDiagram-BXWQKSXE-BW8o0F_p.js → requirementDiagram-BXWQKSXE-DUEtMGYN.js} +2 -2
- package/dist/client/assets/{rightPanelStore-CQ94819A.js → rightPanelStore-BWYBRVeP.js} +2 -2
- package/dist/client/assets/rotate-ccw-BSwk8mHM.js +1 -0
- package/dist/client/assets/rotate-cw-BsgLwrfv.js +1 -0
- package/dist/client/assets/runtime-CBB2It1x.js +6 -0
- package/dist/client/assets/runtime-Dydpcwo9.js +2 -0
- package/dist/client/assets/{sankeyDiagram-P5KCCOFB-JA6FB6i0.js → sankeyDiagram-P5KCCOFB-Bnb7-uIo.js} +2 -2
- package/dist/client/assets/{scheduledTasksSettings.logic-C_AdQNVz.js → scheduledTasksSettings.logic-CFyLLJ0-.js} +3 -3
- package/dist/client/assets/{scroll-area-BYyfw-9F.js → scroll-area-iMm_YXqJ.js} +2 -2
- package/dist/client/assets/{select-CjGEfXy_.js → select-cvR_zMkG.js} +2 -2
- package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DgBrrcVR.js → sequenceDiagram-WJ2MYXX4-BKHWFnq6.js} +2 -2
- package/dist/client/assets/server-FMafPUns.js +2 -0
- package/dist/client/assets/session-BI6WO3-p.js +2 -0
- package/dist/client/assets/{session-logic-l1juLk9v.js → session-logic-DVvClfzW.js} +5 -5
- package/dist/client/assets/settings-2-BbyXH0uI.js +1 -0
- package/dist/client/assets/settings-DRKdVCbB.js +1 -0
- package/dist/client/assets/{settings-xKzLy5aw.js → settings-Dzr6EHna.js} +2 -2
- package/dist/client/assets/settings.appearance-Dcbf4cgV.js +2 -0
- package/dist/client/assets/settings.archived-BI9u9Y07.js +2 -0
- package/dist/client/assets/{settings.computer-use-DZu90DiM.js → settings.computer-use-CE8rpPYM.js} +2 -2
- package/dist/client/assets/settings.connections-BWLCI5Zi.js +2 -0
- package/dist/client/assets/{settings.data-controls-CBrcsSvm.js → settings.data-controls-CmJZj_HT.js} +2 -2
- package/dist/client/assets/{settings.decisions-CGz9znLs.js → settings.decisions-Bm-M9k3t.js} +2 -2
- package/dist/client/assets/{settings.diagnostics-DKkOOzoq.js → settings.diagnostics-ao6ZzXXw.js} +2 -2
- package/dist/client/assets/settings.general-BoU897Dm.js +2 -0
- package/dist/client/assets/{settings.integrations-K3Jwfkyd.js → settings.integrations-ChLDKsIY.js} +2 -2
- package/dist/client/assets/{settings.keybindings-BbR3qnVs.js → settings.keybindings-BSg3FHQZ.js} +2 -2
- package/dist/client/assets/{settings.open-source-licenses-Mh-zg97k.js → settings.open-source-licenses-B4sC68Ud.js} +2 -2
- package/dist/client/assets/settings.plugins-CGUFRhFY.js +5 -0
- package/dist/client/assets/{settings.projects-BahZsoyx.js → settings.projects-V3nNBIzc.js} +4 -4
- package/dist/client/assets/settings.providers-D1BgocCC.js +3 -0
- package/dist/client/assets/settings.scheduled-tasks-C-I22teI.js +2 -0
- package/dist/client/assets/{settings.snap-shot-Bs_DZS7D.js → settings.snap-shot-aum1tmsR.js} +2 -2
- package/dist/client/assets/{settings.source-control-Akrp_mGm.js → settings.source-control-8YMYuva4.js} +2 -2
- package/dist/client/assets/{settings.storage-fl2BN0Cu.js → settings.storage-e3yKBYeM.js} +2 -2
- package/dist/client/assets/settingsLayout-BUbXPq57.js +3 -0
- package/dist/client/assets/shield-check-CG2tOYd1.js +1 -0
- package/dist/client/assets/shield-question-mark-Mk3rAYhm.js +1 -0
- package/dist/client/assets/{sidebar-MBwCdIpv.js → sidebar-CjtIIYSY.js} +2 -2
- package/dist/client/assets/{sidebarProjectGrouping-Sm7y9bd1.js → sidebarProjectGrouping-BmTLes3y.js} +2 -2
- package/dist/client/assets/{skeleton-CS8ffFVv.js → skeleton-DzaiJbx8.js} +2 -2
- package/dist/client/assets/{sortable.esm-CwrTFe-B.js → sortable.esm-Df_JB8i3.js} +2 -2
- package/dist/client/assets/{sourceControl-DyHbbOxl.js → sourceControl-BfGzu06x.js} +2 -2
- package/dist/client/assets/{spinner-B7a-VUeR.js → spinner-RAU9Cg6j.js} +2 -2
- package/dist/client/assets/square-pen-BuwM-DT0.js +1 -0
- package/dist/client/assets/{standalone-page-DTvNMgJy.js → standalone-page-Bsaqnigq.js} +2 -2
- package/dist/client/assets/{stateDiagram-D77RDMKH-gHEAo7xC.js → stateDiagram-D77RDMKH-BhdX_IDZ.js} +2 -2
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-Ba0Qofsh.js +2 -0
- package/dist/client/assets/{swimlanes-42K2YHIH-_qZ90QGb.js → swimlanes-42K2YHIH-T7QLMavY.js} +2 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-C9WqWw-N.js +9 -0
- package/dist/client/assets/{terminal-links-Dc2HX7Ov.js → terminal-links-B9s8s-tz.js} +2 -2
- package/dist/client/assets/{terminalSessions-DK9WKgga.js → terminalSessions-BmqpP0Ss.js} +2 -2
- package/dist/client/assets/text-search-DyMq-QgY.js +1 -0
- package/dist/client/assets/{textarea-CYXHTTG6.js → textarea-C9YeXMVc.js} +2 -2
- package/dist/client/assets/{themePalette-zVYGoviO.js → themePalette-C1oD3Oeg.js} +3 -3
- package/dist/client/assets/threadSort-C4CtIL5v.js +2 -0
- package/dist/client/assets/{timeline-definition-24CTP7MA-BxWmcZQs.js → timeline-definition-24CTP7MA-Dnja29q2.js} +2 -2
- package/dist/client/assets/toast-DEgXlTR7.js +2 -0
- package/dist/client/assets/{toggle-fk33ppsB.js → toggle-CNbzG8Ec.js} +2 -2
- package/dist/client/assets/{toggle-group-W0bDGcPB.js → toggle-group-DIqmqqKQ.js} +2 -2
- package/dist/client/assets/tooltip-DyiHlEs0.js +2 -0
- package/dist/client/assets/{treeView-Q6P3EWNA-BsPhq-Fl.js → treeView-Q6P3EWNA-KHtw7wMC.js} +1 -1
- package/dist/client/assets/{treemap-WGGIJYW6-DZ3fnU-o.js → treemap-WGGIJYW6-BZN3U17E.js} +1 -1
- package/dist/client/assets/{usage-DlNazxzV.js → usage--nsoWaqi.js} +2 -2
- package/dist/client/assets/{usageAccess-Mp1Nbm2r.js → usageAccess-Dwz13Eun.js} +2 -2
- package/dist/client/assets/{usageFormat-ZiOrCBxk.js → usageFormat-Z0lz-RCF.js} +2 -2
- package/dist/client/assets/{usageShortcuts-Be5hddhr.js → usageShortcuts-cwv5i-oF.js} +2 -2
- package/dist/client/assets/use-atom-command-BVrZ0hTO.js +2 -0
- package/dist/client/assets/{useAriaLabelledBy-D-n0SDV6.js → useAriaLabelledBy-z3tVAFR_.js} +2 -2
- package/dist/client/assets/{useHandleNewThread-BQ5wqZab.js → useHandleNewThread-lAV5NpwQ.js} +2 -2
- package/dist/client/assets/{useLocation-BN5q7LjL.js → useLocation-CxFbcar1.js} +2 -2
- package/dist/client/assets/useNavigate-CLQYZa7I.js +2 -0
- package/dist/client/assets/{useNavigateBack-BWhsiBJ5.js → useNavigateBack-91jfuRCn.js} +2 -2
- package/dist/client/assets/{useParams-DQgx0pmy.js → useParams-nxAoxVO6.js} +2 -2
- package/dist/client/assets/{usePermissionStatus-FtemMvNg.js → usePermissionStatus-CVCguZPP.js} +2 -2
- package/dist/client/assets/{usePullRequestActions-D97OVSkM.js → usePullRequestActions-Cp-f2-rS.js} +3 -3
- package/dist/client/assets/{useRegisterFieldControl-KOnbOVnX.js → useRegisterFieldControl-hMeYQdpT.js} +2 -2
- package/dist/client/assets/useScopedModelAvailability-1rkaoEPh.js +2 -0
- package/dist/client/assets/useSettings-BCUX_14n.js +3 -0
- package/dist/client/assets/{useT3ConnectAuthPrompt-CPGDAWRk.js → useT3ConnectAuthPrompt-B1AHMyDF.js} +2 -2
- package/dist/client/assets/{utils-BxISc9RR.js → utils-Cbsb1ks0.js} +5 -5
- package/dist/client/assets/vcsRefInvalidation-DMlloB2h.js +2 -0
- package/dist/client/assets/{vennDiagram-4TSXK5OY-BnH-hzBf.js → vennDiagram-4TSXK5OY-B4KHYxz_.js} +2 -2
- package/dist/client/assets/{wardley-WFR3VGLG-BbiFWq4f.js → wardley-WFR3VGLG-EUhzOM0w.js} +1 -1
- package/dist/client/assets/{wardleyDiagram-VM6X3IG4-DPf4ISf5.js → wardleyDiagram-VM6X3IG4-25okiPRC.js} +2 -2
- package/dist/client/assets/{welcome-DjYohRu3.js → welcome-pBX3QtZq.js} +2 -2
- package/dist/client/assets/{xychartDiagram-S5SC5T6Z-oaZh5sFY.js → xychartDiagram-S5SC5T6Z-Dyo2i7yf.js} +2 -2
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ChatGptUsageButton-BWTEbaUC.js +0 -2
- package/dist/client/assets/ChatMarkdown-C6UsXjP9.js +0 -65
- package/dist/client/assets/DiffPanel-0HWHkPjD.js +0 -2
- package/dist/client/assets/ProjectDefaultsSettings-Bqo3T1SR.js +0 -2
- package/dist/client/assets/ProjectIconPickerDialog-Cx-QcJLy.js +0 -2
- package/dist/client/assets/ScheduledTasksSettings-D_Z_3GVl.js +0 -4
- package/dist/client/assets/ScopedSwitch-B8wdvttG.js +0 -2
- package/dist/client/assets/_chat-oHhtDqeh.js +0 -45
- package/dist/client/assets/_chat.new-COSURrfS.js +0 -4
- package/dist/client/assets/architecture-7GRP2DOG-BMFS-mJW.js +0 -1
- package/dist/client/assets/arrow-left-BFquhiaO.js +0 -1
- package/dist/client/assets/arrow-right-DiV8cYUQ.js +0 -1
- package/dist/client/assets/arrow-up-down-BDQTjPr1.js +0 -1
- package/dist/client/assets/assets-CRmNKuHc.js +0 -2
- package/dist/client/assets/bell-BvJp3v99.js +0 -1
- package/dist/client/assets/blocks-NuR9qdGl.js +0 -1
- package/dist/client/assets/bot-mvw1ddnU.js +0 -1
- package/dist/client/assets/calendar-clock-CuvWKWXS.js +0 -1
- package/dist/client/assets/channel-Cf2J77rP.js +0 -2
- package/dist/client/assets/chart-no-axes-column-Hfs9TSWj.js +0 -1
- package/dist/client/assets/checkbox-BHsP70Vt.js +0 -2
- package/dist/client/assets/classDiagram-ZZMXUADV-D9m4giYc.js +0 -2
- package/dist/client/assets/classDiagram-v2-VYDZK3BY-D9m4giYc.js +0 -2
- package/dist/client/assets/corner-left-up-DedXC9IG.js +0 -1
- package/dist/client/assets/device-DhvzgETq.js +0 -2
- package/dist/client/assets/download-CUcdw53T.js +0 -1
- package/dist/client/assets/dynamic-tF-2a8Zt.js +0 -3
- package/dist/client/assets/earth-BqADiov-.js +0 -1
- package/dist/client/assets/ellipsis-BUF_4-Z7.js +0 -1
- package/dist/client/assets/entities-DqhRur25.js +0 -2
- package/dist/client/assets/eventmodeling-NTZA5JFV-CHuv5_8f.js +0 -1
- package/dist/client/assets/eye-C8OhITrC.js +0 -1
- package/dist/client/assets/file-search-ComEiFQ8.js +0 -1
- package/dist/client/assets/flowDiagram-HODETNUW-wmC7eeQc.js +0 -1
- package/dist/client/assets/folder-git-2-COyuVTXA.js +0 -1
- package/dist/client/assets/folder-open-DZzz50kK.js +0 -1
- package/dist/client/assets/folder-plus-BzJT8jXs.js +0 -1
- package/dist/client/assets/git-branch-CCzcdr93.js +0 -1
- package/dist/client/assets/grip-vertical-COceJQZo.js +0 -1
- package/dist/client/assets/hard-drive-BKLzbeTS.js +0 -1
- package/dist/client/assets/history-CAAEfWkp.js +0 -1
- package/dist/client/assets/house-U4txgvXa.js +0 -1
- package/dist/client/assets/index-D_uSeco8.js +0 -3
- package/dist/client/assets/keyboard-kgy5M4lo.js +0 -1
- package/dist/client/assets/link-C1k5F8-V.js +0 -1
- package/dist/client/assets/list-CU7BIfIS.js +0 -1
- package/dist/client/assets/loader-CRsWQXUs.js +0 -2
- package/dist/client/assets/main-BsiZpg85.css +0 -2
- package/dist/client/assets/main-uLg3xUJM.js +0 -30
- package/dist/client/assets/message-circle-question-mark-wTwD9xwk.js +0 -1
- package/dist/client/assets/message-square-dashed-Hcy2Q2EP.js +0 -1
- package/dist/client/assets/message-square-lCzwndCW.js +0 -1
- package/dist/client/assets/mouse-pointer-2-BFFAEWXU.js +0 -1
- package/dist/client/assets/number-field-pAaF-e0N.js +0 -2
- package/dist/client/assets/palette-BkpHEJXn.js +0 -1
- package/dist/client/assets/panel-left-DNz3ps89.js +0 -1
- package/dist/client/assets/panels-top-left-bKuZF4FX.js +0 -1
- package/dist/client/assets/primary-DOpcfgLH.js +0 -2
- package/dist/client/assets/primaryCloudLinkState-Dulej3bP.js +0 -2
- package/dist/client/assets/projectFilesQueryState-C1crs3C8.js +0 -2
- package/dist/client/assets/projectScriptEditor-ku2tGeKq.js +0 -2
- package/dist/client/assets/pullRequests-BQ9KruZm.js +0 -2
- package/dist/client/assets/puzzle-wfhgUaHl.js +0 -1
- package/dist/client/assets/queries-CEjFwxVW.js +0 -2
- package/dist/client/assets/query-D5pQUQvZ.js +0 -2
- package/dist/client/assets/railroad-abnf-HS5TGJTU-bDIjPMME.js +0 -1
- package/dist/client/assets/railroad-ebnf-LZEXJU2U-BREFlihg.js +0 -1
- package/dist/client/assets/railroad-peg-WCYAUIDC-B0hEZefb.js +0 -1
- package/dist/client/assets/rotate-ccw-CkpQmcC5.js +0 -1
- package/dist/client/assets/rotate-cw-BAiACGtX.js +0 -1
- package/dist/client/assets/runtime-Bsb2I_n2.js +0 -2
- package/dist/client/assets/runtime-DkYxB4ri.js +0 -6
- package/dist/client/assets/server-BYntb2dN.js +0 -2
- package/dist/client/assets/session-eLrubJEW.js +0 -2
- package/dist/client/assets/settings-2-CDBTJPBs.js +0 -1
- package/dist/client/assets/settings-DDvSs7LG.js +0 -1
- package/dist/client/assets/settings.appearance-CEA3GKAa.js +0 -2
- package/dist/client/assets/settings.archived-DPWjmD2l.js +0 -2
- package/dist/client/assets/settings.connections-BKWbsMUk.js +0 -2
- package/dist/client/assets/settings.general-CoPWyKC4.js +0 -2
- package/dist/client/assets/settings.plugins-BI68kAsM.js +0 -5
- package/dist/client/assets/settings.providers-Dsnq0-AL.js +0 -3
- package/dist/client/assets/settings.scheduled-tasks-BOpVl_XK.js +0 -2
- package/dist/client/assets/settingsLayout-DV36_Jgq.js +0 -3
- package/dist/client/assets/shield-check-yRjvgn4y.js +0 -1
- package/dist/client/assets/shield-question-mark-DyVUewRO.js +0 -1
- package/dist/client/assets/square-pen-BrE59gWn.js +0 -1
- package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CGT21P8W.js +0 -2
- package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D9Ttx7dQ.js +0 -9
- package/dist/client/assets/text-search-CFbEY3qo.js +0 -1
- package/dist/client/assets/threadSort-Byzu7B1A.js +0 -2
- package/dist/client/assets/toast-BX9uiMAh.js +0 -2
- package/dist/client/assets/tooltip-B0rhqi5b.js +0 -2
- package/dist/client/assets/use-atom-command-RgcuqzP9.js +0 -2
- package/dist/client/assets/useNavigate-CDvr3Yvg.js +0 -2
- package/dist/client/assets/useScopedModelAvailability-BTR7tHpB.js +0 -2
- package/dist/client/assets/useSettings-BIggY3j1.js +0 -3
- package/dist/client/assets/vcsRefInvalidation-h_E9Figo.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-oBChb5qS.js";import{$ as n,b as r,et as i,f as a,k as o,nt as s,x as c,z as l}from"./chunk-DU6HZSFF-
|
|
1
|
+
import{n as e}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as t}from"./src-oBChb5qS.js";import{$ as n,b as r,et as i,f as a,k as o,nt as s,x as c,z as l}from"./chunk-DU6HZSFF-C3RStRBi.js";import"./chunk-75Z2AOVW-CUqo_4ua.js";import"./chunk-PWAF6VOD-BPIKFLCK.js";import"./chunk-GMAD6QVW-qBcSdTWV.js";import"./chunk-P2QGCYS3-DDmmXS6G.js";import"./chunk-4HAMMTFA-_7K6yngz.js";import"./chunk-GVQU2GXP-D8rhGQK_.js";import"./chunk-OSK3NFVY-BEgD3sGZ.js";import{t as u}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as d}from"./chunk-POPQ4Y6H-CefHvRtI.js";import"./chunk-L3NEJ4N5-DnCelWBi.js";import{d as f,u as p}from"./mermaid.core-DWtHy2iz.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g=new Uint8Array(16);function _(){return crypto.getRandomValues(g)}function v(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():y(e,t,n)}function y(e,t,n){e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var b=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])}}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(l,[2,3]),{1:[2,2]},t(l,[2,4]),t(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},t(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),t(p,[2,18]),t(p,[2,19]),t(p,[2,20]),t(p,[2,21]),t(p,[2,23]),t(p,[2,24]),t(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},t(m,[2,14],{7:h,11:g}),t(_,[2,8]),t(_,[2,9]),t(_,[2,10]),t(p,[2,15]),t(p,[2,16]),t(p,[2,17]),{20:[1,35]},{21:[1,36]},t(m,[2,13],{7:h,11:g}),t(_,[2,11]),t(_,[2,12]),{21:[1,37]},t(p,[2,25]),t(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
|
|
2
2
|
`+h.showPosition()+`
|
|
3
3
|
Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|
|
@@ -94,4 +94,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
|
|
|
94
94
|
}
|
|
95
95
|
${e.useGradient&&n&&e.mainBkg?D(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
|
|
96
96
|
`},`getStyles`)};export{O as diagram};
|
|
97
|
-
//# sourceMappingURL=mindmap-definition-YA3MSWOX-
|
|
97
|
+
//# sourceMappingURL=mindmap-definition-YA3MSWOX-DCzTD1Gd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{vo as e,yo as t}from"./main-D1oD2GPo.js";export{t as __iconNode,e as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ea as n,Ga as r,Ha as i,Ji as a,Ka as o,Ki as s,La as c,Ln as l,Mx as u,Nn as d,Oa as f,Pa as p,Pn as m,Ua as h,Wa as g,Ya as _,Yi as v,Za as y,Zi as b,_a as x,_o as S,aa as ee,do as C,ea as te,ga as w,gr as T,ha as E,ja as D,ka as O,ma as k,oa as A,qi as ne,sa as j,t as M,vo as N,wa as P,yo as F,zn as re}from"./utils-Cbsb1ks0.js";import{t as ie}from"./minus-C7W28oE7.js";import{t as ae}from"./plus-Cr075-cy.js";import{t as oe}from"./useRegisterFieldControl-hMeYQdpT.js";import{t as se}from"./FormContext-CObkgUvS.js";import{a as ce}from"./CSPContext-CTpTfAqS.js";var I=e(t());function le(){let[,e]=I.useState({});return I.useCallback(()=>{e({})},[])}var ue=I.createContext(void 0);function de(){let e=I.useContext(ue);if(e===void 0)throw Error(F(43));return e}var L={inputValue:()=>null,value:()=>null,...re},fe=new Map;function R(e,t){let n=JSON.stringify({locale:e,options:t}),r=fe.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return fe.set(n,i),i}function z(e,t,n){return e==null?``:R(t,n).format(e)}function pe(e,t,n){return z(e,t,{...n,maximumFractionDigits:20})}var B=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],me={零:`0`,〇:`0`,一:`1`,二:`2`,三:`3`,四:`4`,五:`5`,六:`6`,七:`7`,八:`8`,九:`9`},he=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],V=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],H=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],ge=[`%`,`٪`,`%`,`﹪`],_e=[`‰`,`؉`],ve=[`−`,`-`,`‒`,`–`,`—`,`﹣`],U=[`+`,`﹢`],ye=RegExp(`[${he.join(``)}]`,`g`),W=RegExp(`[${V.join(``)}]`,`g`),be=RegExp(`[${H.join(``)}]`,`g`),xe=RegExp(`[${B.join(``)}]`,`g`),G=RegExp(`[${ge.join(``)}]`),K=RegExp(`[${_e.join(``)}]`),Se=/[٠١٢٣٤٥٦٧٨٩]/,Ce=/[۰۱۲۳۴۵۶۷۸۹]/,we=/[零〇一二三四五六七八九]/,Te=RegExp(`[${H.join(``)}]`),Ee=[`.`,`,`,`.`,`,`,`٫`,`٬`],De=/\p{Zs}/u,Oe=[`+`,...U],ke=[`-`,...ve],q=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),Ae=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),je=e=>`[${e.map(Ae).join(``)}]`,Me=je([`-`].concat(ve)),Ne=je([`+`].concat(U)),Pe=new RegExp(Me,`gu`),J=new RegExp(Ne,`gu`),Y=new RegExp(Me),X=new RegExp(Ne);function Fe(e,t){let n=R(e,t).formatToParts(11111.1),r={};return n.forEach(e=>{r[e.type]=e.value}),R(e).formatToParts(.1).forEach(e=>{e.type===`decimal`&&(r[e.type]=e.value)}),r}function Z(e,t,n){if(e==null)return null;let r=String(e).replace(/\p{Cf}/gu,``).trim();r=r.replace(Pe,`-`).replace(J,`+`);let i=!1,a=r.match(/([+-])\s*$/);a&&(a[1]===`-`&&(i=!0),r=r.replace(/([+-])\s*$/,``));let o=r.match(/^\s*([+-])/);o&&(o[1]===`-`&&(i=!0),r=r.replace(/^\s*[+-]/,``));let s=t;s===void 0&&(Se.test(r)||Ce.test(r)?s=`ar`:we.test(r)&&(s=`zh`));let{group:c,decimal:l,currency:u}=Fe(s,n),d=R(s,n).formatToParts(1).filter(e=>e.type===`unit`).map(e=>q(e.value)),f=d.length?new RegExp(d.join(`|`),`g`):null,p=null;c&&(p=/\p{Zs}/u.test(c)?/\p{Zs}/gu:c===`'`||c===`’`?/['’]/g:new RegExp(q(c),`g`));let m=[{regex:c?p:null,replacement:``},{regex:l?new RegExp(q(l),`g`):null,replacement:`.`},{regex:/./g,replacement:`.`},{regex:/,/g,replacement:``},{regex:/٫/g,replacement:`.`},{regex:/٬/g,replacement:``},{regex:u?new RegExp(q(u),`g`):null,replacement:``},{regex:f,replacement:``},{regex:ye,replacement:e=>String(he.indexOf(e))},{regex:W,replacement:e=>String(V.indexOf(e))},{regex:be,replacement:e=>String(H.indexOf(e))},{regex:xe,replacement:e=>me[e]}].reduce((e,{regex:t,replacement:n})=>t?e.replace(t,n):e,r),h=m.lastIndexOf(`.`);if(h!==-1&&(m=`${m.slice(0,h).replace(/\./g,``)}.${m.slice(h+1).replace(/\./g,``)}`),/^[-+]?Infinity$/i.test(r)||/[∞]/.test(r))return null;let g=(i?`-`:``)+m,_=parseFloat(g),v=n?.style,y=v===`unit`&&n?.unit===`percent`,b=G.test(e)||v===`percent`;return K.test(e)?_/=1e3:!y&&b&&(_/=100),Number.isNaN(_)?null:_}var Ie=1e-10;function Le(e){let t=R(`en-US`).resolvedOptions(),n=e?.minimumFractionDigits??t.minimumFractionDigits??0;return{maximumFractionDigits:Math.max(e?.maximumFractionDigits??t.maximumFractionDigits??20,n),minimumFractionDigits:n}}function Re(e,t){if(!Number.isFinite(e))return e;let n=Math.min(Math.max(t,0),20);return Number(e.toFixed(n))}function Q(e,t){let{maximumFractionDigits:n}=Le(t);return Re(e,n)}function ze(e,t,n,r=`directional`){if(n===0)return e;let i=Math.abs(n),a=Math.sign(n),o=i*Ie*a,s=r===`nearest`?n:i,c=(e-t+o)/s,l;return l=r===`nearest`?Math.round(c):a>0?Math.floor(c):Math.ceil(c),t+l*(r===`nearest`?n:i)}function Be(e,{step:t,minWithDefault:n,maxWithDefault:r,minWithZeroDefault:i,format:a,snapOnStep:o,small:s,clamp:c}){if(e===null)return e;let l=c?ce(e,n,r):e;if(t!=null&&o){if(t===0)return Q(l,a);let e=i;return!s&&n!==-(2**53-1)&&(e=n),Q(ze(l,e,t,s?`nearest`:`directional`),a)}return Q(l,a)}var $=e(E()),Ve=I.forwardRef(function(e,t){let{id:n,min:r,max:i,smallStep:o=.1,step:c=1,largeStep:u=10,required:m=!1,disabled:h=!1,readOnly:g=!1,form:_,name:x,defaultValue:ee,value:T,onValueChange:E,onValueCommitted:D,allowWheelScrub:k=!1,snapOnStep:A=!1,allowOutOfRange:j=!1,format:M,locale:N,render:F,className:re,inputRef:ie,style:ae,...oe}=e,{setDirty:se,validityData:ce,disabled:de,setFilled:fe,invalid:R,name:pe,state:B,validation:me,shouldValidateOnChange:he}=l(),V=de||h,H=pe??x,ve=c===`any`?1:c,[U,ye]=I.useState(!1),W=r??-(2**53-1),be=i??2**53-1,xe=r??0,G=M?.style,K=I.useRef(null),Se=S(ie,me.inputRef),Ce=d({id:n}),[we,Te]=p({controlled:T,default:ee,name:`NumberField`,state:`value`}),q=we??null,Ae=v(q);f(()=>{fe(q!==null)},[fe,q]);let je=le(),Me=v(M),Ne=I.useRef(!1),Pe=O((e,t)=>{Ne.current=!1,D?.(e,t)}),J=I.useRef(!0),Y=I.useRef(null),[X,Z]=I.useState(()=>T===void 0?z(q,N,M):He(q,N,M)),[Ie,Le]=I.useState(`numeric`),Re=O(()=>{let{decimal:e,group:t,currency:n,literal:r}=Fe(N,M),i=new Set;Ee.forEach(e=>i.add(e)),e&&i.add(e),t&&(i.add(t),De.test(t)&&i.add(` `));let a=G===`percent`||G===`unit`&&M?.unit===`percent`,o=G===`percent`||G===`unit`&&M?.unit===`permille`;return a&&ge.forEach(e=>i.add(e)),o&&_e.forEach(e=>i.add(e)),G===`currency`&&n&&i.add(n),r&&(Array.from(r).forEach(e=>i.add(e)),De.test(r)&&i.add(` `)),Oe.forEach(e=>i.add(e)),W<0&&ke.forEach(e=>i.add(e)),i}),Q=O(e=>e?.altKey?o:e?.shiftKey?u:ve),ze=O((e,t)=>{let n=t.event,r=t.direction,i=t.reason,a=!j||i!==`input-change`&&i!==`input-blur`&&i!==`input-paste`&&i!==`input-clear`&&i!==`none`,o=Be(e,{step:r?Q(n)*r:void 0,format:Me.current,minWithDefault:W,maxWithDefault:be,minWithZeroDefault:xe,snapOnStep:A,small:n?.altKey??!1,clamp:a}),s=t.reason===`input-change`||t.reason===`input-clear`||t.reason===`input-blur`||t.reason===`input-paste`||t.reason===`none`,c=o!==q||s&&(e!==q||J.current===!1);if(c){if(Y.current=o,E?.(o,t),t.isCanceled)return c;Te(o),se(o!==ce.initialValue),Ne.current=!0}return J.current&&Z(z(o,N,M)),je(),c}),Ve=O((e,{direction:t,currentValue:n,event:i,reason:a})=>{let o=n??Ae.current,s=typeof o==`number`?o+e*t:Math.max(0,r??0);return ze(s,w(a,i,void 0,{direction:t}))});f(function(){if(!J.current)return;let e=T===void 0?z(q,N,M):He(q,N,M);e!==X&&Z(e)}),f(function(){if(!P)return;let e=`text`;W>=0&&(e=`decimal`),Le(e)},[W,G]),I.useEffect(function(){let e=K.current;if(V||g||!k||!e)return;function t(e){if(e.ctrlKey||te(a(K.current))!==K.current)return;e.preventDefault(),J.current=!0;let t=Q(e)??1;Ve(t,{direction:e.deltaY>0?-1:1,event:e,reason:`wheel`})}return b(e,`wheel`,t)},[k,Ve,V,g,Q]);let Ue=I.useMemo(()=>({...B,disabled:V,readOnly:g,required:m,value:q,inputValue:X,scrubbing:U}),[B,V,g,m,q,X,U]),We=I.useMemo(()=>({inputRef:K,inputValue:X,value:q,minWithDefault:W,maxWithDefault:be,disabled:V,readOnly:g,id:Ce,setValue:ze,incrementValue:Ve,getStepAmount:Q,allowInputSyncRef:J,formatOptionsRef:Me,valueRef:Ae,lastChangedValueRef:Y,hasPendingCommitRef:Ne,name:H,required:m,invalid:R,inputMode:Ie,getAllowedNonNumericKeys:Re,min:r,max:i,setInputValue:Z,locale:N,isScrubbing:U,setIsScrubbing:ye,state:Ue,onValueCommitted:Pe}),[K,X,q,W,be,V,g,Ce,ze,Ve,Q,Me,Ae,H,m,R,Ie,Re,r,i,Z,N,U,Ue,Pe]),Ge=C(`div`,e,{ref:t,state:Ue,props:oe,stateAttributesMapping:L});return(0,$.jsxs)(ue.Provider,{value:We,children:[Ge,(0,$.jsx)(`input`,{...me.getInputValidationProps({onFocus(){K.current?.focus()},onChange(e){if(e.nativeEvent.defaultPrevented||V||g){e.preventBaseUIHandler?.();return}let t=e.currentTarget.valueAsNumber,n=Number.isNaN(t)?null:t,r=w(y,e.nativeEvent);se(n!==ce.initialValue),ze(n,r),he()&&me.commit(n)}}),ref:Se,type:`number`,form:_,name:H,value:q??``,min:r,max:i,step:c,disabled:V,required:m,"aria-hidden":!0,tabIndex:-1,style:H?ne:s,suppressHydrationWarning:!0})]})});function He(e,t,n){return n?.maximumFractionDigits!=null||n?.minimumFractionDigits!=null?z(e,t,n):pe(e,t,n)}var Ue=I.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{state:o}=de();return C(`div`,e,{ref:t,state:o,props:[{role:`group`},a],stateAttributesMapping:L})}),We=0,Ge=class e extends A{static create(){return new e}start(e,t){this.clear(),this.currentId=setInterval(()=>{t()},e)}clear=()=>{this.currentId!==We&&(clearInterval(this.currentId),this.currentId=We)}};function Ke(){let e=N(Ge.create).current;return k(e.disposeEffect),e}var qe=60,Je=400,Ye=8,Xe=50,Ze=3;function Qe(e){return e===`touch`||e===`pen`}function $e(e){let{disabled:t,readOnly:n=!1,tick:r,onStop:i,tickDelay:a=qe,startDelay:o=Je,scrollDistance:s=Ye,elementRef:c}=e,l=j(),u=Ke(),d=j(),f=I.useRef(!1),p=I.useRef(0),m=I.useRef({x:0,y:0}),h=I.useRef(!1),g=I.useRef(!1),_=I.useRef(``),v=I.useRef(()=>{}),y=O(()=>{d.clear(),l.clear(),u.clear(),v.current(),p.current=0});function x(e){y();let t=c.current;if(!t)return;let n=D(t);function s(e){e.preventDefault()}if(v.current=b(n,`contextmenu`,s),b(n,`pointerup`,e=>{f.current=!1,y(),i?.(e)},{once:!0}),!r(e)){y();return}l.start(o,()=>{u.start(a,()=>{r(e)||y()})})}return I.useEffect(()=>()=>y(),[y]),{pointerHandlers:{onTouchStart(){h.current=!0},onTouchEnd(){h.current=!1},onPointerDown(e){let r=!e.button||e.button===0;e.defaultPrevented||!r||t||n||(_.current=e.pointerType,g.current=!1,f.current=!0,m.current={x:e.clientX,y:e.clientY},Qe(e.pointerType)?d.start(Xe,()=>{let t=p.current;p.current=0,f.current&&t<Ze?(x(e.nativeEvent),g.current=!0):(g.current=!1,y())}):(e.preventDefault(),x(e.nativeEvent)))},onPointerUp(e){Qe(e.pointerType)&&(f.current=!1)},onPointerMove(e){if(t||n||!Qe(e.pointerType)||!f.current)return;p.current!=null&&(p.current+=1);let{x:r,y:i}=m.current,a=r-e.clientX,o=i-e.clientY;a**2+o**2>s**2&&y()},onMouseEnter(e){e.defaultPrevented||t||n||!f.current||h.current||Qe(_.current)||x(e.nativeEvent)},onMouseLeave(){h.current||y()},onMouseUp(){h.current||y()}},shouldSkipClick:O(e=>e.defaultPrevented?!0:Qe(_.current)?g.current:e.detail!==0)}}function et(e){return e===`touch`||e===`pen`}function tt(e){let{allowInputSyncRef:t,disabled:n,formatOptionsRef:r,getStepAmount:a,id:o,incrementValue:s,inputRef:l,inputValue:u,isIncrement:d,locale:f,readOnly:p,setValue:m,valueRef:h,lastChangedValueRef:g,onValueCommitted:_}=e,v=d?i:c;function y(e){t.current=!0;let n=Z(u,f,r.current);n!==null&&(h.current=n,m(n,w(v,e,void 0,{direction:d?1:-1})))}let{pointerHandlers:b,shouldSkipClick:S}=$e({disabled:n||p,elementRef:l,tickDelay:60,startDelay:400,scrollDistance:8,tick(e){let t=a(e)??1;return s(t,{direction:d?1:-1,event:e,reason:v})},onStop(e){let t=g.current??h.current;_(t,x(v,e))}});return{disabled:n,"aria-readonly":p||void 0,"aria-label":d?`Increase`:`Decrease`,"aria-controls":o,tabIndex:-1,style:{WebkitUserSelect:`none`,userSelect:`none`},...b,onClick(e){let t=n||p;if(e.defaultPrevented||t||S(e))return;y(e.nativeEvent);let r=a(e)??1,i=h.current;s(r,{direction:d?1:-1,event:e.nativeEvent,reason:v});let o=g.current??h.current;o!==i&&_(o,x(v,e.nativeEvent))},onPointerDown(e){let t=!e.button||e.button===0;e.defaultPrevented||p||!t||n||(y(e.nativeEvent),et(e.pointerType)||l.current?.focus(),b.onPointerDown(e))}}}var nt=I.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,locale:_,maxWithDefault:v,readOnly:y,setValue:b,state:x,value:S,valueRef:ee,lastChangedValueRef:te,onValueCommitted:w}=de(),T=a||u||S!=null&&S>=v,E=tt({isIncrement:!0,inputRef:h,inputValue:g,disabled:T,readOnly:y,id:p,setValue:b,getStepAmount:f,incrementValue:m,allowInputSyncRef:l,formatOptionsRef:d,valueRef:ee,locale:_,lastChangedValueRef:te,onValueCommitted:w}),{getButtonProps:D,buttonRef:O}=n({disabled:T,native:o,focusableWhenDisabled:!0}),k=I.useMemo(()=>({...x,disabled:T}),[x,T]);return C(`button`,e,{ref:[t,O],state:k,props:[E,c,D],stateAttributesMapping:L})}),rt=I.forwardRef(function(e,t){let{render:r,className:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{allowInputSyncRef:l,disabled:u,formatOptionsRef:d,getStepAmount:f,id:p,incrementValue:m,inputRef:h,inputValue:g,minWithDefault:_,readOnly:v,setValue:y,state:b,value:x,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:w}=de(),T=a||u||x!=null&&x<=_,E=tt({isIncrement:!1,inputRef:h,inputValue:g,disabled:T,readOnly:v,id:p,setValue:y,getStepAmount:f,incrementValue:m,allowInputSyncRef:l,formatOptionsRef:d,valueRef:S,locale:ee,lastChangedValueRef:te,onValueCommitted:w}),{getButtonProps:D,buttonRef:O}=n({disabled:T,native:o,focusableWhenDisabled:!0}),k=I.useMemo(()=>({...b,disabled:T}),[b,T]);return C(`button`,e,{ref:[t,O],state:k,props:[E,c,D],stateAttributesMapping:L})}),it={...re,...L},at=new Set([`Backspace`,`Delete`,`ArrowLeft`,`ArrowRight`,`Tab`,`Enter`,`Escape`]),ot=I.forwardRef(function(e,t){let{render:n,className:i,style:a,...s}=e,{allowInputSyncRef:c,disabled:u,formatOptionsRef:d,getAllowedNonNumericKeys:f,getStepAmount:p,id:v,incrementValue:y,inputMode:b,inputValue:S,max:te,min:E,name:D,readOnly:O,required:k,setValue:A,state:ne,setInputValue:j,locale:M,inputRef:N,value:P,onValueCommitted:F,lastChangedValueRef:re,hasPendingCommitRef:ie,valueRef:ae}=de(),{clearErrors:ce}=se(),{validationMode:le,setTouched:ue,setFocused:L,invalid:fe,shouldValidateOnChange:R,validation:B}=l(),{labelId:me}=m(),he=I.useRef(!1),V=I.useRef(!1);return oe(N,v,P),T(P,e=>{let t=R();if(ce(D),t&&B.commit(P),!(e===P||t)){if(V.current){V.current=!1;return}B.commit(P,!0)}}),C(`input`,e,{ref:[t,N],state:ne,props:[{id:v,required:k,disabled:u,readOnly:O,inputMode:b,value:S,type:`text`,autoComplete:`off`,autoCorrect:`off`,spellCheck:`false`,"aria-roledescription":`Number field`,"aria-invalid":fe||void 0,"aria-labelledby":me,suppressHydrationWarning:!0,onFocus(e){if(e.defaultPrevented||O||u||(L(!0),he.current))return;he.current=!0;let t=e.currentTarget,n=t.value.length;t.setSelectionRange(n,n)},onBlur(e){if(e.defaultPrevented||O||u)return;ue(!0),L(!1);let t=!c.current,n=ie.current;if(c.current=!0,S.trim()===``){A(null,w(r,e.nativeEvent)),le===`onBlur`&&B.commit(null),F(null,x(r,e.nativeEvent));return}let i=d.current,a=Z(S,M,i);if(a===null)return;let o=i?.maximumFractionDigits!=null||i?.minimumFractionDigits!=null,s=i?.maximumFractionDigits,l=o&&typeof s==`number`?Number(a.toFixed(s)):a,f=x(h,e.nativeEvent),p=P!==l,m=t||p||n;le===`onBlur`&&B.commit(l),p&&(V.current=!0,A(l,w(h,e.nativeEvent))),m&&F(l,f);let g=z(l,M,i);(o||a!==P||S!==pe(a,M,i))&&S!==g&&j(g)},onChange(e){if(e.nativeEvent.defaultPrevented)return;c.current=!1;let t=e.currentTarget.value;if(t.trim()===``){j(t),A(null,w(r,e.nativeEvent));return}let n=f();if(!Array.from(t).every(e=>{let t=e>=`0`&&e<=`9`,r=Se.test(e),i=we.test(e),a=Ce.test(e),o=Te.test(e),s=Y.test(e);return t||r||i||a||o||s||n.has(e)}))return;let i=Z(t,M,d.current);j(t),i!==null&&A(i,w(g,e.nativeEvent))},onKeyDown(e){if(e.defaultPrevented||O||u)return;let t=e.nativeEvent;c.current=!0;let n=f(),r=n.has(e.key),{decimal:i,currency:a,percentSign:o}=Fe(M,d.current),s=e.currentTarget.selectionStart,l=e.currentTarget.selectionEnd,m=s===0&&l===S.length,h=e=>s!=null&&l!=null&&e>=s&&e<l;if(Y.test(e.key)&&Array.from(n).some(e=>Y.test(e||``))){let e=S.search(Pe),t=e!=null&&e!==-1&&h(e);r=!(Y.test(S)||X.test(S))||m||t}if(X.test(e.key)&&Array.from(n).some(e=>X.test(e||``))){let e=S.search(J),t=e!=null&&e!==-1&&h(e);r=!(Y.test(S)||X.test(S))||m||t}[i,a,o].forEach(t=>{if(e.key===t){let e=S.indexOf(t),n=h(e);r=!S.includes(t)||m||n}});let g=e.key>=`0`&&e.key<=`9`,v=Se.test(e.key),b=we.test(e.key),C=Ce.test(e.key),T=Te.test(e.key),D=at.has(e.key);if(e.which===229||e.altKey||e.ctrlKey||e.metaKey||r||g||v||T||b||C||D)return;let k=Z(S,M,d.current),ne=p(e)??1;ee(e);let j=x(_,t);e.key===`ArrowUp`?(y(ne,{direction:1,currentValue:k,event:t,reason:_}),F(re.current??ae.current,j)):e.key===`ArrowDown`?(y(ne,{direction:-1,currentValue:k,event:t,reason:_}),F(re.current??ae.current,j)):e.key===`Home`&&E!=null?(A(E,w(_,t)),F(re.current??ae.current,j)):e.key===`End`&&te!=null&&(A(te,w(_,t)),F(re.current??ae.current,j))},onPaste(e){if(e.defaultPrevented||O||u)return;e.preventDefault();let t=(e.clipboardData||window.Clipboard).getData(`text/plain`),n=Z(t,M,d.current);n!==null&&(c.current=!1,A(n,w(o,e.nativeEvent)),j(t))}},B.getValidationProps(),s],stateAttributesMapping:it})}),st=u();function ct(e){let t=(0,st.c)(12),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({id:r,className:n,size:a,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?`default`:a,s=I.useId(),c=r??s,l;t[5]===n?l=t[6]:(l=M(`flex w-full flex-col items-start gap-2`,n),t[5]=n,t[6]=l);let u;return t[7]!==c||t[8]!==i||t[9]!==o||t[10]!==l?(u=(0,$.jsx)(Ve,{className:l,"data-size":o,"data-slot":`number-field`,id:c,...i}),t[7]=c,t[8]=i,t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function lt(e){let t=(0,st.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,shape:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`default`:i,o=a===`pill`&&`overflow-hidden rounded-xl before:rounded-xl`,s=a===`soft`&&`rounded-lg border-transparent bg-accent shadow-none before:hidden dark:bg-accent`,c;t[4]!==n||t[5]!==o||t[6]!==s?(c=M(`relative flex w-full justify-between rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-within:border-ring focus-within:ring-[3px] focus-within:ring-inset has-aria-invalid:border-destructive/36 has-autofill:bg-foreground/4 focus-within:has-aria-invalid:border-destructive/64 focus-within:has-aria-invalid:ring-destructive/48 data-disabled:pointer-events-none data-disabled:opacity-64 sm:text-sm dark:bg-input/32 dark:has-autofill:bg-foreground/8 dark:has-aria-invalid:ring-destructive/24 dark:not-data-disabled:not-focus-within:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0 [[data-disabled],:focus-within,[aria-invalid]]:shadow-none`,o,s,n),t[4]=n,t[5]=o,t[6]=s,t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==c?(l=(0,$.jsx)(Ue,{className:c,"data-slot":`number-field-group`,...r}),t[8]=r,t[9]=c,t[10]=l):l=t[10],l}function ut(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-s-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(ie,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(rt,{className:i,"data-slot":`number-field-decrement`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function dt(e){let t=(0,st.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`relative flex shrink-0 cursor-pointer items-center justify-center rounded-e-[calc(var(--radius-lg)-1px)] in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] in-data-[size=compact]:w-8 in-data-[size=compact]:px-0 px-[calc(--spacing(3)-1px)] transition-colors pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:bg-accent`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(ae,{}),t[5]=a):a=t[5];let o;return t[6]!==r||t[7]!==i?(o=(0,$.jsx)(nt,{className:i,"data-slot":`number-field-increment`,...r,children:a}),t[6]=r,t[7]=i,t[8]=o):o=t[8],o}function ft(e){let t=(0,st.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=M(`h-8.5 in-data-[size=compact]:h-8 in-data-[size=compact]:px-0 in-data-[size=compact]:leading-8 sm:in-data-[size=compact]:h-8 sm:in-data-[size=compact]:leading-8 in-data-[size=lg]:h-9.5 in-data-[size=sm]:h-7.5 w-full min-w-0 grow bg-transparent in-data-[size=sm]:px-[calc(--spacing(2.5)-1px)] px-[calc(--spacing(3)-1px)] text-center tabular-nums in-data-[size=lg]:leading-9.5 in-data-[size=sm]:leading-7.5 leading-8.5 outline-none [transition:background-color_5000000s_ease-in-out_0s] sm:h-7.5 sm:in-data-[size=lg]:h-8.5 sm:in-data-[size=sm]:h-6.5 sm:in-data-[size=lg]:leading-8.5 sm:in-data-[size=sm]:leading-8.5 sm:leading-7.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,$.jsx)(ot,{className:i,"data-slot":`number-field-input`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{ft as a,dt as i,ut as n,lt as r,ct as t};
|
|
2
|
+
//# sourceMappingURL=number-field-yRjM_PYx.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{ua as t}from"./utils-
|
|
2
|
-
//# sourceMappingURL=observeResize-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{ua as t}from"./utils-Cbsb1ks0.js";var n=e(t(),1),r=null,i=new Map;function a(e){let t=new Map;for(let n of e){let e=i.get(n.target);if(!e)continue;let r=e.subscriptions;if(e.waiting){let t=e.last?.contentRect;t?.width===n.contentRect.width&&t.height===n.contentRect.height&&(r=e.waiting),e.waiting=null}e.last=n;for(let e of r){let r=t.get(e);r?r.push(n):t.set(e,[n])}}t.size!==0&&(0,n.flushSync)(()=>{for(let[e,n]of t)if(e.active)try{e.callback(n)}catch(e){queueMicrotask(()=>{throw e})}})}function o(e,t){if(typeof ResizeObserver>`u`)return()=>{};let n=r??=new ResizeObserver(a),o={callback:t,active:!0},s=Array.isArray(e)?e:[e];for(let e of s){let t=i.get(e);if(!t){i.set(e,{subscriptions:new Set([o]),waiting:null,last:null}),n.observe(e);continue}t.subscriptions.add(o),t.last&&((t.waiting??=new Set).add(o),n.unobserve(e),n.observe(e))}return()=>{if(!o.active)return;o.active=!1;let e=s.filter(e=>{let t=i.get(e);return t?.subscriptions.delete(o)?(t.waiting?.delete(o),t.subscriptions.size===0&&i.delete(e)):!1});if(i.size>0)for(let t of e)n.unobserve(t);else r?.disconnect(),r=null}}export{o as t};
|
|
2
|
+
//# sourceMappingURL=observeResize-wFdsooQ8.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=onboarding
|
|
1
|
+
import{Zg as e}from"./utils-Cbsb1ks0.js";import{F as t,O as n}from"./runtime-CBB2It1x.js";import{t as r,wt as i}from"./runtime-Dydpcwo9.js";var a=n(),o=t(r,{label:`web:connection:connect-pairing`,scheduler:a,concurrency:{mode:`singleFlight`,key:e=>JSON.stringify(e)},execute:t=>i.pipe(e(e=>e.registerPairing(t)))}),s=t(r,{label:`web:connection:connect-ssh`,scheduler:a,concurrency:{mode:`serial`,key:e=>JSON.stringify(e.target)},execute:t=>i.pipe(e(e=>e.registerSsh(t)))});export{s as n,o as t};
|
|
2
|
+
//# sourceMappingURL=onboarding-Buk_SNIp.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ho as n,Jv as r,Mo as i,
|
|
2
|
-
//# sourceMappingURL=openFileInPreview-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Ho as n,Jv as r,Mo as i,Mx as a,No as o,Uo as s,Yv as c,fs as l,jo as u,ko as d,lb as f,ss as p,wo as m}from"./utils-Cbsb1ks0.js";import{I as h,R as g,U as _}from"./runtime-CBB2It1x.js";import{s as v}from"./vcsRefInvalidation-DMlloB2h.js";import{s as y}from"./session-BI6WO3-p.js";import{l as b,o as x}from"./rightPanelStore-BWYBRVeP.js";import{t as S}from"./mediaReference-vtwfoFLK.js";import{a as C,c as w,l as T,s as E,t as D}from"./assets-DJce0KBy.js";import{S as O,c as k,d as A,s as j,x as M}from"./browserHistoryStore-CuO1erOb.js";var N=a(),P=e(t(),1);function F(e,t){let n=(0,N.c)(7),r=(0,P.useContext)(s),i=typeof t==`string`?t:t?.label,a=typeof t==`string`?!0:t?.reportFailure??!0,o=typeof t==`string`?!0:t?.reportDefect??!0,c=typeof t==`string`?!1:t?.refresh??!1,l;return n[0]!==i||n[1]!==e||n[2]!==c||n[3]!==r||n[4]!==o||n[5]!==a?(l=t=>{let n=e(t);return h(r,n,{label:i??n.label?.[0]??`atom query`,reportFailure:a,reportDefect:o,refresh:c})},n[0]=i,n[1]=e,n[2]=c,n[3]=r,n[4]=o,n[5]=a,n[6]=l):l=n[6],l}function I(e,t){let r=(0,N.c)(10),i=v(e),a;r[0]!==t||r[1]!==i?(a=w(t,i),r[0]=t,r[1]=i,r[2]=a):a=r[2];let o=a,s=y(e),c;r[3]!==o||r[4]!==e||r[5]!==t?(c=o!==null||e===null||t===null?C:D.createUrl({environmentId:e,input:{resource:t}}),r[3]=o,r[4]=e,r[5]=t,r[6]=c):c=r[6];let l=n(c);if(o!==null)return o;let u=s._tag===`Some`?s.value.httpBaseUrl:null,d;return r[7]!==l||r[8]!==u?(d=E(l,u),r[7]=l,r[8]=u,r[9]=d):d=r[9],d}function L(e,t){let n=(0,N.c)(6),r=y(e),i=r._tag===`Some`?r.value.httpBaseUrl:null,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={reportFailure:!1,refresh:!0},n[0]=a):a=n[0];let o=F(D.createUrl,a),s;return n[1]!==e||n[2]!==i||n[3]!==o||n[4]!==t?(s=async()=>{if(e===null||t===null||i===null)return null;let n=await o({environmentId:e,input:{resource:t}});if(n._tag===`Failure`)throw _(n);return T(i,n.value.relativeUrl)},n[1]=e,n[2]=i,n[3]=o,n[4]=t,n[5]=s):s=n[5],s}function R(e,t){let r=y(e),{canReadFiles:i}=v(e),a=(0,P.useMemo)(()=>i?t:t.filter(e=>e._tag!==`workspace-file`&&e._tag!==`media-file`&&e._tag!==`draft-workspace-file`),[i,t]),o=n(D.createUrls({environmentId:e,resources:a}));return(0,P.useMemo)(()=>{if(r._tag===`None`)return t.map(()=>null);let e=0;return t.map(t=>{if(!i&&(t._tag===`workspace-file`||t._tag===`media-file`||t._tag===`draft-workspace-file`))return null;let n=o[e++];return n&&l(n)?T(r.value.httpBaseUrl,n.value.relativeUrl):null})},[i,r,t,o])}var z=e=>/\.(?:html?|pdf)$/i.test(e.split(/[?#]/,1)[0]??``),B=class extends f(`BrowserPreviewUnavailableError`){},V=class extends f(`BrowserSettingsReadError`){get message(){return`Saved browser settings could not be loaded.`}};async function H(e){let t=await A().catch(e=>new V({cause:e}));if(t instanceof V)return p(c(t));let n=O(e.threadRef.environmentId),r=d(e.threadRef).activeTabId,a=()=>x(b.getState().byThreadKey,e.threadRef)?.id??null,s=a(),l=await e.openPreview({environmentId:e.threadRef.environmentId,input:{threadId:e.threadRef.threadId,url:e.url,viewport:k(t),profileId:e.profileId??j(t),...n===void 0?{}:{runtime:n}}});return g(l,t=>{if(u(e.threadRef,e.url),e.background){o(e.threadRef,t),r&&d(e.threadRef).activeTabId===t.tabId&&a()===s&&i(e.threadRef,r);return}m(e.threadRef,t),b.getState().openBrowser(e.threadRef,t.tabId)})}async function U(e){if(!M(e.threadRef.environmentId))return p(c(new B({message:`The integrated browser is unavailable in this runtime.`})));let t=S(e.filePath,e.workspaceRoot).relativePath!==void 0,n=await e.createAssetUrl({environmentId:e.threadRef.environmentId,input:{resource:{_tag:t?`workspace-file`:`media-file`,threadId:e.threadRef.threadId,path:e.filePath}}});if(n._tag===`Failure`)return p(n.cause);let i=T(e.httpBaseUrl,n.value.relativeUrl);return i===null?p(r(Error(`The environment returned an invalid asset URL.`))):H({threadRef:e.threadRef,url:i,openPreview:e.openPreview})}export{H as a,R as c,U as i,F as l,V as n,L as o,z as r,I as s,B as t};
|
|
2
|
+
//# sourceMappingURL=openFileInPreview-CxrjOX7D.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Bs as e,Gc as t,Pl as n,Rs as r,Uc as i,Wl as a,
|
|
2
|
-
//# sourceMappingURL=p4ProjectFile-
|
|
1
|
+
import{Bs as e,Gc as t,Pl as n,Rs as r,Uc as i,Wl as a,Zy as o,_h as s,bf as c,xf as l}from"./utils-Cbsb1ks0.js";import"./entities-HApogVCu.js";import{Sn as u}from"./runtime-Dydpcwo9.js";import{B as d,M as f}from"./useSettings-BCUX_14n.js";var p=`\0no-project`;function m(e){return{sidebarProjectGroupingMode:e.sidebarProjectGroupingMode,sidebarProjectGroupingOverrides:e.sidebarProjectGroupingOverrides}}function h(e){let t=new Set,n=[];for(let r of e){let e=r?.trim();e&&!t.has(e)&&(t.add(e),n.push(e))}return n}function g(e){let t=e.repositoryIdentity?.rootPath?.trim();if(!t)return null;let n=u(e.workspaceRoot),r=u(t);if(n.length===0||r.length===0)return null;if(n===r)return``;let i=`${r}${r.includes(`\\`)?`\\`:`/`}`;return n.startsWith(i)?n.slice(i.length).replaceAll(`\\`,`/`):null}function _(e,t){return`${e}:${u(t)}`}function v(e){return _(e.environmentId,e.workspaceRoot)}function y(e){return v(e)}function b(e){return v(e)}function x(e,t){return t.sidebarProjectGroupingOverrides?.[y(e)]??t.sidebarProjectGroupingMode}function S(e,t){let n=e.repositoryIdentity?l(e.repositoryIdentity):null;if(!n||n.includes(`\0`))return null;if(t===`repository`)return n;let r=g(e);return r===null||r.length===0?n:`${n}::${r}`}function C(t,n){if(n?.groupScratchProjects&&t.isScratch)return p;let i=n?.groupingMode??`repository`;return i===`separate`?v(t):S(t,i)??v(t)??e(r(t.environmentId,t.id))}function w(e,t,n){return C(e,{groupingMode:x(e,t),groupScratchProjects:n?.groupScratchProjects??!1})}function T(e){let t=h(e.members.map(e=>e.title)),n=h(e.members.map(e=>e.repositoryIdentity?c(e.repositoryIdentity):null)),r=h(e.members.map(e=>e.repositoryIdentity?.name)),i=t[0];return t.length===1&&i!==void 0&&!n.includes(i)&&!r.includes(i)?i:n.length===1?n[0]:r.length===1?r[0]:e.representative.title}function E(e){let t=Date.parse(e.updatedAt);if(Number.isFinite(t))return t;let n=Date.parse(e.createdAt);return Number.isFinite(n)?n:0}function D(e,t){let n=E(t)-E(e);return n>0||n===0&&t.id>e.id}function O(e,t){if(t.repositoryIdentity!==null)return t;let n=null;for(let t of e)t.repositoryIdentity!==null&&(n===null||D(n,t))&&(n=t);return n??t}function k(t){let n=new Map;for(let e of t.projects){let t=v(e),r=n.get(t);r?r.push(e):n.set(t,[e])}let i=new Map,a=new Map;for(let[e,r]of n){let n=r.reduce((e,t)=>D(e,t)?t:e),o=C(O(r,n),{groupingMode:x(n,t.settings),groupScratchProjects:t.groupScratchProjects??!1});i.set(e,o);let s={physicalProjectKey:e,project:n},c=a.get(o);c?c.push(s):a.set(o,[s])}let o=new Map,s=new Set;for(let n of t.projects){let a=v(n),c=i.get(a)??w(n,t.settings,{groupScratchProjects:t.groupScratchProjects??!1}),l=e(r(n.environmentId,n.id));if(s.has(l))continue;s.add(l);let u=r(n.environmentId,n.id),d=o.get(c);d?d.push(u):o.set(c,[u])}let c=t.preferredEnvironmentId??null;return Array.from(a,([e,n])=>{let r=(c?n.find(e=>e.project.environmentId===c)?.project:null)??n[0].project;return{key:e,label:t.groupScratchProjects&&r.isScratch?`No project`:n.length>1?T({representative:r,members:n.map(e=>e.project)}):r.title,representative:r,members:n,memberProjectRefs:o.get(e)??[]}})}function A(e,t){let n=new Map;t.forEach((e,t)=>{for(let r of e.memberProjectRefs){let e=`${r.environmentId}\0${r.projectId}`;n.has(e)||n.set(e,t)}});let r=e=>n.get(`${e.environmentId}\0${e.id}`)??t.length;return[...e].sort((e,t)=>r(e)-r(t))}var j={},M=Object.fromEntries(n.map(e=>[e,`environment`]));function N(e,t,n,r){let i=I(e,t,n);return r===void 0?i:P(i,r)}function P(e,n){let r=null,i=null;for(let a of Object.keys(t)){if(e.settings[a]!==null)continue;let{value:t,source:o}=F(a,null,n);r??={...e.settings},i??={...e.sources},r[a]=t,i[a]=o}return r===null||i===null?e:{...e,settings:r,sources:i}}function F(e,n,r){if(n!==null)return{value:n,source:`environment`};let{field:i,builtIn:a}=t[e],o=r?.[i];return o===void 0?{value:a,source:`environment`}:{value:o,source:`p4.json`}}function I(e,t,r){let i=t===null?void 0:e.projectSettingsOverrides[t],o=r==null||e.projectSettingsFolded?i??j:{...r.defaultModelSelection==null?{}:{defaultModelSelection:r.defaultModelSelection},...r.defaultThreadEnvMode==null?{}:{defaultThreadEnvMode:r.defaultThreadEnvMode},...i};if(Object.keys(o).length===0)return{settings:e,sources:M,overrides:j};let s={...M},c={...e};for(let r of n){if(!Object.hasOwn(o,r))continue;let n=o[r];n!==void 0&&(r!==`textGenerationModelSelection`&&r!==`defaultModelSelection`||n==null||a(e,t,n.instanceId))&&(c[r]=n,s[r]=`project`)}let l=c.textGenerationModelSelection;if(!a(e,t,l.instanceId)){let n=f(e.providerInstances,n=>a(e,t,n),{includeConfiguredInstances:!0,defaultModelSelection:c.defaultModelSelection});n!==null&&(c.textGenerationModelSelection=n)}return{settings:c,sources:s,overrides:o}}function L(e){let t=e.projectSettings.settings.defaultThreadEnvMode;if(t===`local`||e.projectHasThreads||e.projectSettings.sources.defaultThreadEnvMode!==`environment`||e.workspaceRoot===null||e.newProjectsRoot==null)return t;let n=u(e.newProjectsRoot),r=u(e.workspaceRoot),i=n.includes(`\\`)?`\\`:`/`,a=n.endsWith(i)?n:`${n}${i}`;return r.startsWith(a)&&r.length>a.length&&!r.slice(a.length).includes(i)?`local`:t}function R(e,t,n){let r=e.projectSettingsOverrides[t];if(r===void 0)return null;let i={...r};for(let e of n)delete i[e];return Object.keys(i).length===0?null:i}function z(e,t){let n=N(e,t).settings.worktreeCleanup;if(n?.mode===`custom`)return n.rules;if(n?.mode===`off`)return{worktreeKeepWhen:e.storageCleanup.worktreeKeepWhen,worktreeAfterDays:null,worktreeOnMerge:!1,worktreeOnDelete:!1,worktreeUnchanged:!1};let{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}=e.storageCleanup;return{worktreeKeepWhen:r,worktreeAfterDays:i,worktreeOnMerge:a,worktreeOnDelete:o,worktreeUnchanged:s}}var B=d(i),V=s(B);function H(e){let t=V(e);return o(t)?t.value:null}export{z as a,v as c,b as d,m as f,N as i,_ as l,R as n,k as o,A as p,L as r,w as s,H as t,y as u};
|
|
2
|
+
//# sourceMappingURL=p4ProjectFile-DNlgD3LH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{S as e}from"./mermaid-parser.core-D2hAGRv3.js";export{e as createPacketServices};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{
|
|
2
|
-
//# sourceMappingURL=pair-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Mx as t,ha as n}from"./utils-Cbsb1ks0.js";import{a as r}from"./useParams-nxAoxVO6.js";import{c as i,l as a,u as o}from"./main-D1oD2GPo.js";var s=t(),c=e(n());function l(){let e=(0,s.c)(9),t=r(),{authGateState:n}=i.useRouteContext();if(!n)return null;if(n.status===`hosted-pairing`){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,c.jsx)(a,{}),e[0]=t):t=e[0],t}let l;e[1]===t.history?l=e[2]:(l=()=>{t.history.replace(`/`),t.history.flush(),window.location.reload()},e[1]=t.history,e[2]=l);let u;e[3]===n.errorMessage?u=e[4]:(u=n.errorMessage?{initialErrorMessage:n.errorMessage}:{},e[3]=n.errorMessage,e[4]=u);let d;return e[5]!==n.auth||e[6]!==l||e[7]!==u?(d=(0,c.jsx)(o,{auth:n.auth,onAuthenticated:l,...u}),e[5]=n.auth,e[6]=l,e[7]=u,e[8]=d):d=e[8],d}export{l as component};
|
|
2
|
+
//# sourceMappingURL=pair-DYnW2Jz0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_o as e,go as t}from"./main-D1oD2GPo.js";export{e as __iconNode,t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ho as e,mo as t}from"./main-D1oD2GPo.js";export{e as __iconNode,t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{fo as e,po as t}from"./main-D1oD2GPo.js";export{t as __iconNode,e as default};
|
package/dist/client/assets/{pegDiagram-XKGWAZYB-6b8AqBYd.js → pegDiagram-XKGWAZYB-Cgo_C_YQ.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as e,u as t}from"./mermaid-parser.core-
|
|
2
|
-
//# sourceMappingURL=pegDiagram-XKGWAZYB-
|
|
1
|
+
import{t as e,u as t}from"./mermaid-parser.core-D2hAGRv3.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as r}from"./src-oBChb5qS.js";import"./chunk-DU6HZSFF-C3RStRBi.js";import{n as i,r as a,t as o}from"./chunk-SVP7TREG-BD15vJFs.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-DWtHy2iz.js";var c=t().RailroadPeg.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformOrderedChoice`),u=n(e=>{let t=e.elements.map(d);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformSequence`),d=n(e=>{let t=p(e.suffix);return e.operator?{type:`special`,text:e.operator===`&`?`&${f(t)}`:`!${f(t)}`}:t},`transformPrefix`),f=n(e=>{switch(e.type){case`terminal`:return`"${e.value}"`;case`nonterminal`:return e.name;case`special`:return e.text;default:return`(...)`}},`nodeToLabel`),p=n(e=>{let t=m(e.primary);if(!e.operator)return t;switch(e.operator){case`?`:return{type:`optional`,element:t};case`*`:return{type:`repetition`,element:t,min:0,max:1/0};case`+`:return{type:`repetition`,element:t,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},`transformSuffix`),m=n(e=>{switch(e.$type){case`PegLiteral`:return{type:`terminal`,value:e.value};case`PegIdentifier`:return{type:`nonterminal`,name:e.name};case`PegGroup`:return l(e.element);case`PegAny`:return{type:`special`,text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},`transformPrimary`),h=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),g=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(h(e)))},`populateDb`),_={parser:{parse:n(t=>{o.clear(),r.debug(`[PEG Parser] Starting Langium parse`);let n=c.parse(t);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new e(n);let i=n.value;r.debug(`[PEG Parser] Parsed rules:`,i.rules.length),g(i),r.debug(`[PEG Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{_ as diagram};
|
|
2
|
+
//# sourceMappingURL=pegDiagram-XKGWAZYB-Cgo_C_YQ.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{S as e,x as t}from"./_chat-oHhtDqeh.js";import{B as n,C as r,E as i,F as a,H as o,I as s,L as c,N as l,O as u,R as d,T as f,U as p,_ as m,a as ee,b as te,c as h,d as g,f as _,g as ne,h as v,i as re,j as ie,k as ae,n as oe,o as y,p as se,r as ce,s as b,t as le,u as ue,v as x,w as de,x as S,z as C}from"./renderScheduler-DWKKtxcJ.js";var w=2.2,T=.075,E=.026,D=.004,O=.008,k=.042499999999999996,A=.07799999999999999,fe=2076/2152,j=e=>Number.isFinite(e)&&e>.75&&e<1.5;function M(e,t,n,r,i=0){let a=t===`left`?-e+n:D/2+i,o=t===`left`?-.004/2-i:e-n,s=-2.2/2+n,c=w/2-n,l=new C;return t===`left`?(l.moveTo(a+r,s),l.lineTo(o,s),l.lineTo(o,c),l.lineTo(a+r,c),l.quadraticCurveTo(a,c,a,c-r),l.lineTo(a,s+r),l.quadraticCurveTo(a,s,a+r,s)):(l.moveTo(a,s),l.lineTo(o-r,s),l.quadraticCurveTo(o,s,o,s+r),l.lineTo(o,c-r),l.quadraticCurveTo(o,c,o-r,c),l.lineTo(a,c)),l.closePath(),l}function N(e,t,n){let r=new C;return r.moveTo(-e/2+n,-t/2),r.lineTo(e/2-n,-t/2),r.quadraticCurveTo(e/2,-t/2,e/2,-t/2+n),r.lineTo(e/2,t/2-n),r.quadraticCurveTo(e/2,t/2,e/2-n,t/2),r.lineTo(-e/2+n,t/2),r.quadraticCurveTo(-e/2,t/2,-e/2,t/2-n),r.lineTo(-e/2,-t/2+n),r.quadraticCurveTo(-e/2,-t/2,-e/2+n,-t/2),r.closePath(),r}function P(e){return N(e-E*2-.02,w-E*2-.04,.07)}function pe(e,t,r,a=fe){let c=w-2*E,d=a*c/2+E,ee=new S,h=new S;ee.add(h);let g=new S,_=new S;h.add(g,_);let v=new ae({color:10726322,metalness:.9,roughness:.28}),re=new ae({color:12896976,metalness:.95,roughness:.16}),ie=new u({color:724240,metalness:.1,roughness:.2,clearcoat:1}),oe=new u({color:2896439,metalness:.35,roughness:.52,clearcoat:.4,clearcoatRoughness:.6}),y=new u({color:1711650,metalness:.55,roughness:.3,clearcoat:1}),ce=new u({color:397346,metalness:.6,roughness:.1,clearcoat:1}),b=new i({color:15919830}),le=new i({map:e,toneMapped:!1}),ue=new i({colorWrite:!1,depthWrite:!1}),x=new i({map:e,toneMapped:!1}),de=[v,re,ie,oe,y,ce,b,le,ue,x];g.position.z=k;let C=new S;C.position.z=-.042499999999999996,g.add(C);function D(e,t,r){let i=new f(new te(M(d,t,O,.1,O),{depth:T-O*2,bevelEnabled:!0,bevelSize:O,bevelThickness:O,bevelSegments:3,curveSegments:12}),v);i.position.z=-.0295,e.add(i);let a=new f(new n(M(d,t,.01,.095,.002),12),ie);a.position.z=.0385,e.add(a);let o=new f(new n(M(d,t===`left`?`right`:`left`,.01,.095,.002),12),r);o.name=`${t}-back`,o.rotation.y=Math.PI,o.position.set(0,0,-.075/2-.001),e.add(o);let s=new n(M(d,t,E,.076));s.computeBoundingBox();let c=new f(s,ue);return c.name=`${t}-inner-screen`,c.position.z=.0405,e.add(c),c}let j=D(C,`left`,ie),pe=D(_,`right`,oe),F=2*(d-E),I=new l(F,c,40,48),L=I.getAttribute(`position`),R=I.getAttribute(`uv`),z=new Float32Array(L.count);for(let e=0;e<L.count;e++){let t=L.getY(e),n=F/2,r=.076,i=Math.max(0,Math.abs(t)-.9980000000000001),a=n-r+Math.sqrt(Math.max(0,r*r-i*i)),o=Math.max(-a,Math.min(a,L.getX(e)));z[e]=o,R.setXY(e,o/F+.5,t/c+.5)}R.needsUpdate=!0;let B=new f(I,le);B.name=`continuous-inner-screen`,h.add(B);let V=.15,H=new f(new m(A,A,2.188,32,1,!1,Math.PI/2+V,Math.PI-V*2),re);H.name=`hinge-spine`,H.position.z=k,h.add(H);let U=new f(new n(P(d)),x);U.name=`cover-screen`,U.position.set(-d/2,0,-.075/2-.003),U.rotation.y=Math.PI,C.add(U);let W=new S;W.name=`rear-camera`;let G=.46,K=.2;W.position.set(d-.07-G/2,w/2-.08-K/2,-.075/2-.002),W.rotation.y=Math.PI,_.add(W);let q=new f(new te(N(G,K,.07),{depth:.02,bevelEnabled:!0,bevelSize:.008,bevelThickness:.006,bevelSegments:3,curveSegments:12}),y);q.name=`camera-plate`,W.add(q);for(let[e,t]of[[-.14,.05],[-.01,.05],[.105,.036]]){let n=new f(new m(t+.012,t+.012,.012,32),v);n.rotation.x=Math.PI/2,n.position.set(e,0,.030000000000000002),W.add(n);let r=new f(new ne(t,32),ce);r.name=`camera-lens`,r.position.set(e,0,.036500000000000005),W.add(r)}let J=new f(new ne(.018,20),b);J.position.set(.185,.045,.026500000000000003),W.add(J);for(let[e,t]of[[.52,.16],[.2,.3]]){let n=new f(new se(.02,t,T*.45),v);n.position.set(d+.008,e,0),_.add(n)}let Y=new s,me=new o,X=new p,Z=null,he=t,Q=r,$=()=>{let e=Q>=90;B.visible=e,j.visible=e,pe.visible=e,U.visible=!e},ge=e=>{Q=Math.max(0,Math.min(180,e)),g.rotation.y=Math.PI*(1-Q/180),H.rotation.y=g.rotation.y/2;let t=g.rotation.y,n=Math.cos(t),r=Math.sin(t),i=-.0010000000000000009;for(let e=0;e<L.count;e++){let t=z[e];t<0?L.setXYZ(e,t*n+i*r,L.getY(e),-t*r+i*n+k):L.setXYZ(e,t,L.getY(e),.041499999999999995)}L.needsUpdate=!0,I.computeBoundingBox(),I.computeBoundingSphere(),$()},_e=(e,t)=>{he=t,le.map=e,x.map=e,U.geometry.computeBoundingBox();let n=U.geometry.boundingBox,r=U.geometry.getAttribute(`uv`),i=U.geometry.getAttribute(`position`);for(let e=0;e<r.count;e++){let t=(i.getX(e)-n.min.x)/(n.max.x-n.min.x),a=(i.getY(e)-n.min.y)/(n.max.y-n.min.y);r.setXY(e,t,a)}r.needsUpdate=!0,$()};return ge(r),_e(e,t),{root:ee,orientation:h,width:d*2,height:w,innerAspect:a,setAngle:ge,setDisplay:_e,screenPoint(e,t,n,r=!1){h.updateWorldMatrix(!0,!0),n.updateMatrixWorld(!0),me.set(e*2-1,1-t*2),Y.setFromCamera(me,n);let i=U.visible?[U]:[j,pe],a=Y.intersectObjects(i,!1)[0];if(!a&&!r)return Z=null,null;let o=a?.object??(Z?.visible?Z:i[0]);if(!o)return null;if(a&&(Z=o),a)X.copy(a.point);else{let e=new p(0,0,1).transformDirection(o.matrixWorld),t=new p().setFromMatrixPosition(o.matrixWorld),n=e.dot(t.clone().sub(Y.ray.origin))/e.dot(Y.ray.direction);if(!Number.isFinite(n))return null;X.copy(Y.ray.direction).multiplyScalar(n).add(Y.ray.origin)}o.worldToLocal(X);let s=o.geometry.boundingBox,c=Math.max(0,Math.min(1,(X.x-s.min.x)/(s.max.x-s.min.x))),l=Math.max(0,Math.min(1,(s.max.y-X.y)/(s.max.y-s.min.y))),u=o===U?c:(o===j?c:1+c)/2;return he.rotation===Math.PI?{x:1-u,y:1-l}:{x:u,y:l}},dispose(){ee.traverse(e=>{e instanceof f&&e.geometry.dispose()});for(let e of de)e.dispose()}}}var F=450,I=850;function L(n){let i=new ue({canvas:n.canvas,alpha:!0,antialias:!0,powerPreference:`low-power`});i.outputColorSpace=c;let o=()=>{let e=new v(n.source);return e.colorSpace=c,e.minFilter=r,e.magFilter=r,e.generateMipmaps=!1,e},s=o(),l=n.source.width,u=n.source.height,f=new d,m=new ie(32,1,.1,30);m.position.z=5.5;let te=new g(16777215,2.4),ne=new x(15003135,5);ne.position.set(-3,4,5);let ae=new x(16777215,4);ae.position.set(3,1,-3);let se=new x(10464468,2);se.position.set(-2,-2,-4),f.add(te,ne,ae,se);let S=null,C=h(S,n.source.width,n.source.height),w=n.profile??e,T=n.foldAngle??null,E=T!==null&&w.id.startsWith(`android`)?0:C.rotation,D=null,O=null,k=n.model??null,A=null,M=null,N=null,P=()=>n.source.width/n.source.height,L=j(P())?P():fe,R=(e,t=C)=>pe(s,t,e,L),z=e=>{if(!N)return e;let t=Math.min(1,(performance.now()-N.startedAt)/I),n=t*t*(3-2*t);return N.from+(N.to-N.from)*n},B=T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);f.add(B.root);let V=!1,H=new a,U=ce({choose:e=>oe(e,[{rotation:new a,yawLimit:Math.PI/3}]).rotation});U.setPose(H,performance.now(),!0);let W=re(),G=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,K={width:0,height:0,pixelRatio:1},q={width:0,height:0,pixelRatio:0},J=null,Y=(e=!1)=>{if(!K.width||!K.height)return;m.aspect=K.width/K.height;let t=new _(new p(-B.width/2,-B.height/2,0),new p(B.width/2,B.height/2,0));O&&M&&t.union(M),t.applyMatrix4(new de().makeRotationZ(E));let r=t.getSize(new p),i=r.x/r.y;i!==J&&(J=i,n.onFramingAspect?.(i)),B.root.updateMatrixWorld(!0),W.setBounds(new _().setFromObject(B.root),m.fov*Math.PI/360,m.aspect,performance.now(),e),me()},me=()=>{m.position.set(W.center.x,W.center.y,W.distance()),m.lookAt(W.center.x,W.center.y,0),m.updateProjectionMatrix()},X=()=>{B.root.quaternion.copy(U.rotation),B.orientation.rotation.z=E},Z=le(()=>{if(!V&&K.width&&K.height)try{(q.width!==K.width||q.height!==K.height||q.pixelRatio!==K.pixelRatio)&&(i.setDrawingBufferSize(K.width,K.height,K.pixelRatio),q=K);let e=performance.now();if(U.advance(e,G())&&(X(),Y(G())),D){let t=Math.min(1,(e-D.startedAt)/F),n=t*t*(3-2*t);E=D.from+(D.to-D.from)*n,t===1&&(D=null),X(),Y(G())}if(N&&`setAngle`in B){let t=Math.min(1,(e-N.startedAt)/I),n=t*t*(3-2*t);B.setAngle(N.from+(N.to-N.from)*n),t===1&&(N=null),Y(G())}W.advance(e,G()),me(),i.render(f,m),(U.needsFrame()||W.needsFrame()||D||N)&&Z.invalidate()}catch{n.onUnavailable()}}),he=(e=w)=>{let t=h(S,n.source.width,n.source.height),r=l!==n.source.width||u!==n.source.height;if(r||e!==w||t.aspect!==C.aspect||t.rawLandscape!==C.rawLandscape||t.rotation!==C.rotation){if(r){let e=s;s=o(),l=n.source.width,u=n.source.height,B.setDisplay(s,t),e.dispose()}let i=P(),a=j(i)&&i!==L;if(a&&(L=i),!O&&`setAngle`in B&&a){let e=z(T??180);f.remove(B.root),B.dispose(),B=R(e,t),f.add(B.root)}else!O&&!(`setAngle`in B)&&(e!==w||t.aspect!==C.aspect)?(f.remove(B.root),B.dispose(),B=b(s,t,e),f.add(B.root)):B.setDisplay(s,t);if(t.rotation!==C.rotation){if(e.id.startsWith(`android`)&&!(`setAngle`in B)&&!G()){let e=Math.atan2(Math.sin(t.rotation-E),Math.cos(t.rotation-E));D={from:E,to:E+e,startedAt:performance.now()}}else D=null,E=`setAngle`in B?0:t.rotation}C=t,w=e,X(),Y(!D)}X()},Q=t({load:y,onError:n.onModelError,install(e){let t=V?null:e?ee(e.asset,s,C):T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);N=null,f.remove(B.root),B.dispose(),O=e,t&&(B=t,f.add(B.root),A&&(O?B.orientation.add(A.asset):A.asset.removeFromParent()),X(),Y(!0),Z.invalidate())}}),$=t({load:y,onError:n.onModelError,install(e){let t=e?new _().setFromObject(e.asset):null;if(t&&(t.isEmpty()||![...t.min.toArray(),...t.max.toArray()].every(Number.isFinite)))throw Error(`Device accessory has invalid bounds`);A?.asset.removeFromParent(),A=e,M=t,!V&&(O&&A&&B.orientation.add(A.asset),Y(!0),Z.invalidate())}}),ge=e=>{$.set(e?.modelId===k?.id?e:null)},_e=e=>{e.preventDefault(),n.onUnavailable()};return n.canvas.addEventListener(`webglcontextlost`,_e),X(),Q.set(n.model??null),ge(n.accessory??null),{setModel(e){(e?.id!==k?.id||e?.url!==k?.url)&&$.set(null),k=e,Q.set(e)},setAccessory:ge,setFoldAngle(e){if(V||e===T)return;let t=T;if(T=e,!O){if(e===null||!(`setAngle`in B))f.remove(B.root),B.dispose(),B=e===null?b(s,C,w):R(e),f.add(B.root),D=null,E=e===null?C.rotation:0,N=null,X(),Y(!0);else{let n=z(t??e);G()?(N=null,B.setAngle(e),Y(!0)):N={from:n,to:e,startedAt:performance.now()}}Z.invalidate()}},frameUpdated(){V||(he(),s.needsUpdate=!0,Z.invalidate())},setScreen(e,t=w){V||(S=e,he(t),Z.invalidate())},resize(e,t,n){if(V||![e,t,n].every(Number.isFinite)||e<=0||t<=0)return;let r=Math.min(2,Math.max(1,n));(K.width!==e||K.height!==t||K.pixelRatio!==r)&&(K={width:e,height:t,pixelRatio:r},Y(!0),Z.invalidate())},screenPoint(e,t,n=!1){return V?null:(X(),B.screenPoint(e,t,m,n))},orbit(e,t){V||(U.orbit(e*K.width,t*K.height,performance.now()),Z.invalidate())},setInteractionActive(e,t){if(V)return;let n=performance.now();t===`orbit`?U.dragActive(e,n):(U.hold(e,n),W.hold(e,n)),Z.invalidate()},resetPose(){V||(U.reset(H,performance.now()),Z.invalidate())},dispose(){if(V)return;V=!0,Z.dispose();let e=O!==null;$.dispose(),Q.dispose(),n.canvas.removeEventListener(`webglcontextlost`,_e),f.remove(B.root),e||B.dispose(),s.dispose(),i.dispose(),i.forceContextLoss()}}}export{L as createPhoneViewer};
|
|
2
|
-
//# sourceMappingURL=phoneViewer-
|
|
1
|
+
import{S as e,x as t}from"./_chat-Du_FC4wO.js";import{B as n,C as r,E as i,F as a,H as o,I as s,L as c,N as l,O as u,R as d,T as f,U as p,_ as m,a as ee,b as te,c as h,d as g,f as _,g as ne,h as v,i as re,j as ie,k as ae,n as oe,o as y,p as se,r as ce,s as b,t as le,u as ue,v as x,w as de,x as S,z as C}from"./renderScheduler-DwOi4uKZ.js";var w=2.2,T=.075,E=.026,D=.004,O=.008,k=.042499999999999996,A=.07799999999999999,fe=2076/2152,j=e=>Number.isFinite(e)&&e>.75&&e<1.5;function M(e,t,n,r,i=0){let a=t===`left`?-e+n:D/2+i,o=t===`left`?-.004/2-i:e-n,s=-2.2/2+n,c=w/2-n,l=new C;return t===`left`?(l.moveTo(a+r,s),l.lineTo(o,s),l.lineTo(o,c),l.lineTo(a+r,c),l.quadraticCurveTo(a,c,a,c-r),l.lineTo(a,s+r),l.quadraticCurveTo(a,s,a+r,s)):(l.moveTo(a,s),l.lineTo(o-r,s),l.quadraticCurveTo(o,s,o,s+r),l.lineTo(o,c-r),l.quadraticCurveTo(o,c,o-r,c),l.lineTo(a,c)),l.closePath(),l}function N(e,t,n){let r=new C;return r.moveTo(-e/2+n,-t/2),r.lineTo(e/2-n,-t/2),r.quadraticCurveTo(e/2,-t/2,e/2,-t/2+n),r.lineTo(e/2,t/2-n),r.quadraticCurveTo(e/2,t/2,e/2-n,t/2),r.lineTo(-e/2+n,t/2),r.quadraticCurveTo(-e/2,t/2,-e/2,t/2-n),r.lineTo(-e/2,-t/2+n),r.quadraticCurveTo(-e/2,-t/2,-e/2+n,-t/2),r.closePath(),r}function P(e){return N(e-E*2-.02,w-E*2-.04,.07)}function pe(e,t,r,a=fe){let c=w-2*E,d=a*c/2+E,ee=new S,h=new S;ee.add(h);let g=new S,_=new S;h.add(g,_);let v=new ae({color:10726322,metalness:.9,roughness:.28}),re=new ae({color:12896976,metalness:.95,roughness:.16}),ie=new u({color:724240,metalness:.1,roughness:.2,clearcoat:1}),oe=new u({color:2896439,metalness:.35,roughness:.52,clearcoat:.4,clearcoatRoughness:.6}),y=new u({color:1711650,metalness:.55,roughness:.3,clearcoat:1}),ce=new u({color:397346,metalness:.6,roughness:.1,clearcoat:1}),b=new i({color:15919830}),le=new i({map:e,toneMapped:!1}),ue=new i({colorWrite:!1,depthWrite:!1}),x=new i({map:e,toneMapped:!1}),de=[v,re,ie,oe,y,ce,b,le,ue,x];g.position.z=k;let C=new S;C.position.z=-.042499999999999996,g.add(C);function D(e,t,r){let i=new f(new te(M(d,t,O,.1,O),{depth:T-O*2,bevelEnabled:!0,bevelSize:O,bevelThickness:O,bevelSegments:3,curveSegments:12}),v);i.position.z=-.0295,e.add(i);let a=new f(new n(M(d,t,.01,.095,.002),12),ie);a.position.z=.0385,e.add(a);let o=new f(new n(M(d,t===`left`?`right`:`left`,.01,.095,.002),12),r);o.name=`${t}-back`,o.rotation.y=Math.PI,o.position.set(0,0,-.075/2-.001),e.add(o);let s=new n(M(d,t,E,.076));s.computeBoundingBox();let c=new f(s,ue);return c.name=`${t}-inner-screen`,c.position.z=.0405,e.add(c),c}let j=D(C,`left`,ie),pe=D(_,`right`,oe),F=2*(d-E),I=new l(F,c,40,48),L=I.getAttribute(`position`),R=I.getAttribute(`uv`),z=new Float32Array(L.count);for(let e=0;e<L.count;e++){let t=L.getY(e),n=F/2,r=.076,i=Math.max(0,Math.abs(t)-.9980000000000001),a=n-r+Math.sqrt(Math.max(0,r*r-i*i)),o=Math.max(-a,Math.min(a,L.getX(e)));z[e]=o,R.setXY(e,o/F+.5,t/c+.5)}R.needsUpdate=!0;let B=new f(I,le);B.name=`continuous-inner-screen`,h.add(B);let V=.15,H=new f(new m(A,A,2.188,32,1,!1,Math.PI/2+V,Math.PI-V*2),re);H.name=`hinge-spine`,H.position.z=k,h.add(H);let U=new f(new n(P(d)),x);U.name=`cover-screen`,U.position.set(-d/2,0,-.075/2-.003),U.rotation.y=Math.PI,C.add(U);let W=new S;W.name=`rear-camera`;let G=.46,K=.2;W.position.set(d-.07-G/2,w/2-.08-K/2,-.075/2-.002),W.rotation.y=Math.PI,_.add(W);let q=new f(new te(N(G,K,.07),{depth:.02,bevelEnabled:!0,bevelSize:.008,bevelThickness:.006,bevelSegments:3,curveSegments:12}),y);q.name=`camera-plate`,W.add(q);for(let[e,t]of[[-.14,.05],[-.01,.05],[.105,.036]]){let n=new f(new m(t+.012,t+.012,.012,32),v);n.rotation.x=Math.PI/2,n.position.set(e,0,.030000000000000002),W.add(n);let r=new f(new ne(t,32),ce);r.name=`camera-lens`,r.position.set(e,0,.036500000000000005),W.add(r)}let J=new f(new ne(.018,20),b);J.position.set(.185,.045,.026500000000000003),W.add(J);for(let[e,t]of[[.52,.16],[.2,.3]]){let n=new f(new se(.02,t,T*.45),v);n.position.set(d+.008,e,0),_.add(n)}let Y=new s,me=new o,X=new p,Z=null,he=t,Q=r,$=()=>{let e=Q>=90;B.visible=e,j.visible=e,pe.visible=e,U.visible=!e},ge=e=>{Q=Math.max(0,Math.min(180,e)),g.rotation.y=Math.PI*(1-Q/180),H.rotation.y=g.rotation.y/2;let t=g.rotation.y,n=Math.cos(t),r=Math.sin(t),i=-.0010000000000000009;for(let e=0;e<L.count;e++){let t=z[e];t<0?L.setXYZ(e,t*n+i*r,L.getY(e),-t*r+i*n+k):L.setXYZ(e,t,L.getY(e),.041499999999999995)}L.needsUpdate=!0,I.computeBoundingBox(),I.computeBoundingSphere(),$()},_e=(e,t)=>{he=t,le.map=e,x.map=e,U.geometry.computeBoundingBox();let n=U.geometry.boundingBox,r=U.geometry.getAttribute(`uv`),i=U.geometry.getAttribute(`position`);for(let e=0;e<r.count;e++){let t=(i.getX(e)-n.min.x)/(n.max.x-n.min.x),a=(i.getY(e)-n.min.y)/(n.max.y-n.min.y);r.setXY(e,t,a)}r.needsUpdate=!0,$()};return ge(r),_e(e,t),{root:ee,orientation:h,width:d*2,height:w,innerAspect:a,setAngle:ge,setDisplay:_e,screenPoint(e,t,n,r=!1){h.updateWorldMatrix(!0,!0),n.updateMatrixWorld(!0),me.set(e*2-1,1-t*2),Y.setFromCamera(me,n);let i=U.visible?[U]:[j,pe],a=Y.intersectObjects(i,!1)[0];if(!a&&!r)return Z=null,null;let o=a?.object??(Z?.visible?Z:i[0]);if(!o)return null;if(a&&(Z=o),a)X.copy(a.point);else{let e=new p(0,0,1).transformDirection(o.matrixWorld),t=new p().setFromMatrixPosition(o.matrixWorld),n=e.dot(t.clone().sub(Y.ray.origin))/e.dot(Y.ray.direction);if(!Number.isFinite(n))return null;X.copy(Y.ray.direction).multiplyScalar(n).add(Y.ray.origin)}o.worldToLocal(X);let s=o.geometry.boundingBox,c=Math.max(0,Math.min(1,(X.x-s.min.x)/(s.max.x-s.min.x))),l=Math.max(0,Math.min(1,(s.max.y-X.y)/(s.max.y-s.min.y))),u=o===U?c:(o===j?c:1+c)/2;return he.rotation===Math.PI?{x:1-u,y:1-l}:{x:u,y:l}},dispose(){ee.traverse(e=>{e instanceof f&&e.geometry.dispose()});for(let e of de)e.dispose()}}}var F=450,I=850;function L(n){let i=new ue({canvas:n.canvas,alpha:!0,antialias:!0,powerPreference:`low-power`});i.outputColorSpace=c;let o=()=>{let e=new v(n.source);return e.colorSpace=c,e.minFilter=r,e.magFilter=r,e.generateMipmaps=!1,e},s=o(),l=n.source.width,u=n.source.height,f=new d,m=new ie(32,1,.1,30);m.position.z=5.5;let te=new g(16777215,2.4),ne=new x(15003135,5);ne.position.set(-3,4,5);let ae=new x(16777215,4);ae.position.set(3,1,-3);let se=new x(10464468,2);se.position.set(-2,-2,-4),f.add(te,ne,ae,se);let S=null,C=h(S,n.source.width,n.source.height),w=n.profile??e,T=n.foldAngle??null,E=T!==null&&w.id.startsWith(`android`)?0:C.rotation,D=null,O=null,k=n.model??null,A=null,M=null,N=null,P=()=>n.source.width/n.source.height,L=j(P())?P():fe,R=(e,t=C)=>pe(s,t,e,L),z=e=>{if(!N)return e;let t=Math.min(1,(performance.now()-N.startedAt)/I),n=t*t*(3-2*t);return N.from+(N.to-N.from)*n},B=T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);f.add(B.root);let V=!1,H=new a,U=ce({choose:e=>oe(e,[{rotation:new a,yawLimit:Math.PI/3}]).rotation});U.setPose(H,performance.now(),!0);let W=re(),G=()=>globalThis.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,K={width:0,height:0,pixelRatio:1},q={width:0,height:0,pixelRatio:0},J=null,Y=(e=!1)=>{if(!K.width||!K.height)return;m.aspect=K.width/K.height;let t=new _(new p(-B.width/2,-B.height/2,0),new p(B.width/2,B.height/2,0));O&&M&&t.union(M),t.applyMatrix4(new de().makeRotationZ(E));let r=t.getSize(new p),i=r.x/r.y;i!==J&&(J=i,n.onFramingAspect?.(i)),B.root.updateMatrixWorld(!0),W.setBounds(new _().setFromObject(B.root),m.fov*Math.PI/360,m.aspect,performance.now(),e),me()},me=()=>{m.position.set(W.center.x,W.center.y,W.distance()),m.lookAt(W.center.x,W.center.y,0),m.updateProjectionMatrix()},X=()=>{B.root.quaternion.copy(U.rotation),B.orientation.rotation.z=E},Z=le(()=>{if(!V&&K.width&&K.height)try{(q.width!==K.width||q.height!==K.height||q.pixelRatio!==K.pixelRatio)&&(i.setDrawingBufferSize(K.width,K.height,K.pixelRatio),q=K);let e=performance.now();if(U.advance(e,G())&&(X(),Y(G())),D){let t=Math.min(1,(e-D.startedAt)/F),n=t*t*(3-2*t);E=D.from+(D.to-D.from)*n,t===1&&(D=null),X(),Y(G())}if(N&&`setAngle`in B){let t=Math.min(1,(e-N.startedAt)/I),n=t*t*(3-2*t);B.setAngle(N.from+(N.to-N.from)*n),t===1&&(N=null),Y(G())}W.advance(e,G()),me(),i.render(f,m),(U.needsFrame()||W.needsFrame()||D||N)&&Z.invalidate()}catch{n.onUnavailable()}}),he=(e=w)=>{let t=h(S,n.source.width,n.source.height),r=l!==n.source.width||u!==n.source.height;if(r||e!==w||t.aspect!==C.aspect||t.rawLandscape!==C.rawLandscape||t.rotation!==C.rotation){if(r){let e=s;s=o(),l=n.source.width,u=n.source.height,B.setDisplay(s,t),e.dispose()}let i=P(),a=j(i)&&i!==L;if(a&&(L=i),!O&&`setAngle`in B&&a){let e=z(T??180);f.remove(B.root),B.dispose(),B=R(e,t),f.add(B.root)}else!O&&!(`setAngle`in B)&&(e!==w||t.aspect!==C.aspect)?(f.remove(B.root),B.dispose(),B=b(s,t,e),f.add(B.root)):B.setDisplay(s,t);if(t.rotation!==C.rotation){if(e.id.startsWith(`android`)&&!(`setAngle`in B)&&!G()){let e=Math.atan2(Math.sin(t.rotation-E),Math.cos(t.rotation-E));D={from:E,to:E+e,startedAt:performance.now()}}else D=null,E=`setAngle`in B?0:t.rotation}C=t,w=e,X(),Y(!D)}X()},Q=t({load:y,onError:n.onModelError,install(e){let t=V?null:e?ee(e.asset,s,C):T!==null&&w.id.startsWith(`android`)?R(T):b(s,C,w);N=null,f.remove(B.root),B.dispose(),O=e,t&&(B=t,f.add(B.root),A&&(O?B.orientation.add(A.asset):A.asset.removeFromParent()),X(),Y(!0),Z.invalidate())}}),$=t({load:y,onError:n.onModelError,install(e){let t=e?new _().setFromObject(e.asset):null;if(t&&(t.isEmpty()||![...t.min.toArray(),...t.max.toArray()].every(Number.isFinite)))throw Error(`Device accessory has invalid bounds`);A?.asset.removeFromParent(),A=e,M=t,!V&&(O&&A&&B.orientation.add(A.asset),Y(!0),Z.invalidate())}}),ge=e=>{$.set(e?.modelId===k?.id?e:null)},_e=e=>{e.preventDefault(),n.onUnavailable()};return n.canvas.addEventListener(`webglcontextlost`,_e),X(),Q.set(n.model??null),ge(n.accessory??null),{setModel(e){(e?.id!==k?.id||e?.url!==k?.url)&&$.set(null),k=e,Q.set(e)},setAccessory:ge,setFoldAngle(e){if(V||e===T)return;let t=T;if(T=e,!O){if(e===null||!(`setAngle`in B))f.remove(B.root),B.dispose(),B=e===null?b(s,C,w):R(e),f.add(B.root),D=null,E=e===null?C.rotation:0,N=null,X(),Y(!0);else{let n=z(t??e);G()?(N=null,B.setAngle(e),Y(!0)):N={from:n,to:e,startedAt:performance.now()}}Z.invalidate()}},frameUpdated(){V||(he(),s.needsUpdate=!0,Z.invalidate())},setScreen(e,t=w){V||(S=e,he(t),Z.invalidate())},resize(e,t,n){if(V||![e,t,n].every(Number.isFinite)||e<=0||t<=0)return;let r=Math.min(2,Math.max(1,n));(K.width!==e||K.height!==t||K.pixelRatio!==r)&&(K={width:e,height:t,pixelRatio:r},Y(!0),Z.invalidate())},screenPoint(e,t,n=!1){return V?null:(X(),B.screenPoint(e,t,m,n))},orbit(e,t){V||(U.orbit(e*K.width,t*K.height,performance.now()),Z.invalidate())},setInteractionActive(e,t){if(V)return;let n=performance.now();t===`orbit`?U.dragActive(e,n):(U.hold(e,n),W.hold(e,n)),Z.invalidate()},resetPose(){V||(U.reset(H,performance.now()),Z.invalidate())},dispose(){if(V)return;V=!0,Z.dispose();let e=O!==null;$.dispose(),Q.dispose(),n.canvas.removeEventListener(`webglcontextlost`,_e),f.remove(B.root),e||B.dispose(),s.dispose(),i.dispose(),i.forceContextLoss()}}}export{L as createPhoneViewer};
|
|
2
|
+
//# sourceMappingURL=phoneViewer-CVOLU68D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-
|
|
1
|
+
import"./chunk-FOHPRMQF-DzxwRta7.js";import{b as e}from"./mermaid-parser.core-D2hAGRv3.js";export{e as createPieServices};
|
package/dist/client/assets/{pieDiagram-E7YTZNPT-i8FgTMai.js → pieDiagram-E7YTZNPT-CR9uQOKX.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e}from"./mermaid-parser.core-
|
|
1
|
+
import{n as e}from"./mermaid-parser.core-D2hAGRv3.js";import{n as t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,K as i,U as a,a as o,c as s,f as c,v as l,w as u,x as d,y as f}from"./chunk-DU6HZSFF-C3RStRBi.js";import{t as p}from"./ordinal-BDEzSJ7C.js";import{n as m}from"./path-fybaL0A-.js";import{m as h}from"./dist-B_J_HbC0.js";import{t as g}from"./arc-DgcGdgmL.js";import{t as _}from"./array-BifhSqXX.js";import{i as v,p as y}from"./chunk-75Z2AOVW-CUqo_4ua.js";import{t as b}from"./chunk-JWPE2WC7-DVXcaiue.js";import{f as x}from"./mermaid.core-DWtHy2iz.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=m(0),i=m(h),a=m(0);function o(o){var s,c=(o=_(o)).length,l,u,d=0,f=Array(c),p=Array(c),m=+r.apply(this,arguments),g=Math.min(h,Math.max(-h,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),b=y*(g<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(g-c*b)/d:0;s<c;++s,m=v)l=f[s],x=p[l],v=m+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:m,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:m(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:m(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:m(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:m(+e),o):a},o}var T=c.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,o()},`clear`),setDiagramTitle:i,getDiagramTitle:u,setAccTitle:a,getAccTitle:f,setAccDescription:r,getAccDescription:l,addSection:t(({label:e,value:t})=>{if(t<0)throw Error(`"${e}" has invalid value: ${t}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(e)||(D.set(e,t),n.debug(`added new section: ${e}, with value: ${t}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let r=await e(`pie`,t);n.debug(r),j(r,A)},`parse`)},N=t(e=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -37,4 +37,4 @@ import{n as e}from"./mermaid-parser.core-B3cYmj0d.js";import{n as t}from"./chunk
|
|
|
37
37
|
}
|
|
38
38
|
`,`getStyles`),P=t(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:t((e,t,r,i)=>{n.debug(`rendering pie chart
|
|
39
39
|
`+e);let a=i.db,o=d(),c=v(a.getConfig(),o.pie),l=x(t),u=l.append(`g`);u.attr(`transform`,`translate(225,225)`);let{themeVariables:f}=o,[m]=y(f.pieOuterStrokeWidth);m??=2;let h=c.legendPosition,_=c.textPosition,b=c.donutHole>0&&c.donutHole<=.9?c.donutHole:0,S=g().innerRadius(b*185).outerRadius(185),C=g().innerRadius(185*_).outerRadius(185*_),w=u.append(`g`);w.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let T=a.getSections(),E=P(T),D=[f.pie1,f.pie2,f.pie3,f.pie4,f.pie5,f.pie6,f.pie7,f.pie8,f.pie9,f.pie10,f.pie11,f.pie12],O=0;T.forEach(e=>{O+=e});let k=E.filter(e=>(e.data.value/O*100).toFixed(0)!==`0`),A=p(D).domain([...T.keys()]);w.selectAll(`mySlices`).data(k).enter().append(`path`).attr(`d`,S).attr(`fill`,e=>A(e.data.label)).attr(`class`,e=>{let t=`pieCircle`;return c.highlightSlice===`hover`?t+=` highlightedOnHover`:c.highlightSlice===e.data.label&&(t+=` highlighted`),t}),w.selectAll(`mySlices`).data(k).enter().append(`text`).text(e=>(e.data.value/O*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+C.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let j=u.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-200).attr(`class`,`pieTitleText`),M=[...T.entries()].map(([e,t])=>({label:e,value:t})),N=u.selectAll(`.legend`).data(M).enter().append(`g`).attr(`class`,`legend`);N.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>A(e.label)).style(`stroke`,e=>A(e.label)),N.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let F=Math.max(...N.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),I=450,L=490,R=M.length*22;switch(h){case`center`:N.attr(`transform`,(e,t)=>{let n=22*M.length/2,r=-F/2-22,i=t*22-n;return`translate(`+r+`,`+i+`)`});break;case`top`:I+=R,N.attr(`transform`,(e,t)=>`translate(${-F/2-22}, ${t*22-185})`),w.attr(`transform`,()=>`translate(0, ${R+22})`);break;case`bottom`:I+=R,N.attr(`transform`,(e,t)=>{let n=-F/2-22,r=t*22- -207;return`translate(`+n+`,`+r+`)`});break;case`left`:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(-207,`+(t*22-n)+`)`}),w.attr(`transform`,()=>`translate(${F+18+4}, 0)`);break;default:L+=22+F,N.attr(`transform`,(e,t)=>{let n=22*M.length/2;return`translate(216,`+(t*22-n)+`)`})}let z=j.node()?.getBoundingClientRect().width??0,B=225-z/2,V=225+z/2,H=Math.min(0,B),U=Math.max(L,V)-H;l.attr(`viewBox`,`${H} 0 ${U} ${I}`),s(l,I,U,c.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
|
|
40
|
-
//# sourceMappingURL=pieDiagram-E7YTZNPT-
|
|
40
|
+
//# sourceMappingURL=pieDiagram-E7YTZNPT-CR9uQOKX.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{At as e}from"./utils-
|
|
1
|
+
import{At as e}from"./utils-Cbsb1ks0.js";import{c as t}from"./runtime-Dydpcwo9.js";var n=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
2
2
|
<symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
|
|
3
3
|
<path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
|
|
4
4
|
</symbol>
|
|
@@ -231,4 +231,4 @@ import{At as e}from"./utils-BxISc9RR.js";import{c as t}from"./runtime-Bsb2I_n2.j
|
|
|
231
231
|
<path style="fill: light-dark(#84848a, #adadb1)" d="M.014 0h5.34v2.652H2.888v18.681h2.468V24H.015V0Zm17.622 5.049v2.78h-4.274v12.935h-3.008V7.83H6.059V5.05h11.577ZM23.986 24h-5.34v-2.652h2.467V2.667h-2.468V0h5.34v24Z" />
|
|
232
232
|
</symbol>
|
|
233
233
|
</svg>`,Z={set:`complete`,colored:!0,spriteSheet:X,byFileName:{"package.json":`file-tree-builtin-npm`,"tsconfig.json":`file-tree-builtin-typescript`,"agents.md":`t3-file-icon-agents`,"pnpm-lock.yaml":`t3-file-icon-pnpm`,"pnpm-workspace.yaml":`t3-file-icon-pnpm`},byFileExtension:{...Object.fromEntries(e.map(e=>[e,`t3-file-icon-video`])),cs:`t3-file-icon-csharp`,csx:`t3-file-icon-csharp`,dart:`t3-file-icon-dart`,diff:`t3-file-icon-diff`,patch:`t3-file-icon-diff`,ex:`t3-file-icon-elixir`,exs:`t3-file-icon-elixir`,hs:`t3-file-icon-haskell`,lhs:`t3-file-icon-haskell`,java:`t3-file-icon-java`,kt:`t3-file-icon-kotlin`,kts:`t3-file-icon-kotlin`,lua:`t3-file-icon-lua`,php:`t3-file-icon-php`,ps1:`t3-file-icon-powershell`,psm1:`t3-file-icon-powershell`,psd1:`t3-file-icon-powershell`,r:`t3-file-icon-r`,scala:`t3-file-icon-scala`,toml:`t3-file-icon-toml`,xml:`t3-file-icon-xml`}},Q=J(Z),De={bash:`sh`,csharp:`cs`,elixir:`ex`,haskell:`hs`,javascript:`js`,jsx:`jsx`,kotlin:`kt`,markdown:`md`,mdx:`mdx`,plaintext:`txt`,powershell:`ps1`,python:`py`,ruby:`rb`,rust:`rs`,shell:`sh`,shellscript:`sh`,swift:`swift`,typescript:`ts`,tsx:`tsx`,yaml:`yml`};function Oe(e){let t=e.lastIndexOf(`/`);return t===-1?e:e.slice(t+1)}var ke={dockerfile:`Dockerfile`};function Ae(e){let t=e.toLowerCase();return ke[t]??`file.${De[t]??t}`}function $(e,n,r){if(n===`directory`)return null;let i=Q.resolveIcon(`file-tree-icon-file`,e);return i?.token==="default"&&r?Q.resolveIcon(`file-tree-icon-file`,t(e,r)):i}function je(e){return $(e,`file`)?.token!=="default"}function Me(){if(typeof document>`u`||document.getElementById(Y))return;let e=document.createElement(`div`);e.id=Y,e.setAttribute(`aria-hidden`,`true`),e.style.position=`absolute`,e.style.width=`0`,e.style.height=`0`,e.style.overflow=`hidden`,e.style.pointerEvents=`none`,e.innerHTML=`${G(`complete`)}${X}`,document.body.prepend(e)}export{$ as a,K as c,je as i,G as l,Oe as n,Ae as o,Me as r,J as s,Z as t,xe as u};
|
|
234
|
-
//# sourceMappingURL=pierre-icons-
|
|
234
|
+
//# sourceMappingURL=pierre-icons-YFKnGmUq.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$r as n,Ai as r,Ci as i,Cr as a,Di as o,Dr as s,Ea as c,Ei as l,Er as u,Gi as d,Gr as f,Ia as p,Jr as m,Na as h,Ni as g,Nr as _,Oa as v,Si as y,Ti as b,Va as x,Wr as S,Yr as C,_r as w,ai as T,bi as E,br as D,ca as O,ci as k,co as A,di as j,do as M,dr as N,ei as P,fo as F,ga as I,ha as L,ho as R,hr as z,ii as B,jx as V,ka as H,la as U,li as W,ni as G,oa as K,oi as ee,oo as te,ri as ne,si as re,so as ie,t as q,ti as ae,to as oe,ua as se,ui as ce,uo as le,va as ue,vi as J,vr as de,wi as fe,wr as pe,xi as me,xr as he,yo as Y}from"./utils-BxISc9RR.js";import{d as ge}from"./tooltip-B0rhqi5b.js";var X=e(t()),_e=X.createContext(void 0);function Z(e){let t=X.useContext(_e);if(t===void 0&&!e)throw Error(Y(47));return t}var ve=e(se());function ye(){return{...n(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}var be={...ae,disabled:J(e=>e.disabled),instantType:J(e=>e.instantType),openMethod:J(e=>e.openMethod),openChangeReason:J(e=>e.openChangeReason),modal:J(e=>e.modal),focusManagerModal:J(e=>e.focusManagerModal),stickIfOpen:J(e=>e.stickIfOpen),titleElementId:J(e=>e.titleElementId),descriptionElementId:J(e=>e.descriptionElementId),openOnHover:J(e=>e.openOnHover),closeDelay:J(e=>e.closeDelay),hasViewport:J(e=>e.hasViewport)},xe=class e extends j{constructor(e,t,n=!1){let r={...ye(),...e},i=new G;r.open&&e?.mounted===void 0&&(r.mounted=!0),r.floatingRootContext=P(i,t,n),super(r,{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:X.createRef(),beforeContentFocusGuardRef:X.createRef(),stickIfOpenTimeout:new K,triggerElements:i},be)}setOpen=(e,t)=>{let n=t.reason===oe,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null);t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)};let a=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&a!=null&&(t.trigger=this.context.triggerElements.getById(a)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let n={open:e,openChangeReason:t.reason};B(n,e,t.trigger),this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),ve.flushSync(o)):o(),r||i?this.set(`instantType`,r?`click`:`dismiss`):t.reason===`focus-out`?this.set(`instantType`,`focus`):this.set(`instantType`,void 0)};static useStore(t,n){let{store:r,internalStore:i}=W(t,(t,r)=>new e(n,t,r));return X.useEffect(()=>i?.disposeEffect(),[i]),r}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()},Q=e(L());function Se({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:u=null}=e,d=xe.useStore(s?.store,{modal:o,open:r,openProp:n,activeTriggerId:u,triggerIdProp:c});w(()=>{n===void 0&&d.state.open===!1&&r===!0&&d.update({open:!0,activeTriggerId:u})}),d.useControlledProp(`openProp`,n),d.useControlledProp(`triggerIdProp`,c);let f=d.useState(`open`),p=d.useState(`mounted`),m=d.useState(`payload`),h=l()!=null;d.useContextCallback(`onOpenChange`,i),d.useContextCallback(`onOpenChangeComplete`,a),k(d,f),T(d);let{forceUnmount:g}=ee(f,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:o,nested:h}),X.useEffect(()=>{f||d.context.stickIfOpenTimeout.clear()},[d,f]);let _=X.useCallback(()=>{d.setOpen(!1,I(x))},[d]);X.useImperativeHandle(e.actionsRef,()=>({unmount:g,close:_}),[g,_]);let v=f||p,y=X.useMemo(()=>({store:d}),[d]);return(0,Q.jsxs)(_e.Provider,{value:y,children:[v&&(0,Q.jsx)(we,{store:d,modal:o}),typeof t==`function`?t({payload:m}):t]})}function Ce(e){return Z(!0)?(0,Q.jsx)(Se,{props:e}):(0,Q.jsx)(fe,{children:(0,Q.jsx)(Se,{props:e})})}function we({store:e,modal:t}){let n=e.useState(`floatingRootContext`),r=E(n,{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),i=r.reference??R,a=r.trigger??R,o=X.useMemo(()=>F(ne,r.floating),[r.floating]);return re(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:o}),null}var Te=X.forwardRef(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,nativeButton:s=!0,handle:l,payload:u,openOnHover:p=!1,delay:h=300,closeDelay:g=0,id:_,...v}=e,y=Z(!0),b=l?.store??y?.store;if(!b)throw Error(Y(74));let x=ue(_),S=b.useState(`isTriggerActive`,x),C=b.useState(`floatingRootContext`),w=b.useState(`isOpenedByTrigger`,x),T=b.useState(`triggerPopupId`,x),E=X.useRef(null),{registerTrigger:D,isMountedByThisTrigger:O}=ce(x,E,b,{payload:u,disabled:o,openOnHover:p,closeDelay:g}),k=b.useState(`openChangeReason`),j=b.useState(`stickIfOpen`),P=b.useState(`openMethod`),F=b.useState(`focusManagerModal`),I=m(C,{enabled:C!=null&&p&&(P!==`touch`||k!==`trigger-press`),mouseOnly:!0,move:!1,handleClose:f(),restMs:h,delay:{close:g},triggerElementRef:E,isActiveTrigger:S,isClosing:()=>b.select(`transitionStatus`)===`ending`}),L=me(C,{enabled:C!=null,stickIfOpen:j}),R=z(()=>b.select(`open`),e=>{b.set(`openMethod`,e)}),B=b.useState(`triggerProps`,O),{getButtonProps:V,buttonRef:H}=c({disabled:o,native:s}),U={open(e){return e&&k===`trigger-press`?ie.open(e):A.open(e)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:K}=N(b,E),ee=M(`button`,e,{state:{disabled:o,open:w},ref:[H,t,D,E],props:[L.reference,I,B,R,{[r]:``,id:x,"aria-haspopup":`dialog`,"aria-expanded":w,"aria-controls":T},v,V],stateAttributesMapping:U});return O&&!F?(0,Q.jsxs)(X.Fragment,{children:[(0,Q.jsx)(d,{ref:W,onFocus:G}),(0,Q.jsx)(X.Fragment,{children:ee},x),(0,Q.jsx)(d,{ref:b.context.triggerFocusTargetRef,onFocus:K})]}):(0,Q.jsx)(X.Fragment,{children:ee},x)}),Ee=X.createContext(void 0);function De(){let e=X.useContext(Ee);if(e===void 0)throw Error(Y(45));return e}var Oe=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Z();return i.useState(`mounted`)||n?(0,Q.jsx)(Ee.Provider,{value:n,children:(0,Q.jsx)(o,{ref:t,...r})}):null}),ke=X.createContext(void 0);function Ae(){let e=X.useContext(ke);if(!e)throw Error(Y(46));return e}var je=X.forwardRef(function(e,t){let{render:n,className:r,style:o,anchor:s,positionMethod:c=`absolute`,side:l=`bottom`,align:d=`center`,sideOffset:f=0,alignOffset:p=0,collisionBoundary:m=`clipping-ancestors`,collisionPadding:h=5,arrowPadding:_=5,sticky:y=!1,disableAnchorTracking:x=!1,collisionAvoidance:S=g,...C}=e,{store:w}=Z(),T=De(),E=b(),O=w.useState(`floatingRootContext`),k=w.useState(`mounted`),A=w.useState(`open`),j=w.useState(`openChangeReason`),M=w.useState(`activeTriggerElement`),N=w.useState(`modal`),P=w.useState(`openMethod`),F=w.useState(`positionerElement`),I=w.useState(`instantType`),L=w.useState(`transitionStatus`),R=w.useState(`hasViewport`),z=X.useRef(null),B=U(F,!1,!1),V=a({anchor:s,floatingRootContext:O,positionMethod:c,mounted:k,side:l,sideOffset:f,align:d,alignOffset:p,arrowPadding:_,collisionBoundary:m,collisionPadding:h,sticky:y,disableAnchorTracking:x,keepMounted:T,nodeId:E,collisionAvoidance:S,adaptiveOrigin:R?pe:void 0}),H=O.useState(`domReferenceElement`);v(()=>{let e=H,t=z.current;if(e&&(z.current=e),t&&e&&e!==t){w.set(`instantType`,void 0);let e=new AbortController;return B(()=>{w.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[H,B,w]),de(A&&N===!0&&j!==`trigger-hover`,P===`touch`,F,M);let W=X.useCallback(e=>{w.set(`positionerElement`,e)},[w]),G={open:A,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:I},K=D(e,G,{styles:V.positionerStyles,transitionStatus:L,props:C,refs:[t,W],hidden:!k,inert:!A});return(0,Q.jsxs)(ke.Provider,{value:V,children:[k&&N===!0&&j!==`trigger-hover`&&(0,Q.jsx)(he,{ref:w.context.internalBackdropRef,inert:u(!A),cutout:M}),(0,Q.jsx)(i,{id:E,children:K})]})}),Me=X.createContext(void 0);function Ne(){let[e,t]=X.useState(0),n=H(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:X.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function Pe(e){let{value:t,children:n}=e;return(0,Q.jsx)(Me.Provider,{value:t,children:n})}function Fe(){let e=X.useContext(Me);v(()=>e?.register(),[e])}var Ie={...te,...le},Le=X.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...c}=e,{store:l}=Z(),u=Ae(),d=S(!0)!=null,{context:f,hasClosePart:p}=Ne(),m=l.useState(`open`),g=l.useState(`openMethod`),v=l.useState(`instantType`),b=l.useState(`transitionStatus`),x=l.useState(`popupProps`),w=l.useState(`titleElementId`),T=l.useState(`descriptionElementId`),E=l.useState(`modal`),D=l.useState(`mounted`),k=l.useState(`openChangeReason`),A=l.useState(`activeTriggerElement`),j=l.useState(`floatingRootContext`),N=j.useState(`floatingId`),P=l.useState(`disabled`),F=l.useState(`openOnHover`),I=l.useState(`closeDelay`),L=c.id??N;O({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),C(j,{enabled:F&&!P,closeDelay:I});function R(e){return e!==`touch`||l.context.popupRef.current}let z=a===void 0?R:a,B=E!==!1&&p;l.useSyncedValue(`focusManagerModal`,B);let V=X.useCallback(e=>{l.set(`popupElement`,e)},[l]),H={open:m,side:u.side,align:u.align,instant:v,transitionStatus:b},U=M(`div`,e,{state:H,ref:[t,l.context.popupRef,V],props:[x,{id:L,role:`dialog`,...ne,"aria-labelledby":w,"aria-describedby":T,onKeyDown(e){d&&_.has(e.key)&&e.stopPropagation()}},s(b),c],stateAttributesMapping:Ie});return(0,Q.jsx)(y,{context:j,openInteractionType:g,modal:B,disabled:!D||k===`trigger-hover`,initialFocus:z,returnFocus:o,restoreFocus:`popup`,previousFocusableElement:h(A)?A:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,Q.jsx)(Pe,{value:f,children:U})})}),Re=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Z(),s=ue(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),M(`h2`,e,{ref:t,props:[{id:s},a]})}),ze=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{buttonRef:l,getButtonProps:u}=c({disabled:a,focusableWhenDisabled:!1,native:o}),{store:d}=Z();return Fe(),M(`button`,e,{ref:[t,l],props:[{onClick(e){d.setOpen(!1,I(p,e.nativeEvent))}},s,u]})}),Be=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({}),Ve={activationDirection:e=>e?{"data-activation-direction":e}:null},He=X.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{store:s}=Z(),{side:c}=Ae(),l=s.useState(`instantType`),{children:u,state:d}=ge({store:s,side:c,cssVars:Be,children:a}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:l};return M(`div`,e,{state:f,ref:t,props:[o,{children:u}],stateAttributesMapping:Ve})}),Ue=class{constructor(){this.store=new xe}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error(Y(80,e));this.store.setOpen(!0,I(x,void 0,t))}close(){this.store.setOpen(!1,I(x,void 0,void 0))}get isOpen(){return this.store.select(`open`)}};function We(){return new Ue}var $=V(),Ge=We,Ke=Ce;function qe(e){let t=(0,$.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Te,{className:r,"data-slot":`popover-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Je={auto:``,sm:`w-64`,md:`w-80`,lg:`w-96`},Ye={default:`py-4 [--viewport-inline-padding:--spacing(4)]`,compact:`py-2 [--viewport-inline-padding:--spacing(3)]`,none:`rounded-[calc(var(--radius-2xl)-1px)] py-0 [--viewport-inline-padding:0px]`};function Xe(e){let t=(0,$.c)(49),n,r,i,a,o,s,c,l,u,d,f,p,m,h;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14]):({children:r,className:i,padding:s,variant:c,width:l,side:u,align:d,sideOffset:f,alignOffset:p,collisionAvoidance:a,tooltipStyle:m,keepMounted:h,anchor:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h);let g=s===void 0?`default`:s,_=c===void 0?`default`:c,v=l===void 0?`auto`:l,y=u===void 0?`bottom`:u,b=d===void 0?`center`:d,x=f===void 0?4:f,S=p===void 0?0:p,C=m!==void 0&&m,w=h!==void 0&&h,T=w?`div`:He,E=_===`panel`?0:void 0,D=_===`panel`?`z-(--z-sheet) w-[min(calc(var(--thread-details-panel-width)+--spacing(4)),calc(var(--anchor-width)---spacing(2)))] transition-[top] duration-150 ease-out data-instant:transition-[top] motion-reduce:transition-none motion-reduce:data-instant:transition-none`:`z-[130]`,O;t[15]===D?O=t[16]:(O=q(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-transform data-instant:transition-none`,D),t[15]=D,t[16]=O);let k=_!==`panel`&&`dropdown-glass`,A=C&&`w-fit text-balance rounded-md text-xs shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]`,j=!C&&_!==`panel`&&`shadow-[0_16px_40px_-18px_rgb(0_0_0/55%)] dark:shadow-[0_18px_44px_-18px_rgb(0_0_0/80%)]`,M;t[17]!==i||t[18]!==k||t[19]!==A||t[20]!==j||t[21]!==_||t[22]!==v?(M=q(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-2xl text-popover-foreground outline-none transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,k,A,j,v!==`auto`&&[`max-w-[calc(100vw-2rem)]`,Je[v]],_===`panel`&&`w-full overflow-visible rounded-none border-0 bg-transparent shadow-none before:hidden [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i),t[17]=i,t[18]=k,t[19]=A,t[20]=j,t[21]=_,t[22]=v,t[23]=M):M=t[23];let N=C&&g==="default"?`py-1 [--viewport-inline-padding:--spacing(2)]`:Ye[g],P=!C&&`not-data-transitioning:overflow-y-auto`,F=_===`panel`&&`overflow-visible py-2 [--viewport-inline-padding:--spacing(2)]`,I;t[24]!==N||t[25]!==P||t[26]!==F?(I=q(`relative size-full max-h-(--available-height) overflow-clip px-(--viewport-inline-padding) has-data-[slot=calendar]:p-2 data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,N,P,F),t[24]=N,t[25]=P,t[26]=F,t[27]=I):I=t[27];let L;t[28]!==T||t[29]!==r||t[30]!==I?(L=(0,Q.jsx)(T,{className:I,"data-slot":`popover-viewport`,children:r}),t[28]=T,t[29]=r,t[30]=I,t[31]=L):L=t[31];let R;t[32]!==o||t[33]!==M||t[34]!==L?(R=(0,Q.jsx)(Le,{className:M,"data-slot":`popover-popup`,...o,children:L}),t[32]=o,t[33]=M,t[34]=L,t[35]=R):R=t[35];let z;t[36]!==b||t[37]!==S||t[38]!==n||t[39]!==a||t[40]!==y||t[41]!==x||t[42]!==E||t[43]!==O||t[44]!==R?(z=(0,Q.jsx)(je,{align:b,alignOffset:S,anchor:n,collisionAvoidance:a,collisionPadding:E,className:O,"data-slot":`popover-positioner`,side:y,sideOffset:x,children:R}),t[36]=b,t[37]=S,t[38]=n,t[39]=a,t[40]=y,t[41]=x,t[42]=E,t[43]=O,t[44]=R,t[45]=z):z=t[45];let B;return t[46]!==w||t[47]!==z?(B=(0,Q.jsx)(Oe,{keepMounted:w,children:z}),t[46]=w,t[47]=z,t[48]=B):B=t[48],B}function Ze(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(ze,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}function Qe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`font-semibold text-sm leading-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Re,{className:i,"data-slot":`popover-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Qe as a,Xe as i,Ze as n,qe as o,Ge as r,Ke as t};
|
|
2
|
-
//# sourceMappingURL=popover-
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{$r as n,Ai as r,Ci as i,Cr as a,Di as o,Dr as s,Ea as c,Ei as l,Er as u,Gi as d,Gr as f,Ia as p,Jr as m,Mx as h,Na as g,Ni as _,Nr as v,Oa as y,Si as b,Ti as x,Va as S,Wr as C,Yr as w,_r as T,ai as E,bi as D,br as O,ca as k,ci as A,co as j,di as M,do as N,dr as P,ei as F,fo as I,ga as L,ha as R,ho as z,hr as B,ii as V,ka as H,la as U,li as W,ni as G,oa as K,oi as ee,oo as te,ri as ne,si as re,so as ie,t as q,ti as ae,to as oe,ua as se,ui as ce,uo as le,va as ue,vi as J,vr as de,wi as fe,wr as pe,xi as me,xr as he,yo as Y}from"./utils-Cbsb1ks0.js";import{d as ge}from"./tooltip-DyiHlEs0.js";var X=e(t()),_e=X.createContext(void 0);function Z(e){let t=X.useContext(_e);if(t===void 0&&!e)throw Error(Y(47));return t}var ve=e(se());function ye(){return{...n(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}var be={...ae,disabled:J(e=>e.disabled),instantType:J(e=>e.instantType),openMethod:J(e=>e.openMethod),openChangeReason:J(e=>e.openChangeReason),modal:J(e=>e.modal),focusManagerModal:J(e=>e.focusManagerModal),stickIfOpen:J(e=>e.stickIfOpen),titleElementId:J(e=>e.titleElementId),descriptionElementId:J(e=>e.descriptionElementId),openOnHover:J(e=>e.openOnHover),closeDelay:J(e=>e.closeDelay),hasViewport:J(e=>e.hasViewport)},xe=class e extends M{constructor(e,t,n=!1){let r={...ye(),...e},i=new G;r.open&&e?.mounted===void 0&&(r.mounted=!0),r.floatingRootContext=F(i,t,n),super(r,{popupRef:X.createRef(),backdropRef:X.createRef(),internalBackdropRef:X.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:X.createRef(),beforeContentFocusGuardRef:X.createRef(),stickIfOpenTimeout:new K,triggerElements:i},be)}setOpen=(e,t)=>{let n=t.reason===oe,r=t.reason===`trigger-press`&&t.event.detail===0,i=!e&&(t.reason===`escape-key`||t.reason==null);t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)};let a=this.select(`activeTriggerId`);if(!e&&t.reason===`close-press`&&t.trigger==null&&a!=null&&(t.trigger=this.context.triggerElements.getById(a)??this.select(`activeTriggerElement`)??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let n={open:e,openChangeReason:t.reason};V(n,e,t.trigger),this.update(n)};n?(this.set(`stickIfOpen`,!0),this.context.stickIfOpenTimeout.start(500,()=>{this.set(`stickIfOpen`,!1)}),ve.flushSync(o)):o(),r||i?this.set(`instantType`,r?`click`:`dismiss`):t.reason===`focus-out`?this.set(`instantType`,`focus`):this.set(`instantType`,void 0)};static useStore(t,n){let{store:r,internalStore:i}=W(t,(t,r)=>new e(n,t,r));return X.useEffect(()=>i?.disposeEffect(),[i]),r}disposeEffect=()=>this.context.stickIfOpenTimeout.disposeEffect()},Q=e(R());function Se({props:e}){let{children:t,open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,modal:o=!1,handle:s,triggerId:c,defaultTriggerId:u=null}=e,d=xe.useStore(s?.store,{modal:o,open:r,openProp:n,activeTriggerId:u,triggerIdProp:c});T(()=>{n===void 0&&d.state.open===!1&&r===!0&&d.update({open:!0,activeTriggerId:u})}),d.useControlledProp(`openProp`,n),d.useControlledProp(`triggerIdProp`,c);let f=d.useState(`open`),p=d.useState(`mounted`),m=d.useState(`payload`),h=l()!=null;d.useContextCallback(`onOpenChange`,i),d.useContextCallback(`onOpenChangeComplete`,a),A(d,f),E(d);let{forceUnmount:g}=ee(f,d,()=>{d.update({stickIfOpen:!0,openChangeReason:null})});d.useSyncedValues({modal:o,nested:h}),X.useEffect(()=>{f||d.context.stickIfOpenTimeout.clear()},[d,f]);let _=X.useCallback(()=>{d.setOpen(!1,L(S))},[d]);X.useImperativeHandle(e.actionsRef,()=>({unmount:g,close:_}),[g,_]);let v=f||p,y=X.useMemo(()=>({store:d}),[d]);return(0,Q.jsxs)(_e.Provider,{value:y,children:[v&&(0,Q.jsx)(we,{store:d,modal:o}),typeof t==`function`?t({payload:m}):t]})}function Ce(e){return Z(!0)?(0,Q.jsx)(Se,{props:e}):(0,Q.jsx)(fe,{children:(0,Q.jsx)(Se,{props:e})})}function we({store:e,modal:t}){let n=e.useState(`floatingRootContext`),r=D(n,{outsidePressEvent:{mouse:t===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}}),i=r.reference??z,a=r.trigger??z,o=X.useMemo(()=>I(ne,r.floating),[r.floating]);return re(e,{activeTriggerProps:i,inactiveTriggerProps:a,popupProps:o}),null}var Te=X.forwardRef(function(e,t){let{render:n,className:i,style:a,disabled:o=!1,nativeButton:s=!0,handle:l,payload:u,openOnHover:p=!1,delay:h=300,closeDelay:g=0,id:_,...v}=e,y=Z(!0),b=l?.store??y?.store;if(!b)throw Error(Y(74));let x=ue(_),S=b.useState(`isTriggerActive`,x),C=b.useState(`floatingRootContext`),w=b.useState(`isOpenedByTrigger`,x),T=b.useState(`triggerPopupId`,x),E=X.useRef(null),{registerTrigger:D,isMountedByThisTrigger:O}=ce(x,E,b,{payload:u,disabled:o,openOnHover:p,closeDelay:g}),k=b.useState(`openChangeReason`),A=b.useState(`stickIfOpen`),M=b.useState(`openMethod`),F=b.useState(`focusManagerModal`),I=m(C,{enabled:C!=null&&p&&(M!==`touch`||k!==`trigger-press`),mouseOnly:!0,move:!1,handleClose:f(),restMs:h,delay:{close:g},triggerElementRef:E,isActiveTrigger:S,isClosing:()=>b.select(`transitionStatus`)===`ending`}),L=me(C,{enabled:C!=null,stickIfOpen:A}),R=B(()=>b.select(`open`),e=>{b.set(`openMethod`,e)}),z=b.useState(`triggerProps`,O),{getButtonProps:V,buttonRef:H}=c({disabled:o,native:s}),U={open(e){return e&&k===`trigger-press`?ie.open(e):j.open(e)}},{preFocusGuardRef:W,handlePreFocusGuardFocus:G,handleFocusTargetFocus:K}=P(b,E),ee=N(`button`,e,{state:{disabled:o,open:w},ref:[H,t,D,E],props:[L.reference,I,z,R,{[r]:``,id:x,"aria-haspopup":`dialog`,"aria-expanded":w,"aria-controls":T},v,V],stateAttributesMapping:U});return O&&!F?(0,Q.jsxs)(X.Fragment,{children:[(0,Q.jsx)(d,{ref:W,onFocus:G}),(0,Q.jsx)(X.Fragment,{children:ee},x),(0,Q.jsx)(d,{ref:b.context.triggerFocusTargetRef,onFocus:K})]}):(0,Q.jsx)(X.Fragment,{children:ee},x)}),Ee=X.createContext(void 0);function De(){let e=X.useContext(Ee);if(e===void 0)throw Error(Y(45));return e}var Oe=X.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Z();return i.useState(`mounted`)||n?(0,Q.jsx)(Ee.Provider,{value:n,children:(0,Q.jsx)(o,{ref:t,...r})}):null}),ke=X.createContext(void 0);function Ae(){let e=X.useContext(ke);if(!e)throw Error(Y(46));return e}var je=X.forwardRef(function(e,t){let{render:n,className:r,style:o,anchor:s,positionMethod:c=`absolute`,side:l=`bottom`,align:d=`center`,sideOffset:f=0,alignOffset:p=0,collisionBoundary:m=`clipping-ancestors`,collisionPadding:h=5,arrowPadding:g=5,sticky:v=!1,disableAnchorTracking:b=!1,collisionAvoidance:S=_,...C}=e,{store:w}=Z(),T=De(),E=x(),D=w.useState(`floatingRootContext`),k=w.useState(`mounted`),A=w.useState(`open`),j=w.useState(`openChangeReason`),M=w.useState(`activeTriggerElement`),N=w.useState(`modal`),P=w.useState(`openMethod`),F=w.useState(`positionerElement`),I=w.useState(`instantType`),L=w.useState(`transitionStatus`),R=w.useState(`hasViewport`),z=X.useRef(null),B=U(F,!1,!1),V=a({anchor:s,floatingRootContext:D,positionMethod:c,mounted:k,side:l,sideOffset:f,align:d,alignOffset:p,arrowPadding:g,collisionBoundary:m,collisionPadding:h,sticky:v,disableAnchorTracking:b,keepMounted:T,nodeId:E,collisionAvoidance:S,adaptiveOrigin:R?pe:void 0}),H=D.useState(`domReferenceElement`);y(()=>{let e=H,t=z.current;if(e&&(z.current=e),t&&e&&e!==t){w.set(`instantType`,void 0);let e=new AbortController;return B(()=>{w.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[H,B,w]),de(A&&N===!0&&j!==`trigger-hover`,P===`touch`,F,M);let W=X.useCallback(e=>{w.set(`positionerElement`,e)},[w]),G={open:A,side:V.side,align:V.align,anchorHidden:V.anchorHidden,instant:I},K=O(e,G,{styles:V.positionerStyles,transitionStatus:L,props:C,refs:[t,W],hidden:!k,inert:!A});return(0,Q.jsxs)(ke.Provider,{value:V,children:[k&&N===!0&&j!==`trigger-hover`&&(0,Q.jsx)(he,{ref:w.context.internalBackdropRef,inert:u(!A),cutout:M}),(0,Q.jsx)(i,{id:E,children:K})]})}),Me=X.createContext(void 0);function Ne(){let[e,t]=X.useState(0),n=H(()=>(t(e=>e+1),()=>{t(e=>Math.max(0,e-1))}));return{context:X.useMemo(()=>({register:n}),[n]),hasClosePart:e>0}}function Pe(e){let{value:t,children:n}=e;return(0,Q.jsx)(Me.Provider,{value:t,children:n})}function Fe(){let e=X.useContext(Me);y(()=>e?.register(),[e])}var Ie={...te,...le},Le=X.forwardRef(function(e,t){let{render:n,className:r,style:i,initialFocus:a,finalFocus:o,...c}=e,{store:l}=Z(),u=Ae(),d=C(!0)!=null,{context:f,hasClosePart:p}=Ne(),m=l.useState(`open`),h=l.useState(`openMethod`),_=l.useState(`instantType`),y=l.useState(`transitionStatus`),x=l.useState(`popupProps`),S=l.useState(`titleElementId`),T=l.useState(`descriptionElementId`),E=l.useState(`modal`),D=l.useState(`mounted`),O=l.useState(`openChangeReason`),A=l.useState(`activeTriggerElement`),j=l.useState(`floatingRootContext`),M=j.useState(`floatingId`),P=l.useState(`disabled`),F=l.useState(`openOnHover`),I=l.useState(`closeDelay`),L=c.id??M;k({open:m,ref:l.context.popupRef,onComplete(){m&&l.context.onOpenChangeComplete?.(!0)}}),w(j,{enabled:F&&!P,closeDelay:I});function R(e){return e!==`touch`||l.context.popupRef.current}let z=a===void 0?R:a,B=E!==!1&&p;l.useSyncedValue(`focusManagerModal`,B);let V=X.useCallback(e=>{l.set(`popupElement`,e)},[l]),H={open:m,side:u.side,align:u.align,instant:_,transitionStatus:y},U=N(`div`,e,{state:H,ref:[t,l.context.popupRef,V],props:[x,{id:L,role:`dialog`,...ne,"aria-labelledby":S,"aria-describedby":T,onKeyDown(e){d&&v.has(e.key)&&e.stopPropagation()}},s(y),c],stateAttributesMapping:Ie});return(0,Q.jsx)(b,{context:j,openInteractionType:h,modal:B,disabled:!D||O===`trigger-hover`,initialFocus:z,returnFocus:o,restoreFocus:`popup`,previousFocusableElement:g(A)?A:void 0,nextFocusableElement:l.context.triggerFocusTargetRef,beforeContentFocusGuardRef:l.context.beforeContentFocusGuardRef,children:(0,Q.jsx)(Pe,{value:f,children:U})})}),Re=X.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=Z(),s=ue(a.id);return o.useSyncedValueWithCleanup(`titleElementId`,s),N(`h2`,e,{ref:t,props:[{id:s},a]})}),ze=X.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,{buttonRef:l,getButtonProps:u}=c({disabled:a,focusableWhenDisabled:!1,native:o}),{store:d}=Z();return Fe(),N(`button`,e,{ref:[t,l],props:[{onClick(e){d.setOpen(!1,L(p,e.nativeEvent))}},s,u]})}),Be=function(e){return e.popupWidth=`--popup-width`,e.popupHeight=`--popup-height`,e}({}),Ve={activationDirection:e=>e?{"data-activation-direction":e}:null},He=X.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,...o}=e,{store:s}=Z(),{side:c}=Ae(),l=s.useState(`instantType`),{children:u,state:d}=ge({store:s,side:c,cssVars:Be,children:a}),f={activationDirection:d.activationDirection,transitioning:d.transitioning,instant:l};return N(`div`,e,{state:f,ref:t,props:[o,{children:u}],stateAttributesMapping:Ve})}),Ue=class{constructor(){this.store=new xe}open(e){let t=e?this.store.context.triggerElements.getById(e)??void 0:void 0;if(e&&!t)throw Error(Y(80,e));this.store.setOpen(!0,L(S,void 0,t))}close(){this.store.setOpen(!1,L(S,void 0,void 0))}get isOpen(){return this.store.select(`open`)}};function We(){return new Ue}var $=h(),Ge=We,Ke=Ce;function qe(e){let t=(0,$.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Te,{className:r,"data-slot":`popover-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var Je={auto:``,sm:`w-64`,md:`w-80`,lg:`w-96`},Ye={default:`py-4 [--viewport-inline-padding:--spacing(4)]`,compact:`py-2 [--viewport-inline-padding:--spacing(3)]`,none:`rounded-[calc(var(--radius-2xl)-1px)] py-0 [--viewport-inline-padding:0px]`};function Xe(e){let t=(0,$.c)(49),n,r,i,a,o,s,c,l,u,d,f,p,m,h;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],f=t[11],p=t[12],m=t[13],h=t[14]):({children:r,className:i,padding:s,variant:c,width:l,side:u,align:d,sideOffset:f,alignOffset:p,collisionAvoidance:a,tooltipStyle:m,keepMounted:h,anchor:n,...o}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h);let g=s===void 0?`default`:s,_=c===void 0?`default`:c,v=l===void 0?`auto`:l,y=u===void 0?`bottom`:u,b=d===void 0?`center`:d,x=f===void 0?4:f,S=p===void 0?0:p,C=m!==void 0&&m,w=h!==void 0&&h,T=w?`div`:He,E=_===`panel`?0:void 0,D=_===`panel`?`z-(--z-sheet) w-[min(calc(var(--thread-details-panel-width)+--spacing(4)),calc(var(--anchor-width)---spacing(2)))] transition-[top] duration-150 ease-out data-instant:transition-[top] motion-reduce:transition-none motion-reduce:data-instant:transition-none`:`z-[130]`,O;t[15]===D?O=t[16]:(O=q(`h-(--positioner-height) w-(--positioner-width) max-w-(--available-width) transition-transform data-instant:transition-none`,D),t[15]=D,t[16]=O);let k=_!==`panel`&&`dropdown-glass`,A=C&&`w-fit text-balance rounded-md text-xs shadow-md/5 before:rounded-[calc(var(--radius-md)-1px)]`,j=!C&&_!==`panel`&&`shadow-[0_16px_40px_-18px_rgb(0_0_0/55%)] dark:shadow-[0_18px_44px_-18px_rgb(0_0_0/80%)]`,M;t[17]!==i||t[18]!==k||t[19]!==A||t[20]!==j||t[21]!==_||t[22]!==v?(M=q(`relative flex h-(--popup-height,auto) w-(--popup-width,auto) origin-(--transform-origin) rounded-2xl text-popover-foreground outline-none transition-[width,height,scale,opacity] before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] has-data-[slot=calendar]:rounded-xl has-data-[slot=calendar]:before:rounded-[calc(var(--radius-xl)-1px)] data-ending-style:scale-98 data-starting-style:scale-98 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,k,A,j,v!==`auto`&&[`max-w-[calc(100vw-2rem)]`,Je[v]],_===`panel`&&`w-full overflow-visible rounded-none border-0 bg-transparent shadow-none before:hidden [backdrop-filter:none] [-webkit-backdrop-filter:none]`,i),t[17]=i,t[18]=k,t[19]=A,t[20]=j,t[21]=_,t[22]=v,t[23]=M):M=t[23];let N=C&&g==="default"?`py-1 [--viewport-inline-padding:--spacing(2)]`:Ye[g],P=!C&&`not-data-transitioning:overflow-y-auto`,F=_===`panel`&&`overflow-visible py-2 [--viewport-inline-padding:--spacing(2)]`,I;t[24]!==N||t[25]!==P||t[26]!==F?(I=q(`relative size-full max-h-(--available-height) overflow-clip px-(--viewport-inline-padding) has-data-[slot=calendar]:p-2 data-instant:transition-none **:data-current:data-ending-style:opacity-0 **:data-current:data-starting-style:opacity-0 **:data-previous:data-ending-style:opacity-0 **:data-previous:data-starting-style:opacity-0 **:data-current:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-previous:w-[calc(var(--popup-width)-2*var(--viewport-inline-padding)-2px)] **:data-current:opacity-100 **:data-previous:opacity-100 **:data-current:transition-opacity **:data-previous:transition-opacity`,N,P,F),t[24]=N,t[25]=P,t[26]=F,t[27]=I):I=t[27];let L;t[28]!==T||t[29]!==r||t[30]!==I?(L=(0,Q.jsx)(T,{className:I,"data-slot":`popover-viewport`,children:r}),t[28]=T,t[29]=r,t[30]=I,t[31]=L):L=t[31];let R;t[32]!==o||t[33]!==M||t[34]!==L?(R=(0,Q.jsx)(Le,{className:M,"data-slot":`popover-popup`,...o,children:L}),t[32]=o,t[33]=M,t[34]=L,t[35]=R):R=t[35];let z;t[36]!==b||t[37]!==S||t[38]!==n||t[39]!==a||t[40]!==y||t[41]!==x||t[42]!==E||t[43]!==O||t[44]!==R?(z=(0,Q.jsx)(je,{align:b,alignOffset:S,anchor:n,collisionAvoidance:a,collisionPadding:E,className:O,"data-slot":`popover-positioner`,side:y,sideOffset:x,children:R}),t[36]=b,t[37]=S,t[38]=n,t[39]=a,t[40]=y,t[41]=x,t[42]=E,t[43]=O,t[44]=R,t[45]=z):z=t[45];let B;return t[46]!==w||t[47]!==z?(B=(0,Q.jsx)(Oe,{keepMounted:w,children:z}),t[46]=w,t[47]=z,t[48]=B):B=t[48],B}function Ze(e){let t=(0,$.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,Q.jsx)(ze,{"data-slot":`popover-close`,...n}),t[2]=n,t[3]=r),r}function Qe(e){let t=(0,$.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=q(`font-semibold text-sm leading-none`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,Q.jsx)(Re,{className:i,"data-slot":`popover-title`,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{Qe as a,Xe as i,Ze as n,qe as o,Ge as r,Ke as t};
|
|
2
|
+
//# sourceMappingURL=popover-D-VzRDzk.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=preview-
|
|
1
|
+
import{Dh as e,Km as t,Ph as n,Zm as r,ah as i,lh as a,nh as o}from"./utils-Cbsb1ks0.js";var s=new Set([`localhost`,`127.0.0.1`,`0.0.0.0`,`::1`]);[...s];var c=/^(?:localhost|127\.0\.0\.1|0\.0\.0\.0|\[::1?\])(?::|\/|$)/i;function l(e){return!!(s.has(e)||e===`[::1]`)}var u=class extends a()(`PreviewUrlNormalizationError`,{inputLength:o,reason:r([`empty`,`parse`,`unsupported-protocol`]),protocol:n(i),cause:n(t())}){get message(){let e=this.protocol===void 0?``:`: ${this.protocol}`;return`Invalid preview URL (${this.reason}${e}; input length ${this.inputLength}).`}};e(u);function d(e){return/^([A-Za-z][A-Za-z\d+.-]*):/.exec(e)?.[1]?.toLowerCase().concat(`:`)}var f=`https://duckduckgo.com/?q=`,p=/^(?:localhost|\d{1,3}(?:\.\d{1,3}){3}|\[[\da-f:.]+\])$/i,m=/^[^/?#:@]+:\d+(?:[/?#]|$)/,h=new Set([`about:`,`blob:`,`chrome:`,`data:`,`file:`,`ftp:`,`javascript:`,`mailto:`,`sms:`,`ssh:`,`tel:`,`view-source:`,`ws:`,`wss:`]);function g(e){let t=e.trim();if(/^[a-z][a-z\d+.-]*:\/\//i.test(t)||t.length===0)return _(t);if(!/\s/.test(t)){let n=d(t);if(n!==void 0&&(h.has(n)||!m.test(t))){if(n!==`http:`&&n!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:n});return _(t)}let r=t.split(/[/?#]/,1)[0]??``,i=r.replace(/^[^@]*@/,``).replace(/:\d+$/,``);if(i.length<r.replace(/^[^@]*@/,``).length||p.test(i)||/^[^.]+(?:\.[^.]+)+\.?$/.test(i))try{return _(t)}catch{}}return`${f}${encodeURIComponent(t)}`}function _(e){let t=e.trim();if(t.length===0)throw new u({inputLength:e.length,reason:`empty`});let n=c.test(t),r=t.includes(`://`)?t:`${n?`http`:`https`}://${t}`,i;try{i=new URL(r)}catch(t){throw new u({inputLength:e.length,reason:`parse`,protocol:d(r),cause:t})}if(i.protocol!==`http:`&&i.protocol!==`https:`)throw new u({inputLength:e.length,reason:`unsupported-protocol`,protocol:i.protocol});return i.href}export{_ as n,g as r,l as t};
|
|
2
|
+
//# sourceMappingURL=preview-C7hqmFHN.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{kc as e}from"./utils-
|
|
2
|
-
//# sourceMappingURL=preview-
|
|
1
|
+
import{kc as e}from"./utils-Cbsb1ks0.js";import{M as t,N as n,O as r,j as i}from"./runtime-CBB2It1x.js";import{t as a}from"./runtime-Dydpcwo9.js";function o(a){let o=r(),s=r(),c={mode:`serial`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId])};return{list:t(a,{label:`environment-data:preview:list`,tag:e.previewList,staleTimeMs:5e3}),events:n(a,{label:`environment-data:preview:events`,tag:e.subscribePreviewEvents}),discoveredServers:n(a,{label:`environment-data:preview:discovered-servers`,tag:e.subscribeDiscoveredLocalServers,idleTtlMs:0}),open:i(a,{label:`environment-data:preview:open`,tag:e.previewOpen,scheduler:o,concurrency:c}),navigate:i(a,{label:`environment-data:preview:navigate`,tag:e.previewNavigate,scheduler:o,concurrency:c}),resize:i(a,{label:`environment-data:preview:resize`,tag:e.previewResize,scheduler:o,concurrency:c}),adjust:i(a,{label:`environment-data:preview:adjust`,tag:e.previewAdjust,scheduler:o,concurrency:c}),refresh:i(a,{label:`environment-data:preview:refresh`,tag:e.previewRefresh,scheduler:o,concurrency:c}),close:i(a,{label:`environment-data:preview:close`,tag:e.previewClose,scheduler:o,concurrency:c}),clearProfile:i(a,{label:`environment-data:preview:clear-profile`,tag:e.previewClearProfile}),reportProfiles:i(a,{label:`environment-data:preview:report-profiles`,tag:e.previewReportProfiles,concurrency:{mode:`latest`,key:({environmentId:e})=>e}}),reportStatus:i(a,{label:`environment-data:preview:report-status`,tag:e.previewReportStatus,scheduler:s,concurrency:{mode:`latest`,key:({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.tabId])}})}}var s=o(a);export{s as t};
|
|
2
|
+
//# sourceMappingURL=preview-DT6Qi-Q0.js.map
|
package/dist/client/assets/{previewMiniPlayerStore-BDRPsVx0.js → previewMiniPlayerStore-Dmvk7kfx.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Vs as e,W as t}from"./utils-
|
|
2
|
-
//# sourceMappingURL=previewMiniPlayerStore-
|
|
1
|
+
import{Vs as e,W as t}from"./utils-Cbsb1ks0.js";var n=(e,t)=>{let n=Object.entries(t.query);return n.length===0?e:`${e}${e.includes(`?`)?`&`:`?`}${new URLSearchParams(n).toString()}`};function r(e){return e.kind===`browser`?`browser:${e.tabId}`:`device:${encodeURIComponent(e.hostId)}:${encodeURIComponent(e.deviceId)}`}var i=e=>({kind:`browser`,tabId:e}),a=t()(t=>({byThreadKey:{},open:(n,i)=>t(t=>{let a=e(n),o=t.byThreadKey[a];return o&&r(o.source)===r(i)?t:{byThreadKey:{...t.byThreadKey,[a]:{source:i,position:o?.position??null,width:o?.width??null,lastInteraction:o?.lastInteraction??`drag`}}}}),close:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}}),move:(n,i,a)=>t(t=>{let o=e(n),s=t.byThreadKey[o];return!s||r(s.source)!==i||s.position?.x===a.x&&s.position.y===a.y&&s.lastInteraction===`drag`?t:{byThreadKey:{...t.byThreadKey,[o]:{...s,position:a,lastInteraction:`drag`}}}}),resize:(n,i,a,o)=>t(t=>{let s=e(n),c=t.byThreadKey[s];return!c||r(c.source)!==i||c.width===a&&c.lastInteraction===`resize`&&(!o||c.position?.x===o.x&&c.position.y===o.y)?t:{byThreadKey:{...t.byThreadKey,[s]:{...c,width:a,position:o??c.position,lastInteraction:`resize`}}}}),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey))return t;let{[r]:i,...a}=t.byThreadKey;return{byThreadKey:a}})}));function o(t,n){return n?t[e(n)]??null:null}function s(e,t){let n=o(e,t)?.source;return n?.kind===`browser`?n.tabId:null}export{a,s as i,r as n,n as o,o as r,i as t};
|
|
2
|
+
//# sourceMappingURL=previewMiniPlayerStore-Dmvk7kfx.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dh as e,F_ as t,Ho as n,Iu as r,Km as i,Ko as a,Mx as o,Ph as s,Ro as c,Xo as l,Zg as u,Zm as d,Zo as ee,ah as f,cv as p,es as m,ex as h,gl as g,hs as _,lh as v,nh as y,pf as b,py as x,uv as S}from"./utils-Cbsb1ks0.js";import{C,n as w,y as T}from"./runtime-CBB2It1x.js";import{Dt as E,Tt as D}from"./runtime-Dydpcwo9.js";var O=d([`fetch-session-state`,`exchange-bootstrap-credential`,`fetch-environment-descriptor`,`create-pairing-credential`,`list-pairing-links`,`revoke-pairing-link`,`list-client-sessions`,`revoke-client-session`,`revoke-other-client-sessions`]),k=class e extends v()(`PrimaryEnvironmentRequestError`,{operation:O,status:y,pairingLinkId:s(f),sessionId:s(f),cause:i()}){static fromCause(t){let n=W(t.cause)??500;return new e({operation:t.operation,status:n,...t.pairingLinkId===void 0?{}:{pairingLinkId:t.pairingLinkId},...t.sessionId===void 0?{}:{sessionId:t.sessionId},cause:t.cause})}get message(){return`Primary environment request failed during ${this.operation} (HTTP ${this.status}).`}},te=e(k),A=class extends v()(`PrimaryEnvironmentPairingCredentialRejectedError`,{providedLength:y,cause:i()}){get message(){return`Invalid pairing token. Check the token and try again.`}};e(A);var j=class extends v()(`PrimaryEnvironmentAuthSessionTimeoutError`,{timeoutMs:y,elapsedMs:y}){get message(){return`Timed out waiting for authenticated session after bootstrap.`}},M=class extends v()(`PrimaryEnvironmentPairingCredentialRequiredError`,{providedLength:y}){get message(){return`Enter a pairing token to continue.`}},N=e(r),P=null,F=null,I=!1,L=2e3,R=100;function z(){return D(new URL(window.location.href))}function B(){let e=new URL(window.location.href),t=E(e);t.toString()!==e.toString()&&window.history.replaceState({},document.title,t.toString())}function V(){let e=z();return e?(B(),e):null}function H(){let e=(window.desktopBridge?.getLocalEnvironmentBootstraps()??[]).find(e=>e.id===g);return typeof e?.bootstrapToken==`string`&&e.bootstrapToken.length>0?e.bootstrapToken:null}async function U(){return X(async()=>{try{return await w(T.pipe(u(e=>e.auth.session({headers:{}}))))}catch(e){throw k.fromCause({operation:`fetch-session-state`,cause:e})}})}function W(e){return N(e)?ne(e):b(e)&&e.response!==void 0?e.response.status:null}function ne(e){switch(e._tag){case`EnvironmentRequestInvalidError`:return 400;case`EnvironmentAuthInvalidError`:return 401;case`EnvironmentScopeRequiredError`:case`EnvironmentOperationForbiddenError`:return 403;case`EnvironmentResourceNotFoundError`:return 404;case`EnvironmentInternalError`:return 500}}async function G(e){return X(async()=>{try{return await w(T.pipe(u(t=>t.auth.browserSession({payload:{credential:e}}))))}catch(t){throw N(t)&&t._tag===`EnvironmentAuthInvalidError`&&t.reason===`invalid_credential`?new A({providedLength:e.length,cause:t}):k.fromCause({operation:`exchange-bootstrap-credential`,cause:t})}})}async function K(){let e=Date.now();for(;;){let t=await U();if(t.authenticated)return t;let n=Date.now()-e;if(n>=L)throw new j({timeoutMs:L,elapsedMs:n});await Z(R)}}var q=new Set([502,503,504]),J=15e3,Y=500;async function X(e){let t=Date.now();for(;;)try{return await e()}catch(e){if(!re(e)||Date.now()-t>=J)throw e;await Z(Y)}}function Z(e){return new Promise(t=>{setTimeout(t,e)})}function re(e){return te(e)?q.has(e.status):e instanceof TypeError||e instanceof DOMException&&e.name===`AbortError`}async function Q(e){let t=await U();if(t.authenticated&&!e)return{status:`authenticated`};let n=e??H();if(!n)return{status:`requires-auth`,auth:t.auth};try{return await G(n),await K(),{status:`authenticated`}}catch(e){return{status:`requires-auth`,auth:t.auth,errorMessage:e instanceof Error?e.message:`Authentication failed.`}}}async function ie(e){let t=e.trim();if(!t)throw new M({providedLength:e.length});F=null,await G(t),await K(),F={status:`authenticated`},P=null,I=!1,B()}async function ae(e){let t=e?.label?.trim();try{return await w(T.pipe(u(n=>n.auth.pairingCredential({headers:{},payload:{...t?{label:t}:{},...e?.scopes?{scopes:e.scopes}:{}}}))))}catch(e){throw k.fromCause({operation:`create-pairing-credential`,cause:e})}}async function oe(e){try{await w(T.pipe(u(t=>t.auth.revokePairingLink({headers:{},payload:{id:e}}))))}catch(t){throw k.fromCause({operation:`revoke-pairing-link`,pairingLinkId:e,cause:t})}}async function se(e){try{await w(T.pipe(u(t=>t.auth.revokeClient({headers:{},payload:{sessionId:e}}))))}catch(t){throw k.fromCause({operation:`revoke-client-session`,sessionId:e,cause:t})}}async function ce(){try{return(await w(T.pipe(u(e=>e.auth.revokeOtherClients({headers:{}}))))).revokedCount}catch(e){throw k.fromCause({operation:`revoke-other-client-sessions`,cause:e})}}async function le(){if(window.location.pathname.replace(/\/+$/,``)===`/pair`?z()&&(I=!0):I=!1,I)return{status:`requires-auth`,auth:(await U()).auth};let e=V(),t=P;if(e)F=null;else{if(t)return t;if(F?.status===`authenticated`)return F}let n=t?t.catch(()=>void 0).then(()=>(F=null,Q(e))):Q(e);return P=n,n.then(e=>(P===n&&e.status===`authenticated`&&(F=e),e)).finally(()=>{P===n&&(P=null)})}var ue=o(),$=a(S(()=>C()?p(null):t(U))).pipe(ee({staleTime:5e3,revalidateOnMount:!0}),l(3e5),m(`primary-environment:session`));function de(){c.refresh($)}function fe(){let e=(0,ue.c)(8),t=n($),r=pe,i=null;if(t._tag===`Failure`){let n;e[0]===t.cause?n=e[1]:(n=x(t.cause),e[0]=t.cause,e[1]=n);let r=n;i=r instanceof Error?r.message:`Could not read environment session.`}let a;e[2]===t?a=e[3]:(a=h(_(t)),e[2]=t,e[3]=a);let o;return e[4]!==i||e[5]!==t.waiting||e[6]!==a?(o={data:a,error:i,isPending:t.waiting,refresh:r},e[4]=i,e[5]=t.waiting,e[6]=a,e[7]=o):o=e[7],o}function pe(){de()}export{ce as a,B as c,le as i,ie as l,ae as n,se as o,z as r,oe as s,fe as t};
|
|
2
|
+
//# sourceMappingURL=primary-bBvWt8wp.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bu as e,Dh as t,Fu as n,Go as r,Hb as i,Ho as a,I_ as o,If as s,Ig as c,Ko as l,Lu as u,Mu as d,Mx as f,Nm as p,Ph as ee,Pu as m,Ro as h,Ru as te,S_ as ne,Tp as re,Wg as g,Wo as _,Xd as v,Xo as y,Yo as b,Zm as ie,Zo as ae,ah as x,b_ as oe,dv as S,es as C,ex as se,gy as ce,hs as le,jp as ue,kc as w,lb as de,lh as fe,ms as pe,ph as me,py as he,qs as T,rx as E,u_ as D,vv as O,w_ as k,wv as A,zu as j}from"./utils-Cbsb1ks0.js";import{Mn as M,Q as N,X as P,_ as F,o as I,pn as L,r as R,s as ge,ut as _e}from"./runtime-CBB2It1x.js";import"./runtime-Dydpcwo9.js";import{D as ve}from"./useSettings-BCUX_14n.js";import{i as ye,n as z}from"./session-BI6WO3-p.js";var be=f(),xe=class extends fe()(`RelayClientInstallConfirmationConflictError`,{requestedVersion:x,activeVersion:x,activeDialogStatus:ie([`confirming`,`installing`,`closing`]),activeInstallStage:ee(d)}){get message(){return`Cannot confirm relay client installation ${this.requestedVersion}; installation ${this.activeVersion} has dialog status ${this.activeDialogStatus}.`}},B={status:`idle`},V=B,H=null,U=new Set;function W(e){V=e;for(let e of U)e()}function Se(){return V}function Ce(e){return U.add(e),()=>{U.delete(e)}}function we(e){if(V.status!==`idle`){let t=V.status===`closing`?V.view:V;return Promise.reject(new xe({requestedVersion:e,activeVersion:t.version,activeDialogStatus:V.status,...t.status===`installing`?{activeInstallStage:t.stage}:{}}))}return W({status:`confirming`,version:e}),new Promise(e=>{H=e})}function Te(e){if(V.status!==`confirming`||!H)return;let t=H;H=null,W(e?{status:`installing`,version:V.version,stage:`checking`}:{status:`closing`,view:V}),t(e)}function Ee(e){V.status===`installing`&&e.type===`progress`&&W({...V,stage:e.stage})}function De(){H?.(!1),H=null,(V.status===`confirming`||V.status===`installing`)&&W({status:`closing`,view:V})}function Oe(){V.status===`closing`&&W(B)}function G(){return ge().relayUrl}var K=class extends de(`CloudEnvironmentLinkError`){},q=e=>t=>new K({message:e,cause:t});function ke(e){return D(function*(){let t=yield*_e,n=yield*t.run(e,P(w.cloudGetRelayClientStatus,{})).pipe(k(q(`Could not check relay client availability.`)));if(n.status===`available`)return;if(n.status===`unsupported`)return yield*new K({message:`P4 Code cannot install the relay client automatically on ${n.platform}-${n.arch}.`});if(!(yield*O({try:()=>we(n.version),catch:q(`Could not confirm relay client installation.`)})))return yield*new K({message:`Relay client installation was cancelled.`});let r=yield*t.runStream(e,N(w.cloudInstallRelayClient,{}).pipe(ue(e=>S(()=>Ee(e))))).pipe(re,k(q(`Could not install the relay client.`)),g(S(De)));if(E(r)||r.value.type!==`complete`)return yield*new K({message:`The relay client install completed without a final status.`});let i=r.value.status;if(i.status!==`available`)return yield*new K({message:i.status===`unsupported`?`P4 Code cannot install the relay client automatically on ${i.platform}-${i.arch}.`:`The relay client is still unavailable after installation.`})})}var Ae=t(me([n,e,te,u,j,m]));function J(e){return t=>{let n=t._tag===`ManagedRelayRequestFailedError`?t:void 0,r=n?.traceId,i=n?M(n):null;return new K({message:i?`${e}: ${i}`:e,cause:t,...r?{traceId:r}:{}})}}function Y(e){return Ae(e)?e:typeof e!=`object`||!e?null:`cause`in e?Y(e.cause):null}var X=e=>t=>{let n=Y(t);return new K({message:n?`${e.replace(/[.:]$/,``)}: ${n.message}`:e,cause:t})};function je(e){let t=new URL(e);return{localHttpHost:`127.0.0.1`,localHttpPort:Number(t.port||(t.protocol===`https:`?443:80))}}var Me=`cloudflare_tunnel`;function Ne(e){return e.link.environmentId===e.expectedEnvironmentId?e.link.endpoint.providerKind===e.expectedProviderKind?A:new K({message:`Relay returned credentials for a different endpoint provider.`}):new K({message:`Relay returned credentials for a different environment.`})}function Pe(e){return D(function*(){return yield*(yield*T(e.target.httpBaseUrl)).connect.linkState({headers:{}}).pipe(k(X(`Could not read environment cloud link state.`)))}).pipe(o(F))}function Fe(e){return D(function*(){let t=yield*T(e.target.httpBaseUrl),{target:n,...r}=e;return yield*t.connect.preferences({headers:{},payload:r}).pipe(k(X(`Could not update environment cloud preferences.`)))}).pipe(o(F))}function Ie(e){return D(function*(){yield*(yield*T(e.target.httpBaseUrl)).connect.unlink({headers:{}}).pipe(k(X(`Could not unlink the environment from cloud.`))),G()&&e.clerkToken&&(yield*(yield*L).unlinkEnvironment({clerkToken:e.clerkToken,environmentId:p.make(e.target.environmentId)}).pipe(c(e=>oe(`Could not revoke cloud environment link after local unlink.`,{cause:e}))))}).pipe(o(F))}var Z=`manual`;function Le(e){return D(function*(){let t=G();if(!t)return yield*new K({message:`P4CODE_RELAY_URL is not configured.`});let n=(e.mode??`managed`)===`managed`,r=n?Me:Z,i=yield*L,a=yield*T(e.target.httpBaseUrl);n&&(yield*ke(p.make(e.target.environmentId)));let o=yield*i.createEnvironmentLinkChallenge({clerkToken:e.clerkToken,payload:{notificationsEnabled:!0,liveActivitiesEnabled:!0,managedTunnelsEnabled:n}}).pipe(k(J(`${t}/v1/client/environment-link-challenges failed`))),s=yield*a.connect.linkProof({headers:{},payload:{challenge:o.challenge,relayIssuer:t,endpoint:{httpBaseUrl:e.target.httpBaseUrl,wsBaseUrl:e.target.wsBaseUrl,providerKind:r},origin:je(e.target.httpBaseUrl)}}).pipe(k(X(`Could not obtain environment link proof.`))),c=yield*i.linkEnvironment({clerkToken:e.clerkToken,payload:{proof:s,notificationsEnabled:!0,liveActivitiesEnabled:!0,managedTunnelsEnabled:n}}).pipe(k(J(`${t}/v1/client/environment-links failed`)));yield*Ne({expectedEnvironmentId:e.target.environmentId,expectedProviderKind:r,link:c}),yield*a.connect.relayConfig({headers:{},payload:{relayUrl:t,relayIssuer:c.relayIssuer,cloudUserId:c.cloudUserId,environmentCredential:c.environmentCredential,cloudMintPublicKey:c.cloudMintPublicKey,endpointRuntime:c.endpointRuntime}}).pipe(k(X(`Could not configure environment relay access.`)))}).pipe(o(F))}var Re=b(ce(v,R.contextEffect.pipe(ne(e=>i(e,v))))),Q=_(e=>{let t=JSON.parse(e);return Re.atom(Pe({target:t})).pipe(ae({staleTime:5e3,revalidateOnMount:!0}),y(3e5),C(`primary-cloud-link:${t.environmentId}`))}),ze=l(pe(null)).pipe(r,C(`primary-cloud-link:null`));function $(e){return JSON.stringify(e)}function Be(e){e&&z(p.make(e.environmentId),`relay:read`)&&h.refresh(Q($(e)))}function Ve(e){if(!z(p.make(e.environmentId),`relay:read`))return null;let t=h.get(Q($(e)));return t._tag===`Success`?t.value:null}function He(){let e=(0,be.c)(17),t=ve(),n=ye(t?.environmentId??null,s),r;e[0]===t?r=e[1]:(r=t?.entry.target._tag===`PrimaryConnectionTarget`?{environmentId:t.environmentId,label:t.label,httpBaseUrl:t.entry.target.httpBaseUrl,wsBaseUrl:t.entry.target.wsBaseUrl}:null,e[0]=t,e[1]=r);let i=r,o;e[2]!==n||e[3]!==i?(o=i&&I()&&n?Q($(i)):ze,e[2]=n,e[3]=i,e[4]=o):o=e[4];let c=a(o),l;e[5]===i?l=e[6]:(l=()=>{Be(i)},e[5]=i,e[6]=l);let u=l,d=null;if(c._tag===`Failure`){let t;e[7]===c.cause?t=e[8]:(t=he(c.cause),e[7]=c.cause,e[8]=t);let n=t;d=n instanceof Error?n.message:`Could not read P4 Connect link state.`}let f;e[9]===c?f=e[10]:(f=c._tag===`Failure`?null:se(le(c)),e[9]=c,e[10]=f);let p;return e[11]!==d||e[12]!==u||e[13]!==c.waiting||e[14]!==f||e[15]!==i?(p={data:f,error:d,isPending:c.waiting,refresh:u,target:i},e[11]=d,e[12]=u,e[13]=c.waiting,e[14]=f,e[15]=i,e[16]=p):p=e[16],p}export{Fe as a,Te as c,Ie as i,Ce as l,He as n,Oe as o,Le as r,Se as s,Ve as t};
|
|
2
|
+
//# sourceMappingURL=primaryCloudLinkState-DDmxU43H.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dh as e,Ho as t,Ko as n,Mx as r,Ro as i,Vo as a,Wc as o,ds as s,es as c,ex as l,hs as u,nx as d,py as f,yd as p}from"./utils-Cbsb1ks0.js";import{I as m}from"./runtime-CBB2It1x.js";import{s as h}from"./vcsRefInvalidation-DMlloB2h.js";import{W as g}from"./entities-HApogVCu.js";import{o as _}from"./queries-DrIiv9gC.js";var v=r(),y=``,b=n(s(!1)),x=n(s(!1)).pipe(c(`project-file-query:empty`));function S(e,t,n){return g.optimisticFile({environmentId:e,cwd:t,relativePath:n})}var C=new Map;function w(e){let t=C.get(e);C.delete(e),t?.()}function T(e,t,n){return g.listEntries({environmentId:e,input:{cwd:t,...n===void 0?{}:{directoryPath:n}}})}function E(e,t,n){return g.readFile({environmentId:e,input:{cwd:t,relativePath:n??y}})}function D(e,t,n){return g.readConfiguration({environmentId:e,input:{cwd:t,relativePath:n}})}function O(e,t,n,r){let a=S(e,t,n);C.has(a)||C.set(a,i.mount(a)),i.set(a,{confirmedAgainst:void 0,data:{relativePath:n,contents:r,byteLength:new TextEncoder().encode(r).byteLength,truncated:!1}})}function k(e,t,n){return i.get(S(e,t,n))?.data??null}function A(e,t,n){let r=k(e,t,n);if(r)return r.contents;let a=i.get(E(e,t,n));return d(u(a))?.contents}function j(e,t,n){let r=i.get(S(e,t,n));return r?.confirmedAgainst===void 0?r?.data??null:null}function M(e,t,n,r){let a=S(e,t,n),s=i.get(a);if(s?.data.contents!==r)return!1;let c=E(e,t,n),l={...s,confirmedAgainst:i.get(c)};return i.set(a,l),w(a),i.refresh(c),m(i,c,{reportDefect:!1,reportFailure:!1}).then(async r=>{if(n===`p4.json`||n===`t3.json`){let n=D(e,t,o);i.refresh(n),await m(i,n,{reportDefect:!1,reportFailure:!1})}r._tag===`Success`&&i.get(a)===l&&i.set(a,null)}),!0}function N(e,t,n,r){return n===null?r:i.get(S(e,t,n))?.data??r}function P(e){return e._tag===`Failure`?f(e.cause):null}function F(e){return e===null?null:e instanceof Error?e.message:`Workspace query failed.`}var I=e(p);function L(e,n,r){let i=(0,v.c)(19),o=h(e),{canReadFiles:s}=o,c;i[0]!==s||i[1]!==n||i[2]!==r||i[3]!==e?(c=s?T(e,n,r):b,i[0]=s,i[1]=n,i[2]=r,i[3]=e,i[4]=c):c=i[4];let d=c,f=t(d),p=a(d),m;i[5]===p?m=i[6]:(m=()=>p(),i[5]=p,i[6]=m);let g=m,_;i[7]===f?_=i[8]:(_=l(u(f)),i[7]=f,i[8]=_);let y;i[9]!==s||i[10]!==o.error||i[11]!==o.isPending||i[12]!==f?(y=o.isPending?null:s?F(P(f)):o.error??`This connection cannot read host files.`,i[9]=s,i[10]=o.error,i[11]=o.isPending,i[12]=f,i[13]=y):y=i[13];let x=o.isPending||f.waiting,S;return i[14]!==g||i[15]!==_||i[16]!==y||i[17]!==x?(S={data:_,error:y,isPending:x,refresh:g},i[14]=g,i[15]=_,i[16]=y,i[17]=x,i[18]=S):S=i[18],S}function R(e,t,n,r,i){let a=(0,v.c)(16),o;a[0]===i?.imageOnly?o=a[1]:(o=i?.imageOnly?{imageOnly:!0}:{},a[0]=i?.imageOnly,a[1]=o);let s;a[2]!==t||a[3]!==e||a[4]!==n||a[5]!==o?(s={environmentId:e,cwd:t,query:n,kind:`file`,...o},a[2]=t,a[3]=e,a[4]=n,a[5]=o,a[6]=s):s=a[6];let c;a[7]===Symbol.for(`react.memo_cache_sentinel`)?(c={allowEmptyQuery:!0},a[7]=c):c=a[7];let l=_(s,r,c),u;a[8]!==l.entries||a[9]!==l.isPending?(u=l.isPending?[]:l.entries,a[8]=l.entries,a[9]=l.isPending,a[10]=u):u=a[10];let d;return a[11]!==l.error||a[12]!==l.isPending||a[13]!==l.searchedQuery||a[14]!==u?(d={entries:u,error:l.error,isPending:l.isPending,matchedQuery:l.searchedQuery},a[11]=l.error,a[12]=l.isPending,a[13]=l.searchedQuery,a[14]=u,a[15]=d):d=a[15],d}function z(e,n,r,i,s){let c=(0,v.c)(36),d=i===void 0||i,f=s!==void 0&&s,p=h(e),{canReadFiles:m}=p,g=d,_;c[0]!==m||c[1]!==f||c[2]!==n||c[3]!==d||c[4]!==e||c[5]!==r?(_=d&&m?f&&r!==null?D(e,n,r):E(e,n,r):x,c[0]=m,c[1]=f,c[2]=n,c[3]=d,c[4]=e,c[5]=r,c[6]=_):_=c[6];let b=_,C=t(b),w=a(b),T;c[7]===w?T=c[8]:(T=()=>w(),c[7]=w,c[8]=T);let O=T,k;c[9]===C?k=c[10]:(k=l(u(C)),c[9]=C,c[10]=k);let A=k,j=A?.relativePath??r??y,M;c[11]!==n||c[12]!==e||c[13]!==j?(M=S(e,n,j),c[11]=n,c[12]=e,c[13]=j,c[14]=M):M=c[14];let N=t(M),L=f?o:y,R;c[15]!==n||c[16]!==e||c[17]!==L?(R=S(e,n,L),c[15]=n,c[16]=e,c[17]=L,c[18]=R):R=c[18];let z=t(R),B=r===null?null:f?z??N:N,V,H,U;if(c[19]!==m||c[20]!==A||c[21]!==p.error||c[22]!==p.isPending||c[23]!==g||c[24]!==B?.data||c[25]!==C){let e=P(C);V=I(e)?e:null,U=m?B?.data??A:null,H=!g||p.isPending?null:m?F(e):p.error??`This connection cannot read host files.`,c[19]=m,c[20]=A,c[21]=p.error,c[22]=p.isPending,c[23]=g,c[24]=B?.data,c[25]=C,c[26]=V,c[27]=H,c[28]=U}else V=c[26],H=c[27],U=c[28];let W=g&&(p.isPending||C.waiting),G=V?.failure===`path_not_file`,K;return c[29]!==V||c[30]!==O||c[31]!==H||c[32]!==W||c[33]!==G||c[34]!==U?(K={data:U,error:H,isPending:W,readError:V,isNotFile:G,refresh:O},c[29]=V,c[30]=O,c[31]=H,c[32]=W,c[33]=G,c[34]=U,c[35]=K):K=c[35],K}export{E as a,N as c,R as d,z as f,A as i,O as l,k as n,j as o,D as r,S as s,M as t,L as u};
|
|
2
|
+
//# sourceMappingURL=projectFilesQueryState-C9bparJ7.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t}from"./Icon-l19w4AjM.js";import{Mf as n,Mx as r,Rf as i,Sh as a,Wc as o,ha as s,in as c,iu as l,sr as u}from"./utils-Cbsb1ks0.js";import{t as d}from"./bug-Dtc5BRVF.js";import{t as f}from"./flask-conical-WkWFg73e.js";import{t as p}from"./hammer-BRTj-Vot.js";import{t as m}from"./list-checks-CQu2FTgJ.js";import{t as h}from"./play-Bvcnzkvl.js";import{t as g}from"./wrench-CSZxFJCP.js";import{L as ee,U as te}from"./runtime-CBB2It1x.js";import{i as _,n as v}from"./session-BI6WO3-p.js";import{t as ne}from"./textarea-C9YeXMVc.js";import{t as y}from"./input-w_nbMVAd.js";import{a as re,c as ie,i as b,o as ae,r as oe,s as se,t as ce}from"./dialog-ChNU2rSW.js";import{D as x,O as S}from"./keybindings-CJFu-Dyg.js";import{i as le,o as ue,t as de}from"./popover-D-VzRDzk.js";import{f as C}from"./projectFilesQueryState-C9bparJ7.js";import{t as w}from"./p4ProjectFile-DNlgD3LH.js";import{l as fe}from"./KeybindingsSettings.logic-D9eYCeK5.js";import{Ar as pe,Fr as me,Ir as he,La as T,Mr as ge,Ni as E,Nr as _e,Pr as ve,jr as ye}from"./main-D1oD2GPo.js";function D(e,t){let n=e.projectSettingsOverrides[t.id]?.defaultProjectScripts;if(n!==void 0)return n;if(e.projectSettingsFolded)return e.defaultProjectScripts;let r=e.projectScriptOverrides[t.id];return r===null?e.defaultProjectScripts:r??(t.scripts.length>0?t.scripts:e.defaultProjectScripts)}function O(e){return e.worktreePath??e.project.cwd}function k(e){let t={P4CODE_PROJECT_ROOT:e.project.cwd};return e.worktreePath&&(t.P4CODE_WORKTREE_PATH=e.worktreePath),e.extraEnv?{...t,...e.extraEnv}:t}function A(e){let t=[...e.runOnWorktreeCreate?[`setup`]:[],...e.runOnSettle?[`on settle`]:[]];return t.length===0?e.name:`${e.name} (${t.join(`, `)})`}var j=e(t(),1),M=r(),N=`Invalid keybinding.`,P=a(l);function F(e){let t=e?.trim()??``;return t.length>0?t:null}function I(e){let t=F(e.keybinding);if(!t)return null;if(e.command===null)throw Error(N);let n=P({key:t,command:e.command});if(n._tag===`None`)throw Error(N);return n.value}function L(e,t){if(t===null)return null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r||r.command!==t)continue;let i=[];r.shortcut.modKey&&i.push(`mod`),r.shortcut.ctrlKey&&i.push(`ctrl`),r.shortcut.metaKey&&i.push(`meta`),r.shortcut.altKey&&i.push(`alt`),r.shortcut.shiftKey&&i.push(`shift`);let a=r.shortcut.key===` `?`space`:r.shortcut.key===`escape`?`esc`:r.shortcut.key;return i.push(a),i.join(`+`)}return null}var R=[];function z(e,t){let n=(0,M.c)(8),r=C(e,t??``,o,t!==null,!0),i=r.data&&!r.data.truncated?r.data.contents:null,a=r.isPending,s;bb0:{if(i===null){let e=a?`loading`:`missing`,t;n[0]===e?t=n[1]:(t={status:e,file:null,scripts:R},n[0]=e,n[1]=t),s=t;break bb0}let e;n[2]===i?e=n[3]:(e=w(i),n[2]=i,n[3]=e);let t=e;if(t===null){let e;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(e={status:`invalid`,file:null,scripts:R},n[4]=e):e=n[4],s=e;break bb0}let r=t.scripts??R,o;n[5]!==t||n[6]!==r?(o={status:`valid`,file:t,scripts:r},n[5]=t,n[6]=r,n[7]=o):o=n[7],s=o}return s}function B(e,t){return z(e,t).scripts}var V=e(s(),1),be=[{id:`play`,label:`Play`},{id:`test`,label:`Test`},{id:`lint`,label:`Lint`},{id:`configure`,label:`Configure`},{id:`build`,label:`Build`},{id:`debug`,label:`Debug`}];function H(e){let t=(0,M.c)(12),{icon:n,className:r}=e,i=r===void 0?`size-3.5`:r;if(n===`test`){let e;return t[0]===i?e=t[1]:(e=(0,V.jsx)(f,{className:i}),t[0]=i,t[1]=e),e}if(n===`lint`){let e;return t[2]===i?e=t[3]:(e=(0,V.jsx)(m,{className:i}),t[2]=i,t[3]=e),e}if(n===`configure`){let e;return t[4]===i?e=t[5]:(e=(0,V.jsx)(g,{className:i}),t[4]=i,t[5]=e),e}if(n===`build`){let e;return t[6]===i?e=t[7]:(e=(0,V.jsx)(p,{className:i}),t[6]=i,t[7]=e),e}if(n===`debug`){let e;return t[8]===i?e=t[9]:(e=(0,V.jsx)(d,{className:i}),t[8]=i,t[9]=e),e}let a;return t[10]===i?a=t[11]:(a=(0,V.jsx)(h,{className:i}),t[10]=i,t[11]=a),a}var U={name:``,command:``,icon:`play`,runOnWorktreeCreate:!1,waitForSetup:!1,runOnSettle:!1,keybinding:null,previewUrl:null,autoOpenPreview:!1};function W(e,t){return{scriptId:e.id,initial:{name:e.name,command:e.command,icon:e.icon,runOnWorktreeCreate:e.runOnWorktreeCreate,waitForSetup:e.runOnWorktreeCreate&&e.async===!1,runOnSettle:e.runOnSettle??!1,keybinding:L(t,x(e.id)),previewUrl:e.previewUrl??null,autoOpenPreview:e.autoOpenPreview??!1}}}function G({environmentId:e,editScope:t=n,request:r,scripts:a,onSubmit:o,onDelete:s,onClose:l}){let d=_(e,t),f=_(e,i),p=j.useId(),[m,h]=(0,j.useState)(``),[g,C]=(0,j.useState)(``),[w,D]=(0,j.useState)(`play`),[O,k]=c(!d),[A,M]=(0,j.useState)(!1),[N,P]=(0,j.useState)(!1),[F,L]=(0,j.useState)(!1),[R,z]=(0,j.useState)(``),[B,U]=(0,j.useState)(``),[W,G]=(0,j.useState)(!1),[K,q]=(0,j.useState)(null),[xe,J]=c(!d),[Se,Y]=(0,j.useState)(null),X=(0,j.useRef)(null),Ce=r!==null,Z=r?.scriptId!=null,Q=r!==null&&Se===r;(0,j.useLayoutEffect)(()=>()=>{X.current?.request===r&&(X.current=null)},[r]),(0,j.useEffect)(()=>{r&&(h(r.initial.name),C(r.initial.command),D(r.initial.icon),k(!1),M(r.initial.runOnWorktreeCreate),P(r.initial.waitForSetup),L(r.initial.runOnSettle),z(r.initial.keybinding??``),U(r.initial.previewUrl??``),G(r.initial.autoOpenPreview),q(r.error??null),Y(null))},[r,k]);let $=()=>{X.current=null,Y(null),k(!1),l()};return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(ce,{open:Ce,onOpenChange:e=>{e||$()},children:(0,V.jsxs)(se,{children:[(0,V.jsxs)(re,{children:[(0,V.jsx)(ie,{children:Z?`Edit Action`:`Add Action`}),(0,V.jsx)(oe,{children:`Actions are project-scoped commands you can run from the top bar or keybindings.`})]}),(0,V.jsx)(ae,{children:(0,V.jsx)(`form`,{id:p,onSubmit:async n=>{if(n.preventDefault(),!r||X.current!==null)return;if(!v(e,t)){q(`This connection cannot change project actions.`);return}let s=(R.trim()||null)!==(r.initial.keybinding?.trim()||null),c=v(e,i);if(s&&!c){q(`This connection cannot change keyboard shortcuts.`);return}let l=m.trim(),u=g.trim();if(l.length===0){q(`Name is required.`);return}if(u.length===0){q(`Command is required.`);return}q(null);let d;try{let e=r.scriptId??S(l,a.map(e=>e.id)),t=I({keybinding:R,command:x(e)}),n=B.trim();d={name:l,command:u,icon:w,runOnWorktreeCreate:A,waitForSetup:A&&N,runOnSettle:F,...r.scriptId===null&&c||s?{keybinding:t?.key??null}:{},previewUrl:n.length>0?n:null,autoOpenPreview:n.length>0&&W}}catch(e){q(e instanceof Error?e.message:`Failed to save action.`);return}let f={request:r};X.current=f,Y(r),k(!1);try{let e=await o(r.scriptId,d);if(X.current===f){if(e._tag===`Failure`){if(!ee(e)){let t=te(e);q(t instanceof Error?t.message:`Failed to save action.`)}}else $()}}catch(e){X.current===f&&q(e instanceof Error?e.message:`Failed to save action.`)}X.current===f&&(X.current=null,Y(null))},children:(0,V.jsxs)(`fieldset`,{className:`space-y-4`,disabled:Q||!d,children:[(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-name`,children:`Name`}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(de,{onOpenChange:k,open:O,children:[(0,V.jsx)(ue,{render:(0,V.jsx)(u,{type:`button`,variant:`outline`,className:`size-9 shrink-0`,"aria-label":`Choose icon`}),children:(0,V.jsx)(H,{icon:w,className:`size-4.5`})}),(0,V.jsx)(le,{align:`start`,children:(0,V.jsx)(`div`,{className:`grid grid-cols-3 gap-2`,children:be.map(e=>{let t=e.id===w;return(0,V.jsxs)(`button`,{type:`button`,className:`relative flex flex-col items-center gap-2 rounded-md border px-2 py-2 text-xs dark:border-transparent ${t?`border-primary/70 bg-primary/10 ring-inset dark:ring-1 dark:ring-primary/30`:`border-border/70 hover:bg-accent/60 dark:bg-white/[0.035]`}`,onClick:()=>{D(e.id),k(!1)},children:[(0,V.jsx)(H,{icon:e.id,className:`size-4`}),(0,V.jsx)(`span`,{children:e.label})]},e.id)})})})]}),(0,V.jsx)(y,{id:`script-name`,autoFocus:!0,placeholder:`Test`,value:m,onChange:e=>h(e.target.value)})]})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-keybinding`,children:`Keybinding`}),(0,V.jsx)(y,{disabled:!f,id:`script-keybinding`,placeholder:`Press shortcut`,value:R,readOnly:!0,onKeyDown:n=>{if(!v(e,t)||!v(e,`settings:write`)||n.key===`Tab`)return;if(n.preventDefault(),n.key===`Backspace`||n.key===`Delete`){z(``);return}let r=fe(n,navigator.platform);r&&z(r)}}),(0,V.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Press a shortcut. Use `,(0,V.jsx)(`code`,{children:`Backspace`}),` to clear. Shortcuts are environment-wide. Projects using the same action share its shortcut.`]})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-command`,children:`Command`}),(0,V.jsx)(ne,{id:`script-command`,placeholder:`bun test`,value:g,onChange:e=>C(e.target.value)})]}),(0,V.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,V.jsx)(E,{htmlFor:`script-preview-url`,children:`Preview URL (optional)`}),(0,V.jsx)(y,{id:`script-preview-url`,placeholder:`http://localhost:5173`,value:B,onChange:e=>U(e.target.value)}),(0,V.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Open this URL in the in-app preview when this action runs.`})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,V.jsx)(`span`,{children:`Run automatically on worktree creation`}),(0,V.jsx)(T,{checked:A,onCheckedChange:e=>M(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${A?``:`opacity-60`}`,children:[(0,V.jsx)(`span`,{children:`Wait for it to finish before the agent starts`}),(0,V.jsx)(T,{checked:N,disabled:!A,onCheckedChange:e=>P(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035]`,children:[(0,V.jsx)(`span`,{children:`Run in the thread's worktree when the thread settles`}),(0,V.jsx)(T,{checked:F,onCheckedChange:e=>L(!!e)})]}),(0,V.jsxs)(`label`,{className:`flex items-center justify-between gap-3 rounded-md border border-border/70 px-3 py-2 text-sm dark:border-transparent dark:bg-white/[0.035] ${B.trim().length===0?`opacity-60`:``}`,children:[(0,V.jsx)(`span`,{children:`Open preview automatically when this action runs`}),(0,V.jsx)(T,{checked:W,disabled:B.trim().length===0,onCheckedChange:e=>G(!!e)})]}),K&&(0,V.jsx)(`p`,{className:`text-sm text-destructive`,children:K})]})})}),(0,V.jsxs)(b,{variant:`bare`,children:[Z&&(0,V.jsx)(u,{type:`button`,variant:`destructive-outline`,className:`mr-auto`,disabled:Q||!d,onClick:()=>J(!0),children:`Delete`}),(0,V.jsx)(u,{type:`button`,variant:`outline`,onClick:$,children:`Cancel`}),(0,V.jsx)(u,{form:p,type:`submit`,disabled:Q||!d,children:Q?`Saving…`:Z?`Save changes`:`Save action`})]})]})}),(0,V.jsx)(pe,{open:xe&&d,onOpenChange:J,children:(0,V.jsxs)(me,{children:[(0,V.jsxs)(ve,{children:[(0,V.jsxs)(he,{children:[`Delete action "`,m,`"?`]}),(0,V.jsx)(ge,{children:`This action cannot be undone.`})]}),(0,V.jsxs)(_e,{children:[(0,V.jsx)(ye,{render:(0,V.jsx)(u,{variant:`outline`}),children:`Cancel`}),(0,V.jsx)(u,{variant:`destructive`,disabled:Q||!d,onClick:()=>{if(r?.scriptId){if(!v(e,t)){q(`This connection cannot change project actions.`);return}J(!1),$(),s(r.scriptId)}},children:`Delete action`})]})]})})]})}export{B as a,L as c,k as d,D as f,W as i,O as l,G as n,z as o,H as r,I as s,U as t,A as u};
|
|
2
|
+
//# sourceMappingURL=projectScriptEditor-2klDgdXc.js.map
|