decocms 4.3.0 → 4.3.1
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/client/assets/{AlertCircle-DC-zDzV-.js → AlertCircle-B4WPpzHx.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-OJZisFPQ.js → ArrowUpRight-n7J2ORua.js} +1 -1
- package/dist/client/assets/{CheckCircle-Cgnheu-R.js → CheckCircle-DGqDWZvl.js} +1 -1
- package/dist/client/assets/{ChevronDown-DyHvxYlc.js → ChevronDown-BzkFMF52.js} +1 -1
- package/dist/client/assets/{ChevronLeft-dyRjFCmp.js → ChevronLeft-B-p3uhTp.js} +1 -1
- package/dist/client/assets/{ChevronRight-Cpfh3gza.js → ChevronRight-BhZIqa2P.js} +1 -1
- package/dist/client/assets/{ChevronUp-DBpw6M-L.js → ChevronUp-CtzC0jb0.js} +1 -1
- package/dist/client/assets/{DotsVertical-5jSu3d1f.js → DotsVertical-DskMPw9G.js} +1 -1
- package/dist/client/assets/{Eye-bojNLUjA.js → Eye-Bkw15G1G.js} +1 -1
- package/dist/client/assets/{FilterLines-CFl65nng.js → FilterLines-CTiCp3St.js} +1 -1
- package/dist/client/assets/{Globe01-CyfpzbeQ.js → Globe01-CIvUZBh0.js} +1 -1
- package/dist/client/assets/{Globe04-DFpdKSRI.js → Globe04-By_qGXm-.js} +1 -1
- package/dist/client/assets/{HardDrive-B1mtnaeA.js → HardDrive-Da-ea-EW.js} +1 -1
- package/dist/client/assets/{Key01-CwrJlZo0.js → Key01-DugFMT5_.js} +1 -1
- package/dist/client/assets/{LayoutLeft-fsm0LcB8.js → LayoutLeft-DiQ60pSu.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BHwVyDja.js → LinkExternal01-BMDEbMBF.js} +1 -1
- package/dist/client/assets/{Monitor01-ChA6ov2I.js → Monitor01-BFD-ivVa.js} +1 -1
- package/dist/client/assets/{Palette-DusYqL0W.js → Palette-DrmZY9bB.js} +1 -1
- package/dist/client/assets/{Play-CnXG8qqP.js → Play-CiiKZLoa.js} +1 -1
- package/dist/client/assets/{Plus-eGxBB1d8.js → Plus-hFZ_SbzL.js} +1 -1
- package/dist/client/assets/{SearchLg-CDpA_lbT.js → SearchLg-D4Hs4YLQ.js} +1 -1
- package/dist/client/assets/{SearchMd-ujiTPCmg.js → SearchMd-RBoojwOu.js} +1 -1
- package/dist/client/assets/{Settings02-BcAnTzm5.js → Settings02-CuT9JazG.js} +1 -1
- package/dist/client/assets/{Shield01-ZxmFmrvL.js → Shield01-D5Fc_Ylv.js} +1 -1
- package/dist/client/assets/{Star01-DHEkWySe.js → Star01-BMttIRxb.js} +1 -1
- package/dist/client/assets/{Stars01-BdCaKqhF.js → Stars01-HANlppqn.js} +1 -1
- package/dist/client/assets/{Stars02-qnq-_X9g.js → Stars02-Call5O4Q.js} +1 -1
- package/dist/client/assets/{Sun-lTiqxOzH.js → Sun-B0JI-Irq.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DAZXInW8.js → SwitchHorizontal01-BcqnyefE.js} +1 -1
- package/dist/client/assets/{Tool01-CvnpFI53.js → Tool01-DFCFgRlB.js} +1 -1
- package/dist/client/assets/{Trash01-ByxlxTiZ.js → Trash01-CGEeRKCz.js} +1 -1
- package/dist/client/assets/{Upload01-Z77n1bV8.js → Upload01-V0qkIpRk.js} +1 -1
- package/dist/client/assets/{User01-COQtf360.js → User01-Co_ACiCO.js} +1 -1
- package/dist/client/assets/{Users01-wtRJYQKX.js → Users01-B-VpMOmx.js} +1 -1
- package/dist/client/assets/{Users03-DknrDMtT.js → Users03-DBa0-LbB.js} +1 -1
- package/dist/client/assets/{X-DrMVHLcw.js → X-DlUiLOPC.js} +1 -1
- package/dist/client/assets/{XCircle-Ct0eqqsw.js → XCircle-BIxZfFEg.js} +1 -1
- package/dist/client/assets/{XClose-BaZ908gw.js → XClose-CEJj7vhn.js} +1 -1
- package/dist/client/assets/{Zap-wRIFSWIq.js → Zap-USVmT42t.js} +1 -1
- package/dist/client/assets/{ZapSquare-PMiGcZpW.js → ZapSquare-qeizwUPq.js} +1 -1
- package/dist/client/assets/{ZoomOut-6ix2H92j.js → ZoomOut-fkR_2hFy.js} +1 -1
- package/dist/client/assets/{access-gate-D6dGDGRI.js → access-gate-Dob1Rc1a.js} +1 -1
- package/dist/client/assets/{add-section-modal-DOhGqRCL.js → add-section-modal-JApa7Z44.js} +1 -1
- package/dist/client/assets/{agent-icon-oDx9Z_Be.js → agent-icon-CCm6veEh.js} +1 -1
- package/dist/client/assets/{agents-list-BgSM_QG_.js → agents-list-CsmaOmeB.js} +1 -1
- package/dist/client/assets/{ai-providers-Crp7kidL.js → ai-providers-boT7K-bH.js} +1 -1
- package/dist/client/assets/{alert-dialog-CYizItFp.js → alert-dialog-BZ8TrIVu.js} +1 -1
- package/dist/client/assets/{alert-CKj_5smu.js → alert-ez0UE1C8.js} +1 -1
- package/dist/client/assets/{app-editor-Xoia35dq.js → app-editor-D5hlOetk.js} +1 -1
- package/dist/client/assets/{auth-Bej0Tx2Y.js → auth-CNqDC7uO.js} +1 -1
- package/dist/client/assets/{auth-catchall-CmNVpp-8.js → auth-catchall-BG9GP_5W.js} +1 -1
- package/dist/client/assets/{auth-entry-PwLVm-jX.js → auth-entry-BAXdJDhh.js} +1 -1
- package/dist/client/assets/{auth-split-layout-5YwPgbAb.js → auth-split-layout-BQs9JvYd.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DoPUB_Bh.js → authenticate-and-persist-oauth-Dy2XeMqO.js} +1 -1
- package/dist/client/assets/{automation-list-row-CsTyBm4M.js → automation-list-row-DO51bU3z.js} +1 -1
- package/dist/client/assets/{automation-runs-B-dNDEWH.js → automation-runs-CXnAhWiY.js} +1 -1
- package/dist/client/assets/{automations-D395202A.js → automations-akz_oClO.js} +1 -1
- package/dist/client/assets/{avatar-CJP1BOq4.js → avatar-Jhd31ejW.js} +1 -1
- package/dist/client/assets/{badge-DhpSM7g_.js → badge-cxwmW2xd.js} +1 -1
- package/dist/client/assets/{block-document-B2vhG8Ii.js → block-document-AtpOGVAy.js} +1 -1
- package/dist/client/assets/{brand-context-BRpHgxfT.js → brand-context-D-YGjyHl.js} +1 -1
- package/dist/client/assets/{buckets-DDR0G33f.js → buckets-ByuitLd7.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CM1bMunr.js → bulk-category-panel-Bu7vkdyV.js} +1 -1
- package/dist/client/assets/{capability-load-error-CCgNL5xi.js → capability-load-error-C00HLz2q.js} +1 -1
- package/dist/client/assets/{card-BFb5m83e.js → card-D3bKVB8y.js} +1 -1
- package/dist/client/assets/{category-editor-2T4Y_ABL.js → category-editor-AxaHD2PX.js} +1 -1
- package/dist/client/assets/{chat-context-n9syhvq-.js → chat-context-B5uEh4ay.js} +1 -1
- package/dist/client/assets/{checkbox-DmOzmKLP.js → checkbox-PMXW46HN.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BVPtMYcv.js → cli-auth-success-Bo07c76Z.js} +1 -1
- package/dist/client/assets/{collection-detail-BQKV3UU7.js → collection-detail-DEEAX0DE.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bf9dlJRy.js → collection-display-button-Cu6MzTbi.js} +1 -1
- package/dist/client/assets/{collection-search-8iNXnGlM.js → collection-search-CN9TCItb.js} +1 -1
- package/dist/client/assets/{collection-tabs-KA2be3wH.js → collection-tabs-D5o6VjHd.js} +1 -1
- package/dist/client/assets/{command-C34397s2.js → command-D-t5bmXW.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-D2H83R0U.js → commerce-onboarding-CljjzqU2.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-Brra3cMC.js → connect-desktop-dialog-DchtPbuP.js} +1 -1
- package/dist/client/assets/{connection-card-C6NYo4Gp.js → connection-card-BswtsnGE.js} +1 -1
- package/dist/client/assets/{connection-detail-gJ5ITUXe.js → connection-detail-Dt-8hGUD.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CwZx7WkC.js → connection-form-helpers-JfkHcTGO.js} +1 -1
- package/dist/client/assets/{connections-CicrEJbU.js → connections-D2zRczhs.js} +1 -1
- package/dist/client/assets/{context-menu-BW_OZBmV.js → context-menu-Dln5uXsN.js} +1 -1
- package/dist/client/assets/{decopilot-BItqS11w.js → decopilot-CfDwLIyX.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CvYk1hkc.js → decopilot-sse-pool-DoJkdYBA.js} +1 -1
- package/dist/client/assets/{dialog-BAqFyO8a.js → dialog-B2cGEuOv.js} +1 -1
- package/dist/client/assets/{domain-settings-r_E3rHsG.js → domain-settings-DNJMc9fW.js} +1 -1
- package/dist/client/assets/{drawer-CFkqEC3w.js → drawer-Tv6bcT7w.js} +1 -1
- package/dist/client/assets/{dropdown-menu-C62KNjwK.js → dropdown-menu-Dw-pnYXI.js} +1 -1
- package/dist/client/assets/{empty-state-Sh_DuDcy.js → empty-state-D7nJB9UW.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D6bQrejT.js → extract-connection-data-CxK1dunT.js} +1 -1
- package/dist/client/assets/{file-explorer-C8pgfKCz.js → file-explorer-dyfhIxpy.js} +1 -1
- package/dist/client/assets/{file-type-icon-DPWxBpNL.js → file-type-icon-W_AZRfzL.js} +1 -1
- package/dist/client/assets/{files-B9ekmQa_.js → files-B0cAPQGO.js} +1 -1
- package/dist/client/assets/{form-DGE2mWLL.js → form-DI8q6OtF.js} +1 -1
- package/dist/client/assets/{general-BMDKtyZB.js → general-bpWfsinD.js} +1 -1
- package/dist/client/assets/{github-repo-picker-B5tZucJa.js → github-repo-picker-M1TBbLot.js} +1 -1
- package/dist/client/assets/{hooks-CUSV6Enf.js → hooks-DgSrpwcx.js} +6 -6
- package/dist/client/assets/{import-from-deco-dialog-M3CP3Gmn.js → import-from-deco-dialog-IZXHkaJ2.js} +1 -1
- package/dist/client/assets/{index-CFiyU0D9.js → index-5MyNR89x.js} +3 -3
- package/dist/client/assets/{index-DIBoN36v.js → index-5XIJtJJp.js} +1 -1
- package/dist/client/assets/{index-jBUpmiBg.js → index-BD4HYlEX.js} +1 -1
- package/dist/client/assets/{index-mEtg0zTM.js → index-BFW_K0gJ.js} +1 -1
- package/dist/client/assets/{index-Dj7TxcSd.js → index-BQIJkmZH.js} +1 -1
- package/dist/client/assets/{index-CRxAjd1d.js → index-BWMRVcd2.js} +5 -5
- package/dist/client/assets/{index-B6hcksS9.js → index-BgPTCVWL.js} +1 -1
- package/dist/client/assets/{index-B2yJy2sB.js → index-BvxT8QID.js} +1 -1
- package/dist/client/assets/{index-CkTyYAY1.js → index-CABmrUBB.js} +1 -1
- package/dist/client/assets/{index-hmJjUPum.js → index-CO_UO0dQ.js} +1 -1
- package/dist/client/assets/{index-DQnTjiix.js → index-CU_03aq0.js} +1 -1
- package/dist/client/assets/{index-Bb-tYGNK.js → index-CshxsRNd.js} +1 -1
- package/dist/client/assets/{index-DGzNvPy2.js → index-Cxp4ZtBG.js} +1 -1
- package/dist/client/assets/{index-D_S_Rq8A.js → index-Db0TT11B.js} +1 -1
- package/dist/client/assets/{index-redirect-C9Kkmz45.js → index-redirect-Clw5irxr.js} +1 -1
- package/dist/client/assets/{input-BwRH-Gsz.js → input-D9aeO8wK.js} +1 -1
- package/dist/client/assets/{integration-icon-LQhkkaLl.js → integration-icon-CMGCCNyJ.js} +1 -1
- package/dist/client/assets/{label-CdBSUJpf.js → label-Bj7qsNrz.js} +1 -1
- package/dist/client/assets/{login-d0UWtw9N.js → login-BF7DsD8r.js} +1 -1
- package/dist/client/assets/{mcp-oauth-IblqU9XT.js → mcp-oauth-DEfvhjPc.js} +1 -1
- package/dist/client/assets/{members-Bpdrl2e9.js → members-5GqN16xx.js} +1 -1
- package/dist/client/assets/{monaco-editor-5JIc-lnc.js → monaco-editor-B3KzPr3D.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DPsQ-OAn.js → monitoring-stats-row-B6byJzyf.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BtGHmjpp.js → oauth-callback-ai-provider-DGwgTWgk.js} +1 -1
- package/dist/client/assets/{oauth-callback-B1AvYYRn.js → oauth-callback-xYG2bhs8.js} +1 -1
- package/dist/client/assets/{onboarding-DfUmI7F5.js → onboarding-CnEfKMnB.js} +1 -1
- package/dist/client/assets/{org-install-CpJAFt1s.js → org-install-DfRej3K2.js} +1 -1
- package/dist/client/assets/{org-layout-BsuFzdH_.js → org-layout-Bc9Glt8J.js} +1 -1
- package/dist/client/assets/{organization-choice-DrxWffZp.js → organization-choice-DGTNMrAe.js} +1 -1
- package/dist/client/assets/{page-seo-form-BLqpZnj6.js → page-seo-form-CcZ53r1B.js} +1 -1
- package/dist/client/assets/page-seo-sheet-D8FULk67.js +1 -0
- package/dist/client/assets/{popover-BXFiEQtN.js → popover-DowpnV25.js} +1 -1
- package/dist/client/assets/{post-editor-Tve7DmSa.js → post-editor-SVRg54TN.js} +1 -1
- package/dist/client/assets/{preview-dialog-CQgf0QcR.js → preview-dialog-CwTtT7qa.js} +1 -1
- package/dist/client/assets/{primitives-BF1opf4F.js → primitives-CAIbeS4G.js} +1 -1
- package/dist/client/assets/{profile-C8meo3ry.js → profile-BF9HkmK_.js} +1 -1
- package/dist/client/assets/project-app-view-BQ4gYl-m.js +1 -0
- package/dist/client/assets/record-editor-BNOUgLnP.js +1 -0
- package/dist/client/assets/registry-Bo4vnNv4.js +2 -0
- package/dist/client/assets/{registry-layout-C4UMhzml.js → registry-layout-CRS0SBoX.js} +1 -1
- package/dist/client/assets/{require-capability--mIKExbX.js → require-capability-BclGG3Lq.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DDJmFi3U.js → required-auth-layout-CZqB7vUr.js} +1 -1
- package/dist/client/assets/{reset-password-CuNa1ife.js → reset-password-CKTIPX2L.js} +1 -1
- package/dist/client/assets/{roles-BMhGnq_F.js → roles-DTMTF-Ml.js} +1 -1
- package/dist/client/assets/{scroll-area-BM-54tW1.js → scroll-area-DLqMfi_N.js} +1 -1
- package/dist/client/assets/{search-input-M7ubuBMG.js → search-input-BXzntIcj.js} +1 -1
- package/dist/client/assets/{secrets-BN1JMG5V.js → secrets-D5X-Z3Mv.js} +1 -1
- package/dist/client/assets/{sections-editor-Buouhx1S.js → sections-editor-jc7NLaYJ.js} +1 -1
- package/dist/client/assets/{select-C6v8Xcth.js → select-CZgnwyj0.js} +1 -1
- package/dist/client/assets/{select-model-Cz9R_UN3.js → select-model-BLeb_gwV.js} +1 -1
- package/dist/client/assets/{seo-editor-D9o3utSQ.js → seo-editor-BCj_Owpk.js} +1 -1
- package/dist/client/assets/{settings-layout-CSaUQUXv.js → settings-layout-QQo5fqWD.js} +1 -1
- package/dist/client/assets/{settings-section-MeT61nuY.js → settings-section-Br7JxQz6.js} +1 -1
- package/dist/client/assets/{sheet-DyU03ddw.js → sheet-M6dgbK60.js} +1 -1
- package/dist/client/assets/{shell-controls-DtGb6E4l.js → shell-controls-CqC5zeBM.js} +1 -1
- package/dist/client/assets/{shell-layout-Nyz7GHu7.js → shell-layout-CnTaR8UN.js} +1 -1
- package/dist/client/assets/{shell-route-loading-BRcTX0VT.js → shell-route-loading-DFu6UBUI.js} +1 -1
- package/dist/client/assets/{sidebar-BNrafefE.js → sidebar-oYab2QX7.js} +1 -1
- package/dist/client/assets/{skeleton-B0I93PJP.js → skeleton-DoPnd-4p.js} +1 -1
- package/dist/client/assets/{sortable.esm-MymOIPKk.js → sortable.esm-D8GIYMew.js} +1 -1
- package/dist/client/assets/{sso-CfyYgWAs.js → sso-C9l3tEYi.js} +1 -1
- package/dist/client/assets/{store-T7GJ1SPI.js → store-DXXRJ_VG.js} +1 -1
- package/dist/client/assets/store-registry-DuMrJjAm.js +2 -0
- package/dist/client/assets/{studio-tools-CNO5iCKk.js → studio-tools-4NjxmaVZ.js} +1 -1
- package/dist/client/assets/{switch-CCMIMmOF.js → switch-DLNzAYS1.js} +1 -1
- package/dist/client/assets/{table-DeNuxLMl.js → table-B06cGuvx.js} +1 -1
- package/dist/client/assets/{tabs-Ca0vDJqc.js → tabs-8VxbUDVb.js} +1 -1
- package/dist/client/assets/{task-status-B3nPzwP7.js → task-status-Cm29b2AK.js} +1 -1
- package/dist/client/assets/{textarea-BYT525JZ.js → textarea-Bwn2Wdf8.js} +1 -1
- package/dist/client/assets/{toggle-group-9TrYMc69.js → toggle-group-CndOAl-N.js} +1 -1
- package/dist/client/assets/{toolbar-p8VcpV1N.js → toolbar-ClL4Dhs_.js} +1 -1
- package/dist/client/assets/{tools-list-uWC3Ij6C.js → tools-list-DL7ip2gg.js} +1 -1
- package/dist/client/assets/{tooltip-DrpiSbRG.js → tooltip-DvT2WKW9.js} +1 -1
- package/dist/client/assets/{types-C7syjwde.js → types-U3TqUYrY.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C7KmiuqP.js → use-ai-providers-D4m0Vu5Q.js} +1 -1
- package/dist/client/assets/{use-automations-RMjkwkxX.js → use-automations-ChKoVegP.js} +1 -1
- package/dist/client/assets/{use-capability-C6Dwri-U.js → use-capability-CQPMPR-5.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BcxdOJLx.js → use-clock-tick-CJO5qoT7.js} +1 -1
- package/dist/client/assets/{use-collections-B4atckEK.js → use-collections-DAKL2YGx.js} +1 -1
- package/dist/client/assets/{use-connection-Dz29RF9P.js → use-connection-BvgL1-Da.js} +1 -1
- package/dist/client/assets/{use-copy-Xy0buIqd.js → use-copy-WaepYGtr.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DVmI--_C.js → use-create-virtual-mcp-BSTwTG_J.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-B4mbwJnu.js → use-debounced-autosave-mA5Fw-09.js} +1 -1
- package/dist/client/assets/{use-debounced-value-C6U3mliE.js → use-debounced-value-cQ7ZQKtl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CpQNzv3e.js → use-decopilot-events-BDkaUhLT.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CqeuxO_6.js → use-delete-connection-B9XKLaZf.js} +1 -1
- package/dist/client/assets/{use-file-configs-CFCmr--W.js → use-file-configs-Dfeoim5G.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BX1nHHVY.js → use-infinite-scroll-4tV6tFjB.js} +1 -1
- package/dist/client/assets/{use-join-requests-j9WpmFq7.js → use-join-requests-CdAJlpjO.js} +1 -1
- package/dist/client/assets/{use-mcp-client-xOK-OF8p.js → use-mcp-client-CherrXvD.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Crr3H7P7.js → use-mcp-prompts-BnOdccbh.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C8tMWwG9.js → use-mcp-tools-w6KwNDra.js} +1 -1
- package/dist/client/assets/{use-members-BMNjJExY.js → use-members-ge80zFlj.js} +1 -1
- package/dist/client/assets/{use-mobile-NlF-3RoP.js → use-mobile-lIIxFH5C.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DZubxUSm.js → use-navigate-to-agent-BtVHPn7N.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C_UJ3Vg_.js → use-org-auth-client-Ctxe3HXF.js} +1 -1
- package/dist/client/assets/{use-org-fs-DyK8omii.js → use-org-fs-D-40uH2W.js} +1 -1
- package/dist/client/assets/{use-org-sso-DkqH8Zpz.js → use-org-sso-BxzKK5rO.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Cu69Rnex.js → use-organization-roles-DmQYT9Pn.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DksiQdGc.js → use-organization-settings-CZfEdu0P.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BOZLpkM5.js → use-registry-connections-C_VqH6te.js} +1 -1
- package/dist/client/assets/{use-secrets-CLmhH-Rb.js → use-secrets-Dn4coT0R.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DxV7deix.js → use-status-sounds-CWHPQWBO.js} +1 -1
- package/dist/client/assets/{use-view-mode-C2dllj6L.js → use-view-mode--ERDyrf1.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-2U_MnYnK.js → use-virtual-mcp-C5pbd140.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-_sl5B1oR.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-_eC9d3ii.js +1 -0
- package/dist/client/assets/{useSuspenseQueries-Cysvk68n.js → useSuspenseQueries-CRdXyKYB.js} +1 -1
- package/dist/client/assets/{variant-calendar-mZn_D1Zo.js → variant-calendar-Dqcgu1C1.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-4CQodGfa.js → view-mode-toggle-BP4LoXpd.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +10 -1
- package/package.json +1 -1
- package/dist/client/assets/page-seo-sheet-C7jjKuEW.js +0 -1
- package/dist/client/assets/project-app-view-BR2-hR46.js +0 -1
- package/dist/client/assets/record-editor-DbXO7U7E.js +0 -1
- package/dist/client/assets/registry-jjhvqeDq.js +0 -2
- package/dist/client/assets/store-registry-B-YJeGRV.js +0 -2
- package/dist/client/assets/useInfiniteQuery-RUqqRph1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-fRYRtDkY.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,m as te,K as U,j as a,r as M,l as ne}from"./index-CFiyU0D9.js";import{i as oe,p as z,af as se,ag as re,ah as ie,j as le,ai as ce,ac as ae}from"./index-CRxAjd1d.js";import{L as Y}from"./label-CdBSUJpf.js";import{S as $}from"./switch-CCMIMmOF.js";import{a as ue,b as fe,c as pe,S as de,d as ye}from"./select-C6v8Xcth.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function Ee(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=Ee(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=j=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,j)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=j=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:j}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const E={...o};if(T)delete E[u];else{const D=r?.[u];E[u]=D??(u==="type"?"website":"")}s(E)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const j=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const E=p&&d.includes(u),D=E&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),E&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>j(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const E=me(s);p(E),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const E=Se(T,n);p(E)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let j;e[8]!==h||e[9]!==f?(j=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=j):j=e[10];const P=j;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,qe as a,Ce as b,He as c,Z as d,Ee as f,k as i,Ze as r,w as u};
|
|
1
|
+
import{c as L,m as te,K as U,j as a,r as M,l as ne}from"./index-5MyNR89x.js";import{i as oe,p as z,af as se,ag as re,ah as ie,j as le,ai as ce,ac as ae}from"./index-BWMRVcd2.js";import{L as Y}from"./label-Bj7qsNrz.js";import{S as $}from"./switch-DLNzAYS1.js";import{a as ue,b as fe,c as pe,S as de,d as ye}from"./select-CZgnwyj0.js";const he="website/sections/Rendering/Lazy.tsx";function K(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function N(t){if(!K(t))return!1;const e=t.__resolveType;return typeof e=="string"&&oe(e)}function k(t){return t!=null}function w(t){if(t==null)return t;if(N(t)){const e=t.section;return e==null?null:K(e)?e:{}}return K(t)?t:void 0}function G(t,e){return t===null?null:N(e)?{...e,section:t}:t}function me(t){return{__resolveType:t}}function Se(t,e){if(!k(e))return null;if(t){const n=w(e)??{};return{__resolveType:he,section:n}}return N(e)?w(e)??null:K(e)?e:null}const ge="General";function O(t){return/\/Seo(V\d+)?\.tsx$/i.test(t)||t.includes("/sections/Seo")}function Q(t,e){return t===C?ge:e}function W(t){const e=re(t),n=new Set,o=[];for(const s of e)O(s.resolveType)&&(ie(s.resolveType)||n.has(s.resolveType)||(n.add(s.resolveType),o.push({resolveType:s.resolveType,title:Q(s.resolveType,s.title),description:s.description})));return o}function V(t){const e=se(t),n=z(e,t),o=W(n?.properties?.seo);return o.length>0?o:ve(t)}function ve(t){const e=t.manifest?.blocks??{},n=[];for(const[o,s]of Object.entries(e))if(o.includes("sections"))for(const r of Object.keys(s)){if(!O(r))continue;const i=r.split("/").pop()?.replace(/\.tsx?$/,"")??r;n.push({resolveType:r,title:Q(r,i)})}return n}function Z(t){const e=V(t),n=e.find(o=>o.resolveType===C);return n?n.resolveType:e[0]?.resolveType??C}function q(t,e){const n=e.__resolveType;if(typeof n=="string"){const o=z(n,t),s=W(o?.properties?.seo);if(s.length>0)return s}return V(t)}function be(t,e){const n=q(t,e),o=n.find(s=>s.resolveType===C);return o?o.resolveType:n[0]?.resolveType??Z(t)}function Te(t,e){const n=e?.__resolveType;return typeof n=="string"&&n.length>0?n:Z(t)}function xe(t,e,n){const o=n.__resolveType;return typeof o=="string"&&O(o)?o:be(t,e)}const _e=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),C="website/sections/Seo/SeoV2.tsx",Re=["title","titleTemplate","description","descriptionTemplate","image","favicon","type","noIndexing"];function F(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function je(t){return typeof t.__resolveType=="string"&&O(t.__resolveType)?!0:Re.some(e=>e in t)}function Ee(t,e){for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o,r=s.__resolveType;if(typeof r=="string"&&_e.has(r))continue;const i=s.seo;if(F(i)){const c=i;if(je(c))return{blockKey:n,kind:"nested",seoData:c,blockData:s,seoResolveType:e?xe(e,s,c):typeof c.__resolveType=="string"&&O(c.__resolveType)?c.__resolveType:C}}}for(const[n,o]of Object.entries(t)){if(!F(o))continue;const s=o;if(typeof s.__resolveType=="string"&&O(s.__resolveType))return{blockKey:n,kind:"block",seoData:s,blockData:s,seoResolveType:s.__resolveType}}return null}function De(t,e){return t.kind==="block"?e:{...t.blockData,seo:e}}function Ze(t,e,n){if(e.kind==="site"){const l=Ee(t,n);return l?{blockKey:l.blockKey,seoData:l.seoData,seoResolveType:l.seoResolveType,siteKind:l.kind,seoTypeOptions:n?q(n,l.blockData):void 0,build:d=>De(l,d)}:null}const o=t[e.pageKey];if(!F(o))return null;const s=o,r=s.seo,i=w(r),c=i&&F(i)?i:void 0;return{blockKey:e.pageKey,seoData:c,rawSeoData:r,seoResolveType:n?Te(n,c):typeof c?.__resolveType=="string"?c.__resolveType:C,seoTypeOptions:n?V(n):void 0,build:l=>({...s,seo:l===null?null:G(l,r)})}}function I(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Ce(t,e,n,o){if(t.kind==="page"){if(!I(n))return null;const s=n.seo!==void 0?n.seo:e.rawSeoData;return{...n,seo:o===null?null:G(o,s)}}return I(n)?e.siteKind==="block"?o:{...n,seo:o}:null}function qe(t,e){const n=t.__resolveType;return typeof n=="string"&&n.length>0?n:e.seoResolveType}function He(t){const e=L.c(23),{orgSlug:n,virtualMcpId:o,branch:s,target:r,resolved:i,onSaved:c}=t,l=te(),d=`${n}/${o}/${s}`;let y;e[0]!==s||e[1]!==n||e[2]!==o?(y={orgSlug:n,virtualMcpId:o,branch:s},e[0]=s,e[1]=n,e[2]=o,e[3]=y):y=e[3];let p;e[4]!==c?(p={onSaved:c},e[4]=c,e[5]=p):p=e[5];const{save:f,flush:S,isPending:h}=le(y,p);let m;e[6]!==d||e[7]!==l||e[8]!==i||e[9]!==f||e[10]!==r?(m=j=>{i&&f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return Ce(r,i,b,j)})},e[6]=d,e[7]=l,e[8]=i,e[9]=f,e[10]=r,e[11]=m):m=e[11];const g=m;let v;e[12]!==d||e[13]!==l||e[14]!==i||e[15]!==f||e[16]!==r?(v=j=>{!i||r.kind!=="page"||f(i.blockKey,()=>{const b=l.getQueryData(U.decofile(d))?.[i.blockKey];return I(b)?{...b,seo:j}:null})},e[12]=d,e[13]=l,e[14]=i,e[15]=f,e[16]=r,e[17]=v):v=e[17];const R=v;let x;return e[18]!==S||e[19]!==h||e[20]!==R||e[21]!==g?(x={persistSeo:g,persistRawSeo:R,flush:S,isPending:h},e[18]=S,e[19]=h,e[20]=R,e[21]=g,e[22]=x):x=e[22],x}const Pe="https://deco.cx/docs/en/performance/edge-async-render";function Oe(t){const e=L.c(16),{rawSeo:n,onEnableChange:o,onAsyncRenderChange:s,children:r}=t;let i;e[0]!==n?(i=k(n),e[0]=n,e[1]=i):i=e[1];const c=i;let l;e[2]!==n?(l=N(n),e[2]=n,e[3]=l):l=e[3];const d=l;let y;e[4]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsx(Y,{htmlFor:"seo-enable",className:"text-sm font-medium",children:"Enable SEO"}),e[4]=y):y=e[4];let p;e[5]!==c||e[6]!==o?(p=a.jsxs("div",{className:"flex items-center justify-between gap-3",children:[y,a.jsx($,{id:"seo-enable",checked:c,onCheckedChange:o})]}),e[5]=c,e[6]=o,e[7]=p):p=e[7];let f;e[8]!==d||e[9]!==r||e[10]!==c||e[11]!==s?(f=c&&a.jsxs(a.Fragment,{children:[r,a.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[a.jsxs("div",{className:"min-w-0 space-y-1",children:[a.jsx("p",{className:"text-sm font-medium",children:"Async render"}),a.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",a.jsx("a",{href:Pe,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:"documentation"}),"."]})]}),a.jsx($,{id:"seo-async-render",checked:d,onCheckedChange:s,className:"shrink-0"})]})]}),e[8]=d,e[9]=r,e[10]=c,e[11]=s,e[12]=f):f=e[12];let S;return e[13]!==p||e[14]!==f?(S=a.jsxs("div",{className:"space-y-4",children:[p,f]}),e[13]=p,e[14]=f,e[15]=S):S=e[15],S}const B=["type","title","description","canonical","favicon","image","themeColor"],Le=["jsonLD","omitVariants","title","description","noIndexing","ignoreStructuredData"],Fe=["jsonLD","title","description","noIndexing","configJsonLD"];function H(t){return t===C||/\/Seo\/SeoV2\.tsx$/i.test(t)?"general":/\/Seo\/SeoPDP/i.test(t)?"pdp":/\/Seo\/SeoPLP/i.test(t)?"plp":"full"}function Ke(t){switch(t){case"general":return B;case"pdp":return Le;case"plp":return Fe;default:return null}}function J(t,e){const n=Ke(H(e));if(!n||!t.properties)return t;const o={};for(const s of n){const r=t.properties[s];r&&(o[s]=r)}return{...t,properties:o}}function ke(){return B.filter(t=>t!=="type")}function Ne(t){return t.replace(/([A-Z])/g," $1").replace(/^./,e=>e.toUpperCase()).trim()}function Ae(t,e){return t[e]===void 0}function $e(t){const e=L.c(13),{schema:n,value:o,onChange:s,siteDefaultSeo:r,formResetKey:i}=t,l=J(n,C).properties??{},d=ke();let y;e[0]!==r?(y=!!r&&Object.keys(r).length>0,e[0]=r,e[1]=y):y=e[1];const p=y,[f,S]=M.useState(i);let h;e[2]===Symbol.for("react.memo_cache_sentinel")?(h={},e[2]=h):h=e[2];const[m,g]=M.useState(h);f!==i&&(S(i),g({}));let v;e[3]!==m||e[4]!==o?(v=u=>m[u]!==void 0?m[u]:Ae(o,u),e[3]=m,e[4]=o,e[5]=v):v=e[5];const R=v;let x;e[6]!==s||e[7]!==r||e[8]!==o?(x=(u,T)=>{g(D=>({...D,[u]:T}));const E={...o};if(T)delete E[u];else{const D=r?.[u];E[u]=D??(u==="type"?"website":"")}s(E)},e[6]=s,e[7]=r,e[8]=o,e[9]=x):x=e[9];const j=x,P="min-w-0 space-y-6",b=B.map(u=>{const T=l[u];if(!T)return null;const E=p&&d.includes(u),D=E&&R(u),X=D?r?.[u]??o[u]:o[u],ee=T.title??Ne(u);return a.jsxs("div",{className:"space-y-2",children:[a.jsx("div",{className:ne(D&&"pointer-events-none opacity-60"),children:ce({schema:T,value:X,onChange:A=>{D||s({...o,[u]:A})},path:u,label:ee,breadcrumbPath:[],onBreadcrumbChange:we})}),E&&a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx($,{id:`seo-use-default-${u}`,checked:D,onCheckedChange:A=>j(u,A)}),a.jsx(Y,{htmlFor:`seo-use-default-${u}`,className:"text-xs font-normal text-muted-foreground",children:"Use default"})]})]},u)});let _;return e[10]!==i||e[11]!==b?(_=a.jsx("div",{className:P,children:b},i),e[10]=i,e[11]=b,e[12]=_):_=e[12],_}function we(){}function Ie(t){const e=L.c(18),{schema:n,resolveType:o,value:s,formResetKey:r,onChange:i,onBreadcrumbChange:c,siteDefaultSeo:l}=t;if(H(o)==="general"){let m;e[0]!==i?(m=v=>i(v),e[0]=i,e[1]=m):m=e[1];let g;return e[2]!==r||e[3]!==n||e[4]!==l||e[5]!==m||e[6]!==s?(g=a.jsx($e,{schema:n,value:s,onChange:m,siteDefaultSeo:l,formResetKey:r}),e[2]=r,e[3]=n,e[4]=l,e[5]=m,e[6]=s,e[7]=g):g=e[7],g}let y;e[8]!==o||e[9]!==n?(y=J(n,o),e[8]=o,e[9]=n,e[10]=y):y=e[10];const p=y;let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f=[],e[11]=f):f=e[11];const S=c??Ye;let h;return e[12]!==p||e[13]!==r||e[14]!==i||e[15]!==S||e[16]!==s?(h=a.jsx(ae,{schema:p,value:s,onChange:i,basePath:"",breadcrumbPath:f,onBreadcrumbChange:S},r),e[12]=p,e[13]=r,e[14]=i,e[15]=S,e[16]=s,e[17]=h):h=e[17],h}function Ye(){}function Ve(t){const e=L.c(10),{options:n,value:o,onChange:s}=t;if(n.length<=1)return null;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx(Y,{className:"text-xs text-muted-foreground",children:"SEO type"}),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(fe,{className:"w-full",children:a.jsx(pe,{placeholder:"Select SEO type"})}),e[1]=i):i=e[1];let c;e[2]!==n?(c=n.filter(Ue).map(Be),e[2]=n,e[3]=c):c=e[3];let l;e[4]!==c?(l=a.jsx(de,{children:c}),e[4]=c,e[5]=l):l=e[5];let d;return e[6]!==s||e[7]!==l||e[8]!==o?(d=a.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[r,a.jsxs(ye,{value:o,onValueChange:s,children:[i,l]})]}),e[6]=s,e[7]=l,e[8]=o,e[9]=d):d=e[9],d}function Be(t){return a.jsx(ue,{value:t.resolveType,children:t.title},t.resolveType)}function Ue(t){return t.resolveType.length>0}function Je(t){const e=L.c(33),{rawSeo:n,innerSeo:o,defaultResolveType:s,seoSchema:r,activeResolveType:i,seoTypeOptions:c,formResetKey:l,siteDefaultSeo:d,onBreadcrumbChange:y,onPersistRaw:p,onInnerChange:f,onClearForm:S,onBumpFormKey:h,beforeFields:m}=t;let g;e[0]!==s||e[1]!==h||e[2]!==S||e[3]!==p?(g=T=>{if(T){const E=me(s);p(E),S(),h();return}p(null),S(),h()},e[0]=s,e[1]=h,e[2]=S,e[3]=p,e[4]=g):g=e[4];const v=g;let R;e[5]!==p||e[6]!==n?(R=T=>{const E=Se(T,n);p(E)},e[5]=p,e[6]=n,e[7]=R):R=e[7];const x=R;let j;e[8]!==h||e[9]!==f?(j=T=>{f({__resolveType:T}),h()},e[8]=h,e[9]=f,e[10]=j):j=e[10];const P=j;let b;e[11]!==i||e[12]!==P||e[13]!==n||e[14]!==r||e[15]!==c?(b=k(n)&&r&&i&&c&&c.length>0&&a.jsx(Ve,{options:c,value:i,onChange:P}),e[11]=i,e[12]=P,e[13]=n,e[14]=r,e[15]=c,e[16]=b):b=e[16];let _;e[17]!==i||e[18]!==l||e[19]!==o||e[20]!==y||e[21]!==f||e[22]!==n||e[23]!==r||e[24]!==d?(_=k(n)&&r&&i&&a.jsx(Ie,{schema:r,resolveType:i,value:o,formResetKey:l,onChange:T=>f(T),onBreadcrumbChange:y,siteDefaultSeo:d}),e[17]=i,e[18]=l,e[19]=o,e[20]=y,e[21]=f,e[22]=n,e[23]=r,e[24]=d,e[25]=_):_=e[25];let u;return e[26]!==m||e[27]!==x||e[28]!==v||e[29]!==n||e[30]!==b||e[31]!==_?(u=a.jsxs(Oe,{rawSeo:n,onEnableChange:v,onAsyncRenderChange:x,children:[m,b,_]}),e[26]=m,e[27]=x,e[28]=v,e[29]=n,e[30]=b,e[31]=_,e[32]=u):u=e[32],u}export{Je as P,Ie as S,qe as a,Ce as b,He as c,Z as d,Ee as f,k as i,Ze as r,w as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as it,r as E,j as e,i as rt}from"./index-5MyNR89x.js";import{S as mt,b as pt,c as st,d as at}from"./sheet-M6dgbK60.js";import{S as nt}from"./scroll-area-DLqMfi_N.js";import{r as lt,c as ct,u as dt,a as St,i as ft,f as ut,d as vt,P as ht,S as gt}from"./page-seo-form-CcZ53r1B.js";import{p as xt}from"./index-BWMRVcd2.js";import"./X-DlUiLOPC.js";import"./agent-icon-CCm6veEh.js";import"./AlertCircle-B4WPpzHx.js";import"./Tool01-DFCFgRlB.js";import"./SwitchHorizontal01-BcqnyefE.js";import"./Settings02-CuT9JazG.js";import"./XCircle-BIxZfFEg.js";import"./ArrowUpRight-n7J2ORua.js";import"./ZapSquare-qeizwUPq.js";import"./Users03-DBa0-LbB.js";import"./CheckCircle-DGqDWZvl.js";import"./ChevronUp-CtzC0jb0.js";import"./ChevronDown-BzkFMF52.js";import"./ChevronLeft-B-p3uhTp.js";import"./ChevronRight-BhZIqa2P.js";import"./DotsVertical-DskMPw9G.js";import"./Stars02-Call5O4Q.js";import"./Eye-Bkw15G1G.js";import"./ZoomOut-fkR_2hFy.js";import"./Globe01-CIvUZBh0.js";import"./FilterLines-CTiCp3St.js";import"./Star01-BMttIRxb.js";import"./Globe04-By_qGXm-.js";import"./HardDrive-Da-ea-EW.js";import"./Key01-DugFMT5_.js";import"./LayoutLeft-DiQ60pSu.js";import"./LinkExternal01-BMDEbMBF.js";import"./Monitor01-BFD-ivVa.js";import"./Sun-B0JI-Irq.js";import"./Palette-DrmZY9bB.js";import"./Play-CiiKZLoa.js";import"./Plus-hFZ_SbzL.js";import"./SearchLg-D4Hs4YLQ.js";import"./SearchMd-RBoojwOu.js";import"./Shield01-D5Fc_Ylv.js";import"./Stars01-HANlppqn.js";import"./Trash01-CGEeRKCz.js";import"./Upload01-V0qkIpRk.js";import"./User01-Co_ACiCO.js";import"./Users01-B-VpMOmx.js";import"./XClose-CEJj7vhn.js";import"./Zap-USVmT42t.js";import"./use-clock-tick-CJO5qoT7.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WaepYGtr.js";import"./tooltip-DvT2WKW9.js";import"./file-type-icon-W_AZRfzL.js";import"./dialog-B2cGEuOv.js";import"./use-mobile-lIIxFH5C.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-U3TqUYrY.js";import"./use-mcp-client-CherrXvD.js";import"./auth-CNqDC7uO.js";import"./chat-context-B5uEh4ay.js";import"./hooks-DgSrpwcx.js";import"./decopilot-sse-pool-DoJkdYBA.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-C5pbd140.js";import"./use-collections-DAKL2YGx.js";import"./use-ai-providers-D4m0Vu5Q.js";import"./studio-tools-4NjxmaVZ.js";import"./use-decopilot-events-BDkaUhLT.js";import"./use-organization-settings-CZfEdu0P.js";import"./shell-layout-CnTaR8UN.js";import"./avatar-Jhd31ejW.js";import"./required-auth-layout-CZqB7vUr.js";import"./use-org-sso-BxzKK5rO.js";import"./integration-icon-CMGCCNyJ.js";import"./use-navigate-to-agent-BtVHPn7N.js";import"./use-connection-BvgL1-Da.js";import"./use-mcp-prompts-BnOdccbh.js";import"./form-DI8q6OtF.js";import"./label-Bj7qsNrz.js";import"./input-D9aeO8wK.js";import"./select-CZgnwyj0.js";import"./switch-DLNzAYS1.js";import"./index-BFW_K0gJ.js";import"./drawer-Tv6bcT7w.js";import"./collection-search-CN9TCItb.js";import"./tabs-8VxbUDVb.js";import"./toggle-group-CndOAl-N.js";import"./sortable.esm-D8GIYMew.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BswtsnGE.js";import"./use-registry-connections-C_VqH6te.js";import"./useInfiniteQuery-_sl5B1oR.js";import"./use-infinite-scroll-4tV6tFjB.js";import"./extract-connection-data-CxK1dunT.js";import"./card-D3bKVB8y.js";import"./collection-tabs-D5o6VjHd.js";import"./badge-cxwmW2xd.js";import"./textarea-Bwn2Wdf8.js";import"./connection-form-helpers-JfkHcTGO.js";import"./authenticate-and-persist-oauth-Dy2XeMqO.js";import"./mcp-oauth-DEfvhjPc.js";import"./useSuspenseInfiniteQuery-_eC9d3ii.js";import"./connect-desktop-dialog-DchtPbuP.js";import"./decopilot-CfDwLIyX.js";import"./checkbox-PMXW46HN.js";import"./skeleton-DoPnd-4p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Br7JxQz6.js";import"./popover-DowpnV25.js";import"./command-D-t5bmXW.js";import"./index-BD4HYlEX.js";import"./use-org-fs-D-40uH2W.js";import"./dropdown-menu-Dw-pnYXI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CWHPQWBO.js";import"./empty-state-D7nJB9UW.js";import"./toolbar-ClL4Dhs_.js";import"./preview-dialog-CwTtT7qa.js";import"./index-BgPTCVWL.js";import"./use-mcp-tools-w6KwNDra.js";import"./use-capability-CQPMPR-5.js";import"./shell-route-loading-DFu6UBUI.js";import"./tools-list-DL7ip2gg.js";import"./alert-dialog-BZ8TrIVu.js";import"./use-debounced-autosave-mA5Fw-09.js";import"./index-CshxsRNd.js";import"./sidebar-oYab2QX7.js";import"./search-input-BXzntIcj.js";import"./github-repo-picker-M1TBbLot.js";import"./use-debounced-value-cQ7ZQKtl.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-Dn4coT0R.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-CXnAhWiY.js";import"./table-B06cGuvx.js";import"./use-members-ge80zFlj.js";import"./use-org-auth-client-Ctxe3HXF.js";import"./task-status-Cm29b2AK.js";import"./use-automations-ChKoVegP.js";import"./use-file-configs-Dfeoim5G.js";import"./monaco-editor-B3KzPr3D.js";import"./select-model-BLeb_gwV.js";import"./automation-list-row-DO51bU3z.js";function mi(u){const t=it.c(46),{open:N,onOpenChange:P,orgSlug:Q,virtualMcpId:U,branch:W,decofile:G,meta:s,target:m,onSaved:X}=u,o=lt(G,m,s),k=m.kind==="site"?"site":m.pageKey,[Y,Z]=E.useState(k),[tt,i]=E.useState(null),[J,g]=E.useState(void 0),[x,y]=E.useState(0);Y!==k&&(Z(k),i(null),g(void 0),y(wt));const{persistSeo:a,persistRawSeo:I,flush:K,isPending:D}=ct({orgSlug:Q,virtualMcpId:U,branch:W,target:m,resolved:o,onSaved:X}),w=m.kind==="page",ot=w?o?.rawSeoData:void 0,v=J!==void 0?J:ot,et=w?dt(v)??void 0:void 0,h=tt??et??o?.seoData??{},p=o?St(h,o):null,n=p&&(!w||ft(v))?xt(p,s):null,_=m.kind==="page"?ut(G,s)?.seoData??void 0:void 0;let j;t[0]!==s?(j=vt(s),t[0]=s,t[1]=j):j=t[1];const M=j;let R;t[2]!==a||t[3]!==o||t[4]!==i?(R=r=>{if(!o)return;const L=r;i(L),a(L)},t[2]=a,t[3]=o,t[4]=i,t[5]=R):R=t[5];const V=R;let F;t[6]!==K||t[7]!==P?(F=r=>{r||K(),P(r)},t[6]=K,t[7]=P,t[8]=F):F=t[8];const z=F,A=m.kind==="site"?"Site SEO":"Page SEO",T=w&&o,B=m.kind==="site"&&o&&n,H=m.kind==="site"?"No site-level SEO block found.":o?"SEO schema not found for this page.":"Could not load page SEO.";let C;t[9]!==i?(C=()=>i(null),t[9]=i,t[10]=C):C=t[10];const $=C;let O;t[11]!==y?(O=()=>y(yt),t[11]=y,t[12]=O):O=t[12];const q=O;let l;t[13]!==A?(l=e.jsx(mt,{className:"text-sm font-semibold",children:A}),t[13]=A,t[14]=l):l=t[14];let c;t[15]!==D?(c=D&&e.jsx(rt,{size:14,className:"animate-spin text-muted-foreground"}),t[15]=D,t[16]=c):c=t[16];let d;t[17]!==l||t[18]!==c?(d=e.jsxs(pt,{className:"px-4 py-3 border-b flex-row items-center justify-between space-y-0",children:[l,c]}),t[17]=l,t[18]=c,t[19]=d):d=t[19];let S;t[20]!==p||t[21]!==q||t[22]!==$||t[23]!==M||t[24]!==v||t[25]!==h||t[26]!==H||t[27]!==x||t[28]!==V||t[29]!==I||t[30]!==a||t[31]!==o||t[32]!==n||t[33]!==i||t[34]!==g||t[35]!==T||t[36]!==B||t[37]!==_?(S=!o||!T&&!B?e.jsx("div",{className:"flex h-full items-center justify-center text-sm text-muted-foreground",children:H}):e.jsx(nt,{className:"flex-1 min-h-0 [&_[data-slot=scroll-area-viewport]>div]:!block",children:e.jsx("div",{className:"px-6 py-4",children:e.jsx("div",{className:"mx-auto max-w-sm",children:T?e.jsx(ht,{rawSeo:v,innerSeo:h,defaultResolveType:M,seoSchema:n,activeResolveType:p,seoTypeOptions:o.seoTypeOptions,formResetKey:x,siteDefaultSeo:_,onPersistRaw:r=>{g(r),I(r)},onInnerChange:r=>{i(r),a(r)},onClearForm:$,onBumpFormKey:q}):n&&p&&e.jsx(gt,{schema:n,resolveType:p,value:h,formResetKey:x,onChange:V})})})}),t[20]=p,t[21]=q,t[22]=$,t[23]=M,t[24]=v,t[25]=h,t[26]=H,t[27]=x,t[28]=V,t[29]=I,t[30]=a,t[31]=o,t[32]=n,t[33]=i,t[34]=g,t[35]=T,t[36]=B,t[37]=_,t[38]=S):S=t[38];let f;t[39]!==d||t[40]!==S?(f=e.jsxs(st,{side:"right",className:"w-[400px] sm:max-w-[440px] p-0 gap-0",children:[d,S]}),t[39]=d,t[40]=S,t[41]=f):f=t[41];let b;return t[42]!==z||t[43]!==N||t[44]!==f?(b=e.jsx(at,{open:N,onOpenChange:z,children:f}),t[42]=z,t[43]=N,t[44]=f,t[45]=b):b=t[45],b}function yt(u){return u+1}function wt(u){return u+1}export{mi as SeoSheet};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,a3 as $,j as c,a4 as L,ak as z,_ as O,V as _,W as g,U as E,Z as j,a2 as G,X as w,dA as H,dB as K,Y as U,dC as V,dD as W,dE as Z,$ as B,a0 as X,a1 as Y,c as R,l as q}from"./index-
|
|
1
|
+
import{r as i,a3 as $,j as c,a4 as L,ak as z,_ as O,V as _,W as g,U as E,Z as j,a2 as G,X as w,dA as H,dB as K,Y as U,dC as V,dD as W,dE as Z,$ as B,a0 as X,a1 as Y,c as R,l as q}from"./index-5MyNR89x.js";var C="Popover",[b]=U(C,[w]),P=w(),[J,u]=b(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,p=P(e),l=i.useRef(null),[d,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:s,caller:C});return c.jsx(L,{...p,children:c.jsx(J,{scope:e,contentId:z(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(m=>!m),[f]),hasCustomAnchor:d,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:a,children:o})})};N.displayName=C;var F="PopoverAnchor",Q=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(F,o),s=P(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(a(),()=>p()),[a,p]),c.jsx(E,{...s,...r,ref:e})});Q.displayName=F;var S="PopoverTrigger",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(S,o),s=P(o),a=O(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:a,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(E,{asChild:!0,...s,children:p})});y.displayName=S;var A="PopoverPortal",[ee,oe]=b(A,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=u(A,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(j,{present:o||s.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=A;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=u(v,t.__scopePopover);return c.jsx(j,{present:r||s.open,children:s.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=V("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(null),n=O(e,r),s=i.useRef(!1);return i.useEffect(()=>{const a=r.current;if(a)return H(a)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(k,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,a=>{const p=a.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,d=p.button===2||l;s.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=u(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(k,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),k=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onInteractOutside:h,...x}=t,f=u(v,o),m=P(o);return W(),c.jsx(Z,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:d,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(X,{"data-state":I(f.open),role:"dialog",id:f.contentId,...m,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=u(T,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=T;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(Y,{...n,...r,ref:e})});ce.displayName=ae;function I(t){return t?"open":"closed"}var ie=N,pe=y,le=D,de=M;function fe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const a=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let d;return e[7]!==a||e[8]!==r||e[9]!==p||e[10]!==l?(d=c.jsx(le,{children:c.jsx(de,{"data-slot":"popover-content",align:a,sideOffset:p,className:l,...r})}),e[7]=a,e[8]=r,e[9]=p,e[10]=l,e[11]=d):d=e[11],d}export{fe as P,ve as a,ge as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as H,j as t,B as Z}from"./index-CFiyU0D9.js";import{n as ee}from"./LinkExternal01-BHwVyDja.js";import{aC as te,t as oe}from"./agent-icon-oDx9Z_Be.js";import{I as J}from"./input-BwRH-Gsz.js";import{L as G}from"./label-CdBSUJpf.js";import{M as ie}from"./automation-runs-B-dNDEWH.js";import{T as Q,a as se,b as W,c as le}from"./tabs-Ca0vDJqc.js";import{T as re}from"./textarea-BYT525JZ.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-CRxAjd1d.js";import{b as ue,a as xe,B as he}from"./block-document-B2vhG8Ii.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-BF1opf4F.js";import"./AlertCircle-DC-zDzV-.js";import"./Tool01-CvnpFI53.js";import"./SwitchHorizontal01-DAZXInW8.js";import"./Settings02-BcAnTzm5.js";import"./XCircle-Ct0eqqsw.js";import"./ArrowUpRight-OJZisFPQ.js";import"./ZapSquare-PMiGcZpW.js";import"./Users03-DknrDMtT.js";import"./CheckCircle-Cgnheu-R.js";import"./ChevronUp-DBpw6M-L.js";import"./ChevronDown-DyHvxYlc.js";import"./ChevronLeft-dyRjFCmp.js";import"./ChevronRight-Cpfh3gza.js";import"./DotsVertical-5jSu3d1f.js";import"./Stars02-qnq-_X9g.js";import"./Eye-bojNLUjA.js";import"./ZoomOut-6ix2H92j.js";import"./Globe01-CyfpzbeQ.js";import"./FilterLines-CFl65nng.js";import"./Star01-DHEkWySe.js";import"./Globe04-DFpdKSRI.js";import"./HardDrive-B1mtnaeA.js";import"./Key01-CwrJlZo0.js";import"./LayoutLeft-fsm0LcB8.js";import"./Monitor01-ChA6ov2I.js";import"./Sun-lTiqxOzH.js";import"./Palette-DusYqL0W.js";import"./Play-CnXG8qqP.js";import"./Plus-eGxBB1d8.js";import"./SearchLg-CDpA_lbT.js";import"./SearchMd-ujiTPCmg.js";import"./Shield01-ZxmFmrvL.js";import"./Stars01-BdCaKqhF.js";import"./Trash01-ByxlxTiZ.js";import"./Upload01-Z77n1bV8.js";import"./User01-COQtf360.js";import"./Users01-wtRJYQKX.js";import"./XClose-BaZ908gw.js";import"./X-DrMVHLcw.js";import"./Zap-wRIFSWIq.js";import"./useInfiniteQuery-RUqqRph1.js";import"./use-infinite-scroll-BX1nHHVY.js";import"./use-connection-Dz29RF9P.js";import"./use-collections-B4atckEK.js";import"./use-mcp-client-xOK-OF8p.js";import"./auth-Bej0Tx2Y.js";import"./use-virtual-mcp-2U_MnYnK.js";import"./card-BFb5m83e.js";import"./sheet-DyU03ddw.js";import"./table-DeNuxLMl.js";import"./empty-state-Sh_DuDcy.js";import"./use-members-BMNjJExY.js";import"./use-org-auth-client-C_UJ3Vg_.js";import"./task-status-B3nPzwP7.js";import"./use-automations-RMjkwkxX.js";import"./studio-tools-CNO5iCKk.js";import"./useSuspenseInfiniteQuery-fRYRtDkY.js";import"./badge-DhpSM7g_.js";import"./select-C6v8Xcth.js";import"./tooltip-DrpiSbRG.js";import"./checkbox-DmOzmKLP.js";import"./command-C34397s2.js";import"./index-jBUpmiBg.js";import"./dialog-BAqFyO8a.js";import"./popover-BXFiEQtN.js";import"./avatar-CJP1BOq4.js";import"./scroll-area-BM-54tW1.js";import"./use-clock-tick-BcxdOJLx.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Xy0buIqd.js";import"./file-type-icon-DPWxBpNL.js";import"./use-mobile-NlF-3RoP.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-C7syjwde.js";import"./chat-context-n9syhvq-.js";import"./hooks-CUSV6Enf.js";import"./decopilot-sse-pool-CvYk1hkc.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-C7KmiuqP.js";import"./use-decopilot-events-CpQNzv3e.js";import"./use-organization-settings-DksiQdGc.js";import"./shell-layout-Nyz7GHu7.js";import"./required-auth-layout-DDJmFi3U.js";import"./use-org-sso-DkqH8Zpz.js";import"./integration-icon-LQhkkaLl.js";import"./use-navigate-to-agent-DZubxUSm.js";import"./use-mcp-prompts-Crr3H7P7.js";import"./form-DGE2mWLL.js";import"./index-mEtg0zTM.js";import"./drawer-CFkqEC3w.js";import"./collection-search-8iNXnGlM.js";import"./toggle-group-9TrYMc69.js";import"./sortable.esm-MymOIPKk.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-C6NYo4Gp.js";import"./use-registry-connections-BOZLpkM5.js";import"./extract-connection-data-D6bQrejT.js";import"./collection-tabs-KA2be3wH.js";import"./connection-form-helpers-CwZx7WkC.js";import"./authenticate-and-persist-oauth-DoPUB_Bh.js";import"./mcp-oauth-IblqU9XT.js";import"./connect-desktop-dialog-Brra3cMC.js";import"./decopilot-BItqS11w.js";import"./skeleton-B0I93PJP.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-MeT61nuY.js";import"./use-org-fs-DyK8omii.js";import"./dropdown-menu-C62KNjwK.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DxV7deix.js";import"./toolbar-p8VcpV1N.js";import"./preview-dialog-CQgf0QcR.js";import"./index-B6hcksS9.js";import"./use-mcp-tools-C8tMWwG9.js";import"./use-capability-C6Dwri-U.js";import"./shell-route-loading-BRcTX0VT.js";import"./tools-list-uWC3Ij6C.js";import"./alert-dialog-CYizItFp.js";import"./switch-CCMIMmOF.js";import"./use-debounced-autosave-B4mbwJnu.js";import"./index-Bb-tYGNK.js";import"./sidebar-BNrafefE.js";import"./search-input-M7ubuBMG.js";import"./github-repo-picker-B5tZucJa.js";import"./use-debounced-value-C6U3mliE.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-CLmhH-Rb.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-CFCmr--W.js";import"./monaco-editor-5JIc-lnc.js";import"./select-model-Cz9R_UN3.js";import"./automation-list-row-CsTyBm4M.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function mi(A){const e=H.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(J,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=H.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=H.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{mi as PostEditor};
|
|
1
|
+
import{c as H,j as t,B as Z}from"./index-5MyNR89x.js";import{n as ee}from"./LinkExternal01-BMDEbMBF.js";import{aC as te,t as oe}from"./agent-icon-CCm6veEh.js";import{I as J}from"./input-D9aeO8wK.js";import{L as G}from"./label-Bj7qsNrz.js";import{M as ie}from"./automation-runs-CXnAhWiY.js";import{T as Q,a as se,b as W,c as le}from"./tabs-8VxbUDVb.js";import{T as re}from"./textarea-Bwn2Wdf8.js";import{au as ae,av as me,at as pe,aw as ne,ax as ce,ay as de,az as fe}from"./index-BWMRVcd2.js";import{b as ue,a as xe,B as he}from"./block-document-AtpOGVAy.js";import{u as ge,s as F,E as ve,R as ye,A as je}from"./primitives-CAIbeS4G.js";import"./AlertCircle-B4WPpzHx.js";import"./Tool01-DFCFgRlB.js";import"./SwitchHorizontal01-BcqnyefE.js";import"./Settings02-CuT9JazG.js";import"./XCircle-BIxZfFEg.js";import"./ArrowUpRight-n7J2ORua.js";import"./ZapSquare-qeizwUPq.js";import"./Users03-DBa0-LbB.js";import"./CheckCircle-DGqDWZvl.js";import"./ChevronUp-CtzC0jb0.js";import"./ChevronDown-BzkFMF52.js";import"./ChevronLeft-B-p3uhTp.js";import"./ChevronRight-BhZIqa2P.js";import"./DotsVertical-DskMPw9G.js";import"./Stars02-Call5O4Q.js";import"./Eye-Bkw15G1G.js";import"./ZoomOut-fkR_2hFy.js";import"./Globe01-CIvUZBh0.js";import"./FilterLines-CTiCp3St.js";import"./Star01-BMttIRxb.js";import"./Globe04-By_qGXm-.js";import"./HardDrive-Da-ea-EW.js";import"./Key01-DugFMT5_.js";import"./LayoutLeft-DiQ60pSu.js";import"./Monitor01-BFD-ivVa.js";import"./Sun-B0JI-Irq.js";import"./Palette-DrmZY9bB.js";import"./Play-CiiKZLoa.js";import"./Plus-hFZ_SbzL.js";import"./SearchLg-D4Hs4YLQ.js";import"./SearchMd-RBoojwOu.js";import"./Shield01-D5Fc_Ylv.js";import"./Stars01-HANlppqn.js";import"./Trash01-CGEeRKCz.js";import"./Upload01-V0qkIpRk.js";import"./User01-Co_ACiCO.js";import"./Users01-B-VpMOmx.js";import"./XClose-CEJj7vhn.js";import"./X-DlUiLOPC.js";import"./Zap-USVmT42t.js";import"./useInfiniteQuery-_sl5B1oR.js";import"./use-infinite-scroll-4tV6tFjB.js";import"./use-connection-BvgL1-Da.js";import"./use-collections-DAKL2YGx.js";import"./use-mcp-client-CherrXvD.js";import"./auth-CNqDC7uO.js";import"./use-virtual-mcp-C5pbd140.js";import"./card-D3bKVB8y.js";import"./sheet-M6dgbK60.js";import"./table-B06cGuvx.js";import"./empty-state-D7nJB9UW.js";import"./use-members-ge80zFlj.js";import"./use-org-auth-client-Ctxe3HXF.js";import"./task-status-Cm29b2AK.js";import"./use-automations-ChKoVegP.js";import"./studio-tools-4NjxmaVZ.js";import"./useSuspenseInfiniteQuery-_eC9d3ii.js";import"./badge-cxwmW2xd.js";import"./select-CZgnwyj0.js";import"./tooltip-DvT2WKW9.js";import"./checkbox-PMXW46HN.js";import"./command-D-t5bmXW.js";import"./index-BD4HYlEX.js";import"./dialog-B2cGEuOv.js";import"./popover-DowpnV25.js";import"./avatar-Jhd31ejW.js";import"./scroll-area-DLqMfi_N.js";import"./use-clock-tick-CJO5qoT7.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WaepYGtr.js";import"./file-type-icon-W_AZRfzL.js";import"./use-mobile-lIIxFH5C.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-U3TqUYrY.js";import"./chat-context-B5uEh4ay.js";import"./hooks-DgSrpwcx.js";import"./decopilot-sse-pool-DoJkdYBA.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-D4m0Vu5Q.js";import"./use-decopilot-events-BDkaUhLT.js";import"./use-organization-settings-CZfEdu0P.js";import"./shell-layout-CnTaR8UN.js";import"./required-auth-layout-CZqB7vUr.js";import"./use-org-sso-BxzKK5rO.js";import"./integration-icon-CMGCCNyJ.js";import"./use-navigate-to-agent-BtVHPn7N.js";import"./use-mcp-prompts-BnOdccbh.js";import"./form-DI8q6OtF.js";import"./index-BFW_K0gJ.js";import"./drawer-Tv6bcT7w.js";import"./collection-search-CN9TCItb.js";import"./toggle-group-CndOAl-N.js";import"./sortable.esm-D8GIYMew.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BswtsnGE.js";import"./use-registry-connections-C_VqH6te.js";import"./extract-connection-data-CxK1dunT.js";import"./collection-tabs-D5o6VjHd.js";import"./connection-form-helpers-JfkHcTGO.js";import"./authenticate-and-persist-oauth-Dy2XeMqO.js";import"./mcp-oauth-DEfvhjPc.js";import"./connect-desktop-dialog-DchtPbuP.js";import"./decopilot-CfDwLIyX.js";import"./skeleton-DoPnd-4p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Br7JxQz6.js";import"./use-org-fs-D-40uH2W.js";import"./dropdown-menu-Dw-pnYXI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CWHPQWBO.js";import"./toolbar-ClL4Dhs_.js";import"./preview-dialog-CwTtT7qa.js";import"./index-BgPTCVWL.js";import"./use-mcp-tools-w6KwNDra.js";import"./use-capability-CQPMPR-5.js";import"./shell-route-loading-DFu6UBUI.js";import"./tools-list-DL7ip2gg.js";import"./alert-dialog-BZ8TrIVu.js";import"./switch-DLNzAYS1.js";import"./use-debounced-autosave-mA5Fw-09.js";import"./index-CshxsRNd.js";import"./sidebar-oYab2QX7.js";import"./search-input-BXzntIcj.js";import"./github-repo-picker-M1TBbLot.js";import"./use-debounced-value-cQ7ZQKtl.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-Dn4coT0R.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./use-file-configs-Dfeoim5G.js";import"./monaco-editor-B3KzPr3D.js";import"./select-model-BLeb_gwV.js";import"./automation-list-row-DO51bU3z.js";function be(A){return Array.isArray(A)?A.map(e=>({key:F(e?.key),value:F(e?.value)})):[]}function mi(A){const e=H.c(66),{orgSlug:i,virtualMcpId:d,branch:o,blockKey:l,block:p,decofile:m,meta:u,previewBaseUrl:x}=A;let y;e[0]!==o||e[1]!==i||e[2]!==d?(y={orgSlug:i,virtualMcpId:d,branch:o},e[0]=o,e[1]=i,e[2]=d,e[3]=y):y=e[3];const s=ae(y);let n;e[4]!==p?(n=me(p,"posts"),e[4]=p,e[5]=n):n=e[5];const j=n;let b;e[6]!==l||e[7]!==s?(b=T=>{s.mutate({blockKey:l,data:ne(l,"posts",T)})},e[6]=l,e[7]=s,e[8]=b):b=e[8];const[r,_]=ge(j,b);let C;e[9]!==r||e[10]!==_?(C=(T,Y)=>_({...r,[T]:Y}),e[9]=r,e[10]=_,e[11]=C):C=e[11];const h=C;let S;e[12]!==m||e[13]!==r||e[14]!==x?(S=ue({decofile:m,post:r,previewBaseUrl:x}),e[12]=m,e[13]=r,e[14]=x,e[15]=S):S=e[15];const f=S;let a;e[16]!==r.title?(a=F(r.title)||"Untitled post",e[16]=r.title,e[17]=a):a=e[17];let c;e[18]!==a?(c=t.jsx("span",{className:"truncate text-sm font-medium",children:a}),e[18]=a,e[19]=c):c=e[19];let g;e[20]!==s.isError||e[21]!==s.isPending?(g=t.jsx(pe,{isPending:s.isPending,isError:s.isError}),e[20]=s.isError,e[21]=s.isPending,e[22]=g):g=e[22];const k=!f,P=f?"Open the post preview in a new tab":"Set the post slug (and its category) plus the blog app's pageSlug to preview";let N;e[23]!==f?(N=()=>{f&&window.open(f,"_blank","noopener,noreferrer")},e[23]=f,e[24]=N):N=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx(ee,{size:14}),e[25]=B):B=e[25];let w;e[26]!==P||e[27]!==N||e[28]!==k?(w=t.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:k,title:P,onClick:N,children:[B,"See preview"]}),e[26]=P,e[27]=N,e[28]=k,e[29]=w):w=e[29];let E;e[30]!==w||e[31]!==g?(E=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[g,w]}),e[30]=w,e[31]=g,e[32]=E):E=e[32];let v;e[33]!==E||e[34]!==c?(v=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,E]}),e[33]=E,e[34]=c,e[35]=v):v=e[35];let L;e[36]!==r.title?(L=F(r.title),e[36]=r.title,e[37]=L):L=e[37];let R;e[38]!==h?(R=T=>h("title",T),e[38]=h,e[39]=R):R=e[39];let U;e[40]!==L||e[41]!==R?(U=t.jsx(ve,{value:L,onChange:R,placeholder:"Post title",className:"py-1 text-4xl font-bold text-foreground"}),e[40]=L,e[41]=R,e[42]=U):U=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsxs(Q,{value:"content",children:[t.jsx(te,{}),"Content"]}),e[43]=O):O=e[43];let K;e[44]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsxs(se,{children:[O,t.jsxs(Q,{value:"settings",children:[t.jsx(oe,{}),"Settings"]})]}),e[44]=K):K=e[44];let $;e[45]!==r.sections?($=xe(r.sections),e[45]=r.sections,e[46]=$):$=e[46];let I;e[47]!==h?(I=T=>h("sections",T),e[47]=h,e[48]=I):I=e[48];let M;e[49]!==u||e[50]!==$||e[51]!==I?(M=t.jsx(W,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(he,{value:$,onChange:I,meta:u,emptyMessage:"This post has no content yet. Use ⊕ to add your first block."})})}),e[49]=u,e[50]=$,e[51]=I,e[52]=M):M=e[52];let z;e[53]!==m||e[54]!==r||e[55]!==h?(z=t.jsx(W,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(Ce,{post:r,decofile:m,onChange:h})})}),e[53]=m,e[54]=r,e[55]=h,e[56]=z):z=e[56];let D;e[57]!==M||e[58]!==z?(D=t.jsxs(le,{defaultValue:"content",className:"mt-6 gap-4",children:[K,M,z]}),e[57]=M,e[58]=z,e[59]=D):D=e[59];let V;e[60]!==U||e[61]!==D?(V=t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 py-8",children:[U,D]})}),e[60]=U,e[61]=D,e[62]=V):V=e[62];let q;return e[63]!==v||e[64]!==V?(q=t.jsxs("div",{className:"flex h-full flex-col",children:[v,V]}),e[63]=v,e[64]=V,e[65]=q):q=e[65],q}function Ce(A){const e=H.c(59),{post:i,decofile:d,onChange:o}=A;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(G,{htmlFor:"post-excerpt",children:"Excerpt"}),e[0]=l):l=e[0];let p;e[1]!==i.excerpt?(p=F(i.excerpt),e[1]=i.excerpt,e[2]=p):p=e[2];let m;e[3]!==o?(m=v=>o("excerpt",v.target.value),e[3]=o,e[4]=m):m=e[4];let u;e[5]!==p||e[6]!==m?(u=t.jsxs("div",{className:"space-y-2",children:[l,t.jsx(re,{id:"post-excerpt",value:p,onChange:m,rows:2})]}),e[5]=p,e[6]=m,e[7]=u):u=e[7];let x;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(G,{htmlFor:"post-slug",children:"Slug"}),e[8]=x):x=e[8];let y;e[9]!==i.slug?(y=F(i.slug),e[9]=i.slug,e[10]=y):y=e[10];let s;e[11]!==o?(s=v=>o("slug",v.target.value),e[11]=o,e[12]=s):s=e[12];let n;e[13]!==y||e[14]!==s?(n=t.jsxs("div",{className:"space-y-2",children:[x,t.jsx(J,{id:"post-slug",value:y,onChange:s,placeholder:"my-post",className:"h-10"})]}),e[13]=y,e[14]=s,e[15]=n):n=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j={type:"string",format:"date",title:"Date"},e[16]=j):j=e[16];let b;e[17]!==i.date?(b=F(i.date),e[17]=i.date,e[18]=b):b=e[18];let r;e[19]!==o?(r=v=>o("date",v),e[19]=o,e[20]=r):r=e[20];let _;e[21]!==b||e[22]!==r?(_=t.jsx(fe,{schema:j,value:b,onChange:r,path:"post-date",label:"Date"}),e[21]=b,e[22]=r,e[23]=_):_=e[23];let C;e[24]!==_||e[25]!==n?(C=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[n,_]}),e[24]=_,e[25]=n,e[26]=C):C=e[26];let h;e[27]===Symbol.for("react.memo_cache_sentinel")?(h={type:"string",format:"image-uri",title:"Cover image"},e[27]=h):h=e[27];let S;e[28]!==o?(S=v=>o("image",v),e[28]=o,e[29]=S):S=e[29];let f;e[30]!==i.image||e[31]!==S?(f=t.jsx(ce,{schema:h,value:i.image,onChange:S,path:"post-image",label:"Cover image"}),e[30]=i.image,e[31]=S,e[32]=f):f=e[32];let a;e[33]===Symbol.for("react.memo_cache_sentinel")?(a=["email"],e[33]=a):a=e[33];let c;e[34]!==o?(c=v=>o("authors",v),e[34]=o,e[35]=c):c=e[35];let g;e[36]!==d||e[37]!==i.authors||e[38]!==c?(g=t.jsx(X,{label:"Authors",decofile:d,kind:"authors",valueField:"email",extraFields:a,selected:i.authors,onChange:c}),e[36]=d,e[37]=i.authors,e[38]=c,e[39]=g):g=e[39];let k;e[40]===Symbol.for("react.memo_cache_sentinel")?(k=["slug"],e[40]=k):k=e[40];let P;e[41]!==o?(P=v=>o("categories",v),e[41]=o,e[42]=P):P=e[42];let N;e[43]!==d||e[44]!==i.categories||e[45]!==P?(N=t.jsx(X,{label:"Categories",decofile:d,kind:"categories",valueField:"slug",extraFields:k,selected:i.categories,onChange:P}),e[43]=d,e[44]=i.categories,e[45]=P,e[46]=N):N=e[46];let B;e[47]!==o?(B=v=>o("extraProps",v),e[47]=o,e[48]=B):B=e[48];let w;e[49]!==i.extraProps||e[50]!==B?(w=t.jsx(ke,{value:i.extraProps,onChange:B}),e[49]=i.extraProps,e[50]=B,e[51]=w):w=e[51];let E;return e[52]!==C||e[53]!==f||e[54]!==g||e[55]!==N||e[56]!==w||e[57]!==u?(E=t.jsxs("div",{className:"space-y-5",children:[u,C,f,g,N,w]}),e[52]=C,e[53]=f,e[54]=g,e[55]=N,e[56]=w,e[57]=u,e[58]=E):E=e[58],E}function ke(A){const e=H.c(15),{value:i,onChange:d}=A;let o,l,p,m;if(e[0]!==d||e[1]!==i){o=be(i);const y=(s,n)=>d(o.map((j,b)=>b===s?{...j,...n}:j));l="space-y-2",e[6]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(G,{children:"Extra props"}),e[6]=p):p=e[6],m=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((s,n)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(J,{value:s.key,onChange:j=>y(n,{key:j.target.value}),placeholder:"key",className:"h-9 flex-1"}),t.jsx(J,{value:s.value,onChange:j=>y(n,{value:j.target.value}),placeholder:"value",className:"h-9 flex-1"}),t.jsx(ye,{label:"Remove prop",onClick:()=>d(o.filter((j,b)=>b!==n))})]},n))}),e[0]=d,e[1]=i,e[2]=o,e[3]=l,e[4]=p,e[5]=m}else o=e[2],l=e[3],p=e[4],m=e[5];let u;e[7]!==o||e[8]!==d?(u=t.jsx(je,{label:"Add prop",onClick:()=>d([...o,{key:"",value:""}])}),e[7]=o,e[8]=d,e[9]=u):u=e[9];let x;return e[10]!==l||e[11]!==p||e[12]!==m||e[13]!==u?(x=t.jsxs("div",{className:l,children:[p,m,u]}),e[10]=l,e[11]=p,e[12]=m,e[13]=u,e[14]=x):x=e[14],x}function X(A){const e=H.c(31),{label:i,decofile:d,kind:o,valueField:l,extraFields:p,selected:m,onChange:u}=A;let x,y,s;if(e[0]!==d||e[1]!==o||e[2]!==l){x=de(d,o);let f;e[6]!==l?(f=(c,g)=>F(c[l])||g,e[6]=l,e[7]=f):f=e[7],s=f;let a;e[8]!==s?(a=c=>{const{key:g,payload:k}=c;return{value:s(k,g),label:F(k.name)||s(k,g)}},e[8]=s,e[9]=a):a=e[9],y=x.map(a),e[0]=d,e[1]=o,e[2]=l,e[3]=x,e[4]=y,e[5]=s}else x=e[3],y=e[4],s=e[5];const n=y;let j;if(e[10]!==m||e[11]!==l){const f=Array.isArray(m)?m:[];let a;e[13]!==l?(a=c=>F(c[l]),e[13]=l,e[14]=a):a=e[14],j=f.map(a).filter(Boolean),e[10]=m,e[11]=l,e[12]=j}else j=e[12];const b=j;let r;e[15]!==p||e[16]!==u||e[17]!==x||e[18]!==l||e[19]!==s?(r=f=>{u(f.map(a=>{const c=x.find(k=>{const{key:P,payload:N}=k;return s(N,P)===a});if(!c)return{name:a,[l]:a};const g={name:F(c.payload.name)};for(const k of p)g[k]=c.payload[k]??a;return g}))},e[15]=p,e[16]=u,e[17]=x,e[18]=l,e[19]=s,e[20]=r):r=e[20];const _=r;let C;e[21]!==i?(C=t.jsx(G,{children:i}),e[21]=i,e[22]=C):C=e[22];let h;e[23]!==b||e[24]!==_||e[25]!==i||e[26]!==n?(h=n.length===0?t.jsxs("p",{className:"text-xs text-muted-foreground",children:["No ",i.toLowerCase()," yet — create some in the"," ",i.toLowerCase()," collection."]}):t.jsx(ie,{options:n,defaultValue:b,onValueChange:_,placeholder:`Select ${i.toLowerCase()}`,maxCount:4}),e[23]=b,e[24]=_,e[25]=i,e[26]=n,e[27]=h):h=e[27];let S;return e[28]!==C||e[29]!==h?(S=t.jsxs("div",{className:"space-y-2",children:[C,h]}),e[28]=C,e[29]=h,e[30]=S):S=e[30],S}export{mi as PostEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,aN as tn,c as J,l as xe,j as a,J as nn,i as rn,B as Z,K as Ke,k as sn,ae as on,D as ln,m as an,t as Pe,ag as cn,G as un,e as dn}from"./index-CFiyU0D9.js";import{c as fn,d as mn,g as pn,b as hn,e as xn,a as gn,h as vn}from"./ZoomOut-6ix2H92j.js";import{c as wn,a as Ve,d as yt,e as bt}from"./dialog-BAqFyO8a.js";import{T as oe,a as le,b as ae}from"./tooltip-DrpiSbRG.js";import{n as Re,i as St}from"./Globe01-CyfpzbeQ.js";import{n as zt}from"./LinkExternal01-BHwVyDja.js";import{s as yn}from"./XClose-BaZ908gw.js";import{S as $e}from"./skeleton-B0I93PJP.js";import{l as bn,F as Sn}from"./index-B6hcksS9.js";import{F as Xe,M as zn}from"./file-type-icon-DPWxBpNL.js";import{D as jn,a as kn,b as Pn,c as it}from"./dropdown-menu-C62KNjwK.js";import{i as Cn}from"./LayoutLeft-fsm0LcB8.js";import{i as En,f as jt,n as Nn,d as kt,e as $n}from"./use-org-fs-DyK8omii.js";import{I as Mn}from"./input-BwRH-Gsz.js";import{a as In,P as Rn,b as Dn}from"./popover-BXFiEQtN.js";import{i as Ln}from"./ChevronUp-DBpw6M-L.js";import{a as _n}from"./Eye-bojNLUjA.js";import{i as An}from"./Key01-CwrJlZo0.js";const Ae=h.createContext(null);Ae.displayName="PanelGroupContext";const K={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Qe=10,pe=h.useLayoutEffect,ot=tn.useId,Tn=typeof ot=="function"?ot:()=>null;let Hn=0;function Ze(t=null){const e=Tn(),n=h.useRef(t||e||null);return n.current===null&&(n.current=""+Hn++),t??n.current}function Pt({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:s,forwardedRef:i,id:o,maxSize:l,minSize:c,onCollapse:d,onExpand:m,onResize:u,order:f,style:v,tagName:x="div",...k}){const b=h.useContext(Ae);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:C,getPanelSize:I,getPanelStyle:j,groupId:F,isPanelCollapsed:$,reevaluatePanelConstraints:g,registerPanel:G,resizePanel:W,unregisterPanel:O}=b,A=Ze(o),D=h.useRef({callbacks:{onCollapse:d,onExpand:m,onResize:u},constraints:{collapsedSize:n,collapsible:r,defaultSize:s,maxSize:l,minSize:c},id:A,idIsFromProps:o!==void 0,order:f});h.useRef({didLogMissingDefaultSizeWarning:!1}),pe(()=>{const{callbacks:_,constraints:L}=D.current,T={...L};D.current.id=A,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=d,_.onExpand=m,_.onResize=u,L.collapsedSize=n,L.collapsible=r,L.defaultSize=s,L.maxSize=l,L.minSize=c,(T.collapsedSize!==L.collapsedSize||T.collapsible!==L.collapsible||T.maxSize!==L.maxSize||T.minSize!==L.minSize)&&g(D.current,T)}),pe(()=>{const _=D.current;return G(_),()=>{O(_)}},[f,A,G,O]),h.useImperativeHandle(i,()=>({collapse:()=>{w(D.current)},expand:_=>{C(D.current,_)},getId(){return A},getSize(){return I(D.current)},isCollapsed(){return $(D.current)},isExpanded(){return!$(D.current)},resize:_=>{W(D.current,_)}}),[w,C,I,$,A,W]);const V=j(D.current,s);return h.createElement(x,{...k,children:t,className:e,id:A,style:{...V,...v},[K.groupId]:F,[K.panel]:"",[K.panelCollapsible]:r||void 0,[K.panelId]:A,[K.panelSize]:parseFloat(""+V.flexGrow).toFixed(1)})}const Ct=h.forwardRef((t,e)=>h.createElement(Pt,{...t,forwardedRef:e}));Pt.displayName="Panel";Ct.displayName="forwardRef(Panel)";let Ye=null,Ie=-1,de=null;function On(t,e){if(e){const n=(e&It)!==0,r=(e&Rt)!==0,s=(e&Dt)!==0,i=(e&Lt)!==0;if(n)return s?"se-resize":i?"ne-resize":"e-resize";if(r)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){de!==null&&(document.head.removeChild(de),Ye=null,de=null,Ie=-1)}function Fe(t,e){var n,r;const s=On(t,e);if(Ye!==s){if(Ye=s,de===null&&(de=document.createElement("style"),document.head.appendChild(de)),Ie>=0){var i;(i=de.sheet)===null||i===void 0||i.removeRule(Ie)}Ie=(n=(r=de.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${s} !important;}`))!==null&&n!==void 0?n:-1}}function Et(t){return t.type==="keydown"}function Nt(t){return t.type.startsWith("pointer")}function $t(t){return t.type.startsWith("mouse")}function Te(t){if(Nt(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if($t(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Bn(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ct(t),b:ct(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;N(r,"Stacking order can only be calculated for elements with a common ancestor");const s={a:at(lt(n.a)),b:at(lt(n.b))};if(s.a===s.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const c=i[l];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(s.a-s.b)}const Gn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function qn(t){var e;const n=getComputedStyle((e=Mt(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Kn(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||qn(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Gn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function lt(t){let e=t.length;for(;e--;){const n=t[e];if(N(n,"Missing node"),Kn(n))return n}return null}function at(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ct(t){const e=[];for(;t;)e.push(t),t=Mt(t);return e}function Mt(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const It=1,Rt=2,Dt=4,Lt=8,Vn=Fn()==="coarse";let re=[],be=!1,me=new Map,He=new Map;const Ce=new Set;function Xn(t,e,n,r,s){var i;const{ownerDocument:o}=e,l={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:s},c=(i=me.get(o))!==null&&i!==void 0?i:0;return me.set(o,c+1),Ce.add(l),De(),function(){var m;He.delete(t),Ce.delete(l);const u=(m=me.get(o))!==null&&m!==void 0?m:1;if(me.set(o,u-1),De(),u===1&&me.delete(o),re.includes(l)){const f=re.indexOf(l);f>=0&&re.splice(f,1),tt(),s("up",!0,null)}}}function Yn(t){const{target:e}=t,{x:n,y:r}=Te(t);be=!0,et({target:e,x:n,y:r}),De(),re.length>0&&(Le("down",t),t.preventDefault(),_t(e)||t.stopImmediatePropagation())}function We(t){const{x:e,y:n}=Te(t);if(be&&t.buttons===0&&(be=!1,Le("up",t)),!be){const{target:r}=t;et({target:r,x:e,y:n})}Le("move",t),tt(),re.length>0&&t.preventDefault()}function Be(t){const{target:e}=t,{x:n,y:r}=Te(t);He.clear(),be=!1,re.length>0&&(t.preventDefault(),_t(e)||t.stopImmediatePropagation()),Le("up",t),et({target:e,x:n,y:r}),tt(),De()}function _t(t){let e=t;for(;e;){if(e.hasAttribute(K.resizeHandle))return!0;e=e.parentElement}return!1}function et({target:t,x:e,y:n}){re.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ce.forEach(s=>{const{element:i,hitAreaMargins:o}=s,l=i.getBoundingClientRect(),{bottom:c,left:d,right:m,top:u}=l,f=Vn?o.coarse:o.fine;if(e>=d-f&&e<=m+f&&n>=u-f&&n<=c+f){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Bn(r,i)>0){let x=r,k=!1;for(;x&&!x.contains(i);){if(Wn(x.getBoundingClientRect(),l)){k=!0;break}x=x.parentElement}if(k)return}re.push(s)}})}function Ge(t,e){He.set(t,e)}function tt(){let t=!1,e=!1;re.forEach(r=>{const{direction:s}=r;s==="horizontal"?t=!0:e=!0});let n=0;He.forEach(r=>{n|=r}),t&&e?Fe("intersection",n):t?Fe("horizontal",n):e?Fe("vertical",n):Un()}let qe=new AbortController;function De(){qe.abort(),qe=new AbortController;const t={capture:!0,signal:qe.signal};Ce.size&&(be?(re.length>0&&me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",Be,t),r.addEventListener("pointerleave",We,t),r.addEventListener("pointermove",We,t))}),window.addEventListener("pointerup",Be,t),window.addEventListener("pointercancel",Be,t)):me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",Yn,t),r.addEventListener("pointermove",We,t))}))}function Le(t,e){Ce.forEach(n=>{const{setResizeHandlerState:r}=n,s=re.includes(n);r(t,s,e)})}function Jn(){const[t,e]=h.useState(0);return h.useCallback(()=>e(n=>n+1),[])}function N(t,e){if(!t)throw console.error(e),Error(e)}function he(t,e,n=Qe){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ce(t,e,n=Qe){return he(t,e,n)===0}function ee(t,e,n){return he(t,e,n)===0}function Qn(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const s=t[r],i=e[r];if(!ee(s,i,n))return!1}return!0}function ye({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];N(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:s=0,collapsible:i,maxSize:o=100,minSize:l=0}=r;if(he(n,l)<0)if(i){const c=(s+l)/2;he(n,c)<0?n=s:n=l}else n=l;return n=Math.min(o,n),n=parseFloat(n.toFixed(Qe)),n}function je({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:s,trigger:i}){if(ee(t,0))return e;const o=[...e],[l,c]=r;N(l!=null,"Invalid first pivot index"),N(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:l,f=n[u];N(f,`Panel constraints not found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,v)){const w=k-b;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}{const u=t<0?l:c,f=n[u];N(f,`No panel constraints found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,k)){const w=b-v;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}}{const u=t<0?1:-1;let f=t<0?c:l,v=0;for(;;){const k=e[f];N(k!=null,`Previous layout not found for panel index ${f}`);const w=ye({panelConstraints:n,panelIndex:f,size:100})-k;if(v+=w,f+=u,f<0||f>=n.length)break}const x=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-x:x}{let f=t<0?l:c;for(;f>=0&&f<n.length;){const v=Math.abs(t)-Math.abs(d),x=e[f];N(x!=null,`Previous layout not found for panel index ${f}`);const k=x-v,b=ye({panelConstraints:n,panelIndex:f,size:k});if(!ee(x,b)&&(d+=x-b,o[f]=b,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?f--:f++}}if(Qn(s,o))return s;{const u=t<0?c:l,f=e[u];N(f!=null,`Previous layout not found for panel index ${u}`);const v=f+d,x=ye({panelConstraints:n,panelIndex:u,size:v});if(o[u]=x,!ee(x,v)){let k=v-x,w=t<0?c:l;for(;w>=0&&w<n.length;){const C=o[w];N(C!=null,`Previous layout not found for panel index ${w}`);const I=C+k,j=ye({panelConstraints:n,panelIndex:w,size:I});if(ee(C,j)||(k-=j-C,o[w]=j),ee(k,0))break;t>0?w--:w++}}}const m=o.reduce((u,f)=>f+u,0);return ee(m,100)?o:s}function Zn({layout:t,panelsArray:e,pivotIndices:n}){let r=0,s=100,i=0,o=0;const l=n[0];N(l!=null,"No pivot index found"),e.forEach((u,f)=>{const{constraints:v}=u,{maxSize:x=100,minSize:k=0}=v;f===l?(r=k,s=x):(i+=k,o+=x)});const c=Math.min(s,100-i),d=Math.max(r,100-o),m=t[l];return{valueMax:c,valueMin:d,valueNow:m}}function Ee(t,e=document){return Array.from(e.querySelectorAll(`[${K.resizeHandleId}][data-panel-group-id="${t}"]`))}function At(t,e,n=document){const s=Ee(t,n).findIndex(i=>i.getAttribute(K.resizeHandleId)===e);return s??null}function Tt(t,e,n){const r=At(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Ht(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Oe(t,e=document){const n=e.querySelector(`[${K.resizeHandleId}="${t}"]`);return n||null}function er(t,e,n,r=document){var s,i,o,l;const c=Oe(e,r),d=Ee(t,r),m=c?d.indexOf(c):-1,u=(s=(i=n[m])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null,f=(o=(l=n[m+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[u,f]}function tr({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:s,panelGroupElement:i,setLayout:o}){h.useRef({didWarnAboutMissingResizeHandle:!1}),pe(()=>{if(!i)return;const l=Ee(n,i);for(let c=0;c<s.length-1;c++){const{valueMax:d,valueMin:m,valueNow:u}=Zn({layout:r,panelsArray:s,pivotIndices:[c,c+1]}),f=l[c];if(f!=null){const v=s[c];N(v,`No panel data found for index "${c}"`),f.setAttribute("aria-controls",v.id),f.setAttribute("aria-valuemax",""+Math.round(d)),f.setAttribute("aria-valuemin",""+Math.round(m)),f.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{l.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,s,i]),h.useEffect(()=>{if(!i)return;const l=e.current;N(l,"Eager values not found");const{panelDataArray:c}=l,d=Ht(n,i);N(d!=null,`No group found for id "${n}"`);const m=Ee(n,i);N(m,`No resize handles found for group id "${n}"`);const u=m.map(f=>{const v=f.getAttribute(K.resizeHandleId);N(v,"Resize handle element has no handle id attribute");const[x,k]=er(n,v,c,i);if(x==null||k==null)return()=>{};const b=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const C=c.findIndex(I=>I.id===x);if(C>=0){const I=c[C];N(I,`No panel data found for index ${C}`);const j=r[C],{collapsedSize:F=0,collapsible:$,minSize:g=0}=I.constraints;if(j!=null&&$){const G=je({delta:ee(j,F)?g-F:F-j,initialLayout:r,panelConstraints:c.map(W=>W.constraints),pivotIndices:Tt(n,v,i),prevLayout:r,trigger:"keyboard"});r!==G&&o(G)}}break}}};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}});return()=>{u.forEach(f=>f())}},[i,t,e,n,r,s,o])}function ut(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ot(t,e){const n=t==="horizontal",{x:r,y:s}=Te(e);return n?r:s}function nr(t,e,n,r,s){const i=n==="horizontal",o=Oe(e,s);N(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(K.groupId);N(l,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const d=Ot(n,t),m=Ht(l,s);N(m,`No group element found for id "${l}"`);const u=m.getBoundingClientRect(),f=i?u.width:u.height;return(d-c)/f*100}function rr(t,e,n,r,s,i){if(Et(t)){const o=n==="horizontal";let l=0;t.shiftKey?l=100:s!=null?l=s:l=10;let c=0;switch(t.key){case"ArrowDown":c=o?0:l;break;case"ArrowLeft":c=o?-l:0;break;case"ArrowRight":c=o?l:0;break;case"ArrowUp":c=o?0:-l;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:nr(t,e,n,r,i)}function sr({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let r=0,s=100;for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(r++,e[i]=l,s-=l)}for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const c=t.length-r,d=s/c;r++,e[i]=d,s-=d}return e}function ge(t,e,n){e.forEach((r,s)=>{const i=t[s];N(i,`Panel data not found for index ${s}`);const{callbacks:o,constraints:l,id:c}=i,{collapsedSize:d=0,collapsible:m}=l,u=n[c];if(u==null||r!==u){n[c]=r;const{onCollapse:f,onExpand:v,onResize:x}=o;x&&x(r,u),m&&(f||v)&&(v&&(u==null||ce(u,d))&&!ce(r,d)&&v(),f&&(u==null||!ce(u,d))&&ce(r,d)&&f())}})}function Me(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ir({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:s,precision:i=3}){const o=n[s];let l;return o==null?l=t!=null?t.toPrecision(i):"1":r.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function or(t,e=10){let n=null;return(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}function dt(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Ut(t){return`react-resizable-panels:${t}`}function Ft(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:s,order:i}=e;return s?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Wt(t,e){try{const n=Ut(t),r=e.getItem(n);if(r){const s=JSON.parse(r);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function lr(t,e,n){var r,s;const i=(r=Wt(t,n))!==null&&r!==void 0?r:{},o=Ft(e);return(s=i[o])!==null&&s!==void 0?s:null}function ar(t,e,n,r,s){var i;const o=Ut(t),l=Ft(e),c=(i=Wt(t,s))!==null&&i!==void 0?i:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{s.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function ft({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ee(r,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=100/r*o;n[i]=l}let s=0;for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=ye({panelConstraints:e,panelIndex:i,size:o});o!=l&&(s+=o-l,n[i]=l)}if(!ee(s,0))for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=o+s,c=ye({panelConstraints:e,panelIndex:i,size:l});if(o!==c&&(s-=c-o,n[i]=c,ee(s,0)))break}return n}const cr=100,ke={getItem:t=>(dt(ke),ke.getItem(t)),setItem:(t,e)=>{dt(ke),ke.setItem(t,e)}},mt={};function Bt({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:s,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:c=ke,style:d,tagName:m="div",...u}){const f=Ze(i),v=h.useRef(null),[x,k]=h.useState(null),[b,w]=h.useState([]),C=Jn(),I=h.useRef({}),j=h.useRef(new Map),F=h.useRef(0),$=h.useRef({autoSaveId:t,direction:r,dragState:x,id:f,keyboardResizeBy:l,onLayout:o,storage:c}),g=h.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(s,()=>({getId:()=>$.current.id,getLayout:()=>{const{layout:p}=g.current;return p},setLayout:p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current,y=ft({layout:p,panelConstraints:P.map(E=>E.constraints)});ut(M,y)||(w(y),g.current.layout=y,z&&z(y),ge(P,y,I.current))}}),[]),pe(()=>{$.current.autoSaveId=t,$.current.direction=r,$.current.dragState=x,$.current.id=f,$.current.onLayout=o,$.current.storage=c}),tr({committedValuesRef:$,eagerValuesRef:g,groupId:f,layout:b,panelDataArray:g.current.panelDataArray,setLayout:w,panelGroupElement:v.current}),h.useEffect(()=>{const{panelDataArray:p}=g.current;if(t){if(b.length===0||b.length!==p.length)return;let z=mt[t];z==null&&(z=or(ar,cr),mt[t]=z);const M=[...p],P=new Map(j.current);z(t,M,P,b,c)}},[t,b,c]),h.useEffect(()=>{});const G=h.useCallback(p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current;if(p.constraints.collapsible){const y=P.map(se=>se.constraints),{collapsedSize:E=0,panelSize:U,pivotIndices:X}=fe(P,p,M);if(N(U!=null,`Panel size not found for panel "${p.id}"`),!ce(U,E)){j.current.set(p.id,U);const ie=ve(P,p)===P.length-1?U-E:E-U,q=je({delta:ie,initialLayout:M,panelConstraints:y,pivotIndices:X,prevLayout:M,trigger:"imperative-api"});Me(M,q)||(w(q),g.current.layout=q,z&&z(q),ge(P,q,I.current))}}},[]),W=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current;if(p.constraints.collapsible){const E=y.map(ne=>ne.constraints),{collapsedSize:U=0,panelSize:X=0,minSize:se=0,pivotIndices:ie}=fe(y,p,P),q=z??se;if(ce(X,U)){const ne=j.current.get(p.id),Se=ne!=null&&ne>=q?ne:q,Ue=ve(y,p)===y.length-1?X-Se:Se-X,Q=je({delta:Ue,initialLayout:P,panelConstraints:E,pivotIndices:ie,prevLayout:P,trigger:"imperative-api"});Me(P,Q)||(w(Q),g.current.layout=Q,M&&M(Q),ge(y,Q,I.current))}}},[]),O=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{panelSize:P}=fe(M,p,z);return N(P!=null,`Panel size not found for panel "${p.id}"`),P},[]),A=h.useCallback((p,z)=>{const{panelDataArray:M}=g.current,P=ve(M,p);return ir({defaultSize:z,dragState:x,layout:b,panelData:M,panelIndex:P})},[x,b]),D=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),y===!0&&ce(E,P)},[]),V=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),!y||he(E,P)>0},[]),_=h.useCallback(p=>{const{panelDataArray:z}=g.current;z.push(p),z.sort((M,P)=>{const y=M.order,E=P.order;return y==null&&E==null?0:y==null?-1:E==null?1:y-E}),g.current.panelDataArrayChanged=!0,C()},[C]);pe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:p,onLayout:z,storage:M}=$.current,{layout:P,panelDataArray:y}=g.current;let E=null;if(p){const X=lr(p,y,M);X&&(j.current=new Map(Object.entries(X.expandToSizes)),E=X.layout)}E==null&&(E=sr({panelDataArray:y}));const U=ft({layout:E,panelConstraints:y.map(X=>X.constraints)});ut(P,U)||(w(U),g.current.layout=U,z&&z(U),ge(y,U,I.current))}}),pe(()=>{const p=g.current;return()=>{p.layout=[]}},[]);const L=h.useCallback(p=>{let z=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(y){y.preventDefault();const E=v.current;if(!E)return()=>null;const{direction:U,dragState:X,id:se,keyboardResizeBy:ie,onLayout:q}=$.current,{layout:ne,panelDataArray:Se}=g.current,{initialLayout:Ne}=X??{},Ue=Tt(se,p,E);let Q=rr(y,p,U,X,ie,E);const rt=U==="horizontal";rt&&z&&(Q=-Q);const Zt=Se.map(en=>en.constraints),ze=je({delta:Q,initialLayout:Ne??ne,panelConstraints:Zt,pivotIndices:Ue,prevLayout:ne,trigger:Et(y)?"keyboard":"mouse-or-touch"}),st=!Me(ne,ze);(Nt(y)||$t(y))&&F.current!=Q&&(F.current=Q,!st&&Q!==0?rt?Ge(p,Q<0?It:Rt):Ge(p,Q<0?Dt:Lt):Ge(p,0)),st&&(w(ze),g.current.layout=ze,q&&q(ze),ge(Se,ze,I.current))}},[]),T=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current,E=y.map(ne=>ne.constraints),{panelSize:U,pivotIndices:X}=fe(y,p,P);N(U!=null,`Panel size not found for panel "${p.id}"`);const ie=ve(y,p)===y.length-1?U-z:z-U,q=je({delta:ie,initialLayout:P,panelConstraints:E,pivotIndices:X,prevLayout:P,trigger:"imperative-api"});Me(P,q)||(w(q),g.current.layout=q,M&&M(q),ge(y,q,I.current))},[]),H=h.useCallback((p,z)=>{const{layout:M,panelDataArray:P}=g.current,{collapsedSize:y=0,collapsible:E}=z,{collapsedSize:U=0,collapsible:X,maxSize:se=100,minSize:ie=0}=p.constraints,{panelSize:q}=fe(P,p,M);q!=null&&(E&&X&&ce(q,y)?ce(y,U)||T(p,U):q<ie?T(p,ie):q>se&&T(p,se))},[T]),Y=h.useCallback((p,z)=>{const{direction:M}=$.current,{layout:P}=g.current;if(!v.current)return;const y=Oe(p,v.current);N(y,`Drag handle element not found for id "${p}"`);const E=Ot(M,z);k({dragHandleId:p,dragHandleRect:y.getBoundingClientRect(),initialCursorPosition:E,initialLayout:P})},[]),te=h.useCallback(()=>{k(null)},[]),B=h.useCallback(p=>{const{panelDataArray:z}=g.current,M=ve(z,p);M>=0&&(z.splice(M,1),delete I.current[p.id],g.current.panelDataArrayChanged=!0,C())},[C]),S=h.useMemo(()=>({collapsePanel:G,direction:r,dragState:x,expandPanel:W,getPanelSize:O,getPanelStyle:A,groupId:f,isPanelCollapsed:D,isPanelExpanded:V,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:T,startDragging:Y,stopDragging:te,unregisterPanel:B,panelGroupElement:v.current}),[G,x,r,W,O,A,f,D,V,H,_,L,T,Y,te,B]),R={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return h.createElement(Ae.Provider,{value:S},h.createElement(m,{...u,children:e,className:n,id:i,ref:v,style:{...R,...d},[K.group]:"",[K.groupDirection]:r,[K.groupId]:f}))}const Gt=h.forwardRef((t,e)=>h.createElement(Bt,{...t,forwardedRef:e}));Bt.displayName="PanelGroup";Gt.displayName="forwardRef(PanelGroup)";function ve(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function fe(t,e,n){const r=ve(t,e),i=r===t.length-1?[r-1,r]:[r,r+1],o=n[r];return{...e.constraints,panelSize:o,pivotIndices:i}}function ur({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){h.useEffect(()=>{if(t||n==null||r==null)return;const s=Oe(e,r);if(s==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=s.getAttribute(K.groupId);N(l,`No group element found for id "${l}"`);const c=Ee(l,r),d=At(l,e,r);N(d!==null,`No resize element found for id "${e}"`);const m=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[m].focus();break}}};return s.addEventListener("keydown",i),()=>{s.removeEventListener("keydown",i)}},[r,t,e,n])}function qt({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:s,onBlur:i,onClick:o,onDragging:l,onFocus:c,onPointerDown:d,onPointerUp:m,style:u={},tabIndex:f=0,tagName:v="div",...x}){var k,b;const w=h.useRef(null),C=h.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:m});h.useEffect(()=>{C.current.onClick=o,C.current.onDragging=l,C.current.onPointerDown=d,C.current.onPointerUp=m});const I=h.useContext(Ae);if(I===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:j,groupId:F,registerResizeHandle:$,startDragging:g,stopDragging:G,panelGroupElement:W}=I,O=Ze(s),[A,D]=h.useState("inactive"),[V,_]=h.useState(!1),[L,T]=h.useState(null),H=h.useRef({state:A});pe(()=>{H.current.state=A}),h.useEffect(()=>{if(n)T(null);else{const S=$(O);T(()=>S)}},[n,O,$]);const Y=(k=r?.coarse)!==null&&k!==void 0?k:15,te=(b=r?.fine)!==null&&b!==void 0?b:5;h.useEffect(()=>{if(n||L==null)return;const S=w.current;N(S,"Element ref not attached");let R=!1;return Xn(O,S,j,{coarse:Y,fine:te},(z,M,P)=>{if(!M){D("inactive");return}switch(z){case"down":{D("drag"),R=!1,N(P,'Expected event to be defined for "down" action'),g(O,P);const{onDragging:y,onPointerDown:E}=C.current;y?.(!0),E?.();break}case"move":{const{state:y}=H.current;R=!0,y!=="drag"&&D("hover"),N(P,'Expected event to be defined for "move" action'),L(P);break}case"up":{D("hover"),G();const{onClick:y,onDragging:E,onPointerUp:U}=C.current;E?.(!1),U?.(),R||y?.();break}}})},[Y,j,n,te,$,O,L,g,G]),ur({disabled:n,handleId:O,resizeHandler:L,panelGroupElement:W});const B={touchAction:"none",userSelect:"none"};return h.createElement(v,{...x,children:t,className:e,id:s,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),c?.()},ref:w,role:"separator",style:{...B,...u},tabIndex:f,[K.groupDirection]:j,[K.groupId]:F,[K.resizeHandle]:"",[K.resizeHandleActive]:A==="drag"?"pointer":V?"keyboard":void 0,[K.resizeHandleEnabled]:!n,[K.resizeHandleId]:O,[K.resizeHandleState]:A})}qt.displayName="PanelResizeHandle";function ls(t){const e=J.c(10);let n,r,s;e[0]!==t?({className:n,ref:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==s||e[8]!==i?(o=a.jsx(Gt,{ref:s,"data-slot":"resizable-panel-group",className:i,...r}),e[6]=r,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function as(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=a.jsx(Ct,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=r):r=e[3],r}function cs(t){const e=J.c(12);let n,r,s;e[0]!==t?({withHandle:s,className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==s?(o=s&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(fn,{className:"size-2.5"})}),e[6]=s,e[7]=o):o=e[7];let l;return e[8]!==r||e[9]!==i||e[10]!==o?(l=a.jsx(qt,{"data-slot":"resizable-handle",className:i,...r,children:o}),e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function dr(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function fr(t){if(dr(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function mr(t){try{return decodeURIComponent(t)}catch{return t}}function pr(t){return fr(t),encodeURIComponent(t)}function hr(t){return`.deco/blocks/${pr(t)}.json`}function us(t){return`/${hr(t)}`}const ds=1e4,xr=3;function Je(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function nt(t){return t.startsWith("/")?t.slice(1):t}function _e(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function gr(t){const e=_e(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function fs(t,e){const n=e.replace(/^\/+|\/+$/g,"");return _e(n?`${t==="/"?"":t}/${n}`:t)}function ms(t,e){return e==="directory"?t:gr(t)}function ps(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function vr(t){const e=nt(t);return e?e.split("/").filter(Boolean).length:0}function hs(t,e,n,r=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:r||!!n.truncated}}function xs(t,e){return vr(t)>=xr&&!e.has(t)}function gs(t,e,n=[]){const r=nt(t);if(e.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return e.some(i=>i.startsWith(s))||n.some(i=>i.startsWith(s))}function vs(t){const e=nt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const r=e.slice(n.length,-5);return mr(r)}function wr(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function ws(t){const e=Je(t).split("/").filter(Boolean),n=["/"];let r="";for(const s of e.slice(0,-1))r+=`/${s}`,n.push(r);return n}function ys(t,e=[]){const n={children:[]},r=i=>{const l=Je(i).split("/").filter(Boolean);let c=n,d="";for(const m of l){d+=`/${m}`;let u=c.children.find(f=>f.name===m);u?u.kind==="file"&&(u.kind="directory"):(u={name:m,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const l=Je(i).split("/").filter(Boolean);let c=n,d="";l.forEach((m,u)=>{d+=`/${m}`;const f=u===l.length-1;let v=c.children.find(x=>x.name===m);v||(v={name:m,path:d,kind:f?"file":"directory",children:[]},c.children.push(v)),c=v})}for(const i of e)r(_e(i));const s=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&s(o.children)};return s(n.children),n.children}function yr(t,e,n=0){const r=[];for(const s of t)s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&e.has(s.path)&&r.push(...yr(s.children,e,n+1)));return r}function bs(t){return t.split(`
|
|
1
|
+
import{r as h,aN as tn,c as J,l as xe,j as a,J as nn,i as rn,B as Z,K as Ke,k as sn,ae as on,D as ln,m as an,t as Pe,ag as cn,G as un,e as dn}from"./index-5MyNR89x.js";import{c as fn,d as mn,g as pn,b as hn,e as xn,a as gn,h as vn}from"./ZoomOut-fkR_2hFy.js";import{c as wn,a as Ve,d as yt,e as bt}from"./dialog-B2cGEuOv.js";import{T as oe,a as le,b as ae}from"./tooltip-DvT2WKW9.js";import{n as Re,i as St}from"./Globe01-CIvUZBh0.js";import{n as zt}from"./LinkExternal01-BMDEbMBF.js";import{s as yn}from"./XClose-CEJj7vhn.js";import{S as $e}from"./skeleton-DoPnd-4p.js";import{l as bn,F as Sn}from"./index-BgPTCVWL.js";import{F as Xe,M as zn}from"./file-type-icon-W_AZRfzL.js";import{D as jn,a as kn,b as Pn,c as it}from"./dropdown-menu-Dw-pnYXI.js";import{i as Cn}from"./LayoutLeft-DiQ60pSu.js";import{i as En,f as jt,n as Nn,d as kt,e as $n}from"./use-org-fs-D-40uH2W.js";import{I as Mn}from"./input-D9aeO8wK.js";import{a as In,P as Rn,b as Dn}from"./popover-DowpnV25.js";import{i as Ln}from"./ChevronUp-CtzC0jb0.js";import{a as _n}from"./Eye-Bkw15G1G.js";import{i as An}from"./Key01-DugFMT5_.js";const Ae=h.createContext(null);Ae.displayName="PanelGroupContext";const K={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Qe=10,pe=h.useLayoutEffect,ot=tn.useId,Tn=typeof ot=="function"?ot:()=>null;let Hn=0;function Ze(t=null){const e=Tn(),n=h.useRef(t||e||null);return n.current===null&&(n.current=""+Hn++),t??n.current}function Pt({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:s,forwardedRef:i,id:o,maxSize:l,minSize:c,onCollapse:d,onExpand:m,onResize:u,order:f,style:v,tagName:x="div",...k}){const b=h.useContext(Ae);if(b===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:w,expandPanel:C,getPanelSize:I,getPanelStyle:j,groupId:F,isPanelCollapsed:$,reevaluatePanelConstraints:g,registerPanel:G,resizePanel:W,unregisterPanel:O}=b,A=Ze(o),D=h.useRef({callbacks:{onCollapse:d,onExpand:m,onResize:u},constraints:{collapsedSize:n,collapsible:r,defaultSize:s,maxSize:l,minSize:c},id:A,idIsFromProps:o!==void 0,order:f});h.useRef({didLogMissingDefaultSizeWarning:!1}),pe(()=>{const{callbacks:_,constraints:L}=D.current,T={...L};D.current.id=A,D.current.idIsFromProps=o!==void 0,D.current.order=f,_.onCollapse=d,_.onExpand=m,_.onResize=u,L.collapsedSize=n,L.collapsible=r,L.defaultSize=s,L.maxSize=l,L.minSize=c,(T.collapsedSize!==L.collapsedSize||T.collapsible!==L.collapsible||T.maxSize!==L.maxSize||T.minSize!==L.minSize)&&g(D.current,T)}),pe(()=>{const _=D.current;return G(_),()=>{O(_)}},[f,A,G,O]),h.useImperativeHandle(i,()=>({collapse:()=>{w(D.current)},expand:_=>{C(D.current,_)},getId(){return A},getSize(){return I(D.current)},isCollapsed(){return $(D.current)},isExpanded(){return!$(D.current)},resize:_=>{W(D.current,_)}}),[w,C,I,$,A,W]);const V=j(D.current,s);return h.createElement(x,{...k,children:t,className:e,id:A,style:{...V,...v},[K.groupId]:F,[K.panel]:"",[K.panelCollapsible]:r||void 0,[K.panelId]:A,[K.panelSize]:parseFloat(""+V.flexGrow).toFixed(1)})}const Ct=h.forwardRef((t,e)=>h.createElement(Pt,{...t,forwardedRef:e}));Pt.displayName="Panel";Ct.displayName="forwardRef(Panel)";let Ye=null,Ie=-1,de=null;function On(t,e){if(e){const n=(e&It)!==0,r=(e&Rt)!==0,s=(e&Dt)!==0,i=(e&Lt)!==0;if(n)return s?"se-resize":i?"ne-resize":"e-resize";if(r)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Un(){de!==null&&(document.head.removeChild(de),Ye=null,de=null,Ie=-1)}function Fe(t,e){var n,r;const s=On(t,e);if(Ye!==s){if(Ye=s,de===null&&(de=document.createElement("style"),document.head.appendChild(de)),Ie>=0){var i;(i=de.sheet)===null||i===void 0||i.removeRule(Ie)}Ie=(n=(r=de.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${s} !important;}`))!==null&&n!==void 0?n:-1}}function Et(t){return t.type==="keydown"}function Nt(t){return t.type.startsWith("pointer")}function $t(t){return t.type.startsWith("mouse")}function Te(t){if(Nt(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if($t(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Fn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Wn(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Bn(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:ct(t),b:ct(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;N(r,"Stacking order can only be calculated for elements with a common ancestor");const s={a:at(lt(n.a)),b:at(lt(n.b))};if(s.a===s.b){const i=r.childNodes,o={a:n.a.at(-1),b:n.b.at(-1)};let l=i.length;for(;l--;){const c=i[l];if(c===o.a)return 1;if(c===o.b)return-1}}return Math.sign(s.a-s.b)}const Gn=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function qn(t){var e;const n=getComputedStyle((e=Mt(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Kn(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||qn(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Gn.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function lt(t){let e=t.length;for(;e--;){const n=t[e];if(N(n,"Missing node"),Kn(n))return n}return null}function at(t){return t&&Number(getComputedStyle(t).zIndex)||0}function ct(t){const e=[];for(;t;)e.push(t),t=Mt(t);return e}function Mt(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const It=1,Rt=2,Dt=4,Lt=8,Vn=Fn()==="coarse";let re=[],be=!1,me=new Map,He=new Map;const Ce=new Set;function Xn(t,e,n,r,s){var i;const{ownerDocument:o}=e,l={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:s},c=(i=me.get(o))!==null&&i!==void 0?i:0;return me.set(o,c+1),Ce.add(l),De(),function(){var m;He.delete(t),Ce.delete(l);const u=(m=me.get(o))!==null&&m!==void 0?m:1;if(me.set(o,u-1),De(),u===1&&me.delete(o),re.includes(l)){const f=re.indexOf(l);f>=0&&re.splice(f,1),tt(),s("up",!0,null)}}}function Yn(t){const{target:e}=t,{x:n,y:r}=Te(t);be=!0,et({target:e,x:n,y:r}),De(),re.length>0&&(Le("down",t),t.preventDefault(),_t(e)||t.stopImmediatePropagation())}function We(t){const{x:e,y:n}=Te(t);if(be&&t.buttons===0&&(be=!1,Le("up",t)),!be){const{target:r}=t;et({target:r,x:e,y:n})}Le("move",t),tt(),re.length>0&&t.preventDefault()}function Be(t){const{target:e}=t,{x:n,y:r}=Te(t);He.clear(),be=!1,re.length>0&&(t.preventDefault(),_t(e)||t.stopImmediatePropagation()),Le("up",t),et({target:e,x:n,y:r}),tt(),De()}function _t(t){let e=t;for(;e;){if(e.hasAttribute(K.resizeHandle))return!0;e=e.parentElement}return!1}function et({target:t,x:e,y:n}){re.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Ce.forEach(s=>{const{element:i,hitAreaMargins:o}=s,l=i.getBoundingClientRect(),{bottom:c,left:d,right:m,top:u}=l,f=Vn?o.coarse:o.fine;if(e>=d-f&&e<=m+f&&n>=u-f&&n<=c+f){if(r!==null&&document.contains(r)&&i!==r&&!i.contains(r)&&!r.contains(i)&&Bn(r,i)>0){let x=r,k=!1;for(;x&&!x.contains(i);){if(Wn(x.getBoundingClientRect(),l)){k=!0;break}x=x.parentElement}if(k)return}re.push(s)}})}function Ge(t,e){He.set(t,e)}function tt(){let t=!1,e=!1;re.forEach(r=>{const{direction:s}=r;s==="horizontal"?t=!0:e=!0});let n=0;He.forEach(r=>{n|=r}),t&&e?Fe("intersection",n):t?Fe("horizontal",n):e?Fe("vertical",n):Un()}let qe=new AbortController;function De(){qe.abort(),qe=new AbortController;const t={capture:!0,signal:qe.signal};Ce.size&&(be?(re.length>0&&me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",Be,t),r.addEventListener("pointerleave",We,t),r.addEventListener("pointermove",We,t))}),window.addEventListener("pointerup",Be,t),window.addEventListener("pointercancel",Be,t)):me.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",Yn,t),r.addEventListener("pointermove",We,t))}))}function Le(t,e){Ce.forEach(n=>{const{setResizeHandlerState:r}=n,s=re.includes(n);r(t,s,e)})}function Jn(){const[t,e]=h.useState(0);return h.useCallback(()=>e(n=>n+1),[])}function N(t,e){if(!t)throw console.error(e),Error(e)}function he(t,e,n=Qe){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function ce(t,e,n=Qe){return he(t,e,n)===0}function ee(t,e,n){return he(t,e,n)===0}function Qn(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const s=t[r],i=e[r];if(!ee(s,i,n))return!1}return!0}function ye({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];N(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:s=0,collapsible:i,maxSize:o=100,minSize:l=0}=r;if(he(n,l)<0)if(i){const c=(s+l)/2;he(n,c)<0?n=s:n=l}else n=l;return n=Math.min(o,n),n=parseFloat(n.toFixed(Qe)),n}function je({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:s,trigger:i}){if(ee(t,0))return e;const o=[...e],[l,c]=r;N(l!=null,"Invalid first pivot index"),N(c!=null,"Invalid second pivot index");let d=0;if(i==="keyboard"){{const u=t<0?c:l,f=n[u];N(f,`Panel constraints not found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,v)){const w=k-b;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}{const u=t<0?l:c,f=n[u];N(f,`No panel constraints found for index ${u}`);const{collapsedSize:v=0,collapsible:x,minSize:k=0}=f;if(x){const b=e[u];if(N(b!=null,`Previous layout not found for panel index ${u}`),ee(b,k)){const w=b-v;he(w,Math.abs(t))>0&&(t=t<0?0-w:w)}}}}{const u=t<0?1:-1;let f=t<0?c:l,v=0;for(;;){const k=e[f];N(k!=null,`Previous layout not found for panel index ${f}`);const w=ye({panelConstraints:n,panelIndex:f,size:100})-k;if(v+=w,f+=u,f<0||f>=n.length)break}const x=Math.min(Math.abs(t),Math.abs(v));t=t<0?0-x:x}{let f=t<0?l:c;for(;f>=0&&f<n.length;){const v=Math.abs(t)-Math.abs(d),x=e[f];N(x!=null,`Previous layout not found for panel index ${f}`);const k=x-v,b=ye({panelConstraints:n,panelIndex:f,size:k});if(!ee(x,b)&&(d+=x-b,o[f]=b,d.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?f--:f++}}if(Qn(s,o))return s;{const u=t<0?c:l,f=e[u];N(f!=null,`Previous layout not found for panel index ${u}`);const v=f+d,x=ye({panelConstraints:n,panelIndex:u,size:v});if(o[u]=x,!ee(x,v)){let k=v-x,w=t<0?c:l;for(;w>=0&&w<n.length;){const C=o[w];N(C!=null,`Previous layout not found for panel index ${w}`);const I=C+k,j=ye({panelConstraints:n,panelIndex:w,size:I});if(ee(C,j)||(k-=j-C,o[w]=j),ee(k,0))break;t>0?w--:w++}}}const m=o.reduce((u,f)=>f+u,0);return ee(m,100)?o:s}function Zn({layout:t,panelsArray:e,pivotIndices:n}){let r=0,s=100,i=0,o=0;const l=n[0];N(l!=null,"No pivot index found"),e.forEach((u,f)=>{const{constraints:v}=u,{maxSize:x=100,minSize:k=0}=v;f===l?(r=k,s=x):(i+=k,o+=x)});const c=Math.min(s,100-i),d=Math.max(r,100-o),m=t[l];return{valueMax:c,valueMin:d,valueNow:m}}function Ee(t,e=document){return Array.from(e.querySelectorAll(`[${K.resizeHandleId}][data-panel-group-id="${t}"]`))}function At(t,e,n=document){const s=Ee(t,n).findIndex(i=>i.getAttribute(K.resizeHandleId)===e);return s??null}function Tt(t,e,n){const r=At(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function Ht(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function Oe(t,e=document){const n=e.querySelector(`[${K.resizeHandleId}="${t}"]`);return n||null}function er(t,e,n,r=document){var s,i,o,l;const c=Oe(e,r),d=Ee(t,r),m=c?d.indexOf(c):-1,u=(s=(i=n[m])===null||i===void 0?void 0:i.id)!==null&&s!==void 0?s:null,f=(o=(l=n[m+1])===null||l===void 0?void 0:l.id)!==null&&o!==void 0?o:null;return[u,f]}function tr({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:s,panelGroupElement:i,setLayout:o}){h.useRef({didWarnAboutMissingResizeHandle:!1}),pe(()=>{if(!i)return;const l=Ee(n,i);for(let c=0;c<s.length-1;c++){const{valueMax:d,valueMin:m,valueNow:u}=Zn({layout:r,panelsArray:s,pivotIndices:[c,c+1]}),f=l[c];if(f!=null){const v=s[c];N(v,`No panel data found for index "${c}"`),f.setAttribute("aria-controls",v.id),f.setAttribute("aria-valuemax",""+Math.round(d)),f.setAttribute("aria-valuemin",""+Math.round(m)),f.setAttribute("aria-valuenow",u!=null?""+Math.round(u):"")}}return()=>{l.forEach((c,d)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,s,i]),h.useEffect(()=>{if(!i)return;const l=e.current;N(l,"Eager values not found");const{panelDataArray:c}=l,d=Ht(n,i);N(d!=null,`No group found for id "${n}"`);const m=Ee(n,i);N(m,`No resize handles found for group id "${n}"`);const u=m.map(f=>{const v=f.getAttribute(K.resizeHandleId);N(v,"Resize handle element has no handle id attribute");const[x,k]=er(n,v,c,i);if(x==null||k==null)return()=>{};const b=w=>{if(!w.defaultPrevented)switch(w.key){case"Enter":{w.preventDefault();const C=c.findIndex(I=>I.id===x);if(C>=0){const I=c[C];N(I,`No panel data found for index ${C}`);const j=r[C],{collapsedSize:F=0,collapsible:$,minSize:g=0}=I.constraints;if(j!=null&&$){const G=je({delta:ee(j,F)?g-F:F-j,initialLayout:r,panelConstraints:c.map(W=>W.constraints),pivotIndices:Tt(n,v,i),prevLayout:r,trigger:"keyboard"});r!==G&&o(G)}}break}}};return f.addEventListener("keydown",b),()=>{f.removeEventListener("keydown",b)}});return()=>{u.forEach(f=>f())}},[i,t,e,n,r,s,o])}function ut(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function Ot(t,e){const n=t==="horizontal",{x:r,y:s}=Te(e);return n?r:s}function nr(t,e,n,r,s){const i=n==="horizontal",o=Oe(e,s);N(o,`No resize handle element found for id "${e}"`);const l=o.getAttribute(K.groupId);N(l,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const d=Ot(n,t),m=Ht(l,s);N(m,`No group element found for id "${l}"`);const u=m.getBoundingClientRect(),f=i?u.width:u.height;return(d-c)/f*100}function rr(t,e,n,r,s,i){if(Et(t)){const o=n==="horizontal";let l=0;t.shiftKey?l=100:s!=null?l=s:l=10;let c=0;switch(t.key){case"ArrowDown":c=o?0:l;break;case"ArrowLeft":c=o?-l:0;break;case"ArrowRight":c=o?l:0;break;case"ArrowUp":c=o?0:-l;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:nr(t,e,n,r,i)}function sr({panelDataArray:t}){const e=Array(t.length),n=t.map(i=>i.constraints);let r=0,s=100;for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;l!=null&&(r++,e[i]=l,s-=l)}for(let i=0;i<t.length;i++){const o=n[i];N(o,`Panel constraints not found for index ${i}`);const{defaultSize:l}=o;if(l!=null)continue;const c=t.length-r,d=s/c;r++,e[i]=d,s-=d}return e}function ge(t,e,n){e.forEach((r,s)=>{const i=t[s];N(i,`Panel data not found for index ${s}`);const{callbacks:o,constraints:l,id:c}=i,{collapsedSize:d=0,collapsible:m}=l,u=n[c];if(u==null||r!==u){n[c]=r;const{onCollapse:f,onExpand:v,onResize:x}=o;x&&x(r,u),m&&(f||v)&&(v&&(u==null||ce(u,d))&&!ce(r,d)&&v(),f&&(u==null||!ce(u,d))&&ce(r,d)&&f())}})}function Me(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function ir({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:s,precision:i=3}){const o=n[s];let l;return o==null?l=t!=null?t.toPrecision(i):"1":r.length===1?l="1":l=o.toPrecision(i),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function or(t,e=10){let n=null;return(...s)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...s)},e)}}function dt(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function Ut(t){return`react-resizable-panels:${t}`}function Ft(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:s,order:i}=e;return s?r:i?`${i}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function Wt(t,e){try{const n=Ut(t),r=e.getItem(n);if(r){const s=JSON.parse(r);if(typeof s=="object"&&s!=null)return s}}catch{}return null}function lr(t,e,n){var r,s;const i=(r=Wt(t,n))!==null&&r!==void 0?r:{},o=Ft(e);return(s=i[o])!==null&&s!==void 0?s:null}function ar(t,e,n,r,s){var i;const o=Ut(t),l=Ft(e),c=(i=Wt(t,s))!==null&&i!==void 0?i:{};c[l]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{s.setItem(o,JSON.stringify(c))}catch(d){console.error(d)}}function ft({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((i,o)=>i+o,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(i=>`${i}%`).join(", ")}`);if(!ee(r,100)&&n.length>0)for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=100/r*o;n[i]=l}let s=0;for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=ye({panelConstraints:e,panelIndex:i,size:o});o!=l&&(s+=o-l,n[i]=l)}if(!ee(s,0))for(let i=0;i<e.length;i++){const o=n[i];N(o!=null,`No layout data found for index ${i}`);const l=o+s,c=ye({panelConstraints:e,panelIndex:i,size:l});if(o!==c&&(s-=c-o,n[i]=c,ee(s,0)))break}return n}const cr=100,ke={getItem:t=>(dt(ke),ke.getItem(t)),setItem:(t,e)=>{dt(ke),ke.setItem(t,e)}},mt={};function Bt({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:s,id:i=null,onLayout:o=null,keyboardResizeBy:l=null,storage:c=ke,style:d,tagName:m="div",...u}){const f=Ze(i),v=h.useRef(null),[x,k]=h.useState(null),[b,w]=h.useState([]),C=Jn(),I=h.useRef({}),j=h.useRef(new Map),F=h.useRef(0),$=h.useRef({autoSaveId:t,direction:r,dragState:x,id:f,keyboardResizeBy:l,onLayout:o,storage:c}),g=h.useRef({layout:b,panelDataArray:[],panelDataArrayChanged:!1});h.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),h.useImperativeHandle(s,()=>({getId:()=>$.current.id,getLayout:()=>{const{layout:p}=g.current;return p},setLayout:p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current,y=ft({layout:p,panelConstraints:P.map(E=>E.constraints)});ut(M,y)||(w(y),g.current.layout=y,z&&z(y),ge(P,y,I.current))}}),[]),pe(()=>{$.current.autoSaveId=t,$.current.direction=r,$.current.dragState=x,$.current.id=f,$.current.onLayout=o,$.current.storage=c}),tr({committedValuesRef:$,eagerValuesRef:g,groupId:f,layout:b,panelDataArray:g.current.panelDataArray,setLayout:w,panelGroupElement:v.current}),h.useEffect(()=>{const{panelDataArray:p}=g.current;if(t){if(b.length===0||b.length!==p.length)return;let z=mt[t];z==null&&(z=or(ar,cr),mt[t]=z);const M=[...p],P=new Map(j.current);z(t,M,P,b,c)}},[t,b,c]),h.useEffect(()=>{});const G=h.useCallback(p=>{const{onLayout:z}=$.current,{layout:M,panelDataArray:P}=g.current;if(p.constraints.collapsible){const y=P.map(se=>se.constraints),{collapsedSize:E=0,panelSize:U,pivotIndices:X}=fe(P,p,M);if(N(U!=null,`Panel size not found for panel "${p.id}"`),!ce(U,E)){j.current.set(p.id,U);const ie=ve(P,p)===P.length-1?U-E:E-U,q=je({delta:ie,initialLayout:M,panelConstraints:y,pivotIndices:X,prevLayout:M,trigger:"imperative-api"});Me(M,q)||(w(q),g.current.layout=q,z&&z(q),ge(P,q,I.current))}}},[]),W=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current;if(p.constraints.collapsible){const E=y.map(ne=>ne.constraints),{collapsedSize:U=0,panelSize:X=0,minSize:se=0,pivotIndices:ie}=fe(y,p,P),q=z??se;if(ce(X,U)){const ne=j.current.get(p.id),Se=ne!=null&&ne>=q?ne:q,Ue=ve(y,p)===y.length-1?X-Se:Se-X,Q=je({delta:Ue,initialLayout:P,panelConstraints:E,pivotIndices:ie,prevLayout:P,trigger:"imperative-api"});Me(P,Q)||(w(Q),g.current.layout=Q,M&&M(Q),ge(y,Q,I.current))}}},[]),O=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{panelSize:P}=fe(M,p,z);return N(P!=null,`Panel size not found for panel "${p.id}"`),P},[]),A=h.useCallback((p,z)=>{const{panelDataArray:M}=g.current,P=ve(M,p);return ir({defaultSize:z,dragState:x,layout:b,panelData:M,panelIndex:P})},[x,b]),D=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),y===!0&&ce(E,P)},[]),V=h.useCallback(p=>{const{layout:z,panelDataArray:M}=g.current,{collapsedSize:P=0,collapsible:y,panelSize:E}=fe(M,p,z);return N(E!=null,`Panel size not found for panel "${p.id}"`),!y||he(E,P)>0},[]),_=h.useCallback(p=>{const{panelDataArray:z}=g.current;z.push(p),z.sort((M,P)=>{const y=M.order,E=P.order;return y==null&&E==null?0:y==null?-1:E==null?1:y-E}),g.current.panelDataArrayChanged=!0,C()},[C]);pe(()=>{if(g.current.panelDataArrayChanged){g.current.panelDataArrayChanged=!1;const{autoSaveId:p,onLayout:z,storage:M}=$.current,{layout:P,panelDataArray:y}=g.current;let E=null;if(p){const X=lr(p,y,M);X&&(j.current=new Map(Object.entries(X.expandToSizes)),E=X.layout)}E==null&&(E=sr({panelDataArray:y}));const U=ft({layout:E,panelConstraints:y.map(X=>X.constraints)});ut(P,U)||(w(U),g.current.layout=U,z&&z(U),ge(y,U,I.current))}}),pe(()=>{const p=g.current;return()=>{p.layout=[]}},[]);const L=h.useCallback(p=>{let z=!1;const M=v.current;return M&&window.getComputedStyle(M,null).getPropertyValue("direction")==="rtl"&&(z=!0),function(y){y.preventDefault();const E=v.current;if(!E)return()=>null;const{direction:U,dragState:X,id:se,keyboardResizeBy:ie,onLayout:q}=$.current,{layout:ne,panelDataArray:Se}=g.current,{initialLayout:Ne}=X??{},Ue=Tt(se,p,E);let Q=rr(y,p,U,X,ie,E);const rt=U==="horizontal";rt&&z&&(Q=-Q);const Zt=Se.map(en=>en.constraints),ze=je({delta:Q,initialLayout:Ne??ne,panelConstraints:Zt,pivotIndices:Ue,prevLayout:ne,trigger:Et(y)?"keyboard":"mouse-or-touch"}),st=!Me(ne,ze);(Nt(y)||$t(y))&&F.current!=Q&&(F.current=Q,!st&&Q!==0?rt?Ge(p,Q<0?It:Rt):Ge(p,Q<0?Dt:Lt):Ge(p,0)),st&&(w(ze),g.current.layout=ze,q&&q(ze),ge(Se,ze,I.current))}},[]),T=h.useCallback((p,z)=>{const{onLayout:M}=$.current,{layout:P,panelDataArray:y}=g.current,E=y.map(ne=>ne.constraints),{panelSize:U,pivotIndices:X}=fe(y,p,P);N(U!=null,`Panel size not found for panel "${p.id}"`);const ie=ve(y,p)===y.length-1?U-z:z-U,q=je({delta:ie,initialLayout:P,panelConstraints:E,pivotIndices:X,prevLayout:P,trigger:"imperative-api"});Me(P,q)||(w(q),g.current.layout=q,M&&M(q),ge(y,q,I.current))},[]),H=h.useCallback((p,z)=>{const{layout:M,panelDataArray:P}=g.current,{collapsedSize:y=0,collapsible:E}=z,{collapsedSize:U=0,collapsible:X,maxSize:se=100,minSize:ie=0}=p.constraints,{panelSize:q}=fe(P,p,M);q!=null&&(E&&X&&ce(q,y)?ce(y,U)||T(p,U):q<ie?T(p,ie):q>se&&T(p,se))},[T]),Y=h.useCallback((p,z)=>{const{direction:M}=$.current,{layout:P}=g.current;if(!v.current)return;const y=Oe(p,v.current);N(y,`Drag handle element not found for id "${p}"`);const E=Ot(M,z);k({dragHandleId:p,dragHandleRect:y.getBoundingClientRect(),initialCursorPosition:E,initialLayout:P})},[]),te=h.useCallback(()=>{k(null)},[]),B=h.useCallback(p=>{const{panelDataArray:z}=g.current,M=ve(z,p);M>=0&&(z.splice(M,1),delete I.current[p.id],g.current.panelDataArrayChanged=!0,C())},[C]),S=h.useMemo(()=>({collapsePanel:G,direction:r,dragState:x,expandPanel:W,getPanelSize:O,getPanelStyle:A,groupId:f,isPanelCollapsed:D,isPanelExpanded:V,reevaluatePanelConstraints:H,registerPanel:_,registerResizeHandle:L,resizePanel:T,startDragging:Y,stopDragging:te,unregisterPanel:B,panelGroupElement:v.current}),[G,x,r,W,O,A,f,D,V,H,_,L,T,Y,te,B]),R={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return h.createElement(Ae.Provider,{value:S},h.createElement(m,{...u,children:e,className:n,id:i,ref:v,style:{...R,...d},[K.group]:"",[K.groupDirection]:r,[K.groupId]:f}))}const Gt=h.forwardRef((t,e)=>h.createElement(Bt,{...t,forwardedRef:e}));Bt.displayName="PanelGroup";Gt.displayName="forwardRef(PanelGroup)";function ve(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function fe(t,e,n){const r=ve(t,e),i=r===t.length-1?[r-1,r]:[r,r+1],o=n[r];return{...e.constraints,panelSize:o,pivotIndices:i}}function ur({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){h.useEffect(()=>{if(t||n==null||r==null)return;const s=Oe(e,r);if(s==null)return;const i=o=>{if(!o.defaultPrevented)switch(o.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{o.preventDefault(),n(o);break}case"F6":{o.preventDefault();const l=s.getAttribute(K.groupId);N(l,`No group element found for id "${l}"`);const c=Ee(l,r),d=At(l,e,r);N(d!==null,`No resize element found for id "${e}"`);const m=o.shiftKey?d>0?d-1:c.length-1:d+1<c.length?d+1:0;c[m].focus();break}}};return s.addEventListener("keydown",i),()=>{s.removeEventListener("keydown",i)}},[r,t,e,n])}function qt({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:s,onBlur:i,onClick:o,onDragging:l,onFocus:c,onPointerDown:d,onPointerUp:m,style:u={},tabIndex:f=0,tagName:v="div",...x}){var k,b;const w=h.useRef(null),C=h.useRef({onClick:o,onDragging:l,onPointerDown:d,onPointerUp:m});h.useEffect(()=>{C.current.onClick=o,C.current.onDragging=l,C.current.onPointerDown=d,C.current.onPointerUp=m});const I=h.useContext(Ae);if(I===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:j,groupId:F,registerResizeHandle:$,startDragging:g,stopDragging:G,panelGroupElement:W}=I,O=Ze(s),[A,D]=h.useState("inactive"),[V,_]=h.useState(!1),[L,T]=h.useState(null),H=h.useRef({state:A});pe(()=>{H.current.state=A}),h.useEffect(()=>{if(n)T(null);else{const S=$(O);T(()=>S)}},[n,O,$]);const Y=(k=r?.coarse)!==null&&k!==void 0?k:15,te=(b=r?.fine)!==null&&b!==void 0?b:5;h.useEffect(()=>{if(n||L==null)return;const S=w.current;N(S,"Element ref not attached");let R=!1;return Xn(O,S,j,{coarse:Y,fine:te},(z,M,P)=>{if(!M){D("inactive");return}switch(z){case"down":{D("drag"),R=!1,N(P,'Expected event to be defined for "down" action'),g(O,P);const{onDragging:y,onPointerDown:E}=C.current;y?.(!0),E?.();break}case"move":{const{state:y}=H.current;R=!0,y!=="drag"&&D("hover"),N(P,'Expected event to be defined for "move" action'),L(P);break}case"up":{D("hover"),G();const{onClick:y,onDragging:E,onPointerUp:U}=C.current;E?.(!1),U?.(),R||y?.();break}}})},[Y,j,n,te,$,O,L,g,G]),ur({disabled:n,handleId:O,resizeHandler:L,panelGroupElement:W});const B={touchAction:"none",userSelect:"none"};return h.createElement(v,{...x,children:t,className:e,id:s,onBlur:()=>{_(!1),i?.()},onFocus:()=>{_(!0),c?.()},ref:w,role:"separator",style:{...B,...u},tabIndex:f,[K.groupDirection]:j,[K.groupId]:F,[K.resizeHandle]:"",[K.resizeHandleActive]:A==="drag"?"pointer":V?"keyboard":void 0,[K.resizeHandleEnabled]:!n,[K.resizeHandleId]:O,[K.resizeHandleState]:A})}qt.displayName="PanelResizeHandle";function ls(t){const e=J.c(10);let n,r,s;e[0]!==t?({className:n,ref:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",n),e[4]=n,e[5]=i):i=e[5];let o;return e[6]!==r||e[7]!==s||e[8]!==i?(o=a.jsx(Gt,{ref:s,"data-slot":"resizable-panel-group",className:i,...r}),e[6]=r,e[7]=s,e[8]=i,e[9]=o):o=e[9],o}function as(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=a.jsx(Ct,{"data-slot":"resizable-panel",...n}),e[2]=n,e[3]=r):r=e[3],r}function cs(t){const e=J.c(12);let n,r,s;e[0]!==t?({withHandle:s,className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=s):(n=e[1],r=e[2],s=e[3]);let i;e[4]!==n?(i=xe("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",n),e[4]=n,e[5]=i):i=e[5];let o;e[6]!==s?(o=s&&a.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:a.jsx(fn,{className:"size-2.5"})}),e[6]=s,e[7]=o):o=e[7];let l;return e[8]!==r||e[9]!==i||e[10]!==o?(l=a.jsx(qt,{"data-slot":"resizable-handle",className:i,...r,children:o}),e[8]=r,e[9]=i,e[10]=o,e[11]=l):l=e[11],l}function dr(t){if(!t||t.includes("\\")||t.includes("..")||t.includes("\0"))return!0;try{const e=decodeURIComponent(t);if(e.includes("\\")||e.includes("..")||e.includes("\0"))return!0;if(e!==t&&e.includes("/")){const n=(t.match(/\//g)??[]).length;if((e.match(/\//g)??[]).length>n)return!0}return!1}catch{return!0}}function fr(t){if(dr(t))throw new Error(`Invalid block key: ${t||"(empty)"}`)}function mr(t){try{return decodeURIComponent(t)}catch{return t}}function pr(t){return fr(t),encodeURIComponent(t)}function hr(t){return`.deco/blocks/${pr(t)}.json`}function us(t){return`/${hr(t)}`}const ds=1e4,xr=3;function Je(t){return t.trim()?(t.startsWith("/")?t:`/${t}`).replace(/\/+/g,"/"):"/"}function nt(t){return t.startsWith("/")?t.slice(1):t}function _e(t){return t.trim()?t.startsWith("/")?t:`/${t}`:"/"}function gr(t){const e=_e(t);if(e==="/")return"/";const n=e.split("/").filter(Boolean);return n.pop(),n.length===0?"/":`/${n.join("/")}`}function fs(t,e){const n=e.replace(/^\/+|\/+$/g,"");return _e(n?`${t==="/"?"":t}/${n}`:t)}function ms(t,e){return e==="directory"?t:gr(t)}function ps(t){const e=t.trim();return e?e.includes("/")||e.includes("\\")||e.includes("..")||e.includes("\0")?"Name cannot contain /, \\, or ..":null:"Name is required"}function vr(t){const e=nt(t);return e?e.split("/").filter(Boolean).length:0}function hs(t,e,n,r=!1){return{files:[...new Set([...t,...n.files])],directories:[...new Set([...e,...n.directories??[]])],truncated:r||!!n.truncated}}function xs(t,e){return vr(t)>=xr&&!e.has(t)}function gs(t,e,n=[]){const r=nt(t);if(e.includes(r)||n.includes(r))return!0;if(!r)return!1;const s=`${r}/`;return e.some(i=>i.startsWith(s))||n.some(i=>i.startsWith(s))}function vs(t){const e=nt(t),n=".deco/blocks/";if(!e.startsWith(n)||!e.endsWith(".json"))return null;const r=e.slice(n.length,-5);return mr(r)}function wr(t){if(!t)return"plaintext";const e=t.toLowerCase();return e.endsWith(".tsx")||e.endsWith(".ts")?"typescript":e.endsWith(".jsx")||e.endsWith(".js")||e.endsWith(".mjs")||e.endsWith(".cjs")?"javascript":e.endsWith(".json")?"json":e.endsWith(".md")||e.endsWith(".mdx")?"markdown":e.endsWith(".css")?"css":e.endsWith(".scss")?"scss":e.endsWith(".html")?"html":e.endsWith(".yaml")||e.endsWith(".yml")?"yaml":e.endsWith(".xml")||e.endsWith(".svg")?"xml":e.endsWith(".py")?"python":e.endsWith(".sql")?"sql":e.endsWith(".sh")?"shell":"plaintext"}function ws(t){const e=Je(t).split("/").filter(Boolean),n=["/"];let r="";for(const s of e.slice(0,-1))r+=`/${s}`,n.push(r);return n}function ys(t,e=[]){const n={children:[]},r=i=>{const l=Je(i).split("/").filter(Boolean);let c=n,d="";for(const m of l){d+=`/${m}`;let u=c.children.find(f=>f.name===m);u?u.kind==="file"&&(u.kind="directory"):(u={name:m,path:d,kind:"directory",children:[]},c.children.push(u)),c=u}};for(const i of t){const l=Je(i).split("/").filter(Boolean);let c=n,d="";l.forEach((m,u)=>{d+=`/${m}`;const f=u===l.length-1;let v=c.children.find(x=>x.name===m);v||(v={name:m,path:d,kind:f?"file":"directory",children:[]},c.children.push(v)),c=v})}for(const i of e)r(_e(i));const s=i=>{i.sort((o,l)=>o.kind!==l.kind?o.kind==="directory"?-1:1:o.name.localeCompare(l.name));for(const o of i)o.children.length>0&&s(o.children)};return s(n.children),n.children}function yr(t,e,n=0){const r=[];for(const s of t)s.name!==".gitkeep"&&(r.push({node:s,depth:n}),s.kind==="directory"&&s.children.length>0&&e.has(s.path)&&r.push(...yr(s.children,e,n+1)));return r}function bs(t){return t.split(`
|
|
2
2
|
`).map(e=>{const n=e.match(/^\d+\t(.*)/);return n?n[1]:e}).join(`
|
|
3
3
|
`)}bn.config({paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.0/min/vs"}});function br(t){const e=J.c(11),{value:n,filename:r}=t,[s]=nn(),i=s.theme==="dark"||s.theme==="system"&&typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches;let o;e[0]!==r?(o=wr(r),e[0]=r,e[1]=o):o=e[1];const l=i?"vs-dark":"light";let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsx(rn,{size:20,className:"animate-spin text-muted-foreground"})}),e[2]=c):c=e[2];let d,m;e[3]===Symbol.for("react.memo_cache_sentinel")?(d={enabled:!1},m={top:12,bottom:12},e[3]=d,e[4]=m):(d=e[3],m=e[4]);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={readOnly:!0,domReadOnly:!0,fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:3,wordWrap:"on",minimap:d,padding:m,renderLineHighlight:"none",scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}},e[5]=u):u=e[5];let f;return e[6]!==r||e[7]!==o||e[8]!==l||e[9]!==n?(f=a.jsx(Sn,{path:r,language:o,value:n,theme:l,loading:c,options:u},r),e[6]=r,e[7]=o,e[8]=l,e[9]=n,e[10]=f):f=e[10],f}function Kt(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}const Sr=new Set(["png","jpg","jpeg","gif","webp","svg","avif"]),zr=new Set(["txt","json","csv","tsv","log","yaml","yml","xml","toml","ts","tsx","js","jsx","py","rb","go","rs","java","sh","sql"]),pt=2*1024*1024;function jr(t,e){const n=t.split(".").pop()?.toLowerCase()??"";return Sr.has(n)?"image":n==="pdf"?"pdf":n==="html"||n==="htm"?"html":n==="md"||n==="markdown"?e<=pt?"markdown":"download":zr.has(n)&&e<=pt?"text":"download"}function Vt(){const t=J.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx($e,{className:"h-6 w-2/3"}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsxs("div",{className:"flex w-3/4 max-w-md flex-col gap-3 p-6",children:[e,a.jsxs("div",{className:"flex flex-col gap-1.5",children:[a.jsx($e,{className:"h-3 w-full"}),a.jsx($e,{className:"h-3 w-5/6"}),a.jsx($e,{className:"h-3 w-2/3"})]})]})}),t[1]=n):n=t[1],n}function Xt(t){const e=J.c(20),{file:n,note:r}=t;let s;e[0]!==n.filename?(s=a.jsx(Xe,{filename:n.filename,className:"h-12 w-10"}),e[0]=n.filename,e[1]=s):s=e[1];let i;e[2]!==n.filename?(i=a.jsx("span",{className:"text-sm font-medium text-foreground",children:n.filename}),e[2]=n.filename,e[3]=i):i=e[3];let o;e[4]!==n.size?(o=Kt(n.size),e[4]=n.size,e[5]=o):o=e[5];const l=r?` · ${r}`:"";let c;e[6]!==o||e[7]!==l?(c=a.jsxs("span",{className:"text-xs text-muted-foreground",children:[o,l]}),e[6]=o,e[7]=l,e[8]=c):c=e[8];let d;e[9]!==i||e[10]!==c?(d=a.jsxs("div",{className:"flex flex-col items-center gap-0.5",children:[i,c]}),e[9]=i,e[10]=c,e[11]=d):d=e[11];let m;e[12]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx(Re,{size:14}),e[12]=m):m=e[12];let u;e[13]!==n.downloadUrl||e[14]!==n.filename?(u=a.jsx(Z,{asChild:!0,variant:"outline",size:"sm",children:a.jsxs("a",{href:n.downloadUrl,download:n.filename,children:[m,"Download"]})}),e[13]=n.downloadUrl,e[14]=n.filename,e[15]=u):u=e[15];let f;return e[16]!==s||e[17]!==d||e[18]!==u?(f=a.jsx("div",{className:"flex h-full w-full items-center justify-center",children:a.jsxs("div",{className:"flex flex-col items-center gap-3 rounded-xl border border-border bg-muted/30 px-10 py-8",children:[s,d,u]})}),e[16]=s,e[17]=d,e[18]=u,e[19]=f):f=e[19],f}function ht(t){const e=J.c(16),{file:n,markdown:r}=t;let s;e[0]!==n.downloadUrl?(s=Ke.fileText(n.downloadUrl),e[0]=n.downloadUrl,e[1]=s):s=e[1];let i;e[2]!==n.downloadUrl?(i=async()=>{const u=await fetch(n.downloadUrl,{credentials:"include"});if(!u.ok)throw new Error(`fetch failed: ${u.status}`);return u.text()},e[2]=n.downloadUrl,e[3]=i):i=e[3];let o;e[4]!==s||e[5]!==i?(o={queryKey:s,queryFn:i,staleTime:6e4,retry:!1},e[4]=s,e[5]=i,e[6]=o):o=e[6];const{data:l,isPending:c,isError:d}=sn(o);if(c){let u;return e[7]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx(Vt,{}),e[7]=u):u=e[7],u}if(d||l===void 0){let u;return e[8]!==n?(u=a.jsx(Xt,{file:n,note:"preview unavailable"}),e[8]=n,e[9]=u):u=e[9],u}if(r){const u=`file-preview-${n.key}`;let f;return e[10]!==l||e[11]!==u?(f=a.jsx("div",{className:"h-full overflow-y-auto",children:a.jsx("div",{className:"prose prose-sm dark:prose-invert mx-auto max-w-3xl px-6 py-6",children:a.jsx(zn,{id:u,text:l})})}),e[10]=l,e[11]=u,e[12]=f):f=e[12],f}let m;return e[13]!==l||e[14]!==n.filename?(m=a.jsx(br,{value:l,filename:n.filename}),e[13]=l,e[14]=n.filename,e[15]=m):m=e[15],m}function kr(t){const e=J.c(15),{file:n}=t;switch(jr(n.filename,n.size)){case"image":{let s;return e[0]!==n.downloadUrl||e[1]!==n.filename?(s=a.jsx("div",{className:"flex h-full w-full items-center justify-center overflow-auto bg-muted/30 p-4",children:a.jsx("img",{src:n.downloadUrl,alt:n.filename,className:"max-h-full max-w-full rounded-lg object-contain"})}),e[0]=n.downloadUrl,e[1]=n.filename,e[2]=s):s=e[2],s}case"pdf":{let s;return e[3]!==n.downloadUrl||e[4]!==n.filename?(s=a.jsx("iframe",{src:n.downloadUrl,title:n.filename,className:"block h-full w-full bg-white"}),e[3]=n.downloadUrl,e[4]=n.filename,e[5]=s):s=e[5],s}case"html":{let s;return e[6]!==n.downloadUrl||e[7]!==n.filename?(s=a.jsx("iframe",{src:n.downloadUrl,title:n.filename,sandbox:"allow-scripts",className:"block h-full w-full bg-white"}),e[6]=n.downloadUrl,e[7]=n.filename,e[8]=s):s=e[8],s}case"markdown":{let s;return e[9]!==n?(s=a.jsx(ht,{file:n,markdown:!0}),e[9]=n,e[10]=s):s=e[10],s}case"text":{let s;return e[11]!==n?(s=a.jsx(ht,{file:n,markdown:!1}),e[11]=n,e[12]=s):s=e[12],s}default:{let s;return e[13]!==n?(s=a.jsx(Xt,{file:n}),e[13]=n,e[14]=s):s=e[14],s}}}function Pr(t){const e=J.c(40),{readUrl:n,editor:r,downloadName:s,trailing:i}=t;let o;e[0]!==n?(o=new URL(n,window.location.origin).toString(),e[0]=n,e[1]=o):o=e[1];const l=o;let c;e[2]!==r?(c=r.deckDetected&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:r.railOpen?"secondary":"ghost",size:"icon","aria-label":r.railOpen?"Hide slide list":"Show slide list",onClick:()=>r.setRailOpen(!r.railOpen),children:a.jsx(Cn,{size:14})})}),a.jsx(ae,{side:"bottom",children:r.railOpen?"Hide slide list":"Show slide list"})]}),e[2]=r,e[3]=c):c=e[3];let d;e[4]!==l?(d=()=>window.open(l,"_blank","noopener"),e[4]=l,e[5]=d):d=e[5];let m;e[6]!==l?(m=a.jsx("span",{className:"truncate",children:l}),e[6]=l,e[7]=m):m=e[7];let u;e[8]!==l||e[9]!==d||e[10]!==m?(u=a.jsx("button",{type:"button",onClick:d,className:"flex min-w-0 flex-1 items-center rounded-md px-2 py-1 text-left text-xs text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",title:l,children:m}),e[8]=l,e[9]=d,e[10]=m,e[11]=u):u=e[11];let f;e[12]!==r.agentUpdated||e[13]!==r.reload?(f=r.agentUpdated&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsxs(Z,{variant:"outline",size:"sm",className:"h-7 gap-1 text-xs",onClick:r.reload,children:[a.jsx(on,{size:12}),"Agent updated — reload"]})}),a.jsx(ae,{side:"bottom",children:"The agent rewrote this deck while you were editing. Reloading discards unsaved differences."})]}),e[12]=r.agentUpdated,e[13]=r.reload,e[14]=f):f=e[14];let v;e[15]!==r.saving?(v=r.saving&&a.jsx("span",{className:"px-1 text-xs text-muted-foreground",children:"Saving…"}),e[15]=r.saving,e[16]=v):v=e[16];let x;e[17]!==r?(x=r.deckDetected&&r.writable&&a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:r.editMode?"secondary":"ghost",size:"icon","aria-label":r.editMode?"Done editing":"Edit inline",className:xe(r.editMode&&"text-primary"),onClick:()=>r.setEditMode(!r.editMode),children:a.jsx(mn,{size:14})})}),a.jsx(ae,{side:"bottom",children:r.editMode?"Done editing":"Edit inline (text, reorder, delete)"})]}),e[17]=r,e[18]=x):x=e[18];let k;e[19]!==l||e[20]!==s||e[21]!==r.deckDetected?(k=r.deckDetected?a.jsxs(jn,{children:[a.jsx(kn,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",children:a.jsx(Re,{size:14})})}),a.jsxs(Pn,{align:"end",children:[a.jsxs(it,{onClick:()=>window.open(`${l}#print`,"_blank","noopener"),children:[a.jsx(pn,{size:14}),"Export as PDF"]}),a.jsx(it,{asChild:!0,children:a.jsxs("a",{href:l,download:s,children:[a.jsx(hn,{size:14}),"Download HTML"]})})]})]}):a.jsxs(oe,{children:[a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Download",asChild:!0,children:a.jsx("a",{href:l,download:s,children:a.jsx(Re,{size:14})})})}),a.jsx(ae,{side:"bottom",children:"Download"})]}),e[19]=l,e[20]=s,e[21]=r.deckDetected,e[22]=k):k=e[22];let b;e[23]!==l?(b=()=>window.open(l,"_blank","noopener"),e[23]=l,e[24]=b):b=e[24];let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(zt,{size:14}),e[25]=w):w=e[25];let C;e[26]!==b?(C=a.jsx(le,{asChild:!0,children:a.jsx(Z,{variant:"ghost",size:"icon","aria-label":"Open in new tab",onClick:b,children:w})}),e[26]=b,e[27]=C):C=e[27];let I;e[28]===Symbol.for("react.memo_cache_sentinel")?(I=a.jsx(ae,{side:"bottom",children:"Open in new tab"}),e[28]=I):I=e[28];let j;e[29]!==C?(j=a.jsxs(oe,{children:[C,I]}),e[29]=C,e[30]=j):j=e[30];let F;return e[31]!==j||e[32]!==c||e[33]!==u||e[34]!==f||e[35]!==v||e[36]!==x||e[37]!==k||e[38]!==i?(F=a.jsxs("div",{className:"flex h-9 shrink-0 items-center gap-1 border-b border-border/60 px-2",children:[c,u,f,v,x,k,j,i]}),e[31]=j,e[32]=c,e[33]=u,e[34]=f,e[35]=v,e[36]=x,e[37]=k,e[38]=i,e[39]=F):F=e[39],F}const we=1;function Cr(t){if(typeof t!="object"||t===null||t.v!==we||t.source!=="deck-viewer")return null;const e=t;return e.type==="ready"||e.type==="state"||e.type==="op"&&typeof e.opId=="string"&&e.op?e:null}class ue extends Error{constructor(e,n){super(e),this.code=n,this.name="DeckOpError"}code}function Yt(t){return[...t.children].filter(e=>!/^(TEMPLATE|SCRIPT|STYLE)$/.test(e.tagName))}function Er(t){const n=new DOMParser().parseFromString(t,"text/html").querySelector("deck-viewer");return n?Yt(n).length:null}function Nr(t,e){const n=new DOMParser().parseFromString(t,"text/html"),r=n.querySelector("deck-viewer");if(!r)throw new ue("no <deck-viewer> element in source","no-viewer");const s=Yt(r),i=e.kind==="move"?e.from:e.at,o=s[i];if(!o)throw new ue(`slide index ${i} out of range (${s.length})`,"stale-index");switch(e.kind){case"remove":{if(s.length<=1)throw new ue("cannot remove the last slide","bad-op");o.remove();break}case"duplicate":{const c=o.cloneNode(!0);c.removeAttribute("id");for(const d of c.querySelectorAll("[id]"))d.removeAttribute("id");o.after(c);break}case"move":{if(e.to<0||e.to>=s.length)throw new ue(`move target ${e.to} out of range`,"stale-index");if(e.to!==e.from){const c=e.to<e.from?s[e.to]:s[e.to].nextSibling;r.insertBefore(o,c)}break}case"set-attr":{if(!/^[a-zA-Z][\w-]*$/.test(e.name))throw new ue(`invalid attribute name: ${e.name}`,"bad-op");o.setAttribute(e.name,e.value);break}case"remove-attr":{o.removeAttribute(e.name);break}case"replace":{const d=new DOMParser().parseFromString(e.html,"text/html").body.firstElementChild;if(!d)throw new ue("replace html has no root element","bad-op");o.replaceWith(n.importNode(d,!0));break}default:throw new ue(`unknown op kind: ${e.kind}`,"bad-op")}return`${t.trimStart().toLowerCase().startsWith("<!doctype")?`<!DOCTYPE html>
|
|
4
4
|
`:""}${n.documentElement.outerHTML}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,r as y,l as j,j as f}from"./index-
|
|
1
|
+
import{c as h,r as y,l as j,j as f}from"./index-5MyNR89x.js";import{a5 as A}from"./agent-icon-CCm6veEh.js";import{s as N}from"./Plus-hFZ_SbzL.js";import{s as _}from"./Trash01-CGEeRKCz.js";const S=700;function R(r,e,o){const t=h.c(7),s=S,[n,c]=y.useState(r),[l,u]=y.useState(r),[x,p]=y.useState(!1),i=y.useRef(null);r!==l&&(u(r),x||c(r));let a;t[0]!==s||t[1]!==e?(a=g=>{c(g),p(!0),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,p(!1),e(g)},s)},t[0]=s,t[1]=e,t[2]=a):a=t[2];const d=a;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=g=>{c(g),i.current&&clearTimeout(i.current),i.current=null,p(!1)},t[3]=m):m=t[3];const v=m;let b;return t[4]!==n||t[5]!==d?(b=[n,d,v],t[4]=n,t[5]=d,t[6]=b):b=t[6],b}function T(r){const e=h.c(14),{value:o,onChange:t,placeholder:s,className:n,onFocus:c,onBlur:l,onKeyDown:u,spellCheck:x,inputRef:p}=r,i=x===void 0?!0:x;let a;e[0]!==t?(a=v=>t(v.target.value),e[0]=t,e[1]=a):a=e[1];let d;e[2]!==n?(d=j("w-full resize-none border-0 bg-transparent p-0 outline-none [field-sizing:content] placeholder:text-muted-foreground/50 focus:ring-0",n),e[2]=n,e[3]=d):d=e[3];let m;return e[4]!==p||e[5]!==l||e[6]!==c||e[7]!==u||e[8]!==s||e[9]!==i||e[10]!==a||e[11]!==d||e[12]!==o?(m=f.jsx("textarea",{ref:p,value:o,onChange:a,onInput:w,onFocus:c,onBlur:l,onKeyDown:u,placeholder:s,spellCheck:i,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=c,e[7]=u,e[8]=s,e[9]=i,e[10]=a,e[11]=d,e[12]=o,e[13]=m):m=e[13],m}function w(r){const e=r.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function D(r){return typeof r=="string"?r:""}function B(r){const e=h.c(11);let o,t;e[0]!==r?({className:o,...t}=r,e[0]=r,e[1]=o,e[2]=t):(o=e[1],t=e[2]);let s;e[3]!==o?(s=j(o,"pr-9"),e[3]=o,e[4]=s):s=e[4];let n;e[5]!==t||e[6]!==s?(n=f.jsx(T,{...t,className:s}),e[5]=t,e[6]=s,e[7]=n):n=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=f.jsx(A,{size:18,"aria-hidden":!0,className:"pointer-events-none absolute right-2 top-3 text-muted-foreground/40 transition-opacity group-hover/editable:text-muted-foreground group-focus-within/editable:text-muted-foreground"}),e[8]=c):c=e[8];let l;return e[9]!==n?(l=f.jsxs("div",{className:"group/editable relative -mx-2 rounded-md px-2 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",children:[n,c]}),e[9]=n,e[10]=l):l=e[10],l}function F(r){const e=h.c(5),{label:o,onClick:t,disabled:s}=r;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=f.jsx(N,{size:13}),e[0]=n):n=e[0];let c;return e[1]!==s||e[2]!==o||e[3]!==t?(c=f.jsxs("button",{type:"button",onClick:t,disabled:s,className:"flex items-center gap-1.5 rounded-md border border-dashed px-2.5 py-1.5 text-xs text-muted-foreground transition-colors hover:border-foreground/30 hover:text-foreground disabled:opacity-40 disabled:hover:border-dashed disabled:hover:text-muted-foreground cursor-pointer",children:[n,o]}),e[1]=s,e[2]=o,e[3]=t,e[4]=c):c=e[4],c}function I(r){const e=h.c(4),{label:o,onClick:t}=r;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=f.jsx(_,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==o||e[2]!==t?(n=f.jsx("button",{type:"button","aria-label":o,onClick:t,className:"flex h-6 w-6 shrink-0 items-center justify-center rounded text-muted-foreground/60 opacity-0 transition-opacity hover:text-destructive group-hover/item:opacity-100 cursor-pointer",children:s}),e[1]=o,e[2]=t,e[3]=n):n=e[3],n}function J(r){const e=h.c(2),{children:o}=r;let t;return e[0]!==o?(t=f.jsx("div",{className:"absolute -top-9 left-0 z-10 flex items-center gap-0.5 rounded-md border bg-popover p-0.5 shadow-md",children:o}),e[0]=o,e[1]=t):t=e[1],t}function O(r){const e=h.c(8),{active:o,label:t,onClick:s,children:n}=r,c=o?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==c?(l=j("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",c),e[0]=c,e[1]=l):l=e[1];let u;return e[2]!==o||e[3]!==n||e[4]!==t||e[5]!==s||e[6]!==l?(u=f.jsx("button",{type:"button","aria-label":t,"aria-pressed":o,onMouseDown:$,onClick:s,className:l,children:n}),e[2]=o,e[3]=n,e[4]=t,e[5]=s,e[6]=l,e[7]=u):u=e[7],u}function $(r){return r.preventDefault()}function H(r){if(Array.isArray(r))return r;if(typeof r!="string"||r.trim()==="")return[];try{const e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}export{F as A,B as E,J as F,T as I,I as R,O as T,H as p,D as s,R as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as V,j as t,a as D,p as R,af as q,J as B,v as N,t as T}from"./index-
|
|
1
|
+
import{c as V,j as t,a as D,p as R,af as q,J as B,v as N,t as T}from"./index-5MyNR89x.js";import{P as L}from"./index-CshxsRNd.js";import{A as U}from"./avatar-Jhd31ejW.js";import{S as I}from"./switch-DLNzAYS1.js";import{d as G,b as Y,a as $,S as J}from"./select-CZgnwyj0.js";import{T as K,a as z}from"./toggle-group-CndOAl-N.js";import{I as O}from"./input-D9aeO8wK.js";import{i as H}from"./Monitor01-BFD-ivVa.js";import{n as M,a as Q}from"./Sun-B0JI-Irq.js";import{i as W}from"./Play-CiiKZLoa.js";import{u as X}from"./use-debounced-autosave-mA5Fw-09.js";import{p as Z,q as ee}from"./question-004-sINsf4GQ.js";import"./index-5XIJtJJp.js";import{c as te,b as A,S as E,a as F}from"./settings-section-Br7JxQz6.js";import"./sidebar-oYab2QX7.js";import"./LayoutLeft-DiQ60pSu.js";import"./use-mobile-lIIxFH5C.js";import"./sheet-M6dgbK60.js";import"./X-DlUiLOPC.js";import"./tooltip-DvT2WKW9.js";import"./User01-Co_ACiCO.js";import"./ChevronUp-CtzC0jb0.js";import"./ChevronDown-BzkFMF52.js";import"./card-D3bKVB8y.js";import"./ArrowUpRight-n7J2ORua.js";function se(){const e=V.c(19),{data:s,isPending:o}=D.useSession(),g=s?.user,p=g?.image,h=g?.name??"";let S;e[0]!==h?(S={values:{name:h}},e[0]=h,e[1]=S):S=e[1];const n=R(S);let _;e[2]!==n?(_={save:async()=>{const v=n.control._formState.dirtyFields;if(Object.keys(v).length===0)return;const a=n.getValues(),f=n.control._defaultValues;n.reset(a,{keepValues:!0});try{await D.updateUser({name:a.name}),N("profile_updated",{fields:["name"]}),T.success("Profile updated successfully")}catch{n.reset(f,{keepValues:!0}),T.error("Failed to update profile")}}},e[2]=n,e[3]=_):_=e[3];const{schedule:x,flush:m}=X(_);if(o)return null;const j=g?.name??"U";let i;e[4]!==j||e[5]!==p?(i=t.jsx(A,{title:"Avatar",action:t.jsx(U,{url:p,fallback:j,shape:"circle",size:"base"})}),e[4]=j,e[5]=p,e[6]=i):i=e[6];let l;e[7]!==m||e[8]!==x?(l=v=>{const{field:a}=v;return t.jsx(O,{id:"display-name",...a,onChange:f=>{a.onChange(f),x()},onBlur:()=>{a.onBlur(),m()},onKeyDown:f=>{f.key==="Enter"&&m()},placeholder:"Your name",className:"w-[280px]"})},e[7]=m,e[8]=x,e[9]=l):l=e[9];let d;e[10]!==n.control||e[11]!==l?(d=t.jsx(A,{title:"Display name",action:t.jsx(q,{control:n.control,name:"name",render:l})}),e[10]=n.control,e[11]=l,e[12]=d):d=e[12];const b=g?.email;let r;e[13]!==b?(r=t.jsx(A,{title:"Email",action:t.jsx("span",{className:"text-sm text-muted-foreground",children:b})}),e[13]=b,e[14]=r):r=e[14];let u;return e[15]!==i||e[16]!==d||e[17]!==r?(u=t.jsx(E,{children:t.jsxs(F,{children:[i,d,r]})}),e[15]=i,e[16]=d,e[17]=r,e[18]=u):u=e[18],u}function oe(){const e=V.c(48),[s,o]=B();let g;e[0]!==o?(g=async c=>{if(c&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),T.error("Notifications denied. Please enable them in your browser settings."),o(re);return}N("preferences_notifications_toggled",{enabled:c}),o(y=>({...y,enableNotifications:c}))},e[0]=o,e[1]=g):g=e[1];const p=g;let h;e[2]!==o?(h=c=>{c&&(N("preferences_theme_changed",{to_value:c}),o(y=>({...y,theme:c})))},e[2]=o,e[3]=h):h=e[3];let S;e[4]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(z,{value:"light","aria-label":"Light theme",children:t.jsx(M,{size:14})}),e[4]=S):S=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(z,{value:"dark","aria-label":"Dark theme",children:t.jsx(Q,{size:14})}),e[5]=n):n=e[5];let _;e[6]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx(z,{value:"system","aria-label":"System theme",children:t.jsx(H,{size:14})}),e[6]=_):_=e[6];let x;e[7]!==s.theme||e[8]!==h?(x=t.jsx(A,{title:"Theme",description:"Your preferred color scheme.",action:t.jsxs(K,{type:"single",size:"sm",variant:"outline",value:s.theme,onValueChange:h,children:[S,n,_]})}),e[7]=s.theme,e[8]=h,e[9]=x):x=e[9];let m;e[10]!==p||e[11]!==s.enableNotifications?(m=typeof Notification<"u"?()=>p(!s.enableNotifications):void 0,e[10]=p,e[11]=s.enableNotifications,e[12]=m):m=e[12];let j;e[13]!==p||e[14]!==s.enableNotifications?(j=t.jsx(I,{disabled:typeof Notification>"u",checked:s.enableNotifications,onCheckedChange:p}),e[13]=p,e[14]=s.enableNotifications,e[15]=j):j=e[15];let i;e[16]!==m||e[17]!==j?(i=t.jsx(A,{title:"Notifications",description:"Receive browser notifications for important events.",onClick:m,action:j}),e[16]=m,e[17]=j,e[18]=i):i=e[18];let l;e[19]!==s.enableSounds||e[20]!==o?(l=()=>{N("preferences_sounds_toggled",{enabled:!s.enableSounds}),o(le)},e[19]=s.enableSounds,e[20]=o,e[21]=l):l=e[21];let d;e[22]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("button",{type:"button","aria-label":"Preview notification sound",onClick:ne,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:t.jsx(W,{size:11})}),e[22]=d):d=e[22];let b;e[23]!==o?(b=c=>{N("preferences_sounds_toggled",{enabled:c}),o(y=>({...y,enableSounds:c}))},e[23]=o,e[24]=b):b=e[24];let r;e[25]!==s.enableSounds||e[26]!==b?(r=t.jsxs("div",{className:"flex items-center gap-2",children:[d,t.jsx(I,{checked:s.enableSounds,onCheckedChange:b})]}),e[25]=s.enableSounds,e[26]=b,e[27]=r):r=e[27];let u;e[28]!==r||e[29]!==l?(u=t.jsx(A,{title:"Sounds",description:"Play sounds for agent actions and notifications.",onClick:l,action:r}),e[28]=r,e[29]=l,e[30]=u):u=e[30];let v;e[31]!==o?(v=c=>{N("preferences_tool_approval_changed",{to_value:c}),o(y=>({...y,toolApprovalLevel:c}))},e[31]=o,e[32]=v):v=e[32];let a;e[33]!==s.toolApprovalLevel?(a={readonly:"Ask before edit",auto:"Auto approve"}[s.toolApprovalLevel]??"Ask before edit",e[33]=s.toolApprovalLevel,e[34]=a):a=e[34];let f;e[35]!==a?(f=t.jsx(Y,{className:"w-36 h-7 text-xs",children:t.jsx("span",{children:a})}),e[35]=a,e[36]=f):f=e[36];let C;e[37]===Symbol.for("react.memo_cache_sentinel")?(C=t.jsx($,{value:"readonly",textValue:"Ask before edit",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Ask before edit"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[37]=C):C=e[37];let k;e[38]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsxs(J,{children:[C,t.jsx($,{value:"auto",textValue:"Auto approve",children:t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("span",{className:"font-medium",children:"Auto approve"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all without approval"})]})})]}),e[38]=k):k=e[38];let P;e[39]!==s.toolApprovalLevel||e[40]!==v||e[41]!==f?(P=t.jsx(A,{title:"Tool Approval",description:"Control how tools are approved before execution.",action:t.jsxs(G,{value:s.toolApprovalLevel,onValueChange:v,children:[f,k]})}),e[39]=s.toolApprovalLevel,e[40]=v,e[41]=f,e[42]=P):P=e[42];let w;return e[43]!==u||e[44]!==P||e[45]!==x||e[46]!==i?(w=t.jsx(E,{title:"Preferences",children:t.jsxs(F,{children:[x,i,u,P]})}),e[43]=u,e[44]=P,e[45]=x,e[46]=i,e[47]=w):w=e[47],w}function ne(){N("preferences_sounds_previewed"),Z(ee.dataUri).catch(ie)}function ie(){}function le(e){return{...e,enableSounds:!e.enableSounds}}function re(e){return{...e,enableNotifications:!1}}function ae(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(L,{children:t.jsx(L.Content,{children:t.jsx(L.Body,{children:t.jsxs(te,{children:[t.jsx(L.Title,{children:"Profile & Preferences"}),t.jsx(se,{}),t.jsx(oe,{})]})})})}),e[0]=s):s=e[0],s}function De(){const e=V.c(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(ae,{}),e[0]=s):s=e[0],s}export{De as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as $,D as H,j as A}from"./index-5MyNR89x.js";import{l as L,g as E,s as y}from"./scroll-area-DLqMfi_N.js";import{p as O,u as k}from"./use-mcp-client-CherrXvD.js";import{b as q,c as B}from"./use-mcp-tools-w6KwNDra.js";import{u as Y}from"./index-BWMRVcd2.js";import{c as G}from"./content-blocks-o63cs2vh.js";import{g as K,M as V,a as w}from"./types-U3TqUYrY.js";import{u as z,b as F}from"./chat-context-B5uEh4ay.js";import{b as J}from"./shell-layout-CnTaR8UN.js";import"./agent-icon-CCm6veEh.js";import"./AlertCircle-B4WPpzHx.js";import"./Tool01-DFCFgRlB.js";import"./SwitchHorizontal01-BcqnyefE.js";import"./Settings02-CuT9JazG.js";import"./XCircle-BIxZfFEg.js";import"./ArrowUpRight-n7J2ORua.js";import"./ZapSquare-qeizwUPq.js";import"./Users03-DBa0-LbB.js";import"./CheckCircle-DGqDWZvl.js";import"./ChevronUp-CtzC0jb0.js";import"./ChevronDown-BzkFMF52.js";import"./ChevronLeft-B-p3uhTp.js";import"./ChevronRight-BhZIqa2P.js";import"./DotsVertical-DskMPw9G.js";import"./Stars02-Call5O4Q.js";import"./Eye-Bkw15G1G.js";import"./ZoomOut-fkR_2hFy.js";import"./Globe01-CIvUZBh0.js";import"./FilterLines-CTiCp3St.js";import"./Star01-BMttIRxb.js";import"./Globe04-By_qGXm-.js";import"./HardDrive-Da-ea-EW.js";import"./Key01-DugFMT5_.js";import"./LayoutLeft-DiQ60pSu.js";import"./LinkExternal01-BMDEbMBF.js";import"./Monitor01-BFD-ivVa.js";import"./Sun-B0JI-Irq.js";import"./Palette-DrmZY9bB.js";import"./Play-CiiKZLoa.js";import"./Plus-hFZ_SbzL.js";import"./SearchLg-D4Hs4YLQ.js";import"./SearchMd-RBoojwOu.js";import"./Shield01-D5Fc_Ylv.js";import"./Stars01-HANlppqn.js";import"./Trash01-CGEeRKCz.js";import"./Upload01-V0qkIpRk.js";import"./User01-Co_ACiCO.js";import"./Users01-B-VpMOmx.js";import"./XClose-CEJj7vhn.js";import"./X-DlUiLOPC.js";import"./Zap-USVmT42t.js";import"./use-clock-tick-CJO5qoT7.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WaepYGtr.js";import"./tooltip-DvT2WKW9.js";import"./file-type-icon-W_AZRfzL.js";import"./dialog-B2cGEuOv.js";import"./use-mobile-lIIxFH5C.js";import"./tab-id-BptcWVWa.js";import"./hooks-DgSrpwcx.js";import"./decopilot-sse-pool-DoJkdYBA.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./studio-tools-4NjxmaVZ.js";import"./sheet-M6dgbK60.js";import"./integration-icon-CMGCCNyJ.js";import"./use-virtual-mcp-C5pbd140.js";import"./use-collections-DAKL2YGx.js";import"./use-navigate-to-agent-BtVHPn7N.js";import"./use-connection-BvgL1-Da.js";import"./use-mcp-prompts-BnOdccbh.js";import"./form-DI8q6OtF.js";import"./label-Bj7qsNrz.js";import"./input-D9aeO8wK.js";import"./select-CZgnwyj0.js";import"./auth-CNqDC7uO.js";import"./index-BFW_K0gJ.js";import"./drawer-Tv6bcT7w.js";import"./collection-search-CN9TCItb.js";import"./tabs-8VxbUDVb.js";import"./toggle-group-CndOAl-N.js";import"./sortable.esm-D8GIYMew.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BswtsnGE.js";import"./use-registry-connections-C_VqH6te.js";import"./use-organization-settings-CZfEdu0P.js";import"./useInfiniteQuery-_sl5B1oR.js";import"./use-infinite-scroll-4tV6tFjB.js";import"./extract-connection-data-CxK1dunT.js";import"./card-D3bKVB8y.js";import"./collection-tabs-D5o6VjHd.js";import"./badge-cxwmW2xd.js";import"./textarea-Bwn2Wdf8.js";import"./connection-form-helpers-JfkHcTGO.js";import"./authenticate-and-persist-oauth-Dy2XeMqO.js";import"./mcp-oauth-DEfvhjPc.js";import"./useSuspenseInfiniteQuery-_eC9d3ii.js";import"./use-ai-providers-D4m0Vu5Q.js";import"./connect-desktop-dialog-DchtPbuP.js";import"./decopilot-CfDwLIyX.js";import"./checkbox-PMXW46HN.js";import"./skeleton-DoPnd-4p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Jhd31ejW.js";import"./settings-section-Br7JxQz6.js";import"./popover-DowpnV25.js";import"./command-D-t5bmXW.js";import"./index-BD4HYlEX.js";import"./use-org-fs-D-40uH2W.js";import"./dropdown-menu-Dw-pnYXI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CWHPQWBO.js";import"./use-decopilot-events-BDkaUhLT.js";import"./empty-state-D7nJB9UW.js";import"./toolbar-ClL4Dhs_.js";import"./preview-dialog-CwTtT7qa.js";import"./index-BgPTCVWL.js";import"./use-capability-CQPMPR-5.js";import"./shell-route-loading-DFu6UBUI.js";import"./tools-list-DL7ip2gg.js";import"./alert-dialog-BZ8TrIVu.js";import"./switch-DLNzAYS1.js";import"./use-debounced-autosave-mA5Fw-09.js";import"./index-CshxsRNd.js";import"./sidebar-oYab2QX7.js";import"./search-input-BXzntIcj.js";import"./github-repo-picker-M1TBbLot.js";import"./use-debounced-value-cQ7ZQKtl.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-Dn4coT0R.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-CXnAhWiY.js";import"./table-B06cGuvx.js";import"./use-members-ge80zFlj.js";import"./use-org-auth-client-Ctxe3HXF.js";import"./task-status-Cm29b2AK.js";import"./use-automations-ChKoVegP.js";import"./use-file-configs-Dfeoim5G.js";import"./monaco-editor-B3KzPr3D.js";import"./select-model-BLeb_gwV.js";import"./automation-list-row-DO51bU3z.js";import"./required-auth-layout-CZqB7vUr.js";import"./use-org-sso-BxzKK5rO.js";const Q={};function W(S){const t=$.c(37),{client:r,resourceURI:h,tool:o,connectionId:p,orgId:l,args:M}=S,{sendMessage:I}=z(),{setAppContext:u,clearAppContext:n}=F(),{setChatOpen:f,openTab:g}=J(),e=`${p}:${o.name}`;let a;t[0]!==g?(a=C=>C==="inline"?(g("0"),"inline"):"fullscreen",t[0]=g,t[1]=a):a=t[1];const m=a,s=M??Q;let c;t[2]!==r||t[3]!==o.name||t[4]!==s?(c={client:r,toolName:o.name,toolArguments:s},t[2]=r,t[3]=o.name,t[4]=s,t[5]=c):c=t[5];const{data:i}=B(c);let x;if(t[6]!==o._meta||t[7]!==o.name){const C=E(o._meta);x=y(o.name,C),t[6]=o._meta,t[7]=o.name,t[8]=x}else x=t[8];const U=x;let d;t[9]!==o.inputSchema?(d=o.inputSchema??{type:"object"},t[9]=o.inputSchema,t[10]=d):d=t[10];let N;t[11]!==U||t[12]!==d||t[13]!==o?(N={...o,name:U,inputSchema:d},t[11]=U,t[12]=d,t[13]=o,t[14]=N):N=t[14];const b=N;let _;t[15]!==I||t[16]!==f?(_=C=>{const D=G(C.content);D.content.length>0&&(f(!0),I({tiptapDoc:D}))},t[15]=I,t[16]=f,t[17]=_):_=t[17];const j=_;let P;t[18]!==b?(P={tool:b},t[18]=b,t[19]=P):P=t[19];let T;t[20]!==u||t[21]!==e?(T=C=>u(e,C),t[20]=u,t[21]=e,t[22]=T):T=t[22];let R;t[23]!==n||t[24]!==e?(R=()=>n(e),t[23]=n,t[24]=e,t[25]=R):R=t[25];let v;return t[26]!==r||t[27]!==j||t[28]!==m||t[29]!==l||t[30]!==h||t[31]!==P||t[32]!==T||t[33]!==R||t[34]!==s||t[35]!==i?(v=A.jsx(V,{resourceURI:h,orgId:l,toolInfo:P,toolInput:s,toolResult:i,displayMode:"fullscreen",minHeight:w.fullscreen.minHeight,maxHeight:w.fullscreen.maxHeight,client:r,onMessage:j,onUpdateModelContext:T,onTeardown:R,onRequestDisplayMode:m,className:"h-full"}),t[26]=r,t[27]=j,t[28]=m,t[29]=l,t[30]=h,t[31]=P,t[32]=T,t[33]=R,t[34]=s,t[35]=i,t[36]=v):v=t[36],v}function we(S){const t=$.c(24),{connectionId:r,toolName:h,args:o}=S,{org:p}=H(),l=Y();let M;t[0]!==r||t[1]!==l?(M=O(r)&&l.vmEntry?.sandboxProviderKind==="user-desktop"&&l.previewUrl?`${l.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,t[0]=r,t[1]=l,t[2]=M):M=t[2];const I=M;let u;t[3]!==r||t[4]!==I||t[5]!==p.id||t[6]!==p.slug?(u={connectionId:r,orgId:p.id,orgSlug:p.slug,mcpUrl:I},t[3]=r,t[4]=I,t[5]=p.id,t[6]=p.slug,t[7]=u):u=t[7];const n=k(u);let f;t[8]!==n?(f={client:n},t[8]=n,t[9]=f):f=t[9];const{data:g}=q(f);let e,a,m;t[10]!==h||t[11]!==g.tools?(e=L(decodeURIComponent(h)),m=g.tools.find(i=>i.name===e)??g.tools.find(i=>{const x=E(i._meta);if(!x)return!1;if(y(i.name,x)===e)return!0;const d=y(e,x);return d!==e&&i.name===d}),a=m?._meta?K(m._meta):void 0,t[10]=h,t[11]=g.tools,t[12]=e,t[13]=a,t[14]=m):(e=t[12],a=t[13],m=t[14]);const s=a;if(!m||!s){let i;return t[15]!==e?(i=A.jsx("div",{className:"flex items-center justify-center h-full w-full",children:A.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',e,'" not found or has no UI']})}),t[15]=e,t[16]=i):i=t[16],i}let c;return t[17]!==o||t[18]!==n||t[19]!==r||t[20]!==p.id||t[21]!==s||t[22]!==m?(c=A.jsx(W,{client:n,resourceURI:s,tool:m,connectionId:r,orgId:p.id,args:o}),t[17]=o,t[18]=n,t[19]=r,t[20]=p.id,t[21]=s,t[22]=m,t[23]=c):c=t[23],c}export{we as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as S,j as r}from"./index-5MyNR89x.js";import{I as T}from"./input-D9aeO8wK.js";import{L as C}from"./label-Bj7qsNrz.js";import{T as L}from"./textarea-Bwn2Wdf8.js";import{au as A,av as R,at as D,aw as J,ax as K}from"./index-BWMRVcd2.js";import{u as M,s as P}from"./primitives-CAIbeS4G.js";import"./index-BFW_K0gJ.js";import"./SwitchHorizontal01-BcqnyefE.js";import"./chat-context-B5uEh4ay.js";import"./hooks-DgSrpwcx.js";import"./use-mcp-client-CherrXvD.js";import"./auth-CNqDC7uO.js";import"./decopilot-sse-pool-DoJkdYBA.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-C5pbd140.js";import"./use-collections-DAKL2YGx.js";import"./use-ai-providers-D4m0Vu5Q.js";import"./studio-tools-4NjxmaVZ.js";import"./use-decopilot-events-BDkaUhLT.js";import"./tab-id-BptcWVWa.js";import"./use-organization-settings-CZfEdu0P.js";import"./scroll-area-DLqMfi_N.js";import"./agent-icon-CCm6veEh.js";import"./AlertCircle-B4WPpzHx.js";import"./Tool01-DFCFgRlB.js";import"./Settings02-CuT9JazG.js";import"./XCircle-BIxZfFEg.js";import"./ArrowUpRight-n7J2ORua.js";import"./ZapSquare-qeizwUPq.js";import"./Users03-DBa0-LbB.js";import"./CheckCircle-DGqDWZvl.js";import"./ChevronUp-CtzC0jb0.js";import"./ChevronDown-BzkFMF52.js";import"./ChevronLeft-B-p3uhTp.js";import"./ChevronRight-BhZIqa2P.js";import"./DotsVertical-DskMPw9G.js";import"./Stars02-Call5O4Q.js";import"./Eye-Bkw15G1G.js";import"./ZoomOut-fkR_2hFy.js";import"./Globe01-CIvUZBh0.js";import"./FilterLines-CTiCp3St.js";import"./Star01-BMttIRxb.js";import"./Globe04-By_qGXm-.js";import"./HardDrive-Da-ea-EW.js";import"./Key01-DugFMT5_.js";import"./LayoutLeft-DiQ60pSu.js";import"./LinkExternal01-BMDEbMBF.js";import"./Monitor01-BFD-ivVa.js";import"./Sun-B0JI-Irq.js";import"./Palette-DrmZY9bB.js";import"./Play-CiiKZLoa.js";import"./Plus-hFZ_SbzL.js";import"./SearchLg-D4Hs4YLQ.js";import"./SearchMd-RBoojwOu.js";import"./Shield01-D5Fc_Ylv.js";import"./Stars01-HANlppqn.js";import"./Trash01-CGEeRKCz.js";import"./Upload01-V0qkIpRk.js";import"./User01-Co_ACiCO.js";import"./Users01-B-VpMOmx.js";import"./XClose-CEJj7vhn.js";import"./X-DlUiLOPC.js";import"./Zap-USVmT42t.js";import"./use-clock-tick-CJO5qoT7.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-WaepYGtr.js";import"./tooltip-DvT2WKW9.js";import"./file-type-icon-W_AZRfzL.js";import"./dialog-B2cGEuOv.js";import"./use-mobile-lIIxFH5C.js";import"./content-blocks-o63cs2vh.js";import"./types-U3TqUYrY.js";import"./shell-layout-CnTaR8UN.js";import"./avatar-Jhd31ejW.js";import"./required-auth-layout-CZqB7vUr.js";import"./use-org-sso-BxzKK5rO.js";import"./sheet-M6dgbK60.js";import"./integration-icon-CMGCCNyJ.js";import"./use-navigate-to-agent-BtVHPn7N.js";import"./use-connection-BvgL1-Da.js";import"./use-mcp-prompts-BnOdccbh.js";import"./form-DI8q6OtF.js";import"./select-CZgnwyj0.js";import"./drawer-Tv6bcT7w.js";import"./collection-search-CN9TCItb.js";import"./tabs-8VxbUDVb.js";import"./toggle-group-CndOAl-N.js";import"./sortable.esm-D8GIYMew.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BswtsnGE.js";import"./use-registry-connections-C_VqH6te.js";import"./useInfiniteQuery-_sl5B1oR.js";import"./use-infinite-scroll-4tV6tFjB.js";import"./extract-connection-data-CxK1dunT.js";import"./card-D3bKVB8y.js";import"./collection-tabs-D5o6VjHd.js";import"./badge-cxwmW2xd.js";import"./connection-form-helpers-JfkHcTGO.js";import"./authenticate-and-persist-oauth-Dy2XeMqO.js";import"./mcp-oauth-DEfvhjPc.js";import"./useSuspenseInfiniteQuery-_eC9d3ii.js";import"./connect-desktop-dialog-DchtPbuP.js";import"./decopilot-CfDwLIyX.js";import"./checkbox-PMXW46HN.js";import"./skeleton-DoPnd-4p.js";import"./ai-providers-logos-DD3qZ33J.js";import"./settings-section-Br7JxQz6.js";import"./popover-DowpnV25.js";import"./command-D-t5bmXW.js";import"./index-BD4HYlEX.js";import"./use-org-fs-D-40uH2W.js";import"./dropdown-menu-Dw-pnYXI.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CWHPQWBO.js";import"./empty-state-D7nJB9UW.js";import"./toolbar-ClL4Dhs_.js";import"./preview-dialog-CwTtT7qa.js";import"./index-BgPTCVWL.js";import"./use-mcp-tools-w6KwNDra.js";import"./use-capability-CQPMPR-5.js";import"./shell-route-loading-DFu6UBUI.js";import"./tools-list-DL7ip2gg.js";import"./alert-dialog-BZ8TrIVu.js";import"./switch-DLNzAYS1.js";import"./use-debounced-autosave-mA5Fw-09.js";import"./index-CshxsRNd.js";import"./sidebar-oYab2QX7.js";import"./search-input-BXzntIcj.js";import"./github-repo-picker-M1TBbLot.js";import"./use-debounced-value-cQ7ZQKtl.js";import"./github-installations-DzN1UQ4x.js";import"./use-secrets-Dn4coT0R.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./automation-runs-CXnAhWiY.js";import"./table-B06cGuvx.js";import"./use-members-ge80zFlj.js";import"./use-org-auth-client-Ctxe3HXF.js";import"./task-status-Cm29b2AK.js";import"./use-automations-ChKoVegP.js";import"./use-file-configs-Dfeoim5G.js";import"./monaco-editor-B3KzPr3D.js";import"./select-model-BLeb_gwV.js";import"./automation-list-row-DO51bU3z.js";const $={authors:[{key:"name",label:"Name",widget:"text"},{key:"email",label:"Email",widget:"text",placeholder:"author@example.com"},{key:"jobTitle",label:"Job title",widget:"text"},{key:"company",label:"Company",widget:"text"},{key:"avatar",label:"Avatar",widget:"image"}]},q={authors:"Author"};function Nr(B){const t=S.c(34),{orgSlug:v,virtualMcpId:j,branch:w,kind:p,blockKey:g,block:f}=B;let y;t[0]!==w||t[1]!==v||t[2]!==j?(y={orgSlug:v,virtualMcpId:j,branch:w},t[0]=w,t[1]=v,t[2]=j,t[3]=y):y=t[3];const m=A(y);let d;t[4]!==f||t[5]!==p?(d=R(f,p),t[4]=f,t[5]=p,t[6]=d):d=t[6];const F=d;let h;t[7]!==g||t[8]!==p||t[9]!==m?(h=e=>{m.mutate({blockKey:g,data:J(g,p,e)})},t[7]=g,t[8]=p,t[9]=m,t[10]=h):h=t[10];const[i,E]=M(F,h);let k;t[11]!==i||t[12]!==E?(k=(e,o)=>E({...i,[e]:o}),t[11]=i,t[12]=E,t[13]=k):k=t[13];const a=k,N=q[p];let s;t[14]!==N?(s=r.jsx("span",{className:"text-sm font-medium",children:N}),t[14]=N,t[15]=s):s=t[15];let l;t[16]!==m.isError||t[17]!==m.isPending?(l=r.jsx(D,{isPending:m.isPending,isError:m.isError}),t[16]=m.isError,t[17]=m.isPending,t[18]=l):l=t[18];let n;t[19]!==s||t[20]!==l?(n=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[s,l]}),t[19]=s,t[20]=l,t[21]=n):n=t[21];const I=$[p];let c;if(t[22]!==i||t[23]!==a||t[24]!==I){let e;t[26]!==i||t[27]!==a?(e=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(K,{schema:{type:"string",format:"image-uri",title:o.label},value:i[o.key],onChange:u=>a(o.key,u),path:o.key,label:o.label}):r.jsxs(r.Fragment,{children:[r.jsx(C,{htmlFor:o.key,children:o.label}),o.widget==="textarea"?r.jsx(L,{id:o.key,value:P(i[o.key]),onChange:u=>a(o.key,u.target.value),rows:3}):r.jsx(T,{id:o.key,value:P(i[o.key]),placeholder:o.placeholder,onChange:u=>a(o.key,u.target.value),className:"h-10"})]})},o.key),t[26]=i,t[27]=a,t[28]=e):e=t[28],c=I.map(e),t[22]=i,t[23]=a,t[24]=I,t[25]=c}else c=t[25];let x;t[29]!==c?(x=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:c})}),t[29]=c,t[30]=x):x=t[30];let b;return t[31]!==x||t[32]!==n?(b=r.jsxs("div",{className:"flex h-full flex-col",children:[n,x]}),t[31]=x,t[32]=n,t[33]=b):b=t[33],b}export{Nr as RecordEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-CRS0SBoX.js","assets/index-5MyNR89x.js","assets/index-BqKQnks_.css","assets/XCircle-BIxZfFEg.js","assets/CheckCircle-DGqDWZvl.js","assets/Settings02-CuT9JazG.js","assets/use-mcp-client-CherrXvD.js","assets/auth-CNqDC7uO.js","assets/useInfiniteQuery-_sl5B1oR.js","assets/use-infinite-scroll-4tV6tFjB.js","assets/studio-tools-4NjxmaVZ.js","assets/badge-cxwmW2xd.js","assets/input-D9aeO8wK.js","assets/dropdown-menu-Dw-pnYXI.js","assets/ChevronUp-CtzC0jb0.js","assets/ChevronRight-BhZIqa2P.js","assets/DotsVertical-DskMPw9G.js","assets/table-B06cGuvx.js","assets/toggle-group-CndOAl-N.js","assets/use-view-mode--ERDyrf1.js","assets/use-mobile-lIIxFH5C.js","assets/FilterLines-CTiCp3St.js","assets/Globe01-CIvUZBh0.js","assets/SearchMd-RBoojwOu.js","assets/dialog-B2cGEuOv.js","assets/X-DlUiLOPC.js","assets/AlertCircle-B4WPpzHx.js","assets/Upload01-V0qkIpRk.js","assets/alert-dialog-BZ8TrIVu.js","assets/card-D3bKVB8y.js","assets/Trash01-CGEeRKCz.js","assets/label-Bj7qsNrz.js","assets/select-CZgnwyj0.js","assets/tooltip-DvT2WKW9.js","assets/ChevronDown-BzkFMF52.js","assets/switch-DLNzAYS1.js","assets/textarea-Bwn2Wdf8.js","assets/checkbox-PMXW46HN.js","assets/Eye-Bkw15G1G.js","assets/LinkExternal01-BMDEbMBF.js","assets/use-copy-WaepYGtr.js","assets/Key01-DugFMT5_.js","assets/Plus-hFZ_SbzL.js","assets/mcp-oauth-DEfvhjPc.js","assets/Play-CiiKZLoa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as s,j as e,r as i,i as a,am as o}from"./index-5MyNR89x.js";import{R as m}from"./require-capability-BclGG3Lq.js";import"./use-capability-CQPMPR-5.js";import"./access-gate-Dob1Rc1a.js";import"./capability-load-error-C00HLz2q.js";const n=i.lazy(()=>o(()=>import("./registry-layout-CRS0SBoX.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,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44])));function f(){const r=s.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(m,{capability:"registry:manage",area:"the registry",children:e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{size:20,className:"animate-spin text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{f as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,bf as qs,bg as Bs}from"./index-
|
|
1
|
+
import{c as W,D as fe,k as Re,m as Te,d as be,t as Q,r as T,j as t,B as V,i as Fe,l as Z,bf as qs,bg as Bs}from"./index-5MyNR89x.js";import{c as Jt,b as Qs,d as ds,i as Vs,a as Gs,t as Ks,f as Ys,n as Hs,e as Ws}from"./XCircle-BIxZfFEg.js";import{i as qe}from"./CheckCircle-DGqDWZvl.js";import{s as Mt,c as Js,b as Zs,i as Xs,a as er}from"./Settings02-CuT9JazG.js";import{S as Me,u as Ie,W as tr}from"./use-mcp-client-CherrXvD.js";import{u as us}from"./useInfiniteQuery-_sl5B1oR.js";import{u as _e}from"./studio-tools-4NjxmaVZ.js";import{B as F}from"./badge-cxwmW2xd.js";import{I as ue}from"./input-D9aeO8wK.js";import{a as dt,c as Ne,D as ut,b as mt,h as Zt,k as Xt,g as sr}from"./dropdown-menu-Dw-pnYXI.js";import{c as Et,d as Dt,a as Be,e as ae,b as At,T as oe}from"./table-B06cGuvx.js";import{T as rr,a as es}from"./toggle-group-CndOAl-N.js";import{u as nr}from"./use-view-mode--ERDyrf1.js";import{i as $t}from"./DotsVertical-DskMPw9G.js";import{i as ir}from"./FilterLines-CTiCp3St.js";import{n as lr,i as ms}from"./Globe01-CIvUZBh0.js";import{i as ar}from"./SearchMd-RBoojwOu.js";import{c as xt,a as pt,b as ht,D as ft,d as gt,e as jt}from"./dialog-B2cGEuOv.js";import{i as Ye}from"./AlertCircle-B4WPpzHx.js";import{i as ts}from"./Upload01-V0qkIpRk.js";import{c as He,b as We,d as Je,A as Ze,g as Xe,e as et,a as tt,f as st}from"./alert-dialog-BZ8TrIVu.js";import{C as ne}from"./card-D3bKVB8y.js";import{s as rt}from"./Trash01-CGEeRKCz.js";import{L as te}from"./label-Bj7qsNrz.js";import{d as or,b as cr,c as dr,S as ur,a as St}from"./select-CZgnwyj0.js";import{S as ze}from"./switch-DLNzAYS1.js";import{T as vt}from"./textarea-Bwn2Wdf8.js";import{i as mr}from"./X-DlUiLOPC.js";import{t as xr}from"./ChevronDown-BzkFMF52.js";import{n as pr,i as Rt}from"./ChevronUp-CtzC0jb0.js";import{C as ss}from"./checkbox-PMXW46HN.js";import{s as xs,a as Tt}from"./Eye-Bkw15G1G.js";import{n as hr}from"./LinkExternal01-BMDEbMBF.js";import{u as fr}from"./use-infinite-scroll-4tV6tFjB.js";import{u as It}from"./use-copy-WaepYGtr.js";import{i as gr}from"./Key01-DugFMT5_.js";import{s as jr}from"./Plus-hFZ_SbzL.js";import{a as vr,b as br,T as yr}from"./tooltip-DvT2WKW9.js";import{i as Nr,a as wr}from"./mcp-oauth-DEfvhjPc.js";import{i as _r}from"./Play-CiiKZLoa.js";import"./auth-CNqDC7uO.js";import"./ChevronRight-BhZIqa2P.js";import"./use-mobile-lIIxFH5C.js";const Ue="private-registry",Cr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|
package/dist/client/assets/{require-capability--mIKExbX.js → require-capability-BclGG3Lq.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as p,j as m}from"./index-
|
|
1
|
+
import{c as p,j as m}from"./index-5MyNR89x.js";import{u as l}from"./use-capability-CQPMPR-5.js";import{A as u}from"./access-gate-Dob1Rc1a.js";function b(c){const t=p.c(6),{capability:n,area:e,children:i}=c,{granted:a,loading:o,error:s}=l(n);let r;return t[0]!==e||t[1]!==i||t[2]!==s||t[3]!==a||t[4]!==o?(r=m.jsx(u,{granted:a,loading:o,error:s,area:e,children:i}),t[0]=e,t[1]=i,t[2]=s,t[3]=a,t[4]=o,t[5]=r):r=t[5],r}export{b as R};
|
package/dist/client/assets/{required-auth-layout-DDJmFi3U.js → required-auth-layout-CZqB7vUr.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-
|
|
1
|
+
import{c as l,j as s,A as a,S as m,f as h,h as u,N as f}from"./index-5MyNR89x.js";function x(){const o=l.c(1),e=window.location.pathname+window.location.search;let t;if(o[0]===Symbol.for("react.memo_cache_sentinel")){const n=e==="/login"||e.startsWith("/login?")?{}:{next:e};t=s.jsx(f,{to:"/login",search:n,replace:!0}),o[0]=t}else t=o[0];return t}function g(o){const e=l.c(6),{children:t}=o;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(a,{children:s.jsx(m,{})}),e[0]=i):i=e[0];let n;e[1]!==t?(n=s.jsx(h,{children:t}),e[1]=t,e[2]=n):n=e[2];let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(u,{children:s.jsx(x,{})}),e[3]=r):r=e[3];let c;return e[4]!==n?(c=s.jsxs(s.Fragment,{children:[i,n,r]}),e[4]=n,e[5]=c):c=e[5],c}export{g as R};
|