decocms 4.54.0 → 4.55.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 (227) hide show
  1. package/dist/client/assets/{AlertCircle-DyFMEbze.js → AlertCircle-K1Cf7xJw.js} +1 -1
  2. package/dist/client/assets/{ArrowUp-BR2M__90.js → ArrowUp-oFUTgURZ.js} +1 -1
  3. package/dist/client/assets/{ArrowUpRight-BZg48uTD.js → ArrowUpRight-DGh0oiwo.js} +1 -1
  4. package/dist/client/assets/{Check--_cveeO-.js → Check-ObwlU2ns.js} +1 -1
  5. package/dist/client/assets/{CheckCircle-iKBHppZx.js → CheckCircle-D_UfE86U.js} +1 -1
  6. package/dist/client/assets/{ChevronDown-B0uBVCox.js → ChevronDown-KtceO6cD.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-DF0UcmOW.js → ChevronRight-C9h4DJ39.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BctHPZV7.js → ChevronUp-P_yjpnby.js} +1 -1
  9. package/dist/client/assets/{Circle-F8zn6izU.js → Circle-C0lDdCHR.js} +1 -1
  10. package/dist/client/assets/{Copy01-DX8KbmsY.js → Copy01-CCFZNAKq.js} +1 -1
  11. package/dist/client/assets/{DotsVertical-C8opRm3M.js → DotsVertical-D8wzHMcy.js} +1 -1
  12. package/dist/client/assets/{Eye-BZ36MqP8.js → Eye-CsmT8uTK.js} +1 -1
  13. package/dist/client/assets/{FilterLines-t8Ykz7d9.js → FilterLines-CvmvkZeP.js} +1 -1
  14. package/dist/client/assets/{Globe01-B8eQP1ih.js → Globe01-DI-xTPsu.js} +1 -1
  15. package/dist/client/assets/{Globe04-szElUwnt.js → Globe04-hDNodcum.js} +1 -1
  16. package/dist/client/assets/{HardDrive-B-37nvmc.js → HardDrive-DXFi9PdN.js} +1 -1
  17. package/dist/client/assets/{Key01-C2Fiu3xY.js → Key01-DTIatEHn.js} +1 -1
  18. package/dist/client/assets/{LayoutLeft-CI2ebiK8.js → LayoutLeft-dlYPk2pd.js} +1 -1
  19. package/dist/client/assets/{LinkExternal01-BDrThi_1.js → LinkExternal01-3QApPyRd.js} +1 -1
  20. package/dist/client/assets/{List-DIlR6rDv.js → List-C32BX24S.js} +1 -1
  21. package/dist/client/assets/{Loading02-Bcfvmp0s.js → Loading02-CHXsYYu1.js} +1 -1
  22. package/dist/client/assets/{Monitor01-DTshj1sL.js → Monitor01-DMcGHU8f.js} +1 -1
  23. package/dist/client/assets/{Palette-JSRtDgV5.js → Palette-DRNIX3wp.js} +1 -1
  24. package/dist/client/assets/{Play-CdkxuHqa.js → Play-CbpB97Qh.js} +1 -1
  25. package/dist/client/assets/{Plus-CjVHI4O0.js → Plus-BENaHHYv.js} +1 -1
  26. package/dist/client/assets/{SearchLg-DoQ3Tplu.js → SearchLg-Cn6dJyxF.js} +1 -1
  27. package/dist/client/assets/{SearchMd-CgSbj8CK.js → SearchMd-DwHNN3Dn.js} +1 -1
  28. package/dist/client/assets/{Settings02-DPfJKHw1.js → Settings02-CeCT9ww_.js} +1 -1
  29. package/dist/client/assets/{Shield01-BD9utbc5.js → Shield01-DneQEzRe.js} +1 -1
  30. package/dist/client/assets/{Star01-8XVkY3EP.js → Star01-BAyyUKMU.js} +1 -1
  31. package/dist/client/assets/{Stars01-ChC6n8zu.js → Stars01-DP8lhnKf.js} +1 -1
  32. package/dist/client/assets/{Stars02-DLelzCQv.js → Stars02-DqD55xEl.js} +1 -1
  33. package/dist/client/assets/{Sun-o82t_f52.js → Sun-klTv1zO8.js} +1 -1
  34. package/dist/client/assets/{SwitchHorizontal01-Cjmyi-Xz.js → SwitchHorizontal01-BgJj9VJi.js} +1 -1
  35. package/dist/client/assets/{Tool01-CjUBgsSS.js → Tool01-B1ecVtDs.js} +1 -1
  36. package/dist/client/assets/{Trash01-DV73uV-p.js → Trash01-DgOzaQL2.js} +1 -1
  37. package/dist/client/assets/{Upload01-CfF--Mo6.js → Upload01-DQEOiqMw.js} +1 -1
  38. package/dist/client/assets/{User01-Bbo15MZW.js → User01-BmOSRY7q.js} +1 -1
  39. package/dist/client/assets/{Users01-BpM76zAX.js → Users01-U6VVfgv0.js} +1 -1
  40. package/dist/client/assets/{Users03-BWV9aZnp.js → Users03-BmEZC2T0.js} +1 -1
  41. package/dist/client/assets/{X-Blpkt8T8.js → X-g5v0F9HE.js} +1 -1
  42. package/dist/client/assets/{XCircle-DiWLawiJ.js → XCircle-C2Gn8WFb.js} +1 -1
  43. package/dist/client/assets/{XClose-Dz95IHYS.js → XClose-CLNf6XvR.js} +1 -1
  44. package/dist/client/assets/{Zap-ei7x-qu4.js → Zap-TvanW1zY.js} +1 -1
  45. package/dist/client/assets/{ZapSquare-Wqg70BiX.js → ZapSquare-BnuPEjJP.js} +1 -1
  46. package/dist/client/assets/{ZoomOut-B22UZRib.js → ZoomOut-DdoXT-Ns.js} +1 -1
  47. package/dist/client/assets/{access-gate-DKVUbGuH.js → access-gate-DDv-fNWa.js} +1 -1
  48. package/dist/client/assets/{add-section-modal-BbjXOfAy.js → add-section-modal-DVC34WM6.js} +1 -1
  49. package/dist/client/assets/{agent-capabilities-tVQbK8lI.js → agent-capabilities-Cv8l278w.js} +1 -1
  50. package/dist/client/assets/{agent-icon-CBIaV0TV.js → agent-icon-BC_kIM34.js} +1 -1
  51. package/dist/client/assets/{agents-list-Dwrq1IMu.js → agents-list-CT8T7Zt5.js} +1 -1
  52. package/dist/client/assets/{ai-providers-LIceeMyp.js → ai-providers-Bn1vAUxq.js} +1 -1
  53. package/dist/client/assets/{alert-ButUM4B2.js → alert-WWV_avTe.js} +1 -1
  54. package/dist/client/assets/{alert-dialog-ZFFE6RdE.js → alert-dialog-XZP6Ku-C.js} +1 -1
  55. package/dist/client/assets/{app-editor-Bqj5wiWV.js → app-editor-C0GMQv-k.js} +1 -1
  56. package/dist/client/assets/{auth-8OGb0ikm.js → auth-M4LjxrF3.js} +1 -1
  57. package/dist/client/assets/{auth-catchall-Cj4DrcLy.js → auth-catchall-B7s3zsOp.js} +1 -1
  58. package/dist/client/assets/{auth-entry-6VfOCTXX.js → auth-entry-5uURkn8C.js} +1 -1
  59. package/dist/client/assets/{auth-split-layout-B4sLsIro.js → auth-split-layout-BbJBrFT3.js} +1 -1
  60. package/dist/client/assets/{authenticate-and-persist-oauth-hOODYMHC.js → authenticate-and-persist-oauth-DyBL0u7o.js} +1 -1
  61. package/dist/client/assets/{automation-list-row-C0dzIRCs.js → automation-list-row-eK8t24AA.js} +1 -1
  62. package/dist/client/assets/{automation-runs-DRV_En7P.js → automation-runs-DYW4NrRW.js} +1 -1
  63. package/dist/client/assets/automations-DreE6pOq.js +1 -0
  64. package/dist/client/assets/{autosend-BZXc_39Y.js → autosend-DQUyGjwq.js} +1 -1
  65. package/dist/client/assets/{avatar-BFR0q0Uc.js → avatar-BQWvSCG3.js} +1 -1
  66. package/dist/client/assets/{badge-9JdsSydF.js → badge-DSwB15sR.js} +1 -1
  67. package/dist/client/assets/{block-document-CKwwgDTQ.js → block-document-CpJfO_sd.js} +1 -1
  68. package/dist/client/assets/{brand-context-DlRHiRFl.js → brand-context-x4MTdtX4.js} +1 -1
  69. package/dist/client/assets/{breadcrumb-Cpb9C_F5.js → breadcrumb-D7f-HTtP.js} +1 -1
  70. package/dist/client/assets/{buckets-CmgfmDtU.js → buckets-CJtdT1nx.js} +1 -1
  71. package/dist/client/assets/{bulk-category-panel-1gbKjV4V.js → bulk-category-panel-B7p1lKYU.js} +1 -1
  72. package/dist/client/assets/{calendar-RZT6997q.js → calendar-BrS821yW.js} +1 -1
  73. package/dist/client/assets/{capability-load-error-O38FUpjL.js → capability-load-error-B1eGI0lG.js} +1 -1
  74. package/dist/client/assets/{card-Qju-6aeI.js → card-BBjmZTpv.js} +1 -1
  75. package/dist/client/assets/{category-editor-DprxUePl.js → category-editor-BNWQnqif.js} +1 -1
  76. package/dist/client/assets/{chat-context-DnWUYi5G.js → chat-context-B1bTiiYX.js} +1 -1
  77. package/dist/client/assets/{checkbox-Brzfvp4p.js → checkbox-DVxDcu4d.js} +1 -1
  78. package/dist/client/assets/{cli-auth-success-Bk2iFVhM.js → cli-auth-success-CtLccxhv.js} +1 -1
  79. package/dist/client/assets/{collection-detail-DESsGNyV.js → collection-detail-CBxXFuNm.js} +1 -1
  80. package/dist/client/assets/{collection-display-button-NKKbfjL6.js → collection-display-button-DQ2uohYy.js} +1 -1
  81. package/dist/client/assets/{collection-search-BJU299WL.js → collection-search-DX7Foa3C.js} +1 -1
  82. package/dist/client/assets/{collection-table-wrapper-Cguf_MyO.js → collection-table-wrapper-CXkK_80p.js} +1 -1
  83. package/dist/client/assets/{collection-tabs-DsAnH2Kl.js → collection-tabs-MJRpxmam.js} +1 -1
  84. package/dist/client/assets/{command-CBmGAPLa.js → command-71ILUt20.js} +1 -1
  85. package/dist/client/assets/{commerce-onboarding-8RBRDbQz.js → commerce-onboarding-O1mf8WVR.js} +1 -1
  86. package/dist/client/assets/{connect-desktop-dialog-C0wLAURk.js → connect-desktop-dialog-CM6RpLcx.js} +1 -1
  87. package/dist/client/assets/{connection-card-6CQ1Otry.js → connection-card-B_0IcXj3.js} +1 -1
  88. package/dist/client/assets/{connection-detail-DdLgaRSt.js → connection-detail-BjvvmQzZ.js} +1 -1
  89. package/dist/client/assets/{connection-form-helpers-C4Syq4vx.js → connection-form-helpers-BNNW0l-H.js} +1 -1
  90. package/dist/client/assets/{connections-EmtmrBPl.js → connections-D-V8Eq1W.js} +1 -1
  91. package/dist/client/assets/constants-CaIX_f5U.js +1 -0
  92. package/dist/client/assets/{decopilot-sse-pool-C3kNtps6.js → decopilot-sse-pool-7FVaA4RW.js} +1 -1
  93. package/dist/client/assets/{dialog-WnGQj_Vc.js → dialog-uq7w1riB.js} +1 -1
  94. package/dist/client/assets/{domain-settings-DhfE0zWO.js → domain-settings-D60czfaM.js} +1 -1
  95. package/dist/client/assets/{drawer-B90twEyW.js → drawer-EXFk_rk6.js} +1 -1
  96. package/dist/client/assets/{dropdown-menu-BFtSsS-E.js → dropdown-menu-mfRPqCu3.js} +1 -1
  97. package/dist/client/assets/{empty-state-DX4eTOLJ.js → empty-state-DxrT90MV.js} +1 -1
  98. package/dist/client/assets/{extract-connection-data-6hnnQn6f.js → extract-connection-data-r8nS6YS8.js} +1 -1
  99. package/dist/client/assets/{file-explorer-9uR79mBP.js → file-explorer-Cg2ySgww.js} +1 -1
  100. package/dist/client/assets/{file-type-icon-COZ8yAd0.js → file-type-icon-kgKS1MuO.js} +1 -1
  101. package/dist/client/assets/{files-AkNgrRN4.js → files-BD6xFuzu.js} +1 -1
  102. package/dist/client/assets/{form-CjEmsGqm.js → form-BBRmo-qT.js} +1 -1
  103. package/dist/client/assets/{general-BrAFdRDl.js → general-Byf130b1.js} +1 -1
  104. package/dist/client/assets/{github-repo-picker-DaXEXpQ1.js → github-repo-picker-BOTswVCH.js} +1 -1
  105. package/dist/client/assets/{hooks-CZWj_6mf.js → hooks-sl5T3102.js} +1 -1
  106. package/dist/client/assets/{index-CYL8kHtz.js → index--C2HJAI1.js} +1 -1
  107. package/dist/client/assets/{index-Dct_hyJn.js → index-B747HGDX.js} +5 -5
  108. package/dist/client/assets/{index-wHf-36wD.js → index-BpBWaWtl.js} +1 -1
  109. package/dist/client/assets/{index-DY3y5Rcj.js → index-BsY8S_sp.js} +1 -1
  110. package/dist/client/assets/{index-CbyiCKe3.js → index-CQUgM6Q4.js} +1 -1
  111. package/dist/client/assets/{index-DhhC4gz5.js → index-CVo8RIZP.js} +1 -1
  112. package/dist/client/assets/{index-D31WxrOT.js → index-CeKC23HW.js} +1 -1
  113. package/dist/client/assets/{index-BGpJcFGX.js → index-DZF2eJBw.js} +1 -1
  114. package/dist/client/assets/{index-CHs03UBN.js → index-DkpRNJ4m.js} +1 -1
  115. package/dist/client/assets/{index-s5t4UiU9.js → index-NcX0_A3h.js} +1 -1
  116. package/dist/client/assets/{index-BB_UP6yl.js → index-QMNL1mz-.js} +1 -1
  117. package/dist/client/assets/{index-redirect-Ukd9lrQO.js → index-redirect-DBW5_oVa.js} +1 -1
  118. package/dist/client/assets/{index-DXPJFzt6.js → index-w7cXkMS0.js} +3 -3
  119. package/dist/client/assets/{index-rov0hueP.js → index-wpXB2WXt.js} +1 -1
  120. package/dist/client/assets/{index-CsLGE2VX.js → index-wrz9HkPN.js} +1 -1
  121. package/dist/client/assets/{input-DwAA05y6.js → input-CcIFtj-y.js} +1 -1
  122. package/dist/client/assets/{integration-icon-BpoXpVB6.js → integration-icon-CLgXrKlV.js} +1 -1
  123. package/dist/client/assets/{invite-member-dialog-Jf-qGSdw.js → invite-member-dialog-DrAlCqcZ.js} +1 -1
  124. package/dist/client/assets/{label-BhQw-Tnq.js → label-CdvXWqEz.js} +1 -1
  125. package/dist/client/assets/{layout-D0u0k_wH.js → layout-6cySKvEo.js} +1 -1
  126. package/dist/client/assets/{login-uhfscZPG.js → login-CXveIsJj.js} +1 -1
  127. package/dist/client/assets/{mcp-oauth-bPaDT5Sa.js → mcp-oauth-xKRJbT-M.js} +1 -1
  128. package/dist/client/assets/{members-Bkg1cNWP.js → members-DApHHs5d.js} +1 -1
  129. package/dist/client/assets/{monaco-editor-BasGE-qN.js → monaco-editor-DKV8WqoE.js} +1 -1
  130. package/dist/client/assets/{monitoring-stats-row-BooZW2y-.js → monitoring-stats-row-DOef7Zmg.js} +1 -1
  131. package/dist/client/assets/{oauth-callback-cNj2wPWx.js → oauth-callback-CEbuw_B0.js} +1 -1
  132. package/dist/client/assets/{oauth-callback-ai-provider-CIgZ1HXZ.js → oauth-callback-ai-provider-k0mcBONl.js} +1 -1
  133. package/dist/client/assets/{onboarding-DuO71Zba.js → onboarding-CXZDgEOx.js} +1 -1
  134. package/dist/client/assets/{org-install-zySLzHIa.js → org-install-kOfrhumE.js} +1 -1
  135. package/dist/client/assets/{org-layout-Dazn5DWS.js → org-layout-BDWXHeWj.js} +1 -1
  136. package/dist/client/assets/{organization-choice-q-93TI9u.js → organization-choice-Bt_2xIdr.js} +1 -1
  137. package/dist/client/assets/{orgs-DJhOm92b.js → orgs-BxNN1qjO.js} +1 -1
  138. package/dist/client/assets/{page-seo-form-qVFo3Gyo.js → page-seo-form-DzPVwF4_.js} +1 -1
  139. package/dist/client/assets/page-seo-sheet-D11Fac3n.js +1 -0
  140. package/dist/client/assets/{popover-C_l28OjR.js → popover-bZSwiBHR.js} +1 -1
  141. package/dist/client/assets/{post-editor-BjgI29oT.js → post-editor-Fyi3RTTu.js} +1 -1
  142. package/dist/client/assets/{primitives-D5lhg1WA.js → primitives-Bu7q746Q.js} +1 -1
  143. package/dist/client/assets/{profile-D3vOQsmS.js → profile-CFmKfKAT.js} +1 -1
  144. package/dist/client/assets/project-app-view-fgQDiedo.js +1 -0
  145. package/dist/client/assets/record-editor-BFGgaeH6.js +1 -0
  146. package/dist/client/assets/registry-BgbA3Clu.js +2 -0
  147. package/dist/client/assets/{registry-layout-CZTyf4mw.js → registry-layout-DKVdL9f-.js} +1 -1
  148. package/dist/client/assets/{require-capability-CtSiMmoP.js → require-capability-DYYMcKLI.js} +1 -1
  149. package/dist/client/assets/{required-auth-layout-DYs-09WI.js → required-auth-layout-C7itc5Uz.js} +1 -1
  150. package/dist/client/assets/{reset-password-DYMv391l.js → reset-password-b1BNJsYx.js} +1 -1
  151. package/dist/client/assets/{roles-CydM7l8J.js → roles-CtMQ6BsI.js} +1 -1
  152. package/dist/client/assets/{search-input--pwLfI8e.js → search-input-CmKQkNeC.js} +1 -1
  153. package/dist/client/assets/{secrets-DlZ-xrUG.js → secrets-60hHePgY.js} +1 -1
  154. package/dist/client/assets/{sections-editor-kr145AOe.js → sections-editor-Df3qQ_6y.js} +1 -1
  155. package/dist/client/assets/{select-CjKQhz6B.js → select-B3lUXd6i.js} +1 -1
  156. package/dist/client/assets/{select-model-C34QbIrl.js → select-model-JRgqVbj5.js} +1 -1
  157. package/dist/client/assets/{seo-editor-DXxTQNkC.js → seo-editor-CnWl6R3t.js} +1 -1
  158. package/dist/client/assets/{settings-layout-C_lcQrcd.js → settings-layout-D4sNz19v.js} +1 -1
  159. package/dist/client/assets/{settings-section-C5G7bryH.js → settings-section-HFqzNT_O.js} +1 -1
  160. package/dist/client/assets/{shell-controls-lSGxEnXo.js → shell-controls-zGoDPAPj.js} +1 -1
  161. package/dist/client/assets/{shell-layout-GUl5lGx6.js → shell-layout-D-vBBy4q.js} +1 -1
  162. package/dist/client/assets/{sidebar-VjjpxKfO.js → sidebar-BgSDebf3.js} +1 -1
  163. package/dist/client/assets/{skeleton-CTIIavFo.js → skeleton-CbLh_UD4.js} +1 -1
  164. package/dist/client/assets/{sso-g9U6-GLw.js → sso-B6VmqkOn.js} +1 -1
  165. package/dist/client/assets/store-registry-BziwoqEG.js +2 -0
  166. package/dist/client/assets/{store-BL62De0z.js → store-xaQeqDfH.js} +1 -1
  167. package/dist/client/assets/{studio-tools-DIILfwYI.js → studio-tools-Ci6uL41d.js} +1 -1
  168. package/dist/client/assets/{switch-cdz4RgjN.js → switch-Czfx5iUj.js} +1 -1
  169. package/dist/client/assets/{table-D0i60C7e.js → table-CHyYOqJb.js} +1 -1
  170. package/dist/client/assets/{tabs-28wXbqzs.js → tabs-kselPSFq.js} +1 -1
  171. package/dist/client/assets/{textarea-CLEdB0sS.js → textarea-DKrUZShY.js} +1 -1
  172. package/dist/client/assets/{toggle-group-DCTF_gyW.js → toggle-group-DMU4y0R3.js} +1 -1
  173. package/dist/client/assets/{toolbar-DcI3D8Ip.js → toolbar-b8dpbs0n.js} +1 -1
  174. package/dist/client/assets/{toolbar-icon-button-ClDdZ3dT.js → toolbar-icon-button-BDeVl8u4.js} +1 -1
  175. package/dist/client/assets/{tools-list-Desx_TYj.js → tools-list-Bj1FbK56.js} +1 -1
  176. package/dist/client/assets/{tooltip-VN_eyJpk.js → tooltip-DgH1h_1J.js} +1 -1
  177. package/dist/client/assets/{types-rbIqpiqt.js → types-DBK15Mj8.js} +1 -1
  178. package/dist/client/assets/{use-ai-providers-DgysDAgM.js → use-ai-providers-BAFex_eJ.js} +1 -1
  179. package/dist/client/assets/{use-automations-BqnAZn3V.js → use-automations-B2bsTUCh.js} +1 -1
  180. package/dist/client/assets/{use-capability-Du7jwTMX.js → use-capability-DlTOE3uK.js} +1 -1
  181. package/dist/client/assets/{use-clock-tick-DVBpdq9l.js → use-clock-tick-BOarQrBT.js} +1 -1
  182. package/dist/client/assets/{use-collections-Df_lEJcj.js → use-collections-WjRkizSO.js} +1 -1
  183. package/dist/client/assets/{use-connection-D3mCtYc4.js → use-connection-CCKb3ug6.js} +1 -1
  184. package/dist/client/assets/{use-copy-BW7S_HPh.js → use-copy-BBojWRVP.js} +1 -1
  185. package/dist/client/assets/{use-create-virtual-mcp-B09GKrSx.js → use-create-virtual-mcp-x8RSMjMG.js} +1 -1
  186. package/dist/client/assets/{use-debounced-autosave-C4sR9lQt.js → use-debounced-autosave-DY0M7TXN.js} +1 -1
  187. package/dist/client/assets/{use-debounced-value-BcpEXqWd.js → use-debounced-value-Cw8vNBuE.js} +1 -1
  188. package/dist/client/assets/{use-decopilot-events-CGFiL_3S.js → use-decopilot-events-zKYpvLLf.js} +1 -1
  189. package/dist/client/assets/{use-delete-connection-B9nbhuPI.js → use-delete-connection-Bn1eJRLo.js} +1 -1
  190. package/dist/client/assets/{use-deployment-admin-C3k5rZqV.js → use-deployment-admin-Y_Ju97Vn.js} +1 -1
  191. package/dist/client/assets/{use-file-configs-DMxI0UKg.js → use-file-configs-zci_m7F3.js} +1 -1
  192. package/dist/client/assets/{use-infinite-scroll-BY2w7n-K.js → use-infinite-scroll-C7obvz9c.js} +1 -1
  193. package/dist/client/assets/{use-join-requests-B2LlbRCg.js → use-join-requests-CqnMNeqq.js} +1 -1
  194. package/dist/client/assets/{use-mcp-client-VcuIwIJi.js → use-mcp-client-BZlO-9TO.js} +1 -1
  195. package/dist/client/assets/{use-mcp-prompts-CAog6Cio.js → use-mcp-prompts-CrIOevBO.js} +1 -1
  196. package/dist/client/assets/{use-mcp-tools-Dd4vNVoy.js → use-mcp-tools-B_wpN8Wm.js} +1 -1
  197. package/dist/client/assets/{use-members-CL3zaNzn.js → use-members-zGRFXExT.js} +1 -1
  198. package/dist/client/assets/{use-mobile-BQL9lpS-.js → use-mobile-BMzqM1PV.js} +1 -1
  199. package/dist/client/assets/{use-navigate-to-agent-B3EFLuhf.js → use-navigate-to-agent-CXExIaeJ.js} +1 -1
  200. package/dist/client/assets/{use-org-auth-client-DS9Fi-ca.js → use-org-auth-client-DcYmYVNG.js} +1 -1
  201. package/dist/client/assets/{use-org-sso-Dy2DNvg_.js → use-org-sso-BtM7DEyR.js} +1 -1
  202. package/dist/client/assets/{use-organization-roles-CmKNhXW1.js → use-organization-roles-Ds1EfAeF.js} +1 -1
  203. package/dist/client/assets/{use-organization-settings-D1nRG06c.js → use-organization-settings-Bexlm4Xi.js} +1 -1
  204. package/dist/client/assets/{use-registry-connections-dFakMjds.js → use-registry-connections-CbiYjPr4.js} +1 -1
  205. package/dist/client/assets/{use-secrets-B33QGPtw.js → use-secrets-DZK894eQ.js} +1 -1
  206. package/dist/client/assets/{use-status-sounds-Jp9p3bT9.js → use-status-sounds-BA1b33Q-.js} +1 -1
  207. package/dist/client/assets/{use-view-mode-Dc8JPmHG.js → use-view-mode-CTNNJDoq.js} +1 -1
  208. package/dist/client/assets/{use-virtual-mcp-DQv9wlSA.js → use-virtual-mcp-B5WiXBQf.js} +1 -1
  209. package/dist/client/assets/useInfiniteQuery-CDzYUZ2k.js +1 -0
  210. package/dist/client/assets/{useRouterState-CYzmlVql.js → useRouterState-C83KEdEj.js} +1 -1
  211. package/dist/client/assets/useSuspenseInfiniteQuery-wZpVt4XH.js +1 -0
  212. package/dist/client/assets/{users-8JB6w5Vd.js → users-Du0-ZPmS.js} +1 -1
  213. package/dist/client/assets/{variant-calendar-CCVDO3v7.js → variant-calendar-G2Vw5JYz.js} +1 -1
  214. package/dist/client/assets/{view-mode-toggle-D3Amyvu6.js → view-mode-toggle-DHr_IRUy.js} +1 -1
  215. package/dist/client/index.html +1 -1
  216. package/dist/server/cli.js +499 -439
  217. package/dist/server/server.js +360 -302
  218. package/package.json +1 -1
  219. package/dist/client/assets/automations-D7NYJT1a.js +0 -1
  220. package/dist/client/assets/constants-Qo1EtbpN.js +0 -1
  221. package/dist/client/assets/page-seo-sheet-ApACYp8H.js +0 -1
  222. package/dist/client/assets/project-app-view--MXJ6ee6.js +0 -1
  223. package/dist/client/assets/record-editor-Cm4T_Adl.js +0 -1
  224. package/dist/client/assets/registry-hqpCzpCn.js +0 -2
  225. package/dist/client/assets/store-registry-CcdbSw2l.js +0 -2
  226. package/dist/client/assets/useInfiniteQuery-DjQffkyn.js +0 -1
  227. package/dist/client/assets/useSuspenseInfiniteQuery-BbGT7l3_.js +0 -1
