decocms 4.500.6 → 4.500.8

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 (369) hide show
  1. package/dist/client/assets/{ActiveShapeUtils-BHdUySfQ.js → ActiveShapeUtils-QhekdQES.js} +1 -1
  2. package/dist/client/assets/{AlertCircle-BBiRNTdE.js → AlertCircle-DVHl2wob.js} +1 -1
  3. package/dist/client/assets/{AreaChart-DzGyoHJY.js → AreaChart-CzXYdxfM.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-DwPfX3sc.js → ArrowLeft-5wXFDAmZ.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-XUO4rGpO.js → ArrowUp-DESKNNlf.js} +1 -1
  6. package/dist/client/assets/{BarChart-DAturvGe.js → BarChart-CrZ82YV4.js} +1 -1
  7. package/dist/client/assets/{Building02-CFG818HY.js → Building02-CFiq1p9R.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-DIdWIqvV.js → CategoricalChart-Wv_V3Cf8.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-BZiV5rFy.js → CheckCircle-DAvSmLHO.js} +1 -1
  10. package/dist/client/assets/{ChevronSelectorVertical-Dc4zDElk.js → ChevronSelectorVertical-KK06uLTv.js} +1 -1
  11. package/dist/client/assets/{ChevronUp-ZSzJudc4.js → ChevronUp-Di-YfZWV.js} +1 -1
  12. package/dist/client/assets/{Copy01-CT9uxfj6.js → Copy01-CvnGuZZ3.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-DCwoKma6.js → CreditCard01-CpFAcFMU.js} +1 -1
  14. package/dist/client/assets/{DotsVertical-CcRpaMtq.js → DotsVertical-B8mqV8lL.js} +1 -1
  15. package/dist/client/assets/{ErrorBarContext-9Kz0FTp2.js → ErrorBarContext-CZTgevMW.js} +1 -1
  16. package/dist/client/assets/{Globe04-D88PtZSB.js → Globe04-CCXvQu2N.js} +1 -1
  17. package/dist/client/assets/{Image01-DUunwh52.js → Image01-WncLby5J.js} +1 -1
  18. package/dist/client/assets/{Key01-Dy9XOW24.js → Key01-Bhf2mFGP.js} +1 -1
  19. package/dist/client/assets/{Link01-BDbdWLwx.js → Link01-vjT_tIt-.js} +1 -1
  20. package/dist/client/assets/{LinkBroken01-BFW8MxYc.js → LinkBroken01-SQZX7UHe.js} +1 -1
  21. package/dist/client/assets/{Monitor01-Cm6_ReiN.js → Monitor01-CZgg0RSg.js} +1 -1
  22. package/dist/client/assets/{Play-DFfgxv2q.js → Play-CSVNLFwP.js} +1 -1
  23. package/dist/client/assets/{Plus-clvoB9-y.js → Plus-C7i72Ui0.js} +1 -1
  24. package/dist/client/assets/{SearchMd-Bg-9XsfQ.js → SearchMd--I1GEx-C.js} +1 -1
  25. package/dist/client/assets/{Sector-Byc95Y0H.js → Sector-CBgTYwFd.js} +1 -1
  26. package/dist/client/assets/{ShoppingBag01-C_AR4ZKW.js → ShoppingBag01-E-rUyhpG.js} +1 -1
  27. package/dist/client/assets/{Sun-Dzm8FpU3.js → Sun-D612nlCs.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-D8mpLNM6.js → SwitchHorizontal01-DCGuISL6.js} +1 -1
  29. package/dist/client/assets/{Tool01-D8RNlK5k.js → Tool01-DqVqi_FU.js} +1 -1
  30. package/dist/client/assets/{Trash01-ByfCfoe2.js → Trash01-BdVvG1w5.js} +1 -1
  31. package/dist/client/assets/{Upload01-BOzWcBO4.js → Upload01-CEQBjXAP.js} +1 -1
  32. package/dist/client/assets/{User01-VVR3ncLA.js → User01-DzMieRdG.js} +1 -1
  33. package/dist/client/assets/{UserSquare-BG_D4lBt.js → UserSquare-CEGUDYl2.js} +1 -1
  34. package/dist/client/assets/{Users01-BT5Jdc2I.js → Users01-CW8HA66N.js} +1 -1
  35. package/dist/client/assets/{XAxis-BL1uz4Hu.js → XAxis-B4lxSeIN.js} +1 -1
  36. package/dist/client/assets/{XClose-Ck0EFhGe.js → XClose-ByJq3z1t.js} +1 -1
  37. package/dist/client/assets/{ZoomOut-DJOChAz1.js → ZoomOut-CePPHC89.js} +1 -1
  38. package/dist/client/assets/{access-gate-DTjgjsQi.js → access-gate-1kOXhtpA.js} +1 -1
  39. package/dist/client/assets/{add-connection-dialog-DhxH1mO6.js → add-connection-dialog-Cd8-TxBb.js} +1 -1
  40. package/dist/client/assets/{agent-analytics-CRCDBvT9.js → agent-analytics-CgOyzHtX.js} +1 -1
  41. package/dist/client/assets/agent-app-DWW7Imub.js +1 -0
  42. package/dist/client/assets/{agent-assets-BupbbWua.js → agent-assets-BcISoUVX.js} +1 -1
  43. package/dist/client/assets/agent-automation-hFGAVqfl.js +20 -0
  44. package/dist/client/assets/{agent-automations-Bf5oYp8h.js → agent-automations-Ba-x7Ucu.js} +1 -1
  45. package/dist/client/assets/{agent-connect-sources-CyYVygog.js → agent-connect-sources-BIS9GVvp.js} +1 -1
  46. package/dist/client/assets/agent-deck-DPEVXLN-.js +1 -0
  47. package/dist/client/assets/{agent-e2e-Dc15KMWY.js → agent-e2e-s6kTYT1M.js} +1 -1
  48. package/dist/client/assets/{agent-experiments-Dn4D2o0f.js → agent-experiments-Dxl1C9iM.js} +1 -1
  49. package/dist/client/assets/{agent-file-HtB1MCoL.js → agent-file-pfVCGOAk.js} +1 -1
  50. package/dist/client/assets/{agent-hosting-B16K2Ojh.js → agent-hosting-BTX9u40j.js} +1 -1
  51. package/dist/client/assets/{agent-icon-CSrsRkkV.js → agent-icon-BVzFWL_k.js} +1 -1
  52. package/dist/client/assets/agent-library-DXQXsht4.js +1 -0
  53. package/dist/client/assets/agent-library-file-D6Vi3vOs.js +1 -0
  54. package/dist/client/assets/{agent-monitor-BVZ6dj6l.js → agent-monitor-CooIUBTW.js} +1 -1
  55. package/dist/client/assets/{agent-overview-Fv2Tlbaf.js → agent-overview-B2THCwmT.js} +1 -1
  56. package/dist/client/assets/agent-settings-Cr6Ua7-i.js +1 -0
  57. package/dist/client/assets/{agent-site-editor-CXtKOY2R.js → agent-site-editor-Jv_-LWOu.js} +1 -1
  58. package/dist/client/assets/agent-site-editor-code-BwIPkqrc.js +2 -0
  59. package/dist/client/assets/{agent-site-editor-content-C7FjEODf.js → agent-site-editor-content-Dz3-PHZu.js} +3 -3
  60. package/dist/client/assets/{agent-site-editor-preview-BfKLwBCP.js → agent-site-editor-preview-CgJHEW_f.js} +3 -3
  61. package/dist/client/assets/agent-view-DnTdo1a1.js +1 -0
  62. package/dist/client/assets/{agent-view-guard-CbFaNTaO.js → agent-view-guard-Bp3FWE2P.js} +1 -1
  63. package/dist/client/assets/{agents-list-rRAvXkxo.js → agents-list-ZBnW_d9y.js} +1 -1
  64. package/dist/client/assets/{ai-providers-DxQSPA6H.js → ai-providers-CPmQ2-wf.js} +1 -1
  65. package/dist/client/assets/{alert-BB7UNECi.js → alert-CUPV9wwi.js} +1 -1
  66. package/dist/client/assets/{alert-dialog-Bq1vUmcb.js → alert-dialog-DTOyag1c.js} +1 -1
  67. package/dist/client/assets/{analytics-sections-D4hmenz2.js → analytics-sections-Cz6ahzfq.js} +1 -1
  68. package/dist/client/assets/api-keys-A7GHzfae.js +1 -0
  69. package/dist/client/assets/{api-keys-CwCZzaXX.js → api-keys-CHntF__V.js} +1 -1
  70. package/dist/client/assets/app-editor-Bt0fzZ_2.js +1 -0
  71. package/dist/client/assets/{asset-utils-D2JqsHLw.js → asset-utils-CDOZckz4.js} +1 -1
  72. package/dist/client/assets/{auth-Cf8kTvK7.js → auth-BM0B-cGs.js} +1 -1
  73. package/dist/client/assets/{auth-catchall-CMb2pPKe.js → auth-catchall-D1kP6GLS.js} +1 -1
  74. package/dist/client/assets/{auth-entry-DJDQHUOg.js → auth-entry-Cmk5Wmvz.js} +1 -1
  75. package/dist/client/assets/{auth-split-layout-DL8EKWzu.js → auth-split-layout-DAOQnS6B.js} +1 -1
  76. package/dist/client/assets/{authenticate-and-persist-oauth-CNIjDkAv.js → authenticate-and-persist-oauth-BRn95Iqc.js} +1 -1
  77. package/dist/client/assets/{automation-list-row-CmUakn9s.js → automation-list-row-lOitm-O0.js} +1 -1
  78. package/dist/client/assets/{automation-runs-CBloXkSc.js → automation-runs-hkYLmevl.js} +1 -1
  79. package/dist/client/assets/{automations-Bc2qeNY9.js → automations-D0AFDtKD.js} +1 -1
  80. package/dist/client/assets/{autosend-Dbvfg9pv.js → autosend-ACmUx5MO.js} +1 -1
  81. package/dist/client/assets/{avatar-CVhMMaTf.js → avatar-Du8JG5EY.js} +1 -1
  82. package/dist/client/assets/{badge-GBNejOns.js → badge-BEq8f8Nc.js} +1 -1
  83. package/dist/client/assets/{block-document-L5yAxhd6.js → block-document-CCx23LIp.js} +1 -1
  84. package/dist/client/assets/{blocks-preview-workspace-context-BeUFeWIT.js → blocks-preview-workspace-context-Cy0jJ985.js} +1 -1
  85. package/dist/client/assets/{blog-schema-BIMlJLWj.js → blog-schema-CQg-jBGk.js} +1 -1
  86. package/dist/client/assets/{board-analytics-CBArh6Zy.js → board-analytics-X4J6IlHK.js} +1 -1
  87. package/dist/client/assets/{buckets-DMjEyGOV.js → buckets-Dq2wvP9B.js} +1 -1
  88. package/dist/client/assets/{build-improve-prompt-doc-DMgFOt46.js → build-improve-prompt-doc-vPJYIntG.js} +1 -1
  89. package/dist/client/assets/{calendar-D4OoX9Wr.js → calendar-DpEcLQ6J.js} +1 -1
  90. package/dist/client/assets/{capability-load-error-C0o_DJDN.js → capability-load-error-Bm4gFcel.js} +1 -1
  91. package/dist/client/assets/{category-editor-Bc1AHLqb.js → category-editor-DAWKWbpV.js} +1 -1
  92. package/dist/client/assets/{chart-DcIK_AOG.js → chart-CkvrWwO-.js} +1 -1
  93. package/dist/client/assets/{chat-context-NYUfgJBl.js → chat-context-BMIrv5uH.js} +5 -5
  94. package/dist/client/assets/{chat-draft-BIT8lUsr.js → chat-draft-_hxvCJKw.js} +1 -1
  95. package/dist/client/assets/{checkbox-1mSDcatb.js → checkbox-DvQZTmm6.js} +1 -1
  96. package/dist/client/assets/{choose-editor-DSkLDSjl.js → choose-editor-BRTmXclR.js} +1 -1
  97. package/dist/client/assets/{claim-phase-copy-Clje3zqq.js → claim-phase-copy-CukA7Dwd.js} +1 -1
  98. package/dist/client/assets/{cli-auth-success-DK3FztVN.js → cli-auth-success-DGrUaNM7.js} +1 -1
  99. package/dist/client/assets/{client-icons-C0HcvKpc.js → client-icons-5kuaT98X.js} +1 -1
  100. package/dist/client/assets/{collapsible-CeMlXkLt.js → collapsible-CRuF_99G.js} +1 -1
  101. package/dist/client/assets/{collection-detail-CBbaNdto.js → collection-detail-CbaGmCRX.js} +1 -1
  102. package/dist/client/assets/{collection-display-button-Cp21-jdI.js → collection-display-button-Blt_OAPx.js} +1 -1
  103. package/dist/client/assets/{collection-search-JcNHcOFg.js → collection-search-Bo7KXUbF.js} +1 -1
  104. package/dist/client/assets/{collection-table-wrapper-DoyJbjYf.js → collection-table-wrapper-YguS6Yzf.js} +1 -1
  105. package/dist/client/assets/{collection-tabs-CSZlwXCA.js → collection-tabs-DCHbr1Vt.js} +1 -1
  106. package/dist/client/assets/{column-rules-CDXH6Bu0.js → column-rules-C35w8JUr.js} +1 -1
  107. package/dist/client/assets/{combobox-B0RpAw2t.js → combobox-DocJ2-jK.js} +1 -1
  108. package/dist/client/assets/{command-CJiwms5W.js → command-BSyD71wq.js} +1 -1
  109. package/dist/client/assets/{companion-mcps-section--NmxcAor.js → companion-mcps-section-DL8GkhO5.js} +1 -1
  110. package/dist/client/assets/{config-C1YCQZ8E.js → config-BTwIN8U2.js} +1 -1
  111. package/dist/client/assets/{connect-layout-m9uvi79-.js → connect-layout-ayCcohdl.js} +1 -1
  112. package/dist/client/assets/{connect-6HWvGxM0.js → connect-pYGu8tEC.js} +1 -1
  113. package/dist/client/assets/{connection-pgjV95kc.js → connection-BV0Ji7-y.js} +1 -1
  114. package/dist/client/assets/{connection-card-CWkexnWw.js → connection-card-BGBC1Vy2.js} +1 -1
  115. package/dist/client/assets/{connection-detail-CkRea4yr.js → connection-detail-D_ocZmwm.js} +1 -1
  116. package/dist/client/assets/{connection-form-helpers-W4yLfkzt.js → connection-form-helpers-DgicL3qY.js} +1 -1
  117. package/dist/client/assets/{connections-BRM4t7Yz.js → connections-CniO7wM-.js} +1 -1
  118. package/dist/client/assets/{context-BJ70LQt3.js → context-BSQXU5RQ.js} +1 -1
  119. package/dist/client/assets/{context-menu-oPFsFXlL.js → context-menu-BfMN3bc-.js} +1 -1
  120. package/dist/client/assets/{core.esm-BaMzqjA4.js → core.esm-Dilbpce_.js} +1 -1
  121. package/dist/client/assets/{create-organization-dialog-TMOD9u6U.js → create-organization-dialog-C1SjjvU5.js} +1 -1
  122. package/dist/client/assets/{daily-pulse-BO10zQ_I.js → daily-pulse-DevsdiuS.js} +1 -1
  123. package/dist/client/assets/{device-hint-DAX5UNJH.js → device-hint-Di9sQxnE.js} +1 -1
  124. package/dist/client/assets/{discover-CTV9dsNW.js → discover-BLt_q0rw.js} +1 -1
  125. package/dist/client/assets/{domain-settings-CYeaKhkK.js → domain-settings-Chk6V0ER.js} +1 -1
  126. package/dist/client/assets/{drawer-DWjMBwyf.js → drawer-BXTiY6dg.js} +1 -1
  127. package/dist/client/assets/{editor-D6w2Bb1A.js → editor-BO3RLENr.js} +1 -1
  128. package/dist/client/assets/{empty-state-BjrW4gr3.js → empty-state-DzqjIExe.js} +1 -1
  129. package/dist/client/assets/{empty-state-DfOpTmwf.js → empty-state-MnAK8EeW.js} +1 -1
  130. package/dist/client/assets/{extract-connection-data-BWH-Gguq.js → extract-connection-data-DykkXLPs.js} +1 -1
  131. package/dist/client/assets/{feature-gate-CAHn_bYX.js → feature-gate-CWfa-r5C.js} +1 -1
  132. package/dist/client/assets/{feature-paywall-D3P0r-v1.js → feature-paywall-CqkVt_-T.js} +1 -1
  133. package/dist/client/assets/{file-explorer-D8gxxm_3.js → file-explorer-AcHh43mk.js} +1 -1
  134. package/dist/client/assets/{file-preview-Dfh2A-J9.js → file-preview-BqIq4rHb.js} +1 -1
  135. package/dist/client/assets/{file-share-button-BDicbalV.js → file-share-button-DuHzh-x9.js} +1 -1
  136. package/dist/client/assets/{file-type-icon-hf5iGs8U.js → file-type-icon-BRADjmum.js} +1 -1
  137. package/dist/client/assets/flat-project-DYnMR914.js +1 -0
  138. package/dist/client/assets/{folder-icon-BNfJeIOf.js → folder-icon-t6qoYUX-.js} +1 -1
  139. package/dist/client/assets/{form-Bn1uWhLp.js → form-qApBoH9w.js} +1 -1
  140. package/dist/client/assets/{general-CMoIUwrd.js → general-1xmPf-mm.js} +1 -1
  141. package/dist/client/assets/{home-C5N5Yasj.js → home-IMnM6qUa.js} +1 -1
  142. package/dist/client/assets/{icon-button-D9OpoKyB.js → icon-button-CTsUwdOO.js} +1 -1
  143. package/dist/client/assets/{index-BW9tBS1_.js → index-B-OFv0CL.js} +1 -1
  144. package/dist/client/assets/{index-DPPcuuZa.js → index-B5YiUV4I.js} +1 -1
  145. package/dist/client/assets/{index-aGwRFVIr.js → index-BONgNC04.js} +1 -1
  146. package/dist/client/assets/{index-DBXjCQdJ.js → index-BeBh88bO.js} +1 -1
  147. package/dist/client/assets/{index-CRbDzsEl.js → index-BnoCrGwV.js} +4 -4
  148. package/dist/client/assets/{index-Cei-7zh-.js → index-CqcefCZu.js} +1 -1
  149. package/dist/client/assets/{index-CijieWPb.js → index-CqlAEV0m.js} +1 -1
  150. package/dist/client/assets/{index-4oHb6320.js → index-DJa5VNJ9.js} +1 -1
  151. package/dist/client/assets/{index-BYDys87w.js → index-DU_EN75b.js} +1 -1
  152. package/dist/client/assets/{index-C0M3jIYV.js → index-DyoR2ZG0.js} +1 -1
  153. package/dist/client/assets/{index-m-B-HtFl.js → index-IBL9WNsl.js} +1 -1
  154. package/dist/client/assets/{index-redirect-oFouPYya.js → index-redirect-mQgNeOUi.js} +1 -1
  155. package/dist/client/assets/{index-2uENFhiF.js → index-unq9ZTJD.js} +3 -3
  156. package/dist/client/assets/{index-D8JxMS8j.js → index-w9yV707t.js} +1 -1
  157. package/dist/client/assets/{infiniteQueryObserver-Dhuk-wHX.js → infiniteQueryObserver-DzxIYVHF.js} +1 -1
  158. package/dist/client/assets/{infra-billing-D-XVEkhR.js → infra-billing-BKFmTcoI.js} +1 -1
  159. package/dist/client/assets/{input-XQLahzDk.js → input-D4UgTJ69.js} +3 -3
  160. package/dist/client/assets/{input-C8SbKhCo.js → input-Dwwabqbj.js} +1 -1
  161. package/dist/client/assets/{integration-icon-BELz_pOH.js → integration-icon-DcBDH52f.js} +1 -1
  162. package/dist/client/assets/{jira-icon-DtfD9SYH.js → jira-icon-j32fJ669.js} +1 -1
  163. package/dist/client/assets/{label-BUw2LYOJ.js → label-D0foYPWf.js} +1 -1
  164. package/dist/client/assets/{layout-d6dVT2i7.js → layout-Bj7xhNKz.js} +1 -1
  165. package/dist/client/assets/{legacy-agents-deep-pzQxt8GU.js → legacy-agents-deep-BVp2GTsJ.js} +1 -1
  166. package/dist/client/assets/{legacy-main-redirect-Dxx-LsCk.js → legacy-main-redirect-BjFRDgFy.js} +1 -1
  167. package/dist/client/assets/library-BBQI7-xd.js +1 -0
  168. package/dist/client/assets/{library-tab-CSQBidcn.js → library-tab-CqP8QMPw.js} +1 -1
  169. package/dist/client/assets/{login-C9F3Ei8y.js → login-DDOgddgu.js} +1 -1
  170. package/dist/client/assets/{markdown-CW257Zz5.js → markdown-mBxXiRvM.js} +1 -1
  171. package/dist/client/assets/{mcp-app-renderer-1q9SfIz-.js → mcp-app-renderer-DMqJU_ff.js} +1 -1
  172. package/dist/client/assets/{mcp-oauth-DJzQquAH.js → mcp-oauth-CS16PRCo.js} +1 -1
  173. package/dist/client/assets/{mcp-oauth-DcDGTHX8.js → mcp-oauth-Dg0thBi5.js} +1 -1
  174. package/dist/client/assets/{members-Cq2hjNgQ.js → members-C8Uoyb9d.js} +1 -1
  175. package/dist/client/assets/{memory-lQR7baEY.js → memory-DFNhRaxm.js} +1 -1
  176. package/dist/client/assets/{mini-report-page-BW6etI3e.js → mini-report-page-CvqJBueU.js} +1 -1
  177. package/dist/client/assets/{mock-board-v0ispli3.js → mock-board-DXq3mL_y.js} +1 -1
  178. package/dist/client/assets/{monaco-editor-BuUSistE.js → monaco-editor-CPeZZpu3.js} +1 -1
  179. package/dist/client/assets/{monitoring-stats-row-oudHSLAL.js → monitoring-stats-row-CuuaoKtt.js} +1 -1
  180. package/dist/client/assets/{multi-select-C-uRGkhX.js → multi-select-DH4C4azS.js} +1 -1
  181. package/dist/client/assets/{mustache-BISt82Zb.js → mustache-Dnm8KPo2.js} +1 -1
  182. package/dist/client/assets/{new-project-dialog-CU6GK7Hi.js → new-project-dialog-Cqt9GN_i.js} +1 -1
  183. package/dist/client/assets/{oauth-callback-Bl3J_Goo.js → oauth-callback-DRRwxtOq.js} +1 -1
  184. package/dist/client/assets/{oauth-callback-ai-provider-C2G5PQSS.js → oauth-callback-ai-provider-0n-RoExG.js} +1 -1
  185. package/dist/client/assets/{onboarding-CCQgINAK.js → onboarding-BKVLpJKr.js} +1 -1
  186. package/dist/client/assets/{openai-conversation-Dd1mqt5t.js → openai-conversation-MHgeBif6.js} +1 -1
  187. package/dist/client/assets/{optimistic-project-sidebar-views-6bEngMBF.js → optimistic-project-sidebar-views-nhoEQPGj.js} +1 -1
  188. package/dist/client/assets/{organization-choice-BsLbocoH.js → organization-choice-BzhWXbFm.js} +1 -1
  189. package/dist/client/assets/{orgs-BviopEAn.js → orgs-BaIwjZFJ.js} +1 -1
  190. package/dist/client/assets/{page-seo-form-BI_Up050.js → page-seo-form-DPSCL9_1.js} +1 -1
  191. package/dist/client/assets/{pair-gT7Vn8Gp.js → pair-xBw_CC4U.js} +1 -1
  192. package/dist/client/assets/{plan-ladder-eppTKAOz.js → plan-ladder-CuhqhssD.js} +1 -1
  193. package/dist/client/assets/{popover-UZd_hI6l.js → popover-DeebArTG.js} +1 -1
  194. package/dist/client/assets/{post-calendar-Cjve8Rxv.js → post-calendar-C2y7NNwt.js} +1 -1
  195. package/dist/client/assets/{post-editor-CZ0y9t6g.js → post-editor-BRGQM4sy.js} +1 -1
  196. package/dist/client/assets/{preview-content-DDkyBqjA.js → preview-content-C5X6_KWi.js} +1 -1
  197. package/dist/client/assets/{preview-dialog-ClQDORRP.js → preview-dialog-CP9b5pOj.js} +1 -1
  198. package/dist/client/assets/{preview-panel-D6Cx93Va.js → preview-panel-SuK698dS.js} +1 -1
  199. package/dist/client/assets/{product-picker-dialog-BzADIVCT.js → product-picker-dialog-BI1D6XcE.js} +1 -1
  200. package/dist/client/assets/{profile-3pRJt6iK.js → profile-CNcB1e0i.js} +1 -1
  201. package/dist/client/assets/{project-app-view-DOlvQRFJ.js → project-app-view-BPxNtoZa.js} +1 -1
  202. package/dist/client/assets/{project-feed-DwG8xB7e.js → project-feed-BwN9nKdh.js} +1 -1
  203. package/dist/client/assets/{project-icon-CgRPdhMz.js → project-icon-B64BT2qc.js} +1 -1
  204. package/dist/client/assets/project-reports-UeFimlBu.js +1 -0
  205. package/dist/client/assets/project-tasks-C_MGzrBm.js +1 -0
  206. package/dist/client/assets/{projects-DAlf21yV.js → projects-1NLUJAKv.js} +1 -1
  207. package/dist/client/assets/{projects-empty-state-NpSKf9NQ.js → projects-empty-state-hsfXEaTK.js} +1 -1
  208. package/dist/client/assets/{prompts-BqXStpOV.js → prompts-DtIJm1-q.js} +1 -1
  209. package/dist/client/assets/record-editor-BZBgjIzu.js +1 -0
  210. package/dist/client/assets/redirect-editor-C6x-CduV.js +1 -0
  211. package/dist/client/assets/{reports-zibGg05d.js → reports-ACS-Nba_.js} +1 -1
  212. package/dist/client/assets/reports-C8vsf2am.js +1 -0
  213. package/dist/client/assets/{reports-onboarding-DNardEjj.js → reports-onboarding-TpGsieg8.js} +1 -1
  214. package/dist/client/assets/{reports-tab-B7A5GfAR.js → reports-tab-BY0hxMVO.js} +2 -2
  215. package/dist/client/assets/{repositories-DCzfX5wT.js → repositories-CKLepZhj.js} +1 -1
  216. package/dist/client/assets/{repository-binding-GEAUbB-O.js → repository-binding-C8cI0_BR.js} +1 -1
  217. package/dist/client/assets/{repository-import-picker-CGZicTtt.js → repository-import-picker-BKAJgfVd.js} +1 -1
  218. package/dist/client/assets/{repository-picker-ipWiqqIY.js → repository-picker-F2WyjZCv.js} +1 -1
  219. package/dist/client/assets/{require-capability-DCY-qqzS.js → require-capability-BgNMdquK.js} +1 -1
  220. package/dist/client/assets/{required-auth-layout-B0JL0M-z.js → required-auth-layout-C7-28_EU.js} +1 -1
  221. package/dist/client/assets/{reset-password-C0OP0JfY.js → reset-password-CKnTOzi4.js} +1 -1
  222. package/dist/client/assets/{resizable-CNroF4sn.js → resizable-CTrq392s.js} +1 -1
  223. package/dist/client/assets/{resolve-tab-icon-Dxlq4MHo.js → resolve-tab-icon-BlUXvZF3.js} +1 -1
  224. package/dist/client/assets/{review-settings-DUuUJ0iP.js → review-settings-DqiJkLo7.js} +1 -1
  225. package/dist/client/assets/{rich-text-link-control-Cyib9lpp.js → rich-text-link-control-BJZoQZZi.js} +1 -1
  226. package/dist/client/assets/{roles-B3QPIjlh.js → roles-BHrtuvIr.js} +1 -1
  227. package/dist/client/assets/{route--gK_s8W2.js → route-BscI37la.js} +1 -1
  228. package/dist/client/assets/{route-Dh4tgoWv.js → route-CH91bGcP.js} +1 -1
  229. package/dist/client/assets/route-saa6yPXu.js +1 -0
  230. package/dist/client/assets/{runnable-block-editor-cJtvApNo.js → runnable-block-editor-gl-EMkKx.js} +1 -1
  231. package/dist/client/assets/{sandbox-lifecycle-context-DtkY5KHH.js → sandbox-lifecycle-context-D-v0LKtL.js} +1 -1
  232. package/dist/client/assets/{schema-DxY623qB.js → schema-BPpEaREa.js} +1 -1
  233. package/dist/client/assets/{schema-DCzFPjhQ.js → schema-Cwz0xn-Q.js} +1 -1
  234. package/dist/client/assets/{scroll-area-BOuDQrjF.js → scroll-area-ClXMKXdj.js} +1 -1
  235. package/dist/client/assets/{search-input-DXojQXHS.js → search-input-BPlE2YGC.js} +1 -1
  236. package/dist/client/assets/{search-toggle-BHQUIlgP.js → search-toggle-BJ6kk5fK.js} +1 -1
  237. package/dist/client/assets/{secret-picker-DghVxrjs.js → secret-picker-vqj_Z_Kc.js} +1 -1
  238. package/dist/client/assets/{secrets-Bw5YDwtb.js → secrets-DNo6UMoB.js} +1 -1
  239. package/dist/client/assets/{sections-editor-zfrx_XIM.js → sections-editor-BkwXm1xr.js} +1 -1
  240. package/dist/client/assets/{select-nSDsr0Zi.js → select-4dFEgKOb.js} +1 -1
  241. package/dist/client/assets/{select-model-B19lAAyT.js → select-model-C6MqONr4.js} +1 -1
  242. package/dist/client/assets/{seo-editor-Do7Fekf0.js → seo-editor-B6SwqtaH.js} +1 -1
  243. package/dist/client/assets/{separator-D9Lu8Cm9.js → separator-rAnSnPbj.js} +1 -1
  244. package/dist/client/assets/{settings-tab-TpMIkIJy.js → settings-tab-Bv9C4ymg.js} +1 -1
  245. package/dist/client/assets/{sheet-Bg01hTvG.js → sheet-CV4TQLcF.js} +1 -1
  246. package/dist/client/assets/{shell-layout-BO31z5MQ.js → shell-layout-CEs2Lzv8.js} +1 -1
  247. package/dist/client/assets/{skills-Bf1PjaTY.js → skills-Cdtjp8Cm.js} +1 -1
  248. package/dist/client/assets/{slider-D1s4eRGk.js → slider-C-yLU3nZ.js} +1 -1
  249. package/dist/client/assets/{sortable.esm-DcO5R1X-.js → sortable.esm-Di32jx09.js} +1 -1
  250. package/dist/client/assets/{sso-C7L4UDB8.js → sso-DgQQiYUH.js} +1 -1
  251. package/dist/client/assets/{suggestion-D6_m0iRs.js → suggestion-DZ2maKDk.js} +1 -1
  252. package/dist/client/assets/{switch-C2mEXqfo.js → switch-Dl_eh6Nb.js} +1 -1
  253. package/dist/client/assets/{symbol-Cb89sKGf.js → symbol-CobSncd2.js} +1 -1
  254. package/dist/client/assets/{synced-repos-uukt7jKa.js → synced-repos-OnaK9DdK.js} +1 -1
  255. package/dist/client/assets/{tab-icon-glyph-Cmkw2CVR.js → tab-icon-glyph-MSjQA0K5.js} +1 -1
  256. package/dist/client/assets/{table-CtPELWNl.js → table-CDMv2RNX.js} +1 -1
  257. package/dist/client/assets/{tabs-D0ZapmHf.js → tabs-Bm8-oaP0.js} +1 -1
  258. package/dist/client/assets/{task-board-Cq7KN9Yp.js → task-board-l22wFLNQ.js} +1 -1
  259. package/dist/client/assets/{task-route-Cj_KfcXd.js → task-route-D_QgJz9B.js} +1 -1
  260. package/dist/client/assets/{task-status-Dl4YXdIS.js → task-status-CmkAheNu.js} +1 -1
  261. package/dist/client/assets/taskboard-analytics-D1RzGECH.js +1 -0
  262. package/dist/client/assets/{tasks-ZUmpusO0.js → tasks-CyUEJ-zk.js} +1 -1
  263. package/dist/client/assets/tasks-ybPiOXw5.js +1 -0
  264. package/dist/client/assets/{textarea-DKdq_MAz.js → textarea-DoDVPYV2.js} +1 -1
  265. package/dist/client/assets/{thread-analytics-Dmg-wMap.js → thread-analytics-Cdk2jcnI.js} +1 -1
  266. package/dist/client/assets/{thread-button-D0vpHKhc.js → thread-button-iNSq397a.js} +1 -1
  267. package/dist/client/assets/{thread-intent-DTPz1weL.js → thread-intent-CXunryww.js} +1 -1
  268. package/dist/client/assets/{thread-route-gGOzpjkp.js → thread-route-BPs4zslo.js} +1 -1
  269. package/dist/client/assets/{thread-route-COCJBhr6.js → thread-route-BtywJWO6.js} +1 -1
  270. package/dist/client/assets/{thread-sheet-body-BuMvTCp6.js → thread-sheet-body-DATcetgP.js} +1 -1
  271. package/dist/client/assets/{time-range-picker-MFuLyt2k.js → time-range-picker-BDkyREOJ.js} +1 -1
  272. package/dist/client/assets/{toggle-group-CZ2TAUmo.js → toggle-group-D6lQXGki.js} +1 -1
  273. package/dist/client/assets/{tool-namespace-BsBj6Gec.js → tool-namespace-BCIJDBpU.js} +1 -1
  274. package/dist/client/assets/{toolbar-icon-button-BbfFE6qt.js → toolbar-icon-button-yglM36kK.js} +1 -1
  275. package/dist/client/assets/{tooltip-3DBbiHrv.js → tooltip-D58qe9VW.js} +1 -1
  276. package/dist/client/assets/{tooltipContext-Bv4e3_jQ.js → tooltipContext-DmjVpXSV.js} +1 -1
  277. package/dist/client/assets/{track-2QxiEKmh.js → track-R2_XgeZf.js} +1 -1
  278. package/dist/client/assets/{types-DJQTaYxP.js → types-BPkPu0Zu.js} +1 -1
  279. package/dist/client/assets/{url-slug-CVpOSHeG.js → url-slug-BeoES-bn.js} +1 -1
  280. package/dist/client/assets/{usage-stats-x-NR7rQ4.js → usage-stats-BL57yImZ.js} +1 -1
  281. package/dist/client/assets/{use-ai-providers-scSugiQF.js → use-ai-providers-Fk-ioKuC.js} +1 -1
  282. package/dist/client/assets/{use-automations-DxHm0Snl.js → use-automations-CWCytpPL.js} +1 -1
  283. package/dist/client/assets/{use-autosave-6XZ1t5rl.js → use-autosave-6dz-PwTx.js} +1 -1
  284. package/dist/client/assets/{use-chat-layout-state-n4Q3uYHD.js → use-chat-layout-state-DXfMGuIM.js} +1 -1
  285. package/dist/client/assets/{use-chat-navigation-CpL4JFZX.js → use-chat-navigation-zHRcYkWa.js} +1 -1
  286. package/dist/client/assets/{use-clock-tick-X8apRSs5.js → use-clock-tick-Dz0tKfh3.js} +1 -1
  287. package/dist/client/assets/{use-connect-companion-DejR02Br.js → use-connect-companion-CYsjOss7.js} +1 -1
  288. package/dist/client/assets/{use-connection--fjYRP_g.js → use-connection-CWYEcZtk.js} +1 -1
  289. package/dist/client/assets/{use-copy-DWNF2ghn.js → use-copy-DKdPALi_.js} +1 -1
  290. package/dist/client/assets/{use-create-virtual-mcp-CSStLbyC.js → use-create-virtual-mcp-CRO0toUl.js} +1 -1
  291. package/dist/client/assets/{use-date-fns-locale-uYFiDToW.js → use-date-fns-locale-Bv2awPzh.js} +1 -1
  292. package/dist/client/assets/{use-debounced-autosave-NE-5LrTu.js → use-debounced-autosave-BXZmHqy0.js} +1 -1
  293. package/dist/client/assets/{use-debounced-value-Db_6wQub.js → use-debounced-value-Bkmt--Vh.js} +1 -1
  294. package/dist/client/assets/{use-deco-credits-DiTvJIB8.js → use-deco-credits-D9reDEA1.js} +1 -1
  295. package/dist/client/assets/{use-decopilot-events-D14uF_Cy.js → use-decopilot-events-DAjIYzO8.js} +1 -1
  296. package/dist/client/assets/{use-delete-connection-CJW-ymsx.js → use-delete-connection-CmABKTTR.js} +1 -1
  297. package/dist/client/assets/{use-deployment-admin-RiMk6_Ng.js → use-deployment-admin-DSd4dZS8.js} +1 -1
  298. package/dist/client/assets/{use-ensure-project-folder-CJRjmHmY.js → use-ensure-project-folder-BL_22sUH.js} +1 -1
  299. package/dist/client/assets/{use-fast-preview-draft-url-CSEoIdMd.js → use-fast-preview-draft-url-B5iYwDtB.js} +1 -1
  300. package/dist/client/assets/{use-file-configs-BJG54sLn.js → use-file-configs-vHZ4c2kM.js} +1 -1
  301. package/dist/client/assets/{use-infinite-scroll-BPxCDDTo.js → use-infinite-scroll-IKS1f5vo.js} +1 -1
  302. package/dist/client/assets/{use-join-requests-CPoLxTNh.js → use-join-requests-7cPvmdKM.js} +1 -1
  303. package/dist/client/assets/{use-main-panel-tabs-Cal5VUTK.js → use-main-panel-tabs-B1NvXUoP.js} +1 -1
  304. package/dist/client/assets/{use-mcp-auth-status-CqBzsTJX.js → use-mcp-auth-status-VoQ-JrKz.js} +1 -1
  305. package/dist/client/assets/{use-mcp-client-BWo29jbN.js → use-mcp-client-F8qIxKEF.js} +1 -1
  306. package/dist/client/assets/{use-mcp-prompts-BmY4-dHy.js → use-mcp-prompts-BOuduomf.js} +1 -1
  307. package/dist/client/assets/{use-mcp-tools-D9a3atY2.js → use-mcp-tools-DJdMQuye.js} +1 -1
  308. package/dist/client/assets/{use-members-BsPA0Ct2.js → use-members-CbU4crhI.js} +1 -1
  309. package/dist/client/assets/{use-mobile-BcwC7VU3.js → use-mobile-BKee5QTm.js} +1 -1
  310. package/dist/client/assets/{use-navigate-to-agent-f1RDTOQU.js → use-navigate-to-agent-LQKyEvv0.js} +1 -1
  311. package/dist/client/assets/use-new-blocks-editor-CHx1p4ni.js +1 -0
  312. package/dist/client/assets/{use-open-billing-url-B1MJm7M5.js → use-open-billing-url-B8yYvcNp.js} +1 -1
  313. package/dist/client/assets/{use-org-auth-client-sBWqKZAZ.js → use-org-auth-client-DUhvuYX9.js} +1 -1
  314. package/dist/client/assets/{use-org-fs-BruBSf1P.js → use-org-fs-CfbJ-qpv.js} +1 -1
  315. package/dist/client/assets/{use-org-repo-syncs-CzMHVaws.js → use-org-repo-syncs-CzPhz0CF.js} +1 -1
  316. package/dist/client/assets/{use-org-sso-DQNJJVcp.js → use-org-sso-7gybTWnn.js} +1 -1
  317. package/dist/client/assets/{use-organization-roles-BLHGg1C0.js → use-organization-roles-CdaGJMnK.js} +1 -1
  318. package/dist/client/assets/{use-organization-settings-C2COOtae.js → use-organization-settings-DE6EFzZl.js} +1 -1
  319. package/dist/client/assets/{use-panel-navigate-sjPSBICL.js → use-panel-navigate-DAoDF43u.js} +1 -1
  320. package/dist/client/assets/{use-project-scope-B_oLVbNv.js → use-project-scope-C3zEyt8p.js} +1 -1
  321. package/dist/client/assets/{use-releases-BDZh8PFH.js → use-releases-BgJG-aAA.js} +1 -1
  322. package/dist/client/assets/{use-reports-diagnostic-bJK07n1G.js → use-reports-diagnostic-Bs8mcbPZ.js} +1 -1
  323. package/dist/client/assets/{use-sandbox-events-BxpyP1-g.js → use-sandbox-events-J3pRq7Wv.js} +1 -1
  324. package/dist/client/assets/{use-secrets-Dut38iEG.js → use-secrets-fCiG4Asp.js} +1 -1
  325. package/dist/client/assets/{use-section-preview-base-7N5lxhPB.js → use-section-preview-base-f9n8yDn_.js} +1 -1
  326. package/dist/client/assets/{use-tags-CjD7AOOq.js → use-tags-CXa_QGQ7.js} +1 -1
  327. package/dist/client/assets/{use-task-board-analytics-C-GLsHqS.js → use-task-board-analytics-BmiYUVWm.js} +1 -1
  328. package/dist/client/assets/{use-task-board-events-B4nYkYUb.js → use-task-board-events-BMlQSCd3.js} +1 -1
  329. package/dist/client/assets/{use-task-board-item-prs-CdlxN-Va.js → use-task-board-item-prs-CGXvUCxe.js} +1 -1
  330. package/dist/client/assets/{use-task-board-items-Bx0LqpaH.js → use-task-board-items-DFKc2jHy.js} +1 -1
  331. package/dist/client/assets/{use-task-metadata-BULXjcEM.js → use-task-metadata-0bCOd_zi.js} +1 -1
  332. package/dist/client/assets/{use-thread-analytics-BtDukIrk.js → use-thread-analytics-C37ZXdud.js} +1 -1
  333. package/dist/client/assets/{use-thread-outputs-CaENK2ep.js → use-thread-outputs-v6xfPIih.js} +1 -1
  334. package/dist/client/assets/useInfiniteQuery-CrNtEvb5.js +1 -0
  335. package/dist/client/assets/{useQueries-Ij5noImS.js → useQueries-BHfkbp1a.js} +1 -1
  336. package/dist/client/assets/useSuspenseInfiniteQuery-Ag6TKbPs.js +1 -0
  337. package/dist/client/assets/{users-Dd13UOxE.js → users-CdGgVfVK.js} +1 -1
  338. package/dist/client/assets/{utils-CoFqD39i.js → utils-DkhoCm_9.js} +1 -1
  339. package/dist/client/assets/{variant-calendar-DLgW_8Bs.js → variant-calendar-TCxR4Rbi.js} +1 -1
  340. package/dist/client/assets/{variant-matcher-override-BLuZbjc2.js → variant-matcher-override-CxhYuii7.js} +1 -1
  341. package/dist/client/assets/{view-mode-toggle-DGF1qVNP.js → view-mode-toggle-Oj88POra.js} +1 -1
  342. package/dist/client/assets/{virtual-mcp-eMBT1Rwh.js → virtual-mcp-BiznFoUx.js} +1 -1
  343. package/dist/client/assets/{watch-sse-pool-Bb7_5bsI.js → watch-sse-pool-BpjjRSV_.js} +1 -1
  344. package/dist/client/index.html +1 -1
  345. package/dist/server/server.js +1 -1
  346. package/package.json +1 -1
  347. package/dist/client/assets/agent-app-DuWlTve8.js +0 -1
  348. package/dist/client/assets/agent-automation-BrF1bbQv.js +0 -20
  349. package/dist/client/assets/agent-deck-DBdSSaIH.js +0 -1
  350. package/dist/client/assets/agent-library-Dfzx9j-W.js +0 -1
  351. package/dist/client/assets/agent-library-file-B0MZUu0i.js +0 -1
  352. package/dist/client/assets/agent-settings-E9aYbTuV.js +0 -1
  353. package/dist/client/assets/agent-site-editor-code-C7kSpllc.js +0 -2
  354. package/dist/client/assets/agent-view-BqtBvPf5.js +0 -1
  355. package/dist/client/assets/api-keys-C9apOrj-.js +0 -1
  356. package/dist/client/assets/app-editor-BNTMP2XY.js +0 -1
  357. package/dist/client/assets/flat-project-BZC_AY-t.js +0 -1
  358. package/dist/client/assets/library-C1bBtD2v.js +0 -1
  359. package/dist/client/assets/project-reports-D_goeZQT.js +0 -1
  360. package/dist/client/assets/project-tasks-DzgzriDY.js +0 -1
  361. package/dist/client/assets/record-editor-CwaNJSND.js +0 -1
  362. package/dist/client/assets/redirect-editor-CfZclWU6.js +0 -1
  363. package/dist/client/assets/reports-FtFAx270.js +0 -1
  364. package/dist/client/assets/route-K7GDvkOp.js +0 -1
  365. package/dist/client/assets/taskboard-analytics-DynaE5kc.js +0 -1
  366. package/dist/client/assets/tasks-YwCQME0_.js +0 -1
  367. package/dist/client/assets/use-new-blocks-editor-Enk3EEXi.js +0 -1
  368. package/dist/client/assets/useInfiniteQuery-BBVki4Du.js +0 -1
  369. package/dist/client/assets/useSuspenseInfiniteQuery-DP1_6mso.js +0 -1
