decocms 4.19.1 → 4.20.1

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 (225) hide show
  1. package/dist/client/assets/{AlertCircle-CrWOgOcM.js → AlertCircle-DMGExMxY.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-DNHb6657.js → ArrowUpRight-BYUnq8gY.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-CF2B3x9W.js → CheckCircle-C5ITwmFz.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-DKfF2OOr.js → ChevronDown-BDi4pzpg.js} +1 -1
  5. package/dist/client/assets/{ChevronRight-FTkiCu7o.js → ChevronRight-CkirMRmz.js} +1 -1
  6. package/dist/client/assets/{ChevronUp-DVJ41quT.js → ChevronUp-BgfgTfJo.js} +1 -1
  7. package/dist/client/assets/{DotsVertical-r5FCPann.js → DotsVertical-wFUaTKIr.js} +1 -1
  8. package/dist/client/assets/{Eye-CjdAN2p_.js → Eye-BPtPfNj_.js} +1 -1
  9. package/dist/client/assets/{FilterLines-DkfcXHQz.js → FilterLines-DCrHo_W-.js} +1 -1
  10. package/dist/client/assets/{Globe01-BlUsYcKm.js → Globe01-CHueNlXT.js} +1 -1
  11. package/dist/client/assets/{Globe04-BOBkw9xg.js → Globe04-D1Ia72FD.js} +1 -1
  12. package/dist/client/assets/{HardDrive-CDwvN3Yq.js → HardDrive-C5pxB0xX.js} +1 -1
  13. package/dist/client/assets/{Key01-DggrSusl.js → Key01-D_Aswhqq.js} +1 -1
  14. package/dist/client/assets/{LayoutLeft-BAJjziFf.js → LayoutLeft-BIAH0kog.js} +1 -1
  15. package/dist/client/assets/{LinkExternal01-BimMaL_S.js → LinkExternal01-vG76nXPe.js} +1 -1
  16. package/dist/client/assets/{Monitor01-Cjbc7KtF.js → Monitor01-BEHd5v9A.js} +1 -1
  17. package/dist/client/assets/{Palette-VFARE9fe.js → Palette-CUxSqgEM.js} +1 -1
  18. package/dist/client/assets/{Play-B_T77FCL.js → Play-B6SMfN5e.js} +1 -1
  19. package/dist/client/assets/{Plus-CT4lmKQ-.js → Plus-B3W-zU0m.js} +1 -1
  20. package/dist/client/assets/{SearchLg-DXfLniWn.js → SearchLg-CwA3o7Kq.js} +1 -1
  21. package/dist/client/assets/{SearchMd-D1KprS28.js → SearchMd-CG-ZdWyV.js} +1 -1
  22. package/dist/client/assets/{Settings02-CX8_9G6p.js → Settings02-BXQlyl72.js} +1 -1
  23. package/dist/client/assets/{Shield01-BJNia28P.js → Shield01-C5cTYwHG.js} +1 -1
  24. package/dist/client/assets/{Star01-DXHQ5VKF.js → Star01-CaO0nMo9.js} +1 -1
  25. package/dist/client/assets/{Stars01-CjyqffcL.js → Stars01-DjfTA0U2.js} +1 -1
  26. package/dist/client/assets/{Stars02-Dy1IgGK7.js → Stars02-oR68jXM_.js} +1 -1
  27. package/dist/client/assets/{Sun-Ddjz60nv.js → Sun-gt9ujltE.js} +1 -1
  28. package/dist/client/assets/{SwitchHorizontal01-DIzvrlS4.js → SwitchHorizontal01-DKfBMAMt.js} +1 -1
  29. package/dist/client/assets/{Tool01-CMGcO8RB.js → Tool01-CPfgYpSb.js} +1 -1
  30. package/dist/client/assets/{Trash01-C5v_1lmC.js → Trash01-De9U-JcA.js} +1 -1
  31. package/dist/client/assets/{Upload01-CHZU-q-U.js → Upload01-XVwkIKd6.js} +1 -1
  32. package/dist/client/assets/{User01-DnevuSsN.js → User01--wnyNy2g.js} +1 -1
  33. package/dist/client/assets/{Users01-BxxjvYSa.js → Users01-DQSxkCun.js} +1 -1
  34. package/dist/client/assets/{Users03-pb_1zwif.js → Users03-DEShSeP4.js} +1 -1
  35. package/dist/client/assets/{X-BFHKMpc4.js → X-DchRughI.js} +1 -1
  36. package/dist/client/assets/{XCircle-BCHeYpK1.js → XCircle-BMPeQmo7.js} +1 -1
  37. package/dist/client/assets/{XClose-C1QSVhPh.js → XClose-BlQxiRFv.js} +1 -1
  38. package/dist/client/assets/{Zap-98Lh21Pu.js → Zap-gCfOy-ns.js} +1 -1
  39. package/dist/client/assets/{ZapSquare-CFdenizT.js → ZapSquare-DRmIxSdp.js} +1 -1
  40. package/dist/client/assets/{ZoomOut-GtvZ6BOo.js → ZoomOut-VZDZQqnX.js} +1 -1
  41. package/dist/client/assets/{access-gate-BZBMXVjw.js → access-gate-Cqrbc3BU.js} +1 -1
  42. package/dist/client/assets/{add-section-modal-CEsZLPd4.js → add-section-modal-DgQQFrd8.js} +1 -1
  43. package/dist/client/assets/{agent-capabilities-C8oOyLwD.js → agent-capabilities-Bxs0ILD3.js} +1 -1
  44. package/dist/client/assets/{agent-icon-Bh_4WBc4.js → agent-icon-Bw-pYaqu.js} +1 -1
  45. package/dist/client/assets/{agents-list-eE-8013z.js → agents-list-BaYiXH15.js} +1 -1
  46. package/dist/client/assets/{ai-providers-Bbk8L7dK.js → ai-providers-C4e06NrJ.js} +1 -1
  47. package/dist/client/assets/{alert-DbRprPUP.js → alert-CWiQ4BOG.js} +1 -1
  48. package/dist/client/assets/{alert-dialog-B-vZJ8OL.js → alert-dialog-Buxux4Jv.js} +1 -1
  49. package/dist/client/assets/app-editor-DtV9KQKR.js +1 -0
  50. package/dist/client/assets/{auth-BZlr3InS.js → auth-BZgEN2RD.js} +1 -1
  51. package/dist/client/assets/{auth-catchall-BaXKW2Zv.js → auth-catchall-BM5rYO-b.js} +1 -1
  52. package/dist/client/assets/{auth-entry-BnKfIh0g.js → auth-entry-Cvl9qiXx.js} +1 -1
  53. package/dist/client/assets/{auth-split-layout-DORm1Aj8.js → auth-split-layout-Dfe6g0QY.js} +1 -1
  54. package/dist/client/assets/{authenticate-and-persist-oauth-7nIaP6nY.js → authenticate-and-persist-oauth-cJNik8J_.js} +1 -1
  55. package/dist/client/assets/{automation-list-row-CeoC4wuY.js → automation-list-row-BUhdfpZz.js} +1 -1
  56. package/dist/client/assets/{automation-runs-DuTi6qIb.js → automation-runs-D52rO4m5.js} +1 -1
  57. package/dist/client/assets/{automations-yerdeix7.js → automations-Cc50qZvh.js} +1 -1
  58. package/dist/client/assets/{avatar-wRHzkc89.js → avatar-B8STW9mD.js} +1 -1
  59. package/dist/client/assets/{badge-D2DIEtvd.js → badge-D5WiG5D4.js} +1 -1
  60. package/dist/client/assets/{block-document-BzyvxTAn.js → block-document-CyegCur0.js} +1 -1
  61. package/dist/client/assets/{brand-context-yANzutao.js → brand-context-BclDTNfv.js} +1 -1
  62. package/dist/client/assets/{breadcrumb-BMrCQQoA.js → breadcrumb-CrhSDATC.js} +1 -1
  63. package/dist/client/assets/{buckets-jIf8s5p0.js → buckets--3cPd2W_.js} +1 -1
  64. package/dist/client/assets/{bulk-category-panel-DyUPNNqN.js → bulk-category-panel-DsOXc5WN.js} +1 -1
  65. package/dist/client/assets/{capability-load-error-Cc_hSOqr.js → capability-load-error-DB0r6fSo.js} +1 -1
  66. package/dist/client/assets/{card-CuPFDXFk.js → card-BWrHlXPo.js} +1 -1
  67. package/dist/client/assets/{category-editor-CfBCy64n.js → category-editor-EHZdd7WQ.js} +1 -1
  68. package/dist/client/assets/{chat-context-CW4WErb4.js → chat-context-D6mGbi6m.js} +1 -1
  69. package/dist/client/assets/{checkbox-TLBVhedy.js → checkbox-B0iPK-Vx.js} +1 -1
  70. package/dist/client/assets/{cli-auth-success-C8WYZmMK.js → cli-auth-success-DYZ43GUt.js} +1 -1
  71. package/dist/client/assets/{collection-detail-BNlX5-kK.js → collection-detail-pr_0VNQT.js} +1 -1
  72. package/dist/client/assets/{collection-display-button-D1fiLXRl.js → collection-display-button-BdyEgFyg.js} +1 -1
  73. package/dist/client/assets/{collection-search-CLcAfxc3.js → collection-search-C_fvYmsw.js} +1 -1
  74. package/dist/client/assets/{collection-table-wrapper-CeRvrH4D.js → collection-table-wrapper-Cv1VGTD3.js} +1 -1
  75. package/dist/client/assets/{collection-tabs-CGN96M8I.js → collection-tabs-Bj8UeBuP.js} +1 -1
  76. package/dist/client/assets/{command-D6rd-LIe.js → command-DeIgAPPz.js} +1 -1
  77. package/dist/client/assets/{commerce-onboarding-BoVt6hh2.js → commerce-onboarding-CHMkWtbP.js} +1 -1
  78. package/dist/client/assets/{connect-desktop-dialog-D4zgSEhB.js → connect-desktop-dialog-DU7oJbU_.js} +1 -1
  79. package/dist/client/assets/{connection-card-e1rMYTXe.js → connection-card-CIIT6a-B.js} +1 -1
  80. package/dist/client/assets/{connection-detail-BSUszoJX.js → connection-detail-DW7R20rk.js} +1 -1
  81. package/dist/client/assets/{connection-form-helpers-2Tdo3PPc.js → connection-form-helpers-DYr5JaDw.js} +1 -1
  82. package/dist/client/assets/{connections-qmMxCwDt.js → connections-BXo316Yj.js} +1 -1
  83. package/dist/client/assets/{decopilot-B74lEWE3.js → decopilot-BEN2dFqJ.js} +1 -1
  84. package/dist/client/assets/{decopilot-sse-pool-DlyaRQos.js → decopilot-sse-pool-D-yGYu6w.js} +1 -1
  85. package/dist/client/assets/{dialog-C7zfaYvi.js → dialog-Bw0pp5yj.js} +1 -1
  86. package/dist/client/assets/{domain-settings-Cn_rgaWZ.js → domain-settings-ClPu3y3V.js} +1 -1
  87. package/dist/client/assets/{drawer-mYCbrfji.js → drawer-Bqwp_rDk.js} +1 -1
  88. package/dist/client/assets/{dropdown-menu-BWhCscsh.js → dropdown-menu-DBdT-R6w.js} +1 -1
  89. package/dist/client/assets/{empty-state-CJPs_SWQ.js → empty-state-DEvtcbTs.js} +1 -1
  90. package/dist/client/assets/{extract-connection-data-DaOKpkPS.js → extract-connection-data-DB2mp1s-.js} +1 -1
  91. package/dist/client/assets/file-explorer-CCDyOatC.js +2 -0
  92. package/dist/client/assets/{file-type-icon-D3nItM5q.js → file-type-icon-CeDR5FDE.js} +1 -1
  93. package/dist/client/assets/{files-CiXikCwg.js → files-BhVyoXap.js} +1 -1
  94. package/dist/client/assets/{form-JC_8zZ5B.js → form-BvyPfbLQ.js} +1 -1
  95. package/dist/client/assets/{general-DPnEvUWi.js → general-Cppvys0u.js} +1 -1
  96. package/dist/client/assets/{github-repo-picker-49vqDHRV.js → github-repo-picker-D7QB7NBL.js} +1 -1
  97. package/dist/client/assets/{hooks-CHAk1XGg.js → hooks-BPEh0QmD.js} +1 -1
  98. package/dist/client/assets/index-B1I1Oi0g.css +1 -0
  99. package/dist/client/assets/{index-CvbI0HO5.js → index-BAAVzGGp.js} +1 -1
  100. package/dist/client/assets/{index-BfgCyLMB.js → index-BASamdWA.js} +1 -1
  101. package/dist/client/assets/index-BLK_ychv.js +513 -0
  102. package/dist/client/assets/{index-vA5zp5UV.js → index-Bi8gy8BM.js} +1 -1
  103. package/dist/client/assets/{index-Crkn18Q_.js → index-C0UjMZmb.js} +1 -1
  104. package/dist/client/assets/{index-qxnjX2qr.js → index-C3UHIWhR.js} +1 -1
  105. package/dist/client/assets/{index-Bv7C86xQ.js → index-C4E5A5_g.js} +1 -1
  106. package/dist/client/assets/{index-06d4ZAKo.js → index-CgS6ZFaA.js} +1 -1
  107. package/dist/client/assets/{index-DuOXGPOn.js → index-CuLYHmz6.js} +1 -1
  108. package/dist/client/assets/{index-BRCFbJkN.js → index-DBQeQBu7.js} +2 -2
  109. package/dist/client/assets/{index-DGjjIEMW.js → index-DSmc84cq.js} +1 -1
  110. package/dist/client/assets/{index-CdtMfz8j.js → index-OF548fxc.js} +3 -3
  111. package/dist/client/assets/{index-v8f17gCF.js → index-WiwoxaKL.js} +1 -1
  112. package/dist/client/assets/{index-redirect-Co0u89SY.js → index-redirect-Ckad27gh.js} +1 -1
  113. package/dist/client/assets/{input-BiDwjULh.js → input-C6fESize.js} +1 -1
  114. package/dist/client/assets/{integration-icon-BbQUvQHw.js → integration-icon-B3836mZm.js} +1 -1
  115. package/dist/client/assets/{invite-member-dialog-Bb8bAUsL.js → invite-member-dialog-BuboFMvI.js} +1 -1
  116. package/dist/client/assets/{label-Ca-UFgYP.js → label-Cpj2tcAv.js} +1 -1
  117. package/dist/client/assets/{library-tab-Cn8Fw_rb.js → library-tab-BBjWEEvH.js} +1 -1
  118. package/dist/client/assets/{login-DfcWVhyk.js → login-BGIn53vR.js} +1 -1
  119. package/dist/client/assets/{mcp-oauth-DQwXcwWk.js → mcp-oauth-DXbhYp2n.js} +1 -1
  120. package/dist/client/assets/{members-huPLWgt4.js → members-BJuT40Uf.js} +1 -1
  121. package/dist/client/assets/monaco-editor-Dg_OXRF1.js +9 -0
  122. package/dist/client/assets/{monitoring-stats-row-D3Q3Nu2h.js → monitoring-stats-row-ty05snCg.js} +1 -1
  123. package/dist/client/assets/{oauth-callback-Dlxn1Y4T.js → oauth-callback-DmDYtprU.js} +1 -1
  124. package/dist/client/assets/{oauth-callback-ai-provider-CTIJNSnn.js → oauth-callback-ai-provider-nV9ol-kz.js} +1 -1
  125. package/dist/client/assets/{onboarding-B9A7uDYL.js → onboarding-DFxThqB8.js} +1 -1
  126. package/dist/client/assets/{org-install-CdPwnMl5.js → org-install-C6-_thTM.js} +1 -1
  127. package/dist/client/assets/{org-layout-DRAutFbX.js → org-layout-rq33k6_9.js} +1 -1
  128. package/dist/client/assets/{organization-choice-DpkEwFod.js → organization-choice-LqtmycnE.js} +1 -1
  129. package/dist/client/assets/{page-seo-form-D0GI9lLk.js → page-seo-form-SfmOLumQ.js} +1 -1
  130. package/dist/client/assets/page-seo-sheet-rEaKbGL4.js +1 -0
  131. package/dist/client/assets/{popover-cAL-DhUW.js → popover-CPAEPhwT.js} +1 -1
  132. package/dist/client/assets/{post-editor-DOlcfzkD.js → post-editor-DNSrY2g5.js} +1 -1
  133. package/dist/client/assets/{primitives-B9KuKF1g.js → primitives-TAuh4FGx.js} +1 -1
  134. package/dist/client/assets/{profile-CMaqu-ZM.js → profile-BJUc-WPJ.js} +1 -1
  135. package/dist/client/assets/project-app-view-vdCIDY4V.js +1 -0
  136. package/dist/client/assets/record-editor-ChG8xfNH.js +1 -0
  137. package/dist/client/assets/registry-BDvYq0sF.js +2 -0
  138. package/dist/client/assets/{registry-layout-_uMhmX55.js → registry-layout-D8trut1f.js} +1 -1
  139. package/dist/client/assets/{require-capability-DbqqHqSD.js → require-capability-Dh5JJLWW.js} +1 -1
  140. package/dist/client/assets/{required-auth-layout-CIXcactD.js → required-auth-layout-BFKAd6mb.js} +1 -1
  141. package/dist/client/assets/{reset-password-B31IedRw.js → reset-password-BVwK480T.js} +1 -1
  142. package/dist/client/assets/{roles-CPBaY4YT.js → roles-BVmBg8nQ.js} +1 -1
  143. package/dist/client/assets/{scroll-area-BV1PdzgY.js → scroll-area-DVylVd8s.js} +1 -1
  144. package/dist/client/assets/{search-input-BvTfFXy2.js → search-input-DsIBo_sc.js} +1 -1
  145. package/dist/client/assets/{secrets-uCQ_u30U.js → secrets-okf3dR05.js} +1 -1
  146. package/dist/client/assets/{sections-editor-CQ55jRAI.js → sections-editor-BexUuo8y.js} +1 -1
  147. package/dist/client/assets/{select-C2Rlpewf.js → select-CYLZmEqL.js} +1 -1
  148. package/dist/client/assets/{select-model-Cqck9qx_.js → select-model-BEsDOV7S.js} +1 -1
  149. package/dist/client/assets/{seo-editor-SR2XHudD.js → seo-editor-lx2p6Zbz.js} +1 -1
  150. package/dist/client/assets/{settings-layout-Cw3Z2NrO.js → settings-layout-CP6mrAe7.js} +1 -1
  151. package/dist/client/assets/{settings-section-Dtkr5cgj.js → settings-section-Cd3zmde3.js} +1 -1
  152. package/dist/client/assets/{sheet-bFXt40v2.js → sheet-S1l6W00L.js} +1 -1
  153. package/dist/client/assets/{shell-controls-Dwurp9SN.js → shell-controls-CgJrLQ34.js} +1 -1
  154. package/dist/client/assets/{shell-layout-GyTVzUWp.js → shell-layout-D3aCzUD1.js} +1 -1
  155. package/dist/client/assets/{sidebar-BFtmDRr8.js → sidebar-DKxDx7lC.js} +1 -1
  156. package/dist/client/assets/{skeleton-_BcHzjMt.js → skeleton-wLHgTqVy.js} +1 -1
  157. package/dist/client/assets/{sso-Cn2kXTSh.js → sso-CsR0QPxD.js} +1 -1
  158. package/dist/client/assets/{store-BJjoTGaX.js → store-Dmf6IFoE.js} +1 -1
  159. package/dist/client/assets/store-registry-Ci8hLaqa.js +2 -0
  160. package/dist/client/assets/{studio-tools-CCSPlOzn.js → studio-tools-DkATXRgK.js} +1 -1
  161. package/dist/client/assets/{switch-Buwqv0xU.js → switch-C4FKiTgP.js} +1 -1
  162. package/dist/client/assets/tab-id-CLpu897Q.js +1 -0
  163. package/dist/client/assets/{table-CU8yPwfx.js → table-BV3Hd7cI.js} +1 -1
  164. package/dist/client/assets/{tabs-CddwxFpz.js → tabs-B9iGaa-Z.js} +1 -1
  165. package/dist/client/assets/{task-row-iFRGpIC8.js → task-row-Dq6a6p3f.js} +1 -1
  166. package/dist/client/assets/{task-status-C2_E5VhR.js → task-status-vCNfacyn.js} +1 -1
  167. package/dist/client/assets/{textarea-DvdUIw5m.js → textarea-CiUwXw-w.js} +1 -1
  168. package/dist/client/assets/{toggle-group-Dh4vRis3.js → toggle-group-CN_l4byE.js} +1 -1
  169. package/dist/client/assets/{toolbar-NS3dRcem.js → toolbar-ekp7NSbq.js} +1 -1
  170. package/dist/client/assets/{toolbar-icon-button-B4F6PyTu.js → toolbar-icon-button-CBlJ6I0o.js} +1 -1
  171. package/dist/client/assets/{tools-list-DUpwyN6a.js → tools-list-D_VeN0IP.js} +1 -1
  172. package/dist/client/assets/{tooltip-p2rwMkfY.js → tooltip-CKk6MyBG.js} +1 -1
  173. package/dist/client/assets/{types-Bi2G7z3x.js → types-CeLnpp7L.js} +1 -1
  174. package/dist/client/assets/{use-ai-providers-i-OLOuV3.js → use-ai-providers-DhQCSBc1.js} +1 -1
  175. package/dist/client/assets/{use-automations-C_EaLzwK.js → use-automations-DH-tTWJO.js} +1 -1
  176. package/dist/client/assets/{use-capability-BYx-bi8N.js → use-capability-HK8_0h49.js} +1 -1
  177. package/dist/client/assets/{use-clock-tick-CuMhMx5T.js → use-clock-tick-7xgXM9p8.js} +1 -1
  178. package/dist/client/assets/{use-collections-Dfssv2NY.js → use-collections-CdbL-rX2.js} +1 -1
  179. package/dist/client/assets/{use-connection-DYeByGyt.js → use-connection-BoEeMU65.js} +1 -1
  180. package/dist/client/assets/{use-copy-Cn8zQ9tS.js → use-copy-Ba_RrSds.js} +1 -1
  181. package/dist/client/assets/{use-create-virtual-mcp-bKYLcfo5.js → use-create-virtual-mcp-DCJ_9oKR.js} +1 -1
  182. package/dist/client/assets/{use-debounced-autosave-CnMCtyRQ.js → use-debounced-autosave-B6gDjRvo.js} +1 -1
  183. package/dist/client/assets/{use-debounced-value-CGG31OZc.js → use-debounced-value-CyOmB5fJ.js} +1 -1
  184. package/dist/client/assets/{use-decopilot-events-CbxvimAo.js → use-decopilot-events-DwY1rJO2.js} +1 -1
  185. package/dist/client/assets/{use-delete-connection-bpD8NDHm.js → use-delete-connection-CPWy2xmw.js} +1 -1
  186. package/dist/client/assets/{use-file-configs-DdjxuzRe.js → use-file-configs-SlXV4SMn.js} +1 -1
  187. package/dist/client/assets/{use-infinite-scroll-D8GIMCoG.js → use-infinite-scroll-DHUYU_kG.js} +1 -1
  188. package/dist/client/assets/{use-join-requests-DxfsB0ob.js → use-join-requests-f9qAAjhC.js} +1 -1
  189. package/dist/client/assets/{use-mcp-client-DthXIrwd.js → use-mcp-client-PdP6F3TE.js} +1 -1
  190. package/dist/client/assets/{use-mcp-prompts-C-qELbJl.js → use-mcp-prompts-UzvitU_e.js} +1 -1
  191. package/dist/client/assets/{use-mcp-tools-CtAyBg-K.js → use-mcp-tools-zFZxfr6-.js} +1 -1
  192. package/dist/client/assets/{use-members-Dl5WlQm9.js → use-members-DTTAqnQj.js} +1 -1
  193. package/dist/client/assets/{use-mobile-DblXAPNP.js → use-mobile-71FrMeIQ.js} +1 -1
  194. package/dist/client/assets/{use-navigate-to-agent-QmxPKNQ3.js → use-navigate-to-agent-DIwK9fdW.js} +1 -1
  195. package/dist/client/assets/{use-org-auth-client-ltUSlRg5.js → use-org-auth-client-CfqWFlO5.js} +1 -1
  196. package/dist/client/assets/{use-org-sso-BDcX9tPo.js → use-org-sso-DnPy8IJo.js} +1 -1
  197. package/dist/client/assets/{use-organization-roles-Yv4q0hc-.js → use-organization-roles-DLiC1YgM.js} +1 -1
  198. package/dist/client/assets/{use-organization-settings-BE0QjsKq.js → use-organization-settings-BZHnFHzb.js} +1 -1
  199. package/dist/client/assets/{use-registry-connections-BcW1FVdY.js → use-registry-connections-BItKY-Xq.js} +1 -1
  200. package/dist/client/assets/{use-secrets-CUy5jRbQ.js → use-secrets-CJb3Q-KQ.js} +1 -1
  201. package/dist/client/assets/{use-status-sounds-BuRKFujc.js → use-status-sounds-C23loojF.js} +1 -1
  202. package/dist/client/assets/{use-view-mode-qlF3nR-O.js → use-view-mode-DtQqfjJM.js} +1 -1
  203. package/dist/client/assets/{use-virtual-mcp-DDmj3AsS.js → use-virtual-mcp-D3Xj1Zyr.js} +1 -1
  204. package/dist/client/assets/useInfiniteQuery-CdROm-U7.js +1 -0
  205. package/dist/client/assets/useSuspenseInfiniteQuery-DtKEQU_S.js +1 -0
  206. package/dist/client/assets/{useSuspenseQueries-D6mgsMlu.js → useSuspenseQueries-f54Kg_lq.js} +1 -1
  207. package/dist/client/assets/{variant-calendar-GZ6FQjvZ.js → variant-calendar-BSvOsjHM.js} +1 -1
  208. package/dist/client/assets/{view-mode-toggle-3eYcMeZw.js → view-mode-toggle-xMIlyXz_.js} +1 -1
  209. package/dist/client/index.html +2 -2
  210. package/dist/server/cli.js +133 -125
  211. package/dist/server/server.js +132 -132
  212. package/package.json +1 -1
  213. package/dist/client/assets/app-editor-CO66uP8S.js +0 -1
  214. package/dist/client/assets/file-explorer-C99y1Vcp.js +0 -2
  215. package/dist/client/assets/index-CMi5qMWR.js +0 -513
  216. package/dist/client/assets/index-Cnn6tTYH.css +0 -1
  217. package/dist/client/assets/monaco-editor-CUhlQUlq.js +0 -9
  218. package/dist/client/assets/page-seo-sheet-zvPemEaB.js +0 -1
  219. package/dist/client/assets/project-app-view-CwYGXZEy.js +0 -1
  220. package/dist/client/assets/record-editor-Cc429OMY.js +0 -1
  221. package/dist/client/assets/registry-CP_e823U.js +0 -2
  222. package/dist/client/assets/store-registry-7ajEWo_b.js +0 -2
  223. package/dist/client/assets/tab-id-DPNwWMUY.js +0 -1
  224. package/dist/client/assets/useInfiniteQuery-BfcTu5R1.js +0 -1
  225. package/dist/client/assets/useSuspenseInfiniteQuery-SveCJrXl.js +0 -1
