decocms 4.613.2 → 4.614.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 (433) hide show
  1. package/dist/client/assets/{AlertCircle-Dq-KNxM5.js → AlertCircle-DAO8Cblw.js} +1 -1
  2. package/dist/client/assets/{AreaChart-DJZ5kkMZ.js → AreaChart-DmQd6PSL.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-Dqn2bT_w.js → ArrowLeft-CT2LzszE.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CAgDickW.js → ArrowRight-pWGgV3sk.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-4sBBKZzK.js → ArrowUp-BJQg9AA1.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-B7HgfzTg.js → BookOpen01-NJdRqnsB.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-C6F39bSp.js → CartesianChart-vfIUAkaA.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-C1JOIphb.js → CategoricalChart-vKY4cy0c.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-C_Ajm69Q.js → CheckCircle-TiszLk0g.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CTfQz_yW.js → ChevronDown-DLp4f_Dh.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-wx6gpppj.js → ChevronSelectorVertical-CWnQQEhh.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-Bg3xtRAf.js → ChevronUp-CWIsOhVe.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-CB7PvVHx.js → CreditCard01-Cup3kK-t.js} +1 -1
  14. package/dist/client/assets/{Eye-DlR25mJG.js → Eye-CpYkFfrM.js} +1 -1
  15. package/dist/client/assets/{File02-B5-QN1Dl.js → File02-DIeMsRip.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-CN5vYo8p.js → Fingerprint04-DHrTMQWz.js} +1 -1
  17. package/dist/client/assets/{Globe04-H2BdZ0Ti.js → Globe04-B3z7rCIS.js} +1 -1
  18. package/dist/client/assets/{Image01-BFqudZKw.js → Image01-c7d3c0NN.js} +1 -1
  19. package/dist/client/assets/{Key01-DIFUZKO4.js → Key01-B4doqhLg.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-D8DREd3Q.js → LayoutLeft-W1QrQNCQ.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-OtZzvuyI.js → LinkBroken01-B1J8elNo.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-DiHU7gWc.js → MessageCircle01-B4uczpCj.js} +1 -1
  23. package/dist/client/assets/{Minus-C-L0uUsK.js → Minus-CjA8gEfB.js} +1 -1
  24. package/dist/client/assets/{Monitor01-Dd5mByvl.js → Monitor01-Sf2_a_zw.js} +1 -1
  25. package/dist/client/assets/{Play-Cz8nUNXY.js → Play-BoXUJR8B.js} +1 -1
  26. package/dist/client/assets/{Plus-Hrr9Aktn.js → Plus-C9Aly22c.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-DVi6s9_q.js → ReferenceLine-CN7wd2Ky.js} +1 -1
  28. package/dist/client/assets/{SearchMd-Bw_DK2gP.js → SearchMd-BGdlYs4L.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-BcP4nQLO.js → ShoppingBag01-Csv6OfPx.js} +1 -1
  30. package/dist/client/assets/{Sun-BBMaxO6y.js → Sun-BV3Rjj5o.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-DLzxh9Gd.js → SwitchHorizontal01-BypmkJpL.js} +1 -1
  32. package/dist/client/assets/{Tool01-nVLtxvHv.js → Tool01-AKltE4in.js} +1 -1
  33. package/dist/client/assets/{Tooltip-B1HSol_f.js → Tooltip-CCQIZeI4.js} +1 -1
  34. package/dist/client/assets/{Trash01-Dh6D7ABD.js → Trash01-BIsikoZ9.js} +1 -1
  35. package/dist/client/assets/{Upload01-CuWxQjza.js → Upload01-KlZn1WFA.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-C0gKOYWe.js → UserCheck01--3bpkFxi.js} +1 -1
  37. package/dist/client/assets/{UserSquare-DqYKKMSn.js → UserSquare-DQ1GTm9S.js} +1 -1
  38. package/dist/client/assets/{Users01-BFb0vp-t.js → Users01-1IU76HkK.js} +1 -1
  39. package/dist/client/assets/{XClose-CcNfsDjh.js → XClose-DjYKMVV7.js} +1 -1
  40. package/dist/client/assets/{Zap-Dg9_Uuep.js → Zap-CAuzJCQQ.js} +1 -1
  41. package/dist/client/assets/{access-gate-B0BUDTBB.js → access-gate-BjKwrEoi.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-D8yvZRqW.js → add-connection-dialog-BhDktSiS.js} +1 -1
  43. package/dist/client/assets/agent-app-0w4aCRlp.js +1 -0
  44. package/dist/client/assets/{agent-assets-D4pZ70ME.js → agent-assets-C3ECJx34.js} +1 -1
  45. package/dist/client/assets/{agent-automation-Bou8c436.js → agent-automation-Bcjl85RL.js} +1 -1
  46. package/dist/client/assets/{agent-automations-9MMhBcJW.js → agent-automations-B2eTQS99.js} +1 -1
  47. package/dist/client/assets/{agent-blog-BB8ao3RW.js → agent-blog-Cye4FB7J.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-CYDyrSUs.js → agent-blog-post-BDlwkMB5.js} +2 -2
  49. package/dist/client/assets/{agent-business-case-BTaC_R0K.js → agent-business-case-BHzosbfk.js} +1 -1
  50. package/dist/client/assets/{agent-calendar-COMylNyr.js → agent-calendar-C7jxdDxm.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-B548bjTr.js → agent-capabilities-CqBL254L.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-CoXgdwS0.js → agent-connect-sources-BgiXxdZo.js} +1 -1
  53. package/dist/client/assets/agent-deck-CD3LQQ2o.js +1 -0
  54. package/dist/client/assets/{agent-e2e-C65B8hGv.js → agent-e2e-CRkMEwdK.js} +1 -1
  55. package/dist/client/assets/agent-experiments-BANE_Vte.js +1 -0
  56. package/dist/client/assets/agent-file-h2ha3iyY.js +1 -0
  57. package/dist/client/assets/{agent-hosting-D4Z6xzJ7.js → agent-hosting-DSGfXe7D.js} +1 -1
  58. package/dist/client/assets/{agent-icon-TiRfS6qN.js → agent-icon-0bk2UcIS.js} +1 -1
  59. package/dist/client/assets/agent-library-BlVrt-Mh.js +1 -0
  60. package/dist/client/assets/agent-library-file-DA1vwjxZ.js +1 -0
  61. package/dist/client/assets/agent-overview-BzPLYj0I.js +1 -0
  62. package/dist/client/assets/{agent-releases-ChNVOFY0.js → agent-releases-aK-8TPYt.js} +1 -1
  63. package/dist/client/assets/agent-settings-BHHaGITT.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-DeBHGJyd.js → agent-site-editor-CdKQGd7Z.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-B18xGY1I.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-BTzSjidc.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-CsSmNnGy.js +1 -0
  68. package/dist/client/assets/agent-view-D-JWIh6v.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-6uqg13NS.js → agent-view-guard-DqvQ1F6B.js} +1 -1
  70. package/dist/client/assets/{ai-providers-CU_EzZfp.js → ai-providers-BeS15LZf.js} +1 -1
  71. package/dist/client/assets/{alert-BAKJ5tDY.js → alert-B4E-pz_8.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-kXxFHR8K.js → analytics-sections-Ds7eb47h.js} +1 -1
  73. package/dist/client/assets/api-keys-C9noRsfE.js +1 -0
  74. package/dist/client/assets/{api-keys-F_tbBvf0.js → api-keys-Ca0zqoWz.js} +1 -1
  75. package/dist/client/assets/{app-editor-CBnearTx.js → app-editor-BrH3BC5S.js} +1 -1
  76. package/dist/client/assets/{asset-utils-HMGAdoDi.js → asset-utils-CTNjcxfT.js} +1 -1
  77. package/dist/client/assets/{auth-D02eFBMZ.js → auth-Cp8AG92B.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-e7kz1Zn1.js → auth-catchall-D0SukS2x.js} +1 -1
  79. package/dist/client/assets/{auth-entry-BCAumgkq.js → auth-entry-eEnICvFw.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-eS8OY8FQ.js → auth-split-layout-CdXFMg0a.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-ByjK-IN5.js → authenticate-and-persist-oauth-CbpIFClV.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-BVpyBCbG.js → automation-list-row-BrsDauKw.js} +1 -1
  83. package/dist/client/assets/{automation-runs-CNPxxThM.js → automation-runs-dj99ZHlz.js} +1 -1
  84. package/dist/client/assets/{automations-Dq3dBjCm.js → automations-DLNV1FeW.js} +1 -1
  85. package/dist/client/assets/{badge-BBSQh6Uu.js → badge-MSgPF8i6.js} +1 -1
  86. package/dist/client/assets/{block-document-RjLwgnqu.js → block-document-d5qeh-5R.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-BPIeOkFy.js → blocks-preview-workspace-context-k6_o_sTg.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-BK5yayIF.js → blocks-tab-states-C8EhNA94.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-C-j3cWFn.js → blog-preview-url-Bd4vzpOU.js} +1 -1
  90. package/dist/client/assets/{blog-schema-DECpfoR_.js → blog-schema-96Hbg5pM.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-4Qts-ar8.js → blog-source-gate-CVk34e-_.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-DhsbDKri.js → blog-view-gate-B2RpRsK5.js} +1 -1
  93. package/dist/client/assets/{buckets-wb15whxi.js → buckets-CxKFg1Rq.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-DEjZ9hmy.js → build-improve-prompt-doc-D2jdOkRZ.js} +1 -1
  95. package/dist/client/assets/{calendar-D9jiUY0V.js → calendar-BvlMTEJz.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-CejuD9Wa.js → capability-load-error-BIP7OfRW.js} +1 -1
  97. package/dist/client/assets/{category-editor-CehKb-Ft.js → category-editor-B6OhTBuY.js} +1 -1
  98. package/dist/client/assets/{category-tree-B0yO1Gq4.js → category-tree-CfcuYGq1.js} +1 -1
  99. package/dist/client/assets/{chart-Di4PD1Ji.js → chart-qPtsM-po.js} +1 -1
  100. package/dist/client/assets/{chat-context-DpOzXt67.js → chat-context-DjT4b8lQ.js} +24 -25
  101. package/dist/client/assets/{chat-draft-5W1w5RyD.js → chat-draft-CCkjIQCm.js} +1 -1
  102. package/dist/client/assets/{checkbox-DONKjPez.js → checkbox-DDfyr6g6.js} +1 -1
  103. package/dist/client/assets/{choose-editor-D6fBK6_s.js → choose-editor-C7Ola2VR.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-D5JPZlKL.js → cli-auth-success-Cd8H0jhw.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-B-tSTY59.js → cms-settings-editor-DUScdF0j.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-COCpu3ir.js → cms-store-drafts-713r2LTs.js} +1 -1
  107. package/dist/client/assets/{collapsible-Bkbqa1G8.js → collapsible-B2z4b61B.js} +1 -1
  108. package/dist/client/assets/{collection-detail-C9zAMC1T.js → collection-detail-BXtc6ekK.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-B_m3Bbl9.js → collection-display-button-TJREQ-hZ.js} +1 -1
  110. package/dist/client/assets/{collection-search-CpEkYZRJ.js → collection-search-DMUeYNum.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-25JYiKDs.js → collection-table-wrapper-Blb8NJFf.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-CcFA7CAt.js → collection-tabs-DXVhkE7f.js} +1 -1
  113. package/dist/client/assets/{combobox-CtbjK522.js → combobox-DBLqJQwK.js} +1 -1
  114. package/dist/client/assets/{command-DOsfIbnR.js → command-CMA98G_b.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-ChQXno59.js → companion-mcps-section-C6ssP1JL.js} +1 -1
  116. package/dist/client/assets/{config-SXpXedVw.js → config-DmE-h3o5.js} +1 -1
  117. package/dist/client/assets/{connect-FNLd1CWe.js → connect-BC31DKmL.js} +1 -1
  118. package/dist/client/assets/{connect-key-NAk-jeH9.js → connect-key-CPt8mh8U.js} +1 -1
  119. package/dist/client/assets/{connect-layout-DOfe8ci6.js → connect-layout-DKIHuML_.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-8Z_ZVQcB.js → connect-source-dialog-fXZLh_sB.js} +1 -1
  121. package/dist/client/assets/{connection-DVaoR-0s.js → connection-BwZ4lmw2.js} +1 -1
  122. package/dist/client/assets/{connection-card-B1-XvXXp.js → connection-card-BPzewKTU.js} +1 -1
  123. package/dist/client/assets/{connection-detail-OV0LjFGf.js → connection-detail-TaI_RvqN.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-jkxcvfr-.js → connection-form-helpers-Dh-UO47F.js} +1 -1
  125. package/dist/client/assets/{connection-slug-woWVmFSM.js → connection-slug-RL5I0rfj.js} +1 -1
  126. package/dist/client/assets/{connections-DPkjll4_.js → connections-DGerGDKv.js} +1 -1
  127. package/dist/client/assets/{content-changes-CL5pqu3o.js → content-changes-CHbng7Fl.js} +1 -1
  128. package/dist/client/assets/{content-tab-DTlwh5lS.js → content-tab-n2PFPVPw.js} +3 -3
  129. package/dist/client/assets/{context-Bzdt0Vmq.js → context-3oFD507u.js} +1 -1
  130. package/dist/client/assets/{context-menu-DuU5Im6X.js → context-menu-DIpwBrgd.js} +1 -1
  131. package/dist/client/assets/{context-shell-C34E3UmN.js → context-shell-CNgVrDrh.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-DCXCnTtw.js → create-organization-dialog-CxHpYFD9.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-pGzxz6az.js → daily-pulse-B1DjserV.js} +1 -1
  134. package/dist/client/assets/{delete-copy-DrkS10Tk.js → delete-copy-DzXdPBt9.js} +1 -1
  135. package/dist/client/assets/{device-hint-D2mnF0WW.js → device-hint-BAwO2-11.js} +1 -1
  136. package/dist/client/assets/{discover-CxlzrXFo.js → discover-Cy4nx0DQ.js} +1 -1
  137. package/dist/client/assets/{domain-settings-5GZZzP9P.js → domain-settings-CfCFdjWH.js} +1 -1
  138. package/dist/client/assets/{drawer-DBYfxUc5.js → drawer--TAK3w4e.js} +1 -1
  139. package/dist/client/assets/{editor-k1lz5vd2.js → editor-Di-PiOHZ.js} +1 -1
  140. package/dist/client/assets/{editor-classes-Dt9x0HTK.js → editor-classes-DoqQAPex.js} +1 -1
  141. package/dist/client/assets/{empty-state-DG74voMp.js → empty-state-BxQvC8dr.js} +1 -1
  142. package/dist/client/assets/{empty-state-BaX7qcT6.js → empty-state-DVbcNWDh.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-BuTlL0UN.js → experiments-tab-choice-H9XZQm5N.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-D8RA7aNY.js → extract-connection-data-BIXY1F36.js} +1 -1
  145. package/dist/client/assets/{feature-gate-INFDgxGv.js → feature-gate-CPiqJcA7.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-DzuuNoC0.js → feature-paywall-DInbXGdg.js} +1 -1
  147. package/dist/client/assets/{file-explorer-BzowyIJt.js → file-explorer-YURfBwo8.js} +1 -1
  148. package/dist/client/assets/{file-preview-CFmw-Mpm.js → file-preview-69js7s8F.js} +1 -1
  149. package/dist/client/assets/{file-share-button-jBqCmXDE.js → file-share-button-CKuUsk2M.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-DDtj-qsY.js → file-type-icon-DNMrvTXh.js} +1 -1
  151. package/dist/client/assets/{folder-icon-C6S6S7y5.js → folder-icon-Sye7ezIF.js} +1 -1
  152. package/dist/client/assets/{form-Dj9qATwb.js → form-DPvjiqhu.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-DfV5ZXB6.js → frame-navigation-A0LVte-y.js} +1 -1
  154. package/dist/client/assets/{gateway-client-Bt-zgCod.js → gateway-client-BZYQ57Xz.js} +1 -1
  155. package/dist/client/assets/{general-DcAkDAnh.js → general-D2mCv6M6.js} +1 -1
  156. package/dist/client/assets/{github-icon-CA0Se8ib.js → github-icon-Csyi9aVw.js} +1 -1
  157. package/dist/client/assets/{held-block-view-DjEfvbV2.js → held-block-view-Cz6SKldK.js} +1 -1
  158. package/dist/client/assets/{home-BskRwsLF.js → home-Cbai8otj.js} +1 -1
  159. package/dist/client/assets/{home-overview-BtB0DXFZ.js → home-overview-Beeq-x1h.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-5ztqbsR8.js → hosted-reconcile-BmTwITCX.js} +1 -1
  161. package/dist/client/assets/{icon-button-C-do25HN.js → icon-button-T38urafn.js} +1 -1
  162. package/dist/client/assets/{index-IihCyBIe.js → index-B4as1hxW.js} +1 -1
  163. package/dist/client/assets/{index-DFlR3TGo.js → index-BBtvnV78.js} +1 -1
  164. package/dist/client/assets/{index-B9qoaIXB.js → index-BRpTnqSP.js} +1 -1
  165. package/dist/client/assets/{index-CKWVjdl2.js → index-BTqCAGGA.js} +1 -1
  166. package/dist/client/assets/{index-Cbr3sV-N.js → index-Bg2Sq8-p.js} +1 -1
  167. package/dist/client/assets/{index-TxpTb6t-.js → index-BmFua4_V.js} +3 -3
  168. package/dist/client/assets/{index-rQ7Z7wiX.js → index-CEvi6MRf.js} +1 -1
  169. package/dist/client/assets/{index-BqI8xAEu.js → index-CHJQo1pu.js} +1 -1
  170. package/dist/client/assets/{index-D4h9lMWL.js → index-CObSRL90.js} +1 -1
  171. package/dist/client/assets/{index-hsXsAM7a.js → index-CekzbOTN.js} +1 -1
  172. package/dist/client/assets/{index-s9Fdb2Os.js → index-CufGYOzR.js} +1 -1
  173. package/dist/client/assets/{index-CxzzYASZ.js → index-D0kUoV3I.js} +1 -1
  174. package/dist/client/assets/{index-DI7rDat7.js → index-D1g4VlMb.js} +1 -1
  175. package/dist/client/assets/{index-BkmXMKSP.js → index-De6pkEUU.js} +1 -1
  176. package/dist/client/assets/{index-OS1HwRA4.js → index-j19Cnreh.js} +1 -1
  177. package/dist/client/assets/{index-CmIQCfmv.js → index-qLQc7GJ9.js} +1 -1
  178. package/dist/client/assets/{index-redirect-B1lzC4kG.js → index-redirect-BURqf7qm.js} +1 -1
  179. package/dist/client/assets/{index-DV21r4ku.js → index-vb6x8krx.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-DIsWsg7j.js → infiniteQueryObserver-B07wc3gz.js} +1 -1
  181. package/dist/client/assets/{infra-billing-Cv366YeZ.js → infra-billing-mI9_ZX9w.js} +1 -1
  182. package/dist/client/assets/{input-B0bn39Xh.js → input-BtWx1h9I.js} +3 -3
  183. package/dist/client/assets/{input-D3XRlNJ0.js → input-SdMF8jO-.js} +1 -1
  184. package/dist/client/assets/{integration-icon-BwJVBZD3.js → integration-icon-CgXZyLPZ.js} +1 -1
  185. package/dist/client/assets/{item-actions-sAOtmY_t.js → item-actions-CsyJY4hq.js} +1 -1
  186. package/dist/client/assets/{jira-icon-DnVzGbtF.js → jira-icon-c5TocDCn.js} +1 -1
  187. package/dist/client/assets/{label-DBXumtTI.js → label-DLrqdV8m.js} +1 -1
  188. package/dist/client/assets/{layout-B01bM09Y.js → layout-CAAWA3dA.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-BpjGA_Qv.js → legacy-admin-welcome-dialog-DE1LU3w1.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-D4KFdpXi.js → legacy-agents-deep-DuAPkgg8.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-DtMiSRM8.js → legacy-main-redirect-DTLo_Dyv.js} +1 -1
  192. package/dist/client/assets/library-DsCGjda2.js +1 -0
  193. package/dist/client/assets/{library-tab-DmJI4J-D.js → library-tab-DeUw_4zK.js} +1 -1
  194. package/dist/client/assets/{login-BeE0wfrC.js → login-C2y7Yh92.js} +1 -1
  195. package/dist/client/assets/{markdown-hcA80xrk.js → markdown-BFHFiMsu.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-CLV9FGK8.js → mcp-app-renderer-BElODDsa.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-5-PCIXK8.js → mcp-oauth-ac-uLk4g.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-D2tuj_Fq.js → mcp-oauth-rLBhBYCb.js} +1 -1
  199. package/dist/client/assets/{members-Dy1mBWZ8.js → members-Cx0v1fnV.js} +1 -1
  200. package/dist/client/assets/{memory-BrJnBalp.js → memory-CUyoxZNc.js} +1 -1
  201. package/dist/client/assets/{mock-board-CPIKUKL1.js → mock-board-a3EqpDi2.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-DMwFk1Pi.js → monaco-editor-B_7PVA6R.js} +1 -1
  203. package/dist/client/assets/{monitoring-CnoT48hP.js → monitoring-DO5IV-Bu.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-BBhVaUWr.js → monitoring-stats-row-BrQLx0B-.js} +1 -1
  205. package/dist/client/assets/{multi-select-D4aZZa9s.js → multi-select-D7EVDx2J.js} +1 -1
  206. package/dist/client/assets/{mustache-CGuBlULa.js → mustache-Q6yQ8khe.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-JGMEcn4W.js → named-rule-step-CFoc5qUE.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-BfDnPZe1.js → named-rule-view-DO9utpu1.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-dB7_i4Qt.js → new-project-dialog-BZK8ka6l.js} +1 -1
  210. package/dist/client/assets/{new-project-store-yM3ZBfr8.js → new-project-store-DwU6DopG.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-BRFLeRze.js → oauth-callback-CNfYP0kC.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-ai-provider-BIkfCc8L.js → oauth-callback-ai-provider-C2uXF8m_.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-n4PMUX9j.js → oauth-consent-CllrUvYR.js} +1 -1
  214. package/dist/client/assets/{onboarding-COIJY0bR.js → onboarding-DhXbs-fH.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-DJJmihen.js → openai-conversation-CD5iNQyb.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-CyT7T37Q.js → optimistic-project-sidebar-views-BOWGMupL.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-xy0NwjGB.js → order-monitor-day-Bg7cKKH8.js} +1 -1
  218. package/dist/client/assets/{organization-choice-Dd6EFRi5.js → organization-choice-AvOqhGWN.js} +1 -1
  219. package/dist/client/assets/{orgs-CVbB4v1z.js → orgs-Djb91Ddh.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-hyTDXYqP.js → own-accounts-section-DY05KyFR.js} +1 -1
  221. package/dist/client/assets/{pair-Cpn9911A.js → pair-DwdNU8in.js} +1 -1
  222. package/dist/client/assets/{parse-sections-BNgGwb6K.js → parse-sections-BfJ0En-V.js} +2 -2
  223. package/dist/client/assets/plan-DsJjzSpH.js +1 -0
  224. package/dist/client/assets/{plan-ladder-SUG2zxVV.js → plan-ladder-k40NveZy.js} +1 -1
  225. package/dist/client/assets/{plan-page-B97PZapX.js → plan-page-BWctllEJ.js} +1 -1
  226. package/dist/client/assets/{plan-usage-card-v0p0iaSW.js → plan-usage-card-BQXVDdHv.js} +1 -1
  227. package/dist/client/assets/{popover-BhQvI6Ci.js → popover-DXE2ZxJe.js} +1 -1
  228. package/dist/client/assets/{post-calendar-CJI0B6nx.js → post-calendar-DnnzK0Zf.js} +1 -1
  229. package/dist/client/assets/{post-editor-Bm9waQu0.js → post-editor-CLcH6e9N.js} +1 -1
  230. package/dist/client/assets/{preview-content-v0t5au3m.js → preview-content-Bz-He8KU.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-_4bYbxJT.js → preview-dialog-wmutK6r5.js} +1 -1
  232. package/dist/client/assets/{preview-panel-CT3YwHBi.js → preview-panel-BLn0wZ0O.js} +1 -1
  233. package/dist/client/assets/{preview-tab-DnzBBG3r.js → preview-tab-DQ9iO25O.js} +3 -3
  234. package/dist/client/assets/{primitives-B09ImGmM.js → primitives-DhPOvKh2.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-BpoeAcrJ.js → product-picker-dialog-CU4RdL1t.js} +1 -1
  236. package/dist/client/assets/{profile-B2mQKj4P.js → profile-z_q_kXbV.js} +1 -1
  237. package/dist/client/assets/{project-app-view-CJ0A-hzz.js → project-app-view-B-aHXB5j.js} +1 -1
  238. package/dist/client/assets/{project-apps-DTdFltAq.js → project-apps-BjG-gQ2D.js} +1 -1
  239. package/dist/client/assets/{project-icon-79iKoL5J.js → project-icon-DQECQJRO.js} +1 -1
  240. package/dist/client/assets/{project-index-Dvzw5ZPI.js → project-index-Bh9jfwR8.js} +1 -1
  241. package/dist/client/assets/project-reports-Bj7jiUWg.js +1 -0
  242. package/dist/client/assets/project-tasks-BXiKvYiD.js +1 -0
  243. package/dist/client/assets/{projects-DeIxK4ey.js → projects-BSlWm-Wh.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-BXwSmEvF.js → projects-empty-state-CPzIeLmU.js} +1 -1
  245. package/dist/client/assets/{prompts-BtYZ6KQi.js → prompts-PfNwUNQI.js} +1 -1
  246. package/dist/client/assets/record-editor-CjhnirQn.js +1 -0
  247. package/dist/client/assets/{redirect-editor-FE4kqSSu.js → redirect-editor-DPFYJLy_.js} +1 -1
  248. package/dist/client/assets/reports-DIz5OTLp.js +1 -0
  249. package/dist/client/assets/{reports-P6WItYho.js → reports-_AG0d3B_.js} +1 -1
  250. package/dist/client/assets/{reports-onboarding-DQj52VFI.js → reports-onboarding-DVc0ggVW.js} +1 -1
  251. package/dist/client/assets/{reports-tab-ChXJb_14.js → reports-tab-CkaQ9mZO.js} +2 -2
  252. package/dist/client/assets/{repositories-C9coyoWr.js → repositories-BY5EZJ6Z.js} +1 -1
  253. package/dist/client/assets/repositories-DGImKazf.js +1 -0
  254. package/dist/client/assets/{repository-binding-C6Q6rTCq.js → repository-binding-CabkwAHk.js} +1 -1
  255. package/dist/client/assets/{repository-picker-qO39HBTX.js → repository-picker-C5foJ37k.js} +1 -1
  256. package/dist/client/assets/{require-capability-BGgQVq09.js → require-capability-FySDF95c.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-C0Zoqnd5.js → required-auth-layout-BPH0ESw7.js} +1 -1
  258. package/dist/client/assets/{reset-password-DR2sfETw.js → reset-password-Xt58kreD.js} +1 -1
  259. package/dist/client/assets/{resizable-BU4mxyhl.js → resizable-CD_IWP4z.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-DzSk2OX5.js → resolve-tab-icon-PxjRZX1H.js} +1 -1
  261. package/dist/client/assets/{review-settings-CkjRPLoQ.js → review-settings-kLfb142p.js} +1 -1
  262. package/dist/client/assets/{role-color-ofXYD2zQ.js → role-color-IuFM2ryV.js} +1 -1
  263. package/dist/client/assets/{roles-CeC1qNxL.js → roles-ChChHxNe.js} +1 -1
  264. package/dist/client/assets/{route-CbX_GqVG.js → route-B8iUhppJ.js} +1 -1
  265. package/dist/client/assets/route-BxTybqtK.js +1 -0
  266. package/dist/client/assets/{route-Q-TODpFM.js → route-CrNL-7g4.js} +1 -1
  267. package/dist/client/assets/{route-page-header-1R1hO2lM.js → route-page-header-DCLl7OR3.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-b8vIZog_.js → sandbox-git-api-Col1MWY3.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-ByKDEtoo.js → sandbox-lifecycle-context-D5b-1gmk.js} +1 -1
  270. package/dist/client/assets/{save-status-BSEg8O16.js → save-status-DRBFObbb.js} +1 -1
  271. package/dist/client/assets/{schema-BMMpRaT7.js → schema-C9adA9zO.js} +1 -1
  272. package/dist/client/assets/schema-DSiYMOaw.js +1 -0
  273. package/dist/client/assets/{scroll-area-BX1dEYr0.js → scroll-area-eq_7FsGx.js} +1 -1
  274. package/dist/client/assets/{search-input-Cqw1sfoq.js → search-input-BoK5M9a3.js} +1 -1
  275. package/dist/client/assets/{search-toggle-DFPiKmeS.js → search-toggle-BjojcpZc.js} +1 -1
  276. package/dist/client/assets/{secret-picker-DM_GCERi.js → secret-picker-CYgqZ7Hs.js} +1 -1
  277. package/dist/client/assets/{secrets-BZLR1Tiv.js → secrets-BKHsbBC1.js} +1 -1
  278. package/dist/client/assets/{section-array-field-C53JCS6V.js → section-array-field-CFTEx6aa.js} +1 -1
  279. package/dist/client/assets/{sections-Dm3F-fbD.js → sections-dcTP2l6r.js} +1 -1
  280. package/dist/client/assets/{sections-editor-DqVIkY4X.js → sections-editor-abMn7yC2.js} +1 -1
  281. package/dist/client/assets/{select-B043gNlI.js → select-BeWEAY37.js} +1 -1
  282. package/dist/client/assets/{select-model-ey39mV4L.js → select-model-BYnA0Gwu.js} +1 -1
  283. package/dist/client/assets/{seo-editor-3qfBE8tb.js → seo-editor-DSBQXHQz.js} +1 -1
  284. package/dist/client/assets/{separator-BbdzmQ7G.js → separator-NMEa418C.js} +1 -1
  285. package/dist/client/assets/{session-runtime-C7t2dJ2C.js → session-runtime-C2nnx1Yy.js} +1 -1
  286. package/dist/client/assets/settings-tab-CGly607F.js +1 -0
  287. package/dist/client/assets/{sheet-BabUGgfu.js → sheet-kN_qJtMS.js} +1 -1
  288. package/dist/client/assets/{shell-layout-CQtuJ10m.js → shell-layout-3lFHGRrU.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-RiUXDN62.js → site-draft-actions-B9Zn1-TU.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-C02Ag8Td.js → site-draft-view-DNdjn9-p.js} +1 -1
  291. package/dist/client/assets/site-editor-DMFFmEQP.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-Dw3Pw8Me.js → site-editor-toast-XhGY7zwS.js} +1 -1
  293. package/dist/client/assets/{skills-CHy7b1a1.js → skills-BOhR4tMn.js} +1 -1
  294. package/dist/client/assets/{slider-Cuy5OPtR.js → slider-C7epTuZ8.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-DsfJ7ZSD.js → sortable.esm-cU4I4793.js} +1 -1
  296. package/dist/client/assets/{sso-a2YGfBSd.js → sso-DTIktZWR.js} +1 -1
  297. package/dist/client/assets/{suggestion-C_46bv7Q.js → suggestion-DDGRykra.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-Cu75RS7q.js → super-agent-icon-DuRj24lp.js} +1 -1
  299. package/dist/client/assets/{switch-CYj4jY2U.js → switch-BDueaRYD.js} +1 -1
  300. package/dist/client/assets/{synced-repos-_8GdV1yJ.js → synced-repos-C9zElGzV.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-C0XKpT27.js → tab-icon-glyph-DDgZ5H3d.js} +1 -1
  302. package/dist/client/assets/{table-C7JAS84x.js → table-DVo_G9_3.js} +1 -1
  303. package/dist/client/assets/{tabs-BjPWlou5.js → tabs-CdvvfON1.js} +1 -1
  304. package/dist/client/assets/{task-board-nk38_QK1.js → task-board-Yoy13hyS.js} +1 -1
  305. package/dist/client/assets/{task-key-BqL0wDoN.js → task-key-C5ElV36G.js} +1 -1
  306. package/dist/client/assets/{task-route-I0jIuRPI.js → task-route-Ch0tFEd1.js} +1 -1
  307. package/dist/client/assets/{task-status-bacBrTx-.js → task-status-DTW_J3bv.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-DlpWTStQ.js → taskboard-analytics-DKHMo41r.js} +1 -1
  309. package/dist/client/assets/{tasks-D3aEqkkc.js → tasks-C5GIN5E_.js} +1 -1
  310. package/dist/client/assets/tasks-DvmfNBQ-.js +1 -0
  311. package/dist/client/assets/{textarea-BtM4NiRw.js → textarea-DLWBFN0v.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-Dc7tir8o.js → thread-analytics-BTLWyHKx.js} +1 -1
  313. package/dist/client/assets/{thread-button-DCotVRko.js → thread-button-DhVQCmsX.js} +1 -1
  314. package/dist/client/assets/{thread-intent-xzBTK_RX.js → thread-intent-_uutGDUM.js} +1 -1
  315. package/dist/client/assets/{thread-route-De5HF2y6.js → thread-route-6FnoI5qD.js} +1 -1
  316. package/dist/client/assets/{thread-route-CHHapqFU.js → thread-route-D1CUkAJD.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-C-nzP9iT.js → thread-sheet-body-Cub1fKq-.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-BegNa_X6.js → time-range-picker-BMwT3626.js} +1 -1
  319. package/dist/client/assets/{toggle-group-DKY7ztEe.js → toggle-group-DWX0nZ4H.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-DgXNH17f.js → tool-set-selector-ALSL3hVp.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-uzcw3yD2.js → toolbar-icon-button-Dqj7VQX8.js} +1 -1
  322. package/dist/client/assets/{tooltip-DYXaNugu.js → tooltip-CZRZIxk-.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-Jj9fHDnV.js → tooltipContext-C809C4iy.js} +1 -1
  324. package/dist/client/assets/{track-Bq86LoP3.js → track-bHg709cw.js} +1 -1
  325. package/dist/client/assets/{types-CIVGvpZ0.js → types-DlpVggui.js} +1 -1
  326. package/dist/client/assets/{url-slug-DMOAQ_lT.js → url-slug-BB82g1u7.js} +1 -1
  327. package/dist/client/assets/{usage-stats-BDD0I25a.js → usage-stats-DoFb8ztD.js} +1 -1
  328. package/dist/client/assets/{use-ai-providers-B_vRXviN.js → use-ai-providers-BiyN-WCF.js} +1 -1
  329. package/dist/client/assets/{use-api-keys-uAL0hDQR.js → use-api-keys-Cxi_5Vd-.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-Dk0qpjV1.js → use-apply-named-rule-DYECMRmC.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-BxctC8S7.js +1 -0
  332. package/dist/client/assets/{use-automations-DRPUZksG.js → use-automations-QvQ9-U2U.js} +1 -1
  333. package/dist/client/assets/{use-autosave-DV_OoQIn.js → use-autosave-daygBqez.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-B-t0WNBy.js +1 -0
  335. package/dist/client/assets/use-blog-view-BIvVJJix.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-Cyyj9Un-.js → use-chat-layout-state-0AI7ifjI.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-OZwei3g4.js → use-cms-publish-actions-BftFrua2.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-BYNhLNMG.js → use-connect-companion-m06ztMgB.js} +1 -1
  339. package/dist/client/assets/{use-connection-IXleYE4j.js → use-connection-B0cGUNwk.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-BMrVE7lN.js → use-content-sync-Uc9pHBlX.js} +1 -1
  341. package/dist/client/assets/{use-copy-9udQq6fq.js → use-copy-DBQlG5IR.js} +1 -1
  342. package/dist/client/assets/{use-current-view-mBQFHLUH.js → use-current-view-C2oQ48ps.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-BQ8fok30.js → use-date-fns-locale-CTETVyWx.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-CKKt6tHK.js → use-debounced-autosave-MeU8h_HM.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-CbXd2Ffh.js → use-debounced-value-DuUlLfhZ.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-Cqj99_dF.js → use-deco-credits-Uln4dtix.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-CSZ1As5G.js → use-decopilot-events-CMFmWECg.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-Do2HxsU1.js → use-delete-block-C86wRu-_.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-DrCH_dJP.js → use-delete-connection-DOgqGw9b.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-TEfqeIeo.js → use-deployment-admin-D_-Itupi.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-DQIFZSxg.js → use-entitlements-Dia0AILI.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-DKxuxaaY.js → use-fast-preview-draft-url-CknqyNDE.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-BUa8LWQS.js → use-file-configs-CzQQ90JX.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-LPkxd-T5.js → use-id-selection-19rSeTxc.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-CMsR7cZQ.js → use-in-settings-Bq0BGd_d.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-BGCSyRP9.js → use-inbox-feed-n8hshusZ.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-BCd_t7BT.js → use-infinite-scroll-BH-5t-Jt.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-BQQOoEyQ.js → use-join-requests-BL2OdQfH.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-DOFIkafU.js → use-main-panel-tabs-CC60Yh9H.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-BbCzZJ_7.js → use-mcp-auth-status-DSNKfIOW.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-ExS_LtHV.js → use-mcp-client-TEXwfWPr.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-CMM6TNGu.js → use-mcp-prompts-BaL3X4-_.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-CCU4p9Rz.js → use-mcp-tools-B28YCUnj.js} +1 -1
  364. package/dist/client/assets/{use-mobile-CJUXV6Cd.js → use-mobile-G7Femuy-.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-CVrXFQf9.js → use-move-blocks-DOZBEkmq.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-GgUPd_lv.js → use-navigate-to-agent-ecN99SMa.js} +1 -1
  367. package/dist/client/assets/{use-never-published-BXBSYXJD.js → use-never-published-Dx3XaQEP.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-7ZhjAHDq.js → use-org-fs-DJGPTW8O.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-DZNaXzPK.js → use-org-notice-C1K-wnIy.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-CU6eNoAC.js → use-org-repo-syncs-BYwpsVLM.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-BKEBkMtq.js → use-org-sso-B8YY7LK8.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-BMzmJwkq.js → use-organization-settings-DnrsF2IG.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-TXIh5Jjf.js → use-panel-navigate-TgZj9ROm.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-iIZzPh0n.js → use-project-native-view-presence-D7VbyaBn.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-CKvnTLpI.js → use-project-scope-LWmEyb6r.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-CsoTzvcJ.js → use-recent-apps-DfJLp7oI.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-B5ktHIcG.js → use-reports-diagnostic-DkJXZlqi.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-DgTm5p14.js → use-sandbox-events-B1yboBKL.js} +1 -1
  379. package/dist/client/assets/{use-secrets-CmhNvyh-.js → use-secrets-DEk6ozji.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-CxmHxD8c.js → use-section-preview-base-C-VDv-6q.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-DdxzWT5S.js → use-sidebar-collapsed-CHZKq9oZ.js} +1 -1
  382. package/dist/client/assets/{use-tags-CyEQyAhi.js → use-tags-CoDR1Zmu.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-BPZdg5me.js → use-task-board-analytics-VYu88gcp.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-ByWZevYZ.js → use-task-board-item-prs-BWa7fz4R.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-BIQu-vu8.js → use-task-board-items--V3JyFqK.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-BD95sybY.js → use-task-board-prompts-BwomBVhP.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-DGT_hCy-.js → use-task-metadata-lWqkLjl-.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-DvgezGKZ.js → use-thread-outputs-BlJPEHoZ.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-kwEa5AZ1.js → use-view-draft-kind-C3BJYXR8.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-B_fCdMky.js → use-voice-input-Cor9Dsop.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-F3rbh2kJ.js +1 -0
  392. package/dist/client/assets/{useQueries-DCrQluth.js → useQueries-B-JshDOA.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-DltqzRHJ.js +1 -0
  394. package/dist/client/assets/{users-DdaIDntv.js → users-43nQLl3d.js} +1 -1
  395. package/dist/client/assets/{utils-D0VJmDFc.js → utils-eOeHxAm4.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-CY-CCOVR.js → variant-calendar-Blbs7r8N.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-cLg6yoTm.js → variant-matcher-override-DeKQe6Ib.js} +1 -1
  398. package/dist/client/assets/{view-header-b9iFwHmd.js → view-header-K5jK9-59.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-D_GJvAm-.js → virtual-mcp-CKMXaKii.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-El5ChbJr.js → watch-sse-pool-Bcd0P23K.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +607 -607
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-DAxew1JC.js +0 -1
  405. package/dist/client/assets/agent-deck-BHuydkDy.js +0 -1
  406. package/dist/client/assets/agent-experiments-zhJy530d.js +0 -1
  407. package/dist/client/assets/agent-file-DRxbKJHY.js +0 -1
  408. package/dist/client/assets/agent-library-DAqV7GV5.js +0 -1
  409. package/dist/client/assets/agent-library-file-BOPS4LzV.js +0 -1
  410. package/dist/client/assets/agent-overview-765039jq.js +0 -1
  411. package/dist/client/assets/agent-settings-CAaYS-Qb.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-CkHYzP36.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-vjaFp3r3.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-D3yLw8y2.js +0 -1
  415. package/dist/client/assets/agent-view-Bmp94OXB.js +0 -1
  416. package/dist/client/assets/api-keys-DgrPbRdJ.js +0 -1
  417. package/dist/client/assets/library-C7GgLZCd.js +0 -1
  418. package/dist/client/assets/plan-BgBMTT48.js +0 -1
  419. package/dist/client/assets/project-reports-BOQt_VM8.js +0 -1
  420. package/dist/client/assets/project-tasks-D-84Davh.js +0 -1
  421. package/dist/client/assets/record-editor-QKxjwfux.js +0 -1
  422. package/dist/client/assets/reports-CC1bODVK.js +0 -1
  423. package/dist/client/assets/repositories-Dhj06u1H.js +0 -1
  424. package/dist/client/assets/route-D2IDmDBG.js +0 -1
  425. package/dist/client/assets/schema-DQMwqc3y.js +0 -1
  426. package/dist/client/assets/settings-tab-DmZrvXS-.js +0 -1
  427. package/dist/client/assets/site-editor-CvXc40pp.js +0 -1
  428. package/dist/client/assets/tasks-DrukY02x.js +0 -1
  429. package/dist/client/assets/use-ask-in-chat-BVkYjPHL.js +0 -1
  430. package/dist/client/assets/use-blocks-v8-project-BSH68G_p.js +0 -1
  431. package/dist/client/assets/use-blog-view-CtOHSMkK.js +0 -1
  432. package/dist/client/assets/useInfiniteQuery-B1B1l9Rx.js +0 -1
  433. package/dist/client/assets/useSuspenseInfiniteQuery-DFT4-et2.js +0 -1
@@ -1 +1 @@
1
- import{r as L,j as A,c as ve,m as He}from"./index-TxpTb6t-.js";import{b as ft}from"./MessageCircle01-DiHU7gWc.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("bg-border relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
1
+ import{r as L,j as A,c as ve,m as He}from"./index-BmFua4_V.js";import{b as ft}from"./MessageCircle01-B4uczpCj.js";function pt(e,t){const n=getComputedStyle(e),o=parseFloat(n.fontSize);return t*o}function ht(e,t){const n=getComputedStyle(e.ownerDocument.documentElement),o=parseFloat(n.fontSize);return t*o}function gt(e){return e/100*window.innerHeight}function vt(e){return e/100*window.innerWidth}function mt(e){switch(typeof e){case"number":return[e,"px"];case"string":{const t=parseFloat(e);return e.endsWith("%")?[t,"%"]:e.endsWith("px")?[t,"px"]:e.endsWith("rem")?[t,"rem"]:e.endsWith("em")?[t,"em"]:e.endsWith("vh")?[t,"vh"]:e.endsWith("vw")?[t,"vw"]:[t,"%"]}}}function re({groupSize:e,panelElement:t,styleProp:n}){let o;const[r,a]=mt(n);switch(a){case"%":{o=r/100*e;break}case"px":{o=r;break}case"rem":{o=ht(t,r);break}case"em":{o=pt(t,r);break}case"vh":{o=gt(r);break}case"vw":{o=vt(r);break}}return o}function T(e){return parseFloat(e.toFixed(3))}function te({group:e}){const{orientation:t,panels:n}=e;return n.reduce((o,r)=>(o+=t==="horizontal"?r.element.offsetWidth:r.element.offsetHeight,o),0)}function he(e){const{panels:t}=e,n=te({group:e});return n===0?t.map(o=>({groupResizeBehavior:o.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:o.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:o.panelConstraints.disabled,minSize:0,maxSize:100,panelId:o.id})):t.map(o=>{const{element:r,panelConstraints:a}=o;let l=0;if(a.collapsedSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.collapsedSize});l=T(c/n*100)}let s;if(a.defaultSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.defaultSize});s=T(c/n*100)}let i=0;if(a.minSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.minSize});i=T(c/n*100)}let u=100;if(a.maxSize!==void 0){const c=re({groupSize:n,panelElement:r,styleProp:a.maxSize});u=T(c/n*100)}return{groupResizeBehavior:a.groupResizeBehavior,collapsedSize:l,collapsible:a.collapsible===!0,defaultSize:s,disabled:a.disabled,minSize:i,maxSize:u,panelId:o.id}})}function P(e,t="Assertion error"){if(!e)throw Error(t)}function ge(e,t){return Array.from(t).sort(e==="horizontal"?bt:yt)}function bt(e,t){const n=e.element.offsetLeft-t.element.offsetLeft;return n!==0?n:e.element.offsetWidth-t.element.offsetWidth}function yt(e,t){const n=e.element.offsetTop-t.element.offsetTop;return n!==0?n:e.element.offsetHeight-t.element.offsetHeight}function Ve(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Ue(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function zt({orientation:e,rects:t,targetRect:n}){const o={x:n.x+n.width/2,y:n.y+n.height/2};let r,a=Number.MAX_VALUE;for(const l of t){const{x:s,y:i}=Ue(o,l),u=e==="horizontal"?s:i;u<a&&(a=u,r=l)}return P(r,"No rect found"),r}let ue;function St(){return ue===void 0&&(typeof matchMedia=="function"?ue=!!matchMedia("(pointer:coarse)").matches:ue=!1),ue}function Ye(e){const{element:t,orientation:n,panels:o,separators:r}=e,a=ge(n,Array.from(t.children).filter(Ve).map(m=>({element:m}))).map(({element:m})=>m),l=[];let s=!1,i=!1,u=-1,c=-1,h=0,d,S=[];{let m=-1;for(const f of a)f.hasAttribute("data-panel")&&(m++,f.hasAttribute("data-disabled")||(h++,u===-1&&(u=m),c=m))}if(h>1){let m=-1;for(const f of a)if(f.hasAttribute("data-panel")){m++;const g=o.find(p=>p.element===f);if(g){if(d){const p=d.element.getBoundingClientRect(),y=f.getBoundingClientRect();let z;if(i){const b=n==="horizontal"?new DOMRect(p.right,p.top,0,p.height):new DOMRect(p.left,p.bottom,p.width,0),v=n==="horizontal"?new DOMRect(y.left,y.top,0,y.height):new DOMRect(y.left,y.top,y.width,0);switch(S.length){case 0:{z=[b,v];break}case 1:{const R=S[0],E=zt({orientation:n,rects:[p,y],targetRect:R.element.getBoundingClientRect()});z=[R,E===p?v:b];break}default:{z=S;break}}}else S.length?z=S:z=[n==="horizontal"?new DOMRect(p.right,y.top,y.left-p.right,y.height):new DOMRect(y.left,p.bottom,y.width,y.top-p.bottom)];for(const b of z){let v="width"in b?b:b.element.getBoundingClientRect();const R=St()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(v.width<R){const M=R-v.width;v=new DOMRect(v.x-M/2,v.y,v.width+M,v.height)}if(v.height<R){const M=R-v.height;v=new DOMRect(v.x,v.y-M/2,v.width,v.height+M)}const E=m<=u||m>c;!s&&!E&&l.push({group:e,groupSize:te({group:e}),panels:[d,g],separator:"width"in b?void 0:b,rect:v}),s=!1}}i=!1,d=g,S=[]}}else if(f.hasAttribute("data-separator")){f.ariaDisabled!==null&&(s=!0);const g=r.find(p=>p.element===f);g?S.push(g):(d=void 0,S=[])}else i=!0}return l}class Xe{#e={};addListener(t,n){const o=this.#e[t];return o===void 0?this.#e[t]=[n]:o.includes(n)||o.push(n),()=>{this.removeListener(t,n)}}emit(t,n){const o=this.#e[t];if(o!==void 0)if(o.length===1)o[0].call(null,n);else{let r=!1,a=null;const l=Array.from(o);for(let s=0;s<l.length;s++){const i=l[s];try{i.call(null,n)}catch(u){a===null&&(r=!0,a=u)}}if(r)throw a}}removeAllListeners(){this.#e={}}removeListener(t,n){const o=this.#e[t];if(o!==void 0){const r=o.indexOf(n);r>=0&&o.splice(r,1)}}}let Q={cursorFlags:0,state:"inactive"};const me=new Xe;function U(){return Q}function wt(e){return me.addListener("change",e)}function xt(e){const t=Q,n={...Q};n.cursorFlags=e,Q=n,me.emit("change",{prev:t,next:n})}function ee(e){const t=Q;Q=e,me.emit("change",{prev:t,next:e})}const Ct=e=>e,pe=()=>{},_e=1,Je=2,qe=4,Ke=8,Le=3,Re=12;let ce;function Ee(){return ce===void 0&&(ce=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(ce=!0)),ce}function Pt({cursorFlags:e,groups:t,state:n}){let o=0,r=0;switch(n){case"active":case"hover":t.forEach(a=>{if(!a.mutableState.disableCursor)switch(a.orientation){case"horizontal":{o++;break}case"vertical":{r++;break}}})}if(!(o===0&&r===0)){switch(n){case"active":{if(e&&Ee()){const a=(e&_e)!==0,l=(e&Je)!==0,s=(e&qe)!==0,i=(e&Ke)!==0;if(a)return s?"se-resize":i?"ne-resize":"e-resize";if(l)return s?"sw-resize":i?"nw-resize":"w-resize";if(s)return"s-resize";if(i)return"n-resize"}break}}return Ee()?o>0&&r>0?"move":o>0?"ew-resize":"ns-resize":o>0&&r>0?"grab":o>0?"col-resize":"row-resize"}}const ke=new WeakMap;function be(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=ke.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));const o=U();switch(o.state){case"active":case"hover":{const r=Pt({cursorFlags:o.cursorFlags,groups:o.hitRegions.map(l=>l.group),state:o.state}),a=`*, *:hover {cursor: ${r} !important; }`;if(t===a)return;t=a,r?n.cssRules.length===0?n.insertRule(a):n.replaceSync(a):n.cssRules.length===1&&n.deleteRule(0);break}case"inactive":{t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}}ke.set(e,{prevStyle:t,styleSheet:n})}let F=new Map;const Ze=new Xe;function Lt(e){F=new Map(F),F.delete(e)}function Me(e,t){for(const[n]of F)if(n.id===e)return n}function H(e,t){for(const[n,o]of F)if(n.id===e)return o;if(t)throw Error(`Could not find data for Group with id ${e}`)}function _(){return F}function ye(e,t){return Ze.addListener("groupChange",n=>{n.group.id===e&&t(n)})}function W(e,t,n){const o=F.get(e);F=new Map(F),F.set(e,t),Ze.emit("groupChange",{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:o,next:t})}function Qe(e){const t=U();let n=!1;return t.state==="active"&&(ee({cursorFlags:0,state:"inactive"}),t.hitRegions.length>0&&(be(e),n=!0,t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})}))),n}function De(e){e.defaultPrevented||Qe(e.currentTarget)}function Rt(e,t,n){let o,r={x:1/0,y:1/0};for(const a of t){const l=Ue(n,a.rect);switch(e){case"horizontal":{l.x<=r.x&&(o=a,r=l);break}case"vertical":{l.y<=r.y&&(o=a,r=l);break}}}return o?{distance:r,hitRegion:o}:void 0}function Et(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function kt(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:Ne(e),b:Ne(t)};let o;for(;n.a.at(-1)===n.b.at(-1);)o=n.a.pop(),n.b.pop();P(o,"Stacking order can only be calculated for elements with a common ancestor");const r={a:Te(Ie(n.a)),b:Te(Ie(n.b))};if(r.a===r.b){const a=o.childNodes,l={a:n.a.at(-1),b:n.b.at(-1)};let s=a.length;for(;s--;){const i=a[s];if(i===l.a)return 1;if(i===l.b)return-1}}return Math.sign(r.a-r.b)}const Mt=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dt(e){const t=getComputedStyle(et(e)??e).display;return t==="flex"||t==="inline-flex"}function It(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||Dt(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||Mt.test(t.willChange)||t.webkitOverflowScrolling==="touch")}function Ie(e){let t=e.length;for(;t--;){const n=e[t];if(P(n,"Missing node"),It(n))return n}return null}function Te(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Ne(e){const t=[];for(;e;)t.push(e),e=et(e);return t}function et(e){const{parentNode:t}=e;return Et(t)?t.host:t}function Tt(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function Nt({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ve(n)||n.contains(e)||e.contains(n))return!0;if(kt(n,e)>0){let o=n;for(;o;){if(o.contains(e))return!0;if(Tt(o.getBoundingClientRect(),t))return!1;o=o.parentElement}}return!0}function ze(e,t){const n=[];return t.forEach((o,r)=>{if(r.disabled)return;const a=Ye(r),l=Rt(r.orientation,a,{x:e.clientX,y:e.clientY});l&&l.distance.x<=0&&l.distance.y<=0&&Nt({groupElement:r.element,hitRegion:l.hitRegion.rect,pointerEventTarget:e.target})&&n.push(l.hitRegion)}),n}function jt(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function I(e,t,n=0){return Math.abs(T(e)-T(t))<=n}function O(e,t){return I(e,t)?0:e>t?1:-1}function Z({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:o}){const{collapsedSize:r=0,collapsible:a,disabled:l,maxSize:s=100,minSize:i=0}=t;if(l&&!e)return n;if(O(o,i)<0)if(a){const u=(r+i)/2;O(o,u)<0?o=r:o=i}else o=i;return o=Math.min(s,o),o=T(o),o}function ie({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:o,prevLayout:r,trigger:a}){if(I(e,0))return t;const l=a==="imperative-api",s=Object.values(t),i=Object.values(r),u=[...s],[c,h]=o;P(c!=null,"Invalid first pivot index"),P(h!=null,"Invalid second pivot index");let d=0;switch(a){case"keyboard":{{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,p)){const v=z-b;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}{const f=e<0?c:h,g=n[f];P(g,`No panel constraints found for index ${f}`);const{collapsedSize:p=0,collapsible:y,minSize:z=0}=g;if(y){const b=s[f];if(P(b!=null,`Previous layout not found for panel index ${f}`),I(b,z)){const v=b-p;O(v,Math.abs(e))>0&&(e=e<0?0-v:v)}}}break}default:{const f=e<0?h:c,g=n[f];P(g,`Panel constraints not found for index ${f}`);const p=s[f],{collapsible:y,collapsedSize:z,minSize:b}=g;if(y&&O(p,b)<0)if(e>0){const v=b-z,R=v/2,E=p+e;O(E,b)<0&&(e=O(e,R)<=0?0:v)}else{const v=b-z,R=100-v/2,E=p-e;O(E,b)<0&&(e=O(100+e,R)>0?0:-v)}break}}{const f=e<0?1:-1;let g=e<0?h:c,p=0;for(;;){const z=s[g];P(z!=null,`Previous layout not found for panel index ${g}`);const b=Z({overrideDisabledPanels:l,panelConstraints:n[g],prevSize:z,size:100})-z;if(p+=b,g+=f,g<0||g>=n.length)break}const y=Math.min(Math.abs(e),Math.abs(p));e=e<0?0-y:y}{let f=e<0?c:h;for(;f>=0&&f<n.length;){const g=Math.abs(e)-Math.abs(d),p=s[f];P(p!=null,`Previous layout not found for panel index ${f}`);const y=p-g,z=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:p,size:y});if(!I(p,z)&&(d+=p-z,u[f]=z,d.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?f--:f++}}if(jt(i,u))return r;{const f=e<0?h:c,g=s[f];P(g!=null,`Previous layout not found for panel index ${f}`);const p=g+d,y=Z({overrideDisabledPanels:l,panelConstraints:n[f],prevSize:g,size:p});if(u[f]=y,!I(y,p)){let z=p-y,b=e<0?h:c;for(;b>=0&&b<n.length;){const v=u[b];P(v!=null,`Previous layout not found for panel index ${b}`);const R=v+z,E=Z({overrideDisabledPanels:l,panelConstraints:n[b],prevSize:v,size:R});if(I(v,E)||(z-=E-v,u[b]=E),I(z,0))break;e>0?b--:b++}}}const S=Object.values(u).reduce((f,g)=>g+f,0);if(!I(S,100,.1))return r;const m=Object.keys(r);return u.reduce((f,g,p)=>(f[m[p]]=g,f),{})}function Y(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(t[n]===void 0||O(e[n],t[n])!==0)return!1;return!0}function X({layout:e,panelConstraints:t}){const n=Object.values(e),o=[...n],r=o.reduce((s,i)=>s+i,0);if(o.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${o.map(s=>`${s}%`).join(", ")}`);if(!I(r,100)&&o.length>0)for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=100/r*i;o[s]=u}let a=0;for(let s=0;s<t.length;s++){const i=n[s];P(i!=null,`No layout data found for index ${s}`);const u=o[s];P(u!=null,`No layout data found for index ${s}`);const c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});u!=c&&(a+=u-c,o[s]=c)}if(!I(a,0))for(let s=0;s<t.length;s++){const i=o[s];P(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Z({overrideDisabledPanels:!0,panelConstraints:t[s],prevSize:i,size:u});if(i!==c&&(a-=c-i,o[s]=c,I(a,0)))break}const l=Object.keys(e);return o.reduce((s,i,u)=>(s[l[u]]=i,s),{})}function tt({groupId:e,panelId:t}){const n=()=>{const i=_();for(const[u,{defaultLayoutDeferred:c,derivedPanelConstraints:h,layout:d,groupSize:S,separatorToPanels:m}]of i)if(u.id===e)return{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:u,groupSize:S,layout:d,separatorToPanels:m};throw Error(`Group ${e} not found`)},o=()=>{const i=n().derivedPanelConstraints.find(u=>u.panelId===t);if(i!==void 0)return i;throw Error(`Panel constraints not found for Panel ${t}`)},r=()=>{const i=n().group.panels.find(u=>u.id===t);if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},a=()=>{const i=n().layout[t];if(i!==void 0)return i;throw Error(`Layout not found for Panel ${t}`)},l=({nextSize:i,panels:u,prevLayout:c,derivedPanelConstraints:h})=>{const d=a(),S=u.findIndex(g=>g.id===t),m=S===0,f=S===u.length-1;if(f&&i<d&&(m||u.slice(0,S).every((g,p)=>{const y=h[p];return y?.collapsible&&I(y.collapsedSize,c[y.panelId])}))){const g=u.slice(0,S).reduce((p,y)=>p+c[y.id],0);return{...c,[t]:T(100-g)}}return ie({delta:f?d-i:i-d,initialLayout:c,panelConstraints:h,pivotIndices:f?[S-1,S]:[S,S+1],prevLayout:c,trigger:"imperative-api"})},s=i=>{const u=a();if(i===u)return;const{defaultLayoutDeferred:c,derivedPanelConstraints:h,group:d,groupSize:S,layout:m,separatorToPanels:f}=n(),g=l({nextSize:i,panels:d.panels,prevLayout:m,derivedPanelConstraints:h}),p=X({layout:g,panelConstraints:h});Y(m,p)||W(d,{defaultLayoutDeferred:c,derivedPanelConstraints:h,groupSize:S,layout:p,separatorToPanels:f})};return{collapse:()=>{const{collapsible:i,collapsedSize:u}=o(),{mutableValues:c}=r(),h=a();i&&h!==u&&(c.expandToSize=h,s(u))},expand:()=>{const{collapsible:i,collapsedSize:u,minSize:c}=o(),{mutableValues:h}=r(),d=a();if(i&&d===u){let S=h.expandToSize??c;S===0&&(S=1),s(S)}},getSize:()=>{const{group:i}=n(),u=a(),{element:c}=r(),h=i.orientation==="horizontal"?c.offsetWidth:c.offsetHeight;return{asPercentage:u,inPixels:h}},isCollapsed:()=>{const{collapsible:i,collapsedSize:u}=o(),c=a();return i&&I(u,c)},resize:i=>{const{group:u}=n(),{element:c}=r(),h=te({group:u}),d=re({groupSize:h,panelElement:c,styleProp:i}),S=T(d/h*100);s(S)}}}function je(e){if(e.defaultPrevented)return;const t=_();ze(e,t).forEach(n=>{if(n.separator&&!n.separator.disableDoubleClick){const o=n.panels.find(r=>r.panelConstraints.defaultSize!==void 0);if(o){const r=o.panelConstraints.defaultSize,a=tt({groupId:n.group.id,panelId:o.id});a&&r!==void 0&&(a.resize(r),e.preventDefault())}}})}function de(e){const t=_();for(const[n]of t)if(n.separators.some(o=>o.element===e))return n;throw Error("Could not find parent Group for separator element")}function nt({groupId:e}){const t=()=>{const n=_();for(const[o,r]of n)if(o.id===e)return{group:o,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:n,layout:o}=t();return n?{}:o},setLayout(n){const{defaultLayoutDeferred:o,derivedPanelConstraints:r,group:a,groupSize:l,layout:s,separatorToPanels:i}=t(),u=X({layout:n,panelConstraints:r});return o?s:(Y(s,u)||W(a,{defaultLayoutDeferred:o,derivedPanelConstraints:r,groupSize:l,layout:u,separatorToPanels:i}),u)}}}function V(e,t){const n=de(e),o=H(n.id,!0),r=n.separators.find(c=>c.element===e);P(r,"Matching separator not found");const a=o.separatorToPanels.get(r);P(a,"Matching panels not found");const l=a.map(c=>n.panels.indexOf(c)),s=nt({groupId:n.id}).getLayout(),i=ie({delta:t,initialLayout:s,panelConstraints:o.derivedPanelConstraints,pivotIndices:l,prevLayout:s,trigger:"keyboard"}),u=X({layout:i,panelConstraints:o.derivedPanelConstraints});Y(s,u)||W(n,{defaultLayoutDeferred:o.defaultLayoutDeferred,derivedPanelConstraints:o.derivedPanelConstraints,groupSize:o.groupSize,layout:u,separatorToPanels:o.separatorToPanels},{isUserInteraction:!0})}function Oe(e){if(e.defaultPrevented)return;const t=e.currentTarget,n=de(t);if(!n.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),n.orientation==="vertical"&&V(t,5);break}case"ArrowLeft":{e.preventDefault(),n.orientation==="horizontal"&&V(t,-5);break}case"ArrowRight":{e.preventDefault(),n.orientation==="horizontal"&&V(t,5);break}case"ArrowUp":{e.preventDefault(),n.orientation==="vertical"&&V(t,-5);break}case"End":{e.preventDefault(),V(t,100);break}case"Enter":{e.preventDefault();const o=de(t),r=H(o.id,!0),{derivedPanelConstraints:a,layout:l,separatorToPanels:s}=r,i=o.separators.find(d=>d.element===t);P(i,"Matching separator not found");const u=s.get(i);P(u,"Matching panels not found");const c=u[0],h=a.find(d=>d.panelId===c.id);if(P(h,"Panel metadata not found"),h.collapsible){const d=l[c.id],S=h.collapsedSize===d?o.mutableState.expandedPanelSizes[c.id]??h.minSize:h.collapsedSize;V(t,S-d)}break}case"F6":{e.preventDefault();const o=de(t).separators.map(l=>l.element),r=Array.from(o).findIndex(l=>l===e.currentTarget);P(r!==null,"Index not found");const a=e.shiftKey?r>0?r-1:o.length-1:r+1<o.length?r+1:0;o[a].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),V(t,-100);break}}}function Fe(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const t=_(),n=ze(e,t),o=new Map;let r=!1;n.forEach(a=>{a.separator&&(r||(r=!0,a.separator.element.focus({focusVisible:!1,preventScroll:!0})));const l=t.get(a.group);l&&o.set(a.group,l.layout)}),ee({cursorFlags:0,hitRegions:n,initialLayoutMap:o,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),n.length&&e.preventDefault()}function ot({document:e,event:t,hitRegions:n,initialLayoutMap:o,mountedGroups:r,pointerDownAtPoint:a,prevCursorFlags:l}){let s=0;n.forEach(u=>{const{group:c,groupSize:h}=u,{orientation:d,panels:S}=c,{disableCursor:m}=c.mutableState;let f=0;a?d==="horizontal"?f=(t.clientX-a.x)/h*100:f=(t.clientY-a.y)/h*100:d==="horizontal"?f=t.clientX<0?-100:100:f=t.clientY<0?-100:100;const g=o.get(c),p=r.get(c);if(!g||!p)return;const{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:v,separatorToPanels:R}=p;if(z&&v&&R){const E=ie({delta:f,initialLayout:g,panelConstraints:z,pivotIndices:u.panels.map(M=>S.indexOf(M)),prevLayout:v,trigger:"mouse-or-touch"});if(Y(E,v)){if(f!==0&&!m)switch(d){case"horizontal":{s|=f<0?_e:Je;break}case"vertical":{s|=f<0?qe:Ke;break}}}else W(u.group,{defaultLayoutDeferred:y,derivedPanelConstraints:z,groupSize:b,layout:E,separatorToPanels:R})}});let i=0;t.movementX===0?i|=l&Le:i|=s&Le,t.movementY===0?i|=l&Re:i|=s&Re,xt(i),be(e)}function Ae(e){const t=_(),n=U();n.state==="active"&&ot({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}function Ge(e){if(e.defaultPrevented)return;const t=U(),n=_();switch(t.state){case"active":{if(e.buttons===0){ee({cursorFlags:0,state:"inactive"}),t.hitRegions.forEach(o=>{const r=H(o.group.id,!0);W(o.group,r,{isUserInteraction:!0})});return}for(const o of t.hitRegions)if(o.separator){const{element:r}=o.separator;r.hasPointerCapture?.(e.pointerId)||r.setPointerCapture?.(e.pointerId)}ot({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break}default:{const o=ze(e,n);o.length===0?t.state!=="inactive"&&ee({cursorFlags:0,state:"inactive"}):ee({cursorFlags:0,hitRegions:o,state:"hover"}),be(e.currentTarget);break}}}function $e(e){e.relatedTarget instanceof HTMLIFrameElement&&U().state==="hover"&&ee({cursorFlags:0,state:"inactive"})}function Be(e){e.defaultPrevented||e.pointerType==="mouse"&&e.button>0||Qe(e.currentTarget)&&e.preventDefault()}function We(e){let t=0,n=0;const o={};for(const a of e)if(a.defaultSize!==void 0){t++;const l=T(a.defaultSize);n+=l,o[a.panelId]=l}else o[a.panelId]=void 0;const r=e.length-t;if(r!==0){const a=T((100-n)/r);for(const l of e)l.defaultSize===void 0&&(o[l.panelId]=a)}return o}function Ot(e,t,n){if(!n[0])return;const o=e.panels.find(i=>i.element===t);if(!o||!o.onResize)return;const r=te({group:e}),a=e.orientation==="horizontal"?o.element.offsetWidth:o.element.offsetHeight,l=o.mutableValues.prevSize,s={asPercentage:T(a/r*100),inPixels:a};o.mutableValues.prevSize=s,o.onResize(s,o.id,l)}function Ft(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function At({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:o}){if(n<=0||t<=0||n===t)return o;let r=0,a=0,l=!1;const s=new Map,i=[];for(const h of e.panels){const d=o[h.id]??0;if(h.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){l=!0;const S=d/100*n,m=T(S/t*100);s.set(h.id,m),r+=m}else i.push(h.id),a+=d}if(!l||i.length===0)return o;const u=100-r,c={...o};if(s.forEach((h,d)=>{c[d]=h}),a>0)for(const h of i){const d=o[h]??0;c[h]=T(d/a*u)}else{const h=T(u/i.length);for(const d of i)c[d]=h}return c}function Gt(e,t){const n=e.map(r=>r.id),o=Object.keys(t);if(n.length!==o.length)return!1;for(const r of n)if(!o.includes(r))return!1;return!0}const K=new Map;function $t(e){let t=!0;P(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const n=e.element.ownerDocument.defaultView.ResizeObserver,o=new Set,r=new Set,a=new n(m=>{for(const f of m){const{borderBoxSize:g,target:p}=f;if(p===e.element){if(t){const y=te({group:e});if(y===0)return;const z=H(e.id);if(!z)return;const b=he(e),v=z.defaultLayoutDeferred?We(b):z.layout,R=At({group:e,nextGroupSize:y,prevGroupSize:z.groupSize,prevLayout:v}),E=X({layout:R,panelConstraints:b});if(!z.defaultLayoutDeferred&&Y(z.layout,E)&&Ft(z.derivedPanelConstraints,b)&&z.groupSize===y)return;W(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:b,groupSize:y,layout:E,separatorToPanels:z.separatorToPanels})}}else Ot(e,p,g)}});a.observe(e.element),e.panels.forEach(m=>{P(!o.has(m.id),`Panel ids must be unique; id "${m.id}" was used more than once`),o.add(m.id),m.onResize&&a.observe(m.element)});const l=te({group:e}),s=he(e),i=e.panels.map(({id:m})=>m).join(",");let u=e.mutableState.defaultLayout;u&&(Gt(e.panels,u)||(u=void 0));const c=e.mutableState.layouts[i]??u??We(s),h=X({layout:c,panelConstraints:s}),d=e.element.ownerDocument;K.set(d,(K.get(d)??0)+1);const S=new Map;return Ye(e).forEach(m=>{m.separator&&S.set(m.separator,m.panels)}),W(e,{defaultLayoutDeferred:l===0,derivedPanelConstraints:s,groupSize:l,layout:h,separatorToPanels:S}),e.separators.forEach(m=>{P(!r.has(m.id),`Separator ids must be unique; id "${m.id}" was used more than once`),r.add(m.id),m.element.addEventListener("keydown",Oe)}),K.get(d)===1&&(d.addEventListener("contextmenu",De,!0),d.addEventListener("dblclick",je,!0),d.addEventListener("pointerdown",Fe,!0),d.addEventListener("pointerleave",Ae),d.addEventListener("pointermove",Ge),d.addEventListener("pointerout",$e),d.addEventListener("pointerup",Be,!0)),function(){t=!1,K.set(d,Math.max(0,(K.get(d)??0)-1)),Lt(e),e.separators.forEach(m=>{m.element.removeEventListener("keydown",Oe)}),K.get(d)||(d.removeEventListener("contextmenu",De,!0),d.removeEventListener("dblclick",je,!0),d.removeEventListener("pointerdown",Fe,!0),d.removeEventListener("pointerleave",Ae),d.removeEventListener("pointermove",Ge),d.removeEventListener("pointerout",$e),d.removeEventListener("pointerup",Be,!0)),a.disconnect()}}function Bt(){const[e,t]=L.useState({}),n=L.useCallback(()=>t({}),[]);return[e,n]}function Se(e){const t=L.useId();return`${e??t}`}const J=typeof window<"u"?L.useLayoutEffect:L.useEffect;function ae(e){const t=L.useRef(e);return J(()=>{t.current=e},[e]),L.useCallback((...n)=>t.current?.(...n),[t])}function we(...e){return ae(t=>{e.forEach(n=>{if(n)switch(typeof n){case"function":{n(t);break}case"object":{n.current=t;break}}})})}function xe(e){const t=L.useRef({...e});return J(()=>{for(const n in e)t.current[n]=e[n]},[e]),t.current}const rt=L.createContext(null);function Wt(e,t){const n=L.useRef({getLayout:()=>({}),setLayout:Ct});L.useImperativeHandle(t,()=>n.current,[]),J(()=>{Object.assign(n.current,nt({groupId:e}))})}function at({children:e,className:t,defaultLayout:n,disableCursor:o,disabled:r,elementRef:a,groupRef:l,id:s,onLayoutChange:i,onLayoutChanged:u,orientation:c="horizontal",resizeTargetMinimumSize:h={coarse:20,fine:10},style:d,...S}){const m=L.useRef({onLayoutChange:{},onLayoutChanged:{}}),f=ae(w=>{Y(m.current.onLayoutChange,w)||(m.current.onLayoutChange=w,i?.(w))}),g=ae((w,x)=>{Y(m.current.onLayoutChanged,w)||(m.current.onLayoutChanged=w,u?.(w,{isUserInteraction:x}))}),p=Se(s),y=L.useRef(null),[z,b]=Bt(),v=L.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:h,separators:[]}),R=we(y,a);Wt(p,l);const E=ae((w,x)=>{const k=U(),C=Me(w),D=H(w);if(D){let N=!1;return k.state==="active"&&(N=k.hitRegions.some(ne=>ne.group===C)),{flexGrow:D.layout[x]??1,pointerEvents:N?"none":void 0}}if(n?.[x])return{flexGrow:n?.[x]}}),M=xe({defaultLayout:n,disableCursor:o}),j=L.useMemo(()=>({get disableCursor(){return!!M.disableCursor},getPanelStyles:E,id:p,orientation:c,registerPanel:w=>{const x=v.current;return x.panels=ge(c,[...x.panels,w]),b(),()=>{x.panels=x.panels.filter(k=>k!==w),b()}},registerSeparator:w=>{const x=v.current;return x.separators=ge(c,[...x.separators,w]),b(),()=>{x.separators=x.separators.filter(k=>k!==w),b()}},updatePanelProps:(w,{disabled:x})=>{const k=v.current.panels.find(N=>N.id===w);k&&(k.panelConstraints.disabled=x);const C=Me(p),D=H(p);C&&D&&W(C,{...D,derivedPanelConstraints:he(C)})},updateSeparatorProps:(w,{disabled:x,disableDoubleClick:k})=>{const C=v.current.separators.find(D=>D.id===w);C&&(C.disabled=x,C.disableDoubleClick=k)}}),[E,p,b,c,M]),G=L.useRef(null);return J(()=>{const w=y.current;if(w===null)return;const x=v.current;let k;if(M.defaultLayout!==void 0&&Object.keys(M.defaultLayout).length===x.panels.length){k={};for(const $ of x.panels){const q=M.defaultLayout[$.id];q!==void 0&&(k[$.id]=q)}}const C={disabled:!!r,element:w,id:p,mutableState:{defaultLayout:k,disableCursor:!!M.disableCursor,expandedPanelSizes:v.current.lastExpandedPanelSizes,layouts:v.current.layouts},orientation:c,panels:x.panels,resizeTargetMinimumSize:x.resizeTargetMinimumSize,separators:x.separators};G.current=C;const D=$t(C),{defaultLayoutDeferred:N,derivedPanelConstraints:ne,layout:se}=H(C.id,!0);!N&&ne.length>0&&(f(se),g(se,!1));const oe=ye(p,$=>{const{defaultLayoutDeferred:q,derivedPanelConstraints:Pe,layout:le}=$.next;if(q||Pe.length===0)return;const lt=C.panels.map(({id:B})=>B).join(",");C.mutableState.layouts[lt]=le,Pe.forEach(B=>{if(B.collapsible){const{layout:fe}=$.prev??{};if(fe){const ct=I(B.collapsedSize,le[B.panelId]),dt=I(B.collapsedSize,fe[B.panelId]);ct&&!dt&&(C.mutableState.expandedPanelSizes[B.panelId]=fe[B.panelId])}}});const ut=U().state!=="active";f(le),ut&&g(le,$.isUserInteraction)});return()=>{G.current=null,D(),oe()}},[r,p,g,f,c,z,M]),L.useEffect(()=>{const w=G.current;w&&(w.mutableState.defaultLayout=n,w.mutableState.disableCursor=!!o)}),A.jsx(rt.Provider,{value:j,children:A.jsx("div",{...S,className:t,"data-group":!0,"data-testid":p,id:p,ref:R,style:{height:"100%",width:"100%",overflow:"hidden",...d,display:"flex",flexDirection:c==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:c==="horizontal"?"pan-y":"pan-x"},children:e})})}at.displayName="Group";function Ce(){const e=L.useContext(rt);return P(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function Ht(e,t){const{id:n}=Ce(),o=L.useRef({collapse:pe,expand:pe,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:pe});L.useImperativeHandle(t,()=>o.current,[]),J(()=>{Object.assign(o.current,tt({groupId:n,panelId:e}))})}function it({children:e,className:t,collapsedSize:n="0%",collapsible:o=!1,defaultSize:r,disabled:a,elementRef:l,groupResizeBehavior:s="preserve-relative-size",id:i,maxSize:u="100%",minSize:c="0%",onResize:h,panelRef:d,style:S,...m}){const f=!!i,g=Se(i),p=xe({disabled:a}),y=L.useRef(null),z=we(y,l),{getPanelStyles:b,id:v,orientation:R,registerPanel:E,updatePanelProps:M}=Ce(),j=h!==null,G=ae((C,D,N)=>{h?.(C,i,N)});J(()=>{const C=y.current;if(C!==null){const D={element:C,id:g,idIsStable:f,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:j?G:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:o,defaultSize:r,disabled:p.disabled,maxSize:u,minSize:c}};return E(D)}},[s,n,o,r,j,g,f,u,c,G,E,p]),L.useEffect(()=>{M(g,{disabled:a})},[a,g,M]),Ht(g,d);const w=()=>{const C=b(v,g);if(C)return JSON.stringify(C)},x=L.useSyncExternalStore(C=>ye(v,C),w,w);let k;return x?k=JSON.parse(x):r!==void 0?k={flexGrow:void 0,flexShrink:void 0,flexBasis:r}:k={flexGrow:1},A.jsx("div",{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:z,style:{...Vt,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...k},children:A.jsx("div",{className:t,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",...S,touchAction:R==="horizontal"?"pan-y":"pan-x"},children:e})})}it.displayName="Panel";const Vt={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function Ut({layout:e,panelConstraints:t,panelId:n,panelIndex:o}){let r,a;const l=e[n],s=t.find(i=>i.panelId===n);if(s){const i=s.maxSize,u=s.collapsible?s.collapsedSize:s.minSize,c=[o,o+1];a=X({layout:ie({delta:u-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n],r=X({layout:ie({delta:i-l,initialLayout:e,panelConstraints:t,pivotIndices:c,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:r,valueMin:a,valueNow:l}}function st({children:e,className:t,disabled:n,disableDoubleClick:o,elementRef:r,id:a,style:l,...s}){const i=Se(a),u=xe({disabled:n,disableDoubleClick:o}),[c,h]=L.useState({}),[d,S]=L.useState("inactive"),[m,f]=L.useState(!1),g=L.useRef(null),p=we(g,r),{disableCursor:y,id:z,orientation:b,registerSeparator:v,updateSeparatorProps:R}=Ce(),E=b==="horizontal"?"vertical":"horizontal";J(()=>{const G=g.current;if(G!==null){const w={disabled:u.disabled,disableDoubleClick:u.disableDoubleClick,element:G,id:i},x=v(w),k=wt(D=>{S(D.next.state!=="inactive"&&D.next.hitRegions.some(N=>N.separator===w)?D.next.state:"inactive")}),C=ye(z,D=>{const{derivedPanelConstraints:N,layout:ne,separatorToPanels:se}=D.next,oe=se.get(w);if(oe){const $=oe[0],q=oe.indexOf($);h(Ut({layout:ne,panelConstraints:N,panelId:$.id,panelIndex:q}))}});return()=>{k(),C(),x()}}},[z,i,v,u]),L.useEffect(()=>{R(i,{disabled:n,disableDoubleClick:o})},[n,o,i,R]);let M;n&&!y&&(M="not-allowed");let j;return n?j="disabled":d==="active"?j="active":m?j="focus":j=d,A.jsx("div",{...s,"aria-controls":c.valueControls,"aria-disabled":n||void 0,"aria-orientation":E,"aria-valuemax":c.valueMax,"aria-valuemin":c.valueMin,"aria-valuenow":c.valueNow,children:e,className:t,"data-separator":j,"data-testid":i,id:i,onBlur:()=>f(!1),onFocus:()=>f(!0),ref:p,role:"separator",style:{flexBasis:"auto",cursor:M,...l,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:n?void 0:0})}st.displayName="Separator";function _t(e){const t=ve.c(10);let n,o,r;t[0]!==e?({className:n,ref:r,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("flex h-full w-full",n),t[4]=n,t[5]=a):a=t[5];let l;return t[6]!==o||t[7]!==r||t[8]!==a?(l=A.jsx(at,{groupRef:r,"data-slot":"resizable-panel-group",className:a,...o}),t[6]=o,t[7]=r,t[8]=a,t[9]=l):l=t[9],l}function Jt(e){const t=ve.c(10);let n,o,r;t[0]!==e?({ref:o,style:r,...n}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==r?(a={overflow:"hidden",...r},t[4]=r,t[5]=a):a=t[5];let l;return t[6]!==n||t[7]!==o||t[8]!==a?(l=A.jsx(it,{panelRef:o,"data-slot":"resizable-panel",style:a,...n}),t[6]=n,t[7]=o,t[8]=a,t[9]=l):l=t[9],l}function qt(e){const t=ve.c(12);let n,o,r;t[0]!==e?({withHandle:r,className:n,...o}=e,t[0]=e,t[1]=n,t[2]=o,t[3]=r):(n=t[1],o=t[2],r=t[3]);let a;t[4]!==n?(a=He("bg-border relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:-translate-y-1/2 aria-[orientation=horizontal]:after:translate-x-0 [&[aria-orientation=horizontal]>div]:rotate-90",n),t[4]=n,t[5]=a):a=t[5];let l;t[6]!==r?(l=r&&A.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:A.jsx(ft,{className:"size-2.5"})}),t[6]=r,t[7]=l):l=t[7];let s;return t[8]!==o||t[9]!==a||t[10]!==l?(s=A.jsx(st,{"data-slot":"resizable-handle",className:a,...o,children:l}),t[8]=o,t[9]=a,t[10]=l,t[11]=s):s=t[11],s}export{_t as R,Jt as a,qt as b};
@@ -1 +1 @@
1
- import{k as s,a6 as c,a3 as f,o as l,p as u,E as p,a7 as d,b as m,g as k,a8 as b,h as I,a9 as $,aa as y}from"./agent-icon-TiRfS6qN.js";import{n as C}from"./BookOpen01-B7HgfzTg.js";import{i as S}from"./File02-B5-QN1Dl.js";import{ak as T}from"./index-TxpTb6t-.js";const e={overview:I,settings:b,automations:k,"site-editor":m,code:d,content:S,blog:C,assets:p,releases:u,hosting:T,e2e:l,analytics:f,cdn:c,files:s};function v(n){return n in e}function a(n){const t=$(n);if(t.type==="icon"){const o=y(t.name);return o?{kind:"component",Component:o}:null}return t.type==="url"?{kind:"url",src:t.url}:null}function w(n){if(n.kind==="system")return v(n.tabId)?{kind:"component",Component:e[n.tabId]}:{kind:"fallback"};const t=a(n.iconUrl);if(t)return t;if(!n.appId)return{kind:"fallback"};const o=n.connections.find(r=>r.id===n.appId);if(!o)return{kind:"fallback"};const i=a(o.icon);return i||{kind:"fallback"}}export{w as r};
1
+ import{k as s,a6 as c,a3 as f,o as l,p as u,E as p,a7 as d,b as m,g as k,a8 as b,h as I,a9 as $,aa as y}from"./agent-icon-0bk2UcIS.js";import{n as C}from"./BookOpen01-NJdRqnsB.js";import{i as S}from"./File02-DIeMsRip.js";import{ak as T}from"./index-BmFua4_V.js";const e={overview:I,settings:b,automations:k,"site-editor":m,code:d,content:S,blog:C,assets:p,releases:u,hosting:T,e2e:l,analytics:f,cdn:c,files:s};function v(n){return n in e}function a(n){const t=$(n);if(t.type==="icon"){const o=y(t.name);return o?{kind:"component",Component:o}:null}return t.type==="url"?{kind:"url",src:t.url}:null}function w(n){if(n.kind==="system")return v(n.tabId)?{kind:"component",Component:e[n.tabId]}:{kind:"fallback"};const t=a(n.iconUrl);if(t)return t;if(!n.appId)return{kind:"fallback"};const o=n.connections.find(r=>r.id===n.appId);if(!o)return{kind:"fallback"};const i=a(o.icon);return i||{kind:"fallback"}}export{w as r};
@@ -1 +1 @@
1
- import{c as y,b as T,j as s,gl as W,gZ as Q,E as fe,t as le,gm as U,dR as me,Q as pe,R as xe,r as G,B as ie,a6 as ue,e3 as he,I as je,W as Y}from"./index-TxpTb6t-.js";import{S as ae}from"./switch-CYj4jY2U.js";import{n as be}from"./BookOpen01-B7HgfzTg.js";import{g as _e,j as ye,m as ve,f as Se,d as re,k as Te,i as ke,s as we,e as Ke,b as Ee,l as Pe,n as Ce,h as Me,c as $e,a as ze}from"./UserSquare-DqYKKMSn.js";import{u as ge,j as Ne,f as Ae,k as Re,l as De,m as Oe,n as Be}from"./use-organization-settings-BMzmJwkq.js";import{b as Fe}from"./use-connection-IXleYE4j.js";function tt(){const e=y.c(12),t=T();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==t?(n=t("settings.review.description"),e[2]=t,e[3]=n):n=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ye,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"cheap_reviewer_model",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=c):c=e[5];let o,r;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(u,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),r=s.jsx(Ge,{}),e[6]=o,e[7]=r):(o=e[6],r=e[7]);let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(W,{children:[l,c,o,r,s.jsx(u,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[8]=g):g=e[8];let x;return e[9]!==i||e[10]!==n?(x=s.jsx(Q,{title:i,description:n,children:g}),e[9]=i,e[10]=n,e[11]=x):x=e[11],x}function st(){const e=y.c(13),t=T(),i=ge("coding_agent_org_mcps");let n;e[0]!==t?(n=t("settings.agentTools.title"),e[0]=t,e[1]=n):n=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"coding_agent_org_mcps",icon:s.jsx(Se,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),e[4]=c):c=e[4];let o;e[5]!==i?(o=i?s.jsx(Ie,{}):null,e[5]=i,e[6]=o):o=e[6];let r;e[7]!==o?(r=s.jsxs(W,{children:[c,o]}),e[7]=o,e[8]=r):r=e[8];let g;return e[9]!==n||e[10]!==l||e[11]!==r?(g=s.jsx(Q,{title:n,description:l,children:r}),e[9]=n,e[10]=l,e[11]=r,e[12]=g):g=e[12],g}function Ie(){const e=y.c(2),t=T();let i;return e[0]!==t?(i=s.jsx(pe,{children:n=>{const{reset:l}=n;return s.jsx(xe,{fallback:c=>{const{resetError:o}=c;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(ie,{variant:"outline",size:"sm",onClick:()=>{l(),o()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(G.Suspense,{fallback:s.jsx(Le,{}),children:s.jsx(He,{})})})}}),e[0]=t,e[1]=i):i=e[1],i}function Le(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(U,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function se(e){return[...e].sort().join("\0")}function Ve(e,t){return[Y.SELF,Y.REGISTRY,Y.COMMUNITY_REGISTRY,Y.DEV_ASSETS,Y.REPORTS].some(i=>i(e)===t)}function He(){const e=y.c(82),t=T(),{org:i}=ue(),n=Fe(),l=Oe(),c=Be(),[o,r]=G.useState(l);let g;e[0]!==l?(g=se(l),e[0]=l,e[1]=g):g=e[1];const[x,j]=G.useState(g),[b,_]=G.useState(""),v=se(l);x!==v&&(j(v),r(l));let d,f,a,h,m;if(e[2]!==n||e[3]!==o||e[4]!==i||e[5]!==b||e[6]!==l){let p;e[12]!==i?(p=K=>!Ve(i.id,K.id),e[12]=i,e[13]=p):p=e[13],a=n.filter(p);const S=b.trim().toLowerCase();m=S?a.filter(K=>`${K.title} ${K.slug??""}`.toLowerCase().includes(S)):a;let w;e[14]!==o?(w=new Set(o),e[14]=o,e[15]=w):w=e[15],f=w;const te=K=>a.some(de=>de.id===K);d=se(o.filter(te))!==se(l.filter(te)),h=m.length>0&&m.every(K=>!f.has(K.id)),e[2]=n,e[3]=o,e[4]=i,e[5]=b,e[6]=l,e[7]=d,e[8]=f,e[9]=a,e[10]=h,e[11]=m}else d=e[7],f=e[8],a=e[9],h=e[10],m=e[11];const k=h;let q;e[16]!==o?(q=(p,S)=>{const w=new Set(p);r(S?o.filter(te=>!w.has(te)):[...new Set([...o,...p])])},e[16]=o,e[17]=q):q=e[17];const E=q;let Z;e[18]!==o||e[19]!==a||e[20]!==c||e[21]!==t?(Z=()=>c.mutate(o.filter(p=>a.some(S=>S.id===p)),{onSuccess:()=>le.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>le.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[18]=o,e[19]=a,e[20]=c,e[21]=t,e[22]=Z):Z=e[22];const ne=Z;let P;e[23]!==t?(P=t("settings.agentTools.orgMcpsPickTitle"),e[23]=t,e[24]=P):P=e[24];let C;e[25]!==t?(C=t("settings.agentTools.orgMcpsPickDescription"),e[25]=t,e[26]=C):C=e[26];let J;e[27]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ze,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[27]=J):J=e[27];let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X=p=>_(p.target.value),e[28]=X):X=e[28];let M;e[29]!==t?(M=t("settings.agentTools.orgMcpsPickSearch"),e[29]=t,e[30]=M):M=e[30];let $;e[31]!==t?($=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=$):$=e[32];let z;e[33]!==b||e[34]!==M||e[35]!==$?(z=s.jsxs("div",{className:"relative flex-1",children:[J,s.jsx(je,{value:b,onChange:X,placeholder:M,"aria-label":$,className:"h-8 pl-8 text-xs"})]}),e[33]=b,e[34]=M,e[35]=$,e[36]=z):z=e[36];const oe=m.length===0;let N;e[37]!==k||e[38]!==E||e[39]!==m?(N=()=>E(m.map(We),!k),e[37]=k,e[38]=E,e[39]=m,e[40]=N):N=e[40];let A;e[41]!==k||e[42]!==t?(A=t(k?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[41]=k,e[42]=t,e[43]=A):A=e[43];let R;e[44]!==oe||e[45]!==N||e[46]!==A?(R=s.jsx(ie,{variant:"outline",size:"sm",className:"shrink-0",disabled:oe,onClick:N,children:A}),e[44]=oe,e[45]=N,e[46]=A,e[47]=R):R=e[47];let D;e[48]!==z||e[49]!==R?(D=s.jsxs("div",{className:"flex items-center gap-2",children:[z,R]}),e[48]=z,e[49]=R,e[50]=D):D=e[50];let O;e[51]!==f||e[52]!==a.length||e[53]!==E||e[54]!==t||e[55]!==m?(O=a.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):m.map(p=>{const S=p.title||p.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Qe,{icon:p.icon,title:S}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:S}),p.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:p.slug})]})]}),s.jsx(ae,{checked:!f.has(p.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:S}),onCheckedChange:w=>E([p.id],w)})]},p.id)}),e[51]=f,e[52]=a.length,e[53]=E,e[54]=t,e[55]=m,e[56]=O):O=e[56];let B;e[57]!==O?(B=s.jsx("div",{className:"max-h-64 overflow-y-auto surface divide-y divide-border",children:O}),e[57]=O,e[58]=B):B=e[58];const ce=!d||c.isPending;let F;e[59]!==c.isPending||e[60]!==t?(F=c.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[59]=c.isPending,e[60]=t,e[61]=F):F=e[61];let I;e[62]!==ne||e[63]!==ce||e[64]!==F?(I=s.jsx(ie,{size:"sm",disabled:ce,onClick:ne,children:F}),e[62]=ne,e[63]=ce,e[64]=F,e[65]=I):I=e[65];let L;e[66]!==d||e[67]!==l||e[68]!==c.isPending||e[69]!==t?(L=d&&s.jsx(ie,{variant:"ghost",size:"sm",disabled:c.isPending,onClick:()=>r(l),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[66]=d,e[67]=l,e[68]=c.isPending,e[69]=t,e[70]=L):L=e[70];let V;e[71]!==I||e[72]!==L?(V=s.jsxs("div",{className:"flex items-center gap-2",children:[I,L]}),e[71]=I,e[72]=L,e[73]=V):V=e[73];let H;e[74]!==D||e[75]!==B||e[76]!==V?(H=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[D,B,V]}),e[74]=D,e[75]=B,e[76]=V,e[77]=H):H=e[77];let ee;return e[78]!==H||e[79]!==P||e[80]!==C?(ee=s.jsx(U,{title:P,description:C,children:H}),e[78]=H,e[79]=P,e[80]=C,e[81]=ee):ee=e[81],ee}function We(e){return e.id}function Qe(e){const t=y.c(4),{icon:i,title:n}=e,[l,c]=G.useState(!1);let o;return t[0]!==l||t[1]!==i||t[2]!==n?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!l?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>c(!0)}):s.jsx("span",{className:"text-2xs font-semibold text-muted-foreground",children:n.charAt(0).toUpperCase()})}),t[0]=l,t[1]=i,t[2]=n,t[3]=o):o=t[3],o}function it(){const e=y.c(8),t=T();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"chat_harness_sandbox_only",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"coding_agents_claude_code",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"chat_harness_codex",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessCodexTitle",descriptionKey:"settings.agentTools.chatHarnessCodexDescription"}),e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(W,{children:[n,l,c,s.jsx(u,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})]}),e[5]=o):o=e[5];let r;return e[6]!==i?(r=s.jsx(Q,{title:i,children:o}),e[6]=i,e[7]=r):r=e[7],r}function lt(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.plan.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(W,{children:s.jsx(u,{flag:"plan_page_enabled",icon:s.jsx(ke,{size:16}),titleKey:"settings.plan.pageTitle",descriptionKey:"settings.plan.pageDescription"})}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(Q,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function nt(){const e=y.c(7),t=T();let i;e[0]!==t?(i=t("settings.blog.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"blog_view_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.blogView.title",descriptionKey:"settings.blogView.description"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"blog_ai_enabled",icon:s.jsx(we,{size:16}),titleKey:"settings.blog.aiTitle",descriptionKey:"settings.blog.aiDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(W,{children:[n,l,s.jsx(u,{flag:"hide_default_blog_blocks",icon:s.jsx(Ke,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})]}),e[4]=c):c=e[4];let o;return e[5]!==i?(o=s.jsx(Q,{title:i,children:c}),e[5]=i,e[6]=o):o=e[6],o}function ot(e){const t=y.c(29),{manageable:i}=e,n=i===void 0?!1:i,l=T(),c=ge("new_blocks_editor"),o=Ne();let r;t[0]!==l?(r=l("sidebar.projectNav.siteEditor"),t[0]=l,t[1]=r):r=t[1];let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Ee,{size:16}),t[2]=g):g=t[2];let x;t[3]!==l?(x=l("settings.blocksEditor.title"),t[3]=l,t[4]=x):x=t[4];let j;t[5]!==l?(j=l("settings.blocksEditor.description"),t[5]=l,t[6]=j):j=t[6];const b=o.isPending;let _;t[7]!==l?(_=l("settings.blocksEditor.title"),t[7]=l,t[8]=_):_=t[8];let v;t[9]!==o||t[10]!==l?(v=k=>{fe("preferences_blocks_editor_toggled",{enabled:k}),o.mutate(k,{onError:()=>le.error(l("settings.review.updateError"))})},t[9]=o,t[10]=l,t[11]=v):v=t[11];let d;t[12]!==c||t[13]!==o.isPending||t[14]!==_||t[15]!==v?(d=s.jsx(ae,{checked:c,disabled:b,"aria-label":_,onCheckedChange:v}),t[12]=c,t[13]=o.isPending,t[14]=_,t[15]=v,t[16]=d):d=t[16];let f;t[17]!==x||t[18]!==j||t[19]!==d?(f=s.jsx(U,{icon:g,title:x,description:j,action:d}),t[17]=x,t[18]=j,t[19]=d,t[20]=f):f=t[20];let a;t[21]!==n?(a=n&&s.jsxs(s.Fragment,{children:[s.jsx(u,{flag:"site_apps_install_enabled",icon:s.jsx(Pe,{size:16}),titleKey:"settings.siteAppsInstall.title",descriptionKey:"settings.siteAppsInstall.description"}),s.jsx(u,{flag:"multi_app_preview",icon:s.jsx(Ce,{size:16}),titleKey:"settings.multiAppPreview.title",descriptionKey:"settings.multiAppPreview.description"}),s.jsx(u,{flag:"cms_auto_commit",icon:s.jsx(Me,{size:16}),titleKey:"settings.cmsAutoCommit.title",descriptionKey:"settings.cmsAutoCommit.description"})]}),t[21]=n,t[22]=a):a=t[22];let h;t[23]!==f||t[24]!==a?(h=s.jsxs(W,{children:[f,a]}),t[23]=f,t[24]=a,t[25]=h):h=t[25];let m;return t[26]!==h||t[27]!==r?(m=s.jsx(Q,{title:r,children:h}),t[26]=h,t[27]=r,t[28]=m):m=t[28],m}function Ye(){const e=y.c(3),t=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx($e,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"reviewer_enabled",icon:i,titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function Ge(){const e=y.c(3),t=Re();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function u(e){const t=y.c(23),{flag:i,icon:n,titleKey:l,descriptionKey:c,enabled:o}=e,r=T(),g=ge(i),x=o??g,j=De();let b;t[0]!==r||t[1]!==l?(b=r(l),t[0]=r,t[1]=l,t[2]=b):b=t[2];let _;t[3]!==c||t[4]!==r?(_=r(c),t[3]=c,t[4]=r,t[5]=_):_=t[5];const v=j.isPending;let d;t[6]!==r||t[7]!==l?(d=r(l),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==i||t[10]!==j||t[11]!==r?(f=m=>j.mutate(i,m,{onError:()=>le.error(r("settings.review.updateError"))}),t[9]=i,t[10]=j,t[11]=r,t[12]=f):f=t[12];let a;t[13]!==x||t[14]!==j.isPending||t[15]!==d||t[16]!==f?(a=s.jsx(ae,{checked:x,disabled:v,"aria-label":d,onCheckedChange:f}),t[13]=x,t[14]=j.isPending,t[15]=d,t[16]=f,t[17]=a):a=t[17];let h;return t[18]!==n||t[19]!==b||t[20]!==_||t[21]!==a?(h=s.jsx(U,{icon:n,title:b,description:_,action:a}),t[18]=n,t[19]=b,t[20]=_,t[21]=a,t[22]=h):h=t[22],h}export{st as A,nt as B,it as C,lt as P,tt as R,ot as a};
1
+ import{c as y,b as T,j as s,gl as W,gZ as Q,E as fe,t as le,gm as U,dR as me,Q as pe,R as xe,r as G,B as ie,a6 as ue,e3 as he,I as je,W as Y}from"./index-BmFua4_V.js";import{S as ae}from"./switch-BDueaRYD.js";import{n as be}from"./BookOpen01-NJdRqnsB.js";import{g as _e,j as ye,m as ve,f as Se,d as re,k as Te,i as ke,s as we,e as Ke,b as Ee,l as Pe,n as Ce,h as Me,c as $e,a as ze}from"./UserSquare-DQ1GTm9S.js";import{u as ge,j as Ne,f as Ae,k as Re,l as De,m as Oe,n as Be}from"./use-organization-settings-DnrsF2IG.js";import{b as Fe}from"./use-connection-B0cGUNwk.js";function tt(){const e=y.c(12),t=T();let i;e[0]!==t?(i=t("settings.review.title"),e[0]=t,e[1]=i):i=e[1];let n;e[2]!==t?(n=t("settings.review.description"),e[2]=t,e[3]=n):n=e[3];let l;e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ye,{}),e[4]=l):l=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"cheap_reviewer_model",icon:s.jsx(_e,{size:16}),titleKey:"settings.review.cheapReviewerModelTitle",descriptionKey:"settings.review.cheapReviewerModelDescription"}),e[5]=c):c=e[5];let o,r;e[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(u,{flag:"auto_merge",icon:s.jsx(ye,{size:16}),titleKey:"settings.review.autoMergeTitle",descriptionKey:"settings.review.autoMergeDescription"}),r=s.jsx(Ge,{}),e[6]=o,e[7]=r):(o=e[6],r=e[7]);let g;e[8]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs(W,{children:[l,c,o,r,s.jsx(u,{flag:"auto_assign_report_tasks_to_super_agent",icon:s.jsx(ve,{size:16}),titleKey:"settings.review.autoAssignReportTasksTitle",descriptionKey:"settings.review.autoAssignReportTasksDescription"})]}),e[8]=g):g=e[8];let x;return e[9]!==i||e[10]!==n?(x=s.jsx(Q,{title:i,description:n,children:g}),e[9]=i,e[10]=n,e[11]=x):x=e[11],x}function st(){const e=y.c(13),t=T(),i=ge("coding_agent_org_mcps");let n;e[0]!==t?(n=t("settings.agentTools.title"),e[0]=t,e[1]=n):n=e[1];let l;e[2]!==t?(l=t("settings.agentTools.description"),e[2]=t,e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"coding_agent_org_mcps",icon:s.jsx(Se,{size:16}),titleKey:"settings.agentTools.orgMcpsTitle",descriptionKey:"settings.agentTools.orgMcpsDescription"}),e[4]=c):c=e[4];let o;e[5]!==i?(o=i?s.jsx(Ie,{}):null,e[5]=i,e[6]=o):o=e[6];let r;e[7]!==o?(r=s.jsxs(W,{children:[c,o]}),e[7]=o,e[8]=r):r=e[8];let g;return e[9]!==n||e[10]!==l||e[11]!==r?(g=s.jsx(Q,{title:n,description:l,children:r}),e[9]=n,e[10]=l,e[11]=r,e[12]=g):g=e[12],g}function Ie(){const e=y.c(2),t=T();let i;return e[0]!==t?(i=s.jsx(pe,{children:n=>{const{reset:l}=n;return s.jsx(xe,{fallback:c=>{const{resetError:o}=c;return s.jsx(U,{title:t("settings.agentTools.orgMcpsPickTitle"),children:s.jsxs("div",{role:"alert",className:"mt-3 flex items-center gap-2",children:[s.jsx("p",{className:"text-sm text-destructive",children:t("settings.agentTools.orgMcpsPickLoadFailed")}),s.jsx(ie,{variant:"outline",size:"sm",onClick:()=>{l(),o()},children:t("common.errorBoundary.tryAgain")})]})})},children:s.jsx(G.Suspense,{fallback:s.jsx(Le,{}),children:s.jsx(He,{})})})}}),e[0]=t,e[1]=i):i=e[1],i}function Le(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.agentTools.orgMcpsPickTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(he,{className:"mt-3 h-24 w-full"}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(U,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function se(e){return[...e].sort().join("\0")}function Ve(e,t){return[Y.SELF,Y.REGISTRY,Y.COMMUNITY_REGISTRY,Y.DEV_ASSETS,Y.REPORTS].some(i=>i(e)===t)}function He(){const e=y.c(82),t=T(),{org:i}=ue(),n=Fe(),l=Oe(),c=Be(),[o,r]=G.useState(l);let g;e[0]!==l?(g=se(l),e[0]=l,e[1]=g):g=e[1];const[x,j]=G.useState(g),[b,_]=G.useState(""),v=se(l);x!==v&&(j(v),r(l));let d,f,a,h,m;if(e[2]!==n||e[3]!==o||e[4]!==i||e[5]!==b||e[6]!==l){let p;e[12]!==i?(p=K=>!Ve(i.id,K.id),e[12]=i,e[13]=p):p=e[13],a=n.filter(p);const S=b.trim().toLowerCase();m=S?a.filter(K=>`${K.title} ${K.slug??""}`.toLowerCase().includes(S)):a;let w;e[14]!==o?(w=new Set(o),e[14]=o,e[15]=w):w=e[15],f=w;const te=K=>a.some(de=>de.id===K);d=se(o.filter(te))!==se(l.filter(te)),h=m.length>0&&m.every(K=>!f.has(K.id)),e[2]=n,e[3]=o,e[4]=i,e[5]=b,e[6]=l,e[7]=d,e[8]=f,e[9]=a,e[10]=h,e[11]=m}else d=e[7],f=e[8],a=e[9],h=e[10],m=e[11];const k=h;let q;e[16]!==o?(q=(p,S)=>{const w=new Set(p);r(S?o.filter(te=>!w.has(te)):[...new Set([...o,...p])])},e[16]=o,e[17]=q):q=e[17];const E=q;let Z;e[18]!==o||e[19]!==a||e[20]!==c||e[21]!==t?(Z=()=>c.mutate(o.filter(p=>a.some(S=>S.id===p)),{onSuccess:()=>le.success(t("settings.agentTools.orgMcpsPickSaved")),onError:()=>le.error(t("settings.agentTools.orgMcpsPickFailed"))}),e[18]=o,e[19]=a,e[20]=c,e[21]=t,e[22]=Z):Z=e[22];const ne=Z;let P;e[23]!==t?(P=t("settings.agentTools.orgMcpsPickTitle"),e[23]=t,e[24]=P):P=e[24];let C;e[25]!==t?(C=t("settings.agentTools.orgMcpsPickDescription"),e[25]=t,e[26]=C):C=e[26];let J;e[27]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ze,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[27]=J):J=e[27];let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X=p=>_(p.target.value),e[28]=X):X=e[28];let M;e[29]!==t?(M=t("settings.agentTools.orgMcpsPickSearch"),e[29]=t,e[30]=M):M=e[30];let $;e[31]!==t?($=t("settings.agentTools.orgMcpsPickSearch"),e[31]=t,e[32]=$):$=e[32];let z;e[33]!==b||e[34]!==M||e[35]!==$?(z=s.jsxs("div",{className:"relative flex-1",children:[J,s.jsx(je,{value:b,onChange:X,placeholder:M,"aria-label":$,className:"h-8 pl-8 text-xs"})]}),e[33]=b,e[34]=M,e[35]=$,e[36]=z):z=e[36];const oe=m.length===0;let N;e[37]!==k||e[38]!==E||e[39]!==m?(N=()=>E(m.map(We),!k),e[37]=k,e[38]=E,e[39]=m,e[40]=N):N=e[40];let A;e[41]!==k||e[42]!==t?(A=t(k?"settings.agentTools.orgMcpsPickDisableAll":"settings.agentTools.orgMcpsPickEnableAll"),e[41]=k,e[42]=t,e[43]=A):A=e[43];let R;e[44]!==oe||e[45]!==N||e[46]!==A?(R=s.jsx(ie,{variant:"outline",size:"sm",className:"shrink-0",disabled:oe,onClick:N,children:A}),e[44]=oe,e[45]=N,e[46]=A,e[47]=R):R=e[47];let D;e[48]!==z||e[49]!==R?(D=s.jsxs("div",{className:"flex items-center gap-2",children:[z,R]}),e[48]=z,e[49]=R,e[50]=D):D=e[50];let O;e[51]!==f||e[52]!==a.length||e[53]!==E||e[54]!==t||e[55]!==m?(O=a.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickEmpty")}):m.length===0?s.jsx("p",{className:"p-3 text-xs text-muted-foreground",children:t("settings.agentTools.orgMcpsPickNoMatch")}):m.map(p=>{const S=p.title||p.id;return s.jsxs("div",{className:"flex items-center justify-between gap-3 px-3 py-2",children:[s.jsxs("div",{className:"flex min-w-0 items-center gap-2.5",children:[s.jsx(Qe,{icon:p.icon,title:S}),s.jsxs("div",{className:"flex min-w-0 flex-col",children:[s.jsx("span",{className:"truncate text-sm leading-tight",children:S}),p.slug&&s.jsx("span",{className:"truncate text-xs text-muted-foreground",children:p.slug})]})]}),s.jsx(ae,{checked:!f.has(p.id),"aria-label":t("settings.agentTools.orgMcpsPickAriaLabel",{name:S}),onCheckedChange:w=>E([p.id],w)})]},p.id)}),e[51]=f,e[52]=a.length,e[53]=E,e[54]=t,e[55]=m,e[56]=O):O=e[56];let B;e[57]!==O?(B=s.jsx("div",{className:"max-h-64 overflow-y-auto surface divide-y divide-border",children:O}),e[57]=O,e[58]=B):B=e[58];const ce=!d||c.isPending;let F;e[59]!==c.isPending||e[60]!==t?(F=c.isPending?t("settings.agentTools.orgMcpsPickSaving"):t("settings.agentTools.orgMcpsPickSave"),e[59]=c.isPending,e[60]=t,e[61]=F):F=e[61];let I;e[62]!==ne||e[63]!==ce||e[64]!==F?(I=s.jsx(ie,{size:"sm",disabled:ce,onClick:ne,children:F}),e[62]=ne,e[63]=ce,e[64]=F,e[65]=I):I=e[65];let L;e[66]!==d||e[67]!==l||e[68]!==c.isPending||e[69]!==t?(L=d&&s.jsx(ie,{variant:"ghost",size:"sm",disabled:c.isPending,onClick:()=>r(l),children:t("settings.agentTools.orgMcpsPickDiscard")}),e[66]=d,e[67]=l,e[68]=c.isPending,e[69]=t,e[70]=L):L=e[70];let V;e[71]!==I||e[72]!==L?(V=s.jsxs("div",{className:"flex items-center gap-2",children:[I,L]}),e[71]=I,e[72]=L,e[73]=V):V=e[73];let H;e[74]!==D||e[75]!==B||e[76]!==V?(H=s.jsxs("div",{className:"mt-3 flex w-full flex-col gap-2",children:[D,B,V]}),e[74]=D,e[75]=B,e[76]=V,e[77]=H):H=e[77];let ee;return e[78]!==H||e[79]!==P||e[80]!==C?(ee=s.jsx(U,{title:P,description:C,children:H}),e[78]=H,e[79]=P,e[80]=C,e[81]=ee):ee=e[81],ee}function We(e){return e.id}function Qe(e){const t=y.c(4),{icon:i,title:n}=e,[l,c]=G.useState(!1);let o;return t[0]!==l||t[1]!==i||t[2]!==n?(o=s.jsx("div",{className:"flex size-7 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-muted/20",children:i&&!l?s.jsx("img",{src:i,alt:"",loading:"lazy",className:"h-full w-full object-cover",onError:()=>c(!0)}):s.jsx("span",{className:"text-2xs font-semibold text-muted-foreground",children:n.charAt(0).toUpperCase()})}),t[0]=l,t[1]=i,t[2]=n,t[3]=o):o=t[3],o}function it(){const e=y.c(8),t=T();let i;e[0]!==t?(i=t("settings.agentTools.chatRuntimeSection"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"chat_harness_sandbox_only",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessSandboxOnlyTitle",descriptionKey:"settings.agentTools.chatHarnessSandboxOnlyDescription"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"coding_agents_claude_code",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.codingAgentsClaudeCodeTitle",descriptionKey:"settings.agentTools.codingAgentsClaudeCodeDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(u,{flag:"chat_harness_codex",icon:s.jsx(re,{size:16}),titleKey:"settings.agentTools.chatHarnessCodexTitle",descriptionKey:"settings.agentTools.chatHarnessCodexDescription"}),e[4]=c):c=e[4];let o;e[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(W,{children:[n,l,c,s.jsx(u,{flag:"voice_mode",icon:s.jsx(Te,{size:16}),titleKey:"settings.voice.title",descriptionKey:"settings.voice.description"})]}),e[5]=o):o=e[5];let r;return e[6]!==i?(r=s.jsx(Q,{title:i,children:o}),e[6]=i,e[7]=r):r=e[7],r}function lt(){const e=y.c(5),t=T();let i;e[0]!==t?(i=t("settings.plan.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(W,{children:s.jsx(u,{flag:"plan_page_enabled",icon:s.jsx(ke,{size:16}),titleKey:"settings.plan.pageTitle",descriptionKey:"settings.plan.pageDescription"})}),e[2]=n):n=e[2];let l;return e[3]!==i?(l=s.jsx(Q,{title:i,children:n}),e[3]=i,e[4]=l):l=e[4],l}function nt(){const e=y.c(7),t=T();let i;e[0]!==t?(i=t("settings.blog.sectionTitle"),e[0]=t,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(u,{flag:"blog_view_enabled",icon:s.jsx(be,{size:16}),titleKey:"settings.blogView.title",descriptionKey:"settings.blogView.description"}),e[2]=n):n=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(u,{flag:"blog_ai_enabled",icon:s.jsx(we,{size:16}),titleKey:"settings.blog.aiTitle",descriptionKey:"settings.blog.aiDescription"}),e[3]=l):l=e[3];let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(W,{children:[n,l,s.jsx(u,{flag:"hide_default_blog_blocks",icon:s.jsx(Ke,{size:16}),titleKey:"settings.blogBlocks.title",descriptionKey:"settings.blogBlocks.description"})]}),e[4]=c):c=e[4];let o;return e[5]!==i?(o=s.jsx(Q,{title:i,children:c}),e[5]=i,e[6]=o):o=e[6],o}function ot(e){const t=y.c(29),{manageable:i}=e,n=i===void 0?!1:i,l=T(),c=ge("new_blocks_editor"),o=Ne();let r;t[0]!==l?(r=l("sidebar.projectNav.siteEditor"),t[0]=l,t[1]=r):r=t[1];let g;t[2]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Ee,{size:16}),t[2]=g):g=t[2];let x;t[3]!==l?(x=l("settings.blocksEditor.title"),t[3]=l,t[4]=x):x=t[4];let j;t[5]!==l?(j=l("settings.blocksEditor.description"),t[5]=l,t[6]=j):j=t[6];const b=o.isPending;let _;t[7]!==l?(_=l("settings.blocksEditor.title"),t[7]=l,t[8]=_):_=t[8];let v;t[9]!==o||t[10]!==l?(v=k=>{fe("preferences_blocks_editor_toggled",{enabled:k}),o.mutate(k,{onError:()=>le.error(l("settings.review.updateError"))})},t[9]=o,t[10]=l,t[11]=v):v=t[11];let d;t[12]!==c||t[13]!==o.isPending||t[14]!==_||t[15]!==v?(d=s.jsx(ae,{checked:c,disabled:b,"aria-label":_,onCheckedChange:v}),t[12]=c,t[13]=o.isPending,t[14]=_,t[15]=v,t[16]=d):d=t[16];let f;t[17]!==x||t[18]!==j||t[19]!==d?(f=s.jsx(U,{icon:g,title:x,description:j,action:d}),t[17]=x,t[18]=j,t[19]=d,t[20]=f):f=t[20];let a;t[21]!==n?(a=n&&s.jsxs(s.Fragment,{children:[s.jsx(u,{flag:"site_apps_install_enabled",icon:s.jsx(Pe,{size:16}),titleKey:"settings.siteAppsInstall.title",descriptionKey:"settings.siteAppsInstall.description"}),s.jsx(u,{flag:"multi_app_preview",icon:s.jsx(Ce,{size:16}),titleKey:"settings.multiAppPreview.title",descriptionKey:"settings.multiAppPreview.description"}),s.jsx(u,{flag:"cms_auto_commit",icon:s.jsx(Me,{size:16}),titleKey:"settings.cmsAutoCommit.title",descriptionKey:"settings.cmsAutoCommit.description"})]}),t[21]=n,t[22]=a):a=t[22];let h;t[23]!==f||t[24]!==a?(h=s.jsxs(W,{children:[f,a]}),t[23]=f,t[24]=a,t[25]=h):h=t[25];let m;return t[26]!==h||t[27]!==r?(m=s.jsx(Q,{title:r,children:h}),t[26]=h,t[27]=r,t[28]=m):m=t[28],m}function Ye(){const e=y.c(3),t=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx($e,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"reviewer_enabled",icon:i,titleKey:"settings.review.reviewerTitle",descriptionKey:"settings.review.reviewerDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function Ge(){const e=y.c(3),t=Re();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{size:16}),e[0]=i):i=e[0];let n;return e[1]!==t?(n=s.jsx(u,{flag:"auto_resolve_conflicts",icon:i,titleKey:"settings.review.autoResolveConflictsTitle",descriptionKey:"settings.review.autoResolveConflictsDescription",enabled:t}),e[1]=t,e[2]=n):n=e[2],n}function u(e){const t=y.c(23),{flag:i,icon:n,titleKey:l,descriptionKey:c,enabled:o}=e,r=T(),g=ge(i),x=o??g,j=De();let b;t[0]!==r||t[1]!==l?(b=r(l),t[0]=r,t[1]=l,t[2]=b):b=t[2];let _;t[3]!==c||t[4]!==r?(_=r(c),t[3]=c,t[4]=r,t[5]=_):_=t[5];const v=j.isPending;let d;t[6]!==r||t[7]!==l?(d=r(l),t[6]=r,t[7]=l,t[8]=d):d=t[8];let f;t[9]!==i||t[10]!==j||t[11]!==r?(f=m=>j.mutate(i,m,{onError:()=>le.error(r("settings.review.updateError"))}),t[9]=i,t[10]=j,t[11]=r,t[12]=f):f=t[12];let a;t[13]!==x||t[14]!==j.isPending||t[15]!==d||t[16]!==f?(a=s.jsx(ae,{checked:x,disabled:v,"aria-label":d,onCheckedChange:f}),t[13]=x,t[14]=j.isPending,t[15]=d,t[16]=f,t[17]=a):a=t[17];let h;return t[18]!==n||t[19]!==b||t[20]!==_||t[21]!==a?(h=s.jsx(U,{icon:n,title:b,description:_,action:a}),t[18]=n,t[19]=b,t[20]=_,t[21]=a,t[22]=h):h=t[22],h}export{st as A,nt as B,it as C,lt as P,tt as R,ot as a};
@@ -1 +1 @@
1
- import{a6 as I,ho as N,ay as L,i as _,K as B}from"./index-TxpTb6t-.js";const v="connections",d="*",m="!";function p(e){return`${m}${e}`}function T(e){return e.startsWith(m)?e.slice(m.length):null}function w(e){if(e.includes(p(d)))return{kind:"only",names:[]};const t=new Set,r=new Set;for(const n of e){const l=T(n);l!==null?t.add(l):n!==d&&r.add(n)}return e.includes(d)?t.size===0?{kind:"all"}:{kind:"except",names:[...t]}:{kind:"only",names:[...r].filter(n=>!t.has(n))}}function D(e){return[d,...e.names.map(p)]}const O="projects";function K(e){if(!e)return null;const t=e[O];return Array.isArray(t)?t:null}function x(e){return e===null?{kind:"all"}:w(e)}const A=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function F(e){return e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function k(e){if(!e)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const t=[];let r=!1;const n=[];let l=!1;const c=new Set;let a=!1,i=0,f=!1;for(const[o,s]of Object.entries(e)){if(o==="self"){s.includes("*")?r=!0:t.push(...s);continue}if(o==="models"){s.includes("*:*")?f=!0:i=s.length;continue}if(o!==O){if(o===v){w(s).kind!=="only"&&(l=!0,a=!0);continue}if(o==="*"){if(l=!0,s.includes("*"))a=!0;else for(const u of s)c.add(u);continue}if(n.push(o),s.includes("*"))a=!0;else for(const u of s)c.add(u)}}return{staticPermissions:t,allowsAllStaticPermissions:r,connectionIds:n,allowsAllConnections:l,toolNames:Array.from(c),allowsAllTools:a,modelCount:i,allowsAllModels:f}}function U(){const{locator:e}=I(),t=N(),{isPrivileged:r}=L(),{data:n,isLoading:l,error:c,refetch:a}=_({queryKey:B.organizationRoles(e),queryFn:async()=>{try{const o=await t.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},enabled:r,staleTime:3e4}),i=A.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(n&&Array.isArray(n))for(const o of n){const s=o.role;if(!s||A.some(E=>E.value===s))continue;const{staticPermissions:u,allowsAllStaticPermissions:g,connectionIds:P,allowsAllConnections:h,toolNames:S,allowsAllTools:C,modelCount:y,allowsAllModels:b}=k(o.permission);i.push({id:o.id,role:s,label:F(s),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:g?-1:u.length,allowsAllStaticPermissions:g,connectionCount:h?-1:P.length,allowsAllConnections:h,toolCount:C?-1:S.length,allowsAllTools:C,modelCount:b?-1:y,allowsAllModels:b})}const f=i.filter(o=>!o.isBuiltin);return{roles:i,customRoles:f,builtinRoles:i.filter(o=>o.isBuiltin),isLoading:l,error:c,refetch:a}}const R=["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5"],z={owner:"bg-destructive",admin:"bg-chart-1",user:"bg-success"};function M(e){if(!e)return"bg-muted-foreground";let t=0;for(let n=0;n<e.length;n++){const l=e.charCodeAt(n);t=(t<<5)-t+l,t=t&t}const r=Math.abs(t)%R.length;return R[r]}function Y(e,t){return t?z[e]??"bg-muted-foreground":M(e)}export{v as C,O as P,M as a,d as b,K as c,p as d,w as e,Y as g,D as l,x as p,U as u};
1
+ import{a6 as I,ho as N,ay as L,i as _,K as B}from"./index-BmFua4_V.js";const v="connections",d="*",m="!";function p(e){return`${m}${e}`}function T(e){return e.startsWith(m)?e.slice(m.length):null}function w(e){if(e.includes(p(d)))return{kind:"only",names:[]};const t=new Set,r=new Set;for(const n of e){const l=T(n);l!==null?t.add(l):n!==d&&r.add(n)}return e.includes(d)?t.size===0?{kind:"all"}:{kind:"except",names:[...t]}:{kind:"only",names:[...r].filter(n=>!t.has(n))}}function D(e){return[d,...e.names.map(p)]}const O="projects";function K(e){if(!e)return null;const t=e[O];return Array.isArray(t)?t:null}function x(e){return e===null?{kind:"all"}:w(e)}const A=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function F(e){return e.replace(/-/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function k(e){if(!e)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const t=[];let r=!1;const n=[];let l=!1;const c=new Set;let a=!1,i=0,f=!1;for(const[o,s]of Object.entries(e)){if(o==="self"){s.includes("*")?r=!0:t.push(...s);continue}if(o==="models"){s.includes("*:*")?f=!0:i=s.length;continue}if(o!==O){if(o===v){w(s).kind!=="only"&&(l=!0,a=!0);continue}if(o==="*"){if(l=!0,s.includes("*"))a=!0;else for(const u of s)c.add(u);continue}if(n.push(o),s.includes("*"))a=!0;else for(const u of s)c.add(u)}}return{staticPermissions:t,allowsAllStaticPermissions:r,connectionIds:n,allowsAllConnections:l,toolNames:Array.from(c),allowsAllTools:a,modelCount:i,allowsAllModels:f}}function U(){const{locator:e}=I(),t=N(),{isPrivileged:r}=L(),{data:n,isLoading:l,error:c,refetch:a}=_({queryKey:B.organizationRoles(e),queryFn:async()=>{try{const o=await t.organization.listRoles();return o?.error?(console.error("[useOrganizationRoles] API error:",o.error),[]):o?.data??[]}catch(o){return console.error("[useOrganizationRoles] Fetch error:",o),[]}},enabled:r,staleTime:3e4}),i=A.map(o=>({role:o.value,label:o.label,isBuiltin:o.isBuiltin}));if(n&&Array.isArray(n))for(const o of n){const s=o.role;if(!s||A.some(E=>E.value===s))continue;const{staticPermissions:u,allowsAllStaticPermissions:g,connectionIds:P,allowsAllConnections:h,toolNames:S,allowsAllTools:C,modelCount:y,allowsAllModels:b}=k(o.permission);i.push({id:o.id,role:s,label:F(s),isBuiltin:!1,permission:o.permission??void 0,staticPermissionCount:g?-1:u.length,allowsAllStaticPermissions:g,connectionCount:h?-1:P.length,allowsAllConnections:h,toolCount:C?-1:S.length,allowsAllTools:C,modelCount:b?-1:y,allowsAllModels:b})}const f=i.filter(o=>!o.isBuiltin);return{roles:i,customRoles:f,builtinRoles:i.filter(o=>o.isBuiltin),isLoading:l,error:c,refetch:a}}const R=["bg-chart-1","bg-chart-2","bg-chart-3","bg-chart-4","bg-chart-5"],z={owner:"bg-destructive",admin:"bg-chart-1",user:"bg-success"};function M(e){if(!e)return"bg-muted-foreground";let t=0;for(let n=0;n<e.length;n++){const l=e.charCodeAt(n);t=(t<<5)-t+l,t=t&t}const r=Math.abs(t)%R.length;return R[r]}function Y(e,t){return t?z[e]??"bg-muted-foreground":M(e)}export{v as C,O as P,M as a,d as b,K as c,p as d,w as e,Y as g,D as l,x as p,U as u};