mage-ai 0.9.12__py3-none-any.whl → 0.9.14__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 (325) hide show
  1. mage_ai/ai/generator.py +1 -1
  2. mage_ai/ai/generator_cmds.py +1 -1
  3. mage_ai/ai/llm_pipeline_wizard.py +31 -17
  4. mage_ai/api/policies/BlockPolicy.py +1 -0
  5. mage_ai/api/policies/PipelineRunPolicy.py +1 -0
  6. mage_ai/api/policies/PipelineSchedulePolicy.py +12 -0
  7. mage_ai/api/policies/TagPolicy.py +18 -0
  8. mage_ai/api/presenters/BlockRunPresenter.py +4 -1
  9. mage_ai/api/presenters/PipelineRunPresenter.py +2 -0
  10. mage_ai/api/presenters/PipelineSchedulePresenter.py +9 -2
  11. mage_ai/api/presenters/TagPresenter.py +3 -0
  12. mage_ai/api/resources/BackfillResource.py +6 -3
  13. mage_ai/api/resources/BlockResource.py +2 -0
  14. mage_ai/api/resources/BlockRunResource.py +18 -12
  15. mage_ai/api/resources/DatabaseResource.py +23 -0
  16. mage_ai/api/resources/GitBranchResource.py +8 -1
  17. mage_ai/api/resources/GlobalDataProductResource.py +5 -2
  18. mage_ai/api/resources/PipelineResource.py +30 -14
  19. mage_ai/api/resources/PipelineScheduleResource.py +157 -1
  20. mage_ai/api/resources/SearchResultResource.py +1 -0
  21. mage_ai/api/resources/TagResource.py +16 -3
  22. mage_ai/data_integrations/sources/constants.py +1 -0
  23. mage_ai/data_preparation/git/__init__.py +18 -0
  24. mage_ai/data_preparation/models/block/__init__.py +34 -11
  25. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +37 -10
  26. mage_ai/data_preparation/models/block/integration/__init__.py +1 -1
  27. mage_ai/data_preparation/models/block/sql/__init__.py +44 -2
  28. mage_ai/data_preparation/models/custom_templates/utils.py +14 -4
  29. mage_ai/data_preparation/models/global_data_product/__init__.py +8 -0
  30. mage_ai/data_preparation/models/pipeline.py +4 -0
  31. mage_ai/data_preparation/models/variable.py +5 -2
  32. mage_ai/data_preparation/repo_manager.py +28 -16
  33. mage_ai/io/clickhouse.py +9 -6
  34. mage_ai/io/redshift.py +9 -10
  35. mage_ai/io/utils.py +3 -1
  36. mage_ai/orchestration/db/migrations/README.md +39 -2
  37. mage_ai/orchestration/db/migrations/env.py +1 -0
  38. mage_ai/orchestration/db/migrations/versions/386bcfebd48d_create_tag_and_tagassociation_tables.py +59 -0
  39. mage_ai/orchestration/db/models/schedules.py +29 -2
  40. mage_ai/orchestration/db/models/tags.py +57 -0
  41. mage_ai/orchestration/pipeline_scheduler.py +7 -7
  42. mage_ai/orchestration/triggers/global_data_product.py +41 -40
  43. mage_ai/orchestration/triggers/utils.py +11 -1
  44. mage_ai/server/constants.py +1 -1
  45. mage_ai/server/frontend_dist/404.html +2 -2
  46. mage_ai/server/frontend_dist/404.html.html +2 -2
  47. mage_ai/server/frontend_dist/_next/static/CNjkRIWPaAu1yJUmIaX_q/_buildManifest.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
  49. mage_ai/server/frontend_dist/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/2485-39885e5335888821.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
  56. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
  58. mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
  59. mage_ai/server/frontend_dist/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
  60. mage_ai/server/frontend_dist/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  62. mage_ai/server/frontend_dist/_next/static/chunks/7722-76c724a66240561b.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
  64. mage_ai/server/frontend_dist/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
  65. mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
  66. mage_ai/server/frontend_dist/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
  89. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
  91. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
  92. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
  94. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
  95. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
  96. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
  97. mage_ai/server/frontend_dist/files.html +2 -2
  98. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  99. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  100. mage_ai/server/frontend_dist/index.html +2 -2
  101. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  102. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  103. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  104. mage_ai/server/frontend_dist/manage/users.html +2 -2
  105. mage_ai/server/frontend_dist/manage.html +2 -2
  106. mage_ai/server/frontend_dist/overview.html +2 -2
  107. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  113. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  114. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  115. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  116. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  117. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  118. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  119. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  120. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  121. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  122. mage_ai/server/frontend_dist/pipelines.html +2 -2
  123. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  124. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  125. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  126. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  127. mage_ai/server/frontend_dist/settings.html +2 -2
  128. mage_ai/server/frontend_dist/sign-in.html +11 -11
  129. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  130. mage_ai/server/frontend_dist/templates.html +2 -2
  131. mage_ai/server/frontend_dist/terminal.html +2 -2
  132. mage_ai/server/frontend_dist/test.html +3 -3
  133. mage_ai/server/frontend_dist/triggers.html +2 -2
  134. mage_ai/server/frontend_dist/version-control.html +2 -2
  135. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  136. mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
  138. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-39885e5335888821.js +1 -0
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
  145. mage_ai/server/{frontend_dist/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist_base_path_template/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
  149. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
  150. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  151. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-76c724a66240561b.js +1 -0
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
  153. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
  157. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
  158. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
  160. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
  161. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
  168. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
  170. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
  171. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
  174. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
  175. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
  178. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
  180. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
  181. mage_ai/server/{frontend_dist/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
  183. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/yJvL-3bfsNF3WCStZ10Dm/_buildManifest.js +1 -0
  187. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  188. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  189. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  190. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  191. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  192. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  193. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  194. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  195. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  196. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  197. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  198. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  199. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  200. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  201. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  202. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  203. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  204. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  205. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  206. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  207. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  208. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  209. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  210. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  211. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  212. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  213. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  214. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  215. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  216. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  217. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  218. mage_ai/server/frontend_dist_base_path_template/sign-in.html +11 -11
  219. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  220. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  221. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  222. mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
  223. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  224. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  225. mage_ai/server/server.py +53 -27
  226. mage_ai/services/spark/spark.py +75 -2
  227. mage_ai/streaming/constants.py +1 -0
  228. mage_ai/streaming/sources/kafka.py +17 -9
  229. mage_ai/tests/data_preparation/models/custom_templates/__init__.py +0 -0
  230. mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +36 -0
  231. mage_ai/tests/data_preparation/models/test_block.py +48 -0
  232. mage_ai/tests/data_preparation/test_repo_manager.py +19 -1
  233. mage_ai/tests/server/test_server.py +20 -2
  234. mage_ai/tests/services/spark/__init__.py +0 -0
  235. mage_ai/tests/services/spark/test_spark.py +52 -0
  236. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/METADATA +1 -1
  237. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/RECORD +245 -233
  238. mage_ai/server/frontend_dist/_next/static/RdDEYzOW6lfmOEilKsz4V/_buildManifest.js +0 -1
  239. mage_ai/server/frontend_dist/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
  240. mage_ai/server/frontend_dist/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
  241. mage_ai/server/frontend_dist/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
  242. mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
  243. mage_ai/server/frontend_dist/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
  244. mage_ai/server/frontend_dist/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
  245. mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
  246. mage_ai/server/frontend_dist/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
  247. mage_ai/server/frontend_dist/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
  248. mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
  249. mage_ai/server/frontend_dist/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
  250. mage_ai/server/frontend_dist/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
  251. mage_ai/server/frontend_dist/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
  252. mage_ai/server/frontend_dist/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
  253. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
  254. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
  255. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
  256. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
  257. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
  258. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
  259. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
  260. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
  261. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
  262. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
  263. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
  264. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
  265. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
  266. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
  267. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
  268. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
  269. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
  270. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
  271. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
  272. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
  273. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
  274. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
  275. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/4dbzHNz2XwS_s6Z0qsIGO/_buildManifest.js +0 -1
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
  318. /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_middlewareManifest.js +0 -0
  319. /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_ssgManifest.js +0 -0
  320. /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_middlewareManifest.js +0 -0
  321. /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_ssgManifest.js +0 -0
  322. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/LICENSE +0 -0
  323. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/WHEEL +0 -0
  324. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/entry_points.txt +0 -0
  325. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8952],{35438:function(n,e,o){o.d(e,{Ai:function(){return l},Jo:function(){return r},bJ:function(){return c},rl:function(){return t}});var t,i=o(86422),r=(o(49125).iI,1e4),l={compact:!0},c={height:10,width:10};i.tf.DATA_EXPORTER,i.tf.SENSOR,i.Lq.GREY,i.Lq.PINK,i.Lq.TEAL,i.Lq.YELLOW;!function(n){n.NORTH="NORTH",n.SOUTH="SOUTH"}(t||(t={}))},48952:function(n,e,o){o.d(e,{Z:function(){return yn}});var t=o(75582),i=o(21831),r=o(82394),l=o(26304),c=o(77837),u=o(38860),d=o.n(u),a=o(51774),s=o.n(a),v=o(38626),f=o(4804),p=o(82684),h=o(83455),b=o(18283),m=o(86422),k=o(16634),g=o(93461),x=o(67971),y=o(86673),O=o(54283),C=o(19711),j=o(23831),E=o(22341),I=o(73942),T=o(49125),Z=3*T.iI,w=v.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-kc7274-0"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;overflow:hidden;"," "," "," "," "," "," "," ",""],I.n_,(function(n){return"\n background-color: ".concat((n.theme.background||j.Z.background).codeTextarea,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")}),(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||j.Z.content).muted,";\n border-style: dotted;\n cursor: not-allowed;\n opacity: 0.5;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||j.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||j.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),_=v.default.div.withConfig({displayName:"indexstyle__StatusStyle",componentId:"sc-kc7274-1"})(["height:","px;width:","px;"],2*T.iI,2*T.iI),A=v.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-kc7274-2"})(["align-items:center;border-radius:","px;border:2px solid transparent;display:flex;height:","px;justify-content:center;width:","px;"," ",""],I.BG,5*T.iI,5*T.iI,(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n border-color: ").concat(n.backgroundColor,";\n ")}),(function(n){return n.borderColor&&"\n border-color: ".concat(n.borderColor,";\n ")})),D=v.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-kc7274-3"})(["padding:","px;",""],1*T.iI,(function(n){return"\n background-color: ".concat((n.theme.background||j.Z.background).dashboard,";\n ")})),S=v.default.div.withConfig({displayName:"indexstyle__BodyStyle",componentId:"sc-kc7274-4"})(["padding-left:","px;padding-right:","px;"],1*T.iI,1*T.iI),R=(v.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-kc7274-5"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),o(98781)),P=o(75968),N=o(25958),B=T.cd,L=T.cd*T.iI,M=2*T.iI,F=7.43,H=2*T.iI+5*T.iI,U=2*T.iI+5*T.iI+L+L+M,G=30*T.iI;function V(n){var e=(0,P.MS)(n);if((null===e||void 0===e?void 0:e.length)>=1)return(null===e||void 0===e?void 0:e.map((function(n){return n.title})).join(", "))||"";if(m.tf.GLOBAL_DATA_PRODUCT===(null===n||void 0===n?void 0:n.type)){var o,t=null===n||void 0===n||null===(o=n.configuration)||void 0===o?void 0:o.global_data_product;if(null!==t&&void 0!==t&&t.uuid)return null===t||void 0===t?void 0:t.uuid}return m.dO[null===n||void 0===n?void 0:n.language]||""}function q(n,e){var o,t=n.type,i=(null===m.V4||void 0===m.V4?void 0:m.V4[t])||t;if(R.qL.INTEGRATION===(null===e||void 0===e?void 0:e.type)&&m.tf.TRANSFORMER!==n.type){var r,l={};if(m.t6.YAML===n.language&&(l=(0,f.Qc)(n.content)),m.tf.DATA_LOADER===n.type)o="".concat(n.uuid,": ").concat(null===(r=l)||void 0===r?void 0:r.source);else if(m.tf.DATA_EXPORTER===n.type){var c;o="".concat(n.uuid,": ").concat(null===(c=l)||void 0===c?void 0:c.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var u=(0,N.IU)(n),d=u.name,a=u.project;o=d,i="".concat(i,"/").concat(a)}return null!==n&&void 0!==n&&n.replicated_block&&(o=null===n||void 0===n?void 0:n.replicated_block,i=null===n||void 0===n?void 0:n.uuid),o||(o=n.uuid),{displayText:o,subtitle:i}}function J(n,e){return q(n,e).displayText||""}function X(n,e){return q(n,e).subtitle||""}function z(n){var e=0;return null===n||void 0===n||n.forEach((function(n,o){var t=n.uuid;e+=4+t.length*F,o>=1&&(e+=4)})),e}function Q(n,e,o){var t,i=0,r=2+H,l=W(n,e,o)-(2+2*T.iI),c=V(n),u=(null===c||void 0===c?void 0:c.length)*F;if(u>=1){var d=1;u>l&&(d=Math.ceil(u/l)),i+=1,r+=18*d}var a=o||{},s=a.blockStatus;return[a.callbackBlocks,a.conditionalBlocks,a.extensionBlocks].forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=z(n),o=1;e>l&&(o=Math.ceil(e/l)),i+=1,r+=18.5*o+4*(o-1)}})),"undefined"!==typeof(null===s||void 0===s||null===(t=s[n.uuid])||void 0===t?void 0:t.runtime)&&(r+=18,i+=1),r+=(i+=1)*(1*T.iI)}function W(n,e,o){var t,r,l=Math.max(8.62*(null===(t=J(n,e))||void 0===t?void 0:t.length),(null===(r=X(n,e))||void 0===r?void 0:r.length)*F),c=V(n),u=(null===c||void 0===c?void 0:c.length)*F,d=o||{},a=d.callbackBlocks,s=d.conditionalBlocks,v=d.extensionBlocks,f=Math.max.apply(Math,(0,i.Z)([a,s,v].map((function(n){return z(n)})).concat(u)));return f>l&&(l=Math.min(G,f)),2+U+l}var K,Y=o(44162),$=o(35438),nn=o(90211),en=function(n){var e=n/1e3,o=4-Math.floor(e).toString().length,t=(0,nn.QV)(e,o>=0?o:0),i="s";return t>1e3&&(t=(0,nn.QV)(t/60,0),i="m"),"".concat(t).concat(i)},on=function(n,e){var o=n||{},t=o.id,i=o.side,r=null===e||void 0===e?void 0:e.id;return i===$.rl.NORTH?null===t||void 0===t?void 0:t.endsWith("".concat(r,"-to")):i===$.rl.SOUTH&&(null===t||void 0===t?void 0:t.startsWith(r))},tn=o(28598),rn=(K={},(0,r.Z)(K,m.tf.DATA_EXPORTER,E.zS),(0,r.Z)(K,m.tf.DATA_LOADER,E.rH),(0,r.Z)(K,m.tf.DBT,E.xE),(0,r.Z)(K,m.tf.GLOBAL_DATA_PRODUCT,E.ie),(0,r.Z)(K,m.tf.SENSOR,E.LM),(0,r.Z)(K,m.tf.TRANSFORMER,E.Sv),K);var ln=function(n){var e=n.block,o=n.callbackBlocks,t=n.conditionalBlocks,i=n.disabled,r=n.extensionBlocks,l=n.height,c=n.hideStatus,u=n.pipeline,d=n.selected,a=n.hasFailed,s=n.isCancelled,f=n.isConditionFailed,h=n.isInProgress,I=n.isQueued,T=n.isSuccessful,R=n.runtime,P=(0,p.useContext)(v.ThemeContext),N=!(h||I||a||T||s||f),L=a&&!(h||I),F=!L&&T&&!(h||I),H="";N?H="No status":F?H="Successful execution":L?H="Failed execution":h?H="Currently executiing":s&&(H="Cancelled execution");var U=e.color,G=e.type,q=(0,Y.qn)(G,{blockColor:U,theme:P}).accent,z=(0,p.useMemo)((function(){return V(e)}),[e]),Q=(0,p.useMemo)((function(){var n,e,o=rn[G]||E.EJ,t=!1;return[m.tf.CALLBACK,m.tf.CHART,m.tf.CONDITIONAL,m.tf.CUSTOM,m.tf.DATA_EXPORTER,m.tf.DATA_LOADER,m.tf.EXTENSION,m.tf.SCRATCHPAD,m.tf.SENSOR,m.tf.MARKDOWN,m.tf.TRANSFORMER].includes(G)?n=q:[m.tf.DBT].includes(G)&&(e=q),[m.tf.DATA_EXPORTER].includes(G)&&(t=!0),(0,tn.jsx)(A,{backgroundColor:n,borderColor:e,children:(0,tn.jsx)("div",{style:{height:Z,width:Z},children:(0,tn.jsx)(o,{inverted:t,size:Z})})})}),[q,G]);return(0,tn.jsxs)(w,{borderColor:q,disabled:i,height:l,isCancelled:s,isConditionFailed:f,selected:d,children:[(0,tn.jsx)(D,{children:(0,tn.jsxs)(x.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,tn.jsxs)(g.Z,{flex:1,children:[Q,(0,tn.jsx)(y.Z,{mr:B}),(0,tn.jsxs)(g.Z,{flexDirection:"column",children:[(0,tn.jsx)(C.ZP,{bold:!0,monospace:!0,children:J(e,u)}),(0,tn.jsx)(C.ZP,{default:!0,monospace:!0,small:!0,children:X(e,u)})]})]}),(0,tn.jsx)(y.Z,{mr:"15px"}),(0,tn.jsx)(_,{title:H,children:!c&&(0,tn.jsxs)(tn.Fragment,{children:[h&&(0,tn.jsx)(O.Z,{color:(P||j.Z).content.active,small:!0}),F&&(0,tn.jsx)(E.Jr,{size:M,success:!0}),L&&(0,tn.jsx)(E.x8,{danger:!0,size:M}),N&&(0,tn.jsx)(k.Z,{borderSize:1,muted:!0,size:M})]})})]})}),(0,tn.jsxs)(S,{children:[(null===z||void 0===z?void 0:z.length)>=1&&(0,tn.jsx)(y.Z,{mt:1,children:(0,tn.jsx)(C.ZP,{default:!0,monospace:!0,small:!0,children:z})}),[t,o,r].map((function(n,e){if((null===n||void 0===n?void 0:n.length)>=1)return(0,tn.jsx)("div",{style:{marginTop:4},children:(0,tn.jsx)(x.ZP,{alignItems:"center",flexWrap:"wrap",children:n.reduce((function(n,e,o){return o>=1&&n.push((0,tn.jsx)("div",{style:{width:4}},"space-".concat(e.uuid))),n.push((0,tn.jsx)("div",{style:{marginTop:4},children:(0,tn.jsx)(b.Z,{color:(0,Y.qn)(e.type,{blockColor:e.color,theme:P}).accentLight,monospace:!0,small:!0,children:e.uuid})},"badge-".concat(e.uuid))),n}),[])})},"badge-blocks-".concat(e))})),R&&(0,tn.jsx)(y.Z,{mt:1,children:(0,tn.jsx)(C.ZP,{monospace:!0,muted:!0,small:!0,children:en(R)})})]})]})},cn=o(11135),un=o(82531),dn=o(37391),an=v.default.div.withConfig({displayName:"indexstyle__GraphContainerStyle",componentId:"sc-bc2ei5-0"})(["div{","}",""],dn.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),sn=(v.default.div.withConfig({displayName:"indexstyle__NodeStyle",componentId:"sc-bc2ei5-1"})(["border-radius:","px;border:1px solid transparent;min-width:fit-content;"," "," "," "," "," ",""],I.BG,(function(n){return n.selected&&"\n border-color: ".concat((n.theme.content||j.Z.content).active,";\n ")}),(function(n){return n.backgroundColor&&"\n background-color: ".concat(n.backgroundColor,";\n ")}),(function(n){return(n.isCancelled||n.disabled)&&"\n // opacity doesn\u2019t work on Safari\n border-color: ".concat((n.theme.content||j.Z.content).active,";\n border-style: dashed;\n cursor: not-allowed;\n ")}),(function(n){return n.isConditionFailed&&"\n background-color: ".concat((n.theme.content||j.Z.content).disabled,";\n cursor: not-allowed;\n ")}),(function(n){return n.disabled&&"\n &:hover {\n cursor: not-allowed;\n }\n "}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")})),v.default.div.withConfig({displayName:"indexstyle__RuntimeStyle",componentId:"sc-bc2ei5-2"})(["margin-right:","px;padding:12px 4px;height:100%;width:50px;background:rgba(0,0,0,0.2);background-blend-mode:soft-light;"],2*T.iI),o(66050)),vn=o(24224);var fn=o(96510),pn=["forwardedRef"];function hn(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function bn(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?hn(Object(o),!0).forEach((function(e){(0,r.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):hn(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var mn=s()((0,c.Z)(d().mark((function n(){var e,t;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,t=e.Canvas,n.abrupt("return",(function(n){var e=n.forwardedRef,o=(0,l.Z)(n,pn);return(0,tn.jsx)(t,bn({ref:e},o))}));case 5:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),kn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Node);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),gn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Edge);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}}),xn=s()((0,c.Z)(d().mark((function n(){var e;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([o.e(4434),o.e(5987),o.e(2920)]).then(o.t.bind(o,74529,23));case 2:return e=n.sent,n.abrupt("return",e.Port);case 4:case"end":return n.stop()}}),n)}))),{ssr:!1,loadableGenerated:{webpack:function(){return[74529]}}});var yn=function(n){var e=n.blockRefs,o=n.blockStatus,r=n.blocks,l=n.disabled,c=n.editingBlock,u=n.enablePorts,d=void 0!==u&&u,a=n.fetchPipeline,s=n.height,b=n.heightOffset,k=void 0===b?10*T.iI:b,g=n.messages,O=n.noStatus,j=n.onClickNode,E=n.pannable,I=void 0===E||E,Z=n.pipeline,w=n.runningBlocks,_=void 0===w?[]:w,A=n.selectedBlock,D=n.setEditingBlock,S=n.setErrors,B=n.setSelectedBlock,L=n.setZoom,M=n.showDynamicBlocks,F=void 0!==M&&M,H=n.treeRef,U=n.zoomable,G=void 0===U||U,V=(0,p.useContext)(v.ThemeContext),q=(0,p.useRef)(null),J=H||q,X=(0,p.useState)([]),z=X[0],K=X[1],nn=(0,p.useState)(!1),en=nn[0],rn=nn[1],dn=(0,p.useState)(null),pn=dn[0],hn=dn[1],yn=d&&en,On=(null===c||void 0===c?void 0:c.upstreamBlocks)||{},Cn=On.block,jn=On.values,En=void 0===jn?[]:jn,In=(0,p.useMemo)((function(){return En.length}),[En]),Tn=(0,p.useMemo)((function(){var n;return(null===Z||void 0===Z||null===(n=Z.blocks)||void 0===n?void 0:n.filter((function(n){var e=n.type;return!m.iZ.includes(e)})))||[]}),[null===Z||void 0===Z?void 0:Z.blocks]),Zn=(0,p.useMemo)((function(){return Tn}),[Tn,F]),wn=(0,p.useMemo)((function(){if(r)return r;if(Z){var n={},e=[];return e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.blocks)),e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.callbacks)),e.push.apply(e,(0,i.Z)(null===Z||void 0===Z?void 0:Z.conditionals)),Object.values(null===Z||void 0===Z?void 0:Z.extensions).forEach((function(n){var o=n.blocks;e.push.apply(e,(0,i.Z)(o))})),e.reduce((function(e,o){return n[o.uuid]||e.push(o),e}),[])}return[]}),[r,Z]),_n=(0,p.useMemo)((function(){return(0,vn.HK)(wn||[],(function(n){return n.uuid}))}),[wn]),An=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o;n[e.uuid]=null===e||void 0===e||null===(o=e.callback_blocks)||void 0===o?void 0:o.reduce((function(n,e){var o=null===_n||void 0===_n?void 0:_n[e];return o?n.concat(o):n}),[])})),n}),[Zn,_n]),Dn=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o;n[e.uuid]=null===e||void 0===e||null===(o=e.conditional_blocks)||void 0===o?void 0:o.reduce((function(n,e){var o=null===_n||void 0===_n?void 0:_n[e];return o?n.concat(o):n}),[])})),n}),[Zn,_n]),Sn=(0,p.useMemo)((function(){var n={};return null===Zn||void 0===Zn||Zn.map((function(e){var o,i=[];null===(o=Object.entries((null===Z||void 0===Z?void 0:Z.extensions)||{}))||void 0===o||o.forEach((function(n){var o=(0,t.Z)(n,2),r=o[0],l=o[1].blocks;null===l||void 0===l||l.forEach((function(n){var o=n.upstream_blocks,t=n.uuid;if(null!==o&&void 0!==o&&o.includes(null===e||void 0===e?void 0:e.uuid)){var l=null===_n||void 0===_n?void 0:_n[t];l&&i.push(bn(bn({},l),{},{extension_uuid:r}))}}))})),n[e.uuid]=i})),n}),[Zn,_n,Z]),Rn=(0,p.useMemo)((function(){return(0,vn.HK)(_,(function(n){return n.uuid}))}),[_]),Pn=(0,h.Db)(un.ZP.blocks.pipelines.useUpdate(null===Z||void 0===Z?void 0:Z.uuid,encodeURIComponent(null===Cn||void 0===Cn?void 0:Cn.uuid)),{onSuccess:function(n){return(0,fn.wD)(n,{callback:function(){D({upstreamBlocks:null}),null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===S||void 0===S?void 0:S({errors:e,response:n})}})}}),Nn=(0,t.Z)(Pn,2),Bn=Nn[0],Ln=Nn[1].isLoading,Mn=(0,h.Db)((function(n){var e=n.fromBlock,o=n.portSide,t=n.toBlock,i=n.removeDependency,r=t,l=t.upstream_blocks.concat(e.uuid);return i||o!==$.rl.NORTH||(r=e,l=e.upstream_blocks.concat(t.uuid)),un.ZP.blocks.pipelines.useUpdate(null===Z||void 0===Z?void 0:Z.uuid,encodeURIComponent(r.uuid))({block:bn(bn({},r),{},{upstream_blocks:i?t.upstream_blocks.filter((function(n){return n!==e.uuid})):l})})}),{onSuccess:function(n){return(0,fn.wD)(n,{callback:function(){null===a||void 0===a||a()},onErrorCallback:function(n,e){return null===S||void 0===S?void 0:S({errors:e,response:n})}})}}),Fn=(0,t.Z)(Mn,1)[0],Hn=(0,p.useCallback)((function(n){var o=n.type,t=n.uuid;if(null===B||void 0===B||B(n),K([]),null!==e&&void 0!==e&&e.current){var i,r=e.current["".concat(o,"s/").concat(t,".py")];null===r||void 0===r||null===(i=r.current)||void 0===i||i.scrollIntoView()}}),[e,B]),Un=(0,p.useCallback)((function(n){K([]),D((function(e){var o=e.upstreamBlocks.values||[],t=o.findIndex((function(e){var o=e.uuid;return n.uuid===o}));return bn(bn({},e),{},{upstreamBlocks:bn(bn({},e.upstreamBlocks),{},{values:t>=0?(0,vn.oM)(o,t):o.concat(n)})})}))}),[D]),Gn=(0,p.useMemo)((function(){var n={};return Zn.forEach((function(e){e.upstream_blocks.forEach((function(o){n[o]||(n[o]=[]),n[o].push(e)}))})),n}),[Zn]),Vn=(0,p.useCallback)((function(n){var e,o;if(R.qL.INTEGRATION===(null===Z||void 0===Z?void 0:Z.type)&&m.tf.TRANSFORMER!==n.type){var t,i={};if(m.t6.YAML===n.language&&(i=(0,f.Qc)(n.content)),m.tf.DATA_LOADER===n.type)e="".concat(n.uuid,": ").concat(null===(t=i)||void 0===t?void 0:t.source);else if(m.tf.DATA_EXPORTER===n.type){var r;e="".concat(n.uuid,": ").concat(null===(r=i)||void 0===r?void 0:r.destination)}}else if(m.tf.DBT===n.type&&m.t6.SQL===n.language){var l=(0,N.IU)(n);e=l.name,o=l.project}return null!==n&&void 0!==n&&n.replicated_block&&(e=null===n||void 0===n?void 0:n.replicated_block,o=null===n||void 0===n?void 0:n.uuid),e||(e=n.uuid),{displayText:e,kicker:o,subtitle:undefined}}),[Z]),qn=(0,p.useMemo)((function(){var n=[],e=[];return Zn.forEach((function(t){var r=Vn(t),l=r.displayText,c=r.kicker,u=r.subtitle,d=t.tags,a=void 0===d?[]:d,s=t.upstream_blocks,v=void 0===s?[]:s,f=t.uuid,p=Gn[f],h=[];p?h.push.apply(h,(0,i.Z)(p.map((function(n){return bn(bn({},$.bJ),{},{id:"".concat(f,"-").concat(n.uuid,"-from"),side:$.rl.SOUTH})})))):h.push(bn(bn({},$.bJ),{},{id:"".concat(f,"-from"),side:$.rl.SOUTH})),0===v.length&&h.push(bn(bn({},$.bJ),{},{id:"".concat(f,"-to"),side:$.rl.NORTH})),null===v||void 0===v||v.forEach((function(n){h.push(bn(bn({},$.bJ),{},{id:"".concat(n,"-").concat(f,"-to"),side:$.rl.NORTH})),e.push({from:n,fromPort:"".concat(n,"-").concat(f,"-from"),id:"".concat(n,"-").concat(f),to:f,toPort:"".concat(n,"-").concat(f,"-to")})}));(null===a||void 0===a?void 0:a.length)>=1&&T.iI,c&&T.iI,u&&T.iI;var b=l;[c,u].forEach((function(n){n&&n.length>b.length&&(b=n)}));var m=null===An||void 0===An?void 0:An[null===t||void 0===t?void 0:t.uuid],k=null===Dn||void 0===Dn?void 0:Dn[null===t||void 0===t?void 0:t.uuid],g=null===Sn||void 0===Sn?void 0:Sn[null===t||void 0===t?void 0:t.uuid];n.push({data:{block:t},height:Q(t,Z,{blockStatus:o,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g}),id:f,ports:h,width:W(t,Z,{blockStatus:o,callbackBlocks:m,conditionalBlocks:k,extensionBlocks:g})})})),{edges:e,nodes:n}}),[o,Zn,An,Dn,Vn,Gn,Sn,Z]),Jn=qn.edges,Xn=qn.nodes,zn=(0,p.useCallback)((function(n){if(O)return{};if(o){var e=o[function(n){var e=n.uuid,o=n.replicated_block;return o?"".concat(e,":").concat(o):e}(n)]||{},t=e.status,i=e.runtime;return{hasFailed:sn.V.FAILED===t,isCancelled:sn.V.CANCELLED===t,isConditionFailed:sn.V.CONDITION_FAILED===t,isInProgress:sn.V.RUNNING===t,isQueued:sn.V.INITIAL===t,isSuccessful:sn.V.COMPLETED===t,runtime:i}}var r,l=(0,P.h5)((null===g||void 0===g?void 0:g[n.uuid])||[]),c=(0,P.oI)(l),u=c.hasError,d=c.hasOutput,a=Rn[n.uuid];return{hasFailed:!a&&(u||m.DA.FAILED===n.status),isInProgress:a,isQueued:a&&(null===(r=_[0])||void 0===r?void 0:r.uuid)!==n.uuid,isSuccessful:!a&&(!u&&d||m.DA.EXECUTED===n.status)}}),[o,g,O,_,Rn]),Qn=(0,p.useMemo)((function(){var n=0;return s&&(n+=s),k&&(n-=k),Math.max(0,n)}),[s,k]);return(0,tn.jsxs)(tn.Fragment,{children:[Cn&&(0,tn.jsxs)(y.Z,{my:3,px:T.cd,children:[(0,tn.jsxs)(y.Z,{mb:T.cd,children:[(0,tn.jsxs)(C.ZP,{children:["Select parent block(s) for ",(0,tn.jsx)(C.ZP,{color:(0,Y.qn)(Cn.type,{blockColor:Cn.color,theme:V}).accent,inline:!0,monospace:!0,children:Cn.uuid}),":"]}),(0,tn.jsx)(y.Z,{mt:1,children:En.map((function(n,e){var o,t,i=n.uuid;return(0,tn.jsxs)(C.ZP,{color:(0,Y.qn)(null===(o=_n[i])||void 0===o?void 0:o.type,{blockColor:null===(t=_n[i])||void 0===t?void 0:t.type,theme:V}).accent,inline:!0,monospace:!0,children:[i,In>=2&&e<=In-2?(0,tn.jsx)(C.ZP,{inline:!0,children:",\xa0"}):null]},i)}))})]}),(0,tn.jsxs)(x.ZP,{alignItems:"center",children:[(0,tn.jsx)(cn.ZP,{compact:!0,inline:!0,loading:Ln,onClick:function(){return Bn({block:bn(bn({},Cn),{},{upstream_blocks:En.map((function(n){return n.uuid}))})})},uuid:"DependencyGraph/save_parents",children:"Save dependencies"}),(0,tn.jsx)(y.Z,{ml:1}),(0,tn.jsx)(cn.ZP,{compact:!0,inline:!0,noBackground:!0,onClick:function(){K([]),D({upstreamBlocks:null})},uuid:"DependencyGraph/cancel_save_parents",children:"Cancel"})]})]}),(0,tn.jsx)(an,{height:Qn,onDoubleClick:function(){var n,e;return null===J||void 0===J||null===(n=J.current)||void 0===n||null===(e=n.fitCanvas)||void 0===e?void 0:e.call(n)},children:(0,tn.jsx)(mn,{arrow:null,disabled:l,edge:function(n){var e,o=_n[n.source];return(0,tn.jsx)(gn,bn(bn({},n),{},{onClick:function(n,e){hn(null),K([e.id])},onRemove:function(n,e){var o=_n[e.from],t=_n[e.to];Fn({fromBlock:o,removeDependency:!0,toBlock:t}),K([])},removable:d&&!(null!==c&&void 0!==c&&c.upstreamBlocks),style:{stroke:null===(e=(0,Y.qn)(null===o||void 0===o?void 0:o.type,{blockColor:null===o||void 0===o?void 0:o.color,theme:V}))||void 0===e?void 0:e.accent}}))},edges:Jn,fit:!0,forwardedRef:J,maxHeight:$.Jo,maxWidth:$.Jo,maxZoom:1,minZoom:-.7,node:function(n){var e,o,t,i,r,u;return(0,tn.jsx)(kn,bn(bn({},n),{},{dragType:"port",linkable:!0,onClick:function(n,e){var o=e.data.block;hn(null),(null===Cn||void 0===Cn?void 0:Cn.uuid)===o.uuid||(Cn?Un(o):(null===j||void 0===j||j({block:o}),setTimeout((function(){Hn(o)}),1)))},onEnter:function(){null!==c&&void 0!==c&&c.upstreamBlocks||rn(!0)},onLeave:function(){return rn(!1)},port:yn&&(null===pn||on(pn,n))?(0,tn.jsx)(xn,{onDrag:function(){return rn(!0)},onDragEnd:function(){rn(!1),hn(null)},onDragStart:function(n,e,o){var t=null===o||void 0===o?void 0:o.side;hn({id:null===o||void 0===o?void 0:o.id,side:t})},onEnter:function(){return rn(!0)},rx:10,ry:10,style:{fill:(0,Y.qn)(null===n||void 0===n||null===(e=n.properties)||void 0===e||null===(o=e.data)||void 0===o||null===(t=o.block)||void 0===t?void 0:t.type,{blockColor:null===n||void 0===n||null===(i=n.properties)||void 0===i||null===(r=i.data)||void 0===r||null===(u=r.block)||void 0===u?void 0:u.color,theme:V}).accent,stroke:"white",strokeWidth:"1px"}}):null,style:{fill:"transparent",stroke:"transparent",strokeWidth:0},children:function(n){var e=n.height,o=n.node.data.block,t=zn(o),i=Vn(o);i.displayText,i.kicker,i.subtitle;return(0,tn.jsx)("foreignObject",{height:e,style:{pointerEvents:"none"},width:n.width,x:0,y:0,children:(0,tn.jsx)(ln,bn({block:o,callbackBlocks:null===An||void 0===An?void 0:An[null===o||void 0===o?void 0:o.uuid],conditionalBlocks:null===Dn||void 0===Dn?void 0:Dn[null===o||void 0===o?void 0:o.uuid],disabled:(null===Cn||void 0===Cn?void 0:Cn.uuid)===o.uuid,extensionBlocks:null===Sn||void 0===Sn?void 0:Sn[null===o||void 0===o?void 0:o.uuid],height:e,hideStatus:l||O,pipeline:Z,selected:Cn?!!(0,vn.sE)(En,(function(n){return n.uuid===o.uuid})):(null===A||void 0===A?void 0:A.uuid)===o.uuid},t),o.uuid)})}}))},nodes:Xn,onNodeLink:function(n,e,o,t){var i,r=_n[e.id],l=_n[o.id],c=(null===Z||void 0===Z?void 0:Z.type)===R.qL.INTEGRATION&&((null===r||void 0===r?void 0:r.type)===m.tf.DATA_EXPORTER||(null===r||void 0===r?void 0:r.type)===m.tf.DATA_LOADER&&(null===l||void 0===l?void 0:l.type)===m.tf.DATA_EXPORTER);if(!(null!==r&&void 0!==r&&null!==(i=r.upstream_blocks)&&void 0!==i&&i.includes(l.uuid)||e.id===o.id||c)){var u=null===t||void 0===t?void 0:t.side;Fn({fromBlock:r,portSide:u||$.rl.SOUTH,toBlock:l})}},onNodeLinkCheck:function(n,e,o){return!Jn.some((function(n){return n.from===e.id&&n.to===o.id}))},onZoomChange:function(n){return null===L||void 0===L?void 0:L(n)},pannable:I,selections:z,zoomable:G})})]})}},66050:function(n,e,o){var t;o.d(e,{V:function(){return t}}),function(n){n.CANCELLED="cancelled",n.COMPLETED="completed",n.FAILED="failed",n.INITIAL="initial",n.RUNNING="running",n.UPSTREAM_FAILED="upstream_failed",n.CONDITION_FAILED="condition_failed"}(t||(t={}))},18283:function(n,e,o){var t=o(82394),i=o(26304),r=(o(82684),o(38626)),l=o(23831),c=o(73942),u=o(2005),d=o(49125),a=o(31012),s=o(28598),v=["children"];function f(n,e){var o=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.push.apply(o,t)}return o}function p(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?f(Object(o),!0).forEach((function(e){(0,t.Z)(n,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}))}return n}var h=r.default.p.withConfig({displayName:"Badge__BadgeStyle",componentId:"sc-tfqsp0-0"})(["border-radius:","px;display:inline;font-family:",";margin:0;white-space:nowrap;",";"," "," ",";",";"," "," "," "," "," "," "," ",""],c.BG,u.ry,a.iD,(function(n){return n.small&&"\n ".concat(a.HC,";\n ")}),(function(n){return n.xxsmall&&"\n font-size: ".concat(a.VK,"px;\n line-height: ").concat(a.VK,"px;\n ")}),(function(n){return!n.regular&&"\n padding: 2px 4px;\n "}),(function(n){return n.regular&&"\n padding: ".concat(1*d.iI,"px ").concat(1.25*d.iI,"px;\n ")}),(function(n){return n.noVerticalPadding&&"\n padding-bottom: 0;\n padding-top: 0;\n "}),(function(n){return!n.disabled&&!n.inverted&&"\n background-color: ".concat((n.theme||l.Z).background.row,";\n color: ").concat((n.theme||l.Z).content.default,";\n ")}),(function(n){return!n.disabled&&n.inverted&&"\n background-color: ".concat((n.theme||l.Z).background.dark,";\n color: ").concat((n.theme||l.Z).content.inverted,";\n ")}),(function(n){return n.cyan&&"\n background-color: ".concat((n.theme||l.Z).accent.cyan,";\n color: ").concat((n.theme||l.Z).monotone.black,";\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme||l.Z).feature.disabled,";\n color: ").concat((n.theme||l.Z).content.disabled,";\n ")}),(function(n){return n.color&&"\n background-color: ".concat(n.color," !important;\n color: ").concat((n.theme||l.Z).content.active,";\n ")}),(function(n){return n.quantifier&&"\n border-radius: 34px;\n line-height: 10px;\n padding: 4px 6px;\n "}),(function(n){return n.monospace&&"\n font-family: ".concat(u.Vp,";\n word-break: break-all;\n ")}));e.Z=function(n){var e=n.children,o=(0,i.Z)(n,v);return(0,s.jsx)(h,p(p({},o),{},{children:e}))}},25958:function(n,e,o){o.d(e,{$1:function(){return r},Dy:function(){return i},IU:function(){return l}});var t=o(17717),i="--full-refresh";function r(n,e){var o,i=null===e||void 0===e?void 0:e.fullPath,r=null===n||void 0===n||null===(o=n.configuration)||void 0===o?void 0:o.file_path;if(i)return null===n||void 0===n?void 0:n.uuid;if(r){var l=r.split(t.sep),c=l[l.length-1].split(".");return c.pop(),c.join(".")}}function l(n){var e,o=null===n||void 0===n||null===(e=n.configuration)||void 0===e?void 0:e.file_path;if(o){var i=o.split(t.sep),r=i[0],l=i[i.length-1].split(".");return l.pop(),{directory:i.slice(1,i.length-1).join(t.sep),filePath:o,name:l.join("."),project:r}}return{filePath:o}}}}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9605],{17717:function(e,n,t){var i=t(554);!function(){"use strict";var n={977:function(e){function n(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,n){for(var t,i="",r=0,o=-1,l=0,u=0;u<=e.length;++u){if(u<e.length)t=e.charCodeAt(u);else{if(47===t)break;t=47}if(47===t){if(o===u-1||1===l);else if(o!==u-1&&2===l){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){var c=i.lastIndexOf("/");if(c!==i.length-1){-1===c?(i="",r=0):r=(i=i.slice(0,c)).length-1-i.lastIndexOf("/"),o=u,l=0;continue}}else if(2===i.length||1===i.length){i="",r=0,o=u,l=0;continue}n&&(i.length>0?i+="/..":i="..",r=2)}else i.length>0?i+="/"+e.slice(o+1,u):i=e.slice(o+1,u),r=u-o-1;o=u,l=0}else 46===t&&-1!==l?++l:l=-1}return i}var r={resolve:function(){for(var e,r="",o=!1,l=arguments.length-1;l>=-1&&!o;l--){var u;l>=0?u=arguments[l]:(void 0===e&&(e=i.cwd()),u=e),n(u),0!==u.length&&(r=u+"/"+r,o=47===u.charCodeAt(0))}return r=t(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(n(e),0===e.length)return".";var i=47===e.charCodeAt(0),r=47===e.charCodeAt(e.length-1);return 0!==(e=t(e,!i)).length||i||(e="."),e.length>0&&r&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return n(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,t=0;t<arguments.length;++t){var i=arguments[t];n(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,t){if(n(e),n(t),e===t)return"";if((e=r.resolve(e))===(t=r.resolve(t)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,l=o-i,u=1;u<t.length&&47===t.charCodeAt(u);++u);for(var c=t.length-u,a=l<c?l:c,d=-1,s=0;s<=a;++s){if(s===a){if(c>a){if(47===t.charCodeAt(u+s))return t.slice(u+s+1);if(0===s)return t.slice(u+s)}else l>a&&(47===e.charCodeAt(i+s)?d=s:0===s&&(d=0));break}var p=e.charCodeAt(i+s);if(p!==t.charCodeAt(u+s))break;47===p&&(d=s)}var f="";for(s=i+d+1;s<=o;++s)s!==o&&47!==e.charCodeAt(s)||(0===f.length?f+="..":f+="/..");return f.length>0?f+t.slice(u+d):(u+=d,47===t.charCodeAt(u)&&++u,t.slice(u))},_makeLong:function(e){return e},dirname:function(e){if(n(e),0===e.length)return".";for(var t=e.charCodeAt(0),i=47===t,r=-1,o=!0,l=e.length-1;l>=1;--l)if(47===(t=e.charCodeAt(l))){if(!o){r=l;break}}else o=!1;return-1===r?i?"/":".":i&&1===r?"//":e.slice(0,r)},basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');n(e);var i,r=0,o=-1,l=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var u=t.length-1,c=-1;for(i=e.length-1;i>=0;--i){var a=e.charCodeAt(i);if(47===a){if(!l){r=i+1;break}}else-1===c&&(l=!1,c=i+1),u>=0&&(a===t.charCodeAt(u)?-1===--u&&(o=i):(u=-1,o=c))}return r===o?o=c:-1===o&&(o=e.length),e.slice(r,o)}for(i=e.length-1;i>=0;--i)if(47===e.charCodeAt(i)){if(!l){r=i+1;break}}else-1===o&&(l=!1,o=i+1);return-1===o?"":e.slice(r,o)},extname:function(e){n(e);for(var t=-1,i=0,r=-1,o=!0,l=0,u=e.length-1;u>=0;--u){var c=e.charCodeAt(u);if(47!==c)-1===r&&(o=!1,r=u+1),46===c?-1===t?t=u:1!==l&&(l=1):-1!==t&&(l=-1);else if(!o){i=u+1;break}}return-1===t||-1===r||0===l||1===l&&t===r-1&&t===i+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,n){var t=n.dir||n.root,i=n.base||(n.name||"")+(n.ext||"");return t?t===n.root?t+i:t+e+i:i}("/",e)},parse:function(e){n(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,r=e.charCodeAt(0),o=47===r;o?(t.root="/",i=1):i=0;for(var l=-1,u=0,c=-1,a=!0,d=e.length-1,s=0;d>=i;--d)if(47!==(r=e.charCodeAt(d)))-1===c&&(a=!1,c=d+1),46===r?-1===l?l=d:1!==s&&(s=1):-1!==l&&(s=-1);else if(!a){u=d+1;break}return-1===l||-1===c||0===s||1===s&&l===c-1&&l===u+1?-1!==c&&(t.base=t.name=0===u&&o?e.slice(1,c):e.slice(u,c)):(0===u&&o?(t.name=e.slice(1,l),t.base=e.slice(1,c)):(t.name=e.slice(u,l),t.base=e.slice(u,c)),t.ext=e.slice(l,c)),u>0?t.dir=e.slice(0,u-1):o&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}},l=!0;try{n[e](o,o.exports,r),l=!1}finally{l&&delete t[e]}return o.exports}r.ab="//";var o=r(977);e.exports=o}()},38639:function(e,n,t){"use strict";t.d(n,{EN:function(){return k},FX:function(){return C},HS:function(){return j},Nk:function(){return h},Rd:function(){return f},SL:function(){return O},Tj:function(){return Z},UE:function(){return _},Yf:function(){return m},ZG:function(){return d},bC:function(){return g},n5:function(){return p},n8:function(){return w},w5:function(){return x},wj:function(){return b},wl:function(){return v},ze:function(){return y}});var i=t(38626),r=t(23831),o=t(73942),l=t(3055),u=t(49125),c=t(90880),a=t(37391),d=2.5*u.iI,s=40*u.iI,p=10*u.iI,f=i.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],a.w5,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width-p,"px;\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),g=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-8sk2qr-2"})(["position:fixed;width:","px;z-index:1;"," "," ",""],s,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-p,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),m=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),v=i.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],a.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:l.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=i.default.div.withConfig({displayName:"indexstyle__NavLinkStyle",componentId:"sc-8sk2qr-5"})([""," padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;&:hover{cursor:pointer;}",""],(0,c.eR)(),1*u.iI,u.cd*u.iI,u.cd*u.iI,1*u.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||r.Z.background).codeTextarea,";\n ")})),y=i.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,c.eR)(),o.n_,5*u.iI,1.25*u.iI,1.25*u.iI,5*u.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||r.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),x=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=i.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],u.cd*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")})),w=i.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*u.iI),_=i.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],o.n_,.75*u.iI,2.5*u.iI,50*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||r.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||r.Z.shadow).frame,";\n ")})),Z=i.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*u.iI),O=i.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*u.iI*2,1*u.iI),k=i.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*u.iI,.5*u.iI),C=i.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*u.iI,1*u.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}))},41422:function(e,n,t){"use strict";t.d(n,{Nk:function(){return c},Yf:function(){return d},bC:function(){return a},ig:function(){return s},w5:function(){return p}});var i=t(38626),r=t(23831),o=t(49125),l=t(38639),u=(o.iI,40*o.iI),c=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),a=i.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],u,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||r.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-l.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),d=i.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-axgvn9-2"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],1*o.iI,o.cd*o.iI,o.cd*o.iI,1*o.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],o.cd*o.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||r.Z.borders).light,";\n ")})),p=i.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],u)},1210:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var i=t(82394),r=t(21831),o=t(82684),l=t(47999),u=t(49894),c=t(93461),a=t(57384),d=t(41424),s=t(72454),p=t(28598);function f(e,n){var t=e.children;return(0,p.jsx)(s.HS,{ref:n,children:t})}var h=o.forwardRef(f),g=t(32063),m=t(85019),v=t(82531),b=t(66166),y=t(3055),x=t(49125),j=t(91427),w=t(24141);function _(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?_(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O=function(e){var n,t=e.addProjectBreadcrumbToCustomBreadcrumbs,i=e.after,f=e.afterHidden,_=e.afterWidth,O=e.afterWidthOverride,k=e.before,C=e.beforeWidth,I=e.breadcrumbs,P=e.children,S=e.errors,N=e.headerMenuItems,A=e.headerOffset,E=e.mainContainerHeader,D=e.navigationItems,T=e.setErrors,z=e.subheaderChildren,M=e.title,H=e.uuid,q=(0,w.i)().width,L="dashboard_after_width_".concat(H),F="dashboard_before_width_".concat(H),B=(0,o.useRef)(null),R=(0,o.useState)(O?_:(0,j.U2)(L,_)),U=R[0],W=R[1],V=(0,o.useState)(!1),J=V[0],G=V[1],Y=(0,o.useState)(k?Math.max((0,j.U2)(F,C),13*x.iI):null),Q=Y[0],X=Y[1],K=(0,o.useState)(!1),$=K[0],ee=K[1],ne=(0,o.useState)(null)[1],te=v.ZP.projects.list({},{revalidateOnFocus:!1}).data,ie=null===te||void 0===te?void 0:te.projects,re={label:function(){var e;return null===ie||void 0===ie||null===(e=ie[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},oe=[];I?(t&&oe.push(re),oe.push.apply(oe,(0,r.Z)(I))):(null===ie||void 0===ie?void 0:ie.length)>=1&&oe.push.apply(oe,[re,{bold:!0,label:function(){return M}}]),(0,o.useEffect)((function(){null===B||void 0===B||!B.current||J||$||null===ne||void 0===ne||ne(B.current.getBoundingClientRect().width)}),[J,U,$,Q,B,ne,q]),(0,o.useEffect)((function(){J||(0,j.t8)(L,U)}),[f,J,U,L]),(0,o.useEffect)((function(){$||(0,j.t8)(F,Q)}),[$,Q,F]);var le=(0,b.Z)(_);return(0,o.useEffect)((function(){O&&le!==_&&W(_)}),[O,_,le]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(a.Z,{title:M}),(0,p.jsx)(d.Z,{breadcrumbs:oe,menuItems:N,project:null===ie||void 0===ie?void 0:ie[0],version:null===ie||void 0===ie||null===(n=ie[0])||void 0===n?void 0:n.version}),(0,p.jsxs)(s.Nk,{children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,p.jsx)(s.lm,{showMore:!0,children:(0,p.jsx)(m.Z,{navigationItems:D,showMore:!0})}),(0,p.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(g.Z,{after:i,afterHeightOffset:y.Mz,afterHidden:f,afterMousedownActive:J,afterWidth:U,before:k,beforeHeightOffset:y.Mz,beforeMousedownActive:$,beforeWidth:s.k1+(k?Q:0),headerOffset:A,hideAfterCompletely:!0,leftOffset:k?s.k1:null,mainContainerHeader:E,mainContainerRef:B,setAfterMousedownActive:G,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[z&&(0,p.jsx)(h,{children:z}),P]})})]}),S&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,p.jsx)(u.Z,Z(Z({},S),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}},83766:function(e,n,t){"use strict";var i=t(82394),r=t(86673),o=t(87815),l=t(19711),u=t(82944),c=t(49125),a=t(28598);function d(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?d(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.objectAttributes,t=e.originalAttributes,d=e.setObjectAttributes;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.Z,{mb:1,px:c.cd,children:[(0,a.jsx)(l.ZP,{bold:!0,children:"Outdated after"}),(0,a.jsx)(l.ZP,{muted:!0,small:!0,children:"After the global data product successfully completes running, how long after that will the global data product be outdated?"})]}),(0,a.jsx)(o.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"seconds"},{uuid:"weeks"},{uuid:"months"},{uuid:"years"}].map((function(e){var r,o,c=e.uuid,p=null===n||void 0===n||null===(r=n.outdated_after)||void 0===r?void 0:r[c],f=null===t||void 0===t||null===(o=t.outdated_after)||void 0===o?void 0:o[c];return[(0,a.jsxs)(l.ZP,{default:!0,monospace:!0,children:[c," ",f&&(0,a.jsxs)(l.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",f,")"]})]},"label-".concat(c)),(0,a.jsx)(u.Z,{compact:!0,monospace:!0,onChange:function(e){return d((function(n){var t;return s(s({},n),{},{outdated_after:s(s({},null===n||void 0===n?void 0:n.outdated_after),{},(0,i.Z)({},c,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},placeholder:"Enter a number",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof p||null===p?"":p},"input-".concat(c))]}))})]})}},31682:function(e,n,t){"use strict";var i=t(82394),r=t(55378),o=t(86673),l=t(87815),u=t(19711),c=t(82944),a=t(49125),d=t(90211),s=t(24224),p=t(28598);function f(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?f(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.objectAttributes,t=e.originalAttributes,f=e.setObjectAttributes;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(o.Z,{mb:1,px:a.cd,children:[(0,p.jsxs)(u.ZP,{bold:!0,children:["Outdated starting at ",(0,p.jsx)(u.ZP,{inline:!0,muted:!0,children:"(optional)"})]}),(0,p.jsx)(u.ZP,{muted:!0,small:!0,children:"If enough time has passed since the last global data product has ran successfully and the global data product is determined to be outdated, then you can configure it to be outdated at a specific date or time."}),(0,p.jsx)("div",{style:{marginTop:4},children:(0,p.jsxs)(u.ZP,{muted:!0,small:!0,children:["For example, let\u2019s say the global data product is outdated after 12 hours. The last successful run was yesterday at 18:00. The global data product will be outdated today at 06:00. However, if the ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Outdated starting at"})," has a value of 17 for ",(0,p.jsx)(u.ZP,{bold:!0,inline:!0,muted:!0,small:!0,children:"Hour of day"}),", then the global data product won\u2019t run again until today at 17:00."]})})]}),(0,p.jsx)(l.Z,{columnFlex:[null,1],columns:[{uuid:"Unit"},{uuid:"Value"}],rows:[{uuid:"second_of_minute",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"minute_of_hour",values:(0,s.w6)(60).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"hour_of_day",values:(0,s.w6)(24).map((function(e,n){return{uuid:n,value:n}}))},{uuid:"day_of_week",values:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((function(e,n){return{uuid:e,value:n}}))},{uuid:"day_of_month",values:(0,s.w6)(31).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"day_of_year",values:(0,s.w6)(365).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_month",values:(0,s.w6)(5).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"week_of_year",values:(0,s.w6)(52).map((function(e,n){return{uuid:n+1,value:n+1}}))},{uuid:"month_of_year",values:["January","February","March","April","May","June","July","August","September","October","November","December"].map((function(e,n){return{uuid:e,value:n+1}}))}].map((function(e){var o,l,a,s=e.uuid,g=e.values,m=null===n||void 0===n||null===(o=n.outdated_starting_at)||void 0===o?void 0:o[s],v=null===t||void 0===t||null===(l=t.outdated_starting_at)||void 0===l?void 0:l[s],b={compact:!0,key:"outdated-starting-at-input-".concat(s),monospace:!0,onChange:function(e){return f((function(n){var t;return h(h({},n),{},{outdated_starting_at:h(h({},null===n||void 0===n?void 0:n.outdated_starting_at),{},(0,i.Z)({},s,0===(null===(t=e.target.value)||void 0===t?void 0:t.length)?null:Number(e.target.value)))})}))},primary:!0,small:!0,value:"undefined"===typeof m||null===m?"":m};return a=g?(0,p.jsx)(r.Z,h(h({},b),{},{placeholder:"Select a value",children:g.map((function(e){var n=e.uuid,t=e.value;return(0,p.jsx)("option",{value:t,children:n},t)}))})):(0,p.jsx)(c.Z,h(h({},b),{},{placeholder:"Enter a number",setContentOnMount:!0,type:"number"})),[(0,p.jsxs)(u.ZP,{default:!0,monospace:!0,children:[(0,d.vg)(s)," ",v&&(0,p.jsxs)(u.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",v,")"]})]},"outdated-starting-at-label-".concat(s)),a]}))})]})}},21978:function(e,n,t){"use strict";var i=t(82394),r=t(12691),o=t.n(r),l=t(38341),u=t(10919),c=t(86673),a=t(87815),d=t(19711),s=t(82944),p=t(49125),f=t(28598);function h(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?h(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.blocks,t=e.objectAttributes,r=e.originalAttributes,h=e.setObjectAttributes;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(c.Z,{mb:1,px:p.cd,children:[(0,f.jsx)(d.ZP,{bold:!0,children:"Block data to output"}),(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"The data output from the block(s) you select below will be the data product that is returned when a downstream entity is requesting data from this global data product."}),(0,f.jsx)("div",{style:{marginTop:4},children:(0,f.jsx)(d.ZP,{muted:!0,small:!0,children:"When requesting data from this global data product, the selected block(s) will return data from its most recent partition. You can override this by adding a value in the partitions setting. For example, if you set the partitions value to 5, then the selected block will return data from its 5 most recent partitions. If you set the partitions value to 0, then all the partitions will be returned."})})]}),(0,f.jsx)(a.Z,{columnFlex:[null,1,null],columns:[{label:function(){return""},uuid:"selected"},{uuid:"Block UUID"},{uuid:"Partitions"}],rows:null===n||void 0===n?void 0:n.map((function(e){var n,c=e.uuid,a=null===t||void 0===t?void 0:t.settings,p=null===a||void 0===a?void 0:a[c],m=null===p||void 0===p?void 0:p.partitions,v=null===r||void 0===r||null===(n=r.settings)||void 0===n?void 0:n[c],b=null===v||void 0===v?void 0:v.partitions,y=!!p||!!v;return[(0,f.jsx)(l.Z,{checked:y,onClick:function(){return function(e){h((function(n){var t=(null===n||void 0===n?void 0:n.settings)||{};return e?t[c]={}:null===t||void 0===t||delete t[c],g(g({},n),{},{settings:t})}))}(!y)}},"selected--".concat(c)),(0,f.jsxs)("div",{children:[(0,f.jsx)(o(),{as:"/pipelines/".concat(null===t||void 0===t?void 0:t.object_uuid,"/edit?block_uuid=").concat(c),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,f.jsx)(u.Z,{monospace:!0,openNewWindow:!0,sameColorAsText:!0,children:c})})," ",b&&(0,f.jsxs)(d.ZP,{inline:!0,monospace:!0,muted:!0,children:["(default: ",b,")"]})]},"block-uuid-".concat(c)),(0,f.jsx)(s.Z,{compact:!0,monospace:!0,onChange:function(e){return h((function(n){var t,r;return g(g({},n),{},{settings:g(g({},null===n||void 0===n?void 0:n.settings),{},(0,i.Z)({},c,g(g({},null===n||void 0===n||null===(t=n.settings)||void 0===t?void 0:t[c]),{},{partitions:0===(null===(r=e.target.value)||void 0===r?void 0:r.length)?null:Number(e.target.value)})))})}))},placeholder:"1",primary:!0,setContentOnMount:!0,small:!0,type:"number",value:"undefined"===typeof m||null===m?"":m},"input-".concat(c))]}))})]})}},7952:function(e,n,t){"use strict";var i=t(82394),r=t(75582),o=t(12691),l=t.n(o),u=t(21764),c=t(82684),a=t(83455),d=t(34376),s=t(60328),p=t(34744),f=t(93461),h=t(67971),g=t(30119),m=t(87372),v=t(10919),b=t(83766),y=t(31682),x=t(97496),j=t(55378),w=t(21978),_=t(86673),Z=t(19711),O=t(82944),k=t(97225),C=t(32063),I=t(82531),P=t(66166),S=t(41422),N=t(49125),A=t(72454),E=t(90211),D=t(96510),T=t(9728),z=t(28598);function M(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?M(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.globalDataProduct,t=e.isNew,i=(0,d.useRouter)(),o=(0,T.VI)(null,{},[],{uuid:"GlobalDataProductDetail"}),M=(0,r.Z)(o,1)[0],q=(0,c.useState)(!1),L=q[0],F=q[1],B=(0,c.useState)(600),R=B[0],U=B[1],W=(0,c.useState)(!1),V=(W[0],W[1]),J=(0,c.useState)(null),G=J[0],Y=J[1],Q=(0,c.useCallback)((function(e){V(!0),Y(e)}),[]),X=(0,P.Z)(n);(0,c.useEffect)((function(){null!==n&&void 0!==n&&n.uuid&&(null===X||void 0===X?void 0:X.uuid)===(null===n||void 0===n?void 0:n.uuid)||Y(n)}),[n,X]);var K=(0,c.useMemo)((function(){return!(null!==G&&void 0!==G&&G.uuid)}),[G]),$=(0,a.Db)(I.ZP.global_data_products.useUpdate(t?null===G||void 0===G?void 0:G.uuid:null===n||void 0===n?void 0:n.uuid),{onSuccess:function(e){return(0,D.wD)(e,{callback:function(e){var r=e.global_data_product;t||null!==n&&void 0!==n&&n.uuid&&(null===r||void 0===r?void 0:r.uuid)!==(null===n||void 0===n?void 0:n.uuid)?i.replace("/global-data-products/[...slug]","/global-data-products/".concat(null===r||void 0===r?void 0:r.uuid)):(Y(r),V(!1),u.Am.success("Global data product successfully saved.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ee=(0,r.Z)($,2),ne=ee[0],te=ee[1].isLoading,ie=I.ZP.pipelines.detail(g.b.PIPELINE===(null===n||void 0===n?void 0:n.object_type)?null===n||void 0===n?void 0:n.object_uuid:null).data,re=(0,c.useMemo)((function(){return null===ie||void 0===ie?void 0:ie.pipeline}),[ie]),oe=(0,c.useMemo)((function(){return(null===re||void 0===re?void 0:re.blocks)||[]}),[re]),le=I.ZP.pipelines.list().data,ue=(0,c.useMemo)((function(){return(null===le||void 0===le?void 0:le.pipelines)||[]}),[le]),ce=(0,c.useMemo)((function(){return(0,z.jsxs)(h.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,z.jsxs)(f.Z,{flexDirection:"column",children:[(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"UUID"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Unique identifier for this global data product. This value must be unique across all global data products."})]}),(0,z.jsx)(O.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{uuid:e.target.value})}))},placeholder:"e.g. a unique identifier",primary:!0,setContentOnMount:!0,value:(null===G||void 0===G?void 0:G.uuid)||""})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object type"}),(0,z.jsx)(Z.ZP,{muted:!0,small:!0,children:"Pipeline, block, etc. Currently, only pipeline is supported."})]}),(0,z.jsx)(j.Z,{onChange:function(e){return Q((function(n){return H(H({},n),{},{object_type:e.target.value})}))},placeholder:"Only pipeline is currently supported",primary:!0,value:(null===G||void 0===G?void 0:G.object_type)||"",children:[g.b.PIPELINE].map((function(e){return(0,z.jsx)("option",{value:e,children:(0,E.kC)(e)},e)}))})]}),(0,z.jsxs)(_.Z,{mt:N.Mq,px:N.cd,children:[(0,z.jsxs)(_.Z,{mb:1,children:[(0,z.jsx)(Z.ZP,{bold:!0,children:"Object UUID"}),(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The UUID of the ",(null===G||void 0===G?void 0:G.object_type)||"object type"," that this global data product represents."]})]}),(0,z.jsx)(j.Z,{monospace:!0,onChange:function(e){return Q((function(n){return H(H({},n),{},{object_uuid:e.target.value})}))},placeholder:"Select object UUID",primary:!0,value:(null===G||void 0===G?void 0:G.object_uuid)||"",children:null===ue||void 0===ue?void 0:ue.map((function(e){var n=e.uuid;return(0,z.jsx)("option",{value:n,children:n},n)}))}),g.b.PIPELINE===(null===G||void 0===G?void 0:G.object_type)&&(null===G||void 0===G?void 0:G.object_uuid)&&(0,z.jsx)(_.Z,{mt:1,children:(0,z.jsxs)(Z.ZP,{muted:!0,small:!0,children:["View pipeline ",(0,z.jsx)(l(),{as:"/pipelines/".concat(null===G||void 0===G?void 0:G.object_uuid,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,z.jsx)(v.Z,{bold:!0,inline:!0,monospace:!0,openNewWindow:!0,small:!0,children:null===G||void 0===G?void 0:G.object_uuid})}),"."]})})]}),!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(b.Z,{objectAttributes:G,setObjectAttributes:Q})}),(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(y.Z,{objectAttributes:G,setObjectAttributes:Q})}),(null===oe||void 0===oe?void 0:oe.length)>=1&&(0,z.jsx)(_.Z,{mt:N.Mq,children:(0,z.jsx)(w.Z,{blocks:oe,objectAttributes:G,setObjectAttributes:Q})})]})]}),(0,z.jsx)(S.ig,{children:(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(h.ZP,{children:(0,z.jsxs)(s.Z,{disabled:K,fullWidth:!0,loading:te,onClick:function(){return ne({global_data_product:G})},primary:!0,children:[t&&"Create global data product",!t&&"Save global data product"]})})})})]})}),[oe,K,te,t,G,ue,Q,ne]),ae=I.ZP.pipeline_schedules.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,de=(0,c.useMemo)((function(){return(null===ae||void 0===ae?void 0:ae.pipeline_schedules)||[]}),[ae]),se=I.ZP.pipeline_runs.list({global_data_product_uuid:null===n||void 0===n?void 0:n.uuid},{},{pauseFetch:!(null!==n&&void 0!==n&&n.uuid)}).data,pe=(0,c.useMemo)((function(){return(null===se||void 0===se?void 0:se.pipeline_runs)||[]}),[se]);return(0,z.jsx)(C.Z,{before:ce,beforeHeader:(0,z.jsx)(_.Z,{px:N.cd,children:(0,z.jsx)(Z.ZP,{children:"Global data product attributes"})}),beforeHidden:L,beforeWidth:R,leftOffset:A.k1,setBeforeHidden:F,setBeforeWidth:U,children:!t&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Triggers"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(k.Z,{disableActions:!0,pipeline:re,pipelineSchedules:de}),(0,z.jsx)(_.Z,{p:N.cd,children:(0,z.jsx)(m.Z,{children:"Runs"})}),(0,z.jsx)(p.Z,{light:!0}),(0,z.jsx)(x.Z,{hideTriggerColumn:!0,pipelineRuns:pe})]})})}},55264:function(e,n,t){"use strict";var i=t(82684),r=t(79891),o=t(67971),l=t(19711),u=t(24224),c=t(28598);n.Z=function(e){var n=e.onClickTag,t=e.tags,a=void 0===t?[]:t,d=(0,i.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),s=(0,i.useMemo)((function(){return(0,u.YC)(a||[],"uuid")}),[a]);return(0,c.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===s||void 0===s?void 0:s.reduce((function(e,t){return e.push((0,c.jsx)("div",{style:{marginBottom:2,marginRight:d>=2?4:0,marginTop:2},children:(0,c.jsx)(r.Z,{onClick:n?function(){return n(t)}:null,small:!0,children:(0,c.jsx)(l.ZP,{children:t.uuid})})},"tag-".concat(t.uuid))),e}),[])})}},97225:function(e,n,t){"use strict";var i=t(75582),r=t(12691),o=t.n(r),l=t(82684),u=t(83455),c=t(34376),a=t(60328),d=t(16634),s=t(47999),p=t(67971),f=t(10919),h=t(93348),g=t(62609),m=t(86673),v=t(87815),b=t(55264),y=t(19711),x=t(46261),j=t(82531),w=t(22341),_=t(66050),Z=t(49125),O=t(45838),k=t(9736),C=t(96510),I=t(66653),P=t(28598),S=1.5*Z.iI;n.Z=function(e){var n=e.disableActions,t=e.fetchPipelineSchedules,r=e.highlightRowOnHover,N=e.includeCreatedAtColumn,A=e.includePipelineColumn,E=e.pipeline,D=e.pipelineSchedules,T=e.pipelineTriggersByName,z=e.selectedSchedule,M=e.setErrors,H=e.setSelectedSchedule,q=e.stickyHeader,L=null===E||void 0===E?void 0:E.uuid,F=(0,c.useRouter)(),B=(0,l.useRef)({}),R=(0,l.useState)(null),U=R[0],W=R[1],V=(0,l.useState)(0),J=V[0],G=V[1],Y=(0,l.useState)(0),Q=Y[0],X=Y[1],K=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useUpdate(e.id)({pipeline_schedule:e})}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),$=(0,i.Z)(K,1)[0],ee=(0,u.Db)((function(e){return j.ZP.pipeline_schedules.useDelete(e)()}),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(){null===t||void 0===t||t(),L?F.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(L,"/triggers")):null===t||void 0===t||t()},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),ne=(0,i.Z)(ee,1)[0],te=[],ie=[];return n||(te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{label:function(){return""},uuid:"action"},{uuid:"Info"},{uuid:"Type"}])),te.push.apply(te,[1]),ie.push.apply(ie,[{uuid:"Name"}]),n||(te.push.apply(te,[null,2]),ie.push.apply(ie,[{uuid:"Frequency"},{uuid:"Tags"}])),te.push.apply(te,[null,null,null]),ie.push.apply(ie,[{uuid:"Runs"},{uuid:"Latest status"},{uuid:"Logs"}]),n||(0,k.Ct)()||(te.push.apply(te,[null]),ie.push({label:function(){return""},uuid:"edit/delete"})),!n&&A&&(ie.splice(2,0,{uuid:"Pipeline"}),te.splice(2,0,2)),!n&&N&&(ie.splice(3,0,{uuid:"Created at"}),te.splice(3,0,null)),(0,P.jsx)(O.cl,{overflowVisible:!0,children:0===D.length?(0,P.jsx)(m.Z,{px:3,py:1,children:(0,P.jsx)(y.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No triggers available"})}):(0,P.jsx)(v.Z,{columnFlex:te,columns:ie,highlightRowOnHover:r,isSelectedRow:function(e){return D[e].id===(null===z||void 0===z?void 0:z.id)},onClickRow:H?function(e){return null===H||void 0===H?void 0:H(D[e])}:null,rowVerticalPadding:6,rows:D.map((function(e,t){var i,r=e.id,u=e.created_at,c=e.pipeline_runs_count,v=e.pipeline_uuid,j=e.last_pipeline_run_status,O=e.name,C=e.schedule_interval,E=e.status,D=e.tags,z=L||v;B.current[r]=(0,l.createRef)(),h.fq.ACTIVE===E?i=(0,P.jsx)(d.Z,{size:S,success:!0}):h.fq.INACTIVE===E&&(i=(0,P.jsx)(d.Z,{borderSize:1,size:S,square:!0,warning:!0}));var M,H=[];n?H.push.apply(H,[(0,P.jsx)(y.ZP,{bold:!0,children:O},"trigger_name_".concat(t))]):H.push.apply(H,[(0,P.jsx)(a.Z,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,I.j)(n),$({id:e.id,status:h.fq.ACTIVE===E?h.fq.INACTIVE:h.fq.ACTIVE})},children:h.fq.ACTIVE===E?(0,P.jsx)(w.dz,{muted:!0,size:2*Z.iI}):(0,P.jsx)(w.Py,{default:!0,size:2*Z.iI})},"toggle_trigger_".concat(t)),(0,P.jsxs)(p.ZP,{alignItems:"center",flexDirection:"row",children:[(0,P.jsx)(x.Z,{block:!0,label:E,size:S,widthFitContent:!0,children:i}),(null===T||void 0===T?void 0:T[O])&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(x.Z,{block:!0,label:"This trigger is saved in code.",size:S,widthFitContent:!0,children:(0,P.jsx)(w.EK,{default:!0,size:S})})]})]},"trigger_status_".concat(t)),(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:null===(M=h.Z4[e.schedule_type])||void 0===M?void 0:M.call(h.Z4)},"trigger_type_".concat(t)),(0,P.jsx)(o(),{as:"/pipelines/".concat(z,"/triggers/").concat(r),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,P.jsx)(f.Z,{bold:!0,onClick:function(e){(0,I.j)(e),F.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(z,"/triggers/").concat(r))},sameColorAsText:!0,children:O})},"trigger_name_".concat(t))]);return n||H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:C},"trigger_frequency_".concat(t)),(0,P.jsx)("div",{children:(0,P.jsx)(b.Z,{tags:null===D||void 0===D?void 0:D.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(t))]),H.push.apply(H,[(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:c},"trigger_run_count_".concat(t)),(0,P.jsx)(y.ZP,{danger:_.V.FAILED===j,default:!j,monospace:!0,success:_.V.COMPLETED===j,warning:_.V.CANCELLED===j,children:j||"N/A"},"latest_run_status_".concat(t)),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return F.push("/pipelines/".concat(z,"/logs?pipeline_schedule_id[]=").concat(r))},children:(0,P.jsx)(w.UL,{default:!0,size:2*Z.iI})},"logs_button_".concat(t))]),n||(0,k.Ct)()||H.push((0,P.jsxs)(p.ZP,{children:[(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){return F.push("/pipelines/".concat(z,"/triggers/").concat(r,"/edit"))},title:"Edit",children:(0,P.jsx)(w.I8,{default:!0,size:2*Z.iI})}),(0,P.jsx)(m.Z,{mr:1}),(0,P.jsx)(a.Z,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(){var e,n,t,i;W(r),G((null===(e=B.current[r])||void 0===e||null===(n=e.current)||void 0===n?void 0:n.offsetTop)||0),X((null===(t=B.current[r])||void 0===t||null===(i=t.current)||void 0===i?void 0:i.offsetLeft)||0)},ref:B.current[r],title:"Delete",children:(0,P.jsx)(w.rF,{default:!0,size:2*Z.iI})}),(0,P.jsx)(s.Z,{onClickOutside:function(){return W(null)},open:U===r,children:(0,P.jsx)(g.Z,{danger:!0,left:(Q||0)-286,onCancel:function(){return W(null)},onClick:function(){W(null),ne(r)},title:"Are you sure you want to delete the trigger ".concat(O,"?"),top:(J||0)-(t<=1?40:96),width:40*Z.iI})})]},"edit_delete_buttons_".concat(t))),!n&&A&&H.splice(2,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:z},"pipeline_name_".concat(t))),!n&&N&&H.splice(3,0,(0,P.jsx)(y.ZP,{default:!0,monospace:!0,children:u},"created_at_".concat(t))),H})),stickyHeader:q,uuid:"pipeline-triggers"})})}},66050:function(e,n,t){"use strict";var i;t.d(n,{V:function(){return i}}),function(e){e.CANCELLED="cancelled",e.COMPLETED="completed",e.FAILED="failed",e.INITIAL="initial",e.RUNNING="running",e.UPSTREAM_FAILED="upstream_failed",e.CONDITION_FAILED="condition_failed"}(i||(i={}))},30119:function(e,n,t){"use strict";var i;t.d(n,{b:function(){return i}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(i||(i={}))},79891:function(e,n,t){"use strict";var i=t(38626),r=t(60328),o=t(67971),l=t(86673),u=t(19711),c=t(23831),a=t(22341),d=t(49125),s=t(31012),p=t(28598),f=i.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((d.iI+s.Al)/2,"px;\n height: ").concat(1.5*d.iI+s.Al,"px;\n padding: ").concat(d.iI/1.5,"px ").concat(1.25*d.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((d.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+d.iI/2+2,"px;\n padding: ").concat(d.iI/4,"px ").concat(d.iI,"px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,t=e.children,i=e.disabled,c=e.label,s=e.onClick,h=e.primary,g=e.small;return(0,p.jsx)(f,{border:n,primary:h,small:g,children:(0,p.jsx)(r.Z,{basic:!0,disabled:i,noBackground:!0,noPadding:!0,onClick:s,transparent:!0,children:(0,p.jsxs)(o.ZP,{alignItems:"center",children:[t,c&&(0,p.jsx)(u.ZP,{small:g,children:c}),!i&&s&&(0,p.jsx)(l.Z,{ml:1,children:(0,p.jsx)(a.x8,{default:h,muted:!h,size:g?d.iI:1.25*d.iI})})]})})})}},87372:function(e,n,t){"use strict";var i,r,o,l,u,c,a,d,s=t(82394),p=t(26304),f=t(26653),h=t(38626),g=t(33591),m=t(23831),v=t(2005),b=t(31012),y=t(19711),x=t(49125),j=t(86673),w=t(28598),_=["children","condensed","inline","level","marketing","spacingBelow"];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 O(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,s.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}var k=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(v.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(v.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(v.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(v.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(v.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),I=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],k,g.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.lg(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ)),P=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],k,b.MJ),S=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],k,g.media.xs(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.sm(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.md(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.lg(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),g.media.xl(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],k,b.BL),A=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],k),E=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],k),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],k),T=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],k,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),z=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,u=e.spacingBelow,c=(0,p.Z)(e,_);r?n=T:0===Number(o)?n=I:1===Number(o)?n=l?S:P:2===Number(o)?n=N:3===Number(o)?n=A:4===Number(o)?n=E:5===Number(o)&&(n=D);var a=(0,w.jsxs)(n,O(O({},c),{},{level:o,children:[u&&(0,w.jsx)(j.Z,{mb:i?2:3,children:t}),!u&&t]}));return r?a:(0,w.jsx)(C,{children:a})};z.defaultProps={level:3,weightStyle:6},n.Z=z},90211:function(e,n,t){"use strict";t.d(n,{RA:function(){return d},kC:function(){return s},vg:function(){return b},kE:function(){return _},Mp:function(){return p},Pb:function(){return c},HW:function(){return x},wX:function(){return f},x6:function(){return h},_6:function(){return g},zf:function(){return y},Y6:function(){return w},wE:function(){return Z},J3:function(){return m},We:function(){return a},QV:function(){return j},C5:function(){return v}});var i=t(75582),r=t(17717),o=["aged","ancient","autumn","billowing","bitter","black","blue","bold","broken","cold","cool","crimson","damp","dark","dawn","delicate","divine","dry","empty","falling","floral","fragrant","frosty","green","hidden","holy","icy","late","lingering","little","lively","long","misty","morning","muddy","nameless","old","patient","polished","proud","purple","quiet","red","restless","rough","shy","silent","small","snowy","solitary","sparkling","spring","still","summer","throbbing","twilight","wandering","weathered","white","wild","winter","wispy","withered","young"],l=(t(92083),["bird","breeze","brook","bush","butterfly","cherry","cloud","darkness","dawn","dew","dream","dust","feather","field","fire","firefly","flower","fog","forest","frog","frost","glade","glitter","grass","haze","hill","lake","leaf","meadow","moon","morning","mountain","night","paper","pine","pond","rain","resonance","river","sea","shadow","shape","silence","sky","smoke","snow","snowflake","sound","star","sun","sun","sunset","surf","thunder","tree","violet","voice","water","water","waterfall","wave","wildflower","wind","wood"]),u=t(24224);function c(e){if(!e)return!1;try{JSON.parse(e)}catch(n){return!1}return!0}function a(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e.split(" ").join(n)}function d(e){return e.split(" ").join("_")}function s(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return String((new Date).getTime()*e)}function f(e){return e.charAt(0).toLowerCase()+e.slice(1)}function h(e){if(null===e||"undefined"===typeof e)return"";var n=e.toString().split("."),t=(0,i.Z)(n,2),r=t[0],o=t[1],l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return o?"".concat(l,".").concat(o):l}function g(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n,o=void 0!==r&&null!==r;if(o||(r=2),1===r)t=e;else{var l=e.length,u=e[l-1];t="y"===u&&"day"!==e?"".concat(e.slice(0,l-1),"ies"):"".concat(e,"s"===u?"es":"s")}if(o){var c=i?h(r):r;return"".concat(c," ").concat(t)}return t}function m(e){return null===e||void 0===e?void 0:e.replace(/_/g," ")}function v(e){var n=e.length;return"ies"===e.slice(n-3,n)?"".concat(e.slice(0,n-3),"y"):"es"===e.slice(n-2,n)&&"ces"!==e.slice(n-3,n)?e.slice(0,n-2):e.slice(0,n-1)}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s(m(e.toLowerCase()))}function y(e){var n,t=[["second",60],["minute",60],["hour",24],["day",7],["week",4],["month",12],["year",null]];return t.forEach((function(r,o){if(!n){var l=(0,i.Z)(r,2),u=l[0],c=l[1],a=t.slice(0,o).reduce((function(e,n){return e*Number(n[1])}),1);e<Number(c)*a&&(n=g(u,Math.round(e/a)))}})),n}function x(e){return"undefined"!==typeof e&&null!==e&&!isNaN(e)}function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,t=Math.pow(10,n);return Math.round((e||0)*t)/t}function w(){return"".concat((0,u.mp)(o)," ").concat((0,u.mp)(l))}function _(e){return null===e||void 0===e?void 0:e.toLowerCase().replace(/\W+/g,"_")}function Z(e){var n,t=e.split(r.sep),i=t[t.length-1].split(".");return n=1===i.length?i[0]:i.slice(0,-1).join("."),t.slice(0,t.length-1).concat(n).join(r.sep)}}}]);