decocms 4.528.0 → 4.530.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.
Files changed (404) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-Br894ljM.js → ActiveShapeUtils-DvZ4kp7j.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-DwVsFaci.js → AlertCircle-BOP0_W_U.js} +1 -1
  3. package/dist/client/assets/{AreaChart-BpoQ8IcB.js → AreaChart-yTlVcJtZ.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-D0U_UeWA.js → ArrowLeft-TqR4Fgfq.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BHvj9x12.js → ArrowUp-C33jPuMc.js} +1 -1
  6. package/dist/client/assets/{BarChart-DSUrCO19.js → BarChart-DrtskOqN.js} +1 -1
  7. package/dist/client/assets/{Building02-4g278Kck.js → Building02-mn349zQD.js} +1 -1
  8. package/dist/client/assets/{CartesianChart-B8sjFfWU.js → CartesianChart-Dl6ED4Qn.js} +1 -1
  9. package/dist/client/assets/{CategoricalChart-C9NLmvFO.js → CategoricalChart-DZtGpsC8.js} +1 -1
  10. package/dist/client/assets/{CheckCircle-0mdIkBLG.js → CheckCircle-BCSSdEIk.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BRbuqJl7.js → ChevronSelectorVertical-Bf_2MNcW.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Cn8PaBxH.js → ChevronUp-bG7QziWc.js} +1 -1
  13. package/dist/client/assets/{Copy01-D6STLVd9.js → Copy01-CCULGI20.js} +1 -1
  14. package/dist/client/assets/{CreditCard01-CAW-vU_p.js → CreditCard01-CSCSy42G.js} +1 -1
  15. package/dist/client/assets/{DotsVertical-C5Wc2qWf.js → DotsVertical-DKcUxvbN.js} +1 -1
  16. package/dist/client/assets/{ErrorBarContext-ClrUuJb8.js → ErrorBarContext-CMcrOvhv.js} +1 -1
  17. package/dist/client/assets/{Globe04-COPfJ3z-.js → Globe04-DJ5nStZd.js} +1 -1
  18. package/dist/client/assets/{Image01-D00jtGx4.js → Image01-DBJ7dlcG.js} +1 -1
  19. package/dist/client/assets/{Key01-CiK2_UxI.js → Key01-EhXWdZXA.js} +1 -1
  20. package/dist/client/assets/{Link01-CEOBycf2.js → Link01-D3zxQ7B9.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-Bg7pBcuJ.js → LinkBroken01-DJ9tk8Nb.js} +1 -1
  22. package/dist/client/assets/{Minus-_SQ5lvlh.js → Minus-C_yGMjay.js} +1 -1
  23. package/dist/client/assets/{Monitor01-DyqIpSTl.js → Monitor01-HXiLn6G2.js} +1 -1
  24. package/dist/client/assets/{Play-BnWEmJaV.js → Play-CtPfgXDv.js} +1 -1
  25. package/dist/client/assets/{Plus-BPVKrQFz.js → Plus-DT_Y3SXq.js} +1 -1
  26. package/dist/client/assets/{ReferenceLine-_tT0r7bG.js → ReferenceLine-BoIeIT-2.js} +1 -1
  27. package/dist/client/assets/{SearchMd-OaBCBVrZ.js → SearchMd-g-czGrfP.js} +1 -1
  28. package/dist/client/assets/{Sector-mFZOIMSW.js → Sector-CXiTgTJg.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-GpZCrbBR.js → ShoppingBag01-TKNh_f0W.js} +1 -1
  30. package/dist/client/assets/{Sun-BG4-BfE7.js → Sun-D2qZhPc5.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CMpEiSPu.js → SwitchHorizontal01-Cd-vTdga.js} +1 -1
  32. package/dist/client/assets/{Tool01-CIeMmnyv.js → Tool01-DZn57NDu.js} +1 -1
  33. package/dist/client/assets/{Trash01-BLXgUBsw.js → Trash01-Bw8Leo0g.js} +1 -1
  34. package/dist/client/assets/{Upload01-CgYtU1Ux.js → Upload01-DBuU3kZE.js} +1 -1
  35. package/dist/client/assets/{UserSquare-pnEdx237.js → UserSquare-lDfe1WCi.js} +1 -1
  36. package/dist/client/assets/{Users01-D-rlhQmk.js → Users01-B094G3md.js} +1 -1
  37. package/dist/client/assets/{XClose-yFNn0LgD.js → XClose-BZ7_Ux4e.js} +1 -1
  38. package/dist/client/assets/{ZoomOut-D8_eDbPl.js → ZoomOut-Bmxt_E04.js} +1 -1
  39. package/dist/client/assets/{access-gate-CCmKpIU6.js → access-gate-D_BS-DcG.js} +1 -1
  40. package/dist/client/assets/{add-connection-dialog-MrHyqJnn.js → add-connection-dialog-CD5rNCCt.js} +1 -1
  41. package/dist/client/assets/agent-analytics-vthOPnN6.js +1 -0
  42. package/dist/client/assets/agent-app-n-Aif9MC.js +1 -0
  43. package/dist/client/assets/{agent-assets-DX3JCZz_.js → agent-assets-CzNeFhAl.js} +1 -1
  44. package/dist/client/assets/{agent-automation-BoPrO5n1.js → agent-automation-CJ9v34r4.js} +1 -1
  45. package/dist/client/assets/{agent-automations-Dj9SJC8y.js → agent-automations-gTSN0JNV.js} +1 -1
  46. package/dist/client/assets/{agent-calendar-CFKavSr7.js → agent-calendar-IRAVVe-8.js} +1 -1
  47. package/dist/client/assets/{agent-connect-sources-guJSE0A3.js → agent-connect-sources-B53nGR4C.js} +1 -1
  48. package/dist/client/assets/agent-deck-D3R8f8cF.js +1 -0
  49. package/dist/client/assets/{agent-e2e--KzDh_gU.js → agent-e2e-CH6W1QQ7.js} +1 -1
  50. package/dist/client/assets/agent-experiments-CRDhAJbR.js +1 -0
  51. package/dist/client/assets/{agent-file-Cdm4fL8A.js → agent-file-D5Vi9cHA.js} +1 -1
  52. package/dist/client/assets/{agent-hosting-DewUrxzP.js → agent-hosting-B4ezToSE.js} +1 -1
  53. package/dist/client/assets/{agent-icon-I45DkNr8.js → agent-icon-Bss_DO5K.js} +1 -1
  54. package/dist/client/assets/agent-library-DU6N23OR.js +1 -0
  55. package/dist/client/assets/agent-library-file-DD6y_E54.js +1 -0
  56. package/dist/client/assets/agent-monitor-CXnnFky_.js +1 -0
  57. package/dist/client/assets/{agent-overview-D6KewKsA.js → agent-overview-CcHA5SNR.js} +1 -1
  58. package/dist/client/assets/{agent-releases-K-5ZFdWb.js → agent-releases-f23knj6h.js} +1 -1
  59. package/dist/client/assets/agent-settings-e1pgmpw5.js +1 -0
  60. package/dist/client/assets/{agent-site-editor-5gjIAuRv.js → agent-site-editor-CTB1ccaH.js} +1 -1
  61. package/dist/client/assets/agent-site-editor-code-ccGdn-Hd.js +2 -0
  62. package/dist/client/assets/agent-site-editor-content-Cs2mbasv.js +1 -0
  63. package/dist/client/assets/agent-site-editor-preview-CjLUuUK-.js +1 -0
  64. package/dist/client/assets/agent-view-DyJhvPdi.js +1 -0
  65. package/dist/client/assets/{agent-view-guard-CiKD3WZM.js → agent-view-guard-Glj0vRyr.js} +1 -1
  66. package/dist/client/assets/{agents-list-Bm03MUBc.js → agents-list-Bi5TXBHx.js} +1 -1
  67. package/dist/client/assets/{ai-providers--gYjttQ2.js → ai-providers-B-8sjV9j.js} +1 -1
  68. package/dist/client/assets/{alert-CRToIlco.js → alert-Dv_m1jIZ.js} +1 -1
  69. package/dist/client/assets/{analytics-sections-CNk_D8Ba.js → analytics-sections-BCtwnwxr.js} +1 -1
  70. package/dist/client/assets/{analytics-tab-BmUlDGzX.js → analytics-tab-PU6dzTDv.js} +1 -1
  71. package/dist/client/assets/api-keys-BJJzdb0A.js +1 -0
  72. package/dist/client/assets/{api-keys-MdTn4EBK.js → api-keys-_u2bDol0.js} +1 -1
  73. package/dist/client/assets/{app-editor-DLDQxSbu.js → app-editor-BX_pUpeA.js} +1 -1
  74. package/dist/client/assets/{asset-utils-B46ygA_L.js → asset-utils-BUlvPqYt.js} +1 -1
  75. package/dist/client/assets/{auth-catchall-WOw2KABS.js → auth-catchall-BdUzb1Pt.js} +1 -1
  76. package/dist/client/assets/{auth-entry-D8h4o_s7.js → auth-entry-DtnFIFL2.js} +1 -1
  77. package/dist/client/assets/{auth-AQB7DTaB.js → auth-kFzpcapr.js} +1 -1
  78. package/dist/client/assets/{auth-split-layout-D1niEerJ.js → auth-split-layout-2nmiIKmw.js} +1 -1
  79. package/dist/client/assets/{authenticate-and-persist-oauth-08aLFUVr.js → authenticate-and-persist-oauth-D5qGprX9.js} +1 -1
  80. package/dist/client/assets/{automation-list-row-D9muuYwH.js → automation-list-row-BPnRwXLB.js} +1 -1
  81. package/dist/client/assets/{automation-runs-Cu7hhQJb.js → automation-runs-DKb200eV.js} +1 -1
  82. package/dist/client/assets/{automations-Ct6FcxrV.js → automations-BW2Pm3L7.js} +1 -1
  83. package/dist/client/assets/{autosend-CxxtAFJ_.js → autosend-Byl7Kst-.js} +1 -1
  84. package/dist/client/assets/{badge-zxuYXquF.js → badge-C-BSS2Yn.js} +1 -1
  85. package/dist/client/assets/{block-document-D4CMkt4c.js → block-document-BY26DfN7.js} +3 -3
  86. package/dist/client/assets/{blocks-preview-workspace-context-LeIpajCL.js → blocks-preview-workspace-context-BoznkXgh.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-BrRgLQ_Y.js → blocks-tab-states-BsLUNSHT.js} +1 -1
  88. package/dist/client/assets/{blog-schema-B4i8W-yj.js → blog-schema-2lf7HGSD.js} +1 -1
  89. package/dist/client/assets/{buckets-CQWPtT87.js → buckets-D_afurG7.js} +1 -1
  90. package/dist/client/assets/{build-improve-prompt-doc-CpbAFEGo.js → build-improve-prompt-doc-DgvtLON3.js} +1 -1
  91. package/dist/client/assets/{calendar-C7teLmhJ.js → calendar-CdQftUWj.js} +1 -1
  92. package/dist/client/assets/{capability-load-error-lTXihmQk.js → capability-load-error-xQmp44p-.js} +1 -1
  93. package/dist/client/assets/category-editor-vOblLSz6.js +1 -0
  94. package/dist/client/assets/{cdn-tab-BstEuIpQ.js → cdn-tab-BxFGf6S7.js} +1 -1
  95. package/dist/client/assets/{chart-DVgatavr.js → chart-Q4A9_vVd.js} +1 -1
  96. package/dist/client/assets/{chat-context-DIvwe-Wr.js → chat-context-CS6VicT4.js} +1 -1
  97. package/dist/client/assets/{chat-draft-DByw699W.js → chat-draft-VQFS_4wA.js} +1 -1
  98. package/dist/client/assets/{checkbox-CW4Dzojp.js → checkbox-CKXQp3Az.js} +1 -1
  99. package/dist/client/assets/{choose-editor-zIlz3nud.js → choose-editor-DJDGvcjS.js} +1 -1
  100. package/dist/client/assets/{cli-auth-success-CYE6hkOe.js → cli-auth-success-BMF85xbe.js} +1 -1
  101. package/dist/client/assets/{client-icons-DL1p9F4w.js → client-icons-D7bNXOKu.js} +1 -1
  102. package/dist/client/assets/cms-settings-editor-DRzsX4We.js +1 -0
  103. package/dist/client/assets/{collapsible-zPk-2gi_.js → collapsible-BRjo2C7P.js} +1 -1
  104. package/dist/client/assets/{collection-detail-Drfng1H4.js → collection-detail-JZh-OwkO.js} +1 -1
  105. package/dist/client/assets/{collection-display-button-DPvQVdd-.js → collection-display-button-Dysq40FS.js} +1 -1
  106. package/dist/client/assets/{collection-search-kUVZkueq.js → collection-search-D1wDrhDt.js} +1 -1
  107. package/dist/client/assets/{collection-table-wrapper-vDq2vkVG.js → collection-table-wrapper-CcBN0zuI.js} +1 -1
  108. package/dist/client/assets/{collection-tabs-C3pu5E-Q.js → collection-tabs-oJVN40cq.js} +1 -1
  109. package/dist/client/assets/{column-rules-Dz5XFx3r.js → column-rules-BsFrVRCt.js} +1 -1
  110. package/dist/client/assets/{combobox-BZSt-sf0.js → combobox-DnggoquQ.js} +1 -1
  111. package/dist/client/assets/{command-CSPNVB8c.js → command-RRas5VNC.js} +1 -1
  112. package/dist/client/assets/{companion-mcps-section-HHphF1lt.js → companion-mcps-section-82FwEnBT.js} +1 -1
  113. package/dist/client/assets/{config-B7tLWM1b.js → config-yv1vcB07.js} +1 -1
  114. package/dist/client/assets/{connect-BK8j-UfV.js → connect-DQYxewxl.js} +1 -1
  115. package/dist/client/assets/{connect-layout-BC5qZusj.js → connect-layout-CSqNYyzb.js} +1 -1
  116. package/dist/client/assets/{connect-source-dialog-Ch0tynWX.js → connect-source-dialog-BEXUazdA.js} +1 -1
  117. package/dist/client/assets/{connection-amzL9L9Z.js → connection-CH3Z1KCr.js} +1 -1
  118. package/dist/client/assets/{connection-card-D8aS8J6Q.js → connection-card-BF5BfmLL.js} +1 -1
  119. package/dist/client/assets/{connection-detail-Cu7F0ogE.js → connection-detail-DuqznM8O.js} +1 -1
  120. package/dist/client/assets/{connection-form-helpers-TT6AKW6f.js → connection-form-helpers-Cpd6u6JQ.js} +1 -1
  121. package/dist/client/assets/{connections-B29MQqZW.js → connections-BYHjY91l.js} +1 -1
  122. package/dist/client/assets/content-tab-mCOWekqN.js +22 -0
  123. package/dist/client/assets/context-DdW3O60M.js +1 -0
  124. package/dist/client/assets/{context-menu-CFt3f_Gb.js → context-menu-D_BKuwIH.js} +1 -1
  125. package/dist/client/assets/{context-shell-KhGmYnbX.js → context-shell-CIoIJ4XQ.js} +3 -3
  126. package/dist/client/assets/{core.esm-Brf7c66K.js → core.esm-Bd-SITM_.js} +1 -1
  127. package/dist/client/assets/{create-organization-dialog-Dshiy6sU.js → create-organization-dialog-B-QOCOL_.js} +1 -1
  128. package/dist/client/assets/{daily-pulse-DglWu2t-.js → daily-pulse-CTP_9_pD.js} +1 -1
  129. package/dist/client/assets/{discover-BLv8PWTL.js → discover-B6JRkvo1.js} +1 -1
  130. package/dist/client/assets/{domain-settings-7tpPEEzB.js → domain-settings-YDH2na3C.js} +1 -1
  131. package/dist/client/assets/{drawer-w05H8pBO.js → drawer-H8aSAwJp.js} +1 -1
  132. package/dist/client/assets/{editor-CiOoO-Ym.js → editor-DvPX7u6U.js} +1 -1
  133. package/dist/client/assets/{editor-classes-DNAm8ZAW.js → editor-classes-CnGnA58J.js} +1 -1
  134. package/dist/client/assets/{empty-state-BiIeVz7z.js → empty-state-BzyULwUr.js} +1 -1
  135. package/dist/client/assets/{empty-state-ErDRcN-P.js → empty-state-DXzhbFKQ.js} +1 -1
  136. package/dist/client/assets/{experiments-tab-choice-CY-Qbhut.js → experiments-tab-choice-DEkj0Qn-.js} +1 -1
  137. package/dist/client/assets/{experiments-tab-BghFguNv.js → experiments-tab-wFwzIEjh.js} +1 -1
  138. package/dist/client/assets/{extract-connection-data-C02FZ5zb.js → extract-connection-data-B6GxSzL3.js} +1 -1
  139. package/dist/client/assets/{feature-gate-CE1MLoN2.js → feature-gate-BOfmLcrg.js} +1 -1
  140. package/dist/client/assets/{feature-paywall-C560RaP5.js → feature-paywall-BuJHEFXn.js} +1 -1
  141. package/dist/client/assets/{file-explorer-CVmiakjw.js → file-explorer-By08wQDy.js} +1 -1
  142. package/dist/client/assets/{file-preview-Cc6_BSbv.js → file-preview-ZIUn5Oc5.js} +1 -1
  143. package/dist/client/assets/{file-share-button-Do4wEYep.js → file-share-button-0HRLJOC3.js} +1 -1
  144. package/dist/client/assets/{file-type-icon-CeBZX69W.js → file-type-icon-B1YNwd4s.js} +1 -1
  145. package/dist/client/assets/{folder-icon-DgtIAyY7.js → folder-icon-BugfSbt-.js} +1 -1
  146. package/dist/client/assets/{form-nJy5zMPE.js → form-CgSRndK2.js} +1 -1
  147. package/dist/client/assets/{general-BOPFN5z3.js → general-BfYy1nfq.js} +1 -1
  148. package/dist/client/assets/{held-block-view-tvHMvR4T.js → held-block-view-DJ-L3NcY.js} +3 -3
  149. package/dist/client/assets/{home-CcsI1NKl.js → home-BMSRZeBG.js} +1 -1
  150. package/dist/client/assets/{hosted-publish-feedback-DxOmBJxT.js → hosted-publish-feedback-D0Bdh4ip.js} +1 -1
  151. package/dist/client/assets/{icon-button-Xe7zTqiw.js → icon-button-DLFu-3bH.js} +1 -1
  152. package/dist/client/assets/{index-Cjzst5W1.js → index-8rk0r3sf.js} +1 -1
  153. package/dist/client/assets/{index-Ce7G0he3.js → index-B0tOn0op.js} +49 -49
  154. package/dist/client/assets/{index-tffbmy1v.js → index-B3SUdR5w.js} +1 -1
  155. package/dist/client/assets/{index-BzwMZ-96.js → index-BDe6L_Fs.js} +1 -1
  156. package/dist/client/assets/{index-CcnAFkjW.js → index-BGhAnNs4.js} +1 -1
  157. package/dist/client/assets/{index-uE3tVNL6.js → index-Bf7bXfI5.js} +1 -1
  158. package/dist/client/assets/{index-BD0IquFc.js → index-C33RBt6x.js} +1 -1
  159. package/dist/client/assets/{index-B8jtRR0H.js → index-CEFh9jFo.js} +1 -1
  160. package/dist/client/assets/{index-BJTbyKBB.js → index-CtJrnLrV.js} +1 -1
  161. package/dist/client/assets/{index-DZ7OjEm4.js → index-CvbPbFXs.js} +1 -1
  162. package/dist/client/assets/{index-Dm-21QtS.js → index-DJcLj00C.js} +1 -1
  163. package/dist/client/assets/{index-ComxOMRa.js → index-DV5SNfGk.js} +1 -1
  164. package/dist/client/assets/{index-BK_RqkJq.js → index-MNuVL2v0.js} +1 -1
  165. package/dist/client/assets/{index-DjOPmK0D.js → index-fCRLOlgL.js} +1 -1
  166. package/dist/client/assets/{index-xw_Jw9LH.js → index-qRJs3nwP.js} +1 -1
  167. package/dist/client/assets/{index-redirect-BRlBNfxv.js → index-redirect-CWZlZdIG.js} +1 -1
  168. package/dist/client/assets/{infiniteQueryObserver-BJujpYxh.js → infiniteQueryObserver-Qk75Yfno.js} +1 -1
  169. package/dist/client/assets/{infra-billing-C0m6hfZU.js → infra-billing-Cfn8EhrD.js} +1 -1
  170. package/dist/client/assets/{input-B45cW293.js → input-CMV7rkdx.js} +3 -3
  171. package/dist/client/assets/{input-CzPtcD68.js → input-DgTSqztG.js} +1 -1
  172. package/dist/client/assets/{integration-icon-Cs3IASPS.js → integration-icon-DH6bJTbT.js} +1 -1
  173. package/dist/client/assets/{jira-icon-BuriBSdU.js → jira-icon-BaiExl6h.js} +1 -1
  174. package/dist/client/assets/{label-ivnVLsJB.js → label-DjW9Efu-.js} +1 -1
  175. package/dist/client/assets/{layout-CZlIpVTU.js → layout-DBDQq16Z.js} +1 -1
  176. package/dist/client/assets/{legacy-agents-deep-DMpNnXol.js → legacy-agents-deep-DqjLAu69.js} +1 -1
  177. package/dist/client/assets/{legacy-main-redirect-CBL3GGt7.js → legacy-main-redirect-BqH36-dH.js} +1 -1
  178. package/dist/client/assets/library-DeXuJevF.js +1 -0
  179. package/dist/client/assets/{login-ByMZv8aL.js → login-LlR_PFwv.js} +1 -1
  180. package/dist/client/assets/{markdown-UmudOdor.js → markdown-CXmgfCfV.js} +1 -1
  181. package/dist/client/assets/{mcp-app-renderer-PAwZvEJj.js → mcp-app-renderer-CymHe0GL.js} +1 -1
  182. package/dist/client/assets/{mcp-oauth-Cz4RwYAs.js → mcp-oauth-BqcW0NNd.js} +1 -1
  183. package/dist/client/assets/{mcp-oauth-qpkBxX91.js → mcp-oauth-DPBTJBcB.js} +1 -1
  184. package/dist/client/assets/{members-DcVu4FNR.js → members-D4WInpkb.js} +1 -1
  185. package/dist/client/assets/{memory-C_hVYwsN.js → memory-5CntRYao.js} +1 -1
  186. package/dist/client/assets/{mini-report-page-DqysKZ5e.js → mini-report-page-CR4VtCxS.js} +1 -1
  187. package/dist/client/assets/mock-board-DJMG3prV.js +81 -0
  188. package/dist/client/assets/{monaco-editor-Cc-5fhHI.js → monaco-editor-SOR0aZJh.js} +1 -1
  189. package/dist/client/assets/{monitoring-DVujO52F.js → monitoring-aIV3430W.js} +1 -1
  190. package/dist/client/assets/{monitoring-stats-row-DosbF5BV.js → monitoring-stats-row-Jq_9Q3cq.js} +1 -1
  191. package/dist/client/assets/{multi-select-DHn_nlnM.js → multi-select-5T86gKsk.js} +1 -1
  192. package/dist/client/assets/{mustache-CKGDjf9j.js → mustache-BrfO16w7.js} +1 -1
  193. package/dist/client/assets/{named-rule-uses-Drzf8cgA.js → named-rule-uses-CWvSr5mm.js} +1 -1
  194. package/dist/client/assets/{new-project-dialog-D3vjD1Ks.js → new-project-dialog-CwbZzsMX.js} +1 -1
  195. package/dist/client/assets/{oauth-callback-D5wWKok2.js → oauth-callback-BQ6KU-zk.js} +1 -1
  196. package/dist/client/assets/{oauth-callback-ai-provider-BKG0BbMN.js → oauth-callback-ai-provider-BWTljUMd.js} +1 -1
  197. package/dist/client/assets/{onboarding-Ci8OMwC9.js → onboarding-UUqqxcRk.js} +1 -1
  198. package/dist/client/assets/{openai-conversation-D9RDSbbV.js → openai-conversation-DXu_ai6d.js} +1 -1
  199. package/dist/client/assets/{optimistic-project-sidebar-views-L0iLKNqt.js → optimistic-project-sidebar-views-C4KEBYns.js} +1 -1
  200. package/dist/client/assets/{order-monitor-day-CYrv-YPX.js → order-monitor-day-BTKxNXuV.js} +1 -1
  201. package/dist/client/assets/{organization-choice-DS1Td5mt.js → organization-choice-CJj1aLLE.js} +1 -1
  202. package/dist/client/assets/{orgs-BdW5vuy7.js → orgs-g3G6AdOe.js} +1 -1
  203. package/dist/client/assets/{page-seo-form-4Td1Bwhl.js → page-seo-form-Cd3pqfx8.js} +1 -1
  204. package/dist/client/assets/{pair-D40XxJSs.js → pair-BS_IW-xJ.js} +1 -1
  205. package/dist/client/assets/{parse-sections-6LYwkRXc.js → parse-sections-Dr39BWrW.js} +1 -1
  206. package/dist/client/assets/{plan-ladder-DyKNTGpe.js → plan-ladder-DPUUy26C.js} +1 -1
  207. package/dist/client/assets/{plan-B5MpX63p.js → plan-w_bsMJ9F.js} +1 -1
  208. package/dist/client/assets/{popover-BF3N_cWR.js → popover-BNB2WAex.js} +1 -1
  209. package/dist/client/assets/post-calendar-CHV8XEbR.js +1 -0
  210. package/dist/client/assets/{post-editor-DlfqwxIk.js → post-editor-CLmTc6Vu.js} +1 -1
  211. package/dist/client/assets/{preview-content-BV8Fh5Qw.js → preview-content-BkRMOITc.js} +1 -1
  212. package/dist/client/assets/{preview-dialog-BmUPiPPl.js → preview-dialog-BYTdTSd2.js} +1 -1
  213. package/dist/client/assets/{preview-panel-llvMLYPZ.js → preview-panel-DXXylmoB.js} +1 -1
  214. package/dist/client/assets/{preview-tab-DieLxroc.js → preview-tab-D9YpAMyB.js} +3 -3
  215. package/dist/client/assets/{product-picker-dialog-DVInlx3E.js → product-picker-dialog-WMQXlZUo.js} +1 -1
  216. package/dist/client/assets/{profile-BeQa-VCG.js → profile-DLCwlVCc.js} +1 -1
  217. package/dist/client/assets/{project-app-view-Cey1t0qJ.js → project-app-view-B-s_ilf4.js} +1 -1
  218. package/dist/client/assets/{project-apps-B_x_Bovr.js → project-apps-DgFIeSYf.js} +1 -1
  219. package/dist/client/assets/{project-feed-CFTw8-Bu.js → project-feed-u80jGsBM.js} +1 -1
  220. package/dist/client/assets/{project-icon-Cgbmeoa9.js → project-icon-DpS1PVmR.js} +1 -1
  221. package/dist/client/assets/project-reports-BUpmOe9y.js +1 -0
  222. package/dist/client/assets/project-tasks-B5gIJMoD.js +1 -0
  223. package/dist/client/assets/{projects-Cadx_2S-.js → projects-BQFTIIlv.js} +1 -1
  224. package/dist/client/assets/{projects-empty-state-B0sxQqwF.js → projects-empty-state-B1rOjHBT.js} +1 -1
  225. package/dist/client/assets/{prompts-B6yRUPTQ.js → prompts-BwDjnPim.js} +1 -1
  226. package/dist/client/assets/record-editor-B87aHfte.js +1 -0
  227. package/dist/client/assets/{redirect-editor-UO7ym99V.js → redirect-editor-DIUdga9p.js} +1 -1
  228. package/dist/client/assets/{releases-api-Dz4kituq.js → releases-api-CbLHrT57.js} +1 -1
  229. package/dist/client/assets/{reports-BN03l_kE.js → reports-BY7Ys0O3.js} +1 -1
  230. package/dist/client/assets/reports-Bv95v9-B.js +1 -0
  231. package/dist/client/assets/{reports-onboarding-CXYw21hI.js → reports-onboarding-sD19crIX.js} +1 -1
  232. package/dist/client/assets/{reports-tab-DNDxSx2i.js → reports-tab-CXYw7uK_.js} +2 -2
  233. package/dist/client/assets/repositories-5RE7P1Fj.js +1 -0
  234. package/dist/client/assets/{repositories-DkDpuhbE.js → repositories-B0n3HOv9.js} +1 -1
  235. package/dist/client/assets/{repository-binding-Dg4XMxXs.js → repository-binding-DBKiXzE_.js} +1 -1
  236. package/dist/client/assets/{repository-import-picker-BZ7PPi9W.js → repository-import-picker-BW6Sgxp6.js} +1 -1
  237. package/dist/client/assets/{repository-picker-aA12wSzy.js → repository-picker-CC5H8ljW.js} +1 -1
  238. package/dist/client/assets/{require-capability-CXN6JJ5S.js → require-capability-COWPBR01.js} +1 -1
  239. package/dist/client/assets/{required-auth-layout-pDiTStrv.js → required-auth-layout-CiEz7oyV.js} +1 -1
  240. package/dist/client/assets/{reset-password-CRhNEOOs.js → reset-password-CRw2eYcE.js} +1 -1
  241. package/dist/client/assets/{resizable-HiC69AzM.js → resizable-BnHppfEe.js} +1 -1
  242. package/dist/client/assets/{resolve-tab-icon-DdbyVt-l.js → resolve-tab-icon-Bo7Cblp-.js} +1 -1
  243. package/dist/client/assets/{review-settings-BdnOsmg6.js → review-settings-c5PLuzL1.js} +1 -1
  244. package/dist/client/assets/{roles-C54CSjKN.js → roles-Ch2duQPh.js} +1 -1
  245. package/dist/client/assets/route-6_F9Lvsg.js +1 -0
  246. package/dist/client/assets/{route-19TfZ9Nu.js → route-D6dIow4H.js} +1 -1
  247. package/dist/client/assets/{route-ChUurj1a.js → route-DBe1uYBt.js} +1 -1
  248. package/dist/client/assets/{sandbox-lifecycle-context-C-6LRZKK.js → sandbox-lifecycle-context-BcTeO4Q3.js} +1 -1
  249. package/dist/client/assets/{schema-4d6JAPZJ.js → schema-C7U_cF_C.js} +1 -1
  250. package/dist/client/assets/{schema-DjHUnA9X.js → schema-DuXRpy1C.js} +1 -1
  251. package/dist/client/assets/{scroll-area-DmCvljJ6.js → scroll-area-BYf7WryG.js} +1 -1
  252. package/dist/client/assets/{search-input-DuxKe01B.js → search-input-Bl81W1Nh.js} +1 -1
  253. package/dist/client/assets/{search-toggle-5fjHehxP.js → search-toggle-BR2ntzDz.js} +1 -1
  254. package/dist/client/assets/{secret-picker-gnCLcdHl.js → secret-picker-CYFTZf4e.js} +1 -1
  255. package/dist/client/assets/{secrets-1Q0KkbT2.js → secrets-vKVDoP1f.js} +1 -1
  256. package/dist/client/assets/{section-array-field-DJWSUlEO.js → section-array-field-DUVFffgC.js} +1 -1
  257. package/dist/client/assets/{sections-editor-Cd0e4qhb.js → sections-editor-CcMaFbqS.js} +1 -1
  258. package/dist/client/assets/{sections-BFagCGU_.js → sections-y7v9FSuQ.js} +1 -1
  259. package/dist/client/assets/{select-BU91L4uy.js → select-BqKA-vqL.js} +1 -1
  260. package/dist/client/assets/{select-model-CtxoaFb9.js → select-model-BGFnOFCQ.js} +1 -1
  261. package/dist/client/assets/{seo-editor-dOpYS1fH.js → seo-editor-Zi_CHSPY.js} +1 -1
  262. package/dist/client/assets/{separator-C2eDbIfB.js → separator-B8n6kHAZ.js} +1 -1
  263. package/dist/client/assets/settings-tab-KnQUkP6Y.js +1 -0
  264. package/dist/client/assets/{sheet-CyFkbR9Y.js → sheet-BAxFoa2_.js} +1 -1
  265. package/dist/client/assets/{shell-layout-DjxWvBNL.js → shell-layout-CV6pDkTS.js} +1 -1
  266. package/dist/client/assets/site-draft-actions-Bgz-FOQK.js +3 -0
  267. package/dist/client/assets/{site-draft-view-DmpsxvZd.js → site-draft-view-DHafi4O7.js} +2 -2
  268. package/dist/client/assets/site-editor-BNlcB92o.js +1 -0
  269. package/dist/client/assets/{site-editor-toast-DwH2UhLV.js → site-editor-toast-DlVUb8vV.js} +1 -1
  270. package/dist/client/assets/{skills-CEjNG6HD.js → skills-BtMvbWCD.js} +1 -1
  271. package/dist/client/assets/{slider-wRMQIU5C.js → slider-KvVzGkcV.js} +1 -1
  272. package/dist/client/assets/{sortable.esm-GfRDqHVM.js → sortable.esm-CHgVwe8S.js} +1 -1
  273. package/dist/client/assets/{sso-ou3AfF03.js → sso-DuuvDFz4.js} +1 -1
  274. package/dist/client/assets/{suggestion-GTJqe6wD.js → suggestion-Cmvr6ozT.js} +1 -1
  275. package/dist/client/assets/{switch-Be6f0Lf5.js → switch-DqbfJ6XC.js} +1 -1
  276. package/dist/client/assets/{symbol-D9upvJXv.js → symbol-BkEjWtZb.js} +1 -1
  277. package/dist/client/assets/{synced-repos-BMxqOtvT.js → synced-repos-BxtXsnIq.js} +1 -1
  278. package/dist/client/assets/{tab-icon-glyph-ixZicBgd.js → tab-icon-glyph-RtjNPv4h.js} +1 -1
  279. package/dist/client/assets/{table-Sgqiv7ow.js → table-Ch8y7OxX.js} +1 -1
  280. package/dist/client/assets/{tabs-CTBn6AHY.js → tabs-CvTwctdA.js} +1 -1
  281. package/dist/client/assets/{task-assignee-avatar-CgqfXsXT.js → task-assignee-avatar-DWyVzTkD.js} +1 -1
  282. package/dist/client/assets/{task-board-B-WXUk04.js → task-board-BN1n0sAA.js} +1 -1
  283. package/dist/client/assets/{task-route-D7L_AjBa.js → task-route-WFFRmRkj.js} +1 -1
  284. package/dist/client/assets/{task-status-D47mg_UC.js → task-status-DSSpycnv.js} +1 -1
  285. package/dist/client/assets/{taskboard-analytics-BXOv_DdG.js → taskboard-analytics-xsNPy8N8.js} +1 -1
  286. package/dist/client/assets/{tasks-DRiqBj-N.js → tasks-D5PsurKg.js} +1 -1
  287. package/dist/client/assets/tasks-DqBBZHH6.js +1 -0
  288. package/dist/client/assets/{textarea-CiBj0MLq.js → textarea-Ce3-2mS-.js} +1 -1
  289. package/dist/client/assets/{thread-analytics-apzZ--go.js → thread-analytics-D6o0TQdW.js} +1 -1
  290. package/dist/client/assets/{thread-intent-ClCyX82j.js → thread-intent-Ckrry8zY.js} +1 -1
  291. package/dist/client/assets/{thread-route-D14ghtgQ.js → thread-route-B2QRkxdS.js} +1 -1
  292. package/dist/client/assets/{thread-route-CFct_VQa.js → thread-route-dALO1ggR.js} +1 -1
  293. package/dist/client/assets/{thread-sheet-body-BCarr4x7.js → thread-sheet-body-O6J2hk4T.js} +1 -1
  294. package/dist/client/assets/{time-range-picker-C3_uZ5O2.js → time-range-picker-BdhPN_P3.js} +1 -1
  295. package/dist/client/assets/{toggle-group-BVSslRda.js → toggle-group-DplSVqNV.js} +1 -1
  296. package/dist/client/assets/{tool-namespace-C-2tGGMF.js → tool-namespace-Ca_f3ged.js} +1 -1
  297. package/dist/client/assets/{toolbar-icon-button-3L1Mfrbu.js → toolbar-icon-button-BU_Lc1T3.js} +1 -1
  298. package/dist/client/assets/{tooltip-BHLCIkH9.js → tooltip-CgglVi9W.js} +1 -1
  299. package/dist/client/assets/{tooltipContext-BMB7e6XT.js → tooltipContext-C2kbIrVy.js} +1 -1
  300. package/dist/client/assets/{track-DUL7obAK.js → track-y4KgSLRA.js} +1 -1
  301. package/dist/client/assets/{types-9H7KFAzM.js → types-Df2OBpZL.js} +1 -1
  302. package/dist/client/assets/{url-slug-CrYfl8wu.js → url-slug-CiVvW5vP.js} +1 -1
  303. package/dist/client/assets/{usage-stats-CtXF_bWd.js → usage-stats-DK8XMQvR.js} +1 -1
  304. package/dist/client/assets/{use-ai-providers-DmHiyABc.js → use-ai-providers-hxbNecrE.js} +1 -1
  305. package/dist/client/assets/{use-apply-named-rule-DnrC-2Y6.js → use-apply-named-rule-CGvl7OA7.js} +1 -1
  306. package/dist/client/assets/{use-automations-BeX04Bm6.js → use-automations-eL46w5sy.js} +1 -1
  307. package/dist/client/assets/{use-autosave-Civ5dqYG.js → use-autosave-0ySBC_GL.js} +1 -1
  308. package/dist/client/assets/{use-chat-layout-state-DEHPkPVs.js → use-chat-layout-state-BSTkVYBd.js} +1 -1
  309. package/dist/client/assets/{use-clock-tick-C1thlLib.js → use-clock-tick-Ck7vSkhv.js} +1 -1
  310. package/dist/client/assets/use-cms-publish-actions-CNrHUo7H.js +10 -0
  311. package/dist/client/assets/{use-connect-companion-XN72CB3K.js → use-connect-companion-KqiIqJ2t.js} +1 -1
  312. package/dist/client/assets/{use-connection-DdV5v_sO.js → use-connection-EUcmc_O-.js} +1 -1
  313. package/dist/client/assets/{use-copy-DGCMROZD.js → use-copy-CE87YLnn.js} +1 -1
  314. package/dist/client/assets/{use-create-virtual-mcp-CYamK9uo.js → use-create-virtual-mcp-9RehQdtY.js} +1 -1
  315. package/dist/client/assets/{use-date-fns-locale-RvTpk_ov.js → use-date-fns-locale-4LRMo-Iu.js} +1 -1
  316. package/dist/client/assets/{use-debounced-autosave-CCKD06RC.js → use-debounced-autosave-DjMsuM5_.js} +1 -1
  317. package/dist/client/assets/{use-debounced-value-D4hMc82O.js → use-debounced-value-CthHwE3s.js} +1 -1
  318. package/dist/client/assets/{use-deco-credits-8Cm_6S2l.js → use-deco-credits-BbBcoaKj.js} +1 -1
  319. package/dist/client/assets/{use-decopilot-events-CMhdGvid.js → use-decopilot-events-PGYGrQrr.js} +1 -1
  320. package/dist/client/assets/{use-delete-connection-DczFLZ2h.js → use-delete-connection-D4r9W5uz.js} +1 -1
  321. package/dist/client/assets/{use-deployment-admin-D33YqaOd.js → use-deployment-admin-C_gdAaQL.js} +1 -1
  322. package/dist/client/assets/{use-fast-preview-draft-url-5-OqnV1z.js → use-fast-preview-draft-url-B55YeUkV.js} +1 -1
  323. package/dist/client/assets/{use-file-configs-B-dtUlcn.js → use-file-configs-CYRdd8Dm.js} +1 -1
  324. package/dist/client/assets/{use-inbox-feed-DgAPUhXS.js → use-inbox-feed-D9h8ltqT.js} +1 -1
  325. package/dist/client/assets/{use-infinite-scroll-Boo11DpH.js → use-infinite-scroll-B-uSWzNc.js} +1 -1
  326. package/dist/client/assets/{use-join-requests-WGDHodyD.js → use-join-requests-BUZPOPVU.js} +1 -1
  327. package/dist/client/assets/{use-main-panel-tabs-D8UhTy5h.js → use-main-panel-tabs-Bk1EtVnG.js} +1 -1
  328. package/dist/client/assets/{use-mcp-auth-status-Ue891t8t.js → use-mcp-auth-status-3nUlBDBy.js} +1 -1
  329. package/dist/client/assets/{use-mcp-client-B9-9jnHW.js → use-mcp-client-DJpi4PM5.js} +1 -1
  330. package/dist/client/assets/{use-mcp-prompts-Duq-F4uG.js → use-mcp-prompts-wOk1Vinz.js} +1 -1
  331. package/dist/client/assets/{use-mcp-tools-DvCVc1NG.js → use-mcp-tools-Bfcp5LpM.js} +1 -1
  332. package/dist/client/assets/{use-mobile-BZz7cwuI.js → use-mobile-D1VdMSzS.js} +1 -1
  333. package/dist/client/assets/{use-move-blocks-DUpXqrhw.js → use-move-blocks-Dg9U_Nb8.js} +1 -1
  334. package/dist/client/assets/{use-navigate-to-agent-CEpb-TPy.js → use-navigate-to-agent-CCS7aqQS.js} +1 -1
  335. package/dist/client/assets/{use-open-billing-url-AHjpaAXa.js → use-open-billing-url-BixRtMzE.js} +1 -1
  336. package/dist/client/assets/{use-org-fs-8kFrjmMH.js → use-org-fs-CeGf0w9Y.js} +1 -1
  337. package/dist/client/assets/{use-org-repo-syncs-DHiYUCj6.js → use-org-repo-syncs-BfOEx3n_.js} +1 -1
  338. package/dist/client/assets/{use-org-sso-l3h7LAOC.js → use-org-sso-DMyNEVzj.js} +1 -1
  339. package/dist/client/assets/{use-organization-roles-DWGBtp2u.js → use-organization-roles-DAWtiUfW.js} +1 -1
  340. package/dist/client/assets/{use-organization-settings-DAQWwUyU.js → use-organization-settings-DPGSLMns.js} +1 -1
  341. package/dist/client/assets/{use-panel-navigate-C-mQZt-r.js → use-panel-navigate-Bgyt5CHg.js} +1 -1
  342. package/dist/client/assets/{use-project-native-view-presence-D2zRgAqZ.js → use-project-native-view-presence-C-gVs4yc.js} +1 -1
  343. package/dist/client/assets/{use-project-scope-DYBc2cnp.js → use-project-scope-CzfpwfYe.js} +1 -1
  344. package/dist/client/assets/{use-recent-apps-CahLdkOq.js → use-recent-apps-Ynx2etJA.js} +1 -1
  345. package/dist/client/assets/{use-releases-Drxi11Hn.js → use-releases-C6WrYJK9.js} +1 -1
  346. package/dist/client/assets/{use-reports-diagnostic-C0y8CLzl.js → use-reports-diagnostic-BTM7hE_9.js} +1 -1
  347. package/dist/client/assets/{use-sandbox-events-DKnAt9WL.js → use-sandbox-events-h5DHAMj7.js} +1 -1
  348. package/dist/client/assets/{use-secrets-CCJcL_mR.js → use-secrets-C3TBzGsD.js} +1 -1
  349. package/dist/client/assets/{use-section-preview-base-yGU9kv3R.js → use-section-preview-base-DUpmdDxV.js} +1 -1
  350. package/dist/client/assets/{use-session-runtime-CL3Ry0XG.js → use-session-runtime-Cr5FejOR.js} +1 -1
  351. package/dist/client/assets/{use-sidebar-collapsed-CbzeRAk-.js → use-sidebar-collapsed-83oP_cPD.js} +1 -1
  352. package/dist/client/assets/{use-tags-Af_mmSB1.js → use-tags-Cb5ZtoLA.js} +1 -1
  353. package/dist/client/assets/{use-task-board-analytics-BkPBycom.js → use-task-board-analytics-DdbcnB93.js} +1 -1
  354. package/dist/client/assets/{use-task-board-events-Bs2sMvhO.js → use-task-board-events-iZ165E68.js} +1 -1
  355. package/dist/client/assets/{use-task-board-item-prs-DtKTjCYS.js → use-task-board-item-prs-k6qHY43S.js} +1 -1
  356. package/dist/client/assets/{use-task-metadata-CaEOmtPV.js → use-task-metadata-DkMgTFSM.js} +1 -1
  357. package/dist/client/assets/{use-thread-analytics-DFAhXiiU.js → use-thread-analytics-BqMf8Bru.js} +1 -1
  358. package/dist/client/assets/{use-thread-outputs-wHP5lV5E.js → use-thread-outputs-CQhptiZl.js} +1 -1
  359. package/dist/client/assets/useInfiniteQuery-B3u_qeyw.js +1 -0
  360. package/dist/client/assets/{useQueries-bayVPMWC.js → useQueries-BonGRGF_.js} +1 -1
  361. package/dist/client/assets/useSuspenseInfiniteQuery-0NVyrPzv.js +1 -0
  362. package/dist/client/assets/{users-BXC7BZTC.js → users-DlCEgHwN.js} +1 -1
  363. package/dist/client/assets/{utils-C_XIOzcP.js → utils-BBkAOZCB.js} +1 -1
  364. package/dist/client/assets/{variant-calendar-DqsG-wJ9.js → variant-calendar-CkyDXDJQ.js} +1 -1
  365. package/dist/client/assets/{variant-matcher-override-BfAJFrjh.js → variant-matcher-override-Ce2rdmeW.js} +1 -1
  366. package/dist/client/assets/{view-header-BlWEzmVd.js → view-header-DQbofxq8.js} +1 -1
  367. package/dist/client/assets/{virtual-mcp-BfSfmNNT.js → virtual-mcp-BI04Wiyg.js} +1 -1
  368. package/dist/client/assets/{watch-sse-pool-D5nA1051.js → watch-sse-pool-BAzbGHBs.js} +1 -1
  369. package/dist/client/index.html +1 -1
  370. package/dist/server/server.js +1 -1
  371. package/package.json +1 -1
  372. package/dist/client/assets/agent-analytics-wllTP-xB.js +0 -1
  373. package/dist/client/assets/agent-app-MGvu076D.js +0 -1
  374. package/dist/client/assets/agent-deck-CdHFig9V.js +0 -1
  375. package/dist/client/assets/agent-experiments-pgMnsFIB.js +0 -1
  376. package/dist/client/assets/agent-library-DjU97YsS.js +0 -1
  377. package/dist/client/assets/agent-library-file-DXHCBJAM.js +0 -1
  378. package/dist/client/assets/agent-monitor-Bucu2iO3.js +0 -1
  379. package/dist/client/assets/agent-settings-w-cNQlVy.js +0 -1
  380. package/dist/client/assets/agent-site-editor-code-B432kGPM.js +0 -2
  381. package/dist/client/assets/agent-site-editor-content-CQYunysB.js +0 -1
  382. package/dist/client/assets/agent-site-editor-preview-CLsSdnEd.js +0 -1
  383. package/dist/client/assets/agent-view-DP6mfHYN.js +0 -1
  384. package/dist/client/assets/api-keys-8RAAQTX6.js +0 -1
  385. package/dist/client/assets/category-editor-BrbTG2-B.js +0 -1
  386. package/dist/client/assets/cms-settings-editor-D8-PKCcN.js +0 -1
  387. package/dist/client/assets/content-tab-BhOwV-AC.js +0 -22
  388. package/dist/client/assets/context-CgB14LeY.js +0 -1
  389. package/dist/client/assets/library-CdY45oa5.js +0 -1
  390. package/dist/client/assets/mock-board-BSsrmRDS.js +0 -81
  391. package/dist/client/assets/post-calendar-BtEPuDia.js +0 -1
  392. package/dist/client/assets/project-reports-BuglSKY2.js +0 -1
  393. package/dist/client/assets/project-tasks-CwzdWFfG.js +0 -1
  394. package/dist/client/assets/record-editor-1SlOHcz4.js +0 -1
  395. package/dist/client/assets/reports-DuuFM9rE.js +0 -1
  396. package/dist/client/assets/repositories-Dvbq5CpF.js +0 -1
  397. package/dist/client/assets/route-CkPY6J06.js +0 -1
  398. package/dist/client/assets/settings-tab-D7WyDwD7.js +0 -1
  399. package/dist/client/assets/site-draft-actions-Ck3uf8oy.js +0 -3
  400. package/dist/client/assets/site-editor-BXDxn3xb.js +0 -1
  401. package/dist/client/assets/tasks-CDonOW9g.js +0 -1
  402. package/dist/client/assets/use-cms-publish-actions-Ca_6MHNE.js +0 -10
  403. package/dist/client/assets/useInfiniteQuery-DAGt4Ai1.js +0 -1
  404. package/dist/client/assets/useSuspenseInfiniteQuery-BCXHmK3t.js +0 -1
