decocms 4.293.2 → 4.294.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/client/assets/{AlertCircle-CD9LrpfS.js → AlertCircle-Bvyaz2Kj.js} +1 -1
  2. package/dist/client/assets/{AreaChart-BnvptEOi.js → AreaChart-BktBXh-n.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-B3G2yicp.js → ArrowLeft-DNSJEFTr.js} +1 -1
  4. package/dist/client/assets/{ArrowUp-CZYz7bTi.js → ArrowUp-MwWXr26Q.js} +1 -1
  5. package/dist/client/assets/{Check-Dlrnq12d.js → Check-CzGcU_18.js} +1 -1
  6. package/dist/client/assets/{CheckCircle-D_x_TnWr.js → CheckCircle-qvIgjR7C.js} +1 -1
  7. package/dist/client/assets/{ChevronDown-BI5tjO-E.js → ChevronDown-DnSLePrh.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-D1vELAp3.js → ChevronRight-JSjQetGj.js} +1 -1
  9. package/dist/client/assets/{ChevronSelectorVertical-BoKT9OF1.js → ChevronSelectorVertical-DRDRC9is.js} +1 -1
  10. package/dist/client/assets/{ChevronUp-DXmAB3XT.js → ChevronUp-DFDLyF6e.js} +1 -1
  11. package/dist/client/assets/{Copy01-DjgS2HXy.js → Copy01-CSghf1in.js} +1 -1
  12. package/dist/client/assets/{CreditCard01-C_BlW4SQ.js → CreditCard01-B6kY0NgK.js} +1 -1
  13. package/dist/client/assets/{DotsVertical-D26hKsV0.js → DotsVertical-0FsnqvY-.js} +1 -1
  14. package/dist/client/assets/{Download01-DFXE5FpC.js → Download01-D5Sj1RWJ.js} +1 -1
  15. package/dist/client/assets/{Eye-BL9Cl1_z.js → Eye-DkXPnw11.js} +1 -1
  16. package/dist/client/assets/{FilterLines-BAretQqt.js → FilterLines-BsrW2L96.js} +1 -1
  17. package/dist/client/assets/{Globe01-EaicUoi2.js → Globe01-B_IfqQPx.js} +1 -1
  18. package/dist/client/assets/{Globe04-BynYihIs.js → Globe04-DPtjyMGq.js} +1 -1
  19. package/dist/client/assets/{HardDrive-DI-BD_HJ.js → HardDrive-C7bA_N_q.js} +1 -1
  20. package/dist/client/assets/{Key01-BW1Rr_0E.js → Key01-DQfk0_yE.js} +1 -1
  21. package/dist/client/assets/{LinkExternal01-DSikt04U.js → LinkExternal01-B_ilbe8Z.js} +1 -1
  22. package/dist/client/assets/{LockUnlocked01-18p0T9eT.js → LockUnlocked01-jP0H0WgM.js} +1 -1
  23. package/dist/client/assets/{LogOut01-BKJ67u66.js → LogOut01-iTN2K_HM.js} +1 -1
  24. package/dist/client/assets/{Monitor01-BZQ0hY6j.js → Monitor01-CNZN0EeI.js} +1 -1
  25. package/dist/client/assets/{Palette-Bno2qVjY.js → Palette-DJFYXyZC.js} +1 -1
  26. package/dist/client/assets/{Play-C-YG9yrD.js → Play-DlSWUpz8.js} +1 -1
  27. package/dist/client/assets/{Plus-DdaQ4Jl-.js → Plus-ByjN5Z0Z.js} +1 -1
  28. package/dist/client/assets/{SearchLg-C--NWIKz.js → SearchLg-BbH2TeF5.js} +1 -1
  29. package/dist/client/assets/{SearchMd-B6MT6Bio.js → SearchMd-BuhbwC54.js} +1 -1
  30. package/dist/client/assets/{Settings02-Bgsm52IE.js → Settings02-CYzuwH_x.js} +1 -1
  31. package/dist/client/assets/{Share07-CWoqeiFa.js → Share07-CxggNnyF.js} +1 -1
  32. package/dist/client/assets/{Shield01-HD6_sCSy.js → Shield01-Ntkf4Ipf.js} +1 -1
  33. package/dist/client/assets/{Stars01-D_TS2si3.js → Stars01-ByVJtKiy.js} +1 -1
  34. package/dist/client/assets/{Stars02-C5DCeEvT.js → Stars02-FjaCs5mP.js} +1 -1
  35. package/dist/client/assets/{Sun-7xLgDnNq.js → Sun-BpRkzKF1.js} +1 -1
  36. package/dist/client/assets/{SwitchHorizontal01-7sawt_65.js → SwitchHorizontal01-CYGD-Yrj.js} +1 -1
  37. package/dist/client/assets/{Tool01-CholylEI.js → Tool01-k31lhfuq.js} +1 -1
  38. package/dist/client/assets/{Tool02-CQHN0kwi.js → Tool02-DHuul6tC.js} +1 -1
  39. package/dist/client/assets/{Trash01-WXazoj42.js → Trash01-BikQIH2r.js} +1 -1
  40. package/dist/client/assets/{TrendUp01-Cs8Uozm3.js → TrendUp01-BPsFCOJl.js} +1 -1
  41. package/dist/client/assets/{Upload01-B4nQDZ8y.js → Upload01-D1HyPi1v.js} +1 -1
  42. package/dist/client/assets/{User01-CliEfwvo.js → User01-Dh4UFXWh.js} +1 -1
  43. package/dist/client/assets/{UserSquare-5p_taTUv.js → UserSquare-DkrCVr7I.js} +1 -1
  44. package/dist/client/assets/{Users01-Covi6RoT.js → Users01-CSnXgP67.js} +1 -1
  45. package/dist/client/assets/{Users03-CvWTwj5Y.js → Users03-CbLD7m3H.js} +1 -1
  46. package/dist/client/assets/{XCircle-CfI3epA1.js → XCircle-BCS-7XaA.js} +1 -1
  47. package/dist/client/assets/{XClose-CF3G_jQw.js → XClose-eJE1lk55.js} +1 -1
  48. package/dist/client/assets/{YAxis-DtW1JYrI.js → YAxis-Dzv5TV5a.js} +1 -1
  49. package/dist/client/assets/{Zap-flZFj_ZW.js → Zap-Duxw5XKO.js} +1 -1
  50. package/dist/client/assets/{ZapSquare-DfBJqbmB.js → ZapSquare-r3ZmUA9D.js} +1 -1
  51. package/dist/client/assets/{access-gate-BfOH2ehr.js → access-gate-CJHzntYB.js} +1 -1
  52. package/dist/client/assets/{agent-icon-CoWSmZeI.js → agent-icon-4q5deIQd.js} +1 -1
  53. package/dist/client/assets/{agents-list-BC_9BnH9.js → agents-list-CCv6hSJm.js} +1 -1
  54. package/dist/client/assets/{ai-providers-DO3ALaUO.js → ai-providers-Ba-TEw3Q.js} +1 -1
  55. package/dist/client/assets/{alert-B9M-khBf.js → alert-CoKDFDAh.js} +1 -1
  56. package/dist/client/assets/{alert-dialog-xk0i6uOf.js → alert-dialog-COe9C8NL.js} +1 -1
  57. package/dist/client/assets/{api-keys-DvdSzOBt.js → api-keys-CYi42rya.js} +1 -1
  58. package/dist/client/assets/{app-editor-BFyPvDC0.js → app-editor-CAb18jNy.js} +1 -1
  59. package/dist/client/assets/{auth-Uy0w4hkL.js → auth-DFJQFcQU.js} +1 -1
  60. package/dist/client/assets/{auth-catchall-DN3O-XcI.js → auth-catchall-Ckiz2vh8.js} +1 -1
  61. package/dist/client/assets/{auth-entry-BA5zF7Od.js → auth-entry-DSphvAVn.js} +1 -1
  62. package/dist/client/assets/{auth-split-layout-CyzyX7hp.js → auth-split-layout-BAI5be01.js} +1 -1
  63. package/dist/client/assets/{authenticate-and-persist-oauth-DBPTryx5.js → authenticate-and-persist-oauth-BYrklfEZ.js} +1 -1
  64. package/dist/client/assets/{automation-list-row-C2XzpKdh.js → automation-list-row-BbyIMiZO.js} +1 -1
  65. package/dist/client/assets/{automation-runs--DeWLHLZ.js → automation-runs-DnRz_4nV.js} +1 -1
  66. package/dist/client/assets/{automations-C3DtmndL.js → automations-BUn0PLbS.js} +1 -1
  67. package/dist/client/assets/{avatar-_-D5iDIN.js → avatar-xQKMSfbV.js} +1 -1
  68. package/dist/client/assets/{badge-CDQQQbvb.js → badge-BUE8eKrv.js} +1 -1
  69. package/dist/client/assets/{block-document-Culeyoxj.js → block-document-o7SlfWjU.js} +1 -1
  70. package/dist/client/assets/{breadcrumb-NtLjhPhW.js → breadcrumb-CkIAyGzd.js} +1 -1
  71. package/dist/client/assets/{buckets-CvEUyiW2.js → buckets-DILhj7RE.js} +1 -1
  72. package/dist/client/assets/{bulk-category-panel-CfDcaS2D.js → bulk-category-panel-CEBvdjek.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-3Jz96HF2.js → capability-load-error-BisJ15x6.js} +1 -1
  74. package/dist/client/assets/{cards-CUbQM3D3.js → cards-B03QSnw9.js} +1 -1
  75. package/dist/client/assets/{category-editor-CC7R-OTf.js → category-editor-0FXHuKZy.js} +1 -1
  76. package/dist/client/assets/{chart-EPThyboW.js → chart-Bqv-9W0J.js} +1 -1
  77. package/dist/client/assets/{chat-context-DjotdD4C.js → chat-context-C5qSIECJ.js} +1 -1
  78. package/dist/client/assets/{checkbox-DVfc9X49.js → checkbox-CagDKatz.js} +1 -1
  79. package/dist/client/assets/{choose-editor-CILwoet7.js → choose-editor-BFxf0RLD.js} +1 -1
  80. package/dist/client/assets/{cli-auth-success-qAmg-U4B.js → cli-auth-success-C94YqgXR.js} +1 -1
  81. package/dist/client/assets/{collection-detail-C9F7AoJJ.js → collection-detail-BuV1hYLG.js} +1 -1
  82. package/dist/client/assets/{collection-display-button-ytZhkFQJ.js → collection-display-button-Cl7ahsU0.js} +1 -1
  83. package/dist/client/assets/{collection-search-vQNkhmmK.js → collection-search-cn_pA-cC.js} +1 -1
  84. package/dist/client/assets/{collection-table-wrapper-BR0_6TaP.js → collection-table-wrapper-Cy_Kl14E.js} +1 -1
  85. package/dist/client/assets/{collection-tabs-Co_XeSHS.js → collection-tabs-BxqOQqdF.js} +1 -1
  86. package/dist/client/assets/{command-B8F0uHex.js → command-N2b31krx.js} +1 -1
  87. package/dist/client/assets/{commerce-onboarding-BGQ2Hlgl.js → commerce-onboarding-LJIHA6Bu.js} +1 -1
  88. package/dist/client/assets/{config-BSqz_GMQ.js → config-CQPrXacX.js} +1 -1
  89. package/dist/client/assets/{connect-BZRm8ITd.js → connect-DBR4OAAE.js} +1 -1
  90. package/dist/client/assets/{connection-card-M6hmLGZq.js → connection-card-DEBIEgz8.js} +1 -1
  91. package/dist/client/assets/{connection-detail-CEhh3XeN.js → connection-detail-Qz0WkuM0.js} +1 -1
  92. package/dist/client/assets/{connection-form-helpers-daJ-4E-F.js → connection-form-helpers-B-SpMh33.js} +1 -1
  93. package/dist/client/assets/{connection-DB_75MPZ.js → connection-pCac2ZzE.js} +1 -1
  94. package/dist/client/assets/{connections-BfnIniTG.js → connections-BYI8uNKo.js} +1 -1
  95. package/dist/client/assets/{decopilot-sse-pool-VQZMAg5B.js → decopilot-sse-pool-BE8yQxwy.js} +1 -1
  96. package/dist/client/assets/{dialog-BQeVUlNg.js → dialog-o-lbJKf_.js} +1 -1
  97. package/dist/client/assets/{domain-settings-DntxO5hc.js → domain-settings-CL8KEiA1.js} +1 -1
  98. package/dist/client/assets/{drawer-Cdb1rsne.js → drawer-B43XZVqt.js} +1 -1
  99. package/dist/client/assets/{dropdown-menu-C0_Vnzhe.js → dropdown-menu-DUzmGIpY.js} +1 -1
  100. package/dist/client/assets/{empty-state-BJDHE2BS.js → empty-state-C7rGE_UX.js} +1 -1
  101. package/dist/client/assets/{extract-connection-data-DLWzenU1.js → extract-connection-data-BGJLP0ou.js} +1 -1
  102. package/dist/client/assets/{file-explorer-qG6ew9Fb.js → file-explorer-06vk6yxT.js} +1 -1
  103. package/dist/client/assets/{file-type-icon-ChXTeBJ-.js → file-type-icon-DD64j0xL.js} +1 -1
  104. package/dist/client/assets/{form-DcxePO8A.js → form-CTCJD_Hx.js} +1 -1
  105. package/dist/client/assets/{general-024875TR.js → general-CrGLry3H.js} +1 -1
  106. package/dist/client/assets/{github-repo-picker-m3Jw1ZFD.js → github-repo-picker-DVgeOsWJ.js} +1 -1
  107. package/dist/client/assets/{hooks-CJ16hHiH.js → hooks-D_iQI4O0.js} +1 -1
  108. package/dist/client/assets/{index-DFp8sE3x.js → index-7kjEJKM8.js} +1 -1
  109. package/dist/client/assets/{index-BVwOH7wh.js → index-BeIdc9Ic.js} +6 -6
  110. package/dist/client/assets/{index-RdcCdojW.js → index-BvphIPlv.js} +4 -4
  111. package/dist/client/assets/{index-BkWfJqUq.js → index-CF_G93Kw.js} +1 -1
  112. package/dist/client/assets/{index-Wqx51PrS.js → index-CdHhwh12.js} +1 -1
  113. package/dist/client/assets/{index-C7sanlxA.js → index-DNjAWM2N.js} +1 -1
  114. package/dist/client/assets/{index-DQIXNoxg.js → index-DWy4Wue5.js} +1 -1
  115. package/dist/client/assets/{index-DO_6i8ae.js → index-DcU6_ARK.js} +1 -1
  116. package/dist/client/assets/{index-CLdaL--4.js → index-MqYGWr-V.js} +1 -1
  117. package/dist/client/assets/{index-redirect-BWxMOkr5.js → index-redirect-CAD8Y1Nh.js} +1 -1
  118. package/dist/client/assets/{infra-billing-DtobgH9i.js → infra-billing-CIz-HF2i.js} +1 -1
  119. package/dist/client/assets/{input-Du_Y4DA2.js → input-D6JubeHO.js} +1 -1
  120. package/dist/client/assets/{integration-icon-BxAzHrAu.js → integration-icon-BJ2GfjLA.js} +1 -1
  121. package/dist/client/assets/{invite-member-dialog-CaxcKJI4.js → invite-member-dialog-Bw9AX5XF.js} +1 -1
  122. package/dist/client/assets/{label-DliIyCSr.js → label-DyLWoXFN.js} +1 -1
  123. package/dist/client/assets/{layout-DlaNSsr1.js → layout-BP4ximvL.js} +1 -1
  124. package/dist/client/assets/{login-Ckbo-Vz5.js → login-CFTXASci.js} +1 -1
  125. package/dist/client/assets/{mcp-oauth-WauR-bs4.js → mcp-oauth-ltvxvN83.js} +1 -1
  126. package/dist/client/assets/{members-a949EBr4.js → members-CtS0eQig.js} +1 -1
  127. package/dist/client/assets/{monaco-editor-IJ-39JCS.js → monaco-editor-BzQAHPgF.js} +1 -1
  128. package/dist/client/assets/{monitoring-stats-row-DaD2Jrr6.js → monitoring-stats-row-BopD55vf.js} +1 -1
  129. package/dist/client/assets/{multi-select-D5UXeLol.js → multi-select-gjON_HR_.js} +1 -1
  130. package/dist/client/assets/{oauth-callback-DxBWyg42.js → oauth-callback-DWfdyzme.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-ai-provider-CZNeWtz4.js → oauth-callback-ai-provider-BKFbwIll.js} +1 -1
  132. package/dist/client/assets/{onboarding-DRVSKjPk.js → onboarding-23_OoJlU.js} +1 -1
  133. package/dist/client/assets/{org-layout-ClcynPuV.js → org-layout-NY6hUTVk.js} +1 -1
  134. package/dist/client/assets/{organization-choice-I-YI4Hfp.js → organization-choice-BzpYZyIq.js} +1 -1
  135. package/dist/client/assets/{orgs-DInZUyCT.js → orgs-D6R2-8SP.js} +1 -1
  136. package/dist/client/assets/{page-seo-form-D3IStzwj.js → page-seo-form-YLCkZg3Q.js} +1 -1
  137. package/dist/client/assets/{popover-DT1H987m.js → popover-Cn19M15h.js} +1 -1
  138. package/dist/client/assets/{post-calendar-JST7iWOD.js → post-calendar-sRU6ASP1.js} +1 -1
  139. package/dist/client/assets/{post-editor-ByBw44q8.js → post-editor-jDc65MqA.js} +1 -1
  140. package/dist/client/assets/{primitives-Dnsli8EF.js → primitives-Cf7qfYfW.js} +1 -1
  141. package/dist/client/assets/{profile-BbFIqW5a.js → profile-CCXHtjg4.js} +1 -1
  142. package/dist/client/assets/{project-app-view-DbtCy7pb.js → project-app-view-vowPZpAZ.js} +1 -1
  143. package/dist/client/assets/{prompts-HkO-Vpz-.js → prompts-D7OEXSs0.js} +1 -1
  144. package/dist/client/assets/record-editor-DNc-Oymt.js +1 -0
  145. package/dist/client/assets/{redirect-editor-Ezo9udF_.js → redirect-editor-BgC1l-ii.js} +1 -1
  146. package/dist/client/assets/registry-CGs3x31q.js +2 -0
  147. package/dist/client/assets/{registry-layout-BfN3Djd5.js → registry-layout-ClpkcjT8.js} +1 -1
  148. package/dist/client/assets/{reports-BwEY90Df.js → reports-D0HbNhjG.js} +1 -1
  149. package/dist/client/assets/{require-capability-UslAqT6u.js → require-capability-DF8bTjyU.js} +1 -1
  150. package/dist/client/assets/{required-auth-layout-BO2dyb3Z.js → required-auth-layout-CpNSgXIB.js} +1 -1
  151. package/dist/client/assets/{reset-password-CZD7IJ_X.js → reset-password-CMj0SmFK.js} +1 -1
  152. package/dist/client/assets/{review-settings-rIJZr07q.js → review-settings-B2w_i9mz.js} +1 -1
  153. package/dist/client/assets/roles-Cb798QiS.js +1 -0
  154. package/dist/client/assets/{scroll-area-GoohikBy.js → scroll-area-Bcq1YylF.js} +1 -1
  155. package/dist/client/assets/{search-input-q7fsDfhe.js → search-input-D9oyZGdk.js} +1 -1
  156. package/dist/client/assets/{secrets-C9pq-vmx.js → secrets-DL2qRBPB.js} +1 -1
  157. package/dist/client/assets/{sections-editor-B42Y1DLA.js → sections-editor-CT4jT7Nt.js} +1 -1
  158. package/dist/client/assets/{select-BCD3yHoj.js → select-DO5mDlEe.js} +1 -1
  159. package/dist/client/assets/{select-model-CmeXughu.js → select-model-XW5hTDtm.js} +1 -1
  160. package/dist/client/assets/{self-tool-result-C_vauqtO.js → self-tool-result-DUSusImJ.js} +1 -1
  161. package/dist/client/assets/{seo-editor-DhDGxqLq.js → seo-editor-Ci0O3KUY.js} +1 -1
  162. package/dist/client/assets/{settings-layout-D7SbWIHX.js → settings-layout-dIO88wrS.js} +1 -1
  163. package/dist/client/assets/{shell-controls-uInUYrKF.js → shell-controls-CYR5niqE.js} +1 -1
  164. package/dist/client/assets/{shell-layout-Bs8Lt777.js → shell-layout-DyObrhUk.js} +1 -1
  165. package/dist/client/assets/{spinner-B6eC17SF.js → spinner-hH9XnA8n.js} +1 -1
  166. package/dist/client/assets/{sso-Bk4PrZ0u.js → sso-D6fjiyaU.js} +1 -1
  167. package/dist/client/assets/{store-CPkZj-0x.js → store-CQ0VV_Ql.js} +1 -1
  168. package/dist/client/assets/store-registry-BITZIFEF.js +2 -0
  169. package/dist/client/assets/{super-agent-icon-JVWXoXUu.js → super-agent-icon-C9INS80X.js} +1 -1
  170. package/dist/client/assets/{switch-C-FkHg7r.js → switch-B_X107f4.js} +1 -1
  171. package/dist/client/assets/{synced-repos-DFsmXJPP.js → synced-repos-JVGtEjIf.js} +1 -1
  172. package/dist/client/assets/{table-Do7ccGVi.js → table-CpwCU8Uq.js} +1 -1
  173. package/dist/client/assets/{tabs-poHQpH5O.js → tabs-DUNrVSeU.js} +1 -1
  174. package/dist/client/assets/{task-board-CQBNS0e1.js → task-board-pShhwz8O.js} +1 -1
  175. package/dist/client/assets/tasks-C11xDtin.js +1 -0
  176. package/dist/client/assets/{textarea-DkW_z2IU.js → textarea-CxTBRm8n.js} +1 -1
  177. package/dist/client/assets/{toggle-group-Dke2CTaB.js → toggle-group-DJJef25l.js} +1 -1
  178. package/dist/client/assets/{toolbar-DrpKuEOS.js → toolbar-B35mtx0K.js} +1 -1
  179. package/dist/client/assets/{track-_bb26qlp.js → track-Da6W74hL.js} +1 -1
  180. package/dist/client/assets/{types-D55csc5w.js → types-DKd1RoOu.js} +1 -1
  181. package/dist/client/assets/{use-ai-providers-B-OYAKkb.js → use-ai-providers-DUhPnVBj.js} +1 -1
  182. package/dist/client/assets/{use-api-keys-DgMbMjH3.js → use-api-keys-C4evvCqV.js} +1 -1
  183. package/dist/client/assets/{use-automations-CHyRAX5J.js → use-automations-XxWq7PCT.js} +1 -1
  184. package/dist/client/assets/{use-autosave-Y8_JQVtM.js → use-autosave-DOL2n-67.js} +1 -1
  185. package/dist/client/assets/{use-connection-CDBAVShn.js → use-connection-D-FaQLFU.js} +1 -1
  186. package/dist/client/assets/{use-copy-A2iDXIiC.js → use-copy-D0WDRRpO.js} +1 -1
  187. package/dist/client/assets/{use-create-virtual-mcp-RE3GTo0q.js → use-create-virtual-mcp-dfMLHq9k.js} +1 -1
  188. package/dist/client/assets/{use-debounced-autosave-BRpxCMxF.js → use-debounced-autosave-BPMb3HJB.js} +1 -1
  189. package/dist/client/assets/{use-debounced-value-zLcMcGu_.js → use-debounced-value-B1Rqo74w.js} +1 -1
  190. package/dist/client/assets/{use-decopilot-events-BWpzWgPA.js → use-decopilot-events-DP6owINC.js} +1 -1
  191. package/dist/client/assets/{use-delete-connection-EL_dI6O3.js → use-delete-connection-UHZFgFb2.js} +1 -1
  192. package/dist/client/assets/{use-deployment-admin-B39gtWeS.js → use-deployment-admin-DTzGFcdn.js} +1 -1
  193. package/dist/client/assets/{use-destination-route-R7oVWY5R.js → use-destination-route-DKoYkCsy.js} +1 -1
  194. package/dist/client/assets/{use-file-configs-Qm8xBC7Z.js → use-file-configs-J_EcO8h8.js} +1 -1
  195. package/dist/client/assets/{use-infinite-scroll-GqEVBMeV.js → use-infinite-scroll-CUw_Ivuj.js} +1 -1
  196. package/dist/client/assets/{use-join-requests-BVuIrKnA.js → use-join-requests-Bk3mX2ZH.js} +1 -1
  197. package/dist/client/assets/{use-mcp-auth-status-B-LZ1Wex.js → use-mcp-auth-status-BNwzaQrN.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-Bl7OJFcH.js → use-mcp-client-BwH4TDLn.js} +1 -1
  199. package/dist/client/assets/{use-mcp-tools-_tcIXZL0.js → use-mcp-tools-D3VfPRcP.js} +1 -1
  200. package/dist/client/assets/{use-members-_ByrBAvF.js → use-members-DlgRTc5D.js} +1 -1
  201. package/dist/client/assets/{use-navigate-to-agent-C1od-jNe.js → use-navigate-to-agent-C_Lcd8Df.js} +1 -1
  202. package/dist/client/assets/{use-org-auth-client-BamEWpk2.js → use-org-auth-client-B56Z49z7.js} +1 -1
  203. package/dist/client/assets/{use-org-repo-syncs-CG_xOEkn.js → use-org-repo-syncs-C2VfO1Ye.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-CnP_xN_9.js → use-org-sso-CQ19h3IZ.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-BFHuemUc.js → use-organization-roles-CCWOZD9o.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-CdhZq3TO.js → use-organization-settings-0BXaFqOt.js} +1 -1
  207. package/dist/client/assets/{use-panel-navigate-hX9xgEkF.js → use-panel-navigate-Bi1-MukR.js} +1 -1
  208. package/dist/client/assets/{use-registry-connections-Debcpo6W.js → use-registry-connections-BBSHOTrH.js} +1 -1
  209. package/dist/client/assets/{use-secrets-Du7VCMTf.js → use-secrets-BmX-LU55.js} +1 -1
  210. package/dist/client/assets/{use-section-preview-base-BoL1Z0zp.js → use-section-preview-base-CF53XGyQ.js} +1 -1
  211. package/dist/client/assets/{use-status-sounds-DNfv1_kv.js → use-status-sounds-1I3SzUNL.js} +1 -1
  212. package/dist/client/assets/{use-tags-BWfTkjku.js → use-tags-CSG6nBXw.js} +1 -1
  213. package/dist/client/assets/{use-view-mode-Bv98Xblu.js → use-view-mode--duMWzwB.js} +1 -1
  214. package/dist/client/assets/{use-virtual-mcp-BV3GNVOc.js → use-virtual-mcp-T3rF0m5R.js} +1 -1
  215. package/dist/client/assets/useInfiniteQuery-CGYbyqjl.js +1 -0
  216. package/dist/client/assets/useSuspenseInfiniteQuery-BksJPEIN.js +1 -0
  217. package/dist/client/assets/{users-CHSght6P.js → users-BJ7mky3H.js} +1 -1
  218. package/dist/client/assets/{variant-calendar-DwGEVcFc.js → variant-calendar-DQ8rpx29.js} +1 -1
  219. package/dist/client/assets/{view-mode-toggle-YRrKQ7HV.js → view-mode-toggle-Chk_9-6T.js} +1 -1
  220. package/dist/client/index.html +1 -1
  221. package/dist/server/cli.js +590 -583
  222. package/dist/server/migrate.js +115 -108
  223. package/dist/server/server.js +377 -377
  224. package/package.json +1 -1
  225. package/dist/client/assets/record-editor-CWOvxS63.js +0 -1
  226. package/dist/client/assets/registry-Dr4KVLHz.js +0 -2
  227. package/dist/client/assets/roles-CEDnNlmJ.js +0 -1
  228. package/dist/client/assets/store-registry-BckmJcRr.js +0 -2
  229. package/dist/client/assets/tasks-Du4jU6Vj.js +0 -1
  230. package/dist/client/assets/useInfiniteQuery-D19sUk6p.js +0 -1
  231. package/dist/client/assets/useSuspenseInfiniteQuery-DdW-dVOd.js +0 -1
