@inkeep/open-knowledge 0.86.13-beta.5 → 0.86.13-beta.6
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/cli.mjs +6 -6
- package/dist/constants-QhGcX1jP.mjs +1 -0
- package/dist/{dist-BdWyx3_g.mjs → dist-B-LAoRmW.mjs} +246 -246
- package/dist/{dist-BscgfW_a.mjs → dist-DFHKTwRq.mjs} +1 -1
- package/dist/index.mjs +210 -210
- package/dist/init-DNcF_zUp.mjs +1 -0
- package/dist/{init-1vVkAiot.mjs → init-DsTDW8PN.mjs} +2 -2
- package/dist/{launch-json-removal-DqbFN0dI.mjs → launch-json-removal-C0-wLRJG.mjs} +1 -1
- package/dist/{loader-B9Kr25w_.mjs → loader-B14ip6IN.mjs} +1 -1
- package/dist/loader-CEVDxJIa.mjs +1 -0
- package/dist/{md-manager-BGnqyqi1-DK41xNGI.mjs → md-manager-BGnqyqi1-CPATjLIj.mjs} +160 -160
- package/dist/{open-browser-xLmZ24zo.mjs → open-browser-DfTjiF9R.mjs} +1 -1
- package/dist/parse-worker.mjs +1 -1
- package/dist/{preview-CaYt3ZBx.mjs → preview-DCs1uVu5.mjs} +1 -1
- package/dist/preview-DptKn8iO.mjs +1 -0
- package/dist/public/assets/{AccountSection-CSXq4lUU.js → AccountSection-CowlGJFs.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-x9-Msbqr.js → ActivityModeContent-CcroJ-DG.js} +1 -1
- package/dist/public/assets/{ActivityPanelDiffView-D1HNJ0EL.js → ActivityPanelDiffView-EBKh4lfz.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-BuVEdcfe.js → AddPropertiesButton-Ack7vynK.js} +2 -2
- package/dist/public/assets/{AgentDiffPane-CFPz5Dby.js → AgentDiffPane-DiwxFrFb.js} +2 -2
- package/dist/public/assets/{AttachmentsSection-BZny6Oc-.js → AttachmentsSection-85LnQHCB.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BM4EzAx7.js → CodeMirrorPropInput-UA1el3M1.js} +74 -76
- package/dist/public/assets/{ContentRulesSection-BsD_z17t.js → ContentRulesSection-mTywn1H0.js} +1 -1
- package/dist/public/assets/{DiffViewBoundary-D5GzWGIy.js → DiffViewBoundary-G84zg4aW.js} +1 -1
- package/dist/public/assets/{DocumentContext-dfNHh2sO.js → DocumentContext-Bpjsqo1P.js} +29 -29
- package/dist/public/assets/EditorModeToggle-BxZG0GCz.js +1 -0
- package/dist/public/assets/{ExcalidrawDocEditor-DIShhcol.js → ExcalidrawDocEditor-zDA0vdbs.js} +1 -1
- package/dist/public/assets/FeedbackForm-6XiRSy77.js +1 -0
- package/dist/public/assets/{ImportSkillDialog-CwzOlSXW.js → ImportSkillDialog-30iXeyF6.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CM9TVljO.js → LinkPreviewsSection-Dunim138.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DVvP72Bf.js → LintConfigEditor-DOaH26Y3.js} +1 -1
- package/dist/public/assets/{LintingSection-DHJ4-YoV.js → LintingSection-CR6EIafl.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-BmUZv2uD.js +1 -0
- package/dist/public/assets/{ManagedArtifactProperties-D7tV0Whc.js → ManagedArtifactProperties-aljVpK04.js} +1 -1
- package/dist/public/assets/{Mermaid-OyqDVkV1.js → Mermaid-DrDUd07u.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-yB-6imOc.js → MermaidDocEditor-B8TfaHGr.js} +1 -1
- package/dist/public/assets/{MultiFileDiff-B6HXL4Bz.js → MultiFileDiff-BjX5FEfb.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-DQdZArKE.js → NetworkAccessSection-TETzOWD_.js} +1 -1
- package/dist/public/assets/PropertyDisplayRow-PpwMWELQ.js +2 -0
- package/dist/public/assets/{PublishToGitHubDialog-BmrMeByz.js → PublishToGitHubDialog-DHCNHDEf.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Dy-_PYO_.js → SchemaConfigEditor-LrnwWr8i.js} +1 -1
- package/dist/public/assets/{SearchSection-DJOJRJWx.js → SearchSection-ey8z-UyU.js} +1 -1
- package/dist/public/assets/{SessionsHost-46jyHSQ_.js → SessionsHost-DV3rQaV6.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-hdv9GlF5.js → SettingsDialogBody-Bcv_vYHe.js} +2 -2
- package/dist/public/assets/{ShareReceiveMissDialog-BswtkG8U.js → ShareReceiveMissDialog-MpyX-2te.js} +1 -1
- package/dist/public/assets/{SkillForkDialog-C_vd4hTG.js → SkillForkDialog-CizHc05K.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-BLI5ligw.js → SkillOriginInline-BCqN9HRT.js} +2 -2
- package/dist/public/assets/{SkillToolbarControls-zrW5N5UZ.js → SkillToolbarControls-EF87XEf5.js} +1 -1
- package/dist/public/assets/{SkillUpdateConflictDialog-DPXsWJ1y.js → SkillUpdateConflictDialog-CgPPIuYI.js} +1 -1
- package/dist/public/assets/SourceEditor-Dns11FYK.js +1 -0
- package/dist/public/assets/{SyncSection-jC-_KK_s.js → SyncSection-BIbeHZvp.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-m_tTL7nH.js → SyncStatusBadge-DaMofnew.js} +1 -1
- package/dist/public/assets/{TerminalSection-4V4PDe2k.js → TerminalSection-DQWuBL3s.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-BtyZIukg.js → TerminalWindowApp-LE6KPay1.js} +1 -1
- package/dist/public/assets/{TextDocEditor-DrTLyQpB.js → TextDocEditor-BcJtDjng.js} +1 -1
- package/dist/public/assets/{ThreadView-py4zdjf-.js → ThreadView-DI-eMUWY.js} +4 -4
- package/dist/public/assets/{TimelineDiffPane-CuO2JpOz.js → TimelineDiffPane-SShlUARz.js} +2 -2
- package/dist/public/assets/{abnfDiagram-N423BO3Z-DI1MOTax.js → abnfDiagram-N423BO3Z-HaE-1SHy.js} +1 -1
- package/dist/public/assets/{architectureDiagram-T3A2C74G-CjnIcTlm.js → architectureDiagram-T3A2C74G-Ccu6kbYe.js} +1 -1
- package/dist/public/assets/{blockDiagram-VBNYF7ZC-CtugLD14.js → blockDiagram-VBNYF7ZC-DdBB9Ln0.js} +1 -1
- package/dist/public/assets/{c4Diagram-5PPSVZJV-jQGQqB7a.js → c4Diagram-5PPSVZJV-BD8BlKWy.js} +1 -1
- package/dist/public/assets/channel-CYnTkHik.js +1 -0
- package/dist/public/assets/{chunk-2GRJ4B5K-BluuBMiQ.js → chunk-2GRJ4B5K-sot9-RGs.js} +1 -1
- package/dist/public/assets/{chunk-3NCLNEKW-J87Pt5Ce.js → chunk-3NCLNEKW-B_jASG33.js} +1 -1
- package/dist/public/assets/{chunk-4I5QYGJK-VLITJA8M.js → chunk-4I5QYGJK-_A5aYnw2.js} +1 -1
- package/dist/public/assets/{chunk-5RXB4S5H-CAUonrKc.js → chunk-5RXB4S5H-DsIiMH6C.js} +1 -1
- package/dist/public/assets/{chunk-6Q2QTUOP-DksP2qPM.js → chunk-6Q2QTUOP-B44d4_I1.js} +1 -1
- package/dist/public/assets/{chunk-7Z6QIM7H-L0nm87vF.js → chunk-7Z6QIM7H-BkSyAoJV.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-Cu3Zcp58.js → chunk-BO2N2NFS-CA1DMyeT.js} +4 -4
- package/dist/public/assets/{chunk-GF5L2VYU-DIj9Ac3d.js → chunk-GF5L2VYU-BiIl9j28.js} +1 -1
- package/dist/public/assets/{chunk-I66GZJ75-CHQVooIa.js → chunk-I66GZJ75-BBS7pKXH.js} +1 -1
- package/dist/public/assets/{chunk-J7OUQ5F2-BJaftJuu.js → chunk-J7OUQ5F2-Bym5ibCp.js} +2 -2
- package/dist/public/assets/{chunk-JQJVKLGR-Bg0yqFQE.js → chunk-JQJVKLGR-pDr7vdp1.js} +1 -1
- package/dist/public/assets/{chunk-KBJHAD2P-CZyxKjx5.js → chunk-KBJHAD2P-BFdlSWL6.js} +1 -1
- package/dist/public/assets/{chunk-NSK5VX7P-DKFvDLTr.js → chunk-NSK5VX7P-eSc6NYUh.js} +1 -1
- package/dist/public/assets/{chunk-QR6OTTB3-CFQoHy2U.js → chunk-QR6OTTB3-CgpJcD7h.js} +1 -1
- package/dist/public/assets/{chunk-UBXNYLIW-ByzoKB1b.js → chunk-UBXNYLIW-DH4CIV4Z.js} +1 -1
- package/dist/public/assets/{chunk-W5SLKNZC-C55mW624.js → chunk-W5SLKNZC-D-lroYqs.js} +1 -1
- package/dist/public/assets/{chunk-WRU74C26-ButWmYus.js → chunk-WRU74C26-d-2Ia2A3.js} +1 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-YchR3ru9.js +1 -0
- package/dist/public/assets/classDiagram-v2-OCEON4UE-DovRAlnt.js +1 -0
- package/dist/public/assets/{client-version-B3pS4DlA.js → client-version-CdR5OEoA.js} +1 -1
- package/dist/public/assets/cm-theme-DsKCc8Du.js +3 -0
- package/dist/public/assets/{code-highlighter-impl-a2b98fkn.js → code-highlighter-impl-CNu9hCDQ.js} +1 -1
- package/dist/public/assets/{comment-chips-Cjd2SsR0.js → comment-chips-CGV3uBng.js} +3 -3
- package/dist/public/assets/{config-provider-7Po9hSaS.js → config-provider-DyQHdVWH.js} +1 -1
- package/dist/public/assets/{cynefinDiagram-MW4NZA55-BMApxUec.js → cynefinDiagram-MW4NZA55-Bt---2w-.js} +1 -1
- package/dist/public/assets/{dagre-VZM6K2ZE-CWAXiEIi.js → dagre-VZM6K2ZE-DadMRY2W.js} +1 -1
- package/dist/public/assets/{diagram-7IWD3JNH-CGgAPAS_.js → diagram-7IWD3JNH-xND6JtDz.js} +1 -1
- package/dist/public/assets/{diagram-B4RE2ZJO-HTZnbLMJ.js → diagram-B4RE2ZJO-CZVxA6hR.js} +1 -1
- package/dist/public/assets/{diagram-LBJQPF4R-BEqABlrl.js → diagram-LBJQPF4R-rX0Tq4jZ.js} +1 -1
- package/dist/public/assets/{diagram-Q27KOJAE-D0dG7XZ0.js → diagram-Q27KOJAE-nt3g7b0x.js} +1 -1
- package/dist/public/assets/{diagram-UB23O5K3-CN18Hs5e.js → diagram-UB23O5K3-szgv1p93.js} +1 -1
- package/dist/public/assets/dist-Bft6rZTE.js +1 -0
- package/dist/public/assets/{dist-CThTn0n3.js → dist-D3PI74Ez.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-BMGd9jfr.js → doc-undo-manager-BzYAqvBQ.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-BXEA7PRR-e3dD5Nln.js → ebnfDiagram-BXEA7PRR-D6Uvf-oy.js} +1 -1
- package/dist/public/assets/{engine-compile--HhyEWi4.js → engine-compile-BycZLMmD.js} +1 -1
- package/dist/public/assets/{erDiagram-JOGREHBK-szVyqZkn.js → erDiagram-JOGREHBK-DpQfEzzT.js} +1 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-Bvgmb4Q6.js +1 -0
- package/dist/public/assets/{ganttDiagram-PKOTCBZU-CcKCaoog.js → ganttDiagram-PKOTCBZU-DLwqDN74.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-DS77QQ5N-iHZmSAWb.js → gitGraphDiagram-DS77QQ5N-Cc5MCrtO.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-iKto6Lag.js → highlighted-body-OFNGDK62-DS7wrpMM.js} +1 -1
- package/dist/public/assets/ime-composition-gK1nUjUW.js +1 -0
- package/dist/public/assets/{index-BXC8xtHm.js → index-BUWsL8h_.js} +10 -10
- package/dist/public/assets/{infoDiagram-6WML65LV-CqhCLrMr.js → infoDiagram-6WML65LV-ChXfRabQ.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-WSZJBQD7-DqDbu5yX.js → ishikawaDiagram-WSZJBQD7-B0AT-ixb.js} +1 -1
- package/dist/public/assets/{journeyDiagram-NVQOT4AX-wc4iC-J-.js → journeyDiagram-NVQOT4AX-CF-x6pcZ.js} +1 -1
- package/dist/public/assets/{kanban-definition-27J2QSJJ-PXZDaBtc.js → kanban-definition-27J2QSJJ-BphUtkcd.js} +1 -1
- package/dist/public/assets/{lib-TFtgHRaJ.js → lib-BZsAU7Y2.js} +1 -1
- package/dist/public/assets/{lib-QQS1Brzc.js → lib-CY2yz3tg.js} +1 -1
- package/dist/public/assets/{lib-JGveGkyb.js → lib-DoyE8anS.js} +1 -1
- package/dist/public/assets/{line-DR0ZdS7v.js → line-C48bgrw0.js} +1 -1
- package/dist/public/assets/{lint-config-client-sgsQijtd.js → lint-config-client-CCGSFVIS.js} +1 -1
- package/dist/public/assets/{lint-plugins-BT8f0lok.js → lint-plugins-KeEVAAw5.js} +1 -1
- package/dist/public/assets/{markdown-lint-CJY47a4k.js → markdown-lint-Sq_kGPCg.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-CBGOMkmJ.js → markdownlint-rule-browser-dtdwuRgB.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-CBCytjg2.js +1 -0
- package/dist/public/assets/mermaid.core-BVxpulpZ.js +1 -0
- package/dist/public/assets/{mermaid.core-Bn6Q9XXR.js → mermaid.core-F1GwOUF1.js} +3 -3
- package/dist/public/assets/{mindmap-definition-FAOFIHXS-CcvQ-MXn.js → mindmap-definition-FAOFIHXS-FCm0u13z.js} +1 -1
- package/dist/public/assets/{pegDiagram-VL7TDLO6-CgYLYwO0.js → pegDiagram-VL7TDLO6-BbT62SD0.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-B5YFCfmA.js → pending-receive-nav-store-tATiLz5K.js} +1 -1
- package/dist/public/assets/{pieDiagram-7S7Q4E2Y-CQIjti_a.js → pieDiagram-7S7Q4E2Y-BJNWjsh4.js} +1 -1
- package/dist/public/assets/{pierre-theme-DvUAgu98.js → pierre-theme-C-t7fYw4.js} +1 -1
- package/dist/public/assets/{preferred-session-events-BaHzKMnN.js → preferred-session-events-D23QukOQ.js} +1 -1
- package/dist/public/assets/{prod-CLa_vJbk.js → prod-CxRC-Qp7.js} +4 -4
- package/dist/public/assets/{progress-BH9xaz2e.js → progress-DqKVGUPv.js} +4 -4
- package/dist/public/assets/{quadrantDiagram-CIZ2JOQS-DuNJGeBa.js → quadrantDiagram-CIZ2JOQS-CIAFe2Yx.js} +1 -1
- package/dist/public/assets/{railroadDiagram-AXF67PYL-C85uSObP.js → railroadDiagram-AXF67PYL-z8dJWtZ0.js} +1 -1
- package/dist/public/assets/{requirementDiagram-LRYGKXZP-BXrpr1j3.js → requirementDiagram-LRYGKXZP-BLUmU7lf.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-W5VNT64P-DzYrkeo7.js → sankeyDiagram-W5VNT64P-DwOYO9rY.js} +1 -1
- package/dist/public/assets/{selection-context-ByuyXymU.js → selection-context-C7GkLjF6.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-SI44F4Z6-Cf6wHWjC.js → sequenceDiagram-SI44F4Z6-CaFn_mL8.js} +1 -1
- package/dist/public/assets/{src-D4hratVH.js → src-BXx-EsNC.js} +1 -1
- package/dist/public/assets/{stateDiagram-OKZ733FA-9Rg5VJGs.js → stateDiagram-OKZ733FA-eaUxVBOS.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CaQfCbFq.js +1 -0
- package/dist/public/assets/{swimlanes-SLNWSIFB-CAVgvhB7.js → swimlanes-SLNWSIFB-BxWGE_7Y.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-CEPnDPH7.js +8 -0
- package/dist/public/assets/{syntax-CKL08zSk.js → syntax-sfl_d8Li.js} +1 -1
- package/dist/public/assets/tag-pill-input-CpqGo9X9.js +1 -0
- package/dist/public/assets/{telemetry-impl-BcNn4Cy4.js → telemetry-impl-Cwb_fUix.js} +1 -1
- package/dist/public/assets/{telemetry-startup-wdGBJvAj.js → telemetry-startup-Beq4pPTJ.js} +1 -1
- package/dist/public/assets/{timeline-definition-Z64GVDOM-CgsgxSIN.js → timeline-definition-Z64GVDOM-BUklZaYO.js} +1 -1
- package/dist/public/assets/{trim-lines-DfV8CCf7.js → trim-lines-DUSR4OI1.js} +1 -1
- package/dist/public/assets/typing-burst-detector-Bky0Uf5I.js +8 -0
- package/dist/public/assets/{use-activity-panel-Deu-fFDZ.js → use-activity-panel-BcSX-2vK.js} +1 -1
- package/dist/public/assets/{use-open-skill-DZLBQTON.js → use-open-skill-CwYfqsE-.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-Os-wpx6W.js → use-terminal-enabled-BtJN1Ej9.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-BlLn-ZUs.js → use-timeline-entry-diff-C_vMkhk8.js} +1 -1
- package/dist/public/assets/{vennDiagram-T6HMQDX7-XL0mnmh6.js → vennDiagram-T6HMQDX7-D5U0ZIl2.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-T6FBY63Y-Be2NrWXE.js → wardleyDiagram-T6FBY63Y-No5BmkiI.js} +1 -1
- package/dist/public/assets/{xychartDiagram-ELKLHX3M-vD-tBwgP.js → xychartDiagram-ELKLHX3M-CM_KjEoD.js} +1 -1
- package/dist/public/index.html +31 -31
- package/dist/{registry-probes-30qhugB8.mjs → registry-probes-BCYLuGAW.mjs} +1 -1
- package/dist/{removal-file-path-BEbm-0rr.mjs → removal-file-path-C94YYdie.mjs} +1 -1
- package/dist/{repair-launch-json-_YwH5w8W.mjs → repair-launch-json-BLHEsJOF.mjs} +1 -1
- package/dist/{repair-mcp-configs-DaXHfouZ.mjs → repair-mcp-configs-CRfhQbOD.mjs} +1 -1
- package/dist/src-C2dLuB-4.mjs +16 -0
- package/dist/src-DwoGfost.mjs +1 -0
- package/dist/start-B4k7Ovrz.mjs +1 -0
- package/dist/{start-CHPwQSO0.mjs → start-uMGB8N0f.mjs} +3 -3
- package/package.json +4 -4
- package/dist/constants-CGJTsPn3.mjs +0 -1
- package/dist/init-CvnXSulz.mjs +0 -1
- package/dist/loader-CpT_mIAm.mjs +0 -1
- package/dist/preview-t8nmChxA.mjs +0 -1
- package/dist/public/assets/EditorModeToggle-BvJmVoGv.js +0 -1
- package/dist/public/assets/FeedbackForm-DOfFV6tX.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-CqB5p1RR.js +0 -1
- package/dist/public/assets/PropertyDisplayRow-CFf2KJyB.js +0 -2
- package/dist/public/assets/SourceEditor-DWvkGKgL.js +0 -1
- package/dist/public/assets/channel-OzAyj6l2.js +0 -1
- package/dist/public/assets/classDiagram-JCYQIIEL-DF0YJ6u8.js +0 -1
- package/dist/public/assets/classDiagram-v2-OCEON4UE-CQ-KKEQq.js +0 -1
- package/dist/public/assets/cm-theme-o8S36rrW.js +0 -1
- package/dist/public/assets/dist-XYmEWMox.js +0 -1
- package/dist/public/assets/flowDiagram-UKHOOZJN-Dn0Imle8.js +0 -1
- package/dist/public/assets/frontmatter-tags-BHCWOjTl.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-SHS635CF.js +0 -1
- package/dist/public/assets/mermaid.core-Dta0iWzH.js +0 -1
- package/dist/public/assets/stateDiagram-v2-UEYNNEHI-CXxmQOoG.js +0 -1
- package/dist/public/assets/swimlanesDiagram-ULZ7WXOC-DhOdVr-O.js +0 -8
- package/dist/public/assets/tag-pill-input-TIigqEpB.js +0 -1
- package/dist/public/assets/typing-burst-detector-Bjq2UwET.js +0 -8
- package/dist/src-DF5_33AU.mjs +0 -16
- package/dist/src-DsQ0cj-4.mjs +0 -1
- package/dist/start-BRIc7GoN.mjs +0 -1
- /package/dist/public/assets/{ccount-BoHE53_k.js → ccount-Cc4-GkFF.js} +0 -0
- /package/dist/public/assets/{katex-ByejJr4L.js → katex-ACpOp-9g.js} +0 -0
- /package/dist/public/assets/{lib-DlDYgFfS.js → lib-D0X048Zn.js} +0 -0
- /package/dist/public/assets/{space-separated-tokens-l9yufOSK.js → space-separated-tokens-B5lqTxi5.js} +0 -0
package/dist/public/assets/{SettingsDialogBody-hdv9GlF5.js → SettingsDialogBody-Bcv_vYHe.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-DRTRCZUD.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-Cr37eoc8.js","./tooltip-DBqLYfio.js","./dist-YVu4MRkZ2.js","./floating-ui.dom-DkPPH5vF.js","./dist-CxbWbOvU.js","./badge-DmdA1C7r.js","./dist-BsJYDohW.js","./external-link-CldCnbtR.js","./button-DzgjsZzC.js","./SharingSection-B50Zk2JJ.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-AsZcO0Jk.js","./info-CyR0W2SK.js","./skeleton-C73NNmDC.js","./AccountSection-
|
|
2
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-BXrUEeRU.js";import{n as c,r as l,t as u}from"./alert-C5P8xmgI.js";import{t as d}from"./lazy-with-preload-ChxMVo6x.js";import{r as f}from"./settings-host-gates-Bs87lC6V.js";import{n as p}from"./settings-fields-ATTf0OaW.js";import{t as m}from"./SettingsSectionHeader-Cr37eoc8.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-DRTRCZUD.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-B50Zk2JJ.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-CSXq4lUU.js`);return{AccountSection:e}},__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,56,57,58,59,60,61,62,63,20,21,14,29,22,64,19,13,16,65,66,67,68,15,69,70,71,17,72,73,74,75,76,77,23,24,26,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,25,18,34,97]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-V1XIxXWn.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([98,1,55,2,3,4,12,6,7,8,13,14,9,10,11,99,16,15,100,101,102,41,42,43,44,45,46,47,48,49,50,51,52,77,65,17,103,74,104,105,106,79,22,64,26,24,107,108,5,19,20,21,109,33,110,111,80,112,113,114,115,116,29,30,69,40,117,118,119,23,78,120,121,122,123,124,125,126,127,128,18,25,129,96,130,131]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-BZny6Oc-.js`);return{AttachmentsSection:e}},__vite__mapDeps([132,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,133,12,134,30,24,135,136,28,110,137,138,93,74,139,5,26,78,79,80,120,121,96,34,140,86,141,18,15,23,25,142]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-BsD_z17t.js`);return{ContentRulesSection:e}},__vite__mapDeps([143,37,1,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,5,12,144,145,146,147,148,18,15,23,24,25,86]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-C5yOp45E.js`);return{SectionSkeleton:e}},__vite__mapDeps([149,133,1,2,3,4,38,63,20,21,6,7,8,14,29,22,64,19,9,10,11,13,16,65,66,12,134,30,24,135,136,28,110,60,40,137,138,93,74,139,5,31,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-CdlM-RR4.js`);return{HotkeysSection:e}},__vite__mapDeps([150,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,151,152,90,91,92]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-1i0PsO1c.js`);return{IntegrationsSection:e}},__vite__mapDeps([153,1,2,3,4,154,16,155,156,95,157,17,9,10,11,31,8,26,7,24,78,79,6,22,64,80,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-CM9TVljO.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([158,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,78,79,64,80,86]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-DHJ4-YoV.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-DHJ4-YoV.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-DHJ4-YoV.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-DQdZArKE.js`);return{NetworkAccessSection:e}},__vite__mapDeps([229,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,106,6,7,79,22,64,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,96,230,231,86,141]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-D-T6Z6dG.js`);return{OkignoreSection:e}},__vite__mapDeps([232,1,233,8,4,2,3,19,20,21,6,7,14,22,9,10,11,65,16,234,74,80,31,201,55,177,178,46,45,179,62,48,182,84,85,42,86,52,183,202,203,204,205,49,18,15,23,24,25,235,26,96,34,142]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-CDlx8JGk.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([236,1,2,3,4,137,16,9,237,55,106,6,7,8,79,22,64,26,24,11,10,114,115,116,20,21,14,29,30,65,69,238,93,80,31,41,42,43,44,45,46,47,48,49,50,51,52,215,17,78,120,5,121,96,140,84,85,86,239,202,18,19,15,23,25,34,227,88,89,90,91,92]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-DJOJRJWx.js`);return{SearchSection:e}},__vite__mapDeps([240,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,67,6,7,12,13,14,10,11,69,16,241,84,85,86,18,19,20,21,22,15,23,24,25,26,78,79,64,80,120,5,121,96,231,141]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-C3olYKp8.js`);return{SkillsManagerSection:e}},__vite__mapDeps([242,1,2,3,4,106,6,7,8,79,22,64,9,26,24,11,10,16,155,114,115,116,20,21,14,29,30,65,69,95,93,31,112,19,109,111,113,40,101,117,118,119,51,52,218,18,15,23,25,78,80,96,34,222,55,41,42,43,44,45,46,47,48,49,50,84,85,86,202,211,221,209,227,88,204,205,210,123,122]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DMUCz0S2.js`);return{SlidesPluginSection:e}},__vite__mapDeps([243,1,2,3,4,15,16,73,9,200,19,20,21,6,7,8,14,22,10,11,65,95,26,24,76,77,43,42,44,45,18,23,25,244,96,140,89,90,91,92]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-jC-_KK_s.js`);return{SyncSection:e}},__vite__mapDeps([245,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,67,134,30,24,36,68,15,69,70,71,17,72,73,74,75,76,77,23,26,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,25,246,5,28,185,161,162,163,164,165,166,167,168,169,170,171,160,145,146,172,173,174,147,175,93,176,177,178,179,180,181,182,183,184,127,186,187,12,188,126,189,190,191,192,155,193,135,156,157,194,195,196,33,108,197,198,137,103,111,199,200,201,202,203,204,205,206,152,207,208,209,210,123,211,125,131,118,212,120,121,140,247,18,34]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-4V4PDe2k.js`);return{TerminalSection:e}},__vite__mapDeps([248,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,249,250,86]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-ebkfP2XH.js`);return{ThemePluginSection:e}},__vite__mapDeps([251,1,2,3,4,5,6,7,8,9,10,11,15,16,40,31,41,42,43,44,45,46,47,48,49,50,51,52,252,139,133,38,63,20,21,14,29,22,64,19,13,65,66,12,134,30,24,135,136,28,110,60,137,138,93,74,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141,18,23,25,142,253]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-BT8f0lok.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([254,213,16,1,4,159,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=d(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-Bx7R1XV-.js`),__vite__mapDeps([252,1,139,7,4,5,6,8,3,9,10,11,31,133,2,38,63,20,21,14,29,22,64,19,13,16,65,66,12,134,30,24,135,136,28,110,60,40,137,138,93,74,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141,18,15,23,25,142]),import.meta.url),t(()=>import(`./OkCliPathRow-C6EY6HcU.js`),__vite__mapDeps([255,1,2,3,4,107,6,7,8,13,14,65,16,108,9,10,11,5,19,20,21,22,33,31,26,24,231,52]),import.meta.url),t(()=>import(`./SpellingSettings-DTFaJnWZ.js`),__vite__mapDeps([256,1,21,20,6,7,4,8,3,14,55,2,12,13,9,10,11,19,22,65,16,138,80,31,176,133,38,63,29,64,66,134,30,24,135,136,28,110,60,40,137,93,74,139,5,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,120,121,96,34,140,53,54,56,59,61,62,86,141,151]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(u,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(c,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-DRTRCZUD.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-nJaICi16.js","./createLucideIcon-DdBzwsHe.js","./spinner-Bx8xD6f8.js","./SettingsSectionHeader-Cr37eoc8.js","./tooltip-DBqLYfio.js","./dist-YVu4MRkZ2.js","./floating-ui.dom-DkPPH5vF.js","./dist-CxbWbOvU.js","./badge-DmdA1C7r.js","./dist-BsJYDohW.js","./external-link-CldCnbtR.js","./button-DzgjsZzC.js","./SharingSection-B50Zk2JJ.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-BGzUo_18.js","./ConfigSharingInfoTooltip-AsZcO0Jk.js","./info-CyR0W2SK.js","./skeleton-C73NNmDC.js","./AccountSection-CowlGJFs.js","./SyncStatusBadge-DaMofnew.js","./config-provider-DyQHdVWH.js","./trace-api-BjgnT4Mc.js","./status-SIkheD7g.js","./dist-PQ5KMVDh.js","./schemas-api-DIKsrZIF.js","./schemas-B93JY9Ef.js","./_envelope-q8XHEv4O-C-Qnl5Tu.js","./share-D-LUU2aX-B7Yg0G_m.js","./util-doc-name-DRKmy6g9.js","./constants-cc1-Bt4QPTUe.js","./constants-github-B7yhDvQc.js","./doc-extensions-CcO7K8uD-DG9uHV54.js","./logging-renderer-log-CqIZVUIQ.js","./skill-targets-schema-CQo7KF-N.js","./constants-editors-CfabqCeY.js","./constants-product-B7cMRfgm.js","./use-apply-config-language-BKdqjjzN.js","./preload-helper-Chd9yIcd.js","./dist-C_FzPxEX2.js","./messages-CQD9Zv2_.js","./client-version-CdR5OEoA.js","./css-color-to-hex-DLoRfF4H.js","./use-apply-config-color-theme-DbLCAv5T.js","./use-apply-config-theme-CYFG76sS.js","./saved-themes-client-D8_0b0C1.js","./constants-upload-CVKO8P4d.js","./select-Bu4Wm3Rf.js","./es2015-Dtr4fzLT.js","./check-B2OLRY33.js","./chevron-down-CEv6N8LG.js","./collapsible-BKbszYZV.js","./arrow-up-BGHhPj4y.js","./chevron-right-Bofu4lib.js","./settings-2-DoBlNQMk.js","./git-merge-VDBzSZBV.js","./refresh-cw-CC7UZEnZ.js","./terminal-Cpb4l1oH.js","./triangle-alert-BXrUEeRU.js","./DisclosureWarning-D9FQY3uj.js","./terminal-command-events-D9YDrkAn.js","./handoff-DzPPe6fp.js","./dialog-BJEjKJjL.js","./electron-drag-strip-D9GZhMg_.js","./x-DM2drskU.js","./popover-BhiLJhH5.js","./dist-D1AbXGbs.js","./use-conflicts-DNiHZHRG.js","./documents-events-BLdDDkgL.js","./schemas-cc1-yd7Jnf8d.js","./config-errors-D_yVSvNT.js","./use-git-sync-status-D7jzQObo.js","./doc-hash-BJkweiX9.js","./use-settings-route-Bj-m9X61.js","./keyboard-shortcuts-FtScAm_I.js","./dist-Dc8tD1th.js","./w3c-keyname-C7Rznu6R.js","./trash-2-CchZ0T47.js","./AuthModal-DFNZnQuX.js","./copy-DpWa6i2v.js","./input-C-Qm8YDT.js","./auth-state-cache-Ct36LHOx.js","./AgentConnectionsSection-V1XIxXWn.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-BPF2tZVE.js","./cursor-B6reg1lS.js","./agent-registry-CIU-Kw1G.js","./search-CFu4WXqc.js","./TerminalLaunchContext-B3McB-vb.js","./agent-connections-D3CCdbtf.js","./alert-dialog-BA3e7-10.js","./checkbox-CKD8LETI.js","./minus-DdRxss3A.js","./folder-QqUoFRPR.js","./monitor-IXzxTnmk.js","./sparkles-BS2TX_Um.js","./AgentIconCluster-BEGR8gsd.js","./OpenInAgentMenuItem-Bd9Zl2ks.js","./dropdown-menu-DtLu9NwU.js","./dist-UouvQIiM.js","./dist-d0R4nnoB.js","./copilot-Dh1BU6kS.js","./utils-random-uuid-D7CMpgvf.js","./mascot-outline-CtS592mc.js","./field-DFJgKWGh.js","./separator-D7s_9ZwH.js","./tool-list-format-CS7MZY1Q.js","./constants-skills-BLHVRW90.js","./bool-pref-CqB9j4bL.js","./storage-scope-D7iYzqgX.js","./bridge-J-D0yfAt.js","./structural-freshness-CIbkMFA3-CWi_lyiW.js","./terminal-cli-display-UdQ8w20d.js","./settings-section-labels-D3PrlIPU.js","./catalog-BinlaYrt.js","./use-workspace-BaTgM_V-.js","./AttachmentsSection-85LnQHCB.js","./field-controls-BuDfcEQ5.js","./toggle-group-B7p69Qfd.js","./circle-alert-eBm4JPxY.js","./ThemePicker-pc5gwEur.js","./plus-zPnYzcqL.js","./rotate-ccw-Zi1IjIg9.js","./form-C7T0XZ40.js","./textarea-CxCxTFe9.js","./config-schema-DztM21_Q.js","./config-validation-events-3d_vjJGq.js","./ContentRulesSection-mTywn1H0.js","./markdown-lint-Sq_kGPCg.js","./lib-CY2yz3tg.js","./ccount-Cc4-GkFF.js","./syntax-sfl_d8Li.js","./markdownit-Czp42FlT.js","./field-controls-C5yOp45E.js","./HotkeysSection-CdlM-RR4.js","./settings-host-gates-Bs87lC6V.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-1i0PsO1c.js","./InstallInClaudeDesktopDialog-DNy01p3t.js","./arrow-right-NOQZeKIW.js","./circle-check-nK1yRBIw.js","./download-BouT3__0.js","./LinkPreviewsSection-Dunim138.js","./LintingSection-CR6EIafl.js","./CodeMirrorPropInput-UA1el3M1.js","./dist-DseqKdAU.js","./dist-D2SphF3p.js","./dist-CjyZozAk.js","./dist-BxTTaZ5o.js","./dist-C2Kstufe.js","./dist-BvhrN0Uj.js","./dist-DKYEqMZn.js","./dist-D5mDCusD.js","./dist-BpU-J2LR.js","./dist-BkE9d74i.js","./stex-CUzil_LB.js","./lib-D0X048Zn.js","./space-separated-tokens-B5lqTxi5.js","./trim-lines-DUSR4OI1.js","./folder-open-COGOeTzI.js","./with-selector-zVo3Fruj.js","./navigation-targets-CcY2FHJZ.js","./file-tree-utils-BPUSn1l0.js","./doc-paths-cEiFVCxr.js","./cm-theme-DsKCc8Du.js","./desktop-bridge---4upEWA.js","./page-list-cache-B9RqU_KB.js","./documents-fetch-Y7Dt9_Tn.js","./note-window-mode-CI3Yju9B.js","./DocumentContext-Bpjsqo1P.js","./propagation-api-BP58TooP.js","./context-api-D2PVlCLE.js","./lib-DoyE8anS.js","./lib-BZsAU7Y2.js","./lib-7Zm1Z07d.js","./git-branch-CeTudSak.js","./Mermaid-DrDUd07u.js","./maximize-2-DjzhPUDZ.js","./ime-composition-gK1nUjUW.js","./prop-types-ZtKgQMRh.js","./hash-C4CJQURT.js","./local-menu-action-bus-Dyh2UJJF.js","./paperclip-BHdV1F_7.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-OcrZt0oM.js","./PageListContext-CLxDIn56.js","./parse-api-error-CeEVOj25.js","./startup-marks-YB3zPCjL.js","./perf-CPPbaRwr.js","./diagnostic-breadcrumb-DPgUDxA8.js","./file-tree-rename-validation-DffbHPZY.js","./use-collab-url-QvSzKabe.js","./excalidraw-scene-WvG0vu5I.js","./known-skill-dirs-DtxJ8qaH.js","./skill-scope-CfyUkpZa.js","./skills-api-BJWscOmZ.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-CtDE2R0v.js","./square-pen-BoydeSu6.js","./DeleteConfirmationDialog-ieHhkDD6.js","./card-hDaniKMv.js","./SkillInstallMenu-DDMeuUUL.js","./ChangedOutsideBadge-8zUyJrla.js","./context-menu-BUaFDCn_.js","./dist-ecS2llwR.js","./use-skills-CoZ4zzvv.js","./use-skill-targets-DQ4dL6NQ.js","./markdownlint-rule-browser-dtdwuRgB.js","./tag-pill-input-CpqGo9X9.js","./lint-config-client-CCGSFVIS.js","./use-open-skill-CwYfqsE-.js","./open-managed-artifact-tab-Cobbc3dW.js","./schema-fields-view-intent-Cvy9lVgj.js","./NetworkAccessSection-TETzOWD_.js","./restart-collab-server-CEDAvS-U.js","./channel-cli-copy-JyS-Y0NW.js","./OkignoreSection-D-T6Z6dG.js","./sortable.esm-DqMaGAbW.js","./grip-vertical-DNbkgWZL.js","./config-ignore-nested-error-events-CXdA3495.js","./ProjectTemplatesSection-CDlx8JGk.js","./TemplateRow-DnL_ZwrM.js","./file-plus-DKxOZh2k.js","./folder-config-api-CJ0YtcMT.js","./SearchSection-ey8z-UyU.js","./use-semantic-search-status-rn1T1N4H.js","./SkillsManagerSection-C3olYKp8.js","./SlidesPluginSection-DMUCz0S2.js","./input-group-DIqZFoTY.js","./SyncSection-BIbeHZvp.js","./PublishToGitHubDialog-DHCNHDEf.js","./clipboard-adapter-CLfw2Wmx.js","./TerminalSection-DQWuBL3s.js","./use-terminal-enabled-BtJN1Ej9.js","./terminal-telemetry-DrQUqFfT.js","./ThemePluginSection-ebkfP2XH.js","./schema-section-Bx7R1XV-.js","./settings-fields-ATTf0OaW.js","./lint-plugins-KeEVAAw5.js","./OkCliPathRow-C6EY6HcU.js","./SpellingSettings-DTFaJnWZ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-BXrUEeRU.js";import{n as c,r as l,t as u}from"./alert-C5P8xmgI.js";import{t as d}from"./lazy-with-preload-ChxMVo6x.js";import{r as f}from"./settings-host-gates-Bs87lC6V.js";import{n as p}from"./settings-fields-ATTf0OaW.js";import{t as m}from"./SettingsSectionHeader-Cr37eoc8.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-DRTRCZUD.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-B50Zk2JJ.js`);return{SharingSection:e}},__vite__mapDeps([27,1,2,3,4,28,6,7,8,29,30,13,14,9,10,11,31,32,19,20,21,22,33,16,18,15,23,24,25,26,34]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-CowlGJFs.js`);return{AccountSection:e}},__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,56,57,58,59,60,61,62,63,20,21,14,29,22,64,19,13,16,65,66,67,68,15,69,70,71,17,72,73,74,75,76,77,23,24,26,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,25,18,34,97]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-V1XIxXWn.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([98,1,55,2,3,4,12,6,7,8,13,14,9,10,11,99,16,15,100,101,102,41,42,43,44,45,46,47,48,49,50,51,52,77,65,17,103,74,104,105,106,79,22,64,26,24,107,108,5,19,20,21,109,33,110,111,80,112,113,114,115,116,29,30,69,40,117,118,119,23,78,120,121,122,123,124,125,126,127,128,18,25,129,96,130,131]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-85LnQHCB.js`);return{AttachmentsSection:e}},__vite__mapDeps([132,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,133,12,134,30,24,135,136,28,110,137,138,93,74,139,5,26,78,79,80,120,121,96,34,140,86,141,18,15,23,25,142]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-mTywn1H0.js`);return{ContentRulesSection:e}},__vite__mapDeps([143,37,1,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,5,12,144,145,146,147,148,18,15,23,24,25,86]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-C5yOp45E.js`);return{SectionSkeleton:e}},__vite__mapDeps([149,133,1,2,3,4,38,63,20,21,6,7,8,14,29,22,64,19,9,10,11,13,16,65,66,12,134,30,24,135,136,28,110,60,40,137,138,93,74,139,5,31,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-CdlM-RR4.js`);return{HotkeysSection:e}},__vite__mapDeps([150,2,1,3,4,9,18,19,20,21,6,7,8,14,22,10,11,15,16,23,24,25,151,152,90,91,92]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-1i0PsO1c.js`);return{IntegrationsSection:e}},__vite__mapDeps([153,1,2,3,4,154,16,155,156,95,157,17,9,10,11,31,8,26,7,24,78,79,6,22,64,80,25,18,19,20,21,14,15,23]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-Dunim138.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([158,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,26,78,79,64,80,86]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-CR6EIafl.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-CR6EIafl.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-CR6EIafl.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([159,1,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,16,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,213,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-TETzOWD_.js`);return{NetworkAccessSection:e}},__vite__mapDeps([229,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,106,6,7,79,22,64,26,24,11,10,5,28,29,30,13,14,12,18,19,20,21,15,16,23,25,96,230,231,86,141]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-D-T6Z6dG.js`);return{OkignoreSection:e}},__vite__mapDeps([232,1,233,8,4,2,3,19,20,21,6,7,14,22,9,10,11,65,16,234,74,80,31,201,55,177,178,46,45,179,62,48,182,84,85,42,86,52,183,202,203,204,205,49,18,15,23,24,25,235,26,96,34,142]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-CDlx8JGk.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([236,1,2,3,4,137,16,9,237,55,106,6,7,8,79,22,64,26,24,11,10,114,115,116,20,21,14,29,30,65,69,238,93,80,31,41,42,43,44,45,46,47,48,49,50,51,52,215,17,78,120,5,121,96,140,84,85,86,239,202,18,19,15,23,25,34,227,88,89,90,91,92]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-ey8z-UyU.js`);return{SearchSection:e}},__vite__mapDeps([240,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,67,6,7,12,13,14,10,11,69,16,241,84,85,86,18,19,20,21,22,15,23,24,25,26,78,79,64,80,120,5,121,96,231,141]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-C3olYKp8.js`);return{SkillsManagerSection:e}},__vite__mapDeps([242,1,2,3,4,106,6,7,8,79,22,64,9,26,24,11,10,16,155,114,115,116,20,21,14,29,30,65,69,95,93,31,112,19,109,111,113,40,101,117,118,119,51,52,218,18,15,23,25,78,80,96,34,222,55,41,42,43,44,45,46,47,48,49,50,84,85,86,202,211,221,209,227,88,204,205,210,123,122]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DMUCz0S2.js`);return{SlidesPluginSection:e}},__vite__mapDeps([243,1,2,3,4,15,16,73,9,200,19,20,21,6,7,8,14,22,10,11,65,95,26,24,76,77,43,42,44,45,18,23,25,244,96,140,89,90,91,92]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-BIbeHZvp.js`);return{SyncSection:e}},__vite__mapDeps([245,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,63,20,21,6,7,14,29,22,64,19,10,11,13,16,65,66,67,134,30,24,36,68,15,69,70,71,17,72,73,74,75,76,77,23,26,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,25,246,5,28,185,161,162,163,164,165,166,167,168,169,170,171,160,145,146,172,173,174,147,175,93,176,177,178,179,180,181,182,183,184,127,186,187,12,188,126,189,190,191,192,155,193,135,156,157,194,195,196,33,108,197,198,137,103,111,199,200,201,202,203,204,205,206,152,207,208,209,210,123,211,125,131,118,212,120,121,140,247,18,34]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-DQWuBL3s.js`);return{TerminalSection:e}},__vite__mapDeps([248,1,37,38,39,40,4,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,31,8,56,57,58,59,60,2,61,62,12,6,7,13,14,10,11,18,19,20,21,22,15,16,23,24,25,249,250,86]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-ebkfP2XH.js`);return{ThemePluginSection:e}},__vite__mapDeps([251,1,2,3,4,5,6,7,8,9,10,11,15,16,40,31,41,42,43,44,45,46,47,48,49,50,51,52,252,139,133,38,63,20,21,14,29,22,64,19,13,65,66,12,134,30,24,135,136,28,110,60,137,138,93,74,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141,18,23,25,142,253]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-KeEVAAw5.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([254,213,16,1,4,159,160,54,161,162,92,163,164,165,166,167,168,169,170,171,21,37,38,39,40,9,3,41,42,43,44,45,46,47,48,49,50,51,52,53,55,31,8,56,57,58,59,60,2,61,62,91,145,146,172,173,174,147,175,93,176,177,178,179,180,181,182,25,88,183,184,127,106,6,7,79,22,64,26,24,11,10,5,12,13,14,185,186,187,63,20,29,19,65,66,67,188,126,189,190,191,68,192,155,193,74,78,80,69,135,156,95,157,194,70,195,196,33,17,108,197,198,137,103,111,199,200,201,84,85,86,202,203,204,205,206,23,96,152,81,82,207,208,209,210,123,211,125,131,118,212,144,148,15,71,214,215,75,216,107,217,114,115,116,30,109,112,113,101,117,119,218,219,220,221,222,18,223,138,120,121,34,224,225,226,227,228,89,90]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=d(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-Bx7R1XV-.js`),__vite__mapDeps([252,1,139,7,4,5,6,8,3,9,10,11,31,133,2,38,63,20,21,14,29,22,64,19,13,16,65,66,12,134,30,24,135,136,28,110,60,40,137,138,93,74,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,80,120,121,96,34,140,53,54,55,56,59,61,62,86,141,18,15,23,25,142]),import.meta.url),t(()=>import(`./OkCliPathRow-C6EY6HcU.js`),__vite__mapDeps([255,1,2,3,4,107,6,7,8,13,14,65,16,108,9,10,11,5,19,20,21,22,33,31,26,24,231,52]),import.meta.url),t(()=>import(`./SpellingSettings-DTFaJnWZ.js`),__vite__mapDeps([256,1,21,20,6,7,4,8,3,14,55,2,12,13,9,10,11,19,22,65,16,138,80,31,176,133,38,63,29,64,66,134,30,24,135,136,28,110,60,40,137,93,74,139,5,41,42,43,44,45,46,47,48,49,50,51,52,26,78,79,120,121,96,34,140,53,54,56,59,61,62,86,141,151]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(u,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(c,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
|
package/dist/public/assets/{ShareReceiveMissDialog-BswtkG8U.js → ShareReceiveMissDialog-MpyX-2te.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-tATiLz5K.js";import{t as l}from"./miss-dialog-store-CsiJb9Ou.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-BJEjKJjL.js";import{l as h,u as g}from"./doc-hash-BJkweiX9.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=g(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?g(e):h(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-BGzUo_18.js";import{O as ee}from"./schemas-api-DIKsrZIF.js";import{a as l,c as te,i as u,n as d,o as f,s as p,t as m}from"./dialog-BJEjKJjL.js";import{l as h}from"./skill-scope-CfyUkpZa.js";import{E as ne,u as re}from"./skills-api-BJWscOmZ.js";import{t as ie}from"./input-C-Qm8YDT.js";import{t as ae}from"./MultiFileDiff-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./label-CvMpFFbN.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-BGzUo_18.js";import{O as ee}from"./schemas-api-DIKsrZIF.js";import{a as l,c as te,i as u,n as d,o as f,s as p,t as m}from"./dialog-BJEjKJjL.js";import{l as h}from"./skill-scope-CfyUkpZa.js";import{E as ne,u as re}from"./skills-api-BJWscOmZ.js";import{t as ie}from"./input-C-Qm8YDT.js";import{t as ae}from"./MultiFileDiff-BjX5FEfb.js";import{t as oe}from"./pierre-theme-C-t7fYw4.js";var se=a(),g=e(n(),1),_=t();function v(e){let t=(0,se.c)(60),{target:n,onOpenChange:a}=e,{_:v}=i(),y=(0,g.useId)(),[b,x]=(0,g.useState)(null),[S,C]=(0,g.useState)(null),[w,T]=(0,g.useState)(!1),[E,D]=(0,g.useState)(!1),[O,k]=(0,g.useState)(``),[A,j]=(0,g.useState)(!1),M;t[0]===n?M=t[1]:(M=()=>{if(x(null),C(null),T(!1),D(!1),!n)return;let{skill:e,editor:t}=n,r=e.absolutePath?.slice(0,-`/${e.path}`.length)??null;if(r===null){T(!0);return}let i=`${r}/${e.path.replace(/\/SKILL\.mdx?$/i,``)}`,a=`${r}/${h(t,e.scope)}/${e.name}`,o=new AbortController;for(let[t,n]of[[i,C],[a,x]])re({source:t,name:e.name},o.signal).then(e=>{o.signal.aborted||(e.ok?n(e.skillMd):T(!0))}).catch(()=>{o.signal.aborted||T(!0)});return()=>o.abort()},t[0]=n,t[1]=M);let N=n?.skill.scope,P=n?.skill.name,F=n?.editor,I;if(t[2]!==N||t[3]!==P||t[4]!==F?(I=[N,P,F],t[2]=N,t[3]=P,t[4]=F,t[5]=I):I=t[5],(0,g.useEffect)(M,I),!n)return null;let{skill:L,editor:R}=n,z;t[6]!==v||t[7]!==R||t[8]!==a||t[9]!==L.name||t[10]!==L.scope||t[11]!==n||t[12]!==O?(z=async function(e){if(!n)return;j(!0);let t=await ne({scope:L.scope,name:L.name,editor:R,action:e,...e===`rename`?{toName:O.trim()}:{}});if(j(!1),!t.ok){c.error(v({id:`MIF36T`,values:{0:t.error}}));return}c.success(v(e===`align`?{id:`QKgePK`,values:{editor:R}}:e===`make-source`?{id:`It9oAP`,values:{editor:R}}:{id:`b2ezG_`,values:{0:O.trim()}})),a(!1)},t[6]=v,t[7]=R,t[8]=a,t[9]=L.name,t[10]=L.scope,t[11]=n,t[12]=O,t[13]=z):z=t[13];let B=z,V,H;t[14]!==L.name||t[15]!==O?(H=O.trim(),V=H===``||!ee.test(H)||H===L.name,t[14]=L.name,t[15]=O,t[16]=V,t[17]=H):(V=t[16],H=t[17]);let U=V,W;t[18]!==A||t[19]!==a?(W=e=>{!e&&!A&&a(!1)},t[18]=A,t[19]=a,t[20]=W):W=t[20];let G;t[21]!==R||t[22]!==L.name?(G=(0,_.jsx)(te,{children:(0,_.jsx)(r,{id:`q8aCbb`,values:{0:L.name,editor:R}})}),t[21]=R,t[22]=L.name,t[23]=G):G=t[23];let K;t[24]===R?K=t[25]:(K=(0,_.jsx)(l,{children:(0,_.jsx)(r,{id:`QASTNu`,values:{editor:R}})}),t[24]=R,t[25]=K);let q;t[26]!==K||t[27]!==G?(q=(0,_.jsxs)(p,{children:[G,K]}),t[26]=K,t[27]=G,t[28]=q):q=t[28];let J;t[29]!==S||t[30]!==b||t[31]!==w||t[32]!==L.name?(J=S!==null&&b!==null?(0,_.jsx)(ae,{className:`pierre-diff`,oldFile:{name:L.name,contents:S},newFile:{name:L.name,contents:b},options:{overflow:`wrap`,diffStyle:`unified`,theme:oe()}}):w?(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center px-6 text-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`5BlXTD`})}):(0,_.jsx)(`div`,{className:`flex min-h-56 items-center justify-center text-muted-foreground text-sm`,children:(0,_.jsx)(r,{id:`1V17kO`})}),t[29]=S,t[30]=b,t[31]=w,t[32]=L.name,t[33]=J):J=t[33];let Y;t[34]!==B||t[35]!==R||t[36]!==y||t[37]!==U||t[38]!==E||t[39]!==L.name||t[40]!==O||t[41]!==H?(Y=E?(0,_.jsxs)(`div`,{className:`mt-3 space-y-1.5`,children:[(0,_.jsx)(o,{htmlFor:y,children:(0,_.jsx)(r,{id:`pSimwP`,values:{editor:R}})}),(0,_.jsx)(ie,{id:y,value:O,onChange:e=>k(e.target.value),placeholder:`${L.name}-${R}`,"aria-invalid":U&&H!==``,onKeyDown:e=>{e.key===`Enter`&&!U&&B(`rename`)}})]}):null,t[34]=B,t[35]=R,t[36]=y,t[37]=U,t[38]=E,t[39]=L.name,t[40]=O,t[41]=H,t[42]=Y):Y=t[42];let X;t[43]!==J||t[44]!==Y?(X=(0,_.jsxs)(d,{className:`min-h-0 flex-1 overflow-auto`,children:[J,Y]}),t[43]=J,t[44]=Y,t[45]=X):X=t[45];let Z;t[46]!==B||t[47]!==A||t[48]!==R||t[49]!==U||t[50]!==E||t[51]!==L.name?(Z=(0,_.jsx)(f,{children:E?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>D(!1),disabled:A,children:(0,_.jsx)(r,{id:`iH8pgl`})}),(0,_.jsx)(s,{onClick:()=>void B(`rename`),disabled:A||U,children:(0,_.jsx)(r,{id:`AT0e50`})})]}):(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(s,{variant:`outline`,onClick:()=>{k(`${L.name}-${R}`),D(!0)},disabled:A,children:(0,_.jsx)(r,{id:`AT0e50`})}),(0,_.jsx)(s,{variant:`outline`,onClick:()=>void B(`make-source`),disabled:A,children:(0,_.jsx)(r,{id:`xWomUD`,values:{editor:R}})}),(0,_.jsx)(s,{onClick:()=>void B(`align`),disabled:A,children:(0,_.jsx)(r,{id:`PZn2LP`})})]})}),t[46]=B,t[47]=A,t[48]=R,t[49]=U,t[50]=E,t[51]=L.name,t[52]=Z):Z=t[52];let Q;t[53]!==q||t[54]!==X||t[55]!==Z?(Q=(0,_.jsxs)(u,{className:`flex max-h-[85vh] w-full flex-col sm:max-w-5xl`,children:[q,X,Z]}),t[53]=q,t[54]=X,t[55]=Z,t[56]=Q):Q=t[56];let $;return t[57]!==Q||t[58]!==W?($=(0,_.jsx)(m,{open:!0,onOpenChange:W,children:Q}),t[57]=Q,t[58]=W,t[59]=$):$=t[59],$}export{v as SkillForkDialog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkillUpdateConflictDialog-
|
|
2
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{t as u}from"./switch-BKZTXkzu.js";import{t as d}from"./button-DzgjsZzC.js";import{t as f}from"./arrow-up-right-nJaICi16.js";import{t as p}from"./spinner-Bx8xD6f8.js";import{t as m}from"./refresh-cw-CC7UZEnZ.js";import{t as h}from"./undo-2-xEF_s_Io.js";import{t as g}from"./use-skill-origin-CLlPwrcN.js";var _=o(),v=e(r(),1),y=n(),b=(0,v.lazy)(async()=>({default:(await t(()=>import(`./SkillUpdateConflictDialog-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./SkillUpdateConflictDialog-CgPPIuYI.js","./dist-Nvb76hAm.js","./chunk-CYidjpOJ.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./pierre-theme-C-t7fYw4.js","./preload-helper-Chd9yIcd.js","./engine-compile-BycZLMmD.js","./lib-BZsAU7Y2.js","./ccount-Cc4-GkFF.js","./lib-D0X048Zn.js","./space-separated-tokens-B5lqTxi5.js","./lib-7Zm1Z07d.js","./ok-syntax-theme-DcApB92F.js","./MultiFileDiff-BjX5FEfb.js","./compiler-runtime-BfE3aGVn.js","./button-DzgjsZzC.js","./dist-CSCUSbQc.js","./dist-BsJYDohW.js","./bundle-mjs-SHeFpKGC.js","./utils-CPqDy6Hr.js","./dialog-BJEjKJjL.js","./electron-drag-strip-D9GZhMg_.js","./dist-DTFuvKje.js","./react-dom-DPxgxlDT.js","./dist-CxbWbOvU.js","./es2015-Dtr4fzLT.js","./x-DM2drskU.js","./createLucideIcon-DdBzwsHe.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{i as s,n as c,t as l}from"./tooltip-DBqLYfio.js";import{t as u}from"./switch-BKZTXkzu.js";import{t as d}from"./button-DzgjsZzC.js";import{t as f}from"./arrow-up-right-nJaICi16.js";import{t as p}from"./spinner-Bx8xD6f8.js";import{t as m}from"./refresh-cw-CC7UZEnZ.js";import{t as h}from"./undo-2-xEF_s_Io.js";import{t as g}from"./use-skill-origin-CLlPwrcN.js";var _=o(),v=e(r(),1),y=n(),b=(0,v.lazy)(async()=>({default:(await t(()=>import(`./SkillUpdateConflictDialog-CgPPIuYI.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)).SkillUpdateConflictDialog}));function x(e){let t=(0,_.c)(48),{scope:n,name:r}=e,{_:o}=a(),x;t[0]!==r||t[1]!==n?(x={scope:n,name:r},t[0]=r,t[1]=n,t[2]=x):x=t[2];let{origin:S,github:C,displaySource:w,importedTitle:T,canReimport:E,updateAvailable:D,modified:O,autoUpdate:k,gitTracked:A,setAutoUpdate:j,revertable:M,reimport:N,reimporting:P,previewUpdate:F,revert:I,reverting:L}=g(x),[R,z]=(0,v.useState)(null),B;t[3]!==O||t[4]!==F||t[5]!==N?(B=async function(){if(O){let e=await F();e&&z(e);return}await N()},t[3]=O,t[4]=F,t[5]=N,t[6]=B):B=t[6];let V=B,H;t[7]===N?H=t[8]:(H=async function(){await N(),z(null)},t[7]=N,t[8]=H);let U=H;if(!S)return null;let W;t[9]!==w||t[10]!==C||t[11]!==T?(W=C?(0,y.jsxs)(`a`,{href:C,target:`_blank`,rel:`noreferrer`,title:T??void 0,className:`hidden min-w-0 max-w-48 items-center gap-1 hover:text-foreground @xl/toolbar:flex`,children:[(0,y.jsx)(`span`,{className:`truncate`,children:w}),(0,y.jsx)(f,{className:`size-3 shrink-0`,"aria-hidden":!0})]}):(0,y.jsx)(`span`,{title:T??void 0,className:`hidden min-w-0 max-w-48 truncate @xl/toolbar:inline`,children:w}),t[9]=w,t[10]=C,t[11]=T,t[12]=W):W=t[12];let G;t[13]!==o||t[14]!==k||t[15]!==E||t[16]!==A||t[17]!==j?(G=E?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsxs)(`span`,{className:`flex shrink-0 items-center gap-1`,children:[(0,y.jsx)(`label`,{htmlFor:`skill-auto-update-switch`,className:`hidden cursor-pointer @xl/toolbar:inline`,children:(0,y.jsx)(i,{id:`2M0JF6`})}),(0,y.jsx)(u,{id:`skill-auto-update-switch`,checked:k&&!A,disabled:A,onCheckedChange:e=>void j(e===!0),"aria-label":o({id:`o9fPtM`}),className:`scale-75`})]})}),(0,y.jsx)(c,{side:`bottom`,children:A?(0,y.jsx)(i,{id:`vy_VIN`}):k?(0,y.jsx)(i,{id:`vGQxBT`}):(0,y.jsx)(i,{id:`9p_QBN`})})]}):null,t[13]=o,t[14]=k,t[15]=E,t[16]=A,t[17]=j,t[18]=G):G=t[18];let K;t[19]===O?K=t[20]:(K=O?(0,y.jsxs)(l,{children:[(0,y.jsx)(s,{asChild:!0,children:(0,y.jsx)(`span`,{className:`shrink-0 rounded-sm bg-amber-500/15 px-1.5 py-0.5 font-medium text-[11px] text-amber-700 dark:text-amber-400`,children:(0,y.jsx)(i,{id:`tgWuMB`})})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`s0Iold`})})]}):null,t[19]=O,t[20]=K);let q;t[21]!==o||t[22]!==E||t[23]!==O||t[24]!==P||t[25]!==I||t[26]!==M||t[27]!==L?(q=O&&E&&M?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void I(),disabled:L||P,"aria-label":o({id:`VxLvKE`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[L?(0,y.jsx)(p,{icon:h,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(h,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:L?(0,y.jsx)(i,{id:`fIJtam`}):(0,y.jsx)(i,{id:`jJdwCB`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`XSb9HS`})})]}):null,t[21]=o,t[22]=E,t[23]=O,t[24]=P,t[25]=I,t[26]=M,t[27]=L,t[28]=q):q=t[28];let J;t[29]!==o||t[30]!==E||t[31]!==V||t[32]!==P||t[33]!==L||t[34]!==D?(J=E&&D?(0,y.jsxs)(l,{children:[(0,y.jsx)(d,{variant:`ghost`,size:`sm`,onClick:()=>void V(),disabled:P||L,"aria-label":o({id:`GidGkh`}),className:`shrink-0 gap-1 text-muted-foreground px-2 text-xs hover:text-foreground`,asChild:!0,children:(0,y.jsxs)(s,{children:[P?(0,y.jsx)(p,{icon:m,className:`size-3`,"aria-hidden":!0}):(0,y.jsx)(m,{className:`size-3`,"aria-hidden":!0}),(0,y.jsx)(`span`,{className:`hidden @xl/toolbar:inline`,children:P?(0,y.jsx)(i,{id:`JL3si7`}):(0,y.jsx)(i,{id:`EkH9pt`})})]})}),(0,y.jsx)(c,{side:`bottom`,children:(0,y.jsx)(i,{id:`GidGkh`})})]}):null,t[29]=o,t[30]=E,t[31]=V,t[32]=P,t[33]=L,t[34]=D,t[35]=J):J=t[35];let Y;t[36]!==R||t[37]!==r||t[38]!==U||t[39]!==P?(Y=R?(0,y.jsx)(v.Suspense,{fallback:null,children:(0,y.jsx)(b,{open:!0,onOpenChange:e=>{e||z(null)},skillName:r,localBody:R.localBody,upstreamBody:R.upstreamBody,applying:P,onTakeUpstream:()=>void U()})}):null,t[36]=R,t[37]=r,t[38]=U,t[39]=P,t[40]=Y):Y=t[40];let X;return t[41]!==W||t[42]!==G||t[43]!==K||t[44]!==q||t[45]!==J||t[46]!==Y?(X=(0,y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5 text-muted-foreground text-xs`,children:[W,G,K,q,J,Y]}),t[41]=W,t[42]=G,t[43]=K,t[44]=q,t[45]=J,t[46]=Y,t[47]=X):X=t[47],X}export{x as SkillOriginInline};
|
package/dist/public/assets/{SkillToolbarControls-zrW5N5UZ.js → SkillToolbarControls-EF87XEf5.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-Bu4Wm3Rf.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-Bu4Wm3Rf.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-Ack7vynK.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-DtLu9NwU.js";import{n as w}from"./file-plus-DKxOZh2k.js";import{t as T}from"./list-plus-CYMJBvrm.js";import{p as E,t as D}from"./skill-scope-CfyUkpZa.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./button-DzgjsZzC.js";import{a as i,c as a,i as o,n as s,o as c,s as l,t as u}from"./dialog-BJEjKJjL.js";import{t as d}from"./MultiFileDiff-
|
|
1
|
+
import{t as e}from"./jsx-runtime-BUgB2tll.js";import{n as t}from"./dist-Nvb76hAm.js";import{t as n}from"./compiler-runtime-BfE3aGVn.js";import{t as r}from"./button-DzgjsZzC.js";import{a as i,c as a,i as o,n as s,o as c,s as l,t as u}from"./dialog-BJEjKJjL.js";import{t as d}from"./MultiFileDiff-BjX5FEfb.js";import{t as f}from"./pierre-theme-C-t7fYw4.js";var p=n(),m=e();function h(e){let n=(0,p.c)(38),{open:h,onOpenChange:g,skillName:_,localBody:v,upstreamBody:y,applying:b,onTakeUpstream:x}=e,S;n[0]===_?S=n[1]:(S=(0,m.jsx)(a,{children:(0,m.jsx)(t,{id:`EPKVES`,values:{skillName:_}})}),n[0]=_,n[1]=S);let C;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,m.jsx)(i,{children:(0,m.jsx)(t,{id:`kKw0H3`})}),n[2]=C):C=n[2];let w;n[3]===S?w=n[4]:(w=(0,m.jsxs)(l,{children:[S,C]}),n[3]=S,n[4]=w);let T;n[5]!==v||n[6]!==_?(T={name:_,contents:v},n[5]=v,n[6]=_,n[7]=T):T=n[7];let E;n[8]!==_||n[9]!==y?(E={name:_,contents:y},n[8]=_,n[9]=y,n[10]=E):E=n[10];let D;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(D={overflow:`wrap`,diffStyle:`unified`,theme:f()},n[11]=D):D=n[11];let O;n[12]!==T||n[13]!==E?(O=(0,m.jsx)(s,{className:`min-h-0 flex-1 overflow-auto`,children:(0,m.jsx)(d,{className:`pierre-diff`,oldFile:T,newFile:E,options:D})}),n[12]=T,n[13]=E,n[14]=O):O=n[14];let k;n[15]===g?k=n[16]:(k=()=>g(!1),n[15]=g,n[16]=k);let A;n[17]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,m.jsx)(t,{id:`Tq3pcs`}),n[17]=A):A=n[17];let j;n[18]!==b||n[19]!==k?(j=(0,m.jsx)(r,{variant:`outline`,onClick:k,disabled:b,children:A}),n[18]=b,n[19]=k,n[20]=j):j=n[20];let M;n[21]===b?M=n[22]:(M=b?(0,m.jsx)(t,{id:`JL3si7`}):(0,m.jsx)(t,{id:`qkqG0b`}),n[21]=b,n[22]=M);let N;n[23]!==b||n[24]!==x||n[25]!==M?(N=(0,m.jsx)(r,{onClick:x,disabled:b,children:M}),n[23]=b,n[24]=x,n[25]=M,n[26]=N):N=n[26];let P;n[27]!==j||n[28]!==N?(P=(0,m.jsxs)(c,{children:[j,N]}),n[27]=j,n[28]=N,n[29]=P):P=n[29];let F;n[30]!==P||n[31]!==w||n[32]!==O?(F=(0,m.jsxs)(o,{className:`flex max-h-[85vh] flex-col sm:max-w-5xl`,children:[w,O,P]}),n[30]=P,n[31]=w,n[32]=O,n[33]=F):F=n[33];let I;return n[34]!==g||n[35]!==h||n[36]!==F?(I=(0,m.jsx)(u,{open:h,onOpenChange:g,children:F}),n[34]=g,n[35]=h,n[36]=F,n[37]=I):I=n[37],I}export{h as SkillUpdateConflictDialog};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{Ht as n,It as r,Mt as i,Qn as a,Tn as o,Vt as s,an as c,jt as l,kt as u,lt as ee,qn as te,sn as ne,wn as d}from"./DocumentContext-Bpjsqo1P.js";import{t as f}from"./react-f2sANaYj.js";import{n as p}from"./dist-PQ5KMVDh.js";import{t as m}from"./compiler-runtime-BfE3aGVn.js";import{pt as h}from"./schemas-api-DIKsrZIF.js";import{i as g}from"./use-apply-config-theme-CYFG76sS.js";import{H as re,I as _,L as ie,N as ae,T as oe,b as v,c as se,n as y,o as b,r as ce,t as le,v as x,w as ue,z as de}from"./typing-burst-detector-Bky0Uf5I.js";import{Kn as S,S as C,U as w,Wn as fe,a as pe,at as T,i as me,o as he,st as E}from"./CodeMirrorPropInput-UA1el3M1.js";import{a as D,i as O}from"./constants-skills-BLHVRW90.js";import{t as k}from"./diagnostic-breadcrumb-DPgUDxA8.js";import{n as A}from"./perf-CPPbaRwr.js";import{m as ge}from"./config-provider-DyQHdVWH.js";import{$ as j,At as M,Ct as N,E as P,J as F,K as I,Mt as L,N as R,Nt as z,Tt as _e,X as B,at as V,b as H,et as U,ft as ve,g as W,l as G,lt as K,ot as q,pt as J,st as Y,tt as X,ut as Z,v as ye,wt as be}from"./dist-D2SphF3p.js";import{i as xe,t as Se}from"./dist-DseqKdAU.js";import{i as Ce,n as we,o as Te,r as Ee}from"./dist-DKYEqMZn.js";import{o as De,r as Oe}from"./selection-context-C7GkLjF6.js";import{C as ke,D as Ae,t as je}from"./markdown-lint-Sq_kGPCg.js";import{l as Me}from"./lint-config-client-CCGSFVIS.js";import{a as Ne,i as Pe,n as Fe,o as Ie,r as Le,s as Re,t as ze}from"./dist-Y68DvxP6.js";import{n as Be,t as Ve}from"./src-BXx-EsNC.js";var Q=e(f(),1),He=m();function Ue(){let e=s();return e===null?null:new Set(e.keys())}function We(e,t,n){let r=[],i=R(e);if(n!=null){let a=[];for(let{from:e,to:n}of t)i.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return a.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>a.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);O.lastIndex=0;for(let e=O.exec(t);e!==null;e=O.exec(t)){let t=e[2];if(!D(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(I.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:a,to:o}of t)i.iterate({from:a,to:o,enter(t){if(t.name!==`InlineCode`)return;let i=e.doc.sliceString(t.from,t.to),a=i.length-i.replace(/^`+/,``).length,o=i.length-i.replace(/`+$/,``).length,s=i.slice(a,i.length-o),c=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(s)?.[1];if(c!==void 0&&D(c)&&n!=null)return r.push(I.mark({class:n.has(c)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":c}}).range(t.from+a,t.to-o)),!1;let l=u.exec(s);if(l)return r.push(I.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":l[1]}}).range(t.from+a,t.to-o)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),I.set(r)}function Ge(e){let t=i(e);return t===null?[]:[B.fromClass(class{decorations;constructor(e){this.decorations=We(e.state,e.visibleRanges,Ue())}update(e){(e.docChanged||e.viewportChanged||R(e.startState)!==R(e.state))&&(this.decorations=We(e.view.state,e.view.visibleRanges,Ue()))}},{decorations:e=>e.decorations}),F.domEventHandlers({mousedown(i){let a=i.target?.closest?.(`[data-skill-ref]`),o=a instanceof HTMLElement?a.dataset.skillRef:void 0;if(o!==void 0){i.preventDefault();let e=s()?.get(o);return e===void 0?r():window.location.hash=n(o,e),!0}let c=i.target?.closest?.(`.cm-skill-path-link`),u=c instanceof HTMLElement?c.dataset.skillPath:void 0;return u===void 0?!1:(i.preventDefault(),window.location.hash=l(t,e,u),!0)}})]}var Ke=I.line({attributes:{dir:`auto`}});function qe(e){let t=new M;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Ke),r=n.to+1}return t.finish()}var Je=B.fromClass(class{decorations;constructor(e){this.decorations=qe(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=qe(e.view))}},{decorations:e=>e.decorations}),Ye=[F.perLineTextDirection.of(!0),Je],Xe=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),Ze=`cm-lint-local-target`;function Qe(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function $e(e,t){let n=W(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Xe.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function et(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function tt(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=$e(e,Qe(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:et(i.severity),message:v(i),source:`${i.source}/${i.code}`,markClass:Ze})}return r}var nt=L.define();function rt(e){let t={findings:[]};return[Pe(e=>T()?tt(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(nt)))}),B.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:nt.of(null)}),ze(n)},i=x(e,e=>{e.status===`loaded`&&r(e.findings)}),a=E(()=>r(t.findings));return{destroy(){i(),a()}}})]}function it(e,t){return e.enabled?[Fe(),Pe(async n=>at(n.state.doc,await ke(n.state.doc.toString(),e,t)),{delay:600})]:[]}function $(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function at(e,t){let n=[];for(let r of t){let t=$(e,r.range.start),i=$(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=ot(r);o&&(a.actions=[o]),n.push(a)}return n}function ot(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:$(n,e.range.start),to:$(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var st=[Z(),q(),Y(),ye(),U(),X(),_e.allowMultipleSelections.of(!0),P(),G(),Ee(),we(),J(),j(),V(),Ne(),K.of([...Ce,...Se,...Re,...H,...Te,...Le])],ct=I.mark({class:`cm-link-ref-broken`}),lt=/^\s{0,3}\[([^\]]+)\]:\s/,ut=/\[([^\]]*)\]\[([^\]]*)\]/g,dt=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function ft(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function pt(e){let t=[];return R(e).iterate({enter(e){if(dt.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function mt(e){let t=new Set,n=[],r=e.doc,i=pt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if(ft(n.from,i))continue;let a=lt.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!ft(t.from,i)&&!lt.test(t.text))for(ut.lastIndex=0;;){let e=ut.exec(t.text);if(!e)break;let r=t.from+e.index;if(ft(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(ct.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),I.set(a)}var ht=z.define({create(e){return mt(e)},update(e,t){return t.docChanged?mt(t.state):e},provide:e=>F.decorations.from(e)}),gt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,_t=I.mark({class:`cm-del`}),vt=I.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),yt=I.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function bt(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function xt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!h.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(h.test(r.text))return{from:t.from,to:r.to}}return null}function St(e,t){let n=[],r=R(e),i=xt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(_t.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=gt.exec(r.text),a=i?i[1].length:2,o=I.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=bt(r.text),a=I.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(vt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(yt.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(yt.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),I.set(n)}var Ct=class{decorations;constructor(e){this.decorations=St(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||R(e.startState)!==R(e.state))&&(this.decorations=St(e.view.state,e.view.visibleRanges))}},wt=B.fromClass(Ct,{decorations:e=>e.decorations});function Tt(){return[wt,ht]}function Et(e,t){let n=e.trackedOrigins;return n.has(t)?!0:t?n.has(t.constructor):!1}function Dt(e){let{docName:t,ytext:n,undoManager:r}=e,i=!1,a=!1,o=!1,s=(e,t)=>{i||Et(r,t.origin)||(a=!0)};return n.observe(s),{setSourceModeActive(e){if(!o&&e!==i){if(!e){i=!1,r.stopCapturing();return}a&&(r.clear(),A(`ok/source-undo/flip-clear`,{docName:t})),a=!1,i=!0}},destroy(){o||(o=!0,n.unobserve(s))}}}var Ot=new WeakMap;function kt(e){return B.define(t=>{let n=Dt(e);return Ot.set(t,n),{destroy(){n.destroy()}}})}function At(e,t){let n=Ot.get(e);if(!n)throw Error(`createSourceUndoFlipExtension is not installed on this EditorView`);n.setSourceModeActive(t)}var jt=t(),Mt=L.define();function Nt(e,t){try{At(t.view,!1)}finally{try{o(t)}finally{S(e,t.view)}}}function Pt(e,t,n){let r=b(e.state.doc),i=r[t.index],o={docName:n,mode:`source`,index:t.index,sourceHeadingCount:r.length};if(!i){k(y,{...o,outcome:`no-target`});return}let s=a(n,`outline`,()=>{e.dispatch({selection:be.cursor(i.from),effects:F.scrollIntoView(i.from,{y:`start`})}),e.focus()});k(y,{...o,outcome:s?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(i.from).number})}function Ft(e,t,n,r){requestAnimationFrame(()=>{if(!n())return;let i=e.state.doc,o=Math.min(t.offset,i.length);a(r,`raw-mdx`,()=>{e.dispatch({selection:be.cursor(o),effects:F.scrollIntoView(o,{y:`center`})}),e.focus()})})}function It(e,t,n){let r=e.state.doc,i=Math.min(Math.max(t.line,1),r.lines),o=r.line(i),s=Math.min(o.from+Math.max(0,t.column-1),o.to);return a(n,`problems-row`,()=>{e.dispatch({selection:be.cursor(s),effects:F.scrollIntoView(s,{y:`start`})}),e.focus()})}function Lt(e){let t=(0,He.c)(51),{docName:n,ytext:r,provider:i,placeholder:a,isSourceModeActive:o}=e,s=(0,Q.useRef)(null),l=(0,Q.useRef)(null),[u,f]=(0,Q.useState)(null);if(u)throw u;let{resolvedTheme:m}=p(),{merged:h}=g(),v=(0,Q.useRef)(o),b=h?.editor?.wordWrap??!0,{data:x}=Me(n),S;t[0]!==x?.effective||t[1]!==h?(S=x?.effective??(h?.contentRules?Ae(h.contentRules):je),t[0]=x?.effective,t[1]=h,t[2]=S):S=t[2];let C=S,w;t[3]===C?w=t[4]:(w=JSON.stringify(C),t[3]=C,t[4]=w);let T=w,E=(0,Q.useRef)(null),D;t[5]!==n||t[6]!==o||t[7]!==C||t[8]!==a||t[9]!==i||t[10]!==m||t[11]!==b||t[12]!==r?(D=()=>{let e=s.current;if(!e)return;let t=i.configuration.name??``,u,p=zt;try{u=d({docName:t,container:e,sizeStats:{viewCount:0,bytes:r.length},factory:e=>{let o=null,s=new ge(r);try{let l=ee({ydoc:i.document,ytext:r,docName:t}),u=new N,d=new N,f=new N,h=new N,g=new F({state:_e.create({doc:r.toString(),extensions:[st,Ye,Ie({scrollToMatch:e=>te(t,`find-match`)?F.scrollIntoView(e,{y:`start`}):Mt.of(null)}),K.of([xe]),Ve(r,i.awareness,{undoManager:s}),K.of(Be),kt({docName:t,ytext:r,undoManager:s}),...me({themeCompartment:u,resolvedTheme:m,ydoc:i.document,wordWrapCompartment:d,wordWrap:b,currentDocName:t}),Tt(),Ge(t),re(),h.of(it(C,n)),rt(n),l,F.updateListener.of(e=>{c(e)&&ne(t)}),F.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(o!==null&&clearTimeout(o),o=setTimeout(()=>{o=null,ue(t,`source`,oe(e.view)),Oe(t,`source`,De(e.view,t))},120))}),f.of(ve(a??``)),F.theme({"&":{height:`100%`}}),F.scrollMargins.of(Rt)]}),parent:e});ue(t,`source`,oe(g)),Oe(t,`source`,De(g,t));let _=g.contentDOM;return _.addEventListener(`keydown`,p),_.addEventListener(`paste`,p),_.addEventListener(`drop`,p),_.addEventListener(`cut`,p),{view:g,ydoc:i.document,ytext:r,provider:i,undoManager:s,themeCompartment:u,wordWrapCompartment:d,placeholderCompartment:f,lintCompartment:h}}catch(e){let t=e;throw s.destroy(),t}}}),E.current=u,l.current=u.view,At(u.view,o),fe(n,u.view,`sourceEditor`),le()&&u.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),E.current=null,l.current=null,f(t instanceof Error?t:Error(String(t)))}return()=>{let e=E.current;E.current=null,l.current=null,e&&Nt(n,e)}},t[5]=n,t[6]=o,t[7]=C,t[8]=a,t[9]=i,t[10]=m,t[11]=b,t[12]=r,t[13]=D):D=t[13];let O;t[14]!==i||t[15]!==r?(O=[r,i],t[14]=i,t[15]=r,t[16]=O):O=t[16],(0,Q.useEffect)(D,O);let A,j;t[17]===o?(A=t[18],j=t[19]):(A=()=>{v.current=o;let e=l.current;e&&At(e,o)},j=[o],t[17]=o,t[18]=A,t[19]=j),(0,Q.useEffect)(A,j);let M,P;t[20]===n?(M=t[21],P=t[22]):(M=()=>{},P=[n],t[20]=n,t[21]=M,t[22]=P),(0,Q.useEffect)(M,P);let I,L;t[23]===m?(I=t[24],L=t[25]):(L=()=>{let e=E.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(m===`dark`?pe:he)})},I=[m],t[23]=m,t[24]=I,t[25]=L),(0,Q.useEffect)(L,I);let R,z;t[26]===b?(R=t[27],z=t[28]):(R=()=>{let e=E.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(b?F.lineWrapping:[])})},z=[b],t[26]=b,t[27]=R,t[28]=z),(0,Q.useEffect)(R,z);let B,V;t[29]===a?(B=t[30],V=t[31]):(B=()=>{let e=E.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(ve(a??``))})},V=[a],t[29]=a,t[30]=B,t[31]=V),(0,Q.useEffect)(B,V);let H;t[32]!==n||t[33]!==C?(H=()=>{let e=E.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(it(C,n))})},t[32]=n,t[33]=C,t[34]=H):H=t[34];let U;t[35]===T?U=t[36]:(U=[T],t[35]=T,t[36]=U),(0,Q.useEffect)(H,U);let W,G;t[37]!==n||t[38]!==o?(W=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||t.mode!==`source`||!o)return;let r=l.current;if(!r){k(y,{docName:n,mode:`source`,index:t.index,outcome:`no-view`});return}Pt(r,t,n),_(n)};return window.addEventListener(ce,e),()=>window.removeEventListener(ce,e)},G=[n,o],t[37]=n,t[38]=o,t[39]=W,t[40]=G):(W=t[39],G=t[40]),(0,Q.useEffect)(W,G);let q,J;t[41]!==n||t[42]!==o?(q=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||!o)return;let r=l.current;r&&It(r,t,n)&&_(n)};return window.addEventListener(se,e),()=>window.removeEventListener(se,e)},J=[n,o],t[41]=n,t[42]=o,t[43]=q,t[44]=J):(q=t[43],J=t[44]),(0,Q.useEffect)(q,J);let Y,X;t[45]!==n||t[46]!==o||t[47]!==i?(Y=()=>{if(!o)return;let e=l.current;if(!e)return;let t=de(n);if(!t)return;if(t.kind!==`selection-offset`){ie(n),t.kind===`outline`?Pt(e,t.detail,n):t.kind===`lint`?It(e,t.detail,n):t.kind===`raw-mdx`&&Ft(e,t.detail,()=>v.current,n);return}let r=!1,a=null;return queueMicrotask(()=>{if(r)return;let t=de(n);t?.kind===`selection-offset`&&(a=ae({view:e,docName:n,navigation:t,ydoc:i.document,transition:{from:`wysiwyg`,to:`source`}}),a&&ie(n))}),()=>{r=!0,a?.cancel(`mode-flip`)}},X=[n,o,i],t[45]=n,t[46]=o,t[47]=i,t[48]=Y,t[49]=X):(Y=t[48],X=t[49]),(0,Q.useEffect)(Y,X);let Z;return t[50]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,jt.jsx)(`div`,{ref:s,className:`source-editor h-full pb-3`}),t[50]=Z):Z=t[50],Z}function Rt(){return{top:C()}}function zt(){return w()}export{Lt as SourceEditor,Ft as applyRawMdxNavigation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-DBqLYfio.js";import{n as ee,r as te,t as ne}from"./collapsible-BKbszYZV.js";import{i as l,n as u,o as d,s as f,t as p}from"./select-Bu4Wm3Rf.js";import{n as m,t as h}from"./toggle-group-B7p69Qfd.js";import{t as g}from"./button-DzgjsZzC.js";import{n as _}from"./dist-BGzUo_18.js";import{d as re,f as ie,h as ae,m as oe,p as se}from"./share-D-LUU2aX-B7Yg0G_m.js";import{i as ce}from"./use-apply-config-theme-CYFG76sS.js";import{C as le,T as ue,a as de,c as fe,h as pe,l as me,m as he,n as ge,o as _e,p as ve,t as ye,u as be,v as xe,w as Se,x as Ce}from"./SyncStatusBadge-m_tTL7nH.js";import{t as we}from"./arrow-up-right-nJaICi16.js";import{t as Te}from"./chevron-right-Bofu4lib.js";import{t as Ee}from"./use-settings-route-Bj-m9X61.js";import"./config-provider-7Po9hSaS.js";import{n as De}from"./use-git-sync-status-D7jzQObo.js";import{t as Oe}from"./AuthModal-DFNZnQuX.js";import{t as ke}from"./skeleton-C73NNmDC.js";import{t as v}from"./PublishToGitHubDialog-BmrMeByz.js";import{n as Ae,t as je}from"./SettingsSectionHeader-Cr37eoc8.js";var Me=a(),y=e(n(),1),b=t(),x=`data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:hover:bg-primary/90`;function S(){let e=(0,Me.c)(4),[t,n]=(0,y.useState)(!1),r=(0,y.useRef)(null),i=(0,y.useRef)(null),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,b.jsx)(C,{onPublish:()=>n(!0),setUpSyncingRef:r}),e[0]=a):a=e[0];let o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>(r.current??i.current)?.focus(),e[1]=o):o=e[1];let s;return e[2]===t?s=e[3]:(s=(0,b.jsxs)(`section`,{ref:i,"aria-labelledby":`settings-sync-title`,tabIndex:-1,"data-testid":`settings-sync-section`,children:[a,(0,b.jsx)(v,{open:t,onOpenChange:n,returnFocus:o})]}),e[2]=t,e[3]=s),s}function C(e){let t=(0,Me.c)(149),{onPublish:n,setUpSyncingRef:a}=e,{_:v}=i(),{status:S,fetchError:C}=De(),{projectConfig:Fe,projectLocalConfig:Ie,projectLocalSynced:Le,projectSynced:Re}=ce(),ze=ue(),Be=Ce(),Ve=le(),[He,Ue]=(0,y.useState)(!1),We,Ge;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(We=()=>{Ee()&&Ue(!0)},Ge=[],t[0]=We,t[1]=Ge):(We=t[0],Ge=t[1]),(0,y.useEffect)(We,Ge);let w=oe(Ie?.autoSync),Ke=w.pushIntervalSeconds<w.pullIntervalSeconds,qe=Ie?.autoSync,Je;t[2]===qe?Je=t[3]:(Je=ae(qe),t[2]=qe,t[3]=Je);let Ye=Je,Xe=Fe?.autoSync?.default,Ze;t[4]===Xe?Ze=t[5]:(Ze=se(Xe),t[4]=Xe,t[5]=Ze);let Qe=Ze,$e;t[6]!==Ye||t[7]!==S?($e=Ye??(S===null?`off`:xe(S)),t[6]=Ye,t[7]=S,t[8]=$e):$e=t[8];let T=$e,E=Le&&Ye===null&&Qe!==null,{confirmOpen:et,setConfirmOpen:tt,pendingMode:nt,onModeSelect:D,onTurnOff:rt,onKeepCurrent:it,onConfirm:at}=Se(ze,T),[ot,O]=(0,y.useState)(!1),k=!Le;if(S===null){let e=C!==null,n=e?`settings-sync-unavailable`:`settings-sync-loading`,i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:(0,b.jsx)(r,{id:`Nu4DdT`}),scope:`project-local`,level:`block`}),t[9]=i):i=t[9];let a=!e,o;t[10]!==C||t[11]!==e?(o=e?(0,b.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:C===`network`?(0,b.jsx)(r,{id:`epGMvx`}):(0,b.jsx)(r,{id:`wLRCZ8`})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`span`,{className:`sr-only`,children:(0,b.jsx)(r,{id:`OgvwrM`})}),(0,b.jsx)(ke,{className:`h-24`})]}),t[10]=C,t[11]=e,t[12]=o):o=t[12];let s;t[13]!==a||t[14]!==o?(s=(0,b.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":a,children:o}),t[13]=a,t[14]=o,t[15]=s):s=t[15];let c;return t[16]!==s||t[17]!==n?(c=(0,b.jsxs)(`div`,{className:`space-y-3`,"data-testid":n,children:[i,s]}),t[16]=s,t[17]=n,t[18]=c):c=t[18],c}if(!S.hasRemote){let e=T!==`off`,i;t[19]!==rt||t[20]!==a?(i=()=>{rt()&&a.current?.focus()},t[19]=rt,t[20]=a,t[21]=i):i=t[21];let o=i,s;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,b.jsx)(r,{id:`Nu4DdT`}),t[22]=s):s=t[22];let c;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:s,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`AiNMQ7`})}),t[23]=c):c=t[23];let l;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,b.jsx)(`div`,{className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`3_6U6f`})}),t[24]=l):l=t[24];let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[l,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`i92eAT`})})]}),t[25]=u):u=t[25];let d;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,b.jsx)(r,{id:`zkz0Fg`}),t[26]=d):d=t[26];let f;t[27]!==n||t[28]!==a?(f=(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border p-3`,children:[u,(0,b.jsx)(g,{ref:a,onClick:n,"data-testid":`settings-sync-setup`,children:d})]}),t[27]=n,t[28]=a,t[29]=f):f=t[29];let p;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`6caB2T`})]})}),t[30]=p):p=t[30];let m;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,b.jsxs)(ne,{children:[p,(0,b.jsx)(ee,{className:`px-1.5 pt-2 text-sm text-muted-foreground`,children:(0,b.jsx)(r,{id:`44DSl0`,components:{0:(0,b.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]}),t[31]=m):m=t[31];let h;t[32]!==e||t[33]!==k||t[34]!==o?(h=e?(0,b.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border p-3`,"data-testid":`settings-sync-no-remote-auto-on`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`9U-7Xv`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:o,disabled:k,"data-testid":`settings-sync-no-remote-turn-off`,children:(0,b.jsx)(r,{id:`v6Glry`})})]}):null,t[32]=e,t[33]=k,t[34]=o,t[35]=h):h=t[35];let _;return t[36]!==f||t[37]!==h?(_=(0,b.jsxs)(`div`,{className:`space-y-4`,"data-testid":`settings-sync-empty`,children:[c,f,m,h]}),t[36]=f,t[37]=h,t[38]=_):_=t[38],_}let st=S.pushPermission?.checkStatus===`denied`||S.pausedReason===`no-push-permission`,ct;t[39]===S.pushPermission?ct=t[40]:(ct=ve(S.pushPermission),t[39]=S.pushPermission,t[40]=ct);let lt=ct,ut;t[41]===S?ut=t[42]:(ut=fe(S),t[41]=S,t[42]=ut);let dt=ut,ft=T===`full`&&st&<,A=T===`full`&&st&&!lt&&!dt,j=!A&&!ft&&st&&!dt,pt=S.pushPermission?.checkStatus===`denied`&&S.pushPermission.deniedReason!==`not-authenticated`&&!dt,mt;t[43]===S?mt=t[44]:(mt=be(S),t[43]=S,t[44]=mt);let M=mt,ht=st&&S.pausedReason!==`unsafe-incoming-symlinks`,gt;t[45]!==M||t[46]!==ht||t[47]!==S.pausedReason||t[48]!==S.remote?(gt=S.pausedReason?M?_e(`auth-not-found-as-identity`,me(S.remote)):ht?null:(0,b.jsx)(ye,{reason:S.pausedReason}):null,t[45]=M,t[46]=ht,t[47]=S.pausedReason,t[48]=S.remote,t[49]=gt):gt=t[49];let N=gt,_t;t[50]!==E||t[51]!==T||t[52]!==it||t[53]!==D?(_t=function(e){let t=e===``?T:e;if(ie(t)){if(t===T){E&&it();return}D(t)}},t[50]=E,t[51]=T,t[52]=it,t[53]=D,t[54]=_t):_t=t[54];let vt=_t,yt=Qe??`ask`,bt;t[55]!==v||t[56]!==Be?(bt=function(e){if(e!==`ask`&&!ie(e))return;if(Be===null){_.error(v({id:`fiMNLl`}));return}let t;bb163:switch(e){case`ask`:t=null;break bb163;case`off`:t=!1;break bb163;case`full`:t=!0;break bb163;case`follow`:t=`follow`;break bb163;default:throw Error(`unhandled committed default: ${String(e)}`)}let n=Be(t);if(!n.ok){let e=n.error;_.error(v({id:`oAFVKX`,values:{detail:e}}))}},t[55]=v,t[56]=Be,t[57]=bt):bt=t[57];let xt=bt,St;t[58]===v?St=t[59]:(St=function(e){switch(e){case 30:return v({id:`OqqecQ`});case 60:return v({id:`4mbrAq`});case 300:return v({id:`PEGxvo`});case 900:return v({id:`Cz-K13`});case 3600:return v({id:`vp5vfW`});default:return v({id:`U7Iesw`,values:{seconds:e}})}},t[58]=v,t[59]=St);let Ct=St,wt;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(wt=function(e){return re.includes(e)?[...re]:[...re,e].sort(Pe)},t[60]=wt):wt=t[60];let Tt=wt,Et=function(e,t){let n=Number(t);if(!Number.isFinite(n)||Ve===null)return;let r=Ve({pullIntervalSeconds:e===`pull`?n:w.pullIntervalSeconds,pushIntervalSeconds:e===`push`?n:w.pushIntervalSeconds});if(!r.ok){let e=r.error;_.error(v({id:`WOfp4H`,values:{detail:e}}))}},Dt;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,b.jsx)(r,{id:`Nu4DdT`}),t[61]=Dt):Dt=t[61];let P;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:Dt,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`qLXJTB`})}),t[62]=P):P=t[62];let Ot;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,b.jsx)(`div`,{id:`settings-sync-mode-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`yZepkk`})}),t[63]=Ot):Ot=t[63];let F;t[64]===T?F=t[65]:(F=(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-body`,children:T===`full`?(0,b.jsx)(r,{id:`zBiFZh`}):T===`follow`?(0,b.jsx)(r,{id:`PGRnbw`}):(0,b.jsx)(r,{id:`t5I7P_`})}),t[64]=T,t[65]=F);let I;t[66]===E?I=t[67]:(I=E?(0,b.jsx)(`p`,{id:`settings-sync-mode-default-note`,className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-mode-from-default`,children:(0,b.jsx)(r,{id:`uNkJ8H`})}):null,t[66]=E,t[67]=I);let L;t[68]!==v||t[69]!==S.remote?(L=S.remote?(0,b.jsxs)(`p`,{className:`text-muted-foreground text-1sm truncate`,"data-testid":`settings-sync-remote`,children:[(0,b.jsx)(r,{id:`Q8A-U_`}),` `,S.remote.webUrl?(0,b.jsxs)(`a`,{href:S.remote.webUrl,target:`_blank`,rel:`noopener noreferrer`,className:`text-foreground hover:text-primary hover:underline inline-flex items-center gap-0.5`,"aria-label":v({id:`1nke1r`,values:{0:S.remote.label}}),"data-testid":`settings-sync-remote-link`,children:[(0,b.jsx)(`span`,{children:S.remote.label}),(0,b.jsx)(we,{className:`inline size-3.5`,"aria-hidden":!0})]}):(0,b.jsx)(`span`,{className:`font-medium text-foreground`,"data-testid":`settings-sync-remote-label`,children:S.remote.label})]}):null,t[68]=v,t[69]=S.remote,t[70]=L):L=t[70];let R;t[71]!==F||t[72]!==I||t[73]!==L?(R=(0,b.jsxs)(`div`,{className:`min-w-0`,children:[Ot,F,I,L]}),t[71]=F,t[72]=I,t[73]=L,t[74]=R):R=t[74];let kt=E?`settings-sync-mode-default-note`:void 0,At;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-mode-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[75]=At):At=t[75];let jt;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-mode-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[76]=jt):jt=t[76];let z;t[77]!==pt||t[78]!==j?(z=pt?(0,b.jsxs)(c,{children:[(0,b.jsx)(o,{asChild:!0,children:(0,b.jsx)(`span`,{className:`inline-flex`,children:(0,b.jsx)(m,{value:`full`,className:x,disabled:!0,"aria-describedby":j?`settings-sync-denied-hint-text`:void 0,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})})})}),(0,b.jsx)(s,{"data-testid":`settings-sync-mode-full-tip`,children:(0,b.jsx)(r,{id:`EiVgl5`})})]}):(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[77]=pt,t[78]=j,t[79]=z):z=t[79];let B;t[80]!==T||t[81]!==k||t[82]!==vt||t[83]!==kt||t[84]!==z?(B=(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:T,onValueChange:vt,disabled:k,"aria-labelledby":`settings-sync-mode-label`,"aria-describedby":kt,"data-testid":`settings-sync-mode-toggle`,children:[At,jt,z]}),t[80]=T,t[81]=k,t[82]=vt,t[83]=kt,t[84]=z,t[85]=B):B=t[85];let V;t[86]!==R||t[87]!==B?(V=(0,b.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[R,B]}),t[86]=R,t[87]=B,t[88]=V):V=t[88];let H;t[89]!==O||t[90]!==ft?(H=ft&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-reconnect`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`tnG-m6`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[89]=O,t[90]=ft,t[91]=H):H=t[91];let U;t[92]!==D||t[93]!==A?(U=A&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-switch-follow`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`srdlOs`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>D(`follow`),"data-testid":`settings-sync-switch-follow-action`,children:(0,b.jsx)(r,{id:`v16Pzh`})})]}),t[92]=D,t[93]=A,t[94]=U):U=t[94];let W;t[95]!==T||t[96]!==j?(W=j&&(0,b.jsx)(`p`,{id:`settings-sync-denied-hint-text`,className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-denied-hint`,children:T===`follow`?(0,b.jsx)(r,{id:`EiVgl5`}):(0,b.jsx)(r,{id:`eNOyTV`})}),t[95]=T,t[96]=j,t[97]=W):W=t[97];let G;t[98]===N?G=t[99]:(G=N!==null&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-reason`,children:N}),t[98]=N,t[99]=G);let K;t[100]!==N||t[101]!==S.refusedSymlinkPaths?(K=N!==null&&(S.refusedSymlinkPaths?.length??0)>0&&(0,b.jsx)(`div`,{className:`mt-2`,children:(0,b.jsx)(ge,{paths:S.refusedSymlinkPaths})}),t[100]=N,t[101]=S.refusedSymlinkPaths,t[102]=K):K=t[102];let q;t[103]!==M||t[104]!==j||t[105]!==A||t[106]!==S.pushPermission?(q=S.pushPermission?.checkStatus===`denied`&&(M||A||j)?(0,b.jsx)(`div`,{className:`mt-2 space-y-1`,"data-testid":`settings-sync-identity`,children:de(S.pushPermission).map(Ne)}):null,t[103]=M,t[104]=j,t[105]=A,t[106]=S.pushPermission,t[107]=q):q=t[107];let J;t[108]!==O||t[109]!==S.pushPermission?(J=he(S.pushPermission)&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-signin-again`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`C_cPoW`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[108]=O,t[109]=S.pushPermission,t[110]=J):J=t[110];let Y;t[111]!==V||t[112]!==H||t[113]!==U||t[114]!==W||t[115]!==G||t[116]!==K||t[117]!==q||t[118]!==J?(Y=(0,b.jsxs)(`div`,{className:`rounded-md border p-3`,children:[V,H,U,W,G,K,q,J]}),t[111]=V,t[112]=H,t[113]=U,t[114]=W,t[115]=G,t[116]=K,t[117]=q,t[118]=J,t[119]=Y):Y=t[119];let Mt=T!==`off`&&(0,b.jsxs)(ne,{open:He,onOpenChange:Ue,children:[(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,"data-testid":`settings-sync-advanced-trigger`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`sxkWRg`})]})}),(0,b.jsx)(ee,{className:`pt-2`,children:(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-3`,"data-testid":`settings-sync-intervals`,children:[(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-pull-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`Xs1kjx`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`T1fMJ6`})})]}),(0,b.jsxs)(p,{value:String(w.pullIntervalSeconds),onValueChange:e=>Et(`pull`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-pull-interval-label`,"data-testid":`settings-sync-pull-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pullIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t pt-3`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-push-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`gyYvCN`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`czQDKY`})})]}),(0,b.jsxs)(p,{value:String(w.pushIntervalSeconds),onValueChange:e=>Et(`push`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-push-interval-label`,"data-testid":`settings-sync-push-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pushIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&Ke&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,"data-testid":`settings-sync-push-outpaces-pull-hint`,children:(0,b.jsx)(r,{id:`x-E_vF`})})]})})]}),Nt;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(`div`,{id:`settings-sync-default-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`j_Z6g7`})}),(0,b.jsx)(Ae,{scope:`project`})]}),t[120]=Nt):Nt=t[120];let Pt;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[Nt,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`Zysl7r`})})]}),t[121]=Pt):Pt=t[121];let Ft=!Re,It;t[122]===Symbol.for(`react.memo_cache_sentinel`)?(It=(0,b.jsx)(m,{value:`ask`,className:x,"data-testid":`settings-sync-default-ask`,children:(0,b.jsx)(r,{id:`EdQY6l`})}),t[122]=It):It=t[122];let Lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-default-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[123]=Lt):Lt=t[123];let Rt;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-default-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[124]=Rt):Rt=t[124];let zt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-default-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[125]=zt):zt=t[125];let X;t[126]!==yt||t[127]!==xt||t[128]!==Ft?(X=(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-2`,"data-testid":`settings-sync-default`,children:[Pt,(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:yt,onValueChange:xt,disabled:Ft,"aria-labelledby":`settings-sync-default-label`,"data-testid":`settings-sync-default-toggle`,children:[It,Lt,Rt,zt]})]}),t[126]=yt,t[127]=xt,t[128]=Ft,t[129]=X):X=t[129];let Bt=nt??`full`,Vt=nt===`follow`?S.ahead??0:0,Z;t[130]!==et||t[131]!==at||t[132]!==tt||t[133]!==Bt||t[134]!==Vt?(Z=(0,b.jsx)(pe,{open:et,onOpenChange:tt,onConfirm:at,variant:Bt,strandedCommitCount:Vt}),t[130]=et,t[131]=at,t[132]=tt,t[133]=Bt,t[134]=Vt,t[135]=Z):Z=t[135];let Q;t[136]===O?Q=t[137]:(Q=()=>O(!1),t[136]=O,t[137]=Q);let $;t[138]!==ot||t[139]!==O||t[140]!==Q?($=(0,b.jsx)(Oe,{open:ot,onOpenChange:O,onSuccess:Q,reauth:!0}),t[138]=ot,t[139]=O,t[140]=Q,t[141]=$):$=t[141];let Ht;return t[142]!==P||t[143]!==Y||t[144]!==Mt||t[145]!==X||t[146]!==Z||t[147]!==$?(Ht=(0,b.jsxs)(`div`,{className:`space-y-3`,children:[P,Y,Mt,X,Z,$]}),t[142]=P,t[143]=Y,t[144]=Mt,t[145]=X,t[146]=Z,t[147]=$,t[148]=Ht):Ht=t[148],Ht}function Ne(e){return(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:e},e)}function Pe(e,t){return e-t}export{S as SyncSection};
|
|
1
|
+
import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-DBqLYfio.js";import{n as ee,r as te,t as ne}from"./collapsible-BKbszYZV.js";import{i as l,n as u,o as d,s as f,t as p}from"./select-Bu4Wm3Rf.js";import{n as m,t as h}from"./toggle-group-B7p69Qfd.js";import{t as g}from"./button-DzgjsZzC.js";import{n as _}from"./dist-BGzUo_18.js";import{d as re,f as ie,h as ae,m as oe,p as se}from"./share-D-LUU2aX-B7Yg0G_m.js";import{i as ce}from"./use-apply-config-theme-CYFG76sS.js";import{C as le,T as ue,a as de,c as fe,h as pe,l as me,m as he,n as ge,o as _e,p as ve,t as ye,u as be,v as xe,w as Se,x as Ce}from"./SyncStatusBadge-DaMofnew.js";import{t as we}from"./arrow-up-right-nJaICi16.js";import{t as Te}from"./chevron-right-Bofu4lib.js";import{t as Ee}from"./use-settings-route-Bj-m9X61.js";import"./config-provider-DyQHdVWH.js";import{n as De}from"./use-git-sync-status-D7jzQObo.js";import{t as Oe}from"./AuthModal-DFNZnQuX.js";import{t as ke}from"./skeleton-C73NNmDC.js";import{t as v}from"./PublishToGitHubDialog-DHCNHDEf.js";import{n as Ae,t as je}from"./SettingsSectionHeader-Cr37eoc8.js";var Me=a(),y=e(n(),1),b=t(),x=`data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:hover:bg-primary/90`;function S(){let e=(0,Me.c)(4),[t,n]=(0,y.useState)(!1),r=(0,y.useRef)(null),i=(0,y.useRef)(null),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,b.jsx)(C,{onPublish:()=>n(!0),setUpSyncingRef:r}),e[0]=a):a=e[0];let o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>(r.current??i.current)?.focus(),e[1]=o):o=e[1];let s;return e[2]===t?s=e[3]:(s=(0,b.jsxs)(`section`,{ref:i,"aria-labelledby":`settings-sync-title`,tabIndex:-1,"data-testid":`settings-sync-section`,children:[a,(0,b.jsx)(v,{open:t,onOpenChange:n,returnFocus:o})]}),e[2]=t,e[3]=s),s}function C(e){let t=(0,Me.c)(149),{onPublish:n,setUpSyncingRef:a}=e,{_:v}=i(),{status:S,fetchError:C}=De(),{projectConfig:Fe,projectLocalConfig:Ie,projectLocalSynced:Le,projectSynced:Re}=ce(),ze=ue(),Be=Ce(),Ve=le(),[He,Ue]=(0,y.useState)(!1),We,Ge;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(We=()=>{Ee()&&Ue(!0)},Ge=[],t[0]=We,t[1]=Ge):(We=t[0],Ge=t[1]),(0,y.useEffect)(We,Ge);let w=oe(Ie?.autoSync),Ke=w.pushIntervalSeconds<w.pullIntervalSeconds,qe=Ie?.autoSync,Je;t[2]===qe?Je=t[3]:(Je=ae(qe),t[2]=qe,t[3]=Je);let Ye=Je,Xe=Fe?.autoSync?.default,Ze;t[4]===Xe?Ze=t[5]:(Ze=se(Xe),t[4]=Xe,t[5]=Ze);let Qe=Ze,$e;t[6]!==Ye||t[7]!==S?($e=Ye??(S===null?`off`:xe(S)),t[6]=Ye,t[7]=S,t[8]=$e):$e=t[8];let T=$e,E=Le&&Ye===null&&Qe!==null,{confirmOpen:et,setConfirmOpen:tt,pendingMode:nt,onModeSelect:D,onTurnOff:rt,onKeepCurrent:it,onConfirm:at}=Se(ze,T),[ot,O]=(0,y.useState)(!1),k=!Le;if(S===null){let e=C!==null,n=e?`settings-sync-unavailable`:`settings-sync-loading`,i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:(0,b.jsx)(r,{id:`Nu4DdT`}),scope:`project-local`,level:`block`}),t[9]=i):i=t[9];let a=!e,o;t[10]!==C||t[11]!==e?(o=e?(0,b.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:C===`network`?(0,b.jsx)(r,{id:`epGMvx`}):(0,b.jsx)(r,{id:`wLRCZ8`})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`span`,{className:`sr-only`,children:(0,b.jsx)(r,{id:`OgvwrM`})}),(0,b.jsx)(ke,{className:`h-24`})]}),t[10]=C,t[11]=e,t[12]=o):o=t[12];let s;t[13]!==a||t[14]!==o?(s=(0,b.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":a,children:o}),t[13]=a,t[14]=o,t[15]=s):s=t[15];let c;return t[16]!==s||t[17]!==n?(c=(0,b.jsxs)(`div`,{className:`space-y-3`,"data-testid":n,children:[i,s]}),t[16]=s,t[17]=n,t[18]=c):c=t[18],c}if(!S.hasRemote){let e=T!==`off`,i;t[19]!==rt||t[20]!==a?(i=()=>{rt()&&a.current?.focus()},t[19]=rt,t[20]=a,t[21]=i):i=t[21];let o=i,s;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,b.jsx)(r,{id:`Nu4DdT`}),t[22]=s):s=t[22];let c;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:s,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`AiNMQ7`})}),t[23]=c):c=t[23];let l;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,b.jsx)(`div`,{className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`3_6U6f`})}),t[24]=l):l=t[24];let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[l,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`i92eAT`})})]}),t[25]=u):u=t[25];let d;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,b.jsx)(r,{id:`zkz0Fg`}),t[26]=d):d=t[26];let f;t[27]!==n||t[28]!==a?(f=(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border p-3`,children:[u,(0,b.jsx)(g,{ref:a,onClick:n,"data-testid":`settings-sync-setup`,children:d})]}),t[27]=n,t[28]=a,t[29]=f):f=t[29];let p;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`6caB2T`})]})}),t[30]=p):p=t[30];let m;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,b.jsxs)(ne,{children:[p,(0,b.jsx)(ee,{className:`px-1.5 pt-2 text-sm text-muted-foreground`,children:(0,b.jsx)(r,{id:`44DSl0`,components:{0:(0,b.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]}),t[31]=m):m=t[31];let h;t[32]!==e||t[33]!==k||t[34]!==o?(h=e?(0,b.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border p-3`,"data-testid":`settings-sync-no-remote-auto-on`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`9U-7Xv`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:o,disabled:k,"data-testid":`settings-sync-no-remote-turn-off`,children:(0,b.jsx)(r,{id:`v6Glry`})})]}):null,t[32]=e,t[33]=k,t[34]=o,t[35]=h):h=t[35];let _;return t[36]!==f||t[37]!==h?(_=(0,b.jsxs)(`div`,{className:`space-y-4`,"data-testid":`settings-sync-empty`,children:[c,f,m,h]}),t[36]=f,t[37]=h,t[38]=_):_=t[38],_}let st=S.pushPermission?.checkStatus===`denied`||S.pausedReason===`no-push-permission`,ct;t[39]===S.pushPermission?ct=t[40]:(ct=ve(S.pushPermission),t[39]=S.pushPermission,t[40]=ct);let lt=ct,ut;t[41]===S?ut=t[42]:(ut=fe(S),t[41]=S,t[42]=ut);let dt=ut,ft=T===`full`&&st&<,A=T===`full`&&st&&!lt&&!dt,j=!A&&!ft&&st&&!dt,pt=S.pushPermission?.checkStatus===`denied`&&S.pushPermission.deniedReason!==`not-authenticated`&&!dt,mt;t[43]===S?mt=t[44]:(mt=be(S),t[43]=S,t[44]=mt);let M=mt,ht=st&&S.pausedReason!==`unsafe-incoming-symlinks`,gt;t[45]!==M||t[46]!==ht||t[47]!==S.pausedReason||t[48]!==S.remote?(gt=S.pausedReason?M?_e(`auth-not-found-as-identity`,me(S.remote)):ht?null:(0,b.jsx)(ye,{reason:S.pausedReason}):null,t[45]=M,t[46]=ht,t[47]=S.pausedReason,t[48]=S.remote,t[49]=gt):gt=t[49];let N=gt,_t;t[50]!==E||t[51]!==T||t[52]!==it||t[53]!==D?(_t=function(e){let t=e===``?T:e;if(ie(t)){if(t===T){E&&it();return}D(t)}},t[50]=E,t[51]=T,t[52]=it,t[53]=D,t[54]=_t):_t=t[54];let vt=_t,yt=Qe??`ask`,bt;t[55]!==v||t[56]!==Be?(bt=function(e){if(e!==`ask`&&!ie(e))return;if(Be===null){_.error(v({id:`fiMNLl`}));return}let t;bb163:switch(e){case`ask`:t=null;break bb163;case`off`:t=!1;break bb163;case`full`:t=!0;break bb163;case`follow`:t=`follow`;break bb163;default:throw Error(`unhandled committed default: ${String(e)}`)}let n=Be(t);if(!n.ok){let e=n.error;_.error(v({id:`oAFVKX`,values:{detail:e}}))}},t[55]=v,t[56]=Be,t[57]=bt):bt=t[57];let xt=bt,St;t[58]===v?St=t[59]:(St=function(e){switch(e){case 30:return v({id:`OqqecQ`});case 60:return v({id:`4mbrAq`});case 300:return v({id:`PEGxvo`});case 900:return v({id:`Cz-K13`});case 3600:return v({id:`vp5vfW`});default:return v({id:`U7Iesw`,values:{seconds:e}})}},t[58]=v,t[59]=St);let Ct=St,wt;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(wt=function(e){return re.includes(e)?[...re]:[...re,e].sort(Pe)},t[60]=wt):wt=t[60];let Tt=wt,Et=function(e,t){let n=Number(t);if(!Number.isFinite(n)||Ve===null)return;let r=Ve({pullIntervalSeconds:e===`pull`?n:w.pullIntervalSeconds,pushIntervalSeconds:e===`push`?n:w.pushIntervalSeconds});if(!r.ok){let e=r.error;_.error(v({id:`WOfp4H`,values:{detail:e}}))}},Dt;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,b.jsx)(r,{id:`Nu4DdT`}),t[61]=Dt):Dt=t[61];let P;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:Dt,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`qLXJTB`})}),t[62]=P):P=t[62];let Ot;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,b.jsx)(`div`,{id:`settings-sync-mode-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`yZepkk`})}),t[63]=Ot):Ot=t[63];let F;t[64]===T?F=t[65]:(F=(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-body`,children:T===`full`?(0,b.jsx)(r,{id:`zBiFZh`}):T===`follow`?(0,b.jsx)(r,{id:`PGRnbw`}):(0,b.jsx)(r,{id:`t5I7P_`})}),t[64]=T,t[65]=F);let I;t[66]===E?I=t[67]:(I=E?(0,b.jsx)(`p`,{id:`settings-sync-mode-default-note`,className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-mode-from-default`,children:(0,b.jsx)(r,{id:`uNkJ8H`})}):null,t[66]=E,t[67]=I);let L;t[68]!==v||t[69]!==S.remote?(L=S.remote?(0,b.jsxs)(`p`,{className:`text-muted-foreground text-1sm truncate`,"data-testid":`settings-sync-remote`,children:[(0,b.jsx)(r,{id:`Q8A-U_`}),` `,S.remote.webUrl?(0,b.jsxs)(`a`,{href:S.remote.webUrl,target:`_blank`,rel:`noopener noreferrer`,className:`text-foreground hover:text-primary hover:underline inline-flex items-center gap-0.5`,"aria-label":v({id:`1nke1r`,values:{0:S.remote.label}}),"data-testid":`settings-sync-remote-link`,children:[(0,b.jsx)(`span`,{children:S.remote.label}),(0,b.jsx)(we,{className:`inline size-3.5`,"aria-hidden":!0})]}):(0,b.jsx)(`span`,{className:`font-medium text-foreground`,"data-testid":`settings-sync-remote-label`,children:S.remote.label})]}):null,t[68]=v,t[69]=S.remote,t[70]=L):L=t[70];let R;t[71]!==F||t[72]!==I||t[73]!==L?(R=(0,b.jsxs)(`div`,{className:`min-w-0`,children:[Ot,F,I,L]}),t[71]=F,t[72]=I,t[73]=L,t[74]=R):R=t[74];let kt=E?`settings-sync-mode-default-note`:void 0,At;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-mode-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[75]=At):At=t[75];let jt;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-mode-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[76]=jt):jt=t[76];let z;t[77]!==pt||t[78]!==j?(z=pt?(0,b.jsxs)(c,{children:[(0,b.jsx)(o,{asChild:!0,children:(0,b.jsx)(`span`,{className:`inline-flex`,children:(0,b.jsx)(m,{value:`full`,className:x,disabled:!0,"aria-describedby":j?`settings-sync-denied-hint-text`:void 0,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})})})}),(0,b.jsx)(s,{"data-testid":`settings-sync-mode-full-tip`,children:(0,b.jsx)(r,{id:`EiVgl5`})})]}):(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[77]=pt,t[78]=j,t[79]=z):z=t[79];let B;t[80]!==T||t[81]!==k||t[82]!==vt||t[83]!==kt||t[84]!==z?(B=(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:T,onValueChange:vt,disabled:k,"aria-labelledby":`settings-sync-mode-label`,"aria-describedby":kt,"data-testid":`settings-sync-mode-toggle`,children:[At,jt,z]}),t[80]=T,t[81]=k,t[82]=vt,t[83]=kt,t[84]=z,t[85]=B):B=t[85];let V;t[86]!==R||t[87]!==B?(V=(0,b.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[R,B]}),t[86]=R,t[87]=B,t[88]=V):V=t[88];let H;t[89]!==O||t[90]!==ft?(H=ft&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-reconnect`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`tnG-m6`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[89]=O,t[90]=ft,t[91]=H):H=t[91];let U;t[92]!==D||t[93]!==A?(U=A&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-switch-follow`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`srdlOs`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>D(`follow`),"data-testid":`settings-sync-switch-follow-action`,children:(0,b.jsx)(r,{id:`v16Pzh`})})]}),t[92]=D,t[93]=A,t[94]=U):U=t[94];let W;t[95]!==T||t[96]!==j?(W=j&&(0,b.jsx)(`p`,{id:`settings-sync-denied-hint-text`,className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-denied-hint`,children:T===`follow`?(0,b.jsx)(r,{id:`EiVgl5`}):(0,b.jsx)(r,{id:`eNOyTV`})}),t[95]=T,t[96]=j,t[97]=W):W=t[97];let G;t[98]===N?G=t[99]:(G=N!==null&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-reason`,children:N}),t[98]=N,t[99]=G);let K;t[100]!==N||t[101]!==S.refusedSymlinkPaths?(K=N!==null&&(S.refusedSymlinkPaths?.length??0)>0&&(0,b.jsx)(`div`,{className:`mt-2`,children:(0,b.jsx)(ge,{paths:S.refusedSymlinkPaths})}),t[100]=N,t[101]=S.refusedSymlinkPaths,t[102]=K):K=t[102];let q;t[103]!==M||t[104]!==j||t[105]!==A||t[106]!==S.pushPermission?(q=S.pushPermission?.checkStatus===`denied`&&(M||A||j)?(0,b.jsx)(`div`,{className:`mt-2 space-y-1`,"data-testid":`settings-sync-identity`,children:de(S.pushPermission).map(Ne)}):null,t[103]=M,t[104]=j,t[105]=A,t[106]=S.pushPermission,t[107]=q):q=t[107];let J;t[108]!==O||t[109]!==S.pushPermission?(J=he(S.pushPermission)&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-signin-again`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`C_cPoW`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[108]=O,t[109]=S.pushPermission,t[110]=J):J=t[110];let Y;t[111]!==V||t[112]!==H||t[113]!==U||t[114]!==W||t[115]!==G||t[116]!==K||t[117]!==q||t[118]!==J?(Y=(0,b.jsxs)(`div`,{className:`rounded-md border p-3`,children:[V,H,U,W,G,K,q,J]}),t[111]=V,t[112]=H,t[113]=U,t[114]=W,t[115]=G,t[116]=K,t[117]=q,t[118]=J,t[119]=Y):Y=t[119];let Mt=T!==`off`&&(0,b.jsxs)(ne,{open:He,onOpenChange:Ue,children:[(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,"data-testid":`settings-sync-advanced-trigger`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`sxkWRg`})]})}),(0,b.jsx)(ee,{className:`pt-2`,children:(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-3`,"data-testid":`settings-sync-intervals`,children:[(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-pull-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`Xs1kjx`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`T1fMJ6`})})]}),(0,b.jsxs)(p,{value:String(w.pullIntervalSeconds),onValueChange:e=>Et(`pull`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-pull-interval-label`,"data-testid":`settings-sync-pull-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pullIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t pt-3`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-push-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`gyYvCN`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`czQDKY`})})]}),(0,b.jsxs)(p,{value:String(w.pushIntervalSeconds),onValueChange:e=>Et(`push`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-push-interval-label`,"data-testid":`settings-sync-push-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pushIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&Ke&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,"data-testid":`settings-sync-push-outpaces-pull-hint`,children:(0,b.jsx)(r,{id:`x-E_vF`})})]})})]}),Nt;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(`div`,{id:`settings-sync-default-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`j_Z6g7`})}),(0,b.jsx)(Ae,{scope:`project`})]}),t[120]=Nt):Nt=t[120];let Pt;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[Nt,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`Zysl7r`})})]}),t[121]=Pt):Pt=t[121];let Ft=!Re,It;t[122]===Symbol.for(`react.memo_cache_sentinel`)?(It=(0,b.jsx)(m,{value:`ask`,className:x,"data-testid":`settings-sync-default-ask`,children:(0,b.jsx)(r,{id:`EdQY6l`})}),t[122]=It):It=t[122];let Lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-default-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[123]=Lt):Lt=t[123];let Rt;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-default-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[124]=Rt):Rt=t[124];let zt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-default-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[125]=zt):zt=t[125];let X;t[126]!==yt||t[127]!==xt||t[128]!==Ft?(X=(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-2`,"data-testid":`settings-sync-default`,children:[Pt,(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:yt,onValueChange:xt,disabled:Ft,"aria-labelledby":`settings-sync-default-label`,"data-testid":`settings-sync-default-toggle`,children:[It,Lt,Rt,zt]})]}),t[126]=yt,t[127]=xt,t[128]=Ft,t[129]=X):X=t[129];let Bt=nt??`full`,Vt=nt===`follow`?S.ahead??0:0,Z;t[130]!==et||t[131]!==at||t[132]!==tt||t[133]!==Bt||t[134]!==Vt?(Z=(0,b.jsx)(pe,{open:et,onOpenChange:tt,onConfirm:at,variant:Bt,strandedCommitCount:Vt}),t[130]=et,t[131]=at,t[132]=tt,t[133]=Bt,t[134]=Vt,t[135]=Z):Z=t[135];let Q;t[136]===O?Q=t[137]:(Q=()=>O(!1),t[136]=O,t[137]=Q);let $;t[138]!==ot||t[139]!==O||t[140]!==Q?($=(0,b.jsx)(Oe,{open:ot,onOpenChange:O,onSuccess:Q,reauth:!0}),t[138]=ot,t[139]=O,t[140]=Q,t[141]=$):$=t[141];let Ht;return t[142]!==P||t[143]!==Y||t[144]!==Mt||t[145]!==X||t[146]!==Z||t[147]!==$?(Ht=(0,b.jsxs)(`div`,{className:`space-y-3`,children:[P,Y,Mt,X,Z,$]}),t[142]=P,t[143]=Y,t[144]=Mt,t[145]=X,t[146]=Z,t[147]=$,t[148]=Ht):Ht=t[148],Ht}function Ne(e){return(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:e},e)}function Pe(e,t){return e-t}export{S as SyncSection};
|