decocms 4.263.0 → 4.263.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-d_jYW-pF.js → AlertCircle-BDusuqHR.js} +1 -1
- package/dist/client/assets/{AreaChart-6ExM5C57.js → AreaChart-D3QDeFur.js} +1 -1
- package/dist/client/assets/{ArrowLeft-B5SdDJS5.js → ArrowLeft-0tHCTq_5.js} +1 -1
- package/dist/client/assets/{ArrowUp-DmYjuyWi.js → ArrowUp-CEPWXS-3.js} +1 -1
- package/dist/client/assets/{Check-KqwAmcDj.js → Check-eRPNoavQ.js} +1 -1
- package/dist/client/assets/{CheckCircle-DuO-pGO-.js → CheckCircle-D5qJu1Fm.js} +1 -1
- package/dist/client/assets/{ChevronDown-BQZF9Af9.js → ChevronDown-B1IObYwx.js} +1 -1
- package/dist/client/assets/{ChevronRight-Bq8eLOWM.js → ChevronRight-DCgSscRL.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DrHEbUrw.js → ChevronSelectorVertical-B3t1cekd.js} +1 -1
- package/dist/client/assets/{ChevronUp-BnjYp300.js → ChevronUp-iWYokpT6.js} +1 -1
- package/dist/client/assets/{Copy01-DQMklNBZ.js → Copy01-DRSCHQwE.js} +1 -1
- package/dist/client/assets/{CreditCard01-ayJva4-L.js → CreditCard01-BSTb8Mc9.js} +1 -1
- package/dist/client/assets/{DotsVertical-DmFi_5m5.js → DotsVertical-4USgsJk6.js} +1 -1
- package/dist/client/assets/{Download01-BCA2ING7.js → Download01-BH3cjMrI.js} +1 -1
- package/dist/client/assets/{Eye-CRgVrt0h.js → Eye-CTLVmBpG.js} +1 -1
- package/dist/client/assets/{FilterLines-D6T5uoZ8.js → FilterLines-BsHaUIT2.js} +1 -1
- package/dist/client/assets/{Globe01-KXkuiG0o.js → Globe01-DklSBKay.js} +1 -1
- package/dist/client/assets/{Globe04-kFCzhDtq.js → Globe04-F8f-0PZt.js} +1 -1
- package/dist/client/assets/{HardDrive-IGVDCiH-.js → HardDrive-DjJMW3nS.js} +1 -1
- package/dist/client/assets/{Key01-zoXnVGpi.js → Key01-C1runo_O.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DY154voS.js → LinkExternal01-DYnPaZ3r.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-BUPOcE7Q.js → LockUnlocked01-DOMhyB5E.js} +1 -1
- package/dist/client/assets/{LogOut01-vFXcKA44.js → LogOut01-Ah-KAndl.js} +1 -1
- package/dist/client/assets/{Monitor01-IMrl8-Sz.js → Monitor01-DQPfjm9A.js} +1 -1
- package/dist/client/assets/{Palette-CO-9fV73.js → Palette-D3b-Xu-h.js} +1 -1
- package/dist/client/assets/{Play-Cnds4faY.js → Play-Cwr6OeyJ.js} +1 -1
- package/dist/client/assets/{Plus-DeCuWgpG.js → Plus-o6GtUPlY.js} +1 -1
- package/dist/client/assets/{SearchLg-LSbMLZI6.js → SearchLg-CspkxEWY.js} +1 -1
- package/dist/client/assets/{SearchMd-C6SjxYyL.js → SearchMd-RYRFlTFn.js} +1 -1
- package/dist/client/assets/{Settings02-CDWROrkG.js → Settings02-DmvOMOJi.js} +1 -1
- package/dist/client/assets/{Share07-rauAL5Pr.js → Share07-CRjpz7Rb.js} +1 -1
- package/dist/client/assets/{Shield01-CJQrmrbA.js → Shield01-rgn5f9FP.js} +1 -1
- package/dist/client/assets/{Stars01-DqVhL0wf.js → Stars01-DZNPrk3T.js} +1 -1
- package/dist/client/assets/{Stars02-NRIRt4tn.js → Stars02-DLckXeQE.js} +1 -1
- package/dist/client/assets/{Sun-BDdwc-Zh.js → Sun-D7tOZ_nt.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BLilv7ln.js → SwitchHorizontal01-CwhrY0ka.js} +1 -1
- package/dist/client/assets/{Tool01-TcrXKmnF.js → Tool01-DOhRtqWP.js} +1 -1
- package/dist/client/assets/{Tool02-DWE9dUHc.js → Tool02-BeXTGPXn.js} +1 -1
- package/dist/client/assets/{Trash01-DoWKJDZO.js → Trash01-M0RrAQ6e.js} +1 -1
- package/dist/client/assets/{TrendUp01-DehiMCpc.js → TrendUp01-Kbryww01.js} +1 -1
- package/dist/client/assets/{Upload01-DROOnA_X.js → Upload01-B5ikfnMw.js} +1 -1
- package/dist/client/assets/{User01-DBp5CtcM.js → User01-CNoTVT8V.js} +1 -1
- package/dist/client/assets/{UserSquare-CYgbi1K9.js → UserSquare-4N_O4Huh.js} +1 -1
- package/dist/client/assets/{Users01-D845Yde-.js → Users01-Cwzg4OyC.js} +1 -1
- package/dist/client/assets/{Users03-C_Br2__w.js → Users03-CJFHaNa3.js} +1 -1
- package/dist/client/assets/{XCircle-CJ79pnxP.js → XCircle-C9nVincA.js} +1 -1
- package/dist/client/assets/{XClose-BOvSf6KB.js → XClose-p_PG6PPu.js} +1 -1
- package/dist/client/assets/{YAxis-Db5uj_c4.js → YAxis-CyTMpQRs.js} +1 -1
- package/dist/client/assets/{Zap-CYPfTI6g.js → Zap-BxAmuoGy.js} +1 -1
- package/dist/client/assets/{ZapSquare-Cx_Z2jAm.js → ZapSquare-CP5-bflA.js} +1 -1
- package/dist/client/assets/{access-gate-nqfyC3Gn.js → access-gate-C3x_LTGW.js} +1 -1
- package/dist/client/assets/{agent-icon-BM9CQspm.js → agent-icon-Dapja1ku.js} +1 -1
- package/dist/client/assets/{agents-list-SA81MynM.js → agents-list-BpwYpuDk.js} +1 -1
- package/dist/client/assets/{ai-providers-D2GbZlGj.js → ai-providers-DwxWBVUc.js} +1 -1
- package/dist/client/assets/{alert-BIAyvh7L.js → alert-CoBI5Swj.js} +1 -1
- package/dist/client/assets/{alert-dialog-CJVL1k9x.js → alert-dialog-Dolo_dDt.js} +1 -1
- package/dist/client/assets/{api-keys-CXhaSQ6j.js → api-keys-BRu0-j_l.js} +1 -1
- package/dist/client/assets/{app-editor-B9KTkNWs.js → app-editor-UDkbQsio.js} +1 -1
- package/dist/client/assets/{auth-D0FayD-s.js → auth-58obgKjX.js} +1 -1
- package/dist/client/assets/{auth-catchall-QibEwR3X.js → auth-catchall-B37oPE1a.js} +1 -1
- package/dist/client/assets/{auth-entry-BtLGTg0e.js → auth-entry-tnxTfxoZ.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DYtiT43v.js → auth-split-layout-BmfOLx-w.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-t3Fvmhc7.js → authenticate-and-persist-oauth-CrLLgM6o.js} +1 -1
- package/dist/client/assets/{automation-list-row-C9Xx9zFJ.js → automation-list-row-B7NdzgK2.js} +1 -1
- package/dist/client/assets/{automation-runs-BwVIBljL.js → automation-runs-CdXs2_3V.js} +1 -1
- package/dist/client/assets/{automations-aoyy5Tgb.js → automations-CHXYekBJ.js} +1 -1
- package/dist/client/assets/{avatar-CqQE-eFC.js → avatar-93Ky3hst.js} +1 -1
- package/dist/client/assets/{badge-D3zUUYug.js → badge-CGEHhIh7.js} +1 -1
- package/dist/client/assets/{block-document-IwRwz7ED.js → block-document-CDxFY6AG.js} +1 -1
- package/dist/client/assets/{buckets-B3b8N6K4.js → buckets-CA5kVQIC.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-BLNvVNKk.js → bulk-category-panel-BcCVqFmT.js} +1 -1
- package/dist/client/assets/{capability-load-error-Bc2xBDB9.js → capability-load-error-CArhVadz.js} +1 -1
- package/dist/client/assets/{cards-B6201d9G.js → cards-BWQ3fTI6.js} +1 -1
- package/dist/client/assets/{category-editor-BHIciUgg.js → category-editor-BxGR5QBl.js} +1 -1
- package/dist/client/assets/{chart-wUtBUsj3.js → chart-XzF5-7u0.js} +1 -1
- package/dist/client/assets/{chat-context-PKiduEXT.js → chat-context-IN2mbOb6.js} +1 -1
- package/dist/client/assets/{checkbox-BZ02x3Tw.js → checkbox-O8sasvu3.js} +1 -1
- package/dist/client/assets/{choose-editor-BtzA0fpx.js → choose-editor-LrspgTdc.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B4esG6lN.js → cli-auth-success-OYyjuXAK.js} +1 -1
- package/dist/client/assets/{collection-detail-BS7drL1-.js → collection-detail-Dzr0jg8x.js} +1 -1
- package/dist/client/assets/{collection-display-button-B8yEu5fQ.js → collection-display-button-BMCkbzyU.js} +1 -1
- package/dist/client/assets/{collection-search-CksSLFKw.js → collection-search-CVsH-m_a.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B1nDVamJ.js → collection-table-wrapper-B2uzoRq9.js} +1 -1
- package/dist/client/assets/{collection-tabs-Lyg-Hx2-.js → collection-tabs-Dou_bmpW.js} +1 -1
- package/dist/client/assets/{command-UPps-OHa.js → command-BhDqTkTk.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DLZSaK6E.js → commerce-onboarding-fgbXffPw.js} +1 -1
- package/dist/client/assets/{connect-Dl1amKXS.js → connect-CdEfrJp-.js} +1 -1
- package/dist/client/assets/{connection-eRnJdwGa.js → connection-CscO6wc3.js} +1 -1
- package/dist/client/assets/{connection-card-CmsTkv4b.js → connection-card-GIYyR3Dk.js} +1 -1
- package/dist/client/assets/{connection-detail-Bu9QL2mf.js → connection-detail-eNGTTZLu.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BP-W1_HA.js → connection-form-helpers-C1AXlsMA.js} +1 -1
- package/dist/client/assets/{connections-PrZkDDXx.js → connections-D-GEMsZK.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CzhRRg62.js → decopilot-sse-pool-DD1r1Ni7.js} +1 -1
- package/dist/client/assets/{dialog-BQ-t4CF4.js → dialog-D4TKCpgT.js} +1 -1
- package/dist/client/assets/{domain-settings-BE1sHvud.js → domain-settings-C_OcZlcO.js} +1 -1
- package/dist/client/assets/{drawer-Db54djTH.js → drawer-CGdYXF1V.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Dl9RzbmM.js → dropdown-menu-VzXuM7DT.js} +1 -1
- package/dist/client/assets/{empty-state-Z6jBJyBE.js → empty-state-DhEtzlSH.js} +1 -1
- package/dist/client/assets/{extract-connection-data-B6RBsrzJ.js → extract-connection-data-DOVwP3xc.js} +1 -1
- package/dist/client/assets/{file-explorer-Dal-wJwB.js → file-explorer-CBB0ur1y.js} +1 -1
- package/dist/client/assets/{file-type-icon-k6QIypVu.js → file-type-icon-BZeO1Oso.js} +1 -1
- package/dist/client/assets/{form-WUWViVui.js → form-CnEnIqXp.js} +1 -1
- package/dist/client/assets/{general-DujFYF7x.js → general-Bbf7WoH-.js} +1 -1
- package/dist/client/assets/{github-repo-picker-CntGYv-N.js → github-repo-picker-BDL6quG_.js} +1 -1
- package/dist/client/assets/{hooks-APRq5B-N.js → hooks-Ce8j84Dj.js} +1 -1
- package/dist/client/assets/{index-CzegzpSG.js → index--ZwTth3n.js} +1 -1
- package/dist/client/assets/{index-C9ncfe5m.js → index-5imJM3au.js} +1 -1
- package/dist/client/assets/{index-ChJw-ECJ.js → index-BUVqLPW9.js} +1 -1
- package/dist/client/assets/{index-PlC49IUs.js → index-B_eYuc0U.js} +49 -49
- package/dist/client/assets/{index-D_lsHUtB.js → index-CgjvOJ2s.js} +1 -1
- package/dist/client/assets/{index-C6_zR0Yd.js → index-Cr5DqCRY.js} +1 -1
- package/dist/client/assets/{index-B5R-ECHm.js → index-DYhuz5u4.js} +3 -3
- package/dist/client/assets/{index-HRPiQFML.js → index-DwByHTI3.js} +1 -1
- package/dist/client/assets/{index-CHh53Mp2.js → index-WB4HkiCG.js} +1 -1
- package/dist/client/assets/{index-CCWpCA-G.js → index-nBibj1HB.js} +1 -1
- package/dist/client/assets/{index-redirect-Bt9f84nm.js → index-redirect-C3D0MciT.js} +1 -1
- package/dist/client/assets/{infra-billing-BycQSWPo.js → infra-billing-DhlpTl9o.js} +1 -1
- package/dist/client/assets/{input-DSE7gQf1.js → input-BeEZ0yYi.js} +1 -1
- package/dist/client/assets/{integration-icon-BNk_AQRx.js → integration-icon-Bysc1MQE.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-CGe2Esmt.js → invite-member-dialog-DTUZ21Ly.js} +1 -1
- package/dist/client/assets/{label-bKnld9-e.js → label-lJB9hx_m.js} +1 -1
- package/dist/client/assets/{layout-C3s_EyAE.js → layout-41jQnw79.js} +1 -1
- package/dist/client/assets/{login-DgncbZDD.js → login-Dil9P0W6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CIUwYU01.js → mcp-oauth-bixKz7BF.js} +1 -1
- package/dist/client/assets/{members-fD3fuIPu.js → members-ClBl37V7.js} +1 -1
- package/dist/client/assets/{monaco-editor-DfjGwIkC.js → monaco-editor-DOTx9L8-.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DbN6Nmjk.js → monitoring-stats-row-CuaWwLdr.js} +1 -1
- package/dist/client/assets/{multi-select-CbMJAEZF.js → multi-select-Bnq19Oes.js} +1 -1
- package/dist/client/assets/{oauth-callback-WOxNsdHY.js → oauth-callback-Be6U8Evw.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bu-7l7W1.js → oauth-callback-ai-provider-S95PD3eA.js} +1 -1
- package/dist/client/assets/{onboarding-GV1YOUZx.js → onboarding-jjqAR8SP.js} +1 -1
- package/dist/client/assets/{org-layout-KMgFYnEn.js → org-layout-InpkViRl.js} +1 -1
- package/dist/client/assets/{organization-choice-BdlZTNZ2.js → organization-choice-CqpH4HQG.js} +1 -1
- package/dist/client/assets/{orgs-DpFCZKGa.js → orgs-Div6yLNd.js} +1 -1
- package/dist/client/assets/{page-seo-form-yEkuPmLs.js → page-seo-form-Cnt9sG0g.js} +1 -1
- package/dist/client/assets/{popover-DH9TTdnh.js → popover-C35Me60K.js} +1 -1
- package/dist/client/assets/{post-calendar-_wAnd4hS.js → post-calendar-CLPe85Pl.js} +1 -1
- package/dist/client/assets/{post-editor-DmIGTBNC.js → post-editor-D_wHWefb.js} +1 -1
- package/dist/client/assets/{primitives-ryVKph93.js → primitives-R8WLKcdc.js} +1 -1
- package/dist/client/assets/{profile-C8UuIsP3.js → profile-BPUs70Us.js} +1 -1
- package/dist/client/assets/{project-app-view-MsPnD9gX.js → project-app-view-Brf66p4O.js} +1 -1
- package/dist/client/assets/record-editor-C3U60ZZr.js +1 -0
- package/dist/client/assets/{redirect-editor-Bd2rrLYO.js → redirect-editor-nCs32dDQ.js} +1 -1
- package/dist/client/assets/registry-Wkwxu2DX.js +2 -0
- package/dist/client/assets/{registry-layout-Dc0H0ATx.js → registry-layout-DSBq7AXo.js} +1 -1
- package/dist/client/assets/{reports-CiLAvKnY.js → reports-CtytDeUQ.js} +1 -1
- package/dist/client/assets/{require-capability-BwuG9o3e.js → require-capability-7_58sFgG.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DoToYqRI.js → required-auth-layout-BrkOyyOk.js} +1 -1
- package/dist/client/assets/{reset-password-tKjrzuH3.js → reset-password-B75GG5p-.js} +1 -1
- package/dist/client/assets/{roles-zeeKTIgv.js → roles-B0MCVsx9.js} +1 -1
- package/dist/client/assets/{search-input-Bghs_Bjp.js → search-input-4XgXHQd1.js} +1 -1
- package/dist/client/assets/{secrets-BGwFAxtw.js → secrets-BxyIy9t7.js} +1 -1
- package/dist/client/assets/{sections-editor-g-gezo78.js → sections-editor-ySfAIeYI.js} +1 -1
- package/dist/client/assets/{select-model-DPpBxnrS.js → select-model-DHRgtkJ-.js} +1 -1
- package/dist/client/assets/{select-D5jnyj0l.js → select-pRcFQMbD.js} +1 -1
- package/dist/client/assets/{self-tool-result-CIZIi6Il.js → self-tool-result-CBXC7R0E.js} +1 -1
- package/dist/client/assets/{seo-editor-DNcffLdI.js → seo-editor-CeMEQCl8.js} +1 -1
- package/dist/client/assets/{settings-layout-CLBsNOrx.js → settings-layout-DVkknnjy.js} +1 -1
- package/dist/client/assets/{shell-controls-B3oa4qQr.js → shell-controls-QAuxqSr6.js} +1 -1
- package/dist/client/assets/{shell-layout-CAm70xM1.js → shell-layout-Bm5zUndY.js} +1 -1
- package/dist/client/assets/{spinner-ClifCs3i.js → spinner-CZafxxZB.js} +1 -1
- package/dist/client/assets/{sprints-C1R8b2UK.js → sprints-CA-TQC6e.js} +1 -1
- package/dist/client/assets/{sso-EV6PU76G.js → sso-CuevFz7c.js} +1 -1
- package/dist/client/assets/{store-DCevyKVu.js → store-SqB_nBOI.js} +1 -1
- package/dist/client/assets/store-registry-Dx5fVHsJ.js +2 -0
- package/dist/client/assets/{switch-DXyXcz0k.js → switch-AL0FRwjR.js} +1 -1
- package/dist/client/assets/{synced-repos-Db2YEWLj.js → synced-repos-7JSVD1wj.js} +1 -1
- package/dist/client/assets/{tab-id-C7NSeDZO.js → tab-id-CRYGEVwl.js} +1 -1
- package/dist/client/assets/{table-BdiZmxkC.js → table-CjUGtpAn.js} +1 -1
- package/dist/client/assets/{tabs-B1m4e_Lf.js → tabs-BdxtePF9.js} +1 -1
- package/dist/client/assets/{task-key-DzvP3l3i.js → task-key-DpQDci0a.js} +1 -1
- package/dist/client/assets/{tasks-DEqOIdPE.js → tasks-BCA8LpUz.js} +1 -1
- package/dist/client/assets/{textarea-C8A1NtUt.js → textarea-CR9D7Jr6.js} +1 -1
- package/dist/client/assets/{toggle-group-B9nynTTu.js → toggle-group-COsyIaDP.js} +1 -1
- package/dist/client/assets/{toolbar-Dn87lyB_.js → toolbar-DtHs7yB3.js} +1 -1
- package/dist/client/assets/{track-BeWveGxs.js → track-Co-CdXjd.js} +1 -1
- package/dist/client/assets/{types-qEmgOr-R.js → types-WvZhDZNg.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BWG1j4R3.js → use-ai-providers-CYnRe4Z_.js} +1 -1
- package/dist/client/assets/{use-api-keys-DpclRP6H.js → use-api-keys-SsJUF8rv.js} +1 -1
- package/dist/client/assets/{use-automations-CESfm05a.js → use-automations-BfUUQWS6.js} +1 -1
- package/dist/client/assets/{use-autosave-BRWbTp2x.js → use-autosave-BxpSUaYU.js} +1 -1
- package/dist/client/assets/{use-clock-tick-BmMJ4C9l.js → use-clock-tick-exAPGuDL.js} +1 -1
- package/dist/client/assets/{use-commerce-diagnostic-Ll9Jxlc1.js → use-commerce-diagnostic-C0d6yhR3.js} +1 -1
- package/dist/client/assets/{use-connection-CFAFM3Yj.js → use-connection-qRC7PjST.js} +1 -1
- package/dist/client/assets/{use-copy-Du-_RwSH.js → use-copy-5T5UkCj5.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DR7i4x1_.js → use-create-virtual-mcp-BLIlwx0j.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-44xRW5_u.js → use-debounced-autosave-DwM6UtRL.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D7E7obaB.js → use-debounced-value-DexciQ0U.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-0HarKwn7.js → use-decopilot-events-C3Qa806m.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BUhVI2Tk.js → use-delete-connection-uo8NDJN6.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CgvO-LhO.js → use-deployment-admin-GyHagFEb.js} +1 -1
- package/dist/client/assets/{use-file-configs-BxpfXHj_.js → use-file-configs-07hOycAD.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DSYZfzYp.js → use-infinite-scroll-s7hE4wtn.js} +1 -1
- package/dist/client/assets/{use-join-requests-BPFfkf2j.js → use-join-requests-DONUkfUM.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Bu-g594J.js → use-mcp-client-rUWSEc22.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Dtn2uWjv.js → use-mcp-tools-BFb2reXp.js} +1 -1
- package/dist/client/assets/{use-members-yMUdTS3F.js → use-members-B_8MrweM.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CioCH7VJ.js → use-navigate-to-agent-B0Q0MfGV.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DZGh6wmi.js → use-org-auth-client-B0nKdvcm.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CwiMJzn0.js → use-org-repo-syncs-CJeOf4LS.js} +1 -1
- package/dist/client/assets/{use-org-sso-CmTeA9vF.js → use-org-sso-B_CNcFl1.js} +1 -1
- package/dist/client/assets/{use-organization-roles-fAKqyPgr.js → use-organization-roles-BbcJXyTL.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DeS0wGS3.js → use-organization-settings-DJ4tVzFq.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DENDz1rF.js → use-registry-connections-cskepZKY.js} +1 -1
- package/dist/client/assets/{use-secrets-7WKBJtby.js → use-secrets-Cj79lIU5.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Dy0el1qx.js → use-section-preview-base-Cvsv8pFG.js} +1 -1
- package/dist/client/assets/{use-status-sounds-Dk4EoSoR.js → use-status-sounds-p1DffsVl.js} +1 -1
- package/dist/client/assets/{use-tags-CrW3MALx.js → use-tags-B8zJ4C0I.js} +1 -1
- package/dist/client/assets/{use-view-mode-D5UH6KwN.js → use-view-mode-CQ2Jpgnb.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DKc17TzC.js → use-virtual-mcp-DgtJLqTs.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cka6pm7d.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-_TCm0uwm.js +1 -0
- package/dist/client/assets/{users-CSsRTguV.js → users-eb-DlZV3.js} +1 -1
- package/dist/client/assets/{variant-calendar-CBFu2wjk.js → variant-calendar-9gF_FBM_.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-NiXmRgSR.js → view-mode-toggle-CAX7oTYq.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +343 -343
- package/dist/server/server.js +222 -222
- package/package.json +1 -1
- package/dist/client/assets/record-editor-C-RsaIun.js +0 -1
- package/dist/client/assets/registry-DN_clZPu.js +0 -2
- package/dist/client/assets/store-registry--a7H-Hfk.js +0 -2
- package/dist/client/assets/useInfiniteQuery-CtQupOcz.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DsYLPBXT.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ne,b as ce,r as ue,x as we,n as X,j as t,B as ae}from"./index-B5R-ECHm.js";import{i as Te}from"./AlertCircle-d_jYW-pF.js";import{c as ze}from"./UserSquare-CYgbi1K9.js";import{w as Ee}from"./agent-icon-BM9CQspm.js";import{i as Pe}from"./ChevronRight-Bq8eLOWM.js";import{s as _e}from"./Plus-DeCuWgpG.js";import{a as Ae,b as Me,A as Ue}from"./alert-BIAyvh7L.js";import{B as Ie}from"./automation-runs-BwVIBljL.js";import{_ as Le,bY as $e,as as Oe,bT as He,bU as Re,bZ as Be,bS as be,bW as he,b_ as Fe,b$ as We}from"./index-PlC49IUs.js";import"./Tool01-TcrXKmnF.js";import"./ArrowUp-DmYjuyWi.js";import"./ArrowLeft-B5SdDJS5.js";import"./Tool02-DWE9dUHc.js";import"./XCircle-CJ79pnxP.js";import"./TrendUp01-DehiMCpc.js";import"./ZapSquare-Cx_Z2jAm.js";import"./Users03-C_Br2__w.js";import"./CheckCircle-DuO-pGO-.js";import"./Check-KqwAmcDj.js";import"./ChevronDown-BQZF9Af9.js";import"./ChevronSelectorVertical-DrHEbUrw.js";import"./ChevronUp-BnjYp300.js";import"./DotsVertical-DmFi_5m5.js";import"./Stars02-NRIRt4tn.js";import"./Copy01-DQMklNBZ.js";import"./CreditCard01-ayJva4-L.js";import"./Download01-BCA2ING7.js";import"./Settings02-CDWROrkG.js";import"./Eye-CRgVrt0h.js";import"./FilterLines-D6T5uoZ8.js";import"./Share07-rauAL5Pr.js";import"./Globe01-KXkuiG0o.js";import"./Globe04-kFCzhDtq.js";import"./SwitchHorizontal01-BLilv7ln.js";import"./HardDrive-IGVDCiH-.js";import"./Key01-zoXnVGpi.js";import"./LinkExternal01-DY154voS.js";import"./LockUnlocked01-BUPOcE7Q.js";import"./LogOut01-vFXcKA44.js";import"./Monitor01-IMrl8-Sz.js";import"./Sun-BDdwc-Zh.js";import"./Palette-CO-9fV73.js";import"./Play-Cnds4faY.js";import"./SearchLg-LSbMLZI6.js";import"./SearchMd-C6SjxYyL.js";import"./Shield01-CJQrmrbA.js";import"./Stars01-DqVhL0wf.js";import"./Trash01-DoWKJDZO.js";import"./Upload01-DROOnA_X.js";import"./User01-DBp5CtcM.js";import"./Users01-D845Yde-.js";import"./XClose-BOvSf6KB.js";import"./Zap-CYPfTI6g.js";import"./select-D5jnyj0l.js";import"./useInfiniteQuery-CtQupOcz.js";import"./use-infinite-scroll-DSYZfzYp.js";import"./use-connection-CFAFM3Yj.js";import"./use-mcp-client-Bu-g594J.js";import"./constants-_08zpzmT.js";import"./auth-D0FayD-s.js";import"./use-virtual-mcp-DKc17TzC.js";import"./table-BdiZmxkC.js";import"./empty-state-Z6jBJyBE.js";import"./use-members-yMUdTS3F.js";import"./use-org-auth-client-DZGh6wmi.js";import"./use-clock-tick-BmMJ4C9l.js";import"./use-automations-CESfm05a.js";import"./useSuspenseInfiniteQuery-DsYLPBXT.js";import"./avatar-CqQE-eFC.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Du-_RwSH.js";import"./dialog-BQ-t4CF4.js";import"./tab-id-C7NSeDZO.js";import"./hooks-APRq5B-N.js";import"./decopilot-sse-pool-CzhRRg62.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-PKiduEXT.js";import"./session-runtime-wVXsCwcJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-BWG1j4R3.js";import"./use-decopilot-events-0HarKwn7.js";import"./use-organization-settings-DeS0wGS3.js";import"./monaco-editor-DfjGwIkC.js";import"./spinner-ClifCs3i.js";import"./types-qEmgOr-R.js";import"./shell-layout-CAm70xM1.js";import"./required-auth-layout-DoToYqRI.js";import"./use-org-sso-CmTeA9vF.js";import"./integration-icon-BNk_AQRx.js";import"./use-navigate-to-agent-CioCH7VJ.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-wUtBUsj3.js";import"./index-CCWpCA-G.js";import"./form-WUWViVui.js";import"./label-bKnld9-e.js";import"./input-DSE7gQf1.js";import"./file-type-icon-k6QIypVu.js";import"./drawer-Db54djTH.js";import"./collection-search-CksSLFKw.js";import"./tabs-B1m4e_Lf.js";import"./toggle-group-B9nynTTu.js";import"./use-commerce-diagnostic-Ll9Jxlc1.js";import"./popover-DH9TTdnh.js";import"./self-tool-result-CIZIi6Il.js";import"./alert-dialog-CJVL1k9x.js";import"./extract-connection-data-B6RBsrzJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D7E7obaB.js";import"./authenticate-and-persist-oauth-t3Fvmhc7.js";import"./mcp-oauth-CIUwYU01.js";import"./track-BeWveGxs.js";import"./toolbar-Dn87lyB_.js";import"./github-repo-picker-CntGYv-N.js";import"./use-mcp-tools-Dtn2uWjv.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CmsTkv4b.js";import"./use-registry-connections-DENDz1rF.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-C8A1NtUt.js";import"./connection-form-helpers-BP-W1_HA.js";import"./collection-tabs-Lyg-Hx2-.js";import"./badge-D3zUUYug.js";import"./command-UPps-OHa.js";import"./index-ChJw-ECJ.js";import"./select-model-DPpBxnrS.js";import"./checkbox-BZ02x3Tw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-B6201d9G.js";import"./dropdown-menu-Dl9RzbmM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dk4EoSoR.js";import"./use-file-configs-BxpfXHj_.js";import"./pt-BR-CLy76QW2.js";import"./switch-DXyXcz0k.js";import"./use-debounced-autosave-44xRW5_u.js";import"./search-input-Bghs_Bjp.js";import"./index-C6_zR0Yd.js";import"./use-secrets-7WKBJtby.js";import"./AreaChart-6ExM5C57.js";import"./task-key-DzvP3l3i.js";import"./sprints-C1R8b2UK.js";import"./use-tags-CrW3MALx.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C9Xx9zFJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CwiMJzn0.js";const je="border-success/30 bg-success/10 text-success hover:bg-success/20",ye="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Ke(u){const e=ne.c(17),{support:x}=u,i=ce(),o=x.kind==="unsupported-runtime";let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Te,{}),e[0]=l):l=e[0];const a=o?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.outdatedAppsTitle";let c;e[1]!==i||e[2]!==a?(c=i(a),e[1]=i,e[2]=a,e[3]=c):c=e[3];let s;e[4]!==c?(s=t.jsx(Ae,{children:c}),e[4]=c,e[5]=s):s=e[5];let d;e[6]!==o||e[7]!==i?(d=o?i("sandbox.postCalendar.unsupportedRuntimeDescription"):i("sandbox.postCalendar.outdatedAppsDescription",{required:Fe}),e[6]=o,e[7]=i,e[8]=d):d=e[8];let r;e[9]!==d?(r=t.jsx(Me,{children:d}),e[9]=d,e[10]=r):r=e[10];let n;e[11]!==o?(n=!o&&t.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:We}),e[11]=o,e[12]=n):n=e[12];let m;return e[13]!==s||e[14]!==r||e[15]!==n?(m=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/30 p-6",children:t.jsxs(Ue,{variant:"warning",className:"max-w-md bg-background/95 shadow-lg backdrop-blur",children:[l,t.jsxs("div",{children:[s,r,n]})]})}),e[13]=s,e[14]=r,e[15]=n,e[16]=m):m=e[16],m}function $o(u){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=u,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Le(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=ue.useState(null),[C]=we(),[b,w]=ue.useState(Ve),h=C.language;let D;e[2]!==b||e[3]!==h?(D=new Intl.DateTimeFormat(h,{month:"long",year:"numeric"}).format(b),e[2]=b,e[3]=h,e[4]=D):D=e[4];const f=D;let j,N,T,z,k,E,P,_,A,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==f||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ne=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ce,undated:me}=$e(Oe(x)),de=He(b),De=Re(new Date);z="flex h-full w-full flex-col";let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=()=>w(be(new Date)),e[28]=te):te=e[28];let H;e[29]!==r?(H=r("sandbox.postCalendar.today"),e[29]=r,e[30]=H):H=e[30];let R;e[31]!==H?(R=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:H}),e[31]=H,e[32]=R):R=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(Ge),e[33]=re):re=e[33];let B;e[34]!==r?(B=r("sandbox.postCalendar.previous"),e[34]=r,e[35]=B):B=e[35];let oe;e[36]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(Ee,{size:16}),e[36]=oe):oe=e[36];let F;e[37]!==B?(F=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:re,"aria-label":B,children:oe}),e[37]=B,e[38]=F):F=e[38];let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=()=>w(qe),e[39]=se):se=e[39];let W;e[40]!==r?(W=r("sandbox.postCalendar.next"),e[40]=r,e[41]=W):W=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Pe,{size:16}),e[42]=ie):ie=e[42];let K;e[43]!==W?(K=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":W,children:ie}),e[43]=W,e[44]=K):K=e[44];let q;e[45]!==f?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:f}),e[45]=f,e[46]=q):q=e[46];let G;e[47]!==r?(G=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=G):G=e[48];let V;e[49]!==G?(V=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=V):V=e[50];let Y;e[51]!==r?(Y=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=Y):Y=e[52];let Z;e[53]!==Y?(Z=t.jsx(xe,{className:ye,label:Y}),e[53]=Y,e[54]=Z):Z=e[54];let J;e[55]!==V||e[56]!==Z?(J=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[V,Z]}),e[55]=V,e[56]=Z,e[57]=J):J=e[57],e[58]!==R||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==J?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[R,F,K,q,J]}),e[58]=R,e[59]=F,e[60]=K,e[61]=q,e[62]=J,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Ie;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=X("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,A="flex min-w-[880px] gap-4 p-4";let Q;e[66]!==r?(Q=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Q):Q=e[67];let le;e[68]!==Q?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Q}),e[68]=Q,e[69]=le):le=e[69],M=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:de[0]?.map(p=>t.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ve.format(p)},p.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:de.flat().map(p=>{const ke=p.getMonth()===b.getMonth(),Se=Ce.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const fe=v.dataTransfer.getData("text/plain");y(null),fe&&c(fe,p)},className:X("group/day min-h-28 space-y-1 p-2 transition-colors",ke?"bg-background":"bg-muted/40",g&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:X("grid size-6 place-items-center rounded-full text-xs",p.getTime()===De.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:p.getDate()}),m&&t.jsx(ae,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:d,onClick:()=>a(p),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ne.format(p)}),children:t.jsx(_e,{size:14})})]}),Se.map(v=>t.jsx(ge,{entry:v,active:v.post.key===o,draggable:m&&v.scheduled,onSelect:l,onDragStateChange:y},v.post.key))]},p.getTime())})}),le]}),E="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",P=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),_=me.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(ze,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):me.map(p=>t.jsx(ge,{entry:p,active:p.post.key===o,draggable:!1,onSelect:l,onDragStateChange:y},p.post.key)),e[5]=m,e[6]=b,e[7]=x,e[8]=g,e[9]=d,e[10]=h,e[11]=f,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=N,e[19]=T,e[20]=z,e[21]=k,e[22]=E,e[23]=P,e[24]=_,e[25]=A,e[26]=M,e[27]=S}else j=e[17],N=e[18],T=e[19],z=e[20],k=e[21],E=e[22],P=e[23],_=e[24],A=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==_?(U=t.jsxs("div",{className:E,children:[P,_]}),e[70]=E,e[71]=P,e[72]=_,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==A||e[76]!==M?(I=t.jsxs("div",{className:A,children:[M,U]}),e[74]=U,e[75]=A,e[76]=M,e[77]=I):I=e[77];let L;e[78]!==j||e[79]!==N||e[80]!==I||e[81]!==S?(L=t.jsx(j,{className:S,inert:N,children:I}),e[78]=j,e[79]=N,e[80]=I,e[81]=S,e[82]=L):L=e[82];let $;e[83]!==m||e[84]!==i?($=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=$):$=e[85];let O;e[86]!==T||e[87]!==L||e[88]!==$?(O=t.jsxs("div",{className:T,children:[L,$]}),e[86]=T,e[87]=L,e[88]=$,e[89]=O):O=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==O?(ee=t.jsxs("div",{className:z,children:[k,O]}),e[90]=z,e[91]=k,e[92]=O,e[93]=ee):ee=e[93],ee}function qe(u){return he(u,1)}function Ge(u){return he(u,-1)}function Ve(){return be(new Date)}function xe(u){const e=ne.c(7),{className:x,label:i}=u;let o;e[0]!==x?(o=X("size-3 rounded-sm border",x),e[0]=x,e[1]=o):o=e[1];let l;e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3];let a;return e[4]!==i||e[5]!==l?(a=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,i]}),e[4]=i,e[5]=l,e[6]=a):a=e[6],a}function ge(u){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=u,c=ce(),{post:s,scheduled:d}=x,r=d?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let n;e[0]!==c||e[1]!==r?(n=c(r),e[0]=c,e[1]=r,e[2]=n):n=e[2];const m=n;let g;e[3]!==a||e[4]!==s.key?(g=N=>{N.dataTransfer.setData("text/plain",s.key),N.dataTransfer.effectAllowed="move",a(s.key)},e[3]=a,e[4]=s.key,e[5]=g):g=e[5];let y;e[6]!==a?(y=()=>a(null),e[6]=a,e[7]=y):y=e[7];let C;e[8]!==l||e[9]!==s.key?(C=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=C):C=e[10];const b=`${s.title} · ${m}`,w=d?je:ye,h=o&&"cursor-grab active:cursor-grabbing",D=i&&"ring-2 ring-primary";let f;e[11]!==w||e[12]!==h||e[13]!==D?(f=X("w-full truncate rounded-md border px-2 py-1 text-left text-xs font-medium transition-colors",w,h,D),e[11]=w,e[12]=h,e[13]=D,e[14]=f):f=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==f||e[18]!==g||e[19]!==y||e[20]!==C||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:C,title:b,className:f,children:s.title}),e[15]=o,e[16]=s.title,e[17]=f,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{$o as PostCalendar};
|
|
1
|
+
import{c as ne,b as ce,r as ue,x as we,n as X,j as t,B as ae}from"./index-DYhuz5u4.js";import{i as Te}from"./AlertCircle-BDusuqHR.js";import{c as ze}from"./UserSquare-4N_O4Huh.js";import{w as Ee}from"./agent-icon-Dapja1ku.js";import{i as Pe}from"./ChevronRight-DCgSscRL.js";import{s as _e}from"./Plus-o6GtUPlY.js";import{a as Ae,b as Me,A as Ue}from"./alert-CoBI5Swj.js";import{B as Ie}from"./automation-runs-CdXs2_3V.js";import{_ as Le,bY as $e,as as Oe,bT as He,bU as Re,bZ as Be,bS as be,bW as he,b_ as Fe,b$ as We}from"./index-B_eYuc0U.js";import"./Tool01-DOhRtqWP.js";import"./ArrowUp-CEPWXS-3.js";import"./ArrowLeft-0tHCTq_5.js";import"./Tool02-BeXTGPXn.js";import"./XCircle-C9nVincA.js";import"./TrendUp01-Kbryww01.js";import"./ZapSquare-CP5-bflA.js";import"./Users03-CJFHaNa3.js";import"./CheckCircle-D5qJu1Fm.js";import"./Check-eRPNoavQ.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronSelectorVertical-B3t1cekd.js";import"./ChevronUp-iWYokpT6.js";import"./DotsVertical-4USgsJk6.js";import"./Stars02-DLckXeQE.js";import"./Copy01-DRSCHQwE.js";import"./CreditCard01-BSTb8Mc9.js";import"./Download01-BH3cjMrI.js";import"./Settings02-DmvOMOJi.js";import"./Eye-CTLVmBpG.js";import"./FilterLines-BsHaUIT2.js";import"./Share07-CRjpz7Rb.js";import"./Globe01-DklSBKay.js";import"./Globe04-F8f-0PZt.js";import"./SwitchHorizontal01-CwhrY0ka.js";import"./HardDrive-DjJMW3nS.js";import"./Key01-C1runo_O.js";import"./LinkExternal01-DYnPaZ3r.js";import"./LockUnlocked01-DOMhyB5E.js";import"./LogOut01-Ah-KAndl.js";import"./Monitor01-DQPfjm9A.js";import"./Sun-D7tOZ_nt.js";import"./Palette-D3b-Xu-h.js";import"./Play-Cwr6OeyJ.js";import"./SearchLg-CspkxEWY.js";import"./SearchMd-RYRFlTFn.js";import"./Shield01-rgn5f9FP.js";import"./Stars01-DZNPrk3T.js";import"./Trash01-M0RrAQ6e.js";import"./Upload01-B5ikfnMw.js";import"./User01-CNoTVT8V.js";import"./Users01-Cwzg4OyC.js";import"./XClose-p_PG6PPu.js";import"./Zap-BxAmuoGy.js";import"./select-pRcFQMbD.js";import"./useInfiniteQuery-Cka6pm7d.js";import"./use-infinite-scroll-s7hE4wtn.js";import"./use-connection-qRC7PjST.js";import"./use-mcp-client-rUWSEc22.js";import"./constants-_08zpzmT.js";import"./auth-58obgKjX.js";import"./use-virtual-mcp-DgtJLqTs.js";import"./table-CjUGtpAn.js";import"./empty-state-DhEtzlSH.js";import"./use-members-B_8MrweM.js";import"./use-org-auth-client-B0nKdvcm.js";import"./use-clock-tick-exAPGuDL.js";import"./use-automations-BfUUQWS6.js";import"./useSuspenseInfiniteQuery-_TCm0uwm.js";import"./avatar-93Ky3hst.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-5T5UkCj5.js";import"./dialog-D4TKCpgT.js";import"./tab-id-CRYGEVwl.js";import"./hooks-Ce8j84Dj.js";import"./decopilot-sse-pool-DD1r1Ni7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./chat-context-IN2mbOb6.js";import"./session-runtime-wVXsCwcJ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-CYnRe4Z_.js";import"./use-decopilot-events-C3Qa806m.js";import"./use-organization-settings-DJ4tVzFq.js";import"./monaco-editor-DOTx9L8-.js";import"./spinner-CZafxxZB.js";import"./types-WvZhDZNg.js";import"./shell-layout-Bm5zUndY.js";import"./required-auth-layout-BrkOyyOk.js";import"./use-org-sso-B_CNcFl1.js";import"./integration-icon-Bysc1MQE.js";import"./use-navigate-to-agent-B0Q0MfGV.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-XzF5-7u0.js";import"./index-nBibj1HB.js";import"./form-CnEnIqXp.js";import"./label-lJB9hx_m.js";import"./input-BeEZ0yYi.js";import"./file-type-icon-BZeO1Oso.js";import"./drawer-CGdYXF1V.js";import"./collection-search-CVsH-m_a.js";import"./tabs-BdxtePF9.js";import"./toggle-group-COsyIaDP.js";import"./use-commerce-diagnostic-C0d6yhR3.js";import"./popover-C35Me60K.js";import"./self-tool-result-CBXC7R0E.js";import"./alert-dialog-Dolo_dDt.js";import"./extract-connection-data-DOVwP3xc.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DexciQ0U.js";import"./authenticate-and-persist-oauth-CrLLgM6o.js";import"./mcp-oauth-bixKz7BF.js";import"./track-Co-CdXjd.js";import"./toolbar-DtHs7yB3.js";import"./github-repo-picker-BDL6quG_.js";import"./use-mcp-tools-BFb2reXp.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-GIYyR3Dk.js";import"./use-registry-connections-cskepZKY.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CR9D7Jr6.js";import"./connection-form-helpers-C1AXlsMA.js";import"./collection-tabs-Dou_bmpW.js";import"./badge-CGEHhIh7.js";import"./command-BhDqTkTk.js";import"./index-BUVqLPW9.js";import"./select-model-DHRgtkJ-.js";import"./checkbox-O8sasvu3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BWQ3fTI6.js";import"./dropdown-menu-VzXuM7DT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-p1DffsVl.js";import"./use-file-configs-07hOycAD.js";import"./pt-BR-CLy76QW2.js";import"./switch-AL0FRwjR.js";import"./use-debounced-autosave-DwM6UtRL.js";import"./search-input-4XgXHQd1.js";import"./index-Cr5DqCRY.js";import"./use-secrets-Cj79lIU5.js";import"./AreaChart-D3QDeFur.js";import"./task-key-DpQDci0a.js";import"./sprints-CA-TQC6e.js";import"./use-tags-B8zJ4C0I.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-B7NdzgK2.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CJeOf4LS.js";const je="border-success/30 bg-success/10 text-success hover:bg-success/20",ye="border-dashed border-border bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground";function Ke(u){const e=ne.c(17),{support:x}=u,i=ce(),o=x.kind==="unsupported-runtime";let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(Te,{}),e[0]=l):l=e[0];const a=o?"sandbox.postCalendar.unsupportedRuntimeTitle":"sandbox.postCalendar.outdatedAppsTitle";let c;e[1]!==i||e[2]!==a?(c=i(a),e[1]=i,e[2]=a,e[3]=c):c=e[3];let s;e[4]!==c?(s=t.jsx(Ae,{children:c}),e[4]=c,e[5]=s):s=e[5];let d;e[6]!==o||e[7]!==i?(d=o?i("sandbox.postCalendar.unsupportedRuntimeDescription"):i("sandbox.postCalendar.outdatedAppsDescription",{required:Fe}),e[6]=o,e[7]=i,e[8]=d):d=e[8];let r;e[9]!==d?(r=t.jsx(Me,{children:d}),e[9]=d,e[10]=r):r=e[10];let n;e[11]!==o?(n=!o&&t.jsx("code",{className:"mt-2 block rounded-md bg-muted px-2 py-1 font-mono text-xs text-foreground",children:We}),e[11]=o,e[12]=n):n=e[12];let m;return e[13]!==s||e[14]!==r||e[15]!==n?(m=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/30 p-6",children:t.jsxs(Ue,{variant:"warning",className:"max-w-md bg-background/95 shadow-lg backdrop-blur",children:[l,t.jsxs("div",{children:[s,r,n]})]})}),e[13]=s,e[14]=r,e[15]=n,e[16]=m):m=e[16],m}function $o(u){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=u,d=s===void 0?!1:s,r=ce();let n;e[0]!==i?(n=Le(i),e[0]=i,e[1]=n):n=e[1];const m=n,[g,y]=ue.useState(null),[C]=we(),[b,w]=ue.useState(Ve),h=C.language;let D;e[2]!==b||e[3]!==h?(D=new Intl.DateTimeFormat(h,{month:"long",year:"numeric"}).format(b),e[2]=b,e[3]=h,e[4]=D):D=e[4];const f=D;let j,N,T,z,k,E,P,_,A,M,S;if(e[5]!==m||e[6]!==b||e[7]!==x||e[8]!==g||e[9]!==d||e[10]!==h||e[11]!==f||e[12]!==a||e[13]!==c||e[14]!==l||e[15]!==o||e[16]!==r){const ve=new Intl.DateTimeFormat(h,{weekday:"short"}),Ne=new Intl.DateTimeFormat(h,{dateStyle:"long"}),{byDay:Ce,undated:me}=$e(Oe(x)),de=He(b),De=Re(new Date);z="flex h-full w-full flex-col";let te;e[28]===Symbol.for("react.memo_cache_sentinel")?(te=()=>w(be(new Date)),e[28]=te):te=e[28];let H;e[29]!==r?(H=r("sandbox.postCalendar.today"),e[29]=r,e[30]=H):H=e[30];let R;e[31]!==H?(R=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:H}),e[31]=H,e[32]=R):R=e[32];let re;e[33]===Symbol.for("react.memo_cache_sentinel")?(re=()=>w(Ge),e[33]=re):re=e[33];let B;e[34]!==r?(B=r("sandbox.postCalendar.previous"),e[34]=r,e[35]=B):B=e[35];let oe;e[36]===Symbol.for("react.memo_cache_sentinel")?(oe=t.jsx(Ee,{size:16}),e[36]=oe):oe=e[36];let F;e[37]!==B?(F=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:re,"aria-label":B,children:oe}),e[37]=B,e[38]=F):F=e[38];let se;e[39]===Symbol.for("react.memo_cache_sentinel")?(se=()=>w(qe),e[39]=se):se=e[39];let W;e[40]!==r?(W=r("sandbox.postCalendar.next"),e[40]=r,e[41]=W):W=e[41];let ie;e[42]===Symbol.for("react.memo_cache_sentinel")?(ie=t.jsx(Pe,{size:16}),e[42]=ie):ie=e[42];let K;e[43]!==W?(K=t.jsx(ae,{variant:"ghost",size:"icon",className:"size-8",onClick:se,"aria-label":W,children:ie}),e[43]=W,e[44]=K):K=e[44];let q;e[45]!==f?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:f}),e[45]=f,e[46]=q):q=e[46];let G;e[47]!==r?(G=r("sandbox.postCalendar.legendScheduled"),e[47]=r,e[48]=G):G=e[48];let V;e[49]!==G?(V=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=V):V=e[50];let Y;e[51]!==r?(Y=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=Y):Y=e[52];let Z;e[53]!==Y?(Z=t.jsx(xe,{className:ye,label:Y}),e[53]=Y,e[54]=Z):Z=e[54];let J;e[55]!==V||e[56]!==Z?(J=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[V,Z]}),e[55]=V,e[56]=Z,e[57]=J):J=e[57],e[58]!==R||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==J?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[R,F,K,q,J]}),e[58]=R,e[59]=F,e[60]=K,e[61]=q,e[62]=J,e[63]=k):k=e[63],T="relative flex-1 min-h-0",j=Ie;const pe=!m&&"blur-[2px] select-none";e[64]!==pe?(S=X("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,A="flex min-w-[880px] gap-4 p-4";let Q;e[66]!==r?(Q=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Q):Q=e[67];let le;e[68]!==Q?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Q}),e[68]=Q,e[69]=le):le=e[69],M=t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("div",{className:"grid grid-cols-7 mb-2",children:de[0]?.map(p=>t.jsx("div",{className:"px-2 text-[11px] uppercase tracking-wider text-muted-foreground",children:ve.format(p)},p.getDay()))}),t.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:de.flat().map(p=>{const ke=p.getMonth()===b.getMonth(),Se=Ce.get(Be(p))??[];return t.jsxs("div",{onDragOver:v=>{g&&(v.preventDefault(),v.dataTransfer.dropEffect="move")},onDrop:v=>{v.preventDefault();const fe=v.dataTransfer.getData("text/plain");y(null),fe&&c(fe,p)},className:X("group/day min-h-28 space-y-1 p-2 transition-colors",ke?"bg-background":"bg-muted/40",g&&"hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("div",{className:X("grid size-6 place-items-center rounded-full text-xs",p.getTime()===De.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:p.getDate()}),m&&t.jsx(ae,{variant:"ghost",size:"icon",className:"size-6 opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:d,onClick:()=>a(p),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:Ne.format(p)}),children:t.jsx(_e,{size:14})})]}),Se.map(v=>t.jsx(ge,{entry:v,active:v.post.key===o,draggable:m&&v.scheduled,onSelect:l,onDragStateChange:y},v.post.key))]},p.getTime())})}),le]}),E="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",P=t.jsx("p",{className:"px-1 text-[11px] font-medium uppercase tracking-wider text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:me.length})}),_=me.length===0?t.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[t.jsx(ze,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),t.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):me.map(p=>t.jsx(ge,{entry:p,active:p.post.key===o,draggable:!1,onSelect:l,onDragStateChange:y},p.post.key)),e[5]=m,e[6]=b,e[7]=x,e[8]=g,e[9]=d,e[10]=h,e[11]=f,e[12]=a,e[13]=c,e[14]=l,e[15]=o,e[16]=r,e[17]=j,e[18]=N,e[19]=T,e[20]=z,e[21]=k,e[22]=E,e[23]=P,e[24]=_,e[25]=A,e[26]=M,e[27]=S}else j=e[17],N=e[18],T=e[19],z=e[20],k=e[21],E=e[22],P=e[23],_=e[24],A=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==_?(U=t.jsxs("div",{className:E,children:[P,_]}),e[70]=E,e[71]=P,e[72]=_,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==A||e[76]!==M?(I=t.jsxs("div",{className:A,children:[M,U]}),e[74]=U,e[75]=A,e[76]=M,e[77]=I):I=e[77];let L;e[78]!==j||e[79]!==N||e[80]!==I||e[81]!==S?(L=t.jsx(j,{className:S,inert:N,children:I}),e[78]=j,e[79]=N,e[80]=I,e[81]=S,e[82]=L):L=e[82];let $;e[83]!==m||e[84]!==i?($=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=$):$=e[85];let O;e[86]!==T||e[87]!==L||e[88]!==$?(O=t.jsxs("div",{className:T,children:[L,$]}),e[86]=T,e[87]=L,e[88]=$,e[89]=O):O=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==O?(ee=t.jsxs("div",{className:z,children:[k,O]}),e[90]=z,e[91]=k,e[92]=O,e[93]=ee):ee=e[93],ee}function qe(u){return he(u,1)}function Ge(u){return he(u,-1)}function Ve(){return be(new Date)}function xe(u){const e=ne.c(7),{className:x,label:i}=u;let o;e[0]!==x?(o=X("size-3 rounded-sm border",x),e[0]=x,e[1]=o):o=e[1];let l;e[2]!==o?(l=t.jsx("span",{className:o}),e[2]=o,e[3]=l):l=e[3];let a;return e[4]!==i||e[5]!==l?(a=t.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[l,i]}),e[4]=i,e[5]=l,e[6]=a):a=e[6],a}function ge(u){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=u,c=ce(),{post:s,scheduled:d}=x,r=d?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let n;e[0]!==c||e[1]!==r?(n=c(r),e[0]=c,e[1]=r,e[2]=n):n=e[2];const m=n;let g;e[3]!==a||e[4]!==s.key?(g=N=>{N.dataTransfer.setData("text/plain",s.key),N.dataTransfer.effectAllowed="move",a(s.key)},e[3]=a,e[4]=s.key,e[5]=g):g=e[5];let y;e[6]!==a?(y=()=>a(null),e[6]=a,e[7]=y):y=e[7];let C;e[8]!==l||e[9]!==s.key?(C=()=>l(s.key),e[8]=l,e[9]=s.key,e[10]=C):C=e[10];const b=`${s.title} · ${m}`,w=d?je:ye,h=o&&"cursor-grab active:cursor-grabbing",D=i&&"ring-2 ring-primary";let f;e[11]!==w||e[12]!==h||e[13]!==D?(f=X("w-full truncate rounded-md border px-2 py-1 text-left text-xs font-medium transition-colors",w,h,D),e[11]=w,e[12]=h,e[13]=D,e[14]=f):f=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==f||e[18]!==g||e[19]!==y||e[20]!==C||e[21]!==b?(j=t.jsx("button",{type:"button",draggable:o,onDragStart:g,onDragEnd:y,onClick:C,title:b,className:f,children:s.title}),e[15]=o,e[16]=s.title,e[17]=f,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{$o as PostCalendar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-B5R-ECHm.js";import{b as Be}from"./chat-context-PKiduEXT.js";import{i as Ie}from"./AlertCircle-d_jYW-pF.js";import{n as Ae}from"./LinkExternal01-DY154voS.js";import{b3 as Re,m as De}from"./agent-icon-BM9CQspm.js";import{I as ue}from"./input-DSE7gQf1.js";import{L as xe}from"./label-bKnld9-e.js";import{M as $e}from"./multi-select-CbMJAEZF.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-B1m4e_Lf.js";import{S as Se}from"./switch-DXyXcz0k.js";import{T as Le}from"./textarea-C8A1NtUt.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-PlC49IUs.js";import{b as Qe,a as et,B as tt}from"./block-document-IwRwz7ED.js";import{u as st}from"./use-autosave-BRWbTp2x.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-ryVKph93.js";import"./tab-id-C7NSeDZO.js";import"./dialog-BQ-t4CF4.js";import"./Check-KqwAmcDj.js";import"./Copy01-DQMklNBZ.js";import"./Download01-BCA2ING7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-APRq5B-N.js";import"./use-mcp-client-Bu-g594J.js";import"./constants-_08zpzmT.js";import"./auth-D0FayD-s.js";import"./decopilot-sse-pool-CzhRRg62.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DKc17TzC.js";import"./use-ai-providers-BWG1j4R3.js";import"./use-decopilot-events-0HarKwn7.js";import"./use-organization-settings-DeS0wGS3.js";import"./Tool01-TcrXKmnF.js";import"./ArrowUp-DmYjuyWi.js";import"./ArrowLeft-B5SdDJS5.js";import"./Tool02-DWE9dUHc.js";import"./XCircle-CJ79pnxP.js";import"./TrendUp01-DehiMCpc.js";import"./ZapSquare-Cx_Z2jAm.js";import"./Users03-C_Br2__w.js";import"./UserSquare-CYgbi1K9.js";import"./CheckCircle-DuO-pGO-.js";import"./ChevronDown-BQZF9Af9.js";import"./ChevronRight-Bq8eLOWM.js";import"./ChevronSelectorVertical-DrHEbUrw.js";import"./ChevronUp-BnjYp300.js";import"./DotsVertical-DmFi_5m5.js";import"./Stars02-NRIRt4tn.js";import"./CreditCard01-ayJva4-L.js";import"./Settings02-CDWROrkG.js";import"./Eye-CRgVrt0h.js";import"./FilterLines-D6T5uoZ8.js";import"./Share07-rauAL5Pr.js";import"./Globe01-KXkuiG0o.js";import"./Globe04-kFCzhDtq.js";import"./SwitchHorizontal01-BLilv7ln.js";import"./HardDrive-IGVDCiH-.js";import"./Key01-zoXnVGpi.js";import"./LockUnlocked01-BUPOcE7Q.js";import"./LogOut01-vFXcKA44.js";import"./Monitor01-IMrl8-Sz.js";import"./Sun-BDdwc-Zh.js";import"./Palette-CO-9fV73.js";import"./Play-Cnds4faY.js";import"./Plus-DeCuWgpG.js";import"./SearchLg-LSbMLZI6.js";import"./SearchMd-C6SjxYyL.js";import"./Shield01-CJQrmrbA.js";import"./Stars01-DqVhL0wf.js";import"./Trash01-DoWKJDZO.js";import"./Upload01-DROOnA_X.js";import"./User01-DBp5CtcM.js";import"./Users01-D845Yde-.js";import"./XClose-BOvSf6KB.js";import"./Zap-CYPfTI6g.js";import"./badge-D3zUUYug.js";import"./checkbox-BZ02x3Tw.js";import"./command-UPps-OHa.js";import"./index-ChJw-ECJ.js";import"./popover-DH9TTdnh.js";import"./automation-runs-BwVIBljL.js";import"./select-D5jnyj0l.js";import"./useInfiniteQuery-CtQupOcz.js";import"./use-infinite-scroll-DSYZfzYp.js";import"./use-connection-CFAFM3Yj.js";import"./table-BdiZmxkC.js";import"./empty-state-Z6jBJyBE.js";import"./use-members-yMUdTS3F.js";import"./use-org-auth-client-DZGh6wmi.js";import"./use-clock-tick-BmMJ4C9l.js";import"./use-automations-CESfm05a.js";import"./useSuspenseInfiniteQuery-DsYLPBXT.js";import"./avatar-CqQE-eFC.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Du-_RwSH.js";import"./monaco-editor-DfjGwIkC.js";import"./spinner-ClifCs3i.js";import"./types-qEmgOr-R.js";import"./shell-layout-CAm70xM1.js";import"./required-auth-layout-DoToYqRI.js";import"./use-org-sso-CmTeA9vF.js";import"./integration-icon-BNk_AQRx.js";import"./use-navigate-to-agent-CioCH7VJ.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-wUtBUsj3.js";import"./index-CCWpCA-G.js";import"./form-WUWViVui.js";import"./file-type-icon-k6QIypVu.js";import"./drawer-Db54djTH.js";import"./collection-search-CksSLFKw.js";import"./toggle-group-B9nynTTu.js";import"./use-commerce-diagnostic-Ll9Jxlc1.js";import"./self-tool-result-CIZIi6Il.js";import"./alert-dialog-CJVL1k9x.js";import"./extract-connection-data-B6RBsrzJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D7E7obaB.js";import"./authenticate-and-persist-oauth-t3Fvmhc7.js";import"./mcp-oauth-CIUwYU01.js";import"./track-BeWveGxs.js";import"./toolbar-Dn87lyB_.js";import"./github-repo-picker-CntGYv-N.js";import"./use-mcp-tools-Dtn2uWjv.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CmsTkv4b.js";import"./use-registry-connections-DENDz1rF.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-BP-W1_HA.js";import"./collection-tabs-Lyg-Hx2-.js";import"./select-model-DPpBxnrS.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-B6201d9G.js";import"./dropdown-menu-Dl9RzbmM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dk4EoSoR.js";import"./use-file-configs-BxpfXHj_.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-44xRW5_u.js";import"./search-input-Bghs_Bjp.js";import"./index-C6_zR0Yd.js";import"./use-secrets-7WKBJtby.js";import"./AreaChart-6ExM5C57.js";import"./task-key-DzvP3l3i.js";import"./sprints-C1R8b2UK.js";import"./use-tags-CrW3MALx.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C9Xx9zFJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CwiMJzn0.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function li(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=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:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{li as PostEditor};
|
|
1
|
+
import{c as he,b as be,j as t,ab as ye,a8 as ke,a9 as Ne,B as Fe}from"./index-DYhuz5u4.js";import{b as Be}from"./chat-context-IN2mbOb6.js";import{i as Ie}from"./AlertCircle-BDusuqHR.js";import{n as Ae}from"./LinkExternal01-DYnPaZ3r.js";import{b3 as Re,m as De}from"./agent-icon-Dapja1ku.js";import{I as ue}from"./input-BeEZ0yYi.js";import{L as xe}from"./label-lJB9hx_m.js";import{M as $e}from"./multi-select-Bnq19Oes.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-BdxtePF9.js";import{S as Se}from"./switch-AL0FRwjR.js";import{T as Le}from"./textarea-CR9D7Jr6.js";import{G as Ve,T as Ue,U as Ye,V as ze,W as Te,K as Ke,X as qe,Y as Ge,Z as He,_ as Oe,$ as We,a0 as Ee,a1 as ge,a2 as Xe,a3 as Ze,a4 as Je,a5 as we}from"./index-B_eYuc0U.js";import{b as Qe,a as et,B as tt}from"./block-document-CDxFY6AG.js";import{u as st}from"./use-autosave-BxpSUaYU.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-R8WLKcdc.js";import"./tab-id-CRYGEVwl.js";import"./dialog-D4TKCpgT.js";import"./Check-eRPNoavQ.js";import"./Copy01-DRSCHQwE.js";import"./Download01-BH3cjMrI.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-Ce8j84Dj.js";import"./use-mcp-client-rUWSEc22.js";import"./constants-_08zpzmT.js";import"./auth-58obgKjX.js";import"./decopilot-sse-pool-DD1r1Ni7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DgtJLqTs.js";import"./use-ai-providers-CYnRe4Z_.js";import"./use-decopilot-events-C3Qa806m.js";import"./use-organization-settings-DJ4tVzFq.js";import"./Tool01-DOhRtqWP.js";import"./ArrowUp-CEPWXS-3.js";import"./ArrowLeft-0tHCTq_5.js";import"./Tool02-BeXTGPXn.js";import"./XCircle-C9nVincA.js";import"./TrendUp01-Kbryww01.js";import"./ZapSquare-CP5-bflA.js";import"./Users03-CJFHaNa3.js";import"./UserSquare-4N_O4Huh.js";import"./CheckCircle-D5qJu1Fm.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronRight-DCgSscRL.js";import"./ChevronSelectorVertical-B3t1cekd.js";import"./ChevronUp-iWYokpT6.js";import"./DotsVertical-4USgsJk6.js";import"./Stars02-DLckXeQE.js";import"./CreditCard01-BSTb8Mc9.js";import"./Settings02-DmvOMOJi.js";import"./Eye-CTLVmBpG.js";import"./FilterLines-BsHaUIT2.js";import"./Share07-CRjpz7Rb.js";import"./Globe01-DklSBKay.js";import"./Globe04-F8f-0PZt.js";import"./SwitchHorizontal01-CwhrY0ka.js";import"./HardDrive-DjJMW3nS.js";import"./Key01-C1runo_O.js";import"./LockUnlocked01-DOMhyB5E.js";import"./LogOut01-Ah-KAndl.js";import"./Monitor01-DQPfjm9A.js";import"./Sun-D7tOZ_nt.js";import"./Palette-D3b-Xu-h.js";import"./Play-Cwr6OeyJ.js";import"./Plus-o6GtUPlY.js";import"./SearchLg-CspkxEWY.js";import"./SearchMd-RYRFlTFn.js";import"./Shield01-rgn5f9FP.js";import"./Stars01-DZNPrk3T.js";import"./Trash01-M0RrAQ6e.js";import"./Upload01-B5ikfnMw.js";import"./User01-CNoTVT8V.js";import"./Users01-Cwzg4OyC.js";import"./XClose-p_PG6PPu.js";import"./Zap-BxAmuoGy.js";import"./badge-CGEHhIh7.js";import"./checkbox-O8sasvu3.js";import"./command-BhDqTkTk.js";import"./index-BUVqLPW9.js";import"./popover-C35Me60K.js";import"./automation-runs-CdXs2_3V.js";import"./select-pRcFQMbD.js";import"./useInfiniteQuery-Cka6pm7d.js";import"./use-infinite-scroll-s7hE4wtn.js";import"./use-connection-qRC7PjST.js";import"./table-CjUGtpAn.js";import"./empty-state-DhEtzlSH.js";import"./use-members-B_8MrweM.js";import"./use-org-auth-client-B0nKdvcm.js";import"./use-clock-tick-exAPGuDL.js";import"./use-automations-BfUUQWS6.js";import"./useSuspenseInfiniteQuery-_TCm0uwm.js";import"./avatar-93Ky3hst.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-5T5UkCj5.js";import"./monaco-editor-DOTx9L8-.js";import"./spinner-CZafxxZB.js";import"./types-WvZhDZNg.js";import"./shell-layout-Bm5zUndY.js";import"./required-auth-layout-BrkOyyOk.js";import"./use-org-sso-B_CNcFl1.js";import"./integration-icon-Bysc1MQE.js";import"./use-navigate-to-agent-B0Q0MfGV.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-XzF5-7u0.js";import"./index-nBibj1HB.js";import"./form-CnEnIqXp.js";import"./file-type-icon-BZeO1Oso.js";import"./drawer-CGdYXF1V.js";import"./collection-search-CVsH-m_a.js";import"./toggle-group-COsyIaDP.js";import"./use-commerce-diagnostic-C0d6yhR3.js";import"./self-tool-result-CBXC7R0E.js";import"./alert-dialog-Dolo_dDt.js";import"./extract-connection-data-DOVwP3xc.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DexciQ0U.js";import"./authenticate-and-persist-oauth-CrLLgM6o.js";import"./mcp-oauth-bixKz7BF.js";import"./track-Co-CdXjd.js";import"./toolbar-DtHs7yB3.js";import"./github-repo-picker-BDL6quG_.js";import"./use-mcp-tools-BFb2reXp.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-GIYyR3Dk.js";import"./use-registry-connections-cskepZKY.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-C1AXlsMA.js";import"./collection-tabs-Dou_bmpW.js";import"./select-model-DHRgtkJ-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BWQ3fTI6.js";import"./dropdown-menu-VzXuM7DT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-p1DffsVl.js";import"./use-file-configs-07hOycAD.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-DwM6UtRL.js";import"./search-input-4XgXHQd1.js";import"./index-Cr5DqCRY.js";import"./use-secrets-Cj79lIU5.js";import"./AreaChart-D3QDeFur.js";import"./task-key-DpQDci0a.js";import"./sprints-CA-TQC6e.js";import"./use-tags-B8zJ4C0I.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-B7NdzgK2.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CJeOf4LS.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function li(V){const e=he.c(126),{orgSlug:s,virtualMcpId:d,branch:i,blockKey:o,block:p,decofile:l,meta:r,previewBaseUrl:c}=V,a=be(),m=Be()?.taskId??null;let x;e[0]!==i||e[1]!==s||e[2]!==d?(x={orgSlug:s,virtualMcpId:d,branch:i},e[0]=i,e[1]=s,e[2]=d,e[3]=x):x=e[3];const f=Ve(x);let u;e[4]!==i||e[5]!==r||e[6]!==s||e[7]!==d?(u={orgSlug:s,virtualMcpId:d,branch:i,meta:r},e[4]=i,e[5]=r,e[6]=s,e[7]=d,e[8]=u):u=e[8];const C=Ue(u);let b;e[9]!==i||e[10]!==s||e[11]!==d?(b={orgSlug:s,virtualMcpId:d,branch:i},e[9]=i,e[10]=s,e[11]=d,e[12]=b):b=e[12];const g=Ye(b);let j;e[13]!==p?(j=ze(p,"posts"),e[13]=p,e[14]=j):j=e[14];const k=j;let P;e[15]!==o||e[16]!==f?(P=W=>{f.mutate({blockKey:o,data:qe(o,"posts",Ge(W))})},e[15]=o,e[16]=f,e[17]=P):P=e[17];const[n,S]=st(k,P);let U;e[18]!==n||e[19]!==S?(U=(W,h)=>S({...n,[W]:h}),e[18]=n,e[19]=S,e[20]=U):U=e[20];const y=U;let Y;e[21]!==l||e[22]!==g||e[23]!==n||e[24]!==c?(Y=Qe({decofile:l,post:n,previewBaseUrl:c,draftPointer:g}),e[21]=l,e[22]=g,e[23]=n,e[24]=c,e[25]=Y):Y=e[25];const N=Y;let v,L,z;e[26]!==n||e[27]!==a?(L=Te(n),v=L.length>0,z=L.length===1?a("sandbox.postEditor.missingFieldSingular",{fields:L.join(", ")}):a("sandbox.postEditor.missingFieldPlural",{fields:L.join(", ")}),e[26]=n,e[27]=a,e[28]=v,e[29]=L,e[30]=z):(v=e[28],L=e[29],z=e[30]);const T=z;let w;e[31]!==n.title||e[32]!==a?(w=X(n.title)||a("sandbox.postEditor.untitledPost"),e[31]=n.title,e[32]=a,e[33]=w):w=e[33];let F;e[34]!==w?(F=t.jsx("span",{className:"truncate text-sm font-medium",children:w}),e[34]=w,e[35]=F):F=e[35];let B;e[36]!==v||e[37]!==L||e[38]!==T||e[39]!==a?(B=v&&t.jsxs(ye,{children:[t.jsx(ke,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Ie,{size:14}),L.length," ",L.length===1?a("sandbox.postEditor.issueSingular"):a("sandbox.postEditor.issuePlural")]})}),t.jsx(Ne,{side:"bottom",children:T})]}),e[36]=v,e[37]=L,e[38]=T,e[39]=a,e[40]=B):B=e[40];let I;e[41]!==f.isError||e[42]!==f.isPending?(I=t.jsx(Ke,{isPending:f.isPending,isError:f.isError}),e[41]=f.isError,e[42]=f.isPending,e[43]=I):I=e[43];const G=!N||v;let A;e[44]!==v||e[45]!==T||e[46]!==N||e[47]!==a?(A=v?T:a(N?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),e[44]=v,e[45]=T,e[46]=N,e[47]=a,e[48]=A):A=e[48];let R;e[49]!==v||e[50]!==N?(R=()=>{N&&!v&&window.open(N,"_blank","noopener,noreferrer")},e[49]=v,e[50]=N,e[51]=R):R=e[51];let K;e[52]===Symbol.for("react.memo_cache_sentinel")?(K=t.jsx(Ae,{size:14}),e[52]=K):K=e[52];let D;e[53]!==a?(D=a("sandbox.postEditor.seePreview"),e[53]=a,e[54]=D):D=e[54];let $;e[55]!==G||e[56]!==A||e[57]!==R||e[58]!==D?($=t.jsxs(Fe,{type:"button",variant:"outline",size:"sm",disabled:G,title:A,onClick:R,children:[K,D]}),e[55]=G,e[56]=A,e[57]=R,e[58]=D,e[59]=$):$=e[59];let H;e[60]!==B||e[61]!==I||e[62]!==$?(H=t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[B,I,$]}),e[60]=B,e[61]=I,e[62]=$,e[63]=H):H=e[63];let O;e[64]!==F||e[65]!==H?(O=t.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[F,H]}),e[64]=F,e[65]=H,e[66]=O):O=e[66];let _;e[67]!==n.title?(_=X(n.title),e[67]=n.title,e[68]=_):_=e[68];let M;e[69]!==y?(M=W=>y("title",W),e[69]=y,e[70]=M):M=e[70];let q;e[71]!==a?(q=a("sandbox.postEditor.postTitlePlaceholder"),e[71]=a,e[72]=q):q=e[72];let E;e[73]!==_||e[74]!==M||e[75]!==q?(E=t.jsx(lt,{value:_,onChange:M,placeholder:q,className:"py-1 text-4xl font-bold text-foreground"}),e[73]=_,e[74]=M,e[75]=q,e[76]=E):E=e[76];let Z;e[77]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Re,{}),e[77]=Z):Z=e[77];let J;e[78]!==a?(J=a("sandbox.postEditor.contentTab"),e[78]=a,e[79]=J):J=e[79];let Q;e[80]!==J?(Q=t.jsxs(je,{value:"content",children:[Z,J]}),e[80]=J,e[81]=Q):Q=e[81];let me;e[82]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(De,{}),e[82]=me):me=e[82];let ee;e[83]!==a?(ee=a("sandbox.postEditor.settingsTab"),e[83]=a,e[84]=ee):ee=e[84];let te;e[85]!==ee?(te=t.jsxs(je,{value:"settings",children:[me,ee]}),e[85]=ee,e[86]=te):te=e[86];let se;e[87]!==Q||e[88]!==te?(se=t.jsxs(_e,{children:[Q,te]}),e[87]=Q,e[88]=te,e[89]=se):se=e[89];let le;e[90]!==n.sections?(le=et(n.sections),e[90]=n.sections,e[91]=le):le=e[91];let ie;e[92]!==y?(ie=W=>y("sections",W),e[92]=y,e[93]=ie):ie=e[93];let oe;e[94]!==i||e[95]!==s||e[96]!==m||e[97]!==d?(oe={orgSlug:s,virtualMcpId:d,branch:i,threadId:m},e[94]=i,e[95]=s,e[96]=m,e[97]=d,e[98]=oe):oe=e[98];let ae;e[99]!==a?(ae=a("sandbox.postEditor.noContentYet"),e[99]=a,e[100]=ae):ae=e[100];let re;e[101]!==r||e[102]!==le||e[103]!==ie||e[104]!==oe||e[105]!==ae?(re=t.jsx(ve,{value:"content",children:t.jsx("div",{className:"rounded-xl border bg-card p-8 shadow-sm",children:t.jsx(tt,{value:le,onChange:ie,meta:r,sandboxRef:oe,emptyMessage:ae})})}),e[101]=r,e[102]=le,e[103]=ie,e[104]=oe,e[105]=ae,e[106]=re):re=e[106];let ne;e[107]!==n||e[108]!==S?(ne=W=>S({...n,...W}),e[107]=n,e[108]=S,e[109]=ne):ne=e[109];let de;e[110]!==l||e[111]!==n||e[112]!==y||e[113]!==C||e[114]!==ne?(de=t.jsx(ve,{value:"settings",children:t.jsx("div",{className:"rounded-xl border bg-card p-6 shadow-sm",children:t.jsx(rt,{post:n,decofile:l,support:C,onChange:y,onPatch:ne})})}),e[110]=l,e[111]=n,e[112]=y,e[113]=C,e[114]=ne,e[115]=de):de=e[115];let pe;e[116]!==se||e[117]!==re||e[118]!==de?(pe=t.jsxs(Me,{defaultValue:"content",className:"mt-6 gap-4",children:[se,re,de]}),e[116]=se,e[117]=re,e[118]=de,e[119]=pe):pe=e[119];let ce;e[120]!==E||e[121]!==pe?(ce=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:[E,pe]})}),e[120]=E,e[121]=pe,e[122]=ce):ce=e[122];let fe;return e[123]!==O||e[124]!==ce?(fe=t.jsxs("div",{className:"flex h-full flex-col",children:[O,ce]}),e[123]=O,e[124]=ce,e[125]=fe):fe=e[125],fe}function Ce(V){const e=he.c(18),{id:s,label:d,checked:i,blocked:o,blockedReason:p,className:l,onCheckedChange:r}=V;let c;e[0]!==s||e[1]!==d?(c=t.jsx(xe,{htmlFor:s,children:d}),e[0]=s,e[1]=d,e[2]=c):c=e[2];let a;e[3]!==o||e[4]!==i||e[5]!==l||e[6]!==s||e[7]!==r?(a=t.jsx(ke,{asChild:!0,children:t.jsx("span",{children:t.jsx(Se,{id:s,className:l,checked:i,disabled:o,onCheckedChange:r})})}),e[3]=o,e[4]=i,e[5]=l,e[6]=s,e[7]=r,e[8]=a):a=e[8];let m;e[9]!==o||e[10]!==p?(m=o&&t.jsx(Ne,{side:"bottom",children:p}),e[9]=o,e[10]=p,e[11]=m):m=e[11];let x;e[12]!==a||e[13]!==m?(x=t.jsxs(ye,{children:[a,m]}),e[12]=a,e[13]=m,e[14]=x):x=e[14];let f;return e[15]!==c||e[16]!==x?(f=t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[c,x]}),e[15]=c,e[16]=x,e[17]=f):f=e[17],f}function rt(V){const e=he.c(142),{post:s,decofile:d,support:i,onChange:o,onPatch:p}=V,l=be();let r;e[0]!==i?(r=He(i),e[0]=i,e[1]=r):r=e[1];const c=r;let a;e[2]!==i?(a=Oe(i),e[2]=i,e[3]=a):a=e[3];const m=a;let x;e[4]!==s?(x=We(s),e[4]=s,e[5]=x):x=e[5];const f=x,u=m&&f==="scheduled";let C;if(e[6]!==s||e[7]!==l){const h=Te(s);C=h.length===1?l("sandbox.postEditor.missingFieldSingular",{fields:h.join(", ")}):l("sandbox.postEditor.missingFieldPlural",{fields:h.join(", ")}),e[6]=s,e[7]=l,e[8]=C}else C=e[8];const b=C;let g;e[9]!==p||e[10]!==s?(g=h=>p(Je(s,h,new Date)),e[9]=p,e[10]=s,e[11]=g):g=e[11];const j=g;let k;e[12]!==c||e[13]!==m||e[14]!==u||e[15]!==b||e[16]!==o||e[17]!==s||e[18]!==j||e[19]!==f||e[20]!==l?(k=c&&t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[m&&t.jsx(Ce,{id:"post-scheduled",label:l("sandbox.postEditor.schedulingLabel"),checked:u,blocked:Ee(s,"scheduled"),blockedReason:b,onCheckedChange:h=>j(h?"scheduled":"draft")}),u?t.jsx(ge,{schema:{type:"string",format:"date-time",title:l("sandbox.postEditor.scheduledDatetimeLabel"),description:l("sandbox.postEditor.scheduledDatetimeDescription")},value:X(s.scheduledDatetime),onChange:h=>o("scheduledDatetime",h),path:"post-scheduled-datetime",label:l("sandbox.postEditor.scheduledDatetimeLabel")}):t.jsx(Ce,{id:"post-published",label:l("sandbox.postEditor.publishedLabel"),className:"data-[state=checked]:bg-success",checked:f==="published",blocked:Ee(s,"published"),blockedReason:b,onCheckedChange:h=>j(h?"published":"draft")})]}),e[12]=c,e[13]=m,e[14]=u,e[15]=b,e[16]=o,e[17]=s,e[18]=j,e[19]=f,e[20]=l,e[21]=k):k=e[21];let P;e[22]!==l?(P=l("sandbox.postEditor.excerptLabel"),e[22]=l,e[23]=P):P=e[23];let n;e[24]!==P?(n=t.jsx(xe,{htmlFor:"post-excerpt",children:P}),e[24]=P,e[25]=n):n=e[25];let S;e[26]!==s.excerpt?(S=X(s.excerpt),e[26]=s.excerpt,e[27]=S):S=e[27];let U;e[28]!==o?(U=h=>o("excerpt",h.target.value),e[28]=o,e[29]=U):U=e[29];let y;e[30]!==U||e[31]!==S?(y=t.jsx(Le,{id:"post-excerpt",value:S,onChange:U,rows:2}),e[30]=U,e[31]=S,e[32]=y):y=e[32];let Y;e[33]!==y||e[34]!==n?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[33]=y,e[34]=n,e[35]=Y):Y=e[35];let N;e[36]!==l?(N=l("sandbox.postEditor.slugLabel"),e[36]=l,e[37]=N):N=e[37];let v;e[38]!==N?(v=t.jsx(xe,{htmlFor:"post-slug",children:N}),e[38]=N,e[39]=v):v=e[39];let L;e[40]!==s.slug?(L=X(s.slug),e[40]=s.slug,e[41]=L):L=e[41];let z;e[42]!==o?(z=h=>o("slug",h.target.value),e[42]=o,e[43]=z):z=e[43];let T;e[44]!==l?(T=l("sandbox.postEditor.slugPlaceholder"),e[44]=l,e[45]=T):T=e[45];let w;e[46]!==L||e[47]!==z||e[48]!==T?(w=t.jsx(ue,{id:"post-slug",value:L,onChange:z,placeholder:T,className:"h-10"}),e[46]=L,e[47]=z,e[48]=T,e[49]=w):w=e[49];let F;e[50]!==v||e[51]!==w?(F=t.jsxs("div",{className:"space-y-2",children:[v,w]}),e[50]=v,e[51]=w,e[52]=F):F=e[52];let B;e[53]!==l?(B=l("sandbox.postEditor.dateLabel"),e[53]=l,e[54]=B):B=e[54];let I;e[55]!==B?(I={type:"string",format:"date",title:B},e[55]=B,e[56]=I):I=e[56];let G;e[57]!==s.date?(G=X(s.date),e[57]=s.date,e[58]=G):G=e[58];let A;e[59]!==o?(A=h=>o("date",h),e[59]=o,e[60]=A):A=e[60];let R;e[61]!==l?(R=l("sandbox.postEditor.dateLabel"),e[61]=l,e[62]=R):R=e[62];let K;e[63]!==I||e[64]!==G||e[65]!==A||e[66]!==R?(K=t.jsx(ge,{schema:I,value:G,onChange:A,path:"post-date",label:R}),e[63]=I,e[64]=G,e[65]=A,e[66]=R,e[67]=K):K=e[67];let D;e[68]!==F||e[69]!==K?(D=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[F,K]}),e[68]=F,e[69]=K,e[70]=D):D=e[70];let $;e[71]!==l?($=l("sandbox.postEditor.coverImageLabel"),e[71]=l,e[72]=$):$=e[72];let H;e[73]!==$?(H={type:"string",format:"image-uri",title:$},e[73]=$,e[74]=H):H=e[74];const O=s.image;let _;e[75]!==o?(_=h=>o("image",h),e[75]=o,e[76]=_):_=e[76];let M;e[77]!==l?(M=l("sandbox.postEditor.coverImageLabel"),e[77]=l,e[78]=M):M=e[78];let q;e[79]!==s.image||e[80]!==H||e[81]!==_||e[82]!==M?(q=t.jsx(we,{schema:H,value:O,onChange:_,path:"post-image",label:M}),e[79]=s.image,e[80]=H,e[81]=_,e[82]=M,e[83]=q):q=e[83];let E;e[84]!==l?(E=l("sandbox.postEditor.coverAltLabel"),e[84]=l,e[85]=E):E=e[85];let Z;e[86]!==l?(Z=l("sandbox.postEditor.coverAltDescription"),e[86]=l,e[87]=Z):Z=e[87];let J;e[88]!==E||e[89]!==Z?(J={type:"string",title:E,description:Z},e[88]=E,e[89]=Z,e[90]=J):J=e[90];let Q;e[91]!==s.alt?(Q=X(s.alt),e[91]=s.alt,e[92]=Q):Q=e[92];let me;e[93]!==o?(me=h=>o("alt",h),e[93]=o,e[94]=me):me=e[94];let ee;e[95]!==l?(ee=l("sandbox.postEditor.coverAltLabel"),e[95]=l,e[96]=ee):ee=e[96];let te;e[97]!==J||e[98]!==Q||e[99]!==me||e[100]!==ee?(te=t.jsx(ge,{schema:J,value:Q,onChange:me,path:"post-alt",label:ee}),e[97]=J,e[98]=Q,e[99]=me,e[100]=ee,e[101]=te):te=e[101];let se;e[102]!==q||e[103]!==te?(se=t.jsxs("div",{className:"space-y-2",children:[q,te]}),e[102]=q,e[103]=te,e[104]=se):se=e[104];let le;e[105]!==l?(le=l("sandbox.postEditor.authorsLabel"),e[105]=l,e[106]=le):le=e[106];let ie;e[107]!==o?(ie=h=>o("authors",h),e[107]=o,e[108]=ie):ie=e[108];let oe;e[109]!==d||e[110]!==s.authors||e[111]!==le||e[112]!==ie?(oe=t.jsx(Pe,{label:le,decofile:d,kind:"authors",valueField:"email",toRef:dt,selected:s.authors,onChange:ie}),e[109]=d,e[110]=s.authors,e[111]=le,e[112]=ie,e[113]=oe):oe=e[113];let ae;e[114]!==l?(ae=l("sandbox.postEditor.categoriesLabel"),e[114]=l,e[115]=ae):ae=e[115];let re;e[116]!==o?(re=h=>o("categories",h),e[116]=o,e[117]=re):re=e[117];let ne;e[118]!==d||e[119]!==s.categories||e[120]!==ae||e[121]!==re?(ne=t.jsx(Pe,{label:ae,decofile:d,kind:"categories",valueField:"slug",toRef:nt,selected:s.categories,onChange:re}),e[118]=d,e[119]=s.categories,e[120]=ae,e[121]=re,e[122]=ne):ne=e[122];let de;e[123]!==o?(de=h=>o("extraProps",h),e[123]=o,e[124]=de):de=e[124];let pe;e[125]!==s.extraProps||e[126]!==de?(pe=t.jsx(ct,{value:s.extraProps,onChange:de}),e[125]=s.extraProps,e[126]=de,e[127]=pe):pe=e[127];let ce;e[128]!==o?(ce=h=>o("seo",h),e[128]=o,e[129]=ce):ce=e[129];let fe;e[130]!==s.seo||e[131]!==ce?(fe=t.jsx(pt,{value:s.seo,onChange:ce}),e[130]=s.seo,e[131]=ce,e[132]=fe):fe=e[132];let W;return e[133]!==Y||e[134]!==D||e[135]!==se||e[136]!==oe||e[137]!==ne||e[138]!==pe||e[139]!==fe||e[140]!==k?(W=t.jsxs("div",{className:"space-y-5",children:[k,Y,D,se,oe,ne,pe,fe]}),e[133]=Y,e[134]=D,e[135]=se,e[136]=oe,e[137]=ne,e[138]=pe,e[139]=fe,e[140]=k,e[141]=W):W=e[141],W}function nt(V){return{name:X(V.name),slug:X(V.slug)}}function dt(V){return{...V}}function pt(V){const e=he.c(93),{value:s,onChange:d}=V,i=be();let o;e[0]!==s?(o=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=o):o=e[1];const p=o;let l;e[2]!==d||e[3]!==p?(l=(E,Z)=>d({...p,[E]:Z}),e[2]=d,e[3]=p,e[4]=l):l=e[4];const r=l;let c;e[5]!==i?(c=i("sandbox.postEditor.seoSectionLabel"),e[5]=i,e[6]=c):c=e[6];let a;e[7]!==c?(a=t.jsx("p",{className:"text-sm font-medium",children:c}),e[7]=c,e[8]=a):a=e[8];let m;e[9]!==i?(m=i("sandbox.postEditor.seoSectionHint"),e[9]=i,e[10]=m):m=e[10];let x;e[11]!==m?(x=t.jsx("p",{className:"text-xs text-muted-foreground",children:m}),e[11]=m,e[12]=x):x=e[12];let f;e[13]!==a||e[14]!==x?(f=t.jsxs("div",{className:"space-y-1",children:[a,x]}),e[13]=a,e[14]=x,e[15]=f):f=e[15];let u;e[16]!==i?(u=i("sandbox.postEditor.seoTitleLabel"),e[16]=i,e[17]=u):u=e[17];let C;e[18]!==u?(C=t.jsx(xe,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=C):C=e[19];let b;e[20]!==p.title?(b=X(p.title),e[20]=p.title,e[21]=b):b=e[21];let g;e[22]!==r?(g=E=>r("title",E.target.value),e[22]=r,e[23]=g):g=e[23];let j;e[24]!==b||e[25]!==g?(j=t.jsx(ue,{id:"post-seo-title",value:b,onChange:g,className:"h-10"}),e[24]=b,e[25]=g,e[26]=j):j=e[26];let k;e[27]!==j||e[28]!==C?(k=t.jsxs("div",{className:"space-y-2",children:[C,j]}),e[27]=j,e[28]=C,e[29]=k):k=e[29];let P;e[30]!==i?(P=i("sandbox.postEditor.seoDescriptionLabel"),e[30]=i,e[31]=P):P=e[31];let n;e[32]!==P?(n=t.jsx(xe,{htmlFor:"post-seo-description",children:P}),e[32]=P,e[33]=n):n=e[33];let S;e[34]!==p.description?(S=X(p.description),e[34]=p.description,e[35]=S):S=e[35];let U;e[36]!==r?(U=E=>r("description",E.target.value),e[36]=r,e[37]=U):U=e[37];let y;e[38]!==S||e[39]!==U?(y=t.jsx(Le,{id:"post-seo-description",value:S,onChange:U,rows:2}),e[38]=S,e[39]=U,e[40]=y):y=e[40];let Y;e[41]!==n||e[42]!==y?(Y=t.jsxs("div",{className:"space-y-2",children:[n,y]}),e[41]=n,e[42]=y,e[43]=Y):Y=e[43];let N;e[44]!==i?(N=i("sandbox.postEditor.seoImageLabel"),e[44]=i,e[45]=N):N=e[45];let v;e[46]!==N?(v={type:"string",format:"image-uri",title:N},e[46]=N,e[47]=v):v=e[47];const L=p.image;let z;e[48]!==r?(z=E=>r("image",E),e[48]=r,e[49]=z):z=e[49];let T;e[50]!==i?(T=i("sandbox.postEditor.seoImageLabel"),e[50]=i,e[51]=T):T=e[51];let w;e[52]!==p.image||e[53]!==v||e[54]!==z||e[55]!==T?(w=t.jsx(we,{schema:v,value:L,onChange:z,path:"post-seo-image",label:T}),e[52]=p.image,e[53]=v,e[54]=z,e[55]=T,e[56]=w):w=e[56];let F;e[57]!==i?(F=i("sandbox.postEditor.seoCanonicalLabel"),e[57]=i,e[58]=F):F=e[58];let B;e[59]!==F?(B=t.jsx(xe,{htmlFor:"post-seo-canonical",children:F}),e[59]=F,e[60]=B):B=e[60];let I;e[61]!==p.canonical?(I=X(p.canonical),e[61]=p.canonical,e[62]=I):I=e[62];let G;e[63]!==r?(G=E=>r("canonical",E.target.value),e[63]=r,e[64]=G):G=e[64];let A;e[65]!==i?(A=i("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=i,e[66]=A):A=e[66];let R;e[67]!==I||e[68]!==G||e[69]!==A?(R=t.jsx(ue,{id:"post-seo-canonical",value:I,onChange:G,placeholder:A,className:"h-10"}),e[67]=I,e[68]=G,e[69]=A,e[70]=R):R=e[70];let K;e[71]!==B||e[72]!==R?(K=t.jsxs("div",{className:"space-y-2",children:[B,R]}),e[71]=B,e[72]=R,e[73]=K):K=e[73];let D;e[74]!==i?(D=i("sandbox.postEditor.seoNoIndexingLabel"),e[74]=i,e[75]=D):D=e[75];let $;e[76]!==D?($=t.jsx(xe,{htmlFor:"post-seo-no-indexing",children:D}),e[76]=D,e[77]=$):$=e[77];const H=p.noIndexing===!0;let O;e[78]!==r?(O=E=>r("noIndexing",E),e[78]=r,e[79]=O):O=e[79];let _;e[80]!==H||e[81]!==O?(_=t.jsx(Se,{id:"post-seo-no-indexing",checked:H,onCheckedChange:O}),e[80]=H,e[81]=O,e[82]=_):_=e[82];let M;e[83]!==$||e[84]!==_?(M=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[$,_]}),e[83]=$,e[84]=_,e[85]=M):M=e[85];let q;return e[86]!==k||e[87]!==Y||e[88]!==w||e[89]!==K||e[90]!==M||e[91]!==f?(q=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[f,k,Y,w,K,M]}),e[86]=k,e[87]=Y,e[88]=w,e[89]=K,e[90]=M,e[91]=f,e[92]=q):q=e[92],q}function ct(V){const e=he.c(24),{value:s,onChange:d}=V,i=be();let o,p,l,r;if(e[0]!==d||e[1]!==i||e[2]!==s){o=at(s);const f=(C,b)=>d(o.map((g,j)=>j===C?{...g,...b}:g));p="space-y-2";let u;e[7]!==i?(u=i("sandbox.postEditor.extraPropsLabel"),e[7]=i,e[8]=u):u=e[8],e[9]!==u?(l=t.jsx(xe,{children:u}),e[9]=u,e[10]=l):l=e[10],r=o.length>0&&t.jsx("ul",{className:"space-y-2",children:o.map((C,b)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(ue,{value:C.key,onChange:g=>f(b,{key:g.target.value}),placeholder:i("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(ue,{value:C.value,onChange:g=>f(b,{value:g.target.value}),placeholder:i("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(it,{label:i("sandbox.postEditor.removePropLabel"),onClick:()=>d(o.filter((g,j)=>j!==b))})]},b))}),e[0]=d,e[1]=i,e[2]=s,e[3]=o,e[4]=p,e[5]=l,e[6]=r}else o=e[3],p=e[4],l=e[5],r=e[6];let c;e[11]!==i?(c=i("sandbox.postEditor.addPropLabel"),e[11]=i,e[12]=c):c=e[12];let a;e[13]!==o||e[14]!==d?(a=()=>d([...o,{key:"",value:""}]),e[13]=o,e[14]=d,e[15]=a):a=e[15];let m;e[16]!==c||e[17]!==a?(m=t.jsx(ot,{label:c,onClick:a}),e[16]=c,e[17]=a,e[18]=m):m=e[18];let x;return e[19]!==p||e[20]!==l||e[21]!==r||e[22]!==m?(x=t.jsxs("div",{className:p,children:[l,r,m]}),e[19]=p,e[20]=l,e[21]=r,e[22]=m,e[23]=x):x=e[23],x}function Pe(V){const e=he.c(24),{label:s,decofile:d,kind:i,valueField:o,toRef:p,selected:l,onChange:r}=V,c=be();let a;e[0]!==d||e[1]!==i||e[2]!==l||e[3]!==p||e[4]!==o?(a=Xe({records:Ze(d,i),selected:l,valueField:o,toRef:p}),e[0]=d,e[1]=i,e[2]=l,e[3]=p,e[4]=o,e[5]=a):a=e[5];const{options:m,selectedValues:x,refsForValues:f}=a;let u;e[6]!==i||e[7]!==c?(u=c(i==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=i,e[7]=c,e[8]=u):u=e[8];const C=u;let b;e[9]!==i||e[10]!==c?(b=c(i==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=i,e[10]=c,e[11]=b):b=e[11];const g=b;let j;e[12]!==s?(j=t.jsx(xe,{children:s}),e[12]=s,e[13]=j):j=e[13];let k;e[14]!==C||e[15]!==r||e[16]!==m||e[17]!==f||e[18]!==g||e[19]!==x?(k=m.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:C}):t.jsx($e,{options:m,defaultValue:x,onValueChange:n=>r(f(n)),placeholder:g,maxCount:4}),e[14]=C,e[15]=r,e[16]=m,e[17]=f,e[18]=g,e[19]=x,e[20]=k):k=e[20];let P;return e[21]!==j||e[22]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[j,k]}),e[21]=j,e[22]=k,e[23]=P):P=e[23],P}export{li as PostEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,n as h,j as a}from"./index-
|
|
1
|
+
import{c as f,n as h,j as a}from"./index-DYhuz5u4.js";import{j as y}from"./agent-icon-Dapja1ku.js";import{s as v}from"./Plus-o6GtUPlY.js";import{s as j}from"./Trash01-M0RrAQ6e.js";function N(o){const e=f.c(14),{value:t,onChange:r,placeholder:s,className:n,onFocus:i,onBlur:l,onKeyDown:c,spellCheck:b,inputRef:p}=o,x=b===void 0?!0:b;let u;e[0]!==r?(u=g=>r(g.target.value),e[0]=r,e[1]=u):u=e[1];let d;e[2]!==n?(d=h("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]!==i||e[7]!==c||e[8]!==s||e[9]!==x||e[10]!==u||e[11]!==d||e[12]!==t?(m=a.jsx("textarea",{ref:p,value:t,onChange:u,onInput:w,onFocus:i,onBlur:l,onKeyDown:c,placeholder:s,spellCheck:x,rows:1,className:d}),e[4]=p,e[5]=l,e[6]=i,e[7]=c,e[8]=s,e[9]=x,e[10]=u,e[11]=d,e[12]=t,e[13]=m):m=e[13],m}function w(o){const e=o.currentTarget;e.style.height="auto",e.style.height=`${e.scrollHeight}px`}function z(o){return typeof o=="string"?o:""}function T(o){const e=f.c(11);let t,r;e[0]!==o?({className:t,...r}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=h(t,"pr-9"),e[3]=t,e[4]=s):s=e[4];let n;e[5]!==r||e[6]!==s?(n=a.jsx(N,{...r,className:s}),e[5]=r,e[6]=s,e[7]=n):n=e[7];let i;e[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(y,{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]=i):i=e[8];let l;return e[9]!==n?(l=a.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,i]}),e[9]=n,e[10]=l):l=e[10],l}function R(o){const e=f.c(5),{label:t,onClick:r,disabled:s}=o;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(v,{size:13}),e[0]=n):n=e[0];let i;return e[1]!==s||e[2]!==t||e[3]!==r?(i=a.jsxs("button",{type:"button",onClick:r,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,t]}),e[1]=s,e[2]=t,e[3]=r,e[4]=i):i=e[4],i}function B(o){const e=f.c(4),{label:t,onClick:r}=o;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=a.jsx(j,{size:13}),e[0]=s):s=e[0];let n;return e[1]!==t||e[2]!==r?(n=a.jsx("button",{type:"button","aria-label":t,onClick:r,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]=t,e[2]=r,e[3]=n):n=e[3],n}function E(o){const e=f.c(2),{children:t}=o;let r;return e[0]!==t?(r=a.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:t}),e[0]=t,e[1]=r):r=e[1],r}function S(o){const e=f.c(8),{active:t,label:r,onClick:s,children:n}=o,i=t?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground";let l;e[0]!==i?(l=h("flex h-7 min-w-7 items-center justify-center rounded px-1.5 text-sm transition-colors cursor-pointer",i),e[0]=i,e[1]=l):l=e[1];let c;return e[2]!==t||e[3]!==n||e[4]!==r||e[5]!==s||e[6]!==l?(c=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":t,onMouseDown:_,onClick:s,className:l,children:n}),e[2]=t,e[3]=n,e[4]=r,e[5]=s,e[6]=l,e[7]=c):c=e[7],c}function _(o){return o.preventDefault()}function D(o){if(Array.isArray(o))return o;if(typeof o!="string"||o.trim()==="")return[];try{const e=JSON.parse(o);return Array.isArray(e)?e:[]}catch{return[]}}export{R as A,T as E,E as F,N as I,B as R,S as T,D as p,z as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Se,b as Ne,j as s,P as be,d9 as Te,a as Ce,ao as Ee,as as $e,x as Be,q as V,t as Ae,d8 as w,d6 as Le,d7 as ze}from"./index-B5R-ECHm.js";import{A as qe}from"./avatar-CqQE-eFC.js";import{S as ke}from"./switch-DXyXcz0k.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-D5jnyj0l.js";import{a as _e,T as Ge}from"./toggle-group-B9nynTTu.js";import{I as Re}from"./input-DSE7gQf1.js";import{i as Ue}from"./Monitor01-IMrl8-Sz.js";import{n as Fe,a as Oe}from"./Sun-BDdwc-Zh.js";import{i as Ke}from"./Play-Cnds4faY.js";import{u as He}from"./use-debounced-autosave-44xRW5_u.js";import{p as Je,q as Me}from"./question-004-sINsf4GQ.js";import"./User01-DBp5CtcM.js";import"./Check-KqwAmcDj.js";import"./ChevronDown-BQZF9Af9.js";import"./ChevronUp-BnjYp300.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Qe(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let j;e[0]!==a?(j={values:{name:a}},e[0]=a,e[1]=j):j=e[1];const o=Ee(j);let L;e[2]!==o||e[3]!==t?(L={save:async()=>{const k=o.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=o.getValues(),P=o.control._defaultValues;o.reset(x,{keepValues:!0});try{await Ce.updateUser({name:x.name}),V("profile_updated",{fields:["name"]}),Ae.success(t("settings.profile.updateSuccess"))}catch{o.reset(P,{keepValues:!0}),Ae.error(t("settings.profile.updateError"))}}},e[2]=o,e[3]=t,e[4]=L):L=e[4];const{schedule:y,flush:v}=He(L);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const N=c?.name??"U";let f;e[7]!==N||e[8]!==r?(f=s.jsx(qe,{url:r,fallback:N,shape:"circle",size:"base"}),e[7]=N,e[8]=r,e[9]=f):f=e[9];let S;e[10]!==b||e[11]!==f?(S=s.jsx(w,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=S):S=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==v||e[16]!==y||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Re,{id:"display-name",...x,onChange:P=>{x.onChange(P),y()},onBlur:()=>{x.onBlur(),v()},onKeyDown:P=>{P.key==="Enter"&&v()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=v,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx($e,{control:o.control,name:"name",render:u}),e[19]=o.control,e[20]=u,e[21]=_):_=e[21];let d;e[22]!==p||e[23]!==_?(d=s.jsx(w,{title:p,action:_}),e[22]=p,e[23]=_,e[24]=d):d=e[24];let m;e[25]!==t?(m=t("settings.profile.email"),e[25]=t,e[26]=m):m=e[26];const C=c?.email;let g;e[27]!==C?(g=s.jsx("span",{className:"text-sm text-muted-foreground",children:C}),e[27]=C,e[28]=g):g=e[28];let h;e[29]!==m||e[30]!==g?(h=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=h):h=e[31];let A;return e[32]!==d||e[33]!==h||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,h]})}),e[32]=d,e[33]=h,e[34]=S,e[35]=A):A=e[35],A}function We(){const e=Se.c(159),t=Ne(),[l,i]=Be();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){V("preferences_notifications_permission_denied"),Ae.error(t("settings.preferences.notificationsDenied")),i(tt);return}V("preferences_notifications_toggled",{enabled:n}),i(D=>({...D,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const r=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let j;e[5]!==t?(j=t("settings.preferences.theme"),e[5]=t,e[6]=j):j=e[6];let o;e[7]!==t?(o=t("settings.preferences.themeDescription"),e[7]=t,e[8]=o):o=e[8];const L=l.theme;let y;e[9]!==i?(y=n=>{n&&(V("preferences_theme_changed",{to_value:n}),i(D=>({...D,theme:n})))},e[9]=i,e[10]=y):y=e[10];let v;e[11]!==t?(v=t("settings.preferences.themeLight"),e[11]=t,e[12]=v):v=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Fe,{size:14}),e[13]=b):b=e[13];let N;e[14]!==v?(N=s.jsx(_e,{value:"light","aria-label":v,children:b}),e[14]=v,e[15]=N):N=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Oe,{size:14}),e[18]=S):S=e[18];let p;e[19]!==f?(p=s.jsx(_e,{value:"dark","aria-label":f,children:S}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ue,{size:14}),e[23]=_):_=e[23];let d;e[24]!==u?(d=s.jsx(_e,{value:"system","aria-label":u,children:_}),e[24]=u,e[25]=d):d=e[25];let m;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==y||e[30]!==N?(m=s.jsxs(Ge,{type:"single",size:"sm",variant:"outline",value:L,onValueChange:y,children:[N,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=y,e[30]=N,e[31]=m):m=e[31];let C;e[32]!==m||e[33]!==j||e[34]!==o?(C=s.jsx(w,{title:j,description:o,action:m}),e[32]=m,e[33]=j,e[34]=o,e[35]=C):C=e[35];let g;e[36]!==t?(g=t("settings.preferences.language"),e[36]=t,e[37]=g):g=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let A;e[40]!==i?(A=n=>{V("preferences_language_changed",{to_value:n}),i(D=>({...D,language:n}))},e[40]=i,e[41]=A):A=e[41];let k;e[42]!==l.language?(k=we.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let P;e[46]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Pe,{children:we.map(et)}),e[46]=P):P=e[46];let z;e[47]!==l.language||e[48]!==A||e[49]!==x?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[x,P]}),e[47]=l.language,e[48]=A,e[49]=x,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==h||e[53]!==z?(I=s.jsx(w,{title:g,description:h,action:z}),e[51]=g,e[52]=h,e[53]=z,e[54]=I):I=e[54];let T;e[55]!==t?(T=t("settings.preferences.notifications"),e[55]=t,e[56]=T):T=e[56];let E;e[57]!==t?(E=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=E):E=e[58];let $;e[59]!==r||e[60]!==l.enableNotifications?($=typeof Notification<"u"?()=>r(!l.enableNotifications):void 0,e[59]=r,e[60]=l.enableNotifications,e[61]=$):$=e[61];let B;e[62]!==r||e[63]!==l.enableNotifications?(B=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:r}),e[62]=r,e[63]=l.enableNotifications,e[64]=B):B=e[64];let q;e[65]!==T||e[66]!==E||e[67]!==$||e[68]!==B?(q=s.jsx(w,{title:T,description:E,onClick:$,action:B}),e[65]=T,e[66]=E,e[67]=$,e[68]=B,e[69]=q):q=e[69];let G;e[70]!==t?(G=t("settings.preferences.sounds"),e[70]=t,e[71]=G):G=e[71];let R;e[72]!==t?(R=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=R):R=e[73];let U;e[74]!==l.enableSounds||e[75]!==i?(U=()=>{V("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(Ze)},e[74]=l.enableSounds,e[75]=i,e[76]=U):U=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let je;e[79]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(Ke,{size:11}),e[79]=je):je=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:Xe,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:je}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{V("preferences_sounds_toggled",{enabled:n}),i(D=>({...D,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==G||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(w,{title:G,description:R,onClick:U,action:J}),e[90]=G,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.toolApproval"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=W):W=e[98];const Ie=l.toolApprovalLevel;let X;e[99]!==i?(X=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=X):X=e[100];let Y;e[101]!==l.toolApprovalLevel||e[102]!==t?(Y={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[101]=l.toolApprovalLevel,e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==Y?(Z=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:Y})}),e[104]=Y,e[105]=Z):Z=e[105];let ee;e[106]!==t?(ee=t("settings.preferences.toolApprovalAsk"),e[106]=t,e[107]=ee):ee=e[107];let te;e[108]!==t?(te=t("settings.preferences.toolApprovalAsk"),e[108]=t,e[109]=te):te=e[109];let se;e[110]!==te?(se=s.jsx("span",{className:"font-medium",children:te}),e[110]=te,e[111]=se):se=e[111];let le;e[112]!==t?(le=t("settings.preferences.toolApprovalAskDescription"),e[112]=t,e[113]=le):le=e[113];let ie;e[114]!==le?(ie=s.jsx("span",{className:"text-xs text-muted-foreground",children:le}),e[114]=le,e[115]=ie):ie=e[115];let ne;e[116]!==se||e[117]!==ie?(ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[se,ie]}),e[116]=se,e[117]=ie,e[118]=ne):ne=e[118];let oe;e[119]!==ee||e[120]!==ne?(oe=s.jsx(ye,{value:"readonly",textValue:ee,children:ne}),e[119]=ee,e[120]=ne,e[121]=oe):oe=e[121];let re;e[122]!==t?(re=t("settings.preferences.toolApprovalAuto"),e[122]=t,e[123]=re):re=e[123];let ae;e[124]!==t?(ae=t("settings.preferences.toolApprovalAuto"),e[124]=t,e[125]=ae):ae=e[125];let ce;e[126]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[126]=ae,e[127]=ce):ce=e[127];let fe;e[128]!==t?(fe=t("settings.preferences.toolApprovalAutoDescription"),e[128]=t,e[129]=fe):fe=e[129];let pe;e[130]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[130]=fe,e[131]=pe):pe=e[131];let ue;e[132]!==ce||e[133]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[132]=ce,e[133]=pe,e[134]=ue):ue=e[134];let de;e[135]!==re||e[136]!==ue?(de=s.jsx(ye,{value:"auto",textValue:re,children:ue}),e[135]=re,e[136]=ue,e[137]=de):de=e[137];let me;e[138]!==oe||e[139]!==de?(me=s.jsxs(Pe,{children:[oe,de]}),e[138]=oe,e[139]=de,e[140]=me):me=e[140];let ge;e[141]!==l.toolApprovalLevel||e[142]!==X||e[143]!==Z||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:X,children:[Z,me]}),e[141]=l.toolApprovalLevel,e[142]=X,e[143]=Z,e[144]=me,e[145]=ge):ge=e[145];let he;e[146]!==Q||e[147]!==W||e[148]!==ge?(he=s.jsx(w,{title:Q,description:W,action:ge}),e[146]=Q,e[147]=W,e[148]=ge,e[149]=he):he=e[149];let xe;e[150]!==C||e[151]!==I||e[152]!==q||e[153]!==M||e[154]!==he?(xe=s.jsxs(ze,{children:[C,I,q,M,he]}),e[150]=C,e[151]=I,e[152]=q,e[153]=M,e[154]=he,e[155]=xe):xe=e[155];let ve;return e[156]!==a||e[157]!==xe?(ve=s.jsx(Le,{title:a,children:xe}),e[156]=a,e[157]=xe,e[158]=ve):ve=e[158],ve}function Xe(){V("preferences_sounds_previewed"),Je(Me.dataUri).catch(Ye)}function Ye(){}function Ze(e){return{...e,enableSounds:!e.enableSounds}}function et(e){return s.jsx(ye,{value:e.value,textValue:e.label,children:e.label},e.value)}function tt(e){return{...e,enableNotifications:!1}}function st(){const e=Se.c(8),t=Ne();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(be.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,r;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Qe,{}),r=s.jsx(We,{}),e[4]=c,e[5]=r):(c=e[4],r=e[5]);let a;return e[6]!==i?(a=s.jsx(be,{children:s.jsx(be.Content,{children:s.jsx(be.Body,{children:s.jsxs(Te,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function jt(){const e=Se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(st,{}),e[0]=t):t=e[0],t}export{jt as default};
|
|
1
|
+
import{c as Se,b as Ne,j as s,P as be,d9 as Te,a as Ce,ao as Ee,as as $e,x as Be,q as V,t as Ae,d8 as w,d6 as Le,d7 as ze}from"./index-DYhuz5u4.js";import{A as qe}from"./avatar-93Ky3hst.js";import{S as ke}from"./switch-AL0FRwjR.js";import{c as Pe,S as De,d as ye,a as Ve}from"./select-pRcFQMbD.js";import{a as _e,T as Ge}from"./toggle-group-COsyIaDP.js";import{I as Re}from"./input-BeEZ0yYi.js";import{i as Ue}from"./Monitor01-DQPfjm9A.js";import{n as Fe,a as Oe}from"./Sun-D7tOZ_nt.js";import{i as Ke}from"./Play-Cwr6OeyJ.js";import{u as He}from"./use-debounced-autosave-DwM6UtRL.js";import{p as Je,q as Me}from"./question-004-sINsf4GQ.js";import"./User01-CNoTVT8V.js";import"./Check-eRPNoavQ.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronUp-iWYokpT6.js";const we=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function Qe(){const e=Se.c(36),t=Ne(),{data:l,isPending:i}=Ce.useSession(),c=l?.user,r=c?.image,a=c?.name??"";let j;e[0]!==a?(j={values:{name:a}},e[0]=a,e[1]=j):j=e[1];const o=Ee(j);let L;e[2]!==o||e[3]!==t?(L={save:async()=>{const k=o.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=o.getValues(),P=o.control._defaultValues;o.reset(x,{keepValues:!0});try{await Ce.updateUser({name:x.name}),V("profile_updated",{fields:["name"]}),Ae.success(t("settings.profile.updateSuccess"))}catch{o.reset(P,{keepValues:!0}),Ae.error(t("settings.profile.updateError"))}}},e[2]=o,e[3]=t,e[4]=L):L=e[4];const{schedule:y,flush:v}=He(L);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const N=c?.name??"U";let f;e[7]!==N||e[8]!==r?(f=s.jsx(qe,{url:r,fallback:N,shape:"circle",size:"base"}),e[7]=N,e[8]=r,e[9]=f):f=e[9];let S;e[10]!==b||e[11]!==f?(S=s.jsx(w,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=S):S=e[12];let p;e[13]!==t?(p=t("settings.profile.displayName"),e[13]=t,e[14]=p):p=e[14];let u;e[15]!==v||e[16]!==y||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Re,{id:"display-name",...x,onChange:P=>{x.onChange(P),y()},onBlur:()=>{x.onBlur(),v()},onKeyDown:P=>{P.key==="Enter"&&v()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=v,e[16]=y,e[17]=t,e[18]=u):u=e[18];let _;e[19]!==o.control||e[20]!==u?(_=s.jsx($e,{control:o.control,name:"name",render:u}),e[19]=o.control,e[20]=u,e[21]=_):_=e[21];let d;e[22]!==p||e[23]!==_?(d=s.jsx(w,{title:p,action:_}),e[22]=p,e[23]=_,e[24]=d):d=e[24];let m;e[25]!==t?(m=t("settings.profile.email"),e[25]=t,e[26]=m):m=e[26];const C=c?.email;let g;e[27]!==C?(g=s.jsx("span",{className:"text-sm text-muted-foreground",children:C}),e[27]=C,e[28]=g):g=e[28];let h;e[29]!==m||e[30]!==g?(h=s.jsx(w,{title:m,action:g}),e[29]=m,e[30]=g,e[31]=h):h=e[31];let A;return e[32]!==d||e[33]!==h||e[34]!==S?(A=s.jsx(Le,{children:s.jsxs(ze,{children:[S,d,h]})}),e[32]=d,e[33]=h,e[34]=S,e[35]=A):A=e[35],A}function We(){const e=Se.c(159),t=Ne(),[l,i]=Be();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){V("preferences_notifications_permission_denied"),Ae.error(t("settings.preferences.notificationsDenied")),i(tt);return}V("preferences_notifications_toggled",{enabled:n}),i(D=>({...D,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const r=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let j;e[5]!==t?(j=t("settings.preferences.theme"),e[5]=t,e[6]=j):j=e[6];let o;e[7]!==t?(o=t("settings.preferences.themeDescription"),e[7]=t,e[8]=o):o=e[8];const L=l.theme;let y;e[9]!==i?(y=n=>{n&&(V("preferences_theme_changed",{to_value:n}),i(D=>({...D,theme:n})))},e[9]=i,e[10]=y):y=e[10];let v;e[11]!==t?(v=t("settings.preferences.themeLight"),e[11]=t,e[12]=v):v=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Fe,{size:14}),e[13]=b):b=e[13];let N;e[14]!==v?(N=s.jsx(_e,{value:"light","aria-label":v,children:b}),e[14]=v,e[15]=N):N=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let S;e[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(Oe,{size:14}),e[18]=S):S=e[18];let p;e[19]!==f?(p=s.jsx(_e,{value:"dark","aria-label":f,children:S}),e[19]=f,e[20]=p):p=e[20];let u;e[21]!==t?(u=t("settings.preferences.themeSystem"),e[21]=t,e[22]=u):u=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ue,{size:14}),e[23]=_):_=e[23];let d;e[24]!==u?(d=s.jsx(_e,{value:"system","aria-label":u,children:_}),e[24]=u,e[25]=d):d=e[25];let m;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==y||e[30]!==N?(m=s.jsxs(Ge,{type:"single",size:"sm",variant:"outline",value:L,onValueChange:y,children:[N,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=y,e[30]=N,e[31]=m):m=e[31];let C;e[32]!==m||e[33]!==j||e[34]!==o?(C=s.jsx(w,{title:j,description:o,action:m}),e[32]=m,e[33]=j,e[34]=o,e[35]=C):C=e[35];let g;e[36]!==t?(g=t("settings.preferences.language"),e[36]=t,e[37]=g):g=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let A;e[40]!==i?(A=n=>{V("preferences_language_changed",{to_value:n}),i(D=>({...D,language:n}))},e[40]=i,e[41]=A):A=e[41];let k;e[42]!==l.language?(k=we.find(n=>n.value===l.language)?.label,e[42]=l.language,e[43]=k):k=e[43];let x;e[44]!==k?(x=s.jsx(Ve,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let P;e[46]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(Pe,{children:we.map(et)}),e[46]=P):P=e[46];let z;e[47]!==l.language||e[48]!==A||e[49]!==x?(z=s.jsxs(De,{value:l.language,onValueChange:A,children:[x,P]}),e[47]=l.language,e[48]=A,e[49]=x,e[50]=z):z=e[50];let I;e[51]!==g||e[52]!==h||e[53]!==z?(I=s.jsx(w,{title:g,description:h,action:z}),e[51]=g,e[52]=h,e[53]=z,e[54]=I):I=e[54];let T;e[55]!==t?(T=t("settings.preferences.notifications"),e[55]=t,e[56]=T):T=e[56];let E;e[57]!==t?(E=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=E):E=e[58];let $;e[59]!==r||e[60]!==l.enableNotifications?($=typeof Notification<"u"?()=>r(!l.enableNotifications):void 0,e[59]=r,e[60]=l.enableNotifications,e[61]=$):$=e[61];let B;e[62]!==r||e[63]!==l.enableNotifications?(B=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:r}),e[62]=r,e[63]=l.enableNotifications,e[64]=B):B=e[64];let q;e[65]!==T||e[66]!==E||e[67]!==$||e[68]!==B?(q=s.jsx(w,{title:T,description:E,onClick:$,action:B}),e[65]=T,e[66]=E,e[67]=$,e[68]=B,e[69]=q):q=e[69];let G;e[70]!==t?(G=t("settings.preferences.sounds"),e[70]=t,e[71]=G):G=e[71];let R;e[72]!==t?(R=t("settings.preferences.soundsDescription"),e[72]=t,e[73]=R):R=e[73];let U;e[74]!==l.enableSounds||e[75]!==i?(U=()=>{V("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(Ze)},e[74]=l.enableSounds,e[75]=i,e[76]=U):U=e[76];let F;e[77]!==t?(F=t("settings.preferences.soundsPreview"),e[77]=t,e[78]=F):F=e[78];let je;e[79]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(Ke,{size:11}),e[79]=je):je=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:Xe,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:je}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{V("preferences_sounds_toggled",{enabled:n}),i(D=>({...D,enableSounds:n}))},e[82]=i,e[83]=K):K=e[83];let H;e[84]!==l.enableSounds||e[85]!==K?(H=s.jsx(ke,{checked:l.enableSounds,onCheckedChange:K}),e[84]=l.enableSounds,e[85]=K,e[86]=H):H=e[86];let J;e[87]!==O||e[88]!==H?(J=s.jsxs("div",{className:"flex items-center gap-2",children:[O,H]}),e[87]=O,e[88]=H,e[89]=J):J=e[89];let M;e[90]!==G||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(w,{title:G,description:R,onClick:U,action:J}),e[90]=G,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.toolApproval"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.toolApprovalDescription"),e[97]=t,e[98]=W):W=e[98];const Ie=l.toolApprovalLevel;let X;e[99]!==i?(X=n=>{V("preferences_tool_approval_changed",{to_value:n}),i(D=>({...D,toolApprovalLevel:n}))},e[99]=i,e[100]=X):X=e[100];let Y;e[101]!==l.toolApprovalLevel||e[102]!==t?(Y={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[101]=l.toolApprovalLevel,e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==Y?(Z=s.jsx(Ve,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:Y})}),e[104]=Y,e[105]=Z):Z=e[105];let ee;e[106]!==t?(ee=t("settings.preferences.toolApprovalAsk"),e[106]=t,e[107]=ee):ee=e[107];let te;e[108]!==t?(te=t("settings.preferences.toolApprovalAsk"),e[108]=t,e[109]=te):te=e[109];let se;e[110]!==te?(se=s.jsx("span",{className:"font-medium",children:te}),e[110]=te,e[111]=se):se=e[111];let le;e[112]!==t?(le=t("settings.preferences.toolApprovalAskDescription"),e[112]=t,e[113]=le):le=e[113];let ie;e[114]!==le?(ie=s.jsx("span",{className:"text-xs text-muted-foreground",children:le}),e[114]=le,e[115]=ie):ie=e[115];let ne;e[116]!==se||e[117]!==ie?(ne=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[se,ie]}),e[116]=se,e[117]=ie,e[118]=ne):ne=e[118];let oe;e[119]!==ee||e[120]!==ne?(oe=s.jsx(ye,{value:"readonly",textValue:ee,children:ne}),e[119]=ee,e[120]=ne,e[121]=oe):oe=e[121];let re;e[122]!==t?(re=t("settings.preferences.toolApprovalAuto"),e[122]=t,e[123]=re):re=e[123];let ae;e[124]!==t?(ae=t("settings.preferences.toolApprovalAuto"),e[124]=t,e[125]=ae):ae=e[125];let ce;e[126]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[126]=ae,e[127]=ce):ce=e[127];let fe;e[128]!==t?(fe=t("settings.preferences.toolApprovalAutoDescription"),e[128]=t,e[129]=fe):fe=e[129];let pe;e[130]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[130]=fe,e[131]=pe):pe=e[131];let ue;e[132]!==ce||e[133]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[132]=ce,e[133]=pe,e[134]=ue):ue=e[134];let de;e[135]!==re||e[136]!==ue?(de=s.jsx(ye,{value:"auto",textValue:re,children:ue}),e[135]=re,e[136]=ue,e[137]=de):de=e[137];let me;e[138]!==oe||e[139]!==de?(me=s.jsxs(Pe,{children:[oe,de]}),e[138]=oe,e[139]=de,e[140]=me):me=e[140];let ge;e[141]!==l.toolApprovalLevel||e[142]!==X||e[143]!==Z||e[144]!==me?(ge=s.jsxs(De,{value:Ie,onValueChange:X,children:[Z,me]}),e[141]=l.toolApprovalLevel,e[142]=X,e[143]=Z,e[144]=me,e[145]=ge):ge=e[145];let he;e[146]!==Q||e[147]!==W||e[148]!==ge?(he=s.jsx(w,{title:Q,description:W,action:ge}),e[146]=Q,e[147]=W,e[148]=ge,e[149]=he):he=e[149];let xe;e[150]!==C||e[151]!==I||e[152]!==q||e[153]!==M||e[154]!==he?(xe=s.jsxs(ze,{children:[C,I,q,M,he]}),e[150]=C,e[151]=I,e[152]=q,e[153]=M,e[154]=he,e[155]=xe):xe=e[155];let ve;return e[156]!==a||e[157]!==xe?(ve=s.jsx(Le,{title:a,children:xe}),e[156]=a,e[157]=xe,e[158]=ve):ve=e[158],ve}function Xe(){V("preferences_sounds_previewed"),Je(Me.dataUri).catch(Ye)}function Ye(){}function Ze(e){return{...e,enableSounds:!e.enableSounds}}function et(e){return s.jsx(ye,{value:e.value,textValue:e.label,children:e.label},e.value)}function tt(e){return{...e,enableNotifications:!1}}function st(){const e=Se.c(8),t=Ne();let l;e[0]!==t?(l=t("settings.title"),e[0]=t,e[1]=l):l=e[1];let i;e[2]!==l?(i=s.jsx(be.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,r;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Qe,{}),r=s.jsx(We,{}),e[4]=c,e[5]=r):(c=e[4],r=e[5]);let a;return e[6]!==i?(a=s.jsx(be,{children:s.jsx(be.Content,{children:s.jsx(be.Body,{children:s.jsxs(Te,{children:[i,c,r]})})})}),e[6]=i,e[7]=a):a=e[7],a}function jt(){const e=Se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(st,{}),e[0]=t):t=e[0],t}export{jt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,b as B,j as l,r as L,E as X,H as K,a as Z,B as ee,k as te}from"./index-B5R-ECHm.js";import{a as oe,g as q,s as H}from"./automation-runs-BwVIBljL.js";import{u as z}from"./use-mcp-client-Bu-g594J.js";import{W as ie,S as re,p as se}from"./constants-_08zpzmT.js";import{b as ne,c as le}from"./use-mcp-tools-Dtn2uWjv.js";import{u as me}from"./index-PlC49IUs.js";import{c as ce}from"./monaco-editor-DfjGwIkC.js";import{g as ae,M as pe,a as Y}from"./types-qEmgOr-R.js";import{a as de,u as fe}from"./chat-context-PKiduEXT.js";import{u as ue}from"./shell-layout-CAm70xM1.js";import{O as ge}from"./tab-id-C7NSeDZO.js";import{c as xe,e as he,s as Ce,f as je,P as Se,g as Ie,h as be}from"./self-tool-result-CIZIi6Il.js";import{b as G,a as W,d as J,e as Q}from"./dialog-BQ-t4CF4.js";import{I as Ne}from"./integration-icon-BNk_AQRx.js";import"./select-D5jnyj0l.js";import"./Check-KqwAmcDj.js";import"./ChevronDown-BQZF9Af9.js";import"./ChevronUp-BnjYp300.js";import"./agent-icon-BM9CQspm.js";import"./AlertCircle-d_jYW-pF.js";import"./Tool01-TcrXKmnF.js";import"./ArrowUp-DmYjuyWi.js";import"./ArrowLeft-B5SdDJS5.js";import"./Tool02-DWE9dUHc.js";import"./XCircle-CJ79pnxP.js";import"./TrendUp01-DehiMCpc.js";import"./ZapSquare-Cx_Z2jAm.js";import"./Users03-C_Br2__w.js";import"./UserSquare-CYgbi1K9.js";import"./CheckCircle-DuO-pGO-.js";import"./ChevronRight-Bq8eLOWM.js";import"./ChevronSelectorVertical-DrHEbUrw.js";import"./DotsVertical-DmFi_5m5.js";import"./Stars02-NRIRt4tn.js";import"./Copy01-DQMklNBZ.js";import"./CreditCard01-ayJva4-L.js";import"./Download01-BCA2ING7.js";import"./Settings02-CDWROrkG.js";import"./Eye-CRgVrt0h.js";import"./FilterLines-D6T5uoZ8.js";import"./Share07-rauAL5Pr.js";import"./Globe01-KXkuiG0o.js";import"./Globe04-kFCzhDtq.js";import"./SwitchHorizontal01-BLilv7ln.js";import"./HardDrive-IGVDCiH-.js";import"./Key01-zoXnVGpi.js";import"./LinkExternal01-DY154voS.js";import"./LockUnlocked01-BUPOcE7Q.js";import"./LogOut01-vFXcKA44.js";import"./Monitor01-IMrl8-Sz.js";import"./Sun-BDdwc-Zh.js";import"./Palette-CO-9fV73.js";import"./Play-Cnds4faY.js";import"./Plus-DeCuWgpG.js";import"./SearchLg-LSbMLZI6.js";import"./SearchMd-C6SjxYyL.js";import"./Shield01-CJQrmrbA.js";import"./Stars01-DqVhL0wf.js";import"./Trash01-DoWKJDZO.js";import"./Upload01-DROOnA_X.js";import"./User01-DBp5CtcM.js";import"./Users01-D845Yde-.js";import"./XClose-BOvSf6KB.js";import"./Zap-CYPfTI6g.js";import"./useInfiniteQuery-CtQupOcz.js";import"./use-infinite-scroll-DSYZfzYp.js";import"./use-connection-CFAFM3Yj.js";import"./use-virtual-mcp-DKc17TzC.js";import"./table-BdiZmxkC.js";import"./empty-state-Z6jBJyBE.js";import"./use-members-yMUdTS3F.js";import"./use-org-auth-client-DZGh6wmi.js";import"./use-clock-tick-BmMJ4C9l.js";import"./use-automations-CESfm05a.js";import"./useSuspenseInfiniteQuery-DsYLPBXT.js";import"./avatar-CqQE-eFC.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Du-_RwSH.js";import"./hooks-APRq5B-N.js";import"./decopilot-sse-pool-CzhRRg62.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-navigate-to-agent-CioCH7VJ.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-wUtBUsj3.js";import"./index-CCWpCA-G.js";import"./form-WUWViVui.js";import"./label-bKnld9-e.js";import"./input-DSE7gQf1.js";import"./spinner-ClifCs3i.js";import"./file-type-icon-k6QIypVu.js";import"./auth-D0FayD-s.js";import"./drawer-Db54djTH.js";import"./collection-search-CksSLFKw.js";import"./tabs-B1m4e_Lf.js";import"./toggle-group-B9nynTTu.js";import"./use-commerce-diagnostic-Ll9Jxlc1.js";import"./popover-DH9TTdnh.js";import"./toolbar-Dn87lyB_.js";import"./github-repo-picker-CntGYv-N.js";import"./use-debounced-value-D7E7obaB.js";import"./authenticate-and-persist-oauth-t3Fvmhc7.js";import"./mcp-oauth-CIUwYU01.js";import"./extract-connection-data-B6RBsrzJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CmsTkv4b.js";import"./use-registry-connections-DENDz1rF.js";import"./use-organization-settings-DeS0wGS3.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-C8A1NtUt.js";import"./connection-form-helpers-BP-W1_HA.js";import"./collection-tabs-Lyg-Hx2-.js";import"./badge-D3zUUYug.js";import"./use-ai-providers-BWG1j4R3.js";import"./command-UPps-OHa.js";import"./index-ChJw-ECJ.js";import"./alert-dialog-CJVL1k9x.js";import"./select-model-DPpBxnrS.js";import"./checkbox-BZ02x3Tw.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-is-desktop-app-BNujXJc_.js";import"./cards-B6201d9G.js";import"./dropdown-menu-Dl9RzbmM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dk4EoSoR.js";import"./use-decopilot-events-0HarKwn7.js";import"./use-file-configs-BxpfXHj_.js";import"./pt-BR-CLy76QW2.js";import"./switch-DXyXcz0k.js";import"./use-debounced-autosave-44xRW5_u.js";import"./search-input-Bghs_Bjp.js";import"./index-C6_zR0Yd.js";import"./use-secrets-7WKBJtby.js";import"./AreaChart-6ExM5C57.js";import"./task-key-DzvP3l3i.js";import"./sprints-C1R8b2UK.js";import"./use-tags-CrW3MALx.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C9Xx9zFJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CwiMJzn0.js";import"./required-auth-layout-DoToYqRI.js";import"./use-org-sso-CmTeA9vF.js";import"./track-BeWveGxs.js";const ve="studio://navigate",De=new Set(["vtex","ga4","gsc","github"]);function Me(b){const[e]=b;if(b.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(ve))return{isNavigate:!1};let o=null,i=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field")}catch{}return{isNavigate:!0,tab:o&&ge.has(o)?o:null,field:i&&De.has(i)?i:null}}function $(b){const e=U.c(12),{onClose:o,children:i}=b,r=B();let t;e[0]!==o?(t=f=>!f&&o(),e[0]=o,e[1]=t):t=e[1];let c;e[2]!==r?(c=r("commerceOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=c):c=e[3];let m;e[4]!==c?(m=l.jsx(W,{children:l.jsx(G,{children:c})}),e[4]=c,e[5]=m):m=e[5];let d;e[6]!==i||e[7]!==m?(d=l.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,i]}),e[6]=i,e[7]=m,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=l.jsx(Q,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function F(b){const e=U.c(3),{label:o}=b;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(te,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let r;return e[1]!==o?(r=l.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,l.jsx("span",{children:o})]}),e[1]=o,e[2]=r):r=e[2],r}function _e(b){const e=U.c(19),{field:o,onClose:i}=b,r=B();let t;e[0]!==i||e[1]!==r?(t=()=>l.jsx($,{onClose:i,children:l.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=r,e[2]=t):t=e[2];let c;e[3]!==r?(c=r("commerceOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=c):c=e[4];let m;e[5]!==c?(m=l.jsx(F,{label:c}),e[5]=c,e[6]=m):m=e[6];let d;e[7]!==i||e[8]!==m?(d=l.jsx($,{onClose:i,children:m}),e[7]=i,e[8]=m,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=l.jsx(ye,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let f;e[13]!==d||e[14]!==n?(f=l.jsx(L.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=f):f=e[15];let g;return e[16]!==t||e[17]!==f?(g=l.jsx(X,{fallback:t,children:f}),e[16]=t,e[17]=f,e[18]=g):g=e[18],g}function ye(b){const e=U.c(75),{field:o,onClose:i}=b,r=B(),{org:t}=K();let c;e[0]!==t.id?(c=ie.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=c):c=e[1];const m=c;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:re,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const n=z(d),{data:f}=Z.useSession(),g=f?.user?.id??"";let h;e[5]!==m||e[6]!==t||e[7]!==n?(h={selfClient:n,org:t,cdConnectionId:m},e[5]=m,e[6]=t,e[7]=n,e[8]=h):h=e[8];const s=xe(h);let S;e[9]!==m||e[10]!==t||e[11]!==n||e[12]!==s?(S={selfClient:n,org:t,cdConnectionId:m,siteUrl:s},e[9]=m,e[10]=t,e[11]=n,e[12]=s,e[13]=S):S=e[13];const{cards:C}=he(S);let I;e[14]!==s?(I=Ce(s)??void 0,e[14]=s,e[15]=I):I=e[15];let N;e[16]!==m||e[17]!==t||e[18]!==n||e[19]!==s||e[20]!==I||e[21]!==g?(N={selfClient:n,org:t,userId:g,cdConnectionId:m,domain:I,siteUrl:s},e[16]=m,e[17]=t,e[18]=n,e[19]=s,e[20]=I,e[21]=g,e[22]=N):N=e[22];const{connect:x,connectingFieldKey:O,error:T}=je(N);let M;if(e[23]!==C||e[24]!==o){let a;e[26]!==o?(a=p=>p.fieldKey===o,e[26]=o,e[27]=a):a=e[27],M=C.find(a),e[23]=C,e[24]=o,e[25]=M}else M=e[25];const u=M;if(!u){let a;e[28]!==r?(a=r("routes.commerceOnboarding.connectModal.loadError"),e[28]=r,e[29]=a):a=e[29];let p;e[30]!==a?(p=l.jsx("p",{className:"text-sm text-muted-foreground",children:a}),e[30]=a,e[31]=p):p=e[31];let j;return e[32]!==i||e[33]!==p?(j=l.jsx($,{onClose:i,children:p}),e[32]=i,e[33]=p,e[34]=j):j=e[34],j}const _=Se[u.bindingType];if(_&&u.boundVia!=="oauth"){let a;e[35]!==i?(a=v=>!v&&i(),e[35]=i,e[36]=a):a=e[36];let p;e[37]!==u||e[38]!==x?(p=u.satisfied?void 0:()=>{x(u)},e[37]=u,e[38]=x,e[39]=p):p=e[39];let j;return e[40]!==u||e[41]!==t||e[42]!==_||e[43]!==n||e[44]!==s||e[45]!==a||e[46]!==p?(j=l.jsx(be,{card:u,provider:_,org:t,selfClient:n,siteUrl:s,open:!0,onOpenChange:a,onOAuthInstead:p}),e[40]=u,e[41]=t,e[42]=_,e[43]=n,e[44]=s,e[45]=a,e[46]=p,e[47]=j):j=e[47],j}if(u.satisfied&&u.linkedConnectionId){let a;e[48]!==r?(a=r("commerceOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=a):a=e[49];let p;e[50]!==a?(p=l.jsx(F,{label:a}),e[50]=a,e[51]=p):p=e[51];let j;e[52]!==i||e[53]!==p?(j=l.jsx($,{onClose:i,children:p}),e[52]=i,e[53]=p,e[54]=j):j=e[54];let v;e[55]!==i?(v=w=>!w&&i(),e[55]=i,e[56]=v):v=e[56];let D;e[57]!==u||e[58]!==t||e[59]!==n||e[60]!==s||e[61]!==v?(D=l.jsx(Ie,{card:u,org:t,selfClient:n,connectionId:u.linkedConnectionId,contextSiteUrl:s,open:!0,onOpenChange:v}),e[57]=u,e[58]=t,e[59]=n,e[60]=s,e[61]=v,e[62]=D):D=e[62];let y;return e[63]!==j||e[64]!==D?(y=l.jsx(L.Suspense,{fallback:j,children:D}),e[63]=j,e[64]=D,e[65]=y):y=e[65],y}const R=O===u.fieldKey;let E;e[66]!==u||e[67]!==x?(E=()=>{x(u)},e[66]=u,e[67]=x,e[68]=E):E=e[68];let P;return e[69]!==u||e[70]!==T||e[71]!==i||e[72]!==R||e[73]!==E?(P=l.jsx(Oe,{card:u,connecting:R,error:T,onConnect:E,onClose:i}),e[69]=u,e[70]=T,e[71]=i,e[72]=R,e[73]=E,e[74]=P):P=e[74],P}function Oe(b){const e=U.c(22),{card:o,connecting:i,error:r,onConnect:t,onClose:c}=b,m=B(),[d,n]=L.useState(!1);d||(n(!0),queueMicrotask(t));let f;e[0]!==i||e[1]!==c?(f=N=>{!N&&i||N||c()},e[0]=i,e[1]=c,e[2]=f):f=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=l.jsx(Ne,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let h;e[6]!==o.title?(h=l.jsx(G,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=h):h=e[7];let s;e[8]!==g||e[9]!==h?(s=l.jsxs(W,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,h]}),e[8]=g,e[9]=h,e[10]=s):s=e[10];let S;e[11]!==o.title||e[12]!==r||e[13]!==t||e[14]!==m?(S=r?l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),l.jsx(ee,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:m("routes.commerceOnboarding.companionSection.retry")})]}):l.jsx(F,{label:m("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=r,e[13]=t,e[14]=m,e[15]=S):S=e[15];let C;e[16]!==s||e[17]!==S?(C=l.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[s,S]}),e[16]=s,e[17]=S,e[18]=C):C=e[18];let I;return e[19]!==f||e[20]!==C?(I=l.jsx(Q,{open:!0,onOpenChange:f,children:C}),e[19]=f,e[20]=C,e[21]=I):I=e[21],I}const Ee={};function Pe(b){const e=U.c(43),{client:o,resourceURI:i,tool:r,connectionId:t,orgId:c,args:m}=b,{sendMessage:d}=de(),{setAppContext:n,clearAppContext:f}=fe(),{openSidePanel:g,openTab:h}=ue(),s=`${t}:${r.name}`,[S,C]=L.useState(null);let I;e[0]!==h?(I=A=>A==="inline"?(h("0"),"inline"):"fullscreen",e[0]=h,e[1]=I):I=e[1];const N=I,x=m??Ee;let O;e[2]!==o||e[3]!==r.name||e[4]!==x?(O={client:o,toolName:r.name,toolArguments:x},e[2]=o,e[3]=r.name,e[4]=x,e[5]=O):O=e[5];const{data:T}=le(O);let M;if(e[6]!==r._meta||e[7]!==r.name){const A=q(r._meta);M=H(r.name,A),e[6]=r._meta,e[7]=r.name,e[8]=M}else M=e[8];const u=M;let _;e[9]!==r.inputSchema?(_=r.inputSchema??{type:"object"},e[9]=r.inputSchema,e[10]=_):_=e[10];let R;e[11]!==u||e[12]!==_||e[13]!==r?(R={...r,name:u,inputSchema:_},e[11]=u,e[12]=_,e[13]=r,e[14]=R):R=e[14];const E=R;let P;e[15]!==g||e[16]!==h||e[17]!==d?(P=A=>{const k=Me(A.content);if(k.isNavigate){k.tab==="connect-sources"&&k.field?C(k.field):k.tab&&h(k.tab);return}const V=ce(A.content);V.content.length>0&&(g("chat"),d({tiptapDoc:V}))},e[15]=g,e[16]=h,e[17]=d,e[18]=P):P=e[18];const a=P;let p;e[19]!==E?(p={tool:E},e[19]=E,e[20]=p):p=e[20];let j;e[21]!==n||e[22]!==s?(j=A=>n(s,A),e[21]=n,e[22]=s,e[23]=j):j=e[23];let v;e[24]!==f||e[25]!==s?(v=()=>f(s),e[24]=f,e[25]=s,e[26]=v):v=e[26];let D;e[27]!==o||e[28]!==a||e[29]!==N||e[30]!==c||e[31]!==i||e[32]!==p||e[33]!==j||e[34]!==v||e[35]!==x||e[36]!==T?(D=l.jsx(pe,{resourceURI:i,orgId:c,toolInfo:p,toolInput:x,toolResult:T,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:a,onUpdateModelContext:j,onTeardown:v,onRequestDisplayMode:N,className:"h-full"}),e[27]=o,e[28]=a,e[29]=N,e[30]=c,e[31]=i,e[32]=p,e[33]=j,e[34]=v,e[35]=x,e[36]=T,e[37]=D):D=e[37];let y;e[38]!==S?(y=S&&l.jsx(_e,{field:S,onClose:()=>C(null)}),e[38]=S,e[39]=y):y=e[39];let w;return e[40]!==D||e[41]!==y?(w=l.jsxs(l.Fragment,{children:[D,y]}),e[40]=D,e[41]=y,e[42]=w):w=e[42],w}function Si(b){const e=U.c(24),{connectionId:o,toolName:i,args:r}=b,{org:t}=K(),c=me();let m;e[0]!==o||e[1]!==c?(m=se(o)&&c.vmEntry?.sandboxProviderKind==="user-desktop"&&c.previewUrl?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=c,e[2]=m):m=e[2];const d=m;let n;e[3]!==o||e[4]!==d||e[5]!==t.id||e[6]!==t.slug?(n={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:d},e[3]=o,e[4]=d,e[5]=t.id,e[6]=t.slug,e[7]=n):n=e[7];const f=z(n);let g;e[8]!==f?(g={client:f},e[8]=f,e[9]=g):g=e[9];const{data:h}=ne(g);let s,S,C;e[10]!==i||e[11]!==h.tools?(s=oe(decodeURIComponent(i)),C=h.tools.find(x=>x.name===s)??h.tools.find(x=>{const O=q(x._meta);if(!O)return!1;if(H(x.name,O)===s)return!0;const M=H(s,O);return M!==s&&x.name===M}),S=C?._meta?ae(C._meta):void 0,e[10]=i,e[11]=h.tools,e[12]=s,e[13]=S,e[14]=C):(s=e[12],S=e[13],C=e[14]);const I=S;if(!C||!I){let x;return e[15]!==s?(x=l.jsx("div",{className:"flex items-center justify-center h-full w-full",children:l.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',s,'" not found or has no UI']})}),e[15]=s,e[16]=x):x=e[16],x}let N;return e[17]!==r||e[18]!==f||e[19]!==o||e[20]!==t.id||e[21]!==I||e[22]!==C?(N=l.jsx(Pe,{client:f,resourceURI:I,tool:C,connectionId:o,orgId:t.id,args:r}),e[17]=r,e[18]=f,e[19]=o,e[20]=t.id,e[21]=I,e[22]=C,e[23]=N):N=e[23],N}export{Si as AppViewContent};
|
|
1
|
+
import{c as U,b as B,j as l,r as L,E as X,H as K,a as Z,B as ee,k as te}from"./index-DYhuz5u4.js";import{a as oe,g as q,s as H}from"./automation-runs-CdXs2_3V.js";import{u as z}from"./use-mcp-client-rUWSEc22.js";import{W as ie,S as re,p as se}from"./constants-_08zpzmT.js";import{b as ne,c as le}from"./use-mcp-tools-BFb2reXp.js";import{u as me}from"./index-B_eYuc0U.js";import{c as ce}from"./monaco-editor-DOTx9L8-.js";import{g as ae,M as pe,a as Y}from"./types-WvZhDZNg.js";import{a as de,u as fe}from"./chat-context-IN2mbOb6.js";import{u as ue}from"./shell-layout-Bm5zUndY.js";import{O as ge}from"./tab-id-CRYGEVwl.js";import{c as xe,e as he,s as Ce,f as je,P as Se,g as Ie,h as be}from"./self-tool-result-CBXC7R0E.js";import{b as G,a as W,d as J,e as Q}from"./dialog-D4TKCpgT.js";import{I as Ne}from"./integration-icon-Bysc1MQE.js";import"./select-pRcFQMbD.js";import"./Check-eRPNoavQ.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronUp-iWYokpT6.js";import"./agent-icon-Dapja1ku.js";import"./AlertCircle-BDusuqHR.js";import"./Tool01-DOhRtqWP.js";import"./ArrowUp-CEPWXS-3.js";import"./ArrowLeft-0tHCTq_5.js";import"./Tool02-BeXTGPXn.js";import"./XCircle-C9nVincA.js";import"./TrendUp01-Kbryww01.js";import"./ZapSquare-CP5-bflA.js";import"./Users03-CJFHaNa3.js";import"./UserSquare-4N_O4Huh.js";import"./CheckCircle-D5qJu1Fm.js";import"./ChevronRight-DCgSscRL.js";import"./ChevronSelectorVertical-B3t1cekd.js";import"./DotsVertical-4USgsJk6.js";import"./Stars02-DLckXeQE.js";import"./Copy01-DRSCHQwE.js";import"./CreditCard01-BSTb8Mc9.js";import"./Download01-BH3cjMrI.js";import"./Settings02-DmvOMOJi.js";import"./Eye-CTLVmBpG.js";import"./FilterLines-BsHaUIT2.js";import"./Share07-CRjpz7Rb.js";import"./Globe01-DklSBKay.js";import"./Globe04-F8f-0PZt.js";import"./SwitchHorizontal01-CwhrY0ka.js";import"./HardDrive-DjJMW3nS.js";import"./Key01-C1runo_O.js";import"./LinkExternal01-DYnPaZ3r.js";import"./LockUnlocked01-DOMhyB5E.js";import"./LogOut01-Ah-KAndl.js";import"./Monitor01-DQPfjm9A.js";import"./Sun-D7tOZ_nt.js";import"./Palette-D3b-Xu-h.js";import"./Play-Cwr6OeyJ.js";import"./Plus-o6GtUPlY.js";import"./SearchLg-CspkxEWY.js";import"./SearchMd-RYRFlTFn.js";import"./Shield01-rgn5f9FP.js";import"./Stars01-DZNPrk3T.js";import"./Trash01-M0RrAQ6e.js";import"./Upload01-B5ikfnMw.js";import"./User01-CNoTVT8V.js";import"./Users01-Cwzg4OyC.js";import"./XClose-p_PG6PPu.js";import"./Zap-BxAmuoGy.js";import"./useInfiniteQuery-Cka6pm7d.js";import"./use-infinite-scroll-s7hE4wtn.js";import"./use-connection-qRC7PjST.js";import"./use-virtual-mcp-DgtJLqTs.js";import"./table-CjUGtpAn.js";import"./empty-state-DhEtzlSH.js";import"./use-members-B_8MrweM.js";import"./use-org-auth-client-B0nKdvcm.js";import"./use-clock-tick-exAPGuDL.js";import"./use-automations-BfUUQWS6.js";import"./useSuspenseInfiniteQuery-_TCm0uwm.js";import"./avatar-93Ky3hst.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-5T5UkCj5.js";import"./hooks-Ce8j84Dj.js";import"./decopilot-sse-pool-DD1r1Ni7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-navigate-to-agent-B0Q0MfGV.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-XzF5-7u0.js";import"./index-nBibj1HB.js";import"./form-CnEnIqXp.js";import"./label-lJB9hx_m.js";import"./input-BeEZ0yYi.js";import"./spinner-CZafxxZB.js";import"./file-type-icon-BZeO1Oso.js";import"./auth-58obgKjX.js";import"./drawer-CGdYXF1V.js";import"./collection-search-CVsH-m_a.js";import"./tabs-BdxtePF9.js";import"./toggle-group-COsyIaDP.js";import"./use-commerce-diagnostic-C0d6yhR3.js";import"./popover-C35Me60K.js";import"./toolbar-DtHs7yB3.js";import"./github-repo-picker-BDL6quG_.js";import"./use-debounced-value-DexciQ0U.js";import"./authenticate-and-persist-oauth-CrLLgM6o.js";import"./mcp-oauth-bixKz7BF.js";import"./extract-connection-data-DOVwP3xc.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-GIYyR3Dk.js";import"./use-registry-connections-cskepZKY.js";import"./use-organization-settings-DJ4tVzFq.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CR9D7Jr6.js";import"./connection-form-helpers-C1AXlsMA.js";import"./collection-tabs-Dou_bmpW.js";import"./badge-CGEHhIh7.js";import"./use-ai-providers-CYnRe4Z_.js";import"./command-BhDqTkTk.js";import"./index-BUVqLPW9.js";import"./alert-dialog-Dolo_dDt.js";import"./select-model-DHRgtkJ-.js";import"./checkbox-O8sasvu3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-is-desktop-app-BNujXJc_.js";import"./cards-BWQ3fTI6.js";import"./dropdown-menu-VzXuM7DT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-p1DffsVl.js";import"./use-decopilot-events-C3Qa806m.js";import"./use-file-configs-07hOycAD.js";import"./pt-BR-CLy76QW2.js";import"./switch-AL0FRwjR.js";import"./use-debounced-autosave-DwM6UtRL.js";import"./search-input-4XgXHQd1.js";import"./index-Cr5DqCRY.js";import"./use-secrets-Cj79lIU5.js";import"./AreaChart-D3QDeFur.js";import"./task-key-DpQDci0a.js";import"./sprints-CA-TQC6e.js";import"./use-tags-B8zJ4C0I.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-B7NdzgK2.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CJeOf4LS.js";import"./required-auth-layout-BrkOyyOk.js";import"./use-org-sso-B_CNcFl1.js";import"./track-Co-CdXjd.js";const ve="studio://navigate",De=new Set(["vtex","ga4","gsc","github"]);function Me(b){const[e]=b;if(b.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(ve))return{isNavigate:!1};let o=null,i=null;try{const r=new URL(e.uri).searchParams;o=r.get("main"),i=r.get("field")}catch{}return{isNavigate:!0,tab:o&&ge.has(o)?o:null,field:i&&De.has(i)?i:null}}function $(b){const e=U.c(12),{onClose:o,children:i}=b,r=B();let t;e[0]!==o?(t=f=>!f&&o(),e[0]=o,e[1]=t):t=e[1];let c;e[2]!==r?(c=r("commerceOnboarding.connectSourceDialog.title"),e[2]=r,e[3]=c):c=e[3];let m;e[4]!==c?(m=l.jsx(W,{children:l.jsx(G,{children:c})}),e[4]=c,e[5]=m):m=e[5];let d;e[6]!==i||e[7]!==m?(d=l.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,i]}),e[6]=i,e[7]=m,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=l.jsx(Q,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function F(b){const e=U.c(3),{label:o}=b;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsx(te,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let r;return e[1]!==o?(r=l.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,l.jsx("span",{children:o})]}),e[1]=o,e[2]=r):r=e[2],r}function _e(b){const e=U.c(19),{field:o,onClose:i}=b,r=B();let t;e[0]!==i||e[1]!==r?(t=()=>l.jsx($,{onClose:i,children:l.jsx("p",{className:"text-sm text-muted-foreground",children:r("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=r,e[2]=t):t=e[2];let c;e[3]!==r?(c=r("commerceOnboarding.connectSourceDialog.loading"),e[3]=r,e[4]=c):c=e[4];let m;e[5]!==c?(m=l.jsx(F,{label:c}),e[5]=c,e[6]=m):m=e[6];let d;e[7]!==i||e[8]!==m?(d=l.jsx($,{onClose:i,children:m}),e[7]=i,e[8]=m,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=l.jsx(ye,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let f;e[13]!==d||e[14]!==n?(f=l.jsx(L.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=f):f=e[15];let g;return e[16]!==t||e[17]!==f?(g=l.jsx(X,{fallback:t,children:f}),e[16]=t,e[17]=f,e[18]=g):g=e[18],g}function ye(b){const e=U.c(75),{field:o,onClose:i}=b,r=B(),{org:t}=K();let c;e[0]!==t.id?(c=ie.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=c):c=e[1];const m=c;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:re,orgId:t.id,orgSlug:t.slug},e[2]=t.id,e[3]=t.slug,e[4]=d):d=e[4];const n=z(d),{data:f}=Z.useSession(),g=f?.user?.id??"";let h;e[5]!==m||e[6]!==t||e[7]!==n?(h={selfClient:n,org:t,cdConnectionId:m},e[5]=m,e[6]=t,e[7]=n,e[8]=h):h=e[8];const s=xe(h);let S;e[9]!==m||e[10]!==t||e[11]!==n||e[12]!==s?(S={selfClient:n,org:t,cdConnectionId:m,siteUrl:s},e[9]=m,e[10]=t,e[11]=n,e[12]=s,e[13]=S):S=e[13];const{cards:C}=he(S);let I;e[14]!==s?(I=Ce(s)??void 0,e[14]=s,e[15]=I):I=e[15];let N;e[16]!==m||e[17]!==t||e[18]!==n||e[19]!==s||e[20]!==I||e[21]!==g?(N={selfClient:n,org:t,userId:g,cdConnectionId:m,domain:I,siteUrl:s},e[16]=m,e[17]=t,e[18]=n,e[19]=s,e[20]=I,e[21]=g,e[22]=N):N=e[22];const{connect:x,connectingFieldKey:O,error:T}=je(N);let M;if(e[23]!==C||e[24]!==o){let a;e[26]!==o?(a=p=>p.fieldKey===o,e[26]=o,e[27]=a):a=e[27],M=C.find(a),e[23]=C,e[24]=o,e[25]=M}else M=e[25];const u=M;if(!u){let a;e[28]!==r?(a=r("routes.commerceOnboarding.connectModal.loadError"),e[28]=r,e[29]=a):a=e[29];let p;e[30]!==a?(p=l.jsx("p",{className:"text-sm text-muted-foreground",children:a}),e[30]=a,e[31]=p):p=e[31];let j;return e[32]!==i||e[33]!==p?(j=l.jsx($,{onClose:i,children:p}),e[32]=i,e[33]=p,e[34]=j):j=e[34],j}const _=Se[u.bindingType];if(_&&u.boundVia!=="oauth"){let a;e[35]!==i?(a=v=>!v&&i(),e[35]=i,e[36]=a):a=e[36];let p;e[37]!==u||e[38]!==x?(p=u.satisfied?void 0:()=>{x(u)},e[37]=u,e[38]=x,e[39]=p):p=e[39];let j;return e[40]!==u||e[41]!==t||e[42]!==_||e[43]!==n||e[44]!==s||e[45]!==a||e[46]!==p?(j=l.jsx(be,{card:u,provider:_,org:t,selfClient:n,siteUrl:s,open:!0,onOpenChange:a,onOAuthInstead:p}),e[40]=u,e[41]=t,e[42]=_,e[43]=n,e[44]=s,e[45]=a,e[46]=p,e[47]=j):j=e[47],j}if(u.satisfied&&u.linkedConnectionId){let a;e[48]!==r?(a=r("commerceOnboarding.connectSourceDialog.loading"),e[48]=r,e[49]=a):a=e[49];let p;e[50]!==a?(p=l.jsx(F,{label:a}),e[50]=a,e[51]=p):p=e[51];let j;e[52]!==i||e[53]!==p?(j=l.jsx($,{onClose:i,children:p}),e[52]=i,e[53]=p,e[54]=j):j=e[54];let v;e[55]!==i?(v=w=>!w&&i(),e[55]=i,e[56]=v):v=e[56];let D;e[57]!==u||e[58]!==t||e[59]!==n||e[60]!==s||e[61]!==v?(D=l.jsx(Ie,{card:u,org:t,selfClient:n,connectionId:u.linkedConnectionId,contextSiteUrl:s,open:!0,onOpenChange:v}),e[57]=u,e[58]=t,e[59]=n,e[60]=s,e[61]=v,e[62]=D):D=e[62];let y;return e[63]!==j||e[64]!==D?(y=l.jsx(L.Suspense,{fallback:j,children:D}),e[63]=j,e[64]=D,e[65]=y):y=e[65],y}const R=O===u.fieldKey;let E;e[66]!==u||e[67]!==x?(E=()=>{x(u)},e[66]=u,e[67]=x,e[68]=E):E=e[68];let P;return e[69]!==u||e[70]!==T||e[71]!==i||e[72]!==R||e[73]!==E?(P=l.jsx(Oe,{card:u,connecting:R,error:T,onConnect:E,onClose:i}),e[69]=u,e[70]=T,e[71]=i,e[72]=R,e[73]=E,e[74]=P):P=e[74],P}function Oe(b){const e=U.c(22),{card:o,connecting:i,error:r,onConnect:t,onClose:c}=b,m=B(),[d,n]=L.useState(!1);d||(n(!0),queueMicrotask(t));let f;e[0]!==i||e[1]!==c?(f=N=>{!N&&i||N||c()},e[0]=i,e[1]=c,e[2]=f):f=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=l.jsx(Ne,{icon:o.icon,name:o.title,size:"sm",fit:"contain",className:"p-1"}),e[3]=o.icon,e[4]=o.title,e[5]=g):g=e[5];let h;e[6]!==o.title?(h=l.jsx(G,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=h):h=e[7];let s;e[8]!==g||e[9]!==h?(s=l.jsxs(W,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,h]}),e[8]=g,e[9]=h,e[10]=s):s=e[10];let S;e[11]!==o.title||e[12]!==r||e[13]!==t||e[14]!==m?(S=r?l.jsxs("div",{className:"flex flex-col gap-3",children:[l.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r}),l.jsx(ee,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:m("routes.commerceOnboarding.companionSection.retry")})]}):l.jsx(F,{label:m("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=r,e[13]=t,e[14]=m,e[15]=S):S=e[15];let C;e[16]!==s||e[17]!==S?(C=l.jsxs(J,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[s,S]}),e[16]=s,e[17]=S,e[18]=C):C=e[18];let I;return e[19]!==f||e[20]!==C?(I=l.jsx(Q,{open:!0,onOpenChange:f,children:C}),e[19]=f,e[20]=C,e[21]=I):I=e[21],I}const Ee={};function Pe(b){const e=U.c(43),{client:o,resourceURI:i,tool:r,connectionId:t,orgId:c,args:m}=b,{sendMessage:d}=de(),{setAppContext:n,clearAppContext:f}=fe(),{openSidePanel:g,openTab:h}=ue(),s=`${t}:${r.name}`,[S,C]=L.useState(null);let I;e[0]!==h?(I=A=>A==="inline"?(h("0"),"inline"):"fullscreen",e[0]=h,e[1]=I):I=e[1];const N=I,x=m??Ee;let O;e[2]!==o||e[3]!==r.name||e[4]!==x?(O={client:o,toolName:r.name,toolArguments:x},e[2]=o,e[3]=r.name,e[4]=x,e[5]=O):O=e[5];const{data:T}=le(O);let M;if(e[6]!==r._meta||e[7]!==r.name){const A=q(r._meta);M=H(r.name,A),e[6]=r._meta,e[7]=r.name,e[8]=M}else M=e[8];const u=M;let _;e[9]!==r.inputSchema?(_=r.inputSchema??{type:"object"},e[9]=r.inputSchema,e[10]=_):_=e[10];let R;e[11]!==u||e[12]!==_||e[13]!==r?(R={...r,name:u,inputSchema:_},e[11]=u,e[12]=_,e[13]=r,e[14]=R):R=e[14];const E=R;let P;e[15]!==g||e[16]!==h||e[17]!==d?(P=A=>{const k=Me(A.content);if(k.isNavigate){k.tab==="connect-sources"&&k.field?C(k.field):k.tab&&h(k.tab);return}const V=ce(A.content);V.content.length>0&&(g("chat"),d({tiptapDoc:V}))},e[15]=g,e[16]=h,e[17]=d,e[18]=P):P=e[18];const a=P;let p;e[19]!==E?(p={tool:E},e[19]=E,e[20]=p):p=e[20];let j;e[21]!==n||e[22]!==s?(j=A=>n(s,A),e[21]=n,e[22]=s,e[23]=j):j=e[23];let v;e[24]!==f||e[25]!==s?(v=()=>f(s),e[24]=f,e[25]=s,e[26]=v):v=e[26];let D;e[27]!==o||e[28]!==a||e[29]!==N||e[30]!==c||e[31]!==i||e[32]!==p||e[33]!==j||e[34]!==v||e[35]!==x||e[36]!==T?(D=l.jsx(pe,{resourceURI:i,orgId:c,toolInfo:p,toolInput:x,toolResult:T,displayMode:"fullscreen",minHeight:Y.fullscreen.minHeight,maxHeight:Y.fullscreen.maxHeight,client:o,onMessage:a,onUpdateModelContext:j,onTeardown:v,onRequestDisplayMode:N,className:"h-full"}),e[27]=o,e[28]=a,e[29]=N,e[30]=c,e[31]=i,e[32]=p,e[33]=j,e[34]=v,e[35]=x,e[36]=T,e[37]=D):D=e[37];let y;e[38]!==S?(y=S&&l.jsx(_e,{field:S,onClose:()=>C(null)}),e[38]=S,e[39]=y):y=e[39];let w;return e[40]!==D||e[41]!==y?(w=l.jsxs(l.Fragment,{children:[D,y]}),e[40]=D,e[41]=y,e[42]=w):w=e[42],w}function Si(b){const e=U.c(24),{connectionId:o,toolName:i,args:r}=b,{org:t}=K(),c=me();let m;e[0]!==o||e[1]!==c?(m=se(o)&&c.vmEntry?.sandboxProviderKind==="user-desktop"&&c.previewUrl?`${c.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=c,e[2]=m):m=e[2];const d=m;let n;e[3]!==o||e[4]!==d||e[5]!==t.id||e[6]!==t.slug?(n={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:d},e[3]=o,e[4]=d,e[5]=t.id,e[6]=t.slug,e[7]=n):n=e[7];const f=z(n);let g;e[8]!==f?(g={client:f},e[8]=f,e[9]=g):g=e[9];const{data:h}=ne(g);let s,S,C;e[10]!==i||e[11]!==h.tools?(s=oe(decodeURIComponent(i)),C=h.tools.find(x=>x.name===s)??h.tools.find(x=>{const O=q(x._meta);if(!O)return!1;if(H(x.name,O)===s)return!0;const M=H(s,O);return M!==s&&x.name===M}),S=C?._meta?ae(C._meta):void 0,e[10]=i,e[11]=h.tools,e[12]=s,e[13]=S,e[14]=C):(s=e[12],S=e[13],C=e[14]);const I=S;if(!C||!I){let x;return e[15]!==s?(x=l.jsx("div",{className:"flex items-center justify-center h-full w-full",children:l.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',s,'" not found or has no UI']})}),e[15]=s,e[16]=x):x=e[16],x}let N;return e[17]!==r||e[18]!==f||e[19]!==o||e[20]!==t.id||e[21]!==I||e[22]!==C?(N=l.jsx(Pe,{client:f,resourceURI:I,tool:C,connectionId:o,orgId:t.id,args:r}),e[17]=r,e[18]=f,e[19]=o,e[20]=t.id,e[21]=I,e[22]=C,e[23]=N):N=e[23],N}export{Si as AppViewContent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as B,b as L,j as r}from"./index-DYhuz5u4.js";import{I as A}from"./input-BeEZ0yYi.js";import{L as F}from"./label-lJB9hx_m.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-pRcFQMbD.js";import{T as G}from"./textarea-CR9D7Jr6.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-B_eYuc0U.js";import{s as P}from"./primitives-R8WLKcdc.js";import{u as H}from"./use-autosave-BxpSUaYU.js";import"./Check-eRPNoavQ.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronUp-iWYokpT6.js";import"./ArrowUp-CEPWXS-3.js";import"./chat-context-IN2mbOb6.js";import"./tab-id-CRYGEVwl.js";import"./dialog-D4TKCpgT.js";import"./Copy01-DRSCHQwE.js";import"./Download01-BH3cjMrI.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-Ce8j84Dj.js";import"./use-mcp-client-rUWSEc22.js";import"./constants-_08zpzmT.js";import"./auth-58obgKjX.js";import"./decopilot-sse-pool-DD1r1Ni7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DgtJLqTs.js";import"./use-ai-providers-CYnRe4Z_.js";import"./use-decopilot-events-C3Qa806m.js";import"./use-organization-settings-DJ4tVzFq.js";import"./automation-runs-CdXs2_3V.js";import"./agent-icon-Dapja1ku.js";import"./AlertCircle-BDusuqHR.js";import"./Tool01-DOhRtqWP.js";import"./ArrowLeft-0tHCTq_5.js";import"./Tool02-BeXTGPXn.js";import"./XCircle-C9nVincA.js";import"./TrendUp01-Kbryww01.js";import"./ZapSquare-CP5-bflA.js";import"./Users03-CJFHaNa3.js";import"./UserSquare-4N_O4Huh.js";import"./CheckCircle-D5qJu1Fm.js";import"./ChevronRight-DCgSscRL.js";import"./ChevronSelectorVertical-B3t1cekd.js";import"./DotsVertical-4USgsJk6.js";import"./Stars02-DLckXeQE.js";import"./CreditCard01-BSTb8Mc9.js";import"./Settings02-DmvOMOJi.js";import"./Eye-CTLVmBpG.js";import"./FilterLines-BsHaUIT2.js";import"./Share07-CRjpz7Rb.js";import"./Globe01-DklSBKay.js";import"./Globe04-F8f-0PZt.js";import"./SwitchHorizontal01-CwhrY0ka.js";import"./HardDrive-DjJMW3nS.js";import"./Key01-C1runo_O.js";import"./LinkExternal01-DYnPaZ3r.js";import"./LockUnlocked01-DOMhyB5E.js";import"./LogOut01-Ah-KAndl.js";import"./Monitor01-DQPfjm9A.js";import"./Sun-D7tOZ_nt.js";import"./Palette-D3b-Xu-h.js";import"./Play-Cwr6OeyJ.js";import"./Plus-o6GtUPlY.js";import"./SearchLg-CspkxEWY.js";import"./SearchMd-RYRFlTFn.js";import"./Shield01-rgn5f9FP.js";import"./Stars01-DZNPrk3T.js";import"./Trash01-M0RrAQ6e.js";import"./Upload01-B5ikfnMw.js";import"./User01-CNoTVT8V.js";import"./Users01-Cwzg4OyC.js";import"./XClose-p_PG6PPu.js";import"./Zap-BxAmuoGy.js";import"./useInfiniteQuery-Cka6pm7d.js";import"./use-infinite-scroll-s7hE4wtn.js";import"./use-connection-qRC7PjST.js";import"./table-CjUGtpAn.js";import"./empty-state-DhEtzlSH.js";import"./use-members-B_8MrweM.js";import"./use-org-auth-client-B0nKdvcm.js";import"./use-clock-tick-exAPGuDL.js";import"./use-automations-BfUUQWS6.js";import"./useSuspenseInfiniteQuery-_TCm0uwm.js";import"./avatar-93Ky3hst.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-5T5UkCj5.js";import"./monaco-editor-DOTx9L8-.js";import"./spinner-CZafxxZB.js";import"./types-WvZhDZNg.js";import"./shell-layout-Bm5zUndY.js";import"./required-auth-layout-BrkOyyOk.js";import"./use-org-sso-B_CNcFl1.js";import"./integration-icon-Bysc1MQE.js";import"./use-navigate-to-agent-B0Q0MfGV.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-XzF5-7u0.js";import"./index-nBibj1HB.js";import"./form-CnEnIqXp.js";import"./file-type-icon-BZeO1Oso.js";import"./drawer-CGdYXF1V.js";import"./collection-search-CVsH-m_a.js";import"./tabs-BdxtePF9.js";import"./toggle-group-COsyIaDP.js";import"./use-commerce-diagnostic-C0d6yhR3.js";import"./popover-C35Me60K.js";import"./self-tool-result-CBXC7R0E.js";import"./alert-dialog-Dolo_dDt.js";import"./extract-connection-data-DOVwP3xc.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DexciQ0U.js";import"./authenticate-and-persist-oauth-CrLLgM6o.js";import"./mcp-oauth-bixKz7BF.js";import"./track-Co-CdXjd.js";import"./toolbar-DtHs7yB3.js";import"./github-repo-picker-BDL6quG_.js";import"./use-mcp-tools-BFb2reXp.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-GIYyR3Dk.js";import"./use-registry-connections-cskepZKY.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-C1AXlsMA.js";import"./collection-tabs-Dou_bmpW.js";import"./badge-CGEHhIh7.js";import"./command-BhDqTkTk.js";import"./index-BUVqLPW9.js";import"./select-model-DHRgtkJ-.js";import"./checkbox-O8sasvu3.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BWQ3fTI6.js";import"./dropdown-menu-VzXuM7DT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-p1DffsVl.js";import"./use-file-configs-07hOycAD.js";import"./pt-BR-CLy76QW2.js";import"./switch-AL0FRwjR.js";import"./use-debounced-autosave-DwM6UtRL.js";import"./search-input-4XgXHQd1.js";import"./index-Cr5DqCRY.js";import"./use-secrets-Cj79lIU5.js";import"./AreaChart-D3QDeFur.js";import"./task-key-DpQDci0a.js";import"./sprints-CA-TQC6e.js";import"./use-tags-B8zJ4C0I.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-B7NdzgK2.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CJeOf4LS.js";const Q={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},U={authors:"sandbox.recordEditor.titleAuthor"};function Dr(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=J(h);let g;t[4]!==f||t[5]!==a?(g=M(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:$(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=H(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=U[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(X,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=Q[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(V,{id:o.key,className:"h-10 w-full",children:r.jsx(z,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(D,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(G,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=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:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{Dr as RecordEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as pt,b as at,j as r}from"./index-B5R-ECHm.js";import{C as ct}from"./checkbox-BZ02x3Tw.js";import{I as rt}from"./input-DSE7gQf1.js";import{L as et}from"./label-bKnld9-e.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-D5jnyj0l.js";import{G as ut,c0 as yt,K as bt,c1 as jt,c2 as vt}from"./index-PlC49IUs.js";import{u as gt}from"./use-autosave-BRWbTp2x.js";import"./Check-KqwAmcDj.js";import"./ChevronDown-BQZF9Af9.js";import"./ChevronUp-BnjYp300.js";import"./ArrowUp-DmYjuyWi.js";import"./chat-context-PKiduEXT.js";import"./tab-id-C7NSeDZO.js";import"./dialog-BQ-t4CF4.js";import"./Copy01-DQMklNBZ.js";import"./Download01-BCA2ING7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-APRq5B-N.js";import"./use-mcp-client-Bu-g594J.js";import"./constants-_08zpzmT.js";import"./auth-D0FayD-s.js";import"./decopilot-sse-pool-CzhRRg62.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DKc17TzC.js";import"./use-ai-providers-BWG1j4R3.js";import"./use-decopilot-events-0HarKwn7.js";import"./use-organization-settings-DeS0wGS3.js";import"./automation-runs-BwVIBljL.js";import"./agent-icon-BM9CQspm.js";import"./AlertCircle-d_jYW-pF.js";import"./Tool01-TcrXKmnF.js";import"./ArrowLeft-B5SdDJS5.js";import"./Tool02-DWE9dUHc.js";import"./XCircle-CJ79pnxP.js";import"./TrendUp01-DehiMCpc.js";import"./ZapSquare-Cx_Z2jAm.js";import"./Users03-C_Br2__w.js";import"./UserSquare-CYgbi1K9.js";import"./CheckCircle-DuO-pGO-.js";import"./ChevronRight-Bq8eLOWM.js";import"./ChevronSelectorVertical-DrHEbUrw.js";import"./DotsVertical-DmFi_5m5.js";import"./Stars02-NRIRt4tn.js";import"./CreditCard01-ayJva4-L.js";import"./Settings02-CDWROrkG.js";import"./Eye-CRgVrt0h.js";import"./FilterLines-D6T5uoZ8.js";import"./Share07-rauAL5Pr.js";import"./Globe01-KXkuiG0o.js";import"./Globe04-kFCzhDtq.js";import"./SwitchHorizontal01-BLilv7ln.js";import"./HardDrive-IGVDCiH-.js";import"./Key01-zoXnVGpi.js";import"./LinkExternal01-DY154voS.js";import"./LockUnlocked01-BUPOcE7Q.js";import"./LogOut01-vFXcKA44.js";import"./Monitor01-IMrl8-Sz.js";import"./Sun-BDdwc-Zh.js";import"./Palette-CO-9fV73.js";import"./Play-Cnds4faY.js";import"./Plus-DeCuWgpG.js";import"./SearchLg-LSbMLZI6.js";import"./SearchMd-C6SjxYyL.js";import"./Shield01-CJQrmrbA.js";import"./Stars01-DqVhL0wf.js";import"./Trash01-DoWKJDZO.js";import"./Upload01-DROOnA_X.js";import"./User01-DBp5CtcM.js";import"./Users01-D845Yde-.js";import"./XClose-BOvSf6KB.js";import"./Zap-CYPfTI6g.js";import"./useInfiniteQuery-CtQupOcz.js";import"./use-infinite-scroll-DSYZfzYp.js";import"./use-connection-CFAFM3Yj.js";import"./table-BdiZmxkC.js";import"./empty-state-Z6jBJyBE.js";import"./use-members-yMUdTS3F.js";import"./use-org-auth-client-DZGh6wmi.js";import"./use-clock-tick-BmMJ4C9l.js";import"./use-automations-CESfm05a.js";import"./useSuspenseInfiniteQuery-DsYLPBXT.js";import"./avatar-CqQE-eFC.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Du-_RwSH.js";import"./monaco-editor-DfjGwIkC.js";import"./spinner-ClifCs3i.js";import"./types-qEmgOr-R.js";import"./shell-layout-CAm70xM1.js";import"./required-auth-layout-DoToYqRI.js";import"./use-org-sso-CmTeA9vF.js";import"./integration-icon-BNk_AQRx.js";import"./use-navigate-to-agent-CioCH7VJ.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-wUtBUsj3.js";import"./index-CCWpCA-G.js";import"./form-WUWViVui.js";import"./file-type-icon-k6QIypVu.js";import"./drawer-Db54djTH.js";import"./collection-search-CksSLFKw.js";import"./tabs-B1m4e_Lf.js";import"./toggle-group-B9nynTTu.js";import"./use-commerce-diagnostic-Ll9Jxlc1.js";import"./popover-DH9TTdnh.js";import"./self-tool-result-CIZIi6Il.js";import"./alert-dialog-CJVL1k9x.js";import"./extract-connection-data-B6RBsrzJ.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D7E7obaB.js";import"./authenticate-and-persist-oauth-t3Fvmhc7.js";import"./mcp-oauth-CIUwYU01.js";import"./track-BeWveGxs.js";import"./toolbar-Dn87lyB_.js";import"./github-repo-picker-CntGYv-N.js";import"./use-mcp-tools-Dtn2uWjv.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-CmsTkv4b.js";import"./use-registry-connections-DENDz1rF.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-C8A1NtUt.js";import"./connection-form-helpers-BP-W1_HA.js";import"./collection-tabs-Lyg-Hx2-.js";import"./badge-D3zUUYug.js";import"./command-UPps-OHa.js";import"./index-ChJw-ECJ.js";import"./select-model-DPpBxnrS.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-B6201d9G.js";import"./dropdown-menu-Dl9RzbmM.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-Dk4EoSoR.js";import"./use-file-configs-BxpfXHj_.js";import"./pt-BR-CLy76QW2.js";import"./switch-DXyXcz0k.js";import"./use-debounced-autosave-44xRW5_u.js";import"./search-input-Bghs_Bjp.js";import"./index-C6_zR0Yd.js";import"./use-secrets-7WKBJtby.js";import"./AreaChart-6ExM5C57.js";import"./task-key-DzvP3l3i.js";import"./sprints-C1R8b2UK.js";import"./use-tags-CrW3MALx.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-C9Xx9zFJ.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CwiMJzn0.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function di(it){const t=pt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let G;t[4]!==Z?(G=yt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let M;t[6]!==X||t[7]!==s?(M=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=M):M=t[8];const[o,tt]=gt(ot,M);let Y;t[9]!==o||t[10]!==tt?(Y=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=Y):Y=t[11];const m=Y;let l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(bt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let y;t[36]!==u?(y=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=y):y=t[37];let b;t[38]!==n||t[39]!==h||t[40]!==y?(b=r.jsxs("div",{className:"space-y-2",children:[n,h,y]}),t[38]=n,t[39]=h,t[40]=y,t[41]=b):b=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const lt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let K;t[74]!==_?(K=r.jsx(xt,{children:_}),t[74]=_,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,K]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=K,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==b||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[b,C,Q,O]})}),t[98]=b,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{di as RedirectEditor};
|
|
1
|
+
import{c as pt,b as at,j as r}from"./index-DYhuz5u4.js";import{C as ct}from"./checkbox-O8sasvu3.js";import{I as rt}from"./input-BeEZ0yYi.js";import{L as et}from"./label-lJB9hx_m.js";import{d as dt,a as nt,b as ft,c as xt,S as ht}from"./select-pRcFQMbD.js";import{G as ut,c0 as yt,K as bt,c1 as jt,c2 as vt}from"./index-B_eYuc0U.js";import{u as gt}from"./use-autosave-BxpSUaYU.js";import"./Check-eRPNoavQ.js";import"./ChevronDown-B1IObYwx.js";import"./ChevronUp-iWYokpT6.js";import"./ArrowUp-CEPWXS-3.js";import"./chat-context-IN2mbOb6.js";import"./tab-id-CRYGEVwl.js";import"./dialog-D4TKCpgT.js";import"./Copy01-DRSCHQwE.js";import"./Download01-BH3cjMrI.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-Ce8j84Dj.js";import"./use-mcp-client-rUWSEc22.js";import"./constants-_08zpzmT.js";import"./auth-58obgKjX.js";import"./decopilot-sse-pool-DD1r1Ni7.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-DgtJLqTs.js";import"./use-ai-providers-CYnRe4Z_.js";import"./use-decopilot-events-C3Qa806m.js";import"./use-organization-settings-DJ4tVzFq.js";import"./automation-runs-CdXs2_3V.js";import"./agent-icon-Dapja1ku.js";import"./AlertCircle-BDusuqHR.js";import"./Tool01-DOhRtqWP.js";import"./ArrowLeft-0tHCTq_5.js";import"./Tool02-BeXTGPXn.js";import"./XCircle-C9nVincA.js";import"./TrendUp01-Kbryww01.js";import"./ZapSquare-CP5-bflA.js";import"./Users03-CJFHaNa3.js";import"./UserSquare-4N_O4Huh.js";import"./CheckCircle-D5qJu1Fm.js";import"./ChevronRight-DCgSscRL.js";import"./ChevronSelectorVertical-B3t1cekd.js";import"./DotsVertical-4USgsJk6.js";import"./Stars02-DLckXeQE.js";import"./CreditCard01-BSTb8Mc9.js";import"./Settings02-DmvOMOJi.js";import"./Eye-CTLVmBpG.js";import"./FilterLines-BsHaUIT2.js";import"./Share07-CRjpz7Rb.js";import"./Globe01-DklSBKay.js";import"./Globe04-F8f-0PZt.js";import"./SwitchHorizontal01-CwhrY0ka.js";import"./HardDrive-DjJMW3nS.js";import"./Key01-C1runo_O.js";import"./LinkExternal01-DYnPaZ3r.js";import"./LockUnlocked01-DOMhyB5E.js";import"./LogOut01-Ah-KAndl.js";import"./Monitor01-DQPfjm9A.js";import"./Sun-D7tOZ_nt.js";import"./Palette-D3b-Xu-h.js";import"./Play-Cwr6OeyJ.js";import"./Plus-o6GtUPlY.js";import"./SearchLg-CspkxEWY.js";import"./SearchMd-RYRFlTFn.js";import"./Shield01-rgn5f9FP.js";import"./Stars01-DZNPrk3T.js";import"./Trash01-M0RrAQ6e.js";import"./Upload01-B5ikfnMw.js";import"./User01-CNoTVT8V.js";import"./Users01-Cwzg4OyC.js";import"./XClose-p_PG6PPu.js";import"./Zap-BxAmuoGy.js";import"./useInfiniteQuery-Cka6pm7d.js";import"./use-infinite-scroll-s7hE4wtn.js";import"./use-connection-qRC7PjST.js";import"./table-CjUGtpAn.js";import"./empty-state-DhEtzlSH.js";import"./use-members-B_8MrweM.js";import"./use-org-auth-client-B0nKdvcm.js";import"./use-clock-tick-exAPGuDL.js";import"./use-automations-BfUUQWS6.js";import"./useSuspenseInfiniteQuery-_TCm0uwm.js";import"./avatar-93Ky3hst.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-5T5UkCj5.js";import"./monaco-editor-DOTx9L8-.js";import"./spinner-CZafxxZB.js";import"./types-WvZhDZNg.js";import"./shell-layout-Bm5zUndY.js";import"./required-auth-layout-BrkOyyOk.js";import"./use-org-sso-B_CNcFl1.js";import"./integration-icon-Bysc1MQE.js";import"./use-navigate-to-agent-B0Q0MfGV.js";import"./reusable-new-chat-CzvRy4Pe.js";import"./chart-XzF5-7u0.js";import"./index-nBibj1HB.js";import"./form-CnEnIqXp.js";import"./file-type-icon-BZeO1Oso.js";import"./drawer-CGdYXF1V.js";import"./collection-search-CVsH-m_a.js";import"./tabs-BdxtePF9.js";import"./toggle-group-COsyIaDP.js";import"./use-commerce-diagnostic-C0d6yhR3.js";import"./popover-C35Me60K.js";import"./self-tool-result-CBXC7R0E.js";import"./alert-dialog-Dolo_dDt.js";import"./extract-connection-data-DOVwP3xc.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-DexciQ0U.js";import"./authenticate-and-persist-oauth-CrLLgM6o.js";import"./mcp-oauth-bixKz7BF.js";import"./track-Co-CdXjd.js";import"./toolbar-DtHs7yB3.js";import"./github-repo-picker-BDL6quG_.js";import"./use-mcp-tools-BFb2reXp.js";import"./agent-capabilities-C4tLW0Za.js";import"./connection-card-GIYyR3Dk.js";import"./use-registry-connections-cskepZKY.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CR9D7Jr6.js";import"./connection-form-helpers-C1AXlsMA.js";import"./collection-tabs-Dou_bmpW.js";import"./badge-CGEHhIh7.js";import"./command-BhDqTkTk.js";import"./index-BUVqLPW9.js";import"./select-model-DHRgtkJ-.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-BWQ3fTI6.js";import"./dropdown-menu-VzXuM7DT.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-p1DffsVl.js";import"./use-file-configs-07hOycAD.js";import"./pt-BR-CLy76QW2.js";import"./switch-AL0FRwjR.js";import"./use-debounced-autosave-DwM6UtRL.js";import"./search-input-4XgXHQd1.js";import"./index-Cr5DqCRY.js";import"./use-secrets-Cj79lIU5.js";import"./AreaChart-D3QDeFur.js";import"./task-key-DpQDci0a.js";import"./sprints-CA-TQC6e.js";import"./use-tags-B8zJ4C0I.js";import"./get-initials-D-f_fDFw.js";import"./automation-list-row-B7NdzgK2.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CJeOf4LS.js";const Et=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function di(it){const t=pt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let G;t[4]!==Z?(G=yt(Z),t[4]=Z,t[5]=G):G=t[5];const ot=G;let M;t[6]!==X||t[7]!==s?(M=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=M):M=t[8];const[o,tt]=gt(ot,M);let Y;t[9]!==o||t[10]!==tt?(Y=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=Y):Y=t[11];const m=Y;let l;t[12]!==e?(l=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=l):l=t[13];let p;t[14]!==l?(p=r.jsx("span",{className:"text-sm font-medium",children:l}),t[14]=l,t[15]=p):p=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(bt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==p||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[p,a]}),t[19]=p,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let y;t[36]!==u?(y=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=y):y=t[37];let b;t[38]!==n||t[39]!==h||t[40]!==y?(b=r.jsxs("div",{className:"space-y-2",children:[n,h,y]}),t[38]=n,t[39]=h,t[40]=y,t[41]=b):b=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let g;t[46]!==e?(g=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=g):g=t[47];let E;t[48]!==m?(E=i=>m({to:i.target.value}),t[48]=m,t[49]=E):E=t[49];let P;t[50]!==o.to||t[51]!==g||t[52]!==E?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:g,onChange:E,className:"h-10"}),t[50]=o.to,t[51]=g,t[52]=E,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const lt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=Et.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let K;t[74]!==_?(K=r.jsx(xt,{children:_}),t[74]=_,t[75]=K):K=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==K?(L=r.jsxs(ht,{value:lt,onValueChange:w,children:[I,K]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=K,t[80]=L):L=t[80];let $;t[81]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[81]=$):$=t[81];let q;t[82]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=q):q=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let F;t[86]!==m?(F=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=F):F=t[87];let D;t[88]!==o.discardQueryParameters||t[89]!==F?(D=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:F}),t[88]=o.discardQueryParameters,t[89]=F,t[90]=D):D=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==D||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[95]=D,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==b||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[b,C,Q,O]})}),t[98]=b,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let z;return t[103]!==U||t[104]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=z):z=t[105],z}export{di as RedirectEditor};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-DSBq7AXo.js","assets/index-DYhuz5u4.js","assets/index-DfOjcoHJ.css","assets/Tool02-BeXTGPXn.js","assets/CheckCircle-D5qJu1Fm.js","assets/Settings02-DmvOMOJi.js","assets/use-mcp-client-rUWSEc22.js","assets/constants-_08zpzmT.js","assets/auth-58obgKjX.js","assets/useInfiniteQuery-Cka6pm7d.js","assets/use-infinite-scroll-s7hE4wtn.js","assets/badge-CGEHhIh7.js","assets/input-BeEZ0yYi.js","assets/dropdown-menu-VzXuM7DT.js","assets/Check-eRPNoavQ.js","assets/ChevronRight-DCgSscRL.js","assets/DotsVertical-4USgsJk6.js","assets/table-CjUGtpAn.js","assets/toggle-group-COsyIaDP.js","assets/use-view-mode-CQ2Jpgnb.js","assets/FilterLines-BsHaUIT2.js","assets/Globe01-DklSBKay.js","assets/SearchMd-RYRFlTFn.js","assets/dialog-D4TKCpgT.js","assets/AlertCircle-BDusuqHR.js","assets/Download01-BH3cjMrI.js","assets/Upload01-B5ikfnMw.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-Dolo_dDt.js","assets/Trash01-M0RrAQ6e.js","assets/label-lJB9hx_m.js","assets/select-pRcFQMbD.js","assets/ChevronDown-B1IObYwx.js","assets/ChevronUp-iWYokpT6.js","assets/switch-AL0FRwjR.js","assets/textarea-CR9D7Jr6.js","assets/ArrowLeft-0tHCTq_5.js","assets/XCircle-C9nVincA.js","assets/checkbox-O8sasvu3.js","assets/Eye-CTLVmBpG.js","assets/LinkExternal01-DYnPaZ3r.js","assets/use-copy-5T5UkCj5.js","assets/Copy01-DRSCHQwE.js","assets/Key01-C1runo_O.js","assets/Plus-o6GtUPlY.js","assets/mcp-oauth-bixKz7BF.js","assets/Play-Cwr6OeyJ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c as i,j as e,r as s,k as a,bc as o}from"./index-DYhuz5u4.js";import{R as c}from"./require-capability-7_58sFgG.js";import"./access-gate-C3x_LTGW.js";import"./capability-load-error-CArhVadz.js";const n=s.lazy(()=>o(()=>import("./registry-layout-DSBq7AXo.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,45,46])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(c,{capability:"registry:manage",area:"the registry",children:e.jsx(s.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{u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,av as Me,t as V,b as oe,r as q,j as t,B as Q,aT as ge,k as Ye,n as te,aj as Gs,a8 as Qs,a9 as Ys,ab as Ws,bN as Js,bO as Zs}from"./index-
|
|
1
|
+
import{c as Z,H as Ne,o as Ae,p as Ue,e as Pe,av as Me,t as V,b as oe,r as q,j as t,B as Q,aT as ge,k as Ye,n as te,aj as Gs,a8 as Qs,a9 as Ys,ab as Ws,bN as Js,bO as Zs}from"./index-DYhuz5u4.js";import{i as ss,a as ps,t as Xs,c as er,n as tr,b as sr}from"./Tool02-BeXTGPXn.js";import{i as We}from"./CheckCircle-D5qJu1Fm.js";import{s as Ft,b as rr,i as ir,a as nr}from"./Settings02-DmvOMOJi.js";import{u as Fe}from"./use-mcp-client-rUWSEc22.js";import{S as Oe,W as or}from"./constants-_08zpzmT.js";import{u as hs}from"./useInfiniteQuery-Cka6pm7d.js";import{B as H}from"./badge-CGEHhIh7.js";import{I as je}from"./input-BeEZ0yYi.js";import{D as ft,a as Ie,b as yt,c as jt,j as rs,k as is,i as ar}from"./dropdown-menu-VzXuM7DT.js";import{c as $t,e as zt,a as Je,d as he,b as Ot,T as fe}from"./table-CjUGtpAn.js";import{T as lr,a as ns}from"./toggle-group-COsyIaDP.js";import{u as cr}from"./use-view-mode-CQ2Jpgnb.js";import{a as Bt}from"./DotsVertical-4USgsJk6.js";import{i as dr}from"./FilterLines-BsHaUIT2.js";import{i as fs}from"./Globe01-DklSBKay.js";import{i as ur}from"./SearchMd-RYRFlTFn.js";import{e as vt,d as bt,b as Nt,h as Ct,a as wt,c as _t}from"./dialog-D4TKCpgT.js";import{i as st}from"./AlertCircle-BDusuqHR.js";import{n as mr}from"./Download01-BH3cjMrI.js";import{i as os}from"./Upload01-B5ikfnMw.js";import{g as ke,w as Pt}from"./metadata-dUsYcpuu.js";import{c as rt,d as it,b as nt,f as ot,g as at,e as lt,a as ct,A as dt}from"./alert-dialog-Dolo_dDt.js";import{s as ut}from"./Trash01-M0RrAQ6e.js";import{L as le}from"./label-lJB9hx_m.js";import{S as gr,a as xr,b as pr,c as hr,d as qt}from"./select-pRcFQMbD.js";import{S as Ge}from"./switch-AL0FRwjR.js";import{T as Rt}from"./textarea-CR9D7Jr6.js";import{i as fr}from"./ArrowLeft-0tHCTq_5.js";import{b as yr,i as jr,a as vr}from"./XCircle-C9nVincA.js";import{t as br}from"./ChevronDown-B1IObYwx.js";import{n as Nr}from"./ChevronUp-iWYokpT6.js";import{C as as}from"./checkbox-O8sasvu3.js";import{s as ys}from"./Eye-CTLVmBpG.js";import{n as Cr}from"./LinkExternal01-DYnPaZ3r.js";import{u as wr}from"./use-infinite-scroll-s7hE4wtn.js";import{u as Et}from"./use-copy-5T5UkCj5.js";import{i as Lt}from"./Check-eRPNoavQ.js";import{a as At}from"./Copy01-DRSCHQwE.js";import{i as _r}from"./Key01-C1runo_O.js";import{s as Pr}from"./Plus-o6GtUPlY.js";import{i as Rr,a as kr}from"./mcp-oauth-bixKz7BF.js";import{i as Ir}from"./Play-Cwr6OeyJ.js";import"./auth-58obgKjX.js";import"./ChevronRight-DCgSscRL.js";const Ve="private-registry",Sr=`
|
|
2
2
|
You are an MCP tool tester running automated integration checks.
|
|
3
3
|
|
|
4
4
|
Goal:
|