@@ -1 +1 @@
1
- import{c as y,b as D,j as d,B as E,r as B,I as z,u as k,f as _,H as $,d as M,a4 as F,bM as L,dF as C,dG as K,dH as G,dI as J}from"./index-RdcCdojW.js";import{b as Y,h as Q,a as W,d as X,e as q}from"./dialog-BQeVUlNg.js";import{i as Z}from"./Check-Dlrnq12d.js";import{a as ee}from"./Copy01-DjgS2HXy.js";import{n as te}from"./Download01-DFXE5FpC.js";import{u as O,D as b}from"./use-destination-route-R7oVWY5R.js";import{a as U}from"./constants-dLUUoWH7.js";const ne="https://github.com/decocms/studio/releases";function ae(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function Le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function oe(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function se(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function V(e){const t=y.c(12),{copiedLabel:n}=e,a=D(),[r,o]=B.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=ae(),t[0]=l):l=t[0];const s=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:s}),t[1]=c):c=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{se(navigator.clipboard,s).then(p=>{p&&(o(!0),setTimeout(()=>o(!1),2e3))})},t[2]=i):i=t[2];let u;t[3]!==r?(u=r?d.jsx(Z,{size:16}):d.jsx(ee,{size:16}),t[3]=r,t[4]=u):u=t[4];let f;t[5]!==r||t[6]!==n||t[7]!==a?(f=r?n:a("downloadApp.copyLabel"),t[5]=r,t[6]=n,t[7]=a,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=d.jsxs("div",{className:"flex flex-col gap-3",children:[c,d.jsxs(E,{type:"button",className:"w-full gap-2",onClick:i,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function le(){const e=y.c(18),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.terminalHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;return e[15]!==a||e[16]!==c?(i=d.jsxs(d.Fragment,{children:[a,c]}),e[15]=a,e[16]=c,e[17]=i):i=e[17],i}function ce(){const e=y.c(42),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;e[15]!==t?(i=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=i):i=e[16];let u;e[17]!==i?(u=d.jsx("p",{children:i}),e[17]=i,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.293.2"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(te,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let x;e[23]!==p?(x=d.jsx(E,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:d.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=x):x=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let h;e[27]!==v?(h=d.jsx("p",{children:v}),e[27]=v,e[28]=h):h=e[28];let S;e[29]!==t?(S=t("downloadApp.allReleases"),e[29]=t,e[30]=S):S=e[30];let g;e[31]!==S?(g=d.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:S}),e[31]=S,e[32]=g):g=e[32];let I;e[33]!==x||e[34]!==h||e[35]!==g||e[36]!==u?(I=d.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,x,h,g]}),e[33]=x,e[34]=h,e[35]=g,e[36]=u,e[37]=I):I=e[37];let j;return e[38]!==a||e[39]!==I||e[40]!==c?(j=d.jsxs(d.Fragment,{children:[a,c,I]}),e[38]=a,e[39]=I,e[40]=c,e[41]=j):j=e[41],j}function Re(e){const t=y.c(19),{open:n,onOpenChange:a}=e,r=D();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=oe(),t[0]=o):o=t[0];const l=o;let s;t[1]!==r?(s=r("downloadApp.title"),t[1]=r,t[2]=s):s=t[2];let c;t[3]!==s?(c=d.jsx(Y,{children:s}),t[3]=s,t[4]=c):c=t[4];let i;t[5]!==r?(i=r(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=r,t[6]=i):i=t[6];let u;t[7]!==i?(u=d.jsx(Q,{children:i}),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=d.jsxs(W,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?d.jsx(ce,{}):d.jsx(le,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=d.jsxs(X,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let x;return t[15]!==a||t[16]!==n||t[17]!==p?(x=d.jsx(q,{open:n,onOpenChange:a,children:p}),t[15]=a,t[16]=n,t[17]=p,t[18]=x):x=t[18],x}const ie=1e4,Ee="true",P=2;function N(e,t){return z.chatAutosend(e,t)}function de(e){return e==="pending"||e==="sending"}function ue(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:P:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!de(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>P?null:{...t,attempt:r}}function $e(e,t,n,a,r=Date.now()){const o={message:a,createdAt:r,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(o)),o}function fe(e,t,n){const a=N(t,n),r=ue(e.getItem(a));return r||(e.removeItem(a),null)}function Me(e,t,n,a=Date.now()){const r=N(t,n),o=fe(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=P)return e.removeItem(r),null;const l=o.retryAt??o.createdAt;if(a-l>=ie)return e.removeItem(r),null;const s={...o,status:"sending",attempt:o.attempt+1};return e.setItem(r,JSON.stringify(s)),{message:s.message,createdAt:s.createdAt,attempt:s.attempt}}function Ce(e,t,n){e.removeItem(N(t,n))}const pe="/shell/$org/org-shell/agent-shell";function me(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function he(e){return e.taskIdParam??e.threadSearch??null}function Oe(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;return e[2]!==n.taskId||e[3]!==r.thread?(o=he({taskIdParam:n.taskId,threadSearch:r.thread}),e[2]=n.taskId,e[3]=r.thread,e[4]=o):o=e[4],o}function ge(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function H(){const e=y.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]!==n.panel||e[2]!==n.project?(a=L({project:n.project,panel:n.panel}),e[1]=n.panel,e[2]=n.project,e[3]=a):a=e[3],a}function xe(){return H().project}function je(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],_(t).taskId!==void 0}function Ie(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),a=xe(),r=je();let o;return e[1]!==r||e[2]!==a||e[3]!==n.virtualmcpid?(o=ge({projectParam:a,virtualMcpIdSearch:n.virtualmcpid,legacyRoute:r}),e[1]=r,e[2]=a,e[3]=n.virtualmcpid,e[4]=o):o=e[4],o}function Ue(){const e=y.c(3),{org:t}=$(),n=Ie();let a;return e[0]!==t||e[1]!==n?(a=n??U(t.id).id,e[0]=t,e[1]=n,e[2]=a):a=e[2],a}function Se(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function Ve(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ve(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function ye(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a={from:pe,shouldThrow:!1},e[1]=a):a=e[1],!!F(a)&&n.taskId===void 0}function He(){const e=y.c(12),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n),r=ye(),{org:o}=$(),l=a.org??"",{project:s,panel:c}=H(),i=s!==void 0,u=O()===b.agents;let f;e[1]!==o.id?(f=U(o.id),e[1]=o.id,e[2]=f):f=e[2];const m=f.id;let p;return e[3]!==c||e[4]!==s||e[5]!==m||e[6]!==t||e[7]!==u||e[8]!==l||e[9]!==i||e[10]!==r?(p=(x,v,h)=>{const S=me({threadInSearch:r,orgSlug:l,threadId:x}),g=h?.replace??!1;if(S.to==="/$org/$taskId")return t({to:S.to,params:S.params,search:v,replace:g});const I=ve({currentProject:s,targetVirtualMcpId:h?.virtualMcpId,decopilotId:m}),j=h?.view&&h.view.tabId!==void 0?C(h.view.tabId):h?.view?{panel:void 0,payload:K()}:null,T=I.kind==="relocate"&&!u,w=A=>Se({prev:T?{sidepanel:A.sidepanel}:A,changes:{...v(A),...j?.payload??{}},threadId:x});return I.kind==="relocate"?t({to:b.agents,params:{org:l,project:I.project,panel:j?j.panel:c},search:w,replace:g}):t({to:".",params:A=>{const R=i?{...A,project:I.project}:A;return j?{...R,panel:j.panel}:R},search:w,replace:g})},e[3]=c,e[4]=s,e[5]=m,e[6]=t,e[7]=u,e[8]=l,e[9]=i,e[10]=r,e[11]=p):p=e[11],p}const Ae={board:b.tasks,files:b.library,reports:b.reports,overview:b.home};function Be(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;if(e[2]!==n.panel||e[3]!==n.project||e[4]!==r){const{panel:l}=L({project:n.project,panel:n.panel});o=G(l,r),e[2]=n.panel,e[3]=n.project,e[4]=r,e[5]=o}else o=e[5];return o}function ze(){const e=y.c(17),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n);let r;e[1]!==a.panel||e[2]!==a.project?(r=L({project:a.project,panel:a.panel}),e[1]=a.panel,e[2]=a.project,e[3]=r):r=e[3];const{project:o}=r,l=a.org??"",s=O()===b.agents,c=a.taskId;let i;e[4]!==c?(i=(h,S,g)=>I=>{const j=S?{...I}:{thread:I.thread,sidepanel:I.sidepanel};return c&&(j.thread=c),{...g?.search?g.search(j):j,...h,mainpanel:void 0}},e[4]=c,e[5]=i):i=e[5];const u=i;let f;e[6]!==o||e[7]!==t||e[8]!==u||e[9]!==s||e[10]!==l?(f=(h,S)=>{const{panel:g,payload:I}=C(h),j=S?.replace??!0,T=!!g&&J(g),w=u(I,s&&!T,S);if(g&&T){const A=Ae[g];if(A===b.tasks){t({to:A,params:{org:l,taskKey:void 0},search:w,replace:j});return}t({to:A,params:{org:l},search:w,replace:j});return}t({to:b.agents,params:{org:l,project:S?.project??o,panel:g},search:w,replace:j})},e[6]=o,e[7]=t,e[8]=u,e[9]=s,e[10]=l,e[11]=f):f=e[11];const m=f;let p;e[12]!==t?(p=h=>t({to:".",search:be,replace:h?.replace??!0}),e[12]=t,e[13]=p):p=e[13];const x=p;let v;return e[14]!==x||e[15]!==m?(v={openPanel:m,closePanel:x},e[14]=x,e[15]=m,e[16]=v):v=e[16],v}function be(e){return{...e,mainpanel:!1}}export{Ee as A,Re as D,oe as a,Oe as b,ze as c,He as d,Be as e,Ie as f,Ue as g,Me as h,Le as i,Ce as j,Ve as r,xe as u,$e as w};
1
+ import{c as y,b as D,j as d,B as E,r as B,I as z,u as k,f as _,H as $,d as M,a4 as F,bM as L,dF as C,dG as K,dH as G,dI as J}from"./index-BvphIPlv.js";import{b as Y,h as Q,a as W,d as X,e as q}from"./dialog-o-lbJKf_.js";import{i as Z}from"./Check-CzGcU_18.js";import{a as ee}from"./Copy01-CSghf1in.js";import{n as te}from"./Download01-D5Sj1RWJ.js";import{u as O,D as b}from"./use-destination-route-DKoYkCsy.js";import{a as U}from"./constants-dLUUoWH7.js";const ne="https://github.com/decocms/studio/releases";function ae(){return`curl -fsSL ${window.location.origin}/install.sh | sh`}function re(e){return`https://github.com/decocms/studio/releases/download/native-v${e}/deco-${e}-linux-x86_64.AppImage`}function Le(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)&&!("ontouchend"in document)}function oe(){return typeof navigator<"u"&&/Linux/.test(navigator.platform)&&!/Android/.test(navigator.userAgent)&&!("ontouchend"in document)}async function se(e,t){if(!e)return!1;try{return await e.writeText(t),!0}catch{return!1}}function V(e){const t=y.c(12),{copiedLabel:n}=e,a=D(),[r,o]=B.useState(!1);let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=ae(),t[0]=l):l=t[0];const s=l;let c;t[1]===Symbol.for("react.memo_cache_sentinel")?(c=d.jsx("code",{className:"block rounded-md border bg-muted px-3 py-2.5 font-mono text-xs leading-relaxed break-all whitespace-pre-wrap select-all",children:s}),t[1]=c):c=t[1];let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{se(navigator.clipboard,s).then(p=>{p&&(o(!0),setTimeout(()=>o(!1),2e3))})},t[2]=i):i=t[2];let u;t[3]!==r?(u=r?d.jsx(Z,{size:16}):d.jsx(ee,{size:16}),t[3]=r,t[4]=u):u=t[4];let f;t[5]!==r||t[6]!==n||t[7]!==a?(f=r?n:a("downloadApp.copyLabel"),t[5]=r,t[6]=n,t[7]=a,t[8]=f):f=t[8];let m;return t[9]!==u||t[10]!==f?(m=d.jsxs("div",{className:"flex flex-col gap-3",children:[c,d.jsxs(E,{type:"button",className:"w-full gap-2",onClick:i,children:[u,f]})]}),t[9]=u,t[10]=f,t[11]=m):m=t[11],m}function le(){const e=y.c(18),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabel"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.terminalHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.appleSiliconNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;return e[15]!==a||e[16]!==c?(i=d.jsxs(d.Fragment,{children:[a,c]}),e[15]=a,e[16]=c,e[17]=i):i=e[17],i}function ce(){const e=y.c(42),t=D();let n;e[0]!==t?(n=t("downloadApp.copiedLabelLinux"),e[0]=t,e[1]=n):n=e[1];let a;e[2]!==n?(a=d.jsx(V,{copiedLabel:n}),e[2]=n,e[3]=a):a=e[3];let r;e[4]!==t?(r=t("downloadApp.linuxInstallerHint"),e[4]=t,e[5]=r):r=e[5];let o;e[6]!==r?(o=d.jsx("p",{children:r}),e[6]=r,e[7]=o):o=e[7];let l;e[8]!==t?(l=t("downloadApp.linuxArchNote"),e[8]=t,e[9]=l):l=e[9];let s;e[10]!==l?(s=d.jsx("p",{children:l}),e[10]=l,e[11]=s):s=e[11];let c;e[12]!==o||e[13]!==s?(c=d.jsxs("div",{className:"flex flex-col gap-1 text-xs text-muted-foreground",children:[o,s]}),e[12]=o,e[13]=s,e[14]=c):c=e[14];let i;e[15]!==t?(i=t("downloadApp.linuxDirectDownloadHint"),e[15]=t,e[16]=i):i=e[16];let u;e[17]!==i?(u=d.jsx("p",{children:i}),e[17]=i,e[18]=u):u=e[18];let f;e[19]===Symbol.for("react.memo_cache_sentinel")?(f=re("4.294.0"),e[19]=f):f=e[19];let m;e[20]===Symbol.for("react.memo_cache_sentinel")?(m=d.jsx(te,{size:14}),e[20]=m):m=e[20];let p;e[21]!==t?(p=t("downloadApp.downloadAppImage"),e[21]=t,e[22]=p):p=e[22];let x;e[23]!==p?(x=d.jsx(E,{asChild:!0,variant:"outline",size:"sm",className:"gap-2",children:d.jsxs("a",{href:f,rel:"noreferrer",children:[m,p]})}),e[23]=p,e[24]=x):x=e[24];let v;e[25]!==t?(v=t("downloadApp.linuxChmodHint"),e[25]=t,e[26]=v):v=e[26];let h;e[27]!==v?(h=d.jsx("p",{children:v}),e[27]=v,e[28]=h):h=e[28];let S;e[29]!==t?(S=t("downloadApp.allReleases"),e[29]=t,e[30]=S):S=e[30];let g;e[31]!==S?(g=d.jsx("a",{href:ne,target:"_blank",rel:"noreferrer",className:"underline-offset-2 hover:text-foreground hover:underline",children:S}),e[31]=S,e[32]=g):g=e[32];let I;e[33]!==x||e[34]!==h||e[35]!==g||e[36]!==u?(I=d.jsxs("div",{className:"flex flex-col items-start gap-2 border-t pt-4 text-xs text-muted-foreground",children:[u,x,h,g]}),e[33]=x,e[34]=h,e[35]=g,e[36]=u,e[37]=I):I=e[37];let j;return e[38]!==a||e[39]!==I||e[40]!==c?(j=d.jsxs(d.Fragment,{children:[a,c,I]}),e[38]=a,e[39]=I,e[40]=c,e[41]=j):j=e[41],j}function Re(e){const t=y.c(19),{open:n,onOpenChange:a}=e,r=D();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=oe(),t[0]=o):o=t[0];const l=o;let s;t[1]!==r?(s=r("downloadApp.title"),t[1]=r,t[2]=s):s=t[2];let c;t[3]!==s?(c=d.jsx(Y,{children:s}),t[3]=s,t[4]=c):c=t[4];let i;t[5]!==r?(i=r(l?"downloadApp.linuxDescription":"downloadApp.description"),t[5]=r,t[6]=i):i=t[6];let u;t[7]!==i?(u=d.jsx(Q,{children:i}),t[7]=i,t[8]=u):u=t[8];let f;t[9]!==c||t[10]!==u?(f=d.jsxs(W,{children:[c,u]}),t[9]=c,t[10]=u,t[11]=f):f=t[11];let m;t[12]===Symbol.for("react.memo_cache_sentinel")?(m=l?d.jsx(ce,{}):d.jsx(le,{}),t[12]=m):m=t[12];let p;t[13]!==f?(p=d.jsxs(X,{className:"sm:max-w-md",children:[f,m]}),t[13]=f,t[14]=p):p=t[14];let x;return t[15]!==a||t[16]!==n||t[17]!==p?(x=d.jsx(q,{open:n,onOpenChange:a,children:p}),t[15]=a,t[16]=n,t[17]=p,t[18]=x):x=t[18],x}const ie=1e4,Ee="true",P=2;function N(e,t){return z.chatAutosend(e,t)}function de(e){return e==="pending"||e==="sending"}function ue(e){if(!e)return null;let t;try{t=JSON.parse(e)}catch{return null}if(!t||typeof t!="object")return null;const n=t;let a=0;n.status==="sending"?a=n.retryAt===void 0?1:P:n.retryAt!==void 0&&(a=1);const r=n.attempt===void 0?a:n.attempt;return typeof n.createdAt!="number"||typeof n.message!="object"||!de(n.status)||n.retryAt!==void 0&&typeof n.retryAt!="number"||typeof r!="number"||!Number.isInteger(r)||r<0||r>P?null:{...t,attempt:r}}function $e(e,t,n,a,r=Date.now()){const o={message:a,createdAt:r,status:"pending",attempt:0};return e.setItem(N(t,n),JSON.stringify(o)),o}function fe(e,t,n){const a=N(t,n),r=ue(e.getItem(a));return r||(e.removeItem(a),null)}function Me(e,t,n,a=Date.now()){const r=N(t,n),o=fe(e,t,n);if(!o||o.status!=="pending")return null;if(o.attempt>=P)return e.removeItem(r),null;const l=o.retryAt??o.createdAt;if(a-l>=ie)return e.removeItem(r),null;const s={...o,status:"sending",attempt:o.attempt+1};return e.setItem(r,JSON.stringify(s)),{message:s.message,createdAt:s.createdAt,attempt:s.attempt}}function Ce(e,t,n){e.removeItem(N(t,n))}const pe="/shell/$org/org-shell/agent-shell";function me(e){return e.threadInSearch||!e.threadId?{to:"."}:{to:"/$org/$taskId",params:{org:e.orgSlug,taskId:e.threadId}}}function he(e){return e.taskIdParam??e.threadSearch??null}function Oe(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;return e[2]!==n.taskId||e[3]!==r.thread?(o=he({taskIdParam:n.taskId,threadSearch:r.thread}),e[2]=n.taskId,e[3]=r.thread,e[4]=o):o=e[4],o}function ge(e){return e.projectParam?e.projectParam:e.legacyRoute?e.virtualMcpIdSearch:void 0}function H(){const e=y.c(4);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]!==n.panel||e[2]!==n.project?(a=L({project:n.project,panel:n.panel}),e[1]=n.panel,e[2]=n.project,e[3]=a):a=e[3],a}function xe(){return H().project}function je(){const e=y.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0],_(t).taskId!==void 0}function Ie(){const e=y.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=k(t),a=xe(),r=je();let o;return e[1]!==r||e[2]!==a||e[3]!==n.virtualmcpid?(o=ge({projectParam:a,virtualMcpIdSearch:n.virtualmcpid,legacyRoute:r}),e[1]=r,e[2]=a,e[3]=n.virtualmcpid,e[4]=o):o=e[4],o}function Ue(){const e=y.c(3),{org:t}=$(),n=Ie();let a;return e[0]!==t||e[1]!==n?(a=n??U(t.id).id,e[0]=t,e[1]=n,e[2]=a):a=e[2],a}function Se(e){const t={...e.prev,...e.changes,thread:e.threadId};return delete t.virtualmcpid,t}function Ve(e){return e.routeAgentId??e.threadVirtualMcpId??null}function ve(e){if(e.targetVirtualMcpId===void 0)return{kind:"stay",project:e.currentProject};const t=e.targetVirtualMcpId===e.decopilotId?void 0:e.targetVirtualMcpId;return t!==void 0&&e.currentProject===void 0?{kind:"relocate",project:t}:{kind:"stay",project:t}}function ye(){const e=y.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;return e[1]===Symbol.for("react.memo_cache_sentinel")?(a={from:pe,shouldThrow:!1},e[1]=a):a=e[1],!!F(a)&&n.taskId===void 0}function He(){const e=y.c(12),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n),r=ye(),{org:o}=$(),l=a.org??"",{project:s,panel:c}=H(),i=s!==void 0,u=O()===b.agents;let f;e[1]!==o.id?(f=U(o.id),e[1]=o.id,e[2]=f):f=e[2];const m=f.id;let p;return e[3]!==c||e[4]!==s||e[5]!==m||e[6]!==t||e[7]!==u||e[8]!==l||e[9]!==i||e[10]!==r?(p=(x,v,h)=>{const S=me({threadInSearch:r,orgSlug:l,threadId:x}),g=h?.replace??!1;if(S.to==="/$org/$taskId")return t({to:S.to,params:S.params,search:v,replace:g});const I=ve({currentProject:s,targetVirtualMcpId:h?.virtualMcpId,decopilotId:m}),j=h?.view&&h.view.tabId!==void 0?C(h.view.tabId):h?.view?{panel:void 0,payload:K()}:null,T=I.kind==="relocate"&&!u,w=A=>Se({prev:T?{sidepanel:A.sidepanel}:A,changes:{...v(A),...j?.payload??{}},threadId:x});return I.kind==="relocate"?t({to:b.agents,params:{org:l,project:I.project,panel:j?j.panel:c},search:w,replace:g}):t({to:".",params:A=>{const R=i?{...A,project:I.project}:A;return j?{...R,panel:j.panel}:R},search:w,replace:g})},e[3]=c,e[4]=s,e[5]=m,e[6]=t,e[7]=u,e[8]=l,e[9]=i,e[10]=r,e[11]=p):p=e[11],p}const Ae={board:b.tasks,files:b.library,reports:b.reports,overview:b.home};function Be(){const e=y.c(6);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=_(t);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[1]=a):a=e[1];const r=k(a);let o;if(e[2]!==n.panel||e[3]!==n.project||e[4]!==r){const{panel:l}=L({project:n.project,panel:n.panel});o=G(l,r),e[2]=n.panel,e[3]=n.project,e[4]=r,e[5]=o}else o=e[5];return o}function ze(){const e=y.c(17),t=M();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const a=_(n);let r;e[1]!==a.panel||e[2]!==a.project?(r=L({project:a.project,panel:a.panel}),e[1]=a.panel,e[2]=a.project,e[3]=r):r=e[3];const{project:o}=r,l=a.org??"",s=O()===b.agents,c=a.taskId;let i;e[4]!==c?(i=(h,S,g)=>I=>{const j=S?{...I}:{thread:I.thread,sidepanel:I.sidepanel};return c&&(j.thread=c),{...g?.search?g.search(j):j,...h,mainpanel:void 0}},e[4]=c,e[5]=i):i=e[5];const u=i;let f;e[6]!==o||e[7]!==t||e[8]!==u||e[9]!==s||e[10]!==l?(f=(h,S)=>{const{panel:g,payload:I}=C(h),j=S?.replace??!0,T=!!g&&J(g),w=u(I,s&&!T,S);if(g&&T){const A=Ae[g];if(A===b.tasks){t({to:A,params:{org:l,taskKey:void 0},search:w,replace:j});return}t({to:A,params:{org:l},search:w,replace:j});return}t({to:b.agents,params:{org:l,project:S?.project??o,panel:g},search:w,replace:j})},e[6]=o,e[7]=t,e[8]=u,e[9]=s,e[10]=l,e[11]=f):f=e[11];const m=f;let p;e[12]!==t?(p=h=>t({to:".",search:be,replace:h?.replace??!0}),e[12]=t,e[13]=p):p=e[13];const x=p;let v;return e[14]!==x||e[15]!==m?(v={openPanel:m,closePanel:x},e[14]=x,e[15]=m,e[16]=v):v=e[16],v}function be(e){return{...e,mainpanel:!1}}export{Ee as A,Re as D,oe as a,Oe as b,ze as c,He as d,Be as e,Ie as f,Ue as g,Me as h,Le as i,Ce as j,Ve as r,xe as u,$e as w};
@@ -1 +1 @@
1
- import{c as C,H as R}from"./index-RdcCdojW.js";import{u as p}from"./use-connection-CDBAVShn.js";import{W as a}from"./constants-dLUUoWH7.js";import{k as y}from"./use-organization-settings-CdhZq3TO.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
1
+ import{c as C,H as R}from"./index-BvphIPlv.js";import{u as p}from"./use-connection-D-FaQLFU.js";import{W as a}from"./constants-dLUUoWH7.js";import{k as y}from"./use-organization-settings-0BXaFqOt.js";function M(){const e=C.c(19),{org:i}=R(),o=y();let l;e[0]!==i.id?(l=a.REGISTRY(i.id),e[0]=i.id,e[1]=l):l=e[1];const d=l;let f;e[2]!==i.id?(f=a.COMMUNITY_REGISTRY(i.id),e[2]=i.id,e[3]=f):f=e[3];const g=f;let r;e[4]!==g||e[5]!==d?(r=[d,g],e[4]=g,e[5]=d,e[6]=r):r=e[6];let t;if(e[7]!==o||e[8]!==r){if(t=new Set(r),o?.registries){let s;e[10]!==o.registries?(s=Object.keys(o.registries),e[10]=o.registries,e[11]=s):s=e[11];for(const u of s)t.add(u)}e[7]=o,e[8]=r,e[9]=t}else t=e[9];const m=p();let n;e[12]!==m?(n=m??[],e[12]=m,e[13]=n):n=e[13];let c;if(e[14]!==t||e[15]!==n){let s;e[17]!==t?(s=u=>t.has(u.id),e[17]=t,e[18]=s):s=e[18],c=n.filter(s),e[14]=t,e[15]=n,e[16]=c}else c=e[16];return c}export{M as u};
@@ -1 +1 @@
1
- import{c as o,H as u,ac as r,K as l,z as d,p as f,e as S}from"./index-RdcCdojW.js";function C(){const e=o.c(7),{org:a}=u(),c=r();let i;e[0]!==a.id?(i=l.secrets(a.id),e[0]=a.id,e[1]=i):i=e[1];let t;e[2]!==c?(t=async()=>await c.call("SECRET_LIST",{}),e[2]=c,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=o.c(8),{org:a}=u(),c=r(),i=f();let t;e[0]!==c?(t=async y=>await c.call("SECRET_CREATE",{...y}),e[0]=c,e[1]=t):t=e[1];let s;e[2]!==a||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(a.id)})},e[2]=a,e[3]=i,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
1
+ import{c as o,H as u,ac as r,K as l,z as d,p as f,e as S}from"./index-BvphIPlv.js";function C(){const e=o.c(7),{org:a}=u(),c=r();let i;e[0]!==a.id?(i=l.secrets(a.id),e[0]=a.id,e[1]=i):i=e[1];let t;e[2]!==c?(t=async()=>await c.call("SECRET_LIST",{}),e[2]=c,e[3]=t):t=e[3];let s;e[4]!==i||e[5]!==t?(s={queryKey:i,staleTime:6e4,queryFn:t},e[4]=i,e[5]=t,e[6]=s):s=e[6];const{data:n}=d(s);return n.secrets}function m(){const e=o.c(8),{org:a}=u(),c=r(),i=f();let t;e[0]!==c?(t=async y=>await c.call("SECRET_CREATE",{...y}),e[0]=c,e[1]=t):t=e[1];let s;e[2]!==a||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:l.secrets(a.id)})},e[2]=a,e[3]=i,e[4]=s):s=e[4];let n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],S(n)}export{m as a,C as u};
@@ -1 +1 @@
1
- import{c as D,b as J,r as w,j as s,n as K}from"./index-RdcCdojW.js";import{ag as q}from"./agent-icon-CoWSmZeI.js";import{i as Y}from"./SearchMd-B6MT6Bio.js";import{e as Z,d as ee,b as te,a as se}from"./dialog-BQeVUlNg.js";import{I as re}from"./input-Du_Y4DA2.js";import{L as le,M as oe,N as ie,O as Q,P as ne,Q as ce,R as ae}from"./index-BVwOH7wh.js";const fe=12,z=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return z.has(r)?!0:z.size>=fe?!1:(z.add(r),!0)}function X(r){z.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(X(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=D.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=D.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=K("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=D.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=J(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,P;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&_)for(const p of W)H.set(p.resolveType,Q(f,_,p.previewBlock,G));const E=a.trim().toLowerCase(),V=E?W.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):W;h=Z,C=t,P=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let M;e[27]!==a||e[28]!==B?(M=s.jsxs("div",{className:"relative pt-2",children:[k,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=M):M=e[29],e[30]!==A||e[31]!==M?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,M]}),e[30]=A,e[31]=M,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??Q(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=P}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],P=e[18];let T;e[33]!==S||e[34]!==b?(T=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==P?(O=s.jsx(h,{open:C,onOpenChange:P,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=P,e[50]=O):O=e[50],O}function Re(r){const e=D.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
1
+ import{c as D,b as J,r as w,j as s,n as K}from"./index-BvphIPlv.js";import{ag as q}from"./agent-icon-4q5deIQd.js";import{i as Y}from"./SearchMd-BuhbwC54.js";import{e as Z,d as ee,b as te,a as se}from"./dialog-o-lbJKf_.js";import{I as re}from"./input-D6JubeHO.js";import{L as le,M as oe,N as ie,O as Q,P as ne,Q as ce,R as ae}from"./index-BeIdc9Ic.js";const fe=12,z=new Set,F=new Set;function ue(){for(const r of F)r()}function de(r){return z.has(r)?!0:z.size>=fe?!1:(z.add(r),!0)}function X(r){z.delete(r)&&ue()}function me(r){return F.add(r),()=>{F.delete(r)}}function ve(r,e){const t=w.useRef(!1),[d,i]=w.useState(!1),o=w.useRef(null),f=w.useRef(null),c=w.useRef(null),l=w.useRef(r);l.current=r;const[a]=w.useState(()=>{const n=()=>{c.current?.(),c.current=null},u=()=>t.current?!0:de(e)?(t.current=!0,i(!0),n(),!0):!1;return v=>{if(f.current=v,o.current&&(o.current.disconnect(),o.current=null),n(),!v){t.current&&(X(e),t.current=!1,i(!1));return}queueMicrotask(()=>{if(f.current!==v)return;const x=new IntersectionObserver(m=>{if(m[0]?.isIntersecting??!1){!u()&&!c.current&&(c.current=me(()=>{f.current===v&&u()}));return}n(),t.current&&(X(e),t.current=!1,i(!1))},{root:l.current.current,rootMargin:"160px 0px"});x.observe(v),o.current=x})}});return{ref:a,iframeActive:d}}function pe(r){const e=D.c(8),{previewUrl:t,title:d,scrollRootRef:i,slotId:o}=r,{ref:f,iframeActive:c}=ve(i,o),[l,a]=w.useState(!1);let n;e[0]!==c||e[1]!==l||e[2]!==t||e[3]!==d?(n=c?s.jsxs(s.Fragment,{children:[!l&&s.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-muted/40",children:s.jsx(q,{className:"h-8 w-8 animate-pulse text-muted-foreground/40"})}),s.jsx("iframe",{src:t,title:`Preview ${d}`,sandbox:"allow-scripts allow-same-origin",referrerPolicy:"no-referrer",className:"pointer-events-none h-[200%] w-[200%] origin-top-left scale-50 border-0 bg-white",tabIndex:-1,onLoad:()=>a(!0)})]}):s.jsx("div",{className:"flex h-full items-center justify-center",children:s.jsx(q,{className:"h-8 w-8 text-muted-foreground/30"})}),e[0]=c,e[1]=l,e[2]=t,e[3]=d,e[4]=n):n=e[4];let u;return e[5]!==f||e[6]!==n?(u=s.jsx("div",{ref:f,className:"relative aspect-[16/10] w-full overflow-hidden bg-muted/40",children:n}),e[5]=f,e[6]=n,e[7]=u):u=e[7],u}function xe(r){const e=D.c(26),{entry:t,previewUrl:d,scrollRootRef:i,onSelect:o}=r,f=t.isSavedBlock&&"border-global-section/35 hover:bg-global-section/8";let c;e[0]!==f?(c=K("group flex flex-col overflow-hidden rounded-lg border bg-card text-left transition-colors","hover:border-primary/40 hover:bg-accent/30",f),e[0]=f,e[1]=c):c=e[1];let l;e[2]!==t.resolveType||e[3]!==t.title||e[4]!==d||e[5]!==i?(l=s.jsx(pe,{previewUrl:d,title:t.title,scrollRootRef:i,slotId:t.resolveType}),e[2]=t.resolveType,e[3]=t.title,e[4]=d,e[5]=i,e[6]=l):l=e[6];let a;e[7]!==t.isSavedBlock?(a=t.isSavedBlock?{color:ne}:void 0,e[7]=t.isSavedBlock,e[8]=a):a=e[8];let n;e[9]!==a?(n=s.jsx(q,{className:"h-4 w-4 shrink-0",style:a}),e[9]=a,e[10]=n):n=e[10];let u;e[11]!==t.title?(u=s.jsx("p",{className:"truncate text-sm font-medium",children:t.title}),e[11]=t.title,e[12]=u):u=e[12];let v;e[13]!==t.description?(v=t.description&&s.jsx("p",{className:"truncate text-xs text-muted-foreground",children:t.description}),e[13]=t.description,e[14]=v):v=e[14];let x;e[15]!==u||e[16]!==v?(x=s.jsxs("div",{className:"min-w-0 flex-1",children:[u,v]}),e[15]=u,e[16]=v,e[17]=x):x=e[17];let m;e[18]!==n||e[19]!==x?(m=s.jsxs("div",{className:"flex items-center gap-2 border-t px-3 py-2.5",children:[n,x]}),e[18]=n,e[19]=x,e[20]=m):m=e[20];let h;return e[21]!==o||e[22]!==c||e[23]!==l||e[24]!==m?(h=s.jsxs("button",{type:"button",onClick:o,className:c,children:[l,m]}),e[21]=o,e[22]=c,e[23]=l,e[24]=m,e[25]=h):h=e[25],h}function Ne(r){const e=D.c(51),{open:t,onOpenChange:d,meta:i,decofile:o,previewBaseUrl:f,onSelect:c}=r,l=J(),[a,n]=w.useState(""),[u,v]=w.useState(t),x=w.useRef(null);t!==u&&(v(t),t&&n(""));let m,h,S,b,j,N,R,y,g,C,P;if(e[0]!==o||e[1]!==i||e[2]!==d||e[3]!==c||e[4]!==t||e[5]!==f||e[6]!==a||e[7]!==l){const W=t&&i&&o?le(i,o):[],_=i?oe(i):"",G=o?ie(o):void 0,H=new Map;if(t&&_)for(const p of W)H.set(p.resolveType,Q(f,_,p.previewBlock,G));const E=a.trim().toLowerCase(),V=E?W.filter(p=>p.title.toLowerCase().includes(E)||p.resolveType.toLowerCase().includes(E)||p.description?.toLowerCase().includes(E)):W;h=Z,C=t,P=d,m=ee,R="top-3 right-3",y="flex h-[90vh] max-h-[90vh] w-[96vw] max-w-[96vw] sm:max-w-[96vw] flex-col gap-0 overflow-hidden p-0";let U;e[19]!==l?(U=l("sectionsEditor.addSectionModal.title"),e[19]=l,e[20]=U):U=e[20];let A;e[21]!==U?(A=s.jsx(te,{children:U}),e[21]=U,e[22]=A):A=e[22];let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Y,{size:14,className:"pointer-events-none absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),e[23]=k):k=e[23];let $;e[24]===Symbol.for("react.memo_cache_sentinel")?($=p=>n(p.target.value),e[24]=$):$=e[24];let B;e[25]!==l?(B=l("sectionsEditor.addSectionModal.searchPlaceholder"),e[25]=l,e[26]=B):B=e[26];let M;e[27]!==a||e[28]!==B?(M=s.jsxs("div",{className:"relative pt-2",children:[k,s.jsx(re,{value:a,onChange:$,placeholder:B,className:"h-9 pl-8"})]}),e[27]=a,e[28]=B,e[29]=M):M=e[29],e[30]!==A||e[31]!==M?(g=s.jsxs(se,{className:"shrink-0 border-b px-4 py-3 text-left",children:[A,M]}),e[30]=A,e[31]=M,e[32]=g):g=e[32],j=x,N="min-h-0 flex-1 overflow-y-auto",S="p-4",b=V.length===0?s.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:l("sectionsEditor.addSectionModal.noSectionsFound")}):s.jsx("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:V.map(p=>s.jsx(xe,{entry:p,scrollRootRef:x,previewUrl:H.get(p.resolveType)??Q(f,_,p.previewBlock,G),onSelect:()=>c(p)},p.resolveType))}),e[0]=o,e[1]=i,e[2]=d,e[3]=c,e[4]=t,e[5]=f,e[6]=a,e[7]=l,e[8]=m,e[9]=h,e[10]=S,e[11]=b,e[12]=j,e[13]=N,e[14]=R,e[15]=y,e[16]=g,e[17]=C,e[18]=P}else m=e[8],h=e[9],S=e[10],b=e[11],j=e[12],N=e[13],R=e[14],y=e[15],g=e[16],C=e[17],P=e[18];let T;e[33]!==S||e[34]!==b?(T=s.jsx("div",{className:S,children:b}),e[33]=S,e[34]=b,e[35]=T):T=e[35];let I;e[36]!==T||e[37]!==j||e[38]!==N?(I=s.jsx("div",{ref:j,className:N,children:T}),e[36]=T,e[37]=j,e[38]=N,e[39]=I):I=e[39];let L;e[40]!==m||e[41]!==I||e[42]!==R||e[43]!==y||e[44]!==g?(L=s.jsxs(m,{closeButtonClassName:R,className:y,children:[g,I]}),e[40]=m,e[41]=I,e[42]=R,e[43]=y,e[44]=g,e[45]=L):L=e[45];let O;return e[46]!==h||e[47]!==L||e[48]!==C||e[49]!==P?(O=s.jsx(h,{open:C,onOpenChange:P,children:L}),e[46]=h,e[47]=L,e[48]=C,e[49]=P,e[50]=O):O=e[50],O}function Re(r){const e=D.c(4),{previewServerUrl:t,runtime:d}=ce(r.virtualMcpId),i=d==="cms";let o;return e[0]!==i||e[1]!==r.sandboxUrl||e[2]!==t?(o=ae({sandboxUrl:r.sandboxUrl,previewServerUrl:t,fastPreviewActive:i}),e[0]=i,e[1]=r.sandboxUrl,e[2]=t,e[3]=o):o=e[3],o}export{Ne as A,Re as u};
@@ -1 +1 @@
1
- import{c as r,x as u}from"./index-RdcCdojW.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-BWpzWgPA.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{c as r,x as u}from"./index-BvphIPlv.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-DP6owINC.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{c as u,H as f,ac as y,o as m,p as g,e as T,K as l,t as E}from"./index-RdcCdojW.js";function F(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function K(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{K as a,C as b,M as c,A as d,F as u};
1
+ import{c as u,H as f,ac as y,o as m,p as g,e as T,K as l,t as E}from"./index-BvphIPlv.js";function F(){const e=u.c(7),{locator:t}=f(),o=y();let n;e[0]!==t?(n=l.tags(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==o?(s=async()=>{const{tags:r}=await o.call("TAGS_LIST",{});return r},e[2]=o,e[3]=s):s=e[3];let a;return e[4]!==n||e[5]!==s?(a={queryKey:n,queryFn:s,staleTime:3e4},e[4]=n,e[5]=s,e[6]=a):a=e[6],m(a)}function K(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{tag:i}=await n.call("TAGS_CREATE",typeof c=="string"?{name:c}:c);return i},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:S},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function S(e){E.error(e instanceof Error?e.message:"Failed to create tag")}function C(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{await n.call("TAGS_DELETE",{tagId:c})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=()=>{t.invalidateQueries({queryKey:l.tags(o)}),t.invalidateQueries({queryKey:l.taskBoardItems(o)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:q},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function q(e){E.error(e instanceof Error?e.message:"Failed to delete tag")}function M(e){const t=u.c(10),{locator:o}=f(),n=y();let s;t[0]!==o||t[1]!==e?(s=l.memberTags(o,e),t[0]=o,t[1]=e,t[2]=s):s=t[2];let a;t[3]!==e||t[4]!==n?(a=async()=>{const{tags:i}=await n.call("MEMBER_TAGS_GET",{memberId:e});return i},t[3]=e,t[4]=n,t[5]=a):a=t[5];const r=!!e;let c;return t[6]!==s||t[7]!==a||t[8]!==r?(c={queryKey:s,queryFn:a,staleTime:3e4,enabled:r},t[6]=s,t[7]=a,t[8]=r,t[9]=c):c=t[9],m(c)}function A(){const e=u.c(8),t=g(),{locator:o}=f(),n=y();let s;e[0]!==n?(s=async c=>{const{memberId:i,tagIds:d}=c;return await n.call("MEMBER_TAGS_SET",{memberId:i,tagIds:d})},e[0]=n,e[1]=s):s=e[1];let a;e[2]!==o||e[3]!==t?(a=(c,i)=>{t.invalidateQueries({queryKey:l.memberTags(o,i.memberId)})},e[2]=o,e[3]=t,e[4]=a):a=e[4];let r;return e[5]!==s||e[6]!==a?(r={mutationFn:s,onSuccess:a,onError:_},e[5]=s,e[6]=a,e[7]=r):r=e[7],T(r)}function _(e){E.error(e instanceof Error?e.message:"Failed to update member tags")}export{K as a,C as b,M as c,A as d,F as u};
@@ -1 +1 @@
1
- import{c as p,a5 as w,r as f}from"./index-RdcCdojW.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
1
+ import{c as p,a5 as w,r as f}from"./index-BvphIPlv.js";function I(M,b){const e=p.c(12),d=b===void 0?"cards":b,o=w(),g=f.useRef(o),s=M?`deco-view-mode-${M}`:"deco-view-mode";let i;e[0]!==d||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:d},e[0]=d,e[1]=s,e[2]=i):i=e[2];const[t,m]=f.useState(i);let l;e[3]!==s?(l=r=>{m(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const u=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!g.current&&o&&t==="table"&&m("cards"),g.current=o},a=[o,t],e[5]=o,e[6]=t,e[7]=c,e[8]=a):(c=e[7],a=e[8]),f.useEffect(c,a);let n;return e[9]!==u||e[10]!==t?(n=[t,u],e[9]=u,e[10]=t,e[11]=n):n=e[11],n}export{I as u};
@@ -1 +1 @@
1
- import{c as d,H as a,fe as P,cc as p,K as L,cb as S,o as V}from"./index-RdcCdojW.js";import{u as g}from"./use-mcp-client-Bl7OJFcH.js";import{S as f}from"./constants-dLUUoWH7.js";function y(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:f,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=g(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);return S(e.id,"VIRTUAL_MCP",s??void 0,i)}function R(s){const t=d.c(15),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);let o,l,u;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),u=V,l=L.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=u):(o=t[5],l=t[6],u=t[7]);const C=o.length>0;let c;t[8]!==i||t[9]!==o?(c=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=c):c=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==c?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:c},t[11]=l,t[12]=C,t[13]=c,t[14]=r):r=t[14],u(r)}function E(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:f,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=g(e);return p(t.id,"VIRTUAL_MCP",n)}export{b as a,E as b,R as c,y as u};
1
+ import{c as d,H as a,fe as P,cc as p,K as L,cb as S,o as V}from"./index-BvphIPlv.js";import{u as g}from"./use-mcp-client-BwH4TDLn.js";import{S as f}from"./constants-dLUUoWH7.js";function y(s){const t=d.c(5);let e;t[0]!==s?(e=s===void 0?{}:s,t[0]=s,t[1]=e):e=t[1];const n=e,{org:i}=a();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:f,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=g(o);return P(i.id,"VIRTUAL_MCP",l,n)}function b(s){const t=d.c(3),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);return S(e.id,"VIRTUAL_MCP",s??void 0,i)}function R(s){const t=d.c(15),{org:e}=a();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:f,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=g(n);let o,l,u;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),u=V,l=L.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=u):(o=t[5],l=t[6],u=t[7]);const C=o.length>0;let c;t[8]!==i||t[9]!==o?(c=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},I=new Map;for(const m of M.items)I.set(m.id,m);return I},t[8]=i,t[9]=o,t[10]=c):c=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==c?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:c},t[11]=l,t[12]=C,t[13]=c,t[14]=r):r=t[14],u(r)}function E(){const s=d.c(3),{org:t}=a();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:f,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=g(e);return p(t.id,"VIRTUAL_MCP",n)}export{b as a,E as b,R as c,y as u};
@@ -0,0 +1 @@
1
+ import{I as i}from"./use-infinite-scroll-CUw_Ivuj.js";import{fi as u}from"./index-BvphIPlv.js";function t(e,r){return u(e,i,r)}export{t as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./use-infinite-scroll-CUw_Ivuj.js";import{fi as u,b$ as n}from"./index-BvphIPlv.js";function i(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{i as u};
@@ -1 +1 @@
1
- import{c as V,b as q,r as z,a as O,o as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-RdcCdojW.js";import{C as G}from"./collection-table-wrapper-BR0_6TaP.js";import{E as L}from"./empty-state-BJDHE2BS.js";import{S as H}from"./search-input-q7fsDfhe.js";import{A as X}from"./avatar-_-D5iDIN.js";import{B as D}from"./badge-CDQQQbvb.js";import{u as Z}from"./use-debounced-value-zLcMcGu_.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-Do7ccGVi.js";import"./ArrowUp-CZYz7bTi.js";import"./SearchMd-B6MT6Bio.js";import"./User01-CliEfwvo.js";import"./differenceInSeconds-NQ4PDo0z.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
1
+ import{c as V,b as q,r as z,a as O,o as Y,e as $,j as t,P as I,K as J,t as Q,B as W}from"./index-BvphIPlv.js";import{C as G}from"./collection-table-wrapper-Cy_Kl14E.js";import{E as L}from"./empty-state-C7rGE_UX.js";import{S as H}from"./search-input-D9oyZGdk.js";import{A as X}from"./avatar-xQKMSfbV.js";import{B as D}from"./badge-BUE8eKrv.js";import{u as Z}from"./use-debounced-value-B1Rqo74w.js";import{a as K}from"./admin-fetch-CCSvjTk1.js";import{f as ee}from"./format-time-BnbuEtat.js";import{g as se}from"./get-initials-D-f_fDFw.js";import"./table-CpwCU8Uq.js";import"./ArrowUp-MwWXr26Q.js";import"./SearchMd-BuhbwC54.js";import"./User01-Dh4UFXWh.js";import"./differenceInSeconds-NQ4PDo0z.js";function ve(){const e=V.c(58),s=q(),[r,M]=z.useState("");let N;e[0]!==r?(N=r.trim(),e[0]=r,e[1]=N):N=e[1];const a=Z(N,300),{data:R}=O.useSession(),P=R?.user?.id;let n;e[2]!==a?(n=J.deploymentAdminUsers(a),e[2]=a,e[3]=n):n=e[3];let l;e[4]!==a?(l=()=>{const i=new URLSearchParams({limit:"100"});return a&&i.set("searchValue",a),K(`/api/_admin/users?${i}`)},e[4]=a,e[5]=l):l=e[5];let y;e[6]!==n||e[7]!==l?(y={queryKey:n,queryFn:l},e[6]=n,e[7]=l,e[8]=y):y=e[8];const{data:k,isLoading:_,isError:A}=Y(y);let C;e[9]===Symbol.for("react.memo_cache_sentinel")?(C=ie,e[9]=C):C=e[9];let w;e[10]!==s?(w={mutationFn:ae,onSuccess:C,onError:i=>{Q.error(i instanceof Error?i.message:s("admin.users.failedToImpersonate"))}},e[10]=s,e[11]=w):w=e[11];const E=$(w);let b;e[12]!==k?.users?(b=k?.users??[],e[12]=k?.users,e[13]=b):b=e[13];const B=b;let o;e[14]!==s?(o=s("admin.users.columnUser"),e[14]=s,e[15]=o):o=e[15];let m;e[16]!==s?(m=i=>t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(X,{url:i.image??void 0,fallback:se(i.name),shape:"circle",size:"sm"}),t.jsxs("div",{className:"min-w-0",children:[t.jsx("div",{className:"text-sm font-medium text-foreground truncate",children:i.name||s("admin.users.unknown")}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:i.email})]})]}),e[16]=s,e[17]=m):m=e[17];let d;e[18]!==o||e[19]!==m?(d={id:"user",header:o,render:m,cellClassName:"flex-1 min-w-0"},e[18]=o,e[19]=m,e[20]=d):d=e[20];let c;e[21]!==s?(c=s("admin.users.columnEmail"),e[21]=s,e[22]=c):c=e[22];let u;e[23]!==s?(u=i=>i.emailVerified?t.jsx(D,{variant:"outline",className:"text-success border-success/20",children:s("admin.users.verified")}):t.jsx(D,{variant:"outline",className:"text-muted-foreground",children:s("admin.users.unverified")}),e[23]=s,e[24]=u):u=e[24];let f;e[25]!==c||e[26]!==u?(f={id:"verified",header:c,render:u,cellClassName:"w-28 shrink-0"},e[25]=c,e[26]=u,e[27]=f):f=e[27];let p;e[28]!==s?(p=s("admin.users.columnCreated"),e[28]=s,e[29]=p):p=e[29];let h;e[30]!==p?(h={id:"created",header:p,render:te,cellClassName:"w-48 shrink-0"},e[30]=p,e[31]=h):h=e[31];let x;e[32]!==P||e[33]!==E||e[34]!==s?(x={id:"actions",header:"",render:i=>t.jsx(W,{variant:"outline",size:"sm",disabled:i.id===P||E.isPending,onClick:()=>E.mutate(i.id),children:s("admin.users.impersonate")}),cellClassName:"w-32 shrink-0"},e[32]=P,e[33]=E,e[34]=s,e[35]=x):x=e[35];let T;e[36]!==f||e[37]!==h||e[38]!==x||e[39]!==d?(T=[d,f,h,x],e[36]=f,e[37]=h,e[38]=x,e[39]=d,e[40]=T):T=e[40];const F=T;let j;e[41]!==s?(j=s("admin.users.searchPlaceholder"),e[41]=s,e[42]=j):j=e[42];let g;e[43]!==r||e[44]!==j?(g=t.jsx(H,{value:r,onChange:M,placeholder:j,className:"w-full md:w-[375px]"}),e[43]=r,e[44]=j,e[45]=g):g=e[45];let S;e[46]!==a||e[47]!==A||e[48]!==s?(S=A?t.jsx(L,{title:s("admin.users.failedToLoadTitle"),description:s("admin.users.failedToLoadDescription")}):t.jsx(L,{title:s("admin.users.noUsersFoundTitle"),description:a?s("admin.users.noUsersMatchSearch",{search:a}):s("admin.users.noUsersYet")}),e[46]=a,e[47]=A,e[48]=s,e[49]=S):S=e[49];let v;e[50]!==F||e[51]!==_||e[52]!==S||e[53]!==B?(v=t.jsx(G,{columns:F,data:B,isLoading:_,emptyState:S}),e[50]=F,e[51]=_,e[52]=S,e[53]=B,e[54]=v):v=e[54];let U;return e[55]!==g||e[56]!==v?(U=t.jsx(I,{children:t.jsx(I.Content,{children:t.jsx(I.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[g,v]})})})}),e[55]=g,e[56]=v,e[57]=U):U=e[57],U}function te(e){return t.jsx("span",{className:"text-sm text-foreground",children:ee(e.createdAt)})}function ie(){window.location.href="/"}function ae(e){return K("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{ve as default};
@@ -1 +1 @@
1
- import{c as K,b as X,r as Z,j as o,n as rt,a8 as ut,ab as ht,B as tt,a9 as xt}from"./index-RdcCdojW.js";import{r as gt,a6 as at,aF as bt}from"./agent-icon-CoWSmZeI.js";import{i as vt}from"./ChevronRight-D1vELAp3.js";import{L as yt}from"./label-DliIyCSr.js";import{S as lt}from"./scroll-area-GoohikBy.js";import{S as jt}from"./switch-C-FkHg7r.js";import{V as Tt}from"./view-mode-toggle-YRrKQ7HV.js";import{bP as ct,bQ as mt,bR as Nt,bS as _t,bT as kt,bU as U,bV as wt}from"./index-BVwOH7wh.js";import"./AlertCircle-CD9LrpfS.js";import"./UserSquare-5p_taTUv.js";import"./Tool01-CholylEI.js";import"./ArrowUp-CZYz7bTi.js";import"./ArrowLeft-B3G2yicp.js";import"./Tool02-CQHN0kwi.js";import"./XCircle-CfI3epA1.js";import"./TrendUp01-Cs8Uozm3.js";import"./ZapSquare-DfBJqbmB.js";import"./Users03-CvWTwj5Y.js";import"./CheckCircle-D_x_TnWr.js";import"./Check-Dlrnq12d.js";import"./ChevronDown-BI5tjO-E.js";import"./ChevronSelectorVertical-BoKT9OF1.js";import"./ChevronUp-DXmAB3XT.js";import"./DotsVertical-D26hKsV0.js";import"./Stars02-C5DCeEvT.js";import"./Copy01-DjgS2HXy.js";import"./CreditCard01-C_BlW4SQ.js";import"./Download01-DFXE5FpC.js";import"./Settings02-Bgsm52IE.js";import"./Eye-BL9Cl1_z.js";import"./FilterLines-BAretQqt.js";import"./Share07-CWoqeiFa.js";import"./Globe01-EaicUoi2.js";import"./Globe04-BynYihIs.js";import"./SwitchHorizontal01-7sawt_65.js";import"./HardDrive-DI-BD_HJ.js";import"./Key01-BW1Rr_0E.js";import"./LinkExternal01-DSikt04U.js";import"./LockUnlocked01-18p0T9eT.js";import"./LogOut01-BKJ67u66.js";import"./Monitor01-BZQ0hY6j.js";import"./Sun-7xLgDnNq.js";import"./Palette-Bno2qVjY.js";import"./Play-C-YG9yrD.js";import"./Plus-DdaQ4Jl-.js";import"./SearchLg-C--NWIKz.js";import"./SearchMd-B6MT6Bio.js";import"./Shield01-HD6_sCSy.js";import"./Stars01-D_TS2si3.js";import"./Trash01-WXazoj42.js";import"./Upload01-B4nQDZ8y.js";import"./User01-CliEfwvo.js";import"./Users01-Covi6RoT.js";import"./XClose-CF3G_jQw.js";import"./Zap-flZFj_ZW.js";import"./select-BCD3yHoj.js";import"./chat-context-DjotdD4C.js";import"./use-panel-navigate-hX9xgEkF.js";import"./dialog-BQeVUlNg.js";import"./use-destination-route-R7oVWY5R.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-CJ16hHiH.js";import"./use-mcp-client-Bl7OJFcH.js";import"./auth-Uy0w4hkL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-VQZMAg5B.js";import"./task-board-CQBNS0e1.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BV3GNVOc.js";import"./use-ai-providers-B-OYAKkb.js";import"./use-decopilot-events-BWpzWgPA.js";import"./use-organization-settings-CdhZq3TO.js";import"./automation-runs--DeWLHLZ.js";import"./useInfiniteQuery-D19sUk6p.js";import"./use-infinite-scroll-GqEVBMeV.js";import"./use-connection-CDBAVShn.js";import"./table-Do7ccGVi.js";import"./empty-state-BJDHE2BS.js";import"./use-members-_ByrBAvF.js";import"./use-org-auth-client-BamEWpk2.js";import"./use-automations-CHyRAX5J.js";import"./useSuspenseInfiniteQuery-DdW-dVOd.js";import"./avatar-_-D5iDIN.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-A2iDXIiC.js";import"./monaco-editor-IJ-39JCS.js";import"./spinner-B6eC17SF.js";import"./types-D55csc5w.js";import"./shell-layout-Bs8Lt777.js";import"./required-auth-layout-BO2dyb3Z.js";import"./use-org-sso-CnP_xN_9.js";import"./integration-icon-BxAzHrAu.js";import"./use-navigate-to-agent-C1od-jNe.js";import"./chart-EPThyboW.js";import"./index-BkWfJqUq.js";import"./form-DcxePO8A.js";import"./input-Du_Y4DA2.js";import"./file-type-icon-ChXTeBJ-.js";import"./drawer-Cdb1rsne.js";import"./collection-search-vQNkhmmK.js";import"./tabs-poHQpH5O.js";import"./toggle-group-Dke2CTaB.js";import"./super-agent-icon-JVWXoXUu.js";import"./self-tool-result-C_vauqtO.js";import"./alert-dialog-xk0i6uOf.js";import"./extract-connection-data-DLWzenU1.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-zLcMcGu_.js";import"./authenticate-and-persist-oauth-DBPTryx5.js";import"./mcp-oauth-WauR-bs4.js";import"./track-_bb26qlp.js";import"./popover-DT1H987m.js";import"./toolbar-DrpKuEOS.js";import"./github-repo-picker-m3Jw1ZFD.js";import"./use-mcp-tools-_tcIXZL0.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-M6hmLGZq.js";import"./use-registry-connections-Debcpo6W.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-DkW_z2IU.js";import"./connection-form-helpers-daJ-4E-F.js";import"./collection-tabs-Co_XeSHS.js";import"./badge-CDQQQbvb.js";import"./select-model-CmeXughu.js";import"./checkbox-DVfc9X49.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-CUbQM3D3.js";import"./dropdown-menu-C0_Vnzhe.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-DNfv1_kv.js";import"./use-file-configs-Qm8xBC7Z.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-BRpxCMxF.js";import"./search-input-q7fsDfhe.js";import"./use-mcp-auth-status-B-LZ1Wex.js";import"./use-secrets-Du7VCMTf.js";import"./AreaChart-BnvptEOi.js";import"./config-BSqz_GMQ.js";import"./breadcrumb-NtLjhPhW.js";import"./command-B8F0uHex.js";import"./index-CLdaL--4.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-BWfTkjku.js";import"./automation-list-row-C2XzpKdh.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-CG_xOEkn.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Rt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Lt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,n=typeof t=="string",s=typeof r=="string";if(!n&&!s)return null;const i=n?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||n&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!n,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const n=Lt(e);n&&t.push(n);return}if(St.has(r)){const n=e.matchers;if(Array.isArray(n))for(const s of n)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Pt(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Ot(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function J(e,t,r,n,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Ot(n);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Pt(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&J(m.value,t,r,[...n,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)J(e[i],t,r,[...n,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&J(a,t,r,[...n,i],s)}function Vt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))J(n,r,Rt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function It(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,s)=>{const i=s*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const nt=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):nt.format(e.start),n=e.openEnd?t("sandbox.variantCalendar.ongoing"):nt.format(e.end);return`${r} → ${n}`}function Ft(e){const t=K.c(18),{variant:r}=e,n=X();let s;t[0]!==r.blockLabel?(s=o.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==n||t[9]!==r?(c=Bt(r,n),t[8]=n,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=o.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=o.jsx(xt,{children:o.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const ot=16;function zt(e,t){const r=e?"transparent":"#000 0",n=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${ot}px, #000 calc(100% - ${ot}px), ${n})`}function ft(e){const t=K.c(26),{variant:r,color:n,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==n.bg||t[10]!==n.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:n.bg,color:n.text,borderRadius:4,...f,...g,...u,...s},t[9]=n.bg,t[10]=n.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=o.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=o.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=o.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function Yn(e){const t=K.c(72),{decofile:r}=e,n=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const V=Vt(r);p=V.filter(Ut).length,f=l?V:V.filter(Gt),h=It(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(V=>s==="calendar"?U(V,-1):U(V,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(V=>s==="calendar"?U(V,1):U(V,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==n?(v=n("sandbox.variantCalendar.today"),t[10]=n,t[11]=v):v=t[11];let y;t[12]!==v?(y=o.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==n?(N=n("sandbox.variantCalendar.previous"),t[14]=n,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==n?(k=n("sandbox.variantCalendar.next"),t[20]=n,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const R=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==R||t[29]!==M?(w=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",M]}),t[28]=R,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let L;t[36]!==p||t[37]!==l||t[38]!==n?(L=p>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),o.jsx(yt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:n("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=n,t[39]=L):L=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=o.jsx(at,{}),t[40]=B):B=t[40];let I;t[41]!==n?(I=n("sandbox.variantCalendar.calendarMode"),t[41]=n,t[42]=I):I=t[42];let S;t[43]!==I?(S={value:"calendar",icon:B,label:I},t[43]=I,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=o.jsx(bt,{}),t[45]=F):F=t[45];let D;t[46]!==n?(D=n("sandbox.variantCalendar.timelineMode"),t[46]=n,t[47]=D):D=t[47];let P;t[48]!==D?(P={value:"timeline",icon:F,label:D},t[48]=D,t[49]=P):P=t[49];let O;t[50]!==S||t[51]!==P?(O=[S,P],t[50]=S,t[51]=P,t[52]=O):O=t[52];let H;t[53]!==O||t[54]!==s?(H=o.jsx(Tt,{value:s,onValueChange:i,options:O}),t[53]=O,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==L||t[57]!==H?(z=o.jsxs("div",{className:"flex items-center gap-4",children:[L,H]}),t[56]=L,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?o.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?o.jsx(qt,{monthStart:a,variants:f,colorMap:g}):o.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let Q;return t[69]!==W||t[70]!==G?(Q=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=Q):Q=t[71],Q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,n=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==n||t[2]!==s?(a=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,n>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:n})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=n,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,Qt=6;function qt(e){const t=K.c(17),{monthStart:r,variants:n,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==n){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,n),E=b.reduce(Jt,0),T=st+E*(et+it)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return o.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return o.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=o.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=o.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:n,colorMap:s}=e,i=r,a=U(r,q),c=new Date,l=new Map;for(const w of n){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(ne),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:q},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=o.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,L]=w,B=dt(s,j),I=L[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:Y},children:I})}),L.map((S,F)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),P=Math.min(S.end.getTime(),a.getTime());if(P<=D)return null;const O=h(new Date(D)),H=h(new Date(P))-O;return o.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let R;t[16]!==k||t[17]!==C||t[18]!==$?(R=o.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=R):R=t[19];let M;return t[20]!==b||t[21]!==R?(M=o.jsx(b,{className:E,children:R}),t[20]=b,t[21]=R,t[22]=M):M=t[22],M}function ee(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function ne(e,t){return e[0].localeCompare(t[0])}export{Yn as VariantCalendar};
1
+ import{c as K,b as X,r as Z,j as o,n as rt,a8 as ut,ab as ht,B as tt,a9 as xt}from"./index-BvphIPlv.js";import{r as gt,a6 as at,aF as bt}from"./agent-icon-4q5deIQd.js";import{i as vt}from"./ChevronRight-JSjQetGj.js";import{L as yt}from"./label-DyLWoXFN.js";import{S as lt}from"./scroll-area-Bcq1YylF.js";import{S as jt}from"./switch-B_X107f4.js";import{V as Tt}from"./view-mode-toggle-Chk_9-6T.js";import{bP as ct,bQ as mt,bR as Nt,bS as _t,bT as kt,bU as U,bV as wt}from"./index-BeIdc9Ic.js";import"./AlertCircle-Bvyaz2Kj.js";import"./UserSquare-DkrCVr7I.js";import"./Tool01-k31lhfuq.js";import"./ArrowUp-MwWXr26Q.js";import"./ArrowLeft-DNSJEFTr.js";import"./Tool02-DHuul6tC.js";import"./XCircle-BCS-7XaA.js";import"./TrendUp01-BPsFCOJl.js";import"./ZapSquare-r3ZmUA9D.js";import"./Users03-CbLD7m3H.js";import"./CheckCircle-qvIgjR7C.js";import"./Check-CzGcU_18.js";import"./ChevronDown-DnSLePrh.js";import"./ChevronSelectorVertical-DRDRC9is.js";import"./ChevronUp-DFDLyF6e.js";import"./DotsVertical-0FsnqvY-.js";import"./Stars02-FjaCs5mP.js";import"./Copy01-CSghf1in.js";import"./CreditCard01-B6kY0NgK.js";import"./Download01-D5Sj1RWJ.js";import"./Settings02-CYzuwH_x.js";import"./Eye-DkXPnw11.js";import"./FilterLines-BsrW2L96.js";import"./Share07-CxggNnyF.js";import"./Globe01-B_IfqQPx.js";import"./Globe04-DPtjyMGq.js";import"./SwitchHorizontal01-CYGD-Yrj.js";import"./HardDrive-C7bA_N_q.js";import"./Key01-DQfk0_yE.js";import"./LinkExternal01-B_ilbe8Z.js";import"./LockUnlocked01-jP0H0WgM.js";import"./LogOut01-iTN2K_HM.js";import"./Monitor01-CNZN0EeI.js";import"./Sun-BpRkzKF1.js";import"./Palette-DJFYXyZC.js";import"./Play-DlSWUpz8.js";import"./Plus-ByjN5Z0Z.js";import"./SearchLg-BbH2TeF5.js";import"./SearchMd-BuhbwC54.js";import"./Shield01-Ntkf4Ipf.js";import"./Stars01-ByVJtKiy.js";import"./Trash01-BikQIH2r.js";import"./Upload01-D1HyPi1v.js";import"./User01-Dh4UFXWh.js";import"./Users01-CSnXgP67.js";import"./XClose-eJE1lk55.js";import"./Zap-Duxw5XKO.js";import"./select-DO5mDlEe.js";import"./chat-context-C5qSIECJ.js";import"./use-panel-navigate-Bi1-MukR.js";import"./dialog-o-lbJKf_.js";import"./use-destination-route-DKoYkCsy.js";import"./constants-dLUUoWH7.js";import"./session-runtime-wVXsCwcJ.js";import"./hooks-D_iQI4O0.js";import"./use-mcp-client-BwH4TDLn.js";import"./auth-DFJQFcQU.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-BE8yQxwy.js";import"./task-board-pShhwz8O.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-T3rF0m5R.js";import"./use-ai-providers-DUhPnVBj.js";import"./use-decopilot-events-DP6owINC.js";import"./use-organization-settings-0BXaFqOt.js";import"./automation-runs-DnRz_4nV.js";import"./useInfiniteQuery-CGYbyqjl.js";import"./use-infinite-scroll-CUw_Ivuj.js";import"./use-connection-D-FaQLFU.js";import"./table-CpwCU8Uq.js";import"./empty-state-C7rGE_UX.js";import"./use-members-DlgRTc5D.js";import"./use-org-auth-client-B56Z49z7.js";import"./use-automations-XxWq7PCT.js";import"./useSuspenseInfiniteQuery-BksJPEIN.js";import"./avatar-xQKMSfbV.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D0WDRRpO.js";import"./monaco-editor-BzQAHPgF.js";import"./spinner-hH9XnA8n.js";import"./types-DKd1RoOu.js";import"./shell-layout-DyObrhUk.js";import"./required-auth-layout-CpNSgXIB.js";import"./use-org-sso-CQ19h3IZ.js";import"./integration-icon-BJ2GfjLA.js";import"./use-navigate-to-agent-C_Lcd8Df.js";import"./chart-Bqv-9W0J.js";import"./index-CF_G93Kw.js";import"./form-CTCJD_Hx.js";import"./input-D6JubeHO.js";import"./file-type-icon-DD64j0xL.js";import"./drawer-B43XZVqt.js";import"./collection-search-cn_pA-cC.js";import"./tabs-DUNrVSeU.js";import"./toggle-group-DJJef25l.js";import"./super-agent-icon-C9INS80X.js";import"./self-tool-result-DUSusImJ.js";import"./alert-dialog-COe9C8NL.js";import"./extract-connection-data-BGJLP0ou.js";import"./metadata-dUsYcpuu.js";import"./provision-repo-scoped-github-connection-CMPWtdMv.js";import"./use-debounced-value-B1Rqo74w.js";import"./authenticate-and-persist-oauth-BYrklfEZ.js";import"./mcp-oauth-ltvxvN83.js";import"./track-Da6W74hL.js";import"./popover-Cn19M15h.js";import"./toolbar-B35mtx0K.js";import"./github-repo-picker-DVgeOsWJ.js";import"./use-mcp-tools-D3VfPRcP.js";import"./agent-capabilities-B52k7xCe.js";import"./connection-card-DEBIEgz8.js";import"./use-registry-connections-BBSHOTrH.js";import"./retry-CErkP7V6.js";import"./connection-slug-eyAPH6o3.js";import"./textarea-CxTBRm8n.js";import"./connection-form-helpers-B-SpMh33.js";import"./collection-tabs-BxqOQqdF.js";import"./badge-BUE8eKrv.js";import"./select-model-XW5hTDtm.js";import"./checkbox-CagDKatz.js";import"./ai-providers-logos-DD3qZ33J.js";import"./cards-B03QSnw9.js";import"./dropdown-menu-DUzmGIpY.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-1I3SzUNL.js";import"./use-file-configs-J_EcO8h8.js";import"./pt-BR-CLy76QW2.js";import"./use-debounced-autosave-BPMb3HJB.js";import"./search-input-D9oyZGdk.js";import"./use-mcp-auth-status-BNwzaQrN.js";import"./use-secrets-BmX-LU55.js";import"./AreaChart-BktBXh-n.js";import"./config-CQPrXacX.js";import"./breadcrumb-CkIAyGzd.js";import"./command-N2b31krx.js";import"./index-MqYGWr-V.js";import"./get-initials-D-f_fDFw.js";import"./use-tags-CSG6nBXw.js";import"./automation-list-row-BbyIMiZO.js";import"./site-error--i37Vnuw.js";import"./use-org-repo-syncs-C2VfO1Ye.js";const Et=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),St=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Ct=new Date(-864e13),Mt=new Date(864e13),At=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,$t=/\/flags\/multivariate\.ts$/;function Rt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function Lt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,n=typeof t=="string",s=typeof r=="string";if(!n&&!s)return null;const i=n?new Date(t):Ct,a=s?new Date(r):Mt;return Number.isNaN(i.getTime())||Number.isNaN(a.getTime())||n&&s&&a.getTime()<=i.getTime()?null:{start:i,end:a,openStart:!n,openEnd:!s}}function pt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(Et.has(r)){const n=Lt(e);n&&t.push(n);return}if(St.has(r)){const n=e.matchers;if(Array.isArray(n))for(const s of n)pt(s,t)}}}function Dt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!At.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Pt(e){if(typeof e=="string"){const c=e.trim();if(c.length===0)return null;try{const m=new URL(c).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return c.length>80?`${c.slice(0,77)}…`:c}if(!e||typeof e!="object")return null;const t=e,r=t.config,s=t.desktop?.media,i=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,s?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const c of i)if(typeof c=="string"&&c.trim().length>0)return c.trim();const a=t.__resolveType;if(typeof a=="string"){const l=(a.split("/").pop()??a).replace(/\.(tsx?|jsx?)$/i,"");if(l.length>0)return l}return null}function Ot(e){const t=[];for(let r=0;r<e.length;r++){const n=e[r];typeof n=="number"?t.length>0?t[t.length-1]+=`[${n}]`:t.push(`[${n}]`):t.push(n)}return t.join(" · ")}function J(e,t,r,n,s){if(Dt(e)){const i=e.variants,a=e.__resolveType,c=$t.test(a)?"":Ot(n);i.forEach((l,m)=>{if(!l||typeof l!="object")return;const p=l,h=[];if(pt(p.rule,h),h.length===0)return;const g=Pt(p.value)??(c||r);for(const u of h)s.push({blockKey:t,blockLabel:r,innerPath:c,variantIndex:m,start:u.start,end:u.end,openStart:u.openStart,openEnd:u.openEnd,label:g,flagResolveType:a})});for(let l=0;l<i.length;l++){const m=i[l];m&&typeof m=="object"&&J(m.value,t,r,[...n,"variants",l,"value"],s)}return}if(Array.isArray(e)){for(let i=0;i<e.length;i++)J(e[i],t,r,[...n,i],s);return}if(e&&typeof e=="object")for(const[i,a]of Object.entries(e))i!=="__resolveType"&&J(a,t,r,[...n,i],s)}function Vt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))J(n,r,Rt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function It(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,s)=>{const i=s*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${i})`,text:"white",border:`oklch(0.50 0.14 ${i})`})}),r}const Ht={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function dt(e,t){return e.get(t)??Ht}const nt=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Bt(e,t){const r=e.openStart?t("sandbox.variantCalendar.always"):nt.format(e.start),n=e.openEnd?t("sandbox.variantCalendar.ongoing"):nt.format(e.end);return`${r} → ${n}`}function Ft(e){const t=K.c(18),{variant:r}=e,n=X();let s;t[0]!==r.blockLabel?(s=o.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=s):s=t[1];let i;t[2]!==r.innerPath?(i=r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=i):i=t[3];let a;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(a=r.label!==r.blockLabel&&r.label!==r.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=a):a=t[7];let c;t[8]!==n||t[9]!==r?(c=Bt(r,n),t[8]=n,t[9]=r,t[10]=c):c=t[10];let l;t[11]!==c?(l=o.jsx("div",{className:"mt-1",children:c}),t[11]=c,t[12]=l):l=t[12];let m;return t[13]!==s||t[14]!==i||t[15]!==a||t[16]!==l?(m=o.jsx(xt,{children:o.jsxs("div",{className:"text-xs",children:[s,i,a,l]})}),t[13]=s,t[14]=i,t[15]=a,t[16]=l,t[17]=m):m=t[17],m}const ot=16;function zt(e,t){const r=e?"transparent":"#000 0",n=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${ot}px, #000 calc(100% - ${ot}px), ${n})`}function ft(e){const t=K.c(26),{variant:r,color:n,style:s,children:i,fadeStart:a,fadeEnd:c}=e,l=a===void 0?!1:a,m=c===void 0?!1:c;let p;t[0]!==m||t[1]!==l?(p=zt(l,m),t[0]=m,t[1]=l,t[2]=p):p=t[2];const h=p;let f;t[3]!==l?(f=l&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=l,t[4]=f):f=t[4];let g;t[5]!==m?(g=m&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=m,t[6]=g):g=t[6];let u;t[7]!==h?(u=h&&{maskImage:h,WebkitMaskImage:h},t[7]=h,t[8]=u):u=t[8];let x;t[9]!==n.bg||t[10]!==n.text||t[11]!==s||t[12]!==f||t[13]!==g||t[14]!==u?(x={background:n.bg,color:n.text,borderRadius:4,...f,...g,...u,...s},t[9]=n.bg,t[10]=n.text,t[11]=s,t[12]=f,t[13]=g,t[14]=u,t[15]=x):x=t[15];let b;t[16]!==i?(b=o.jsx("span",{className:"truncate",children:i}),t[16]=i,t[17]=b):b=t[17];let E;t[18]!==x||t[19]!==b?(E=o.jsx(ut,{asChild:!0,children:o.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:x,children:b})}),t[18]=x,t[19]=b,t[20]=E):E=t[20];let T;t[21]!==r?(T=o.jsx(Ft,{variant:r}),t[21]=r,t[22]=T):T=t[22];let d;return t[23]!==T||t[24]!==E?(d=o.jsxs(ht,{children:[E,T]}),t[23]=T,t[24]=E,t[25]=d):d=t[25],d}function Yn(e){const t=K.c(72),{decofile:r}=e,n=X(),[s,i]=Z.useState("calendar"),[a,c]=Z.useState(Kt),[l,m]=Z.useState(!1);let p,h,f;if(t[0]!==r||t[1]!==l){const V=Vt(r);p=V.filter(Ut).length,f=l?V:V.filter(Gt),h=It(f.map(Wt)),t[0]=r,t[1]=l,t[2]=p,t[3]=h,t[4]=f}else p=t[2],h=t[3],f=t[4];const g=h;let u;t[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>c(mt(new Date)),t[5]=u):u=t[5];const x=u;let b;t[6]!==s?(b=()=>c(V=>s==="calendar"?U(V,-1):U(V,-3)),t[6]=s,t[7]=b):b=t[7];const E=b;let T;t[8]!==s?(T=()=>c(V=>s==="calendar"?U(V,1):U(V,3)),t[8]=s,t[9]=T):T=t[9];const d=T;let v;t[10]!==n?(v=n("sandbox.variantCalendar.today"),t[10]=n,t[11]=v):v=t[11];let y;t[12]!==v?(y=o.jsx(tt,{variant:"outline",size:"sm",onClick:x,children:v}),t[12]=v,t[13]=y):y=t[13];let N;t[14]!==n?(N=n("sandbox.variantCalendar.previous"),t[14]=n,t[15]=N):N=t[15];let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx(gt,{size:16}),t[16]=A):A=t[16];let _;t[17]!==E||t[18]!==N?(_=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:E,"aria-label":N,children:A}),t[17]=E,t[18]=N,t[19]=_):_=t[19];let k;t[20]!==n?(k=n("sandbox.variantCalendar.next"),t[20]=n,t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(vt,{size:16}),t[22]=C):C=t[22];let $;t[23]!==d||t[24]!==k?($=o.jsx(tt,{variant:"ghost",size:"icon",className:"size-8",onClick:d,"aria-label":k,children:C}),t[23]=d,t[24]=k,t[25]=$):$=t[25];const R=ct[a.getMonth()];let M;t[26]!==a?(M=a.getFullYear(),t[26]=a,t[27]=M):M=t[27];let w;t[28]!==R||t[29]!==M?(w=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[R," ",M]}),t[28]=R,t[29]=M,t[30]=w):w=t[30];let j;t[31]!==$||t[32]!==w||t[33]!==y||t[34]!==_?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[y,_,$,w]}),t[31]=$,t[32]=w,t[33]=y,t[34]=_,t[35]=j):j=t[35];let L;t[36]!==p||t[37]!==l||t[38]!==n?(L=p>0&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(jt,{id:"show-ongoing",checked:l,onCheckedChange:m}),o.jsx(yt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:n("sandbox.variantCalendar.showOngoing",{count:p})})]}),t[36]=p,t[37]=l,t[38]=n,t[39]=L):L=t[39];let B;t[40]===Symbol.for("react.memo_cache_sentinel")?(B=o.jsx(at,{}),t[40]=B):B=t[40];let I;t[41]!==n?(I=n("sandbox.variantCalendar.calendarMode"),t[41]=n,t[42]=I):I=t[42];let S;t[43]!==I?(S={value:"calendar",icon:B,label:I},t[43]=I,t[44]=S):S=t[44];let F;t[45]===Symbol.for("react.memo_cache_sentinel")?(F=o.jsx(bt,{}),t[45]=F):F=t[45];let D;t[46]!==n?(D=n("sandbox.variantCalendar.timelineMode"),t[46]=n,t[47]=D):D=t[47];let P;t[48]!==D?(P={value:"timeline",icon:F,label:D},t[48]=D,t[49]=P):P=t[49];let O;t[50]!==S||t[51]!==P?(O=[S,P],t[50]=S,t[51]=P,t[52]=O):O=t[52];let H;t[53]!==O||t[54]!==s?(H=o.jsx(Tt,{value:s,onValueChange:i,options:O}),t[53]=O,t[54]=s,t[55]=H):H=t[55];let z;t[56]!==L||t[57]!==H?(z=o.jsxs("div",{className:"flex items-center gap-4",children:[L,H]}),t[56]=L,t[57]=H,t[58]=z):z=t[58];let W;t[59]!==j||t[60]!==z?(W=o.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,z]}),t[59]=j,t[60]=z,t[61]=W):W=t[61];let G;t[62]!==g||t[63]!==a||t[64]!==p||t[65]!==l||t[66]!==f||t[67]!==s?(G=f.length===0?o.jsx(Yt,{hiddenOngoing:l?0:p}):s==="calendar"?o.jsx(qt,{monthStart:a,variants:f,colorMap:g}):o.jsx(te,{monthStart:a,variants:f,colorMap:g}),t[62]=g,t[63]=a,t[64]=p,t[65]=l,t[66]=f,t[67]=s,t[68]=G):G=t[68];let Q;return t[69]!==W||t[70]!==G?(Q=o.jsxs("div",{className:"flex h-full w-full flex-col",children:[W,G]}),t[69]=W,t[70]=G,t[71]=Q):Q=t[71],Q}function Wt(e){return e.blockKey}function Gt(e){return!e.openEnd}function Ut(e){return e.openEnd}function Kt(){return mt(new Date)}function Yt(e){const t=K.c(4),{hiddenOngoing:r}=e,n=r===void 0?0:r,s=X();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx(at,{size:24,className:"text-muted-foreground/60"}),t[0]=i):i=t[0];let a;return t[1]!==n||t[2]!==s?(a=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[i,n>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noDatedVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.hiddenOngoingVariants",{count:n})})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:s("sandbox.variantCalendar.noScheduledVariants")}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:s("sandbox.variantCalendar.dateMatcherInfo")})]})]}),t[1]=n,t[2]=s,t[3]=a):a=t[3],a}const et=20,it=2,st=28,Qt=6;function qt(e){const t=K.c(17),{monthStart:r,variants:n,colorMap:s}=e;let i,a,c,l,m;if(t[0]!==s||t[1]!==r||t[2]!==n){const f=Nt(r),g=_t(new Date);i=lt,m="flex-1 min-h-0",a="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:wt.map(Xt)}),t[8]=c):c=t[8],l=f.map((u,x)=>{const b=kt(u,n),E=b.reduce(Jt,0),T=st+E*(et+it)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[u.map((d,v)=>{const y=d.getMonth()===r.getMonth(),N=d.getTime()===g.getTime();return o.jsx("div",{className:rt("border-r last:border-r-0 px-2 pt-1.5 text-xs",y?"bg-background":"bg-muted/30 text-muted-foreground"),children:o.jsx("span",{className:rt("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",N&&"bg-primary text-primary-foreground font-semibold"),children:d.getDate()})},v)}),b.map((d,v)=>{const y=dt(s,d.variant.blockKey),N=st+d.lane*(et+it),A=d.leftUnits/7*100,_=d.widthUnits/7*100,k=d.variant.openStart&&x===0,C=d.variant.openEnd&&x===f.length-1;return o.jsxs(ft,{variant:d.variant,color:y,fadeStart:k,fadeEnd:C,style:{top:N,left:`calc(${A}% + 2px)`,width:`calc(${_}% - 4px)`,minWidth:Qt,height:et},children:[d.variant.blockLabel,d.variant.label!==d.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",d.variant.label]})]},`${x}-${v}`)})]},x)}),t[0]=s,t[1]=r,t[2]=n,t[3]=i,t[4]=a,t[5]=c,t[6]=l,t[7]=m}else i=t[3],a=t[4],c=t[5],l=t[6],m=t[7];let p;t[9]!==a||t[10]!==c||t[11]!==l?(p=o.jsxs("div",{className:a,children:[c,l]}),t[9]=a,t[10]=c,t[11]=l,t[12]=p):p=t[12];let h;return t[13]!==i||t[14]!==m||t[15]!==p?(h=o.jsx(i,{className:m,children:p}),t[13]=i,t[14]=m,t[15]=p,t[16]=h):h=t[16],h}function Jt(e,t){return Math.max(e,t.lane+1)}function Xt(e){return o.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const q=4,Zt=32,Y=240;function te(e){const t=K.c(23),{monthStart:r,variants:n,colorMap:s}=e,i=r,a=U(r,q),c=new Date,l=new Map;for(const w of n){const j=l.get(w.blockKey)??[];j.push(w),l.set(w.blockKey,j)}const m=Array.from(l.entries()).sort(ne),p=a.getTime()-i.getTime(),h=w=>(Math.max(i.getTime(),Math.min(a.getTime(),w.getTime()))-i.getTime())/p*100;let f;t[0]!==i?(f=(w,j)=>U(i,j),t[0]=i,t[1]=f):f=t[1];const g=Array.from({length:q},f),u=c.getTime()>=i.getTime()&&c.getTime()<=a.getTime()?h(c):null,x=X(),b=lt,E="flex-1 min-h-0",T="min-w-[900px] relative";let d;t[2]===Symbol.for("react.memo_cache_sentinel")?(d={width:Y},t[2]=d):d=t[2];let v;t[3]!==x?(v=x("sandbox.variantCalendar.variantBlock"),t[3]=x,t[4]=v):v=t[4];let y;t[5]!==v?(y=o.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:d,children:v}),t[5]=v,t[6]=y):y=t[6];let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N={gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},t[7]=N):N=t[7];const A=g.map(re);let _;t[8]!==A?(_=o.jsx("div",{className:"flex-1 grid",style:N,children:A}),t[8]=A,t[9]=_):_=t[9];let k;t[10]!==y||t[11]!==_?(k=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[y,_]}),t[10]=y,t[11]=_,t[12]=k):k=t[12];let C;t[13]!==x||t[14]!==u?(C=u!==null&&o.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${Y}px + (100% - ${Y}px) * ${u} / 100)`},children:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:x("sandbox.variantCalendar.todayLabel")})}),t[13]=x,t[14]=u,t[15]=C):C=t[15];const $=m.map(w=>{const[j,L]=w,B=dt(s,j),I=L[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:Y},children:I})}),L.map((S,F)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Zt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:Y},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:B.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:S.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${q}, minmax(0, 1fr))`},children:g.map(ee)}),(()=>{const D=Math.max(S.start.getTime(),i.getTime()),P=Math.min(S.end.getTime(),a.getTime());if(P<=D)return null;const O=h(new Date(D)),H=h(new Date(P))-O;return o.jsx(ft,{variant:S,color:B,fadeStart:S.openStart,fadeEnd:S.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${H}% - 2px)`,height:22},children:S.label})})()]})]},F))]},j)});let R;t[16]!==k||t[17]!==C||t[18]!==$?(R=o.jsxs("div",{className:T,children:[k,C,$]}),t[16]=k,t[17]=C,t[18]=$,t[19]=R):R=t[19];let M;return t[20]!==b||t[21]!==R?(M=o.jsx(b,{className:E,children:R}),t[20]=b,t[21]=R,t[22]=M):M=t[22],M}function ee(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function re(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ct[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function ne(e,t){return e[0].localeCompare(t[0])}export{Yn as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as C,n as f,j as i,ab as k,a8 as I,a9 as P}from"./index-RdcCdojW.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const n=M[_];let l;t[6]!==z?(l=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=l):l=t[7];let a;t[8]!==n||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(n.buttonWithLabel,"px-3"):n.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",n.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=n,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":n.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==l||t[25]!==a?(v=i.jsxs("div",{className:l,children:[a,u]}),t[23]=u,t[24]=l,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
1
+ import{c as $,r as C,n as f,j as i,ab as k,a8 as I,a9 as P}from"./index-BvphIPlv.js";const M={sm:{button:"size-7",buttonWithLabel:"h-7",icon:"size-4"},md:{button:"size-9",buttonWithLabel:"h-9",icon:"size-5"},lg:{button:"size-12",buttonWithLabel:"h-12",icon:"size-6"}};function A(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:L,fullWidth:R,className:z}=E,_=L===void 0?"sm":L,m=R===void 0?!1:R;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const T=C.useRef(h);let x;t[1]===Symbol.for("react.memo_cache_sentinel")?(x={left:0,width:0,opacity:0},t[1]=x):x=t[1];const[d,S]=C.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),b=T.current[e];b&&S({left:b.offsetLeft,width:b.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),C.useEffect(g,p);const n=M[_];let l;t[6]!==z?(l=f("relative flex gap-0 bg-muted rounded-lg",z),t[6]=z,t[7]=l):l=t[7];let a;t[8]!==n||t[9]!==m||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,b)=>{const j=i.jsxs("button",{ref:V=>{T.current[b]=V},type:"button",onClick:()=>y(e.value),"aria-label":e.label,className:f("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",m?"flex-1 h-12 px-4":e.label?f(n.buttonWithLabel,"px-3"):n.button),children:[i.jsx("span",{className:f("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",n.icon,s===e.value?"text-foreground":"text-muted-foreground"),children:e.icon}),e.label&&i.jsx("span",{className:f("text-xs transition-colors ease-out duration-200 whitespace-nowrap",s===e.value?"text-foreground":"text-muted-foreground"),children:e.label})]},e.value);return e.tooltip?i.jsxs(k,{children:[i.jsx(I,{asChild:!0,children:j}),i.jsx(P,{side:"bottom",children:e.tooltip})]},e.value):j}),t[8]=n,t[9]=m,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=m?"h-12":n.button;let r;t[14]!==w?(r=f("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",w),t[14]=w,t[15]=r):r=t[15];const W=`${d.left}px`,N=`${d.width}px`;let c;t[16]!==d.opacity||t[17]!==W||t[18]!==N?(c={left:W,width:N,opacity:d.opacity},t[16]=d.opacity,t[17]=W,t[18]=N,t[19]=c):c=t[19];let u;t[20]!==r||t[21]!==c?(u=i.jsx("div",{className:r,style:c}),t[20]=r,t[21]=c,t[22]=u):u=t[22];let v;return t[23]!==u||t[24]!==l||t[25]!==a?(v=i.jsxs("div",{className:l,children:[a,u]}),t[23]=u,t[24]=l,t[25]=a,t[26]=v):v=t[26],v}export{A as V};
@@ -50,7 +50,7 @@
50
50
  <meta name="twitter:description" content="Hire specialized agents, give them access to your tools, and let them deliver real projects — with planning, verification, and observability built in." />
51
51
  <meta name="twitter:image" content="/og-image.png" />
52
52
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
53
- <script type="module" crossorigin src="/assets/index-RdcCdojW.js"></script>
53
+ <script type="module" crossorigin src="/assets/index-BvphIPlv.js"></script>
54
54
  <link rel="stylesheet" crossorigin href="/assets/index-DJSuP9VA.css">
55
55
  </head>
56
56
  <body>