decocms 4.610.0 → 4.611.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 (436) hide show
  1. package/dist/client/assets/{AlertCircle-fMLnhe4N.js → AlertCircle-CMQV10zH.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BIuRZ0AZ.js → AreaChart-DuISTyQL.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BpQY_4Hb.js → ArrowLeft-C8Ca9SGj.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-IsxFGu7t.js → ArrowRight-D_qjUhKl.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-DJuAHozT.js → ArrowUp-BBzcACTp.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-BiHF6zzZ.js → BookOpen01-rTD8nhQf.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-GgdJZ46f.js → CartesianChart-CmdBWl1g.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-CBDGrcDZ.js → CategoricalChart-CKf8Yyge.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-Dr7_heit.js → CheckCircle-Dsrl0sYA.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-BoX4T_5s.js → ChevronDown-C50rJcMj.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-D1NaGS7F.js → ChevronSelectorVertical-Djt3ttKm.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-BRofWs4w.js → ChevronUp-D_FfEHpT.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-ZTRIvIDz.js → CreditCard01-C86YFFFO.js} +1 -1
  14. package/dist/client/assets/{Eye-BivmnvvE.js → Eye-B6cCPf8y.js} +1 -1
  15. package/dist/client/assets/{File02-FY6zCZeY.js → File02-Bqga0RpU.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-B53NZ2UJ.js → Fingerprint04-e81t2Rsp.js} +1 -1
  17. package/dist/client/assets/{Globe04-BPI-tBR7.js → Globe04-B8ATzfZn.js} +1 -1
  18. package/dist/client/assets/{Image01-CcDDqrAs.js → Image01-BhuNuoo8.js} +1 -1
  19. package/dist/client/assets/{Key01-lhYXuGDp.js → Key01-DgTKBiC1.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-xchgd5Yi.js → LayoutLeft-NdGA068i.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-DIf0b0rn.js → LinkBroken01-DdYCDQYH.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-B10kr5uX.js → MessageCircle01-BpQQiBmH.js} +1 -1
  23. package/dist/client/assets/{Minus-DnwYSFGD.js → Minus-DgevTSUu.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Dlx-hfNO.js → Monitor01-QPUul6iy.js} +1 -1
  25. package/dist/client/assets/{Play-D05aqmG8.js → Play-B7Twjw53.js} +1 -1
  26. package/dist/client/assets/{Plus-3ew-qzRg.js → Plus-SDHe97GR.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-C6RjSes1.js → ReferenceLine-DotJhU5D.js} +1 -1
  28. package/dist/client/assets/{SearchMd-BVGIdSgF.js → SearchMd-BjPfVKIV.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-Bp-vqf9J.js → ShoppingBag01-BOP8iPvg.js} +1 -1
  30. package/dist/client/assets/{Sun-lT-uDm7m.js → Sun-D-TVq6e8.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-DmJYUvGl.js → SwitchHorizontal01-B39ZJ4UZ.js} +1 -1
  32. package/dist/client/assets/{Tool01-XvjOBq9P.js → Tool01-CcGB7LBy.js} +1 -1
  33. package/dist/client/assets/{Tooltip-cp6B_p4W.js → Tooltip-CU8tKWXR.js} +1 -1
  34. package/dist/client/assets/{Trash01-BAd16zlB.js → Trash01-Dd6dddL6.js} +1 -1
  35. package/dist/client/assets/{Upload01-UYtGRq9J.js → Upload01-Ceg_L_zO.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-DcUjByxP.js → UserCheck01-CgjnWNg9.js} +1 -1
  37. package/dist/client/assets/{UserSquare-BruOWifD.js → UserSquare-BEv7rm2k.js} +1 -1
  38. package/dist/client/assets/{Users01-COqq34au.js → Users01-CDMnI452.js} +1 -1
  39. package/dist/client/assets/{XClose-CnRhNuQH.js → XClose-DhprECXU.js} +1 -1
  40. package/dist/client/assets/{Zap-BIlzDOzm.js → Zap-CxCLKK5S.js} +1 -1
  41. package/dist/client/assets/{access-gate-C0BZk8c2.js → access-gate-CDVSbtkj.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-BjecimOb.js → add-connection-dialog-DnPaZnDA.js} +1 -1
  43. package/dist/client/assets/agent-app-CsGfS0zJ.js +1 -0
  44. package/dist/client/assets/{agent-assets-B3xVIbjO.js → agent-assets-BKvDQ6ZG.js} +1 -1
  45. package/dist/client/assets/{agent-automation-Cs5PlhS_.js → agent-automation-Bx-NuDZl.js} +1 -1
  46. package/dist/client/assets/{agent-automations-B0cI5z7i.js → agent-automations-CLe9w2t8.js} +1 -1
  47. package/dist/client/assets/{agent-blog-post-C7MCFiHJ.js → agent-blog-post-BaXgHzHt.js} +2 -2
  48. package/dist/client/assets/{agent-blog-DBkq-Lqv.js → agent-blog-saY0nlhI.js} +2 -2
  49. package/dist/client/assets/{agent-business-case-DGNDHfy8.js → agent-business-case-D1J_EJBP.js} +1 -1
  50. package/dist/client/assets/{agent-calendar-Cu-bFn_1.js → agent-calendar-DmHWjOEz.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-EFJ460FZ.js → agent-capabilities-CmfwlzZU.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-DWW4lIzl.js → agent-connect-sources-CDCBitnG.js} +1 -1
  53. package/dist/client/assets/agent-deck-wiGmkegT.js +1 -0
  54. package/dist/client/assets/{agent-e2e-BAdG01pL.js → agent-e2e-BPS7jgkd.js} +1 -1
  55. package/dist/client/assets/agent-experiments-DC4xI5lD.js +1 -0
  56. package/dist/client/assets/agent-file-DY6_gTME.js +1 -0
  57. package/dist/client/assets/{agent-hosting-eAcCsqG1.js → agent-hosting-NwO2TKDF.js} +1 -1
  58. package/dist/client/assets/{agent-icon-BUzPMbYp.js → agent-icon-BULE2fWe.js} +1 -1
  59. package/dist/client/assets/agent-library-CY76yE28.js +1 -0
  60. package/dist/client/assets/agent-library-file-Bjei4utc.js +1 -0
  61. package/dist/client/assets/agent-overview-ivofqF2c.js +1 -0
  62. package/dist/client/assets/{agent-releases-CAwZrvbX.js → agent-releases-HCmP-qlK.js} +1 -1
  63. package/dist/client/assets/agent-settings-Bxo7o7gL.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-D1Fw_nHF.js → agent-site-editor-GpNjnXGk.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-BMjZqAT2.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-DK93H1Xk.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-1d9iwg6w.js +1 -0
  68. package/dist/client/assets/agent-view-CmiEQkVX.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-COVmXMDj.js → agent-view-guard-BrhCLpkj.js} +1 -1
  70. package/dist/client/assets/{ai-providers-Dbisg2_X.js → ai-providers-CsLwpTHp.js} +1 -1
  71. package/dist/client/assets/{alert-C_fRLJHt.js → alert-BI4VuWlB.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-OYaPNXoo.js → analytics-sections-D_43TpvM.js} +1 -1
  73. package/dist/client/assets/api-keys-DUArXFLt.js +1 -0
  74. package/dist/client/assets/{api-keys-CvOJ2C6O.js → api-keys-F4HzLSGA.js} +1 -1
  75. package/dist/client/assets/{app-editor-AIHC2CY6.js → app-editor-BvKQGVmd.js} +1 -1
  76. package/dist/client/assets/{asset-utils-DI8Mkfk2.js → asset-utils-B3p_FXzZ.js} +1 -1
  77. package/dist/client/assets/{auth-catchall-BI3ZQDNg.js → auth-catchall-D1jYu4R6.js} +1 -1
  78. package/dist/client/assets/{auth-entry-B6NVYIyy.js → auth-entry-Dgm3aW_D.js} +1 -1
  79. package/dist/client/assets/{auth-split-layout-CcKew0_d.js → auth-split-layout-07QqI3zO.js} +1 -1
  80. package/dist/client/assets/{auth-CFZV8LNa.js → auth-xKzEv0UZ.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-B3x0DVvj.js → authenticate-and-persist-oauth-CKZj1IUu.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-CmOp_sRJ.js → automation-list-row-BHqHOtQx.js} +1 -1
  83. package/dist/client/assets/{automation-runs-GGr3q_t6.js → automation-runs-CRciewSu.js} +1 -1
  84. package/dist/client/assets/{automations-FO50hUU_.js → automations-BWwcGlIf.js} +1 -1
  85. package/dist/client/assets/{badge-BEIqpSWr.js → badge-CFl-sPcD.js} +1 -1
  86. package/dist/client/assets/{block-document-BQyzUTQb.js → block-document-iHb56h21.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-nT1WU50c.js → blocks-preview-workspace-context-DBjLLOwy.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-C8b6r-Rr.js → blocks-tab-states-Bz9ljtyl.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-DnJG6GIX.js → blog-preview-url-1TkdoQtD.js} +1 -1
  90. package/dist/client/assets/{blog-schema-Cpxx5HQu.js → blog-schema-BZ0Jqy8M.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-ChzKUgJB.js → blog-source-gate-DjSc8yUZ.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-C8Zoi37Q.js → blog-view-gate-DgZTLgRJ.js} +1 -1
  93. package/dist/client/assets/{buckets-BJgVyZGc.js → buckets-DxoYBJcE.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-DSYOXwvq.js → build-improve-prompt-doc-BMoym9Vj.js} +1 -1
  95. package/dist/client/assets/{calendar-BniyEQBg.js → calendar-CEemZB_B.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-BzUBNDCP.js → capability-load-error-BTFUeIPH.js} +1 -1
  97. package/dist/client/assets/{category-editor-C8Q-BotL.js → category-editor-srri80CB.js} +1 -1
  98. package/dist/client/assets/{category-tree-BvOKDXJP.js → category-tree-CPPsewqr.js} +1 -1
  99. package/dist/client/assets/{chart-CNx1WxLV.js → chart-C-gDoxee.js} +1 -1
  100. package/dist/client/assets/chat-context-5XiEKH4L.js +44 -0
  101. package/dist/client/assets/{chat-draft-CUtr-Qmf.js → chat-draft-B6RBQpJw.js} +1 -1
  102. package/dist/client/assets/{checkbox-CH7V0LA5.js → checkbox-8SyXZvGW.js} +1 -1
  103. package/dist/client/assets/{choose-editor-Biv3zv_l.js → choose-editor-DxwGBSym.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-B-EVIYaI.js → cli-auth-success-C9k5mfK6.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-BUPG2UGb.js → cms-settings-editor-BsU3WNyc.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-D9aD7eqZ.js → cms-store-drafts-DWxn6u5u.js} +1 -1
  107. package/dist/client/assets/{collapsible-CUjrXLIK.js → collapsible-DRJg67rf.js} +1 -1
  108. package/dist/client/assets/{collection-detail-CpQCmGv5.js → collection-detail-BrKNh_sc.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-Q9wOiUuQ.js → collection-display-button-BdtaL-mb.js} +1 -1
  110. package/dist/client/assets/{collection-search-BpBt8YLH.js → collection-search-BMrWPTLQ.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-B_FURvd1.js → collection-table-wrapper-BWN3xqpw.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-C2qlQv4k.js → collection-tabs-D9CZUNPJ.js} +1 -1
  113. package/dist/client/assets/{combobox-27ivRGzf.js → combobox-DsfTnWMd.js} +1 -1
  114. package/dist/client/assets/{command-DET2-o7x.js → command-Bx6bzwV3.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-DneX7Jzv.js → companion-mcps-section-C9QnKnjT.js} +1 -1
  116. package/dist/client/assets/{config-CNL9isfS.js → config-CReIzLqM.js} +1 -1
  117. package/dist/client/assets/{connect-key-e72ndoQz.js → connect-key-ChjP56x4.js} +1 -1
  118. package/dist/client/assets/{connect-layout-CvRxptQC.js → connect-layout-BZ0_MQQ4.js} +1 -1
  119. package/dist/client/assets/{connect-source-dialog-D77DpEgz.js → connect-source-dialog-BXyFZL_X.js} +1 -1
  120. package/dist/client/assets/{connect-DfUKQrO1.js → connect-uMWVy558.js} +1 -1
  121. package/dist/client/assets/{connection-Y7iFDql6.js → connection-BlQeEUPX.js} +1 -1
  122. package/dist/client/assets/{connection-card-BoZq0Qgr.js → connection-card-C3Cm4Vsr.js} +1 -1
  123. package/dist/client/assets/{connection-detail-BnCsN0WR.js → connection-detail-Br3kvCLD.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-B9uzJgKt.js → connection-form-helpers-B16n6soh.js} +1 -1
  125. package/dist/client/assets/{connection-slug-oFV7q3Mr.js → connection-slug-CavXizqw.js} +1 -1
  126. package/dist/client/assets/{connections-DHEhCPcn.js → connections-Ct4xUehR.js} +1 -1
  127. package/dist/client/assets/{content-changes-Cz_QO8b-.js → content-changes-C1IdGdFF.js} +1 -1
  128. package/dist/client/assets/{content-tab-DKZOC0hz.js → content-tab-Dp8TW9qo.js} +3 -3
  129. package/dist/client/assets/{context-Bb9gVzRf.js → context-B1WfVRke.js} +1 -1
  130. package/dist/client/assets/{context-menu-Bc9ShJiW.js → context-menu-DI3Zl6jz.js} +1 -1
  131. package/dist/client/assets/{context-shell-Dk2xTCQ_.js → context-shell-G6Gbdp0W.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-CfFS4qOF.js → create-organization-dialog-C6kVfnSi.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-BxRZmy88.js → daily-pulse-D_AiA3QD.js} +1 -1
  134. package/dist/client/assets/{delete-copy-B9XfUYuD.js → delete-copy-DwOYB3lx.js} +1 -1
  135. package/dist/client/assets/{device-hint-D3HMygEx.js → device-hint-AUNfpJY-.js} +1 -1
  136. package/dist/client/assets/{discover-CdZx7BRU.js → discover-C3KvDhLe.js} +1 -1
  137. package/dist/client/assets/{domain-settings-DBkhaw5J.js → domain-settings-DKjGNSDn.js} +1 -1
  138. package/dist/client/assets/{drawer-BysblPi2.js → drawer-DXadnv_8.js} +1 -1
  139. package/dist/client/assets/{editor-BtdaQuHN.js → editor-CDRuQE8T.js} +1 -1
  140. package/dist/client/assets/{editor-classes-CxIZNugt.js → editor-classes-nFtrg95h.js} +1 -1
  141. package/dist/client/assets/{empty-state-z8d6CDxb.js → empty-state-Bq2pKAom.js} +1 -1
  142. package/dist/client/assets/{empty-state-BTtJHydu.js → empty-state-DsDTFIVX.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-D9gXTAbE.js → experiments-tab-choice-DXVI89Of.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-BauA6Mrh.js → extract-connection-data-qg3jBD1i.js} +1 -1
  145. package/dist/client/assets/{feature-gate-BE5292u7.js → feature-gate-h5u-Zwbn.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-Bl4fn5Eu.js → feature-paywall-Dob_ExVf.js} +1 -1
  147. package/dist/client/assets/{file-explorer-CHqr8v1J.js → file-explorer-CzlEqF_b.js} +1 -1
  148. package/dist/client/assets/{file-preview-jYURLVeg.js → file-preview-D4QUoORy.js} +1 -1
  149. package/dist/client/assets/{file-share-button-B3Eso6F1.js → file-share-button-CL3J0zEg.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-CoN_4-an.js → file-type-icon-BSoZy34z.js} +1 -1
  151. package/dist/client/assets/{folder-icon-BzaGAHF2.js → folder-icon-DCn-k3hb.js} +1 -1
  152. package/dist/client/assets/{form-Z5FeDYMO.js → form-DC0J7PuZ.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-CziYTYxO.js → frame-navigation-BLxrhab4.js} +1 -1
  154. package/dist/client/assets/{gateway-client-PxuT6Cn_.js → gateway-client-7v27Q-DB.js} +1 -1
  155. package/dist/client/assets/{general-ChYADWnU.js → general-BflUyDpv.js} +1 -1
  156. package/dist/client/assets/{github-icon-CD6EsDXg.js → github-icon-BiXr0BnT.js} +1 -1
  157. package/dist/client/assets/{held-block-view-D0DYh6G5.js → held-block-view-BlzwFREn.js} +1 -1
  158. package/dist/client/assets/{home-CK5gZJMZ.js → home-grRufnoO.js} +1 -1
  159. package/dist/client/assets/{home-overview-DuHc-wvZ.js → home-overview-DXw9jW2V.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-9Be5Kz_9.js → hosted-reconcile-DYem52V_.js} +1 -1
  161. package/dist/client/assets/{icon-button-Cnb4QZQ2.js → icon-button-CrmRSiE7.js} +1 -1
  162. package/dist/client/assets/{index-MbMJ4XU6.js → index-B1WaFOsQ.js} +1 -1
  163. package/dist/client/assets/{index-h5M7_u6d.js → index-BAkS3I9t.js} +6 -6
  164. package/dist/client/assets/{index-DBGg09pY.js → index-BXsKfYZJ.js} +1 -1
  165. package/dist/client/assets/{index-Cyo61QAa.js → index-BqCBhDK1.js} +1 -1
  166. package/dist/client/assets/{index-BGgVMoul.js → index-BuNHZe0j.js} +1 -1
  167. package/dist/client/assets/{index-BmjIBIfS.js → index-BzvjWc_o.js} +1 -1
  168. package/dist/client/assets/{index-_JW1v87_.js → index-C0knVPih.js} +1 -1
  169. package/dist/client/assets/{index-DNi8BL3Y.js → index-C9tmAxLB.js} +1 -1
  170. package/dist/client/assets/{index-qO5SB_wH.js → index-ClyKEqMi.js} +1 -1
  171. package/dist/client/assets/{index-CVxUE8AG.js → index-CvLxyrnp.js} +1 -1
  172. package/dist/client/assets/{index-CtSr04e6.js → index-D-nHomQz.js} +1 -1
  173. package/dist/client/assets/{index-BSAl9MOu.js → index-DLFVDiMO.js} +1 -1
  174. package/dist/client/assets/{index-Drv2p2KS.js → index-DPrn33Rq.js} +1 -1
  175. package/dist/client/assets/{index-C0yhoJT-.js → index-DWWehzpr.js} +1 -1
  176. package/dist/client/assets/{index-4gBtHFrE.js → index-De5CWr6j.js} +1 -1
  177. package/dist/client/assets/{index-Blc3Q4tn.js → index-Dtfv6swm.js} +1 -1
  178. package/dist/client/assets/{index-D4q_WpS5.js → index-OpwPUCZR.js} +1 -1
  179. package/dist/client/assets/{index-redirect-B-ZpFI6V.js → index-redirect-BX1uMWOl.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-Do5Bs95Q.js → infiniteQueryObserver-BjwRt0P7.js} +1 -1
  181. package/dist/client/assets/{infra-billing-COWj38os.js → infra-billing-BtsuEBUg.js} +1 -1
  182. package/dist/client/assets/{input-DpQVw7n7.js → input-DyQNdUEN.js} +1 -1
  183. package/dist/client/assets/{input-DCdWeNDX.js → input-KiZyceF0.js} +11 -11
  184. package/dist/client/assets/{integration-icon-B5Wz15tf.js → integration-icon-xC728oQA.js} +1 -1
  185. package/dist/client/assets/{item-actions-CXqUCk79.js → item-actions-6XRfzKrK.js} +1 -1
  186. package/dist/client/assets/{jira-icon-BKxqkTxc.js → jira-icon-DGTJcb2Z.js} +1 -1
  187. package/dist/client/assets/{label-ByNDPW1G.js → label-C7M6CeY4.js} +1 -1
  188. package/dist/client/assets/{layout-Vxlf1o8W.js → layout-CXyhUfPs.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-ndm9cCzy.js → legacy-admin-welcome-dialog-BdilK4Du.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-DMgm8PW4.js → legacy-agents-deep-B2Qna1Se.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-BZMHplqE.js → legacy-main-redirect-EU3nqwLM.js} +1 -1
  192. package/dist/client/assets/library-BjHFUNKc.js +1 -0
  193. package/dist/client/assets/{library-tab-Bxhw1Y4E.js → library-tab-Bhd50tYr.js} +1 -1
  194. package/dist/client/assets/{login-BAvEuYWT.js → login-CP07qecU.js} +1 -1
  195. package/dist/client/assets/{markdown-wdQvukFe.js → markdown-7s6OBK-6.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-PzEL44dF.js → mcp-app-renderer-DG3_Q3ZF.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-C8ipBqY7.js → mcp-oauth-Br6rXuZJ.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-ChzDIv6P.js → mcp-oauth-XaS9J9tP.js} +1 -1
  199. package/dist/client/assets/{members-D9Xtz8bv.js → members-XVVsOLwh.js} +1 -1
  200. package/dist/client/assets/{memory-Cenm5YiG.js → memory-CTdw0NXy.js} +1 -1
  201. package/dist/client/assets/{mock-board-CK_3OO-A.js → mock-board-FuXOTgCX.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-BOl00D7O.js → monaco-editor-DquEynfh.js} +1 -1
  203. package/dist/client/assets/{monitoring-BWg5UnHg.js → monitoring-CeR9ea8R.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-3Dqx5OO0.js → monitoring-stats-row-BUs3iCrU.js} +1 -1
  205. package/dist/client/assets/{multi-select-BHBrBKF9.js → multi-select-LRLNCHIK.js} +1 -1
  206. package/dist/client/assets/{mustache-RaXjfeVp.js → mustache-D-yc8kJS.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-CDWup8ng.js → named-rule-step-B0cFtbUw.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-0ILXkgv7.js → named-rule-view-CJ1ry0oG.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-L4L31NPq.js → new-project-dialog-CJIzW540.js} +1 -1
  210. package/dist/client/assets/{new-project-store-gRG3bb0F.js → new-project-store-CUMGMx8W.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ClNBH-sv.js → oauth-callback-DIgJqEQi.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-CAkTCYjv.js → oauth-callback-ai-provider-CEUK_lVE.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-CjKOG8Cm.js → oauth-consent-C5gcHrmJ.js} +1 -1
  214. package/dist/client/assets/{onboarding-mHWmOamf.js → onboarding-Bqbi76HX.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-CoF8YnH8.js → openai-conversation-CcQ5R9Ji.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-DwuDaS_0.js → optimistic-project-sidebar-views-BtdqPF6r.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-DcFTm9WF.js → order-monitor-day-B1hF8WjW.js} +1 -1
  218. package/dist/client/assets/{organization-choice-CVyQSR3o.js → organization-choice-C4PlHT4p.js} +1 -1
  219. package/dist/client/assets/{orgs-FiDI4ovr.js → orgs-DeLcshXN.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-Dr8fJUre.js → own-accounts-section-BslUDvUS.js} +1 -1
  221. package/dist/client/assets/{pair-DufFAuYI.js → pair-DXYob3uY.js} +1 -1
  222. package/dist/client/assets/{parse-sections-pp86q8J8.js → parse-sections-CRgnc3CL.js} +2 -2
  223. package/dist/client/assets/plan-Dzd3-KrG.js +1 -0
  224. package/dist/client/assets/{plan-ladder-BoR0dEZH.js → plan-ladder-CV9v5egR.js} +1 -1
  225. package/dist/client/assets/plan-page-Bs_KN9xq.js +6 -0
  226. package/dist/client/assets/{plan-usage-card-BIWfXczL.js → plan-usage-card-CLZWIQxf.js} +1 -1
  227. package/dist/client/assets/{popover-BXXtCYra.js → popover-zN1hNT-L.js} +1 -1
  228. package/dist/client/assets/{post-calendar-By3b8PUh.js → post-calendar-xK-rULPS.js} +1 -1
  229. package/dist/client/assets/{post-editor-SP9wZiEa.js → post-editor-DUv0sxb3.js} +1 -1
  230. package/dist/client/assets/{preview-content-DimkdLXi.js → preview-content-CUkQe6Yi.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-e6FSlo-m.js → preview-dialog-C6O4hB_v.js} +1 -1
  232. package/dist/client/assets/{preview-panel-lYKWrzV2.js → preview-panel-CKfPvkWs.js} +1 -1
  233. package/dist/client/assets/{preview-tab-9CUnHIyI.js → preview-tab-CYbb7129.js} +3 -3
  234. package/dist/client/assets/{primitives-COmgcZSz.js → primitives-TI3e7ruV.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-DeX55OcF.js → product-picker-dialog-CWKqQ6-J.js} +1 -1
  236. package/dist/client/assets/{profile-iyi7XS4l.js → profile-D-BxX6JD.js} +1 -1
  237. package/dist/client/assets/{project-app-view-7rXYHfnd.js → project-app-view-BGhxEQvx.js} +1 -1
  238. package/dist/client/assets/{project-apps-C_GEiKx3.js → project-apps-EC6j9CEa.js} +1 -1
  239. package/dist/client/assets/{project-icon-xkpd5H2A.js → project-icon-DzLoogsD.js} +1 -1
  240. package/dist/client/assets/{project-index-DYaVxQmQ.js → project-index-BeB0p8jY.js} +1 -1
  241. package/dist/client/assets/project-reports-gRtUO48c.js +1 -0
  242. package/dist/client/assets/project-tasks-vDppvwX_.js +1 -0
  243. package/dist/client/assets/{projects-zPdONEG4.js → projects-Q6qNofYq.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-BAV9Ffjo.js → projects-empty-state-BnMrklD7.js} +1 -1
  245. package/dist/client/assets/{prompts-G3yYbKPD.js → prompts-CzsA1eKf.js} +1 -1
  246. package/dist/client/assets/record-editor-CIJfEBMQ.js +1 -0
  247. package/dist/client/assets/{redirect-editor-DTZSFCjX.js → redirect-editor-_Rzldltw.js} +1 -1
  248. package/dist/client/assets/{reports-jjX900h5.js → reports-BC_FTcir.js} +1 -1
  249. package/dist/client/assets/reports-D8RgSkdw.js +1 -0
  250. package/dist/client/assets/{reports-onboarding-BaNp7l8n.js → reports-onboarding-BRKwDg1B.js} +1 -1
  251. package/dist/client/assets/{reports-tab-DCes_sOj.js → reports-tab-nAGK9OJB.js} +2 -2
  252. package/dist/client/assets/{repositories-DRSJaviL.js → repositories-DwJmZQ_S.js} +1 -1
  253. package/dist/client/assets/repositories-fpX5qQ6d.js +1 -0
  254. package/dist/client/assets/{repository-binding-C2ttJKfq.js → repository-binding-3s1-jerc.js} +1 -1
  255. package/dist/client/assets/{repository-picker-3iPAo5jF.js → repository-picker-C6LBSgFD.js} +1 -1
  256. package/dist/client/assets/{require-capability-D00A2gpb.js → require-capability-CROnESqE.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-xd1kE6xL.js → required-auth-layout-msTgMG3w.js} +1 -1
  258. package/dist/client/assets/{reset-password-COr2KZJk.js → reset-password-CR_Pfo3L.js} +1 -1
  259. package/dist/client/assets/{resizable-xQBWzbNC.js → resizable-CifYESKN.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-2Wq7hmMQ.js → resolve-tab-icon-BWc2PXXt.js} +1 -1
  261. package/dist/client/assets/{review-settings-DupHsUxt.js → review-settings-BUsFAX4E.js} +1 -1
  262. package/dist/client/assets/{role-color-Do1LysZx.js → role-color-D1GxSeU5.js} +1 -1
  263. package/dist/client/assets/{roles-I7CPVpVS.js → roles-BsBfelAx.js} +1 -1
  264. package/dist/client/assets/route-BsnfBpCB.js +1 -0
  265. package/dist/client/assets/{route-BHS1eUVp.js → route-C6ggpVup.js} +1 -1
  266. package/dist/client/assets/{route-DM2qFCGb.js → route-CR_m6nNh.js} +1 -1
  267. package/dist/client/assets/{route-page-header-Te1-xCL8.js → route-page-header-Bt0DzG3W.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-CXVfj6eY.js → sandbox-git-api-4eoXZPwi.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-BZAbErHF.js → sandbox-lifecycle-context-YyDgegm5.js} +1 -1
  270. package/dist/client/assets/{save-status-DBthDxaG.js → save-status-BpImS5FL.js} +1 -1
  271. package/dist/client/assets/schema-CFHK_oTc.js +1 -0
  272. package/dist/client/assets/{schema-C0uHzQdv.js → schema-D1fWL_Uz.js} +1 -1
  273. package/dist/client/assets/{scroll-area-DC4PERKA.js → scroll-area-C44byneR.js} +1 -1
  274. package/dist/client/assets/{search-input-DmWvIiBD.js → search-input-zqijIb2Z.js} +1 -1
  275. package/dist/client/assets/{search-toggle-DIzJmBro.js → search-toggle-CxUOME3e.js} +1 -1
  276. package/dist/client/assets/{secret-picker-BVIZLHNq.js → secret-picker-DrXViE_v.js} +1 -1
  277. package/dist/client/assets/{secrets-DloYc21B.js → secrets-BSCWBi7n.js} +1 -1
  278. package/dist/client/assets/{section-array-field-tQPscYBU.js → section-array-field-0bB0SP9C.js} +1 -1
  279. package/dist/client/assets/{sections-DJ9Uw8Ig.js → sections-2cPOoMVo.js} +1 -1
  280. package/dist/client/assets/{sections-editor-DOdXmxbf.js → sections-editor-D17rjxVG.js} +1 -1
  281. package/dist/client/assets/{select-DJrmw6BE.js → select-DWaAXd8R.js} +1 -1
  282. package/dist/client/assets/{select-model-Oo3WCoc2.js → select-model-WPWRwY1V.js} +1 -1
  283. package/dist/client/assets/{seo-editor-DcVhskN_.js → seo-editor-DC0TldEc.js} +1 -1
  284. package/dist/client/assets/{separator-D3J6DIuQ.js → separator-BP-wYzTl.js} +1 -1
  285. package/dist/client/assets/{session-runtime-C5QSeCzi.js → session-runtime-CKIKfAeL.js} +1 -1
  286. package/dist/client/assets/settings-tab-De83D02t.js +1 -0
  287. package/dist/client/assets/{sheet-CaBxNWJg.js → sheet-H_DS9XJb.js} +1 -1
  288. package/dist/client/assets/{shell-layout-alWzS7OH.js → shell-layout-Br0U0ibo.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-BXPpULlW.js → site-draft-actions-ChbTC35-.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-pN0kLMFB.js → site-draft-view-YI-Ph6Gl.js} +1 -1
  291. package/dist/client/assets/site-editor-Cxbx95bH.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-CDwS7PqN.js → site-editor-toast-BITU0E66.js} +1 -1
  293. package/dist/client/assets/{skills-COrgHtgF.js → skills-VJNxeXgC.js} +1 -1
  294. package/dist/client/assets/{slider-DlePwAki.js → slider-QPT-NoS7.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-B-M5LtT1.js → sortable.esm-Doe7TvCi.js} +1 -1
  296. package/dist/client/assets/{sso-DNjzWg00.js → sso-BB-u0nk0.js} +1 -1
  297. package/dist/client/assets/{suggestion-C3Yq0VR4.js → suggestion-D8jM7QP6.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-DQUSmsww.js → super-agent-icon-B2MlPZDw.js} +1 -1
  299. package/dist/client/assets/{switch-VNmTvSjQ.js → switch-DJRaFsox.js} +1 -1
  300. package/dist/client/assets/{synced-repos-Cxcrq7XH.js → synced-repos-XQs80J8E.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-Dxg89nxz.js → tab-icon-glyph-DE9hxpjr.js} +1 -1
  302. package/dist/client/assets/{table-BPa5qlP8.js → table-B5Vk8PsH.js} +1 -1
  303. package/dist/client/assets/{tabs-gsKK5Z83.js → tabs-yUzyAuHo.js} +1 -1
  304. package/dist/client/assets/{task-board-DPQVIG08.js → task-board-_VqItTnn.js} +1 -1
  305. package/dist/client/assets/{task-key-CvnKgot5.js → task-key-HCYxchZ-.js} +1 -1
  306. package/dist/client/assets/{task-route-4Ffx__zo.js → task-route-DkFPGqqO.js} +1 -1
  307. package/dist/client/assets/{task-status-D_kG2AxO.js → task-status-xDg37uwv.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-qYx0x7wk.js → taskboard-analytics-16bhCjJF.js} +1 -1
  309. package/dist/client/assets/tasks-CRzQv2kZ.js +1 -0
  310. package/dist/client/assets/{tasks-BKbLDNZi.js → tasks-CbsSW8RH.js} +1 -1
  311. package/dist/client/assets/{textarea-D4AETCzr.js → textarea-Dyd14nGh.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-Cq43267h.js → thread-analytics-Bg5H7a2G.js} +1 -1
  313. package/dist/client/assets/{thread-button-C6bVNcWa.js → thread-button-DJivMuaE.js} +1 -1
  314. package/dist/client/assets/{thread-intent-CWcX0xIz.js → thread-intent-Bc3EWL8B.js} +1 -1
  315. package/dist/client/assets/{thread-route-Bmhkgc3V.js → thread-route-BVbiqt2D.js} +1 -1
  316. package/dist/client/assets/{thread-route-DbIj-4pl.js → thread-route-CO4GyP6M.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-Bh7Y8gpc.js → thread-sheet-body-xcI19ecO.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-D_itCFav.js → time-range-picker-Kw3fXzvx.js} +1 -1
  319. package/dist/client/assets/{toggle-group-ChIbd7yf.js → toggle-group-D587KudN.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-DxNU0Tk2.js → tool-set-selector-BOpAW5Y1.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-DfwHzQ1U.js → toolbar-icon-button-CkaO9hY_.js} +1 -1
  322. package/dist/client/assets/{tooltip-qtRvoONv.js → tooltip-Duum-wbC.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-CQ-o3RLp.js → tooltipContext-CGwQLnqp.js} +1 -1
  324. package/dist/client/assets/{track-1YUi_zXD.js → track-BGMQL3S3.js} +1 -1
  325. package/dist/client/assets/{types-Dbc1mwzs.js → types-93zYNLaG.js} +1 -1
  326. package/dist/client/assets/{url-slug-C69P-992.js → url-slug-Bxh093Yo.js} +1 -1
  327. package/dist/client/assets/{usage-stats-9t2_M-_X.js → usage-stats-CG0HF4aR.js} +1 -1
  328. package/dist/client/assets/use-ai-providers-jcWnR4kL.js +1 -0
  329. package/dist/client/assets/{use-api-keys-CoQYKZvm.js → use-api-keys-D2JjTG-i.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-C6c41pMd.js → use-apply-named-rule-Cgp8LbdQ.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-BgJT5viH.js +1 -0
  332. package/dist/client/assets/{use-automations-DiAkQCce.js → use-automations-CCRh6J1K.js} +1 -1
  333. package/dist/client/assets/{use-autosave-CFd8OFFM.js → use-autosave-BcvItCaI.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-Bt5ze2gk.js +1 -0
  335. package/dist/client/assets/use-blog-view-D_th-kMW.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-0GuH45Fr.js → use-chat-layout-state-BHHHG0at.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-_hVvxJuC.js → use-cms-publish-actions-D4bs5F-E.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-HmjPTaqN.js → use-connect-companion-1EdDS_t5.js} +1 -1
  339. package/dist/client/assets/{use-connection-DEfaQgjd.js → use-connection-qfJQ-1Sx.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-DY1Xa83w.js → use-content-sync-mcWKgd2x.js} +1 -1
  341. package/dist/client/assets/{use-copy-Ctkoq0el.js → use-copy-B0bJTc_A.js} +1 -1
  342. package/dist/client/assets/{use-current-view-Osva99rG.js → use-current-view-BveVb2BS.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-BFjNToES.js → use-date-fns-locale-LScEMdLm.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-CMjXPDh8.js → use-debounced-autosave-bJmRfXGh.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-C0H-A83Z.js → use-debounced-value-DfrfrzHX.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-DbIY0apq.js → use-deco-credits-Bg3ufOSK.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-Br-3bz6F.js → use-decopilot-events-Df7BUQ9K.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-9G55uQNy.js → use-delete-block-6fX0bkwu.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-CNNeNYak.js → use-delete-connection-WCBhvytS.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-Cma9Q0Nv.js → use-deployment-admin-9g3NnFUn.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-CZg-IfPI.js → use-entitlements-DfsP8gtu.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-YkfRp5Y5.js → use-fast-preview-draft-url-X0WNIRyx.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-BN106-dD.js → use-file-configs-DXrGvvLv.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-v4dQRyB7.js → use-id-selection-BDavG4Tw.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-CSD80tC3.js → use-in-settings-B3WNh2Ct.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-C4vHMqjF.js → use-inbox-feed-B1XRnR81.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-xMb15Ejb.js → use-infinite-scroll-zbNj6V3y.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-Csz7IV7s.js → use-join-requests-DpyRq5P-.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-BkO-TGsR.js → use-main-panel-tabs-BT_eBxjW.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-12_RYXF3.js → use-mcp-auth-status-CAcXwsqK.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-CH6bskGM.js → use-mcp-client-hdH8Uz6-.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-Nf2vBxrv.js → use-mcp-prompts-Bo4GYlhV.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-Cp5tZy-C.js → use-mcp-tools-qc6hBXfj.js} +1 -1
  364. package/dist/client/assets/{use-mobile-VHSlVnL-.js → use-mobile-U0e6QGNo.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-DKWJxUtt.js → use-move-blocks-DxPhfmd5.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-CnyUBPgz.js → use-navigate-to-agent-D9o_GRS4.js} +1 -1
  367. package/dist/client/assets/{use-never-published-o664b5-M.js → use-never-published-CKGn23rS.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-bkWpzofB.js → use-org-fs-DlJPLDns.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-BooyLawP.js → use-org-notice-BwrJDiul.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-D8xHYdtx.js → use-org-repo-syncs-CkYZAGbj.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-Cj-99lvX.js → use-org-sso-Cy23Rsh-.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-Bjs-pync.js → use-organization-settings-CK7vcd9v.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-Cu4M1nkN.js → use-panel-navigate-DcQ09zcF.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-eDVIFrSv.js → use-project-native-view-presence-VcQ4wphD.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-BDInf_KX.js → use-project-scope-DrIhuPRp.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-KlCOfma9.js → use-recent-apps-B7Pqr9ul.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-Ds5b1C3b.js → use-reports-diagnostic-DLtkhYdg.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-CciPXt5C.js → use-sandbox-events-C82W1a6-.js} +1 -1
  379. package/dist/client/assets/{use-secrets-C8uw__8j.js → use-secrets-C-GxHGg1.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-eeUG5sYr.js → use-section-preview-base-zzj5ZM4R.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-BijNCAag.js → use-sidebar-collapsed-CRNsdAbB.js} +1 -1
  382. package/dist/client/assets/{use-tags-Ci9KoBHX.js → use-tags-SlNFtcxF.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-t93pM_aV.js → use-task-board-analytics-B8bUEPqV.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-CPEdqE2N.js → use-task-board-item-prs-DXr8--1F.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-CbzznfFt.js → use-task-board-items-DpI5X1-L.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-CavOml8i.js → use-task-board-prompts-xQb3froZ.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-Vyk2w4F6.js → use-task-metadata-NKQ3nvsW.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-DZyh4ROf.js → use-thread-outputs-BXlCD20Z.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-C3o_ZEOa.js → use-view-draft-kind-ZpRr9xSn.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-DoWLxn0F.js → use-voice-input-DGpNCylm.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-D_OScDhL.js +1 -0
  392. package/dist/client/assets/{useQueries-lODZBARU.js → useQueries-BTdYDVOD.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-B8OZl3RL.js +1 -0
  394. package/dist/client/assets/{users-CwtBqC8p.js → users-DaZoKAx4.js} +1 -1
  395. package/dist/client/assets/{utils-7dvG3Zcx.js → utils-DRn4O7AD.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-CYrpUTQb.js → variant-calendar-NMOykMzc.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-CbdFpu2V.js → variant-matcher-override-Cjj7k-fb.js} +1 -1
  398. package/dist/client/assets/{view-header-IBc_XU-f.js → view-header-CVNhMeEP.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-C7awt5vu.js → virtual-mcp-DQXPz7Kb.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-DaE5QfID.js → watch-sse-pool-CHnEHgBL.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +765 -765
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-CY_peY26.js +0 -1
  405. package/dist/client/assets/agent-deck-BO0opKup.js +0 -1
  406. package/dist/client/assets/agent-experiments-CW7C-fZV.js +0 -1
  407. package/dist/client/assets/agent-file-DvQOcO5j.js +0 -1
  408. package/dist/client/assets/agent-library-BOVPDlx0.js +0 -1
  409. package/dist/client/assets/agent-library-file-CwKgVo3C.js +0 -1
  410. package/dist/client/assets/agent-overview-BlpKGy6_.js +0 -1
  411. package/dist/client/assets/agent-settings-CfA0v4u2.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-C0aN3J0F.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-DFf7AvSd.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-DuAYz352.js +0 -1
  415. package/dist/client/assets/agent-view-Dn0R3JvN.js +0 -1
  416. package/dist/client/assets/api-keys-Cfgf_CFf.js +0 -1
  417. package/dist/client/assets/chat-context-P9WWU84F.js +0 -44
  418. package/dist/client/assets/library-_WNCXPDS.js +0 -1
  419. package/dist/client/assets/plan-DQJ8rFRb.js +0 -1
  420. package/dist/client/assets/plan-page-DrTD0TsJ.js +0 -6
  421. package/dist/client/assets/project-reports-C7WT1YdD.js +0 -1
  422. package/dist/client/assets/project-tasks-DmIKhvKo.js +0 -1
  423. package/dist/client/assets/record-editor-DA6Q-jo_.js +0 -1
  424. package/dist/client/assets/reports-CxlZrs39.js +0 -1
  425. package/dist/client/assets/repositories-D9MHG-uk.js +0 -1
  426. package/dist/client/assets/route-ClMamn6O.js +0 -1
  427. package/dist/client/assets/schema-BXI5WQ8i.js +0 -1
  428. package/dist/client/assets/settings-tab-C6vXsH9X.js +0 -1
  429. package/dist/client/assets/site-editor-DOVMxVDH.js +0 -1
  430. package/dist/client/assets/tasks-CgHumZoi.js +0 -1
  431. package/dist/client/assets/use-ai-providers-CPLEUkQr.js +0 -1
  432. package/dist/client/assets/use-ask-in-chat-BFd6fUkH.js +0 -1
  433. package/dist/client/assets/use-blocks-v8-project-DfywwZ6H.js +0 -1
  434. package/dist/client/assets/use-blog-view-L6u-6Gn9.js +0 -1
  435. package/dist/client/assets/useInfiniteQuery-D_KzZebo.js +0 -1
  436. package/dist/client/assets/useSuspenseInfiniteQuery-DsyXMTZy.js +0 -1
@@ -0,0 +1 @@
1
+ import{c as m,j as i}from"./index-BAkS3I9t.js";import{ChatLayout as p}from"./index-C0knVPih.js";import{C as e,P as a}from"./plan-page-Bs_KN9xq.js";import{u as n}from"./use-organization-settings-CK7vcd9v.js";import"./use-mobile-U0e6QGNo.js";import"./tooltip-Duum-wbC.js";import"./index-BXsKfYZJ.js";import"./MessageCircle01-BpQQiBmH.js";import"./XClose-DhprECXU.js";import"./thread-button-DJivMuaE.js";import"./use-sidebar-collapsed-CRNsdAbB.js";import"./sheet-H_DS9XJb.js";import"./use-chat-layout-state-BHHHG0at.js";import"./use-panel-navigate-DcQ09zcF.js";import"./thread-route-CO4GyP6M.js";import"./use-project-scope-DrIhuPRp.js";import"./repository-binding-3s1-jerc.js";import"./use-mcp-client-hdH8Uz6-.js";import"./auth-xKzEv0UZ.js";import"./toolbar-icon-button-CkaO9hY_.js";import"./use-in-settings-B3WNh2Ct.js";import"./resizable-CifYESKN.js";import"./route-page-header-Bt0DzG3W.js";import"./LayoutLeft-NdGA068i.js";import"./use-current-view-BveVb2BS.js";import"./agent-icon-BULE2fWe.js";import"./AlertCircle-CMQV10zH.js";import"./UserCheck01-CgjnWNg9.js";import"./Tool01-CcGB7LBy.js";import"./ArrowUp-BBzcACTp.js";import"./ArrowLeft-C8Ca9SGj.js";import"./ArrowRight-D_qjUhKl.js";import"./BookOpen01-rTD8nhQf.js";import"./Globe04-B8ATzfZn.js";import"./CheckCircle-Dsrl0sYA.js";import"./ChevronDown-C50rJcMj.js";import"./ChevronSelectorVertical-Djt3ttKm.js";import"./ChevronUp-D_FfEHpT.js";import"./UserSquare-BEv7rm2k.js";import"./LinkBroken01-DdYCDQYH.js";import"./CreditCard01-C86YFFFO.js";import"./File02-Bqga0RpU.js";import"./SwitchHorizontal01-B39ZJ4UZ.js";import"./Eye-B6cCPf8y.js";import"./Fingerprint04-e81t2Rsp.js";import"./Image01-BhuNuoo8.js";import"./Key01-DgTKBiC1.js";import"./Minus-DgevTSUu.js";import"./Monitor01-QPUul6iy.js";import"./Sun-D-TVq6e8.js";import"./Play-B7Twjw53.js";import"./Plus-SDHe97GR.js";import"./SearchMd-BjPfVKIV.js";import"./ShoppingBag01-BOP8iPvg.js";import"./Trash01-Dd6dddL6.js";import"./Upload01-Ceg_L_zO.js";import"./Users01-CDMnI452.js";import"./Zap-CxCLKK5S.js";import"./badge-CFl-sPcD.js";import"./textarea-Dyd14nGh.js";import"./shell-layout-Br0U0ibo.js";import"./use-deployment-admin-9g3NnFUn.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BwrJDiul.js";import"./thread-intent-Bc3EWL8B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CHnEHgBL.js";import"./task-board-_VqItTnn.js";import"./schema-CFHK_oTc.js";import"./session-runtime-CKIKfAeL.js";import"./command-Bx6bzwV3.js";import"./index-C9tmAxLB.js";import"./integration-icon-xC728oQA.js";import"./project-icon-DzLoogsD.js";import"./use-navigate-to-agent-D9o_GRS4.js";import"./use-debounced-value-DfrfrzHX.js";import"./new-project-dialog-CJIzW540.js";import"./label-C7M6CeY4.js";import"./repository-picker-C6LBSgFD.js";import"./github-icon-BiXr0BnT.js";import"./useInfiniteQuery-D_OScDhL.js";import"./infiniteQueryObserver-BjwRt0P7.js";import"./collection-search-BMrWPTLQ.js";import"./new-project-store-CUMGMx8W.js";import"./legacy-admin-welcome-dialog-BdilK4Du.js";import"./drawer-DXadnv_8.js";import"./required-auth-layout-msTgMG3w.js";import"./use-view-draft-kind-ZpRr9xSn.js";import"./use-blog-view-D_th-kMW.js";import"./use-org-sso-Cy23Rsh-.js";import"./chat-context-5XiEKH4L.js";import"./use-entitlements-DfsP8gtu.js";import"./use-ai-providers-jcWnR4kL.js";import"./use-decopilot-events-Df7BUQ9K.js";import"./use-org-fs-DlJPLDns.js";import"./index-De5CWr6j.js";import"./input-KiZyceF0.js";import"./usage-stats-CG0HF4aR.js";import"./utils-CVEq3hMx.js";import"./markdown-7s6OBK-6.js";import"./use-copy-B0bJTc_A.js";import"./gateway-client-7v27Q-DB.js";import"./form-DC0J7PuZ.js";import"./icon-button-CrmRSiE7.js";import"./file-type-icon-BSoZy34z.js";import"./chat-draft-B6RBQpJw.js";import"./use-voice-input-DGpNCylm.js";import"./popover-zN1hNT-L.js";import"./index-DLFVDiMO.js";import"./checkbox-8SyXZvGW.js";import"./select-DWaAXd8R.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./tabs-yUzyAuHo.js";import"./active-indicator-CCMhAsc_.js";import"./use-deco-credits-Bg3ufOSK.js";import"./toggle-group-D587KudN.js";import"./input-DyQNdUEN.js";import"./suggestion-D8jM7QP6.js";import"./use-mcp-prompts-Bo4GYlhV.js";import"./question-004-sINsf4GQ.js";import"./feature-paywall-Dob_ExVf.js";import"./plan-ladder-CV9v5egR.js";import"./add-connection-dialog-DnPaZnDA.js";import"./extract-connection-data-qg3jBD1i.js";import"./metadata-D72DunRR.js";import"./connection-BlQeEUPX.js";import"./url-slug-Bxh093Yo.js";import"./connection-card-C3Cm4Vsr.js";import"./connection-slug-CavXizqw.js";import"./use-connection-qfJQ-1Sx.js";import"./schema-D1fWL_Uz.js";import"./connection-form-helpers-B16n6soh.js";import"./authenticate-and-persist-oauth-CKZj1IUu.js";import"./mcp-oauth-Br6rXuZJ.js";import"./mcp-oauth-XaS9J9tP.js";import"./collection-tabs-D9CZUNPJ.js";import"./use-infinite-scroll-zbNj6V3y.js";import"./useSuspenseInfiniteQuery-B8OZl3RL.js";import"./use-task-board-items-DpI5X1-L.js";import"./pair-DXYob3uY.js";import"./collapsible-DRJg67rf.js";import"./task-key-HCYxchZ-.js";import"./config-CReIzLqM.js";import"./task-route-DkFPGqqO.js";import"./project-index-BeB0p8jY.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DG3_Q3ZF.js";import"./types-93zYNLaG.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./use-thread-outputs-BXlCD20Z.js";import"./content-changes-C1IdGdFF.js";import"./agent-capabilities-CmfwlzZU.js";import"./use-date-fns-locale-LScEMdLm.js";function mr(){const o=m.c(2),r=n("plan_page_enabled");let t;return o[0]!==r?(t=i.jsx(p.Content,{children:r?i.jsx(a,{}):i.jsx(e,{kind:"plan"})}),o[0]=r,o[1]=t):t=o[1],t}export{mr as default};
@@ -1 +1 @@
1
- import{c as f,a6 as g,an as P,K as _,i as y,m as h,j as d}from"./index-h5M7_u6d.js";import{u as A}from"./use-entitlements-CZg-IfPI.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,an as P,K as _,i as y,m as h,j as d}from"./index-BAkS3I9t.js";import{u as A}from"./use-entitlements-DfsP8gtu.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};
@@ -0,0 +1,6 @@
1
+ import{c as M,b as L,j as n,n as Q,m as Y,B,r as F,aJ as ee,aK as X,bn as we,ct as Ne,bF as ye,an as Se,a6 as _e,E as V,ex as me,a as ke,av as Pe,t as Ce}from"./index-BAkS3I9t.js";import{o as Ie,bp as Ae,a as $e,aq as qe}from"./agent-icon-BULE2fWe.js";import{i as se,s as De}from"./UserSquare-BEv7rm2k.js";import{B as fe}from"./badge-CFl-sPcD.js";import{i as Ee}from"./ArrowLeft-C8Ca9SGj.js";import{i as ne}from"./ArrowRight-D_qjUhKl.js";import{T as ie}from"./textarea-Dyd14nGh.js";import{a as Te}from"./shell-layout-Br0U0ibo.js";import{a7 as T,a8 as Me,c as pe,a9 as Oe,aa as Re,ab as ze,ac as Ge,ad as Be}from"./chat-context-5XiEKH4L.js";import"./index-De5CWr6j.js";import{g as xe,h as Fe,i as Le}from"./use-organization-settings-CK7vcd9v.js";import{d as ae}from"./delay-CnY5UFtP.js";import{u as Ke,f as Ue}from"./use-date-fns-locale-LScEMdLm.js";import{u as Xe}from"./use-org-fs-DlJPLDns.js";import{P as He}from"./schema-CFHK_oTc.js";const Je={plan:{heading:"home.comingSoon.planHeading",description:"home.comingSoon.planDescription",points:[{Icon:se,labelKey:"home.comingSoon.planGoals",tone:"bg-chart-2/15 text-chart-2"},{Icon:Ie,labelKey:"home.comingSoon.planTasks",tone:"bg-chart-1/15 text-chart-1"},{Icon:Ae,labelKey:"home.comingSoon.planProgress",tone:"bg-chart-4/15 text-chart-4"}]}};function We(t){const e=M.c(4),{className:l}=t;let a;e[0]!==l?(a=Y("block h-2 rounded-full bg-muted",l),e[0]=l,e[1]=a):a=e[1];let s;return e[2]!==a?(s=n.jsx("span",{className:a}),e[2]=a,e[3]=s):s=e[3],s}const Qe=[{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 Ve(){const t=M.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx("div",{className:"flex flex-col gap-5",children:Qe.map(Ye)}),t[0]=e):e=t[0],e}function Ye(t){return n.jsxs("div",{className:"flex flex-col gap-2.5",children:[n.jsxs("div",{className:"flex items-center gap-2.5",children:[n.jsx("span",{className:"flex size-6 items-center justify-center rounded-md bg-muted text-muted-foreground",children:n.jsx(se,{size:14})}),n.jsx(We,{className:t.title}),n.jsx("span",{className:"ml-auto text-xs font-medium tabular-nums text-muted-foreground",children:t.value})]}),n.jsx("div",{className:"h-1.5 overflow-hidden rounded-full bg-muted",children:n.jsx("div",{className:Y("h-full rounded-full",t.fill,t.tone)})})]},t.value)}function Vt(t){const e=M.c(30),{kind:l}=t,a=L(),s=Je[l];let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx("div",{className:"absolute inset-x-10 -top-4 h-40 rounded-full bg-chart-2/20 blur-3xl"}),e[0]=i):i=e[0];let c;e[1]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsxs("div",{"aria-hidden":!0,className:"relative w-full max-w-md",children:[i,n.jsx("div",{className:"relative surface p-6 [mask-image:linear-gradient(to_bottom,black_65%,transparent)]",children:n.jsx(Ve,{})})]}),e[1]=c):c=e[1];let r;e[2]!==a?(r=a("home.comingSoon.badge"),e[2]=a,e[3]=r):r=e[3];let d;e[4]!==r?(d=n.jsx(fe,{variant:"muted",children:r}),e[4]=r,e[5]=d):d=e[5];let u;e[6]!==s.heading||e[7]!==a?(u=a(s.heading),e[6]=s.heading,e[7]=a,e[8]=u):u=e[8];let o;e[9]!==u?(o=n.jsx("h1",{className:"text-2xl font-medium text-balance text-foreground",children:u}),e[9]=u,e[10]=o):o=e[10];let m;e[11]!==s.description||e[12]!==a?(m=a(s.description),e[11]=s.description,e[12]=a,e[13]=m):m=e[13];let f;e[14]!==m?(f=n.jsx("p",{className:"max-w-md text-sm text-pretty text-muted-foreground",children:m}),e[14]=m,e[15]=f):f=e[15];let p;e[16]!==d||e[17]!==o||e[18]!==f?(p=n.jsxs("div",{className:"flex flex-col items-center gap-3 text-center",children:[d,o,f]}),e[16]=d,e[17]=o,e[18]=f,e[19]=p):p=e[19];let h;if(e[20]!==s.points||e[21]!==a){let v;e[23]!==a?(v=b=>{const{Icon:N,labelKey:S,tone:$}=b;return n.jsxs("li",{className:"flex items-center gap-3 surface p-4 sm:flex-col sm:items-start",children:[n.jsx("span",{className:Y("flex size-9 shrink-0 items-center justify-center rounded-lg",$),children:n.jsx(N,{size:18})}),n.jsx("span",{className:"text-sm text-foreground",children:a(S)})]},S)},e[23]=a,e[24]=v):v=e[24],h=s.points.map(v),e[20]=s.points,e[21]=a,e[22]=h}else h=e[22];let g;e[25]!==h?(g=n.jsx("ul",{className:"grid w-full gap-3 sm:grid-cols-3",children:h}),e[25]=h,e[26]=g):g=e[26];let x;return e[27]!==g||e[28]!==p?(x=n.jsx(Q,{children:n.jsx(Q.Content,{children:n.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:[c,p,g]})})}),e[27]=g,e[28]=p,e[29]=x):x=e[29],x}const Ze=["plan.guide.thinking1","plan.guide.thinking2","plan.guide.thinking3","plan.guide.thinking4","plan.guide.thinking5","plan.guide.thinking6","plan.guide.thinking7","plan.guide.thinking8"],et=["plan.guide.building1","plan.guide.building2","plan.guide.building3"],re=900;function oe(t){const e=M.c(13),{phrases:l,offset:a,building:s}=t,i=s===void 0?!1:s,c=L(),r=Te(re),d=l[(Math.floor(r/re)+a)%l.length];let u;e[0]!==i?(u=i?n.jsx("div",{className:"plan-guide-tiles","aria-hidden":"true",children:Array.from({length:9},tt)}):n.jsxs("div",{className:"plan-guide-dots","aria-hidden":"true",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]}),e[0]=i,e[1]=u):u=e[1];let o;e[2]!==d||e[3]!==c?(o=c(d),e[2]=d,e[3]=c,e[4]=o):o=e[4];let m;e[5]!==o?(m=n.jsx("span",{className:"plan-guide-shimmer",children:o}),e[5]=o,e[6]=m):m=e[6];let f;e[7]!==d||e[8]!==m?(f=n.jsx("p",{className:"plan-guide-reveal text-base",children:m},d),e[7]=d,e[8]=m,e[9]=f):f=e[9];let p;return e[10]!==u||e[11]!==f?(p=n.jsxs("div",{role:"status","aria-live":"polite",className:"flex flex-col items-center gap-5 animate-in fade-in-0 duration-300 motion-reduce:animate-none",children:[u,f]}),e[10]=u,e[11]=f,e[12]=p):p=e[12],p}function tt(t,e){return n.jsx("span",{style:{animationDelay:`${e*90}ms`}},e)}function st({text:t,delay:e}){return t.split(/\s+/).map((l,a)=>n.jsxs(F.Fragment,{children:[n.jsx("span",{className:"plan-guide-reveal inline-block",style:{animationDelay:`${e+a*he}ms`},children:l})," "]},a))}const he=45,nt=350;function it(t){const e=M.c(71),{view:l,onAnswer:a}=t,s=L(),[i,c]=F.useState(""),[r,d]=F.useState(null);let u;e[0]!==i?(u=i.trim(),e[0]=i,e[1]=u):u=e[1];const o=u.length>0,m=l.reaction?nt:0;let f;if(e[2]!==l.question.text){let P;e[4]===Symbol.for("react.memo_cache_sentinel")?(P=/\s+/,e[4]=P):P=e[4],f=l.question.text.split(P),e[2]=l.question.text,e[3]=f}else f=e[3];const p=m+f.length*he+150,h=p+l.question.options.length*70+100;let g;e[5]!==r||e[6]!==a?(g=P=>{if(r===null){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){a(P);return}d(P)}},e[5]=r,e[6]=a,e[7]=g):g=e[7];const x=g;let v;e[8]!==i||e[9]!==x||e[10]!==o?(v=P=>{P.preventDefault(),o&&x(i)},e[8]=i,e[9]=x,e[10]=o,e[11]=v):v=e[11];const b=v;let N;e[12]!==r||e[13]!==a?(N=P=>{P.target===P.currentTarget&&r!==null&&a(r)},e[12]=r,e[13]=a,e[14]=N):N=e[14];const S=r!==null&&"animate-out fade-out-0 slide-out-to-top-4 fill-mode-forwards duration-300 delay-150";let $;e[15]!==S?($=Y("flex w-full flex-col gap-6",S),e[15]=S,e[16]=$):$=e[16];let C;e[17]!==l.reaction?(C=l.reaction&&n.jsx("p",{className:"plan-guide-reveal text-base text-muted-foreground",children:l.reaction}),e[17]=l.reaction,e[18]=C):C=e[18];let q;e[19]!==m||e[20]!==l.question.text?(q=n.jsx("h2",{className:"text-2xl font-medium text-balance text-foreground md:text-3xl",children:n.jsx(st,{text:l.question.text,delay:m})}),e[19]=m,e[20]=l.question.text,e[21]=q):q=e[21];let _;e[22]!==C||e[23]!==q?(_=n.jsxs("div",{className:"flex flex-col gap-3",children:[C,q]}),e[22]=C,e[23]=q,e[24]=_):_=e[24];let I;e[25]!==x||e[26]!==r||e[27]!==p||e[28]!==l.question.options?(I=l.question.options.length>0&&n.jsx("div",{className:"flex flex-wrap gap-2",children:l.question.options.map((P,ve)=>n.jsx(B,{type:"button",variant:"outline","aria-pressed":r===P,className:Y("h-auto rounded-full px-4 py-2 text-left whitespace-normal transition-[background-color,color,opacity,transform] duration-200 hover:-translate-y-0.5 animate-in fade-in-0 slide-in-from-bottom-2 fill-mode-both duration-500 motion-reduce:animate-none motion-reduce:hover:translate-y-0",r===P&&"border-foreground bg-foreground text-background hover:bg-foreground hover:text-background",r!==null&&r!==P&&"opacity-30"),style:{animationDelay:`${p+ve*70}ms`},onClick:()=>x(P),children:P},P))}),e[25]=x,e[26]=r,e[27]=p,e[28]=l.question.options,e[29]=I):I=e[29];const j=`${h}ms`;let w;e[30]!==j?(w={animationDelay:j},e[30]=j,e[31]=w):w=e[31];let k;e[32]!==s?(k=s("plan.guide.answerLabel"),e[32]=s,e[33]=k):k=e[33];let y;e[34]!==s?(y=s("plan.guide.answerPlaceholder"),e[34]=s,e[35]=y):y=e[35];let D;e[36]===Symbol.for("react.memo_cache_sentinel")?(D=P=>c(P.target.value),e[36]=D):D=e[36];let A;e[37]!==b?(A=P=>{P.key==="Enter"&&(P.metaKey||P.ctrlKey)&&b(P)},e[37]=b,e[38]=A):A=e[38];let O;e[39]!==i||e[40]!==k||e[41]!==y||e[42]!==A?(O=n.jsx(ie,{autoFocus:!0,"aria-label":k,placeholder:y,value:i,onChange:D,onKeyDown:A,className:"min-h-24 text-[15px] transition-shadow"}),e[39]=i,e[40]=k,e[41]=y,e[42]=A,e[43]=O):O=e[43];let R;e[44]!==x?(R=()=>x(""),e[44]=x,e[45]=R):R=e[45];let z;e[46]!==s?(z=s("plan.guide.skip"),e[46]=s,e[47]=z):z=e[47];let G;e[48]!==R||e[49]!==z?(G=n.jsx(B,{type:"button",variant:"ghost",onClick:R,children:z}),e[48]=R,e[49]=z,e[50]=G):G=e[50];const K=!o;let E;e[51]!==s?(E=s("plan.guide.continue"),e[51]=s,e[52]=E):E=e[52];let U;e[53]===Symbol.for("react.memo_cache_sentinel")?(U=n.jsx(ne,{className:"transition-transform duration-200 group-hover:translate-x-0.5"}),e[53]=U):U=e[53];let H;e[54]!==K||e[55]!==E?(H=n.jsxs(B,{type:"submit",disabled:K,className:"group transition-all duration-200",children:[E,U]}),e[54]=K,e[55]=E,e[56]=H):H=e[56];let J;e[57]!==G||e[58]!==H?(J=n.jsxs("div",{className:"flex items-center justify-between gap-3",children:[G,H]}),e[57]=G,e[58]=H,e[59]=J):J=e[59];let W;e[60]!==w||e[61]!==O||e[62]!==J?(W=n.jsxs("div",{className:"flex flex-col gap-6 animate-in fade-in-0 fill-mode-both duration-500 motion-reduce:animate-none",style:w,children:[O,J]}),e[60]=w,e[61]=O,e[62]=J,e[63]=W):W=e[63];let Z;return e[64]!==b||e[65]!==_||e[66]!==I||e[67]!==W||e[68]!==N||e[69]!==$?(Z=n.jsxs("form",{onSubmit:b,onAnimationEnd:N,className:$,children:[_,I,W]}),e[64]=b,e[65]=_,e[66]=I,e[67]=W,e[68]=N,e[69]=$,e[70]=Z):Z=e[70],Z}function lt(t){const e=M.c(3),{state:l}=t,a=l.view.phase==="asking",s=l.answers.length+(a?1:0);if(s===0)return null;let i;return e[0]!==a||e[1]!==s?(i=n.jsx("div",{className:"ml-auto flex items-center gap-1.5","aria-hidden":"true",children:Array.from({length:s},(c,r)=>n.jsx("span",{className:Y("h-1.5 rounded-full transition-all duration-500 animate-in zoom-in-0 fade-in-0 motion-reduce:animate-none",a&&r===s-1?"w-5 bg-foreground":"w-1.5 bg-muted-foreground/40")},r))}),e[0]=a,e[1]=s,e[2]=i):i=e[2],i}function at(t){const e=M.c(7),{state:l,onAnswer:a}=t,{view:s}=l;switch(s.phase){case"thinking":{const i=l.step*3+l.idea.length;let c;return e[0]!==i?(c=n.jsx(oe,{phrases:Ze,offset:i}),e[0]=i,e[1]=c):c=e[1],c}case"asking":{let i;return e[2]!==a||e[3]!==l.step||e[4]!==s?(i=n.jsx(it,{view:s,onAnswer:a},l.step),e[2]=a,e[3]=l.step,e[4]=s,e[5]=i):i=e[5],i}case"building":{let i;return e[6]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(oe,{phrases:et,offset:0,building:!0}),e[6]=i):i=e[6],i}}}function rt({guide:t}){const e=L();return n.jsxs("div",{ref:t.screenRef,className:"flex h-full min-h-0 flex-col animate-in fade-in-0 duration-300 motion-reduce:animate-none",children:[n.jsxs("div",{className:"flex items-center gap-3 px-4 pt-4 md:px-8 animate-in fade-in-0 slide-in-from-top-1 duration-500 motion-reduce:animate-none",children:[n.jsxs(B,{variant:"ghost",size:"sm",onClick:t.cancel,children:[n.jsx(Ee,{}),e("plan.guide.back")]}),n.jsxs("p",{className:"min-w-0 truncate text-sm text-muted-foreground",children:[n.jsx("span",{className:"text-meta mr-2",children:e("plan.guide.yourIdea")}),t.state.idea]}),n.jsx(lt,{state:t.state})]}),n.jsx("div",{className:"flex min-h-0 flex-1 overflow-auto",children:n.jsx("div",{className:"m-auto flex w-full max-w-2xl justify-center px-4 py-10 md:px-8",children:n.jsx(at,{state:t.state,onAnswer:t.answer})})})]})}function ot(t){const e=M.c(34),{draft:l,onResume:a,onDiscard:s}=t,i=L();let c;e[0]!==i?(c=i("plan.guide.resume.heading"),e[0]=i,e[1]=c):c=e[1];let r;e[2]!==i?(r=i("plan.guide.resume.heading"),e[2]=i,e[3]=r):r=e[3];let d;e[4]!==r?(d=n.jsx("h2",{className:"text-sm font-medium text-foreground",children:r}),e[4]=r,e[5]=d):d=e[5];let u;e[6]!==i?(u=i("plan.guide.resume.description"),e[6]=i,e[7]=u):u=e[7];let o;e[8]!==u?(o=n.jsx("p",{className:"text-sm text-muted-foreground",children:u}),e[8]=u,e[9]=o):o=e[9];let m;e[10]!==d||e[11]!==o?(m=n.jsxs("div",{className:"flex flex-col gap-1",children:[d,o]}),e[10]=d,e[11]=o,e[12]=m):m=e[12];let f;e[13]!==l.idea?(f=n.jsx("p",{className:"line-clamp-2 text-sm text-foreground",children:l.idea}),e[13]=l.idea,e[14]=f):f=e[14];let p;e[15]!==i?(p=i("plan.guide.resume.discard"),e[15]=i,e[16]=p):p=e[16];let h;e[17]!==s||e[18]!==p?(h=n.jsx(B,{type:"button",variant:"ghost",size:"sm",onClick:s,children:p}),e[17]=s,e[18]=p,e[19]=h):h=e[19];let g;e[20]!==i?(g=i("plan.guide.resume.continue"),e[20]=i,e[21]=g):g=e[21];let x;e[22]===Symbol.for("react.memo_cache_sentinel")?(x=n.jsx(ne,{}),e[22]=x):x=e[22];let v;e[23]!==a||e[24]!==g?(v=n.jsxs(B,{type:"button",size:"sm",onClick:a,children:[g,x]}),e[23]=a,e[24]=g,e[25]=v):v=e[25];let b;e[26]!==v||e[27]!==h?(b=n.jsxs("div",{className:"flex justify-end gap-2",children:[h,v]}),e[26]=v,e[27]=h,e[28]=b):b=e[28];let N;return e[29]!==c||e[30]!==b||e[31]!==m||e[32]!==f?(N=n.jsxs("section",{"aria-label":c,className:"flex flex-col gap-3 rounded-xl border border-border bg-muted/40 p-4",children:[m,f,b]}),e[29]=c,e[30]=b,e[31]=m,e[32]=f,e[33]=N):N=e[33],N}function ct(t,e){const l=e.idea.trim(),a=e.objective?.trim(),s=e.casePath,i=a?t("plan.prompt.withObjective",{idea:l,objective:a,casePath:s}):t("plan.prompt.withoutObjective",{idea:l,casePath:s});if(!e.answers)return i;const c=e.answers.map(({question:r,answer:d})=>`- ${r.trim()}
2
+ ${d.trim()||t("plan.prompt.skipped")}`).join(`
3
+ `);return`${i}
4
+
5
+ ${c?t("plan.prompt.guidedAnswers",{answers:c}):t("plan.prompt.guidedNothing")}`}const ge="studio:plan-case-seed:",dt=ee({title:X().min(1).max(T.title),objective:X().max(T.text).nullable(),request:X().min(1).max(T.text)});function ut(t){const e=t.trim().split(`
6
+ `)[0]??"";return e.length>T.title?`${e.slice(0,T.title-1)}…`:e}function mt(t,e,l){const a=l.request.trim().slice(0,T.text),s={title:ut(l.title?.trim()||a),objective:l.objective?.trim().slice(0,T.text)||null,request:a};try{t.setItem(ge+e,JSON.stringify(s))}catch{}}function Yt(t,e){let l;try{l=t.getItem(ge+e)}catch{return null}if(!l)return null;let a;try{a=JSON.parse(l)}catch{return null}const s=dt.safeParse(a);return s.success?Me(s.data):null}const ft="studio:plan-guide-draft:",pt=10080*60*1e3,be=4e3,je=10,xt=ee({idea:X().trim().min(1).max(be),answers:ye(ee({question:X().min(1).max(T.item),answer:X().max(T.text)})).max(je),title:X().min(1).max(T.title).nullable(),done:ee({guided:Ne()}).nullable(),savedAt:we()}),le=t=>ft+t;function ht(t,e,l,a=Date.now()){const s={idea:l.idea.slice(0,be),answers:l.answers.slice(0,je).map(({question:i,answer:c})=>({question:i.slice(0,T.item),answer:c.slice(0,T.text)})),title:l.title?.slice(0,T.title)||null,done:l.view.phase==="building"?{guided:l.view.guided}:null,savedAt:a};try{t.setItem(le(e),JSON.stringify(s))}catch{}}function ce(t,e,l=Date.now()){let a;try{a=t.getItem(le(e))}catch{return null}if(!a)return null;let s;try{s=JSON.parse(a)}catch{s=null}const i=xt.safeParse(s);return!i.success||l-i.data.savedAt>pt?(te(t,e),null):i.data}function te(t,e){try{t.removeItem(le(e))}catch{}}function gt(t){return{step:t.answers.length,idea:t.idea,answers:t.answers,title:t.title,view:t.done?{phase:"building",guided:t.done.guided}:{phase:"thinking"}}}function bt(t){return{step:0,idea:t.trim(),answers:[],title:null,view:{phase:"thinking"}}}function de(t,e){if(e.step!==t.step)return t;switch(e.type){case"answered":return t.view.phase!=="asking"?t:{...t,step:t.step+1,answers:[...t.answers,{question:t.view.question.text,answer:e.answer.trim()}],view:{phase:"thinking"}};case"resolved":{if(t.view.phase!=="thinking")return t;const{question:l,reaction:a,title:s}=e.result;return{...t,title:s??t.title,view:l?{phase:"asking",question:l,reaction:a}:{phase:"building",guided:!0}}}case"failed":return t.view.phase!=="thinking"?t:{...t,view:{phase:"building",guided:!1}}}}function jt(t){return t.view.phase==="building"&&t.view.guided||t.answers.length>0?t.answers:void 0}const vt=1600,wt=2200;function Nt(){const t=M.c(37),e=L(),l=Se(),{createTaskWithMessage:a}=pe(),s=xe()?.statement??null,{org:i}=_e(),[c,r]=F.useState(null);let d;t[0]!==i.id?(d=()=>ce(localStorage,i.id),t[0]=i.id,t[1]=d):d=t[1];const[u,o]=F.useState(d),m=F.useRef(null),f=F.useRef(!1);let p;t[2]!==i.id?(p=j=>{r(j),ht(localStorage,i.id,j)},t[2]=i.id,t[3]=p):p=t[3];const h=p;let g;t[4]!==a||t[5]!==s||t[6]!==i.id||t[7]!==e?(g=async j=>{const w=jt(j);V("plan_guide_done",{has_objective:!!s,questions:j.answers.length,skipped:j.answers.filter(St).length,guided:j.view.phase==="building"&&j.view.guided});const k=crypto.randomUUID(),y=Oe(k);mt(sessionStorage,y,{objective:s,request:j.idea,title:j.title}),await a({id:k,tabId:me(y),message:{parts:[{type:"text",text:ct(e,{idea:j.idea,objective:s,casePath:Re(y),...w?{answers:w}:{}})}]}})&&te(localStorage,i.id)},t[4]=a,t[5]=s,t[6]=i.id,t[7]=e,t[8]=g):g=t[8];const x=g;let v;t[9]!==s||t[10]!==x||t[11]!==h||t[12]!==l?(v=async j=>{m.current?.abort();const w=new AbortController;m.current=w;const{signal:k}=w;h(j);let y;try{const[A]=await Promise.all([l.call("PLAN_CASE_NEXT_QUESTION",{idea:j.idea.slice(0,T.text),objective:s,answers:j.answers.map(yt)}),ae(vt,{signal:k})]);y={type:"resolved",step:j.step,result:A}}catch{y={type:"failed",step:j.step}}if(k.aborted)return;const D=de(j,y);if(h(D),D.view.phase==="building"){try{await ae(wt,{signal:k})}catch{return}m.current=null,f.current&&(r(null),x(D))}},t[9]=s,t[10]=x,t[11]=h,t[12]=l,t[13]=v):v=t[13];const b=v;let N;t[14]!==x||t[15]!==i.id||t[16]!==b?(N=()=>{const j=ce(localStorage,i.id);if(o(null),!j)return;const w=gt(j);if(V("plan_guide_resumed",{questions:w.answers.length,done:w.view.phase==="building"}),w.view.phase==="building"){x(w);return}b(w)},t[14]=x,t[15]=i.id,t[16]=b,t[17]=N):N=t[17];let S;t[18]!==i.id?(S=()=>{te(localStorage,i.id),o(null)},t[18]=i.id,t[19]=S):S=t[19];let $;t[20]===Symbol.for("react.memo_cache_sentinel")?($=j=>{f.current=j!==null},t[20]=$):$=t[20];let C;t[21]!==s||t[22]!==b?(C=j=>{j.trim()&&(V("plan_idea_submitted",{has_objective:!!s}),o(null),b(bt(j)))},t[21]=s,t[22]=b,t[23]=C):C=t[23];let q;t[24]!==c||t[25]!==b?(q=j=>{if(!c)return;const w=de(c,{type:"answered",step:c.step,answer:j});w!==c&&(V("plan_guide_question_answered",{step:c.step,skipped:!j.trim()}),b(w))},t[24]=c,t[25]=b,t[26]=q):q=t[26];let _;t[27]!==i.id?(_=()=>{m.current?.abort(),m.current=null,te(localStorage,i.id),r(null)},t[27]=i.id,t[28]=_):_=t[28];let I;return t[29]!==u||t[30]!==c||t[31]!==N||t[32]!==S||t[33]!==C||t[34]!==q||t[35]!==_?(I={state:c,saved:u,resume:N,discard:S,screenRef:$,start:C,answer:q,cancel:_},t[29]=u,t[30]=c,t[31]=N,t[32]=S,t[33]=C,t[34]=q,t[35]=_,t[36]=I):I=t[36],I}function yt(t){const{question:e,answer:l}=t;return{question:e.slice(0,T.item),answer:l.slice(0,T.text)}}function St(t){return!t.answer}const _t=20,kt={framing:"plan.case.status.framing",building:"plan.case.status.building",ready:"plan.case.status.ready"};function Pt(t){const e=M.c(28),{entry:l,threadId:a}=t,s=L(),i=Ke(),{openTask:c}=pe(),r=Ge(l.path),d=r.data?.value;let u;e[0]!==l.path||e[1]!==c||e[2]!==a?(u=()=>c(a,{tabId:me(l.path)}),e[0]=l.path,e[1]=c,e[2]=a,e[3]=u):u=e[3];let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx($e,{className:"size-4 shrink-0 text-muted-foreground"}),e[4]=o):o=e[4];let m;e[5]!==r.isPending||e[6]!==s||e[7]!==d?.title?(m=d?.title??(r.isPending?"…":s("plan.cases.unreadable")),e[5]=r.isPending,e[6]=s,e[7]=d?.title,e[8]=m):m=e[8];let f;e[9]!==m?(f=n.jsx("span",{className:"truncate text-sm font-medium text-foreground",children:m}),e[9]=m,e[10]=f):f=e[10];let p;e[11]!==l.updatedAt||e[12]!==i||e[13]!==s?(p=s("plan.cases.updated",{when:Ue(new Date(l.updatedAt),{addSuffix:!0,locale:i})}),e[11]=l.updatedAt,e[12]=i,e[13]=s,e[14]=p):p=e[14];let h;e[15]!==p?(h=n.jsx("span",{className:"text-xs text-muted-foreground",children:p}),e[15]=p,e[16]=h):h=e[16];let g;e[17]!==f||e[18]!==h?(g=n.jsxs("span",{className:"flex min-w-0 flex-1 flex-col",children:[f,h]}),e[17]=f,e[18]=h,e[19]=g):g=e[19];let x;e[20]!==s||e[21]!==d?(x=d&&n.jsx(fe,{variant:d.status==="ready"?"success":"agent",children:s(kt[d.status])}),e[20]=s,e[21]=d,e[22]=x):x=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=n.jsx(Pe,{className:"size-4 shrink-0 text-muted-foreground"}),e[23]=v):v=e[23];let b;return e[24]!==u||e[25]!==g||e[26]!==x?(b=n.jsx("li",{children:n.jsxs("button",{type:"button",onClick:u,className:"flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left hover:bg-accent focus-ring",children:[o,g,x,v]})}),e[24]=u,e[25]=g,e[26]=x,e[27]=b):b=e[27],b}function Ct(){const t=M.c(28),e=L(),{data:l}=ke.useSession(),a=l?.user?.id,s=Xe("home",ze);let i,c,r,d,u;if(t[0]!==s.data||t[1]!==e||t[2]!==a){u=Symbol.for("react.early_return_sentinel");e:{let f;t[8]!==a?(f=b=>{const N=Be(b.path);return b.kind==="file"&&N&&(!b.createdBy||b.createdBy===a)?[{entry:b,threadId:N}]:[]},t[8]=a,t[9]=f):f=t[9];const p=(s.data??[]).flatMap(f).toSorted(At).slice(0,_t);if(p.length===0){u=null;break e}r="flex flex-col gap-3";let h;t[10]!==e?(h=e("plan.cases.heading"),t[10]=e,t[11]=h):h=t[11];let g;t[12]!==h?(g=n.jsx("h2",{className:"text-xl font-medium text-foreground",children:h}),t[12]=h,t[13]=g):g=t[13];let x;t[14]!==e?(x=e("plan.cases.description"),t[14]=e,t[15]=x):x=t[15];let v;t[16]!==x?(v=n.jsx("p",{className:"text-sm text-muted-foreground",children:x}),t[16]=x,t[17]=v):v=t[17],t[18]!==g||t[19]!==v?(d=n.jsxs("div",{className:"flex flex-col gap-1",children:[g,v]}),t[18]=g,t[19]=v,t[20]=d):d=t[20],i="-mx-3 flex flex-col",c=p.map(It)}t[0]=s.data,t[1]=e,t[2]=a,t[3]=i,t[4]=c,t[5]=r,t[6]=d,t[7]=u}else i=t[3],c=t[4],r=t[5],d=t[6],u=t[7];if(u!==Symbol.for("react.early_return_sentinel"))return u;let o;t[21]!==i||t[22]!==c?(o=n.jsx("ul",{className:i,children:c}),t[21]=i,t[22]=c,t[23]=o):o=t[23];let m;return t[24]!==r||t[25]!==d||t[26]!==o?(m=n.jsxs("section",{className:r,children:[d,o]}),t[24]=r,t[25]=d,t[26]=o,t[27]=m):m=t[27],m}function It(t){const{entry:e,threadId:l}=t;return n.jsx(Pt,{entry:e,threadId:l},e.path)}function At(t,e){return e.entry.updatedAt.localeCompare(t.entry.updatedAt)}const $t=[{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 qt(t){const e=M.c(52),{initialIdea:l,onSubmit:a}=t,s=L(),[i,c]=F.useState(l);let r;e[0]!==i?(r=i.trim(),e[0]=i,e[1]=r):r=e[1];const d=r.length>0;let u;e[2]!==i||e[3]!==a||e[4]!==d?(u=A=>{A.preventDefault(),d&&a(i)},e[2]=i,e[3]=a,e[4]=d,e[5]=u):u=e[5];const o=u;let m;e[6]!==s?(m=s("plan.idea.heading"),e[6]=s,e[7]=m):m=e[7];let f;e[8]!==m?(f=n.jsx("h2",{className:"text-xl font-medium text-foreground",children:m}),e[8]=m,e[9]=f):f=e[9];let p;e[10]!==s?(p=s("plan.idea.description"),e[10]=s,e[11]=p):p=e[11];let h;e[12]!==p?(h=n.jsx("p",{className:"text-sm text-pretty text-muted-foreground",children:p}),e[12]=p,e[13]=h):h=e[13];let g;e[14]!==f||e[15]!==h?(g=n.jsxs("div",{className:"flex flex-col gap-1",children:[f,h]}),e[14]=f,e[15]=h,e[16]=g):g=e[16];let x;e[17]!==s?(x=s("plan.idea.label"),e[17]=s,e[18]=x):x=e[18];let v;e[19]!==s?(v=s("plan.idea.placeholder"),e[19]=s,e[20]=v):v=e[20];let b;e[21]===Symbol.for("react.memo_cache_sentinel")?(b=A=>c(A.target.value),e[21]=b):b=e[21];let N;e[22]!==o?(N=A=>{A.key==="Enter"&&(A.metaKey||A.ctrlKey)&&o(A)},e[22]=o,e[23]=N):N=e[23];let S;e[24]!==i||e[25]!==N||e[26]!==x||e[27]!==v?(S=n.jsx(ie,{"aria-label":x,placeholder:v,value:i,onChange:b,onKeyDown:N,className:"min-h-32 text-[15px]"}),e[24]=i,e[25]=N,e[26]=x,e[27]=v,e[28]=S):S=e[28];const $=!d;let C;e[29]!==s?(C=s("plan.idea.submit"),e[29]=s,e[30]=C):C=e[30];let q;e[31]===Symbol.for("react.memo_cache_sentinel")?(q=n.jsx(ne,{}),e[31]=q):q=e[31];let _;e[32]!==$||e[33]!==C?(_=n.jsx("div",{className:"flex justify-end",children:n.jsxs(B,{type:"submit",disabled:$,children:[C,q]})}),e[32]=$,e[33]=C,e[34]=_):_=e[34];let I;e[35]!==o||e[36]!==S||e[37]!==_?(I=n.jsxs("form",{onSubmit:o,className:"flex flex-col gap-3",children:[S,_]}),e[35]=o,e[36]=S,e[37]=_,e[38]=I):I=e[38];let j;e[39]!==s?(j=s("plan.idea.startWith"),e[39]=s,e[40]=j):j=e[40];let w;e[41]!==j?(w=n.jsx("span",{className:"mr-1 text-meta",children:j}),e[41]=j,e[42]=w):w=e[42];let k;e[43]!==s?(k=$t.map(A=>n.jsx(B,{type:"button",variant:"outline",size:"sm",onClick:()=>c(O=>O||s(A.prompt)),children:s(A.label)},A.label)),e[43]=s,e[44]=k):k=e[44];let y;e[45]!==w||e[46]!==k?(y=n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[w,k]}),e[45]=w,e[46]=k,e[47]=y):y=e[47];let D;return e[48]!==I||e[49]!==y||e[50]!==g?(D=n.jsxs("section",{className:"flex flex-col gap-4",children:[g,I,y]}),e[48]=I,e[49]=y,e[50]=g,e[51]=D):D=e[51],D}function Dt(t){return t.found?{kind:"found",statement:t.found.statement,source:t.found.source.label,quote:t.found.quote}:{kind:"missing",message:t.reason==="unavailable"?"plan.objective.findUnavailable":"plan.objective.notFound",read:t.read,unread:t.unread}}function Et(t){const e=M.c(28),{notice:l,draft:a}=t,s=L();if(l.kind==="found"){if(!a)return null;let p;e[0]!==l.quote||e[1]!==l.source||e[2]!==s?(p=s("plan.objective.found",{source:l.source,quote:l.quote}),e[0]=l.quote,e[1]=l.source,e[2]=s,e[3]=p):p=e[3];let h;return e[4]!==p?(h=n.jsx("p",{className:"text-meta",children:p}),e[4]=p,e[5]=h):h=e[5],h}let i;e[6]!==l.message||e[7]!==s?(i=s(l.message),e[6]=l.message,e[7]=s,e[8]=i):i=e[8];let c;e[9]!==i?(c=n.jsx("p",{className:"text-foreground",children:i}),e[9]=i,e[10]=c):c=e[10];let r;e[11]!==l.read||e[12]!==s?(r=l.read.length>0?s("plan.objective.read",{sources:l.read.join(", ")}):s("plan.objective.readNothing"),e[11]=l.read,e[12]=s,e[13]=r):r=e[13];let d;e[14]!==r?(d=n.jsx("p",{children:r}),e[14]=r,e[15]=d):d=e[15];let u;e[16]!==l.unread||e[17]!==s?(u=l.unread.length>0&&n.jsx("p",{children:s("plan.objective.unread",{files:l.unread.join(", ")})}),e[16]=l.unread,e[17]=s,e[18]=u):u=e[18];let o;e[19]!==s?(o=s("plan.objective.connectHint"),e[19]=s,e[20]=o):o=e[20];let m;e[21]!==o?(m=n.jsx("p",{children:o}),e[21]=o,e[22]=m):m=e[22];let f;return e[23]!==c||e[24]!==d||e[25]!==u||e[26]!==m?(f=n.jsxs("div",{className:"flex flex-col gap-1 text-sm text-muted-foreground",children:[c,d,u,m]}),e[23]=c,e[24]=d,e[25]=u,e[26]=m,e[27]=f):f=e[27],f}function ue(t){const e=M.c(60),{initial:l,onDone:a}=t,s=L(),[i,c]=F.useState(l),[r,d]=F.useState(null),u=Fe(),o=Le();let m;e[0]!==i?(m=i.trim(),e[0]=i,e[1]=m):m=e[1];const f=m,p=u.isPending||o.isPending;let h;e[2]!==a||e[3]!==u||e[4]!==s?(h=E=>u.mutate({statement:E},{onSuccess:()=>a?.(),onError:()=>Ce.error(s("plan.objective.saveError"))}),e[2]=a,e[3]=u,e[4]=s,e[5]=h):h=e[5];const g=h;let x;e[6]!==f||e[7]!==g?(x=E=>{E.preventDefault(),f&&g(f)},e[6]=f,e[7]=g,e[8]=x):x=e[8];const v=x;let b;e[9]!==o?(b=()=>{V("plan_objective_find_clicked"),d(null),o.mutate(void 0,{onSuccess:E=>{const U=Dt(E);V("plan_objective_find_answered",{outcome:E.found?"found":E.reason??"not_found"}),U.kind==="found"&&c(U.statement),d(U)},onError:()=>d({kind:"missing",message:"plan.objective.findUnavailable",read:[],unread:[]})})},e[9]=o,e[10]=b):b=e[10];const N=b;let S;e[11]!==s?(S=s("plan.objective.label"),e[11]=s,e[12]=S):S=e[12];let $;e[13]!==s?($=s("plan.objective.placeholder"),e[13]=s,e[14]=$):$=e[14];let C;e[15]===Symbol.for("react.memo_cache_sentinel")?(C=E=>c(E.target.value),e[15]=C):C=e[15];const q=a!==void 0;let _;e[16]!==i||e[17]!==o.isPending||e[18]!==S||e[19]!==$||e[20]!==q?(_=n.jsx(ie,{"aria-label":S,placeholder:$,value:i,maxLength:He,onChange:C,disabled:o.isPending,className:"min-h-20 text-base",autoFocus:q}),e[16]=i,e[17]=o.isPending,e[18]=S,e[19]=$,e[20]=q,e[21]=_):_=e[21];let I;e[22]!==o.isPending||e[23]!==r||e[24]!==f||e[25]!==s?(I=o.isPending?n.jsx("p",{className:"animate-pulse text-sm text-muted-foreground",children:s("plan.objective.finding")}):r?n.jsx(Et,{notice:r,draft:f}):n.jsx("span",{className:"text-meta",children:s("plan.objective.hint")}),e[22]=o.isPending,e[23]=r,e[24]=f,e[25]=s,e[26]=I):I=e[26];let j;e[27]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(De,{}),e[27]=j):j=e[27];let w;e[28]!==s?(w=s("plan.objective.find"),e[28]=s,e[29]=w):w=e[29];let k;e[30]!==p||e[31]!==N||e[32]!==w?(k=n.jsxs(B,{type:"button",variant:"outline",size:"sm",disabled:p,onClick:N,children:[j,w]}),e[30]=p,e[31]=N,e[32]=w,e[33]=k):k=e[33];let y;e[34]!==p||e[35]!==l||e[36]!==s||e[37]!==g?(y=l&&n.jsx(B,{type:"button",variant:"ghost",size:"sm",disabled:p,onClick:()=>g(null),children:s("plan.objective.clear")}),e[34]=p,e[35]=l,e[36]=s,e[37]=g,e[38]=y):y=e[38];let D;e[39]!==a||e[40]!==u.isPending||e[41]!==s?(D=a&&n.jsx(B,{type:"button",variant:"outline",size:"sm",disabled:u.isPending,onClick:a,children:s("plan.objective.cancel")}),e[39]=a,e[40]=u.isPending,e[41]=s,e[42]=D):D=e[42];const A=!f||p;let O;e[43]!==s?(O=s("plan.objective.save"),e[43]=s,e[44]=O):O=e[44];let R;e[45]!==A||e[46]!==O?(R=n.jsx(B,{type:"submit",size:"sm",disabled:A,children:O}),e[45]=A,e[46]=O,e[47]=R):R=e[47];let z;e[48]!==y||e[49]!==D||e[50]!==R?(z=n.jsxs("div",{className:"ml-auto flex gap-2",children:[y,D,R]}),e[48]=y,e[49]=D,e[50]=R,e[51]=z):z=e[51];let G;e[52]!==k||e[53]!==z?(G=n.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[k,z]}),e[52]=k,e[53]=z,e[54]=G):G=e[54];let K;return e[55]!==v||e[56]!==I||e[57]!==G||e[58]!==_?(K=n.jsxs("form",{onSubmit:v,className:"flex flex-col gap-2",children:[_,I,G]}),e[55]=v,e[56]=I,e[57]=G,e[58]=_,e[59]=K):K=e[59],K}function Tt(){const t=M.c(12),e=L(),l=xe(),[a,s]=F.useState(!1),i=l?.statement??"";let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(se,{size:13}),t[0]=c):c=t[0];let r;t[1]!==e?(r=e("plan.objective.eyebrow"),t[1]=e,t[2]=r):r=t[2];let d;t[3]!==r?(d=n.jsxs("div",{className:"flex items-center gap-1.5 text-[11px] font-medium tracking-wide text-muted-foreground uppercase",children:[c,r]}),t[3]=r,t[4]=d):d=t[4];let u;t[5]!==a||t[6]!==i||t[7]!==e?(u=i?a?n.jsx(ue,{initial:i,onDone:()=>s(!1)}):n.jsxs("div",{className:"flex flex-col items-start gap-3",children:[n.jsx("p",{className:"max-w-[720px] text-2xl leading-snug font-medium text-balance text-foreground",children:i}),n.jsxs(B,{variant:"outline",size:"sm",onClick:()=>s(!0),children:[n.jsx(qe,{}),e("plan.objective.edit")]})]}):n.jsxs(n.Fragment,{children:[n.jsx("p",{className:"max-w-[560px] text-base text-pretty text-muted-foreground",children:e("plan.objective.empty")}),n.jsx(ue,{initial:""})]}),t[5]=a,t[6]=i,t[7]=e,t[8]=u):u=t[8];let o;return t[9]!==d||t[10]!==u?(o=n.jsxs("section",{className:"flex flex-col gap-3",children:[d,u]}),t[9]=d,t[10]=u,t[11]=o):o=t[11],o}function Zt(){const t=M.c(19),e=Nt(),[l,a]=F.useState(""),{state:s}=e;if(s){let o;t[0]!==e||t[1]!==s?(o=()=>{a(s.idea),e.cancel()},t[0]=e,t[1]=s,t[2]=o):o=t[2];let m;return t[3]!==e||t[4]!==s||t[5]!==o?(m=n.jsx(Q,{children:n.jsx(rt,{guide:{...e,state:s,cancel:o}})}),t[3]=e,t[4]=s,t[5]=o,t[6]=m):m=t[6],m}let i;t[7]===Symbol.for("react.memo_cache_sentinel")?(i=n.jsx(Tt,{}),t[7]=i):i=t[7];let c;t[8]!==e.discard||t[9]!==e.resume||t[10]!==e.saved?(c=e.saved&&n.jsx(ot,{draft:e.saved,onResume:e.resume,onDiscard:e.discard}),t[8]=e.discard,t[9]=e.resume,t[10]=e.saved,t[11]=c):c=t[11];let r;t[12]!==l||t[13]!==e.start?(r=n.jsx(qt,{initialIdea:l,onSubmit:e.start}),t[12]=l,t[13]=e.start,t[14]=r):r=t[14];let d;t[15]===Symbol.for("react.memo_cache_sentinel")?(d=n.jsx(Ct,{}),t[15]=d):d=t[15];let u;return t[16]!==c||t[17]!==r?(u=n.jsx(Q,{children:n.jsx(Q.Content,{children:n.jsxs(Q.Container,{width:"standard",className:"flex flex-col gap-12",children:[i,c,r,d]})})}),t[16]=c,t[17]=r,t[18]=u):u=t[18],u}export{Vt as C,Zt as P,Yt as r};
@@ -1,4 +1,4 @@
1
- import{r as Y,j as s,d_ as me,hW as ye,c as G,m as Z,c1 as Pe,b as q,a6 as se,an as X,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aL as we,aM as Ee,aN as Ae,aO as Ie,bc as Ue,aP as De,aQ as Te,aR as Re,gl as le,gZ as ne,i as xe,e3 as pe,b9 as $e,at as Be,av as Le,L as ke,gK as He}from"./index-h5M7_u6d.js";import{s as Oe}from"./Plus-3ew-qzRg.js";import{B as Fe}from"./badge-BEIqpSWr.js";import{a as Me,b as ze,P as Ve}from"./popover-BXXtCYra.js";import{a as ce,T as Ge}from"./toggle-group-ChIbd7yf.js";import{g as Ke}from"./use-ai-providers-CPLEUkQr.js";import{u as ie,d as he,a as qe}from"./use-entitlements-CZg-IfPI.js";import{u as Qe,P as Ye}from"./plan-ladder-BoR0dEZH.js";var re="Progress",oe=100,[Ze]=ye(re),[Xe,Je]=Ze(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(Xe,{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 je="ProgressIndicator",be=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(je,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})});be.displayName=je;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,d_ as me,hW as ye,c as G,m as Z,c1 as Pe,b as q,a6 as se,an as X,q as _e,e as ae,J as ge,B as V,I as Se,t as W,K as ee,aL as we,aM as Ee,aN as Ae,aO as Ie,bc as Ue,aP as De,aQ as Te,aR as Re,gl as le,gZ as ne,i as xe,e3 as pe,b9 as $e,at as Be,av as Le,L as ke,gK as He}from"./index-BAkS3I9t.js";import{s as Oe}from"./Plus-SDHe97GR.js";import{B as Fe}from"./badge-CFl-sPcD.js";import{a as Me,b as ze,P as Ve}from"./popover-zN1hNT-L.js";import{a as ce,T as Ge}from"./toggle-group-D587KudN.js";import{g as Ke}from"./use-ai-providers-jcWnR4kL.js";import{u as ie,c as he,a as qe}from"./use-entitlements-DfsP8gtu.js";import{u as Qe,P as Ye}from"./plan-ladder-CV9v5egR.js";var re="Progress",oe=100,[Ze]=ye(re),[Xe,Je]=Ze(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(Xe,{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 je="ProgressIndicator",be=Y.forwardRef((e,t)=>{const{__scopeProgress:n,...o}=e,a=Je(je,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})});be.displayName=je;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,c7 as _,j as c,c9 as j,ca as x,c8 as w,c4 as z,c5 as G,c6 as H,ce as E,cn as K,e4 as b,ci as q,ck as U,co as V,cj as W,cl as Z,cm as B,cp as J,cq as Q,cc as X,c as R,m as Y}from"./index-h5M7_u6d.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=V("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 q(a)},[]),c.jsx(U,{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 W(),c.jsx(Z,{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,c7 as _,j as c,c9 as j,ca as x,c8 as w,c4 as z,c5 as G,c6 as H,ce as E,cn as K,e4 as b,ci as q,ck as U,co as V,cj as W,cl as Z,cm as B,cp as J,cq as Q,cc as X,c as R,m as Y}from"./index-BAkS3I9t.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=V("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 q(a)},[]),c.jsx(U,{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 W(),c.jsx(Z,{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,av as Ct}from"./index-h5M7_u6d.js";import{F as Nt}from"./agent-icon-BUzPMbYp.js";import{b as Dt}from"./UserCheck01-DcUjByxP.js";import{s as kt}from"./Plus-3ew-qzRg.js";import{S as St}from"./scroll-area-DC4PERKA.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-BvOKDXJP.js";import{g as Et,d as Pt}from"./item-actions-CXqUCk79.js";import"./AlertCircle-fMLnhe4N.js";import"./Tool01-XvjOBq9P.js";import"./ArrowUp-DJuAHozT.js";import"./ArrowLeft-BpQY_4Hb.js";import"./ArrowRight-IsxFGu7t.js";import"./BookOpen01-BiHF6zzZ.js";import"./Globe04-BPI-tBR7.js";import"./CheckCircle-Dr7_heit.js";import"./ChevronDown-BoX4T_5s.js";import"./ChevronSelectorVertical-D1NaGS7F.js";import"./ChevronUp-BRofWs4w.js";import"./UserSquare-BruOWifD.js";import"./LinkBroken01-DIf0b0rn.js";import"./CreditCard01-ZTRIvIDz.js";import"./File02-FY6zCZeY.js";import"./MessageCircle01-B10kr5uX.js";import"./SwitchHorizontal01-DmJYUvGl.js";import"./Eye-BivmnvvE.js";import"./Fingerprint04-B53NZ2UJ.js";import"./Image01-CcDDqrAs.js";import"./Key01-lhYXuGDp.js";import"./LayoutLeft-xchgd5Yi.js";import"./Minus-DnwYSFGD.js";import"./Monitor01-Dlx-hfNO.js";import"./Sun-lT-uDm7m.js";import"./Play-D05aqmG8.js";import"./SearchMd-BVGIdSgF.js";import"./ShoppingBag01-Bp-vqf9J.js";import"./Trash01-BAd16zlB.js";import"./Upload01-UYtGRq9J.js";import"./Users01-COqq34au.js";import"./XClose-CnRhNuQH.js";import"./Zap-BIlzDOzm.js";import"./index-BdQq_4o_.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DufFAuYI.js";import"./collapsible-CUjrXLIK.js";import"./use-copy-Ctkoq0el.js";import"./usage-stats-9t2_M-_X.js";import"./utils-CVEq3hMx.js";import"./markdown-wdQvukFe.js";import"./chat-context-P9WWU84F.js";import"./use-panel-navigate-Cu4M1nkN.js";import"./thread-route-DbIj-4pl.js";import"./use-project-scope-BDInf_KX.js";import"./repository-binding-C2ttJKfq.js";import"./use-mcp-client-CH6bskGM.js";import"./auth-CFZV8LNa.js";import"./use-view-draft-kind-C3o_ZEOa.js";import"./use-blog-view-L6u-6Gn9.js";import"./use-organization-settings-Bjs-pync.js";import"./schema-BXI5WQ8i.js";import"./task-board-DPQVIG08.js";import"./thread-intent-CWcX0xIz.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DaE5QfID.js";import"./session-runtime-C5QSeCzi.js";import"./use-entitlements-CZg-IfPI.js";import"./use-ai-providers-CPLEUkQr.js";import"./use-current-view-Osva99rG.js";import"./use-in-settings-CSD80tC3.js";import"./use-decopilot-events-Br-3bz6F.js";import"./use-org-fs-bkWpzofB.js";import"./useInfiniteQuery-D_KzZebo.js";import"./infiniteQueryObserver-Do5Bs95Q.js";import"./use-mobile-VHSlVnL-.js";import"./tooltip-qtRvoONv.js";import"./index-DBGg09pY.js";import"./gateway-client-PxuT6Cn_.js";import"./form-Z5FeDYMO.js";import"./label-ByNDPW1G.js";import"./task-key-CvnKgot5.js";import"./use-task-board-items-CbzznfFt.js";import"./config-CNL9isfS.js";import"./task-route-4Ffx__zo.js";import"./project-index-DYaVxQmQ.js";import"./shell-layout-alWzS7OH.js";import"./use-deployment-admin-Cma9Q0Nv.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BooyLawP.js";import"./command-DET2-o7x.js";import"./index-DNi8BL3Y.js";import"./integration-icon-B5Wz15tf.js";import"./project-icon-xkpd5H2A.js";import"./use-navigate-to-agent-CnyUBPgz.js";import"./use-debounced-value-C0H-A83Z.js";import"./new-project-dialog-L4L31NPq.js";import"./repository-picker-3iPAo5jF.js";import"./github-icon-CD6EsDXg.js";import"./collection-search-BpBt8YLH.js";import"./new-project-store-gRG3bb0F.js";import"./legacy-admin-welcome-dialog-ndm9cCzy.js";import"./drawer-BysblPi2.js";import"./required-auth-layout-xd1kE6xL.js";import"./use-org-sso-Cj-99lvX.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PzEL44dF.js";import"./types-Dbc1mwzs.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-CaBxNWJg.js";import"./use-connection-DEfaQgjd.js";import"./use-mcp-prompts-Nf2vBxrv.js";import"./use-thread-outputs-DZyh4ROf.js";import"./file-type-icon-CoN_4-an.js";import"./section-array-field-tQPscYBU.js";import"./blocks-tab-states-C8b6r-Rr.js";import"./site-editor-toast-CDwS7PqN.js";import"./content-changes-Cz_QO8b-.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-CciPXt5C.js";import"./use-blocks-v8-project-DfywwZ6H.js";import"./use-voice-input-DoWLxn0F.js";import"./popover-BXXtCYra.js";import"./index-BSAl9MOu.js";import"./checkbox-CH7V0LA5.js";import"./select-DJrmw6BE.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-7dvG3Zcx.js";import"./sandbox-git-api-CXVfj6eY.js";import"./empty-state-z8d6CDxb.js";import"./badge-BEIqpSWr.js";import"./empty-state-BTtJHydu.js";import"./delete-copy-B9XfUYuD.js";import"./use-never-published-o664b5-M.js";import"./hosted-reconcile-9Be5Kz_9.js";import"./search-input-DmWvIiBD.js";import"./tabs-gsKK5Z83.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-BN106-dD.js";import"./asset-utils-DI8Mkfk2.js";import"./index-BmjIBIfS.js";import"./match-site-slug-config-B47_xZCi.js";import"./textarea-D4AETCzr.js";import"./primitives-COmgcZSz.js";import"./use-move-blocks-DKWJxUtt.js";import"./monaco-editor-BOl00D7O.js";import"./editor-BtdaQuHN.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 jo(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 v=N;let x,u,l,c,y,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==v||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]!==v?(O=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:v}),t[41]=v,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 vt=a.getMonth()===n.getMonth(),yt=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",vt?"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})})]}),yt.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",y=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]=v,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]=y,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],y=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==y||t[66]!==k?(E=e.jsxs("div",{className:c,children:[y,k]}),t[64]=c,t[65]=y,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=y=>{y.dataTransfer.setData("text/plain",s.key),y.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}`,v=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;t[11]!==v||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",v,x,u),t[11]=v,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{jo 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,av as Ct}from"./index-BAkS3I9t.js";import{F as Nt}from"./agent-icon-BULE2fWe.js";import{b as Dt}from"./UserCheck01-CgjnWNg9.js";import{s as kt}from"./Plus-SDHe97GR.js";import{S as St}from"./scroll-area-C44byneR.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-CPPsewqr.js";import{g as Et,d as Pt}from"./item-actions-6XRfzKrK.js";import"./AlertCircle-CMQV10zH.js";import"./Tool01-CcGB7LBy.js";import"./ArrowUp-BBzcACTp.js";import"./ArrowLeft-C8Ca9SGj.js";import"./ArrowRight-D_qjUhKl.js";import"./BookOpen01-rTD8nhQf.js";import"./Globe04-B8ATzfZn.js";import"./CheckCircle-Dsrl0sYA.js";import"./ChevronDown-C50rJcMj.js";import"./ChevronSelectorVertical-Djt3ttKm.js";import"./ChevronUp-D_FfEHpT.js";import"./UserSquare-BEv7rm2k.js";import"./LinkBroken01-DdYCDQYH.js";import"./CreditCard01-C86YFFFO.js";import"./File02-Bqga0RpU.js";import"./MessageCircle01-BpQQiBmH.js";import"./SwitchHorizontal01-B39ZJ4UZ.js";import"./Eye-B6cCPf8y.js";import"./Fingerprint04-e81t2Rsp.js";import"./Image01-BhuNuoo8.js";import"./Key01-DgTKBiC1.js";import"./LayoutLeft-NdGA068i.js";import"./Minus-DgevTSUu.js";import"./Monitor01-QPUul6iy.js";import"./Sun-D-TVq6e8.js";import"./Play-B7Twjw53.js";import"./SearchMd-BjPfVKIV.js";import"./ShoppingBag01-BOP8iPvg.js";import"./Trash01-Dd6dddL6.js";import"./Upload01-Ceg_L_zO.js";import"./Users01-CDMnI452.js";import"./XClose-DhprECXU.js";import"./Zap-CxCLKK5S.js";import"./index-BdQq_4o_.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DXYob3uY.js";import"./collapsible-DRJg67rf.js";import"./use-copy-B0bJTc_A.js";import"./usage-stats-CG0HF4aR.js";import"./utils-CVEq3hMx.js";import"./markdown-7s6OBK-6.js";import"./chat-context-5XiEKH4L.js";import"./use-panel-navigate-DcQ09zcF.js";import"./thread-route-CO4GyP6M.js";import"./use-project-scope-DrIhuPRp.js";import"./repository-binding-3s1-jerc.js";import"./use-mcp-client-hdH8Uz6-.js";import"./auth-xKzEv0UZ.js";import"./use-view-draft-kind-ZpRr9xSn.js";import"./use-blog-view-D_th-kMW.js";import"./use-organization-settings-CK7vcd9v.js";import"./schema-CFHK_oTc.js";import"./task-board-_VqItTnn.js";import"./thread-intent-Bc3EWL8B.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CHnEHgBL.js";import"./session-runtime-CKIKfAeL.js";import"./use-entitlements-DfsP8gtu.js";import"./use-ai-providers-jcWnR4kL.js";import"./use-current-view-BveVb2BS.js";import"./use-in-settings-B3WNh2Ct.js";import"./use-decopilot-events-Df7BUQ9K.js";import"./use-org-fs-DlJPLDns.js";import"./useInfiniteQuery-D_OScDhL.js";import"./infiniteQueryObserver-BjwRt0P7.js";import"./use-mobile-U0e6QGNo.js";import"./tooltip-Duum-wbC.js";import"./index-BXsKfYZJ.js";import"./gateway-client-7v27Q-DB.js";import"./form-DC0J7PuZ.js";import"./label-C7M6CeY4.js";import"./task-key-HCYxchZ-.js";import"./use-task-board-items-DpI5X1-L.js";import"./config-CReIzLqM.js";import"./task-route-DkFPGqqO.js";import"./project-index-BeB0p8jY.js";import"./shell-layout-Br0U0ibo.js";import"./use-deployment-admin-9g3NnFUn.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BwrJDiul.js";import"./command-Bx6bzwV3.js";import"./index-C9tmAxLB.js";import"./integration-icon-xC728oQA.js";import"./project-icon-DzLoogsD.js";import"./use-navigate-to-agent-D9o_GRS4.js";import"./use-debounced-value-DfrfrzHX.js";import"./new-project-dialog-CJIzW540.js";import"./repository-picker-C6LBSgFD.js";import"./github-icon-BiXr0BnT.js";import"./collection-search-BMrWPTLQ.js";import"./new-project-store-CUMGMx8W.js";import"./legacy-admin-welcome-dialog-BdilK4Du.js";import"./drawer-DXadnv_8.js";import"./required-auth-layout-msTgMG3w.js";import"./use-org-sso-Cy23Rsh-.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DG3_Q3ZF.js";import"./types-93zYNLaG.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-H_DS9XJb.js";import"./use-connection-qfJQ-1Sx.js";import"./use-mcp-prompts-Bo4GYlhV.js";import"./use-thread-outputs-BXlCD20Z.js";import"./file-type-icon-BSoZy34z.js";import"./section-array-field-0bB0SP9C.js";import"./blocks-tab-states-Bz9ljtyl.js";import"./site-editor-toast-BITU0E66.js";import"./content-changes-C1IdGdFF.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-C82W1a6-.js";import"./use-blocks-v8-project-Bt5ze2gk.js";import"./use-voice-input-DGpNCylm.js";import"./popover-zN1hNT-L.js";import"./index-DLFVDiMO.js";import"./checkbox-8SyXZvGW.js";import"./select-DWaAXd8R.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./utils-DRn4O7AD.js";import"./sandbox-git-api-4eoXZPwi.js";import"./empty-state-Bq2pKAom.js";import"./badge-CFl-sPcD.js";import"./empty-state-DsDTFIVX.js";import"./delete-copy-DwOYB3lx.js";import"./use-never-published-CKGn23rS.js";import"./hosted-reconcile-DYem52V_.js";import"./search-input-zqijIb2Z.js";import"./tabs-yUzyAuHo.js";import"./active-indicator-CCMhAsc_.js";import"./use-file-configs-DXrGvvLv.js";import"./asset-utils-B3p_FXzZ.js";import"./index-BzvjWc_o.js";import"./match-site-slug-config-B47_xZCi.js";import"./textarea-Dyd14nGh.js";import"./primitives-TI3e7ruV.js";import"./use-move-blocks-DxPhfmd5.js";import"./monaco-editor-DquEynfh.js";import"./editor-CDRuQE8T.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 jo(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 v=N;let x,u,l,c,y,k,S,w,T,z;if(t[3]!==n||t[4]!==b||t[5]!==j||t[6]!==s||t[7]!==p||t[8]!==v||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]!==v?(O=e.jsx("h2",{className:"ml-2 text-base font-semibold capitalize",children:v}),t[41]=v,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 vt=a.getMonth()===n.getMonth(),yt=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",vt?"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})})]}),yt.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",y=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]=v,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]=y,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],y=t[18],k=t[19],S=t[20],w=t[21],T=t[22],z=t[23];let E;t[64]!==c||t[65]!==y||t[66]!==k?(E=e.jsxs("div",{className:c,children:[y,k]}),t[64]=c,t[65]=y,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=y=>{y.dataTransfer.setData("text/plain",s.key),y.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}`,v=r?ft:xt,x=o&&"cursor-grab active:cursor-grabbing",u=d&&"ring-2 ring-primary";let l;t[11]!==v||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",v,x,u),t[11]=v,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{jo as PostCalendar};
@@ -1,2 +1,2 @@
1
- import{b as ee,an as it,r as Y,j as t,B as Le,D as lt,v as at,w as nt,x as rt,aW as ct,a_ as dt,m as Be,y as mt,t as we,c as se,bx as pt,a9 as ut,aR as ft,aQ as xt,aN as ht,aL as gt,aM as bt,aP as jt,aO as vt,bc as yt,h as St,bd as kt,I as Ae}from"./index-h5M7_u6d.js";import{u as Et}from"./chat-context-P9WWU84F.js";import{i as Oe}from"./AlertCircle-fMLnhe4N.js";import{aF as Ct,bC as _t,_ as Pt,ao as Nt}from"./agent-icon-BUzPMbYp.js";import{e as Tt}from"./UserSquare-BruOWifD.js";import{i as Lt,a as wt}from"./UserCheck01-DcUjByxP.js";import{s as Dt}from"./Trash01-BAd16zlB.js";import{s as Bt}from"./XClose-CnRhNuQH.js";import{L as te}from"./label-ByNDPW1G.js";import{M as At}from"./multi-select-BHBrBKF9.js";import{b as Ft,a as It,T as We,c as Ge}from"./tabs-gsKK5Z83.js";import{S as Ot}from"./switch-VNmTvSjQ.js";import{T as Ze}from"./textarea-D4AETCzr.js";import{S as Rt,I as zt}from"./save-status-DBthDxaG.js";import{u as $t,I as qt,a as Ie,B as Mt,R as Ut}from"./block-document-BQyzUTQb.js";import{R as Ht,e as Vt,H as Wt,u as Gt,f as ze,N as Qt}from"./held-block-view-D0DYh6G5.js";import{b as Yt,C as Kt,K as Zt}from"./blog-schema-Cpxx5HQu.js";import{a6 as Jt,N as Xt,a as es,d as ts,f as ss,a7 as os,a8 as is,a9 as ls,m as Qe,p as Je,aa as as,I as Xe,a3 as ns,a2 as rs,ab as cs,Q as ds}from"./category-tree-BvOKDXJP.js";import{s as B,E as ms,R as ps,A as us,a as fs}from"./primitives-COmgcZSz.js";import{c as $e,T as qe,a as Me}from"./tooltip-qtRvoONv.js";import{f as xs,d as hs,b as gs}from"./blog-preview-url-DnJG6GIX.js";import{e as bs,f as js,g as Ye,u as vs,a as ys,d as Ss}from"./delete-copy-B9XfUYuD.js";import{u as ks}from"./use-ai-providers-CPLEUkQr.js";import{u as Es}from"./use-delete-block-9G55uQNy.js";import{F as Cs,u as _s,a as Ps,k as Ns}from"./use-never-published-o664b5-M.js";import{u as Ts}from"./use-fast-preview-draft-url-YkfRp5Y5.js";import{u as Ls}from"./use-autosave-CFd8OFFM.js";import{b as ws}from"./repository-binding-C2ttJKfq.js";import{u as Ds}from"./use-file-configs-BN106-dD.js";import{m as Bs}from"./match-site-slug-config-B47_xZCi.js";import{a as As}from"./Image01-CcDDqrAs.js";import{e as Fs}from"./Tool01-XvjOBq9P.js";import{a as Is,E as Os,u as Rs}from"./usage-stats-9t2_M-_X.js";import{s as zs}from"./suggestion-C3Yq0VR4.js";import{E as $s,T as Ue}from"./editor-classes-CxIZNugt.js";import{u as qs}from"./site-editor-toast-CDwS7PqN.js";import"./use-panel-navigate-Cu4M1nkN.js";import"./thread-route-DbIj-4pl.js";import"./use-project-scope-BDInf_KX.js";import"./use-view-draft-kind-C3o_ZEOa.js";import"./use-blog-view-L6u-6Gn9.js";import"./use-organization-settings-Bjs-pync.js";import"./schema-BXI5WQ8i.js";import"./task-board-DPQVIG08.js";import"./thread-intent-CWcX0xIz.js";import"./use-mcp-client-CH6bskGM.js";import"./auth-CFZV8LNa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-DaE5QfID.js";import"./session-runtime-C5QSeCzi.js";import"./use-entitlements-CZg-IfPI.js";import"./use-current-view-Osva99rG.js";import"./use-in-settings-CSD80tC3.js";import"./use-decopilot-events-Br-3bz6F.js";import"./use-org-fs-bkWpzofB.js";import"./useInfiniteQuery-D_KzZebo.js";import"./infiniteQueryObserver-Do5Bs95Q.js";import"./ArrowUp-DJuAHozT.js";import"./ArrowLeft-BpQY_4Hb.js";import"./ArrowRight-IsxFGu7t.js";import"./BookOpen01-BiHF6zzZ.js";import"./Globe04-BPI-tBR7.js";import"./CheckCircle-Dr7_heit.js";import"./ChevronDown-BoX4T_5s.js";import"./ChevronSelectorVertical-D1NaGS7F.js";import"./ChevronUp-BRofWs4w.js";import"./LinkBroken01-DIf0b0rn.js";import"./CreditCard01-ZTRIvIDz.js";import"./File02-FY6zCZeY.js";import"./MessageCircle01-B10kr5uX.js";import"./SwitchHorizontal01-DmJYUvGl.js";import"./Eye-BivmnvvE.js";import"./Fingerprint04-B53NZ2UJ.js";import"./Key01-lhYXuGDp.js";import"./LayoutLeft-xchgd5Yi.js";import"./Minus-DnwYSFGD.js";import"./Monitor01-Dlx-hfNO.js";import"./Sun-lT-uDm7m.js";import"./Play-D05aqmG8.js";import"./Plus-3ew-qzRg.js";import"./SearchMd-BVGIdSgF.js";import"./ShoppingBag01-Bp-vqf9J.js";import"./Upload01-UYtGRq9J.js";import"./Users01-COqq34au.js";import"./Zap-BIlzDOzm.js";import"./badge-BEIqpSWr.js";import"./checkbox-CH7V0LA5.js";import"./command-DET2-o7x.js";import"./index-DNi8BL3Y.js";import"./popover-BXXtCYra.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-ChIbd7yf.js";import"./asset-utils-DI8Mkfk2.js";import"./task-key-CvnKgot5.js";import"./sortable.esm-B-M5LtT1.js";import"./product-picker-dialog-DeX55OcF.js";import"./index-C0yhoJT-.js";import"./index-BmjIBIfS.js";import"./blocks-tab-states-C8b6r-Rr.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-DoWLxn0F.js";import"./drawer-BysblPi2.js";import"./use-mobile-VHSlVnL-.js";import"./index-BSAl9MOu.js";import"./select-DJrmw6BE.js";import"./index-BdQq_4o_.js";import"./index-DBGg09pY.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-z8d6CDxb.js";import"./utils-7dvG3Zcx.js";import"./calendar-BniyEQBg.js";import"./section-array-field-tQPscYBU.js";import"./named-rule-step-CDWup8ng.js";import"./slider-DlePwAki.js";import"./index-CtSr04e6.js";import"./tooltipContext-CQ-o3RLp.js";import"./CategoricalChart-CBDGrcDZ.js";import"./index-Cyo61QAa.js";import"./combobox-27ivRGzf.js";import"./scroll-area-DC4PERKA.js";import"./hosted-reconcile-9Be5Kz_9.js";import"./collapsible-CUjrXLIK.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DufFAuYI.js";import"./use-copy-Ctkoq0el.js";import"./use-task-board-items-CbzznfFt.js";import"./config-CNL9isfS.js";import"./task-route-4Ffx__zo.js";import"./project-index-DYaVxQmQ.js";import"./utils-CVEq3hMx.js";import"./shell-layout-alWzS7OH.js";import"./use-deployment-admin-Cma9Q0Nv.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BooyLawP.js";import"./integration-icon-B5Wz15tf.js";import"./project-icon-xkpd5H2A.js";import"./use-navigate-to-agent-CnyUBPgz.js";import"./use-debounced-value-C0H-A83Z.js";import"./new-project-dialog-L4L31NPq.js";import"./repository-picker-3iPAo5jF.js";import"./github-icon-CD6EsDXg.js";import"./collection-search-BpBt8YLH.js";import"./new-project-store-gRG3bb0F.js";import"./legacy-admin-welcome-dialog-ndm9cCzy.js";import"./required-auth-layout-xd1kE6xL.js";import"./use-org-sso-Cj-99lvX.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-PzEL44dF.js";import"./types-Dbc1mwzs.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./gateway-client-PxuT6Cn_.js";import"./markdown-wdQvukFe.js";import"./sheet-CaBxNWJg.js";import"./use-connection-DEfaQgjd.js";import"./use-mcp-prompts-Nf2vBxrv.js";import"./use-thread-outputs-DZyh4ROf.js";import"./file-type-icon-CoN_4-an.js";import"./use-move-blocks-DKWJxUtt.js";import"./sandbox-git-api-CXVfj6eY.js";import"./search-input-DmWvIiBD.js";import"./form-Z5FeDYMO.js";import"./content-changes-Cz_QO8b-.js";import"./use-sandbox-events-CciPXt5C.js";import"./use-blocks-v8-project-DfywwZ6H.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(Jt(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,an as it,r as Y,j as t,B as Le,D as lt,v as at,w as nt,x as rt,aW as ct,a_ as dt,m as Be,y as mt,t as we,c as se,bx as pt,a9 as ut,aR as ft,aQ as xt,aN as ht,aL as gt,aM as bt,aP as jt,aO as vt,bc as yt,h as St,bd as kt,I as Ae}from"./index-BAkS3I9t.js";import{u as Et}from"./chat-context-5XiEKH4L.js";import{i as Oe}from"./AlertCircle-CMQV10zH.js";import{aF as Ct,bC as _t,_ as Pt,ao as Nt}from"./agent-icon-BULE2fWe.js";import{e as Tt}from"./UserSquare-BEv7rm2k.js";import{i as Lt,a as wt}from"./UserCheck01-CgjnWNg9.js";import{s as Dt}from"./Trash01-Dd6dddL6.js";import{s as Bt}from"./XClose-DhprECXU.js";import{L as te}from"./label-C7M6CeY4.js";import{M as At}from"./multi-select-LRLNCHIK.js";import{b as Ft,a as It,T as We,c as Ge}from"./tabs-yUzyAuHo.js";import{S as Ot}from"./switch-DJRaFsox.js";import{T as Ze}from"./textarea-Dyd14nGh.js";import{S as Rt,I as zt}from"./save-status-BpImS5FL.js";import{u as $t,I as qt,a as Ie,B as Mt,R as Ut}from"./block-document-iHb56h21.js";import{R as Ht,e as Vt,H as Wt,u as Gt,f as ze,N as Qt}from"./held-block-view-BlzwFREn.js";import{b as Yt,C as Kt,K as Zt}from"./blog-schema-BZ0Jqy8M.js";import{a6 as Jt,N as Xt,a as es,d as ts,f as ss,a7 as os,a8 as is,a9 as ls,m as Qe,p as Je,aa as as,I as Xe,a3 as ns,a2 as rs,ab as cs,Q as ds}from"./category-tree-CPPsewqr.js";import{s as B,E as ms,R as ps,A as us,a as fs}from"./primitives-TI3e7ruV.js";import{c as $e,T as qe,a as Me}from"./tooltip-Duum-wbC.js";import{f as xs,d as hs,b as gs}from"./blog-preview-url-1TkdoQtD.js";import{e as bs,f as js,g as Ye,u as vs,a as ys,d as Ss}from"./delete-copy-DwOYB3lx.js";import{u as ks}from"./use-ai-providers-jcWnR4kL.js";import{u as Es}from"./use-delete-block-6fX0bkwu.js";import{F as Cs,u as _s,a as Ps,k as Ns}from"./use-never-published-CKGn23rS.js";import{u as Ts}from"./use-fast-preview-draft-url-X0WNIRyx.js";import{u as Ls}from"./use-autosave-BcvItCaI.js";import{b as ws}from"./repository-binding-3s1-jerc.js";import{u as Ds}from"./use-file-configs-DXrGvvLv.js";import{m as Bs}from"./match-site-slug-config-B47_xZCi.js";import{a as As}from"./Image01-BhuNuoo8.js";import{e as Fs}from"./Tool01-CcGB7LBy.js";import{a as Is,E as Os,u as Rs}from"./usage-stats-CG0HF4aR.js";import{s as zs}from"./suggestion-D8jM7QP6.js";import{E as $s,T as Ue}from"./editor-classes-nFtrg95h.js";import{u as qs}from"./site-editor-toast-BITU0E66.js";import"./use-panel-navigate-DcQ09zcF.js";import"./thread-route-CO4GyP6M.js";import"./use-project-scope-DrIhuPRp.js";import"./use-view-draft-kind-ZpRr9xSn.js";import"./use-blog-view-D_th-kMW.js";import"./use-organization-settings-CK7vcd9v.js";import"./schema-CFHK_oTc.js";import"./task-board-_VqItTnn.js";import"./thread-intent-Bc3EWL8B.js";import"./use-mcp-client-hdH8Uz6-.js";import"./auth-xKzEv0UZ.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-CHnEHgBL.js";import"./session-runtime-CKIKfAeL.js";import"./use-entitlements-DfsP8gtu.js";import"./use-current-view-BveVb2BS.js";import"./use-in-settings-B3WNh2Ct.js";import"./use-decopilot-events-Df7BUQ9K.js";import"./use-org-fs-DlJPLDns.js";import"./useInfiniteQuery-D_OScDhL.js";import"./infiniteQueryObserver-BjwRt0P7.js";import"./ArrowUp-BBzcACTp.js";import"./ArrowLeft-C8Ca9SGj.js";import"./ArrowRight-D_qjUhKl.js";import"./BookOpen01-rTD8nhQf.js";import"./Globe04-B8ATzfZn.js";import"./CheckCircle-Dsrl0sYA.js";import"./ChevronDown-C50rJcMj.js";import"./ChevronSelectorVertical-Djt3ttKm.js";import"./ChevronUp-D_FfEHpT.js";import"./LinkBroken01-DdYCDQYH.js";import"./CreditCard01-C86YFFFO.js";import"./File02-Bqga0RpU.js";import"./MessageCircle01-BpQQiBmH.js";import"./SwitchHorizontal01-B39ZJ4UZ.js";import"./Eye-B6cCPf8y.js";import"./Fingerprint04-e81t2Rsp.js";import"./Key01-DgTKBiC1.js";import"./LayoutLeft-NdGA068i.js";import"./Minus-DgevTSUu.js";import"./Monitor01-QPUul6iy.js";import"./Sun-D-TVq6e8.js";import"./Play-B7Twjw53.js";import"./Plus-SDHe97GR.js";import"./SearchMd-BjPfVKIV.js";import"./ShoppingBag01-BOP8iPvg.js";import"./Upload01-Ceg_L_zO.js";import"./Users01-CDMnI452.js";import"./Zap-CxCLKK5S.js";import"./badge-CFl-sPcD.js";import"./checkbox-8SyXZvGW.js";import"./command-Bx6bzwV3.js";import"./index-C9tmAxLB.js";import"./popover-zN1hNT-L.js";import"./active-indicator-CCMhAsc_.js";import"./toggle-group-D587KudN.js";import"./asset-utils-B3p_FXzZ.js";import"./task-key-HCYxchZ-.js";import"./sortable.esm-Doe7TvCi.js";import"./product-picker-dialog-CWKqQ6-J.js";import"./index-DWWehzpr.js";import"./index-BzvjWc_o.js";import"./blocks-tab-states-Bz9ljtyl.js";import"./sandbox-url-D3mC8qhT.js";import"./use-voice-input-DGpNCylm.js";import"./drawer-DXadnv_8.js";import"./use-mobile-U0e6QGNo.js";import"./index-DLFVDiMO.js";import"./select-DWaAXd8R.js";import"./index-BdQq_4o_.js";import"./index-BXsKfYZJ.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./empty-state-Bq2pKAom.js";import"./utils-DRn4O7AD.js";import"./calendar-CEemZB_B.js";import"./section-array-field-0bB0SP9C.js";import"./named-rule-step-B0cFtbUw.js";import"./slider-QPT-NoS7.js";import"./index-D-nHomQz.js";import"./tooltipContext-CGwQLnqp.js";import"./CategoricalChart-CKf8Yyge.js";import"./index-BqCBhDK1.js";import"./combobox-DsfTnWMd.js";import"./scroll-area-C44byneR.js";import"./hosted-reconcile-DYem52V_.js";import"./collapsible-DRJg67rf.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-DXYob3uY.js";import"./use-copy-B0bJTc_A.js";import"./use-task-board-items-DpI5X1-L.js";import"./config-CReIzLqM.js";import"./task-route-DkFPGqqO.js";import"./project-index-BeB0p8jY.js";import"./utils-CVEq3hMx.js";import"./shell-layout-Br0U0ibo.js";import"./use-deployment-admin-9g3NnFUn.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BwrJDiul.js";import"./integration-icon-xC728oQA.js";import"./project-icon-DzLoogsD.js";import"./use-navigate-to-agent-D9o_GRS4.js";import"./use-debounced-value-DfrfrzHX.js";import"./new-project-dialog-CJIzW540.js";import"./repository-picker-C6LBSgFD.js";import"./github-icon-BiXr0BnT.js";import"./collection-search-BMrWPTLQ.js";import"./new-project-store-CUMGMx8W.js";import"./legacy-admin-welcome-dialog-BdilK4Du.js";import"./required-auth-layout-msTgMG3w.js";import"./use-org-sso-Cy23Rsh-.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DG3_Q3ZF.js";import"./types-93zYNLaG.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./gateway-client-7v27Q-DB.js";import"./markdown-7s6OBK-6.js";import"./sheet-H_DS9XJb.js";import"./use-connection-qfJQ-1Sx.js";import"./use-mcp-prompts-Bo4GYlhV.js";import"./use-thread-outputs-BXlCD20Z.js";import"./file-type-icon-BSoZy34z.js";import"./use-move-blocks-DxPhfmd5.js";import"./sandbox-git-api-4eoXZPwi.js";import"./search-input-zqijIb2Z.js";import"./form-DC0J7PuZ.js";import"./content-changes-C1IdGdFF.js";import"./use-sandbox-events-C82W1a6-.js";import"./use-blocks-v8-project-Bt5ze2gk.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(Jt(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 Ws(l,e){const s=l.slice(0,e);return s.lastIndexOf("<a")>s.lastIndexOf("</a")}function Gs(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("<")&&!Ws(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 Qs(l,e){let s=l,a=0;for(const o of e){const n=Gs(s,o.quote,o.href);n.applied&&(s=n.blocks,a++)}return{blocks:s,applied:a}}function Ys({virtualMcpId:l,decofile:e,sections:s,currentKey:a,meta:o,hasAi:n,onApply:d}){const c=ee(),i=it(),[m,g]=Y.useState(!1),[x,h]=Y.useState(!1),[r,u]=Y.useState([]),[p,f]=Y.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(R=>R.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}=Qs(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 Ks={unit:"pt",initial:12,min:6,max:96},Zs=["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],Js=["[&_.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]=Y.useState(!1),[i,m]=Y.useState(null),[g,x]=Y.useState(null),h=p=>{l.chain().setImage({src:p}).run()},r=()=>{m(null),x(null)},u=()=>{const p=(i??"").trim(),f=Ye(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=Ye(p);f&&h(f)}})]})}function eo(l){const e=se.c(22),{editor:s,virtualMcpId:a}=l,o=ee(),[n,d]=Y.useState(!1);let c;e[0]!==s?(c={editor:s,selector:to},e[0]=s,e[1]=c):c=e[1];const i=Rs(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=Y.useRef(e);n.current=e;const d=Is({extensions:[...js(),zs.configure({placeholder:o("sandbox.postEditor.legacyContentPlaceholder")})],content:l,editorProps:{attributes:{class:Be(Zs)}},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:Ks,linkSources:c,extras:t.jsx(eo,{editor:d,virtualMcpId:a?.virtualMcpId})}),t.jsx(Os,{editor:d,className:Be("max-h-[70vh] overflow-y-auto",Js)})]}):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,R]=Y.useState(a);F!==a&&(R(a),T(k));const M=v=>{T(b),i.apply(a,v,b,()=>P(a))},D=(v,X)=>E({...b,[v]:X}),U=Yt("posts",d,Zt),z=Gt({orgSlug:l,virtualMcpId:e,branch:s},n),K=z.save,[H,V]=Y.useState(0),I=gs({decofile:n,post:b,previewBaseUrl:c,draftPointer:_,meta:d}),W=os(n,"posts",a,B(b.title)),Z=is(b),[G,$]=Y.useState(!1),Q=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,J=O.length===1?r("sandbox.postEditor.missingFieldSingular",{fields:Qe(O,r)}):r("sandbox.postEditor.missingFieldPlural",{fields:Qe(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(Rt,{isPending:p.isPending||z.isPending||A,isError:p.isError||z.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:J})]})]}),(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"}),W&&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(We,{value:"content",children:[t.jsx(Tt,{}),r("sandbox.postEditor.contentTab")]}),t.jsxs(We,{value:"settings",children:[t.jsx(wt,{}),r("sandbox.postEditor.settingsTab")]})]}),t.jsxs("div",{className:"flex shrink-0 items-center gap-3",children:[Z&&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(Ys,{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(Ge,{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:K,emptyMessage:r("sandbox.postEditor.noContentYet")},H)})}),t.jsx(Ge,{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(Kt,{schema:U,value:b,onChange:E,basePath:"post",meta:d,decofile:n,sandbox:{orgSlug:l,virtualMcpId:e,branch:s,threadId:u},onSaveReferencedBlock:K})]})})]})]})}),t.jsx(ft,{open:G,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(),Q()},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=Je(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=Je(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]=Y.useState(r),[f,S]=Y.useState(null),[C,w]=Y.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 Re=rs(y,He),Ve=i("sandbox.postEditor.slugDeduped",{slug:Re});p(Re),S(Ve),we.info(Ve),o("slug",Re)},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(ze,{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 R;e[37]!==o?(R=y=>o("excerpt",y.target.value),e[37]=o,e[38]=R):R=e[38];let M;e[39]!==F||e[40]!==R?(M=t.jsx(Ze,{id:"post-excerpt",value:F,onChange:R,rows:2}),e[39]=F,e[40]=R,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 z;e[47]!==U?(z=t.jsx(te,{htmlFor:"post-slug",children:U}),e[47]=U,e[48]=z):z=e[48];let K;e[49]===Symbol.for("react.memo_cache_sentinel")?(K=y=>{S(null),p(cs(y.target.value))},e[49]=K):K=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:K,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 W;e[58]!==z||e[59]!==V||e[60]!==I?(W=t.jsxs("div",{className:"space-y-2",children:[z,V,I]}),e[58]=z,e[59]=V,e[60]=I,e[61]=W):W=e[61];let Z;e[62]!==i?(Z=i("sandbox.postEditor.dateLabel"),e[62]=i,e[63]=Z):Z=e[63];let G;e[64]!==Z?(G={type:"string",format:"date",title:Z},e[64]=Z,e[65]=G):G=e[65];let $;e[66]!==s.date?($=B(s.date),e[66]=s.date,e[67]=$):$=e[67];let Q;e[68]!==o?(Q=y=>o("date",y),e[68]=o,e[69]=Q):Q=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]!==G||e[73]!==$||e[74]!==Q||e[75]!==O?(L=t.jsx(ze,{schema:G,value:$,onChange:Q,path:"post-date",label:O}),e[72]=G,e[73]=$,e[74]=Q,e[75]=O,e[76]=L):L=e[76];let J;e[77]!==i?(J=i("sandbox.postEditor.readTimeLabel"),e[77]=i,e[78]=J):J=e[78];let v;e[79]!==J?(v={type:"integer",title:J},e[79]=J,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(Qt,{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]!==W||e[91]!==L||e[92]!==le?(ae=t.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[W,L,le]}),e[90]=W,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(ze,{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(Ke,{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(Ke,{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,J)=>a({...d,[L]:J}),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(Ze,{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 R;e[52]!==d.image||e[53]!==E||e[54]!==A||e[55]!==F?(R=t.jsx(zt,{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]=R):R=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 z;e[63]!==i?(z=L=>i("canonical",L.target.value),e[63]=i,e[64]=z):z=e[64];let K;e[65]!==o?(K=o("sandbox.postEditor.seoCanonicalPlaceholder"),e[65]=o,e[66]=K):K=e[66];let H;e[67]!==U||e[68]!==z||e[69]!==K?(H=t.jsx(Ae,{id:"post-seo-canonical",value:U,onChange:z,placeholder:K,className:"h-10"}),e[67]=U,e[68]=z,e[69]=K,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 W;e[76]!==I?(W=t.jsx(te,{htmlFor:"post-seo-no-indexing",children:I}),e[76]=I,e[77]=W):W=e[77];const Z=d.noIndexing===!0;let G;e[78]!==i?(G=L=>i("noIndexing",L),e[78]=i,e[79]=G):G=e[79];let $;e[80]!==Z||e[81]!==G?($=t.jsx(Ot,{id:"post-seo-no-indexing",checked:Z,onCheckedChange:G}),e[80]=Z,e[81]=G,e[82]=$):$=e[82];let Q;e[83]!==W||e[84]!==$?(Q=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[W,$]}),e[83]=W,e[84]=$,e[85]=Q):Q=e[85];let O;return e[86]!==w||e[87]!==P||e[88]!==R||e[89]!==V||e[90]!==Q||e[91]!==r?(O=t.jsxs("div",{className:"space-y-5 border-t pt-5",children:[r,w,P,R,V,Q]}),e[86]=w,e[87]=P,e[88]=R,e[89]=V,e[90]=Q,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 Ke(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 ga(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(Wt,{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{ga 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-h5M7_u6d.js";import{I as ae}from"./icon-button-Cnb4QZQ2.js";import{c as Y,T as Z,a as ee}from"./tooltip-qtRvoONv.js";import{k as fe,aw as me,_ as xe}from"./agent-icon-BUzPMbYp.js";import{a as he}from"./MessageCircle01-B10kr5uX.js";import{s as pe}from"./XClose-CnRhNuQH.js";import{F as te,t as V,H as ue}from"./file-share-button-B3Eso6F1.js";import{f as je,F as be,a as ge}from"./file-preview-jYURLVeg.js";import{F as se}from"./file-type-icon-CoN_4-an.js";import{c as ve,a as we,e as ye}from"./use-org-fs-bkWpzofB.js";import{O as Pe,J as Ce}from"./chat-context-P9WWU84F.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-BAkS3I9t.js";import{I as ae}from"./icon-button-CrmRSiE7.js";import{c as Y,T as Z,a as ee}from"./tooltip-Duum-wbC.js";import{k as fe,aw as me,_ as xe}from"./agent-icon-BULE2fWe.js";import{a as he}from"./MessageCircle01-BpQQiBmH.js";import{s as pe}from"./XClose-DhprECXU.js";import{F as te,t as V,H as ue}from"./file-share-button-CL3J0zEg.js";import{f as je,F as be,a as ge}from"./file-preview-D4QUoORy.js";import{F as se}from"./file-type-icon-BSoZy34z.js";import{c as ve,a as we,e as ye}from"./use-org-fs-DlJPLDns.js";import{O as Pe,J as Ce}from"./chat-context-5XiEKH4L.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-h5M7_u6d.js";import{L as h}from"./preview-content-DimkdLXi.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-BAkS3I9t.js";import{L as h}from"./preview-content-CUkQe6Yi.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-h5M7_u6d.js";import{L as x}from"./preview-content-DimkdLXi.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-BAkS3I9t.js";import{L as x}from"./preview-content-CUkQe6Yi.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};