@@ -1 +1 @@
1
- import{c as qe,a0 as Tt,a1 as bt,K as ge,m as St}from"./index-CRbDzsEl.js";import{s as xe}from"./thread-intent-DTPz1weL.js";function Tn(e){const t=qe.c(12);let n;t[0]!==e?(n=bt.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const r=n,[i,o]=Tt(r,null);let c;t[2]!==i||t[3]!==e?(c=e?xe(i):null,t[2]=i,t[3]=e,t[4]=c):c=t[4];const l=c;let u,T;t[5]!==o?(u=P=>o(xe(P)),T=()=>o(null),t[5]=o,t[6]=u,t[7]=T):(u=t[6],T=t[7]);let R;return t[8]!==u||t[9]!==T||t[10]!==l?(R={url:l,setUrl:u,clear:T},t[8]=u,t[9]=T,t[10]=l,t[11]=R):R=t[11],R}class Rt extends Error{constructor(t,n,r=[]){super(n),this.blocks=t,this.fields=r,this.name="BlockConflictError"}blocks;fields}function ve(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Et(e,t,n){return["decofile-write",e,t,n]}function bn(e,t,n){return{id:Et(e,t,n).join(":")}}function me(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function kt(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function Ot(e,t,n){e.setQueryData(ge.decofileDraft(ve(t)),n)}function Sn(e,t){return e.getQueryData(ge.decofileDraft(ve(t)))??null}async function Rn(e,t){return(await fetch(me(e),{cache:"no-store",headers:{"if-none-match":`"${t}"`}}).catch(()=>null))?.status===200}function En(e){const t=qe.c(4);let n;t[0]!==e?(n=ge.decofileDraft(e?ve(e):""),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==n?(r={queryKey:n,enabled:!1,queryFn:Pt,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=r):r=t[3];const{data:i}=St(r);return i??null}async function Pt(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function kn(e,t){const n=await fetch(me(t),{cache:"no-store"});if(!n.ok){const i=new Error(`Failed to fetch decofile: ${n.status}`);throw i.status=n.status,i}const r=await n.json();return r.token&&Ot(e,t,{version:r.version,token:r.token,apiHost:r.apiHost??window.location.host}),r.decofile}async function On(e,t){const n=await fetch(me(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const i=await n.json().catch(()=>({}));throw i.code==="block-conflict"?new Rt(i.blocks??[],i.error??"Block changed"):new Error(i.error??`Save failed (${n.status})`)}if(!n.ok)return kt(n,"Save");const r=await n.json();return{...r,apiHost:r.apiHost??window.location.host}}function wt(e){return e.replace(/\/+$/,"")||"/"}function Pn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function $t(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function wn(e){const t=e.trim();return t?$t(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const he=/:([A-Za-z0-9_-]+)|\*/g;function $n(e){const t=[];for(const n of e.matchAll(he)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function ze(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Mn(e){e=ze(e);const t=[];let n=0;for(const r of e.matchAll(he))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function jn(e,t){return ze(e).replace(he,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}function Fe(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Ln(e){return e.includes("@")}function We(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Vn(e,t){if(e===t)return!0;const n=We(e);return n?t===n||We(t)===n:!1}function J(e,t){const n=e.manifest?.blocks??{};for(const[r,i]of Object.entries(n))if(t in i)return r;return null}function Bn(e,t){return J(e,t)!==null}function _e(e,t){const n=J(e,t);return n!==null&&n.includes("sections")}function Mt(e,t){const n=J(e,t);return n!==null&&n.includes("apps")}function jt(e,t){const n=J(e,t);return n!==null&&n.includes("matchers")}function ee(e){return!(!e||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Ae(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Cn="oklch(0.7278 0.151 289)",Lt="website/matchers/always.ts",Ge="website/matchers/never.ts",te="website/flags/multivariate.ts",Y="website/flags/multivariate/section.ts";function Te(){return{__resolveType:Lt}}function F(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())||e}const Vt=12,Bt=8,le=32,Ct=40,Dt="__SECTION_REF__";function fe(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Ye(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const It="VideoWidget";function x(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function Qe(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function be(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Se(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Xe(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Re(e,t){const n=t.manifest?.blocks??{};for(const l of Object.values(n))if(l[e])return l[e];const r=be(e)??Se(e);if(r){for(const l of Xe(r.vendor,r.app))for(const u of Object.values(n))if(u[l])return u[l]}const i=Qe(e);for(const l of Object.values(n))if(l[i])return l[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Ze(e,t){if(Mt(e,t))return!0;const n=be(t)??Se(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(Xe(n.vendor,n.app).some(c=>c in r))return!0;const i=Qe(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function Ut(e){return e==="site/apps/site.ts"?!1:be(e)!==null||Se(e)!==null}function Je(e,t){return et(t,{resolveType:e})}function Dn(e,t){return et(t,{ref:e})}function et(e,t){const n=e.schema??{},r="resolveType"in t?Re(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const f=s.split("/").pop()??"",v=i[f];return v||(f===Dt?o.sections??{}:{})};let l;typeof r.$ref=="string"?l=c(r.$ref):Object.keys(r).length>0?l=r:l=n;const u=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const v=u(s).properties?.type;if(v){if(typeof v.const=="string")return v.const;if(typeof v.default=="string")return v.default;if(Array.isArray(v.enum)&&typeof v.enum[0]=="string")return v.enum[0]}},R=(s,f)=>{const v=u(s);return typeof v.title=="string"&&!v.title.startsWith("#")?v.title:f},P=(s,f=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const v=s.$ref.split("/").pop()??"";return!v||f.has(v)?s:P(c(s.$ref),new Set([...f,v]))},H=s=>{const f=s.properties?.__resolveType?.enum;return Array.isArray(f)&&typeof f[0]=="string"?f[0]:void 0},Oe=s=>H(s)!==void 0,Pe=(s,f=new Set)=>{if(typeof s.$ref!="string")return[];const v=s.$ref.split("/").pop()??"";if(!v||f.has(v))return[];const a=c(s.$ref),k=a.anyOf??a.oneOf;if(!Array.isArray(k))return[];const E=new Set([...f,v]);return k.flatMap(O=>Oe(O)?[O]:Pe(O,E))},M=s=>{const f=s.hide;return f===!0||f==="true"},we=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),G=(s,f=new Set,v=0)=>{if(v>Vt)return{};if(typeof s.$ref=="string"){const k=s.$ref.split("/").pop()??"";return f.has(k)?{}:G(c(s.$ref),new Set([...f,k]),v+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...x(a.__required),...x(s.required)]);for(const k of["allOf","anyOf","oneOf"]){const E=s[k];if(Array.isArray(E))for(const O of E){const L=x(a.__required),I=G(O,f,v+1);a={...a,...I};const w=k==="allOf"?[...L,...x(I.__required)]:L;w.length>0?a.__required=w:delete a.__required}}return a},j=(s,f=0,v=new Set)=>{let a=s,k;if(typeof s.$ref=="string"){a=c(s.$ref);const S=s.$ref.split("/").pop()??"";k=S,S===It&&!a.format&&(a={...a,format:"video-uri"})}a=P(a);const E=k!==void 0&&v.has(k),O=k!==void 0?new Set([...v,k]):v,L=(S,y,_,m=!0)=>!E&&(!m||_<=Ct)&&y<Bt?j(S,y,O):void 0;let I;{const S=a.anyOf??a.oneOf;if(Array.isArray(S)){const y=S.filter(m=>!(m.type==="null"||m.type===null)),_=m=>{if(typeof m.const=="string"||typeof m.const=="number")return m.const;if(Array.isArray(m.enum)&&m.enum.length===1&&(typeof m.enum[0]=="string"||typeof m.enum[0]=="number"))return m.enum[0]};y.length>0&&y.every(m=>_(m)!==void 0)&&(I=y.map(m=>_(m)))}}let w,N,Le=!1;if(a.type)w=Array.isArray(a.type)?String(a.type.find(S=>S!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const y=(a.anyOf??a.oneOf).filter(_=>!(_.type==="null"||_.type===null));if(y.length===0)w="null";else if(y.length===1){const _=y[0];N=_,w=_.type?Array.isArray(_.type)?String(_.type[0]):String(_.type):typeof _.$ref=="string"?"object":"string"}else{if(I){const p=d=>typeof s[d]=="string"?s[d]:typeof a[d]=="string"?a[d]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:I,format:p("format"),options:p("options")}}const _=y.filter(Oe),m=y.map(p=>P(p)).find(fe),se=y.filter(p=>!fe(P(p))).every(p=>typeof p.$ref=="string"||_.includes(p)),ht=_.some(p=>{const d=p.properties?.__resolveType?.enum;return Array.isArray(d)&&d[0]===te}),Be=()=>{const p=new Map;for(const b of[..._,...y.filter(h=>!_.includes(h)).flatMap(h=>Pe(h))]){const h=H(b);h&&!p.has(h)&&p.set(h,b)}const d=[...p].map(([b,h])=>({resolveType:b,title:typeof h.title=="string"?h.title:F(b),description:typeof h.description=="string"?h.description:void 0,schema:L(h,f+1,p.size)})),g=[];for(const b of y){if(_.includes(b)||typeof b.$ref!="string")continue;const h=c(b.$ref);let C;const ae=h.properties?.__resolveType;if(Array.isArray(ae?.enum)&&typeof ae.enum[0]=="string"&&(C=ae.enum[0]),!C&&Array.isArray(h.allOf))for(const At of h.allOf){const ce=At.properties?.__resolveType?.enum;if(Array.isArray(ce)&&typeof ce[0]=="string"){C=ce[0];break}}C&&g.push({resolveType:C,title:typeof h.title=="string"&&!h.title.startsWith("#")?h.title:F(C),description:typeof h.description=="string"?h.description:void 0,schema:L(h,f+1,y.length)})}const A=new Set(d.map(b=>b.resolveType)),$=[...d,...g.filter(b=>!A.has(b.resolveType))],V=y.filter(b=>!_.includes(b)),B=V.length===1&&!E?j(V[0],f+1,O):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:$,plainSchema:B,hidden:M(a)||M(s)?!0:void 0}};if(m){if(!Ye(m,c)&&y.length>1&&se){const d=j(m,f+1,O),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:d.title,A=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:d.description;return{...d,type:"array",title:g,description:A,loaderRef:_.length>0?{...Be(),title:g,description:A}:void 0}}if(ht){const d=j(m,f+1,O);return{...d,type:"array",title:typeof a.title=="string"?a.title:d.title,description:typeof a.description=="string"?a.description:d.description}}}if(_.length>0)return Be();const Ce=p=>{const d=u(p);if(typeof d.title=="string"&&Fe(d.title))return!0;const g=d.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(d.allOf))for(const A of d.allOf){const $=A.properties?.__resolveType?.enum;if(Array.isArray($)&&typeof $[0]=="string")return!0}return!1},De=y.map(p=>T(p));if(y.length>1&&De.every(p=>typeof p=="string")&&!y.some(Ce)){const p=y.map((d,g)=>{const A=u(d),$=De[g];return{resolveType:$,title:R(d,$),description:typeof A.description=="string"?A.description:void 0,discriminatorValue:$,schema:L(A,f+1,y.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:p,hidden:M(a)||M(s)?!0:void 0}}const Ie=p=>{if(Ce(p))return!1;const d=u(p);return d.type==="object"||!!d.properties},_t=p=>{const d=P(p);return fe(d)?!Ye(d,c):!1},Ue=f<le&&y.every(p=>Ie(p)||_t(p))&&y.some(Ie);if(y.every(p=>typeof p.$ref=="string")&&!Ue){const p=[];for(const d of y){const g=c(d.$ref);let A,$;if(typeof g.title=="string"){const B=Fe(g.title);B&&(A=B.blockId,$=B.blockId)}if(!A&&Array.isArray(g.allOf))for(const B of g.allOf){const C=((B.properties??{}).__resolveType??{}).enum;if(Array.isArray(C)&&typeof C[0]=="string"){A=C[0];break}}if(!A){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(A=b[0])}A||(A=d.$ref.split("/").pop()??"");const V=A.includes("/")?void 0:T(d);!V&&!A.includes("/")||p.push({resolveType:V??A,title:$??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:F(A)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:V,schema:L(g,f+1,y.length)})}return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:p,hidden:M(a)||M(s)?!0:void 0}}if(Ue){const p=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},d=y.map((g,A)=>{const $=u(g).properties??{},V={};for(const[B,b]of Object.entries($)){const h=p(b);h!==void 0&&(V[B]=h)}return{title:R(g,`Option ${A+1}`),schema:j(g,f+1),discriminators:Object.keys(V).length?V:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:d,hidden:M(a)||M(s)?!0:void 0}}w="object"}}else a.allOf?(w="object",Le=we(a.title)):typeof s.$ref=="string"&&(w="object");let ie,Ve;if(f<le&&!E){const S=G(a),y=x(S.__required);y.length>0&&(Ve=y);const _=Object.entries(S).filter(([m])=>!m.startsWith("__")&&m!=="@type");if(_.length>0){ie={};for(const[m,se]of _)ie[m]=j(se,f+1,O)}}let oe;if((w==="array"||a.type==="array")&&f<le&&!E){const S=a.items;if(S){oe=j(S,f+1,O);const y=u(S);typeof y.title=="string"&&y.title.includes("{{")&&(oe.titleBy=y.title)}}const U=S=>{const y=N?.[S];return typeof y=="string"?y:void 0},mt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(N&&"default"in N)return N.default};return{type:w??"string",title:typeof s.title=="string"?s.title:!Le&&typeof a.title=="string"?a.title:U("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:U("description"),default:mt(),enum:Array.isArray(a.enum)?a.enum:I??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:U("format"),properties:ie,required:Ve,items:oe,recursiveRef:E&&typeof s.$ref=="string"&&(w==="object"||w==="array"||a.type==="array")?s.$ref:void 0,hidden:M(a)||M(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:U("titleBy"),image:typeof a.image=="string"?a.image:U("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:U("options")}};if("ref"in t)return j({$ref:t.ref});const $e=l.properties??{},vt=Object.keys($e).every(s=>s.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&vt){const s=$e.__resolveType,f=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const v of l.allOf){const a=P(v);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=j(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const O=we(E.title);return{...E,title:O?void 0:E.title,inlineUnionBranches:f?E.inlineUnionBranches.map(L=>({...L,discriminators:{...L.discriminators??{},__resolveType:f}})):E.inlineUnionBranches}}}}const Me=G(l),re={};for(const[s,f]of Object.entries(Me))s.startsWith("__")||s==="@type"||(re[s]=j(f,0));if(Object.keys(re).length===0)return null;const je=x(Me.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:re,required:je.length>0?je:void 0}}function In(e,t){const n=t.schema??{},r=Re(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const u=c.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function Un(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ee(e,t){const n=t.schema??{},r=Re(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,l=o.logo,u=o,T=P=>P===!0||P==="true",R=T(u.hide)||T(u.ignore)||T(u.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof l=="string"?l:void 0,hidden:R||void 0}}const xt=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],He="website/sections/Rendering/Lazy.tsx";function D(e){return xt.some(t=>e.endsWith(t))}const tt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],nt=new Set(tt),Ft=tt[0],Wt=new Set(["site/sections/Theme/Theme.tsx"]);function ne(e){return!!(Wt.has(e)||D(e)||e.toLowerCase().includes("preview"))}function Yt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(nt.has(r))return r;return Ft}function ue(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ue(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ue(n));return t}return[]}function Ht(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(ne(o))continue;const c=Ee(o,e);n.push({resolveType:o,title:c.title??F(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function xn(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))ne(o)||n.has(o)||n.set(o,{resolveType:o,title:F(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function rt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";if(n!==Y)return n;const r=t.variants;if(!Array.isArray(r))return n;for(const i of r){const o=i?.value;if(!o)continue;let c=o.__resolveType;if(typeof c=="string"&&D(c)&&(c=o.section?.__resolveType??c),typeof c=="string"&&_e(e,c))return c}return n}function Nt(e,t){return rt(e,t)!==t.__resolveType}function it(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||Ae(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||nt.has(c)||typeof o.path=="string"||ne(c)||!(_e(e,c)||c===Y&&Nt(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Kt(e,t){const n=ee(t.resolveType),r=n?{}:Ee(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||F(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Fn(e,t){const n=Yt(e),r=Je(n,e),i=ue(r?.properties?.sections),o=new Map,c=l=>{if(!ne(l.resolveType)){if(ee(l.resolveType)){Ae(l.resolveType)||o.set(l.resolveType,l);return}_e(e,l.resolveType)&&(o.has(l.resolveType)||o.set(l.resolveType,l))}};for(const l of Ht(e))c(l);for(const l of i)c(Kt(e,l));for(const l of it(e,t))c(l);return[...o.values()].sort((l,u)=>l.title.localeCompare(u.title))}function Wn(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const ke="website/loaders/redirect.ts",Yn=new Set([ke,"website/loaders/redirects.ts"]),Hn={temporary:307,permanent:301},Ne=e=>typeof e=="string"?e:"",qt=e=>e==="permanent"?"permanent":"temporary";function ot(e){const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:Ne(t.from),to:Ne(t.to),type:qt(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function zt(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;if(i.__resolveType!==ke)continue;const{from:o,to:c,type:l,discardQueryParameters:u}=ot(i);t.push({key:n,from:o,to:c,type:l,discardQueryParameters:u})}return t}function Nn(e){return ot(e)}function Kn(e){const t={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(t.discardQueryParameters=!0),{redirect:t,__resolveType:ke}}function Gt(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Qt=1e3;function qn(e,t){const n=Gt(t);for(let r=0;r<Qt;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function Xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function zn(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(l=>l.key===n);if(o)return o;const c=e.find(l=>l.key.endsWith(`-${n}`));if(c)return c}if(i){const o=Ke(e,i);if(o)return o}if(r){const o=Ke(e,r);if(o)return o}return null}function Ke(e,t,n){const r=wt;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}const st=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),q="site",at="site/apps/site.ts";function pe(e,t){return e===q?!0:t.__resolveType===at}function Gn(e,t){return e?Jt(e).length>0||zt(e).length>0?!0:t?nn(e,t).length>0||en(e,t)?!0:tn(e,t).length>0:!1:!1}function Zt(e,t){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!st.has(n.__resolveType)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Xt(e),path:n.path}}function Jt(e){const t=[];for(const[n,r]of Object.entries(e)){const i=Zt(n,r);i&&t.push(i)}return t}function ct(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function ye(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ee(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function en(e,t){const n=e[q];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(pe(q,r)||Ze(t,i)))return{key:q,name:ye(q,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!pe(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:at;return{key:r,name:ye(r,o,t),resolveType:c}}return null}function tn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(st.has(c)||typeof o.path!="string"&&(pe(r,o)||!Ze(t,c)&&!Ut(c)||n.push({key:r,name:ye(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function nn(e,t){return it(t,e).map(n=>{const r=e[n.resolveType],i=rt(t,r);return{key:n.resolveType,name:n.description??ct(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const rn=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function on(e){return e.includes("matchers")||e.includes("Match")}function lt(e,t){const n=e.__resolveType;return typeof n!="string"||!n||rn.has(n)?!1:t?jt(t,n):on(n)}function Qn(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!ee(r)||Ae(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;lt(o,e)&&n.push({blockKey:r,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function z(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!ee(r)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:lt(i,n)}function Xn(e,t,n){return z(e,t,n)?e?.__resolveType??null:null}function ft(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(z(e,t,n)){const c=t[r]??{},l=c.__resolveType??r,{__resolveType:u,name:T,...R}=c;return{resolveType:l,data:R,blockKey:r}}const{__resolveType:i,...o}=e;return{resolveType:r,data:o}}function sn(e,t,n){const r=ft(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function Zn(e,t,n){if(e)return z(e,t,n)?sn(e,t,n):e}function an(e,t,n,r){if(!e)return"Default";if(z(e,t,r)){const i=e.__resolveType??"",o=t[i];return ct(i,o)}return n(e)}function Jn(e,t,n){return{__resolveType:e,...t,name:n}}function er(e){return{__resolveType:e}}function tr(e,t,n){const r=ft(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function nr(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=Je(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function ut(e){const t=e.__resolveType??"";return D(t)?e.section??e:e}function Z(e){const i=(D(e.__resolveType??"")?e.section:e)?.variants?.[0];return i?.rule?.__resolveType!==Ge?null:i?.value??null}function rr(e){const t=ut(e);return{__resolveType:Y,variants:[{value:t,rule:{__resolveType:Ge}}]}}function ir(e){const t=e.__resolveType??"";if(!t)return null;if(D(t))return e.section??null;const n=Z(e);return n?D(n.__resolveType??"")?n:{__resolveType:He,section:ut(n)}:{__resolveType:He,section:e}}function Q(e){const t=e.__resolveType??"";if(!t)return null;if(D(t)){const n=e.section,r=n?.__resolveType??"";return!r||!n?null:{resolveType:r,data:n}}return{resolveType:t,data:e}}function or(e){const t=Z(e);if(t)return Q(t);if(D(e.__resolveType??"")){const r=e.section;if(!r)return null;const i=Z(r);return Q(i||r)}return Q(e)}function sr(e){return Z(e)}const cn=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function pt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:cn.includes(t)||t.includes("always")}function ln(e){const t=e.variants??[];if(t.length===0)return-1;const n=t.findIndex(r=>pt(r.rule));return n!==-1?n:t.length-1}function ar(e,t,n){const r=n.variants??[];if(r.length===0)return null;const i=ln(n),o=r[i]?.value;if(!o)return null;const c=structuredClone(o);return t.isLazy?{...e,section:c}:c}function yt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function cr(e,t){return Array.isArray(e.variants)?e.variants.map((n,r)=>({label:t(n.rule)||`Variant ${r+1}`,value:n.value??{},rule:n.rule})):[]}function lr(e,t){const n=e.__resolveType??"";if(!n)return null;if(D(n)){const r=e.section??e,i=r.__resolveType??n;if(!i.includes("/")&&i in t){const o=t[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...r},resolveType:i}}if(!n.includes("/")&&n in t){const r=t[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...e},resolveType:n}}function fn(e,t){const n=e.__resolveType??"";return D(n)?{...e,section:t}:t}function un(e,t,n){return t.isLazy?{...e,section:n}:n}function fr(e,t,n){const r=[...e.variants??[]],i=r[t];if(!i)return e;const o=i.value??{};return r[t]={...i,value:fn(o,n)},{...e,variants:r}}function ur(e,t,n){const r=[...e.variants??[]];return r[t]?(r[t]={...r[t],rule:n},{...e,variants:r}):e}function pr(e,t){const n=[...e.variants??[]],r=n[t];return r?(n.splice(t+1,0,structuredClone(r)),{...e,variants:n}):e}function yr(e,t,n){const r=[...e.variants??[]];if(t===n||t<0||n<0||t>=r.length||n>=r.length)return e;const[i]=r.splice(t,1);return i?(r.splice(n,0,i),{...e,variants:r}):e}function dr(e,t){const n=[...e.variants??[]];return n.length<=1?null:(n.splice(t,1),{...e,variants:n})}function de(e){return{rule:Te(),value:structuredClone(e)}}function dt(e,t){return{...t,__resolveType:Y,variants:e}}function gr(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function pn(e,t){if(t.isHidden)return null;if(t.isMultivariate){const r=yt(e,t)?.variants??[],i=r[r.length-1]?.value;return i?structuredClone(i):null}if(t.isLazy){const n=e.section;return n?structuredClone(n):null}return structuredClone(e)}function yn(e,t,n){if(t.isMultivariate||t.isHidden)return null;const r=pn(e,t);if(!r)return null;const i=dt([de(r),de(r)]);return t.isLazy?{...e,section:i}:i}function vr(e,t,n){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const i=yt(e,t);if(!i)return null;const o=i.variants??[],c=o[o.length-1]?.value;if(!c)return null;const l=dt([...o,de(c)],i);return{section:un(e,t,l),newVariantIndex:o.length}}const r=yn(e,t);return r?{section:r,newVariantIndex:1}:null}function dn(e){return e.anyOfRefs?.some(t=>t.resolveType!==te?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function mr(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===Y&&Array.isArray(t.variants)}function gt(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===te}function hr(e){if(!gt(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const n=t[0]?.value;return Array.isArray(n)?n:null}function _r(e,t){if(!gt(e))return t;const n=structuredClone(e),r=[...n.variants??[]];return r.length===0?r.push({rule:Te(),value:t}):r[0]={...r[0],value:t},{...n,variants:r}}function Ar(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function Tr(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const c=o[n];return Array.isArray(c?.value)?c.value:[]}}return[]}function br(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,o=i.map(u=>an(u.rule,t,n)),c=o.reduce((u,T)=>(u[T]=(u[T]??0)+1,u),{}),l={};return i.map((u,T)=>{const R=o[T]??`Variant ${T+1}`,P=c[R]??1;let H=R;return P>1&&(l[R]=(l[R]??0)+1,H=`${R} ${l[R]}`),{label:H||`Variant ${T+1}`,sections:Array.isArray(u.value)?u.value:[],rule:u.rule}})}}return[]}function K(e){return{rule:Te(),value:e}}function W(e,t){return{...t,__resolveType:te,variants:e}}function Sr(e,t){const n=structuredClone(t);if(Array.isArray(e))return W([K(e),K(n)]);if(e&&typeof e=="object"){const r=e;return Array.isArray(r.variants)?W([...r.variants,K(n)],r):null}return W([K([]),K(n)])}function Rr(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function Er(e,t){const n=e[t];if(!n)return null;const r=[...e];return r.splice(t+1,0,structuredClone(n)),r}function kr(e,t){if(t.length===0)return W([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!pt(r))return W(t,e);if(Array.isArray(n?.value))return n.value}return W(t,e)}function gn(e,t,n){const r=[];for(const[o,c]of Object.entries(e))o!==t&&r.push(c);const i=new Set;for(;r.length>0;){const o=r.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const c of o)r.push(c);continue}n(o);for(const c of Object.values(o))r.push(c)}}}function Or(e,t,n){if(!t)return 0;let r=0;return gn(e,t,i=>{i.__resolveType===t&&z(i,e,n)&&r++}),r}function X(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===Y}function vn(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(n=>X(n.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(n=>X(n.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(n=>X(n.resolveType)):!1}function Pr(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>X(t.resolveType))}function wr(e,t){if(t==="global"||t==="sections"||dn(e))return!0;const n=e.type==="array"?e.items:void 0;return n?vn(n):!1}const $r={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};export{Fe as $,Ot as A,kt as B,$r as C,Ft as D,zn as E,zt as F,Cn as G,xn as H,en as I,Ar as J,Sr as K,qn as L,Kn as M,Ge as N,Sn as O,Rn as P,kn as Q,Hn as R,at as S,ee as T,te as U,Y as V,F as W,Rt as X,Yn as Y,Ae as Z,Vn as _,Xt as a,We as a0,Ln as a1,Lt as a2,dn as a3,Dn as a4,Bn as a5,wr as a6,Qn as a7,sn as a8,er as a9,vr as aA,Rr as aB,yr as aC,un as aD,ar as aE,dr as aF,pr as aG,ur as aH,ir as aI,sr as aJ,rr as aK,kr as aL,Or as aM,fr as aN,ln as aO,Er as aP,Wn as aQ,Nn as aR,Zn as aa,ue as ab,br as ac,Pr as ad,Fn as ae,Te as af,pt as ag,an as ah,Xn as ai,tr as aj,z as ak,Jn as al,nr as am,mr as an,gt as ao,hr as ap,_r as aq,In as ar,Un as as,En as at,or as au,gr as av,yt as aw,cr as ax,lr as ay,ft as az,X as b,D as c,Pn as d,$n as e,jn as f,ct as g,Gn as h,pe as i,Jt as j,nn as k,Ke as l,Tr as m,wt as n,Yt as o,Zt as p,Et as q,Je as r,Mn as s,Ee as t,Tn as u,wn as v,Ut as w,ye as x,bn as y,On as z};
1
+ import{c as qe,a0 as Tt,a1 as bt,K as ge,m as St}from"./index-BnoCrGwV.js";import{s as xe}from"./thread-intent-CXunryww.js";function Tn(e){const t=qe.c(12);let n;t[0]!==e?(n=bt.localPreviewUrl(e??""),t[0]=e,t[1]=n):n=t[1];const r=n,[i,o]=Tt(r,null);let c;t[2]!==i||t[3]!==e?(c=e?xe(i):null,t[2]=i,t[3]=e,t[4]=c):c=t[4];const l=c;let u,T;t[5]!==o?(u=P=>o(xe(P)),T=()=>o(null),t[5]=o,t[6]=u,t[7]=T):(u=t[6],T=t[7]);let R;return t[8]!==u||t[9]!==T||t[10]!==l?(R={url:l,setUrl:u,clear:T},t[8]=u,t[9]=T,t[10]=l,t[11]=R):R=t[11],R}class Rt extends Error{constructor(t,n,r=[]){super(n),this.blocks=t,this.fields=r,this.name="BlockConflictError"}blocks;fields}function ve(e){return`${e.orgSlug}/${e.virtualMcpId}/${e.branch}`}function Et(e,t,n){return["decofile-write",e,t,n]}function bn(e,t,n){return{id:Et(e,t,n).join(":")}}function me(e){return`/api/${e.orgSlug}/decofile/${encodeURIComponent(e.virtualMcpId)}/${encodeURIComponent(e.branch)}`}async function kt(e,t){const n=await e.json().catch(()=>({}));throw new Error(n.error??`${t} failed (${e.status})`)}function Ot(e,t,n){e.setQueryData(ge.decofileDraft(ve(t)),n)}function Sn(e,t){return e.getQueryData(ge.decofileDraft(ve(t)))??null}async function Rn(e,t){return(await fetch(me(e),{cache:"no-store",headers:{"if-none-match":`"${t}"`}}).catch(()=>null))?.status===200}function En(e){const t=qe.c(4);let n;t[0]!==e?(n=ge.decofileDraft(e?ve(e):""),t[0]=e,t[1]=n):n=t[1];let r;t[2]!==n?(r={queryKey:n,enabled:!1,queryFn:Pt,staleTime:Number.POSITIVE_INFINITY,gcTime:Number.POSITIVE_INFINITY},t[2]=n,t[3]=r):r=t[3];const{data:i}=St(r);return i??null}async function Pt(){throw new Error("decofileDraft is populated by reads/writes, not fetched")}async function kn(e,t){const n=await fetch(me(t),{cache:"no-store"});if(!n.ok){const i=new Error(`Failed to fetch decofile: ${n.status}`);throw i.status=n.status,i}const r=await n.json();return r.token&&Ot(e,t,{version:r.version,token:r.token,apiHost:r.apiHost??window.location.host}),r.decofile}async function On(e,t){const n=await fetch(me(e),{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(t)});if(n.status===409){const i=await n.json().catch(()=>({}));throw i.code==="block-conflict"?new Rt(i.blocks??[],i.error??"Block changed"):new Error(i.error??`Save failed (${n.status})`)}if(!n.ok)return kt(n,"Save");const r=await n.json();return{...r,apiHost:r.apiHost??window.location.host}}function wt(e){return e.replace(/\/+$/,"")||"/"}function Pn(e){return e.trim().replace(/^\/+|\/+$/g,"")}function $t(e){const t=e.trim();return!(!t.startsWith("/")||t.startsWith("//")||t.includes("..")||t.includes("\\"))}function wn(e){const t=e.trim();return t?$t(t)?null:"Path must start with / and must not contain .. or //.":"Path is required."}const he=/:([A-Za-z0-9_-]+)|\*/g;function $n(e){const t=[];for(const n of e.matchAll(he)){const r=n[1]??"*";t.includes(r)||t.push(r)}return t}function ze(e){return e.replace(/\{([^{}]*)\}\?/g,"$1")}function Mn(e){e=ze(e);const t=[];let n=0;for(const r of e.matchAll(he))r.index>n&&t.push({type:"text",text:e.slice(n,r.index)}),t.push({type:"param",name:r[1]??"*"}),n=r.index+r[0].length;return n<e.length&&t.push({type:"text",text:e.slice(n)}),t}function jn(e,t){return ze(e).replace(he,(n,r)=>{const i=t[r??"*"]?.trim();return i?r!==void 0?encodeURIComponent(i):i.split("/").filter(Boolean).map(encodeURIComponent).join("/")||n:n})}function Fe(e){if(!e.startsWith("#")||!e.includes("@"))return null;const t=e.indexOf("@");return{moduleResolveType:e.slice(1,t),blockId:e.slice(t+1)}}function Ln(e){return e.includes("@")}function We(e){const t=e.lastIndexOf("@");return t<0||t===e.length-1?null:e.slice(t+1)}function Vn(e,t){if(e===t)return!0;const n=We(e);return n?t===n||We(t)===n:!1}function J(e,t){const n=e.manifest?.blocks??{};for(const[r,i]of Object.entries(n))if(t in i)return r;return null}function Bn(e,t){return J(e,t)!==null}function _e(e,t){const n=J(e,t);return n!==null&&n.includes("sections")}function Mt(e,t){const n=J(e,t);return n!==null&&n.includes("apps")}function jt(e,t){const n=J(e,t);return n!==null&&n.includes("matchers")}function ee(e){return!(!e||/\.\w+$/.test(e)||e==="__proto__"||e==="constructor")}function Ae(e){try{return decodeURIComponent(e).startsWith("Preview ")}catch{return e.startsWith("Preview ")}}const Cn="oklch(0.7278 0.151 289)",Lt="website/matchers/always.ts",Ge="website/matchers/never.ts",te="website/flags/multivariate.ts",Y="website/flags/multivariate/section.ts";function Te(){return{__resolveType:Lt}}function F(e){const t=e.split("/");return(t[t.length-1]??e).replace(/\.(tsx?|jsx?|html?)$/,"").replace(/[-_]/g," ").replace(/\b\w/g,r=>r.toUpperCase())||e}const Vt=12,Bt=8,le=32,Ct=40,Dt="__SECTION_REF__";function fe(e){const t=e.type;return t==="array"||Array.isArray(t)&&t.includes("array")}function Ye(e,t){let n=e.items;if(!n)return!1;if(typeof n.$ref=="string"&&(n=t(n.$ref)),Array.isArray(n.anyOf)||Array.isArray(n.oneOf))return!0;const i=n.properties?.__resolveType?.enum;return Array.isArray(i)&&typeof i[0]=="string"}const It="VideoWidget";function x(e){return Array.isArray(e)?e.filter(t=>typeof t=="string"):[]}function Qe(e){return typeof btoa=="function"?btoa(e):Buffer.from(e).toString("base64")}function be(e){const t=e.match(/^site\/apps\/([^/]+)\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Se(e){const t=e.match(/^([^/]+)\/apps\/([^/.]+)\.tsx?$/);return t?{vendor:t[1],app:t[2]}:null}function Xe(e,t){return[`site/apps/${e}/${t}.ts`,`site/apps/${e}/${t}.tsx`,`${e}/apps/${t}.ts`,`${e}/apps/${t}.tsx`]}function Re(e,t){const n=t.manifest?.blocks??{};for(const l of Object.values(n))if(l[e])return l[e];const r=be(e)??Se(e);if(r){for(const l of Xe(r.vendor,r.app))for(const u of Object.values(n))if(u[l])return u[l]}const i=Qe(e);for(const l of Object.values(n))if(l[i])return l[i];const o=t.schema??{};return(o.$defs??o.definitions??{})[i]?{$ref:`#/definitions/${i}`}:{}}function Ze(e,t){if(Mt(e,t))return!0;const n=be(t)??Se(t);if(!n)return!1;const r=e.manifest?.blocks?.apps??{};if(Xe(n.vendor,n.app).some(c=>c in r))return!0;const i=Qe(t),o=e.schema?.$defs??e.schema?.definitions??{};return i in o}function Ut(e){return e==="site/apps/site.ts"?!1:be(e)!==null||Se(e)!==null}function Je(e,t){return et(t,{resolveType:e})}function Dn(e,t){return et(t,{ref:e})}function et(e,t){const n=e.schema??{},r="resolveType"in t?Re(t.resolveType,e):{},i=n.$defs??n.definitions??{},o=n.root??{},c=s=>{if(s.startsWith("#/root/")){const a=s.slice(7);return o[a]??{}}const f=s.split("/").pop()??"",v=i[f];return v||(f===Dt?o.sections??{}:{})};let l;typeof r.$ref=="string"?l=c(r.$ref):Object.keys(r).length>0?l=r:l=n;const u=s=>typeof s.$ref=="string"?c(s.$ref):s,T=s=>{const v=u(s).properties?.type;if(v){if(typeof v.const=="string")return v.const;if(typeof v.default=="string")return v.default;if(Array.isArray(v.enum)&&typeof v.enum[0]=="string")return v.enum[0]}},R=(s,f)=>{const v=u(s);return typeof v.title=="string"&&!v.title.startsWith("#")?v.title:f},P=(s,f=new Set)=>{if(typeof s.$ref!="string"||s.properties||s.anyOf||s.allOf||s.oneOf||s.type)return s;const v=s.$ref.split("/").pop()??"";return!v||f.has(v)?s:P(c(s.$ref),new Set([...f,v]))},H=s=>{const f=s.properties?.__resolveType?.enum;return Array.isArray(f)&&typeof f[0]=="string"?f[0]:void 0},Oe=s=>H(s)!==void 0,Pe=(s,f=new Set)=>{if(typeof s.$ref!="string")return[];const v=s.$ref.split("/").pop()??"";if(!v||f.has(v))return[];const a=c(s.$ref),k=a.anyOf??a.oneOf;if(!Array.isArray(k))return[];const E=new Set([...f,v]);return k.flatMap(O=>Oe(O)?[O]:Pe(O,E))},M=s=>{const f=s.hide;return f===!0||f==="true"},we=s=>typeof s=="string"&&(s.includes("://")||!/\s/.test(s)&&(s.includes("|")||s.includes("&")||s.includes("@"))),G=(s,f=new Set,v=0)=>{if(v>Vt)return{};if(typeof s.$ref=="string"){const k=s.$ref.split("/").pop()??"";return f.has(k)?{}:G(c(s.$ref),new Set([...f,k]),v+1)}let a={};s.properties&&typeof s.properties=="object"&&(a={...a,...s.properties}),Array.isArray(s.required)&&(a.__required=[...x(a.__required),...x(s.required)]);for(const k of["allOf","anyOf","oneOf"]){const E=s[k];if(Array.isArray(E))for(const O of E){const L=x(a.__required),I=G(O,f,v+1);a={...a,...I};const w=k==="allOf"?[...L,...x(I.__required)]:L;w.length>0?a.__required=w:delete a.__required}}return a},j=(s,f=0,v=new Set)=>{let a=s,k;if(typeof s.$ref=="string"){a=c(s.$ref);const S=s.$ref.split("/").pop()??"";k=S,S===It&&!a.format&&(a={...a,format:"video-uri"})}a=P(a);const E=k!==void 0&&v.has(k),O=k!==void 0?new Set([...v,k]):v,L=(S,y,_,m=!0)=>!E&&(!m||_<=Ct)&&y<Bt?j(S,y,O):void 0;let I;{const S=a.anyOf??a.oneOf;if(Array.isArray(S)){const y=S.filter(m=>!(m.type==="null"||m.type===null)),_=m=>{if(typeof m.const=="string"||typeof m.const=="number")return m.const;if(Array.isArray(m.enum)&&m.enum.length===1&&(typeof m.enum[0]=="string"||typeof m.enum[0]=="number"))return m.enum[0]};y.length>0&&y.every(m=>_(m)!==void 0)&&(I=y.map(m=>_(m)))}}let w,N,Le=!1;if(a.type)w=Array.isArray(a.type)?String(a.type.find(S=>S!=="null")??a.type[0]):String(a.type);else if(a.anyOf||a.oneOf){const y=(a.anyOf??a.oneOf).filter(_=>!(_.type==="null"||_.type===null));if(y.length===0)w="null";else if(y.length===1){const _=y[0];N=_,w=_.type?Array.isArray(_.type)?String(_.type[0]):String(_.type):typeof _.$ref=="string"?"object":"string"}else{if(I){const p=d=>typeof s[d]=="string"?s[d]:typeof a[d]=="string"?a[d]:void 0;return{type:"string",title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,enum:I,format:p("format"),options:p("options")}}const _=y.filter(Oe),m=y.map(p=>P(p)).find(fe),se=y.filter(p=>!fe(P(p))).every(p=>typeof p.$ref=="string"||_.includes(p)),ht=_.some(p=>{const d=p.properties?.__resolveType?.enum;return Array.isArray(d)&&d[0]===te}),Be=()=>{const p=new Map;for(const b of[..._,...y.filter(h=>!_.includes(h)).flatMap(h=>Pe(h))]){const h=H(b);h&&!p.has(h)&&p.set(h,b)}const d=[...p].map(([b,h])=>({resolveType:b,title:typeof h.title=="string"?h.title:F(b),description:typeof h.description=="string"?h.description:void 0,schema:L(h,f+1,p.size)})),g=[];for(const b of y){if(_.includes(b)||typeof b.$ref!="string")continue;const h=c(b.$ref);let C;const ae=h.properties?.__resolveType;if(Array.isArray(ae?.enum)&&typeof ae.enum[0]=="string"&&(C=ae.enum[0]),!C&&Array.isArray(h.allOf))for(const At of h.allOf){const ce=At.properties?.__resolveType?.enum;if(Array.isArray(ce)&&typeof ce[0]=="string"){C=ce[0];break}}C&&g.push({resolveType:C,title:typeof h.title=="string"&&!h.title.startsWith("#")?h.title:F(C),description:typeof h.description=="string"?h.description:void 0,schema:L(h,f+1,y.length)})}const A=new Set(d.map(b=>b.resolveType)),$=[...d,...g.filter(b=>!A.has(b.resolveType))],V=y.filter(b=>!_.includes(b)),B=V.length===1&&!E?j(V[0],f+1,O):void 0;return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:$,plainSchema:B,hidden:M(a)||M(s)?!0:void 0}};if(m){if(!Ye(m,c)&&y.length>1&&se){const d=j(m,f+1,O),g=typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:d.title,A=typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:d.description;return{...d,type:"array",title:g,description:A,loaderRef:_.length>0?{...Be(),title:g,description:A}:void 0}}if(ht){const d=j(m,f+1,O);return{...d,type:"array",title:typeof a.title=="string"?a.title:d.title,description:typeof a.description=="string"?a.description:d.description}}}if(_.length>0)return Be();const Ce=p=>{const d=u(p);if(typeof d.title=="string"&&Fe(d.title))return!0;const g=d.properties?.__resolveType?.enum;if(Array.isArray(g)&&typeof g[0]=="string")return!0;if(Array.isArray(d.allOf))for(const A of d.allOf){const $=A.properties?.__resolveType?.enum;if(Array.isArray($)&&typeof $[0]=="string")return!0}return!1},De=y.map(p=>T(p));if(y.length>1&&De.every(p=>typeof p=="string")&&!y.some(Ce)){const p=y.map((d,g)=>{const A=u(d),$=De[g];return{resolveType:$,title:R(d,$),description:typeof A.description=="string"?A.description:void 0,discriminatorValue:$,schema:L(A,f+1,y.length,!1)}});return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,discriminatorKey:"type",anyOfRefs:p,hidden:M(a)||M(s)?!0:void 0}}const Ie=p=>{if(Ce(p))return!1;const d=u(p);return d.type==="object"||!!d.properties},_t=p=>{const d=P(p);return fe(d)?!Ye(d,c):!1},Ue=f<le&&y.every(p=>Ie(p)||_t(p))&&y.some(Ie);if(y.every(p=>typeof p.$ref=="string")&&!Ue){const p=[];for(const d of y){const g=c(d.$ref);let A,$;if(typeof g.title=="string"){const B=Fe(g.title);B&&(A=B.blockId,$=B.blockId)}if(!A&&Array.isArray(g.allOf))for(const B of g.allOf){const C=((B.properties??{}).__resolveType??{}).enum;if(Array.isArray(C)&&typeof C[0]=="string"){A=C[0];break}}if(!A){const b=g.properties?.__resolveType?.enum;Array.isArray(b)&&typeof b[0]=="string"&&(A=b[0])}A||(A=d.$ref.split("/").pop()??"");const V=A.includes("/")?void 0:T(d);!V&&!A.includes("/")||p.push({resolveType:V??A,title:$??(typeof g.title=="string"&&!g.title.startsWith("#")?g.title:F(A)),description:typeof g.description=="string"?g.description:void 0,discriminatorValue:V,schema:L(g,f+1,y.length)})}return{type:"block-ref",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:void 0,anyOfRefs:p,hidden:M(a)||M(s)?!0:void 0}}if(Ue){const p=g=>{if(typeof g.const=="string"||typeof g.const=="number"||typeof g.const=="boolean")return g.const;if(Array.isArray(g.enum)&&g.enum.length===1&&(typeof g.enum[0]=="string"||typeof g.enum[0]=="number"||typeof g.enum[0]=="boolean"))return g.enum[0]},d=y.map((g,A)=>{const $=u(g).properties??{},V={};for(const[B,b]of Object.entries($)){const h=p(b);h!==void 0&&(V[B]=h)}return{title:R(g,`Option ${A+1}`),schema:j(g,f+1),discriminators:Object.keys(V).length?V:void 0}});return{type:"inline-union",title:typeof s.title=="string"?s.title:typeof a.title=="string"?a.title:void 0,description:typeof a.description=="string"?a.description:void 0,inlineUnionBranches:d,hidden:M(a)||M(s)?!0:void 0}}w="object"}}else a.allOf?(w="object",Le=we(a.title)):typeof s.$ref=="string"&&(w="object");let ie,Ve;if(f<le&&!E){const S=G(a),y=x(S.__required);y.length>0&&(Ve=y);const _=Object.entries(S).filter(([m])=>!m.startsWith("__")&&m!=="@type");if(_.length>0){ie={};for(const[m,se]of _)ie[m]=j(se,f+1,O)}}let oe;if((w==="array"||a.type==="array")&&f<le&&!E){const S=a.items;if(S){oe=j(S,f+1,O);const y=u(S);typeof y.title=="string"&&y.title.includes("{{")&&(oe.titleBy=y.title)}}const U=S=>{const y=N?.[S];return typeof y=="string"?y:void 0},mt=()=>{if("default"in s)return s.default;if("default"in a)return a.default;if(N&&"default"in N)return N.default};return{type:w??"string",title:typeof s.title=="string"?s.title:!Le&&typeof a.title=="string"?a.title:U("title"),description:typeof s.description=="string"?s.description:typeof a.description=="string"?a.description:U("description"),default:mt(),enum:Array.isArray(a.enum)?a.enum:I??void 0,format:typeof s.format=="string"?s.format:typeof a.format=="string"?a.format:U("format"),properties:ie,required:Ve,items:oe,recursiveRef:E&&typeof s.$ref=="string"&&(w==="object"||w==="array"||a.type==="array")?s.$ref:void 0,hidden:M(a)||M(s)?!0:void 0,titleBy:typeof a.titleBy=="string"?a.titleBy:U("titleBy"),image:typeof a.image=="string"?a.image:U("image"),options:typeof s.options=="string"?s.options:typeof a.options=="string"?a.options:U("options")}};if("ref"in t)return j({$ref:t.ref});const $e=l.properties??{},vt=Object.keys($e).every(s=>s.startsWith("__"));if(Array.isArray(l.allOf)&&l.allOf.length===1&&vt){const s=$e.__resolveType,f=Array.isArray(s?.enum)&&typeof s.enum[0]=="string"?s.enum[0]:typeof s?.const=="string"?s.const:typeof s?.default=="string"?s.default:void 0;for(const v of l.allOf){const a=P(v);if(!(Array.isArray(a.anyOf)||Array.isArray(a.oneOf))||a.properties)continue;const E=j(a,0);if(E.type==="inline-union"&&E.inlineUnionBranches){const O=we(E.title);return{...E,title:O?void 0:E.title,inlineUnionBranches:f?E.inlineUnionBranches.map(L=>({...L,discriminators:{...L.discriminators??{},__resolveType:f}})):E.inlineUnionBranches}}}}const Me=G(l),re={};for(const[s,f]of Object.entries(Me))s.startsWith("__")||s==="@type"||(re[s]=j(f,0));if(Object.keys(re).length===0)return null;const je=x(Me.__required);return{type:"object",title:typeof l.title=="string"?l.title:void 0,properties:re,required:je.length>0?je:void 0}}function In(e,t){const n=t.schema??{},r=Re(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:r,c=o.properties??{};if(Object.keys(c).some(T=>!T.startsWith("__")))return!1;if(o.additionalProperties===!0)return!0;const u=c.__resolveType;return!!u&&Array.isArray(u.enum)&&u.enum[0]===e}function Un(e){const t=r=>{switch(typeof r){case"number":return{type:"number"};case"boolean":return{type:"boolean"};case"object":{if(r===null)return{type:"string"};if(Array.isArray(r))return{type:"array",items:t(r[0])};const i={};for(const[o,c]of Object.entries(r))o.startsWith("__")||(i[o]=t(c));return{type:"object",properties:i}}default:return{type:"string"}}},n={};for(const[r,i]of Object.entries(e))r.startsWith("__")||(n[r]=t(i));return Object.keys(n).length===0?null:{type:"object",properties:n}}function Ee(e,t){const n=t.schema??{},r=Re(e,t),i=n.$defs??n.definitions??{},o=typeof r.$ref=="string"?i[r.$ref.split("/").pop()??""]??{}:Object.keys(r).length>0?r:{...n,...r},c=o.icon,l=o.logo,u=o,T=P=>P===!0||P==="true",R=T(u.hide)||T(u.ignore)||T(u.unlisted);return{title:typeof o.title=="string"?o.title:void 0,description:typeof o.description=="string"?o.description:void 0,icon:typeof c=="string"?c:void 0,logo:typeof l=="string"?l:void 0,hidden:R||void 0}}const xt=["website/sections/Rendering/Lazy.tsx","website/sections/Rendering/SingleDeferred.tsx"],He="website/sections/Rendering/Lazy.tsx";function D(e){return xt.some(t=>e.endsWith(t))}const tt=["website/pages/Page.tsx","$live/pages/LivePage.tsx"],nt=new Set(tt),Ft=tt[0],Wt=new Set(["site/sections/Theme/Theme.tsx"]);function ne(e){return!!(Wt.has(e)||D(e)||e.toLowerCase().includes("preview"))}function Yt(e){const t=e.manifest?.blocks??{};for(const n of Object.values(t))for(const r of Object.keys(n))if(nt.has(r))return r;return Ft}function ue(e){if(!e)return[];if(e.anyOfRefs?.length)return e.anyOfRefs;if(e.items)return ue(e.items);if(e.properties){const t=[];for(const n of Object.values(e.properties))t.push(...ue(n));return t}return[]}function Ht(e){const t=e.manifest?.blocks??{},n=[];for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i)){if(ne(o))continue;const c=Ee(o,e);n.push({resolveType:o,title:c.title??F(o),description:c.description,previewBlock:o,isSavedBlock:!1})}return n}function xn(e){const t=e.manifest?.blocks??{},n=new Map;for(const[r,i]of Object.entries(t))if(r.includes("sections"))for(const o of Object.keys(i))ne(o)||n.has(o)||n.set(o,{resolveType:o,title:F(o)});return[...n.values()].sort((r,i)=>r.title.localeCompare(i.title))}function rt(e,t){const n=t.__resolveType;if(typeof n!="string")return"";if(n!==Y)return n;const r=t.variants;if(!Array.isArray(r))return n;for(const i of r){const o=i?.value;if(!o)continue;let c=o.__resolveType;if(typeof c=="string"&&D(c)&&(c=o.section?.__resolveType??c),typeof c=="string"&&_e(e,c))return c}return n}function Nt(e,t){return rt(e,t)!==t.__resolveType}function it(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||Ae(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c!="string"||nt.has(c)||typeof o.path=="string"||ne(c)||!(_e(e,c)||c===Y&&Nt(e,o))||n.push({resolveType:r,title:r,description:typeof o.name=="string"?o.name:void 0,previewBlock:r,isSavedBlock:!0})}return n}function Kt(e,t){const n=ee(t.resolveType),r=n?{}:Ee(t.resolveType,e);return{resolveType:t.resolveType,title:t.title||r.title||F(t.resolveType),description:t.description??r.description,previewBlock:t.resolveType,isSavedBlock:n}}function Fn(e,t){const n=Yt(e),r=Je(n,e),i=ue(r?.properties?.sections),o=new Map,c=l=>{if(!ne(l.resolveType)){if(ee(l.resolveType)){Ae(l.resolveType)||o.set(l.resolveType,l);return}_e(e,l.resolveType)&&(o.has(l.resolveType)||o.set(l.resolveType,l))}};for(const l of Ht(e))c(l);for(const l of i)c(Kt(e,l));for(const l of it(e,t))c(l);return[...o.values()].sort((l,u)=>l.title.localeCompare(u.title))}function Wn(e){const t=e.site;if(!t||typeof t!="object"||Array.isArray(t))return;const n=t.theme;if(!(!n||typeof n!="object"||Array.isArray(n)))return n}const ke="website/loaders/redirect.ts",Yn=new Set([ke,"website/loaders/redirects.ts"]),Hn={temporary:307,permanent:301},Ne=e=>typeof e=="string"?e:"",qt=e=>e==="permanent"?"permanent":"temporary";function ot(e){const t=e&&typeof e.redirect=="object"&&e.redirect!==null&&!Array.isArray(e.redirect)?e.redirect:{};return{from:Ne(t.from),to:Ne(t.to),type:qt(t.type),discardQueryParameters:t.discardQueryParameters===!0}}function zt(e){const t=[];for(const[n,r]of Object.entries(e)){if(!r||typeof r!="object"||Array.isArray(r))continue;const i=r;if(i.__resolveType!==ke)continue;const{from:o,to:c,type:l,discardQueryParameters:u}=ot(i);t.push({key:n,from:o,to:c,type:l,discardQueryParameters:u})}return t}function Nn(e){return ot(e)}function Kn(e){const t={from:e.from,to:e.to,type:e.type};return e.discardQueryParameters&&(t.discardQueryParameters=!0),{redirect:t,__resolveType:ke}}function Gt(e){return(e.split(/[?#]/)[0]??"").replace(/^\/+/,"").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32)||"redirect"}const Qt=1e3;function qn(e,t){const n=Gt(t);for(let r=0;r<Qt;r++){const i=`redirects-${n}-${crypto.randomUUID()}`;if(!Object.hasOwn(e,i))return i}throw new Error("Could not generate a unique redirect block key")}function Xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6)),t=t.replace(/-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,""),t=t.replace(/-[0-9a-f]{8,}$/i,"");try{return decodeURIComponent(t)}catch{return t}}function zn(e,t){const{pageId:n,path:r,pathTemplate:i}=t;if(n){const o=e.find(l=>l.key===n);if(o)return o;const c=e.find(l=>l.key.endsWith(`-${n}`));if(c)return c}if(i){const o=Ke(e,i);if(o)return o}if(r){const o=Ke(e,r);if(o)return o}return null}function Ke(e,t,n){const r=wt;if(n){const o=e.find(c=>c.key===n);if(o)return o}const i=e.filter(o=>r(o.path)===r(t));return i.length===0?null:i.length===1?i[0]??null:[...i].sort((o,c)=>o.key.localeCompare(c.key))[0]??null}const st=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]),q="site",at="site/apps/site.ts";function pe(e,t){return e===q?!0:t.__resolveType===at}function Gn(e,t){return e?Jt(e).length>0||zt(e).length>0?!0:t?nn(e,t).length>0||en(e,t)?!0:tn(e,t).length>0:!1:!1}function Zt(e,t){if(!t||typeof t!="object"||Array.isArray(t))return null;const n=t;return typeof n.__resolveType!="string"||!st.has(n.__resolveType)||typeof n.path!="string"?null:{key:e,name:typeof n.name=="string"?n.name:Xt(e),path:n.path}}function Jt(e){const t=[];for(const[n,r]of Object.entries(e)){const i=Zt(n,r);i&&t.push(i)}return t}function ct(e,t){if(typeof t.name=="string"){const n=t.name.trim();if(n)return n}return e.replace(/[-_]/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function ye(e,t,n){const r=typeof t.__resolveType=="string"?t.__resolveType:"",i=r?Ee(r,n):{};if(i.title)return i.title;if(typeof t.name=="string"){const o=t.name.trim();if(o)return o}return e.replace(/[-_]/g," ").replace(/\b\w/g,o=>o.toUpperCase())}function en(e,t){const n=e[q];if(n&&typeof n=="object"&&!Array.isArray(n)){const r=n,i=r.__resolveType;if(typeof i=="string"&&(pe(q,r)||Ze(t,i)))return{key:q,name:ye(q,r,t),resolveType:i}}for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;if(!pe(r,o))continue;const c=typeof o.__resolveType=="string"?o.__resolveType:at;return{key:r,name:ye(r,o,t),resolveType:c}}return null}function tn(e,t){const n=[];for(const[r,i]of Object.entries(e)){if(r.includes("/")||!i||typeof i!="object"||Array.isArray(i))continue;const o=i,c=o.__resolveType;typeof c=="string"&&(st.has(c)||typeof o.path!="string"&&(pe(r,o)||!Ze(t,c)&&!Ut(c)||n.push({key:r,name:ye(r,o,t),resolveType:c})))}return n.sort((r,i)=>r.name.localeCompare(i.name))}function nn(e,t){return it(t,e).map(n=>{const r=e[n.resolveType],i=rt(t,r);return{key:n.resolveType,name:n.description??ct(n.resolveType,r),resolveType:i}}).sort((n,r)=>n.name.localeCompare(r.name))}const rn=new Set(["website/pages/Page.tsx","$live/pages/LivePage.tsx"]);function on(e){return e.includes("matchers")||e.includes("Match")}function lt(e,t){const n=e.__resolveType;return typeof n!="string"||!n||rn.has(n)?!1:t?jt(t,n):on(n)}function Qn(e,t){const n=[];for(const[r,i]of Object.entries(t)){if(r.includes("/")||!ee(r)||Ae(r)||!i||typeof i!="object"||Array.isArray(i))continue;const o=i;lt(o,e)&&n.push({blockKey:r,matcherResolveType:o.__resolveType??"",name:typeof o.name=="string"?o.name:void 0})}return n.sort((r,i)=>(r.name??r.blockKey).localeCompare(i.name??i.blockKey))}function z(e,t,n){if(!e)return!1;const r=e.__resolveType;if(typeof r!="string"||!ee(r)||!Object.hasOwn(t,r))return!1;const i=t[r];return!i||typeof i!="object"||Array.isArray(i)?!1:lt(i,n)}function Xn(e,t,n){return z(e,t,n)?e?.__resolveType??null:null}function ft(e,t,n){if(!e)return null;const r=e.__resolveType??"";if(!r)return null;if(z(e,t,n)){const c=t[r]??{},l=c.__resolveType??r,{__resolveType:u,name:T,...R}=c;return{resolveType:l,data:R,blockKey:r}}const{__resolveType:i,...o}=e;return{resolveType:r,data:o}}function sn(e,t,n){const r=ft(e,t,n);return r?{__resolveType:r.resolveType,...r.data}:{__resolveType:""}}function Zn(e,t,n){if(e)return z(e,t,n)?sn(e,t,n):e}function an(e,t,n,r){if(!e)return"Default";if(z(e,t,r)){const i=e.__resolveType??"",o=t[i];return ct(i,o)}return n(e)}function Jn(e,t,n){return{__resolveType:e,...t,name:n}}function er(e){return{__resolveType:e}}function tr(e,t,n){const r=ft(e,t,n);return r?{resolveType:r.resolveType,formValue:r.data}:{resolveType:"",formValue:{}}}function nr(e,t){const n={__resolveType:e};if(!e||!t)return n;const r=Je(e,t),i=r?.type==="inline-union"?r.inlineUnionBranches?.[0]?.discriminators:void 0;return i?{...n,...i}:n}function ut(e){const t=e.__resolveType??"";return D(t)?e.section??e:e}function Z(e){const i=(D(e.__resolveType??"")?e.section:e)?.variants?.[0];return i?.rule?.__resolveType!==Ge?null:i?.value??null}function rr(e){const t=ut(e);return{__resolveType:Y,variants:[{value:t,rule:{__resolveType:Ge}}]}}function ir(e){const t=e.__resolveType??"";if(!t)return null;if(D(t))return e.section??null;const n=Z(e);return n?D(n.__resolveType??"")?n:{__resolveType:He,section:ut(n)}:{__resolveType:He,section:e}}function Q(e){const t=e.__resolveType??"";if(!t)return null;if(D(t)){const n=e.section,r=n?.__resolveType??"";return!r||!n?null:{resolveType:r,data:n}}return{resolveType:t,data:e}}function or(e){const t=Z(e);if(t)return Q(t);if(D(e.__resolveType??"")){const r=e.section;if(!r)return null;const i=Z(r);return Q(i||r)}return Q(e)}function sr(e){return Z(e)}const cn=["website/matchers/always.ts","$live/matchers/MatchAlways.ts"];function pt(e){if(!e)return!1;const t=e.__resolveType??"";return t===""?Object.keys(e).length===0:cn.includes(t)||t.includes("always")}function ln(e){const t=e.variants??[];if(t.length===0)return-1;const n=t.findIndex(r=>pt(r.rule));return n!==-1?n:t.length-1}function ar(e,t,n){const r=n.variants??[];if(r.length===0)return null;const i=ln(n),o=r[i]?.value;if(!o)return null;const c=structuredClone(o);return t.isLazy?{...e,section:c}:c}function yt(e,t){return t.isMultivariate?t.isLazy?e.section??null:e:null}function cr(e,t){return Array.isArray(e.variants)?e.variants.map((n,r)=>({label:t(n.rule)||`Variant ${r+1}`,value:n.value??{},rule:n.rule})):[]}function lr(e,t){const n=e.__resolveType??"";if(!n)return null;if(D(n)){const r=e.section??e,i=r.__resolveType??n;if(!i.includes("/")&&i in t){const o=t[i]??{};return{data:{...o},resolveType:o.__resolveType??i}}return{data:{...r},resolveType:i}}if(!n.includes("/")&&n in t){const r=t[n]??{};return{data:{...r},resolveType:r.__resolveType??n}}return{data:{...e},resolveType:n}}function fn(e,t){const n=e.__resolveType??"";return D(n)?{...e,section:t}:t}function un(e,t,n){return t.isLazy?{...e,section:n}:n}function fr(e,t,n){const r=[...e.variants??[]],i=r[t];if(!i)return e;const o=i.value??{};return r[t]={...i,value:fn(o,n)},{...e,variants:r}}function ur(e,t,n){const r=[...e.variants??[]];return r[t]?(r[t]={...r[t],rule:n},{...e,variants:r}):e}function pr(e,t){const n=[...e.variants??[]],r=n[t];return r?(n.splice(t+1,0,structuredClone(r)),{...e,variants:n}):e}function yr(e,t,n){const r=[...e.variants??[]];if(t===n||t<0||n<0||t>=r.length||n>=r.length)return e;const[i]=r.splice(t,1);return i?(r.splice(n,0,i),{...e,variants:r}):e}function dr(e,t){const n=[...e.variants??[]];return n.length<=1?null:(n.splice(t,1),{...e,variants:n})}function de(e){return{rule:Te(),value:structuredClone(e)}}function dt(e,t){return{...t,__resolveType:Y,variants:e}}function gr(e){return e.isHidden!==!0&&e.isSavedBlock!==!0}function pn(e,t){if(t.isHidden)return null;if(t.isMultivariate){const r=yt(e,t)?.variants??[],i=r[r.length-1]?.value;return i?structuredClone(i):null}if(t.isLazy){const n=e.section;return n?structuredClone(n):null}return structuredClone(e)}function yn(e,t,n){if(t.isMultivariate||t.isHidden)return null;const r=pn(e,t);if(!r)return null;const i=dt([de(r),de(r)]);return t.isLazy?{...e,section:i}:i}function vr(e,t,n){if(t.isHidden||t.isSavedBlock)return null;if(t.isMultivariate){const i=yt(e,t);if(!i)return null;const o=i.variants??[],c=o[o.length-1]?.value;if(!c)return null;const l=dt([...o,de(c)],i);return{section:un(e,t,l),newVariantIndex:o.length}}const r=yn(e,t);return r?{section:r,newVariantIndex:1}:null}function dn(e){return e.anyOfRefs?.some(t=>t.resolveType!==te?!1:t.schema?.properties?.variants?.items?.properties?.value?.type==="array")??!1}function mr(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return t.__resolveType===Y&&Array.isArray(t.variants)}function gt(e){return!e||typeof e!="object"||Array.isArray(e)?!1:e.__resolveType===te}function hr(e){if(!gt(e))return null;const t=e.variants;if(!Array.isArray(t))return null;const n=t[0]?.value;return Array.isArray(n)?n:null}function _r(e,t){if(!gt(e))return t;const n=structuredClone(e),r=[...n.variants??[]];return r.length===0?r.push({rule:Te(),value:t}):r[0]={...r[0],value:t},{...n,variants:r}}function Ar(e,t){const r=e[t]?.sections;if(!r||Array.isArray(r))return 1;const i=r;return Array.isArray(i.variants)?i.variants.length:1}function Tr(e,t,n){const i=e[t]?.sections;if(Array.isArray(i))return n===0?i:[];if(i&&typeof i=="object"){const o=i.variants;if(Array.isArray(o)){const c=o[n];return Array.isArray(c?.value)?c.value:[]}}return[]}function br(e,t,n){if(Array.isArray(e))return[{label:"Default",sections:e}];if(e&&typeof e=="object"){const r=e;if(Array.isArray(r.variants)){const i=r.variants,o=i.map(u=>an(u.rule,t,n)),c=o.reduce((u,T)=>(u[T]=(u[T]??0)+1,u),{}),l={};return i.map((u,T)=>{const R=o[T]??`Variant ${T+1}`,P=c[R]??1;let H=R;return P>1&&(l[R]=(l[R]??0)+1,H=`${R} ${l[R]}`),{label:H||`Variant ${T+1}`,sections:Array.isArray(u.value)?u.value:[],rule:u.rule}})}}return[]}function K(e){return{rule:Te(),value:e}}function W(e,t){return{...t,__resolveType:te,variants:e}}function Sr(e,t){const n=structuredClone(t);if(Array.isArray(e))return W([K(e),K(n)]);if(e&&typeof e=="object"){const r=e;return Array.isArray(r.variants)?W([...r.variants,K(n)],r):null}return W([K([]),K(n)])}function Rr(e){const t=e.variants;return Array.isArray(t)?t.length-1:1}function Er(e,t){const n=e[t];if(!n)return null;const r=[...e];return r.splice(t+1,0,structuredClone(n)),r}function kr(e,t){if(t.length===0)return W([],e);if(t.length===1){const n=t[0],r=n?.rule;if(!pt(r))return W(t,e);if(Array.isArray(n?.value))return n.value}return W(t,e)}function gn(e,t,n){const r=[];for(const[o,c]of Object.entries(e))o!==t&&r.push(c);const i=new Set;for(;r.length>0;){const o=r.pop();if(!(!o||typeof o!="object")&&!i.has(o)){if(i.add(o),Array.isArray(o)){for(const c of o)r.push(c);continue}n(o);for(const c of Object.values(o))r.push(c)}}}function Or(e,t,n){if(!t)return 0;let r=0;return gn(e,t,i=>{i.__resolveType===t&&z(i,e,n)&&r++}),r}function X(e){return e.includes("/sections/")||e.includes("multivariate/section")||e===Y}function vn(e){if(e.type==="block-ref"&&e.anyOfRefs?.length)return e.anyOfRefs.some(n=>X(n.resolveType));if(e.anyOfRefs?.length)return e.anyOfRefs.some(n=>X(n.resolveType));const t=e.properties?.__resolveType;return t?.type==="block-ref"&&t.anyOfRefs?.length?t.anyOfRefs.some(n=>X(n.resolveType)):!1}function Pr(e){return e.type!=="block-ref"||!e.anyOfRefs?.length?!1:e.anyOfRefs.some(t=>X(t.resolveType))}function wr(e,t){if(t==="global"||t==="sections"||dn(e))return!0;const n=e.type==="array"?e.items:void 0;return n?vn(n):!1}const $r={claiming:{long:"Reserving sandbox",short:"Reserving sandbox"},"waiting-for-capacity":{long:"Waiting for cluster capacity",short:"Waiting for capacity"},"pulling-image":{long:"Downloading sandbox image",short:"Downloading image"},"starting-container":{long:"Starting your sandbox",short:"Starting container"},"warming-daemon":{long:"Connecting to your sandbox",short:"Connecting to sandbox"}};export{Fe as $,Ot as A,kt as B,$r as C,Ft as D,zn as E,zt as F,Cn as G,xn as H,en as I,Ar as J,Sr as K,qn as L,Kn as M,Ge as N,Sn as O,Rn as P,kn as Q,Hn as R,at as S,ee as T,te as U,Y as V,F as W,Rt as X,Yn as Y,Ae as Z,Vn as _,Xt as a,We as a0,Ln as a1,Lt as a2,dn as a3,Dn as a4,Bn as a5,wr as a6,Qn as a7,sn as a8,er as a9,vr as aA,Rr as aB,yr as aC,un as aD,ar as aE,dr as aF,pr as aG,ur as aH,ir as aI,sr as aJ,rr as aK,kr as aL,Or as aM,fr as aN,ln as aO,Er as aP,Wn as aQ,Nn as aR,Zn as aa,ue as ab,br as ac,Pr as ad,Fn as ae,Te as af,pt as ag,an as ah,Xn as ai,tr as aj,z as ak,Jn as al,nr as am,mr as an,gt as ao,hr as ap,_r as aq,In as ar,Un as as,En as at,or as au,gr as av,yt as aw,cr as ax,lr as ay,ft as az,X as b,D as c,Pn as d,$n as e,jn as f,ct as g,Gn as h,pe as i,Jt as j,nn as k,Ke as l,Tr as m,wt as n,Yt as o,Zt as p,Et as q,Je as r,Mn as s,Ee as t,Tn as u,wn as v,Ut as w,ye as x,bn as y,On as z};
@@ -1 +1 @@
1
- import{c as a,a as c,r as m,j as o}from"./index-CRbDzsEl.js";import{A as u}from"./auth-split-layout-DL8EKWzu.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
1
+ import{c as a,a as c,r as m,j as o}from"./index-BnoCrGwV.js";import{A as u}from"./auth-split-layout-DAOQnS6B.js";function p(){const e=a.c(8),i=c.useSession().data?.user?.email;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],e[0]=l):l=e[0],m.useEffect(f,l);let t;e[1]!==i?(t=i?o.jsxs(o.Fragment,{children:[" as ",i]}):"",e[1]=i,e[2]=t):t=e[2];let s;e[3]!==t?(s=o.jsxs("h1",{className:"text-3xl font-semibold tracking-tight",children:["You're logged in",t,"."]}),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx("p",{className:"text-muted-foreground",children:"You can return to your terminal."}),e[5]=n):n=e[5];let r;return e[6]!==s?(r=o.jsx(u,{children:o.jsxs("div",{className:"space-y-3",children:[s,n]})}),e[6]=s,e[7]=r):r=e[7],r}function f(){window.close()}export{p as default};
@@ -1 +1 @@
1
- import{c as l,j as n}from"./index-CRbDzsEl.js";function a(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function d(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function h(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}export{a as C,h as a,d as b};
1
+ import{c as l,j as n}from"./index-BnoCrGwV.js";function a(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M13 12L18.5 5M7.63965 3L12.5 12L13.6865 3M4.48381 6.71679L11.9872 12M3 12L11.9872 12.473M12.2244 13.177L7 20M4.84194 16.8682L11.2824 12.9758M11.5 21L12.665 13.177M21 14L13.1846 12.668M21 10.5788L13 12.3223M16.779 19.646L12.8876 13.3772M19.3566 18.207L13.313 12.9893"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function d(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{clipRule:"evenodd",d:"M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor",fillRule:"evenodd","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}function h(c){const e=l.c(3),{size:s}=c,t=s===void 0?16:s;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=n.jsx("path",{d:"M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23"}),e[0]=o):o=e[0];let i;return e[1]!==t?(i=n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:t,height:t,fill:"currentColor","aria-hidden":"true",children:o}),e[1]=t,e[2]=i):i=e[2],i}export{a as C,h as a,d as b};
@@ -1 +1 @@
1
- import{r as a,bv as T,j as r,bA as x,bx as $,bB as S,dl as D,by as M,bC as L,bN as k,c as g,l as B}from"./index-CRbDzsEl.js";var f="Collapsible",[F]=k(f),[G,v]=F(f),w=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:s,disabled:l,onOpenChange:c,...b}=o,[p,d]=T({prop:n,defaultProp:s??!1,onChange:c,caller:f});return r.jsx(G,{scope:t,disabled:l,contentId:$(),open:p,onOpenToggle:a.useCallback(()=>d(C=>!C),[d]),children:r.jsx(x.div,{"data-state":h(p),"data-disabled":l?"":void 0,...b,ref:e})})});w.displayName=f;var A="CollapsibleTrigger",I=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,...n}=o,s=v(A,t);return r.jsx(x.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":h(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:S(o.onClick,s.onOpenToggle)})});I.displayName=A;var R="CollapsibleContent",O=a.forwardRef((o,e)=>{const{forceMount:t,...n}=o,s=v(R,o.__scopeCollapsible);return r.jsx(D,{present:t||s.open,children:({present:l})=>r.jsx(q,{...n,ref:e,present:l})})});O.displayName=R;var q=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,present:n,children:s,...l}=o,c=v(R,t),[b,p]=a.useState(n),d=a.useRef(null),C=M(e,d),N=a.useRef(0),y=N.current,P=a.useRef(0),E=P.current,m=c.open||b,j=a.useRef(m),u=a.useRef(void 0);return a.useEffect(()=>{const i=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(i)},[]),L(()=>{const i=d.current;if(i){u.current=u.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const _=i.getBoundingClientRect();N.current=_.height,P.current=_.width,j.current||(i.style.transitionDuration=u.current.transitionDuration,i.style.animationName=u.current.animationName),p(n)}},[c.open,n]),r.jsx(x.div,{"data-state":h(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m,...l,ref:C,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...o.style},children:m&&s})});function h(o){return o?"open":"closed"}var H=w;function J(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=r.jsx(H,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=n):n=e[3],n}function K(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=r.jsx(I,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=n):n=e[3],n}function Q(o){const e=g.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s;e[3]!==t?(s=B("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down motion-reduce:animate-none",t),e[3]=t,e[4]=s):s=e[4];let l;return e[5]!==n||e[6]!==s?(l=r.jsx(O,{"data-slot":"collapsible-content",className:s,...n}),e[5]=n,e[6]=s,e[7]=l):l=e[7],l}export{K as C,Q as a,J as b};
1
+ import{r as a,bv as T,j as r,bA as x,bx as $,bB as S,dl as D,by as M,bC as L,bN as k,c as g,l as B}from"./index-BnoCrGwV.js";var f="Collapsible",[F]=k(f),[G,v]=F(f),w=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,open:n,defaultOpen:s,disabled:l,onOpenChange:c,...b}=o,[p,d]=T({prop:n,defaultProp:s??!1,onChange:c,caller:f});return r.jsx(G,{scope:t,disabled:l,contentId:$(),open:p,onOpenToggle:a.useCallback(()=>d(C=>!C),[d]),children:r.jsx(x.div,{"data-state":h(p),"data-disabled":l?"":void 0,...b,ref:e})})});w.displayName=f;var A="CollapsibleTrigger",I=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,...n}=o,s=v(A,t);return r.jsx(x.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":h(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:S(o.onClick,s.onOpenToggle)})});I.displayName=A;var R="CollapsibleContent",O=a.forwardRef((o,e)=>{const{forceMount:t,...n}=o,s=v(R,o.__scopeCollapsible);return r.jsx(D,{present:t||s.open,children:({present:l})=>r.jsx(q,{...n,ref:e,present:l})})});O.displayName=R;var q=a.forwardRef((o,e)=>{const{__scopeCollapsible:t,present:n,children:s,...l}=o,c=v(R,t),[b,p]=a.useState(n),d=a.useRef(null),C=M(e,d),N=a.useRef(0),y=N.current,P=a.useRef(0),E=P.current,m=c.open||b,j=a.useRef(m),u=a.useRef(void 0);return a.useEffect(()=>{const i=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(i)},[]),L(()=>{const i=d.current;if(i){u.current=u.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const _=i.getBoundingClientRect();N.current=_.height,P.current=_.width,j.current||(i.style.transitionDuration=u.current.transitionDuration,i.style.animationName=u.current.animationName),p(n)}},[c.open,n]),r.jsx(x.div,{"data-state":h(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!m,...l,ref:C,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...o.style},children:m&&s})});function h(o){return o?"open":"closed"}var H=w;function J(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=r.jsx(H,{"data-slot":"collapsible",...t}),e[2]=t,e[3]=n):n=e[3],n}function K(o){const e=g.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let n;return e[2]!==t?(n=r.jsx(I,{"data-slot":"collapsible-trigger",...t}),e[2]=t,e[3]=n):n=e[3],n}function Q(o){const e=g.c(8);let t,n;e[0]!==o?({className:t,...n}=o,e[0]=o,e[1]=t,e[2]=n):(t=e[1],n=e[2]);let s;e[3]!==t?(s=B("overflow-hidden data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down motion-reduce:animate-none",t),e[3]=t,e[4]=s):s=e[4];let l;return e[5]!==n||e[6]!==s?(l=r.jsx(O,{"data-slot":"collapsible-content",className:s,...n}),e[5]=n,e[6]=s,e[7]=l):l=e[7],l}export{K as C,Q as a,J as b};
@@ -1 +1 @@
1
- import{c as E,j as t,B as K,h as Z,aD as Xe,aE as re,b as W,H as Ee,r as A,a2 as fe,dd as Ze,dc as Oe,aC as et,n as Re,I as pe,l as G,bs as tt,at as st,u as ot,L as se,t as lt,f as he,c2 as Me}from"./index-CRbDzsEl.js";import{E as Fe}from"./empty-state-DfOpTmwf.js";import{u as ge}from"./use-mcp-client-BWo29jbN.js";import{F as ae,a as nt,b as ce,d as de}from"./form-Bn1uWhLp.js";import{T as xe}from"./textarea-DKdq_MAz.js";import{D as je,O as it,M as rt}from"./index-BYDys87w.js";import{aB as at,aa as ct,by as dt,M as mt,S as ut,T as pt,aV as xt,K as ye}from"./agent-icon-CSrsRkkV.js";import{M as ft}from"./mcp-app-renderer-1q9SfIz-.js";import{g as ht,M as we}from"./types-DJQTaYxP.js";import{a as gt,b as jt,A as bt}from"./alert-BB7UNECi.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-nSDsr0Zi.js";import{c as Nt,b as Pe,T as ke,a as De}from"./tooltip-3DBbiHrv.js";import{i as vt}from"./AlertCircle-BBiRNTdE.js";import{a as St}from"./Copy01-CT9uxfj6.js";import{i as yt}from"./Play-DFfgxv2q.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-CqBzsTJX.js";import{a as ze,u as Be}from"./use-connection--fjYRP_g.js";import{u as Tt}from"./use-mcp-tools-D9a3atY2.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-BELz_pOH.js";import{e as Pt,y as kt}from"./chat-context-NYUfgJBl.js";import{a as Dt}from"./shell-layout-BO31z5MQ.js";import{M as At}from"./monaco-editor-BuUSistE.js";import{E as Et}from"./empty-state-BjrW4gr3.js";import{n as Ot}from"./LinkBroken01-BFW8MxYc.js";import"./auth-Cf8kTvK7.js";import"./label-BUw2LYOJ.js";import"./Key01-Dy9XOW24.js";import"./extract-connection-data-BWH-Gguq.js";import"./metadata-D72DunRR.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";import"./Plus-clvoB9-y.js";import"./index-DBXjCQdJ.js";import"./index-aGwRFVIr.js";import"./index-BdQq_4o_.js";import"./index-4oHb6320.js";import"./popover-UZd_hI6l.js";import"./repository-binding-GEAUbB-O.js";import"./SearchMd-Bg-9XsfQ.js";import"./use-mobile-BcwC7VU3.js";import"./use-create-virtual-mcp-CSStLbyC.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./task-board-Cq7KN9Yp.js";import"./schema-DCzFPjhQ.js";import"./slugify-CEUa2lfQ.js";import"./schema-DxY623qB.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./ZoomOut-DJOChAz1.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Image01-DUunwh52.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./index-DPPcuuZa.js";import"./badge-GBNejOns.js";import"./mcp-oauth-DcDGTHX8.js";import"./use-panel-navigate-sjPSBICL.js";import"./thread-route-gGOzpjkp.js";import"./use-project-scope-B_oLVbNv.js";import"./autosend-Dbvfg9pv.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-ai-providers-scSugiQF.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./use-organization-settings-C2COOtae.js";import"./avatar-CVhMMaTf.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./repository-import-picker-CGZicTtt.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./use-org-sso-DQNJJVcp.js";import"./editor-D6w2Bb1A.js";function Rt(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Xe({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Mt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Ft(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let R;return e[19]!==I||e[20]!==T?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=R):R=e[21],R}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Rt,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let k;e[34]!==b||e[35]!==C?(k=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=k):k=e[36];let D;e[37]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(Ft,{form:p})}),e[37]=p,e[38]=D):D=e[38];let O;return e[39]!==k||e[40]!==D?(O=t.jsxs(je,{children:[k,D]}),e[39]=k,e[40]=D,e[41]=O):O=e[41],O}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Y(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=G("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=G("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,k]=A.useState(null),{org:D}=fe(),O=ze(e),I=Pt(),T=kt(),{openSidePanel:R}=Dt(),U=`${e}:${s}`,F=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=Tt({client:F}),S=_.data?.tools?.find(m=>m.name===s),M=ht(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);M&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],X=be.length>0,ee={};if(X&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),k(null);const m=performance.now();try{if(!F)throw new Error("MCP client is not available");const f=X?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();X&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await F.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;k({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();k({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),k(null)},qe=S?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),M&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:M&&z==="ui"&&F?t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(Z,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:M,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:F,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(Z,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:S?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=E.c(52),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Oe(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,k=b&&Vt[b];let D;s[14]!==i?(D=Kt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(Y,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let F;s[26]!==R||s[27]!==U||s[28]!==I?(F=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=F):F=s[29];const _=F;if(k){let J;return s[30]!==k||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:d,onUpdate:P}),s[30]=k,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:M,description:V,buttonProps:B}),s[45]=M,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Vo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Vo as default};
1
+ import{c as E,j as t,B as K,h as Z,aD as Xe,aE as re,b as W,H as Ee,r as A,a2 as fe,dd as Ze,dc as Oe,aC as et,n as Re,I as pe,l as G,bs as tt,at as st,u as ot,L as se,t as lt,f as he,c2 as Me}from"./index-BnoCrGwV.js";import{E as Fe}from"./empty-state-MnAK8EeW.js";import{u as ge}from"./use-mcp-client-F8qIxKEF.js";import{F as ae,a as nt,b as ce,d as de}from"./form-qApBoH9w.js";import{T as xe}from"./textarea-DoDVPYV2.js";import{D as je,O as it,M as rt}from"./index-DU_EN75b.js";import{aB as at,aa as ct,by as dt,M as mt,S as ut,T as pt,aV as xt,K as ye}from"./agent-icon-BVzFWL_k.js";import{M as ft}from"./mcp-app-renderer-DMqJU_ff.js";import{g as ht,M as we}from"./types-BPkPu0Zu.js";import{a as gt,b as jt,A as bt}from"./alert-CUPV9wwi.js";import{S as Ce,b as Ie,a as Te,d as $e,c as me}from"./select-4dFEgKOb.js";import{c as Nt,b as Pe,T as ke,a as De}from"./tooltip-D58qe9VW.js";import{i as vt}from"./AlertCircle-DVHl2wob.js";import{a as St}from"./Copy01-CvnGuZZ3.js";import{i as yt}from"./Play-CSVNLFwP.js";import{g as wt}from"./connection-slug-CITJ0kGN.js";import{u as Ct,T as It}from"./use-mcp-auth-status-VoQ-JrKz.js";import{a as ze,u as Be}from"./use-connection-CWYEcZtk.js";import{u as Tt}from"./use-mcp-tools-DJdMQuye.js";import{c as $t}from"./content-blocks-o63cs2vh.js";import{I as Ae}from"./integration-icon-DcBDH52f.js";import{e as Pt,y as kt}from"./chat-context-BMIrv5uH.js";import{a as Dt}from"./shell-layout-CEs2Lzv8.js";import{M as At}from"./monaco-editor-CPeZZpu3.js";import{E as Et}from"./empty-state-DzqjIExe.js";import{n as Ot}from"./LinkBroken01-SQZX7UHe.js";import"./auth-BM0B-cGs.js";import"./label-D0foYPWf.js";import"./Key01-Bhf2mFGP.js";import"./extract-connection-data-DykkXLPs.js";import"./metadata-D72DunRR.js";import"./connection-BV0Ji7-y.js";import"./url-slug-BeoES-bn.js";import"./Plus-C7i72Ui0.js";import"./index-BeBh88bO.js";import"./index-BONgNC04.js";import"./index-BdQq_4o_.js";import"./index-DJa5VNJ9.js";import"./popover-DeebArTG.js";import"./repository-binding-C8cI0_BR.js";import"./SearchMd--I1GEx-C.js";import"./use-mobile-BKee5QTm.js";import"./use-create-virtual-mcp-CRO0toUl.js";import"./use-navigate-to-agent-LQKyEvv0.js";import"./thread-intent-CXunryww.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BpjjRSV_.js";import"./task-board-l22wFLNQ.js";import"./schema-Cwz0xn-Q.js";import"./slugify-CEUa2lfQ.js";import"./schema-BPpEaREa.js";import"./Tool01-DqVqi_FU.js";import"./ArrowUp-DESKNNlf.js";import"./ArrowLeft-5wXFDAmZ.js";import"./ShoppingBag01-E-rUyhpG.js";import"./ZoomOut-CePPHC89.js";import"./Building02-CFiq1p9R.js";import"./CheckCircle-DAvSmLHO.js";import"./ChevronUp-Di-YfZWV.js";import"./ChevronSelectorVertical-KK06uLTv.js";import"./UserSquare-CEGUDYl2.js";import"./CreditCard01-CpFAcFMU.js";import"./DotsVertical-B8mqV8lL.js";import"./Image01-WncLby5J.js";import"./Globe04-CCXvQu2N.js";import"./SwitchHorizontal01-DCGuISL6.js";import"./Link01-vjT_tIt-.js";import"./Monitor01-CZgg0RSg.js";import"./Sun-D612nlCs.js";import"./Trash01-BdVvG1w5.js";import"./Upload01-CEQBjXAP.js";import"./User01-DzMieRdG.js";import"./Users01-CW8HA66N.js";import"./XClose-ByJq3z1t.js";import"./index-B5YiUV4I.js";import"./badge-BEq8f8Nc.js";import"./mcp-oauth-Dg0thBi5.js";import"./use-panel-navigate-DAoDF43u.js";import"./thread-route-BPs4zslo.js";import"./use-project-scope-C3zEyt8p.js";import"./autosend-ACmUx5MO.js";import"./use-decopilot-events-DAjIYzO8.js";import"./use-ai-providers-Fk-ioKuC.js";import"./use-chat-navigation-zHRcYkWa.js";import"./location-BjlyegC2.js";import"./use-organization-settings-DE6EFzZl.js";import"./avatar-Du8JG5EY.js";import"./use-clock-tick-Dz0tKfh3.js";import"./command-BSyD71wq.js";import"./project-icon-B64BT2qc.js";import"./new-project-dialog-Cqt9GN_i.js";import"./repository-import-picker-BKAJgfVd.js";import"./repository-picker-F2WyjZCv.js";import"./useInfiniteQuery-CrNtEvb5.js";import"./infiniteQueryObserver-DzxIYVHF.js";import"./collection-search-Bo7KXUbF.js";import"./use-debounced-value-Bkmt--Vh.js";import"./required-auth-layout-C7-28_EU.js";import"./use-org-sso-7gybTWnn.js";import"./editor-BO3RLENr.js";function Rt(s){const e=E.c(15),{onSave:n,onUndo:o,isDirty:l,isSaving:i,saveLabel:a,undoLabel:c}=s,d=a===void 0?"Save":a,r=c===void 0?"Undo":c;if(!l)return null;let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(at,{size:14}),e[0]=x):x=e[0];let h;e[1]!==i||e[2]!==o||e[3]!==r?(h=t.jsxs(K,{variant:"outline",size:"sm",onClick:o,disabled:i,"aria-label":r,children:[x,r]}),e[1]=i,e[2]=o,e[3]=r,e[4]=h):h=e[4];let u;e[5]!==i?(u=i?t.jsx(Z,{className:"size-3.5"}):t.jsx(ct,{size:14}),e[5]=i,e[6]=u):u=e[6];let g;e[7]!==i||e[8]!==n||e[9]!==d||e[10]!==u?(g=t.jsxs(K,{variant:"default",size:"sm",onClick:n,disabled:i,"aria-label":d,children:[u,d]}),e[7]=i,e[8]=n,e[9]=d,e[10]=u,e[11]=g):g=e[11];let p;return e[12]!==h||e[13]!==g?(p=t.jsxs(t.Fragment,{children:[h,g]}),e[12]=h,e[13]=g,e[14]=p):p=e[14],p}Xe({title:re().min(1),description:re().nullable(),body:re()});function ue(s){for(const e of s.messages??[])if(e.role==="user"&&e.content?.type==="text")return e.content.text??"";return""}function Mt(){const s=window.location.pathname.split("/").filter(Boolean),e=s.findIndex(o=>o==="mcps"),n=e>=0?s[e+1]:void 0;return n?decodeURIComponent(n):void 0}function Ft(s){const e=E.c(43),{form:n}=s,o=W();let l;e[0]!==o?(l=o("details.prompt.details"),e[0]=o,e[1]=l):l=e[1];let i;e[2]!==l?(i=t.jsx("div",{className:"text-sm font-medium text-foreground",children:l}),e[2]=l,e[3]=i):i=e[3];let a;e[4]!==o?(a=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.title")}),t.jsx(de,{children:t.jsx(pe,{...b,placeholder:o("details.prompt.titlePlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[4]=o,e[5]=a):a=e[5];let c;e[6]!==n.control||e[7]!==a?(c=t.jsx(ae,{control:n.control,name:"title",render:a}),e[6]=n.control,e[7]=a,e[8]=c):c=e[8];let d;e[9]!==o?(d=C=>{const{field:b}=C;return t.jsxs(ce,{children:[t.jsx("div",{className:"text-xs text-muted-foreground",children:o("details.prompt.description")}),t.jsx(de,{children:t.jsx(pe,{...b,value:b.value??"",placeholder:o("details.prompt.descriptionPlaceholder"),className:"h-9 rounded-lg border border-border bg-muted/20 shadow-none focus-visible:ring-0"})})]})},e[9]=o,e[10]=d):d=e[10];let r;e[11]!==n.control||e[12]!==d?(r=t.jsx(ae,{control:n.control,name:"description",render:d}),e[11]=n.control,e[12]=d,e[13]=r):r=e[13];let x;e[14]!==c||e[15]!==r?(x=t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c,r]}),e[14]=c,e[15]=r,e[16]=x):x=e[16];let h;e[17]!==i||e[18]!==x?(h=t.jsxs("div",{className:"flex flex-col gap-4",children:[i,x]}),e[17]=i,e[18]=x,e[19]=h):h=e[19];let u;e[20]!==o?(u=o("details.prompt.message"),e[20]=o,e[21]=u):u=e[21];let g;e[22]!==u?(g=t.jsx("div",{className:"text-sm font-medium text-foreground",children:u}),e[22]=u,e[23]=g):g=e[23];let p;e[24]!==o?(p=o("details.prompt.messageDescription"),e[24]=o,e[25]=p):p=e[25];let j;e[26]!==p?(j=t.jsx("div",{className:"text-xs text-muted-foreground",children:p}),e[26]=p,e[27]=j):j=e[27];let N;e[28]!==o?(N=C=>{const{field:b}=C;return t.jsx(ce,{children:t.jsx(de,{children:t.jsx(xe,{...b,value:b.value??"",placeholder:o("details.prompt.bodyPlaceholder"),className:"min-h-[240px] resize-none text-base leading-relaxed font-normal rounded-xl border border-border bg-muted/20 px-4 py-3 shadow-none focus-visible:ring-0"})})})},e[28]=o,e[29]=N):N=e[29];let v;e[30]!==n.control||e[31]!==N?(v=t.jsx(ae,{control:n.control,name:"body",render:N}),e[30]=n.control,e[31]=N,e[32]=v):v=e[32];let y;e[33]!==g||e[34]!==j||e[35]!==v?(y=t.jsxs("div",{className:"flex flex-col gap-2",children:[g,j,v]}),e[33]=g,e[34]=j,e[35]=v,e[36]=y):y=e[36];let w;e[37]!==y||e[38]!==h?(w=t.jsxs("div",{className:"h-full py-6 flex flex-col max-w-3xl mx-auto w-full min-w-0 gap-8 overflow-y-auto px-4",children:[h,y]}),e[37]=y,e[38]=h,e[39]=w):w=e[39];let P;return e[40]!==n||e[41]!==w?(P=t.jsx(nt,{...n,children:w}),e[40]=n,e[41]=w,e[42]=P):P=e[42],P}function zt(s){const e=E.c(42),{providerId:n,promptId:o}=s,l=W(),{org:i}=fe(),a=n||null;let c;e[0]!==i.id||e[1]!==i.slug||e[2]!==a?(c={connectionId:a,orgId:i.id,orgSlug:i.slug},e[0]=i.id,e[1]=i.slug,e[2]=a,e[3]=c):c=e[3];const d=ge(c),r=Ze(n,"PROMPT",o,d),x=Oe(n,"PROMPT",d),h=x.update.isPending;let u;e[4]!==r?(u=r?{title:r.title,description:r.description??null,body:ue(r)}:void 0,e[4]=r,e[5]=u):u=e[5];let g;e[6]!==u?(g={values:u},e[6]=u,e[7]=g):g=e[7];const p=et(g);let j;e[8]!==p||e[9]!==r?(j=()=>{r&&p.reset({title:r.title,description:r.description??null,body:ue(r)})},e[8]=p,e[9]=r,e[10]=j):j=e[10];const N=j;let v;e[11]!==x.update||e[12]!==p||e[13]!==o?(v=p.handleSubmit(async I=>{const T=await x.update.mutateAsync({id:o,data:{title:I.title,description:I.description,arguments:[],icons:[],messages:[{role:"user",content:{type:"text",text:I.body}}]}});p.reset({title:T.title,description:T.description??null,body:ue(T)})}),e[11]=x.update,e[12]=p,e[13]=o,e[14]=v):v=e[14];const y=v;if(!r){let I;e[15]!==l?(I=l("details.prompt.notFoundTitle"),e[15]=l,e[16]=I):I=e[16];let T;e[17]!==l?(T=l("details.prompt.notFoundDescription"),e[17]=l,e[18]=T):T=e[18];let R;return e[19]!==I||e[20]!==T?(R=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:I,description:T})}),e[19]=I,e[20]=T,e[21]=R):R=e[21],R}let w;e[22]!==y?(w=()=>{y()},e[22]=y,e[23]=w):w=e[23];let P;e[24]!==p.formState.isDirty||e[25]!==h||e[26]!==N||e[27]!==w?(P=t.jsx(Rt,{onSave:w,onUndo:N,isDirty:p.formState.isDirty,isSaving:h}),e[24]=p.formState.isDirty,e[25]=h,e[26]=N,e[27]=w,e[28]=P):P=e[28];let C;e[29]!==r.title||e[30]!==P?(C=t.jsx(Re.Title,{actions:P,children:r.title}),e[29]=r.title,e[30]=P,e[31]=C):C=e[31];let b;e[32]!==r.description?(b=r.description&&t.jsx("p",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.description}),e[32]=r.description,e[33]=b):b=e[33];let k;e[34]!==b||e[35]!==C?(k=t.jsxs(t.Fragment,{children:[C,b]}),e[34]=b,e[35]=C,e[36]=k):k=e[36];let D;e[37]!==p?(D=t.jsx("div",{className:"h-full",children:t.jsx(Ft,{form:p})}),e[37]=p,e[38]=D):D=e[38];let O;return e[39]!==k||e[40]!==D?(O=t.jsxs(je,{children:[k,D]}),e[39]=k,e[40]=D,e[41]=O):O=e[41],O}function Bt(s){const e=E.c(10),{itemId:n}=s,o=W();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=Mt(),e[0]=l):l=e[0];const i=l;if(!i){let c;e[1]!==o?(c=o("details.prompt.notFoundTitle"),e[1]=o,e[2]=c):c=e[2];let d;e[3]!==o?(d=o("details.prompt.missingConnectionDescription"),e[3]=o,e[4]=d):d=e[4];let r;return e[5]!==c||e[6]!==d?(r=t.jsx("div",{className:"flex h-full w-full bg-background",children:t.jsx(Fe,{title:c,description:d})}),e[5]=c,e[6]=d,e[7]=r):r=e[7],r}let a;return e[8]!==n?(a=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:null,children:t.jsx(zt,{providerId:i,promptId:n})})}),e[8]=n,e[9]=a):a=e[9],a}function Le(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("min-w-0 overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Ue(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden text-muted-foreground",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("ol",{"data-slot":"breadcrumb-list",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function Y(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("inline-flex items-center gap-1.5 min-w-0",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("li",{"data-slot":"breadcrumb-item",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function oe(s){const e=E.c(10);let n,o,l;e[0]!==s?({asChild:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);const i=n?tt:"a";let a;e[4]!==o?(a=G("hover:text-foreground transition-colors truncate",o),e[4]=o,e[5]=a):a=e[5];let c;return e[6]!==i||e[7]!==l||e[8]!==a?(c=t.jsx(i,{"data-slot":"breadcrumb-link",className:a,...l}),e[6]=i,e[7]=l,e[8]=a,e[9]=c):c=e[9],c}function _e(s){const e=E.c(8);let n,o;e[0]!==s?({className:n,...o}=s,e[0]=s,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let l;e[3]!==n?(l=G("text-foreground font-medium truncate",n),e[3]=n,e[4]=l):l=e[4];let i;return e[5]!==o||e[6]!==l?(i=t.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:l,...o}),e[5]=o,e[6]=l,e[7]=i):i=e[7],i}function le(s){const e=E.c(12);let n,o,l;e[0]!==s?({children:n,className:o,...l}=s,e[0]=s,e[1]=n,e[2]=o,e[3]=l):(n=e[1],o=e[2],l=e[3]);let i;e[4]!==o?(i=G("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",o),e[4]=o,e[5]=i):i=e[5];let a;e[6]!==n?(a=n??t.jsx(st,{}),e[6]=n,e[7]=a):a=e[7];let c;return e[8]!==l||e[9]!==i||e[10]!==a?(c=t.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:i,...l,children:a}),e[8]=l,e[9]=i,e[10]=a,e[11]=c):c=e[11],c}const Lt=s=>s.replace(/_/g," ").replace(/\b\w/g,e=>e.toLocaleLowerCase());function Ut(s){const e=E.c(12),{toolName:n,connectionId:o,siblings:l,onSelectInstance:i,onBack:a}=s,c=W();let d;e[0]!==o?(d={connectionId:o},e[0]=o,e[1]=d):d=e[1];const r=Ct(d);if(!r.isAuthenticated){let u;return e[2]!==r.supportsOAuth||e[3]!==a||e[4]!==c?(u=t.jsx("div",{className:"flex h-full items-center justify-center",children:r.supportsOAuth?t.jsx(it,{onAuthenticate:()=>a(),buttonText:c("details.tool.goBackToAuthenticate")}):t.jsx(rt,{hasReadme:!1})}),e[2]=r.supportsOAuth,e[3]=a,e[4]=c,e[5]=u):u=e[5],u}const x=`${o}:${n}`;let h;return e[6]!==o||e[7]!==i||e[8]!==l||e[9]!==x||e[10]!==n?(h=t.jsx(_t,{toolName:n,connectionId:o,siblings:l,onSelectInstance:i},x),e[6]=o,e[7]=i,e[8]=l,e[9]=x,e[10]=n,e[11]=h):h=e[11],h}function _t({toolName:s,connectionId:e,siblings:n,onSelectInstance:o}){const l=W(),{replayId:i}=ot({strict:!1}),a=(()=>{if(!i)return null;const m=`replay-${i}`,f=sessionStorage.getItem(m);if(!f)return null;sessionStorage.removeItem(m);try{return JSON.parse(f)}catch{return null}})(),c=(()=>{if(!a)return null;const m={};for(const[f,$]of Object.entries(a))$!==null&&typeof $=="object"?m[f]=JSON.stringify($,null,2):m[f]=$;return m})(),[d,r]=A.useState(c??{}),[x,h]=A.useState(a?JSON.stringify(a,null,2):"{}"),[u,g]=A.useState(null),[p,j]=A.useState(null),[N,v]=A.useState(null),[y,w]=A.useState(null),[P,C]=A.useState(!1),[b,k]=A.useState(null),{org:D}=fe(),O=ze(e),I=Pt(),T=kt(),{openSidePanel:R}=Dt(),U=`${e}:${s}`,F=ge({connectionId:e,orgId:D.id,orgSlug:D.slug}),_=Tt({client:F}),S=_.data?.tools?.find(m=>m.name===s),M=ht(S?._meta),V=m=>{if(!I)return;const f=$t(m.content);f.content.length>0&&(R(),I.sendMessage({tiptapDoc:f}))},[z,B]=A.useState("json"),[q,Q]=A.useState(!1);M&&!q&&(B("ui"),Q(!0));const J=S?.inputSchema?.properties,be=J?Object.keys(J):[],X=be.length>0,ee={};if(X&&S?.inputSchema?.properties)for(const m of be)ee[m]=S.inputSchema.required?.includes(m)?"":void 0;const ne=m=>Object.prototype.hasOwnProperty.call(d,m),Je=async()=>{C(!0),w(null),g(null),j(null),v(null),k(null);const m=performance.now();try{if(!F)throw new Error("MCP client is not available");const f=X?{...ee,...d}:(()=>{const L=x.trim();if(!L)return{};const H=JSON.parse(L);if(H&&typeof H=="object")return H;throw new Error("Raw JSON input must be an object.")})();X&&S?.inputSchema?.properties&&Object.entries(S.inputSchema.properties).forEach(([L,H])=>{if((H.type==="object"||H.type==="array")&&typeof f[L]=="string")try{f[L]=JSON.parse(f[L])}catch{}else if((H.type==="number"||H.type==="integer")&&typeof f[L]=="string"&&f[L]!==""){const Se=Number(f[L]);Number.isNaN(Se)||(f[L]=Se)}});const $=await F.callTool({name:s,arguments:f}),te=$.structuredContent??$,Qe=performance.now(),Ye=Math.round(Qe-m);g(te),j($),v(f);const Ge=JSON.stringify(te),ve=new TextEncoder().encode(Ge).length;k({duration:`${Ye}ms`,bytes:`${ve} bytes`,tokens:`~${Math.ceil(ve/4)} tokens`,cost:"$0.0000"})}catch(f){const $=f instanceof Error?f.message:String(f);w($||"Unknown error occurred");const te=performance.now();k({duration:`${Math.round(te-m)}ms`})}finally{C(!1)}},ie=(m,f)=>{r($=>({...$,[m]:f}))},Ve=()=>{g(null),j(null),v(null),w(null),k(null)},qe=S?.name??Lt(s),He=t.jsx(Le,{children:t.jsxs(Ue,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:D.slug},children:l("details.tool.connections")})})}),t.jsx(le,{}),O&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:D.slug,appSlug:wt(O)},search:{tab:"tools"},children:O.title})})}),t.jsx(le,{})]}),t.jsx(Y,{children:t.jsx(_e,{children:qe})})]})}),Ne=n.length>1&&t.jsxs(Ce,{value:e,onValueChange:o,children:[t.jsx(Ie,{className:"h-8 w-auto min-w-[200px]",children:t.jsx(Te,{})}),t.jsx($e,{children:n.map(m=>t.jsx(me,{value:m.id,children:t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(Ae,{icon:m.icon,name:m.title,size:"xs",className:"shrink-0"}),m.title]})},m.id))})]}),Ke=t.jsxs("div",{className:"flex flex-col p-6 gap-4 overflow-auto",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsx("h2",{className:"text-sm font-semibold text-foreground uppercase tracking-wide",children:l("details.tool.parameters")}),S?.inputSchema?.required&&S.inputSchema.required.length>0&&t.jsxs("span",{className:"text-xs text-muted-foreground",children:[t.jsx("span",{className:"text-destructive",children:"*"})," ",l("details.tool.required")]})]}),t.jsx("div",{className:"space-y-4",children:X&&S?.inputSchema?.properties?Object.entries(S.inputSchema.properties).map(([m,f])=>t.jsxs("div",{className:"space-y-2",children:[t.jsxs("div",{className:"flex items-center justify-between",children:[t.jsxs("label",{className:"text-sm font-medium leading-none flex items-center gap-1.5",children:[m,S.inputSchema?.required?.includes(m)&&t.jsx("span",{className:"text-destructive text-xs",children:"*"})]}),t.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:f.type})]}),f.description&&t.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:f.description}),f.type==="object"||f.type==="array"?t.jsx(xe,{className:"font-mono text-xs",value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enterAsJson",{key:m}),rows:3}):f.type==="boolean"?t.jsxs(Ce,{value:ne(m)?String(d[m]??""):"",onValueChange:$=>ie(m,$==="true"),children:[t.jsx(Ie,{children:t.jsx(Te,{placeholder:l("details.tool.selectTrueOrFalse")})}),t.jsxs($e,{children:[t.jsx(me,{value:"true",children:"true"}),t.jsx(me,{value:"false",children:"false"})]})]}):t.jsx(pe,{value:ne(m)?d[m]??"":ee[m]??"",onChange:$=>ie(m,$.target.value),placeholder:l("details.tool.enter",{key:m})})]},m)):S?.inputSchema&&!X?t.jsxs("div",{className:"space-y-2",children:[t.jsx("label",{className:"text-sm font-medium",children:l("details.tool.rawJsonInput")}),t.jsx(xe,{className:"font-mono text-xs min-h-[120px]",value:x,onChange:m=>h(m.target.value),placeholder:l("details.tool.rawJsonExample")})]}):t.jsx("div",{className:"flex items-center justify-center p-8 bg-muted/30 rounded-lg border border-dashed border-border",children:t.jsx("p",{className:"text-sm text-muted-foreground",children:l("details.tool.noParametersRequired")})})}),t.jsx("div",{className:"flex items-center gap-2 pt-2",children:P?t.jsxs(K,{size:"sm",variant:"destructive",className:"h-8 gap-2",onClick:Ve,children:[t.jsx(dt,{className:"h-3.5 w-3.5"}),l("details.tool.cancel")]}):t.jsxs(K,{size:"sm",variant:"default",className:"h-8 gap-2",onClick:Je,children:[t.jsx(yt,{className:"h-3.5 w-3.5 fill-current"}),l("details.tool.executeTool")]})})]}),We=t.jsxs("div",{className:"flex flex-col @3xl:h-full @3xl:overflow-hidden",children:[t.jsxs("div",{className:"flex items-center justify-between px-4 h-14 border-b border-border bg-background",children:[t.jsx("h2",{className:"text-sm font-medium text-foreground uppercase tracking-wide",children:l("details.tool.result")}),t.jsxs("div",{className:"flex items-center gap-3",children:[b&&t.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(mt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.duration})]}),b.tokens&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(ut,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.tokens})]}),b.bytes&&t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(pt,{className:"h-3 w-3 text-muted-foreground"}),t.jsx("span",{className:"font-mono text-foreground",children:b.bytes})]}),b.cost&&t.jsx("div",{className:"flex items-center gap-1.5",children:t.jsx("span",{className:"font-mono text-foreground",children:b.cost})})]}),M&&t.jsx(Nt,{children:t.jsxs("div",{className:"flex items-center gap-1",children:[t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="ui"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("ui"),children:t.jsx(xt,{size:14})})}),t.jsx(De,{children:l("details.tool.interactiveView")})]}),t.jsxs(Pe,{children:[t.jsx(ke,{asChild:!0,children:t.jsx(K,{size:"icon",variant:z==="json"?"secondary":"ghost",className:"h-8 w-8",onClick:()=>B("json"),children:t.jsx(ye,{size:14})})}),t.jsx(De,{children:l("details.tool.jsonView")})]})]})})]})]}),y&&t.jsx("div",{className:"px-6 py-4 bg-background",children:t.jsx(gt,{variant:"destructive",children:t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsxs("div",{className:"flex items-center gap-2",children:[t.jsx(vt,{className:"h-4 w-4"}),t.jsx(jt,{className:"mb-0",children:l("details.tool.executionFailed")})]}),t.jsx(bt,{className:"text-xs text-destructive",children:y})]})})}),t.jsx("div",{className:"relative flex-1 min-h-[400px] @3xl:min-h-0 @3xl:overflow-auto bg-muted/50",children:M&&z==="ui"&&F?t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex items-center justify-center h-48",children:t.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[t.jsx(Z,{className:"size-4"}),t.jsx("span",{className:"text-sm",children:l("details.tool.loadingApp")})]})}),children:t.jsx(ft,{resourceURI:M,toolInfo:S?{tool:S}:void 0,toolInput:N??void 0,toolResult:p??void 0,displayMode:"fullscreen",minHeight:we.view.minHeight,maxHeight:we.view.maxHeight,client:F,onMessage:V,onUpdateModelContext:m=>T?.setAppContext(U,m),onTeardown:()=>T?.clearAppContext(U),className:"h-full"})}):u?t.jsxs(t.Fragment,{children:[t.jsx(At,{code:JSON.stringify(u,null,2),language:"json",height:"100%",readOnly:!0}),t.jsx(K,{size:"icon",variant:"ghost",className:"absolute top-4 right-4 h-8 w-8 bg-background/80 hover:bg-background border border-border shadow-sm",onClick:()=>{navigator.clipboard.writeText(JSON.stringify(u,null,2)),lt.success(l("details.tool.copiedToClipboard"))},children:t.jsx(St,{className:"h-3.5 w-3.5"})})]}):t.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center text-muted-foreground",children:[t.jsx(ye,{className:"h-12 w-12 mb-3 opacity-40"}),t.jsx("p",{className:"text-sm",children:l("details.tool.runToolToSeeResults")})]})})]});return t.jsx(je,{leading:He,children:t.jsxs("div",{className:"flex flex-col h-full overflow-hidden @container",children:[t.jsxs("div",{className:"flex flex-col gap-3 py-7 px-8 bg-background border-b border-border shrink-0",children:[t.jsxs("div",{className:"flex items-center gap-4",children:[t.jsx(Ae,{icon:O?.icon||null,name:O?.title||s,size:"xl",className:"shrink-0"}),t.jsx(Re.Title,{children:s}),t.jsxs("div",{className:"flex items-center gap-2 px-2.5 py-1 bg-muted/50 rounded-md h-fit shrink-0",children:[_.isSuccess?t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-success animate-pulse shrink-0"}):_.isLoading?t.jsx(Z,{className:"size-[10px] text-warning shrink-0"}):t.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-destructive shrink-0"}),t.jsx("span",{className:"font-mono text-xs capitalize text-muted-foreground leading-none",children:_.isSuccess?"ready":_.isLoading?"connecting":"error"})]}),t.jsx(It,{annotations:S?.annotations,_meta:S?._meta}),t.jsx("div",{className:"hidden @3xl:flex items-center ml-auto shrink-0",children:Ne})]}),t.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:S?.description||"No description available"})]}),n.length>1&&t.jsxs("div",{className:"flex @3xl:hidden items-center gap-3 px-8 py-3 border-b border-border",children:[t.jsx("span",{className:"text-xs font-medium text-muted-foreground shrink-0",children:l("details.tool.instance")}),Ne]}),t.jsx("div",{className:"flex-1 overflow-auto @3xl:overflow-hidden",children:t.jsxs("div",{className:"grid grid-cols-1 @3xl:grid-cols-[minmax(0,2fr)_minmax(0,5fr)] @3xl:h-full @3xl:grid-rows-1",children:[t.jsx("div",{className:"@3xl:border-r border-border @3xl:overflow-auto",children:Ke}),We]})})]})})}function Jt(s){const e=E.c(21),{itemId:n,siblings:o,onBack:l}=s,i=W(),[a,c]=A.useState(o[0]?.id??"");let d;e[0]!==a||e[1]!==o?(d=o.find(p=>p.id===a)?.id??o[0]?.id??"",e[0]=a,e[1]=o,e[2]=d):d=e[2];const r=d;if(!ze(r||void 0)||!r){let p;e[3]!==i?(p=i("details.tool.connectionNotFound"),e[3]=i,e[4]=p):p=e[4];let j;e[5]!==p?(j=t.jsx("h3",{className:"text-lg font-semibold",children:p}),e[5]=p,e[6]=j):j=e[6];let N;e[7]!==i?(N=i("details.tool.connectionNotFoundMessage"),e[7]=i,e[8]=N):N=e[8];let v;e[9]!==N?(v=t.jsx("p",{className:"text-sm text-muted-foreground",children:N}),e[9]=N,e[10]=v):v=e[10];let y;return e[11]!==j||e[12]!==v?(y=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[j,v]})}),e[11]=j,e[12]=v,e[13]=y):y=e[13],y}let h;e[14]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),e[14]=h):h=e[14];let u;e[15]===Symbol.for("react.memo_cache_sentinel")?(u=p=>A.startTransition(()=>c(p)),e[15]=u):u=e[15];let g;return e[16]!==r||e[17]!==l||e[18]!==o||e[19]!==n?(g=t.jsx(A.Suspense,{fallback:h,children:t.jsx(Ut,{toolName:n,connectionId:r,siblings:o,onSelectInstance:u,onBack:l})}),e[16]=r,e[17]=l,e[18]=o,e[19]=n,e[20]=g):g=e[20],g}const Vt={prompt:Bt};function qt(){const s=E.c(9),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=decodeURIComponent(o.itemId);let i;s[1]!==o.appSlug?(i={slug:o.appSlug},s[1]=o.appSlug,s[2]=i):i=s[2];const a=Be(i);let c;s[3]!==e.history?(c=()=>{e.history.back()},s[3]=e.history,s[4]=c):c=s[4];const d=c,r=Ht;let x;return s[5]!==d||s[6]!==l||s[7]!==a?(x=t.jsx(Jt,{itemId:l,siblings:a,onBack:d,onUpdate:r}),s[5]=d,s[6]=l,s[7]=a,s[8]=x):x=s[8],x}async function Ht(s){return Promise.resolve()}function Kt(s){return s.toLowerCase().split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}function Wt(){const s=E.c(52),e=Me();let n;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=n):n=s[0];const o=he(n),l=W(),i=decodeURIComponent(o.collectionName),a=decodeURIComponent(o.itemId);let c;s[1]!==e.history?(c=()=>{e.history.back()},s[1]=e.history,s[2]=c):c=s[2];const d=c,{org:r}=fe();let x;s[3]!==o.appSlug?(x={slug:o.appSlug},s[3]=o.appSlug,s[4]=x):x=s[4];const u=Be(x)[0]??null,g=u?.id??"",p=g||"no-connection",j=g??null;let N;s[5]!==r.id||s[6]!==r.slug||s[7]!==j?(N={connectionId:j,orgId:r.id,orgSlug:r.slug},s[5]=r.id,s[6]=r.slug,s[7]=j,s[8]=N):N=s[8];const v=ge(N),y=Oe(p,i,v);let w;s[9]!==y||s[10]!==a?(w=async J=>{a&&await y.update.mutateAsync({id:a,data:J})},s[9]=y,s[10]=a,s[11]=w):w=s[11];const P=w;let C;s[12]!==i?(C=i?.toLowerCase(),s[12]=i,s[13]=C):C=s[13];const b=C,k=b&&Vt[b];let D;s[14]!==i?(D=Kt(i),s[14]=i,s[15]=D):D=s[15];const O=D;let I;s[16]!==r.slug?(I=t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections",params:{org:r.slug},children:"Connections"})})}),s[16]=r.slug,s[17]=I):I=s[17];let T;s[18]===Symbol.for("react.memo_cache_sentinel")?(T=t.jsx(le,{}),s[18]=T):T=s[18];let R;s[19]!==i||s[20]!==u||s[21]!==r.slug||s[22]!==o.appSlug?(R=u&&t.jsxs(t.Fragment,{children:[t.jsx(Y,{children:t.jsx(oe,{asChild:!0,children:t.jsx(se,{to:"/$org/settings/connections/$appSlug",params:{org:r.slug,appSlug:o.appSlug},search:{tab:i},children:u.title})})}),t.jsx(le,{})]}),s[19]=i,s[20]=u,s[21]=r.slug,s[22]=o.appSlug,s[23]=R):R=s[23];let U;s[24]!==O?(U=t.jsx(Y,{children:t.jsx(_e,{children:O})}),s[24]=O,s[25]=U):U=s[25];let F;s[26]!==R||s[27]!==U||s[28]!==I?(F=t.jsx(Le,{children:t.jsxs(Ue,{children:[I,T,R,U]})}),s[26]=R,s[27]=U,s[28]=I,s[29]=F):F=s[29];const _=F;if(k){let J;return s[30]!==k||s[31]!==d||s[32]!==P||s[33]!==a?(J=t.jsx(k,{itemId:a,onBack:d,onUpdate:P}),s[30]=k,s[31]=d,s[32]=P,s[33]=a,s[34]=J):J=s[34],J}let S;s[35]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx(Ot,{size:36,className:"text-muted-foreground"}),s[35]=S):S=s[35];let M;s[36]!==l?(M=l("orgs.collectionDetail.noComponentDefinedTitle"),s[36]=l,s[37]=M):M=s[37];let V;s[38]!==l?(V=l("orgs.collectionDetail.noComponentDefinedDescription"),s[38]=l,s[39]=V):V=s[39];let z;s[40]!==l?(z=l("orgs.collectionDetail.goBackButton"),s[40]=l,s[41]=z):z=s[41];let B;s[42]!==d||s[43]!==z?(B={onClick:d,children:z},s[42]=d,s[43]=z,s[44]=B):B=s[44];let q;s[45]!==M||s[46]!==V||s[47]!==B?(q=t.jsx(Et,{icon:S,title:M,description:V,buttonProps:B}),s[45]=M,s[46]=V,s[47]=B,s[48]=q):q=s[48];let Q;return s[49]!==_||s[50]!==q?(Q=t.jsx(je,{leading:_,children:q}),s[49]=_,s[50]=q,s[51]=Q):Q=s[51],Q}function Qt(){const s=E.c(3);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings/connections/$appSlug/$collectionName/$itemId"},s[0]=e):e=s[0];const n=he(e);if(decodeURIComponent(n.collectionName)==="tools"){let a;return s[1]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(qt,{}),s[1]=a):a=s[1],a}let i;return s[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(Wt,{}),s[2]=i):i=s[2],i}function Vo(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(Ee,{children:t.jsx(A.Suspense,{fallback:t.jsx("div",{className:"flex h-full items-center justify-center",children:t.jsx(Z,{className:"size-8 text-muted-foreground"})}),children:t.jsx(Qt,{})})}),s[0]=e):e=s[0],e}export{Vo as default};
@@ -1 +1 @@
1
- import{c as R,b as S,j as s,U as z,ah as A,l as V,T as $,B as E,V as F,X as _}from"./index-CRbDzsEl.js";import{i as L,n as O}from"./ArrowUp-XUO4rGpO.js";import{a as P,i as Y,c as I}from"./SwitchHorizontal01-D8mpLNM6.js";import{T as K,a as U,c as W,b as X}from"./tooltip-3DBbiHrv.js";import{V as q}from"./view-mode-toggle-DGF1qVNP.js";import{B as G}from"./badge-GBNejOns.js";const M=[];function ie(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:k,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(J),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(P,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(K,{asChild:!0,children:s.jsx($,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(U,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(W,{children:s.jsxs(X,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let p;e[17]!==h||e[18]!==i?(p=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(Y,{})},{value:"cards",icon:s.jsx(I,{})}]})}),e[17]=h,e[18]=i,e[19]=p):p=e[19];let m;e[20]!==j||e[21]!==g||e[22]!==k||e[23]!==b||e[24]!==l?(m=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const T=k===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:V("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(A,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),T&&g&&(g==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=k,e[23]=b,e[24]=l,e[25]=m):m=e[25];let u;e[26]!==o?(u=o.map(H),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==p||e[29]!==m||e[30]!==u?(f=s.jsxs(F,{align:"end",className:"w-[200px] p-0 gap-0",children:[p,m,u]}),e[28]=p,e[29]=m,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:V("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(A,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{ie as C};
1
+ import{c as R,b as S,j as s,U as z,ah as A,l as V,T as $,B as E,V as F,X as _}from"./index-BnoCrGwV.js";import{i as L,n as O}from"./ArrowUp-DESKNNlf.js";import{a as P,i as Y,c as I}from"./SwitchHorizontal01-DCGuISL6.js";import{T as K,a as U,c as W,b as X}from"./tooltip-D58qe9VW.js";import{V as q}from"./view-mode-toggle-Oj88POra.js";import{B as G}from"./badge-BEq8f8Nc.js";const M=[];function ie(t){const e=R.c(35),{viewMode:i,onViewModeChange:h,sortKey:k,sortDirection:g,onSort:j,sortOptions:B,filters:D}=t,b=B===void 0?M:B,o=D===void 0?M:D,l=S();let v;e[0]!==o?(v=o.filter(J),e[0]=o,e[1]=v):v=e[1];const N=v.length;let r;e[2]!==l?(r=l("collections.collectionDisplayButton.displayAndFilters"),e[2]=l,e[3]=r):r=e[3];let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(P,{size:16}),e[4]=w):w=e[4];let n;e[5]!==N?(n=N>0&&s.jsx(G,{variant:"default",className:"absolute -top-1.5 -right-1.5 h-4 min-w-4 px-1 text-[10px] leading-none",children:N}),e[5]=N,e[6]=n):n=e[6];let a;e[7]!==r||e[8]!==n?(a=s.jsx(K,{asChild:!0,children:s.jsx($,{asChild:!0,children:s.jsxs(E,{variant:"outline",size:"icon",className:"relative","aria-label":r,children:[w,n]})})}),e[7]=r,e[8]=n,e[9]=a):a=e[9];let c;e[10]!==l?(c=l("collections.collectionDisplayButton.displayAndFilters"),e[10]=l,e[11]=c):c=e[11];let d;e[12]!==c?(d=s.jsx(U,{children:c}),e[12]=c,e[13]=d):d=e[13];let x;e[14]!==a||e[15]!==d?(x=s.jsx(W,{children:s.jsxs(X,{children:[a,d]})}),e[14]=a,e[15]=d,e[16]=x):x=e[16];let p;e[17]!==h||e[18]!==i?(p=h&&i&&s.jsx("div",{className:"p-2 border-b border-border",children:s.jsx(q,{value:i,onValueChange:h,fullWidth:!0,options:[{value:"table",icon:s.jsx(Y,{})},{value:"cards",icon:s.jsx(I,{})}]})}),e[17]=h,e[18]=i,e[19]=p):p=e[19];let m;e[20]!==j||e[21]!==g||e[22]!==k||e[23]!==b||e[24]!==l?(m=b.length>0&&j&&s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:l("collections.collectionDisplayButton.sortBy")}),b.map(C=>{const T=k===C.id;return s.jsx(z,{onClick:()=>j(C.id),className:V("h-8 px-2 py-0 cursor-pointer",T&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[T&&s.jsx(A,{size:16,className:"text-foreground shrink-0"}),!T&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:C.label}),T&&g&&(g==="asc"?s.jsx(L,{size:16,className:"text-foreground shrink-0"}):s.jsx(O,{size:16,className:"text-foreground shrink-0"}))]})},C.id)})]}),e[20]=j,e[21]=g,e[22]=k,e[23]=b,e[24]=l,e[25]=m):m=e[25];let u;e[26]!==o?(u=o.map(H),e[26]=o,e[27]=u):u=e[27];let f;e[28]!==p||e[29]!==m||e[30]!==u?(f=s.jsxs(F,{align:"end",className:"w-[200px] p-0 gap-0",children:[p,m,u]}),e[28]=p,e[29]=m,e[30]=u,e[31]=f):f=e[31];let y;return e[32]!==x||e[33]!==f?(y=s.jsxs(_,{children:[x,f]}),e[32]=x,e[33]=f,e[34]=y):y=e[34],y}function H(t){return s.jsxs("div",{className:"p-1 flex flex-col gap-0.5 border-b border-border last:border-b-0",children:[s.jsx("div",{className:"px-2 py-1.5 text-xs font-mono font-normal text-muted-foreground uppercase tracking-wide",children:t.label}),t.options.map(e=>{const i=t.value===e.id;return s.jsx(z,{onClick:()=>t.onChange(e.id),className:V("h-8 px-2 py-0 cursor-pointer",i&&"bg-accent"),children:s.jsxs("div",{className:"flex items-center gap-2 w-full",children:[i&&s.jsx(A,{size:16,className:"text-foreground shrink-0"}),!i&&s.jsx("div",{className:"w-4 shrink-0"}),s.jsx("span",{className:"text-sm text-foreground flex-1",children:e.label})]})},e.id)})]},t.label)}function J(t){return t.value!=="ALL"}export{ie as C};
@@ -1 +1 @@
1
- import{c as v,l as b,j as a,h as w}from"./index-CRbDzsEl.js";import{i as C}from"./SearchMd-Bg-9XsfQ.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
1
+ import{c as v,l as b,j as a,h as w}from"./index-BnoCrGwV.js";import{i as C}from"./SearchMd--I1GEx-C.js";function y(j){const e=v.c(21),{value:d,onChange:m,placeholder:g,onKeyDown:x,className:u,isSearching:f,disabled:i}=j,h=g===void 0?"Search...":g;let t;e[0]!==u?(t=b("shrink-0 w-full border-b border-border h-12",u),e[0]=u,e[1]=t):t=e[1];const p=i?"cursor-not-allowed opacity-50":"cursor-text";let s;e[2]!==p?(s=b("flex items-center gap-2.5 h-12 px-4",p),e[2]=p,e[3]=s):s=e[3];let l;e[4]!==f?(l=f?a.jsx(w,{className:"size-4 text-muted-foreground shrink-0"}):a.jsx(C,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=f,e[5]=l):l=e[5];let r;e[6]!==m?(r=N=>m(N.target.value),e[6]=m,e[7]=r):r=e[7];let o;e[8]!==i||e[9]!==x||e[10]!==h||e[11]!==r||e[12]!==d?(o=a.jsx("input",{type:"text",value:d,onChange:r,onKeyDown:x,placeholder:h,disabled:i,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=i,e[9]=x,e[10]=h,e[11]=r,e[12]=d,e[13]=o):o=e[13];let n;e[14]!==s||e[15]!==l||e[16]!==o?(n=a.jsxs("label",{className:s,children:[l,o]}),e[14]=s,e[15]=l,e[16]=o,e[17]=n):n=e[17];let c;return e[18]!==t||e[19]!==n?(c=a.jsx("div",{className:t,children:n}),e[18]=t,e[19]=n,e[20]=c):c=e[20],c}export{y as C};
@@ -1 +1 @@
1
- import{c as S,j as n,l as y,b as D}from"./index-CRbDzsEl.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-CtPELWNl.js";import{i as W,n as z}from"./ArrowUp-XUO4rGpO.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
1
+ import{c as S,j as n,l as y,b as D}from"./index-BnoCrGwV.js";import{T as I,a as R,b as T,c as E,d as H,e as K}from"./table-CDMv2RNX.js";import{i as W,n as z}from"./ArrowUp-DESKNNlf.js";function L(C){const e=S.c(31),{columns:o,data:u,sortKey:x,sortDirection:i,onSort:c,onRowClick:l,rowClassName:m}=C;let p;e[0]!==i?(p=function(t,b){return n.jsx("div",{className:"w-4 flex items-center justify-center",children:b&&i&&(i==="asc"?n.jsx(W,{size:16,className:"text-muted-foreground transition-colors"}):n.jsx(z,{size:16,className:"text-muted-foreground transition-colors"}))})},e[0]=i,e[1]=p):p=e[1];const h=p;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=function(t,b){let g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider";return t===b-1&&(g="px-4 py-2 text-left font-mono font-normal text-muted-foreground text-[11px] h-9 uppercase tracking-wider w-8"),g},e[2]=d):d=e[2];const v=d;let s;if(e[3]!==o||e[4]!==c||e[5]!==h||e[6]!==i||e[7]!==x){let f;e[9]!==o.length||e[10]!==c||e[11]!==h||e[12]!==i||e[13]!==x?(f=(t,b)=>{const g=x===t.id,r=t.sortable&&c;return n.jsx(I,{className:y(v(b,o.length),"group transition-colors select-none",t.sortable&&"hover:bg-accent cursor-pointer",t.rowClassName,t.cellClassName),"aria-sort":g&&i?i==="asc"?"ascending":"descending":t.sortable?"none":void 0,role:r?"button":void 0,tabIndex:r?0:void 0,onClick:r?()=>c(t.id):void 0,onKeyDown:r?k=>{(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),c(t.id))}:void 0,children:n.jsxs("span",{className:"flex items-center gap-1",children:[t.header,t.sortable&&h(t.id,g)]})},t.id)},e[9]=o.length,e[10]=c,e[11]=h,e[12]=i,e[13]=x,e[14]=f):f=e[14],s=o.map(f),e[3]=o,e[4]=c,e[5]=h,e[6]=i,e[7]=x,e[8]=s}else s=e[8];let a;e[15]!==s?(a=n.jsx(R,{className:"border-b-0",children:n.jsx(T,{className:"h-9 hover:bg-transparent border-b border-border",children:s})}),e[15]=s,e[16]=a):a=e[16];let j;if(e[17]!==o||e[18]!==u||e[19]!==l||e[20]!==m){let f;e[22]!==o||e[23]!==l||e[24]!==m?(f=(t,b)=>{const g=m?.(t);return n.jsx(T,{"data-row-index":b,className:y("group/data-row transition-colors border-b-0 hover:bg-accent/50",l?"cursor-pointer":"",g),role:l?"button":void 0,tabIndex:l?0:void 0,onClick:l?()=>l(t):void 0,onKeyDown:l?r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),l(t))}:void 0,children:o.map(r=>n.jsx(E,{className:y("px-5 py-4 h-16 align-middle text-sm text-foreground",r.cellClassName,r.wrap?"whitespace-normal wrap-break-word":""),children:n.jsx("div",{className:y(r.wrap?"w-full":"min-w-0 w-full",!r.wrap&&"truncate overflow-hidden whitespace-nowrap"),children:r.render?r.render(t):r.accessor?r.accessor(t):null})},r.id))},b)},e[22]=o,e[23]=l,e[24]=m,e[25]=f):f=e[25],j=u.map(f),e[17]=o,e[18]=u,e[19]=l,e[20]=m,e[21]=j}else j=e[21];let w;e[26]!==j?(w=n.jsx(H,{children:j}),e[26]=j,e[27]=w):w=e[27];let N;return e[28]!==a||e[29]!==w?(N=n.jsxs(K,{className:"w-full border-collapse",children:[a,w]}),e[28]=a,e[29]=w,e[30]=N):N=e[30],N}function F(C){const e=S.c(16),{columns:o,data:u,isLoading:x,sortKey:i,sortDirection:c,onSort:l,onRowClick:m,emptyState:p}=C,h=x===void 0?!1:x,d=D();if(h){let s;e[0]!==d?(s=d("collections.collectionTableWrapper.loading"),e[0]=d,e[1]=s):s=e[1];let a;return e[2]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:n.jsx("div",{className:"text-muted-foreground",children:s})}),e[2]=s,e[3]=a):a=e[3],a}if(u.length===0){let s;e[4]!==p||e[5]!==d?(s=p||n.jsx("div",{className:"text-center py-12 text-muted-foreground",children:d("collections.collectionTableWrapper.noItemsFound")}),e[4]=p,e[5]=d,e[6]=s):s=e[6];let a;return e[7]!==s?(a=n.jsx("div",{className:"flex items-center justify-center h-full",children:s}),e[7]=s,e[8]=a):a=e[8],a}let v;return e[9]!==o||e[10]!==u||e[11]!==m||e[12]!==l||e[13]!==c||e[14]!==i?(v=n.jsx("div",{className:"flex-1",children:n.jsx(L,{columns:o,data:u,sortKey:i,sortDirection:c,onSort:l,onRowClick:m})}),e[9]=o,e[10]=u,e[11]=m,e[12]=l,e[13]=c,e[14]=i,e[15]=v):v=e[15],v}export{F as C};
@@ -1 +1 @@
1
- import{c as b,j as r,n as p,P as j,l as h}from"./index-CRbDzsEl.js";import{B as v}from"./badge-GBNejOns.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
1
+ import{c as b,j as r,n as p,P as j,l as h}from"./index-BnoCrGwV.js";import{B as v}from"./badge-BEq8f8Nc.js";function P(g){const e=b.c(13),{tabs:d,activeTab:o,onTabChange:s,className:m,placement:u}=g,f=u===void 0?"inline":u;let t;if(e[0]!==o||e[1]!==s||e[2]!==d){let c;e[4]!==o||e[5]!==s?(c=n=>{const x=o===n.id;return r.jsxs(p.Tab,{active:x,onClick:()=>s(n.id),children:[n.label,n.count!==void 0&&r.jsx(v,{variant:"secondary",className:h("h-5 min-w-5 px-1 rounded-full text-[10px] font-mono inline-flex items-center justify-center",x?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:n.count})]},n.id)},e[4]=o,e[5]=s,e[6]=c):c=e[6],t=d.map(c),e[0]=o,e[1]=s,e[2]=d,e[3]=t}else t=e[3];let l;e[7]!==m||e[8]!==t?(l=r.jsx(p.Tabs,{className:m,children:t}),e[7]=m,e[8]=t,e[9]=l):l=e[9];const i=l;let a;return e[10]!==i||e[11]!==f?(a=f==="page"?r.jsx(j.Toolbar.Left.Portal,{fallback:i,children:i}):i,e[10]=i,e[11]=f,e[12]=a):a=e[12],a}export{P as C};
@@ -1,3 +1,3 @@
1
- import{c as E,a2 as F,o as X,r as q,aa as J,K as z,m as te,e as se,b as H,l as D,j as o,t as V,B as Y,fo as le,L as U}from"./index-CRbDzsEl.js";import{s as ae}from"./Plus-clvoB9-y.js";import{s as ne}from"./XClose-Ck0EFhGe.js";import{B as K}from"./badge-GBNejOns.js";import{f as ie,C as oe,c as re,a as ce,e as de,b as me}from"./command-CJiwms5W.js";import{I as ue}from"./icon-button-D9OpoKyB.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-Bg01hTvG.js";import{S as je}from"./switch-C2mEXqfo.js";import{T as ke}from"./textarea-DKdq_MAz.js";import{h as Se}from"./task-board-Cq7KN9Yp.js";import{p as be}from"./use-org-fs-BruBSf1P.js";import{c as Re}from"./watch-sse-pool-Bb7_5bsI.js";import{u as Z,a as ve}from"./use-automations-DxHm0Snl.js";function Be(){const s=E.c(7),{org:e}=F(),a=J();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=J(),t=X();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=X();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;q.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=q.useState(t.prompt),[d,j]=q.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
1
+ import{c as E,a2 as F,o as X,r as q,aa as J,K as z,m as te,e as se,b as H,l as D,j as o,t as V,B as Y,fo as le,L as U}from"./index-BnoCrGwV.js";import{s as ae}from"./Plus-C7i72Ui0.js";import{s as ne}from"./XClose-ByJq3z1t.js";import{B as K}from"./badge-BEq8f8Nc.js";import{f as ie,C as oe,c as re,a as ce,e as de,b as me}from"./command-BSyD71wq.js";import{I as ue}from"./icon-button-CTsUwdOO.js";import{c as fe,S as pe,a as xe,b as he,e as ge}from"./sheet-CV4TQLcF.js";import{S as je}from"./switch-Dl_eh6Nb.js";import{T as ke}from"./textarea-DoDVPYV2.js";import{h as Se}from"./task-board-l22wFLNQ.js";import{p as be}from"./use-org-fs-CfbJ-qpv.js";import{c as Re}from"./watch-sse-pool-BpjjRSV_.js";import{u as Z,a as ve}from"./use-automations-CWCytpPL.js";function Be(){const s=E.c(7),{org:e}=F(),a=J();let t;s[0]!==e.id?(t=z.taskBoardPrompts(e.id),s[0]=e.id,s[1]=t):t=s[1];let n;s[2]!==a?(n=async()=>(await a.call("TASK_BOARD_PROMPT_LIST",{})).prompts,s[2]=a,s[3]=n):n=s[3];let i;return s[4]!==t||s[5]!==n?(i={queryKey:t,staleTime:6e4,queryFn:n},s[4]=t,s[5]=n,s[6]=i):i=s[6],te(i)}function Ce(){const s=E.c(8),{org:e}=F(),a=J(),t=X();let n;s[0]!==a?(n=async c=>{const{columnKey:r,rules:p}=c;if(p){const d=p.prompt.trim();await(d||p.skills.length?a.call("TASK_BOARD_PROMPT_UPSERT",{columnKey:r,prompt:d,skills:p.skills}):a.call("TASK_BOARD_PROMPT_DELETE",{columnKey:r}))}},s[0]=a,s[1]=n):n=s[1];let i;s[2]!==e||s[3]!==t?(i=()=>t.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[2]=e,s[3]=t,s[4]=i):i=s[4];let l;return s[5]!==n||s[6]!==i?(l={mutationFn:n,onSettled:i},s[5]=n,s[6]=i,s[7]=l):l=s[7],se(l)}const W=()=>0;function Ge(){const s=E.c(6),{org:e}=F(),a=X();let t;s[0]!==e.id||s[1]!==a?(t=()=>a.invalidateQueries({queryKey:z.taskBoardPrompts(e.id)}),s[0]=e.id,s[1]=a,s[2]=t):t=s[2];const n=t;let i;s[3]!==e.slug||s[4]!==n?(i=()=>Re.subscribe(e.slug,n,n),s[3]=e.slug,s[4]=n,s[5]=i):i=s[5];const l=i;q.useSyncExternalStore(l,W,W)}function Ne(s){const e=E.c(8),a=Be();let t;e[0]!==s||e[1]!==a.data?(t=a.data?.find(l=>l.columnKey===s),e[0]=s,e[1]=a.data,e[2]=t):t=e[2];let n;e[3]!==a.data?(n=a.data?.find(Te)?.skills??[],e[3]=a.data,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={scope:t,boardSkills:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],i}function Te(s){return s.columnKey===null}function Ve(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.type==="board_column_transition"&&c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function ye(s){const e=E.c(7),{data:a}=Z();let t;e[0]!==a?(t=a??[],e[0]=a,e[1]=t):t=e[1];let n;if(e[2]!==s||e[3]!==t){let i;e[5]!==s?(i=l=>l.board_triggers.some(c=>c.column_key===s),e[5]=s,e[6]=i):i=e[6],n=t.filter(i),e[2]=s,e[3]=t,e[4]=n}else n=e[4];return n}function Pe(s){const e=E.c(33),{columnKey:a}=s,t=H(),{org:n}=F(),i=ye(a),{update:l}=ve();let c;e[0]!==t?(c=t("taskBoard.columnRules.automationsLabel"),e[0]=t,e[1]=c):c=e[1];let r;e[2]!==c?(r=o.jsx(Q,{children:c}),e[2]=c,e[3]=r):r=e[3];let p;if(e[4]!==i||e[5]!==n.slug||e[6]!==t||e[7]!==l){let S;e[9]!==n.slug||e[10]!==t||e[11]!==l?(S=h=>o.jsxs("div",{className:"flex items-center gap-3 rounded-lg border border-border px-3 py-2",children:[o.jsxs(U,{to:"/$org/projects/$agentId/automations/$automationId",params:{org:n.slug,agentId:h.virtual_mcp_id,automationId:h.id},className:"flex min-w-0 flex-1 items-center gap-2 text-sm text-foreground hover:underline",children:[o.jsx("span",{className:"truncate",children:h.name}),h.system_key&&o.jsx(K,{variant:"muted",children:t("automations.builtin.badge")})]}),o.jsx(je,{checked:h.active,disabled:l.isPending,onCheckedChange:R=>l.mutate({id:h.id,active:R}),"aria-label":t("taskBoard.columnRules.toggleAutomation",{name:h.name})})]},h.id),e[9]=n.slug,e[10]=t,e[11]=l,e[12]=S):S=e[12],p=i.map(S),e[4]=i,e[5]=n.slug,e[6]=t,e[7]=l,e[8]=p}else p=e[8];let d;e[13]!==i.length||e[14]!==t?(d=i.length===0&&o.jsxs(o.Fragment,{children:[t("taskBoard.columnRules.noAutomations")," "]}),e[13]=i.length,e[14]=t,e[15]=d):d=e[15];const j=n.slug;let f;e[16]!==n.id?(f=le(n.id),e[16]=n.id,e[17]=f):f=e[17];let x;e[18]!==n.slug||e[19]!==f?(x={org:j,agentId:f},e[18]=n.slug,e[19]=f,e[20]=x):x=e[20];let m;e[21]!==t?(m=t("taskBoard.columnRules.addAutomation"),e[21]=t,e[22]=m):m=e[22];let u;e[23]!==x||e[24]!==m?(u=o.jsx(U,{to:"/$org/projects/$agentId/automations",params:x,className:"text-foreground underline underline-offset-2",children:m}),e[23]=x,e[24]=m,e[25]=u):u=e[25];let k;e[26]!==d||e[27]!==u?(k=o.jsxs("p",{className:"text-meta",children:[d,u]}),e[26]=d,e[27]=u,e[28]=k):k=e[28];let b;return e[29]!==k||e[30]!==r||e[31]!==p?(b=o.jsxs("section",{className:"flex flex-col gap-2",children:[r,p,k]}),e[29]=k,e[30]=r,e[31]=p,e[32]=b):b=e[32],b}function Ye(s){const e=E.c(21),{columnKey:a,label:t,open:n,onOpenChange:i}=s,{scope:l,boardSkills:c}=Ne(a);let r;e[0]!==t?(r=o.jsx(fe,{className:"border-b",children:o.jsx(pe,{children:t})}),e[0]=t,e[1]=r):r=e[1];const p=l?.prompt??"";let d;e[2]!==l?.skills?(d=l?.skills??[],e[2]=l?.skills,e[3]=d):d=e[3];let j;e[4]!==p||e[5]!==d?(j={prompt:p,skills:d},e[4]=p,e[5]=d,e[6]=j):j=e[6];let f;e[7]!==i?(f=()=>i(!1),e[7]=i,e[8]=f):f=e[8];let x;e[9]!==c||e[10]!==a||e[11]!==j||e[12]!==f?(x=o.jsx($e,{columnKey:a,initial:j,boardSkills:c,onDone:f}),e[9]=c,e[10]=a,e[11]=j,e[12]=f,e[13]=x):x=e[13];let m;e[14]!==r||e[15]!==x?(m=o.jsxs(xe,{className:"w-full gap-0 sm:max-w-md","aria-describedby":void 0,children:[r,x]}),e[14]=r,e[15]=x,e[16]=m):m=e[16];let u;return e[17]!==n||e[18]!==i||e[19]!==m?(u=o.jsx(o.Fragment,{children:o.jsx(he,{open:n,onOpenChange:i,children:m})}),e[17]=n,e[18]=i,e[19]=m,e[20]=u):u=e[20],u}function $e(s){const e=E.c(58),{columnKey:a,initial:t,boardSkills:n,onDone:i}=s,l=H(),c=Ce(),[r,p]=q.useState(t.prompt),[d,j]=q.useState(t.skills);let f;e[0]!==a||e[1]!==t.prompt||e[2]!==t.skills||e[3]!==i||e[4]!==r||e[5]!==c||e[6]!==d||e[7]!==l?(f=()=>c.mutate({columnKey:a,...r!==t.prompt||d.join(`
2
2
  `)!==t.skills.join(`
3
3
  `)?{rules:{prompt:r,skills:d}}:{}},{onSuccess:()=>{V.success(l("taskBoard.columnRules.saved")),i()},onError:g=>V.error(g instanceof Error?g.message:l("taskBoard.columnRules.failed"))}),e[0]=a,e[1]=t.prompt,e[2]=t.skills,e[3]=i,e[4]=r,e[5]=c,e[6]=d,e[7]=l,e[8]=f):f=e[8];const x=f;let m;e[9]!==a?(m=o.jsx(Pe,{columnKey:a}),e[9]=a,e[10]=m):m=e[10];let u;e[11]!==l?(u=l("taskBoard.columnRules.promptLabel"),e[11]=l,e[12]=u):u=e[12];let k;e[13]!==u?(k=o.jsx(Q,{children:u}),e[13]=u,e[14]=k):k=e[14];let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=g=>p(g.target.value),e[15]=b):b=e[15];let S;e[16]!==l?(S=l("taskBoard.columnRules.promptPlaceholder"),e[16]=l,e[17]=S):S=e[17];let h;e[18]!==l?(h=l("taskBoard.columnRules.promptLabel"),e[18]=l,e[19]=h):h=e[19];let R;e[20]!==r||e[21]!==S||e[22]!==h?(R=o.jsx(ke,{value:r,rows:5,maxLength:Se,onChange:b,placeholder:S,"aria-label":h}),e[20]=r,e[21]=S,e[22]=h,e[23]=R):R=e[23];let v;e[24]!==k||e[25]!==R?(v=o.jsxs("section",{className:"flex flex-col gap-2",children:[k,R]}),e[24]=k,e[25]=R,e[26]=v):v=e[26];let C;e[27]!==l?(C=l("taskBoard.columnRules.skillsLabel"),e[27]=l,e[28]=C):C=e[28];let N;e[29]!==C?(N=o.jsx(Q,{children:C}),e[29]=C,e[30]=N):N=e[30];let T;e[31]!==n||e[32]!==d?(T=o.jsx(Ee,{fill:!0,value:d,onChange:j,inherited:n}),e[31]=n,e[32]=d,e[33]=T):T=e[33];let y;e[34]!==N||e[35]!==T?(y=o.jsxs("section",{className:"flex min-h-64 flex-1 flex-col gap-2",children:[N,T]}),e[34]=N,e[35]=T,e[36]=y):y=e[36];let A;e[37]!==y||e[38]!==m||e[39]!==v?(A=o.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-4",children:[m,v,y]}),e[37]=y,e[38]=m,e[39]=v,e[40]=A):A=e[40];let B;e[41]!==l?(B=l("taskBoard.columnRules.cancel"),e[41]=l,e[42]=B):B=e[42];let w;e[43]!==i||e[44]!==B?(w=o.jsx(Y,{variant:"outline",onClick:i,children:B}),e[43]=i,e[44]=B,e[45]=w):w=e[45];const O=c.isPending;let P;e[46]!==l?(P=l("taskBoard.columnRules.save"),e[46]=l,e[47]=P):P=e[47];let I;e[48]!==c.isPending||e[49]!==x||e[50]!==P?(I=o.jsx(Y,{disabled:O,onClick:x,children:P}),e[48]=c.isPending,e[49]=x,e[50]=P,e[51]=I):I=e[51];let $;e[52]!==w||e[53]!==I?($=o.jsxs(ge,{className:"flex-row justify-end border-t",children:[w,I]}),e[52]=w,e[53]=I,e[54]=$):$=e[54];let L;return e[55]!==A||e[56]!==$?(L=o.jsxs(o.Fragment,{children:[A,$]}),e[55]=A,e[56]=$,e[57]=L):L=e[57],L}function Q(s){const e=E.c(2),{children:a}=s;let t;return e[0]!==a?(t=o.jsx("h3",{className:"text-sm font-medium text-foreground",children:a}),e[0]=a,e[1]=t):t=e[1],t}const Ae=[];function Ee(s){const e=E.c(71),{value:a,onChange:t,inherited:n,fill:i}=s,l=n===void 0?Ae:n,c=i===void 0?!1:i,r=H(),p=be();let d;e[0]!==p.data?(d=B=>p.data?.find(w=>w.id===B)?.name??B,e[0]=p.data,e[1]=d):d=e[1];const j=d;let f,x,m,u,k,b,S,h,R,v;if(e[2]!==p.data||e[3]!==c||e[4]!==l||e[5]!==j||e[6]!==t||e[7]!==r||e[8]!==a){let B;e[19]!==l||e[20]!==a?(B=g=>!g.disableModelInvocation&&!a.includes(g.id)&&!l.includes(g.id),e[19]=l,e[20]=a,e[21]=B):B=e[21];const w=(p.data??[]).filter(B);if(e[22]!==c||e[23]!==l||e[24]!==j||e[25]!==t||e[26]!==r||e[27]!==a){let g;e[30]!==l?(g=_=>!l.includes(_),e[30]=l,e[31]=g):g=e[31];const G=a.filter(g),M=c&&"min-h-0 flex-1";e[32]!==M?(v=D("flex flex-col gap-2",M),e[32]=M,e[33]=v):v=e[33],u=G.length>0&&o.jsx("div",{className:"flex flex-wrap gap-1.5",children:G.map(_=>o.jsxs(K,{variant:"outline",className:"py-0 pr-0 pl-2",children:[j(_),o.jsx(ue,{label:r("taskBoard.columnRules.removeSkill",{skill:j(_)}),onClick:()=>t(a.filter(ee=>ee!==_)),className:"size-5 text-muted-foreground",children:o.jsx(ne,{size:12})})]},_))}),e[22]=c,e[23]=l,e[24]=j,e[25]=t,e[26]=r,e[27]=a,e[28]=u,e[29]=v}else u=e[28],v=e[29];m=ie;const O=c&&"min-h-0 flex-1";e[34]!==O?(h=D("h-auto border",O),e[34]=O,e[35]=h):h=e[35];let P;e[36]!==r?(P=r("taskBoard.columnRules.searchSkills"),e[36]=r,e[37]=P):P=e[37],e[38]!==P?(R=o.jsx(oe,{placeholder:P,className:"h-9"}),e[38]=P,e[39]=R):R=e[39],x=re;const I=c?"max-h-none flex-1":"max-h-56";e[40]!==I?(b=D(I),e[40]=I,e[41]=b):b=e[41];let $;e[42]!==r?($=r("taskBoard.columnRules.noSkills"),e[42]=r,e[43]=$):$=e[43],e[44]!==$?(S=o.jsx(ce,{children:$}),e[44]=$,e[45]=S):S=e[45],f=de;let L;e[46]!==t||e[47]!==a?(L=g=>o.jsxs(me,{value:`${g.name} ${g.id}`,onSelect:()=>t([...a,g.id]),children:[o.jsx(ae,{size:14,className:"shrink-0 text-muted-foreground"}),o.jsxs("span",{className:"flex min-w-0 flex-col",children:[o.jsx("span",{className:"truncate text-sm",children:g.name}),g.description&&o.jsx("span",{className:"text-meta line-clamp-1",children:g.description})]})]},g.id),e[46]=t,e[47]=a,e[48]=L):L=e[48],k=w.map(L),e[2]=p.data,e[3]=c,e[4]=l,e[5]=j,e[6]=t,e[7]=r,e[8]=a,e[9]=f,e[10]=x,e[11]=m,e[12]=u,e[13]=k,e[14]=b,e[15]=S,e[16]=h,e[17]=R,e[18]=v}else f=e[9],x=e[10],m=e[11],u=e[12],k=e[13],b=e[14],S=e[15],h=e[16],R=e[17],v=e[18];let C;e[49]!==f||e[50]!==k?(C=o.jsx(f,{children:k}),e[49]=f,e[50]=k,e[51]=C):C=e[51];let N;e[52]!==x||e[53]!==C||e[54]!==b||e[55]!==S?(N=o.jsxs(x,{className:b,children:[S,C]}),e[52]=x,e[53]=C,e[54]=b,e[55]=S,e[56]=N):N=e[56];let T;e[57]!==m||e[58]!==N||e[59]!==h||e[60]!==R?(T=o.jsxs(m,{className:h,children:[R,N]}),e[57]=m,e[58]=N,e[59]=h,e[60]=R,e[61]=T):T=e[61];let y;e[62]!==l||e[63]!==j||e[64]!==r?(y=l.length>0&&o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-meta",children:r("taskBoard.columnRules.inheritedHint")}),o.jsx("div",{className:"flex flex-wrap gap-1.5",children:l.map(B=>o.jsx(K,{variant:"muted",children:j(B)},B))})]}),e[62]=l,e[63]=j,e[64]=r,e[65]=y):y=e[65];let A;return e[66]!==u||e[67]!==T||e[68]!==y||e[69]!==v?(A=o.jsxs("div",{className:v,children:[u,T,y]}),e[66]=u,e[67]=T,e[68]=y,e[69]=v,e[70]=A):A=e[70],A}export{Ye as C,Ee as S,Ve as a,Be as b,Ce as c,Ge as u};
@@ -1 +1 @@
1
- import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-CRbDzsEl.js";import{i as Y}from"./ChevronSelectorVertical-Dc4zDElk.js";import{C as Z,a as _,b as ee,e as se,c as te,f as le}from"./command-CJiwms5W.js";import{a as ae,P as oe,b as re}from"./popover-UZd_hI6l.js";function de(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:r,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=oe,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let c;e[4]!==R||e[5]!==$?(c=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=c):c=e[6];let i;e[7]!==w?(i=S("p-0",w),e[7]=w,e[8]=i):i=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let m;e[10]!==E||e[11]!==t?(m=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=m):m=e[12];let d;e[13]!==n||e[14]!==T||e[15]!==m?(d=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:m}),e[13]=n,e[14]=T,e[15]=m,e[16]=d):d=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==r||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==r||e[27]!==t||e[28]!==l?(a=o=>{const q=l===o.value;return s.jsx(ee,{value:o.label,onSelect:()=>{j(o.value===l?"":o.value),t(!1)},children:r?r(o,q):s.jsxs(s.Fragment,{children:[o.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},o.value)},e[25]=j,e[26]=r,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=r,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==d||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[d,u]}),e[35]=P,e[36]=d,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==i||e[40]!==x?(v=s.jsx(re,{className:i,style:y,children:x}),e[39]=i,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==c?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[c,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=c,e[47]=N):N=e[47],N}export{de as C};
1
+ import{c as Q,r as U,j as s,l as S,B as W,ah as X}from"./index-BnoCrGwV.js";import{i as Y}from"./ChevronSelectorVertical-KK06uLTv.js";import{C as Z,a as _,b as ee,e as se,c as te,f as le}from"./command-BSyD71wq.js";import{a as ae,P as oe,b as re}from"./popover-DeebArTG.js";function de(z){const e=Q.c(48),{options:C,value:l,onChange:j,placeholder:A,triggerClassName:F,contentClassName:w,width:G,renderTrigger:L,renderItem:r,emptyMessage:V,searchPlaceholder:k,filter:P,renderSearchAction:E,onSearchChange:n}=z,D=A===void 0?"Select...":A,H=G===void 0?"w-[200px]":G,O=V===void 0?"No results found.":V,T=k===void 0?"Search...":k;let g;e[0]!==l?(g=a=>a.value===l,e[0]=l,e[1]=g):g=e[1];const I=C.find(g),[B,J]=U.useState(!1);let b;e[2]!==n?(b=a=>{J(a),a||n?.("")},e[2]=n,e[3]=b):b=e[3];const t=b,M=oe,R=ae,K=!0,$=L?s.jsx("div",{className:S("cursor-pointer",F),children:L(I)}):s.jsxs(W,{variant:"outline",role:"combobox",className:S("justify-between",H,F),children:[I?I.label:D,s.jsx(Y,{className:"opacity-50"})]});let c;e[4]!==R||e[5]!==$?(c=s.jsx(R,{asChild:K,children:$}),e[4]=R,e[5]=$,e[6]=c):c=e[6];let i;e[7]!==w?(i=S("p-0",w),e[7]=w,e[8]=i):i=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y={width:"var(--radix-popover-trigger-width)"},e[9]=y):y=e[9];let m;e[10]!==E||e[11]!==t?(m=E?.(()=>t(!1)),e[10]=E,e[11]=t,e[12]=m):m=e[12];let d;e[13]!==n||e[14]!==T||e[15]!==m?(d=s.jsx(Z,{placeholder:T,className:"h-9",onValueChange:n,action:m}),e[13]=n,e[14]=T,e[15]=m,e[16]=d):d=e[16];let h;e[17]!==O?(h=s.jsx(_,{children:O}),e[17]=O,e[18]=h):h=e[18];let f;if(e[19]!==j||e[20]!==C||e[21]!==r||e[22]!==t||e[23]!==l){let a;e[25]!==j||e[26]!==r||e[27]!==t||e[28]!==l?(a=o=>{const q=l===o.value;return s.jsx(ee,{value:o.label,onSelect:()=>{j(o.value===l?"":o.value),t(!1)},children:r?r(o,q):s.jsxs(s.Fragment,{children:[o.label,s.jsx(X,{className:S("ml-auto",q?"opacity-100":"opacity-0")})]})},o.value)},e[25]=j,e[26]=r,e[27]=t,e[28]=l,e[29]=a):a=e[29],f=C.map(a),e[19]=j,e[20]=C,e[21]=r,e[22]=t,e[23]=l,e[24]=f}else f=e[24];let p;e[30]!==f?(p=s.jsx(se,{children:f}),e[30]=f,e[31]=p):p=e[31];let u;e[32]!==h||e[33]!==p?(u=s.jsxs(te,{children:[h,p]}),e[32]=h,e[33]=p,e[34]=u):u=e[34];let x;e[35]!==P||e[36]!==d||e[37]!==u?(x=s.jsxs(le,{filter:P,children:[d,u]}),e[35]=P,e[36]=d,e[37]=u,e[38]=x):x=e[38];let v;e[39]!==i||e[40]!==x?(v=s.jsx(re,{className:i,style:y,children:x}),e[39]=i,e[40]=x,e[41]=v):v=e[41];let N;return e[42]!==M||e[43]!==B||e[44]!==t||e[45]!==v||e[46]!==c?(N=s.jsxs(M,{open:B,onOpenChange:t,children:[c,v]}),e[42]=M,e[43]=B,e[44]=t,e[45]=v,e[46]=c,e[47]=N):N=e[47],N}export{de as C};
@@ -1 +1 @@
1
- import{c as v,l as h,j as r,aS as b,D as j,v as w,aK as y,s as C,q as z}from"./index-CRbDzsEl.js";import{_ as k}from"./index-4oHb6320.js";import{i as D}from"./SearchMd-Bg-9XsfQ.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within:border-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function q(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{R as C,q as a,H as b,V as c,L as d,B as e,$ as f,I as g,F as h};
1
+ import{c as v,l as h,j as r,aS as b,D as j,v as w,aK as y,s as C,q as z}from"./index-BnoCrGwV.js";import{_ as k}from"./index-DJa5VNJ9.js";import{i as D}from"./SearchMd--I1GEx-C.js";function $(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k,{"data-slot":"command",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function L(a){const e=v.c(28);let t,s,o,l,n,_,u;e[0]!==a?({title:_,description:u,children:t,className:s,filter:o,shouldFilter:n,...l}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n,e[6]=_,e[7]=u):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5],_=e[6],u=e[7]);const f=_===void 0?"Command Palette":_,x=u===void 0?"Search for a command to run...":u;let g;e[8]!==f?(g=r.jsx(w,{children:f}),e[8]=f,e[9]=g):g=e[9];let i;e[10]!==x?(i=r.jsx(y,{children:x}),e[10]=x,e[11]=i):i=e[11];let d;e[12]!==g||e[13]!==i?(d=r.jsxs(C,{className:"sr-only",children:[g,i]}),e[12]=g,e[13]=i,e[14]=d):d=e[14];let c;e[15]!==s?(c=h("overflow-hidden p-0",s),e[15]=s,e[16]=c):c=e[16];let m;e[17]!==t||e[18]!==o||e[19]!==n?(m=r.jsx($,{filter:o,shouldFilter:n,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg:not([class*='size-'])]:h-5 [&_[cmdk-item]_svg:not([class*='size-'])]:w-5",children:t}),e[17]=t,e[18]=o,e[19]=n,e[20]=m):m=e[20];let p;e[21]!==c||e[22]!==m?(p=r.jsx(z,{className:c,closeButtonClassName:"hidden",children:m}),e[21]=c,e[22]=m,e[23]=p):p=e[23];let N;return e[24]!==l||e[25]!==d||e[26]!==p?(N=r.jsxs(j,{...l,children:[d,p]}),e[24]=l,e[25]=d,e[26]=p,e[27]=N):N=e[27],N}function R(a){const e=v.c(23);let t,s,o,l,n;e[0]!==a?({className:s,size:l,variant:n,action:t,...o}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o,e[4]=l,e[5]=n):(t=e[1],s=e[2],o=e[3],l=e[4],n=e[5]);const _=l===void 0?"default":l,u=n===void 0?"underline":n,f=_==="sm"?"h-9":"h-10",x=u==="boxed",g=x?"rounded-xl border border-input bg-transparent focus-within:border-ring":"border-b";let i;e[6]!==f||e[7]!==g?(i=h("flex items-center gap-2 px-3",f,g),e[6]=f,e[7]=g,e[8]=i):i=e[8];let d;e[9]!==x?(d=!x&&r.jsx(D,{className:"size-4 shrink-0 text-muted-foreground"}),e[9]=x,e[10]=d):d=e[10];let c;e[11]!==s||e[12]!==f?(c=h("placeholder:text-muted-foreground flex w-full rounded-md bg-transparent text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",f,s),e[11]=s,e[12]=f,e[13]=c):c=e[13];let m;e[14]!==o||e[15]!==c?(m=r.jsx(k.Input,{"data-slot":"command-input",className:c,...o}),e[14]=o,e[15]=c,e[16]=m):m=e[16];let p;return e[17]!==t||e[18]!==i||e[19]!==d||e[20]!==m||e[21]!==u?(p=r.jsxs("div",{"data-slot":"command-input-wrapper","data-variant":u,className:i,children:[d,m,t]}),e[17]=t,e[18]=i,e[19]=d,e[20]=m,e[21]=u,e[22]=p):p=e[22],p}function V(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.List,{"data-slot":"command-list",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function q(a){const e=v.c(4);let t;e[0]!==a?({...t}=a,e[0]=a,e[1]=t):t=e[1];let s;return e[2]!==t?(s=r.jsx(k.Empty,{"data-slot":"command-empty",className:"text-muted-foreground px-4 py-4 text-center text-sm",...t}),e[2]=t,e[3]=s):s=e[3],s}function B(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Group,{"data-slot":"command-group",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}function F(a){const e=v.c(8);let t,s;e[0]!==a?({className:t,...s}=a,e[0]=a,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let o;e[3]!==t?(o=h("bg-border -mx-1 h-px",t),e[3]=t,e[4]=o):o=e[4];let l;return e[5]!==s||e[6]!==o?(l=r.jsx(k.Separator,{"data-slot":"command-separator",className:o,...s}),e[5]=s,e[6]=o,e[7]=l):l=e[7],l}const I=b("[&_svg:not([class*='text-'])]:text-muted-foreground relative flex min-h-8 cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{highlight:{selected:"data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground",hover:"w-full hover:bg-accent hover:text-accent-foreground"},size:{default:"",lg:"min-h-11 gap-3 rounded-lg px-2.5 py-2"}},defaultVariants:{highlight:"selected",size:"default"}});function H(a){const e=v.c(10);let t,s,o;e[0]!==a?({className:t,size:o,...s}=a,e[0]=a,e[1]=t,e[2]=s,e[3]=o):(t=e[1],s=e[2],o=e[3]);let l;e[4]!==t||e[5]!==o?(l=h(I({size:o}),t),e[4]=t,e[5]=o,e[6]=l):l=e[6];let n;return e[7]!==s||e[8]!==l?(n=r.jsx(k.Item,{"data-slot":"command-item",className:l,...s}),e[7]=s,e[8]=l,e[9]=n):n=e[9],n}export{R as C,q as a,H as b,V as c,L as d,B as e,$ as f,I as g,F as h};