decocms 4.599.1 → 4.600.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 (431) hide show
  1. package/dist/client/assets/{AlertCircle-B3Cju_A1.js → AlertCircle-CShy6yDX.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BsdSPBeq.js → AreaChart-BGct6q9f.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-JqakTihq.js → ArrowLeft-WKtVHs-Z.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-BfeXu93i.js → ArrowRight-FtSbCfTm.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-BfNOj71J.js → ArrowUp-DEEf-mtS.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-BKu_pkwc.js → BookOpen01-2E_0y9OX.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-B2J6nOBs.js → CartesianChart-UZ4xQJUQ.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DBuZ9FMz.js → CategoricalChart-CENUMi_W.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Bai2UKV6.js → CheckCircle-DZKYp081.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-Z_rS_qxi.js → ChevronDown-DZmwX-ra.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-RCMLCOHU.js → ChevronSelectorVertical-BBSQj61f.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Dw-CS8VU.js → ChevronUp-up6pfAf9.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-r4fHrP_W.js → CreditCard01-BPmia42q.js} +1 -1
  14. package/dist/client/assets/{Eye-ByR79fPG.js → Eye-BuU02LHf.js} +1 -1
  15. package/dist/client/assets/{File02-t5qv63Kr.js → File02-C19wgG-g.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-CS__1Y5O.js → Fingerprint04-D5Hh-Z6T.js} +1 -1
  17. package/dist/client/assets/{Globe04-eZsWB_1O.js → Globe04-BStLKLZ2.js} +1 -1
  18. package/dist/client/assets/{Image01-DDNpzV54.js → Image01-DPsmXJM9.js} +1 -1
  19. package/dist/client/assets/{Key01-Bw_fJ2tr.js → Key01-7I5yC-jW.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-DitqlfzI.js → LayoutLeft-DUAhH4Wy.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-luAAtNTl.js → LinkBroken01-DGLo0pdz.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-BCGadvZ4.js → MessageCircle01-BSvG5u-_.js} +1 -1
  23. package/dist/client/assets/{Minus-4VQcuoJL.js → Minus-BWHpZUKs.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Cl-96JXO.js → Monitor01-docIVUl5.js} +1 -1
  25. package/dist/client/assets/{Play-tK-cgr7Z.js → Play-2z1E087w.js} +1 -1
  26. package/dist/client/assets/{Plus-Bt6EBJN9.js → Plus-D8wmiIrv.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-DavZGnWR.js → ReferenceLine-C2TsGNU_.js} +1 -1
  28. package/dist/client/assets/{SearchMd-CAXH4rmA.js → SearchMd-DL0DTMXc.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BaVX9GKu.js → ShoppingBag01-BvzxucRv.js} +1 -1
  30. package/dist/client/assets/{Sun-CdW70nGr.js → Sun-BiUlQLmT.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-CTbodgu_.js → SwitchHorizontal01-C2pVU_4J.js} +1 -1
  32. package/dist/client/assets/{Tool01-C-ZDvUZB.js → Tool01-Cvtzb7gx.js} +1 -1
  33. package/dist/client/assets/{Tooltip-Bs_AOl1u.js → Tooltip-B1SzrgTJ.js} +1 -1
  34. package/dist/client/assets/{Trash01-ytRgJXDs.js → Trash01-9RQC1f5G.js} +1 -1
  35. package/dist/client/assets/{Upload01-BOEdYpIY.js → Upload01-3Gw-mR9u.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-KC3-wNT4.js → UserCheck01-BsbnQ5ut.js} +1 -1
  37. package/dist/client/assets/{UserSquare-DxDl1vQw.js → UserSquare-B3Bg0K9g.js} +1 -1
  38. package/dist/client/assets/{Users01-BgoP6eBE.js → Users01-w98WkMA8.js} +1 -1
  39. package/dist/client/assets/{XClose-BWSiI7cY.js → XClose-rn7BTPbt.js} +1 -1
  40. package/dist/client/assets/{Zap-CMTLEaPZ.js → Zap-DuqrcICg.js} +1 -1
  41. package/dist/client/assets/{access-gate-BVJuKD5u.js → access-gate-DW6dT6hG.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-Dd6qUk0_.js → add-connection-dialog-41qDOna8.js} +1 -1
  43. package/dist/client/assets/agent-app-BE36cFAC.js +1 -0
  44. package/dist/client/assets/{agent-assets-D7IFK2u6.js → agent-assets-kUGQRLuY.js} +1 -1
  45. package/dist/client/assets/{agent-automation-Dqr66VRD.js → agent-automation-D56n8lJY.js} +1 -1
  46. package/dist/client/assets/{agent-automations-B-cayf1l.js → agent-automations-BAB9lGNM.js} +1 -1
  47. package/dist/client/assets/{agent-blog-post-BmC5e1CB.js → agent-blog-post-4NG_W-ic.js} +2 -2
  48. package/dist/client/assets/{agent-blog-DNqbIZhQ.js → agent-blog-wzJ7xZUr.js} +2 -2
  49. package/dist/client/assets/{agent-calendar-CGWNrJU1.js → agent-calendar-Df_iHtIm.js} +1 -1
  50. package/dist/client/assets/{agent-capabilities-DVIfP_3x.js → agent-capabilities-DfwZEM8H.js} +1 -1
  51. package/dist/client/assets/{agent-connect-sources-DONUYUMZ.js → agent-connect-sources-DX3x7-FY.js} +1 -1
  52. package/dist/client/assets/agent-deck-CaQ-cUn9.js +1 -0
  53. package/dist/client/assets/{agent-e2e-CF4V4H-e.js → agent-e2e-Dcub2PY1.js} +1 -1
  54. package/dist/client/assets/agent-experiments-BIjkBrDb.js +1 -0
  55. package/dist/client/assets/agent-file-Dft8zwWy.js +1 -0
  56. package/dist/client/assets/{agent-hosting-DfbypUu6.js → agent-hosting-DOle-P9z.js} +1 -1
  57. package/dist/client/assets/{agent-icon-C9GKvk-e.js → agent-icon-BmlBo_mr.js} +1 -1
  58. package/dist/client/assets/agent-library-Bp6rWEFG.js +1 -0
  59. package/dist/client/assets/agent-library-file-CFX46C1f.js +1 -0
  60. package/dist/client/assets/agent-overview-Scs4YPy1.js +1 -0
  61. package/dist/client/assets/{agent-releases-CDUCakHy.js → agent-releases-CVqZP5oT.js} +1 -1
  62. package/dist/client/assets/agent-settings-H4zJXShv.js +1 -0
  63. package/dist/client/assets/{agent-site-editor-BcuMd815.js → agent-site-editor-CloXRQ-i.js} +1 -1
  64. package/dist/client/assets/agent-site-editor-code-68kgy3y_.js +2 -0
  65. package/dist/client/assets/agent-site-editor-content-CBaeiU7Y.js +1 -0
  66. package/dist/client/assets/agent-site-editor-preview-Cao70n6T.js +1 -0
  67. package/dist/client/assets/agent-view-CqlrAct7.js +1 -0
  68. package/dist/client/assets/{agent-view-guard-D3IrJ2pB.js → agent-view-guard-BsUiX4Ya.js} +1 -1
  69. package/dist/client/assets/{ai-providers-DT8NtC5T.js → ai-providers-4GV0vhZ4.js} +1 -1
  70. package/dist/client/assets/{alert-YvAcIPfD.js → alert-B0-bUkHo.js} +1 -1
  71. package/dist/client/assets/{analytics-sections-CAyS8DyK.js → analytics-sections-C_a4Zs81.js} +1 -1
  72. package/dist/client/assets/api-keys-B3ujQmM7.js +1 -0
  73. package/dist/client/assets/{api-keys-BPzuRc-M.js → api-keys-Drrcn4S1.js} +1 -1
  74. package/dist/client/assets/{app-editor-TtdXe81N.js → app-editor-COdhXw4U.js} +1 -1
  75. package/dist/client/assets/{asset-utils-DkEGuNqu.js → asset-utils-lEJDqLJA.js} +1 -1
  76. package/dist/client/assets/{auth--eLPRq84.js → auth-MiTZGjji.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-DpLKjz58.js → auth-catchall-BrFXd0V5.js} +1 -1
  78. package/dist/client/assets/{auth-entry-C3cGEdiS.js → auth-entry-uafFmpu3.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-Ddozb4KH.js → auth-split-layout-Cuozobog.js} +1 -1
  80. package/dist/client/assets/{authenticate-and-persist-oauth-shYrq4La.js → authenticate-and-persist-oauth-BMCgWPAs.js} +1 -1
  81. package/dist/client/assets/{automation-list-row-BZWj_XiT.js → automation-list-row-DjLl_-Ic.js} +1 -1
  82. package/dist/client/assets/{automation-runs--iVmaeqN.js → automation-runs-B1vurEol.js} +1 -1
  83. package/dist/client/assets/{automations-C7qd51Xe.js → automations-DO8SymUj.js} +1 -1
  84. package/dist/client/assets/{badge-avpdistF.js → badge-PmwnY4hy.js} +1 -1
  85. package/dist/client/assets/{block-document-BbOQ5Bgg.js → block-document-C4GUR02r.js} +1 -1
  86. package/dist/client/assets/{blocks-preview-workspace-context-DdpnRJ9X.js → blocks-preview-workspace-context-CEy6ana7.js} +1 -1
  87. package/dist/client/assets/{blocks-tab-states-CTVyHe6z.js → blocks-tab-states-jg37ZdSd.js} +1 -1
  88. package/dist/client/assets/{blog-preview-url-BU9XBgO3.js → blog-preview-url-D3OQhPrj.js} +1 -1
  89. package/dist/client/assets/{blog-schema-Ds6Jj5I-.js → blog-schema-LnsH0S5I.js} +1 -1
  90. package/dist/client/assets/{blog-source-gate-DCgXp6Ju.js → blog-source-gate-votguItQ.js} +1 -1
  91. package/dist/client/assets/{blog-view-gate-DWVA7m5c.js → blog-view-gate-LkoX3aVt.js} +1 -1
  92. package/dist/client/assets/{buckets-Y87IksOl.js → buckets-9o7-FCAF.js} +1 -1
  93. package/dist/client/assets/{build-improve-prompt-doc-Bi0VCd8D.js → build-improve-prompt-doc-DTfd4sR5.js} +1 -1
  94. package/dist/client/assets/{calendar-BuXbAP5n.js → calendar-Dw9g3jCh.js} +1 -1
  95. package/dist/client/assets/{capability-load-error-cAPMVAHC.js → capability-load-error-DREzOdAI.js} +1 -1
  96. package/dist/client/assets/{category-editor-2c10Qh_n.js → category-editor-U2mE2Uq7.js} +1 -1
  97. package/dist/client/assets/{category-tree-mmseCBUa.js → category-tree-CT1N50Br.js} +1 -1
  98. package/dist/client/assets/{chart-D9DSNvRd.js → chart-Bv3hFD74.js} +1 -1
  99. package/dist/client/assets/chat-context-B0mIAvmD.js +44 -0
  100. package/dist/client/assets/{chat-draft-BVrXwzRU.js → chat-draft-9D8O6IhX.js} +1 -1
  101. package/dist/client/assets/{checkbox-CqmFYhCZ.js → checkbox-B1JBiKHt.js} +1 -1
  102. package/dist/client/assets/{choose-editor-DwrHzqQy.js → choose-editor-DyATHiiR.js} +1 -1
  103. package/dist/client/assets/{cli-auth-success-BSu55W2n.js → cli-auth-success-BDHfhdbq.js} +1 -1
  104. package/dist/client/assets/{cms-settings-editor-CAGzz2gD.js → cms-settings-editor-BApbMHHr.js} +1 -1
  105. package/dist/client/assets/{cms-store-drafts-d3sWemvr.js → cms-store-drafts-46Bd4H4I.js} +1 -1
  106. package/dist/client/assets/{collapsible-CQV85QWM.js → collapsible-MMZS4bUW.js} +1 -1
  107. package/dist/client/assets/{collection-detail-CVdo1nA-.js → collection-detail-DDWfF_wY.js} +1 -1
  108. package/dist/client/assets/{collection-display-button-Chm2IVwH.js → collection-display-button-CNU2B9PT.js} +1 -1
  109. package/dist/client/assets/{collection-search-Bs14bntm.js → collection-search-RaF1TESZ.js} +1 -1
  110. package/dist/client/assets/{collection-table-wrapper-DstkDyhq.js → collection-table-wrapper-DkHLZ70L.js} +1 -1
  111. package/dist/client/assets/{collection-tabs-B1B3kiNc.js → collection-tabs-DQ1qcrf-.js} +1 -1
  112. package/dist/client/assets/{combobox-CSfT_sOf.js → combobox-1zkSCtBC.js} +1 -1
  113. package/dist/client/assets/{command-B6OM034H.js → command-lFozjt-f.js} +1 -1
  114. package/dist/client/assets/{companion-mcps-section-BWu0Oyod.js → companion-mcps-section-Cx6ucwDV.js} +1 -1
  115. package/dist/client/assets/{config-CO0pdfAU.js → config-ENUSei4z.js} +1 -1
  116. package/dist/client/assets/{connect-DbJXn--P.js → connect-D5WcJbVU.js} +1 -1
  117. package/dist/client/assets/{connect-key-CI99u1f8.js → connect-key-C6BV1Iwv.js} +1 -1
  118. package/dist/client/assets/{connect-layout-BuHzqoIz.js → connect-layout-DjV0E6Nl.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-Cp059vVQ.js → connect-source-dialog-D2l3M31x.js} +1 -1
  120. package/dist/client/assets/{connection-DpMMt2Al.js → connection-BjfhQTvi.js} +1 -1
  121. package/dist/client/assets/{connection-card-B3-Hg3n9.js → connection-card-CDIRX7rw.js} +1 -1
  122. package/dist/client/assets/{connection-detail-CEYdmhTO.js → connection-detail-BIzjJxFf.js} +1 -1
  123. package/dist/client/assets/{connection-form-helpers-BxJ9sr65.js → connection-form-helpers-qS_yNMNY.js} +1 -1
  124. package/dist/client/assets/{connection-slug-CGS3F6kQ.js → connection-slug-C1NpnAPZ.js} +1 -1
  125. package/dist/client/assets/{connections-Dvscv7NE.js → connections-D27uBCQp.js} +1 -1
  126. package/dist/client/assets/{content-changes-tuzVZCgx.js → content-changes-D1-8LQ7K.js} +1 -1
  127. package/dist/client/assets/{content-tab-BtlTSMQt.js → content-tab-7Dmz1NiK.js} +3 -3
  128. package/dist/client/assets/{context-C1OSQBrp.js → context-DTrpa-1Y.js} +1 -1
  129. package/dist/client/assets/{context-menu-V5QJbjID.js → context-menu-C3x16EIQ.js} +1 -1
  130. package/dist/client/assets/{context-shell-B3sYm4Nc.js → context-shell-BFCtTuzW.js} +3 -3
  131. package/dist/client/assets/{create-organization-dialog-CajE7pCv.js → create-organization-dialog-D9cS-x9o.js} +1 -1
  132. package/dist/client/assets/{daily-pulse-Ik3rbsEk.js → daily-pulse-Bi3n0TDe.js} +1 -1
  133. package/dist/client/assets/{delete-copy-DR5_GWca.js → delete-copy-Bq1Zqo6Q.js} +1 -1
  134. package/dist/client/assets/{device-hint-YlY7adlI.js → device-hint-DxfHiV8Q.js} +1 -1
  135. package/dist/client/assets/{discover-Dg16AoDL.js → discover-MaWSe6AZ.js} +1 -1
  136. package/dist/client/assets/{domain-settings-DZcc4-KS.js → domain-settings-RGqBkuzr.js} +1 -1
  137. package/dist/client/assets/{drawer-DxUw9eFf.js → drawer-BaaFg3R1.js} +1 -1
  138. package/dist/client/assets/{editor-DC_MNFxo.js → editor-BJ1E4lJs.js} +1 -1
  139. package/dist/client/assets/{editor-classes-BxUv_3jy.js → editor-classes-BYet6QQd.js} +1 -1
  140. package/dist/client/assets/{empty-state-CLzYFhww.js → empty-state-csW-GeIV.js} +1 -1
  141. package/dist/client/assets/{empty-state-Cu_IoiIQ.js → empty-state-eYKU8nO4.js} +1 -1
  142. package/dist/client/assets/{experiments-tab-choice-DJMSmAMJ.js → experiments-tab-choice-C-ZtNaMR.js} +1 -1
  143. package/dist/client/assets/{extract-connection-data-De6gds1M.js → extract-connection-data-D3bUe5Lp.js} +1 -1
  144. package/dist/client/assets/{feature-gate-ikqHZ3hl.js → feature-gate-D1Gwsg7S.js} +1 -1
  145. package/dist/client/assets/{feature-paywall-2rUmTksa.js → feature-paywall-Cvsy56pL.js} +1 -1
  146. package/dist/client/assets/{file-explorer-C3fiWZ-2.js → file-explorer-Dt6KMNM7.js} +1 -1
  147. package/dist/client/assets/{file-preview-BeYqBSPk.js → file-preview-B4NZQa3r.js} +1 -1
  148. package/dist/client/assets/{file-share-button-CYcLwrJ0.js → file-share-button-D_zlUria.js} +1 -1
  149. package/dist/client/assets/{file-type-icon-D8TxRFpf.js → file-type-icon-DH9FvqO6.js} +1 -1
  150. package/dist/client/assets/{folder-icon-B_VvBXwZ.js → folder-icon-CH-z3EGp.js} +1 -1
  151. package/dist/client/assets/{form-BCsbxXDw.js → form-DoeHcF5c.js} +1 -1
  152. package/dist/client/assets/{frame-navigation-B--5v_fe.js → frame-navigation-B-UfCzDd.js} +1 -1
  153. package/dist/client/assets/{gateway-client-CxQSAdad.js → gateway-client-CJDxmxSa.js} +1 -1
  154. package/dist/client/assets/{general-DoAu8gpb.js → general-DG60NVm4.js} +1 -1
  155. package/dist/client/assets/{github-icon-Cubk8a0z.js → github-icon-Dv1ygj1J.js} +1 -1
  156. package/dist/client/assets/{held-block-view-Df32M-2X.js → held-block-view-BLxhK7ER.js} +1 -1
  157. package/dist/client/assets/{home-dnX5FTMr.js → home-C7A8b1LY.js} +1 -1
  158. package/dist/client/assets/{home-overview-CzA0m6aX.js → home-overview-CnKi_Tkp.js} +1 -1
  159. package/dist/client/assets/{hosted-reconcile-D17_ESTT.js → hosted-reconcile-C0aDIUim.js} +1 -1
  160. package/dist/client/assets/{icon-button-BWABQKeL.js → icon-button-A0UAzKos.js} +1 -1
  161. package/dist/client/assets/{index-_HFJcBkc.js → index-B9iPbSrA.js} +1 -1
  162. package/dist/client/assets/{index-CHLNAxVH.js → index-BDMu6bQ3.js} +1 -1
  163. package/dist/client/assets/{index-CEHcj0Bx.js → index-BMXIYEr-.js} +1 -1
  164. package/dist/client/assets/{index-DcLeMIKL.js → index-Bm1kfakF.js} +53 -37
  165. package/dist/client/assets/{index-Dl8q1CcJ.js → index-CImiuf_8.js} +1 -1
  166. package/dist/client/assets/{index-DeZO7qUc.js → index-CJbm-bjr.js} +1 -1
  167. package/dist/client/assets/{index-D2fEC1Pw.js → index-CgEIJt8V.js} +1 -1
  168. package/dist/client/assets/{index-uKgIl52k.js → index-Cs4d-rU4.js} +1 -1
  169. package/dist/client/assets/{index-CYM--kWR.js → index-Cwm5p5sk.js} +1 -1
  170. package/dist/client/assets/{index-R8qCKBJh.js → index-CymE2fVz.js} +1 -1
  171. package/dist/client/assets/{index-DNnhV-B1.js → index-D4jxMGCU.js} +1 -1
  172. package/dist/client/assets/{index-2ipT6yjl.js → index-DeObvrTG.js} +1 -1
  173. package/dist/client/assets/{index-9yMnXFqj.js → index-DigLw4F8.js} +1 -1
  174. package/dist/client/assets/{index-DCKQCPhz.js → index-I8YXcNLQ.js} +1 -1
  175. package/dist/client/assets/{index-Dn_cufw0.js → index-PdC0-xb_.js} +1 -1
  176. package/dist/client/assets/{index-CKBK1RzI.js → index-QSfgjCsF.js} +1 -1
  177. package/dist/client/assets/{index-CyK6b5no.js → index-hXnS3gm2.js} +1 -1
  178. package/dist/client/assets/{index-redirect-OfDFB06k.js → index-redirect-DqxacVKg.js} +1 -1
  179. package/dist/client/assets/{infiniteQueryObserver-BduAjgKh.js → infiniteQueryObserver-DBJgsShk.js} +1 -1
  180. package/dist/client/assets/{infra-billing-BarSShxp.js → infra-billing-DWspnPMo.js} +1 -1
  181. package/dist/client/assets/{input-C-ooA3zJ.js → input-Cpkj1oOu.js} +3 -3
  182. package/dist/client/assets/{input-DvN7cWiN.js → input-Ml5iKJtl.js} +1 -1
  183. package/dist/client/assets/{integration-icon-D3jIGVDv.js → integration-icon-BhUObfAr.js} +1 -1
  184. package/dist/client/assets/{item-actions-oyU9qHS3.js → item-actions-SpeTllYG.js} +1 -1
  185. package/dist/client/assets/{jira-icon-kqMgohAx.js → jira-icon-Bq7voeGz.js} +1 -1
  186. package/dist/client/assets/{label-DRW5vmPi.js → label-D53IaeZS.js} +1 -1
  187. package/dist/client/assets/{layout-B9OnzE2R.js → layout-WvgScUGb.js} +1 -1
  188. package/dist/client/assets/{legacy-admin-welcome-dialog-CeWki_yJ.js → legacy-admin-welcome-dialog-CwPoX24t.js} +1 -1
  189. package/dist/client/assets/{legacy-agents-deep-DOuhXXex.js → legacy-agents-deep-jZOIaudw.js} +1 -1
  190. package/dist/client/assets/{legacy-main-redirect-E-5ipXxQ.js → legacy-main-redirect-BQJ5rRXx.js} +1 -1
  191. package/dist/client/assets/{library-tab-CCTaaB-2.js → library-tab-C3WzWO1U.js} +1 -1
  192. package/dist/client/assets/library-xWw2qc62.js +1 -0
  193. package/dist/client/assets/{login-yVpzfsha.js → login-C7zMUKPM.js} +1 -1
  194. package/dist/client/assets/{markdown-CcVSwBWB.js → markdown-CQMqqgOz.js} +1 -1
  195. package/dist/client/assets/{mcp-app-renderer-BCrbq15X.js → mcp-app-renderer-BfqxDRa0.js} +1 -1
  196. package/dist/client/assets/{mcp-oauth-D8u2dT0Q.js → mcp-oauth-B05XNx5F.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-DOo4CxTY.js → mcp-oauth-CSRaHoLv.js} +1 -1
  198. package/dist/client/assets/{members-D1wQ7XXr.js → members-BxAeAlCx.js} +1 -1
  199. package/dist/client/assets/{memory-COdJqfFo.js → memory-Cg_NtjT-.js} +1 -1
  200. package/dist/client/assets/{mock-board-BCstHDu0.js → mock-board-CYcWUp7f.js} +3 -3
  201. package/dist/client/assets/{monaco-editor-B1bc6mvy.js → monaco-editor-qCqkYYEk.js} +1 -1
  202. package/dist/client/assets/{monitoring-BXGBS5qB.js → monitoring-DyDWdk8h.js} +1 -1
  203. package/dist/client/assets/{monitoring-stats-row-CTmhOwcP.js → monitoring-stats-row-DPFWESTC.js} +1 -1
  204. package/dist/client/assets/{multi-select-ChiAd1Ul.js → multi-select-CGtuxiXI.js} +1 -1
  205. package/dist/client/assets/{mustache-BO0v10qs.js → mustache-BAZPoSXi.js} +1 -1
  206. package/dist/client/assets/{named-rule-step-DmKRerop.js → named-rule-step-DILtKyLq.js} +1 -1
  207. package/dist/client/assets/{named-rule-view-D8NvBKsI.js → named-rule-view-QDNMCidz.js} +1 -1
  208. package/dist/client/assets/{new-project-dialog-ChqvL2rz.js → new-project-dialog-D__ZumnI.js} +1 -1
  209. package/dist/client/assets/{new-project-store-DsU-by0h.js → new-project-store-f5bwc2gs.js} +1 -1
  210. package/dist/client/assets/{oauth-callback-ai-provider-D-15Ilgy.js → oauth-callback-ai-provider-BlkxqI4_.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-CgInov13.js → oauth-callback-ya17MbDE.js} +1 -1
  212. package/dist/client/assets/{oauth-consent-CqUeKLrF.js → oauth-consent-C3E6FGHS.js} +1 -1
  213. package/dist/client/assets/{onboarding-BEUWk9n3.js → onboarding-DtaTP4Sy.js} +1 -1
  214. package/dist/client/assets/{openai-conversation-iJHcLzqk.js → openai-conversation-BIGlcpdW.js} +1 -1
  215. package/dist/client/assets/{optimistic-project-sidebar-views-CeFeajR3.js → optimistic-project-sidebar-views-ClE6sl2t.js} +1 -1
  216. package/dist/client/assets/{order-monitor-day-DZ9fGPG8.js → order-monitor-day-R_omMSFk.js} +1 -1
  217. package/dist/client/assets/{organization-choice-Df1TrO72.js → organization-choice-IgtHSfgl.js} +1 -1
  218. package/dist/client/assets/{orgs-DRChrouP.js → orgs-BMnJ-Ls_.js} +1 -1
  219. package/dist/client/assets/{own-accounts-section-Dm9jurtw.js → own-accounts-section-CpFPP6tw.js} +1 -1
  220. package/dist/client/assets/{pair-BXwaA-uL.js → pair-CXG2-VJv.js} +1 -1
  221. package/dist/client/assets/{parse-sections-CAshll1C.js → parse-sections-C11X_OB5.js} +2 -2
  222. package/dist/client/assets/plan-CZZdqjy4.js +1 -0
  223. package/dist/client/assets/{plan-ladder-DcvH6Qa7.js → plan-ladder-CXooBnF6.js} +1 -1
  224. package/dist/client/assets/{plan-usage-card-g2Mtfon8.js → plan-usage-card-kjpt_e_z.js} +1 -1
  225. package/dist/client/assets/{popover-Bit5k9lh.js → popover-BCGMbo55.js} +1 -1
  226. package/dist/client/assets/{post-calendar-DF13MsRM.js → post-calendar-DgNCVo3o.js} +1 -1
  227. package/dist/client/assets/{post-editor-DqY67J2U.js → post-editor-x_K_37Vg.js} +1 -1
  228. package/dist/client/assets/{preview-content-7avOlGvv.js → preview-content-awbhTKCR.js} +1 -1
  229. package/dist/client/assets/{preview-dialog-Cy-rQfYg.js → preview-dialog-DOw3u2PH.js} +1 -1
  230. package/dist/client/assets/{preview-panel-DdK3dK6a.js → preview-panel-BpuuhbyF.js} +1 -1
  231. package/dist/client/assets/{preview-tab-s86ISCjJ.js → preview-tab-DM5oCQbO.js} +3 -3
  232. package/dist/client/assets/{primitives-BGjcKAjx.js → primitives-DAv3J-jo.js} +1 -1
  233. package/dist/client/assets/{product-picker-dialog-Crik9Yzb.js → product-picker-dialog-DDwjDVDo.js} +1 -1
  234. package/dist/client/assets/{profile-BQnkoi-5.js → profile-ChH9A8z7.js} +1 -1
  235. package/dist/client/assets/{project-app-view-D_MlxwF5.js → project-app-view-pWp3ZiTC.js} +1 -1
  236. package/dist/client/assets/{project-apps-DNFPZnyN.js → project-apps-DCKpFUfg.js} +1 -1
  237. package/dist/client/assets/{project-icon-BXm7ZHiW.js → project-icon-CsOvQIQK.js} +1 -1
  238. package/dist/client/assets/{project-index-hJYvYDOU.js → project-index-BaWNSq-B.js} +1 -1
  239. package/dist/client/assets/project-reports-BFGfWfOY.js +1 -0
  240. package/dist/client/assets/project-tasks-B0qy6YyK.js +1 -0
  241. package/dist/client/assets/{projects-sunkWV6C.js → projects-OuyJtgOF.js} +1 -1
  242. package/dist/client/assets/{projects-empty-state-CFbVTM_P.js → projects-empty-state-shLgi5wv.js} +1 -1
  243. package/dist/client/assets/{prompts--ErbXpCs.js → prompts-UYNIaDow.js} +1 -1
  244. package/dist/client/assets/record-editor-tWo5ViDa.js +1 -0
  245. package/dist/client/assets/{redirect-editor-BUbByAfJ.js → redirect-editor-BKqLWwnk.js} +1 -1
  246. package/dist/client/assets/reports-CRTbYefZ.js +1 -0
  247. package/dist/client/assets/{reports-B1x3Iv5E.js → reports-DaGALH9V.js} +1 -1
  248. package/dist/client/assets/{reports-onboarding-L9t3T5qW.js → reports-onboarding-p4RwpY5O.js} +1 -1
  249. package/dist/client/assets/{reports-tab-BhTw04Ii.js → reports-tab-DHgzfmh-.js} +2 -2
  250. package/dist/client/assets/repositories-D2EXyFhB.js +1 -0
  251. package/dist/client/assets/{repositories-BKCu45V1.js → repositories-n9UiobdG.js} +1 -1
  252. package/dist/client/assets/{repository-binding-tVQHTFdi.js → repository-binding-BmnG5TxR.js} +1 -1
  253. package/dist/client/assets/{repository-picker-BZvUPwbO.js → repository-picker-De0GPaRE.js} +1 -1
  254. package/dist/client/assets/{require-capability-Cayj4MNe.js → require-capability-cZNhHutj.js} +1 -1
  255. package/dist/client/assets/{required-auth-layout-CLsYaEaG.js → required-auth-layout-BMBpLakt.js} +1 -1
  256. package/dist/client/assets/{reset-password-C9XFvDXe.js → reset-password-CCMxEq5y.js} +1 -1
  257. package/dist/client/assets/{resizable-DbVe4z4B.js → resizable-BkhiAkWq.js} +1 -1
  258. package/dist/client/assets/{resolve-tab-icon-CA7uGvvA.js → resolve-tab-icon-lwbzvlmp.js} +1 -1
  259. package/dist/client/assets/{review-settings-CL0reJbi.js → review-settings-DcjQ3GtR.js} +1 -1
  260. package/dist/client/assets/{role-color-lBvChB7A.js → role-color-CfQEBoLM.js} +1 -1
  261. package/dist/client/assets/{roles-CTY63tbD.js → roles-BBqkj6Ec.js} +1 -1
  262. package/dist/client/assets/{route-MgM6k4hK.js → route-BtgxUay9.js} +1 -1
  263. package/dist/client/assets/{route-C1rJYGGp.js → route-C1HkaVBq.js} +1 -1
  264. package/dist/client/assets/route-COQ-KuwC.js +1 -0
  265. package/dist/client/assets/{route-page-header-Dud5tb_e.js → route-page-header-9bvdq0CA.js} +1 -1
  266. package/dist/client/assets/{sandbox-git-api-DVpASqsU.js → sandbox-git-api-CvaJsg00.js} +1 -1
  267. package/dist/client/assets/{sandbox-lifecycle-context-BUqqxPte.js → sandbox-lifecycle-context-o-we4sh6.js} +1 -1
  268. package/dist/client/assets/{save-status-DSC588wx.js → save-status-0_77vPF7.js} +1 -1
  269. package/dist/client/assets/{schema-DCG0xu5i.js → schema-BUUxEy3p.js} +1 -1
  270. package/dist/client/assets/{schema-BCCaY_-F.js → schema-CYjzEKQK.js} +1 -1
  271. package/dist/client/assets/{scroll-area-B7J9Sko9.js → scroll-area-BZSqU8Qg.js} +1 -1
  272. package/dist/client/assets/{search-input-8Z_l1AXO.js → search-input-CI2JAJKY.js} +1 -1
  273. package/dist/client/assets/{search-toggle-CrQNv7iU.js → search-toggle-6GIYvZRS.js} +1 -1
  274. package/dist/client/assets/{secret-picker-Cp6eXzRg.js → secret-picker-k-Y5Do9o.js} +1 -1
  275. package/dist/client/assets/{secrets-k8Kjyg-z.js → secrets-BRBBIxrl.js} +1 -1
  276. package/dist/client/assets/{section-array-field-xbmzZQS0.js → section-array-field-BQH3eI8l.js} +1 -1
  277. package/dist/client/assets/{sections-editor-CmCz5vpd.js → sections-editor-B3aKAu_5.js} +1 -1
  278. package/dist/client/assets/{sections-BTJHX6hU.js → sections-s9nF0BmL.js} +1 -1
  279. package/dist/client/assets/{select-CK3pBBYF.js → select-UUQ-q9oo.js} +1 -1
  280. package/dist/client/assets/{select-model-B9dYRzZE.js → select-model-CpkygQiY.js} +1 -1
  281. package/dist/client/assets/{seo-editor-Y3dTbt6b.js → seo-editor-CQojRSno.js} +1 -1
  282. package/dist/client/assets/{separator-D5OQTyTR.js → separator-fkDDGet3.js} +1 -1
  283. package/dist/client/assets/{session-runtime-CF-cKyl4.js → session-runtime-B0EpXuIX.js} +1 -1
  284. package/dist/client/assets/settings-tab-CcZ_HjR5.js +1 -0
  285. package/dist/client/assets/{sheet-C8nIUUhq.js → sheet-DrryPrKH.js} +1 -1
  286. package/dist/client/assets/{shell-layout-c07HQj2a.js → shell-layout-Dtm12Wiy.js} +1 -1
  287. package/dist/client/assets/{site-draft-actions-Cv9Dugat.js → site-draft-actions-DA0WDizP.js} +1 -1
  288. package/dist/client/assets/{site-draft-view-DMhKVzEk.js → site-draft-view-C0I4KoVa.js} +1 -1
  289. package/dist/client/assets/site-editor-CyQYsqmX.js +1 -0
  290. package/dist/client/assets/{site-editor-toast-C9iSdBYT.js → site-editor-toast-B7mzcNQB.js} +1 -1
  291. package/dist/client/assets/{skills-BLuShcMw.js → skills-Cg9456cq.js} +1 -1
  292. package/dist/client/assets/{slider-Cx6Jf-wu.js → slider-DF5FWaon.js} +1 -1
  293. package/dist/client/assets/{sortable.esm-BB6WYpCo.js → sortable.esm-DRtCp0fn.js} +1 -1
  294. package/dist/client/assets/{sso-Dl6lXEeR.js → sso-Bn1iRDvY.js} +1 -1
  295. package/dist/client/assets/{suggestion-DDDljlal.js → suggestion-BoJJdGmd.js} +1 -1
  296. package/dist/client/assets/{super-agent-icon-CGzTx3C-.js → super-agent-icon-7GRKjx3U.js} +1 -1
  297. package/dist/client/assets/{switch-DgmP8oP8.js → switch-yJM06fNp.js} +1 -1
  298. package/dist/client/assets/{synced-repos-DZt5igQw.js → synced-repos-BPhtaX5V.js} +1 -1
  299. package/dist/client/assets/{tab-icon-glyph-BE9Zofkk.js → tab-icon-glyph-BT3JJJNz.js} +1 -1
  300. package/dist/client/assets/{table-ctHS8J_Q.js → table-BUt8Jhjr.js} +1 -1
  301. package/dist/client/assets/{tabs-DvXeW4HA.js → tabs-Ba6hhIKT.js} +1 -1
  302. package/dist/client/assets/{task-board-C77QB2Pd.js → task-board-DjHmGwky.js} +1 -1
  303. package/dist/client/assets/{task-key-BhehnK9l.js → task-key-ftrd3J5s.js} +1 -1
  304. package/dist/client/assets/{task-route-DRwGh5Pk.js → task-route-BdeGqsQi.js} +1 -1
  305. package/dist/client/assets/{task-status-CgMUYaLv.js → task-status-CovP2RlP.js} +1 -1
  306. package/dist/client/assets/{taskboard-analytics-BUo8rM8z.js → taskboard-analytics-Q6SzQXrL.js} +1 -1
  307. package/dist/client/assets/{tasks-Bwot1UUz.js → tasks-BIyvx17R.js} +1 -1
  308. package/dist/client/assets/tasks-D7SUrwDU.js +1 -0
  309. package/dist/client/assets/{textarea-DNuEc6yF.js → textarea-CicBpiIo.js} +1 -1
  310. package/dist/client/assets/{thread-analytics-CdGu1J8L.js → thread-analytics-CLjMgoaY.js} +1 -1
  311. package/dist/client/assets/{thread-button-B06sbFAx.js → thread-button-CJVwoCA8.js} +1 -1
  312. package/dist/client/assets/{thread-intent-B75osykh.js → thread-intent-DLUS-yM4.js} +1 -1
  313. package/dist/client/assets/{thread-route-BM-FWJgg.js → thread-route-C6dcoLI6.js} +1 -1
  314. package/dist/client/assets/{thread-route-BfZtED5J.js → thread-route-Cj0uYV4E.js} +1 -1
  315. package/dist/client/assets/{thread-sheet-body-Bkp_PSJ4.js → thread-sheet-body-B4TTQtO5.js} +1 -1
  316. package/dist/client/assets/{time-range-picker-DEAF3nib.js → time-range-picker-C-5Xj0CY.js} +1 -1
  317. package/dist/client/assets/{toggle-group-B3xyvBa2.js → toggle-group-Bu2eVQ6i.js} +1 -1
  318. package/dist/client/assets/{tool-set-selector-B_SA8baJ.js → tool-set-selector-DFPQZxq0.js} +1 -1
  319. package/dist/client/assets/{toolbar-icon-button-gF_UQkrK.js → toolbar-icon-button-CoaihmDC.js} +1 -1
  320. package/dist/client/assets/{tooltip-DDRxK_rC.js → tooltip-gcbYZwxC.js} +1 -1
  321. package/dist/client/assets/{tooltipContext-DH7ypxsl.js → tooltipContext-BI8jp9W6.js} +1 -1
  322. package/dist/client/assets/{track-BLAObJYS.js → track-BGZHpowk.js} +1 -1
  323. package/dist/client/assets/{types-DOy2Z0vk.js → types-BKngmNWD.js} +1 -1
  324. package/dist/client/assets/{url-slug-BrbcBfqk.js → url-slug-CG2qSdoJ.js} +1 -1
  325. package/dist/client/assets/{usage-stats-DjHbJqov.js → usage-stats-DkZP-2zt.js} +1 -1
  326. package/dist/client/assets/{use-ai-providers-CdKKB0Ai.js → use-ai-providers-BUfnZicu.js} +1 -1
  327. package/dist/client/assets/{use-api-keys-CVUJYBJ0.js → use-api-keys-426flCmW.js} +1 -1
  328. package/dist/client/assets/{use-apply-named-rule-BjjahUUC.js → use-apply-named-rule--HLtI2IB.js} +1 -1
  329. package/dist/client/assets/use-ask-in-chat-CiVsfxtO.js +1 -0
  330. package/dist/client/assets/{use-automations-D27mC6cq.js → use-automations-C74OL6eb.js} +1 -1
  331. package/dist/client/assets/{use-autosave-L2Cuikde.js → use-autosave-CMUdyxJ4.js} +1 -1
  332. package/dist/client/assets/use-blocks-v8-project-BjtFyGqs.js +1 -0
  333. package/dist/client/assets/use-blog-view-C8xBHbun.js +1 -0
  334. package/dist/client/assets/{use-chat-layout-state-VdaN-JCc.js → use-chat-layout-state-DhGUOMf7.js} +1 -1
  335. package/dist/client/assets/{use-cms-publish-actions-Jsu56nL6.js → use-cms-publish-actions-DdLu6VIE.js} +1 -1
  336. package/dist/client/assets/{use-connect-companion-CSES1VL7.js → use-connect-companion-B4AtsSIo.js} +1 -1
  337. package/dist/client/assets/{use-connection-EMSkOWAn.js → use-connection-C16q1hbs.js} +1 -1
  338. package/dist/client/assets/{use-content-sync-DOxCjogj.js → use-content-sync-CMZxOD36.js} +1 -1
  339. package/dist/client/assets/{use-copy-GTs1mQSA.js → use-copy-thUFz6-q.js} +1 -1
  340. package/dist/client/assets/{use-current-view-B_1DObkk.js → use-current-view-B8GTnEcc.js} +1 -1
  341. package/dist/client/assets/{use-date-fns-locale-DpB0FU7U.js → use-date-fns-locale-BjihwHBG.js} +1 -1
  342. package/dist/client/assets/{use-debounced-autosave-DCMLHEos.js → use-debounced-autosave-DjWPUIqZ.js} +1 -1
  343. package/dist/client/assets/{use-debounced-value-Ewb3RQnO.js → use-debounced-value-Ct5qlSK6.js} +1 -1
  344. package/dist/client/assets/{use-deco-credits-DHxcKcZZ.js → use-deco-credits-CITBTX5W.js} +1 -1
  345. package/dist/client/assets/{use-decopilot-events-eXc6A_1m.js → use-decopilot-events-B21Nf-wv.js} +1 -1
  346. package/dist/client/assets/{use-delete-block-MJCP6O8n.js → use-delete-block-G59MfiPh.js} +1 -1
  347. package/dist/client/assets/{use-delete-connection-DSwwPFUV.js → use-delete-connection-BXABDK3t.js} +1 -1
  348. package/dist/client/assets/{use-deployment-admin-C1jOQ9iB.js → use-deployment-admin-CDJQzcvO.js} +1 -1
  349. package/dist/client/assets/{use-entitlements-DyRbU6bB.js → use-entitlements-BTRsFtoM.js} +1 -1
  350. package/dist/client/assets/{use-fast-preview-draft-url-DWEd5zOQ.js → use-fast-preview-draft-url-CLjoICho.js} +1 -1
  351. package/dist/client/assets/{use-file-configs-BBxvN3au.js → use-file-configs-BEgiTgol.js} +1 -1
  352. package/dist/client/assets/{use-id-selection-ZzntT4yR.js → use-id-selection-pbpvy7_O.js} +1 -1
  353. package/dist/client/assets/{use-in-settings-Dpd8gE8-.js → use-in-settings-nBmDr90L.js} +1 -1
  354. package/dist/client/assets/{use-inbox-feed-DEyliaD1.js → use-inbox-feed-BIxNjpZM.js} +1 -1
  355. package/dist/client/assets/{use-infinite-scroll-r_LBW3TM.js → use-infinite-scroll--ksdfdkO.js} +1 -1
  356. package/dist/client/assets/{use-join-requests-DadUOMnT.js → use-join-requests-CWuAJdLz.js} +1 -1
  357. package/dist/client/assets/{use-main-panel-tabs-B3njqDHg.js → use-main-panel-tabs-BKwmMvsf.js} +1 -1
  358. package/dist/client/assets/{use-mcp-auth-status-BFz7R6cW.js → use-mcp-auth-status-DisQ75Y2.js} +1 -1
  359. package/dist/client/assets/{use-mcp-client-a0JH7jJm.js → use-mcp-client-BRvedH7Y.js} +1 -1
  360. package/dist/client/assets/{use-mcp-prompts-DfF9pE7P.js → use-mcp-prompts-DR7oy3B2.js} +1 -1
  361. package/dist/client/assets/{use-mcp-tools-1TxH2J-w.js → use-mcp-tools-DRmOHWPJ.js} +1 -1
  362. package/dist/client/assets/{use-mobile-CP4UQFCv.js → use-mobile-pXMsiqcl.js} +1 -1
  363. package/dist/client/assets/{use-move-blocks-CC0lvbYD.js → use-move-blocks-D3Ec5QNN.js} +1 -1
  364. package/dist/client/assets/{use-navigate-to-agent-D7laGazQ.js → use-navigate-to-agent-DBjH_n7x.js} +1 -1
  365. package/dist/client/assets/{use-never-published-B4X0z1vE.js → use-never-published-COSddoQh.js} +1 -1
  366. package/dist/client/assets/{use-org-fs-nl0bHtQ_.js → use-org-fs-oHVbnEW1.js} +1 -1
  367. package/dist/client/assets/{use-org-notice-Bw7o_UiG.js → use-org-notice-D-samRAE.js} +1 -1
  368. package/dist/client/assets/{use-org-repo-syncs-BE5HhBpY.js → use-org-repo-syncs-ClN29sI7.js} +1 -1
  369. package/dist/client/assets/{use-org-sso-C-zBsXpK.js → use-org-sso-CjTvJs1C.js} +1 -1
  370. package/dist/client/assets/{use-organization-settings-B3R7qjx0.js → use-organization-settings-Cubqq6kD.js} +1 -1
  371. package/dist/client/assets/{use-panel-navigate-DGj76mtN.js → use-panel-navigate-W20lHVA4.js} +1 -1
  372. package/dist/client/assets/{use-project-native-view-presence-DFKE7eT4.js → use-project-native-view-presence-hAPOMUof.js} +1 -1
  373. package/dist/client/assets/{use-project-scope-dGVX3wVy.js → use-project-scope-BN_bspzD.js} +1 -1
  374. package/dist/client/assets/{use-recent-apps-Agn6vAAc.js → use-recent-apps-DjB0LrH3.js} +1 -1
  375. package/dist/client/assets/{use-reports-diagnostic-DpkdRkv7.js → use-reports-diagnostic-DCVHCEGO.js} +1 -1
  376. package/dist/client/assets/{use-sandbox-events-BUDNvnzZ.js → use-sandbox-events-Fh4ab2J1.js} +1 -1
  377. package/dist/client/assets/{use-secrets-DJezdT4P.js → use-secrets-C96B2z29.js} +1 -1
  378. package/dist/client/assets/{use-section-preview-base-5GNtuayr.js → use-section-preview-base-BkoRzP8R.js} +1 -1
  379. package/dist/client/assets/{use-sidebar-collapsed-k6PQDFi7.js → use-sidebar-collapsed-CtO1E2x2.js} +1 -1
  380. package/dist/client/assets/{use-tags-CKeOkhru.js → use-tags-ClTM1Evw.js} +1 -1
  381. package/dist/client/assets/{use-task-board-analytics-Dkz7d1vy.js → use-task-board-analytics-MV1dC8F0.js} +1 -1
  382. package/dist/client/assets/{use-task-board-item-prs-CbnsRMJi.js → use-task-board-item-prs-BpzSYDBi.js} +1 -1
  383. package/dist/client/assets/{use-task-board-items-Dpf2HIPt.js → use-task-board-items-DPgZ__oW.js} +1 -1
  384. package/dist/client/assets/{use-task-board-prompts-mLJ4XHzf.js → use-task-board-prompts-CVIyeU-9.js} +1 -1
  385. package/dist/client/assets/{use-task-metadata-BKunYeTf.js → use-task-metadata-BJWRQyNZ.js} +1 -1
  386. package/dist/client/assets/{use-thread-outputs-dfOpFOiY.js → use-thread-outputs-DhPZgS9-.js} +1 -1
  387. package/dist/client/assets/{use-view-draft-kind-BWu43EEo.js → use-view-draft-kind-Bp1qVtwW.js} +1 -1
  388. package/dist/client/assets/{use-voice-input-BfjNCKJB.js → use-voice-input-BpwMnzE1.js} +1 -1
  389. package/dist/client/assets/useInfiniteQuery-DHgrT3Au.js +1 -0
  390. package/dist/client/assets/{useQueries-BkTkN0EM.js → useQueries-YIrWWF7m.js} +1 -1
  391. package/dist/client/assets/useSuspenseInfiniteQuery-BwwCJ1MU.js +1 -0
  392. package/dist/client/assets/{users-_I_0mQ9A.js → users-C0Fg7osF.js} +1 -1
  393. package/dist/client/assets/{utils-NyXKDu0b.js → utils-BdqUM1fA.js} +1 -1
  394. package/dist/client/assets/{variant-calendar-DyAhwwYa.js → variant-calendar-Crwy1Gij.js} +1 -1
  395. package/dist/client/assets/{variant-matcher-override-SM_Z3Wbe.js → variant-matcher-override-CiDkHVMl.js} +1 -1
  396. package/dist/client/assets/{view-header-DvVSSkn1.js → view-header-Br4cuG1F.js} +1 -1
  397. package/dist/client/assets/{virtual-mcp-g7B5MyWL.js → virtual-mcp-BOnfjRXy.js} +1 -1
  398. package/dist/client/assets/{watch-sse-pool-eyaMeGEd.js → watch-sse-pool-hh2syLPB.js} +1 -1
  399. package/dist/client/index.html +1 -1
  400. package/dist/server/server.js +671 -671
  401. package/package.json +1 -1
  402. package/dist/client/assets/agent-app-Btk23zWi.js +0 -1
  403. package/dist/client/assets/agent-deck-DtK8_qvS.js +0 -1
  404. package/dist/client/assets/agent-experiments-CjfV62sr.js +0 -1
  405. package/dist/client/assets/agent-file-BoRmUiia.js +0 -1
  406. package/dist/client/assets/agent-library-CFVngpAA.js +0 -1
  407. package/dist/client/assets/agent-library-file-CNg90yqZ.js +0 -1
  408. package/dist/client/assets/agent-overview-aepVucMm.js +0 -1
  409. package/dist/client/assets/agent-settings-PysEIWkV.js +0 -1
  410. package/dist/client/assets/agent-site-editor-code-B9_eUG74.js +0 -2
  411. package/dist/client/assets/agent-site-editor-content-BDPf3dby.js +0 -1
  412. package/dist/client/assets/agent-site-editor-preview-BBKtb5Ru.js +0 -1
  413. package/dist/client/assets/agent-view-CaihoBtj.js +0 -1
  414. package/dist/client/assets/api-keys-9rV6SK_g.js +0 -1
  415. package/dist/client/assets/chat-context-COXlihFB.js +0 -44
  416. package/dist/client/assets/library-D9p6ynNe.js +0 -1
  417. package/dist/client/assets/plan-Bf-uH0ep.js +0 -1
  418. package/dist/client/assets/project-reports-CJj9IS8D.js +0 -1
  419. package/dist/client/assets/project-tasks-BfJwyDt2.js +0 -1
  420. package/dist/client/assets/record-editor-ChW0i3Lu.js +0 -1
  421. package/dist/client/assets/reports-BlRwjCBG.js +0 -1
  422. package/dist/client/assets/repositories-AUdYKvjS.js +0 -1
  423. package/dist/client/assets/route-CV7iUIWG.js +0 -1
  424. package/dist/client/assets/settings-tab-CGEjXFQE.js +0 -1
  425. package/dist/client/assets/site-editor-D4eGf-cC.js +0 -1
  426. package/dist/client/assets/tasks-9tB-EmY6.js +0 -1
  427. package/dist/client/assets/use-ask-in-chat-Ckr_RkEG.js +0 -1
  428. package/dist/client/assets/use-blocks-v8-project-BFFg2tiG.js +0 -1
  429. package/dist/client/assets/use-blog-view-CBaNrvAc.js +0 -1
  430. package/dist/client/assets/useInfiniteQuery-cEZFXf06.js +0 -1
  431. package/dist/client/assets/useSuspenseInfiniteQuery-BKfGk8sC.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as T,b as D,j as i,n as I,m as K,r as L,B as $,E as M,t as H}from"./index-Bm1kfakF.js";import{ChatLayout as q}from"./index-BMXIYEr-.js";import{o as J,bp as V,aq as X}from"./agent-icon-BmlBo_mr.js";import{i as B,s as Y}from"./UserSquare-B3Bg0K9g.js";import{B as Q}from"./badge-PmwnY4hy.js";import{i as U}from"./ArrowRight-FtSbCfTm.js";import{T as A}from"./textarea-CicBpiIo.js";import"./index-CJbm-bjr.js";import{g as F,h as Z,u as ee}from"./use-organization-settings-Cubqq6kD.js";import{c as G}from"./chat-context-B0mIAvmD.js";import{P as R}from"./schema-BUUxEy3p.js";import"./use-mobile-pXMsiqcl.js";import"./tooltip-gcbYZwxC.js";import"./index-Cs4d-rU4.js";import"./MessageCircle01-BSvG5u-_.js";import"./XClose-rn7BTPbt.js";import"./thread-button-CJVwoCA8.js";import"./use-sidebar-collapsed-CtO1E2x2.js";import"./sheet-DrryPrKH.js";import"./use-chat-layout-state-DhGUOMf7.js";import"./use-panel-navigate-W20lHVA4.js";import"./thread-route-C6dcoLI6.js";import"./use-project-scope-BN_bspzD.js";import"./repository-binding-BmnG5TxR.js";import"./use-mcp-client-BRvedH7Y.js";import"./auth-MiTZGjji.js";import"./toolbar-icon-button-CoaihmDC.js";import"./use-in-settings-nBmDr90L.js";import"./resizable-BkhiAkWq.js";import"./route-page-header-9bvdq0CA.js";import"./LayoutLeft-DUAhH4Wy.js";import"./use-current-view-B8GTnEcc.js";import"./AlertCircle-CShy6yDX.js";import"./UserCheck01-BsbnQ5ut.js";import"./Tool01-Cvtzb7gx.js";import"./ArrowUp-DEEf-mtS.js";import"./ArrowLeft-WKtVHs-Z.js";import"./BookOpen01-2E_0y9OX.js";import"./Globe04-BStLKLZ2.js";import"./CheckCircle-DZKYp081.js";import"./ChevronDown-DZmwX-ra.js";import"./ChevronSelectorVertical-BBSQj61f.js";import"./ChevronUp-up6pfAf9.js";import"./LinkBroken01-DGLo0pdz.js";import"./CreditCard01-BPmia42q.js";import"./File02-C19wgG-g.js";import"./SwitchHorizontal01-C2pVU_4J.js";import"./Eye-BuU02LHf.js";import"./Fingerprint04-D5Hh-Z6T.js";import"./Image01-DPsmXJM9.js";import"./Key01-7I5yC-jW.js";import"./Minus-BWHpZUKs.js";import"./Monitor01-docIVUl5.js";import"./Sun-BiUlQLmT.js";import"./Play-2z1E087w.js";import"./Plus-D8wmiIrv.js";import"./SearchMd-DL0DTMXc.js";import"./ShoppingBag01-BvzxucRv.js";import"./Trash01-9RQC1f5G.js";import"./Upload01-3Gw-mR9u.js";import"./Users01-w98WkMA8.js";import"./Zap-DuqrcICg.js";import"./input-Cpkj1oOu.js";import"./usage-stats-DkZP-2zt.js";import"./utils-CVEq3hMx.js";import"./markdown-CQMqqgOz.js";import"./use-copy-thUFz6-q.js";import"./task-board-DjHmGwky.js";import"./gateway-client-CJDxmxSa.js";import"./form-DoeHcF5c.js";import"./label-D53IaeZS.js";import"./use-entitlements-BTRsFtoM.js";import"./icon-button-A0UAzKos.js";import"./file-type-icon-DH9FvqO6.js";import"./use-view-draft-kind-Bp1qVtwW.js";import"./use-blog-view-C8xBHbun.js";import"./thread-intent-DLUS-yM4.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-hh2syLPB.js";import"./session-runtime-B0EpXuIX.js";import"./chat-draft-9D8O6IhX.js";import"./use-voice-input-BpwMnzE1.js";import"./popover-BCGMbo55.js";import"./drawer-BaaFg3R1.js";import"./use-ai-providers-BUfnZicu.js";import"./index-D4jxMGCU.js";import"./checkbox-B1JBiKHt.js";import"./select-UUQ-q9oo.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-Ba6hhIKT.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-CITBTX5W.js";import"./toggle-group-Bu2eVQ6i.js";import"./input-Ml5iKJtl.js";import"./suggestion-BoJJdGmd.js";import"./use-mcp-prompts-DR7oy3B2.js";import"./use-org-fs-oHVbnEW1.js";import"./useInfiniteQuery-DHgrT3Au.js";import"./infiniteQueryObserver-DBJgsShk.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Cvsy56pL.js";import"./plan-ladder-CXooBnF6.js";import"./add-connection-dialog-41qDOna8.js";import"./collection-search-RaF1TESZ.js";import"./extract-connection-data-D3bUe5Lp.js";import"./metadata-D72DunRR.js";import"./connection-BjfhQTvi.js";import"./url-slug-CG2qSdoJ.js";import"./connection-card-CDIRX7rw.js";import"./connection-slug-C1NpnAPZ.js";import"./integration-icon-BhUObfAr.js";import"./use-connection-C16q1hbs.js";import"./schema-CYjzEKQK.js";import"./connection-form-helpers-qS_yNMNY.js";import"./authenticate-and-persist-oauth-BMCgWPAs.js";import"./mcp-oauth-B05XNx5F.js";import"./mcp-oauth-CSRaHoLv.js";import"./collection-tabs-DQ1qcrf-.js";import"./use-infinite-scroll--ksdfdkO.js";import"./useSuspenseInfiniteQuery-BwwCJ1MU.js";import"./use-task-board-items-DPgZ__oW.js";import"./use-decopilot-events-B21Nf-wv.js";import"./pair-CXG2-VJv.js";import"./collapsible-MMZS4bUW.js";import"./task-key-ftrd3J5s.js";import"./config-ENUSei4z.js";import"./task-route-BdeGqsQi.js";import"./project-index-BaWNSq-B.js";import"./shell-layout-Dtm12Wiy.js";import"./use-deployment-admin-CDJQzcvO.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-D-samRAE.js";import"./command-lFozjt-f.js";import"./index-QSfgjCsF.js";import"./project-icon-CsOvQIQK.js";import"./use-navigate-to-agent-DBjH_n7x.js";import"./use-debounced-value-Ct5qlSK6.js";import"./new-project-dialog-D__ZumnI.js";import"./repository-picker-De0GPaRE.js";import"./github-icon-Dv1ygj1J.js";import"./new-project-store-f5bwc2gs.js";import"./legacy-admin-welcome-dialog-CwPoX24t.js";import"./required-auth-layout-BMBpLakt.js";import"./use-org-sso-CjTvJs1C.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BfqxDRa0.js";import"./types-BKngmNWD.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-DhPZgS9-.js";import"./content-changes-D1-8LQ7K.js";import"./agent-capabilities-DfwZEM8H.js";const te={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:B,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:J,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:V,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function ie(t){const e=T.c(4),{className:m}=t;let l;e[0]!==m?(l=K("block h-2 rounded-full bg-muted",m),e[0]=m,e[1]=l):l=e[1];let s;return e[2]!==l?(s=i.jsx("span",{className:l}),e[2]=l,e[3]=s):s=e[3],s}const se=[{title:"w-32",fill:"w-[72%]",tone:"bg-chart-2",value:"72%"},{title:"w-24",fill:"w-[45%]",tone:"bg-chart-1",value:"45%"},{title:"w-28",fill:"w-[88%]",tone:"bg-chart-4",value:"88%"}];function le(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"flex flex-col gap-5",children:se.map(oe)}),t[0]=e):e=t[0],e}function oe(t){return i.jsxs("div",{className:"flex flex-col gap-2.5",children:[i.jsxs("div",{className:"flex items-center gap-2.5",children:[i.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:i.jsx(B,{size:14})}),i.jsx(ie,{className:t.title}),i.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:t.value})]}),i.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:i.jsx("div",{className:K("h-full rounded-full",t.fill,t.tone)})})]},t.value)}function re(t){const e=T.c(30),{kind:m}=t,l=D(),s=te[m];let u;e[0]===Symbol.for("react.memo_cache_sentinel")?(u=i.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),e[0]=u):u=e[0];let j;e[1]===Symbol.for("react.memo_cache_sentinel")?(j=i.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[u,i.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:i.jsx(le,{})})]}),e[1]=j):j=e[1];let o;e[2]!==l?(o=l("home.comingSoon.badge"),e[2]=l,e[3]=o):o=e[3];let d;e[4]!==o?(d=i.jsx(Q,{variant:"muted",children:o}),e[4]=o,e[5]=d):d=e[5];let p;e[6]!==s.heading||e[7]!==l?(p=l(s.heading),e[6]=s.heading,e[7]=l,e[8]=p):p=e[8];let a;e[9]!==p?(a=i.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:p}),e[9]=p,e[10]=a):a=e[10];let r;e[11]!==s.description||e[12]!==l?(r=l(s.description),e[11]=s.description,e[12]=l,e[13]=r):r=e[13];let n;e[14]!==r?(n=i.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:r}),e[14]=r,e[15]=n):n=e[15];let c;e[16]!==d||e[17]!==a||e[18]!==n?(c=i.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[d,a,n]}),e[16]=d,e[17]=a,e[18]=n,e[19]=c):c=e[19];let f;if(e[20]!==s.points||e[21]!==l){let b;e[23]!==l?(b=v=>{const{Icon:N,labelKey:y,tone:z}=v;return i.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[i.jsx("span",{className:K("flex size-9 shrink-0 items-center justify-center rounded-lg",z),children:i.jsx(N,{size:18})}),i.jsx("span",{className:"text-sm text-foreground",children:l(y)})]},y)},e[23]=l,e[24]=b):b=e[24],f=s.points.map(b),e[20]=s.points,e[21]=l,e[22]=f}else f=e[22];let x;e[25]!==f?(x=i.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:f}),e[25]=f,e[26]=x):x=e[26];let g;return e[27]!==x||e[28]!==c?(g=i.jsx(I,{children:i.jsx(I.Content,{children:i.jsxs("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-10 px-4 pt-12 pb-16 md:pt-20",children:[j,c,x]})})}),e[27]=x,e[28]=c,e[29]=g):g=e[29],g}function ae(t,e){const m=e.idea.trim(),l=e.objective?.trim();return l?t("plan.prompt.withObjective",{idea:m,objective:l}):t("plan.prompt.withoutObjective",{idea:m})}const ne=[{label:"plan.idea.topic.shipping",prompt:"plan.idea.topic.shippingPrompt"},{label:"plan.idea.topic.pdp",prompt:"plan.idea.topic.pdpPrompt"},{label:"plan.idea.topic.checkout",prompt:"plan.idea.topic.checkoutPrompt"},{label:"plan.idea.topic.search",prompt:"plan.idea.topic.searchPrompt"},{label:"plan.idea.topic.performance",prompt:"plan.idea.topic.performancePrompt"},{label:"plan.idea.topic.paidMedia",prompt:"plan.idea.topic.paidMediaPrompt"}];function me(){const t=T.c(54),e=D(),{createTaskWithMessage:m}=G(),l=F(),[s,u]=L.useState("");let j;t[0]!==s?(j=s.trim(),t[0]=s,t[1]=j):j=t[1];const o=j.length>0;let d;t[2]!==m||t[3]!==s||t[4]!==l||t[5]!==o||t[6]!==e?(d=h=>{h.preventDefault(),o&&(M("plan_idea_submitted",{has_objective:!!l}),m({message:{parts:[{type:"text",text:ae(e,{idea:s,objective:l?.statement})}]}}),u(""))},t[2]=m,t[3]=s,t[4]=l,t[5]=o,t[6]=e,t[7]=d):d=t[7];const p=d;let a;t[8]!==e?(a=e("plan.idea.heading"),t[8]=e,t[9]=a):a=t[9];let r;t[10]!==a?(r=i.jsx("h2",{className:"text-xl font-medium text-foreground",children:a}),t[10]=a,t[11]=r):r=t[11];let n;t[12]!==e?(n=e("plan.idea.description"),t[12]=e,t[13]=n):n=t[13];let c;t[14]!==n?(c=i.jsx("p",{className:"text-sm text-pretty text-muted-foreground",children:n}),t[14]=n,t[15]=c):c=t[15];let f;t[16]!==r||t[17]!==c?(f=i.jsxs("div",{className:"flex flex-col gap-1",children:[r,c]}),t[16]=r,t[17]=c,t[18]=f):f=t[18];let x;t[19]!==e?(x=e("plan.idea.label"),t[19]=e,t[20]=x):x=t[20];let g;t[21]!==e?(g=e("plan.idea.placeholder"),t[21]=e,t[22]=g):g=t[22];let b;t[23]===Symbol.for("react.memo_cache_sentinel")?(b=h=>u(h.target.value),t[23]=b):b=t[23];let v;t[24]!==p?(v=h=>{h.key==="Enter"&&(h.metaKey||h.ctrlKey)&&p(h)},t[24]=p,t[25]=v):v=t[25];let N;t[26]!==s||t[27]!==v||t[28]!==x||t[29]!==g?(N=i.jsx(A,{"aria-label":x,placeholder:g,value:s,onChange:b,onKeyDown:v,className:"min-h-32 text-[15px]"}),t[26]=s,t[27]=v,t[28]=x,t[29]=g,t[30]=N):N=t[30];const y=!o;let z;t[31]!==e?(z=e("plan.idea.submit"),t[31]=e,t[32]=z):z=t[32];let C;t[33]===Symbol.for("react.memo_cache_sentinel")?(C=i.jsx(U,{}),t[33]=C):C=t[33];let P;t[34]!==y||t[35]!==z?(P=i.jsx("div",{className:"flex justify-end",children:i.jsxs($,{type:"submit",disabled:y,children:[z,C]})}),t[34]=y,t[35]=z,t[36]=P):P=t[36];let O;t[37]!==p||t[38]!==N||t[39]!==P?(O=i.jsxs("form",{onSubmit:p,className:"flex flex-col gap-3",children:[N,P]}),t[37]=p,t[38]=N,t[39]=P,t[40]=O):O=t[40];let _;t[41]!==e?(_=e("plan.idea.startWith"),t[41]=e,t[42]=_):_=t[42];let w;t[43]!==_?(w=i.jsx("span",{className:"mr-1 text-meta",children:_}),t[43]=_,t[44]=w):w=t[44];let S;t[45]!==e?(S=ne.map(h=>i.jsx($,{type:"button",variant:"outline",size:"sm",onClick:()=>u(W=>W||e(h.prompt)),children:e(h.label)},h.label)),t[45]=e,t[46]=S):S=t[46];let k;t[47]!==w||t[48]!==S?(k=i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[w,S]}),t[47]=w,t[48]=S,t[49]=k):k=t[49];let E;return t[50]!==O||t[51]!==k||t[52]!==f?(E=i.jsxs("section",{className:"flex flex-col gap-4",children:[f,O,k]}),t[50]=O,t[51]=k,t[52]=f,t[53]=E):E=t[53],E}function pe(t){const e=T.c(49),{initial:m,onDone:l}=t,s=D(),[u,j]=L.useState(m),o=Z();let d;e[0]!==u?(d=u.trim(),e[0]=u,e[1]=d):d=e[1];const p=d;let a;e[2]!==l||e[3]!==o||e[4]!==s?(a=h=>o.mutate(h,{onSuccess:l,onError:()=>H.error(s("plan.objective.saveError"))}),e[2]=l,e[3]=o,e[4]=s,e[5]=a):a=e[5];const r=a;let n;e[6]!==p||e[7]!==r?(n=h=>{h.preventDefault(),p&&r(p)},e[6]=p,e[7]=r,e[8]=n):n=e[8];const c=n;let f;e[9]!==s?(f=s("plan.objective.label"),e[9]=s,e[10]=f):f=e[10];let x;e[11]!==s?(x=s("plan.objective.placeholder"),e[11]=s,e[12]=x):x=e[12];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=h=>j(h.target.value),e[13]=g):g=e[13];let b;e[14]!==u||e[15]!==f||e[16]!==x?(b=i.jsx(A,{"aria-label":f,placeholder:x,value:u,maxLength:R,onChange:g,className:"min-h-20 text-base",autoFocus:!0}),e[14]=u,e[15]=f,e[16]=x,e[17]=b):b=e[17];let v;e[18]!==s?(v=s("plan.objective.hint"),e[18]=s,e[19]=v):v=e[19];let N;e[20]!==v?(N=i.jsx("span",{className:"text-meta",children:v}),e[20]=v,e[21]=N):N=e[21];let y;e[22]!==m||e[23]!==o.isPending||e[24]!==s||e[25]!==r?(y=m&&i.jsx($,{type:"button",variant:"ghost",size:"sm",disabled:o.isPending,onClick:()=>r(null),children:s("plan.objective.clear")}),e[22]=m,e[23]=o.isPending,e[24]=s,e[25]=r,e[26]=y):y=e[26];const z=o.isPending;let C;e[27]!==s?(C=s("plan.objective.cancel"),e[27]=s,e[28]=C):C=e[28];let P;e[29]!==l||e[30]!==o.isPending||e[31]!==C?(P=i.jsx($,{type:"button",variant:"outline",size:"sm",disabled:z,onClick:l,children:C}),e[29]=l,e[30]=o.isPending,e[31]=C,e[32]=P):P=e[32];const O=!p||o.isPending;let _;e[33]!==s?(_=s("plan.objective.save"),e[33]=s,e[34]=_):_=e[34];let w;e[35]!==O||e[36]!==_?(w=i.jsx($,{type:"submit",size:"sm",disabled:O,children:_}),e[35]=O,e[36]=_,e[37]=w):w=e[37];let S;e[38]!==y||e[39]!==P||e[40]!==w?(S=i.jsxs("div",{className:"ml-auto flex gap-2",children:[y,P,w]}),e[38]=y,e[39]=P,e[40]=w,e[41]=S):S=e[41];let k;e[42]!==S||e[43]!==N?(k=i.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[N,S]}),e[42]=S,e[43]=N,e[44]=k):k=e[44];let E;return e[45]!==c||e[46]!==k||e[47]!==b?(E=i.jsxs("form",{onSubmit:c,className:"flex flex-col gap-2",children:[b,k]}),e[45]=c,e[46]=k,e[47]=b,e[48]=E):E=e[48],E}function ce(){const t=T.c(16),e=D(),m=F(),{createTaskWithMessage:l}=G(),[s,u]=L.useState(!1),j=m?.statement??"";let o;t[0]!==l||t[1]!==e?(o=()=>{M("plan_objective_suggest_clicked"),l({message:{parts:[{type:"text",text:e("plan.prompt.suggestObjective",{max:R})}]}})},t[0]=l,t[1]=e,t[2]=o):o=t[2];const d=o;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=i.jsx(B,{size:13}),t[3]=p):p=t[3];let a;t[4]!==e?(a=e("plan.objective.eyebrow"),t[4]=e,t[5]=a):a=t[5];let r;t[6]!==a?(r=i.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",children:[p,a]}),t[6]=a,t[7]=r):r=t[7];let n;t[8]!==s||t[9]!==j||t[10]!==d||t[11]!==e?(n=s?i.jsx(pe,{initial:j,onDone:()=>u(!1)}):j?i.jsxs("div",{className:"flex flex-col items-start gap-3",children:[i.jsx("p",{className:"max-w-[720px] text-2xl leading-snug font-medium text-balance text-foreground",children:j}),i.jsxs($,{variant:"outline",size:"sm",onClick:()=>u(!0),children:[i.jsx(X,{}),e("plan.objective.edit")]})]}):i.jsxs("div",{className:"flex flex-col items-start gap-3",children:[i.jsx("p",{className:"max-w-[560px] text-base text-pretty text-muted-foreground",children:e("plan.objective.empty")}),i.jsxs("div",{className:"flex flex-wrap gap-2",children:[i.jsxs($,{variant:"outline",size:"sm",onClick:d,children:[i.jsx(Y,{}),e("plan.objective.suggest")]}),i.jsx($,{variant:"outline",size:"sm",onClick:()=>u(!0),children:e("plan.objective.write")})]})]}),t[8]=s,t[9]=j,t[10]=d,t[11]=e,t[12]=n):n=t[12];let c;return t[13]!==r||t[14]!==n?(c=i.jsxs("section",{className:"flex flex-col gap-3",children:[r,n]}),t[13]=r,t[14]=n,t[15]=c):c=t[15],c}function de(){const t=T.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(I,{children:i.jsx(I.Content,{children:i.jsxs(I.Container,{width:"standard",className:"flex flex-col gap-12",children:[i.jsx(ce,{}),i.jsx(me,{})]})})}),t[0]=e):e=t[0],e}function os(){const t=T.c(2),e=ee("plan_page_enabled");let m;return t[0]!==e?(m=i.jsx(q.Content,{children:e?i.jsx(de,{}):i.jsx(re,{kind:"plan"})}),t[0]=e,t[1]=m):m=t[1],m}export{os as default};
@@ -1 +1 @@
1
- import{c as f,a6 as g,am as P,K as _,i as y,m as h,j as d}from"./index-DcLeMIKL.js";import{u as A}from"./use-entitlements-DyRbU6bB.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,K as P,w as S,I as a,D as b,v as f,O as i,R as p,q as u};
1
+ import{c as f,a6 as g,am as P,K as _,i as y,m as h,j as d}from"./index-Bm1kfakF.js";import{u as A}from"./use-entitlements-BTRsFtoM.js";function I(){const e=f.c(6),t=P(),a=A();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=_.aiPlanPrices(),e[0]=o):o=e[0];let n;e[1]!==t?(n=async()=>{const{prices:r}=await t.call("ORGANIZATION_BILLING_PLAN_PRICES",{});return Object.fromEntries(r.map(p))},e[1]=t,e[2]=n):n=e[2];let s;return e[3]!==a||e[4]!==n?(s={queryKey:o,enabled:a,staleTime:6e5,queryFn:n},e[3]=a,e[4]=n,e[5]=s):s=e[5],y(s)}function p(e){return[e.planId,{amountCents:e.amountCents,currency:e.currency,interval:e.interval}]}function v(e,t){return(e.amountCents/100).toLocaleString(t,{style:"currency",currency:e.currency.toUpperCase(),maximumFractionDigits:0})}const F=["chat","cms","credits","monitoring","kanban","model_choice","diagnostic_enriched"];function R(e,t){if(!e)return null;const a=e.findIndex(n=>n.features[t]===!0),o=a>=0?e[a]:void 0;return o?{plan:o,index:a}:null}const j="custom",N=new Set(["ai_service"]);function O(e){return!!e&&N.has(e)}const w="mailto:sales@deco.cx";function q(){const e=f.c(8),{org:t}=g(),a=P(),o=A();let n;e[0]!==t.id?(n=_.aiPlanCatalog(t.id),e[0]=t.id,e[1]=n):n=e[1];let s;e[2]!==a?(s=async()=>{const{plans:c}=await a.call("AI_PLAN_LIST",{providerId:"deco"});return c.filter(E)},e[2]=a,e[3]=s):s=e[3];let r;return e[4]!==o||e[5]!==n||e[6]!==s?(r={queryKey:n,enabled:o,staleTime:3e5,queryFn:s},e[4]=o,e[5]=n,e[6]=s,e[7]=r):r=e[7],y(r)}function E(e){return e.id!=="free"}const u=[{symbol:"starter",color:"text-chart-4"},{symbol:"growth",color:"text-chart-1"},{symbol:"scale",color:"text-brand-blue"}],L=u[u.length-1];function D(e){return S(e).color}function S(e){return u[Math.min(e,u.length-1)]??L}function K(e){const t=f.c(13),{index:a,className:o}=e;let n,s,r,c;if(t[0]!==o||t[1]!==a){const{symbol:b,color:x}=S(a);n=b,s="0 0 16 16",r="true",c=h("size-8 shrink-0",x,o),t[0]=o,t[1]=a,t[2]=n,t[3]=s,t[4]=r,t[5]=c}else n=t[2],s=t[3],r=t[4],c=t[5];const m=`/plan-icons.svg#${n}-icon`;let l;t[6]!==m?(l=d.jsx("use",{href:m}),t[6]=m,t[7]=l):l=t[7];let i;return t[8]!==s||t[9]!==r||t[10]!==c||t[11]!==l?(i=d.jsx("svg",{viewBox:s,"aria-hidden":r,className:c,children:l}),t[8]=s,t[9]=r,t[10]=c,t[11]=l,t[12]=i):i=t[12],i}export{j as C,F,K as P,w as S,I as a,D as b,v as f,O as i,R as p,q as u};
@@ -1,4 +1,4 @@
1
- import{r as Y,j as s,dX as me,hR as ye,c as G,m as X,b_ as Pe,b as q,a6 as se,am as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aJ as we,aK as Ee,aL as Ae,aM as Ie,b9 as Ue,aN as De,aO as Te,aP as Re,gh as le,gV as ne,i as xe,e0 as pe,b6 as $e,as as Be,au as Le,L as ke,gG as He}from"./index-DcLeMIKL.js";import{s as Oe}from"./Plus-Bt6EBJN9.js";import{B as Fe}from"./badge-avpdistF.js";import{a as Me,b as ze,P as Ve}from"./popover-Bit5k9lh.js";import{a as ce,T as Ge}from"./toggle-group-B3xyvBa2.js";import{g as Ke}from"./use-ai-providers-CdKKB0Ai.js";import{u as ie,d as he,a as qe}from"./use-entitlements-DyRbU6bB.js";import{u as Qe,P as Ye}from"./plan-ladder-DcvH6Qa7.js";var re="Progress",oe=100,[Xe]=ye(re),[Ze,Je]=Xe(re),ve=Y.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=We,...c}=e;(a||a===0)&&!de(a)&&console.error(et(`${a}`,"Progress"));const i=de(a)?a:oe;o!==null&&!ue(o,i)&&console.error(tt(`${o}`,"Progress"));const r=ue(o,i)?o:null,u=te(r)?l(r,i):void 0;return s.jsx(Ze,{scope:n,value:r,max:i,children:s.jsx(me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":te(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ne(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});ve.displayName=re;var be="ProgressIndicator",je=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(be,n);return s.jsx(me.div,{"data-state":Ne(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});je.displayName=be;function We(e,t){return`${Math.round(e/t*100)}%`}function Ne(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function te(e){return typeof e=="number"}function de(e){return te(e)&&!isNaN(e)&&e>0}function ue(e,t){return te(e)&&!isNaN(e)&&e<=t&&e>=0}function et(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oe}\`.`}function tt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
1
+ import{r as Y,j as s,dX as me,hR as ye,c as G,m as X,b_ as Pe,b as q,a6 as se,am as Z,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aJ as we,aK as Ee,aL as Ae,aM as Ie,b9 as Ue,aN as De,aO as Te,aP as Re,gh as le,gV as ne,i as xe,e0 as pe,b6 as $e,as as Be,au as Le,L as ke,gG as He}from"./index-Bm1kfakF.js";import{s as Oe}from"./Plus-D8wmiIrv.js";import{B as Fe}from"./badge-PmwnY4hy.js";import{a as Me,b as ze,P as Ve}from"./popover-BCGMbo55.js";import{a as ce,T as Ge}from"./toggle-group-Bu2eVQ6i.js";import{g as Ke}from"./use-ai-providers-BUfnZicu.js";import{u as ie,d as he,a as qe}from"./use-entitlements-BTRsFtoM.js";import{u as Qe,P as Ye}from"./plan-ladder-CXooBnF6.js";var re="Progress",oe=100,[Xe]=ye(re),[Ze,Je]=Xe(re),ve=Y.forwardRef((e,t)=>{const{__scopeProgress:n,value:o=null,max:a,getValueLabel:l=We,...c}=e;(a||a===0)&&!de(a)&&console.error(et(`${a}`,"Progress"));const i=de(a)?a:oe;o!==null&&!ue(o,i)&&console.error(tt(`${o}`,"Progress"));const r=ue(o,i)?o:null,u=te(r)?l(r,i):void 0;return s.jsx(Ze,{scope:n,value:r,max:i,children:s.jsx(me.div,{"aria-valuemax":i,"aria-valuemin":0,"aria-valuenow":te(r)?r:void 0,"aria-valuetext":u,role:"progressbar","data-state":Ne(r,i),"data-value":r??void 0,"data-max":i,...c,ref:t})})});ve.displayName=re;var be="ProgressIndicator",je=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(be,n);return s.jsx(me.div,{"data-state":Ne(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...o,ref:t})});je.displayName=be;function We(e,t){return`${Math.round(e/t*100)}%`}function Ne(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function te(e){return typeof e=="number"}function de(e){return te(e)&&!isNaN(e)&&e>0}function ue(e,t){return te(e)&&!isNaN(e)&&e<=t&&e>=0}function et(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${oe}\`.`}function tt(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
2
2
  - a positive number
3
3
  - less than the value passed to \`max\` (or ${oe} if no \`max\` prop is set)
4
4
  - \`null\` or \`undefined\` if the progress is indeterminate.
@@ -1 +1 @@
1
- import{r as l,c4 as _,j as c,c6 as j,c7 as x,c5 as w,c1 as z,c2 as G,c3 as H,cb as E,ck as K,e1 as b,cf as U,ch as V,cl as W,cg as Z,ci as q,cj as B,cm as J,cn as Q,c9 as X,c as R,m as Y}from"./index-DcLeMIKL.js";var A="Popover",[N]=K(A,[E]),m=E(),[ee,P]=N(A),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=A;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(w,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(w,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),k=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};k.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=W("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return U(a)},[]),c.jsx(V,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return Z(),c.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(J,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(Q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=k,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
1
+ import{r as l,c4 as _,j as c,c6 as j,c7 as x,c5 as w,c1 as z,c2 as G,c3 as H,cb as E,ck as K,e1 as b,cf as U,ch as V,cl as W,cg as Z,ci as q,cj as B,cm as J,cn as Q,c9 as X,c as R,m as Y}from"./index-Bm1kfakF.js";var A="Popover",[N]=K(A,[E]),m=E(),[ee,P]=N(A),F=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:s,modal:a=!1}=t,i=m(e),u=l.useRef(null),[f,v]=l.useState(!1),[g,p]=z({prop:r,defaultProp:n??!1,onChange:s,caller:A});return c.jsx(G,{...i,children:c.jsx(ee,{scope:e,contentId:H(),triggerRef:u,open:g,onOpenChange:p,onOpenToggle:l.useCallback(()=>p(d=>!d),[p]),hasCustomAnchor:f,onCustomAnchorAdd:l.useCallback(()=>v(!0),[]),onCustomAnchorRemove:l.useCallback(()=>v(!1),[]),modal:a,children:o})})};F.displayName=A;var y="PopoverAnchor",S=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(y,o),s=m(o),{onCustomAnchorAdd:a,onCustomAnchorRemove:i}=n;return l.useEffect(()=>(a(),()=>i()),[a,i]),c.jsx(w,{...s,...r,ref:e})});S.displayName=y;var D="PopoverTrigger",M=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(D,o),s=m(o),a=_(e,n.triggerRef),i=c.jsx(j.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":L(n.open),...r,ref:a,onClick:x(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?i:c.jsx(w,{asChild:!0,...s,children:i})});M.displayName=D;var O="PopoverPortal",[oe,te]=N(O,{forceMount:void 0}),k=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,s=P(O,e);return c.jsx(oe,{scope:e,forceMount:o,children:c.jsx(b,{present:o||s.open,children:c.jsx(X,{asChild:!0,container:n,children:r})})})};k.displayName=O;var h="PopoverContent",T=l.forwardRef((t,e)=>{const o=te(h,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,s=P(h,t.__scopePopover);return c.jsx(b,{present:r||s.open,children:s.modal?c.jsx(ne,{...n,ref:e}):c.jsx(se,{...n,ref:e})})});T.displayName=h;var re=W("PopoverContent.RemoveScroll"),ne=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(null),n=_(e,r),s=l.useRef(!1);return l.useEffect(()=>{const a=r.current;if(a)return U(a)},[]),c.jsx(V,{as:re,allowPinchZoom:!0,children:c.jsx(I,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:x(t.onCloseAutoFocus,a=>{a.preventDefault(),s.current||o.triggerRef.current?.focus()}),onPointerDownOutside:x(t.onPointerDownOutside,a=>{const i=a.detail.originalEvent,u=i.button===0&&i.ctrlKey===!0,f=i.button===2||u;s.current=f},{checkForDefaultPrevented:!1}),onFocusOutside:x(t.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})})}),se=l.forwardRef((t,e)=>{const o=P(h,t.__scopePopover),r=l.useRef(!1),n=l.useRef(!1);return c.jsx(I,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{t.onCloseAutoFocus?.(s),s.defaultPrevented||(r.current||o.triggerRef.current?.focus(),s.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:s=>{t.onInteractOutside?.(s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const a=s.target;o.triggerRef.current?.contains(a)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&n.current&&s.preventDefault()}})}),I=l.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:v,...g}=t,p=P(h,o),d=m(o);return Z(),c.jsx(q,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:s,children:c.jsx(B,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:v,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>p.onOpenChange(!1),children:c.jsx(J,{"data-state":L(p.open),role:"dialog",id:p.contentId,...d,...g,ref:e,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose",ae=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P($,o);return c.jsx(j.button,{type:"button",...r,ref:e,onClick:x(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=$;var ce="PopoverArrow",ie=l.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=m(o);return c.jsx(Q,{...n,...r,ref:e})});ie.displayName=ce;function L(t){return t?"open":"closed"}var le=F,pe=S,de=M,ue=k,fe=T;function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(le,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(de,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function he(t){const e=R.c(19);let o,r,n,s,a,i;e[0]!==t?({className:o,align:s,sideOffset:a,container:r,variant:i,...n}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=s,e[5]=a,e[6]=i):(o=e[1],r=e[2],n=e[3],s=e[4],a=e[5],i=e[6]);const u=s===void 0?"center":s,f=a===void 0?4:a,v=i===void 0?"default":i,g=v==="glass"?"glass rounded-[0.875rem] px-3.5 py-3":"bg-popover border p-4 shadow-md";let p;e[7]!==o||e[8]!==g?(p=Y("notranslate text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-[var(--studio-surface-radius,var(--radius-lg))] overflow-hidden outline-hidden",g,o),e[7]=o,e[8]=g,e[9]=p):p=e[9];let d;e[10]!==u||e[11]!==n||e[12]!==f||e[13]!==p||e[14]!==v?(d=c.jsx(fe,{"data-slot":"popover-content",align:u,sideOffset:f,translate:"no","data-variant":v,className:p,...n}),e[10]=u,e[11]=n,e[12]=f,e[13]=p,e[14]=v,e[15]=d):d=e[15];let C;return e[16]!==r||e[17]!==d?(C=c.jsx(ue,{container:r,children:d}),e[16]=r,e[17]=d,e[18]=C):C=e[18],C}function xe(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-anchor",...o}),e[2]=o,e[3]=r):r=e[3],r}export{ge as P,Pe as a,he as b,xe as c};
@@ -1 +1 @@
1
- import{c as it,b as pt,r as at,J as jt,j as e,m as et,B as tt,au as Ct}from"./index-DcLeMIKL.js";import{F as Nt}from"./agent-icon-C9GKvk-e.js";import{b as Dt}from"./UserCheck01-KC3-wNT4.js";import{s as kt}from"./Plus-Bt6EBJN9.js";import{S as St}from"./scroll-area-B7J9Sko9.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{N as zt}from"./category-tree-mmseCBUa.js";import{g as Et,d as Pt}from"./item-actions-oyU9qHS3.js";import"./AlertCircle-B3Cju_A1.js";import"./Tool01-C-ZDvUZB.js";import"./ArrowUp-BfNOj71J.js";import"./ArrowLeft-JqakTihq.js";import"./ArrowRight-BfeXu93i.js";import"./BookOpen01-BKu_pkwc.js";import"./Globe04-eZsWB_1O.js";import"./CheckCircle-Bai2UKV6.js";import"./ChevronDown-Z_rS_qxi.js";import"./ChevronSelectorVertical-RCMLCOHU.js";import"./ChevronUp-Dw-CS8VU.js";import"./UserSquare-DxDl1vQw.js";import"./LinkBroken01-luAAtNTl.js";import"./CreditCard01-r4fHrP_W.js";import"./File02-t5qv63Kr.js";import"./MessageCircle01-BCGadvZ4.js";import"./SwitchHorizontal01-CTbodgu_.js";import"./Eye-ByR79fPG.js";import"./Fingerprint04-CS__1Y5O.js";import"./Image01-DDNpzV54.js";import"./Key01-Bw_fJ2tr.js";import"./LayoutLeft-DitqlfzI.js";import"./Minus-4VQcuoJL.js";import"./Monitor01-Cl-96JXO.js";import"./Sun-CdW70nGr.js";import"./Play-tK-cgr7Z.js";import"./SearchMd-CAXH4rmA.js";import"./ShoppingBag01-BaVX9GKu.js";import"./Trash01-ytRgJXDs.js";import"./Upload01-BOEdYpIY.js";import"./Users01-BgoP6eBE.js";import"./XClose-BWSiI7cY.js";import"./Zap-CMTLEaPZ.js";import"./index-BdQq_4o_.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BXwaA-uL.js";import"./collapsible-CQV85QWM.js";import"./use-copy-GTs1mQSA.js";import"./usage-stats-DjHbJqov.js";import"./utils-CVEq3hMx.js";import"./markdown-CcVSwBWB.js";import"./chat-context-COXlihFB.js";import"./use-panel-navigate-DGj76mtN.js";import"./thread-route-BM-FWJgg.js";import"./use-project-scope-dGVX3wVy.js";import"./repository-binding-tVQHTFdi.js";import"./use-mcp-client-a0JH7jJm.js";import"./auth--eLPRq84.js";import"./use-view-draft-kind-BWu43EEo.js";import"./use-blog-view-CBaNrvAc.js";import"./use-organization-settings-B3R7qjx0.js";import"./schema-DCG0xu5i.js";import"./task-board-C77QB2Pd.js";import"./thread-intent-B75osykh.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-eyaMeGEd.js";import"./session-runtime-CF-cKyl4.js";import"./use-entitlements-DyRbU6bB.js";import"./use-ai-providers-CdKKB0Ai.js";import"./use-current-view-B_1DObkk.js";import"./use-in-settings-Dpd8gE8-.js";import"./use-decopilot-events-eXc6A_1m.js";import"./use-mobile-CP4UQFCv.js";import"./tooltip-DDRxK_rC.js";import"./index-uKgIl52k.js";import"./gateway-client-CxQSAdad.js";import"./form-BCsbxXDw.js";import"./label-DRW5vmPi.js";import"./task-key-BhehnK9l.js";import"./use-task-board-items-Dpf2HIPt.js";import"./config-CO0pdfAU.js";import"./task-route-DRwGh5Pk.js";import"./project-index-hJYvYDOU.js";import"./shell-layout-c07HQj2a.js";import"./use-deployment-admin-C1jOQ9iB.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Bw7o_UiG.js";import"./command-B6OM034H.js";import"./index-CKBK1RzI.js";import"./integration-icon-D3jIGVDv.js";import"./project-icon-BXm7ZHiW.js";import"./use-navigate-to-agent-D7laGazQ.js";import"./use-debounced-value-Ewb3RQnO.js";import"./new-project-dialog-ChqvL2rz.js";import"./repository-picker-BZvUPwbO.js";import"./github-icon-Cubk8a0z.js";import"./useInfiniteQuery-cEZFXf06.js";import"./infiniteQueryObserver-BduAjgKh.js";import"./collection-search-Bs14bntm.js";import"./new-project-store-DsU-by0h.js";import"./legacy-admin-welcome-dialog-CeWki_yJ.js";import"./drawer-DxUw9eFf.js";import"./required-auth-layout-CLsYaEaG.js";import"./use-org-sso-C-zBsXpK.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BCrbq15X.js";import"./types-DOy2Z0vk.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-C8nIUUhq.js";import"./use-connection-EMSkOWAn.js";import"./use-mcp-prompts-DfF9pE7P.js";import"./use-thread-outputs-dfOpFOiY.js";import"./file-type-icon-D8TxRFpf.js";import"./section-array-field-xbmzZQS0.js";import"./blocks-tab-states-CTVyHe6z.js";import"./site-editor-toast-C9iSdBYT.js";import"./content-changes-tuzVZCgx.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-BUDNvnzZ.js";import"./use-blocks-v8-project-BFFg2tiG.js";import"./use-voice-input-BfjNCKJB.js";import"./popover-Bit5k9lh.js";import"./index-DNnhV-B1.js";import"./checkbox-CqmFYhCZ.js";import"./select-CK3pBBYF.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-NyXKDu0b.js";import"./sandbox-git-api-DVpASqsU.js";import"./empty-state-Cu_IoiIQ.js";import"./badge-avpdistF.js";import"./empty-state-CLzYFhww.js";import"./delete-copy-DR5_GWca.js";import"./use-never-published-B4X0z1vE.js";import"./hosted-reconcile-D17_ESTT.js";import"./search-input-8Z_l1AXO.js";import"./tabs-DvXeW4HA.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-BBxvN3au.js";import"./asset-utils-DkEGuNqu.js";import"./index-CYM--kWR.js";import"./match-site-slug-config-B47_xZCi.js";import"./textarea-DNuEc6yF.js";import"./primitives-BGjcKAjx.js";import"./use-move-blocks-CC0lvbYD.js";import"./monaco-editor-B1bc6mvy.js";import"./editor-DC_MNFxo.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 vo(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]=at.useState(null),[rt]=jt(),[n,f]=at.useState(It),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,l,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}=Et(zt(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ct(new Date)),t[24]=G):G=t[24];let I;t[25]!==r?(I=r("sandbox.postCalendar.today"),t[25]=r,t[26]=I):I=t[26];let H;t[27]!==I?(H=e.jsx(tt,{variant:"outline",size:"sm",onClick:G,children:I}),t[27]=I,t[28]=H):H=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Mt),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(Lt),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 F;t[39]!==$?(F=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=F):F=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 B;t[43]!==r?(B=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=B):B=t[44];let R;t[45]!==B?(R=e.jsx(mt,{className:ft,label:B}),t[45]=B,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]!==H||t[55]!==_||t[56]!==F||t[57]!==O||t[58]!==W?(l=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),t[54]=H,t[55]=_,t[56]=F,t[57]=O,t[58]=W,t[59]=l):l=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;t[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=J):J=t[61];let Z;t[62]!==J?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),t[62]=J,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(a=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(a)},a.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(a=>{const yt=a.getMonth()===n.getMonth(),vt=ht.get(Pt(a))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const lt=g.dataTransfer.getData("text/plain");C(null),lt&&i(lt,a)},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",a.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.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(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(a)}),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))]},a.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(a=>e.jsx(nt,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.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]=l,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],l=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 L;t[72]!==x||t[73]!==P||t[74]!==T?(L=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==z?(M=e.jsx("div",{className:z,children:L}),t[76]=L,t[77]=z,t[78]=M):M=t[78];let q;return t[79]!==u||t[80]!==l||t[81]!==M?(q=e.jsxs("div",{className:u,children:[l,M]}),t[79]=u,t[80]=l,t[81]=M,t[82]=q):q=t[82],q}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function It(){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 l;t[11]!==y||t[12]!==x||t[13]!==u?(l=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]=l):l=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==l||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:l,children:s.title}),t[15]=o,t[16]=s.title,t[17]=l,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{vo as PostCalendar};
1
+ import{c as it,b as pt,r as at,J as jt,j as e,m as et,B as tt,au as Ct}from"./index-Bm1kfakF.js";import{F as Nt}from"./agent-icon-BmlBo_mr.js";import{b as Dt}from"./UserCheck01-BsbnQ5ut.js";import{s as kt}from"./Plus-D8wmiIrv.js";import{S as St}from"./scroll-area-BZSqU8Qg.js";import{c as wt,s as Tt,b as ct,a as dt}from"./date-utils-CrvIKg-s.js";import{N as zt}from"./category-tree-CT1N50Br.js";import{g as Et,d as Pt}from"./item-actions-SpeTllYG.js";import"./AlertCircle-CShy6yDX.js";import"./Tool01-Cvtzb7gx.js";import"./ArrowUp-DEEf-mtS.js";import"./ArrowLeft-WKtVHs-Z.js";import"./ArrowRight-FtSbCfTm.js";import"./BookOpen01-2E_0y9OX.js";import"./Globe04-BStLKLZ2.js";import"./CheckCircle-DZKYp081.js";import"./ChevronDown-DZmwX-ra.js";import"./ChevronSelectorVertical-BBSQj61f.js";import"./ChevronUp-up6pfAf9.js";import"./UserSquare-B3Bg0K9g.js";import"./LinkBroken01-DGLo0pdz.js";import"./CreditCard01-BPmia42q.js";import"./File02-C19wgG-g.js";import"./MessageCircle01-BSvG5u-_.js";import"./SwitchHorizontal01-C2pVU_4J.js";import"./Eye-BuU02LHf.js";import"./Fingerprint04-D5Hh-Z6T.js";import"./Image01-DPsmXJM9.js";import"./Key01-7I5yC-jW.js";import"./LayoutLeft-DUAhH4Wy.js";import"./Minus-BWHpZUKs.js";import"./Monitor01-docIVUl5.js";import"./Sun-BiUlQLmT.js";import"./Play-2z1E087w.js";import"./SearchMd-DL0DTMXc.js";import"./ShoppingBag01-BvzxucRv.js";import"./Trash01-9RQC1f5G.js";import"./Upload01-3Gw-mR9u.js";import"./Users01-w98WkMA8.js";import"./XClose-rn7BTPbt.js";import"./Zap-DuqrcICg.js";import"./index-BdQq_4o_.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CXG2-VJv.js";import"./collapsible-MMZS4bUW.js";import"./use-copy-thUFz6-q.js";import"./usage-stats-DkZP-2zt.js";import"./utils-CVEq3hMx.js";import"./markdown-CQMqqgOz.js";import"./chat-context-B0mIAvmD.js";import"./use-panel-navigate-W20lHVA4.js";import"./thread-route-C6dcoLI6.js";import"./use-project-scope-BN_bspzD.js";import"./repository-binding-BmnG5TxR.js";import"./use-mcp-client-BRvedH7Y.js";import"./auth-MiTZGjji.js";import"./use-view-draft-kind-Bp1qVtwW.js";import"./use-blog-view-C8xBHbun.js";import"./use-organization-settings-Cubqq6kD.js";import"./schema-BUUxEy3p.js";import"./task-board-DjHmGwky.js";import"./thread-intent-DLUS-yM4.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-hh2syLPB.js";import"./session-runtime-B0EpXuIX.js";import"./use-entitlements-BTRsFtoM.js";import"./use-ai-providers-BUfnZicu.js";import"./use-current-view-B8GTnEcc.js";import"./use-in-settings-nBmDr90L.js";import"./use-decopilot-events-B21Nf-wv.js";import"./use-mobile-pXMsiqcl.js";import"./tooltip-gcbYZwxC.js";import"./index-Cs4d-rU4.js";import"./gateway-client-CJDxmxSa.js";import"./form-DoeHcF5c.js";import"./label-D53IaeZS.js";import"./task-key-ftrd3J5s.js";import"./use-task-board-items-DPgZ__oW.js";import"./config-ENUSei4z.js";import"./task-route-BdeGqsQi.js";import"./project-index-BaWNSq-B.js";import"./shell-layout-Dtm12Wiy.js";import"./use-deployment-admin-CDJQzcvO.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-D-samRAE.js";import"./command-lFozjt-f.js";import"./index-QSfgjCsF.js";import"./integration-icon-BhUObfAr.js";import"./project-icon-CsOvQIQK.js";import"./use-navigate-to-agent-DBjH_n7x.js";import"./use-debounced-value-Ct5qlSK6.js";import"./new-project-dialog-D__ZumnI.js";import"./repository-picker-De0GPaRE.js";import"./github-icon-Dv1ygj1J.js";import"./useInfiniteQuery-DHgrT3Au.js";import"./infiniteQueryObserver-DBJgsShk.js";import"./collection-search-RaF1TESZ.js";import"./new-project-store-f5bwc2gs.js";import"./legacy-admin-welcome-dialog-CwPoX24t.js";import"./drawer-BaaFg3R1.js";import"./required-auth-layout-BMBpLakt.js";import"./use-org-sso-CjTvJs1C.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BfqxDRa0.js";import"./types-BKngmNWD.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-DrryPrKH.js";import"./use-connection-C16q1hbs.js";import"./use-mcp-prompts-DR7oy3B2.js";import"./use-thread-outputs-DhPZgS9-.js";import"./file-type-icon-DH9FvqO6.js";import"./section-array-field-BQH3eI8l.js";import"./blocks-tab-states-jg37ZdSd.js";import"./site-editor-toast-B7mzcNQB.js";import"./content-changes-D1-8LQ7K.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-Fh4ab2J1.js";import"./use-blocks-v8-project-BjtFyGqs.js";import"./use-voice-input-BpwMnzE1.js";import"./popover-BCGMbo55.js";import"./index-D4jxMGCU.js";import"./checkbox-B1JBiKHt.js";import"./select-UUQ-q9oo.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-BdqUM1fA.js";import"./sandbox-git-api-CvaJsg00.js";import"./empty-state-eYKU8nO4.js";import"./badge-PmwnY4hy.js";import"./empty-state-csW-GeIV.js";import"./delete-copy-Bq1Zqo6Q.js";import"./use-never-published-COSddoQh.js";import"./hosted-reconcile-C0aDIUim.js";import"./search-input-CI2JAJKY.js";import"./tabs-Ba6hhIKT.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-BEgiTgol.js";import"./asset-utils-lEJDqLJA.js";import"./index-Cwm5p5sk.js";import"./match-site-slug-config-B47_xZCi.js";import"./textarea-CicBpiIo.js";import"./primitives-DAv3J-jo.js";import"./use-move-blocks-D3Ec5QNN.js";import"./monaco-editor-qCqkYYEk.js";import"./editor-BJ1E4lJs.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 vo(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]=at.useState(null),[rt]=jt(),[n,f]=at.useState(It),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,l,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}=Et(zt(b)),st=wt(n),bt=Tt(new Date);u="flex h-full w-full flex-col";let G;t[24]===Symbol.for("react.memo_cache_sentinel")?(G=()=>f(ct(new Date)),t[24]=G):G=t[24];let I;t[25]!==r?(I=r("sandbox.postCalendar.today"),t[25]=r,t[26]=I):I=t[26];let H;t[27]!==I?(H=e.jsx(tt,{variant:"outline",size:"sm",onClick:G,children:I}),t[27]=I,t[28]=H):H=t[28];let Q;t[29]===Symbol.for("react.memo_cache_sentinel")?(Q=()=>f(Mt),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(Lt),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 F;t[39]!==$?(F=e.jsx(tt,{variant:"ghost",size:"icon",onClick:X,"aria-label":$,children:Y}),t[39]=$,t[40]=F):F=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 B;t[43]!==r?(B=r("sandbox.postCalendar.legendScheduled"),t[43]=r,t[44]=B):B=t[44];let R;t[45]!==B?(R=e.jsx(mt,{className:ft,label:B}),t[45]=B,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]!==H||t[55]!==_||t[56]!==F||t[57]!==O||t[58]!==W?(l=e.jsxs("div",{className:"flex items-center gap-2 px-4 h-12 border-b shrink-0",children:[H,_,F,O,W]}),t[54]=H,t[55]=_,t[56]=F,t[57]=O,t[58]=W,t[59]=l):l=t[59],z="relative flex-1 min-h-0",x=St,T="h-full",S="flex min-w-[880px] gap-4 p-4";let J;t[60]!==r?(J=r("sandbox.postCalendar.unscheduledHint"),t[60]=r,t[61]=J):J=t[61];let Z;t[62]!==J?(Z=e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:J}),t[62]=J,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(a=>e.jsx("div",{className:"px-2 text-2xs text-muted-foreground",children:ut.format(a)},a.getDay()))}),e.jsx("div",{className:"grid grid-cols-7 gap-px overflow-hidden rounded-lg border bg-border",children:st.flat().map(a=>{const yt=a.getMonth()===n.getMonth(),vt=ht.get(Pt(a))??[];return e.jsxs("div",{onDragOver:g=>{j&&(g.preventDefault(),g.dataTransfer.dropEffect="move")},onDrop:g=>{g.preventDefault();const lt=g.dataTransfer.getData("text/plain");C(null),lt&&i(lt,a)},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",a.getTime()===bt.getTime()?"bg-primary font-semibold text-primary-foreground":"text-muted-foreground"),children:a.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(a),"aria-label":r("sandbox.postCalendar.schedulePostOn",{date:gt.format(a)}),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))]},a.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(a=>e.jsx(nt,{entry:a,active:a.post.key===d,draggable:!1,onSelect:o,onDragStateChange:C},a.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]=l,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],l=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 L;t[72]!==x||t[73]!==P||t[74]!==T?(L=e.jsx(x,{className:T,children:P}),t[72]=x,t[73]=P,t[74]=T,t[75]=L):L=t[75];let M;t[76]!==L||t[77]!==z?(M=e.jsx("div",{className:z,children:L}),t[76]=L,t[77]=z,t[78]=M):M=t[78];let q;return t[79]!==u||t[80]!==l||t[81]!==M?(q=e.jsxs("div",{className:u,children:[l,M]}),t[79]=u,t[80]=l,t[81]=M,t[82]=q):q=t[82],q}function Lt(h){return dt(h,1)}function Mt(h){return dt(h,-1)}function It(){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 l;t[11]!==y||t[12]!==x||t[13]!==u?(l=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]=l):l=t[14];let c;return t[15]!==o||t[16]!==s.title||t[17]!==l||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:l,children:s.title}),t[15]=o,t[16]=s.title,t[17]=l,t[18]=n,t[19]=f,t[20]=p,t[21]=N,t[22]=c):c=t[22],c}export{vo as PostCalendar};
@@ -1,2 +1,2 @@
1
- import{b as ee,am as it,r as K,j as t,B as Le,D as lt,v as at,w as nt,x as rt,aU as ct,aY as dt,m as Be,y as mt,t as we,c as se,bu as pt,a9 as ut,aP as ft,aO as xt,aL as ht,aJ as gt,aK as bt,aN as jt,aM as vt,b9 as yt,h as St,ba as kt,I as Ae}from"./index-DcLeMIKL.js";import{u as Et}from"./chat-context-COXlihFB.js";import{i as Oe}from"./AlertCircle-B3Cju_A1.js";import{aF as Ct,bA as _t,_ as Pt,ao as Nt}from"./agent-icon-C9GKvk-e.js";import{e as Tt}from"./UserSquare-DxDl1vQw.js";import{i as Lt,a as wt}from"./UserCheck01-KC3-wNT4.js";import{s as Dt}from"./Trash01-ytRgJXDs.js";import{s as Bt}from"./XClose-BWSiI7cY.js";import{L as te}from"./label-DRW5vmPi.js";import{M as At}from"./multi-select-ChiAd1Ul.js";import{b as Ft,a as It,T as Ge,c as We}from"./tabs-DvXeW4HA.js";import{S as Ot}from"./switch-DgmP8oP8.js";import{T as Je}from"./textarea-DNuEc6yF.js";import{S as zt,I as Rt}from"./save-status-DSC588wx.js";import{u as $t,I as qt,a as Ie,B as Mt,R as Ut}from"./block-document-BbOQ5Bgg.js";import{R as Ht,e as Vt,H as Gt,u as Wt,f as Re,N as Yt}from"./held-block-view-Df32M-2X.js";import{b as Kt,C as Qt,K as Jt}from"./blog-schema-Ds6Jj5I-.js";import{a6 as Zt,N as Xt,a as es,d as ts,f as ss,a7 as os,a8 as is,a9 as ls,m as Ye,p as Ze,aa as as,I as Xe,a3 as ns,a2 as rs,ab as cs,Q as ds}from"./category-tree-mmseCBUa.js";import{s as B,E as ms,R as ps,A as us,a as fs}from"./primitives-BGjcKAjx.js";import{c as $e,T as qe,a as Me}from"./tooltip-DDRxK_rC.js";import{f as xs,d as hs,b as gs}from"./blog-preview-url-BU9XBgO3.js";import{e as bs,f as js,g as Ke,u as vs,a as ys,d as Ss}from"./delete-copy-DR5_GWca.js";import{u as ks}from"./use-ai-providers-CdKKB0Ai.js";import{u as Es}from"./use-delete-block-MJCP6O8n.js";import{F as Cs,u as _s,a as Ps,k as Ns}from"./use-never-published-B4X0z1vE.js";import{u as Ts}from"./use-fast-preview-draft-url-DWEd5zOQ.js";import{u as Ls}from"./use-autosave-L2Cuikde.js";import{b as ws}from"./repository-binding-tVQHTFdi.js";import{u as Ds}from"./use-file-configs-BBxvN3au.js";import{m as Bs}from"./match-site-slug-config-B47_xZCi.js";import{a as As}from"./Image01-DDNpzV54.js";import{e as Fs}from"./Tool01-C-ZDvUZB.js";import{a as Is,E as Os,u as zs}from"./usage-stats-DjHbJqov.js";import{s as Rs}from"./suggestion-DDDljlal.js";import{E as $s,T as Ue}from"./editor-classes-BxUv_3jy.js";import{u as qs}from"./site-editor-toast-C9iSdBYT.js";import"./use-panel-navigate-DGj76mtN.js";import"./thread-route-BM-FWJgg.js";import"./use-project-scope-dGVX3wVy.js";import"./use-view-draft-kind-BWu43EEo.js";import"./use-blog-view-CBaNrvAc.js";import"./use-organization-settings-B3R7qjx0.js";import"./schema-DCG0xu5i.js";import"./task-board-C77QB2Pd.js";import"./thread-intent-B75osykh.js";import"./use-mcp-client-a0JH7jJm.js";import"./auth--eLPRq84.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-eyaMeGEd.js";import"./session-runtime-CF-cKyl4.js";import"./use-entitlements-DyRbU6bB.js";import"./use-current-view-B_1DObkk.js";import"./use-in-settings-Dpd8gE8-.js";import"./use-decopilot-events-eXc6A_1m.js";import"./ArrowUp-BfNOj71J.js";import"./ArrowLeft-JqakTihq.js";import"./ArrowRight-BfeXu93i.js";import"./BookOpen01-BKu_pkwc.js";import"./Globe04-eZsWB_1O.js";import"./CheckCircle-Bai2UKV6.js";import"./ChevronDown-Z_rS_qxi.js";import"./ChevronSelectorVertical-RCMLCOHU.js";import"./ChevronUp-Dw-CS8VU.js";import"./LinkBroken01-luAAtNTl.js";import"./CreditCard01-r4fHrP_W.js";import"./File02-t5qv63Kr.js";import"./MessageCircle01-BCGadvZ4.js";import"./SwitchHorizontal01-CTbodgu_.js";import"./Eye-ByR79fPG.js";import"./Fingerprint04-CS__1Y5O.js";import"./Key01-Bw_fJ2tr.js";import"./LayoutLeft-DitqlfzI.js";import"./Minus-4VQcuoJL.js";import"./Monitor01-Cl-96JXO.js";import"./Sun-CdW70nGr.js";import"./Play-tK-cgr7Z.js";import"./Plus-Bt6EBJN9.js";import"./SearchMd-CAXH4rmA.js";import"./ShoppingBag01-BaVX9GKu.js";import"./Upload01-BOEdYpIY.js";import"./Users01-BgoP6eBE.js";import"./Zap-CMTLEaPZ.js";import"./badge-avpdistF.js";import"./checkbox-CqmFYhCZ.js";import"./command-B6OM034H.js";import"./index-CKBK1RzI.js";import"./popover-Bit5k9lh.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-B3xyvBa2.js";import"./asset-utils-DkEGuNqu.js";import"./useInfiniteQuery-cEZFXf06.js";import"./infiniteQueryObserver-BduAjgKh.js";import"./task-key-BhehnK9l.js";import"./sortable.esm-BB6WYpCo.js";import"./product-picker-dialog-Crik9Yzb.js";import"./index-D2fEC1Pw.js";import"./index-CYM--kWR.js";import"./blocks-tab-states-CTVyHe6z.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-BfjNCKJB.js";import"./drawer-DxUw9eFf.js";import"./use-mobile-CP4UQFCv.js";import"./index-DNnhV-B1.js";import"./select-CK3pBBYF.js";import"./index-BdQq_4o_.js";import"./index-uKgIl52k.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-Cu_IoiIQ.js";import"./utils-NyXKDu0b.js";import"./calendar-BuXbAP5n.js";import"./section-array-field-xbmzZQS0.js";import"./named-rule-step-DmKRerop.js";import"./slider-Cx6Jf-wu.js";import"./index-_HFJcBkc.js";import"./tooltipContext-DH7ypxsl.js";import"./CategoricalChart-DBuZ9FMz.js";import"./index-2ipT6yjl.js";import"./combobox-CSfT_sOf.js";import"./scroll-area-B7J9Sko9.js";import"./hosted-reconcile-D17_ESTT.js";import"./collapsible-CQV85QWM.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BXwaA-uL.js";import"./use-copy-GTs1mQSA.js";import"./use-task-board-items-Dpf2HIPt.js";import"./config-CO0pdfAU.js";import"./task-route-DRwGh5Pk.js";import"./project-index-hJYvYDOU.js";import"./utils-CVEq3hMx.js";import"./shell-layout-c07HQj2a.js";import"./use-deployment-admin-C1jOQ9iB.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-Bw7o_UiG.js";import"./integration-icon-D3jIGVDv.js";import"./project-icon-BXm7ZHiW.js";import"./use-navigate-to-agent-D7laGazQ.js";import"./use-debounced-value-Ewb3RQnO.js";import"./new-project-dialog-ChqvL2rz.js";import"./repository-picker-BZvUPwbO.js";import"./github-icon-Cubk8a0z.js";import"./collection-search-Bs14bntm.js";import"./new-project-store-DsU-by0h.js";import"./legacy-admin-welcome-dialog-CeWki_yJ.js";import"./required-auth-layout-CLsYaEaG.js";import"./use-org-sso-C-zBsXpK.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BCrbq15X.js";import"./types-DOy2Z0vk.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./gateway-client-CxQSAdad.js";import"./markdown-CcVSwBWB.js";import"./sheet-C8nIUUhq.js";import"./use-connection-EMSkOWAn.js";import"./use-mcp-prompts-DfF9pE7P.js";import"./use-thread-outputs-dfOpFOiY.js";import"./file-type-icon-D8TxRFpf.js";import"./use-move-blocks-CC0lvbYD.js";import"./sandbox-git-api-DVpASqsU.js";import"./search-input-8Z_l1AXO.js";import"./form-BCsbxXDw.js";import"./content-changes-tuzVZCgx.js";import"./use-sandbox-events-BUDNvnzZ.js";import"./use-blocks-v8-project-BFFg2tiG.js";const De=l=>typeof l=="string"?l:"",Ms={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function et(l){const e=[];let s=0,a=!1;for(;s<l.length;){if(l[s]==="<"){const c=l.indexOf(">",s);s=c<0?l.length:c+1;continue}let o=l[s]??"",n=s+1;if(l[s]==="&"){const c=l.indexOf(";",s);if(c>=0&&c-s<=10){const i=Ms[l.slice(s,c+1).toLowerCase()];i!==void 0&&(o=i,n=c+1)}}const d=s;if(s=n,/\s/.test(o)){if(a){const c=e[e.length-1];c&&(c.end=n);continue}e.push({ch:" ",start:d,end:n}),a=!0}else e.push({ch:o,start:d,end:n}),a=!1}return{text:e.map(o=>o.ch).join(""),chars:e}}function Us(l){return et(l).text.trim()}function Hs(l){const e=[];for(const s of l)switch(Zt(De(s.__resolveType))){case"Paragraph":e.push(Us(De(s.html)));break;case"Heading":e.push(De(s.text));break;case"Quote":e.push(De(s.quote));break;case"List":e.push(De(s.items));break}return e.filter(Boolean).join(`
1
+ import{b as ee,am as it,r as K,j as t,B as Le,D as lt,v as at,w as nt,x as rt,aU as ct,aY as dt,m as Be,y as mt,t as we,c as se,bu as pt,a9 as ut,aP as ft,aO as xt,aL as ht,aJ as gt,aK as bt,aN as jt,aM as vt,b9 as yt,h as St,ba as kt,I as Ae}from"./index-Bm1kfakF.js";import{u as Et}from"./chat-context-B0mIAvmD.js";import{i as Oe}from"./AlertCircle-CShy6yDX.js";import{aF as Ct,bA as _t,_ as Pt,ao as Nt}from"./agent-icon-BmlBo_mr.js";import{e as Tt}from"./UserSquare-B3Bg0K9g.js";import{i as Lt,a as wt}from"./UserCheck01-BsbnQ5ut.js";import{s as Dt}from"./Trash01-9RQC1f5G.js";import{s as Bt}from"./XClose-rn7BTPbt.js";import{L as te}from"./label-D53IaeZS.js";import{M as At}from"./multi-select-CGtuxiXI.js";import{b as Ft,a as It,T as Ge,c as We}from"./tabs-Ba6hhIKT.js";import{S as Ot}from"./switch-yJM06fNp.js";import{T as Je}from"./textarea-CicBpiIo.js";import{S as zt,I as Rt}from"./save-status-0_77vPF7.js";import{u as $t,I as qt,a as Ie,B as Mt,R as Ut}from"./block-document-C4GUR02r.js";import{R as Ht,e as Vt,H as Gt,u as Wt,f as Re,N as Yt}from"./held-block-view-BLxhK7ER.js";import{b as Kt,C as Qt,K as Jt}from"./blog-schema-LnsH0S5I.js";import{a6 as Zt,N as Xt,a as es,d as ts,f as ss,a7 as os,a8 as is,a9 as ls,m as Ye,p as Ze,aa as as,I as Xe,a3 as ns,a2 as rs,ab as cs,Q as ds}from"./category-tree-CT1N50Br.js";import{s as B,E as ms,R as ps,A as us,a as fs}from"./primitives-DAv3J-jo.js";import{c as $e,T as qe,a as Me}from"./tooltip-gcbYZwxC.js";import{f as xs,d as hs,b as gs}from"./blog-preview-url-D3OQhPrj.js";import{e as bs,f as js,g as Ke,u as vs,a as ys,d as Ss}from"./delete-copy-Bq1Zqo6Q.js";import{u as ks}from"./use-ai-providers-BUfnZicu.js";import{u as Es}from"./use-delete-block-G59MfiPh.js";import{F as Cs,u as _s,a as Ps,k as Ns}from"./use-never-published-COSddoQh.js";import{u as Ts}from"./use-fast-preview-draft-url-CLjoICho.js";import{u as Ls}from"./use-autosave-CMUdyxJ4.js";import{b as ws}from"./repository-binding-BmnG5TxR.js";import{u as Ds}from"./use-file-configs-BEgiTgol.js";import{m as Bs}from"./match-site-slug-config-B47_xZCi.js";import{a as As}from"./Image01-DPsmXJM9.js";import{e as Fs}from"./Tool01-Cvtzb7gx.js";import{a as Is,E as Os,u as zs}from"./usage-stats-DkZP-2zt.js";import{s as Rs}from"./suggestion-BoJJdGmd.js";import{E as $s,T as Ue}from"./editor-classes-BYet6QQd.js";import{u as qs}from"./site-editor-toast-B7mzcNQB.js";import"./use-panel-navigate-W20lHVA4.js";import"./thread-route-C6dcoLI6.js";import"./use-project-scope-BN_bspzD.js";import"./use-view-draft-kind-Bp1qVtwW.js";import"./use-blog-view-C8xBHbun.js";import"./use-organization-settings-Cubqq6kD.js";import"./schema-BUUxEy3p.js";import"./task-board-DjHmGwky.js";import"./thread-intent-DLUS-yM4.js";import"./use-mcp-client-BRvedH7Y.js";import"./auth-MiTZGjji.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-hh2syLPB.js";import"./session-runtime-B0EpXuIX.js";import"./use-entitlements-BTRsFtoM.js";import"./use-current-view-B8GTnEcc.js";import"./use-in-settings-nBmDr90L.js";import"./use-decopilot-events-B21Nf-wv.js";import"./ArrowUp-DEEf-mtS.js";import"./ArrowLeft-WKtVHs-Z.js";import"./ArrowRight-FtSbCfTm.js";import"./BookOpen01-2E_0y9OX.js";import"./Globe04-BStLKLZ2.js";import"./CheckCircle-DZKYp081.js";import"./ChevronDown-DZmwX-ra.js";import"./ChevronSelectorVertical-BBSQj61f.js";import"./ChevronUp-up6pfAf9.js";import"./LinkBroken01-DGLo0pdz.js";import"./CreditCard01-BPmia42q.js";import"./File02-C19wgG-g.js";import"./MessageCircle01-BSvG5u-_.js";import"./SwitchHorizontal01-C2pVU_4J.js";import"./Eye-BuU02LHf.js";import"./Fingerprint04-D5Hh-Z6T.js";import"./Key01-7I5yC-jW.js";import"./LayoutLeft-DUAhH4Wy.js";import"./Minus-BWHpZUKs.js";import"./Monitor01-docIVUl5.js";import"./Sun-BiUlQLmT.js";import"./Play-2z1E087w.js";import"./Plus-D8wmiIrv.js";import"./SearchMd-DL0DTMXc.js";import"./ShoppingBag01-BvzxucRv.js";import"./Upload01-3Gw-mR9u.js";import"./Users01-w98WkMA8.js";import"./Zap-DuqrcICg.js";import"./badge-PmwnY4hy.js";import"./checkbox-B1JBiKHt.js";import"./command-lFozjt-f.js";import"./index-QSfgjCsF.js";import"./popover-BCGMbo55.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-Bu2eVQ6i.js";import"./asset-utils-lEJDqLJA.js";import"./useInfiniteQuery-DHgrT3Au.js";import"./infiniteQueryObserver-DBJgsShk.js";import"./task-key-ftrd3J5s.js";import"./sortable.esm-DRtCp0fn.js";import"./product-picker-dialog-DDwjDVDo.js";import"./index-CgEIJt8V.js";import"./index-Cwm5p5sk.js";import"./blocks-tab-states-jg37ZdSd.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-BpwMnzE1.js";import"./drawer-BaaFg3R1.js";import"./use-mobile-pXMsiqcl.js";import"./index-D4jxMGCU.js";import"./select-UUQ-q9oo.js";import"./index-BdQq_4o_.js";import"./index-Cs4d-rU4.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-eYKU8nO4.js";import"./utils-BdqUM1fA.js";import"./calendar-Dw9g3jCh.js";import"./section-array-field-BQH3eI8l.js";import"./named-rule-step-DILtKyLq.js";import"./slider-DF5FWaon.js";import"./index-B9iPbSrA.js";import"./tooltipContext-BI8jp9W6.js";import"./CategoricalChart-CENUMi_W.js";import"./index-DeObvrTG.js";import"./combobox-1zkSCtBC.js";import"./scroll-area-BZSqU8Qg.js";import"./hosted-reconcile-C0aDIUim.js";import"./collapsible-MMZS4bUW.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-CXG2-VJv.js";import"./use-copy-thUFz6-q.js";import"./use-task-board-items-DPgZ__oW.js";import"./config-ENUSei4z.js";import"./task-route-BdeGqsQi.js";import"./project-index-BaWNSq-B.js";import"./utils-CVEq3hMx.js";import"./shell-layout-Dtm12Wiy.js";import"./use-deployment-admin-CDJQzcvO.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-D-samRAE.js";import"./integration-icon-BhUObfAr.js";import"./project-icon-CsOvQIQK.js";import"./use-navigate-to-agent-DBjH_n7x.js";import"./use-debounced-value-Ct5qlSK6.js";import"./new-project-dialog-D__ZumnI.js";import"./repository-picker-De0GPaRE.js";import"./github-icon-Dv1ygj1J.js";import"./collection-search-RaF1TESZ.js";import"./new-project-store-f5bwc2gs.js";import"./legacy-admin-welcome-dialog-CwPoX24t.js";import"./required-auth-layout-BMBpLakt.js";import"./use-org-sso-CjTvJs1C.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BfqxDRa0.js";import"./types-BKngmNWD.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./gateway-client-CJDxmxSa.js";import"./markdown-CQMqqgOz.js";import"./sheet-DrryPrKH.js";import"./use-connection-C16q1hbs.js";import"./use-mcp-prompts-DR7oy3B2.js";import"./use-thread-outputs-DhPZgS9-.js";import"./file-type-icon-DH9FvqO6.js";import"./use-move-blocks-D3Ec5QNN.js";import"./sandbox-git-api-CvaJsg00.js";import"./search-input-CI2JAJKY.js";import"./form-DoeHcF5c.js";import"./content-changes-D1-8LQ7K.js";import"./use-sandbox-events-Fh4ab2J1.js";import"./use-blocks-v8-project-BjtFyGqs.js";const De=l=>typeof l=="string"?l:"",Ms={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&#39;":"'"};function et(l){const e=[];let s=0,a=!1;for(;s<l.length;){if(l[s]==="<"){const c=l.indexOf(">",s);s=c<0?l.length:c+1;continue}let o=l[s]??"",n=s+1;if(l[s]==="&"){const c=l.indexOf(";",s);if(c>=0&&c-s<=10){const i=Ms[l.slice(s,c+1).toLowerCase()];i!==void 0&&(o=i,n=c+1)}}const d=s;if(s=n,/\s/.test(o)){if(a){const c=e[e.length-1];c&&(c.end=n);continue}e.push({ch:" ",start:d,end:n}),a=!0}else e.push({ch:o,start:d,end:n}),a=!1}return{text:e.map(o=>o.ch).join(""),chars:e}}function Us(l){return et(l).text.trim()}function Hs(l){const e=[];for(const s of l)switch(Zt(De(s.__resolveType))){case"Paragraph":e.push(Us(De(s.html)));break;case"Heading":e.push(De(s.text));break;case"Quote":e.push(De(s.quote));break;case"List":e.push(De(s.items));break}return e.filter(Boolean).join(`
2
2
  `)}function Vs(l){return l.replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function Gs(l,e){const s=l.slice(0,e);return s.lastIndexOf("<a")>s.lastIndexOf("</a")}function Ws(l,e,s){const a=e.trim();if(!a||!s)return{blocks:l,applied:!1};for(let o=0;o<l.length;o++){const n=l[o];if(!n||typeof n.html!="string")continue;const d=n.html,{text:c,chars:i}=et(d);let m=c.indexOf(a);for(;m>=0;){const g=i[m],x=i[m+a.length-1];if(g&&x){const h=g.start,r=x.end,u=d.slice(h,r);if(!u.includes("<")&&!Gs(d,h)){const p=d.slice(0,h)+`<a href="${Vs(s)}">${u}</a>`+d.slice(r),f=l.slice();return f[o]={...n,html:p},{blocks:f,applied:!0}}}m=c.indexOf(a,m+1)}}return{blocks:l,applied:!1}}function Ys(l,e){let s=l,a=0;for(const o of e){const n=Ws(s,o.quote,o.href);n.applied&&(s=n.blocks,a++)}return{blocks:s,applied:a}}function Ks({virtualMcpId:l,decofile:e,sections:s,currentKey:a,meta:o,hasAi:n,onApply:d}){const c=ee(),i=it(),[m,g]=K.useState(!1),[x,h]=K.useState(!1),[r,u]=K.useState([]),[p,f]=K.useState(new Set),S=xs(e,o),C=Xt(e).filter(j=>j.key!==a&&j.slug),w=async()=>{h(!0);try{const j=Hs(s),_=await i.call("BLOG_SITE_GROUND",{virtualMcpId:l,purpose:"link"}).catch(E=>{console.warn("[linkSuggest] grounding failed",E)}),k=await i.call("BLOG_LINK_SUGGEST",{virtualMcpId:l,body:j,posts:C.map(E=>({title:E.title,slug:E.slug})),grounding:_?{report:_.report,outcome:_.outcome}:void 0}),P=[],b=new Set;for(const E of k.suggestions){const T=C.find(z=>z.slug===E.slug);if(!T||!S)continue;const A=hs(S,{category:T.categorySlugs[0]??"",slug:T.slug});if(!A||!j.includes(E.quote))continue;const F=`${E.quote}→${T.slug}`;b.has(F)||(b.add(F),P.push({quote:E.quote,href:A,title:T.title}))}u(P),f(new Set(P.map((E,T)=>T))),g(!0),P.length===0&&we.info(c("sandbox.linkSuggest.none"))}catch(j){we.error(j instanceof Error?j.message:c("sandbox.linkSuggest.failed"))}finally{h(!1)}},N=j=>f(_=>{const k=new Set(_);return k.has(j)?k.delete(j):k.add(j),k}),q=()=>{const j=r.filter((P,b)=>p.has(b)).map(P=>({quote:P.quote,href:P.href})),{blocks:_,applied:k}=Ys(s,j);d(_),g(!1),we.success(c("sandbox.linkSuggest.applied",{count:String(k)}))};return t.jsxs(t.Fragment,{children:[t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:x||!n||C.length===0,title:n?C.length===0?c("sandbox.linkSuggest.noCandidates"):c("sandbox.linkSuggest.hint"):c("sandbox.autonomous.noAiProvider"),onClick:()=>{w()},children:[x?t.jsx(Lt,{size:14,className:"animate-spin"}):t.jsx(Ct,{size:14}),c("sandbox.linkSuggest.button")]}),t.jsx(lt,{open:m,onOpenChange:g,children:t.jsxs(at,{className:"max-h-[85vh] sm:max-w-lg",children:[t.jsxs(nt,{children:[t.jsx(rt,{children:c("sandbox.linkSuggest.title")}),t.jsx(ct,{children:c("sandbox.linkSuggest.description")})]}),r.length===0?t.jsx("p",{className:"py-6 text-center text-sm text-muted-foreground",children:c("sandbox.linkSuggest.none")}):t.jsx("ul",{className:"max-h-[50vh] space-y-1 overflow-y-auto",children:r.map((j,_)=>{const k=p.has(_);return t.jsx("li",{children:t.jsxs("button",{type:"button",onClick:()=>N(_),"aria-pressed":k,className:"flex w-full items-start gap-2.5 rounded-lg border p-2.5 text-left transition-colors hover:bg-accent",children:[t.jsx("span",{className:Be("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border",k?"border-primary bg-primary text-primary-foreground":"border-input"),children:k&&t.jsx(dt,{size:11})}),t.jsxs("span",{className:"min-w-0 flex-1 text-sm",children:[t.jsxs("span",{className:"font-medium",children:["“",j.quote,"”"]}),t.jsxs("span",{className:"text-muted-foreground",children:[" → ",j.title]})]})]})},`${j.quote}-${j.href}`)})}),t.jsx(mt,{children:t.jsx(Le,{type:"button",disabled:p.size===0,onClick:q,children:c("sandbox.linkSuggest.apply",{count:String(p.size)})})})]})})]})}const Qs={unit:"pt",initial:12,min:6,max:96},Js=["outline-none min-h-80 px-4 py-3 text-[15px] leading-relaxed text-foreground","[&>*:first-child]:mt-0 [&_p]:my-3","[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-3xl [&_h1]:font-bold","[&_h2]:mb-3 [&_h2]:mt-6 [&_h2]:text-2xl [&_h2]:font-bold","[&_h3]:mb-2 [&_h3]:mt-5 [&_h3]:text-xl [&_h3]:font-bold","[&_h4]:mb-2 [&_h4]:mt-4 [&_h4]:text-lg [&_h4]:font-bold","[&_h5]:mb-2 [&_h5]:mt-4 [&_h5]:text-base [&_h5]:font-bold","[&_h6]:mb-2 [&_h6]:mt-4 [&_h6]:text-sm [&_h6]:font-bold","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_li>p]:my-1","[&_blockquote]:my-3 [&_blockquote]:border-l-2 [&_blockquote]:border-border [&_blockquote]:pl-3 [&_blockquote]:text-muted-foreground","[&_pre]:my-3 [&_pre]:overflow-x-auto [&_pre]:rounded-lg [&_pre]:bg-muted [&_pre]:p-3 [&_pre]:font-mono [&_pre]:text-sm","[&_img]:inline-block [&_img]:h-auto [&_img]:max-w-full","[&_img.ProseMirror-selectednode]:outline-2 [&_img.ProseMirror-selectednode]:outline-primary","[&_table]:my-3 [&_table]:w-full [&_table]:border-collapse [&_td>p]:my-0 [&_th>p]:my-0","[&_td]:border [&_td]:border-border [&_td]:p-2 [&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:p-2","[&_strong]:font-bold",$s],Zs=["[&_.ProseMirror_p.is-editor-empty:first-child::before]:content-[attr(data-placeholder)]","[&_.ProseMirror_p.is-editor-empty:first-child::before]:text-muted-foreground","[&_.ProseMirror_p.is-editor-empty:first-child::before]:float-left","[&_.ProseMirror_p.is-editor-empty:first-child::before]:h-0","[&_.ProseMirror_p.is-editor-empty:first-child::before]:pointer-events-none"];function Xs({editor:l,virtualMcpId:e}){const s=ws(e),a=Ds(),o=Bs(a.data?.configs??[],pt(s),s?.metadata?.assetStorageConfigId)?.id,n=ee(),[d,c]=K.useState(!1),[i,m]=K.useState(null),[g,x]=K.useState(null),h=p=>{l.chain().setImage({src:p}).run()},r=()=>{m(null),x(null)},u=()=>{const p=(i??"").trim(),f=Ke(p);if(!f&&p){x(p.toLowerCase().startsWith("data:")?n("sandbox.postEditor.legacyImageDataUrl"):n("sectionsEditor.imageField.unsafeUrl"));return}f&&h(f),r()};return t.jsxs("div",{className:"flex items-center gap-0.5",children:[t.jsx(Ue,{active:d,label:n("sandbox.postEditor.legacyInsertImage"),onClick:()=>c(!0),children:t.jsx(Fs,{size:14})}),t.jsx(Ue,{active:i!==null,label:n("sandbox.postEditor.legacyInsertImageUrl"),onClick:()=>i===null?m(""):u(),children:t.jsx(As,{size:14})}),i!==null&&t.jsx(qt,{draft:i,notice:g,label:n("sandbox.postEditor.legacyInsertImageUrl"),placeholder:n("sectionsEditor.imageField.urlPlaceholder"),onDraftChange:p=>{x(null),m(p)},onCommit:u,onCancel:r}),t.jsx(Cs,{open:d,onOpenChange:c,mode:"image",lockedConfigId:o,onSelect:p=>{const f=Ke(p);f&&h(f)}})]})}function eo(l){const e=se.c(22),{editor:s,virtualMcpId:a}=l,o=ee(),[n,d]=K.useState(!1);let c;e[0]!==s?(c={editor:s,selector:to},e[0]=s,e[1]=c):c=e[1];const i=zs(c);let m;e[2]!==s||e[3]!==n||e[4]!==i.highlight?(m=t.jsx(Vt,{editor:s,mark:"highlight",currentColor:i.highlight,open:n,onOpenChange:d}),e[2]=s,e[3]=n,e[4]=i.highlight,e[5]=m):m=e[5];const g=i.codeBlock;let x;e[6]!==o?(x=o("sandbox.postEditor.legacyCodeBlock"),e[6]=o,e[7]=x):x=e[7];let h;e[8]!==s?(h=()=>s.chain().focus().toggleCodeBlock().run(),e[8]=s,e[9]=h):h=e[9];let r;e[10]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(_t,{size:14}),e[10]=r):r=e[10];let u;e[11]!==i.codeBlock||e[12]!==x||e[13]!==h?(u=t.jsx(Ue,{active:g,label:x,onClick:h,children:r}),e[11]=i.codeBlock,e[12]=x,e[13]=h,e[14]=u):u=e[14];let p;e[15]!==s||e[16]!==a?(p=t.jsx(Xs,{editor:s,virtualMcpId:a}),e[15]=s,e[16]=a,e[17]=p):p=e[17];let f;return e[18]!==m||e[19]!==u||e[20]!==p?(f=t.jsxs(t.Fragment,{children:[m,u,p]}),e[18]=m,e[19]=u,e[20]=p,e[21]=f):f=e[21],f}function to(l){const{editor:e}=l;return{highlight:e.isActive("highlight")?e.getAttributes("highlight").color??null:null,codeBlock:e.isActive("codeBlock")}}function so({value:l,onChange:e,decofile:s,sandboxRef:a}){const o=ee(),n=K.useRef(e);n.current=e;const d=Is({extensions:[...js(),Rs.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:l,editorProps:{attributes:{class:Be(Js)}},onUpdate:({editor:i})=>{n.current(bs(i.getHTML()))}}),c=$t({decofile:s,sandboxRef:a});return d?t.jsxs("div",{className:"rounded-[var(--studio-surface-radius,var(--radius-md))] border shadow-edge border-input",children:[t.jsx(Ht,{editor:d,fontSize:Qs,linkSources:c,extras:t.jsx(eo,{editor:d,virtualMcpId:a?.virtualMcpId})}),t.jsx(Os,{editor:d,className:Be("max-h-[70vh] overflow-y-auto",Zs)})]}):null}function oo(l){return Array.isArray(l)?l.map(e=>({key:B(e?.key),value:B(e?.value)})):[]}function io({orgSlug:l,virtualMcpId:e,branch:s,blockKey:a,block:o,decofile:n,meta:d,previewBaseUrl:c,move:i,onClose:m,expanded:g,onToggleExpand:x,onDeleted:h}){const r=ee(),u=Et()?.taskId??null,p=_s({orgSlug:l,virtualMcpId:e,branch:s},{holdsCopy:!0}),f=Es({orgSlug:l,virtualMcpId:e,branch:s}),S=qs(e,s),C=S.kind==="protocol"&&S.source==="github",w=Ps({orgSlug:l,virtualMcpId:e,branch:s}),N=ks().length>0,q=vs(),j=ys(e),_=Ts({orgSlug:l,virtualMcpId:e,branch:s}),k=es(o,"posts"),P=v=>{const X=p.shown(v);return X?{[v]:X}:{}},[b,E,T,A]=Ls(k,v=>{p.mutate({blockKey:a,data:ts(a,ss(v))})},{isSaving:p.isPending,onSeed:()=>p.hold(a)}),[F,z]=K.useState(a);F!==a&&(z(a),T(k));const M=v=>{T(b),i.apply(a,v,b,()=>P(a))},D=(v,X)=>E({...b,[v]:X}),U=Kt("posts",d,Jt),R=Wt({orgSlug:l,virtualMcpId:e,branch:s},n),Q=R.save,[H,V]=K.useState(0),I=gs({decofile:n,post:b,previewBaseUrl:c,draftPointer:_,meta:d}),G=os(n,"posts",a,B(b.title)),J=is(b),[W,$]=K.useState(!1),Y=async()=>{T(b);try{const v=await f.mutateAsync({blockKey:a,shown:()=>p.shown(a)});if($(!1),Ns(v))return;we.success(r("sandbox.postEditor.deletePostSuccess",{title:B(b.title)})),h?.(),m?.()}catch(v){we.error(v instanceof Error?v.message:r("sandbox.postEditor.deletePostFailed"))}},O=ls(b),L=O.length>0,Z=O.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Ye(O,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Ye(O,r)});return t.jsxs("div",{className:"relative flex h-full flex-col",children:[t.jsx("div",{className:"absolute inset-x-0 top-0 z-10 bg-background/80 backdrop-blur-sm",children:t.jsxs("div",{className:"mx-auto flex max-w-4xl items-center justify-between gap-2 px-8 py-3",children:[t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(zt,{isPending:p.isPending||R.isPending||A,isError:p.isError||R.isError}),L&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-medium text-destructive",children:[t.jsx(Oe,{size:14}),O.length," ",O.length===1?r("sandbox.postEditor.issueSingular"):r("sandbox.postEditor.issuePlural")]})}),t.jsx(Me,{side:"bottom",children:Z})]})]}),(x||m)&&t.jsxs("div",{className:"-mr-2 flex items-center gap-0.5",children:[x&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:x,title:r(g?"sandbox.postBoard.collapse":"sandbox.postBoard.expand"),children:g?t.jsx(Pt,{size:16}):t.jsx(Nt,{size:16})}),m&&t.jsx(Le,{type:"button",variant:"ghost",size:"sm",className:"px-2 text-muted-foreground",onClick:m,title:r("sandbox.postBoard.close"),children:t.jsx(Bt,{size:16})})]})]})}),t.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto",children:t.jsxs("div",{className:"mx-auto max-w-4xl px-8 pb-6 pt-14",children:[t.jsx(ms,{value:B(b.title),onChange:v=>D("title",v),placeholder:r("sandbox.postEditor.postTitlePlaceholder"),className:"py-1 text-4xl font-bold text-foreground"}),G&&t.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.duplicateTitleWarning")]}),t.jsxs(Ft,{defaultValue:"content",className:"mt-6 gap-4",children:[t.jsxs("div",{className:"flex items-center justify-between gap-3",children:[t.jsxs(It,{children:[t.jsxs(Ge,{value:"content",children:[t.jsx(Tt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(Ge,{value:"settings",children:[t.jsx(wt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[J&&t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx(Le,{type:"button",variant:"ghost-destructive",size:"sm",className:"px-2","aria-label":r("sandbox.postEditor.deletePost"),onClick:()=>$(!0),children:t.jsx(Dt,{size:14})})}),t.jsx(Me,{side:"bottom",children:r("sandbox.postEditor.deletePost")})]}),q&&!j&&t.jsx(Ks,{decofile:n,virtualMcpId:e,sections:Ie(b.sections),currentKey:a,meta:d,hasAi:N,onApply:v=>{D("sections",v),V(X=>X+1)}}),m&&t.jsxs(Le,{type:"button",variant:"outline",size:"sm",disabled:!I,title:r(I?"sandbox.postEditor.previewTooltip":"sandbox.postEditor.previewRequiresSlugAndCategory"),onClick:()=>{I&&window.open(I,"_blank","noopener,noreferrer")},children:[t.jsx(ut,{size:14}),r("sandbox.postEditor.seePreview")]})]})]}),t.jsx(We,{value:"content",children:j?t.jsxs("div",{className:"space-y-3",children:[Ie(b.sections).length>0&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),r("sandbox.postEditor.legacySectionsNotice",{count:Ie(b.sections).length})]}),t.jsx(so,{value:B(b.content),onChange:v=>D("content",v),decofile:n,sandboxRef:{orgSlug:l,virtualMcpId:e,branch:s,threadId:u}})]}):t.jsx("div",{className:"surface p-8",children:t.jsx(Mt,{value:Ie(b.sections),onChange:v=>D("sections",v),meta:d,decofile:n,sandboxRef:{orgSlug:l,virtualMcpId:e,branch:s,threadId:u},previewBaseUrl:c,onSaveReferencedBlock:Q,emptyMessage:r("sandbox.postEditor.noContentYet")},H)})}),t.jsx(We,{value:"settings",children:t.jsxs("div",{className:"surface p-6",children:[t.jsx(ao,{post:b,decofile:n,onChange:D,blockKey:a,move:i,onMoveStatus:M}),t.jsx(Qt,{schema:U,value:b,onChange:E,basePath:"post",meta:d,decofile:n,sandbox:{orgSlug:l,virtualMcpId:e,branch:s,threadId:u},onSaveReferencedBlock:Q})]})})]})]})}),t.jsx(ft,{open:W,onOpenChange:v=>{!v&&!f.isPending&&$(!1)},children:t.jsxs(xt,{children:[t.jsxs(ht,{children:[t.jsx(gt,{children:r("sandbox.postEditor.deletePostConfirmTitle")}),t.jsx(bt,{children:r(Ss("post",C,{neverPublished:w(a)}),{title:B(b.title)||r("sandbox.postBoard.untitled")})})]}),t.jsxs(jt,{children:[t.jsx(vt,{disabled:f.isPending,children:r("sandbox.postEditor.deletePostCancel")}),t.jsx(yt,{onClick:v=>{v.preventDefault(),Y()},disabled:f.isPending,className:Be(kt({variant:"destructive"})),children:f.isPending?t.jsxs(t.Fragment,{children:[t.jsx(St,{className:"size-3.5"}),r("sandbox.postEditor.deletingPost")]}):r("sandbox.postEditor.deletePost")})]})]})})]})}function lo(l){const e=se.c(15),{blockKey:s,post:a,move:o,onMoveStatus:n}=l,d=ee();let c;e[0]!==a?(c=Ze(a),e[0]=a,e[1]=c):c=e[1];const i=c;let m,g;if(e[2]!==s||e[3]!==i||e[4]!==o||e[5]!==n||e[6]!==a||e[7]!==d){let h;e[10]!==i?(h=u=>u!=="generating"||i==="generating",e[10]=i,e[11]=h):h=e[11];const r=ds.filter(h);m="flex flex-wrap gap-1.5",g=r.map(u=>{const p=u===i,f=p?null:o.refuse(s,u,a);return t.jsxs($e,{children:[t.jsx(qe,{asChild:!0,children:t.jsx("span",{children:t.jsx("button",{type:"button",disabled:!!f,"aria-pressed":p,onClick:()=>n(u),className:Be("rounded-md border px-2.5 py-1 text-xs font-medium transition-colors",p?"border-primary bg-primary text-primary-foreground":"cursor-pointer bg-card hover:bg-accent",f&&"cursor-not-allowed opacity-50"),children:d(fs[u])})})}),f&&t.jsx(Me,{side:"bottom",children:o.reasonText(f)})]},u)}),e[2]=s,e[3]=i,e[4]=o,e[5]=n,e[6]=a,e[7]=d,e[8]=m,e[9]=g}else m=e[8],g=e[9];let x;return e[12]!==m||e[13]!==g?(x=t.jsx("div",{className:m,children:g}),e[12]=m,e[13]=g,e[14]=x):x=e[14],x}function ao(l){const e=se.c(166),{post:s,decofile:a,onChange:o,blockKey:n,move:d,onMoveStatus:c}=l,i=ee();let m;e[0]!==s?(m=Ze(s),e[0]=s,e[1]=m):m=e[1];const x=m==="scheduled";let h;e[2]!==s.slug?(h=B(s.slug),e[2]=s.slug,e[3]=h):h=e[3];const r=h,[u,p]=K.useState(r),[f,S]=K.useState(null),[C,w]=K.useState(r);C!==r&&(w(r),p(r));let N;e[4]!==n||e[5]!==r||e[6]!==a||e[7]!==o||e[8]!==u||e[9]!==i?(N=()=>{const y=ns(u);if(p(y),y===r)return;if(!y){S(null),o("slug","");return}const He=Xe(a,"posts").filter(ot=>ot.key!==n).map(co).filter(Boolean);if(!He.includes(y)){S(null),o("slug",y);return}const ze=rs(y,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:ze});p(ze),S(Ve),we.info(Ve),o("slug",ze)},e[4]=n,e[5]=r,e[6]=a,e[7]=o,e[8]=u,e[9]=i,e[10]=N):N=e[10];const q=N;let j;e[11]!==i?(j=i("sandbox.postEditor.statusLabel"),e[11]=i,e[12]=j):j=e[12];let _;e[13]!==j?(_=t.jsx(te,{children:j}),e[13]=j,e[14]=_):_=e[14];let k;e[15]!==n||e[16]!==d||e[17]!==c||e[18]!==s?(k=t.jsx(lo,{blockKey:n,post:s,move:d,onMoveStatus:c}),e[15]=n,e[16]=d,e[17]=c,e[18]=s,e[19]=k):k=e[19];let P;e[20]!==_||e[21]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[_,k]}),e[20]=_,e[21]=k,e[22]=P):P=e[22];let b;e[23]!==x||e[24]!==o||e[25]!==s.scheduledDatetime||e[26]!==i?(b=x&&t.jsx(Re,{schema:{type:"string",format:"date-time",title:i("sandbox.postEditor.scheduledDatetimeLabel"),description:i("sandbox.postEditor.scheduledDatetimeDescription")},value:B(s.scheduledDatetime),onChange:y=>o("scheduledDatetime",y),path:"post-scheduled-datetime",label:i("sandbox.postEditor.scheduledDatetimeLabel")}),e[23]=x,e[24]=o,e[25]=s.scheduledDatetime,e[26]=i,e[27]=b):b=e[27];let E;e[28]!==P||e[29]!==b?(E=t.jsxs("div",{className:"space-y-4 border-b pb-4",children:[P,b]}),e[28]=P,e[29]=b,e[30]=E):E=e[30];let T;e[31]!==i?(T=i("sandbox.postEditor.excerptLabel"),e[31]=i,e[32]=T):T=e[32];let A;e[33]!==T?(A=t.jsx(te,{htmlFor:"post-excerpt",children:T}),e[33]=T,e[34]=A):A=e[34];let F;e[35]!==s.excerpt?(F=B(s.excerpt),e[35]=s.excerpt,e[36]=F):F=e[36];let z;e[37]!==o?(z=y=>o("excerpt",y.target.value),e[37]=o,e[38]=z):z=e[38];let M;e[39]!==F||e[40]!==z?(M=t.jsx(Je,{id:"post-excerpt",value:F,onChange:z,rows:2}),e[39]=F,e[40]=z,e[41]=M):M=e[41];let D;e[42]!==A||e[43]!==M?(D=t.jsxs("div",{className:"space-y-2",children:[A,M]}),e[42]=A,e[43]=M,e[44]=D):D=e[44];let U;e[45]!==i?(U=i("sandbox.postEditor.slugLabel"),e[45]=i,e[46]=U):U=e[46];let R;e[47]!==U?(R=t.jsx(te,{htmlFor:"post-slug",children:U}),e[47]=U,e[48]=R):R=e[48];let Q;e[49]===Symbol.for("react.memo_cache_sentinel")?(Q=y=>{S(null),p(cs(y.target.value))},e[49]=Q):Q=e[49];let H;e[50]!==i?(H=i("sandbox.postEditor.slugPlaceholder"),e[50]=i,e[51]=H):H=e[51];let V;e[52]!==q||e[53]!==u||e[54]!==H?(V=t.jsx(Ae,{id:"post-slug",value:u,onChange:Q,onBlur:q,placeholder:H,maxLength:80,className:"h-10"}),e[52]=q,e[53]=u,e[54]=H,e[55]=V):V=e[55];let I;e[56]!==f?(I=f&&t.jsxs("p",{className:"flex items-start gap-1.5 text-xs text-warning",children:[t.jsx(Oe,{size:14,className:"mt-px shrink-0"}),f]}),e[56]=f,e[57]=I):I=e[57];let G;e[58]!==R||e[59]!==V||e[60]!==I?(G=t.jsxs("div",{className:"space-y-2",children:[R,V,I]}),e[58]=R,e[59]=V,e[60]=I,e[61]=G):G=e[61];let J;e[62]!==i?(J=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=J):J=e[63];let W;e[64]!==J?(W={type:"string",format:"date",title:J},e[64]=J,e[65]=W):W=e[65];let $;e[66]!==s.date?($=B(s.date),e[66]=s.date,e[67]=$):$=e[67];let Y;e[68]!==o?(Y=y=>o("date",y),e[68]=o,e[69]=Y):Y=e[69];let O;e[70]!==i?(O=i("sandbox.postEditor.dateLabel"),e[70]=i,e[71]=O):O=e[71];let L;e[72]!==W||e[73]!==$||e[74]!==Y||e[75]!==O?(L=t.jsx(Re,{schema:W,value:$,onChange:Y,path:"post-date",label:O}),e[72]=W,e[73]=$,e[74]=Y,e[75]=O,e[76]=L):L=e[76];let Z;e[77]!==i?(Z=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=Z):Z=e[78];let v;e[79]!==Z?(v={type:"integer",title:Z},e[79]=Z,e[80]=v):v=e[80];const X=typeof s.readTime=="number"?s.readTime:void 0;let oe;e[81]!==o?(oe=y=>o("readTime",y),e[81]=o,e[82]=oe):oe=e[82];let ie;e[83]!==i?(ie=i("sandbox.postEditor.readTimeLabel"),e[83]=i,e[84]=ie):ie=e[84];let le;e[85]!==v||e[86]!==X||e[87]!==oe||e[88]!==ie?(le=t.jsx(Yt,{schema:v,value:X,onChange:oe,path:"post-read-time",label:ie}),e[85]=v,e[86]=X,e[87]=oe,e[88]=ie,e[89]=le):le=e[89];let ae;e[90]!==G||e[91]!==L||e[92]!==le?(ae=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[G,L,le]}),e[90]=G,e[91]=L,e[92]=le,e[93]=ae):ae=e[93];const tt=s.image,st=s.mobileImage;let ne,re;e[94]!==o?(ne=y=>o("image",y),re=y=>o("mobileImage",y),e[94]=o,e[95]=ne,e[96]=re):(ne=e[95],re=e[96]);let ce;e[97]!==s.alt?(ce=B(s.alt),e[97]=s.alt,e[98]=ce):ce=e[98];let de;e[99]!==i?(de=i("sandbox.postEditor.coverImageLabel"),e[99]=i,e[100]=de):de=e[100];let me;e[101]!==s.image||e[102]!==s.mobileImage||e[103]!==ne||e[104]!==re||e[105]!==ce||e[106]!==de?(me=t.jsx(Ut,{value:tt,mobileValue:st,onChange:ne,onMobileChange:re,alt:ce,label:de}),e[101]=s.image,e[102]=s.mobileImage,e[103]=ne,e[104]=re,e[105]=ce,e[106]=de,e[107]=me):me=e[107];let pe;e[108]!==i?(pe=i("sandbox.postEditor.coverAltLabel"),e[108]=i,e[109]=pe):pe=e[109];let ue;e[110]!==i?(ue=i("sandbox.postEditor.coverAltDescription"),e[110]=i,e[111]=ue):ue=e[111];let fe;e[112]!==pe||e[113]!==ue?(fe={type:"string",title:pe,description:ue},e[112]=pe,e[113]=ue,e[114]=fe):fe=e[114];let xe;e[115]!==s.alt?(xe=B(s.alt),e[115]=s.alt,e[116]=xe):xe=e[116];let he;e[117]!==o?(he=y=>o("alt",y),e[117]=o,e[118]=he):he=e[118];let ge;e[119]!==i?(ge=i("sandbox.postEditor.coverAltLabel"),e[119]=i,e[120]=ge):ge=e[120];let be;e[121]!==fe||e[122]!==xe||e[123]!==he||e[124]!==ge?(be=t.jsx(Re,{schema:fe,value:xe,onChange:he,path:"post-alt",label:ge}),e[121]=fe,e[122]=xe,e[123]=he,e[124]=ge,e[125]=be):be=e[125];let je;e[126]!==me||e[127]!==be?(je=t.jsxs("div",{className:"space-y-2",children:[me,be]}),e[126]=me,e[127]=be,e[128]=je):je=e[128];let ve;e[129]!==i?(ve=i("sandbox.postEditor.authorsLabel"),e[129]=i,e[130]=ve):ve=e[130];let ye;e[131]!==o?(ye=y=>o("authors",y),e[131]=o,e[132]=ye):ye=e[132];let Se;e[133]!==a||e[134]!==s.authors||e[135]!==ve||e[136]!==ye?(Se=t.jsx(Qe,{label:ve,decofile:a,kind:"authors",valueField:"email",toRef:ro,selected:s.authors,onChange:ye}),e[133]=a,e[134]=s.authors,e[135]=ve,e[136]=ye,e[137]=Se):Se=e[137];let ke;e[138]!==i?(ke=i("sandbox.postEditor.categoriesLabel"),e[138]=i,e[139]=ke):ke=e[139];let Ee;e[140]!==o?(Ee=y=>o("categories",y),e[140]=o,e[141]=Ee):Ee=e[141];let Ce;e[142]!==a||e[143]!==s.categories||e[144]!==ke||e[145]!==Ee?(Ce=t.jsx(Qe,{label:ke,decofile:a,kind:"categories",valueField:"slug",toRef:no,selected:s.categories,onChange:Ee}),e[142]=a,e[143]=s.categories,e[144]=ke,e[145]=Ee,e[146]=Ce):Ce=e[146];let _e;e[147]!==o?(_e=y=>o("extraProps",y),e[147]=o,e[148]=_e):_e=e[148];let Pe;e[149]!==s.extraProps||e[150]!==_e?(Pe=t.jsx(po,{value:s.extraProps,onChange:_e}),e[149]=s.extraProps,e[150]=_e,e[151]=Pe):Pe=e[151];let Ne;e[152]!==o?(Ne=y=>o("seo",y),e[152]=o,e[153]=Ne):Ne=e[153];let Te;e[154]!==s.seo||e[155]!==Ne?(Te=t.jsx(mo,{value:s.seo,onChange:Ne}),e[154]=s.seo,e[155]=Ne,e[156]=Te):Te=e[156];let Fe;return e[157]!==D||e[158]!==ae||e[159]!==je||e[160]!==Se||e[161]!==Ce||e[162]!==Pe||e[163]!==Te||e[164]!==E?(Fe=t.jsxs("div",{className:"space-y-5",children:[E,D,ae,je,Se,Ce,Pe,Te]}),e[157]=D,e[158]=ae,e[159]=je,e[160]=Se,e[161]=Ce,e[162]=Pe,e[163]=Te,e[164]=E,e[165]=Fe):Fe=e[165],Fe}function no(l){return{name:B(l.name),slug:B(l.slug)}}function ro(l){return{...l}}function co(l){return B(l.payload.slug)}function mo(l){const e=se.c(93),{value:s,onChange:a}=l,o=ee();let n;e[0]!==s?(n=s&&typeof s=="object"&&!Array.isArray(s)?s:{},e[0]=s,e[1]=n):n=e[1];const d=n;let c;e[2]!==a||e[3]!==d?(c=(L,Z)=>a({...d,[L]:Z}),e[2]=a,e[3]=d,e[4]=c):c=e[4];const i=c;let m;e[5]!==o?(m=o("sandbox.postEditor.seoSectionLabel"),e[5]=o,e[6]=m):m=e[6];let g;e[7]!==m?(g=t.jsx("p",{className:"text-sm font-medium",children:m}),e[7]=m,e[8]=g):g=e[8];let x;e[9]!==o?(x=o("sandbox.postEditor.seoSectionHint"),e[9]=o,e[10]=x):x=e[10];let h;e[11]!==x?(h=t.jsx("p",{className:"text-xs text-muted-foreground",children:x}),e[11]=x,e[12]=h):h=e[12];let r;e[13]!==g||e[14]!==h?(r=t.jsxs("div",{className:"space-y-1",children:[g,h]}),e[13]=g,e[14]=h,e[15]=r):r=e[15];let u;e[16]!==o?(u=o("sandbox.postEditor.seoTitleLabel"),e[16]=o,e[17]=u):u=e[17];let p;e[18]!==u?(p=t.jsx(te,{htmlFor:"post-seo-title",children:u}),e[18]=u,e[19]=p):p=e[19];let f;e[20]!==d.title?(f=B(d.title),e[20]=d.title,e[21]=f):f=e[21];let S;e[22]!==i?(S=L=>i("title",L.target.value),e[22]=i,e[23]=S):S=e[23];let C;e[24]!==f||e[25]!==S?(C=t.jsx(Ae,{id:"post-seo-title",value:f,onChange:S,className:"h-10"}),e[24]=f,e[25]=S,e[26]=C):C=e[26];let w;e[27]!==C||e[28]!==p?(w=t.jsxs("div",{className:"space-y-2",children:[p,C]}),e[27]=C,e[28]=p,e[29]=w):w=e[29];let N;e[30]!==o?(N=o("sandbox.postEditor.seoDescriptionLabel"),e[30]=o,e[31]=N):N=e[31];let q;e[32]!==N?(q=t.jsx(te,{htmlFor:"post-seo-description",children:N}),e[32]=N,e[33]=q):q=e[33];let j;e[34]!==d.description?(j=B(d.description),e[34]=d.description,e[35]=j):j=e[35];let _;e[36]!==i?(_=L=>i("description",L.target.value),e[36]=i,e[37]=_):_=e[37];let k;e[38]!==j||e[39]!==_?(k=t.jsx(Je,{id:"post-seo-description",value:j,onChange:_,rows:2}),e[38]=j,e[39]=_,e[40]=k):k=e[40];let P;e[41]!==q||e[42]!==k?(P=t.jsxs("div",{className:"space-y-2",children:[q,k]}),e[41]=q,e[42]=k,e[43]=P):P=e[43];let b;e[44]!==o?(b=o("sandbox.postEditor.seoImageLabel"),e[44]=o,e[45]=b):b=e[45];let E;e[46]!==b?(E={type:"string",format:"image-uri",title:b},e[46]=b,e[47]=E):E=e[47];const T=d.image;let A;e[48]!==i?(A=L=>i("image",L),e[48]=i,e[49]=A):A=e[49];let F;e[50]!==o?(F=o("sandbox.postEditor.seoImageLabel"),e[50]=o,e[51]=F):F=e[51];let z;e[52]!==d.image||e[53]!==E||e[54]!==A||e[55]!==F?(z=t.jsx(Rt,{schema:E,value:T,onChange:A,path:"post-seo-image",label:F}),e[52]=d.image,e[53]=E,e[54]=A,e[55]=F,e[56]=z):z=e[56];let M;e[57]!==o?(M=o("sandbox.postEditor.seoCanonicalLabel"),e[57]=o,e[58]=M):M=e[58];let D;e[59]!==M?(D=t.jsx(te,{htmlFor:"post-seo-canonical",children:M}),e[59]=M,e[60]=D):D=e[60];let U;e[61]!==d.canonical?(U=B(d.canonical),e[61]=d.canonical,e[62]=U):U=e[62];let R;e[63]!==i?(R=L=>i("canonical",L.target.value),e[63]=i,e[64]=R):R=e[64];let Q;e[65]!==o?(Q=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=Q):Q=e[66];let H;e[67]!==U||e[68]!==R||e[69]!==Q?(H=t.jsx(Ae,{id:"post-seo-canonical",value:U,onChange:R,placeholder:Q,className:"h-10"}),e[67]=U,e[68]=R,e[69]=Q,e[70]=H):H=e[70];let V;e[71]!==D||e[72]!==H?(V=t.jsxs("div",{className:"space-y-2",children:[D,H]}),e[71]=D,e[72]=H,e[73]=V):V=e[73];let I;e[74]!==o?(I=o("sandbox.postEditor.seoNoIndexingLabel"),e[74]=o,e[75]=I):I=e[75];let G;e[76]!==I?(G=t.jsx(te,{htmlFor:"post-seo-no-indexing",children:I}),e[76]=I,e[77]=G):G=e[77];const J=d.noIndexing===!0;let W;e[78]!==i?(W=L=>i("noIndexing",L),e[78]=i,e[79]=W):W=e[79];let $;e[80]!==J||e[81]!==W?($=t.jsx(Ot,{id:"post-seo-no-indexing",checked:J,onCheckedChange:W}),e[80]=J,e[81]=W,e[82]=$):$=e[82];let Y;e[83]!==G||e[84]!==$?(Y=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[G,$]}),e[83]=G,e[84]=$,e[85]=Y):Y=e[85];let O;return e[86]!==w||e[87]!==P||e[88]!==z||e[89]!==V||e[90]!==Y||e[91]!==r?(O=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[r,w,P,z,V,Y]}),e[86]=w,e[87]=P,e[88]=z,e[89]=V,e[90]=Y,e[91]=r,e[92]=O):O=e[92],O}function po(l){const e=se.c(24),{value:s,onChange:a}=l,o=ee();let n,d,c,i;if(e[0]!==a||e[1]!==o||e[2]!==s){n=oo(s);const r=(p,f)=>a(n.map((S,C)=>C===p?{...S,...f}:S));d="space-y-2";let u;e[7]!==o?(u=o("sandbox.postEditor.extraPropsLabel"),e[7]=o,e[8]=u):u=e[8],e[9]!==u?(c=t.jsx(te,{children:u}),e[9]=u,e[10]=c):c=e[10],i=n.length>0&&t.jsx("ul",{className:"space-y-2",children:n.map((p,f)=>t.jsxs("li",{className:"group/item flex items-center gap-2",children:[t.jsx(Ae,{value:p.key,onChange:S=>r(f,{key:S.target.value}),placeholder:o("sandbox.postEditor.keyPlaceholder"),className:"h-9 flex-1"}),t.jsx(Ae,{value:p.value,onChange:S=>r(f,{value:S.target.value}),placeholder:o("sandbox.postEditor.valuePlaceholder"),className:"h-9 flex-1"}),t.jsx(ps,{label:o("sandbox.postEditor.removePropLabel"),onClick:()=>a(n.filter((S,C)=>C!==f))})]},f))}),e[0]=a,e[1]=o,e[2]=s,e[3]=n,e[4]=d,e[5]=c,e[6]=i}else n=e[3],d=e[4],c=e[5],i=e[6];let m;e[11]!==o?(m=o("sandbox.postEditor.addPropLabel"),e[11]=o,e[12]=m):m=e[12];let g;e[13]!==n||e[14]!==a?(g=()=>a([...n,{key:"",value:""}]),e[13]=n,e[14]=a,e[15]=g):g=e[15];let x;e[16]!==m||e[17]!==g?(x=t.jsx(us,{label:m,onClick:g}),e[16]=m,e[17]=g,e[18]=x):x=e[18];let h;return e[19]!==d||e[20]!==c||e[21]!==i||e[22]!==x?(h=t.jsxs("div",{className:d,children:[c,i,x]}),e[19]=d,e[20]=c,e[21]=i,e[22]=x,e[23]=h):h=e[23],h}function Qe(l){const e=se.c(24),{label:s,decofile:a,kind:o,valueField:n,toRef:d,selected:c,onChange:i}=l,m=ee();let g;e[0]!==a||e[1]!==o||e[2]!==c||e[3]!==d||e[4]!==n?(g=as({records:Xe(a,o),selected:c,valueField:n,toRef:d}),e[0]=a,e[1]=o,e[2]=c,e[3]=d,e[4]=n,e[5]=g):g=e[5];const{options:x,selectedValues:h,refsForValues:r}=g;let u;e[6]!==o||e[7]!==m?(u=m(o==="authors"?"sandbox.postEditor.noAuthorsYet":"sandbox.postEditor.noCategoriesYet"),e[6]=o,e[7]=m,e[8]=u):u=e[8];const p=u;let f;e[9]!==o||e[10]!==m?(f=m(o==="authors"?"sandbox.postEditor.selectAuthorsPlaceholder":"sandbox.postEditor.selectCategoriesPlaceholder"),e[9]=o,e[10]=m,e[11]=f):f=e[11];const S=f;let C;e[12]!==s?(C=t.jsx(te,{children:s}),e[12]=s,e[13]=C):C=e[13];let w;e[14]!==p||e[15]!==i||e[16]!==x||e[17]!==r||e[18]!==S||e[19]!==h?(w=x.length===0?t.jsx("p",{className:"text-xs text-muted-foreground",children:p}):t.jsx(At,{options:x,defaultValue:h,onValueChange:q=>i(r(q)),placeholder:S,maxCount:4}),e[14]=p,e[15]=i,e[16]=x,e[17]=r,e[18]=S,e[19]=h,e[20]=w):w=e[20];let N;return e[21]!==C||e[22]!==w?(N=t.jsxs("div",{className:"space-y-2",children:[C,w]}),e[21]=C,e[22]=w,e[23]=N):N=e[23],N}function ha(l){const e=se.c(10),s=l.block!==void 0;let a;e[0]!==l?(a=t.jsx(io,{...l}),e[0]=l,e[1]=a):a=e[1];let o;return e[2]!==l.blockKey||e[3]!==l.branch||e[4]!==l.decofile||e[5]!==l.orgSlug||e[6]!==l.virtualMcpId||e[7]!==s||e[8]!==a?(o=t.jsx(Gt,{listing:l.decofile,orgSlug:l.orgSlug,virtualMcpId:l.virtualMcpId,branch:l.branch,blockKey:l.blockKey,present:s,children:a}),e[2]=l.blockKey,e[3]=l.branch,e[4]=l.decofile,e[5]=l.orgSlug,e[6]=l.virtualMcpId,e[7]=s,e[8]=a,e[9]=o):o=e[9],o}export{ha as PostEditor};
@@ -1 +1 @@
1
- import{c as O,b as D,d as ne,f as re,ag as oe,j as t,B as Q,a9 as ce,n as de,x as W,m as X}from"./index-DcLeMIKL.js";import{I as ae}from"./icon-button-BWABQKeL.js";import{c as Y,T as Z,a as ee}from"./tooltip-DDRxK_rC.js";import{k as fe,aw as me,_ as xe}from"./agent-icon-C9GKvk-e.js";import{a as he}from"./MessageCircle01-BCGadvZ4.js";import{s as pe}from"./XClose-BWSiI7cY.js";import{F as te,t as V,H as ue}from"./file-share-button-CYcLwrJ0.js";import{f as je,F as be,a as ge}from"./file-preview-BeYqBSPk.js";import{F as se}from"./file-type-icon-D8TxRFpf.js";import{c as ve,a as we,e as ye}from"./use-org-fs-nl0bHtQ_.js";import{O as Pe,J as Ce}from"./chat-context-COXlihFB.js";function Ne(j){const e=O.c(13),{previewPath:l}=j,m=D(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(fe,{size:14}),e[7]=b):b=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[b,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const ke=j=>/\.html?$/i.test(j);function le(j){switch(j){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return j}}function Fe(j){const e=O.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let b;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(b=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=b):b=e[11],b}function ie(j){const e=O.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function Oe(j){const e=O.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=j,o=p===void 0?!1:p,a=D();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const b=c,{volume:u,dirPath:x}=b,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(Fe,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&ke(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=n.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,J=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==K||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:q,effectivePublic:G,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=K,e[37]=J,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(me,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let k;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(k=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:je(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=k):k=e[83];let F;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(F=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(be,{file:n}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=F):F=e[88];let _;return e[89]!==k||e[90]!==F?(_=t.jsxs(t.Fragment,{children:[k,F]}),e[89]=k,e[90]=F,e[91]=_):_=e[91],_}export{Oe as L};
1
+ import{c as O,b as D,d as ne,f as re,ag as oe,j as t,B as Q,a9 as ce,n as de,x as W,m as X}from"./index-Bm1kfakF.js";import{I as ae}from"./icon-button-A0UAzKos.js";import{c as Y,T as Z,a as ee}from"./tooltip-gcbYZwxC.js";import{k as fe,aw as me,_ as xe}from"./agent-icon-BmlBo_mr.js";import{a as he}from"./MessageCircle01-BSvG5u-_.js";import{s as pe}from"./XClose-rn7BTPbt.js";import{F as te,t as V,H as ue}from"./file-share-button-D_zlUria.js";import{f as je,F as be,a as ge}from"./file-preview-B4NZQa3r.js";import{F as se}from"./file-type-icon-DH9FvqO6.js";import{c as ve,a as we,e as ye}from"./use-org-fs-oHVbnEW1.js";import{O as Pe,J as Ce}from"./chat-context-B0mIAvmD.js";function Ne(j){const e=O.c(13),{previewPath:l}=j,m=D(),r=ne(),p=re({strict:!1}).org??"";let s;e[0]!==l?(s=l.split("/").slice(0,-1).join("/"),e[0]=l,e[1]=s):s=e[1];const o=s;let a;e[2]!==r||e[3]!==p||e[4]!==o||e[5]!==l?(a=()=>{r({to:oe.library,params:{org:p},search:{path:o||void 0,preview:l}})},e[2]=r,e[3]=p,e[4]=o,e[5]=l,e[6]=a):a=e[6];const c=a;let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(fe,{size:14}),e[7]=b):b=e[7];let u;e[8]!==m?(u=m("library.seeInLibrary.label"),e[8]=m,e[9]=u):u=e[9];let x;return e[10]!==c||e[11]!==u?(x=t.jsxs(Q,{variant:"ghost",size:"sm",onClick:c,className:"shrink-0 gap-1.5 text-xs text-muted-foreground",children:[b,u]}),e[10]=c,e[11]=u,e[12]=x):x=e[12],x}const ke=j=>/\.html?$/i.test(j);function le(j){switch(j){case"dialog":return"h-11 py-1 pr-12 pl-2";case"panel":return"h-9 px-2";case"aside":return"h-12 gap-2 px-1.5";default:return j}}function Fe(j){const e=O.c(12),{expanded:l,onToggle:m,placement:r}=j,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];const o=l?"library.previewContent.collapse":"library.previewContent.expand";let a;e[2]!==p||e[3]!==o?(a=p(o),e[2]=p,e[3]=o,e[4]=a):a=e[4];let c;e[5]!==l?(c=l?t.jsx(xe,{size:14}):t.jsx(he,{size:14}),e[5]=l,e[6]=c):c=e[6];let b;return e[7]!==m||e[8]!==s||e[9]!==a||e[10]!==c?(b=t.jsx(ae,{...s,label:a,tooltipSide:"bottom",onClick:m,children:c}),e[7]=m,e[8]=s,e[9]=a,e[10]=c,e[11]=b):b=e[11],b}function ie(j){const e=O.c(9),{onClose:l,placement:m}=j,r=m===void 0?"bar":m,p=D();let s;e[0]!==r?(s=V(r),e[0]=r,e[1]=s):s=e[1];let o;e[2]!==p?(o=p("library.previewContent.close"),e[2]=p,e[3]=o):o=e[3];let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(pe,{size:14}),e[4]=a):a=e[4];let c;return e[5]!==l||e[6]!==s||e[7]!==o?(c=t.jsx(ae,{...s,label:o,tooltipSide:"bottom",onClick:l,children:a}),e[5]=l,e[6]=s,e[7]=o,e[8]=c):c=e[8],c}function Oe(j){const e=O.c(92),{previewPath:l,onClose:m,expand:r,showSeeInLibrary:p,variant:s}=j,o=p===void 0?!1:p,a=D();let c;e[0]!==l?(c=Pe(l),e[0]=l,e[1]=c):c=e[1];const b=c,{volume:u,dirPath:x}=b,{data:f,isPending:A}=ve(u,x),H=we(u??"");let w,y,n,d,h,i,P,B;if(e[2]!==H||e[3]!==f||e[4]!==r||e[5]!==x||e[6]!==l||e[7]!==o||e[8]!==s){d=Ce(x),h=s==="dialog",i=r?.expanded?"topbar":s==="aside"?"aside":"bar";let g;e[17]!==i?(g=V(i),e[17]=i,e[18]=g):g=e[18],w=g;let T;e[19]!==r||e[20]!==i?(T=r?.onToggle&&t.jsx(Fe,{expanded:r.expanded,onToggle:r.onToggle,placement:i}),e[19]=r,e[20]=i,e[21]=T):T=e[21],y=T;let v;e[22]!==l||e[23]!==o?(v=o?t.jsx(Ne,{previewPath:l}):null,e[22]=l,e[23]=o,e[24]=v):v=e[24],P=v,n=f&&f.kind==="file"?{key:l,filename:d,size:f.size,downloadUrl:H(f.path)}:null,B=n&&f&&ke(d),e[2]=H,e[3]=f,e[4]=r,e[5]=x,e[6]=l,e[7]=o,e[8]=s,e[9]=w,e[10]=y,e[11]=n,e[12]=d,e[13]=h,e[14]=i,e[15]=P,e[16]=B}else w=e[9],y=e[10],n=e[11],d=e[12],h=e[13],i=e[14],P=e[15],B=e[16];if(B){let g;e[25]!==d||e[26]!==h?(g=h&&t.jsx(W,{className:"sr-only",children:d}),e[25]=d,e[26]=h,e[27]=g):g=e[27];const T=n.downloadUrl;let v;e[28]!==f?(v=ye(f),e[28]=f,e[29]=v):v=e[29];let z;e[30]!==s?(z=s==="panel"?void 0:le(s),e[30]=s,e[31]=z):z=e[31];const R=u==="home"?x:void 0,J=u??"",q=f.shareMode??"private",G=f.effectivePublic??!1,K=window.location.origin+n.downloadUrl;let S;e[32]!==x||e[33]!==i||e[34]!==q||e[35]!==G||e[36]!==K||e[37]!==J?(S=t.jsx(te,{volume:J,path:x,shareMode:q,effectivePublic:G,url:K,placement:i}),e[32]=x,e[33]=i,e[34]=q,e[35]=G,e[36]=K,e[37]=J,e[38]=S):S=e[38];let U;e[39]!==y||e[40]!==h||e[41]!==m||e[42]!==i?(U=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[39]=y,e[40]=h,e[41]=m,e[42]=i,e[43]=U):U=e[43];let I;e[44]!==P||e[45]!==S||e[46]!==U?(I=t.jsxs(t.Fragment,{children:[S,P,U]}),e[44]=P,e[45]=S,e[46]=U,e[47]=I):I=e[47];let L;e[48]!==n.downloadUrl||e[49]!==d||e[50]!==i||e[51]!==l||e[52]!==I||e[53]!==v||e[54]!==z||e[55]!==R?(L=t.jsx(ue,{readUrl:T,marker:v,toolbarClassName:z,title:d,placement:i,savePath:R,trailing:I},l),e[48]=n.downloadUrl,e[49]=d,e[50]=i,e[51]=l,e[52]=I,e[53]=v,e[54]=z,e[55]=R,e[56]=L):L=e[56];let E;return e[57]!==L||e[58]!==g?(E=t.jsxs(t.Fragment,{children:[g,L]}),e[57]=L,e[58]=g,e[59]=E):E=e[59],E}let C;e[60]!==w||e[61]!==f?.effectivePublic||e[62]!==f?.shareMode||e[63]!==n||e[64]!==x||e[65]!==i||e[66]!==a||e[67]!==u?(C=n&&t.jsxs(t.Fragment,{children:[t.jsx(te,{volume:u??"",path:x,shareMode:f?.shareMode??"private",effectivePublic:f?.effectivePublic??!1,url:window.location.origin+n.downloadUrl,placement:i}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,asChild:!0,children:t.jsx("a",{href:n.downloadUrl,download:n.filename,children:t.jsx(me,{size:14})})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.download")})]}),t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(Q,{variant:w.variant,size:w.size,onClick:()=>window.open(n.downloadUrl,"_blank","noopener"),children:t.jsx(ce,{size:14})})}),t.jsx(ee,{side:"bottom",children:a("library.previewContent.openInNewTab")})]})]}),e[60]=w,e[61]=f?.effectivePublic,e[62]=f?.shareMode,e[63]=n,e[64]=x,e[65]=i,e[66]=a,e[67]=u,e[68]=C):C=e[68];let N;e[69]!==y||e[70]!==h||e[71]!==m||e[72]!==i?(N=!h&&t.jsxs(t.Fragment,{children:[y,t.jsx(ie,{onClose:m,placement:i})]}),e[69]=y,e[70]=h,e[71]=m,e[72]=i,e[73]=N):N=e[73];let $;e[74]!==C||e[75]!==N?($=t.jsxs(t.Fragment,{children:[C,N]}),e[74]=C,e[75]=N,e[76]=$):$=e[76];const M=$;let k;e[77]!==M||e[78]!==n||e[79]!==d||e[80]!==h||e[81]!==i||e[82]!==s?(k=i==="topbar"?t.jsx(de.Actions,{children:M}):t.jsxs("div",{className:X("flex shrink-0 items-center gap-1 border-b border-border/60",le(s)),children:[t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 px-2",children:[t.jsx(se,{filename:d,className:"h-4.5 w-3.5 shrink-0"}),h?t.jsx(W,{className:"truncate text-xs font-medium text-foreground",children:d}):t.jsx("span",{className:X("truncate font-medium text-foreground",i==="aside"?"text-sm":"text-xs"),children:d}),n&&t.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:je(n.size)})]}),M]}),e[77]=M,e[78]=n,e[79]=d,e[80]=h,e[81]=i,e[82]=s,e[83]=k):k=e[83];let F;e[84]!==n||e[85]!==d||e[86]!==A||e[87]!==a?(F=t.jsx("div",{className:"relative min-h-0 flex-1 bg-background",children:n?t.jsx(be,{file:n}):A?t.jsx(ge,{}):t.jsxs("div",{className:"flex h-full flex-col items-center justify-center gap-2",children:[t.jsx(se,{filename:d,className:"h-7.5 w-6"}),t.jsx("span",{className:"text-sm text-muted-foreground",children:a("library.previewContent.fileNotAvailable")})]})}),e[84]=n,e[85]=d,e[86]=A,e[87]=a,e[88]=F):F=e[88];let _;return e[89]!==k||e[90]!==F?(_=t.jsxs(t.Fragment,{children:[k,F]}),e[89]=k,e[90]=F,e[91]=_):_=e[91],_}export{Oe as L};
@@ -1 +1 @@
1
- import{c as p,j as l,v as x,D as f}from"./index-DcLeMIKL.js";import{L as h}from"./preview-content-7avOlGvv.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
1
+ import{c as p,j as l,v as x,D as f}from"./index-Bm1kfakF.js";import{L as h}from"./preview-content-awbhTKCR.js";function g(c){const e=p.c(9),{previewPath:r,onClose:o,showSeeInLibrary:n}=c,a=n===void 0?!1:n;let i;e[0]!==o?(i=m=>{m||o()},e[0]=o,e[1]=i):i=e[1];let s;e[2]!==o||e[3]!==r||e[4]!==a?(s=l.jsx(x,{className:"flex h-[88vh] w-[94vw] max-w-none! flex-col gap-0 overflow-hidden p-0 sm:max-w-5xl!",closeButtonClassName:"top-2 right-3",children:l.jsx(h,{previewPath:r,onClose:o,showSeeInLibrary:a,variant:"dialog"})}),e[2]=o,e[3]=r,e[4]=a,e[5]=s):s=e[5];let t;return e[6]!==i||e[7]!==s?(t=l.jsx(f,{open:!0,onOpenChange:i,children:s}),e[6]=i,e[7]=s,e[8]=t):t=e[8],t}export{g as L};
@@ -1 +1 @@
1
- import{c as p,j as c}from"./index-DcLeMIKL.js";import{L as x}from"./preview-content-7avOlGvv.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};
1
+ import{c as p,j as c}from"./index-Bm1kfakF.js";import{L as x}from"./preview-content-awbhTKCR.js";function u(f){const e=p.c(6),{previewPath:i,onClose:o,showSeeInLibrary:n,expand:a,variant:l}=f,s=n===void 0?!1:n,t=l===void 0?"panel":l;let r;return e[0]!==a||e[1]!==o||e[2]!==i||e[3]!==s||e[4]!==t?(r=c.jsx("div",{className:"flex h-full w-full flex-col bg-background",children:c.jsx(x,{previewPath:i,onClose:o,showSeeInLibrary:s,expand:a,variant:t})}),e[0]=a,e[1]=o,e[2]=i,e[3]=s,e[4]=t,e[5]=r):r=e[5],r}export{u as L};