decocms 4.539.0 → 4.540.0
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/{ActiveShapeUtils-BDUmkFYS.js → ActiveShapeUtils-BOoUrrHB.js} +1 -1
- package/dist/client/assets/{AlertCircle-BNC3Ncf7.js → AlertCircle-DaqrzQLf.js} +1 -1
- package/dist/client/assets/{AreaChart-C4QOUn70.js → AreaChart-DrVON7jD.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DSfQsYgJ.js → ArrowLeft-Lry57YLT.js} +1 -1
- package/dist/client/assets/{ArrowUp-CSc_Tdqb.js → ArrowUp-DzUcbY_U.js} +1 -1
- package/dist/client/assets/{BarChart-Cb9KgXbt.js → BarChart-Dvj8oTIy.js} +1 -1
- package/dist/client/assets/{Building02-Cn2tQJnv.js → Building02-Czpjl0U5.js} +1 -1
- package/dist/client/assets/{CartesianChart-gkklXbpG.js → CartesianChart-CR7unfY_.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CC0BCPZV.js → CategoricalChart-DJYWdZLM.js} +1 -1
- package/dist/client/assets/{CheckCircle-CeehyyfU.js → CheckCircle-BNPESArO.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-D1XQchTX.js → ChevronSelectorVertical-DZn3JZt3.js} +1 -1
- package/dist/client/assets/{ChevronUp-Cvi5Ri1X.js → ChevronUp-DYWuPRic.js} +1 -1
- package/dist/client/assets/{Copy01-CH_2hZDS.js → Copy01-E_QbCxA-.js} +1 -1
- package/dist/client/assets/{CreditCard01-Cn3zS3gY.js → CreditCard01-i2HOt1aB.js} +1 -1
- package/dist/client/assets/{DotsVertical-DniMDeeL.js → DotsVertical-CbdEruUk.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CSeq7Tol.js → ErrorBarContext-XbGnhJFR.js} +1 -1
- package/dist/client/assets/{Globe04-BIRXqM09.js → Globe04-QDIAkI_1.js} +1 -1
- package/dist/client/assets/{Image01-DNMg6qgq.js → Image01-DoQzA6mU.js} +1 -1
- package/dist/client/assets/{Key01-CYO-VVE0.js → Key01-yX9At---.js} +1 -1
- package/dist/client/assets/{Link01-CF8fcW9w.js → Link01-DdjCKN6E.js} +1 -1
- package/dist/client/assets/{LinkBroken01-D8qYefsX.js → LinkBroken01-BFQs5QxW.js} +1 -1
- package/dist/client/assets/{Minus-DwtnPw8f.js → Minus-BvbXf1Sp.js} +1 -1
- package/dist/client/assets/{Monitor01-DnG7mfvQ.js → Monitor01-CGq_FB6g.js} +1 -1
- package/dist/client/assets/{Play-H8L3UHLo.js → Play-ChXZcgWf.js} +1 -1
- package/dist/client/assets/{Plus-DpKYZahY.js → Plus-AFrvUoUc.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BKlSv2sh.js → ReferenceLine-C4qdhryZ.js} +1 -1
- package/dist/client/assets/{SearchMd-DEGTr-sj.js → SearchMd-DSPN9QxV.js} +1 -1
- package/dist/client/assets/{Sector-D9d9OYkn.js → Sector-BmhXcpO4.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BeE3fDG1.js → ShoppingBag01-DB7ytToi.js} +1 -1
- package/dist/client/assets/{Sun-D6e346Yx.js → Sun-DoDvwdQj.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-D1SbwE-4.js → SwitchHorizontal01-DoMMYhWx.js} +1 -1
- package/dist/client/assets/{Tool01-DlRbIajK.js → Tool01-BdswuHJy.js} +1 -1
- package/dist/client/assets/{Trash01-BFvvA8Ru.js → Trash01-B0glQHgK.js} +1 -1
- package/dist/client/assets/{Upload01-Crxkqzoh.js → Upload01-BY0gIDxJ.js} +1 -1
- package/dist/client/assets/{UserSquare-BQlfSW-S.js → UserSquare-BhJx3glH.js} +1 -1
- package/dist/client/assets/{Users01-B0uoLuQA.js → Users01-CfcMu04c.js} +1 -1
- package/dist/client/assets/{XClose-Ci0TVCjl.js → XClose-wH9pi_Oq.js} +1 -1
- package/dist/client/assets/{ZoomOut-CITVxJZc.js → ZoomOut-DIZKZikC.js} +1 -1
- package/dist/client/assets/{access-gate-CVrkmPuj.js → access-gate-BHfZueQy.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DdXjtVjs.js → add-connection-dialog-CHVJhgT5.js} +1 -1
- package/dist/client/assets/agent-analytics-BXAn2N0r.js +2 -0
- package/dist/client/assets/agent-app-XDaH2UxV.js +1 -0
- package/dist/client/assets/agent-assets-BAIPSzOm.js +1 -0
- package/dist/client/assets/{agent-automation-b7cgl9fw.js → agent-automation-BGJ3-TK8.js} +2 -2
- package/dist/client/assets/agent-automations-DSp3SJST.js +1 -0
- package/dist/client/assets/agent-calendar-BxXog5Q5.js +1 -0
- package/dist/client/assets/agent-connect-sources-CZvvMsHK.js +1 -0
- package/dist/client/assets/agent-deck-BYR4XQci.js +1 -0
- package/dist/client/assets/agent-e2e-DRxuNo8-.js +1 -0
- package/dist/client/assets/agent-experiments-DRjAZYzR.js +1 -0
- package/dist/client/assets/agent-file-pPOOGtfl.js +1 -0
- package/dist/client/assets/agent-hosting-BX8P_5or.js +1 -0
- package/dist/client/assets/{agent-icon-re0J_Z0y.js → agent-icon-DO8s6ea2.js} +1 -1
- package/dist/client/assets/agent-library-Bc3kQ_R6.js +1 -0
- package/dist/client/assets/agent-library-file-DrHSAEDA.js +1 -0
- package/dist/client/assets/agent-monitor-BTQ_6U0v.js +1 -0
- package/dist/client/assets/agent-overview-CuUdmXFu.js +1 -0
- package/dist/client/assets/agent-releases-DM76bls9.js +2 -0
- package/dist/client/assets/agent-settings-D8raNlY9.js +1 -0
- package/dist/client/assets/{agent-site-editor-CkqQf5fs.js → agent-site-editor-DPCxxALX.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-C6cvE1TU.js +2 -0
- package/dist/client/assets/agent-site-editor-content-BkfY5JF6.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-BeN6Ies6.js +1 -0
- package/dist/client/assets/agent-view-C7IRhw_c.js +1 -0
- package/dist/client/assets/{agent-view-guard-kIKOX6BM.js → agent-view-guard-nkOg3_TY.js} +1 -1
- package/dist/client/assets/agents-list-C4mVj2oB.js +1 -0
- package/dist/client/assets/ai-providers-CVhG8V9K.js +1 -0
- package/dist/client/assets/{alert-Ba8eZibh.js → alert-Bbd8MBbC.js} +1 -1
- package/dist/client/assets/{analytics-sections-DXc_9zfI.js → analytics-sections-jwRj3TLN.js} +1 -1
- package/dist/client/assets/api-keys-Bdi2Hfk1.js +1 -0
- package/dist/client/assets/{api-keys-BNbHxtc9.js → api-keys-DoLrBZtK.js} +1 -1
- package/dist/client/assets/app-editor-DeYY_4hY.js +1 -0
- package/dist/client/assets/{asset-utils-DhsyUmt2.js → asset-utils-CxWNRiZo.js} +1 -1
- package/dist/client/assets/{auth-DOa4-SAf.js → auth-Bh5UNoqX.js} +1 -1
- package/dist/client/assets/{auth-catchall-C8C6N51O.js → auth-catchall-4NHJLfMJ.js} +1 -1
- package/dist/client/assets/{auth-entry-CJUxeCxG.js → auth-entry-DeWSrwTW.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C4-tVKN-.js → auth-split-layout-CxSdEcxZ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-pxVygBEO.js → authenticate-and-persist-oauth-BvbYgtDL.js} +1 -1
- package/dist/client/assets/{automation-list-row-BkyX1U-_.js → automation-list-row-B5PKQhfb.js} +1 -1
- package/dist/client/assets/{automation-runs-452u_rmZ.js → automation-runs-CJ5PzJ6P.js} +1 -1
- package/dist/client/assets/{automations-Beyt1l49.js → automations-DoU-6EfQ.js} +1 -1
- package/dist/client/assets/{autosend-DqPNCAG8.js → autosend-BE8sRUrR.js} +1 -1
- package/dist/client/assets/{badge-DvLvPjJh.js → badge-B1tWhSy_.js} +1 -1
- package/dist/client/assets/{block-document-CbryNSmS.js → block-document-O9OVzBXq.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DnDkKCvy.js → blocks-preview-workspace-context-v-05bFgy.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-YzekLxOz.js → blocks-tab-states-mp1yavun.js} +1 -1
- package/dist/client/assets/{blog-schema-xrUnclmp.js → blog-schema-BXpJta6q.js} +1 -1
- package/dist/client/assets/{buckets-BH9RpUz2.js → buckets-BQuUHxtl.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B9uyS2oH.js → build-improve-prompt-doc-CwbtrjfW.js} +1 -1
- package/dist/client/assets/{calendar-B9yUPo0f.js → calendar-5n1bBWkl.js} +1 -1
- package/dist/client/assets/{capability-load-error-BV4SLtbZ.js → capability-load-error-CygKHjaW.js} +1 -1
- package/dist/client/assets/category-editor-DvqQcGRC.js +1 -0
- package/dist/client/assets/{cdn-tab-C988vDGh.js → cdn-tab-B_cU16DV.js} +1 -1
- package/dist/client/assets/{chart-DT_frMFC.js → chart-C0_FGEkR.js} +1 -1
- package/dist/client/assets/{chat-context-CY54pZM0.js → chat-context-DJQNHpnm.js} +6 -6
- package/dist/client/assets/{chat-draft-CA_OHfW2.js → chat-draft-DQWviosv.js} +1 -1
- package/dist/client/assets/{checkbox-rRz405E3.js → checkbox-yhLjvc2y.js} +1 -1
- package/dist/client/assets/{choose-editor-BESrWSM3.js → choose-editor-5ZAnwYWB.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BGs6LEE6.js → cli-auth-success-BYQ3YAvN.js} +1 -1
- package/dist/client/assets/{client-icons-CwEc9FbM.js → client-icons-CaxEYfpC.js} +1 -1
- package/dist/client/assets/cms-settings-editor-BE9x_nrP.js +1 -0
- package/dist/client/assets/{collapsible-CCcQjW3W.js → collapsible-Dp7IveTF.js} +1 -1
- package/dist/client/assets/collection-detail-DavIgOzF.js +1 -0
- package/dist/client/assets/{collection-display-button-BHMhhllV.js → collection-display-button-EzgYxMRf.js} +1 -1
- package/dist/client/assets/{collection-search-D2Tz81E9.js → collection-search-DKNF_aHL.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D3RlCQrV.js → collection-table-wrapper-DIqf0s_I.js} +1 -1
- package/dist/client/assets/{collection-tabs-Bok9wStk.js → collection-tabs-CymIaett.js} +1 -1
- package/dist/client/assets/{column-rules-DZIwG_I6.js → column-rules-DGrrvn-G.js} +2 -2
- package/dist/client/assets/{combobox-BP_pyrFc.js → combobox-dysI95ld.js} +1 -1
- package/dist/client/assets/{command-BzGEMEWU.js → command-D_wtag_V.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DlcDMLTP.js → companion-mcps-section-BdCI0EqY.js} +1 -1
- package/dist/client/assets/{config-CAPCGzxo.js → config-CQQ9U3og.js} +1 -1
- package/dist/client/assets/{connect-Bw2OlWW5.js → connect-CyugcJi1.js} +3 -3
- package/dist/client/assets/{connect-layout-jtfqin0H.js → connect-layout-BmSP5LrN.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-DDyQ-C_T.js → connect-source-dialog-dDRy6oN_.js} +1 -1
- package/dist/client/assets/{connection-Scxq7jNT.js → connection-SI3MUziU.js} +1 -1
- package/dist/client/assets/{connection-card-3MM4lst1.js → connection-card-wiFNcVPz.js} +1 -1
- package/dist/client/assets/{connection-detail-BlBaRQrN.js → connection-detail-CyxsqxAY.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-B7-ufErn.js → connection-form-helpers-DEYmvQ4D.js} +1 -1
- package/dist/client/assets/{connections-poEou0Yo.js → connections-fiTD4f_p.js} +1 -1
- package/dist/client/assets/{content-tab-DN9GdN3G.js → content-tab-CIEK1ThE.js} +3 -3
- package/dist/client/assets/context-CPDgXD5A.js +1 -0
- package/dist/client/assets/{context-menu-BIBIcW5A.js → context-menu-CPo-TDeb.js} +1 -1
- package/dist/client/assets/{context-shell-CHWwZnIs.js → context-shell-CXn_oe8e.js} +3 -3
- package/dist/client/assets/{core.esm-DBjf08pl.js → core.esm-CeU7AJNb.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DpGPLPAf.js → create-organization-dialog-BJ-ipj89.js} +1 -1
- package/dist/client/assets/{daily-pulse-B2Ki-uF7.js → daily-pulse-DboJ8j0E.js} +1 -1
- package/dist/client/assets/discover-DS7s-L_U.js +1 -0
- package/dist/client/assets/{domain-settings-6v5t4Siq.js → domain-settings-DT7fh3GW.js} +1 -1
- package/dist/client/assets/{drawer-BnzahE0M.js → drawer-CEKMK2Xy.js} +1 -1
- package/dist/client/assets/{editor-Cxo0boMA.js → editor-119-kR49.js} +1 -1
- package/dist/client/assets/{editor-classes-C0STg0vW.js → editor-classes-2SvDzxJS.js} +1 -1
- package/dist/client/assets/{empty-state-C96iJc6R.js → empty-state-C_4QOOCa.js} +1 -1
- package/dist/client/assets/{empty-state-Dv2-C-QD.js → empty-state-DcLpc4zT.js} +1 -1
- package/dist/client/assets/{experiments-tab-1WD9vOOs.js → experiments-tab-bGN5Wr6b.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-CuHVTLn6.js → experiments-tab-choice-DkauT2Jo.js} +1 -1
- package/dist/client/assets/{extract-connection-data-dqMfPsQ2.js → extract-connection-data-BbZfot_J.js} +1 -1
- package/dist/client/assets/feature-gate-bdKRsBFR.js +1 -0
- package/dist/client/assets/feature-paywall-DAahPvB8.js +1 -0
- package/dist/client/assets/file-explorer-Dsn4i28O.js +2 -0
- package/dist/client/assets/{file-preview-Be1EgiV5.js → file-preview-COMqp33v.js} +1 -1
- package/dist/client/assets/{file-share-button-C0sebF8X.js → file-share-button-DcVhpMbp.js} +1 -1
- package/dist/client/assets/{file-type-icon-DVstbiT5.js → file-type-icon-lZJfDHey.js} +1 -1
- package/dist/client/assets/{folder-icon-DEZq7Xx_.js → folder-icon-CyiATNbj.js} +1 -1
- package/dist/client/assets/{form-B1NaG_RH.js → form-CqcvGBPS.js} +1 -1
- package/dist/client/assets/{general-EJHsRLqA.js → general-CXJLTfCs.js} +1 -1
- package/dist/client/assets/github-icon-CwEeHUg2.js +1 -0
- package/dist/client/assets/{held-block-view-RefgVZ-g.js → held-block-view-BxrII4AU.js} +3 -3
- package/dist/client/assets/home-B9PCBrp1.js +1 -0
- package/dist/client/assets/{hosted-publish-feedback-Bi_0k5W1.js → hosted-publish-feedback-IJbFHaab.js} +1 -1
- package/dist/client/assets/{icon-button-BVxTa5XQ.js → icon-button-DpHJ-JqO.js} +1 -1
- package/dist/client/assets/{index-BW4aKEOI.js → index-Bk0jj91j.js} +1 -1
- package/dist/client/assets/{index-C7hZxEcX.js → index-Bq8jsQ_w.js} +1 -1
- package/dist/client/assets/{index-VD1AeowC.js → index-Br9i6zHp.js} +1 -1
- package/dist/client/assets/index-By_-wb1N.css +1 -0
- package/dist/client/assets/{index-CjZiJzPb.js → index-C2zeCcsu.js} +2 -2
- package/dist/client/assets/{index-C-H6QYvr.js → index-C4tvJe6k.js} +1 -1
- package/dist/client/assets/{index-DOhrAFZP.js → index-CWrjSpv6.js} +1 -1
- package/dist/client/assets/{index-Bbz2iojb.js → index-CtkdQjRq.js} +1 -1
- package/dist/client/assets/{index-kEylUewg.js → index-D3KLhYWS.js} +1 -1
- package/dist/client/assets/{index-C-Gs52g8.js → index-DQN-rago.js} +1 -1
- package/dist/client/assets/{index-DWeEV7We.js → index-DQge_BLv.js} +39 -39
- package/dist/client/assets/{index--IjqY4i3.js → index-Dx7zyr0h.js} +1 -1
- package/dist/client/assets/index-TO8lHy3e.js +4 -0
- package/dist/client/assets/{index-CGdwvbtd.js → index-j-fjuwfK.js} +1 -1
- package/dist/client/assets/index-j4Z-ANHV.js +4 -0
- package/dist/client/assets/{index-redirect-BYGGv1vV.js → index-redirect-BuE1MOHc.js} +1 -1
- package/dist/client/assets/index-zIshg7PY.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-DUsg51OD.js → infiniteQueryObserver-CJSP-r-Q.js} +1 -1
- package/dist/client/assets/{infra-billing-CeTeSxwQ.js → infra-billing-CWnShztW.js} +1 -1
- package/dist/client/assets/{input-BuBZNGTJ.js → input-DEv-xbR8.js} +3 -3
- package/dist/client/assets/{input-HYlwfQuM.js → input-xMjBQS9S.js} +1 -1
- package/dist/client/assets/{integration-icon-B_WXNT4I.js → integration-icon-C5QUXJ-_.js} +1 -1
- package/dist/client/assets/{jira-icon-TfABIvMG.js → jira-icon-BJbq7OPn.js} +1 -1
- package/dist/client/assets/{label-BpaBIQwW.js → label-nAynIzRB.js} +1 -1
- package/dist/client/assets/{layout-DVejPSCJ.js → layout-DNjRf8xk.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DMSUEHW3.js → legacy-agents-deep-jMmzKh7Y.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-DToXdSXi.js → legacy-main-redirect-BunqrDCq.js} +1 -1
- package/dist/client/assets/library-BbBalmjj.js +1 -0
- package/dist/client/assets/{login-DFwXdqYS.js → login-D83UHWcO.js} +1 -1
- package/dist/client/assets/{markdown-CLfaxlib.js → markdown-SDFpVgvK.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Mid-kDeN.js → mcp-app-renderer-taIEo_0M.js} +1 -1
- package/dist/client/assets/{mcp-oauth-D3kIeoXi.js → mcp-oauth-CscDp9_t.js} +1 -1
- package/dist/client/assets/{mcp-oauth-tsfDvMhI.js → mcp-oauth-zNBrv-Zt.js} +1 -1
- package/dist/client/assets/{members-tMFcG10m.js → members-D0TZ8Ccr.js} +1 -1
- package/dist/client/assets/{memory-Dlgg8feS.js → memory-Ba-1Kju3.js} +1 -1
- package/dist/client/assets/{mini-report-page-Cxtng8-Y.js → mini-report-page-2l-Lz3u4.js} +1 -1
- package/dist/client/assets/{mock-board-nyNgfZOP.js → mock-board-1XU__Ik1.js} +4 -4
- package/dist/client/assets/{monaco-editor-D0Ff7KJE.js → monaco-editor-DhfBMl22.js} +1 -1
- package/dist/client/assets/monitoring-O6AqfPp3.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-BmQjBNjp.js → monitoring-stats-row-C9AbRSlG.js} +1 -1
- package/dist/client/assets/{multi-select-Bsu8o7vs.js → multi-select-D_bxEawf.js} +1 -1
- package/dist/client/assets/{mustache-C1gHfFYM.js → mustache-PKt0frjT.js} +1 -1
- package/dist/client/assets/{named-rule-uses-C-MKNC5A.js → named-rule-uses-Bo4fIeGa.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Bk4cWPiU.js → new-project-dialog-D-A0zxil.js} +1 -1
- package/dist/client/assets/{oauth-callback-9g7hhlh1.js → oauth-callback-DubxtStZ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C1NlXp6j.js → oauth-callback-ai-provider-BC8tw2Bc.js} +1 -1
- package/dist/client/assets/{onboarding-DfxPwtYb.js → onboarding-Ca-dU_v5.js} +1 -1
- package/dist/client/assets/openai-conversation-Cl6vICtm.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-BFvrk0r7.js → optimistic-project-sidebar-views-CFDUE-TH.js} +1 -1
- package/dist/client/assets/{order-monitor-day-_hyWMdhd.js → order-monitor-day-Bh13wI0p.js} +1 -1
- package/dist/client/assets/{organization-choice-CkHks73b.js → organization-choice-DPSWyAa2.js} +1 -1
- package/dist/client/assets/{orgs-BqnCxnvJ.js → orgs-ZkiwjsKf.js} +1 -1
- package/dist/client/assets/{page-seo-form-4A_5Qf7h.js → page-seo-form-DH-Hxxys.js} +1 -1
- package/dist/client/assets/{pair-3YmpdA2f.js → pair-DtO9iW-3.js} +1 -1
- package/dist/client/assets/{parse-sections-Dq3IUZQm.js → parse-sections-oAWkQEej.js} +1 -1
- package/dist/client/assets/plan-CqqG8SUj.js +1 -0
- package/dist/client/assets/plan-ladder-B3EmMB3m.js +1 -0
- package/dist/client/assets/plan-usage-card-BzLwo22w.js +6 -0
- package/dist/client/assets/{popover-B86mZmdW.js → popover-B6YbIo3T.js} +1 -1
- package/dist/client/assets/post-calendar-Dcvp_FEa.js +1 -0
- package/dist/client/assets/{post-editor-DlOfH1WF.js → post-editor-q2dn18ot.js} +2 -2
- package/dist/client/assets/{preview-content-DJCWiflb.js → preview-content-BM5uf6de.js} +1 -1
- package/dist/client/assets/{preview-dialog-DWLZfYka.js → preview-dialog-B1rrd0Eo.js} +1 -1
- package/dist/client/assets/{preview-panel-BA9lXblT.js → preview-panel-CWMMAoWj.js} +1 -1
- package/dist/client/assets/preview-tab-BRwd0IoI.js +551 -0
- package/dist/client/assets/{product-picker-dialog-wRTub32t.js → product-picker-dialog-Cb31reHz.js} +1 -1
- package/dist/client/assets/{profile-BVc4bfUi.js → profile-txXmLWoZ.js} +1 -1
- package/dist/client/assets/project-app-view-C24UQEFV.js +1 -0
- package/dist/client/assets/{project-apps-4C1tnuZE.js → project-apps-B12W1GDC.js} +1 -1
- package/dist/client/assets/project-feed-C7C18nCo.js +1 -0
- package/dist/client/assets/{project-icon-B5VDWXmE.js → project-icon-B0SToVzq.js} +1 -1
- package/dist/client/assets/project-reports-D8rFprGS.js +1 -0
- package/dist/client/assets/project-tasks-C6Z1LFGn.js +1 -0
- package/dist/client/assets/projects-SPBUjj_X.js +1 -0
- package/dist/client/assets/{projects-empty-state-vsReUsxx.js → projects-empty-state-CJ2OD6jD.js} +1 -1
- package/dist/client/assets/{prompts-BNsX6Qdy.js → prompts-4SFi9ARi.js} +1 -1
- package/dist/client/assets/record-editor-C3JQQloA.js +1 -0
- package/dist/client/assets/redirect-editor-CX3gDt5E.js +1 -0
- package/dist/client/assets/{releases-api-DRlYbUj_.js → releases-api-C1aD3cIf.js} +1 -1
- package/dist/client/assets/reports-B2tDJQsh.js +1 -0
- package/dist/client/assets/{reports-BvHIGn30.js → reports-CFlThgzK.js} +1 -1
- package/dist/client/assets/{reports-onboarding-DSdWrt0l.js → reports-onboarding-BLkz9Y0k.js} +1 -1
- package/dist/client/assets/reports-tab-CxnmtYqI.js +2 -0
- package/dist/client/assets/repositories-BOmD-XhQ.js +1 -0
- package/dist/client/assets/repositories-COfIEqOO.js +1 -0
- package/dist/client/assets/{repository-binding-CCilIqI-.js → repository-binding-BSdKE2Qo.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DaSOYRH5.js → repository-import-picker-DL_KXsuZ.js} +1 -1
- package/dist/client/assets/repository-picker-DR1imeoJ.js +1 -0
- package/dist/client/assets/{require-capability-ZNzJcBBI.js → require-capability-UZtVjAt7.js} +1 -1
- package/dist/client/assets/{required-auth-layout-CjomhEXK.js → required-auth-layout-BfYIPzIZ.js} +1 -1
- package/dist/client/assets/{reset-password-Bej90QXy.js → reset-password-Ct6Pe3k_.js} +1 -1
- package/dist/client/assets/{resizable-CzyrVCQ0.js → resizable-STcRbiPL.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C5DYJj36.js → resolve-tab-icon-BUDvDo3Q.js} +1 -1
- package/dist/client/assets/review-settings-BZAPURVM.js +1 -0
- package/dist/client/assets/{roles-D1Ff0aoZ.js → roles-BTI_G4my.js} +1 -1
- package/dist/client/assets/route-BYYP1Ckt.js +1 -0
- package/dist/client/assets/route-BxWnXxr1.js +1 -0
- package/dist/client/assets/route-DC0as__j.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DcAhoFBl.js → sandbox-lifecycle-context-DObzOH6l.js} +1 -1
- package/dist/client/assets/{schema-B1XL4aIc.js → schema-2IXYlLNg.js} +1 -1
- package/dist/client/assets/{schema-Donkz7O8.js → schema-CiJGpkKp.js} +1 -1
- package/dist/client/assets/{scroll-area-DGyJpc45.js → scroll-area-BCbl3S10.js} +1 -1
- package/dist/client/assets/{search-input-DB9f37BJ.js → search-input-BvepfDCp.js} +1 -1
- package/dist/client/assets/{search-toggle-B3uFeOsB.js → search-toggle-DNanFl3b.js} +1 -1
- package/dist/client/assets/{secret-picker-Dm26UvnM.js → secret-picker-BFw_Vm2O.js} +1 -1
- package/dist/client/assets/{secrets-BirhWzEh.js → secrets-DhC5ps_G.js} +1 -1
- package/dist/client/assets/{section-array-field-BsLSUsNS.js → section-array-field-C4Dn6tRH.js} +1 -1
- package/dist/client/assets/{sections-D_fgxjnp.js → sections-BoMQy-an.js} +1 -1
- package/dist/client/assets/sections-editor-HzO8sny6.js +1 -0
- package/dist/client/assets/{select-DQAyqt3X.js → select-CrEvL5z9.js} +1 -1
- package/dist/client/assets/{select-model-DdHXzdEf.js → select-model-CAsc6jpO.js} +1 -1
- package/dist/client/assets/seo-editor-CyB5kB-I.js +1 -0
- package/dist/client/assets/{separator-Dwknem2m.js → separator-Dt_7ryb4.js} +1 -1
- package/dist/client/assets/settings-tab-B7Vt0fWI.js +1 -0
- package/dist/client/assets/{sheet-BxBmImQt.js → sheet-Dwf0d2yk.js} +1 -1
- package/dist/client/assets/{shell-layout-CBd6hqhZ.js → shell-layout-CTdQsY_z.js} +1 -1
- package/dist/client/assets/{site-draft-actions-C1KJ-oYl.js → site-draft-actions-IMB26mGs.js} +1 -1
- package/dist/client/assets/{site-draft-view-C1iBek70.js → site-draft-view-f8qPUNeN.js} +2 -2
- package/dist/client/assets/site-editor-DrkKMtaV.js +1 -0
- package/dist/client/assets/{site-editor-toast-CF-bKHvR.js → site-editor-toast-C3--n_in.js} +1 -1
- package/dist/client/assets/{skills-CSYW9o6R.js → skills-BvtJnyjI.js} +1 -1
- package/dist/client/assets/{slider-CazrR_tm.js → slider-CNTpN8Re.js} +1 -1
- package/dist/client/assets/{sortable.esm-Prve7Uvb.js → sortable.esm-c1-MiY5V.js} +1 -1
- package/dist/client/assets/{sso-D1Q9IjHQ.js → sso-Bs5GeUJD.js} +1 -1
- package/dist/client/assets/{suggestion-DPLcS--k.js → suggestion-uJQK-wZ9.js} +2 -2
- package/dist/client/assets/{switch-IRCYJjZ1.js → switch-yYhcctGB.js} +1 -1
- package/dist/client/assets/{symbol-Be_a3wI8.js → symbol-C4rfRhzp.js} +1 -1
- package/dist/client/assets/synced-repos-CiMRfJrJ.js +1 -0
- package/dist/client/assets/{tab-icon-glyph-CgueYBhs.js → tab-icon-glyph-BI27Qjvn.js} +1 -1
- package/dist/client/assets/{table-CTgmLE5F.js → table-CiyeDv2d.js} +1 -1
- package/dist/client/assets/{tabs-DMHYY7LP.js → tabs-CkNdZlhM.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-HjmFD6tX.js → task-assignee-avatar-CMrJBads.js} +1 -1
- package/dist/client/assets/{task-board-TRGqshFr.js → task-board-DCXqqZ12.js} +1 -1
- package/dist/client/assets/{task-route-AKUsZtL1.js → task-route-Dd71UgL5.js} +1 -1
- package/dist/client/assets/{task-status-ENoKZvX3.js → task-status-CQ3ao3yh.js} +1 -1
- package/dist/client/assets/taskboard-analytics-CbI6X7pJ.js +1 -0
- package/dist/client/assets/tasks-C1NS2CIB.js +1 -0
- package/dist/client/assets/{tasks-VV29tI8m.js → tasks-mM2pq91X.js} +3 -3
- package/dist/client/assets/{textarea-WKkkWTp0.js → textarea-DgBaFzwD.js} +1 -1
- package/dist/client/assets/thread-analytics-B0aq1uDf.js +1 -0
- package/dist/client/assets/{thread-intent-CZKTHJpR.js → thread-intent-BXZYb_rR.js} +1 -1
- package/dist/client/assets/thread-route-8AzPmWR1.js +1 -0
- package/dist/client/assets/{thread-route-DIf2ZGZx.js → thread-route-BhHeUYXo.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-RTusZHU0.js → thread-sheet-body-C9NrvW34.js} +1 -1
- package/dist/client/assets/{time-range-picker-DuJBA8PM.js → time-range-picker-DqbJ77RY.js} +1 -1
- package/dist/client/assets/{toggle-group-CJuulzzH.js → toggle-group-zfRo99MM.js} +1 -1
- package/dist/client/assets/{tool-namespace-Oer3Ba2E.js → tool-namespace-CrCuqBA7.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-Df5B45y-.js → toolbar-icon-button-B0tBxUCb.js} +1 -1
- package/dist/client/assets/{tooltip-Bvq8EBUJ.js → tooltip--hQ071uj.js} +1 -1
- package/dist/client/assets/{tooltipContext-CNRJnKg_.js → tooltipContext-CzjEugcr.js} +1 -1
- package/dist/client/assets/{track-B3uJL1bu.js → track-DS8BOtu9.js} +1 -1
- package/dist/client/assets/{types-e4ubeaeZ.js → types-vHdCIVHy.js} +1 -1
- package/dist/client/assets/{url-slug-BQHTBNww.js → url-slug-oBnMGRk3.js} +1 -1
- package/dist/client/assets/{usage-stats-BU-m1tI0.js → usage-stats-Bfpi0erw.js} +1 -1
- package/dist/client/assets/{use-ai-providers-D4eYzGSU.js → use-ai-providers-C9yoEjqD.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-c5BXg7Ti.js → use-apply-named-rule-Bv8beIr1.js} +1 -1
- package/dist/client/assets/{use-automations-C2GetY8h.js → use-automations-3u659Mzy.js} +1 -1
- package/dist/client/assets/{use-autosave-SLyVvpdL.js → use-autosave-NqlgHsXe.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CguMNiu5.js → use-chat-layout-state-DtHD302s.js} +1 -1
- package/dist/client/assets/{use-clock-tick-B-VqHoGD.js → use-clock-tick-DsgVgaMj.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Bg6kiHNU.js → use-cms-publish-actions-DD2X-WS9.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BmmG-Bx3.js → use-connect-companion-5d_OtePL.js} +1 -1
- package/dist/client/assets/{use-connection-BkFIpsi3.js → use-connection-DjcoL2xp.js} +1 -1
- package/dist/client/assets/{use-copy-3yMS-Tp7.js → use-copy-BmESZuBQ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cv1gVZ0F.js → use-create-virtual-mcp-DUFp5SfV.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D81MphA_.js → use-date-fns-locale-1xKLCmLQ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-COS8yAsp.js → use-debounced-autosave-DtGVwjBB.js} +1 -1
- package/dist/client/assets/{use-debounced-value-TwO3j2Wf.js → use-debounced-value-BC9-VsXG.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CCrKLCBg.js → use-deco-credits-MxrjnOZJ.js} +1 -1
- package/dist/client/assets/use-decopilot-events-DQJQGAJY.js +1 -0
- package/dist/client/assets/{use-delete-connection-BXMXUYef.js → use-delete-connection-CH4NYX_K.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CR-rfRjc.js → use-deployment-admin-D9U88a6V.js} +1 -1
- package/dist/client/assets/use-entitlements-DfzzXZIV.js +1 -0
- package/dist/client/assets/{use-fast-preview-draft-url-B2EgAMWM.js → use-fast-preview-draft-url-C3Zsdb8u.js} +1 -1
- package/dist/client/assets/{use-file-configs-B1Wu7CoB.js → use-file-configs-BQsdB00T.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BsHLwaAX.js → use-inbox-feed-B8XaHBzd.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DH8-QEHI.js → use-infinite-scroll-CrNt3X1z.js} +1 -1
- package/dist/client/assets/{use-join-requests-MWtOJ_J6.js → use-join-requests-pOQBFZZg.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DpFmnuPe.js → use-main-panel-tabs-DI48iHOF.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-VaC7ikzW.js → use-mcp-auth-status-B6pAOnY6.js} +1 -1
- package/dist/client/assets/{use-mcp-client-B_ly4LOn.js → use-mcp-client-DVzTP9Z-.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BA7EjH33.js → use-mcp-prompts-B9D-ZvCI.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-vSUjcW9-.js → use-mcp-tools-D-mu7r_B.js} +1 -1
- package/dist/client/assets/{use-mobile-edOvKjBr.js → use-mobile-C_KOoyX9.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DP52MqZ-.js → use-move-blocks-mCIJarBI.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CqJEEwa9.js → use-navigate-to-agent-CakeCNXj.js} +1 -1
- package/dist/client/assets/{use-org-fs-DxMirFhu.js → use-org-fs-CGLMPARk.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-adnfiUqx.js → use-org-repo-syncs-CJLLkjNn.js} +1 -1
- package/dist/client/assets/{use-org-sso-BYdMcBEF.js → use-org-sso-AxQjuMiC.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Ed8BZb2p.js → use-organization-roles-CQzQZypU.js} +1 -1
- package/dist/client/assets/{use-organization-settings-W94bfajr.js → use-organization-settings-BgGp5lk4.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CJ83kP0Q.js → use-panel-navigate-DJWYue4p.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DxSaFkS1.js → use-project-native-view-presence-Dvt6yQe3.js} +1 -1
- package/dist/client/assets/{use-project-scope-CS7CU-oc.js → use-project-scope-DmeYK8Bq.js} +1 -1
- package/dist/client/assets/{use-recent-apps-C5dLOTl5.js → use-recent-apps-C-1xZr4-.js} +1 -1
- package/dist/client/assets/{use-releases-DpCeT3sG.js → use-releases-BrCAkIVY.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CKzn6mmm.js → use-reports-diagnostic-jm0YW2SP.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-C4-5jnCC.js → use-sandbox-events-1Xx-AI1q.js} +1 -1
- package/dist/client/assets/{use-secrets-CenfMz_I.js → use-secrets-CLn_8twS.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-84_TvqYu.js → use-section-preview-base-DA9S2k6x.js} +1 -1
- package/dist/client/assets/{use-session-runtime-IDYaEeQh.js → use-session-runtime-D49ajMP-.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-3UQA8uHW.js → use-sidebar-collapsed-DM0SNXB-.js} +1 -1
- package/dist/client/assets/{use-tags-DJGekCw_.js → use-tags-BEzZVqIn.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DoKvu94u.js → use-task-board-analytics-DlrBSCm4.js} +1 -1
- package/dist/client/assets/{use-task-board-events-DYXd2eOB.js → use-task-board-events-BtbvSjEH.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BBI0oIlO.js → use-task-board-item-prs-sxDYgHpw.js} +1 -1
- package/dist/client/assets/{use-task-metadata-74BypSA5.js → use-task-metadata-B2VBxxWt.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-C1sJu5ME.js → use-thread-analytics-CF6S8hFd.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DILH6Ebs.js → use-thread-outputs-CUfkYNKn.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-DW7gjDqh.js +1 -0
- package/dist/client/assets/{useQueries-BoBZpiF2.js → useQueries-Bzc1vZ08.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CKl2j5ZP.js +1 -0
- package/dist/client/assets/{users-DXXNZ9Sv.js → users-D47TLrj5.js} +1 -1
- package/dist/client/assets/{utils-CdL70Bws.js → utils-CeKg1A9t.js} +1 -1
- package/dist/client/assets/{variant-calendar-mPiRpLgW.js → variant-calendar-D8EXCNqj.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CKYKPlBl.js → variant-matcher-override-D08bT7BW.js} +1 -1
- package/dist/client/assets/{view-header-CcqspHvW.js → view-header-CiREHDQJ.js} +1 -1
- package/dist/client/assets/{virtual-mcp-8l_Iyd1v.js → virtual-mcp-DonQ6N9_.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-n9peNJG6.js → watch-sse-pool-CDjDlASu.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-analytics-CtCo1arG.js +0 -2
- package/dist/client/assets/agent-app-dXxXMOGx.js +0 -1
- package/dist/client/assets/agent-assets-CFi3owlp.js +0 -1
- package/dist/client/assets/agent-automations-D_KYHQey.js +0 -1
- package/dist/client/assets/agent-calendar--TWiL3YK.js +0 -1
- package/dist/client/assets/agent-connect-sources-CSJ0SzB5.js +0 -1
- package/dist/client/assets/agent-deck-DTEk4G8l.js +0 -1
- package/dist/client/assets/agent-e2e-WOQonZwq.js +0 -1
- package/dist/client/assets/agent-experiments-4LpWzwgP.js +0 -1
- package/dist/client/assets/agent-file-CyTKgW2J.js +0 -1
- package/dist/client/assets/agent-hosting-DjMajm0I.js +0 -1
- package/dist/client/assets/agent-library-BJQPoD5h.js +0 -1
- package/dist/client/assets/agent-library-file-CgFDONrs.js +0 -1
- package/dist/client/assets/agent-monitor-BOCl24ft.js +0 -1
- package/dist/client/assets/agent-overview-Cz2rsDTy.js +0 -1
- package/dist/client/assets/agent-releases-DFaBrWje.js +0 -2
- package/dist/client/assets/agent-settings-834uHuns.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C2ZmfiF6.js +0 -2
- package/dist/client/assets/agent-site-editor-content-Cem_LSs2.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DGAJoBZS.js +0 -1
- package/dist/client/assets/agent-view-CmuvsavZ.js +0 -1
- package/dist/client/assets/agents-list-CiRE_PNy.js +0 -1
- package/dist/client/assets/ai-providers-kgKCYsvQ.js +0 -6
- package/dist/client/assets/api-keys-DGW6-DKW.js +0 -1
- package/dist/client/assets/app-editor-DIVOBNbo.js +0 -1
- package/dist/client/assets/category-editor-C3SB1_fo.js +0 -1
- package/dist/client/assets/cms-settings-editor-BJVmKaza.js +0 -1
- package/dist/client/assets/collection-detail-CxSAobuA.js +0 -1
- package/dist/client/assets/context-DZj9KGti.js +0 -1
- package/dist/client/assets/discover-Cu3GCp7S.js +0 -1
- package/dist/client/assets/feature-gate-CtZDrVRo.js +0 -1
- package/dist/client/assets/feature-paywall-B0grxtjm.js +0 -1
- package/dist/client/assets/file-explorer-Dw60Fx9r.js +0 -2
- package/dist/client/assets/home-pPlGaUJp.js +0 -1
- package/dist/client/assets/index-BNPvVdXx.js +0 -4
- package/dist/client/assets/index-BWB-agB0.js +0 -4
- package/dist/client/assets/index-Ct4tGK2o.css +0 -1
- package/dist/client/assets/index-yWhzAmER.js +0 -1
- package/dist/client/assets/library-CRCUGyiv.js +0 -1
- package/dist/client/assets/monitoring-YkcFZl0J.js +0 -1
- package/dist/client/assets/openai-conversation-D-ks7m9j.js +0 -3
- package/dist/client/assets/plan-CVctrk1b.js +0 -1
- package/dist/client/assets/plan-ladder-DeJKloSP.js +0 -1
- package/dist/client/assets/post-calendar-Z6OYaoq0.js +0 -1
- package/dist/client/assets/preview-tab-CvZcK37I.js +0 -551
- package/dist/client/assets/project-app-view-UTYwVRe_.js +0 -1
- package/dist/client/assets/project-feed-YQyJeiFG.js +0 -1
- package/dist/client/assets/project-reports-BcprlgEh.js +0 -1
- package/dist/client/assets/project-tasks-kLxgS8EN.js +0 -1
- package/dist/client/assets/projects-Ko4cNfpr.js +0 -1
- package/dist/client/assets/record-editor-BTorZsZL.js +0 -1
- package/dist/client/assets/redirect-editor-D-uh3waw.js +0 -1
- package/dist/client/assets/reports-C9ICVKrL.js +0 -1
- package/dist/client/assets/reports-tab-LYLovzQm.js +0 -2
- package/dist/client/assets/repositories-DdhFw_WB.js +0 -1
- package/dist/client/assets/repositories-DqnlgZTo.js +0 -1
- package/dist/client/assets/repository-picker-zJbNOFiG.js +0 -1
- package/dist/client/assets/review-settings-DhbO_Nof.js +0 -1
- package/dist/client/assets/route-91kWOP5r.js +0 -1
- package/dist/client/assets/route-BLs3oZRn.js +0 -1
- package/dist/client/assets/route-C4AtYx-4.js +0 -1
- package/dist/client/assets/sections-editor-j8qTZVhR.js +0 -1
- package/dist/client/assets/seo-editor-D53zGMYw.js +0 -1
- package/dist/client/assets/settings-tab-BAmgurWw.js +0 -1
- package/dist/client/assets/site-editor-DDNTh5e0.js +0 -1
- package/dist/client/assets/synced-repos-DLdy267V.js +0 -1
- package/dist/client/assets/taskboard-analytics-B2upXJM1.js +0 -1
- package/dist/client/assets/tasks-CIMIXW7Z.js +0 -1
- package/dist/client/assets/thread-analytics-CArqDxET.js +0 -1
- package/dist/client/assets/thread-route-cByVtEjw.js +0 -1
- package/dist/client/assets/use-decopilot-events-C12NB9sw.js +0 -1
- package/dist/client/assets/useInfiniteQuery-hQnCuVJq.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-h_sOQ54p.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Y,l as le,j as t,ay as Vs,b as be,r as T,b7 as _s,I as Q,aq as Xs,D as Xt,v as Yt,w as js,x as Wt,aY as Ys,ai as Ss,h as ba,a5 as ha,y as fa,B as Z,t as de,s as ja,aS as va,aR as ya,aO as Na,aM as Ca,aN as ka,aQ as wa,aP as Ba,bm as Sa}from"./index-DWeEV7We.js";import{b as Ws,c as Js}from"./blocks-tab-states-YzekLxOz.js";import{s as Pa}from"./thread-intent-CZKTHJpR.js";import{M as Qs,a2 as Ea,Q as Ta,n as Da,a8 as Ps}from"./agent-icon-re0J_Z0y.js";import{s as vt,i as La}from"./UserSquare-BQlfSW-S.js";import{B as jt}from"./badge-DvLvPjJh.js";import{L as H}from"./label-BpaBIQwW.js";import{S as Aa}from"./switch-IRCYJjZ1.js";import{T as ht}from"./textarea-WKkkWTp0.js";import{a as vs,b as ys,P as Ns}from"./popover-B86mZmdW.js";import{R as Jt,A as Nt,N as Ra,O as Cs,Q as qs,x as Zs,S as Ga,T as Oa,U as Fa,V as $a,X as us,Y as ms,Z as ps,_ as $t,$ as Es,a0 as Kt,a1 as ea,a2 as Ut,c as te,a3 as Ts,a4 as Ds,a5 as Ia,a6 as Mt,a7 as bt,a8 as Vt,a9 as Ls,J as za,aa as Ha,ab as Ka,ac as Ua,ad as Ma,ae as As,af as Va,ag as _a,ah as Xa,ai as Ya,aj as Rs,ak as Wa,al as Ja,am as Qa,an as Gs,ao as qa,ap as Za}from"./content-tab-DN9GdN3G.js";import{u as ta}from"./use-ai-providers-D4eYzGSU.js";import{T as en,u as sa,G as aa}from"./held-block-view-RefgVZ-g.js";import{e as tn}from"./parse-sections-Dq3IUZQm.js";import{u as _t}from"./use-autosave-SLyVvpdL.js";import{u as sn}from"./use-debounced-value-TwO3j2Wf.js";import{h as an}from"./index-CGdwvbtd.js";import{t as na}from"./ChevronUp-Cvi5Ri1X.js";import{i as nn}from"./SwitchHorizontal01-D1SbwE-4.js";import{s as on}from"./Plus-DpKYZahY.js";import{s as oa}from"./Trash01-BFvvA8Ru.js";import{u as ln}from"./mustache-C1gHfFYM.js";import{C as rn}from"./calendar-B9yUPo0f.js";import{P as cn,r as la,C as dn}from"./product-picker-dialog-wRTub32t.js";import"./ArrowLeft-DSfQsYgJ.js";import"./command-BzGEMEWU.js";import"./index-DOhrAFZP.js";import"./SearchMd-DEGTr-sj.js";import"./slider-CazrR_tm.js";import"./index-C-H6QYvr.js";import"./index-BdQq_4o_.js";import"./tooltipContext-CNRJnKg_.js";import"./CategoricalChart-CC0BCPZV.js";import"./index--IjqY4i3.js";import"./ActiveShapeUtils-BDUmkFYS.js";import"./Sector-D9d9OYkn.js";import"./symbol-Be_a3wI8.js";import"./site-editor-toast-CF-bKHvR.js";import"./use-session-runtime-IDYaEeQh.js";import"./chat-context-CY54pZM0.js";import"./use-panel-navigate-CJ83kP0Q.js";import"./thread-route-DIf2ZGZx.js";import"./use-project-scope-CS7CU-oc.js";import"./repository-binding-CCilIqI-.js";import"./use-mcp-client-B_ly4LOn.js";import"./auth-DOa4-SAf.js";import"./autosend-DqPNCAG8.js";import"./use-decopilot-events-C12NB9sw.js";import"./watch-sse-pool-n9peNJG6.js";import"./task-board-TRGqshFr.js";import"./schema-Donkz7O8.js";import"./backoff-CrEUbyZT.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-W94bfajr.js";import"./experiments-tab-choice-CuHVTLn6.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-CdL70Bws.js";import"./ZoomOut-CITVxJZc.js";import"./Image01-DNMg6qgq.js";import"./use-sandbox-events-C4-5jnCC.js";import"./sandbox-git-api-DcqI6XE4.js";import"./AlertCircle-BNC3Ncf7.js";import"./empty-state-Dv2-C-QD.js";import"./delay-CnY5UFtP.js";import"./slugify-CEUa2lfQ.js";import"./Tool01-DlRbIajK.js";import"./ArrowUp-CSc_Tdqb.js";import"./LinkBroken01-D8qYefsX.js";import"./ShoppingBag01-BeE3fDG1.js";import"./Building02-Cn2tQJnv.js";import"./CheckCircle-CeehyyfU.js";import"./ChevronSelectorVertical-D1XQchTX.js";import"./Copy01-CH_2hZDS.js";import"./CreditCard01-Cn3zS3gY.js";import"./DotsVertical-DniMDeeL.js";import"./Globe04-BIRXqM09.js";import"./Key01-CYO-VVE0.js";import"./Link01-CF8fcW9w.js";import"./Minus-DwtnPw8f.js";import"./Monitor01-DnG7mfvQ.js";import"./Sun-D6e346Yx.js";import"./Play-H8L3UHLo.js";import"./Upload01-Crxkqzoh.js";import"./Users01-B0uoLuQA.js";import"./XClose-Ci0TVCjl.js";import"./view-header-CcqspHvW.js";import"./scroll-area-DGyJpc45.js";import"./tooltip-Bvq8EBUJ.js";import"./index-VD1AeowC.js";import"./use-cms-publish-actions-Bg6kiHNU.js";import"./hosted-publish-feedback-Bi_0k5W1.js";import"./collapsible-CCcQjW3W.js";import"./sandbox-lifecycle-context-DcAhoFBl.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./checkbox-rRz405E3.js";import"./select-DQAyqt3X.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-DP52MqZ-.js";import"./empty-state-C96iJc6R.js";import"./use-file-configs-B1Wu7CoB.js";import"./monaco-editor-D0Ff7KJE.js";import"./editor-Cxo0boMA.js";import"./core.esm-DBjf08pl.js";import"./sortable.esm-Prve7Uvb.js";import"./search-input-DB9f37BJ.js";import"./toggle-group-CJuulzzH.js";import"./active-indicator-CCMhAsc_.js";import"./collection-table-wrapper-D3RlCQrV.js";import"./table-CTgmLE5F.js";import"./repository-picker-zJbNOFiG.js";import"./useInfiniteQuery-hQnCuVJq.js";import"./infiniteQueryObserver-DUsg51OD.js";import"./collection-search-D2Tz81E9.js";import"./repository-import-picker-DaSOYRH5.js";import"./use-navigate-to-agent-CqJEEwa9.js";import"./pair-3YmpdA2f.js";import"./use-copy-3yMS-Tp7.js";import"./usage-stats-BU-m1tI0.js";import"./tool-namespace-Oer3Ba2E.js";import"./form-B1NaG_RH.js";import"./utils-CVEq3hMx.js";import"./markdown-CLfaxlib.js";import"./use-mobile-edOvKjBr.js";import"./use-clock-tick-B-VqHoGD.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-Mid-kDeN.js";import"./types-e4ubeaeZ.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-CBd6hqhZ.js";import"./use-deployment-admin-CR-rfRjc.js";import"./admin-fetch-BhTJlAsX.js";import"./integration-icon-B_WXNT4I.js";import"./project-icon-B5VDWXmE.js";import"./new-project-dialog-Bk4cWPiU.js";import"./required-auth-layout-CjomhEXK.js";import"./use-org-sso-BYdMcBEF.js";import"./sheet-BxBmImQt.js";import"./use-connection-BkFIpsi3.js";import"./use-mcp-prompts-BA7EjH33.js";import"./use-thread-outputs-DILH6Ebs.js";import"./file-type-icon-DVstbiT5.js";import"./section-array-field-BsLSUsNS.js";import"./alert-Ba8eZibh.js";import"./editor-classes-C0STg0vW.js";import"./combobox-BP_pyrFc.js";import"./tabs-DMHYY7LP.js";import"./asset-utils-DhsyUmt2.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./suggestion-DPLcS--k.js";import"./index-Bbz2iojb.js";import"./use-org-fs-DxMirFhu.js";import"./icon-button-BVxTa5XQ.js";function bs(u){const e=Y.c(2),{children:a}=u;let i;return e[0]!==a?(i=t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:a}),e[0]=a,e[1]=i):i=e[1],i}function hs(u){const e=Y.c(22),{open:a,onToggle:i,title:r,untitledLabel:c,removeLabel:l,onRemove:p,leading:d,children:x}=u;let m;e[0]!==a?(m=a?t.jsx(na,{size:14,className:"shrink-0"}):t.jsx(Vs,{size:14,className:"shrink-0 text-muted-foreground"}),e[0]=a,e[1]=m):m=e[1];const n=!r&&"text-muted-foreground";let s;e[2]!==n?(s=le("truncate",n),e[2]=n,e[3]=s):s=e[3];const j=r||c;let f;e[4]!==s||e[5]!==j?(f=t.jsx("span",{className:s,children:j}),e[4]=s,e[5]=j,e[6]=f):f=e[6];let C;e[7]!==d||e[8]!==i||e[9]!==a||e[10]!==m||e[11]!==f?(C=t.jsxs("button",{type:"button",onClick:i,"aria-expanded":a,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors hover:bg-accent",children:[m,d,f]}),e[7]=d,e[8]=i,e[9]=a,e[10]=m,e[11]=f,e[12]=C):C=e[12];let h;e[13]!==p||e[14]!==l?(h=t.jsx(Jt,{label:l,onClick:p}),e[13]=p,e[14]=l,e[15]=h):h=e[15];let k;e[16]!==C||e[17]!==h?(k=t.jsxs("div",{className:"flex items-center gap-1 pr-2",children:[C,h]}),e[16]=C,e[17]=h,e[18]=k):k=e[18];const w=a&&x;let P;return e[19]!==k||e[20]!==w?(P=t.jsxs("li",{className:"group/item bg-card",children:[k,w]}),e[19]=k,e[20]=w,e[21]=P):P=e[21],P}function ks(u){const e=Y.c(24),{terms:a,onChange:i,placeholder:r,removeLabel:c}=u,[l,p]=T.useState("");let d;e[0]!==i||e[1]!==a?(d=h=>{const k=h.split(",").map(mn).filter(w=>w&&!a.includes(w));k.length>0&&i([...a,...k]),p("")},e[0]=i,e[1]=a,e[2]=d):d=e[2];const x=d;let m;e[3]!==i||e[4]!==c||e[5]!==a?(m=a.length>0&&t.jsx("ul",{className:"flex flex-wrap gap-1.5",children:a.map((h,k)=>t.jsx("li",{children:t.jsxs(jt,{variant:"secondary",className:"gap-1 pr-1",children:[t.jsx("span",{className:"truncate",children:h}),t.jsx("button",{type:"button","aria-label":`${c}: ${h}`,onClick:()=>i(a.filter((w,P)=>P!==k)),className:"cursor-pointer rounded-sm p-0.5 hover:bg-foreground/10",children:t.jsx(_s,{size:11})})]})},`${h}-${k}`))}),e[3]=i,e[4]=c,e[5]=a,e[6]=m):m=e[6];let n;e[7]===Symbol.for("react.memo_cache_sentinel")?(n=h=>p(h.target.value),e[7]=n):n=e[7];let s;e[8]!==x||e[9]!==l?(s=()=>x(l),e[8]=x,e[9]=l,e[10]=s):s=e[10];let j;e[11]!==x||e[12]!==l||e[13]!==i||e[14]!==a?(j=h=>{if(h.key==="Enter"||h.key===","){h.preventDefault(),x(l);return}h.key==="Backspace"&&l===""&&a.length>0&&i(a.slice(0,-1))},e[11]=x,e[12]=l,e[13]=i,e[14]=a,e[15]=j):j=e[15];let f;e[16]!==l||e[17]!==r||e[18]!==s||e[19]!==j?(f=t.jsx(Q,{value:l,placeholder:r,onChange:n,onBlur:s,onKeyDown:j,className:"border-0 shadow-none focus-visible:ring-0"}),e[16]=l,e[17]=r,e[18]=s,e[19]=j,e[20]=f):f=e[20];let C;return e[21]!==m||e[22]!==f?(C=t.jsxs("div",{className:"space-y-2 rounded-lg border bg-card p-2",children:[m,f]}),e[21]=m,e[22]=f,e[23]=C):C=e[23],C}function mn(u){return u.trim()}function fs(u){const e=Y.c(40),{rules:a,onChange:i,revision:r,idPrefix:c,add:l,namePlaceholder:p,bodyPlaceholder:d,mentions:x,citationWarning:m}=u,n=be(),[s,j]=T.useState(null);let f;e[0]!==i||e[1]!==a?(f=(O,S)=>i(a.map((v,G)=>G===O?{...v,...S}:v)),e[0]=i,e[1]=a,e[2]=f):f=e[2];const C=f;let h;e[3]!==i||e[4]!==a?(h=O=>{i(a.filter((S,v)=>v!==O)),j(S=>S===null||S<O?S:null)},e[3]=i,e[4]=a,e[5]=h):h=e[5];const k=h;let w;if(e[6]!==d||e[7]!==m||e[8]!==c||e[9]!==x||e[10]!==p||e[11]!==s||e[12]!==k||e[13]!==C||e[14]!==r||e[15]!==a||e[16]!==n){let O;e[18]!==d||e[19]!==m||e[20]!==c||e[21]!==x||e[22]!==p||e[23]!==s||e[24]!==k||e[25]!==C||e[26]!==r||e[27]!==n?(O=(S,v)=>t.jsx(hs,{open:s===v,onToggle:()=>j(s===v?null:v),title:S.name,untitledLabel:n("sandbox.blogBrand.untitledRule"),removeLabel:n("sandbox.blogBrand.removeItem"),onRemove:()=>k(v),children:t.jsx(xn,{rule:S,editorKey:`${c}-${v}-${r}`,namePlaceholder:p,bodyPlaceholder:d,mentions:x,citationWarning:m,onPatch:G=>C(v,G)})},v),e[18]=d,e[19]=m,e[20]=c,e[21]=x,e[22]=p,e[23]=s,e[24]=k,e[25]=C,e[26]=r,e[27]=n,e[28]=O):O=e[28],w=a.map(O),e[6]=d,e[7]=m,e[8]=c,e[9]=x,e[10]=p,e[11]=s,e[12]=k,e[13]=C,e[14]=r,e[15]=a,e[16]=n,e[17]=w}else w=e[17];let P;e[29]!==w?(P=t.jsx(bs,{children:w}),e[29]=w,e[30]=P):P=e[30];let L;e[31]!==i||e[32]!==a?(L=()=>{i([...a,{name:"",value:""}]),j(a.length)},e[31]=i,e[32]=a,e[33]=L):L=e[33];let F;e[34]!==l||e[35]!==L?(F=t.jsx(Nt,{label:l,onClick:L}),e[34]=l,e[35]=L,e[36]=F):F=e[36];let $;return e[37]!==P||e[38]!==F?($=t.jsxs("div",{className:"space-y-2",children:[P,F]}),e[37]=P,e[38]=F,e[39]=$):$=e[39],$}const pn=600;function xn(u){const e=Y.c(23),{rule:a,editorKey:i,namePlaceholder:r,bodyPlaceholder:c,mentions:l,citationWarning:p,onPatch:d}=u,x=sn(a.value,pn);let m;e[0]!==p||e[1]!==x?(m=p?.(x),e[0]=p,e[1]=x,e[2]=m):m=e[2];const n=m;let s;e[3]!==d?(s=w=>d({name:w.target.value}),e[3]=d,e[4]=s):s=e[4];let j;e[5]!==r||e[6]!==a.name||e[7]!==s?(j=t.jsx(Q,{value:a.name,placeholder:r,onChange:s,className:"h-9 font-medium"}),e[5]=r,e[6]=a.name,e[7]=s,e[8]=j):j=e[8];let f;e[9]!==d?(f=w=>d({value:w}),e[9]=d,e[10]=f):f=e[10];let C;e[11]!==c||e[12]!==i||e[13]!==l||e[14]!==a.value||e[15]!==f?(C=t.jsx(an,{defaultValue:a.value,placeholder:c,attachments:!1,mentions:l,onChange:f},i),e[11]=c,e[12]=i,e[13]=l,e[14]=a.value,e[15]=f,e[16]=C):C=e[16];let h;e[17]!==n?(h=n&&t.jsx("p",{className:"text-xs text-warning",children:n}),e[17]=n,e[18]=h):h=e[18];let k;return e[19]!==j||e[20]!==C||e[21]!==h?(k=t.jsxs("div",{className:"space-y-3 border-t bg-background px-3 py-3",children:[j,C,h]}),e[19]=j,e[20]=C,e[21]=h,e[22]=k):k=e[22],k}const Os=[{id:"seed",label:"sandbox.campaignGen.stepSeed"},{id:"running",label:"sandbox.campaignGen.stepRunning"},{id:"pick",label:"sandbox.campaignGen.stepPick"}],gn={strong:"sandbox.campaignGen.verdictStrong",workable:"sandbox.campaignGen.verdictWorkable",weak:"sandbox.campaignGen.verdictWeak"},un={strong:"default",workable:"secondary",weak:"outline"},bn=["sandbox.campaignGen.phaseReading","sandbox.campaignGen.phaseWriting","sandbox.campaignGen.phaseReviewing"],hn={"no-site":"sandbox.campaignGen.gapNoSite","no-tools":"sandbox.campaignGen.gapNoTools","timeout-partial":"sandbox.campaignGen.gapTimeoutPartial","timeout-empty":"sandbox.campaignGen.gapTimeoutEmpty",failed:"sandbox.campaignGen.gapFailed","nothing-useful":"sandbox.campaignGen.gapNothingUseful","targets-dropped":"sandbox.campaignGen.gapTargetsDropped","products-dropped":"sandbox.campaignGen.gapProductsDropped"};function fn({open:u,onOpenChange:e,decofile:a,virtualMcpId:i,hasAi:r,onCreate:c}){const l=be(),{call:p}=Xs(),[d,x]=T.useState("seed"),[m,n]=T.useState(null),[s,j]=T.useState(""),[f,C]=T.useState([]),[h,k]=T.useState(""),[w,P]=T.useState(3),[L,F]=T.useState(0),[$,O]=T.useState(null),[S,v]=T.useState(new Set),[G,z]=T.useState(!1),X=Ra(a),se=Cs(a).map(o=>o.name).filter(Boolean),q=qs(Zs(a).merged),W=Os.findIndex(o=>o.id===d),V=h.trim().length>0&&r;function ae(){x("seed"),n(null),j(""),C([]),k(""),P(3),F(0),O(null),v(new Set),z(!1)}function ee(o){o||ae(),e(o)}function ne(o){n(o.key),j(o.name),C(o.keywords),k(o.prompt)}async function K(){x("running"),F(0);try{const o=await p("BLOG_SITE_GROUND",{virtualMcpId:i,purpose:"campaign",focus:h,language:q.language}).catch(E=>{console.warn("[campaignGen] grounding failed",E)}),N=o?await p("BLOG_SITE_CATALOGUE",{grounding:{report:o.report,outcome:o.outcome,evidence:o.evidence||void 0,evidenceUri:o.evidenceUri},storeUrl:q.storeUrl}).catch(E=>{console.warn("[campaignGen] reading the catalogue failed",E)}):void 0;F(1);const A=await p("BLOG_CAMPAIGN_SUGGEST",{seed:{keywords:f,prompt:h},brand:q,existingNames:se,count:w,virtualMcpId:i,grounding:o?{report:o.report,outcome:o.outcome}:void 0,catalogue:N?.read?{products:N.products,targets:N.targets}:void 0});F(2),O(A),v(new Set(A.campaigns.map((E,D)=>D))),x("pick")}catch(o){de.error(o instanceof Error?o.message:l("sandbox.campaignGen.failed")),x("seed")}}async function U(){if(!$)return;const o=$.campaigns.filter((N,A)=>S.has(A));if(o.length!==0){z(!0);try{const N=new Date;await c({key:m??Oa(),entry:{...Ga(N),name:s||h.slice(0,60),keywords:f,prompt:h}},o),ee(!1)}catch(N){de.error(N instanceof Error?N.message:l("sandbox.campaignGen.failed")),z(!1)}}}return t.jsx(Xt,{open:u,onOpenChange:ee,children:t.jsxs(Yt,{className:"flex max-h-[85vh] flex-col sm:max-w-2xl",children:[t.jsxs(js,{children:[t.jsx(Wt,{children:l("sandbox.campaignGen.title")}),t.jsx(Ys,{children:l("sandbox.campaignGen.subtitle")})]}),t.jsx("ol",{className:"flex shrink-0 items-center gap-1.5 text-xs",children:Os.map((o,N)=>t.jsx("li",{className:le("rounded-md px-2 py-1",N===W?"bg-primary text-primary-foreground":N<W?"text-foreground":"text-muted-foreground"),children:l(o.label)},o.id))}),t.jsxs("div",{className:"min-h-0 flex-1 space-y-4 overflow-y-auto py-1",children:[d==="seed"&&t.jsxs(t.Fragment,{children:[X.length>0&&t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(H,{children:l("sandbox.campaignGen.savedSeeds")}),t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:X.map(o=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>ne(o),className:le("flex w-full cursor-pointer flex-col gap-0.5 px-3 py-2 text-left text-sm transition-colors hover:bg-accent",m===o.key&&"bg-muted/60"),children:[t.jsx("span",{className:"truncate font-medium",children:o.name||l("sandbox.campaignGen.untitledSeed")}),t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:o.prompt})]})},o.key))})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(H,{htmlFor:"seed-name",children:l("sandbox.campaignGen.seedNameLabel")}),t.jsx(Q,{id:"seed-name",value:s,placeholder:l("sandbox.campaignGen.seedNamePlaceholder"),onChange:o=>j(o.target.value)})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(H,{htmlFor:"seed-prompt",children:l("sandbox.campaignGen.promptLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:l("sandbox.campaignGen.promptHint")}),t.jsx(ht,{id:"seed-prompt",value:h,rows:4,placeholder:l("sandbox.campaignGen.promptPlaceholder"),onChange:o=>k(o.target.value)})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(H,{children:l("sandbox.campaignGen.keywordsLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:l("sandbox.campaignGen.keywordsHint")}),t.jsx(ks,{terms:f,onChange:C,placeholder:l("sandbox.campaignGen.keywordsPlaceholder"),removeLabel:l("sandbox.campaignGen.removeKeyword")})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(H,{htmlFor:"seed-count",children:l("sandbox.campaignGen.countLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:l("sandbox.campaignGen.countHint")}),t.jsx(Q,{id:"seed-count",type:"number",min:1,max:3,value:w,onChange:o=>P(Math.min(3,Math.max(1,Number(o.target.value)||1))),className:"w-24"}),t.jsx("p",{className:"text-xs text-muted-foreground",children:l("sandbox.postBoard.usesCredits")})]})]}),d==="running"&&t.jsx("ul",{className:"space-y-3 py-6",children:bn.map((o,N)=>t.jsxs("li",{className:le("flex items-center gap-2 text-sm",N>L&&"text-muted-foreground"),children:[N<L?t.jsx(Ss,{size:14,className:"text-success"}):N===L?t.jsx(ba,{size:"xs"}):t.jsx("span",{className:"size-3.5"}),l(o)]},o))}),d==="pick"&&$&&t.jsxs(t.Fragment,{children:[$.gaps.length>0&&t.jsxs("div",{className:"flex gap-2 rounded-lg border border-warning/40 bg-warning/5 p-3",children:[t.jsx(ha,{size:14,className:"mt-0.5 shrink-0 text-warning"}),t.jsx("ul",{className:"space-y-1 text-xs text-muted-foreground",children:$.gaps.map(o=>t.jsx("li",{children:l(hn[o.code],{count:o.count??0})},o.code))})]}),$.campaigns.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:l("sandbox.campaignGen.noCandidates")}):t.jsx("ul",{className:"space-y-2",children:$.campaigns.map((o,N)=>t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>v(A=>{const E=new Set(A);return E.has(N)?E.delete(N):E.add(N),E}),className:le("w-full cursor-pointer space-y-2 rounded-lg border p-3 text-left transition-colors",S.has(N)?"border-primary bg-primary/5":"bg-card hover:bg-accent"),children:[t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("span",{className:le("mt-0.5 flex size-4 shrink-0 items-center justify-center rounded border",S.has(N)&&"border-primary bg-primary text-primary-foreground"),children:S.has(N)&&t.jsx(Ss,{size:11})}),t.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:o.name}),t.jsx(jt,{variant:un[o.review.verdict],children:l(gn[o.review.verdict])})]}),t.jsxs("p",{className:"text-xs text-muted-foreground",children:[l("sandbox.campaignGen.cardSummary",{targets:String(o.intent.targets.length),products:String(o.intent.products.length)}),o.period.start||o.period.end?` · ${o.period.start??"—"} / ${o.period.end??"—"}`:""]}),o.review.rationale&&t.jsx("p",{className:"text-xs text-muted-foreground",children:o.review.rationale}),o.review.risks.length>0&&t.jsx("ul",{className:"space-y-0.5 text-xs text-muted-foreground",children:o.review.risks.map(A=>t.jsxs("li",{children:["— ",A]},A))})]})},N))})]})]}),t.jsxs(fa,{className:"shrink-0 sm:justify-between",children:[t.jsx(Z,{type:"button",variant:"outline",disabled:d!=="pick",onClick:()=>x("seed"),children:l("sandbox.campaignGen.back")}),d==="pick"?t.jsx(Z,{type:"button",disabled:S.size===0||G,onClick:U,children:l("sandbox.campaignGen.create",{count:String(S.size)})}):t.jsxs(Z,{type:"button",disabled:!V||d==="running",onClick:K,children:[t.jsx(vt,{size:14}),l("sandbox.campaignGen.generate")]})]})]})})}const It={awareness:"sandbox.campaigns.objectiveAwareness",education:"sandbox.campaigns.objectiveEducation",conversion:"sandbox.campaigns.objectiveConversion",retention:"sandbox.campaigns.objectiveRetention",repositioning:"sandbox.campaigns.objectiveRepositioning"},zt={category:"sandbox.campaigns.targetCategory",collection:"sandbox.campaigns.targetCollection"},jn={launch:"sandbox.campaigns.triggerLaunchHelp",seasonal:"sandbox.campaigns.triggerSeasonalHelp",trend:"sandbox.campaigns.triggerTrendHelp",seo_gap:"sandbox.campaigns.triggerSeoGapHelp",inventory:"sandbox.campaigns.triggerInventoryHelp",partnership:"sandbox.campaigns.triggerPartnershipHelp",reputation:"sandbox.campaigns.triggerReputationHelp"},vn={awareness:"sandbox.campaigns.objectiveAwarenessHelp",education:"sandbox.campaigns.objectiveEducationHelp",conversion:"sandbox.campaigns.objectiveConversionHelp",retention:"sandbox.campaigns.objectiveRetentionHelp",repositioning:"sandbox.campaigns.objectiveRepositioningHelp"},yn={awareness:{content:"sandbox.campaigns.objectiveAwarenessContent",product:"sandbox.campaigns.objectiveAwarenessProduct",cta:"sandbox.campaigns.objectiveAwarenessCta",metric:"sandbox.campaigns.objectiveAwarenessMetric"},education:{content:"sandbox.campaigns.objectiveEducationContent",product:"sandbox.campaigns.objectiveEducationProduct",cta:"sandbox.campaigns.objectiveEducationCta",metric:"sandbox.campaigns.objectiveEducationMetric"},conversion:{content:"sandbox.campaigns.objectiveConversionContent",product:"sandbox.campaigns.objectiveConversionProduct",cta:"sandbox.campaigns.objectiveConversionCta",metric:"sandbox.campaigns.objectiveConversionMetric"},retention:{content:"sandbox.campaigns.objectiveRetentionContent",product:"sandbox.campaigns.objectiveRetentionProduct",cta:"sandbox.campaigns.objectiveRetentionCta",metric:"sandbox.campaigns.objectiveRetentionMetric"},repositioning:{content:"sandbox.campaigns.objectiveRepositioningContent",product:"sandbox.campaigns.objectiveRepositioningProduct",cta:"sandbox.campaigns.objectiveRepositioningCta",metric:"sandbox.campaigns.objectiveRepositioningMetric"}},Nn={education:"sandbox.campaigns.objectiveEducationNote",conversion:"sandbox.campaigns.objectiveConversionNote"},Cn={};function Fs(u){return new Date(u.getTime()-u.getTimezoneOffset()*6e4).toISOString().slice(0,10)}function $s(u){if(!u)return;const e=new Date(`${u}T00:00:00`);return Number.isNaN(e.getTime())?void 0:e}function kn(u,e){const[a]=Cs({[u]:e??{}}),{key:i,...r}=a??{key:u,name:"",seedKey:"",status:"draft",period:{start:null,end:null},trigger:{type:"seasonal",note:""},intent:{objective:"awareness",targets:[],products:[],keywords:[]},guardrails:{avoidComplements:[],toneOverrides:""},createdAt:"",updatedAt:""};return r}function Is(u){const e=Y.c(264),{blockKey:a,block:i,onSave:r,onRemove:c,onClose:l,isSaving:p,onSeed:d,onEdit:x,sandboxRef:m,storeUrl:n}=u,s=be(),[j,f]=T.useState(!1),[C,h]=T.useState(null),[k,w]=T.useState(null);let P;e[0]!==r?(P=(ue,Ee)=>r(ue,Ee),e[0]=r,e[1]=P):P=e[1];let L;e[2]!==p||e[3]!==x||e[4]!==d?(L={isSaving:p,onSeed:d,onEdit:x},e[2]=p,e[3]=x,e[4]=d,e[5]=L):L=e[5];const[F,$,O]=_t(i??Cn,P,L);let S,v,G,z,X,se,q,W,V,ae,ee,ne,K,U,o;if(e[6]!==a||e[7]!==F||e[8]!==l||e[9]!==r||e[10]!==k||e[11]!==C||e[12]!==m||e[13]!==$||e[14]!==n||e[15]!==O||e[16]!==s){v=kn(a,F);const ue=g=>Ut(a,{...v,...g,updatedAt:new Date().toISOString()});G=g=>$(ue(g));const Ee=g=>{const y=ue(g);O(y),r(y)},Ie=Fa(v.intent.targets);z=$a(v.intent.products);const qt=g=>Ee({intent:{...v.intent,targets:g}}),wt=g=>Ee({intent:{...v.intent,products:g}}),ws=(g,y)=>Ie.map((B,Pe)=>Pe===g?{...B,...y}:B),Bt=(g,y)=>G({intent:{...v.intent,targets:ws(g,y)}}),da=(g,y)=>qt(ws(g,y)),Bs=g=>{qt([...Ie,{kind:"category",id:"",name:"",url:"",description:"",...g}]),h(Ie.length)},ma=g=>{qt(Ie.filter((y,B)=>B!==g)),h(y=>y===null||y<g?y:null)};S=()=>{wt([...z,{id:"",name:"",url:"",images:[],category:"",description:""}]),w(z.length)};const pa=g=>{wt(z.filter((y,B)=>B!==g)),w(y=>y===null||y<g?y:null)},ze=(g,y)=>G({intent:{...v.intent,products:z.map((B,Pe)=>Pe===g?{...B,...y}:B)}});o=(g,y)=>{if(!y){wt(z.filter(B=>B.id!==g.id));return}z.some(B=>B.id===g.id)||wt([...z,{id:g.id,name:g.label,url:la(g.url,n),images:(g.images??[]).slice(0,ea),category:g.category??"",description:g.description??""}])},ne="min-w-0 max-w-3xl space-y-6 px-8 py-6";let He;e[32]!==s?(He=s("sandbox.campaigns.nameLabel"),e[32]=s,e[33]=He):He=e[33];let St;e[34]!==He?(St=t.jsx(H,{htmlFor:"campaign-name",children:He}),e[34]=He,e[35]=St):St=e[35];const xa=v.name;let Pt;e[36]!==s?(Pt=s("sandbox.campaigns.namePlaceholder"),e[36]=s,e[37]=Pt):Pt=e[37];const Zt=t.jsxs("div",{className:"min-w-0 flex-1 space-y-1.5",children:[St,t.jsx(Q,{id:"campaign-name",value:xa,placeholder:Pt,onChange:g=>G({name:g.target.value})})]});let Ke;e[38]!==l||e[39]!==s?(Ke=l&&t.jsx(Z,{type:"button",variant:"ghost",size:"icon",className:"mt-6 shrink-0","aria-label":s("sandbox.campaigns.close"),onClick:l,children:t.jsx(_s,{size:14})}),e[38]=l,e[39]=s,e[40]=Ke):Ke=e[40],e[41]!==Zt||e[42]!==Ke?(K=t.jsxs("div",{className:"flex items-start gap-3",children:[Zt,Ke]}),e[41]=Zt,e[42]=Ke,e[43]=K):K=e[43];let Ue;e[44]!==s?(Ue=s("sandbox.campaigns.statusLabel"),e[44]=s,e[45]=Ue):Ue=e[45];let Et;e[46]!==Ue?(Et=t.jsx(H,{children:Ue}),e[46]=Ue,e[47]=Et):Et=e[47];let Tt;e[48]!==s?(Tt=us.map(g=>s(yt[g])),e[48]=s,e[49]=Tt):Tt=e[49];const es=yt[v.status];let Dt;e[50]!==s||e[51]!==es?(Dt=s(es),e[50]=s,e[51]=es,e[52]=Dt):Dt=e[52];const ts=t.jsxs("div",{className:"space-y-1.5",children:[Et,t.jsx($t,{options:Tt,value:Dt,onChange:g=>{const y=us.find(B=>s(yt[B])===g);y&&Ee({status:y})}})]});let Me;e[53]!==s?(Me=s("sandbox.campaigns.periodLabel"),e[53]=s,e[54]=Me):Me=e[54];let Ve;e[55]!==Me?(Ve=t.jsx(H,{children:Me}),e[55]=Me,e[56]=Ve):Ve=e[56];const ss=t.jsx(Dn,{period:v.period,onChange:g=>G({period:g})});let _e;e[57]!==Ve||e[58]!==ss?(_e=t.jsxs("div",{className:"space-y-1.5",children:[Ve,ss]}),e[57]=Ve,e[58]=ss,e[59]=_e):_e=e[59],e[60]!==ts||e[61]!==_e?(U=t.jsxs("div",{className:"flex flex-wrap items-end gap-6",children:[ts,_e]}),e[60]=ts,e[61]=_e,e[62]=U):U=e[62];let Xe;e[63]!==s?(Xe=s("sandbox.campaigns.triggerLabel"),e[63]=s,e[64]=Xe):Xe=e[64];let Ye;e[65]!==Xe?(Ye=t.jsx(H,{children:Xe}),e[65]=Xe,e[66]=Ye):Ye=e[66];let We;e[67]!==s?(We=s("sandbox.campaigns.triggerHelpLabel"),e[67]=s,e[68]=We):We=e[68];let Je;e[69]!==s?(Je=ms.map(g=>({name:s(ft[g]),help:s(jn[g])})),e[69]=s,e[70]=Je):Je=e[70];let Qe;e[71]!==We||e[72]!==Je?(Qe=t.jsx(zs,{label:We,options:Je}),e[71]=We,e[72]=Je,e[73]=Qe):Qe=e[73];let qe;e[74]!==Ye||e[75]!==Qe?(qe=t.jsxs("div",{className:"flex items-center gap-1",children:[Ye,Qe]}),e[74]=Ye,e[75]=Qe,e[76]=qe):qe=e[76];let Ze;e[77]!==s?(Ze=s("sandbox.campaigns.triggerHint"),e[77]=s,e[78]=Ze):Ze=e[78];let et;e[79]!==Ze?(et=t.jsx("p",{className:"text-xs text-muted-foreground",children:Ze}),e[79]=Ze,e[80]=et):et=e[80];let Lt;e[81]!==s?(Lt=ms.map(g=>s(ft[g])),e[81]=s,e[82]=Lt):Lt=e[82];const as=ft[v.trigger.type];let At;e[83]!==s||e[84]!==as?(At=s(as),e[83]=s,e[84]=as,e[85]=At):At=e[85];const ns=t.jsx($t,{options:Lt,value:At,onChange:g=>{const y=ms.find(B=>s(ft[B])===g);y&&Ee({trigger:{...v.trigger,type:y}})}}),ga=v.trigger.note;let Rt;e[86]!==s?(Rt=s("sandbox.campaigns.triggerNotePlaceholder"),e[86]=s,e[87]=Rt):Rt=e[87];const os=t.jsx(ht,{value:ga,rows:3,placeholder:Rt,onChange:g=>G({trigger:{...v.trigger,note:g.target.value}})});e[88]!==qe||e[89]!==et||e[90]!==ns||e[91]!==os?(X=t.jsxs("section",{className:"space-y-2",children:[qe,et,ns,os]}),e[88]=qe,e[89]=et,e[90]=ns,e[91]=os,e[92]=X):X=e[92];let tt;e[93]!==s?(tt=s("sandbox.campaigns.objectiveLabel"),e[93]=s,e[94]=tt):tt=e[94];let st;e[95]!==tt?(st=t.jsx(H,{children:tt}),e[95]=tt,e[96]=st):st=e[96];let at;e[97]!==s?(at=s("sandbox.campaigns.objectiveHelpLabel"),e[97]=s,e[98]=at):at=e[98];let nt;e[99]!==s?(nt=ps.map(g=>{const y=yn[g],B=Nn[g];return{name:s(It[g]),help:s(vn[g]),facets:[{label:s("sandbox.campaigns.facetContent"),value:s(y.content)},{label:s("sandbox.campaigns.facetProduct"),value:s(y.product)},{label:s("sandbox.campaigns.facetCta"),value:s(y.cta)},{label:s("sandbox.campaigns.facetMetric"),value:s(y.metric)}],note:B?s(B):void 0}}),e[99]=s,e[100]=nt):nt=e[100];let ot;e[101]!==at||e[102]!==nt?(ot=t.jsx(zs,{label:at,options:nt}),e[101]=at,e[102]=nt,e[103]=ot):ot=e[103];let lt;e[104]!==st||e[105]!==ot?(lt=t.jsxs("div",{className:"flex items-center gap-1",children:[st,ot]}),e[104]=st,e[105]=ot,e[106]=lt):lt=e[106];let rt;e[107]!==s?(rt=s("sandbox.campaigns.objectiveHint"),e[107]=s,e[108]=rt):rt=e[108];let it;e[109]!==rt?(it=t.jsx("p",{className:"text-xs text-muted-foreground",children:rt}),e[109]=rt,e[110]=it):it=e[110];let Gt;e[111]!==s?(Gt=ps.map(g=>s(It[g])),e[111]=s,e[112]=Gt):Gt=e[112];const ls=It[v.intent.objective];let Ot;e[113]!==s||e[114]!==ls?(Ot=s(ls),e[113]=s,e[114]=ls,e[115]=Ot):Ot=e[115];const rs=t.jsx($t,{options:Gt,value:Ot,onChange:g=>{const y=ps.find(B=>s(It[B])===g);y&&Ee({intent:{...v.intent,objective:y}})}});e[116]!==lt||e[117]!==it||e[118]!==rs?(se=t.jsxs("section",{className:"space-y-2",children:[lt,it,rs]}),e[116]=lt,e[117]=it,e[118]=rs,e[119]=se):se=e[119];let ct;e[120]!==s?(ct=s("sandbox.campaigns.targetsLabel"),e[120]=s,e[121]=ct):ct=e[121];let dt;e[122]!==ct?(dt=t.jsx(H,{children:ct}),e[122]=ct,e[123]=dt):dt=e[123];let mt;e[124]!==s?(mt=s("sandbox.campaigns.targetsHint"),e[124]=s,e[125]=mt):mt=e[125];let pt;e[126]!==mt?(pt=t.jsx("p",{className:"text-xs text-muted-foreground",children:mt}),e[126]=mt,e[127]=pt):pt=e[127];const is=Ie.length>0&&t.jsx(bs,{children:Ie.map((g,y)=>t.jsx(hs,{open:C===y,onToggle:()=>h(C===y?null:y),title:g.name,untitledLabel:s("sandbox.campaigns.untitledTarget"),removeLabel:s("sandbox.campaigns.removeTarget"),onRemove:()=>ma(y),leading:t.jsx(jt,{variant:"secondary",className:"shrink-0",children:s(zt[g.kind])}),children:t.jsxs("div",{className:"space-y-2 border-t px-3 py-3",children:[t.jsx($t,{options:Es.map(B=>s(zt[B])),value:s(zt[g.kind]),onChange:B=>{const Pe=Es.find(ua=>s(zt[ua])===B);Pe&&da(y,Pe==="collection"?{kind:Pe,url:""}:{kind:Pe})}}),t.jsx(Q,{value:g.name,placeholder:s("sandbox.campaigns.targetNamePlaceholder"),onChange:B=>Bt(y,{name:B.target.value}),className:"h-9"}),g.kind!=="collection"&&t.jsx(Q,{value:g.url,placeholder:s("sandbox.campaigns.targetUrlPlaceholder"),onChange:B=>Bt(y,{url:B.target.value}),className:"h-9"}),t.jsx(Q,{value:g.id,placeholder:s(g.kind==="collection"?"sandbox.campaigns.targetCollectionIdPlaceholder":"sandbox.campaigns.targetIdPlaceholder"),onChange:B=>Bt(y,{id:B.target.value}),className:"h-9"}),t.jsx(ht,{value:g.description,rows:2,placeholder:s("sandbox.campaigns.targetDescriptionPlaceholder"),onChange:B=>Bt(y,{description:B.target.value})}),g.kind!=="collection"&&!g.url.trim()&&t.jsx("p",{className:"text-xs text-warning",children:s("sandbox.campaigns.targetUrlRequired")})]})},y))}),cs=m&&t.jsx(Pn,{sandboxRef:m,storeUrl:n,onPick:g=>Bs(g)});let Ft;e[128]!==s?(Ft=s("sandbox.campaigns.addTarget"),e[128]=s,e[129]=Ft):Ft=e[129];const ds=t.jsx(Nt,{label:Ft,onClick:()=>Bs({})});let xt;e[130]!==cs||e[131]!==ds?(xt=t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[cs,ds]}),e[130]=cs,e[131]=ds,e[132]=xt):xt=e[132],e[133]!==dt||e[134]!==pt||e[135]!==is||e[136]!==xt?(q=t.jsxs("section",{className:"space-y-2",children:[dt,pt,is,xt]}),e[133]=dt,e[134]=pt,e[135]=is,e[136]=xt,e[137]=q):q=e[137],W="space-y-2";let gt;e[138]!==s?(gt=s("sandbox.campaigns.productsLabel"),e[138]=s,e[139]=gt):gt=e[139],e[140]!==gt?(V=t.jsx(H,{children:gt}),e[140]=gt,e[141]=V):V=e[141];let ut;e[142]!==s?(ut=s("sandbox.campaigns.productsHint"),e[142]=s,e[143]=ut):ut=e[143],e[144]!==ut?(ae=t.jsx("p",{className:"text-xs text-muted-foreground",children:ut}),e[144]=ut,e[145]=ae):ae=e[145],ee=z.length>0&&t.jsx(bs,{children:z.map((g,y)=>t.jsx(hs,{open:k===y,onToggle:()=>w(k===y?null:y),title:g.name,untitledLabel:s("sandbox.campaigns.untitledProduct"),removeLabel:s("sandbox.campaigns.removeProduct"),onRemove:()=>pa(y),leading:g.images[0]?t.jsx("img",{src:g.images[0],alt:"",className:"size-6 shrink-0 rounded border object-cover"}):t.jsx("div",{className:"size-6 shrink-0 rounded border bg-muted"}),children:t.jsxs("div",{className:"space-y-2 border-t px-3 py-3",children:[t.jsx(Q,{value:g.name,placeholder:s("sandbox.campaigns.productNamePlaceholder"),onChange:B=>ze(y,{name:B.target.value}),className:"h-9"}),t.jsx(Q,{value:g.url,placeholder:s("sandbox.campaigns.productUrlPlaceholder"),onChange:B=>ze(y,{url:B.target.value}),className:"h-9"}),t.jsxs("div",{className:"flex gap-2",children:[t.jsx(Q,{value:g.id,placeholder:s("sandbox.campaigns.productIdPlaceholder"),onChange:B=>ze(y,{id:B.target.value}),className:"h-9"}),t.jsx(Q,{value:g.category,placeholder:s("sandbox.campaigns.productCategoryPlaceholder"),onChange:B=>ze(y,{category:B.target.value}),className:"h-9"})]}),t.jsx(ht,{value:g.description,rows:2,placeholder:s("sandbox.campaigns.productDescriptionPlaceholder"),onChange:B=>ze(y,{description:B.target.value})}),t.jsx(Sn,{images:g.images,idPrefix:`${a}-product-${y}`,sandbox:m,onChange:B=>ze(y,{images:B})})]})},`${g.id}-${y}`))}),e[6]=a,e[7]=F,e[8]=l,e[9]=r,e[10]=k,e[11]=C,e[12]=m,e[13]=$,e[14]=n,e[15]=O,e[16]=s,e[17]=S,e[18]=v,e[19]=G,e[20]=z,e[21]=X,e[22]=se,e[23]=q,e[24]=W,e[25]=V,e[26]=ae,e[27]=ee,e[28]=ne,e[29]=K,e[30]=U,e[31]=o}else S=e[17],v=e[18],G=e[19],z=e[20],X=e[21],se=e[22],q=e[23],W=e[24],V=e[25],ae=e[26],ee=e[27],ne=e[28],K=e[29],U=e[30],o=e[31];let N;e[146]!==m||e[147]!==s?(N=m&&t.jsxs(Z,{type:"button",variant:"outline",size:"sm",onClick:()=>f(!0),children:[t.jsx(Qs,{size:14}),s("sandbox.campaigns.pickProducts")]}),e[146]=m,e[147]=s,e[148]=N):N=e[148];let A;e[149]!==s?(A=s("sandbox.campaigns.addProduct"),e[149]=s,e[150]=A):A=e[150];let E;e[151]!==S?(E=()=>S(),e[151]=S,e[152]=E):E=e[152];let D;e[153]!==A||e[154]!==E?(D=t.jsx(Nt,{label:A,onClick:E}),e[153]=A,e[154]=E,e[155]=D):D=e[155];let ke;e[156]!==N||e[157]!==D?(ke=t.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N,D]}),e[156]=N,e[157]=D,e[158]=ke):ke=e[158];let me;e[159]!==j||e[160]!==z||e[161]!==m||e[162]!==o?(me=m&&t.jsx(cn,{open:j,onOpenChange:f,sandboxRef:m,selectedIds:z.map(Bn).filter(Boolean),onChange:wn,onPicked:o}),e[159]=j,e[160]=z,e[161]=m,e[162]=o,e[163]=me):me=e[163];let we;e[164]!==ke||e[165]!==me||e[166]!==W||e[167]!==V||e[168]!==ae||e[169]!==ee?(we=t.jsxs("section",{className:W,children:[V,ae,ee,ke,me]}),e[164]=ke,e[165]=me,e[166]=W,e[167]=V,e[168]=ae,e[169]=ee,e[170]=we):we=e[170];let pe;e[171]!==s?(pe=s("sandbox.campaigns.keywordsLabel"),e[171]=s,e[172]=pe):pe=e[172];let he;e[173]!==pe?(he=t.jsx(H,{children:pe}),e[173]=pe,e[174]=he):he=e[174];let fe;e[175]!==s?(fe=s("sandbox.campaigns.keywordsHint"),e[175]=s,e[176]=fe):fe=e[176];let J;e[177]!==fe?(J=t.jsx("p",{className:"text-xs text-muted-foreground",children:fe}),e[177]=fe,e[178]=J):J=e[178];const Qt=v.intent.keywords;let je;e[179]!==v.intent||e[180]!==G?(je=ue=>G({intent:{...v.intent,keywords:ue}}),e[179]=v.intent,e[180]=G,e[181]=je):je=e[181];let ve;e[182]!==s?(ve=s("sandbox.campaigns.keywordsPlaceholder"),e[182]=s,e[183]=ve):ve=e[183];let Be;e[184]!==s?(Be=s("sandbox.campaigns.removeKeyword"),e[184]=s,e[185]=Be):Be=e[185];let ye;e[186]!==v.intent.keywords||e[187]!==je||e[188]!==ve||e[189]!==Be?(ye=t.jsx(ks,{terms:Qt,onChange:je,placeholder:ve,removeLabel:Be}),e[186]=v.intent.keywords,e[187]=je,e[188]=ve,e[189]=Be,e[190]=ye):ye=e[190];let oe;e[191]!==he||e[192]!==J||e[193]!==ye?(oe=t.jsxs("section",{className:"space-y-2",children:[he,J,ye]}),e[191]=he,e[192]=J,e[193]=ye,e[194]=oe):oe=e[194];let Se;e[195]!==s?(Se=s("sandbox.campaigns.avoidLabel"),e[195]=s,e[196]=Se):Se=e[196];let b;e[197]!==Se?(b=t.jsx(H,{children:Se}),e[197]=Se,e[198]=b):b=e[198];let R;e[199]!==s?(R=s("sandbox.campaigns.avoidHint"),e[199]=s,e[200]=R):R=e[200];let _;e[201]!==R?(_=t.jsx("p",{className:"text-xs text-muted-foreground",children:R}),e[201]=R,e[202]=_):_=e[202];let M;e[203]!==v.guardrails.avoidComplements?(M=Kt(v.guardrails.avoidComplements),e[203]=v.guardrails.avoidComplements,e[204]=M):M=e[204];let I;e[205]!==v.guardrails||e[206]!==G?(I=ue=>G({guardrails:{...v.guardrails,avoidComplements:ue}}),e[205]=v.guardrails,e[206]=G,e[207]=I):I=e[207];const xe=`campaign-avoid-${a}`;let ie;e[208]!==s?(ie=s("sandbox.campaigns.addAvoid"),e[208]=s,e[209]=ie):ie=e[209];let ce;e[210]!==s?(ce=s("sandbox.campaigns.avoidNamePlaceholder"),e[210]=s,e[211]=ce):ce=e[211];let Ne;e[212]!==s?(Ne=s("sandbox.campaigns.avoidBodyPlaceholder"),e[212]=s,e[213]=Ne):Ne=e[213];let Ce;e[214]!==M||e[215]!==I||e[216]!==xe||e[217]!==ie||e[218]!==ce||e[219]!==Ne?(Ce=t.jsx(fs,{rules:M,onChange:I,revision:0,idPrefix:xe,add:ie,namePlaceholder:ce,bodyPlaceholder:Ne}),e[214]=M,e[215]=I,e[216]=xe,e[217]=ie,e[218]=ce,e[219]=Ne,e[220]=Ce):Ce=e[220];let ge;e[221]!==b||e[222]!==_||e[223]!==Ce?(ge=t.jsxs("section",{className:"space-y-2",children:[b,_,Ce]}),e[221]=b,e[222]=_,e[223]=Ce,e[224]=ge):ge=e[224];let re;e[225]!==s?(re=s("sandbox.campaigns.toneLabel"),e[225]=s,e[226]=re):re=e[226];let Te;e[227]!==re?(Te=t.jsx(H,{htmlFor:"campaign-tone",children:re}),e[227]=re,e[228]=Te):Te=e[228];let De;e[229]!==s?(De=s("sandbox.campaigns.toneHint"),e[229]=s,e[230]=De):De=e[230];let Le;e[231]!==De?(Le=t.jsx("p",{className:"text-xs text-muted-foreground",children:De}),e[231]=De,e[232]=Le):Le=e[232];const ca=v.guardrails.toneOverrides;let Ae;e[233]!==s?(Ae=s("sandbox.campaigns.tonePlaceholder"),e[233]=s,e[234]=Ae):Ae=e[234];let Re;e[235]!==v.guardrails||e[236]!==G?(Re=ue=>G({guardrails:{...v.guardrails,toneOverrides:ue.target.value}}),e[235]=v.guardrails,e[236]=G,e[237]=Re):Re=e[237];let Ge;e[238]!==v.guardrails.toneOverrides||e[239]!==Ae||e[240]!==Re?(Ge=t.jsx(ht,{id:"campaign-tone",value:ca,rows:3,placeholder:Ae,onChange:Re}),e[238]=v.guardrails.toneOverrides,e[239]=Ae,e[240]=Re,e[241]=Ge):Ge=e[241];let Oe;e[242]!==Te||e[243]!==Le||e[244]!==Ge?(Oe=t.jsxs("section",{className:"space-y-2",children:[Te,Le,Ge]}),e[242]=Te,e[243]=Le,e[244]=Ge,e[245]=Oe):Oe=e[245];let Ct;e[246]===Symbol.for("react.memo_cache_sentinel")?(Ct=t.jsx(oa,{size:14}),e[246]=Ct):Ct=e[246];let Fe;e[247]!==s?(Fe=s("sandbox.campaigns.remove"),e[247]=s,e[248]=Fe):Fe=e[248];let $e;e[249]!==c||e[250]!==Fe?($e=t.jsx("div",{className:"border-t pt-4",children:t.jsxs(Z,{type:"button",variant:"ghost",size:"sm",className:"text-destructive hover:text-destructive",onClick:c,children:[Ct,Fe]})}),e[249]=c,e[250]=Fe,e[251]=$e):$e=e[251];let kt;return e[252]!==X||e[253]!==se||e[254]!==q||e[255]!==we||e[256]!==oe||e[257]!==ge||e[258]!==Oe||e[259]!==$e||e[260]!==ne||e[261]!==K||e[262]!==U?(kt=t.jsxs("div",{className:ne,children:[K,U,X,se,q,we,oe,ge,Oe,$e]}),e[252]=X,e[253]=se,e[254]=q,e[255]=we,e[256]=oe,e[257]=ge,e[258]=Oe,e[259]=$e,e[260]=ne,e[261]=K,e[262]=U,e[263]=kt):kt=e[263],kt}function wn(){}function Bn(u){return u.id}function Sn(u){const e=Y.c(13),{images:a,idPrefix:i,sandbox:r,onChange:c}=u,l=be();let p;e[0]!==i||e[1]!==a||e[2]!==c||e[3]!==r||e[4]!==l?(p=a.map((m,n)=>t.jsxs("div",{className:"flex items-start gap-2",children:[t.jsx("div",{className:"min-w-0 flex-1",children:t.jsx(en,{schema:{type:"string",format:"image-uri",title:l("sandbox.campaigns.productImageLabel")},value:m,onChange:s=>c(a.map((j,f)=>f===n?String(s??""):j)),path:`${i}-image-${n}`,label:"",sandbox:r,compact:!0})}),t.jsx(Jt,{label:l("sandbox.campaigns.removeImage"),onClick:()=>c(a.filter((s,j)=>j!==n))})]},n)),e[0]=i,e[1]=a,e[2]=c,e[3]=r,e[4]=l,e[5]=p):p=e[5];let d;e[6]!==a||e[7]!==c||e[8]!==l?(d=a.length<ea&&t.jsx(Nt,{label:l("sandbox.campaigns.addImage"),onClick:()=>c([...a,""])}),e[6]=a,e[7]=c,e[8]=l,e[9]=d):d=e[9];let x;return e[10]!==p||e[11]!==d?(x=t.jsxs("div",{className:"space-y-2",children:[p,d]}),e[10]=p,e[11]=d,e[12]=x):x=e[12],x}function Pn(u){const e=Y.c(16),{sandboxRef:a,storeUrl:i,onPick:r}=u,c=be(),[l,p]=T.useState(!1);let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx(Qs,{size:14}),e[0]=d):d=e[0];let x;e[1]!==c?(x=c("sandbox.campaigns.pickCategory"),e[1]=c,e[2]=x):x=e[2];let m;e[3]!==x?(m=t.jsx(vs,{asChild:!0,children:t.jsxs(Z,{type:"button",variant:"outline",size:"default",children:[d,x]})}),e[3]=x,e[4]=m):m=e[4];let n;e[5]!==r||e[6]!==i?(n=f=>{r({id:f.path,name:f.label,url:la(f.url,i)}),p(!1)},e[5]=r,e[6]=i,e[7]=n):n=e[7];let s;e[8]!==l||e[9]!==a||e[10]!==n?(s=t.jsx(ys,{align:"end",className:"w-80",children:t.jsx(dn,{sandboxRef:a,enabled:l,className:"h-56",onSelect:n})}),e[8]=l,e[9]=a,e[10]=n,e[11]=s):s=e[11];let j;return e[12]!==l||e[13]!==m||e[14]!==s?(j=t.jsxs(Ns,{open:l,onOpenChange:p,children:[m,s]}),e[12]=l,e[13]=m,e[14]=s,e[15]=j):j=e[15],j}function zs(u){const e=Y.c(15),{label:a,options:i}=u;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(Ta,{size:14}),e[0]=r):r=e[0];let c;e[1]!==a?(c=t.jsx(ja,{asChild:!0,children:t.jsx(Z,{type:"button",variant:"ghost",size:"icon",className:"size-5 text-muted-foreground","aria-label":a,children:r})}),e[1]=a,e[2]=c):c=e[2];let l;e[3]!==a?(l=t.jsx(js,{children:t.jsx(Wt,{children:a})}),e[3]=a,e[4]=l):l=e[4];let p;e[5]!==i?(p=i.map(En),e[5]=i,e[6]=p):p=e[6];let d;e[7]!==p?(d=t.jsx("dl",{className:"max-h-[70svh] space-y-5 overflow-y-auto pr-1",children:p}),e[7]=p,e[8]=d):d=e[8];let x;e[9]!==l||e[10]!==d?(x=t.jsxs(Yt,{className:"sm:max-w-lg",children:[l,d]}),e[9]=l,e[10]=d,e[11]=x):x=e[11];let m;return e[12]!==c||e[13]!==x?(m=t.jsxs(Xt,{children:[c,x]}),e[12]=c,e[13]=x,e[14]=m):m=e[14],m}function En(u){return t.jsxs("div",{className:"space-y-1.5",children:[t.jsx("dt",{className:"text-sm font-medium",children:u.name}),t.jsxs("dd",{className:"space-y-1.5 text-sm text-muted-foreground",children:[t.jsx("p",{children:u.help}),u.facets&&t.jsx("ul",{className:"space-y-0.5",children:u.facets.map(Tn)}),u.note&&t.jsx("p",{className:"italic",children:u.note})]})]},u.name)}function Tn(u){return t.jsxs("li",{children:[t.jsxs("span",{className:"text-foreground",children:[u.label,":"]})," ",u.value]},u.label)}function Dn(u){const e=Y.c(30),{period:a,onChange:i}=u,r=be();let c;e[0]!==a.start?(c=$s(a.start),e[0]=a.start,e[1]=c):c=e[1];const l=c;let p;e[2]!==a.end?(p=$s(a.end),e[2]=a.end,e[3]=p):p=e[3];const d=p;let x;e[4]!==a.end||e[5]!==a.start||e[6]!==r?(x=a.start||a.end?`${a.start??"—"} / ${a.end??"—"}`:r("sandbox.campaigns.periodEmpty"),e[4]=a.end,e[5]=a.start,e[6]=r,e[7]=x):x=e[7];const m=x;let n;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Ea,{size:14}),e[8]=n):n=e[8];let s;e[9]!==m?(s=t.jsx(vs,{asChild:!0,children:t.jsxs(Z,{type:"button",variant:"outline",size:"sm",className:"h-9",children:[n,t.jsx("span",{className:"tabular-nums",children:m})]})}),e[9]=m,e[10]=s):s=e[10];let j;e[11]!==l||e[12]!==d?(j=l||d?{from:l,to:d}:void 0,e[11]=l,e[12]=d,e[13]=j):j=e[13];let f;e[14]!==i?(f=P=>i({start:P?.from?Fs(P.from):null,end:P?.to?Fs(P.to):null}),e[14]=i,e[15]=f):f=e[15];let C;e[16]!==j||e[17]!==f?(C=t.jsx(ys,{align:"start",className:"w-auto p-0",children:t.jsx(rn,{mode:"range",selected:j,onSelect:f})}),e[16]=j,e[17]=f,e[18]=C):C=e[18];let h;e[19]!==s||e[20]!==C?(h=t.jsxs(Ns,{children:[s,C]}),e[19]=s,e[20]=C,e[21]=h):h=e[21];let k;e[22]!==i||e[23]!==a.end||e[24]!==a.start||e[25]!==r?(k=(a.start||a.end)&&t.jsx(Jt,{label:r("sandbox.campaigns.periodClear"),onClick:()=>i({start:null,end:null})}),e[22]=i,e[23]=a.end,e[24]=a.start,e[25]=r,e[26]=k):k=e[26];let w;return e[27]!==k||e[28]!==h?(w=t.jsxs("div",{className:"flex items-center gap-1",children:[h,k]}),e[27]=k,e[28]=h,e[29]=w):w=e[29],w}const ra="application/x-campaign-key",yt={draft:"sandbox.campaigns.statusDraft",active:"sandbox.campaigns.statusActive",paused:"sandbox.campaigns.statusPaused",finished:"sandbox.campaigns.statusFinished"},Ln={draft:"outline",active:"success",paused:"warning",finished:"secondary"},ft={launch:"sandbox.campaigns.triggerLaunch",seasonal:"sandbox.campaigns.triggerSeasonal",trend:"sandbox.campaigns.triggerTrend",seo_gap:"sandbox.campaigns.triggerSeoGap",inventory:"sandbox.campaigns.triggerInventory",partnership:"sandbox.campaigns.triggerPartnership",reputation:"sandbox.campaigns.triggerReputation"};function An(u){const{start:e,end:a}=u.period;return!e&&!a?null:`${e??"—"} / ${a??"—"}`}function Rn({orgSlug:u,virtualMcpId:e,branch:a,decofile:i}){const r=be(),c=sa({orgSlug:u,virtualMcpId:e,branch:a},{holdsCopy:!0}),l=Ws(Js({orgSlug:u,virtualMcpId:e,branch:a})),p=ln({orgSlug:u,virtualMcpId:e,branch:a}),d={orgSlug:u,virtualMcpId:e,branch:a,threadId:null},x=ta().length>0,[m,n]=T.useState(!1),[s,j]=T.useState("board"),[f,C]=T.useState(null),[h,k]=T.useState(""),[w,P]=T.useState(null),[L,F]=T.useState({}),[$,O]=T.useState(new Set),S=Cs(i),v=te(Zs(i).merged.storeUrl),G=(o,N)=>L[o]??N,z=(o,N)=>F(A=>({...A,[o]:N})),X=()=>{const o=Ts();c.mutate({blockKey:o,data:Ut(o,Ds(new Date))}),C(o)},se=async(o,N)=>{const A=S.find(E=>E.key===o);if(!(!A||A.status===N||$.has(o))){O(E=>new Set(E).add(o));try{await c.mutateAsync({blockKey:o,data:Ut(o,{...A,status:N,updatedAt:new Date().toISOString()})})}catch(E){de.error(E instanceof Error?E.message:r("sandbox.campaigns.moveFailed"))}finally{O(E=>{const D=new Set(E);return D.delete(o),D})}}},q=async(o,N)=>{const A=new Date().toISOString();await c.mutateAsync({blockKey:o.key,data:Ia(o.key,{...o.entry,updatedAt:A})});for(const E of N){const D=Ts();await c.mutateAsync({blockKey:D,data:Ut(D,{...Ds(new Date),name:E.name,seedKey:o.key,period:E.period,trigger:E.trigger,intent:E.intent,guardrails:E.guardrails})})}},[W,V]=T.useState(null),ae=o=>{p.mutate({blockKey:o}),C(N=>N===o?null:N)},ee=h.trim().toLowerCase(),ne=ee?S.filter(o=>`${o.name} ${o.trigger.note}`.toLowerCase().includes(ee)):S,K=f&&i[f]!==void 0?f:null,U=f&&S.some(o=>o.key===f)?f:ne[0]?.key??null;return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3 px-8 pb-3 pt-4",children:[t.jsxs("div",{className:"flex items-center gap-0.5 rounded-lg border p-0.5",children:[t.jsx(Hs,{active:s==="board",onClick:()=>j("board"),icon:t.jsx(Da,{size:14}),label:r("sandbox.campaigns.viewBoard")}),t.jsx(Hs,{active:s==="list",onClick:()=>j("list"),icon:t.jsx(nn,{size:14}),label:r("sandbox.campaigns.viewList")})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[t.jsxs(Z,{type:"button",size:"sm",variant:"outline",disabled:!x,onClick:()=>n(!0),children:[t.jsx(vt,{size:14}),r("sandbox.campaignGen.open")]}),t.jsxs(Z,{type:"button",size:"sm",onClick:X,children:[t.jsx(on,{size:14}),r("sandbox.campaigns.add")]}),t.jsx(aa,{isPending:c.isPending||p.isPending,isError:c.isError||p.isError})]})]}),s==="board"?t.jsx("div",{className:"flex min-h-0 flex-1 gap-3 overflow-x-auto px-8 pb-6",children:us.map(o=>{const N=r(yt[o]),A=S.filter(D=>D.status===o),E=G(o,A.length===0);return t.jsx(T.Fragment,{children:t.jsx("div",{onDragOver:D=>{D.preventDefault(),P(o)},onDragLeave:()=>P(D=>D===o?null:D),onDrop:D=>{D.preventDefault(),P(null),se(D.dataTransfer.getData(ra),o)},className:le("flex shrink-0 flex-col rounded-xl border bg-muted/30 transition-colors",E?"w-11":"w-72",w===o&&"border-primary bg-primary/5"),children:E?t.jsxs("button",{type:"button",onClick:()=>z(o,!1),"aria-label":r("sandbox.campaigns.expandLane",{lane:N}),"aria-expanded":!1,className:"flex min-h-0 flex-1 cursor-pointer flex-col items-center gap-2 py-2.5 text-muted-foreground hover:text-foreground",children:[t.jsx(Vs,{size:14,className:"shrink-0"}),t.jsx("span",{className:"text-xs tabular-nums",children:A.length}),t.jsx("span",{className:"[writing-mode:vertical-rl] text-sm font-medium",children:N})]}):t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2.5 text-sm font-medium",children:[t.jsxs("button",{type:"button",onClick:()=>z(o,!0),"aria-label":r("sandbox.campaigns.collapseLane",{lane:N}),"aria-expanded":!0,className:"flex min-w-0 cursor-pointer items-center gap-1.5 text-left hover:text-muted-foreground",children:[t.jsx(na,{size:14,className:"shrink-0"}),t.jsx("span",{className:"truncate",children:N})]}),t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:A.length})]}),t.jsx("div",{className:"min-h-0 flex-1 space-y-2 overflow-y-auto px-2 pb-2",children:A.length===0?t.jsx("p",{className:"px-1 py-6 text-center text-xs text-muted-foreground",children:r("sandbox.campaigns.laneEmpty")}):A.map(D=>t.jsx(Gn,{campaign:D,moving:$.has(D.key),onOpen:()=>C(D.key),onDelete:()=>V(D)},D.key))})]})})},o)})}):t.jsxs("div",{className:"flex min-h-0 flex-1 border-t",children:[t.jsxs("div",{className:"flex w-80 shrink-0 flex-col border-r",children:[t.jsxs("div",{className:"flex items-center gap-2 border-b px-3 py-2",children:[t.jsx(La,{size:14,className:"shrink-0 text-muted-foreground"}),t.jsx(Q,{value:h,onChange:o=>k(o.target.value),placeholder:r("sandbox.campaigns.searchPlaceholder"),className:"h-8 border-0 shadow-none focus-visible:ring-0"})]}),t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto",children:ne.length===0?t.jsx("p",{className:"px-4 py-6 text-center text-xs text-muted-foreground",children:S.length===0?r("sandbox.campaigns.empty"):r("sandbox.campaigns.noMatches")}):t.jsx("ul",{className:"divide-y",children:ne.map(o=>t.jsxs("li",{className:"group/row relative",children:[t.jsx(ia,{label:r("sandbox.campaigns.remove"),onDelete:()=>V(o)}),t.jsxs("button",{type:"button",onClick:()=>C(o.key),"aria-current":o.key===U,className:le("w-full cursor-pointer px-4 py-3 text-left transition-colors hover:bg-accent",o.key===U&&"bg-muted hover:bg-secondary-hover"),children:[t.jsx("p",{className:"truncate pr-6 text-sm font-medium",children:o.name||r("sandbox.campaigns.untitled")}),t.jsxs("div",{className:"mt-1.5 flex flex-wrap items-center gap-1.5",children:[t.jsx(jt,{variant:Ln[o.status],children:r(yt[o.status])}),t.jsx("span",{className:"truncate text-xs text-muted-foreground",children:r(ft[o.trigger.type])})]})]})]},o.key))})})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:U?t.jsx(Is,{blockKey:U,block:i[U],onSave:(o,N)=>c.mutate({blockKey:U,data:o,edit:N}),onSeed:()=>c.hold(U),onEdit:()=>c.edited(U),onRemove:()=>{const o=S.find(N=>N.key===U);o&&V(o)},isSaving:c.isPending,sandboxRef:d,storeUrl:v},`${U}:${l(U)}`):t.jsx("div",{className:"flex h-full items-center justify-center px-6 text-center text-sm text-muted-foreground",children:r("sandbox.campaigns.selectPrompt")})})]}),t.jsx(va,{open:!!W,onOpenChange:o=>{o||V(null)},children:t.jsxs(ya,{children:[t.jsxs(Na,{children:[t.jsx(Ca,{children:r("sandbox.campaigns.deleteTitle")}),t.jsx(ka,{children:r("sandbox.campaigns.deleteDescription",{name:W?.name||r("sandbox.campaigns.untitled")})})]}),t.jsxs(wa,{children:[t.jsx(Ba,{children:r("sandbox.campaigns.deleteCancel")}),t.jsx(Sa,{variant:"destructive",onClick:()=>{W&&ae(W.key),V(null)},children:r("sandbox.campaigns.deleteConfirm")})]})]})}),t.jsx(fn,{open:m,onOpenChange:n,decofile:i,virtualMcpId:e,hasAi:x,onCreate:q}),t.jsx(Xt,{open:s==="board"&&!!K,onOpenChange:o=>{o||C(null)},children:t.jsxs(Yt,{closeButtonClassName:"hidden",className:"left-auto right-4 top-4 bottom-4 flex h-auto translate-x-0 translate-y-0 flex-col gap-0 overflow-y-auto p-0 sm:max-w-2xl",children:[t.jsx(Wt,{className:"sr-only",children:r("sandbox.blogContext.tabCampaigns")}),K&&t.jsx(Is,{blockKey:K,block:i[K],onSave:(o,N)=>c.mutate({blockKey:K,data:o,edit:N}),onSeed:()=>c.hold(K),onEdit:()=>c.edited(K),onRemove:()=>{const o=S.find(N=>N.key===K);o&&V(o)},onClose:()=>C(null),isSaving:c.isPending,sandboxRef:d,storeUrl:v},`${K}:${l(K)}`)]})})]})}function Gn(u){const e=Y.c(40),{campaign:a,moving:i,onOpen:r,onDelete:c}=u,l=be();let p;e[0]!==a?(p=An(a),e[0]=a,e[1]=p):p=e[1];const d=p,x=i&&"opacity-80";let m;e[2]!==x?(m=le("group/card relative rounded-lg bg-card shadow-edge transition-shadow hover:shadow-lift",x),e[2]=x,e[3]=m):m=e[3];let n;e[4]!==l?(n=l("sandbox.campaigns.remove"),e[4]=l,e[5]=n):n=e[5];let s;e[6]!==i||e[7]!==c||e[8]!==n?(s=t.jsx(ia,{label:n,disabled:i,onDelete:c}),e[6]=i,e[7]=c,e[8]=n,e[9]=s):s=e[9];const j=!i;let f;e[10]!==a.key?(f=G=>G.dataTransfer.setData(ra,a.key),e[10]=a.key,e[11]=f):f=e[11];const C=i?"cursor-wait":"cursor-grab active:cursor-grabbing";let h;e[12]!==C?(h=le("block w-full p-3 text-left",C),e[12]=C,e[13]=h):h=e[13];let k;e[14]!==a.name||e[15]!==l?(k=a.name||l("sandbox.campaigns.untitled"),e[14]=a.name,e[15]=l,e[16]=k):k=e[16];let w;e[17]!==k?(w=t.jsx("p",{className:"line-clamp-2 pr-6 text-sm font-medium",children:k}),e[17]=k,e[18]=w):w=e[18];const P=ft[a.trigger.type];let L;e[19]!==l||e[20]!==P?(L=l(P),e[19]=l,e[20]=P,e[21]=L):L=e[21];let F;e[22]!==L?(F=t.jsx(jt,{variant:"secondary",className:"max-w-full truncate",children:L}),e[22]=L,e[23]=F):F=e[23];let $;e[24]!==d?($=d&&t.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:d}),e[24]=d,e[25]=$):$=e[25];let O;e[26]!==F||e[27]!==$?(O=t.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[F,$]}),e[26]=F,e[27]=$,e[28]=O):O=e[28];let S;e[29]!==r||e[30]!==w||e[31]!==O||e[32]!==j||e[33]!==f||e[34]!==h?(S=t.jsxs("button",{type:"button",draggable:j,onDragStart:f,onClick:r,className:h,children:[w,O]}),e[29]=r,e[30]=w,e[31]=O,e[32]=j,e[33]=f,e[34]=h,e[35]=S):S=e[35];let v;return e[36]!==S||e[37]!==m||e[38]!==s?(v=t.jsxs("div",{className:m,children:[s,S]}),e[36]=S,e[37]=m,e[38]=s,e[39]=v):v=e[39],v}function ia(u){const e=Y.c(7),{label:a,onDelete:i,disabled:r}=u;let c;e[0]!==i?(c=d=>{d.stopPropagation(),i()},e[0]=i,e[1]=c):c=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(oa,{className:"size-3.25"}),e[2]=l):l=e[2];let p;return e[3]!==r||e[4]!==a||e[5]!==c?(p=t.jsx(Z,{variant:"ghost-destructive",size:"icon-xs",type:"button",disabled:r,"aria-label":a,title:a,onClick:c,className:"absolute right-2 top-2 z-10 opacity-0 transition-opacity disabled:pointer-events-auto focus-visible:opacity-100 group-hover/card:opacity-100 group-hover/row:opacity-100",children:l}),e[3]=r,e[4]=a,e[5]=c,e[6]=p):p=e[6],p}function Hs(u){const e=Y.c(8),{active:a,onClick:i,icon:r,label:c}=u,l=a?"bg-accent text-accent-foreground":"text-muted-foreground hover:text-foreground";let p;e[0]!==l?(p=le("inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs transition-colors",l),e[0]=l,e[1]=p):p=e[1];let d;return e[2]!==a||e[3]!==r||e[4]!==c||e[5]!==i||e[6]!==p?(d=t.jsxs("button",{type:"button",onClick:i,"aria-pressed":a,className:p,children:[r,c]}),e[2]=a,e[3]=r,e[4]=c,e[5]=i,e[6]=p,e[7]=d):d=e[7],d}const On={},Fn=["description","targetAudience"],$n=["values","competitors","commercialPolicies","specialDates"],In=["keywords"],Ks=["dos","avoid","vocabulary"],zn=["voiceExamples"],Hn=[{id:"basics",label:"sandbox.blogBrand.tabBasics"},{id:"dos",label:"sandbox.blogBrand.tabDos"},{id:"guardrails",label:"sandbox.blogBrand.tabGuardrails"},{id:"extra",label:"sandbox.blogBrand.tabExtra"}],Us="sandbox.blogBrand.phaseReading",Ms="sandbox.formats.phaseReading";function Kn(u,e){return{name:u("sandbox.formats.starterName"),value:e.length?u("sandbox.formats.starterBody",{sections:e.map(a=>`@${a}`).join(", ")}):u("sandbox.formats.starterBodyNoSections")}}function Or(u){const e=Y.c(9),[a,i]=T.useState("brand"),[r,c]=T.useState("basics");let l;e[0]!==u?(l=Js(u),e[0]=u,e[1]=l):l=e[1];const p=Ws(l);let d;e[2]!==p?(d=[Mt,bt,Vt].map(p),e[2]=p,e[3]=d):d=e[3];const x=d.join(":");let m;return e[4]!==x||e[5]!==u||e[6]!==r||e[7]!==a?(m=t.jsx(Un,{...u,tab:a,setTab:i,section:r,setSection:c},x),e[4]=x,e[5]=u,e[6]=r,e[7]=a,e[8]=m):m=e[8],m}function Un({orgSlug:u,virtualMcpId:e,branch:a,decofile:i,meta:r,tab:c,setTab:l,section:p,setSection:d}){const x=Ls(i[Mt]),m=Ls(i[bt]),n=be(),s=Xs(),j=sa({orgSlug:u,virtualMcpId:e,branch:a},{holdsCopy:!0}),f=ta().length>0,C=za(),[h,k]=_t(x,b=>{j.mutate({blockKey:Mt,data:Xa(b,x,i[bt])})},{onSeed:()=>j.hold(Mt)}),[w,P]=_t(i[bt]?m:x,b=>{j.mutate({blockKey:bt,data:Ya(b,As)})},{onSeed:()=>j.hold(bt)}),L=(b,R)=>k({...h,[b]:R}),F=(b,R)=>P({...w,[b]:R}),$=i[Vt],[O,S]=_t($??On,b=>j.mutate({blockKey:Vt,data:b}),{onSeed:()=>j.hold(Vt)}),v=Kt(O.formats),G=b=>S({...O,formats:b}),z=Ha(r,{hideDefaults:C}),X=Ka(r,{hideDefaults:C}),se=z.map(b=>b.resolveType),q={items:z.map(b=>({...b,href:b.resolveType})),hint:n("sandbox.formats.mentionHint"),emptyLabel:n("sandbox.formats.mentionEmpty")},[W,V]=T.useState(!1),[ae,ee]=T.useState(Ms),[ne,K]=T.useState(!1),[U,o]=T.useState(""),[N,A]=T.useState(3),[E,D]=T.useState(!1),[ke,me]=T.useState(!1),[we,pe]=T.useState(Us),[he,fe]=T.useState(0),J=Ua(i,tn(i)),Qt=[...Ma.map(b=>h[b]),...As.map(b=>w[b])].some(b=>typeof b=="string"?b.trim().length>0:Va(Kt(b)).length>0),je=async b=>{if(J.blocks.length!==0){D(!0),pe(Us);try{const R=await s.call("BLOG_SITE_GROUND",{virtualMcpId:e,purpose:"brand",language:te(h.language)||void 0}).catch(re=>{console.warn("[blogBrand] grounding failed",re)}),_=R?{report:R.report,outcome:R.outcome}:void 0,M=await s.call("BLOG_BRAND_EXTRACT",{virtualMcpId:e,blocks:J.blocks,seo:J.seo,grounding:_});pe("sandbox.blogBrand.phaseResearching");const I=await s.call("BLOG_BRAND_ENRICH",{profile:M,blocks:J.blocks,seo:J.seo,grounding:_}).catch(re=>(console.warn("[blog] enriching the brand failed",re),{...M,specialDates:[],researchSources:[],searched:!1,discarded:0,judged:!1})),xe={companyName:I.companyName||te(h.companyName),language:I.language||te(h.language),description:I.description||te(h.description),targetAudience:I.targetAudience||te(h.targetAudience)},ie={...h},ce=Rs(ie,I,{mode:b,textFields:["companyName","language","storeUrl",...Fn],ruleFields:$n,termFields:In});k(ie),pe("sandbox.blogBrand.phaseInferring");const Ne=await s.call("BLOG_CONTEXT_EXTRACT",{brand:{...I,...xe},blocks:J.blocks,seo:J.seo}),Ce={...w};ce.push(...Rs(Ce,Ne,{mode:b,textFields:["tone"],ruleFields:Ks,exampleFields:zn})),P(Ce),fe(re=>re+1);const ge=I.discarded+Ne.discarded;de.success(ce.length>0?n(b==="replace"?"sandbox.blogBrand.extractReplaced":"sandbox.blogBrand.extractFilled",{count:String(ce.length)}):n(ge>0?"sandbox.blogBrand.extractAllDiscarded":"sandbox.blogBrand.extractNothingEmpty"),ge>0&&ce.length>0?{description:n("sandbox.blogBrand.extractDiscarded",{count:String(ge)})}:void 0),I.searched&&I.competitors.length===0&&de.info(n("sandbox.blogBrand.noCompetitorsFound"))}catch(R){de.error(R instanceof Error?R.message:n("sandbox.blogBrand.extractFailed"))}finally{D(!1)}}},ve=b=>{const R=new Set(v.map(M=>Gs(M.name))),_=b.filter(M=>M.name.trim()&&!R.has(Gs(M.name))).map(M=>({...M,value:qa(M.value,X)}));return _.length===0?0:(G([...v,..._]),fe(M=>M+1),_.length)},Be=()=>{if(ve([Kn(n,Za(X))])===0){de.info(n("sandbox.formats.noNewFormats"));return}de.success(n("sandbox.formats.starterAdded"))},ye=async()=>{V(!0),ee(Ms);const b=setTimeout(()=>ee("sandbox.formats.phaseWriting"),6e3);try{const R=await s.call("BLOG_SITE_GROUND",{virtualMcpId:e,purpose:"format",language:te(h.language)||void 0}).catch(I=>{console.warn("[blogFormats] grounding failed",I)}),_=await s.call("BLOG_FORMAT_SUGGEST",{grounding:R?{report:R.report,outcome:R.outcome}:void 0,virtualMcpId:e,brand:qs({...h,...w}),sections:Object.keys(X).map(I=>{const xe=z.find(ie=>ie.name===I);return{name:I,title:xe?.title??I,description:xe?.description}}),postStructures:Wa(i).map(I=>({title:I.title,sections:I.sections})),guidance:U.trim()||void 0,count:N}),M=ve(_.formats);if(M===0){de.info(n("sandbox.formats.noNewFormats"));return}de.success(n("sandbox.formats.suggested",{count:String(M)}))}catch(R){de.error(R instanceof Error?R.message:n("sandbox.formats.suggestFailed"))}finally{clearTimeout(b),V(!1)}},oe=(b,R)=>{const _=Ks.includes(b),M=_?w:h,I=_?F:L;return t.jsx(fs,{rules:Kt(M[b]),onChange:xe=>I(b,xe),revision:he,idPrefix:b,...R})},Se=()=>{switch(p){case"basics":return t.jsxs("div",{className:"space-y-6",children:[t.jsxs("div",{className:"grid gap-4 sm:grid-cols-2",children:[t.jsx(xs,{id:"brand-company-name",label:n("sandbox.blogBrand.companyNameLabel"),value:te(h.companyName),onChange:b=>L("companyName",b)}),t.jsx(xs,{id:"brand-language",label:n("sandbox.blogBrand.languageLabel"),placeholder:"pt-BR",value:te(h.language),onChange:b=>L("language",b)})]}),t.jsxs("div",{className:"space-y-1.5",children:[t.jsx(xs,{id:"brand-store-url",label:n("sandbox.blogBrand.storeUrlLabel"),placeholder:"https://loja.com.br",value:te(h.storeUrl),onChange:b=>L("storeUrl",b)}),te(h.storeUrl).trim()&&!Pa(te(h.storeUrl).trim())?t.jsx("p",{className:"text-xs text-warning",children:n("sandbox.blogBrand.storeUrlInvalid")}):t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.storeUrlHint")})]}),t.jsx(gs,{id:"brand-description",label:n("sandbox.blogBrand.descriptionLabel"),value:te(h.description),onChange:b=>L("description",b)}),t.jsx(gs,{id:"brand-tone",label:n("sandbox.blogBrand.toneLabel"),hint:n("sandbox.blogBrand.toneHint"),value:te(w.tone),onChange:b=>F("tone",b),rows:5}),t.jsx(gs,{id:"brand-audience",label:n("sandbox.blogBrand.audienceLabel"),value:te(h.targetAudience),onChange:b=>L("targetAudience",b)}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.voiceExamplesLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.voiceExamplesHint")}),t.jsx(Mn,{examples:Qa(w.voiceExamples),onChange:b=>F("voiceExamples",b)})]})]});case"dos":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:n("sandbox.blogBrand.dosHint")}),oe("dos",{add:n("sandbox.blogBrand.addDo"),namePlaceholder:n("sandbox.blogBrand.dosNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.dosBodyPlaceholder")}),t.jsxs("section",{className:"space-y-2 pt-4",children:[t.jsx(H,{children:n("sandbox.blogBrand.vocabularyLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.vocabularyHint")}),oe("vocabulary",{add:n("sandbox.blogBrand.addVocabulary"),namePlaceholder:n("sandbox.blogBrand.vocabularyNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.vocabularyBodyPlaceholder")})]})]});case"guardrails":return t.jsxs("div",{className:"space-y-3",children:[t.jsx("p",{className:"text-sm text-muted-foreground",children:n("sandbox.blogBrand.dontsHint")}),oe("avoid",{add:n("sandbox.blogBrand.addDont"),namePlaceholder:n("sandbox.blogBrand.dontsNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.dontsBodyPlaceholder")})]});case"extra":return t.jsxs("div",{className:"space-y-8",children:[t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.valuesLabel")}),oe("values",{add:n("sandbox.blogBrand.addValue"),namePlaceholder:n("sandbox.blogBrand.valuesNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.valuesBodyPlaceholder")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.competitorsLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.competitorsHint")}),oe("competitors",{add:n("sandbox.blogBrand.addCompetitor"),namePlaceholder:n("sandbox.blogBrand.competitorsNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.competitorsBodyPlaceholder")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.keywordsLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.keywordsHint")}),t.jsx(ks,{terms:Ja(h.keywords),onChange:b=>L("keywords",b),placeholder:n("sandbox.blogBrand.keywordsPlaceholder"),removeLabel:n("sandbox.blogBrand.removeKeyword")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.specialDatesLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.specialDatesHint")}),oe("specialDates",{add:n("sandbox.blogBrand.addSpecialDate"),namePlaceholder:n("sandbox.blogBrand.specialDatesNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.specialDatesBodyPlaceholder")})]}),t.jsxs("section",{className:"space-y-2",children:[t.jsx(H,{children:n("sandbox.blogBrand.policiesLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.blogBrand.policiesHint")}),oe("commercialPolicies",{add:n("sandbox.blogBrand.addPolicy"),namePlaceholder:n("sandbox.blogBrand.policiesNamePlaceholder"),bodyPlaceholder:n("sandbox.blogBrand.policiesBodyPlaceholder")})]})]})}};return t.jsxs("div",{className:"flex h-full min-w-0 flex-col",children:[t.jsxs("div",{className:"flex shrink-0 items-start justify-between gap-4 px-8 pt-6",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx("h2",{className:"text-lg font-semibold",children:n("sandbox.blogContext.title")}),t.jsx("p",{className:"text-sm text-muted-foreground",children:n("sandbox.blogContext.subtitle")})]}),t.jsx(aa,{isPending:j.isPending,isError:j.isError})]}),t.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b px-8",children:[t.jsxs("div",{className:"flex gap-1",children:[t.jsx(Ht,{active:c==="brand",onClick:()=>l("brand"),children:n("sandbox.blogContext.tabBrand")}),t.jsx(Ht,{active:c==="formats",onClick:()=>l("formats"),children:n("sandbox.blogContext.tabFormats")}),t.jsx(Ht,{active:c==="campaigns",onClick:()=>l("campaigns"),children:n("sandbox.blogContext.tabCampaigns")}),t.jsxs(Ht,{active:!1,disabled:!0,onClick:()=>{},children:[n("sandbox.blogContext.tabAutomations"),t.jsx(jt,{variant:"secondary",children:n("common.soon")})]})]}),c==="brand"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[E&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(Ps,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:n(we)})]}),t.jsxs(Z,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:E||J.blocks.length===0||!f,title:f?J.blocks.length>0?n("sandbox.blogBrand.extractHint",{count:String(J.blocks.length)}):n("sandbox.blogBrand.extractNoContent"):n("sandbox.autonomous.noAiProvider"),onClick:()=>{Qt?me(!0):je("empty")},children:[t.jsx(vt,{size:14}),n("sandbox.blogBrand.extractButton")]}),t.jsx(Xt,{open:ke,onOpenChange:me,children:t.jsxs(Yt,{className:"sm:max-w-md",children:[t.jsxs(js,{children:[t.jsx(Wt,{children:n("sandbox.blogBrand.fillDialogTitle")}),t.jsx(Ys,{children:n("sandbox.blogBrand.fillDialogDescription")})]}),t.jsx("div",{className:"flex flex-col gap-2",children:[{mode:"empty",label:"sandbox.blogBrand.fillOnlyEmpty",hint:"sandbox.blogBrand.fillOnlyEmptyHint"},{mode:"replace",label:"sandbox.blogBrand.fillReplace",hint:"sandbox.blogBrand.fillReplaceHint"}].map(b=>t.jsxs("button",{type:"button",onClick:()=>{me(!1),je(b.mode)},className:"cursor-pointer rounded-lg border p-3 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:"text-sm font-medium",children:n(b.label)}),t.jsx("span",{className:"mt-0.5 block text-xs text-muted-foreground",children:n(b.hint)})]},b.mode))})]})})]}),c==="formats"&&t.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[W&&t.jsxs("span",{className:"inline-flex min-w-0 items-center gap-1.5 text-xs text-muted-foreground","aria-live":"polite",role:"status",children:[t.jsx(Ps,{size:12,className:"shrink-0 animate-spin"}),t.jsx("span",{className:"truncate",children:n(ae)})]}),t.jsx(Z,{type:"button",variant:"ghost",size:"sm",className:"my-2 shrink-0",title:n("sandbox.formats.starterHint"),onClick:Be,children:n("sandbox.formats.starterButton")}),t.jsxs(Ns,{open:ne,onOpenChange:K,children:[t.jsx(vs,{asChild:!0,children:t.jsxs(Z,{type:"button",variant:"outline",size:"sm",className:"my-2 shrink-0",disabled:W||!f,title:n(f?"sandbox.formats.suggestHint":"sandbox.autonomous.noAiProvider"),children:[t.jsx(vt,{size:14}),n("sandbox.formats.suggestButton")]})}),t.jsxs(ys,{align:"end",className:"w-80 space-y-3",children:[t.jsxs("div",{className:"space-y-1",children:[t.jsx(H,{htmlFor:"format-guidance",children:n("sandbox.formats.guidanceLabel")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.formats.guidanceHint")})]}),t.jsx(Q,{id:"format-guidance",value:U,onChange:b=>o(b.target.value),placeholder:n("sandbox.formats.guidancePlaceholder"),onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),K(!1),ye())},className:"h-9"}),t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(H,{htmlFor:"format-count",className:"text-xs",children:n("sandbox.formats.countLabel")}),t.jsx(Q,{id:"format-count",type:"number",min:1,max:5,value:N,onChange:b=>A(Math.max(1,Math.min(5,Number(b.target.value)||1))),className:"h-9 w-16"}),t.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:n("sandbox.postBoard.usesCredits")})]}),t.jsxs(Z,{type:"button",size:"sm",className:"w-full",onClick:()=>{K(!1),ye()},children:[t.jsx(vt,{size:14}),n("sandbox.formats.suggestButton")]})]})]})]})]}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:c==="campaigns"?t.jsx(Rn,{orgSlug:u,virtualMcpId:e,branch:a,decofile:i}):c==="formats"?t.jsxs("div",{className:"min-w-0 max-w-3xl space-y-3 px-8 py-6",children:[t.jsx("p",{className:"text-xs text-muted-foreground",children:n("sandbox.formats.hint")}),t.jsx(fs,{rules:v,onChange:G,revision:he,idPrefix:"format",add:n("sandbox.formats.add"),namePlaceholder:n("sandbox.formats.namePlaceholder"),bodyPlaceholder:n("sandbox.formats.bodyPlaceholder"),mentions:q,citationWarning:b=>{const R=_a(b,se,X);return R.length===0?null:n("sandbox.formats.unknownCitations",{names:R.map(_=>`@${_}`).join(", ")})}})]}):t.jsxs("div",{className:"grid grid-cols-[240px_1fr] gap-8 px-8 py-6",children:[t.jsx("nav",{className:"sticky top-0 h-fit space-y-0.5 surface p-1.5",children:Hn.map(b=>t.jsx("button",{type:"button",onClick:()=>d(b.id),className:le("w-full rounded-lg px-2.5 py-2 text-left text-sm transition-colors cursor-pointer",p===b.id?"bg-muted font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-foreground"),children:n(b.label)},b.id))}),t.jsx("div",{className:"min-w-0 max-w-3xl",children:Se()})]})})]})}function Ht(u){const e=Y.c(10),{active:a,onClick:i,disabled:r,children:c}=u,l=r&&"cursor-not-allowed text-muted-foreground opacity-70",p=!r&&"cursor-pointer",d=a?"border-foreground font-medium text-foreground":"border-transparent text-muted-foreground",x=!r&&!a&&"hover:text-foreground";let m;e[0]!==l||e[1]!==p||e[2]!==d||e[3]!==x?(m=le("-mb-px flex items-center gap-1.5 border-b-2 px-3 py-3 text-sm transition-colors",l,p,d,x),e[0]=l,e[1]=p,e[2]=d,e[3]=x,e[4]=m):m=e[4];let n;return e[5]!==c||e[6]!==r||e[7]!==i||e[8]!==m?(n=t.jsx("button",{type:"button",onClick:i,disabled:r,className:m,children:c}),e[5]=c,e[6]=r,e[7]=i,e[8]=m,e[9]=n):n=e[9],n}function xs(u){const e=Y.c(13),{id:a,label:i,value:r,onChange:c,placeholder:l}=u;let p;e[0]!==a||e[1]!==i?(p=t.jsx(H,{htmlFor:a,children:i}),e[0]=a,e[1]=i,e[2]=p):p=e[2];let d;e[3]!==c?(d=n=>c(n.target.value),e[3]=c,e[4]=d):d=e[4];let x;e[5]!==a||e[6]!==l||e[7]!==d||e[8]!==r?(x=t.jsx(Q,{id:a,value:r,placeholder:l,onChange:d,className:"h-10"}),e[5]=a,e[6]=l,e[7]=d,e[8]=r,e[9]=x):x=e[9];let m;return e[10]!==p||e[11]!==x?(m=t.jsxs("div",{className:"space-y-2",children:[p,x]}),e[10]=p,e[11]=x,e[12]=m):m=e[12],m}function gs(u){const e=Y.c(16),{id:a,label:i,hint:r,value:c,onChange:l,rows:p}=u,d=p===void 0?3:p;let x;e[0]!==a||e[1]!==i?(x=t.jsx(H,{htmlFor:a,children:i}),e[0]=a,e[1]=i,e[2]=x):x=e[2];let m;e[3]!==r?(m=r&&t.jsx("p",{className:"text-xs text-muted-foreground",children:r}),e[3]=r,e[4]=m):m=e[4];let n;e[5]!==l?(n=f=>l(f.target.value),e[5]=l,e[6]=n):n=e[6];let s;e[7]!==a||e[8]!==d||e[9]!==n||e[10]!==c?(s=t.jsx(ht,{id:a,value:c,rows:d,onChange:n}),e[7]=a,e[8]=d,e[9]=n,e[10]=c,e[11]=s):s=e[11];let j;return e[12]!==x||e[13]!==m||e[14]!==s?(j=t.jsxs("div",{className:"space-y-2",children:[x,m,s]}),e[12]=x,e[13]=m,e[14]=s,e[15]=j):j=e[15],j}function Mn(u){const e=Y.c(19),{examples:a,onChange:i}=u,r=be();let c;e[0]!==a||e[1]!==i?(c=(s,j)=>i(a.map((f,C)=>C===s?{...f,...j}:f)),e[0]=a,e[1]=i,e[2]=c):c=e[2];const l=c;let p;e[3]!==a||e[4]!==i||e[5]!==l||e[6]!==r?(p=a.length>0&&t.jsx("ul",{className:"divide-y overflow-hidden rounded-lg border",children:a.map((s,j)=>t.jsxs("li",{className:"flex items-center gap-2 bg-card px-3 py-2",children:[t.jsx(Q,{"aria-label":r("sandbox.blogBrand.voiceExamplesLabel"),placeholder:r("sandbox.blogBrand.voiceExamplesPlaceholder"),value:s.text,onChange:f=>l(j,{text:f.target.value}),className:"min-w-0 flex-1 border-0 shadow-none focus-visible:ring-0"}),t.jsxs("label",{className:"flex shrink-0 cursor-pointer items-center gap-2 text-xs text-muted-foreground",children:[t.jsx(Aa,{checked:s.sounds,onCheckedChange:f=>l(j,{sounds:f})}),t.jsx("span",{className:"whitespace-nowrap",children:r(s.sounds?"sandbox.blogBrand.voiceExamplesSounds":"sandbox.blogBrand.voiceExamplesDoesNotSound")})]}),t.jsx(Jt,{label:r("sandbox.blogBrand.removeItem"),onClick:()=>i(a.filter((f,C)=>C!==j))})]},j))}),e[3]=a,e[4]=i,e[5]=l,e[6]=r,e[7]=p):p=e[7];let d;e[8]!==r?(d=r("sandbox.blogBrand.addVoiceExample"),e[8]=r,e[9]=d):d=e[9];let x;e[10]!==a||e[11]!==i?(x=()=>i([...a,{text:"",sounds:!0}]),e[10]=a,e[11]=i,e[12]=x):x=e[12];let m;e[13]!==d||e[14]!==x?(m=t.jsx(Nt,{label:d,onClick:x}),e[13]=d,e[14]=x,e[15]=m):m=e[15];let n;return e[16]!==p||e[17]!==m?(n=t.jsxs("div",{className:"space-y-2",children:[p,m]}),e[16]=p,e[17]=m,e[18]=n):n=e[18],n}export{Or as BlogContext};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as Q,c as L,b as J,a4 as Z,j as i,n as le,b4 as oe,ai as ee,l as K,B as O,L as G,af as re,C as ne}from"./index-DWeEV7We.js";import{C as ce}from"./index-kEylUewg.js";import{i as me}from"./LinkBroken01-D8qYefsX.js";import{W as ae}from"./agent-icon-re0J_Z0y.js";import{b as X}from"./ZoomOut-CITVxJZc.js";import{a as fe}from"./Image01-DNMg6qgq.js";import{s as de}from"./Plus-DpKYZahY.js";import{t as pe}from"./Users01-B0uoLuQA.js";import{G as te}from"./repository-picker-zJbNOFiG.js";import{u as V}from"./use-connection-BkFIpsi3.js";import{u as ie}from"./use-project-scope-CS7CU-oc.js";import{g as se}from"./repository-binding-CCilIqI-.js";import{u as ue}from"./use-file-configs-B1Wu7CoB.js";import{m as xe}from"./match-site-slug-config-D3fUJ6vX.js";import{r as he}from"./site-slug-DebpOoQq.js";import{r as ge}from"./virtual-mcp-8l_Iyd1v.js";import"./use-mobile-edOvKjBr.js";import"./use-sidebar-collapsed-3UQA8uHW.js";import"./use-chat-layout-state-CguMNiu5.js";import"./thread-route-DIf2ZGZx.js";import"./use-panel-navigate-CJ83kP0Q.js";import"./thread-intent-CZKTHJpR.js";import"./use-mcp-client-B_ly4LOn.js";import"./auth-DOa4-SAf.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-n9peNJG6.js";import"./task-board-TRGqshFr.js";import"./schema-Donkz7O8.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-Bvq8EBUJ.js";import"./index-VD1AeowC.js";import"./toolbar-icon-button-Df5B45y-.js";import"./shell-layout-CBd6hqhZ.js";import"./Building02-Cn2tQJnv.js";import"./UserSquare-BQlfSW-S.js";import"./use-deployment-admin-CR-rfRjc.js";import"./admin-fetch-BhTJlAsX.js";import"./XClose-Ci0TVCjl.js";import"./CheckCircle-CeehyyfU.js";import"./Monitor01-DnG7mfvQ.js";import"./use-clock-tick-B-VqHoGD.js";import"./Tool01-DlRbIajK.js";import"./command-BzGEMEWU.js";import"./index-DOhrAFZP.js";import"./SearchMd-DEGTr-sj.js";import"./integration-icon-B_WXNT4I.js";import"./project-icon-B5VDWXmE.js";import"./new-project-dialog-Bk4cWPiU.js";import"./ArrowLeft-DSfQsYgJ.js";import"./label-BpaBIQwW.js";import"./repository-import-picker-DaSOYRH5.js";import"./use-navigate-to-agent-CqJEEwa9.js";import"./required-auth-layout-CjomhEXK.js";import"./autosend-DqPNCAG8.js";import"./use-org-sso-BYdMcBEF.js";import"./sheet-BxBmImQt.js";import"./resizable-CzyrVCQ0.js";import"./AlertCircle-BNC3Ncf7.js";import"./ArrowUp-CSc_Tdqb.js";import"./ShoppingBag01-BeE3fDG1.js";import"./ChevronUp-Cvi5Ri1X.js";import"./ChevronSelectorVertical-D1XQchTX.js";import"./Copy01-CH_2hZDS.js";import"./CreditCard01-Cn3zS3gY.js";import"./DotsVertical-DniMDeeL.js";import"./Globe04-BIRXqM09.js";import"./SwitchHorizontal01-D1SbwE-4.js";import"./Key01-CYO-VVE0.js";import"./Link01-CF8fcW9w.js";import"./Minus-DwtnPw8f.js";import"./Sun-D6e346Yx.js";import"./Play-H8L3UHLo.js";import"./Trash01-BFvvA8Ru.js";import"./Upload01-Crxkqzoh.js";import"./useInfiniteQuery-hQnCuVJq.js";import"./infiniteQueryObserver-DUsg51OD.js";import"./collection-search-D2Tz81E9.js";import"./use-debounced-value-TwO3j2Wf.js";import"./use-organization-settings-W94bfajr.js";import"./url-slug-BQHTBNww.js";function je(e){return[Q.SELF(e),Q.REGISTRY(e),Q.COMMUNITY_REGISTRY(e),Q.DEV_ASSETS(e)]}function be(e,t){const s=new Set(je(t));return e.some(o=>!s.has(o.id))}function ve(){const e=L.c(77),t=J(),{org:s}=Z(),o=V();let $;e[0]===Symbol.for("react.memo_cache_sentinel")?($={slug:"mcp-github"},e[0]=$):$=e[0];const u=V($),{projects:_}=ie(),l=oe();let r;e[1]!==s.slug?(r={org:s.slug},e[1]=s.slug,e[2]=r):r=e[2];const n=r;let x;e[3]!==t?(x=t("discover.setup.connectTitle"),e[3]=t,e[4]=x):x=e[4];let S;e[5]!==t?(S=t("discover.setup.connectBody"),e[5]=t,e[6]=S):S=e[6];let c;e[7]!==o||e[8]!==s.id?(c=be(o,s.id),e[7]=o,e[8]=s.id,e[9]=c):c=e[9];let h;e[10]===Symbol.for("react.memo_cache_sentinel")?(h=i.jsx(ae,{size:18}),e[10]=h):h=e[10];let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T={tab:"all"},e[11]=T):T=e[11];let m;e[12]!==t?(m=t("discover.setup.connectAction"),e[12]=t,e[13]=m):m=e[13];let a;e[14]!==n||e[15]!==m?(a=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:T,children:m})}),e[14]=n,e[15]=m,e[16]=a):a=e[16];let f;e[17]!==x||e[18]!==S||e[19]!==c||e[20]!==a?(f={key:"connect",title:x,body:S,done:c,icon:h,action:a},e[17]=x,e[18]=S,e[19]=c,e[20]=a,e[21]=f):f=e[21];let N;e[22]!==t?(N=t("discover.setup.githubTitle"),e[22]=t,e[23]=N):N=e[23];let g;e[24]!==t?(g=t("discover.setup.githubBody"),e[24]=t,e[25]=g):g=e[25];const C=u.length>0;let j;e[26]===Symbol.for("react.memo_cache_sentinel")?(j=i.jsx(te,{className:"size-[18px]"}),e[26]=j):j=e[26];let b;e[27]===Symbol.for("react.memo_cache_sentinel")?(b={tab:"all"},e[27]=b):b=e[27];let v;e[28]!==t?(v=t("discover.setup.githubAction"),e[28]=t,e[29]=v):v=e[29];let d;e[30]!==n||e[31]!==v?(d=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/connections",params:n,search:b,children:v})}),e[30]=n,e[31]=v,e[32]=d):d=e[32];let y;e[33]!==N||e[34]!==g||e[35]!==C||e[36]!==d?(y={key:"github",title:N,body:g,done:C,icon:j,action:d},e[33]=N,e[34]=g,e[35]=C,e[36]=d,e[37]=y):y=e[37];let p;e[38]!==t?(p=t("discover.setup.projectTitle"),e[38]=t,e[39]=p):p=e[39];let k;e[40]!==t?(k=t("discover.setup.projectBody"),e[40]=t,e[41]=k):k=e[41];const z=_.length>0;let R;e[42]===Symbol.for("react.memo_cache_sentinel")?(R=i.jsx(de,{size:18}),e[42]=R):R=e[42];let w;e[43]!==s.slug?(w={org:s.slug},e[43]=s.slug,e[44]=w):w=e[44];let A;e[45]!==t?(A=t("discover.setup.projectAction"),e[45]=t,e[46]=A):A=e[46];let q;e[47]!==w||e[48]!==A?(q=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:re.home,params:w,children:A})}),e[47]=w,e[48]=A,e[49]=q):q=e[49];let E;e[50]!==p||e[51]!==k||e[52]!==z||e[53]!==q?(E={key:"project",title:p,body:k,done:z,icon:R,action:q},e[50]=p,e[51]=k,e[52]=z,e[53]=q,e[54]=E):E=e[54];let B;e[55]!==t?(B=t("discover.setup.inviteTitle"),e[55]=t,e[56]=B):B=e[56];let P;e[57]!==t?(P=t("discover.setup.inviteBody"),e[57]=t,e[58]=P):P=e[58];let W;e[59]!==l.data?.data?.members?(W=l.data?.data?.members??[],e[59]=l.data?.data?.members,e[60]=W):W=e[60];const U=W.length>1;let Y;e[61]===Symbol.for("react.memo_cache_sentinel")?(Y=i.jsx(pe,{size:18}),e[61]=Y):Y=e[61];let D;e[62]!==t?(D=t("discover.setup.inviteAction"),e[62]=t,e[63]=D):D=e[63];let I;e[64]!==n||e[65]!==D?(I=i.jsx(O,{asChild:!0,variant:"outline",size:"sm",children:i.jsx(G,{to:"/$org/settings/members",params:n,children:D})}),e[64]=n,e[65]=D,e[66]=I):I=e[66];let M;e[67]!==B||e[68]!==P||e[69]!==U||e[70]!==I?(M={key:"invite",title:B,body:P,done:U,icon:Y,action:I},e[67]=B,e[68]=P,e[69]=U,e[70]=I,e[71]=M):M=e[71];let F;return e[72]!==y||e[73]!==E||e[74]!==M||e[75]!==f?(F=[f,y,E,M],e[72]=y,e[73]=E,e[74]=M,e[75]=f,e[76]=F):F=e[76],F}function ye(){const e=L.c(51),t=J(),{projects:s}=ie();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={slug:"mcp-github"},e[0]=o):o=e[0];const $=V(o),u=ue();let _;e[1]!==s?(_=s.some(Se),e[1]=s,e[2]=_):_=e[2];const l=_;let r;e[3]!==s?(r=s.some(_e),e[3]=s,e[4]=r):r=e[4];const n=r;let x;if(e[5]!==u||e[6]!==s){let w;e[8]!==u?(w=A=>xe(u.data?.configs??[],he(A)),e[8]=u,e[9]=w):w=e[9],x=s.some(w),e[5]=u,e[6]=s,e[7]=x}else x=e[7];const S=x;let c;e[10]!==t?(c=t("discover.capabilities.previewTitle"),e[10]=t,e[11]=c):c=e[11];let h;e[12]!==t?(h=t("discover.capabilities.previewRequirement"),e[12]=t,e[13]=h):h=e[13];let T;e[14]===Symbol.for("react.memo_cache_sentinel")?(T=i.jsx(X,{size:18}),e[14]=T):T=e[14];let m;e[15]!==l||e[16]!==c||e[17]!==h?(m={key:"preview",title:c,requirement:h,satisfied:l,icon:T},e[15]=l,e[16]=c,e[17]=h,e[18]=m):m=e[18];let a;e[19]!==t?(a=t("discover.capabilities.gitTitle"),e[19]=t,e[20]=a):a=e[20];let f;e[21]!==t?(f=t("discover.capabilities.gitRequirement"),e[21]=t,e[22]=f):f=e[22];const N=$.length>0&&l;let g;e[23]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx(te,{className:"size-[18px]"}),e[23]=g):g=e[23];let C;e[24]!==N||e[25]!==a||e[26]!==f?(C={key:"git",title:a,requirement:f,satisfied:N,icon:g},e[24]=N,e[25]=a,e[26]=f,e[27]=C):C=e[27];let j;e[28]!==t?(j=t("discover.capabilities.contentTitle"),e[28]=t,e[29]=j):j=e[29];let b;e[30]!==t?(b=t("discover.capabilities.contentRequirement"),e[30]=t,e[31]=b):b=e[31];let v;e[32]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx(X,{size:18}),e[32]=v):v=e[32];let d;e[33]!==n||e[34]!==j||e[35]!==b?(d={key:"content",title:j,requirement:b,satisfied:n,icon:v},e[33]=n,e[34]=j,e[35]=b,e[36]=d):d=e[36];let y;e[37]!==t?(y=t("discover.capabilities.assetsTitle"),e[37]=t,e[38]=y):y=e[38];let p;e[39]!==t?(p=t("discover.capabilities.assetsRequirement"),e[39]=t,e[40]=p):p=e[40];let k;e[41]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(fe,{size:18}),e[41]=k):k=e[41];let z;e[42]!==S||e[43]!==y||e[44]!==p?(z={key:"assets",title:y,requirement:p,satisfied:S,icon:k},e[42]=S,e[43]=y,e[44]=p,e[45]=z):z=e[45];let R;return e[46]!==C||e[47]!==d||e[48]!==z||e[49]!==m?(R=[m,C,d,z],e[46]=C,e[47]=d,e[48]=z,e[49]=m,e[50]=R):R=e[50],R}function _e(e){return!!se(e)&&ge(e.metadata?.ui?.layout)!=="off"}function Se(e){return se(e)}function H(e){const t=L.c(10),{title:s,description:o,children:$}=e;let u;t[0]!==s?(u=i.jsx("h2",{className:"text-base font-semibold text-foreground",children:s}),t[0]=s,t[1]=u):u=t[1];let _;t[2]!==o?(_=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:o}),t[2]=o,t[3]=_):_=t[3];let l;t[4]!==u||t[5]!==_?(l=i.jsxs("div",{className:"flex flex-col gap-1",children:[u,_]}),t[4]=u,t[5]=_,t[6]=l):l=t[6];let r;return t[7]!==$||t[8]!==l?(r=i.jsxs("section",{className:"flex flex-col gap-3",children:[l,$]}),t[7]=$,t[8]=l,t[9]=r):r=t[9],r}function Ne(){const e=L.c(63),t=J(),{org:s}=Z(),o=ve(),$=ye();let u;e[0]!==o?(u=o.filter(Te),e[0]=o,e[1]=u):u=e[1];const _=u;let l;e[2]!==t?(l=t("discover.title"),e[2]=t,e[3]=l):l=e[3];let r;e[4]!==l?(r=i.jsx(le.Title,{children:l}),e[4]=l,e[5]=r):r=e[5];let n;e[6]!==t?(n=t("discover.subtitle"),e[6]=t,e[7]=n):n=e[7];let x;e[8]!==n?(x=i.jsx("p",{className:"max-w-prose text-sm text-muted-foreground",children:n}),e[8]=n,e[9]=x):x=e[9];let S;e[10]!==r||e[11]!==x?(S=i.jsxs("header",{className:"flex flex-col gap-2",children:[r,x]}),e[10]=r,e[11]=x,e[12]=S):S=e[12];let c;e[13]!==t?(c=t("discover.setup.title"),e[13]=t,e[14]=c):c=e[14];let h;e[15]!==_.length||e[16]!==t?(h=_.length===0?t("discover.setup.allDone"):t("discover.setup.description"),e[15]=_.length,e[16]=t,e[17]=h):h=e[17];let T;e[18]!==o?(T=o.map(ze),e[18]=o,e[19]=T):T=e[19];let m;e[20]!==T?(m=i.jsx("ul",{className:"flex flex-col gap-2",children:T}),e[20]=T,e[21]=m):m=e[21];let a;e[22]!==c||e[23]!==h||e[24]!==m?(a=i.jsx(H,{title:c,description:h,children:m}),e[22]=c,e[23]=h,e[24]=m,e[25]=a):a=e[25];let f;e[26]!==t?(f=t("discover.capabilities.title"),e[26]=t,e[27]=f):f=e[27];let N;e[28]!==t?(N=t("discover.capabilities.description"),e[28]=t,e[29]=N):N=e[29];let g;if(e[30]!==$||e[31]!==t){let A;e[33]!==t?(A=q=>i.jsxs("li",{className:"surface flex items-start gap-3 p-4",children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",q.satisfied?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:q.satisfied?i.jsx(ee,{size:18}):q.icon}),i.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:q.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:q.satisfied?t("discover.capabilities.ready"):q.requirement})]})]},q.key),e[33]=t,e[34]=A):A=e[34],g=$.map(A),e[30]=$,e[31]=t,e[32]=g}else g=e[32];let C;e[35]!==g?(C=i.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:g}),e[35]=g,e[36]=C):C=e[36];let j;e[37]!==f||e[38]!==N||e[39]!==C?(j=i.jsx(H,{title:f,description:N,children:C}),e[37]=f,e[38]=N,e[39]=C,e[40]=j):j=e[40];let b;e[41]!==t?(b=t("discover.catalog.title"),e[41]=t,e[42]=b):b=e[42];let v;e[43]!==t?(v=t("discover.catalog.description"),e[43]=t,e[44]=v):v=e[44];let d;e[45]!==s.slug?(d={org:s.slug},e[45]=s.slug,e[46]=d):d=e[46];let y;e[47]===Symbol.for("react.memo_cache_sentinel")?(y={tab:"all"},e[47]=y):y=e[47];let p;e[48]!==t?(p=t("discover.catalog.action"),e[48]=t,e[49]=p):p=e[49];let k;e[50]===Symbol.for("react.memo_cache_sentinel")?(k=i.jsx(me,{size:18}),e[50]=k):k=e[50];let z;e[51]!==d||e[52]!==p?(z=i.jsx("div",{children:i.jsx(O,{asChild:!0,size:"lg",children:i.jsxs(G,{to:"/$org/settings/connections",params:d,search:y,onClick:Ce,children:[p,k]})})}),e[51]=d,e[52]=p,e[53]=z):z=e[53];let R;e[54]!==b||e[55]!==v||e[56]!==z?(R=i.jsx(H,{title:b,description:v,children:z}),e[54]=b,e[55]=v,e[56]=z,e[57]=R):R=e[57];let w;return e[58]!==a||e[59]!==j||e[60]!==R||e[61]!==S?(w=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-y-auto",children:i.jsxs("div",{className:"mx-auto flex w-full max-w-3xl flex-col gap-10 p-6 md:p-10",children:[S,a,j,R]})}),e[58]=a,e[59]=j,e[60]=R,e[61]=S,e[62]=w):w=e[62],w}function Ce(){return ne("discover_catalog_opened",{})}function ze(e){return i.jsxs("li",{className:K("surface flex items-start gap-3 p-4",e.done&&"opacity-60"),children:[i.jsx("span",{className:K("mt-0.5 flex size-8 shrink-0 items-center justify-center rounded-lg",e.done?"bg-success/10 text-success":"bg-muted text-muted-foreground"),children:e.done?i.jsx(ee,{size:18}):e.icon}),i.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:e.title}),i.jsx("span",{className:"text-sm text-muted-foreground",children:e.body})]}),!e.done&&i.jsx("div",{className:"shrink-0",children:e.action})]},e.key)}function Te(e){return!e.done}function ti(){const e=L.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(ce.Content,{children:i.jsx(Ne,{})}),e[0]=t):t=e[0],t}export{ti as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,u as d,j as l,bB as m}from"./index-DWeEV7We.js";import{F as j}from"./feature-paywall-B0grxtjm.js";import{e as v,f as F}from"./use-decopilot-events-C12NB9sw.js";import{a as S}from"./use-panel-navigate-CJ83kP0Q.js";function g(f){const e=x.c(10),{feature:a,backdrop:o,children:u}=f,{openPanel:c}=S();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},e[0]=r):r=e[0];const{mainpanel:p}=d(r),h=v(a);if(!F()){let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=l.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-3 p-4",children:[l.jsx(m,{className:"h-8 w-48"}),l.jsx(m,{className:"min-h-0 flex-1 w-full"})]}),e[1]=i):i=e[1],i}if(h)return u;if(p===!1)return null;let s;e[2]!==c?(s=()=>c("overview"),e[2]=c,e[3]=s):s=e[3];let t;e[4]!==a||e[5]!==s?(t=l.jsx(j,{feature:a,onDismiss:s,onSeePlans:w}),e[4]=a,e[5]=s,e[6]=t):t=e[6];let n;return e[7]!==o||e[8]!==t?(n=l.jsxs("div",{className:"relative h-full min-h-0",children:[o,t]}),e[7]=o,e[8]=t,e[9]=n):n=e[9],n}function w(){}export{g as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as $,l as B,j as t,x as F,aY as R,w as O,v as H,D as M,b as W,d as Y,a4 as q,H as G,ag as I,ai as J,B as U}from"./index-DWeEV7We.js";import{u as K,a as Q,i as V,p as X,b as Z,P as ee,f as te}from"./plan-ladder-DeJKloSP.js";import{a as se}from"./use-decopilot-events-C12NB9sw.js";function le(N){const e=$.c(37),{open:a,onDismiss:n,accentClassName:i,icon:E,title:s,description:P,highlights:D,price:v,action:k,dismissAction:A}=N,T=a===void 0?!0:a,y=i??"text-muted-foreground";let l;e[0]!==n?(l=j=>!j&&n?.(),e[0]=n,e[1]=l):l=e[1];let c;e[2]!==y?(c=B("pointer-events-none",y),e[2]=y,e[3]=c):c=e[3];let h,b;e[4]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"absolute inset-x-0 top-0 h-60 opacity-60 dark:opacity-30",style:{background:"radial-gradient(ellipse 70% 100% at 50% 0%, currentColor 0%, transparent 72%)"}}),b=t.jsx("div",{className:"absolute inset-x-8 top-0 h-px bg-gradient-to-r from-transparent via-current to-transparent opacity-80 dark:opacity-60"}),e[4]=h,e[5]=b):(h=e[4],b=e[5]);let o;e[6]!==c?(o=t.jsxs("div",{"aria-hidden":"true",className:c,children:[h,b]}),e[6]=c,e[7]=o):o=e[7];let r;e[8]!==E?(r=t.jsx("div",{className:"mb-7",children:E}),e[8]=E,e[9]=r):r=e[9];let p;e[10]!==s?(p=t.jsx(F,{className:"text-2xl font-semibold leading-tight tracking-tight text-balance",children:s}),e[10]=s,e[11]=p):p=e[11];let d;e[12]!==P?(d=P&&t.jsx(R,{className:"mx-auto max-w-[32ch] text-sm leading-relaxed text-pretty",children:P}),e[12]=P,e[13]=d):d=e[13];let m;e[14]!==p||e[15]!==d?(m=t.jsxs(O,{className:"gap-2",children:[p,d]}),e[14]=p,e[15]=d,e[16]=m):m=e[16];let g;e[17]!==D?(g=D&&t.jsx("div",{className:"mt-6 w-fit",children:D}),e[17]=D,e[18]=g):g=e[18];let u;e[19]!==v?(u=v&&t.jsx("div",{className:"mt-7",children:v}),e[19]=v,e[20]=u):u=e[20];let x;e[21]!==k||e[22]!==A?(x=t.jsxs("div",{className:"mt-8 flex w-full flex-col items-center gap-2",children:[k,A]}),e[21]=k,e[22]=A,e[23]=x):x=e[23];let f;e[24]!==m||e[25]!==g||e[26]!==u||e[27]!==x||e[28]!==r?(f=t.jsxs("div",{className:"flex flex-col items-center px-8 pt-10 pb-8 text-center",children:[r,m,g,u,x]}),e[24]=m,e[25]=g,e[26]=u,e[27]=x,e[28]=r,e[29]=f):f=e[29];let w;e[30]!==f||e[31]!==o?(w=t.jsxs(H,{className:"gap-0 overflow-hidden p-0 sm:max-w-[480px]",onOpenAutoFocus:ae,children:[o,f]}),e[30]=f,e[31]=o,e[32]=w):w=e[32];let C;return e[33]!==T||e[34]!==w||e[35]!==l?(C=t.jsx(M,{open:T,onOpenChange:l,children:w}),e[33]=T,e[34]=w,e[35]=l,e[36]=C):C=e[36],C}function ae(N){return N.preventDefault()}function ne(N,e){if(!N||!e)return null;const a=N.findIndex(i=>i.id===e)+1,n=a>0?N[a]:void 0;return n?{plan:n,index:a}:null}const _={kanban:["settings.paywall.bullets.kanban.1","settings.paywall.bullets.kanban.2","settings.paywall.bullets.kanban.3"],cms:["settings.paywall.bullets.cms.1","settings.paywall.bullets.cms.2","settings.paywall.bullets.cms.3"],monitoring:["settings.paywall.bullets.monitoring.1","settings.paywall.bullets.monitoring.2","settings.paywall.bullets.monitoring.3"]},ie=["settings.paywall.bullets.allowance.1","settings.paywall.bullets.allowance.2","settings.paywall.bullets.allowance.3"];function pe(N){const e=$.c(45),{feature:a,copy:n,onDismiss:i,onSeePlans:E}=N,s=W(),P=Y(),{org:D}=q(),{data:v}=K(),{data:k}=se(),{data:A}=Q(),[T]=G();let y,l,c,h,b,o,r,p;if(e[0]!==n||e[1]!==k?.plan.id||e[2]!==a||e[3]!==i||e[4]!==v||e[5]!==A||e[6]!==s){const C=s(`settings.planUsage.feature.${a}`),j=V(k?.plan.id)?null:n?ne(v,k?.plan.id):X(v,a),z=j?Z(j.index):void 0;l=j?A?.[j.plan.id]:void 0;const L=n?ie:a in _?_[a]:null;y=le,c=i,h=z,b=j?t.jsx(ee,{index:j.index,className:"size-20"}):t.jsx(I,{className:"size-12 text-muted-foreground"}),o=n?.title??(j?s("settings.paywall.upgradeTitle",{plan:j.plan.name,feature:C}):C),r=n?.description??(L?void 0:j?s("settings.paywall.upgradeDescription"):s("settings.paywall.description",{feature:C})),p=L&&t.jsx("ul",{className:"flex flex-col gap-2.5 text-left",children:L.map(S=>t.jsxs("li",{className:"flex items-center gap-3 text-sm",children:[t.jsx(J,{size:16,className:B("shrink-0",z)}),t.jsx("span",{children:s(S)})]},S))}),e[0]=n,e[1]=k?.plan.id,e[2]=a,e[3]=i,e[4]=v,e[5]=A,e[6]=s,e[7]=y,e[8]=l,e[9]=c,e[10]=h,e[11]=b,e[12]=o,e[13]=r,e[14]=p}else y=e[7],l=e[8],c=e[9],h=e[10],b=e[11],o=e[12],r=e[13],p=e[14];let d;e[15]!==T||e[16]!==l||e[17]!==s?(d=l!==void 0?t.jsxs("span",{className:"flex items-baseline justify-center gap-1.5",children:[t.jsx("span",{className:"text-2xl font-semibold tabular-nums tracking-tight",children:te(l,T.language)}),t.jsx("span",{className:"text-sm text-muted-foreground",children:s("settings.plans.perMonth")})]}):void 0,e[15]=T,e[16]=l,e[17]=s,e[18]=d):d=e[18];let m;e[19]!==P||e[20]!==i||e[21]!==E||e[22]!==D.slug?(m=()=>{P({to:"/$org/settings/ai-providers",params:{org:D.slug}}),(E??i)?.()},e[19]=P,e[20]=i,e[21]=E,e[22]=D.slug,e[23]=m):m=e[23];let g;e[24]!==s?(g=s("settings.paywall.seePlans"),e[24]=s,e[25]=g):g=e[25];let u;e[26]!==m||e[27]!==g?(u=t.jsx(U,{size:"lg",className:"w-full",onClick:m,children:g}),e[26]=m,e[27]=g,e[28]=u):u=e[28];let x;e[29]!==s?(x=s("settings.paywall.dismiss"),e[29]=s,e[30]=x):x=e[30];let f;e[31]!==i||e[32]!==x?(f=t.jsx(U,{variant:"ghost",size:"lg",className:"w-full",onClick:i,children:x}),e[31]=i,e[32]=x,e[33]=f):f=e[33];let w;return e[34]!==y||e[35]!==c||e[36]!==u||e[37]!==f||e[38]!==h||e[39]!==b||e[40]!==o||e[41]!==r||e[42]!==p||e[43]!==d?(w=t.jsx(y,{onDismiss:c,accentClassName:h,icon:b,title:o,description:r,highlights:p,price:d,action:u,dismissAction:f}),e[34]=y,e[35]=c,e[36]=u,e[37]=f,e[38]=h,e[39]=b,e[40]=o,e[41]=r,e[42]=p,e[43]=d,e[44]=w):w=e[44],w}export{pe as F};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{c as Se,b as ve,r as f,j as s,I as Je,h as fe,x as It,aY as Gt,w as Vt,B as Ce,y as Bt,v as qt,D as Ht,aM as Wt,aN as Qt,aO as Ut,aP as Yt,bm as Xt,aQ as Jt,aR as Zt,aS as _t,l as me,ay as en,q as tn,t as ee,K as Ze}from"./index-DWeEV7We.js";import{k as nn,M as rn,bO as sn,bP as ln}from"./agent-icon-re0J_Z0y.js";import{s as on}from"./XClose-Ci0TVCjl.js";import{S as an}from"./scroll-area-DGyJpc45.js";import{c as _e,T as et,a as tt}from"./tooltip-Bvq8EBUJ.js";import{b as cn}from"./chat-context-CY54pZM0.js";import{F as dn}from"./editor-Cxo0boMA.js";import{a as fn}from"./shell-layout-CBd6hqhZ.js";import{s as je}from"./save-changes-debug-nBi-n9eV.js";import{s as nt,f as un}from"./sandbox-git-api-DcqI6XE4.js";import{f as xn,C as de,d as rt,g as mn,e as pn}from"./context-menu-BIBIcW5A.js";import{t as hn}from"./ChevronUp-Cvi5Ri1X.js";import{b as gn}from"./sandbox-url-D3mC8qhT.js";import{i as yn,E as bn,c as Pe,e as wn,f as jn,h as Nn,j as Dn,t as ne,k as Ne,l as Me,m as De,g as Ke,n as Oe,o as En,s as Cn,v as Sn,p as Ae,q as Ee,r as ze,u as vn,w as Fn,x as Tn,y as kn}from"./utils-CdL70Bws.js";import"./AlertCircle-BNC3Ncf7.js";import"./Tool01-DlRbIajK.js";import"./ArrowUp-CSc_Tdqb.js";import"./ArrowLeft-DSfQsYgJ.js";import"./LinkBroken01-D8qYefsX.js";import"./ShoppingBag01-BeE3fDG1.js";import"./ZoomOut-CITVxJZc.js";import"./Building02-Cn2tQJnv.js";import"./CheckCircle-CeehyyfU.js";import"./ChevronSelectorVertical-D1XQchTX.js";import"./UserSquare-BQlfSW-S.js";import"./Copy01-CH_2hZDS.js";import"./CreditCard01-Cn3zS3gY.js";import"./DotsVertical-DniMDeeL.js";import"./Image01-DNMg6qgq.js";import"./Globe04-BIRXqM09.js";import"./SwitchHorizontal01-D1SbwE-4.js";import"./Key01-CYO-VVE0.js";import"./Link01-CF8fcW9w.js";import"./Minus-DwtnPw8f.js";import"./Monitor01-DnG7mfvQ.js";import"./Sun-D6e346Yx.js";import"./Play-H8L3UHLo.js";import"./Plus-DpKYZahY.js";import"./SearchMd-DEGTr-sj.js";import"./Trash01-BFvvA8Ru.js";import"./Upload01-Crxkqzoh.js";import"./Users01-B0uoLuQA.js";import"./index-BdQq_4o_.js";import"./index-VD1AeowC.js";import"./use-panel-navigate-CJ83kP0Q.js";import"./thread-route-DIf2ZGZx.js";import"./use-project-scope-CS7CU-oc.js";import"./repository-binding-CCilIqI-.js";import"./use-mcp-client-B_ly4LOn.js";import"./auth-DOa4-SAf.js";import"./autosend-DqPNCAG8.js";import"./thread-intent-CZKTHJpR.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-n9peNJG6.js";import"./task-board-TRGqshFr.js";import"./schema-Donkz7O8.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-C12NB9sw.js";import"./use-ai-providers-D4eYzGSU.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-W94bfajr.js";import"./use-deployment-admin-CR-rfRjc.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-B-VqHoGD.js";import"./command-BzGEMEWU.js";import"./index-DOhrAFZP.js";import"./integration-icon-B_WXNT4I.js";import"./project-icon-B5VDWXmE.js";import"./new-project-dialog-Bk4cWPiU.js";import"./label-BpaBIQwW.js";import"./repository-import-picker-DaSOYRH5.js";import"./use-navigate-to-agent-CqJEEwa9.js";import"./repository-picker-zJbNOFiG.js";import"./useInfiniteQuery-hQnCuVJq.js";import"./infiniteQueryObserver-DUsg51OD.js";import"./collection-search-D2Tz81E9.js";import"./use-debounced-value-TwO3j2Wf.js";import"./required-auth-layout-CjomhEXK.js";import"./use-org-sso-BYdMcBEF.js";const Rn={"new-file":{titleKey:"sandbox.fileExplorerNameDialog.newFileTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFileDescription",submitKey:"sandbox.fileExplorerNameDialog.newFileSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFilePlaceholder"},"new-folder":{titleKey:"sandbox.fileExplorerNameDialog.newFolderTitle",descriptionKey:"sandbox.fileExplorerNameDialog.newFolderDescription",submitKey:"sandbox.fileExplorerNameDialog.newFolderSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.newFolderPlaceholder"},rename:{titleKey:"sandbox.fileExplorerNameDialog.renameTitle",descriptionKey:"sandbox.fileExplorerNameDialog.renameDescription",submitKey:"sandbox.fileExplorerNameDialog.renameSubmit",placeholderKey:"sandbox.fileExplorerNameDialog.renamePlaceholder"}};function Ln(O){const e=Se.c(71),{open:x,mode:Y,initialName:b,parentLabel:N,isPending:L,onSubmit:d,onOpenChange:w}=O,A=b===void 0?"":b,m=L===void 0?!1:L,a=ve(),[o,P]=f.useState(A),[X,M]=f.useState(x),p=Rn[Y];x!==X&&(M(x),x&&P(A));let c;e[0]!==m||e[1]!==w?(c=U=>{!U&&!m&&w(!1)},e[0]=m,e[1]=w,e[2]=c):c=e[2];const C=c;let z;e[3]!==m||e[4]!==o||e[5]!==d?(z=async U=>{U.preventDefault();const te=o.trim();!te||m||await d(te)},e[3]=m,e[4]=o,e[5]=d,e[6]=z):z=e[6];const R=z;let S;e[7]!==p.titleKey||e[8]!==a?(S=a(p.titleKey),e[7]=p.titleKey,e[8]=a,e[9]=S):S=e[9];let v;e[10]!==S?(v=s.jsx(It,{children:S}),e[10]=S,e[11]=v):v=e[11];let D;e[12]!==p.descriptionKey||e[13]!==a?(D=a(p.descriptionKey),e[12]=p.descriptionKey,e[13]=a,e[14]=D):D=e[14];let j;e[15]!==D?(j=s.jsx(Gt,{children:D}),e[15]=D,e[16]=j):j=e[16];let g;e[17]!==v||e[18]!==j?(g=s.jsxs(Vt,{children:[v,j]}),e[17]=v,e[18]=j,e[19]=g):g=e[19];let E;e[20]!==N||e[21]!==a?(E=N&&s.jsxs("div",{className:"space-y-1.5",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:a("sandbox.fileExplorerNameDialog.location")}),s.jsx(Je,{value:N,readOnly:!0,disabled:!0,className:"font-mono text-xs"})]}),e[20]=N,e[21]=a,e[22]=E):E=e[22];let y;e[23]!==a?(y=a("sandbox.fileExplorerNameDialog.name"),e[23]=a,e[24]=y):y=e[24];let T;e[25]!==y?(T=s.jsx("label",{htmlFor:"file-explorer-name",className:"text-xs font-medium text-muted-foreground",children:y}),e[25]=y,e[26]=T):T=e[26];let H;e[27]===Symbol.for("react.memo_cache_sentinel")?(H=U=>P(U.target.value),e[27]=H):H=e[27];let $;e[28]!==p.placeholderKey||e[29]!==a?($=a(p.placeholderKey),e[28]=p.placeholderKey,e[29]=a,e[30]=$):$=e[30];let J;e[31]!==m||e[32]!==o||e[33]!==$?(J=s.jsx(Je,{id:"file-explorer-name",value:o,onChange:H,placeholder:$,autoFocus:!0,disabled:m}),e[31]=m,e[32]=o,e[33]=$,e[34]=J):J=e[34];let Z;e[35]!==T||e[36]!==J?(Z=s.jsxs("div",{className:"space-y-1.5",children:[T,J]}),e[35]=T,e[36]=J,e[37]=Z):Z=e[37];let _;e[38]!==E||e[39]!==Z?(_=s.jsxs("div",{className:"space-y-4 py-4",children:[E,Z]}),e[38]=E,e[39]=Z,e[40]=_):_=e[40];let I;e[41]!==w?(I=()=>w(!1),e[41]=w,e[42]=I):I=e[42];let k;e[43]!==a?(k=a("sandbox.fileExplorerNameDialog.cancel"),e[43]=a,e[44]=k):k=e[44];let W;e[45]!==m||e[46]!==I||e[47]!==k?(W=s.jsx(Ce,{type:"button",variant:"outline",onClick:I,disabled:m,children:k}),e[45]=m,e[46]=I,e[47]=k,e[48]=W):W=e[48];let K;e[49]!==m||e[50]!==o?(K=!o.trim()||m,e[49]=m,e[50]=o,e[51]=K):K=e[51];let Q;e[52]!==p.submitKey||e[53]!==m||e[54]!==a?(Q=m?s.jsxs(s.Fragment,{children:[s.jsx(fe,{className:"size-3.5"}),a("sandbox.fileExplorerNameDialog.saving")]}):a(p.submitKey),e[52]=p.submitKey,e[53]=m,e[54]=a,e[55]=Q):Q=e[55];let G;e[56]!==K||e[57]!==Q?(G=s.jsx(Ce,{type:"submit",disabled:K,children:Q}),e[56]=K,e[57]=Q,e[58]=G):G=e[58];let F;e[59]!==W||e[60]!==G?(F=s.jsxs(Bt,{children:[W,G]}),e[59]=W,e[60]=G,e[61]=F):F=e[61];let V;e[62]!==R||e[63]!==_||e[64]!==F||e[65]!==g?(V=s.jsx(qt,{className:"sm:max-w-md",children:s.jsxs("form",{onSubmit:R,children:[g,_,F]})}),e[62]=R,e[63]=_,e[64]=F,e[65]=g,e[66]=V):V=e[66];let B;return e[67]!==C||e[68]!==x||e[69]!==V?(B=s.jsx(Ht,{open:x,onOpenChange:C,children:V}),e[67]=C,e[68]=x,e[69]=V,e[70]=B):B=e[70],B}function Pn(O){const e=Se.c(47),{deleteTarget:x,deleteDirtyPaths:Y,fsActionPending:b,onOpenChange:N,onConfirm:L}=O,d=ve(),w=x?.kind==="directory",A=x!==null,m=w?"sandbox.fileExplorerDeleteDialog.titleFolder":"sandbox.fileExplorerDeleteDialog.titleFile";let a;e[0]!==d||e[1]!==m?(a=d(m),e[0]=d,e[1]=m,e[2]=a):a=e[2];let o;e[3]!==a?(o=s.jsx(Wt,{children:a}),e[3]=a,e[4]=o):o=e[4];let P;e[5]!==d?(P=d("sandbox.fileExplorerDeleteDialog.description"),e[5]=d,e[6]=P):P=e[6];const X=x?.name;let M;e[7]!==X?(M=s.jsx("span",{className:"font-mono",children:X}),e[7]=X,e[8]=M):M=e[8];let p;e[9]!==w||e[10]!==d?(p=w?d("sandbox.fileExplorerDeleteDialog.folderSuffix"):".",e[9]=w,e[10]=d,e[11]=p):p=e[11];let c;e[12]!==Y.length||e[13]!==d?(c=Y.length>0&&s.jsxs(s.Fragment,{children:[" ",Y.length===1?d("sandbox.fileExplorerDeleteDialog.unsavedChangesOne"):d("sandbox.fileExplorerDeleteDialog.unsavedChangesMany",{count:Y.length})]}),e[12]=Y.length,e[13]=d,e[14]=c):c=e[14];let C;e[15]!==P||e[16]!==M||e[17]!==p||e[18]!==c?(C=s.jsxs(Qt,{children:[P," ",M,p,c]}),e[15]=P,e[16]=M,e[17]=p,e[18]=c,e[19]=C):C=e[19];let z;e[20]!==C||e[21]!==o?(z=s.jsxs(Ut,{children:[o,C]}),e[20]=C,e[21]=o,e[22]=z):z=e[22];let R;e[23]!==d?(R=d("sandbox.fileExplorerDeleteDialog.cancel"),e[23]=d,e[24]=R):R=e[24];let S;e[25]!==b||e[26]!==R?(S=s.jsx(Yt,{disabled:b,children:R}),e[25]=b,e[26]=R,e[27]=S):S=e[27];const v=b||!x;let D;e[28]!==x||e[29]!==L?(D=H=>{H.preventDefault(),x&&L(x)},e[28]=x,e[29]=L,e[30]=D):D=e[30];let j;e[31]!==d?(j=d("sandbox.fileExplorerDeleteDialog.delete"),e[31]=d,e[32]=j):j=e[32];let g;e[33]!==v||e[34]!==D||e[35]!==j?(g=s.jsx(Xt,{disabled:v,onClick:D,children:j}),e[33]=v,e[34]=D,e[35]=j,e[36]=g):g=e[36];let E;e[37]!==S||e[38]!==g?(E=s.jsxs(Jt,{children:[S,g]}),e[37]=S,e[38]=g,e[39]=E):E=e[39];let y;e[40]!==z||e[41]!==E?(y=s.jsxs(Zt,{children:[z,E]}),e[40]=z,e[41]=E,e[42]=y):y=e[42];let T;return e[43]!==N||e[44]!==A||e[45]!==y?(T=s.jsx(_t,{open:A,onOpenChange:N,children:y}),e[43]=N,e[44]=A,e[45]=y,e[46]=T):T=e[46],T}const Mn="#d9a441";function Kn(O){const e=Se.c(63),{node:x,depth:Y,isExpanded:b,isSelected:N,isLoading:L,fileVisual:d,onOpen:w,onSelect:A,onNewFile:m,onNewFolder:a,onCopyPath:o,onCopyRelativePath:P,onRename:X,onDelete:M}=O,p=L===void 0?!1:L,c=ve(),C=x.kind==="directory",{Icon:z,color:R}=d,S=N&&"bg-accent";let v;e[0]!==S?(v=me("flex w-full items-center gap-1.5 px-2 py-1.5 text-left text-sm hover:bg-accent transition-colors",S),e[0]=S,e[1]=v):v=e[1];const D=`${Y*14+8}px`;let j;e[2]!==D?(j={paddingLeft:D},e[2]=D,e[3]=j):j=e[3];let g;e[4]!==w||e[5]!==A?(g=()=>{A(),w()},e[4]=w,e[5]=A,e[6]=g):g=e[6];let E;e[7]!==z||e[8]!==R||e[9]!==C||e[10]!==b||e[11]!==p?(E=C?s.jsxs(s.Fragment,{children:[p?s.jsx(fe,{className:"size-3.5 shrink-0 text-muted-foreground"}):b?s.jsx(hn,{size:14,className:"shrink-0 text-muted-foreground"}):s.jsx(en,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx(nn,{size:16,className:"shrink-0",style:{color:Mn}})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"w-3.5 shrink-0"}),s.jsx(z,{size:16,className:"shrink-0",style:{color:R}})]}),e[7]=z,e[8]=R,e[9]=C,e[10]=b,e[11]=p,e[12]=E):E=e[12];let y;e[13]!==x.name?(y=s.jsx("span",{className:"truncate",children:x.name}),e[13]=x.name,e[14]=y):y=e[14];let T;e[15]!==v||e[16]!==j||e[17]!==g||e[18]!==E||e[19]!==y?(T=s.jsx(xn,{asChild:!0,children:s.jsxs("button",{type:"button",className:v,style:j,onClick:g,children:[E,y]})}),e[15]=v,e[16]=j,e[17]=g,e[18]=E,e[19]=y,e[20]=T):T=e[20];let H;e[21]!==c?(H=c("sandbox.fileTreeRow.newFile"),e[21]=c,e[22]=H):H=e[22];let $;e[23]!==m||e[24]!==H?($=s.jsx(de,{onSelect:m,children:H}),e[23]=m,e[24]=H,e[25]=$):$=e[25];let J;e[26]!==c?(J=c("sandbox.fileTreeRow.newFolder"),e[26]=c,e[27]=J):J=e[27];let Z;e[28]!==a||e[29]!==J?(Z=s.jsx(de,{onSelect:a,children:J}),e[28]=a,e[29]=J,e[30]=Z):Z=e[30];let _;e[31]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(rt,{}),e[31]=_):_=e[31];let I;e[32]!==c?(I=c("sandbox.fileTreeRow.copyPath"),e[32]=c,e[33]=I):I=e[33];let k;e[34]!==o||e[35]!==I?(k=s.jsx(de,{onSelect:o,children:I}),e[34]=o,e[35]=I,e[36]=k):k=e[36];let W;e[37]!==c?(W=c("sandbox.fileTreeRow.copyRelativePath"),e[37]=c,e[38]=W):W=e[38];let K;e[39]!==P||e[40]!==W?(K=s.jsx(de,{onSelect:P,children:W}),e[39]=P,e[40]=W,e[41]=K):K=e[41];let Q;e[42]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(rt,{}),e[42]=Q):Q=e[42];let G;e[43]!==c?(G=c("sandbox.fileTreeRow.rename"),e[43]=c,e[44]=G):G=e[44];let F;e[45]!==X||e[46]!==G?(F=s.jsx(de,{onSelect:X,children:G}),e[45]=X,e[46]=G,e[47]=F):F=e[47];let V;e[48]!==c?(V=c("sandbox.fileTreeRow.delete"),e[48]=c,e[49]=V):V=e[49];let B;e[50]!==M||e[51]!==V?(B=s.jsx(de,{variant:"destructive",onSelect:M,children:V}),e[50]=M,e[51]=V,e[52]=B):B=e[52];let U;e[53]!==$||e[54]!==Z||e[55]!==k||e[56]!==K||e[57]!==F||e[58]!==B?(U=s.jsxs(mn,{className:"w-52",children:[$,Z,_,k,K,Q,F,B]}),e[53]=$,e[54]=Z,e[55]=k,e[56]=K,e[57]=F,e[58]=B,e[59]=U):U=e[59];let te;return e[60]!==U||e[61]!==T?(te=s.jsxs(pn,{children:[T,U]}),e[60]=U,e[61]=T,e[62]=te):te=e[62],te}const st=200,On=2,An=250,it=200;function zn(O,e){return gn(O,e)}function $n(O){const e=Se.c(9),{text:x,query:Y}=O;let b,N,L;if(e[0]!==Y||e[1]!==x){const{leadingEllipsis:w,segments:A}=En(x,Y);b="truncate font-mono text-muted-foreground",N=w&&s.jsx("span",{className:"text-muted-foreground/50",children:"…"}),L=A.map(In),e[0]=Y,e[1]=x,e[2]=b,e[3]=N,e[4]=L}else b=e[2],N=e[3],L=e[4];let d;return e[5]!==b||e[6]!==N||e[7]!==L?(d=s.jsxs("span",{className:b,children:[N,L]}),e[5]=b,e[6]=N,e[7]=L,e[8]=d):d=e[8],d}function In(O,e){return O.match?s.jsx("span",{className:"rounded-[2px] bg-primary/20 text-foreground",children:O.text},e):s.jsx("span",{children:O.text},e)}function xs({orgSlug:O,virtualMcpId:e,branch:x,threadId:Y,openPath:b}){const N={orgSlug:O,virtualMcpId:e,branch:x,threadId:Y},[L,d]=f.useState({files:[],directories:[],truncated:!1}),{files:w,directories:A}=L,[m,a]=f.useState(new Set),[o,P]=f.useState(null),[X,M]=f.useState(null),[p,c]=f.useState([]),[C,z]=f.useState(""),[R,S]=f.useState(null),[v,D]=f.useState(null),[j,g]=f.useState(!1),[E,y]=f.useState(!1),[T,H]=f.useState(!1),[$,J]=f.useState(!1),[,Z]=f.useState(new Set),[_,I]=f.useState(new Set),k=f.useRef(0),W=f.useRef(null),K=f.useRef(new Set),Q=f.useRef(new Map),G=f.useRef(null),F=f.useRef(0),V=f.useRef(null),B=f.useRef(null),U=f.useRef(null);function te(t){Z(n=>{const r=typeof t=="function"?t(n):t;return K.current=r,r})}const[oe,ae]=f.useState(new Map),Fe=f.useRef(null),[se,pe]=f.useState(null),{sendMessage:lt}=cn(),{openSidePanel:ot}=fn(),he=tn(),[q,re]=f.useState(null),[Te,ke]=f.useState(null),[ge,ye]=f.useState(!1);async function ie(t,n){const r=await fetch(zn(N,t),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const i=await r.json().catch(()=>({}));throw new Error(i.error??`Request failed (${r.status})`)}return r.json()}async function be(){he.invalidateQueries({queryKey:nt(N)})}function $e(t,n,r){navigator.clipboard.writeText(r).then(()=>ee.success(t("sandbox.fileExplorer.textCopied",{label:n})),()=>ee.error(t("sandbox.fileExplorer.failedToCopyText",{label:n.toLowerCase()})))}function at(t){const n=Tn(t);if(!n)return;const r=`${O}/${e}/${x}`;he.setQueryData(Ze.decofile(r),i=>{if(!i)return i;const{[n]:l,...u}=i;return u}),he.invalidateQueries({queryKey:Ze.liveMeta(O,e,x)})}function ct(t){const n=t.kind==="file"?[t.path]:w.filter(r=>r.startsWith(".deco/blocks/")).map(r=>Ne(r)).filter(r=>r===t.path||r.startsWith(`${t.path}/`));for(const r of n)at(r)}function dt(t){const n=Ne(t);return p.filter(r=>{if(r!==n&&!r.startsWith(`${n}/`))return!1;const i=oe.get(r);return!!(i?.loaded&&i.editorValue!==i.savedContent)})}function Ie(t){c(n=>n.map(r=>t(r)).filter(r=>r!==null)),P(n=>n&&t(n)),ae(n=>{const r=new Map;for(const[i,l]of n){const u=t(i);u&&r.set(u,l)}return r}),M(n=>{if(!n)return n;const r=t(n.path);return r?r===n.path?n:{...n,path:r,name:r.split("/").pop()??r}:null})}function ft(t){const n=Ne(t);M(r=>r&&(r.path===n||r.path.startsWith(`${n}/`)?null:r)),Ie(r=>r===n||r.startsWith(`${n}/`)?null:r)}async function ut(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,A))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("write",{path:ne(r),content:""}),await ue(),await be(),re(null),xe(r)}async function xt(t,n){if(!q)return;const r=Ee(q.parentDir,n);if(ze(r,w,A))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));const i=ne(r);await ie("mkdir",{path:i}),d(l=>({...l,directories:l.directories.includes(i)?l.directories:[...l.directories,i]})),await ue(),await be(),re(null),a(l=>{const u=new Set(l);for(const le of Oe(r))u.add(le);return u.add(r),u}),M({name:n,path:r,kind:"directory",children:[]})}async function mt(t,n){if(!q)return;const r=q.node.path,i=De(r),l=Ee(i,n);if(l===r){re(null);return}if(ze(l,w,A))throw new Error(t("sandbox.fileExplorer.fileAlreadyExists",{name:n}));await ie("rename",{from:ne(r),to:ne(l)}),Ie(u=>u===r?l:u.startsWith(`${r}/`)?Ee(l,u.slice(r.length+1)):u),await ue(),await be(),re(null)}async function pt(t,n){ye(!0);try{await ie("unlink",{path:ne(n.path),recursive:n.kind==="directory"}),ct(n),ft(n.path),await ue(),await be(),ke(null),ee.success(t("sandbox.fileExplorer.fileDeleted",{name:n.name}))}catch(r){ee.error(r instanceof Error?r.message:t("sandbox.fileExplorer.deleteFailed"))}finally{ye(!1)}}async function ht(t,n){const r=Sn(n);if(r){ee.error(r);return}ye(!0);try{q?.mode==="new-file"?(await ut(t,n),ee.success(t("sandbox.fileExplorer.fileCreated",{name:n}))):q?.mode==="new-folder"?(await xt(t,n),ee.success(t("sandbox.fileExplorer.folderCreated",{name:n}))):q?.mode==="rename"&&(await mt(t,n),ee.success(t("sandbox.fileExplorer.renamedTo",{name:n})))}catch(i){ee.error(i instanceof Error?i.message:t("sandbox.fileExplorer.operationFailed"))}finally{ye(!1)}}const Ge=f.useRef(!1);Ge.current||(Ge.current=!0,W.current=ue());const[gt,yt]=f.useState(null),h=ve();if(b&&b!==gt){yt(b);const t=b;queueMicrotask(()=>{yn(t)&&xe(t)})}async function Re(t){const n=await ie("glob",t);return{files:n.files??[],directories:n.directories??[],truncated:n.truncated}}function Ve(t,n,r){if(r!==k.current)return!1;let i=!1;return d(l=>{const u=n?kn(l.files,l.directories,t,l.truncated):{files:t.files,directories:t.directories??[],truncated:!!t.truncated};return i=!!u.truncated,{files:u.files,directories:u.directories,truncated:i}}),i&&ee.warning(h("sandbox.fileExplorer.fileListTruncated")),i}async function bt(t){const n=Q.current.get(t);if(n)return n;const r=k.current,i=(async()=>{const l=await Re({pattern:"**/*",path:ne(t),limit:Pe}),u=Ve(l,!0,r);return!u&&r===k.current&&te(le=>{const we=new Set(le);return we.add(t),we}),u})();Q.current.set(t,i);try{return await i}finally{Q.current.delete(t)}}async function Be(t){if(!Ae(t,K.current))return!1;I(n=>new Set(n).add(t));try{return await bt(t)}finally{I(n=>{const r=new Set(n);return r.delete(t),r})}}async function wt(t,n){const r=new Set(K.current);for(const i of Oe(n)){if(!Ae(i,r))continue;if(await Be(i))throw new Error(t("sandbox.fileExplorer.folderListingTruncated"));r.add(i)}}async function ue(){const t=++k.current;V.current=null,B.current=null,Q.current.clear(),H(!0),te(new Set),a(new Set),I(new Set);try{const n=await Re({pattern:"**/*",limit:Pe,maxDepth:bn});Ve(n,!1,t),J(!0)}catch{$&&ee.error(h("sandbox.fileExplorer.failedToRefreshFileTree"))}finally{H(!1)}}async function qe(t){if(!oe.get(t)?.loaded){ae(r=>{const i=new Map(r);return i.set(t,{savedContent:"",editorValue:"",loaded:!1}),i});try{const r=await ie("read",{path:ne(t),full:!0}),i=Cn(r.content??"");ae(l=>{const u=new Map(l);return u.set(t,{savedContent:i,editorValue:i,loaded:!0}),u})}catch{}}}function jt(){F.current++,S(null),D(null),g(!1),y(!1)}async function Nt(){const t=k.current,n=V.current;if(n&&n.generation===t)return n.files;const r=B.current;if(r&&r.generation===t)return r.promise;const i=(async()=>{const l=await Re({pattern:"**/*",limit:Pe});return k.current===t&&(V.current={generation:t,files:l.files}),l.files})();B.current={generation:t,promise:i};try{return await i}finally{B.current?.generation===t&&(B.current=null)}}async function Dt(t,n){try{const r=await Nt();if(n!==F.current)return;S(vn(r,t,it))}catch{if(n!==F.current)return;S([])}}async function Et(t,n){g(!0);try{const r=await ie("grep",{pattern:t,output_mode:"content",ignore_case:!0,fixed_strings:!0,limit:st});if(n!==F.current)return;D(Fn(r.results??"")),y((r.matchCount??0)>=st)}catch{if(n!==F.current)return;D([]),y(!1)}finally{n===F.current&&g(!1)}}function Ct(t){const n=t.trim(),r=++F.current;Dt(n,r),n.length<On?(D(null),g(!1),y(!1)):Et(n,r)}function St(t){if(z(t),G.current&&clearTimeout(G.current),!t.trim()){jt();return}G.current=setTimeout(()=>{Ct(t)},An)}function He(t){const n=U.current;if(!n||n.path!==o)return;U.current=null;const r=Math.max(1,n.line);t.revealLineInCenter(r),t.setPosition({lineNumber:r,column:1}),t.focus()}function vt(t){U.current={path:t.path,line:t.line};const n=o===t.path&&oe.get(t.path)?.loaded;xe(t.path),n&&Fe.current&&He(Fe.current)}async function Ft(t,n){try{await ie("write",{path:ne(t),content:n}),je("file saved via sandbox /write",{path:t}),he.invalidateQueries({queryKey:nt(N)});try{const r=await un(N);je("git status after save",r)}catch(r){je("git status after save failed",{path:t,error:r instanceof Error?r.message:String(r)})}ae(r=>{const i=new Map(r),l=i.get(t);return l&&i.set(t,{...l,savedContent:n}),i})}catch(r){je("file save failed",{path:t,error:r instanceof Error?r.message:String(r)})}}function Tt(t){P(t),M({name:t.split("/").pop()??t,path:t,kind:"file",children:[]}),pe(null),p.includes(t)||c(n=>[...n,t]),qe(t)}function kt(t){const n=oe.get(t);n?.loaded&&n.editorValue!==n.savedContent&&!window.confirm(h("sandbox.fileExplorer.discardUnsavedChangesConfirm"))||(c(i=>{const l=i.filter(u=>u!==t);return o===t&&P(l[l.length-1]??null),l}),ae(i=>{const l=new Map(i);return l.delete(t),l}))}function We(t){a(n=>{const r=new Set(n);return r.has(t)?r.delete(t):r.add(t),r})}async function Rt(t){if(Ae(t,K.current))try{if(await Be(t))return}catch(n){ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToLoadFolder"));return}We(t)}async function Lt(t,n){if(n){We(t);return}await Rt(t)}async function Pt(t){await W.current,await wt(h,t);const n=Oe(t);a(r=>{const i=new Set(r);for(const l of n)i.add(l);return i}),Tt(t)}function xe(t){Pt(t).catch(n=>{ee.error(n instanceof Error?n.message:h("sandbox.fileExplorer.failedToOpenFile"))})}function Mt(){return X?.kind==="directory"?X.path:X?.kind==="file"?De(X.path):o?De(o):"/"}function Qe(t){const n=Mt();re({mode:t,parentDir:n,node:{name:"",path:n,kind:"directory",children:[]}})}const Kt=wn(w,A),Ue=jn(Kt,m),Le=R?.length??0,Ye=Nn(v??[]),Xe=v?.length??0,ce=o?oe.get(o):null,Ot=ce?.loaded&&ce.editorValue!==ce.savedContent,At=Te?dt(Te.path):[],zt=(t,n)=>{Fe.current=t,He(t),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyS,async()=>{if(!o)return;const r=t.getValue();await Ft(o,r)}),t.addCommand(n.KeyMod.CtrlCmd|n.KeyCode.KeyK,()=>{const r=t.getSelection(),i=t.getModel();if(!r||!i||!o)return;const l=i.getValueInRange(r);pe({filePath:o,lineStart:r.startLineNumber,lineEnd:r.endLineNumber,selectedCode:l})})};function $t(t){if(!se)return;const n=[`The user selected code in the file explorer and asked: **"${t.trim()}"**`,"",`**File:** \`${se.filePath}\``,`**Lines:** ${se.lineStart}–${se.lineEnd}`];if(se.selectedCode){const r=Ke(se.filePath),i=se.selectedCode.replace(/```/g,"`` `");n.push("","**Selected code:**","```"+r,i,"```")}n.push("","Please read the source file, locate the code, and apply the requested change."),ot(),lt({parts:[{type:"text",text:n.join(`
|
|
2
|
-
`)}]}),pe(null)}return T&&!$?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsxs("div",{className:"flex h-full w-full overflow-hidden",children:[s.jsxs("div",{className:"w-64 shrink-0 border-r flex flex-col overflow-hidden",children:[s.jsxs("div",{className:"flex items-center gap-1 p-2 border-b",children:[s.jsxs("div",{className:"relative min-w-0 flex-1",children:[s.jsx(rn,{size:14,className:"absolute left-2 top-1/2 -translate-y-1/2 text-muted-foreground"}),s.jsx("input",{type:"text",value:C,onChange:t=>St(t.target.value),placeholder:h("sandbox.fileExplorer.searchFilesPlaceholder"),"aria-label":h("sandbox.fileExplorer.searchFilesLabel"),className:"w-full rounded-md border border-input bg-transparent pl-7 pr-2 py-1.5 text-xs placeholder:text-muted-foreground focus-ring"})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":h("sandbox.fileExplorer.newFileLabel"),onClick:()=>Qe("new-file"),children:s.jsx(sn,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFile")})]}),s.jsxs(_e,{children:[s.jsx(et,{asChild:!0,children:s.jsx(Ce,{type:"button",variant:"ghost",size:"icon-sm",className:"shrink-0","aria-label":h("sandbox.fileExplorer.newFolderLabel"),onClick:()=>Qe("new-folder"),children:s.jsx(ln,{size:14})})}),s.jsx(tt,{side:"bottom",children:h("sandbox.fileExplorer.newFolder")})]})]}),s.jsx(an,{className:"flex-1",children:s.jsxs("div",{className:"py-1",children:[!C&&Ue.map(t=>{const{node:n,depth:r}=t,i=n.kind==="directory",l=m.has(n.path),u=X?.path===n.path,le=Dn(n.path,n.kind),we=i&&_.has(n.path);return s.jsx(Kn,{node:n,depth:r,isExpanded:l,isSelected:u,isLoading:we,fileVisual:Me(n.name),onSelect:()=>M(n),onOpen:()=>{i?Lt(n.path,l):xe(n.path)},onNewFile:()=>re({mode:"new-file",node:n,parentDir:le}),onNewFolder:()=>re({mode:"new-folder",node:n,parentDir:le}),onCopyPath:()=>$e(h,"Path",Ne(n.path)),onCopyRelativePath:()=>$e(h,"Relative path",ne(n.path)),onRename:()=>re({mode:"rename",node:n,parentDir:le}),onDelete:()=>ke(n)},n.path)}),!C&&$&&Ue.length===0&&s.jsx("div",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFilesFound")}),C&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-2xs font-medium text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.files")}),Le>0&&s.jsxs("span",{className:"normal-case tracking-normal text-muted-foreground/70",children:[Le,Le>=it?"+":""]})]}),R!==null&&R.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noFileNamesMatch")}),R?.map(t=>{const n=t.split("/").pop()??t,r=De(t),{Icon:i,color:l}=Me(n),u=o===t;return s.jsxs("button",{type:"button",onClick:()=>xe(t),title:t,className:me("flex w-full items-center gap-1.5 px-3 py-1 text-left text-xs hover:bg-accent",u&&"bg-accent"),children:[s.jsx(i,{size:14,className:me("shrink-0",l)}),s.jsx("span",{className:"max-w-40 shrink-0 truncate",children:n}),r!=="/"&&s.jsx("span",{className:"truncate text-muted-foreground/60",children:r})]},t)})]}),C&&s.jsxs("div",{className:"mt-1 border-t pt-1",children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 pb-0.5 pt-1 text-2xs font-medium text-muted-foreground",children:[s.jsx("span",{children:h("sandbox.fileExplorer.inFiles")}),Xe>0&&s.jsxs("span",{className:"text-muted-foreground/70 normal-case tracking-normal",children:[Xe,E?"+":""]}),j&&s.jsx(fe,{className:"size-[10px]"})]}),!j&&v!==null&&Ye.length===0&&s.jsx("div",{className:"px-3 py-1 text-xs text-muted-foreground",children:h("sandbox.fileExplorer.noMatchesInFileContents")}),Ye.map(t=>{const n=t.path.split("/").pop()??t.path,{Icon:r,color:i}=Me(n);return s.jsxs("div",{children:[s.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1 text-xs text-muted-foreground",children:[s.jsx(r,{size:14,className:me("shrink-0",i)}),s.jsx("span",{className:"truncate",children:n}),s.jsx("span",{className:"text-muted-foreground/60",children:t.matches.length})]}),t.matches.map(l=>s.jsxs("button",{type:"button",onClick:()=>vt(l),title:`${t.path}:${l.line}`,className:"flex w-full items-baseline gap-2 pl-8 pr-3 py-0.5 text-left text-xs hover:bg-accent",children:[s.jsx("span",{className:"shrink-0 tabular-nums text-muted-foreground",children:l.line}),s.jsx($n,{text:l.text,query:C})]},`${t.path}:${l.line}`))]},t.path)})]})]})})]}),s.jsxs("div",{className:"relative flex-1 flex flex-col overflow-hidden",children:[p.length>0&&s.jsx("div",{className:"flex items-center border-b overflow-x-auto shrink-0",children:p.map(t=>{const n=oe.get(t),r=n?.loaded&&n.editorValue!==n.savedContent,i=o===t,l=t.split("/").pop()??t;return s.jsxs("div",{className:me("flex items-center gap-1 px-3 py-1.5 text-xs border-r cursor-pointer transition-colors",i?"bg-background text-foreground":"bg-muted/50 text-muted-foreground hover:bg-accent"),onClick:()=>{P(t),qe(t)},onKeyDown:()=>{},role:"tab",tabIndex:0,"aria-selected":i,children:[s.jsx("span",{className:"truncate max-w-32",children:l}),r&&s.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-foreground/60 shrink-0"}),s.jsx("button",{type:"button",className:"ml-1 p-0.5 hover:bg-accent-foreground/10 rounded-lg",onClick:u=>{u.stopPropagation(),kt(t)},children:s.jsx(on,{size:12})})]},t)})}),se&&s.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 z-20 mt-2",style:{width:"360px"},children:s.jsxs("form",{className:"flex w-full items-center gap-1.5 rounded-xl glass px-3 py-1.5",onSubmit:t=>{t.preventDefault();const r=t.currentTarget.elements.namedItem("askAiInput");r.value.trim()&&$t(r.value)},children:[s.jsx("input",{name:"askAiInput",autoFocus:!0,type:"text",placeholder:h("sandbox.fileExplorer.askTheAiPlaceholder"),className:"min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground",onKeyDown:t=>{t.stopPropagation(),t.key==="Escape"&&pe(null)}}),s.jsx("button",{type:"submit",className:"flex h-6 w-6 shrink-0 items-center justify-center rounded-lg bg-foreground text-background transition-opacity",title:h("sandbox.fileExplorer.send"),children:s.jsxs("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none","aria-hidden":"true",children:[s.jsx("title",{children:h("sandbox.fileExplorer.send")}),s.jsx("path",{d:"M5 9V1M1 5l4-4 4 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),s.jsx("div",{className:"flex-1 overflow-hidden",children:o&&ce?.loaded?s.jsx(dn,{language:Ke(o),theme:document.documentElement.classList.contains("dark")?"vs-dark":"light",value:ce.editorValue,path:o,onChange:t=>{const n=o;n&&ae(r=>{const i=new Map(r),l=i.get(n);return l&&i.set(n,{...l,editorValue:t??""}),i})},onMount:zt,loading:s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}),options:{fontSize:13,scrollBeyondLastLine:!1,automaticLayout:!0,lineNumbersMinChars:2,wordWrap:"on",minimap:{enabled:!1},padding:{top:12,bottom:12},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:8,horizontalScrollbarSize:8}}},o):o&&!ce?.loaded?s.jsx("div",{className:"flex items-center justify-center h-full w-full",children:s.jsx(fe,{className:"size-5 text-muted-foreground"})}):s.jsx("div",{className:"flex items-center justify-center h-full w-full text-sm text-muted-foreground",children:h("sandbox.fileExplorer.selectFileToEdit")})}),o&&s.jsxs("div",{className:"flex items-center justify-between px-3 py-1 border-t text-2xs text-muted-foreground shrink-0",children:[s.jsx("span",{className:"truncate",children:o}),s.jsxs("span",{children:[h(Ot?"sandbox.fileExplorer.modified":"sandbox.fileExplorer.saved")," ","· ",Ke(o)]})]})]}),s.jsx(Ln,{open:q!==null,mode:q?.mode??"new-file",initialName:q?.mode==="rename"?q.node.name:"",parentLabel:q&&q.mode!=="rename"?q.parentDir==="/"?"/":ne(q.parentDir):void 0,isPending:ge,onSubmit:t=>ht(h,t),onOpenChange:t=>{!t&&!ge&&re(null)}}),s.jsx(Pn,{deleteTarget:Te,deleteDirtyPaths:At,fsActionPending:ge,onOpenChange:t=>{!t&&!ge&&ke(null)},onConfirm:t=>{pt(h,t)}})]})}export{xs as FileExplorer};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as P,b as B,H as oe,a as U,r as I,j as s,ap as re,n as M,a4 as q,h as ne,l as W,L as ye,C as Z,aq as _e,K as Se,m as Ne,B as ve,ad as ke}from"./index-DWeEV7We.js";import{C as we}from"./index-kEylUewg.js";import{b as ie}from"./input-BuBZNGTJ.js";import{D as le,a as ae}from"./chat-context-CY54pZM0.js";import{a as ce}from"./use-organization-settings-W94bfajr.js";import{C as me,u as $e,F as Ce,R as He,M as Te,a as Ae,b as Pe,P as Ee}from"./project-feed-YQyJeiFG.js";import{I as Be}from"./icon-button-BVxTa5XQ.js";import{a as De,T as X}from"./toggle-group-CJuulzzH.js";import{P as Me,A as Ie}from"./agent-icon-re0J_Z0y.js";import{i as Fe}from"./sprints-C1z9xhcL.js";import{F as Le}from"./file-preview-Be1EgiV5.js";import{u as J,a as Oe}from"./use-org-fs-DxMirFhu.js";import{L as Re}from"./preview-dialog-DWLZfYka.js";import{a as ze,r as Ge,s as Ke}from"./daily-pulse-B2Ki-uF7.js";import{N as Ye}from"./new-project-dialog-Bk4cWPiU.js";import{P as Ue}from"./projects-empty-state-vsReUsxx.js";import{b as fe}from"./task-route-AKUsZtL1.js";import{u as qe}from"./use-inbox-feed-BsHLwaAX.js";import{b as We}from"./use-recent-apps-C5dLOTl5.js";import{s as ue}from"./use-project-scope-CS7CU-oc.js";import{b as de}from"./repository-binding-CCilIqI-.js";import{s as Ze}from"./Plus-DpKYZahY.js";import{i as Ve}from"./UserSquare-BQlfSW-S.js";import{E as Xe}from"./empty-state-Dv2-C-QD.js";import{R as Je}from"./repository-import-picker-DaSOYRH5.js";import{o as Qe}from"./shell-layout-CBd6hqhZ.js";import{i as et,n as tt}from"./ArrowUp-CSc_Tdqb.js";import{u as st}from"./use-navigate-to-agent-CqJEEwa9.js";import{s as ot,r as rt}from"./project-profile-Cc4MG3QN.js";import{i as nt}from"./LinkBroken01-D8qYefsX.js";import"./use-mobile-edOvKjBr.js";import"./use-sidebar-collapsed-3UQA8uHW.js";import"./use-chat-layout-state-CguMNiu5.js";import"./thread-route-DIf2ZGZx.js";import"./use-panel-navigate-CJ83kP0Q.js";import"./thread-intent-CZKTHJpR.js";import"./use-mcp-client-B_ly4LOn.js";import"./auth-DOa4-SAf.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-n9peNJG6.js";import"./task-board-TRGqshFr.js";import"./schema-Donkz7O8.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-Bvq8EBUJ.js";import"./index-VD1AeowC.js";import"./toolbar-icon-button-Df5B45y-.js";import"./sheet-BxBmImQt.js";import"./resizable-CzyrVCQ0.js";import"./usage-stats-BU-m1tI0.js";import"./tool-namespace-Oer3Ba2E.js";import"./form-B1NaG_RH.js";import"./label-BpaBIQwW.js";import"./utils-CVEq3hMx.js";import"./markdown-CLfaxlib.js";import"./use-copy-3yMS-Tp7.js";import"./Copy01-CH_2hZDS.js";import"./ZoomOut-CITVxJZc.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-C12NB9sw.js";import"./XClose-Ci0TVCjl.js";import"./file-type-icon-DVstbiT5.js";import"./autosend-DqPNCAG8.js";import"./chat-draft-CA_OHfW2.js";import"./use-session-runtime-IDYaEeQh.js";import"./ShoppingBag01-BeE3fDG1.js";import"./Image01-DNMg6qgq.js";import"./Upload01-Crxkqzoh.js";import"./AlertCircle-BNC3Ncf7.js";import"./select-DQAyqt3X.js";import"./index-BdQq_4o_.js";import"./ChevronUp-Cvi5Ri1X.js";import"./ArrowLeft-DSfQsYgJ.js";import"./tabs-DMHYY7LP.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-CCrKLCBg.js";import"./use-ai-providers-D4eYzGSU.js";import"./index-BWB-agB0.js";import"./checkbox-rRz405E3.js";import"./Minus-DwtnPw8f.js";import"./ChevronSelectorVertical-D1XQchTX.js";import"./Key01-CYO-VVE0.js";import"./Tool01-DlRbIajK.js";import"./SearchMd-DEGTr-sj.js";import"./ai-providers-logos-DD3qZ33J.js";import"./Monitor01-DnG7mfvQ.js";import"./popover-B86mZmdW.js";import"./drawer-BnzahE0M.js";import"./input-HYlwfQuM.js";import"./suggestion-DPLcS--k.js";import"./use-mcp-prompts-BA7EjH33.js";import"./Link01-CF8fcW9w.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-B0grxtjm.js";import"./plan-ladder-DeJKloSP.js";import"./add-connection-dialog-DdXjtVjs.js";import"./collection-search-D2Tz81E9.js";import"./extract-connection-data-dqMfPsQ2.js";import"./metadata-D72DunRR.js";import"./connection-Scxq7jNT.js";import"./url-slug-BQHTBNww.js";import"./connection-card-3MM4lst1.js";import"./useInfiniteQuery-hQnCuVJq.js";import"./infiniteQueryObserver-DUsg51OD.js";import"./connection-slug-CITJ0kGN.js";import"./integration-icon-B_WXNT4I.js";import"./textarea-WKkkWTp0.js";import"./use-connection-BkFIpsi3.js";import"./schema-B1XL4aIc.js";import"./connection-form-helpers-B7-ufErn.js";import"./Trash01-BFvvA8Ru.js";import"./authenticate-and-persist-oauth-pxVygBEO.js";import"./mcp-oauth-tsfDvMhI.js";import"./mcp-oauth-D3kIeoXi.js";import"./collection-tabs-Bok9wStk.js";import"./badge-DvLvPjJh.js";import"./use-infinite-scroll-DH8-QEHI.js";import"./useSuspenseInfiniteQuery-h_sOQ54p.js";import"./use-task-board-events-DYXd2eOB.js";import"./client-icons-CwEc9FbM.js";import"./CheckCircle-CeehyyfU.js";import"./chart-DT_frMFC.js";import"./index--IjqY4i3.js";import"./symbol-Be_a3wI8.js";import"./CategoricalChart-CC0BCPZV.js";import"./project-icon-B5VDWXmE.js";import"./project-apps-4C1tnuZE.js";import"./config-CAPCGzxo.js";import"./core.esm-DBjf08pl.js";import"./ReferenceLine-BKlSv2sh.js";import"./CartesianChart-gkklXbpG.js";import"./BarChart-Cb9KgXbt.js";import"./tooltipContext-CNRJnKg_.js";import"./ActiveShapeUtils-BDUmkFYS.js";import"./Sector-D9d9OYkn.js";import"./ErrorBarContext-CSeq7Tol.js";import"./repository-picker-zJbNOFiG.js";import"./use-debounced-value-TwO3j2Wf.js";import"./task-assignee-avatar-HjmFD6tX.js";import"./task-key-BCHdFiOO.js";import"./Building02-Cn2tQJnv.js";import"./CreditCard01-Cn3zS3gY.js";import"./DotsVertical-DniMDeeL.js";import"./Globe04-BIRXqM09.js";import"./SwitchHorizontal01-D1SbwE-4.js";import"./Sun-D6e346Yx.js";import"./Play-H8L3UHLo.js";import"./Users01-B0uoLuQA.js";import"./utils-CdL70Bws.js";import"./editor-Cxo0boMA.js";import"./preview-content-DJCWiflb.js";import"./file-share-button-C0sebF8X.js";import"./use-deployment-admin-CR-rfRjc.js";import"./admin-fetch-BhTJlAsX.js";import"./use-clock-tick-B-VqHoGD.js";import"./command-BzGEMEWU.js";import"./index-DOhrAFZP.js";import"./required-auth-layout-CjomhEXK.js";import"./use-org-sso-BYdMcBEF.js";const Y="home",pe="brief";function ge(t){return`users/${t}/brief`}function it(t,e){return`${t}/${e}.html`}function lt(t){const e=String(t.getFullYear()).padStart(4,"0"),o=String(t.getMonth()+1).padStart(2,"0"),i=String(t.getDate()).padStart(2,"0");return`${e}-${o}-${i}`}function at(t){if(!t.endsWith(".html"))return null;const e=t.slice(0,-5);return Fe(e)?e:null}const ct=7;function he(t,e){return Math.round((Date.parse(`${e}T00:00:00Z`)-Date.parse(`${t}T00:00:00Z`))/864e5)}function mt(t,e){let o=null;for(const i of t){const n=at(i);if(!n||o&&n<=o.day)continue;const l=he(n,e);l>=0&&l<ct&&(o={name:i,day:n})}return o}const Q=t=>t.slice(t.lastIndexOf("/")+1);function ee(t,e,o,i){const n=o.filter(r=>r.kind==="file"),l=mt(n.map(r=>Q(r.path)),i),a=l&&n.find(r=>Q(r.path)===l.name);return l&&a?{scope:t,path:it(e,l.day),filename:l.name,size:a.size,day:l.day,ageDays:he(l.day,i)}:null}function ft({userId:t,personal:e,org:o,today:i}){return[t?ee("personal",ge(t),e,i):null,ee("org",pe,o,i)].filter(n=>n!==null)}function ut(t,e){return e===0?t("home.dailyBrief.today"):e===1?t("home.dailyBrief.yesterday"):t("home.dailyBrief.daysAgo",{count:e})}function dt(t,e){return new Date(`${e}T12:00:00Z`).toLocaleDateString(t,{weekday:"long",day:"numeric",month:"long",timeZone:"UTC"})}function pt(){const t=P.c(54),e=B(),[o]=oe(),{data:i}=U.useSession(),n=i?.user?.id,l=J(Y,pe),a=n??"";let r;t[0]!==a?(r=ge(a),t[0]=a,t[1]=r):r=t[1];const c=!!n;let m;t[2]!==c?(m={enabled:c},t[2]=c,t[3]=m):m=t[3];const f=J(Y,r,m),u=Oe(Y),[g,p]=I.useState(null),[j,x]=I.useState(!1);let b,h,d,_,y,S,N,C,v,w;if(t[4]!==l.data||t[5]!==f.data||t[6]!==o||t[7]!==u||t[8]!==g||t[9]!==e||t[10]!==n){_=Symbol.for("react.early_return_sentinel");e:{const E=ft({userId:n,personal:f.data??[],org:l.data??[],today:lt(new Date)});if(h=E.find(z=>z.scope===g)??E[0],!h){_=null;break e}w="flex flex-col overflow-hidden surface";let D;t[21]!==e?(D=e("home.dailyBrief.title"),t[21]=e,t[22]=D):D=t[22];const R=s.jsxs("h2",{className:"flex min-w-0 items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[D,s.jsxs("span",{className:"truncate text-xs font-normal text-muted-foreground",children:[ut(e,h.ageDays)," ·"," ",dt(o.language,h.day)]})]}),V=E.length>1&&s.jsxs(De,{type:"single",variant:"segmented",size:"sm",value:h.scope,onValueChange:z=>{(z==="personal"||z==="org")&&p(z)},children:[s.jsx(X,{value:"personal",className:"px-2.5 text-xs",children:e("home.dailyBrief.personal")}),s.jsx(X,{value:"org",className:"px-2.5 text-xs",children:e("home.dailyBrief.org")})]});let F;t[23]!==e?(F=e("home.dailyBrief.fullscreen"),t[23]=e,t[24]=F):F=t[24];let G,K;t[25]===Symbol.for("react.memo_cache_sentinel")?(G=()=>x(!0),K=s.jsx(Me,{size:14}),t[25]=G,t[26]=K):(G=t[25],K=t[26]);let L;t[27]!==F?(L=s.jsx(Be,{label:F,onClick:G,children:K}),t[27]=F,t[28]=L):L=t[28];let O;t[29]!==V||t[30]!==L?(O=s.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[V,L]}),t[29]=V,t[30]=L,t[31]=O):O=t[31],t[32]!==R||t[33]!==O?(d=s.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[R,O]}),t[32]=R,t[33]=O,t[34]=d):d=t[34],v="h-[32rem]",b=Le,y=h.path,S=h.filename,N=h.size,C=u(h.path)}t[4]=l.data,t[5]=f.data,t[6]=o,t[7]=u,t[8]=g,t[9]=e,t[10]=n,t[11]=b,t[12]=h,t[13]=d,t[14]=_,t[15]=y,t[16]=S,t[17]=N,t[18]=C,t[19]=v,t[20]=w}else b=t[11],h=t[12],d=t[13],_=t[14],y=t[15],S=t[16],N=t[17],C=t[18],v=t[19],w=t[20];if(_!==Symbol.for("react.early_return_sentinel"))return _;let k;t[35]!==y||t[36]!==S||t[37]!==N||t[38]!==C?(k={key:y,filename:S,size:N,downloadUrl:C},t[35]=y,t[36]=S,t[37]=N,t[38]=C,t[39]=k):k=t[39];let $;t[40]!==b||t[41]!==k?($=s.jsx(b,{file:k}),t[40]=b,t[41]=k,t[42]=$):$=t[42];let H;t[43]!==$||t[44]!==v?(H=s.jsx("div",{className:v,children:$}),t[43]=$,t[44]=v,t[45]=H):H=t[45];let A;t[46]!==h||t[47]!==j?(A=j&&s.jsx(Re,{previewPath:`${Y}/${h.path}`,onClose:()=>x(!1),showSeeInLibrary:!0}),t[46]=h,t[47]=j,t[48]=A):A=t[48];let T;return t[49]!==d||t[50]!==H||t[51]!==A||t[52]!==w?(T=s.jsxs("section",{className:w,children:[d,H,A]}),t[49]=d,t[50]=H,t[51]=A,t[52]=w,t[53]=T):T=t[53],T}function xe(t){return t<12?"morning":t<18?"afternoon":"evening"}function je(t){const e=(t??"").trim().split(/\s+/)[0];return e||null}function gt(t,e){return e.toLocaleDateString(t,{weekday:"long",day:"numeric",month:"long"})}function ht(t){return t==="morning"?"overnight":"today"}function xt(t,e){const o=new Date(e);return o.setHours(0,0,0,0),t==="morning"&&o.setHours(-6),o.getTime()}const jt={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function bt(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex min-h-64 items-center justify-center",children:s.jsx(ne,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function yt(t,e,o,i,n){const l=ht(o)==="overnight",a=[];if(e>0){const r=t(e===1?"home.brief.changeOne":"home.brief.changeMany",{count:e});a.push(t(l?"home.brief.overnightShipped":"home.brief.todayShipped",{changes:r}))}else i===0&&a.push(t(n>0?"home.brief.working":l?"home.brief.quietNight":"home.brief.quietDay"));return a.push(i===0?t("home.brief.waitingNone"):t(i===1?"home.brief.waitingOne":"home.brief.waitingMany",{count:i})),a.join(" ")}function _t(t){const e=P.c(41),{canManageProjects:o,eyebrow:i,greeting:n,slot:l}=t,a=B(),{org:r}=q(),{data:c}=U.useSession();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={pageSize:1e3},e[0]=m):m=e[0];const f=de(m),u=$e(),g=qe(),{recent:p}=We(r.slug);let j,x;if(e[1]!==f||e[2]!==o||e[3]!==r.id){x=Symbol.for("react.early_return_sentinel");e:{let H;e[6]!==r.id?(H=T=>T.id!==r.id,e[6]=r.id,e[7]=H):H=e[7];const A=ue(f).filter(H);if(A.length===0){let T;e[8]!==o?(T=s.jsx(Ue,{canCreate:o}),e[8]=o,e[9]=T):T=e[9],x=T;break e}j=fe(A)}e[1]=f,e[2]=o,e[3]=r.id,e[4]=j,e[5]=x}else j=e[4],x=e[5];if(x!==Symbol.for("react.early_return_sentinel"))return x;const b=j;let h,d;e[10]!==c?.user?.id||e[11]!==l||e[12]!==a||e[13]!==u?(d=ze(u,c?.user?.id),h=yt(a,Ke(u,xt(l,new Date)),l,d.length,Ge(u).length),e[10]=c?.user?.id,e[11]=l,e[12]=a,e[13]=u,e[14]=h,e[15]=d):(h=e[14],d=e[15]);const _=h;let y;e[16]!==i?(y=s.jsx("span",{className:"text-xs text-muted-foreground",children:i}),e[16]=i,e[17]=y):y=e[17];let S;e[18]!==_||e[19]!==n?(S=s.jsxs("h1",{className:"max-w-[40ch] text-2xl font-medium text-balance text-foreground",children:[n," ",_]}),e[18]=_,e[19]=n,e[20]=S):S=e[20];let N;e[21]!==y||e[22]!==S?(N=s.jsxs("div",{className:"flex flex-col gap-1",children:[y,S]}),e[21]=y,e[22]=S,e[23]=N):N=e[23];let C;e[24]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(pt,{}),e[24]=C):C=e[24];let v;e[25]!==g.updates||e[26]!==b||e[27]!==r.slug||e[28]!==u||e[29]!==d?(v=s.jsx(Ce,{waiting:d,tasks:u,mentions:g.updates,index:b,orgSlug:r.slug}),e[25]=g.updates,e[26]=b,e[27]=r.slug,e[28]=u,e[29]=d,e[30]=v):v=e[30];let w;e[31]!==r.slug||e[32]!==p?(w=s.jsx(He,{recent:p,orgSlug:r.slug}),e[31]=r.slug,e[32]=p,e[33]=w):w=e[33];let k;e[34]!==u?(k=s.jsx(Te,{tasks:u}),e[34]=u,e[35]=k):k=e[35];let $;return e[36]!==w||e[37]!==k||e[38]!==N||e[39]!==v?($=s.jsxs("div",{className:"flex flex-col gap-8",children:[N,C,v,w,k]}),e[36]=w,e[37]=k,e[38]=N,e[39]=v,e[40]=$):$=e[40],$}function St(){const t=P.c(25),e=B(),[o]=oe(),i=ce("home_task_intake_enabled"),{data:n}=U.useSession(),{granted:l}=re("agents:manage");let a,r,c;if(t[0]!==o.language||t[1]!==n?.user?.name||t[2]!==e){const d=new Date,_=je(n?.user?.name);r=xe(d.getHours());const y=jt[r];a=gt(o.language,d),c=_?e(y.named,{name:_}):e(y.bare),t[0]=o.language,t[1]=n?.user?.name,t[2]=e,t[3]=a,t[4]=r,t[5]=c}else a=t[3],r=t[4],c=t[5];const m=c;let f;t[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(me,{}),t[6]=f):f=t[6];let u;t[7]!==l?(u=l&&s.jsx(Ye,{source:"org_home_header"}),t[7]=l,t[8]=u):u=t[8];let g;t[9]!==u?(g=s.jsx(M.Actions,{secondary:f,children:u}),t[9]=u,t[10]=g):g=t[10];let p;t[11]!==i?(p=i&&s.jsx(I.Suspense,{fallback:null,children:s.jsx(le,{children:s.jsx(ae,{children:s.jsx(ie,{homeTaskComposer:!0})})})}),t[11]=i,t[12]=p):p=t[12];let j;t[13]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(bt,{}),t[13]=j):j=t[13];let x;t[14]!==l||t[15]!==a||t[16]!==m||t[17]!==r?(x=s.jsx(I.Suspense,{fallback:j,children:s.jsx(_t,{canManageProjects:l,eyebrow:a,greeting:m,slot:r})}),t[14]=l,t[15]=a,t[16]=m,t[17]=r,t[18]=x):x=t[18];let b;t[19]!==p||t[20]!==x?(b=s.jsx(M.Content,{children:s.jsxs(M.Container,{width:"wide",className:"flex min-h-full flex-col gap-10",children:[p,x]})}),t[19]=p,t[20]=x,t[21]=b):b=t[21];let h;return t[22]!==g||t[23]!==b?(h=s.jsxs(M,{children:[g,b]}),t[22]=g,t[23]=b,t[24]=h):h=t[24],h}function Nt(t){const e=P.c(13),{label:o,count:i,action:n,children:l}=t;let a;e[0]!==i?(a=i!==void 0&&i>0&&s.jsx("span",{className:"text-xs tabular-nums text-muted-foreground",children:i}),e[0]=i,e[1]=a):a=e[1];let r;e[2]!==o||e[3]!==a?(r=s.jsxs("h2",{className:"flex items-baseline gap-2 text-[0.9rem] font-medium tracking-tight text-foreground",children:[o,a]}),e[2]=o,e[3]=a,e[4]=r):r=e[4];let c;e[5]!==n||e[6]!==r?(c=s.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[r,n]}),e[5]=n,e[6]=r,e[7]=c):c=e[7];let m;e[8]!==l?(m=s.jsx("ul",{className:"flex flex-col divide-y divide-border/70",children:l}),e[8]=l,e[9]=m):m=e[9];let f;return e[10]!==c||e[11]!==m?(f=s.jsxs("section",{className:"@container flex flex-col overflow-hidden surface",children:[c,m]}),e[10]=c,e[11]=m,e[12]=f):f=e[12],f}function be(t){const e=P.c(5),{children:o,className:i}=t;let n;e[0]!==i?(n=W("px-5 py-3.5 transition-colors hover:bg-accent",i),e[0]=i,e[1]=n):n=e[1];let l;return e[2]!==o||e[3]!==n?(l=s.jsx("li",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=l):l=e[4],l}const vt=56,kt=16;function wt(t){const e=P.c(28),{series:o,className:i,label:n,height:l,stretch:a}=t,r=l===void 0?kt:l,c=a===void 0?!1:a,m=Math.max(...o);if(o.length<2||m<=0)return null;const f=c?o.length*8:vt,u=f/(o.length-1);let g;if(e[0]!==r||e[1]!==m||e[2]!==o||e[3]!==u){let N;e[5]!==r||e[6]!==m||e[7]!==u?(N=(v,w)=>({x:w*u,y:r-1-v/m*(r-2)}),e[5]=r,e[6]=m,e[7]=u,e[8]=N):N=e[8],g=o.map(N).map($t).join(" "),e[0]=r,e[1]=m,e[2]=o,e[3]=u,e[4]=g}else g=e[4];const p=g,j=`0 0 ${f} ${r}`,x=c?void 0:f,b=c?"none":void 0,h=c?"w-full":"shrink-0 overflow-visible";let d;e[9]!==i||e[10]!==h?(d=W(h,i),e[9]=i,e[10]=h,e[11]=d):d=e[11];let _;e[12]!==r||e[13]!==p||e[14]!==c||e[15]!==f?(_=c&&s.jsx("polygon",{points:`0,${r} ${p} ${f},${r}`,fill:"currentColor",opacity:.12}),e[12]=r,e[13]=p,e[14]=c,e[15]=f,e[16]=_):_=e[16];let y;e[17]!==p?(y=s.jsx("polyline",{points:p,fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke"}),e[17]=p,e[18]=y):y=e[18];let S;return e[19]!==r||e[20]!==n||e[21]!==y||e[22]!==j||e[23]!==x||e[24]!==b||e[25]!==d||e[26]!==_?(S=s.jsxs("svg",{viewBox:j,width:x,height:r,role:"img","aria-label":n,preserveAspectRatio:b,className:d,children:[_,y]}),e[19]=r,e[20]=n,e[21]=y,e[22]=j,e[23]=x,e[24]=b,e[25]=d,e[26]=_,e[27]=S):S=e[27],S}function $t(t){const{x:e,y:o}=t;return`${e.toFixed(1)},${o.toFixed(1)}`}const Ct={waiting:{labelKey:"home.projects.headlineWaiting",className:"text-foreground"},failed:{labelKey:"home.projects.headlineFailed",className:"text-destructive"},shipped:{labelKey:"home.projects.headlineShipped",className:"text-muted-foreground"},open:{labelKey:"home.projects.headlineOpen",className:"text-muted-foreground"}},te=6;function Ht(t){const e=P.c(10),{value:o,previous:i}=t,n=o-i;if(n===0)return null;const l=n>0?et:tt,a=n>0?"text-success":"text-muted-foreground";let r;e[0]!==a?(r=W("inline-flex items-center text-xs tabular-nums",a),e[0]=a,e[1]=r):r=e[1];let c;e[2]!==l?(c=s.jsx(l,{width:11,height:11,"aria-hidden":!0}),e[2]=l,e[3]=c):c=e[3];let m;e[4]!==n?(m=Math.abs(n),e[4]=n,e[5]=m):m=e[5];let f;return e[6]!==r||e[7]!==c||e[8]!==m?(f=s.jsxs("span",{className:r,children:[c,m]}),e[6]=r,e[7]=c,e[8]=m,e[9]=f):f=e[9],f}function Tt(t){const e=P.c(52),{project:o,summary:i,series:n}=t,l=B(),a=st();let r;e[0]!==o?(r=ot(rt(o).storeUrl),e[0]=o,e[1]=r):r=e[1];const c=r,m=i&&i.kind!=="quiet"?Ct[i.kind]:null,f=n.reduce(Et,0),u=Math.floor(n.length/2);let g;e[2]!==u||e[3]!==n?(g=n.slice(0,u).reduce(Pt,0),e[2]=u,e[3]=n,e[4]=g):g=e[4];const p=g;let j;e[5]!==u||e[6]!==n?(j=n.slice(u).reduce(At,0),e[5]=u,e[6]=n,e[7]=j):j=e[7];const x=j,b=o.title;let h;e[8]!==a||e[9]!==o.id?(h=()=>{Z("org_home_project_clicked"),a(o.id)},e[8]=a,e[9]=o.id,e[10]=h):h=e[10];let d;e[11]!==o.icon||e[12]!==o.title?(d=s.jsx(Ie,{icon:o.icon,name:o.title,size:"xs"}),e[11]=o.icon,e[12]=o.title,e[13]=d):d=e[13];let _;e[14]!==o.title?(_=s.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:o.title}),e[14]=o.title,e[15]=_):_=e[15];let y;e[16]!==m||e[17]!==c||e[18]!==i||e[19]!==l?(y=m&&i?l(m.labelKey,{count:i.count}):c??l("home.projects.quiet"),e[16]=m,e[17]=c,e[18]=i,e[19]=l,e[20]=y):y=e[20];let S;e[21]!==y?(S=s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:y}),e[21]=y,e[22]=S):S=e[22];let N;e[23]!==_||e[24]!==S?(N=s.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[_,S]}),e[23]=_,e[24]=S,e[25]=N):N=e[25];let C;e[26]!==o.title||e[27]!==l?(C=l("home.projects.rhythm",{name:o.title}),e[26]=o.title,e[27]=l,e[28]=C):C=e[28];let v;e[29]!==n||e[30]!==C?(v=s.jsx(wt,{series:n,className:"text-muted-foreground/60",label:C}),e[29]=n,e[30]=C,e[31]=v):v=e[31];const w=f>0?"text-foreground":"text-muted-foreground";let k;e[32]!==w?(k=W("text-sm tabular-nums",w),e[32]=w,e[33]=k):k=e[33];let $;e[34]!==f||e[35]!==k?($=s.jsx("span",{className:k,children:f}),e[34]=f,e[35]=k,e[36]=$):$=e[36];let H;e[37]!==x||e[38]!==p?(H=s.jsx(Ht,{value:x,previous:p}),e[37]=x,e[38]=p,e[39]=H):H=e[39];let A;e[40]!==$||e[41]!==H?(A=s.jsxs("span",{className:"flex w-10 shrink-0 flex-col items-end",children:[$,H]}),e[40]=$,e[41]=H,e[42]=A):A=e[42];let T;e[43]!==v||e[44]!==A?(T=s.jsxs("span",{className:"flex shrink-0 items-center gap-2.5",children:[v,A]}),e[43]=v,e[44]=A,e[45]=T):T=e[45];let E;return e[46]!==o.title||e[47]!==N||e[48]!==T||e[49]!==h||e[50]!==d?(E=s.jsx(be,{className:"transition-colors hover:bg-accent",children:s.jsxs("button",{type:"button","aria-label":b,onClick:h,className:"flex w-full min-w-0 items-center gap-3 text-left",children:[d,N,T]})}),e[46]=o.title,e[47]=N,e[48]=T,e[49]=h,e[50]=d,e[51]=E):E=e[51],E}function At(t,e){return t+e}function Pt(t,e){return t+e}function Et(t,e){return t+e}const Bt=new Map,Dt=new Map;function Mt(t){const e=P.c(30),{projects:o,summaries:i,series:n}=t,l=i===void 0?Bt:i,a=n===void 0?Dt:n,r=B(),{org:c}=q();let m,f,u,g,p,j;if(e[0]!==o||e[1]!==a||e[2]!==l||e[3]!==r){const h=[...o].sort(It).slice(0,te);f=o.length>te,m=Nt,e[10]!==r?(u=r("home.projects.heading"),e[10]=r,e[11]=u):u=e[11],g=o.length;let d;e[12]!==r?(d=r("home.projects.shippedCaption"),e[12]=r,e[13]=d):d=e[13],e[14]!==d?(p=s.jsx("span",{className:"hidden whitespace-nowrap text-xs text-muted-foreground @[19rem]:inline",children:d}),e[14]=d,e[15]=p):p=e[15];let _;e[16]!==a||e[17]!==l?(_=y=>s.jsx(Tt,{project:y,summary:l.get(y.id),series:a.get(y.id)??[]},y.id),e[16]=a,e[17]=l,e[18]=_):_=e[18],j=h.map(_),e[0]=o,e[1]=a,e[2]=l,e[3]=r,e[4]=m,e[5]=f,e[6]=u,e[7]=g,e[8]=p,e[9]=j}else m=e[4],f=e[5],u=e[6],g=e[7],p=e[8],j=e[9];let x;e[19]!==f||e[20]!==c||e[21]!==r?(x=f&&s.jsx(be,{className:"py-2",children:s.jsx(ye,{to:"/$org/settings/projects",params:{org:c.slug},className:"text-xs text-muted-foreground hover:text-foreground hover:underline",children:r("home.projects.seeAll")})}),e[19]=f,e[20]=c,e[21]=r,e[22]=x):x=e[22];let b;return e[23]!==m||e[24]!==u||e[25]!==g||e[26]!==p||e[27]!==j||e[28]!==x?(b=s.jsxs(m,{label:u,count:g,action:p,children:[j,x]}),e[23]=m,e[24]=u,e[25]=g,e[26]=p,e[27]=j,e[28]=x,e[29]=b):b=e[29],b}function It(t,e){return(e.updated_at??"").localeCompare(t.updated_at??"")}function Ft(){const t=P.c(10),{org:e}=q(),o=_e();let i;t[0]!==e.id?(i=Se.orgHasSite(e.id),t[0]=e.id,t[1]=i):i=t[1];const n=!!e.id;let l;t[2]!==o?(l=()=>o.call("ORGANIZATION_HAS_SITE",{}),t[2]=o,t[3]=l):l=t[3];let a;t[4]!==i||t[5]!==n||t[6]!==l?(a={queryKey:i,staleTime:3e5,enabled:n,queryFn:l},t[4]=i,t[5]=n,t[6]=l,t[7]=a):a=t[7];const{data:r}=Ne(a),c=r?.hasSite??!1;let m;return t[8]!==c?(m={hasSite:c},t[8]=c,t[9]=m):m=t[9],m}const Lt="https://www.youtube.com/playlist?list=PLZ4WtTgnJfBw";function Ot(t){const e=P.c(4),{className:o}=t;let i,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("path",{fill:"#FF0000",d:"M27.4 3.1c-.3-1.2-1.3-2.2-2.5-2.5C22.7 0 14 0 14 0S5.3 0 3.1.6C1.9.9.9 1.9.6 3.1.1 5.3 0 8 0 10s.1 4.7.6 6.9c.3 1.2 1.3 2.2 2.5 2.5C5.3 20 14 20 14 20s8.7 0 10.9-.6c1.2-.3 2.2-1.3 2.5-2.5.5-2.2.6-4.9.6-6.9s-.1-4.7-.6-6.9z"}),n=s.jsx("path",{fill:"#fff",d:"M11.2 14.3l7.3-4.3-7.3-4.3z"}),e[0]=i,e[1]=n):(i=e[0],n=e[1]);let l;return e[2]!==o?(l=s.jsxs("svg",{viewBox:"0 0 28 20",className:o,"aria-hidden":"true",focusable:"false",children:[i,n]}),e[2]=o,e[3]=l):l=e[3],l}function Rt(){const t=P.c(27),e=B(),{hasSite:o}=Ft();if(!o)return null;let i;t[0]!==e?(i=e("home.orgHome.trainingThumbnailAlt"),t[0]=e,t[1]=i):i=t[1];let n;t[2]!==i?(n=s.jsx("img",{src:"/cms-training.jpg",alt:i,className:"size-full object-cover"}),t[2]=i,t[3]=n):n=t[3];let l;t[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/20",children:s.jsx(Ot,{className:"w-9"})}),t[4]=l):l=t[4];let a;t[5]!==n?(a=s.jsxs("div",{className:"relative aspect-video w-40 shrink-0 overflow-hidden rounded-lg",children:[n,l]}),t[5]=n,t[6]=a):a=t[6];let r;t[7]!==e?(r=e("home.orgHome.trainingEyebrow"),t[7]=e,t[8]=r):r=t[8];let c;t[9]!==r?(c=s.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[9]=r,t[10]=c):c=t[10];let m;t[11]!==e?(m=e("home.orgHome.trainingTitle"),t[11]=e,t[12]=m):m=t[12];let f;t[13]!==m?(f=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:m}),t[13]=m,t[14]=f):f=t[14];let u;t[15]!==e?(u=e("home.orgHome.trainingDescription"),t[15]=e,t[16]=u):u=t[16];let g;t[17]!==u?(g=s.jsx("p",{className:"mt-0.5 line-clamp-2 text-xs text-muted-foreground",children:u}),t[17]=u,t[18]=g):g=t[18];let p;t[19]!==c||t[20]!==f||t[21]!==g?(p=s.jsxs("div",{className:"min-w-0 flex-1",children:[c,f,g]}),t[19]=c,t[20]=f,t[21]=g,t[22]=p):p=t[22];let j;t[23]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(nt,{className:"size-4 shrink-0 text-muted-foreground transition-transform group-hover:translate-x-0.5"}),t[23]=j):j=t[23];let x;return t[24]!==p||t[25]!==a?(x=s.jsxs("a",{href:Lt,target:"_blank",rel:"noreferrer",onClick:zt,className:"group shadow-edge flex w-full items-center gap-4 rounded-2xl bg-card p-4 text-left transition-colors hover:bg-accent",children:[a,p,j]}),t[24]=p,t[25]=a,t[26]=x):x=t[26],x}function zt(){return Z("cms_training_opened",{source:"org_home"})}const Gt={morning:{named:"home.orgHome.greetingMorning",bare:"home.orgHome.greetingMorningBare"},afternoon:{named:"home.orgHome.greetingAfternoon",bare:"home.orgHome.greetingAfternoonBare"},evening:{named:"home.orgHome.greetingEvening",bare:"home.orgHome.greetingEveningBare"}};function Kt(){const t=P.c(8),e=B();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ve,{className:"size-4 shrink-0 text-muted-foreground"}),t[0]=o):o=t[0];let i;t[1]!==e?(i=e("home.orgHome.searchPlaceholder"),t[1]=e,t[2]=i):i=t[2];let n;t[3]!==i?(n=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:i}),t[3]=i,t[4]=n):n=t[4];let l;t[5]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("kbd",{className:"shrink-0 rounded-md border border-border bg-muted px-1.5 py-0.5 text-2xs font-medium text-muted-foreground",children:"⌘K"}),t[5]=l):l=t[5];let a;return t[6]!==n?(a=s.jsxs("button",{type:"button","data-testid":"org-home-search",onClick:Yt,className:"shadow-edge flex w-full items-center gap-2 rounded-xl bg-card px-3 py-2.5 text-left transition-colors hover:bg-accent",children:[o,n,l]}),t[6]=n,t[7]=a):a=t[7],a}function Yt(){Z("command_palette_opened",{source:"org_home_search"}),Qe()}function se(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex min-h-64 items-center justify-center",children:s.jsx(ne,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function Ut(t){const e=P.c(28),{canManageAgents:o}=t,i=B(),{org:n}=q();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={pageSize:1e3},e[0]=l):l=e[0];const a=de(l),r=Ae();let c,m,f;if(e[1]!==a||e[2]!==o||e[3]!==n||e[4]!==i||e[5]!==r){f=Symbol.for("react.early_return_sentinel");e:{let x;if(e[9]!==n?(x=b=>b.id!==n.id,e[9]=n,e[10]=x):x=e[10],c=ue(a).filter(x),c.length===0){let b;e[11]!==i?(b=i("routes.agentsList.noAgentsYet"),e[11]=i,e[12]=b):b=e[12];let h;e[13]!==o||e[14]!==i?(h=i(o?"home.orgAgents.importToGetStarted":"routes.agentsList.askAdminToCreate"),e[13]=o,e[14]=i,e[15]=h):h=e[15];let d;e[16]!==b||e[17]!==h?(d=s.jsx("div",{className:"flex items-center justify-center py-10",children:s.jsx(Xe,{actions:!1,image:null,title:b,description:h})}),e[16]=b,e[17]=h,e[18]=d):d=e[18],f=d;break e}m=Pe(fe(c),r,null)}e[1]=a,e[2]=o,e[3]=n,e[4]=i,e[5]=r,e[6]=c,e[7]=m,e[8]=f}else c=e[6],m=e[7],f=e[8];if(f!==Symbol.for("react.early_return_sentinel"))return f;const u=m.length>0;let g;e[19]!==c?(g=s.jsx(Mt,{projects:c}),e[19]=c,e[20]=g):g=e[20];let p;e[21]!==c||e[22]!==u||e[23]!==r?(p=u&&s.jsx(Ee,{projects:c,tasks:r}),e[21]=c,e[22]=u,e[23]=r,e[24]=p):p=e[24];let j;return e[25]!==g||e[26]!==p?(j=s.jsxs("div",{className:"flex flex-col gap-12",children:[g,p]}),e[25]=g,e[26]=p,e[27]=j):j=e[27],j}function qt(){const t=P.c(55),e=B(),o=ce("home_task_intake_enabled"),{data:i}=U.useSession(),[n,l]=I.useState(!1),{granted:a}=re("agents:manage");let r,c,m,f,u,g,p,j,x,b,h,d;if(t[0]!==a||t[1]!==i?.user?.name||t[2]!==e){const A=je(i?.user?.name),T=Gt[xe(new Date().getHours())];let E;t[15]!==e?(E=R=>s.jsxs(ve,{size:"sm",variant:"default",onClick:()=>{Z("agent_create_clicked",{source:R,method:"github"}),l(!0)},children:[s.jsx(Ze,{size:14}),e("home.orgAgents.importFromGitHub")]}),t[15]=e,t[16]=E):E=t[16];const D=E;m=M,t[17]!==a||t[18]!==D?(d=a&&s.jsx(M.Actions,{children:D("org_home")}),t[17]=a,t[18]=D,t[19]=d):d=t[19],c=M.Content,r=M.Container,b="reading",h="flex flex-col gap-12",p="flex flex-col items-center gap-12 text-center",t[20]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(me,{dense:!1}),x=s.jsx(Rt,{}),t[20]=j,t[21]=x):(j=t[20],x=t[21]),g="flex w-full flex-col items-center gap-5",f="text-3xl font-medium tracking-tight text-foreground",u=A?e(T.named,{name:A}):e(T.bare),t[0]=a,t[1]=i?.user?.name,t[2]=e,t[3]=r,t[4]=c,t[5]=m,t[6]=f,t[7]=u,t[8]=g,t[9]=p,t[10]=j,t[11]=x,t[12]=b,t[13]=h,t[14]=d}else r=t[3],c=t[4],m=t[5],f=t[6],u=t[7],g=t[8],p=t[9],j=t[10],x=t[11],b=t[12],h=t[13],d=t[14];let _;t[22]!==f||t[23]!==u?(_=s.jsx("h2",{className:f,children:u}),t[22]=f,t[23]=u,t[24]=_):_=t[24];let y;t[25]!==o?(y=o?s.jsx(I.Suspense,{fallback:s.jsx(se,{}),children:s.jsx(le,{children:s.jsx(ae,{children:s.jsx(ie,{homeTaskComposer:!0})})})}):s.jsx(Kt,{}),t[25]=o,t[26]=y):y=t[26];let S;t[27]!==y||t[28]!==g||t[29]!==_?(S=s.jsxs("div",{className:g,children:[_,y]}),t[27]=y,t[28]=g,t[29]=_,t[30]=S):S=t[30];let N;t[31]!==S||t[32]!==p||t[33]!==j||t[34]!==x?(N=s.jsxs("div",{className:p,children:[j,x,S]}),t[31]=S,t[32]=p,t[33]=j,t[34]=x,t[35]=N):N=t[35];let C;t[36]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(se,{}),t[36]=C):C=t[36];let v;t[37]!==a?(v=s.jsx(I.Suspense,{fallback:C,children:s.jsx(Ut,{canManageAgents:a})}),t[37]=a,t[38]=v):v=t[38];let w;t[39]!==r||t[40]!==N||t[41]!==v||t[42]!==b||t[43]!==h?(w=s.jsxs(r,{width:b,className:h,children:[N,v]}),t[39]=r,t[40]=N,t[41]=v,t[42]=b,t[43]=h,t[44]=w):w=t[44];let k;t[45]!==c||t[46]!==w?(k=s.jsx(c,{children:w}),t[45]=c,t[46]=w,t[47]=k):k=t[47];let $;t[48]!==n?($=s.jsx(Je,{open:n,onOpenChange:l}),t[48]=n,t[49]=$):$=t[49];let H;return t[50]!==m||t[51]!==k||t[52]!==$||t[53]!==d?(H=s.jsxs(m,{children:[d,k,$]}),t[50]=m,t[51]=k,t[52]=$,t[53]=d,t[54]=H):H=t[54],H}function Wt(){return ke()?s.jsx(St,{}):s.jsx(qt,{})}function qr(){const t=P.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(we.Content,{children:s.jsx(Wt,{})}),t[0]=e):e=t[0],e}export{qr as default};
|