mage-ai 0.9.67__py3-none-any.whl → 0.9.68__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 (243) hide show
  1. mage_ai/api/monitors/BaseMonitor.py +1 -2
  2. mage_ai/api/policies/PipelinePolicy.py +2 -0
  3. mage_ai/api/resources/BlockLayoutItemResource.py +2 -2
  4. mage_ai/api/resources/BlockResource.py +4 -3
  5. mage_ai/api/resources/CacheItemResource.py +1 -1
  6. mage_ai/api/resources/GitBranchResource.py +3 -5
  7. mage_ai/api/resources/PageBlockLayoutResource.py +2 -2
  8. mage_ai/api/resources/PipelineResource.py +13 -0
  9. mage_ai/api/resources/PipelineRunResource.py +10 -1
  10. mage_ai/cache/tag.py +3 -0
  11. mage_ai/cluster_manager/manage.py +4 -1
  12. mage_ai/data_preparation/executors/k8s_block_executor.py +8 -1
  13. mage_ai/data_preparation/executors/k8s_pipeline_executor.py +12 -1
  14. mage_ai/data_preparation/logging/gcs_logger_manager.py +7 -4
  15. mage_ai/data_preparation/models/block/__init__.py +21 -68
  16. mage_ai/data_preparation/models/block/block_factory.py +77 -0
  17. mage_ai/data_preparation/models/block/dbt/block.py +5 -7
  18. mage_ai/data_preparation/models/block/global_data_product/__init__.py +9 -3
  19. mage_ai/data_preparation/models/block/integration/__init__.py +12 -8
  20. mage_ai/data_preparation/models/block/platform/mixins.py +1 -1
  21. mage_ai/data_preparation/models/pipeline.py +80 -13
  22. mage_ai/data_preparation/storage/gcs_storage.py +1 -1
  23. mage_ai/data_preparation/templates/constants.py +7 -0
  24. mage_ai/io/export_utils.py +3 -0
  25. mage_ai/io/oracledb.py +138 -3
  26. mage_ai/io/sql.py +4 -0
  27. mage_ai/orchestration/db/__init__.py +2 -2
  28. mage_ai/orchestration/db/models/schedules.py +2 -2
  29. mage_ai/orchestration/notification/sender.py +8 -0
  30. mage_ai/orchestration/pipeline_scheduler_original.py +10 -1
  31. mage_ai/server/constants.py +1 -1
  32. mage_ai/server/frontend_dist/404.html +2 -2
  33. mage_ai/server/frontend_dist/_next/static/chunks/3548-961ff79ca70038c7.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/{4241-ccd0126f5750cc35.js → 4241-4499461184ba0d23.js} +1 -1
  35. mage_ai/server/frontend_dist/_next/static/chunks/5627-237a3de578538022.js +1 -0
  36. mage_ai/server/frontend_dist/_next/static/chunks/{7966-5c1786fb7e7a48f5.js → 7966-f07b2913f7326b50.js} +1 -1
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-08790743315de36a.js +1 -0
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/index-13760bb72d823b69.js +1 -0
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-8bbfa0c19b5e4cb3.js +1 -0
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-852d403c7bda21b3.js +1 -0
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-597b74828bf105db.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a8b61d8d239fd16f.js +1 -0
  43. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-bd0aff5a5ed8888c.js +1 -0
  44. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +1 -0
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-d1ee961387c58b7f.js +1 -0
  46. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-90abafc7ed61c582.js +1 -0
  47. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cb88fd075a357fcf.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-ceb06e1616ee9610.js +1 -0
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-8ff16ef9566e911a.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-d7a8bc51bb7a1082.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-f59d34429fe022ee.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-9cba3211434a8966.js +1 -0
  53. mage_ai/server/{frontend_dist_base_path_template/_next/static/khKiaJtwrslgMmp4YSa1f → frontend_dist/_next/static/i8pymuJDTVHdWjUP1QSh1}/_buildManifest.js +1 -1
  54. mage_ai/server/frontend_dist/block-layout.html +2 -2
  55. mage_ai/server/frontend_dist/compute.html +2 -2
  56. mage_ai/server/frontend_dist/files.html +2 -2
  57. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  58. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  59. mage_ai/server/frontend_dist/global-hooks/[...slug].html +2 -2
  60. mage_ai/server/frontend_dist/global-hooks.html +2 -2
  61. mage_ai/server/frontend_dist/index.html +2 -2
  62. mage_ai/server/frontend_dist/manage/files.html +2 -2
  63. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  64. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  65. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  66. mage_ai/server/frontend_dist/manage/users.html +2 -2
  67. mage_ai/server/frontend_dist/manage.html +2 -2
  68. mage_ai/server/frontend_dist/oauth.html +3 -3
  69. mage_ai/server/frontend_dist/overview.html +2 -2
  70. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  71. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  72. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  73. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +2 -2
  74. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  75. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  76. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  77. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  78. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  79. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  80. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  81. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  82. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  83. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  84. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  85. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  86. mage_ai/server/frontend_dist/pipelines.html +2 -2
  87. mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +2 -2
  88. mage_ai/server/frontend_dist/platform/global-hooks.html +2 -2
  89. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  90. mage_ai/server/frontend_dist/settings/platform/preferences.html +2 -2
  91. mage_ai/server/frontend_dist/settings/platform/settings.html +2 -2
  92. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +2 -2
  93. mage_ai/server/frontend_dist/settings/workspace/permissions.html +2 -2
  94. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  95. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +2 -2
  96. mage_ai/server/frontend_dist/settings/workspace/roles.html +2 -2
  97. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  98. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +2 -2
  99. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  100. mage_ai/server/frontend_dist/settings.html +2 -2
  101. mage_ai/server/frontend_dist/sign-in.html +5 -5
  102. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  103. mage_ai/server/frontend_dist/templates.html +2 -2
  104. mage_ai/server/frontend_dist/terminal.html +2 -2
  105. mage_ai/server/frontend_dist/test.html +2 -2
  106. mage_ai/server/frontend_dist/triggers.html +2 -2
  107. mage_ai/server/frontend_dist/version-control.html +2 -2
  108. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  109. mage_ai/server/{frontend_dist/_next/static/vPsMu6Fi2zrHaf2fRXKRO → frontend_dist_base_path_template/_next/static/CKCvjsYCf2imD2X8zAOBf}/_buildManifest.js +1 -1
  110. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-961ff79ca70038c7.js +1 -0
  111. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4241-ccd0126f5750cc35.js → 4241-4499461184ba0d23.js} +1 -1
  112. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5627-237a3de578538022.js +1 -0
  113. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7966-5c1786fb7e7a48f5.js → 7966-f07b2913f7326b50.js} +1 -1
  114. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-08790743315de36a.js +1 -0
  115. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/index-13760bb72d823b69.js +1 -0
  116. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-8bbfa0c19b5e4cb3.js +1 -0
  117. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-852d403c7bda21b3.js +1 -0
  118. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-597b74828bf105db.js +1 -0
  119. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a8b61d8d239fd16f.js +1 -0
  120. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-bd0aff5a5ed8888c.js +1 -0
  121. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1417ad1c821d720a.js +1 -0
  122. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-d1ee961387c58b7f.js +1 -0
  123. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-90abafc7ed61c582.js +1 -0
  124. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cb88fd075a357fcf.js +1 -0
  125. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-ceb06e1616ee9610.js +1 -0
  126. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-8ff16ef9566e911a.js +1 -0
  127. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-d7a8bc51bb7a1082.js +1 -0
  128. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-f59d34429fe022ee.js +1 -0
  129. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-9cba3211434a8966.js +1 -0
  130. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  131. mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
  132. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  133. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  134. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  135. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +2 -2
  136. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +2 -2
  137. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  138. mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
  139. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  140. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  141. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  142. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  143. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  144. mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
  145. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  146. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  147. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  148. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  149. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
  150. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  151. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  152. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  153. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  154. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  155. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  156. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  157. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  158. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  159. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  160. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  161. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  162. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  163. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +2 -2
  164. mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +2 -2
  165. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  166. mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +2 -2
  167. mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +2 -2
  168. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
  169. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
  170. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  171. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
  172. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
  173. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  174. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
  175. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  176. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  177. mage_ai/server/frontend_dist_base_path_template/sign-in.html +5 -5
  178. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  179. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  180. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  181. mage_ai/server/frontend_dist_base_path_template/test.html +2 -2
  182. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  183. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  184. mage_ai/services/k8s/job_manager.py +8 -0
  185. mage_ai/services/slack/slack.py +10 -1
  186. mage_ai/services/spark/spark.py +9 -2
  187. mage_ai/settings/backends.py +8 -8
  188. mage_ai/settings/models/configuration_option.py +10 -9
  189. mage_ai/shared/files.py +19 -1
  190. mage_ai/shared/path_fixer.py +3 -0
  191. mage_ai/streaming/sources/base.py +5 -0
  192. mage_ai/streaming/sources/kafka.py +2 -1
  193. mage_ai/streaming/sources/mongodb.py +4 -0
  194. mage_ai/tests/data_preparation/models/block/dbt/test_block.py +2 -2
  195. mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +1 -1
  196. mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +1 -1
  197. mage_ai/tests/data_preparation/models/test_block.py +2 -1
  198. mage_ai/tests/orchestration/test_pipeline_scheduler.py +2 -0
  199. mage_ai/tests/settings/models/test_configuration_option.py +2 -2
  200. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/METADATA +3 -3
  201. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/RECORD +207 -206
  202. mage_ai/server/frontend_dist/_next/static/chunks/181-e61915415a976861.js +0 -1
  203. mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +0 -1
  204. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-1c1ffd928f5a00f7.js +0 -1
  205. mage_ai/server/frontend_dist/_next/static/chunks/pages/index-b7b8695a7f9efde2.js +0 -1
  206. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-d3a5fd3119fdb1e4.js +0 -1
  207. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-42789d698d28a92f.js +0 -1
  208. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-d05040edba41b2ac.js +0 -1
  209. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-aaf393c86fc1bda3.js +0 -1
  210. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-36377e679da2cd91.js +0 -1
  211. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1b688d61f8efe07a.js +0 -1
  212. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-ed3331d22d5cff7d.js +0 -1
  213. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d94e48bad89ba1e0.js +0 -1
  214. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-f508c2f261297724.js +0 -1
  215. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-f99e99aa8f45529c.js +0 -1
  216. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-6826000cdffc36b8.js +0 -1
  217. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-dde29a463495cebb.js +0 -1
  218. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-7d38b2f7c3e918a1.js +0 -1
  219. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ab98a7b3a678669e.js +0 -1
  220. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/181-e61915415a976861.js +0 -1
  221. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +0 -1
  222. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-1c1ffd928f5a00f7.js +0 -1
  223. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/index-b7b8695a7f9efde2.js +0 -1
  224. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-d3a5fd3119fdb1e4.js +0 -1
  225. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-42789d698d28a92f.js +0 -1
  226. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-d05040edba41b2ac.js +0 -1
  227. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-aaf393c86fc1bda3.js +0 -1
  228. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-36377e679da2cd91.js +0 -1
  229. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1b688d61f8efe07a.js +0 -1
  230. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-ed3331d22d5cff7d.js +0 -1
  231. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-d94e48bad89ba1e0.js +0 -1
  232. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-f508c2f261297724.js +0 -1
  233. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-f99e99aa8f45529c.js +0 -1
  234. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-6826000cdffc36b8.js +0 -1
  235. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-dde29a463495cebb.js +0 -1
  236. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-7d38b2f7c3e918a1.js +0 -1
  237. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ab98a7b3a678669e.js +0 -1
  238. /mage_ai/server/frontend_dist/_next/static/{vPsMu6Fi2zrHaf2fRXKRO → i8pymuJDTVHdWjUP1QSh1}/_ssgManifest.js +0 -0
  239. /mage_ai/server/frontend_dist_base_path_template/_next/static/{khKiaJtwrslgMmp4YSa1f → CKCvjsYCf2imD2X8zAOBf}/_ssgManifest.js +0 -0
  240. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/LICENSE +0 -0
  241. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/WHEEL +0 -0
  242. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/entry_points.txt +0 -0
  243. {mage_ai-0.9.67.dist-info → mage_ai-0.9.68.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><title>Mage</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/b59541b123fd7191.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b59541b123fd7191.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-d079359c241db804.js" defer=""></script><script src="/_next/static/chunks/framework-22b71764bf44ede4.js" defer=""></script><script src="/_next/static/chunks/main-77fe248a6fbd12d8.js" defer=""></script><script src="/_next/static/chunks/pages/_app-1c1ffd928f5a00f7.js" defer=""></script><script src="/_next/static/chunks/pages/404-8ecd93274c427b76.js" defer=""></script><script src="/_next/static/vPsMu6Fi2zrHaf2fRXKRO/_buildManifest.js" defer=""></script><script src="/_next/static/vPsMu6Fi2zrHaf2fRXKRO/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
1
+ <!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><title>Mage</title><meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=0" name="viewport"/><meta name="next-head-count" content="3"/><link href="/favicon.ico" rel="icon"/><link rel="preload" href="/_next/static/css/b59541b123fd7191.css" as="style"/><link rel="stylesheet" href="/_next/static/css/b59541b123fd7191.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-d079359c241db804.js" defer=""></script><script src="/_next/static/chunks/framework-22b71764bf44ede4.js" defer=""></script><script src="/_next/static/chunks/main-77fe248a6fbd12d8.js" defer=""></script><script src="/_next/static/chunks/pages/_app-08790743315de36a.js" defer=""></script><script src="/_next/static/chunks/pages/404-8ecd93274c427b76.js" defer=""></script><script src="/_next/static/i8pymuJDTVHdWjUP1QSh1/_buildManifest.js" defer=""></script><script src="/_next/static/i8pymuJDTVHdWjUP1QSh1/_ssgManifest.js" defer=""></script><style data-styled="" data-styled-version="5.3.6">html{-webkit-box-sizing:border-box;box-sizing:border-box;-ms-overflow-style:scrollbar;}/*!sc*/
2
2
  *,*::before,*::after{-webkit-box-sizing:inherit;box-sizing:inherit;}/*!sc*/
3
3
  data-styled.g4[id="sc-global-czSCUT1"]{content:"sc-global-czSCUT1,"}/*!sc*/
4
4
  .cAAVhx{margin-top:16px;margin-bottom:16px;}/*!sc*/
@@ -17,4 +17,4 @@ data-styled.g79[id="Headline__H1Style-sc-12jzt2e-2"]{content:"hkcwCQ,"}/*!sc*/
17
17
  .kOVcuR .Toastify__toast--success{background:#00A81A !important;color:#FFFFFF !important;}/*!sc*/
18
18
  .kOVcuR .Toastify__toast--warning{background:#DD9900 !important;color:#FFFFFF !important;}/*!sc*/
19
19
  data-styled.g275[id="ToastWrapper-sc-1a33ph1-0"]{content:"kOVcuR,"}/*!sc*/
20
- </style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><main style="align-items:center;display:flex;flex-direction:column;height:100vh;margin-top:16rem"><svg width="84.70857142857143" height="64" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z" fill="url(#paint0_linear_1303_5)"></path><path d="M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z" fill="url(#paint1_linear_1303_5)"></path><path d="M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z" fill="url(#paint2_linear_1303_5)"></path><defs><linearGradient id="paint0_linear_1303_5" x1="8.03125" y1="7" x2="19.2641" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint1_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint2_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient></defs></svg><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 cAAVhx"><div class="Headline__HeadlineContainerStyle-sc-12jzt2e-0 dDWSWx"><h1 class="Headline__H1Style-sc-12jzt2e-2 hkcwCQ">404 - Page Not Found<!-- --></h1></div></div><p class="Text__TextStyle-sc-sl5nur-0 fmHTvj">You will be redirected to the Pipelines dashboard in <!-- -->5<!-- --> seconds.<!-- --></p></main><div id="command-center-root"></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtDark":"rgba(252, 105, 73, 0.3)","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"blackTransparent":"rgba(0, 0, 0, 0.6)","blackTransparentDark":"rgba(0, 0, 0, 0.8)","chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","dashboardTransparent":"rgba(24, 24, 28, 0.1)","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","panelTransparent":"rgba(35, 36, 41, 0.7)","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","blackBackgroundTransparent":"rgba(0, 0, 0, 0.5)","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBackgroundTransparent":"rgba(54, 56, 63, 0.5)","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBackgroundTransparent":"rgba(78, 78, 78, 0.5)","hoverBlackBackgroundTransparent":"rgba(0, 0, 0, 0.7)","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/404","query":{},"buildId":"vPsMu6Fi2zrHaf2fRXKRO","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
20
+ </style></head><body><div id="__next"><div class="" style="position:fixed;top:0;left:0;height:2px;background:transparent;z-index:99999999999;width:100%"><div class="" style="height:100%;background:#FF144D;transition:all 500ms ease;width:0%"><div style="box-shadow:0 0 10px #FF144D, 0 0 10px #FF144D;width:5%;opacity:1;position:absolute;height:100%;transition:all 500ms ease;transform:rotate(3deg) translate(0px, -4px);left:-10rem"></div></div></div><main style="align-items:center;display:flex;flex-direction:column;height:100vh;margin-top:16rem"><svg width="84.70857142857143" height="64" viewBox="0 0 20 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M15.3266 0L19.2641 1.82961e-06L11.9687 14L8.03125 14L15.3266 0Z" fill="url(#paint0_linear_1303_5)"></path><path d="M11.9692 1.82961e-06L8.03164 0L0.736328 14L4.67383 14L8.03164 7.55626V14H11.9691V8.38194e-05L11.9692 1.82961e-06Z" fill="url(#paint1_linear_1303_5)"></path><path d="M15.3269 2.57679e-06H19.2644V14H15.3269V2.57679e-06Z" fill="url(#paint2_linear_1303_5)"></path><defs><linearGradient id="paint0_linear_1303_5" x1="8.03125" y1="7" x2="19.2641" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint1_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient><linearGradient id="paint2_linear_1303_5" x1="0.736328" y1="7" x2="19.2644" y2="7" gradientUnits="userSpaceOnUse"><stop offset="0.28125" stop-color="#7D55EC"></stop><stop offset="1" stop-color="#2AB2FE"></stop></linearGradient></defs></svg><div class="Spacing__SpacingStyle-sc-1mpmtgj-0 cAAVhx"><div class="Headline__HeadlineContainerStyle-sc-12jzt2e-0 dDWSWx"><h1 class="Headline__H1Style-sc-12jzt2e-2 hkcwCQ">404 - Page Not Found<!-- --></h1></div></div><p class="Text__TextStyle-sc-sl5nur-0 fmHTvj">You will be redirected to the Pipelines dashboard in <!-- -->5<!-- --> seconds.<!-- --></p></main><div id="command-center-root"></div><div></div><div></div><div></div><div class="ToastWrapper-sc-1a33ph1-0 kOVcuR"><div class="Toastify"></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{},"currentTheme":{"accent":{"alert":"#F6540B","blue":"#4877FF","blueLight":"rgba(72, 119, 255, 0.5)","contentDefaultTransparent":"rgba(174, 174, 174, 0.5)","cyan":"#65E3FF","cyanLight":"rgba(101, 227, 255, 0.3)","cyanTransparent":"rgba(101, 227, 255, 0.12)","dbt":"#fc6949","dbtDark":"rgba(252, 105, 73, 0.3)","dbtLight":"rgba(252, 105, 73, 0.5)","info":"#00ABFF","infoTransparent":"rgba(0, 171, 255, 0.5)","negative":"#FF1E59","negativeTransparent":"rgba(255, 30, 89, 0.3)","pink":"#FF4FF8","pinkLight":"rgb(255, 79, 248, 0.5)","positive":"#00A81A","primaryTransparent":"rgba(155, 108, 167, 0.5)","purple":"#7D55EC","purpleLight":"rgba(125, 85, 236, 0.5)","rose":"#D1A2AB","roseLight":"rgba(209, 162, 171, 0.5)","sky":"#6AA1E0","skyLight":"rgba(106, 161, 224, 0.5)","teal":"#00B4CC","tealLight":"rgba(0, 180, 204, 0.5)","warning":"#DD9900","warningTransparent":"rgba(221, 153, 0, 0.5)","yellow":"#FFCC19","yellowLight":"rgba(255, 204, 25, 0.5)"},"background":{"blackTransparent":"rgba(0, 0, 0, 0.6)","blackTransparentDark":"rgba(0, 0, 0, 0.8)","chartBlock":"#2E3036","codeArea":"#1E1F24","codeTextarea":"#000000","content":"#1B1C20","danger":"#FFD0DB","dark":"#B1B8C3","dashboard":"#18181C","dashboardTransparent":"rgba(24, 24, 28, 0.1)","header":"#1B1B1B","menu":"#0F4CFF","muted":"#F9FAFC","navigation":"#EDEDED","output":"#2E3036","page":"#1E1F24","panel":"#232429","panelTransparent":"rgba(35, 36, 41, 0.7)","popup":"#27292E","row":"#2C2C2C","row2":"#51535C","scrollbarThumb":"rgba(100, 100, 100, 0.5)","scrollbarThumbHover":"rgba(255, 255, 255, 0.3)","scrollbarTrack":"#2E3036","success":"#8ADE00","successLight":"rgb(138, 222, 0, 0.3)","table":"#292A2F","tag":"#3A4550"},"borders":{"button":"#454850","contrast":"#FFFFFF","danger":"#FF144D","dark":"#000000","darkLight":"#2E3036","info":"#FFCC19","light":"#2F3034","medium":"#1C1C1C","medium2":"#141414","success":"#2FCB52"},"brand":{"earth100":"#C6EEDB","earth200":"#9DDFBF","earth300":"#6BBF96","earth400":"#37A46F","earth400Transparent":"rgba(55, 164, 111, 0.4)","earth500":"#00954C","energy100":"#FFF4BA","energy200":"#FFED92","energy300":"#FFE662","energy400":"#FFDA19","energy400Transparent":"rgba(255, 218, 25, 0.04)","energy500":"#F6C000","fire100":"#FFD7E0","fire200":"#FFA3B9","fire300":"#FF547D","fire400":"#FF144D","fire400Transparent":"rgba(255, 20, 77, 0.4)","fire500":"#EB0032","stone100":"#F3E6D7","stone200":"#E3D4C2","stone400":"#BFA78B","stone500":"#AF8859","water100":"#BDCEFF","water200":"#81A1FF","water300":"#517DFF","water400":"#2A60FE","water400Transparent":"rgba(42, 96, 254, 0.4)","water500":"#0F4CFF","wind100":"#EEEAFF","wind200":"#CCC1F4","wind300":"#A698DD","wind400":"#6B50D7","wind400SuperTransparent":"rgba(107, 80, 215, 0.12)","wind400Transparent":"rgba(107, 80, 215, 0.4)","wind500":"#4E32BC"},"chart":{"backgroundPrimary":"#7D55EC","backgroundSecondary":"#FF144D","backgroundTertiary":"#86E2FF","button1":"#4877FF","button2":"#FFCC19","button3":"#8ADE00","button4":"#FF4FF8","button5":"#B98D95","lines":"#9B6CA7","primary":"#6B50D7","secondary":"#FF144D","tertiary":"#2A60FE"},"content":{"active":"#FFFFFF","default":"#AEAEAE","disabled":"rgba(255, 255, 255, 0.3)","inverted":"#2C2C2C","muted":"#787A85"},"elevation":{"visualizationAccent":"#996CFF","visualizationAccentAlt":"#C1ACF7"},"feature":{"active":"rgba(250, 248, 254, 0.14)","disabled":"rgba(201, 206, 218, 0.12)"},"icons":{"neutral":"#787878"},"interactive":{"activeBorder":"#060606","blackBackgroundTransparent":"rgba(0, 0, 0, 0.5)","checked":"#060606","dangerBorder":"#FF144D","defaultBackground":"#36383F","defaultBackgroundTransparent":"rgba(54, 56, 63, 0.5)","defaultBorder":"#ffffff1a","disabledBorder":"#B1B8C3","focusBackground":"#B1B8C3","focusBorder":"#86E2FF","hoverBackground":"#4E4E4E","hoverBackgroundTransparent":"rgba(78, 78, 78, 0.5)","hoverBlackBackgroundTransparent":"rgba(0, 0, 0, 0.7)","hoverBorder":"#B9BFCA","hoverOverlay":"rgba(255, 255, 255, 0.1)","linkPrimary":"#1752FF","linkPrimaryHover":"#4877FF","linkPrimaryLight":"#5982ff","linkSecondary":"#6B50D7","linkSecondaryDisabled":"#C4B9EF","linkText":"#6AA1E0","linkTextLight":"#9ECBFF","purple":"#885EFF","rowHoverBackground":"rgba(0, 0, 0, 0.1)","transparent":"rgba(255, 255, 255, 0)"},"loader":{"color":"#EB0032","colorInverted":"#8ADE00"},"logo":{"color":"#FFFFFF"},"monotone":{"black":"#060606","blackTransparent":"rgba(0, 0, 0, 0.6)","gray":"#B1B8C3","grey100":"#F2F2F2","grey200":"#D5D7DC","grey300":"#B4B8C0","grey400":"#70747C","grey500":"#51535C","purple":"#6B50D7","white":"#FFFFFF","whiteTransparent":"rgba(255, 255, 255, 0.6)"},"neutral":{"n100":"#E7E8EA","n200":"#D8DADE","n300":"#CBCCD0","n400":"#BCBEC4","n500":"#AEB0B6"},"progress":{"negative":"#FF144D","positive":"#6B50D7"},"shadow":{"base":"12px 40px 120px rgba(0, 0, 0, 0.3)","frame":"0px 10px 40px rgba(0, 0, 0, 0.26)","menu":"4px 10px 20px rgba(6, 6, 6, 0.12)","popup":"10px 20px 40px rgba(0, 0, 0, 0.2)","small":"0px, 4px, rgba(0, 0, 0, 0.25)","window":"0px 10px 60px rgba(0, 0, 0, 0.7)"},"status":{"negative":"#FF144D","positive":"#24B400"},"text":{"fileBrowser":"#787A85"}}},"page":"/404","query":{},"buildId":"i8pymuJDTVHdWjUP1QSh1","nextExport":true,"isFallback":false,"appGip":true,"scriptLoader":[]}</script></body></html>
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3548],{4015:function(e,n,t){t.d(n,{$b:function(){return s},I5:function(){return l},Nk:function(){return d},gI:function(){return a}});var i=t(25976),r=t(44897),o=t(42631),c=t(70515),d=i.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-h093u4-0"})([""," ",""],(function(e){return!e.width&&"\n width: ".concat(40*c.iI,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),l=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-h093u4-1"})(["padding:","px;"," ",""],2.5*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top-left-radius: ").concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),a=i.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-h093u4-2"})(["align-items:center;justify-content:space-between;"," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).dashboard,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-top: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n display: ").concat((null===e||void 0===e?void 0:e.display)||"flex",";\n padding-bottom: ").concat(1*c.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n padding-left: ").concat(c.cd*c.iI,"px;\n padding-top: ").concat(1*c.iI+((null===e||void 0===e?void 0:e.paddingVerticalAddition)||0),"px;\n ")}),(function(e){return e.lightBackground&&"\n background-color: ".concat((e.theme.background||r.Z.background).panel,"\n ")})),s=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-h093u4-3"})(["padding:","px ","px;"," ",""],2.5*c.iI,2*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||r.Z.background).panel,";\n border-bottom-left-radius: ").concat(o.n_,"px;\n border-bottom-right-radius: ").concat(o.n_,"px;\n border-bottom: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.topBorder&&"\n border-top: 1px solid ".concat((e.theme.interactive||r.Z.interactive).defaultBorder,";\n ")}))},55729:function(e,n,t){t.d(n,{Z:function(){return M}});var i=t(82394),r=t(75582),o=t(82684),c=t(69864),d=t(71180),l=t(15338),a=t(97618),s=t(55485),u=t(85854),p=t(48670),v=t(65956),h=t(82359),f=t(88543),g=t(38276),m=t(30160),x=t(17488),j=t(69650),b=t(12468),Z=t(35686),_=t(77417),y=t(25976),k=t(44897),P=t(42631),w=t(70515),O=y.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],P.n_,w.cd*w.iI,(function(e){return"\n background-color: ".concat((e.theme.background||k.Z.background).codeArea,";\n ")})),C=t(72473),I=t(72191),B=t(70320),E=t(81728),N=t(42122),S=t(72619),A=t(23780),D=t(28598);function L(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?L(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):L(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var M=function(e){var n,t,y,k=e.cancelButtonText,P=e.contained,L=e.header,M=e.onCancel,V=e.onSaveSuccess,F=e.rootProject,T=(0,A.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),U=(0,r.Z)(T,1)[0],R=(0,o.useState)(null),q=R[0],z=R[1],G=(0,o.useState)(!1),K=G[0],W=G[1],Y=(0,_.Z)(),$=Y.fetchProjects,J=Y.project,Q=Y.projectPlatformActivated,X=Y.rootProject,ee=(0,o.useMemo)((function(){return F?X:J}),[J,X,F]),ne=ee||{},te=ne.name,ie=ne.openai_api_key,re=ne.project_uuid,oe=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){q||z(ee)}),[ee,q]);var ce=(0,c.Db)(Z.ZP.projects.useUpdate(te),{onSuccess:function(e){return(0,S.wD)(e,{callback:function(e){var n,t=e.project;$(),z(t),W(!1),(0,B.hY)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[h.d.LOCAL_TIMEZONE]),V&&(null===V||void 0===V||V(t))},onErrorCallback:function(e,n){return U({errors:n,response:e})}})}}),de=(0,r.Z)(ce,2),le=de[0],ae=de[1].isLoading,se=(0,o.useCallback)((function(e){return le({project:H(H({},e),{},{root_project:F})})}),[F,le]),ue=(0,D.jsxs)(D.Fragment,{children:[L,(0,D.jsxs)(v.Z,{noPadding:!0,children:[(0,D.jsxs)(g.Z,{p:w.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project name"})}),(0,D.jsx)(m.ZP,{default:!0,monospace:!0,children:te})]}),(0,D.jsx)(l.Z,{light:!0}),(0,D.jsxs)(g.Z,{p:w.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Project UUID"})}),(0,D.jsx)(m.ZP,{default:!!re,monospace:!0,muted:!re,children:re||"Not required"})]}),(0,D.jsx)(l.Z,{light:!0}),(0,D.jsx)(g.Z,{p:w.cd,children:(0,D.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,D.jsxs)(a.Z,{flexDirection:"column",children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Help improve Mage"})}),(0,D.jsxs)(m.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,D.jsx)(p.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,D.jsx)(g.Z,{mr:w.cd}),(0,D.jsx)(j.Z,{compact:!0,checked:null===q||void 0===q?void 0:q.help_improve_mage,onCheck:function(){return z((function(e){return H(H({},e),{},{help_improve_mage:!(null!==q&&void 0!==q&&q.help_improve_mage)})}))}})]})})]}),(0,D.jsx)(g.Z,{mt:w.HN}),(0,D.jsx)(f.Z,{description:"Global settings that are applied to all pipelines in this project.",title:"Pipeline settings",children:(0,D.jsx)(f.S,{description:"Every time a trigger is created or updated in this pipeline, automatically persist it in code.",title:"Save triggers in code automatically",toggleSwitch:{checked:!(null===q||void 0===q||null===(n=q.pipelines)||void 0===n||null===(t=n.settings)||void 0===t||null===(y=t.triggers)||void 0===y||!y.save_in_code_automatically),onCheck:function(e){return z((function(n){var t,i,r,o,c,d;return H(H({},n),{},{pipelines:H(H({},null===n||void 0===n?void 0:n.pipelines),{},{settings:H(H({},null===n||void 0===n||null===(t=n.pipelines)||void 0===t?void 0:t.settings),{},{triggers:H(H({},null===n||void 0===n||null===(i=n.pipelines)||void 0===i||null===(r=i.settings)||void 0===r?void 0:r.triggers),{},{save_in_code_automatically:e(null===n||void 0===n||null===(o=n.pipelines)||void 0===o||null===(c=o.settings)||void 0===c||null===(d=c.triggers)||void 0===d?void 0:d.save_in_code_automatically)})})})})}))}}})}),(0,D.jsx)(g.Z,{mt:w.HN}),(0,D.jsx)(v.Z,{noPadding:!0,overflowVisible:!0,children:(0,D.jsxs)(g.Z,{p:w.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"Features"})}),Object.entries((0,N.gR)(null===q||void 0===q?void 0:q.features,[h.d.CODE_BLOCK_V2])||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1],d=Q&&!F&&(null===ee||void 0===ee?void 0:ee.features_override)&&o in(null===ee||void 0===ee?void 0:ee.features_override);return(0,D.jsx)(g.Z,{mt:0===n?0:1,children:(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsxs)(a.Z,{flex:1,children:[(0,D.jsx)(j.Z,{disabled:d,checked:!!c,compact:!0,onCheck:function(){return z((function(e){return H(H({},e),{},{features:H(H({},null===q||void 0===q?void 0:q.features),{},(0,i.Z)({},o,!c))})}))}}),(0,D.jsx)(g.Z,{mr:w.cd}),(0,D.jsxs)(a.Z,{children:[(0,D.jsx)(m.ZP,{default:!c,monospace:!0,children:(0,E.vg)(o)}),o===h.d.LOCAL_TIMEZONE&&(0,D.jsx)(g.Z,{ml:1,children:(0,D.jsx)(b.Z,H({},B.EB))})]})]}),d&&(0,D.jsx)(m.ZP,{monospace:!0,muted:!0,small:!0,children:"overridden"})]})},o)}))]})}),(0,D.jsx)(g.Z,{mt:w.HN}),(0,D.jsx)(v.Z,{noPadding:!0,children:(0,D.jsxs)(g.Z,{p:w.cd,children:[(0,D.jsx)(g.Z,{mb:1,children:(0,D.jsx)(u.Z,{level:5,children:"OpenAI"})}),ie&&!K?(0,D.jsxs)(s.ZP,H(H({},s.A0),{},{children:[(0,D.jsx)(m.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,D.jsx)(d.ZP,{iconOnly:!0,onClick:function(){return W(!0)},secondary:!0,title:"Edit",children:(0,D.jsx)(C.Edit,{size:I.bL})})]})):(0,D.jsx)(x.Z,{disabled:oe,label:oe?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return z((function(n){return H(H({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===q||void 0===q?void 0:q.openai_api_key)||""})]})}),(0,D.jsx)(g.Z,{mt:w.HN}),(0,D.jsxs)(s.ZP,{alignItems:"center",children:[(0,D.jsx)(d.ZP,{id:"save-project-settings",loading:ae,onClick:function(){se({features:null===q||void 0===q?void 0:q.features,help_improve_mage:null===q||void 0===q?void 0:q.help_improve_mage,openai_api_key:null===q||void 0===q?void 0:q.openai_api_key,pipelines:null===q||void 0===q?void 0:q.pipelines})},primary:!0,children:"Save project settings"}),M&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(g.Z,{mr:w.cd}),(0,D.jsx)(d.ZP,{onClick:M,secondary:!0,children:k||"Cancel"})]})]})]});return P?(0,D.jsx)(O,{children:ue}):ue}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{84649:function(e,n,t){t.d(n,{EN:function(){return C},FX:function(){return I},HS:function(){return j},Nk:function(){return m},Rd:function(){return f},SL:function(){return w},Tj:function(){return _},UE:function(){return Z},Yf:function(){return v},ZG:function(){return d},bC:function(){return h},n5:function(){return p},n8:function(){return k},w5:function(){return y},wj:function(){return b},wl:function(){return g},ze:function(){return x}});var o=t(25976),i=t(44897),r=t(42631),u=t(46684),a=t(70515),l=t(91437),c=t(47041),d=2.5*a.iI,s=40*a.iI,p=10*a.iI,f=o.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],c.w5,(function(e){return"\n background-color: ".concat((e.theme.background||i.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 ")})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),h=o.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||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.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 "})),v=o.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*a.iI,a.cd*a.iI,a.cd*a.iI,1*a.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],c.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:u.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=o.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,l.eR)(),1*a.iI,a.cd*a.iI,a.cd*a.iI,1*a.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,l.eR)(),r.n_,5*a.iI,1.25*a.iI,1.25*a.iI,5*a.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||i.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],a.cd*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*a.iI),Z=o.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],r.n_,.75*a.iI,2.5*a.iI,50*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||i.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*a.iI),w=o.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*a.iI*2,1*a.iI),C=o.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*a.iI,.5*a.iI),I=o.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*a.iI,1*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}))},88328:function(e,n,t){t.d(n,{Z:function(){return A}});var o=t(82394),i=t(75582),r=t(12691),u=t.n(r),a=t(21764),l=t(82684),c=t(69864),d=t(34376),s=t(71180),p=t(90299),f=t(44898),m=t(24138),h=t(97618),v=t(55485),g=t(48670),b=t(38276),x=t(30160),y=t(35576),j=t(17488),k=t(62547),Z=t(35686),_=t(94777),w=t(98464),C=t(46684),I={uuid:"Define"},O={uuid:"Document"},P=[I,O],S=t(70515),D=t(11302),M=t(68899),U=t(72619),N=t(23780),T=t(19183),R=t(28598);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.defaultTab,t=e.onMutateSuccess,o=e.pipelineUUID,r=e.template,E=e.templateAttributes,A=e.templateUUID,L=(0,T.i)().height,B=(C.Mz,(0,d.useRouter)()),F=(0,N.VI)(null,{},[],{uuid:"CustomTemplates/PipelineTemplateDetail"}),W=(0,i.Z)(F,1)[0],Y=(0,l.useState)(!1),H=Y[0],z=Y[1],K=(0,l.useState)(!1),G=K[0],V=K[1],X=(0,l.useState)(E),J=X[0],Q=X[1],$=(0,l.useCallback)((function(e){V(!0),Q(e)}),[]),ee=(0,w.Z)(r);(0,l.useEffect)((function(){(null===ee||void 0===ee?void 0:ee.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)&&Q(r)}),[r,ee]);var ne=Z.ZP.pipelines.detail(o).data,te=(0,l.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline)||(null===ne||void 0===ne?void 0:ne.pipeline)}),[ne,r]),oe=(0,l.useMemo)((function(){return(null===te||void 0===te?void 0:te.blocks)||[]}),[te]),ie=(0,l.useMemo)((function(){return!r&&!A}),[r,A]),re=(0,l.useState)(n?P.find((function(e){return e.uuid===(null===n||void 0===n?void 0:n.uuid)})):P[0]),ue=re[0],ae=re[1],le=(0,l.useMemo)((function(){return!!ie&&!(null!==J&&void 0!==J&&J.template_uuid)}),[ie,J]),ce=(0,l.useState)(!1),de=ce[0],se=ce[1],pe=(0,l.useState)(ie?400:300),fe=pe[0],me=pe[1],he=(0,c.Db)(Z.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),z(!0),setTimeout((function(){B.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R))}),1)},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ve=(0,i.Z)(he,2),ge=ve[0],be=ve[1].isLoading,xe=(0,c.Db)(Z.ZP.custom_templates.useUpdate(r?encodeURIComponent(null===r||void 0===r?void 0:r.template_uuid):A&&encodeURIComponent(A),{object_type:f.R}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),null!==r&&void 0!==r&&r.template_uuid&&(null===n||void 0===n?void 0:n.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)||A&&(null===n||void 0===n?void 0:n.template_uuid)!==A?B.replace("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R)):(Q(n),V(!1),a.Am.success("Template successfully saved.",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ye=(0,i.Z)(xe,2),je=ye[0],ke=ye[1].isLoading,Ze=(0,l.useCallback)((function(){var e={custom_template:q(q({},J),{},{object_type:f.R})};ie?ge(q(q({},e),{},{custom_template:q(q({},null===e||void 0===e?void 0:e.custom_template),{},{pipeline_uuid:o})})):je(e)}),[ge,ie,o,J,je]),_e=(0,l.useMemo)((function(){return(0,R.jsxs)(v.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,R.jsx)(D.Yf,{children:(0,R.jsx)(p.Z,{noPadding:!0,onClickTab:function(e){ae(e)},selectedTabUUID:null===ue||void 0===ue?void 0:ue.uuid,tabs:P})}),(0,R.jsxs)(h.Z,{flexDirection:"column",children:[I.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(b.Z,{mt:S.cd,px:S.cd,children:(0,R.jsxs)(x.ZP,{default:!0,children:["This pipeline template will be based off the pipeline ",(0,R.jsx)(u(),{as:"/pipelines/".concat(o),href:"/pipelines/[pipeline]",passHref:!0,children:(0,R.jsx)(g.Z,{bold:!0,default:!0,inline:!0,monospace:!0,openNewWindow:!0,children:o})}),"."]})}),(0,R.jsxs)(b.Z,{mt:S.cd,px:S.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Template UUID"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,R.jsx)(j.Z,{monospace:!0,onChange:function(e){return $((function(n){return q(q({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.template_uuid)||""})]})]}),O.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(b.Z,{mt:S.cd,px:S.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Name"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,R.jsx)(j.Z,{onChange:function(e){return $((function(n){return q(q({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.name)||""})]}),(0,R.jsx)(b.Z,{mt:S.cd,px:S.cd,children:(0,R.jsx)(y.Z,{label:"Description",onChange:function(e){return $((function(n){return q(q({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.description)||""})})]})]}),(0,R.jsx)(D.ig,{children:(0,R.jsx)(b.Z,{p:S.cd,children:(0,R.jsx)(v.ZP,{children:(0,R.jsxs)(s.ZP,{disabled:le,fullWidth:!0,loading:be||ke,onClick:function(){return Ze()},primary:!0,children:[!ie&&"Save template",ie&&"Create new template"]})})})})]})}),[le,be,ke,ie,o,Ze,null===ue||void 0===ue?void 0:ue.uuid,$,J]),we=(0,_.Z)({shouldWarn:!H&&G,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,R.jsxs)(k.Z,{before:_e,beforeHidden:de,beforeWidth:fe,leftOffset:M.k1,setBeforeHidden:se,setBeforeWidth:me,children:[(0,R.jsx)(we,{}),(0,R.jsx)(m.ZP,{blocks:oe,height:L,heightOffset:C.Mz,noStatus:!0,pipeline:te})]})}},11302:function(e,n,t){t.d(n,{Nk:function(){return l},Yf:function(){return d},bC:function(){return c},ig:function(){return s},w5:function(){return p}});var o=t(25976),i=t(44897),r=t(70515),u=t(84649),a=(r.iI,40*r.iI),l=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),c=o.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],a,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),d=o.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*r.iI,r.cd*r.iI,r.cd*r.iI,1*r.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],r.cd*r.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),p=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],a)},5755:function(e,n,t){t.d(n,{Z:function(){return z}});var o=t(82394),i=t(75582),r=t(56085),u=t(82684),a=t(65701),l=t(1254),c=t(21764),d=t(69864),s=t(34376),p=t(40761),f=t(71180),m=t(90299),h=t(18746),v=t(44898),g=t(97618),b=t(55485),x=t(38276),y=t(44085),j=t(30160),k=t(35576),Z=t(17488),_=t(35686),w=t(94777),C=t(98464),I=t(44425),O=t(11302),P=t(48339),S=t(39643),D={uuid:"Define"},M={uuid:"Document"},U=[D,M],N=t(11498),T=t(70515),R=t(57653),E=t(4383),q=t(72619),A=t(42041),L=t(23780),B=t(44688),F=t(19183),W=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=function(e){var n=e.contained,t=e.defaultTab,Y=e.heightOffset,z=e.onCancel,K=e.onCreateCustomTemplate,G=e.onMutateSuccess,V=e.template,X=e.templateAttributes,J=e.templateUUID,Q=(0,F.i)().height,$=(0,s.useRouter)(),ee=(0,L.VI)(null,{},[],{uuid:"CustomTemplates/TemplateDetail"}),ne=(0,i.Z)(ee,1)[0],te=(0,u.useState)(Number(new Date)),oe=te[0],ie=te[1],re=(0,u.useState)(!1),ue=re[0],ae=re[1],le=(0,u.useState)(!1),ce=le[0],de=le[1],se=(0,u.useState)(t?U.find((function(e){return e.uuid===(null===t||void 0===t?void 0:t.uuid)})):U[0]),pe=se[0],fe=se[1],me=(0,u.useState)(!1),he=me[0],ve=me[1],ge=(0,u.useState)(X),be=ge[0],xe=ge[1],ye=(0,u.useCallback)((function(e){ve(!0),xe(e)}),[]),je=_.ZP.custom_templates.detail(!V&&J&&encodeURIComponent(J),{object_type:v.Z}).data,ke=(0,u.useMemo)((function(){return V||(null===je||void 0===je?void 0:je.custom_template)}),[je,V]),Ze=(0,C.Z)(ke);(0,u.useEffect)((function(){(null===Ze||void 0===Ze?void 0:Ze.template_uuid)!==(null===ke||void 0===ke?void 0:ke.template_uuid)&&(ie(Number(new Date)),xe(ke),de(!0))}),[ke,Ze]);var _e=(0,d.Db)(_.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;G&&(null===G||void 0===G||G()),K?null===K||void 0===K||K(n):(ae(!0),setTimeout((function(){$.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid)))}),1))},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),we=(0,i.Z)(_e,2),Ce=we[0],Ie=we[1].isLoading,Oe=(0,d.Db)(_.ZP.custom_templates.useUpdate(V?encodeURIComponent(null===V||void 0===V?void 0:V.template_uuid):J&&encodeURIComponent(J),{object_type:v.Z}),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;G&&(null===G||void 0===G||G()),xe(n),ve(!1),c.Am.success("Template successfully saved.",{position:c.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_block_template"})},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Pe=(0,i.Z)(Oe,2),Se=Pe[0],De=Pe[1].isLoading,Me=(0,u.useMemo)((function(){return I.tf.MARKDOWN===(null===be||void 0===be?void 0:be.block_type)}),[null===be||void 0===be?void 0:be.block_type]),Ue=!V&&!J,Ne=(0,u.useMemo)((function(){return!!Ue&&(!(null!==be&&void 0!==be&&be.template_uuid)||!(null!==be&&void 0!==be&&be.block_type)||!Me&&!(null!==be&&void 0!==be&&be.language))}),[Me,Ue,be]),Te=_.ZP.kernels.list({},{refreshInterval:5e3,revalidateOnFocus:!0}),Re=Te.data,Ee=Te.mutate,qe=null===Re||void 0===Re?void 0:Re.kernels,Ae=(null===qe||void 0===qe?void 0:qe.find((function(e){return e.name===R.a_[R.qL.PYTHON]})))||(null===qe||void 0===qe?void 0:qe[0]),Le=(0,d.Db)(_.ZP.kernels.useUpdate(null===Ae||void 0===Ae?void 0:Ae.id),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(){return Ee()},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Be=(0,i.Z)(Le,1)[0],Fe=(0,u.useCallback)((function(){Be({kernel:{action_type:"interrupt"}}),Ge([])}),[Be]),We=(0,u.useState)({}),Ye=We[0],He=We[1],ze=(0,u.useState)([]),Ke=ze[0],Ge=ze[1],Ve=(0,u.useMemo)((function(){return{language:null===be||void 0===be?void 0:be.language,name:null===be||void 0===be?void 0:be.name,type:null===be||void 0===be?void 0:be.block_type,uuid:null===be||void 0===be?void 0:be.template_uuid}}),[be]),Xe=(0,u.useMemo)((function(){return new p.Z}),[]),Je=(0,u.useMemo)((function(){return{api_key:N.lG,token:Xe.decodedToken.token}}),[Xe]),Qe=(0,r.ZP)((0,E.Ib)(),{onClose:function(){return console.log("socketUrlPublish closed")},onMessage:function(e){if(e){var n=JSON.parse(e.data),t=n.execution_state,i=n.uuid;if(!i)return;He((function(e){var t=e[i]||[];return H(H({},e),{},(0,o.Z)({},i,t.concat(n)))})),P.uF.BUSY===t?Ge((function(e){return e.find((function(e){var n=e.uuid;return i===n}))||!Ve?e:e.concat(Ve)})):P.uF.IDLE===t&&Ge((function(e){return e.filter((function(e){var n=e.uuid;return i!==n}))}))}},onOpen:function(){return console.log("socketUrlPublish opened")},reconnectAttempts:10,reconnectInterval:3e3,shouldReconnect:function(){return console.log("Attempting to reconnect..."),!0}}).sendMessage,$e=(0,u.useCallback)((function(e){var n=e.block,t=e.code,o=e.ignoreAlreadyRunning,i=e.runDownstream,r=void 0!==i&&i,u=e.runIncompleteUpstream,a=void 0!==u&&u,l=e.runSettings,c=void 0===l?{}:l,d=e.runTests,s=void 0!==d&&d,p=e.runUpstream,f=n.extension_uuid,m=n.upstream_blocks,h=n.uuid;Ke.find((function(e){var n=e.uuid;return h===n}))&&!o||(Qe(JSON.stringify(H(H({},Je),{},{code:t,extension_uuid:f,run_downstream:r,run_incomplete_upstream:a,run_settings:c,run_tests:s,run_upstream:p,type:n.type,upstream_blocks:m,uuid:h}))),He((function(e){return delete e[h],e})),Ge((function(e){return e.find((function(e){var n=e.uuid;return h===n}))?e:e.concat(n)})))}),[Ke,Qe,He,Ge,Je]),en=(0,u.useMemo)((function(){return Ke.reduce((function(e,n,t){return H(H({},e),{},(0,o.Z)({},n.uuid,H(H({},n),{},{priority:t})))}),{})}),[Ke]),nn=(0,u.useMemo)((function(){if(!ce)return(0,W.jsx)("div",{});var e=en[null===Ve||void 0===Ve?void 0:Ve.uuid],n=e?0===e.priority?P.uF.BUSY:P.uF.QUEUED:P.uF.IDLE;return(0,W.jsx)(h.Z,{block:Ve,defaultValue:null===be||void 0===be?void 0:be.content,disableDrag:!0,executionState:n,hideExtraCommandButtons:!0,hideExtraConfiguration:!0,hideHeaderInteractiveInformation:!0,interruptKernel:Fe,messages:null===Ye||void 0===Ye?void 0:Ye[null===Ve||void 0===Ve?void 0:Ve.uuid],noDivider:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{content:e})}))},runBlock:$e,runningBlocks:Ke,selected:!0,setErrors:ne,textareaFocused:!0},String(oe))}),[Ve,oe,Fe,Ye,ce,$e,Ke,en,ye,ne,be]),tn=(0,u.useCallback)((function(){var e={custom_template:H(H({},be),{},{language:Me?I.t6.MARKDOWN:null===be||void 0===be?void 0:be.language,object_type:v.Z})};Ue?Ce(e):Se(e)}),[Ce,Me,Ue,be,Se]),on="CustomTemplates/TemplateDetail",rn=(0,B.y)(),un=rn.registerOnKeyDown,an=rn.unregisterOnKeyDown;(0,u.useEffect)((function(){return function(){an(on)}}),[an,on]),un(on,(function(e,n){if(he&&(0,A.y)([S.zX,S.hS],n)){e.preventDefault();"undefined"!==typeof location&&window.confirm("You have changes that are unsaved. Click cancel and save your changes before reloading page.")&&location.reload()}else((0,A.y)([S.zX,S.Um],n)||(0,A.y)([S.PQ,S.Um],n))&&(e.preventDefault(),tn())}),[tn,he]);var ln=(0,u.useMemo)((function(){return Q-Y}),[Q,Y]),cn=(0,w.Z)({shouldWarn:!ue&&he,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,W.jsxs)(O.Nk,{children:[(0,W.jsx)(cn,{}),(0,W.jsx)(O.bC,{height:n?ln:null,children:(0,W.jsxs)(b.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,W.jsx)(O.Yf,{children:(0,W.jsx)(m.Z,{noPadding:!0,onClickTab:function(e){fe(e)},selectedTabUUID:null===pe||void 0===pe?void 0:pe.uuid,tabs:Ue?U.slice(0,1):U})}),(0,W.jsxs)(g.Z,{flexDirection:"column",children:[D.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(j.ZP,{bold:!0,children:"Template UUID"}),(0,W.jsx)(j.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,W.jsx)(Z.Z,{monospace:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.template_uuid)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Block type",onChange:function(e){return ye((function(n){return H(H({},n),{},{block_type:e.target.value,language:I.tf.MARKDOWN===e.target.value?I.t6.MARKDOWN:null===n||void 0===n?void 0:n.language})}))},primary:!0,value:(null===be||void 0===be?void 0:be.block_type)||"",children:Object.values(I.tf).map((function(e){return(0,W.jsx)("option",{value:e,children:I.V4[e]},e)}))})}),!Me&&(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Language",onChange:function(e){return ye((function(n){return H(H({},n),{},{language:e.target.value})}))},primary:!0,value:(null===be||void 0===be?void 0:be.language)||"",children:Object.values(I.t6).map((function(e){return(0,W.jsx)("option",{value:e,children:I.LE[e]},e)}))})})]}),M.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(j.ZP,{bold:!0,children:"Name"}),(0,W.jsx)(j.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,W.jsx)(Z.Z,{onChange:function(e){return ye((function(n){return H(H({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.name)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(k.Z,{label:"Description",onChange:function(e){return ye((function(n){return H(H({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.description)||""})})]})]}),(0,W.jsx)(O.ig,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsxs)(b.ZP,{children:[(0,W.jsxs)(f.ZP,{disabled:Ne,fullWidth:!0,loading:Ie||De,onClick:function(){return tn()},primary:!0,children:[!Ue&&"Save template",Ue&&"Create new template"]}),z&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(x.Z,{mr:1}),(0,W.jsx)(f.ZP,{onClick:z,secondary:!0,children:"Cancel"})]})]})})})]})}),(0,W.jsx)(O.w5,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsx)(a.W,{backend:l.PD,children:nn})})})]})}},93808:function(e,n,t){t.d(n,{Z:function(){return I}});var o=t(77837),i=t(26304),r=t(62243),u=t(29385),a=t(80022),l=t(13692),c=t(93189),d=t(15544),s=t(82394),p=t(38860),f=t.n(p),m=t(82684),h=t(56663),v=t.n(h),g=t(40761),b=t(34661),x=t(36105),y=t(50178),j=t(69419),k=t(28598),Z=["auth"];function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function w(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,s.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}function C(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=(0,d.Z)(e);if(n){var i=(0,d.Z)(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return(0,c.Z)(this,t)}}function I(e){return function(n){(0,l.Z)(c,n);var t=C(c);function c(){var e;(0,r.Z)(this,c);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.Z)((0,a.Z)(e),"state",{auth:new g.Z(e.props.token)}),e}return(0,u.Z)(c,[{key:"componentDidMount",value:function(){this.setState({auth:new g.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,Z));return(0,k.jsx)(e,w({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,o.Z)(f().mark((function n(t){var o,i,r,u,a,l,c,d,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=v()(t),i=(0,y.ex)(t),r=i.id,u=o[b.Mv],a=o[x.qt],l=new g.Z(u),c=w(w({},t),{},{auth:l,currentGroupId:r,theme:a}),(0,y.YB)(t)&&l.isExpired&&(console.log("OAuth token has expired."),d=w(w({},t.query),{},{redirect_url:t.asPath}),(0,j.nL)("/sign-in?".concat((0,j.uM)(d)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(c);case 10:return s=n.sent,n.abrupt("return",w(w({},s),{},{auth:l,currentGroupId:r,theme:a}));case 12:return n.abrupt("return",c);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),c}(m.Component)}},44898:function(e,n,t){t.d(n,{R:function(){return i},Z:function(){return o}});var o="blocks",i="pipelines"},94777:function(e,n,t){var o=t(75582),i=t(82684),r=t(34376),u=t(71180),a=t(55485),l=t(65956),c=t(38276),d=t(30160),s=t(89538),p=t(28598);n.Z=function(e){var n=e.shouldWarn,t=e.warningMessage,f=(0,r.useRouter)(),m=(0,i.useState)(!1),h=m[0],v=m[1],g=(0,i.useState)({isModalOpen:!1,nextRoute:null}),b=g[0],x=g[1];(0,i.useEffect)((function(){var e=function(e){if(n)return e.preventDefault(),(e||window.event).returnValue="Are you sure you want to leave?"};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[n]),(0,i.useEffect)((function(){var e=function(e){if(n&&!h)throw x({isModalOpen:!0,nextRoute:e}),f.events.emit("routeChangeError"),"navigation aborted"};f.events.on("routeChangeStart",e);var t=function(){return f.events.off("routeChangeStart",e)};if(h){if(!b.nextRoute)return;return f.push(b.nextRoute),t}return t}),[b,h,f,n]);var y=(0,s.dd)((function(){return(0,p.jsxs)(l.Z,{children:[(0,p.jsx)(d.ZP,{children:t}),(0,p.jsx)(c.Z,{mt:2,children:(0,p.jsxs)(a.ZP,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{onClick:function(){return v(!0)},primary:!0,children:"Leave"}),(0,p.jsx)(c.Z,{mr:1}),(0,p.jsx)(u.ZP,{onClick:function(){x({isModalOpen:!1,nextRoute:null})},secondary:!0,children:"Cancel"})]})})]})}),{},[t],{background:!0,hideCallback:function(){x({isModalOpen:!1,nextRoute:null})},uuid:"stale_pipeline_message"}),j=(0,o.Z)(y,2),k=j[0],Z=j[1];(0,i.useEffect)((function(){b.isModalOpen?k():Z()}),[Z,b.isModalOpen,k]);return{ConfirmLeaveModal:function(){return(0,p.jsx)("div",{})}}}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{84649:function(e,n,t){t.d(n,{EN:function(){return C},FX:function(){return I},HS:function(){return j},Nk:function(){return m},Rd:function(){return f},SL:function(){return w},Tj:function(){return _},UE:function(){return Z},Yf:function(){return v},ZG:function(){return d},bC:function(){return h},n5:function(){return p},n8:function(){return k},w5:function(){return y},wj:function(){return b},wl:function(){return g},ze:function(){return x}});var o=t(25976),i=t(44897),r=t(42631),u=t(46684),a=t(70515),l=t(91437),c=t(47041),d=2.5*a.iI,s=40*a.iI,p=10*a.iI,f=o.default.div.withConfig({displayName:"indexstyle__ContainedStyle",componentId:"sc-8sk2qr-0"})([""," overflow:auto;"," "," ",""],c.w5,(function(e){return"\n background-color: ".concat((e.theme.background||i.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 ")})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-8sk2qr-1"})(["height:100%;position:relative;"]),h=o.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||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.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 "})),v=o.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-8sk2qr-3"})(["padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;",""],1*a.iI,a.cd*a.iI,a.cd*a.iI,1*a.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),g=o.default.div.withConfig({displayName:"indexstyle__LinksContainerStyle",componentId:"sc-8sk2qr-4"})([""," overflow:auto;position:fixed;width:","px;",""],c.w5,s,(function(e){return"\n height: calc(100% - ".concat(55+(null!==e&&void 0!==e&&e.contained?p:u.Mz)+((null===e||void 0===e?void 0:e.heightOffset)||0),"px);\n ")})),b=o.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,l.eR)(),1*a.iI,a.cd*a.iI,a.cd*a.iI,1*a.iI,(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__IconStyle",componentId:"sc-8sk2qr-6"})([""," border-radius:","px;height:","px;margin-right:","px;padding:","px;width:","px;"," ",""],(0,l.eR)(),r.n_,5*a.iI,1.25*a.iI,1.25*a.iI,5*a.iI,(function(e){return!e.backgroundColor&&"\n background-color: ".concat((e.theme.background||i.Z.background).chartBlock,";\n ")}),(function(e){return e.backgroundColor&&"\n background-color: ".concat(e.backgroundColor,";\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-8sk2qr-7"})(["margin-left:","px;"],s),j=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-8sk2qr-8"})(["padding:","px;",""],a.cd*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")})),k=o.default.div.withConfig({displayName:"indexstyle__CardsStyle",componentId:"sc-8sk2qr-9"})(["display:flex;flex-wrap:wrap;padding:","px;"],.75*a.iI),Z=o.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-8sk2qr-10"})(["border-radius:","px;margin:","px;padding:","px;width:","px;&:hover{cursor:pointer;}",""],r.n_,.75*a.iI,2.5*a.iI,50*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.background||i.Z.background).chartBlock,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")})),_=o.default.div.withConfig({displayName:"indexstyle__CardTitleStyle",componentId:"sc-8sk2qr-11"})(["height:","px;"],2.5*a.iI),w=o.default.div.withConfig({displayName:"indexstyle__CardDescriptionStyle",componentId:"sc-8sk2qr-12"})(["height:","px;margin-top:","px;"],2.5*a.iI*2,1*a.iI),C=o.default.div.withConfig({displayName:"indexstyle__TagsStyle",componentId:"sc-8sk2qr-13"})(["height:","px;margin-top:","px;overflow:hidden;"],3.5*a.iI,.5*a.iI),I=o.default.div.withConfig({displayName:"indexstyle__BreadcrumbsStyle",componentId:"sc-8sk2qr-14"})(["padding-bottom:","px;padding-top:","px;",""],1*a.iI,1*a.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}))},88328:function(e,n,t){t.d(n,{Z:function(){return A}});var o=t(82394),i=t(75582),r=t(12691),u=t.n(r),a=t(21764),l=t(82684),c=t(69864),d=t(34376),s=t(71180),p=t(90299),f=t(44898),m=t(24138),h=t(97618),v=t(55485),g=t(48670),b=t(38276),x=t(30160),y=t(35576),j=t(17488),k=t(62547),Z=t(35686),_=t(94777),w=t(98464),C=t(46684),I={uuid:"Define"},O={uuid:"Document"},P=[I,O],S=t(70515),D=t(11302),M=t(68899),U=t(72619),N=t(23780),T=t(19183),R=t(28598);function E(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?E(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var A=function(e){var n=e.defaultTab,t=e.onMutateSuccess,o=e.pipelineUUID,r=e.template,E=e.templateAttributes,A=e.templateUUID,L=(0,T.i)().height,B=(C.Mz,(0,d.useRouter)()),F=(0,N.VI)(null,{},[],{uuid:"CustomTemplates/PipelineTemplateDetail"}),W=(0,i.Z)(F,1)[0],Y=(0,l.useState)(!1),H=Y[0],z=Y[1],K=(0,l.useState)(!1),G=K[0],V=K[1],X=(0,l.useState)(E),J=X[0],Q=X[1],$=(0,l.useCallback)((function(e){V(!0),Q(e)}),[]),ee=(0,w.Z)(r);(0,l.useEffect)((function(){(null===ee||void 0===ee?void 0:ee.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)&&Q(r)}),[r,ee]);var ne=Z.ZP.pipelines.detail(o).data,te=(0,l.useMemo)((function(){return(null===r||void 0===r?void 0:r.pipeline)||(null===ne||void 0===ne?void 0:ne.pipeline)}),[ne,r]),oe=(0,l.useMemo)((function(){return(null===te||void 0===te?void 0:te.blocks)||[]}),[te]),ie=(0,l.useMemo)((function(){return!r&&!A}),[r,A]),re=(0,l.useState)(n?P.find((function(e){return e.uuid===(null===n||void 0===n?void 0:n.uuid)})):P[0]),ue=re[0],ae=re[1],le=(0,l.useMemo)((function(){return!!ie&&!(null!==J&&void 0!==J&&J.template_uuid)}),[ie,J]),ce=(0,l.useState)(!1),de=ce[0],se=ce[1],pe=(0,l.useState)(ie?400:300),fe=pe[0],me=pe[1],he=(0,c.Db)(Z.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),z(!0),setTimeout((function(){B.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R))}),1)},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ve=(0,i.Z)(he,2),ge=ve[0],be=ve[1].isLoading,xe=(0,c.Db)(Z.ZP.custom_templates.useUpdate(r?encodeURIComponent(null===r||void 0===r?void 0:r.template_uuid):A&&encodeURIComponent(A),{object_type:f.R}),{onSuccess:function(e){return(0,U.wD)(e,{callback:function(e){var n=e.custom_template;t&&(null===t||void 0===t||t()),null!==r&&void 0!==r&&r.template_uuid&&(null===n||void 0===n?void 0:n.template_uuid)!==(null===r||void 0===r?void 0:r.template_uuid)||A&&(null===n||void 0===n?void 0:n.template_uuid)!==A?B.replace("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid),"?object_type=").concat(f.R)):(Q(n),V(!1),a.Am.success("Template successfully saved.",{position:a.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_pipeline_template"}))},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),ye=(0,i.Z)(xe,2),je=ye[0],ke=ye[1].isLoading,Ze=(0,l.useCallback)((function(){var e={custom_template:q(q({},J),{},{object_type:f.R})};ie?ge(q(q({},e),{},{custom_template:q(q({},null===e||void 0===e?void 0:e.custom_template),{},{pipeline_uuid:o})})):je(e)}),[ge,ie,o,J,je]),_e=(0,l.useMemo)((function(){return(0,R.jsxs)(v.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,R.jsx)(D.Yf,{children:(0,R.jsx)(p.Z,{noPadding:!0,onClickTab:function(e){ae(e)},selectedTabUUID:null===ue||void 0===ue?void 0:ue.uuid,tabs:P})}),(0,R.jsxs)(h.Z,{flexDirection:"column",children:[I.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[o&&(0,R.jsx)(b.Z,{mt:S.cd,px:S.cd,children:(0,R.jsxs)(x.ZP,{default:!0,children:["This pipeline template will be based off the pipeline ",(0,R.jsx)(u(),{as:"/pipelines/".concat(o),href:"/pipelines/[pipeline]",passHref:!0,children:(0,R.jsx)(g.Z,{bold:!0,default:!0,inline:!0,monospace:!0,openNewWindow:!0,children:o})}),"."]})}),(0,R.jsxs)(b.Z,{mt:S.cd,px:S.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Template UUID"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,R.jsx)(j.Z,{monospace:!0,onChange:function(e){return $((function(n){return q(q({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.template_uuid)||""})]})]}),O.uuid===(null===ue||void 0===ue?void 0:ue.uuid)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(b.Z,{mt:S.cd,px:S.cd,children:[(0,R.jsxs)(b.Z,{mb:1,children:[(0,R.jsx)(x.ZP,{bold:!0,children:"Name"}),(0,R.jsx)(x.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,R.jsx)(j.Z,{onChange:function(e){return $((function(n){return q(q({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.name)||""})]}),(0,R.jsx)(b.Z,{mt:S.cd,px:S.cd,children:(0,R.jsx)(y.Z,{label:"Description",onChange:function(e){return $((function(n){return q(q({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===J||void 0===J?void 0:J.description)||""})})]})]}),(0,R.jsx)(D.ig,{children:(0,R.jsx)(b.Z,{p:S.cd,children:(0,R.jsx)(v.ZP,{children:(0,R.jsxs)(s.ZP,{disabled:le,fullWidth:!0,loading:be||ke,onClick:function(){return Ze()},primary:!0,children:[!ie&&"Save template",ie&&"Create new template"]})})})})]})}),[le,be,ke,ie,o,Ze,null===ue||void 0===ue?void 0:ue.uuid,$,J]),we=(0,_.Z)({shouldWarn:!H&&G,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,R.jsxs)(k.Z,{before:_e,beforeHidden:de,beforeWidth:fe,leftOffset:M.k1,setBeforeHidden:se,setBeforeWidth:me,children:[(0,R.jsx)(we,{}),(0,R.jsx)(m.ZP,{blocks:oe,height:L,heightOffset:C.Mz,noStatus:!0,pipeline:te})]})}},11302:function(e,n,t){t.d(n,{Nk:function(){return l},Yf:function(){return d},bC:function(){return c},ig:function(){return s},w5:function(){return p}});var o=t(25976),i=t(44897),r=t(70515),u=t(84649),a=(r.iI,40*r.iI),l=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-axgvn9-0"})(["height:100%;position:relative;"]),c=o.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-axgvn9-1"})(["overflow:auto;position:fixed;width:","px;z-index:1;"," "," ",""],a,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-right: 1px solid ").concat((e.theme.borders||i.Z.borders).light,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height-u.n5,"px;\n ")}),(function(e){return!e.height&&"\n height: 100%;\n "})),d=o.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*r.iI,r.cd*r.iI,r.cd*r.iI,1*r.iI,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),s=o.default.div.withConfig({displayName:"indexstyle__ButtonsStyle",componentId:"sc-axgvn9-3"})(["margin-top:","px;width:100%;",""],r.cd*r.iI,(function(e){return"\n border-top: 1px solid ".concat((e.theme.borders||i.Z.borders).light,";\n ")})),p=o.default.div.withConfig({displayName:"indexstyle__ContentStyle",componentId:"sc-axgvn9-4"})(["margin-left:","px;"],a)},5755:function(e,n,t){t.d(n,{Z:function(){return z}});var o=t(82394),i=t(75582),r=t(56085),u=t(82684),a=t(65701),l=t(1254),c=t(21764),d=t(69864),s=t(34376),p=t(40761),f=t(71180),m=t(90299),h=t(30352),v=t(44898),g=t(97618),b=t(55485),x=t(38276),y=t(44085),j=t(30160),k=t(35576),Z=t(17488),_=t(35686),w=t(94777),C=t(98464),I=t(44425),O=t(11302),P=t(48339),S=t(39643),D={uuid:"Define"},M={uuid:"Document"},U=[D,M],N=t(11498),T=t(70515),R=t(57653),E=t(4383),q=t(72619),A=t(42041),L=t(23780),B=t(44688),F=t(19183),W=t(28598);function Y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function H(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var z=function(e){var n=e.contained,t=e.defaultTab,Y=e.heightOffset,z=e.onCancel,K=e.onCreateCustomTemplate,G=e.onMutateSuccess,V=e.template,X=e.templateAttributes,J=e.templateUUID,Q=(0,F.i)().height,$=(0,s.useRouter)(),ee=(0,L.VI)(null,{},[],{uuid:"CustomTemplates/TemplateDetail"}),ne=(0,i.Z)(ee,1)[0],te=(0,u.useState)(Number(new Date)),oe=te[0],ie=te[1],re=(0,u.useState)(!1),ue=re[0],ae=re[1],le=(0,u.useState)(!1),ce=le[0],de=le[1],se=(0,u.useState)(t?U.find((function(e){return e.uuid===(null===t||void 0===t?void 0:t.uuid)})):U[0]),pe=se[0],fe=se[1],me=(0,u.useState)(!1),he=me[0],ve=me[1],ge=(0,u.useState)(X),be=ge[0],xe=ge[1],ye=(0,u.useCallback)((function(e){ve(!0),xe(e)}),[]),je=_.ZP.custom_templates.detail(!V&&J&&encodeURIComponent(J),{object_type:v.Z}).data,ke=(0,u.useMemo)((function(){return V||(null===je||void 0===je?void 0:je.custom_template)}),[je,V]),Ze=(0,C.Z)(ke);(0,u.useEffect)((function(){(null===Ze||void 0===Ze?void 0:Ze.template_uuid)!==(null===ke||void 0===ke?void 0:ke.template_uuid)&&(ie(Number(new Date)),xe(ke),de(!0))}),[ke,Ze]);var _e=(0,d.Db)(_.ZP.custom_templates.useCreate(),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;G&&(null===G||void 0===G||G()),K?null===K||void 0===K||K(n):(ae(!0),setTimeout((function(){$.push("/templates/[...slug]","/templates/".concat(encodeURIComponent(null===n||void 0===n?void 0:n.template_uuid)))}),1))},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),we=(0,i.Z)(_e,2),Ce=we[0],Ie=we[1].isLoading,Oe=(0,d.Db)(_.ZP.custom_templates.useUpdate(V?encodeURIComponent(null===V||void 0===V?void 0:V.template_uuid):J&&encodeURIComponent(J),{object_type:v.Z}),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(e){var n=e.custom_template;G&&(null===G||void 0===G||G()),xe(n),ve(!1),c.Am.success("Template successfully saved.",{position:c.Am.POSITION.BOTTOM_RIGHT,toastId:"custom_block_template"})},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Pe=(0,i.Z)(Oe,2),Se=Pe[0],De=Pe[1].isLoading,Me=(0,u.useMemo)((function(){return I.tf.MARKDOWN===(null===be||void 0===be?void 0:be.block_type)}),[null===be||void 0===be?void 0:be.block_type]),Ue=!V&&!J,Ne=(0,u.useMemo)((function(){return!!Ue&&(!(null!==be&&void 0!==be&&be.template_uuid)||!(null!==be&&void 0!==be&&be.block_type)||!Me&&!(null!==be&&void 0!==be&&be.language))}),[Me,Ue,be]),Te=_.ZP.kernels.list({},{refreshInterval:5e3,revalidateOnFocus:!0}),Re=Te.data,Ee=Te.mutate,qe=null===Re||void 0===Re?void 0:Re.kernels,Ae=(null===qe||void 0===qe?void 0:qe.find((function(e){return e.name===R.a_[R.qL.PYTHON]})))||(null===qe||void 0===qe?void 0:qe[0]),Le=(0,d.Db)(_.ZP.kernels.useUpdate(null===Ae||void 0===Ae?void 0:Ae.id),{onSuccess:function(e){return(0,q.wD)(e,{callback:function(){return Ee()},onErrorCallback:function(e,n){return ne({errors:n,response:e})}})}}),Be=(0,i.Z)(Le,1)[0],Fe=(0,u.useCallback)((function(){Be({kernel:{action_type:"interrupt"}}),Ge([])}),[Be]),We=(0,u.useState)({}),Ye=We[0],He=We[1],ze=(0,u.useState)([]),Ke=ze[0],Ge=ze[1],Ve=(0,u.useMemo)((function(){return{language:null===be||void 0===be?void 0:be.language,name:null===be||void 0===be?void 0:be.name,type:null===be||void 0===be?void 0:be.block_type,uuid:null===be||void 0===be?void 0:be.template_uuid}}),[be]),Xe=(0,u.useMemo)((function(){return new p.Z}),[]),Je=(0,u.useMemo)((function(){return{api_key:N.lG,token:Xe.decodedToken.token}}),[Xe]),Qe=(0,r.ZP)((0,E.Ib)(),{onClose:function(){return console.log("socketUrlPublish closed")},onMessage:function(e){if(e){var n=JSON.parse(e.data),t=n.execution_state,i=n.uuid;if(!i)return;He((function(e){var t=e[i]||[];return H(H({},e),{},(0,o.Z)({},i,t.concat(n)))})),P.uF.BUSY===t?Ge((function(e){return e.find((function(e){var n=e.uuid;return i===n}))||!Ve?e:e.concat(Ve)})):P.uF.IDLE===t&&Ge((function(e){return e.filter((function(e){var n=e.uuid;return i!==n}))}))}},onOpen:function(){return console.log("socketUrlPublish opened")},reconnectAttempts:10,reconnectInterval:3e3,shouldReconnect:function(){return console.log("Attempting to reconnect..."),!0}}).sendMessage,$e=(0,u.useCallback)((function(e){var n=e.block,t=e.code,o=e.ignoreAlreadyRunning,i=e.runDownstream,r=void 0!==i&&i,u=e.runIncompleteUpstream,a=void 0!==u&&u,l=e.runSettings,c=void 0===l?{}:l,d=e.runTests,s=void 0!==d&&d,p=e.runUpstream,f=n.extension_uuid,m=n.upstream_blocks,h=n.uuid;Ke.find((function(e){var n=e.uuid;return h===n}))&&!o||(Qe(JSON.stringify(H(H({},Je),{},{code:t,extension_uuid:f,run_downstream:r,run_incomplete_upstream:a,run_settings:c,run_tests:s,run_upstream:p,type:n.type,upstream_blocks:m,uuid:h}))),He((function(e){return delete e[h],e})),Ge((function(e){return e.find((function(e){var n=e.uuid;return h===n}))?e:e.concat(n)})))}),[Ke,Qe,He,Ge,Je]),en=(0,u.useMemo)((function(){return Ke.reduce((function(e,n,t){return H(H({},e),{},(0,o.Z)({},n.uuid,H(H({},n),{},{priority:t})))}),{})}),[Ke]),nn=(0,u.useMemo)((function(){if(!ce)return(0,W.jsx)("div",{});var e=en[null===Ve||void 0===Ve?void 0:Ve.uuid],n=e?0===e.priority?P.uF.BUSY:P.uF.QUEUED:P.uF.IDLE;return(0,W.jsx)(h.Z,{block:Ve,defaultValue:null===be||void 0===be?void 0:be.content,disableDrag:!0,executionState:n,hideExtraCommandButtons:!0,hideExtraConfiguration:!0,hideHeaderInteractiveInformation:!0,interruptKernel:Fe,messages:null===Ye||void 0===Ye?void 0:Ye[null===Ve||void 0===Ve?void 0:Ve.uuid],noDivider:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{content:e})}))},runBlock:$e,runningBlocks:Ke,selected:!0,setErrors:ne,textareaFocused:!0},String(oe))}),[Ve,oe,Fe,Ye,ce,$e,Ke,en,ye,ne,be]),tn=(0,u.useCallback)((function(){var e={custom_template:H(H({},be),{},{language:Me?I.t6.MARKDOWN:null===be||void 0===be?void 0:be.language,object_type:v.Z})};Ue?Ce(e):Se(e)}),[Ce,Me,Ue,be,Se]),on="CustomTemplates/TemplateDetail",rn=(0,B.y)(),un=rn.registerOnKeyDown,an=rn.unregisterOnKeyDown;(0,u.useEffect)((function(){return function(){an(on)}}),[an,on]),un(on,(function(e,n){if(he&&(0,A.y)([S.zX,S.hS],n)){e.preventDefault();"undefined"!==typeof location&&window.confirm("You have changes that are unsaved. Click cancel and save your changes before reloading page.")&&location.reload()}else((0,A.y)([S.zX,S.Um],n)||(0,A.y)([S.PQ,S.Um],n))&&(e.preventDefault(),tn())}),[tn,he]);var ln=(0,u.useMemo)((function(){return Q-Y}),[Q,Y]),cn=(0,w.Z)({shouldWarn:!ue&&he,warningMessage:"You have unsaved changes. Are you sure you want to leave?"}).ConfirmLeaveModal;return(0,W.jsxs)(O.Nk,{children:[(0,W.jsx)(cn,{}),(0,W.jsx)(O.bC,{height:n?ln:null,children:(0,W.jsxs)(b.ZP,{flexDirection:"column",fullHeight:!0,children:[(0,W.jsx)(O.Yf,{children:(0,W.jsx)(m.Z,{noPadding:!0,onClickTab:function(e){fe(e)},selectedTabUUID:null===pe||void 0===pe?void 0:pe.uuid,tabs:Ue?U.slice(0,1):U})}),(0,W.jsxs)(g.Z,{flexDirection:"column",children:[D.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(j.ZP,{bold:!0,children:"Template UUID"}),(0,W.jsx)(j.ZP,{muted:!0,small:!0,children:"Unique identifier for custom template. The UUID will also determine where the custom template file is stored in the project. You can use nested folder names in the template\u2019s UUID."})]}),(0,W.jsx)(Z.Z,{monospace:!0,onChange:function(e){return ye((function(n){return H(H({},n),{},{template_uuid:e.target.value})}))},placeholder:"e.g. some_template_name",primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.template_uuid)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Block type",onChange:function(e){return ye((function(n){return H(H({},n),{},{block_type:e.target.value,language:I.tf.MARKDOWN===e.target.value?I.t6.MARKDOWN:null===n||void 0===n?void 0:n.language})}))},primary:!0,value:(null===be||void 0===be?void 0:be.block_type)||"",children:Object.values(I.tf).map((function(e){return(0,W.jsx)("option",{value:e,children:I.V4[e]},e)}))})}),!Me&&(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(y.Z,{label:"Language",onChange:function(e){return ye((function(n){return H(H({},n),{},{language:e.target.value})}))},primary:!0,value:(null===be||void 0===be?void 0:be.language)||"",children:Object.values(I.t6).map((function(e){return(0,W.jsx)("option",{value:e,children:I.LE[e]},e)}))})})]}),M.uuid===(null===pe||void 0===pe?void 0:pe.uuid)&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)(x.Z,{mt:T.cd,px:T.cd,children:[(0,W.jsxs)(x.Z,{mb:1,children:[(0,W.jsx)(j.ZP,{bold:!0,children:"Name"}),(0,W.jsx)(j.ZP,{muted:!0,small:!0,children:"A human readable name for your template."})]}),(0,W.jsx)(Z.Z,{onChange:function(e){return ye((function(n){return H(H({},n),{},{name:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.name)||""})]}),(0,W.jsx)(x.Z,{mt:T.cd,px:T.cd,children:(0,W.jsx)(k.Z,{label:"Description",onChange:function(e){return ye((function(n){return H(H({},n),{},{description:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===be||void 0===be?void 0:be.description)||""})})]})]}),(0,W.jsx)(O.ig,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsxs)(b.ZP,{children:[(0,W.jsxs)(f.ZP,{disabled:Ne,fullWidth:!0,loading:Ie||De,onClick:function(){return tn()},primary:!0,children:[!Ue&&"Save template",Ue&&"Create new template"]}),z&&(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(x.Z,{mr:1}),(0,W.jsx)(f.ZP,{onClick:z,secondary:!0,children:"Cancel"})]})]})})})]})}),(0,W.jsx)(O.w5,{children:(0,W.jsx)(x.Z,{p:T.cd,children:(0,W.jsx)(a.W,{backend:l.PD,children:nn})})})]})}},93808:function(e,n,t){t.d(n,{Z:function(){return I}});var o=t(77837),i=t(26304),r=t(62243),u=t(29385),a=t(80022),l=t(13692),c=t(93189),d=t(15544),s=t(82394),p=t(38860),f=t.n(p),m=t(82684),h=t(56663),v=t.n(h),g=t(40761),b=t(34661),x=t(36105),y=t(50178),j=t(69419),k=t(28598),Z=["auth"];function _(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function w(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,s.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}function C(e){var n=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=(0,d.Z)(e);if(n){var i=(0,d.Z)(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return(0,c.Z)(this,t)}}function I(e){return function(n){(0,l.Z)(c,n);var t=C(c);function c(){var e;(0,r.Z)(this,c);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),(0,s.Z)((0,a.Z)(e),"state",{auth:new g.Z(e.props.token)}),e}return(0,u.Z)(c,[{key:"componentDidMount",value:function(){this.setState({auth:new g.Z(this.props.token)})}},{key:"render",value:function(){var n=this.props,t=(n.auth,(0,i.Z)(n,Z));return(0,k.jsx)(e,w({auth:this.state.auth},t))}}],[{key:"getInitialProps",value:function(){var n=(0,o.Z)(f().mark((function n(t){var o,i,r,u,a,l,c,d,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=v()(t),i=(0,y.ex)(t),r=i.id,u=o[b.Mv],a=o[x.qt],l=new g.Z(u),c=w(w({},t),{},{auth:l,currentGroupId:r,theme:a}),(0,y.YB)(t)&&l.isExpired&&(console.log("OAuth token has expired."),d=w(w({},t.query),{},{redirect_url:t.asPath}),(0,j.nL)("/sign-in?".concat((0,j.uM)(d)),t.res)),!e.getInitialProps){n.next=12;break}return n.next=10,e.getInitialProps(c);case 10:return s=n.sent,n.abrupt("return",w(w({},s),{},{auth:l,currentGroupId:r,theme:a}));case 12:return n.abrupt("return",c);case 13:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}]),c}(m.Component)}},44898:function(e,n,t){t.d(n,{R:function(){return i},Z:function(){return o}});var o="blocks",i="pipelines"},94777:function(e,n,t){var o=t(75582),i=t(82684),r=t(34376),u=t(71180),a=t(55485),l=t(65956),c=t(38276),d=t(30160),s=t(89538),p=t(28598);n.Z=function(e){var n=e.shouldWarn,t=e.warningMessage,f=(0,r.useRouter)(),m=(0,i.useState)(!1),h=m[0],v=m[1],g=(0,i.useState)({isModalOpen:!1,nextRoute:null}),b=g[0],x=g[1];(0,i.useEffect)((function(){var e=function(e){if(n)return e.preventDefault(),(e||window.event).returnValue="Are you sure you want to leave?"};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[n]),(0,i.useEffect)((function(){var e=function(e){if(n&&!h)throw x({isModalOpen:!0,nextRoute:e}),f.events.emit("routeChangeError"),"navigation aborted"};f.events.on("routeChangeStart",e);var t=function(){return f.events.off("routeChangeStart",e)};if(h){if(!b.nextRoute)return;return f.push(b.nextRoute),t}return t}),[b,h,f,n]);var y=(0,s.dd)((function(){return(0,p.jsxs)(l.Z,{children:[(0,p.jsx)(d.ZP,{children:t}),(0,p.jsx)(c.Z,{mt:2,children:(0,p.jsxs)(a.ZP,{alignItems:"center",children:[(0,p.jsx)(u.ZP,{onClick:function(){return v(!0)},primary:!0,children:"Leave"}),(0,p.jsx)(c.Z,{mr:1}),(0,p.jsx)(u.ZP,{onClick:function(){x({isModalOpen:!1,nextRoute:null})},secondary:!0,children:"Cancel"})]})})]})}),{},[t],{background:!0,hideCallback:function(){x({isModalOpen:!1,nextRoute:null})},uuid:"stale_pipeline_message"}),j=(0,o.Z)(y,2),k=j[0],Z=j[1];(0,i.useEffect)((function(){b.isModalOpen?k():Z()}),[Z,b.isModalOpen,k]);return{ConfirmLeaveModal:function(){return(0,p.jsx)("div",{})}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5627],{52749:function(e,n,i){var r=i(82394),t=i(82684),l=i(71180),o=i(55485),d=i(68562),s=i(7267),c=i(38276),u=i(30160),a=i(35576),p=i(17488),f=i(72473),h=i(4015),v=i(70515),j=i(81728),g=i(28598);function m(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function b(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?m(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n,i,r,m,x=e.createPipeline,P=e.isLoading,w=e.onClose,Z=(0,t.useRef)(null),O=(0,t.useState)(!1),C=O[0],y=O[1],I=(0,t.useState)({name:(0,j.Y6)()}),k=I[0],A=I[1];return(0,t.useEffect)((function(){var e;null===Z||void 0===Z||null===(e=Z.current)||void 0===e||e.focus()}),[]),(0,g.jsxs)(h.Nk,{children:[(0,g.jsx)(h.I5,{children:(0,g.jsx)(o.ZP,{alignItems:"center",justifyContent:"center",children:(0,g.jsx)(f.AISparkle,{size:5*v.iI,warning:!0})})}),(0,g.jsx)(h.gI,{children:(0,g.jsxs)(c.Z,{py:1,children:[(0,g.jsx)(c.Z,{mb:1,children:(0,g.jsx)(u.ZP,{default:!0,children:"New pipeline"})}),(0,g.jsx)(u.ZP,{textOverflow:!0,children:"Using AI"})]})}),(0,g.jsxs)(h.gI,{children:[(0,g.jsx)(u.ZP,{default:!0,children:"Name"}),(0,g.jsx)(p.Z,{alignRight:!0,noBackground:!0,noBorder:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{name:e.target.value})}))},paddingVertical:v.iI,placeholder:"Enter pipeline name...",value:(null===k||void 0===k?void 0:k.name)||""})]}),(0,g.jsx)(h.gI,{children:(0,g.jsxs)(o.ZP,{flexDirection:"column",fullWidth:!0,children:[(0,g.jsx)(c.Z,{mb:2,pt:1,children:(0,g.jsx)(u.ZP,{default:!0,children:"Describe what the pipeline should do"})}),(0,g.jsxs)(c.Z,{pb:1,pr:v.cd,children:[(0,g.jsx)(a.Z,{fullWidth:!0,onChange:function(e){return A((function(n){return b(b({},n),{},{llm:{request:{pipeline_description:e.target.value},use_case:s.z.GENERATE_PIPELINE_WITH_DESCRIPTION}})}))},placeholder:"Type the pipeline purpose...",ref:Z,rows:8,value:(null===k||void 0===k||null===(n=k.llm)||void 0===n||null===(i=n.request)||void 0===i?void 0:i.pipeline_description)||""}),(P||C)&&(0,g.jsx)(c.Z,{mt:1,children:(0,g.jsx)(u.ZP,{warning:!0,children:"Pipeline is being generated using AI based on your description above..."})})]})]})}),(0,g.jsx)(h.$b,{children:(0,g.jsxs)(o.ZP,{fullWidth:!0,children:[(0,g.jsx)(d.ZP,{bold:!0,centerText:!0,disabled:!(null!==k&&void 0!==k&&k.name)||!(null!==k&&void 0!==k&&null!==(r=k.llm)&&void 0!==r&&null!==(m=r.request)&&void 0!==m&&m.pipeline_description),loading:P||C,onClick:function(){y(!0),x({pipeline:k}).then((function(){return y(!1)}))},primary:!0,tabIndex:0,uuid:"AIControlPanel/CreatePipeline",children:"Create pipeline"}),w&&(0,g.jsx)(c.Z,{ml:1,children:(0,g.jsx)(l.ZP,{onClick:w,tabIndex:0,children:"Cancel"})})]})})]})}},94629:function(e,n,i){i.d(n,{Z:function(){return Z}});var r=i(82394),t=i(21831),l=i(82684),o=i(50724),d=i(1402),s=i(97618),c=i(70613),u=i(31557),a=i(68899),p=i(28598);function f(e,n){var i=e.children,r=e.noPadding;return(0,p.jsx)(a.HS,{noPadding:r,ref:n,children:i})}var h=l.forwardRef(f),v=i(62547),j=i(82571),g=i(77417),m=i(46684),b=i(75375);function x(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function P(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?x(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}function w(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var i=e.after,r=e.afterHeader,l=e.afterHidden,f=e.afterWidth,x=e.afterWidthOverride,w=e.appendBreadcrumbs,Z=e.before,O=e.beforeHeader,C=e.beforeWidth,y=e.breadcrumbs,I=e.children,k=e.contained,A=e.errors,M=e.headerMenuItems,E=e.headerOffset,W=e.hideAfterCompletely,T=e.mainContainerHeader,B=e.navigationItems,S=e.setAfterHidden,N=e.setAfterWidth,D=e.setBeforeWidth,H=e.setErrors,R=e.subheaderChildren,_=e.subheaderNoPadding,z=e.title,L=e.uuid,q=(0,b.Z)(L,{beforeResizeOffset:b.H,setWidthAfter:N,setWidthBefore:D,widthAfter:f,widthBefore:C,widthOverrideAfter:x}),Y=q.mainContainerRef,F=q.mousedownActiveAfter,G=q.mousedownActiveBefore,U=q.setMousedownActiveAfter,V=q.setMousedownActiveBefore,$=q.setWidthAfter,K=q.setWidthBefore,Q=q.widthAfter,J=q.widthBefore,X=(0,g.Z)().project,ee=[];return y&&ee.push.apply(ee,(0,t.Z)(y)),null!==y&&void 0!==y&&y.length&&!w||!X||null!==y&&void 0!==y&&y.length||ee.unshift({bold:!w,label:function(){return z}}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(c.Z,{title:z}),(0,p.jsx)(u.Z,{breadcrumbs:ee,menuItems:M}),(0,p.jsxs)(a.Nk,{ref:n,children:[0!==(null===B||void 0===B?void 0:B.length)&&(0,p.jsx)(a.lm,{showMore:!0,children:(0,p.jsx)(j.Z,{navigationItems:B,showMore:!0})}),(0,p.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:i,afterHeader:r,afterHeightOffset:m.Mz,afterHidden:l,afterMousedownActive:F,afterWidth:Q,before:Z,beforeHeader:O,beforeHeightOffset:m.Mz,beforeMousedownActive:G,beforeWidth:Z?J:a.k1,contained:k,headerOffset:E,hideAfterCompletely:!i||W,leftOffset:Z?a.k1:null,mainContainerHeader:T,mainContainerRef:Y,setAfterHidden:S,setAfterMousedownActive:U,setAfterWidth:$,setBeforeMousedownActive:V,setBeforeWidth:K,children:[R&&(0,p.jsx)(h,{noPadding:_,children:R}),I]})})]}),A&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,p.jsx)(d.Z,P(P({},A),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var Z=l.forwardRef(w)},65458:function(e,n,i){i.d(n,{d:function(){return c}});var r=i(72473),t=i(57653),l=i(70515),o=i(81728),d=i(28598),s=1.5*l.iI,c=function(e,n){var i=[{beforeIcon:(0,d.jsx)(r.BatchPipeline,{}),label:function(){return"Standard (batch)"},onClick:function(){var i;null!==n&&void 0!==n&&n.showCreatePipelineModal?null===n||void 0===n||null===(i=n.showCreatePipelineModal)||void 0===i||i.call(n,{pipelineType:t.qL.PYTHON}):e({pipeline:{name:(0,o.Y6)()}})},uuid:"Pipelines/NewPipelineMenu/standard"},{beforeIcon:(0,d.jsx)(r.IntegrationPipeline,{}),label:function(){return"Data integration"},onClick:function(){var i;null!==n&&void 0!==n&&n.showCreatePipelineModal?null===n||void 0===n||null===(i=n.showCreatePipelineModal)||void 0===i||i.call(n,{pipelineType:t.qL.INTEGRATION}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.INTEGRATION}})},uuid:"Pipelines/NewPipelineMenu/integration"},{beforeIcon:(0,d.jsx)(r.StreamingPipeline,{size:s}),label:function(){return"Streaming"},onClick:function(){var i;null!==n&&void 0!==n&&n.showCreatePipelineModal?null===n||void 0===n||null===(i=n.showCreatePipelineModal)||void 0===i||i.call(n,{pipelineType:t.qL.STREAMING}):e({pipeline:{name:(0,o.Y6)(),type:t.qL.STREAMING}})},uuid:"Pipelines/NewPipelineMenu/streaming"}];return null!==n&&void 0!==n&&n.showBrowseTemplates&&i.push({beforeIcon:(0,d.jsx)(r.TemplateShapes,{}),label:function(){return"From a template"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showBrowseTemplates)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/custom_template"}),null!==n&&void 0!==n&&n.showImportPipelineModal&&i.push({beforeIcon:(0,d.jsx)(r.Upload,{}),label:function(){return"Import pipeline zip"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showImportPipelineModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/upload"}),null!==n&&void 0!==n&&n.showAIModal&&i.push({beforeIcon:(0,d.jsx)(r.AISparkle,{}),label:function(){return"Using AI (beta)"},onClick:function(){var e;return null===n||void 0===n||null===(e=n.showAIModal)||void 0===e?void 0:e.call(n)},uuid:"Pipelines/NewPipelineMenu/AI_modal"}),i}},76111:function(e,n,i){var r=i(82394),t=i(82684),l=i(71180),o=i(97618),d=i(55485),s=i(68562),c=i(38276),u=i(30160),a=i(35576),p=i(17488),f=i(44897),h=i(4015),v=i(39643),j=i(57653),g=i(70515),m=i(81728),b=i(28598);function x(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function P(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?x(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):x(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}n.Z=function(e){var n=e.onClose,i=e.onSave,r=e.pipelineType,x=j.Mj[r],w=(0,t.useRef)(null),Z=(0,t.useState)({name:(0,m.Y6)()}),O=Z[0],C=Z[1];(0,t.useEffect)((function(){var e;null===w||void 0===w||null===(e=w.current)||void 0===e||e.focus()}),[]);var y=(0,t.useCallback)((function(){var e=null===O||void 0===O?void 0:O.tags,r=[];e&&(r=e.split(",").map((function(e){return e.trim()})).filter((function(e){return!!e}))),i(P(P({},O),{},{name:(null===O||void 0===O?void 0:O.name)||(0,m.Y6)(),tags:r})),null===n||void 0===n||n()}),[O,n,i]);return(0,t.useEffect)((function(){var e,i=function(e){if(e.stopPropagation(),e.key===v.KW)null===n||void 0===n||n();else if(e.key===v.tt){var i=e.target.innerText;i.startsWith("Create")||"Cancel"===i||y()}};return null===(e=document)||void 0===e||e.addEventListener("keydown",i),function(){var e;null===(e=document)||void 0===e||e.removeEventListener("keydown",i)}}),[y,n]),(0,b.jsxs)(h.Nk,{width:55*g.iI,children:[(0,b.jsx)(h.I5,{lightBackground:!0,children:(0,b.jsxs)(d.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,b.jsx)(u.ZP,{bold:!0,cyan:!0,largeLg:!0,children:"".concat(j.G7[r]," pipeline")}),(0,b.jsx)(x,{fill:f.Z.accent.cyan,size:10*g.iI})]})}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(u.ZP,{default:!0,children:"Name"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){C((function(n){return P(P({},n),{},{name:e.target.value})}))},paddingVertical:g.iI,placeholder:"Pipeline name...",ref:w,value:(null===O||void 0===O?void 0:O.name)||""})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(u.ZP,{default:!0,children:"Description"}),(0,b.jsx)(c.Z,{ml:9}),(0,b.jsx)(c.Z,{fullWidth:!0,px:2,py:1,children:(0,b.jsx)(a.Z,{onChange:function(e){C((function(n){return P(P({},n),{},{description:e.target.value})}))},rows:2,value:(null===O||void 0===O?void 0:O.description)||""})})]}),(0,b.jsxs)(h.gI,{lightBackground:!0,children:[(0,b.jsx)(u.ZP,{default:!0,children:"Tags"}),(0,b.jsx)(p.Z,{alignRight:!0,fullWidth:!0,noBackground:!0,noBorder:!0,onChange:function(e){var n=e.target.value;C((function(e){return P(P({},e),{},{tags:n})}))},paddingVertical:g.iI,placeholder:"e.g. tag_1, tag_2",value:(null===O||void 0===O?void 0:O.tags)||""})]}),(0,b.jsx)(h.$b,{topBorder:!0,children:(0,b.jsxs)(d.ZP,{fullWidth:!0,children:[(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(l.ZP,{fullWidth:!0,onClick:n,children:"Cancel"})}),(0,b.jsx)(c.Z,{ml:1}),(0,b.jsx)(o.Z,{flex:"1",children:(0,b.jsx)(s.ZP,{bold:!0,centerText:!0,disabled:!(null!==O&&void 0!==O&&O.name),fullWidth:!0,onClick:y,primary:!0,uuid:"ConfigurePipeline/CreatePipeline",children:"Create"})})]})})]})}},70026:function(e,n,i){var r=i(75582),t=i(34376),l=i.n(t),o=i(82684),d=i(71180),s=i(84143),c=i(55485),u=i(65956),a=i(89515),p=i(35185),f=i(38276),h=i(75499),v=i(30160),j=i(69650),g=i(65327),m=i(42122),b=i(86735),x=i(70515),P=i(89538),w=i(28598);n.Z=function(e){var n=e.fetchPipelines,i=e.onCancel,t=(0,o.useState)(!1),Z=t[0],O=t[1],C=(0,o.useState)(!1),y=C[0],I=C[1],k=(0,o.useState)({}),A=k[0],M=k[1],E=(0,o.useState)({}),W=E[0],T=E[1],B=!(0,m.Qr)(A),S=(0,P.dd)((function(){var e=Object.values(W)[0],n=null===e||void 0===e?void 0:e.message,r=!!n;return(0,w.jsx)(a.Z,{cancelText:r?null:"Edit ".concat(null===e||void 0===e?void 0:e.name),centerOnScreen:!0,confirmText:"Close",danger:r,neutral:!r,onCancel:r?void 0:function(){return l().push("/pipelines/[pipeline]/edit","/pipelines/".concat(null===e||void 0===e?void 0:e.name,"/edit"))},onClick:function(){return i()},subtitle:r?n:"Pipeline ".concat(null===e||void 0===e?void 0:e.name," successfully imported!"),title:r?"Error on pipeline import.":"Successful import!",width:50*x.iI})}),{},[W],{background:!0,uuid:"confirm_upload"}),N=(0,r.Z)(S,1)[0],D=(0,o.useMemo)((function(){var e=[];return(0,b.YC)(Object.entries(A),(function(e){var n=(0,r.Z)(e,2),i=n[0];n[1];return i})).forEach((function(n){var i=(0,r.Z)(n,2),t=i[0],l=i[1],o=W[t],d=null===o||void 0===o?void 0:o.message;e.push([(0,w.jsxs)("div",{children:[(0,w.jsx)(v.ZP,{overflowWrap:!0,preWrap:!0,children:t}),d&&(0,w.jsx)(f.Z,{mt:1,children:(0,w.jsx)(v.ZP,{danger:!0,small:!0,children:d})})]},"name-".concat(t)),(0,w.jsx)(p.Z,{danger:!!d,progress:100*l},"progress-".concat(t))])})),(0,w.jsx)(h.Z,{columnFlex:[1,4],columns:[{uuid:"Filename"},{uuid:"Upload progress"}],rows:e,uuid:"block-runs"})}),[A,W]);return(0,w.jsxs)(u.Z,{footer:(0,w.jsxs)(c.ZP,{fullWidth:!0,justifyContent:"space-between",children:[(0,w.jsx)(d.ZP,{onClick:function(){return i()},children:"Close"}),(0,w.jsx)(f.Z,{ml:1,children:(0,w.jsxs)(c.ZP,{alignItems:"center",justifyContent:"flex-end",children:[(0,w.jsx)(v.ZP,{children:"Overwrite pipeline files"}),(0,w.jsx)(f.Z,{ml:1}),(0,w.jsx)(j.Z,{checked:Z,onCheck:O})]})})]}),headerTitle:"Import pipeline from .zip file",children:[B&&(0,w.jsx)(g.kA,{children:D}),!B&&(0,w.jsxs)(s.Z,{directoryPath:null,onDragActiveChange:I,overwrite:Z,pipelineZip:!0,setFileUploadProgress:M,setUploadedFiles:function(e){T(e),N(),null===n||void 0===n||n()},children:[(0,w.jsx)(g.es,{children:(0,w.jsxs)(v.ZP,{center:!0,children:[y&&"Drop pipeline zip to import",!y&&"Click or drop pipeline zip to upload"]})}),(0,w.jsx)(f.Z,{mt:2,children:(0,w.jsxs)(v.ZP,{warning:!0,children:["The zip file should include the pipeline\u2019s metadata.yaml file and each",(0,w.jsx)("br",{}),"block\u2019s script file in the root folder."]})})]})]})}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{27966:function(e,n,t){t.d(n,{Z:function(){return Y}});var i=t(82394),r=t(75582),l=t(12691),u=t.n(l),o=t(69864),c=t(82684),s=t(34376),a=t(71180),d=t(70652),p=t(50724),f=t(97618),h=t(55485),v=t(48670),m=t(44265),g=t(89515),b=t(38276),_=t(4190),x=t(75499),j=t(48381),O=t(30160),w=t(35686),y=t(44897),P=t(42631),Z=t(72473),C=t(81655),k=t(72191),E=t(39643),D=t(25976),I=t(70515),R=D.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*I.iI,P.TR,2*I.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||y.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||y.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),N=t(30229),L=t(31608),S=t(16488),T=t(86735),V=t(50178),F=t(72619),A=t(95924),U=t(69419),B=t(70320),M=t(3917),z=t(44688),H=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G={monospace:!0,small:!0};function Q(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,l=e.onCancel,u=e.onSuccess,s=e.pipelineRun,d=e.setCancelingRunId,f=e.setErrors,v=e.setShowConfirmationId,g=e.showConfirmationId,x=(0,V.Ct)(),j=s||{},C=j.id,E=j.pipeline_schedule_id,D=j.pipeline_schedule_token,I=j.pipeline_schedule_type,L=j.status,S=i&&C===n&&m.VO.RUNNING===L,T=(0,U.iV)(),A=(0,c.useMemo)((function(){return(null!==T&&void 0!==T&&T.page?+T.page:0)>0}),[null===T||void 0===T?void 0:T.page]),B=(0,o.Db)(N.Xm.API===I&&D?w.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(E,D):w.ZP.pipeline_runs.pipeline_schedules.useCreate(E),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===f||void 0===f?void 0:f({errors:n,response:e})}})}}),M=(0,r.Z)(B,1)[0],z=(0,c.useCallback)((function(){v(null),M({pipeline_run:{backfill_id:null===s||void 0===s?void 0:s.backfill_id,event_variables:(null===s||void 0===s?void 0:s.event_variables)||{},execution_date:null===s||void 0===s?void 0:s.execution_date,pipeline_schedule_id:null===s||void 0===s?void 0:s.pipeline_schedule_id,pipeline_uuid:null===s||void 0===s?void 0:s.pipeline_uuid,variables:(null===s||void 0===s?void 0:s.variables)||{}}})}),[M,s,v]),X=(0,c.useCallback)((function(){v(null),d(C),l({id:C,status:m.VO.CANCELLED})}),[l,C,d,v]);return(0,H.jsxs)("div",{style:{position:"relative"},children:[(0,H.jsx)(a.ZP,{backgroundColor:S&&y.Z.accent.yellow,beforeIcon:m.VO.INITIAL!==L&&!t&&(0,H.jsxs)(H.Fragment,{children:[m.VO.COMPLETED===L&&(0,H.jsx)(Z.Check,{size:k.bL}),[m.VO.FAILED,m.VO.CANCELLED].includes(L)&&(0,H.jsx)(Z.PlayButtonFilled,{inverted:m.VO.CANCELLED===L&&!x,size:k.bL}),[m.VO.RUNNING].includes(L)&&(0,H.jsx)(_.Z,{color:S?y.Z.status.negative:y.Z.monotone.white,small:!0})]}),borderRadius:"".concat(P.D7,"px"),danger:m.VO.FAILED===L&&!x,default:m.VO.INITIAL===L,disabled:t||x,loading:!s,onClick:function(e){e.stopPropagation(),v(C)},padding:"6px",primary:m.VO.RUNNING===L&&!S&&!x,warning:m.VO.CANCELLED===L&&!x,children:t?"Ready":S?"Canceling":m.Do[L]}),(0,H.jsx)(p.Z,{onClickOutside:function(){return v(null)},open:g===C,children:(0,H.jsxs)(R,{children:[[m.VO.RUNNING,m.VO.INITIAL].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(O.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,H.jsx)("br",{}),"the current pipeline run."]}),(0,H.jsx)(O.ZP,{}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsxs)(h.ZP,{children:[(0,H.jsx)(a.ZP,{onClick:function(){X(),z()},children:"Retry run"}),(0,H.jsx)(b.Z,{ml:1}),(0,H.jsx)(a.ZP,{onClick:X,children:"Cancel run"})]})})]}),[m.VO.CANCELLED,m.VO.FAILED,m.VO.COMPLETED].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(O.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",L]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["Retry the run with changes you have made to the pipeline.",A?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("br",{}),"Note that the retried run may appear on a previous page."]}):null]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsx)(a.ZP,{onClick:z,children:"Retry run"})]})]})})]})}var Y=function(e){var n=e.allowBulkSelect,t=e.allowDelete,l=e.deletePipelineRun,_=e.disableKeyboardNav,y=e.disableRowSelect,D=e.emptyMessage,R=void 0===D?"No runs available":D,N=e.fetchPipelineRuns,U=e.hideTriggerColumn,X=e.includePipelineTags,Y=e.onClickRow,q=e.pipelineRuns,J=e.selectedRun,$=e.selectedRuns,W=e.setSelectedRun,ee=e.setSelectedRuns,ne=e.setErrors,te=(0,s.useRouter)(),ie=(0,V.Ct)(),re=(0,B.qB)(),le=(0,c.useRef)({}),ue=(0,c.useState)(null),oe=ue[0],ce=ue[1],se=(0,c.useState)(null),ae=se[0],de=se[1],pe=(0,c.useState)(null),fe=pe[0],he=pe[1],ve=(0,c.useState)(0),me=ve[0],ge=ve[1],be=(0,c.useState)(0),_e=be[0],xe=be[1],je=(0,o.Db)((function(e){var n=e.id,t=e.status;return w.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){ce(null),null===N||void 0===N||N()},onErrorCallback:function(e,n){ce(null),null===ne||void 0===ne||ne({errors:n,response:e})}})}}),Oe=(0,r.Z)(je,2),we=Oe[0],ye=Oe[1].isLoading,Pe="PipelineDetail/Runs/Table",Ze="pipeline-runs",Ce=(0,c.useCallback)((function(e){if(!e)return null;var n=q.findIndex((function(n){return n.id===e.id}));return n>=0?n:null}),[q]),ke=(0,z.y)(),Ee=ke.registerOnKeyDown,De=ke.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){De(Pe)}}),[De,Pe]),Ee(Pe,(function(e,n){var t=n[E.Bu],i=n[E.kD];W&&!_&&(t||i)&&W((function(n){var r=Ce(n);if(null!==r){if(e.repeat)return e.preventDefault(),n;if(t){var l=r-1;return l<0&&(l=q.length-1),q[l]}if(i){var u=r+1;return u>=q.length&&(u=0),q[u]}}return n}))}),[q,W]),(0,c.useEffect)((function(){var e=Ce(J);if(null!==e){var n=(0,C.w4)({rowIndex:e,uuid:Ze}),t=document.getElementById(n);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}),[Ce,J]);var Ie=re?C.O$:{},Re=[null,null,null,null,1],Ne=[{uuid:"Status"},{center:!0,uuid:"Logs"},{center:!0,uuid:"ID"},{uuid:"Block runs"},{uuid:"Pipeline"}];U||(Re.push(1),Ne.push({uuid:"Trigger"})),X&&(Re.push(null),Ne.push({uuid:"Pipeline tags"})),Re.push.apply(Re,[1,1,1,null,null]),Ne.push.apply(Ne,[K(K({},Ie),{},{uuid:"Execution date"}),K(K({},Ie),{},{uuid:"Started at"}),K(K({},Ie),{},{uuid:"Completed at"}),{uuid:"Execution time"}]),t&&!ie&&(Re.push.apply(Re,[null]),Ne.push({label:function(){return""},uuid:"Delete"}));var Le=(0,c.useMemo)((function(){return q.every((function(e){var n=e.id;return!(null===$||void 0===$||!$[n])}))}),[q,$]);n&&(Re.unshift(null),Ne.unshift({label:function(){return(0,H.jsx)(d.Z,{checked:Le,onClick:function(){var e=(0,T.HK)(q||[],(function(e){return e.id}));ee(Le?{}:e)}})},uuid:"Selected"})),!y&&Y&&(Re.push(null),Ne.push({label:function(){return""},uuid:"action"}));var Se=(0,c.useCallback)((function(e,n){if(Y&&ee&&n&&n.metaKey){var t=q[e];ee((function(e){var n=!(null===e||void 0===e||!e[t.id]);return K(K({},e),{},(0,i.Z)({},t.id,n?null:t))}))}else Y&&Y(e)}),[Y,q,ee]);return(0,H.jsx)(L.cl,{minHeight:30*I.iI,overflowVisible:!!ae,children:0===(null===q||void 0===q?void 0:q.length)?(0,H.jsx)(b.Z,{px:3,py:1,children:(0,H.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:R})}):(0,H.jsx)(x.Z,{columnFlex:Re,columns:Ne,isSelectedRow:function(e){return!y&&q[e].id===(null===J||void 0===J?void 0:J.id)},onClickRow:y?null:Se,rowVerticalPadding:6,rows:null===q||void 0===q?void 0:q.map((function(e,r){var o=e.block_runs_count,s=e.completed_block_runs_count,_=e.completed_at,x=e.execution_date,w=e.id,E=e.pipeline_schedule_id,D=e.pipeline_schedule_name,I=e.pipeline_tags,R=e.pipeline_uuid,L=e.started_at,T=e.status;le.current[w]=(0,c.createRef)();var V,F,B=!w&&!T,z="".concat(s," out of ").concat(o," block runs completed"),J=(0,H.jsx)(j.Z,{tags:null===I||void 0===I?void 0:I.map((function(e){return{uuid:e}}))},"row_pipeline_tags_".concat(r)),W=[];r>0&&q[r-1].execution_date===e.execution_date&&q[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(W=[(0,H.jsx)(b.Z,{ml:1,children:(0,H.jsxs)(h.ZP,{alignItems:"center",children:[(0,H.jsx)(Z.Subitem,{size:k.bL,useStroke:!0}),(0,H.jsx)(a.ZP,{borderRadius:"".concat(P.D7,"px"),notClickable:!0,padding:"6px",children:(0,H.jsx)(O.ZP,{muted:!0,children:m.Do[T]})})]})},"row_status"),(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,block:!0,centerAlign:!0,muted:!0,title:z,children:"".concat(s," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:R},"row_pipeline_uuid")],U||W.push((0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),X&&W.push(J),(V=W).push.apply(V,[(0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_started_at",muted:!0,title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_completed_at",muted:!0,title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))])):(W=[(0,H.jsx)(Q,{cancelingRunId:oe,disabled:B,isLoadingCancelPipeline:ye,onCancel:we,onSuccess:N,pipelineRun:e,setCancelingRunId:ce,setErrors:ne,setShowConfirmationId:de,showConfirmationId:ae},"row_retry_button"),(0,H.jsx)(a.ZP,{default:!0,disabled:B,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,block:!0,centerAlign:!0,disabled:B,sky:!0,title:z,children:B?"":"".concat(s," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(O.ZP,{default:!0,monospace:!0,children:R},"row_pipeline_uuid")],U||W.push((0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/triggers/").concat(E),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,sky:!0,children:D})},"row_trigger")),X&&W.push(J),(F=W).push.apply(F,[(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_date",title:x?(0,M._6)(x):null}),x?(0,S.Uc)(x,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_started_at",title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_completed_at",title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))]));if(t&&!ie&&W.push((0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){var n,t,i,r;(0,A.j)(e),he(w),ge((null===(n=le.current[w])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),xe((null===(i=le.current[w])||void 0===i||null===(r=i.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:le.current[w],title:"Delete",children:(0,H.jsx)(Z.Trash,{default:!0,size:k.bL})}),(0,H.jsx)(p.Z,{onClickOutside:function(){return he(null)},open:fe===w,children:(0,H.jsx)(g.Z,{danger:!0,left:(_e||0)-C.nH,onCancel:function(){return he(null)},onClick:function(){he(null),l(w)},title:"Are you sure you want to delete this run (id ".concat(w,' for trigger "').concat(D,'")?'),top:(me||0)-(r<=1?C.oz:C.OK),width:C.Xx})})]})),n){var ue=!(null===$||void 0===$||!$[w]);W.unshift((0,H.jsx)(d.Z,{checked:ue,onClick:function(n){n.stopPropagation(),ee((function(n){return K(K({},n),{},(0,i.Z)({},w,ue?null:e))}))}},"selected-pipeline-run-".concat(w)))}return!y&&Y&&W.push((0,H.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,H.jsx)(Z.ChevronRight,{default:!0,size:k.bL})})),W})),uuid:Ze})})}},16488:function(e,n,t){t.d(n,{IJ:function(){return v},M8:function(){return P},Uc:function(){return x},XM:function(){return y},_U:function(){return h},eI:function(){return _},gU:function(){return O},lO:function(){return D},ri:function(){return g},tL:function(){return j},vJ:function(){return w},xH:function(){return b}});var i,r=t(82394),l=t(92083),u=t.n(l),o=t(3917),c=t(4383),s=t(30229),a=t(42122),d=t(86735);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return!!e&&!Object.values(s.U5).includes(e)};function v(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,l=n.started_at,o=n.status,c=null;l&&i&&(c=u()(i).valueOf()-u()(l).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:o}))}),{})}var m,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return e?n.slice(0,1):n};function b(e){var n=(0,a.gR)(e,[s.gm.INTERVAL,s.gm.TYPE]),t=e[s.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[s.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function _(e){return e?new Date(u()(e).valueOf()):null}function x(e,n){return n?(0,o.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(_(n)).format(o.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(m||(m={}));var j=(i={},(0,r.Z)(i,m.DAY,86400),(0,r.Z)(i,m.HOUR,3600),(0,r.Z)(i,m.MINUTE,60),(0,r.Z)(i,m.SECOND,1),i);function O(e){var n=m.SECOND,t=e;return e%86400===0?(t/=86400,n=m.DAY):e%3600===0?(t/=3600,n=m.HOUR):e%60===0&&(t/=60,n=m.MINUTE),{time:t,unit:n}}function w(e,n){return e*j[n]}function y(e,n,t){var i,r=u()(e);return r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(o.TD),null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(i=r.format(o.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,o.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),i}function P(e){var n,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="",r=!0;return r&&(t?i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(i="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(i="".concat(i,"/").concat(e.token)))),r&&(n=window.location.port)&&(i=i.replace(n,c.QT)),i}function Z(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var l=0;l>n;l--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var u=0;u<n;u++)i===t.length-1?(i=0,r+=1):i+=1;var o="number"===typeof t[i]?t[i]:e;return{additionalOffset:r,cronValue:String(o)}}(+e,n,t)}var C=(0,d.m5)(60),k=(0,d.m5)(24),E=(0,o.Cs)();function D(e,n){if(!e)return e;var t=u()().local().format("Z"),i=t.split(":"),r="-"===t[0],l=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),o=Number(i[1]);(r&&!n||!r&&n)&&(l=-l,o=-o);var c=e.split(" "),s=c[0],a=c[1],d=c[2],p=Z(s,o,C),f=Z(a,l+p.additionalOffset,k);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var h=Z(d,f.additionalOffset,E);c[2]=h.cronValue}return c.join(" ")}}}]);
1
+ "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7966],{27966:function(e,n,t){t.d(n,{Z:function(){return Q}});var i=t(82394),r=t(75582),l=t(12691),u=t.n(l),o=t(69864),c=t(82684),s=t(34376),a=t(71180),d=t(70652),p=t(50724),f=t(97618),h=t(55485),v=t(48670),m=t(44265),g=t(89515),b=t(38276),_=t(4190),x=t(75499),j=t(48381),O=t(30160),w=t(35686),y=t(44897),P=t(42631),Z=t(72473),C=t(81655),k=t(72191),E=t(39643),D=t(25976),I=t(70515),R=D.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*I.iI,P.TR,2*I.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||y.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||y.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")})),N=t(30229),L=t(31608),S=t(16488),V=t(86735),T=t(50178),F=t(72619),A=t(95924),U=t(69419),B=t(70320),M=t(3917),z=t(44688),H=t(28598);function X(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function K(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?X(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):X(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var G={monospace:!0,small:!0};function Y(e){var n=e.cancelingRunId,t=e.disabled,i=e.isLoadingCancelPipeline,l=e.onCancel,u=e.onSuccess,s=e.pipelineRun,d=e.setCancelingRunId,f=e.setErrors,v=e.setShowConfirmationId,g=e.showConfirmationId,x=(0,T.Ct)(),j=s||{},C=j.id,E=j.pipeline_schedule_id,D=j.pipeline_schedule_token,I=j.pipeline_schedule_type,L=j.status,S=i&&C===n&&m.VO.RUNNING===L,V=(0,U.iV)(),A=(0,c.useMemo)((function(){return(null!==V&&void 0!==V&&V.page?+V.page:0)>0}),[null===V||void 0===V?void 0:V.page]),B=(0,o.Db)(N.Xm.API===I&&D?w.ZP.pipeline_runs.pipeline_schedules.useCreateWithParent(E,D):w.ZP.pipeline_runs.pipeline_schedules.useCreate(E),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){u()},onErrorCallback:function(e,n){return null===f||void 0===f?void 0:f({errors:n,response:e})}})}}),M=(0,r.Z)(B,1)[0],z=(0,c.useCallback)((function(){v(null),M({pipeline_run:{backfill_id:null===s||void 0===s?void 0:s.backfill_id,event_variables:(null===s||void 0===s?void 0:s.event_variables)||{},execution_date:null===s||void 0===s?void 0:s.execution_date,pipeline_schedule_id:null===s||void 0===s?void 0:s.pipeline_schedule_id,pipeline_uuid:null===s||void 0===s?void 0:s.pipeline_uuid,variables:(null===s||void 0===s?void 0:s.variables)||{}}})}),[M,s,v]),X=(0,c.useCallback)((function(){v(null),d(C),l({id:C,status:m.VO.CANCELLED})}),[l,C,d,v]);return(0,H.jsxs)("div",{style:{position:"relative"},children:[(0,H.jsx)(a.ZP,{backgroundColor:S&&y.Z.accent.yellow,beforeIcon:m.VO.INITIAL!==L&&!t&&(0,H.jsxs)(H.Fragment,{children:[m.VO.COMPLETED===L&&(0,H.jsx)(Z.Check,{size:k.bL}),[m.VO.FAILED,m.VO.CANCELLED].includes(L)&&(0,H.jsx)(Z.PlayButtonFilled,{inverted:m.VO.CANCELLED===L&&!x,size:k.bL}),[m.VO.RUNNING].includes(L)&&(0,H.jsx)(_.Z,{color:S?y.Z.status.negative:y.Z.monotone.white,small:!0})]}),borderRadius:"".concat(P.D7,"px"),danger:m.VO.FAILED===L&&!x,default:m.VO.INITIAL===L,disabled:t||x,loading:!s,onClick:function(e){e.stopPropagation(),v(C)},padding:"6px",primary:m.VO.RUNNING===L&&!S&&!x,warning:m.VO.CANCELLED===L&&!x,children:t?"Ready":S?"Canceling":m.Do[L]}),(0,H.jsx)(p.Z,{onClickOutside:function(){return v(null)},open:g===C,children:(0,H.jsxs)(R,{children:[[m.VO.RUNNING,m.VO.INITIAL].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(O.ZP,{bold:!0,color:"#9ECBFF",children:"Run is in progress"}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["This pipeline run is currently ongoing. Retrying will cancel",(0,H.jsx)("br",{}),"the current pipeline run."]}),(0,H.jsx)(O.ZP,{}),(0,H.jsx)(b.Z,{mt:1,children:(0,H.jsxs)(h.ZP,{children:[(0,H.jsx)(a.ZP,{onClick:function(){X(),z()},children:"Retry run"}),(0,H.jsx)(b.Z,{ml:1}),(0,H.jsx)(a.ZP,{onClick:X,children:"Cancel run"})]})})]}),[m.VO.CANCELLED,m.VO.FAILED,m.VO.COMPLETED].includes(L)&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(O.ZP,{bold:!0,color:"#9ECBFF",children:["Run ",L]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsxs)(O.ZP,{children:["Retry the run with changes you have made to the pipeline.",A?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)("br",{}),"Note that the retried run may appear on a previous page."]}):null]}),(0,H.jsx)(b.Z,{mb:1}),(0,H.jsx)(a.ZP,{onClick:z,children:"Retry run"})]})]})})]})}var Q=function(e){var n=e.allowBulkSelect,t=e.allowDelete,l=e.deletePipelineRun,_=e.disableKeyboardNav,y=e.disableRowSelect,D=e.emptyMessage,R=void 0===D?"No runs available":D,N=e.fetchPipelineRuns,U=e.hideTriggerColumn,X=e.includePipelineTags,Q=e.onClickRow,q=e.pipelineRuns,J=e.selectedRun,$=e.selectedRuns,W=e.setSelectedRun,ee=e.setSelectedRuns,ne=e.setErrors,te=(0,s.useRouter)(),ie=(0,T.Ct)(),re=(0,B.qB)(),le=(0,c.useRef)({}),ue=(0,c.useState)(null),oe=ue[0],ce=ue[1],se=(0,c.useState)(null),ae=se[0],de=se[1],pe=(0,c.useState)(null),fe=pe[0],he=pe[1],ve=(0,c.useState)(0),me=ve[0],ge=ve[1],be=(0,c.useState)(0),_e=be[0],xe=be[1],je=(0,o.Db)((function(e){var n=e.id,t=e.status;return w.ZP.pipeline_runs.useUpdate(n)({pipeline_run:{status:t}})}),{onSuccess:function(e){return(0,F.wD)(e,{callback:function(){ce(null),null===N||void 0===N||N()},onErrorCallback:function(e,n){ce(null),null===ne||void 0===ne||ne({errors:n,response:e})}})}}),Oe=(0,r.Z)(je,2),we=Oe[0],ye=Oe[1].isLoading,Pe="PipelineDetail/Runs/Table",Ze="pipeline-runs",Ce=(0,c.useCallback)((function(e){if(!e)return null;var n=q.findIndex((function(n){return n.id===e.id}));return n>=0?n:null}),[q]),ke=(0,z.y)(),Ee=ke.registerOnKeyDown,De=ke.unregisterOnKeyDown;(0,c.useEffect)((function(){return function(){De(Pe)}}),[De,Pe]),Ee(Pe,(function(e,n){var t=n[E.Bu],i=n[E.kD];W&&!_&&(t||i)&&W((function(n){var r=Ce(n);if(null!==r){if(e.repeat)return e.preventDefault(),n;if(t){var l=r-1;return l<0&&(l=q.length-1),q[l]}if(i){var u=r+1;return u>=q.length&&(u=0),q[u]}}return n}))}),[q,W]),(0,c.useEffect)((function(){var e=Ce(J);if(null!==e){var n=(0,C.w4)({rowIndex:e,uuid:Ze}),t=document.getElementById(n);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}}),[Ce,J]);var Ie=re?C.O$:{},Re=[null,null,null,null,1],Ne=[{uuid:"Status"},{center:!0,uuid:"Logs"},{center:!0,uuid:"ID"},{uuid:"Block runs"},{uuid:"Pipeline"}];U||(Re.push(1),Ne.push({uuid:"Trigger"})),X&&(Re.push(null),Ne.push({uuid:"Pipeline tags"})),Re.push.apply(Re,[1,1,1,null,null]),Ne.push.apply(Ne,[K(K({},Ie),{},{uuid:"Execution date"}),K(K({},Ie),{},{uuid:"Started at"}),K(K({},Ie),{},{uuid:"Completed at"}),{uuid:"Execution time"}]),t&&!ie&&(Re.push.apply(Re,[null]),Ne.push({label:function(){return""},uuid:"Delete"}));var Le=(0,c.useMemo)((function(){return q.every((function(e){var n=e.id;return!(null===$||void 0===$||!$[n])}))}),[q,$]);n&&(Re.unshift(null),Ne.unshift({label:function(){return(0,H.jsx)(d.Z,{checked:Le,onClick:function(){var e=(0,V.HK)(q||[],(function(e){return e.id}));ee(Le?{}:e)}})},uuid:"Selected"})),!y&&Q&&(Re.push(null),Ne.push({label:function(){return""},uuid:"action"}));var Se=(0,c.useCallback)((function(e,n){if(Q&&ee&&n&&n.metaKey){var t=q[e];ee((function(e){var n=!(null===e||void 0===e||!e[t.id]);return K(K({},e),{},(0,i.Z)({},t.id,n?null:t))}))}else Q&&Q(e)}),[Q,q,ee]);return(0,H.jsx)(L.cl,{minHeight:30*I.iI,overflowVisible:!!ae,children:0===(null===q||void 0===q?void 0:q.length)?(0,H.jsx)(b.Z,{px:3,py:1,children:(0,H.jsx)(O.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:R})}):(0,H.jsx)(x.Z,{columnFlex:Re,columns:Ne,isSelectedRow:function(e){return!y&&q[e].id===(null===J||void 0===J?void 0:J.id)},onClickRow:y?null:Se,rowVerticalPadding:6,rows:null===q||void 0===q?void 0:q.map((function(e,r){var o=e.block_runs_count,s=e.completed_block_runs_count,_=e.completed_at,x=e.execution_date,w=e.id,E=e.pipeline_schedule_id,D=e.pipeline_schedule_name,I=e.pipeline_tags,R=e.pipeline_uuid,L=e.started_at,V=e.status;le.current[w]=(0,c.createRef)();var T,F,B=!w&&!V,z="".concat(s," out of ").concat(o," block runs completed"),J=(0,H.jsx)(j.Z,{tags:null===I||void 0===I?void 0:I.map((function(e){return{uuid:e}}))},"row_pipeline_tags_".concat(r)),W=[];r>0&&q[r-1].execution_date===e.execution_date&&q[r-1].pipeline_schedule_id===e.pipeline_schedule_id?(W=[(0,H.jsx)(b.Z,{ml:1,children:(0,H.jsxs)(h.ZP,{alignItems:"center",children:[(0,H.jsx)(Z.Subitem,{size:k.bL,useStroke:!0}),(0,H.jsx)(a.ZP,{borderRadius:"".concat(P.D7,"px"),notClickable:!0,padding:"6px",children:(0,H.jsx)(O.ZP,{muted:!0,children:m.Do[V]})})]})},"row_status"),(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,block:!0,centerAlign:!0,muted:!0,title:z,children:"".concat(s," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:R},"row_pipeline_uuid")],U||W.push((0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_trigger_retry")),X&&W.push(J),(T=W).push.apply(T,[(0,H.jsx)(O.ZP,{default:!0,monospace:!0,muted:!0,children:"-"},"row_date_retry"),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_started_at",muted:!0,title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{key:"row_completed_at",muted:!0,title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))])):(W=[(0,H.jsx)(Y,{cancelingRunId:oe,disabled:B,isLoadingCancelPipeline:ye,onCancel:we,onSuccess:N,pipelineRun:e,setCancelingRunId:ce,setErrors:ne,setShowConfirmationId:de,showConfirmationId:ae},"row_retry_button"),(0,H.jsx)(a.ZP,{default:!0,disabled:B,iconOnly:!0,noBackground:!0,onClick:function(e){e.stopPropagation(),te.push("/pipelines/".concat(R,"/logs?pipeline_run_id[]=").concat(w))},children:(0,H.jsx)(Z.Logs,{default:!0,size:k.bL})},"row_logs"),(0,H.jsx)(O.ZP,{center:!0,default:!0,monospace:!0,muted:!0,children:null===e||void 0===e?void 0:e.id},"row_id"),(0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/runs/").concat(w),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,block:!0,centerAlign:!0,disabled:B,sky:!0,title:z,children:B?"":"".concat(s," / ").concat(o)})},"row_block_runs"),(0,H.jsx)(O.ZP,{default:!0,monospace:!0,children:R},"row_pipeline_uuid")],U||W.push((0,H.jsx)(u(),{as:"/pipelines/".concat(R,"/triggers/").concat(E),href:"/pipelines/[pipeline]/triggers/[...slug]",passHref:!0,children:(0,H.jsx)(v.Z,{bold:!0,sky:!0,children:D})},"row_trigger")),X&&W.push(J),(F=W).push.apply(F,[(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_date",title:x?(0,M._6)(x):null}),x?(0,S.Uc)(x,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_started_at",title:L?(0,M._6)(L):null}),L?(0,S.Uc)(L,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_completed_at",title:_?(0,M._6)(_):null}),_?(0,S.Uc)(_,re):(0,H.jsx)(H.Fragment,{children:"\u2014"})),(0,c.createElement)(O.ZP,K(K({},G),{},{default:!0,key:"row_execution_time",title:L&&_?(0,M.Qf)({endDatetime:_,showFullFormat:!0,startDatetime:L}):null}),L&&_?(0,M.Qf)({endDatetime:_,startDatetime:L}):(0,H.jsx)(H.Fragment,{children:"\u2014"}))]));if(t&&!ie&&W.push((0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(a.ZP,{default:!0,iconOnly:!0,noBackground:!0,onClick:function(e){var n,t,i,r;(0,A.j)(e),he(w),ge((null===(n=le.current[w])||void 0===n||null===(t=n.current)||void 0===t?void 0:t.offsetTop)||0),xe((null===(i=le.current[w])||void 0===i||null===(r=i.current)||void 0===r?void 0:r.offsetLeft)||0)},ref:le.current[w],title:"Delete",children:(0,H.jsx)(Z.Trash,{default:!0,size:k.bL})}),(0,H.jsx)(p.Z,{onClickOutside:function(){return he(null)},open:fe===w,children:(0,H.jsx)(g.Z,{danger:!0,left:(_e||0)-C.nH,onCancel:function(){return he(null)},onClick:function(){he(null),l(w)},title:"Are you sure you want to delete this run (id ".concat(w,' for trigger "').concat(D,'")?'),top:(me||0)-(r<=1?C.oz:C.OK),width:C.Xx})})]})),n){var ue=!(null===$||void 0===$||!$[w]);W.unshift((0,H.jsx)(d.Z,{checked:ue,onClick:function(n){n.stopPropagation(),ee((function(n){return K(K({},n),{},(0,i.Z)({},w,ue?null:e))}))}},"selected-pipeline-run-".concat(w)))}return!y&&Q&&W.push((0,H.jsx)(f.Z,{flex:1,justifyContent:"flex-end",children:(0,H.jsx)(Z.ChevronRight,{default:!0,size:k.bL})})),W})),uuid:Ze})})}},16488:function(e,n,t){t.d(n,{IJ:function(){return v},M8:function(){return P},Uc:function(){return x},XM:function(){return y},_U:function(){return h},eI:function(){return _},gU:function(){return O},lO:function(){return D},ri:function(){return g},tL:function(){return j},vJ:function(){return w},xH:function(){return b}});var i,r=t(82394),l=t(92083),u=t.n(l),o=t(3917),c=t(4383),s=t(30229),a=t(42122),d=t(86735);function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var h=function(e){return!!e&&!Object.values(s.U5).includes(e)};function v(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var t=n.block_uuid,i=n.completed_at,l=n.started_at,o=n.status,c=null;l&&i&&(c=u()(i).valueOf()-u()(l).valueOf());return f(f({},e),{},(0,r.Z)({},t,{runtime:c,status:o}))}),{})}var m,g=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:s.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:s.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:s.Xm.API}];return e?n.slice(0,1):n};function b(e){var n=(0,a.gR)(e,[s.gm.INTERVAL,s.gm.TYPE]),t=e[s.gm.INTERVAL];t&&(n["schedule_interval[]"]=encodeURIComponent(t));var i=e[s.gm.TYPE];return i&&(n["schedule_type[]"]=i),n}function _(e){return e?new Date(u()(e).valueOf()):null}function x(e,n){return n?(0,o.XG)(e,n):function(e){if("string"!==typeof e)return e;var n=e.split("+")[0];return u()(_(n)).format(o.Nx)}(e)}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(m||(m={}));var j=(i={},(0,r.Z)(i,m.DAY,86400),(0,r.Z)(i,m.HOUR,3600),(0,r.Z)(i,m.MINUTE,60),(0,r.Z)(i,m.SECOND,1),i);function O(e){var n=m.SECOND,t=e;return e%86400===0?(t/=86400,n=m.DAY):e%3600===0?(t/=3600,n=m.HOUR):e%60===0&&(t/=60,n=m.MINUTE),{time:t,unit:n}}function w(e,n){return e*j[n]}function y(e,n,t){var i,r=u()(e);return r.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),r.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),r.set("second",0),i=r.format(o.TD),null!==t&&void 0!==t&&t.includeSeconds&&(i=i.concat(":00")),null!==t&&void 0!==t&&t.localTimezone&&(i=r.format(o.lE),null!==t&&void 0!==t&&t.convertToUtc&&(i=(0,o.d$)(i,{includeSeconds:null===t||void 0===t?void 0:t.includeSeconds,utcFormat:!0}))),i}function P(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;if(i){var r=(0,c.XF)();n?t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".concat(r,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/pipeline_runs"),null!==e&&void 0!==e&&e.token&&(t="".concat(t,"/").concat(e.token)))}return t}function Z(e,n,t){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,t){var i=t.indexOf(e),r=0;if(n<0)for(var l=0;l>n;l--)0===i?(i=t.length-1,r-=1):i-=1;else if(n>0)for(var u=0;u<n;u++)i===t.length-1?(i=0,r+=1):i+=1;var o="number"===typeof t[i]?t[i]:e;return{additionalOffset:r,cronValue:String(o)}}(+e,n,t)}var C=(0,d.m5)(60),k=(0,d.m5)(24),E=(0,o.Cs)();function D(e,n){if(!e)return e;var t=u()().local().format("Z"),i=t.split(":"),r="-"===t[0],l=3===i[0].length?Number(i[0].slice(1)):Number(i[0]),o=Number(i[1]);(r&&!n||!r&&n)&&(l=-l,o=-o);var c=e.split(" "),s=c[0],a=c[1],d=c[2],p=Z(s,o,C),f=Z(a,l+p.additionalOffset,k);if(c[0]=p.cronValue,c[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var h=Z(d,f.additionalOffset,E);c[2]=h.cronValue}return c.join(" ")}}}]);