decocms 3.75.1 → 3.76.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 (222) hide show
  1. package/dist/client/assets/{AlertCircle-CF55w0Qv.js → AlertCircle-CZWjmLDT.js} +1 -1
  2. package/dist/client/assets/{ArrowRight-BA4_GdNm.js → ArrowRight-DswQGw32.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BTde5R2r.js → ArrowUpRight-zJbKnVEx.js} +1 -1
  4. package/dist/client/assets/{Check-HrJ9KYPP.js → Check-e4E4gv9b.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-DQwBvZ5M.js → CheckCircle-DD9zrZHy.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-6nGucI8T.js → ChevronDown-P1cR1p1z.js} +1 -1
  7. package/dist/client/assets/{ChevronLeft-DBLK1B2w.js → ChevronLeft-njq8SkK6.js} +1 -1
  8. package/dist/client/assets/{ChevronRight-BTHZFGXY.js → ChevronRight-C5wvGTH8.js} +1 -1
  9. package/dist/client/assets/{ChevronUp-BGbO7ZW4.js → ChevronUp-DMBQslpk.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-C1QWNK9G.js → DotsVertical-DVx42NIt.js} +1 -1
  11. package/dist/client/assets/{Eye-Zq99Eg_e.js → Eye-BkHY3voI.js} +1 -1
  12. package/dist/client/assets/{FilterLines-BgpWnKdw.js → FilterLines-rKEHnpC8.js} +1 -1
  13. package/dist/client/assets/{Globe01-CKTHEStH.js → Globe01-Cq-Rbldi.js} +1 -1
  14. package/dist/client/assets/{Globe04-Qx98ZXam.js → Globe04-CtEF3BRe.js} +1 -1
  15. package/dist/client/assets/{HardDrive-CL151dqv.js → HardDrive-7UiN3uqO.js} +1 -1
  16. package/dist/client/assets/{Key01-B7s70Ooj.js → Key01-v4LCWUSc.js} +1 -1
  17. package/dist/client/assets/{LayoutLeft-Cm9TpsmY.js → LayoutLeft-BrCMpwSK.js} +1 -1
  18. package/dist/client/assets/{LinkExternal01-cjHNpjh3.js → LinkExternal01-DtT4L4N6.js} +1 -1
  19. package/dist/client/assets/{Monitor01-Dxbb29dH.js → Monitor01-D9depcVp.js} +1 -1
  20. package/dist/client/assets/{Palette-DHKzDXd8.js → Palette-D_iY1hQ7.js} +1 -1
  21. package/dist/client/assets/{Play-qR9qQdIa.js → Play-DdLK5xgI.js} +1 -1
  22. package/dist/client/assets/{Plus-CJb1Hryd.js → Plus-Cd0ypUPB.js} +1 -1
  23. package/dist/client/assets/{SearchMd-D-jnoknh.js → SearchMd-CKCNrxV5.js} +1 -1
  24. package/dist/client/assets/{Settings02-N-Ana7--.js → Settings02-BoqCpz_o.js} +1 -1
  25. package/dist/client/assets/{Shield01-BtzgrFPi.js → Shield01-Wa9NR2vn.js} +1 -1
  26. package/dist/client/assets/{Star01-BRAQtDVb.js → Star01-DhLGcNbl.js} +1 -1
  27. package/dist/client/assets/{Stars01-QTJU6BBU.js → Stars01-WeiMgRuc.js} +1 -1
  28. package/dist/client/assets/{Stars02-D2KDaPxV.js → Stars02-DnTT2sBI.js} +1 -1
  29. package/dist/client/assets/{Sun-DVK2dAAz.js → Sun-1K7RcAWZ.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-CTP3QgCa.js → SwitchHorizontal01-CEUgiRB1.js} +1 -1
  31. package/dist/client/assets/{Tool01-D3t3Vp74.js → Tool01-Dv9dCbp6.js} +1 -1
  32. package/dist/client/assets/{Trash01-CbZke0tL.js → Trash01-BC1OhQlq.js} +1 -1
  33. package/dist/client/assets/{Upload01-DQeSm5tc.js → Upload01-BHKvZ87r.js} +1 -1
  34. package/dist/client/assets/{User01-CjrUCkl0.js → User01-B9BKmOI0.js} +1 -1
  35. package/dist/client/assets/{Users01-Cwa3eGsq.js → Users01-Dy2qezq_.js} +1 -1
  36. package/dist/client/assets/{Users03-dAhfK1BT.js → Users03-B41w1ewc.js} +1 -1
  37. package/dist/client/assets/{X-CcKHBe4d.js → X-CNdGRyYk.js} +1 -1
  38. package/dist/client/assets/{XCircle-DLXyiN8q.js → XCircle-j1-GVtiw.js} +1 -1
  39. package/dist/client/assets/{XClose-DQFAtoYY.js → XClose-BgQasJGJ.js} +1 -1
  40. package/dist/client/assets/{Zap-C4ZC506K.js → Zap-Cd1AcQhh.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-Cgp7-LaR.js → ZapSquare-Cl9Iu0Yu.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-BoT343DK.js → ZoomOut-DG8OwHO2.js} +1 -1
  43. package/dist/client/assets/{access-gate-DjtDFMS6.js → access-gate-CNUwq6nr.js} +1 -1
  44. package/dist/client/assets/{add-section-modal-CAsLuGSK.js → add-section-modal-BdHBbUlc.js} +1 -1
  45. package/dist/client/assets/{agent-icon-CWL8yyID.js → agent-icon-Cg7qESLO.js} +1 -1
  46. package/dist/client/assets/{agents-list-Y0L4Uiw8.js → agents-list-Cv8hL8Qp.js} +1 -1
  47. package/dist/client/assets/{ai-providers-BnnCYynz.js → ai-providers-B9jF42-5.js} +1 -1
  48. package/dist/client/assets/{alert-BxiYwfun.js → alert-Bx3j7Zu2.js} +1 -1
  49. package/dist/client/assets/{alert-dialog-D4p9gtl1.js → alert-dialog-C8bis9BK.js} +1 -1
  50. package/dist/client/assets/{app-editor-xz1Y1YLP.js → app-editor-CkS4moAr.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-Cjdu_0T7.js → auth-catchall-G4-_U_hr.js} +1 -1
  52. package/dist/client/assets/{auth-entry-BXyiwcUx.js → auth-entry-DVVVpVbL.js} +1 -1
  53. package/dist/client/assets/{auth-DqCFlQCV.js → auth-rR0qxEot.js} +1 -1
  54. package/dist/client/assets/{auth-split-layout-DNdXibtd.js → auth-split-layout-BnwaUYfT.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-BvTEDbKu.js → automation-list-row-DyIqsqOZ.js} +1 -1
  56. package/dist/client/assets/{automation-runs-DPYDfxdQ.js → automation-runs-QwVqCO49.js} +1 -1
  57. package/dist/client/assets/{automations-6fIBat0O.js → automations-DO0-NdyE.js} +1 -1
  58. package/dist/client/assets/{avatar-OxBQrTwT.js → avatar-DYinNJvl.js} +1 -1
  59. package/dist/client/assets/{badge-CRj9OZmH.js → badge-CzYcGjqZ.js} +1 -1
  60. package/dist/client/assets/{block-document-C0ZyZsDm.js → block-document-BulOcPyx.js} +1 -1
  61. package/dist/client/assets/{brand-context-D8t_sX2u.js → brand-context-CkwHlhfX.js} +1 -1
  62. package/dist/client/assets/{buckets-CMqEQFi-.js → buckets-Dt9m141q.js} +1 -1
  63. package/dist/client/assets/{calendar-Cemq117w.js → calendar-CEJilXwV.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-CUCWolZN.js → capability-load-error-D6fX-v6m.js} +1 -1
  65. package/dist/client/assets/{card-ZTsorux_.js → card-e6Sa893P.js} +1 -1
  66. package/dist/client/assets/category-editor-BQs9qYu3.js +1 -0
  67. package/dist/client/assets/{chat-context-mg7AJSXp.js → chat-context-DuUO64-v.js} +1 -1
  68. package/dist/client/assets/{checkbox-DShSj5U2.js → checkbox-DHnP85yY.js} +1 -1
  69. package/dist/client/assets/{cli-auth-success-B4-1_MGr.js → cli-auth-success-BY8fHwGL.js} +1 -1
  70. package/dist/client/assets/{collection-detail-CYeZq4zx.js → collection-detail-Bwitx8t1.js} +1 -1
  71. package/dist/client/assets/{collection-display-button-CLLgae5h.js → collection-display-button-Cl0680lC.js} +1 -1
  72. package/dist/client/assets/{collection-search-DhOV9p5n.js → collection-search-YuvsCInj.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-OnvEcilU.js → collection-tabs-BvdJGTHh.js} +1 -1
  74. package/dist/client/assets/{command-Dibbea2k.js → command-DBO-6Ili.js} +1 -1
  75. package/dist/client/assets/{commerce-onboarding-O9JdDDL1.js → commerce-onboarding-CO_7v-O2.js} +1 -1
  76. package/dist/client/assets/{connect-desktop-dialog-BVW9RfSD.js → connect-desktop-dialog-DUZgnkWb.js} +1 -1
  77. package/dist/client/assets/{connection-card-utBE-D2v.js → connection-card-sqzGo5b9.js} +1 -1
  78. package/dist/client/assets/{connection-detail-Csud3Yre.js → connection-detail-DBNeOrup.js} +1 -1
  79. package/dist/client/assets/{connection-form-helpers-Dxhi5JUX.js → connection-form-helpers-DAgkTcm-.js} +1 -1
  80. package/dist/client/assets/{connections-eG0u5AbV.js → connections-9HckXwT4.js} +1 -1
  81. package/dist/client/assets/{context-menu-DzT_LghF.js → context-menu--dT1SoD7.js} +1 -1
  82. package/dist/client/assets/{decopilot-DymLMSX5.js → decopilot-B71gq1IG.js} +1 -1
  83. package/dist/client/assets/{decopilot-sse-pool-B_9Ck58F.js → decopilot-sse-pool-BfjIH6C6.js} +1 -1
  84. package/dist/client/assets/{dialog-XmaoI01s.js → dialog-D72IgZaK.js} +1 -1
  85. package/dist/client/assets/{domain-settings-CAmLBuXk.js → domain-settings-GvfG_VOO.js} +1 -1
  86. package/dist/client/assets/{drawer-BlL9fNcJ.js → drawer-DUNra2qL.js} +1 -1
  87. package/dist/client/assets/{dropdown-menu-BxL_Oesx.js → dropdown-menu-DXd30ioR.js} +1 -1
  88. package/dist/client/assets/{empty-state-BKDX-z5B.js → empty-state-D0sRK0ON.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-Cgj-MAIl.js → extract-connection-data-CF6q97ac.js} +1 -1
  90. package/dist/client/assets/{file-explorer-C0cvucfS.js → file-explorer-Bz0TzuPK.js} +1 -1
  91. package/dist/client/assets/{file-type-icon-CSNKs7Z4.js → file-type-icon-CeVYC7mS.js} +1 -1
  92. package/dist/client/assets/{files-DhUrZBZn.js → files-a4BL2DOF.js} +1 -1
  93. package/dist/client/assets/{form-FHpGpaHh.js → form-c6Tjk0mK.js} +1 -1
  94. package/dist/client/assets/{general-BJI0WbHA.js → general-C-niaOyb.js} +1 -1
  95. package/dist/client/assets/{github-repo-picker-EZCjNgzf.js → github-repo-picker-CY9IQCxY.js} +1 -1
  96. package/dist/client/assets/{hooks-IT_oGQvQ.js → hooks-DIkgQaQt.js} +1 -1
  97. package/dist/client/assets/{image-field-DRWyEUOw.js → image-field-DouDEOlb.js} +1 -1
  98. package/dist/client/assets/{import-from-deco-dialog-DzEBf_VN.js → import-from-deco-dialog-Bo8H0nZ7.js} +1 -1
  99. package/dist/client/assets/{index-BuZzZ1QV.js → index-BE9xYrPB.js} +1 -1
  100. package/dist/client/assets/{index-DHRUVnya.js → index-ByGLOWBj.js} +1 -1
  101. package/dist/client/assets/{index-Cdedf8uz.js → index-Bz87ChsZ.js} +1 -1
  102. package/dist/client/assets/{index-CVMzWOGV.js → index-C1pS4_YG.js} +1 -1
  103. package/dist/client/assets/{index-D7jCdTIW.js → index-CBnRwLFs.js} +1 -1
  104. package/dist/client/assets/{index-1yg1lcn-.js → index-CMfvUJnv.js} +1 -1
  105. package/dist/client/assets/index-CNxHhuwF.js +3 -0
  106. package/dist/client/assets/{index-DkMnJduz.js → index-CWigfPgT.js} +1 -1
  107. package/dist/client/assets/{index-CWde7ZaO.js → index-Cnfeoply.js} +4 -4
  108. package/dist/client/assets/{index-BQGMzx8I.js → index-DGp9wWJa.js} +1 -1
  109. package/dist/client/assets/{index-BvJvU7P-.js → index-DhKsoRDO.js} +1 -1
  110. package/dist/client/assets/{index-CibDS78R.js → index-Dq0yW5NU.js} +3 -3
  111. package/dist/client/assets/{index-CaM6Czll.js → index-DxpQDpZ-.js} +1 -1
  112. package/dist/client/assets/{index-CjkUJcEn.js → index-pDmuEeOe.js} +1 -1
  113. package/dist/client/assets/{index-redirect-J_8mdgzu.js → index-redirect-C1GVFF5R.js} +1 -1
  114. package/dist/client/assets/{input-BharQ9Ba.js → input-_nwToKjA.js} +1 -1
  115. package/dist/client/assets/{integration-icon-D7xeeBKW.js → integration-icon-Ck8orUeY.js} +1 -1
  116. package/dist/client/assets/{label-CNn8rh7U.js → label-qEVe6vIu.js} +1 -1
  117. package/dist/client/assets/{login-3ZW42Sfj.js → login-DpKCgKK2.js} +1 -1
  118. package/dist/client/assets/{mcp-oauth-CvinfLjh.js → mcp-oauth-zL3nfx6O.js} +1 -1
  119. package/dist/client/assets/{members-DiCYx_Zt.js → members-CZS6qxHq.js} +1 -1
  120. package/dist/client/assets/{monaco-editor-DkAUtW4P.js → monaco-editor-CjxWYC_f.js} +1 -1
  121. package/dist/client/assets/{monitoring-stats-row-D3H_WiYc.js → monitoring-stats-row-B_dqdxSl.js} +1 -1
  122. package/dist/client/assets/{oauth-callback-j4MtDwQM.js → oauth-callback-DKE7VzfD.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-ai-provider-DpxAYHD5.js → oauth-callback-ai-provider-BeEi3Byk.js} +1 -1
  124. package/dist/client/assets/{onboarding-DM6cpJ18.js → onboarding-BNi0EEdl.js} +1 -1
  125. package/dist/client/assets/{org-install-DGHvj1SM.js → org-install-Djse-3Co.js} +1 -1
  126. package/dist/client/assets/{org-layout-DnmfT9_L.js → org-layout-zxXwGgug.js} +1 -1
  127. package/dist/client/assets/{organization-choice-DcjlbAwH.js → organization-choice-Dk1wgo0w.js} +1 -1
  128. package/dist/client/assets/{page-seo-form-lpyCiNGT.js → page-seo-form-DYL4unkh.js} +1 -1
  129. package/dist/client/assets/page-seo-sheet-NcSXQC2t.js +1 -0
  130. package/dist/client/assets/{popover-sVpHXD01.js → popover-BPaZIpfE.js} +1 -1
  131. package/dist/client/assets/{post-editor-C2Hp7HeY.js → post-editor-ivmjRk8O.js} +1 -1
  132. package/dist/client/assets/{preview-dialog-B68zlw0n.js → preview-dialog-DCg8NdOu.js} +1 -1
  133. package/dist/client/assets/{primitives-B_aTsglm.js → primitives-rFUF7X3j.js} +1 -1
  134. package/dist/client/assets/{profile-CJ-9GriN.js → profile-o471UoMY.js} +1 -1
  135. package/dist/client/assets/project-app-view-DmWANIgd.js +1 -0
  136. package/dist/client/assets/record-editor-aVQ6MqKD.js +1 -0
  137. package/dist/client/assets/registry-5hDGRmm6.js +2 -0
  138. package/dist/client/assets/{registry-layout-DuNPFOqV.js → registry-layout-CPNTqGx6.js} +1 -1
  139. package/dist/client/assets/{require-capability-BSpGYIBo.js → require-capability-qWO2y64O.js} +1 -1
  140. package/dist/client/assets/{required-auth-layout-dKUifx76.js → required-auth-layout-CZ5ywz4q.js} +1 -1
  141. package/dist/client/assets/{reset-password-BeLhWxxj.js → reset-password-CdIGOFtS.js} +1 -1
  142. package/dist/client/assets/{roles-C0MRwYXO.js → roles-DsrZximT.js} +1 -1
  143. package/dist/client/assets/save-referenced-block-CX9mAiL4.js +1 -0
  144. package/dist/client/assets/{save-status-1AeDenEv.js → save-status-CiygUOIM.js} +1 -1
  145. package/dist/client/assets/{schema-form-BmA17twp.js → schema-form-BbkFKB86.js} +1 -1
  146. package/dist/client/assets/{scroll-area-Bf3_N_R3.js → scroll-area-Dnau9N0n.js} +1 -1
  147. package/dist/client/assets/{search-input-CQNg811V.js → search-input-BaC0E9To.js} +1 -1
  148. package/dist/client/assets/{secrets-B66AH7QI.js → secrets-1qZp_c2T.js} +1 -1
  149. package/dist/client/assets/{sections-editor-CCuJD79h.js → sections-editor-De-lJO4z.js} +1 -1
  150. package/dist/client/assets/{select-Y_AUMh0T.js → select-D9Oa8DMc.js} +1 -1
  151. package/dist/client/assets/{select-model-U3qlRcmA.js → select-model-CWt1Bknh.js} +1 -1
  152. package/dist/client/assets/{seo-editor-Bvh6Vm4L.js → seo-editor-CM1oES4Z.js} +1 -1
  153. package/dist/client/assets/{settings-layout-CzqA3Uxy.js → settings-layout-DCzRn5Ns.js} +1 -1
  154. package/dist/client/assets/{settings-section-DVioHtrS.js → settings-section-D3Fp8p3i.js} +1 -1
  155. package/dist/client/assets/{sheet-BXqKeQxw.js → sheet-C_eprANm.js} +1 -1
  156. package/dist/client/assets/{shell-controls-DoW6WVOf.js → shell-controls-CnGQk1cT.js} +1 -1
  157. package/dist/client/assets/shell-layout-DZa9vz6i.js +1 -0
  158. package/dist/client/assets/{shell-route-loading-DUkaCE7P.js → shell-route-loading-DzfmbJgx.js} +1 -1
  159. package/dist/client/assets/{sidebar-DqT_4K0P.js → sidebar-BEDmuINV.js} +1 -1
  160. package/dist/client/assets/{skeleton-Cw4qJa_i.js → skeleton-B8TYMvV6.js} +1 -1
  161. package/dist/client/assets/{sortable.esm-BxA2WQH1.js → sortable.esm-CXuCPoS-.js} +1 -1
  162. package/dist/client/assets/{sso-BhFhqNkc.js → sso-Cu4qLJwq.js} +1 -1
  163. package/dist/client/assets/{store-Bymd3G_5.js → store-DpnFmmX-.js} +1 -1
  164. package/dist/client/assets/store-registry-CIBZe6y0.js +2 -0
  165. package/dist/client/assets/{studio-tools-CU7V_cMo.js → studio-tools-BKbKV9tq.js} +1 -1
  166. package/dist/client/assets/{switch-Bxj-Ad0T.js → switch-DZeUpv7n.js} +1 -1
  167. package/dist/client/assets/{table-DKdIhHKE.js → table-D62tnfqw.js} +1 -1
  168. package/dist/client/assets/{tabs-DrGdoQ85.js → tabs-BwmDvzOa.js} +1 -1
  169. package/dist/client/assets/{task-status-Bm_hPTvD.js → task-status-CFNgHUT3.js} +1 -1
  170. package/dist/client/assets/{textarea-BetdOrCO.js → textarea-BNgmZDC5.js} +1 -1
  171. package/dist/client/assets/{toggle-group-CAdHLcBd.js → toggle-group-Cq6Xi1dh.js} +1 -1
  172. package/dist/client/assets/{toolbar-BQ7wvi3t.js → toolbar-DdJ_ns82.js} +1 -1
  173. package/dist/client/assets/{tooltip-sqnb3qGx.js → tooltip-D_6ICuSM.js} +1 -1
  174. package/dist/client/assets/{types-BC1qOleb.js → types-Bn0LA8cd.js} +1 -1
  175. package/dist/client/assets/{use-ai-providers-Cp3hSTIG.js → use-ai-providers-gj-kkImt.js} +1 -1
  176. package/dist/client/assets/{use-automations-W44Gp9Fn.js → use-automations-Chypf-85.js} +1 -1
  177. package/dist/client/assets/{use-capability-BlYV-Teg.js → use-capability-WgQvudy9.js} +1 -1
  178. package/dist/client/assets/{use-clock-tick-BrIehbMK.js → use-clock-tick-BmlWLziO.js} +1 -1
  179. package/dist/client/assets/{use-collections-CTOUwzQ6.js → use-collections-R0ZvS-Ai.js} +1 -1
  180. package/dist/client/assets/{use-connection-BAf2dz2B.js → use-connection-DCyLx_hF.js} +1 -1
  181. package/dist/client/assets/{use-copy-D2lYhJI5.js → use-copy-mZgO-NLO.js} +1 -1
  182. package/dist/client/assets/{use-create-virtual-mcp-Bandn-gR.js → use-create-virtual-mcp-BrGJfb-E.js} +1 -1
  183. package/dist/client/assets/{use-debounced-autosave-CzxfCIM2.js → use-debounced-autosave-Cs0wa2AV.js} +1 -1
  184. package/dist/client/assets/{use-deco-credits-BDWNP8-z.js → use-deco-credits-DosFtgZr.js} +1 -1
  185. package/dist/client/assets/{use-delete-connection-CpUZKMji.js → use-delete-connection-BEyb12gk.js} +1 -1
  186. package/dist/client/assets/{use-file-configs-M_5ST81g.js → use-file-configs-BoDiyEPN.js} +1 -1
  187. package/dist/client/assets/{use-infinite-scroll-BtV8b_la.js → use-infinite-scroll-C0w6irwB.js} +1 -1
  188. package/dist/client/assets/{use-join-requests-D2YP7X14.js → use-join-requests-DWKpDg4f.js} +1 -1
  189. package/dist/client/assets/{use-mcp-client-BnL-3fEz.js → use-mcp-client-j7WzNXv1.js} +2 -2
  190. package/dist/client/assets/{use-mcp-prompts-tS_PC94p.js → use-mcp-prompts-D5hbuC8X.js} +1 -1
  191. package/dist/client/assets/{use-mcp-tools-CySq3BjS.js → use-mcp-tools-D4YogNCG.js} +1 -1
  192. package/dist/client/assets/{use-members-Cbq35Tzh.js → use-members-4evhu5YD.js} +1 -1
  193. package/dist/client/assets/{use-navigate-to-agent-EuvYqCod.js → use-navigate-to-agent-C8HlpzKH.js} +1 -1
  194. package/dist/client/assets/{use-org-auth-client-WS4wosHK.js → use-org-auth-client-DXrbIv3b.js} +1 -1
  195. package/dist/client/assets/{use-org-sso-Bk6LrdOI.js → use-org-sso-Bva6WiTR.js} +1 -1
  196. package/dist/client/assets/{use-organization-roles-B9j-6Dcx.js → use-organization-roles-CyUUrGRh.js} +1 -1
  197. package/dist/client/assets/{use-organization-settings-3MFAyDSv.js → use-organization-settings-B38ce8Is.js} +1 -1
  198. package/dist/client/assets/{use-registry-connections-BHfmXoX8.js → use-registry-connections-DANSvt2N.js} +1 -1
  199. package/dist/client/assets/{use-secrets-y2S6TiYt.js → use-secrets-B9PZDKXf.js} +1 -1
  200. package/dist/client/assets/{use-status-sounds-DyNpUQOg.js → use-status-sounds-D8dNgif9.js} +1 -1
  201. package/dist/client/assets/{use-view-mode-DZLI1vnM.js → use-view-mode-Bjc0BTTn.js} +1 -1
  202. package/dist/client/assets/{use-virtual-mcp-wWPXGxR5.js → use-virtual-mcp-BojtVjer.js} +1 -1
  203. package/dist/client/assets/useInfiniteQuery-CTySOOk0.js +1 -0
  204. package/dist/client/assets/useSuspenseInfiniteQuery-jvr57LmV.js +1 -0
  205. package/dist/client/assets/{variant-calendar-Tpu1dEgn.js → variant-calendar-nz1RBENW.js} +1 -1
  206. package/dist/client/assets/{view-mode-toggle-BWLaLdSz.js → view-mode-toggle-D7SZK2nR.js} +1 -1
  207. package/dist/client/index.html +1 -1
  208. package/dist/server/cli.js +420 -420
  209. package/dist/server/migrate.js +1 -1
  210. package/dist/server/server.js +286 -286
  211. package/package.json +1 -1
  212. package/dist/client/assets/category-editor-B0tBL-8W.js +0 -1
  213. package/dist/client/assets/index-9KMUOwdO.js +0 -3
  214. package/dist/client/assets/page-seo-sheet-C8rmvmUp.js +0 -1
  215. package/dist/client/assets/project-app-view-CEEp1aDd.js +0 -1
  216. package/dist/client/assets/record-editor-ePn5OvSY.js +0 -1
  217. package/dist/client/assets/registry-kbgjoCq0.js +0 -2
  218. package/dist/client/assets/save-referenced-block-BdvIbb0p.js +0 -1
  219. package/dist/client/assets/shell-layout-DTX4Pfyd.js +0 -1
  220. package/dist/client/assets/store-registry-Cd_IreAh.js +0 -2
  221. package/dist/client/assets/useInfiniteQuery-TTs8jKXJ.js +0 -1
  222. package/dist/client/assets/useSuspenseInfiniteQuery-DPPTyh3b.js +0 -1
