decocms 4.294.1 → 4.294.2
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-BX7MJ072.js → AlertCircle-qZDg2e-H.js} +1 -1
- package/dist/client/assets/{AreaChart-B2c5VlMF.js → AreaChart-D1rWRcUm.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D_iAJfNc.js → ArrowLeft-CatEVOI7.js} +1 -1
- package/dist/client/assets/{ArrowUp-DE3_BiFl.js → ArrowUp-DMDdMhAA.js} +1 -1
- package/dist/client/assets/{Check-CMgbiLaX.js → Check-C5RWnyNL.js} +1 -1
- package/dist/client/assets/{CheckCircle-DSareV9G.js → CheckCircle-V0GvWvtd.js} +1 -1
- package/dist/client/assets/{ChevronDown-Dw8obt8m.js → ChevronDown-CeGZsBnS.js} +1 -1
- package/dist/client/assets/{ChevronRight-CmErvA0j.js → ChevronRight-Dh8_6pj1.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DvwcNCCU.js → ChevronSelectorVertical-Im3Lz_4E.js} +1 -1
- package/dist/client/assets/{ChevronUp-zRZTeZ7W.js → ChevronUp-DCx43qHY.js} +1 -1
- package/dist/client/assets/{Copy01-TuMirHlz.js → Copy01-DhfruII6.js} +1 -1
- package/dist/client/assets/{CreditCard01-DE9AkrGD.js → CreditCard01-Cy0s6gAf.js} +1 -1
- package/dist/client/assets/{DotsVertical-BWlRnIv9.js → DotsVertical-B39kxqbi.js} +1 -1
- package/dist/client/assets/{Download01-BrELUVKh.js → Download01-C1FmC7JV.js} +1 -1
- package/dist/client/assets/{Eye-C1diZla3.js → Eye-m8QZKf2Y.js} +1 -1
- package/dist/client/assets/{FilterLines-CWtPXhPn.js → FilterLines-BBF-m2ZJ.js} +1 -1
- package/dist/client/assets/{Globe01-BLauj86P.js → Globe01-C2F_PPuX.js} +1 -1
- package/dist/client/assets/{Globe04-BZfohkfh.js → Globe04-CMCnFTSr.js} +1 -1
- package/dist/client/assets/{HardDrive-BooNC9Iz.js → HardDrive-DmqNZKD8.js} +1 -1
- package/dist/client/assets/{Key01-BNf86BzY.js → Key01-DbCU9LZF.js} +1 -1
- package/dist/client/assets/{LinkExternal01-C5sEFVrU.js → LinkExternal01-kQnRXU4w.js} +1 -1
- package/dist/client/assets/{LockUnlocked01-qFRWZtfh.js → LockUnlocked01-D5OpQeQe.js} +1 -1
- package/dist/client/assets/{LogOut01-945MQKA3.js → LogOut01-BePTyd5L.js} +1 -1
- package/dist/client/assets/{Monitor01-BYyknu9E.js → Monitor01-DPqlemzQ.js} +1 -1
- package/dist/client/assets/{Palette-CtmrE0Ya.js → Palette-DzT0S9Gl.js} +1 -1
- package/dist/client/assets/{Play-KEXVN9gu.js → Play-Btu3v5FX.js} +1 -1
- package/dist/client/assets/{Plus-DVX_wDQ5.js → Plus-B7vTVmKH.js} +1 -1
- package/dist/client/assets/{SearchLg--Jj0q90X.js → SearchLg-CAAIuTYj.js} +1 -1
- package/dist/client/assets/{SearchMd-BfGi9p6T.js → SearchMd-COQJLRw-.js} +1 -1
- package/dist/client/assets/{Settings02-NF-WIPx9.js → Settings02-xEBQxvJD.js} +1 -1
- package/dist/client/assets/{Share07-CaDcjgW4.js → Share07-CLkT7SlV.js} +1 -1
- package/dist/client/assets/{Shield01-BKKyhf4r.js → Shield01-C2USnj9G.js} +1 -1
- package/dist/client/assets/{Stars01--KT_Bx7a.js → Stars01-DkoqcM4j.js} +1 -1
- package/dist/client/assets/{Stars02-BX_P13x6.js → Stars02-4GZ9SjIq.js} +1 -1
- package/dist/client/assets/{Sun-DS3TtzGE.js → Sun-D0KW7MLF.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-Cb_T5oPm.js → SwitchHorizontal01-DwxljZOI.js} +1 -1
- package/dist/client/assets/{Tool01-Ci1f_VX6.js → Tool01-tn2PFBHQ.js} +1 -1
- package/dist/client/assets/{Tool02-BSzeWnI0.js → Tool02-BalBR7uK.js} +1 -1
- package/dist/client/assets/{Trash01-BjqXjKjL.js → Trash01-CwqV1gzD.js} +1 -1
- package/dist/client/assets/{TrendUp01-BXDl_oA2.js → TrendUp01-6TR_k_0Y.js} +1 -1
- package/dist/client/assets/{Upload01-Dz2owj0l.js → Upload01-mqAHBbZV.js} +1 -1
- package/dist/client/assets/{User01-DfNUsZjG.js → User01-DWaPmCwS.js} +1 -1
- package/dist/client/assets/{UserSquare-QpZbwdZV.js → UserSquare-ClSByuB-.js} +1 -1
- package/dist/client/assets/{Users01-CIQN8wG7.js → Users01-CFDNbxgJ.js} +1 -1
- package/dist/client/assets/{Users03-1JkDRbw6.js → Users03-BT3gPqQL.js} +1 -1
- package/dist/client/assets/{XCircle-BEPQ7ZR9.js → XCircle-BOrCVYLf.js} +1 -1
- package/dist/client/assets/{XClose-CmC5bnde.js → XClose-DMSeuF30.js} +1 -1
- package/dist/client/assets/{YAxis-C68KAf7l.js → YAxis-CjueDU_j.js} +1 -1
- package/dist/client/assets/{Zap-BHFTnbC7.js → Zap-CwYGo5D6.js} +1 -1
- package/dist/client/assets/{ZapSquare-W_x0tYhG.js → ZapSquare-DkKtoQ7W.js} +1 -1
- package/dist/client/assets/{access-gate-CJ1xrwBs.js → access-gate-DXIgG9H-.js} +1 -1
- package/dist/client/assets/{agent-icon-DwW--uUY.js → agent-icon-C9_7Msf7.js} +1 -1
- package/dist/client/assets/{agents-list-SZYdZyx8.js → agents-list-CrYr2LdT.js} +1 -1
- package/dist/client/assets/{ai-providers--wPbboM3.js → ai-providers-9B822Ytz.js} +1 -1
- package/dist/client/assets/{alert-IgKAs3o8.js → alert-DeOSO_Ec.js} +1 -1
- package/dist/client/assets/{alert-dialog-3i0jJzJ0.js → alert-dialog-BWONJIzw.js} +1 -1
- package/dist/client/assets/{api-keys-CUKmb7Np.js → api-keys-BHGQjiZT.js} +1 -1
- package/dist/client/assets/{app-editor-C5RKxi_A.js → app-editor-GCmyfLNC.js} +1 -1
- package/dist/client/assets/{auth-jQituvKm.js → auth-BqxUQw-v.js} +1 -1
- package/dist/client/assets/{auth-catchall-BCcqdIY-.js → auth-catchall-q5v2tPZU.js} +1 -1
- package/dist/client/assets/{auth-entry-FNjcKTKE.js → auth-entry-Dx-_gZ2g.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DQfYa1Wy.js → auth-split-layout-YdeWuYN1.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DsOW9H5Z.js → authenticate-and-persist-oauth-DRVU48ic.js} +1 -1
- package/dist/client/assets/{automation-list-row-CCZYSh-F.js → automation-list-row-BMiRTeOK.js} +1 -1
- package/dist/client/assets/{automation-runs-BioqyUmT.js → automation-runs-CzcGADVN.js} +1 -1
- package/dist/client/assets/{automations-Uhdu42lm.js → automations-DDnrk0LJ.js} +1 -1
- package/dist/client/assets/{avatar-DQGduv0U.js → avatar-1XE5IjoT.js} +1 -1
- package/dist/client/assets/{badge-CAWKSDnJ.js → badge-CXIV4O-0.js} +1 -1
- package/dist/client/assets/{block-document-CvQIz5yK.js → block-document-BufBxpL6.js} +1 -1
- package/dist/client/assets/{breadcrumb-Cl6tbNSR.js → breadcrumb-FUX_wv57.js} +1 -1
- package/dist/client/assets/{buckets-BwD1bAZL.js → buckets-DQPGFSM3.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-Cqpjajjn.js → bulk-category-panel-CNgfZPUK.js} +1 -1
- package/dist/client/assets/{capability-load-error-BTRZ_JFs.js → capability-load-error-BKGEHfpt.js} +1 -1
- package/dist/client/assets/{cards-Do4DMym-.js → cards-DJSm_nho.js} +1 -1
- package/dist/client/assets/{category-editor-DJa80_RF.js → category-editor-ByRsnfkE.js} +1 -1
- package/dist/client/assets/{chart-CjmlfSOz.js → chart-Bgue_7DQ.js} +1 -1
- package/dist/client/assets/{chat-context-B5Wg5Lf5.js → chat-context-C-BdNZCf.js} +1 -1
- package/dist/client/assets/{checkbox-BBaFR9e7.js → checkbox-DvC3nAT5.js} +1 -1
- package/dist/client/assets/{choose-editor-D21isyag.js → choose-editor-CFBXNqp3.js} +1 -1
- package/dist/client/assets/{cli-auth-success-xs-iEptG.js → cli-auth-success-CUav6RQy.js} +1 -1
- package/dist/client/assets/{collection-detail-Bgc17VFa.js → collection-detail-LByozjyF.js} +1 -1
- package/dist/client/assets/{collection-display-button-DXBEx_vc.js → collection-display-button-D4ItaSc8.js} +1 -1
- package/dist/client/assets/{collection-search-B-xYnw3X.js → collection-search-DBnGb4Zg.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-Ci0d113k.js → collection-table-wrapper-DCUZlFkx.js} +1 -1
- package/dist/client/assets/{collection-tabs-B9i9CP-Z.js → collection-tabs-CAUEdmSI.js} +1 -1
- package/dist/client/assets/{command-ClyqeQko.js → command-Ct_4mokr.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DoSINo3a.js → commerce-onboarding-C2UgJ-TR.js} +1 -1
- package/dist/client/assets/{config-C05cUmSb.js → config-DG69PD1X.js} +1 -1
- package/dist/client/assets/{connect-DzIdwweE.js → connect-DLRRtQi0.js} +1 -1
- package/dist/client/assets/{connection-C10IpVW9.js → connection-Dg1mnPcO.js} +1 -1
- package/dist/client/assets/{connection-card-BpdBS_Al.js → connection-card-CgUgSGsh.js} +1 -1
- package/dist/client/assets/{connection-detail-Dyv8cSja.js → connection-detail-CAhXUEiD.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-iTHnU6X5.js → connection-form-helpers-gU6TF210.js} +1 -1
- package/dist/client/assets/{connections-DAyzQnUs.js → connections-tQk1fh_m.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-S5tux0kK.js → decopilot-sse-pool-DDszDk42.js} +1 -1
- package/dist/client/assets/{dialog-BST7kHjs.js → dialog-DYg0AoO0.js} +1 -1
- package/dist/client/assets/{domain-settings-BqlL-o8W.js → domain-settings-xR7ZmjBb.js} +1 -1
- package/dist/client/assets/{drawer-Mrrueqfd.js → drawer-DrqU_8fl.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B1VRfncr.js → dropdown-menu-BGreHXNg.js} +1 -1
- package/dist/client/assets/{empty-state-N7iUhCDH.js → empty-state-DNKOHljA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-XOJUSxR8.js → extract-connection-data-BI_gbc3h.js} +1 -1
- package/dist/client/assets/{file-explorer-C6yyRfaX.js → file-explorer-D9_-DWtI.js} +1 -1
- package/dist/client/assets/{file-type-icon-N4BWvB1b.js → file-type-icon-Cr_jiDFe.js} +1 -1
- package/dist/client/assets/{form-kVV6q-fx.js → form-DUYaeuN1.js} +1 -1
- package/dist/client/assets/{general-Bb8jznvo.js → general-CVMzbMNL.js} +1 -1
- package/dist/client/assets/{github-repo-picker-Do0PQSNG.js → github-repo-picker-BjTlfZRh.js} +1 -1
- package/dist/client/assets/{hooks-B79ZY8IT.js → hooks-DvV-YCly.js} +1 -1
- package/dist/client/assets/{index-C5hmsqzf.js → index-BOALwCeh.js} +1 -1
- package/dist/client/assets/{index-UTTF9eic.js → index-BWVLjCpL.js} +6 -6
- package/dist/client/assets/{index-CPq3T21x.js → index-Bk7mmffp.js} +1 -1
- package/dist/client/assets/{index-B8RO7-AA.js → index-CXtbLiKC.js} +1 -1
- package/dist/client/assets/{index-D6UX70oA.js → index-CgA3qf5E.js} +1 -1
- package/dist/client/assets/{index-CsQMHT9g.js → index-CxsfTXSQ.js} +1 -1
- package/dist/client/assets/{index-BoZ9u4m1.js → index-DHLutK6v.js} +32 -32
- package/dist/client/assets/{index-DwmIdtlP.js → index-RXRS2M8q.js} +1 -1
- package/dist/client/assets/{index-DEww-2EZ.js → index-pYJ2-T-r.js} +1 -1
- package/dist/client/assets/{index-redirect-BBfeBIf1.js → index-redirect-CUFx5Ci3.js} +1 -1
- package/dist/client/assets/{infra-billing-B5uvzyJf.js → infra-billing-C7HR_T7J.js} +1 -1
- package/dist/client/assets/{input-vNnjluS1.js → input-zNG5Uz1T.js} +1 -1
- package/dist/client/assets/{integration-icon-DmJLuQ2R.js → integration-icon-CVsQlE88.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-c_6h1c9d.js → invite-member-dialog-BocroOxJ.js} +1 -1
- package/dist/client/assets/{label-2hy1g0FP.js → label-CEq9oqa2.js} +1 -1
- package/dist/client/assets/{layout-CTomL7O6.js → layout-DFoH_xu7.js} +1 -1
- package/dist/client/assets/{login-DaQOw-0F.js → login-DQ-omlrv.js} +1 -1
- package/dist/client/assets/{mcp-oauth-1M77jlWl.js → mcp-oauth-DGSZYZtZ.js} +1 -1
- package/dist/client/assets/{members-ByBSVnV2.js → members-1vFWUjqy.js} +1 -1
- package/dist/client/assets/{monaco-editor-Cfd7zTaZ.js → monaco-editor-BIUU4YtT.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CS0MLT1M.js → monitoring-stats-row-Drb7zrQ3.js} +1 -1
- package/dist/client/assets/{multi-select-Bc1Ex9je.js → multi-select-CeA0LiDA.js} +1 -1
- package/dist/client/assets/{oauth-callback-rGk9Wox5.js → oauth-callback-BLBnsV0m.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-g-Qo2pcQ.js → oauth-callback-ai-provider-_ZIgbe1k.js} +1 -1
- package/dist/client/assets/{onboarding-DXUs-Zwj.js → onboarding-DHEpPKxX.js} +1 -1
- package/dist/client/assets/{org-layout-w9rjradC.js → org-layout-CZwey9tp.js} +1 -1
- package/dist/client/assets/{organization-choice-BhpYK3pU.js → organization-choice-CinweDu8.js} +1 -1
- package/dist/client/assets/{orgs-B-lhj-vp.js → orgs-Cewt5f_m.js} +1 -1
- package/dist/client/assets/{page-seo-form-CAkmJPih.js → page-seo-form-DCXZwoTq.js} +1 -1
- package/dist/client/assets/{popover-DrLCC3p5.js → popover-CPDUuAsK.js} +1 -1
- package/dist/client/assets/{post-calendar-C_H7bClE.js → post-calendar-B2MLz9zN.js} +1 -1
- package/dist/client/assets/{post-editor-BRsttkiY.js → post-editor-xPbcpUyS.js} +1 -1
- package/dist/client/assets/{primitives-uAM2NwMD.js → primitives-bdzFl9KQ.js} +1 -1
- package/dist/client/assets/{profile-C00C8rDv.js → profile-DRVuFWo1.js} +1 -1
- package/dist/client/assets/{project-app-view-CAw6sW8T.js → project-app-view-C0-tH6m6.js} +1 -1
- package/dist/client/assets/{prompts-C1ft2jhs.js → prompts-DHayAFpv.js} +1 -1
- package/dist/client/assets/record-editor-BabiokFj.js +1 -0
- package/dist/client/assets/{redirect-editor-BTs-HhX2.js → redirect-editor-OElGvzsY.js} +1 -1
- package/dist/client/assets/registry-Bpp0Gik6.js +2 -0
- package/dist/client/assets/{registry-layout-VFGZ8IpM.js → registry-layout-BTzECwAf.js} +1 -1
- package/dist/client/assets/{reports-DhzLGuLY.js → reports-BlhyDDdZ.js} +1 -1
- package/dist/client/assets/{require-capability-CEAo1-fZ.js → require-capability-BJjD7GXa.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DWW3HDyn.js → required-auth-layout-Bi3hMcfQ.js} +1 -1
- package/dist/client/assets/{reset-password-DreFZeIe.js → reset-password-BLXOXnD3.js} +1 -1
- package/dist/client/assets/{review-settings-B-lAMYBo.js → review-settings-0bpnzbvB.js} +1 -1
- package/dist/client/assets/{roles-BU6rptsx.js → roles-C9DLuLWB.js} +1 -1
- package/dist/client/assets/{scroll-area-B2Bvze19.js → scroll-area-Dw0578rC.js} +1 -1
- package/dist/client/assets/{search-input-Ca_LFpsl.js → search-input-lOvS7ZZY.js} +1 -1
- package/dist/client/assets/{secrets-CqakQjb1.js → secrets-DEtSas2W.js} +1 -1
- package/dist/client/assets/{sections-editor-BBV08k5z.js → sections-editor-DDSHgrQf.js} +1 -1
- package/dist/client/assets/{select-DVeSr9Cv.js → select-W8jorDji.js} +1 -1
- package/dist/client/assets/{select-model-DSFTGsBN.js → select-model-CVJuTB71.js} +1 -1
- package/dist/client/assets/{self-tool-result-Ck66n9EL.js → self-tool-result-DYCZ2dxI.js} +1 -1
- package/dist/client/assets/{seo-editor-BQV7KNe6.js → seo-editor-CqSjFrJe.js} +1 -1
- package/dist/client/assets/{settings-layout-2dsjZSYZ.js → settings-layout-Cj60dDE0.js} +1 -1
- package/dist/client/assets/{shell-controls-BLPQ7kl6.js → shell-controls-CcajpdEy.js} +1 -1
- package/dist/client/assets/{shell-layout-Bgj0rQDA.js → shell-layout-BbKgiGKQ.js} +1 -1
- package/dist/client/assets/{spinner-znMssV1b.js → spinner-DEaGcbnH.js} +1 -1
- package/dist/client/assets/{sso-BksXn5ig.js → sso-DFyPw3S-.js} +1 -1
- package/dist/client/assets/{store-q2_blJYB.js → store-B-DY1jsG.js} +1 -1
- package/dist/client/assets/store-registry-CW8CS7Je.js +2 -0
- package/dist/client/assets/{super-agent-icon-D_RymLMx.js → super-agent-icon-DxowWKwv.js} +1 -1
- package/dist/client/assets/{switch-CE07liUg.js → switch-BsAR0Ue8.js} +1 -1
- package/dist/client/assets/{synced-repos-C0VYnIgW.js → synced-repos-BxJ8BZWX.js} +1 -1
- package/dist/client/assets/{table-C54lPCoC.js → table-RKi74_kY.js} +1 -1
- package/dist/client/assets/{tabs-DVsDlywr.js → tabs-DFRRVuh7.js} +1 -1
- package/dist/client/assets/{task-board-C_FiCg7o.js → task-board-D9PHUZff.js} +1 -1
- package/dist/client/assets/{tasks-DdrLr8z8.js → tasks-CiijDgSs.js} +1 -1
- package/dist/client/assets/{textarea-e01dAh4Q.js → textarea-XbuS70jj.js} +1 -1
- package/dist/client/assets/{toggle-group-DVOGESuU.js → toggle-group-WZyFFujP.js} +1 -1
- package/dist/client/assets/{toolbar-iG8binbI.js → toolbar-CmaLqa3-.js} +1 -1
- package/dist/client/assets/{track-Don0wR2Q.js → track-BFh4WctH.js} +1 -1
- package/dist/client/assets/{types-BMYq-irZ.js → types-CrdXjhQP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Cu5w7RQA.js → use-ai-providers-WmO5B1wa.js} +1 -1
- package/dist/client/assets/{use-api-keys-CkhCpVU8.js → use-api-keys-CHuWewKt.js} +1 -1
- package/dist/client/assets/{use-automations-CZQfO2ET.js → use-automations-g--nS4Go.js} +1 -1
- package/dist/client/assets/{use-autosave-BLPSaddA.js → use-autosave-BsqWx81g.js} +1 -1
- package/dist/client/assets/{use-connection-CabbUm7J.js → use-connection-D8j2CnOC.js} +1 -1
- package/dist/client/assets/{use-copy-CPSkWD8d.js → use-copy-lK-vhEre.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DYdOafWL.js → use-create-virtual-mcp-Bdpos1w0.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-D494opKg.js → use-debounced-autosave-DsCulVkO.js} +1 -1
- package/dist/client/assets/{use-debounced-value-wOe54Kkz.js → use-debounced-value-D5wCJf5h.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CoDj3hx4.js → use-decopilot-events-CEhAvB_E.js} +1 -1
- package/dist/client/assets/{use-delete-connection-Bh7pa4Y9.js → use-delete-connection-BAty9GWK.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BhDeB0GP.js → use-deployment-admin-CD-qM4Qw.js} +1 -1
- package/dist/client/assets/{use-destination-route-CUizQ3Ky.js → use-destination-route-BMJNYrmL.js} +1 -1
- package/dist/client/assets/{use-file-configs-BlsniSlU.js → use-file-configs-CEny8PB8.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BAdheIAu.js → use-infinite-scroll-DzHJHyr0.js} +1 -1
- package/dist/client/assets/{use-join-requests-DJVwnQoI.js → use-join-requests-z_I5qiFl.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BJbL5Csu.js → use-mcp-auth-status-dyqIaOq0.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cl4PpqBq.js → use-mcp-client-Bac4vccq.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CAgTZP66.js → use-mcp-tools-FenH0JaE.js} +1 -1
- package/dist/client/assets/{use-members-C1QvIqWQ.js → use-members-_2HCzEHc.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-D8r5y5p4.js → use-navigate-to-agent-yAkGdje4.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CIuw_wjP.js → use-org-auth-client-Cb5lYh1t.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DCazGb2T.js → use-org-repo-syncs-DbzFw6wJ.js} +1 -1
- package/dist/client/assets/{use-org-sso-DoM99z93.js → use-org-sso-cefqXe6X.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DZlpT-Bq.js → use-organization-roles-DA6OSxjH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DLT--rXL.js → use-organization-settings-BsgcrCz-.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-jSEiIqVH.js → use-panel-navigate-C8-xot4V.js} +1 -1
- package/dist/client/assets/{use-registry-connections-D0BvPX4D.js → use-registry-connections-BoC6e9Ko.js} +1 -1
- package/dist/client/assets/{use-secrets-5seihYfj.js → use-secrets-CNOFekf-.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DHqwJRrd.js → use-section-preview-base-CFAiIdAN.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DWru2W3X.js → use-status-sounds-CdtGOM4G.js} +1 -1
- package/dist/client/assets/{use-tags-DiSYGuJm.js → use-tags-CnmdA4eJ.js} +1 -1
- package/dist/client/assets/{use-view-mode-B1U71rKz.js → use-view-mode-DHrNQrCI.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Df2Znans.js → use-virtual-mcp-X7MaI4-V.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CP11XfQS.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-vPet_vok.js +1 -0
- package/dist/client/assets/{users-DpiU7_gm.js → users-CNOqKONO.js} +1 -1
- package/dist/client/assets/{variant-calendar-BjMZYHfG.js → variant-calendar-DzbjSxwP.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D5s-POwP.js → view-mode-toggle-C_beZllv.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +63 -63
- package/dist/server/server.js +59 -59
- package/package.json +1 -1
- package/dist/client/assets/record-editor-Dmt20zx4.js +0 -1
- package/dist/client/assets/registry-BkvSu6Go.js +0 -2
- package/dist/client/assets/store-registry-DqrYH31S.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DsOKY7NR.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Ci2I5tLg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Y,b as H,r as K,o as X,j as t,P as $,K as J,p as Z,e as ee,t as V,B as Q}from"./index-
|
|
1
|
+
import{c as Y,b as H,r as K,o as X,j as t,P as $,K as J,p as Z,e as ee,t as V,B as Q}from"./index-DHLutK6v.js";import{C as se}from"./collection-table-wrapper-DCUZlFkx.js";import{E as U}from"./empty-state-DNKOHljA.js";import{S as te}from"./search-input-lOvS7ZZY.js";import{I as ie}from"./input-zNG5Uz1T.js";import{L as ae}from"./label-CEq9oqa2.js";import{u as le}from"./use-debounced-value-D5wCJf5h.js";import{D as ne,a as re,b as oe,c as me,d as de,e as ce}from"./dialog-DYg0AoO0.js";import{S as fe,a as ge,b as ue,c as he,d as pe}from"./select-W8jorDji.js";import{a as W}from"./admin-fetch-CCSvjTk1.js";import{f as xe}from"./format-time-BnbuEtat.js";import"./table-RKi74_kY.js";import"./ArrowUp-DMDdMhAA.js";import"./SearchMd-COQJLRw-.js";import"./Check-C5RWnyNL.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronUp-DCx43qHY.js";import"./differenceInSeconds-NQ4PDo0z.js";const je=["owner","admin","user"];function be(s){const e=Y.c(75),{org:n}=s,i=H(),[v,r]=K.useState(!1),[l,C]=K.useState(""),[h,D]=K.useState("user"),w=Z();let y;e[0]!==l||e[1]!==n.id||e[2]!==h?(y=()=>W(`/api/_admin/orgs/${n.id}/members`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:l.trim(),role:h})}),e[0]=l,e[1]=n.id,e[2]=h,e[3]=y):y=e[3];let p;e[4]!==l||e[5]!==n.name||e[6]!==w||e[7]!==i?(p=()=>{V.success(i("admin.orgs.memberAdded",{email:l.trim(),org:n.name})),w.invalidateQueries({queryKey:J.deploymentAdminOrgsList()}),r(!1),C(""),D("user")},e[4]=l,e[5]=n.name,e[6]=w,e[7]=i,e[8]=p):p=e[8];let P;e[9]!==i?(P=B=>{V.error(B instanceof Error?B.message:i("admin.orgs.failedAddMember"))},e[9]=i,e[10]=P):P=e[10];let x;e[11]!==y||e[12]!==p||e[13]!==P?(x={mutationFn:y,onSuccess:p,onError:P},e[11]=y,e[12]=p,e[13]=P,e[14]=x):x=e[14];const a=ee(x);let o;e[15]!==i?(o=i("admin.orgs.addMember"),e[15]=i,e[16]=o):o=e[16];let m;e[17]!==o?(m=t.jsx(ne,{asChild:!0,children:t.jsx(Q,{variant:"outline",size:"sm",children:o})}),e[17]=o,e[18]=m):m=e[18];let d;e[19]!==n.name||e[20]!==i?(d=i("admin.orgs.addMemberTo",{org:n.name}),e[19]=n.name,e[20]=i,e[21]=d):d=e[21];let c;e[22]!==d?(c=t.jsx(re,{children:t.jsx(oe,{children:d})}),e[22]=d,e[23]=c):c=e[23];let j;e[24]!==i?(j=i("admin.orgs.email"),e[24]=i,e[25]=j):j=e[25];let b;e[26]!==j?(b=t.jsx(ae,{htmlFor:"admin-add-member-email",children:j}),e[26]=j,e[27]=b):b=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=B=>C(B.target.value),e[28]=O):O=e[28];let f;e[29]!==i?(f=i("admin.orgs.emailPlaceholder"),e[29]=i,e[30]=f):f=e[30];let g;e[31]!==l||e[32]!==a.isPending||e[33]!==f?(g=t.jsx(ie,{id:"admin-add-member-email",type:"email",value:l,onChange:O,placeholder:f,disabled:a.isPending}),e[31]=l,e[32]=a.isPending,e[33]=f,e[34]=g):g=e[34];let u;e[35]!==b||e[36]!==g?(u=t.jsxs("div",{className:"space-y-2",children:[b,g]}),e[35]=b,e[36]=g,e[37]=u):u=e[37];let S;e[38]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(ge,{className:"w-full",children:t.jsx(ue,{})}),e[38]=S):S=e[38];let N;e[39]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx(he,{children:je.map(Se)}),e[39]=N):N=e[39];let _;e[40]!==a.isPending||e[41]!==h?(_=t.jsxs(fe,{value:h,onValueChange:D,disabled:a.isPending,children:[S,N]}),e[40]=a.isPending,e[41]=h,e[42]=_):_=e[42];let E;e[43]!==u||e[44]!==_?(E=t.jsxs("div",{className:"space-y-4",children:[u,_]}),e[43]=u,e[44]=_,e[45]=E):E=e[45];let R;e[46]===Symbol.for("react.memo_cache_sentinel")?(R=()=>r(!1),e[46]=R):R=e[46];const G=a.isPending;let L;e[47]!==i?(L=i("admin.orgs.cancel"),e[47]=i,e[48]=L):L=e[48];let T;e[49]!==a.isPending||e[50]!==L?(T=t.jsx(Q,{variant:"outline",onClick:R,disabled:G,children:L}),e[49]=a.isPending,e[50]=L,e[51]=T):T=e[51];let A;e[52]!==a?(A=()=>a.mutate(),e[52]=a,e[53]=A):A=e[53];let M;e[54]!==l||e[55]!==a.isPending?(M=!l.trim()||a.isPending,e[54]=l,e[55]=a.isPending,e[56]=M):M=e[56];let z;e[57]!==a.isPending||e[58]!==i?(z=a.isPending?i("admin.orgs.adding"):i("admin.orgs.addMember"),e[57]=a.isPending,e[58]=i,e[59]=z):z=e[59];let F;e[60]!==A||e[61]!==M||e[62]!==z?(F=t.jsx(Q,{onClick:A,disabled:M,children:z}),e[60]=A,e[61]=M,e[62]=z,e[63]=F):F=e[63];let I;e[64]!==T||e[65]!==F?(I=t.jsxs(me,{children:[T,F]}),e[64]=T,e[65]=F,e[66]=I):I=e[66];let k;e[67]!==E||e[68]!==I||e[69]!==c?(k=t.jsxs(de,{className:"sm:max-w-md",children:[c,E,I]}),e[67]=E,e[68]=I,e[69]=c,e[70]=k):k=e[70];let q;return e[71]!==v||e[72]!==k||e[73]!==m?(q=t.jsxs(ce,{open:v,onOpenChange:r,children:[m,k]}),e[71]=v,e[72]=k,e[73]=m,e[74]=q):q=e[74],q}function Se(s){return t.jsx(pe,{value:s,children:t.jsx("span",{className:"capitalize",children:s})},s)}function $e(){const s=Y.c(45),e=H(),[n,i]=K.useState("");let v;s[0]!==n?(v=n.trim(),s[0]=n,s[1]=v):v=s[1];const r=le(v,300);let l;s[2]!==r?(l=J.deploymentAdminOrgs(r),s[2]=r,s[3]=l):l=s[3];let C;s[4]!==r?(C=()=>{const _=new URLSearchParams({limit:"100"});return r&&_.set("search",r),W(`/api/_admin/orgs?${_}`)},s[4]=r,s[5]=C):C=s[5];let h;s[6]!==l||s[7]!==C?(h={queryKey:l,queryFn:C},s[6]=l,s[7]=C,s[8]=h):h=s[8];const{data:D,isLoading:w,isError:y}=X(h);let p;s[9]!==D?.organizations?(p=D?.organizations??[],s[9]=D?.organizations,s[10]=p):p=s[10];const P=p;let x;s[11]!==e?(x=e("admin.orgs.organization"),s[11]=e,s[12]=x):x=s[12];let a;s[13]!==x?(a={id:"name",header:x,render:Ne,cellClassName:"flex-1 min-w-0"},s[13]=x,s[14]=a):a=s[14];let o;s[15]!==e?(o=e("admin.orgs.members"),s[15]=e,s[16]=o):o=s[16];let m;s[17]!==o?(m={id:"members",header:o,render:Ce,cellClassName:"w-24 shrink-0"},s[17]=o,s[18]=m):m=s[18];let d;s[19]!==e?(d=e("admin.orgs.created"),s[19]=e,s[20]=d):d=s[20];let c;s[21]!==d?(c={id:"created",header:d,render:Pe,cellClassName:"w-48 shrink-0"},s[21]=d,s[22]=c):c=s[22];let j;s[23]===Symbol.for("react.memo_cache_sentinel")?(j={id:"actions",header:"",render:ye,cellClassName:"w-32 shrink-0"},s[23]=j):j=s[23];let b;s[24]!==c||s[25]!==a||s[26]!==m?(b=[a,m,c,j],s[24]=c,s[25]=a,s[26]=m,s[27]=b):b=s[27];const O=b;let f;s[28]!==e?(f=e("admin.orgs.searchPlaceholder"),s[28]=e,s[29]=f):f=s[29];let g;s[30]!==n||s[31]!==f?(g=t.jsx(te,{value:n,onChange:i,placeholder:f,className:"w-full md:w-[375px]"}),s[30]=n,s[31]=f,s[32]=g):g=s[32];let u;s[33]!==r||s[34]!==y||s[35]!==e?(u=y?t.jsx(U,{title:e("admin.orgs.failedLoadOrgs"),description:e("admin.orgs.failedLoadOrgsDescription")}):t.jsx(U,{title:e("admin.orgs.noOrgsFound"),description:r?e("admin.orgs.noOrgsMatchSearch",{search:r}):e("admin.orgs.noOrgsYet")}),s[33]=r,s[34]=y,s[35]=e,s[36]=u):u=s[36];let S;s[37]!==O||s[38]!==w||s[39]!==P||s[40]!==u?(S=t.jsx(se,{columns:O,data:P,isLoading:w,emptyState:u}),s[37]=O,s[38]=w,s[39]=P,s[40]=u,s[41]=S):S=s[41];let N;return s[42]!==g||s[43]!==S?(N=t.jsx($,{children:t.jsx($.Content,{children:t.jsx($.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,S]})})})}),s[42]=g,s[43]=S,s[44]=N):N=s[44],N}function ye(s){return t.jsx(be,{org:s})}function Pe(s){return t.jsx("span",{className:"text-sm text-foreground",children:xe(s.createdAt)})}function Ce(s){return t.jsx("span",{className:"text-sm text-foreground",children:s.memberCount})}function Ne(s){return t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:s.name}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:s.slug})]})}export{$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,p as D,K,b as L,j as i}from"./index-
|
|
1
|
+
import{c as w,p as D,K,b as L,j as i}from"./index-DHLutK6v.js";import{bK as P,F as $,bL as O,aV as N,bM as I,bN as Q,bO as M}from"./index-BWVLjCpL.js";import{L as A}from"./label-CEq9oqa2.js";import{S as k}from"./switch-BsAR0Ue8.js";import{d as Y,a as q,b as z,c as U,S as V}from"./select-W8jorDji.js";function _(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)}function W(c,e,t,d){if(c.kind==="page"){if(!_(t))return null;const h=t.seo!==void 0?t.seo:e.rawSeoData;return{...t,seo:d===null?null:P(d,h)}}return _(t)?e.siteKind==="block"?d:{...t,seo:d}:null}function le(c,e){const t=c.__resolveType;return typeof t=="string"&&t.length>0?t:e.seoResolveType}function oe(c){const e=w.c(23),{orgSlug:t,virtualMcpId:d,branch:h,target:o,resolved:s,onSaved:f}=c,r=D(),a=`${t}/${d}/${h}`;let m;e[0]!==h||e[1]!==t||e[2]!==d?(m={orgSlug:t,virtualMcpId:d,branch:h},e[0]=h,e[1]=t,e[2]=d,e[3]=m):m=e[3];let l;e[4]!==f?(l={onSaved:f},e[4]=f,e[5]=l):l=e[5];const{save:n,flush:u,isPending:p}=$(m,l);let y;e[6]!==a||e[7]!==r||e[8]!==s||e[9]!==n||e[10]!==o?(y=v=>{s&&n(s.blockKey,()=>{const x=r.getQueryData(K.decofile(a))?.[s.blockKey];return W(o,s,x,v)})},e[6]=a,e[7]=r,e[8]=s,e[9]=n,e[10]=o,e[11]=y):y=e[11];const g=y;let S;e[12]!==a||e[13]!==r||e[14]!==s||e[15]!==n||e[16]!==o?(S=v=>{!s||o.kind!=="page"||n(s.blockKey,()=>{const x=r.getQueryData(K.decofile(a))?.[s.blockKey];return _(x)?{...x,seo:v}:null})},e[12]=a,e[13]=r,e[14]=s,e[15]=n,e[16]=o,e[17]=S):S=e[17];const b=S;let j;return e[18]!==u||e[19]!==p||e[20]!==b||e[21]!==g?(j={persistSeo:g,persistRawSeo:b,flush:u,isPending:p},e[18]=u,e[19]=p,e[20]=b,e[21]=g,e[22]=j):j=e[22],j}const G="https://deco.cx/docs/en/performance/edge-async-render";function H(c){const e=w.c(23),{rawSeo:t,onEnableChange:d,onAsyncRenderChange:h,children:o}=c,s=L();let f;e[0]!==t?(f=N(t),e[0]=t,e[1]=f):f=e[1];const r=f;let a;e[2]!==t?(a=O(t),e[2]=t,e[3]=a):a=e[3];const m=a;let l;e[4]!==s?(l=s("sectionsEditor.seoFormChrome.enableLabel"),e[4]=s,e[5]=l):l=e[5];let n;e[6]!==l?(n=i.jsx(A,{htmlFor:"seo-enable",className:"text-sm font-medium",children:l}),e[6]=l,e[7]=n):n=e[7];let u;e[8]!==r||e[9]!==d?(u=i.jsx(k,{id:"seo-enable",checked:r,onCheckedChange:d}),e[8]=r,e[9]=d,e[10]=u):u=e[10];let p;e[11]!==n||e[12]!==u?(p=i.jsxs("div",{className:"flex items-center justify-between gap-3",children:[n,u]}),e[11]=n,e[12]=u,e[13]=p):p=e[13];let y;e[14]!==m||e[15]!==o||e[16]!==r||e[17]!==h||e[18]!==s?(y=r&&i.jsxs(i.Fragment,{children:[o,i.jsxs("div",{className:"flex items-start justify-between gap-3 border-t pt-4",children:[i.jsxs("div",{className:"min-w-0 space-y-1",children:[i.jsx("p",{className:"text-sm font-medium",children:s("sectionsEditor.seoFormChrome.asyncRenderLabel")}),i.jsxs("p",{className:"text-xs leading-normal text-muted-foreground",children:["Render SEO asynchronously with edge caching. Learn more in our"," ",i.jsx("a",{href:G,target:"_blank",rel:"noopener noreferrer",className:"text-primary underline-offset-4 hover:underline",children:s("sectionsEditor.seoFormChrome.documentationLinkText")}),"."]})]}),i.jsx(k,{id:"seo-async-render",checked:m,onCheckedChange:h,className:"shrink-0"})]})]}),e[14]=m,e[15]=o,e[16]=r,e[17]=h,e[18]=s,e[19]=y):y=e[19];let g;return e[20]!==p||e[21]!==y?(g=i.jsxs("div",{className:"space-y-4",children:[p,y]}),e[20]=p,e[21]=y,e[22]=g):g=e[22],g}function J(c){const e=w.c(20),{options:t,value:d,onChange:h}=c,o=L();if(t.length<=1)return null;let s;e[0]!==o?(s=o("sectionsEditor.seoTypeSelect.label"),e[0]=o,e[1]=s):s=e[1];let f;e[2]!==s?(f=i.jsx(A,{className:"text-xs text-muted-foreground",children:s}),e[2]=s,e[3]=f):f=e[3];let r;e[4]!==o?(r=o("sectionsEditor.seoTypeSelect.placeholder"),e[4]=o,e[5]=r):r=e[5];let a;e[6]!==r?(a=i.jsx(q,{className:"w-full",children:i.jsx(z,{placeholder:r})}),e[6]=r,e[7]=a):a=e[7];let m;e[8]!==t?(m=t.filter(Z).map(X),e[8]=t,e[9]=m):m=e[9];let l;e[10]!==m?(l=i.jsx(U,{children:m}),e[10]=m,e[11]=l):l=e[11];let n;e[12]!==h||e[13]!==a||e[14]!==l||e[15]!==d?(n=i.jsxs(V,{value:d,onValueChange:h,children:[a,l]}),e[12]=h,e[13]=a,e[14]=l,e[15]=d,e[16]=n):n=e[16];let u;return e[17]!==f||e[18]!==n?(u=i.jsxs("div",{className:"mb-4 flex flex-col gap-1.5",children:[f,n]}),e[17]=f,e[18]=n,e[19]=u):u=e[19],u}function X(c){return i.jsx(Y,{value:c.resolveType,children:c.title},c.resolveType)}function Z(c){return c.resolveType.length>0}function re(c){const e=w.c(33),{rawSeo:t,innerSeo:d,defaultResolveType:h,seoSchema:o,activeResolveType:s,seoTypeOptions:f,formResetKey:r,siteDefaultSeo:a,onBreadcrumbChange:m,onPersistRaw:l,onInnerChange:n,onClearForm:u,onBumpFormKey:p,beforeFields:y}=c;let g;e[0]!==h||e[1]!==p||e[2]!==u||e[3]!==l?(g=C=>{if(C){const F=M(h);l(F),u(),p();return}l(null),u(),p()},e[0]=h,e[1]=p,e[2]=u,e[3]=l,e[4]=g):g=e[4];const S=g;let b;e[5]!==l||e[6]!==t?(b=C=>{const F=I(C,t);l(F)},e[5]=l,e[6]=t,e[7]=b):b=e[7];const j=b;let v;e[8]!==p||e[9]!==n?(v=C=>{n({__resolveType:C}),p()},e[8]=p,e[9]=n,e[10]=v):v=e[10];const T=v;let x;e[11]!==s||e[12]!==T||e[13]!==t||e[14]!==o||e[15]!==f?(x=N(t)&&o&&s&&f&&f.length>0&&i.jsx(J,{options:f,value:s,onChange:T}),e[11]=s,e[12]=T,e[13]=t,e[14]=o,e[15]=f,e[16]=x):x=e[16];let R;e[17]!==s||e[18]!==r||e[19]!==d||e[20]!==m||e[21]!==n||e[22]!==t||e[23]!==o||e[24]!==a?(R=N(t)&&o&&s&&i.jsx(Q,{schema:o,resolveType:s,value:d,formResetKey:r,onChange:C=>n(C),onBreadcrumbChange:m,siteDefaultSeo:a}),e[17]=s,e[18]=r,e[19]=d,e[20]=m,e[21]=n,e[22]=t,e[23]=o,e[24]=a,e[25]=R):R=e[25];let E;return e[26]!==y||e[27]!==j||e[28]!==S||e[29]!==t||e[30]!==x||e[31]!==R?(E=i.jsxs(H,{rawSeo:t,onEnableChange:S,onAsyncRenderChange:j,children:[y,x,R]}),e[26]=y,e[27]=j,e[28]=S,e[29]=t,e[30]=x,e[31]=R,e[32]=E):E=e[32],E}export{re as P,le as a,W as b,oe as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,bu as L,j as a,eb as z,by as G,bv as O,br as b,bx as g,ec as _,cL as j,ed as H,ee as w,eg as K,ei as U,bt as V,el as W,eh as Z,ej as q,ek as B,em as J,en as Q,c as m,n as X}from"./index-
|
|
1
|
+
import{r as i,bu as L,j as a,eb as z,by as G,bv as O,br as b,bx as g,ec as _,cL as j,ed as H,ee as w,eg as K,ei as U,bt as V,el as W,eh as Z,ej as q,ek as B,em as J,en as Q,c as m,n as X}from"./index-DHLutK6v.js";var C="Popover",[E]=V(C,[w]),P=w(),[Y,d]=E(C),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:c=!1}=t,p=P(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=L({prop:r,defaultProp:n??!1,onChange:s,caller:C});return a.jsx(z,{...p,children:a.jsx(Y,{scope:e,contentId:G(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(R=>!R),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:c,children:o})})};N.displayName=C;var F="PopoverAnchor",y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),s=P(o),{onCustomAnchorAdd:c,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(c(),()=>p()),[c,p]),a.jsx(_,{...s,...r,ref:e})});y.displayName=F;var S="PopoverTrigger",D=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(S,o),s=P(o),c=O(e,n.triggerRef),p=a.jsx(b.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":$(n.open),...r,ref:c,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:a.jsx(_,{asChild:!0,...s,children:p})});D.displayName=S;var A="PopoverPortal",[ee,oe]=E(A,{forceMount:void 0}),M=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=d(A,e);return a.jsx(ee,{scope:e,forceMount:o,children:a.jsx(j,{present:o||s.open,children:a.jsx(H,{asChild:!0,container:n,children:r})})})};M.displayName=A;var v="PopoverContent",k=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=d(v,t.__scopePopover);return a.jsx(j,{present:r||s.open,children:s.modal?a.jsx(re,{...n,ref:e}):a.jsx(ne,{...n,ref:e})})});k.displayName=v;var te=W("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=O(e,r),s=i.useRef(!1);return i.useEffect(()=>{const c=r.current;if(c)return K(c)},[]),a.jsx(U,{as:te,allowPinchZoom:!0,children:a.jsx(T,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,c=>{c.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,c=>{const p=c.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;s.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return a.jsx(T,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const c=s.target;o.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),T=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),R=P(o);return Z(),a.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:a.jsx(B,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:a.jsx(J,{"data-state":$(f.open),role:"dialog",id:f.contentId,...R,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),I="PopoverClose",se=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(I,o);return a.jsx(b.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});se.displayName=I;var ae="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return a.jsx(Q,{...n,...r,ref:e})});ce.displayName=ae;function $(t){return t?"open":"closed"}var ie=N,pe=y,le=D,ue=M,de=k;function ve(t){const e=m.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=m.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(le,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=m.c(12);let o,r,n,s;e[0]!==t?({className:o,align:n,sideOffset:s,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s):(o=e[1],r=e[2],n=e[3],s=e[4]);const c=n===void 0?"center":n,p=s===void 0?4:s;let l;e[5]!==o?(l=X("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==c||e[8]!==r||e[9]!==p||e[10]!==l?(u=a.jsx(ue,{children:a.jsx(de,{"data-slot":"popover-content",align:c,sideOffset:p,translate:"no",className:l,...r})}),e[7]=c,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}function he(t){const e=m.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=a.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ve as P,ge as a,Pe as b,he as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as ne,b as ce,r as fe,x as we,n as J,j as t,B as ae}from"./index-BoZ9u4m1.js";import{i as Te}from"./AlertCircle-BX7MJ072.js";import{au as ze,r as Ee}from"./agent-icon-DwW--uUY.js";import{i as Pe}from"./ChevronRight-CmErvA0j.js";import{s as Ae}from"./Plus-DVX_wDQ5.js";import{a as _e,b as Me,A as Ue}from"./alert-IgKAs3o8.js";import{S as Ie}from"./scroll-area-B2Bvze19.js";import{_ as Le,bW as Oe,as as Re,bR as $e,bS as He,bX as Be,bQ as be,bU as he,bY as Fe,bZ as We}from"./index-UTTF9eic.js";import"./UserSquare-QpZbwdZV.js";import"./Tool01-Ci1f_VX6.js";import"./ArrowUp-DE3_BiFl.js";import"./ArrowLeft-D_iAJfNc.js";import"./Tool02-BSzeWnI0.js";import"./XCircle-BEPQ7ZR9.js";import"./TrendUp01-BXDl_oA2.js";import"./ZapSquare-W_x0tYhG.js";import"./Users03-1JkDRbw6.js";import"./CheckCircle-DSareV9G.js";import"./Check-CMgbiLaX.js";import"./ChevronDown-Dw8obt8m.js";import"./ChevronSelectorVertical-DvwcNCCU.js";import"./ChevronUp-zRZTeZ7W.js";import"./DotsVertical-BWlRnIv9.js";import"./Stars02-BX_P13x6.js";import"./Copy01-TuMirHlz.js";import"./CreditCard01-DE9AkrGD.js";import"./Download01-BrELUVKh.js";import"./Settings02-NF-WIPx9.js";import"./Eye-C1diZla3.js";import"./FilterLines-CWtPXhPn.js";import"./Share07-CaDcjgW4.js";import"./Globe01-BLauj86P.js";import"./Globe04-BZfohkfh.js";import"./SwitchHorizontal01-Cb_T5oPm.js";import"./HardDrive-BooNC9Iz.js";import"./Key01-BNf86BzY.js";import"./LinkExternal01-C5sEFVrU.js";import"./LockUnlocked01-qFRWZtfh.js";import"./LogOut01-945MQKA3.js";import"./Monitor01-BYyknu9E.js";import"./Sun-DS3TtzGE.js";import"./Palette-CtmrE0Ya.js";import"./Play-KEXVN9gu.js";import"./SearchLg--Jj0q90X.js";import"./SearchMd-BfGi9p6T.js";import"./Shield01-BKKyhf4r.js";import"./Stars01--KT_Bx7a.js";import"./Trash01-BjqXjKjL.js";import"./Upload01-Dz2owj0l.js";import"./User01-DfNUsZjG.js";import"./Users01-CIQN8wG7.js";import"./XClose-CmC5bnde.js";import"./Zap-BHFTnbC7.js";import"./select-DVeSr9Cv.js";import"./chat-context-B5Wg5Lf5.js";import"./use-panel-navigate-jSEiIqVH.js";import"./dialog-BST7kHjs.js";import"./use-destination-route-CUizQ3Ky.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-B79ZY8IT.js";import"./use-mcp-client-Cl4PpqBq.js";import"./auth-jQituvKm.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-S5tux0kK.js";import"./task-board-C_FiCg7o.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-Df2Znans.js";import"./use-ai-providers-Cu5w7RQA.js";import"./use-decopilot-events-CoDj3hx4.js";import"./use-organization-settings-DLT--rXL.js";import"./automation-runs-BioqyUmT.js";import"./useInfiniteQuery-DsOKY7NR.js";import"./use-infinite-scroll-BAdheIAu.js";import"./use-connection-CabbUm7J.js";import"./table-C54lPCoC.js";import"./empty-state-N7iUhCDH.js";import"./use-members-C1QvIqWQ.js";import"./use-org-auth-client-CIuw_wjP.js";import"./use-automations-CZQfO2ET.js";import"./useSuspenseInfiniteQuery-Ci2I5tLg.js";import"./avatar-DQGduv0U.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CPSkWD8d.js";import"./monaco-editor-Cfd7zTaZ.js";import"./spinner-znMssV1b.js";import"./types-BMYq-irZ.js";import"./shell-layout-Bgj0rQDA.js";import"./required-auth-layout-DWW3HDyn.js";import"./use-org-sso-DoM99z93.js";import"./integration-icon-DmJLuQ2R.js";import"./use-navigate-to-agent-D8r5y5p4.js";import"./chart-CjmlfSOz.js";import"./index-DEww-2EZ.js";import"./form-kVV6q-fx.js";import"./label-2hy1g0FP.js";import"./input-vNnjluS1.js";import"./file-type-icon-N4BWvB1b.js";import"./drawer-Mrrueqfd.js";import"./collection-search-B-xYnw3X.js";import"./tabs-DVsDlywr.js";import"./toggle-group-DVOGESuU.js";import"./super-agent-icon-D_RymLMx.js";import"./self-tool-result-Ck66n9EL.js";import"./alert-dialog-3i0jJzJ0.js";import"./extract-connection-data-XOJUSxR8.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-wOe54Kkz.js";import"./authenticate-and-persist-oauth-DsOW9H5Z.js";import"./mcp-oauth-1M77jlWl.js";import"./track-Don0wR2Q.js";import"./popover-DrLCC3p5.js";import"./toolbar-iG8binbI.js";import"./github-repo-picker-Do0PQSNG.js";import"./use-mcp-tools-CAgTZP66.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BpdBS_Al.js";import"./use-registry-connections-D0BvPX4D.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-e01dAh4Q.js";import"./connection-form-helpers-iTHnU6X5.js";import"./collection-tabs-B9i9CP-Z.js";import"./badge-CAWKSDnJ.js";import"./select-model-DSFTGsBN.js";import"./checkbox-BBaFR9e7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-Do4DMym-.js";import"./dropdown-menu-B1VRfncr.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DWru2W3X.js";import"./use-file-configs-BlsniSlU.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-D494opKg.js";import"./search-input-Ca_LFpsl.js";import"./use-mcp-auth-status-BJbL5Csu.js";import"./switch-CE07liUg.js";import"./use-secrets-5seihYfj.js";import"./AreaChart-B2c5VlMF.js";import"./config-C05cUmSb.js";import"./breadcrumb-Cl6tbNSR.js";import"./command-ClyqeQko.js";import"./index-DwmIdtlP.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DiSYGuJm.js";import"./automation-list-row-CCZYSh-F.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DCazGb2T.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(f){const e=ne.c(17),{support:x}=f,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(_e,{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 Ro(f){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=f,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]=fe.useState(null),[C]=we(),[b,w]=fe.useState(Qe),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 u=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]!==u||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}=Oe(Re(x)),de=$e(b),De=He(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 $;e[29]!==r?($=r("sandbox.postCalendar.today"),e[29]=r,e[30]=$):$=e[30];let H;e[31]!==$?(H=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:$}),e[31]=$,e[32]=H):H=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]!==u?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:u}),e[45]=u,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 Q;e[49]!==G?(Q=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=Q):Q=e[50];let V;e[51]!==r?(V=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=V):V=e[52];let X;e[53]!==V?(X=t.jsx(xe,{className:ye,label:V}),e[53]=V,e[54]=X):X=e[54];let Y;e[55]!==Q||e[56]!==X?(Y=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[Q,X]}),e[55]=Q,e[56]=X,e[57]=Y):Y=e[57],e[58]!==H||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==Y?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,F,K,q,Y]}),e[58]=H,e[59]=F,e[60]=K,e[61]=q,e[62]=Y,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=J("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,_="flex min-w-[880px] gap-4 p-4";let Z;e[66]!==r?(Z=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Z):Z=e[67];let le;e[68]!==Z?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Z}),e[68]=Z,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 ue=v.dataTransfer.getData("text/plain");y(null),ue&&c(ue,p)},className:J("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:J("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(Ae,{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})}),A=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]=u,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]=A,e[25]=_,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],A=e[24],_=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==A?(U=t.jsxs("div",{className:E,children:[P,A]}),e[70]=E,e[71]=P,e[72]=A,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==_||e[76]!==M?(I=t.jsxs("div",{className:_,children:[M,U]}),e[74]=U,e[75]=_,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 O;e[83]!==m||e[84]!==i?(O=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=O):O=e[85];let R;e[86]!==T||e[87]!==L||e[88]!==O?(R=t.jsxs("div",{className:T,children:[L,O]}),e[86]=T,e[87]=L,e[88]=O,e[89]=R):R=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==R?(ee=t.jsxs("div",{className:z,children:[k,R]}),e[90]=z,e[91]=k,e[92]=R,e[93]=ee):ee=e[93],ee}function qe(f){return he(f,1)}function Ge(f){return he(f,-1)}function Qe(){return be(new Date)}function xe(f){const e=ne.c(7),{className:x,label:i}=f;let o;e[0]!==x?(o=J("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(f){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=f,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 u;e[11]!==w||e[12]!==h||e[13]!==D?(u=J("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]=u):u=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==u||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:u,children:s.title}),e[15]=o,e[16]=s.title,e[17]=u,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{Ro as PostCalendar};
|
|
1
|
+
import{c as ne,b as ce,r as fe,x as we,n as J,j as t,B as ae}from"./index-DHLutK6v.js";import{i as Te}from"./AlertCircle-qZDg2e-H.js";import{au as ze,r as Ee}from"./agent-icon-C9_7Msf7.js";import{i as Pe}from"./ChevronRight-Dh8_6pj1.js";import{s as Ae}from"./Plus-B7vTVmKH.js";import{a as _e,b as Me,A as Ue}from"./alert-DeOSO_Ec.js";import{S as Ie}from"./scroll-area-Dw0578rC.js";import{_ as Le,bW as Oe,as as Re,bR as $e,bS as He,bX as Be,bQ as be,bU as he,bY as Fe,bZ as We}from"./index-BWVLjCpL.js";import"./UserSquare-ClSByuB-.js";import"./Tool01-tn2PFBHQ.js";import"./ArrowUp-DMDdMhAA.js";import"./ArrowLeft-CatEVOI7.js";import"./Tool02-BalBR7uK.js";import"./XCircle-BOrCVYLf.js";import"./TrendUp01-6TR_k_0Y.js";import"./ZapSquare-DkKtoQ7W.js";import"./Users03-BT3gPqQL.js";import"./CheckCircle-V0GvWvtd.js";import"./Check-C5RWnyNL.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronSelectorVertical-Im3Lz_4E.js";import"./ChevronUp-DCx43qHY.js";import"./DotsVertical-B39kxqbi.js";import"./Stars02-4GZ9SjIq.js";import"./Copy01-DhfruII6.js";import"./CreditCard01-Cy0s6gAf.js";import"./Download01-C1FmC7JV.js";import"./Settings02-xEBQxvJD.js";import"./Eye-m8QZKf2Y.js";import"./FilterLines-BBF-m2ZJ.js";import"./Share07-CLkT7SlV.js";import"./Globe01-C2F_PPuX.js";import"./Globe04-CMCnFTSr.js";import"./SwitchHorizontal01-DwxljZOI.js";import"./HardDrive-DmqNZKD8.js";import"./Key01-DbCU9LZF.js";import"./LinkExternal01-kQnRXU4w.js";import"./LockUnlocked01-D5OpQeQe.js";import"./LogOut01-BePTyd5L.js";import"./Monitor01-DPqlemzQ.js";import"./Sun-D0KW7MLF.js";import"./Palette-DzT0S9Gl.js";import"./Play-Btu3v5FX.js";import"./SearchLg-CAAIuTYj.js";import"./SearchMd-COQJLRw-.js";import"./Shield01-C2USnj9G.js";import"./Stars01-DkoqcM4j.js";import"./Trash01-CwqV1gzD.js";import"./Upload01-mqAHBbZV.js";import"./User01-DWaPmCwS.js";import"./Users01-CFDNbxgJ.js";import"./XClose-DMSeuF30.js";import"./Zap-CwYGo5D6.js";import"./select-W8jorDji.js";import"./chat-context-C-BdNZCf.js";import"./use-panel-navigate-C8-xot4V.js";import"./dialog-DYg0AoO0.js";import"./use-destination-route-BMJNYrmL.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DvV-YCly.js";import"./use-mcp-client-Bac4vccq.js";import"./auth-BqxUQw-v.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DDszDk42.js";import"./task-board-D9PHUZff.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-X7MaI4-V.js";import"./use-ai-providers-WmO5B1wa.js";import"./use-decopilot-events-CEhAvB_E.js";import"./use-organization-settings-BsgcrCz-.js";import"./automation-runs-CzcGADVN.js";import"./useInfiniteQuery-CP11XfQS.js";import"./use-infinite-scroll-DzHJHyr0.js";import"./use-connection-D8j2CnOC.js";import"./table-RKi74_kY.js";import"./empty-state-DNKOHljA.js";import"./use-members-_2HCzEHc.js";import"./use-org-auth-client-Cb5lYh1t.js";import"./use-automations-g--nS4Go.js";import"./useSuspenseInfiniteQuery-vPet_vok.js";import"./avatar-1XE5IjoT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-lK-vhEre.js";import"./monaco-editor-BIUU4YtT.js";import"./spinner-DEaGcbnH.js";import"./types-CrdXjhQP.js";import"./shell-layout-BbKgiGKQ.js";import"./required-auth-layout-Bi3hMcfQ.js";import"./use-org-sso-cefqXe6X.js";import"./integration-icon-CVsQlE88.js";import"./use-navigate-to-agent-yAkGdje4.js";import"./chart-Bgue_7DQ.js";import"./index-pYJ2-T-r.js";import"./form-DUYaeuN1.js";import"./label-CEq9oqa2.js";import"./input-zNG5Uz1T.js";import"./file-type-icon-Cr_jiDFe.js";import"./drawer-DrqU_8fl.js";import"./collection-search-DBnGb4Zg.js";import"./tabs-DFRRVuh7.js";import"./toggle-group-WZyFFujP.js";import"./super-agent-icon-DxowWKwv.js";import"./self-tool-result-DYCZ2dxI.js";import"./alert-dialog-BWONJIzw.js";import"./extract-connection-data-BI_gbc3h.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D5wCJf5h.js";import"./authenticate-and-persist-oauth-DRVU48ic.js";import"./mcp-oauth-DGSZYZtZ.js";import"./track-BFh4WctH.js";import"./popover-CPDUuAsK.js";import"./toolbar-CmaLqa3-.js";import"./github-repo-picker-BjTlfZRh.js";import"./use-mcp-tools-FenH0JaE.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CgUgSGsh.js";import"./use-registry-connections-BoC6e9Ko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-XbuS70jj.js";import"./connection-form-helpers-gU6TF210.js";import"./collection-tabs-CAUEdmSI.js";import"./badge-CXIV4O-0.js";import"./select-model-CVJuTB71.js";import"./checkbox-DvC3nAT5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DJSm_nho.js";import"./dropdown-menu-BGreHXNg.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CdtGOM4G.js";import"./use-file-configs-CEny8PB8.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-DsCulVkO.js";import"./search-input-lOvS7ZZY.js";import"./use-mcp-auth-status-dyqIaOq0.js";import"./switch-BsAR0Ue8.js";import"./use-secrets-CNOFekf-.js";import"./AreaChart-D1rWRcUm.js";import"./config-DG69PD1X.js";import"./breadcrumb-FUX_wv57.js";import"./command-Ct_4mokr.js";import"./index-RXRS2M8q.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CnmdA4eJ.js";import"./automation-list-row-BMiRTeOK.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DbzFw6wJ.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(f){const e=ne.c(17),{support:x}=f,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(_e,{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 Ro(f){const e=ne.c(94),{decofile:x,support:i,selectedKey:o,onSelect:l,onCreate:a,onReschedule:c,isCreating:s}=f,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]=fe.useState(null),[C]=we(),[b,w]=fe.useState(Qe),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 u=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]!==u||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}=Oe(Re(x)),de=$e(b),De=He(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 $;e[29]!==r?($=r("sandbox.postCalendar.today"),e[29]=r,e[30]=$):$=e[30];let H;e[31]!==$?(H=t.jsx(ae,{variant:"outline",size:"sm",onClick:te,children:$}),e[31]=$,e[32]=H):H=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]!==u?(q=t.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:u}),e[45]=u,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 Q;e[49]!==G?(Q=t.jsx(xe,{className:je,label:G}),e[49]=G,e[50]=Q):Q=e[50];let V;e[51]!==r?(V=r("sandbox.postCalendar.legendUnscheduled"),e[51]=r,e[52]=V):V=e[52];let X;e[53]!==V?(X=t.jsx(xe,{className:ye,label:V}),e[53]=V,e[54]=X):X=e[54];let Y;e[55]!==Q||e[56]!==X?(Y=t.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[Q,X]}),e[55]=Q,e[56]=X,e[57]=Y):Y=e[57],e[58]!==H||e[59]!==F||e[60]!==K||e[61]!==q||e[62]!==Y?(k=t.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,F,K,q,Y]}),e[58]=H,e[59]=F,e[60]=K,e[61]=q,e[62]=Y,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=J("h-full",pe),e[64]=pe,e[65]=S):S=e[65],N=!m,_="flex min-w-[880px] gap-4 p-4";let Z;e[66]!==r?(Z=r("sandbox.postCalendar.unscheduledHint"),e[66]=r,e[67]=Z):Z=e[67];let le;e[68]!==Z?(le=t.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:Z}),e[68]=Z,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 ue=v.dataTransfer.getData("text/plain");y(null),ue&&c(ue,p)},className:J("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:J("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(Ae,{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})}),A=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]=u,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]=A,e[25]=_,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],A=e[24],_=e[25],M=e[26],S=e[27];let U;e[70]!==E||e[71]!==P||e[72]!==A?(U=t.jsxs("div",{className:E,children:[P,A]}),e[70]=E,e[71]=P,e[72]=A,e[73]=U):U=e[73];let I;e[74]!==U||e[75]!==_||e[76]!==M?(I=t.jsxs("div",{className:_,children:[M,U]}),e[74]=U,e[75]=_,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 O;e[83]!==m||e[84]!==i?(O=!m&&t.jsx(Ke,{support:i}),e[83]=m,e[84]=i,e[85]=O):O=e[85];let R;e[86]!==T||e[87]!==L||e[88]!==O?(R=t.jsxs("div",{className:T,children:[L,O]}),e[86]=T,e[87]=L,e[88]=O,e[89]=R):R=e[89];let ee;return e[90]!==z||e[91]!==k||e[92]!==R?(ee=t.jsxs("div",{className:z,children:[k,R]}),e[90]=z,e[91]=k,e[92]=R,e[93]=ee):ee=e[93],ee}function qe(f){return he(f,1)}function Ge(f){return he(f,-1)}function Qe(){return be(new Date)}function xe(f){const e=ne.c(7),{className:x,label:i}=f;let o;e[0]!==x?(o=J("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(f){const e=ne.c(23),{entry:x,active:i,draggable:o,onSelect:l,onDragStateChange:a}=f,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 u;e[11]!==w||e[12]!==h||e[13]!==D?(u=J("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]=u):u=e[14];let j;return e[15]!==o||e[16]!==s.title||e[17]!==u||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:u,children:s.title}),e[15]=o,e[16]=s.title,e[17]=u,e[18]=g,e[19]=y,e[20]=C,e[21]=b,e[22]=j):j=e[22],j}export{Ro 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-BoZ9u4m1.js";import{b as Be}from"./chat-context-B5Wg5Lf5.js";import{i as Ie}from"./AlertCircle-BX7MJ072.js";import{n as Ae}from"./LinkExternal01-C5sEFVrU.js";import{b3 as Re}from"./agent-icon-DwW--uUY.js";import{a as De}from"./UserSquare-QpZbwdZV.js";import{I as ue}from"./input-vNnjluS1.js";import{L as xe}from"./label-2hy1g0FP.js";import{M as $e}from"./multi-select-Bc1Ex9je.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-DVsDlywr.js";import{S as Se}from"./switch-CE07liUg.js";import{T as Le}from"./textarea-e01dAh4Q.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-UTTF9eic.js";import{b as Qe,a as et,B as tt}from"./block-document-CvQIz5yK.js";import{u as st}from"./use-autosave-BLPSaddA.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-uAM2NwMD.js";import"./use-panel-navigate-jSEiIqVH.js";import"./dialog-BST7kHjs.js";import"./Check-CMgbiLaX.js";import"./Copy01-TuMirHlz.js";import"./Download01-BrELUVKh.js";import"./use-destination-route-CUizQ3Ky.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-B79ZY8IT.js";import"./use-mcp-client-Cl4PpqBq.js";import"./auth-jQituvKm.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-S5tux0kK.js";import"./task-board-C_FiCg7o.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-Df2Znans.js";import"./use-ai-providers-Cu5w7RQA.js";import"./use-decopilot-events-CoDj3hx4.js";import"./use-organization-settings-DLT--rXL.js";import"./Tool01-Ci1f_VX6.js";import"./ArrowUp-DE3_BiFl.js";import"./ArrowLeft-D_iAJfNc.js";import"./Tool02-BSzeWnI0.js";import"./XCircle-BEPQ7ZR9.js";import"./TrendUp01-BXDl_oA2.js";import"./ZapSquare-W_x0tYhG.js";import"./Users03-1JkDRbw6.js";import"./CheckCircle-DSareV9G.js";import"./ChevronDown-Dw8obt8m.js";import"./ChevronRight-CmErvA0j.js";import"./ChevronSelectorVertical-DvwcNCCU.js";import"./ChevronUp-zRZTeZ7W.js";import"./DotsVertical-BWlRnIv9.js";import"./Stars02-BX_P13x6.js";import"./CreditCard01-DE9AkrGD.js";import"./Settings02-NF-WIPx9.js";import"./Eye-C1diZla3.js";import"./FilterLines-CWtPXhPn.js";import"./Share07-CaDcjgW4.js";import"./Globe01-BLauj86P.js";import"./Globe04-BZfohkfh.js";import"./SwitchHorizontal01-Cb_T5oPm.js";import"./HardDrive-BooNC9Iz.js";import"./Key01-BNf86BzY.js";import"./LockUnlocked01-qFRWZtfh.js";import"./LogOut01-945MQKA3.js";import"./Monitor01-BYyknu9E.js";import"./Sun-DS3TtzGE.js";import"./Palette-CtmrE0Ya.js";import"./Play-KEXVN9gu.js";import"./Plus-DVX_wDQ5.js";import"./SearchLg--Jj0q90X.js";import"./SearchMd-BfGi9p6T.js";import"./Shield01-BKKyhf4r.js";import"./Stars01--KT_Bx7a.js";import"./Trash01-BjqXjKjL.js";import"./Upload01-Dz2owj0l.js";import"./User01-DfNUsZjG.js";import"./Users01-CIQN8wG7.js";import"./XClose-CmC5bnde.js";import"./Zap-BHFTnbC7.js";import"./badge-CAWKSDnJ.js";import"./checkbox-BBaFR9e7.js";import"./command-ClyqeQko.js";import"./index-DwmIdtlP.js";import"./popover-DrLCC3p5.js";import"./automation-runs-BioqyUmT.js";import"./useInfiniteQuery-DsOKY7NR.js";import"./use-infinite-scroll-BAdheIAu.js";import"./use-connection-CabbUm7J.js";import"./table-C54lPCoC.js";import"./empty-state-N7iUhCDH.js";import"./use-members-C1QvIqWQ.js";import"./use-org-auth-client-CIuw_wjP.js";import"./use-automations-CZQfO2ET.js";import"./useSuspenseInfiniteQuery-Ci2I5tLg.js";import"./avatar-DQGduv0U.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CPSkWD8d.js";import"./monaco-editor-Cfd7zTaZ.js";import"./spinner-znMssV1b.js";import"./types-BMYq-irZ.js";import"./shell-layout-Bgj0rQDA.js";import"./required-auth-layout-DWW3HDyn.js";import"./use-org-sso-DoM99z93.js";import"./integration-icon-DmJLuQ2R.js";import"./use-navigate-to-agent-D8r5y5p4.js";import"./chart-CjmlfSOz.js";import"./index-DEww-2EZ.js";import"./form-kVV6q-fx.js";import"./file-type-icon-N4BWvB1b.js";import"./drawer-Mrrueqfd.js";import"./collection-search-B-xYnw3X.js";import"./select-DVeSr9Cv.js";import"./toggle-group-DVOGESuU.js";import"./super-agent-icon-D_RymLMx.js";import"./self-tool-result-Ck66n9EL.js";import"./alert-dialog-3i0jJzJ0.js";import"./extract-connection-data-XOJUSxR8.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-wOe54Kkz.js";import"./authenticate-and-persist-oauth-DsOW9H5Z.js";import"./mcp-oauth-1M77jlWl.js";import"./track-Don0wR2Q.js";import"./toolbar-iG8binbI.js";import"./github-repo-picker-Do0PQSNG.js";import"./use-mcp-tools-CAgTZP66.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BpdBS_Al.js";import"./use-registry-connections-D0BvPX4D.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-iTHnU6X5.js";import"./collection-tabs-B9i9CP-Z.js";import"./select-model-DSFTGsBN.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-Do4DMym-.js";import"./dropdown-menu-B1VRfncr.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DWru2W3X.js";import"./use-file-configs-BlsniSlU.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-D494opKg.js";import"./scroll-area-B2Bvze19.js";import"./search-input-Ca_LFpsl.js";import"./use-mcp-auth-status-BJbL5Csu.js";import"./use-secrets-5seihYfj.js";import"./AreaChart-B2c5VlMF.js";import"./config-C05cUmSb.js";import"./breadcrumb-Cl6tbNSR.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DiSYGuJm.js";import"./automation-list-row-CCZYSh-F.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DCazGb2T.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(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{ii 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-DHLutK6v.js";import{b as Be}from"./chat-context-C-BdNZCf.js";import{i as Ie}from"./AlertCircle-qZDg2e-H.js";import{n as Ae}from"./LinkExternal01-kQnRXU4w.js";import{b3 as Re}from"./agent-icon-C9_7Msf7.js";import{a as De}from"./UserSquare-ClSByuB-.js";import{I as ue}from"./input-zNG5Uz1T.js";import{L as xe}from"./label-CEq9oqa2.js";import{M as $e}from"./multi-select-CeA0LiDA.js";import{b as je,c as _e,T as ve,a as Me}from"./tabs-DFRRVuh7.js";import{S as Se}from"./switch-BsAR0Ue8.js";import{T as Le}from"./textarea-XbuS70jj.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-BWVLjCpL.js";import{b as Qe,a as et,B as tt}from"./block-document-BufBxpL6.js";import{u as st}from"./use-autosave-BsqWx81g.js";import{s as X,E as lt,R as it,A as ot}from"./primitives-bdzFl9KQ.js";import"./use-panel-navigate-C8-xot4V.js";import"./dialog-DYg0AoO0.js";import"./Check-C5RWnyNL.js";import"./Copy01-DhfruII6.js";import"./Download01-C1FmC7JV.js";import"./use-destination-route-BMJNYrmL.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DvV-YCly.js";import"./use-mcp-client-Bac4vccq.js";import"./auth-BqxUQw-v.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DDszDk42.js";import"./task-board-D9PHUZff.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-X7MaI4-V.js";import"./use-ai-providers-WmO5B1wa.js";import"./use-decopilot-events-CEhAvB_E.js";import"./use-organization-settings-BsgcrCz-.js";import"./Tool01-tn2PFBHQ.js";import"./ArrowUp-DMDdMhAA.js";import"./ArrowLeft-CatEVOI7.js";import"./Tool02-BalBR7uK.js";import"./XCircle-BOrCVYLf.js";import"./TrendUp01-6TR_k_0Y.js";import"./ZapSquare-DkKtoQ7W.js";import"./Users03-BT3gPqQL.js";import"./CheckCircle-V0GvWvtd.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronRight-Dh8_6pj1.js";import"./ChevronSelectorVertical-Im3Lz_4E.js";import"./ChevronUp-DCx43qHY.js";import"./DotsVertical-B39kxqbi.js";import"./Stars02-4GZ9SjIq.js";import"./CreditCard01-Cy0s6gAf.js";import"./Settings02-xEBQxvJD.js";import"./Eye-m8QZKf2Y.js";import"./FilterLines-BBF-m2ZJ.js";import"./Share07-CLkT7SlV.js";import"./Globe01-C2F_PPuX.js";import"./Globe04-CMCnFTSr.js";import"./SwitchHorizontal01-DwxljZOI.js";import"./HardDrive-DmqNZKD8.js";import"./Key01-DbCU9LZF.js";import"./LockUnlocked01-D5OpQeQe.js";import"./LogOut01-BePTyd5L.js";import"./Monitor01-DPqlemzQ.js";import"./Sun-D0KW7MLF.js";import"./Palette-DzT0S9Gl.js";import"./Play-Btu3v5FX.js";import"./Plus-B7vTVmKH.js";import"./SearchLg-CAAIuTYj.js";import"./SearchMd-COQJLRw-.js";import"./Shield01-C2USnj9G.js";import"./Stars01-DkoqcM4j.js";import"./Trash01-CwqV1gzD.js";import"./Upload01-mqAHBbZV.js";import"./User01-DWaPmCwS.js";import"./Users01-CFDNbxgJ.js";import"./XClose-DMSeuF30.js";import"./Zap-CwYGo5D6.js";import"./badge-CXIV4O-0.js";import"./checkbox-DvC3nAT5.js";import"./command-Ct_4mokr.js";import"./index-RXRS2M8q.js";import"./popover-CPDUuAsK.js";import"./automation-runs-CzcGADVN.js";import"./useInfiniteQuery-CP11XfQS.js";import"./use-infinite-scroll-DzHJHyr0.js";import"./use-connection-D8j2CnOC.js";import"./table-RKi74_kY.js";import"./empty-state-DNKOHljA.js";import"./use-members-_2HCzEHc.js";import"./use-org-auth-client-Cb5lYh1t.js";import"./use-automations-g--nS4Go.js";import"./useSuspenseInfiniteQuery-vPet_vok.js";import"./avatar-1XE5IjoT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-lK-vhEre.js";import"./monaco-editor-BIUU4YtT.js";import"./spinner-DEaGcbnH.js";import"./types-CrdXjhQP.js";import"./shell-layout-BbKgiGKQ.js";import"./required-auth-layout-Bi3hMcfQ.js";import"./use-org-sso-cefqXe6X.js";import"./integration-icon-CVsQlE88.js";import"./use-navigate-to-agent-yAkGdje4.js";import"./chart-Bgue_7DQ.js";import"./index-pYJ2-T-r.js";import"./form-DUYaeuN1.js";import"./file-type-icon-Cr_jiDFe.js";import"./drawer-DrqU_8fl.js";import"./collection-search-DBnGb4Zg.js";import"./select-W8jorDji.js";import"./toggle-group-WZyFFujP.js";import"./super-agent-icon-DxowWKwv.js";import"./self-tool-result-DYCZ2dxI.js";import"./alert-dialog-BWONJIzw.js";import"./extract-connection-data-BI_gbc3h.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D5wCJf5h.js";import"./authenticate-and-persist-oauth-DRVU48ic.js";import"./mcp-oauth-DGSZYZtZ.js";import"./track-BFh4WctH.js";import"./toolbar-CmaLqa3-.js";import"./github-repo-picker-BjTlfZRh.js";import"./use-mcp-tools-FenH0JaE.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CgUgSGsh.js";import"./use-registry-connections-BoC6e9Ko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-gU6TF210.js";import"./collection-tabs-CAUEdmSI.js";import"./select-model-CVJuTB71.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DJSm_nho.js";import"./dropdown-menu-BGreHXNg.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CdtGOM4G.js";import"./use-file-configs-CEny8PB8.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-DsCulVkO.js";import"./scroll-area-Dw0578rC.js";import"./search-input-lOvS7ZZY.js";import"./use-mcp-auth-status-dyqIaOq0.js";import"./use-secrets-CNOFekf-.js";import"./AreaChart-D1rWRcUm.js";import"./config-DG69PD1X.js";import"./breadcrumb-FUX_wv57.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CnmdA4eJ.js";import"./automation-list-row-BMiRTeOK.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DbzFw6wJ.js";function at(V){return Array.isArray(V)?V.map(e=>({key:X(e?.key),value:X(e?.value)})):[]}function ii(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{ii 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-DHLutK6v.js";import{g as y}from"./agent-icon-C9_7Msf7.js";import{s as v}from"./Plus-B7vTVmKH.js";import{s as j}from"./Trash01-CwqV1gzD.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 we,b as Le,j as s,P as Ce,dx as Ue,a as ze,aw as Fe,ay as Oe,x as Ke,q as N,t as De,dw as D,du as Be,dv as qe}from"./index-BoZ9u4m1.js";import{A as He}from"./avatar-DQGduv0U.js";import{S as ke}from"./switch-CE07liUg.js";import{c as Ie,S as Te,d as Ve,a as Ee}from"./select-DVeSr9Cv.js";import{a as Ge,T as Je}from"./toggle-group-DVOGESuU.js";import{I as Me}from"./input-vNnjluS1.js";import{i as Qe}from"./Monitor01-BYyknu9E.js";import{n as We,a as Xe}from"./Sun-DS3TtzGE.js";import{i as Ye}from"./Play-KEXVN9gu.js";import{u as Ze}from"./use-debounced-autosave-D494opKg.js";import{p as et,q as tt}from"./question-004-sINsf4GQ.js";import"./User01-DfNUsZjG.js";import"./Check-CMgbiLaX.js";import"./ChevronDown-Dw8obt8m.js";import"./ChevronUp-zRZTeZ7W.js";const $e=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function st(){const e=we.c(36),t=Le(),{data:l,isPending:i}=ze.useSession(),c=l?.user,o=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const r=Fe(v);let V;e[2]!==r||e[3]!==t?(V={save:async()=>{const k=r.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=r.getValues(),G=r.control._defaultValues;r.reset(x,{keepValues:!0});try{await ze.updateUser({name:x.name}),N("profile_updated",{fields:["name"]}),De.success(t("settings.profile.updateSuccess"))}catch{r.reset(G,{keepValues:!0}),De.error(t("settings.profile.updateError"))}}},e[2]=r,e[3]=t,e[4]=V):V=e[4];const{schedule:P,flush:S}=Ze(V);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const C=c?.name??"U";let f;e[7]!==C||e[8]!==o?(f=s.jsx(He,{url:o,fallback:C,shape:"circle",size:"base"}),e[7]=C,e[8]=o,e[9]=f):f=e[9];let _;e[10]!==b||e[11]!==f?(_=s.jsx(D,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=_):_=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]!==S||e[16]!==P||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Me,{id:"display-name",...x,onChange:G=>{x.onChange(G),P()},onBlur:()=>{x.onBlur(),S()},onKeyDown:G=>{G.key==="Enter"&&S()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=S,e[16]=P,e[17]=t,e[18]=u):u=e[18];let A;e[19]!==r.control||e[20]!==u?(A=s.jsx(Oe,{control:r.control,name:"name",render:u}),e[19]=r.control,e[20]=u,e[21]=A):A=e[21];let d;e[22]!==p||e[23]!==A?(d=s.jsx(D,{title:p,action:A}),e[22]=p,e[23]=A,e[24]=d):d=e[24];let g;e[25]!==t?(g=t("settings.profile.email"),e[25]=t,e[26]=g):g=e[26];const w=c?.email;let m;e[27]!==w?(m=s.jsx("span",{className:"text-sm text-muted-foreground",children:w}),e[27]=w,e[28]=m):m=e[28];let h;e[29]!==g||e[30]!==m?(h=s.jsx(D,{title:g,action:m}),e[29]=g,e[30]=m,e[31]=h):h=e[31];let y;return e[32]!==d||e[33]!==h||e[34]!==_?(y=s.jsx(Be,{children:s.jsxs(qe,{children:[_,d,h]})}),e[32]=d,e[33]=h,e[34]=_,e[35]=y):y=e[35],y}function lt(){const e=we.c(180),t=Le(),[l,i]=Ke();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),De.error(t("settings.preferences.notificationsDenied")),i(ct);return}N("preferences_notifications_toggled",{enabled:n}),i(j=>({...j,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const o=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let r;e[7]!==t?(r=t("settings.preferences.themeDescription"),e[7]=t,e[8]=r):r=e[8];const V=l.theme;let P;e[9]!==i?(P=n=>{n&&(N("preferences_theme_changed",{to_value:n}),i(j=>({...j,theme:n})))},e[9]=i,e[10]=P):P=e[10];let S;e[11]!==t?(S=t("settings.preferences.themeLight"),e[11]=t,e[12]=S):S=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(We,{size:14}),e[13]=b):b=e[13];let C;e[14]!==S?(C=s.jsx(Ge,{value:"light","aria-label":S,children:b}),e[14]=S,e[15]=C):C=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let _;e[18]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Xe,{size:14}),e[18]=_):_=e[18];let p;e[19]!==f?(p=s.jsx(Ge,{value:"dark","aria-label":f,children:_}),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 A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Qe,{size:14}),e[23]=A):A=e[23];let d;e[24]!==u?(d=s.jsx(Ge,{value:"system","aria-label":u,children:A}),e[24]=u,e[25]=d):d=e[25];let g;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==P||e[30]!==C?(g=s.jsxs(Je,{type:"single",size:"sm",variant:"outline",value:V,onValueChange:P,children:[C,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=P,e[30]=C,e[31]=g):g=e[31];let w;e[32]!==g||e[33]!==v||e[34]!==r?(w=s.jsx(D,{title:v,description:r,action:g}),e[32]=g,e[33]=v,e[34]=r,e[35]=w):w=e[35];let m;e[36]!==t?(m=t("settings.preferences.language"),e[36]=t,e[37]=m):m=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let y;e[40]!==i?(y=n=>{N("preferences_language_changed",{to_value:n}),i(j=>({...j,language:n}))},e[40]=i,e[41]=y):y=e[41];let k;e[42]!==l.language?(k=$e.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(Ee,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let G;e[46]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ie,{children:$e.map(at)}),e[46]=G):G=e[46];let L;e[47]!==l.language||e[48]!==y||e[49]!==x?(L=s.jsxs(Te,{value:l.language,onValueChange:y,children:[x,G]}),e[47]=l.language,e[48]=y,e[49]=x,e[50]=L):L=e[50];let z;e[51]!==m||e[52]!==h||e[53]!==L?(z=s.jsx(D,{title:m,description:h,action:L}),e[51]=m,e[52]=h,e[53]=L,e[54]=z):z=e[54];let I;e[55]!==t?(I=t("settings.preferences.notifications"),e[55]=t,e[56]=I):I=e[56];let T;e[57]!==t?(T=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=T):T=e[58];let E;e[59]!==o||e[60]!==l.enableNotifications?(E=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[59]=o,e[60]=l.enableNotifications,e[61]=E):E=e[61];let $;e[62]!==o||e[63]!==l.enableNotifications?($=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[62]=o,e[63]=l.enableNotifications,e[64]=$):$=e[64];let B;e[65]!==I||e[66]!==T||e[67]!==E||e[68]!==$?(B=s.jsx(D,{title:I,description:T,onClick:E,action:$}),e[65]=I,e[66]=T,e[67]=E,e[68]=$,e[69]=B):B=e[69];let q;e[70]!==t?(q=t("settings.preferences.sounds"),e[70]=t,e[71]=q):q=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=()=>{N("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(ot)},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 Ne;e[79]===Symbol.for("react.memo_cache_sentinel")?(Ne=s.jsx(Ye,{size:11}),e[79]=Ne):Ne=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:nt,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:Ne}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{N("preferences_sounds_toggled",{enabled:n}),i(j=>({...j,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]!==q||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(D,{title:q,description:R,onClick:U,action:J}),e[90]=q,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.projectSettingsGear"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.projectSettingsGearDescription"),e[97]=t,e[98]=W):W=e[98];let X;e[99]!==l.showProjectSettingsGear||e[100]!==i?(X=()=>{N("preferences_project_settings_gear_toggled",{enabled:!l.showProjectSettingsGear}),i(it)},e[99]=l.showProjectSettingsGear,e[100]=i,e[101]=X):X=e[101];let Y;e[102]!==t?(Y=t("settings.preferences.projectSettingsGear"),e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==i?(Z=n=>{N("preferences_project_settings_gear_toggled",{enabled:n}),i(j=>({...j,showProjectSettingsGear:n}))},e[104]=i,e[105]=Z):Z=e[105];let ee;e[106]!==l.showProjectSettingsGear||e[107]!==Y||e[108]!==Z?(ee=s.jsx(ke,{"aria-label":Y,checked:l.showProjectSettingsGear,onCheckedChange:Z}),e[106]=l.showProjectSettingsGear,e[107]=Y,e[108]=Z,e[109]=ee):ee=e[109];let te;e[110]!==Q||e[111]!==W||e[112]!==X||e[113]!==ee?(te=s.jsx(D,{title:Q,description:W,onClick:X,action:ee}),e[110]=Q,e[111]=W,e[112]=X,e[113]=ee,e[114]=te):te=e[114];let se;e[115]!==t?(se=t("settings.preferences.toolApproval"),e[115]=t,e[116]=se):se=e[116];let le;e[117]!==t?(le=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=le):le=e[118];const Re=l.toolApprovalLevel;let ie;e[119]!==i?(ie=n=>{N("preferences_tool_approval_changed",{to_value:n}),i(j=>({...j,toolApprovalLevel:n}))},e[119]=i,e[120]=ie):ie=e[120];let ne;e[121]!==l.toolApprovalLevel||e[122]!==t?(ne={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ne):ne=e[123];let re;e[124]!==ne?(re=s.jsx(Ee,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ne})}),e[124]=ne,e[125]=re):re=e[125];let oe;e[126]!==t?(oe=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=oe):oe=e[127];let ae;e[128]!==t?(ae=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ae):ae=e[129];let ce;e[130]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[130]=ae,e[131]=ce):ce=e[131];let fe;e[132]!==t?(fe=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=fe):fe=e[133];let pe;e[134]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[134]=fe,e[135]=pe):pe=e[135];let ue;e[136]!==ce||e[137]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[136]=ce,e[137]=pe,e[138]=ue):ue=e[138];let de;e[139]!==oe||e[140]!==ue?(de=s.jsx(Ve,{value:"readonly",textValue:oe,children:ue}),e[139]=oe,e[140]=ue,e[141]=de):de=e[141];let ge;e[142]!==t?(ge=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ge):ge=e[143];let me;e[144]!==t?(me=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=me):me=e[145];let he;e[146]!==me?(he=s.jsx("span",{className:"font-medium",children:me}),e[146]=me,e[147]=he):he=e[147];let xe;e[148]!==t?(xe=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=xe):xe=e[149];let je;e[150]!==xe?(je=s.jsx("span",{className:"text-xs text-muted-foreground",children:xe}),e[150]=xe,e[151]=je):je=e[151];let ve;e[152]!==he||e[153]!==je?(ve=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[he,je]}),e[152]=he,e[153]=je,e[154]=ve):ve=e[154];let Se;e[155]!==ge||e[156]!==ve?(Se=s.jsx(Ve,{value:"auto",textValue:ge,children:ve}),e[155]=ge,e[156]=ve,e[157]=Se):Se=e[157];let be;e[158]!==de||e[159]!==Se?(be=s.jsxs(Ie,{children:[de,Se]}),e[158]=de,e[159]=Se,e[160]=be):be=e[160];let _e;e[161]!==l.toolApprovalLevel||e[162]!==ie||e[163]!==re||e[164]!==be?(_e=s.jsxs(Te,{value:Re,onValueChange:ie,children:[re,be]}),e[161]=l.toolApprovalLevel,e[162]=ie,e[163]=re,e[164]=be,e[165]=_e):_e=e[165];let Ae;e[166]!==se||e[167]!==le||e[168]!==_e?(Ae=s.jsx(D,{title:se,description:le,action:_e}),e[166]=se,e[167]=le,e[168]=_e,e[169]=Ae):Ae=e[169];let ye;e[170]!==w||e[171]!==z||e[172]!==B||e[173]!==M||e[174]!==te||e[175]!==Ae?(ye=s.jsxs(qe,{children:[w,z,B,M,te,Ae]}),e[170]=w,e[171]=z,e[172]=B,e[173]=M,e[174]=te,e[175]=Ae,e[176]=ye):ye=e[176];let Pe;return e[177]!==a||e[178]!==ye?(Pe=s.jsx(Be,{title:a,children:ye}),e[177]=a,e[178]=ye,e[179]=Pe):Pe=e[179],Pe}function it(e){return{...e,showProjectSettingsGear:!e.showProjectSettingsGear}}function nt(){N("preferences_sounds_previewed"),et(tt.dataUri).catch(rt)}function rt(){}function ot(e){return{...e,enableSounds:!e.enableSounds}}function at(e){return s.jsx(Ve,{value:e.value,textValue:e.label,children:e.label},e.value)}function ct(e){return{...e,enableNotifications:!1}}function ft(){const e=we.c(8),t=Le();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(Ce.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),o=s.jsx(lt,{}),e[4]=c,e[5]=o):(c=e[4],o=e[5]);let a;return e[6]!==i?(a=s.jsx(Ce,{children:s.jsx(Ce.Content,{children:s.jsx(Ce.Body,{children:s.jsxs(Ue,{children:[i,c,o]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=we.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ft,{}),e[0]=t):t=e[0],t}export{Pt as default};
|
|
1
|
+
import{c as we,b as Le,j as s,P as Ce,dx as Ue,a as ze,aw as Fe,ay as Oe,x as Ke,q as N,t as De,dw as D,du as Be,dv as qe}from"./index-DHLutK6v.js";import{A as He}from"./avatar-1XE5IjoT.js";import{S as ke}from"./switch-BsAR0Ue8.js";import{c as Ie,S as Te,d as Ve,a as Ee}from"./select-W8jorDji.js";import{a as Ge,T as Je}from"./toggle-group-WZyFFujP.js";import{I as Me}from"./input-zNG5Uz1T.js";import{i as Qe}from"./Monitor01-DPqlemzQ.js";import{n as We,a as Xe}from"./Sun-D0KW7MLF.js";import{i as Ye}from"./Play-Btu3v5FX.js";import{u as Ze}from"./use-debounced-autosave-DsCulVkO.js";import{p as et,q as tt}from"./question-004-sINsf4GQ.js";import"./User01-DWaPmCwS.js";import"./Check-C5RWnyNL.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronUp-DCx43qHY.js";const $e=[{value:"en",label:"English"},{value:"pt-BR",label:"Português (Brasil)"}];function st(){const e=we.c(36),t=Le(),{data:l,isPending:i}=ze.useSession(),c=l?.user,o=c?.image,a=c?.name??"";let v;e[0]!==a?(v={values:{name:a}},e[0]=a,e[1]=v):v=e[1];const r=Fe(v);let V;e[2]!==r||e[3]!==t?(V={save:async()=>{const k=r.control._formState.dirtyFields;if(Object.keys(k).length===0)return;const x=r.getValues(),G=r.control._defaultValues;r.reset(x,{keepValues:!0});try{await ze.updateUser({name:x.name}),N("profile_updated",{fields:["name"]}),De.success(t("settings.profile.updateSuccess"))}catch{r.reset(G,{keepValues:!0}),De.error(t("settings.profile.updateError"))}}},e[2]=r,e[3]=t,e[4]=V):V=e[4];const{schedule:P,flush:S}=Ze(V);if(i)return null;let b;e[5]!==t?(b=t("settings.profile.avatar"),e[5]=t,e[6]=b):b=e[6];const C=c?.name??"U";let f;e[7]!==C||e[8]!==o?(f=s.jsx(He,{url:o,fallback:C,shape:"circle",size:"base"}),e[7]=C,e[8]=o,e[9]=f):f=e[9];let _;e[10]!==b||e[11]!==f?(_=s.jsx(D,{title:b,action:f}),e[10]=b,e[11]=f,e[12]=_):_=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]!==S||e[16]!==P||e[17]!==t?(u=k=>{const{field:x}=k;return s.jsx(Me,{id:"display-name",...x,onChange:G=>{x.onChange(G),P()},onBlur:()=>{x.onBlur(),S()},onKeyDown:G=>{G.key==="Enter"&&S()},placeholder:t("settings.profile.displayNamePlaceholder"),className:"w-[280px]"})},e[15]=S,e[16]=P,e[17]=t,e[18]=u):u=e[18];let A;e[19]!==r.control||e[20]!==u?(A=s.jsx(Oe,{control:r.control,name:"name",render:u}),e[19]=r.control,e[20]=u,e[21]=A):A=e[21];let d;e[22]!==p||e[23]!==A?(d=s.jsx(D,{title:p,action:A}),e[22]=p,e[23]=A,e[24]=d):d=e[24];let g;e[25]!==t?(g=t("settings.profile.email"),e[25]=t,e[26]=g):g=e[26];const w=c?.email;let m;e[27]!==w?(m=s.jsx("span",{className:"text-sm text-muted-foreground",children:w}),e[27]=w,e[28]=m):m=e[28];let h;e[29]!==g||e[30]!==m?(h=s.jsx(D,{title:g,action:m}),e[29]=g,e[30]=m,e[31]=h):h=e[31];let y;return e[32]!==d||e[33]!==h||e[34]!==_?(y=s.jsx(Be,{children:s.jsxs(qe,{children:[_,d,h]})}),e[32]=d,e[33]=h,e[34]=_,e[35]=y):y=e[35],y}function lt(){const e=we.c(180),t=Le(),[l,i]=Ke();let c;e[0]!==i||e[1]!==t?(c=async n=>{if(n&&await Notification.requestPermission()!=="granted"){N("preferences_notifications_permission_denied"),De.error(t("settings.preferences.notificationsDenied")),i(ct);return}N("preferences_notifications_toggled",{enabled:n}),i(j=>({...j,enableNotifications:n}))},e[0]=i,e[1]=t,e[2]=c):c=e[2];const o=c;let a;e[3]!==t?(a=t("settings.preferences.title"),e[3]=t,e[4]=a):a=e[4];let v;e[5]!==t?(v=t("settings.preferences.theme"),e[5]=t,e[6]=v):v=e[6];let r;e[7]!==t?(r=t("settings.preferences.themeDescription"),e[7]=t,e[8]=r):r=e[8];const V=l.theme;let P;e[9]!==i?(P=n=>{n&&(N("preferences_theme_changed",{to_value:n}),i(j=>({...j,theme:n})))},e[9]=i,e[10]=P):P=e[10];let S;e[11]!==t?(S=t("settings.preferences.themeLight"),e[11]=t,e[12]=S):S=e[12];let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(We,{size:14}),e[13]=b):b=e[13];let C;e[14]!==S?(C=s.jsx(Ge,{value:"light","aria-label":S,children:b}),e[14]=S,e[15]=C):C=e[15];let f;e[16]!==t?(f=t("settings.preferences.themeDark"),e[16]=t,e[17]=f):f=e[17];let _;e[18]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Xe,{size:14}),e[18]=_):_=e[18];let p;e[19]!==f?(p=s.jsx(Ge,{value:"dark","aria-label":f,children:_}),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 A;e[23]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Qe,{size:14}),e[23]=A):A=e[23];let d;e[24]!==u?(d=s.jsx(Ge,{value:"system","aria-label":u,children:A}),e[24]=u,e[25]=d):d=e[25];let g;e[26]!==l.theme||e[27]!==p||e[28]!==d||e[29]!==P||e[30]!==C?(g=s.jsxs(Je,{type:"single",size:"sm",variant:"outline",value:V,onValueChange:P,children:[C,p,d]}),e[26]=l.theme,e[27]=p,e[28]=d,e[29]=P,e[30]=C,e[31]=g):g=e[31];let w;e[32]!==g||e[33]!==v||e[34]!==r?(w=s.jsx(D,{title:v,description:r,action:g}),e[32]=g,e[33]=v,e[34]=r,e[35]=w):w=e[35];let m;e[36]!==t?(m=t("settings.preferences.language"),e[36]=t,e[37]=m):m=e[37];let h;e[38]!==t?(h=t("settings.preferences.languageDescription"),e[38]=t,e[39]=h):h=e[39];let y;e[40]!==i?(y=n=>{N("preferences_language_changed",{to_value:n}),i(j=>({...j,language:n}))},e[40]=i,e[41]=y):y=e[41];let k;e[42]!==l.language?(k=$e.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(Ee,{className:"w-44 h-7 text-xs",children:s.jsx("span",{children:k})}),e[44]=k,e[45]=x):x=e[45];let G;e[46]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Ie,{children:$e.map(at)}),e[46]=G):G=e[46];let L;e[47]!==l.language||e[48]!==y||e[49]!==x?(L=s.jsxs(Te,{value:l.language,onValueChange:y,children:[x,G]}),e[47]=l.language,e[48]=y,e[49]=x,e[50]=L):L=e[50];let z;e[51]!==m||e[52]!==h||e[53]!==L?(z=s.jsx(D,{title:m,description:h,action:L}),e[51]=m,e[52]=h,e[53]=L,e[54]=z):z=e[54];let I;e[55]!==t?(I=t("settings.preferences.notifications"),e[55]=t,e[56]=I):I=e[56];let T;e[57]!==t?(T=t("settings.preferences.notificationsDescription"),e[57]=t,e[58]=T):T=e[58];let E;e[59]!==o||e[60]!==l.enableNotifications?(E=typeof Notification<"u"?()=>o(!l.enableNotifications):void 0,e[59]=o,e[60]=l.enableNotifications,e[61]=E):E=e[61];let $;e[62]!==o||e[63]!==l.enableNotifications?($=s.jsx(ke,{disabled:typeof Notification>"u",checked:l.enableNotifications,onCheckedChange:o}),e[62]=o,e[63]=l.enableNotifications,e[64]=$):$=e[64];let B;e[65]!==I||e[66]!==T||e[67]!==E||e[68]!==$?(B=s.jsx(D,{title:I,description:T,onClick:E,action:$}),e[65]=I,e[66]=T,e[67]=E,e[68]=$,e[69]=B):B=e[69];let q;e[70]!==t?(q=t("settings.preferences.sounds"),e[70]=t,e[71]=q):q=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=()=>{N("preferences_sounds_toggled",{enabled:!l.enableSounds}),i(ot)},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 Ne;e[79]===Symbol.for("react.memo_cache_sentinel")?(Ne=s.jsx(Ye,{size:11}),e[79]=Ne):Ne=e[79];let O;e[80]!==F?(O=s.jsx("button",{type:"button","aria-label":F,onClick:nt,className:"size-6 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-accent/50 transition-colors cursor-pointer",children:Ne}),e[80]=F,e[81]=O):O=e[81];let K;e[82]!==i?(K=n=>{N("preferences_sounds_toggled",{enabled:n}),i(j=>({...j,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]!==q||e[91]!==R||e[92]!==U||e[93]!==J?(M=s.jsx(D,{title:q,description:R,onClick:U,action:J}),e[90]=q,e[91]=R,e[92]=U,e[93]=J,e[94]=M):M=e[94];let Q;e[95]!==t?(Q=t("settings.preferences.projectSettingsGear"),e[95]=t,e[96]=Q):Q=e[96];let W;e[97]!==t?(W=t("settings.preferences.projectSettingsGearDescription"),e[97]=t,e[98]=W):W=e[98];let X;e[99]!==l.showProjectSettingsGear||e[100]!==i?(X=()=>{N("preferences_project_settings_gear_toggled",{enabled:!l.showProjectSettingsGear}),i(it)},e[99]=l.showProjectSettingsGear,e[100]=i,e[101]=X):X=e[101];let Y;e[102]!==t?(Y=t("settings.preferences.projectSettingsGear"),e[102]=t,e[103]=Y):Y=e[103];let Z;e[104]!==i?(Z=n=>{N("preferences_project_settings_gear_toggled",{enabled:n}),i(j=>({...j,showProjectSettingsGear:n}))},e[104]=i,e[105]=Z):Z=e[105];let ee;e[106]!==l.showProjectSettingsGear||e[107]!==Y||e[108]!==Z?(ee=s.jsx(ke,{"aria-label":Y,checked:l.showProjectSettingsGear,onCheckedChange:Z}),e[106]=l.showProjectSettingsGear,e[107]=Y,e[108]=Z,e[109]=ee):ee=e[109];let te;e[110]!==Q||e[111]!==W||e[112]!==X||e[113]!==ee?(te=s.jsx(D,{title:Q,description:W,onClick:X,action:ee}),e[110]=Q,e[111]=W,e[112]=X,e[113]=ee,e[114]=te):te=e[114];let se;e[115]!==t?(se=t("settings.preferences.toolApproval"),e[115]=t,e[116]=se):se=e[116];let le;e[117]!==t?(le=t("settings.preferences.toolApprovalDescription"),e[117]=t,e[118]=le):le=e[118];const Re=l.toolApprovalLevel;let ie;e[119]!==i?(ie=n=>{N("preferences_tool_approval_changed",{to_value:n}),i(j=>({...j,toolApprovalLevel:n}))},e[119]=i,e[120]=ie):ie=e[120];let ne;e[121]!==l.toolApprovalLevel||e[122]!==t?(ne={readonly:t("settings.preferences.toolApprovalAsk"),auto:t("settings.preferences.toolApprovalAuto")}[l.toolApprovalLevel]??t("settings.preferences.toolApprovalAsk"),e[121]=l.toolApprovalLevel,e[122]=t,e[123]=ne):ne=e[123];let re;e[124]!==ne?(re=s.jsx(Ee,{className:"w-36 h-7 text-xs",children:s.jsx("span",{children:ne})}),e[124]=ne,e[125]=re):re=e[125];let oe;e[126]!==t?(oe=t("settings.preferences.toolApprovalAsk"),e[126]=t,e[127]=oe):oe=e[127];let ae;e[128]!==t?(ae=t("settings.preferences.toolApprovalAsk"),e[128]=t,e[129]=ae):ae=e[129];let ce;e[130]!==ae?(ce=s.jsx("span",{className:"font-medium",children:ae}),e[130]=ae,e[131]=ce):ce=e[131];let fe;e[132]!==t?(fe=t("settings.preferences.toolApprovalAskDescription"),e[132]=t,e[133]=fe):fe=e[133];let pe;e[134]!==fe?(pe=s.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[134]=fe,e[135]=pe):pe=e[135];let ue;e[136]!==ce||e[137]!==pe?(ue=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[ce,pe]}),e[136]=ce,e[137]=pe,e[138]=ue):ue=e[138];let de;e[139]!==oe||e[140]!==ue?(de=s.jsx(Ve,{value:"readonly",textValue:oe,children:ue}),e[139]=oe,e[140]=ue,e[141]=de):de=e[141];let ge;e[142]!==t?(ge=t("settings.preferences.toolApprovalAuto"),e[142]=t,e[143]=ge):ge=e[143];let me;e[144]!==t?(me=t("settings.preferences.toolApprovalAuto"),e[144]=t,e[145]=me):me=e[145];let he;e[146]!==me?(he=s.jsx("span",{className:"font-medium",children:me}),e[146]=me,e[147]=he):he=e[147];let xe;e[148]!==t?(xe=t("settings.preferences.toolApprovalAutoDescription"),e[148]=t,e[149]=xe):xe=e[149];let je;e[150]!==xe?(je=s.jsx("span",{className:"text-xs text-muted-foreground",children:xe}),e[150]=xe,e[151]=je):je=e[151];let ve;e[152]!==he||e[153]!==je?(ve=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[he,je]}),e[152]=he,e[153]=je,e[154]=ve):ve=e[154];let Se;e[155]!==ge||e[156]!==ve?(Se=s.jsx(Ve,{value:"auto",textValue:ge,children:ve}),e[155]=ge,e[156]=ve,e[157]=Se):Se=e[157];let be;e[158]!==de||e[159]!==Se?(be=s.jsxs(Ie,{children:[de,Se]}),e[158]=de,e[159]=Se,e[160]=be):be=e[160];let _e;e[161]!==l.toolApprovalLevel||e[162]!==ie||e[163]!==re||e[164]!==be?(_e=s.jsxs(Te,{value:Re,onValueChange:ie,children:[re,be]}),e[161]=l.toolApprovalLevel,e[162]=ie,e[163]=re,e[164]=be,e[165]=_e):_e=e[165];let Ae;e[166]!==se||e[167]!==le||e[168]!==_e?(Ae=s.jsx(D,{title:se,description:le,action:_e}),e[166]=se,e[167]=le,e[168]=_e,e[169]=Ae):Ae=e[169];let ye;e[170]!==w||e[171]!==z||e[172]!==B||e[173]!==M||e[174]!==te||e[175]!==Ae?(ye=s.jsxs(qe,{children:[w,z,B,M,te,Ae]}),e[170]=w,e[171]=z,e[172]=B,e[173]=M,e[174]=te,e[175]=Ae,e[176]=ye):ye=e[176];let Pe;return e[177]!==a||e[178]!==ye?(Pe=s.jsx(Be,{title:a,children:ye}),e[177]=a,e[178]=ye,e[179]=Pe):Pe=e[179],Pe}function it(e){return{...e,showProjectSettingsGear:!e.showProjectSettingsGear}}function nt(){N("preferences_sounds_previewed"),et(tt.dataUri).catch(rt)}function rt(){}function ot(e){return{...e,enableSounds:!e.enableSounds}}function at(e){return s.jsx(Ve,{value:e.value,textValue:e.label,children:e.label},e.value)}function ct(e){return{...e,enableNotifications:!1}}function ft(){const e=we.c(8),t=Le();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(Ce.Title,{children:l}),e[2]=l,e[3]=i):i=e[3];let c,o;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(st,{}),o=s.jsx(lt,{}),e[4]=c,e[5]=o):(c=e[4],o=e[5]);let a;return e[6]!==i?(a=s.jsx(Ce,{children:s.jsx(Ce.Content,{children:s.jsx(Ce.Body,{children:s.jsxs(Ue,{children:[i,c,o]})})})}),e[6]=i,e[7]=a):a=e[7],a}function Pt(){const e=we.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ft,{}),e[0]=t):t=e[0],t}export{Pt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bG as Z,c as k,b as L,j as r,r as H,E as ee,H as K,a as te,B as oe,k as ie}from"./index-BoZ9u4m1.js";import{a as se,g as q,s as F}from"./automation-runs-BioqyUmT.js";import{u as z}from"./use-mcp-client-Cl4PpqBq.js";import{W as re,S as ne,p as le}from"./constants-dLUUoWH7.js";import{b as me,c as ce}from"./use-mcp-tools-CAgTZP66.js";import{u as ae}from"./index-UTTF9eic.js";import{c as pe}from"./monaco-editor-Cfd7zTaZ.js";import{g as de,M as fe,a as G}from"./types-BMYq-irZ.js";import{a as ue,u as ge}from"./chat-context-B5Wg5Lf5.js";import{u as xe}from"./shell-layout-Bgj0rQDA.js";import{c as he,e as Ce,s as je,f as Se,P as Ie,g as be,h as Ne}from"./self-tool-result-Ck66n9EL.js";import{b as W,a as J,d as Q,e as X}from"./dialog-BST7kHjs.js";import{I as De}from"./integration-icon-DmJLuQ2R.js";import{u as ve}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-DwW--uUY.js";import"./AlertCircle-BX7MJ072.js";import"./UserSquare-QpZbwdZV.js";import"./Tool01-Ci1f_VX6.js";import"./ArrowUp-DE3_BiFl.js";import"./ArrowLeft-D_iAJfNc.js";import"./Tool02-BSzeWnI0.js";import"./XCircle-BEPQ7ZR9.js";import"./TrendUp01-BXDl_oA2.js";import"./ZapSquare-W_x0tYhG.js";import"./Users03-1JkDRbw6.js";import"./CheckCircle-DSareV9G.js";import"./Check-CMgbiLaX.js";import"./ChevronDown-Dw8obt8m.js";import"./ChevronRight-CmErvA0j.js";import"./ChevronSelectorVertical-DvwcNCCU.js";import"./ChevronUp-zRZTeZ7W.js";import"./DotsVertical-BWlRnIv9.js";import"./Stars02-BX_P13x6.js";import"./Copy01-TuMirHlz.js";import"./CreditCard01-DE9AkrGD.js";import"./Download01-BrELUVKh.js";import"./Settings02-NF-WIPx9.js";import"./Eye-C1diZla3.js";import"./FilterLines-CWtPXhPn.js";import"./Share07-CaDcjgW4.js";import"./Globe01-BLauj86P.js";import"./Globe04-BZfohkfh.js";import"./SwitchHorizontal01-Cb_T5oPm.js";import"./HardDrive-BooNC9Iz.js";import"./Key01-BNf86BzY.js";import"./LinkExternal01-C5sEFVrU.js";import"./LockUnlocked01-qFRWZtfh.js";import"./LogOut01-945MQKA3.js";import"./Monitor01-BYyknu9E.js";import"./Sun-DS3TtzGE.js";import"./Palette-CtmrE0Ya.js";import"./Play-KEXVN9gu.js";import"./Plus-DVX_wDQ5.js";import"./SearchLg--Jj0q90X.js";import"./SearchMd-BfGi9p6T.js";import"./Shield01-BKKyhf4r.js";import"./Stars01--KT_Bx7a.js";import"./Trash01-BjqXjKjL.js";import"./Upload01-Dz2owj0l.js";import"./User01-DfNUsZjG.js";import"./Users01-CIQN8wG7.js";import"./XClose-CmC5bnde.js";import"./Zap-BHFTnbC7.js";import"./useInfiniteQuery-DsOKY7NR.js";import"./use-infinite-scroll-BAdheIAu.js";import"./use-connection-CabbUm7J.js";import"./use-virtual-mcp-Df2Znans.js";import"./table-C54lPCoC.js";import"./empty-state-N7iUhCDH.js";import"./use-members-C1QvIqWQ.js";import"./use-org-auth-client-CIuw_wjP.js";import"./use-automations-CZQfO2ET.js";import"./useSuspenseInfiniteQuery-Ci2I5tLg.js";import"./avatar-DQGduv0U.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-CPSkWD8d.js";import"./use-panel-navigate-jSEiIqVH.js";import"./use-destination-route-CUizQ3Ky.js";import"./hooks-B79ZY8IT.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-S5tux0kK.js";import"./task-board-C_FiCg7o.js";import"./use-navigate-to-agent-D8r5y5p4.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-CjmlfSOz.js";import"./index-DEww-2EZ.js";import"./form-kVV6q-fx.js";import"./label-2hy1g0FP.js";import"./input-vNnjluS1.js";import"./spinner-znMssV1b.js";import"./file-type-icon-N4BWvB1b.js";import"./auth-jQituvKm.js";import"./drawer-Mrrueqfd.js";import"./collection-search-B-xYnw3X.js";import"./select-DVeSr9Cv.js";import"./tabs-DVsDlywr.js";import"./toggle-group-DVOGESuU.js";import"./super-agent-icon-D_RymLMx.js";import"./popover-DrLCC3p5.js";import"./toolbar-iG8binbI.js";import"./github-repo-picker-Do0PQSNG.js";import"./use-debounced-value-wOe54Kkz.js";import"./authenticate-and-persist-oauth-DsOW9H5Z.js";import"./mcp-oauth-1M77jlWl.js";import"./extract-connection-data-XOJUSxR8.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-BpdBS_Al.js";import"./use-registry-connections-D0BvPX4D.js";import"./use-organization-settings-DLT--rXL.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-e01dAh4Q.js";import"./connection-form-helpers-iTHnU6X5.js";import"./collection-tabs-B9i9CP-Z.js";import"./badge-CAWKSDnJ.js";import"./use-ai-providers-Cu5w7RQA.js";import"./select-model-DSFTGsBN.js";import"./checkbox-BBaFR9e7.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-Do4DMym-.js";import"./dropdown-menu-B1VRfncr.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DWru2W3X.js";import"./use-decopilot-events-CoDj3hx4.js";import"./use-file-configs-BlsniSlU.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-3i0jJzJ0.js";import"./use-debounced-autosave-D494opKg.js";import"./scroll-area-B2Bvze19.js";import"./search-input-Ca_LFpsl.js";import"./use-mcp-auth-status-BJbL5Csu.js";import"./switch-CE07liUg.js";import"./use-secrets-5seihYfj.js";import"./AreaChart-B2c5VlMF.js";import"./config-C05cUmSb.js";import"./breadcrumb-Cl6tbNSR.js";import"./command-ClyqeQko.js";import"./index-DwmIdtlP.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-DiSYGuJm.js";import"./automation-list-row-CCZYSh-F.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DCazGb2T.js";import"./required-auth-layout-DWW3HDyn.js";import"./use-org-sso-DoM99z93.js";import"./track-Don0wR2Q.js";const Me="studio://navigate",_e=new Set(["vtex","ga4","gsc","github"]);function ye(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null;try{const s=new URL(e.uri).searchParams;o=s.get("main"),i=s.get("field")}catch{}return{isNavigate:!0,tab:o&&Z.has(o)?o:null,field:i&&_e.has(i)?i:null}}function B(N){const e=k.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let a;e[2]!==s?(a=s("commerceOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=a):a=e[3];let l;e[4]!==a?(l=r.jsx(J,{children:r.jsx(W,{children:a})}),e[4]=a,e[5]=l):l=e[5];let d;e[6]!==i||e[7]!==l?(d=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=r.jsx(X,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function V(N){const e=k.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(ie,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=r.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,r.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function Oe(N){const e=k.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>r.jsx(B,{onClose:i,children:r.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let a;e[3]!==s?(a=s("commerceOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=a):a=e[4];let l;e[5]!==a?(l=r.jsx(V,{label:a}),e[5]=a,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==l?(d=r.jsx(B,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=r.jsx(Te,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let u;e[13]!==d||e[14]!==n?(u=r.jsx(H.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=r.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Te(N){const e=k.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=K();let a;e[0]!==t.id?(a=re.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=a):a=e[1];const l=a;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:ne,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:u}=te.useSession(),g=u?.user?.id??"";let j;e[5]!==l||e[6]!==t||e[7]!==n?(j={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=j):j=e[8];const m=he(j);let f;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(f={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=f):f=e[13];const{cards:S}=Ce(f);let h;e[14]!==m?(h=je(m)??void 0,e[14]=m,e[15]=h):h=e[15];let b;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==g?(b={selfClient:n,org:t,userId:g,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:D,connectingFieldKey:I,error:_}=Se(b);let E;if(e[23]!==S||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],E=S.find(p),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const c=E;if(!c){let p;e[28]!==s?(p=s("routes.commerceOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=r.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const P=Ie[c.bindingType];if(P&&c.boundVia!=="oauth"){let p;e[35]!==i?(p=v=>!v&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==c||e[38]!==D?(x=c.satisfied?void 0:()=>{D(c)},e[37]=c,e[38]=D,e[39]=x):x=e[39];let C;return e[40]!==c||e[41]!==t||e[42]!==P||e[43]!==n||e[44]!==m||e[45]!==p||e[46]!==x?(C=r.jsx(Ne,{card:c,provider:P,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=c,e[41]=t,e[42]=P,e[43]=n,e[44]=m,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(c.satisfied&&c.linkedConnectionId){let p;e[48]!==s?(p=s("commerceOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=r.jsx(V,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let v;e[55]!==i?(v=A=>!A&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==c||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=r.jsx(be,{card:c,org:t,selfClient:n,connectionId:c.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=c,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let O;return e[63]!==C||e[64]!==M?(O=r.jsx(H.Suspense,{fallback:C,children:M}),e[63]=C,e[64]=M,e[65]=O):O=e[65],O}const T=I===c.fieldKey;let y;e[66]!==c||e[67]!==D?(y=()=>{D(c)},e[66]=c,e[67]=D,e[68]=y):y=e[68];let R;return e[69]!==c||e[70]!==_||e[71]!==i||e[72]!==T||e[73]!==y?(R=r.jsx(Ee,{card:c,connecting:T,error:_,onConnect:y,onClose:i}),e[69]=c,e[70]=_,e[71]=i,e[72]=T,e[73]=y,e[74]=R):R=e[74],R}function Ee(N){const e=k.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:a}=N,l=L(),[d,n]=H.useState(!1);d||(n(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==a?(u=b=>{!b&&i||b||a()},e[0]=i,e[1]=a,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=r.jsx(De,{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 j;e[6]!==o.title?(j=r.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=j):j=e[7];let m;e[8]!==g||e[9]!==j?(m=r.jsxs(J,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,j]}),e[8]=g,e[9]=j,e[10]=m):m=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==l?(f=s?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),r.jsx(oe,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):r.jsx(V,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=l,e[15]=f):f=e[15];let S;e[16]!==m||e[17]!==f?(S=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,f]}),e[16]=m,e[17]=f,e[18]=S):S=e[18];let h;return e[19]!==u||e[20]!==S?(h=r.jsx(X,{open:!0,onOpenChange:u,children:S}),e[19]=u,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Re(N){const e=k.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:a,args:l}=N,{sendMessage:d}=ue(),{setAppContext:n,clearAppContext:u}=ge(),{openSidePanel:g,openTab:j,closeTab:m}=xe(),f=`${t}:${s.name}`,[S,h]=H.useState(null);let b;e[0]!==m?(b=U=>U==="inline"?(m(),"inline"):"fullscreen",e[0]=m,e[1]=b):b=e[1];const D=b,I=l??Pe;let _;e[2]!==o||e[3]!==s.name||e[4]!==I?(_={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=_):_=e[5];const{data:E}=ce(_);let c;if(e[6]!==s._meta||e[7]!==s.name){const U=q(s._meta);c=F(s.name,U),e[6]=s._meta,e[7]=s.name,e[8]=c}else c=e[8];const P=c;let T;e[9]!==s.inputSchema?(T=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=T):T=e[10];let y;e[11]!==P||e[12]!==T||e[13]!==s?(y={...s,name:P,inputSchema:T},e[11]=P,e[12]=T,e[13]=s,e[14]=y):y=e[14];const R=y;let p;e[15]!==g||e[16]!==j||e[17]!==d?(p=U=>{const w=ye(U.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?h(w.field):w.tab&&j(w.tab);return}const Y=pe(U.content);Y.content.length>0&&(g(),d({tiptapDoc:Y}))},e[15]=g,e[16]=j,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==R?(C={tool:R},e[19]=R,e[20]=C):C=e[20];let v;e[21]!==n||e[22]!==f?(v=U=>n(f,U),e[21]=n,e[22]=f,e[23]=v):v=e[23];let M;e[24]!==u||e[25]!==f?(M=()=>u(f),e[24]=u,e[25]=f,e[26]=M):M=e[26];let O;e[27]!==o||e[28]!==x||e[29]!==D||e[30]!==a||e[31]!==i||e[32]!==C||e[33]!==v||e[34]!==M||e[35]!==I||e[36]!==E?(O=r.jsx(fe,{resourceURI:i,orgId:a,toolInfo:C,toolInput:I,toolResult:E,displayMode:"fullscreen",minHeight:G.fullscreen.minHeight,maxHeight:G.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:v,onTeardown:M,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=x,e[29]=D,e[30]=a,e[31]=i,e[32]=C,e[33]=v,e[34]=M,e[35]=I,e[36]=E,e[37]=O):O=e[37];let A;e[38]!==S?(A=S&&r.jsx(Oe,{field:S,onClose:()=>h(null)}),e[38]=S,e[39]=A):A=e[39];let $;return e[40]!==O||e[41]!==A?($=r.jsxs(r.Fragment,{children:[O,A]}),e[40]=O,e[41]=A,e[42]=$):$=e[42],$}function Ni(N){const e=k.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=K(),a=ae(),l=ve();let d;e[0]!==o||e[1]!==l||e[2]!==a?(d=le(o)&&l?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=a,e[3]=d):d=e[3];const n=d;let u;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=z(u);let j;e[9]!==g?(j={client:g},e[9]=g,e[10]=j):j=e[10];const{data:m}=me(j);let f,S,h;e[11]!==i||e[12]!==m.tools?(f=se(decodeURIComponent(i)),h=m.tools.find(I=>I.name===f)??m.tools.find(I=>{const _=q(I._meta);if(!_)return!1;if(F(I.name,_)===f)return!0;const c=F(f,_);return c!==f&&I.name===c}),S=h?._meta?de(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=f,e[14]=S,e[15]=h):(f=e[13],S=e[14],h=e[15]);const b=S;if(!h||!b){let I;return e[16]!==f?(I=r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let D;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(D=r.jsx(Re,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=D):D=e[24],D}export{Ni as AppViewContent};
|
|
1
|
+
import{bG as Z,c as k,b as L,j as r,r as H,E as ee,H as K,a as te,B as oe,k as ie}from"./index-DHLutK6v.js";import{a as se,g as q,s as F}from"./automation-runs-CzcGADVN.js";import{u as z}from"./use-mcp-client-Bac4vccq.js";import{W as re,S as ne,p as le}from"./constants-dLUUoWH7.js";import{b as me,c as ce}from"./use-mcp-tools-FenH0JaE.js";import{u as ae}from"./index-BWVLjCpL.js";import{c as pe}from"./monaco-editor-BIUU4YtT.js";import{g as de,M as fe,a as G}from"./types-CrdXjhQP.js";import{a as ue,u as ge}from"./chat-context-C-BdNZCf.js";import{u as xe}from"./shell-layout-BbKgiGKQ.js";import{c as he,e as Ce,s as je,f as Se,P as Ie,g as be,h as Ne}from"./self-tool-result-DYCZ2dxI.js";import{b as W,a as J,d as Q,e as X}from"./dialog-DYg0AoO0.js";import{I as De}from"./integration-icon-CVsQlE88.js";import{u as ve}from"./use-is-desktop-app-BNujXJc_.js";import"./agent-icon-C9_7Msf7.js";import"./AlertCircle-qZDg2e-H.js";import"./UserSquare-ClSByuB-.js";import"./Tool01-tn2PFBHQ.js";import"./ArrowUp-DMDdMhAA.js";import"./ArrowLeft-CatEVOI7.js";import"./Tool02-BalBR7uK.js";import"./XCircle-BOrCVYLf.js";import"./TrendUp01-6TR_k_0Y.js";import"./ZapSquare-DkKtoQ7W.js";import"./Users03-BT3gPqQL.js";import"./CheckCircle-V0GvWvtd.js";import"./Check-C5RWnyNL.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronRight-Dh8_6pj1.js";import"./ChevronSelectorVertical-Im3Lz_4E.js";import"./ChevronUp-DCx43qHY.js";import"./DotsVertical-B39kxqbi.js";import"./Stars02-4GZ9SjIq.js";import"./Copy01-DhfruII6.js";import"./CreditCard01-Cy0s6gAf.js";import"./Download01-C1FmC7JV.js";import"./Settings02-xEBQxvJD.js";import"./Eye-m8QZKf2Y.js";import"./FilterLines-BBF-m2ZJ.js";import"./Share07-CLkT7SlV.js";import"./Globe01-C2F_PPuX.js";import"./Globe04-CMCnFTSr.js";import"./SwitchHorizontal01-DwxljZOI.js";import"./HardDrive-DmqNZKD8.js";import"./Key01-DbCU9LZF.js";import"./LinkExternal01-kQnRXU4w.js";import"./LockUnlocked01-D5OpQeQe.js";import"./LogOut01-BePTyd5L.js";import"./Monitor01-DPqlemzQ.js";import"./Sun-D0KW7MLF.js";import"./Palette-DzT0S9Gl.js";import"./Play-Btu3v5FX.js";import"./Plus-B7vTVmKH.js";import"./SearchLg-CAAIuTYj.js";import"./SearchMd-COQJLRw-.js";import"./Shield01-C2USnj9G.js";import"./Stars01-DkoqcM4j.js";import"./Trash01-CwqV1gzD.js";import"./Upload01-mqAHBbZV.js";import"./User01-DWaPmCwS.js";import"./Users01-CFDNbxgJ.js";import"./XClose-DMSeuF30.js";import"./Zap-CwYGo5D6.js";import"./useInfiniteQuery-CP11XfQS.js";import"./use-infinite-scroll-DzHJHyr0.js";import"./use-connection-D8j2CnOC.js";import"./use-virtual-mcp-X7MaI4-V.js";import"./table-RKi74_kY.js";import"./empty-state-DNKOHljA.js";import"./use-members-_2HCzEHc.js";import"./use-org-auth-client-Cb5lYh1t.js";import"./use-automations-g--nS4Go.js";import"./useSuspenseInfiniteQuery-vPet_vok.js";import"./avatar-1XE5IjoT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-lK-vhEre.js";import"./use-panel-navigate-C8-xot4V.js";import"./use-destination-route-BMJNYrmL.js";import"./hooks-DvV-YCly.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DDszDk42.js";import"./task-board-D9PHUZff.js";import"./use-navigate-to-agent-yAkGdje4.js";import"./session-runtime-wVXsCwcJ.js";import"./chart-Bgue_7DQ.js";import"./index-pYJ2-T-r.js";import"./form-DUYaeuN1.js";import"./label-CEq9oqa2.js";import"./input-zNG5Uz1T.js";import"./spinner-DEaGcbnH.js";import"./file-type-icon-Cr_jiDFe.js";import"./auth-BqxUQw-v.js";import"./drawer-DrqU_8fl.js";import"./collection-search-DBnGb4Zg.js";import"./select-W8jorDji.js";import"./tabs-DFRRVuh7.js";import"./toggle-group-WZyFFujP.js";import"./super-agent-icon-DxowWKwv.js";import"./popover-CPDUuAsK.js";import"./toolbar-CmaLqa3-.js";import"./github-repo-picker-BjTlfZRh.js";import"./use-debounced-value-D5wCJf5h.js";import"./authenticate-and-persist-oauth-DRVU48ic.js";import"./mcp-oauth-DGSZYZtZ.js";import"./extract-connection-data-BI_gbc3h.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CgUgSGsh.js";import"./use-registry-connections-BoC6e9Ko.js";import"./use-organization-settings-BsgcrCz-.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-XbuS70jj.js";import"./connection-form-helpers-gU6TF210.js";import"./collection-tabs-CAUEdmSI.js";import"./badge-CXIV4O-0.js";import"./use-ai-providers-WmO5B1wa.js";import"./select-model-CVJuTB71.js";import"./checkbox-DvC3nAT5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DJSm_nho.js";import"./dropdown-menu-BGreHXNg.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CdtGOM4G.js";import"./use-decopilot-events-CEhAvB_E.js";import"./use-file-configs-CEny8PB8.js";import"./pt-BR-CLy76QW2.js";import"./alert-dialog-BWONJIzw.js";import"./use-debounced-autosave-DsCulVkO.js";import"./scroll-area-Dw0578rC.js";import"./search-input-lOvS7ZZY.js";import"./use-mcp-auth-status-dyqIaOq0.js";import"./switch-BsAR0Ue8.js";import"./use-secrets-CNOFekf-.js";import"./AreaChart-D1rWRcUm.js";import"./config-DG69PD1X.js";import"./breadcrumb-FUX_wv57.js";import"./command-Ct_4mokr.js";import"./index-RXRS2M8q.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CnmdA4eJ.js";import"./automation-list-row-BMiRTeOK.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DbzFw6wJ.js";import"./required-auth-layout-Bi3hMcfQ.js";import"./use-org-sso-cefqXe6X.js";import"./track-BFh4WctH.js";const Me="studio://navigate",_e=new Set(["vtex","ga4","gsc","github"]);function ye(N){const[e]=N;if(N.length!==1||e?.type!=="resource_link"||!e.uri.startsWith(Me))return{isNavigate:!1};let o=null,i=null;try{const s=new URL(e.uri).searchParams;o=s.get("main"),i=s.get("field")}catch{}return{isNavigate:!0,tab:o&&Z.has(o)?o:null,field:i&&_e.has(i)?i:null}}function B(N){const e=k.c(12),{onClose:o,children:i}=N,s=L();let t;e[0]!==o?(t=u=>!u&&o(),e[0]=o,e[1]=t):t=e[1];let a;e[2]!==s?(a=s("commerceOnboarding.connectSourceDialog.title"),e[2]=s,e[3]=a):a=e[3];let l;e[4]!==a?(l=r.jsx(J,{children:r.jsx(W,{children:a})}),e[4]=a,e[5]=l):l=e[5];let d;e[6]!==i||e[7]!==l?(d=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[l,i]}),e[6]=i,e[7]=l,e[8]=d):d=e[8];let n;return e[9]!==t||e[10]!==d?(n=r.jsx(X,{open:!0,onOpenChange:t,children:d}),e[9]=t,e[10]=d,e[11]=n):n=e[11],n}function V(N){const e=k.c(3),{label:o}=N;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(ie,{size:16,className:"animate-spin"}),e[0]=i):i=e[0];let s;return e[1]!==o?(s=r.jsxs("div",{className:"flex items-center gap-2 py-2 text-sm text-muted-foreground",children:[i,r.jsx("span",{children:o})]}),e[1]=o,e[2]=s):s=e[2],s}function Oe(N){const e=k.c(19),{field:o,onClose:i}=N,s=L();let t;e[0]!==i||e[1]!==s?(t=()=>r.jsx(B,{onClose:i,children:r.jsx("p",{className:"text-sm text-muted-foreground",children:s("routes.commerceOnboarding.connectModal.loadError")})}),e[0]=i,e[1]=s,e[2]=t):t=e[2];let a;e[3]!==s?(a=s("commerceOnboarding.connectSourceDialog.loading"),e[3]=s,e[4]=a):a=e[4];let l;e[5]!==a?(l=r.jsx(V,{label:a}),e[5]=a,e[6]=l):l=e[6];let d;e[7]!==i||e[8]!==l?(d=r.jsx(B,{onClose:i,children:l}),e[7]=i,e[8]=l,e[9]=d):d=e[9];let n;e[10]!==o||e[11]!==i?(n=r.jsx(Te,{field:o,onClose:i}),e[10]=o,e[11]=i,e[12]=n):n=e[12];let u;e[13]!==d||e[14]!==n?(u=r.jsx(H.Suspense,{fallback:d,children:n}),e[13]=d,e[14]=n,e[15]=u):u=e[15];let g;return e[16]!==t||e[17]!==u?(g=r.jsx(ee,{fallback:t,children:u}),e[16]=t,e[17]=u,e[18]=g):g=e[18],g}function Te(N){const e=k.c(75),{field:o,onClose:i}=N,s=L(),{org:t}=K();let a;e[0]!==t.id?(a=re.COMMERCE_DISCOVERY(t.id),e[0]=t.id,e[1]=a):a=e[1];const l=a;let d;e[2]!==t.id||e[3]!==t.slug?(d={connectionId:ne,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:u}=te.useSession(),g=u?.user?.id??"";let j;e[5]!==l||e[6]!==t||e[7]!==n?(j={selfClient:n,org:t,cdConnectionId:l},e[5]=l,e[6]=t,e[7]=n,e[8]=j):j=e[8];const m=he(j);let f;e[9]!==l||e[10]!==t||e[11]!==n||e[12]!==m?(f={selfClient:n,org:t,cdConnectionId:l,siteUrl:m},e[9]=l,e[10]=t,e[11]=n,e[12]=m,e[13]=f):f=e[13];const{cards:S}=Ce(f);let h;e[14]!==m?(h=je(m)??void 0,e[14]=m,e[15]=h):h=e[15];let b;e[16]!==l||e[17]!==t||e[18]!==n||e[19]!==m||e[20]!==h||e[21]!==g?(b={selfClient:n,org:t,userId:g,cdConnectionId:l,domain:h,siteUrl:m},e[16]=l,e[17]=t,e[18]=n,e[19]=m,e[20]=h,e[21]=g,e[22]=b):b=e[22];const{connect:D,connectingFieldKey:I,error:_}=Se(b);let E;if(e[23]!==S||e[24]!==o){let p;e[26]!==o?(p=x=>x.fieldKey===o,e[26]=o,e[27]=p):p=e[27],E=S.find(p),e[23]=S,e[24]=o,e[25]=E}else E=e[25];const c=E;if(!c){let p;e[28]!==s?(p=s("routes.commerceOnboarding.connectModal.loadError"),e[28]=s,e[29]=p):p=e[29];let x;e[30]!==p?(x=r.jsx("p",{className:"text-sm text-muted-foreground",children:p}),e[30]=p,e[31]=x):x=e[31];let C;return e[32]!==i||e[33]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[32]=i,e[33]=x,e[34]=C):C=e[34],C}const P=Ie[c.bindingType];if(P&&c.boundVia!=="oauth"){let p;e[35]!==i?(p=v=>!v&&i(),e[35]=i,e[36]=p):p=e[36];let x;e[37]!==c||e[38]!==D?(x=c.satisfied?void 0:()=>{D(c)},e[37]=c,e[38]=D,e[39]=x):x=e[39];let C;return e[40]!==c||e[41]!==t||e[42]!==P||e[43]!==n||e[44]!==m||e[45]!==p||e[46]!==x?(C=r.jsx(Ne,{card:c,provider:P,org:t,selfClient:n,siteUrl:m,open:!0,onOpenChange:p,onOAuthInstead:x}),e[40]=c,e[41]=t,e[42]=P,e[43]=n,e[44]=m,e[45]=p,e[46]=x,e[47]=C):C=e[47],C}if(c.satisfied&&c.linkedConnectionId){let p;e[48]!==s?(p=s("commerceOnboarding.connectSourceDialog.loading"),e[48]=s,e[49]=p):p=e[49];let x;e[50]!==p?(x=r.jsx(V,{label:p}),e[50]=p,e[51]=x):x=e[51];let C;e[52]!==i||e[53]!==x?(C=r.jsx(B,{onClose:i,children:x}),e[52]=i,e[53]=x,e[54]=C):C=e[54];let v;e[55]!==i?(v=A=>!A&&i(),e[55]=i,e[56]=v):v=e[56];let M;e[57]!==c||e[58]!==t||e[59]!==n||e[60]!==m||e[61]!==v?(M=r.jsx(be,{card:c,org:t,selfClient:n,connectionId:c.linkedConnectionId,contextSiteUrl:m,open:!0,onOpenChange:v}),e[57]=c,e[58]=t,e[59]=n,e[60]=m,e[61]=v,e[62]=M):M=e[62];let O;return e[63]!==C||e[64]!==M?(O=r.jsx(H.Suspense,{fallback:C,children:M}),e[63]=C,e[64]=M,e[65]=O):O=e[65],O}const T=I===c.fieldKey;let y;e[66]!==c||e[67]!==D?(y=()=>{D(c)},e[66]=c,e[67]=D,e[68]=y):y=e[68];let R;return e[69]!==c||e[70]!==_||e[71]!==i||e[72]!==T||e[73]!==y?(R=r.jsx(Ee,{card:c,connecting:T,error:_,onConnect:y,onClose:i}),e[69]=c,e[70]=_,e[71]=i,e[72]=T,e[73]=y,e[74]=R):R=e[74],R}function Ee(N){const e=k.c(22),{card:o,connecting:i,error:s,onConnect:t,onClose:a}=N,l=L(),[d,n]=H.useState(!1);d||(n(!0),queueMicrotask(t));let u;e[0]!==i||e[1]!==a?(u=b=>{!b&&i||b||a()},e[0]=i,e[1]=a,e[2]=u):u=e[2];let g;e[3]!==o.icon||e[4]!==o.title?(g=r.jsx(De,{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 j;e[6]!==o.title?(j=r.jsx(W,{className:"min-w-0 flex-1",children:o.title}),e[6]=o.title,e[7]=j):j=e[7];let m;e[8]!==g||e[9]!==j?(m=r.jsxs(J,{className:"flex-row items-center gap-3 space-y-0 text-left",children:[g,j]}),e[8]=g,e[9]=j,e[10]=m):m=e[10];let f;e[11]!==o.title||e[12]!==s||e[13]!==t||e[14]!==l?(f=s?r.jsxs("div",{className:"flex flex-col gap-3",children:[r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:s}),r.jsx(oe,{type:"button",variant:"outline",size:"sm",className:"self-start",onClick:t,children:l("routes.commerceOnboarding.companionSection.retry")})]}):r.jsx(V,{label:l("commerceOnboarding.connectSourceDialog.connecting",{title:o.title})}),e[11]=o.title,e[12]=s,e[13]=t,e[14]=l,e[15]=f):f=e[15];let S;e[16]!==m||e[17]!==f?(S=r.jsxs(Q,{"aria-describedby":void 0,className:"sm:max-w-lg",children:[m,f]}),e[16]=m,e[17]=f,e[18]=S):S=e[18];let h;return e[19]!==u||e[20]!==S?(h=r.jsx(X,{open:!0,onOpenChange:u,children:S}),e[19]=u,e[20]=S,e[21]=h):h=e[21],h}const Pe={};function Re(N){const e=k.c(43),{client:o,resourceURI:i,tool:s,connectionId:t,orgId:a,args:l}=N,{sendMessage:d}=ue(),{setAppContext:n,clearAppContext:u}=ge(),{openSidePanel:g,openTab:j,closeTab:m}=xe(),f=`${t}:${s.name}`,[S,h]=H.useState(null);let b;e[0]!==m?(b=U=>U==="inline"?(m(),"inline"):"fullscreen",e[0]=m,e[1]=b):b=e[1];const D=b,I=l??Pe;let _;e[2]!==o||e[3]!==s.name||e[4]!==I?(_={client:o,toolName:s.name,toolArguments:I},e[2]=o,e[3]=s.name,e[4]=I,e[5]=_):_=e[5];const{data:E}=ce(_);let c;if(e[6]!==s._meta||e[7]!==s.name){const U=q(s._meta);c=F(s.name,U),e[6]=s._meta,e[7]=s.name,e[8]=c}else c=e[8];const P=c;let T;e[9]!==s.inputSchema?(T=s.inputSchema??{type:"object"},e[9]=s.inputSchema,e[10]=T):T=e[10];let y;e[11]!==P||e[12]!==T||e[13]!==s?(y={...s,name:P,inputSchema:T},e[11]=P,e[12]=T,e[13]=s,e[14]=y):y=e[14];const R=y;let p;e[15]!==g||e[16]!==j||e[17]!==d?(p=U=>{const w=ye(U.content);if(w.isNavigate){w.tab==="connect-sources"&&w.field?h(w.field):w.tab&&j(w.tab);return}const Y=pe(U.content);Y.content.length>0&&(g(),d({tiptapDoc:Y}))},e[15]=g,e[16]=j,e[17]=d,e[18]=p):p=e[18];const x=p;let C;e[19]!==R?(C={tool:R},e[19]=R,e[20]=C):C=e[20];let v;e[21]!==n||e[22]!==f?(v=U=>n(f,U),e[21]=n,e[22]=f,e[23]=v):v=e[23];let M;e[24]!==u||e[25]!==f?(M=()=>u(f),e[24]=u,e[25]=f,e[26]=M):M=e[26];let O;e[27]!==o||e[28]!==x||e[29]!==D||e[30]!==a||e[31]!==i||e[32]!==C||e[33]!==v||e[34]!==M||e[35]!==I||e[36]!==E?(O=r.jsx(fe,{resourceURI:i,orgId:a,toolInfo:C,toolInput:I,toolResult:E,displayMode:"fullscreen",minHeight:G.fullscreen.minHeight,maxHeight:G.fullscreen.maxHeight,client:o,onMessage:x,onUpdateModelContext:v,onTeardown:M,onRequestDisplayMode:D,className:"h-full"}),e[27]=o,e[28]=x,e[29]=D,e[30]=a,e[31]=i,e[32]=C,e[33]=v,e[34]=M,e[35]=I,e[36]=E,e[37]=O):O=e[37];let A;e[38]!==S?(A=S&&r.jsx(Oe,{field:S,onClose:()=>h(null)}),e[38]=S,e[39]=A):A=e[39];let $;return e[40]!==O||e[41]!==A?($=r.jsxs(r.Fragment,{children:[O,A]}),e[40]=O,e[41]=A,e[42]=$):$=e[42],$}function Ni(N){const e=k.c(25),{connectionId:o,toolName:i,args:s}=N,{org:t}=K(),a=ae(),l=ve();let d;e[0]!==o||e[1]!==l||e[2]!==a?(d=le(o)&&l?`${a.previewUrl.replace(/\/+$/,"")}/api/mcp`:void 0,e[0]=o,e[1]=l,e[2]=a,e[3]=d):d=e[3];const n=d;let u;e[4]!==o||e[5]!==n||e[6]!==t.id||e[7]!==t.slug?(u={connectionId:o,orgId:t.id,orgSlug:t.slug,mcpUrl:n},e[4]=o,e[5]=n,e[6]=t.id,e[7]=t.slug,e[8]=u):u=e[8];const g=z(u);let j;e[9]!==g?(j={client:g},e[9]=g,e[10]=j):j=e[10];const{data:m}=me(j);let f,S,h;e[11]!==i||e[12]!==m.tools?(f=se(decodeURIComponent(i)),h=m.tools.find(I=>I.name===f)??m.tools.find(I=>{const _=q(I._meta);if(!_)return!1;if(F(I.name,_)===f)return!0;const c=F(f,_);return c!==f&&I.name===c}),S=h?._meta?de(h._meta):void 0,e[11]=i,e[12]=m.tools,e[13]=f,e[14]=S,e[15]=h):(f=e[13],S=e[14],h=e[15]);const b=S;if(!h||!b){let I;return e[16]!==f?(I=r.jsx("div",{className:"flex items-center justify-center h-full w-full",children:r.jsxs("p",{className:"text-sm text-muted-foreground",children:['Tool "',f,'" not found or has no UI']})}),e[16]=f,e[17]=I):I=e[17],I}let D;return e[18]!==s||e[19]!==g||e[20]!==o||e[21]!==t.id||e[22]!==b||e[23]!==h?(D=r.jsx(Re,{client:g,resourceURI:b,tool:h,connectionId:o,orgId:t.id,args:s}),e[18]=s,e[19]=g,e[20]=o,e[21]=t.id,e[22]=b,e[23]=h,e[24]=D):D=e[24],D}export{Ni as AppViewContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Z,b as ee,r as A,o as te,e as se,j as i,P as M,n as ie,K as le,t as Q,k as ne,B as Y}from"./index-
|
|
1
|
+
import{c as Z,b as ee,r as A,o as te,e as se,j as i,P as M,n as ie,K as le,t as Q,k as ne,B as Y}from"./index-DHLutK6v.js";import{E as oe}from"./empty-state-DNKOHljA.js";import{I as re}from"./input-zNG5Uz1T.js";import{L as $}from"./label-CEq9oqa2.js";import{T as ae}from"./textarea-XbuS70jj.js";import{a as G}from"./admin-fetch-CCSvjTk1.js";function he(){const e=Z.c(66),s=ee();let k;e[0]===Symbol.for("react.memo_cache_sentinel")?(k={},e[0]=k):k=e[0];const[r,D]=A.useState(k),[H,U]=A.useState(null),[m,J]=A.useState("");let C;e[1]===Symbol.for("react.memo_cache_sentinel")?(C={queryKey:le.deploymentAdminPrompts(),queryFn:de},e[1]=C):C=e[1];const{data:a,isLoading:V,isError:W,error:_,refetch:c}=te(C),w=a?.prompts??[],l=w.find(t=>t.id===H)??w[0],n=Object.keys(r).filter(t=>r[t]!==w.find(o=>o.id===t)?.content);let p;e[2]!==a?.baseSha||e[3]!==n||e[4]!==r||e[5]!==m?(p=()=>G("/api/_admin/prompts/pull-request",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({title:m.trim()||void 0,baseSha:a?.baseSha,edits:n.map(t=>({id:t,content:r[t]}))})}),e[2]=a?.baseSha,e[3]=n,e[4]=r,e[5]=m,e[6]=p):p=e[6];let f;e[7]!==c||e[8]!==s?(f=t=>{Q.success(s("admin.prompts.prOpened",{number:String(t.number)}),{action:{label:s("admin.prompts.viewPr"),onClick:()=>window.open(t.url,"_blank")}}),D({}),J(""),c()},e[7]=c,e[8]=s,e[9]=f):f=e[9];let u;e[10]!==s?(u=t=>{Q.error(t instanceof Error?t.message:s("admin.prompts.prFailed"))},e[10]=s,e[11]=u):u=e[11];let F;e[12]!==p||e[13]!==f||e[14]!==u?(F={mutationFn:p,onSuccess:f,onError:u},e[12]=p,e[13]=f,e[14]=u,e[15]=F):F=e[15];const d=se(F);if(V){let t;return e[16]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex h-full items-center justify-center",children:i.jsx(ne,{size:20,className:"animate-spin text-muted-foreground"})}),e[16]=t):t=e[16],t}if(W||!l){let t;e[17]!==s?(t=s("admin.prompts.failedToLoadTitle"),e[17]=s,e[18]=t):t=e[18];let o;e[19]!==_||e[20]!==s?(o=_ instanceof Error&&_.message?_.message:s("admin.prompts.failedToLoadDescription"),e[19]=_,e[20]=s,e[21]=o):o=e[21];let N;e[22]!==c?(N=()=>c(),e[22]=c,e[23]=N):N=e[23];let E;e[24]!==s?(E=s("admin.prompts.retry"),e[24]=s,e[25]=E):E=e[25];let T;e[26]!==N||e[27]!==E?(T=i.jsx(Y,{variant:"outline",size:"sm",onClick:N,children:E}),e[26]=N,e[27]=E,e[28]=T):T=e[28];let O;return e[29]!==T||e[30]!==t||e[31]!==o?(O=i.jsx(oe,{title:t,description:o,actions:T}),e[29]=T,e[30]=t,e[31]=o,e[32]=O):O=e[32],O}const X=r[l.id]??l.content??"",B=a?.repo??"",K=a?.branch??"",R=a?.org??"";let x;e[33]!==s||e[34]!==B||e[35]!==K||e[36]!==R?(x=s("admin.prompts.description",{repo:B,branch:K,org:R}),e[33]=s,e[34]=B,e[35]=K,e[36]=R,e[37]=x):x=e[37];let L;e[38]!==x?(L=i.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[38]=x,e[39]=L):L=e[39];let h;e[40]!==s?(h=s("admin.prompts.prTitleLabel"),e[40]=s,e[41]=h):h=e[41];let g;e[42]!==h?(g=i.jsx($,{htmlFor:"pr-title",children:h}),e[42]=h,e[43]=g):g=e[43];let I;e[44]===Symbol.for("react.memo_cache_sentinel")?(I=t=>J(t.target.value),e[44]=I):I=e[44];let b;e[45]!==s?(b=s("admin.prompts.prTitlePlaceholder"),e[45]=s,e[46]=b):b=e[46];let j;e[47]!==b||e[48]!==m?(j=i.jsx(re,{id:"pr-title",value:m,onChange:I,placeholder:b}),e[47]=b,e[48]=m,e[49]=j):j=e[49];let y;e[50]!==g||e[51]!==j?(y=i.jsxs("div",{className:"flex w-full flex-col gap-2 md:max-w-md",children:[g,j]}),e[50]=g,e[51]=j,e[52]=y):y=e[52];const z=n.length===0||d.isPending;let S;e[53]!==d?(S=()=>d.mutate(),e[53]=d,e[54]=S):S=e[54];let v;e[55]!==n.length||e[56]!==d.isPending||e[57]!==s?(v=d.isPending?s("admin.prompts.opening"):s("admin.prompts.openPr",{count:String(n.length)}),e[55]=n.length,e[56]=d.isPending,e[57]=s,e[58]=v):v=e[58];let P;e[59]!==z||e[60]!==S||e[61]!==v?(P=i.jsx(Y,{disabled:z,onClick:S,children:v}),e[59]=z,e[60]=S,e[61]=v,e[62]=P):P=e[62];let q;return e[63]!==y||e[64]!==P?(q=i.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[y,P]}),e[63]=y,e[64]=P,e[65]=q):q=e[65],i.jsx(M,{children:i.jsx(M.Content,{children:i.jsx(M.Body,{children:i.jsxs("div",{className:"flex flex-col gap-4",children:[L,i.jsx("div",{className:"flex flex-wrap gap-1",children:w.map(t=>i.jsxs("button",{type:"button",onClick:()=>U(t.id),className:ie("rounded-md px-3 py-1.5 text-sm font-medium transition-colors",t.id===l.id?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"),children:[t.label,n.includes(t.id)?" •":""]},t.id))}),i.jsxs("div",{className:"flex flex-col gap-2",children:[i.jsx($,{htmlFor:"prompt-source",children:l.path}),i.jsx(ae,{id:"prompt-source",className:"min-h-[420px] font-mono text-xs",spellCheck:!1,value:X,disabled:l.content===null,onChange:t=>D({...r,[l.id]:t.target.value})}),l.content===null?i.jsx("p",{className:"text-sm text-destructive",children:s("admin.prompts.markerMissing",{id:l.id})}):null]}),q]})})})})}function de(){return G("/api/_admin/prompts")}export{he as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as B,b as L,j as r}from"./index-DHLutK6v.js";import{I as A}from"./input-zNG5Uz1T.js";import{L as F}from"./label-CEq9oqa2.js";import{S as R,a as V,b as z,c as O,d as D}from"./select-W8jorDji.js";import{T as G}from"./textarea-XbuS70jj.js";import{G as J,V as M,K as X,X as $,a5 as q}from"./index-BWVLjCpL.js";import{s as P}from"./primitives-bdzFl9KQ.js";import{u as H}from"./use-autosave-BsqWx81g.js";import"./Check-C5RWnyNL.js";import"./ChevronDown-CeGZsBnS.js";import"./ChevronUp-DCx43qHY.js";import"./ArrowUp-DMDdMhAA.js";import"./chat-context-C-BdNZCf.js";import"./use-panel-navigate-C8-xot4V.js";import"./dialog-DYg0AoO0.js";import"./Copy01-DhfruII6.js";import"./Download01-C1FmC7JV.js";import"./use-destination-route-BMJNYrmL.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-DvV-YCly.js";import"./use-mcp-client-Bac4vccq.js";import"./auth-BqxUQw-v.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-DDszDk42.js";import"./task-board-D9PHUZff.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-X7MaI4-V.js";import"./use-ai-providers-WmO5B1wa.js";import"./use-decopilot-events-CEhAvB_E.js";import"./use-organization-settings-BsgcrCz-.js";import"./automation-runs-CzcGADVN.js";import"./agent-icon-C9_7Msf7.js";import"./AlertCircle-qZDg2e-H.js";import"./UserSquare-ClSByuB-.js";import"./Tool01-tn2PFBHQ.js";import"./ArrowLeft-CatEVOI7.js";import"./Tool02-BalBR7uK.js";import"./XCircle-BOrCVYLf.js";import"./TrendUp01-6TR_k_0Y.js";import"./ZapSquare-DkKtoQ7W.js";import"./Users03-BT3gPqQL.js";import"./CheckCircle-V0GvWvtd.js";import"./ChevronRight-Dh8_6pj1.js";import"./ChevronSelectorVertical-Im3Lz_4E.js";import"./DotsVertical-B39kxqbi.js";import"./Stars02-4GZ9SjIq.js";import"./CreditCard01-Cy0s6gAf.js";import"./Settings02-xEBQxvJD.js";import"./Eye-m8QZKf2Y.js";import"./FilterLines-BBF-m2ZJ.js";import"./Share07-CLkT7SlV.js";import"./Globe01-C2F_PPuX.js";import"./Globe04-CMCnFTSr.js";import"./SwitchHorizontal01-DwxljZOI.js";import"./HardDrive-DmqNZKD8.js";import"./Key01-DbCU9LZF.js";import"./LinkExternal01-kQnRXU4w.js";import"./LockUnlocked01-D5OpQeQe.js";import"./LogOut01-BePTyd5L.js";import"./Monitor01-DPqlemzQ.js";import"./Sun-D0KW7MLF.js";import"./Palette-DzT0S9Gl.js";import"./Play-Btu3v5FX.js";import"./Plus-B7vTVmKH.js";import"./SearchLg-CAAIuTYj.js";import"./SearchMd-COQJLRw-.js";import"./Shield01-C2USnj9G.js";import"./Stars01-DkoqcM4j.js";import"./Trash01-CwqV1gzD.js";import"./Upload01-mqAHBbZV.js";import"./User01-DWaPmCwS.js";import"./Users01-CFDNbxgJ.js";import"./XClose-DMSeuF30.js";import"./Zap-CwYGo5D6.js";import"./useInfiniteQuery-CP11XfQS.js";import"./use-infinite-scroll-DzHJHyr0.js";import"./use-connection-D8j2CnOC.js";import"./table-RKi74_kY.js";import"./empty-state-DNKOHljA.js";import"./use-members-_2HCzEHc.js";import"./use-org-auth-client-Cb5lYh1t.js";import"./use-automations-g--nS4Go.js";import"./useSuspenseInfiniteQuery-vPet_vok.js";import"./avatar-1XE5IjoT.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-lK-vhEre.js";import"./monaco-editor-BIUU4YtT.js";import"./spinner-DEaGcbnH.js";import"./types-CrdXjhQP.js";import"./shell-layout-BbKgiGKQ.js";import"./required-auth-layout-Bi3hMcfQ.js";import"./use-org-sso-cefqXe6X.js";import"./integration-icon-CVsQlE88.js";import"./use-navigate-to-agent-yAkGdje4.js";import"./chart-Bgue_7DQ.js";import"./index-pYJ2-T-r.js";import"./form-DUYaeuN1.js";import"./file-type-icon-Cr_jiDFe.js";import"./drawer-DrqU_8fl.js";import"./collection-search-DBnGb4Zg.js";import"./tabs-DFRRVuh7.js";import"./toggle-group-WZyFFujP.js";import"./super-agent-icon-DxowWKwv.js";import"./self-tool-result-DYCZ2dxI.js";import"./alert-dialog-BWONJIzw.js";import"./extract-connection-data-BI_gbc3h.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-D5wCJf5h.js";import"./authenticate-and-persist-oauth-DRVU48ic.js";import"./mcp-oauth-DGSZYZtZ.js";import"./track-BFh4WctH.js";import"./popover-CPDUuAsK.js";import"./toolbar-CmaLqa3-.js";import"./github-repo-picker-BjTlfZRh.js";import"./use-mcp-tools-FenH0JaE.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-CgUgSGsh.js";import"./use-registry-connections-BoC6e9Ko.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./connection-form-helpers-gU6TF210.js";import"./collection-tabs-CAUEdmSI.js";import"./badge-CXIV4O-0.js";import"./select-model-CVJuTB71.js";import"./checkbox-DvC3nAT5.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-DJSm_nho.js";import"./dropdown-menu-BGreHXNg.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-CdtGOM4G.js";import"./use-file-configs-CEny8PB8.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-DsCulVkO.js";import"./scroll-area-Dw0578rC.js";import"./search-input-lOvS7ZZY.js";import"./use-mcp-auth-status-dyqIaOq0.js";import"./switch-BsAR0Ue8.js";import"./use-secrets-CNOFekf-.js";import"./AreaChart-D1rWRcUm.js";import"./config-DG69PD1X.js";import"./breadcrumb-FUX_wv57.js";import"./command-Ct_4mokr.js";import"./index-RXRS2M8q.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CnmdA4eJ.js";import"./automation-list-row-BMiRTeOK.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-DbzFw6wJ.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 Gr(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{Gr as RecordEditor};
|