@@ -1 +1 @@
1
- import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-DXPJFzt6.js";import{P as b}from"./index-CHs03UBN.js";import{C as q}from"./collection-table-wrapper-Cguf_MyO.js";import{E}from"./empty-state-DX4eTOLJ.js";import{S as z}from"./search-input--pwLfI8e.js";import{A as D}from"./avatar-BFR0q0Uc.js";import{B as U}from"./badge-9JdsSydF.js";import{u as L}from"./use-debounced-value-BcpEXqWd.js";import{a as k}from"./admin-fetch-CCSvjTk1.js";import{f as M}from"./format-time-BnbuEtat.js";import{g as O}from"./get-initials-D-f_fDFw.js";import"./sidebar-VjjpxKfO.js";import"./LayoutLeft-CI2ebiK8.js";import"./use-mobile-BQL9lpS-.js";import"./X-Blpkt8T8.js";import"./tooltip-VN_eyJpk.js";import"./table-D0i60C7e.js";import"./ArrowUp-BR2M__90.js";import"./SearchMd-CgSbj8CK.js";import"./User01-Bbo15MZW.js";import"./differenceInSeconds-NQ4PDo0z.js";function Ne(){const e=B.c(31),[r,P]=F.useState("");let c;e[0]!==r?(c=r.trim(),e[0]=r,e[1]=c):c=e[1];const s=L(c,300),{data:A}=I.useSession(),S=A?.user?.id;let a;e[2]!==s?(a=K.deploymentAdminUsers(s),e[2]=s,e[3]=a):a=e[3];let i;e[4]!==s?(i=()=>{const l=new URLSearchParams({limit:"100"});return s&&l.set("searchValue",s),k(`/api/_admin/users?${l}`)},e[4]=s,e[5]=i):i=e[5];let d;e[6]!==a||e[7]!==i?(d={queryKey:a,queryFn:i},e[6]=a,e[7]=i,e[8]=d):d=e[8];const{data:y,isLoading:v,isError:w}=R(d);let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={mutationFn:H,onSuccess:G,onError:Y},e[9]=u):u=e[9];const f=V(u);let p;e[10]!==y?.users?(p=y?.users??[],e[10]=y?.users,e[11]=p):p=e[11];const C=p;let h,x,g;e[12]===Symbol.for("react.memo_cache_sentinel")?(h={id:"user",header:"User",render:W,cellClassName:"flex-1 min-w-0"},x={id:"verified",header:"Email",render:Q,cellClassName:"w-28 shrink-0"},g={id:"created",header:"Created",render:J,cellClassName:"w-48 shrink-0"},e[12]=h,e[13]=x,e[14]=g):(h=e[12],x=e[13],g=e[14]);let j;e[15]!==S||e[16]!==f?(j=[h,x,g,{id:"actions",header:"",render:l=>t.jsx(T,{variant:"outline",size:"sm",disabled:l.id===S||f.isPending,onClick:()=>f.mutate(l.id),children:"Impersonate"}),cellClassName:"w-32 shrink-0"}],e[15]=S,e[16]=f,e[17]=j):j=e[17];const _=j;let n;e[18]!==r?(n=t.jsx(z,{value:r,onChange:P,placeholder:"Search users by email or name...",className:"w-full md:w-[375px]"}),e[18]=r,e[19]=n):n=e[19];let o;e[20]!==s||e[21]!==w?(o=w?t.jsx(E,{title:"Failed to load users",description:"Something went wrong. Refresh to try again."}):t.jsx(E,{title:"No users found",description:s?`No users match "${s}"`:"No users yet."}),e[20]=s,e[21]=w,e[22]=o):o=e[22];let m;e[23]!==_||e[24]!==v||e[25]!==o||e[26]!==C?(m=t.jsx(q,{columns:_,data:C,isLoading:v,emptyState:o}),e[23]=_,e[24]=v,e[25]=o,e[26]=C,e[27]=m):m=e[27];let N;return e[28]!==n||e[29]!==m?(N=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[n,m]})})})}),e[28]=n,e[29]=m,e[30]=N):N=e[30],N}function J(e){return t.jsx("span",{className:"text-sm text-foreground",children:M(e.createdAt)})}function Q(e){return e.emailVerified?t.jsx(U,{variant:"outline",className:"text-green-600 border-green-400",children:"Verified"}):t.jsx(U,{variant:"outline",className:"text-muted-foreground",children:"Unverified"})}function W(e){return t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(D,{url:e.image??void 0,fallback:O(e.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:e.name||"Unknown"}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:e.email})]})]})}function Y(e){$.error(e instanceof Error?e.message:"Failed to impersonate user")}function G(){window.location.href="/"}function H(e){return k("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{Ne as default};
1
+ import{c as B,r as F,a as I,m as R,d as V,j as t,K,B as T,t as $}from"./index-w7cXkMS0.js";import{P as b}from"./index-DkpRNJ4m.js";import{C as q}from"./collection-table-wrapper-CXkK_80p.js";import{E}from"./empty-state-DxrT90MV.js";import{S as z}from"./search-input-CmKQkNeC.js";import{A as D}from"./avatar-BQWvSCG3.js";import{B as U}from"./badge-DSwB15sR.js";import{u as L}from"./use-debounced-value-Cw8vNBuE.js";import{a as k}from"./admin-fetch-CCSvjTk1.js";import{f as M}from"./format-time-BnbuEtat.js";import{g as O}from"./get-initials-D-f_fDFw.js";import"./sidebar-BgSDebf3.js";import"./LayoutLeft-dlYPk2pd.js";import"./use-mobile-BMzqM1PV.js";import"./X-g5v0F9HE.js";import"./tooltip-DgH1h_1J.js";import"./table-CHyYOqJb.js";import"./ArrowUp-oFUTgURZ.js";import"./SearchMd-DwHNN3Dn.js";import"./User01-BmOSRY7q.js";import"./differenceInSeconds-NQ4PDo0z.js";function Ne(){const e=B.c(31),[r,P]=F.useState("");let c;e[0]!==r?(c=r.trim(),e[0]=r,e[1]=c):c=e[1];const s=L(c,300),{data:A}=I.useSession(),S=A?.user?.id;let a;e[2]!==s?(a=K.deploymentAdminUsers(s),e[2]=s,e[3]=a):a=e[3];let i;e[4]!==s?(i=()=>{const l=new URLSearchParams({limit:"100"});return s&&l.set("searchValue",s),k(`/api/_admin/users?${l}`)},e[4]=s,e[5]=i):i=e[5];let d;e[6]!==a||e[7]!==i?(d={queryKey:a,queryFn:i},e[6]=a,e[7]=i,e[8]=d):d=e[8];const{data:y,isLoading:v,isError:w}=R(d);let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u={mutationFn:H,onSuccess:G,onError:Y},e[9]=u):u=e[9];const f=V(u);let p;e[10]!==y?.users?(p=y?.users??[],e[10]=y?.users,e[11]=p):p=e[11];const C=p;let h,x,g;e[12]===Symbol.for("react.memo_cache_sentinel")?(h={id:"user",header:"User",render:W,cellClassName:"flex-1 min-w-0"},x={id:"verified",header:"Email",render:Q,cellClassName:"w-28 shrink-0"},g={id:"created",header:"Created",render:J,cellClassName:"w-48 shrink-0"},e[12]=h,e[13]=x,e[14]=g):(h=e[12],x=e[13],g=e[14]);let j;e[15]!==S||e[16]!==f?(j=[h,x,g,{id:"actions",header:"",render:l=>t.jsx(T,{variant:"outline",size:"sm",disabled:l.id===S||f.isPending,onClick:()=>f.mutate(l.id),children:"Impersonate"}),cellClassName:"w-32 shrink-0"}],e[15]=S,e[16]=f,e[17]=j):j=e[17];const _=j;let n;e[18]!==r?(n=t.jsx(z,{value:r,onChange:P,placeholder:"Search users by email or name...",className:"w-full md:w-[375px]"}),e[18]=r,e[19]=n):n=e[19];let o;e[20]!==s||e[21]!==w?(o=w?t.jsx(E,{title:"Failed to load users",description:"Something went wrong. Refresh to try again."}):t.jsx(E,{title:"No users found",description:s?`No users match "${s}"`:"No users yet."}),e[20]=s,e[21]=w,e[22]=o):o=e[22];let m;e[23]!==_||e[24]!==v||e[25]!==o||e[26]!==C?(m=t.jsx(q,{columns:_,data:C,isLoading:v,emptyState:o}),e[23]=_,e[24]=v,e[25]=o,e[26]=C,e[27]=m):m=e[27];let N;return e[28]!==n||e[29]!==m?(N=t.jsx(b,{children:t.jsx(b.Content,{children:t.jsx(b.Body,{children:t.jsxs("div",{className:"flex flex-col gap-6",children:[n,m]})})})}),e[28]=n,e[29]=m,e[30]=N):N=e[30],N}function J(e){return t.jsx("span",{className:"text-sm text-foreground",children:M(e.createdAt)})}function Q(e){return e.emailVerified?t.jsx(U,{variant:"outline",className:"text-green-600 border-green-400",children:"Verified"}):t.jsx(U,{variant:"outline",className:"text-muted-foreground",children:"Unverified"})}function W(e){return t.jsxs("div",{className:"flex items-center gap-3",children:[t.jsx(D,{url:e.image??void 0,fallback:O(e.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:e.name||"Unknown"}),t.jsx("div",{className:"text-sm text-muted-foreground truncate",children:e.email})]})]})}function Y(e){$.error(e instanceof Error?e.message:"Failed to impersonate user")}function G(){window.location.href="/"}function H(e){return k("/api/_admin/impersonate",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({userId:e})})}export{Ne as default};
@@ -1 +1 @@
1
- import{c as V,r as U,j as s,l as J,B as Y}from"./index-DXPJFzt6.js";import{h as ct}from"./agent-icon-CBIaV0TV.js";import{n as mt,a as et}from"./Loading02-Bcfvmp0s.js";import{i as pt}from"./ChevronRight-DF0UcmOW.js";import{L as dt}from"./label-BhQw-Tnq.js";import{A as rt}from"./automation-runs-DRV_En7P.js";import{S as ft}from"./switch-cdz4RgjN.js";import{a as ut,T as ht,b as gt}from"./tooltip-VN_eyJpk.js";import{V as xt}from"./view-mode-toggle-D3Amyvu6.js";import"./AlertCircle-DyFMEbze.js";import"./Tool01-CjUBgsSS.js";import"./ArrowUp-BR2M__90.js";import"./Settings02-DPfJKHw1.js";import"./XCircle-DiWLawiJ.js";import"./ArrowUpRight-BZg48uTD.js";import"./ZapSquare-Wqg70BiX.js";import"./Users03-BWV9aZnp.js";import"./CheckCircle-iKBHppZx.js";import"./Check--_cveeO-.js";import"./ChevronDown-B0uBVCox.js";import"./ChevronUp-BctHPZV7.js";import"./Circle-F8zn6izU.js";import"./Stars02-DLelzCQv.js";import"./Copy01-DX8KbmsY.js";import"./ZoomOut-B22UZRib.js";import"./DotsVertical-C8opRm3M.js";import"./Globe01-B8eQP1ih.js";import"./Eye-BZ36MqP8.js";import"./FilterLines-t8Ykz7d9.js";import"./Star01-8XVkY3EP.js";import"./Globe04-szElUwnt.js";import"./SwitchHorizontal01-Cjmyi-Xz.js";import"./HardDrive-B-37nvmc.js";import"./Key01-C2Fiu3xY.js";import"./LayoutLeft-CI2ebiK8.js";import"./LinkExternal01-BDrThi_1.js";import"./List-DIlR6rDv.js";import"./Monitor01-DTshj1sL.js";import"./Sun-o82t_f52.js";import"./Palette-JSRtDgV5.js";import"./Play-CdkxuHqa.js";import"./Plus-CjVHI4O0.js";import"./SearchLg-DoQ3Tplu.js";import"./SearchMd-CgSbj8CK.js";import"./Shield01-BD9utbc5.js";import"./Stars01-ChC6n8zu.js";import"./Trash01-DV73uV-p.js";import"./Upload01-CfF--Mo6.js";import"./User01-Bbo15MZW.js";import"./Users01-BpM76zAX.js";import"./XClose-Dz95IHYS.js";import"./X-Blpkt8T8.js";import"./Zap-ei7x-qu4.js";import"./select-CjKQhz6B.js";import"./useInfiniteQuery-DjQffkyn.js";import"./use-infinite-scroll-BY2w7n-K.js";import"./use-connection-D3mCtYc4.js";import"./use-collections-Df_lEJcj.js";import"./use-mcp-client-VcuIwIJi.js";import"./constants-Qo1EtbpN.js";import"./auth-8OGb0ikm.js";import"./use-virtual-mcp-DQv9wlSA.js";import"./card-Qju-6aeI.js";import"./sidebar-VjjpxKfO.js";import"./use-mobile-BQL9lpS-.js";import"./table-D0i60C7e.js";import"./empty-state-DX4eTOLJ.js";import"./use-members-CL3zaNzn.js";import"./use-org-auth-client-DS9Fi-ca.js";import"./use-clock-tick-DVBpdq9l.js";import"./use-automations-BqnAZn3V.js";import"./studio-tools-DIILfwYI.js";import"./useSuspenseInfiniteQuery-BbGT7l3_.js";import"./badge-9JdsSydF.js";import"./checkbox-Brzfvp4p.js";import"./command-CBmGAPLa.js";import"./index-BB_UP6yl.js";import"./dialog-WnGQj_Vc.js";import"./popover-C_l28OjR.js";import"./avatar-BFR0q0Uc.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BW7S_HPh.js";import"./file-type-icon-COZ8yAd0.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-BasGE-qN.js";import"./index-DY3y5Rcj.js";import"./chat-context-DnWUYi5G.js";import"./autosend-BZXc_39Y.js";import"./hooks-CZWj_6mf.js";import"./decopilot-sse-pool-C3kNtps6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-DgysDAgM.js";import"./use-decopilot-events-CGFiL_3S.js";import"./use-organization-settings-D1nRG06c.js";import"./types-rbIqpiqt.js";import"./shell-layout-GUl5lGx6.js";import"./alert-dialog-ZFFE6RdE.js";import"./required-auth-layout-DYs-09WI.js";import"./use-org-sso-Dy2DNvg_.js";import"./integration-icon-BpoXpVB6.js";import"./use-navigate-to-agent-B3EFLuhf.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-CAog6Cio.js";import"./form-CjEmsGqm.js";import"./input-DwAA05y6.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Nt=/\/flags\/multivariate\.ts$/;function wt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,n=typeof t=="string",l=typeof r=="string";if(!n&&!l)return null;const o=n?new Date(t):Tt,m=l?new Date(r):vt;return Number.isNaN(o.getTime())||Number.isNaN(m.getTime())||n&&l&&m.getTime()<=o.getTime()?null:{start:o,end:m,openStart:!n,openEnd:!l}}function nt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(bt.has(r)){const n=kt(e);n&&t.push(n);return}if(yt.has(r)){const n=e.matchers;if(Array.isArray(n))for(const l of n)nt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),p=i[i.length-1];if(p)return decodeURIComponent(p)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,r=t.config,l=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of o)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(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 W(e,t,r,n,l){if(_t(e)){const o=e.variants,m=e.__resolveType,a=Nt.test(m)?"":Et(n);o.forEach((c,i)=>{if(!c||typeof c!="object")return;const p=c,d=[];if(nt(p.rule,d),d.length===0)return;const x=Mt(p.value)??(a||r);for(const h of d)l.push({blockKey:t,blockLabel:r,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<o.length;c++){const i=o[c];i&&typeof i=="object"&&W(i.value,t,r,[...n,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)W(e[o],t,r,[...n,o],l);return}if(e&&typeof e=="object")for(const[o,m]of Object.entries(e))o!=="__resolveType"&&W(m,t,r,[...n,o],l)}function St(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))W(n,r,wt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function At(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,l)=>{const o=l*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function ot(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],st=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const l=[];for(let o=0;o<7;o++)l.push(z(t,n*7+o));r.push(l)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Lt(e,t){const r=P(e[0]),n=z(r,7),l=r.getTime(),o=n.getTime(),m=[];for(const i of t){const p=P(i.start),d=P(i.end);if(d.getTime()<r.getTime()||p.getTime()>=n.getTime())continue;const u=p.getTime()<r.getTime()?r:p,x=d.getTime()>=n.getTime()?z(n,-1):d,h=K(u,r),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),o),T=q(new Date(b),r),f=Math.max(q(new Date(y),r)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,p)=>i.startCol-p.startCol||p.span-i.span||i.variant.blockKey.localeCompare(p.variant.blockKey));const a=[],c=[];for(const i of m){let p=a.findIndex(d=>d<=i.startCol);p===-1&&(p=a.length,a.push(0)),a[p]=i.startCol+i.span,c.push({...i,lane:p})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),r=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${r}`}function Pt(e){const t=V.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=s.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let l;t[2]!==r.innerPath?(l=r.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=l):l=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&&s.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 m;t[8]!==r?(m=Ot(r),t[8]=r,t[9]=m):m=t[9];let a;t[10]!==m?(a=s.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==n||t[13]!==l||t[14]!==o||t[15]!==a?(c=s.jsx(gt,{children:s.jsxs("div",{className:"text-xs",children:[n,l,o,a]})}),t[12]=n,t[13]=l,t[14]=o,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const r=e?"transparent":"#000 0",n=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${X}px, #000 calc(100% - ${X}px), ${n})`}function lt(e){const t=V.c(26),{variant:r,color:n,style:l,children:o,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let p;t[0]!==i||t[1]!==c?(p=It(c,i),t[0]=i,t[1]=c,t[2]=p):p=t[2];const d=p;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==d?(h=d&&{maskImage:d,WebkitMaskImage:d},t[7]=d,t[8]=h):h=t[8];let g;t[9]!==n.bg||t[10]!==n.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:n.bg,color:n.text,borderRadius:4,...u,...x,...h,...l},t[9]=n.bg,t[10]=n.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==o?(b=s.jsx("span",{className:"truncate",children:o}),t[16]=o,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=s.jsx(ut,{asChild:!0,children:s.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==r?(T=s.jsx(Pt,{variant:r}),t[21]=r,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=s.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Xr(e){const t=V.c(49),{decofile:r}=e,[n,l]=U.useState("calendar"),[o,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,p,d;if(t[0]!==r||t[1]!==a){const S=St(r);i=S.filter(Ht).length,d=a?S:S.filter(Vt),p=At(d.map(Ft)),t[0]=r,t[1]=a,t[2]=i,t[3]=p,t[4]=d}else i=t[2],p=t[3],d=t[4];const u=p;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==n?(g=()=>m(S=>n==="calendar"?F(S,-1):F(S,-3)),t[6]=n,t[7]=g):g=t[7];const b=g;let y;t[8]!==n?(y=()=>m(S=>n==="calendar"?F(S,1):F(S,3)),t[8]=n,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(mt,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=s.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(pt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=s.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=st[o.getMonth()];let E;t[17]!==o?(E=o.getFullYear(),t[17]=o,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=s.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=s.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),s.jsxs(dt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:s.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:s.jsx(ct,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==n?(N=s.jsx(xt,{value:n,onValueChange:l,options:I}),t[31]=n,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=s.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=s.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==o||t[41]!==i||t[42]!==a||t[43]!==d||t[44]!==n?(C=d.length===0?s.jsx(Wt,{hiddenOngoing:a?0:i}):n==="calendar"?s.jsx(Ut,{monthStart:o,variants:d,colorMap:u}):s.jsx(Jt,{monthStart:o,variants:d,colorMap:u}),t[39]=u,t[40]=o,t[41]=i,t[42]=a,t[43]=d,t[44]=n,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:r}=e,n=r===void 0?0:r;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let o;return t[1]!==n?(o=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,n>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{children:"No dated variants in view."}),s.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[n," ongoing"," ",n===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{children:"No scheduled variants."}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=n,t[2]=o):o=t[2],o}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:r,variants:n,colorMap:l}=e;let o,m,a,c,i;if(t[0]!==l||t[1]!==r||t[2]!==n){const u=Rt(r),x=P(new Date);o=rt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,n),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return s.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,w)=>{const k=f.getMonth()===r.getMonth(),_=f.getTime()===x.getTime();return s.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:s.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},w)}),b.map((f,w)=>{const k=ot(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return s.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&s.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=r,t[2]=n,t[3]=o,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else o=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let p;t[9]!==m||t[10]!==a||t[11]!==c?(p=s.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==i||t[15]!==p?(d=s.jsx(o,{className:i,children:p}),t[13]=o,t[14]=i,t[15]=p,t[16]=d):d=t[16],d}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return s.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:r,variants:n,colorMap:l}=e,o=r;let m,a,c,i,p,d;if(t[0]!==l||t[1]!==r||t[2]!==o||t[3]!==n){const h=F(r,B),g=new Date,b=new Map;for(const v of n){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-o.getTime(),f=v=>(Math.max(o.getTime(),Math.min(h.getTime(),v.getTime()))-o.getTime())/T*100;let w;t[10]!==o?(w=(v,j)=>F(o,j),t[10]=o,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=o.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=rt,d="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=s.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,s.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&s.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:s.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]=_,t[17]=i):i=t[17],p=y.map(v=>{const[j,D]=v,L=ot(l,j),I=D[0]?.blockLabel??j;return s.jsxs("div",{children:[s.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:s.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>s.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),s.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),s.jsxs("div",{className:"relative flex-1 h-full",children:[s.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(N.start.getTime(),o.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return s.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=r,t[2]=o,t[3]=n,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=p,t[9]=d}else m=t[4],a=t[5],c=t[6],i=t[7],p=t[8],d=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==p?(u=s.jsxs("div",{className:a,children:[c,i,p]}),t[18]=a,t[19]=c,t[20]=i,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==d||t[25]!==u?(x=s.jsx(m,{className:d,children:u}),t[23]=m,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return s.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return s.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[st[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Xr as VariantCalendar};
1
+ import{c as V,r as U,j as s,l as J,B as Y}from"./index-w7cXkMS0.js";import{h as ct}from"./agent-icon-BC_kIM34.js";import{n as mt,a as et}from"./Loading02-CHXsYYu1.js";import{i as pt}from"./ChevronRight-C9h4DJ39.js";import{L as dt}from"./label-CdvXWqEz.js";import{A as rt}from"./automation-runs-DYW4NrRW.js";import{S as ft}from"./switch-Czfx5iUj.js";import{a as ut,T as ht,b as gt}from"./tooltip-DgH1h_1J.js";import{V as xt}from"./view-mode-toggle-DHr_IRUy.js";import"./AlertCircle-K1Cf7xJw.js";import"./Tool01-B1ecVtDs.js";import"./ArrowUp-oFUTgURZ.js";import"./Settings02-CeCT9ww_.js";import"./XCircle-C2Gn8WFb.js";import"./ArrowUpRight-DGh0oiwo.js";import"./ZapSquare-BnuPEjJP.js";import"./Users03-BmEZC2T0.js";import"./CheckCircle-D_UfE86U.js";import"./Check-ObwlU2ns.js";import"./ChevronDown-KtceO6cD.js";import"./ChevronUp-P_yjpnby.js";import"./Circle-C0lDdCHR.js";import"./Stars02-DqD55xEl.js";import"./Copy01-CCFZNAKq.js";import"./ZoomOut-DdoXT-Ns.js";import"./DotsVertical-D8wzHMcy.js";import"./Globe01-DI-xTPsu.js";import"./Eye-CsmT8uTK.js";import"./FilterLines-CvmvkZeP.js";import"./Star01-BAyyUKMU.js";import"./Globe04-hDNodcum.js";import"./SwitchHorizontal01-BgJj9VJi.js";import"./HardDrive-DXFi9PdN.js";import"./Key01-DTIatEHn.js";import"./LayoutLeft-dlYPk2pd.js";import"./LinkExternal01-3QApPyRd.js";import"./List-C32BX24S.js";import"./Monitor01-DMcGHU8f.js";import"./Sun-klTv1zO8.js";import"./Palette-DRNIX3wp.js";import"./Play-CbpB97Qh.js";import"./Plus-BENaHHYv.js";import"./SearchLg-Cn6dJyxF.js";import"./SearchMd-DwHNN3Dn.js";import"./Shield01-DneQEzRe.js";import"./Stars01-DP8lhnKf.js";import"./Trash01-DgOzaQL2.js";import"./Upload01-DQEOiqMw.js";import"./User01-BmOSRY7q.js";import"./Users01-U6VVfgv0.js";import"./XClose-CLNf6XvR.js";import"./X-g5v0F9HE.js";import"./Zap-TvanW1zY.js";import"./select-B3lUXd6i.js";import"./useInfiniteQuery-CDzYUZ2k.js";import"./use-infinite-scroll-C7obvz9c.js";import"./use-connection-CCKb3ug6.js";import"./use-collections-WjRkizSO.js";import"./use-mcp-client-BZlO-9TO.js";import"./constants-CaIX_f5U.js";import"./auth-M4LjxrF3.js";import"./use-virtual-mcp-B5WiXBQf.js";import"./card-BBjmZTpv.js";import"./sidebar-BgSDebf3.js";import"./use-mobile-BMzqM1PV.js";import"./table-CHyYOqJb.js";import"./empty-state-DxrT90MV.js";import"./use-members-zGRFXExT.js";import"./use-org-auth-client-DcYmYVNG.js";import"./use-clock-tick-BOarQrBT.js";import"./use-automations-B2bsTUCh.js";import"./studio-tools-Ci6uL41d.js";import"./useSuspenseInfiniteQuery-wZpVt4XH.js";import"./badge-DSwB15sR.js";import"./checkbox-DVxDcu4d.js";import"./command-71ILUt20.js";import"./index-QMNL1mz-.js";import"./dialog-uq7w1riB.js";import"./popover-bZSwiBHR.js";import"./avatar-BQWvSCG3.js";import"./format-time-BnbuEtat.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-BBojWRVP.js";import"./file-type-icon-kgKS1MuO.js";import"./tab-id-bb-jjgGv.js";import"./monaco-editor-DKV8WqoE.js";import"./index-BsY8S_sp.js";import"./chat-context-B1bTiiYX.js";import"./autosend-DQUyGjwq.js";import"./hooks-sl5T3102.js";import"./decopilot-sse-pool-7FVaA4RW.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-ai-providers-BAFex_eJ.js";import"./use-decopilot-events-zKYpvLLf.js";import"./use-organization-settings-Bexlm4Xi.js";import"./types-DBK15Mj8.js";import"./shell-layout-D-vBBy4q.js";import"./alert-dialog-XZP6Ku-C.js";import"./required-auth-layout-C7itc5Uz.js";import"./use-org-sso-BtM7DEyR.js";import"./integration-icon-CLgXrKlV.js";import"./use-navigate-to-agent-CXExIaeJ.js";import"./reusable-new-chat-CouMjkYR.js";import"./use-mcp-prompts-CrIOevBO.js";import"./form-BBRmo-qT.js";import"./input-CcIFtj-y.js";const bt=new Set(["website/matchers/date.ts","$live/matchers/MatchDate.ts"]),yt=new Set(["website/matchers/multi.ts","$live/matchers/MatchMulti.ts"]),Tt=new Date(-864e13),vt=new Date(864e13),jt=/\/flags\/multivariate(?:\/[^/]+)?\.ts$/,Nt=/\/flags\/multivariate\.ts$/;function wt(e){let t=e;t.startsWith("pages-")&&(t=t.slice(6).replace(/-\d+$/,""));try{t=decodeURIComponent(t)}catch{}return t}function kt(e){if(!e||typeof e!="object")return null;const{start:t,end:r}=e,n=typeof t=="string",l=typeof r=="string";if(!n&&!l)return null;const o=n?new Date(t):Tt,m=l?new Date(r):vt;return Number.isNaN(o.getTime())||Number.isNaN(m.getTime())||n&&l&&m.getTime()<=o.getTime()?null:{start:o,end:m,openStart:!n,openEnd:!l}}function nt(e,t){if(!e||typeof e!="object")return;const r=e.__resolveType;if(typeof r=="string"){if(bt.has(r)){const n=kt(e);n&&t.push(n);return}if(yt.has(r)){const n=e.matchers;if(Array.isArray(n))for(const l of n)nt(l,t)}}}function _t(e){if(!e||typeof e!="object")return!1;const t=e.__resolveType;if(typeof t!="string"||!jt.test(t))return!1;const r=e.variants;return Array.isArray(r)}function Mt(e){if(typeof e=="string"){const a=e.trim();if(a.length===0)return null;try{const i=new URL(a).pathname.split("/").filter(Boolean),p=i[i.length-1];if(p)return decodeURIComponent(p)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,r=t.config,l=t.desktop?.media,o=[t.title,t.name,t.label,t.alt,r?.title,r?.name,r?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of o)if(typeof a=="string"&&a.trim().length>0)return a.trim();const m=t.__resolveType;if(typeof m=="string"){const c=(m.split("/").pop()??m).replace(/\.(tsx?|jsx?)$/i,"");if(c.length>0)return c}return null}function Et(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 W(e,t,r,n,l){if(_t(e)){const o=e.variants,m=e.__resolveType,a=Nt.test(m)?"":Et(n);o.forEach((c,i)=>{if(!c||typeof c!="object")return;const p=c,d=[];if(nt(p.rule,d),d.length===0)return;const x=Mt(p.value)??(a||r);for(const h of d)l.push({blockKey:t,blockLabel:r,innerPath:a,variantIndex:i,start:h.start,end:h.end,openStart:h.openStart,openEnd:h.openEnd,label:x,flagResolveType:m})});for(let c=0;c<o.length;c++){const i=o[c];i&&typeof i=="object"&&W(i.value,t,r,[...n,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let o=0;o<e.length;o++)W(e[o],t,r,[...n,o],l);return}if(e&&typeof e=="object")for(const[o,m]of Object.entries(e))o!=="__resolveType"&&W(m,t,r,[...n,o],l)}function St(e){if(!e)return[];const t=[];for(const[r,n]of Object.entries(e))W(n,r,wt(r),[],t);return t.sort((r,n)=>r.start.getTime()-n.start.getTime())}function At(e){const t=[...new Set(e)].sort(),r=new Map;return t.forEach((n,l)=>{const o=l*137.508%360;r.set(n,{bg:`oklch(0.62 0.14 ${o})`,text:"white",border:`oklch(0.50 0.14 ${o})`})}),r}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function ot(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],st=["January","February","March","April","May","June","July","August","September","October","November","December"],it=1440*60*1e3;function P(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function at(e){return new Date(e.getFullYear(),e.getMonth(),1)}function F(e,t){return new Date(e.getFullYear(),e.getMonth()+t,1)}function z(e,t){const r=new Date(e);return r.setDate(r.getDate()+t),r}function K(e,t){return Math.round((P(e).getTime()-P(t).getTime())/it)}function Ct(e){const t=(e.getTime()-P(e).getTime())/it;return Math.min(Math.max(t,0),1)}function q(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),r=[];for(let n=0;n<6;n++){const l=[];for(let o=0;o<7;o++)l.push(z(t,n*7+o));r.push(l)}for(;r.length>0&&r[r.length-1].every(n=>n.getMonth()!==e.getMonth());)r.pop();return r}function Lt(e,t){const r=P(e[0]),n=z(r,7),l=r.getTime(),o=n.getTime(),m=[];for(const i of t){const p=P(i.start),d=P(i.end);if(d.getTime()<r.getTime()||p.getTime()>=n.getTime())continue;const u=p.getTime()<r.getTime()?r:p,x=d.getTime()>=n.getTime()?z(n,-1):d,h=K(u,r),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),o),T=q(new Date(b),r),f=Math.max(q(new Date(y),r)-T,0);f<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:f})}m.sort((i,p)=>i.startCol-p.startCol||p.span-i.span||i.variant.blockKey.localeCompare(p.variant.blockKey));const a=[],c=[];for(const i of m){let p=a.findIndex(d=>d<=i.startCol);p===-1&&(p=a.length,a.push(0)),a[p]=i.startCol+i.span,c.push({...i,lane:p})}return c}const Q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":Q.format(e.start),r=e.openEnd?"Ongoing":Q.format(e.end);return`${t} → ${r}`}function Pt(e){const t=V.c(17),{variant:r}=e;let n;t[0]!==r.blockLabel?(n=s.jsx("div",{className:"font-semibold",children:r.blockLabel}),t[0]=r.blockLabel,t[1]=n):n=t[1];let l;t[2]!==r.innerPath?(l=r.innerPath&&s.jsx("div",{className:"text-muted-foreground",children:r.innerPath}),t[2]=r.innerPath,t[3]=l):l=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&&s.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 m;t[8]!==r?(m=Ot(r),t[8]=r,t[9]=m):m=t[9];let a;t[10]!==m?(a=s.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==n||t[13]!==l||t[14]!==o||t[15]!==a?(c=s.jsx(gt,{children:s.jsxs("div",{className:"text-xs",children:[n,l,o,a]})}),t[12]=n,t[13]=l,t[14]=o,t[15]=a,t[16]=c):c=t[16],c}const X=16;function It(e,t){const r=e?"transparent":"#000 0",n=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${r}, #000 ${X}px, #000 calc(100% - ${X}px), ${n})`}function lt(e){const t=V.c(26),{variant:r,color:n,style:l,children:o,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let p;t[0]!==i||t[1]!==c?(p=It(c,i),t[0]=i,t[1]=c,t[2]=p):p=t[2];const d=p;let u;t[3]!==c?(u=c&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},t[3]=c,t[4]=u):u=t[4];let x;t[5]!==i?(x=i&&{borderTopRightRadius:0,borderBottomRightRadius:0},t[5]=i,t[6]=x):x=t[6];let h;t[7]!==d?(h=d&&{maskImage:d,WebkitMaskImage:d},t[7]=d,t[8]=h):h=t[8];let g;t[9]!==n.bg||t[10]!==n.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:n.bg,color:n.text,borderRadius:4,...u,...x,...h,...l},t[9]=n.bg,t[10]=n.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==o?(b=s.jsx("span",{className:"truncate",children:o}),t[16]=o,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=s.jsx(ut,{asChild:!0,children:s.jsx("div",{className:"absolute flex items-center px-2 text-[11px] font-medium truncate cursor-default",style:g,children:b})}),t[18]=g,t[19]=b,t[20]=y):y=t[20];let T;t[21]!==r?(T=s.jsx(Pt,{variant:r}),t[21]=r,t[22]=T):T=t[22];let f;return t[23]!==T||t[24]!==y?(f=s.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=f):f=t[25],f}function Xr(e){const t=V.c(49),{decofile:r}=e,[n,l]=U.useState("calendar"),[o,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,p,d;if(t[0]!==r||t[1]!==a){const S=St(r);i=S.filter(Ht).length,d=a?S:S.filter(Vt),p=At(d.map(Ft)),t[0]=r,t[1]=a,t[2]=i,t[3]=p,t[4]=d}else i=t[2],p=t[3],d=t[4];const u=p;let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>m(at(new Date)),t[5]=x):x=t[5];const h=x;let g;t[6]!==n?(g=()=>m(S=>n==="calendar"?F(S,-1):F(S,-3)),t[6]=n,t[7]=g):g=t[7];const b=g;let y;t[8]!==n?(y=()=>m(S=>n==="calendar"?F(S,1):F(S,3)),t[8]=n,t[9]=y):y=t[9];const T=y;let f;t[10]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=f):f=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(mt,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=s.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:b,"aria-label":"Previous",children:w}),t[12]=b,t[13]=k):k=t[13];let _;t[14]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(pt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=s.jsx(Y,{variant:"ghost",size:"icon",className:"size-8",onClick:T,"aria-label":"Next",children:_}),t[15]=T,t[16]=M):M=t[16];const A=st[o.getMonth()];let E;t[17]!==o?(E=o.getFullYear(),t[17]=o,t[18]=E):E=t[18];let v;t[19]!==A||t[20]!==E?(v=s.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",E]}),t[19]=A,t[20]=E,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=s.jsxs("div",{className:"flex items-center gap-2",children:[f,k,M,v]}),t[22]=v,t[23]=k,t[24]=M,t[25]=j):j=t[25];let D;t[26]!==i||t[27]!==a?(D=i>0&&s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ft,{id:"show-ongoing",checked:a,onCheckedChange:c}),s.jsxs(dt,{htmlFor:"show-ongoing",className:"text-xs text-muted-foreground cursor-pointer",children:["Show ongoing (",i,")"]})]}),t[26]=i,t[27]=a,t[28]=D):D=t[28];let L;t[29]===Symbol.for("react.memo_cache_sentinel")?(L={value:"calendar",icon:s.jsx(et,{}),label:"Calendar"},t[29]=L):L=t[29];let I;t[30]===Symbol.for("react.memo_cache_sentinel")?(I=[L,{value:"timeline",icon:s.jsx(ct,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==n?(N=s.jsx(xt,{value:n,onValueChange:l,options:I}),t[31]=n,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=s.jsxs("div",{className:"flex items-center gap-4",children:[D,N]}),t[33]=D,t[34]=N,t[35]=R):R=t[35];let $;t[36]!==j||t[37]!==R?($=s.jsxs("div",{className:"flex items-center justify-between px-4 h-12 border-b shrink-0",children:[j,R]}),t[36]=j,t[37]=R,t[38]=$):$=t[38];let C;t[39]!==u||t[40]!==o||t[41]!==i||t[42]!==a||t[43]!==d||t[44]!==n?(C=d.length===0?s.jsx(Wt,{hiddenOngoing:a?0:i}):n==="calendar"?s.jsx(Ut,{monthStart:o,variants:d,colorMap:u}):s.jsx(Jt,{monthStart:o,variants:d,colorMap:u}),t[39]=u,t[40]=o,t[41]=i,t[42]=a,t[43]=d,t[44]=n,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=s.jsxs("div",{className:"flex h-full w-full flex-col",children:[$,C]}),t[46]=$,t[47]=C,t[48]=O):O=t[48],O}function Ft(e){return e.blockKey}function Vt(e){return!e.openEnd}function Ht(e){return e.openEnd}function Bt(){return at(new Date)}function Wt(e){const t=V.c(3),{hiddenOngoing:r}=e,n=r===void 0?0:r;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let o;return t[1]!==n?(o=s.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,n>0?s.jsxs(s.Fragment,{children:[s.jsx("div",{children:"No dated variants in view."}),s.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[n," ongoing"," ",n===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{children:"No scheduled variants."}),s.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=n,t[2]=o):o=t[2],o}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:r,variants:n,colorMap:l}=e;let o,m,a,c,i;if(t[0]!==l||t[1]!==r||t[2]!==n){const u=Rt(r),x=P(new Date);o=rt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"grid grid-cols-7 border-b text-xs text-muted-foreground sticky top-0 bg-background z-10",children:$t.map(Gt)}),t[8]=a):a=t[8],c=u.map((h,g)=>{const b=Lt(h,n),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return s.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((f,w)=>{const k=f.getMonth()===r.getMonth(),_=f.getTime()===x.getTime();return s.jsx("div",{className:J("border-r last:border-r-0 px-2 pt-1.5 text-xs",k?"bg-background":"bg-muted/30 text-muted-foreground"),children:s.jsx("span",{className:J("inline-flex h-5 min-w-5 items-center justify-center rounded-full px-1",_&&"bg-primary text-primary-foreground font-semibold"),children:f.getDate()})},w)}),b.map((f,w)=>{const k=ot(l,f.variant.blockKey),_=tt+f.lane*(G+Z),M=f.leftUnits/7*100,A=f.widthUnits/7*100,E=f.variant.openStart&&g===0,v=f.variant.openEnd&&g===u.length-1;return s.jsxs(lt,{variant:f.variant,color:k,fadeStart:E,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[f.variant.blockLabel,f.variant.label!==f.variant.blockLabel&&s.jsxs("span",{className:"opacity-70",children:[" · ",f.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=r,t[2]=n,t[3]=o,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else o=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let p;t[9]!==m||t[10]!==a||t[11]!==c?(p=s.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=p):p=t[12];let d;return t[13]!==o||t[14]!==i||t[15]!==p?(d=s.jsx(o,{className:i,children:p}),t[13]=o,t[14]=i,t[15]=p,t[16]=d):d=t[16],d}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return s.jsx("div",{className:"px-2 py-2 text-center uppercase tracking-wide",children:e},e)}const B=4,Kt=32,H=240;function Jt(e){const t=V.c(27),{monthStart:r,variants:n,colorMap:l}=e,o=r;let m,a,c,i,p,d;if(t[0]!==l||t[1]!==r||t[2]!==o||t[3]!==n){const h=F(r,B),g=new Date,b=new Map;for(const v of n){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Xt),T=h.getTime()-o.getTime(),f=v=>(Math.max(o.getTime(),Math.min(h.getTime(),v.getTime()))-o.getTime())/T*100;let w;t[10]!==o?(w=(v,j)=>F(o,j),t[10]=o,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=o.getTime()&&g.getTime()<=h.getTime()?f(g):null;m=rt,d="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx("div",{className:"shrink-0 px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground border-r",style:{width:H},children:"Variant / Block"}),t[12]=M):M=t[12];let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A={gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},t[13]=A):A=t[13];const E=k.map(Qt);t[14]!==E?(c=s.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,s.jsx("div",{className:"flex-1 grid",style:A,children:E})]}),t[14]=E,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&s.jsx("div",{className:"pointer-events-none absolute top-0 bottom-0 w-px bg-primary/70 z-[5]",style:{left:`calc(${H}px + (100% - ${H}px) * ${_} / 100)`},children:s.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]=_,t[17]=i):i=t[17],p=y.map(v=>{const[j,D]=v,L=ot(l,j),I=D[0]?.blockLabel??j;return s.jsxs("div",{children:[s.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:s.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>s.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[s.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),s.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),s.jsxs("div",{className:"relative flex-1 h-full",children:[s.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(qt)}),(()=>{const $=Math.max(N.start.getTime(),o.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=f(new Date($)),S=f(new Date(C))-O;return s.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${S}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=r,t[2]=o,t[3]=n,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=p,t[9]=d}else m=t[4],a=t[5],c=t[6],i=t[7],p=t[8],d=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==p?(u=s.jsxs("div",{className:a,children:[c,i,p]}),t[18]=a,t[19]=c,t[20]=i,t[21]=p,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==d||t[25]!==u?(x=s.jsx(m,{className:d,children:u}),t[23]=m,t[24]=d,t[25]=u,t[26]=x):x=t[26],x}function qt(e,t){return s.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function Qt(e,t){return s.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[st[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Xt(e,t){return e[0].localeCompare(t[0])}export{Xr as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as T,l as f,j as i}from"./index-DXPJFzt6.js";import{T as k,a as I,b as P}from"./tooltip-VN_eyJpk.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-w7cXkMS0.js";import{T as k,a as I,b as P}from"./tooltip-DgH1h_1J.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-DXPJFzt6.js"></script>
59
+ <script type="module" crossorigin src="/assets/index-w7cXkMS0.js"></script>
60
60
  <link rel="stylesheet" crossorigin href="/assets/index-DyGg1OBV.css">
61
61
  </head>
62
62
  <body>