@@ -1 +1 @@
1
- import{c as m,k as p,q,aD as T}from"./index-CdtMfz8j.js";function C(n){const e=m.c(12);let t,o;e[0]!==n?({client:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const r=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==r?(i={...o,queryKey:l,queryFn:s,staleTime:r,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=r,e[11]=i):i=e[11],q(i)}function K(n){const e=m.c(12);let t,o;e[0]!==n?({client:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const r=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==r?(i={...o,queryKey:l,queryFn:s,staleTime:r,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=r,e[11]=i):i=e[11],p(i)}function O(n){const e=m.c(21);let t,o,l,s;e[0]!==n?({client:t,toolName:s,toolArguments:l,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let r,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=q,r=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=r,e[10]=i,e[11]=u}else r=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==r||e[17]!==i||e[18]!==a||e[19]!==y?(c={...r,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=r,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}function w(n){const e=m.c(21);let t,o,l,s;e[0]!==n?({client:t,toolName:s,toolArguments:l,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let r,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=p,r=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=r,e[10]=i,e[11]=u}else r=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==r||e[17]!==i||e[18]!==a||e[19]!==y?(c={...r,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=r,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}export{K as a,C as b,O as c,w as u};
1
+ import{c as m,k as p,q,aD as T}from"./index-OF548fxc.js";function C(n){const e=m.c(12);let t,o;e[0]!==n?({client:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const r=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==r?(i={...o,queryKey:l,queryFn:s,staleTime:r,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=r,e[11]=i):i=e[11],q(i)}function K(n){const e=m.c(12);let t,o;e[0]!==n?({client:t,...o}=n,e[0]=n,e[1]=t,e[2]=o):(t=e[1],o=e[2]);let l;e[3]!==t?(l=T.mcpToolsList(t),e[3]=t,e[4]=l):l=e[4];let s;e[5]!==t?(s=async()=>await t.listTools(),e[5]=t,e[6]=s):s=e[6];const r=o.staleTime??3e4;let i;return e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==r?(i={...o,queryKey:l,queryFn:s,staleTime:r,retry:!1},e[7]=o,e[8]=l,e[9]=s,e[10]=r,e[11]=i):i=e[11],p(i)}function O(n){const e=m.c(21);let t,o,l,s;e[0]!==n?({client:t,toolName:s,toolArguments:l,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let r,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=q,r=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=r,e[10]=i,e[11]=u}else r=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==r||e[17]!==i||e[18]!==a||e[19]!==y?(c={...r,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=r,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}function w(n){const e=m.c(21);let t,o,l,s;e[0]!==n?({client:t,toolName:s,toolArguments:l,...o}=n,e[0]=n,e[1]=t,e[2]=o,e[3]=l,e[4]=s):(t=e[1],o=e[2],l=e[3],s=e[4]);let r,i,u;if(e[5]!==t||e[6]!==o||e[7]!==l||e[8]!==s){const f=JSON.stringify(l??{});u=p,r=o,i=T.mcpToolCall(t,s,f),e[5]=t,e[6]=o,e[7]=l,e[8]=s,e[9]=r,e[10]=i,e[11]=u}else r=e[9],i=e[10],u=e[11];let a;e[12]!==t||e[13]!==l||e[14]!==s?(a=async()=>await t.callTool({name:s,arguments:l}),e[12]=t,e[13]=l,e[14]=s,e[15]=a):a=e[15];const y=o.staleTime??3e4;let c;return e[16]!==r||e[17]!==i||e[18]!==a||e[19]!==y?(c={...r,queryKey:i,queryFn:a,staleTime:y,retry:!1},e[16]=r,e[17]=i,e[18]=a,e[19]=y,e[20]=c):c=e[20],u(c)}export{K as a,C as b,O as c,w as u};
@@ -1 +1 @@
1
- import{c as n,G as i,q as l,K as m}from"./index-CdtMfz8j.js";import{u as a}from"./use-org-auth-client-ltUSlRg5.js";function p(){const e=n.c(7),{locator:o}=i(),u=a();let t;e[0]!==o?(t=m.members(o),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==u?(s=()=>u.organization.listMembers(),e[2]=u,e[3]=s):s=e[3];let r;return e[4]!==t||e[5]!==s?(r={queryKey:t,queryFn:s},e[4]=t,e[5]=s,e[6]=r):r=e[6],l(r)}export{p as u};
1
+ import{c as n,G as i,q as l,K as m}from"./index-OF548fxc.js";import{u as a}from"./use-org-auth-client-CfqWFlO5.js";function p(){const e=n.c(7),{locator:o}=i(),u=a();let t;e[0]!==o?(t=m.members(o),e[0]=o,e[1]=t):t=e[1];let s;e[2]!==u?(s=()=>u.organization.listMembers(),e[2]=u,e[3]=s):s=e[3];let r;return e[4]!==t||e[5]!==s?(r={queryKey:t,queryFn:s},e[4]=t,e[5]=s,e[6]=r):r=e[6],l(r)}export{p as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-CdtMfz8j.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-OF548fxc.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{L as p,r as l,c as S,j as I,b,G as v,a as x}from"./index-CdtMfz8j.js";import{a as A}from"./use-virtual-mcp-DDmj3AsS.js";const f=new Map;function O(e){return`${e.orgId}:${e.userId}`}function C(e){return`sidebar.group-order.${e}`}function m(e){try{const r=localStorage.getItem(e),t=r?JSON.parse(r):[];return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function R(e,r){try{localStorage.setItem(e,JSON.stringify(r))}catch{}}function E(e){const r=O(e),t=f.get(r);if(t)return t;const n=p.sidebarGroupOrder(e.orgId,e.userId);let c=!1;try{c=localStorage.getItem(n)!==null}catch{}let s=m(n);if(!c&&s.length===0&&e.userId!=="anon"){const a=m(C(e.orgId));a.length>0&&(s=a)}return f.set(r,s),s}function G(e,r){const t=new Set(r);return E(e).filter(n=>!t.has(n))}function P(e,r){f.set(O(e),r),R(p.sidebarGroupOrder(e.orgId,e.userId),r)}function $(e,r,t=[]){if(t.includes(r))return;const n=G(e,t);n.includes(r)||P(e,[r,...n])}const g=l.createContext(null);function k(e){const r=S.c(7),{children:t}=e,[n,c]=l.useState(!1),[s,a]=l.useState(0);let i;r[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>a(U),r[0]=i):i=r[0];const d=i;let o;r[1]!==n||r[2]!==s?(o={empty:n,setEmpty:c,orderRevision:s,bumpOrderRevision:d},r[1]=n,r[2]=s,r[3]=o):o=r[3];let u;return r[4]!==t||r[5]!==o?(u=I.jsx(g.Provider,{value:o,children:t}),r[4]=t,r[5]=o,r[6]=u):u=r[6],u}function U(e){return e+1}function L(){return l.useContext(g)?.empty??!1}function w(){return l.useContext(g)?.bumpOrderRevision??_}function _(){}function j(e){return(e??[]).filter(r=>!!r.pinned).map(r=>r.id)}function T(){const e=S.c(9),r=b(),{org:t}=v(),n=A(),{data:c}=x.useSession(),s=c?.user?.id??"anon";let a;e[0]!==n?(a=j(n),e[0]=n,e[1]=a):a=e[1];const i=a,d=w();let o;return e[2]!==d||e[3]!==r||e[4]!==t.id||e[5]!==t.slug||e[6]!==i||e[7]!==s?(o=(u,y)=>{$({orgId:t.id,userId:s},u,i),d();const h=crypto.randomUUID();r({to:"/$org/$taskId",params:{org:t.slug,taskId:h},search:{...y?.search??{},virtualmcpid:u}})},e[2]=d,e[3]=r,e[4]=t.id,e[5]=t.slug,e[6]=i,e[7]=s,e[8]=o):o=e[8],o}export{k as S,w as a,$ as b,T as c,j as g,L as u};
1
+ import{L as p,r as l,c as S,j as I,b,G as v,a as x}from"./index-OF548fxc.js";import{a as A}from"./use-virtual-mcp-D3Xj1Zyr.js";const f=new Map;function O(e){return`${e.orgId}:${e.userId}`}function C(e){return`sidebar.group-order.${e}`}function m(e){try{const r=localStorage.getItem(e),t=r?JSON.parse(r):[];return Array.isArray(t)?t.filter(n=>typeof n=="string"):[]}catch{return[]}}function R(e,r){try{localStorage.setItem(e,JSON.stringify(r))}catch{}}function E(e){const r=O(e),t=f.get(r);if(t)return t;const n=p.sidebarGroupOrder(e.orgId,e.userId);let c=!1;try{c=localStorage.getItem(n)!==null}catch{}let s=m(n);if(!c&&s.length===0&&e.userId!=="anon"){const a=m(C(e.orgId));a.length>0&&(s=a)}return f.set(r,s),s}function G(e,r){const t=new Set(r);return E(e).filter(n=>!t.has(n))}function P(e,r){f.set(O(e),r),R(p.sidebarGroupOrder(e.orgId,e.userId),r)}function $(e,r,t=[]){if(t.includes(r))return;const n=G(e,t);n.includes(r)||P(e,[r,...n])}const g=l.createContext(null);function k(e){const r=S.c(7),{children:t}=e,[n,c]=l.useState(!1),[s,a]=l.useState(0);let i;r[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>a(U),r[0]=i):i=r[0];const d=i;let o;r[1]!==n||r[2]!==s?(o={empty:n,setEmpty:c,orderRevision:s,bumpOrderRevision:d},r[1]=n,r[2]=s,r[3]=o):o=r[3];let u;return r[4]!==t||r[5]!==o?(u=I.jsx(g.Provider,{value:o,children:t}),r[4]=t,r[5]=o,r[6]=u):u=r[6],u}function U(e){return e+1}function L(){return l.useContext(g)?.empty??!1}function w(){return l.useContext(g)?.bumpOrderRevision??_}function _(){}function j(e){return(e??[]).filter(r=>!!r.pinned).map(r=>r.id)}function T(){const e=S.c(9),r=b(),{org:t}=v(),n=A(),{data:c}=x.useSession(),s=c?.user?.id??"anon";let a;e[0]!==n?(a=j(n),e[0]=n,e[1]=a):a=e[1];const i=a,d=w();let o;return e[2]!==d||e[3]!==r||e[4]!==t.id||e[5]!==t.slug||e[6]!==i||e[7]!==s?(o=(u,y)=>{$({orgId:t.id,userId:s},u,i),d();const h=crypto.randomUUID();r({to:"/$org/$taskId",params:{org:t.slug,taskId:h},search:{...y?.search??{},virtualmcpid:u}})},e[2]=d,e[3]=r,e[4]=t.id,e[5]=t.slug,e[6]=i,e[7]=s,e[8]=o):o=e[8],o}export{k as S,w as a,$ as b,T as c,j as g,L as u};
@@ -1 +1 @@
1
- import{c as x,G as j,a as i}from"./index-CdtMfz8j.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
1
+ import{c as x,G as j,a as i}from"./index-OF548fxc.js";function A(){const e=x.c(32),{org:O}=j(),o=O.id;let z;e[0]!==o?(z=R=>(f=>i.organization[R]({...f??{},organizationId:o})),e[0]=o,e[1]=z):z=e[1];const t=z;let M;e[2]!==o?(M=R=>(f=>{const y={...f??{}},h=y.query??{};return y.query={...h,organizationId:o},i.organization[R](y)}),e[2]=o,e[3]=M):M=e[3];const n=M;let a,r;e[4]!==n?(a=n("listMembers"),r=n("listRoles"),e[4]=n,e[5]=a,e[6]=r):(a=e[5],r=e[6]);let l,s,c,g,u,m,d,v,b;e[7]!==t?(g=t("inviteMember"),u=t("removeMember"),m=t("updateMemberRole"),d=t("addMember"),v=t("createRole"),b=t("updateRole"),l=t("deleteRole"),s=t("cancelInvitation"),c=t("update"),e[7]=t,e[8]=l,e[9]=s,e[10]=c,e[11]=g,e[12]=u,e[13]=m,e[14]=d,e[15]=v,e[16]=b):(l=e[8],s=e[9],c=e[10],g=e[11],u=e[12],m=e[13],d=e[14],v=e[15],b=e[16]);let p;e[17]!==n?(p=n("getActiveMember"),e[17]=n,e[18]=p):p=e[18];let I;return e[19]!==l||e[20]!==s||e[21]!==c||e[22]!==p||e[23]!==a||e[24]!==r||e[25]!==g||e[26]!==u||e[27]!==m||e[28]!==d||e[29]!==v||e[30]!==b?(I={organization:{listMembers:a,listRoles:r,inviteMember:g,removeMember:u,updateMemberRole:m,addMember:d,createRole:v,updateRole:b,deleteRole:l,cancelInvitation:s,update:c,getActiveMember:p,acceptInvitation:i.organization.acceptInvitation,rejectInvitation:i.organization.rejectInvitation,getInvitation:i.organization.getInvitation,list:i.organization.list,create:i.organization.create,getFullOrganization:i.organization.getFullOrganization}},e[19]=l,e[20]=s,e[21]=c,e[22]=p,e[23]=a,e[24]=r,e[25]=g,e[26]=u,e[27]=m,e[28]=d,e[29]=v,e[30]=b,e[31]=I):I=e[31],I}export{A as u};
@@ -1 +1 @@
1
- import{c as u,k as S,m as l,d as y,K as c}from"./index-CdtMfz8j.js";function w(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoStatus(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/status`);if(!r.ok)throw new Error("Failed to check SSO status");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function m(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoConfig(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`);if(!r.ok)throw new Error("Failed to fetch SSO config");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function q(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!f.ok){const p=await f.json();throw new Error(p.error||"Failed to save SSO config")}return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function C(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`,{method:"DELETE"});if(!r.ok)throw new Error("Failed to delete SSO config");return r.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function O(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:r})});if(!f.ok)throw new Error("Failed to toggle SSO enforcement");return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}export{m as a,q as b,C as c,O as d,w as u};
1
+ import{c as u,k as S,m as l,d as y,K as c}from"./index-OF548fxc.js";function w(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoStatus(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/status`);if(!r.ok)throw new Error("Failed to check SSO status");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function m(o,a){const e=u.c(8);let s;e[0]!==o?(s=c.orgSsoConfig(o??""),e[0]=o,e[1]=s):s=e[1];let t;e[2]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`);if(!r.ok)throw new Error("Failed to fetch SSO config");return r.json()},e[2]=a,e[3]=t):t=e[3];const n=!!o&&!!a;let i;return e[4]!==s||e[5]!==t||e[6]!==n?(i={queryKey:s,queryFn:t,enabled:n},e[4]=s,e[5]=t,e[6]=n,e[7]=i):i=e[7],S(i)}function q(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!f.ok){const p=await f.json();throw new Error(p.error||"Failed to save SSO config")}return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function C(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async()=>{const r=await fetch(`/api/${a}/sso/config`,{method:"DELETE"});if(!r.ok)throw new Error("Failed to delete SSO config");return r.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}function O(o,a){const e=u.c(8),s=l();let t;e[0]!==a?(t=async r=>{const f=await fetch(`/api/${a}/sso/config/enforce`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enforced:r})});if(!f.ok)throw new Error("Failed to toggle SSO enforcement");return f.json()},e[0]=a,e[1]=t):t=e[1];let n;e[2]!==o||e[3]!==s?(n=()=>{s.invalidateQueries({queryKey:c.orgSsoConfig(o)}),s.invalidateQueries({queryKey:c.orgSsoStatus(o)})},e[2]=o,e[3]=s,e[4]=n):n=e[4];let i;return e[5]!==t||e[6]!==n?(i={mutationFn:t,onSuccess:n},e[5]=t,e[6]=n,e[7]=i):i=e[7],y(i)}export{m as a,q as b,C as c,O as d,w as u};
@@ -1 +1 @@
1
- import{u as R}from"./use-org-auth-client-ltUSlRg5.js";import{G as b,k as P,K as y}from"./index-CdtMfz8j.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
1
+ import{u as R}from"./use-org-auth-client-CfqWFlO5.js";import{G as b,k as P,K as y}from"./index-OF548fxc.js";const w=[{value:"owner",label:"Owner",isBuiltin:!0},{value:"admin",label:"Admin",isBuiltin:!0},{value:"user",label:"User",isBuiltin:!0}];function B(t){return t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase())}function O(t){if(!t)return{staticPermissions:[],allowsAllStaticPermissions:!1,connectionIds:[],allowsAllConnections:!1,toolNames:[],allowsAllTools:!1,modelCount:0,allowsAllModels:!1};const n=[];let i=!1;const u=[];let c=!1;const a=new Set;let s=!1,f=0,e=!1;for(const[l,o]of Object.entries(t)){if(l==="self"){o.includes("*")?i=!0:n.push(...o);continue}if(l==="models"){o.includes("*:*")?e=!0:f=o.length;continue}if(l==="*"){if(c=!0,o.includes("*"))s=!0;else for(const r of o)a.add(r);continue}if(u.push(l),o.includes("*"))s=!0;else for(const r of o)a.add(r)}return{staticPermissions:n,allowsAllStaticPermissions:i,connectionIds:u,allowsAllConnections:c,toolNames:Array.from(a),allowsAllTools:s,modelCount:f,allowsAllModels:e}}function I(){const{locator:t}=b(),n=R(),{data:i,isLoading:u,error:c,refetch:a}=P({queryKey:y.organizationRoles(t),queryFn:async()=>{try{const e=await n.organization.listRoles();return e?.error?(console.error("[useOrganizationRoles] API error:",e.error),[]):e?.data??[]}catch(e){return console.error("[useOrganizationRoles] Fetch error:",e),[]}},staleTime:3e4}),s=w.map(e=>({role:e.value,label:e.label,isBuiltin:e.isBuiltin}));if(i&&Array.isArray(i))for(const e of i){const l=e.role;if(!l||w.some(h=>h.value===l))continue;const{staticPermissions:o,allowsAllStaticPermissions:r,connectionIds:g,allowsAllConnections:m,toolNames:p,allowsAllTools:d,modelCount:C,allowsAllModels:A}=O(e.permission);s.push({id:e.id,role:l,label:B(l),isBuiltin:!1,permission:e.permission??void 0,staticPermissionCount:r?-1:o.length,allowsAllStaticPermissions:r,connectionCount:m?-1:g.length,allowsAllConnections:m,toolCount:d?-1:p.length,allowsAllTools:d,modelCount:A?-1:C,allowsAllModels:A})}const f=s.filter(e=>!e.isBuiltin);return{roles:s,customRoles:f,builtinRoles:s.filter(e=>e.isBuiltin),isLoading:u,error:c,refetch:a}}export{I as u};
@@ -1 +1 @@
1
- import{K as d,c as l,G as g,k as E,m as I,d as G,r as R}from"./index-CdtMfz8j.js";import{W as b}from"./use-mcp-client-DthXIrwd.js";import{c as M,u as Q}from"./studio-tools-CCSPlOzn.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],G(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=R.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=b.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,G as g,k as E,m as I,d as G,r as R}from"./index-OF548fxc.js";import{W as b}from"./use-mcp-client-PdP6F3TE.js";import{c as M,u as Q}from"./studio-tools-DkATXRgK.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],G(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=R.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=b.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,G as R}from"./index-CdtMfz8j.js";import{u as p}from"./use-connection-DYeByGyt.js";import{W as a}from"./use-mcp-client-DthXIrwd.js";import{f as y}from"./use-organization-settings-BE0QjsKq.js";function G(){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{G as u};
1
+ import{c as C,G as R}from"./index-OF548fxc.js";import{u as p}from"./use-connection-BoEeMU65.js";import{W as a}from"./use-mcp-client-PdP6F3TE.js";import{f as y}from"./use-organization-settings-BZHnFHzb.js";function G(){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{G as u};
@@ -1 +1 @@
1
- import{c as r,G as a,K as c,q as f,m as y,d as m}from"./index-CdtMfz8j.js";import{u as l}from"./studio-tools-CCSPlOzn.js";function C(){const e=r.c(7),{org:o}=a(),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:n}=f(s);return n.secrets}function p(){const e=r.c(8),{org:o}=a(),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 n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],m(n)}export{p as a,C as u};
1
+ import{c as r,G as a,K as c,q as f,m as y,d as m}from"./index-OF548fxc.js";import{u as l}from"./studio-tools-DkATXRgK.js";function C(){const e=r.c(7),{org:o}=a(),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:n}=f(s);return n.secrets}function p(){const e=r.c(8),{org:o}=a(),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 n;return e[5]!==t||e[6]!==s?(n={mutationFn:t,onSuccess:s},e[5]=t,e[6]=s,e[7]=n):n=e[7],m(n)}export{p as a,C as u};
@@ -1 +1 @@
1
- import{c as r,I as u}from"./index-CdtMfz8j.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-CbxvimAo.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
1
+ import{c as r,I as u}from"./index-OF548fxc.js";import{p as i,q as c}from"./question-004-sINsf4GQ.js";import{u as f}from"./use-decopilot-events-DwY1rJO2.js";const p=new Set(["completed","failed","requires_action"]);function q(s){const e=r.c(5),[n]=u();let t;e[0]!==n?(t=o=>{n.enableSounds&&p.has(o.data.status)&&i(c.dataUri).catch(l)},e[0]=n,e[1]=t):t=e[1];let a;e[2]!==s||e[3]!==t?(a={orgSlug:s,onTaskStatus:t},e[2]=s,e[3]=t,e[4]=a):a=e[4],f(a)}function l(s){console.warn("[status-sounds] playback failed:",s)}export{q as u};
@@ -1 +1 @@
1
- import{c as p,r as f}from"./index-CdtMfz8j.js";import{u as w}from"./use-mobile-DblXAPNP.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-OF548fxc.js";import{u as w}from"./use-mobile-71FrMeIQ.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,G as d,aD as p,k as P}from"./index-CdtMfz8j.js";import{b as L,a as S,u as V,c as _}from"./use-collections-Dfssv2NY.js";import{S as g,u as I}from"./use-mcp-client-DthXIrwd.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{v as a,$ as b,E as c,b as u,R as v};
1
+ import{c as a,G as d,aD as p,k as P}from"./index-OF548fxc.js";import{b as L,a as S,u as V,c as _}from"./use-collections-CdbL-rX2.js";import{S as g,u as I}from"./use-mcp-client-PdP6F3TE.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{v as a,$ as b,E as c,b as u,R as v};
@@ -0,0 +1 @@
1
+ import{I as u}from"./use-infinite-scroll-DHUYU_kG.js";import{cD as i}from"./index-OF548fxc.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-DHUYU_kG.js";import{cD as u,av as n}from"./index-OF548fxc.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
@@ -1 +1 @@
1
- import{ah as C,ai as y,aj as w,ak as S,al as E,m as k,am as q,an as x,r as p,ao as M,ap as H,aq as L,ar as P,as as O,at as B,au as T,av as A}from"./index-CdtMfz8j.js";function R(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function j(t,e,s){const r=t.slice(0);return r[e]=s,r}var z=class extends C{#i;#e;#n;#r;#s;#t;#u;#o;#a;#h=[];constructor(t,e,s){super(),this.#i=t,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(t=>{t.subscribe(e=>{this.#f(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(t=>{t.destroy()})}setQueries(t,e){this.#n=t,this.#r=e,y.batch(()=>{const s=this.#s,r=this.#d(this.#n);r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),n=i.map(u=>u.getCurrentResult()),o=s.length!==i.length,c=i.some((u,f)=>u!==s[f]),d=o||c,b=d?!0:n.some((u,f)=>{const g=this.#e[f];return!g||!w(u,g)});!d&&!b||(d&&(this.#h=r,this.#s=i),this.#e=n,this.hasListeners()&&(d&&(R(s,i).forEach(u=>{u.destroy()}),R(i,s).forEach(u=>{u.subscribe(f=>{this.#f(u,f)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(t=>t.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(t,e){const s=this.#d(t),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#l(n??r,e,i),()=>this.#c(r,s)]}#c(t,e){return e.map((s,r)=>{const i=t[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(o=>{o.observer.trackProp(n)})})})}#l(t,e,s){if(e){const r=this.#a,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,o)=>n!==r[o]));return(!this.#t||this.#e!==this.#o||i||e!==this.#u)&&(this.#u=e,this.#o=this.#e,s!==void 0&&(this.#a=s),this.#t=S(this.#t,e(t))),this.#t}return t}#b(){return this.#r?.combine!==void 0&&this.#s.some((t,e)=>t.options.suspense&&this.#e[e]?.data===void 0)}#d(t){const e=new Map;this.#s.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(r):e.set(i,[r])});const s=[];return t.forEach(r=>{const i=this.#i.defaultQueryOptions(r),o=e.get(i.queryHash)?.shift()??new E(this.#i,i);s.push({defaultedQueryOptions:i,observer:o})}),s}#f(t,e){const s=this.#s.indexOf(t);s!==-1&&(this.#e=j(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const t=this.#c(this.#e,this.#h),e=this.#b(),s=this.#t,r=e?s:this.#l(t,this.#r?.combine);(e||s!==r)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:t,...e},s){const r=k(s),i=q(),n=x(),o=p.useMemo(()=>t.map(a=>{const h=r.defaultQueryOptions(a);return h._optimisticResults=i?"isRestoring":"optimistic",h}),[t,r,i]);o.forEach(a=>{M(a);const h=r.getQueryCache().get(a.queryHash);H(a,n,h)}),L(n);const[c]=p.useState(()=>new z(r,o,e)),[d,b,u]=c.getOptimisticResult(o,e.combine),f=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(a=>f?c.subscribe(y.batchCalls(a)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(o,e)},[o,e,c]);const m=d.some((a,h)=>O(o[h],a))?d.flatMap((a,h)=>{const l=o[h];if(l&&O(l,a)){const Q=new E(r,l);return B(l,Q,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((a,h)=>{const l=o[h];return l&&T({result:a,errorResetBoundary:n,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(u())}function U(t,e){return D({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:A,enabled:!0,placeholderData:void 0}))},e)}export{U as u};
1
+ import{ah as C,ai as y,aj as w,ak as S,al as E,m as k,am as q,an as x,r as p,ao as M,ap as H,aq as L,ar as P,as as O,at as B,au as T,av as A}from"./index-OF548fxc.js";function R(t,e){const s=new Set(e);return t.filter(r=>!s.has(r))}function j(t,e,s){const r=t.slice(0);return r[e]=s,r}var z=class extends C{#i;#e;#n;#r;#s;#t;#u;#o;#a;#h=[];constructor(t,e,s){super(),this.#i=t,this.#r=s,this.#n=[],this.#s=[],this.#e=[],this.setQueries(e)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(t=>{t.subscribe(e=>{this.#f(t,e)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(t=>{t.destroy()})}setQueries(t,e){this.#n=t,this.#r=e,y.batch(()=>{const s=this.#s,r=this.#d(this.#n);r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),n=i.map(u=>u.getCurrentResult()),o=s.length!==i.length,c=i.some((u,f)=>u!==s[f]),d=o||c,b=d?!0:n.some((u,f)=>{const g=this.#e[f];return!g||!w(u,g)});!d&&!b||(d&&(this.#h=r,this.#s=i),this.#e=n,this.hasListeners()&&(d&&(R(s,i).forEach(u=>{u.destroy()}),R(i,s).forEach(u=>{u.subscribe(f=>{this.#f(u,f)})})),this.#p()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(t=>t.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(t,e){const s=this.#d(t),r=s.map(n=>n.observer.getOptimisticResult(n.defaultedQueryOptions)),i=s.map(n=>n.defaultedQueryOptions.queryHash);return[r,n=>this.#l(n??r,e,i),()=>this.#c(r,s)]}#c(t,e){return e.map((s,r)=>{const i=t[r];return s.defaultedQueryOptions.notifyOnChangeProps?i:s.observer.trackResult(i,n=>{e.forEach(o=>{o.observer.trackProp(n)})})})}#l(t,e,s){if(e){const r=this.#a,i=s!==void 0&&r!==void 0&&(r.length!==s.length||s.some((n,o)=>n!==r[o]));return(!this.#t||this.#e!==this.#o||i||e!==this.#u)&&(this.#u=e,this.#o=this.#e,s!==void 0&&(this.#a=s),this.#t=S(this.#t,e(t))),this.#t}return t}#b(){return this.#r?.combine!==void 0&&this.#s.some((t,e)=>t.options.suspense&&this.#e[e]?.data===void 0)}#d(t){const e=new Map;this.#s.forEach(r=>{const i=r.options.queryHash;if(!i)return;const n=e.get(i);n?n.push(r):e.set(i,[r])});const s=[];return t.forEach(r=>{const i=this.#i.defaultQueryOptions(r),o=e.get(i.queryHash)?.shift()??new E(this.#i,i);s.push({defaultedQueryOptions:i,observer:o})}),s}#f(t,e){const s=this.#s.indexOf(t);s!==-1&&(this.#e=j(this.#e,s,e),this.#p())}#p(){if(this.hasListeners()){const t=this.#c(this.#e,this.#h),e=this.#b(),s=this.#t,r=e?s:this.#l(t,this.#r?.combine);(e||s!==r)&&y.batch(()=>{this.listeners.forEach(i=>{i(this.#e)})})}}};function D({queries:t,...e},s){const r=k(s),i=q(),n=x(),o=p.useMemo(()=>t.map(a=>{const h=r.defaultQueryOptions(a);return h._optimisticResults=i?"isRestoring":"optimistic",h}),[t,r,i]);o.forEach(a=>{M(a);const h=r.getQueryCache().get(a.queryHash);H(a,n,h)}),L(n);const[c]=p.useState(()=>new z(r,o,e)),[d,b,u]=c.getOptimisticResult(o,e.combine),f=!i&&e.subscribed!==!1;p.useSyncExternalStore(p.useCallback(a=>f?c.subscribe(y.batchCalls(a)):P,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(o,e)},[o,e,c]);const m=d.some((a,h)=>O(o[h],a))?d.flatMap((a,h)=>{const l=o[h];if(l&&O(l,a)){const Q=new E(r,l);return B(l,Q,n)}return[]}):[];if(m.length>0)throw Promise.all(m);const v=d.find((a,h)=>{const l=o[h];return l&&T({result:a,errorResetBoundary:n,throwOnError:l.throwOnError,query:r.getQueryCache().get(l.queryHash),suspense:l.suspense})});if(v?.error)throw v.error;return b(u())}function U(t,e){return D({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:A,enabled:!0,placeholderData:void 0}))},e)}export{U as u};
@@ -1 +1 @@
1
- import{c as V,r as U,j as o,l as J,B as Y}from"./index-CdtMfz8j.js";import{n as ct,X as et,f as mt}from"./agent-icon-Bh_4WBc4.js";import{i as dt}from"./ChevronRight-FTkiCu7o.js";import{L as ft}from"./label-Ca-UFgYP.js";import{S as nt}from"./scroll-area-BV1PdzgY.js";import{S as pt}from"./switch-Buwqv0xU.js";import{a as ut,T as ht,b as gt}from"./tooltip-p2rwMkfY.js";import{V as xt}from"./view-mode-toggle-3eYcMeZw.js";import"./AlertCircle-CrWOgOcM.js";import"./Tool01-CMGcO8RB.js";import"./SwitchHorizontal01-DIzvrlS4.js";import"./Settings02-CX8_9G6p.js";import"./XCircle-BCHeYpK1.js";import"./ArrowUpRight-DNHb6657.js";import"./ZapSquare-CFdenizT.js";import"./Users03-pb_1zwif.js";import"./CheckCircle-CF2B3x9W.js";import"./ChevronUp-DVJ41quT.js";import"./ChevronDown-DKfF2OOr.js";import"./DotsVertical-r5FCPann.js";import"./Stars02-Dy1IgGK7.js";import"./Eye-CjdAN2p_.js";import"./ZoomOut-GtvZ6BOo.js";import"./Globe01-BlUsYcKm.js";import"./FilterLines-DkfcXHQz.js";import"./Star01-DXHQ5VKF.js";import"./Globe04-BOBkw9xg.js";import"./HardDrive-CDwvN3Yq.js";import"./Key01-DggrSusl.js";import"./LayoutLeft-BAJjziFf.js";import"./LinkExternal01-BimMaL_S.js";import"./Monitor01-Cjbc7KtF.js";import"./Sun-Ddjz60nv.js";import"./Palette-VFARE9fe.js";import"./Play-B_T77FCL.js";import"./Plus-CT4lmKQ-.js";import"./SearchLg-DXfLniWn.js";import"./SearchMd-D1KprS28.js";import"./Shield01-BJNia28P.js";import"./Stars01-CjyqffcL.js";import"./Trash01-C5v_1lmC.js";import"./Upload01-CHZU-q-U.js";import"./User01-DnevuSsN.js";import"./Users01-BxxjvYSa.js";import"./XClose-C1QSVhPh.js";import"./X-BFHKMpc4.js";import"./Zap-98Lh21Pu.js";import"./use-clock-tick-CuMhMx5T.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Cn8zQ9tS.js";import"./file-type-icon-D3nItM5q.js";import"./dialog-C7zfaYvi.js";import"./use-mobile-DblXAPNP.js";import"./tab-id-DPNwWMUY.js";import"./content-blocks-o63cs2vh.js";import"./types-Bi2G7z3x.js";import"./use-mcp-client-DthXIrwd.js";import"./auth-BZlr3InS.js";import"./chat-context-CW4WErb4.js";import"./hooks-CHAk1XGg.js";import"./decopilot-sse-pool-DlyaRQos.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-DDmj3AsS.js";import"./use-collections-Dfssv2NY.js";import"./use-ai-providers-i-OLOuV3.js";import"./studio-tools-CCSPlOzn.js";import"./use-decopilot-events-CbxvimAo.js";import"./use-organization-settings-BE0QjsKq.js";import"./shell-layout-GyTVzUWp.js";import"./avatar-wRHzkc89.js";import"./alert-dialog-B-vZJ8OL.js";import"./required-auth-layout-CIXcactD.js";import"./use-org-sso-BDcX9tPo.js";import"./sheet-bFXt40v2.js";import"./integration-icon-BbQUvQHw.js";import"./use-navigate-to-agent-QmxPKNQ3.js";import"./use-connection-DYeByGyt.js";import"./use-mcp-prompts-C-qELbJl.js";import"./form-JC_8zZ5B.js";import"./input-BiDwjULh.js";import"./select-C2Rlpewf.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:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(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 n=e.variants;return Array.isArray(n)}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),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)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 St(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)l.push({blockKey:t,blockLabel:n,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<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["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 n=new Date(e);return n.setDate(n.getDate()+t),n}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 X(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=X(new Date(b),n),p=Math.max(X(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(f=>f<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":q.format(e.start),n=e.openEnd?"Ongoing":q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const Q=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${Q}px, #000 calc(100% - ${Q}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const f=d;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]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.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]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function Sn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=t[4];const u=d;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]!==r?(g=()=>m(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(ct,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.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")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.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=ot[s.getMonth()];let S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[p,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&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{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:o.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:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.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?($=o.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]!==s||t[41]!==i||t[42]!==a||t[43]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.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:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.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,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.getTime()===x.getTime();return o.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:o.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:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.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:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,f;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Qt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.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 S=k.map(qt);t[14]!==S?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:S})]}),t[14]=S,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.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:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(Xt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function Xt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Qt(e,t){return e[0].localeCompare(t[0])}export{Sn as VariantCalendar};
1
+ import{c as V,r as U,j as o,l as J,B as Y}from"./index-OF548fxc.js";import{n as ct,X as et,f as mt}from"./agent-icon-Bw-pYaqu.js";import{i as dt}from"./ChevronRight-CkirMRmz.js";import{L as ft}from"./label-Cpj2tcAv.js";import{S as nt}from"./scroll-area-DVylVd8s.js";import{S as pt}from"./switch-C4FKiTgP.js";import{a as ut,T as ht,b as gt}from"./tooltip-CKk6MyBG.js";import{V as xt}from"./view-mode-toggle-xMIlyXz_.js";import"./AlertCircle-DMGExMxY.js";import"./Tool01-CPfgYpSb.js";import"./SwitchHorizontal01-DKfBMAMt.js";import"./Settings02-BXQlyl72.js";import"./XCircle-BMPeQmo7.js";import"./ArrowUpRight-BYUnq8gY.js";import"./ZapSquare-DRmIxSdp.js";import"./Users03-DEShSeP4.js";import"./CheckCircle-C5ITwmFz.js";import"./ChevronUp-BgfgTfJo.js";import"./ChevronDown-BDi4pzpg.js";import"./DotsVertical-wFUaTKIr.js";import"./Stars02-oR68jXM_.js";import"./Eye-BPtPfNj_.js";import"./ZoomOut-VZDZQqnX.js";import"./Globe01-CHueNlXT.js";import"./FilterLines-DCrHo_W-.js";import"./Star01-CaO0nMo9.js";import"./Globe04-D1Ia72FD.js";import"./HardDrive-C5pxB0xX.js";import"./Key01-D_Aswhqq.js";import"./LayoutLeft-BIAH0kog.js";import"./LinkExternal01-vG76nXPe.js";import"./Monitor01-BEHd5v9A.js";import"./Sun-gt9ujltE.js";import"./Palette-CUxSqgEM.js";import"./Play-B6SMfN5e.js";import"./Plus-B3W-zU0m.js";import"./SearchLg-CwA3o7Kq.js";import"./SearchMd-CG-ZdWyV.js";import"./Shield01-C5cTYwHG.js";import"./Stars01-DjfTA0U2.js";import"./Trash01-De9U-JcA.js";import"./Upload01-XVwkIKd6.js";import"./User01--wnyNy2g.js";import"./Users01-DQSxkCun.js";import"./XClose-BlQxiRFv.js";import"./X-DchRughI.js";import"./Zap-gCfOy-ns.js";import"./use-clock-tick-7xgXM9p8.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-copy-Ba_RrSds.js";import"./file-type-icon-CeDR5FDE.js";import"./dialog-Bw0pp5yj.js";import"./use-mobile-71FrMeIQ.js";import"./tab-id-CLpu897Q.js";import"./content-blocks-o63cs2vh.js";import"./types-CeLnpp7L.js";import"./use-mcp-client-PdP6F3TE.js";import"./auth-BZgEN2RD.js";import"./chat-context-D6mGbi6m.js";import"./hooks-BPEh0QmD.js";import"./decopilot-sse-pool-D-yGYu6w.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./use-virtual-mcp-D3Xj1Zyr.js";import"./use-collections-CdbL-rX2.js";import"./use-ai-providers-DhQCSBc1.js";import"./studio-tools-DkATXRgK.js";import"./use-decopilot-events-DwY1rJO2.js";import"./use-organization-settings-BZHnFHzb.js";import"./shell-layout-D3aCzUD1.js";import"./avatar-B8STW9mD.js";import"./alert-dialog-Buxux4Jv.js";import"./required-auth-layout-BFKAd6mb.js";import"./use-org-sso-DnPy8IJo.js";import"./sheet-S1l6W00L.js";import"./integration-icon-B3836mZm.js";import"./use-navigate-to-agent-DIwK9fdW.js";import"./use-connection-BoEeMU65.js";import"./use-mcp-prompts-UzvitU_e.js";import"./form-BvyPfbLQ.js";import"./input-C6fESize.js";import"./select-CYLZmEqL.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:n}=e,r=typeof t=="string",l=typeof n=="string";if(!r&&!l)return null;const s=r?new Date(t):Tt,m=l?new Date(n):vt;return Number.isNaN(s.getTime())||Number.isNaN(m.getTime())||r&&l&&m.getTime()<=s.getTime()?null:{start:s,end:m,openStart:!r,openEnd:!l}}function rt(e,t){if(!e||typeof e!="object")return;const n=e.__resolveType;if(typeof n=="string"){if(bt.has(n)){const r=kt(e);r&&t.push(r);return}if(yt.has(n)){const r=e.matchers;if(Array.isArray(r))for(const l of r)rt(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 n=e.variants;return Array.isArray(n)}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),d=i[i.length-1];if(d)return decodeURIComponent(d)}catch{}return a.length>80?`${a.slice(0,77)}…`:a}if(!e||typeof e!="object")return null;const t=e,n=t.config,l=t.desktop?.media,s=[t.title,t.name,t.label,t.alt,n?.title,n?.name,n?.typeAlert?.message,l?.alt,Array.isArray(t.matcher)?t.matcher[0]:void 0];for(const a of s)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 St(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];typeof r=="number"?t.length>0?t[t.length-1]+=`[${r}]`:t.push(`[${r}]`):t.push(r)}return t.join(" · ")}function W(e,t,n,r,l){if(_t(e)){const s=e.variants,m=e.__resolveType,a=Nt.test(m)?"":St(r);s.forEach((c,i)=>{if(!c||typeof c!="object")return;const d=c,f=[];if(rt(d.rule,f),f.length===0)return;const x=Mt(d.value)??(a||n);for(const h of f)l.push({blockKey:t,blockLabel:n,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<s.length;c++){const i=s[c];i&&typeof i=="object"&&W(i.value,t,n,[...r,"variants",c,"value"],l)}return}if(Array.isArray(e)){for(let s=0;s<e.length;s++)W(e[s],t,n,[...r,s],l);return}if(e&&typeof e=="object")for(const[s,m]of Object.entries(e))s!=="__resolveType"&&W(m,t,n,[...r,s],l)}function Et(e){if(!e)return[];const t=[];for(const[n,r]of Object.entries(e))W(r,n,wt(n),[],t);return t.sort((n,r)=>n.start.getTime()-r.start.getTime())}function At(e){const t=[...new Set(e)].sort(),n=new Map;return t.forEach((r,l)=>{const s=l*137.508%360;n.set(r,{bg:`oklch(0.62 0.14 ${s})`,text:"white",border:`oklch(0.50 0.14 ${s})`})}),n}const Dt={bg:"oklch(0.62 0.14 0)",text:"white",border:"oklch(0.50 0.14 0)"};function st(e,t){return e.get(t)??Dt}const $t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ot=["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 n=new Date(e);return n.setDate(n.getDate()+t),n}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 X(e,t){return K(e,t)+Ct(e)}function Rt(e){const t=z(e,-e.getDay()),n=[];for(let r=0;r<6;r++){const l=[];for(let s=0;s<7;s++)l.push(z(t,r*7+s));n.push(l)}for(;n.length>0&&n[n.length-1].every(r=>r.getMonth()!==e.getMonth());)n.pop();return n}function Lt(e,t){const n=P(e[0]),r=z(n,7),l=n.getTime(),s=r.getTime(),m=[];for(const i of t){const d=P(i.start),f=P(i.end);if(f.getTime()<n.getTime()||d.getTime()>=r.getTime())continue;const u=d.getTime()<n.getTime()?n:d,x=f.getTime()>=r.getTime()?z(r,-1):f,h=K(u,n),g=K(x,u)+1;if(g<=0)continue;const b=Math.max(i.start.getTime(),l),y=Math.min(i.end.getTime(),s),T=X(new Date(b),n),p=Math.max(X(new Date(y),n)-T,0);p<=0||m.push({variant:i,startCol:h,span:g,leftUnits:T,widthUnits:p})}m.sort((i,d)=>i.startCol-d.startCol||d.span-i.span||i.variant.blockKey.localeCompare(d.variant.blockKey));const a=[],c=[];for(const i of m){let d=a.findIndex(f=>f<=i.startCol);d===-1&&(d=a.length,a.push(0)),a[d]=i.startCol+i.span,c.push({...i,lane:d})}return c}const q=new Intl.DateTimeFormat("en",{dateStyle:"medium",timeStyle:"short"});function Ot(e){const t=e.openStart?"Always":q.format(e.start),n=e.openEnd?"Ongoing":q.format(e.end);return`${t} → ${n}`}function Pt(e){const t=V.c(17),{variant:n}=e;let r;t[0]!==n.blockLabel?(r=o.jsx("div",{className:"font-semibold",children:n.blockLabel}),t[0]=n.blockLabel,t[1]=r):r=t[1];let l;t[2]!==n.innerPath?(l=n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.innerPath}),t[2]=n.innerPath,t[3]=l):l=t[3];let s;t[4]!==n.blockLabel||t[5]!==n.innerPath||t[6]!==n.label?(s=n.label!==n.blockLabel&&n.label!==n.innerPath&&o.jsx("div",{className:"text-muted-foreground",children:n.label}),t[4]=n.blockLabel,t[5]=n.innerPath,t[6]=n.label,t[7]=s):s=t[7];let m;t[8]!==n?(m=Ot(n),t[8]=n,t[9]=m):m=t[9];let a;t[10]!==m?(a=o.jsx("div",{className:"mt-1",children:m}),t[10]=m,t[11]=a):a=t[11];let c;return t[12]!==r||t[13]!==l||t[14]!==s||t[15]!==a?(c=o.jsx(gt,{children:o.jsxs("div",{className:"text-xs",children:[r,l,s,a]})}),t[12]=r,t[13]=l,t[14]=s,t[15]=a,t[16]=c):c=t[16],c}const Q=16;function It(e,t){const n=e?"transparent":"#000 0",r=t?"transparent":"#000 100%";if(!(!e&&!t))return`linear-gradient(to right, ${n}, #000 ${Q}px, #000 calc(100% - ${Q}px), ${r})`}function lt(e){const t=V.c(26),{variant:n,color:r,style:l,children:s,fadeStart:m,fadeEnd:a}=e,c=m===void 0?!1:m,i=a===void 0?!1:a;let d;t[0]!==i||t[1]!==c?(d=It(c,i),t[0]=i,t[1]=c,t[2]=d):d=t[2];const f=d;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]!==f?(h=f&&{maskImage:f,WebkitMaskImage:f},t[7]=f,t[8]=h):h=t[8];let g;t[9]!==r.bg||t[10]!==r.text||t[11]!==l||t[12]!==u||t[13]!==x||t[14]!==h?(g={background:r.bg,color:r.text,borderRadius:4,...u,...x,...h,...l},t[9]=r.bg,t[10]=r.text,t[11]=l,t[12]=u,t[13]=x,t[14]=h,t[15]=g):g=t[15];let b;t[16]!==s?(b=o.jsx("span",{className:"truncate",children:s}),t[16]=s,t[17]=b):b=t[17];let y;t[18]!==g||t[19]!==b?(y=o.jsx(ut,{asChild:!0,children:o.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]!==n?(T=o.jsx(Pt,{variant:n}),t[21]=n,t[22]=T):T=t[22];let p;return t[23]!==T||t[24]!==y?(p=o.jsxs(ht,{children:[y,T]}),t[23]=T,t[24]=y,t[25]=p):p=t[25],p}function Sn(e){const t=V.c(49),{decofile:n}=e,[r,l]=U.useState("calendar"),[s,m]=U.useState(Bt),[a,c]=U.useState(!1);let i,d,f;if(t[0]!==n||t[1]!==a){const E=Et(n);i=E.filter(Ht).length,f=a?E:E.filter(Vt),d=At(f.map(Ft)),t[0]=n,t[1]=a,t[2]=i,t[3]=d,t[4]=f}else i=t[2],d=t[3],f=t[4];const u=d;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]!==r?(g=()=>m(E=>r==="calendar"?F(E,-1):F(E,-3)),t[6]=r,t[7]=g):g=t[7];const b=g;let y;t[8]!==r?(y=()=>m(E=>r==="calendar"?F(E,1):F(E,3)),t[8]=r,t[9]=y):y=t[9];const T=y;let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(Y,{variant:"outline",size:"sm",onClick:h,children:"Today"}),t[10]=p):p=t[10];let w;t[11]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx(ct,{size:16}),t[11]=w):w=t[11];let k;t[12]!==b?(k=o.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")?(_=o.jsx(dt,{size:16}),t[14]=_):_=t[14];let M;t[15]!==T?(M=o.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=ot[s.getMonth()];let S;t[17]!==s?(S=s.getFullYear(),t[17]=s,t[18]=S):S=t[18];let v;t[19]!==A||t[20]!==S?(v=o.jsxs("h2",{className:"ml-2 text-base font-semibold",children:[A," ",S]}),t[19]=A,t[20]=S,t[21]=v):v=t[21];let j;t[22]!==v||t[23]!==k||t[24]!==M?(j=o.jsxs("div",{className:"flex items-center gap-2",children:[p,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&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(pt,{id:"show-ongoing",checked:a,onCheckedChange:c}),o.jsxs(ft,{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:o.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:o.jsx(mt,{}),label:"Timeline"}],t[30]=I):I=t[30];let N;t[31]!==r?(N=o.jsx(xt,{value:r,onValueChange:l,options:I}),t[31]=r,t[32]=N):N=t[32];let R;t[33]!==D||t[34]!==N?(R=o.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?($=o.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]!==s||t[41]!==i||t[42]!==a||t[43]!==f||t[44]!==r?(C=f.length===0?o.jsx(Wt,{hiddenOngoing:a?0:i}):r==="calendar"?o.jsx(Ut,{monthStart:s,variants:f,colorMap:u}):o.jsx(Jt,{monthStart:s,variants:f,colorMap:u}),t[39]=u,t[40]=s,t[41]=i,t[42]=a,t[43]=f,t[44]=r,t[45]=C):C=t[45];let O;return t[46]!==$||t[47]!==C?(O=o.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:n}=e,r=n===void 0?0:n;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(et,{size:24,className:"text-muted-foreground/60"}),t[0]=l):l=t[0];let s;return t[1]!==r?(s=o.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-2 text-center text-sm text-muted-foreground p-6",children:[l,r>0?o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No dated variants in view."}),o.jsxs("div",{className:"text-xs text-muted-foreground/80",children:[r," ongoing"," ",r===1?"variant is":"variants are"," hidden — enable “Show ongoing” to view."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{children:"No scheduled variants."}),o.jsx("div",{className:"text-xs text-muted-foreground/80",children:"Variants gated by a date matcher appear here."})]})]}),t[1]=r,t[2]=s):s=t[2],s}const G=20,Z=2,tt=28,zt=6;function Ut(e){const t=V.c(17),{monthStart:n,variants:r,colorMap:l}=e;let s,m,a,c,i;if(t[0]!==l||t[1]!==n||t[2]!==r){const u=Rt(n),x=P(new Date);s=nt,i="flex-1 min-h-0",m="min-w-[840px]",t[8]===Symbol.for("react.memo_cache_sentinel")?(a=o.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,r),y=b.reduce(Yt,0),T=tt+y*(G+Z)+8;return o.jsxs("div",{className:"grid grid-cols-7 relative border-b",style:{height:T},children:[h.map((p,w)=>{const k=p.getMonth()===n.getMonth(),_=p.getTime()===x.getTime();return o.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:o.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:p.getDate()})},w)}),b.map((p,w)=>{const k=st(l,p.variant.blockKey),_=tt+p.lane*(G+Z),M=p.leftUnits/7*100,A=p.widthUnits/7*100,S=p.variant.openStart&&g===0,v=p.variant.openEnd&&g===u.length-1;return o.jsxs(lt,{variant:p.variant,color:k,fadeStart:S,fadeEnd:v,style:{top:_,left:`calc(${M}% + 2px)`,width:`calc(${A}% - 4px)`,minWidth:zt,height:G},children:[p.variant.blockLabel,p.variant.label!==p.variant.blockLabel&&o.jsxs("span",{className:"opacity-70",children:[" · ",p.variant.label]})]},`${g}-${w}`)})]},g)}),t[0]=l,t[1]=n,t[2]=r,t[3]=s,t[4]=m,t[5]=a,t[6]=c,t[7]=i}else s=t[3],m=t[4],a=t[5],c=t[6],i=t[7];let d;t[9]!==m||t[10]!==a||t[11]!==c?(d=o.jsxs("div",{className:m,children:[a,c]}),t[9]=m,t[10]=a,t[11]=c,t[12]=d):d=t[12];let f;return t[13]!==s||t[14]!==i||t[15]!==d?(f=o.jsx(s,{className:i,children:d}),t[13]=s,t[14]=i,t[15]=d,t[16]=f):f=t[16],f}function Yt(e,t){return Math.max(e,t.lane+1)}function Gt(e){return o.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:n,variants:r,colorMap:l}=e,s=n;let m,a,c,i,d,f;if(t[0]!==l||t[1]!==n||t[2]!==s||t[3]!==r){const h=F(n,B),g=new Date,b=new Map;for(const v of r){const j=b.get(v.blockKey)??[];j.push(v),b.set(v.blockKey,j)}const y=Array.from(b.entries()).sort(Qt),T=h.getTime()-s.getTime(),p=v=>(Math.max(s.getTime(),Math.min(h.getTime(),v.getTime()))-s.getTime())/T*100;let w;t[10]!==s?(w=(v,j)=>F(s,j),t[10]=s,t[11]=w):w=t[11];const k=Array.from({length:B},w),_=g.getTime()>=s.getTime()&&g.getTime()<=h.getTime()?p(g):null;m=nt,f="flex-1 min-h-0",a="min-w-[900px] relative";let M;t[12]===Symbol.for("react.memo_cache_sentinel")?(M=o.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 S=k.map(qt);t[14]!==S?(c=o.jsxs("div",{className:"flex border-b sticky top-0 bg-background z-10",children:[M,o.jsx("div",{className:"flex-1 grid",style:A,children:S})]}),t[14]=S,t[15]=c):c=t[15],t[16]!==_?(i=_!==null&&o.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:o.jsx("span",{className:"absolute -top-0.5 -translate-x-1/2 rounded-sm bg-primary px-1.5 py-px text-[10px] font-medium text-primary-foreground",children:"Today"})}),t[16]=_,t[17]=i):i=t[17],d=y.map(v=>{const[j,D]=v,L=st(l,j),I=D[0]?.blockLabel??j;return o.jsxs("div",{children:[o.jsx("div",{className:"flex items-center bg-muted/40 border-b text-xs font-semibold uppercase tracking-wide text-muted-foreground",style:{height:28},children:o.jsx("div",{className:"px-3 truncate",style:{width:H},children:I})}),D.map((N,R)=>o.jsxs("div",{className:"flex border-b items-center",style:{height:Kt},children:[o.jsxs("div",{className:"flex items-center gap-2 px-3 text-sm border-r shrink-0",style:{width:H},children:[o.jsx("span",{className:"inline-block h-2 w-2 rounded-full shrink-0",style:{background:L.bg}}),o.jsx("span",{className:"truncate text-foreground/80",children:N.label})]}),o.jsxs("div",{className:"relative flex-1 h-full",children:[o.jsx("div",{className:"absolute inset-0 grid",style:{gridTemplateColumns:`repeat(${B}, minmax(0, 1fr))`},children:k.map(Xt)}),(()=>{const $=Math.max(N.start.getTime(),s.getTime()),C=Math.min(N.end.getTime(),h.getTime());if(C<=$)return null;const O=p(new Date($)),E=p(new Date(C))-O;return o.jsx(lt,{variant:N,color:L,fadeStart:N.openStart,fadeEnd:N.openEnd,style:{top:"50%",transform:"translateY(-50%)",left:`${O}%`,width:`calc(${E}% - 2px)`,height:22},children:N.label})})()]})]},R))]},j)}),t[0]=l,t[1]=n,t[2]=s,t[3]=r,t[4]=m,t[5]=a,t[6]=c,t[7]=i,t[8]=d,t[9]=f}else m=t[4],a=t[5],c=t[6],i=t[7],d=t[8],f=t[9];let u;t[18]!==a||t[19]!==c||t[20]!==i||t[21]!==d?(u=o.jsxs("div",{className:a,children:[c,i,d]}),t[18]=a,t[19]=c,t[20]=i,t[21]=d,t[22]=u):u=t[22];let x;return t[23]!==m||t[24]!==f||t[25]!==u?(x=o.jsx(m,{className:f,children:u}),t[23]=m,t[24]=f,t[25]=u,t[26]=x):x=t[26],x}function Xt(e,t){return o.jsx("div",{className:"border-r last:border-r-0 border-border/40"},t)}function qt(e,t){return o.jsxs("div",{className:"px-2 py-2 text-xs uppercase tracking-wide text-muted-foreground border-r last:border-r-0",children:[ot[e.getMonth()]?.slice(0,3)," ",e.getFullYear()]},t)}function Qt(e,t){return e[0].localeCompare(t[0])}export{Sn as VariantCalendar};
@@ -1 +1 @@
1
- import{c as $,r as T,l as f,j as i}from"./index-CdtMfz8j.js";import{T as k,a as I,b as P}from"./tooltip-p2rwMkfY.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-OF548fxc.js";import{T as k,a as I,b as P}from"./tooltip-CKk6MyBG.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,8 +56,8 @@
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-CdtMfz8j.js"></script>
60
- <link rel="stylesheet" crossorigin href="/assets/index-Cnn6tTYH.css">
59
+ <script type="module" crossorigin src="/assets/index-OF548fxc.js"></script>
60
+ <link rel="stylesheet" crossorigin href="/assets/index-B1I1Oi0g.css">
61
61
  </head>
62
62
  <body>
63
63
  <div id="root"></div>