@@ -1 +0,0 @@
1
- import{c as it,b as pt,r as lt,H as jt,j as e,l as et,B as tt,ay as Ct}from"./index-Ce7G0he3.js";import{a1 as Nt,H as Dt}from"./agent-icon-I45DkNr8.js";import{s as kt}from"./Plus-BPVKrQFz.js";import{S as St}from"./scroll-area-DmCvljJ6.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{aB as zt,l as Et,aC as Pt}from"./content-tab-BhOwV-AC.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./index-BdQq_4o_.js";import"./use-organization-settings-DAQWwUyU.js";import"./schema-4d6JAPZJ.js";import"./task-board-B-WXUk04.js";import"./chat-context-DIvwe-Wr.js";import"./use-panel-navigate-C-mQZt-r.js";import"./thread-route-D14ghtgQ.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./autosend-CxxtAFJ_.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CMhdGvid.js";import"./use-ai-providers-DmHiyABc.js";import"./location-V0VwTJTt.js";import"./blocks-tab-states-BrRgLQ_Y.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./label-ivnVLsJB.js";import"./slider-wRMQIU5C.js";import"./index-DjOPmK0D.js";import"./tooltipContext-BMB7e6XT.js";import"./CategoricalChart-C9NLmvFO.js";import"./index-tffbmy1v.js";import"./ActiveShapeUtils-Br894ljM.js";import"./Sector-mFZOIMSW.js";import"./symbol-D9upvJXv.js";import"./parse-sections-6LYwkRXc.js";import"./site-editor-toast-DwH2UhLV.js";import"./use-session-runtime-CL3Ry0XG.js";import"./experiments-tab-choice-CY-Qbhut.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-C_XIOzcP.js";import"./use-sandbox-events-DKnAt9WL.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-BiIeVz7z.js";import"./held-block-view-tvHMvR4T.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-D40XxJSs.js";import"./collapsible-zPk-2gi_.js";import"./use-copy-DGCMROZD.js";import"./usage-stats-CtXF_bWd.js";import"./tool-namespace-C-2tGGMF.js";import"./form-nJy5zMPE.js";import"./utils-CVEq3hMx.js";import"./markdown-UmudOdor.js";import"./use-mobile-BZz7cwuI.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./use-clock-tick-C1thlLib.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PAwZvEJj.js";import"./types-9H7KFAzM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DjxWvBNL.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./required-auth-layout-pDiTStrv.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./use-connection-DdV5v_sO.js";import"./use-mcp-prompts-Duq-F4uG.js";import"./use-thread-outputs-wHP5lV5E.js";import"./file-type-icon-CeBZX69W.js";import"./section-array-field-DJWSUlEO.js";import"./alert-CRToIlco.js";import"./switch-Be6f0Lf5.js";import"./textarea-CiBj0MLq.js";import"./popover-BF3N_cWR.js";import"./monaco-editor-Cc-5fhHI.js";import"./editor-CiOoO-Ym.js";import"./calendar-C7teLmhJ.js";import"./select-BU91L4uy.js";import"./editor-classes-DNAm8ZAW.js";import"./core.esm-Brf7c66K.js";import"./sortable.esm-GfRDqHVM.js";import"./toggle-group-BVSslRda.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BZSt-sf0.js";import"./search-input-DuxKe01B.js";import"./tabs-CTBn6AHY.js";import"./use-file-configs-B-dtUlcn.js";import"./asset-utils-B46ygA_L.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./view-header-BlWEzmVd.js";import"./mustache-CKGDjf9j.js";import"./hosted-publish-feedback-DxOmBJxT.js";import"./sandbox-lifecycle-context-C-6LRZKK.js";import"./checkbox-CW4Dzojp.js";import"./use-move-blocks-DUpXqrhw.js";import"./badge-zxuYXquF.js";import"./empty-state-ErDRcN-P.js";import"./use-cms-publish-actions-Ca_6MHNE.js";import"./collection-table-wrapper-vDq2vkVG.js";import"./table-Sgqiv7ow.js";const ft="border-success/30 bg-success/10 text-success hover:bg-success/20",xt="border-dashed border-border bg-muted text-muted-foreground hover:bg-secondary-hover hover:text-accent-foreground";function ho(h){const t=it.c(83),{decofile:b,selectedKey:d,onSelect:o,onCreate:m,onReschedule:i,isCreating:D}=h,s=D===void 0?!1:D,r=pt(),[j,C]=lt.useState(null),[rt]=jt(),[n,f]=lt.useState(Mt),p=rt.language;let N;t[0]!==n||t[1]!==p?(N=new Intl.DateTimeFormat(p,{month:"long",year:"numeric"}).format(n),t[0]=n,t[1]=p,t[2]=N):N=t[2];const y=N;let x,u,a,c,v,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==y||t[9]!==m||t[10]!==i||t[11]!==o||t[12]!==d||t[13]!==r){const ut=new Intl.DateTimeFormat(p,{weekday:"short"}),gt=new Intl.DateTimeFormat(p,{dateStyle:"long"}),{byDay:ht,undated:ot}=zt(Et(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let J;t[24]===Symbol.for("react.memo_cache_sentinel")?(J=()=>f(ct(new Date)),t[24]=J):J=t[24];let M;t[25]!==r?(M=r("sandbox.postCalendar.today"),t[25]=r,t[26]=M):M=t[26];let I;t[27]!==M?(I=e.jsx(tt,{variant:"outline",size:"sm",onClick:J,children:M}),t[27]=M,t[28]=I):I=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Lt),t[29]=Q):Q=t[29];let U;t[30]!==r?(U=r("sandbox.postCalendar.previous"),t[30]=r,t[31]=U):U=t[31];let V;t[32]===Symbol.for("react.memo_cache_sentinel")?(V=e.jsx(Dt,{size:16}),t[32]=V):V=t[32];let _;t[33]!==U?(_=e.jsx(tt,{variant:"ghost",size:"icon",onClick:Q,"aria-label":U,children:V}),t[33]=U,t[34]=_):_=t[34];let X;t[35]===Symbol.for("react.memo_cache_sentinel")?(X=()=>f(Ht),t[35]=X):X=t[35];let $;t[36]!==r?($=r("sandbox.postCalendar.next"),t[36]=r,t[37]=$):$=t[37];let Y;t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=e.jsx(Ct,{size:16}),t[38]=Y):Y=t[38];let B;t[39]!==$?(B=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=B):B=t[40];let O;t[41]!==y?(O=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:y}),t[41]=y,t[42]=O):O=t[42];let F;t[43]!==r?(F=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=F):F=t[44];let R;t[45]!==F?(R=e.jsx(mt,{className:ft,label:F}),t[45]=F,t[46]=R):R=t[46];let A;t[47]!==r?(A=r("sandbox.postCalendar.legendUnscheduled"),t[47]=r,t[48]=A):A=t[48];let K;t[49]!==A?(K=e.jsx(mt,{className:xt,label:A}),t[49]=A,t[50]=K):K=t[50];let W;t[51]!==R||t[52]!==K?(W=e.jsxs("div",{className:"ml-auto flex items-center gap-4",children:[R,K]}),t[51]=R,t[52]=K,t[53]=W):W=t[53],t[54]!==I||t[55]!==_||t[56]!==B||t[57]!==O||t[58]!==W?(a=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[I,_,B,O,W]}),t[54]=I,t[55]=_,t[56]=B,t[57]=O,t[58]=W,t[59]=a):a=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let q;t[60]!==r?(q=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=q):q=t[61];let Z;t[62]!==q?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:q}),t[62]=q,t[63]=Z):Z=t[63],w=e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("div",{className:"grid grid-cols-7 mb-2",children:st[0]?.map(l=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(l)},l.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(l=>{const yt=l.getMonth()===n.getMonth(),vt=ht.get(Pt(l))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const at=g.dataTransfer.getData("text/plain");C(null),at&&i(at,l)},className:et("group/day min-h-28 space-y-1 p-2 transition-colors",yt?"bg-background":"bg-muted/40",j&&"hover:bg-accent"),children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("div",{className:et("grid size-6 place-items-center rounded-full text-xs",l.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:l.getDate()}),e.jsx(tt,{variant:"ghost",size:"icon-xs",className:"opacity-0 transition-opacity group-hover/day:opacity-100 focus-visible:opacity-100",disabled:s,onClick:()=>m(l),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(l)}),children:e.jsx(kt,{size:14})})]}),vt.map(g=>e.jsx(nt,{entry:g,active:g.post.key===d,draggable:g.scheduled,onSelect:o,onDragStateChange:C},g.post.key))]},l.getTime())})}),Z]}),c="w-[220px] shrink-0 space-y-2 self-start rounded-lg border border-dashed p-3",v=e.jsx("p",{className:"px-1 text-2xs font-medium text-muted-foreground",children:r("sandbox.postCalendar.undatedLabel",{count:ot.length})}),k=ot.length===0?e.jsxs("div",{className:"flex flex-col items-center gap-2 px-2 py-8 text-center",children:[e.jsx(Nt,{size:20,className:"text-muted-foreground/60","aria-hidden":!0}),e.jsx("p",{className:"text-xs text-muted-foreground",children:r("sandbox.postCalendar.undatedEmpty")})]}):ot.map(l=>e.jsx(nt,{entry:l,active:l.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},l.post.key)),t[3]=n,t[4]=b,t[5]=j,t[6]=s,t[7]=p,t[8]=y,t[9]=m,t[10]=i,t[11]=o,t[12]=d,t[13]=r,t[14]=x,t[15]=u,t[16]=a,t[17]=c,t[18]=v,t[19]=k,t[20]=S,t[21]=w,t[22]=T,t[23]=z}else x=t[14],u=t[15],a=t[16],c=t[17],v=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==v||t[66]!==k?(E=e.jsxs("div",{className:c,children:[v,k]}),t[64]=c,t[65]=v,t[66]=k,t[67]=E):E=t[67];let P;t[68]!==E||t[69]!==S||t[70]!==w?(P=e.jsxs("div",{className:S,children:[w,E]}),t[68]=E,t[69]=S,t[70]=w,t[71]=P):P=t[71];let H;t[72]!==x||t[73]!==P||t[74]!==T?(H=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=H):H=t[75];let L;t[76]!==H||t[77]!==z?(L=e.jsx("div",{className:z,children:H}),t[76]=H,t[77]=z,t[78]=L):L=t[78];let G;return t[79]!==u||t[80]!==a||t[81]!==L?(G=e.jsxs("div",{className:u,children:[a,L]}),t[79]=u,t[80]=a,t[81]=L,t[82]=G):G=t[82],G}function Ht(h){return dt(h,1)}function Lt(h){return dt(h,-1)}function Mt(){return ct(new Date)}function mt(h){const t=it.c(7),{className:b,label:d}=h;let o;t[0]!==b?(o=et("size-3 rounded-sm border",b),t[0]=b,t[1]=o):o=t[1];let m;t[2]!==o?(m=e.jsx("span",{className:o}),t[2]=o,t[3]=m):m=t[3];let i;return t[4]!==d||t[5]!==m?(i=e.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[m,d]}),t[4]=d,t[5]=m,t[6]=i):i=t[6],i}function nt(h){const t=it.c(23),{entry:b,active:d,draggable:o,onSelect:m,onDragStateChange:i}=h,D=pt(),{post:s,scheduled:r}=b,j=r?"sandbox.postCalendar.legendScheduled":"sandbox.postCalendar.legendUnscheduled";let C;t[0]!==D||t[1]!==j?(C=D(j),t[0]=D,t[1]=j,t[2]=C):C=t[2];const rt=C;let n;t[3]!==i||t[4]!==s.key?(n=v=>{v.dataTransfer.setData("text/plain",s.key),v.dataTransfer.effectAllowed="move",i(s.key)},t[3]=i,t[4]=s.key,t[5]=n):n=t[5];let f;t[6]!==i?(f=()=>i(null),t[6]=i,t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==s.key?(p=()=>m(s.key),t[8]=m,t[9]=s.key,t[10]=p):p=t[10];const N=`${s.title} · ${rt}`,y=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let a;t[11]!==y||t[12]!==x||t[13]!==u?(a=et("w-full truncate rounded-lg border px-2 py-1 text-left text-xs font-medium transition-colors",y,x,u),t[11]=y,t[12]=x,t[13]=u,t[14]=a):a=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==a||t[18]!==n||t[19]!==f||t[20]!==p||t[21]!==N?(c=e.jsx("button",{type:"button",draggable:o,onDragStart:n,onDragEnd:f,onClick:p,title:N,className:a,children:s.title}),t[15]=o,t[16]=s.title,t[17]=a,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{ho as PostCalendar};
@@ -1 +0,0 @@
1
- import{c as m,j as r}from"./index-Ce7G0he3.js";import{C as i}from"./index-uE3tVNL6.js";import{R as p}from"./reports-tab-DNDxSx2i.js";import"./use-mobile-BZz7cwuI.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./thread-route-D14ghtgQ.js";import"./use-panel-navigate-C-mQZt-r.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";import"./site-url-en5df9c-.js";import"./use-reports-diagnostic-C0y8CLzl.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./mini-report-page-DqysKZ5e.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";import"./projects-empty-state-B0sxQqwF.js";import"./project-profile-Cc4MG3QN.js";function Bt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{Bt as default};
@@ -1 +0,0 @@
1
- import{c as l,a4 as n,j as r,K as f}from"./index-Ce7G0he3.js";import{C as d}from"./index-uE3tVNL6.js";import{m as u,P as x,T as h}from"./mock-board-BSsrmRDS.js";import{F as j}from"./feature-gate-CE1MLoN2.js";import"./use-mobile-BZz7cwuI.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./thread-route-D14ghtgQ.js";import"./use-panel-navigate-C-mQZt-r.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";import"./core.esm-Brf7c66K.js";import"./sortable.esm-GfRDqHVM.js";import"./use-task-board-analytics-BkPBycom.js";import"./combobox-BZSt-sf0.js";import"./popover-BF3N_cWR.js";import"./usage-stats-CtXF_bWd.js";import"./tool-namespace-C-2tGGMF.js";import"./form-nJy5zMPE.js";import"./utils-CVEq3hMx.js";import"./markdown-UmudOdor.js";import"./use-copy-DGCMROZD.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-CMhdGvid.js";import"./chat-context-DIvwe-Wr.js";import"./use-ai-providers-DmHiyABc.js";import"./suggestion-GTJqe6wD.js";import"./column-rules-Dz5XFx3r.js";import"./badge-zxuYXquF.js";import"./icon-button-Xe7zTqiw.js";import"./switch-Be6f0Lf5.js";import"./textarea-CiBj0MLq.js";import"./use-org-fs-8kFrjmMH.js";import"./use-automations-BeX04Bm6.js";import"./search-toggle-5fjHehxP.js";import"./context-menu-CFt3f_Gb.js";import"./daily-pulse-DglWu2t-.js";import"./use-task-board-events-Bs2sMvhO.js";import"./config-B7tLWM1b.js";import"./select-BU91L4uy.js";import"./index-BdQq_4o_.js";import"./task-route-D7L_AjBa.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-CgqfXsXT.js";import"./use-tags-Af_mmSB1.js";import"./calendar-C7teLmhJ.js";import"./alert-CRToIlco.js";import"./collapsible-zPk-2gi_.js";import"./index-ComxOMRa.js";import"./editor-classes-DNAm8ZAW.js";import"./index-BzwMZ-96.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-DtKTjCYS.js";import"./use-connection-DdV5v_sO.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BCarr4x7.js";import"./useSuspenseInfiniteQuery-BCXHmK3t.js";import"./pair-D40XxJSs.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PAwZvEJj.js";import"./types-9H7KFAzM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-Duq-F4uG.js";import"./use-thread-outputs-wHP5lV5E.js";import"./file-type-icon-CeBZX69W.js";import"./use-infinite-scroll-Boo11DpH.js";import"./task-status-D47mg_UC.js";import"./use-open-billing-url-AHjpaAXa.js";import"./chat-draft-DByw699W.js";import"./separator-C2eDbIfB.js";import"./feature-paywall-C560RaP5.js";import"./plan-ladder-DyKNTGpe.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function Mo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Mo as default};
@@ -1 +0,0 @@
1
- import{c as $,j as o,b as W,I as q}from"./index-Ce7G0he3.js";import{L as U}from"./label-ivnVLsJB.js";import{S as Q,b as X,a as Y,d as Z,c as tt}from"./select-BU91L4uy.js";import{T as et}from"./textarea-CiBj0MLq.js";import{H as ot,u as rt,G as it,a as mt,T as at}from"./held-block-view-tvHMvR4T.js";import{u as lt}from"./chat-context-DIvwe-Wr.js";import{g as st,O as pt,e as H}from"./content-tab-BhOwV-AC.js";import{b as nt,C as ct}from"./blog-schema-B4i8W-yj.js";import{u as dt}from"./use-autosave-Civ5dqYG.js";import"./index-BdQq_4o_.js";import"./index-DZ7OjEm4.js";import"./ChevronUp-Cn8PaBxH.js";import"./utils-C_XIOzcP.js";import"./ZoomOut-D8_eDbPl.js";import"./Image01-D00jtGx4.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-D40XxJSs.js";import"./collapsible-zPk-2gi_.js";import"./use-copy-DGCMROZD.js";import"./usage-stats-CtXF_bWd.js";import"./tool-namespace-C-2tGGMF.js";import"./form-nJy5zMPE.js";import"./utils-CVEq3hMx.js";import"./markdown-UmudOdor.js";import"./location-V0VwTJTt.js";import"./use-mobile-BZz7cwuI.js";import"./use-panel-navigate-C-mQZt-r.js";import"./thread-route-D14ghtgQ.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./tooltip-BHLCIkH9.js";import"./use-decopilot-events-CMhdGvid.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./use-clock-tick-C1thlLib.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PAwZvEJj.js";import"./types-9H7KFAzM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./shell-layout-DjxWvBNL.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./use-connection-DdV5v_sO.js";import"./use-mcp-prompts-Duq-F4uG.js";import"./use-thread-outputs-wHP5lV5E.js";import"./file-type-icon-CeBZX69W.js";import"./section-array-field-DJWSUlEO.js";import"./alert-CRToIlco.js";import"./parse-sections-6LYwkRXc.js";import"./blocks-tab-states-BrRgLQ_Y.js";import"./slider-wRMQIU5C.js";import"./index-DjOPmK0D.js";import"./tooltipContext-BMB7e6XT.js";import"./CategoricalChart-C9NLmvFO.js";import"./index-tffbmy1v.js";import"./ActiveShapeUtils-Br894ljM.js";import"./Sector-mFZOIMSW.js";import"./symbol-D9upvJXv.js";import"./site-editor-toast-DwH2UhLV.js";import"./use-session-runtime-CL3Ry0XG.js";import"./experiments-tab-choice-CY-Qbhut.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DKnAt9WL.js";import"./sandbox-git-api-DcqI6XE4.js";import"./empty-state-BiIeVz7z.js";import"./switch-Be6f0Lf5.js";import"./popover-BF3N_cWR.js";import"./scroll-area-DmCvljJ6.js";import"./monaco-editor-Cc-5fhHI.js";import"./editor-CiOoO-Ym.js";import"./calendar-C7teLmhJ.js";import"./editor-classes-DNAm8ZAW.js";import"./core.esm-Brf7c66K.js";import"./sortable.esm-GfRDqHVM.js";import"./toggle-group-BVSslRda.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BZSt-sf0.js";import"./search-input-DuxKe01B.js";import"./tabs-CTBn6AHY.js";import"./use-file-configs-B-dtUlcn.js";import"./asset-utils-B46ygA_L.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./use-ai-providers-DmHiyABc.js";import"./view-header-BlWEzmVd.js";import"./mustache-CKGDjf9j.js";import"./hosted-publish-feedback-DxOmBJxT.js";import"./sandbox-lifecycle-context-C-6LRZKK.js";import"./checkbox-CW4Dzojp.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-DUpXqrhw.js";import"./badge-zxuYXquF.js";import"./empty-state-ErDRcN-P.js";import"./use-cms-publish-actions-Ca_6MHNE.js";import"./collection-table-wrapper-vDq2vkVG.js";import"./table-Sgqiv7ow.js";const G={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"url",labelKey:"sandbox.recordEditor.fieldUrl",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderUrl"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},ut={authors:new Set(G.authors.map(r=>r.key))},yt={authors:"sandbox.recordEditor.titleAuthor"};function ht(r){const t=$.c(66),{orgSlug:c,virtualMcpId:l,branch:p,kind:s,blockKey:y,block:L,meta:h,decofile:M}=r,m=W(),O=lt()?.taskId??null;let w;t[0]!==p||t[1]!==c||t[2]!==l?(w={orgSlug:c,virtualMcpId:l,branch:p},t[0]=p,t[1]=c,t[2]=l,t[3]=w):w=t[3];let I;t[4]===Symbol.for("react.memo_cache_sentinel")?(I={holdsCopy:!0},t[4]=I):I=t[4];const i=rt(w,I);let P;t[5]!==L||t[6]!==s?(P=st(L,s),t[5]=L,t[6]=s,t[7]=P):P=t[7];const J=P,A=ut[s];let C;t[8]!==s||t[9]!==h||t[10]!==A?(C=nt(s,h,A),t[8]=s,t[9]=h,t[10]=A,t[11]=C):C=t[11];const V=C;let F;t[12]!==i?(F=mt((d,e)=>i.mutate({blockKey:d,data:e})),t[12]=i,t[13]=F):F=t[13];const _=F;let N;t[14]!==y||t[15]!==s||t[16]!==i?(N=d=>{i.mutate({blockKey:y,data:pt(y,s,d)})},t[14]=y,t[15]=s,t[16]=i,t[17]=N):N=t[17];let x;t[18]!==y||t[19]!==i?(x=()=>i.hold(y),t[18]=y,t[19]=i,t[20]=x):x=t[20];let T;t[21]!==i.isPending||t[22]!==x?(T={isSaving:i.isPending,onSeed:x},t[21]=i.isPending,t[22]=x,t[23]=T):T=t[23];const[a,b]=dt(J,N,T);let B;t[24]!==a||t[25]!==b?(B=(d,e)=>b({...a,[d]:e}),t[24]=a,t[25]=b,t[26]=B):B=t[26];const u=B,z=yt[s];let g;t[27]!==m||t[28]!==z?(g=m(z),t[27]=m,t[28]=z,t[29]=g):g=t[29];let k;t[30]!==g?(k=o.jsx("span",{className:"text-sm font-medium",children:g}),t[30]=g,t[31]=k):k=t[31];let v;t[32]!==i.isError||t[33]!==i.isPending?(v=o.jsx(it,{isPending:i.isPending,isError:i.isError}),t[32]=i.isError,t[33]=i.isPending,t[34]=v):v=t[34];let f;t[35]!==k||t[36]!==v?(f=o.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[k,v]}),t[35]=k,t[36]=v,t[37]=f):f=t[37];const D=G[s];let j;if(t[38]!==a||t[39]!==u||t[40]!==m||t[41]!==D){let d;t[43]!==a||t[44]!==u||t[45]!==m?(d=e=>o.jsx("div",{className:"space-y-2",children:e.widget==="image"?o.jsx(at,{schema:{type:"string",format:"image-uri",title:m(e.labelKey)},value:a[e.key],onChange:n=>u(e.key,n),path:e.key,label:m(e.labelKey)}):e.widget==="select"?o.jsxs(o.Fragment,{children:[o.jsx(U,{htmlFor:e.key,children:m(e.labelKey)}),o.jsxs(Q,{value:H(a[e.key])||e.options?.[0]?.value,onValueChange:n=>u(e.key,n),children:[o.jsx(X,{id:e.key,className:"h-10 w-full",children:o.jsx(Y,{placeholder:m(e.labelKey)})}),o.jsx(Z,{children:(e.options??[]).map(n=>o.jsx(tt,{value:n.value,children:m(n.labelKey)},n.value))})]})]}):o.jsxs(o.Fragment,{children:[o.jsx(U,{htmlFor:e.key,children:m(e.labelKey)}),e.widget==="textarea"?o.jsx(et,{id:e.key,value:H(a[e.key]),onChange:n=>u(e.key,n.target.value),rows:3}):o.jsx(q,{id:e.key,value:H(a[e.key]),placeholder:e.placeholderKey?m(e.placeholderKey):void 0,onChange:n=>u(e.key,n.target.value),className:"h-10"})]})},e.key),t[43]=a,t[44]=u,t[45]=m,t[46]=d):d=t[46],j=D.map(d),t[38]=a,t[39]=u,t[40]=m,t[41]=D,t[42]=j}else j=t[42];let K;t[47]!==p||t[48]!==c||t[49]!==O||t[50]!==l?(K={orgSlug:c,virtualMcpId:l,branch:p,threadId:O},t[47]=p,t[48]=c,t[49]=O,t[50]=l,t[51]=K):K=t[51];let E;t[52]!==V||t[53]!==M||t[54]!==h||t[55]!==a||t[56]!==_||t[57]!==b||t[58]!==K?(E=o.jsx(ct,{schema:V,value:a,onChange:b,basePath:"author",meta:h,decofile:M,sandbox:K,onSaveReferencedBlock:_}),t[52]=V,t[53]=M,t[54]=h,t[55]=a,t[56]=_,t[57]=b,t[58]=K,t[59]=E):E=t[59];let S;t[60]!==j||t[61]!==E?(S=o.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:o.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[j,E]})}),t[60]=j,t[61]=E,t[62]=S):S=t[62];let R;return t[63]!==f||t[64]!==S?(R=o.jsxs("div",{className:"flex h-full flex-col",children:[f,S]}),t[63]=f,t[64]=S,t[65]=R):R=t[65],R}function tr(r){const t=$.c(9),c=r.block!==void 0;let l;t[0]!==r?(l=o.jsx(ht,{...r}),t[0]=r,t[1]=l):l=t[1];let p;return t[2]!==r.blockKey||t[3]!==r.branch||t[4]!==r.orgSlug||t[5]!==r.virtualMcpId||t[6]!==c||t[7]!==l?(p=o.jsx(ot,{orgSlug:r.orgSlug,virtualMcpId:r.virtualMcpId,branch:r.branch,blockKey:r.blockKey,present:c,children:l}),t[2]=r.blockKey,t[3]=r.branch,t[4]=r.orgSlug,t[5]=r.virtualMcpId,t[6]=c,t[7]=l,t[8]=p):p=t[8],p}export{tr as RecordEditor};
@@ -1 +0,0 @@
1
- import{c as m,j as r}from"./index-Ce7G0he3.js";import{C as i}from"./index-uE3tVNL6.js";import{R as p}from"./reports-tab-DNDxSx2i.js";import"./use-mobile-BZz7cwuI.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./thread-route-D14ghtgQ.js";import"./use-panel-navigate-C-mQZt-r.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";import"./site-url-en5df9c-.js";import"./use-reports-diagnostic-C0y8CLzl.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./mini-report-page-DqysKZ5e.js";import"./self-tool-result-8OxPN9Nm.js";import"./site-error-Da6iapvu.js";import"./projects-empty-state-B0sxQqwF.js";import"./project-profile-Cc4MG3QN.js";function Dt(){const o=m.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=r.jsx(i.Content,{children:r.jsx(p,{})}),o[0]=t):t=o[0],t}export{Dt as default};
@@ -1 +0,0 @@
1
- import{c as r,j as t}from"./index-Ce7G0he3.js";import{OrgRepositoriesPage as m}from"./repositories-DkDpuhbE.js";import{R as p}from"./require-capability-CXN6JJ5S.js";import"./repository-picker-aA12wSzy.js";import"./ArrowLeft-D0U_UeWA.js";import"./Plus-BPVKrQFz.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./label-ivnVLsJB.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./SearchMd-OaBCBVrZ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./schema-4d6JAPZJ.js";import"./task-board-B-WXUk04.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./checkbox-CW4Dzojp.js";import"./Minus-_SQ5lvlh.js";import"./Users01-D-rlhQmk.js";import"./empty-state-ErDRcN-P.js";import"./badge-zxuYXquF.js";import"./alert-CRToIlco.js";import"./icon-button-Xe7zTqiw.js";import"./collapsible-zPk-2gi_.js";import"./select-BU91L4uy.js";import"./index-BdQq_4o_.js";import"./ChevronUp-Cn8PaBxH.js";import"./textarea-CiBj0MLq.js";import"./Trash01-BLXgUBsw.js";import"./secret-picker-gnCLcdHl.js";import"./use-secrets-CCJcL_mR.js";import"./access-gate-CCmKpIU6.js";import"./capability-load-error-lTXihmQk.js";function K(){const o=r.c(1);let i;return o[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(p,{capability:"file-configs:manage",area:"files",children:t.jsx(m,{})}),o[0]=i):i=o[0],i}export{K as default};
@@ -1 +0,0 @@
1
- import{c,l as d,j as i,n as f,P as l,aW as u,O as x}from"./index-Ce7G0he3.js";import{u as j}from"./use-mobile-BZz7cwuI.js";import{R as h}from"./index-uE3tVNL6.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./thread-route-D14ghtgQ.js";import"./use-panel-navigate-C-mQZt-r.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";function qt(){const t=c.c(9),n=j(),s=!n&&"p-1.5";let r;t[0]!==s?(r=d("flex-1 min-h-0",s),t[0]=s,t[1]=r):r=t[1];const a=n?"plain":"card";let m;t[2]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(h,{}),t[2]=m):m=t[2];let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsxs(f.Breadcrumbs.Provider,{children:[m,i.jsx(l.Content,{children:i.jsx(u,{children:i.jsx(x,{})})})]}),t[3]=p):p=t[3];let o;t[4]!==a?(o=i.jsx(l,{"data-testid":"settings-panel",variant:a,children:p}),t[4]=a,t[5]=o):o=t[5];let e;return t[6]!==r||t[7]!==o?(e=i.jsx("div",{className:r,children:o}),t[6]=r,t[7]=o,t[8]=e):e=t[8],e}export{qt as default};
@@ -1 +0,0 @@
1
- import{c as e,j as o}from"./index-Ce7G0he3.js";import{V as a}from"./index-Cjzst5W1.js";function p(s){const t=e.c(2),{virtualMcpId:r}=s;let i;return t[0]!==r?(i=o.jsx(a,{virtualMcpId:r}),t[0]=r,t[1]=i):i=t[1],i}export{p as S};
@@ -1,3 +0,0 @@
1
- import{c as I,b as ye,r as V,j as a,B as ve,l as X,K as Ut,as as br,b4 as gr,ay as Jn,aD as xr,X as Gt,t as Ft,aM as zs,aN as Hs,aO as qs,aP as Ks,bm as Vs,aQ as Gs,aR as Ws,aS as Qs,V as vs,Y as ys,Z as js,a as Ps,a4 as ws,cs as vr,h as Wt,f7 as Xn,f8 as Js,bJ as yr,bd as jr,bj as wn,f9 as Pr,c0 as wr,at as Sr,I as kr,a7 as Nr,fa as Cr,U as Yn,m as Rt,eQ as Xs,q as Zn,H as ea,D as ta,x as sa,v as na,Q as aa,M as ra,fb as Ar,bn as la,a5 as ia,b8 as Ys,e as Sn,C as Rr,R as Tr}from"./index-Ce7G0he3.js";import{S as Br}from"./separator-C2eDbIfB.js";import{f as Ir,u as Zt,r as oa,l as ca,c as da,b as Dr}from"./chat-context-DIvwe-Wr.js";import{u as zt,ab as $r,c as ua,b as ha,ac as Fr,ad as Lr,ae as Mr,_ as Or,af as _r,D as Zs,B as fa,ag as Er,L as ma,z as Ur,w as pa}from"./site-editor-toast-DwH2UhLV.js";import{L as zr,a as Hr}from"./shell-layout-DjxWvBNL.js";import{I as ba}from"./toolbar-icon-button-3L1Mfrbu.js";import{P as qr,a as Kr,b as Vr}from"./popover-BF3N_cWR.js";import{c as St,T as kt,a as Nt,b as Ss}from"./tooltip-BHLCIkH9.js";import{d as Gr,e as Wr,c as Qr,C as kn,a as Nn,b as Cn}from"./command-CSPNVB8c.js";import{T as _t,a as ga,c as xa}from"./tabs-CTBn6AHY.js";import{t as va}from"./ChevronUp-Cn8PaBxH.js";import{aF as ks,H as Jr,a as ya,aG as Xr,b as ja,aH as Pa,O as Yr}from"./agent-icon-I45DkNr8.js";import{i as wa}from"./DotsVertical-C5Wc2qWf.js";import{b as Sa}from"./Tool01-CIeMmnyv.js";import{s as ka}from"./Plus-BPVKrQFz.js";import{s as Ns}from"./Trash01-BLXgUBsw.js";import{u as en,r as Bs,a as An,n as Is,g as tn,b as sn}from"./use-releases-Drxi11Hn.js";import{k as Zr,d as el,j as Rn}from"./thread-intent-ClCyX82j.js";import{h as Na,r as Ca,g as tl,f as et,a as nn,j as Aa}from"./repository-binding-Dg4XMxXs.js";import{u as sl}from"./use-debounced-value-D4hMc82O.js";import{u as nl}from"./use-clock-tick-C1thlLib.js";import{u as al}from"./useInfiniteQuery-DAGt4Ai1.js";import{e as rl,c as ll,p as il,g as Ra,h as Ta,i as Ba}from"./use-navigate-to-agent-CEpb-TPy.js";import{a as Tn}from"./virtual-mcp-BfSfmNNT.js";import{u as Ia,c as ol,e as cl}from"./experiments-tab-choice-CY-Qbhut.js";import{G as Da}from"./repository-picker-aA12wSzy.js";import{u as an}from"./use-session-runtime-CL3Ry0XG.js";import{u as dl,c as ul,d as hl,e as fl}from"./use-fast-preview-draft-url-5-OqnV1z.js";import{ab as Kt,ac as $a,w as bs,l as rn,ad as Fa,ae as ml,af as pl,x as bl,ag as gl,j as xl,u as Lt,f as ln,ah as vl}from"./parse-sections-6LYwkRXc.js";import"./index-BK_RqkJq.js";import{T as yl}from"./textarea-CiBj0MLq.js";import{i as on}from"./CheckCircle-0mdIkBLG.js";import{s as gs}from"./Image01-D00jtGx4.js";import{r as jl}from"./hosted-publish-feedback-DxOmBJxT.js";import{n as Pl,s as wl,a as Sl,M as kl,b as Nl,C as Cl,m as Al,u as Rl}from"./use-cms-publish-actions-Ca_6MHNE.js";import{a as Tl,g as Bl}from"./UserSquare-pnEdx237.js";import{n as Il,b as Dl,m as $l}from"./named-rule-uses-Drzf8cgA.js";import{i as cn,b as La,m as Fl,h as Ll,c as Ma,f as Oa,d as Ml,r as dn,e as Ol,n as _l,g as El,j as Ul,k as zl,l as un,o as Hl,p as _a,q as ql,s as Ea,t as Ds}from"./sandbox-git-api-DcqI6XE4.js";import{b as Kl,g as Vl}from"./utils-C_XIOzcP.js";import{i as Gl}from"./Monitor01-DyqIpSTl.js";import{w as hn,g as Wl,D as Ql}from"./section-preview-url-7zfngvgW.js";import{w as fn}from"./device-hint-SeLRi17j.js";import{w as Bn}from"./editor-CiOoO-Ym.js";import{d as Jl,a as Xl,R as Ua}from"./section-array-field-DJWSUlEO.js";import{s as za}from"./save-changes-debug-nBi-n9eV.js";import{u as Yl}from"./releases-api-Dz4kituq.js";import{u as Zl}from"./use-mcp-client-B9-9jnHW.js";import{u as ei}from"./use-sandbox-events-DKnAt9WL.js";import{b as ti,a as si}from"./sandbox-lifecycle-context-C-6LRZKK.js";import{b as ni}from"./thread-route-D14ghtgQ.js";function ai(t){const{value:e,baseBranch:s,releases:r,baseIsDraft:n=!1}=t,o=!n&&!!e&&e===s,d=r.find(i=>i.branch===e);return{isBase:o,current:d,unlisted:!o&&!d&&!!e}}const ri={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "},In=1114111;function Dn(t){return t?t.replace(/&(#x?[0-9a-fA-F]+|[a-zA-Z]+);/g,(e,s)=>{if(s.startsWith("#x")||s.startsWith("#X")){const r=Number.parseInt(s.slice(2),16);return!Number.isFinite(r)||r>In?e:String.fromCodePoint(r)}if(s.startsWith("#")){const r=Number.parseInt(s.slice(1),10);return!Number.isFinite(r)||r>In?e:String.fromCodePoint(r)}return ri[s]??e}):""}function li(t){const e=I.c(39),{url:s,onSave:r}=t,n=ye(),[o,d]=V.useState(s??"");let l;e[0]!==o?(l=o.trim(),e[0]=o,e[1]=l):l=e[1];const i=l;let u;e[2]!==r||e[3]!==i?(u=()=>r(i?Zr(i):null),e[2]=r,e[3]=i,e[4]=u):u=e[4];const c=u;let h;e[5]!==n?(h=n("thread.branchPicker.localHint"),e[5]=n,e[6]=h):h=e[6];let f;e[7]!==h?(f=a.jsx("p",{className:"text-xs text-muted-foreground",children:h}),e[7]=h,e[8]=f):f=e[8];let p;e[9]!==n?(p=n("thread.branchPicker.localUrlLabel"),e[9]=n,e[10]=p):p=e[10];let b;e[11]!==n?(b=n("thread.branchPicker.localUrlPlaceholder"),e[11]=n,e[12]=b):b=e[12];let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=C=>d(C.target.value),e[13]=m):m=e[13];let g;e[14]!==c||e[15]!==i?(g=C=>{C.key==="Enter"&&i&&c()},e[14]=c,e[15]=i,e[16]=g):g=e[16];let x;e[17]!==p||e[18]!==b||e[19]!==g||e[20]!==o?(x=a.jsx("input",{type:"url",inputMode:"url","aria-label":p,placeholder:b,value:o,onChange:m,onKeyDown:g,className:"h-8 w-full rounded-md border bg-transparent px-2 text-sm focus-ring"}),e[17]=p,e[18]=b,e[19]=g,e[20]=o,e[21]=x):x=e[21];let P;e[22]!==r||e[23]!==n||e[24]!==s?(P=s?a.jsx(ve,{variant:"ghost",size:"sm",className:"text-xs text-destructive hover:text-destructive",onClick:()=>r(null),children:n("thread.branchPicker.localTurnOff")}):a.jsx("span",{}),e[22]=r,e[23]=n,e[24]=s,e[25]=P):P=e[25];const y=!i;let v;e[26]!==n?(v=n("thread.branchPicker.save"),e[26]=n,e[27]=v):v=e[27];let w;e[28]!==c||e[29]!==y||e[30]!==v?(w=a.jsx(ve,{size:"sm",disabled:y,onClick:c,children:v}),e[28]=c,e[29]=y,e[30]=v,e[31]=w):w=e[31];let j;e[32]!==P||e[33]!==w?(j=a.jsxs("div",{className:"flex items-center justify-between gap-2",children:[P,w]}),e[32]=P,e[33]=w,e[34]=j):j=e[34];let N;return e[35]!==j||e[36]!==f||e[37]!==x?(N=a.jsxs("div",{className:"flex flex-col gap-2 p-2",children:[f,x,j]}),e[35]=j,e[36]=f,e[37]=x,e[38]=N):N=e[38],N}function ii(t){const e=I.c(8),{virtualMcpId:s,branch:r,serve:n,rowRef:o,onPicked:d}=t,l=zt(s,r),i=!!n.connection,u=i&&l.kind==="protocol"&&l.source==="local";let c;e[0]!==d||e[1]!==n?(c=()=>oi(n,d),e[0]=d,e[1]=n,e[2]=c):c=e[2];let h;return e[3]!==o||e[4]!==i||e[5]!==u||e[6]!==c?(h=a.jsx(ci,{rowRef:o,selected:i,connected:u,onSelect:c}),e[3]=o,e[4]=i,e[5]=u,e[6]=c,e[7]=h):h=e[7],h}function oi(t,e){e?.(),!t.connection&&t.set({endpoint:t.lastEndpoint??$r})}function ci(t){const e=I.c(19),{rowRef:s,selected:r,connected:n,onSelect:o}=t,d=ye(),l=r?"bg-accent":"hover:bg-accent";let i;e[0]!==l?(i=X("flex rounded-lg",l),e[0]=l,e[1]=i):i=e[1];let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=a.jsx("span",{"data-testid":"localhost-dot",className:"h-2 w-2 shrink-0 rounded-full bg-foreground"}),e[2]=u):u=e[2];let c;e[3]!==d?(c=d("thread.branchPicker.localhost.label"),e[3]=d,e[4]=c):c=e[4];let h;e[5]!==c?(h=a.jsx("span",{className:"min-w-0 flex-1 truncate",children:c}),e[5]=c,e[6]=h):h=e[6];let f;e[7]!==n||e[8]!==d?(f=n&&a.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:d("thread.branchPicker.localhost.connected")}),e[7]=n,e[8]=d,e[9]=f):f=e[9];let p;e[10]!==o||e[11]!==r||e[12]!==h||e[13]!==f?(p=a.jsxs("button",{type:"button","aria-pressed":r,onClick:o,className:"flex w-full min-w-0 items-center gap-2.5 px-2 py-2 text-left text-sm",children:[u,h,f]}),e[10]=o,e[11]=r,e[12]=h,e[13]=f,e[14]=p):p=e[14];let b;return e[15]!==s||e[16]!==i||e[17]!==p?(b=a.jsx("div",{ref:s,className:i,children:p}),e[15]=s,e[16]=i,e[17]=p,e[18]=b):b=e[18],b}const di=10080*60*1e3;function ui({sandboxMap:t,userId:e,rawBranches:s,now:r}){const n=new Map;for(const[h,f]of Object.entries(t??{}))for(const[p,b]of Object.entries(f??{})){let m=n.get(p);m||(m={userIds:new Set,lastActiveAt:0},n.set(p,m)),m.userIds.add(h);for(const g of Object.values(b??{})){const x=g?.createdAt??0;x>m.lastActiveAt&&(m.lastActiveAt=x)}}const o=r-di,d=[...n.entries()].filter(([,h])=>h.lastActiveAt>=o).sort((h,f)=>f[1].lastActiveAt-h[1].lastActiveAt).map(([h,f])=>({name:h,source:"recent",contributors:[...f.userIds],lastActiveAt:f.lastActiveAt})),l=new Set(d.map(h=>h.name)),i=new Set(Object.keys(t?.[e]??{})),u=[...i].filter(h=>!l.has(h)).sort().map(h=>({name:h,source:"yours"})),c=s.filter(h=>!i.has(h.name)&&!l.has(h.name)).map(h=>({name:h.name,source:"other",author:h.author??null}));return{recent:d,yours:u,others:c}}const hi=100,fi=50,mi=300;function Ms(t,e){const s=e.trim().toLowerCase();return s?t.toLowerCase().includes(s):!0}function pi(t){const e=I.c(39),{orgId:s,orgSlug:r,userId:n,target:o,sandboxMap:d,owner:l,repo:i,search:u,enabled:c}=t,h=u===void 0?"":u,f=c===void 0?!0:c;let p;e[0]!==h?(p=h.trim(),e[0]=h,e[1]=p):p=e[1];const b=p,m=sl(b,mi);let g;e[2]!==o?(g=Na(o),e[2]=o,e[3]=g):g=e[3];const x=g,P=b.length>0;let y;e[4]!==m||e[5]!==s||e[6]!==r||e[7]!==l||e[8]!==i||e[9]!==o?(y=Ut.githubBranchSearch(s,r,Ca(o),l,i,m),e[4]=m,e[5]=s,e[6]=r,e[7]=l,e[8]=i,e[9]=o,e[10]=y):y=e[10];const v=f&&x;let w;e[11]!==m||e[12]!==r||e[13]!==o?(w=J=>{const{pageParam:se}=J;return br(r,"REPOSITORY_SEARCH_BRANCHES",{...o,query:m,limit:m?fi:hi,cursor:se})},e[11]=m,e[12]=r,e[13]=o,e[14]=w):w=e[14];let j;e[15]!==m?(j=J=>m?void 0:J.nextCursor??void 0,e[15]=m,e[16]=j):j=e[16];let N;e[17]!==y||e[18]!==v||e[19]!==w||e[20]!==j?(N={queryKey:y,enabled:v,staleTime:3e4,retry:!1,initialPageParam:null,queryFn:w,getNextPageParam:j},e[17]=y,e[18]=v,e[19]=w,e[20]=j,e[21]=N):N=e[21];const{data:C,isLoading:R,isError:k,isFetching:A,hasNextPage:S,isFetchingNextPage:F,fetchNextPage:$}=al(N),T=P&&(m!==b||A),_=(C?.pages??[]).flatMap(bi),O=nl(6e4),Z=ui({sandboxMap:d,userId:n,rawBranches:_,now:O});let ae;e[22]!==b?(ae=J=>Ms(J.name,b),e[22]=b,e[23]=ae):ae=e[23];const H=Z.recent.filter(ae);let L;e[24]!==b?(L=J=>Ms(J.name,b),e[24]=b,e[25]=L):L=e[25];const z=Z.yours.filter(L),ee=Z.others,W=C?.pages[0],B=P&&W&&!T?Math.max(0,W.totalCount-W.branches.length):0,ie=!P&&S;let U;e[26]!==$?(U=()=>{$()},e[26]=$,e[27]=U):U=e[27];let oe;return e[28]!==B||e[29]!==k||e[30]!==F||e[31]!==R||e[32]!==T||e[33]!==ee||e[34]!==H||e[35]!==ie||e[36]!==U||e[37]!==z?(oe={recent:H,yours:z,others:ee,isLoading:R,isError:k,isSearching:T,hiddenMatchCount:B,hasMore:ie,isFetchingMore:F,fetchMore:U},e[28]=B,e[29]=k,e[30]=F,e[31]=R,e[32]=T,e[33]=ee,e[34]=H,e[35]=ie,e[36]=U,e[37]=z,e[38]=oe):oe=e[38],oe}function bi(t){return t.branches}function gi(t){const e=I.c(239),{virtualMcpId:s,isV8:r,userLabel:n,value:o,baseBranch:d,baseIsDraft:l,orgId:i,orgSlug:u,userId:c,target:h,owner:f,repo:p,sandboxMap:b,onChange:m,onCreateBranch:g,onAdoptBranch:x,disabled:P,spawnsNewChat:y,placement:v}=t,w=r===void 0?!1:r,j=l===void 0?!1:l,N=P===void 0?!1:P,C=y===void 0?!1:y,R=v===void 0?"chat":v,k=ye(),A=R==="header",[S,F]=V.useState(!1),[$,T]=V.useState(!1),[_,O]=V.useState("branches"),[Z,ae]=V.useState(null),[H,L]=V.useState(""),[z,ee]=V.useState(null),W=V.useRef(null),{releases:B,createRelease:ie,renameRelease:U,deleteRelease:oe}=en(s),{url:J,setUrl:se,clear:D}=ua(s),te=ha(s),re=w&&!!te.connection,he=w?te.connection?.endpoint??null:J,G=!!he;let pe;e[0]!==D||e[1]!==w||e[2]!==te?(pe=()=>{D(),w&&te.clear()},e[0]=D,e[1]=w,e[2]=te,e[3]=pe):pe=e[3];const Y=pe;let E;e[4]!==S?(E={enabled:S},e[4]=S,e[5]=E):E=e[5];const{data:q}=gr(E);let ce;e[6]!==q?.data?.members?(ce=ue=>ue?q?.data?.members?.find(dt=>dt.userId===ue)?.user?.name??void 0:void 0,e[6]=q?.data?.members,e[7]=ce):ce=e[7];const we=ce,fe=B.length>=Tn;let Me;e[8]!==k?(Me=k("thread.branchPicker.capReached",{max:Tn}),e[8]=k,e[9]=Me):Me=e[9];const M=Me;let ne,_e,Oe,Ee,ft,tt,je,Ie,Fe,De,Pe,$e,Se,Le,st,mt,Re,de,K,xe,ke,Ne,Ce,Ue,nt,pt,bt,We,Qe;if(e[10]!==fe||e[11]!==d||e[12]!==j||e[13]!==M||e[14]!==Y||e[15]!==ie||e[16]!==oe||e[17]!==N||e[18]!==H||e[19]!==A||e[20]!==G||e[21]!==re||e[22]!==x||e[23]!==m||e[24]!==g||e[25]!==S||e[26]!==z||e[27]!==B||e[28]!==U||e[29]!==se||e[30]!==k||e[31]!==c||e[32]!==n||e[33]!==o){const{isBase:ue,current:dt,unlisted:qt}=ai({value:o,baseBranch:d,releases:B,baseIsDraft:j});Qe=qt;const Q=ue?k("thread.branchPicker.live"):dt?.name??k("thread.branchPicker.defaultVersionName");Pe=re?k("thread.branchPicker.localhost.label"):G?k("thread.branchPicker.localLabel"):o?Q:k("thread.branchPicker.selectVersion");const be=re?"bg-foreground":G?"bg-special":ue?"bg-success":Bs(dt?.color??"orange");let me;e[63]!==Y||e[64]!==m?(me=le=>{Y(),m(le),F(!1)},e[63]=Y,e[64]=m,e[65]=me):me=e[65],Se=me;let Te;e[66]!==k?(Te=le=>{Ft.error(k("thread.branchPicker.saveError"),{description:Fr(k,Lr(le))})},e[66]=k,e[67]=Te):Te=e[67];const ge=Te;let Ct;e[68]!==se?(Ct=le=>{se(le),T(!1),F(!1)},e[68]=se,e[69]=Ct):Ct=e[69],tt=Ct;let ts;e[70]!==fe||e[71]!==M||e[72]!==Y||e[73]!==ie||e[74]!==x||e[75]!==m||e[76]!==B||e[77]!==ge||e[78]!==c?(ts=(le,Ot)=>{if(Y(),x){x(le),T(!1),F(!1);return}if(!B.some(Ts=>Ts.branch===le)){if(fe){Ft.error(M);return}ie({branch:le,name:Ot.trim()||le,color:Is(B.length),createdBy:c,createdAt:new Date().toISOString()}).catch(ge)}m(le),T(!1),F(!1)},e[70]=fe,e[71]=M,e[72]=Y,e[73]=ie,e[74]=x,e[75]=m,e[76]=B,e[77]=ge,e[78]=c,e[79]=ts):ts=e[79],je=ts;let ss;e[80]!==fe||e[81]!==M||e[82]!==Y||e[83]!==ie||e[84]!==m||e[85]!==g||e[86]!==B||e[87]!==ge||e[88]!==k||e[89]!==c||e[90]!==n?(ss=()=>{if(fe){Ft.error(M);return}Y();const le=tn(n);ie({branch:le,name:An(B,k("thread.branchPicker.defaultVersionName")),color:Is(B.length),createdBy:c,createdAt:new Date().toISOString()}).catch(ge),(g??m)(le),F(!1)},e[80]=fe,e[81]=M,e[82]=Y,e[83]=ie,e[84]=m,e[85]=g,e[86]=B,e[87]=ge,e[88]=k,e[89]=c,e[90]=n,e[91]=ss):ss=e[91],De=ss;let ns;e[92]===Symbol.for("react.memo_cache_sentinel")?(ns=()=>{ae(null),L(""),T(!1),O("branches")},e[92]=ns):ns=e[92];const pr=ns;let as;e[93]===Symbol.for("react.memo_cache_sentinel")?(as=le=>{O(le),T(!0)},e[93]=as):as=e[93],$e=as;let rs;e[94]===Symbol.for("react.memo_cache_sentinel")?(rs=le=>{ae(le.branch),L(le.name)},e[94]=rs):rs=e[94],mt=rs;let ls;e[95]!==H||e[96]!==U||e[97]!==ge?(ls=le=>{const Ot=H.trim();Ot&&U(le,Ot).catch(ge),ae(null),L("")},e[95]=H,e[96]=U,e[97]=ge,e[98]=ls):ls=e[98],Le=ls;let is;e[99]!==fe||e[100]!==M||e[101]!==ie||e[102]!==H||e[103]!==B.length||e[104]!==ge||e[105]!==c||e[106]!==o?(is=()=>{const le=H.trim();if(le&&o){if(fe){Ft.error(M),ae(null),L("");return}ie({branch:o,name:le,color:Is(B.length),createdBy:c,createdAt:new Date().toISOString()}).catch(ge)}ae(null),L("")},e[99]=fe,e[100]=M,e[101]=ie,e[102]=H,e[103]=B.length,e[104]=ge,e[105]=c,e[106]=o,e[107]=is):is=e[107],st=is;let os;e[108]===Symbol.for("react.memo_cache_sentinel")?(os=()=>{ae(null),L("")},e[108]=os):os=e[108],Ie=os;let cs;e[109]!==d||e[110]!==oe||e[111]!==z||e[112]!==Se||e[113]!==B||e[114]!==ge||e[115]!==o?(cs=()=>{const le=z;if(ee(null),!!le){if(le.branch===o){const Ot=B.find(Ts=>Ts.branch!==le.branch);Ot?Se(Ot.branch):d?Se(d):F(!1)}else F(!1);oe(le.branch).catch(ge)}},e[109]=d,e[110]=oe,e[111]=z,e[112]=Se,e[113]=B,e[114]=ge,e[115]=o,e[116]=cs):cs=e[116],Fe=cs,ft=qr,bt=S,e[117]!==N?(We=N?void 0:le=>{le||pr(),F(le)},e[117]=N,e[118]=We):We=e[118],Ee=St,Oe=kt,pt=!0,nt="inline-flex min-w-0 shrink",_e=Kr,Ue=!0,ne=ve,de=zr.branchPicker,K=A?"outline":"ghost",xe=A?"sm":"default",ke=Pe,Ne=N;const Rs=A?"text-xs":"text-xs text-muted-foreground hover:text-foreground";e[119]!==Rs?(Ce=X("shrink min-w-0 max-w-[220px] gap-2",Rs,ba),e[119]=Rs,e[120]=Ce):Ce=e[120],Re=X("h-2 w-2 shrink-0 rounded-full",o||G?be:"bg-muted-foreground"),e[10]=fe,e[11]=d,e[12]=j,e[13]=M,e[14]=Y,e[15]=ie,e[16]=oe,e[17]=N,e[18]=H,e[19]=A,e[20]=G,e[21]=re,e[22]=x,e[23]=m,e[24]=g,e[25]=S,e[26]=z,e[27]=B,e[28]=U,e[29]=se,e[30]=k,e[31]=c,e[32]=n,e[33]=o,e[34]=ne,e[35]=_e,e[36]=Oe,e[37]=Ee,e[38]=ft,e[39]=tt,e[40]=je,e[41]=Ie,e[42]=Fe,e[43]=De,e[44]=Pe,e[45]=$e,e[46]=Se,e[47]=Le,e[48]=st,e[49]=mt,e[50]=Re,e[51]=de,e[52]=K,e[53]=xe,e[54]=ke,e[55]=Ne,e[56]=Ce,e[57]=Ue,e[58]=nt,e[59]=pt,e[60]=bt,e[61]=We,e[62]=Qe}else ne=e[34],_e=e[35],Oe=e[36],Ee=e[37],ft=e[38],tt=e[39],je=e[40],Ie=e[41],Fe=e[42],De=e[43],Pe=e[44],$e=e[45],Se=e[46],Le=e[47],st=e[48],mt=e[49],Re=e[50],de=e[51],K=e[52],xe=e[53],ke=e[54],Ne=e[55],Ce=e[56],Ue=e[57],nt=e[58],pt=e[59],bt=e[60],We=e[61],Qe=e[62];let Ae;e[121]!==Re?(Ae=a.jsx("span",{className:Re}),e[121]=Re,e[122]=Ae):Ae=e[122];let at;e[123]!==Pe?(at=a.jsx("span",{className:"min-w-0 truncate @max-3xl/panel-header:hidden",children:Pe}),e[123]=Pe,e[124]=at):at=e[124];let rt;e[125]!==N?(rt=!N&&a.jsx(va,{size:12,className:"opacity-60 shrink-0"}),e[125]=N,e[126]=rt):rt=e[126];let gt;e[127]!==ne||e[128]!==de||e[129]!==K||e[130]!==xe||e[131]!==ke||e[132]!==Ne||e[133]!==Ce||e[134]!==Ae||e[135]!==at||e[136]!==rt?(gt=a.jsxs(ne,{"data-tour":de,variant:K,size:xe,"aria-label":ke,disabled:Ne,className:Ce,children:[Ae,at,rt]}),e[127]=ne,e[128]=de,e[129]=K,e[130]=xe,e[131]=ke,e[132]=Ne,e[133]=Ce,e[134]=Ae,e[135]=at,e[136]=rt,e[137]=gt):gt=e[137];let Tt;e[138]!==_e||e[139]!==Ue||e[140]!==gt?(Tt=a.jsx(_e,{asChild:Ue,children:gt}),e[138]=_e,e[139]=Ue,e[140]=gt,e[141]=Tt):Tt=e[141];let xt;e[142]!==nt||e[143]!==Tt?(xt=a.jsx("span",{className:nt,children:Tt}),e[142]=nt,e[143]=Tt,e[144]=xt):xt=e[144];let Je;e[145]!==Oe||e[146]!==pt||e[147]!==xt?(Je=a.jsx(Oe,{asChild:pt,children:xt}),e[145]=Oe,e[146]=pt,e[147]=xt,e[148]=Je):Je=e[148];let Xe;e[149]!==Pe?(Xe=a.jsx(Nt,{children:Pe}),e[149]=Pe,e[150]=Xe):Xe=e[150];let Ye;e[151]!==Ee||e[152]!==Je||e[153]!==Xe?(Ye=a.jsxs(Ee,{children:[Je,Xe]}),e[151]=Ee,e[152]=Je,e[153]=Xe,e[154]=Ye):Ye=e[154];let Bt;e[155]===Symbol.for("react.memo_cache_sentinel")?(Bt=ue=>{ue.preventDefault(),W.current?.scrollIntoView({block:"nearest"})},e[155]=Bt):Bt=e[155];let lt;e[156]!==C||e[157]!==k?(lt=C&&a.jsx("p",{className:"px-2 pb-1.5 pt-1 text-xs text-muted-foreground",children:k("thread.branchPicker.newChatHint")}),e[156]=C,e[157]=k,e[158]=lt):lt=e[158];let vt;e[159]!==tt||e[160]!==je||e[161]!==$||e[162]!==_||e[163]!==fe||e[164]!==Ie||e[165]!==M||e[166]!==Y||e[167]!==De||e[168]!==we||e[169]!==H||e[170]!==Z||e[171]!==w||e[172]!==G||e[173]!==he||e[174]!==re||e[175]!==S||e[176]!==$e||e[177]!==i||e[178]!==u||e[179]!==f||e[180]!==Se||e[181]!==B||e[182]!==p||e[183]!==b||e[184]!==Le||e[185]!==st||e[186]!==te||e[187]!==mt||e[188]!==k||e[189]!==h||e[190]!==J||e[191]!==Qe||e[192]!==c||e[193]!==o||e[194]!==s?(vt=$?a.jsx(vi,{orgId:i,orgSlug:u,userId:c,target:h,owner:f,repo:p,sandboxMap:b,enabled:S,tab:_,onTabChange:O,isV8:w,localUrl:J,onSaveLocal:tt,onBack:()=>T(!1),onAdopt:je}):a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:X("always-scrollbar flex max-h-[min(50vh,20rem)] flex-col overflow-y-auto",w&&"gap-1"),children:[!w&&G&&he&&a.jsx(xi,{rowRef:W,url:he,onSelect:()=>$e("local"),onEdit:()=>$e("local"),onTurnOff:()=>Y()}),Qe&&o&&(Z===o?a.jsx($n,{value:H,onChange:L,onSave:st,onCancel:Ie}):a.jsx(Fn,{rowRef:G?void 0:W,dot:Bs("orange"),label:k("thread.branchPicker.defaultVersionName"),branch:o,selected:!G,onSelect:()=>Se(o),onRename:()=>{ae(o),L(An(B,k("thread.branchPicker.defaultVersionName")))}})),B.map(ue=>Z===ue.branch?a.jsx($n,{value:H,onChange:L,onSave:()=>Le(ue.branch),onCancel:Ie},ue.branch):a.jsx(Fn,{rowRef:!G&&ue.branch===o?W:void 0,dot:Bs(ue.color),label:ue.name,creator:we(ue.createdBy),branch:ue.branch,selected:!G&&ue.branch===o,onSelect:()=>Se(ue.branch),onRename:()=>mt(ue),onDelete:()=>ee(ue)},ue.branch)),w&&a.jsx(ii,{virtualMcpId:s,branch:o,serve:te,rowRef:re?W:void 0,onPicked:()=>F(!1)})]}),(Qe||B.length>0||w)&&a.jsx("div",{className:"my-1 border-t"}),a.jsxs("button",{type:"button",onClick:()=>{De()},disabled:fe,className:"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm text-muted-foreground hover:bg-accent hover:text-foreground disabled:pointer-events-none disabled:opacity-50",children:[a.jsx(ka,{className:"h-4 w-4 shrink-0"}),k("thread.branchPicker.newVersion")]}),fe&&a.jsx("p",{className:"px-2 pb-1 pt-0.5 text-xs text-warning",children:M}),a.jsxs("button",{type:"button",onClick:()=>$e("branches"),className:X("flex w-full items-center justify-between gap-2 rounded-lg px-2 py-2 text-left text-xs text-muted-foreground hover:bg-accent hover:text-foreground",w&&"mt-1"),children:[k("thread.branchPicker.advanced"),a.jsx(Jn,{className:"h-4 w-4 shrink-0"})]})]}),e[159]=tt,e[160]=je,e[161]=$,e[162]=_,e[163]=fe,e[164]=Ie,e[165]=M,e[166]=Y,e[167]=De,e[168]=we,e[169]=H,e[170]=Z,e[171]=w,e[172]=G,e[173]=he,e[174]=re,e[175]=S,e[176]=$e,e[177]=i,e[178]=u,e[179]=f,e[180]=Se,e[181]=B,e[182]=p,e[183]=b,e[184]=Le,e[185]=st,e[186]=te,e[187]=mt,e[188]=k,e[189]=h,e[190]=J,e[191]=Qe,e[192]=c,e[193]=o,e[194]=s,e[195]=vt):vt=e[195];let it;e[196]!==lt||e[197]!==vt?(it=a.jsxs(Vr,{className:"w-[min(300px,calc(100vw-2rem))] p-1.5",align:"start",onOpenAutoFocus:Bt,children:[lt,vt]}),e[196]=lt,e[197]=vt,e[198]=it):it=e[198];let It;e[199]!==ft||e[200]!==bt||e[201]!==We||e[202]!==Ye||e[203]!==it?(It=a.jsxs(ft,{open:bt,onOpenChange:We,children:[Ye,it]}),e[199]=ft,e[200]=bt,e[201]=We,e[202]=Ye,e[203]=it,e[204]=It):It=e[204];const Dt=It,Mt=z!==null;let $t;e[205]===Symbol.for("react.memo_cache_sentinel")?($t=ue=>{ue||ee(null)},e[205]=$t):$t=e[205];let Ze;e[206]!==k?(Ze=k("thread.branchPicker.deleteTitle"),e[206]=k,e[207]=Ze):Ze=e[207];let yt;e[208]!==Ze?(yt=a.jsx(zs,{children:Ze}),e[208]=Ze,e[209]=yt):yt=e[209];let ot;e[210]!==z||e[211]!==k?(ot=z&&k("thread.branchPicker.deleteConfirm",{name:z.name}),e[210]=z,e[211]=k,e[212]=ot):ot=e[212];let jt;e[213]!==ot?(jt=a.jsx(Hs,{children:ot}),e[213]=ot,e[214]=jt):jt=e[214];let Pt;e[215]!==yt||e[216]!==jt?(Pt=a.jsxs(qs,{children:[yt,jt]}),e[215]=yt,e[216]=jt,e[217]=Pt):Pt=e[217];let wt;e[218]!==k?(wt=k("thread.branchPicker.cancel"),e[218]=k,e[219]=wt):wt=e[219];let ze;e[220]!==wt?(ze=a.jsx(Ks,{children:wt}),e[220]=wt,e[221]=ze):ze=e[221];let He;e[222]!==k?(He=k("thread.branchPicker.delete"),e[222]=k,e[223]=He):He=e[223];let qe;e[224]!==Fe||e[225]!==He?(qe=a.jsx(Vs,{onClick:Fe,variant:"destructive",children:He}),e[224]=Fe,e[225]=He,e[226]=qe):qe=e[226];let Ke;e[227]!==ze||e[228]!==qe?(Ke=a.jsxs(Gs,{children:[ze,qe]}),e[227]=ze,e[228]=qe,e[229]=Ke):Ke=e[229];let Ve;e[230]!==Pt||e[231]!==Ke?(Ve=a.jsxs(Ws,{children:[Pt,Ke]}),e[230]=Pt,e[231]=Ke,e[232]=Ve):Ve=e[232];let Ge;e[233]!==Mt||e[234]!==Ve?(Ge=a.jsx(Qs,{open:Mt,onOpenChange:$t,children:Ve}),e[233]=Mt,e[234]=Ve,e[235]=Ge):Ge=e[235];let ct;return e[236]!==Dt||e[237]!==Ge?(ct=a.jsxs(a.Fragment,{children:[Dt,Ge]}),e[236]=Dt,e[237]=Ge,e[238]=ct):ct=e[238],ct}function $n(t){const e=I.c(20),{value:s,onChange:r,onSave:n,onCancel:o}=t,d=ye();let l;e[0]!==d?(l=d("thread.branchPicker.rename"),e[0]=d,e[1]=l):l=e[1];let i;e[2]!==r?(i=b=>r(b.target.value),e[2]=r,e[3]=i):i=e[3];let u;e[4]!==o||e[5]!==n?(u=b=>{b.key==="Enter"&&n(),b.key==="Escape"&&(b.preventDefault(),b.stopPropagation(),o())},e[4]=o,e[5]=n,e[6]=u):u=e[6];let c;e[7]!==l||e[8]!==i||e[9]!==u||e[10]!==s?(c=a.jsx("input",{autoFocus:!0,"aria-label":l,value:s,onChange:i,onKeyDown:u,className:"h-8 flex-1 rounded-md border bg-transparent px-2 text-sm focus-ring"}),e[7]=l,e[8]=i,e[9]=u,e[10]=s,e[11]=c):c=e[11];let h;e[12]!==d?(h=d("thread.branchPicker.save"),e[12]=d,e[13]=h):h=e[13];let f;e[14]!==n||e[15]!==h?(f=a.jsx(ve,{size:"sm",onClick:n,children:h}),e[14]=n,e[15]=h,e[16]=f):f=e[16];let p;return e[17]!==c||e[18]!==f?(p=a.jsxs("div",{className:"flex items-center gap-1.5 p-1",children:[c,f]}),e[17]=c,e[18]=f,e[19]=p):p=e[19],p}function Fn(t){const e=I.c(49),{rowRef:s,dot:r,label:n,creator:o,branch:d,selected:l,onSelect:i,onRename:u,onDelete:c}=t,h=ye(),f=l?"bg-accent":"hover:bg-accent";let p;e[0]!==f?(p=X("group flex items-center rounded-lg",f),e[0]=f,e[1]=p):p=e[1];let b;e[2]!==r?(b=X("h-2 w-2 shrink-0 rounded-full",r),e[2]=r,e[3]=b):b=e[3];let m;e[4]!==b?(m=a.jsx("span",{className:b}),e[4]=b,e[5]=m):m=e[5];let g;e[6]!==o?(g=o&&a.jsx("span",{className:"ml-1.5 text-xs font-normal text-muted-foreground/70",children:o}),e[6]=o,e[7]=g):g=e[7];let x;e[8]!==n||e[9]!==g?(x=a.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[n,g]}),e[8]=n,e[9]=g,e[10]=x):x=e[10];let P;e[11]!==i||e[12]!==l||e[13]!==m||e[14]!==x?(P=a.jsx(kt,{asChild:!0,children:a.jsxs("button",{type:"button","aria-pressed":l,onClick:i,className:"flex min-w-0 flex-1 items-center gap-2.5 px-2 py-2 text-left text-sm",children:[m,x]})}),e[11]=i,e[12]=l,e[13]=m,e[14]=x,e[15]=P):P=e[15];let y;e[16]!==d||e[17]!==h?(y=h("thread.branchPicker.branchTooltip",{branch:d}),e[16]=d,e[17]=h,e[18]=y):y=e[18];let v;e[19]!==y?(v=a.jsx(Nt,{side:"bottom",className:"font-mono text-xs",children:y}),e[19]=y,e[20]=v):v=e[20];let w;e[21]!==P||e[22]!==v?(w=a.jsxs(St,{children:[P,v]}),e[21]=P,e[22]=v,e[23]=w):w=e[23];let j;e[24]!==h?(j=h("thread.branchPicker.moreActions"),e[24]=h,e[25]=j):j=e[25];let N;e[26]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(wa,{className:"h-4 w-4"}),e[26]=N):N=e[26];let C;e[27]!==j?(C=a.jsx(vs,{asChild:!0,children:a.jsx(ve,{variant:"ghost",size:"icon","aria-label":j,className:"mr-1 h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",children:N})}),e[27]=j,e[28]=C):C=e[28];let R;e[29]===Symbol.for("react.memo_cache_sentinel")?(R=a.jsx(Sa,{className:"h-4 w-4"}),e[29]=R):R=e[29];let k;e[30]!==h?(k=h("thread.branchPicker.rename"),e[30]=h,e[31]=k):k=e[31];let A;e[32]!==u||e[33]!==k?(A=a.jsxs(Gt,{onSelect:u,children:[R,k]}),e[32]=u,e[33]=k,e[34]=A):A=e[34];let S;e[35]!==c||e[36]!==h?(S=c&&a.jsxs(Gt,{onSelect:c,className:"text-destructive focus:text-destructive",children:[a.jsx(Ns,{className:"h-4 w-4"}),h("thread.branchPicker.delete")]}),e[35]=c,e[36]=h,e[37]=S):S=e[37];let F;e[38]!==A||e[39]!==S?(F=a.jsxs(ys,{align:"end",children:[A,S]}),e[38]=A,e[39]=S,e[40]=F):F=e[40];let $;e[41]!==C||e[42]!==F?($=a.jsxs(js,{children:[C,F]}),e[41]=C,e[42]=F,e[43]=$):$=e[43];let T;return e[44]!==s||e[45]!==w||e[46]!==$||e[47]!==p?(T=a.jsxs("div",{ref:s,className:p,children:[w,$]}),e[44]=s,e[45]=w,e[46]=$,e[47]=p,e[48]=T):T=e[48],T}function xi(t){const e=I.c(40),{rowRef:s,url:r,onSelect:n,onEdit:o,onTurnOff:d}=t,l=ye();let i;try{let A;e[0]!==r?(A=new URL(r),e[0]=r,e[1]=A):A=e[1],i=A.host}catch{i=r}const u=i;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full bg-special"}),e[2]=c):c=e[2];let h;e[3]!==l?(h=l("thread.branchPicker.localLabel"),e[3]=l,e[4]=h):h=e[4];let f;e[5]!==u?(f=a.jsx("span",{className:"ml-1.5 text-xs font-normal text-muted-foreground/70",children:u}),e[5]=u,e[6]=f):f=e[6];let p;e[7]!==h||e[8]!==f?(p=a.jsxs("span",{className:"min-w-0 flex-1 truncate",children:[h,f]}),e[7]=h,e[8]=f,e[9]=p):p=e[9];let b;e[10]!==n||e[11]!==p?(b=a.jsxs("button",{type:"button","aria-pressed":!0,onClick:n,className:"flex min-w-0 flex-1 items-center gap-2.5 px-2 py-2 text-left text-sm",children:[c,p]}),e[10]=n,e[11]=p,e[12]=b):b=e[12];let m;e[13]!==l?(m=l("thread.branchPicker.moreActions"),e[13]=l,e[14]=m):m=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx(wa,{className:"h-4 w-4"}),e[15]=g):g=e[15];let x;e[16]!==m?(x=a.jsx(vs,{asChild:!0,children:a.jsx(ve,{variant:"ghost",size:"icon","aria-label":m,className:"mr-1 h-6 w-6 shrink-0 opacity-0 group-hover:opacity-100 data-[state=open]:opacity-100",children:g})}),e[16]=m,e[17]=x):x=e[17];let P;e[18]===Symbol.for("react.memo_cache_sentinel")?(P=a.jsx(Sa,{className:"h-4 w-4"}),e[18]=P):P=e[18];let y;e[19]!==l?(y=l("thread.branchPicker.rename"),e[19]=l,e[20]=y):y=e[20];let v;e[21]!==o||e[22]!==y?(v=a.jsxs(Gt,{onSelect:o,children:[P,y]}),e[21]=o,e[22]=y,e[23]=v):v=e[23];let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=a.jsx(Ns,{className:"h-4 w-4"}),e[24]=w):w=e[24];let j;e[25]!==l?(j=l("thread.branchPicker.localTurnOff"),e[25]=l,e[26]=j):j=e[26];let N;e[27]!==d||e[28]!==j?(N=a.jsxs(Gt,{onSelect:d,className:"text-destructive focus:text-destructive",children:[w,j]}),e[27]=d,e[28]=j,e[29]=N):N=e[29];let C;e[30]!==v||e[31]!==N?(C=a.jsxs(ys,{align:"end",children:[v,N]}),e[30]=v,e[31]=N,e[32]=C):C=e[32];let R;e[33]!==C||e[34]!==x?(R=a.jsxs(js,{children:[x,C]}),e[33]=C,e[34]=x,e[35]=R):R=e[35];let k;return e[36]!==s||e[37]!==R||e[38]!==b?(k=a.jsxs("div",{ref:s,className:"group flex items-center rounded-lg bg-accent",children:[b,R]}),e[36]=s,e[37]=R,e[38]=b,e[39]=k):k=e[39],k}function vi(t){const e=I.c(73),{orgId:s,orgSlug:r,userId:n,target:o,owner:d,repo:l,sandboxMap:i,enabled:u,tab:c,onTabChange:h,isV8:f,localUrl:p,onSaveLocal:b,onBack:m,onAdopt:g}=t,x=ye(),[P,y]=V.useState(""),v=c==="branches"?P:"",w=u&&c==="branches";let j;e[0]!==s||e[1]!==r||e[2]!==d||e[3]!==l||e[4]!==i||e[5]!==v||e[6]!==w||e[7]!==o||e[8]!==n?(j={orgId:s,orgSlug:r,userId:n,target:o,sandboxMap:i,owner:d,repo:l,search:v,enabled:w},e[0]=s,e[1]=r,e[2]=d,e[3]=l,e[4]=i,e[5]=v,e[6]=w,e[7]=o,e[8]=n,e[9]=j):j=e[9];const{recent:N,yours:C,others:R,isLoading:k,hasMore:A,isFetchingMore:S,fetchMore:F}=pi(j),$=u&&c==="prs";let T;e[10]!==s||e[11]!==r||e[12]!==d||e[13]!==l||e[14]!==$||e[15]!==o?(T={orgId:s,orgSlug:r,target:o,owner:d,repo:l,enabled:$},e[10]=s,e[11]=r,e[12]=d,e[13]=l,e[14]=$,e[15]=o,e[16]=T):T=e[16];const{data:_,isLoading:O}=rl(T);let Z;if(e[17]!==F||e[18]!==A||e[19]!==S||e[20]!==k||e[21]!==f||e[22]!==p||e[23]!==g||e[24]!==m||e[25]!==b||e[26]!==h||e[27]!==R||e[28]!==d||e[29]!==O||e[30]!==N||e[31]!==l||e[32]!==P||e[33]!==x||e[34]!==_||e[35]!==c||e[36]!==C){const ae=_===void 0?[]:_,H=`${d}/${l}`;let L;e[38]!==H?(L=H.toLowerCase(),e[38]=H,e[39]=L):L=e[39];const z=L;let ee;e[40]!==z?(ee=E=>E.headRepoFullName?.toLowerCase()===z,e[40]=z,e[41]=ee):ee=e[41];const W=ae.filter(ee);let B;if(e[42]!==R||e[43]!==N||e[44]!==C){const E=new Set;B=[...N,...C,...R].filter(q=>E.has(q.name)?!1:(E.add(q.name),!0)),e[42]=R,e[43]=N,e[44]=C,e[45]=B}else B=e[45];const ie=B;let U;e[46]===Symbol.for("react.memo_cache_sentinel")?(U=a.jsx(Jr,{className:"h-4 w-4 shrink-0"}),e[46]=U):U=e[46];let oe;e[47]!==x?(oe=x("thread.branchPicker.advancedBack"),e[47]=x,e[48]=oe):oe=e[48];let J;e[49]!==m||e[50]!==oe?(J=a.jsxs("button",{type:"button",onClick:m,className:"flex items-center gap-1.5 px-2 py-1.5 text-xs text-muted-foreground hover:text-foreground",children:[U,oe]}),e[49]=m,e[50]=oe,e[51]=J):J=e[51];let se;e[52]!==h?(se=E=>{h(E),y("")},e[52]=h,e[53]=se):se=e[53];let D;e[54]!==x?(D=x("thread.branchPicker.branchesTab"),e[54]=x,e[55]=D):D=e[55];let te;e[56]!==D?(te=a.jsx(_t,{value:"branches",className:"h-6 px-2.5 text-xs",children:D}),e[56]=D,e[57]=te):te=e[57];let re;e[58]!==x?(re=x("thread.branchPicker.prsTab"),e[58]=x,e[59]=re):re=e[59];let he;e[60]!==re?(he=a.jsx(_t,{value:"prs",className:"h-6 px-2.5 text-xs",children:re}),e[60]=re,e[61]=he):he=e[61];let G;e[62]!==f||e[63]!==x?(G=!f&&a.jsx(_t,{value:"local",className:"h-6 px-2.5 text-xs",children:x("thread.branchPicker.localTab")}),e[62]=f,e[63]=x,e[64]=G):G=e[64];let pe;e[65]!==te||e[66]!==he||e[67]!==G?(pe=a.jsxs(ga,{className:"h-auto w-fit justify-start gap-1 bg-accent p-1",variant:"pill",children:[te,he,G]}),e[65]=te,e[66]=he,e[67]=G,e[68]=pe):pe=e[68];let Y;e[69]!==se||e[70]!==pe||e[71]!==c?(Y=a.jsx(xa,{className:"px-2 pt-2 pb-1",value:c,onValueChange:se,children:pe}),e[69]=se,e[70]=pe,e[71]=c,e[72]=Y):Y=e[72],Z=a.jsxs("div",{className:"flex flex-col",children:[J,Y,c==="local"&&!f?a.jsx(li,{url:p,onSave:b}):a.jsxs(Gr,{filter:c==="branches"?yi:void 0,children:[a.jsx(Wr,{placeholder:x(c==="branches"?"thread.branchPicker.searchBranches":"thread.branchPicker.searchPullRequests"),value:P,onValueChange:y}),a.jsx(Qr,{onScroll:E=>{const q=E.currentTarget;c==="branches"&&q.scrollHeight-q.scrollTop-q.clientHeight<48&&F()},children:c==="branches"?a.jsxs(a.Fragment,{children:[k&&a.jsx("div",{className:"p-3 text-xs text-muted-foreground",children:x("thread.branchPicker.loadingMore")}),!k&&ie.length===0&&a.jsx(kn,{children:x("thread.branchPicker.noBranchesFound")}),ie.length>0&&a.jsx(Nn,{children:ie.map(E=>a.jsxs(Cn,{value:E.name,className:"cursor-pointer",onSelect:()=>g(E.name,E.name),children:[a.jsx(xr,{className:"mr-2 h-4 w-4 shrink-0"}),a.jsx("span",{className:"flex-1 truncate",children:E.name})]},E.name))}),A&&a.jsx("div",{className:"p-2",children:a.jsx(ve,{variant:"ghost",size:"sm",className:"h-7 w-full text-xs",disabled:S,onClick:F,children:x(S?"thread.branchPicker.loadingMore":"thread.branchPicker.loadMoreBranches")})})]}):a.jsxs(a.Fragment,{children:[O&&a.jsx("div",{className:"p-3 text-xs text-muted-foreground",children:x("thread.branchPicker.loadingPullRequests")}),!O&&W.length===0&&a.jsx(kn,{children:x("thread.branchPicker.noOpenPullRequests")}),W.length>0&&a.jsx(Nn,{children:W.map(E=>a.jsxs(Cn,{value:`#${E.number} ${E.title} ${E.head}`,className:"cursor-pointer",onSelect:()=>g(E.head,Dn(E.title)),children:[a.jsx(ks,{className:"mr-2 h-4 w-4 shrink-0 text-muted-foreground"}),a.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[a.jsx("span",{className:"truncate",children:Dn(E.title)}),a.jsxs("span",{className:"truncate text-xs text-muted-foreground",children:["#",E.number," · ",E.head]})]})]},E.number))})]})})]})]}),e[17]=F,e[18]=A,e[19]=S,e[20]=k,e[21]=f,e[22]=p,e[23]=g,e[24]=m,e[25]=b,e[26]=h,e[27]=R,e[28]=d,e[29]=O,e[30]=N,e[31]=l,e[32]=P,e[33]=x,e[34]=_,e[35]=c,e[36]=C,e[37]=Z}else Z=e[37];return Z}function yi(t,e){return Ms(t,e)?1:0}function ji(t){const e=I.c(19),{locked:s,placement:r,value:n,virtualMcpId:o,isV8:d,userLabel:l,baseBranch:i,baseIsDraft:u,onChange:c,onCreateBranch:h,onAdoptBranch:f,orgId:p,orgSlug:b,userId:m,target:g,owner:x,repo:P,sandboxMap:y}=t;let v;return e[0]!==i||e[1]!==u||e[2]!==d||e[3]!==s||e[4]!==f||e[5]!==c||e[6]!==h||e[7]!==p||e[8]!==b||e[9]!==x||e[10]!==r||e[11]!==P||e[12]!==y||e[13]!==g||e[14]!==m||e[15]!==l||e[16]!==n||e[17]!==o?(v=a.jsx(gi,{virtualMcpId:o,isV8:d,userLabel:l,value:n,baseBranch:i,baseIsDraft:u,orgId:p,orgSlug:b,userId:m,target:g,owner:x,repo:P,sandboxMap:y,onChange:c,onCreateBranch:h,onAdoptBranch:f,spawnsNewChat:s,placement:r}),e[0]=i,e[1]=u,e[2]=d,e[3]=s,e[4]=f,e[5]=c,e[6]=h,e[7]=p,e[8]=b,e[9]=x,e[10]=r,e[11]=P,e[12]=y,e[13]=g,e[14]=m,e[15]=l,e[16]=n,e[17]=o,e[18]=v):v=e[18],v}function Pi(t){const e=I.c(2),{branchPill:s}=t;if(!s)return null;let r;return e[0]!==s?(r=a.jsx(a.Fragment,{children:s}),e[0]=s,e[1]=r):r=e[1],r}function wi(t){const e=I.c(25),{virtualMcp:s,currentBranch:r}=t,n=Ir(),o=Zt();let d;e[0]!==n?.messages||e[1]!==o?.isThreadLocked?(d=(n?.messages??[]).length>0||(o?.isThreadLocked??!1),e[0]=n?.messages,e[1]=o?.isThreadLocked,e[2]=d):d=e[2];const l=d,i=o?.setCurrentTaskBranch,u=o?.createTask;let c;e[3]!==o?.activeTask?.metadata||e[4]!==s?.metadata?(c=el(s?.metadata)==="cms"&&Rn(o?.activeTask?.metadata,s?.metadata)==="sandbox",e[3]=o?.activeTask?.metadata,e[4]=s?.metadata,e[5]=c):c=e[5];const h=c,f=tl(s),p=et(f),{data:b}=Ps.useSession(),m=b?.user;let g;e[6]!==m?(g=sn(m),e[6]=m,e[7]=g):g=e[7];const x=g,P=b?.user?.id??"",{org:y}=ws(),v=ll(s,r),w=Ia(s?.id);let j;e[8]!==w||e[9]!==o?.activeTask?.metadata||e[10]!==s?.metadata?(j=w==="v8"&&Rn(o?.activeTask?.metadata,s?.metadata)==="cms",e[8]=w,e[9]=o?.activeTask?.metadata,e[10]=s?.metadata,e[11]=j):j=e[11];const N=j;let C;e[12]!==u||e[13]!==l||e[14]!==i?(C=_=>{l&&u?u({branch:_}):i&&i(_)},e[12]=u,e[13]=l,e[14]=i,e[15]=C):C=e[15];const R=C;let k;e[16]!==h||e[17]!==u||e[18]!==l||e[19]!==i?(k=_=>{(l||h)&&u?u({branch:_}):i&&i(_)},e[16]=h,e[17]=u,e[18]=l,e[19]=i,e[20]=k):k=e[20];const A=k;let S;e[21]!==u?(S=u?_=>u({runtime:"sandbox",branch:_}):void 0,e[21]=u,e[22]=S):S=e[22];const F=S,$=f&&Na(p)?a.jsx(ji,{userLabel:x,virtualMcpId:s?.id??"",isV8:w==="v8",value:r,baseBranch:v,baseIsDraft:N,orgId:y.id,orgSlug:y.slug,userId:P,target:p,owner:f.owner,repo:f.name,sandboxMap:s?.metadata?.sandboxMap,onChange:R,onCreateBranch:A,onAdoptBranch:F,locked:l,placement:"chat"},`${Ca(p)}:${f.owner}/${f.name}`):null;let T;return e[23]!==$?(T=a.jsx(Pi,{branchPill:$}),e[23]=$,e[24]=T):T=e[24],T}const Si=vr("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-lg",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function ki(t){const e=I.c(11);let s,r,n;e[0]!==t?({className:s,orientation:r,...n}=t,e[0]=t,e[1]=s,e[2]=r,e[3]=n):(s=e[1],r=e[2],n=e[3]);let o;e[4]!==s||e[5]!==r?(o=X(Si({orientation:r}),s),e[4]=s,e[5]=r,e[6]=o):o=e[6];let d;return e[7]!==r||e[8]!==n||e[9]!==o?(d=a.jsx("div",{role:"group","data-slot":"button-group","data-orientation":r,className:o,...n}),e[7]=r,e[8]=n,e[9]=o,e[10]=d):d=e[10],d}function Ni(t){const e=I.c(14),{item:s}=t;let r;e[0]!==s?(r=()=>{s.onSelect()},e[0]=s,e[1]=r):r=e[1];let n;e[2]!==s.disabled||e[3]!==s.icon||e[4]!==s.label||e[5]!==r?(n=a.jsxs(Gt,{disabled:s.disabled,onSelect:r,children:[s.icon,s.label]}),e[2]=s.disabled,e[3]=s.icon,e[4]=s.label,e[5]=r,e[6]=n):n=e[6];const o=n;if(!s.tooltip)return o;let d;e[7]!==o?(d=a.jsx(kt,{asChild:!0,children:o}),e[7]=o,e[8]=d):d=e[8];let l;e[9]!==s.tooltip?(l=a.jsx(Nt,{side:"right",children:s.tooltip}),e[9]=s.tooltip,e[10]=l):l=e[10];let i;return e[11]!==d||e[12]!==l?(i=a.jsxs(St,{children:[d,l]}),e[11]=d,e[12]=l,e[13]=i):i=e[13],i}function Ha(t){const e=I.c(20),{label:s,onClick:r,variant:n,size:o,disabled:d,loading:l,pulse:i,tooltip:u,icon:c,items:h,menuAriaLabel:f,className:p}=t,b=n===void 0?"default":n,m=o===void 0?"default":o,g=d===void 0?!1:d,x=l===void 0?!1:l,P=i===void 0?!1:i,y=(h?.length??0)>0;let v;if(e[0]!==p||e[1]!==g||e[2]!==y||e[3]!==c||e[4]!==h||e[5]!==s||e[6]!==x||e[7]!==f||e[8]!==r||e[9]!==P||e[10]!==m||e[11]!==u||e[12]!==b){const w=X(ba,b==="default"&&"focus-visible:inset-ring-current");let j;e[14]!==c||e[15]!==x?(j=x?a.jsx(Wt,{size:"xs"}):c,e[14]=c,e[15]=x,e[16]=j):j=e[16];const N=a.jsxs(ve,{type:"button",variant:b,size:m,disabled:g,"aria-busy":x||void 0,onClick:x?void 0:r,className:X(w,y&&"rounded-r-none border-r border-current/20"),children:[j,s]}),C=P&&"animate-pulse-brightness motion-reduce:animate-none motion-reduce:opacity-80";let R;e[17]!==p||e[18]!==C?(R=X(C,p),e[17]=p,e[18]=C,e[19]=R):R=e[19],v=a.jsxs(ki,{className:R,children:[u?a.jsxs(St,{children:[a.jsx(kt,{asChild:!0,children:a.jsx("span",{className:X("inline-flex rounded-lg outline-none",w,g&&"cursor-not-allowed"),tabIndex:g?0:void 0,role:g?"button":void 0,"aria-disabled":g||void 0,children:N})}),a.jsx(Nt,{children:u})]}):N,y?a.jsxs(js,{children:[a.jsx(vs,{asChild:!0,children:a.jsx(ve,{type:"button",variant:b,size:m,"aria-label":f,className:X("has-[>svg]:px-2",w),children:a.jsx(va,{className:"size-3.5"})})}),a.jsx(ys,{align:"end",children:h?.map(Ci)})]}):null]}),e[0]=p,e[1]=g,e[2]=y,e[3]=c,e[4]=h,e[5]=s,e[6]=x,e[7]=f,e[8]=r,e[9]=P,e[10]=m,e[11]=u,e[12]=b,e[13]=v}else v=e[13];return v}function Ci(t){return a.jsx(Ni,{item:t},t.key)}async function Ai(t){if(t.hosted)return;const e=t.branch;await t.setCurrentTaskBranch(t.nextBranch()),e&&e!==t.baseBranch&&await t.deleteRelease(e)}function Ri(t,e,{hosted:s}){return s&&t!==null?t:e}function Ti(t,e){const s=I.c(11),[r,n]=V.useState(null);let o;s[0]!==r||s[1]!==t||s[2]!==e?(o=Ri(r,t,e),s[0]=r,s[1]=t,s[2]=e,s[3]=o):o=s[3];let d;s[4]!==t||s[5]!==e?(d=()=>n(e.hosted?t:null),s[4]=t,s[5]=e,s[6]=d):d=s[6];let l;s[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>n(null),s[7]=l):l=s[7];let i;return s[8]!==o||s[9]!==d?(i={shown:o,hold:d,release:l},s[8]=o,s[9]=d,s[10]=i):i=s[10],i}function Bi({open:t,hosted:e}){return t||e}function qa(t){return Pl({userName:t?.name,userEmail:t?.email})??void 0}function Cs(t){const e=I.c(18),{state:s,header:r,body:n,note:o,gate:d,footer:l}=t,i=s!=="ready";let u;e[0]!==r?(u=a.jsx("div",{className:"space-y-0.5 px-4 py-3",children:r}),e[0]=r,e[1]=u):u=e[1];let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx("div",{className:"border-t"}),e[2]=c):c=e[2];let h;e[3]!==o?(h=o?a.jsx("div",{className:"space-y-1.5 border-t px-4 py-3",children:o}):null,e[3]=o,e[4]=h):h=e[4];let f;e[5]!==n||e[6]!==h?(f=a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col",children:[n,h]}),e[5]=n,e[6]=h,e[7]=f):f=e[7];let p;e[8]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx("div",{className:"border-t"}),e[8]=p):p=e[8];let b;e[9]!==l?(b=a.jsx("div",{className:"space-y-2 px-4 py-3",children:l}),e[9]=l,e[10]=b):b=e[10];let m;return e[11]!==d||e[12]!==s||e[13]!==i||e[14]!==u||e[15]!==f||e[16]!==b?(m=a.jsxs("div",{className:"flex min-h-0 flex-1 flex-col","data-publish-state":s,"aria-busy":i,children:[u,c,f,d,p,b]}),e[11]=d,e[12]=s,e[13]=i,e[14]=u,e[15]=f,e[16]=b,e[17]=m):m=e[17],m}function Yt(t){const e=I.c(2),{children:s}=t;let r;return e[0]!==s?(r=a.jsx("div",{className:"scroll-fade min-h-0 flex-1 space-y-3 overflow-y-auto overscroll-contain px-4 pt-3 pb-2 [scrollbar-width:thin]",children:s}),e[0]=s,e[1]=r):r=e[1],r}function Ka(t){const e=I.c(10);let s,r,n;e[0]!==t?({className:r,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=r,e[3]=n):(s=e[1],r=e[2],n=e[3]);let o;e[4]!==r?(o=X("rounded-lg border bg-card px-3 py-2.5",r),e[4]=r,e[5]=o):o=e[5];let d;return e[6]!==s||e[7]!==n||e[8]!==o?(d=a.jsx("div",{className:o,...n,children:s}),e[6]=s,e[7]=n,e[8]=o,e[9]=d):d=e[9],d}function ht(t){const e=I.c(4),{className:s}=t;let r;e[0]!==s?(r=X("animate-pulse rounded bg-muted motion-reduce:animate-none",s),e[0]=s,e[1]=r):r=e[1];let n;return e[2]!==r?(n=a.jsx("div",{className:r}),e[2]=r,e[3]=n):n=e[3],n}function Et(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx(Ka,{children:a.jsxs("div",{className:"flex items-center gap-2.5",children:[a.jsx(ht,{className:"size-4 rounded-md"}),a.jsx(ht,{className:"h-3 w-24"}),a.jsx(ht,{className:"h-2.5 w-16"}),a.jsx(ht,{className:"ml-auto size-6 rounded"})]})}),t[0]=e):e=t[0],e}const Ii="secret";function Va(t){return t.kind!=="block"?null:t.namedRule??null}function Di(t,e){const s=e.find(r=>r&&typeof r=="object");return s?bl(s.__resolveType):Fa(t)}const $i=/(?:^|\/)\.deco\/blocks\/([^/]+)\.json$/;function mn(t){const e=$i.exec(t)?.[1];return e?Kl(e):null}function xs(t){if(!t)return null;try{const e=JSON.parse(t);if(e&&typeof e=="object"&&!Array.isArray(e))return e}catch{}return null}function Fi(t,e){return t===null?"new":e===null?"removed":"edited"}function Ga(t){const e=t.replace(/[_-]+/g," ").replace(/([a-z0-9])([A-Z])/g,"$1 $2").trim();return e?(e.charAt(0).toUpperCase()+e.slice(1)).replace(/\s+[A-Z](?=[a-z])/g,s=>s.toLowerCase()):t}function Vt(t,e,s=!1){if(t&&typeof t=="object"&&!Array.isArray(t)){const r=t.__resolveType;if(typeof r=="string"&&r.trim()){if(s)return yr(r);const o=(r.split("/").pop()??r).replace(/\.[jt]sx?$/,"");return Ga(o)||o}}return`Section ${e+1}`}function pn(t){if(Xn(t))return t.value??null;const e=t.__resolveType;return typeof e=="string"&&jr(e)?t.section??null:null}const Wa=6;function ms(t,e=0){if(e>Wa||!t||typeof t!="object")return[];if(Array.isArray(t))return t.flatMap(n=>ms(n,e+1));const s=t;if(Js(s.__resolveType))return Os(s).flatMap(n=>ms(n?.value,e+1));const r=pn(s);return r!==null?ms(r,e+1):[s]}function Os(t){const e=t?.variants;return Array.isArray(e)?e.map(s=>s&&typeof s=="object"&&!Array.isArray(s)?s:null):[]}function Ln(t){let e=t;for(let s=0;s<Wa;s++){if(!e||typeof e!="object"||Array.isArray(e))return null;const r=e;if(Js(r.__resolveType))return r;const n=pn(r);if(n===null)return null;e=n}return null}function Li(t,e,s){const r=Os(Ln(t)),n=e?Os(Ln(e)):[],o=e?Array.from({length:Math.max(r.length,n.length)},(i,u)=>u).filter(i=>!As(r[i],n[i])):[],l=[...o.map(i=>r[i]??n[i]),...r.filter((i,u)=>!o.includes(u))].flatMap(i=>ms(i?.value)).map(i=>Vt(i,s,!0));return[...new Set(l)]}function $s(t,e,s,r,n){let o=t,d=!1;for(let i=0;i<4;i++){if(!o||typeof o!="object"||Array.isArray(o)){d=!0;break}const u=o;if(Js(u.__resolveType)){d=!0;break}const c=pn(u);if(c===null)break;o=c}const l=d?Li(t,n,e):[];return{name:Vt(d?t:o,e,!0),kind:"section",status:s,fields:r,...d?{wrapper:!0}:{},...l.length>0?{held:l}:{}}}function _s(t,e){const s=t.sections;if(Array.isArray(s))return s.flatMap((r,n)=>r&&typeof r=="object"&&!Array.isArray(r)?[{section:r,basePath:["sections",n]}]:[]);if(s&&typeof s=="object"){const r=s.variants;if(Array.isArray(r))return r.flatMap((n,o)=>{const d=n&&typeof n=="object"&&!Array.isArray(n)?n.value:null,l=e&&Xn(d),i=l?d.value:d;if(!Array.isArray(i))return[];const u=l?["sections","variants",o,"value","value"]:["sections","variants",o,"value"];return i.flatMap((c,h)=>c&&typeof c=="object"&&!Array.isArray(c)?[{section:c,basePath:[...u,h]}]:[])})}return[]}function Mn(t){return JSON.stringify(t,(e,s)=>{if(s&&typeof s=="object"&&!Array.isArray(s)){const r=s;return Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{})}return s})}function As(t,e){return t===void 0&&e===void 0?!0:Mn(t)===Mn(e)}function Qt(t,e,s,r=new Set){const n=new Set([...Object.keys(t??{}),...Object.keys(e??{})]),o=[];for(const d of n){if(d.startsWith("__")||r.has(d))continue;const l=t?t[d]:void 0,i=e?e[d]:void 0;As(l,i)||o.push({label:Ga(d),path:[...s,d],from:l,to:i})}return o}const Mi=new Set(["sections"]);function bn(t,e,s=!1){const r=t?_s(t,s):[],n=e?_s(e,s):[],o=[],d=Math.max(r.length,n.length);for(let i=0;i<d;i++){const u=r[i],c=n[i];if(!s){const h=Oi(u,c,i);h&&o.push(h);continue}if(u&&c){if(As(u.section,c.section))continue;o.push($s(c.section,i,"edited",Qt(u.section,c.section,c.basePath),u.section))}else c?o.push($s(c.section,i,"new",[])):u&&o.push($s(u.section,i,"removed",[]))}const l=Qt(t,e,[],Mi);return l.length>0&&o.push({name:"Page settings",kind:"settings",status:"edited",fields:l}),o}function Oi(t,e,s){return t&&e?As(t.section,e.section)?null:{name:Vt(e.section,s),kind:"section",status:"edited",fields:Qt(t.section,e.section,e.basePath)}:e?{name:Vt(e.section,s),kind:"section",status:"new",fields:[]}:t?{name:Vt(t.section,s),kind:"section",status:"removed",fields:[]}:null}function Es(t,e){return{kind:"other",blockKey:null,name:t.split("/").pop()??t,pagePath:null,isSiteApp:!1,status:e,filepaths:[t],sections:[],fromJson:null,toJson:null}}function _i(t){const e=[],s=[],r=[],n=[];for(const[o,d]of Object.entries(t?.diffs??{})){if(cn(o)){n.push(o);continue}const l=Fi(d.from,d.to),i=mn(o);if(!i){r.push(Es(o,l));continue}const u=xs(d.from),c=xs(d.to),h=c??u;if(!h){r.push(Es(o,l));continue}const f=Kt(i,h);if(f){e.push({kind:"page",blockKey:i,name:f.name,pagePath:f.path,isSiteApp:!1,status:l,filepaths:[o],sections:l==="edited"?bn(u,c):[],fromJson:u,toJson:c});continue}const p=rn(i,h);s.push({kind:"block",blockKey:i,name:bs(i,h),pagePath:null,isSiteApp:p,status:l,filepaths:[o],sections:l==="edited"?[{name:bs(i,h),kind:"section",status:"edited",fields:Qt(u,c,[])}].filter(b=>b.fields.length>0):[],fromJson:u,toJson:c})}return Qa({pages:e,blocks:s,other:r,generated:n})}function Fs(t,e){return(t.filepaths[0]??"").localeCompare(e.filepaths[0]??"")}function Qa(t){const{pages:e,blocks:s,other:r,generated:n}=t;return e.sort(Fs),s.sort(Fs),r.sort(Fs),{pages:e,blocks:s,other:r,generated:n,count:e.length+s.length+r.length}}function Ei(t){return t==="added"?"new":t==="removed"?"removed":"edited"}function Ja(t){return t.startsWith("pages-")}function Xa(t){const{files:e,lookup:s,diff:r}=t,n=[],o=[],d=[],l=[];for(const i of e){const u=i.path;if(cn(u)){l.push(u);continue}const c=Ei(i.status),h=mn(u);if(!h){d.push(Es(u,c));continue}const f=r?.diffs[u],p=xs(f?.from??null),b=xs(f?.to??null),m=Ya(s,h),g=m??b??p;if((m?Kt(h,m):null)??(!m&&Ja(h))){const y=g?Kt(h,g):null;n.push({kind:"page",blockKey:h,name:y?.name??$a(h),pagePath:y?.path??null,isSiteApp:!1,status:c,filepaths:[u],sections:c==="edited"?bn(p,b):[],fromJson:p,toJson:b??(c==="new"?m:null)});continue}const P=bs(h,g??{});o.push({kind:"block",blockKey:h,name:P,pagePath:null,isSiteApp:rn(h,m??{}),status:c,filepaths:[u],sections:c==="edited"?[{name:P,kind:"section",status:"edited",fields:Qt(p,b,[])}].filter(y=>y.fields.length>0):[],fromJson:p,toJson:b})}return Qa({pages:n,blocks:o,other:d,generated:l})}function Ya(t,e){const s=t?.[e];return s&&typeof s=="object"&&!Array.isArray(s)?s:null}function Ui(t,e){return t??e}function Za(t){return t.length<=1?t[0]??"":`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`}const Ls=3;function ds(t){if(t.length<=Ls)return Za(t);const e=t.length-Ls;return`${t.slice(0,Ls).join(", ")} and ${e} more`}function zi(t,e){if(!e){const r=t.sections.filter(n=>n.kind==="section").map(n=>n.name).slice(0,3);return r.length>0?`${t.name} (${r.join(", ")})`:t.name}const s=[...new Set(t.sections.filter(r=>r.kind==="section").flatMap(r=>r.wrapper?r.held??[]:[r.name]))].slice(0,3);return s.length>0?`${t.name} (${s.join(", ")})`:t.name}function Hi(t){const e=Va(t);return e==="experiments"?"A/B tests":e==="campaigns"?"Campaign dates":t.name}function qi(t){const e=[],s=t.pages.filter(l=>l.status==="edited"),r=t.pages.filter(l=>l.status==="new"),n=t.pages.filter(l=>l.status==="removed");if(s.length>0&&e.push(`updated ${ds(s.map(l=>zi(l,!!t.v8)))}`),r.length>0){const l=r.length===1?"page":"pages";e.push(`added the ${ds(r.map(i=>i.name))} ${l}`)}if(n.length>0){const l=n.length===1?"page":"pages";e.push(`removed the ${ds(n.map(i=>i.name))} ${l}`)}const o=t.blocks.map(Hi);if(o.length>0&&e.push(`changed ${ds(o)}`),t.other.length>0){const l=t.other.length===1?"file":"files";e.push(`changed ${t.other.length} ${l}`)}if(e.length===0)return"";const d=Za(e);return wl(d.charAt(0).toUpperCase()+d.slice(1))}function Ki(t,e){return t?_s(t,e).length:0}function Vi(t,e=!1){const s={newPageSections:t.kind==="page"&&t.status==="new"?Ki(t.toJson,e):null,sections:0,settings:!1,fields:0};if(s.newPageSections!==null)return s;for(const r of t.sections){if(r.kind==="settings"){s.settings=!0;continue}t.kind==="page"?s.sections+=1:s.fields+=r.fields.length}return s}const On="••••••";function Jt(t){if(Array.isArray(t))return t.map(Jt);if(!t||typeof t!="object")return t;const e=t,s={};for(const[r,n]of Object.entries(e))s[r]=Jt(n);return e.__resolveType===Ii&&"ciphertext"in e&&(s.ciphertext=On),wr(e)&&"encrypted"in e&&(s.encrypted=On),s}function _n(t){return t.map(e=>({...e,from:Jt(e.from),to:Jt(e.to)}))}function Gi(t){const{changes:e,sides:s,lookup:r,meta:n,missingRules:o,missingRuleUses:d,hosted:l}=t,i=[],u=[],c=f=>[...new Set((s?.diagnostics??[]).filter(p=>wn(Pr(p.file))===wn(f)).map(p=>p.side))],h=Object.keys(e).sort((f,p)=>f<p?-1:f>p?1:0);for(const f of h){const p=e[f],b=p.kind==="delete"?"removed":p.baseVersion===null?"new":"edited",m=s?.entries[f],g=m?.before??null,x=m?.after??null,P=Ya(r,f),y=P??x??g,v=c(f),w=o?.get(f),j=Fa(f),N=j?d?.get(j):void 0,C={blockKey:f,status:b,filepaths:[],entry:{name:f,version:p.version},...v.length>0?{unreadable:v}:{},...w&&w.length>0?{missingRules:w}:{},...j&&N&&N.pages+N.sections>0?{missingRuleUses:{kind:j,...N}}:{},fromJson:Jt(g),toJson:Jt(x??(b==="new"?P:null))},R=P?Kt(f,P,n):null,k=!P&&y?Kt(f,y,n):null;if(R??k??(!y&&Ja(f))){const $=y?Kt(f,y,n):null;i.push({...C,kind:"page",name:$?.name??$a(f),pagePath:$?.path??null,isSiteApp:!1,sections:b==="edited"?bn(g,x,!0).map(T=>({...T,fields:_n(T.fields)})):[]});continue}const A=l?ml(f,y,P,x,g):null,S=A?pl(A,[y,P,x,g]):bs(f,y??{}),F=Di(f,[P,x,g]);u.push({...C,kind:"block",name:S,...A?{blogKind:A}:{},...F?{namedRule:F}:{},pagePath:null,isSiteApp:rn(f,P??y??{}),sections:b==="edited"?[{name:S,kind:"section",status:"edited",fields:_n(Qt(g,x,[]))}].filter($=>$.fields.length>0):[]})}return{pages:i,blocks:u,other:[],generated:[],count:i.length+u.length,v8:!0}}function Be(t){return t.filepaths[0]??t.blockKey??t.name}function Wi(t){const e=t.pages+t.sections===1,s=t.names===1;return t.kind==="experiments"?s?e?"thread.publishPopover.missingTestUsesOne":"thread.publishPopover.missingTestUses":e?"thread.publishPopover.missingTestsUsesOne":"thread.publishPopover.missingTestsUses":s?e?"thread.publishPopover.missingCampaignUsesOne":"thread.publishPopover.missingCampaignUses":e?"thread.publishPopover.missingCampaignsUsesOne":"thread.publishPopover.missingCampaignsUses"}function Qi(t,e){return e(t==="new"?"thread.publishPopover.chipNew":t==="removed"?"thread.publishPopover.chipRemoved":"thread.publishPopover.chipEdited")}function Ji(t,e){const s=t.kind==="block"?Tl:ya;return a.jsx("span",{title:Qi(t.status,e),className:"flex shrink-0",children:a.jsx(s,{className:X("size-4",t.status==="new"&&"text-brand",t.status==="edited"&&"text-warning",t.status==="removed"&&"text-destructive")})})}function Xi(t,e){if(t.kind==="page")return t.pagePath;if(t.kind!=="block")return null;if(t.blogKind)return gl(t.blogKind,e);const s=Va(t);return s==="experiments"?e("thread.publishPopover.abTests"):s==="campaigns"?e("thread.publishPopover.campaignDates"):t.isSiteApp?e("thread.publishPopover.siteConfiguration"):e("thread.publishPopover.globalSection")}function Yi(t,e,s){const r=Vi(t,s);if(r.newPageSections!==null)return[r.newPageSections===1?e("thread.publishPopover.newPageSectionOne"):e("thread.publishPopover.newPageSections",{count:r.newPageSections})];const n=[];return r.sections===1?n.push(e("thread.publishPopover.sectionChangedOne")):r.sections>1&&n.push(e("thread.publishPopover.sectionsChanged",{count:r.sections})),r.fields===1?n.push(e("thread.publishPopover.fieldChangedOne")):r.fields>1&&n.push(e("thread.publishPopover.fieldsChanged",{count:r.fields})),r.settings&&n.push(e("thread.publishPopover.pageSettingsChanged")),n}function er(t){const e=I.c(68),{change:s,bodyPending:r,selected:n,onSelect:o,confirming:d,onConfirmingChange:l,onDiscard:i,isPublishing:u,isDiscarding:c,v8:h,alsoChangedOnMain:f}=t,p=r===void 0?!1:r,b=h===void 0?!1:h,m=f===void 0?!1:f,g=ye();let x;e[0]!==s||e[1]!==g?(x=Xi(s,g),e[0]=s,e[1]=g,e[2]=x):x=e[2];const P=x;let y,v,w,j,N,C,R,k;if(e[3]!==p||e[4]!==s||e[5]!==d||e[6]!==P||e[7]!==c||e[8]!==u||e[9]!==l||e[10]!==i||e[11]!==o||e[12]!==n||e[13]!==g||e[14]!==b){const F=Yi(s,g,b);let $;e[23]!==s.missingRules?($=s.missingRules??[],e[23]=s.missingRules,e[24]=$):$=e[24];const T=$,_=s.missingRuleUses,O=_?Il(g,_):null,Z=p&&F.length===0&&s.status==="edited";y=Ka;const ae=n&&"border-foreground/30 bg-accent hover:bg-secondary-hover";e[25]!==ae?(j=X("cursor-pointer transition-colors hover:bg-accent",ae),e[25]=ae,e[26]=j):j=e[26],e[27]!==s?(N=Be(s),e[27]=s,e[28]=N):N=e[28],C=o;let H;e[29]!==s||e[30]!==g?(H=Ji(s,g),e[29]=s,e[30]=g,e[31]=H):H=e[31];let L;e[32]!==s.name?(L=a.jsx("span",{className:"truncate text-sm font-medium",children:s.name}),e[32]=s.name,e[33]=L):L=e[33];let z;e[34]!==P?(z=P?a.jsx("span",{className:"truncate text-xs text-muted-foreground",children:P}):null,e[34]=P,e[35]=z):z=e[35];let ee;e[36]!==n||e[37]!==L||e[38]!==z?(ee=a.jsxs("button",{type:"button",className:"flex min-w-0 flex-1 items-center gap-2 text-left","aria-pressed":n,children:[L,z]}),e[36]=n,e[37]=L,e[38]=z,e[39]=ee):ee=e[39];let W;e[40]!==d||e[41]!==c||e[42]!==u||e[43]!==l||e[44]!==i||e[45]!==g?(W=d?a.jsxs("div",{className:"flex shrink-0 items-center gap-1.5",children:[a.jsx("button",{type:"button",className:"text-xs text-muted-foreground hover:text-foreground",onClick:B=>{B.stopPropagation(),l(!1)},children:g("thread.publishDialog.cancel")}),a.jsx("button",{type:"button",className:"text-xs font-medium text-destructive disabled:opacity-50",onClick:B=>{B.stopPropagation(),l(!1),i?.()},disabled:c,children:g("thread.publishPopover.discard")})]}):i?a.jsx(Ss,{children:a.jsxs(St,{children:[a.jsx(kt,{asChild:!0,children:a.jsx(ve,{type:"button",variant:"ghost-destructive",size:"icon-xs","aria-label":g("thread.publishPopover.discard"),className:"shrink-0 disabled:pointer-events-auto",onClick:B=>{B.stopPropagation(),l(!0)},disabled:u||c,children:a.jsx(Ns,{className:"size-3.5"})})}),a.jsx(Nt,{children:g("thread.publishPopover.discard")})]})}):null,e[40]=d,e[41]=c,e[42]=u,e[43]=l,e[44]=i,e[45]=g,e[46]=W):W=e[46],e[47]!==H||e[48]!==ee||e[49]!==W?(R=a.jsxs("div",{className:"flex items-center gap-2.5",children:[H,ee,W]}),e[47]=H,e[48]=ee,e[49]=W,e[50]=R):R=e[50],k=F.length>0?a.jsx("div",{className:"mt-1 space-y-0.5 pl-[26px] text-xs text-muted-foreground",children:F.map(Zi)}):Z?a.jsx("div",{className:"mt-1 space-y-0.5 pl-[26px]",children:a.jsx(ht,{className:"h-4 w-2/3"})}):null,e[51]!==T||e[52]!==g?(v=T.length>0?a.jsx("div",{className:"mt-1 space-y-0.5 pl-[26px] text-xs text-foreground","data-testid":"publish-change-missing-rule",children:T.map(B=>a.jsx("div",{className:"truncate",children:g(B==="experiments"?"thread.publishPopover.missingTest":"thread.publishPopover.missingCampaign")},B))}):null,e[51]=T,e[52]=g,e[53]=v):v=e[53],w=_&&O?a.jsx("div",{className:"mt-1 truncate pl-[26px] text-xs text-foreground","data-testid":"publish-change-missing-rule-uses",children:g(Wi(_),{places:O.places})}):null,e[3]=p,e[4]=s,e[5]=d,e[6]=P,e[7]=c,e[8]=u,e[9]=l,e[10]=i,e[11]=o,e[12]=n,e[13]=g,e[14]=b,e[15]=y,e[16]=v,e[17]=w,e[18]=j,e[19]=N,e[20]=C,e[21]=R,e[22]=k}else y=e[15],v=e[16],w=e[17],j=e[18],N=e[19],C=e[20],R=e[21],k=e[22];let A;e[54]!==m||e[55]!==s.name||e[56]!==g?(A=m?a.jsx("div",{className:"mt-1 pl-[26px] text-xs text-muted-foreground","data-testid":"publish-change-also-changed",children:g("thread.publishPopover.alsoChangedOnMain",{name:s.name})}):null,e[54]=m,e[55]=s.name,e[56]=g,e[57]=A):A=e[57];let S;return e[58]!==y||e[59]!==v||e[60]!==w||e[61]!==A||e[62]!==j||e[63]!==N||e[64]!==C||e[65]!==R||e[66]!==k?(S=a.jsxs(y,{className:j,"data-change-id":N,onClick:C,children:[R,k,v,w,A]}),e[58]=y,e[59]=v,e[60]=w,e[61]=A,e[62]=j,e[63]=N,e[64]=C,e[65]=R,e[66]=k,e[67]=S):S=e[67],S}function Zi(t,e){return a.jsx("div",{className:"truncate",children:t},`${e}-${t}`)}function tr(){const t=I.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={width:-1,height:-1},t[0]=e):e=t[0];const[s,r]=V.useState(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=l=>{if(!l)return;const i=()=>r(c=>c.width===l.clientWidth&&c.height===l.clientHeight?c:{width:l.clientWidth,height:l.clientHeight});i();const u=new ResizeObserver(i);return u.observe(l),()=>u.disconnect()},t[1]=n):n=t[1];const o=n;let d;return t[2]!==s?(d=[s,o],t[2]=s,t[3]=d):d=t[3],d}function eo(){return document.documentElement.classList.contains("dark")?"vs-dark":"vs"}const to=[{width:"w-3/4",tone:"ctx"},{width:"w-1/2",tone:"del"},{width:"w-3/5",tone:"add"},{width:"w-2/5",tone:"ctx"},{width:"w-4/5",tone:"add"},{width:"w-1/2",tone:"ctx"}];function En(t){const e=I.c(10),{height:s}=t,r=ye();let n;e[0]!==s?(n={height:s},e[0]=s,e[1]=n):n=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=to.map(so),e[2]=o):o=e[2];let d;e[3]!==r?(d=r("thread.publishDialog.openingComparison"),e[3]=r,e[4]=d):d=e[4];let l;e[5]!==d?(l=a.jsx("div",{className:"flex items-center justify-center pt-1 text-2xs text-muted-foreground",children:d}),e[5]=d,e[6]=l):l=e[6];let i;return e[7]!==n||e[8]!==l?(i=a.jsxs("div",{style:n,className:"flex w-full flex-col gap-1.5 overflow-hidden px-3 py-2",children:[o,l]}),e[7]=n,e[8]=l,e[9]=i):i=e[9],i}function so(t,e){return a.jsxs("div",{className:X("flex items-center gap-2 rounded px-1 py-0.5",t.tone==="del"&&"bg-destructive/5",t.tone==="add"&&"bg-success/5"),children:[a.jsx("div",{className:X("h-2 w-4 shrink-0 animate-pulse rounded-sm bg-muted",t.tone==="del"&&"bg-destructive/20",t.tone==="add"&&"bg-success/25")}),a.jsx("div",{className:X("h-2 animate-pulse rounded-sm bg-muted",t.width,t.tone==="del"&&"bg-destructive/20",t.tone==="add"&&"bg-success/25")})]},e)}const sr={readOnly:!0,renderSideBySide:!1,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:12},no={...sr,lineNumbersMinChars:3,lineDecorationsWidth:4,folding:!1,glyphMargin:!1,renderOverviewRuler:!1};function ao(t){const e=I.c(11),{diff:s,emptyMessage:r,rowClassName:n,onDiscardFile:o,hideFileRows:d,editorHeight:l}=t,i=r===void 0?"No file changes in the working tree":r,u=n===void 0?"px-6":n,c=d===void 0?!1:d,h=l===void 0?"380px":l,[f,p]=V.useState(null),[b,m]=V.useState(null);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=eo(),e[0]=g):g=e[0];const x=g;if(!s||Object.keys(s.diffs).length===0){let y;return e[1]!==i?(y=a.jsx("div",{className:"flex items-center justify-center py-10 text-sm text-muted-foreground",children:i}),e[1]=i,e[2]=y):y=e[2],y}let P;return e[3]!==s.diffs||e[4]!==b||e[5]!==h||e[6]!==f||e[7]!==c||e[8]!==o||e[9]!==u?(P=a.jsx("div",{className:"divide-y",children:Object.entries(s.diffs).map(y=>{const[v,w]=y,{from:j,to:N}=w,C=f===v,R=j===null,k=N===null,A=v.startsWith("/")?v.slice(1):v,S=A.lastIndexOf("/"),F=S>=0?A.slice(S+1):A,$=S>=0?A.slice(0,S):null,T=Vl(v),_=R?"bg-success":k?"bg-destructive":"bg-warning";return c?a.jsx("div",{children:a.jsx(Bn,{original:j??"",modified:N??"",language:T,theme:x,height:h,loading:a.jsx(En,{height:h}),options:no})},v):a.jsxs("div",{children:[a.jsxs("div",{className:X("flex items-center gap-3 py-3 hover:bg-accent",u),children:[a.jsx("button",{type:"button",className:"flex h-4 w-4 shrink-0 items-center justify-center text-muted-foreground transition-transform hover:text-foreground",onClick:()=>p(C?null:v),children:a.jsx(Jn,{className:X("h-3.5 w-3.5 transition-transform",C&&"rotate-90")})}),a.jsx("div",{className:X("h-2.5 w-2.5 shrink-0 rounded-full",_)}),a.jsx(ya,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),a.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:F}),$&&a.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:$}),o?a.jsxs(js,{children:[a.jsx(vs,{asChild:!0,children:a.jsx("button",{type:"button",className:"flex h-6 w-6 shrink-0 items-center justify-center text-muted-foreground hover:bg-accent hover:text-foreground rounded-lg",children:a.jsx(Sr,{className:"h-3.5 w-3.5"})})}),a.jsx(ys,{align:"end",children:a.jsx(Gt,{className:"text-destructive focus:text-destructive",onSelect:()=>m(v),children:"Discard changes"})})]}):null]}),b===v&&o?a.jsxs("div",{className:X("flex items-center justify-between gap-3 border-t bg-destructive/5 py-2.5",u),children:[a.jsxs("span",{className:"text-xs text-destructive",children:["Discard all changes to"," ",a.jsx("span",{className:"font-medium",children:F}),"? This cannot be undone."]}),a.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[a.jsx(ve,{type:"button",variant:"ghost",size:"sm",onClick:()=>m(null),children:"Cancel"}),a.jsx(ve,{type:"button",variant:"destructive",size:"sm",onClick:()=>{m(null),o(v)},children:"Discard"})]})]}):null,C&&a.jsx("div",{className:"border-t",children:a.jsx(Bn,{original:j??"",modified:N??"",language:T,theme:x,height:h,loading:a.jsx(En,{height:h}),options:sr})})]},v)})}),e[3]=s.diffs,e[4]=b,e[5]=h,e[6]=f,e[7]=c,e[8]=o,e[9]=u,e[10]=P):P=e[10],P}function ro(t){if(t.kind!=="block"||t.isSiteApp||!t.blockKey)return null;const e=(t.toJson??t.fromJson)?.__resolveType;return typeof e=="string"&&Jl(e)?t.blockKey:null}function lo(t){return t.kind!=="page"?!0:!t.pagePath||Lt(t.pagePath).length>0}function io(t,e){try{return Wl(t,vl,e)}catch{return null}}function oo(t,e,s){if(!e)return;const r=xl(e,t);if(!r)return null;if(Lt(r.path).length===0||s?.path!==r.path)return r.path;const n=ln(r.path,s.params);return Lt(n).length===0?n:r.path}function co(t){return t.sectionKey&&!t.v8?io(t.previewServerUrl,t.sectionKey):ho(t.previewServerUrl,t.path)}function uo(t,e){if(t.kind!=="page")return"/";const s=t.pagePath;if(!s)return"";if(Lt(s).length===0)return s;if(e?.path!==s)return"";const r=ln(s,e.params);return Lt(r).length===0?r:""}function ho(t,e){const s=e.trim();if(!s||Lt(s).length>0)return null;try{const r=new URL(t),n=new URL(s.startsWith("/")?s:`/${s}`,r);return n.origin===r.origin?n:null}catch{return null}}function fo(t,e){return e?.kind==="pointer"&&e.link?hn(t.toString(),e.link):nr(t,e)}function nr(t,e){if(!e)return null;if(e.kind==="pointer")return hn(t.toString(),e.pointer);try{return new URL(`${t.pathname}${t.search}`,e.previewUrl).href}catch{return null}}function mo(t,e,s){return e===null?!1:t!=="other"||s?.kind==="sandbox"}function po(t,e){const s=e?t.kind==="page":t.kind!=="other";return{before:s&&t.status==="new"?"new":null,after:s&&t.status==="removed"?"removed":null}}const ar=V.createContext(!0),bo=["split","before","after","code"];function go(t){return bo.includes(t)}const rr={desktop:1280,mobile:412};function xo(t,e){const s=(o,d)=>t.unreadable?.includes(d)?e:o?`${JSON.stringify(o,null,2)}
2
- `:null,r=t.status==="new"?null:s(t.fromJson,"before"),n=t.status==="removed"?null:s(t.toJson,"after");return r===null&&n===null?{diffs:{}}:t.status==="edited"&&(r===null||n===null)?{diffs:{}}:{diffs:{[Cr(t.entry.name)]:{from:r,to:n}}}}function lr(t){const e=I.c(76),{change:s,diff:r,bodyPending:n,previewServerUrl:o,draft:d,lastPage:l,v8:i,onReady:u}=t,c=ye(),h=V.use(ar),f=ro(s),p=i?null:f,b=i?f:null,m=b?oo(b,i?.blocks,l):void 0,g=b!==null&&m===null,x=mo(s.kind,o,d)&&(b===null||typeof m=="string"),[P,y]=V.useState(null),v=x?P??"split":"code",[w,j]=V.useState("desktop"),[N,C]=V.useState(null),R=N??(b?m??"":uo(s,l));let k;e[0]!==s?(k=lo(s),e[0]=s,e[1]=k):k=e[1];const A=k,S=o?co({previewServerUrl:o,sectionKey:f,path:R,v8:!!i}):null,F=S?hn(S.toString(),Ql):null,$=S?nr(S,d):null,T=S?fo(S,d):null;let _;e[2]!==s||e[3]!==r?.diffs||e[4]!==c?(_=s.entry?xo(s,c("thread.publishCompare.sideUnreadable")):{diffs:Object.fromEntries(s.filepaths.flatMap(M=>{const ne=r?.diffs[M];return ne?[[M,ne]]:[]}))},e[2]=s,e[3]=r?.diffs,e[4]=c,e[5]=_):_=e[5];const O=_;let Z;e[6]!==O.diffs?(Z=Object.keys(O.diffs),e[6]=O.diffs,e[7]=Z):Z=e[7];const ae=Z.length>0;let H;e:{if(p!==null){H=null;break e}if(b!==null){const ne=R.trim();if(!ne){H=null;break e}H=Lt(ne).length>0?c("thread.publishCompare.dynamicHint",{template:ne}):c("thread.publishCompare.blockHint",{path:ne});break e}if(s.kind!=="page"){let ne;e[8]!==c?(ne=c("thread.publishCompare.globalHint"),e[8]=c,e[9]=ne):ne=e[9],H=ne;break e}let M;e[10]!==s.pagePath||e[11]!==c?(M=s.pagePath&&Lt(s.pagePath).length>0?c("thread.publishCompare.dynamicHint",{template:s.pagePath}):null,e[10]=s.pagePath,e[11]=c,e[12]=M):M=e[12],H=M}const L=H,z=po(s,!!i),[ee,W]=V.useState(vo);let B;e[13]===Symbol.for("react.memo_cache_sentinel")?(B=M=>W(ne=>ne.has(M)?ne:new Set(ne).add(M)),e[13]=B):B=e[13];const ie=B;let U;e[14]!==i?(U=M=>i?a.jsx(Po,{...M,onLoaded:ie}):a.jsx(jo,{...M}),e[14]=i,e[15]=U):U=e[15];const oe=U,se=(x?[z.before==="new"?null:F,z.after==="removed"?null:$].flatMap(M=>M?[fn(M,w)]:[]):[]).every(M=>ee.has(M));let D;e[16]!==u||e[17]!==se?(D=se&&u?M=>{M&&u()}:void 0,e[16]=u,e[17]=se,e[18]=D):D=e[18];const te=D,re=z.before==="new"?a.jsx(us,{icon:a.jsx(ka,{className:"size-5 text-brand"}),title:c("thread.publishCompare.newTitle"),description:c("thread.publishCompare.newDescription")}):oe({url:F,device:w,title:c("thread.publishCompare.before"),missing:c("thread.publishCompare.enterPath")}),he=z.after==="removed"?a.jsx(us,{icon:a.jsx(Ns,{className:"size-5 text-destructive"}),title:c("thread.publishCompare.removedTitle"),description:c("thread.publishCompare.removedDescription")}):oe({url:$,device:w,title:c("thread.publishCompare.after"),missing:c(S?"thread.publishCompare.draftUnavailable":"thread.publishCompare.enterPath")});let G;e[19]!==x||e[20]!==y||e[21]!==h||e[22]!==c||e[23]!==v?(G=x||h?a.jsx(xa,{value:v,onValueChange:M=>{go(M)&&y(M)},children:a.jsxs(ga,{className:"h-8 w-auto",variant:"pill",children:[x?a.jsxs(a.Fragment,{children:[a.jsx(_t,{value:"split",className:"px-3 text-xs",children:c("thread.publishCompare.sideBySide")}),a.jsx(_t,{value:"before",className:"px-3 text-xs",children:c("thread.publishCompare.before")}),a.jsx(_t,{value:"after",className:"px-3 text-xs",children:c("thread.publishCompare.after")})]}):null,h?a.jsx(_t,{value:"code",className:"px-3 text-xs",children:c("thread.publishCompare.code")}):null]})}):null,e[19]=x,e[20]=y,e[21]=h,e[22]=c,e[23]=v,e[24]=G):G=e[24];let pe;e[25]!==T||e[26]!==x||e[27]!==s.pagePath||e[28]!==w||e[29]!==R||e[30]!==A||e[31]!==p||e[32]!==j||e[33]!==C||e[34]!==c||e[35]!==v?(pe=x&&v!=="code"?a.jsxs(a.Fragment,{children:[p?null:A?a.jsx(kr,{value:R,onChange:M=>C(M.target.value),placeholder:s.pagePath??"/","aria-label":c("thread.publishCompare.pathLabel"),className:"h-8 w-56 font-mono text-xs"}):a.jsx("span",{className:"max-w-56 truncate px-1 font-mono text-xs text-muted-foreground",children:R}),a.jsxs("div",{className:"flex items-center rounded-lg border p-0.5",children:[a.jsx(Un,{active:w==="desktop",label:c("thread.publishCompare.desktop"),onClick:()=>j("desktop"),children:a.jsx(Gl,{className:"size-3.5"})}),a.jsx(Un,{active:w==="mobile",label:c("thread.publishCompare.mobile"),onClick:()=>j("mobile"),children:a.jsx(Xr,{className:"size-3.5"})})]}),T?a.jsxs("a",{href:T,target:"_blank",rel:"noopener noreferrer",className:"ml-auto flex items-center gap-1.5 text-xs text-muted-foreground transition-colors hover:text-foreground",children:[a.jsx(Nr,{className:"size-3.5"}),c("thread.publishCompare.openDraft")]}):null]}):null,e[25]=T,e[26]=x,e[27]=s.pagePath,e[28]=w,e[29]=R,e[30]=A,e[31]=p,e[32]=j,e[33]=C,e[34]=c,e[35]=v,e[36]=pe):pe=e[36];let Y;e[37]!==G||e[38]!==pe?(Y=a.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b bg-background px-4 py-2.5 max-md:pr-12",children:[G,pe]}),e[37]=G,e[38]=pe,e[39]=Y):Y=e[39];let E;e[40]!==x||e[41]!==L||e[42]!==v?(E=L&&x&&v!=="code"?a.jsx("p",{className:"border-b bg-background px-4 py-1.5 text-2xs text-muted-foreground",children:L}):null,e[40]=x,e[41]=L,e[42]=v,e[43]=E):E=e[43];let q;e[44]!==g||e[45]!==h||e[46]!==c?(q=g&&h?a.jsx("p",{className:"border-b bg-background px-4 py-1.5 text-2xs text-muted-foreground",children:c("thread.publishCompare.notOnAnyPage")}):null,e[44]=g,e[45]=h,e[46]=c,e[47]=q):q=e[47];let ce;e[48]!==o||e[49]!==h||e[50]!==c||e[51]!==b||e[52]!==m||e[53]!==v?(ce=v==="code"&&!h?b!==null&&m===void 0?a.jsx(ht,{className:"m-4 h-64 rounded"}):o===null?a.jsx(us,{icon:a.jsx(gs,{className:"size-5 text-muted-foreground"}),title:c("thread.publishCompare.previewNotReadyTitle"),description:c("thread.publishCompare.draftUnavailable")}):a.jsx(us,{icon:a.jsx(gs,{className:"size-5 text-muted-foreground"}),title:c("thread.publishCompare.noPreviewTitle"),description:c("thread.publishCompare.noPreviewDescription")}):null,e[48]=o,e[49]=h,e[50]=c,e[51]=b,e[52]=m,e[53]=v,e[54]=ce):ce=e[54];let we;e[55]!==n||e[56]!==ae||e[57]!==O||e[58]!==h||e[59]!==c||e[60]!==v?(we=v==="code"&&h?a.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto bg-background [scrollbar-width:thin]",children:ae?a.jsx(ao,{diff:O,hideFileRows:!0,editorHeight:"70vh"}):n?a.jsx(ht,{className:"m-4 h-64 rounded"}):a.jsx("p",{className:"px-4 py-6 text-xs text-muted-foreground",children:c("thread.publishPopover.detailsUnavailable")})}):null,e[55]=n,e[56]=ae,e[57]=O,e[58]=h,e[59]=c,e[60]=v,e[61]=we):we=e[61];let fe;e[62]!==he||e[63]!==re||e[64]!==x||e[65]!==c||e[66]!==v?(fe=x?a.jsxs("div",{className:X("flex min-h-0 flex-1 gap-3 p-3",v==="code"&&"hidden"),children:[a.jsx(zn,{label:c("thread.publishCompare.before"),hidden:v==="after",children:re}),a.jsx(zn,{label:c("thread.publishCompare.after"),highlight:!0,hidden:v==="before",children:he})]}):null,e[62]=he,e[63]=re,e[64]=x,e[65]=c,e[66]=v,e[67]=fe):fe=e[67];let Me;return e[68]!==te||e[69]!==Y||e[70]!==E||e[71]!==q||e[72]!==ce||e[73]!==we||e[74]!==fe?(Me=a.jsxs("div",{ref:te,className:"flex min-h-0 min-w-0 flex-1 flex-col bg-muted/40",children:[Y,E,q,ce,we,fe]}),e[68]=te,e[69]=Y,e[70]=E,e[71]=q,e[72]=ce,e[73]=we,e[74]=fe,e[75]=Me):Me=e[75],Me}function vo(){return new Set}function Un(t){const e=I.c(8),{active:s,label:r,onClick:n,children:o}=t,d=s&&"bg-accent text-foreground";let l;e[0]!==d?(l=X("flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:text-foreground",d),e[0]=d,e[1]=l):l=e[1];let i;return e[2]!==s||e[3]!==o||e[4]!==r||e[5]!==n||e[6]!==l?(i=a.jsx("button",{type:"button","aria-label":r,"aria-pressed":s,title:r,onClick:n,className:l,children:o}),e[2]=s,e[3]=o,e[4]=r,e[5]=n,e[6]=l,e[7]=i):i=e[7],i}function zn(t){const e=I.c(18),{label:s,highlight:r,hidden:n,children:o}=t,d=r===void 0?!1:r,i=(n===void 0?!1:n)&&"hidden";let u;e[0]!==i?(u=X("flex min-h-0 min-w-0 flex-1 flex-col gap-1.5",i),e[0]=i,e[1]=u):u=e[1];const c=d&&"bg-brand";let h;e[2]!==c?(h=X("size-1.5 rounded-full bg-muted-foreground/50",c),e[2]=c,e[3]=h):h=e[3];let f;e[4]!==h?(f=a.jsx("span",{className:h}),e[4]=h,e[5]=f):f=e[5];let p;e[6]!==s||e[7]!==f?(p=a.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 text-2xs font-medium text-muted-foreground",children:[f,s]}),e[6]=s,e[7]=f,e[8]=p):p=e[8];const b=d&&"border-brand/60";let m;e[9]!==b?(m=X("relative min-h-0 flex-1 overflow-hidden rounded-lg border bg-background",b),e[9]=b,e[10]=m):m=e[10];let g;e[11]!==o||e[12]!==m?(g=a.jsx("div",{className:m,children:o}),e[11]=o,e[12]=m,e[13]=g):g=e[13];let x;return e[14]!==g||e[15]!==u||e[16]!==p?(x=a.jsxs("div",{className:u,children:[p,g]}),e[14]=g,e[15]=u,e[16]=p,e[17]=x):x=e[17],x}function us(t){const e=I.c(10),{icon:s,title:r,description:n}=t;let o;e[0]!==s?(o=a.jsx("div",{className:"mb-1",children:s}),e[0]=s,e[1]=o):o=e[1];let d;e[2]!==r?(d=a.jsx("p",{className:"text-sm font-medium",children:r}),e[2]=r,e[3]=d):d=e[3];let l;e[4]!==n?(l=a.jsx("p",{className:"text-xs text-muted-foreground",children:n}),e[4]=n,e[5]=l):l=e[5];let i;return e[6]!==o||e[7]!==d||e[8]!==l?(i=a.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-1 px-6 text-center",children:[o,d,l]}),e[6]=o,e[7]=d,e[8]=l,e[9]=i):i=e[9],i}function yo(t,e){if(!t)return{visibility:"hidden",width:e};const s=Math.min(t.width/e,1);return{left:Math.max((t.width-e*s)/2,0),width:e,height:t.height/s,transform:`scale(${s})`,transformOrigin:"top left"}}function jo(t){const e=I.c(24),{url:s,device:r,title:n,missing:o}=t,[d,l]=tr(),[i,u]=V.useState(null);if(!s){let j;return e[0]!==o?(j=a.jsx("p",{className:"flex h-full items-center justify-center px-6 text-center text-xs text-muted-foreground",children:o}),e[0]=o,e[1]=j):j=e[1],j}let c;e[2]!==r||e[3]!==s?(c=fn(s,r),e[2]=r,e[3]=s,e[4]=c):c=e[4];const h=c,f=rr[r],p=d.width>0?Math.min(d.width/f,1):1,b=d.width>0?Math.max((d.width-f*p)/2,0):0;let m;e[5]!==h?(m=()=>u(h),e[5]=h,e[6]=m):m=e[6];const g=d.height>0?d.height/p:"100%",x=`scale(${p})`;let P;e[7]!==f||e[8]!==b||e[9]!==g||e[10]!==x?(P={left:b,width:f,height:g,transform:x,transformOrigin:"top left"},e[7]=f,e[8]=b,e[9]=g,e[10]=x,e[11]=P):P=e[11];let y;e[12]!==h||e[13]!==m||e[14]!==P||e[15]!==n?(y=a.jsx("iframe",{src:h,title:n,sandbox:"allow-scripts allow-same-origin",onLoad:m,className:"absolute top-0 border-0 bg-white",style:P},h),e[12]=h,e[13]=m,e[14]=P,e[15]=n,e[16]=y):y=e[16];let v;e[17]!==i||e[18]!==h?(v=i!==h?a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/60",children:a.jsx(Wt,{className:"size-5 motion-reduce:animate-none"})}):null,e[17]=i,e[18]=h,e[19]=v):v=e[19];let w;return e[20]!==l||e[21]!==y||e[22]!==v?(w=a.jsxs("div",{ref:l,className:"absolute inset-0",children:[y,v]}),e[20]=l,e[21]=y,e[22]=v,e[23]=w):w=e[23],w}function Po(t){const e=I.c(21),{url:s,device:r,title:n,missing:o,onLoaded:d}=t,[l,i]=tr(),[u,c]=V.useState(null),[h,f]=V.useState(null),p=l.width>0&&l.height>0;p&&(u?.width!==l.width||u?.height!==l.height)&&c(l);const b=p?l:u;if(!s){let w;return e[0]!==o?(w=a.jsx("p",{className:"flex h-full items-center justify-center px-6 text-center text-xs text-muted-foreground",children:o}),e[0]=o,e[1]=w):w=e[1],w}let m,g,x,P;if(e[2]!==b||e[3]!==r||e[4]!==d||e[5]!==i||e[6]!==h||e[7]!==n||e[8]!==s){const w=fn(s,r),j=rr[r];m=h?.src!==w;const N=[...h&&m?[h]:[],{src:w,logicalWidth:j}];g=i,x="absolute inset-0",P=N.map(C=>{const R=C.src===w&&m;return a.jsx("iframe",{src:C.src,title:n,"aria-hidden":R&&h?!0:void 0,sandbox:"allow-scripts allow-same-origin",onLoad:()=>{C.src===w&&(f(C),d?.(C.src))},className:X("absolute top-0 border-0 bg-white",R&&"pointer-events-none opacity-0"),style:yo(b,C.logicalWidth)},C.src)}),e[2]=b,e[3]=r,e[4]=d,e[5]=i,e[6]=h,e[7]=n,e[8]=s,e[9]=m,e[10]=g,e[11]=x,e[12]=P}else m=e[9],g=e[10],x=e[11],P=e[12];let y;e[13]!==m||e[14]!==h?(y=m?h?a.jsx(Wt,{className:"absolute right-2 top-2 size-4 text-muted-foreground motion-reduce:animate-none"}):a.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-background/60",children:a.jsx(Wt,{className:"size-5 motion-reduce:animate-none"})}):null,e[13]=m,e[14]=h,e[15]=y):y=e[15];let v;return e[16]!==g||e[17]!==x||e[18]!==P||e[19]!==y?(v=a.jsxs("div",{ref:g,className:x,children:[P,y]}),e[16]=g,e[17]=x,e[18]=P,e[19]=y,e[20]=v):v=e[20],v}const wo=/^Co-authored-by:\s*([^<\r\n]+?)(?:\s*<[^>\r\n]*>)?\s*$/im;function So(t){if(!t)return null;const e=wo.exec(t)?.[1]?.trim();return e||null}function ko(t){return/\[bot\]$/i.test(t)||/-bot$/i.test(t)}function No(t){const e=So(t.body);if(e)return e;const s=t.author.trim();return!s||ko(s)?null:s}function Co(t,e,s,r,n,o){return["cms-publish-bodies",t,e,s,r,n,o]}const Ao=6e4;function Ro(t,e){return e?null:t.files.map(s=>`${s.index}${s.working_dir} ${s.path}`).sort().join(`
3
- `)}function To(t,e,s){const r=I.c(6);let n;r[0]!==s||r[1]!==t||r[2]!==e?(n=Ut.decofile(`${t}/${e}/${s}`),r[0]=s,r[1]=t,r[2]=e,r[3]=n):n=r[3];let o;r[4]!==n?(o={queryKey:n,queryFn:Xs},r[4]=n,r[5]=o):o=r[5];const{data:d}=Rt(o);return d}function ir(t){const{orgSlug:e,virtualMcpId:s,branch:r,threadId:n,baseBranch:o,fastPreview:d,recoverSandbox:l}=t,i={orgSlug:e,virtualMcpId:s,branch:r,threadId:n},u=d?{fastPreview:!0}:void 0,c=V.useRef(null),h=async w=>{try{return await w()}catch(j){if(!l||!Ma(j))throw j;return c.current??=l(),await c.current,w()}},f=Yn({...La(i),queryFn:()=>h(()=>Oa(i))}),p=f.data,b=p.changedFiles??null,m=p.headSha??null,g=b?b.length>0:Fl(p)||Ll(p),x=Rt({queryKey:Co(e,s,r,o,m,Ro(p,d)),queryFn:()=>h(()=>Ml(i,p,o,u)),enabled:g,staleTime:d?Ao:0,gcTime:d?void 0:0,throwOnError:(w,j)=>!b&&j.state.data===void 0}),P=To(e,s,r),y=x.data??null,v=b?Xa({files:b,lookup:P,diff:y}):_i(y);return{status:p,summary:v,allPaths:b?b.map(w=>w.path):Object.keys(y?.diffs??{}),discardablePaths:d?null:new Set(p.files.map(w=>w.path)),changedFilesTotal:p.changedFilesTotal??v.count,changedFilesTruncated:p.changedFilesTruncated??!1,headSha:m,diff:y,bodiesPending:g&&x.isPending,bodiesFailed:x.isError,cardsPending:!b&&g&&x.isPending,refresh:()=>Promise.all([f.refetch(),d?null:x.refetch()])}}function Bo(t){const e=I.c(4);let s;e[0]!==t?(s=Ut.decofile(t),e[0]=t,e[1]=s):s=e[1];let r;e[2]!==s?(r={queryKey:s,queryFn:Xs},e[2]=s,e[3]=r):r=e[3];const{data:n}=Rt(r);return n}function Io(t,e){const s=I.c(5);let r;s[0]!==t||s[1]!==e?(r=e?Or(e,t):Ut.liveMeta("","no-scope"),s[0]=t,s[1]=e,s[2]=r):r=s[2];let n;s[3]!==r?(n={queryKey:r,queryFn:Xs},s[3]=r,s[4]=n):n=s[4];const{data:o}=Rt(n);return o}function gn(t){const e=I.c(27),{backend:s,cacheKey:r,scope:n}=t,o=Zn();let d;e[0]!==r?(d=Ut.contentChanges(r),e[0]=r,e[1]=d):d=e[1];let l;e[2]!==s.client||e[3]!==r||e[4]!==o?(l=()=>_r(o,s.client,r),e[2]=s.client,e[3]=r,e[4]=o,e[5]=l):l=e[5];let i;e[6]!==d||e[7]!==l?(i={queryKey:d,queryFn:l,staleTime:0},e[6]=d,e[7]=l,e[8]=i):i=e[8];const u=Yn(i),c=u.data,h=Mr(s,r,c),f=Bo(r),p=Io(s,n);let b;if(e[9]!==s.source||e[10]!==c.changes||e[11]!==f||e[12]!==p||e[13]!==h.data){const w=f&&p?Dl(f,p):null,j=f&&p?$l(f,p):null;b=Gi({changes:c.changes,sides:h.data??null,lookup:f,meta:p,hosted:s.source==="github",...w?{missingRules:w}:{},...j?{missingRuleUses:j}:{}}),e[9]=s.source,e[10]=c.changes,e[11]=f,e[12]=p,e[13]=h.data,e[14]=b}else b=e[14];const m=b;let g;e[15]!==c.changes?(g=Object.entries(c.changes).map(Do),e[15]=c.changes,e[16]=g):g=e[16];const x=m.count>0&&h.isPending,P=f??null;let y;e[17]!==u?(y=()=>u.refetch(),e[17]=u,e[18]=y):y=e[18];let v;return e[19]!==c||e[20]!==h.isError||e[21]!==m||e[22]!==g||e[23]!==x||e[24]!==P||e[25]!==y?(v={changes:c,summary:m,entries:g,sidesPending:x,sidesFailed:h.isError,blocks:P,refresh:y},e[19]=c,e[20]=h.isError,e[21]=m,e[22]=g,e[23]=x,e[24]=P,e[25]=y,e[26]=v):v=e[26],v}function Do(t){const[e,s]=t;return{name:e,version:s.version}}function $o(t){return["smart-review-verdict",t.orgSlug,t.virtualMcpId,t.branch,t.threadId,t.fastPreview?"fast-preview-upstream":"sandbox",t.signature,t.language]}function Fo(t){const e=I.c(27),{orgSlug:s,virtualMcpId:r,branch:n,threadId:o,fastPreview:d,status:l,diff:i,enabled:u}=t,[c]=ea(),{language:h}=c;let f,p,b;if(e[0]!==n||e[1]!==i||e[2]!==u||e[3]!==d||e[4]!==h||e[5]!==s||e[6]!==l||e[7]!==o||e[8]!==r){const w=i?dn(i):"";f=u&&!!n&&!!l&&!!i&&w!=="",b=Rt,p=$o({orgSlug:s,virtualMcpId:r,branch:n,threadId:o,fastPreview:d,signature:w,language:h}),e[0]=n,e[1]=i,e[2]=u,e[3]=d,e[4]=h,e[5]=s,e[6]=l,e[7]=o,e[8]=r,e[9]=f,e[10]=p,e[11]=b}else f=e[9],p=e[10],b=e[11];let m;e[12]!==n||e[13]!==i||e[14]!==h||e[15]!==s||e[16]!==l||e[17]!==o||e[18]!==r?(m=()=>Ol({orgSlug:s,virtualMcpId:r,branch:n,threadId:o},{status:l,diff:i,language:h}),e[12]=n,e[13]=i,e[14]=h,e[15]=s,e[16]=l,e[17]=o,e[18]=r,e[19]=m):m=e[19];let g;e[20]!==f||e[21]!==p||e[22]!==m?(g={queryKey:p,queryFn:m,enabled:f,staleTime:1/0,gcTime:6e5,retry:Lo},e[20]=f,e[21]=p,e[22]=m,e[23]=g):g=e[23];const x=b(g),P=x.data??null,y=f&&x.isFetching&&!x.data;let v;return e[24]!==P||e[25]!==y?(v={verdict:P,loading:y},e[24]=P,e[25]=y,e[26]=v):v=e[26],v}function Lo(t,e){return!Ma(e)&&t<1}function or(t){const e=I.c(30),{orgSlug:s,virtualMcpId:r,branch:n,threadId:o,fastPreview:d,status:l,diff:i,policy:u,judgeEnabled:c,paths:h}=t,f=c===void 0?!0:c,p=h===void 0?null:h;let b;e[0]!==i||e[1]!==f||e[2]!==u?(b=f&&_l(i,u),e[0]=i,e[1]=f,e[2]=u,e[3]=b):b=e[3];const m=b;let g;e[4]!==n||e[5]!==i||e[6]!==d||e[7]!==m||e[8]!==s||e[9]!==l||e[10]!==o||e[11]!==r?(g={orgSlug:s,virtualMcpId:r,branch:n,threadId:o,fastPreview:d,status:l,diff:i,enabled:m},e[4]=n,e[5]=i,e[6]=d,e[7]=m,e[8]=s,e[9]=l,e[10]=o,e[11]=r,e[12]=g):g=e[12];const{verdict:x,loading:P}=Fo(g);if(!i&&p){let j;e[13]!==p||e[14]!==u?(j=El(p,u),e[13]=p,e[14]=u,e[15]=j):j=e[15];let N;return e[16]!==j?(N={gate:j,ready:!1},e[16]=j,e[17]=N):N=e[17],N}if(!i){let j;return e[18]===Symbol.for("react.memo_cache_sentinel")?(j={gate:{allowed:!0,reason:null},ready:!1},e[18]=j):j=e[18],j}if(!m){let j;e[19]!==i||e[20]!==u?(j=Ul(i,u),e[19]=i,e[20]=u,e[21]=j):j=e[21];let N;return e[22]!==j?(N={gate:j,ready:!0},e[22]=j,e[23]=N):N=e[23],N}let y;e[24]!==P||e[25]!==x?(y=zl(x,P),e[24]=P,e[25]=x,e[26]=y):y=e[26];const v=!P;let w;return e[27]!==y||e[28]!==v?(w={gate:y,ready:v},e[27]=y,e[28]=v,e[29]=w):w=e[29],w}function Mo(t){return["main","master"].includes(t.trim().toLowerCase())}function Oo(t,e,s,r){return t===0?r("thread.publishPopover.publish"):s||!Mo(e)?t===1?r("thread.publishPopover.publishOne"):r("thread.publishPopover.publishCount",{count:t}):t===1?r("thread.publishPopover.publishOneInProduction"):r("thread.publishPopover.publishCountInProduction",{count:t})}const _o=2500;function Eo(t){const{selectedId:e,readyIds:s,lastShownId:r,liveIds:n}=t;return e===null||s.has(e)?e:r!==null&&r!==e&&n.includes(r)?r:e}function cr(t){const e=I.c(16),s=V.useRef(!1),r=ye();let n;e[0]!==t?(n=h=>{!h&&s.current||t.onOpenChange(h)},e[0]=t,e[1]=n):n=e[1];const o=n;let d;e[2]!==t.mode||e[3]!==r?(d=t.mode==="review"?r("thread.publishPopover.submitForReview"):r("thread.publishPopover.publish"),e[2]=t.mode,e[3]=r,e[4]=d):d=e[4];let l;e[5]!==d?(l=a.jsx(sa,{className:"sr-only",children:d}),e[5]=d,e[6]=l):l=e[6];let i;e[7]!==t?(i=a.jsx(Uo,{...t,publishLockRef:s}),e[7]=t,e[8]=i):i=e[8];let u;e[9]!==l||e[10]!==i?(u=a.jsxs(na,{"aria-describedby":void 0,className:"flex h-[calc(100dvh-2rem)] w-[calc(100vw-2rem)] max-w-none flex-col md:flex-row md:h-[calc(100dvh-6rem)] md:w-[calc(100vw-6rem)] gap-0 overflow-hidden p-0 sm:max-w-none",closeButtonClassName:"top-3.5 right-3.5",children:[l,i]}),e[9]=l,e[10]=i,e[11]=u):u=e[11];let c;return e[12]!==o||e[13]!==t.open||e[14]!==u?(c=a.jsx(ta,{open:t.open,onOpenChange:o,children:u}),e[12]=o,e[13]=t.open,e[14]=u,e[15]=c):c=e[15],c}function Uo(t){const e=I.c(3),s=zt(t.virtualMcpId,t.branch),r=s.kind==="protocol"&&s.source==="github";let n;return e[0]!==r||e[1]!==t?(n=Bi({open:t.open,hosted:r})?a.jsx(qo,{...t}):null,e[0]=r,e[1]=t,e[2]=n):n=e[2],n}const zo=4,Xt="flex h-[45%] min-h-0 min-w-0 shrink-0 md:h-auto md:flex-1";function es(t){const e=I.c(5),{list:s,pane:r}=t;let n;e[0]!==s?(n=a.jsx("div",{className:"flex min-h-0 w-full flex-1 flex-col max-md:border-t md:w-[380px] md:flex-none md:shrink-0 md:border-l md:[&>[data-publish-state]>:first-child]:pr-12",children:s}),e[0]=s,e[1]=n):n=e[1];let o;return e[2]!==r||e[3]!==n?(o=a.jsxs(a.Fragment,{children:[r,n]}),e[2]=r,e[3]=n,e[4]=o):o=e[4],o}function xn(){const t=I.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:X(Xt,"bg-muted/40 p-3"),children:a.jsx(ht,{className:"h-full w-full rounded-lg"})}),t[0]=e):e=t[0],e}function vn(t){const e=I.c(11),{mode:s,title:r,subLine:n,trailing:o}=t,d=s==="review"?ks:ja;let l;e[0]!==d?(l=a.jsx(d,{className:"size-4 shrink-0 text-muted-foreground"}),e[0]=d,e[1]=l):l=e[1];let i;e[2]!==l||e[3]!==r||e[4]!==o?(i=a.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[l,r,o]}),e[2]=l,e[3]=r,e[4]=o,e[5]=i):i=e[5];let u;e[6]!==n?(u=n?a.jsx("div",{className:"pl-6 text-xs text-muted-foreground",children:n}):null,e[6]=n,e[7]=u):u=e[7];let c;return e[8]!==i||e[9]!==u?(c=a.jsxs(a.Fragment,{children:[i,u]}),e[8]=i,e[9]=u,e[10]=c):c=e[10],c}function yn(t){const e=I.c(9),{draftPreviewUrl:s,t:r}=t;let n;e[0]!==s?(n=()=>{s&&window.open(s,"_blank","noopener,noreferrer")},e[0]=s,e[1]=n):n=e[1];const o=!s;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(gs,{className:"size-4"}),e[2]=d):d=e[2];let l;e[3]!==r?(l=r("thread.publishPopover.preview"),e[3]=r,e[4]=l):l=e[4];let i;return e[5]!==n||e[6]!==o||e[7]!==l?(i=a.jsxs(ve,{type:"button",variant:"outline",onClick:n,disabled:o,children:[d,l]}),e[5]=n,e[6]=o,e[7]=l,e[8]=i):i=e[8],i}function dr(t){const e=I.c(21),{mode:s,draftPreviewUrl:r}=t,n=ye();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(xn,{}),e[0]=o):o=e[0];let d;e[1]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(ht,{className:"h-3.5 w-48"}),e[1]=d):d=e[1];let l;e[2]!==s?(l=a.jsx(vn,{mode:s,title:d}),e[2]=s,e[3]=l):l=e[3];let i,u;e[4]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx(Yt,{children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Et,{}),a.jsx(Et,{}),a.jsx(Et,{})]})}),u=a.jsxs(a.Fragment,{children:[a.jsx(ht,{className:"h-3 w-20"}),a.jsx(ht,{className:"h-14 w-full rounded-lg"})]}),e[4]=i,e[5]=u):(i=e[4],u=e[5]);let c;e[6]!==r||e[7]!==n?(c=a.jsx(yn,{draftPreviewUrl:r,t:n}),e[6]=r,e[7]=n,e[8]=c):c=e[8];const h=s==="review"?"default":"brand";let f;e[9]!==s||e[10]!==n?(f=n(s==="review"?"thread.publishPopover.submitForReview":"thread.publishPopover.publish"),e[9]=s,e[10]=n,e[11]=f):f=e[11];let p;e[12]!==h||e[13]!==f?(p=a.jsx(ve,{type:"button",variant:h,className:"flex-1",disabled:!0,children:f}),e[12]=h,e[13]=f,e[14]=p):p=e[14];let b;e[15]!==c||e[16]!==p?(b=a.jsxs("div",{className:"flex gap-2",children:[c,p]}),e[15]=c,e[16]=p,e[17]=b):b=e[17];let m;return e[18]!==b||e[19]!==l?(m=a.jsx(es,{pane:o,list:a.jsx(Cs,{state:"loading",header:l,body:i,note:u,footer:b})}),e[18]=b,e[19]=l,e[20]=m):m=e[20],m}function Ho(t){const e=I.c(26),{mode:s,draftPreviewUrl:r,message:n,onRetry:o}=t,d=ye();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("div",{className:X(Xt,"bg-muted/40")}),e[0]=l):l=e[0];let i;e[1]!==d?(i=d("thread.publishPopover.loadFailed"),e[1]=d,e[2]=i):i=e[2];let u;e[3]!==i?(u=a.jsx("span",{className:"truncate",children:i}),e[3]=i,e[4]=u):u=e[4];let c;e[5]!==s||e[6]!==u?(c=a.jsx(vn,{mode:s,title:u}),e[5]=s,e[6]=u,e[7]=c):c=e[7];let h;e[8]!==n?(h=a.jsx("p",{className:"px-4 py-6 text-xs text-destructive",children:n}),e[8]=n,e[9]=h):h=e[9];let f;e[10]!==r||e[11]!==d?(f=a.jsx(yn,{draftPreviewUrl:r,t:d}),e[10]=r,e[11]=d,e[12]=f):f=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(Ys,{className:"size-4"}),e[13]=p):p=e[13];let b;e[14]!==d?(b=d("thread.publishPopover.retry"),e[14]=d,e[15]=b):b=e[15];let m;e[16]!==o||e[17]!==b?(m=a.jsxs(ve,{type:"button",variant:"outline",className:"flex-1",onClick:o,children:[p,b]}),e[16]=o,e[17]=b,e[18]=m):m=e[18];let g;e[19]!==f||e[20]!==m?(g=a.jsxs("div",{className:"flex gap-2",children:[f,m]}),e[19]=f,e[20]=m,e[21]=g):g=e[21];let x;return e[22]!==g||e[23]!==c||e[24]!==h?(x=a.jsx(es,{pane:l,list:a.jsx(Cs,{state:"ready",header:c,body:h,footer:g})}),e[22]=g,e[23]=c,e[24]=h,e[25]=x):x=e[25],x}function qo(t){const e=I.c(3),s=t.mode??"publish";let r;return e[0]!==s||e[1]!==t?(r=a.jsx(aa,{children:n=>{const{reset:o}=n;return a.jsx(ra,{fallback:d=>{const{error:l,resetError:i}=d;return a.jsx(Ho,{mode:s,draftPreviewUrl:t.draftPreviewUrl,message:l?.message??"",onRetry:()=>{o(),i()}})},children:a.jsx(V.Suspense,{fallback:a.jsx(dr,{mode:s,draftPreviewUrl:t.draftPreviewUrl}),children:a.jsx(Ko,{...t})})})}}),e[0]=s,e[1]=t,e[2]=r):r=e[2],r}function Ko(t){const e=I.c(13),s=zt(t.virtualMcpId,t.branch);let r;e[0]!==t.branch||e[1]!==t.orgSlug||e[2]!==t.virtualMcpId?(r={orgSlug:t.orgSlug,virtualMcpId:t.virtualMcpId,branch:t.branch},e[0]=t.branch,e[1]=t.orgSlug,e[2]=t.virtualMcpId,e[3]=r):r=e[3];const n=Zs(r);if(s.kind==="protocol"&&n){let d;return e[4]!==s||e[5]!==n||e[6]!==t?(d=s.source==="sandbox"?a.jsx(Wo,{...t,backend:s,cacheKey:n}):a.jsx(Go,{...t,backend:s,cacheKey:n}),e[4]=s,e[5]=n,e[6]=t,e[7]=d):d=e[7],d}if(s.kind!=="legacy"){const d=t.mode??"publish";let l;return e[8]!==t.draftPreviewUrl||e[9]!==d?(l=a.jsx(dr,{mode:d,draftPreviewUrl:t.draftPreviewUrl}),e[8]=t.draftPreviewUrl,e[9]=d,e[10]=l):l=e[10],l}let o;return e[11]!==t?(o=a.jsx(Vo,{...t}),e[11]=t,e[12]=o):o=e[12],o}function Vo(t){const e=I.c(52),s=Zt()?.taskId??null;let r;e[0]!==t.baseBranch||e[1]!==t.branch||e[2]!==t.fastPreview||e[3]!==t.orgSlug||e[4]!==t.recoverSandbox||e[5]!==t.virtualMcpId||e[6]!==s?(r={orgSlug:t.orgSlug,virtualMcpId:t.virtualMcpId,branch:t.branch,threadId:s,baseBranch:t.baseBranch,fastPreview:t.fastPreview,recoverSandbox:t.recoverSandbox},e[0]=t.baseBranch,e[1]=t.branch,e[2]=t.fastPreview,e[3]=t.orgSlug,e[4]=t.recoverSandbox,e[5]=t.virtualMcpId,e[6]=s,e[7]=r):r=e[7];const n=ir(r),o=t.mode!=="review";let d;e[8]!==t.branch||e[9]!==t.fastPreview||e[10]!==t.orgSlug||e[11]!==t.publishPolicy||e[12]!==t.virtualMcpId||e[13]!==n.allPaths||e[14]!==n.diff||e[15]!==n.status||e[16]!==o||e[17]!==s?(d={orgSlug:t.orgSlug,virtualMcpId:t.virtualMcpId,branch:t.branch,threadId:s,fastPreview:t.fastPreview,status:n.status,diff:n.diff,paths:n.allPaths,policy:t.publishPolicy,judgeEnabled:o},e[8]=t.branch,e[9]=t.fastPreview,e[10]=t.orgSlug,e[11]=t.publishPolicy,e[12]=t.virtualMcpId,e[13]=n.allPaths,e[14]=n.diff,e[15]=n.status,e[16]=o,e[17]=s,e[18]=d):d=e[18];const{gate:l}=or(d),i=n.discardablePaths;let u;e[19]!==i?(u=P=>i===null||P.every(y=>i.has(y)),e[19]=i,e[20]=u):u=e[20];const c=u;let h;e[21]!==c?(h=P=>c(P.filepaths),e[21]=c,e[22]=h):h=e[22];let f;e[23]!==c||e[24]!==n.allPaths||e[25]!==n.changedFilesTruncated?(f=!n.changedFilesTruncated&&c(n.allPaths),e[23]=c,e[24]=n.allPaths,e[25]=n.changedFilesTruncated,e[26]=f):f=e[26];let p;e[27]!==t.branch||e[28]!==n.status?(p=un(n.status)??t.branch,e[27]=t.branch,e[28]=n.status,e[29]=p):p=e[29];const b=n.headSha??void 0;let m;e[30]!==t.fastPreview||e[31]!==n.diff?(m=!t.fastPreview&&n.diff?{expectedDiffSignature:dn(n.diff)}:{},e[30]=t.fastPreview,e[31]=n.diff,e[32]=m):m=e[32];let g;e[33]!==l||e[34]!==n.allPaths||e[35]!==n.bodiesFailed||e[36]!==n.bodiesPending||e[37]!==n.cardsPending||e[38]!==n.changedFilesTotal||e[39]!==n.changedFilesTruncated||e[40]!==n.diff||e[41]!==n.refresh||e[42]!==n.summary||e[43]!==h||e[44]!==f||e[45]!==p||e[46]!==b||e[47]!==m?(g={summary:n.summary,allPaths:n.allPaths,canDiscard:h,canDiscardAll:f,changedFilesTotal:n.changedFilesTotal,changedFilesTruncated:n.changedFilesTruncated,diff:n.diff,bodiesPending:n.bodiesPending,bodiesFailed:n.bodiesFailed,cardsPending:n.cardsPending,refresh:n.refresh,gate:l,headBranch:p,expectedHeadSha:b,...m,hosted:!1,otherWork:!1},e[33]=l,e[34]=n.allPaths,e[35]=n.bodiesFailed,e[36]=n.bodiesPending,e[37]=n.cardsPending,e[38]=n.changedFilesTotal,e[39]=n.changedFilesTruncated,e[40]=n.diff,e[41]=n.refresh,e[42]=n.summary,e[43]=h,e[44]=f,e[45]=p,e[46]=b,e[47]=m,e[48]=g):g=e[48];let x;return e[49]!==t||e[50]!==g?(x=a.jsx(jn,{...t,source:g}),e[49]=t,e[50]=g,e[51]=x):x=e[51],x}function ur(t,e){return{summary:t.summary,allPaths:[],canDiscard:()=>!0,canDiscardAll:!0,changedFilesTotal:t.summary.count,changedFilesTruncated:!1,diff:null,bodiesPending:t.sidesPending,bodiesFailed:t.sidesFailed,cardsPending:!1,refresh:t.refresh,protocol:{backend:e,entries:t.entries},v8:{blocks:t.blocks}}}function Go(t){const e=I.c(24),{backend:s,cacheKey:r,...n}=t,o=gn({backend:s,cacheKey:r,scope:{orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch}}),d=s.source==="github",l=Ut.hostedPublishReview(n.orgSlug,n.virtualMcpId,n.branch);let i;e[0]!==n.branch||e[1]!==n.orgSlug||e[2]!==n.virtualMcpId?(i=()=>jl({orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch}),e[0]=n.branch,e[1]=n.orgSlug,e[2]=n.virtualMcpId,e[3]=i):i=e[3];let u;e[4]!==d||e[5]!==l||e[6]!==i?(u={queryKey:l,queryFn:i,enabled:d,staleTime:0},e[4]=d,e[5]=l,e[6]=i,e[7]=u):u=e[7];const c=Rt(u);let h;e[8]!==s||e[9]!==o?(h=ur(o,s),e[8]=s,e[9]=o,e[10]=h):h=e[10];let f;e[11]===Symbol.for("react.memo_cache_sentinel")?(f={allowed:!0,reason:null},e[11]=f):f=e[11];let p;e[12]!==c.data?.alsoChanged?(p=c.data?.alsoChanged??[],e[12]=c.data?.alsoChanged,e[13]=p):p=e[13];let b;e[14]!==p?(b=new Set(p),e[14]=p,e[15]=b):b=e[15];let m;e[16]!==d||e[17]!==n.branch||e[18]!==h||e[19]!==b?(m={...h,gate:f,headBranch:n.branch,hosted:d,alsoChanged:b,otherWork:!1},e[16]=d,e[17]=n.branch,e[18]=h,e[19]=b,e[20]=m):m=e[20];let g;return e[21]!==n||e[22]!==m?(g=a.jsx(jn,{...n,source:m}),e[21]=n,e[22]=m,e[23]=g):g=e[23],g}function Wo(t){const e=I.c(58);let s,r,n;e[0]!==t?({backend:s,cacheKey:r,...n}=t,e[0]=t,e[1]=s,e[2]=r,e[3]=n):(s=e[1],r=e[2],n=e[3]);const o=Zt()?.taskId??null;let d;e[4]!==n.branch||e[5]!==n.orgSlug||e[6]!==n.virtualMcpId?(d={orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch},e[4]=n.branch,e[5]=n.orgSlug,e[6]=n.virtualMcpId,e[7]=d):d=e[7];let l;e[8]!==s||e[9]!==r||e[10]!==d?(l={backend:s,cacheKey:r,scope:d},e[8]=s,e[9]=r,e[10]=d,e[11]=l):l=e[11];const i=gn(l);let u;e[12]!==n.baseBranch||e[13]!==n.branch||e[14]!==n.fastPreview||e[15]!==n.orgSlug||e[16]!==n.recoverSandbox||e[17]!==n.virtualMcpId||e[18]!==o?(u={orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,threadId:o,baseBranch:n.baseBranch,fastPreview:n.fastPreview,recoverSandbox:n.recoverSandbox},e[12]=n.baseBranch,e[13]=n.branch,e[14]=n.fastPreview,e[15]=n.orgSlug,e[16]=n.recoverSandbox,e[17]=n.virtualMcpId,e[18]=o,e[19]=u):u=e[19];const c=ir(u),h=n.mode!=="review";let f;e[20]!==c.allPaths||e[21]!==c.diff||e[22]!==c.status||e[23]!==n.branch||e[24]!==n.fastPreview||e[25]!==n.orgSlug||e[26]!==n.publishPolicy||e[27]!==n.virtualMcpId||e[28]!==h||e[29]!==o?(f={orgSlug:n.orgSlug,virtualMcpId:n.virtualMcpId,branch:n.branch,threadId:o,fastPreview:n.fastPreview,status:c.status,diff:c.diff,paths:c.allPaths,policy:n.publishPolicy,judgeEnabled:h},e[20]=c.allPaths,e[21]=c.diff,e[22]=c.status,e[23]=n.branch,e[24]=n.fastPreview,e[25]=n.orgSlug,e[26]=n.publishPolicy,e[27]=n.virtualMcpId,e[28]=h,e[29]=o,e[30]=f):f=e[30];const{gate:p}=or(f);let b;if(e[31]!==c.allPaths||e[32]!==i){let N;e[34]!==i?(N=C=>{const R=mn(C);return R===null?!cn(C):!Object.hasOwn(i.changes.changes,R)},e[34]=i,e[35]=N):N=e[35],b=c.allPaths.some(N),e[31]=c.allPaths,e[32]=i,e[33]=b}else b=e[33];const m=b;let g;e[36]!==s||e[37]!==i?(g=ur(i,s),e[36]=s,e[37]=i,e[38]=g):g=e[38];let x;e[39]!==c||e[40]!==i?(x=()=>Promise.all([i.refresh(),c.refresh()]),e[39]=c,e[40]=i,e[41]=x):x=e[41];let P;e[42]!==c.status||e[43]!==n.branch?(P=un(c.status)??n.branch,e[42]=c.status,e[43]=n.branch,e[44]=P):P=e[44];const y=c.headSha??void 0;let v;e[45]!==c.diff?(v=c.diff?{expectedDiffSignature:dn(c.diff)}:{},e[45]=c.diff,e[46]=v):v=e[46];let w;e[47]!==p||e[48]!==m||e[49]!==y||e[50]!==v||e[51]!==g||e[52]!==x||e[53]!==P?(w={...g,refresh:x,gate:p,headBranch:P,expectedHeadSha:y,...v,hosted:!1,otherWork:m},e[47]=p,e[48]=m,e[49]=y,e[50]=v,e[51]=g,e[52]=x,e[53]=P,e[54]=w):w=e[54];let j;return e[55]!==n||e[56]!==w?(j=a.jsx(jn,{...n,source:w}),e[55]=n,e[56]=w,e[57]=j):j=e[57],j}function jn(t){const e=I.c(131),{source:s,publishLockRef:r,onOpenChange:n,mode:o,fastPreview:d,orgSlug:l,virtualMcpId:i,branch:u,baseBranch:c,repoTarget:h,owner:f,repo:p,draftPreviewUrl:b,destinationHost:m,previewServerUrl:g,compareDraft:x,lastPublishedPr:P,onRequestApproval:y,openPullRequest:v,onPullRequestChanged:w,onPublished:j,notLive:N}=t,C=o===void 0?"publish":o,R=P===void 0?null:P,k=v===void 0?null:v,A=N===void 0?!1:N,S=ye(),[F]=ea(),{language:$}=F,T=Zt()?.taskId??null,{data:_}=Ps.useSession(),O=oa(ca(l,i,u)),{allPaths:Z,changedFilesTotal:ae,changedFilesTruncated:H,diff:L,bodiesFailed:z,refresh:ee,gate:W,hosted:B,otherWork:ie}=s;let U;e[0]!==x||e[1]!==s.bodiesPending||e[2]!==s.cardsPending||e[3]!==s.summary?(U={summary:s.summary,cardsPending:s.cardsPending,bodiesPending:s.bodiesPending,compareDraft:x},e[0]=x,e[1]=s.bodiesPending,e[2]=s.cardsPending,e[3]=s.summary,e[4]=U):U=e[4];const oe=U;let J;e[5]!==B?(J={hosted:B},e[5]=B,e[6]=J):J=e[6];const se=Ti(oe,J),{summary:D,cardsPending:te,bodiesPending:re,compareDraft:he}=se.shown,[G,pe]=V.useState(null),[Y,E]=V.useState(!1),[q,ce]=V.useState(Qo);let we;e[7]===Symbol.for("react.memo_cache_sentinel")?(we=Q=>ce(be=>be.has(Q)?be:new Set(be).add(Q)),e[7]=we):we=e[7];const fe=we,[Me,M]=V.useState(null);let ne;e[8]===Symbol.for("react.memo_cache_sentinel")?(ne=[],e[8]=ne):ne=e[8];const[_e,Oe]=V.useState(ne);let Ee;e[9]!==s.v8?(Ee=Q=>{M(Q),Oe(be=>[Q,...be.filter(me=>me!==Q)]),s.v8&&setTimeout(()=>fe(Q),_o)},e[9]=s.v8,e[10]=Ee):Ee=e[10];const ft=Ee,[tt,je]=V.useState(null);let Ie;e[11]!==G||e[12]!==D?(Ie=Ui(G,qi(D)),e[11]=G,e[12]=D,e[13]=Ie):Ie=e[13];const Fe=Ie,De=[...D.pages,...D.blocks,...D.other],Pe=De.find(Q=>Be(Q)===Me)??De[0]??null,$e=Pe?Be(Pe):null,Se=[...new Set([...$e?[$e]:[],..._e,...De.map(Be)])].filter(Q=>De.some(be=>Be(be)===Q)).slice(0,zo),Le=!!s.v8,[st,mt]=V.useState(null),Re=Le?Eo({selectedId:$e,readyIds:q,lastShownId:st,liveIds:Se}):$e;Le&&Re===$e&&Re!==st&&mt(Re);const de=C==="review"&&!B,K=te?"loading":re?"manifest":"ready",xe=k?.state==="open",ke=s.headBranch,Ne=_?.user;let Ce;e[14]!==Ne?(Ce=qa(Ne),e[14]=Ne,e[15]=Ce):Ce=e[15];let Ue;e[16]!==s.expectedDiffSignature?(Ue=s.expectedDiffSignature?{expectedDiffSignature:s.expectedDiffSignature}:{},e[16]=s.expectedDiffSignature,e[17]=Ue):Ue=e[17];let nt;e[18]!==c||e[19]!==u||e[20]!==d||e[21]!==l||e[22]!==f||e[23]!==p||e[24]!==h||e[25]!==s.expectedHeadSha||e[26]!==s.headBranch||e[27]!==Ce||e[28]!==Ue||e[29]!==T||e[30]!==i?(nt={orgSlug:l,virtualMcpId:i,branch:u,threadId:T,fastPreview:d,baseBranch:c,target:h,owner:f,repo:p,headBranch:ke,coAuthor:Ce,expectedHeadSha:s.expectedHeadSha,...Ue},e[18]=c,e[19]=u,e[20]=d,e[21]=l,e[22]=f,e[23]=p,e[24]=h,e[25]=s.expectedHeadSha,e[26]=s.headBranch,e[27]=Ce,e[28]=Ue,e[29]=T,e[30]=i,e[31]=nt):nt=e[31];const pt=nt,bt=de?"review":"publish",We=_?.user?.name;let Qe;e[32]!==Z||e[33]!==m||e[34]!==B||e[35]!==Fe||e[36]!==n||e[37]!==j||e[38]!==w||e[39]!==r||e[40]!==ee||e[41]!==s.protocol||e[42]!==bt||e[43]!==We||e[44]!==pt?(Qe={mode:bt,target:pt,note:Fe,allPaths:Z,destinationHost:m,publishLockRef:r,onOpenChange:n,refresh:ee,onPullRequestChanged:w,onPublished:j,hosted:B,authorName:We,protocol:s.protocol},e[32]=Z,e[33]=m,e[34]=B,e[35]=Fe,e[36]=n,e[37]=j,e[38]=w,e[39]=r,e[40]=ee,e[41]=s.protocol,e[42]=bt,e[43]=We,e[44]=pt,e[45]=Qe):Qe=e[45];const{isPublishing:Ae,publishError:at,publishErrorDetail:rt,submit:gt,discardChange:Tt,discardAll:xt}=Sl(Qe),Je=fa(l,i).phase==="saving",Xe=B&&A&&D.count===0,Ye=D.count>0||ie||Xe,Bt=!Ae&&Ye&&(de||W.allowed);let lt;e[46]!==c||e[47]!==de||e[48]!==Xe||e[49]!==s.v8||e[50]!==D.count||e[51]!==S?(lt=de?D.count===0?S("thread.publishPopover.submitForReview"):D.count===1?S("thread.publishPopover.submitOneForReview"):S("thread.publishPopover.submitCountForReview",{count:D.count}):Xe?S("thread.publishPopover.notLive"):Oo(D.count,c,!!s.v8,S),e[46]=c,e[47]=de,e[48]=Xe,e[49]=s.v8,e[50]=D.count,e[51]=S,e[52]=lt):lt=e[52];const vt=lt;let it;e:{if(de&&xe){let me;e[53]!==k.number||e[54]!==S?(me=S("thread.publishPopover.updatesPullRequest",{number:k.number}),e[53]=k.number,e[54]=S,e[55]=me):me=e[55],it=me;break e}const Q=R;if(!Q?.mergedAt){it=null;break e}let be;if(e[56]!==$||e[57]!==Q||e[58]!==S){const me=Ar(new Date(Q.mergedAt),$),Te=No(Q);be=Te?S("thread.publishPopover.lastPublishedBy",{when:me,name:Te}):S("thread.publishPopover.lastPublished",{when:me}),e[56]=$,e[57]=Q,e[58]=S,e[59]=be}else be=e[59];it=be}const It=it;let Dt;e[60]!==de||e[61]!==D.count||e[62]!==S?(Dt=de?S("thread.publishPopover.submitForReview"):D.count===1?S("thread.publishPopover.publishOne"):D.count>1?S("thread.publishPopover.publishCount",{count:D.count}):S("thread.publishPopover.publish"),e[60]=de,e[61]=D.count,e[62]=S,e[63]=Dt):Dt=e[63];const Mt=Dt,$t=(Q,be)=>be.length===0?null:a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("div",{className:"px-0.5 text-2xs font-medium text-muted-foreground",children:Q}),be.map(me=>{const Te=Be(me);return a.jsx(er,{change:me,bodyPending:re,selected:Pe!==null&&Be(Pe)===Te,onSelect:()=>ft(Te),confirming:tt===Te,onConfirmingChange:ge=>je(ge?Te:null),onDiscard:s.canDiscard(me)?()=>{Tt(me)}:void 0,isPublishing:Ae,isDiscarding:Je,v8:!!s.v8,alsoChangedOnMain:!!s.alsoChanged&&s.alsoChanged.has(me.entry?.name??me.blockKey??"")},Te)})]});let Ze;e:{if(de||!Ye){Ze=null;break e}if(W.pending){let Te;e[64]===Symbol.for("react.memo_cache_sentinel")?(Te=a.jsx(Wt,{className:"size-3.5 motion-reduce:animate-none"}),e[64]=Te):Te=e[64];let ge;e[65]!==S?(ge=S("thread.publishPopover.reviewing"),e[65]=S,e[66]=ge):ge=e[66];let Ct;e[67]!==ge?(Ct=a.jsxs("div",{className:"flex items-center gap-2 border-t px-4 py-2.5 text-xs text-muted-foreground",children:[Te,ge]}),e[67]=ge,e[68]=Ct):Ct=e[68],Ze=Ct;break e}if(W.allowed){Ze=null;break e}let Q;e[69]===Symbol.for("react.memo_cache_sentinel")?(Q=a.jsx(ia,{className:"mt-0.5 size-3.5 shrink-0"}),e[69]=Q):Q=e[69];let be;e[70]!==W.reason||e[71]!==S?(be=W.reason??S("thread.publishPopover.needsReviewGeneric"),e[70]=W.reason,e[71]=S,e[72]=be):be=e[72];let me;e[73]!==be?(me=a.jsxs("div",{className:"flex items-start gap-2 border-t px-4 py-2.5 text-xs text-warning",children:[Q,a.jsx("span",{children:be})]}),e[73]=be,e[74]=me):me=e[74],Ze=me}const yt=Ze;let ot;e[75]!==xt||e[76]!==Y||e[77]!==Je||e[78]!==Ae||e[79]!==s.canDiscardAll||e[80]!==D.count||e[81]!==S?(ot=D.count<=1||!s.canDiscardAll?null:a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:"ml-auto shrink-0 text-2xs text-muted-foreground transition-colors hover:text-destructive disabled:opacity-50",onClick:()=>E(!0),disabled:Ae||Je,children:S("thread.publishPopover.discardAll")}),a.jsx(Qs,{open:Y,onOpenChange:E,children:a.jsxs(Ws,{children:[a.jsxs(qs,{children:[a.jsx(zs,{children:S("thread.publishPopover.discardAllTitle")}),a.jsx(Hs,{children:S("thread.publishPopover.discardAllConfirm")})]}),a.jsxs(Gs,{children:[a.jsx(Ks,{children:S("thread.publishDialog.cancel")}),a.jsx(Vs,{onClick:()=>{xt()},disabled:Je,className:X(la({variant:"destructive"})),children:S("thread.publishPopover.discardAll")})]})]})})]}),e[75]=xt,e[76]=Y,e[77]=Je,e[78]=Ae,e[79]=s.canDiscardAll,e[80]=D.count,e[81]=S,e[82]=ot):ot=e[82];const jt=ot,Pt=te?a.jsx(Yt,{children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Et,{}),a.jsx(Et,{})]})}):D.count===0&&ie?a.jsx("p",{className:"px-4 py-6 text-xs text-muted-foreground",children:S("thread.publishPopover.onlyOtherWork")}):Xe?a.jsxs("div",{className:"flex flex-col items-center gap-1 py-10 text-center",children:[a.jsx(ja,{className:"mb-1 size-5 text-muted-foreground"}),a.jsx("p",{className:"text-sm font-medium",children:S("thread.publishPopover.notLiveBody")}),a.jsx("p",{className:"text-xs text-muted-foreground",children:S("thread.publishPopover.notLiveHint")})]}):D.count===0?a.jsxs("div",{className:"flex flex-col items-center gap-1 py-10 text-center",children:[a.jsx(on,{className:"mb-1 size-5 text-success"}),a.jsx("p",{className:"text-sm font-medium",children:S(de?"thread.publishPopover.nothingToSubmit":"thread.publishPopover.everythingLive")}),a.jsx("p",{className:"text-xs text-muted-foreground",children:S(de?"thread.publishPopover.submitEmptyHint":"thread.publishPopover.emptyHint")})]}):a.jsxs(Yt,{children:[H?a.jsx("p",{className:"text-2xs text-muted-foreground",children:S("thread.publishPopover.showingFirst",{shown:D.count,total:ae})}):null,$t(S("thread.publishPopover.pagesGroup"),D.pages),$t(S("thread.publishPopover.blocksGroup"),D.blocks),$t(S("thread.publishPopover.otherGroup"),D.other),z?a.jsx("p",{className:"text-2xs text-muted-foreground",children:S("thread.publishPopover.detailsUnavailable")}):null,ie?a.jsx("p",{className:"text-2xs text-muted-foreground",children:S("thread.publishPopover.alsoOtherWork")}):null]}),wt=te?a.jsx(xn,{}):Pe?a.jsx("div",{className:X(Xt,"relative"),children:De.filter(Q=>Se.includes(Be(Q))).map(Q=>a.jsx("div",{className:X("absolute inset-0 flex",Le?Be(Q)===Re?"z-10":"pointer-events-none opacity-0":Be(Q)!==$e&&"hidden"),inert:Le&&Be(Q)!==Re,"aria-hidden":Le&&Be(Q)!==Re?!0:void 0,children:a.jsx(lr,{change:Q,diff:L,bodyPending:re,previewServerUrl:g,draft:he,lastPage:O,v8:s.v8,onReady:Le?()=>fe(Be(Q)):void 0})},Be(Q)))}):a.jsx("div",{className:X(Xt,"bg-muted/40")});let ze;e[83]!==vt?(ze=a.jsx("span",{className:"truncate",children:vt}),e[83]=vt,e[84]=ze):ze=e[84];let He;e[85]!==jt||e[86]!==C||e[87]!==It||e[88]!==ze?(He=a.jsx(vn,{mode:C,title:ze,subLine:It,trailing:jt}),e[85]=jt,e[86]=C,e[87]=It,e[88]=ze,e[89]=He):He=e[89];let qe;e[90]!==Ae||e[91]!==de||e[92]!==Fe||e[93]!==D.count||e[94]!==S?(qe=D.count===0?null:a.jsxs(a.Fragment,{children:[a.jsx("span",{className:"text-sm font-medium",children:S(de?"thread.publishPopover.reviewNote":"thread.publishPopover.versionNote")}),a.jsx(yl,{value:Fe,onChange:Q=>pe(Q.target.value),placeholder:S(de?"thread.publishPopover.reviewNotePlaceholder":"thread.publishPopover.versionNotePlaceholder"),rows:2,maxLength:kl,className:"resize-none text-sm",disabled:Ae})]}),e[90]=Ae,e[91]=de,e[92]=Fe,e[93]=D.count,e[94]=S,e[95]=qe):qe=e[95];let Ke;e[96]!==b||e[97]!==S?(Ke=a.jsx(yn,{draftPreviewUrl:b,t:S}),e[96]=b,e[97]=S,e[98]=Ke):Ke=e[98];let Ve;e[99]!==Bt||e[100]!==W||e[101]!==Ye||e[102]!==B||e[103]!==Ae||e[104]!==de||e[105]!==y||e[106]!==Mt||e[107]!==se||e[108]!==gt||e[109]!==S?(Ve=!de&&!B&&Ye&&!W.allowed&&!W.pending?a.jsx(ve,{type:"button",className:"flex-1",onClick:y,disabled:Ae,children:S("thread.publishPopover.requestApproval")}):a.jsxs(ve,{type:"button",variant:de?"default":"brand",className:"flex-1",onClick:()=>{se.hold(),gt().then(Q=>{Q===!1&&se.release()})},disabled:!Bt,children:[Ae?a.jsx(Wt,{className:"size-4 motion-reduce:animate-none"}):null,Ae?S(de?"thread.publishPopover.submitting":"thread.publishPopover.publishing"):Mt]}),e[99]=Bt,e[100]=W,e[101]=Ye,e[102]=B,e[103]=Ae,e[104]=de,e[105]=y,e[106]=Mt,e[107]=se,e[108]=gt,e[109]=S,e[110]=Ve):Ve=e[110];let Ge;e[111]!==Ke||e[112]!==Ve?(Ge=a.jsxs("div",{className:"flex gap-2",children:[Ke,Ve]}),e[111]=Ke,e[112]=Ve,e[113]=Ge):Ge=e[113];let ct;e[114]!==at||e[115]!==rt||e[116]!==S?(ct=at?a.jsxs("div",{children:[a.jsx("p",{className:"text-xs text-destructive",children:at}),rt?a.jsx(Er,{label:S("siteEditor.details"),detail:rt}):null]}):null,e[114]=at,e[115]=rt,e[116]=S,e[117]=ct):ct=e[117];let ue;e[118]!==Ge||e[119]!==ct?(ue=a.jsxs(a.Fragment,{children:[Ge,ct]}),e[118]=Ge,e[119]=ct,e[120]=ue):ue=e[120];let dt;e[121]!==Pt||e[122]!==yt||e[123]!==K||e[124]!==He||e[125]!==qe||e[126]!==ue?(dt=a.jsx(Cs,{state:K,header:He,body:Pt,note:qe,gate:yt,footer:ue}),e[121]=Pt,e[122]=yt,e[123]=K,e[124]=He,e[125]=qe,e[126]=ue,e[127]=dt):dt=e[127];let qt;return e[128]!==wt||e[129]!==dt?(qt=a.jsx(es,{pane:wt,list:dt}),e[128]=wt,e[129]=dt,e[130]=qt):qt=e[130],qt}function Qo(){return new Set}function Jo(t){if(!(t==="claiming"||t==="ready"||t==="failed"))return Xl[t].short}const Xo=new Set(["failure","timed_out","cancelled","action_required"]);function hr(t){return t.status==="completed"&&Xo.has(t.conclusion)}function Pn(t){return t.status==="queued"||t.status==="in_progress"}function ps(t){return t.isPending&&t.fetchStatus!=="idle"}function Yo(t){return{key:"view-change-request",label:t("thread.cmsActions.viewOnProvider"),action:"open-pr-page"}}function At(t,e,s){return e?[...t,Yo(s)]:t}function ut(t,e,s){return e.kind!=="ready"||e.behindBase<=0?t:[...t,{key:"get-latest",label:s("thread.cmsActions.getLatest"),action:"sync",tooltip:s("thread.cmsActions.getLatestTooltip")}]}function Hn(t){return{key:"submit-for-review",label:t("thread.headerActions.submitForReview"),action:"create-pr"}}function hs(t,e,s){if(e.filter(Pn).length===0)return t;const n=e.filter(o=>o.status==="completed").length;return{...t,tooltip:s("thread.cmsActions.checksRunning",{done:n,total:e.length})}}function Zo(t){const{lifecycle:e,branch:s,pr:r,checks:n,reviews:o,loading:d,t:l}=t;if(d)return{label:l("thread.headerActions.loading"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.loadingBranchTooltip"),menu:[]};switch(e.phase){case"idle":return{label:t.claimPhase&&Jo(t.claimPhase.kind)||l("thread.headerActions.startingSandbox"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.waitingForDaemonTooltip"),menu:[]};case"cloning":return{label:l("thread.headerActions.cloningRepo"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.cloningRepoTooltip"),menu:[]};case"clone-failed":return{label:l("thread.headerActions.cloneFailed"),disabled:!0,variant:"outline",tooltip:e.error||l("thread.headerActions.cloneFailedDefaultTooltip"),menu:[]};case"checking-out":return{label:l("thread.headerActions.switchingTo",{branch:e.to}),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.checkingOutTooltip",{branch:e.to}),menu:[]};case"installing":return{label:l("thread.headerActions.installingPackages"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.installingPackagesTooltip"),menu:[]};case"starting":{if(!(s.kind==="ready"&&(s.workingTreeDirty||s.aheadOfBase>0||s.unpushed>0))&&!t.noReviewableDiff)return{label:l("thread.headerActions.startingApp"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.startingAppTooltip"),menu:[]};break}}if(s.kind!=="ready")return{label:l("thread.headerActions.loadingBranch"),disabled:!0,loading:!0,variant:"outline",tooltip:l("thread.headerActions.waitingForBranchTooltip"),menu:[]};const i=s,u=i.unpushed>0&&!(r&&i.headSha&&r.headSha&&i.headSha===r.headSha);if(t.noReviewableDiff&&!r)return{label:l("thread.headerActions.upToDate"),disabled:!0,variant:"outline",tooltip:l("thread.headerActions.branchInSyncTooltip",{base:i.base}),menu:ut([],i,l)};if(i.workingTreeDirty||u)return{label:l("thread.cmsActions.reviewAndPublish"),action:"publish",variant:"brand",menu:ut(At([Hn(l)],r,l),i,l)};if(za("no local work — checking PR/sync state",{workingTreeDirty:i.workingTreeDirty,unpushed:i.unpushed,aheadOfBase:i.aheadOfBase,behindBase:i.behindBase,branch:i.branch,base:i.base,prMerged:r?.merged??null,prState:r?.state??null}),r?.merged)return!!i.headSha&&!!r.headSha&&i.headSha!==r.headSha?{label:l("thread.headerActions.continue"),action:"create-pr",variant:"special",tooltip:l("thread.headerActions.openNewPrTooltip"),menu:ut(At([],r,l),i,l)}:{label:l("thread.headerActions.upToDate"),disabled:!0,variant:"outline",tooltip:l("thread.headerActions.prMergedTooltip",{prNumber:String(r.number),base:r.base}),menu:ut(At([],r,l),i,l)};if(i.aheadOfBase>0){if(r&&r.state==="closed"&&!r.merged)return{label:l("thread.headerActions.reopenPr"),action:"reopen",variant:"default",tooltip:l("thread.headerActions.reopenPrTooltip",{prNumber:String(r.number)}),menu:ut(At([],r,l),i,l)};if(!r)return{label:l("thread.cmsActions.reviewAndPublish"),action:"publish",variant:"brand",menu:ut([Hn(l)],i,l)};if((o?.mergeableState??"unknown")==="dirty")return{label:l("thread.cmsActions.getLatest"),action:"rebase",variant:"default",tooltip:l("thread.cmsActions.getLatestTooltip"),menu:[{key:"resolve-on-provider",label:l("thread.cmsActions.resolveOnProvider"),action:"open-pr-page"}]};const h=n.filter(Pn).length,f=n.filter(hr).map(b=>b.name);if(h===0&&f.length>0)return{label:l("thread.headerActions.fixChecks"),action:"fix-checks",variant:"default",tooltip:l("thread.headerActions.failingChecksTooltip",{checks:f.join(", ")}),meta:{failingChecks:f},menu:ut(At([{key:"publish-anyway",label:l("thread.headerActions.publishAnyway"),action:"merge",tooltip:l("thread.headerActions.squashMergeTooltip",{prNumber:String(r.number),base:r.base})}],r,l),i,l)};if(o?.draft)return hs({label:l("thread.headerActions.markReady"),action:"mark-ready",variant:"default",tooltip:l("thread.headerActions.markDraftReadyTooltip"),menu:ut(At([],r,l),i,l)},n,l);const p=o?.unresolvedConversations??0;return p>0?hs({label:l("thread.headerActions.addressFeedback"),action:"resolve-comments",variant:"default",tooltip:l("thread.headerActions.unresolvedConversationsTooltip",{count:String(p)}),menu:ut(At([],r,l),i,l)},n,l):o?.missingRequiredApprovals?hs({label:l("thread.cmsActions.waitingForReview"),action:"open-pr-page",variant:"outline",tooltip:l("thread.headerActions.waitingForApprovalsTooltip"),menu:ut(At([],r,l),i,l)},n,l):hs({label:l("thread.cmsActions.reviewAndPublish"),action:"publish",variant:"brand",meta:{publishPolicyOverride:"open"},menu:ut(At([{key:"review",label:l("thread.headerActions.review"),action:"review"}],r,l),i,l)},n,l)}return i.behindBase>0?{label:l("thread.cmsActions.getLatest"),action:"sync",variant:"default",tooltip:l("thread.cmsActions.getLatestTooltip"),menu:[]}:{label:l("thread.headerActions.upToDate"),disabled:!0,variant:"outline",tooltip:l("thread.headerActions.branchInSyncTooltip",{base:i.base}),menu:[]}}function qn(t){return{key:"view-change-request",label:t("thread.cmsActions.viewOnProvider"),action:"open-pr"}}function fs(t,e,s){return e.kind!=="ready"||e.behindBase<=0?t:[...t,{key:"get-latest",label:s("thread.cmsActions.getLatest"),action:"get-latest",tooltip:s("thread.cmsActions.getLatestTooltip")}]}function Kn(t,e,s,r){const n=e.length;if(n===0)return t;if(e.filter(Pn).length>0){const l=e.filter(u=>u.status==="completed").length,i=r("thread.cmsActions.checksRunning",{done:l,total:n});return s==="loading"?{...t,loading:!0,tooltip:i}:{...t,tooltip:i}}const d=e.filter(hr).length;return d>0?{...t,variant:"warning",tooltip:r("thread.cmsActions.checksFailing",{failed:d,total:n})}:t}function ec(t,e){return!!(t?.merged&&t.headSha&&e.kind==="ready"&&!e.workingTreeDirty&&e.headSha===t.headSha)}function tc(t){return ps(t.prQuery)?!0:t.pr?.state!=="open"||t.pr.merged?!1:ps(t.checksQuery)||ps(t.reviewsQuery)}function sc(t,e){return t.workingTreeDirty?!0:e!==null?e>0:t.aheadOfBase>0}function nc(t,e){if(!t)return{branchMeta:{kind:"unknown"},publishableChangeCount:null};const s=Object.keys(t.changes).length;return{branchMeta:{kind:"ready",branch:e,base:t.base.resolvedRef??"main",workingTreeDirty:!1,unpushed:0,aheadOfBase:s,behindBase:0,headSha:t.revision},publishableChangeCount:s}}function ac(t,e){return e?.notLive&&!t.action&&!t.loading?{label:e.t("thread.publishPopover.publish"),action:"publish",variant:"brand",tooltip:e.t("thread.cmsActions.notLiveTooltip"),status:e.t("thread.cmsActions.notLive"),menu:[]}:{...t,menu:[]}}function rc(t){if(!t)return!1;const{current:e,commits:s}=t;return e?s.findIndex(r=>r.sha===e.revision)>0:!1}function lc(t){const{branch:e,pr:s,checks:r,reviews:n,publishing:o,saving:d,loading:l,publishableChangeCount:i,t:u}=t;if(e.kind!=="ready"&&t.statusError)return{label:u("thread.cmsActions.retry"),action:"retry-status",variant:"outline",disabled:t.statusRetrying,loading:t.statusRetrying,tooltip:t.statusError,menu:[]};if(l||e.kind!=="ready")return{label:u("thread.headerActions.loading"),variant:"outline",disabled:!0,loading:!0,menu:[]};if(o)return{label:u("thread.cmsActions.publishing"),variant:"outline",disabled:!0,loading:!0,menu:[]};if(t.syncing)return{label:u("thread.cmsActions.gettingLatest"),variant:"outline",disabled:!0,loading:!0,menu:[]};if(d)return{label:u("thread.headerActions.saving"),variant:"outline",disabled:!0,loading:!0,menu:[]};if(s&&s.state==="open"&&!s.merged?s:null){const h=n?.mergeableState??"unknown";return h==="dirty"?{label:u("thread.cmsActions.getLatest"),action:"get-latest",variant:"default",tooltip:u("thread.cmsActions.getLatestTooltip"),menu:[{key:"resolve-on-provider",label:u("thread.cmsActions.resolveOnProvider"),action:"open-pr"}]}:h==="blocked"||n?.draft?Kn({label:u("thread.cmsActions.waitingForReview"),action:"open-pr",variant:"outline",menu:fs([qn(u)],e,u)},r,"loading",u):Kn({label:u("thread.cmsActions.reviewAndPublish"),action:"publish",variant:"brand",menu:fs([qn(u)],e,u)},r,"none",u)}return ec(s,e)?{label:u("thread.headerActions.upToDate"),variant:"outline",disabled:!0,menu:fs([],e,u)}:sc(e,i)?{label:u("thread.cmsActions.reviewAndPublish"),action:"publish",variant:"brand",menu:fs([{key:"request-approval",label:u("thread.headerActions.submitForReview"),action:"request-approval"}],e,u)}:e.behindBase>0?{label:u("thread.cmsActions.getLatest"),action:"get-latest",variant:"default",tooltip:u("thread.cmsActions.getLatestTooltip"),menu:[],autoRun:e.aheadOfBase===0}:{label:u("thread.headerActions.upToDate"),variant:"outline",disabled:!0,menu:[]}}function ic(t){return t.conflicting===!0?"dirty":t.conflicting===null?"unknown":t.reviewBlocked||t.unresolvedConversations>0?"blocked":"clean"}function fr(t){const e=I.c(4);let s;e[0]!==t?(s=il(t),e[0]=t,e[1]=s):s=e[1];let r;return e[2]!==s?(r={...s,select:oc},e[2]=s,e[3]=r):r=e[3],Rt(r)}function oc(t){const e=t.changeRequest;return e?{draft:e.draft,mergeableState:ic(e),unresolvedConversations:e.unresolvedConversations,missingRequiredApprovals:e.reviewBlocked}:null}function Vn(t,e){return t==="open-pr"||e==="resolve-on-provider"?a.jsx(Da,{size:16}):t==="publish"?a.jsx(Pa,{className:"size-4"}):t==="get-latest"||t==="retry-status"?a.jsx(Ys,{className:"size-4"}):a.jsx(ks,{className:"size-4"})}function cc(t){const e=I.c(65),{virtualMcpId:s}=t,r=ye(),{org:n}=ws(),o=Zn(),d=nn(s),{data:l}=Ps.useSession(),{deleteRelease:i}=en(s),{currentBranch:u,setCurrentTaskBranch:c,taskId:h,createTask:f}=da();let p;e[0]===Symbol.for("react.memo_cache_sentinel")?(p={open:!1,mode:"publish"},e[0]=p):p=e[0];const[b,m]=V.useState(p);let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g=K=>m({open:!0,mode:K}),e[1]=g):g=e[1];const x=g,P=Aa(d),y=P.status==="attached"||P.status==="public-clone"?P.repo:null,{previewServerUrl:v}=an(s),w=u?oa(ca(n.slug,s,u)):null,j=w?ln(w.path,w.params):"/",N=dl(u?{orgSlug:n.slug,virtualMcpId:s,branch:u,previewServerUrl:v,path:j}:null);let C;e[2]!==u||e[3]!==n.slug||e[4]!==s?(C=u?{orgSlug:n.slug,virtualMcpId:s,branch:u}:null,e[2]=u,e[3]=n.slug,e[4]=s,e[5]=C):C=e[5];const R=ul(C),k=zt(s,u),A=k.kind==="protocol"&&k.source==="github";let S;e[6]!==u||e[7]!==n.slug||e[8]!==s?(S=u?{orgSlug:n.slug,virtualMcpId:s,branch:u}:null,e[6]=u,e[7]=n.slug,e[8]=s,e[9]=S):S=e[9];const F=Zs(S),$=ma(A?k:null,F);let T;e[10]!==A?(T={enabled:A},e[10]=A,e[11]=T):T=e[11];const _=Yl(n.slug,s,T),O=A&&rc(_.data?.pages[0]);let Z;e[12]!==n.slug||e[13]!==s?(Z=Ur(n.slug,s),e[12]=n.slug,e[13]=s,e[14]=Z):Z=e[14];const ae=hl(Z,A?R:null),H=A?fl(v,j,ae):N.url,L=u??"",z=h??null;let ee;e[15]!==n.slug||e[16]!==L||e[17]!==z||e[18]!==s?(ee=La({orgSlug:n.slug,virtualMcpId:s,branch:L,threadId:z}),e[15]=n.slug,e[16]=L,e[17]=z,e[18]=s,e[19]=ee):ee=e[19];const W=!!u&&k.kind!=="pending"&&!A;let B;e[20]!==W||e[21]!==ee?(B={...ee,enabled:W},e[20]=W,e[21]=ee,e[22]=B):B=e[22];const ie=Rt(B),U=A?null:ie.data??null,oe=A?nc($.data,u??""):null,J=oe?oe.branchMeta:U?{kind:"ready",branch:un(U)??u??"",base:U.base??"main",workingTreeDirty:Hl(U),unpushed:U.unpushed??0,aheadOfBase:U.aheadOfBase??0,behindBase:U.behindBase??0,headSha:U.headSha??""}:{kind:"unknown"},se=oe?oe.publishableChangeCount:U?.changedFiles?Xa({files:U.changedFiles}).count:null,D=A?$:ie,te=(J.kind==="ready"?J.branch:null)??u??null,re=J.kind==="ready"?J.base:"main",he=Ra({orgId:n.id,orgSlug:n.slug,target:et(y),owner:y?.owner??"",repo:y?.name??"",branch:te}),G=he.data??null,pe=Ta({orgId:n.id,orgSlug:n.slug,target:et(y),owner:y?.owner??"",repo:y?.name??"",base:re}),Y=Ba({orgId:n.id,orgSlug:n.slug,target:et(y),owner:y?.owner??"",repo:y?.name??"",branch:te}),E=fr({orgId:n.id,orgSlug:n.slug,target:et(y),owner:y?.owner??"",repo:y?.name??"",branch:te});let q;e[23]!==Y||e[24]!==G||e[25]!==he||e[26]!==E?(q=tc({pr:G,prQuery:he,checksQuery:Y,reviewsQuery:E}),e[23]=Y,e[24]=G,e[25]=he,e[26]=E,e[27]=q):q=e[27];const ce=q;let we;e[28]!==he?(we=async()=>{await he.refetch()},e[28]=he,e[29]=we):we=e[29];const fe=we,Me=Sn({mutationFn:()=>Ai({hosted:A,branch:u,baseBranch:re,nextBranch:()=>tn(sn(l?.user)),setCurrentTaskBranch:c,deleteRelease:i}),onError:hc});let M;e[30]!==n.slug||e[31]!==h||e[32]!==s?(M=async K=>(await ql({orgSlug:n.slug,virtualMcpId:s,branch:K.branch,threadId:h??null},K.base),K),e[30]=n.slug,e[31]=h,e[32]=s,e[33]=M):M=e[33];let ne;e[34]!==u||e[35]!==n.slug||e[36]!==o||e[37]!==r||e[38]!==h||e[39]!==s?(ne=async K=>{Ft.success(r("thread.headerActions.syncedWithBase",{base:K.base})),await Promise.all([o.invalidateQueries({queryKey:Ea({orgSlug:n.slug,virtualMcpId:s,branch:u??K.branch,threadId:h??null})}),o.invalidateQueries({queryKey:Ut.decofile(`${n.slug}/${s}/${K.branch}`)})])},e[34]=u,e[35]=n.slug,e[36]=o,e[37]=r,e[38]=h,e[39]=s,e[40]=ne):ne=e[40];let _e;e[41]!==M||e[42]!==ne?(_e={mutationFn:M,onSuccess:ne,onError:uc},e[41]=M,e[42]=ne,e[43]=_e):_e=e[43];const Oe=Sn(_e),Ee=pa(n.slug,s),ft=Me.isPending,tt=lc({branch:J,pr:G,checks:Y.data??[],reviews:E.data??null,publishing:ft,saving:Ee,syncing:Oe.isPending,statusRetrying:D.isFetching&&!!D.error,statusError:D.error instanceof Error?D.error.message:D.error?String(D.error):null,loading:!!ce,publishableChangeCount:se,t:r}),je=A?ac(tt,{notLive:O,t:r}):tt,Ie=je.autoRun&&J.kind==="ready"&&y&&v?`${te}@${J.headSha}`:null,Fe=V.useRef(null);if(V.useEffect(()=>{!Ie||!te||Fe.current!==Ie&&(Fe.current=Ie,Oe.mutate({branch:te,base:re}))},[Ie,te,re,Oe]),P.status==="detached"){let K;e[44]!==r?(K=r("thread.headerActions.reconnectGithub"),e[44]=r,e[45]=K):K=e[45];let xe;e[46]!==K?(xe=a.jsx(kt,{asChild:!0,children:a.jsx("span",{children:a.jsx(ve,{size:"sm",variant:"outline",disabled:!0,children:K})})}),e[46]=K,e[47]=xe):xe=e[47];let ke;e[48]!==r?(ke=r("thread.headerActions.githubConnectionRemoved"),e[48]=r,e[49]=ke):ke=e[49];let Ne;e[50]!==ke?(Ne=a.jsx(Nt,{children:ke}),e[50]=ke,e[51]=Ne):Ne=e[51];let Ce;return e[52]!==xe||e[53]!==Ne?(Ce=a.jsx(Ss,{children:a.jsxs(St,{children:[xe,Ne]})}),e[52]=xe,e[53]=Ne,e[54]=Ce):Ce=e[54],Ce}if(!d)return null;if(!y||!v){const K=y?"noPreviewServer":"noRepo";let xe;e[55]!==u||e[56]!==f?(xe=u?()=>{const Ne=f?.({runtime:"sandbox",branch:u});Ne&&Rr("coding_session_started",{thread_id:Ne})}:void 0,e[55]=u,e[56]=f,e[57]=xe):xe=e[57];let ke;return e[58]!==K||e[59]!==xe?(ke=a.jsx(fc,{reason:K,onStartCodingSession:xe}),e[58]=K,e[59]=xe,e[60]=ke):ke=e[60],ke}if(!u)return null;const De=K=>{switch(K){case"publish":{x("publish");return}case"request-approval":{x("review");return}case"get-latest":{if(!te||Oe.isPending)return;Oe.mutate({branch:te,base:re});return}case"retry-status":{D.refetch();return}case"open-pr":{G?.htmlUrl&&window.open(G.htmlUrl,"_blank","noopener,noreferrer");return}}};let Pe;e[61]!==De?(Pe=K=>({key:K.key,label:K.label,icon:Vn(K.action,K.key),...K.tooltip?{tooltip:K.tooltip}:{},onSelect:()=>De(K.action)}),e[61]=De,e[62]=Pe):Pe=e[62];const $e=je.menu.map(Pe),Se=je.action,Le=je.label,st=je.variant,mt=!!je.loading;let Re;e[63]!==r?(Re=r("thread.cmsActions.moreActionsAriaLabel"),e[63]=r,e[64]=Re):Re=e[64];const de=a.jsx(Ha,{size:"sm",label:Le,variant:st,disabled:!!je.disabled||!Se,loading:mt,...Se&&!je.loading?{icon:Vn(Se)}:{},...je.tooltip?{tooltip:je.tooltip}:{},items:$e,menuAriaLabel:Re,onClick:Se?()=>De(Se):void 0});return a.jsxs(a.Fragment,{children:[je.status?a.jsx("span",{className:"mr-1 hidden shrink-0 text-xs text-muted-foreground sm:inline",children:je.status}):null,de,u?a.jsx(cr,{open:b.open,mode:b.mode,fastPreview:!0,notLive:O,onOpenChange:K=>{K||m(dc)},orgSlug:n.slug,virtualMcpId:s,branch:u,baseBranch:re,repoTarget:et(y),owner:y.owner,repo:y.name,publishPolicy:_a(d?.metadata?.publishPolicy),draftPreviewUrl:H,destinationHost:N.host,previewServerUrl:v,compareDraft:R?{kind:"pointer",pointer:R,...ae?{link:ae}:{}}:null,lastPublishedPr:pe.data??null,onRequestApproval:()=>x("review"),openPullRequest:G?.state==="open"?G:null,onPullRequestChanged:fe,onPublished:()=>Me.mutateAsync()}):null]})}function dc(t){return{...t,open:!1}}function uc(t){Ft.error(t instanceof Error?t.message:String(t))}function hc(t){console.error("site editor: settling after publish failed",t)}function fc(t){const e=I.c(14),{reason:s,onStartCodingSession:r}=t,n=ye(),o=!r;let d;e[0]!==n?(d=n("sandbox.cmsUnavailable.startCodingSession"),e[0]=n,e[1]=d):d=e[1];let l;e[2]!==r||e[3]!==o||e[4]!==d?(l=a.jsx(kt,{asChild:!0,children:a.jsx("span",{children:a.jsx(ve,{size:"sm",variant:"outline",disabled:o,onClick:r,children:d})})}),e[2]=r,e[3]=o,e[4]=d,e[5]=l):l=e[5];let i;e[6]!==s||e[7]!==n?(i=n(s==="noPreviewServer"?"sandbox.cmsUnavailable.noPreviewServer":"sandbox.cmsUnavailable.noRepo"),e[6]=s,e[7]=n,e[8]=i):i=e[8];let u;e[9]!==i?(u=a.jsx(Nt,{children:i}),e[9]=i,e[10]=u):u=e[10];let c;return e[11]!==l||e[12]!==u?(c=a.jsx(Ss,{children:a.jsxs(St,{children:[l,u]})}),e[11]=l,e[12]=u,e[13]=c):c=e[13],c}const Ht="The user clicked this action deliberately — execute directly. Do not call user_ask unless you hit an actual problem outside the scope of this intent (missing auth, unresolvable conflict, a check with multiple plausible fixes).";function mc(t){return`Reopen PR #${t.prNumber}. ${Ht}`}function pc(t){return`Rebase \`${t.branch}\` on the latest base and force-push with --force-with-lease. ${Ht}`}function bc(t){return`Sync \`${t.branch}\` with everyone else's work: \`git add -A\`, commit any pending local changes with a concise conventional-commit message (skip if the working tree is clean), \`git pull --rebase\` to bring in anything pushed directly to \`origin/${t.branch}\`, then \`git rebase origin/${t.base}\` to catch up with the base branch. Resolve any conflicts that come up, then push the result (force-with-lease only if the rebase rewrote commits already on the remote). ${Ht}`}function gc(t){const e=(t.failingChecks??[]).map(s=>`\`${s}\``).join(", ");return`PR #${t.prNumber} has failing checks: ${e}. For each: read the logs, diagnose the root cause, apply the smallest fix that makes it pass, commit, and push. ${Ht}`}function xc(t){return`Mark PR #${t.prNumber} ready for review. ${Ht}`}function vc(t){return`Read the unresolved review threads on PR #${t.prNumber}. For each thread: understand the reviewer's ask, apply the needed changes, commit, push, reply explaining what changed, and resolve the thread. If a comment is a question that doesn't need a code change, reply with the answer and resolve. ${Ht}`}function yc(t){return`Review PR #${t.prNumber}. Read the full diff, analyze every changed file for correctness, security, code quality, and alignment with the repo's patterns. Post specific line-level review comments on concerns, then submit an overall review (approve / request changes / comment) with a concise summary. Do not modify the code — this is a read-and-comment pass. ${Ht}`}function Gn(t){switch(t){case"publish":return a.jsx(Pa,{className:"size-4"});case"create-pr":case"reopen":return a.jsx(ks,{className:"size-4"});case"rebase":case"sync":return a.jsx(Ys,{className:"size-4"});case"fix-checks":return a.jsx(ia,{className:"size-4"});case"mark-ready":return a.jsx(on,{className:"size-4"});case"resolve-comments":return a.jsx(Yr,{className:"size-4"});case"merge":return a.jsx(Bl,{className:"size-4"});case"review":return a.jsx(gs,{className:"size-4"});case"open-pr-page":return a.jsx(Da,{size:16})}}const Wn=new Set(["reopen","rebase","fix-checks","mark-ready","resolve-comments","review","sync"]),Qn=new Set(["publish","create-pr"]);function jc(t){const e=I.c(44),{t:s,button:r,actionBusy:n,changeRequestPending:o,savePending:d,onAction:l}=t,i=r.action;let u;e[0]!==i||e[1]!==n?(u=n&&i!==void 0&&Wn.has(i),e[0]=i,e[1]=n,e[2]=u):u=e[2];const c=u,h=o&&i==="merge";let f;e[3]!==i||e[4]!==d?(f=d&&i!==void 0&&Qn.has(i),e[3]=i,e[4]=d,e[5]=f):f=e[5];const p=f,b=!!r.disabled||c||h||p||!i,m=!!r.loading||h;let g;e[6]!==r.tooltip||e[7]!==c||e[8]!==p||e[9]!==s?(g=c?s("thread.headerActions.chatIsRunning"):p?s("thread.headerActions.saving"):r.tooltip,e[6]=r.tooltip,e[7]=c,e[8]=p,e[9]=s,e[10]=g):g=e[10];const x=g;let P;if(e[11]!==n||e[12]!==r.menu||e[13]!==o||e[14]!==l||e[15]!==d||e[16]!==s){let A;e[18]!==n||e[19]!==o||e[20]!==l||e[21]!==d||e[22]!==s?(A=S=>{const F=n&&Wn.has(S.action),$=d&&Qn.has(S.action),T=S.action==="merge"&&o,_=$?s("thread.headerActions.saving"):F?s("thread.headerActions.chatIsRunning"):S.tooltip;return{key:S.key,label:S.label,icon:Gn(S.action),disabled:!!(F||$||T),..._?{tooltip:_}:{},onSelect:()=>l(S.action)}},e[18]=n,e[19]=o,e[20]=l,e[21]=d,e[22]=s,e[23]=A):A=e[23],P=r.menu.map(A),e[11]=n,e[12]=r.menu,e[13]=o,e[14]=l,e[15]=d,e[16]=s,e[17]=P}else P=e[17];const y=P,v=r.label,w=r.variant;let j;e[24]!==i||e[25]!==m?(j=i&&!m?{icon:Gn(i)}:{},e[24]=i,e[25]=m,e[26]=j):j=e[26];let N;e[27]!==x?(N=x?{tooltip:x}:{},e[27]=x,e[28]=N):N=e[28];let C;e[29]!==s?(C=s("thread.headerActions.moreActionsAriaLabel"),e[29]=s,e[30]=C):C=e[30];let R;e[31]!==i||e[32]!==l?(R=i?()=>l(i):void 0,e[31]=i,e[32]=l,e[33]=R):R=e[33];let k;return e[34]!==r.label||e[35]!==r.variant||e[36]!==b||e[37]!==y||e[38]!==m||e[39]!==j||e[40]!==N||e[41]!==C||e[42]!==R?(k=a.jsx(Ha,{size:"sm",label:v,variant:w,disabled:b,loading:m,...j,...N,items:y,menuAriaLabel:C,onClick:R}),e[34]=r.label,e[35]=r.variant,e[36]=b,e[37]=y,e[38]=m,e[39]=j,e[40]=N,e[41]=C,e[42]=R,e[43]=k):k=e[43],k}function Pc(t){const e=I.c(9),{label:s,children:r}=t;if(!s){let l;return e[0]!==r?(l=a.jsx(a.Fragment,{children:r}),e[0]=r,e[1]=l):l=e[1],l}let n;e[2]!==r?(n=a.jsx(kt,{asChild:!0,children:a.jsx("span",{children:r})}),e[2]=r,e[3]=n):n=e[3];let o;e[4]!==s?(o=a.jsx(Nt,{children:s}),e[4]=s,e[5]=o):o=e[5];let d;return e[6]!==n||e[7]!==o?(d=a.jsx(Ss,{children:a.jsxs(St,{children:[n,o]})}),e[6]=n,e[7]=o,e[8]=d):d=e[8],d}function wc(t){return{label:t("thread.headerActions.loadingBranch"),disabled:!0,loading:!0,variant:"outline",tooltip:t("thread.headerActions.waitingForSandboxBranchTooltip"),menu:[]}}function Sc({virtualMcpId:t}){const e=ye(),{org:s}=ws(),{data:r}=Ps.useSession(),n=nn(t),{deleteRelease:o}=en(t),{currentBranch:d,setCurrentTaskBranch:l,createTask:i,taskId:u}=da(),c=Dr(),{openSidePanel:h}=Hr(),[f,p]=V.useState({open:!1,mode:"publish",policyOverride:null}),b=Zl({connectionId:Tr,orgId:s.id,orgSlug:s.slug}),m=ti(b),[g,x]=V.useState(!1),P=V.useRef(""),y=Aa(n),v=y.status==="attached"||y.status==="public-clone"?y.repo:null,{lifecycle:w,branch:j,phase:N}=ei(),C={orgSlug:s.slug,virtualMcpId:t,branch:d??"",threadId:u??null},k=Rt({queryKey:Ea(C),queryFn:()=>Oa(C),enabled:!!d,staleTime:15e3,refetchInterval:q=>Ds(q.state.data)?5e3:!1}).data??null,A=j,S=w,F=A.kind==="ready"?A.branch:null,$=d??F??void 0,T=(A.kind==="ready"?A.branch:null)??$??null,_=Ra({orgId:s.id,orgSlug:s.slug,target:et(v),owner:v?.owner??"",repo:v?.name??"",branch:T}),O=_.data??null,Z=Ba({orgId:s.id,orgSlug:s.slug,target:et(v),owner:v?.owner??"",repo:v?.name??"",branch:T}),ae=fr({orgId:s.id,orgSlug:s.slug,target:et(v),owner:v?.owner??"",repo:v?.name??"",branch:T}),H=Ta({orgId:s.id,orgSlug:s.slug,target:et(v),owner:v?.owner??"",repo:v?.name??"",base:A.kind==="ready"?A.base:null}),L=A,z=_a(n?.metadata?.publishPolicy),ee=pa(s.slug,t),{previewUrl:W}=si(),{previewServerUrl:B,projectDefault:ie}=an(t);if(y.status==="detached")return a.jsx(Pc,{label:e("thread.headerActions.githubConnectionRemoved"),children:a.jsx(ve,{size:"sm",variant:"outline",disabled:!0,children:e("thread.headerActions.reconnectGithub")})});if(!v)return null;const U=T?Zo({lifecycle:S,branch:L,claimPhase:N,pr:O,checks:Z.data??[],reviews:ae.data??null,noReviewableDiff:Ds(k),loading:ps(_),t:e}):wc(e),oe=JSON.stringify({label:U.label,branchKind:L.kind,workingTreeDirty:L.kind==="ready"?L.workingTreeDirty:null,unpushed:L.kind==="ready"?L.unpushed:null,aheadOfBase:L.kind==="ready"?L.aheadOfBase:null,lifecycle:S.phase,headBranch:T,noReviewableDiff:Ds(k)});P.current!==oe&&(P.current=oe,za("header button",{label:U.label,tooltip:U.tooltip,action:U.action,chatBranch:d,sandboxBranch:F,sandboxRouteBranch:$,headBranch:T,branchMeta:A,effectiveBranchMeta:L,lifecyclePhase:S.phase,prNumber:O?.number??null,prState:O?.state??null}));const J=q=>(h(),c.sendMessage({parts:[{type:"text",text:q}]})),se=c.isStreaming,D=L.kind==="ready"?L.base:"main",te=async()=>{await _.refetch()},re=async()=>{const q=d,ce=tn(sn(r?.user));ie==="cms"?i({runtime:"cms",branch:ce}):await l(ce),q&&q!==D&&await o(q)},he=async q=>{if(!(!v||g)){x(!0);try{const ce=qa(r?.user);await Nl(s.slug,et(v),{number:q,coAuthor:ce}),Ft.success(e("thread.headerActions.publishedPr",{prNumber:String(q)})),await te(),await re()}catch(ce){Ft.error(ce instanceof Cl?ce.detail??Al(ce.reason,e):ce instanceof Error?ce.message:e("thread.headerActions.failedToMergePullRequest"))}finally{x(!1)}}},G=(q,ce)=>p({open:!0,mode:q,policyOverride:ce}),pe=q=>{if(T)switch(q){case"publish":G("publish",U.meta?.publishPolicyOverride??null);return;case"create-pr":G("review",null);return;case"merge":O&&he(O.number);return;case"sync":if(se)return;J(bc({branch:T,base:D}));return;case"open-pr-page":O?.htmlUrl&&window.open(O.htmlUrl,"_blank","noopener,noreferrer");return;case"review":if(se)return;O&&J(yc({prNumber:O.number}));return;case"reopen":if(se)return;O&&J(mc({prNumber:O.number}));return;case"rebase":if(se)return;J(pc({branch:T}));return;case"fix-checks":if(se)return;O&&J(gc({prNumber:O.number,failingChecks:U.meta?.failingChecks??[]}));return;case"mark-ready":if(se)return;O&&J(xc({prNumber:O.number}));return;case"resolve-comments":if(se)return;O&&J(vc({prNumber:O.number}));return}},Y=g||se,E=a.jsx(jc,{t:e,button:U,actionBusy:Y,changeRequestPending:g,savePending:ee,onAction:pe});return $?a.jsxs(a.Fragment,{children:[E,a.jsx(cr,{open:f.open,mode:f.mode,fastPreview:!1,recoverSandbox:()=>m.mutateAsync({virtualMcpId:t,branch:$,...u?{threadId:u}:{}}),onOpenChange:q=>{q||p(ce=>({...ce,open:!1}))},orgSlug:s.slug,virtualMcpId:t,branch:$,baseBranch:D,repoTarget:et(v),owner:v.owner,repo:v.name,publishPolicy:f.policyOverride??z,draftPreviewUrl:W,destinationHost:null,previewServerUrl:B,compareDraft:W?{kind:"sandbox",previewUrl:W}:null,lastPublishedPr:H.data??null,onRequestApproval:()=>p(q=>({...q,open:!0,mode:"review"})),openPullRequest:O?.state==="open"?O:null,onPullRequestChanged:te,onPublished:re})]}):E}function kc(t){const e=I.c(33),{orgSlug:s,virtualMcpId:r,branch:n}=t,o=ye(),[d,l]=V.useState(!1),i=zt(r,n),u=i.kind==="protocol"&&i.source==="local"?i:null;let c;e[0]!==n||e[1]!==s||e[2]!==r?(c=n?{orgSlug:s,virtualMcpId:r,branch:n}:null,e[0]=n,e[1]=s,e[2]=r,e[3]=c):c=e[3];const h=Zs(c),{data:f}=ma(u,h);if(!u||!h||!n)return null;let p;e[4]!==f?(p=f?Object.keys(f.changes).length:0,e[4]=f,e[5]=p):p=e[5];const b=p;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=()=>l(!0),e[6]=m):m=e[6];let g;e[7]!==b||e[8]!==o?(g=b>0?o("decoServe.changes.buttonCount",{count:b}):o("decoServe.changes.button"),e[7]=b,e[8]=o,e[9]=g):g=e[9];let x;e[10]!==g?(x=a.jsx(ve,{size:"sm",variant:"outline","data-testid":"local-changes-button",onClick:m,children:g}),e[10]=g,e[11]=x):x=e[11];let P;e[12]!==o?(P=o("decoServe.changes.title"),e[12]=o,e[13]=P):P=e[13];let y;e[14]!==P?(y=a.jsx(sa,{className:"sr-only",children:P}),e[14]=P,e[15]=y):y=e[15];let v;e[16]!==n||e[17]!==h||e[18]!==u||e[19]!==d||e[20]!==s||e[21]!==o||e[22]!==r?(v=d?a.jsx(aa,{children:C=>{const{reset:R}=C;return a.jsx(ra,{fallback:k=>{const{resetError:A}=k;return a.jsx(Us,{title:o("decoServe.changes.title"),body:a.jsx("p",{className:"px-4 py-6 text-xs text-muted-foreground",children:o("decoServe.changes.loadFailed")}),onClose:()=>{R(),A(),l(!1)}})},children:a.jsx(V.Suspense,{fallback:a.jsx(es,{pane:a.jsx(xn,{}),list:a.jsx(Us,{title:o("decoServe.changes.title"),loading:!0,body:a.jsx(Yt,{children:a.jsxs("div",{className:"space-y-1.5",children:[a.jsx(Et,{}),a.jsx(Et,{})]})}),onClose:()=>l(!1)})}),children:a.jsx(Nc,{orgSlug:s,virtualMcpId:r,branch:n,backend:u,cacheKey:h,onClose:()=>l(!1)})})})}}):null,e[16]=n,e[17]=h,e[18]=u,e[19]=d,e[20]=s,e[21]=o,e[22]=r,e[23]=v):v=e[23];let w;e[24]!==y||e[25]!==v?(w=a.jsxs(na,{"aria-describedby":void 0,className:"flex h-[calc(100dvh-2rem)] w-[calc(100vw-2rem)] max-w-none flex-col md:flex-row md:h-[calc(100dvh-6rem)] md:w-[calc(100vw-6rem)] gap-0 overflow-hidden p-0 sm:max-w-none",closeButtonClassName:"top-3.5 right-3.5",children:[y,v]}),e[24]=y,e[25]=v,e[26]=w):w=e[26];let j;e[27]!==d||e[28]!==w?(j=a.jsx(ta,{open:d,onOpenChange:l,children:w}),e[27]=d,e[28]=w,e[29]=j):j=e[29];let N;return e[30]!==j||e[31]!==x?(N=a.jsxs(a.Fragment,{children:[x,j]}),e[30]=j,e[31]=x,e[32]=N):N=e[32],N}function Us(t){const e=I.c(22),{title:s,trailing:r,body:n,loading:o,onClose:d}=t,l=o===void 0?!1:o,i=ye(),u=l?"loading":"ready";let c;e[0]!==s?(c=a.jsx("span",{className:"truncate",children:s}),e[0]=s,e[1]=c):c=e[1];let h;e[2]!==c||e[3]!==r?(h=a.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium",children:[c,r]}),e[2]=c,e[3]=r,e[4]=h):h=e[4];let f;e[5]!==i?(f=i("decoServe.changes.hint"),e[5]=i,e[6]=f):f=e[6];let p;e[7]!==f?(p=a.jsx("p",{className:"text-2xs text-muted-foreground",children:a.jsx(Ua,{text:f})}),e[7]=f,e[8]=p):p=e[8];let b;e[9]!==i?(b=i("decoServe.changes.close"),e[9]=i,e[10]=b):b=e[10];let m;e[11]!==d||e[12]!==b?(m=a.jsx(ve,{type:"button",variant:"outline",className:"w-full",onClick:d,children:b}),e[11]=d,e[12]=b,e[13]=m):m=e[13];let g;e[14]!==p||e[15]!==m?(g=a.jsxs(a.Fragment,{children:[p,m]}),e[14]=p,e[15]=m,e[16]=g):g=e[16];let x;return e[17]!==n||e[18]!==u||e[19]!==h||e[20]!==g?(x=a.jsx(Cs,{state:u,header:h,body:n,footer:g}),e[17]=n,e[18]=u,e[19]=h,e[20]=g,e[21]=x):x=e[21],x}function Nc(t){const e=I.c(54),{orgSlug:s,virtualMcpId:r,branch:n,backend:o,cacheKey:d,onClose:l}=t,i=ye();let u;e[0]!==n||e[1]!==s||e[2]!==r?(u={orgSlug:s,virtualMcpId:r,branch:n},e[0]=n,e[1]=s,e[2]=r,e[3]=u):u=e[3];let c;e[4]!==o||e[5]!==d||e[6]!==u?(c={backend:o,cacheKey:d,scope:u},e[4]=o,e[5]=d,e[6]=u,e[7]=c):c=e[7];const h=gn(c);let f;e[8]!==n||e[9]!==s||e[10]!==h.refresh||e[11]!==r?(f={orgSlug:s,virtualMcpId:r,branch:n,refresh:h.refresh},e[8]=n,e[9]=s,e[10]=h.refresh,e[11]=r,e[12]=f):f=e[12];const p=Rl(f),b=fa(s,r).phase==="saving",m=o.describe.readOnly,[g,x]=V.useState(null),[P,y]=V.useState(null),[v,w]=V.useState(!1),{summary:j}=h;let N,C,R,k,A;if(e[13]!==g||e[14]!==o||e[15]!==P||e[16]!==p||e[17]!==v||e[18]!==b||e[19]!==m||e[20]!==h.blocks||e[21]!==h.entries||e[22]!==h.sidesFailed||e[23]!==h.sidesPending||e[24]!==j.blocks||e[25]!==j.count||e[26]!==j.pages||e[27]!==i){const $=[...j.pages,...j.blocks],T=$.find(ae=>Be(ae)===g)??$[0]??null;let _;e[33]!==j.count||e[34]!==i?(_=j.count===0?i("decoServe.changes.title"):j.count===1?i("decoServe.changes.titleOne"):i("decoServe.changes.titleCount",{count:j.count}),e[33]=j.count,e[34]=i,e[35]=_):_=e[35],A=_;const O=(ae,H)=>H.length===0?null:a.jsxs("div",{className:"space-y-1.5",children:[a.jsx("div",{className:"px-0.5 text-2xs font-medium text-muted-foreground",children:ae}),H.map(L=>{const z=Be(L);return a.jsx(er,{change:L,bodyPending:h.sidesPending,v8:!0,selected:T!==null&&Be(T)===z,onSelect:()=>x(z),confirming:P===z,onConfirmingChange:ee=>y(ee?z:null),onDiscard:m||!L.entry?void 0:()=>{p(o,[L.entry],i("thread.publishPopover.discarded",{name:L.name}))},isPublishing:!1,isDiscarding:b},z)})]});let Z;e[36]!==o||e[37]!==p||e[38]!==v||e[39]!==b||e[40]!==m||e[41]!==h.entries||e[42]!==j.count||e[43]!==i?(Z=m||j.count<=1?null:a.jsxs(a.Fragment,{children:[a.jsx("button",{type:"button",className:"ml-auto shrink-0 text-2xs text-muted-foreground transition-colors hover:text-destructive disabled:opacity-50",onClick:()=>w(!0),disabled:b,children:i("thread.publishPopover.discardAll")}),a.jsx(Qs,{open:v,onOpenChange:w,children:a.jsxs(Ws,{children:[a.jsxs(qs,{children:[a.jsx(zs,{children:i("thread.publishPopover.discardAllTitle")}),a.jsx(Hs,{children:i("thread.publishPopover.discardAllConfirm")})]}),a.jsxs(Gs,{children:[a.jsx(Ks,{children:i("thread.publishDialog.cancel")}),a.jsx(Vs,{onClick:()=>{p(o,h.entries,i("thread.publishDialog.allChangesDiscarded"))},disabled:b,className:X(la({variant:"destructive"})),children:i("thread.publishPopover.discardAll")})]})]})})]}),e[36]=o,e[37]=p,e[38]=v,e[39]=b,e[40]=m,e[41]=h.entries,e[42]=j.count,e[43]=i,e[44]=Z):Z=e[44],R=Z,C=j.count===0?a.jsxs("div",{className:"flex flex-col items-center gap-1 py-10 text-center",children:[a.jsx(on,{className:"mb-1 size-5 text-success"}),a.jsx("p",{className:"text-sm font-medium",children:i("decoServe.changes.empty")})]}):a.jsxs(Yt,{children:[O(i("thread.publishPopover.pagesGroup"),j.pages),O(i("thread.publishPopover.blocksGroup"),j.blocks),h.sidesFailed?a.jsx("p",{className:"text-2xs text-muted-foreground",children:i("thread.publishPopover.detailsUnavailable")}):null]}),N=es,k=T?a.jsx("div",{className:X(Xt,"relative flex"),children:a.jsx(lr,{change:T,diff:null,bodyPending:h.sidesPending,previewServerUrl:null,draft:null,lastPage:null,v8:{blocks:h.blocks}},Be(T))}):a.jsx("div",{className:X(Xt,"bg-muted/40")}),e[13]=g,e[14]=o,e[15]=P,e[16]=p,e[17]=v,e[18]=b,e[19]=m,e[20]=h.blocks,e[21]=h.entries,e[22]=h.sidesFailed,e[23]=h.sidesPending,e[24]=j.blocks,e[25]=j.count,e[26]=j.pages,e[27]=i,e[28]=N,e[29]=C,e[30]=R,e[31]=k,e[32]=A}else N=e[28],C=e[29],R=e[30],k=e[31],A=e[32];let S;e[45]!==C||e[46]!==R||e[47]!==l||e[48]!==A?(S=a.jsx(Us,{title:A,trailing:R,body:C,onClose:l}),e[45]=C,e[46]=R,e[47]=l,e[48]=A,e[49]=S):S=e[49];let F;return e[50]!==N||e[51]!==k||e[52]!==S?(F=a.jsx(N,{pane:k,list:S}),e[50]=N,e[51]=k,e[52]=S,e[53]=F):F=e[53],F}function Cc(t){const e=I.c(5),{virtualMcpId:s,branch:r}=t,n=ye(),o=zt(s,r);if(!Ac(o))return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=a.jsx(kt,{asChild:!0,children:a.jsx("span",{"data-testid":"content-version-badge",className:"shrink-0 rounded border border-border px-1.5 py-px font-mono text-2xs leading-4 text-muted-foreground",children:"v8"})}),e[0]=d):d=e[0];let l;e[1]!==n?(l=n("decoServe.version.v8"),e[1]=n,e[2]=l):l=e[2];let i;return e[3]!==l?(i=a.jsxs(St,{children:[d,a.jsx(Nt,{side:"bottom",className:"max-w-xs",children:l})]}),e[3]=l,e[4]=i):i=e[4],i}function Ac(t){return t.kind==="protocol"?t.hasSchema!==!1:t.kind==="unavailable"&&t.source!=="local"}function Rc(t){const e=I.c(11),{virtualMcpId:s,branch:r}=t,n=ye(),o=zt(s,r);if(!(o.kind==="protocol"&&o.source==="local"&&o.describe.readOnly))return null;let l;e[0]!==n?(l=n("decoServe.readOnly.label"),e[0]=n,e[1]=l):l=e[1];let i;e[2]!==l?(i=a.jsx(kt,{asChild:!0,children:a.jsx("span",{tabIndex:0,"data-testid":"deco-serve-read-only",className:"shrink-0 rounded-full bg-warning/10 px-2 py-0.5 text-xs font-medium text-foreground",children:l})}),e[2]=l,e[3]=i):i=e[3];let u;e[4]!==n?(u=n("decoServe.readOnly.tooltip"),e[4]=n,e[5]=u):u=e[5];let c;e[6]!==u?(c=a.jsx(Nt,{side:"bottom",className:"max-w-xs",children:a.jsx(Ua,{text:u})}),e[6]=u,e[7]=c):c=e[7];let h;return e[8]!==i||e[9]!==c?(h=a.jsxs(St,{children:[i,c]}),e[8]=i,e[9]=c,e[10]=h):h=e[10],h}function Tc(t){const e=!t.hasEntity&&!t.servingLocally,s=t.hasEntity&&!t.localPreview&&!t.tunnelUndecided&&!t.servingLocally&&t.showsRepositoryActions;return{hidden:e,localFiles:!e&&t.servingLocally,draftSelect:!e&&t.hasEntity,publish:e||!s?null:t.runtime==="cms"?"cms":"code"}}function Ad(t){const e=I.c(2),{blocksOnly:s}=t;let r;return e[0]!==s?(r=s?a.jsx(Bc,{}):a.jsx(mr,{}),e[0]=s,e[1]=r):r=e[1],r}function Bc(){const t=I.c(2),e=Ia(ni());let s;return t[0]!==e?(s=cl(e)?a.jsx(ar,{value:!1,children:a.jsx(mr,{})}):null,t[0]=e,t[1]=s):s=t[1],s}function mr(){const t=I.c(32),e=Zt(),{org:s}=ws(),r=nn(e?.virtualMcpId),n=e?.currentBranch??null,o=an(r?.id).runtime,{url:d,undecided:l}=ua(r?.id),{connection:i}=ha(r?.id??e?.virtualMcpId),u=r?.id??e?.virtualMcpId,c=!!r,h=!!i,f=!!d,p=!!l;let b;t[0]!==r||t[1]!==o||t[2]!==c||t[3]!==h||t[4]!==f||t[5]!==p?(b=Tc({hasEntity:c,servingLocally:h,localPreview:f,tunnelUndecided:p,showsRepositoryActions:!!r&&ol(r),runtime:o}),t[0]=r,t[1]=o,t[2]=c,t[3]=h,t[4]=f,t[5]=p,t[6]=b):b=t[6];const m=b;if(!u||m.hidden)return null;let g;t[7]!==n||t[8]!==u?(g=a.jsx(Cc,{virtualMcpId:u,branch:n}),t[7]=n,t[8]=u,t[9]=g):g=t[9];let x;t[10]!==n||t[11]!==m.localFiles||t[12]!==u?(x=m.localFiles&&a.jsx(Rc,{virtualMcpId:u,branch:n}),t[10]=n,t[11]=m.localFiles,t[12]=u,t[13]=x):x=t[13];let P;t[14]!==n||t[15]!==s||t[16]!==m.localFiles||t[17]!==u?(P=m.localFiles&&a.jsx(kc,{orgSlug:s.slug,virtualMcpId:u,branch:n}),t[14]=n,t[15]=s,t[16]=m.localFiles,t[17]=u,t[18]=P):P=t[18];let y;t[19]!==n||t[20]!==r||t[21]!==m.draftSelect?(y=r&&m.draftSelect&&a.jsx("div",{className:"flex min-w-0 shrink items-center justify-end",children:a.jsx(wi,{virtualMcp:r,currentBranch:n})}),t[19]=n,t[20]=r,t[21]=m.draftSelect,t[22]=y):y=t[22];let v;t[23]!==r||t[24]!==m.publish?(v=r&&m.publish&&a.jsxs(a.Fragment,{children:[a.jsx(Br,{orientation:"vertical",className:"mx-1 data-[orientation=vertical]:h-4"}),a.jsx("div",{className:"flex shrink-0 items-center justify-end gap-1",children:m.publish==="cms"?a.jsx(cc,{virtualMcpId:r.id}):a.jsx(Sc,{virtualMcpId:r.id})})]}),t[23]=r,t[24]=m.publish,t[25]=v):v=t[25];let w;return t[26]!==g||t[27]!==x||t[28]!==P||t[29]!==y||t[30]!==v?(w=a.jsxs(a.Fragment,{children:[g,x,P,y,v]}),t[26]=g,t[27]=x,t[28]=P,t[29]=y,t[30]=v,t[31]=w):w=t[31],w}export{Ad as S};
@@ -1 +0,0 @@
1
- import{c as u,r as g,j as n,H as F,$ as G,a0 as H,a as E,k as P,b as O,n as y,L as M}from"./index-Ce7G0he3.js";import{C as V}from"./chat-context-DIvwe-Wr.js";import{C as x}from"./index-uE3tVNL6.js";import{L}from"./index-xw_Jw9LH.js";import{B as K}from"./blocks-preview-workspace-context-LeIpajCL.js";import{e as T,p as W,s as J,a as U,r as z,T as $,u as R,b as q}from"./site-editor-toast-DwH2UhLV.js";import{u as Q,L as B,P as X,S as Y}from"./preview-tab-DieLxroc.js";import{C as Z}from"./content-tab-BhOwV-AC.js";import{T as tt}from"./tab-icon-glyph-ixZicBgd.js";import{r as et}from"./resolve-tab-icon-DdbyVt-l.js";import ot from"./agent-site-editor-5gjIAuRv.js";import"./use-panel-navigate-C-mQZt-r.js";import"./thread-route-D14ghtgQ.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./autosend-CxxtAFJ_.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./use-decopilot-events-CMhdGvid.js";import"./use-ai-providers-DmHiyABc.js";import"./location-V0VwTJTt.js";import"./use-organization-settings-DAQWwUyU.js";import"./use-mobile-BZz7cwuI.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./required-auth-layout-pDiTStrv.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";import"./core.esm-Brf7c66K.js";import"./sortable.esm-GfRDqHVM.js";import"./context-menu-CFt3f_Gb.js";import"./create-organization-dialog-Dshiy6sU.js";import"./form-nJy5zMPE.js";import"./project-apps-B_x_Bovr.js";import"./use-recent-apps-CahLdkOq.js";import"./use-session-runtime-CL3Ry0XG.js";import"./experiments-tab-choice-CY-Qbhut.js";import"./sandbox-url-D3mC8qhT.js";import"./utils-C_XIOzcP.js";import"./use-sandbox-events-DKnAt9WL.js";import"./sandbox-git-api-DcqI6XE4.js";import"./held-block-view-tvHMvR4T.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-D40XxJSs.js";import"./collapsible-zPk-2gi_.js";import"./use-copy-DGCMROZD.js";import"./usage-stats-CtXF_bWd.js";import"./tool-namespace-C-2tGGMF.js";import"./utils-CVEq3hMx.js";import"./markdown-UmudOdor.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PAwZvEJj.js";import"./types-9H7KFAzM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-connection-DdV5v_sO.js";import"./use-mcp-prompts-Duq-F4uG.js";import"./use-thread-outputs-wHP5lV5E.js";import"./file-type-icon-CeBZX69W.js";import"./section-array-field-DJWSUlEO.js";import"./alert-CRToIlco.js";import"./parse-sections-6LYwkRXc.js";import"./blocks-tab-states-BrRgLQ_Y.js";import"./slider-wRMQIU5C.js";import"./index-DjOPmK0D.js";import"./index-BdQq_4o_.js";import"./tooltipContext-BMB7e6XT.js";import"./CategoricalChart-C9NLmvFO.js";import"./index-tffbmy1v.js";import"./ActiveShapeUtils-Br894ljM.js";import"./Sector-mFZOIMSW.js";import"./symbol-D9upvJXv.js";import"./empty-state-BiIeVz7z.js";import"./switch-Be6f0Lf5.js";import"./textarea-CiBj0MLq.js";import"./popover-BF3N_cWR.js";import"./scroll-area-DmCvljJ6.js";import"./monaco-editor-Cc-5fhHI.js";import"./editor-CiOoO-Ym.js";import"./calendar-C7teLmhJ.js";import"./select-BU91L4uy.js";import"./editor-classes-DNAm8ZAW.js";import"./toggle-group-BVSslRda.js";import"./active-indicator-CCMhAsc_.js";import"./combobox-BZSt-sf0.js";import"./search-input-DuxKe01B.js";import"./tabs-CTBn6AHY.js";import"./use-file-configs-B-dtUlcn.js";import"./asset-utils-B46ygA_L.js";import"./match-site-slug-config-D3fUJ6vX.js";import"./sandbox-lifecycle-context-C-6LRZKK.js";import"./variant-matcher-override-BfAJFrjh.js";import"./variant-draft-pointer-BeAKcq_c.js";import"./section-preview-url-7zfngvgW.js";import"./use-fast-preview-draft-url-5-OqnV1z.js";import"./preview-link-C762yHOt.js";import"./useQueries-bayVPMWC.js";import"./device-hint-SeLRi17j.js";import"./virtual-mcp-BfSfmNNT.js";import"./url-slug-CrYfl8wu.js";import"./app-preview-url-9Od4s8Sz.js";import"./preview-source-BsRLGWUP.js";import"./use-task-metadata-CaEOmtPV.js";import"./view-header-BlWEzmVd.js";import"./mustache-CKGDjf9j.js";import"./hosted-publish-feedback-DxOmBJxT.js";import"./checkbox-CW4Dzojp.js";import"./date-utils-CrvIKg-s.js";import"./use-move-blocks-DUpXqrhw.js";import"./badge-zxuYXquF.js";import"./empty-state-ErDRcN-P.js";import"./use-cms-publish-actions-Ca_6MHNE.js";import"./collection-table-wrapper-vDq2vkVG.js";import"./table-Sgqiv7ow.js";import"./site-draft-actions-Ck3uf8oy.js";import"./separator-C2eDbIfB.js";import"./use-releases-Drxi11Hn.js";import"./serial-task-queue-CGOeQgpr.js";import"./index-BK_RqkJq.js";import"./drawer-w05H8pBO.js";import"./input-B45cW293.js";import"./icon-button-Xe7zTqiw.js";import"./chat-draft-DByw699W.js";import"./use-deco-credits-8Cm_6S2l.js";import"./use-open-billing-url-AHjpaAXa.js";import"./index-B8jtRR0H.js";import"./ai-providers-logos-DD3qZ33J.js";import"./input-CzPtcD68.js";import"./suggestion-GTJqe6wD.js";import"./use-org-fs-8kFrjmMH.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-C560RaP5.js";import"./plan-ladder-DyKNTGpe.js";import"./add-connection-dialog-MrHyqJnn.js";import"./extract-connection-data-C02FZ5zb.js";import"./metadata-D72DunRR.js";import"./connection-amzL9L9Z.js";import"./connection-card-D8aS8J6Q.js";import"./connection-slug-CITJ0kGN.js";import"./schema-DjHUnA9X.js";import"./connection-form-helpers-TT6AKW6f.js";import"./authenticate-and-persist-oauth-08aLFUVr.js";import"./mcp-oauth-Cz4RwYAs.js";import"./mcp-oauth-qpkBxX91.js";import"./collection-tabs-C3pu5E-Q.js";import"./use-infinite-scroll-Boo11DpH.js";import"./useSuspenseInfiniteQuery-BCXHmK3t.js";import"./use-task-board-events-Bs2sMvhO.js";import"./named-rule-uses-Drzf8cgA.js";import"./save-changes-debug-nBi-n9eV.js";import"./releases-api-Dz4kituq.js";function I(e){return e.kind==="unavailable"&&e.source==="local"&&(e.problem?.reason??"not-answering")==="not-answering"}const it=e=>e;function rt(e){const t=u.c(10),{candidates:o,invalidLink:c,shell:m,editor:i}=e,r=c===void 0?!1:c,s=m===void 0?it:m,[p,l]=g.useState(null);if(p){let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),t[0]=f):f=t[0];let h;return t[1]!==p||t[2]!==i?(h=i(p,f),t[1]=p,t[2]=i,t[3]=h):h=t[3],h}let a;t[4]!==o||t[5]!==r?(a=n.jsx(nt,{candidates:o,invalidLink:r,onConnect:l}),t[4]=o,t[5]=r,t[6]=a):a=t[6];let d;return t[7]!==s||t[8]!==a?(d=s(a),t[7]=s,t[8]=a,t[9]=d):d=t[9],d}function nt(e){const t=u.c(17),{candidates:o,invalidLink:c,onConnect:m}=e,i=c===void 0?!1:c,[r]=F(),{language:s}=r;let p;t[0]!==m?(p=D=>m({endpoint:D}),t[0]=m,t[1]=p):p=t[1];let l;t[2]!==o||t[3]!==p?(l={candidates:o,onFound:p},t[2]=o,t[3]=p,t[4]=l):l=t[4];const a=Q(l),{state:d,access:f,needsGesture:h}=a;let k;t[5]!==o||t[6]!==s?(k=new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(o.map(T)),t[5]=o,t[6]=s,t[7]=k):k=t[7];const C=k;let j;t[8]!==f||t[9]!==a.start||t[10]!==h||t[11]!==d?(j=f==="denied"?{kind:"denied"}:h?{kind:"needs-gesture",onStart:a.start}:d.problem?{kind:"problem",problem:d.problem,host:T(d.problem.endpoint)}:{kind:"looking",paused:d.status==="paused"},t[8]=f,t[9]=a.start,t[10]=h,t[11]=d,t[12]=j):j=t[12];const _=j;let S;return t[13]!==C||t[14]!==i||t[15]!==_?(S=n.jsx(B,{wait:_,hosts:C,invalidLink:i}),t[13]=C,t[14]=i,t[15]=_,t[16]=S):S=t[16],S}const v="deco-serve",w="working-tree",st={id:"",slug:"",name:"",logo:null},mt={id:v,slug:v},pt={virtualMcpId:v,taskId:null,openTask:()=>{},createTask:()=>"",createTaskWithMessage:()=>{},activeTask:null,isThreadLocked:!1,lockedHarness:null,lockedBranch:null,currentBranch:w,setCurrentTaskBranch:()=>{}};function at(){const e=window.location.hash,t=new URLSearchParams(e.replace(/^#/,"")).has("endpoint"),o=t?W(e):null;return t&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o&&J(o),{candidates:U(o,z()),invalidLink:t&&!o}}const ct=[{id:"site-editor",to:"/site-editor",label:"preview"},{id:"content",to:"/site-editor/content",label:"content"}];function lt(){const e=u.c(6),t=O();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:dt},e[0]=o):o=e[0];const c=P(o);let m;e[1]!==t||e[2]!==c?(m=ct.map(r=>n.jsx(y.Tab,{asChild:!0,active:c==="content"==(r.id==="content"),children:n.jsxs(M,{to:r.to,activeOptions:{exact:!0},children:[n.jsx("span",{"aria-hidden":"true",className:"flex size-4 shrink-0 items-center justify-center",children:n.jsx(tt,{icon:et({tabId:r.id,kind:"system",connections:[]})})}),t(`common.mainPanelTabs.${r.label}`)]})},r.id)),e[1]=t,e[2]=c,e[3]=m):m=e[3];let i;return e[4]!==m?(i=n.jsx(y.Tabs,{children:m}),e[4]=m,e[5]=i):i=e[5],i}function dt(e){return e.matches.at(-1)?.staticData.siteEditorView}function N(e){const t=u.c(14),{children:o}=e,c=O(),{connection:m}=q(v),i=R(v,w);let r,s;if(t[0]!==i||t[1]!==o||t[2]!==m||t[3]!==c){s=Symbol.for("react.early_return_sentinel");t:{if(r=m?T(m.endpoint):"",i.kind==="protocol"){s=o;break t}if(i.kind!=="unavailable"||I(i)){s=n.jsx(Y,{headingLevel:2,waiting:!0,title:c("decoServe.connect.reaching",{host:r})});break t}}t[0]=i,t[1]=o,t[2]=m,t[3]=c,t[4]=r,t[5]=s}else r=t[4],s=t[5];if(s!==Symbol.for("react.early_return_sentinel"))return s;let p;t[6]!==i.problem?(p=i.problem??{reason:"not-answering"},t[6]=i.problem,t[7]=p):p=t[7];let l;t[8]!==r||t[9]!==p?(l={kind:"problem",problem:p,host:r},t[8]=r,t[9]=p,t[10]=l):l=t[10];let a;return t[11]!==r||t[12]!==l?(a=n.jsx(B,{wait:l,hosts:r}),t[11]=r,t[12]=l,t[13]=a):a=t[13],a}function ut(e){const t=u.c(6),{onLost:o}=e,c=R(v,w);let m;t[0]!==c?(m=I(c),t[0]=c,t[1]=m):m=t[1];const i=m;let r,s;return t[2]!==i||t[3]!==o?(r=()=>{i&&o()},s=[i,o],t[2]=i,t[3]=o,t[4]=r,t[5]=s):(r=t[4],s=t[5]),g.useEffect(r,s),null}const A={threadOpen:!1,contentOpen:!0,threadVisibilityExplicit:!1,toggleThread:()=>{},toggleContent:()=>{}};function ft(){const e=u.c(11),{data:t}=E.useSession();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={select:ht},e[0]=o):o=e[0];const c=P(o),m=!!t?.user;let i;e[1]!==m?(i={rail:m},e[1]=m,e[2]=i):i=e[2];const r=c??"preview";let s,p,l;e[3]===Symbol.for("react.memo_cache_sentinel")?(s=n.jsx(lt,{}),p=n.jsx(x.Thread,{children:null}),l=n.jsx(ot,{}),e[3]=s,e[4]=p,e[5]=l):(s=e[3],p=e[4],l=e[5]);let a;e[6]!==r?(a=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:r,contentNavigation:s,children:[p,l]})}),e[6]=r,e[7]=a):a=e[7];let d;return e[8]!==i||e[9]!==a?(d=n.jsx(L,{outsideOrg:i,children:a}),e[8]=i,e[9]=a,e[10]=d):d=e[10],d}function ht(e){return e.matches.at(-1)?.staticData.siteEditorView}function vt(e){const t=u.c(8),{children:o}=e,{data:c}=E.useSession(),m=!!c?.user;let i;t[0]!==m?(i={rail:m},t[0]=m,t[1]=i):i=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=n.jsx(x.Thread,{children:null}),t[2]=r):r=t[2];let s;t[3]!==o?(s=n.jsx(L.Content,{children:n.jsxs(x,{...A,threadless:!0,contentKey:"guide",children:[r,n.jsx(x.Content,{children:o})]})}),t[3]=o,t[4]=s):s=t[4];let p;return t[5]!==i||t[6]!==s?(p=n.jsx(L,{outsideOrg:i,children:s}),t[5]=i,t[6]=s,t[7]=p):p=t[7],p}const b=()=>{},xt={connection:null,set:b,clear:b};function dr(){const e=u.c(3),[t]=g.useState(at);let o;return e[0]!==t.candidates||e[1]!==t.invalidLink?(o=n.jsx(G,{value:!0,children:n.jsx(H,{org:st,project:mt,children:n.jsx(rt,{candidates:t.candidates,invalidLink:t.invalidLink,shell:jt,editor:kt})})}),e[0]=t.candidates,e[1]=t.invalidLink,e[2]=o):o=e[2],o}function kt(e,t){return n.jsxs($.Provider,{value:{connection:e,set:b,clear:b},children:[n.jsx(ut,{onLost:t}),n.jsx(V,{value:pt,children:n.jsx(K,{children:n.jsx(ft,{})})})]})}function jt(e){return n.jsx($.Provider,{value:xt,children:n.jsx(vt,{children:e})})}function ur(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(X,{virtualMcpId:v})}),e[0]=t):t=e[0],t}function fr(){const e=u.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsx(N,{children:n.jsx(Z,{virtualMcpId:v})}),e[0]=t):t=e[0],t}export{fr as SiteEditorContent,ur as SiteEditorPreview,dr as default};
@@ -1 +0,0 @@
1
- import{c as l,a4 as n,j as r,K as f}from"./index-Ce7G0he3.js";import{C as d}from"./index-uE3tVNL6.js";import{m as u,P as x,T as h}from"./mock-board-BSsrmRDS.js";import{F as j}from"./feature-gate-CE1MLoN2.js";import"./use-mobile-BZz7cwuI.js";import"./use-sidebar-collapsed-CbzeRAk-.js";import"./use-chat-layout-state-DEHPkPVs.js";import"./thread-route-D14ghtgQ.js";import"./use-panel-navigate-C-mQZt-r.js";import"./use-project-scope-DYBc2cnp.js";import"./repository-binding-Dg4XMxXs.js";import"./use-mcp-client-B9-9jnHW.js";import"./auth-AQB7DTaB.js";import"./thread-intent-ClCyX82j.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-D5nA1051.js";import"./task-board-B-WXUk04.js";import"./schema-4d6JAPZJ.js";import"./slugify-CEUa2lfQ.js";import"./agent-icon-I45DkNr8.js";import"./AlertCircle-DwVsFaci.js";import"./Tool01-CIeMmnyv.js";import"./ArrowUp-BHvj9x12.js";import"./ArrowLeft-D0U_UeWA.js";import"./LinkBroken01-Bg7pBcuJ.js";import"./ShoppingBag01-GpZCrbBR.js";import"./ZoomOut-D8_eDbPl.js";import"./Building02-4g278Kck.js";import"./CheckCircle-0mdIkBLG.js";import"./ChevronUp-Cn8PaBxH.js";import"./ChevronSelectorVertical-BRbuqJl7.js";import"./UserSquare-pnEdx237.js";import"./Copy01-D6STLVd9.js";import"./CreditCard01-CAW-vU_p.js";import"./DotsVertical-C5Wc2qWf.js";import"./Image01-D00jtGx4.js";import"./Globe04-COPfJ3z-.js";import"./SwitchHorizontal01-CMpEiSPu.js";import"./Key01-CiK2_UxI.js";import"./Link01-CEOBycf2.js";import"./Minus-_SQ5lvlh.js";import"./Monitor01-DyqIpSTl.js";import"./Sun-BG4-BfE7.js";import"./Play-BnWEmJaV.js";import"./Plus-BPVKrQFz.js";import"./SearchMd-OaBCBVrZ.js";import"./Trash01-BLXgUBsw.js";import"./Upload01-CgYtU1Ux.js";import"./Users01-D-rlhQmk.js";import"./XClose-yFNn0LgD.js";import"./tooltip-BHLCIkH9.js";import"./index-DZ7OjEm4.js";import"./toolbar-icon-button-3L1Mfrbu.js";import"./shell-layout-DjxWvBNL.js";import"./use-clock-tick-C1thlLib.js";import"./command-CSPNVB8c.js";import"./index-BJTbyKBB.js";import"./integration-icon-Cs3IASPS.js";import"./project-icon-Cgbmeoa9.js";import"./new-project-dialog-D3vjD1Ks.js";import"./label-ivnVLsJB.js";import"./repository-import-picker-BZ7PPi9W.js";import"./use-navigate-to-agent-CEpb-TPy.js";import"./repository-picker-aA12wSzy.js";import"./useInfiniteQuery-DAGt4Ai1.js";import"./infiniteQueryObserver-BJujpYxh.js";import"./collection-search-kUVZkueq.js";import"./use-debounced-value-D4hMc82O.js";import"./use-organization-settings-DAQWwUyU.js";import"./required-auth-layout-pDiTStrv.js";import"./autosend-CxxtAFJ_.js";import"./use-org-sso-l3h7LAOC.js";import"./sheet-CyFkbR9Y.js";import"./resizable-HiC69AzM.js";import"./core.esm-Brf7c66K.js";import"./sortable.esm-GfRDqHVM.js";import"./use-task-board-analytics-BkPBycom.js";import"./combobox-BZSt-sf0.js";import"./popover-BF3N_cWR.js";import"./usage-stats-CtXF_bWd.js";import"./tool-namespace-C-2tGGMF.js";import"./form-nJy5zMPE.js";import"./utils-CVEq3hMx.js";import"./markdown-UmudOdor.js";import"./use-copy-DGCMROZD.js";import"./location-V0VwTJTt.js";import"./use-decopilot-events-CMhdGvid.js";import"./chat-context-DIvwe-Wr.js";import"./use-ai-providers-DmHiyABc.js";import"./suggestion-GTJqe6wD.js";import"./column-rules-Dz5XFx3r.js";import"./badge-zxuYXquF.js";import"./icon-button-Xe7zTqiw.js";import"./switch-Be6f0Lf5.js";import"./textarea-CiBj0MLq.js";import"./use-org-fs-8kFrjmMH.js";import"./use-automations-BeX04Bm6.js";import"./search-toggle-5fjHehxP.js";import"./context-menu-CFt3f_Gb.js";import"./daily-pulse-DglWu2t-.js";import"./use-task-board-events-Bs2sMvhO.js";import"./config-B7tLWM1b.js";import"./select-BU91L4uy.js";import"./index-BdQq_4o_.js";import"./task-route-D7L_AjBa.js";import"./task-key-BCHdFiOO.js";import"./task-assignee-avatar-CgqfXsXT.js";import"./use-tags-Af_mmSB1.js";import"./calendar-C7teLmhJ.js";import"./alert-CRToIlco.js";import"./collapsible-zPk-2gi_.js";import"./index-ComxOMRa.js";import"./editor-classes-DNAm8ZAW.js";import"./index-BzwMZ-96.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-task-board-item-prs-DtKTjCYS.js";import"./use-connection-DdV5v_sO.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-BCarr4x7.js";import"./useSuspenseInfiniteQuery-BCXHmK3t.js";import"./pair-D40XxJSs.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PAwZvEJj.js";import"./types-9H7KFAzM.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-mcp-prompts-Duq-F4uG.js";import"./use-thread-outputs-wHP5lV5E.js";import"./file-type-icon-CeBZX69W.js";import"./use-infinite-scroll-Boo11DpH.js";import"./task-status-D47mg_UC.js";import"./use-open-billing-url-AHjpaAXa.js";import"./chat-draft-DByw699W.js";import"./separator-C2eDbIfB.js";import"./feature-paywall-C560RaP5.js";import"./plan-ladder-DyKNTGpe.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(h,{})}),t[0]=o):o=t[0],o}function Mo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Mo as default};