mage-ai 0.9.58__py3-none-any.whl → 0.9.59__py3-none-any.whl

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.

Potentially problematic release.


This version of mage-ai might be problematic. Click here for more details.

Files changed (682) hide show
  1. mage_ai/api/logging.py +11 -7
  2. mage_ai/api/policies/BlockPolicy.py +1 -0
  3. mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
  4. mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
  5. mage_ai/api/policies/GitBranchPolicy.py +8 -1
  6. mage_ai/api/policies/GitFilePolicy.py +1 -0
  7. mage_ai/api/policies/PipelinePolicy.py +2 -0
  8. mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
  9. mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
  10. mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
  11. mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
  12. mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
  13. mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
  14. mage_ai/api/presenters/GitBranchPresenter.py +2 -0
  15. mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
  16. mage_ai/api/presenters/PipelinePresenter.py +5 -5
  17. mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
  18. mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
  19. mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
  20. mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
  21. mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
  22. mage_ai/api/resources/BlockResource.py +110 -80
  23. mage_ai/api/resources/CommandCenterItemResource.py +29 -0
  24. mage_ai/api/resources/FileResource.py +15 -1
  25. mage_ai/api/resources/FolderResource.py +2 -1
  26. mage_ai/api/resources/GitBranchResource.py +183 -108
  27. mage_ai/api/resources/GitCustomBranchResource.py +9 -2
  28. mage_ai/api/resources/GitFileResource.py +26 -13
  29. mage_ai/api/resources/KernelResource.py +9 -1
  30. mage_ai/api/resources/LogResource.py +1 -1
  31. mage_ai/api/resources/OauthResource.py +4 -5
  32. mage_ai/api/resources/PipelineResource.py +71 -38
  33. mage_ai/api/resources/PipelineRunResource.py +7 -2
  34. mage_ai/api/resources/PullRequestResource.py +12 -3
  35. mage_ai/api/resources/SearchResultResource.py +4 -4
  36. mage_ai/api/resources/VersionControlBranchResource.py +85 -0
  37. mage_ai/api/resources/VersionControlFileResource.py +65 -0
  38. mage_ai/api/resources/VersionControlProjectResource.py +46 -0
  39. mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
  40. mage_ai/authentication/oauth/constants.py +13 -16
  41. mage_ai/authentication/operation_history/models.py +11 -32
  42. mage_ai/authentication/operation_history/utils.py +14 -14
  43. mage_ai/authentication/permissions/constants.py +5 -0
  44. mage_ai/authentication/providers/active_directory.py +2 -2
  45. mage_ai/authentication/providers/bitbucket.py +2 -2
  46. mage_ai/authentication/providers/constants.py +6 -12
  47. mage_ai/authentication/providers/ghe.py +2 -2
  48. mage_ai/authentication/providers/google.py +2 -2
  49. mage_ai/authentication/providers/okta.py +2 -2
  50. mage_ai/cache/base.py +11 -3
  51. mage_ai/cache/block.py +116 -32
  52. mage_ai/cache/block_action_object/__init__.py +52 -43
  53. mage_ai/cache/constants.py +1 -0
  54. mage_ai/cache/file.py +114 -0
  55. mage_ai/cache/pipeline.py +34 -8
  56. mage_ai/cache/tag.py +51 -10
  57. mage_ai/cache/utils.py +44 -3
  58. mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
  59. mage_ai/command_center/__init__.py +0 -0
  60. mage_ai/command_center/applications/__init__.py +0 -0
  61. mage_ai/command_center/applications/constants.py +96 -0
  62. mage_ai/command_center/applications/factory.py +54 -0
  63. mage_ai/command_center/blocks/__init__.py +0 -0
  64. mage_ai/command_center/blocks/factory.py +39 -0
  65. mage_ai/command_center/blocks/utils.py +127 -0
  66. mage_ai/command_center/constants.py +66 -0
  67. mage_ai/command_center/factory.py +161 -0
  68. mage_ai/command_center/files/__init__.py +0 -0
  69. mage_ai/command_center/files/constants.py +235 -0
  70. mage_ai/command_center/files/factory.py +86 -0
  71. mage_ai/command_center/models.py +442 -0
  72. mage_ai/command_center/pipeline_runs/__init__.py +0 -0
  73. mage_ai/command_center/pipeline_runs/utils.py +141 -0
  74. mage_ai/command_center/pipelines/__init__.py +0 -0
  75. mage_ai/command_center/pipelines/constants.py +118 -0
  76. mage_ai/command_center/pipelines/factory.py +132 -0
  77. mage_ai/command_center/pipelines/utils.py +120 -0
  78. mage_ai/command_center/service.py +45 -0
  79. mage_ai/command_center/settings.py +37 -0
  80. mage_ai/command_center/support/__init__.py +0 -0
  81. mage_ai/command_center/support/constants.py +46 -0
  82. mage_ai/command_center/triggers/__init__.py +0 -0
  83. mage_ai/command_center/triggers/factory.py +49 -0
  84. mage_ai/command_center/triggers/utils.py +463 -0
  85. mage_ai/command_center/utils.py +30 -0
  86. mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
  87. mage_ai/data_preparation/executors/block_executor.py +68 -19
  88. mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
  89. mage_ai/data_preparation/executors/executor_factory.py +2 -0
  90. mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
  91. mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
  92. mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
  93. mage_ai/data_preparation/git/__init__.py +29 -11
  94. mage_ai/data_preparation/git/api.py +14 -13
  95. mage_ai/data_preparation/git/clients/base.py +4 -8
  96. mage_ai/data_preparation/git/clients/github.py +1 -0
  97. mage_ai/data_preparation/git/utils.py +5 -7
  98. mage_ai/data_preparation/models/block/__init__.py +556 -329
  99. mage_ai/data_preparation/models/block/content.py +111 -0
  100. mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
  101. mage_ai/data_preparation/models/block/dbt/block.py +29 -19
  102. mage_ai/data_preparation/models/block/dbt/block_sql.py +50 -260
  103. mage_ai/data_preparation/models/block/dbt/block_yaml.py +74 -156
  104. mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +22 -10
  105. mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
  106. mage_ai/data_preparation/models/block/dbt/project.py +3 -0
  107. mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
  108. mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
  109. mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
  110. mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
  111. mage_ai/data_preparation/models/block/r/__init__.py +19 -9
  112. mage_ai/data_preparation/models/block/sql/__init__.py +34 -20
  113. mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
  114. mage_ai/data_preparation/models/block/utils.py +176 -71
  115. mage_ai/data_preparation/models/constants.py +7 -0
  116. mage_ai/data_preparation/models/file.py +21 -2
  117. mage_ai/data_preparation/models/pipeline.py +20 -8
  118. mage_ai/data_preparation/models/project/__init__.py +12 -7
  119. mage_ai/data_preparation/models/project/constants.py +1 -0
  120. mage_ai/data_preparation/models/triggers/__init__.py +7 -0
  121. mage_ai/data_preparation/models/utils.py +20 -0
  122. mage_ai/data_preparation/models/variable.py +113 -15
  123. mage_ai/data_preparation/shared/utils.py +6 -3
  124. mage_ai/data_preparation/storage/base_storage.py +17 -0
  125. mage_ai/data_preparation/storage/gcs_storage.py +4 -0
  126. mage_ai/data_preparation/storage/local_storage.py +15 -0
  127. mage_ai/data_preparation/storage/s3_storage.py +4 -0
  128. mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
  129. mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
  130. mage_ai/data_preparation/variable_manager.py +1 -0
  131. mage_ai/io/base.py +4 -1
  132. mage_ai/io/bigquery.py +25 -16
  133. mage_ai/io/clickhouse.py +3 -0
  134. mage_ai/io/druid.py +3 -0
  135. mage_ai/io/mongodb.py +1 -1
  136. mage_ai/io/pinot.py +3 -0
  137. mage_ai/io/postgres.py +13 -0
  138. mage_ai/io/snowflake.py +4 -0
  139. mage_ai/io/spark.py +8 -3
  140. mage_ai/io/sql.py +6 -0
  141. mage_ai/orchestration/db/__init__.py +26 -19
  142. mage_ai/orchestration/db/cache.py +4 -3
  143. mage_ai/orchestration/db/models/schedules.py +72 -16
  144. mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
  145. mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
  146. mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
  147. mage_ai/presenters/interactions/constants.py +1 -0
  148. mage_ai/presenters/interactions/models.py +4 -3
  149. mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
  150. mage_ai/server/constants.py +1 -1
  151. mage_ai/server/frontend_dist/404.html +11 -11
  152. mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
  153. mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  154. mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  155. mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  156. mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  157. mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  158. mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  159. mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  160. mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  161. mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  162. mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  163. mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  167. mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  170. mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  171. mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  172. mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  173. mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  174. mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  176. mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  177. mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  178. mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  179. mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  180. mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  181. mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  182. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
  183. mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  184. mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
  185. mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  186. mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  187. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  188. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  189. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  190. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  191. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  192. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  193. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  194. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  195. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  196. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  197. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  198. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  199. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  200. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  201. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
  202. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  203. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  204. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  205. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  206. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  207. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  208. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  209. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  210. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  211. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  212. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  213. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  214. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  215. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  216. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  217. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  218. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  219. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  220. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  221. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  222. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  223. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  224. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  225. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  226. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
  227. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  228. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  229. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
  230. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
  231. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  232. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  233. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  234. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  235. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  236. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  237. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  238. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  239. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  240. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  241. mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-efa55343114c8128.js} +1 -1
  242. mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
  243. mage_ai/server/frontend_dist/block-layout.html +3 -3
  244. mage_ai/server/frontend_dist/compute.html +11 -11
  245. mage_ai/server/frontend_dist/files.html +11 -11
  246. mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
  247. mage_ai/server/frontend_dist/global-data-products.html +11 -11
  248. mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
  249. mage_ai/server/frontend_dist/global-hooks.html +11 -11
  250. mage_ai/server/frontend_dist/index.html +3 -3
  251. mage_ai/server/frontend_dist/manage/files.html +11 -11
  252. mage_ai/server/frontend_dist/manage/settings.html +11 -11
  253. mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
  254. mage_ai/server/frontend_dist/manage/users/new.html +11 -11
  255. mage_ai/server/frontend_dist/manage/users.html +11 -11
  256. mage_ai/server/frontend_dist/manage.html +11 -11
  257. mage_ai/server/frontend_dist/oauth.html +8 -8
  258. mage_ai/server/frontend_dist/overview.html +11 -11
  259. mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
  260. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  261. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
  262. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
  263. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
  264. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
  265. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  266. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  267. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
  268. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
  269. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
  270. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
  271. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
  272. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  273. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
  274. mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
  275. mage_ai/server/frontend_dist/pipelines.html +11 -11
  276. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
  277. mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
  278. mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
  279. mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
  280. mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
  281. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
  282. mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
  283. mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
  284. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
  285. mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
  286. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
  287. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
  288. mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
  289. mage_ai/server/frontend_dist/settings.html +3 -3
  290. mage_ai/server/frontend_dist/sign-in.html +41 -41
  291. mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
  292. mage_ai/server/frontend_dist/templates.html +11 -11
  293. mage_ai/server/frontend_dist/terminal.html +11 -11
  294. mage_ai/server/frontend_dist/test.html +3 -5
  295. mage_ai/server/frontend_dist/triggers.html +11 -11
  296. mage_ai/server/frontend_dist/version-control.html +11 -11
  297. mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
  318. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
  319. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
  320. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
  321. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
  322. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
  323. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
  324. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
  325. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
  326. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
  327. mage_ai/server/{frontend_dist/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
  328. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
  329. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
  330. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
  331. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
  332. mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
  333. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
  334. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
  335. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
  336. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
  337. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
  338. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
  339. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
  340. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
  341. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
  342. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
  343. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
  344. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
  345. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
  346. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
  347. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
  348. mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
  349. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
  350. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
  351. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
  352. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
  353. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
  354. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
  355. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
  356. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
  357. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
  358. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
  359. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
  360. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
  361. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
  362. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
  363. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
  364. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
  365. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
  366. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
  367. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
  368. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
  369. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
  370. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
  371. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
  372. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
  373. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
  374. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
  375. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
  376. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
  377. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
  378. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
  379. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
  380. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
  381. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
  382. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
  383. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
  384. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
  385. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
  386. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
  387. mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
  388. mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
  389. mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
  390. mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
  391. mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
  392. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
  393. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
  394. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
  395. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
  396. mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
  397. mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
  398. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
  399. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
  400. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
  401. mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
  402. mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
  403. mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
  404. mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
  405. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
  406. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
  407. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
  408. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
  409. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
  410. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
  411. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
  412. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
  413. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
  414. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
  415. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
  416. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
  417. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
  418. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
  419. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
  420. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
  421. mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
  422. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
  423. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
  424. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
  425. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
  426. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
  427. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
  428. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
  429. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
  430. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
  431. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
  432. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
  433. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
  434. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
  435. mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
  436. mage_ai/server/frontend_dist_base_path_template/sign-in.html +39 -39
  437. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
  438. mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
  439. mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
  440. mage_ai/server/frontend_dist_base_path_template/test.html +3 -5
  441. mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
  442. mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
  443. mage_ai/server/logger.py +8 -2
  444. mage_ai/server/server.py +18 -1
  445. mage_ai/services/aws/ecs/config.py +3 -3
  446. mage_ai/services/aws/ecs/ecs.py +2 -2
  447. mage_ai/services/search/block_action_objects.py +59 -5
  448. mage_ai/settings/models/configuration_option.py +3 -1
  449. mage_ai/settings/platform/__init__.py +54 -18
  450. mage_ai/settings/repo.py +5 -4
  451. mage_ai/shared/custom_logger.py +213 -0
  452. mage_ai/shared/environments.py +4 -0
  453. mage_ai/shared/files.py +52 -1
  454. mage_ai/shared/models.py +2 -1
  455. mage_ai/shared/parsers.py +8 -1
  456. mage_ai/shared/path_fixer.py +62 -5
  457. mage_ai/shared/retry.py +4 -0
  458. mage_ai/shared/strings.py +4 -0
  459. mage_ai/tests/api/endpoints/test_blocks.py +101 -1
  460. mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
  461. mage_ai/tests/base_test.py +21 -2
  462. mage_ai/tests/cache/test_pipeline_cache.py +11 -8
  463. mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
  464. mage_ai/tests/data_preparation/git/test_api.py +4 -4
  465. mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
  466. mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -329
  467. mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +296 -296
  468. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +2 -2
  469. mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +4 -4
  470. mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
  471. mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
  472. mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
  473. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
  474. mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
  475. mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
  476. mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
  477. mage_ai/tests/data_preparation/models/test_block.py +6 -8
  478. mage_ai/tests/data_preparation/models/test_project.py +10 -5
  479. mage_ai/tests/data_preparation/models/test_variable.py +51 -4
  480. mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
  481. mage_ai/version_control/__init__.py +0 -0
  482. mage_ai/version_control/models.py +288 -0
  483. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/METADATA +6 -6
  484. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/RECORD +490 -476
  485. mage_ai/server/frontend_dist/_next/static/0XnQ0C0nTr1w0o9CGC7wQ/_buildManifest.js +0 -1
  486. mage_ai/server/frontend_dist/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
  487. mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  488. mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  489. mage_ai/server/frontend_dist/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
  490. mage_ai/server/frontend_dist/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
  491. mage_ai/server/frontend_dist/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
  492. mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  493. mage_ai/server/frontend_dist/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
  494. mage_ai/server/frontend_dist/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
  495. mage_ai/server/frontend_dist/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
  496. mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  497. mage_ai/server/frontend_dist/_next/static/chunks/2512-46141494a1b75897.js +0 -1
  498. mage_ai/server/frontend_dist/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
  499. mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  500. mage_ai/server/frontend_dist/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
  501. mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  502. mage_ai/server/frontend_dist/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
  503. mage_ai/server/frontend_dist/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
  504. mage_ai/server/frontend_dist/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
  505. mage_ai/server/frontend_dist/_next/static/chunks/3745-3662911c364d917b.js +0 -1
  506. mage_ai/server/frontend_dist/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
  507. mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  508. mage_ai/server/frontend_dist/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
  509. mage_ai/server/frontend_dist/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
  510. mage_ai/server/frontend_dist/_next/static/chunks/4804-1254a474f238d078.js +0 -1
  511. mage_ai/server/frontend_dist/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
  512. mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  513. mage_ai/server/frontend_dist/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
  514. mage_ai/server/frontend_dist/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
  515. mage_ai/server/frontend_dist/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
  516. mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  517. mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  518. mage_ai/server/frontend_dist/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
  519. mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  520. mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  521. mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  522. mage_ai/server/frontend_dist/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
  523. mage_ai/server/frontend_dist/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
  524. mage_ai/server/frontend_dist/_next/static/chunks/7858-677c641010ac9160.js +0 -1
  525. mage_ai/server/frontend_dist/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
  526. mage_ai/server/frontend_dist/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
  527. mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  528. mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  529. mage_ai/server/frontend_dist/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
  530. mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  531. mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  532. mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  533. mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  534. mage_ai/server/frontend_dist/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
  535. mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  536. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
  537. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
  538. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
  539. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
  540. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
  541. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
  542. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
  543. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
  544. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
  545. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
  546. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
  547. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
  548. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
  549. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
  550. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
  551. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
  552. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
  553. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
  554. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
  555. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
  556. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
  557. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
  558. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
  559. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
  560. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
  561. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
  562. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
  563. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
  564. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
  565. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
  566. mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
  567. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
  568. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
  569. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
  570. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
  571. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
  572. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
  573. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
  574. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
  575. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
  576. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
  577. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
  578. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
  579. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
  580. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
  581. mage_ai/server/frontend_dist_base_path_template/_next/static/RC0Yenm06LvZI-RWFoT5C/_buildManifest.js +0 -1
  582. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
  583. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
  584. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
  585. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
  586. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
  587. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
  588. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
  589. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
  590. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
  591. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
  592. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
  593. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2512-46141494a1b75897.js +0 -1
  594. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
  595. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
  596. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
  597. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
  598. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
  599. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
  600. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
  601. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-3662911c364d917b.js +0 -1
  602. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
  603. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
  604. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
  605. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
  606. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4804-1254a474f238d078.js +0 -1
  607. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
  608. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
  609. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
  610. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
  611. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
  612. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
  613. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
  614. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
  615. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
  616. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
  617. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
  618. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
  619. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
  620. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-677c641010ac9160.js +0 -1
  621. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
  622. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
  623. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
  624. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
  625. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
  626. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
  627. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
  628. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
  629. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
  630. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
  631. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
  632. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
  633. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
  634. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
  635. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
  636. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
  637. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
  638. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
  639. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
  640. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
  641. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
  642. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
  643. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
  644. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
  645. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
  646. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
  647. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
  648. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
  649. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
  650. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
  651. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
  652. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
  653. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
  654. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
  655. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
  656. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
  657. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
  658. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
  659. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
  660. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
  661. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
  662. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
  663. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
  664. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
  665. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
  666. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
  667. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
  668. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
  669. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
  670. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
  671. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
  672. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
  673. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
  674. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
  675. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
  676. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
  677. /mage_ai/server/frontend_dist/_next/static/{0XnQ0C0nTr1w0o9CGC7wQ → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
  678. /mage_ai/server/frontend_dist_base_path_template/_next/static/{RC0Yenm06LvZI-RWFoT5C → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
  679. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
  680. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
  681. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
  682. {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2717],{8916:function(e,n,t){t.d(n,{FS:function(){return s},JZ:function(){return v},Tt:function(){return d},e7:function(){return p},wx:function(){return a}});var i=t(75582),r=t(82394),l=t(83784),o=t(30229);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e){return"string"===typeof e?e:JSON.stringify(e)}function a(e,n){var t,i;return null===e||void 0===e||null===(t=e.find((function(e){var t=e.block;return n(t)})))||void 0===t||null===(i=t.variables)||void 0===i?void 0:i.map((function(e){var n=e.value;return c(c({},e),{},{value:s(n)})}))}function d(e){var n;return null===(n=a(e,(function(e){return e.uuid===l.C})))||void 0===n?void 0:n.reduce((function(e,n){var t=n.uuid,i=n.value;return c(c({},e),{},(0,r.Z)({},t,i))}),{})}function v(e,n){return n===o.Xm.TIME?e.push({uuid:"execution_date",value:"<run datetime>"}):n===o.Xm.EVENT&&e.push({uuid:"event",value:"<trigger event>"}),e}function p(e){return e?Object.entries(e).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],o=t[1],u=o;try{u=JSON.parse(o)}catch(s){}return c(c({},e),{},(0,r.Z)({},l,u))}),{}):e}},81334:function(e,n,t){t.d(n,{Z:function(){return _}});var i=t(82394),r=t(82684),l=t(27277),o=t(31882),u=t(38276),c=t(48381),s=t(30160),a=t(17488),d=t(38626),v=t(44897),p=t(42631),h=t(47041),f=t(70515),m=d.default.div.withConfig({displayName:"indexstyle__DropdownStyle",componentId:"sc-suwkha-0"})([""," border-radius:","px;max-height:","px;overflow:auto;position:absolute;width:100%;z-index:1;"," ",""],h.w5,p.BG,40*f.iI,(function(e){return"\n background-color: ".concat((e.theme.background||v.Z.background).popup,";\n box-shadow: ").concat((e.theme.shadow||v.Z.shadow).popup,";\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset-.5*f.iI,"px;\n ")})),j=d.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-suwkha-1"})(["padding:","px;position:relative;z-index:2;&:hover{cursor:pointer;}",""],.5*f.iI,(function(e){return e.highlighted&&"\n background-color: ".concat((e.theme.interactive||v.Z.interactive).hoverBackground,";\n ")})),g=t(39643),x=t(95924),Z=t(86735),b=t(44688),y=t(28598);function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=function(e){var n,t=e.removeTag,i=e.selectTag,d=e.selectedTags,v=void 0===d?[]:d,p=e.tags,h=void 0===p?[]:p,f=e.uuid,P=(0,r.useRef)(null),_=(0,r.useState)(!1),k=_[0],w=_[1],S=(0,r.useState)(null),I=S[0],C=S[1],T=(0,r.useMemo)((function(){return(0,Z.YC)(h||[],"uuid")}),[h]),E=(0,r.useMemo)((function(){return null===T||void 0===T?void 0:T.map((function(e){return{itemObject:e,searchQueries:[e.uuid],value:e.uuid}}))}),[T]),M=(0,r.useMemo)((function(){return(null===I||void 0===I?void 0:I.length)>=1?E.concat({itemObject:{uuid:I},searchQueries:[I],value:"Add tag: ".concat(I)}):E}),[E,I]),D=(0,b.y)(),N=D.registerOnKeyDown,A=D.unregisterOnKeyDown;return(0,r.useEffect)((function(){return function(){return A(f)}}),[A,f]),null===N||void 0===N||N(f,(function(e,n){var t;k&&n[g.vP]&&(w(!1),null===P||void 0===P||null===(t=P.current)||void 0===t||t.blur())}),[k,P]),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.Z,{onClickTag:t,tags:v}),(0,y.jsxs)(u.Z,{mt:1,style:{position:"relative"},children:[(0,y.jsx)(a.Z,{onBlur:function(){return setTimeout((function(){return w(!1)}),150)},onChange:function(e){return C(e.target.value)},onFocus:function(){return w(!0)},ref:P,value:I||""}),(0,y.jsx)(m,{topOffset:null===P||void 0===P||null===(n=P.current)||void 0===n?void 0:n.getBoundingClientRect().height,children:(0,y.jsx)(l.Z,{itemGroups:[{items:k?M:[],renderItem:function(e,n){var t=e.value;return(0,y.jsx)(j,O(O({},n),{},{onClick:function(e){var t;(0,x.j)(e),null===n||void 0===n||null===(t=n.onClick)||void 0===t||t.call(n,e)},children:(0,y.jsx)(o.Z,{small:!0,children:(0,y.jsx)(s.ZP,{children:t})})}))}}],onSelectItem:function(e){var n=e.itemObject;null===i||void 0===i||i(n),C(null)},searchQuery:I,uuid:f})})]})]})}},71610:function(e,n,t){var i=t(82394),r=t(75582),l=t(12691),o=t.n(l),u=t(38626),c=t(82684),s=t(32013),a=t(98777),d=t(15338),v=t(48670),p=t(88543),h=t(38276),f=t(4190),m=t(75499),j=t(30160),g=t(35686),x=t(70515),Z=t(30229),b=t(32080),y=t(81728),P=t(3917),O=t(55283),_=t(70320),k=t(28598);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var I={large:!1};n.Z=function(e){var n=e.bookmarkValues,t=e.originalBookmarkValues,l=e.setBookmarkValues,w=e.pipeline,C=(0,c.useContext)(u.ThemeContext),T=(0,_.qB)(),E=(0,c.useState)(null),M=E[0],D=E[1],N=(0,c.useMemo)((function(){return null!==w&&void 0!==w&&w.blocks?(0,b.n)(w):null}),[w]),A=(0,c.useMemo)((function(){return Object.keys(N||{})||[]}),[N]),H=g.ZP.integration_sources.pipelines.list(null===w||void 0===w?void 0:w.uuid,{block_uuid:A},{},{pauseFetch:!(null!==A&&void 0!==A&&A.length)}).data,q=(0,c.useMemo)((function(){return null===H||void 0===H?void 0:H.integration_sources}),[H]);return(0,c.useEffect)((function(){if((null===q||void 0===q?void 0:q.length)>=1&&(!n||!M)){var e={};null===q||void 0===q||q.map((function(n){var t,i=n.block,l=n.streams,o=null===i||void 0===i?void 0:i.uuid;e[o]={},null===(t=Object.entries(l||{}))||void 0===t||t.forEach((function(n){var t,i,l=(0,r.Z)(n,2),u=l[0],c=l[1];e[o][u]=null===c||void 0===c||null===(t=c.state)||void 0===t||null===(i=t.bookmarks)||void 0===i?void 0:i[u]}))})),n||l(e),M||D(e)}}),[n,M,l,D,q]),(0,k.jsxs)(h.Z,{p:x.cd,children:[!H&&(0,k.jsx)(f.Z,{inverted:!0,small:!0}),null===q||void 0===q?void 0:q.map((function(e){var u=e.block,f=e.pipeline_run,g=e.pipeline_schedule,b=e.streams,_=null===u||void 0===u?void 0:u.uuid;return(0,k.jsx)(p.Z,{title:(0,k.jsx)(j.ZP,{color:(0,O.qn)(null===u||void 0===u?void 0:u.type,{blockColor:null===u||void 0===u?void 0:u.color,theme:C}).accent,monospace:!0,children:_}),children:(0,k.jsx)(s.Z,{noBorder:!0,noBoxShadow:!0,children:Object.entries(b||{}).map((function(e){var u,s,b,O,C=(0,r.Z)(e,2),E=C[0],D=C[1],N=D.record,A=D.state,H=(null===A||void 0===A||null===(u=A.bookmarks)||void 0===u?void 0:u[E])||{};return(0,k.jsxs)(a.Z,{noBorderRadius:!0,noPaddingContent:!0,title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:E}),titleXPadding:x.cd*x.iI,titleYPadding:x.cd*x.iI,children:[(0,k.jsx)(p.S,S(S({},I),{},{title:"Last pipeline run started at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===f||void 0===f?void 0:f.started_at)&&(0,P.XG)(null===f||void 0===f?void 0:f.started_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(p.S,S(S({},I),{},{title:"Last pipeline run completed at",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(null===f||void 0===f?void 0:f.completed_at)&&(0,P.XG)(null===f||void 0===f?void 0:f.completed_at,T)})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(p.S,S(S({},I),{},{title:"Trigger",children:(0,k.jsx)(o(),{as:"/pipelines/".concat(null===w||void 0===w?void 0:w.uuid,"/triggers/").concat(null===g||void 0===g?void 0:g.id),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,k.jsx)(v.Z,{block:!0,default:!0,openNewWindow:!0,children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null===g||void 0===g?void 0:g.name})})})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(p.S,S(S({},I),{},{title:"Type",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:(0,y.kC)((null===(s=Z.Z4[null===g||void 0===g?void 0:g.schedule_type])||void 0===s?void 0:s.call(Z.Z4))||"")})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsx)(p.S,S(S({},I),{},{title:"Frequency",children:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:null===g||void 0===g?void 0:g.schedule_interval})})),(0,k.jsx)(d.Z,{light:!0}),(0,k.jsxs)(h.Z,{p:x.cd,children:[(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Bookmark values"}),(0,k.jsx)(h.Z,{mt:1,children:(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Overriding the bookmark values will be applied to all pipeline runs",(0,k.jsx)("br",{}),"for this trigger until there is at least 1 successful pipeline run in this trigger."]})})]}),(0,k.jsx)(d.Z,{light:!0,short:!0}),!(null!==(b=Object.values(H||{}))&&void 0!==b&&b.length)&&(0,k.jsx)(h.Z,{p:x.cd,children:(0,k.jsx)(j.ZP,{muted:!0,children:"There are currently no bookmark values for this stream."})}),Object.entries(H||{}).map((function(e){var o,u,s,a,d,v,h=(0,r.Z)(e,2),f=h[0],m=(h[1],null===n||void 0===n||null===(o=n[_])||void 0===o||null===(u=o[E])||void 0===u?void 0:u[f]),g=(null===t||void 0===t||null===(s=t[_])||void 0===s||null===(a=s[E])||void 0===a||a[f],null===M||void 0===M||null===(d=M[_])||void 0===d||null===(v=d[E])||void 0===v?void 0:v[f]);return(0,c.createElement)(p.S,S(S({},I),{},{title:(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:f}),description:g&&g!==m&&(0,k.jsxs)(j.ZP,{muted:!0,small:!0,children:["Original bookmark value from the last pipeline run: ",(0,k.jsx)(j.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:g})]}),key:"".concat(_,"-bookmark-values-").concat(f),textInput:{monospace:!0,onChange:function(e){return l((function(t){var r;return S(S({},t),{},(0,i.Z)({},_,S(S({},null===n||void 0===n?void 0:n[_]),{},(0,i.Z)({},E,S(S({},null===n||void 0===n||null===(r=n[_])||void 0===r?void 0:r[E]),{},(0,i.Z)({},f,e.target.value))))))}))},value:String(m||"")}}))})),(0,k.jsx)(d.Z,{light:!0}),(0,c.createElement)(p.S,S(S({},I),{},{title:"Record",description:"The most recently synced record.",key:"block-uuid-".concat(_,"-").concat(E)}),(0,k.jsx)(m.Z,{columnFlex:[1,null],columns:[{uuid:"Column"},{uuid:"Value"}],rows:null===(O=Object.entries(N||{}))||void 0===O?void 0:O.map((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1];return[(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:t},t),(0,k.jsx)(j.ZP,{default:!0,monospace:!0,children:String(i)},"".concat(t,"-").concat(i))]}))}))]})}))})})}))]})}},88785:function(e,n,t){t.d(n,{J:function(){return c},U:function(){return u}});var i=t(38626),r=t(44897),l=t(42631),o=t(70515),u=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-m7tlau-0"})(["border-radius:","px;border-style:solid;border-width:2px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],l.TR,14*o.iI,o.cd*o.iI,o.cd*o.iI,40*o.iI,(function(e){return!e.selected&&"\n border-color: ".concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.selected&&"\n border-color: ".concat((e.theme.interactive||r.Z.interactive).linkPrimary,";\n ")})),c=i.default.div.withConfig({displayName:"indexstyle__DateSelectionContainer",componentId:"sc-m7tlau-1"})(["border-radius:","px;padding:","px;"," "," ",""],l.n_,o.tr,(function(e){return"\n background-color: ".concat((e.theme.interactive||r.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.absolute&&"\n position: absolute;\n z-index: 2;\n right: 0;\n top: ".concat(2.5*o.iI,"px;\n ")}),(function(e){return e.topPosition&&"\n top: -".concat(42*o.iI,"px;\n ")}))},12717:function(e,n,t){t.d(n,{Z:function(){return Le}});var i=t(21831),r=t(82394),l=t(75582),o=t(12691),u=t.n(o),c=t(82684),s=t(20026),a=t.n(s),d=t(92083),v=t.n(d),p=t(21764),h=t(69864),f=t(34376),m=t(71610),j=t(71180),g=t(90299),x=t(14805),Z=t(70652),b=t(50724),y=t(9134),P=t(39457),O=t(38626),_=t(39867),k=t(55485),w=t(85854),S=t(38276),I=t(75499),C=t(30160),T=t(17488),E=t(12468),M=t(44375),D=t(70515),N=t(55283),A=t(86735),H=t(28598);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=function(e){var n=e.blocks,t=e.updateVariables,i=e.variables,l=(0,c.useContext)(O.ThemeContext),o=(0,c.useCallback)((function(e,n){return t((function(){var t=(null===i||void 0===i?void 0:i.__mage_variables)||{},l=(null===t||void 0===t?void 0:t.blocks)||{},o=l[e]||{},u=(null===o||void 0===o?void 0:o.configuration)||{};return L(L({},i),{},{__mage_variables:L(L({},t),{},{blocks:L(L({},l),{},(0,r.Z)({},e,L(L({},o),{},{configuration:L(L({},u),n)})))})})}))}),[t,i]);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(w.Z,{children:"dbt runtime settings"}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(I.Z,{columnFlex:[1,null,null,null],columns:[{uuid:"Block"},{uuid:"Flags"},{uuid:"Prefix"},{uuid:"Suffix"}],compact:!0,rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r,u=e.type,c=e.uuid,s=(0,M.IU)(e).name,a=(0,N.qn)(u,{blockColor:e.color,theme:l}).accent,d=null===i||void 0===i||null===(n=i.__mage_variables)||void 0===n||null===(t=n.blocks)||void 0===t||null===(r=t[c])||void 0===r?void 0:r.configuration,v=d||{},p=v.prefix,h=v.suffix,f=(null===d||void 0===d?void 0:d.flags)||[],m=!(null===f||void 0===f||!f.includes(M.Dy));return[(0,H.jsx)(E.Z,{block:!0,label:(0,H.jsx)(C.ZP,{monospace:!0,small:!0,children:c}),size:null,widthFitContent:!0,children:(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(_.Z,{color:a,size:1.5*D.iI,square:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsxs)(C.ZP,{monospace:!0,small:!0,children:[p&&(0,H.jsx)(C.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:p}),s,h&&(0,H.jsx)(C.ZP,{default:!0,inline:!0,monospace:!0,small:!0,children:h})]})]})},"uuid-".concat(c)),(0,H.jsx)(k.ZP,{alignItems:"center",children:(0,H.jsx)(Z.Z,{checked:m,label:M.Dy,monospace:!0,onClick:function(){return o(c,{flags:m?(0,A.Od)(f,(function(e){return M.Dy===e})):f.concat(M.Dy)})},small:!0})},"flags-".concat(c)),(0,H.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{prefix:e.target.value})},placeholder:"N+, +",small:!0,value:p,width:10*D.iI},"prefix-".concat(c)),(0,H.jsx)(T.Z,{compact:!0,monospace:!0,onChange:function(e){return o(c,{suffix:e.target.value})},placeholder:"+, +N",small:!0,value:h,width:10*D.iI},"suffix-".concat(c))]}))})})]})},z=t(97196),F=t(15338),R=t(97618),V=t(48670),B=t(26304),W=t(44897),J=t(95363),Y=t(61896),K=["children","large","lineHeight","ordered"];function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function G(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Q=(0,O.css)([""," "," "," "," "," "," "," "," "," ",""],(function(e){return!e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).default,";\n ")}),(function(e){return e.muted&&"\n color: ".concat((e.theme.content||W.Z.content).muted,";\n ")}),(function(e){return e.inverted&&"\n color: ".concat((e.theme.content||W.Z.content).inverted,";\n ")}),(function(e){return e.color&&"\n color: ".concat(e.color,";\n ")}),(function(e){return!e.monospace&&"\n font-family: ".concat(J.ry,";\n ")}),(function(e){return e.monospace&&"\n font-family: ".concat(J.Vp,";\n ")}),(function(e){return e.large&&"\n ".concat(Y.x_,"\n ")}),(function(e){return!e.large&&!e.small&&"\n ".concat(Y.i3,"\n ")}),(function(e){return e.small&&"\n ".concat(Y.J5,"\n ")}),(function(e){return e.lineHeight&&"\n line-height: ".concat(e.lineHeight,"px !important;\n ")})),$=O.default.ul.withConfig({displayName:"List__UnorderedListStyle",componentId:"sc-1f6yhbi-0"})(["",""],Q),ee=O.default.ol.withConfig({displayName:"List__OrderedListStyle",componentId:"sc-1f6yhbi-1"})(["",""],Q),ne=O.default.li.withConfig({displayName:"List__ListItemStyle",componentId:"sc-1f6yhbi-2"})(["",""],(function(e){return e.large&&e.marginTop&&"\n margin-top: ".concat(1*D.iI,"px;\n ")}));var te,ie=function(e){var n=e.children,t=e.large,i=e.lineHeight,r=e.ordered,l=(0,B.Z)(e,K),o=r?ee:$;return(0,H.jsx)(o,G(G({large:t,lineHeight:i},l),{},{children:c.Children.map(n,(function(e,n){var i;return(0,H.jsx)(ne,G(G({large:t,marginTop:n>=1},l),{},{children:c.cloneElement(e)}),(null===(i=e.props)||void 0===i?void 0:i.key)||n)}))}))},re=t(37899),le=t(75457),oe=t(30229),ue=t(57653),ce=t(83784),se=t(82359),ae=t(44085),de=t(81334),ve=t(69650),pe=t(81769),he=t(54193),fe=t(72473),me=t(81728),je=t(16488),ge=t(70320),xe=(te={},(0,r.Z)(te,he.zj.DATE,fe.aw),(0,r.Z)(te,he.zj.DATETIME,fe.Pf),(0,r.Z)(te,he.zj.DICTIONARY,fe.$l),(0,r.Z)(te,he.zj.FLOAT,fe.As),(0,r.Z)(te,he.zj.INTEGER,fe.qZ),(0,r.Z)(te,he.zj.LIST,fe.B4),(0,r.Z)(te,he.zj.STRING,fe.KJ),te);var Ze=function(e){var n,t,i,r=e.containerRef,o=e.date,u=e.interactions,s=e.pipeline,a=e.pipelineInteraction,d=e.pipelineSchedule,v=e.setVariables,p=e.showSummary,h=e.time,f=e.triggerTypes,m=e.variables,j=(0,c.useMemo)((function(){return(0,A.HK)(u||[],(function(e){return e.uuid}))}),[u]),g=(0,c.useMemo)((function(){return(null===s||void 0===s?void 0:s.blocks)||[]}),[s]),x=(0,c.useMemo)((function(){return(null===a||void 0===a?void 0:a.blocks)||{}}),[a]),Z=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,l=(null===x||void 0===x?void 0:x[i])||[];null===l||void 0===l||l.length;e.push((0,H.jsx)(S.Z,{p:D.cd,children:null===l||void 0===l?void 0:l.map((function(e,n){return(0,H.jsx)(S.Z,{mt:n>=1?2*D.cd:0,children:(0,H.jsx)(pe.Z,{blockInteraction:e,containerRef:r,interaction:null===j||void 0===j?void 0:j[null===e||void 0===e?void 0:e.uuid],setVariables:v,variables:m})},"".concat(null===e||void 0===e?void 0:e.uuid,"-").concat(n))}))}))})),e}),[g,r,j,v,m]),b=(0,ge.qB)(),y=(0,c.useMemo)((function(){return o&&null!==h&&void 0!==h&&h.hour&&null!==h&&void 0!==h&&h.minute?(0,je.XM)(o,h,{convertToUtc:b,includeSeconds:!0,localTimezone:b}):null}),[o,b,h]),P=(0,c.useMemo)((function(){var e=[];null===g||void 0===g||g.length;return null===g||void 0===g||g.map((function(n,t){var i=(n||{uuid:null}).uuid,r=(null===x||void 0===x?void 0:x[i])||[];null===r||void 0===r||r.forEach((function(n,r){var o=null===j||void 0===j?void 0:j[null===n||void 0===n?void 0:n.uuid];Object.entries((null===o||void 0===o?void 0:o.variables)||{}).forEach((function(n,o){var u,c=(0,l.Z)(n,2),s=c[0],a=c[1],d=a.name,v=a.required,p=a.types,h=null===m||void 0===m?void 0:m[s],f="undefined"===typeof h,j=v&&f,g=(null===xe||void 0===xe?void 0:xe[p[0]])||fe.KJ,x=[];"undefined"!==typeof h?h&&Array.isArray(h||[])?null===h||void 0===h||h.forEach((function(e){x.push(e&&"object"===typeof e?x.push(JSON.stringify(e)):x.push(String(e)))})):h&&"object"===typeof h?Object.entries(h||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0];n[1]&&x.push(String(t))})):x.push(String(h)):x.push(h||""),e.push([(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(g,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,monospace:!0,children:s})]},"".concat(i,"-").concat(s,"-label-").concat(d,"-").concat(t,"-").concat(r,"-").concat(o)),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsxs)(C.ZP,{danger:j,monospace:!j,muted:f,children:[f&&!j&&"-",j&&"This is required",!f&&!j&&(null===x||void 0===x||null===(u=x.map((function(e){return String(e)})))||void 0===u?void 0:u.join(", "))]})},"".concat(i,"-").concat(s,"-value-").concat(d,"-").concat(h,"-").concat(t,"-").concat(r,"-").concat(o))])}))}))})),(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:e})}),[g,j,m]);return(0,H.jsxs)(H.Fragment,{children:[!p&&Z,p&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{p:D.cd,children:(0,H.jsx)(w.Z,{children:"Settings"})}),(0,H.jsx)(F.Z,{light:!0,short:!0}),(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:[[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.Bf,{default:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Trigger type"})]},"trigger_type"),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsx)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_type),monospace:!0,children:null!==d&&void 0!==d&&d.schedule_type?null===f||void 0===f||null===(n=f.find((function(e){return e.uuid===(null===d||void 0===d?void 0:d.schedule_type)})))||void 0===n||null===(t=n.label)||void 0===t?void 0:t.call(n):"This is required"})},"trigger_type_input")],[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.KJ,{default:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsx)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.name),monospace:!0,children:(null===d||void 0===d?void 0:d.name)||"This is required"})},"trigger_name_input")],[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.KJ,{default:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsx)(C.ZP,{monospace:!0,muted:!(null!==d&&void 0!==d&&d.description),children:(null===d||void 0===d?void 0:d.description)||"-"})},"trigger_description_input")],[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.Pf,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsxs)(C.ZP,{danger:!(null!==d&&void 0!==d&&d.schedule_interval),monospace:!0,muted:!(null!==d&&void 0!==d&&d.schedule_interval),children:[(null===d||void 0===d?void 0:d.schedule_interval)&&(0,me.vg)((null===d||void 0===d||null===(i=d.schedule_interval)||void 0===i?void 0:i.substring(1))||""),!(null!==d&&void 0!==d&&d.schedule_interval)&&"This is required"]})},"frequency_input")],[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.aw,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Start date and time"})]},"start_time"),(0,H.jsx)(S.Z,{py:D.cd,children:(0,H.jsx)(C.ZP,{danger:!y,monospace:!!y,muted:!y,children:y||"This is required"})},"start_time_input")]]}),(0,H.jsx)(S.Z,{p:D.cd,children:(0,H.jsx)(w.Z,{children:"Customize"})}),(0,H.jsx)(F.Z,{light:!0,short:!0}),P]})]})},be=t(35686),ye=t(77417),Pe=t(44425),Oe=t(88785),_e=t(28795),ke={label:function(){return"CUSTOMIZE"},uuid:"customize"},we={label:function(){return"SETTINGS"},uuid:"settings"},Se={label:function(){return"REVIEW"},uuid:"review"},Ie=[we,ke,Se],Ce=t(32080),Te=t(22286),Ee=t(79500),Me=t(8916),De=t(42122),Ne=t(72619),Ae=t(3917);function He(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function qe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?He(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):He(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Le=function(e){var n=e.creatingWithLimitation,t=e.errors,o=e.fetchPipelineSchedule,s=e.onCancel,d=e.pipeline,O=e.pipelineSchedule,_=e.setErrors,E=e.variables,M=e.useCreateScheduleMutation,q=(0,ye.Z)().project,L=(0,c.useRef)(null),B=(0,f.useRouter)(),W=(0,ge.qB)(),J=null===d||void 0===d?void 0:d.uuid,Y=(0,c.useMemo)((function(){return null===O||void 0===O?void 0:O.id}),[O]),K=(null===d||void 0===d?void 0:d.type)===ue.qL.STREAMING,X=(0,c.useMemo)((function(){var e;return null===O||void 0===O||null===(e=O.variables)||void 0===e?void 0:e[oe.PN]}),[O]),G=(0,c.useState)(X?"string"===typeof X&&(0,me.Pb)(X)?JSON.stringify(X):X:null),Q=G[0],$=G[1],ee=(0,c.useState)([]),ne=ee[0],te=ee[1],pe=(0,c.useState)(!0),he=pe[0],xe=pe[1],He=(0,c.useState)(!1),Le=He[0],Ue=He[1],ze=(0,c.useState)(!1),Fe=ze[0],Re=ze[1],Ve=(0,c.useState)(null),Be=Ve[0],We=Ve[1],Je=(0,c.useState)({}),Ye=Je[0],Ke=Je[1],Xe=(0,c.useState)(null),Ge=Xe[0],Qe=Xe[1],$e=(0,c.useState)(null),en=$e[0],nn=$e[1],tn=(0,c.useState)(!1),rn=tn[0],ln=tn[1],on=(0,c.useState)(null),un=on[0],cn=on[1],sn=be.ZP.client_pages.detail("pipeline_schedule:create",{"pipeline_schedules[]":[Y],"pipelines[]":[J]},{},{key:"Triggers/Edit/".concat(J,"/").concat(Y),pauseFetch:!J||!Y}).data,an=((0,c.useMemo)((function(){return null===sn||void 0===sn?void 0:sn.client_page}),[sn]),(0,c.useState)(Ie[0].uuid)),dn=an[0],vn=an[1],pn=(0,c.useMemo)((function(){var e;return!(null===q||void 0===q||null===(e=q.features)||void 0===e||!e[se.d.INTERACTIONS])}),[null===q||void 0===q?void 0:q.features]),hn=(0,c.useMemo)((function(){return!Y&&n}),[n,Y]),fn=be.ZP.pipeline_interactions.detail(pn&&J,{filter_for_permissions:1}).data,mn=be.ZP.interactions.pipeline_interactions.list(pn&&J).data,jn=(0,c.useMemo)((function(){return(null===fn||void 0===fn?void 0:fn.pipeline_interaction)||{}}),[fn]),gn=(0,c.useMemo)((function(){return(null===mn||void 0===mn?void 0:mn.interactions)||[]}),[mn]),xn=(0,c.useMemo)((function(){var e;return pn&&(null===(e=Object.keys((null===jn||void 0===jn?void 0:jn.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[pn,jn]),Zn=(0,c.useMemo)((function(){return!!Y&&xn}),[xn,Y]),bn=(0,c.useMemo)((function(){var e,n={};return null===jn||void 0===jn||null===(e=jn.permissions)||void 0===e||e.forEach((function(e){var t=e.triggers;null===t||void 0===t||t.forEach((function(e){var t=e.schedule_interval,i=e.schedule_type;null!==n&&void 0!==n&&n[i]||(n[i]={}),t&&(n[i][t]=!0)}))})),n}),[jn]),yn=(0,c.useMemo)((function(){return(0,Me.wx)(E,(function(e){return e.uuid===ce.C}))}),[E]),Pn=(0,c.useMemo)((function(){return Ge||{}}),[Ge]),On=Pn.description,_n=Pn.name,kn=Pn.schedule_interval,wn=Pn.schedule_type,Sn=Pn.settings,In=void 0===Sn?{}:Sn,Cn=Pn.start_time,Tn=Pn.tags,En=Pn.variables,Mn=void 0===En?{}:En;(0,c.useEffect)((function(){!Be&&In&&We(In)}),[Be,In]);var Dn=(0,c.useState)(null),Nn=Dn[0],An=Dn[1],Hn=(0,c.useState)({hour:"00",minute:"00"}),qn=Hn[0],Ln=Hn[1],Un=(0,c.useState)({dayOfMonth:null,dayOfWeek:null,hour:null,minute:null,second:null}),zn=Un[0],Fn=Un[1],Rn=be.ZP.event_rules.detail(oe.Xm.EVENT===wn?"aws":null).data,Vn=(0,c.useMemo)((function(){var e;return(null===Rn||void 0===Rn||null===(e=Rn.event_rule)||void 0===e?void 0:e.rules)||[]}),[Rn]),Bn=(0,c.useMemo)((function(){return(0,A.HK)(Vn,(function(e){return e.name}))}),[Vn]),Wn=(0,h.Db)(be.ZP.pipeline_schedules.useUpdate(Y),{onSuccess:function(e){return(0,Ne.wD)(e,{callback:function(){null===o||void 0===o||o(),B.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(J,"/triggers/").concat(Y))},onErrorCallback:function(e,n){return _({errors:n,response:e})}})}}),Jn=(0,l.Z)(Wn,2),Yn=Jn[0],Kn=Jn[1].isLoading,Xn=(0,c.useMemo)((function(){return Mn||{}}),[Mn]);(0,c.useEffect)((function(){if(Cn){var e=(0,Ee.a)(Cn,{localTimezone:W});An(null===e||void 0===e?void 0:e.date),Ln(null===e||void 0===e?void 0:e.time);var n=v()(Cn).utc();Fn({dayOfMonth:n.date(),dayOfWeek:n.day(),hour:n.hours(),minute:n.minutes(),second:n.seconds()})}else{var t=new Date;An(t),Ln(W?{hour:(0,Ae.lJ)(String(t.getHours())),minute:(0,Ae.lJ)(String(t.getMinutes()))}:{hour:(0,Ae.lJ)(String(t.getUTCHours())),minute:(0,Ae.lJ)(String(t.getUTCMinutes()))})}}),[W,Cn]),(0,c.useEffect)((function(){Xn&&Object.keys(Xn).length>0&&xe(!0)}),[Xn]),(0,c.useEffect)((function(){Ke(he?null===yn||void 0===yn?void 0:yn.reduce((function(e,n){var t=n.uuid,i=n.value;return qe(qe({},e),{},(0,r.Z)({},t,Xn[t]||i))}),{}):null)}),[yn,he,Xn]);var Gn=(0,c.useMemo)((function(){return(0,je._U)(kn)}),[kn]),Qn=(0,c.useMemo)((function(){return Gn&&un?a().toString(un,{throwExceptionOnParseError:!1}):""}),[un,Gn]),$n=(0,c.useMemo)((function(){return null===Qn||void 0===Qn?void 0:Qn.toLowerCase().includes("error")}),[Qn]);(0,c.useEffect)((function(){if(O&&!Ge){if(te(O.event_matchers),(0,je._U)(null===O||void 0===O?void 0:O.schedule_interval)){var e=W?(0,je.lO)(null===O||void 0===O?void 0:O.schedule_interval):null===O||void 0===O?void 0:O.schedule_interval;cn(e),Qe(qe(qe({},O),{},{schedule_interval:"custom"}))}else Qe(K?qe(qe({},O),{},{schedule_interval:oe.U5.ONCE}):O);var n=O.sla;if(n){Ue(!0);var t=(0,je.gU)(n),i=t.time,r=t.unit;Qe((function(e){return qe(qe({},e),{},{slaAmount:i,slaUnit:r})}))}}}),[W,K,O,Ge,kn]);var et=(0,c.useMemo)((function(){return!(null===Be||void 0===Be||!Be.landing_time_enabled)}),[Be]),nt=(0,c.useMemo)((function(){return oe.Xm.TIME!==wn||![oe.U5.DAILY,oe.U5.HOURLY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(kn)}),[kn,wn]),tt=(0,c.useMemo)((function(){return et&&!nt}),[nt,et]),it=(0,c.useCallback)((function(){var e=qe(qe({},(0,De.GL)(Ge,["name","description","schedule_type","tags"])),{},{event_matchers:[],schedule_interval:null,start_time:null,variables:(0,Me.e7)(qe(qe({},Ye),Q?(0,r.Z)({},oe.PN,Q):{}))});if(tt){var n=zn.dayOfMonth,t=zn.dayOfWeek,i=zn.hour,l=zn.minute,o=zn.second,u=v()("2023-07-01").utc();(0,me.HW)(n)&&(u=u.date(n)),(0,me.HW)(t)&&(u=u.day(t)),(0,me.HW)(i)&&(u=u.hours(i)),(0,me.HW)(l)&&(u=u.minutes(l)),(0,me.HW)(o)&&(u=u.seconds(o)),e.schedule_interval=Gn?un:Ge.schedule_interval,e.start_time=u.toISOString()}else oe.Xm.EVENT===Ge.schedule_type?e.event_matchers=ne:(e.schedule_interval=Gn?W&&!$n&&un?(0,je.lO)(un,!0):un:Ge.schedule_interval,e.start_time=Nn&&null!==qn&&void 0!==qn&&qn.hour&&null!==qn&&void 0!==qn&&qn.minute?(0,je.XM)(Nn,qn,{convertToUtc:W,includeSeconds:!0,localTimezone:W}):null);if(Le){var c=null===Ge||void 0===Ge?void 0:Ge.slaAmount,s=null===Ge||void 0===Ge?void 0:Ge.slaUnit;if(!c||isNaN(c)||!s)return void p.Am.error("Please enter a valid SLA",{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:"sla_error"});e.sla=(0,je.vJ)(c,s)}else null!==O&&void 0!==O&&O.sla&&(e.sla=0);e.settings=Be,Yn({pipeline_schedule:qe(qe({},e),{},{variables:en||(null===e||void 0===e?void 0:e.variables)})})}),[Q,$n,un,Nn,W,Le,ne,Gn,zn,O,Ye,Ge,Be,tt,qn,Yn,en]),rt=(0,c.useMemo)((function(){if(null===O||void 0===O||!O.runtime_average)return"Trigger doesn\u2019t have enough history to estimate runtime.";var e=Number(null===O||void 0===O?void 0:O.runtime_average),n=Math.max(Math.floor(e/3600),0),t=Math.max(Math.floor((e-60*n*60)/60),0),i=Math.max(Math.floor(e-(60*n*60+60*t)),0),r=[];return n>=1&&r.push((0,me._6)("hour",n,!0)),t>=1&&r.push((0,me._6)("minute",t,!0)),i>=1&&r.push((0,me._6)("second",i,!0)),r.join(" ")}),[O]),lt=(0,c.useMemo)((function(){if(!tt)return null;var e=[(0,H.jsxs)(S.Z,{mr:1,children:[(0,H.jsx)(S.Z,{mb:1,children:(0,H.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Minute"})}),(0,H.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return qe(qe({},n),{},{minute:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.minute)||"",children:[(0,H.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,H.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Minute"),(0,H.jsxs)(S.Z,{mr:1,children:[(0,H.jsx)(S.Z,{mb:1,children:(0,H.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Second"})}),(0,H.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return qe(qe({},n),{},{second:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.second)||"",children:[(0,H.jsx)("option",{value:""}),(0,A.w6)(60).map((function(e,n){return(0,H.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Second")];return[oe.U5.DAILY,oe.U5.MONTHLY,oe.U5.WEEKLY].includes(kn)&&e.unshift((0,H.jsxs)(S.Z,{mr:1,children:[(0,H.jsx)(S.Z,{mb:1,children:(0,H.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Hour"})}),(0,H.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return qe(qe({},n),{},{hour:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.hour)||"",children:[(0,H.jsx)("option",{value:""}),(0,A.w6)(24).map((function(e,n){return(0,H.jsx)("option",{value:n,children:n>=10?String(n):"0".concat(n)},n)}))]})]},"Hour")),oe.U5.WEEKLY===kn?e.unshift((0,H.jsxs)(S.Z,{mr:1,children:[(0,H.jsx)(S.Z,{mb:1,children:(0,H.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Day of the week"})}),(0,H.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return qe(qe({},n),{},{dayOfWeek:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.dayOfWeek)||"",children:[(0,H.jsx)("option",{value:""}),(0,H.jsx)("option",{value:6,children:"Sunday"}),(0,H.jsx)("option",{value:0,children:"Monday"}),(0,H.jsx)("option",{value:1,children:"Tuesday"}),(0,H.jsx)("option",{value:2,children:"Wednesday"}),(0,H.jsx)("option",{value:3,children:"Thursday"}),(0,H.jsx)("option",{value:4,children:"Friday"}),(0,H.jsx)("option",{value:5,children:"Saturday"})]})]},"Day of the week")):oe.U5.MONTHLY===kn&&e.unshift((0,H.jsxs)(S.Z,{mr:1,children:[(0,H.jsx)(S.Z,{mb:1,children:(0,H.jsx)(C.ZP,{bold:!0,default:!0,small:!0,children:"Day of the month"})}),(0,H.jsxs)(ae.Z,{compact:!0,monospace:!0,onChange:function(e){Fn((function(n){return qe(qe({},n),{},{dayOfMonth:e.target.value})}))},value:(null===zn||void 0===zn?void 0:zn.dayOfMonth)||"",children:[(0,H.jsx)("option",{value:""}),(0,A.w6)(31).map((function(e,n){return(0,H.jsx)("option",{value:n+1,children:n+1>=10?String(n+1):"0".concat(n+1)},n+1)}))]})]},"Day of the month")),(0,H.jsx)(k.ZP,{children:e})}),[zn,kn,tt]),ot=(0,c.useMemo)((function(){return[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.KJ,{default:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Trigger name"})]},"trigger_name"),(0,H.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return qe(qe({},n),{},{name:e.target.value})}))},placeholder:"Name this trigger",value:_n},"trigger_name_input")]}),[_n]),ut=(0,c.useMemo)((function(){return[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.KJ,{default:!0}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Trigger description"})]},"trigger_description"),(0,H.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return qe(qe({},n),{},{description:e.target.value})}))},placeholder:"Description",value:On},"trigger_description_input")]}),[On]),ct=(0,c.useMemo)((function(){var e=[ot,ut,[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.Pf,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Frequency"})]},"frequency"),(0,H.jsxs)("div",{children:[(0,H.jsxs)(ae.Z,{monospace:!0,onChange:function(e){e.preventDefault();var n=e.target.value;Qe((function(e){return qe(qe({},e),{},{schedule_interval:n})}))},placeholder:"Choose the frequency to run",value:kn,children:[Object.values(oe.U5).reduce((function(e,n){var t;return!hn||null!==bn&&void 0!==bn&&null!==(t=bn[oe.Xm.TIME])&&void 0!==t&&t[n]?e.concat((0,H.jsx)("option",{value:n,children:n.substring(1)},n)):e}),[]),!hn&&(0,H.jsx)("option",{value:"custom",children:"custom"},"custom")]}),!hn&&(0,H.jsx)(S.Z,{mt:1,p:1,children:(0,H.jsxs)(C.ZP,{muted:!0,small:!0,children:["If you don't see the frequency option you need, select ",(0,H.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:"custom"})," and enter CRON syntax."]})})]},"frequency_input")]];return hn||e.push([(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.rs,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Enable landing time"})]},"frequency"),(0,H.jsxs)("div",{children:[(0,H.jsx)(ve.Z,{checked:et,disabled:nt,onCheck:function(){We((function(e){return qe(qe({},e),{},{landing_time_enabled:!et})}))}}),(0,H.jsxs)(S.Z,{mt:1,p:1,children:[nt&&(0,H.jsxs)(C.ZP,{muted:!0,small:!0,children:["In order to enable landing time, the trigger\u2019s frequency must be ",(0,H.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.HOURLY}),", ",(0,H.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.DAILY}),", ",(0,H.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.WEEKLY}),", or ",(0,H.jsx)(C.ZP,{inline:!0,monospace:!0,small:!0,children:oe.U5.MONTHLY}),"."]}),!nt&&(0,H.jsx)(C.ZP,{muted:!0,small:!0,children:"Instead of starting at a specific time, this trigger will schedule pipeline runs at a time where it will finish by the specified time below."})]})]},"frequency_input")]),tt&&e.push([(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.Pf,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Average runtime"})]},"runtime_average"),(0,H.jsx)(k.ZP,{alignItems:"center",style:{minHeight:"".concat(5.75*D.iI,"px")},children:(0,H.jsx)(C.ZP,{monospace:!0,children:rt})},"runtime_average_value")]),e.push([(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.aw,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsxs)(C.ZP,{default:!0,children:[tt&&"Pipeline complete by",!tt&&"Start date and time"]})]},"start_time"),tt?lt:(0,H.jsxs)("div",{style:{minHeight:"".concat(5.75*D.iI,"px")},children:[!rn&&(0,H.jsx)(T.Z,{monospace:!0,onClick:function(){return ln((function(e){return!e}))},placeholder:"YYYY-MM-DD HH:MM",value:Nn?(0,je.XM)(Nn,qn,{localTimezone:W}):""}),(0,H.jsx)("div",{style:{width:"400px"},children:(0,H.jsx)(b.Z,{disableEscape:!0,onClickOutside:function(){return ln(!1)},open:rn,style:{position:"relative"},children:(0,H.jsx)(x.Z,{localTime:W,selectedDate:Nn,selectedTime:qn,setSelectedDate:An,setSelectedTime:Ln,topPosition:!0})})})]},"start_time_input")]),K&&e.splice(2,2),Gn&&e.splice(2,0,[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.EK,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"Cron expression"})]},"cron_expression"),(0,H.jsxs)("div",{children:[(0,H.jsx)(T.Z,{monospace:!0,onChange:function(e){e.preventDefault(),cn(e.target.value)},placeholder:"* * * * *",value:un}),(0,H.jsxs)(S.Z,{mt:1,p:1,children:[(0,H.jsx)(C.ZP,{monospace:!0,xsmall:!0,children:"[minute] [hour] [day(month)] [month] [day(week)]"}),(0,H.jsx)(S.Z,{mb:"2px"}),un?(0,H.jsx)(C.ZP,{danger:$n,muted:!0,small:!0,children:$n?"Invalid cron expression. Please check the cron syntax.":(0,H.jsxs)(H.Fragment,{children:['"',Qn,'"']})}):null,W&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(C.ZP,{bold:!0,inline:!0,small:!0,warning:!0,children:"Note:\xa0"}),(0,H.jsxs)(C.ZP,{inline:!0,small:!0,children:["If you have the display_local_timezone setting enabled, the local cron expression above will match your local timezone only",(0,H.jsx)("br",{}),"if the minute and hour values are single values without any special characters, such as the comma, hyphen, or slash.",(0,H.jsx)("br",{}),"You can still use cron expressions with special characters for the minute/hour values, but it will be based in UTC time."]})]})]})]},"cron_expression_input")]),(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{mb:2,px:D.cd,children:(0,H.jsx)(w.Z,{children:"Settings"})}),(0,H.jsx)(F.Z,{light:!0,short:!0}),(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:e})]})}),[$n,un,Nn,W,hn,Gn,K,nt,et,lt,bn,Qn,rt,kn,rn,tt,qn,ot,ut]),st=(0,c.useCallback)((function(e,n){te((function(t){return Object.entries(n).forEach((function(n){var i=(0,l.Z)(n,2),r=i[0],o=i[1];t[e][r]=o})),(0,i.Z)(t)}))}),[te]),at=(0,c.useMemo)((function(){return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,H.jsx)(w.Z,{children:"Settings"})}),(0,H.jsx)(F.Z,{light:!0,short:!0}),(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:[ot,ut]}),(0,H.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Events"}),(0,H.jsxs)(C.ZP,{muted:!0,children:["Add 1 or more event that will trigger this pipeline to run.",(0,H.jsx)("br",{}),"If you add more than 1 event, this pipeline will trigger if any of the events are received."]}),(0,H.jsxs)(S.Z,{mt:D.Mq,children:[(0,H.jsx)(C.ZP,{bold:!0,large:!0,children:"AWS events"}),(0,H.jsxs)(C.ZP,{muted:!0,children:["In order to retrieve all the possible AWS events you can trigger your pipeline from,",(0,H.jsx)("br",{}),"you\u2019ll need to set 3 environment variables (",(0,H.jsx)(V.Z,{href:"https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html",openNewWindow:!0,underline:!0,children:"more info here"}),"):"]}),(0,H.jsx)(S.Z,{mt:1,children:(0,H.jsxs)(ie,{monospace:!0,ordered:!0,children:[(0,H.jsx)(C.ZP,{monospace:!0,children:"AWS_REGION_NAME"}),(0,H.jsx)(C.ZP,{monospace:!0,children:"AWS_ACCESS_KEY_ID"}),(0,H.jsx)(C.ZP,{monospace:!0,children:"AWS_SECRET_ACCESS_KEY"})]})})]})]}),(0,H.jsx)(F.Z,{light:!0,short:!0}),(null===ne||void 0===ne?void 0:ne.length)>=1&&(0,H.jsx)(I.Z,{alignTop:!0,columnFlex:[1,1,2,null],columns:[{uuid:"Provider"},{uuid:"Event"},{uuid:"Pattern"},{label:function(){return""},uuid:"delete"}],rows:null===ne||void 0===ne?void 0:ne.map((function(e,n){var t=e.event_type,i=e.name,r=e.pattern,l=e.id||"".concat(t,"-").concat(i,"-").concat(n,"-").concat(JSON.stringify(r)),o=[];return r&&JSON.stringify(r,null,2).split("\n").forEach((function(e){o.push(" ".concat(e))})),[(0,H.jsx)(ae.Z,{monospace:!0,onChange:function(e){return st(n,{event_type:e.target.value})},placeholder:"Event provider",value:t||"",children:z.S5.map((function(e){var n=e.label,t=e.uuid;return(0,H.jsx)("option",{value:t,children:n()},t)}))},"event-provider-".concat(l)),(0,H.jsx)(ae.Z,{monospace:!0,onChange:function(e){var t,i=e.target.value,r=null===(t=Bn[i])||void 0===t?void 0:t.event_pattern;st(n,{name:i,pattern:r?JSON.parse(r):null})},placeholder:"Event name",value:i,children:Vn.map((function(e){var n=e.name;return(0,H.jsx)("option",{value:n,children:n},n)}))},"event-name-".concat(l)),r&&(0,H.jsx)(y.Z,{language:"json",small:!0,source:o.join("\n")}),(0,H.jsx)(j.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return te((function(e){return(0,A.oM)(e,n)}))},children:(0,H.jsx)(fe.rF,{default:!0,size:2*D.iI})},"remove_event")]}))}),(0,H.jsx)(S.Z,{p:D.cd,children:(0,H.jsx)(j.ZP,{beforeIcon:(0,H.jsx)(fe.mm,{size:2*D.iI}),onClick:function(){return te((function(e){return e.concat({})}))},outline:!0,children:"Add event matcher"})})]})}),[ne,Vn,Bn,ot,ut,st]),dt=(0,c.useMemo)((function(){var e=(0,je.M8)(O,Fe);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{mb:D.cd,px:D.cd,children:(0,H.jsx)(w.Z,{children:"Settings"})}),(0,H.jsx)(F.Z,{light:!0,short:!0}),(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:[ot,ut]}),(0,H.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Endpoint"}),(0,H.jsxs)(C.ZP,{muted:!0,children:["Make a ",(0,H.jsx)(C.ZP,{bold:!0,inline:!0,monospace:!0,children:"POST"})," request to the following endpoint:"]}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(P.Z,{copiedText:e,linkText:e,monospace:!0,withCopyIcon:!0})}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(S.Z,{mr:1,children:(0,H.jsx)(ve.Z,{checked:Fe,onCheck:function(){return Re(!Fe)}})}),(0,H.jsx)(C.ZP,{muted:!0,children:"Show alternative endpoint to pass token in headers"})]})})]}),Fe&&(0,H.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Headers"}),(0,H.jsx)(C.ZP,{muted:!0,children:"You will need to include the following headers in your request to authenticate with the server."}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(P.Z,{copiedText:"Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n "),withCopyIcon:!0,children:(0,H.jsx)(y.Z,{language:"json",small:!0,source:"\n Content-Type: application/json\n Authorization: Bearer ".concat(null===O||void 0===O?void 0:O.token,"\n ")})})})]}),(0,H.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Payload"}),(0,H.jsx)(C.ZP,{muted:!0,children:"You can optionally include runtime variables in your request payload. These runtime variables are accessible from within each pipeline block."}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(P.Z,{copiedText:'{\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n}\n',withCopyIcon:!0,children:(0,H.jsx)(y.Z,{language:"json",small:!0,source:'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\n'})})})]}),(0,H.jsxs)(S.Z,{mb:2,mt:5,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Sample cURL command"}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(y.Z,{language:"bash",small:!0,source:Fe?"\n curl -X POST ".concat(e," \\\n --header 'Content-Type: application/json' \\\n --header 'Authorization: Bearer ").concat(null===O||void 0===O?void 0:O.token,'\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n '):"\n curl -X POST ".concat(e,' \\\n --header \'Content-Type: application/json\' \\\n --data \'\n {\n "pipeline_run": {\n "variables": {\n "key1": "value1",\n "key2": "value2"\n }\n }\n }\'\n')})})]})]})}),[O,Re,ut,ot,Fe]),vt=!wn||oe.Xm.TIME===wn&&!(K&&Nn||!K&&Nn&&kn)||oe.Xm.EVENT===wn&&(!(null!==ne&&void 0!==ne&&ne.length)||!ne.every((function(e){var n=e.event_type,t=e.name;return n&&t}))),pt=(0,c.useMemo)((function(){var e;return(null===d||void 0===d||null===(e=d.blocks)||void 0===e?void 0:e.filter((function(e){var n=e.type;return Pe.tf.DBT===n})))||[]}),[d]),ht=(0,c.useMemo)((function(){return null!==d&&void 0!==d&&d.blocks?(0,Ce.n)(d):null}),[d]),ft=(0,c.useMemo)((function(){var e,n;return(0,H.jsxs)(S.Z,{py:D.cd,children:[(0,H.jsxs)(S.Z,{mb:D.HN,px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Run settings"}),(0,H.jsxs)(S.Z,{mt:D.Mq,children:[!K&&(0,H.jsxs)(S.Z,{mb:D.Mq,children:[(0,H.jsx)(C.ZP,{children:"Set a timeout for each run of this trigger (optional)"}),(0,H.jsx)(S.Z,{mb:1}),(0,H.jsx)(T.Z,{label:"Timeout (in seconds)",onChange:function(e){return We((function(n){return qe(qe({},n),{},{timeout:e.target.value})}))},primary:!0,setContentOnMount:!0,type:"number",value:null===Be||void 0===Be?void 0:Be.timeout})]}),(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(S.Z,{mr:2,children:(0,H.jsx)(ve.Z,{checked:Le,onCheck:function(e){Ue(e),e||Qe((function(e){return qe(qe({},e),{},{slaAmount:0})}))}})}),(0,H.jsx)(C.ZP,{default:!0,monospace:!0,children:"Configure trigger SLA"})]}),Le&&(0,H.jsx)(I.Z,{columnFlex:[null,1],rows:[[(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(fe.aw,{default:!0,size:1.5*D.iI}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:!0,children:"SLA"})]},"sla_detail"),(0,H.jsxs)(k.ZP,{children:[(0,H.jsx)(R.Z,{flex:1,children:(0,H.jsx)(T.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return qe(qe({},n),{},{slaAmount:e.target.value})}))},placeholder:"Time",value:null===Ge||void 0===Ge?void 0:Ge.slaAmount})}),(0,H.jsx)(R.Z,{flex:1,children:(0,H.jsx)(ae.Z,{fullWidth:!0,monospace:!0,noBorder:!0,onChange:function(e){e.preventDefault(),Qe((function(n){return qe(qe({},n),{},{slaUnit:e.target.value})}))},placeholder:"Select time unit",small:!0,value:null===Ge||void 0===Ge?void 0:Ge.slaUnit,children:Object.keys(je.tL).map((function(e){return(0,H.jsx)("option",{value:e,children:"".concat(e,"(s)")},e)}))})})]},"sla_input_detail")]]})]}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(k.ZP,{alignItems:"center",children:(0,H.jsx)(Z.Z,{checked:null===Be||void 0===Be?void 0:Be.allow_blocks_to_fail,label:"Keep running pipeline even if blocks fail",onClick:function(){return We((function(e){return qe(qe({},e),{},{allow_blocks_to_fail:!(null!==Be&&void 0!==Be&&Be.allow_blocks_to_fail)})}))}})})}),oe.Xm.TIME===wn&&(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(k.ZP,{alignItems:"center",children:(0,H.jsx)(Z.Z,{checked:null===Be||void 0===Be?void 0:Be.skip_if_previous_running,label:"Skip run if previous run still in progress",onClick:function(){return We((function(e){return qe(qe({},e),{},{skip_if_previous_running:!(null!==Be&&void 0!==Be&&Be.skip_if_previous_running)})}))}})})})]}),(0,H.jsxs)(S.Z,{mb:D.HN,children:[(0,H.jsxs)(S.Z,{px:D.cd,children:[(0,H.jsx)(w.Z,{children:"Runtime variables"}),(0,De.Qr)(yn)&&(0,H.jsxs)(S.Z,{mt:1,children:[(0,H.jsx)(C.ZP,{default:!0,children:"This pipeline has no runtime variables."}),(0,H.jsx)(u(),{as:"/pipelines/".concat(J,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,H.jsx)(V.Z,{primary:!0,children:"Click here"})})," ",(0,H.jsx)(C.ZP,{default:!0,inline:!0,children:"to add variables to this pipeline."})]})]}),(0,H.jsx)(S.Z,{mt:D.Mq,children:(0,H.jsx)(re.Z,{enableVariablesOverwrite:!0,originalVariables:null===O||void 0===O?void 0:O.variables,runtimeVariables:Ye,setRuntimeVariables:Ke})})]}),ht&&(null===(e=Object.keys(ht||{}))||void 0===e?void 0:e.length)>=1&&(0,H.jsxs)(S.Z,{mb:D.HN,children:[(0,H.jsx)(S.Z,{px:D.cd,children:(0,H.jsx)(w.Z,{children:"Override bookmark values"})}),(0,H.jsx)(m.Z,{bookmarkValues:Q,originalBookmarkValues:null===O||void 0===O||null===(n=O.variables)||void 0===n?void 0:n[oe.PN],pipeline:d,setBookmarkValues:$})]}),(null===pt||void 0===pt?void 0:pt.length)>=1&&(0,H.jsx)(S.Z,{mb:D.HN,children:(0,H.jsx)(U,{blocks:pt,updateVariables:Ke,variables:qe(qe({},Xn),Ye)})})]})}),[ht,Q,pt,Le,yn,K,he,d,J,Ye,Ge,wn,Xn,$,Ue,xe,Ke,Be]),mt=be.ZP.tags.list().data,jt=(0,c.useMemo)((function(){return((null===mt||void 0===mt?void 0:mt.tags)||[]).filter((function(e){var n=e.uuid;return!(null!==Tn&&void 0!==Tn&&Tn.includes(n))}))}),[mt,Tn]),gt=(0,c.useMemo)((function(){return(0,je.ri)(K)}),[K]),xt=(0,c.useMemo)((function(){return(0,H.jsx)(Ze,{containerRef:L,date:Nn,interactions:gn,pipeline:d,pipelineInteraction:jn,pipelineSchedule:Ge,setVariables:function(e){Qe((function(n){var t=qe({},e((null===n||void 0===n?void 0:n.variables)||{})),i=qe({},t);return null===gn||void 0===gn||gn.forEach((function(e){Object.entries((null===e||void 0===e?void 0:e.variables)||{}).forEach((function(e){var n=(0,l.Z)(e,2),t=n[0],r=n[1].types;i&&t in i&&(i[t]=(0,Te.M)(i[t],r))}))})),nn(i),qe(qe({},n),{},{variables:t})}))},showSummary:Se.uuid===dn,time:qn,triggerTypes:gt,variables:null===Ge||void 0===Ge?void 0:Ge.variables})}),[L,Nn,gn,d,jn,Ge,dn,Qe,nn,qn,gt]),Zt=(0,c.useMemo)((function(){return oe.fq.ACTIVE===(null===Ge||void 0===Ge?void 0:Ge.status)}),[Ge]),bt=M?null===M||void 0===M?void 0:M((function(e){return B.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===d||void 0===d?void 0:d.uuid,"/triggers/").concat(e))})):[null,{isLoading:!1}],yt=(0,l.Z)(bt,2),Pt=yt[0],Ot=yt[1].isLoading,_t=(0,c.useCallback)((function(){null===Pt||void 0===Pt||Pt({pipeline_schedule:qe(qe({},Ge),{},{variables:en||(null===Ge||void 0===Ge?void 0:Ge.variables)})})}),[Pt,en,Ge]),kt=(0,c.useMemo)((function(){var e,n;return Y?(e=(0,H.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(J,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel and go back"}),n=(0,H.jsx)(j.ZP,{onClick:it,primary:!0,children:"Save trigger"})):we.uuid===dn?(e=(0,H.jsx)(j.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"}),n=(0,H.jsx)(j.ZP,{afterIcon:(0,H.jsx)(fe.Kw,{}),onClick:function(){return vn(ke.uuid)},primary:!0,children:"Next: Customize"})):ke.uuid===dn?(e=(0,H.jsx)(j.ZP,{beforeIcon:(0,H.jsx)(fe.Hd,{}),onClick:function(){return vn(we.uuid)},secondary:!0,children:"Back: Settings"}),n=(0,H.jsx)(j.ZP,{afterIcon:(0,H.jsx)(fe.Kw,{}),onClick:function(){return vn(Se.uuid)},primary:!0,children:"Next: Review"})):Se.uuid===dn&&(e=(0,H.jsx)(j.ZP,{beforeIcon:(0,H.jsx)(fe.Hd,{}),onClick:function(){return vn(ke.uuid)},secondary:!0,children:"Back: Customize"}),n=(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(j.ZP,{beforeIcon:(0,H.jsx)(fe.Bf,{}),loading:Ot,onClick:function(){return _t()},primary:!0,children:Y?"Save trigger":"Create trigger"}),!Y&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{mr:D.cd}),(0,H.jsx)(ve.Z,{checked:Zt,compact:!0,onCheck:function(e){return Qe((function(n){return qe(qe({},n),{},{status:e(Zt)?oe.fq.ACTIVE:oe.fq.INACTIVE})}))}}),(0,H.jsx)(S.Z,{mr:1}),(0,H.jsx)(C.ZP,{default:Zt,muted:!Zt,small:!0,children:"Set trigger to be active immediately after creating"})]})]})),(0,H.jsx)(S.Z,{p:D.cd,children:(0,H.jsxs)(k.ZP,{alignItems:"center",children:[e,e&&n&&(0,H.jsx)(S.Z,{mr:D.cd}),n]})})}),[_t,Ot,Zt,s,it,Y,J,dn,vn]),wt=(0,c.useMemo)((function(){var e,n,t,i,r,l,o;return"undefined"===typeof(null===d||void 0===d||null===(e=d.settings)||void 0===e||null===(n=e.triggers)||void 0===n?void 0:n.save_in_code_automatically)?null===q||void 0===q||null===(t=q.pipelines)||void 0===t||null===(i=t.settings)||void 0===i||null===(r=i.triggers)||void 0===r?void 0:r.save_in_code_automatically:null===d||void 0===d||null===(l=d.settings)||void 0===l||null===(o=l.triggers)||void 0===o?void 0:o.save_in_code_automatically}),[d,q]);return(0,H.jsx)(H.Fragment,{children:(0,H.jsx)(le.Z,{after:!hn&&ft,afterHidden:hn,breadcrumbs:[{label:function(){return"Triggers"},linkProps:{as:"/pipelines/".concat(J,"/triggers"),href:"/pipelines/[pipeline]/triggers"}},{label:function(){return null===O||void 0===O?void 0:O.name},linkProps:{as:"/pipelines/".concat(J,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"}}],errors:t,pageName:_e.M.TRIGGERS,pipeline:d,setErrors:_,subheader:hn||Zn?(0,H.jsx)(S.Z,{px:D.cd,children:(0,H.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return vn(n)},regularSizeText:!0,selectedTabUUID:dn,tabs:Ie,underlineColor:(0,N.qn)(Pe.tf.DATA_LOADER).accent,underlineStyle:!0})}):(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(j.ZP,{disabled:vt,loading:Kn,onClick:it,outline:!0,primary:!0,children:"Save changes"}),(0,H.jsx)(S.Z,{mr:D.cd}),(0,H.jsx)(j.ZP,{linkProps:{as:"/pipelines/".concat(J,"/triggers/").concat(Y),href:"/pipelines/[pipeline]/triggers/[...slug]"},noHoverUnderline:!0,outline:!0,sameColorAsText:!0,children:"Cancel"}),wt&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(S.Z,{mr:D.cd}),(0,H.jsxs)(C.ZP,{default:!0,xsmall:!0,children:["This trigger will automatically be persisted in code.",(0,H.jsx)("br",{}),"To change this behavior, update the ",(0,H.jsx)(u(),{as:"/pipelines/".concat(J,"/settings"),href:"/pipelines/[pipeline]/settings",passHref:!0,children:(0,H.jsx)(V.Z,{openNewWindow:!0,xsmall:!0,children:"pipeline\u2019s settings"})})," or ",(0,H.jsx)(u(),{as:"/settings/workspace/preferences",href:"/settings/workspace/preferences",passHref:!0,children:(0,H.jsx)(V.Z,{openNewWindow:!0,xsmall:!0,children:"project settings"})}),"."]})]})]}),subheaderNoPadding:hn||Zn,title:function(){return null!==O&&void 0!==O&&O.name?"Edit ".concat(null===O||void 0===O?void 0:O.name):"New trigger"},uuid:"triggers/edit",children:(0,H.jsxs)("div",{ref:L,children:[(hn||Zn)&&(0,H.jsx)(F.Z,{light:!0}),(hn||Zn)&&(ke.uuid===dn||Se.uuid===dn)&&xt,(!hn||we.uuid===dn)&&(!Zn||we.uuid===dn)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(S.Z,{p:D.cd,children:[(0,H.jsxs)(S.Z,{mb:2,children:[(0,H.jsx)(w.Z,{children:"Trigger type"}),(0,H.jsx)(C.ZP,{muted:!0,children:"How would you like this pipeline to be triggered?"})]}),(0,H.jsx)(k.ZP,{children:gt.reduce((function(e,n){var t=n.label,i=n.description,r=n.uuid,l=wn===r,o=wn&&!l;return!hn||null!==bn&&void 0!==bn&&bn[r]?e.concat((0,H.jsx)(j.ZP,{noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){oe.Xm.EVENT!==r||null!==ne&&void 0!==ne&&ne.length||te([{}]),Qe((function(e){return qe(qe({},e),{},{schedule_type:r})}))},children:(0,H.jsx)(Oe.U,{selected:l,children:(0,H.jsxs)(k.ZP,{alignItems:"center",children:[(0,H.jsx)(R.Z,{children:(0,H.jsx)("input",{checked:l,type:"radio"})}),(0,H.jsx)(S.Z,{mr:D.cd}),(0,H.jsxs)(R.Z,{alignItems:"flex-start",flexDirection:"column",children:[(0,H.jsx)(w.Z,{bold:!0,default:!l&&!o,level:5,muted:!l&&o,children:t()}),(0,H.jsx)(C.ZP,{default:!l&&!o,leftAligned:!0,muted:o,children:i()})]})]})})},r)):e}),[])})]}),(0,H.jsxs)(S.Z,{mt:D.HN,children:[oe.Xm.TIME===wn&&ct,oe.Xm.EVENT===wn&&at,oe.Xm.API===wn&&dt]}),!hn&&(0,H.jsxs)(S.Z,{mt:D.HN,px:D.cd,children:[(0,H.jsxs)(S.Z,{mb:2,children:[(0,H.jsx)(w.Z,{children:"Tags"}),(0,H.jsx)(C.ZP,{muted:!0,children:"Add or remove tags from this trigger."})]}),(0,H.jsx)(de.Z,{removeTag:function(e){Qe((function(n){return qe(qe({},n),{},{tags:null===Tn||void 0===Tn?void 0:Tn.filter((function(n){return n!==e.uuid}))})}))},selectTag:function(e){Qe((function(n){return qe(qe({},n),{},{tags:(0,A.$C)(e.uuid,Tn,(function(n){return n===e.uuid}))})}))},selectedTags:null===Tn||void 0===Tn?void 0:Tn.map((function(e){return{uuid:e}})),tags:jt,uuid:"TagsAutocompleteInputField-trigger-".concat(Y)})]})]}),(hn||Zn)&&kt]})})})}},37899:function(e,n,t){var i=t(82394),r=t(75582),l=t(82684),o=t(71180),u=t(15338),c=t(97618),s=t(55485),a=t(38276),d=t(75499),v=t(30160),p=t(35576),h=t(17488),f=t(72473),m=t(70515),j=t(42122),g=t(81728),x=t(28598);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){e.borderless,e.compact;var n=e.enableVariablesOverwrite,t=e.originalVariables,Z=e.runtimeVariables,y=(e.setEnableVariablesOverwrite,e.setRuntimeVariables),P=(0,l.useState)({}),O=P[0],_=P[1],k=(0,l.useState)(null),w=k[0],S=k[1],I=(0,l.useState)(null),C=I[0],T=I[1];(0,l.useEffect)((function(){var e=Object.entries(Z||{}).reduce((function(e,n){var t=(0,r.Z)(n,2),l=t[0],o=t[1],u=(0,g.Pb)(o)&&"object"===typeof JSON.parse(o)&&!Array.isArray(JSON.parse(o))&&null!==JSON.parse(o);return b(b({},e),{},(0,i.Z)({},l,u))}),{});_(e)}),[]);var E=function(e,n){var t={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),y((function(t){return b(b({},t),{},(0,i.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return O[e]?(0,x.jsx)(p.Z,b(b({},t),{},{rows:1,value:n})):(0,x.jsx)(h.Z,b({},t))};return(0,x.jsxs)(x.Fragment,{children:[n&&Z&&Object.entries(Z).length>0&&(0,x.jsx)(d.Z,{columnFlex:[null,1,null],columns:[{uuid:"Variable"},{uuid:"Value"},{label:function(){return""},uuid:"Action"}],rows:Object.entries(Z).map((function(e){var n=(0,r.Z)(e,2),i=n[0],l=n[1];return[(0,x.jsx)(v.ZP,{default:!0,monospace:!0,children:i},"variable_".concat(i)),E(i,l),!(null!==t&&void 0!==t&&t[i])&&(0,x.jsx)(o.ZP,{iconOnly:!0,onClick:function(){y((function(e){return(0,j.gR)(e,[i])}))},children:(0,x.jsx)(f.rF,{default:!0})})]}))}),(0,x.jsx)(a.Z,{p:m.cd,children:(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(h.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return S(e.target.value)},placeholder:"New variable UUID",value:w||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,children:(0,x.jsx)(h.Z,{fullWidth:!0,monospace:!0,onChange:function(e){return T(e.target.value)},placeholder:"Variable value",value:C||""})}),(0,x.jsx)(a.Z,{mr:1}),(0,x.jsx)(o.ZP,{beforeIcon:(0,x.jsx)(f.mm,{}),disabled:!w||!C,onClick:function(){y((function(e){return b(b({},e),{},(0,i.Z)({},w,C))})),S(null),T(null)},children:"Add runtime variable"})]})}),(0,x.jsx)(u.Z,{light:!0})]})}},97196:function(e,n,t){t.d(n,{S5:function(){return l},_P:function(){return o}});var i,r=t(86735);!function(e){e.AWS="aws_event"}(i||(i={}));var l=[{label:function(){return"AWS"},uuid:i.AWS}],o=(0,r.HK)(l,(function(e){return e.uuid}))},83784:function(e,n,t){t.d(n,{C:function(){return i}});var i="global"},14805:function(e,n,t){var i=t(82394),r=t(44495),l=t(55485),o=t(44085),u=t(38276),c=t(30160),s=t(88785),a=t(70515),d=t(86735),v=t(28598);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function h(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.localTime,t=e.selectedDate,i=e.selectedTime,p=e.setSelectedDate,f=e.setSelectedTime,m=e.topPosition;return(0,v.jsxs)(s.J,{absolute:!0,topPosition:m,children:[(0,v.jsx)(r.ZP,{onChange:p,value:t}),(0,v.jsx)(u.Z,{mb:2}),(0,v.jsxs)(l.ZP,{alignItems:"center",children:[(0,v.jsxs)(c.ZP,{default:!0,large:!0,children:["Time (",n?"Local":"UTC","):"]}),(0,v.jsx)(u.Z,{pr:2}),(0,v.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{hour:e.target.value})}))},paddingRight:5*a.iI,placeholder:"HH",value:null===i||void 0===i?void 0:i.hour,children:(0,d.m5)(24,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},"hour_".concat(e))}))}),(0,v.jsx)(u.Z,{px:1,children:(0,v.jsx)(c.ZP,{bold:!0,large:!0,children:":"})}),(0,v.jsx)(o.Z,{compact:!0,monospace:!0,onChange:function(e){e.preventDefault(),f((function(n){return h(h({},n),{},{minute:e.target.value})}))},paddingRight:5*a.iI,placeholder:"MM",value:null===i||void 0===i?void 0:i.minute,children:(0,d.m5)(60,0).map((function(e){return String(e).padStart(2,"0")})).map((function(e){return(0,v.jsx)("option",{value:e,children:e},"minute_".concat(e))}))})]})]})}},79500:function(e,n,t){t.d(n,{a:function(){return l}});var i=t(16488),r=t(3917);function l(e,n){var t,l;if(null!==n&&void 0!==n&&n.localTimezone)t=(0,r.n$)(e),l={hour:(0,r.lJ)(String(t.getHours())),minute:(0,r.lJ)(String(t.getMinutes()))};else{var o=e.split(" ")[1];t=(0,i.eI)(e),l={hour:o.substring(0,2),minute:o.substring(3,5)}}return{date:t,time:l}}},9134:function(e,n,t){var i=t(82684),r=t(21124),l=t(68432),o=t(38626),u=t(65292),c=t(44897),s=t(95363),a=t(70515),d=t(28598);n.Z=function(e){var n=e.language,t=e.maxWidth,v=e.showLineNumbers,p=e.small,h=e.source,f=e.wrapLines,m=(0,i.useContext)(o.ThemeContext);function j(e){var i=e.value;return(0,d.jsx)(l.Z,{customStyle:{backgroundColor:(m.background||c.Z.background).popup,border:"none",borderRadius:"none",boxShadow:"none",fontFamily:s.Vp,fontSize:p?12:14,marginBottom:0,marginTop:0,maxWidth:t,paddingBottom:2*a.iI,paddingTop:2*a.iI},language:n,lineNumberStyle:{color:(m.content||c.Z.content).muted},showLineNumbers:v,style:u._4,useInlineStyles:!0,wrapLines:f,children:i})}return(0,d.jsx)(r.D,{components:{code:function(e){var n=e.children;return(0,d.jsx)(j,{value:n})}},children:h})}},32080:function(e,n,t){t.d(n,{n:function(){return l}});var i=t(44425),r=t(61599);function l(e){var n,t={};return null===e||void 0===e||null===(n=e.blocks)||void 0===n||n.forEach((function(e){var n=e.catalog,l=e.type,o=e.uuid;if(i.tf.DATA_LOADER===l&&null!==n&&void 0!==n&&n.streams){var u,c=null===n||void 0===n||null===(u=n.streams)||void 0===u?void 0:u.filter((function(e){var n=e.replication_method;return r._B.INCREMENTAL===n}));(null===c||void 0===c?void 0:c.length)>=1&&(o in t||(t[o]={block:e,streams:[]}),t[o].streams.push(c))}})),t}}}]);