@@ -1 +1 @@
1
- import{K as d,c as l,s as g,k as E,I,d as R,r as b}from"./index-CibDS78R.js";import{W as G}from"./use-mcp-client-BnL-3fEz.js";import{c as M,u as Q}from"./studio-tools-CU7V_cMo.js";const N={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},O={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function w(t,e){return{queryKey:d.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...N,organizationId:e}}},staleTime:6e4}}function h(t){const e=l.c(6),{org:s}=g();let n;e[0]!==s.id||e[1]!==s.slug?(n=w(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const i=t;let r;return e[3]!==n||e[4]!==i?(r={...n,select:i},e[3]=n,e[4]=i,e[5]=r):r=e[5],E(r)}function W(t,e){const s=l.c(3);let n;s[0]!==t||s[1]!==e?(n=w(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:i}=E(n);return i??null}function S(){const t=l.c(9),{org:e}=g(),s=Q(),n=I();let i;t[0]!==e||t[1]!==s?(i=async u=>{const o=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...u});if(!o)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return o},t[0]=e,t[1]=s,t[2]=i):i=t[2];let r;t[3]!==e||t[4]!==n?(r=u=>{n.setQueryData(d.organizationSettings(e.id),o=>({...o??N,...u}))},t[3]=e,t[4]=n,t[5]=r):r=t[5];let a;return t[6]!==i||t[7]!==r?(a={mutationFn:i,onSuccess:r},t[6]=i,t[7]=r,t[8]=a):a=t[8],R(a)}function C(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:O}function Z(){const{data:t}=h(P);return t??O}function P(t){return C(t.simple_mode)}function F(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({simple_mode:r},a),n=(r,a)=>e.mutateAsync({simple_mode:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function $(){const{data:t}=h(k);return t??null}function k(t){return t.registry_config}function j(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({registry_config:r},a),n=(r,a)=>e.mutateAsync({registry_config:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function B(){const{data:t}=h(x);return t??null}function x(t){return t.default_home_agents}function U(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({default_home_agents:r},a),n=(r,a)=>e.mutateAsync({default_home_agents:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function L(){const t=l.c(14),{org:e}=g(),s=U(),n=I();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Promise.resolve(),t[0]=i):i=t[0];const r=b.useRef(i);let a;t[1]!==e.id?(a=d.organizationSettings(e.id),t[1]=e.id,t[2]=a):a=t[2];const u=a;let o;t[3]!==u||t[4]!==n?(o=()=>n.getQueryData(u)?.default_home_agents?.ids??[],t[3]=u,t[4]=n,t[5]=o):o=t[5];const _=o;let m;t[6]!==u||t[7]!==e.slug||t[8]!==n||t[9]!==s?(m=z=>{const T=r.current.then(async()=>{const A=n.getQueryData(u),p=z(A?.default_home_agents?.ids??[]);if(p!==null){n.setQueryData(u,c=>c&&{...c,default_home_agents:{ids:p}});try{await s.mutateAsync({ids:p}),await n.refetchQueries({queryKey:d.homeNextActions(e.slug),type:"active"})}catch(c){const D=c;throw n.setQueryData(u,A),D}}});return r.current=T.catch(q),T},t[6]=u,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=m):m=t[10];const y=m;let f;return t[11]!==y||t[12]!==_?(f={currentIds:_,apply:y},t[11]=y,t[12]=_,t[13]=f):f=t[13],f}function q(){}function v(){const t=l.c(5),{org:e}=g(),s=$();let n;t[0]!==e.id?(n=G.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const i=n;let r;return t[2]!==i||t[3]!==s?(r=a=>{if(!s)return a===i;const u=s.registries[a];return u?u.enabled:a===i},t[2]=i,t[3]=s,t[4]=r):r=t[4],r}export{L as a,v as b,W as c,Z as d,F as e,$ as f,j as g,w as o,B as u};
1
+ import{K as d,c as l,s as g,k as E,I,d as R,r as b}from"./index-Dq0yW5NU.js";import{W as G}from"./use-mcp-client-j7WzNXv1.js";import{c as M,u as Q}from"./studio-tools-BKbKV9tq.js";const N={organizationId:"",sidebar_items:null,enabled_plugins:null,registry_config:null,simple_mode:null,default_home_agents:null},O={tiers:{fast:null,smart:null,thinking:null,image:null,web_search:null,deep_research:null}};function w(t,e){return{queryKey:d.organizationSettings(e),queryFn:async()=>{try{return await M(t,"ORGANIZATION_SETTINGS_GET",{})}catch{return{...N,organizationId:e}}},staleTime:6e4}}function h(t){const e=l.c(6),{org:s}=g();let n;e[0]!==s.id||e[1]!==s.slug?(n=w(s.slug,s.id),e[0]=s.id,e[1]=s.slug,e[2]=n):n=e[2];const i=t;let r;return e[3]!==n||e[4]!==i?(r={...n,select:i},e[3]=n,e[4]=i,e[5]=r):r=e[5],E(r)}function W(t,e){const s=l.c(3);let n;s[0]!==t||s[1]!==e?(n=w(e,t),s[0]=t,s[1]=e,s[2]=n):n=s[2];const{data:i}=E(n);return i??null}function S(){const t=l.c(9),{org:e}=g(),s=Q(),n=I();let i;t[0]!==e||t[1]!==s?(i=async u=>{const o=await s.call("ORGANIZATION_SETTINGS_UPDATE",{organizationId:e.id,...u});if(!o)throw new Error("ORGANIZATION_SETTINGS_UPDATE returned no payload");return o},t[0]=e,t[1]=s,t[2]=i):i=t[2];let r;t[3]!==e||t[4]!==n?(r=u=>{n.setQueryData(d.organizationSettings(e.id),o=>({...o??N,...u}))},t[3]=e,t[4]=n,t[5]=r):r=t[5];let a;return t[6]!==i||t[7]!==r?(a={mutationFn:i,onSuccess:r},t[6]=i,t[7]=r,t[8]=a):a=t[8],R(a)}function C(t){return t?.tiers?{tiers:{fast:t.tiers.fast??null,smart:t.tiers.smart??null,thinking:t.tiers.thinking??null,image:t.tiers.image??null,web_search:t.tiers.web_search??null,deep_research:t.tiers.deep_research??null}}:O}function Z(){const{data:t}=h(P);return t??O}function P(t){return C(t.simple_mode)}function F(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({simple_mode:r},a),n=(r,a)=>e.mutateAsync({simple_mode:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function $(){const{data:t}=h(k);return t??null}function k(t){return t.registry_config}function j(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({registry_config:r},a),n=(r,a)=>e.mutateAsync({registry_config:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function B(){const{data:t}=h(x);return t??null}function x(t){return t.default_home_agents}function U(){const t=l.c(7),e=S();let s,n;t[0]!==e?(s=(r,a)=>e.mutate({default_home_agents:r},a),n=(r,a)=>e.mutateAsync({default_home_agents:r},a),t[0]=e,t[1]=s,t[2]=n):(s=t[1],n=t[2]);let i;return t[3]!==e||t[4]!==s||t[5]!==n?(i={...e,mutate:s,mutateAsync:n},t[3]=e,t[4]=s,t[5]=n,t[6]=i):i=t[6],i}function L(){const t=l.c(14),{org:e}=g(),s=U(),n=I();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=Promise.resolve(),t[0]=i):i=t[0];const r=b.useRef(i);let a;t[1]!==e.id?(a=d.organizationSettings(e.id),t[1]=e.id,t[2]=a):a=t[2];const u=a;let o;t[3]!==u||t[4]!==n?(o=()=>n.getQueryData(u)?.default_home_agents?.ids??[],t[3]=u,t[4]=n,t[5]=o):o=t[5];const _=o;let m;t[6]!==u||t[7]!==e.slug||t[8]!==n||t[9]!==s?(m=z=>{const T=r.current.then(async()=>{const A=n.getQueryData(u),p=z(A?.default_home_agents?.ids??[]);if(p!==null){n.setQueryData(u,c=>c&&{...c,default_home_agents:{ids:p}});try{await s.mutateAsync({ids:p}),await n.refetchQueries({queryKey:d.homeNextActions(e.slug),type:"active"})}catch(c){const D=c;throw n.setQueryData(u,A),D}}});return r.current=T.catch(q),T},t[6]=u,t[7]=e.slug,t[8]=n,t[9]=s,t[10]=m):m=t[10];const y=m;let f;return t[11]!==y||t[12]!==_?(f={currentIds:_,apply:y},t[11]=y,t[12]=_,t[13]=f):f=t[13],f}function q(){}function v(){const t=l.c(5),{org:e}=g(),s=$();let n;t[0]!==e.id?(n=G.REGISTRY(e.id),t[0]=e.id,t[1]=n):n=t[1];const i=n;let r;return t[2]!==i||t[3]!==s?(r=a=>{if(!s)return a===i;const u=s.registries[a];return u?u.enabled:a===i},t[2]=i,t[3]=s,t[4]=r):r=t[4],r}export{L as a,v as b,W as c,Z as d,F as e,$ as f,j as g,w as o,B as u};
@@ -1 +1 @@
1
- import{c as C,s as R}from"./index-CibDS78R.js";import{u as p}from"./use-connection-BAf2dz2B.js";import{W as a}from"./use-mcp-client-BnL-3fEz.js";import{f as y}from"./use-organization-settings-3MFAyDSv.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,s as R}from"./index-Dq0yW5NU.js";import{u as p}from"./use-connection-DCyLx_hF.js";import{W as a}from"./use-mcp-client-j7WzNXv1.js";import{f as y}from"./use-organization-settings-B38ce8Is.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 n,s as r,K as c,a5 as f,I as y,d as S}from"./index-CibDS78R.js";import{u as l}from"./studio-tools-CU7V_cMo.js";function C(){const e=n.c(7),{org:o}=r(),u=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,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:a}=f(s);return a.secrets}function p(){const e=n.c(8),{org:o}=r(),u=l(),i=y();let t;e[0]!==u?(t=async d=>await u.call("SECRET_CREATE",{...d}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=a):a=e[7],S(a)}export{p as a,C as u};
1
+ import{c as n,s as r,K as c,a5 as f,I as y,d as S}from"./index-Dq0yW5NU.js";import{u as l}from"./studio-tools-BKbKV9tq.js";function C(){const e=n.c(7),{org:o}=r(),u=l();let i;e[0]!==o.id?(i=c.secrets(o.id),e[0]=o.id,e[1]=i):i=e[1];let t;e[2]!==u?(t=async()=>await u.call("SECRET_LIST",{}),e[2]=u,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:a}=f(s);return a.secrets}function p(){const e=n.c(8),{org:o}=r(),u=l(),i=y();let t;e[0]!==u?(t=async d=>await u.call("SECRET_CREATE",{...d}),e[0]=u,e[1]=t):t=e[1];let s;e[2]!==o||e[3]!==i?(s=()=>{i.invalidateQueries({queryKey:c.secrets(o.id)})},e[2]=o,e[3]=i,e[4]=s):s=e[4];let a;return e[5]!==t||e[6]!==s?(a={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=a):a=e[7],S(a)}export{p as a,C as u};
@@ -1 +1 @@
1
- import{r as o,c as m,F as h}from"./index-CibDS78R.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-B_9Ck58F.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:r,enabled:t=!0,onStep:n,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:r,onStep:n,onFinish:u,onTaskStatus:f});l.current={taskId:r,onStep:n,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=E=>{if(!t||!e)return()=>{};const k=T=>{let a;try{a=JSON.parse(T.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}E()}};return y.subscribe(e,k)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function N(s){const e=m.c(5),[r]=h();let t;e[0]!==r?(t=u=>{r.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=r,e[1]=t):t=e[1];let n;e[2]!==s||e[3]!==t?(n={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=n):n=e[4],D(n)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{N as u};
1
+ import{r as o,c as m,F as h}from"./index-Dq0yW5NU.js";import{p as R,q as I}from"./question-004-sINsf4GQ.js";import{d as y,D as S}from"./decopilot-sse-pool-BfjIH6C6.js";const b=()=>0;function D(s){const{orgSlug:e,taskId:r,enabled:t=!0,onStep:n,onFinish:u,onTaskStatus:f}=s,l=o.useRef({taskId:r,onStep:n,onFinish:u,onTaskStatus:f});l.current={taskId:r,onStep:n,onFinish:u,onTaskStatus:f};const i=o.useRef(null),p=o.useRef(t),d=o.useRef(e);(!i.current||p.current!==t||d.current!==e)&&(p.current=t,d.current=e,i.current=E=>{if(!t||!e)return()=>{};const k=T=>{let a;try{a=JSON.parse(T.data)}catch{return}const c=l.current;if(!(c.taskId&&a.subject!==c.taskId)){switch(a.type){case S.STEP:c.onStep?.(a);break;case S.FINISH:c.onFinish?.(a);break;case S.THREAD_STATUS:c.onTaskStatus?.(a);break}E()}};return y.subscribe(e,k)}),o.useSyncExternalStore(i.current,b,b)}const O=new Set(["completed","failed","requires_action"]);function N(s){const e=m.c(5),[r]=h();let t;e[0]!==r?(t=u=>{r.enableSounds&&O.has(u.data.status)&&R(I.dataUri).catch(_)},e[0]=r,e[1]=t):t=e[1];let n;e[2]!==s||e[3]!==t?(n={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=n):n=e[4],D(n)}function _(s){console.warn("[status-sounds] playback failed:",s)}export{N as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-CibDS78R.js";import{u as w}from"./tooltip-sqnb3qGx.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.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]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
1
+ import{c as p,r as f}from"./index-Dq0yW5NU.js";import{u as w}from"./tooltip-D_6ICuSM.js";function S(m,M){const e=p.c(12),u=M===void 0?"cards":M,o=w(),b=f.useRef(o),s=m?`deco-view-mode-${m}`:"deco-view-mode";let i;e[0]!==u||e[1]!==s?(i=()=>{const r=globalThis.localStorage?.getItem(s);return r==="cards"||r==="table"?r:u},e[0]=u,e[1]=s,e[2]=i):i=e[2];const[t,g]=f.useState(i);let l;e[3]!==s?(l=r=>{g(r),globalThis.localStorage?.setItem(s,r)},e[3]=s,e[4]=l):l=e[4];const d=l;let c,a;e[5]!==o||e[6]!==t?(c=()=>{!b.current&&o&&t==="table"&&g("cards"),b.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]!==d||e[10]!==t?(n=[t,d],e[9]=d,e[10]=t,e[11]=n):n=e[11],n}export{S as u};
@@ -1 +1 @@
1
- import{c as a,s as d,aI as p,k as P}from"./index-CibDS78R.js";import{b as L,a as S,u as V,c as _}from"./use-collections-CTOUwzQ6.js";import{S as g,u as I}from"./use-mcp-client-BnL-3fEz.js";function v(s){const t=a.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}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return _(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return V(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return S(t.id,"VIRTUAL_MCP",n)}export{b as a,$ as b,E as c,v as u,R as v};
1
+ import{c as a,s as d,aI as p,k as P}from"./index-Dq0yW5NU.js";import{b as L,a as S,u as V,c as _}from"./use-collections-R0ZvS-Ai.js";import{S as g,u as I}from"./use-mcp-client-j7WzNXv1.js";function v(s){const t=a.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}=d();let o;t[2]!==i.id||t[3]!==i.slug?(o={connectionId:g,orgId:i.id,orgSlug:i.slug},t[2]=i.id,t[3]=i.slug,t[4]=o):o=t[4];const l=I(o);return L(i.id,"VIRTUAL_MCP",l,n)}function R(s,t,e){return _(s,"VIRTUAL_MCP",t??void 0,e)}function b(s){const t=a.c(3),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);return V(e.id,"VIRTUAL_MCP",s??void 0,i)}function E(s){const t=a.c(15),{org:e}=d();let n;t[0]!==e.id||t[1]!==e.slug?(n={connectionId:g,orgId:e.id,orgSlug:e.slug},t[0]=e.id,t[1]=e.slug,t[2]=n):n=t[2];const i=I(n);let o,l,c;t[3]!==s||t[4]!==e.id?(o=[...s].sort(),c=P,l=p.virtualMcpLastUsed(e.id,o),t[3]=s,t[4]=e.id,t[5]=o,t[6]=l,t[7]=c):(o=t[5],l=t[6],c=t[7]);const C=o.length>0;let u;t[8]!==i||t[9]!==o?(u=async()=>{const M=(await i.callTool({name:"VIRTUAL_MCP_LAST_USED_LIST",arguments:{ids:o}})).structuredContent??{items:[]},f=new Map;for(const m of M.items)f.set(m.id,m);return f},t[8]=i,t[9]=o,t[10]=u):u=t[10];let r;return t[11]!==l||t[12]!==C||t[13]!==u?(r={queryKey:l,enabled:C,staleTime:3e4,queryFn:u},t[11]=l,t[12]=C,t[13]=u,t[14]=r):r=t[14],c(r)}function $(){const s=a.c(3),{org:t}=d();let e;s[0]!==t.id||s[1]!==t.slug?(e={connectionId:g,orgId:t.id,orgSlug:t.slug},s[0]=t.id,s[1]=t.slug,s[2]=e):e=s[2];const n=I(e);return S(t.id,"VIRTUAL_MCP",n)}export{b as a,$ as b,E as c,v as u,R as v};
@@ -0,0 +1 @@
1
+ import{I as u}from"./use-infinite-scroll-C0w6irwB.js";import{cH as i}from"./index-Dq0yW5NU.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -0,0 +1 @@
1
+ import{I as s}from"./use-infinite-scroll-C0w6irwB.js";import{cH as u,az as n}from"./index-Dq0yW5NU.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{c as R,r as K,j as a,l as W,B as O}from"./index-CibDS78R.js";import{P as Q,f as it}from"./agent-icon-CWL8yyID.js";import{n as at}from"./ChevronLeft-DBLK1B2w.js";import{i as lt}from"./ChevronRight-BTHZFGXY.js";import{S as X}from"./scroll-area-Bf3_N_R3.js";import{T as ct,b as mt,a as pt}from"./tooltip-sqnb3qGx.js";import{V as ft}from"./view-mode-toggle-BWLaLdSz.js";import"./AlertCircle-CF55w0Qv.js";import"./Tool01-D3t3Vp74.js";import"./SwitchHorizontal01-CTP3QgCa.js";import"./Settings02-N-Ana7--.js";import"./XCircle-DLXyiN8q.js";import"./ArrowRight-BA4_GdNm.js";import"./ArrowUpRight-BTde5R2r.js";import"./ZapSquare-Cgp7-LaR.js";import"./Users03-dAhfK1BT.js";import"./CheckCircle-DQwBvZ5M.js";import"./Check-HrJ9KYPP.js";import"./ChevronDown-6nGucI8T.js";import"./ChevronUp-BGbO7ZW4.js";import"./DotsVertical-C1QWNK9G.js";import"./Stars02-D2KDaPxV.js";import"./Eye-Zq99Eg_e.js";import"./ZoomOut-BoT343DK.js";import"./Globe01-CKTHEStH.js";import"./FilterLines-BgpWnKdw.js";import"./Star01-BRAQtDVb.js";import"./Globe04-Qx98ZXam.js";import"./HardDrive-CL151dqv.js";import"./Key01-B7s70Ooj.js";import"./LayoutLeft-Cm9TpsmY.js";import"./LinkExternal01-cjHNpjh3.js";import"./Monitor01-Dxbb29dH.js";import"./Sun-DVK2dAAz.js";import"./Palette-DHKzDXd8.js";import"./Play-qR9qQdIa.js";import"./Plus-CJb1Hryd.js";import"./SearchMd-D-jnoknh.js";import"./Shield01-BtzgrFPi.js";import"./Stars01-QTJU6BBU.js";import"./Trash01-CbZke0tL.js";import"./Upload01-DQeSm5tc.js";import"./User01-CjrUCkl0.js";import"./Users01-Cwa3eGsq.js";import"./XClose-DQFAtoYY.js";import"./X-CcKHBe4d.js";import"./Zap-C4ZC506K.js";import"./use-clock-tick-BrIehbMK.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-D2lYhJI5.js";import"./file-type-icon-CSNKs7Z4.js";import"./dialog-XmaoI01s.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-BC1qOleb.js";import"./use-mcp-client-BnL-3fEz.js";import"./auth-DqCFlQCV.js";import"./chat-context-mg7AJSXp.js";import"./hooks-IT_oGQvQ.js";import"./decopilot-sse-pool-B_9Ck58F.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-wWPXGxR5.js";import"./use-collections-CTOUwzQ6.js";import"./use-ai-providers-Cp3hSTIG.js";import"./studio-tools-CU7V_cMo.js";import"./use-organization-settings-3MFAyDSv.js";import"./shell-layout-DTX4Pfyd.js";import"./avatar-OxBQrTwT.js";import"./required-auth-layout-dKUifx76.js";import"./use-org-sso-Bk6LrdOI.js";import"./sheet-BXqKeQxw.js";import"./integration-icon-D7xeeBKW.js";import"./use-navigate-to-agent-EuvYqCod.js";import"./use-connection-BAf2dz2B.js";import"./use-mcp-prompts-tS_PC94p.js";import"./form-FHpGpaHh.js";import"./label-CNn8rh7U.js";import"./input-BharQ9Ba.js";import"./select-Y_AUMh0T.js";const dt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),ut=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),ht=/\/flags\/multivariate\/[^/]+\.ts$/;function xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function gt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e;if(typeof t!="string"||typeof r!="string")return null;const n=new Date(t),c=new Date(r);return Number.isNaN(n.getTime())||Number.isNaN(c.getTime())||c.getTime()<=n.getTime()?null:{start:n,end:c}}function Z(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(dt.has(r)){const n=gt(e);n&&t.push(n);return}if(ut.has(r)){const n=e.matchers;if(Array.isArray(n))for(const c of n)Z(c,t)}}}function bt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!ht.test(t))return!1;const r=e.variants;return Array.isArray(r)}function yt(e){if(typeof e=="string"){const i=e.trim();if(i.length===0)return null;try{const m=new URL(i).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return i.length>80?`${i.slice(0,77)}…`:i}if(!e||typeof e!="object")return null;const t=e,r=t.config,c=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,c?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const i of o)if(typeof i=="string"&&i.trim().length>0)return i.trim();const l=t.__resolveType;if(typeof l=="string"){const s=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(s.length>0)return s}return null}function vt(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 H(e,t,r,n,c){if(bt(e)){const o=vt(n),l=e.variants,i=e.__resolveType;l.forEach((s,m)=>{if(!s||typeof s!="object")return;const p=s,d=[];if(Z(p.rule,d),d.length===0)return;const x=yt(p.value)??(o||r);for(const g of d)c.push({blockKey:t,blockLabel:r,innerPath:o,variantIndex:m,start:g.start,end:g.end,label:x,flagResolveType:i})});for(let s=0;s<l.length;s++){const m=l[s];m&&typeof m=="object"&&H(m.value,t,r,[...n,"variants",s,"value"],c)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)H(e[o],t,r,[...n,o],c);return}if(e&&typeof e=="object")for(const[o,l]of Object.entries(e))o!=="__resolveType"&&H(l,t,r,[...n,o],c)}function Tt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))H(n,r,xt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function jt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,c)=>{const o=c*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Nt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function tt(e,t){return e.get(t)??Nt}const kt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=["January","February","March","April","May","June","July","August","September","October","November","December"],wt=1440*60*1e3;function L(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function $(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function I(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function G(e,t){return Math.round((L(e).getTime()-L(t).getTime())/wt)}function _t(e){const t=I(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const c=[];for(let o=0;o<7;o++)c.push(I(t,n*7+o));r.push(c)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Mt(e,t){const r=L(e[0]),n=I(r,7),c=[];for(const i of t){const s=L(i.start),m=L(i.end);if(m.getTime()<r.getTime()||s.getTime()>=n.getTime())continue;const p=s.getTime()<r.getTime()?r:s,d=m.getTime()>=n.getTime()?I(n,-1):m,u=G(p,r),x=G(d,p)+1;x<=0||c.push({variant:i,startCol:u,span:x})}c.sort((i,s)=>i.startCol-s.startCol||s.span-i.span||i.variant.blockKey.localeCompare(s.variant.blockKey));const o=[],l=[];for(const i of c){let s=o.findIndex(m=>m<=i.startCol);s===-1&&(s=o.length,o.push(0)),o[s]=i.startCol+i.span,l.push({...i,lane:s})}return l}const U=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function St(e){return`${U.format(e.start)} → ${U.format(e.end)}`}function At(e){const t=R.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=a.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let c;t[2]!==r.innerPath?(c=r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=c):c=t[3];let o;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(o=r.label!==r.blockLabel&&r.label!==r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=o):o=t[7];let l;t[8]!==r?(l=St(r),t[8]=r,t[9]=l):l=t[9];let i;t[10]!==l?(i=a.jsx("div",{className:"mt-1",children:l}),t[10]=l,t[11]=i):i=t[11];let s;return t[12]!==n||t[13]!==c||t[14]!==o||t[15]!==i?(s=a.jsx(pt,{children:a.jsxs("div",{className:"text-xs",children:[n,c,o,i]})}),t[12]=n,t[13]=c,t[14]=o,t[15]=i,t[16]=s):s=t[16],s}function nt(e){const t=R.c(14),{variant:r,color:n,style:c,children:o}=e;let l;t[0]!==n.bg||t[1]!==n.text||t[2]!==c?(l={background:n.bg,color:n.text,borderRadius:4,...c},t[0]=n.bg,t[1]=n.text,t[2]=c,t[3]=l):l=t[3];let i;t[4]!==o?(i=a.jsx("span",{className:"truncate",children:o}),t[4]=o,t[5]=i):i=t[5];let s;t[6]!==l||t[7]!==i?(s=a.jsx(ct,{asChild:!0,children:a.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:l,children:i})}),t[6]=l,t[7]=i,t[8]=s):s=t[8];let m;t[9]!==r?(m=a.jsx(At,{variant:r}),t[9]=r,t[10]=m):m=t[10];let p;return t[11]!==s||t[12]!==m?(p=a.jsxs(mt,{children:[s,m]}),t[11]=s,t[12]=m,t[13]=p):p=t[13],p}function dr(e){const t=R.c(39),{decofile:r}=e,[n,c]=K.useState("calendar"),[o,l]=K.useState(Ct);let i,s;t[0]!==r?(s=Tt(r),i=jt(s.map(Et)),t[0]=r,t[1]=i,t[2]=s):(i=t[1],s=t[2]);const m=i;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(rt(new Date)),t[3]=p):p=t[3];const d=p;let u;t[4]!==n?(u=()=>l(k=>n==="calendar"?$(k,-1):$(k,-3)),t[4]=n,t[5]=u):u=t[5];const x=u;let g;t[6]!==n?(g=()=>l(k=>n==="calendar"?$(k,1):$(k,3)),t[6]=n,t[7]=g):g=t[7];const w=g;let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(O,{variant:"outline",size:"sm",onClick:d,children:"Today"}),t[8]=N):N=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(at,{size:16}),t[9]=E):E=t[9];let _;t[10]!==x?(_=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:x,"aria-label":"Previous",children:E}),t[10]=x,t[11]=_):_=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(lt,{size:16}),t[12]=f):f=t[12];let b;t[13]!==w?(b=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:w,"aria-label":"Next",children:f}),t[13]=w,t[14]=b):b=t[14];const M=et[o.getMonth()];let y;t[15]!==o?(y=o.getFullYear(),t[15]=o,t[16]=y):y=t[16];let v;t[17]!==M||t[18]!==y?(v=a.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[M," ",y]}),t[17]=M,t[18]=y,t[19]=v):v=t[19];let T;t[20]!==v||t[21]!==_||t[22]!==b?(T=a.jsxs("div",{className:"flex items-center gap-2",children:[N,_,b,v]}),t[20]=v,t[21]=_,t[22]=b,t[23]=T):T=t[23];let C;t[24]===Symbol.for("react.memo_cache_sentinel")?(C={value:"calendar",icon:a.jsx(Q,{}),label:"Calendar"},t[24]=C):C=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=[C,{value:"timeline",icon:a.jsx(it,{}),label:"Timeline"}],t[25]=j):j=t[25];let h;t[26]!==n?(h=a.jsx(ft,{value:n,onValueChange:c,options:j}),t[26]=n,t[27]=h):h=t[27];let S;t[28]!==T||t[29]!==h?(S=a.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[T,h]}),t[28]=T,t[29]=h,t[30]=S):S=t[30];let A;t[31]!==m||t[32]!==o||t[33]!==s||t[34]!==n?(A=s.length===0?a.jsx(Dt,{}):n==="calendar"?a.jsx($t,{monthStart:o,variants:s,colorMap:m}):a.jsx(Vt,{monthStart:o,variants:s,colorMap:m}),t[31]=m,t[32]=o,t[33]=s,t[34]=n,t[35]=A):A=t[35];let D;return t[36]!==S||t[37]!==A?(D=a.jsxs("div",{className:"flex h-full w-full flex-col",children:[S,A]}),t[36]=S,t[37]=A,t[38]=D):D=t[38],D}function Et(e){return e.blockKey}function Ct(){return rt(new Date)}function Dt(){const e=R.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a.jsx(Q,{size:24,className:"text-muted-foreground/60"}),a.jsx("div",{children:"No scheduled variants."}),a.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]}),e[0]=t):t=e[0],t}const z=20,J=2,q=28;function $t(e){const t=R.c(17),{monthStart:r,variants:n,colorMap:c}=e;let o,l,i,s,m;if(t[0]!==c||t[1]!==r||t[2]!==n){const u=_t(r),x=L(new Date);o=X,m="flex-1 min-h-0",l="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:kt.map(Rt)}),t[8]=i):i=t[8],s=u.map((g,w)=>{const N=Mt(g,n),E=N.reduce(Lt,0),_=q+E*(z+J)+8;return a.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:_},children:[g.map((f,b)=>{const M=f.getMonth()===r.getMonth(),y=f.getTime()===x.getTime();return a.jsx("div",{className:W("border-r last:border-r-0 px-2 pt-1.5 text-xs",M?"bg-background":"bg-muted/30 text-muted-foreground"),children:a.jsx("span",{className:W("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",y&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},b)}),N.map((f,b)=>{const M=tt(c,f.variant.blockKey),y=q+f.lane*(z+J),v=f.startCol/7*100,T=f.span/7*100;return a.jsxs(nt,{variant:f.variant,color:M,style:{top:y,left:`calc(${v}% + 2px)`,width:`calc(${T}% - 4px)`,height:z},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&a.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${w}-${b}`)})]},w)}),t[0]=c,t[1]=r,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=s,t[7]=m}else o=t[3],l=t[4],i=t[5],s=t[6],m=t[7];let p;t[9]!==l||t[10]!==i||t[11]!==s?(p=a.jsxs("div",{className:l,children:[i,s]}),t[9]=l,t[10]=i,t[11]=s,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==m||t[15]!==p?(d=a.jsx(o,{className:m,children:p}),t[13]=o,t[14]=m,t[15]=p,t[16]=d):d=t[16],d}function Lt(e,t){return Math.max(e,t.lane+1)}function Rt(e){return a.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const V=4,Pt=32,P=240;function Vt(e){const t=R.c(27),{monthStart:r,variants:n,colorMap:c}=e,o=r;let l,i,s,m,p,d;if(t[0]!==c||t[1]!==r||t[2]!==o||t[3]!==n){const g=$(r,V),w=new Date,N=new Map;for(const j of n){const h=N.get(j.blockKey)??[];h.push(j),N.set(j.blockKey,h)}const E=Array.from(N.entries()).sort(Ot),_=g.getTime()-o.getTime(),f=j=>(Math.max(o.getTime(),Math.min(g.getTime(),j.getTime()))-o.getTime())/_*100;let b;t[10]!==o?(b=(j,h)=>$(o,h),t[10]=o,t[11]=b):b=t[11];const M=Array.from({length:V},b),y=w.getTime()>=o.getTime()&&w.getTime()<=g.getTime()?f(w):null;l=X,d="flex-1 min-h-0",i="min-w-[900px] relative";let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:P},children:"Variant / Block"}),t[12]=v):v=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},t[13]=T):T=t[13];const C=M.map(It);t[14]!==C?(s=a.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[v,a.jsx("div",{className:"flex-1 grid",style:T,children:C})]}),t[14]=C,t[15]=s):s=t[15],t[16]!==y?(m=y!==null&&a.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${P}px + (100% - ${P}px) * ${y} / 100)`},children:a.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:"Today"})}),t[16]=y,t[17]=m):m=t[17],p=E.map(j=>{const[h,S]=j,A=tt(c,h),D=S[0]?.blockLabel??h;return a.jsxs("div",{children:[a.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:a.jsx("div",{className:"px-3 truncate",style:{width:P},children:D})}),S.map((k,st)=>a.jsxs("div",{className:"flex border-b items-center",style:{height:Pt},children:[a.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:P},children:[a.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:A.bg}}),a.jsx("span",{className:"truncate text-foreground/80",children:k.label})]}),a.jsxs("div",{className:"relative flex-1 h-full",children:[a.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},children:M.map(Ht)}),(()=>{const B=Math.max(k.start.getTime(),o.getTime()),F=Math.min(k.end.getTime(),g.getTime());if(F<=B)return null;const Y=f(new Date(B)),ot=f(new Date(F))-Y;return a.jsx(nt,{variant:k,color:A,style:{top:"50%",transform:"translateY(-50%)",left:`${Y}%`,width:`calc(${ot}% - 2px)`,height:22},children:k.label})})()]})]},st))]},h)}),t[0]=c,t[1]=r,t[2]=o,t[3]=n,t[4]=l,t[5]=i,t[6]=s,t[7]=m,t[8]=p,t[9]=d}else l=t[4],i=t[5],s=t[6],m=t[7],p=t[8],d=t[9];let u;t[18]!==i||t[19]!==s||t[20]!==m||t[21]!==p?(u=a.jsxs("div",{className:i,children:[s,m,p]}),t[18]=i,t[19]=s,t[20]=m,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==l||t[24]!==d||t[25]!==u?(x=a.jsx(l,{className:d,children:u}),t[23]=l,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function Ht(e,t){return a.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function It(e,t){return a.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[et[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Ot(e,t){return e[0].localeCompare(t[0])}export{dr as VariantCalendar};
1
+ import{c as R,r as K,j as a,l as W,B as O}from"./index-Dq0yW5NU.js";import{P as Q,f as it}from"./agent-icon-Cg7qESLO.js";import{n as at}from"./ChevronLeft-njq8SkK6.js";import{i as lt}from"./ChevronRight-C5wvGTH8.js";import{S as X}from"./scroll-area-Dnau9N0n.js";import{T as ct,b as mt,a as pt}from"./tooltip-D_6ICuSM.js";import{V as ft}from"./view-mode-toggle-D7SZK2nR.js";import"./AlertCircle-CZWjmLDT.js";import"./Tool01-Dv9dCbp6.js";import"./SwitchHorizontal01-CEUgiRB1.js";import"./Settings02-BoqCpz_o.js";import"./XCircle-j1-GVtiw.js";import"./ArrowRight-DswQGw32.js";import"./ArrowUpRight-zJbKnVEx.js";import"./ZapSquare-Cl9Iu0Yu.js";import"./Users03-B41w1ewc.js";import"./CheckCircle-DD9zrZHy.js";import"./Check-e4E4gv9b.js";import"./ChevronDown-P1cR1p1z.js";import"./ChevronUp-DMBQslpk.js";import"./DotsVertical-DVx42NIt.js";import"./Stars02-DnTT2sBI.js";import"./Eye-BkHY3voI.js";import"./ZoomOut-DG8OwHO2.js";import"./Globe01-Cq-Rbldi.js";import"./FilterLines-rKEHnpC8.js";import"./Star01-DhLGcNbl.js";import"./Globe04-CtEF3BRe.js";import"./HardDrive-7UiN3uqO.js";import"./Key01-v4LCWUSc.js";import"./LayoutLeft-BrCMpwSK.js";import"./LinkExternal01-DtT4L4N6.js";import"./Monitor01-D9depcVp.js";import"./Sun-1K7RcAWZ.js";import"./Palette-D_iY1hQ7.js";import"./Play-DdLK5xgI.js";import"./Plus-Cd0ypUPB.js";import"./SearchMd-CKCNrxV5.js";import"./Shield01-Wa9NR2vn.js";import"./Stars01-WeiMgRuc.js";import"./Trash01-BC1OhQlq.js";import"./Upload01-BHKvZ87r.js";import"./User01-B9BKmOI0.js";import"./Users01-Dy2qezq_.js";import"./XClose-BgQasJGJ.js";import"./X-CNdGRyYk.js";import"./Zap-Cd1AcQhh.js";import"./use-clock-tick-BmlWLziO.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-mZgO-NLO.js";import"./file-type-icon-CeVYC7mS.js";import"./dialog-D72IgZaK.js";import"./tab-id-BptcWVWa.js";import"./content-blocks-o63cs2vh.js";import"./types-Bn0LA8cd.js";import"./use-mcp-client-j7WzNXv1.js";import"./auth-rR0qxEot.js";import"./chat-context-DuUO64-v.js";import"./hooks-DIkgQaQt.js";import"./decopilot-sse-pool-BfjIH6C6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-BojtVjer.js";import"./use-collections-R0ZvS-Ai.js";import"./use-ai-providers-gj-kkImt.js";import"./studio-tools-BKbKV9tq.js";import"./use-organization-settings-B38ce8Is.js";import"./shell-layout-DZa9vz6i.js";import"./avatar-DYinNJvl.js";import"./required-auth-layout-CZ5ywz4q.js";import"./use-org-sso-Bva6WiTR.js";import"./sheet-C_eprANm.js";import"./integration-icon-Ck8orUeY.js";import"./use-navigate-to-agent-C8HlpzKH.js";import"./use-connection-DCyLx_hF.js";import"./use-mcp-prompts-D5hbuC8X.js";import"./form-c6Tjk0mK.js";import"./label-qEVe6vIu.js";import"./input-_nwToKjA.js";import"./select-D9Oa8DMc.js";const dt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),ut=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),ht=/\/flags\/multivariate\/[^/]+\.ts$/;function xt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function gt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e;if(typeof t!="string"||typeof r!="string")return null;const n=new Date(t),c=new Date(r);return Number.isNaN(n.getTime())||Number.isNaN(c.getTime())||c.getTime()<=n.getTime()?null:{start:n,end:c}}function Z(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(dt.has(r)){const n=gt(e);n&&t.push(n);return}if(ut.has(r)){const n=e.matchers;if(Array.isArray(n))for(const c of n)Z(c,t)}}}function bt(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!ht.test(t))return!1;const r=e.variants;return Array.isArray(r)}function yt(e){if(typeof e=="string"){const i=e.trim();if(i.length===0)return null;try{const m=new URL(i).pathname.split("/").filter(Boolean),p=m[m.length-1];if(p)return decodeURIComponent(p)}catch{}return i.length>80?`${i.slice(0,77)}…`:i}if(!e||typeof e!="object")return null;const t=e,r=t.config,c=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,c?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const i of o)if(typeof i=="string"&&i.trim().length>0)return i.trim();const l=t.__resolveType;if(typeof l=="string"){const s=(l.split("/").pop()??l).replace(/\.(tsx?|jsx?)$/i,"");if(s.length>0)return s}return null}function vt(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 H(e,t,r,n,c){if(bt(e)){const o=vt(n),l=e.variants,i=e.__resolveType;l.forEach((s,m)=>{if(!s||typeof s!="object")return;const p=s,d=[];if(Z(p.rule,d),d.length===0)return;const x=yt(p.value)??(o||r);for(const g of d)c.push({blockKey:t,blockLabel:r,innerPath:o,variantIndex:m,start:g.start,end:g.end,label:x,flagResolveType:i})});for(let s=0;s<l.length;s++){const m=l[s];m&&typeof m=="object"&&H(m.value,t,r,[...n,"variants",s,"value"],c)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)H(e[o],t,r,[...n,o],c);return}if(e&&typeof e=="object")for(const[o,l]of Object.entries(e))o!=="__resolveType"&&H(l,t,r,[...n,o],c)}function Tt(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))H(n,r,xt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function jt(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,c)=>{const o=c*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Nt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function tt(e,t){return e.get(t)??Nt}const kt=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],et=["January","February","March","April","May","June","July","August","September","October","November","December"],wt=1440*60*1e3;function L(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function rt(e){return new Date(e.getFullYear(),e.getMonth(),1)}function $(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function I(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function G(e,t){return Math.round((L(e).getTime()-L(t).getTime())/wt)}function _t(e){const t=I(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const c=[];for(let o=0;o<7;o++)c.push(I(t,n*7+o));r.push(c)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Mt(e,t){const r=L(e[0]),n=I(r,7),c=[];for(const i of t){const s=L(i.start),m=L(i.end);if(m.getTime()<r.getTime()||s.getTime()>=n.getTime())continue;const p=s.getTime()<r.getTime()?r:s,d=m.getTime()>=n.getTime()?I(n,-1):m,u=G(p,r),x=G(d,p)+1;x<=0||c.push({variant:i,startCol:u,span:x})}c.sort((i,s)=>i.startCol-s.startCol||s.span-i.span||i.variant.blockKey.localeCompare(s.variant.blockKey));const o=[],l=[];for(const i of c){let s=o.findIndex(m=>m<=i.startCol);s===-1&&(s=o.length,o.push(0)),o[s]=i.startCol+i.span,l.push({...i,lane:s})}return l}const U=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function St(e){return`${U.format(e.start)} → ${U.format(e.end)}`}function At(e){const t=R.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=a.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let c;t[2]!==r.innerPath?(c=r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=c):c=t[3];let o;t[4]!==r.blockLabel||t[5]!==r.innerPath||t[6]!==r.label?(o=r.label!==r.blockLabel&&r.label!==r.innerPath&&a.jsx("div",{className:"text-muted-foreground",children:r.label}),t[4]=r.blockLabel,t[5]=r.innerPath,t[6]=r.label,t[7]=o):o=t[7];let l;t[8]!==r?(l=St(r),t[8]=r,t[9]=l):l=t[9];let i;t[10]!==l?(i=a.jsx("div",{className:"mt-1",children:l}),t[10]=l,t[11]=i):i=t[11];let s;return t[12]!==n||t[13]!==c||t[14]!==o||t[15]!==i?(s=a.jsx(pt,{children:a.jsxs("div",{className:"text-xs",children:[n,c,o,i]})}),t[12]=n,t[13]=c,t[14]=o,t[15]=i,t[16]=s):s=t[16],s}function nt(e){const t=R.c(14),{variant:r,color:n,style:c,children:o}=e;let l;t[0]!==n.bg||t[1]!==n.text||t[2]!==c?(l={background:n.bg,color:n.text,borderRadius:4,...c},t[0]=n.bg,t[1]=n.text,t[2]=c,t[3]=l):l=t[3];let i;t[4]!==o?(i=a.jsx("span",{className:"truncate",children:o}),t[4]=o,t[5]=i):i=t[5];let s;t[6]!==l||t[7]!==i?(s=a.jsx(ct,{asChild:!0,children:a.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:l,children:i})}),t[6]=l,t[7]=i,t[8]=s):s=t[8];let m;t[9]!==r?(m=a.jsx(At,{variant:r}),t[9]=r,t[10]=m):m=t[10];let p;return t[11]!==s||t[12]!==m?(p=a.jsxs(mt,{children:[s,m]}),t[11]=s,t[12]=m,t[13]=p):p=t[13],p}function dr(e){const t=R.c(39),{decofile:r}=e,[n,c]=K.useState("calendar"),[o,l]=K.useState(Ct);let i,s;t[0]!==r?(s=Tt(r),i=jt(s.map(Et)),t[0]=r,t[1]=i,t[2]=s):(i=t[1],s=t[2]);const m=i;let p;t[3]===Symbol.for("react.memo_cache_sentinel")?(p=()=>l(rt(new Date)),t[3]=p):p=t[3];const d=p;let u;t[4]!==n?(u=()=>l(k=>n==="calendar"?$(k,-1):$(k,-3)),t[4]=n,t[5]=u):u=t[5];const x=u;let g;t[6]!==n?(g=()=>l(k=>n==="calendar"?$(k,1):$(k,3)),t[6]=n,t[7]=g):g=t[7];const w=g;let N;t[8]===Symbol.for("react.memo_cache_sentinel")?(N=a.jsx(O,{variant:"outline",size:"sm",onClick:d,children:"Today"}),t[8]=N):N=t[8];let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=a.jsx(at,{size:16}),t[9]=E):E=t[9];let _;t[10]!==x?(_=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:x,"aria-label":"Previous",children:E}),t[10]=x,t[11]=_):_=t[11];let f;t[12]===Symbol.for("react.memo_cache_sentinel")?(f=a.jsx(lt,{size:16}),t[12]=f):f=t[12];let b;t[13]!==w?(b=a.jsx(O,{variant:"ghost",size:"icon",className:"size-8",onClick:w,"aria-label":"Next",children:f}),t[13]=w,t[14]=b):b=t[14];const M=et[o.getMonth()];let y;t[15]!==o?(y=o.getFullYear(),t[15]=o,t[16]=y):y=t[16];let v;t[17]!==M||t[18]!==y?(v=a.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[M," ",y]}),t[17]=M,t[18]=y,t[19]=v):v=t[19];let T;t[20]!==v||t[21]!==_||t[22]!==b?(T=a.jsxs("div",{className:"flex items-center gap-2",children:[N,_,b,v]}),t[20]=v,t[21]=_,t[22]=b,t[23]=T):T=t[23];let C;t[24]===Symbol.for("react.memo_cache_sentinel")?(C={value:"calendar",icon:a.jsx(Q,{}),label:"Calendar"},t[24]=C):C=t[24];let j;t[25]===Symbol.for("react.memo_cache_sentinel")?(j=[C,{value:"timeline",icon:a.jsx(it,{}),label:"Timeline"}],t[25]=j):j=t[25];let h;t[26]!==n?(h=a.jsx(ft,{value:n,onValueChange:c,options:j}),t[26]=n,t[27]=h):h=t[27];let S;t[28]!==T||t[29]!==h?(S=a.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[T,h]}),t[28]=T,t[29]=h,t[30]=S):S=t[30];let A;t[31]!==m||t[32]!==o||t[33]!==s||t[34]!==n?(A=s.length===0?a.jsx(Dt,{}):n==="calendar"?a.jsx($t,{monthStart:o,variants:s,colorMap:m}):a.jsx(Vt,{monthStart:o,variants:s,colorMap:m}),t[31]=m,t[32]=o,t[33]=s,t[34]=n,t[35]=A):A=t[35];let D;return t[36]!==S||t[37]!==A?(D=a.jsxs("div",{className:"flex h-full w-full flex-col",children:[S,A]}),t[36]=S,t[37]=A,t[38]=D):D=t[38],D}function Et(e){return e.blockKey}function Ct(){return rt(new Date)}function Dt(){const e=R.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[a.jsx(Q,{size:24,className:"text-muted-foreground/60"}),a.jsx("div",{children:"No scheduled variants."}),a.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]}),e[0]=t):t=e[0],t}const z=20,J=2,q=28;function $t(e){const t=R.c(17),{monthStart:r,variants:n,colorMap:c}=e;let o,l,i,s,m;if(t[0]!==c||t[1]!==r||t[2]!==n){const u=_t(r),x=L(new Date);o=X,m="flex-1 min-h-0",l="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(i=a.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:kt.map(Rt)}),t[8]=i):i=t[8],s=u.map((g,w)=>{const N=Mt(g,n),E=N.reduce(Lt,0),_=q+E*(z+J)+8;return a.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:_},children:[g.map((f,b)=>{const M=f.getMonth()===r.getMonth(),y=f.getTime()===x.getTime();return a.jsx("div",{className:W("border-r last:border-r-0 px-2 pt-1.5 text-xs",M?"bg-background":"bg-muted/30 text-muted-foreground"),children:a.jsx("span",{className:W("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",y&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},b)}),N.map((f,b)=>{const M=tt(c,f.variant.blockKey),y=q+f.lane*(z+J),v=f.startCol/7*100,T=f.span/7*100;return a.jsxs(nt,{variant:f.variant,color:M,style:{top:y,left:`calc(${v}% + 2px)`,width:`calc(${T}% - 4px)`,height:z},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&a.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${w}-${b}`)})]},w)}),t[0]=c,t[1]=r,t[2]=n,t[3]=o,t[4]=l,t[5]=i,t[6]=s,t[7]=m}else o=t[3],l=t[4],i=t[5],s=t[6],m=t[7];let p;t[9]!==l||t[10]!==i||t[11]!==s?(p=a.jsxs("div",{className:l,children:[i,s]}),t[9]=l,t[10]=i,t[11]=s,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==m||t[15]!==p?(d=a.jsx(o,{className:m,children:p}),t[13]=o,t[14]=m,t[15]=p,t[16]=d):d=t[16],d}function Lt(e,t){return Math.max(e,t.lane+1)}function Rt(e){return a.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const V=4,Pt=32,P=240;function Vt(e){const t=R.c(27),{monthStart:r,variants:n,colorMap:c}=e,o=r;let l,i,s,m,p,d;if(t[0]!==c||t[1]!==r||t[2]!==o||t[3]!==n){const g=$(r,V),w=new Date,N=new Map;for(const j of n){const h=N.get(j.blockKey)??[];h.push(j),N.set(j.blockKey,h)}const E=Array.from(N.entries()).sort(Ot),_=g.getTime()-o.getTime(),f=j=>(Math.max(o.getTime(),Math.min(g.getTime(),j.getTime()))-o.getTime())/_*100;let b;t[10]!==o?(b=(j,h)=>$(o,h),t[10]=o,t[11]=b):b=t[11];const M=Array.from({length:V},b),y=w.getTime()>=o.getTime()&&w.getTime()<=g.getTime()?f(w):null;l=X,d="flex-1 min-h-0",i="min-w-[900px] relative";let v;t[12]===Symbol.for("react.memo_cache_sentinel")?(v=a.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:P},children:"Variant / Block"}),t[12]=v):v=t[12];let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T={gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},t[13]=T):T=t[13];const C=M.map(It);t[14]!==C?(s=a.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[v,a.jsx("div",{className:"flex-1 grid",style:T,children:C})]}),t[14]=C,t[15]=s):s=t[15],t[16]!==y?(m=y!==null&&a.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${P}px + (100% - ${P}px) * ${y} / 100)`},children:a.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:"Today"})}),t[16]=y,t[17]=m):m=t[17],p=E.map(j=>{const[h,S]=j,A=tt(c,h),D=S[0]?.blockLabel??h;return a.jsxs("div",{children:[a.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:a.jsx("div",{className:"px-3 truncate",style:{width:P},children:D})}),S.map((k,st)=>a.jsxs("div",{className:"flex border-b items-center",style:{height:Pt},children:[a.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:P},children:[a.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:A.bg}}),a.jsx("span",{className:"truncate text-foreground/80",children:k.label})]}),a.jsxs("div",{className:"relative flex-1 h-full",children:[a.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${V}, minmax(0, 1fr))`},children:M.map(Ht)}),(()=>{const B=Math.max(k.start.getTime(),o.getTime()),F=Math.min(k.end.getTime(),g.getTime());if(F<=B)return null;const Y=f(new Date(B)),ot=f(new Date(F))-Y;return a.jsx(nt,{variant:k,color:A,style:{top:"50%",transform:"translateY(-50%)",left:`${Y}%`,width:`calc(${ot}% - 2px)`,height:22},children:k.label})})()]})]},st))]},h)}),t[0]=c,t[1]=r,t[2]=o,t[3]=n,t[4]=l,t[5]=i,t[6]=s,t[7]=m,t[8]=p,t[9]=d}else l=t[4],i=t[5],s=t[6],m=t[7],p=t[8],d=t[9];let u;t[18]!==i||t[19]!==s||t[20]!==m||t[21]!==p?(u=a.jsxs("div",{className:i,children:[s,m,p]}),t[18]=i,t[19]=s,t[20]=m,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==l||t[24]!==d||t[25]!==u?(x=a.jsx(l,{className:d,children:u}),t[23]=l,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function Ht(e,t){return a.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function It(e,t){return a.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[et[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Ot(e,t){return e[0].localeCompare(t[0])}export{dr as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as T,l as f,j as i}from"./index-CibDS78R.js";import{b as k,T as I,a as P}from"./tooltip-sqnb3qGx.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 B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,b=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.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]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.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]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),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",b?"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]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"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{B as V};
1
+ import{c as $,r as T,l as f,j as i}from"./index-Dq0yW5NU.js";import{b as k,T as I,a as P}from"./tooltip-D_6ICuSM.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 B(E){const t=$.c(27),{value:s,onValueChange:y,options:o,size:C,fullWidth:L,className:z}=E,_=C===void 0?"sm":C,b=L===void 0?!1:L;let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h=[],t[0]=h):h=t[0];const R=T.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]=T.useState(x);let g,p;t[2]!==o||t[3]!==s?(g=()=>{const e=o.findIndex(j=>j.value===s),m=R.current[e];m&&S({left:m.offsetLeft,width:m.offsetWidth,opacity:1})},p=[s,o],t[2]=o,t[3]=s,t[4]=g,t[5]=p):(g=t[4],p=t[5]),T.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]!==b||t[10]!==y||t[11]!==o||t[12]!==s?(a=o.map((e,m)=>{const j=i.jsxs("button",{ref:V=>{R.current[m]=V},type:"button",onClick:()=>y(e.value),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",b?"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]=b,t[10]=y,t[11]=o,t[12]=s,t[13]=a):a=t[13];const w=b?"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{B as V};
@@ -56,7 +56,7 @@
56
56
  <meta name="apple-mobile-web-app-capable" content="yes" />
57
57
  <meta name="apple-mobile-web-app-status-bar-style" content="default" />
58
58
  <meta name="apple-mobile-web-app-title" content="deco Studio" />
59
- <script type="module" crossorigin src="/assets/index-CibDS78R.js"></script>
59
+ <script type="module" crossorigin src="/assets/index-Dq0yW5NU.js"></script>
60
60
  <link rel="stylesheet" crossorigin href="/assets/index-BITgxoqa.css">
61
61
  </head>
62
62
  <body>