decocms 2.169.0 → 2.169.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 (215) hide show
  1. package/dist/client/assets/{AlertCircle-BNwQNysE.js → AlertCircle-DLYa4QZT.js} +1 -1
  2. package/dist/client/assets/{AlignLeft-DIMPtJvs.js → AlignLeft-D2MUDaqO.js} +1 -1
  3. package/dist/client/assets/{ArrowDown-CdWtOy_0.js → ArrowDown-BIpnnooz.js} +1 -1
  4. package/dist/client/assets/{ArrowLeft-BvZRMmmd.js → ArrowLeft-Btl9-BH1.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-C2lFq2l_.js → ArrowUp-CIXX8aOG.js} +1 -1
  6. package/dist/client/assets/{Check-BpTBt_DU.js → Check-DZNMAm2u.js} +1 -1
  7. package/dist/client/assets/{CheckCircle-2CcvSTQA.js → CheckCircle-B45Qunfq.js} +1 -1
  8. package/dist/client/assets/{CheckDone01-D4XoaNOT.js → CheckDone01-BwqGUDS6.js} +1 -1
  9. package/dist/client/assets/{CheckVerified02-DJZqghUQ.js → CheckVerified02-CHG4wtzY.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-CLtlqODn.js → ChevronDown-qpUv4NX7.js} +1 -1
  11. package/dist/client/assets/{ChevronLeft-DIJPZ9IO.js → ChevronLeft-CTccI7o1.js} +1 -1
  12. package/dist/client/assets/{ChevronRight-DzDKImyB.js → ChevronRight-CGHgArrz.js} +1 -1
  13. package/dist/client/assets/{ChevronUp-B0VWmu86.js → ChevronUp-vdY8m52-.js} +1 -1
  14. package/dist/client/assets/{Clock-BQ3-ewKK.js → Clock-B2PDYMbQ.js} +1 -1
  15. package/dist/client/assets/{Code01-B5VHcRzc.js → Code01-BWwwhLKd.js} +1 -1
  16. package/dist/client/assets/{Coins01-BYkHIsw7.js → Coins01-DtI6hA-J.js} +1 -1
  17. package/dist/client/assets/{Container-CZDlWx72.js → Container-CrWxb_AI.js} +1 -1
  18. package/dist/client/assets/{Copy01-YVsgR_yF.js → Copy01-DhAt7aHM.js} +1 -1
  19. package/dist/client/assets/{Dataflow03-D51uDKTG.js → Dataflow03-BJzkbNVM.js} +1 -1
  20. package/dist/client/assets/{DotsHorizontal-DkzQXBkq.js → DotsHorizontal-Bi0gdYmj.js} +1 -1
  21. package/dist/client/assets/{DotsVertical-BYnI7r_Z.js → DotsVertical-2UaWsZ4p.js} +1 -1
  22. package/dist/client/assets/{Download01-D6eFgrHj.js → Download01-CDBbIVn-.js} +1 -1
  23. package/dist/client/assets/{Edit01-MdS4kQuR.js → Edit01-DsPk7eyH.js} +1 -1
  24. package/dist/client/assets/{Edit05-Be4ISClw.js → Edit05-0qYUIfi2.js} +1 -1
  25. package/dist/client/assets/{Eye-CY0xKDTh.js → Eye-B0s6dMGJ.js} +1 -1
  26. package/dist/client/assets/{EyeOff-0IMC_mwL.js → EyeOff-DjkTmX2W.js} +1 -1
  27. package/dist/client/assets/{File02-Dlqhmx8-.js → File02-CMF5z1Mb.js} +1 -1
  28. package/dist/client/assets/{File06-gYkOsVEG.js → File06-CcAViE4p.js} +1 -1
  29. package/dist/client/assets/{FilterLines-BrGd_mlC.js → FilterLines-BSR1Y6x8.js} +1 -1
  30. package/dist/client/assets/{Globe01-DrYYPLo4.js → Globe01-C3jxxoRQ.js} +1 -1
  31. package/dist/client/assets/{Globe02-CJoGh1lx.js → Globe02-DiWwL-RX.js} +1 -1
  32. package/dist/client/assets/{Grid01-CDHXeKGi.js → Grid01-DGBAP3zC.js} +1 -1
  33. package/dist/client/assets/{Hash02-DywHfMJf.js → Hash02-BQDQcpHm.js} +1 -1
  34. package/dist/client/assets/{Home02-CkO--KBx.js → Home02-Cdh7ulKl.js} +1 -1
  35. package/dist/client/assets/{Image01-BBUHVhIS.js → Image01-L-USuN4y.js} +1 -1
  36. package/dist/client/assets/{Inbox01-U7FG_DR4.js → Inbox01-DlzvNC6y.js} +1 -1
  37. package/dist/client/assets/{InfoCircle-B4zbBunL.js → InfoCircle-53I-kohf.js} +1 -1
  38. package/dist/client/assets/{Key01-WZmaJvAg.js → Key01-Bjd_BqZt.js} +1 -1
  39. package/dist/client/assets/{LayersTwo01-BSap1dAx.js → LayersTwo01-z3XSbQON.js} +1 -1
  40. package/dist/client/assets/{LayoutLeft-D_Wmt9lU.js → LayoutLeft-DcaQF_GG.js} +1 -1
  41. package/dist/client/assets/{Link01-D1b4DASB.js → Link01-lK5c7ax0.js} +1 -1
  42. package/dist/client/assets/{LinkExternal01-BIhq_iMu.js → LinkExternal01-B1Si3PNt.js} +1 -1
  43. package/dist/client/assets/{List-DsI-Q5hO.js → List-C4JTfttF.js} +1 -1
  44. package/dist/client/assets/{Loading01-CaUjLzqI.js → Loading01-CI9XW1P8.js} +1 -1
  45. package/dist/client/assets/{Lock01-Bkvx692f.js → Lock01-C3LFW_-g.js} +1 -1
  46. package/dist/client/assets/{Play-BEiZ4fZ8.js → Play-DbCd4w8U.js} +1 -1
  47. package/dist/client/assets/{Plus-BTdrhN0K.js → Plus-C3h0mQix.js} +1 -1
  48. package/dist/client/assets/{RefreshCcw01-DHNpNTtg.js → RefreshCcw01-C7OVhJkb.js} +1 -1
  49. package/dist/client/assets/{Save01-BZZIq5VM.js → Save01-C8xBPE9Z.js} +1 -1
  50. package/dist/client/assets/{SearchMd-Cttl0f5e.js → SearchMd-Dk942ZJc.js} +1 -1
  51. package/dist/client/assets/{Settings01-D8_pK50o.js → Settings01-Cb2WCDc8.js} +1 -1
  52. package/dist/client/assets/{Shield01-BWscNhTg.js → Shield01-CGJkL6RN.js} +1 -1
  53. package/dist/client/assets/{Terminal-BIQ1MbYe.js → Terminal-zTdQQBXe.js} +1 -1
  54. package/dist/client/assets/{Trash01-CfDSVESG.js → Trash01-Uzl63r_m.js} +1 -1
  55. package/dist/client/assets/{Upload01-CscnRXTf.js → Upload01-Bo1CkWtP.js} +1 -1
  56. package/dist/client/assets/{Users03-kcgQztw9.js → Users03-Byz3dnNP.js} +1 -1
  57. package/dist/client/assets/{X-WCV6Uy-H.js → X-DX_HDAA7.js} +1 -1
  58. package/dist/client/assets/{XCircle-C-WtzSas.js → XCircle-CScbFtNn.js} +1 -1
  59. package/dist/client/assets/{XClose-LDW0Zjg0.js → XClose-aNRcInwu.js} +1 -1
  60. package/dist/client/assets/{Zap-Bu2zM5zP.js → Zap-Ds01M8MF.js} +1 -1
  61. package/dist/client/assets/{agent-connections-preview-DOUvYCXr.js → agent-connections-preview-BI_DVYgA.js} +1 -1
  62. package/dist/client/assets/{agent-detail-B3W3njBC.js → agent-detail-BPVD9AZ7.js} +1 -1
  63. package/dist/client/assets/{agents-DJJSBmlk.js → agents-Boffo8TJ.js} +1 -1
  64. package/dist/client/assets/{alert-dialog-8u4Gavgl.js → alert-dialog-D9yW1xTi.js} +2 -2
  65. package/dist/client/assets/{auth-catchall-DpvBVhXq.js → auth-catchall-CYUVEUqz.js} +1 -1
  66. package/dist/client/assets/{automation-detail-DE1k4iz7.js → automation-detail-CnWkSEl2.js} +1 -1
  67. package/dist/client/assets/{automations-ChzrBmWe.js → automations-im5yBOQl.js} +1 -1
  68. package/dist/client/assets/{avatar-DU2bTG4C.js → avatar-B8Mua9Kd.js} +1 -1
  69. package/dist/client/assets/{badge-DCMHfnpB.js → badge-8URjJAhe.js} +1 -1
  70. package/dist/client/assets/{binder-CRhmV49-.js → binder-DVyzsAMP.js} +1 -1
  71. package/dist/client/assets/{breadcrumb-BY-ewVy_.js → breadcrumb-B4M-xjAh.js} +1 -1
  72. package/dist/client/assets/{card-Qg-zzHRz.js → card-B6uX8VSU.js} +1 -1
  73. package/dist/client/assets/{chart-g6EuwavP.js → chart-A8jzxHbG.js} +1 -1
  74. package/dist/client/assets/{checkbox-BT8TUPmL.js → checkbox-CIKrZxue.js} +1 -1
  75. package/dist/client/assets/{circle-alert-DAF-DjK7.js → circle-alert-DSvEDpu-.js} +1 -1
  76. package/dist/client/assets/{collapsible-BzxyBpB_.js → collapsible-BUSFlM0s.js} +1 -1
  77. package/dist/client/assets/{collection-detail-5xFh4PEe.js → collection-detail-DnamTHBn.js} +1 -1
  78. package/dist/client/assets/{collection-display-button-D-OHiDy7.js → collection-display-button-CNbyz-fQ.js} +1 -1
  79. package/dist/client/assets/{collection-search-BY1hOYZi.js → collection-search-D6RKOXyK.js} +1 -1
  80. package/dist/client/assets/{collection-tab-L_H44_Z8.js → collection-tab-Bt7mJSiR.js} +1 -1
  81. package/dist/client/assets/{collection-table-wrapper-B0UPOcLl.js → collection-table-wrapper-CwKJg18i.js} +1 -1
  82. package/dist/client/assets/{collection-tabs-DBuP5u6Z.js → collection-tabs-Bf3Iz7Jz.js} +1 -1
  83. package/dist/client/assets/{command-DSTrIN8b.js → command-Uxrj2Pif.js} +1 -1
  84. package/dist/client/assets/{connect-DR9eruxq.js → connect-CzglUrYn.js} +1 -1
  85. package/dist/client/assets/{connection-card-C4IWFdhJ.js → connection-card-7tJ6hNFG.js} +1 -1
  86. package/dist/client/assets/{connection-detail-BRO8VwWS.js → connection-detail-B3ognoru.js} +1 -1
  87. package/dist/client/assets/{connection-status-CsMx7O7I.js → connection-status-BP6D_xoX.js} +1 -1
  88. package/dist/client/assets/{connections-DWDgigQr.js → connections-BgxQMFwn.js} +1 -1
  89. package/dist/client/assets/{constants-Cb-aLMXn.js → constants-CFDpCrfp.js} +1 -1
  90. package/dist/client/assets/constants-CUzgHK7i.js +1 -0
  91. package/dist/client/assets/{context-C5JuB0Gi.js → context-BS-aE7yX.js} +1 -1
  92. package/dist/client/assets/{create-organization-dialog-C22OiE9B.js → create-organization-dialog-BP6rLX36.js} +1 -1
  93. package/dist/client/assets/{create-project-dialog-BwkX7VYa.js → create-project-dialog-CNrdc9aN.js} +1 -1
  94. package/dist/client/assets/{danger--VuPl2Sp.js → danger-D3D-kGBw.js} +1 -1
  95. package/dist/client/assets/{danger-zone-BOOPMlP1.js → danger-zone-B3a7xl3N.js} +1 -1
  96. package/dist/client/assets/{dependencies-kjW7Vi-T.js → dependencies-D8RjdOFV.js} +1 -1
  97. package/dist/client/assets/{dialog-CI9cYi-8.js → dialog-DL2lt3sk.js} +1 -1
  98. package/dist/client/assets/{dropdown-menu-DWzmGF-0.js → dropdown-menu-Dlxogsjy.js} +1 -1
  99. package/dist/client/assets/{dynamic-plugin-layout-CXSUaCDQ.js → dynamic-plugin-layout-CoJH_VeG.js} +1 -1
  100. package/dist/client/assets/{editable-task-title-DO3PIJnt.js → editable-task-title-B6_Vzrgl.js} +1 -1
  101. package/dist/client/assets/{empty-state-BNADuxQD.js → empty-state-BN8v460Q.js} +1 -1
  102. package/dist/client/assets/{empty-state-d0O2_gov.js → empty-state-CwR-V_Cp.js} +1 -1
  103. package/dist/client/assets/{env-vars-editor-BqWCIUmj.js → env-vars-editor-B6dkI_EL.js} +1 -1
  104. package/dist/client/assets/{extract-connection-data-tDAnYbql.js → extract-connection-data-Do6IEozS.js} +1 -1
  105. package/dist/client/assets/{file-browser-BlpZN3MJ.js → file-browser-ewLdk3E_.js} +2 -2
  106. package/dist/client/assets/{form-DUk8E4H3.js → form-BfGCA9ow.js} +1 -1
  107. package/dist/client/assets/{general-3MGhvclH.js → general-CCT0nBFz.js} +1 -1
  108. package/dist/client/assets/{grid-view-CIFuWl2t.js → grid-view-dd_Dv_lJ.js} +1 -1
  109. package/dist/client/assets/{home-Fl2VbM96.js → home-BAdfHyWT.js} +1 -1
  110. package/dist/client/assets/{icon-picker-Cj-y6wcB.js → icon-picker-DyMYiZ1W.js} +1 -1
  111. package/dist/client/assets/{index-D3ZjzgLI.js → index-B5yIb9zu.js} +1 -1
  112. package/dist/client/assets/{index-Bdle-tXe.js → index-B7eWpxO4.js} +1 -1
  113. package/dist/client/assets/{index-DvDBfM2b.js → index-B8LlC41M.js} +1 -1
  114. package/dist/client/assets/{index-Cwu-wOxG.js → index-BQleIDTt.js} +4 -4
  115. package/dist/client/assets/{index-CD2elblJ.js → index-CP2PAZw5.js} +1 -1
  116. package/dist/client/assets/{index-Dq5usVL0.js → index-CXMnpov2.js} +1 -1
  117. package/dist/client/assets/{index-CVNgvrfX.js → index-DGAp0Gms.js} +1 -1
  118. package/dist/client/assets/{index-CqTOxONw.js → index-DMQgnzGF.js} +1 -1
  119. package/dist/client/assets/{index-DVSuEv5h.js → index-DcALF_zz.js} +1 -1
  120. package/dist/client/assets/{index-CtSV8hQg.js → index-PZJmA1E3.js} +1 -1
  121. package/dist/client/assets/{infiniteQueryObserver-BSUehVnk.js → infiniteQueryObserver-i0aVwlSu.js} +1 -1
  122. package/dist/client/assets/{input-C1vn-DTq.js → input-Cr9WIMEe.js} +1 -1
  123. package/dist/client/assets/{integration-icon-C-xDvzAZ.js → integration-icon-BBf-HzO_.js} +1 -1
  124. package/dist/client/assets/{label-CQimXdzP.js → label-CYTMoKOK.js} +1 -1
  125. package/dist/client/assets/{layout-uAQvZUV5.js → layout-B7XQPoZu.js} +1 -1
  126. package/dist/client/assets/{layout-BsPfuuN4.js → layout-CoP-jBId.js} +1 -1
  127. package/dist/client/assets/{login-2eEhi4kM.js → login-D7TwrrKQ.js} +1 -1
  128. package/dist/client/assets/{logo-upload-C51No7sc.js → logo-upload-CkOuxHbv.js} +1 -1
  129. package/dist/client/assets/{markdown-DeBvslRd.js → markdown-CG89AfZl.js} +8 -8
  130. package/dist/client/assets/{mcp-app-renderer-BZ5G3Cq9.js → mcp-app-renderer-BU2NYHe0.js} +1 -1
  131. package/dist/client/assets/{mcp-server-card-BhMSk2c3.js → mcp-server-card-DSVf3o0Y.js} +1 -1
  132. package/dist/client/assets/{mcp-server-detail-D1_z89nh.js → mcp-server-detail-_EJStP3-.js} +2 -2
  133. package/dist/client/assets/{members-CimR3ZRg.js → members-BF5klVU6.js} +1 -1
  134. package/dist/client/assets/{monaco-editor-B2nnHz7C.js → monaco-editor-Ds9XcEf4.js} +1 -1
  135. package/dist/client/assets/{monitoring-DoykNWnZ.js → monitoring-CEN2SUje.js} +11 -11
  136. package/dist/client/assets/{monitoring-dashboard-edit-BgECtRxl.js → monitoring-dashboard-edit-D0xutu-3.js} +1 -1
  137. package/dist/client/assets/{monitoring-dashboard-view-lJXnIS18.js → monitoring-dashboard-view-CB64s2Ut.js} +1 -1
  138. package/dist/client/assets/{oauth-callback-K49r9r-u.js → oauth-callback-CFzQ8uzA.js} +1 -1
  139. package/dist/client/assets/{oauth-callback-ai-provider-BX7OhPhG.js → oauth-callback-ai-provider-B00r-Rcs.js} +1 -1
  140. package/dist/client/assets/{org-ai-providers-CbsMDyud.js → org-ai-providers-S_9UA4ok.js} +1 -1
  141. package/dist/client/assets/{page-BFYOYJP3.js → page-BWqwYrtO.js} +1 -1
  142. package/dist/client/assets/{page-BnIWGdm-.js → page-Dg9rnx7W.js} +1 -1
  143. package/dist/client/assets/{plugin-empty-state-Io40RI05.js → plugin-empty-state-DKhXHuQs.js} +1 -1
  144. package/dist/client/assets/{plugin-empty-state-CFL8Qo2o.js → plugin-empty-state-DqajSc6N.js} +1 -1
  145. package/dist/client/assets/{plugin-header-D-F3uPB4.js → plugin-header-B0IOCYSg.js} +1 -1
  146. package/dist/client/assets/{plugin-header-vfMIth7g.js → plugin-header-C_W9qWob.js} +1 -1
  147. package/dist/client/assets/plugins-C_Ge9ex4.js +1 -0
  148. package/dist/client/assets/{popover-DshCW1Ke.js → popover-DPZESWyD.js} +1 -1
  149. package/dist/client/assets/{project-app-view-BhNro9e0.js → project-app-view-DpDXXTgW.js} +1 -1
  150. package/dist/client/assets/{project-layout-DxB6GKlm.js → project-layout-Bs81CtWC.js} +1 -1
  151. package/dist/client/assets/{project-plugins-DVcEi1Yn.js → project-plugins-duZjGPXH.js} +1 -1
  152. package/dist/client/assets/{projects-list-CowzNpnN.js → projects-list-Rk_GwJ1Q.js} +1 -1
  153. package/dist/client/assets/{readme-viewer-yt6tXFCT.js → readme-viewer-zPEGOdS5.js} +1 -1
  154. package/dist/client/assets/{registry-layout-FA-QOwvT.js → registry-layout-DuXVtLUM.js} +1 -1
  155. package/dist/client/assets/{registry-utils-D0MDwxNa.js → registry-utils-8c5MjZdh.js} +1 -1
  156. package/dist/client/assets/{reports-layout-DFl4gKdm.js → reports-layout-DYFzESPK.js} +1 -1
  157. package/dist/client/assets/{reset-password-CtR_bqJc.js → reset-password-BOeydelW.js} +1 -1
  158. package/dist/client/assets/{resizable-B2MnN1_6.js → resizable-C-aUIWvU.js} +1 -1
  159. package/dist/client/assets/{save-actions-DaUWkWXC.js → save-actions-CKT12DNt.js} +1 -1
  160. package/dist/client/assets/{scroll-area-C5LqOXiS.js → scroll-area-DFzQv9x7.js} +1 -1
  161. package/dist/client/assets/{select-FYqBz4qu.js → select-E-ZqDioA.js} +1 -1
  162. package/dist/client/assets/{select-virtual-mcp-DGvRtJYq.js → select-virtual-mcp-6VQzUUjO.js} +1 -1
  163. package/dist/client/assets/{shell-layout-B-9uHrhQ.js → shell-layout-B_NxAFrF.js} +2 -2
  164. package/dist/client/assets/{sidebar-settings-BuZnJqtM.js → sidebar-settings-BEk_xXhi.js} +1 -1
  165. package/dist/client/assets/{skeleton-fCE8AB67.js → skeleton-DgbZc6Cl.js} +1 -1
  166. package/dist/client/assets/{spinner-DzisK9Oe.js → spinner-bMySb2hk.js} +1 -1
  167. package/dist/client/assets/{store-invite-F5u1UCID.js → store-invite-i4MzXILj.js} +1 -1
  168. package/dist/client/assets/{switch-G01yVJFZ.js → switch-HCXSz4y2.js} +1 -1
  169. package/dist/client/assets/{table-VU_jTACA.js → table-BEAvNlPV.js} +1 -1
  170. package/dist/client/assets/{tabs-D9O_EWIk.js → tabs-BepHm4df.js} +1 -1
  171. package/dist/client/assets/{task-status-B4cUiPIw.js → task-status-BiNq5gDy.js} +1 -1
  172. package/dist/client/assets/tasks-BzoKlEgV.js +1 -0
  173. package/dist/client/assets/{tasks-panel-Cgselj6I.js → tasks-panel-bj6utgM9.js} +1 -1
  174. package/dist/client/assets/{textarea-Cv55oiZi.js → textarea-BynCYyAv.js} +1 -1
  175. package/dist/client/assets/{time-range-picker-BasCdjZM.js → time-range-picker-OFRuHCE2.js} +1 -1
  176. package/dist/client/assets/{toggle-group-BXwFoWAM.js → toggle-group-CkqXV8wC.js} +1 -1
  177. package/dist/client/assets/{tools-list-1LKwVd5M.js → tools-list-CBF2LYin.js} +1 -1
  178. package/dist/client/assets/{tooltip-CDZrjN0Z.js → tooltip-B6t-kUHF.js} +1 -1
  179. package/dist/client/assets/{topbar-portal-QZciDP7Y.js → topbar-portal-CqSHkyW0.js} +1 -1
  180. package/dist/client/assets/{types-DuDPXxDP.js → types-cjLUOWYP.js} +1 -1
  181. package/dist/client/assets/{use-automations-CmBA5BIp.js → use-automations-BKe0uXVK.js} +1 -1
  182. package/dist/client/assets/{use-binding-CRirOndA.js → use-binding-DqC2E6Uh.js} +1 -1
  183. package/dist/client/assets/{use-collections-BU2tm7Px.js → use-collections-COSEWzs-.js} +1 -1
  184. package/dist/client/assets/{use-connection-Ds_ofzgu.js → use-connection-CAehLWCA.js} +1 -1
  185. package/dist/client/assets/{use-copy-DqdhgXz8.js → use-copy-TKhh6_P4.js} +1 -1
  186. package/dist/client/assets/{use-create-virtual-mcp-C4FXOahh.js → use-create-virtual-mcp-DqFGLKwR.js} +1 -1
  187. package/dist/client/assets/{use-install-from-registry-_B18ifFv.js → use-install-from-registry-D88vEU7a.js} +1 -1
  188. package/dist/client/assets/{use-list-state-mrADyWNx.js → use-list-state-D7-_9zZI.js} +1 -1
  189. package/dist/client/assets/{use-llm-qmxWxKrd.js → use-llm-CiYDOTDR.js} +1 -1
  190. package/dist/client/assets/{use-local-storage-DOvt8Wru.js → use-local-storage-F9nFwQtJ.js} +1 -1
  191. package/dist/client/assets/{use-mcp-prompts-BBl3G2ce.js → use-mcp-prompts-DJ9I-zC3.js} +1 -1
  192. package/dist/client/assets/{use-mcp-resources-BFxgTB7y.js → use-mcp-resources-B9FMOy1r.js} +1 -1
  193. package/dist/client/assets/{use-mcp-tools-D3YCY0fB.js → use-mcp-tools-DQNFRQwB.js} +1 -1
  194. package/dist/client/assets/{use-members-Bq1tXu7S.js → use-members-D3CVy-lS.js} +1 -1
  195. package/dist/client/assets/{use-mobile-BKtOiQuN.js → use-mobile-D4srs72k.js} +1 -1
  196. package/dist/client/assets/{use-project-DvFb36t1.js → use-project-Cev_3AVO.js} +1 -1
  197. package/dist/client/assets/{use-view-mode-CqmuGgGt.js → use-view-mode-C0momWtc.js} +1 -1
  198. package/dist/client/assets/{use-virtual-mcp-DEhycEb8.js → use-virtual-mcp-DaYZgY02.js} +1 -1
  199. package/dist/client/assets/useInfiniteQuery-BAYQjKXw.js +1 -0
  200. package/dist/client/assets/{useMutation-CoOETV22.js → useMutation-BzjLvWgQ.js} +1 -1
  201. package/dist/client/assets/useQuery-Z4jdNSdH.js +1 -0
  202. package/dist/client/assets/useSuspenseInfiniteQuery-CpWHKYg-.js +1 -0
  203. package/dist/client/assets/{user-BGkfXqqY.js → user-ByxNJexL.js} +1 -1
  204. package/dist/client/assets/{workflow-CKjhuxmP.js → workflow-DPZlmb84.js} +1 -1
  205. package/dist/client/index.html +1 -1
  206. package/dist/server/cli.js +2 -2
  207. package/dist/server/migrate.js +2 -2
  208. package/dist/server/server.js +2 -2
  209. package/package.json +1 -1
  210. package/dist/client/assets/constants-DmyhrV7b.js +0 -1
  211. package/dist/client/assets/plugins-B_x8NLE_.js +0 -1
  212. package/dist/client/assets/tasks-BlguZX7q.js +0 -1
  213. package/dist/client/assets/useInfiniteQuery-CYja8jjy.js +0 -1
  214. package/dist/client/assets/useQuery-C1C5N5ZT.js +0 -1
  215. package/dist/client/assets/useSuspenseInfiniteQuery-DTYNehSw.js +0 -1
