ryco-cli 0.1.9 → 0.1.11
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/{AcpNativeLogging-CwXNgeCl.mjs → AcpNativeLogging-Ba9Nn9Re.mjs} +1 -1
- package/dist/{AcpNativeLogging-BBLrglnY.cjs → AcpNativeLogging-Be1KGJfF.cjs} +1 -1
- package/dist/{AzureDevOpsSourceControlProvider-lRTMr9X9.mjs → AzureDevOpsSourceControlProvider-CGlK6M0b.mjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-BMQxxk2n.cjs → AzureDevOpsSourceControlProvider-CVj-F-pW.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-F1J_75c0.mjs → BitbucketSourceControlProvider-BV6iRDi7.mjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-BXDk4GzL.cjs → BitbucketSourceControlProvider-CEZEd4PX.cjs} +2 -2
- package/dist/{ClaudeDriver-B_pvBuh5.cjs → ClaudeDriver-lBU7EyUX.cjs} +2 -2
- package/dist/{ClaudeDriver-BpYiEftb.mjs → ClaudeDriver-rooMNrJz.mjs} +2 -2
- package/dist/{CodexDriver-Bcju44ZM.cjs → CodexDriver-CZCIJSLV.cjs} +4 -4
- package/dist/{CodexDriver-6IRQy37T.mjs → CodexDriver-DBz2rPXb.mjs} +4 -4
- package/dist/{CodexTextGeneration-CCvcMT6Y.mjs → CodexTextGeneration-BeG7ymPC.mjs} +1 -1
- package/dist/{CodexTextGeneration-yaU53Kmz.cjs → CodexTextGeneration-BvIcyD1P.cjs} +1 -1
- package/dist/{CopilotDriver-CTxl0KmP.cjs → CopilotDriver-CX5zhEdZ.cjs} +3 -3
- package/dist/{CopilotDriver-BCe5V1Ll.mjs → CopilotDriver-D36vbGbn.mjs} +3 -3
- package/dist/{CursorDriver-D1Agqrbj.cjs → CursorDriver-CPBVeesr.cjs} +3 -3
- package/dist/{CursorDriver-C4V25d1y.mjs → CursorDriver-DWuuOSkJ.mjs} +3 -3
- package/dist/{ForgejoSourceControlProvider-C-NI9vaC.mjs → ForgejoSourceControlProvider-CeN7Snfr.mjs} +2 -2
- package/dist/{ForgejoSourceControlProvider-CV1lljGK.cjs → ForgejoSourceControlProvider-CzmmcAZO.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-B_7J1jOl.cjs → GitHubSourceControlProvider-DfFR9O2o.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-BeCMPF92.mjs → GitHubSourceControlProvider-Dmz1LJct.mjs} +2 -2
- package/dist/{GitLabSourceControlProvider-0BeWchVS.mjs → GitLabSourceControlProvider-C21lwphV.mjs} +2 -2
- package/dist/{GitLabSourceControlProvider-U0xcv577.cjs → GitLabSourceControlProvider-DGoelNmL.cjs} +2 -2
- package/dist/{GrokDriver-mkLP3IZl.cjs → GrokDriver-CIXj_4ry.cjs} +3 -3
- package/dist/{GrokDriver-DFw7DOdK.mjs → GrokDriver-qKX1a63G.mjs} +3 -3
- package/dist/{OpenCodeDriver-ChWHrFi7.mjs → OpenCodeDriver-CbdswhqU.mjs} +2 -2
- package/dist/{OpenCodeDriver-C_KFYA-P.cjs → OpenCodeDriver-DDEuwtXl.cjs} +2 -2
- package/dist/{SourceControlProviderDiscoveryCatalog-BTJDoEx1.mjs → SourceControlProviderDiscoveryCatalog-4_4yahsa.mjs} +1 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-Bwu_JBJN.cjs → SourceControlProviderDiscoveryCatalog-DJWDCoup.cjs} +1 -1
- package/dist/bin.cjs +46 -20
- package/dist/bin.mjs +46 -20
- package/dist/client/assets/AccountSettings-BUoiS8x1.js +1 -0
- package/dist/client/assets/AiFocusSettings-Cz1Uqn7a.js +1 -0
- package/dist/client/assets/AnimatedHeight-BIsV_Z3J.js +1 -0
- package/dist/client/assets/AppearanceSettings-CYbSApl4.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-CvclFpSW.js → BranchToolbar.logic-LIanCEVr.js} +1 -1
- package/dist/client/assets/ChatRightPanel-CKEjpQ_x.js +27 -0
- package/dist/client/assets/ChatThreadRouteView-D50onHY2.js +1 -0
- package/dist/client/assets/CommandPaletteDialog-DdRKgZ8m.js +1 -0
- package/dist/client/assets/{CompositeItem-e0rusLTG.js → CompositeItem-F3NGn6aG.js} +1 -1
- package/dist/client/assets/CompositeRoot-CmJGfRtc.js +1 -0
- package/dist/client/assets/ConnectionsSettings--CbTzkTn.js +7 -0
- package/dist/client/assets/DiagnosticsSettings-C74u3ce5.js +2 -0
- package/dist/client/assets/{DialogHandle-DZVZpjWD.js → DialogHandle-C4uSr9wX.js} +1 -1
- package/dist/client/assets/DialogPopup-Dck8r8Hn.js +1 -0
- package/dist/client/assets/DialogRoot-BpIvUdm7.js +1 -0
- package/dist/client/assets/{DialogTitle-CtpwXIBL.js → DialogTitle-CCedPAjV.js} +1 -1
- package/dist/client/assets/{DialogTrigger-CdeFWE8i.js → DialogTrigger-CYJ7_YcV.js} +1 -1
- package/dist/client/assets/DialogViewport-D-CrTM-P.js +1 -0
- package/dist/client/assets/DraftChatThreadRouteView-RTmLGTl0.js +1 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-DsqwSlwL.js → ExternalIdentityWeb.logic-D64j70NH.js} +1 -1
- package/dist/client/assets/{GlassSurface-EZnNd1mF.js → GlassSurface-C3IIWMu9.js} +1 -1
- package/dist/client/assets/HostedConnectionControls-CKiC01ju.js +1 -0
- package/dist/client/assets/HostedHubRoot-BS3rAYTy.js +1 -0
- package/dist/client/assets/HostedNativeAuthorizationRoute-BFTDyh4N.js +1 -0
- package/dist/client/assets/HostedRelayTrustNotice-eEOPKsBg.js +1 -0
- package/dist/client/assets/Icons-CT3nd2MA.js +1 -0
- package/dist/client/assets/IntegrationsSettingsPanel-Cg4eRHm_.js +1 -0
- package/dist/client/assets/KeybindingsSettings-CYj67N2D.js +7 -0
- package/dist/client/assets/McpServersSettings-Bc61hRUY.js +6 -0
- package/dist/client/assets/MobileSheet-CkeG6_SP.js +1 -0
- package/dist/client/assets/NewWorktreeDialog-CTlFjKa4.js +4 -0
- package/dist/client/assets/NoActiveThreadState-Dw9aoU2J.js +1 -0
- package/dist/client/assets/NodeSecuritySettings-DMkkTgfg.js +1 -0
- package/dist/client/assets/OpinionatedPluginsSettings-CeoSmZ90.js +1 -0
- package/dist/client/assets/PhoneGetAppInterstitial-7ZxxVbUB.js +1 -0
- package/dist/client/assets/PhoneGetAppInterstitialBackdrop-B8vfJdZd.js +1 -0
- package/dist/client/assets/PhoneHome-DRRoCd_y.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-LNEaPHQC.js +1 -0
- package/dist/client/assets/ProjectFavicon-BIMdZxK6.js +1 -0
- package/dist/client/assets/ProviderModelPicker-jd6GjQkO.js +1 -0
- package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BkoRegCn.js +1 -0
- package/dist/client/assets/ProvidersSettingsPanel-v2SvoEGx.js +1 -0
- package/dist/client/assets/RedactedSensitiveText-CxtaUiKH.js +1 -0
- package/dist/client/assets/RootAppShell-CFjrYjtn.js +6 -0
- package/dist/client/assets/RycoLetterMark-Bk0kvGJ_.js +1 -0
- package/dist/client/assets/SettingsDialog-CvGTsSV0.js +1 -0
- package/dist/client/assets/SettingsPanels-BmhZ8u4B.js +3 -0
- package/dist/client/assets/SettingsPanels.editor-B2x4U4rW.js +1 -0
- package/dist/client/assets/SourceControlSettings-DvPydmxX.js +1 -0
- package/dist/client/assets/StatisticsPage-Duk2cHVH.js +1 -0
- package/dist/client/assets/StatisticsPanel-D-uNJcdj.js +1 -0
- package/dist/client/assets/StatisticsSettingsLink-Cx43bOeo.js +1 -0
- package/dist/client/assets/ThreadStatusIndicators-D0xoATCw.js +0 -0
- package/dist/client/assets/{ThreadTerminalDrawer-Dju6roQA.js → ThreadTerminalDrawer-DjX8p7IH.js} +3 -3
- package/dist/client/assets/{ThreadWorkspacePanel-hfIocZRN.js → ThreadWorkspacePanel-DI0GXPBf.js} +18 -18
- package/dist/client/assets/{ToolbarRootContext-CgV898DN.js → ToolbarRootContext-BgqqXVly.js} +1 -1
- package/dist/client/assets/{WorkItemsTab-DYgsIthY.js → WorkItemsTab-ow45makA.js} +8 -8
- package/dist/client/assets/alert-LqMhbdE9.js +1 -0
- package/dist/client/assets/alert-dialog-DxoA6ky8.js +1 -0
- package/dist/client/assets/{authorization-CFcCWeGd.js → authorization-mIJKV2yp.js} +1 -1
- package/dist/client/assets/badge-CXw6fWrB.js +1 -0
- package/dist/client/assets/{branding-CG1VEma6.js → branding-C8SLy6Af.js} +1 -1
- package/dist/client/assets/button-BAbJxRzt.js +1 -0
- package/dist/client/assets/{capabilities-CK9Wa-Au.js → capabilities-BQuqC7jg.js} +1 -1
- package/dist/client/assets/{chatThreadActions-Ooky34bb.js → chatThreadActions-DQ8aOQ1g.js} +1 -1
- package/dist/client/assets/collapsible-dxy6kc2k.js +1 -0
- package/dist/client/assets/command-CGNKG_Oe.js +1 -0
- package/dist/client/assets/composerDraftStore-CdJJZe42.js +11 -0
- package/dist/client/assets/copy-UQjKGt7t.js +1 -0
- package/dist/client/assets/data-list-CYKBxN62.js +1 -0
- package/dist/client/assets/{desktopUpdateAtoms-C9VOpM6h.js → desktopUpdateAtoms-C82GmR67.js} +1 -1
- package/dist/client/assets/{desktopWorkspace-BOWgdyPs.js → desktopWorkspace-G5Z_JRbm.js} +1 -1
- package/dist/client/assets/{device-CLd1blIe.js → device-B56cBWWt.js} +12 -12
- package/dist/client/assets/dialog-DQsYchqu.js +1 -0
- package/dist/client/assets/draft-input-CkzOk8BY.js +1 -0
- package/dist/client/assets/{editorPreferences-C79SevBP.js → editorPreferences-CTDEj79K.js} +1 -1
- package/dist/client/assets/empty-DwzqNgCP.js +1 -0
- package/dist/client/assets/{env-CBdFekj3.js → env-B4arEvJg.js} +1 -1
- package/dist/client/assets/{getPseudoElementBounds-CWoLtsYr.js → getPseudoElementBounds-X62ElHN8.js} +1 -1
- package/dist/client/assets/group-D9ER9giz.js +1 -0
- package/dist/client/assets/{index-Bbc24tew.js → index-Bbz4fkK_.js} +2 -2
- package/dist/client/assets/input-CHEwW3oH.js +1 -0
- package/dist/client/assets/kbd-DCGQZk18.js +1 -0
- package/dist/client/assets/{keybindings-n2U57Td0.js → keybindings-CWJ7E9ZI.js} +1 -1
- package/dist/client/assets/label-CVFHsLFO.js +1 -0
- package/dist/client/assets/{lib-DoLGGVrW.js → lib-qiiNMGgU.js} +1 -1
- package/dist/client/assets/{logging-FtLrPmK_.js → logging-M8H3z7rQ.js} +1 -1
- package/dist/client/assets/main-DaYHZt-J.css +2 -0
- package/dist/client/assets/{main-C2i8ecSj.js → main-Dwu2cT6v.js} +3 -3
- package/dist/client/assets/menu-Dvxh8sD5.js +1 -0
- package/dist/client/assets/popover-CuH9Yrj3.js +1 -0
- package/dist/client/assets/{primary-0ymoUGkq.js → primary-OskAInOO.js} +1 -1
- package/dist/client/assets/{projectPaths-CHDYD_Gc.js → projectPaths-lDhAE9o_.js} +1 -1
- package/dist/client/assets/{providerDriverMeta-lsEf84Mz.js → providerDriverMeta-I0TSo-QI.js} +1 -1
- package/dist/client/assets/providerIconUtils-DnSYUN9l.js +1 -0
- package/dist/client/assets/providerInstances-BJcfB_9E.js +1 -0
- package/dist/client/assets/providerModels-BJcfB_9E.js +1 -0
- package/dist/client/assets/qr-code-Bddq6K7S.js +1 -0
- package/dist/client/assets/radio-group-CBZFr4C8.js +2 -0
- package/dist/client/assets/resolveAriaLabelledBy-CD_ugzhJ.js +1 -0
- package/dist/client/assets/{rightPanelRouteSearch-DkhE1otz.js → rightPanelRouteSearch-DB5gQGHK.js} +1 -1
- package/dist/client/assets/runtime-DKwoXpJv.js +1 -0
- package/dist/client/assets/scroll-area-Drsa8bNB.js +1 -0
- package/dist/client/assets/scrollEdges-B-cqxY4l.js +1 -0
- package/dist/client/assets/select-BYbVr-yg.js +1 -0
- package/dist/client/assets/separator-CdS5bi4Z.js +1 -0
- package/dist/client/assets/{session-logic-B0shVXpN.js → session-logic-DElAta-Z.js} +1 -1
- package/dist/client/assets/settingsDialogStore-ygYoScKe.js +1 -0
- package/dist/client/assets/settingsLayout-D8glO7f1.js +1 -0
- package/dist/client/assets/settingsSections.logic-F8RXVmAq.js +1 -0
- package/dist/client/assets/sheet-BO78gIKZ.js +1 -0
- package/dist/client/assets/sidebar-Dm6l2GA6.js +1 -0
- package/dist/client/assets/sidebarProjectFolders-Cs13ZUN8.js +4 -0
- package/dist/client/assets/{sidebarStatusText-DjLAEM1H.js → sidebarStatusText-D0HT0fek.js} +1 -1
- package/dist/client/assets/skeleton-CvQSeJbw.js +1 -0
- package/dist/client/assets/spinner-ClF0jOcX.js +1 -0
- package/dist/client/assets/src-Vf4LVnMX.js +14 -0
- package/dist/client/assets/storeSelectors-Cq_JKyiF.js +1 -0
- package/dist/client/assets/switch-BTGo9Yip.js +1 -0
- package/dist/client/assets/{terminal-links-DERnXf-G.js → terminal-links-CZ3c9AbA.js} +1 -1
- package/dist/client/assets/textarea-RFPODxWW.js +1 -0
- package/dist/client/assets/{threadPriorityRefreshRuntime-D2XRdn_X.js → threadPriorityRefreshRuntime-DJF5drVD.js} +1 -1
- package/dist/client/assets/toast-CcSCAm4B.js +1 -0
- package/dist/client/assets/toggle-I6h33Cu5.js +1 -0
- package/dist/client/assets/toggle-group-mLIkiJtU.js +1 -0
- package/dist/client/assets/tooltip-C8sAONBj.js +1 -0
- package/dist/client/assets/types-Cq_JKyiF.js +1 -0
- package/dist/client/assets/{uiStateStore-hgy2ilHo.js → uiStateStore-B6pjzSjj.js} +1 -1
- package/dist/client/assets/{useAtlassian-1BSXt3BO.js → useAtlassian-Bx2ua3JV.js} +0 -0
- package/dist/client/assets/{useButton-_xmxdcVX.js → useButton-D__1LqCF.js} +1 -1
- package/dist/client/assets/useCompositeListItem-Cmr_nuuG.js +1 -0
- package/dist/client/assets/useCopyToClipboard-BTpWxumf.js +1 -0
- package/dist/client/assets/{useDebouncedValue-DU7gLY9w.js → useDebouncedValue-DHjoudTq.js} +1 -1
- package/dist/client/assets/{useFloatingRootContext-CSPbIu1q.js → useFloatingRootContext-D5EZmrCa.js} +1 -1
- package/dist/client/assets/useHandleNewThread-DHO0PWGZ.js +1 -0
- package/dist/client/assets/{useLabelableId-COmfNFnd.js → useLabelableId-DnQJ7amm.js} +1 -1
- package/dist/client/assets/useLocation-CDeYzWW6.js +1 -0
- package/dist/client/assets/{useOpenInteractionType-JaQBnIly.js → useOpenInteractionType-CjtpACKR.js} +1 -1
- package/dist/client/assets/usePhoneThreadActions-OTf7yIbN.js +1 -0
- package/dist/client/assets/usePopupViewport-BuhsNdVy.js +1 -0
- package/dist/client/assets/useScrollLock-D3tMGsRk.js +1 -0
- package/dist/client/assets/{useStatistics-B2NNfOqV.js → useStatistics-DEtKeVPP.js} +14 -14
- package/dist/client/assets/{useSwipeDismiss-B8Fo31QE.js → useSwipeDismiss-CbgDJvw1.js} +1 -1
- package/dist/client/assets/{useThreadActions-B9kmG6FU.js → useThreadActions-DLxhOMkz.js} +1 -1
- package/dist/client/assets/{useTriggerFocusGuards-O2ZE3JtI.js → useTriggerFocusGuards-CrugmkhX.js} +1 -1
- package/dist/client/assets/{useValueChanged-Dj0YXujm.js → useValueChanged-MQtIzPIU.js} +1 -1
- package/dist/client/assets/utils-BofFIn5Y.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-Dn-L1KcR.cjs → collectUint8StreamText-Bb52hlpd.cjs} +36 -6
- package/dist/{collectUint8StreamText-DNY4x71l.mjs → collectUint8StreamText-EDg4F0TU.mjs} +31 -7
- package/dist/{makeManagedServerProvider-D3T5X-B4.mjs → makeManagedServerProvider-Cf8bNWwc.mjs} +1 -1
- package/dist/{makeManagedServerProvider-DNnEIuhW.cjs → makeManagedServerProvider-itynW7xv.cjs} +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AccountSettings-ckhtafp7.js +0 -1
- package/dist/client/assets/AiFocusSettings-DGHWPxgZ.js +0 -1
- package/dist/client/assets/AnimatedHeight-BwF3D1vB.js +0 -1
- package/dist/client/assets/AppearanceSettings-CDvljGDS.js +0 -1
- package/dist/client/assets/ChatRightPanel-CL4qBTZb.js +0 -27
- package/dist/client/assets/ChatThreadRouteView-BuOmyy7a.js +0 -1
- package/dist/client/assets/CommandPaletteDialog-lCv8qmpm.js +0 -1
- package/dist/client/assets/CompositeRoot-vnNIb6NL.js +0 -1
- package/dist/client/assets/ConnectionsSettings-BJJrdASq.js +0 -7
- package/dist/client/assets/DiagnosticsSettings-CxT6modq.js +0 -2
- package/dist/client/assets/DialogPopup-BIJxt62s.js +0 -1
- package/dist/client/assets/DialogRoot-8xRqqTn8.js +0 -1
- package/dist/client/assets/DialogViewport-C2oKvkDR.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-FriWZLgB.js +0 -1
- package/dist/client/assets/HostedConnectionControls-BYS30u9D.js +0 -1
- package/dist/client/assets/HostedHubRoot-Bi0LEQCK.js +0 -1
- package/dist/client/assets/HostedNativeAuthorizationRoute-B-F2I7S_.js +0 -1
- package/dist/client/assets/HostedRelayTrustNotice-CB0O5OAN.js +0 -1
- package/dist/client/assets/Icons-Cme5LL0k.js +0 -1
- package/dist/client/assets/IntegrationsSettingsPanel-CS9vrmPw.js +0 -1
- package/dist/client/assets/KeybindingsSettings-CQi3dbgG.js +0 -7
- package/dist/client/assets/McpServersSettings-BMV56xhW.js +0 -6
- package/dist/client/assets/MobileSheet-C8OrQzw0.js +0 -1
- package/dist/client/assets/NewWorktreeDialog-DnxmXlh2.js +0 -4
- package/dist/client/assets/NoActiveThreadState-BWs9JspL.js +0 -1
- package/dist/client/assets/NodeSecuritySettings-iTvQFged.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-BcGJ1f7b.js +0 -1
- package/dist/client/assets/PhoneGetAppInterstitial-BJGf9FwA.js +0 -1
- package/dist/client/assets/PhoneGetAppInterstitialBackdrop-KgY3ydJF.js +0 -1
- package/dist/client/assets/PhoneHome-kBrFqF5K.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-CBI6Gl8b.js +0 -1
- package/dist/client/assets/ProjectFavicon-D0HVbYDF.js +0 -1
- package/dist/client/assets/ProviderModelPicker-DZTCKskK.js +0 -1
- package/dist/client/assets/ProviderUpdateLaunchNotification.logic-CtfZzmYI.js +0 -1
- package/dist/client/assets/ProvidersSettingsPanel-DAz8hMXw.js +0 -1
- package/dist/client/assets/RedactedSensitiveText-CRGSSHz3.js +0 -1
- package/dist/client/assets/RootAppShell-BWtqIOLh.js +0 -6
- package/dist/client/assets/RycoLetterMark-E82lj57c.js +0 -1
- package/dist/client/assets/SettingsDialog-RrFirXQp.js +0 -1
- package/dist/client/assets/SettingsPanels-bLK5JAV2.js +0 -3
- package/dist/client/assets/SettingsPanels.editor-DTAK4nlM.js +0 -1
- package/dist/client/assets/SourceControlSettings-CpnAAcyj.js +0 -1
- package/dist/client/assets/StatisticsPage-DwU3oJRO.js +0 -1
- package/dist/client/assets/StatisticsPanel-8OSQWA79.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-Bb86VtRL.js +0 -1
- package/dist/client/assets/ThreadStatusIndicators-wgiSGtn6.js +0 -0
- package/dist/client/assets/alert-DFo8_l6D.js +0 -1
- package/dist/client/assets/alert-dialog-Cmodiuqg.js +0 -1
- package/dist/client/assets/badge-BbJiUmhG.js +0 -1
- package/dist/client/assets/button-BT6cGe5S.js +0 -1
- package/dist/client/assets/collapsible-BIEfHdzc.js +0 -1
- package/dist/client/assets/command-BjXuIvYa.js +0 -1
- package/dist/client/assets/composerDraftStore-_Xy-iY4b.js +0 -11
- package/dist/client/assets/data-list-iVYHRfWS.js +0 -1
- package/dist/client/assets/dialog-BUIS3TXH.js +0 -1
- package/dist/client/assets/draft-input-CUkU2EAu.js +0 -1
- package/dist/client/assets/empty-BNn5X77p.js +0 -1
- package/dist/client/assets/group-a6GUMeTh.js +0 -1
- package/dist/client/assets/input-zjUwoDs3.js +0 -1
- package/dist/client/assets/kbd-BGOWI5KX.js +0 -1
- package/dist/client/assets/label-DWGvDLsD.js +0 -1
- package/dist/client/assets/main-an0sD0U2.css +0 -2
- package/dist/client/assets/menu-CwPZHq2g.js +0 -1
- package/dist/client/assets/popover-j6ZF-s94.js +0 -1
- package/dist/client/assets/providerIconUtils-_WuNo2Ek.js +0 -1
- package/dist/client/assets/providerInstances-DEQekDE8.js +0 -1
- package/dist/client/assets/providerModels-DEQekDE8.js +0 -1
- package/dist/client/assets/qr-code-DbscZ6Qz.js +0 -1
- package/dist/client/assets/radio-group-BTtFIcDI.js +0 -2
- package/dist/client/assets/resolveAriaLabelledBy-CxOsaNI8.js +0 -1
- package/dist/client/assets/runtime-BkRtSwRY.js +0 -1
- package/dist/client/assets/scroll-area-B-bu3v0j.js +0 -1
- package/dist/client/assets/scrollEdges-CDEU4fOg.js +0 -1
- package/dist/client/assets/select-rPdFVPfm.js +0 -1
- package/dist/client/assets/separator-CaVw81t6.js +0 -1
- package/dist/client/assets/settingsDialogStore-CPtQPrek.js +0 -1
- package/dist/client/assets/settingsLayout-B8os-EWr.js +0 -1
- package/dist/client/assets/settingsSections.logic-Be8uaymC.js +0 -1
- package/dist/client/assets/sheet-DQBndeJT.js +0 -1
- package/dist/client/assets/sidebar-H-CSxQVD.js +0 -1
- package/dist/client/assets/sidebarProjectFolders-CsZlmaJg.js +0 -4
- package/dist/client/assets/skeleton-CCuGgPK1.js +0 -1
- package/dist/client/assets/spinner-CgrOdIjl.js +0 -1
- package/dist/client/assets/src-b7-hpIff.js +0 -14
- package/dist/client/assets/storeSelectors-BLHJVLCP.js +0 -1
- package/dist/client/assets/switch-cMx5Wv_R.js +0 -1
- package/dist/client/assets/textarea-DIqqrD8A.js +0 -1
- package/dist/client/assets/toast-DonYDy-6.js +0 -1
- package/dist/client/assets/toggle-BIs83JSj.js +0 -1
- package/dist/client/assets/toggle-group-0LgplGMc.js +0 -1
- package/dist/client/assets/tooltip-BaJgdXlL.js +0 -1
- package/dist/client/assets/types-BLHJVLCP.js +0 -1
- package/dist/client/assets/useCompositeListItem-dLIU4XjY.js +0 -1
- package/dist/client/assets/useCopyToClipboard-qG2nhvjQ.js +0 -1
- package/dist/client/assets/useHandleNewThread-COAg-4eT.js +0 -1
- package/dist/client/assets/useLocation-DsqdpYA5.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-RjcSVspy.js +0 -1
- package/dist/client/assets/usePopupViewport-wXfO6SZE.js +0 -1
- package/dist/client/assets/useScrollLock-Dr_P7FLZ.js +0 -1
- package/dist/client/assets/utils-c6dglOTK.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./index-Bbc24tew.js";import{t as r}from"./compiler-runtime-qmuS0Svy.js";import{n as i}from"./env-CBdFekj3.js";import{N as a}from"./runtime-BkRtSwRY.js";import{f as o,t as s}from"./utils-c6dglOTK.js";import{t as c}from"./useNavigate-2tVq4iZ2.js";import{t as l}from"./settingsDialogStore-CPtQPrek.js";import{t as u}from"./activity-1CkdQG5u.js";import{a as d,i as f,n as p,o as m,r as h,t as g}from"./SettingsPanels-bLK5JAV2.js";import{m as _,p as v}from"./desktopUpdateAtoms-C9VOpM6h.js";import{t as y}from"./chart-column-Dw6ACmXM.js";import{t as b}from"./git-branch-BKr-Ij4u.js";import{t as x}from"./keyboard-BqeRMHfL.js";import{t as S}from"./palette-BSD_aJZg.js";import{t as ee}from"./search-BGQsenCM.js";import{t as C}from"./settings-2-CZQg_KUQ.js";import{t as w}from"./server-JApJpgLa.js";import{t as T}from"./shield-IZEIJ8r7.js";import{t as E}from"./sparkles-CAf3oJ5S.js";import{t as D}from"./user-round-Cpzx8pSw.js";import{t as te}from"./scroll-area-B-bu3v0j.js";import{t as O}from"./button-BT6cGe5S.js";import{c as ne,s as k,t as re}from"./dialog-BUIS3TXH.js";import{a as ie,n as ae,t as oe}from"./settingsSections.logic-Be8uaymC.js";var A=e(t(),1),j=r(),M=[{section:`inbox`,title:`AI Focus`,description:`Prioritize the Inbox with bounded, environment-local model ranking.`,keywords:`priority sort active threads model ranking focus refresh`},{section:`inbox`,title:`AI Focus models`,description:`Choose or inherit the ranking model for each connected environment.`,keywords:`provider node disclosure privacy data`},{section:`general`,title:`Time format`,description:`System default, 12-hour or 24-hour clock.`,keywords:`clock hours`},{section:`general`,title:`Default editor`,description:`Pin which editor opens directories and files.`,keywords:`vscode cursor open in`},{section:`general`,title:`Diff line wrapping`,description:`Default wrap state when the diff panel opens.`,keywords:`word wrap`},{section:`general`,title:`Hide whitespace changes`,description:`Whether the diff panel ignores whitespace-only edits.`,keywords:`diff`},{section:`general`,title:`Remote Git status`,description:`Refresh remote branch and pull request metadata.`,keywords:`git polling refresh remote`},{section:`general`,title:`PR & workflow updates`,description:`Choose automatic, reduced, or manual pull request and workflow refreshes.`,keywords:`github actions checks ci polling refresh`},{section:`general`,title:`Stream token by token (legacy)`,description:`Compatibility mode for token-by-token assistant output.`,keywords:`token streaming assistant output streaming tokens buffered`,targetId:`legacy-token-streaming`},{section:`general`,title:`Provider update checks`,description:`Check installed provider CLIs for newer versions.`,keywords:`upgrade cli`},{section:`general`,title:`Auto-open overview`,description:`Open the overview when plans or progress appear.`,keywords:`panel plan`},{section:`general`,title:`New threads`,description:`Default workspace mode for newly created drafts.`,keywords:`local worktree draft`},{section:`general`,title:`Add project starts in`,description:`Starting directory for the Add Project browser.`,keywords:`folder path`},{section:`general`,title:`Archive confirmation`,description:`Ask before archiving a thread.`,keywords:`confirm`},{section:`general`,title:`Delete confirmation`,description:`Ask before deleting a thread.`,keywords:`confirm remove`},{section:`general`,title:`Update track`,description:`Which release channel the app follows.`,keywords:`beta stable release channel`},{section:`appearance`,title:`Interface font`,description:`Normal app text, navigation, dialogs, and controls.`,keywords:`typeface dm sans inter geist`},{section:`appearance`,title:`Code font`,description:`Code blocks, diffs, file paths, and terminal surfaces.`,keywords:`monospace jetbrains fira`},{section:`appearance`,title:`Text size`,description:`Scale the interface independently from the theme.`,keywords:`zoom font size compact`},{section:`appearance`,title:`Corner radius`,description:`Rounding for panels, buttons, inputs, and menus.`,keywords:`round square`},{section:`appearance`,title:`Primary color`,description:`Accent color for links, focus rings, and actions.`,keywords:`accent custom violet amber`},{section:`appearance`,title:`Transparency`,description:`Glass and floating surfaces like dialogs, menus, popups.`,keywords:`glass blur liquid material solid`},{section:`appearance`,title:`Panel layout`,description:`How the overview panel arranges its sections.`,keywords:`stack hybrid status board`},{section:`appearance`,title:`Theme palette`,description:`Built-in and custom color themes; import and export.`,keywords:`dark midnight graphite nord dracula catppuccin`},{section:`appearance`,title:`Auto-collapse wide composer labels`,description:`Show long composer mode labels only on hover or focus.`,keywords:`chips`},{section:`appearance`,title:`Always use Build mode`,description:`Hide the mode selector and send every turn in Build mode.`,keywords:`composer`},{section:`appearance`,title:`Theme variant`,description:`Light, dark, or follow the system preference.`,keywords:`color mode dark light`},{section:`providers`,title:`Provider instances`,description:`Configure Codex, Claude, Copilot, OpenCode, and Cursor.`,keywords:`api model driver accent`},{section:`mcp-servers`,title:`External integrations`,description:`Pair local Codex or Claude MCP clients with scoped, revocable access.`,keywords:`model context protocol tools pairing codex claude approval agent control`},{section:`mcp-servers`,title:`MCP Servers`,description:`Manage Codex, Claude, and other provider-native MCP servers.`,keywords:`model context protocol tools add server oauth profiles providers`},{section:`keybindings`,title:`Keybindings file`,description:`Customize shortcuts via the keybindings configuration file.`,keywords:`shortcuts hotkeys keyboard`},{section:`source-control`,title:`Version Control`,description:`Git behavior and defaults.`,keywords:`git commit`},{section:`source-control`,title:`Source Control Providers`,description:`GitHub and other source control provider connections.`,keywords:`github pr pull request`},{section:`connections`,title:`Network access`,description:`Expose the local backend on your network.`,keywords:`lan host remote`},{section:`connections`,title:`Pairing link`,description:`Scan to open this backend on another device.`,keywords:`qr code phone mobile`},{section:`connections`,title:`Tailscale HTTPS`,description:`Serve over your tailnet with HTTPS.`,keywords:`vpn remote`},{section:`connections`,title:`Authorized clients`,description:`Devices and sessions allowed to connect.`,keywords:`revoke tokens`},{section:`security`,title:`Session code`,description:`Compare this browser's channel against the one your node's CLI shows.`,keywords:`security verification websas e2ee compare short authentication string`},{section:`security`,title:`Enrollment fingerprint`,description:`This node's identity, and the prekey and continuity behind it.`,keywords:`security e2ee key fingerprint rotate lineage`},{section:`security`,title:`Authorized client keys`,description:`Approve, reduce, revoke, or delete a client key, and open a pairing window.`,keywords:`security e2ee pairing fingerprint refused attempts`},{section:`security`,title:`Admission policy`,description:`Require E2EE, require approved clients, and advance the policy generation.`,keywords:`security e2ee strict fallback plaintext`},{section:`diagnostics`,title:`Diagnostics`,description:`Logs, tracing, resource history, and live activity.`,keywords:`debug performance slow`},{section:`diagnostics`,title:`Test notification`,description:`Fire sample notifications to preview the toast design and stacking.`,keywords:`toast notifications preview trigger sample`},{section:`statistics`,title:`Statistics`,description:`Usage activity and history.`,keywords:`heatmap usage tokens`},{section:`archived`,title:`Archive`,description:`Archived threads; restore or delete permanently.`,keywords:`trash restore`}],N=o(),P=[{id:`account`,label:`Account`,icon:D},{id:`general`,label:`General`,icon:C},{id:`inbox`,label:`Inbox`,icon:E},{id:`providers`,label:`Providers`,icon:m},{id:`opinionated-plugins`,label:`Plugins`,icon:f},{id:`mcp-servers`,label:`Integrations`,icon:w},{id:`appearance`,label:`Appearance`,icon:S},{id:`keybindings`,label:`Keybindings`,icon:x},{id:`source-control`,label:`Source Control`,icon:b},{id:`connections`,label:`Connections`,icon:d},{id:`security`,label:`Security`,icon:T},{id:`diagnostics`,label:`Diagnostics`,icon:u},{id:`statistics`,label:`Statistics`,icon:y},{id:`archived`,label:`Archive`,icon:_}];P.map(e=>e.id),new Map(P.map(e=>[e.id,e.label]));var se=new Set([`general`,`providers`,`appearance`]),F=(0,A.lazy)(()=>n(()=>import(`./AccountSettings-ckhtafp7.js`).then(e=>({default:e.AccountSettingsPanel})),[])),I=(0,A.lazy)(()=>n(()=>import(`./ProvidersSettingsPanel-DAz8hMXw.js`).then(e=>({default:e.ProvidersSettingsPanel})),[])),L=(0,A.lazy)(()=>n(()=>import(`./AiFocusSettings-DGHWPxgZ.js`).then(e=>({default:e.AiFocusSettings})),[])),R=(0,A.lazy)(()=>n(()=>import(`./OpinionatedPluginsSettings-BcGJ1f7b.js`).then(e=>({default:e.OpinionatedPluginsSettingsPanel})),[])),z=(0,A.lazy)(()=>n(()=>import(`./IntegrationsSettingsPanel-CS9vrmPw.js`).then(e=>({default:e.IntegrationsSettingsPanel})),[])),B=(0,A.lazy)(()=>n(()=>import(`./AppearanceSettings-CDvljGDS.js`).then(e=>({default:e.AppearanceSettingsPanel})),[])),V=(0,A.lazy)(()=>n(()=>import(`./KeybindingsSettings-CQi3dbgG.js`).then(e=>({default:e.KeybindingsSettingsPanel})),[])),H=(0,A.lazy)(()=>n(()=>import(`./SourceControlSettings-CpnAAcyj.js`).then(e=>({default:e.SourceControlSettingsPanel})),[])),U=(0,A.lazy)(()=>n(()=>import(`./ConnectionsSettings-BJJrdASq.js`).then(e=>({default:e.ConnectionsSettings})),[])),W=(0,A.lazy)(()=>n(()=>import(`./NodeSecuritySettings-iTvQFged.js`).then(e=>({default:e.NodeSecuritySettings})),[])),G=(0,A.lazy)(()=>n(()=>import(`./DiagnosticsSettings-CxT6modq.js`).then(e=>({default:e.DiagnosticsSettings})),[])),K=(0,A.lazy)(()=>n(()=>import(`./StatisticsSettingsLink-Bb86VtRL.js`).then(e=>({default:e.StatisticsSettingsLink})),[]));function ce(e){let t=(0,j.c)(6),{onRestored:n}=e,{changedSettingLabels:r,restoreDefaults:i}=h(n),a=r.length===0,o;t[0]===i?o=t[1]:(o=()=>void i(),t[0]=i,t[1]=o);let s;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,N.jsx)(v,{className:`size-3.5`}),t[2]=s):s=t[2];let c;return t[3]!==a||t[4]!==o?(c=(0,N.jsxs)(O,{size:`xs`,variant:`outline`,disabled:a,onClick:o,children:[s,`Restore defaults`]}),t[3]=a,t[4]=o,t[5]=c):c=t[5],c}function le(e){let t=(0,j.c)(45),{section:n,searchTargetId:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,N.jsx)(`div`,{className:`flex min-h-80 items-center justify-center text-muted-foreground text-sm`,children:`Loading settings...`}),t[0]=i):i=t[0];let a;t[1]===n?a=t[2]:(a=n===`account`?(0,N.jsx)(F,{}):null,t[1]=n,t[2]=a);let o;t[3]!==r||t[4]!==n?(o=n===`general`?(0,N.jsx)(p,{searchTargetId:r}):null,t[3]=r,t[4]=n,t[5]=o):o=t[5];let s;t[6]===n?s=t[7]:(s=n===`inbox`?(0,N.jsx)(L,{}):null,t[6]=n,t[7]=s);let c;t[8]===n?c=t[9]:(c=n===`providers`?(0,N.jsx)(I,{}):null,t[8]=n,t[9]=c);let l;t[10]===n?l=t[11]:(l=n===`opinionated-plugins`?(0,N.jsx)(R,{}):null,t[10]=n,t[11]=l);let u;t[12]===n?u=t[13]:(u=n===`mcp-servers`?(0,N.jsx)(z,{}):null,t[12]=n,t[13]=u);let d;t[14]===n?d=t[15]:(d=n===`appearance`?(0,N.jsx)(B,{}):null,t[14]=n,t[15]=d);let f;t[16]===n?f=t[17]:(f=n===`keybindings`?(0,N.jsx)(V,{}):null,t[16]=n,t[17]=f);let m;t[18]===n?m=t[19]:(m=n===`source-control`?(0,N.jsx)(H,{}):null,t[18]=n,t[19]=m);let h;t[20]===n?h=t[21]:(h=n===`connections`?(0,N.jsx)(U,{}):null,t[20]=n,t[21]=h);let _;t[22]===n?_=t[23]:(_=n===`security`?(0,N.jsx)(W,{}):null,t[22]=n,t[23]=_);let v;t[24]===n?v=t[25]:(v=n===`diagnostics`?(0,N.jsx)(G,{}):null,t[24]=n,t[25]=v);let y;t[26]===n?y=t[27]:(y=n===`statistics`?(0,N.jsx)(K,{}):null,t[26]=n,t[27]=y);let b;t[28]===n?b=t[29]:(b=n===`archived`?(0,N.jsx)(g,{}):null,t[28]=n,t[29]=b);let x;return t[30]!==m||t[31]!==h||t[32]!==_||t[33]!==v||t[34]!==y||t[35]!==b||t[36]!==a||t[37]!==o||t[38]!==s||t[39]!==c||t[40]!==l||t[41]!==u||t[42]!==d||t[43]!==f?(x=(0,N.jsxs)(A.Suspense,{fallback:i,children:[a,o,s,c,l,u,d,f,m,h,_,v,y,b]}),t[30]=m,t[31]=h,t[32]=_,t[33]=v,t[34]=y,t[35]=b,t[36]=a,t[37]=o,t[38]=s,t[39]=c,t[40]=l,t[41]=u,t[42]=d,t[43]=f,t[44]=x):x=t[44],x}function q(){let e=(0,j.c)(21),t=c(),n=l(J),r=l(_e),o=l(ge),u=l(he),d=a(me),f=a(pe),p=a(fe),m=i(),h=oe(f,p),g=ae(d,f,p),_=P.filter(e=>ie(e.id,{hosted:m,role:g})),v=_.some(e=>e.id===r)?r:_[0]?.id??`appearance`;(0,A.useEffect)(()=>{m&&!h||n&&r!==v&&u(v)},[v,m,n,h,r,u]);let[y,b]=(0,A.useState)(``),[x,S]=(0,A.useState)(null),C,w;e[0]===n?(C=e[1],w=e[2]):(C=()=>{n||(b(``),S(null))},w=[n],e[0]=n,e[1]=C,e[2]=w),(0,A.useEffect)(C,w);let T=new Set(_.map(de)),E=y.trim().toLowerCase(),D=E.length===0?[]:M.filter(e=>T.has(e.section)&&`${e.title} ${e.description} ${e.keywords??``}`.toLowerCase().includes(E)),[O,F]=(0,A.useState)(0),I;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(I=()=>{F(ue)},e[3]=I):I=e[3];let L=I,R=se.has(v),z=Math.max(0,_.findIndex(e=>e.id===v)),B;e[4]===o?B=e[5]:(B=e=>{e||o()},e[4]=o,e[5]=B);let V;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,N.jsx)(ne,{className:`shrink-0 text-base font-semibold`,children:`Settings`}),e[6]=V):V=e[6];let H;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,N.jsx)(ee,{"aria-hidden":!0,className:`pointer-events-none absolute top-1/2 left-2.5 size-3.5 -translate-y-1/2 text-muted-foreground/60`}),e[7]=H):H=e[7];let U;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(U=e=>{S(null),b(e.target.value)},e[8]=U):U=e[8];let W;e[9]===y?W=e[10]:(W=(0,N.jsxs)(`div`,{className:`flex min-w-0 items-center gap-4`,children:[V,(0,N.jsxs)(`div`,{className:`relative w-72 max-w-[40vw]`,children:[H,(0,N.jsx)(`input`,{type:`search`,value:y,onChange:U,placeholder:`Search settings…`,"aria-label":`Search settings`,className:`h-8 w-full rounded-md border border-input bg-muted/40 pr-3 pl-8 text-[13px] outline-none transition-colors placeholder:text-muted-foreground/60 focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring/40`})]})]}),e[9]=y,e[10]=W);let G=R?(0,N.jsx)(ce,{onRestored:L}):null,K;e[11]===G?K=e[12]:(K=(0,N.jsx)(`div`,{className:`flex shrink-0 items-center gap-2 pr-9`,children:G}),e[11]=G,e[12]=K);let q;e[13]!==W||e[14]!==K?(q=(0,N.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center justify-between border-b border-border px-5`,children:[W,K]}),e[13]=W,e[14]=K,e[15]=q):q=e[15];let Y=`translateY(${z*2.5}rem)`,X;e[16]===Y?X=e[17]:(X=(0,N.jsx)(`span`,{className:`pointer-events-none absolute top-2 right-2 left-2 z-0 h-9 rounded-md bg-accent transition-transform duration-[240ms] ease-out`,style:{transform:Y},"aria-hidden":!0}),e[16]=Y,e[17]=X);let Z=te,Q=E.length>0?(0,N.jsx)(`div`,{className:`p-4`,children:(0,N.jsx)(`div`,{className:`flex flex-col gap-0.5 rounded-xl border border-border bg-card p-1.5 shadow-sm/4`,children:D.length===0?(0,N.jsxs)(`p`,{className:`px-2 py-8 text-center text-sm text-muted-foreground`,children:[`No settings match “`,y.trim(),`”.`]}):D.map(e=>{let n=_.find(t=>t.id===e.section)?.label;return(0,N.jsxs)(`button`,{type:`button`,onClick:()=>{if(e.section===`statistics`){o(),t({to:`/statistics`});return}S(e.targetId??null),u(e.section),b(``)},className:`flex flex-col gap-0.5 rounded-md px-3 py-2.5 text-left outline-hidden ring-ring transition-colors hover:bg-accent focus-visible:ring-2`,children:[(0,N.jsxs)(`span`,{className:`flex items-baseline gap-2`,children:[(0,N.jsx)(`span`,{className:`text-sm font-medium`,children:e.title}),n?(0,N.jsx)(`span`,{className:`text-[11px] text-muted-foreground/70`,children:n}):null]}),(0,N.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:e.description})]},`${e.section}:${e.title}`)})})}):(0,N.jsx)(`div`,{className:`flex flex-col`,children:(0,N.jsx)(le,{section:v,searchTargetId:x})},O),$;return e[18]!==Z||e[19]!==Q?($=(0,N.jsx)(Z,{className:`min-h-0 min-w-0 flex-1`,children:Q}),e[18]=Z,e[19]=Q,e[20]=$):$=e[20],(0,N.jsx)(re,{open:n,onOpenChange:B,children:(0,N.jsxs)(k,{className:`project-glass-surface h-[min(88dvh,880px)] max-w-[1180px] overflow-hidden p-0`,bottomStickOnMobile:!1,showCloseButton:!0,surface:`glass`,children:[q,(0,N.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-row`,children:[(0,N.jsxs)(`nav`,{className:`relative isolate flex w-12 shrink-0 flex-col gap-1 border-r border-border p-2 sm:w-48`,children:[X,_.map(e=>{let t=e.icon,n=v===e.id;return(0,N.jsxs)(`button`,{type:`button`,onClick:()=>{S(null),u(e.id)},className:s(`relative z-10 flex h-9 items-center gap-2.5 rounded-md px-2 text-left text-[13px] outline-hidden ring-ring transition-colors duration-150 focus-visible:ring-2`,n?`font-medium text-foreground`:`text-muted-foreground/70 hover:text-foreground/80`),"aria-label":e.label,"aria-current":n?`page`:void 0,children:[(0,N.jsx)(t,{className:s(`size-4 shrink-0`,n?`text-foreground`:`text-muted-foreground/60`)}),(0,N.jsx)(`span`,{className:`hidden truncate sm:inline`,children:e.label})]},e.id)})]}),$]})]})})}function ue(e){return e+1}function de(e){return e.id}function fe(e){return e.transportStatus}function pe(e){return e.directoryStatus}function me(e){return e.effectiveRole}function he(e){return e.setSection}function ge(e){return e.closeSettings}function _e(e){return e.section}function J(e){return e.open}export{q as SettingsDialog};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{_ as r,t as i}from"./env-CBdFekj3.js";import{T as a,V as o,ct as s,vl as c}from"./src-b7-hpIff.js";import{Bn as l,Ft as u,Gn as d,Gt as f,Jt as p,Rn as m,Sn as h,xn as g,zn as _}from"./runtime-BkRtSwRY.js";import{f as v}from"./utils-c6dglOTK.js";import{i as y,t as b}from"./branding-CG1VEma6.js";import{f as x}from"./useRenderElement-DchFnsR8.js";import{c as S,l as C,m as w,n as T,o as E,r as D,s as O,t as k}from"./desktopUpdateAtoms-C9VOpM6h.js";import{t as A}from"./chevron-right-BWYGybX9.js";import{i as j}from"./toast-DonYDy-6.js";import{t as M}from"./shallow-DWZCFNun.js";import{i as N}from"./timestampFormat-8uPXS812.js";import{i as ee,n as te,t as P}from"./tooltip-BaJgdXlL.js";import{t as F}from"./switch-cMx5Wv_R.js";import{t as I}from"./ProjectFavicon-D0HVbYDF.js";import{t as ne}from"./button-BT6cGe5S.js";import{t as L}from"./toastHelpers-CSQRKo4F.js";import{t as R}from"./capabilities-CK9Wa-Au.js";import{t as z}from"./useThreadActions-B9kmG6FU.js";import{t as re}from"./usePresentationTier-B_SCFvN7.js";import{a as ie,i as B,o as ae,s as oe,t as se}from"./select-rPdFVPfm.js";import{r as V,t as ce}from"./editorPreferences-C79SevBP.js";import{t as H}from"./RycoLetterMark-E82lj57c.js";import{t as le}from"./useLongPress-OGlhYKlH.js";import{t as U}from"./useTheme-DiC-5xCb.js";import{a as W,i as G,o as K,r as q,t as ue}from"./empty-BNn5X77p.js";import{i as de,n as fe,r as J,t as Y}from"./settingsLayout-B8os-EWr.js";import{n as pe,t as me}from"./SettingsPanels.editor-DTAK4nlM.js";import{n as he,r as ge,t as _e}from"./collapsible-BIEfHdzc.js";import{t as ve}from"./draft-input-CUkU2EAu.js";var ye=x(`archive-x`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`m9.5 17 5-5`,key:`nakeu6`}],[`path`,{d:`m9.5 12 5 5`,key:`1hccrj`}]]),be=x(`blocks`,[[`path`,{d:`M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2`,key:`1ah6g2`}],[`rect`,{x:`14`,y:`2`,width:`8`,height:`8`,rx:`1`,key:`88lufb`}]]),xe=x(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),X=x(`plug-zap`,[[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m18 3-4 4h6l-4 4`,key:`16psg9`}]]),Z=n(),Se=e(t(),1),Q=v(),Ce={locale:`System default`,"12-hour":`12-hour`,"24-hour":`24-hour`},we={0:`Off`,1e4:`10 seconds`,3e4:`30 seconds`,6e4:`1 minute`,3e5:`5 minutes`},Te=[0,1e4,3e4,6e4,3e5],Ee={automatic:`Automatic`,reduced:`Reduced`,manual:`Manual`},De=[`automatic`,`reduced`,`manual`];function Oe(e){if(e===null)return null;let t=Number.parseInt(e,10);return Te.includes(t)?t:null}function ke(e){return De.find(t=>t===e)??null}function Ae(e){let t=(0,Z.c)(2),{editor:n}=e,r=me[n];if(!r)return null;let i;return t[0]===r?i=t[1]:(i=(0,Q.jsx)(r,{"aria-hidden":`true`,className:`size-4 text-muted-foreground`}),t[0]=r,t[1]=i),i}function je(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,Q.jsx)(`span`,{children:`Version`}),(0,Q.jsx)(`code`,{className:`text-[11px] font-medium text-muted-foreground`,children:y})]}),e[0]=t):t=e[0],t}var Me=`https://github.com/sak0a/ryco`;function Ne(e){g().shell.openExternal(e).catch(e=>{j.add(L({type:`error`,title:`Could not open link`,description:e instanceof Error?e.message:`Failed to open external link.`}))})}function Pe(){let e=(0,Z.c)(3),t,n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsx)(H,{className:`h-14 text-foreground`}),n=(0,Q.jsx)(`h3`,{className:`text-base font-semibold tracking-tight text-foreground`,children:b}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let r;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,Q.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 pt-6 pb-5 text-center sm:px-5`,children:[t,n,(0,Q.jsx)(`div`,{className:`space-y-0.5 text-[11px] text-muted-foreground`,children:(0,Q.jsx)(`p`,{children:(0,Q.jsx)(`button`,{type:`button`,onClick:Fe,className:`underline-offset-2 hover:text-foreground hover:underline`,children:`github.com/sak0a/ryco`})})})]}),e[2]=r):r=e[2],r}function Fe(){return Ne(Me)}function Ie(){let e=(0,Z.c)(42),t=T(),[n,r]=(0,Se.useState)(!1),i=typeof window<`u`&&!!window.desktopBridge,a=t?.channel??`latest`,o;e[0]===a?o=e[1]:(o=e=>{let t=window.desktopBridge;!t||typeof t.setUpdateChannel!=`function`||e===a||(r(!0),t.setUpdateChannel(e).then(We).catch(Ue).finally(()=>{r(!1)}))},e[0]=a,e[1]=o);let s=o,c;e[2]===t?c=e[3]:(c=()=>{let e=window.desktopBridge;if(!e)return;let n=t?C(t):`none`;if(n===`download`){e.downloadUpdate().then(He).catch(Ve);return}if(n===`install`){if(!window.confirm(O(t??{availableVersion:null,downloadedVersion:null})))return;e.installUpdate().then(Be).catch(ze);return}typeof e.checkForUpdate==`function`&&e.checkForUpdate().then(Re).catch(Le)},e[2]=t,e[3]=c);let l=c,u;e[4]===t?u=e[5]:(u=t?C(t):`none`,e[4]=t,e[5]=u);let d=u,f;e[6]===t?f=e[7]:(f=t?E(t):null,e[6]=t,e[7]=f);let p=f,m;e[8]!==d||e[9]!==t?(m=d===`none`?!D(t):S(t),e[8]=d,e[9]=t,e[10]=m):m=e[10];let h=m,g;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(g={download:`Download`,install:`Install`},e[11]=g):g=e[11];let _=g,v;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(v={checking:`Checking…`,downloading:`Downloading…`,"up-to-date":`Up to Date`},e[12]=v):v=e[12];let y=v,b=_[d]??y[t?.status??``]??`Check for Updates`,x=d===`download`||d===`install`?`Update available.`:`Current version of the application.`,w;e[13]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,Q.jsx)(je,{}),e[13]=w):w=e[13];let k=d===`install`?`default`:`outline`,A;e[14]!==h||e[15]!==b||e[16]!==l||e[17]!==k?(A=(0,Q.jsx)(ee,{render:(0,Q.jsx)(ne,{size:`xs`,variant:k,disabled:h,onClick:l,children:b})}),e[14]=h,e[15]=b,e[16]=l,e[17]=k,e[18]=A):A=e[18];let j;e[19]===p?j=e[20]:(j=p?(0,Q.jsx)(te,{children:p}):null,e[19]=p,e[20]=j);let M;e[21]!==j||e[22]!==A?(M=(0,Q.jsxs)(P,{children:[A,j]}),e[21]=j,e[22]=A,e[23]=M):M=e[23];let N;e[24]!==x||e[25]!==M?(N=(0,Q.jsx)(J,{title:w,description:x,control:M}),e[24]=x,e[25]=M,e[26]=N):N=e[26];let F;e[27]===s?F=e[28]:(F=e=>{s(e)},e[27]=s,e[28]=F);let I=!i||n,L=a===`nightly`?`Nightly`:`Stable`,R;e[29]===L?R=e[30]:(R=(0,Q.jsx)(oe,{children:L}),e[29]=L,e[30]=R);let z;e[31]!==I||e[32]!==R?(z=(0,Q.jsx)(ae,{className:`w-full sm:w-40`,"aria-label":`Update track`,disabled:I,children:R}),e[31]=I,e[32]=R,e[33]=z):z=e[33];let re;e[34]===Symbol.for(`react.memo_cache_sentinel`)?(re=(0,Q.jsxs)(ie,{align:`end`,alignItemWithTrigger:!1,children:[(0,Q.jsx)(B,{hideIndicator:!0,value:`latest`,children:`Stable`}),(0,Q.jsx)(B,{hideIndicator:!0,value:`nightly`,children:`Nightly`})]}),e[34]=re):re=e[34];let V;e[35]!==a||e[36]!==F||e[37]!==z?(V=(0,Q.jsx)(J,{title:`Update track`,description:`Stable follows full releases. Nightly follows the nightly desktop channel and can switch back to stable immediately.`,control:(0,Q.jsxs)(se,{value:a,onValueChange:F,children:[z,re]})}),e[35]=a,e[36]=F,e[37]=z,e[38]=V):V=e[38];let ce;return e[39]!==N||e[40]!==V?(ce=(0,Q.jsxs)(Q.Fragment,{children:[N,V]}),e[39]=N,e[40]=V,e[41]=ce):ce=e[41],ce}function Le(e){j.add(L({type:`error`,title:`Could not check for updates`,description:e instanceof Error?e.message:`Update check failed.`}))}function Re(e){k(e.state),e.checked||j.add(L({type:`error`,title:`Could not check for updates`,description:e.state.message??`Automatic updates are not available in this build.`}))}function ze(e){j.add(L({type:`error`,title:`Could not install update`,description:e instanceof Error?e.message:`Install failed.`}))}function Be(e){k(e.state)}function Ve(e){j.add(L({type:`error`,title:`Could not download update`,description:e instanceof Error?e.message:`Download failed.`}))}function He(e){k(e.state)}function Ue(e){j.add(L({type:`error`,title:`Could not change update track`,description:e instanceof Error?e.message:`Update track change failed.`}))}function We(e){k(e)}function Ge(e){let t=(0,Z.c)(53),{theme:n,setTheme:r}=U(),i=m(),{updateSettings:o}=_(),s;t[0]===i.textGenerationModelSelection?s=t[1]:(s=c(i.textGenerationModelSelection??null,a.textGenerationModelSelection??null),t[0]=i.textGenerationModelSelection,t[1]=s);let l=!s,u;t[2]===n?u=t[3]:(u=n===`system`?[]:[`Theme`],t[2]=n,t[3]=u);let d;t[4]===i.timestampFormat?d=t[5]:(d=i.timestampFormat===a.timestampFormat?[]:[`Time format`],t[4]=i.timestampFormat,t[5]=d);let f;t[6]===i.diffWordWrap?f=t[7]:(f=i.diffWordWrap===a.diffWordWrap?[]:[`Diff line wrapping`],t[6]=i.diffWordWrap,t[7]=f);let p;t[8]===i.diffIgnoreWhitespace?p=t[9]:(p=i.diffIgnoreWhitespace===a.diffIgnoreWhitespace?[]:[`Diff whitespace changes`],t[8]=i.diffIgnoreWhitespace,t[9]=p);let v;t[10]===i.gitStatusPollIntervalMs?v=t[11]:(v=i.gitStatusPollIntervalMs===a.gitStatusPollIntervalMs?[]:[`Remote Git status`],t[10]=i.gitStatusPollIntervalMs,t[11]=v);let y;t[12]===i.sourceControlRefreshMode?y=t[13]:(y=i.sourceControlRefreshMode===a.sourceControlRefreshMode?[]:[`PR & workflow updates`],t[12]=i.sourceControlRefreshMode,t[13]=y);let b;t[14]===i.autoOpenPlanSidebar?b=t[15]:(b=i.autoOpenPlanSidebar===a.autoOpenPlanSidebar?[]:[`Auto-open overview`],t[14]=i.autoOpenPlanSidebar,t[15]=b);let x;t[16]===i.enableLegacyTokenStreaming?x=t[17]:(x=i.enableLegacyTokenStreaming===a.enableLegacyTokenStreaming?[]:[`Stream token by token`],t[16]=i.enableLegacyTokenStreaming,t[17]=x);let S;t[18]===i.enableProviderUpdateChecks?S=t[19]:(S=i.enableProviderUpdateChecks===a.enableProviderUpdateChecks?[]:[`Provider update checks`],t[18]=i.enableProviderUpdateChecks,t[19]=S);let C;t[20]===i.defaultThreadEnvMode?C=t[21]:(C=i.defaultThreadEnvMode===a.defaultThreadEnvMode?[]:[`New thread mode`],t[20]=i.defaultThreadEnvMode,t[21]=C);let w;t[22]===i.addProjectBaseDirectory?w=t[23]:(w=i.addProjectBaseDirectory===a.addProjectBaseDirectory?[]:[`Add project base directory`],t[22]=i.addProjectBaseDirectory,t[23]=w);let T;t[24]===i.confirmThreadArchive?T=t[25]:(T=i.confirmThreadArchive===a.confirmThreadArchive?[]:[`Archive confirmation`],t[24]=i.confirmThreadArchive,t[25]=T);let E;t[26]===i.confirmThreadDelete?E=t[27]:(E=i.confirmThreadDelete===a.confirmThreadDelete?[]:[`Delete confirmation`],t[26]=i.confirmThreadDelete,t[27]=E);let D;t[28]===l?D=t[29]:(D=l?[`Git writing model`]:[],t[28]=l,t[29]=D);let O;t[30]!==u||t[31]!==C||t[32]!==w||t[33]!==T||t[34]!==E||t[35]!==D||t[36]!==d||t[37]!==f||t[38]!==p||t[39]!==v||t[40]!==y||t[41]!==b||t[42]!==x||t[43]!==S?(O=[...u,...d,...f,...p,...v,...y,...b,...x,...S,...C,...w,...T,...E,...D],t[30]=u,t[31]=C,t[32]=w,t[33]=T,t[34]=E,t[35]=D,t[36]=d,t[37]=f,t[38]=p,t[39]=v,t[40]=y,t[41]=b,t[42]=x,t[43]=S,t[44]=O):O=t[44];let k=O,A;t[45]!==k||t[46]!==e||t[47]!==r||t[48]!==o?(A=async()=>{k.length!==0&&await(h()??g()).dialogs.confirm([`Restore default settings?`,`This will reset: ${k.join(`, `)}.`].join(`
|
|
2
|
-
`))&&(r(`system`),o({timestampFormat:a.timestampFormat,diffWordWrap:a.diffWordWrap,diffIgnoreWhitespace:a.diffIgnoreWhitespace,gitStatusPollIntervalMs:a.gitStatusPollIntervalMs,sourceControlRefreshMode:a.sourceControlRefreshMode,autoOpenPlanSidebar:a.autoOpenPlanSidebar,enableLegacyTokenStreaming:a.enableLegacyTokenStreaming,enableProviderUpdateChecks:a.enableProviderUpdateChecks,defaultThreadEnvMode:a.defaultThreadEnvMode,addProjectBaseDirectory:a.addProjectBaseDirectory,confirmThreadArchive:a.confirmThreadArchive,confirmThreadDelete:a.confirmThreadDelete,textGenerationModelSelection:a.textGenerationModelSelection}),e?.())},t[45]=k,t[46]=e,t[47]=r,t[48]=o,t[49]=A):A=t[49];let j=A,M;return t[50]!==k||t[51]!==j?(M={changedSettingLabels:k,restoreDefaults:j},t[50]=k,t[51]=j,t[52]=M):M=t[52],M}function Ke(e){let t=(0,Z.c)(18),{searchTargetId:n}=e,r=m(),{updateSettings:i}=_(),o=n===`legacy-token-streaming`,[s,c]=(0,Se.useState)(o),l=(0,Se.useRef)(null),u,d;t[0]===o?(u=t[1],d=t[2]):(u=()=>{if(!o)return;c(!0);let e=requestAnimationFrame(()=>{l.current?.scrollIntoView({block:`center`}),l.current?.querySelector(`[role=switch]`)?.focus()});return()=>cancelAnimationFrame(e)},d=[o],t[0]=o,t[1]=u,t[2]=d),(0,Se.useEffect)(u,d);let f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,Q.jsxs)(ge,{className:`group flex w-full items-center justify-between rounded-lg px-1 py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-ring/50`,children:[(0,Q.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[(0,Q.jsx)(`span`,{className:`inline-block h-px w-3 bg-border`,"aria-hidden":!0}),(0,Q.jsx)(`span`,{className:`text-[11px] font-semibold uppercase tracking-[0.08em] text-foreground/50 transition-colors group-hover:text-foreground/70`,children:`Legacy features`}),(0,Q.jsx)(`span`,{className:`hidden text-[11px] text-muted-foreground/55 sm:inline`,children:`Compatibility controls`})]}),(0,Q.jsx)(A,{"aria-hidden":!0,className:`size-3.5 text-muted-foreground/60 transition-transform duration-200 group-data-panel-open:rotate-90`})]}),t[3]=f):f=t[3];let p;t[4]!==r.enableLegacyTokenStreaming||t[5]!==i?(p=r.enableLegacyTokenStreaming===a.enableLegacyTokenStreaming?null:(0,Q.jsx)(Y,{label:`legacy token streaming`,onClick:()=>i({enableLegacyTokenStreaming:a.enableLegacyTokenStreaming})}),t[4]=r.enableLegacyTokenStreaming,t[5]=i,t[6]=p):p=t[6];let v;t[7]===i?v=t[8]:(v=e=>{if(!e){i({enableLegacyTokenStreaming:!1});return}(async()=>{await(h()??g()).dialogs.confirm([`Turn on token-by-token output?`,`It is significantly slower than buffered output and makes long responses harder to follow. This switch exists only for backwards compatibility.`].join(`
|
|
3
|
-
`))&&i({enableLegacyTokenStreaming:!0})})()},t[7]=i,t[8]=v);let y;t[9]!==r.enableLegacyTokenStreaming||t[10]!==v?(y=(0,Q.jsx)(F,{checked:r.enableLegacyTokenStreaming,onCheckedChange:v,"aria-label":`Stream token by token (legacy)`}),t[9]=r.enableLegacyTokenStreaming,t[10]=v,t[11]=y):y=t[11];let b;t[12]!==p||t[13]!==y?(b=(0,Q.jsx)(he,{children:(0,Q.jsx)(`div`,{className:`pt-2`,children:(0,Q.jsx)(`div`,{className:`relative overflow-hidden rounded-2xl border border-border/80 bg-card text-card-foreground shadow-sm/4 dark:shadow-none`,children:(0,Q.jsx)(`div`,{ref:l,id:`legacy-token-streaming`,children:(0,Q.jsx)(J,{title:`Stream token by token (legacy)`,description:`Paint assistant output token by token instead of in complete chunks. This legacy mode is significantly slower and makes long responses harder to follow.`,resetAction:p,control:y})})})})}),t[12]=p,t[13]=y,t[14]=b):b=t[14];let x;return t[15]!==s||t[16]!==b?(x=(0,Q.jsx)(`section`,{className:`space-y-2.5`,children:(0,Q.jsxs)(_e,{open:s,onOpenChange:c,children:[f,b]})}),t[15]=s,t[16]=b,t[17]=x):x=t[17],x}function qe(e){let t=(0,Z.c)(215),{searchTargetId:n}=e,r=n===void 0?null:n,o=m(),{updateSettings:c}=_(),u=re()===`phone`,f;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(f={logsDirectory:!1},t[0]=f):f=t[0];let[p,h]=(0,Se.useState)(f),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v={},t[1]=v):v=t[1];let[y,b]=(0,Se.useState)(v),x=l(),S=d(),C=S?.logsDirectoryPath??null,w;t[2]===S?w=t[3]:(w=[],S?.otlpTracesEnabled&&S.otlpTracesUrl&&w.push(`traces to ${S.otlpTracesUrl}`),S?.otlpMetricsEnabled&&S.otlpMetricsUrl&&w.push(`metrics to ${S.otlpMetricsUrl}`),t[2]=S,t[3]=w);let T=S?.localTracingEnabled?`Local trace file`:`Terminal logs only`,E=w.length>0?`${T}. OTLP exporting ${w.join(` and `)}.`:`${T}.`,D;t[4]===x?D=t[5]:(D=(e,t,n)=>{if(!t)return;b(t=>({...t,[e]:null})),h(t=>({...t,[e]:!0}));let r=V(x??[]);if(!r){b(t=>({...t,[e]:`No available editors found.`})),h(t=>({...t,[e]:!1}));return}g().shell.openInEditor(t,r).catch(t=>{b(r=>({...r,[e]:t instanceof Error?t.message:n}))}).finally(()=>{h(t=>({...t,[e]:!1}))})},t[4]=x,t[5]=D);let O=D,k;t[6]!==C||t[7]!==O?(k=()=>{O(`logsDirectory`,C,`Unable to open logs folder.`)},t[6]=C,t[7]=O,t[8]=k):k=t[8];let A=k,j=y.logsDirectory??null,M=p.logsDirectory,N;t[9]!==o.timestampFormat||t[10]!==c?(N=o.timestampFormat===a.timestampFormat?null:(0,Q.jsx)(Y,{label:`time format`,onClick:()=>c({timestampFormat:a.timestampFormat})}),t[9]=o.timestampFormat,t[10]=c,t[11]=N):N=t[11];let ee;t[12]===c?ee=t[13]:(ee=e=>{(e===`locale`||e===`12-hour`||e===`24-hour`)&&c({timestampFormat:e})},t[12]=c,t[13]=ee);let te=Ce[o.timestampFormat],P;t[14]===te?P=t[15]:(P=(0,Q.jsx)(ae,{className:`w-full sm:w-40`,"aria-label":`Timestamp format`,children:(0,Q.jsx)(oe,{children:te})}),t[14]=te,t[15]=P);let I;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,Q.jsxs)(ie,{align:`end`,alignItemWithTrigger:!1,children:[(0,Q.jsx)(B,{hideIndicator:!0,value:`locale`,children:Ce.locale}),(0,Q.jsx)(B,{hideIndicator:!0,value:`12-hour`,children:Ce[`12-hour`]}),(0,Q.jsx)(B,{hideIndicator:!0,value:`24-hour`,children:Ce[`24-hour`]})]}),t[16]=I):I=t[16];let L;t[17]!==o.timestampFormat||t[18]!==ee||t[19]!==P?(L=(0,Q.jsxs)(se,{value:o.timestampFormat,onValueChange:ee,children:[P,I]}),t[17]=o.timestampFormat,t[18]=ee,t[19]=P,t[20]=L):L=t[20];let R;t[21]!==L||t[22]!==N?(R=(0,Q.jsx)(J,{title:`Time format`,description:`System default follows your browser or OS clock preference.`,resetAction:N,control:L}),t[21]=L,t[22]=N,t[23]=R):R=t[23];let z=(x??[]).length>0?`Pin which editor opens directories and files. Auto uses your last selection from the Open menu.`:`No installed editors detected. Install a supported IDE to pick a default.`,H;t[24]!==o.preferredEditor||t[25]!==c?(H=o.preferredEditor===a.preferredEditor?null:(0,Q.jsx)(Y,{label:`default editor`,onClick:()=>c({preferredEditor:a.preferredEditor})}),t[24]=o.preferredEditor,t[25]=c,t[26]=H):H=t[26];let le=o.preferredEditor??`__auto__`,U;t[27]===c?U=t[28]:(U=e=>{if(e===`__auto__`){c({preferredEditor:null});return}let t=s.find(t=>t.id===e);t&&c({preferredEditor:t.id})},t[27]=c,t[28]=U);let W;t[29]===o.preferredEditor?W=t[30]:(W=o.preferredEditor?(0,Q.jsx)(Ae,{editor:o.preferredEditor}):null,t[29]=o.preferredEditor,t[30]=W);let G;t[31]===o.preferredEditor?G=t[32]:(G=o.preferredEditor?pe(o.preferredEditor,navigator.platform):`Auto (last used)`,t[31]=o.preferredEditor,t[32]=G);let K;t[33]===G?K=t[34]:(K=(0,Q.jsx)(oe,{children:G}),t[33]=G,t[34]=K);let q;t[35]!==W||t[36]!==K?(q=(0,Q.jsxs)(ae,{className:`w-full sm:w-56`,"aria-label":`Default editor`,children:[W,K]}),t[35]=W,t[36]=K,t[37]=q):q=t[37];let ue;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,Q.jsx)(B,{hideIndicator:!0,value:`__auto__`,children:(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,Q.jsx)(`span`,{"aria-hidden":`true`,className:`size-4`}),`Auto (last used)`]})}),t[38]=ue):ue=t[38];let me;t[39]===x?me=t[40]:(me=s.filter(e=>(x??[]).includes(e.id)&&ce(e.id)).map(Xe),t[39]=x,t[40]=me);let he;t[41]===me?he=t[42]:(he=(0,Q.jsxs)(ie,{align:`end`,alignItemWithTrigger:!1,children:[ue,me]}),t[41]=me,t[42]=he);let ge;t[43]!==le||t[44]!==U||t[45]!==q||t[46]!==he?(ge=(0,Q.jsxs)(se,{value:le,onValueChange:U,children:[q,he]}),t[43]=le,t[44]=U,t[45]=q,t[46]=he,t[47]=ge):ge=t[47];let _e;t[48]!==z||t[49]!==H||t[50]!==ge?(_e=(0,Q.jsx)(J,{title:`Default editor`,description:z,resetAction:H,control:ge}),t[48]=z,t[49]=H,t[50]=ge,t[51]=_e):_e=t[51];let ye;t[52]!==o.diffWordWrap||t[53]!==c?(ye=o.diffWordWrap===a.diffWordWrap?null:(0,Q.jsx)(Y,{label:`diff line wrapping`,onClick:()=>c({diffWordWrap:a.diffWordWrap})}),t[52]=o.diffWordWrap,t[53]=c,t[54]=ye):ye=t[54];let be;t[55]===c?be=t[56]:(be=e=>c({diffWordWrap:!!e}),t[55]=c,t[56]=be);let xe;t[57]!==o.diffWordWrap||t[58]!==be?(xe=(0,Q.jsx)(F,{checked:o.diffWordWrap,onCheckedChange:be,"aria-label":`Wrap diff lines by default`}),t[57]=o.diffWordWrap,t[58]=be,t[59]=xe):xe=t[59];let X;t[60]!==ye||t[61]!==xe?(X=(0,Q.jsx)(J,{title:`Diff line wrapping`,description:`Set the default wrap state when the diff panel opens.`,resetAction:ye,control:xe}),t[60]=ye,t[61]=xe,t[62]=X):X=t[62];let Me;t[63]!==o.diffIgnoreWhitespace||t[64]!==c?(Me=o.diffIgnoreWhitespace===a.diffIgnoreWhitespace?null:(0,Q.jsx)(Y,{label:`diff whitespace changes`,onClick:()=>c({diffIgnoreWhitespace:a.diffIgnoreWhitespace})}),t[63]=o.diffIgnoreWhitespace,t[64]=c,t[65]=Me):Me=t[65];let Ne;t[66]===c?Ne=t[67]:(Ne=e=>c({diffIgnoreWhitespace:!!e}),t[66]=c,t[67]=Ne);let Fe;t[68]!==o.diffIgnoreWhitespace||t[69]!==Ne?(Fe=(0,Q.jsx)(F,{checked:o.diffIgnoreWhitespace,onCheckedChange:Ne,"aria-label":`Hide whitespace changes by default`}),t[68]=o.diffIgnoreWhitespace,t[69]=Ne,t[70]=Fe):Fe=t[70];let Le;t[71]!==Me||t[72]!==Fe?(Le=(0,Q.jsx)(J,{title:`Hide whitespace changes`,description:`Set whether the diff panel ignores whitespace-only edits by default.`,resetAction:Me,control:Fe}),t[71]=Me,t[72]=Fe,t[73]=Le):Le=t[73];let Re;t[74]!==o.gitStatusPollIntervalMs||t[75]!==c?(Re=o.gitStatusPollIntervalMs===a.gitStatusPollIntervalMs?null:(0,Q.jsx)(Y,{label:`git status polling`,onClick:()=>c({gitStatusPollIntervalMs:a.gitStatusPollIntervalMs})}),t[74]=o.gitStatusPollIntervalMs,t[75]=c,t[76]=Re):Re=t[76];let ze=String(o.gitStatusPollIntervalMs),Be;t[77]===c?Be=t[78]:(Be=e=>{let t=Oe(e);t!==null&&c({gitStatusPollIntervalMs:t})},t[77]=c,t[78]=Be);let Ve=we[o.gitStatusPollIntervalMs],He;t[79]===Ve?He=t[80]:(He=(0,Q.jsx)(ae,{className:`w-full sm:w-40`,"aria-label":`Git status polling interval`,children:(0,Q.jsx)(oe,{children:Ve})}),t[79]=Ve,t[80]=He);let Ue;t[81]===Symbol.for(`react.memo_cache_sentinel`)?(Ue=(0,Q.jsx)(ie,{align:`end`,alignItemWithTrigger:!1,children:Te.map(Ye)}),t[81]=Ue):Ue=t[81];let We;t[82]!==ze||t[83]!==Be||t[84]!==He?(We=(0,Q.jsxs)(se,{value:ze,onValueChange:Be,children:[He,Ue]}),t[82]=ze,t[83]=Be,t[84]=He,t[85]=We):We=t[85];let Ge;t[86]!==Re||t[87]!==We?(Ge=(0,Q.jsx)(J,{title:`Remote Git status`,description:`Refresh remote branch and pull request metadata while a repository is open.`,resetAction:Re,control:We}),t[86]=Re,t[87]=We,t[88]=Ge):Ge=t[88];let qe;t[89]!==o.sourceControlRefreshMode||t[90]!==c?(qe=o.sourceControlRefreshMode===a.sourceControlRefreshMode?null:(0,Q.jsx)(Y,{label:`PR and workflow updates`,onClick:()=>c({sourceControlRefreshMode:a.sourceControlRefreshMode})}),t[89]=o.sourceControlRefreshMode,t[90]=c,t[91]=qe):qe=t[91];let Ze;t[92]===c?Ze=t[93]:(Ze=e=>{let t=ke(e);t!==null&&c({sourceControlRefreshMode:t})},t[92]=c,t[93]=Ze);let Qe=Ee[o.sourceControlRefreshMode],$e;t[94]===Qe?$e=t[95]:($e=(0,Q.jsx)(ae,{className:`w-full sm:w-40`,"aria-label":`PR and workflow update mode`,children:(0,Q.jsx)(oe,{children:Qe})}),t[94]=Qe,t[95]=$e);let et;t[96]===Symbol.for(`react.memo_cache_sentinel`)?(et=(0,Q.jsx)(ie,{align:`end`,alignItemWithTrigger:!1,children:De.map(Je)}),t[96]=et):et=t[96];let $;t[97]!==o.sourceControlRefreshMode||t[98]!==Ze||t[99]!==$e?($=(0,Q.jsxs)(se,{value:o.sourceControlRefreshMode,onValueChange:Ze,children:[$e,et]}),t[97]=o.sourceControlRefreshMode,t[98]=Ze,t[99]=$e,t[100]=$):$=t[100];let tt;t[101]!==qe||t[102]!==$?(tt=(0,Q.jsx)(J,{title:`PR & workflow updates`,description:`Control automatic pull request and workflow refreshes. Automatic is fast after pushes and stops when checks settle.`,resetAction:qe,control:$}),t[101]=qe,t[102]=$,t[103]=tt):tt=t[103];let nt;t[104]!==o.enableProviderUpdateChecks||t[105]!==c?(nt=o.enableProviderUpdateChecks===a.enableProviderUpdateChecks?null:(0,Q.jsx)(Y,{label:`provider update checks`,onClick:()=>c({enableProviderUpdateChecks:a.enableProviderUpdateChecks})}),t[104]=o.enableProviderUpdateChecks,t[105]=c,t[106]=nt):nt=t[106];let rt;t[107]===c?rt=t[108]:(rt=e=>c({enableProviderUpdateChecks:!!e}),t[107]=c,t[108]=rt);let it;t[109]!==o.enableProviderUpdateChecks||t[110]!==rt?(it=(0,Q.jsx)(F,{checked:o.enableProviderUpdateChecks,onCheckedChange:rt,"aria-label":`Check providers for updates`}),t[109]=o.enableProviderUpdateChecks,t[110]=rt,t[111]=it):it=t[111];let at;t[112]!==nt||t[113]!==it?(at=(0,Q.jsx)(J,{title:`Provider update checks`,description:`Check installed provider CLIs for newer versions. Disable if you install providers with Nix or another package manager.`,resetAction:nt,control:it}),t[112]=nt,t[113]=it,t[114]=at):at=t[114];let ot;t[115]!==o.autoOpenPlanSidebar||t[116]!==c?(ot=o.autoOpenPlanSidebar===a.autoOpenPlanSidebar?null:(0,Q.jsx)(Y,{label:`auto-open overview`,onClick:()=>c({autoOpenPlanSidebar:a.autoOpenPlanSidebar})}),t[115]=o.autoOpenPlanSidebar,t[116]=c,t[117]=ot):ot=t[117];let st;t[118]===c?st=t[119]:(st=e=>c({autoOpenPlanSidebar:!!e}),t[118]=c,t[119]=st);let ct;t[120]!==o.autoOpenPlanSidebar||t[121]!==st?(ct=(0,Q.jsx)(F,{checked:o.autoOpenPlanSidebar,onCheckedChange:st,"aria-label":`Open the overview automatically`}),t[120]=o.autoOpenPlanSidebar,t[121]=st,t[122]=ct):ct=t[122];let lt;t[123]!==ot||t[124]!==ct?(lt=(0,Q.jsx)(J,{title:`Auto-open overview`,description:`Open the overview automatically when plans, progress, or implementation steps appear.`,resetAction:ot,control:ct}),t[123]=ot,t[124]=ct,t[125]=lt):lt=t[125];let ut;t[126]!==o.defaultThreadEnvMode||t[127]!==c?(ut=o.defaultThreadEnvMode===a.defaultThreadEnvMode?null:(0,Q.jsx)(Y,{label:`new threads`,onClick:()=>c({defaultThreadEnvMode:a.defaultThreadEnvMode})}),t[126]=o.defaultThreadEnvMode,t[127]=c,t[128]=ut):ut=t[128];let dt;t[129]===c?dt=t[130]:(dt=e=>{(e===`local`||e===`worktree`)&&c({defaultThreadEnvMode:e})},t[129]=c,t[130]=dt);let ft=o.defaultThreadEnvMode===`worktree`?`New worktree`:`Local`,pt;t[131]===ft?pt=t[132]:(pt=(0,Q.jsx)(ae,{className:`w-full sm:w-44`,"aria-label":`Default thread mode`,children:(0,Q.jsx)(oe,{children:ft})}),t[131]=ft,t[132]=pt);let mt;t[133]===Symbol.for(`react.memo_cache_sentinel`)?(mt=(0,Q.jsxs)(ie,{align:`end`,alignItemWithTrigger:!1,children:[(0,Q.jsx)(B,{hideIndicator:!0,value:`local`,children:`Local`}),(0,Q.jsx)(B,{hideIndicator:!0,value:`worktree`,children:`New worktree`})]}),t[133]=mt):mt=t[133];let ht;t[134]!==o.defaultThreadEnvMode||t[135]!==dt||t[136]!==pt?(ht=(0,Q.jsxs)(se,{value:o.defaultThreadEnvMode,onValueChange:dt,children:[pt,mt]}),t[134]=o.defaultThreadEnvMode,t[135]=dt,t[136]=pt,t[137]=ht):ht=t[137];let gt;t[138]!==ut||t[139]!==ht?(gt=(0,Q.jsx)(J,{title:`New threads`,description:`Pick the default workspace mode for newly created draft threads.`,resetAction:ut,control:ht}),t[138]=ut,t[139]=ht,t[140]=gt):gt=t[140];let _t;t[141]!==o.addProjectBaseDirectory||t[142]!==c?(_t=o.addProjectBaseDirectory===a.addProjectBaseDirectory?null:(0,Q.jsx)(Y,{label:`add project base directory`,onClick:()=>c({addProjectBaseDirectory:a.addProjectBaseDirectory})}),t[141]=o.addProjectBaseDirectory,t[142]=c,t[143]=_t):_t=t[143];let vt;t[144]===c?vt=t[145]:(vt=e=>c({addProjectBaseDirectory:e}),t[144]=c,t[145]=vt);let yt;t[146]!==o.addProjectBaseDirectory||t[147]!==vt?(yt=(0,Q.jsx)(ve,{className:`w-full sm:w-72`,value:o.addProjectBaseDirectory,onCommit:vt,placeholder:`~/`,spellCheck:!1,"aria-label":`Add project base directory`}),t[146]=o.addProjectBaseDirectory,t[147]=vt,t[148]=yt):yt=t[148];let bt;t[149]!==_t||t[150]!==yt?(bt=(0,Q.jsx)(J,{title:`Add project starts in`,description:`Leave empty to use "~/" when the Add Project browser opens.`,resetAction:_t,control:yt}),t[149]=_t,t[150]=yt,t[151]=bt):bt=t[151];let xt;t[152]!==o.confirmThreadArchive||t[153]!==c?(xt=o.confirmThreadArchive===a.confirmThreadArchive?null:(0,Q.jsx)(Y,{label:`archive confirmation`,onClick:()=>c({confirmThreadArchive:a.confirmThreadArchive})}),t[152]=o.confirmThreadArchive,t[153]=c,t[154]=xt):xt=t[154];let St;t[155]===c?St=t[156]:(St=e=>c({confirmThreadArchive:!!e}),t[155]=c,t[156]=St);let Ct;t[157]!==o.confirmThreadArchive||t[158]!==St?(Ct=(0,Q.jsx)(F,{checked:o.confirmThreadArchive,onCheckedChange:St,"aria-label":`Confirm thread archiving`}),t[157]=o.confirmThreadArchive,t[158]=St,t[159]=Ct):Ct=t[159];let wt;t[160]!==xt||t[161]!==Ct?(wt=(0,Q.jsx)(J,{title:`Archive confirmation`,description:`Require a second click on the inline archive action before a thread is archived.`,resetAction:xt,control:Ct}),t[160]=xt,t[161]=Ct,t[162]=wt):wt=t[162];let Tt;t[163]!==o.confirmThreadDelete||t[164]!==c?(Tt=o.confirmThreadDelete===a.confirmThreadDelete?null:(0,Q.jsx)(Y,{label:`delete confirmation`,onClick:()=>c({confirmThreadDelete:a.confirmThreadDelete})}),t[163]=o.confirmThreadDelete,t[164]=c,t[165]=Tt):Tt=t[165];let Et;t[166]===c?Et=t[167]:(Et=e=>c({confirmThreadDelete:!!e}),t[166]=c,t[167]=Et);let Dt;t[168]!==o.confirmThreadDelete||t[169]!==Et?(Dt=(0,Q.jsx)(F,{checked:o.confirmThreadDelete,onCheckedChange:Et,"aria-label":`Confirm thread deletion`}),t[168]=o.confirmThreadDelete,t[169]=Et,t[170]=Dt):Dt=t[170];let Ot;t[171]!==Tt||t[172]!==Dt?(Ot=(0,Q.jsx)(J,{title:`Delete confirmation`,description:`Ask before deleting a thread and its chat history.`,resetAction:Tt,control:Dt}),t[171]=Tt,t[172]=Dt,t[173]=Ot):Ot=t[173];let kt;t[174]!==o.notifyOnTurnCompleteWhenUnfocused||t[175]!==c?(kt=i?(0,Q.jsx)(J,{title:`Turn-complete notifications`,description:`Show a desktop notification when an agent finishes a turn while the Ryco window is unfocused.`,resetAction:o.notifyOnTurnCompleteWhenUnfocused===a.notifyOnTurnCompleteWhenUnfocused?null:(0,Q.jsx)(Y,{label:`turn-complete notifications`,onClick:()=>c({notifyOnTurnCompleteWhenUnfocused:a.notifyOnTurnCompleteWhenUnfocused})}),control:(0,Q.jsx)(F,{checked:o.notifyOnTurnCompleteWhenUnfocused,onCheckedChange:e=>c({notifyOnTurnCompleteWhenUnfocused:!!e}),"aria-label":`Notify when a turn completes while unfocused`})}):null,t[174]=o.notifyOnTurnCompleteWhenUnfocused,t[175]=c,t[176]=kt):kt=t[176];let At;t[177]!==R||t[178]!==_e||t[179]!==X||t[180]!==Le||t[181]!==Ge||t[182]!==tt||t[183]!==at||t[184]!==lt||t[185]!==gt||t[186]!==bt||t[187]!==wt||t[188]!==Ot||t[189]!==kt?(At=(0,Q.jsxs)(de,{title:`General`,children:[R,_e,X,Le,Ge,tt,at,lt,gt,bt,wt,Ot,kt]}),t[177]=R,t[178]=_e,t[179]=X,t[180]=Le,t[181]=Ge,t[182]=tt,t[183]=at,t[184]=lt,t[185]=gt,t[186]=bt,t[187]=wt,t[188]=Ot,t[189]=kt,t[190]=At):At=t[190];let jt;t[191]!==u||t[192]!==r?(jt=u?null:(0,Q.jsx)(Ke,{searchTargetId:r}),t[191]=u,t[192]=r,t[193]=jt):jt=t[193];let Mt,Nt;t[194]===Symbol.for(`react.memo_cache_sentinel`)?(Mt=(0,Q.jsx)(Pe,{}),Nt=i?(0,Q.jsx)(Ie,{}):(0,Q.jsx)(J,{title:(0,Q.jsx)(je,{}),description:`Current version of the application.`}),t[194]=Mt,t[195]=Nt):(Mt=t[194],Nt=t[195]);let Pt=C??`Resolving logs directory...`,Ft;t[196]===Pt?Ft=t[197]:(Ft=(0,Q.jsx)(`span`,{className:`block break-all font-mono text-[11px] text-foreground`,children:Pt}),t[196]=Pt,t[197]=Ft);let It;t[198]===j?It=t[199]:(It=j?(0,Q.jsx)(`span`,{className:`mt-1 block text-destructive`,children:j}):null,t[198]=j,t[199]=It);let Lt;t[200]!==Ft||t[201]!==It?(Lt=(0,Q.jsxs)(Q.Fragment,{children:[Ft,It]}),t[200]=Ft,t[201]=It,t[202]=Lt):Lt=t[202];let Rt=!C||M,zt=M?`Opening...`:`Open logs folder`,Bt;t[203]!==A||t[204]!==Rt||t[205]!==zt?(Bt=(0,Q.jsx)(ne,{size:`xs`,variant:`outline`,disabled:Rt,onClick:A,children:zt}),t[203]=A,t[204]=Rt,t[205]=zt,t[206]=Bt):Bt=t[206];let Vt;t[207]!==E||t[208]!==Lt||t[209]!==Bt?(Vt=(0,Q.jsxs)(de,{title:`About`,children:[Mt,Nt,(0,Q.jsx)(J,{title:`Diagnostics`,description:E,status:Lt,control:Bt})]}),t[207]=E,t[208]=Lt,t[209]=Bt,t[210]=Vt):Vt=t[210];let Ht;return t[211]!==At||t[212]!==jt||t[213]!==Vt?(Ht=(0,Q.jsxs)(fe,{children:[At,jt,Vt]}),t[211]=At,t[212]=jt,t[213]=Vt,t[214]=Ht):Ht=t[214],Ht}function Je(e){return(0,Q.jsx)(B,{hideIndicator:!0,value:e,children:Ee[e]},e)}function Ye(e){return(0,Q.jsx)(B,{hideIndicator:!0,value:String(e),children:we[e]},e)}function Xe(e){return(0,Q.jsx)(B,{hideIndicator:!0,value:e.id,children:(0,Q.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,Q.jsx)(Ae,{editor:e.id}),pe(e.id,navigator.platform)]})},e.id)}function Ze(){let e=(0,Z.c)(18),t=R(o.dispatchCommand),n=p(M(u)),r=p(M(f)),{unarchiveThread:i,confirmAndDeleteThread:a}=z(),s;if(e[0]!==n||e[1]!==r){let t;e[3]===r?t=e[4]:(t=e=>({project:e,threads:r.filter(t=>t.projectId===e.id&&t.archivedAt!==null).toSorted($e)}),e[3]=r,e[4]=t),s=n.map(t).filter(Qe),e[0]=n,e[1]=r,e[2]=s}else s=e[2];let c=s,l;e[5]!==a||e[6]!==t.allowed||e[7]!==t.reason||e[8]!==i?(l=async(e,n)=>{if(!t.allowed){j.add(L({type:`warning`,title:`Archived thread is read-only`,description:t.reason??`This action is unavailable.`}));return}let r=h();if(!r)return;let o=await r.contextMenu.show([{id:`unarchive`,label:`Unarchive`},{id:`delete`,label:`Delete`,destructive:!0}],n);if(o===`unarchive`){try{await i(e)}catch(e){let t=e;j.add(L({type:`error`,title:`Failed to unarchive thread`,description:t instanceof Error?t.message:`An error occurred.`}))}return}o===`delete`&&await a(e)},e[5]=a,e[6]=t.allowed,e[7]=t.reason,e[8]=i,e[9]=l):l=e[9];let d=l,m;e[10]!==c||e[11]!==d||e[12]!==t.allowed||e[13]!==t.reason||e[14]!==i?(m=c.length===0?(0,Q.jsx)(de,{title:`Archived threads`,children:(0,Q.jsxs)(ue,{className:`min-h-88`,children:[(0,Q.jsx)(W,{variant:`icon`,children:(0,Q.jsx)(w,{})}),(0,Q.jsxs)(G,{children:[(0,Q.jsx)(K,{children:`No archived threads`}),(0,Q.jsx)(q,{children:`Archived threads will appear here.`})]})]})}):c.map(e=>{let{project:n,threads:r}=e;return(0,Q.jsx)(de,{title:n.name,icon:(0,Q.jsx)(I,{environmentId:n.environmentId,cwd:n.cwd,projectId:n.id,customAvatarContentHash:n.customAvatarContentHash??null}),children:r.map(e=>(0,Q.jsx)(et,{thread:e,mutationAllowed:t.allowed,mutationReason:t.reason??null,onOpenMenu:d,onUnarchive:i},e.id))},n.id)}),e[10]=c,e[11]=d,e[12]=t.allowed,e[13]=t.reason,e[14]=i,e[15]=m):m=e[15];let g;return e[16]===m?g=e[17]:(g=(0,Q.jsx)(fe,{children:m}),e[16]=m,e[17]=g),g}function Qe(e){return e.threads.length>0}function $e(e,t){let n=e.archivedAt??e.createdAt;return(t.archivedAt??t.createdAt).localeCompare(n)||t.id.localeCompare(e.id)}function et(e){let t=(0,Z.c)(38),{thread:n,mutationAllowed:i,mutationReason:a,onOpenMenu:o,onUnarchive:s}=e,c=re()===`phone`,l;t[0]!==o||t[1]!==n.environmentId||t[2]!==n.id?(l=e=>{o(r(n.environmentId,n.id),e)},t[0]=o,t[1]=n.environmentId,t[2]=n.id,t[3]=l):l=t[3];let u=!c,d;t[4]===u?d=t[5]:(d={disabled:u},t[4]=u,t[5]=d);let f=le(l,d),p;t[6]!==f||t[7]!==o||t[8]!==n.environmentId||t[9]!==n.id?(p=e=>{f.onContextMenu(e),!e.defaultPrevented&&(e.preventDefault(),o(r(n.environmentId,n.id),{x:e.clientX,y:e.clientY}))},t[6]=f,t[7]=o,t[8]=n.environmentId,t[9]=n.id,t[10]=p):p=t[10];let m;t[11]===n.title?m=t[12]:(m=(0,Q.jsx)(`h3`,{className:`truncate text-sm font-medium text-foreground`,children:n.title}),t[11]=n.title,t[12]=m);let h=n.archivedAt??n.createdAt,g;t[13]===h?g=t[14]:(g=N(h),t[13]=h,t[14]=g);let _;t[15]===n.createdAt?_=t[16]:(_=N(n.createdAt),t[15]=n.createdAt,t[16]=_);let v;t[17]!==g||t[18]!==_?(v=(0,Q.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Archived `,g,` · Created `,_]}),t[17]=g,t[18]=_,t[19]=v):v=t[19];let y;t[20]!==m||t[21]!==v?(y=(0,Q.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[m,v]}),t[20]=m,t[21]=v,t[22]=y):y=t[22];let b=!i,x=a??void 0,S;t[23]!==s||t[24]!==n.environmentId||t[25]!==n.id?(S=()=>void s(r(n.environmentId,n.id)).catch($),t[23]=s,t[24]=n.environmentId,t[25]=n.id,t[26]=S):S=t[26];let C,w;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,Q.jsx)(ye,{className:`size-3.5`}),w=(0,Q.jsx)(`span`,{children:`Unarchive`}),t[27]=C,t[28]=w):(C=t[27],w=t[28]);let T;t[29]!==b||t[30]!==x||t[31]!==S?(T=(0,Q.jsxs)(ne,{type:`button`,variant:`outline`,size:`sm`,className:`h-7 shrink-0 cursor-pointer gap-1.5 px-2.5`,disabled:b,title:x,onClick:S,children:[C,w]}),t[29]=b,t[30]=x,t[31]=S,t[32]=T):T=t[32];let E;return t[33]!==f||t[34]!==T||t[35]!==p||t[36]!==y?(E=(0,Q.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-t border-border px-4 py-3 first:border-t-0 sm:px-5`,...f,onContextMenu:p,children:[y,T]}),t[33]=f,t[34]=T,t[35]=p,t[36]=y,t[37]=E):E=t[37],E}function $(e){j.add(L({type:`error`,title:`Failed to unarchive thread`,description:e instanceof Error?e.message:`An error occurred.`}))}export{xe as a,X as i,qe as n,be as o,Ge as r,Ze as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{ct as r}from"./src-b7-hpIff.js";import{f as i,n as a,r as o}from"./utils-c6dglOTK.js";import{t as s}from"./folder-closed-CsvKfC6X.js";import{t as c}from"./terminal-C_CyIsDD.js";import{C as l,S as u,b as d,g as f,n as p,s as m,w as h,x as g}from"./Icons-Cme5LL0k.js";var _=n(),v=`/assets/android-studio-BStk6y1m.png`,y=`/assets/nova-BR8CJp3D.png`,b=`/assets/positron-CVTig56O.png`,x=`/assets/sublime-text-CdbLNBJ7.png`,S=`/assets/windsurf-CaEwKX1l.png`,C=`/assets/xcode-B_XpXYHB.png`,w=i();function T(e,t){let n=n=>{let r=(0,_.c)(4),i,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`title`,{children:t}),a=(0,w.jsx)(`image`,{href:e,width:`24`,height:`24`,preserveAspectRatio:`xMidYMid meet`}),r[0]=i,r[1]=a):(i=r[0],a=r[1]);let o;return r[2]===n?o=r[3]:(o=(0,w.jsxs)(`svg`,{...n,viewBox:`0 0 24 24`,fill:`none`,children:[i,a]}),r[2]=n,r[3]=o),o};return n.displayName=`${t.replaceAll(` `,``)}Icon`,n}var E=T(v,`Android Studio`),D=T(C,`Xcode`),O=T(S,`Windsurf`),k=T(x,`Sublime Text`),A=T(y,`Nova`),j=T(b,`Positron`),M=e(t(),1),N=(e,t)=>{let n=(0,_.c)(7),r=(0,M.useId)(),i;if(n[0]!==t||n[1]!==r||n[2]!==e){let a;n[4]!==r||n[5]!==e?(a=(t,n)=>`${r}-${e}-${String.fromCharCode(97+n)}`,n[4]=r,n[5]=e,n[6]=a):a=n[6],i=Array.from({length:t},a),n[0]=t,n[1]=r,n[2]=e,n[3]=i}else i=n[3];return i},P={cursor:m,windsurf:O,trae:d,kiro:f,vscode:u,"vscode-insiders":l,vscodium:g,positron:j,zed:h,"sublime-text":k,nova:A,xcode:D,antigravity:p,"android-studio":E,idea:e=>{let t=(0,_.c)(23),[n,r]=N(`intellij-idea`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.1`,stopColor:`#FC801D`}),a=(0,w.jsx)(`stop`,{offset:`.59`,stopColor:`#FE2857`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`-.391`,x2:`24.392`,y1:`7.671`,y2:`61.126`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.21`,stopColor:`#FE2857`}),c=(0,w.jsx)(`stop`,{offset:`.7`,stopColor:`#007EFF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.336`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.191a4.125 4.125 0 0 0-4.124 4.19l.176 11.044a4.13 4.13 0 0 0 1.44 3.066l38.159 32.707c.747.64 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.19-.514-2.321-1.41-3.105L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M14.988 6H4.125A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.185A4.125 4.125 0 0 0 9.573 64h15.398a4.125 4.125 0 0 0 4.125-4.127L29.09 41.37c0-.426-.066-.849-.195-1.254l-9.98-31.245A4.13 4.13 0 0 0 14.988 6z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M59.876 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.943a4.1 4.1 0 0 0-.325 1.638l.15 18.329A4.125 4.125 0 0 0 10.101 64h17.666c.806 0 1.593-.236 2.266-.678l32.11-21.109A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.876 0`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17 29.383h2.98v-9.775H17v-2.616h8.843v2.616h-2.98v9.775h2.98V32H17zM27.643 29.298h2.154a2.4 2.4 0 0 0 1.163-.279q.51-.279.788-.788.279-.51.279-1.163V16.992h2.926v10.28q0 1.35-.622 2.427a4.45 4.45 0 0 1-1.715 1.688q-1.092.612-2.454.611h-2.519z`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},aqua:e=>{let t=(0,_.c)(23),[n,r]=N(`aqua`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.25`,stopColor:`#7256FF`}),a=(0,w.jsx)(`stop`,{offset:`.73`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.3`,stopColor:`#00D886`}),c=(0,w.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`7.671`,x2:`61.125`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,w.jsx)(`path`,{fill:d,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,w.jsx)(`path`,{fill:p,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[13]=p,t[14]=m);let h,g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,w.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124L21 64c1.181-.019 2.531-.786 3.3-1.683l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.746 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.003-3.961c0-2.187.334-2.778 1.003-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.917-1.014c1.443 0 2.739.338 3.907 1.013a7.3 7.3 0 0 1 2.75 2.787q.996 1.774.996 3.961c0 2.187-.332 2.778-.997 3.96a7.3 7.3 0 0 1-2.749 2.788q-1.752 1.013-3.907 1.013c-1.436 0-2.75-.338-3.917-1.013m6.308-2.23q1.06-.67 1.661-1.854.6-1.185.6-2.664t-.6-2.664a4.6 4.6 0 0 0-1.661-1.854q-1.061-.67-2.39-.67t-2.396.67a4.6 4.6 0 0 0-1.672 1.854q-.605 1.185-.605 2.664t.605 2.664 1.672 1.854q1.067.67 2.396.67 1.33 0 2.39-.67m-2.16 6.034a2.67 2.67 0 0 1-1.126-1.077q-.391-.696-.391-1.64l-.01-1.94h2.743v1.811q0 .332.129.573.128.242.37.365.24.123.574.123h1.833v2.165h-2.412q-.975 0-1.71-.38M38.233 16.992h3.173l5.563 15.006h-2.947l-1.212-3.483h-5.842l-1.136 3.483H32.82zm3.805 9.261-2.025-5.723-.225-.954-.215.954-1.908 5.723z`}),t[15]=h,t[16]=g,t[17]=v):(h=t[15],g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,v]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=y):y=t[22],y},clion:e=>{let t=(0,_.c)(23),[n,r]=N(`clion`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.29`,stopColor:`#009AE5`}),a=(0,w.jsx)(`stop`,{offset:`.7`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,w.jsx)(`stop`,{offset:`.54`,stopColor:`#009AE5`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.393`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,w.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,w.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,w.jsx)(`path`,{fill:`#FF2D90`,d:`M58 16.453V4.194A4.125 4.125 0 0 0 53.81.07L43.003.008c-1.18.019-2.535.781-3.304 1.678L6.993 39.844c-.64.748-.993 1.7-.993 2.684v11.35a4.125 4.125 0 0 0 4.125 4.125h11.003c1.19 0 2.321-.514 3.105-1.409L56.979 19.17A4.12 4.12 0 0 0 58 16.453`}),g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM20.747 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96a7.3 7.3 0 0 1 2.744-2.787q1.747-1.013 3.901-1.014 1.823 0 3.345.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.355 2.793h-3.065a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.431-.95 4.9 4.9 0 0 0-1.822-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664a4.9 4.9 0 0 0 1.822-.332 4.02 4.02 0 0 0 2.326-2.38h3.065a6.44 6.44 0 0 1-1.355 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.345.675-2.154 0-3.901-1.013zM37.33 16.992v12.37h7.117v2.636H34.414V16.992z`}),t[15]=h,t[16]=g,t[17]=v):(h=t[15],g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,v]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=y):y=t[22],y},datagrip:e=>{let t=(0,_.c)(23),[n,r]=N(`datagrip`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.28`,stopColor:`#7256FF`}),a=(0,w.jsx)(`stop`,{offset:`.66`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.3`,stopColor:`#FF43F2`}),c=(0,w.jsx)(`stop`,{offset:`.54`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,w.jsx)(`path`,{fill:d,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.125 4.125 0 0 0 53.9 0H36.234c-.806 0-1.593.236-2.267.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,w.jsx)(`path`,{fill:p,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[13]=p,t[14]=m);let h,g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,w.jsx)(`path`,{fill:`#FF43F2`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19L64 43c-.018-1.181-.785-2.531-1.682-3.3L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M35.426 31.243a7.3 7.3 0 0 1-2.744-2.787q-.997-1.774-.997-3.961c0-2.187.333-2.778.997-3.96s1.58-2.112 2.744-2.787q1.747-1.013 3.902-1.014 1.746 0 3.221.622a6.9 6.9 0 0 1 2.487 1.747 6.36 6.36 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.927-1.228q-.585-.52-1.367-.803c-.782-.283-1.082-.284-1.683-.284q-1.329 0-2.401.664a4.6 4.6 0 0 0-1.678 1.828q-.605 1.163-.605 2.62c0 1.457.202 1.846.605 2.621a4.6 4.6 0 0 0 1.678 1.828q1.072.664 2.401.664 1.233 0 2.235-.461t1.592-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.356v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.625 2.525q-1.668.921-3.736.921c-1.38 0-2.737-.337-3.902-1.013z`}),t[15]=h,t[16]=g,t[17]=v):(h=t[15],g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,v]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=y):y=t[22],y},dataspell:e=>{let t=(0,_.c)(23),[n,r]=N(`dataspell`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.28`,stopColor:`#007DFE`}),a=(0,w.jsx)(`stop`,{offset:`.73`,stopColor:`#00D980`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`4.067`,x2:`62.664`,y1:`4.327`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.32`,stopColor:`#F0EB18`}),c=(0,w.jsx)(`stop`,{offset:`.55`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`56.329`,x2:`2.875`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,w.jsx)(`path`,{fill:d,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,w.jsx)(`path`,{fill:p,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[13]=p,t[14]=m);let h,g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,w.jsx)(`path`,{fill:`#F0EB18`,d:`M58 16.45V4.191A4.125 4.125 0 0 0 53.81.067L43 0c-1.181.019-2.531.786-3.3 1.683L6.993 39.84c-.64.748-.993 1.7-.993 2.685v11.349A4.125 4.125 0 0 0 10.125 58h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.45`}),g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h5.713q2.133 0 3.821.965a6.9 6.9 0 0 1 2.642 2.674q.954 1.71.954 3.864t-.954 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.821.964h-5.713zm8.028 11.876q1.008-.6 1.554-1.72.547-1.12.547-2.653 0-1.534-.547-2.653-.546-1.12-1.554-1.721-1.008-.6-2.348-.6h-2.755v9.947h2.755q1.34 0 2.348-.6M34.713 31.664q-1.26-.59-1.973-1.65t-.734-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.334-.251q.574-.252.89-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.511 0 1.933.186 2.733.558s1.424.888 1.871 1.549q.67.99.68 2.277h-2.926q0-.546-.289-.98c-.289-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.29.96 0 .621.403 1.028.402.407 1.098.579l2.552.557q1.103.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.481.917.482 1.999 0 1.329-.702 2.385-.702 1.054-1.967 1.656-1.265.6-2.894.6t-2.889-.59`}),t[15]=h,t[16]=g,t[17]=v):(h=t[15],g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,v]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=y):y=t[22],y},goland:e=>{let t=(0,_.c)(23),[n,r]=N(`goland`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.24`,stopColor:`#00D886`}),a=(0,w.jsx)(`stop`,{offset:`.51`,stopColor:`#007DFE`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.27`,stopColor:`#007DFE`}),c=(0,w.jsx)(`stop`,{offset:`.7`,stopColor:`#D249FC`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#00D886`,d:`M47.55 58h12.259a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.13 4.13 0 0 0-1.44-3.066L24.159 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.124 4.124 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M19.748 31.243a7.3 7.3 0 0 1-2.743-2.787q-.997-1.774-.997-3.961c0-2.187.332-2.778.997-3.96s1.58-2.112 2.743-2.787q1.747-1.013 3.902-1.014 1.747 0 3.222.622a6.9 6.9 0 0 1 2.486 1.747 6.4 6.4 0 0 1 1.42 2.594h-3.13a3.9 3.9 0 0 0-.926-1.228q-.584-.52-1.367-.803c-.783-.283-1.083-.284-1.683-.284q-1.33 0-2.402.664a4.6 4.6 0 0 0-1.677 1.828q-.606 1.163-.606 2.62c0 1.457.202 1.846.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664 1.232 0 2.235-.461t1.591-1.276a3.3 3.3 0 0 0 .633-1.833l.01.31h-3.526v-2.304h6.357v1.18q0 1.982-.96 3.585a6.9 6.9 0 0 1-2.626 2.525q-1.666.921-3.736.921c-2.07 0-2.737-.337-3.902-1.013zM36.271 31.243a7.3 7.3 0 0 1-2.755-2.787q-1.002-1.774-1.002-3.961c0-2.187.333-2.778 1.002-3.96a7.3 7.3 0 0 1 2.755-2.787q1.752-1.013 3.918-1.014c1.443 0 2.738.338 3.907 1.013a7.3 7.3 0 0 1 2.749 2.787q.996 1.774.997 3.961c0 2.187-.333 2.778-.997 3.96s-1.581 2.113-2.75 2.788q-1.752 1.013-3.906 1.013c-1.437 0-2.75-.338-3.918-1.013m6.308-2.23q1.062-.67 1.662-1.854t.6-2.664-.6-2.664-1.662-1.854-2.39-.67-2.395.67a4.6 4.6 0 0 0-1.672 1.854q-.606 1.185-.606 2.664t.606 2.664 1.672 1.854 2.395.67q1.33 0 2.39-.67M33 44H17v3h16z`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},phpstorm:e=>{let t=(0,_.c)(23),[n,r]=N(`phpstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.16`,stopColor:`#D249FC`}),a=(0,w.jsx)(`stop`,{offset:`.55`,stopColor:`#FF2D90`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`56.329`,x2:`2.874`,y1:`-.391`,y2:`24.392`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.3`,stopColor:`#FF2D90`}),c=(0,w.jsx)(`stop`,{offset:`.7`,stopColor:`#7256FF`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`4.067`,x2:`62.664`,y1:`4.326`,y2:`62.923`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#D249FC`,d:`M58 16.446V4.187A4.125 4.125 0 0 0 53.81.063L42.765.239A4.13 4.13 0 0 0 39.7 1.68L6.993 39.837c-.64.748-.993 1.7-.993 2.685v11.35a4.125 4.125 0 0 0 4.125 4.124h11.003c1.19 0 2.321-.514 3.105-1.409l32.746-37.425A4.12 4.12 0 0 0 58 16.446`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M58 14.988V4.125A4.125 4.125 0 0 0 53.875 0H41.309q-.3 0-.598.044L3.527 5.492A4.125 4.125 0 0 0 0 9.573v15.398a4.125 4.125 0 0 0 4.126 4.125l18.505-.005c.425 0 .848-.066 1.253-.195l31.246-9.98A4.13 4.13 0 0 0 58 14.988`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M64 59.878V25.75a4.13 4.13 0 0 0-2.52-3.8L24.057 6.153a4.1 4.1 0 0 0-1.638-.325l-18.329.15A4.124 4.124 0 0 0 0 10.103v17.665c0 .806.236 1.593.678 2.267l21.109 32.109a4.12 4.12 0 0 0 3.447 1.859h34.641A4.125 4.125 0 0 0 64 59.878`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.323v4.47h3.323q.74 0 1.291-.273M32.572 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.611.278 1.404.278c.53 0 .952-.083 1.335-.251q.572-.252.89-.702c.317-.45.315-.643.315-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.647-.59q-1.073-.234-1.866-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.665-1.023 1.854-1.597 1.19-.573 2.702-.573c1.512 0 1.933.186 2.733.558q1.2.558 1.87 1.549t.681 2.277h-2.926q0-.546-.29-.98a1.9 1.9 0 0 0-.82-.676 2.9 2.9 0 0 0-1.216-.24q-.687 0-1.206.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.551.557q1.104.226 1.967.852a4.45 4.45 0 0 1 1.345 1.544q.482.917.482 1.999 0 1.329-.701 2.385-.703 1.054-1.967 1.656-1.264.6-2.895.6-1.63 0-2.888-.59`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},pycharm:e=>{let t=(0,_.c)(23),[n,r]=N(`pycharm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.1`,stopColor:`#00D886`}),a=(0,w.jsx)(`stop`,{offset:`.59`,stopColor:`#F0EB18`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.3`,stopColor:`#F0EB18`}),c=(0,w.jsx)(`stop`,{offset:`.7`,stopColor:`#00C4F4`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`59.933`,x2:`1.337`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.259a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.13 4.13 0 0 0 3.066-1.44l32.707-38.158c.64-.748.993-1.7.993-2.685V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.834A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.993 16.992h6.442q1.586 0 2.78.579 1.196.579 1.845 1.63.648 1.05.648 2.432c0 .922-.22 1.759-.659 2.466q-.66 1.062-1.87 1.646-1.212.584-2.83.584h-3.43V32h-2.927zm7.54 6.63q.553-.273.852-.782.3-.51.3-1.195c0-.685-.1-.842-.3-1.174q-.3-.5-.852-.772-.552-.273-1.291-.273h-3.324v4.47h3.324q.74 0 1.291-.273M33.713 31.243a7.3 7.3 0 0 1-2.744-2.787q-.996-1.774-.996-3.961c0-2.187.332-2.778.996-3.96a7.3 7.3 0 0 1 2.744-2.787q1.748-1.013 3.902-1.014 1.823 0 3.344.675a6.86 6.86 0 0 1 2.535 1.892 6.44 6.44 0 0 1 1.356 2.793h-3.066a4.05 4.05 0 0 0-.895-1.431 4 4 0 0 0-1.43-.95 4.9 4.9 0 0 0-1.823-.332q-1.33 0-2.402.665a4.6 4.6 0 0 0-1.677 1.827q-.606 1.164-.606 2.62 0 1.459.606 2.621a4.6 4.6 0 0 0 1.677 1.828q1.072.664 2.402.664.986 0 1.822-.332a4.02 4.02 0 0 0 2.326-2.38h3.066a6.44 6.44 0 0 1-1.356 2.792 6.86 6.86 0 0 1-2.535 1.892q-1.522.675-3.344.675-2.154 0-3.902-1.013z`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},rider:e=>{let t=(0,_.c)(23),[n,r]=N(`rider`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.21`,stopColor:`#007DFE`}),a=(0,w.jsx)(`stop`,{offset:`.55`,stopColor:`#FFB700`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`64.391`,x2:`39.607`,y1:`56.329`,y2:`2.874`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.23`,stopColor:`#FFB700`}),c=(0,w.jsx)(`stop`,{offset:`.73`,stopColor:`#FF0A67`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`59.676`,x2:`1.08`,y1:`4.067`,y2:`62.663`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#007DFE`,d:`M47.55 58h12.258a4.125 4.125 0 0 0 4.124-4.19l-.176-11.044a4.12 4.12 0 0 0-1.44-3.066L24.158 6.993A4.13 4.13 0 0 0 21.474 6H10.125A4.125 4.125 0 0 0 6 10.125v11.003c0 1.19.514 2.321 1.409 3.105l37.425 32.746A4.12 4.12 0 0 0 47.55 58`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M49.013 58h10.862A4.125 4.125 0 0 0 64 53.875V41.309q0-.3-.044-.598L58.508 3.527A4.125 4.125 0 0 0 54.427 0H39.029a4.125 4.125 0 0 0-4.125 4.126l.005 18.505c0 .425.066.848.195 1.253l9.979 31.246a4.13 4.13 0 0 0 3.93 2.87`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M4.125 64h34.128a4.13 4.13 0 0 0 3.8-2.52L57.85 24.057c.219-.518.33-1.076.324-1.638l-.15-18.329A4.124 4.124 0 0 0 53.9 0H36.234c-.805 0-1.593.236-2.266.678L1.86 21.787A4.13 4.13 0 0 0 0 25.234v34.641A4.125 4.125 0 0 0 4.125 64`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h5.713q2.133 0 3.822.965a6.9 6.9 0 0 1 2.641 2.674q.954 1.71.954 3.864t-.953 3.865a6.9 6.9 0 0 1-2.642 2.674q-1.688.964-3.822.964h-5.713zm8.028 11.876q1.008-.6 1.555-1.72t.547-2.653q0-1.534-.547-2.653-.547-1.12-1.555-1.721-1.008-.6-2.347-.6h-2.755v9.947h2.755q1.34 0 2.347-.6`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},rubymine:e=>{let t=(0,_.c)(23),[n,r]=N(`rubymine`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.29`,stopColor:`#FF2358`}),a=(0,w.jsx)(`stop`,{offset:`.75`,stopColor:`#7256FF`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`4.325`,x2:`62.921`,y1:`59.932`,y2:`1.337`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.29`,stopColor:`#FF8100`}),c=(0,w.jsx)(`stop`,{offset:`.56`,stopColor:`#FF2358`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`-.391`,x2:`24.393`,y1:`7.671`,y2:`61.125`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d=`url(#${n})`,f;t[11]===d?f=t[12]:(f=(0,w.jsx)(`path`,{fill:d,d:`M59.875 0H25.748a4.13 4.13 0 0 0-3.8 2.52L6.151 39.942a4.1 4.1 0 0 0-.325 1.639l.15 18.328A4.125 4.125 0 0 0 10.101 64h17.666c.805 0 1.593-.235 2.266-.678l32.109-21.108A4.12 4.12 0 0 0 64 38.766V4.125A4.125 4.125 0 0 0 59.875 0`}),t[11]=d,t[12]=f);let p=`url(#${r})`,m;t[13]===p?m=t[14]:(m=(0,w.jsx)(`path`,{fill:p,d:`M14.987 6H4.126A4.125 4.125 0 0 0 0 10.125v12.566q0 .3.044.598l5.448 37.184A4.125 4.125 0 0 0 9.572 64H24.97a4.125 4.125 0 0 0 4.125-4.126l-.004-18.504c0-.426-.067-.85-.196-1.254L18.917 8.87A4.13 4.13 0 0 0 14.987 6z`}),t[13]=p,t[14]=m);let h,g,v;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,w.jsx)(`path`,{fill:`#FF8100`,d:`M16.45 6H4.19a4.125 4.125 0 0 0-4.124 4.19L0 21c.019 1.181.786 2.531 1.683 3.3l38.158 32.706c.748.641 1.7.993 2.684.993h11.35A4.125 4.125 0 0 0 58 53.875V42.872c0-1.189-.514-2.32-1.41-3.104L19.167 7.021A4.12 4.12 0 0 0 16.45 6`}),g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM17.012 16.992h6.442q1.575 0 2.776.579t1.849 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.658 1.068-1.875 1.651-1.216.584-2.824.584h-3.43v5.67h-2.926zm7.54 6.63q.552-.274.852-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.631 1.763h3.194L29.05 32h-3.355zM31.633 16.992h4.073l3.087 9.85.257 1.287.225-1.286 2.98-9.85h4.138v15.005h-2.894V21.29l.043-.782-3.494 11.49h-2.123l-3.451-11.415.043.707v10.708h-2.883V16.992z`}),t[15]=h,t[16]=g,t[17]=v):(h=t[15],g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==m||t[20]!==u||t[21]!==f?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,f,m,h,g,v]}),t[18]=e,t[19]=m,t[20]=u,t[21]=f,t[22]=y):y=t[22],y},rustrover:e=>{let t=(0,_.c)(23),[n,r]=N(`rustrover`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.08`,stopColor:`#00D886`}),a=(0,w.jsx)(`stop`,{offset:`.46`,stopColor:`#FFAB00`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.125`,y1:`64.393`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.19`,stopColor:`#FFAB00`}),c=(0,w.jsx)(`stop`,{offset:`.83`,stopColor:`#FF004C`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.336`,y1:`59.676`,y2:`1.08`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#00D886`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM16.992 16.992h6.442q1.576 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.66 1.068-1.875 1.651-1.217.584-2.825.584h-3.43v5.67h-2.926zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L29.03 32h-3.355zM31.613 16.992h6.442q1.575 0 2.776.579t1.85 1.63.648 2.432c0 .922-.22 1.75-.66 2.46q-.659 1.068-1.875 1.651-1.217.584-2.824.584h-3.43v5.67h-2.927zm7.54 6.63q.553-.274.853-.783.3-.51.3-1.184c0-.45-.1-.852-.3-1.185q-.3-.498-.852-.772-.552-.273-1.292-.273h-3.323v4.47h3.323q.74 0 1.292-.273m-2.63 1.763h3.194L43.651 32h-3.355z`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},webstorm:e=>{let t=(0,_.c)(23),[n,r]=N(`webstorm`,2),i,a;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,w.jsx)(`stop`,{offset:`.22`,stopColor:`#F0EB18`}),a=(0,w.jsx)(`stop`,{offset:`.59`,stopColor:`#00C4F4`}),t[0]=i,t[1]=a):(i=t[0],a=t[1]);let o;t[2]===n?o=t[3]:(o=(0,w.jsxs)(`linearGradient`,{id:n,x1:`7.671`,x2:`61.126`,y1:`64.392`,y2:`39.609`,gradientUnits:`userSpaceOnUse`,children:[i,a]}),t[2]=n,t[3]=o);let s,c;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,w.jsx)(`stop`,{offset:`.19`,stopColor:`#00C4F4`}),c=(0,w.jsx)(`stop`,{offset:`.83`,stopColor:`#007DFE`}),t[4]=s,t[5]=c):(s=t[4],c=t[5]);let l;t[6]===r?l=t[7]:(l=(0,w.jsxs)(`linearGradient`,{id:r,x1:`59.932`,x2:`1.337`,y1:`59.676`,y2:`1.079`,gradientUnits:`userSpaceOnUse`,children:[s,c]}),t[6]=r,t[7]=l);let u;t[8]!==o||t[9]!==l?(u=(0,w.jsxs)(`defs`,{children:[o,l]}),t[8]=o,t[9]=l,t[10]=u):u=t[10];let d;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,w.jsx)(`path`,{fill:`#F0EB18`,d:`M6 47.55v12.258a4.125 4.125 0 0 0 4.19 4.124l11.044-.176a4.12 4.12 0 0 0 3.066-1.44l32.707-38.158c.64-.747.993-1.7.993-2.684V10.125A4.125 4.125 0 0 0 53.875 6H42.872c-1.19 0-2.321.514-3.105 1.409L7.021 44.833A4.12 4.12 0 0 0 6 47.55`}),t[11]=d):d=t[11];let f=`url(#${n})`,p;t[12]===f?p=t[13]:(p=(0,w.jsx)(`path`,{fill:f,d:`M6 49.015v10.862a4.125 4.125 0 0 0 4.125 4.125h12.566q.3 0 .598-.044l37.185-5.448A4.125 4.125 0 0 0 64 54.429V39.03a4.125 4.125 0 0 0-4.127-4.125l-18.504.005c-.426 0-.849.066-1.254.195L8.871 45.085A4.13 4.13 0 0 0 6 49.015z`}),t[12]=f,t[13]=p);let m=`url(#${r})`,h;t[14]===m?h=t[15]:(h=(0,w.jsx)(`path`,{fill:m,d:`M0 4.125v34.128c0 1.658.993 3.154 2.52 3.8L39.943 57.85c.518.219 1.075.33 1.638.324l18.329-.15A4.125 4.125 0 0 0 64 53.9V36.234c0-.806-.236-1.593-.678-2.267L42.213 1.86A4.13 4.13 0 0 0 38.766 0H4.125A4.125 4.125 0 0 0 0 4.125`}),t[14]=m,t[15]=h);let g,v;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,w.jsx)(`path`,{fill:`#000`,d:`M52 12H12v40h40z`}),v=(0,w.jsx)(`path`,{fill:`#fff`,d:`M33 44H17v3h16zM19.051 16.992l2.423 10.955 2.583-10.955h2.958l2.701 10.955 2.348-10.955h2.97l-3.645 15.006h-3.334l-2.53-10.9-2.561 10.9H19.64l-3.623-15.006zM38.662 31.664q-1.26-.59-1.972-1.65t-.735-2.444h2.937q0 .654.343 1.147t.954.772q.61.278 1.404.278c.53 0 .952-.083 1.335-.251q.573-.252.889-.702t.316-1.029q0-.718-.434-1.19-.435-.471-1.195-.654l-2.648-.59q-1.071-.234-1.865-.809a4 4 0 0 1-1.232-1.42q-.44-.846-.44-1.908 0-1.286.665-2.31.664-1.023 1.854-1.597 1.19-.573 2.701-.573c1.008 0 1.934.186 2.734.558q1.2.558 1.87 1.549t.68 2.277h-2.925q0-.546-.29-.98c-.29-.435-.466-.515-.82-.676a2.9 2.9 0 0 0-1.217-.24q-.686 0-1.205.23a1.9 1.9 0 0 0-.81.643q-.29.412-.289.96 0 .621.402 1.028t1.099.579l2.55.557q1.105.226 1.968.852a4.45 4.45 0 0 1 1.345 1.544 4.2 4.2 0 0 1 .482 1.999q0 1.329-.702 2.385-.702 1.054-1.966 1.656-1.266.6-2.894.6-1.63 0-2.889-.59`}),t[16]=g,t[17]=v):(g=t[16],v=t[17]);let y;return t[18]!==e||t[19]!==h||t[20]!==u||t[21]!==p?(y=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 64 64`,fill:`none`,children:[u,d,p,h,g,v]}),t[18]=e,t[19]=h,t[20]=u,t[21]=p,t[22]=y):y=t[22],y},terminal:c,"file-manager":s};function F(e,t){return e===`terminal`&&o(t)?`Windows Terminal`:e===`file-manager`?a(t)?`Finder`:o(t)?`Explorer`:`Files`:r.find(t=>t.id===e)?.label??e}function I(e,t){let n=new Set(t);return r.filter(e=>n.has(e.id)).map(t=>({label:F(t.id,e),Icon:P[t.id],value:t.id}))}export{F as n,I as r,P as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{Kc as r}from"./src-b7-hpIff.js";import{H as i,Nn as a,Pn as o,W as s,c}from"./runtime-BkRtSwRY.js";import{f as l,t as u}from"./utils-c6dglOTK.js";import{i as d}from"./toast-DonYDy-6.js";import{t as f}from"./key-round-CacMputS.js";import{t as p}from"./refresh-cw-DopCMrtR.js";import{t as m}from"./trash-2-CM1zXPGb.js";import{i as h,n as g,t as _}from"./tooltip-BaJgdXlL.js";import{t as v}from"./switch-cMx5Wv_R.js";import{t as y}from"./input-zjUwoDs3.js";import{a as b,c as x,d as S,f as C,h as w,i as T,r as E,u as ee}from"./Icons-Cme5LL0k.js";import{t as te}from"./button-BT6cGe5S.js";import{t as ne}from"./toastHelpers-CSQRKo4F.js";import{t as D}from"./skeleton-CCuGgPK1.js";import{t as re}from"./spinner-CgrOdIjl.js";import{o as ie,t as ae}from"./useAtlassian-1BSXt3BO.js";import{t as oe}from"./badge-BbJiUmhG.js";import{t as O}from"./label-DWGvDLsD.js";import{a as k,i as A,n as j,o as se,r as M,t as N}from"./empty-BNn5X77p.js";import{i as P,n as F}from"./settingsLayout-B8os-EWr.js";import{t as I}from"./RedactedSensitiveText-CRGSSHz3.js";var L=n(),R=e(t(),1),z=l(),ce={versionControlSystems:[],sourceControlProviders:[]},le={github:ee,gitlab:C,forgejo:x,"azure-devops":T,bitbucket:b},ue={git:S,jj:w},de=[`primary`,`secondary`],fe=[`atlassian`,`connections`];function B(e){return r(e)}function V(e){return`auth`in e}function H(e){return!V(e)&&!e.implemented}function pe(e){return e.status===`authenticated`?{label:`Authenticated`,badge:null}:e.status===`unauthenticated`?{label:`Not authenticated`,badge:`warning`}:{label:`Status unknown`,badge:null}}function me(e){let t=(0,L.c)(2),n;return t[0]===e.account?n=t[1]:(n=(0,z.jsx)(I,{value:e.account,ariaLabel:`Toggle source control account visibility`,revealTooltip:`Click to reveal account`,hideTooltip:`Click to hide account`}),t[0]=e.account,t[1]=n),n}function he(e){return H(e)?`bg-muted-foreground/35`:e.status!==`available`||V(e)&&e.auth.status!==`authenticated`?`bg-warning`:`bg-success`}function ge(e){let t=(0,L.c)(13),{item:n}=e,r,i,a,o;if(t[0]!==n){o=Symbol.for(`react.early_return_sentinel`);bb0:{let e=he(n),s=V(n)?le[n.kind]:ue[n.kind];if(!s){o=(0,z.jsx)(`span`,{className:u(`size-2 shrink-0 rounded-full`,e),"aria-hidden":!0});break bb0}i=`relative inline-flex size-5 shrink-0 items-center justify-center`,t[5]===s?a=t[6]:(a=(0,z.jsx)(s,{className:`size-4.5 text-foreground/80`,"aria-hidden":!0}),t[5]=s,t[6]=a),r=u(`pointer-events-none absolute -left-0.5 -top-0.5 size-2 rounded-full ring-2 ring-background`,e)}t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o}else r=t[1],i=t[2],a=t[3],o=t[4];if(o!==Symbol.for(`react.early_return_sentinel`))return o;let s;t[7]===r?s=t[8]:(s=(0,z.jsx)(`span`,{className:r,"aria-hidden":!0}),t[7]=r,t[8]=s);let c;return t[9]!==i||t[10]!==a||t[11]!==s?(c=(0,z.jsxs)(`span`,{className:i,children:[a,s]}),t[9]=i,t[10]=a,t[11]=s,t[12]=c):c=t[12],c}function _e({item:e,auth:t,authAccount:n,authHost:r}){return H(e)?(0,z.jsxs)(`span`,{children:[`Support for `,e.label,` is coming soon.`]}):e.status===`available`?t?t.status===`authenticated`?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{children:`Authenticated`}),n?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{"aria-hidden":!0,children:`as`}),(0,z.jsx)(me,{account:n})]}):null,r?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`span`,{"aria-hidden":!0,children:`on`}),(0,z.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-[11px] text-muted-foreground`,children:r})]}):null]}):e.executable?t.status===`unauthenticated`?(0,z.jsxs)(`span`,{children:[e.label,` is not authenticated on this server. Sign in or configure credentials using the `,(0,z.jsx)(`code`,{className:`rounded bg-muted px-1 py-px text-[11px]`,children:e.executable}),` `,`tool on the server host to enable pull request features.`]}):(0,z.jsxs)(`span`,{children:[`Could not verify `,e.label,`. `,B(t.detail)??e.installHint]}):(0,z.jsx)(`span`,{children:e.installHint}):(0,z.jsx)(`span`,{children:`Available`}):(0,z.jsxs)(`span`,{children:[`Not available on this server — `,e.installHint]})}function U(e){let t=(0,L.c)(57),{item:n}=e,r;t[0]===n.version?r=t[1]:(r=B(n.version),t[0]=n.version,t[1]=r);let i=r,a;t[2]===n?a=t[3]:(a=n.status===`available`&&(V(n)||n.implemented),t[2]=n,t[3]=a);let o=a,s=V(n)?n.auth:null,c;t[4]===s?c=t[5]:(c=s?pe(s):null,t[4]=s,t[5]=c);let l=c,d,f,p,m,h,g,_;if(t[6]!==s||t[7]!==l||t[8]!==n||t[9]!==i){let e=s?B(s.account):null,r=s?B(s.host):null;t[17]===n?d=t[18]:(d=u(`border-t border-border/60 first:border-t-0`,H(n)&&`opacity-80`),t[17]=n,t[18]=d),_=`px-4 py-3.5 sm:px-5`,g=`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,m=`min-w-0 flex-1 space-y-1`;let a;t[19]===n?a=t[20]:(a=(0,z.jsx)(ge,{item:n}),t[19]=n,t[20]=a);let o;t[21]===n.label?o=t[22]:(o=(0,z.jsx)(`h3`,{className:`truncate text-[13px] font-semibold tracking-[-0.01em] text-foreground`,children:n.label}),t[21]=n.label,t[22]=o);let c;t[23]===i?c=t[24]:(c=i?(0,z.jsx)(`code`,{className:`text-xs text-muted-foreground`,children:i}):null,t[23]=i,t[24]=c);let v;t[25]===n?v=t[26]:(v=H(n)?(0,z.jsx)(oe,{variant:`warning`,size:`sm`,children:`Coming Soon`}):null,t[25]=n,t[26]=v);let y;t[27]===l?y=t[28]:(y=l?.badge?(0,z.jsx)(oe,{variant:l.badge,size:`sm`,children:l.label}):null,t[27]=l,t[28]=y),t[29]!==a||t[30]!==o||t[31]!==c||t[32]!==v||t[33]!==y?(h=(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[a,o,c,v,y]}),t[29]=a,t[30]=o,t[31]=c,t[32]=v,t[33]=y,t[34]=h):h=t[34],f=`flex min-w-0 flex-wrap items-center gap-x-1 text-xs text-muted-foreground`,p=_e({item:n,auth:s,authAccount:e,authHost:r}),t[6]=s,t[7]=l,t[8]=n,t[9]=i,t[10]=d,t[11]=f,t[12]=p,t[13]=m,t[14]=h,t[15]=g,t[16]=_}else d=t[10],f=t[11],p=t[12],m=t[13],h=t[14],g=t[15],_=t[16];let y;t[35]!==f||t[36]!==p?(y=(0,z.jsx)(`p`,{className:f,children:p}),t[35]=f,t[36]=p,t[37]=y):y=t[37];let b;t[38]!==y||t[39]!==m||t[40]!==h?(b=(0,z.jsxs)(`div`,{className:m,children:[h,y]}),t[38]=y,t[39]=m,t[40]=h,t[41]=b):b=t[41];let x;t[42]!==o||t[43]!==n?(x=H(n)?null:(0,z.jsx)(v,{checked:o,disabled:!0,"aria-label":`${n.label} availability`}),t[42]=o,t[43]=n,t[44]=x):x=t[44];let S;t[45]===x?S=t[46]:(S=(0,z.jsx)(`div`,{className:`flex w-full shrink-0 items-center gap-2 sm:w-auto sm:justify-end`,children:x}),t[45]=x,t[46]=S);let C;t[47]!==b||t[48]!==S||t[49]!==g?(C=(0,z.jsxs)(`div`,{className:g,children:[b,S]}),t[47]=b,t[48]=S,t[49]=g,t[50]=C):C=t[50];let w;t[51]!==C||t[52]!==_?(w=(0,z.jsx)(`div`,{className:_,children:C}),t[51]=C,t[52]=_,t[53]=w):w=t[53];let T;return t[54]!==d||t[55]!==w?(T=(0,z.jsx)(`div`,{className:d,children:w}),t[54]=d,t[55]=w,t[56]=T):T=t[56],T}function W(e){let t=(0,L.c)(4),{title:n,headerAction:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=de.map(ve),t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,z.jsx)(P,{title:n,headerAction:r,children:i}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function ve(e){return(0,z.jsx)(`div`,{className:`border-t border-border/60 px-4 py-3.5 first:border-t-0 sm:px-5`,children:(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 flex-1 space-y-2`,children:[(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsxs)(`span`,{className:`relative inline-flex size-5 shrink-0 items-center justify-center`,children:[(0,z.jsx)(D,{className:`size-4.5 rounded-md`}),(0,z.jsx)(D,{className:`pointer-events-none absolute -left-0.5 -top-0.5 size-2 rounded-full ring-2 ring-background`,"aria-hidden":!0})]}),(0,z.jsx)(D,{className:`h-4 w-28 rounded-full`}),(0,z.jsx)(D,{className:`h-5 w-14 rounded-full`})]}),(0,z.jsx)(D,{className:`h-3 w-full max-w-xs rounded-full`})]}),(0,z.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,z.jsx)(D,{className:`size-7 rounded-md`}),(0,z.jsx)(D,{className:`h-5 w-9 rounded-full`})]})]})},e)}function ye(e){switch(e){case`connected`:return`success`;case`needs_reauth`:return`warning`;case`invalid`:return`error`;case`revoked`:return`outline`}}function be(e){switch(e){case`oauth_3lo`:return`OAuth`;case`bitbucket_token`:return`Bitbucket token`;case`jira_token`:return`Jira token`;case`env_fallback`:return`Environment`}}function xe(e){let t=(0,L.c)(4);if(e.products.includes(`bitbucket`)){let n;return t[0]===e.className?n=t[1]:(n=(0,z.jsx)(b,{className:e.className,"aria-hidden":!0}),t[0]=e.className,t[1]=n),n}let n;return t[2]===e.className?n=t[3]:(n=(0,z.jsx)(E,{className:e.className,"aria-hidden":!0}),t[2]=e.className,t[3]=n),n}function G(){let e=(0,L.c)(109),t=s(),[n,r]=(0,R.useState)(`Bitbucket`),[o,l]=(0,R.useState)(``),[u,p]=(0,R.useState)(``),[h,g]=(0,R.useState)(`Jira`),[_,v]=(0,R.useState)(``),[b,x]=(0,R.useState)(``),[S,C]=(0,R.useState)(``),w;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(w=c(),e[0]=w):w=e[0];let T=w,E=T?.client??null,ee=T?.environmentId??null,D;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(D={environmentId:ee,enabled:E!==null},e[1]=D):D=e[1];let k=ae(D),A;e[2]!==o||e[3]!==n||e[4]!==u?(A=async()=>{if(!E)throw Error(`No server connection is available.`);return E.atlassian.saveManualBitbucketToken({label:n.trim(),email:o.trim(),token:u.trim(),isDefault:!0})},e[2]=o,e[3]=n,e[4]=u,e[5]=A):A=e[5];let j;e[6]===t?j=e[7]:(j=()=>{r(`Bitbucket`),l(``),p(``),ie({environmentId:ee}),t.invalidateQueries({queryKey:fe}),a(),d.add(ne({type:`success`,title:`Bitbucket token saved`,description:`Ryco can now use this Atlassian connection for Bitbucket workflows.`}))},e[6]=t,e[7]=j);let se;e[8]!==A||e[9]!==j?(se={mutationFn:A,onSuccess:j,onError:we},e[8]=A,e[9]=j,e[10]=se):se=e[10];let M=i(se),N;e[11]!==_||e[12]!==h||e[13]!==b||e[14]!==S?(N=async()=>{if(!E)throw Error(`No server connection is available.`);return E.atlassian.saveManualJiraToken({label:h.trim(),email:_.trim(),siteUrl:b.trim(),token:S.trim(),isDefault:!0})},e[11]=_,e[12]=h,e[13]=b,e[14]=S,e[15]=N):N=e[15];let P;e[16]===t?P=e[17]:(P=()=>{g(`Jira`),v(``),x(``),C(``),ie({environmentId:ee}),t.invalidateQueries({queryKey:fe}),d.add(ne({type:`success`,title:`Jira token saved`,description:`Ryco can now load Jira work items for linked projects.`}))},e[16]=t,e[17]=P);let F;e[18]!==N||e[19]!==P?(F={mutationFn:N,onSuccess:P,onError:Ce},e[18]=N,e[19]=P,e[20]=F):F=e[20];let I=i(F),ce;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(ce=async e=>{if(!E)throw Error(`No server connection is available.`);return E.atlassian.disconnect({connectionId:e.connectionId})},e[21]=ce):ce=e[21];let le;e[22]===t?le=e[23]:(le={mutationFn:ce,onSuccess:()=>{ie({environmentId:ee}),t.invalidateQueries({queryKey:fe}),a()},onError:Se},e[22]=t,e[23]=le);let ue=i(le),de;e[24]!==o||e[25]!==n||e[26]!==u||e[27]!==M.isPending?(de=E!==null&&n.trim().length>0&&o.trim().length>0&&u.trim().length>0&&!M.isPending,e[24]=o,e[25]=n,e[26]=u,e[27]=M.isPending,e[28]=de):de=e[28];let B=de,V;e[29]!==_||e[30]!==h||e[31]!==b||e[32]!==S||e[33]!==I.isPending?(V=E!==null&&h.trim().length>0&&_.trim().length>0&&b.trim().length>0&&S.trim().length>0&&!I.isPending,e[29]=_,e[30]=h,e[31]=b,e[32]=S,e[33]=I.isPending,e[34]=V):V=e[34];let H=V,pe;e[35]!==B||e[36]!==M?(pe=e=>{e.preventDefault(),B&&M.mutate()},e[35]=B,e[36]=M,e[37]=pe):pe=e[37];let he=pe,ge;e[38]!==H||e[39]!==I?(ge=e=>{e.preventDefault(),H&&I.mutate()},e[38]=H,e[39]=I,e[40]=ge):ge=e[40];let _e=ge,U;e[41]===k.data?U=e[42]:(U=k.data??[],e[41]=k.data,e[42]=U);let W=U,ve=k.data===null&&!k.isError,G;e[43]===Symbol.for(`react.memo_cache_sentinel`)?(G=(0,z.jsx)(`div`,{className:`border-t border-border/60 bg-muted/20 px-4 py-2.5 sm:px-5`,children:(0,z.jsxs)(`h3`,{className:`flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/70`,children:[(0,z.jsx)(f,{className:`size-3`,"aria-hidden":!0}),`Atlassian`]})}),e[43]=G):G=e[43];let Te;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(Te=(0,z.jsx)(O,{htmlFor:`bitbucket-token-label`,className:`text-xs`,children:`Label`}),e[44]=Te):Te=e[44];let Ee;e[45]===Symbol.for(`react.memo_cache_sentinel`)?(Ee=e=>r(e.currentTarget.value),e[45]=Ee):Ee=e[45];let K;e[46]===n?K=e[47]:(K=(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[Te,(0,z.jsx)(y,{id:`bitbucket-token-label`,size:`sm`,value:n,autoComplete:`organization`,onChange:Ee,placeholder:`Bitbucket`})]}),e[46]=n,e[47]=K);let De;e[48]===Symbol.for(`react.memo_cache_sentinel`)?(De=(0,z.jsx)(O,{htmlFor:`bitbucket-token-email`,className:`text-xs`,children:`Email`}),e[48]=De):De=e[48];let Oe;e[49]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=e=>l(e.currentTarget.value),e[49]=Oe):Oe=e[49];let q;e[50]===o?q=e[51]:(q=(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[De,(0,z.jsx)(y,{id:`bitbucket-token-email`,size:`sm`,type:`email`,value:o,autoComplete:`username`,onChange:Oe,placeholder:`you@example.com`})]}),e[50]=o,e[51]=q);let ke;e[52]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,z.jsx)(O,{htmlFor:`bitbucket-token-secret`,className:`text-xs`,children:`Bitbucket app password`}),e[52]=ke):ke=e[52];let Ae;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(Ae=e=>p(e.currentTarget.value),e[53]=Ae):Ae=e[53];let J;e[54]===u?J=e[55]:(J=(0,z.jsx)(y,{id:`bitbucket-token-secret`,size:`sm`,type:`password`,value:u,autoComplete:`current-password`,onChange:Ae,placeholder:`Stored locally in the server secret store`}),e[54]=u,e[55]=J);let je=!B,Y;e[56]===M.isPending?Y=e[57]:(Y=M.isPending?(0,z.jsx)(re,{className:`size-3`}):null,e[56]=M.isPending,e[57]=Y);let X;e[58]!==je||e[59]!==Y?(X=(0,z.jsxs)(te,{type:`submit`,size:`sm`,className:`h-7.5 shrink-0 gap-1.5 px-3 text-xs`,disabled:je,children:[Y,`Save Token`]}),e[58]=je,e[59]=Y,e[60]=X):X=e[60];let Z;e[61]!==J||e[62]!==X?(Z=(0,z.jsxs)(`div`,{className:`space-y-1.5 sm:col-span-2`,children:[ke,(0,z.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row`,children:[J,X]})]}),e[61]=J,e[62]=X,e[63]=Z):Z=e[63];let Q;e[64]!==he||e[65]!==K||e[66]!==q||e[67]!==Z?(Q=(0,z.jsx)(`div`,{className:`border-t border-border/60 px-4 py-4 sm:px-5`,children:(0,z.jsxs)(`form`,{className:`grid gap-3 sm:grid-cols-[1fr_1fr] sm:items-end`,onSubmit:he,children:[K,q,Z]})}),e[64]=he,e[65]=K,e[66]=q,e[67]=Z,e[68]=Q):Q=e[68];let Me;e[69]===Symbol.for(`react.memo_cache_sentinel`)?(Me=(0,z.jsx)(O,{htmlFor:`jira-token-label`,className:`text-xs`,children:`Label`}),e[69]=Me):Me=e[69];let Ne;e[70]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=e=>g(e.currentTarget.value),e[70]=Ne):Ne=e[70];let $;e[71]===h?$=e[72]:($=(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[Me,(0,z.jsx)(y,{id:`jira-token-label`,size:`sm`,value:h,autoComplete:`organization`,onChange:Ne,placeholder:`Jira`})]}),e[71]=h,e[72]=$);let Pe;e[73]===Symbol.for(`react.memo_cache_sentinel`)?(Pe=(0,z.jsx)(O,{htmlFor:`jira-token-email`,className:`text-xs`,children:`Email`}),e[73]=Pe):Pe=e[73];let Fe;e[74]===Symbol.for(`react.memo_cache_sentinel`)?(Fe=e=>v(e.currentTarget.value),e[74]=Fe):Fe=e[74];let Ie;e[75]===_?Ie=e[76]:(Ie=(0,z.jsxs)(`div`,{className:`space-y-1.5`,children:[Pe,(0,z.jsx)(y,{id:`jira-token-email`,size:`sm`,type:`email`,value:_,autoComplete:`username`,onChange:Fe,placeholder:`you@example.com`})]}),e[75]=_,e[76]=Ie);let Le;e[77]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,z.jsx)(O,{htmlFor:`jira-site-url`,className:`text-xs`,children:`Jira site URL`}),e[77]=Le):Le=e[77];let Re;e[78]===Symbol.for(`react.memo_cache_sentinel`)?(Re=e=>x(e.currentTarget.value),e[78]=Re):Re=e[78];let ze;e[79]===b?ze=e[80]:(ze=(0,z.jsxs)(`div`,{className:`space-y-1.5 sm:col-span-2`,children:[Le,(0,z.jsx)(y,{id:`jira-site-url`,size:`sm`,value:b,inputMode:`url`,autoComplete:`url`,onChange:Re,placeholder:`https://your-team.atlassian.net`})]}),e[79]=b,e[80]=ze);let Be;e[81]===Symbol.for(`react.memo_cache_sentinel`)?(Be=(0,z.jsx)(O,{htmlFor:`jira-token-secret`,className:`text-xs`,children:`Jira API token`}),e[81]=Be):Be=e[81];let Ve;e[82]===Symbol.for(`react.memo_cache_sentinel`)?(Ve=e=>C(e.currentTarget.value),e[82]=Ve):Ve=e[82];let He;e[83]===S?He=e[84]:(He=(0,z.jsx)(y,{id:`jira-token-secret`,size:`sm`,type:`password`,value:S,autoComplete:`current-password`,onChange:Ve,placeholder:`Stored locally in the server secret store`}),e[83]=S,e[84]=He);let Ue=!H,We;e[85]===I.isPending?We=e[86]:(We=I.isPending?(0,z.jsx)(re,{className:`size-3`}):null,e[85]=I.isPending,e[86]=We);let Ge;e[87]!==Ue||e[88]!==We?(Ge=(0,z.jsxs)(te,{type:`submit`,size:`sm`,className:`h-7.5 shrink-0 gap-1.5 px-3 text-xs`,disabled:Ue,children:[We,`Save Jira`]}),e[87]=Ue,e[88]=We,e[89]=Ge):Ge=e[89];let Ke;e[90]!==He||e[91]!==Ge?(Ke=(0,z.jsxs)(`div`,{className:`space-y-1.5 sm:col-span-2`,children:[Be,(0,z.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row`,children:[He,Ge]})]}),e[90]=He,e[91]=Ge,e[92]=Ke):Ke=e[92];let qe;e[93]!==_e||e[94]!==$||e[95]!==Ie||e[96]!==ze||e[97]!==Ke?(qe=(0,z.jsx)(`div`,{className:`border-t border-border/60 px-4 py-4 sm:px-5`,children:(0,z.jsxs)(`form`,{className:`grid gap-3 sm:grid-cols-[1fr_1fr] sm:items-end`,onSubmit:_e,children:[$,Ie,ze,Ke]})}),e[93]=_e,e[94]=$,e[95]=Ie,e[96]=ze,e[97]=Ke,e[98]=qe):qe=e[98];let Je;e[99]!==ve||e[100]!==ue||e[101]!==W?(Je=ve?(0,z.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-4 text-xs text-muted-foreground sm:px-5`,children:[(0,z.jsx)(re,{className:`size-3.5`}),`Loading Atlassian connections`]}):W.length===0?(0,z.jsx)(`div`,{className:`px-4 py-4 text-xs leading-relaxed text-muted-foreground sm:px-5`,children:`No Atlassian connections are stored yet. Add Bitbucket and Jira tokens to enable repository PRs, diffs, and work-item links.`}):W.map(e=>(0,z.jsxs)(`div`,{className:`flex flex-col gap-3 border-t border-border/60 px-4 py-3.5 first:border-t-0 sm:flex-row sm:items-center sm:justify-between sm:px-5`,children:[(0,z.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,z.jsx)(xe,{products:e.products,className:`size-4 text-foreground/80`}),(0,z.jsx)(`h3`,{className:`truncate text-[13px] font-semibold text-foreground`,children:e.label}),(0,z.jsx)(oe,{variant:ye(e.status),size:`sm`,children:e.status.replace(`_`,` `)}),(0,z.jsx)(oe,{variant:`outline`,size:`sm`,children:be(e.kind)})]}),(0,z.jsxs)(`p`,{className:`flex min-w-0 flex-wrap gap-x-1 text-xs text-muted-foreground`,children:[e.accountEmail?(0,z.jsx)(me,{account:e.accountEmail}):(0,z.jsx)(`span`,{children:`No account email saved`}),(0,z.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,z.jsx)(`span`,{children:e.capabilities.join(`, `)})]})]}),(0,z.jsx)(te,{type:`button`,size:`icon-xs`,variant:`ghost`,className:`size-7 self-start text-muted-foreground hover:text-destructive sm:self-auto`,"aria-label":`Delete ${e.label}`,disabled:ue.isPending||e.readonly,onClick:()=>ue.mutate(e),children:(0,z.jsx)(m,{className:`size-3.5`})})]},e.connectionId)),e[99]=ve,e[100]=ue,e[101]=W,e[102]=Je):Je=e[102];let Ye;e[103]===Je?Ye=e[104]:(Ye=(0,z.jsx)(`div`,{className:`border-t border-border/60`,children:Je}),e[103]=Je,e[104]=Ye);let Xe;return e[105]!==Q||e[106]!==qe||e[107]!==Ye?(Xe=(0,z.jsxs)(z.Fragment,{children:[G,Q,qe,Ye]}),e[105]=Q,e[106]=qe,e[107]=Ye,e[108]=Xe):Xe=e[108],Xe}function Se(e){d.add(ne({type:`error`,title:`Could not delete Atlassian connection`,description:e instanceof Error?e.message:`The connection was not changed.`}))}function Ce(e){d.add(ne({type:`error`,title:`Could not save Jira token`,description:e instanceof Error?e.message:`The token could not be saved.`}))}function we(e){d.add(ne({type:`error`,title:`Could not save Bitbucket token`,description:e instanceof Error?e.message:`The token could not be saved.`}))}function Te(){let e=(0,L.c)(33),t=o(),n=t.data??ce,r=t.isPending&&t.data===null,i=De,a=t.isPending,s=t.isPending&&`animate-spin`,c;e[0]===s?c=e[1]:(c=u(`size-3`,s),e[0]=s,e[1]=c);let l;e[2]===c?l=e[3]:(l=(0,z.jsx)(p,{className:c}),e[2]=c,e[3]=l);let d;e[4]!==t.isPending||e[5]!==l?(d=(0,z.jsx)(h,{render:(0,z.jsx)(te,{size:`icon-xs`,variant:`ghost`,className:`size-5 rounded-sm p-0 text-muted-foreground hover:text-foreground`,onClick:i,disabled:a,"aria-label":`Rescan server environment`,children:l})}),e[4]=t.isPending,e[5]=l,e[6]=d):d=e[6];let f;e[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,z.jsx)(g,{side:`top`,children:`Rescan Git and hosting integrations`}),e[7]=f):f=e[7];let m;e[8]===d?m=e[9]:(m=(0,z.jsxs)(_,{children:[d,f]}),e[8]=d,e[9]=m);let v=m;if(r){let t;e[10]===v?t=e[11]:(t=(0,z.jsx)(W,{title:`Version Control`,headerAction:v}),e[10]=v,e[11]=t);let n;e[12]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,z.jsx)(W,{title:`Source Control Providers`}),e[12]=n):n=e[12];let r;return e[13]===t?r=e[14]:(r=(0,z.jsxs)(F,{children:[t,n]}),e[13]=t,e[14]=r),r}let y=n.versionControlSystems.length>0,b=n.sourceControlProviders.length>0,x=y||b,C;e[15]!==t.isPending||e[16]!==x?(C=x?null:(0,z.jsxs)(P,{title:`Source Control Providers`,children:[(0,z.jsxs)(N,{className:`min-h-56 border-t border-border/60 first:border-t-0`,children:[(0,z.jsxs)(A,{children:[(0,z.jsx)(k,{variant:`icon`,children:(0,z.jsx)(S,{className:`size-4`})}),(0,z.jsx)(se,{children:`Nothing detected yet`}),(0,z.jsx)(M,{children:`Install Git on the server, add optional hosting integrations or credentials your workspace needs, then rescan.`})]}),(0,z.jsx)(j,{children:(0,z.jsxs)(te,{type:`button`,size:`xs`,onClick:i,disabled:t.isPending,children:[(0,z.jsx)(p,{className:u(`size-3`,t.isPending&&`animate-spin`)}),`Scan`]})})]}),(0,z.jsx)(G,{})]}),e[15]=t.isPending,e[16]=x,e[17]=C):C=e[17];let w;e[18]!==y||e[19]!==n.versionControlSystems||e[20]!==v?(w=y?(0,z.jsx)(P,{title:`Version Control`,headerAction:v,children:n.versionControlSystems.map(K)}):null,e[18]=y,e[19]=n.versionControlSystems,e[20]=v,e[21]=w):w=e[21];let T;e[22]!==t.error||e[23]!==x||e[24]!==b||e[25]!==y||e[26]!==n.sourceControlProviders||e[27]!==v?(T=x?(0,z.jsxs)(P,{title:`Source Control Providers`,headerAction:y?null:v,children:[b?n.sourceControlProviders.map(Ee):(0,z.jsx)(`div`,{className:`border-t border-border/60 px-4 py-3.5 first:border-t-0 sm:px-5`,children:(0,z.jsx)(`p`,{className:`text-xs leading-relaxed text-muted-foreground`,children:t.error??`No source control providers were detected on the server. Install a CLI like git, gh, glab, or az on the server host, then rescan.`})}),(0,z.jsx)(G,{})]}):null,e[22]=t.error,e[23]=x,e[24]=b,e[25]=y,e[26]=n.sourceControlProviders,e[27]=v,e[28]=T):T=e[28];let E;return e[29]!==C||e[30]!==w||e[31]!==T?(E=(0,z.jsxs)(F,{children:[C,w,T]}),e[29]=C,e[30]=w,e[31]=T,e[32]=E):E=e[32],E}function Ee(e){return(0,z.jsx)(U,{item:e},`provider:${e.kind}`)}function K(e){return(0,z.jsx)(U,{item:e},`vcs:${e.kind}`)}function De(){a()}export{Te as SourceControlSettingsPanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{t as r}from"./src-b7-hpIff.js";import{l as i,v as a}from"./runtime-BkRtSwRY.js";import{n as o}from"./primary-0ymoUGkq.js";import{f as s,t as c}from"./utils-c6dglOTK.js";import{f as l}from"./useRenderElement-DchFnsR8.js";import{t as u}from"./activity-1CkdQG5u.js";import{A as d,C as f,D as p,E as m,F as h,I as g,L as _,M as v,O as y,P as b,R as x,S,T as C,_ as w,c as T,d as E,f as D,g as O,h as ee,j as k,m as A,o as j,p as M,r as N,s as P,t as F,v as I,w as L,x as R}from"./useStatistics-B2NNfOqV.js";import{t as z}from"./chart-column-Dw6ACmXM.js";import{t as B}from"./circle-alert-BWvs6IOn.js";import{t as V}from"./clock-3-r12DkpRj.js";import{n as H,t as te}from"./layers-BYi0v17h.js";import{t as ne}from"./git-pull-request-DIYyPsg5.js";import{t as re}from"./messages-square-DiMgWzoq.js";import{t as U}from"./refresh-cw-DopCMrtR.js";import{t as ie}from"./shield-alert-DY9uVP5G.js";import{t as ae}from"./sparkles-CAf3oJ5S.js";import{t as oe}from"./triangle-alert-RL_T3KLo.js";import{t as se}from"./wrench-D0IetWa1.js";import{t as ce}from"./scroll-area-B-bu3v0j.js";import{t as W}from"./button-BT6cGe5S.js";import{t as le}from"./capabilities-CK9Wa-Au.js";import{o as ue}from"./sidebar-H-CSxQVD.js";import{a as de,i as fe,o as pe,s as me,t as he}from"./select-rPdFVPfm.js";import{t as ge}from"./badge-BbJiUmhG.js";var _e=l(`brain-circuit`,[[`path`,{d:`M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z`,key:`l5xja`}],[`path`,{d:`M9 13a4.5 4.5 0 0 0 3-4`,key:`10igwf`}],[`path`,{d:`M6.003 5.125A3 3 0 0 0 6.401 6.5`,key:`105sqy`}],[`path`,{d:`M3.477 10.896a4 4 0 0 1 .585-.396`,key:`ql3yin`}],[`path`,{d:`M6 18a4 4 0 0 1-1.967-.516`,key:`2e4loj`}],[`path`,{d:`M12 13h4`,key:`1ku699`}],[`path`,{d:`M12 18h6a2 2 0 0 1 2 2v1`,key:`105ag5`}],[`path`,{d:`M12 8h8`,key:`1lhi5i`}],[`path`,{d:`M16 8V5a2 2 0 0 1 2-2`,key:`u6izg6`}],[`circle`,{cx:`16`,cy:`13`,r:`.5`,key:`ry7gng`}],[`circle`,{cx:`18`,cy:`3`,r:`.5`,key:`1aiba7`}],[`circle`,{cx:`20`,cy:`21`,r:`.5`,key:`yhc1fs`}],[`circle`,{cx:`20`,cy:`8`,r:`.5`,key:`1e43v0`}]]),ve=l(`circle-dollar-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8`,key:`1h4pet`}],[`path`,{d:`M12 18V6`,key:`zqpxq5`}]]),ye=l(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),G=n(),K=s();function be(e){let t=(0,G.c)(56),{search:n,onSearchChange:r}=e,{snapshot:i,loading:a,error:s,refresh:c,refreshing:l}=F(),d=n.projectId??null,p=n.model??null,m=n.modelProvider??null,h;t[0]!==n.range||t[1]!==d||t[2]!==p||t[3]!==m?(h={range:n.range,projectId:d,model:p,provider:m},t[0]=n.range,t[1]=d,t[2]=p,t[3]=m,t[4]=h):h=t[4];let g=h,_;bb0:{if(!i){_=null;break bb0}let e,n,r,a;if(t[5]!==g||t[6]!==i){let o=T(i,g),s=E(o);e=o,n=s,r=P(i,o,g.range),a=N(o,j(i)),t[5]=g,t[6]=i,t[7]=e,t[8]=n,t[9]=r,t[10]=a}else e=t[7],n=t[8],r=t[9],a=t[10];let o;t[11]!==e||t[12]!==n||t[13]!==r||t[14]!==a?(o={buckets:e,totals:n,days:r,projects:a},t[11]=e,t[12]=n,t[13]=r,t[14]=a,t[15]=o):o=t[15],_=o}let v=_;if(a&&!i){let e;return t[16]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(ee,{}),t[16]=e):e=t[16],e}if(s&&!i){let e;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(U,{}),t[17]=e):e=t[17];let n;t[18]===c?n=t[19]:(n=(0,K.jsxs)(W,{size:`sm`,variant:`outline`,onClick:c,children:[e,` Try again`]}),t[18]=c,t[19]=n);let r;return t[20]!==s||t[21]!==n?(r=(0,K.jsx)(O,{icon:oe,title:`Couldn’t load Ryco activity`,description:s,action:n}),t[20]=s,t[21]=n,t[22]=r):r=t[22],r}if(!i||!v)return null;let{totals:b,days:x,projects:S}=v,C=o()?.label??`Current environment`,k;if(t[23]!==x||t[24]!==g||t[25]!==r||t[26]!==S||t[27]!==c||t[28]!==l||t[29]!==n||t[30]!==i.dailyBuckets.length||t[31]!==i.models||t[32]!==i.projects||t[33]!==i.recentPullRequests||t[34]!==i.worktrees||t[35]!==b){let e=Se(x,n.activityMetric),a;t[37]!==r||t[38]!==n?(a=e=>r({...n,range:e.range,projectId:e.projectId??void 0,model:e.model??void 0,modelProvider:e.provider??void 0}),t[37]=r,t[38]=n,t[39]=a):a=t[39];let o;t[40]!==g||t[41]!==i.models||t[42]!==i.projects||t[43]!==a?(o=(0,K.jsx)(D,{filter:g,projects:i.projects,models:i.models,onChange:a}),t[40]=g,t[41]=i.models,t[42]=i.projects,t[43]=a,t[44]=o):o=t[44];let s=l?`animate-spin`:void 0,d;t[45]===s?d=t[46]:(d=(0,K.jsx)(U,{className:s}),t[45]=s,t[46]=d);let p=l?`Refreshing`:`Refresh`,m;t[47]!==c||t[48]!==l||t[49]!==d||t[50]!==p?(m=(0,K.jsxs)(W,{size:`sm`,variant:`outline`,onClick:c,disabled:l,children:[d,p]}),t[47]=c,t[48]=l,t[49]=d,t[50]=p,t[51]=m):m=t[51];let h;t[52]!==m||t[53]!==o?(h=(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[o,m]}),t[52]=m,t[53]=o,t[54]=h):h=t[54];let _;t[55]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,K.jsxs)(`p`,{className:`max-w-4xl text-sm leading-relaxed text-muted-foreground`,children:[`Activity includes work observed by Ryco on`,` `,(0,K.jsx)(`span`,{className:`font-medium text-foreground`,children:C}),`. Usage from other CLI sessions appears in the Usage tab and is not assigned to projects.`]}),t[55]=_):_=t[55],k=(0,K.jsxs)(`div`,{className:`space-y-8`,children:[h,_,i.dailyBuckets.length===0?(0,K.jsx)(O,{icon:u,title:`No Ryco activity yet`,description:`Project and agent activity will appear here after your first completed turns.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-3 xl:grid-cols-5`,children:[(0,K.jsx)(A,{label:`Active time`,icon:V,value:f(b.activeMs),sub:`${y(b.totalTokens)} observed tokens`}),(0,K.jsx)(A,{label:`Turns`,icon:u,value:L(b.turns),sub:`Completed agent turns`}),(0,K.jsx)(A,{label:`Chats`,icon:re,value:L(b.threadsCreated),sub:`Conversations started`}),(0,K.jsx)(A,{label:`Tool uses`,icon:se,value:L(b.toolUses),sub:`Observed invocations`}),(0,K.jsx)(A,{label:`Files changed`,icon:H,value:L(b.filesChanged),sub:`+${L(b.additions)} / −${L(b.deletions)} lines`})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-[1.2fr_0.8fr]`,children:[(0,K.jsxs)(M,{title:`Activity rhythm`,icon:u,bodyClassName:`p-5`,action:(0,K.jsx)(Ce,{search:n,onSearchChange:r}),children:[(0,K.jsx)(R,{points:x,metric:n.activityMetric}),(0,K.jsxs)(`div`,{className:`mt-5 grid grid-cols-3 gap-3 border-t border-border/60 pt-4`,children:[(0,K.jsx)(J,{label:`Active days`,value:L(e.activeDays)}),(0,K.jsx)(J,{label:`Current streak`,value:`${L(e.currentStreak)}d`}),(0,K.jsx)(J,{label:`Busiest UTC day`,value:e.busiestLabel})]})]}),(0,K.jsx)(M,{title:`Projects`,icon:u,bodyClassName:`p-4`,children:(0,K.jsx)(I,{data:S,metric:n.activityMetric})})]}),(0,K.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,K.jsxs)(M,{title:`Code changes`,icon:H,bodyClassName:`p-4`,children:[(0,K.jsxs)(`div`,{className:`mb-4 flex gap-6 text-sm`,children:[(0,K.jsx)(J,{label:`Files`,value:L(b.filesChanged)}),(0,K.jsx)(J,{label:`Added`,value:`+${L(b.additions)}`,tone:`positive`}),(0,K.jsx)(J,{label:`Removed`,value:`−${L(b.deletions)}`,tone:`negative`})]}),(0,K.jsx)(w,{data:x})]}),(0,K.jsxs)(M,{title:`Source control · all time`,icon:ne,bodyClassName:`overflow-hidden`,children:[(0,K.jsxs)(`div`,{className:`grid grid-cols-4 gap-3 border-b border-border/60 px-4 py-4`,children:[(0,K.jsx)(J,{label:`Active`,value:L(i.worktrees.active)}),(0,K.jsx)(J,{label:`Created`,value:L(i.worktrees.created)}),(0,K.jsx)(J,{label:`Archived`,value:L(i.worktrees.archived)}),(0,K.jsx)(J,{label:`Open PRs`,value:L(i.worktrees.openPrs)})]}),i.recentPullRequests.length===0?(0,K.jsx)(`div`,{className:`flex h-[260px] items-center justify-center px-6 text-center text-xs text-muted-foreground`,children:`No projected pull requests yet.`}):(0,K.jsx)(`div`,{className:`divide-y divide-border/60`,children:i.recentPullRequests.slice(0,6).map(xe)})]})]})]})]}),t[23]=x,t[24]=g,t[25]=r,t[26]=S,t[27]=c,t[28]=l,t[29]=n,t[30]=i.dailyBuckets.length,t[31]=i.models,t[32]=i.projects,t[33]=i.recentPullRequests,t[34]=i.worktrees,t[35]=b,t[36]=k}else k=t[36];return k}function xe(e){return(0,K.jsxs)(`div`,{className:`flex items-center gap-3 px-4 py-3.5`,children:[(0,K.jsx)(`div`,{className:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground`,children:(0,K.jsx)(ne,{className:`size-4`})}),(0,K.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,K.jsx)(`p`,{className:`truncate text-sm font-medium`,children:e.prTitle||e.worktreeTitle||e.branch}),(0,K.jsxs)(`p`,{className:`mt-0.5 truncate text-[11px] text-muted-foreground`,children:[e.projectTitle,` · #`,e.prNumber,` ·`,` `,p(e.updatedAt)]})]}),(0,K.jsx)(ge,{variant:e.prState===`merged`?`success`:e.active?`info`:`secondary`,children:e.prIsDraft?`Draft`:e.prState??(e.active?`Open`:`Archived`)})]},e.worktreeId)}function q(e,t){return t===`turns`?e.turns:t===`activeMs`?e.activeMs:e.filesChanged}function Se(e,t){let n=0,r=0,i=null;for(let r of e){let e=q(r,t);e>0&&(n+=1),(i===null||e>q(i,t))&&(i=r)}for(let n=e.length-1;n>=0;--n){let i=e[n];if(i===void 0||q(i,t)<=0)break;r+=1}if(i===null||q(i,t)<=0)return{activeDays:n,currentStreak:r,busiestLabel:`—`};let a=q(i,t),o=t===`activeMs`?f(a):L(a);return{activeDays:n,currentStreak:r,busiestLabel:`${i.date.slice(5)} · ${o}`}}function Ce(e){let t=(0,G.c)(4),{search:n,onSearchChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=[`turns`,`activeMs`,`files`],t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,K.jsx)(`div`,{className:`inline-flex rounded-md bg-muted p-0.5`,children:i.map(e=>(0,K.jsx)(`button`,{type:`button`,onClick:()=>r({...n,activityMetric:e}),className:c(`h-6 rounded-sm px-2 text-[11px]`,n.activityMetric===e?`bg-background text-foreground shadow-xs`:`text-muted-foreground`),children:e===`activeMs`?`Time`:e===`files`?`Files`:`Turns`},e))}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function J(e){let t=(0,G.c)(10),{label:n,value:r,tone:i}=e,a;t[0]===n?a=t[1]:(a=(0,K.jsx)(`p`,{className:`text-[10px] tracking-[0.08em] text-muted-foreground uppercase`,children:n}),t[0]=n,t[1]=a);let o=i===`positive`?`text-success-foreground`:i===`negative`?`text-destructive`:`text-foreground`,s;t[2]===o?s=t[3]:(s=c(`mt-1 font-semibold tabular-nums`,o),t[2]=o,t[3]=s);let l;t[4]!==s||t[5]!==r?(l=(0,K.jsx)(`p`,{className:s,children:r}),t[4]=s,t[5]=r,t[6]=l):l=t[6];let u;return t[7]!==a||t[8]!==l?(u=(0,K.jsxs)(`div`,{children:[a,l]}),t[7]=a,t[8]=l,t[9]=u):u=t[9],u}function we(e){switch(e){case`complete`:return 4;case`partial`:return 3;case`not-found`:return 2;case`failed`:return 1}}function Te(e,t){return we(t.source.status)-we(e.source.status)||t.source.scanFinishedAt.localeCompare(e.source.scanFinishedAt)||t.environment.summary.generatedAt.localeCompare(e.environment.summary.generatedAt)||e.environment.environmentId.localeCompare(t.environment.environmentId)}function Ee(e,t){return{uncachedInputTokens:e.uncachedInputTokens+t.uncachedInputTokens,cachedInputTokens:e.cachedInputTokens+t.cachedInputTokens,cacheCreationInputTokens:e.cacheCreationInputTokens+t.cacheCreationInputTokens,outputTokens:e.outputTokens+t.outputTokens,reasoningTokens:e.reasoningTokens+t.reasoningTokens,totalTokens:e.totalTokens+t.totalTokens}}function De(e,t){if(e.size===0||e.size===1&&e.has(`unpriced`))return`unpriced`;let n=new Set([...e].filter(e=>e!==`unpriced`));return t>0||n.size!==1||e.has(`mixed`)?`mixed`:n.values().next().value??`unpriced`}function Oe(e){let t=e.filter(e=>e.summary!==void 0&&e.summary.contractVersion===1&&(e.status===`complete`||e.status===`partial`));if(t.length===0)return null;let n=t.flatMap(e=>e.summary.sources.map(t=>({environment:e,source:t}))).toSorted(Te),r=new Set,i=new Set,a=[],o=0,s=!1;for(let e of n){let t=`${e.environment.environmentId}\0${e.source.sourceId}`,n=e.source.deduplicationKind===`physical`,c=n&&r.has(e.source.sourceId);n&&!c&&r.add(e.source.sourceId),n||(s=!0),c?o+=1:i.add(t),a.push({...e.source,environmentId:e.environment.environmentId,environmentLabel:e.environment.label,included:!c,...c?{exclusionReason:`duplicate`}:{}})}let c=new Map;for(let e of t)for(let t of e.summary.buckets){let n=`${e.environmentId}\0${t.sourceId}`;if(!i.has(n))continue;let r=`${t.date}\0${t.provider}\0${t.model}`,a=c.get(r);a===void 0&&(a={date:t.date,provider:t.provider,model:t.model,...t.rawModel===void 0?{}:{rawModel:t.rawModel},tokens:{uncachedInputTokens:0,cachedInputTokens:0,cacheCreationInputTokens:0,outputTokens:0,reasoningTokens:0,totalTokens:0},responseCount:0,sessionCount:0,estimatedCostUsd:0,estimatedCacheSavingsUsd:0,hasCost:!1,hasCacheSavings:!1,pricedTokenCount:0,unpricedTokenCount:0,costSources:new Set,sourceIds:new Set},c.set(r,a)),a.tokens=Ee(a.tokens,t.tokens),a.responseCount+=t.responseCount,a.sessionCount+=t.sessionCount,t.estimatedCostUsd!==void 0&&(a.estimatedCostUsd+=t.estimatedCostUsd,a.hasCost=!0),t.estimatedCacheSavingsUsd!==void 0&&(a.estimatedCacheSavingsUsd+=t.estimatedCacheSavingsUsd,a.hasCacheSavings=!0),a.pricedTokenCount+=t.pricedTokenCount,a.unpricedTokenCount+=t.unpricedTokenCount,a.costSources.add(t.costSource),a.sourceIds.add(t.sourceId)}let l=[...c.values()].map(e=>Object.assign({date:e.date,provider:e.provider,model:e.model,tokens:e.tokens,responseCount:e.responseCount,sessionCount:e.sessionCount,pricedTokenCount:e.pricedTokenCount,unpricedTokenCount:e.unpricedTokenCount,costSource:De(e.costSources,e.unpricedTokenCount),sourceIds:[...e.sourceIds].toSorted()},e.rawModel===void 0?{}:{rawModel:e.rawModel},e.hasCost?{estimatedCostUsd:e.estimatedCostUsd}:{},e.hasCacheSavings?{estimatedCacheSavingsUsd:e.estimatedCacheSavingsUsd}:{})).toSorted((e,t)=>e.date.localeCompare(t.date)||e.provider.localeCompare(t.provider)||e.model.localeCompare(t.model)),u=t[0]?.summary;return u?{...u.startDate===void 0?{}:{startDate:u.startDate},endDate:u.endDate,timeZone:u.timeZone,buckets:l,sources:a.toSorted((e,t)=>Number(t.included)-Number(e.included)||e.provider.localeCompare(t.provider)||e.environmentLabel.localeCompare(t.environmentLabel)),environments:e,duplicateSourceCount:o,environmentOnlyDeduplicationWarning:s}:null}var ke=class{#e=0;next(){return this.#e+=1,this.#e}isCurrent(e){return e===this.#e}},Y=e(t(),1),Ae={"7d":7,"30d":30,"90d":90,all:null};function je(e,t){return new Intl.DateTimeFormat(`en-CA`,{timeZone:t,year:`numeric`,month:`2-digit`,day:`2-digit`}).format(new Date(e))}function Me(e,t,n=Date.now()){let r=je(n,t),i=Ae[e];return i===null?{endDate:r,timeZone:t,contractVersion:1}:{startDate:je(Date.parse(`${r}T12:00:00.000Z`)-(i-1)*864e5,`UTC`),endDate:r,timeZone:t,contractVersion:1}}function Ne(){let e=(0,G.c)(3),[t,n]=(0,Y.useState)(0),r,o;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>a(()=>n(Pe)),o=[],e[0]=r,e[1]=o):(r=e[0],o=e[1]),(0,Y.useEffect)(r,o);let s;return e[2]===Symbol.for(`react.memo_cache_sentinel`)?(s=i(),e[2]=s):s=e[2],s}function Pe(e){return e+1}function Fe(e){let t=Ne(),n=(0,Y.useMemo)(()=>t.map(e=>({environmentId:e.environmentId,label:e.knownEnvironment.label})).toSorted((e,t)=>e.label.localeCompare(t.label)),[t]),r=(0,Y.useMemo)(()=>{if(e.environmentIds===void 0||e.environmentIds.length===0)return t;let n=new Set(e.environmentIds);return t.filter(e=>n.has(e.environmentId))},[t,e.environmentIds]),i=Intl.DateTimeFormat().resolvedOptions().timeZone||`UTC`,[a,o]=(0,Y.useState)(0),[s,c]=(0,Y.useState)(null),[l,u]=(0,Y.useState)([]),[d,f]=(0,Y.useState)(!0),p=(0,Y.useRef)(new ke),m=r.map(e=>e.environmentId).toSorted().join(`\0`);(0,Y.useEffect)(()=>{let t=p.current.next(),n=Me(e.range,i);f(!0),Promise.all(r.map(async e=>{try{let t=await e.client.server.getUsageSummary(n);if(t.contractVersion!==1)return{environmentId:e.environmentId,label:e.knownEnvironment.label,status:`stale-contract`,message:`This environment uses an incompatible usage contract.`};let r=t.sources.some(e=>e.status===`partial`||e.status===`failed`);return{environmentId:e.environmentId,label:e.knownEnvironment.label,status:r?`partial`:`complete`,summary:t}}catch(t){return{environmentId:e.environmentId,label:e.knownEnvironment.label,status:`failed`,message:t instanceof Error?t.message:String(t)}}})).then(e=>{p.current.isCurrent(t)&&(u(e),c(Oe(e)),f(!1))})},[e.range,a,r,m,i]);let h=(0,Y.useCallback)(()=>o(e=>e+1),[]);return{merged:s,environments:l,availableEnvironments:n,loading:d,refreshing:d&&s!==null,refresh:h}}function Ie(e,t){if(t===void 0||t.length===0)return e.buckets;let n=new Set(t);return e.buckets.filter(e=>n.has(e.provider))}function Le(e,t){let n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0,u=0,d=!1,f=!1,p=0,m=0;for(let e of t)n+=e.tokens.totalTokens,r+=e.tokens.uncachedInputTokens,i+=e.tokens.cachedInputTokens,a+=e.tokens.cacheCreationInputTokens,o+=e.tokens.outputTokens,s+=e.tokens.reasoningTokens,c+=e.responseCount,p+=e.pricedTokenCount,m+=e.unpricedTokenCount,e.estimatedCostUsd!==void 0&&(l+=e.estimatedCostUsd,d=!0),e.estimatedCacheSavingsUsd!==void 0&&(u+=e.estimatedCacheSavingsUsd,f=!0);let h=new Set(t.map(e=>e.provider)),g=e.sources.filter(e=>e.included&&h.has(e.provider)&&e.status!==`not-found`&&e.status!==`failed`).reduce((e,t)=>e+t.distinctSessionCount,0);return{totalTokens:n,uncachedInputTokens:r,cachedInputTokens:i,cacheCreationInputTokens:a,outputTokens:o,reasoningTokens:s,responseCount:c,distinctSessionCount:g,estimatedCostUsd:d?l:null,estimatedCacheSavingsUsd:f?u:null,pricedTokenCount:p,unpricedTokenCount:m}}function Re(e,t){return new Date(Date.parse(`${e}T12:00:00.000Z`)+t*864e5).toISOString().slice(0,10)}function ze(e,t){let n=new Map;for(let e of t){let t=n.get(e.date)??{date:e.date,claudeCost:0,codexCost:0,claudeTokens:0,codexTokens:0};n.set(e.date,{...t,...e.provider===`claude`?{claudeCost:t.claudeCost+(e.estimatedCostUsd??0),claudeTokens:t.claudeTokens+e.tokens.totalTokens}:{codexCost:t.codexCost+(e.estimatedCostUsd??0),codexTokens:t.codexTokens+e.tokens.totalTokens}})}let r=e.startDate??[...n.keys()].toSorted((e,t)=>e.localeCompare(t))[0];if(r===void 0)return[];let i=[];for(let t=r;t<=e.endDate;t=Re(t,1))i.push(n.get(t)??{date:t,claudeCost:0,codexCost:0,claudeTokens:0,codexTokens:0});return i}function Be(e,t){let n=new Map;for(let r of e){let e=t===`model`?`${r.provider}\0${r.model}`:r.date,i=n.get(e)??{key:e,label:t===`model`?r.model:r.date,...t===`model`?{provider:r.provider}:{},tokens:0,costUsd:null,unpricedTokens:0,responses:0};n.set(e,{...i,tokens:i.tokens+r.tokens.totalTokens,costUsd:r.estimatedCostUsd===void 0?i.costUsd:(i.costUsd??0)+r.estimatedCostUsd,unpricedTokens:i.unpricedTokens+r.unpricedTokenCount,responses:i.responses+r.responseCount})}let r=[...n.values()].some(e=>e.costUsd!==null);return[...n.values()].toSorted((e,t)=>r&&(t.costUsd??-1)-(e.costUsd??-1)||t.tokens-e.tokens)}var Ve=new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:2}),X={claude:`#d97757`,codex:`var(--foreground)`};function Z(e){return e===null?`Unavailable`:Ve.format(e)}function He(e){let t=(0,G.c)(90),{search:n,onSearchChange:r}=e,i;t[0]!==n.environmentIds||t[1]!==n.range?(i={range:n.range,environmentIds:n.environmentIds},t[0]=n.environmentIds,t[1]=n.range,t[2]=i):i=t[2];let a=Fe(i),{merged:o}=a,s;bb0:{if(!o){s=null;break bb0}let e,r,i,a;if(t[3]!==o||t[4]!==n.providers||t[5]!==n.usageBreakdown){let s=Ie(o,n.providers);e=s,r=Le(o,s),i=ze(o,s),a=Be(s,n.usageBreakdown),t[3]=o,t[4]=n.providers,t[5]=n.usageBreakdown,t[6]=e,t[7]=r,t[8]=i,t[9]=a}else e=t[6],r=t[7],i=t[8],a=t[9];let c;t[10]!==e||t[11]!==r||t[12]!==i||t[13]!==a?(c={buckets:e,totals:r,days:i,breakdown:a},t[10]=e,t[11]=r,t[12]=i,t[13]=a,t[14]=c):c=t[14],s=c}let c=s;if(a.loading&&!o){let e;return t[15]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,K.jsx)(ee,{}),t[15]=e):e=t[15],e}if(!o||!c){let e,n,r,i;if(t[16]!==a.environments){let o=a.environments.filter(Ke);e=O,n=o.length>0?B:ye,r=o.length>0?`Couldn’t load usage`:`No usage environments are connected`,i=o.length>0?`Usage failed for ${o.map(Ge).join(`, `)}. ${o[0]?.message??`Retry after checking the environment connection.`}`:`Connect an environment with Claude Code or Codex transcripts, then refresh this view.`,t[16]=a.environments,t[17]=e,t[18]=n,t[19]=r,t[20]=i}else e=t[17],n=t[18],r=t[19],i=t[20];let o;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,K.jsx)(U,{}),t[21]=o):o=t[21];let s;t[22]===a.refresh?s=t[23]:(s=(0,K.jsxs)(W,{size:`sm`,variant:`outline`,onClick:a.refresh,children:[o,` Refresh`]}),t[22]=a.refresh,t[23]=s);let c;return t[24]!==e||t[25]!==n||t[26]!==r||t[27]!==i||t[28]!==s?(c=(0,K.jsx)(e,{icon:n,title:r,description:i,action:s}),t[24]=e,t[25]=n,t[26]=r,t[27]=i,t[28]=s,t[29]=c):c=t[29],c}let{totals:l,days:u,breakdown:d}=c,f=l.pricedTokenCount+l.unpricedTokenCount>0?l.pricedTokenCount/(l.pricedTokenCount+l.unpricedTokenCount):0,p=l.uncachedInputTokens+l.cachedInputTokens+l.cacheCreationInputTokens>0?l.cachedInputTokens/(l.uncachedInputTokens+l.cachedInputTokens+l.cacheCreationInputTokens):0,h=n.environmentIds===void 0||n.environmentIds?.length!==1?`all`:n.environmentIds[0],g;t[30]===o.sources?g=t[31]:(g=o.sources.some(We),t[30]=o.sources,t[31]=g);let _=g,v;t[32]!==r||t[33]!==n?(v=(0,K.jsx)(qe,{search:n,onSearchChange:r}),t[32]=r,t[33]=n,t[34]=v):v=t[34];let b;t[35]!==r||t[36]!==n?(b=e=>r({...n,...e===null||e===`all`?{environmentIds:void 0}:{environmentIds:[e]}}),t[35]=r,t[36]=n,t[37]=b):b=t[37];let x;t[38]!==a.availableEnvironments||t[39]!==h?(x=h===`all`?`All environments (${a.availableEnvironments.length})`:a.availableEnvironments.find(e=>e.environmentId===h)?.label??`Environment`,t[38]=a.availableEnvironments,t[39]=h,t[40]=x):x=t[40];let w;t[41]===x?w=t[42]:(w=(0,K.jsx)(pe,{size:`sm`,className:`w-48`,"aria-label":`Usage environment`,children:(0,K.jsx)(me,{children:x})}),t[41]=x,t[42]=w);let T;t[43]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,K.jsx)(fe,{value:`all`,children:`All environments`}),t[43]=T):T=t[43];let E;t[44]===a.availableEnvironments?E=t[45]:(E=a.availableEnvironments.map(Ue),t[44]=a.availableEnvironments,t[45]=E);let D;t[46]===E?D=t[47]:(D=(0,K.jsxs)(de,{alignItemWithTrigger:!1,children:[T,E]}),t[46]=E,t[47]=D);let k;t[48]!==h||t[49]!==D||t[50]!==b||t[51]!==w?(k=(0,K.jsxs)(he,{value:h,onValueChange:b,children:[w,D]}),t[48]=h,t[49]=D,t[50]=b,t[51]=w,t[52]=k):k=t[52];let A;t[53]!==r||t[54]!==n?(A=(0,K.jsx)(Je,{search:n,onSearchChange:r}),t[53]=r,t[54]=n,t[55]=A):A=t[55];let j;t[56]!==k||t[57]!==A||t[58]!==v?(j=(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[v,k,A]}),t[56]=k,t[57]=A,t[58]=v,t[59]=j):j=t[59];let N=a.refreshing?`animate-spin`:void 0,P;t[60]===N?P=t[61]:(P=(0,K.jsx)(U,{className:N}),t[60]=N,t[61]=P);let F=a.refreshing?`Refreshing`:`Refresh`,I;t[62]!==a.refresh||t[63]!==a.refreshing||t[64]!==P||t[65]!==F?(I=(0,K.jsxs)(W,{size:`sm`,variant:`outline`,onClick:a.refresh,disabled:a.refreshing,children:[P,F]}),t[62]=a.refresh,t[63]=a.refreshing,t[64]=P,t[65]=F,t[66]=I):I=t[66];let R;t[67]!==j||t[68]!==I?(R=(0,K.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[j,I]}),t[67]=j,t[68]=I,t[69]=R):R=t[69];let z;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,K.jsx)(`p`,{className:`max-w-3xl text-sm leading-relaxed text-muted-foreground`,children:`Provider-recorded usage from Claude Code and Codex transcripts on the selected machines. This includes sessions run outside Ryco and is intentionally not attributed to projects.`}),t[70]=z):z=t[70];let V;t[71]!==d||t[72]!==p||t[73]!==u||t[74]!==c.buckets.length||t[75]!==_||t[76]!==o||t[77]!==r||t[78]!==f||t[79]!==n||t[80]!==l.distinctSessionCount||t[81]!==l.estimatedCacheSavingsUsd||t[82]!==l.estimatedCostUsd||t[83]!==l.reasoningTokens||t[84]!==l.responseCount||t[85]!==l.totalTokens?(V=c.buckets.length===0?(0,K.jsx)(O,{icon:te,title:_?`No usage in this range`:`No transcript sources found`,description:_?`The transcript sources were found, but no provider-recorded usage matched these filters.`:`Claude Code and Codex transcript directories were not found on the selected environments.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(`section`,{className:`grid overflow-hidden rounded-2xl border border-border/75 bg-card shadow-sm/5 lg:grid-cols-[minmax(18rem,0.72fr)_minmax(0,1.55fr)]`,children:[(0,K.jsxs)(`div`,{className:`flex min-h-80 flex-col justify-between border-b border-border/70 p-6 lg:border-r lg:border-b-0 lg:p-8`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsxs)(`div`,{className:`flex items-center gap-2 text-[11px] font-semibold tracking-[0.12em] text-muted-foreground uppercase`,children:[(0,K.jsx)(ve,{className:`size-3.5`}),` Raw API-equivalent cost`]}),(0,K.jsx)(`div`,{className:`mt-5 text-4xl font-semibold tracking-[-0.045em] tabular-nums sm:text-5xl`,children:Z(l.estimatedCostUsd)}),(0,K.jsx)(`p`,{className:`mt-3 max-w-sm text-xs leading-relaxed text-muted-foreground`,children:`Estimate based on base API rates. Subscription, credits, batch, negotiated, and provider billing may differ.`})]}),(0,K.jsxs)(`div`,{className:`space-y-4 border-t border-border/65 pt-5`,children:[(0,K.jsx)(et,{label:`Priced coverage`,value:`${Math.round(f*100)}% of tokens`}),(0,K.jsx)(et,{label:`Estimated cache savings`,value:Z(l.estimatedCacheSavingsUsd)}),(0,K.jsx)(et,{label:`Provider-recorded tokens`,value:L(l.totalTokens)})]})]}),(0,K.jsxs)(`div`,{className:`min-w-0 p-4 sm:p-6`,children:[(0,K.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3 px-1`,children:[(0,K.jsxs)(`div`,{children:[(0,K.jsx)(`h2`,{className:`text-sm font-semibold`,children:`Usage over time`}),(0,K.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`Daily values in `,o.timeZone]})]}),(0,K.jsx)(Ye,{search:n,onSearchChange:r})]}),(0,K.jsx)(Ze,{data:u,metric:n.usageMetric}),(0,K.jsxs)(`div`,{className:`flex items-center justify-end gap-4 px-2 text-[11px] text-muted-foreground`,children:[(0,K.jsx)(tt,{color:X.claude,label:`Claude`}),(0,K.jsx)(tt,{color:X.codex,label:`Codex`})]})]})]}),(0,K.jsxs)(`div`,{className:`grid grid-cols-2 border-y border-border/65 md:grid-cols-5`,children:[(0,K.jsx)(Q,{label:`Total tokens`,value:y(l.totalTokens)}),(0,K.jsx)(Q,{label:`Sessions`,value:L(l.distinctSessionCount)}),(0,K.jsx)(Q,{label:`Responses`,value:L(l.responseCount)}),(0,K.jsx)(Q,{label:`Cache read`,value:`${Math.round(p*100)}%`}),(0,K.jsx)(Q,{label:`Reasoning`,value:y(l.reasoningTokens),detail:`included in output`})]}),(0,K.jsx)(M,{title:`Breakdown`,icon:te,action:(0,K.jsx)(Xe,{search:n,onSearchChange:r}),bodyClassName:`overflow-hidden`,children:(0,K.jsx)(`div`,{className:`divide-y divide-border/60`,children:d.slice(0,20).map(e=>(0,K.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-5 px-4 py-3.5 sm:px-5`,children:[(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsx)(`p`,{className:`truncate text-sm font-medium`,children:n.usageBreakdown===`model`?C(e.label):S(e.label)}),(0,K.jsx)(`p`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:e.provider?m(e.provider):`${e.responses} responses`})]}),(0,K.jsxs)(`div`,{className:`text-right`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium tabular-nums`,children:y(e.tokens)}),(0,K.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:`tokens`})]}),(0,K.jsxs)(`div`,{className:`w-24 text-right`,children:[(0,K.jsx)(`p`,{className:`text-sm font-medium tabular-nums`,children:Z(e.costUsd)}),(0,K.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:e.unpricedTokens>0?`${y(e.unpricedTokens)} unpriced`:`estimated`})]})]},e.key))})}),(0,K.jsx)(nt,{summary:o})]}),t[71]=d,t[72]=p,t[73]=u,t[74]=c.buckets.length,t[75]=_,t[76]=o,t[77]=r,t[78]=f,t[79]=n,t[80]=l.distinctSessionCount,t[81]=l.estimatedCacheSavingsUsd,t[82]=l.estimatedCostUsd,t[83]=l.reasoningTokens,t[84]=l.responseCount,t[85]=l.totalTokens,t[86]=V):V=t[86];let H;return t[87]!==R||t[88]!==V?(H=(0,K.jsxs)(`div`,{className:`space-y-8`,children:[R,z,V]}),t[87]=R,t[88]=V,t[89]=H):H=t[89],H}function Ue(e){return(0,K.jsx)(fe,{value:e.environmentId,children:e.label},e.environmentId)}function We(e){return e.included&&e.status!==`not-found`}function Ge(e){return e.label}function Ke(e){return e.status===`failed`||e.status===`unavailable`||e.status===`stale-contract`}function qe(e){let t=(0,G.c)(3),{search:n,onSearchChange:r}=e,i;return t[0]!==r||t[1]!==n?(i=(0,K.jsx)(`div`,{className:`inline-flex rounded-lg border bg-card p-0.5`,children:[`7d`,`30d`,`90d`,`all`].map(e=>(0,K.jsx)(`button`,{type:`button`,onClick:()=>r({...n,range:e}),className:c(`h-7 rounded-md px-2.5 text-xs font-medium transition-colors`,n.range===e?`bg-accent text-foreground`:`text-muted-foreground hover:text-foreground`),children:e===`all`?`All`:e.toUpperCase()},e))}),t[0]=r,t[1]=n,t[2]=i):i=t[2],i}function Je(e){let t=(0,G.c)(3),{search:n,onSearchChange:r}=e,i;if(t[0]!==r||t[1]!==n){let e=new Set(n.providers??[`claude`,`codex`]);i=(0,K.jsx)(`div`,{className:`inline-flex rounded-lg border bg-card p-0.5`,children:[`claude`,`codex`].map(t=>(0,K.jsxs)(`button`,{type:`button`,"aria-pressed":e.has(t),onClick:()=>{let i=new Set(e);i.has(t)&&i.size>1?i.delete(t):i.add(t);let a=[...i].toSorted();r({...n,...a.length===2?{providers:void 0}:{providers:a}})},className:c(`inline-flex h-7 items-center rounded-md px-2.5 text-xs font-medium capitalize transition-colors`,e.has(t)?`bg-accent text-foreground`:`text-muted-foreground hover:text-foreground`),children:[(0,K.jsx)(`span`,{"aria-hidden":!0,className:`mr-1.5 inline-block size-1.5 rounded-full`,style:{backgroundColor:X[t]}}),t]},t))}),t[0]=r,t[1]=n,t[2]=i}else i=t[2];return i}function Ye(e){let t=(0,G.c)(4),{search:n,onSearchChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=[`cost`,`tokens`],t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,K.jsx)(`div`,{className:`inline-flex rounded-md bg-muted p-0.5`,children:i.map(e=>(0,K.jsx)(`button`,{type:`button`,onClick:()=>r({...n,usageMetric:e}),className:c(`h-6 rounded-sm px-2 text-[11px] font-medium capitalize`,n.usageMetric===e?`bg-background text-foreground shadow-xs`:`text-muted-foreground`),children:e},e))}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Xe(e){let t=(0,G.c)(4),{search:n,onSearchChange:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=[`model`,`day`],t[0]=i):i=t[0];let a;return t[1]!==r||t[2]!==n?(a=(0,K.jsx)(`div`,{className:`inline-flex items-center gap-1 text-[11px]`,children:i.map(e=>(0,K.jsx)(`button`,{type:`button`,onClick:()=>r({...n,usageBreakdown:e}),className:c(`rounded-md px-2 py-1 capitalize`,n.usageBreakdown===e?`bg-accent text-foreground`:`text-muted-foreground`),children:e},e))}),t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function Ze(e){let t=(0,G.c)(21),{data:n,metric:r}=e,i=r===`cost`?`Cost`:`Tokens`,a;t[0]===n?a=t[1]:(a=[...n],t[0]=n,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o={left:4,right:10,top:18,bottom:0},t[2]=o):o=t[2];let s;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,K.jsxs)(`linearGradient`,{id:`usageClaude`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,K.jsx)(`stop`,{offset:`5%`,stopColor:X.claude,stopOpacity:.3}),(0,K.jsx)(`stop`,{offset:`95%`,stopColor:X.claude,stopOpacity:.02})]}),t[3]=s):s=t[3];let c,l,u;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,K.jsxs)(`defs`,{children:[s,(0,K.jsxs)(`linearGradient`,{id:`usageCodex`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,K.jsx)(`stop`,{offset:`5%`,stopColor:X.codex,stopOpacity:.18}),(0,K.jsx)(`stop`,{offset:`95%`,stopColor:X.codex,stopOpacity:.01})]})]}),l=(0,K.jsx)(x,{vertical:!1,strokeDasharray:`3 5`}),u=(0,K.jsx)(g,{dataKey:`date`,tickLine:!1,axisLine:!1,minTickGap:30,tickFormatter:$e}),t[4]=c,t[5]=l,t[6]=u):(c=t[4],l=t[5],u=t[6]);let f;t[7]===r?f=t[8]:(f=(0,K.jsx)(h,{tickLine:!1,axisLine:!1,width:44,tickFormatter:e=>r===`cost`?`$${Number(e).toFixed(+(Number(e)<10))}`:y(Number(e))}),t[7]=r,t[8]=f);let p;t[9]===r?p=t[10]:(p=(0,K.jsx)(k,{content:(0,K.jsx)(v,{labelFormatter:Qe,formatter:e=>r===`cost`?Ve.format(Number(e)||0):L(Number(e)||0)})}),t[9]=r,t[10]=p);let m=`claude${i}`,S;t[11]===m?S=t[12]:(S=(0,K.jsx)(_,{dataKey:m,name:`Claude`,type:`monotone`,stroke:X.claude,fill:`url(#usageClaude)`,strokeWidth:1.75}),t[11]=m,t[12]=S);let C=`codex${i}`,w;t[13]===C?w=t[14]:(w=(0,K.jsx)(_,{dataKey:C,name:`Codex`,type:`monotone`,stroke:X.codex,fill:`url(#usageCodex)`,strokeWidth:1.75}),t[13]=C,t[14]=w);let T;return t[15]!==a||t[16]!==S||t[17]!==w||t[18]!==f||t[19]!==p?(T=(0,K.jsx)(d,{className:`h-[300px]`,children:(0,K.jsxs)(b,{data:a,margin:o,children:[c,l,u,f,p,S,w]})}),t[15]=a,t[16]=S,t[17]=w,t[18]=f,t[19]=p,t[20]=T):T=t[20],T}function Qe(e){return S(String(e))}function $e(e){return S(String(e))}function et(e){let t=(0,G.c)(7),{label:n,value:r}=e,i;t[0]===n?i=t[1]:(i=(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:n}),t[0]=n,t[1]=i);let a;t[2]===r?a=t[3]:(a=(0,K.jsx)(`span`,{className:`font-medium tabular-nums`,children:r}),t[2]=r,t[3]=a);let o;return t[4]!==i||t[5]!==a?(o=(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-4 text-xs`,children:[i,a]}),t[4]=i,t[5]=a,t[6]=o):o=t[6],o}function Q(e){let t=(0,G.c)(10),{label:n,value:r,detail:i}=e,a;t[0]===n?a=t[1]:(a=(0,K.jsx)(`p`,{className:`text-[10px] font-semibold tracking-[0.1em] text-muted-foreground uppercase`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=(0,K.jsx)(`p`,{className:`mt-2 text-xl font-semibold tracking-tight tabular-nums`,children:r}),t[2]=r,t[3]=o);let s;t[4]===i?s=t[5]:(s=i?(0,K.jsx)(`p`,{className:`mt-1 text-[10px] text-muted-foreground`,children:i}):null,t[4]=i,t[5]=s);let c;return t[6]!==a||t[7]!==o||t[8]!==s?(c=(0,K.jsxs)(`div`,{className:`border-r border-border/60 px-4 py-5 last:border-r-0`,children:[a,o,s]}),t[6]=a,t[7]=o,t[8]=s,t[9]=c):c=t[9],c}function tt(e){let t=(0,G.c)(5),{color:n,label:r}=e,i;t[0]===n?i=t[1]:(i=(0,K.jsx)(`span`,{className:`size-2 rounded-sm`,style:{backgroundColor:n}}),t[0]=n,t[1]=i);let a;return t[2]!==r||t[3]!==i?(a=(0,K.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[i,r]}),t[2]=r,t[3]=i,t[4]=a):a=t[4],a}function nt(e){let t=(0,G.c)(43),{summary:n}=e,r,i,a,o,s,c,l,u,d,f,m,h,g,_;if(t[0]!==n.duplicateSourceCount||t[1]!==n.environmentOnlyDeduplicationWarning||t[2]!==n.environments||t[3]!==n.sources){let e=n.sources.filter(mt),v=e.filter(pt),y=n.environments.filter(ft),b=n.environments.flatMap(dt),x=b.length===0?`Unavailable`:b.every(ut)?`Live`:b.every(lt)?`Cached`:b.every(ct)?`Unavailable`:`Mixed`,S=n.environments.flatMap(st).toSorted().at(-1),C=e.map(ot).toSorted().at(-1);i=M,_=`Coverage & estimates`,o=_e,s=`p-5`,c=y.length>0?(0,K.jsxs)(`div`,{className:`mb-5 flex gap-2 rounded-lg border border-warning/30 bg-warning/8 px-3 py-2.5 text-xs text-muted-foreground`,children:[(0,K.jsx)(B,{className:`mt-0.5 size-3.5 shrink-0 text-warning`}),(0,K.jsxs)(`span`,{children:[`No usage was included from`,` `,y.map(at).join(`, `),`.`]})]}):null,f=`grid gap-5 md:grid-cols-2 xl:grid-cols-4`;let w=`${e.length} included`,T=n.duplicateSourceCount>0?`${n.duplicateSourceCount} duplicate source excluded`:`No physical duplicates detected`;t[18]!==w||t[19]!==T?(m=(0,K.jsx)($,{icon:ye,label:`Transcript sources`,value:w,detail:T}),t[18]=w,t[19]=T,t[20]=m):m=t[20],h=(0,K.jsx)($,{icon:ae,label:`Last scan`,value:C?p(C):`Not scanned`,detail:`${e.reduce(it,0)} cached files reused`});let E=S?`Rates fetched ${p(S)}`:`Token totals remain available without rates`;t[21]!==x||t[22]!==E?(g=(0,K.jsx)($,{icon:ve,label:`Pricing`,value:x,detail:E}),t[21]=x,t[22]=E,t[23]=g):g=t[23],r=$,a=B,l=`Coverage state`,u=v.length===0?`Complete`:`${v.length} source notice${v.length===1?``:`s`}`,d=n.environmentOnlyDeduplicationWarning?`Some sources could only be scoped per environment`:`${e.reduce(rt,0)} malformed lines skipped`,t[0]=n.duplicateSourceCount,t[1]=n.environmentOnlyDeduplicationWarning,t[2]=n.environments,t[3]=n.sources,t[4]=r,t[5]=i,t[6]=a,t[7]=o,t[8]=s,t[9]=c,t[10]=l,t[11]=u,t[12]=d,t[13]=f,t[14]=m,t[15]=h,t[16]=g,t[17]=_}else r=t[4],i=t[5],a=t[6],o=t[7],s=t[8],c=t[9],l=t[10],u=t[11],d=t[12],f=t[13],m=t[14],h=t[15],g=t[16],_=t[17];let v;t[24]!==r||t[25]!==a||t[26]!==l||t[27]!==u||t[28]!==d?(v=(0,K.jsx)(r,{icon:a,label:l,value:u,detail:d}),t[24]=r,t[25]=a,t[26]=l,t[27]=u,t[28]=d,t[29]=v):v=t[29];let y;t[30]!==v||t[31]!==f||t[32]!==m||t[33]!==h||t[34]!==g?(y=(0,K.jsxs)(`div`,{className:f,children:[m,h,g,v]}),t[30]=v,t[31]=f,t[32]=m,t[33]=h,t[34]=g,t[35]=y):y=t[35];let b;return t[36]!==i||t[37]!==o||t[38]!==s||t[39]!==c||t[40]!==y||t[41]!==_?(b=(0,K.jsxs)(i,{title:_,icon:o,bodyClassName:s,children:[c,y]}),t[36]=i,t[37]=o,t[38]=s,t[39]=c,t[40]=y,t[41]=_,t[42]=b):b=t[42],b}function rt(e,t){return e+t.malformedLineCount}function it(e,t){return e+t.reusedCacheFileCount}function at(e){return e.label}function ot(e){return e.scanFinishedAt}function st(e){let t=e.summary?.pricing.fetchedAt;return t===void 0?[]:[t]}function ct(e){return e===`unavailable`}function lt(e){return e===`cached`}function ut(e){return e===`live`}function dt(e){return e.summary===void 0?[]:[e.summary.pricing.state]}function ft(e){return e.status===`failed`||e.status===`unavailable`||e.status===`stale-contract`}function pt(e){return e.status!==`complete`}function mt(e){return e.included}function $(e){let t=(0,G.c)(15),{icon:n,label:r,value:i,detail:a}=e,o;t[0]===n?o=t[1]:(o=(0,K.jsx)(`div`,{className:`mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground`,children:(0,K.jsx)(n,{className:`size-4`})}),t[0]=n,t[1]=o);let s;t[2]===r?s=t[3]:(s=(0,K.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:r}),t[2]=r,t[3]=s);let c;t[4]===i?c=t[5]:(c=(0,K.jsx)(`p`,{className:`mt-1 text-sm font-medium`,children:i}),t[4]=i,t[5]=c);let l;t[6]===a?l=t[7]:(l=(0,K.jsx)(`p`,{className:`mt-1 text-[11px] leading-relaxed text-muted-foreground`,children:a}),t[6]=a,t[7]=l);let u;t[8]!==s||t[9]!==c||t[10]!==l?(u=(0,K.jsxs)(`div`,{children:[s,c,l]}),t[8]=s,t[9]=c,t[10]=l,t[11]=u):u=t[11];let d;return t[12]!==o||t[13]!==u?(d=(0,K.jsxs)(`div`,{className:`flex gap-3`,children:[o,u]}),t[12]=o,t[13]=u,t[14]=d):d=t[14],d}function ht(e){let t=(0,G.c)(25),{search:n,onSearchChange:i}=e,a=n.view===`usage`?r.serverGetUsageSummary:r.serverGetStatistics,o=le(a),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,K.jsxs)(`div`,{className:`min-w-0`,children:[(0,K.jsx)(`h1`,{className:`truncate text-sm font-semibold tracking-tight`,children:`Statistics`}),(0,K.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:`Usage and work signals`})]}),t[0]=s):s=t[0];let l;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(l=[`usage`,`activity`],t[1]=l):l=t[1];let d;t[2]!==i||t[3]!==n?(d=(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center gap-5`,children:[s,(0,K.jsx)(`div`,{className:`inline-flex rounded-lg bg-muted/75 p-0.5`,children:l.map(e=>{let t=e===`usage`?z:u;return(0,K.jsxs)(`button`,{type:`button`,onClick:()=>i({...n,view:e}),className:c(`inline-flex h-8 items-center gap-1.5 rounded-md px-3 text-xs font-medium capitalize transition-colors`,n.view===e?`bg-background text-foreground shadow-xs`:`text-muted-foreground hover:text-foreground`),children:[(0,K.jsx)(t,{className:`size-3.5`}),` `,e]},e)})})]}),t[2]=i,t[3]=n,t[4]=d):d=t[4];let f;t[5]===n.range?f=t[6]:(f=n.range===`all`?`All available history`:`Last ${n.range.slice(0,-1)} days`,t[5]=n.range,t[6]=f);let p;t[7]===f?p=t[8]:(p=(0,K.jsx)(`p`,{className:`text-xs font-medium`,children:f}),t[7]=f,t[8]=p);let m=n.view===`usage`?`Local calendar window`:`UTC activity window`,h;t[9]===m?h=t[10]:(h=(0,K.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:m}),t[9]=m,t[10]=h);let g;t[11]!==p||t[12]!==h?(g=(0,K.jsxs)(`div`,{className:`hidden text-right sm:block`,children:[p,h]}),t[11]=p,t[12]=h,t[13]=g):g=t[13];let _;t[14]!==d||t[15]!==g?(_=(0,K.jsxs)(`header`,{className:`flex min-h-14 shrink-0 items-center border-b border-border/75 bg-background/90 px-5 backdrop-blur-sm sm:px-7`,children:[d,g]}),t[14]=d,t[15]=g,t[16]=_):_=t[16];let v;t[17]!==o.allowed||t[18]!==o.reason||t[19]!==i||t[20]!==n?(v=(0,K.jsx)(ce,{className:`min-h-0 flex-1`,children:(0,K.jsx)(`div`,{className:`mx-auto w-full max-w-[1480px] px-5 py-7 sm:px-8 sm:py-9 lg:px-10`,children:o.allowed?n.view===`usage`?(0,K.jsx)(He,{search:n,onSearchChange:i}):(0,K.jsx)(be,{search:n,onSearchChange:i}):(0,K.jsx)(O,{icon:ie,title:`Statistics aren’t available for this session`,description:o.reason??`Owner access is required.`})})}),t[17]=o.allowed,t[18]=o.reason,t[19]=i,t[20]=n,t[21]=v):v=t[21];let y;return t[22]!==v||t[23]!==_?(y=(0,K.jsx)(ue,{className:`h-dvh min-h-0 overflow-hidden overscroll-y-none bg-background text-foreground`,children:(0,K.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden`,children:[_,v]})}),t[22]=v,t[23]=_,t[24]=y):y=t[24],y}export{ht as StatisticsPage};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{f as r}from"./utils-c6dglOTK.js";import{f as i}from"./useRenderElement-DchFnsR8.js";import{t as a}from"./activity-1CkdQG5u.js";import{C as o,D as s,E as c,N as l,O as u,T as d,_ as f,a as ee,b as te,c as ne,d as re,f as ie,g as ae,h as oe,i as se,k as ce,l as p,m,n as le,o as ue,p as h,r as de,s as fe,t as pe,u as me,v as he,w as g,x as ge,y as _e}from"./useStatistics-B2NNfOqV.js";import{t as ve}from"./chart-column-Dw6ACmXM.js";import{t as ye}from"./clock-nNA05brA.js";import{n as be,t as xe}from"./layers-BYi0v17h.js";import{t as Se}from"./git-branch-BKr-Ij4u.js";import{t as Ce}from"./messages-square-DiMgWzoq.js";import{t as we}from"./refresh-cw-DopCMrtR.js";import{t as Te}from"./triangle-alert-RL_T3KLo.js";import{t as Ee}from"./button-BT6cGe5S.js";import{n as _}from"./settingsLayout-B8os-EWr.js";var De=i(`chart-pie`,[[`path`,{d:`M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z`,key:`pzmjnu`}],[`path`,{d:`M21.21 15.89A10 10 0 1 1 8 2.83`,key:`k2fpak`}]]),Oe=i(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),ke=i(`dollar-sign`,[[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`22`,key:`7eqyqh`}],[`path`,{d:`M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6`,key:`1b0p4s`}]]),Ae=e(t(),1),v=n(),y=r();function je(e){let t=(0,v.c)(10),{models:n}=e;if(n.length===0){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,y.jsx)(`div`,{className:`px-4 py-8 text-center text-muted-foreground text-xs`,children:`No model usage yet.`}),t[0]=e):e=t[0],e}let r;t[1]===n?r=t[2]:(r=n.reduce(b,0)||1,t[1]=n,t[2]=r);let i=r,a;if(t[3]!==i||t[4]!==n){let e;t[6]===i?e=t[7]:(e=(e,t)=>{let n=l(t),r=Math.max(2,e.totalTokens/i*100);return(0,y.jsxs)(`li`,{className:`flex items-center gap-3 px-4 py-3`,children:[(0,y.jsx)(`span`,{className:`w-4 text-center font-medium text-[11px] text-muted-foreground tabular-nums`,children:t+1}),(0,y.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,y.jsxs)(`div`,{className:`flex items-baseline justify-between gap-2`,children:[(0,y.jsx)(`span`,{className:`truncate font-medium text-[13px] text-foreground`,children:d(e.model)}),(0,y.jsx)(`span`,{className:`shrink-0 font-medium text-foreground text-xs tabular-nums`,children:u(e.totalTokens)})]}),(0,y.jsx)(`div`,{className:`mt-1.5 h-1.5 w-full overflow-hidden rounded-full bg-muted`,children:(0,y.jsx)(`div`,{className:`h-full rounded-full transition-[width] duration-500`,style:{width:`${r}%`,backgroundColor:n}})}),(0,y.jsxs)(`div`,{className:`mt-1 flex items-center justify-between text-[11px] text-muted-foreground`,children:[(0,y.jsx)(`span`,{className:`truncate`,children:c(e.provider)}),(0,y.jsx)(`span`,{className:`shrink-0 tabular-nums`,children:e.costUsd===null?`—`:`~${ce(e.costUsd)}`})]})]})]},`${e.provider??`unknown`}:${e.model}`)},t[6]=i,t[7]=e),a=n.map(e),t[3]=i,t[4]=n,t[5]=a}else a=t[5];let o;return t[8]===a?o=t[9]:(o=(0,y.jsx)(`ol`,{className:`divide-y divide-border/50`,children:a}),t[8]=a,t[9]=o),o}function b(e,t){return Math.max(e,t.totalTokens)}function x(){let e=(0,v.c)(92),{snapshot:t,loading:n,error:r,refresh:i,refreshing:l}=pe(),b;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(b={range:`30d`,projectId:null,model:null,provider:null},e[0]=b):b=e[0];let[x,Ie]=(0,Ae.useState)(b),w;bb0:{if(!t){w=null;break bb0}let n,r,i,a,o,s,c,l;if(e[1]!==x||e[2]!==t){let u=ne(t,x),d=ue(t),f=le(u),te=f.reduce(Fe,0);n=re(u),r=me(t,x),i=f,a=te,o=se(u),s=de(u,d),c=fe(t,u,x.range),l=ee(f),e[1]=x,e[2]=t,e[3]=n,e[4]=r,e[5]=i,e[6]=a,e[7]=o,e[8]=s,e[9]=c,e[10]=l}else n=e[3],r=e[4],i=e[5],a=e[6],o=e[7],s=e[8],c=e[9],l=e[10];let u;e[11]!==n||e[12]!==r||e[13]!==i||e[14]!==a||e[15]!==o||e[16]!==s||e[17]!==c||e[18]!==l?(u={totals:n,previous:r,models:i,totalsAllModels:a,providers:o,projects:s,series:c,cost:l},e[11]=n,e[12]=r,e[13]=i,e[14]=a,e[15]=o,e[16]=s,e[17]=c,e[18]=l,e[19]=u):u=e[19],w=u}let Le=w;if(n&&!t){let t;return e[20]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsx)(_,{children:(0,y.jsx)(oe,{})}),e[20]=t):t=e[20],t}if(r&&!t){let t;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,y.jsx)(we,{}),e[21]=t):t=e[21];let n;e[22]===i?n=e[23]:(n=(0,y.jsxs)(Ee,{size:`sm`,variant:`outline`,onClick:i,children:[t,` Try again`]}),e[22]=i,e[23]=n);let a;return e[24]!==r||e[25]!==n?(a=(0,y.jsx)(_,{children:(0,y.jsx)(ae,{icon:Te,title:`Couldn’t load statistics`,description:r,action:n})}),e[24]=r,e[25]=n,e[26]=a):a=e[26],a}if(!t||!Le)return null;let T=t.dailyBuckets.length>0,{totals:E,previous:D,models:O,totalsAllModels:k,providers:A,projects:j,series:M,cost:N}=Le,P=O[0],F;e[27]!==P||e[28]!==k?(F=P&&k>0?Math.round(P.totalTokens/k*100):0,e[27]=P,e[28]=k,e[29]=F):F=e[29];let I=F,L;e[30]===M?L=e[31]:(L=M.map(Pe),e[30]=M,e[31]=L);let R=L,z;e[32]===M?z=e[33]:(z=M.map(Ne),e[32]=M,e[33]=z);let Re=z,B=Math.max(0,E.totalTokens-E.inputTokens-E.outputTokens),V;e[34]!==E.inputTokens||e[35]!==E.outputTokens||e[36]!==B?(V=B>0?`${u(E.inputTokens)} in · ${u(E.outputTokens)} out · ${u(B)} other`:`${u(E.inputTokens)} in · ${u(E.outputTokens)} out`,e[34]=E.inputTokens,e[35]=E.outputTokens,e[36]=B,e[37]=V):V=e[37];let ze=V,H;e[38]===M?H=e[39]:(H=M.some(Me),e[38]=M,e[39]=H);let Be=H,Ve=t.tokenAttribution===`thread-cumulative`?`Token figures use cumulative thread snapshots when providers or older sessions do not expose per-turn deltas.`:t.tokenAttribution===`mixed`?`Token figures combine exact per-turn deltas where available with cumulative snapshots for older or provider-limited sessions.`:`Token figures use exact per-turn deltas where providers report them.`,U;e[40]===Symbol.for(`react.memo_cache_sentinel`)?(U=(0,y.jsx)(`h1`,{className:`font-semibold text-foreground text-lg`,children:`Statistics`}),e[40]=U):U=e[40];let W;e[41]===t.generatedAt?W=e[42]:(W=s(t.generatedAt),e[41]=t.generatedAt,e[42]=W);let G;e[43]===W?G=e[44]:(G=(0,y.jsxs)(`div`,{className:`space-y-0.5`,children:[U,(0,y.jsxs)(`p`,{className:`text-muted-foreground text-xs`,children:[`Usage across your projects · as of `,W]})]}),e[43]=W,e[44]=G);let K=l?`animate-spin`:void 0,q;e[45]===K?q=e[46]:(q=(0,y.jsx)(we,{className:K}),e[45]=K,e[46]=q);let J;e[47]!==i||e[48]!==l||e[49]!==q?(J=(0,y.jsxs)(Ee,{size:`xs`,variant:`outline`,onClick:i,disabled:l,"aria-label":`Refresh statistics`,children:[q,`Refresh`]}),e[47]=i,e[48]=l,e[49]=q,e[50]=J):J=e[50];let Y;e[51]!==J||e[52]!==G?(Y=(0,y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[G,J]}),e[51]=J,e[52]=G,e[53]=Y):Y=e[53];let X;e[54]!==x||e[55]!==t.models||e[56]!==t.projects?(X=(0,y.jsx)(ie,{filter:x,onChange:Ie,projects:t.projects,models:t.models}),e[54]=x,e[55]=t.models,e[56]=t.projects,e[57]=X):X=e[57];let Z;e[58]!==Y||e[59]!==X?(Z=(0,y.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[Y,X]}),e[58]=Y,e[59]=X,e[60]=Z):Z=e[60];let Q;e[61]!==Re||e[62]!==Ve||e[63]!==N||e[64]!==T||e[65]!==Be||e[66]!==O||e[67]!==D?.activeMs||e[68]!==D?.threadsCreated||e[69]!==D?.totalTokens||e[70]!==j||e[71]!==A||e[72]!==M||e[73]!==t.worktrees||e[74]!==R||e[75]!==ze||e[76]!==P||e[77]!==I||e[78]!==E.activeMs||e[79]!==E.additions||e[80]!==E.commits||e[81]!==E.deletions||e[82]!==E.filesChanged||e[83]!==E.pushes||e[84]!==E.threadsCreated||e[85]!==E.toolUses||e[86]!==E.totalTokens||e[87]!==E.turns?(Q=T?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-5`,children:[(0,y.jsx)(m,{label:`Total tokens`,icon:Oe,value:u(E.totalTokens),sub:ze,delta:p(E.totalTokens,D?.totalTokens),sparkline:R}),(0,y.jsx)(m,{label:`Est. cost`,icon:ke,value:`~${ce(N.usd)}`,sub:N.hasUnpriced?`excludes unpriced models`:`estimated spend`}),(0,y.jsx)(m,{label:`Most used model`,icon:xe,value:(0,y.jsx)(`span`,{className:`block max-w-full truncate text-lg`,title:P?d(P.model):void 0,children:P?d(P.model):`—`}),sub:P?`${c(P.provider)} · ${I}% of tokens`:`no usage in range`}),(0,y.jsx)(m,{label:`Chats`,icon:Ce,value:g(E.threadsCreated),sub:`threads started`,delta:p(E.threadsCreated,D?.threadsCreated)}),(0,y.jsx)(m,{label:`Active time`,icon:ye,value:o(E.activeMs),sub:`${g(E.turns)} turns`,delta:p(E.activeMs,D?.activeMs),sparkline:Re})]}),(0,y.jsxs)(h,{title:`Token usage over time`,icon:ve,bodyClassName:`p-4`,children:[(0,y.jsx)(te,{data:M}),(0,y.jsxs)(`div`,{className:`mt-2 flex items-center gap-4 px-1 text-[11px] text-muted-foreground`,children:[(0,y.jsx)(S,{colorIndex:0,label:`Input`}),(0,y.jsx)(S,{colorIndex:1,label:`Output`}),Be?(0,y.jsx)(S,{colorIndex:2,label:`Other`}):null]})]}),(0,y.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,y.jsx)(h,{title:`Models`,icon:xe,bodyClassName:`overflow-hidden`,action:(0,y.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[O.length,` total`]}),children:(0,y.jsx)(je,{models:O})}),(0,y.jsx)(h,{title:`Tokens by provider`,icon:De,bodyClassName:`p-4`,children:(0,y.jsx)(_e,{data:A})})]}),(0,y.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,y.jsx)(h,{title:`Tokens by project`,icon:ve,bodyClassName:`p-4`,children:(0,y.jsx)(he,{data:j})}),(0,y.jsxs)(h,{title:`Activity`,icon:a,bodyClassName:`p-4`,children:[(0,y.jsx)(ge,{points:M,metric:`turns`}),(0,y.jsx)(`p`,{className:`mt-3 text-[11px] text-muted-foreground`,children:`Turns per day`})]})]}),(0,y.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-2`,children:[(0,y.jsxs)(h,{title:`Code changes`,icon:be,bodyClassName:`p-4`,children:[(0,y.jsxs)(`div`,{className:`mb-3 flex items-center gap-4 text-sm`,children:[(0,y.jsx)(C,{label:`Files`,value:g(E.filesChanged)}),(0,y.jsx)(C,{label:`Added`,value:`+${g(E.additions)}`,tone:`success`}),(0,y.jsx)(C,{label:`Removed`,value:`−${g(E.deletions)}`,tone:`destructive`})]}),(0,y.jsx)(f,{data:M})]}),(0,y.jsxs)(h,{title:`Source control`,icon:Se,bodyClassName:`p-4`,children:[(0,y.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,y.jsx)(C,{label:`Worktrees`,value:g(t.worktrees.created)}),(0,y.jsx)(C,{label:`Active`,value:g(t.worktrees.active)}),(0,y.jsx)(C,{label:`Open PRs`,value:g(t.worktrees.openPrs)}),(0,y.jsx)(C,{label:`Tool uses`,value:g(E.toolUses)})]}),E.commits+E.pushes>0?(0,y.jsxs)(`div`,{className:`mt-3 grid grid-cols-2 gap-3 border-border/60 border-t pt-3`,children:[(0,y.jsx)(C,{label:`Commits`,value:g(E.commits)}),(0,y.jsx)(C,{label:`Pushes`,value:g(E.pushes)})]}):(0,y.jsx)(`p`,{className:`mt-3 border-border/60 border-t pt-3 text-[11px] text-muted-foreground`,children:`Commit & push counts aren’t recorded yet.`})]})]}),(0,y.jsxs)(`p`,{className:`px-1 text-[11px] text-muted-foreground/80`,children:[Ve,` Costs are rough estimates from a built-in price table and exclude subscription-billed or breakdown-less usage.`]})]}):(0,y.jsx)(ae,{icon:ve,title:`No activity yet`,description:`Once you start chatting with agents, your token usage, models, and code changes will show up here.`}),e[61]=Re,e[62]=Ve,e[63]=N,e[64]=T,e[65]=Be,e[66]=O,e[67]=D?.activeMs,e[68]=D?.threadsCreated,e[69]=D?.totalTokens,e[70]=j,e[71]=A,e[72]=M,e[73]=t.worktrees,e[74]=R,e[75]=ze,e[76]=P,e[77]=I,e[78]=E.activeMs,e[79]=E.additions,e[80]=E.commits,e[81]=E.deletions,e[82]=E.filesChanged,e[83]=E.pushes,e[84]=E.threadsCreated,e[85]=E.toolUses,e[86]=E.totalTokens,e[87]=E.turns,e[88]=Q):Q=e[88];let $;return e[89]!==Z||e[90]!==Q?($=(0,y.jsxs)(_,{children:[Z,Q]}),e[89]=Z,e[90]=Q,e[91]=$):$=e[91],$}function Me(e){return e.uncategorizedTokens>0}function Ne(e){return e.activeMs}function Pe(e){return e.totalTokens}function Fe(e,t){return e+t.totalTokens}function S(e){let t=(0,v.c)(7),{colorIndex:n,label:r}=e,i;t[0]===n?i=t[1]:(i=l(n),t[0]=n,t[1]=i);let a;t[2]===i?a=t[3]:(a=(0,y.jsx)(`span`,{className:`size-2.5 rounded-[3px]`,style:{backgroundColor:i}}),t[2]=i,t[3]=a);let o;return t[4]!==r||t[5]!==a?(o=(0,y.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[a,r]}),t[4]=r,t[5]=a,t[6]=o):o=t[6],o}function C(e){let t=(0,v.c)(8),{label:n,value:r,tone:i}=e,a;t[0]===n?a=t[1]:(a=(0,y.jsx)(`span`,{className:`text-[11px] text-muted-foreground uppercase tracking-[0.06em]`,children:n}),t[0]=n,t[1]=a);let o=i===`success`?`font-semibold text-base text-success-foreground tabular-nums`:i===`destructive`?`font-semibold text-base text-destructive tabular-nums`:`font-semibold text-base text-foreground tabular-nums`,s;t[2]!==o||t[3]!==r?(s=(0,y.jsx)(`span`,{className:o,children:r}),t[2]=o,t[3]=r,t[4]=s):s=t[4];let c;return t[5]!==a||t[6]!==s?(c=(0,y.jsxs)(`div`,{className:`flex flex-col gap-0.5`,children:[a,s]}),t[5]=a,t[6]=s,t[7]=c):c=t[7],c}export{x as StatisticsPanel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{f as t}from"./utils-c6dglOTK.js";import{t as n}from"./useNavigate-2tVq4iZ2.js";import{t as r}from"./settingsDialogStore-CPtQPrek.js";import{t as i}from"./arrow-up-right-DGeet8e6.js";import{t as a}from"./chart-column-Dw6ACmXM.js";import{t as o}from"./button-BT6cGe5S.js";import{n as s}from"./settingsLayout-B8os-EWr.js";var c=e(),l=t();function u(){let e=(0,c.c)(9),t=n(),u=r(d),f,p,m;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,l.jsx)(`div`,{className:`mx-auto flex size-10 items-center justify-center rounded-xl bg-primary/10 text-primary`,children:(0,l.jsx)(a,{className:`size-5`})}),p=(0,l.jsx)(`h1`,{className:`mt-4 text-lg font-semibold tracking-tight`,children:`Statistics has more room now`}),m=(0,l.jsx)(`p`,{className:`mt-2 text-sm leading-relaxed text-muted-foreground`,children:`Explore provider-recorded Usage and Ryco-observed Activity in the standalone dashboard.`}),e[0]=f,e[1]=p,e[2]=m):(f=e[0],p=e[1],m=e[2]);let h;e[3]!==u||e[4]!==t?(h=()=>{u(),t({to:`/statistics`})},e[3]=u,e[4]=t,e[5]=h):h=e[5];let g;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,l.jsx)(i,{}),e[6]=g):g=e[6];let _;return e[7]===h?_=e[8]:(_=(0,l.jsx)(s,{children:(0,l.jsx)(`div`,{className:`flex min-h-72 items-center justify-center`,children:(0,l.jsxs)(`div`,{className:`max-w-lg rounded-2xl border border-border/75 bg-card p-7 text-center shadow-sm/5`,children:[f,p,m,(0,l.jsxs)(o,{className:`mt-5`,onClick:h,children:[`Open Statistics `,g]})]})})}),e[7]=h,e[8]=_),_}function d(e){return e.closeSettings}export{u as StatisticsSettingsLink};
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{f as t,t as n,u as r}from"./utils-c6dglOTK.js";var i=e(),a=t(),o=r(`relative grid w-full items-start gap-x-2 gap-y-0.5 rounded-xl border px-3.5 py-3 text-card-foreground text-sm has-[>svg]:has-data-[slot=alert-action]:grid-cols-[calc(var(--spacing)*4)_1fr_auto] has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-[>svg]:gap-x-2 [&>svg]:h-lh [&>svg]:w-4`,{defaultVariants:{variant:`default`},variants:{variant:{default:`bg-transparent dark:bg-input/32 [&>svg]:text-muted-foreground`,error:`border-destructive/32 bg-destructive/4 [&>svg]:text-destructive`,info:`border-info/32 bg-info/4 [&>svg]:text-info`,success:`border-success/32 bg-success/4 [&>svg]:text-success`,warning:`border-warning/32 bg-warning/4 [&>svg]:text-warning`}}});function s(e){let t=(0,i.c)(10),r,s,c;t[0]===e?(r=t[1],s=t[2],c=t[3]):({className:r,variant:c,...s}=e,t[0]=e,t[1]=r,t[2]=s,t[3]=c);let l;t[4]!==r||t[5]!==c?(l=n(o({variant:c}),r),t[4]=r,t[5]=c,t[6]=l):l=t[6];let u;return t[7]!==s||t[8]!==l?(u=(0,a.jsx)(`div`,{className:l,"data-slot":`alert`,role:`alert`,...s}),t[7]=s,t[8]=l,t[9]=u):u=t[9],u}function c(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`font-medium [svg~&]:col-start-2`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`alert-title`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function l(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`flex flex-col gap-2.5 text-muted-foreground [svg~&]:col-start-2`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`alert-description`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}function u(e){let t=(0,i.c)(8),r,o;t[0]===e?(r=t[1],o=t[2]):({className:r,...o}=e,t[0]=e,t[1]=r,t[2]=o);let s;t[3]===r?s=t[4]:(s=n(`flex gap-1 max-sm:col-start-2 max-sm:mt-2 sm:row-start-1 sm:row-end-3 sm:self-center sm:[[data-slot=alert-description]~&]:col-start-2 sm:[[data-slot=alert-title]~&]:col-start-2 sm:[svg~&]:col-start-2 sm:[svg~[data-slot=alert-description]~&]:col-start-3 sm:[svg~[data-slot=alert-title]~&]:col-start-3`,r),t[3]=r,t[4]=s);let c;return t[5]!==o||t[6]!==s?(c=(0,a.jsx)(`div`,{className:s,"data-slot":`alert-action`,...o}),t[5]=o,t[6]=s,t[7]=c):c=t[7],c}export{c as i,u as n,l as r,s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{f as t,t as n}from"./utils-c6dglOTK.js";import{i as r,n as i,t as a}from"./DialogViewport-C2oKvkDR.js";import{n as o,t as s}from"./DialogPopup-BIJxt62s.js";import{n as c,r as l,t as u}from"./DialogTitle-CtpwXIBL.js";import"./DialogHandle-DZVZpjWD.js";function d(e){return i(`alert-dialog`,e)}var f=e(),p=t(),m=d,h=r;function g(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`fixed inset-0 z-50 transition-all duration-[240ms] data-ending-style:opacity-0 data-starting-style:opacity-0`,r),t[3]=r,t[4]=a);let s;return t[5]!==i||t[6]!==a?(s=(0,p.jsx)(o,{className:a,"data-slot":`alert-dialog-backdrop`,...i}),t[5]=i,t[6]=a,t[7]=s):s=t[7],s}function _(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let o;t[3]===r?o=t[4]:(o=n(`app-dialog-viewport-scrim pointer-events-auto fixed inset-0 z-50 grid grid-rows-[1fr_auto_3fr] justify-items-center p-4 pb-[calc(--spacing(4)+var(--app-keyboard-inset,0px))] backdrop-blur-[2px]`,r),t[3]=r,t[4]=o);let s;return t[5]!==i||t[6]!==o?(s=(0,p.jsx)(a,{className:o,"data-slot":`alert-dialog-viewport`,...i}),t[5]=i,t[6]=o,t[7]=s):s=t[7],s}function v(e){let t=(0,f.c)(20),r,i,a,o;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4]):({className:r,onKeyDown:i,bottomStickOnMobile:o,...a}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o);let c=o===void 0||o,l;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(g,{}),t[5]=l):l=t[5];let u=c&&`phone:grid-rows-[1fr_auto] phone:p-0 phone:pt-12 phone:pb-[var(--app-keyboard-inset,0px)]`,d;t[6]===u?d=t[7]:(d=n(u),t[6]=u,t[7]=d);let m=c&&`phone:max-w-none phone:rounded-none phone:border-x-0 phone:border-t phone:border-b-0 phone:opacity-[calc(1-min(var(--nested-dialogs),1))] phone:data-ending-style:translate-y-4 phone:data-starting-style:translate-y-4 phone:before:hidden phone:before:rounded-none`,v;t[8]!==r||t[9]!==m?(v=n(`app-surface pointer-events-auto -translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-full min-h-0 w-full min-w-0 max-w-lg scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border not-dark:bg-clip-padding text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] shadow-lg/5 transition-[scale,opacity,translate] duration-[240ms] ease-out will-change-transform before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:translate-y-2 data-starting-style:translate-y-3 data-ending-style:scale-97 data-starting-style:scale-96 data-ending-style:opacity-0 data-starting-style:opacity-0 dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,m,r),t[8]=r,t[9]=m,t[10]=v):v=t[10];let y;t[11]===i?y=t[12]:(y=e=>{i?.(e),e.stopPropagation()},t[11]=i,t[12]=y);let b;t[13]!==a||t[14]!==v||t[15]!==y?(b=(0,p.jsx)(s,{className:v,"data-slot":`alert-dialog-popup`,onKeyDown:y,...a}),t[13]=a,t[14]=v,t[15]=y,t[16]=b):b=t[16];let x;return t[17]!==d||t[18]!==b?(x=(0,p.jsxs)(h,{children:[l,(0,p.jsx)(_,{className:d,children:b})]}),t[17]=d,t[18]=b,t[19]=x):x=t[19],x}function y(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`flex flex-col gap-2 p-6 text-center max-sm:pb-4 sm:text-left`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(`div`,{className:a,"data-slot":`alert-dialog-header`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,f.c)(11),r,i,a;t[0]===e?(r=t[1],i=t[2],a=t[3]):({className:r,variant:a,...i}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a);let o=a===void 0?`default`:a,s=o==="default"&&`app-muted-surface border-t py-4`,c=o===`bare`&&`pb-6`,l;t[4]!==r||t[5]!==s||t[6]!==c?(l=n(`flex flex-col-reverse gap-2 px-6 sm:flex-row sm:justify-end sm:rounded-b-[calc(var(--radius-2xl)-1px)]`,s,c,r),t[4]=r,t[5]=s,t[6]=c,t[7]=l):l=t[7];let u;return t[8]!==i||t[9]!==l?(u=(0,p.jsx)(`div`,{className:l,"data-slot":`alert-dialog-footer`,...i}),t[8]=i,t[9]=l,t[10]=u):u=t[10],u}function x(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`font-heading font-semibold text-xl leading-none`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(u,{className:a,"data-slot":`alert-dialog-title`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function S(e){let t=(0,f.c)(8),r,i;t[0]===e?(r=t[1],i=t[2]):({className:r,...i}=e,t[0]=e,t[1]=r,t[2]=i);let a;t[3]===r?a=t[4]:(a=n(`text-muted-foreground text-sm`,r),t[3]=r,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,p.jsx)(c,{className:a,"data-slot":`alert-dialog-description`,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,f.c)(2),n;return t[0]===e?n=t[1]:(n=(0,p.jsx)(l,{"data-slot":`alert-dialog-close`,...e}),t[0]=e,t[1]=n),n}export{y as a,b as i,C as n,v as o,S as r,x as s,m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{t,u as n}from"./utils-c6dglOTK.js";import{r}from"./useRenderElement-DchFnsR8.js";import{r as i}from"./button-BT6cGe5S.js";var a=e(),o=n(`relative inline-flex shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-sm border border-transparent font-medium outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-3.5 sm:[&_svg:not([class*='size-'])]:size-3 [&_svg]:pointer-events-none [&_svg]:shrink-0 [button&,a&]:cursor-pointer [button&,a&]:pointer-coarse:after:absolute [button&,a&]:pointer-coarse:after:size-full [button&,a&]:pointer-coarse:after:min-h-11 [button&,a&]:pointer-coarse:after:min-w-11`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{default:`h-5.5 min-w-5.5 px-[calc(--spacing(1)-1px)] text-sm sm:h-4.5 sm:min-w-4.5 sm:text-xs`,lg:`h-6.5 min-w-6.5 px-[calc(--spacing(1.5)-1px)] text-base sm:h-5.5 sm:min-w-5.5 sm:text-sm`,sm:`h-5 min-w-5 rounded-sm px-[calc(--spacing(1)-1px)] text-xs sm:h-4 sm:min-w-4 sm:text-[.625rem]`},variant:{default:`bg-primary text-primary-foreground [button&,a&]:hover:bg-primary/90`,destructive:`bg-destructive text-white [button&,a&]:hover:bg-destructive/90`,error:`bg-destructive/8 text-destructive-foreground dark:bg-destructive/16`,info:`bg-info/8 text-info-foreground dark:bg-info/16`,outline:`border-input bg-background text-foreground dark:bg-input/32 [button&,a&]:hover:bg-accent/50 dark:[button&,a&]:hover:bg-input/48`,secondary:`bg-secondary text-secondary-foreground [button&,a&]:hover:bg-secondary/90`,success:`bg-success/8 text-success-foreground dark:bg-success/16`,warning:`bg-warning/8 text-warning-foreground dark:bg-warning/16`}}});function s(e){let n=(0,a.c)(9),s,c,l,u;if(n[0]!==e){let{className:a,variant:d,size:f,render:p,...m}=e;s=p;let h={className:t(o({className:a,size:f,variant:d})),"data-slot":`badge`};u=i,c=`span`,l=r(h,m),n[0]=e,n[1]=s,n[2]=c,n[3]=l,n[4]=u}else s=n[1],c=n[2],l=n[3],u=n[4];let d;return n[5]!==s||n[6]!==c||n[7]!==l?(d={defaultTagName:c,props:l,render:s},n[5]=s,n[6]=c,n[7]=l,n[8]=d):d=n[8],u(d)}export{s as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./compiler-runtime-qmuS0Svy.js";import{t,u as n}from"./utils-c6dglOTK.js";import{r,t as i}from"./useRenderElement-DchFnsR8.js";function a(e){return i(e.defaultTagName??`div`,e,e)}var o=e(),s=n(`[&_svg]:-mx-0.5 relative inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-lg border font-medium text-base outline-none transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] pointer-coarse:after:absolute pointer-coarse:after:top-1/2 pointer-coarse:after:left-1/2 pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 pointer-coarse:after:-translate-x-1/2 pointer-coarse:after:-translate-y-1/2 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 sm:text-sm [&_svg:not([class*='opacity-'])]:opacity-80 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{defaultVariants:{size:`default`,variant:`default`},variants:{size:{cta:`h-auto min-h-11 whitespace-normal px-[calc(--spacing(4)-1px)] py-2 text-base [&_svg:not([class*='size-'])]:size-5`,default:`h-9 px-[calc(--spacing(3)-1px)] sm:h-8`,icon:`size-9 sm:size-8`,"icon-lg":`size-10 sm:size-9`,"icon-sm":`size-8 sm:size-7`,"icon-xl":`size-11 sm:size-10 [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5`,"icon-xs":`size-7 rounded-md before:rounded-[calc(var(--radius-md)-1px)] sm:size-6 not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-4 sm:not-in-data-[slot=input-group]:[&_svg:not([class*='size-'])]:size-3.5`,lg:`h-10 px-[calc(--spacing(3.5)-1px)] sm:h-9`,sm:`h-8 gap-1.5 px-[calc(--spacing(2.5)-1px)] sm:h-7`,xl:`h-11 px-[calc(--spacing(4)-1px)] text-lg sm:h-10 sm:text-base [&_svg:not([class*='size-'])]:size-5 sm:[&_svg:not([class*='size-'])]:size-4.5`,xs:`h-7 gap-1 rounded-md px-[calc(--spacing(2)-1px)] text-sm before:rounded-[calc(var(--radius-md)-1px)] sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5`},variant:{default:`not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-primary bg-primary text-primary-foreground shadow-primary/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-primary/90`,destructive:`not-disabled:inset-shadow-[0_1px_--theme(--color-white/16%)] border-destructive bg-destructive text-white shadow-destructive/24 shadow-xs [:active,[data-pressed]]:inset-shadow-[0_1px_--theme(--color-black/8%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-destructive/90`,"destructive-outline":`border-input bg-popover not-dark:bg-clip-padding text-destructive-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:border-destructive/32 [:hover,[data-pressed]]:bg-destructive/4`,ghost:`border-transparent text-foreground data-pressed:bg-accent [:hover,[data-pressed]]:bg-accent`,link:`border-transparent underline-offset-4 [:hover,[data-pressed]]:underline`,outline:`border-input bg-popover not-dark:bg-clip-padding text-foreground shadow-xs/5 not-disabled:not-active:not-data-pressed:before:shadow-[0_1px_--theme(--color-black/4%)] dark:bg-input/32 dark:not-disabled:before:shadow-[0_-1px_--theme(--color-white/2%)] dark:not-disabled:not-active:not-data-pressed:before:shadow-[0_-1px_--theme(--color-white/6%)] [:disabled,:active,[data-pressed]]:shadow-none [:hover,[data-pressed]]:bg-accent/50 dark:[:hover,[data-pressed]]:bg-input/64`,secondary:`border-transparent bg-secondary text-secondary-foreground [:active,[data-pressed]]:bg-secondary/80 [:hover,[data-pressed]]:bg-secondary/90`}}});function c(e){let n=(0,o.c)(9),i,c,l,u;if(n[0]!==e){let{className:o,variant:d,size:f,render:p,...m}=e;i=p;let h=i?void 0:`button`,g={className:t(s({className:o,size:f,variant:d})),"data-slot":`button`,type:h};u=a,c=`button`,l=r(g,m),n[0]=e,n[1]=i,n[2]=c,n[3]=l,n[4]=u}else i=n[1],c=n[2],l=n[3],u=n[4];let d;return n[5]!==i||n[6]!==c||n[7]!==l?(d={defaultTagName:c,props:l,render:i},n[5]=i,n[6]=c,n[7]=l,n[8]=d):d=n[8],u(d)}export{s as n,a as r,c as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{f as r,t as i}from"./utils-c6dglOTK.js";import{Dt as a,M as o,Mn as s,N as c,Nn as l,Rn as u,Sn as d,Xn as f,Yn as p,in as m,j as h,jt as g,kn as _,kt as v,on as y}from"./usePopupViewport-wXfO6SZE.js";import{d as b,i as x,l as S,t as C}from"./useRenderElement-DchFnsR8.js";import{t as w}from"./useButton-_xmxdcVX.js";import{n as T}from"./clamp-CgH0Dl6R.js";var E=e(t(),1);function D(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=T({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:u,transitionStatus:d}=c(a,!0,!0),f=m(),[p,h]=E.useState(),g=p===null?void 0:p??f,v=l(e=>{let t=!a,n=y(_,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return E.useMemo(()=>({defaultPanelId:f,disabled:i,handleTrigger:v,mounted:s,open:a,panelId:g,setMounted:u,setOpen:o,setPanelIdState:h,transitionStatus:d}),[f,i,v,s,a,g,u,o,h,d])}var O=E.createContext(void 0);function k(){let e=E.useContext(O);if(e===void 0)throw Error(b(15));return e}var A=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=p.startingStyle]=`startingStyle`,e[e.endingStyle=p.endingStyle]=`endingStyle`,e}({}),j=function(e){return e.panelOpen=`data-panel-open`,e}({}),M={[A.open]:``},N={[A.closed]:``},P={open(e){return e?{[j.panelOpen]:``}:null}},F={open(e){return e?M:N},...f},I=r(),L=E.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...u}=e,d=l(o),f=D({open:s,defaultOpen:i,onOpenChange:d,disabled:a}),p=E.useMemo(()=>({open:f.open,disabled:f.disabled,transitionStatus:f.transitionStatus}),[f.open,f.disabled,f.transitionStatus]),m=E.useMemo(()=>({...f,onOpenChange:d,state:p}),[f,d,p]),h=C(`div`,e,{state:p,ref:t,props:u,stateAttributesMapping:F});return(0,I.jsx)(O.Provider,{value:m,children:h})}),R={...P,...f},z=E.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=k(),{className:s,disabled:c=o,render:l,nativeButton:u=!0,style:d,...f}=e,{getButtonProps:p,buttonRef:m}=w({disabled:c,focusableWhenDisabled:!0,native:u});return C(`button`,e,{state:a,ref:[t,m],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},f,p],stateAttributesMapping:R})}),B={height:void 0,width:void 0};function V(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:c,onOpenChange:u,open:f,setMounted:p,setOpen:m,transitionStatus:_}=e,b=E.useRef(null),x=E.useRef(null),[C,w]=E.useState(B),T=E.useRef(B),D=E.useRef(!1),O=E.useRef(f),k=E.useRef(!1),[j,M]=E.useState(!1),N=E.useRef(null),P=S(t,b),F=v(f),I=o(b),L=!f&&!c,R=j?`idle`:_,z=f&&(O.current||k.current),V=!f&&c&&x.current===`css-animation`&&C.height===void 0&&C.width===void 0?T.current:C,W=n&&L&&x.current!==`css-animation`,q=l((e,t=!0)=>{t&&(T.current=e),w(e)}),J=l(()=>{N.current?.(),N.current=null}),Y=l(e=>{J(),N.current=()=>{N.current=null,e()}}),X=l(()=>{f&&c&&x.current===`css-animation`&&(k.current=!0)});s(()=>{!j||_===`starting`||M(!1)},[j,_]),E.useEffect(()=>()=>{X(),J()},[X,J]),s(()=>{let e=b.current;if(!e)return;!f&&N.current&&J();let t=U(e,z);if(x.current=t,f&&_===`idle`&&O.current&&t===`css-animation`){T.current=H(e);return}if(f&&_===`starting`){let n=D.current;if(D.current=!1,t===`none`){q(H(e)),M(!0);return}if(t===`css-transition`){let t=K(e);if(q(H(e)),!n)return t;let r=G(e,`transition-duration`,`0s`);return Y(r),M(!0),t}q(H(e));let r=G(e,`animation-name`,`none`);if(!n){r();return}let i=G(e,`animation-duration`,`0s`);r(),Y(i),M(!0);return}if(!f&&c&&(_===`idle`||_===`starting`)){if(O.current=!1,k.current=!1,t===`none`){q(B,!1),p(!1);return}q(H(e));return}if(_!==`ending`)return;if(t===`none`){p(!1);return}let n=H(e);if(!(n.height>0||n.width>0)){p(!1);return}q(n),t===`css-animation`&&G(e,`animation-name`,`none`)()},[c,f,J,q,p,Y,z,_]),h({enabled:f&&c&&R===`idle`,open:!0,ref:b,onComplete(){f&&q(B,!1)}}),E.useEffect(()=>{if(f||!c||R!==`ending`||!b.current)return;let e=new AbortController,t=-1;function n(){F.current||(p(!1),q(B,!1))}return t=a.request(()=>{I(n,e.signal)}),()=>{a.cancel(t),e.abort()}},[F,c,f,R,I,q,p]),s(()=>{let e=b.current;!e||!n||!L||e.setAttribute(`hidden`,`until-found`)},[L,n]),E.useEffect(function(){let e=b.current;if(!e)return;function t(e){let t=y(d,e);u(!0,t),!t.isCanceled&&(D.current=!0,m(!0))}return g(e,`beforematch`,t)},[u,m]);let Z=i||n||c||f;return{height:V.height,props:{...W?{[A.startingStyle]:``}:void 0,hidden:L,id:r},ref:P,shouldPreventOpenAnimation:z,shouldRender:Z,transitionStatus:R,width:V.width}}function H(e){return{height:e.scrollHeight,width:e.scrollWidth}}function U(e,t){let n=u(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&W(n.animationDuration),i=W(n.transitionDuration);return r&&i||i?`css-transition`:r?`css-animation`:`none`}function W(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function G(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function K(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=a.request(n);return()=>{a.cancel(r),n()}}var q=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),J=E.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:a,id:o,style:c,...l}=e,{defaultPanelId:u,mounted:d,onOpenChange:f,open:p,setMounted:m,setPanelIdState:h,setOpen:g,state:_,transitionStatus:v}=k(),y=r??!1,b=i??!1,S=o||void 0,w=S??u;s(()=>(h(e=>S??(e===null?void 0:e)),()=>{h(e=>e===S?null:e)}),[S,h]);let{height:T,props:E,ref:D,shouldPreventOpenAnimation:O,shouldRender:A,transitionStatus:j,width:M}=V({externalRef:t,hiddenUntilFound:y,id:w,keepMounted:b,mounted:d,onOpenChange:f,open:p,setMounted:m,setOpen:g,transitionStatus:v}),N={..._,transitionStatus:j},P=x(c,N),I=C(`div`,{...e,style:void 0},{state:N,ref:D,props:[E,{style:{[q.collapsiblePanelHeight]:T===void 0?`auto`:`${T}px`,[q.collapsiblePanelWidth]:M===void 0?`auto`:`${M}px`}},l,P?{style:P}:void 0,O?{style:{animationName:`none`}}:void 0],stateAttributesMapping:F});return A?I:null}),Y=n();function X(e){let t=(0,Y.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,I.jsx)(L,{"data-slot":`collapsible`,...n}),t[2]=n,t[3]=r),r}function Z(e){let t=(0,Y.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 a;t[3]===n?a=t[4]:(a=i(`cursor-pointer`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,I.jsx)(z,{className:a,"data-slot":`collapsible-trigger`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function Q(e){let t=(0,Y.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 a;t[3]===n?a=t[4]:(a=i(`h-(--collapsible-panel-height) overflow-hidden transition-[height] duration-200 data-ending-style:h-0 data-starting-style:h-0 data-open:data-ending-style:[height:var(--collapsible-panel-height)]`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,I.jsx)(J,{className:a,"data-slot":`collapsible-panel`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}export{Q as n,Z as r,X as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./react-SIfiwpqq.js";import{t as n}from"./compiler-runtime-qmuS0Svy.js";import{f as r,t as i}from"./utils-c6dglOTK.js";import{Mn as a,in as o}from"./usePopupViewport-wXfO6SZE.js";import{d as s,t as c}from"./useRenderElement-DchFnsR8.js";import{a as l,c as u,g as d,l as f,m as p,o as m,r as h,s as g,u as _,v,w as y}from"./kbd-BGOWI5KX.js";import{t as b}from"./search-BGQsenCM.js";import{t as x}from"./x-C1Cemsov.js";import{i as S,t as C}from"./DialogViewport-C2oKvkDR.js";import{n as w,t as T}from"./DialogPopup-BIJxt62s.js";import{t as E}from"./DialogRoot-8xRqqTn8.js";import{t as D}from"./DialogTrigger-CdeFWE8i.js";import"./DialogHandle-DZVZpjWD.js";import{s as O}from"./resolveAriaLabelledBy-CxOsaNI8.js";import{t as ee}from"./input-zjUwoDs3.js";import{t as k}from"./scroll-area-B-bu3v0j.js";var A=e(t(),1),j=r();function M(e){let{openOnInputClick:t=!1,value:n,defaultValue:r,onValueChange:i,mode:a=`list`,itemToStringValue:o,...s}=e,c=a===`inline`||a===`both`,l=a===`inline`||a===`none`,u=n!==void 0,[f,p]=A.useState(r??``),[m,h]=A.useState(``);A.useEffect(()=>{u&&h(``)},[n,u]);let g;g=c&&m!==``?m:u?n??``:f;let _=v({locale:s.locale}),y=A.useMemo(()=>s.filter===void 0?_.contains:s.filter,[s.filter,_]),b=String(u?n:f).trim(),x=A.useMemo(()=>a===`both`?y===null?null:(e,t,n)=>y(e,b,n):l?null:y,[y,a,b,l]);function S(e,t){h(``),u||p(e),i?.(e,t)}function C(t,n){e.onItemHighlighted?.(t,n),n.reason!==`pointer`&&h(c&&t!=null?O(t,o):``)}return(0,j.jsx)(d,{...s,itemToStringLabel:o,openOnInputClick:t,selectionMode:`none`,fillInputOnItemPress:!0,filter:x,autoComplete:a,inputValue:g,defaultInputValue:r,onInputValueChange:S,onItemHighlighted:C})}var N=p,P=A.createContext(void 0);function F(){let e=A.useContext(P);if(e===void 0)throw Error(s(18));return e}var I=A.forwardRef(function(e,t){let{render:n,className:r,style:i,items:a,...o}=e,[s,l]=A.useState(),u=A.useMemo(()=>({labelId:s,setLabelId:l,items:a}),[s,l,a]),d=c(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":s},o]}),f=(0,j.jsx)(P.Provider,{value:u,children:d});return a?(0,j.jsx)(g,{items:a,children:f}):f}),L=A.forwardRef(function(e,t){let{render:n,className:r,style:i,id:s,...l}=e,{setLabelId:u}=F(),d=o(s);return a(()=>(u(d),()=>{u(e=>e===d?void 0:e)}),[d,u]),c(`div`,e,{ref:t,props:[{id:d},l]})}),R=h,z=A.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return c(`div`,e,{state:{orientation:i},ref:t,props:[{role:`presentation`},o]})}),B=n(),V=M;function H(e){let t=(0,B.c)(30),n,r,a,o,s,c;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6]):({className:n,showTrigger:s,showClear:c,startAddon:o,size:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c);let l=s!==void 0&&s,u=c!==void 0&&c,d=a??`default`,p;t[7]===o?p=t[8]:(p=o&&(0,j.jsx)(`div`,{"aria-hidden":`true`,className:`[&_svg]:-mx-0.5 pointer-events-none absolute inset-y-0 start-px z-10 flex items-center ps-[calc(--spacing(3)-1px)] opacity-80 has-[+[data-size=sm]]:ps-[calc(--spacing(2.5)-1px)] [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4`,"data-slot":`autocomplete-start-addon`,children:o}),t[7]=o,t[8]=p);let m=o&&`data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7.5)-1px)] *:data-[slot=autocomplete-input]:ps-[calc(--spacing(8.5)-1px)] sm:data-[size=sm]:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(7)-1px)] sm:*:data-[slot=autocomplete-input]:ps-[calc(--spacing(8)-1px)]`,h=d===`sm`?`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-6.5`:`has-[+[data-slot=autocomplete-trigger],+[data-slot=autocomplete-clear]]:*:data-[slot=autocomplete-input]:pe-7`,g;t[9]!==n||t[10]!==m||t[11]!==h?(g=i(m,h,n),t[9]=n,t[10]=m,t[11]=h,t[12]=g):g=t[12];let v;t[13]===d?v=t[14]:(v=(0,j.jsx)(ee,{nativeInput:!0,size:d}),t[13]=d,t[14]=v);let b;t[15]!==r||t[16]!==g||t[17]!==v?(b=(0,j.jsx)(_,{className:g,"data-slot":`autocomplete-input`,render:v,...r}),t[15]=r,t[16]=g,t[17]=v,t[18]=b):b=t[18];let S;t[19]!==l||t[20]!==d?(S=l&&(0,j.jsx)(Y,{className:i(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,j.jsx)(f,{"data-slot":`autocomplete-icon`,children:(0,j.jsx)(y,{})})}),t[19]=l,t[20]=d,t[21]=S):S=t[21];let C;t[22]!==u||t[23]!==d?(C=u&&(0,j.jsx)(q,{className:i(`-translate-y-1/2 absolute top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-colors pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 has-[+[data-slot=autocomplete-clear]]:hidden sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,d===`sm`?`end-0`:`end-0.5`),children:(0,j.jsx)(x,{})}),t[22]=u,t[23]=d,t[24]=C):C=t[24];let w;return t[25]!==C||t[26]!==p||t[27]!==b||t[28]!==S?(w=(0,j.jsxs)(`div`,{className:`relative not-has-[>*.w-full]:w-fit w-full text-foreground has-disabled:opacity-64`,children:[p,b,S,C]}),t[25]=C,t[26]=p,t[27]=b,t[28]=S,t[29]=w):w=t[29],w}function U(e){let t=(0,B.c)(10),n,r,a;t[0]===e?(n=t[1],r=t[2],a=t[3]):({className:r,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a);let o;t[4]===r?o=t[5]:(o=i(`flex min-h-8 cursor-default select-none items-center rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-selected:bg-accent/50 data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm`,r),t[4]=r,t[5]=o);let s;return t[6]!==n||t[7]!==a||t[8]!==o?(s=(0,j.jsx)(R,{className:o,"data-slot":`autocomplete-item`,...a,children:n}),t[6]=n,t[7]=a,t[8]=o,t[9]=s):s=t[9],s}function W(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`mx-2 my-1 h-px bg-border last:hidden`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(z,{className:a,"data-slot":`autocomplete-separator`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function te(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`[[role=group]+&]:mt-1.5`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(I,{className:a,"data-slot":`autocomplete-group`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function G(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`px-2 py-1.5 font-medium text-muted-foreground text-xs`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(L,{className:a,"data-slot":`autocomplete-group-label`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function K(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`not-empty:scroll-py-1 not-empty:p-1`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(k,{scrollbarGutter:!0,scrollFade:!0,children:(0,j.jsx)(l,{className:a,"data-slot":`autocomplete-list`,...r})}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function q(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`-translate-y-1/2 absolute end-0.5 top-1/2 inline-flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md border border-transparent opacity-80 outline-none transition-[color,background-color,box-shadow,opacity] pointer-coarse:after:absolute pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 hover:opacity-100 sm:size-7 [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0`,n),t[3]=n,t[4]=a);let o;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,j.jsx)(x,{}),t[5]=o):o=t[5];let s;return t[6]!==r||t[7]!==a?(s=(0,j.jsx)(u,{className:a,"data-slot":`autocomplete-clear`,...r,children:o}),t[6]=r,t[7]=a,t[8]=s):s=t[8],s}function J(e){let t=(0,B.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,j.jsx)(m,{"data-slot":`autocomplete-collection`,...n}),t[2]=n,t[3]=r),r}function Y(e){let t=(0,B.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,j.jsx)(N,{className:r,"data-slot":`autocomplete-trigger`,...i,children:n}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var X=E,Z=S;function Q(e){let t=(0,B.c)(2),n;return t[0]===e?n=t[1]:(n=(0,j.jsx)(D,{"data-slot":`command-dialog-trigger`,...e}),t[0]=e,t[1]=n),n}function ne(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`app-command-backdrop fixed inset-0 z-50 transition-all duration-200 data-ending-style:opacity-0 data-starting-style:opacity-0`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(w,{className:a,"data-slot":`command-dialog-backdrop`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function re(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`pointer-events-none fixed inset-0 z-50 flex flex-col items-center px-4 py-[max(--spacing(4),4vh)] pb-[max(--spacing(4),var(--app-keyboard-inset,0px))] sm:py-[10vh]`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(C,{className:a,"data-slot":`command-dialog-viewport`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function ie(e){let t=(0,B.c)(22),n,r,a,o,s,c;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6]):({className:r,children:n,onKeyDown:o,onBackdropPointerDown:a,surface:c,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c);let l=c===void 0?`default`:c,u;t[7]===a?u=t[8]:(u=(0,j.jsx)(ne,{onPointerDown:a}),t[7]=a,t[8]=u);let d=l===`glass`?`selection-glass-surface`:`app-muted-before app-surface not-dark:bg-clip-padding shadow-lg/5 before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-2xl)-1px)] before:shadow-[0_1px_--theme(--color-black/4%)] dark:before:shadow-[0_-1px_--theme(--color-white/6%)]`,f;t[9]!==r||t[10]!==d?(f=i(`pointer-events-auto -translate-y-[calc(1.25rem*var(--nested-dialogs))] relative row-start-2 flex max-h-105 min-h-0 w-full min-w-0 max-w-xl scale-[calc(1-0.1*var(--nested-dialogs))] flex-col rounded-2xl border text-popover-foreground opacity-[calc(1-0.1*var(--nested-dialogs))] outline-none transition-[scale,opacity,translate] duration-[240ms] ease-out will-change-transform data-nested:data-ending-style:translate-y-8 data-nested:data-starting-style:translate-y-8 data-nested-dialog-open:origin-top data-ending-style:translate-y-2 data-starting-style:translate-y-3 data-ending-style:scale-97 data-starting-style:scale-96 data-ending-style:opacity-0 data-starting-style:opacity-0 **:data-[slot=scroll-area-viewport]:data-has-overflow-y:pe-1`,d,r),t[9]=r,t[10]=d,t[11]=f):f=t[11];let p;t[12]===o?p=t[13]:(p=e=>{o?.(e),e.stopPropagation()},t[12]=o,t[13]=p);let m;t[14]!==n||t[15]!==s||t[16]!==f||t[17]!==p?(m=(0,j.jsx)(re,{children:(0,j.jsx)(T,{className:f,"data-slot":`command-dialog-popup`,onKeyDown:p,...s,children:n})}),t[14]=n,t[15]=s,t[16]=f,t[17]=p,t[18]=m):m=t[18];let h;return t[19]!==u||t[20]!==m?(h=(0,j.jsxs)(Z,{children:[u,m]}),t[19]=u,t[20]=m,t[21]=h):h=t[21],h}function ae(e){let t=(0,B.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({autoHighlight:r,keepHighlight:i,...n}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=r===void 0?`always`:r,o=i===void 0||i,s;return t[4]!==a||t[5]!==o||t[6]!==n?(s=(0,j.jsx)(V,{autoHighlight:a,inline:!0,keepHighlight:o,open:!0,...n}),t[4]=a,t[5]=o,t[6]=n,t[7]=s):s=t[7],s}function oe(e){let t=(0,B.c)(17),n,r,a,o;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4]):({className:n,wrapperClassName:o,placeholder:a,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o);let s=a===void 0?void 0:a,c;t[5]===o?c=t[6]:(c=i(`px-2.5 py-1.5`,o),t[5]=o,t[6]=c);let l;t[7]===n?l=t[8]:(l=i(`border-transparent! bg-transparent! shadow-none before:hidden has-focus-visible:ring-0`,n),t[7]=n,t[8]=l);let u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,j.jsx)(b,{}),t[9]=u):u=t[9];let d;t[10]!==s||t[11]!==r||t[12]!==l?(d=(0,j.jsx)(H,{autoFocus:!0,className:l,placeholder:s,size:`lg`,startAddon:u,...r}),t[10]=s,t[11]=r,t[12]=l,t[13]=d):d=t[13];let f;return t[14]!==c||t[15]!==d?(f=(0,j.jsx)(`div`,{className:c,children:d}),t[14]=c,t[15]=d,t[16]=f):f=t[16],f}function $(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`not-empty:scroll-py-2 not-empty:p-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(K,{className:a,"data-slot":`command-list`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function se(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`app-surface -mx-px not-has-[+[data-slot=command-footer]]:-mb-px relative min-h-0 overflow-hidden rounded-t-xl not-has-[+[data-slot=command-footer]]:rounded-b-2xl border border-b-0 bg-clip-padding shadow-xs/5 [clip-path:inset(0_1px)] not-has-[+[data-slot=command-footer]]:[clip-path:inset(0_1px_1px_1px_round_0_0_calc(var(--radius-2xl)-1px)_calc(var(--radius-2xl)-1px))] before:pointer-events-none before:absolute before:inset-0 before:rounded-t-[calc(var(--radius-xl)-1px)] **:data-[slot=scroll-area-scrollbar]:mt-2 [touch-action:pan-y]`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(`div`,{className:a,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function ce(e){let t=(0,B.c)(6),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;return t[3]!==n||t[4]!==r?(i=(0,j.jsx)(te,{className:n,"data-slot":`command-group`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function le(e){let t=(0,B.c)(6),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;return t[3]!==n||t[4]!==r?(i=(0,j.jsx)(G,{className:n,"data-slot":`command-group-label`,...r}),t[3]=n,t[4]=r,t[5]=i):i=t[5],i}function ue(e){let t=(0,B.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,j.jsx)(J,{"data-slot":`command-collection`,...n}),t[2]=n,t[3]=r),r}function de(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`py-1.5`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(U,{className:a,"data-slot":`command-item`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function fe(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`my-2`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(W,{className:a,"data-slot":`command-separator`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function pe(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`ms-auto font-medium font-sans text-muted-foreground/72 text-xs tracking-widest pointer-coarse:hidden`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(`kbd`,{className:a,"data-slot":`command-shortcut`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function me(e){let t=(0,B.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 a;t[3]===n?a=t[4]:(a=i(`flex items-center justify-between gap-2 rounded-b-[calc(var(--radius-2xl)-1px)] border-t px-5 py-3 text-muted-foreground text-xs`,n),t[3]=n,t[4]=a);let o;return t[5]!==r||t[6]!==a?(o=(0,j.jsx)(`div`,{className:a,"data-slot":`command-footer`,...r}),t[5]=r,t[6]=a,t[7]=o):o=t[7],o}export{Q as a,le as c,$ as d,se as f,ie as i,oe as l,pe as m,ue as n,me as o,fe as p,X as r,ce as s,ae as t,de as u};
|