@@ -1 +1 @@
1
- import{c as q,g as Ne,e as _e,u as le,r as E,j as r,at as Se,O as ee,w as k,B as L,t as Oe,G as Ae,x as ke,K as Q}from"./index-Cwu-wOxG.js";import{E as ce}from"./empty-state-d0O2_gov.js";import{V as he,a as Re}from"./layout-uAQvZUV5.js";import{S as Me}from"./save-actions-DaUWkWXC.js";import{u as Ee}from"./use-llm-qmxWxKrd.js";import{T as ze,a as Pe,M as Ie,S as te}from"./task-status-B4cUiPIw.js";import{V as Ue}from"./select-virtual-mcp-DGvRtJYq.js";import{c as We,b as Le,d as Fe,e as ue,f as $e}from"./use-automations-CmBA5BIp.js";import{u as de}from"./index-D3ZjzgLI.js";import{b as me,d as pe,c as fe,A as ge,e as xe,h as ye,a as ve,f as we}from"./alert-dialog-8u4Gavgl.js";import{B as Ve}from"./badge-DCMHfnpB.js";import{b as se,d as Be,c as He,e as Ze,B as Ye,a as qe}from"./breadcrumb-BY-ewVy_.js";import{I as J}from"./input-C1vn-DTq.js";import{b as Ke,P as Ge,a as Qe}from"./popover-DshCW1Ke.js";import{S as Je}from"./switch-G01yVJFZ.js";import{e as Xe,a as et,b as Te,T as H,d as tt,c as Z}from"./table-VU_jTACA.js";import{u as st}from"./useQuery-C1C5N5ZT.js";import{u as it,a as rt}from"./constants-Cb-aLMXn.js";import{i as ie}from"./ArrowLeft-BvZRMmmd.js";import{i as nt}from"./ArrowUp-C2lFq2l_.js";import{i as ot}from"./Check-BpTBt_DU.js";import{i as at}from"./ChevronRight-DzDKImyB.js";import{s as lt}from"./Clock-BQ3-ewKK.js";import{i as ct}from"./Edit05-Be4ISClw.js";import{i as K}from"./Loading01-CaUjLzqI.js";import{s as ht}from"./Plus-BTdrhN0K.js";import{i as ut}from"./SearchMd-Cttl0f5e.js";import{s as Ce}from"./Trash01-CfDSVESG.js";import{s as dt}from"./XClose-LDW0Zjg0.js";import{a as je,t as mt,b as pt}from"./context-C5JuB0Gi.js";import{f as ft}from"./formatDistanceToNow-Cb2QZZJn.js";import"./Save01-BZZIq5VM.js";import"./skeleton-fCE8AB67.js";import"./spinner-DzisK9Oe.js";import"./tooltip-CDZrjN0Z.js";import"./index-CtSV8hQg.js";import"./use-mcp-prompts-BBl3G2ce.js";import"./dialog-CI9cYi-8.js";import"./X-WCV6Uy-H.js";import"./form-DUk8E4H3.js";import"./label-CQimXdzP.js";import"./index-CVNgvrfX.js";import"./usage-BtJ0yb4g.js";import"./ChevronDown-CLtlqODn.js";import"./Edit01-MdS4kQuR.js";import"./Lock01-Bkvx692f.js";import"./Users03-kcgQztw9.js";import"./XCircle-C-WtzSas.js";import"./AlertCircle-BNwQNysE.js";import"./select-FYqBz4qu.js";import"./ChevronUp-B0VWmu86.js";import"./org-ai-providers-CbsMDyud.js";import"./use-local-storage-DOvt8Wru.js";import"./useMutation-CoOETV22.js";import"./EyeOff-0IMC_mwL.js";import"./Eye-CY0xKDTh.js";import"./Key01-WZmaJvAg.js";import"./card-Qg-zzHRz.js";import"./avatar-DU2bTG4C.js";import"./use-copy-DqdhgXz8.js";import"./tabs-D9O_EWIk.js";import"./collapsible-BzxyBpB_.js";import"./index-CqTOxONw.js";import"./Code01-B5VHcRzc.js";import"./checkbox-BT8TUPmL.js";import"./AlignLeft-DIMPtJvs.js";import"./Image01-BBUHVhIS.js";import"./RefreshCcw01-DHNpNTtg.js";import"./Settings01-D8_pK50o.js";import"./ai-providers-logos-W57Qm-EN.js";import"./use-mcp-resources-BFxgTB7y.js";import"./Copy01-YVsgR_yF.js";import"./marked.esm-BaswSlok.js";import"./markdown-DeBvslRd.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BZ5G3Cq9.js";import"./types-DuDPXxDP.js";import"./Globe02-CJoGh1lx.js";import"./LayersTwo01-BSap1dAx.js";import"./integration-icon-C-xDvzAZ.js";import"./Container-CZDlWx72.js";import"./use-virtual-mcp-DEhycEb8.js";import"./use-collections-BU2tm7Px.js";import"./useSuspenseInfiniteQuery-DTYNehSw.js";import"./infiniteQueryObserver-BSUehVnk.js";import"./CheckCircle-2CcvSTQA.js";import"./use-create-virtual-mcp-C4FXOahh.js";import"./decopilot-events-Brt4gAR6.js";import"./differenceInSeconds-NQ4PDo0z.js";function _(t,e,s,i,n,o,c,a){return _.fromTZ(_.tp(t,e,s,i,n,o,c),a)}_.fromTZISO=(t,e,s)=>_.fromTZ(gt(t,e),s);_.fromTZ=function(t,e){let s=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),i=G(t.tz,s),n=new Date(s.getTime()-i),o=G(t.tz,n);if(o-i===0)return n;{let c=new Date(s.getTime()-o),a=G(t.tz,c);if(a-o===0||!e&&a-o>0)return c;if(e)throw new Error("Invalid date passed to fromTZ()");return n}};_.toTZ=function(t,e){let s=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),i=new Date(s);return{y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),tz:e}};_.tp=(t,e,s,i,n,o,c)=>({y:t,m:e,d:s,h:i,i:n,s:o,tz:c});function G(t,e=new Date){let s=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],i=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${i} GMT`)-Date.parse(`${i} ${s}`)}function gt(t,e){let s=new Date(Date.parse(t));if(isNaN(s))throw new Error("minitz: Invalid ISO8601 passed to parser.");let i=t.substring(9);return t.includes("Z")||i.includes("-")||i.includes("+")?_.tp(s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),"Etc/UTC"):_.tp(s.getFullYear(),s.getMonth()+1,s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),e)}_.minitz=_;var X=32,B=31|X,be=[1,2,4,8,16],re=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new M(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,B),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,s,i){let n=this[t],o=t==="day"&&this.lastDayOfMonth;if(e===""&&!o)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return n.fill(i);let c=e.split(",");if(c.length>1)for(let a=0;a<c.length;a++)this.partToArray(t,c[a],s,i);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,s,i):e.indexOf("-")!==-1?this.handleRange(e,t,s,i):e.indexOf("/")!==-1?this.handleStepping(e,t,s,i):e!==""&&this.handleNumber(e,t,s,i)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,s,i){let n=this.extractNth(t,e),o=parseInt(n[0],10)+s;if(isNaN(o))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,o,n[1]||i)}setPart(t,e,s){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,s);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=s}handleRangeWithStepping(t,e,s,i){let n=this.extractNth(t,e),o=n[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,c,a,l]=o,f=parseInt(c,10)+s,h=parseInt(a,10)+s,y=parseInt(l,10);if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(h))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(y))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(y===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(y>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(f>h)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let p=f;p<=h;p+=y)this.setPart(e,p,n[1]||i)}extractNth(t,e){let s=t,i;if(s.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");i=s.split("#")[1],s=s.split("#")[0]}return[s,i]}handleRange(t,e,s,i){let n=this.extractNth(t,e),o=n[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let c=parseInt(o[0],10)+s,a=parseInt(o[1],10)+s;if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(c>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let l=c;l<=a;l++)this.setPart(e,l,n[1]||i)}handleStepping(t,e,s,i){let n=this.extractNth(t,e),o=n[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");o[0]===""&&(o[0]="*");let c=0;o[0]!=="*"&&(c=parseInt(o[0],10)+s);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let l=c;l<this[e].length;l+=a)this.setPart(e,l,n[1]||i)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|X;else if(e===B)this.dayOfWeek[t]=B;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|be[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},ne=[31,28,31,30,31,30,31,31,30,31,30,31],U=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],M=class De{tz;ms;second;minute;hour;day;month;year;constructor(e,s){if(this.tz=s,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof De)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,s,i,n){let o=new Date(Date.UTC(e,s,i)).getUTCDay(),c=0;for(let a=1;a<=i;a++)new Date(Date.UTC(e,s,a)).getUTCDay()===o&&c++;if(n&B&&be[c-1]&n)return!0;if(n&X){let a=new Date(Date.UTC(e,s+1,0)).getUTCDate();for(let l=i+1;l<=a;l++)if(new Date(Date.UTC(e,s,l)).getUTCDay()===o)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let s=_.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=s.s,this.minute=s.i,this.hour=s.h,this.day=s.d,this.month=s.m-1,this.year=s.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>ne[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let s=_.fromTZISO(e);this.ms=s.getUTCMilliseconds(),this.second=s.getUTCSeconds(),this.minute=s.getUTCMinutes(),this.hour=s.getUTCHours(),this.day=s.getUTCDate(),this.month=s.getUTCMonth(),this.year=s.getUTCFullYear(),this.apply()}else return this.fromDate(_.fromTZISO(e,this.tz))}findNext(e,s,i,n){let o=this[s],c;i.lastDayOfMonth&&(this.month!==1?c=ne[this.month]:c=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!i.starDOW&&s=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[s]+n;l<i[s].length;l++){let f=i[s][l];if(s==="day"&&i.lastDayOfMonth&&l-n==c&&(f=1),s==="day"&&!i.starDOW){let h=i.dayOfWeek[(a+(l-n-1))%7];if(h&&h&B)h=this.isNthWeekdayOfMonth(this.year,this.month,l-n,h)?1:0;else if(h)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${h}`);e.legacyMode&&!i.starDOM?f=f||h:f=f&&h}if(f)return this[s]=l-n,o!==this[s]?2:1}return 3}recurse(e,s,i){let n=this.findNext(s,U[i][0],e,U[i][2]);if(n>1){let o=i+1;for(;o<U.length;)this[U[o][0]]=-U[o][2],o++;if(n===3)return this[U[i][1]]++,this[U[i][0]]=-U[i][2],this.apply(),this.recurse(e,s,0);if(this.apply())return this.recurse(e,s,i-1)}return i+=1,i>=U.length?this:this.year>=3e3?null:this.recurse(e,s,i)}increment(e,s,i){return this.second+=s.interval!==void 0&&s.interval>1&&i?s.interval:1,this.ms=0,this.apply(),this.recurse(e,s,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):_.fromTZ(_.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function xt(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new M(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new M(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function V(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function yt(t){return V(t)}function vt(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var oe=30*1e3,Y=[],wt=class{name;options;_states;fn;constructor(t,e,s){let i,n;if(V(e))n=e;else if(typeof e=="object")i=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(V(s))n=s;else if(typeof s=="object")i=s;else if(s!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=i?.name,this.options=xt(i),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:i?i.maxRuns:void 0,paused:i?i.paused:!1,pattern:new re("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new M(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new re(t,this.options.timezone),this.name){if(Y.find(o=>o.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Y.push(this)}return n!==void 0&&yt(n)&&(this.fn=n,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let s=[],i=e||this._states.currentRun||void 0;for(;t--&&(i=this.nextRun(i));)s.push(i);return s}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,s=this.fn!==void 0,i=!this._states.kill;return e&&s&&i&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof M||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new M(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=Y.indexOf(this);t>=0&&Y.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),s=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||s===null?this:(e>oe&&(e=oe),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(s),e),this._states.currentTimeout&&this.options.unref&&vt(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new M(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){V(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new M(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,s=!this._states.paused&&e.getTime()>=t.getTime(),i=this._states.blocking&&this.options.protect;s&&!i?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):s&&i&&V(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),s=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),s=!t),t=new M(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let i=this._states.once||new M(t,this.options.timezone||this.options.utcOffset);return!s&&i!==this._states.once&&(i=i.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||i===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&i.getTime()>=this.options.stopAt.getTime()?null:i}_calculatePreviousRun(t,e){let s=new M(void 0,this.options.timezone||this.options.utcOffset),i=t;if(this.options.startAt.getTime()<=s.getTime()){i=this.options.startAt;let n=i.getTime()+this.options.interval*1e3;for(;n<=s.getTime();)i=new M(i,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),n=i.getTime()+this.options.interval*1e3;e=!0}return i===null&&(i=void 0),[i,e]}};const ae=[{label:"Minute",cron:"* * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function Tt(t){const e=q.c(44),{automationId:s}=t,i=ue(),[n,o]=E.useState(!1),[c,a]=E.useState("menu"),[l,f]=E.useState(""),[h,y]=E.useState("");let p;if(e[0]===Symbol.for("react.memo_cache_sentinel")){const u=()=>{a("menu"),f(""),y("")};p=R=>{o(R),R||u()},e[0]=p}else p=e[0];const D=p;let w;e[1]!==i||e[2]!==s?(w=async u=>{try{await i.mutateAsync({automation_id:s,type:"cron",cron_expression:u}),k.success("Trigger added"),D(!1)}catch(R){const z=R,$=z instanceof Error?z.message:"Failed to add trigger";k.error($)}},e[1]=i,e[2]=s,e[3]=w):w=e[3];const x=w;let g;e[4]!==h||e[5]!==x?(g=()=>{if(!h.trim()){k.error("Cron expression is required");return}x(h.trim())},e[4]=h,e[5]=x,e[6]=g):g=e[6];const d=g;let v,j,m,T,b,S,O,A,C,P;if(e[7]!==i||e[8]!==h||e[9]!==d||e[10]!==n||e[11]!==l||e[12]!==x||e[13]!==c){const u=[...ae.map(N=>({label:`Every ${N.label}`,action:()=>x(N.cron)})),{label:"Custom (cron)",action:()=>a("custom-cron")}],R=l.trim()?u.filter(N=>N.label.toLowerCase().includes(l.toLowerCase())):null;j=Ke,P=n,m=D,e[24]===Symbol.for("react.memo_cache_sentinel")?(T=r.jsx(Ge,{asChild:!0,children:r.jsxs(L,{variant:"outline",size:"sm",children:[r.jsx(ht,{size:14}),"Add Trigger"]})}),e[24]=T):T=e[24],v=Qe,O="w-[280px] p-0",A="end";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsx(ut,{size:14,className:"text-muted-foreground pointer-events-none shrink-0"}),e[25]=z):z=e[25];let $;e[26]===Symbol.for("react.memo_cache_sentinel")?($=N=>f(N.target.value),e[26]=$):$=e[26],e[27]!==l?(C=r.jsx("div",{className:"border-b px-3 py-2",children:r.jsxs("div",{className:"relative flex items-center gap-2",children:[z,r.jsx("input",{type:"text",placeholder:"Search triggers...",value:l,onChange:$,className:"flex-1 text-sm bg-transparent border-0 outline-none placeholder:text-muted-foreground"})]})}),e[27]=l,e[28]=C):C=e[28],b="py-1",S=R?R.length>0?R.map(N=>r.jsx("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:N.action,disabled:i.isPending,children:N.label},N.label)):r.jsx("div",{className:"px-3 py-4 text-sm text-muted-foreground text-center",children:"No triggers found"}):c==="menu"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[r.jsx(lt,{size:12}),"Scheduled"]}),r.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>a("every"),children:[r.jsx("span",{children:"Every..."}),r.jsx(at,{size:14,className:"text-muted-foreground"})]}),r.jsx("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>a("custom-cron"),children:"Custom (cron)"})]}):c==="every"?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",className:"w-full flex items-center gap-1.5 px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors text-muted-foreground",onClick:()=>a("menu"),children:[r.jsx(ie,{size:14}),"Back"]}),ae.map(N=>r.jsxs("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>x(N.cron),disabled:i.isPending,children:["Every ",N.label]},N.cron))]}):r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",className:"w-full flex items-center gap-1.5 px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors text-muted-foreground",onClick:()=>a("menu"),children:[r.jsx(ie,{size:14}),"Back"]}),r.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",children:[r.jsx(J,{value:h,onChange:N=>y(N.target.value),placeholder:"*/5 * * * *",className:"h-8 text-sm"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Minimum interval: 60 seconds between runs."}),r.jsxs(L,{size:"sm",className:"w-full",onClick:d,disabled:i.isPending,children:[i.isPending&&r.jsx(K,{size:14,className:"animate-spin"}),"Add Trigger"]})]})]}),e[7]=i,e[8]=h,e[9]=d,e[10]=n,e[11]=l,e[12]=x,e[13]=c,e[14]=v,e[15]=j,e[16]=m,e[17]=T,e[18]=b,e[19]=S,e[20]=O,e[21]=A,e[22]=C,e[23]=P}else v=e[14],j=e[15],m=e[16],T=e[17],b=e[18],S=e[19],O=e[20],A=e[21],C=e[22],P=e[23];let W;e[29]!==b||e[30]!==S?(W=r.jsx("div",{className:b,children:S}),e[29]=b,e[30]=S,e[31]=W):W=e[31];let I;e[32]!==v||e[33]!==W||e[34]!==O||e[35]!==A||e[36]!==C?(I=r.jsxs(v,{className:O,align:A,children:[C,W]}),e[32]=v,e[33]=W,e[34]=O,e[35]=A,e[36]=C,e[37]=I):I=e[37];let F;return e[38]!==j||e[39]!==m||e[40]!==T||e[41]!==I||e[42]!==P?(F=r.jsxs(j,{open:P,onOpenChange:m,children:[T,I]}),e[38]=j,e[39]=m,e[40]=T,e[41]=I,e[42]=P,e[43]=F):F=e[43],F}function Ct({trigger:t,automationId:e}){const s=$e(),i=ue(),[n,o]=E.useState(!1),[c,a]=E.useState(!1),[l,f]=E.useState(t.cron_expression??""),h=s.isPending||i.isPending,y=async()=>{try{await s.mutateAsync({trigger_id:t.id,automation_id:e}),k.success("Trigger removed")}catch{k.error("Failed to remove trigger")}o(!1)},p=async()=>{const g=l.trim();if(!g){k.error("Cron expression is required");return}if(g===t.cron_expression){a(!1);return}try{await i.mutateAsync({automation_id:e,type:"cron",cron_expression:g}),await s.mutateAsync({trigger_id:t.id,automation_id:e}),k.success("Trigger updated"),a(!1)}catch{k.error("Failed to update trigger")}},D=()=>{f(t.cron_expression??""),a(!1)},w=g=>{g.key==="Enter"&&p(),g.key==="Escape"&&D()},x=t.type==="cron";return r.jsxs(r.Fragment,{children:[r.jsxs(Te,{children:[r.jsx(Z,{children:r.jsx(Ve,{variant:"outline",children:x?"Cron":"Event"})}),r.jsx(Z,{className:"text-muted-foreground font-mono text-xs",children:c?r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(J,{value:l,onChange:g=>f(g.target.value),onKeyDown:w,placeholder:"*/5 * * * *",className:"h-7 text-xs font-mono w-36",autoFocus:!0,disabled:h}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:p,disabled:h,children:h?r.jsx(K,{size:14,className:"animate-spin"}):r.jsx(ot,{size:14,className:"text-green-600"})}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:D,disabled:h,children:r.jsx(dt,{size:14,className:"text-muted-foreground"})})]}):x?t.cron_expression:`${t.event_type} @ ${t.connection_id?.slice(0,8)}...`}),r.jsx(Z,{className:"text-muted-foreground text-xs",children:(()=>{if(!x||!t.cron_expression)return"-";try{const g=new wt(t.cron_expression,{timezone:"UTC"}).nextRun();return g?g.toLocaleString(void 0,{timeZoneName:"short"}):"-"}catch{return"-"}})()}),r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center gap-0.5",children:[x&&!c&&r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>a(!0),children:r.jsx(ct,{size:14,className:"text-muted-foreground"})}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>o(!0),children:r.jsx(Ce,{size:14,className:"text-muted-foreground"})})]})})]}),r.jsx(we,{open:n,onOpenChange:o,children:r.jsxs(ve,{children:[r.jsxs(me,{children:[r.jsx(fe,{children:"Remove Trigger"}),r.jsx(pe,{children:"Are you sure you want to remove this trigger? For event triggers, it will also be disabled on the connection."})]}),r.jsxs(xe,{children:[r.jsx(ge,{children:"Cancel"}),r.jsx(ye,{onClick:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Remove"})]})]})})]})}function jt({automationId:t,automation:e}){const s=Fe(),{createTask:i,setVirtualMcpId:n,setSelectedModel:o,setSelectedMode:c,sendMessage:a,credentialId:l,model:f}=je(),[,h]=de(),y=e.messages?.[0]?.metadata?.tiptapDoc??void 0,[p,D]=E.useState(y),[w,x]=E.useState(y),g=E.useRef(!1),d=u=>{D(u),g.current||(g.current=!0,y||x(u))},v=e.models?.credentialId||l||"",j=e.models?.thinking?.id||f?.modelId||"",m=Oe({defaultValues:{name:e.name,active:e.active,agent_id:e.agent?.id??"",credential_id:v,model_id:j}}),T=m.watch("agent_id"),b=m.watch("credential_id"),S=m.watch("model_id"),{models:O,isLoading:A}=Ee(b||void 0),C=O.find(u=>u.modelId===S)??null,P=async()=>{const u=m.getValues();try{const R=u.credential_id&&u.model_id?u.credential_id:"",z=u.credential_id&&u.model_id?u.model_id:"";return await s.mutateAsync({id:t,name:u.name,active:u.active,agent:{id:u.agent_id,mode:"passthrough"},models:{credentialId:R,thinking:{id:z}},messages:mt(p),temperature:0}),m.reset({...u,credential_id:R,model_id:z}),x(p),k.success("Automation saved"),!0}catch{return k.error("Failed to save automation"),!1}},W=()=>{m.reset(),d(w)},I=m.formState.isDirty||JSON.stringify(p??null)!==JSON.stringify(w??null),F=async()=>{if(I&&!await P())return;if(!p){k.error("No message configured for this automation");return}const u=m.getValues();n(u.agent_id||null),c("passthrough"),C&&b&&o({...C,keyId:b}),h(!0),i(),setTimeout(()=>{a(p,{toolApprovalLevel:"yolo"})},0)};return r.jsxs(r.Fragment,{children:[r.jsx(he,{children:r.jsx(Me,{onSave:async()=>{await P()},onUndo:W,isDirty:I,isSaving:s.isPending})}),r.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(J,{...m.register("name"),placeholder:"Automation name",className:"flex-1 max-w-xs"}),r.jsx(Ae,{control:m.control,name:"active",render:({field:u})=>r.jsx(Je,{checked:u.value,onCheckedChange:u.onChange,className:"cursor-pointer"})})]}),r.jsx(ze,{tiptapDoc:p,setTiptapDoc:d,placeholder:"What should this automation do?",children:r.jsxs("div",{className:"rounded-xl border border-border min-h-[120px] flex flex-col",children:[r.jsx(Pe,{virtualMcpId:T||null}),r.jsxs("div",{className:"flex items-center justify-between p-2.5",children:[r.jsx("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:r.jsx(Ue,{selectedVirtualMcpId:T||null,onVirtualMcpChange:u=>m.setValue("agent_id",u??"",{shouldDirty:!0}),placeholder:"Select Agent"})}),r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Ie,{model:C,isLoading:A,credentialId:b||null,onCredentialChange:u=>{m.setValue("credential_id",u??"",{shouldDirty:!0}),m.setValue("model_id","",{shouldDirty:!0})},onModelChange:u=>m.setValue("model_id",u.modelId,{shouldDirty:!0}),placeholder:"Model"}),r.jsx(L,{type:"button",variant:"default",size:"icon",className:"size-8 rounded-full",onClick:F,title:"Test Automation",children:r.jsx(nt,{size:20})})]})]})]})}),r.jsxs("div",{className:"flex flex-col gap-3 border-t border-border pt-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h3",{className:"text-sm font-medium",children:"Triggers"}),r.jsx(Tt,{automationId:t})]}),e.triggers.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No triggers configured. Add a cron schedule or event trigger."}):r.jsxs(Xe,{children:[r.jsx(et,{children:r.jsxs(Te,{children:[r.jsx(H,{children:"Type"}),r.jsx(H,{children:"Configuration"}),r.jsx(H,{children:"Next Run"}),r.jsx(H,{className:"w-12"})]})}),r.jsx(tt,{children:e.triggers.map(u=>r.jsx(Ct,{trigger:u,automationId:t},u.id))})]})]}),r.jsxs("div",{className:"flex flex-col gap-3 border-t border-border pt-6",children:[r.jsx("h3",{className:"text-sm font-medium",children:"Run History"}),r.jsx(Dt,{automationId:t,triggerIds:e.triggers.map(u=>u.id)})]})]})]})}function bt(t,e,s){const i=q.c(13);let n;i[0]!==t?(n={connectionId:rt,orgId:t},i[0]=t,i[1]=n):n=i[1];const o=it(n);let c;i[2]!==e||i[3]!==t||i[4]!==s?(c=Q.automationRuns(t,e,s),i[2]=e,i[3]=t,i[4]=s,i[5]=c):c=i[5];let a;i[6]!==o||i[7]!==s?(a=async()=>{if(!o)throw new Error("MCP client not available");const h=await o.callTool({name:"COLLECTION_THREADS_LIST",arguments:{where:{trigger_ids:s},limit:20}});return(h.structuredContent??h).items??[]},i[6]=o,i[7]=s,i[8]=a):a=i[8];const l=s.length>0;let f;return i[9]!==c||i[10]!==a||i[11]!==l?(f={queryKey:c,queryFn:a,enabled:l},i[9]=c,i[10]=a,i[11]=l,i[12]=f):f=i[12],st(f)}function Dt(t){const e=q.c(22),{automationId:s,triggerIds:i}=t,{org:n}=le(),{switchToTask:o}=je(),[,c]=de(),a=ke(),{data:l,isLoading:f}=bt(n.id,s,i),h=i.length>0;let y;e[0]!==s||e[1]!==n.id||e[2]!==a||e[3]!==l||e[4]!==i?(y=d=>{const v=d.subject,j=l??[];j.find(T=>T.id===v)?a.setQueryData(Q.automationRuns(n.id,s,i),j.map(T=>T.id===v?{...T,status:d.data.status,updated_at:new Date().toISOString()}:T)):a.invalidateQueries({queryKey:Q.automationRuns(n.id,s,i)})},e[0]=s,e[1]=n.id,e[2]=a,e[3]=l,e[4]=i,e[5]=y):y=e[5];let p;if(e[6]!==n.id||e[7]!==h||e[8]!==y?(p={orgId:n.id,enabled:h,onTaskStatus:y},e[6]=n.id,e[7]=h,e[8]=y,e[9]=p):p=e[9],pt(p),f){let d;return e[10]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(K,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=d):d=e[10],d}if(!l||l.length===0){let d;return e[11]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ce,{title:"No run history",description:"Run history will appear here when the automation has been triggered."}),e[11]=d):d=e[11],d}let D;e[12]!==c||e[13]!==o?(D=async d=>{await o(d),c(!0)},e[12]=c,e[13]=o,e[14]=D):D=e[14];const w=D;let x;if(e[15]!==w||e[16]!==l){let d;e[18]!==w?(d=v=>{const j=te[v.status]??te.completed,m=j.icon;return r.jsxs("button",{type:"button",className:"flex items-center gap-3 px-1 py-2.5 text-left hover:bg-accent/50 transition-colors cursor-pointer rounded-sm",onClick:()=>w(v.id),children:[r.jsx(m,{size:16,className:j.iconClassName}),r.jsx("span",{className:"flex-1 min-w-0 text-sm truncate",children:v.title}),r.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ft(new Date(v.updated_at),{addSuffix:!0})})]},v.id)},e[18]=w,e[19]=d):d=e[19],x=l.map(d),e[15]=w,e[16]=l,e[17]=x}else x=e[17];let g;return e[20]!==x?(g=r.jsx("div",{className:"flex flex-col divide-y divide-border",children:x}),e[20]=x,e[21]=g):g=e[21],g}function ai(){const t=q.c(36);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{automationId:s}=Ne(e),i=_e(),{org:n}=le(),{data:o,isLoading:c}=We(s),a=Le(),[l,f]=E.useState(!1);let h;t[1]!==s||t[2]!==a||t[3]!==i||t[4]!==n?(h=async()=>{try{await a.mutateAsync(s),k.success("Automation deleted"),i({to:"/$org/$project/automations",params:{org:n.slug,project:ee}})}catch{k.error("Failed to delete automation")}f(!1)},t[1]=s,t[2]=a,t[3]=i,t[4]=n,t[5]=h):h=t[5];const y=h;if(c){let C;return t[6]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx(K,{size:24,className:"animate-spin text-muted-foreground"})}),t[6]=C):C=t[6],C}if(!o){let C;return t[7]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ce,{title:"Automation not found",description:"This automation may have been deleted."}),t[7]=C):C=t[7],C}let p;t[8]!==n.slug?(p=r.jsx(se,{children:r.jsx(Be,{asChild:!0,children:r.jsx(Se,{to:"/$org/$project/automations",params:{org:n.slug,project:ee},children:"Automations"})})}),t[8]=n.slug,t[9]=p):p=t[9];let D;t[10]===Symbol.for("react.memo_cache_sentinel")?(D=r.jsx(Ze,{}),t[10]=D):D=t[10];let w;t[11]!==o.name?(w=r.jsx(se,{children:r.jsx(He,{children:o.name})}),t[11]=o.name,t[12]=w):w=t[12];let x;t[13]!==p||t[14]!==w?(x=r.jsx(Ye,{children:r.jsxs(qe,{children:[p,D,w]})}),t[13]=p,t[14]=w,t[15]=x):x=t[15];const g=x;let d;t[16]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(he,{children:r.jsxs(L,{variant:"ghost",size:"sm",className:"h-7 text-destructive hover:text-destructive",onClick:()=>f(!0),children:[r.jsx(Ce,{size:14}),"Delete"]})}),t[16]=d):d=t[16];let v;t[17]!==o||t[18]!==s?(v=r.jsx(jt,{automationId:s,automation:o},s),t[17]=o,t[18]=s,t[19]=v):v=t[19];let j;t[20]===Symbol.for("react.memo_cache_sentinel")?(j=r.jsx(fe,{children:"Delete Automation"}),t[20]=j):j=t[20];let m;t[21]!==o.name?(m=r.jsxs(me,{children:[j,r.jsxs(pe,{children:['Are you sure you want to delete "',o.name,'"? This action cannot be undone.']})]}),t[21]=o.name,t[22]=m):m=t[22];let T;t[23]===Symbol.for("react.memo_cache_sentinel")?(T=r.jsx(ge,{children:"Cancel"}),t[23]=T):T=t[23];let b;t[24]!==y?(b=r.jsxs(xe,{children:[T,r.jsx(ye,{onClick:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[24]=y,t[25]=b):b=t[25];let S;t[26]!==b||t[27]!==m?(S=r.jsxs(ve,{children:[m,b]}),t[26]=b,t[27]=m,t[28]=S):S=t[28];let O;t[29]!==l||t[30]!==S?(O=r.jsx(we,{open:l,onOpenChange:f,children:S}),t[29]=l,t[30]=S,t[31]=O):O=t[31];let A;return t[32]!==g||t[33]!==O||t[34]!==v?(A=r.jsxs(Re,{breadcrumb:g,children:[d,v,O]}),t[32]=g,t[33]=O,t[34]=v,t[35]=A):A=t[35],A}export{ai as default};
1
+ import{c as q,g as Ne,e as _e,u as le,r as E,j as r,at as Se,O as ee,w as k,B as L,t as Oe,G as Ae,x as ke,K as Q}from"./index-BQleIDTt.js";import{E as ce}from"./empty-state-CwR-V_Cp.js";import{V as he,a as Re}from"./layout-B7XQPoZu.js";import{S as Me}from"./save-actions-CKT12DNt.js";import{u as Ee}from"./use-llm-CiYDOTDR.js";import{T as ze,a as Pe,M as Ie,S as te}from"./task-status-BiNq5gDy.js";import{V as Ue}from"./select-virtual-mcp-6VQzUUjO.js";import{c as We,b as Le,d as Fe,e as ue,f as $e}from"./use-automations-BKe0uXVK.js";import{u as de}from"./index-B5yIb9zu.js";import{b as me,d as pe,c as fe,A as ge,e as xe,h as ye,a as ve,f as we}from"./alert-dialog-D9yW1xTi.js";import{B as Ve}from"./badge-8URjJAhe.js";import{b as se,d as Be,c as He,e as Ze,B as Ye,a as qe}from"./breadcrumb-B4M-xjAh.js";import{I as J}from"./input-Cr9WIMEe.js";import{b as Ke,P as Ge,a as Qe}from"./popover-DPZESWyD.js";import{S as Je}from"./switch-HCXSz4y2.js";import{e as Xe,a as et,b as Te,T as H,d as tt,c as Z}from"./table-BEAvNlPV.js";import{u as st}from"./useQuery-Z4jdNSdH.js";import{u as it,a as rt}from"./constants-CFDpCrfp.js";import{i as ie}from"./ArrowLeft-Btl9-BH1.js";import{i as nt}from"./ArrowUp-CIXX8aOG.js";import{i as ot}from"./Check-DZNMAm2u.js";import{i as at}from"./ChevronRight-CGHgArrz.js";import{s as lt}from"./Clock-B2PDYMbQ.js";import{i as ct}from"./Edit05-0qYUIfi2.js";import{i as K}from"./Loading01-CI9XW1P8.js";import{s as ht}from"./Plus-C3h0mQix.js";import{i as ut}from"./SearchMd-Dk942ZJc.js";import{s as Ce}from"./Trash01-Uzl63r_m.js";import{s as dt}from"./XClose-aNRcInwu.js";import{a as je,t as mt,b as pt}from"./context-BS-aE7yX.js";import{f as ft}from"./formatDistanceToNow-Cb2QZZJn.js";import"./Save01-C8xBPE9Z.js";import"./skeleton-DgbZc6Cl.js";import"./spinner-bMySb2hk.js";import"./tooltip-B6t-kUHF.js";import"./index-PZJmA1E3.js";import"./use-mcp-prompts-DJ9I-zC3.js";import"./dialog-DL2lt3sk.js";import"./X-DX_HDAA7.js";import"./form-BfGCA9ow.js";import"./label-CYTMoKOK.js";import"./index-DGAp0Gms.js";import"./usage-BtJ0yb4g.js";import"./ChevronDown-qpUv4NX7.js";import"./Edit01-DsPk7eyH.js";import"./Lock01-C3LFW_-g.js";import"./Users03-Byz3dnNP.js";import"./XCircle-CScbFtNn.js";import"./AlertCircle-DLYa4QZT.js";import"./select-E-ZqDioA.js";import"./ChevronUp-vdY8m52-.js";import"./org-ai-providers-S_9UA4ok.js";import"./use-local-storage-F9nFwQtJ.js";import"./useMutation-BzjLvWgQ.js";import"./EyeOff-DjkTmX2W.js";import"./Eye-B0s6dMGJ.js";import"./Key01-Bjd_BqZt.js";import"./card-B6uX8VSU.js";import"./avatar-B8Mua9Kd.js";import"./use-copy-TKhh6_P4.js";import"./tabs-BepHm4df.js";import"./collapsible-BUSFlM0s.js";import"./index-DMQgnzGF.js";import"./Code01-BWwwhLKd.js";import"./checkbox-CIKrZxue.js";import"./AlignLeft-D2MUDaqO.js";import"./Image01-L-USuN4y.js";import"./RefreshCcw01-C7OVhJkb.js";import"./Settings01-Cb2WCDc8.js";import"./ai-providers-logos-W57Qm-EN.js";import"./use-mcp-resources-B9FMOy1r.js";import"./Copy01-DhAt7aHM.js";import"./marked.esm-BaswSlok.js";import"./markdown-CG89AfZl.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BU2NYHe0.js";import"./types-cjLUOWYP.js";import"./Globe02-DiWwL-RX.js";import"./LayersTwo01-z3XSbQON.js";import"./integration-icon-BBf-HzO_.js";import"./Container-CrWxb_AI.js";import"./use-virtual-mcp-DaYZgY02.js";import"./use-collections-COSEWzs-.js";import"./useSuspenseInfiniteQuery-CpWHKYg-.js";import"./infiniteQueryObserver-i0aVwlSu.js";import"./CheckCircle-B45Qunfq.js";import"./use-create-virtual-mcp-DqFGLKwR.js";import"./decopilot-events-Brt4gAR6.js";import"./differenceInSeconds-NQ4PDo0z.js";function _(t,e,s,i,n,o,c,a){return _.fromTZ(_.tp(t,e,s,i,n,o,c),a)}_.fromTZISO=(t,e,s)=>_.fromTZ(gt(t,e),s);_.fromTZ=function(t,e){let s=new Date(Date.UTC(t.y,t.m-1,t.d,t.h,t.i,t.s)),i=G(t.tz,s),n=new Date(s.getTime()-i),o=G(t.tz,n);if(o-i===0)return n;{let c=new Date(s.getTime()-o),a=G(t.tz,c);if(a-o===0||!e&&a-o>0)return c;if(e)throw new Error("Invalid date passed to fromTZ()");return n}};_.toTZ=function(t,e){let s=t.toLocaleString("en-US",{timeZone:e}).replace(/[\u202f]/," "),i=new Date(s);return{y:i.getFullYear(),m:i.getMonth()+1,d:i.getDate(),h:i.getHours(),i:i.getMinutes(),s:i.getSeconds(),tz:e}};_.tp=(t,e,s,i,n,o,c)=>({y:t,m:e,d:s,h:i,i:n,s:o,tz:c});function G(t,e=new Date){let s=e.toLocaleString("en-US",{timeZone:t,timeZoneName:"shortOffset"}).split(" ").slice(-1)[0],i=e.toLocaleString("en-US").replace(/[\u202f]/," ");return Date.parse(`${i} GMT`)-Date.parse(`${i} ${s}`)}function gt(t,e){let s=new Date(Date.parse(t));if(isNaN(s))throw new Error("minitz: Invalid ISO8601 passed to parser.");let i=t.substring(9);return t.includes("Z")||i.includes("-")||i.includes("+")?_.tp(s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),"Etc/UTC"):_.tp(s.getFullYear(),s.getMonth()+1,s.getDate(),s.getHours(),s.getMinutes(),s.getSeconds(),e)}_.minitz=_;var X=32,B=31|X,be=[1,2,4,8,16],re=class{pattern;timezone;second;minute;hour;day;month;dayOfWeek;lastDayOfMonth;starDOM;starDOW;constructor(t,e){this.pattern=t,this.timezone=e,this.second=Array(60).fill(0),this.minute=Array(60).fill(0),this.hour=Array(24).fill(0),this.day=Array(31).fill(0),this.month=Array(12).fill(0),this.dayOfWeek=Array(7).fill(0),this.lastDayOfMonth=!1,this.starDOM=!1,this.starDOW=!1,this.parse()}parse(){if(!(typeof this.pattern=="string"||this.pattern instanceof String))throw new TypeError("CronPattern: Pattern has to be of type string.");this.pattern.indexOf("@")>=0&&(this.pattern=this.handleNicknames(this.pattern).trim());let t=this.pattern.replace(/\s+/g," ").split(" ");if(t.length<5||t.length>6)throw new TypeError("CronPattern: invalid configuration format ('"+this.pattern+"'), exactly five or six space separated parts are required.");if(t.length===5&&t.unshift("0"),t[3].indexOf("L")>=0&&(t[3]=t[3].replace("L",""),this.lastDayOfMonth=!0),t[3]=="*"&&(this.starDOM=!0),t[4].length>=3&&(t[4]=this.replaceAlphaMonths(t[4])),t[5].length>=3&&(t[5]=this.replaceAlphaDays(t[5])),t[5]=="*"&&(this.starDOW=!0),this.pattern.indexOf("?")>=0){let e=new M(new Date,this.timezone).getDate(!0);t[0]=t[0].replace("?",e.getSeconds().toString()),t[1]=t[1].replace("?",e.getMinutes().toString()),t[2]=t[2].replace("?",e.getHours().toString()),this.starDOM||(t[3]=t[3].replace("?",e.getDate().toString())),t[4]=t[4].replace("?",(e.getMonth()+1).toString()),this.starDOW||(t[5]=t[5].replace("?",e.getDay().toString()))}this.throwAtIllegalCharacters(t),this.partToArray("second",t[0],0,1),this.partToArray("minute",t[1],0,1),this.partToArray("hour",t[2],0,1),this.partToArray("day",t[3],-1,1),this.partToArray("month",t[4],-1,1),this.partToArray("dayOfWeek",t[5],0,B),this.dayOfWeek[7]&&(this.dayOfWeek[0]=this.dayOfWeek[7])}partToArray(t,e,s,i){let n=this[t],o=t==="day"&&this.lastDayOfMonth;if(e===""&&!o)throw new TypeError("CronPattern: configuration entry "+t+" ("+e+") is empty, check for trailing spaces.");if(e==="*")return n.fill(i);let c=e.split(",");if(c.length>1)for(let a=0;a<c.length;a++)this.partToArray(t,c[a],s,i);else e.indexOf("-")!==-1&&e.indexOf("/")!==-1?this.handleRangeWithStepping(e,t,s,i):e.indexOf("-")!==-1?this.handleRange(e,t,s,i):e.indexOf("/")!==-1?this.handleStepping(e,t,s,i):e!==""&&this.handleNumber(e,t,s,i)}throwAtIllegalCharacters(t){for(let e=0;e<t.length;e++)if((e===5?/[^/*0-9,\-#L]+/:/[^/*0-9,-]+/).test(t[e]))throw new TypeError("CronPattern: configuration entry "+e+" ("+t[e]+") contains illegal characters.")}handleNumber(t,e,s,i){let n=this.extractNth(t,e),o=parseInt(n[0],10)+s;if(isNaN(o))throw new TypeError("CronPattern: "+e+" is not a number: '"+t+"'");this.setPart(e,o,n[1]||i)}setPart(t,e,s){if(!Object.prototype.hasOwnProperty.call(this,t))throw new TypeError("CronPattern: Invalid part specified: "+t);if(t==="dayOfWeek"){if(e===7&&(e=0),e<0||e>6)throw new RangeError("CronPattern: Invalid value for dayOfWeek: "+e);this.setNthWeekdayOfMonth(e,s);return}if(t==="second"||t==="minute"){if(e<0||e>=60)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="hour"){if(e<0||e>=24)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="day"){if(e<0||e>=31)throw new RangeError("CronPattern: Invalid value for "+t+": "+e)}else if(t==="month"&&(e<0||e>=12))throw new RangeError("CronPattern: Invalid value for "+t+": "+e);this[t][e]=s}handleRangeWithStepping(t,e,s,i){let n=this.extractNth(t,e),o=n[0].match(/^(\d+)-(\d+)\/(\d+)$/);if(o===null)throw new TypeError("CronPattern: Syntax error, illegal range with stepping: '"+t+"'");let[,c,a,l]=o,f=parseInt(c,10)+s,h=parseInt(a,10)+s,y=parseInt(l,10);if(isNaN(f))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(h))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(isNaN(y))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(y===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(y>this[e].length)throw new TypeError("CronPattern: Syntax error, steps cannot be greater than maximum value of part ("+this[e].length+")");if(f>h)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let p=f;p<=h;p+=y)this.setPart(e,p,n[1]||i)}extractNth(t,e){let s=t,i;if(s.includes("#")){if(e!=="dayOfWeek")throw new Error("CronPattern: nth (#) only allowed in day-of-week field");i=s.split("#")[1],s=s.split("#")[0]}return[s,i]}handleRange(t,e,s,i){let n=this.extractNth(t,e),o=n[0].split("-");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal range: '"+t+"'");let c=parseInt(o[0],10)+s,a=parseInt(o[1],10)+s;if(isNaN(c))throw new TypeError("CronPattern: Syntax error, illegal lower range (NaN)");if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal upper range (NaN)");if(c>a)throw new TypeError("CronPattern: From value is larger than to value: '"+t+"'");for(let l=c;l<=a;l++)this.setPart(e,l,n[1]||i)}handleStepping(t,e,s,i){let n=this.extractNth(t,e),o=n[0].split("/");if(o.length!==2)throw new TypeError("CronPattern: Syntax error, illegal stepping: '"+t+"'");o[0]===""&&(o[0]="*");let c=0;o[0]!=="*"&&(c=parseInt(o[0],10)+s);let a=parseInt(o[1],10);if(isNaN(a))throw new TypeError("CronPattern: Syntax error, illegal stepping: (NaN)");if(a===0)throw new TypeError("CronPattern: Syntax error, illegal stepping: 0");if(a>this[e].length)throw new TypeError("CronPattern: Syntax error, max steps for part is ("+this[e].length+")");for(let l=c;l<this[e].length;l+=a)this.setPart(e,l,n[1]||i)}replaceAlphaDays(t){return t.replace(/-sun/gi,"-7").replace(/sun/gi,"0").replace(/mon/gi,"1").replace(/tue/gi,"2").replace(/wed/gi,"3").replace(/thu/gi,"4").replace(/fri/gi,"5").replace(/sat/gi,"6")}replaceAlphaMonths(t){return t.replace(/jan/gi,"1").replace(/feb/gi,"2").replace(/mar/gi,"3").replace(/apr/gi,"4").replace(/may/gi,"5").replace(/jun/gi,"6").replace(/jul/gi,"7").replace(/aug/gi,"8").replace(/sep/gi,"9").replace(/oct/gi,"10").replace(/nov/gi,"11").replace(/dec/gi,"12")}handleNicknames(t){let e=t.trim().toLowerCase();return e==="@yearly"||e==="@annually"?"0 0 1 1 *":e==="@monthly"?"0 0 1 * *":e==="@weekly"?"0 0 * * 0":e==="@daily"?"0 0 * * *":e==="@hourly"?"0 * * * *":t}setNthWeekdayOfMonth(t,e){if(typeof e!="number"&&e==="L")this.dayOfWeek[t]=this.dayOfWeek[t]|X;else if(e===B)this.dayOfWeek[t]=B;else if(e<6&&e>0)this.dayOfWeek[t]=this.dayOfWeek[t]|be[e-1];else throw new TypeError(`CronPattern: nth weekday out of range, should be 1-5 or L. Value: ${e}, Type: ${typeof e}`)}},ne=[31,28,31,30,31,30,31,31,30,31,30,31],U=[["month","year",0],["day","month",-1],["hour","day",0],["minute","hour",0],["second","minute",0]],M=class De{tz;ms;second;minute;hour;day;month;year;constructor(e,s){if(this.tz=s,e&&e instanceof Date)if(!isNaN(e))this.fromDate(e);else throw new TypeError("CronDate: Invalid date passed to CronDate constructor");else if(e===void 0)this.fromDate(new Date);else if(e&&typeof e=="string")this.fromString(e);else if(e instanceof De)this.fromCronDate(e);else throw new TypeError("CronDate: Invalid type ("+typeof e+") passed to CronDate constructor")}isNthWeekdayOfMonth(e,s,i,n){let o=new Date(Date.UTC(e,s,i)).getUTCDay(),c=0;for(let a=1;a<=i;a++)new Date(Date.UTC(e,s,a)).getUTCDay()===o&&c++;if(n&B&&be[c-1]&n)return!0;if(n&X){let a=new Date(Date.UTC(e,s+1,0)).getUTCDate();for(let l=i+1;l<=a;l++)if(new Date(Date.UTC(e,s,l)).getUTCDay()===o)return!1;return!0}return!1}fromDate(e){if(this.tz!==void 0)if(typeof this.tz=="number")this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes()+this.tz,this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),this.apply();else{let s=_.toTZ(e,this.tz);this.ms=e.getMilliseconds(),this.second=s.s,this.minute=s.i,this.hour=s.h,this.day=s.d,this.month=s.m-1,this.year=s.y}else this.ms=e.getMilliseconds(),this.second=e.getSeconds(),this.minute=e.getMinutes(),this.hour=e.getHours(),this.day=e.getDate(),this.month=e.getMonth(),this.year=e.getFullYear()}fromCronDate(e){this.tz=e.tz,this.year=e.year,this.month=e.month,this.day=e.day,this.hour=e.hour,this.minute=e.minute,this.second=e.second,this.ms=e.ms}apply(){if(this.month>11||this.day>ne[this.month]||this.hour>59||this.minute>59||this.second>59||this.hour<0||this.minute<0||this.second<0){let e=new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms));return this.ms=e.getUTCMilliseconds(),this.second=e.getUTCSeconds(),this.minute=e.getUTCMinutes(),this.hour=e.getUTCHours(),this.day=e.getUTCDate(),this.month=e.getUTCMonth(),this.year=e.getUTCFullYear(),!0}else return!1}fromString(e){if(typeof this.tz=="number"){let s=_.fromTZISO(e);this.ms=s.getUTCMilliseconds(),this.second=s.getUTCSeconds(),this.minute=s.getUTCMinutes(),this.hour=s.getUTCHours(),this.day=s.getUTCDate(),this.month=s.getUTCMonth(),this.year=s.getUTCFullYear(),this.apply()}else return this.fromDate(_.fromTZISO(e,this.tz))}findNext(e,s,i,n){let o=this[s],c;i.lastDayOfMonth&&(this.month!==1?c=ne[this.month]:c=new Date(Date.UTC(this.year,this.month+1,0,0,0,0,0)).getUTCDate());let a=!i.starDOW&&s=="day"?new Date(Date.UTC(this.year,this.month,1,0,0,0,0)).getUTCDay():void 0;for(let l=this[s]+n;l<i[s].length;l++){let f=i[s][l];if(s==="day"&&i.lastDayOfMonth&&l-n==c&&(f=1),s==="day"&&!i.starDOW){let h=i.dayOfWeek[(a+(l-n-1))%7];if(h&&h&B)h=this.isNthWeekdayOfMonth(this.year,this.month,l-n,h)?1:0;else if(h)throw new Error(`CronDate: Invalid value for dayOfWeek encountered. ${h}`);e.legacyMode&&!i.starDOM?f=f||h:f=f&&h}if(f)return this[s]=l-n,o!==this[s]?2:1}return 3}recurse(e,s,i){let n=this.findNext(s,U[i][0],e,U[i][2]);if(n>1){let o=i+1;for(;o<U.length;)this[U[o][0]]=-U[o][2],o++;if(n===3)return this[U[i][1]]++,this[U[i][0]]=-U[i][2],this.apply(),this.recurse(e,s,0);if(this.apply())return this.recurse(e,s,i-1)}return i+=1,i>=U.length?this:this.year>=3e3?null:this.recurse(e,s,i)}increment(e,s,i){return this.second+=s.interval!==void 0&&s.interval>1&&i?s.interval:1,this.ms=0,this.apply(),this.recurse(e,s,0)}getDate(e){return e||this.tz===void 0?new Date(this.year,this.month,this.day,this.hour,this.minute,this.second,this.ms):typeof this.tz=="number"?new Date(Date.UTC(this.year,this.month,this.day,this.hour,this.minute-this.tz,this.second,this.ms)):_.fromTZ(_.tp(this.year,this.month+1,this.day,this.hour,this.minute,this.second,this.tz),!1)}getTime(){return this.getDate(!1).getTime()}};function xt(t){if(t===void 0&&(t={}),delete t.name,t.legacyMode=t.legacyMode===void 0?!0:t.legacyMode,t.paused=t.paused===void 0?!1:t.paused,t.maxRuns=t.maxRuns===void 0?1/0:t.maxRuns,t.catch=t.catch===void 0?!1:t.catch,t.interval=t.interval===void 0?0:parseInt(t.interval.toString(),10),t.utcOffset=t.utcOffset===void 0?void 0:parseInt(t.utcOffset.toString(),10),t.unref=t.unref===void 0?!1:t.unref,t.startAt&&(t.startAt=new M(t.startAt,t.timezone)),t.stopAt&&(t.stopAt=new M(t.stopAt,t.timezone)),t.interval!==null){if(isNaN(t.interval))throw new Error("CronOptions: Supplied value for interval is not a number");if(t.interval<0)throw new Error("CronOptions: Supplied value for interval can not be negative")}if(t.utcOffset!==void 0){if(isNaN(t.utcOffset))throw new Error("CronOptions: Invalid value passed for utcOffset, should be number representing minutes offset from UTC.");if(t.utcOffset<-870||t.utcOffset>870)throw new Error("CronOptions: utcOffset out of bounds.");if(t.utcOffset!==void 0&&t.timezone)throw new Error("CronOptions: Combining 'utcOffset' with 'timezone' is not allowed.")}if(t.unref!==!0&&t.unref!==!1)throw new Error("CronOptions: Unref should be either true, false or undefined(false).");return t}function V(t){return Object.prototype.toString.call(t)==="[object Function]"||typeof t=="function"||t instanceof Function}function yt(t){return V(t)}function vt(t){typeof Deno<"u"&&typeof Deno.unrefTimer<"u"?Deno.unrefTimer(t):t&&typeof t.unref<"u"&&t.unref()}var oe=30*1e3,Y=[],wt=class{name;options;_states;fn;constructor(t,e,s){let i,n;if(V(e))n=e;else if(typeof e=="object")i=e;else if(e!==void 0)throw new Error("Cron: Invalid argument passed for optionsIn. Should be one of function, or object (options).");if(V(s))n=s;else if(typeof s=="object")i=s;else if(s!==void 0)throw new Error("Cron: Invalid argument passed for funcIn. Should be one of function, or object (options).");if(this.name=i?.name,this.options=xt(i),this._states={kill:!1,blocking:!1,previousRun:void 0,currentRun:void 0,once:void 0,currentTimeout:void 0,maxRuns:i?i.maxRuns:void 0,paused:i?i.paused:!1,pattern:new re("* * * * *")},t&&(t instanceof Date||typeof t=="string"&&t.indexOf(":")>0)?this._states.once=new M(t,this.options.timezone||this.options.utcOffset):this._states.pattern=new re(t,this.options.timezone),this.name){if(Y.find(o=>o.name===this.name))throw new Error("Cron: Tried to initialize new named job '"+this.name+"', but name already taken.");Y.push(this)}return n!==void 0&&yt(n)&&(this.fn=n,this.schedule()),this}nextRun(t){let e=this._next(t);return e?e.getDate(!1):null}nextRuns(t,e){this._states.maxRuns!==void 0&&t>this._states.maxRuns&&(t=this._states.maxRuns);let s=[],i=e||this._states.currentRun||void 0;for(;t--&&(i=this.nextRun(i));)s.push(i);return s}getPattern(){return this._states.pattern?this._states.pattern.pattern:void 0}isRunning(){let t=this.nextRun(this._states.currentRun),e=!this._states.paused,s=this.fn!==void 0,i=!this._states.kill;return e&&s&&i&&t!==null}isStopped(){return this._states.kill}isBusy(){return this._states.blocking}currentRun(){return this._states.currentRun?this._states.currentRun.getDate():null}previousRun(){return this._states.previousRun?this._states.previousRun.getDate():null}msToNext(t){let e=this._next(t);return e?t instanceof M||t instanceof Date?e.getTime()-t.getTime():e.getTime()-new M(t).getTime():null}stop(){this._states.kill=!0,this._states.currentTimeout&&clearTimeout(this._states.currentTimeout);let t=Y.indexOf(this);t>=0&&Y.splice(t,1)}pause(){return this._states.paused=!0,!this._states.kill}resume(){return this._states.paused=!1,!this._states.kill}schedule(t){if(t&&this.fn)throw new Error("Cron: It is not allowed to schedule two functions using the same Croner instance.");t&&(this.fn=t);let e=this.msToNext(),s=this.nextRun(this._states.currentRun);return e==null||isNaN(e)||s===null?this:(e>oe&&(e=oe),this._states.currentTimeout=setTimeout(()=>this._checkTrigger(s),e),this._states.currentTimeout&&this.options.unref&&vt(this._states.currentTimeout),this)}async _trigger(t){if(this._states.blocking=!0,this._states.currentRun=new M(void 0,this.options.timezone||this.options.utcOffset),this.options.catch)try{this.fn!==void 0&&await this.fn(this,this.options.context)}catch(e){V(this.options.catch)&&this.options.catch(e,this)}else this.fn!==void 0&&await this.fn(this,this.options.context);this._states.previousRun=new M(t,this.options.timezone||this.options.utcOffset),this._states.blocking=!1}async trigger(){await this._trigger()}runsLeft(){return this._states.maxRuns}_checkTrigger(t){let e=new Date,s=!this._states.paused&&e.getTime()>=t.getTime(),i=this._states.blocking&&this.options.protect;s&&!i?(this._states.maxRuns!==void 0&&this._states.maxRuns--,this._trigger()):s&&i&&V(this.options.protect)&&setTimeout(()=>this.options.protect(this),0),this.schedule()}_next(t){let e=!!(t||this._states.currentRun),s=!1;!t&&this.options.startAt&&this.options.interval&&([t,e]=this._calculatePreviousRun(t,e),s=!t),t=new M(t,this.options.timezone||this.options.utcOffset),this.options.startAt&&t&&t.getTime()<this.options.startAt.getTime()&&(t=this.options.startAt);let i=this._states.once||new M(t,this.options.timezone||this.options.utcOffset);return!s&&i!==this._states.once&&(i=i.increment(this._states.pattern,this.options,e)),this._states.once&&this._states.once.getTime()<=t.getTime()||i===null||this._states.maxRuns!==void 0&&this._states.maxRuns<=0||this._states.kill||this.options.stopAt&&i.getTime()>=this.options.stopAt.getTime()?null:i}_calculatePreviousRun(t,e){let s=new M(void 0,this.options.timezone||this.options.utcOffset),i=t;if(this.options.startAt.getTime()<=s.getTime()){i=this.options.startAt;let n=i.getTime()+this.options.interval*1e3;for(;n<=s.getTime();)i=new M(i,this.options.timezone||this.options.utcOffset).increment(this._states.pattern,this.options,!0),n=i.getTime()+this.options.interval*1e3;e=!0}return i===null&&(i=void 0),[i,e]}};const ae=[{label:"Minute",cron:"* * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}];function Tt(t){const e=q.c(44),{automationId:s}=t,i=ue(),[n,o]=E.useState(!1),[c,a]=E.useState("menu"),[l,f]=E.useState(""),[h,y]=E.useState("");let p;if(e[0]===Symbol.for("react.memo_cache_sentinel")){const u=()=>{a("menu"),f(""),y("")};p=R=>{o(R),R||u()},e[0]=p}else p=e[0];const D=p;let w;e[1]!==i||e[2]!==s?(w=async u=>{try{await i.mutateAsync({automation_id:s,type:"cron",cron_expression:u}),k.success("Trigger added"),D(!1)}catch(R){const z=R,$=z instanceof Error?z.message:"Failed to add trigger";k.error($)}},e[1]=i,e[2]=s,e[3]=w):w=e[3];const x=w;let g;e[4]!==h||e[5]!==x?(g=()=>{if(!h.trim()){k.error("Cron expression is required");return}x(h.trim())},e[4]=h,e[5]=x,e[6]=g):g=e[6];const d=g;let v,j,m,T,b,S,O,A,C,P;if(e[7]!==i||e[8]!==h||e[9]!==d||e[10]!==n||e[11]!==l||e[12]!==x||e[13]!==c){const u=[...ae.map(N=>({label:`Every ${N.label}`,action:()=>x(N.cron)})),{label:"Custom (cron)",action:()=>a("custom-cron")}],R=l.trim()?u.filter(N=>N.label.toLowerCase().includes(l.toLowerCase())):null;j=Ke,P=n,m=D,e[24]===Symbol.for("react.memo_cache_sentinel")?(T=r.jsx(Ge,{asChild:!0,children:r.jsxs(L,{variant:"outline",size:"sm",children:[r.jsx(ht,{size:14}),"Add Trigger"]})}),e[24]=T):T=e[24],v=Qe,O="w-[280px] p-0",A="end";let z;e[25]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsx(ut,{size:14,className:"text-muted-foreground pointer-events-none shrink-0"}),e[25]=z):z=e[25];let $;e[26]===Symbol.for("react.memo_cache_sentinel")?($=N=>f(N.target.value),e[26]=$):$=e[26],e[27]!==l?(C=r.jsx("div",{className:"border-b px-3 py-2",children:r.jsxs("div",{className:"relative flex items-center gap-2",children:[z,r.jsx("input",{type:"text",placeholder:"Search triggers...",value:l,onChange:$,className:"flex-1 text-sm bg-transparent border-0 outline-none placeholder:text-muted-foreground"})]})}),e[27]=l,e[28]=C):C=e[28],b="py-1",S=R?R.length>0?R.map(N=>r.jsx("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:N.action,disabled:i.isPending,children:N.label},N.label)):r.jsx("div",{className:"px-3 py-4 text-sm text-muted-foreground text-center",children:"No triggers found"}):c==="menu"?r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"px-3 py-1.5 text-xs font-medium text-muted-foreground flex items-center gap-1.5",children:[r.jsx(lt,{size:12}),"Scheduled"]}),r.jsxs("button",{type:"button",className:"w-full flex items-center justify-between px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>a("every"),children:[r.jsx("span",{children:"Every..."}),r.jsx(at,{size:14,className:"text-muted-foreground"})]}),r.jsx("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>a("custom-cron"),children:"Custom (cron)"})]}):c==="every"?r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",className:"w-full flex items-center gap-1.5 px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors text-muted-foreground",onClick:()=>a("menu"),children:[r.jsx(ie,{size:14}),"Back"]}),ae.map(N=>r.jsxs("button",{type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors",onClick:()=>x(N.cron),disabled:i.isPending,children:["Every ",N.label]},N.cron))]}):r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",className:"w-full flex items-center gap-1.5 px-3 py-2 text-sm hover:bg-accent cursor-pointer transition-colors text-muted-foreground",onClick:()=>a("menu"),children:[r.jsx(ie,{size:14}),"Back"]}),r.jsxs("div",{className:"px-3 py-2 flex flex-col gap-2",children:[r.jsx(J,{value:h,onChange:N=>y(N.target.value),placeholder:"*/5 * * * *",className:"h-8 text-sm"}),r.jsx("p",{className:"text-xs text-muted-foreground",children:"Minimum interval: 60 seconds between runs."}),r.jsxs(L,{size:"sm",className:"w-full",onClick:d,disabled:i.isPending,children:[i.isPending&&r.jsx(K,{size:14,className:"animate-spin"}),"Add Trigger"]})]})]}),e[7]=i,e[8]=h,e[9]=d,e[10]=n,e[11]=l,e[12]=x,e[13]=c,e[14]=v,e[15]=j,e[16]=m,e[17]=T,e[18]=b,e[19]=S,e[20]=O,e[21]=A,e[22]=C,e[23]=P}else v=e[14],j=e[15],m=e[16],T=e[17],b=e[18],S=e[19],O=e[20],A=e[21],C=e[22],P=e[23];let W;e[29]!==b||e[30]!==S?(W=r.jsx("div",{className:b,children:S}),e[29]=b,e[30]=S,e[31]=W):W=e[31];let I;e[32]!==v||e[33]!==W||e[34]!==O||e[35]!==A||e[36]!==C?(I=r.jsxs(v,{className:O,align:A,children:[C,W]}),e[32]=v,e[33]=W,e[34]=O,e[35]=A,e[36]=C,e[37]=I):I=e[37];let F;return e[38]!==j||e[39]!==m||e[40]!==T||e[41]!==I||e[42]!==P?(F=r.jsxs(j,{open:P,onOpenChange:m,children:[T,I]}),e[38]=j,e[39]=m,e[40]=T,e[41]=I,e[42]=P,e[43]=F):F=e[43],F}function Ct({trigger:t,automationId:e}){const s=$e(),i=ue(),[n,o]=E.useState(!1),[c,a]=E.useState(!1),[l,f]=E.useState(t.cron_expression??""),h=s.isPending||i.isPending,y=async()=>{try{await s.mutateAsync({trigger_id:t.id,automation_id:e}),k.success("Trigger removed")}catch{k.error("Failed to remove trigger")}o(!1)},p=async()=>{const g=l.trim();if(!g){k.error("Cron expression is required");return}if(g===t.cron_expression){a(!1);return}try{await i.mutateAsync({automation_id:e,type:"cron",cron_expression:g}),await s.mutateAsync({trigger_id:t.id,automation_id:e}),k.success("Trigger updated"),a(!1)}catch{k.error("Failed to update trigger")}},D=()=>{f(t.cron_expression??""),a(!1)},w=g=>{g.key==="Enter"&&p(),g.key==="Escape"&&D()},x=t.type==="cron";return r.jsxs(r.Fragment,{children:[r.jsxs(Te,{children:[r.jsx(Z,{children:r.jsx(Ve,{variant:"outline",children:x?"Cron":"Event"})}),r.jsx(Z,{className:"text-muted-foreground font-mono text-xs",children:c?r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(J,{value:l,onChange:g=>f(g.target.value),onKeyDown:w,placeholder:"*/5 * * * *",className:"h-7 text-xs font-mono w-36",autoFocus:!0,disabled:h}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:p,disabled:h,children:h?r.jsx(K,{size:14,className:"animate-spin"}):r.jsx(ot,{size:14,className:"text-green-600"})}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:D,disabled:h,children:r.jsx(dt,{size:14,className:"text-muted-foreground"})})]}):x?t.cron_expression:`${t.event_type} @ ${t.connection_id?.slice(0,8)}...`}),r.jsx(Z,{className:"text-muted-foreground text-xs",children:(()=>{if(!x||!t.cron_expression)return"-";try{const g=new wt(t.cron_expression,{timezone:"UTC"}).nextRun();return g?g.toLocaleString(void 0,{timeZoneName:"short"}):"-"}catch{return"-"}})()}),r.jsx(Z,{children:r.jsxs("div",{className:"flex items-center gap-0.5",children:[x&&!c&&r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>a(!0),children:r.jsx(ct,{size:14,className:"text-muted-foreground"})}),r.jsx(L,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:()=>o(!0),children:r.jsx(Ce,{size:14,className:"text-muted-foreground"})})]})})]}),r.jsx(we,{open:n,onOpenChange:o,children:r.jsxs(ve,{children:[r.jsxs(me,{children:[r.jsx(fe,{children:"Remove Trigger"}),r.jsx(pe,{children:"Are you sure you want to remove this trigger? For event triggers, it will also be disabled on the connection."})]}),r.jsxs(xe,{children:[r.jsx(ge,{children:"Cancel"}),r.jsx(ye,{onClick:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Remove"})]})]})})]})}function jt({automationId:t,automation:e}){const s=Fe(),{createTask:i,setVirtualMcpId:n,setSelectedModel:o,setSelectedMode:c,sendMessage:a,credentialId:l,model:f}=je(),[,h]=de(),y=e.messages?.[0]?.metadata?.tiptapDoc??void 0,[p,D]=E.useState(y),[w,x]=E.useState(y),g=E.useRef(!1),d=u=>{D(u),g.current||(g.current=!0,y||x(u))},v=e.models?.credentialId||l||"",j=e.models?.thinking?.id||f?.modelId||"",m=Oe({defaultValues:{name:e.name,active:e.active,agent_id:e.agent?.id??"",credential_id:v,model_id:j}}),T=m.watch("agent_id"),b=m.watch("credential_id"),S=m.watch("model_id"),{models:O,isLoading:A}=Ee(b||void 0),C=O.find(u=>u.modelId===S)??null,P=async()=>{const u=m.getValues();try{const R=u.credential_id&&u.model_id?u.credential_id:"",z=u.credential_id&&u.model_id?u.model_id:"";return await s.mutateAsync({id:t,name:u.name,active:u.active,agent:{id:u.agent_id,mode:"passthrough"},models:{credentialId:R,thinking:{id:z}},messages:mt(p),temperature:0}),m.reset({...u,credential_id:R,model_id:z}),x(p),k.success("Automation saved"),!0}catch{return k.error("Failed to save automation"),!1}},W=()=>{m.reset(),d(w)},I=m.formState.isDirty||JSON.stringify(p??null)!==JSON.stringify(w??null),F=async()=>{if(I&&!await P())return;if(!p){k.error("No message configured for this automation");return}const u=m.getValues();n(u.agent_id||null),c("passthrough"),C&&b&&o({...C,keyId:b}),h(!0),i(),setTimeout(()=>{a(p,{toolApprovalLevel:"yolo"})},0)};return r.jsxs(r.Fragment,{children:[r.jsx(he,{children:r.jsx(Me,{onSave:async()=>{await P()},onUndo:W,isDirty:I,isSaving:s.isPending})}),r.jsxs("div",{className:"flex flex-col gap-6 p-6",children:[r.jsxs("div",{className:"flex items-center justify-between gap-3",children:[r.jsx(J,{...m.register("name"),placeholder:"Automation name",className:"flex-1 max-w-xs"}),r.jsx(Ae,{control:m.control,name:"active",render:({field:u})=>r.jsx(Je,{checked:u.value,onCheckedChange:u.onChange,className:"cursor-pointer"})})]}),r.jsx(ze,{tiptapDoc:p,setTiptapDoc:d,placeholder:"What should this automation do?",children:r.jsxs("div",{className:"rounded-xl border border-border min-h-[120px] flex flex-col",children:[r.jsx(Pe,{virtualMcpId:T||null}),r.jsxs("div",{className:"flex items-center justify-between p-2.5",children:[r.jsx("div",{className:"flex items-center gap-1.5 min-w-0 overflow-hidden",children:r.jsx(Ue,{selectedVirtualMcpId:T||null,onVirtualMcpChange:u=>m.setValue("agent_id",u??"",{shouldDirty:!0}),placeholder:"Select Agent"})}),r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Ie,{model:C,isLoading:A,credentialId:b||null,onCredentialChange:u=>{m.setValue("credential_id",u??"",{shouldDirty:!0}),m.setValue("model_id","",{shouldDirty:!0})},onModelChange:u=>m.setValue("model_id",u.modelId,{shouldDirty:!0}),placeholder:"Model"}),r.jsx(L,{type:"button",variant:"default",size:"icon",className:"size-8 rounded-full",onClick:F,title:"Test Automation",children:r.jsx(nt,{size:20})})]})]})]})}),r.jsxs("div",{className:"flex flex-col gap-3 border-t border-border pt-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("h3",{className:"text-sm font-medium",children:"Triggers"}),r.jsx(Tt,{automationId:t})]}),e.triggers.length===0?r.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No triggers configured. Add a cron schedule or event trigger."}):r.jsxs(Xe,{children:[r.jsx(et,{children:r.jsxs(Te,{children:[r.jsx(H,{children:"Type"}),r.jsx(H,{children:"Configuration"}),r.jsx(H,{children:"Next Run"}),r.jsx(H,{className:"w-12"})]})}),r.jsx(tt,{children:e.triggers.map(u=>r.jsx(Ct,{trigger:u,automationId:t},u.id))})]})]}),r.jsxs("div",{className:"flex flex-col gap-3 border-t border-border pt-6",children:[r.jsx("h3",{className:"text-sm font-medium",children:"Run History"}),r.jsx(Dt,{automationId:t,triggerIds:e.triggers.map(u=>u.id)})]})]})]})}function bt(t,e,s){const i=q.c(13);let n;i[0]!==t?(n={connectionId:rt,orgId:t},i[0]=t,i[1]=n):n=i[1];const o=it(n);let c;i[2]!==e||i[3]!==t||i[4]!==s?(c=Q.automationRuns(t,e,s),i[2]=e,i[3]=t,i[4]=s,i[5]=c):c=i[5];let a;i[6]!==o||i[7]!==s?(a=async()=>{if(!o)throw new Error("MCP client not available");const h=await o.callTool({name:"COLLECTION_THREADS_LIST",arguments:{where:{trigger_ids:s},limit:20}});return(h.structuredContent??h).items??[]},i[6]=o,i[7]=s,i[8]=a):a=i[8];const l=s.length>0;let f;return i[9]!==c||i[10]!==a||i[11]!==l?(f={queryKey:c,queryFn:a,enabled:l},i[9]=c,i[10]=a,i[11]=l,i[12]=f):f=i[12],st(f)}function Dt(t){const e=q.c(22),{automationId:s,triggerIds:i}=t,{org:n}=le(),{switchToTask:o}=je(),[,c]=de(),a=ke(),{data:l,isLoading:f}=bt(n.id,s,i),h=i.length>0;let y;e[0]!==s||e[1]!==n.id||e[2]!==a||e[3]!==l||e[4]!==i?(y=d=>{const v=d.subject,j=l??[];j.find(T=>T.id===v)?a.setQueryData(Q.automationRuns(n.id,s,i),j.map(T=>T.id===v?{...T,status:d.data.status,updated_at:new Date().toISOString()}:T)):a.invalidateQueries({queryKey:Q.automationRuns(n.id,s,i)})},e[0]=s,e[1]=n.id,e[2]=a,e[3]=l,e[4]=i,e[5]=y):y=e[5];let p;if(e[6]!==n.id||e[7]!==h||e[8]!==y?(p={orgId:n.id,enabled:h,onTaskStatus:y},e[6]=n.id,e[7]=h,e[8]=y,e[9]=p):p=e[9],pt(p),f){let d;return e[10]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx("div",{className:"flex items-center justify-center py-8",children:r.jsx(K,{size:18,className:"animate-spin text-muted-foreground"})}),e[10]=d):d=e[10],d}if(!l||l.length===0){let d;return e[11]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ce,{title:"No run history",description:"Run history will appear here when the automation has been triggered."}),e[11]=d):d=e[11],d}let D;e[12]!==c||e[13]!==o?(D=async d=>{await o(d),c(!0)},e[12]=c,e[13]=o,e[14]=D):D=e[14];const w=D;let x;if(e[15]!==w||e[16]!==l){let d;e[18]!==w?(d=v=>{const j=te[v.status]??te.completed,m=j.icon;return r.jsxs("button",{type:"button",className:"flex items-center gap-3 px-1 py-2.5 text-left hover:bg-accent/50 transition-colors cursor-pointer rounded-sm",onClick:()=>w(v.id),children:[r.jsx(m,{size:16,className:j.iconClassName}),r.jsx("span",{className:"flex-1 min-w-0 text-sm truncate",children:v.title}),r.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:ft(new Date(v.updated_at),{addSuffix:!0})})]},v.id)},e[18]=w,e[19]=d):d=e[19],x=l.map(d),e[15]=w,e[16]=l,e[17]=x}else x=e[17];let g;return e[20]!==x?(g=r.jsx("div",{className:"flex flex-col divide-y divide-border",children:x}),e[20]=x,e[21]=g):g=e[21],g}function ai(){const t=q.c(36);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={strict:!1},t[0]=e):e=t[0];const{automationId:s}=Ne(e),i=_e(),{org:n}=le(),{data:o,isLoading:c}=We(s),a=Le(),[l,f]=E.useState(!1);let h;t[1]!==s||t[2]!==a||t[3]!==i||t[4]!==n?(h=async()=>{try{await a.mutateAsync(s),k.success("Automation deleted"),i({to:"/$org/$project/automations",params:{org:n.slug,project:ee}})}catch{k.error("Failed to delete automation")}f(!1)},t[1]=s,t[2]=a,t[3]=i,t[4]=n,t[5]=h):h=t[5];const y=h;if(c){let C;return t[6]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx("div",{className:"flex items-center justify-center h-full",children:r.jsx(K,{size:24,className:"animate-spin text-muted-foreground"})}),t[6]=C):C=t[6],C}if(!o){let C;return t[7]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ce,{title:"Automation not found",description:"This automation may have been deleted."}),t[7]=C):C=t[7],C}let p;t[8]!==n.slug?(p=r.jsx(se,{children:r.jsx(Be,{asChild:!0,children:r.jsx(Se,{to:"/$org/$project/automations",params:{org:n.slug,project:ee},children:"Automations"})})}),t[8]=n.slug,t[9]=p):p=t[9];let D;t[10]===Symbol.for("react.memo_cache_sentinel")?(D=r.jsx(Ze,{}),t[10]=D):D=t[10];let w;t[11]!==o.name?(w=r.jsx(se,{children:r.jsx(He,{children:o.name})}),t[11]=o.name,t[12]=w):w=t[12];let x;t[13]!==p||t[14]!==w?(x=r.jsx(Ye,{children:r.jsxs(qe,{children:[p,D,w]})}),t[13]=p,t[14]=w,t[15]=x):x=t[15];const g=x;let d;t[16]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(he,{children:r.jsxs(L,{variant:"ghost",size:"sm",className:"h-7 text-destructive hover:text-destructive",onClick:()=>f(!0),children:[r.jsx(Ce,{size:14}),"Delete"]})}),t[16]=d):d=t[16];let v;t[17]!==o||t[18]!==s?(v=r.jsx(jt,{automationId:s,automation:o},s),t[17]=o,t[18]=s,t[19]=v):v=t[19];let j;t[20]===Symbol.for("react.memo_cache_sentinel")?(j=r.jsx(fe,{children:"Delete Automation"}),t[20]=j):j=t[20];let m;t[21]!==o.name?(m=r.jsxs(me,{children:[j,r.jsxs(pe,{children:['Are you sure you want to delete "',o.name,'"? This action cannot be undone.']})]}),t[21]=o.name,t[22]=m):m=t[22];let T;t[23]===Symbol.for("react.memo_cache_sentinel")?(T=r.jsx(ge,{children:"Cancel"}),t[23]=T):T=t[23];let b;t[24]!==y?(b=r.jsxs(xe,{children:[T,r.jsx(ye,{onClick:y,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]}),t[24]=y,t[25]=b):b=t[25];let S;t[26]!==b||t[27]!==m?(S=r.jsxs(ve,{children:[m,b]}),t[26]=b,t[27]=m,t[28]=S):S=t[28];let O;t[29]!==l||t[30]!==S?(O=r.jsx(we,{open:l,onOpenChange:f,children:S}),t[29]=l,t[30]=S,t[31]=O):O=t[31];let A;return t[32]!==g||t[33]!==O||t[34]!==v?(A=r.jsxs(Re,{breadcrumb:g,children:[d,v,O]}),t[32]=g,t[33]=O,t[34]=v,t[35]=A):A=t[35],A}export{ai as default};
@@ -1 +1 @@
1
- import{e as y,u as D,r as T,O as c,j as e,B as d,w as m}from"./index-Cwu-wOxG.js";import{E as P}from"./empty-state-d0O2_gov.js";import{P as a}from"./index-D3ZjzgLI.js";import{u as B,a as w,b as z}from"./use-automations-CmBA5BIp.js";import{U as I}from"./user-BGkfXqqY.js";import{f as k,a as $,b as H,c as E,d as L,e as R,A as S,h as _}from"./alert-dialog-8u4Gavgl.js";import{B as O}from"./badge-DCMHfnpB.js";import{B as F,a as M,b as U,c as G}from"./breadcrumb-BY-ewVy_.js";import{e as J,a as q,b as g,T as r,d as K,c as i}from"./table-VU_jTACA.js";import{i as u}from"./Loading01-CaUjLzqI.js";import{s as p}from"./Plus-BTdrhN0K.js";import{s as Q}from"./Trash01-CfDSVESG.js";import"./use-local-storage-DOvt8Wru.js";import"./useQuery-C1C5N5ZT.js";import"./useMutation-CoOETV22.js";import"./tooltip-CDZrjN0Z.js";import"./index-CtSV8hQg.js";import"./constants-Cb-aLMXn.js";import"./avatar-DU2bTG4C.js";import"./ChevronRight-DzDKImyB.js";function je(){const x=y(),{org:f,locator:A}=D(),{data:n,isLoading:b}=B(),t=w(),v=z(),[o,l]=T.useState(null),h=A.split("/")[0]??f.slug??c,j=async()=>{try{const s=await t.mutateAsync({name:"New Automation",agent:{id:"",mode:"passthrough"},messages:[],models:{credentialId:"",thinking:{id:""}},temperature:.5,active:!0});x({to:"/$org/$project/automations/$automationId",params:{org:h,project:c,automationId:s.id}})}catch{m.error("Failed to create automation")}},C=async()=>{if(o)try{await v.mutateAsync(o.id),m.success("Automation deleted")}catch{m.error("Failed to delete automation")}finally{l(null)}};return e.jsxs(a,{children:[e.jsxs(a.Header,{children:[e.jsx(a.Header.Left,{children:e.jsx(F,{children:e.jsx(M,{children:e.jsx(U,{children:e.jsx(G,{children:"Automations"})})})})}),e.jsx(a.Header.Right,{children:e.jsxs(d,{size:"sm",onClick:j,disabled:t.isPending,children:[t.isPending?e.jsx(u,{size:14,className:"animate-spin"}):e.jsx(p,{size:14}),"Create Automation"]})})]}),e.jsxs(a.Content,{children:[b?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(u,{size:24,className:"animate-spin text-muted-foreground"})}):!n||n.length===0?e.jsx("div",{className:"flex items-center h-full",children:e.jsx(P,{title:"No automations yet",description:"Automations run tasks on a schedule or in response to events.",actions:e.jsxs(d,{size:"sm",onClick:j,disabled:t.isPending,children:[t.isPending?e.jsx(u,{size:14,className:"animate-spin"}):e.jsx(p,{size:14}),"Create Automation"]})})}):e.jsx("div",{className:"p-4",children:e.jsxs(J,{children:[e.jsx(q,{children:e.jsxs(g,{children:[e.jsx(r,{children:"Name"}),e.jsx(r,{children:"Status"}),e.jsx(r,{children:"Triggers"}),e.jsx(r,{children:"Created by"}),e.jsx(r,{className:"w-12"})]})}),e.jsx(K,{children:n.map(s=>e.jsxs(g,{className:"cursor-pointer",onClick:()=>x({to:"/$org/$project/automations/$automationId",params:{org:h,project:c,automationId:s.id}}),children:[e.jsx(i,{className:"font-medium",children:s.name}),e.jsx(i,{children:e.jsx(O,{variant:s.active?"default":"secondary",children:s.active?"Active":"Inactive"})}),e.jsx(i,{className:"text-muted-foreground",children:s.trigger_count}),e.jsx(i,{children:e.jsx(I,{id:s.created_by})}),e.jsx(i,{children:e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:N=>{N.stopPropagation(),l({id:s.id,name:s.name})},children:e.jsx(Q,{size:14,className:"text-muted-foreground"})})})]},s.id))})]})}),e.jsx(k,{open:!!o,onOpenChange:s=>!s&&l(null),children:e.jsxs($,{children:[e.jsxs(H,{children:[e.jsx(E,{children:"Delete Automation"}),e.jsxs(L,{children:['Are you sure you want to delete "',o?.name,'"? This action cannot be undone. All triggers will be removed.']})]}),e.jsxs(R,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(_,{onClick:C,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})})]})]})}export{je as default};
1
+ import{e as y,u as D,r as T,O as c,j as e,B as d,w as m}from"./index-BQleIDTt.js";import{E as P}from"./empty-state-CwR-V_Cp.js";import{P as a}from"./index-B5yIb9zu.js";import{u as B,a as w,b as z}from"./use-automations-BKe0uXVK.js";import{U as I}from"./user-ByxNJexL.js";import{f as k,a as $,b as H,c as E,d as L,e as R,A as S,h as _}from"./alert-dialog-D9yW1xTi.js";import{B as O}from"./badge-8URjJAhe.js";import{B as F,a as M,b as U,c as G}from"./breadcrumb-B4M-xjAh.js";import{e as J,a as q,b as g,T as r,d as K,c as i}from"./table-BEAvNlPV.js";import{i as u}from"./Loading01-CI9XW1P8.js";import{s as p}from"./Plus-C3h0mQix.js";import{s as Q}from"./Trash01-Uzl63r_m.js";import"./use-local-storage-F9nFwQtJ.js";import"./useQuery-Z4jdNSdH.js";import"./useMutation-BzjLvWgQ.js";import"./tooltip-B6t-kUHF.js";import"./index-PZJmA1E3.js";import"./constants-CFDpCrfp.js";import"./avatar-B8Mua9Kd.js";import"./ChevronRight-CGHgArrz.js";function je(){const x=y(),{org:f,locator:A}=D(),{data:n,isLoading:b}=B(),t=w(),v=z(),[o,l]=T.useState(null),h=A.split("/")[0]??f.slug??c,j=async()=>{try{const s=await t.mutateAsync({name:"New Automation",agent:{id:"",mode:"passthrough"},messages:[],models:{credentialId:"",thinking:{id:""}},temperature:.5,active:!0});x({to:"/$org/$project/automations/$automationId",params:{org:h,project:c,automationId:s.id}})}catch{m.error("Failed to create automation")}},C=async()=>{if(o)try{await v.mutateAsync(o.id),m.success("Automation deleted")}catch{m.error("Failed to delete automation")}finally{l(null)}};return e.jsxs(a,{children:[e.jsxs(a.Header,{children:[e.jsx(a.Header.Left,{children:e.jsx(F,{children:e.jsx(M,{children:e.jsx(U,{children:e.jsx(G,{children:"Automations"})})})})}),e.jsx(a.Header.Right,{children:e.jsxs(d,{size:"sm",onClick:j,disabled:t.isPending,children:[t.isPending?e.jsx(u,{size:14,className:"animate-spin"}):e.jsx(p,{size:14}),"Create Automation"]})})]}),e.jsxs(a.Content,{children:[b?e.jsx("div",{className:"flex items-center justify-center h-64",children:e.jsx(u,{size:24,className:"animate-spin text-muted-foreground"})}):!n||n.length===0?e.jsx("div",{className:"flex items-center h-full",children:e.jsx(P,{title:"No automations yet",description:"Automations run tasks on a schedule or in response to events.",actions:e.jsxs(d,{size:"sm",onClick:j,disabled:t.isPending,children:[t.isPending?e.jsx(u,{size:14,className:"animate-spin"}):e.jsx(p,{size:14}),"Create Automation"]})})}):e.jsx("div",{className:"p-4",children:e.jsxs(J,{children:[e.jsx(q,{children:e.jsxs(g,{children:[e.jsx(r,{children:"Name"}),e.jsx(r,{children:"Status"}),e.jsx(r,{children:"Triggers"}),e.jsx(r,{children:"Created by"}),e.jsx(r,{className:"w-12"})]})}),e.jsx(K,{children:n.map(s=>e.jsxs(g,{className:"cursor-pointer",onClick:()=>x({to:"/$org/$project/automations/$automationId",params:{org:h,project:c,automationId:s.id}}),children:[e.jsx(i,{className:"font-medium",children:s.name}),e.jsx(i,{children:e.jsx(O,{variant:s.active?"default":"secondary",children:s.active?"Active":"Inactive"})}),e.jsx(i,{className:"text-muted-foreground",children:s.trigger_count}),e.jsx(i,{children:e.jsx(I,{id:s.created_by})}),e.jsx(i,{children:e.jsx(d,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:N=>{N.stopPropagation(),l({id:s.id,name:s.name})},children:e.jsx(Q,{size:14,className:"text-muted-foreground"})})})]},s.id))})]})}),e.jsx(k,{open:!!o,onOpenChange:s=>!s&&l(null),children:e.jsxs($,{children:[e.jsxs(H,{children:[e.jsx(E,{children:"Delete Automation"}),e.jsxs(L,{children:['Are you sure you want to delete "',o?.name,'"? This action cannot be undone. All triggers will be removed.']})]}),e.jsxs(R,{children:[e.jsx(S,{children:"Cancel"}),e.jsx(_,{onClick:C,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:"Delete"})]})]})})]})]})}export{je as default};
@@ -1 +1 @@
1
- import{r as R,c as j,j as i,z as m,R as I,aS as $,aT as L,aU as M}from"./index-Cwu-wOxG.js";const U=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));U.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const V=I("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=I("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),Z=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function G(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(V({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(U,{size:Z(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:m(D({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(W,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function H(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(G,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}H.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(V({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{H as A};
1
+ import{r as R,c as j,j as i,z as m,R as V,aT as $,aU as L,aV as M}from"./index-BQleIDTt.js";const I=({size:a=24,color:e="currentColor",...s})=>R.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},R.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));I.displayName="User01";function O(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("relative flex size-8 shrink-0 overflow-hidden rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(M,{"data-slot":"avatar",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function T(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("aspect-square size-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx($,{"data-slot":"avatar-image",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}function W(a){const e=j.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let o;e[3]!==s?(o=m("bg-muted flex size-full items-center justify-center rounded-full",s),e[3]=s,e[4]=o):o=e[4];let r;return e[5]!==t||e[6]!==o?(r=i.jsx(L,{"data-slot":"avatar-fallback",className:o,...t}),e[5]=t,e[6]=o,e[7]=r):r=e[7],r}const S=["drop-shadow-lg bg-gradient-to-br from-red-100 to-red-300 text-red-800 shadow-lg shadow-red-300/40 ring-1 ring-red-300/30","drop-shadow-lg bg-gradient-to-br from-lime-100 to-lime-300 text-lime-800 shadow-lg shadow-lime-300/40 ring-1 ring-lime-300/30","drop-shadow-lg bg-gradient-to-br from-emerald-100 to-emerald-300 text-emerald-800 shadow-lg shadow-emerald-300/40 ring-1 ring-emerald-300/30","drop-shadow-lg bg-gradient-to-br from-orange-100 to-orange-300 text-orange-800 shadow-lg shadow-orange-300/40 ring-1 ring-orange-300/30","drop-shadow-lg bg-gradient-to-br from-amber-100 to-amber-300 text-amber-800 shadow-lg shadow-amber-300/40 ring-1 ring-amber-300/30","drop-shadow-lg bg-gradient-to-br from-yellow-100 to-yellow-300 text-yellow-800 shadow-lg shadow-yellow-300/40 ring-1 ring-yellow-300/30","drop-shadow-lg bg-gradient-to-br from-green-100 to-green-300 text-green-800 shadow-lg shadow-green-300/40 ring-1 ring-green-300/30","drop-shadow-lg bg-gradient-to-br from-teal-100 to-teal-300 text-teal-800 shadow-lg shadow-teal-300/40 ring-1 ring-teal-300/30","drop-shadow-lg bg-gradient-to-br from-cyan-100 to-cyan-300 text-cyan-800 shadow-lg shadow-cyan-300/40 ring-1 ring-cyan-300/30","drop-shadow-lg bg-gradient-to-br from-sky-100 to-sky-300 text-sky-800 shadow-lg shadow-sky-300/40 ring-1 ring-sky-300/30","drop-shadow-lg bg-gradient-to-br from-blue-100 to-blue-300 text-blue-800 shadow-lg shadow-blue-300/40 ring-1 ring-blue-300/30","drop-shadow-lg bg-gradient-to-br from-indigo-100 to-indigo-300 text-indigo-800 shadow-lg shadow-indigo-300/40 ring-1 ring-indigo-300/30","drop-shadow-lg bg-gradient-to-br from-violet-100 to-violet-300 text-violet-800 shadow-lg shadow-violet-300/40 ring-1 ring-violet-300/30","drop-shadow-lg bg-gradient-to-br from-purple-100 to-purple-300 text-purple-800 shadow-lg shadow-purple-300/40 ring-1 ring-purple-300/30","drop-shadow-lg bg-gradient-to-br from-fuchsia-100 to-fuchsia-300 text-fuchsia-800 shadow-lg shadow-fuchsia-300/40 ring-1 ring-fuchsia-300/30","drop-shadow-lg bg-gradient-to-br from-pink-100 to-pink-300 text-pink-800 shadow-lg shadow-pink-300/40 ring-1 ring-pink-300/30","drop-shadow-lg bg-gradient-to-br from-rose-100 to-rose-300 text-rose-800 shadow-lg shadow-rose-300/40 ring-1 ring-rose-300/30"],_="drop-shadow-lg text-muted-foreground bg-muted shadow-lg";function B(a){let e=0;for(let t=0;t<a.length;t++)e=a.charCodeAt(t)+((e<<5)-e);const s=Math.abs(e)%S.length;return S[s]}const U=V("border border-border",{variants:{shape:{circle:"rounded-full",square:""},size:{"3xs":"w-3 h-3 text-[7px] font-semibold","2xs":"w-4 h-4 text-[9px] font-semibold",xs:"w-6 h-6 text-sm font-semibold",sm:"w-8 h-8 text-lg font-semibold",base:"w-10 h-10 text-2xl font-semibold",lg:"w-12 h-12 text-3xl font-semibold",xl:"w-16 h-16 text-4xl font-semibold","2xl":"w-20 h-20 text-5xl font-semibold","3xl":"w-32 h-32 text-7xl font-semibold"}},compoundVariants:[{shape:"square",size:"xs",class:"rounded-lg"},{shape:"square",size:"sm",class:"rounded-xl"},{shape:"square",size:"base",class:"rounded-xl"},{shape:"square",size:"lg",class:"rounded-xl"},{shape:"square",size:"xl",class:"rounded-2xl"},{shape:"square",size:"2xl",class:"rounded-3xl"},{shape:"square",size:"3xl",class:"rounded-[40px]"}],defaultVariants:{shape:"square",size:"base"}}),D=V("",{variants:{objectFit:{contain:"object-contain",cover:"object-cover"}},defaultVariants:{objectFit:"cover"}}),Z=a=>{const e={"3xs":8,"2xs":8,xs:12,sm:16,base:24,lg:28,xl:36,"2xl":48,"3xl":80};return e[a]||e.base};function G(a){const e=j.c(35);let s,t,o,r,n,d,g,l;e[0]!==a?({url:l,fallback:t,shape:r,size:n,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,[f,x]=R.useState(!1);let F;e:{if(typeof t=="string"){let c;e[9]!==t?(c=t.trim().slice(0,2).toUpperCase(),e[9]=t,e[10]=c):c=e[10],F=c;break e}F=t}const C=F;let z;e:{if(k){z=_;break e}if(typeof t=="string"){let c;e[11]!==t?(c=B(t),e[11]=t,e[12]=c):c=e[12],z=c;break e}z=S[0]}const y=z;let N;e[13]!==l?(N=l?.startsWith("icon://"),e[13]=l,e[14]=N):N=e[14];const p=N;let q;e[15]!==p||e[16]!==l?(q=p?l?.replace("icon://",""):void 0,e[15]=p,e[16]=l,e[17]=q):q=e[17];const E=q;let w;e[18]!==s||e[19]!==b||e[20]!==h?(w=m(U({shape:b,size:h}),s),e[18]=s,e[19]=b,e[20]=h,e[21]=w):w=e[21];let v;e[22]!==y||e[23]!==C||e[24]!==E||e[25]!==f||e[26]!==p||e[27]!==u||e[28]!==h||e[29]!==l?(v=p&&E?i.jsx("div",{className:m("flex items-center justify-center w-full h-full",y),children:i.jsx(I,{size:Z(h)})}):i.jsxs(i.Fragment,{children:[l&&!f&&i.jsx(T,{src:l,loading:"lazy",alt:"Avatar",className:m(D({objectFit:u})),onError:()=>x(!0)}),(!l||f)&&i.jsx(W,{className:m(y,"rounded-none"),children:C})]}),e[22]=y,e[23]=C,e[24]=E,e[25]=f,e[26]=p,e[27]=u,e[28]=h,e[29]=l,e[30]=v):v=e[30];let A;return e[31]!==o||e[32]!==v||e[33]!==w?(A=i.jsx(O,{className:w,...o,children:v}),e[31]=o,e[32]=v,e[33]=w,e[34]=A):A=e[34],A}function H(a){const e=j.c(18);let s,t,o,r,n,d,g,l;e[0]!==a?({shape:r,size:n,url:l,fallback:t,objectFit:d,className:s,muted:g,...o}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=o,e[4]=r,e[5]=n,e[6]=d,e[7]=g,e[8]=l):(s=e[1],t=e[2],o=e[3],r=e[4],n=e[5],d=e[6],g=e[7],l=e[8]);const b=r===void 0?"square":r,h=n===void 0?"base":n,u=d===void 0?"cover":d,k=g===void 0?!1:g,f=h??"base";let x;return e[9]!==s||e[10]!==t||e[11]!==k||e[12]!==u||e[13]!==o||e[14]!==b||e[15]!==f||e[16]!==l?(x=i.jsx(G,{shape:b,url:l,fallback:t,size:f,objectFit:u,className:s,muted:k,...o}),e[9]=s,e[10]=t,e[11]=k,e[12]=u,e[13]=o,e[14]=b,e[15]=f,e[16]=l,e[17]=x):x=e[17],x}H.Skeleton=function({shape:e="square",size:s="base",className:t}){return i.jsx("div",{className:m(U({shape:e,size:s}),"bg-muted animate-pulse",t)})};export{H as A};
@@ -1 +1 @@
1
- import{c as d,z as u,j as l,H as v,R as g}from"./index-Cwu-wOxG.js";const b=g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=u(b({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{x as B};
1
+ import{c as d,z as u,j as l,H as v,R as g}from"./index-BQleIDTt.js";const b=g("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",success:"border-transparent bg-success text-success-foreground [a&]:hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function x(o){const e=d.c(12);let r,s,a,t;e[0]!==o?({className:r,variant:t,asChild:a,...s}=o,e[0]=o,e[1]=r,e[2]=s,e[3]=a,e[4]=t):(r=e[1],s=e[2],a=e[3],t=e[4]);const c=(a===void 0?!1:a)?v:"span";let i;e[5]!==r||e[6]!==t?(i=u(b({variant:t}),r),e[5]=r,e[6]=t,e[7]=i):i=e[7];let n;return e[8]!==c||e[9]!==s||e[10]!==i?(n=l.jsx(c,{"data-slot":"badge",className:i,...s}),e[8]=c,e[9]=s,e[10]=i,e[11]=n):n=e[11],n}export{x as B};
@@ -1 +1 @@
1
- import"./index-Cwu-wOxG.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
1
+ import"./index-BQleIDTt.js";function a(o){return{isImplementedBy:c=>{for(const e of o){const r=typeof e.name=="string"?new RegExp(`^${e.name}$`):e.name,t=c.find(i=>r.test(i.name));if(!(!t&&e.opt)&&!t)return!1}return!0}}}function s(o,c){const e=o.tools;if(!e||e.length===0)return!1;const r=e.map(n=>({name:n.name,inputSchema:n.inputSchema})),t=c.map(n=>({name:n.name,inputSchema:n.inputSchema,opt:n.opt}));return a(t).isImplementedBy(r)}export{a,s as c};
@@ -1 +1 @@
1
- import{c,z as m,j as o,H as u}from"./index-Cwu-wOxG.js";import{i as d}from"./ChevronRight-DzDKImyB.js";function b(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?u:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==l||e[7]!==s||e[8]!==i?(n=o.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=n):n=e[9],n}function j(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function h(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??o.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let n;return e[8]!==s||e[9]!==l||e[10]!==i?(n=o.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=n):n=e[11],n}export{b as B,x as a,N as b,j as c,g as d,h as e};
1
+ import{c,z as m,j as o,H as u}from"./index-BQleIDTt.js";import{i as d}from"./ChevronRight-CGHgArrz.js";function b(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("min-w-0 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function x(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("flex items-center gap-1.5 text-sm sm:gap-2 overflow-hidden",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("ol",{"data-slot":"breadcrumb-list",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function N(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("inline-flex items-center gap-1.5 min-w-0",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("li",{"data-slot":"breadcrumb-item",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function g(r){const e=c.c(10);let a,t,s;e[0]!==r?({asChild:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);const l=a?u:"a";let i;e[4]!==t?(i=m("hover:text-foreground transition-colors truncate",t),e[4]=t,e[5]=i):i=e[5];let n;return e[6]!==l||e[7]!==s||e[8]!==i?(n=o.jsx(l,{"data-slot":"breadcrumb-link",className:i,...s}),e[6]=l,e[7]=s,e[8]=i,e[9]=n):n=e[9],n}function j(r){const e=c.c(8);let a,t;e[0]!==r?({className:a,...t}=r,e[0]=r,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let s;e[3]!==a?(s=m("text-foreground font-medium truncate",a),e[3]=a,e[4]=s):s=e[4];let l;return e[5]!==t||e[6]!==s?(l=o.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:s,...t}),e[5]=t,e[6]=s,e[7]=l):l=e[7],l}function h(r){const e=c.c(12);let a,t,s;e[0]!==r?({children:a,className:t,...s}=r,e[0]=r,e[1]=a,e[2]=t,e[3]=s):(a=e[1],t=e[2],s=e[3]);let l;e[4]!==t?(l=m("[&>svg]:size-3.5 text-muted-foreground opacity-50 list-none shrink-0",t),e[4]=t,e[5]=l):l=e[5];let i;e[6]!==a?(i=a??o.jsx(d,{}),e[6]=a,e[7]=i):i=e[7];let n;return e[8]!==s||e[9]!==l||e[10]!==i?(n=o.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:l,...s,children:i}),e[8]=s,e[9]=l,e[10]=i,e[11]=n):n=e[11],n}export{b as B,x as a,N as b,j as c,g as d,h as e};
@@ -1 +1 @@
1
- import{c as o,z as d,j as c}from"./index-Cwu-wOxG.js";function n(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75 shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{n as C,m as a,p as b,u as c,f as d};
1
+ import{c as o,z as d,j as c}from"./index-BQleIDTt.js";function n(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("bg-card text-card-foreground hover:bg-accent/50 flex flex-col gap-6 rounded-xl border border-border/75 shadow-xs",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function f(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto]",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function p(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("leading-none font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function u(r){const e=o.c(8);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=d("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=c.jsx("div",{"data-slot":"card-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function m(r){const e=o.c(4);let t;e[0]!==r?({...t}=r,e[0]=r,e[1]=t):t=e[1];let s;return e[2]!==t?(s=c.jsx("div",{"data-slot":"card-content",...t}),e[2]=t,e[3]=s):s=e[3],s}export{n as C,m as a,p as b,u as c,f as d};