mage-ai 0.9.44__py3-none-any.whl → 0.9.46__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 (540) hide show
  1. mage_ai/api/constants.py +2 -0
  2. mage_ai/api/operations/base.py +208 -12
  3. mage_ai/api/policies/BasePolicy.py +3 -3
  4. mage_ai/api/policies/ComputeClusterPolicy.py +96 -0
  5. mage_ai/api/policies/ComputeConnectionPolicy.py +74 -0
  6. mage_ai/api/policies/ComputeServicePolicy.py +50 -0
  7. mage_ai/api/policies/DownloadPolicy.py +29 -0
  8. mage_ai/api/policies/GitCustomBranchPolicy.py +1 -0
  9. mage_ai/api/policies/GlobalHookPolicy.py +126 -0
  10. mage_ai/api/policies/OauthPolicy.py +56 -7
  11. mage_ai/api/policies/ProjectPolicy.py +1 -0
  12. mage_ai/api/policies/RolePolicy.py +12 -1
  13. mage_ai/api/presenters/ComputeClusterPresenter.py +19 -0
  14. mage_ai/api/presenters/ComputeConnectionPresenter.py +26 -0
  15. mage_ai/api/presenters/ComputeServicePresenter.py +15 -0
  16. mage_ai/api/presenters/DownloadPresenter.py +13 -0
  17. mage_ai/api/presenters/GlobalHookPresenter.py +74 -0
  18. mage_ai/api/presenters/OauthPresenter.py +1 -0
  19. mage_ai/api/presenters/PipelinePresenter.py +1 -0
  20. mage_ai/api/presenters/ProjectPresenter.py +1 -0
  21. mage_ai/api/presenters/SparkApplicationPresenter.py +2 -0
  22. mage_ai/api/presenters/WorkspacePresenter.py +22 -22
  23. mage_ai/api/resources/AsyncBaseResource.py +39 -0
  24. mage_ai/api/resources/BackfillResource.py +1 -0
  25. mage_ai/api/resources/BlockResource.py +57 -0
  26. mage_ai/api/resources/ClusterResource.py +1 -1
  27. mage_ai/api/resources/ComputeClusterResource.py +109 -0
  28. mage_ai/api/resources/ComputeConnectionResource.py +103 -0
  29. mage_ai/api/resources/ComputeServiceResource.py +35 -0
  30. mage_ai/api/resources/DownloadResource.py +56 -0
  31. mage_ai/api/resources/ExecutionStateResource.py +1 -1
  32. mage_ai/api/resources/GitBranchResource.py +35 -29
  33. mage_ai/api/resources/GitCustomBranchResource.py +9 -0
  34. mage_ai/api/resources/GlobalHookResource.py +192 -0
  35. mage_ai/api/resources/KernelResource.py +10 -0
  36. mage_ai/api/resources/OauthResource.py +60 -98
  37. mage_ai/api/resources/PipelineResource.py +4 -4
  38. mage_ai/api/resources/PipelineScheduleResource.py +37 -16
  39. mage_ai/api/resources/ProjectResource.py +5 -3
  40. mage_ai/api/resources/SessionResource.py +24 -9
  41. mage_ai/api/resources/SparkApplicationResource.py +5 -5
  42. mage_ai/api/resources/SparkEnvironmentResource.py +1 -2
  43. mage_ai/api/resources/SparkExecutorResource.py +1 -2
  44. mage_ai/api/resources/SparkJobResource.py +3 -6
  45. mage_ai/api/resources/SparkSqlResource.py +6 -11
  46. mage_ai/api/resources/SparkStageAttemptResource.py +2 -3
  47. mage_ai/api/resources/SparkStageAttemptTaskResource.py +1 -2
  48. mage_ai/api/resources/SparkStageAttemptTaskSummaryResource.py +1 -2
  49. mage_ai/api/resources/SparkStageResource.py +3 -6
  50. mage_ai/api/resources/SparkThreadResource.py +1 -2
  51. mage_ai/api/resources/UserResource.py +32 -31
  52. mage_ai/api/resources/mixins/spark.py +25 -4
  53. mage_ai/authentication/oauth/constants.py +4 -0
  54. mage_ai/authentication/oauth2.py +1 -3
  55. mage_ai/authentication/permissions/constants.py +4 -0
  56. mage_ai/authentication/providers/__init__.py +0 -0
  57. mage_ai/authentication/providers/active_directory.py +136 -0
  58. mage_ai/authentication/providers/constants.py +17 -0
  59. mage_ai/authentication/providers/ghe.py +81 -0
  60. mage_ai/authentication/providers/google.py +86 -0
  61. mage_ai/authentication/providers/oauth.py +60 -0
  62. mage_ai/authentication/providers/okta.py +101 -0
  63. mage_ai/authentication/providers/sso.py +20 -0
  64. mage_ai/authentication/providers/utils.py +12 -0
  65. mage_ai/cluster_manager/aws/emr_cluster_manager.py +2 -1
  66. mage_ai/cluster_manager/workspace/base.py +7 -3
  67. mage_ai/data_integrations/destinations/constants.py +2 -0
  68. mage_ai/data_preparation/executors/block_executor.py +3 -0
  69. mage_ai/data_preparation/executors/pipeline_executor.py +9 -0
  70. mage_ai/data_preparation/git/__init__.py +3 -3
  71. mage_ai/data_preparation/git/api.py +69 -35
  72. mage_ai/data_preparation/models/block/__init__.py +95 -60
  73. mage_ai/data_preparation/models/block/data_integration/data.py +1 -1
  74. mage_ai/data_preparation/models/block/dbt/block_sql.py +95 -1
  75. mage_ai/data_preparation/models/block/dbt/utils.py +6 -0
  76. mage_ai/data_preparation/models/block/spark/mixins.py +82 -34
  77. mage_ai/data_preparation/models/download/__init__.py +8 -0
  78. mage_ai/data_preparation/models/global_hooks/__init__.py +0 -0
  79. mage_ai/data_preparation/models/global_hooks/constants.py +44 -0
  80. mage_ai/data_preparation/models/global_hooks/models.py +928 -0
  81. mage_ai/data_preparation/models/global_hooks/utils.py +21 -0
  82. mage_ai/data_preparation/models/pipeline.py +82 -6
  83. mage_ai/data_preparation/models/pipelines/models.py +16 -0
  84. mage_ai/data_preparation/models/project/__init__.py +6 -0
  85. mage_ai/data_preparation/models/project/constants.py +1 -0
  86. mage_ai/data_preparation/models/project/models.py +12 -0
  87. mage_ai/data_preparation/repo_manager.py +23 -1
  88. mage_ai/data_preparation/templates/callbacks/base.jinja +4 -0
  89. mage_ai/data_preparation/templates/data_exporters/streaming/kafka.yaml +1 -0
  90. mage_ai/data_preparation/templates/data_loaders/streaming/activemq.yaml +6 -0
  91. mage_ai/data_preparation/templates/data_loaders/streaming/kafka.yaml +1 -0
  92. mage_ai/data_preparation/templates/data_loaders/streaming/nats.yaml +20 -0
  93. mage_ai/data_preparation/templates/repo/io_config.yaml +2 -2
  94. mage_ai/io/duckdb.py +0 -1
  95. mage_ai/orchestration/concurrency.py +8 -1
  96. mage_ai/orchestration/db/models/schedules.py +23 -2
  97. mage_ai/orchestration/pipeline_scheduler.py +168 -105
  98. mage_ai/orchestration/queue/process_queue.py +9 -1
  99. mage_ai/orchestration/triggers/api.py +11 -3
  100. mage_ai/orchestration/triggers/constants.py +1 -0
  101. mage_ai/orchestration/triggers/utils.py +23 -0
  102. mage_ai/server/active_kernel.py +37 -4
  103. mage_ai/server/api/downloads.py +76 -1
  104. mage_ai/server/api/triggers.py +1 -0
  105. mage_ai/server/constants.py +1 -1
  106. mage_ai/server/frontend_dist/404.html +2 -2
  107. mage_ai/server/frontend_dist/_next/static/9jB4XPuz6BzxBcG9VNao5/_buildManifest.js +1 -0
  108. mage_ai/server/frontend_dist/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
  109. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
  110. mage_ai/server/frontend_dist/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
  111. mage_ai/server/frontend_dist/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
  112. mage_ai/server/frontend_dist/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
  113. mage_ai/server/frontend_dist/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
  114. mage_ai/server/frontend_dist/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  115. mage_ai/server/frontend_dist/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  116. mage_ai/server/frontend_dist/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  117. mage_ai/server/frontend_dist/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  118. mage_ai/server/frontend_dist/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
  119. mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  120. mage_ai/server/frontend_dist/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
  121. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  122. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
  123. mage_ai/server/frontend_dist/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
  124. mage_ai/server/frontend_dist/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
  125. mage_ai/server/frontend_dist/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
  126. mage_ai/server/frontend_dist/_next/static/chunks/722-a1584445357a276c.js +1 -0
  127. mage_ai/server/frontend_dist/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
  128. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  129. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  130. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  131. mage_ai/server/frontend_dist/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
  132. mage_ai/server/frontend_dist/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
  133. mage_ai/server/frontend_dist/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
  134. mage_ai/server/frontend_dist/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  135. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
  136. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  137. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  138. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
  139. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  140. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  141. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
  142. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
  143. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
  144. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  145. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  146. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  147. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  148. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
  149. mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
  150. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
  151. mage_ai/server/frontend_dist/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  152. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
  153. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
  154. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  155. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
  156. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
  157. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  158. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  159. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
  160. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
  161. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  162. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
  163. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  164. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
  165. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
  166. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  167. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
  168. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
  169. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  170. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  171. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
  172. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  173. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  174. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  175. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  176. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  177. mage_ai/server/frontend_dist/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  178. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  179. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  180. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
  181. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  182. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  183. mage_ai/server/frontend_dist/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
  184. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
  185. mage_ai/server/frontend_dist/block-layout.html +2 -2
  186. mage_ai/server/frontend_dist/compute.html +5 -5
  187. mage_ai/server/frontend_dist/files.html +5 -5
  188. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  189. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  190. mage_ai/server/frontend_dist/global-hooks/[...slug].html +24 -0
  191. mage_ai/server/frontend_dist/global-hooks.html +24 -0
  192. mage_ai/server/frontend_dist/index.html +2 -2
  193. mage_ai/server/frontend_dist/manage/files.html +5 -5
  194. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  195. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  196. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  197. mage_ai/server/frontend_dist/manage/users.html +5 -5
  198. mage_ai/server/frontend_dist/manage.html +5 -5
  199. mage_ai/server/frontend_dist/oauth.html +4 -4
  200. mage_ai/server/frontend_dist/overview.html +5 -5
  201. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  202. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  203. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  204. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  205. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  206. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  207. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  208. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  209. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  210. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  211. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  212. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  213. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  214. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  215. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  216. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  217. mage_ai/server/frontend_dist/pipelines.html +5 -5
  218. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  219. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  220. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  221. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  222. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  223. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  224. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  225. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  226. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  227. mage_ai/server/frontend_dist/settings.html +2 -2
  228. mage_ai/server/frontend_dist/sign-in.html +17 -17
  229. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  230. mage_ai/server/frontend_dist/templates.html +5 -5
  231. mage_ai/server/frontend_dist/terminal.html +5 -5
  232. mage_ai/server/frontend_dist/test.html +15 -15
  233. mage_ai/server/frontend_dist/triggers.html +5 -5
  234. mage_ai/server/frontend_dist/version-control.html +5 -5
  235. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  236. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-9a6276b2918fdae1.js +1 -0
  237. mage_ai/server/{frontend_dist/_next/static/chunks/7519-8c29bbb92e03cc77.js → frontend_dist_base_path_template/_next/static/chunks/1845-5ce774d5ab81ed57.js} +1 -1
  238. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-ac7722e8b1ab88fe.js +1 -0
  239. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-f8d518d024e7b5c8.js +1 -0
  240. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-fd4d8049e83178de.js +1 -0
  241. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4366-93e09e5a4a7e182c.js +1 -0
  242. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-949640f4037bf12f.js +1 -0
  243. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-76cf8f023c6b0985.js +1 -0
  244. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-7f7919e14392ca67.js +1 -0
  245. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5638-a65610405a70961c.js +1 -0
  246. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-12eadc488265d55b.js +1 -0
  247. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.js +1 -0
  248. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/595-0d174b1f9fbfce4f.js +1 -0
  249. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +1 -0
  250. mage_ai/server/{frontend_dist/_next/static/chunks/3122-f27de34d0b5426af.js → frontend_dist_base_path_template/_next/static/chunks/6285-e9b45335bfb9ccaf.js} +1 -1
  251. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-bc1b433b428a9095.js +1 -0
  252. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5397-b5f2e477acc6bd6b.js → 6965-c613d1834c8ed92d.js} +1 -1
  253. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7022-18fde36eb46e1d65.js → 7022-070ec0144a4d029c.js} +1 -1
  254. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-a1584445357a276c.js +1 -0
  255. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-c83d25349d0e980f.js → 7858-d9df72e95e438284.js} +1 -1
  256. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +1 -0
  257. mage_ai/server/{frontend_dist/_next/static/chunks/3684-cbda680fd8927d07.js → frontend_dist_base_path_template/_next/static/chunks/8432-f191e39f9b5893f2.js} +1 -1
  258. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +1 -0
  259. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1d4f0327d42fed91.js +1 -0
  260. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9618-2c5045255ac5a6e7.js +1 -0
  261. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{976-27c4eed1c9b20c44.js → 976-18c98af60b76f1a7.js} +1 -1
  262. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-22b71764bf44ede4.js +1 -0
  263. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ebef928183f9a3bb.js +1 -0
  264. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js +1 -0
  265. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +1 -0
  266. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-0f2d4be6fdca86ca.js +1 -0
  267. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-3f6fc312f67ff72e.js → [...slug]-cfd68e760ae00958.js} +1 -1
  268. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-f4cd03036c3e8723.js → global-data-products-c3b79ef31007f95b.js} +1 -1
  269. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-77edfa32d000e88b.js +1 -0
  270. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-e561ae38cf5592e8.js +1 -0
  271. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-449a022f2f0f2d94.js +1 -0
  272. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js +1 -0
  273. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-1d9b298fdceabbf1.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js} +1 -1
  274. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-abd8571907664fdf.js +1 -0
  275. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-a7c970122a10afdc.js → users-28a930b148d99766.js} +1 -1
  276. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-f83deb790548693b.js +1 -0
  277. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-8bb62c4f6a511c43.js +1 -0
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-f0c40645f385f23f.js +1 -0
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{pipeline-runs-c79819d6826e5416.js → pipeline-runs-b35d37bfba8fbccc.js} +1 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-10e9a2d19541caa2.js +1 -0
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c8d3a5289ab93f88.js +1 -0
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-571c0962333b92f0.js +1 -0
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-ff7e9108502f5716.js +1 -0
  284. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-a52d2d3e0c2978f4.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js} +1 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js +1 -0
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js +1 -0
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e051057d9fe94f23.js +1 -0
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/{[run]-4977276c8f84b5f4.js → [run]-0691711636fa95c7.js} +1 -1
  289. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ce717786f31e8f04.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js} +1 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-2914e326a5f1ffe0.js +1 -0
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +1 -0
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-3a7500e6e53084d3.js +1 -0
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-c0e551d265a8d467.js +1 -0
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/{[pipeline]-35fe7762cb83a733.js → [pipeline]-02c843b9c8418bb5.js} +1 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e47db5c3eaf683af.js +1 -0
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-55ac955dfa9a5a8d.js +1 -0
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-d6a62284c7c99cb3.js → [...slug]-b78b1be5b9ed84b9.js} +1 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-b1389695f758c32b.js → permissions-37b78a436eeab258.js} +1 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-29c92a9bc54ae5cd.js +1 -0
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-0bdb66265286ab22.js → [...slug]-db05a80d18c168e5.js} +1 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-e04e18fc295ca76a.js → roles-f55c77e4f46c8d33.js} +1 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-2a1f8737561fdd94.js +1 -0
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-0267358c91122109.js → [...slug]-e3bf6e5d8bb250c4.js} +1 -1
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-50fed18bb9b8d142.js → users-20f0a050a42a015d.js} +1 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{settings-56f83205752b1323.js → settings-0f0121db7f5ff93d.js} +1 -1
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-99e2748e3c1d57a3.js +1 -0
  307. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-9370551ffa462144.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js} +1 -1
  308. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-3cff90df13a1a755.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-1bfaa1c50e844813.js} +1 -1
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-ed121e305169cf1c.js +1 -0
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-9ae68758102cc843.js +1 -0
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{triggers-ffaab4c013e62ba1.js → triggers-572d82d6eb7a5d43.js} +1 -1
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-2d26d80370a2e481.js +1 -0
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/uPDjJYpJMst1q6psbRyte/_buildManifest.js +1 -0
  314. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  315. mage_ai/server/frontend_dist_base_path_template/compute.html +2 -2
  316. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  317. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  318. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  319. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +24 -0
  320. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +24 -0
  321. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  322. mage_ai/server/frontend_dist_base_path_template/manage/files.html +2 -2
  323. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  324. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  325. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  326. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  327. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  328. mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
  329. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  330. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  331. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  332. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  333. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +2 -2
  334. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  335. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  336. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  337. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  338. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  339. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  340. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  341. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  342. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  343. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  344. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  345. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  346. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  347. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  348. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +2 -2
  349. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +2 -2
  350. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  351. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +2 -2
  352. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +2 -2
  353. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  354. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +2 -2
  355. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  356. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  357. mage_ai/server/frontend_dist_base_path_template/sign-in.html +9 -9
  358. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  359. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  360. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  361. mage_ai/server/frontend_dist_base_path_template/test.html +14 -14
  362. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  363. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  364. mage_ai/server/server.py +43 -15
  365. mage_ai/server/utils/output_display.py +6 -0
  366. mage_ai/server/websocket_server.py +14 -0
  367. mage_ai/services/aws/ecs/config.py +11 -8
  368. mage_ai/services/aws/emr/config.py +1 -0
  369. mage_ai/services/aws/emr/constants.py +1 -0
  370. mage_ai/services/aws/emr/emr.py +20 -7
  371. mage_ai/services/compute/__init__.py +0 -0
  372. mage_ai/services/compute/aws/__init__.py +0 -0
  373. mage_ai/services/compute/aws/constants.py +21 -0
  374. mage_ai/services/compute/aws/models.py +459 -0
  375. mage_ai/services/compute/aws/steps.py +482 -0
  376. mage_ai/services/compute/constants.py +27 -0
  377. mage_ai/services/compute/models.py +212 -0
  378. mage_ai/services/k8s/job_manager.py +3 -0
  379. mage_ai/services/spark/api/aws_emr.py +38 -0
  380. mage_ai/services/spark/api/base.py +7 -4
  381. mage_ai/services/spark/api/constants.py +4 -0
  382. mage_ai/services/spark/api/local.py +25 -24
  383. mage_ai/services/spark/api/service.py +15 -5
  384. mage_ai/services/spark/constants.py +1 -1
  385. mage_ai/services/spark/models/applications.py +45 -3
  386. mage_ai/services/spark/models/base.py +3 -19
  387. mage_ai/services/spark/models/environments.py +16 -11
  388. mage_ai/services/spark/models/executors.py +2 -2
  389. mage_ai/services/spark/models/sqls.py +46 -15
  390. mage_ai/services/spark/models/stages.py +55 -32
  391. mage_ai/services/spark/models/threads.py +2 -2
  392. mage_ai/services/spark/utils.py +22 -6
  393. mage_ai/services/ssh/__init__.py +0 -0
  394. mage_ai/services/ssh/aws/__init__.py +0 -0
  395. mage_ai/services/ssh/aws/emr/__init__.py +0 -0
  396. mage_ai/services/ssh/aws/emr/constants.py +10 -0
  397. mage_ai/services/ssh/aws/emr/models.py +326 -0
  398. mage_ai/services/ssh/aws/emr/utils.py +151 -0
  399. mage_ai/settings/__init__.py +16 -1
  400. mage_ai/settings/secret_generation.py +7 -0
  401. mage_ai/settings/sso.py +20 -0
  402. mage_ai/shared/hash.py +17 -1
  403. mage_ai/shared/models.py +253 -0
  404. mage_ai/streaming/constants.py +2 -0
  405. mage_ai/streaming/sources/activemq.py +89 -0
  406. mage_ai/streaming/sources/nats_js.py +182 -0
  407. mage_ai/streaming/sources/source_factory.py +8 -0
  408. mage_ai/tests/ai/test_ai_functions.py +53 -8
  409. mage_ai/tests/api/endpoints/test_oauths.py +33 -0
  410. mage_ai/tests/api/endpoints/test_projects.py +1 -0
  411. mage_ai/tests/api/endpoints/test_workspaces.py +55 -0
  412. mage_ai/tests/api/operations/test_base.py +7 -5
  413. mage_ai/tests/api/operations/test_operations.py +0 -1
  414. mage_ai/tests/api/operations/test_operations_with_hooks.py +577 -0
  415. mage_ai/tests/api/operations/test_syncs.py +0 -1
  416. mage_ai/tests/api/operations/test_users.py +13 -2
  417. mage_ai/tests/data_preparation/executors/test_block_executor.py +1 -0
  418. mage_ai/tests/data_preparation/models/global_hooks/__init__.py +0 -0
  419. mage_ai/tests/data_preparation/models/global_hooks/test_global_hooks.py +575 -0
  420. mage_ai/tests/data_preparation/models/global_hooks/test_hook.py +760 -0
  421. mage_ai/tests/data_preparation/models/global_hooks/test_utils.py +33 -0
  422. mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
  423. mage_ai/tests/data_preparation/test_repo_manager.py +11 -0
  424. mage_ai/tests/data_preparation/test_templates.py +1 -0
  425. mage_ai/tests/factory.py +132 -10
  426. mage_ai/tests/orchestration/queue/test_process_queue.py +15 -2
  427. mage_ai/tests/orchestration/test_pipeline_scheduler.py +447 -79
  428. mage_ai/tests/services/aws/ecs/__init__.py +0 -0
  429. mage_ai/tests/services/aws/ecs/test_config.py +144 -0
  430. mage_ai/tests/services/k8s/test_job_manager.py +22 -1
  431. mage_ai/tests/shared/mixins.py +291 -0
  432. mage_ai/tests/shared/test_hash.py +17 -1
  433. mage_ai/tests/streaming/sources/test_activemq.py +32 -0
  434. mage_ai/tests/streaming/sources/test_nats_js.py +32 -0
  435. mage_ai/tests/streaming/sources/test_source_factory.py +26 -1
  436. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/METADATA +28 -66
  437. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/RECORD +443 -364
  438. mage_ai/authentication/oauth/active_directory.py +0 -17
  439. mage_ai/server/frontend_dist/_next/static/RPXiX8RpZ7oO-yeaEtV2c/_buildManifest.js +0 -1
  440. mage_ai/server/frontend_dist/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  441. mage_ai/server/frontend_dist/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  442. mage_ai/server/frontend_dist/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  443. mage_ai/server/frontend_dist/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  444. mage_ai/server/frontend_dist/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  445. mage_ai/server/frontend_dist/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
  446. mage_ai/server/frontend_dist/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  447. mage_ai/server/frontend_dist/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  448. mage_ai/server/frontend_dist/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  449. mage_ai/server/frontend_dist/_next/static/chunks/553-edf533e634e85192.js +0 -1
  450. mage_ai/server/frontend_dist/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  451. mage_ai/server/frontend_dist/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  452. mage_ai/server/frontend_dist/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
  453. mage_ai/server/frontend_dist/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
  454. mage_ai/server/frontend_dist/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  455. mage_ai/server/frontend_dist/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  456. mage_ai/server/frontend_dist/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  457. mage_ai/server/frontend_dist/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  458. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
  459. mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  460. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  461. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  462. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  463. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  464. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  465. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  466. mage_ai/server/frontend_dist/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
  467. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
  468. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
  469. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  470. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  471. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
  472. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
  473. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
  474. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
  475. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  476. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  477. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  478. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
  479. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  480. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  481. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  482. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
  483. mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
  484. mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  485. mage_ai/server/frontend_dist/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  486. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
  487. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1125-91d3ce33140ef041.js +0 -1
  488. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1749-607014ecf28268bf.js +0 -1
  489. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-573c7fc7ad84da6e.js +0 -1
  490. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-231cad9039ae5dcb.js +0 -1
  491. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-0873e170ef7d6303.js +0 -1
  492. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3932-0ceca9599d6e6d00.js +0 -1
  493. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4267-335766a915ee2fa9.js +0 -1
  494. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-8be2e0a3fe0ba64b.js +0 -1
  495. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bca977f466e259e1.js +0 -1
  496. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/553-edf533e634e85192.js +0 -1
  497. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-37c6091b29a1fe53.js +0 -1
  498. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-0733eb84f0a0a9e0.js +0 -1
  499. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6333-53b6ebbef95a3691.js +0 -1
  500. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-3fff38a9019369fe.js +0 -1
  501. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8224-39a93ee1058b6069.js +0 -1
  502. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-6ef8fdb195694807.js +0 -1
  503. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-1b5c4b071ed544c3.js +0 -1
  504. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/framework-7c365855dab1bf41.js +0 -1
  505. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a4a660fa14cf05a9.js +0 -1
  506. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-c465c14d48392b11.js +0 -1
  507. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-b1f8d5a7a9a30f2d.js +0 -1
  508. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-93c094bad0f299fb.js +0 -1
  509. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-891e5bd5935f7473.js +0 -1
  510. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-d2e4ee4e68d36807.js +0 -1
  511. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-4a49126fcfe8ced0.js +0 -1
  512. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-5f8c5d0bc6ad1113.js +0 -1
  513. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/oauth-09467512a85c96ed.js +0 -1
  514. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-31bde04718d0d3a8.js +0 -1
  515. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-96718f95103d7844.js +0 -1
  516. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-a9266d353f288e8c.js +0 -1
  517. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-b5c29c852262312e.js +0 -1
  518. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-5d525454ff7aeb3f.js +0 -1
  519. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-883f4ae9a4a264c0.js +0 -1
  520. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-c65be964e6398cb7.js +0 -1
  521. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-1f5b4a974bd39740.js +0 -1
  522. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-074c32397d341de9.js +0 -1
  523. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-50f5d8706ed0bc73.js +0 -1
  524. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-e151c1552fcb67bd.js +0 -1
  525. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cc36f0f8c73fee4b.js +0 -1
  526. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-8336c4326f1e7d96.js +0 -1
  527. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-01dd679e4a21e0d9.js +0 -1
  528. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4d9051c073a9b2ff.js +0 -1
  529. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-88d41c33b8fcb300.js +0 -1
  530. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-d859e07561eb9010.js +0 -1
  531. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-578d862f3e56e6e6.js +0 -1
  532. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-1c0588d685b909b9.js +0 -1
  533. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-e284cf1535d93798.js +0 -1
  534. mage_ai/server/frontend_dist_base_path_template/_next/static/rNR5JgSxO3eA2BWGa_i7U/_buildManifest.js +0 -1
  535. /mage_ai/server/frontend_dist/_next/static/{RPXiX8RpZ7oO-yeaEtV2c → 9jB4XPuz6BzxBcG9VNao5}/_ssgManifest.js +0 -0
  536. /mage_ai/server/frontend_dist_base_path_template/_next/static/{rNR5JgSxO3eA2BWGa_i7U → uPDjJYpJMst1q6psbRyte}/_ssgManifest.js +0 -0
  537. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/LICENSE +0 -0
  538. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/WHEEL +0 -0
  539. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/entry_points.txt +0 -0
  540. {mage_ai-0.9.44.dist-info → mage_ai-0.9.46.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4249],{48381:function(e,n,r){"use strict";var t=r(82684),i=r(31882),o=r(55485),u=r(30160),c=r(86735),l=r(28598);n.Z=function(e){var n=e.onClickTag,r=e.tags,a=void 0===r?[]:r,s=(0,t.useMemo)((function(){return(null===a||void 0===a?void 0:a.length)||0}),[a]),d=(0,t.useMemo)((function(){return(0,c.YC)(a||[],"uuid")}),[a]);return(0,l.jsx)(o.ZP,{alignItems:"center",flexWrap:"wrap",children:null===d||void 0===d?void 0:d.reduce((function(e,r){return e.push((0,l.jsx)("div",{style:{marginBottom:2,marginRight:s>=2?4:0,marginTop:2},children:(0,l.jsx)(i.Z,{onClick:n?function(){return n(r)}:null,small:!0,children:(0,l.jsx)(u.ZP,{children:r.uuid})})},"tag-".concat(r.uuid))),e}),[])})}},16488:function(e,n,r){"use strict";r.d(n,{IJ:function(){return g},M8:function(){return I},Vx:function(){return j},XM:function(){return Z},_U:function(){return v},eI:function(){return b},gU:function(){return O},lO:function(){return E},ri:function(){return m},tL:function(){return y},vJ:function(){return w},xH:function(){return x}});var t,i=r(82394),o=r(92083),u=r.n(o),c=r(3917),l=r(4383),a=r(30229),s=r(42122),d=r(86735);function p(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function f(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?p(Object(r),!0).forEach((function(n){(0,i.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var v=function(e){return!!e&&!Object.values(a.U5).includes(e)};function g(e){return null===e||void 0===e?void 0:e.reduce((function(e,n){var r=n.block_uuid,t=n.completed_at,o=n.started_at,c=n.status,l=null;o&&t&&(l=u()(t).valueOf()-u()(o).valueOf());return f(f({},e),{},(0,i.Z)({},r,{runtime:l,status:c}))}),{})}var h,m=function(e){var n=[{description:function(){return"This pipeline will run continuously on an interval or just once."},label:function(){return"Schedule"},uuid:a.Xm.TIME},{description:function(){return"This pipeline will run when a specific event occurs."},label:function(){return"Event"},uuid:a.Xm.EVENT},{description:function(){return"Run this pipeline when you make an API call."},label:function(){return"API"},uuid:a.Xm.API}];return e?n.slice(0,1):n};function x(e){var n=(0,s.gR)(e,[a.gm.INTERVAL,a.gm.TYPE]),r=e[a.gm.INTERVAL];r&&(n["schedule_interval[]"]=encodeURIComponent(r));var t=e[a.gm.TYPE];return t&&(n["schedule_type[]"]=t),n}function b(e){if(!e)return null;var n=new Date(u()(e).valueOf()),r=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds());return new Date(r)}function j(e){return"string"!==typeof e?e:b(e.split("+")[0]).toISOString().split(".")[0]}!function(e){e.DAY="day",e.HOUR="hour",e.MINUTE="minute",e.SECOND="second"}(h||(h={}));var y=(t={},(0,i.Z)(t,h.DAY,86400),(0,i.Z)(t,h.HOUR,3600),(0,i.Z)(t,h.MINUTE,60),(0,i.Z)(t,h.SECOND,1),t);function O(e){var n=h.SECOND,r=e;return e%86400===0?(r/=86400,n=h.DAY):e%3600===0?(r/=3600,n=h.HOUR):e%60===0&&(r/=60,n=h.MINUTE),{time:r,unit:n}}function w(e,n){return e*y[n]}function Z(e,n,r){var t="".concat(e.toISOString().split("T")[0]," ").concat(null===n||void 0===n?void 0:n.hour,":").concat(null===n||void 0===n?void 0:n.minute);if(null!==r&&void 0!==r&&r.includeSeconds&&(t=t.concat(":00")),null!==r&&void 0!==r&&r.localTimezone){var i=u()(e);i.set("hour",+(null===n||void 0===n?void 0:n.hour)||0),i.set("minute",+(null===n||void 0===n?void 0:n.minute)||0),i.set("second",0),t=i.format(c.lE),null!==r&&void 0!==r&&r.convertToUtc&&(t=(0,c.d$)(t,{includeSeconds:null===r||void 0===r?void 0:r.includeSeconds,utcFormat:!0}))}return t}function I(e){var n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t="",i=!0;return i&&(r?t="".concat(window.origin,"/api/pipeline_schedules/").concat(null===e||void 0===e?void 0:e.id,"/api_trigger"):(t="".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&&(t="".concat(t,"/").concat(e.token)))),i&&(n=window.location.port)&&(t=t.replace(n,l.QT)),t}function P(e,n,r){return e.match(/[*,-/]/)?{additionalOffset:0,cronValue:e}:function(e,n,r){var t=r.indexOf(e),i=0;if(n<0)for(var o=0;o>n;o--)0===t?(t=r.length-1,i-=1):t-=1;else if(n>0)for(var u=0;u<n;u++)t===r.length-1?(t=0,i+=1):t+=1;return{additionalOffset:i,cronValue:String(r[t]||e)}}(+e,n,r)}var _=(0,d.m5)(60),C=(0,d.m5)(24),k=(0,c.Cs)();function E(e,n){if(!e)return e;var r=u()().local().format("Z"),t=r.split(":"),i="-"===r[0],o=3===t[0].length?Number(t[0].slice(1)):Number(t[0]),c=Number(t[1]);(i&&!n||!i&&n)&&(o=-o,c=-c);var l=e.split(" "),a=l[0],s=l[1],d=l[2],p=P(a,c,_),f=P(s,o+p.additionalOffset,C);if(l[0]=p.cronValue,l[1]=f.cronValue,0!==(null===f||void 0===f?void 0:f.additionalOffset)){var v=P(d,f.additionalOffset,k);l[2]=v.cronValue}return l.join(" ")}},44265:function(e,n,r){"use strict";r.d(n,{Az:function(){return a},BF:function(){return l},Do:function(){return d},IK:function(){return c},P0:function(){return i},VO:function(){return u},sZ:function(){return s}});var t,i,o=r(82394),u=r(41143).V,c=[u.FAILED,u.COMPLETED,u.RUNNING,u.CANCELLED,u.INITIAL],l=[u.INITIAL,u.RUNNING],a=[u.CANCELLED,u.COMPLETED,u.FAILED],s="__mage_variables",d=(t={},(0,o.Z)(t,u.CANCELLED,"Cancelled"),(0,o.Z)(t,u.COMPLETED,"Done"),(0,o.Z)(t,u.FAILED,"Failed"),(0,o.Z)(t,u.INITIAL,"Ready"),(0,o.Z)(t,u.RUNNING,"Running"),t);!function(e){e.PIPELINE_UUID="pipeline_uuid[]",e.STATUS="status[]",e.TAG="pipeline_tag[]"}(i||(i={}))},30229:function(e,n,r){"use strict";r.d(n,{TR:function(){return f},U5:function(){return l},Wb:function(){return p},Xm:function(){return o},Z4:function(){return a},fq:function(){return c},gm:function(){return s},kJ:function(){return d}});var t,i,o,u=r(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(o||(o={}));var c,l,a=(t={},(0,u.Z)(t,o.API,(function(){return"API"})),(0,u.Z)(t,o.EVENT,(function(){return"event"})),(0,u.Z)(t,o.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(c||(c={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(l||(l={}));var s,d,p=[l.ONCE,l.HOURLY,l.DAILY,l.WEEKLY,l.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(s||(s={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(d||(d={}));var f=(i={},(0,u.Z)(i,d.CREATED_AT,"Created at"),(0,u.Z)(i,d.NAME,"Name"),(0,u.Z)(i,d.PIPELINE,"Pipeline"),(0,u.Z)(i,d.STATUS,"Active"),(0,u.Z)(i,d.TYPE,"Type"),i)},31882:function(e,n,r){"use strict";var t=r(38626),i=r(71180),o=r(55485),u=r(30160),c=r(44897),l=r(72473),a=r(70515),s=r(61896),d=r(28598),p=t.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||c.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||c.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((a.iI+s.Al)/2,"px;\n height: ").concat(1.5*a.iI+s.Al,"px;\n padding: ").concat(a.iI/1.5,"px ").concat(1.25*a.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((a.iI/2+s.Al)/2,"px;\n height: ").concat(s.Al+a.iI/2+2,"px;\n padding: ").concat(a.iI/4,"px ").concat(a.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((a.iI/1+s.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||c.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,r=e.children,t=e.disabled,c=e.label,s=e.monospace,f=e.onClick,v=e.primary,g=e.small,h=e.xsmall;return(0,d.jsx)(p,{border:n,primary:v,small:g,xsmall:h,children:(0,d.jsx)(i.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[r,c&&(0,d.jsx)(u.ZP,{monospace:s,small:g,xsmall:h,children:c}),!t&&f&&(0,d.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,d.jsx)(l.x8,{default:v,muted:!v,size:g?a.iI:1.25*a.iI})]})})})}},46732:function(e,n,r){"use strict";var t=r(82394),i=r(26304),o=(r(82684),r(50724)),u=r(70374),c=r(28598),l=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function s(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.children,r=e.items,t=e.open,a=e.onClickCallback,d=e.onClickOutside,p=e.parentRef,f=e.uuid,v=e.zIndex,g=(0,i.Z)(e,l),h=(0,c.jsxs)("div",{style:{position:"relative",zIndex:(d?3:2)+(v||0)},children:[(0,c.jsx)("div",{ref:p,children:n}),(0,c.jsx)(u.Z,s(s({},g),{},{items:r,onClickCallback:a,open:t,parentRef:p,uuid:f}))]});return d?(0,c.jsx)(o.Z,{onClickOutside:d,open:!0,children:h}):h}},35185:function(e,n,r){"use strict";var t=r(82394),i=r(91835),o=(r(82684),r(38626)),u=r(44897),c=r(42631),l=r(70515),a=r(28598);function s(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?s(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*l.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||u.Z.monotone).grey200,";\n ")})),f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||u.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,a.jsx)(p,d(d({},n),{},{children:(0,a.jsx)(f,d({},n))}))}},18213:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Ce}});var t=r(77837),i=r(75582),o=r(82394),u=r(38860),c=r.n(u),l=r(12691),a=r.n(l),s=r(82684),d=r(69864),p=r(34376),f=r(24138),v=r(15338),g=r(93369),h=r(48670),m=r(55072),x=r(75457),b=r(30229),j=r(93808),y=r(82359),O=r(71180),w=r(55485),Z=r(85854),I=r(65956),P=r(38276),_=r(75499),C=r(30160),k=r(35576),E=r(17488),T=r(69650),S=r(44897),N=r(38626),A=r(42631),D=r(70515),R=N.default.div.withConfig({displayName:"indexstyle__ToggleStyle",componentId:"sc-f9kt7n-0"})(["padding:","px ","px;border-radius:","px;",""],1.5*D.iI,2*D.iI,A.n_,(function(e){return"\n border: 1px solid ".concat((e.theme||S.Z).borders.light,";\n background-color: ").concat((e.theme||S.Z).background.popup,";\n ")})),M=r(81728),L=r(8916),B=r(28598);function U(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function V(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?U(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Y="".concat(D.iI,"px ").concat(3*D.iI,"px");var H=function(e){var n=e.initialPipelineSchedulePayload,r=e.onCancel,t=e.onSuccess,u=e.variables,c=(0,s.useState)(!1),l=c[0],a=c[1],d=(0,s.useState)({}),p=d[0],f=d[1],v=(0,s.useState)(u||{}),g=v[0],h=v[1],m=(0,s.useMemo)((function(){return V(V({},n),{},{name:(0,M.Y6)(),variables:l?(0,L.e7)(g):null})}),[n,l,g]),x=function(e,n){var r={borderless:!0,key:"variable_uuid_input_".concat(e),monospace:!0,onChange:function(n){n.preventDefault(),h((function(r){return V(V({},r),{},(0,o.Z)({},e,n.target.value))}))},paddingHorizontal:0,placeholder:"Variable value",value:n};return p[e]?(0,B.jsx)(k.Z,V(V({},r),{},{rows:1,value:n})):(0,B.jsx)(E.Z,V({},r))};return(0,s.useEffect)((function(){var e=Object.entries(g).reduce((function(e,n){var r=(0,i.Z)(n,2),t=r[0],u=r[1],c=(0,M.Pb)(u)&&"object"===typeof JSON.parse(u)&&!Array.isArray(JSON.parse(u))&&null!==JSON.parse(u);return V(V({},e),{},(0,o.Z)({},t,c))}),{});f(e)}),[]),(0,B.jsxs)(I.Z,{footer:(0,B.jsxs)(w.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"flex-end",children:[(0,B.jsx)(O.ZP,{onClick:function(){t({pipeline_schedule:m}),r()},padding:Y,primaryAlternate:!0,children:"Run now"}),(0,B.jsx)(P.Z,{mr:1}),(0,B.jsx)(O.ZP,{borderColor:S.Z.background.page,onClick:r,padding:Y,secondary:!0,children:"Cancel"})]}),header:(0,B.jsx)(Z.Z,{level:5,children:"Run pipeline now"}),maxHeight:"90vh",minWidth:85*D.iI,subtitle:"Creates a new trigger and immediately runs the current pipeline once.",children:[(0,B.jsx)(R,{children:(0,B.jsxs)(w.ZP,{alignItems:"center",children:[(0,B.jsx)(P.Z,{mr:2,children:(0,B.jsx)(T.Z,{checked:l,onCheck:a})}),(0,B.jsx)(C.ZP,{bold:!0,large:!0,children:"Overwrite runtime variables"})]})}),l&&g&&Object.entries(g).length>0&&(0,B.jsx)(P.Z,{mt:2,children:(0,B.jsx)(_.Z,{columnFlex:[null,1],columns:[{uuid:"Variable"},{uuid:"Value"}],rows:Object.entries(g).map((function(e){var n=(0,i.Z)(e,2),r=n[0],t=n[1];return[(0,B.jsx)(C.ZP,{default:!0,monospace:!0,children:r},"variable_".concat(r)),x(r,t)]}))})})]})},F=r(97618),G=r(72473),z=r(47041),q=r(91437),W=N.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-pu8csx-0"})([""," overflow-y:auto;position:relative;width:100%;z-index:3;border-radius:","px;"," "," "," ",""],z.w5,A.n_,(function(e){return"\n background-color: ".concat((e.theme.background||S.Z.background).page,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.flex&&"\n flex: 1;\n "}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),X=N.default.div.withConfig({displayName:"indexstyle__ColumnHeaderRowStyle",componentId:"sc-pu8csx-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;position:sticky;top:0;width:100%;z-index:2;"," "," ",""],A.n_,A.n_,(function(e){return"\n background-color: ".concat((e.theme.background||S.Z.background).panel,";\n ")}),(function(e){return!e.noBorder&&"\n border: 1px solid ".concat((e.theme.interactive||S.Z.interactive).defaultBorder,";\n ")}),(function(e){return(e.noBorder||e.noBorderRadius)&&"\n border-radius: 0;\n "})),J=N.default.div.withConfig({displayName:"indexstyle__ColumnHeaderCellStyle",componentId:"sc-pu8csx-2"})([""," ",""],(function(e){return!e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")})),Q=N.default.div.withConfig({displayName:"indexstyle__RowTitleStyle",componentId:"sc-pu8csx-3"})([""," "," ",""],(function(e){return"\n background-color: ".concat((e.theme.background||S.Z.background).header,";\n border: 1px solid ").concat((e.theme.interative||S.Z.interactive).defaultBorder,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")})),K=N.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-pu8csx-4"})([""," "," "," ",""],(0,q.eR)(),(function(e){return"\n background-color: ".concat((e.theme.background||S.Z.background).page,";\n border-top: none;\n border-bottom: none;\n ")}),(function(e){return!e.noBorder&&"\n border-bottom: 1px solid ".concat((e.theme.interactive||S.Z.interactive).defaultBorder,";\n border-left: 1px solid ").concat((e.theme.interactive||S.Z.interactive).defaultBorder,";\n border-right: 1px solid ").concat((e.theme.interactive||S.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.finalRow&&!e.noBorderRadius&&"\n border-bottom-left-radius: ".concat(A.n_,"px;\n border-bottom-right-radius: ").concat(A.n_,"px;\n ")})),$=N.default.div.withConfig({displayName:"indexstyle__TextStyle",componentId:"sc-pu8csx-5"})(["p{cursor:pointer;}"]),ee=N.default.div.withConfig({displayName:"indexstyle__RowCellStyle",componentId:"sc-pu8csx-6"})(["width:100%;z-index:0;"," "," "," "," ",""],(function(e){return!e.first&&"\n border-left: 1px solid ".concat((e.theme.background||S.Z.background).page,";\n ")}),(function(e){return!e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")}),(function(e){return e.small&&"\n padding: ".concat(1.5*D.iI,"px;\n ")}),(function(e){return e.textColor&&"\n & p {\n color: ".concat(e.textColor,";\n }\n ")}),(function(e){return e.vanish&&"\n border: none;\n padding: 0 !important;\n width: 0% !important;\n height: 100% !important;\n background-color: ".concat((e.theme.background||S.Z.background).page," !important;\n ")})),ne=r(35185);var re=function(e){var n,r=e.cellIndex,t=e.danger,i=e.flex,o=e.render,u=e.rowGroupIndex,c=e.rowIndex,l=e.selected,a=e.small,d=e.showBackground,p=e.showProgress,f=e.textColor,v=e.value,g=e.vanish,m=(0,s.useState)(!1),x=m[0],b=m[1],j=Array.isArray(v);return n=o?o(v):"function"===typeof v?v({selected:l}):j?(0,B.jsxs)(F.Z,{alignItems:"start",flexDirection:"row",justifyContent:"space-between",children:[(0,B.jsxs)(C.ZP,{small:a,textOverflow:!0,title:v[0],children:[x&&(0,B.jsx)(B.Fragment,{children:"".concat(v[0]," & ").concat(v.length-1," more")}),!x&&(0,B.jsx)(B.Fragment,{children:v.map((function(e){return(0,B.jsx)("div",{children:e},e)}))})]}),(0,B.jsxs)(h.Z,{onClick:function(){return b(!x)},children:[x&&(0,B.jsx)(G.K5,{muted:!0,size:2*D.iI}),!x&&(0,B.jsx)(G.ol,{muted:!0,size:2*D.iI})]})]}):p?(0,B.jsx)(w.ZP,{alignItems:"center",fullHeight:!0,fullWidth:!0,children:(0,B.jsx)(ne.Z,{danger:v<80,progress:v})}):(0,B.jsx)(C.ZP,{bold:t,danger:t,small:a,textOverflow:!0,title:v,children:v}),(0,B.jsx)(F.Z,{flex:i,textOverflow:!0,children:(0,B.jsx)(ee,{first:0===r,showBackground:d,small:a,textColor:f,vanish:g,children:!g&&(0,B.jsxs)(B.Fragment,{children:[n," "]})})},"cell-".concat(u,"-").concat(c,"-").concat(r,"-").concat(v))};var te=function(e){var n=e.columnFlexNumbers,r=e.columnHeaders,t=e.height,i=e.isTextSelectionRequired,o=e.noBorder,u=e.noBorderRadius,c=e.onClickRow,l=e.onHoverRow,a=e.renderRowCellByIndex,d=e.rowGroupData,p=void 0===d?[]:d,f=e.selectedRowIndexes,v=e.small,g=e.flex,m=e.warnings,x=void 0===m?[]:m,b=(0,s.useMemo)((function(){return p.length}),[p]);return(0,B.jsxs)(W,{flex:g,height:t,noBorder:o,noBorderRadius:u,noScrollbarTrackBackground:!0,children:[(0,B.jsx)(X,{noBorder:o,noBorderRadius:u,children:(0,B.jsx)(w.ZP,{alignItems:"center",children:r.map((function(e,r){var t=e.Icon,i=e.label;return(0,B.jsx)(F.Z,{flex:n[r],children:(0,B.jsx)(J,{first:0===r,small:v,children:(0,B.jsxs)(w.ZP,{alignItems:"center",children:[t&&(0,B.jsx)(G.Jr,{}),t&&(0,B.jsx)(P.Z,{mr:1}),(0,B.jsx)(C.ZP,{bold:!0,children:i})]})})},i)}))})}),p&&p.map((function(e,r){var t,s=e.title,d=e.rowData,p=s||r,g=[];s&&(t=(0,B.jsx)(Q,{small:v,children:(0,B.jsx)(C.ZP,{bold:!0,children:s})}));var m=null===d||void 0===d?void 0:d.length;return null===d||void 0===d||d.forEach((function(e,t){var s=e.columnTextColors,d=e.columnValues,j=e.danger,y=e.uuid,O=(null===f||void 0===f?void 0:f[0])===r&&(null===f||void 0===f?void 0:f[1])===t,Z=[],I=x.find((function(e){return e.name===d[0]})),P=I&&(0,M.HD)(d[1])?(0,M.Tz)(d[1]):d[1],_=I&&I.compare(P,I.val);null===d||void 0===d||d.forEach((function(e,i,o){var u=null===a||void 0===a?void 0:a[i],c=s?s[i]:void 0;Array.isArray(e)?Z.push((0,B.jsx)(re,{cellIndex:i,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,showProgress:e[0],small:v,textColor:c,value:e[1]},i)):"undefined"===typeof e?(Z.pop(),i=o.length+1,Z.push((0,B.jsx)(re,{cellIndex:i,danger:j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:c,value:e,vanish:!0},i))):Z.push((0,B.jsx)(re,{cellIndex:i,danger:_||j,flex:n[i],render:u,rowGroupIndex:r,rowIndex:t,selected:O,showBackground:t%2===1,small:v,textColor:c,value:e},i))}));var C=(0,B.jsx)(w.ZP,{textOverflow:!0,children:Z});g.push((0,B.jsxs)(K,{finalRow:b-1===r&&m-1===t,hasHover:!!l,noBorder:o,noBorderRadius:u,onMouseEnter:function(){return null===l||void 0===l?void 0:l({rowGroupIndex:r,rowIndex:t,uuid:y})},selected:O,children:[c&&(i?(0,B.jsx)($,{onClick:function(){return c({rowGroupIndex:r,rowIndex:t,uuid:y})},role:"cell",children:C}):(0,B.jsx)(h.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(){return c({rowGroupIndex:r,rowIndex:t,uuid:y})},preventDefault:!0,children:C})),!c&&C]},"row-group-".concat(p,"-row-").concat(t)))})),(0,B.jsxs)("div",{children:[t,g]},p)}))]})},ie=N.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1xgfh62-0"})(["display:flex;flex-direction:column;height:","px;border-bottom:1px solid ",";"],(function(e){return e.height}),S.Z.borders.medium),oe=r(79633);var ue=function(e){var n=e.height,r=e.scheduleType,t=e.variables,o=e.variablesOverride,u=[];Object.entries(t).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],t=n[1],c=null===o||void 0===o?void 0:o[r];u.push({uuid:r,value:(0,L.FS)(c||t)})})),(0,L.JZ)(u,r);var c=Object.keys(t).length;return(0,B.jsx)(ie,{height:n,children:t&&(0,B.jsx)(te,{columnFlexNumbers:[1,1],columnHeaders:[{label:"Runtime variable (".concat(c,")")},{label:"Value"}],noBorderRadius:!0,rowGroupData:[{rowData:u.map((function(e){var n=e.uuid,r=e.value;return{columnTextColors:[oe.Or,void 0],columnValues:[n,r],uuid:n}}))}],small:!0})})},ce=r(4190),le=r(12717),ae=r(85544),se=r(29624),de=r(35686),pe=r(83784),fe=r(28795),ve=r(81066),ge=r(24944),he=r(3917),me=r(69419),xe=r(16488),be=r(86735),je=r(42122),ye=r(50178),Oe=r(72619),we=r(70320),Ze=r(89538);function Ie(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function Pe(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(r),!0).forEach((function(n){(0,o.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ie(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function _e(e){var n=e.pipeline,r=(0,p.useRouter)(),t=(0,ye.Ct)(),u=n.uuid,c=(0,s.useState)(null),l=c[0],j=c[1],O=(0,s.useState)(null),w=O[0],Z=O[1],I=(0,s.useState)(!1),_=I[0],k=I[1],E=de.ZP.projects.list().data,T=(0,s.useMemo)((function(){var e;return null===E||void 0===E||null===(e=E.projects)||void 0===e?void 0:e[0]}),[E]),S=((0,s.useMemo)((function(){var e;return(0,we.h)(null===T||void 0===T||null===(e=T.features)||void 0===e?void 0:e[y.d.LOCAL_TIMEZONE])}),[null===T||void 0===T?void 0:T.features]),de.ZP.client_pages.detail("pipeline_schedule:create",{"pipelines[]":[u]},{},{key:"Triggers/Edit/".concat(u)}).data),N=(0,s.useMemo)((function(){return null===S||void 0===S?void 0:S.client_page}),[S]),A=(0,s.useMemo)((function(){var e,n;return null===N||void 0===N||null===(e=N.components)||void 0===e||null===(n=e.find((function(e){return"create_with_interactions_component"===e.uuid})))||void 0===n?void 0:n.enabled}),[N]),R=(0,s.useMemo)((function(){return null===N||void 0===N?void 0:N.disabled}),[N]),U=de.ZP.variables.pipelines.list(u,{global_only:!0},{revalidateOnFocus:!1}).data,V=null===U||void 0===U?void 0:U.variables,Y=(0,me.iV)(),F=(0,me.DQ)(Y,[b.gm.INTERVAL,b.gm.STATUS,b.gm.TAG,b.gm.TYPE]),z=(0,xe.xH)(F),q=null!==Y&&void 0!==Y&&Y.page?Y.page:0,W=de.ZP.pipeline_schedules.pipelines.list(u,Pe(Pe({},z),{},{_limit:m.Q,_offset:(null!==Y&&void 0!==Y&&Y.page?Y.page:0)*m.Q}),{refreshInterval:7500}),X=W.data,J=W.mutate,Q=(0,s.useMemo)((function(){return(null===X||void 0===X?void 0:X.pipeline_schedules)||[]}),[X]),K=function(e){return(0,d.Db)(de.ZP.pipeline_schedules.pipelines.useCreate(u),{onSuccess:function(n){return(0,Oe.wD)(n,{callback:function(n){var r=n.pipeline_schedule.id;null===e||void 0===e||e(r)},onErrorCallback:function(e,n){return j({errors:n,response:e})}})}})},$=K((function(e){return r.push("/pipelines/[pipeline]/triggers/[...slug]","/pipelines/".concat(null===n||void 0===n?void 0:n.uuid,"/triggers/").concat(e,"/edit"))})),ee=(0,i.Z)($,2),ne=ee[0],re=ee[1].isLoading,te=K(J),ie=(0,i.Z)(te,2),oe=ie[0],Ie=ie[1].isLoading,_e=(0,s.useMemo)((function(){var e;return null===(e=(0,L.wx)(V,(function(e){return e.uuid===pe.C})))||void 0===e?void 0:e.reduce((function(e,n){var r=n.uuid,t=n.value;return Pe(Pe({},e),{},(0,o.Z)({},r,t))}),{})}),[V]),Ce=(0,M.Y6)(),ke=(0,s.useMemo)((function(){return{name:Ce,schedule_interval:b.U5.ONCE,schedule_type:b.Xm.TIME,start_time:(0,he.d$)((new Date).toISOString(),{dayAgo:!0,utcFormat:!0}),status:b.fq.ACTIVE}}),[Ce]),Ee=(0,Ze.dd)((function(){return(0,B.jsx)(H,{initialPipelineSchedulePayload:ke,onCancel:Ne,onSuccess:oe,variables:_e})}),{},[V,_e],{background:!0,uuid:"run_pipeline_now_popup"}),Te=(0,i.Z)(Ee,2),Se=Te[0],Ne=Te[1],Ae=(0,s.useState)(),De=Ae[0],Re=Ae[1],Me=(0,s.useMemo)((function(){var e=null===De||void 0===De?void 0:De.variables,n=!(0,je.Qr)(_e);return function(r){var i=80;if(n){var o=Object.keys(_e).length;i=46+43*Math.min(5,o)+1}var c=r.height-i;return(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(f.ZP,Pe(Pe({},r),{},{enablePorts:!1,height:c,noStatus:!0})),n&&(0,B.jsx)(ue,{height:i,scheduleType:null===De||void 0===De?void 0:De.schedule_type,variables:_e,variablesOverride:e}),!n&&(0,B.jsxs)(P.Z,{p:D.cd,children:[(0,B.jsx)(C.ZP,{children:"This pipeline has no runtime variables."}),!t&&(0,B.jsxs)(P.Z,{mt:1,children:[(0,B.jsx)(a(),{as:"/pipelines/".concat(u,"/edit?sideview=variables"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,B.jsx)(h.Z,{primary:!0,children:"Click here"})})," ",(0,B.jsx)(C.ZP,{inline:!0,children:"to add variables to this pipeline."})]})]})]})}}),[t,u,null===De||void 0===De?void 0:De.schedule_type,null===De||void 0===De?void 0:De.variables,_e]),Le=(0,s.useMemo)((function(){var e;return(null===X||void 0===X||null===(e=X.metadata)||void 0===e?void 0:e.count)||[]}),[X]),Be=de.ZP.pipeline_triggers.pipelines.list(u).data,Ue=(0,s.useMemo)((function(){return(0,be.HK)((null===Be||void 0===Be?void 0:Be.pipeline_triggers)||[],(function(e){return e.name}))}),[Be]);(0,s.useEffect)((function(){var e=((null===Be||void 0===Be?void 0:Be.pipeline_triggers)||[]).find((function(e){var n=e.settings;return null===n||void 0===n?void 0:n.invalid_schedule_interval}));Z(e?{displayMessage:'Schedule interval for Trigger (in code) "'.concat(null===e||void 0===e?void 0:e.name,'"')+" is invalid. Please check your cron expression\u2019s syntax in the pipeline\u2019s triggers.yaml file."}:null)}),[null===Be||void 0===Be?void 0:Be.pipeline_triggers]);var Ve=de.ZP.tags.list().data,Ye=(0,s.useMemo)((function(){return(0,be.YC)((null===Ve||void 0===Ve?void 0:Ve.tags)||[],(function(e){return e.uuid}))}),[Ve]),He=de.ZP.pipeline_interactions.detail(A&&u,{filter_for_permissions:1}),Fe=He.data,Ge=(He.mutate,de.ZP.interactions.pipeline_interactions.list(A&&u)),ze=Ge.data,qe=(Ge.mutate,de.ZP.pipelines.detail(A&&u).data),We=(0,s.useMemo)((function(){return(null===Fe||void 0===Fe?void 0:Fe.pipeline_interaction)||{}}),[Fe]),Xe=((0,s.useMemo)((function(){return(null===ze||void 0===ze?void 0:ze.interactions)||[]}),[ze]),(0,s.useMemo)((function(){var e;return A&&(null===(e=Object.keys((null===We||void 0===We?void 0:We.blocks)||{}))||void 0===e?void 0:e.length)>=1}),[A,We])),Je=(0,s.useMemo)((function(){return Xe&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(P.Z,{ml:"12px"}),(0,B.jsx)(ge.lZ,{}),(0,B.jsx)(P.Z,{ml:"12px"}),(0,B.jsx)(g.ZP,Pe(Pe({},ve.B),{},{Icon:G.yd,inline:!0,onClick:function(){return k(!0)},uuid:"Create trigger with no-code",children:"Create trigger with no-code"}))]})}),[Xe,k]),Qe=(0,s.useMemo)((function(){return(0,B.jsx)(ae.Z,{addButtonProps:!R&&{isLoading:re,label:"New trigger",onClick:function(){return ne({pipeline_schedule:{name:(0,M.Y6)()}})}},filterOptions:{frequency:Object.values(b.U5),status:Object.values(b.fq),tag:Ye.map((function(e){return e.uuid})),type:Object.values(b.Xm)},filterValueLabelMapping:{status:Object.values(b.fq).reduce((function(e,n){return Pe(Pe({},e),{},(0,o.Z)({},n,(0,M.kC)(n)))}),{}),tag:Ye.reduce((function(e,n){var r=n.uuid;return Pe(Pe({},e),{},(0,o.Z)({},r,r))}),{}),type:b.Z4},onClickFilterDefaults:function(){r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers"))},query:F,resetPageOnFilterApply:!0,secondaryButtonProps:!R&&{disabled:t,isLoading:Ie,label:"Run @once",onClick:(0,je.Qr)(_e)?function(){return oe({pipeline_schedule:ke})}:Se,tooltip:"Creates an @once trigger and runs pipeline immediately"},showDivider:!R,children:Je})}),[ne,oe,R,re,Ie,t,Je,ke,u,F,r,Se,Ye,_e]),Ke=(0,s.useMemo)((function(){var e=[];return _?e.push.apply(e,[{label:function(){return"Triggers"},onClick:function(){return k(!1)}},{bold:!0,label:function(){return"New trigger"}}]):e.push({label:function(){return"Triggers"}}),e}),[_,k]);return _?(0,B.jsx)(le.Z,{creatingWithLimitation:!0,errors:l,onCancel:function(){return k(!1)},pipeline:null===qe||void 0===qe?void 0:qe.pipeline,project:T,setErrors:j,useCreateScheduleMutation:K}):(0,B.jsx)(x.Z,{breadcrumbs:Ke,buildSidekick:!_&&Me,errors:l||w,pageName:fe.M.TRIGGERS,pipeline:n,setErrors:j,subheader:!_&&Qe,title:function(e){var n=e.name;return"".concat(n," triggers")},uuid:"".concat(fe.M.TRIGGERS,"_").concat(u),children:!_&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(v.Z,{light:!0}),X?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(se.Z,{fetchPipelineSchedules:J,pipeline:n,pipelineSchedules:Q,pipelineTriggersByName:Ue,selectedSchedule:De,setErrors:j,setSelectedSchedule:Re}),(0,B.jsx)(P.Z,{p:2,children:(0,B.jsx)(m.ZP,{maxPages:9,onUpdate:function(e){var n=Number(e),t=Pe(Pe({},Y),{},{page:n>=0?n:0});r.push("/pipelines/[pipeline]/triggers","/pipelines/".concat(u,"/triggers?").concat((0,me.uM)(t)))},page:Number(q),totalPages:Math.ceil(Le/m.Q)})})]}):(0,B.jsx)(P.Z,{m:2,children:(0,B.jsx)(ce.Z,{inverted:!0,large:!0})})]})})}_e.getInitialProps=function(){var e=(0,t.Z)(c().mark((function e(n){var r;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.query.pipeline,e.abrupt("return",{pipeline:{uuid:r}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();var Ce=(0,j.Z)(_e)},40183:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines/[pipeline]/triggers",function(){return r(18213)}])}},function(e){e.O(0,[2678,1154,844,8224,1124,341,9161,4495,9302,4267,600,8487,8264,7858,5499,3932,5457,722,1769,9624,5544,6333,9774,2888,179],(function(){return n=40183,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1221],{8666:function(e,n,i){"use strict";var t;i.d(n,{b:function(){return t}}),function(e){e.BLOCK="block",e.PIPELINE="pipeline"}(t||(t={}))},30229:function(e,n,i){"use strict";i.d(n,{TR:function(){return f},U5:function(){return c},Wb:function(){return p},Xm:function(){return u},Z4:function(){return s},fq:function(){return l},gm:function(){return d},kJ:function(){return a}});var t,o,u,r=i(82394);!function(e){e.API="api",e.EVENT="event",e.TIME="time"}(u||(u={}));var l,c,s=(t={},(0,r.Z)(t,u.API,(function(){return"API"})),(0,r.Z)(t,u.EVENT,(function(){return"event"})),(0,r.Z)(t,u.TIME,(function(){return"schedule"})),t);!function(e){e.ACTIVE="active",e.INACTIVE="inactive"}(l||(l={})),function(e){e.ONCE="@once",e.HOURLY="@hourly",e.DAILY="@daily",e.WEEKLY="@weekly",e.MONTHLY="@monthly",e.ALWAYS_ON="@always_on"}(c||(c={}));var d,a,p=[c.ONCE,c.HOURLY,c.DAILY,c.WEEKLY,c.MONTHLY];!function(e){e.INTERVAL="frequency[]",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(d||(d={})),function(e){e.CREATED_AT="created_at",e.NAME="name",e.PIPELINE="pipeline_uuid",e.STATUS="status",e.TYPE="schedule_type"}(a||(a={}));var f=(o={},(0,r.Z)(o,a.CREATED_AT,"Created at"),(0,r.Z)(o,a.NAME,"Name"),(0,r.Z)(o,a.PIPELINE,"Pipeline"),(0,r.Z)(o,a.STATUS,"Active"),(0,r.Z)(o,a.TYPE,"Type"),o)},31882:function(e,n,i){"use strict";var t=i(38626),o=i(71180),u=i(55485),r=i(30160),l=i(44897),c=i(72473),s=i(70515),d=i(61896),a=i(28598),p=t.default.div.withConfig({displayName:"Chip__ChipStyle",componentId:"sc-1ok73g-0"})(["display:inline-block;"," "," "," "," "," ",""],(function(e){return!e.primary&&"\n background-color: ".concat((e.theme.background||l.Z.background).tag,";\n ")}),(function(e){return e.primary&&"\n background-color: ".concat((e.theme.chart||l.Z.chart).primary,";\n ")}),(function(e){return!e.small&&"\n border-radius: ".concat((s.iI+d.Al)/2,"px;\n height: ").concat(1.5*s.iI+d.Al,"px;\n padding: ").concat(s.iI/1.5,"px ").concat(1.25*s.iI,"px;\n ")}),(function(e){return e.small&&"\n border-radius: ".concat((s.iI/2+d.Al)/2,"px;\n height: ").concat(d.Al+s.iI/2+2,"px;\n padding: ").concat(s.iI/4,"px ").concat(s.iI,"px;\n ")}),(function(e){return e.xsmall&&"\n border-radius: ".concat((s.iI/1+d.Al)/1,"px;\n height: ").concat(20,"px;\n padding: 4px 6px;\n ")}),(function(e){return e.border&&"\n border: 1px solid ".concat((e.theme.content||l.Z.content).muted,";\n ")}));n.Z=function(e){var n=e.border,i=e.children,t=e.disabled,l=e.label,d=e.monospace,f=e.onClick,v=e.primary,h=e.small,m=e.xsmall;return(0,a.jsx)(p,{border:n,primary:v,small:h,xsmall:m,children:(0,a.jsx)(o.ZP,{basic:!0,disabled:t,noBackground:!0,noPadding:!0,onClick:f,transparent:!0,children:(0,a.jsxs)(u.ZP,{alignItems:"center",children:[i,l&&(0,a.jsx)(r.ZP,{monospace:d,small:h,xsmall:m,children:l}),!t&&f&&(0,a.jsx)("div",{style:{marginLeft:2}}),!t&&f&&(0,a.jsx)(c.x8,{default:v,muted:!v,size:h?s.iI:1.25*s.iI})]})})})}},55620:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return ke}});var t=i(77837),o=i(21831),u=i(75582),r=i(82394),l=i(38860),c=i.n(l),s=i(12691),d=i.n(s),a=i(82684),p=i(69864),f=i(34376),v=i(52749),h=i(60523),m=i(71180),g=i(90299),b=i(31882),x=i(94629),Z=i(97618),j=i(55485),C=i(85854),_=i(93369),I=i(65956),w=i(38276),P=i(30160),y=i(35576),k=i(17488),T=i(28598);var A=function(e){var n=e.description,i=e.isLoading,t=e.maxWidth,o=e.minWidth,u=e.noEmptyValue,r=e.onClose,l=e.onSave,c=e.textArea,s=e.title,d=e.value,p=(0,a.useRef)(null),f=(0,a.useState)(d),v=f[0],h=f[1],g=c?y.Z:k.Z;return(0,a.useEffect)((function(){var e;null===p||void 0===p||null===(e=p.current)||void 0===e||e.focus()}),[]),(0,T.jsxs)(I.Z,{maxWidth:t,minWidth:o,children:[(0,T.jsx)(P.ZP,{bold:!0,children:s}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsx)(g,{monospace:!0,onChange:function(e){return h(e.target.value)},ref:p,rows:c?7:null,value:v})}),n&&(0,T.jsx)(w.Z,{mt:2,children:(0,T.jsx)(P.ZP,{muted:!0,small:!0,children:n})}),(0,T.jsx)(w.Z,{mt:3,children:(0,T.jsxs)(j.ZP,{children:[(0,T.jsx)(_.ZP,{bold:!0,inline:!0,loading:i,onClick:function(){v===d||u&&!v?r():l(v)},outline:!0,primary:!0,uuid:"Inputs/InputModal/SaveInput",children:"Save"}),(0,T.jsx)(w.Z,{ml:1}),(0,T.jsx)(m.ZP,{onClick:r,children:"Cancel"})]})})]})},E=i(48670),S=i(57653),O=i(55729),M=i(93808),N=i(82359),R=i(4190),D=i(75499),L=i(48381),G=i(69650),U=i(85544),Y=i(35686),B=i(44897),H=i(42631),V=i(44425),W=i(72473),$=i(23780),z=i(8666),q=i(46684),K=i(53808),Q="pipeline_list_filters",X="pipeline_list_group_bys",F="pipeline_list_sort_column_index",J="pipeline_list_sort_direction",ee="pipeline_list_selected_tab_uuid";function ne(e){return(0,K.t8)(Q,e),e}function ie(e){return(0,K.t8)(X,e),e}var te=i(32929),oe=i(44898),ue=i(70515),re=i(30229),le=i(81655),ce=i(31608),se=i(81728),de=i(3917),ae=i(72619),pe=i(69419),fe=i(65458),ve=i(15610),he=i(86735),me=i(42122),ge=i(3314),be=i(70320),xe=i(89538);function Ze(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function je(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?Ze(Object(i),!0).forEach((function(n){(0,r.Z)(e,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ze(Object(i)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))}))}return e}var Ce={Icon:W.Pf,label:function(){return"Recently viewed"},uuid:"recent"},_e={Icon:W.vd,label:function(){return"All pipelines"},uuid:"all"},Ie=[_e,Ce],we="tab",Pe={borderRadius:"".concat(H.BG,"px"),iconOnly:!0,noBackground:!0,noBorder:!0,outline:!0,padding:"4px"};function ye(){var e,n=(0,f.useRouter)(),i=(0,a.useRef)(null),t=(0,a.useRef)(null),l=(0,a.useState)(null),c=l[0],s=l[1],_=(0,a.useState)(null),y=_[0],k=_[1],M=(0,a.useState)(null),H=M[0],Ze=M[1],ye=(0,a.useState)(null),ke=ye[0],Te=ye[1],Ae=(0,a.useState)(null),Ee=Ae[0],Se=Ae[1],Oe=(0,a.useState)({}),Me=Oe[0],Ne=Oe[1],Re=(0,a.useState)(null),De=Re[0],Le=Re[1],Ge=(0,pe.iV)(),Ue=(0,pe.DQ)(Ge,[S.$1.STATUS,S.$1.TAG,S.$1.TYPE]);(0,a.useEffect)((function(){var e;s(null===i||void 0===i||null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect().height)}),[Ge,i]);var Ye=Y.ZP.projects.list(),Be=Ye.data,He=Ye.mutate,Ve=(0,a.useMemo)((function(){var e;return null===Be||void 0===Be||null===(e=Be.projects)||void 0===e?void 0:e[0]}),[Be]),We=(0,a.useMemo)((function(){var e;return(0,be.h)(null===Ve||void 0===Ve||null===(e=Ve.features)||void 0===e?void 0:e[N.d.LOCAL_TIMEZONE])}),[null===Ve||void 0===Ve?void 0:Ve.features]),$e=(0,a.useMemo)((function(){var e;return null===Ve||void 0===Ve||null===(e=Ve.features)||void 0===e?void 0:e[N.d.OPERATION_HISTORY]}),[Ve]),ze=(0,a.useMemo)((function(){return We?le.O$:{}}),[We]),qe=Y.ZP.pipelines.list(je(je({},Ue),{},{include_schedules:1})),Ke=qe.data,Qe=qe.mutate,Xe=(0,a.useMemo)((function(){return(null===Ge||void 0===Ge?void 0:Ge[S.$1.HISTORY_DAYS])||7}),[Ge]),Fe=Y.ZP.pipelines.list(je(je({},Ue),{},(e={},(0,r.Z)(e,S.$1.HISTORY_DAYS,(0,se.HW)(Xe)?Number(Xe):Xe),(0,r.Z)(e,"include_schedules",1),e)),{},{pauseFetch:!$e}),Je=Fe.data,en=Fe.mutate,nn=(0,a.useCallback)((function(e){var n=e||[];if(Ee){var i=Ee.toLowerCase();n=n.filter((function(e){var n=e.name,t=e.description,o=e.uuid;return(null===n||void 0===n?void 0:n.toLowerCase().includes(i))||(null===o||void 0===o?void 0:o.toLowerCase().includes(i))||(null===t||void 0===t?void 0:t.toLowerCase().includes(i))}))}return n}),[Ee]),tn=(0,a.useMemo)((function(){var e=nn((null===Ke||void 0===Ke?void 0:Ke.pipelines)||[]);if(null!==Ge&&void 0!==Ge&&Ge[S.$1.TAG]){var n=Ge[S.$1.TAG];e=e.filter((function(e){var i=e.tags;return i.some((function(e){return n.includes(e)}))||0===i.length&&n.includes(S.$1.NO_TAGS)}))}return e}),[Ke,nn,Ge]),on=(0,a.useMemo)((function(){return nn((null===Je||void 0===Je?void 0:Je.pipelines)||[])}),[Je,nn]),un=(0,a.useMemo)((function(){return(0,he.HK)(tn,(function(e){return e.uuid}))}),[tn]),rn=(0,a.useMemo)((function(){return(0,he.HK)(on,(function(e){return e.uuid}))}),[on]),ln=(0,a.useCallback)((function(e){var n,i,t,o;return null===e||void 0===e||null===(n=e[2])||void 0===n||null===(i=n.props)||void 0===i||null===(t=i.children)||void 0===t||null===(o=t.props)||void 0===o?void 0:o.children}),[]),cn=(0,a.useMemo)((function(){return(null===H||void 0===H?void 0:H.length)>0?null===H||void 0===H?void 0:H.map((function(e){var n=ln(e);return null===un||void 0===un?void 0:un[n]})):tn}),[ln,H,tn,un]),sn=(0,a.useMemo)((function(){return(null===ke||void 0===ke?void 0:ke.length)>0?null===ke||void 0===ke?void 0:ke.map((function(e){var n=ln(e);return null===rn||void 0===rn?void 0:rn[n]})):on}),[ln,ke,on,rn]),dn=(0,a.useMemo)((function(){return[1,2,3,4,5,6,8,9]}),[]),an=null===Ge||void 0===Ge?void 0:Ge[le.lG.SORT_COL_IDX],pn=null===Ge||void 0===Ge?void 0:Ge[le.lG.SORT_DIRECTION],fn=(0,a.useMemo)((function(){return an?{columnIndex:+an,sortDirection:pn||le.sh.ASC}:void 0}),[an,pn]),vn=null===Ge||void 0===Ge?void 0:Ge[S.$1.GROUP],hn=(0,a.useMemo)((function(){return null===Ge||void 0===Ge?void 0:Ge.tab}),[Ge]);(0,a.useEffect)((function(){var e,n={};if(an&&dn.includes(+an))(0,K.t8)(F,an),pn&&(0,K.t8)(J,pn);else{var i=(0,K.U2)(F,null),t=(0,K.U2)(J,le.sh.ASC);null!==i&&(n[le.lG.SORT_COL_IDX]=i,n[le.lG.SORT_DIRECTION]=t)}$e&&(hn?(0,K.t8)(ee,hn):n.tab=(0,K.U2)(ee,null===Ie||void 0===Ie||null===(e=Ie[0])||void 0===e?void 0:e.uuid));if(vn)ie((0,r.Z)({},vn,!0));else{var o,l=(0,K.U2)(X,{});l&&Object.entries(l).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];!o&&t&&(o=i)})),o&&(n[S.$1.GROUP]=o)}if((0,me.Qr)(Ue)){var c={},s=(0,K.U2)(Q,{});s&&Object.entries(s).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];c[i]=[],Object.entries(t).forEach((function(e){var n=(0,u.Z)(e,2),t=n[0];n[1]&&c[i].push(t)}))})),(0,me.Qr)(c)||(n=je(je({},n),c))}else{var d={};Object.entries(Ue).forEach((function(e){var n=(0,u.Z)(e,2),i=n[0],t=n[1];d[i]={};var o,r=t;(Array.isArray(r)||(r=[r]),r&&Array.isArray(r))&&(null===(o=r)||void 0===o||o.forEach((function(e){d[i][e]=!0})))})),ne(d)}(0,me.Qr)(n)||(0,ve.u7)(n,{pushHistory:!1})}),[vn,$e,Ue,hn,dn,an,pn]),(0,a.useEffect)((function(){(0,ae.bB)(Ke,Le)}),[Ke]);var mn=function(e){return(0,p.Db)(Y.ZP.pipelines.useCreate(),{onSuccess:function(n){return(0,ae.wD)(n,{callback:function(n){var i=n.pipeline.uuid;null===e||void 0===e||e(i)},onErrorCallback:function(e,n){return Le({errors:n,response:e})}})}})},gn=mn((function(e){return n.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))})),bn=(0,u.Z)(gn,2),xn=bn[0],Zn=bn[1].isLoading,jn=mn((function(){null===Qe||void 0===Qe||Qe(),null===en||void 0===en||en()})),Cn=(0,u.Z)(jn,2),_n=Cn[0],In=Cn[1].isLoading,wn=(0,p.Db)((function(e){return Y.ZP.pipelines.useUpdate(e.uuid)({pipeline:e})}),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(e){var n=e.pipeline.uuid;Ne((function(e){return je(je({},e),{},(0,r.Z)({},n,!1))})),Qe(),null===en||void 0===en||en(),null===Rn||void 0===Rn||Rn(),k(null)},onErrorCallback:function(e,n){var i,t=null===e||void 0===e||null===(i=e.url_parameters)||void 0===i?void 0:i.pk;Ne((function(e){return je(je({},e),{},(0,r.Z)({},t,!1))})),Le({errors:n,response:e})}})}}),Pn=(0,u.Z)(wn,2),yn=Pn[0],kn=Pn[1].isLoading,Tn=(0,p.Db)((function(e){return Y.ZP.pipelines.useDelete(e)()}),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(){null===Qe||void 0===Qe||Qe(),null===en||void 0===en||en()},onErrorCallback:function(e,n){return Le({errors:n,response:e})}})}}),An=(0,u.Z)(Tn,2),En=An[0],Sn=An[1].isLoading,On=(0,xe.dd)((function(e){var n=e.pipeline,i=e.pipelineDescription,t=e.pipelineName;return(0,T.jsx)(A,{isLoading:kn,minWidth:55*ue.iI,noEmptyValue:!!t,onClose:Rn,onSave:function(e){var i=n||y;if(i){var o=i.uuid,u={uuid:o};t?u.name=e:u.description=e,Ne((function(e){return je(je({},e),{},(0,r.Z)({},o,!0))})),yn(u)}},textArea:!t,title:t?"Rename pipeline":"Edit description for ".concat(null===n||void 0===n?void 0:n.uuid),value:t||i})}),{},[kn,y],{background:!0,uuid:"rename_pipeline_and_save"}),Mn=(0,u.Z)(On,2),Nn=Mn[0],Rn=Mn[1],Dn=(0,xe.dd)((function(){return(0,T.jsx)($.BC,{children:(0,T.jsx)(h.Z,{contained:!0,onClickCustomTemplate:function(e){xn({pipeline:{custom_template_uuid:null===e||void 0===e?void 0:e.template_uuid,name:(0,se.Y6)()}}).then((function(){Un()}))},showBreadcrumbs:!0,tabs:[te.A2]})})}),{},[xn],{background:!0,uuid:"browse_templates"}),Ln=(0,u.Z)(Dn,2),Gn=Ln[0],Un=Ln[1],Yn=(0,xe.dd)((function(e){var n=e.cancelButtonText,i=(e.header,e.onCancel),t=e.onSaveSuccess;return(0,T.jsx)($.BC,{children:(0,T.jsx)(O.Z,{cancelButtonText:n,contained:!0,header:(0,T.jsx)(w.Z,{mb:ue.HN,children:(0,T.jsxs)(I.Z,{children:[(0,T.jsx)(P.ZP,{warning:!0,children:"You need to add an OpenAI API key to your project before you can generate pipelines using AI."}),(0,T.jsx)(w.Z,{mt:1,children:(0,T.jsxs)(P.ZP,{warning:!0,children:["Read ",(0,T.jsx)(E.Z,{href:"https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key",openNewWindow:!0,children:"OpenAI\u2019s documentation"})," to get your API key."]})})]})}),onCancel:function(){null===i||void 0===i||i(),Vn()},onSaveSuccess:function(e){He(),Vn(),null===t||void 0===t||t(e)}})})}),{},[He],{background:!0,uuid:"configure_project"}),Bn=(0,u.Z)(Yn,2),Hn=Bn[0],Vn=Bn[1],Wn=(0,xe.dd)((function(){return(0,T.jsx)($.BC,{children:(0,T.jsx)(v.Z,{createPipeline:xn,isLoading:Zn,onClose:qn})})}),{},[xn,Zn],{background:!0,disableClickOutside:!0,disableCloseButton:!0,uuid:"AI_modal"}),$n=(0,u.Z)(Wn,2),zn=$n[0],qn=$n[1],Kn=(0,a.useMemo)((function(){return(0,fe.d)(xn,{showAIModal:function(){null!==Ve&&void 0!==Ve&&Ve.openai_api_key?zn():Hn({onSaveSuccess:function(){zn()}})},showBrowseTemplates:Gn})}),[xn,Ve,zn,Gn,Hn]),Qn=Y.ZP.tags.list().data,Xn=(0,a.useMemo)((function(){return(0,he.YC)((null===Qn||void 0===Qn?void 0:Qn.tags)||[],(function(e){return e.uuid}))}),[Qn]),Fn=(0,a.useMemo)((function(){return(0,T.jsx)(U.Z,{addButtonProps:{isLoading:Zn,label:"New",menuItems:Kn},deleteRowProps:{confirmationMessage:"This is irreversible and will immediately delete everything associated with the pipeline, including its blocks, triggers, runs, logs, and history.",isLoading:Sn,item:"pipeline",onDelete:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===y||void 0===y?void 0:y.uuid,"?"))&&En(null===y||void 0===y?void 0:y.uuid)}},extraActionButtonProps:{Icon:W.oX,confirmationDescription:"Cloning the selected pipeline will create a new pipeline with the same configuration and code blocks. The blocks use the same block files as the original pipeline. Pipeline triggers, runs, backfills, and logs are not copied over to the new pipeline.",confirmationMessage:"Do you want to clone the pipeline ".concat(null===y||void 0===y?void 0:y.uuid,"?"),isLoading:In,onClick:function(){return _n({pipeline:{clone_pipeline_uuid:null===y||void 0===y?void 0:y.uuid}})},openConfirmationDialogue:!0,tooltip:"Clone pipeline"},filterOptions:{status:S.kA,tag:[S.$1.NO_TAGS].concat((0,o.Z)(Xn.map((function(e){return e.uuid})))),type:Object.values(S.qL)},filterValueLabelMapping:{status:S.kA.reduce((function(e,n){return je(je({},e),{},(0,r.Z)({},n,(0,se.J3)((0,se.kC)(n))))}),{}),tag:je((0,r.Z)({},S.$1.NO_TAGS,"No tags"),Xn.reduce((function(e,n){var i=n.uuid;return je(je({},e),{},(0,r.Z)({},i,i))}),{})),type:S.G7},groupButtonProps:{groupByLabel:vn,menuItems:[{beforeIcon:vn===S.r0.STATUS?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.STATUS)},onClick:function(){var e=vn===S.r0.STATUS?null:S.r0.STATUS;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Status"},{beforeIcon:vn===S.r0.TAG?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.TAG)},onClick:function(){var e=vn===S.r0.TAG?null:S.r0.TAG;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Tag"},{beforeIcon:vn===S.r0.TYPE?(0,T.jsx)(W.Jr,{fill:B.Z.content.default,size:1.5*ue.iI}):(0,T.jsx)(W.Cd,{muted:!0,size:1.5*ue.iI}),label:function(){return(0,se.kC)(S.r0.TYPE)},onClick:function(){var e=vn===S.r0.TYPE?null:S.r0.TYPE;e||ie({}),(0,ve.u7)((0,r.Z)({},S.$1.GROUP,e),{pushHistory:!0})},uuid:"Pipelines/GroupMenu/Type"}]},moreActionsMenuItems:[{label:function(){return"Rename pipeline"},onClick:function(){return Nn({pipelineName:null===y||void 0===y?void 0:y.name})},uuid:"Pipelines/MoreActionsMenu/Rename"},{label:function(){return"Edit description"},onClick:function(){return Nn({pipeline:y,pipelineDescription:null===y||void 0===y?void 0:y.description})},uuid:"Pipelines/MoreActionsMenu/EditDescription"}],onClickFilterDefaults:function(){ne({}),n.push("/pipelines")},onFilterApply:function(e,n){Object.values(n).every((function(e){return!(null!==e&&void 0!==e&&e.length)}))&&ne({})},query:Ue,searchProps:{onChange:Se,value:Ee},selectedRowId:null===y||void 0===y?void 0:y.uuid,setSelectedRow:k})}),[_n,En,vn,In,Zn,Sn,Kn,Ue,n,Ee,y,Nn,Xn]),Jn=(0,$.VI)(null,{},[],{uuid:"pipelines/list"}),ei=(0,u.Z)(Jn,1)[0],ni=(0,p.Db)(Y.ZP.projects.useUpdate(null===Ve||void 0===Ve?void 0:Ve.name),{onSuccess:function(e){return(0,ae.wD)(e,{callback:function(){He()},onErrorCallback:function(e,n){return ei({errors:n,response:e})}})}}),ii=(0,u.Z)(ni,2),ti=ii[0],oi=ii[1].isLoading,ui=(0,a.useCallback)((function(e){return ti({project:e})}),[ti]),ri=(0,xe.dd)((function(){return(0,T.jsxs)(I.Z,{maxWidth:60*ue.iI,children:[(0,T.jsx)(w.Z,{mb:1,children:(0,T.jsx)(C.Z,{children:"Help improve Mage"})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsx)(P.ZP,{default:!0,children:"Please contribute usage statistics to help improve the developer experience for you and everyone in the community \ud83e\udd1d."})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsx)(I.Z,{success:!0,children:(0,T.jsxs)(j.ZP,{alignItems:"center",children:[(0,T.jsx)(W.Yo,{size:5*ue.iI,success:!0}),(0,T.jsx)(w.Z,{mr:1}),(0,T.jsx)(Z.Z,{children:(0,T.jsx)(P.ZP,{children:"All usage statistics are completely anonymous. It\u2019s impossible for Mage to know which statistics belongs to whom."})})]})})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsxs)(P.ZP,{default:!0,children:["By opting into sending usage statistics to ",(0,T.jsx)(E.Z,{href:"https://www.mage.ai",openNewWindow:!0,children:"Mage"}),", it\u2019ll help the team and community of contributors (",(0,T.jsx)(E.Z,{href:"https://www.mage.ai/chat",openNewWindow:!0,children:"Magers"}),") learn what\u2019s going wrong with the tool and what improvements can be made."]})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsx)(P.ZP,{default:!0,children:"In addition to helping reduce potential errors, you\u2019ll help inform which features are useful and which need work."})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsxs)(j.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,T.jsx)(P.ZP,{bold:!0,children:"I want to help make Mage more powerful for everyone"}),(0,T.jsx)(w.Z,{mr:ue.cd}),(0,T.jsx)(G.Z,{checked:!0,onCheck:function(){window.confirm("Are you sure you don\u2019t want to help everyone in the community?")&&ui({help_improve_mage:!1}).then((function(){return si()}))}})]})}),oi&&(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsx)(R.Z,{inverted:!0})}),(0,T.jsx)(w.Z,{mb:ue.cd,children:(0,T.jsxs)(P.ZP,{muted:!0,small:!0,children:["To learn more about how this works, please check out the ",(0,T.jsx)(E.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,small:!0,children:"documentation"}),"."]})}),(0,T.jsx)(m.ZP,{onClick:function(){return ui({help_improve_mage:!0}).then((function(){return si()}))},secondary:!0,children:"Close"})]})}),{},[Ve],{background:!0,hideCallback:function(){ui({help_improve_mage:!0})},uuid:"help_mage"}),li=(0,u.Z)(ri,2),ci=li[0],si=li[1];(0,a.useEffect)((function(){Ve&&null===(null===Ve||void 0===Ve?void 0:Ve.help_improve_mage)&&ci()}),[Ve,ci]);var di=(0,a.useCallback)((function(e){var n={};null===e||void 0===e||e.forEach((function(e,i){var t=null===e||void 0===e?void 0:e[vn];if(S.r0.STATUS===vn){var o=(e||{}).schedules,u=void 0===o?[]:o,r=u.length;t=u.find((function(e){var n=e.status;return re.fq.ACTIVE===n}))?S.QK.ACTIVE:r>=1?S.QK.INACTIVE:S.QK.NO_SCHEDULES}else if(S.r0.TAG===vn){t=(null===e||void 0===e?void 0:e.tags)?(0,he.YC)(e.tags,(function(e){return e})).join(", "):""}n[t]||(n[t]=[]),n[t].push(i)}));var i=[],t=[];S.r0.STATUS===vn?Object.values(S.QK).forEach((function(e){i.push(n[e]),t.push((0,se.vg)(e))})):S.r0.TAG===vn?(0,he.YC)(Object.keys(n),(function(e){return e})).forEach((function(e){i.push(n[e]),e?t.push(e.split(", ").map((function(e,n){return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("div",{style:{marginLeft:n>=1?4:0}},"".concat(e,"-").concat(n,"-spacing")),(0,T.jsx)(b.Z,{small:!0,children:(0,T.jsx)(P.ZP,{children:e})},"".concat(e,"-").concat(n))]})}))):t.push("No tags")})):S.r0.TYPE===vn&&Object.values(S.qL).forEach((function(e){i.push(n[e]),t.push(S.G7[e])}));var o=[],u=[];return null===i||void 0===i||i.forEach((function(e,n){"undefined"!==typeof e&&null!==e&&(null===e||void 0===e?void 0:e.length)>=1&&(u.push(e),o.push(null===t||void 0===t?void 0:t[n]))})),{rowGroupHeaders:o,rowsGroupedByIndex:u}}),[vn]),ai=(0,a.useMemo)((function(){return di(cn)}),[di,cn]),pi=ai.rowGroupHeaders,fi=ai.rowsGroupedByIndex,vi=(0,a.useMemo)((function(){return di(sn)}),[di,sn]),hi=vi.rowGroupHeaders,mi=vi.rowsGroupedByIndex,gi=(0,a.useCallback)((function(e,i,o,u,l){return(0,T.jsx)(D.Z,{columnFlex:[null,null,null,2,null,null,null,1,null,null,null],columns:[{label:function(){return""},uuid:"action"},{uuid:(0,se.kC)(S.r0.STATUS)},{uuid:"Name"},{uuid:"Description"},{uuid:(0,se.kC)(S.r0.TYPE)},je(je({},ze),{},{uuid:"Updated at"}),je(je({},ze),{},{uuid:"Created at"}),{uuid:"Tags"},{uuid:"Blocks"},{uuid:"Triggers"},{center:!0,label:function(){return""},uuid:"Actions"}],defaultSortColumnIndex:2,getUniqueRowIdentifier:ln,isSelectedRow:function(e){var n;return(null===(n=i[e])||void 0===n?void 0:n.uuid)===(null===y||void 0===y?void 0:y.uuid)},localStorageKeySortColIdx:F,localStorageKeySortDirection:J,onClickRow:function(e){return k((function(n){var t=i[e];return(null===n||void 0===n?void 0:n.uuid)!==(null===t||void 0===t?void 0:t.uuid)?t:null}))},onDoubleClickRow:function(e){n.push("/pipelines/[pipeline]/edit","/pipelines/".concat(i[e].uuid,"/edit"))},ref:t,renderRightClickMenuItems:function(e){var t=i[e];return[{label:function(){return"Edit description"},onClick:function(){return Nn({pipeline:t,pipelineDescription:null===t||void 0===t?void 0:t.description})},uuid:"edit_description"},{label:function(){return"Rename"},onClick:function(){return Nn({pipeline:t,pipelineName:null===t||void 0===t?void 0:t.name})},uuid:"rename"},{label:function(){return"Clone"},onClick:function(){return _n({pipeline:{clone_pipeline_uuid:null===t||void 0===t?void 0:t.uuid}})},uuid:"clone"},{label:function(){return"Add/Remove tags"},onClick:function(){n.push("/pipelines/[pipeline]/settings","/pipelines/".concat(null===t||void 0===t?void 0:t.uuid,"/settings"))},uuid:"add_tags"},{label:function(){return"Create template"},onClick:function(){n.push("/templates?object_type=".concat(oe.R,"&new=1&pipeline_uuid=").concat(null===t||void 0===t?void 0:t.uuid))},uuid:"create_custom_template"},{label:function(){return"Create global data product"},onClick:function(){n.push("/global-data-products?object_type=".concat(z.b.PIPELINE,"&new=1&object_uuid=").concat(null===t||void 0===t?void 0:t.uuid))},uuid:"create_global_data_product"},{label:function(){return"Delete"},onClick:function(){window.confirm("Are you sure you want to delete pipeline ".concat(null===t||void 0===t?void 0:t.uuid,"?"))&&En(null===t||void 0===t?void 0:t.uuid)},uuid:"delete"}]},rightClickMenuHeight:252,rightClickMenuWidth:25*ue.iI,rowGroupHeaders:o,rows:null===e||void 0===e?void 0:e.map((function(e,i){var t=e.blocks,o=e.created_at,u=e.description,l=e.schedules,c=e.tags,s=e.type,a=e.updated_at,p=e.uuid,f=t.filter((function(e){var n=e.type;return V.tf.SCRATCHPAD!==n})).length,v=l.length,h=l.find((function(e){var n=e.status;return re.fq.ACTIVE===n})),g=(0,T.jsx)("div",{children:(0,T.jsx)(L.Z,{tags:null===c||void 0===c?void 0:c.map((function(e){return{uuid:e}}))})},"pipeline_tags_".concat(i));return[v>=1||Me[p]?(0,T.jsx)(m.ZP,{iconOnly:!0,loading:!!Me[p],noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(n){(0,ge.j)(n),Ne((function(e){return je(je({},e),{},(0,r.Z)({},p,!0))})),yn(je(je({},e),{},{status:h?re.fq.INACTIVE:re.fq.ACTIVE}))},children:h?(0,T.jsx)(W.dz,{muted:!0,size:2*ue.iI}):(0,T.jsx)(W.Py,{default:!0,size:2*ue.iI})}):null,(0,T.jsx)(P.ZP,{default:!h,monospace:!0,success:!!h,children:h?re.fq.ACTIVE:v>=1?re.fq.INACTIVE:"no schedules"},"pipeline_status_".concat(i)),(0,T.jsx)(d(),{as:"/pipelines/".concat(p),href:"/pipelines/[pipeline]",passHref:!0,children:(0,T.jsx)(E.Z,{sameColorAsText:!0,children:p})},"pipeline_name_".concat(i)),(0,T.jsx)(P.ZP,{default:!0,preWrap:!0,title:u,children:u},"pipeline_description_".concat(i)),(0,T.jsx)(P.ZP,{children:S.G7[s]},"pipeline_type_".concat(i)),(0,T.jsx)(P.ZP,{monospace:!0,small:!0,title:a?(0,de._6)(a):null,children:a?(0,de.XG)(a,We):(0,T.jsx)(T.Fragment,{children:"\u2014"})},"pipeline_updated_at_".concat(i)),(0,T.jsx)(P.ZP,{monospace:!0,small:!0,title:o?(0,de._6)(o):null,children:o?(0,de.XG)(o.slice(0,19),We):(0,T.jsx)(T.Fragment,{children:"\u2014"})},"pipeline_created_at_".concat(i)),g,(0,T.jsx)(P.ZP,{default:0===f,monospace:!0,children:f},"pipeline_block_count_".concat(i)),(0,T.jsx)(P.ZP,{default:0===v,monospace:!0,children:v},"pipeline_trigger_count_".concat(i)),(0,T.jsxs)(Z.Z,{flex:1,justifyContent:"flex-end",children:[(0,T.jsx)(m.ZP,je(je({},Pe),{},{onClick:function(){n.push("/pipelines/[pipeline]","/pipelines/".concat(p))},title:"Detail",children:(0,T.jsx)(W.UY,{default:!0,size:2*ue.iI})})),(0,T.jsx)(w.Z,{mr:1}),(0,T.jsx)(m.ZP,je(je({},Pe),{},{onClick:function(){n.push("/pipelines/[pipeline]/logs","/pipelines/".concat(p,"/logs"))},title:"Logs",children:(0,T.jsx)(W.$B,{default:!0,size:2*ue.iI})}))]},"chevron_icon_".concat(i))]})),rowsGroupedByIndex:u,setRowsSorted:l,sortableColumnIndexes:dn,sortedColumn:fn,stickyHeader:!0})}),[_n,En,We,ln,Me,n,y,Ne,k,Nn,dn,fn,ze,yn]),bi=(0,a.useMemo)((function(){return gi(tn,cn,pi,fi,Ze)}),[tn,cn,gi,pi,fi,Ze]),xi=(0,a.useMemo)((function(){return gi(on,sn,hi,mi,Te)}),[on,sn,gi,hi,mi,Te]),Zi=(0,a.useMemo)((function(){return(null===tn||void 0===tn?void 0:tn.length)||0}),[tn]),ji=(0,a.useMemo)((function(){return(null===on||void 0===on?void 0:on.length)||0}),[on]),Ci=(0,a.useMemo)((function(){return(!$e||_e.uuid===hn)&&!Zi||$e&&Ce.uuid===hn&&!ji}),[$e,Zi,ji,hn]);return(0,T.jsxs)(x.Z,{errors:De,setErrors:Le,subheaderChildren:Fn,title:"Pipelines",uuid:"pipelines/index",children:[$e&&(0,T.jsx)(w.Z,{pb:vn?0:ue.cd,pt:ue.cd,px:ue.cd,ref:i,children:(0,T.jsx)(g.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return(0,ve.u7)((0,r.Z)({},we,n),{pushHistory:!0})},regularSizeText:!0,selectedTabUUID:hn,tabs:Ie})}),Ci?(0,T.jsx)(w.Z,{p:ue.Mq,children:Ke?(0,T.jsx)(P.ZP,{bold:!0,default:!0,monospace:!0,muted:!0,children:"No pipelines available"}):(0,T.jsx)(R.Z,{inverted:!0,large:!0})}):null,(0,T.jsxs)(ce.cl,{hide:Ci,includePadding:!!vn,maxHeight:"calc(100vh - ".concat(q.Mz+74+(c||0),"px)"),children:[(!$e||_e.uuid===hn)&&bi,$e&&Ce.uuid===hn&&xi]})]})}ye.getInitialProps=(0,t.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var ke=(0,M.Z)(ye)},79274:function(e,n,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipelines",function(){return i(55620)}])}},function(e){e.O(0,[2678,1154,844,8224,6639,1124,341,1751,1821,4267,600,8487,8264,7858,5499,3932,722,5810,1769,1550,3004,9264,5544,1952,9774,2888,179],(function(){return n=79274,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6308],{65956:function(n,e,t){"use strict";var i=t(38626),o=t(55485),r=t(38276),c=t(30160),a=t(44897),l=t(42631),d=t(47041),u=t(70515),s=t(28598),h=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*u.iI,1.5*u.iI,1.5*u.iI),f=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(n){return n.fullWidth&&"\n width: 100%;\n "}),(function(n){return!n.borderless&&"\n border: 1px solid ".concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).successLight,";\n ")}),(function(n){return n.success&&!n.borderless&&"\n border: 1px solid ".concat((n.theme.background||a.Z.background).success,";\n ")}),(function(n){return!n.dark&&!n.success&&"\n background-color: ".concat((n.theme.background||a.Z.background).panel,";\n ")}),(function(n){return n.dark&&"\n background-color: ".concat((n.theme.background||a.Z.background).content,";\n ")}),(function(n){return!n.fullHeight&&"\n height: fit-content;\n "}),(function(n){return n.maxHeight&&"\n max-height: ".concat(n.maxHeight,";\n ")}),(function(n){return n.maxWidth&&"\n max-width: ".concat(n.maxWidth,"px;\n ")}),(function(n){return n.minWidth&&"\n min-width: ".concat(n.minWidth,"px;\n\n @media (max-width: ").concat(n.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(n){return n.borderless&&"\n border: none;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),p=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(n){return"\n background-color: ".concat((n.theme.background||a.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((n.theme.interactive||a.Z.interactive).defaultBorder,";\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),h,(function(n){return n.headerPaddingVertical&&"\n padding-bottom: ".concat(n.headerPaddingVertical,"px;\n padding-top: ").concat(n.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*u.iI,d.w5,(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return n.maxHeight&&"\n max-height: calc(".concat(n.maxHeight," - ").concat(15*u.iI,"px);\n ")}),(function(n){return n.noPadding&&"\n padding: 0;\n "}),(function(n){return n.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*u.iI);e.Z=function(n){var e=n.borderless,t=n.children,i=n.containerRef,a=n.contentContainerRef,l=n.dark,d=n.footer,u=n.fullHeight,h=void 0===u||u,x=n.fullWidth,b=void 0===x||x,y=n.header,w=n.headerHeight,v=n.headerIcon,_=n.headerPaddingVertical,j=n.headerTitle,I=n.maxHeight,Z=n.maxWidth,N=n.minWidth,H=n.noPadding,P=n.overflowVisible,S=n.subtitle,k=n.success;return(0,s.jsxs)(f,{borderless:e,dark:l,fullHeight:h,fullWidth:b,maxHeight:I,maxWidth:Z,minWidth:N,overflowVisible:P,ref:i,success:k,children:[(y||j)&&(0,s.jsxs)(p,{headerPaddingVertical:_,height:w,children:[y&&y,j&&(0,s.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(o.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(r.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,s.jsxs)(m,{maxHeight:I,noPadding:H,overflowVisible:P,ref:a,children:[S&&(0,s.jsx)(r.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:S})}),t]}),d&&(0,s.jsx)(g,{children:d})]})}},85854:function(n,e,t){"use strict";var i,o,r,c,a,l,d,u,s=t(82394),h=t(26304),f=t(26653),p=t(38626),m=t(33591),g=t(44897),x=t(95363),b=t(61896),y=t(30160),w=t(70515),v=t(38276),_=t(28598),j=["children","condensed","inline","level","marketing","spacingBelow"];function I(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,i)}return t}function Z(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?I(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):I(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var N=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],y.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||g.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(x.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(x.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(x.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(x.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(x.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "})),H=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||g.Z.content).active,";\n ")})),P=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],N,m.media.md(i||(i=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.lg(o||(o=(0,f.Z)(["\n ","\n "])),b.aQ),m.media.xl(r||(r=(0,f.Z)(["\n ","\n "])),b.aQ)),S=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],N,b.MJ),k=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],N,m.media.xs(c||(c=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.sm(a||(a=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.md(l||(l=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.lg(d||(d=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI),m.media.xl(u||(u=(0,f.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*w.iI,7*w.iI)),C=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],N,b.BL),z=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],N),O=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],N),W=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],N),V=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],N,(function(n){return 1===n.level&&"\n ".concat(b.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(b.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),B=function(n){var e,t=n.children,i=n.condensed,o=n.inline,r=n.level,c=n.marketing,a=n.spacingBelow,l=(0,h.Z)(n,j);o?e=V:0===Number(r)?e=P:1===Number(r)?e=c?k:S:2===Number(r)?e=C:3===Number(r)?e=z:4===Number(r)?e=O:5===Number(r)&&(e=W);var d=(0,_.jsxs)(e,Z(Z({},l),{},{level:r,children:[a&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!a&&t]}));return o?d:(0,_.jsx)(H,{children:d})};B.defaultProps={level:3,weightStyle:6},e.Z=B},86627:function(n,e,t){"use strict";t.r(e);var i=t(77837),o=t(38860),r=t.n(o),c=t(65956),a=t(93808),l=t(28274),d=t(38276),u=t(36043),s=t(35686),h=t(70515),f=t(24755),p=t(50178),m=t(28598);function g(){var n=((0,p.PR)()||{}).id,e=s.ZP.users.detail(n),t=e.data,i=e.mutate,o=null===t||void 0===t?void 0:t.user;return(0,m.jsx)(l.Z,{uuidItemSelected:f.DQ,uuidWorkspaceSelected:f.tC,children:(0,m.jsx)(d.Z,{p:h.cd,children:(0,m.jsx)(c.Z,{children:(0,m.jsx)(u.Z,{disabledFields:["roles"],onSaveSuccess:i,user:o})})})})}g.getInitialProps=(0,i.Z)(r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,a.Z)(g)},10736:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account/profile",function(){return t(86627)}])}},function(n){n.O(0,[2678,1154,844,4267,600,8487,8264,3684,6043,9774,2888,179],(function(){return e=10736,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3853],{55729:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var i=t(82394),r=t(75582),o=t(82684),c=t(69864),l=t(71180),a=t(15338),u=t(97618),d=t(55485),s=t(85854),f=t(48670),h=t(65956),p=t(82359),m=t(38276),g=t(30160),b=t(17488),x=t(69650),j=t(12468),y=t(35686),v=t(38626),Z=t(44897),w=t(42631),O=t(70515),P=v.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1b0w59t-0"})(["border-radius:","px;padding:","px;",""],w.n_,O.cd*O.iI,(function(e){return"\n background-color: ".concat((e.theme.background||Z.Z.background).codeArea,";\n ")})),_=t(72473),k=t(72191),I=t(81728),C=t(72619),H=t(70320),N=t(23780),S=t(28598);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var E=function(e){var n=e.cancelButtonText,t=e.contained,v=e.header,Z=e.onCancel,w=e.onSaveSuccess,z=(0,N.VI)(null,{},[],{uuid:"settings/workspace/preferences"}),E=(0,r.Z)(z,1)[0],L=(0,o.useState)(null),W=L[0],V=L[1],M=(0,o.useState)(!1),A=M[0],B=M[1],F=y.ZP.projects.list(),T=F.data,R=F.mutate,U=(0,o.useMemo)((function(){var e;return null===T||void 0===T||null===(e=T.projects)||void 0===e?void 0:e[0]}),[T]),X=U||{},Q=X.name,Y=X.openai_api_key,q=X.project_uuid,J=(0,o.useMemo)((function(){return"demo.mage.ai"===window.location.hostname}),[]);(0,o.useEffect)((function(){W||V(U)}),[U,W]);var G=(0,c.Db)(y.ZP.projects.useUpdate(Q),{onSuccess:function(e){return(0,C.wD)(e,{callback:function(e){var n,t=e.project;R(),V(t),B(!1),(0,H.h)(null===t||void 0===t||null===(n=t.features)||void 0===n?void 0:n[p.d.LOCAL_TIMEZONE]),w&&(null===w||void 0===w||w(t))},onErrorCallback:function(e,n){return E({errors:n,response:e})}})}}),K=(0,r.Z)(G,2),$=K[0],ee=K[1].isLoading,ne=(0,o.useCallback)((function(e){return $({project:e})}),[$]),te=(0,S.jsxs)(S.Fragment,{children:[v,(0,S.jsxs)(h.Z,{noPadding:!0,children:[(0,S.jsxs)(m.Z,{p:O.cd,children:[(0,S.jsx)(m.Z,{mb:1,children:(0,S.jsx)(s.Z,{level:5,children:"Project name"})}),(0,S.jsx)(g.ZP,{default:!0,monospace:!0,children:Q})]}),(0,S.jsx)(a.Z,{light:!0}),(0,S.jsxs)(m.Z,{p:O.cd,children:[(0,S.jsx)(m.Z,{mb:1,children:(0,S.jsx)(s.Z,{level:5,children:"Project UUID"})}),(0,S.jsx)(g.ZP,{default:!!q,monospace:!0,muted:!q,children:q||"Not required"})]}),(0,S.jsx)(a.Z,{light:!0}),(0,S.jsx)(m.Z,{p:O.cd,children:(0,S.jsxs)(d.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,S.jsxs)(u.Z,{flexDirection:"column",children:[(0,S.jsx)(m.Z,{mb:1,children:(0,S.jsx)(s.Z,{level:5,children:"Help improve Mage"})}),(0,S.jsxs)(g.ZP,{default:!0,children:["Please contribute usage statistics to help improve the developer experience for you and everyone in the community. Learn more ",(0,S.jsx)(f.Z,{href:"https://docs.mage.ai/contributing/statistics/overview",openNewWindow:!0,children:"here"}),"."]})]}),(0,S.jsx)(m.Z,{mr:O.cd}),(0,S.jsx)(x.Z,{compact:!0,checked:null===W||void 0===W?void 0:W.help_improve_mage,onCheck:function(){return V((function(e){return D(D({},e),{},{help_improve_mage:!(null!==W&&void 0!==W&&W.help_improve_mage)})}))}})]})})]}),(0,S.jsx)(m.Z,{mt:O.HN}),(0,S.jsx)(h.Z,{noPadding:!0,overflowVisible:!0,children:(0,S.jsxs)(m.Z,{p:O.cd,children:[(0,S.jsx)(m.Z,{mb:1,children:(0,S.jsx)(s.Z,{level:5,children:"Features"})}),Object.entries((null===W||void 0===W?void 0:W.features)||{}).map((function(e,n){var t=(0,r.Z)(e,2),o=t[0],c=t[1];return(0,S.jsx)(m.Z,{mt:0===n?0:1,children:(0,S.jsxs)(d.ZP,{alignItems:"center",children:[(0,S.jsx)(x.Z,{checked:!!c,compact:!0,onCheck:function(){return V((function(e){return D(D({},e),{},{features:D(D({},null===W||void 0===W?void 0:W.features),{},(0,i.Z)({},o,!c))})}))}}),(0,S.jsx)(m.Z,{mr:O.cd}),(0,S.jsxs)(u.Z,{children:[(0,S.jsx)(g.ZP,{default:!c,monospace:!0,children:(0,I.vg)(o)}),o===p.d.LOCAL_TIMEZONE&&(0,S.jsx)(m.Z,{ml:1,children:(0,S.jsx)(j.Z,{block:!0,description:"Display dates in local timezone. Please note that certain pages (e.g. Monitor page) or components (e.g. Pipeline run bar charts) may still be in UTC time. Dates in local time will have a timezone offset in the timestamp (e.g. -07:00).",lightBackground:!0,muted:!0,size:k._k})})]})]})},o)}))]})}),(0,S.jsx)(m.Z,{mt:O.HN}),(0,S.jsx)(h.Z,{noPadding:!0,children:(0,S.jsxs)(m.Z,{p:O.cd,children:[(0,S.jsx)(m.Z,{mb:1,children:(0,S.jsx)(s.Z,{level:5,children:"OpenAI"})}),Y&&!A?(0,S.jsxs)(d.ZP,D(D({},d.A0),{},{children:[(0,S.jsx)(g.ZP,{default:!0,monospace:!0,children:"API key: ********"}),(0,S.jsx)(l.ZP,{iconOnly:!0,onClick:function(){return B(!0)},secondary:!0,title:"Edit",children:(0,S.jsx)(_.I8,{size:k.bL})})]})):(0,S.jsx)(b.Z,{disabled:J,label:J?"Entering API key is disabled on demo":"API key",monospace:!0,onChange:function(e){return V((function(n){return D(D({},n),{},{openai_api_key:e.target.value})}))},primary:!0,setContentOnMount:!0,value:(null===W||void 0===W?void 0:W.openai_api_key)||""})]})}),(0,S.jsx)(m.Z,{mt:O.HN}),(0,S.jsxs)(d.ZP,{alignItems:"center",children:[(0,S.jsx)(l.ZP,{loading:ee,onClick:function(){ne({features:null===W||void 0===W?void 0:W.features,help_improve_mage:null===W||void 0===W?void 0:W.help_improve_mage,openai_api_key:null===W||void 0===W?void 0:W.openai_api_key})},primary:!0,children:"Save project settings"}),Z&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(m.Z,{mr:O.cd}),(0,S.jsx)(l.ZP,{onClick:Z,secondary:!0,children:n||"Cancel"})]})]})]});return t?(0,S.jsx)(P,{children:te}):te}},70320:function(e,n,t){"use strict";t.d(n,{h:function(){return c},q:function(){return o}});var i=t(78419),r=t(53808);function o(){return(0,r.U2)(i.am,null)||!1}function c(e){return"undefined"!==typeof e&&(0,r.t8)(i.am,e),e}},46568:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];function a(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 u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,a=e.style,d=void 0===a?{}:a,s=(0,r.Z)(e,l),f=u({},d);return i&&(f.paddingLeft=i,f.paddingRight=f.paddingLeft),t&&(f.height="100%"),(0,c.jsx)(o.Col,u(u({},s),{},{style:f,children:n}))}},82682:function(e,n,t){"use strict";var i=t(82394),r=t(26304),o=t(82684),c=t(33591),l=t(28598),a=["children","fullHeight","gutter","justifyContent","style"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,i=e.gutter,u=e.justifyContent,s=e.style,f=void 0===s?{}:s,h=(0,r.Z)(e,a),p=d({},f);return i&&(p.marginLeft=-1*i,p.marginRight=p.marginLeft),t&&(p.height="100%"),(0,l.jsx)(c.Row,d(d({},h),{},{justifyContent:u,style:p,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:i,key:n})}))}))}},65956:function(e,n,t){"use strict";var i=t(38626),r=t(55485),o=t(38276),c=t(30160),l=t(44897),a=t(42631),u=t(47041),d=t(70515),s=t(28598),f=(0,i.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),h=i.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],a.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||l.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||l.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||l.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),p=i.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],a.n_,a.n_,(function(e){return"\n background-color: ".concat((e.theme.background||l.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||l.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),m=i.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),g=i.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],a.M8,a.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,i=e.containerRef,l=e.contentContainerRef,a=e.dark,u=e.footer,d=e.fullHeight,f=void 0===d||d,b=e.fullWidth,x=void 0===b||b,j=e.header,y=e.headerHeight,v=e.headerIcon,Z=e.headerPaddingVertical,w=e.headerTitle,O=e.maxHeight,P=e.maxWidth,_=e.minWidth,k=e.noPadding,I=e.overflowVisible,C=e.subtitle,H=e.success;return(0,s.jsxs)(h,{borderless:n,dark:a,fullHeight:f,fullWidth:x,maxHeight:O,maxWidth:P,minWidth:_,overflowVisible:I,ref:i,success:H,children:[(j||w)&&(0,s.jsxs)(p,{headerPaddingVertical:Z,height:y,children:[j&&j,w&&(0,s.jsx)(r.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,s.jsxs)(r.ZP,{alignItems:"center",children:[v&&v,(0,s.jsx)(o.Z,{ml:v?1:0,children:(0,s.jsx)(c.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,s.jsxs)(m,{maxHeight:O,noPadding:k,overflowVisible:I,ref:l,children:[C&&(0,s.jsx)(o.Z,{mb:2,children:(0,s.jsx)(c.ZP,{default:!0,children:C})}),t]}),u&&(0,s.jsx)(g,{children:u})]})}},85854:function(e,n,t){"use strict";var i,r,o,c,l,a,u,d,s=t(82394),f=t(26304),h=t(26653),p=t(38626),m=t(33591),g=t(44897),b=t(95363),x=t(61896),j=t(30160),y=t(70515),v=t(38276),Z=t(28598),w=["children","condensed","inline","level","marketing","spacingBelow"];function O(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 P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?O(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):O(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,p.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||g.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=p.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||g.Z.content).active,";\n ")})),I=p.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,m.media.md(i||(i=(0,h.Z)(["\n ","\n "])),x.aQ),m.media.lg(r||(r=(0,h.Z)(["\n ","\n "])),x.aQ),m.media.xl(o||(o=(0,h.Z)(["\n ","\n "])),x.aQ)),C=p.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,x.MJ),H=p.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,m.media.xs(c||(c=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.sm(l||(l=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.md(a||(a=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.lg(u||(u=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI),m.media.xl(d||(d=(0,h.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*y.iI,7*y.iI)),N=p.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,x.BL),S=p.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),z=p.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),D=p.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),E=p.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(x.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(x.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),L=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,a=(0,f.Z)(e,w);r?n=E:0===Number(o)?n=I:1===Number(o)?n=c?H:C:2===Number(o)?n=N:3===Number(o)?n=S:4===Number(o)?n=z:5===Number(o)&&(n=D);var u=(0,Z.jsxs)(n,P(P({},a),{},{level:o,children:[l&&(0,Z.jsx)(v.Z,{mb:i?2:3,children:t}),!l&&t]}));return r?u:(0,Z.jsx)(k,{children:u})};L.defaultProps={level:3,weightStyle:6},n.Z=L},72191:function(e,n,t){"use strict";t.d(n,{_k:function(){return o},bL:function(){return r},l2:function(){return c},nz:function(){return l}});var i=t(70515),r=(i.iI,2*i.iI),o=2.5*i.iI,c=3*i.iI,l=3.5*i.iI},61316:function(e,n,t){"use strict";t.r(n);var i=t(77837),r=t(38860),o=t.n(r),c=t(46568),l=t(55729),a=t(93808),u=t(82682),d=t(28274),s=t(38276),f=t(70515),h=t(24755),p=t(28598);function m(){return(0,p.jsx)(d.Z,{uuidItemSelected:h.HY,uuidWorkspaceSelected:h.WH,children:(0,p.jsx)(s.Z,{p:f.cd,children:(0,p.jsx)(u.Z,{justifyContent:"center",children:(0,p.jsx)(c.Z,{xl:8,xxl:6,children:(0,p.jsx)(l.Z,{})})})})})}m.getInitialProps=(0,i.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,a.Z)(m)},33323:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/preferences",function(){return t(61316)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,3684,9774,2888,179],(function(){return n=33323,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2403],{85854:function(e,n,t){"use strict";var i,r,o,l,s,c,a,u,d=t(82394),h=t(26304),p=t(26653),m=t(38626),f=t(33591),y=t(44897),b=t(95363),g=t(61896),j=t(30160),x=t(70515),v=t(38276),_=t(28598),Z=["children","condensed","inline","level","marketing","spacingBelow"];function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,d.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var S=(0,m.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||y.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(b.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(b.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(b.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(b.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(b.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),k=m.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||y.Z.content).active,";\n ")})),P=m.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],S,f.media.md(i||(i=(0,p.Z)(["\n ","\n "])),g.aQ),f.media.lg(r||(r=(0,p.Z)(["\n ","\n "])),g.aQ),f.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),g.aQ)),C=m.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],S,g.MJ),I=m.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],S,f.media.xs(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.sm(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.md(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.lg(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI),f.media.xl(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*x.iI,7*x.iI)),N=m.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],S,g.BL),H=m.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],S),T=m.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],S),M=m.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],S),z=m.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],S,(function(e){return 1===e.level&&"\n ".concat(g.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(g.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),q=function(e){var n,t=e.children,i=e.condensed,r=e.inline,o=e.level,l=e.marketing,s=e.spacingBelow,c=(0,h.Z)(e,Z);r?n=z:0===Number(o)?n=P:1===Number(o)?n=l?I:C:2===Number(o)?n=N:3===Number(o)?n=H:4===Number(o)?n=T:5===Number(o)&&(n=M);var a=(0,_.jsxs)(n,O(O({},c),{},{level:o,children:[s&&(0,_.jsx)(v.Z,{mb:i?2:3,children:t}),!s&&t]}));return r?a:(0,_.jsx)(k,{children:a})};q.defaultProps={level:3,weightStyle:6},n.Z=q},60480:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return E}});var i,r=t(77837),o=t(82394),l=t(75582),s=t(38860),c=t.n(s),a=t(82684),u=t(12691),d=t.n(u),h=t(21764),p=t(69864),m=t(71180),f=t(70652),y=t(50724),b=t(82555),g=t(55485),j=t(85854),x=t(48670),v=t(93808),_=t(44085),Z=t(28274),w=t(38276);!function(e){e.SSH="ssh",e.HTTPS="https"}(i||(i={}));var O=[{autoComplete:"remote_repo_link",label:"Remote repo url",required:!0,uuid:"remote_repo_link"},{autoComplete:"repo_path",label:"Local directory path",labelDescription:"Defaults to Python's os.getcwd() if omitted. Mage will create this local directory if it doesn't already exist.",uuid:"repo_path"}],S=[{autoComplete:"username",label:"Username",uuid:"username"},{autoComplete:"email",label:"Email",uuid:"email"},{autoComplete:"ssh_public_key",label:"SSH public key in base64",type:"password",uuid:"ssh_public_key"},{autoComplete:"ssh_private_key",label:"SSH private key in base64",type:"password",uuid:"ssh_private_key"}],k=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",label:"Email",required:!0,uuid:"email"},{autoComplete:"access_token",label:"Access token",labelDescription:"Add your Git access token to authenticate with your provided username. The access token will be stored as a Mage secret.",required:!0,type:"password",uuid:"access_token"}],P=[{autoComplete:"branch",label:"Branch name",required:!0,uuid:"branch"}],C=t(30160),I=t(17488),N=t(35686),H=t(70515),T=t(24755),M=t(72619),z=t(28598);function q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function D(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?q(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function A(){var e=N.ZP.syncs.list().data,n=(0,a.useState)(null),t=n[0],r=n[1],s=(0,a.useState)(null),c=s[0],u=s[1],v=(0,a.useState)(null),q=v[0],A=v[1],E=(0,a.useState)(null),G=E[0],B=E[1];(0,a.useEffect)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];u(null===t||void 0===t?void 0:t.user_git_settings),r(t),B(!(null===t||void 0===t||!t.branch))}}),[e]);var R=(0,a.useMemo)((function(){if(e){var n,t=null===e||void 0===e||null===(n=e.syncs)||void 0===n?void 0:n[0];return!(null===t||void 0===t||!t.branch)}return!1}),[e]),F=(0,p.Db)(N.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){var n=e.sync;n&&(r(n),window.location.reload(),h.Am.success("Sync saved",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"}))},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),L=(0,l.Z)(F,2),U=L[0],W=L[1].isLoading,X=(0,p.Db)(N.ZP.syncs.useUpdate("git"),{onSuccess:function(e){return(0,M.wD)(e,{callback:function(e){e.sync&&h.Am.success("Success!",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:"data_sync_success"})},onErrorCallback:function(e,n){return A({errors:n,response:e})}})}}),Q=(0,l.Z)(X,2),J=Q[0],Y=Q[1].isLoading,K=(0,a.useMemo)((function(){return(null===t||void 0===t?void 0:t.auth_type)||i.SSH}),[null===t||void 0===t?void 0:t.auth_type]),V=(0,a.useMemo)((function(){return K===i.HTTPS?k:S}),[K]),$=N.ZP.statuses.list().data,ee=(0,a.useMemo)((function(){var e,n;return null===$||void 0===$||null===(e=$.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.require_user_authentication}),[$]),ne=(0,a.useMemo)((function(){var e=r,n=t;return!G&&ee&&(e=u,n=c),(0,z.jsx)("form",{children:V.map((function(t){var i,r,l=t.autoComplete,s=t.disabled,c=t.label,a=t.labelDescription,u=t.required,d=t.type,p=t.uuid;return r="ssh_public_key"===p?(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsxs)(C.ZP,{small:!0,children:["Run ",(0,z.jsx)(x.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n | echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519.pub | base64 | tr -d \\\\n | echo"})," in terminal to get base64 encoded public key and paste the result here. The key will be stored as a Mage secret."]})}):"ssh_private_key"===p?(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsxs)(C.ZP,{small:!0,children:["Follow same steps as the public key, but run ",(0,z.jsx)(x.Z,{onClick:function(){navigator.clipboard.writeText("cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"),h.Am.success("Successfully copied to clipboard.",{position:h.Am.POSITION.BOTTOM_RIGHT,toastId:p})},small:!0,children:"cat ~/.ssh/id_ed25519 | base64 | tr -d \\\\n && echo"})," instead. The key will be stored as a Mage secret."]})}):a&&(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsx)(C.ZP,{small:!0,children:a})}),(0,z.jsxs)(w.Z,{mt:2,children:[r,(0,z.jsx)(I.Z,{autoComplete:l,disabled:s,label:c,onChange:function(n){e((function(e){return D(D({},e),{},(0,o.Z)({},p,n.target.value))}))},primary:!0,required:u,setContentOnMount:!0,type:d,value:(null===(i=n)||void 0===i?void 0:i[p])||""})]},p)}))})}),[V,ee,u,r,G,t,c]);return(0,z.jsx)(Z.Z,{uuidItemSelected:T.fF,uuidWorkspaceSelected:T.WH,children:(0,z.jsxs)(w.Z,{p:H.cd,style:{width:"600px"},children:[(0,z.jsx)(j.Z,{children:"Git repository settings"}),(0,z.jsxs)(C.ZP,{children:["If you are using Github and want to use a more feature rich integration, you can check out the ",(0,z.jsx)(d(),{as:"/version-control",href:"/version-control",children:(0,z.jsx)(x.Z,{inline:!0,children:"version control app"})}),"."]}),(0,z.jsx)(x.Z,{}),(0,z.jsx)(w.Z,{mt:1,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Authentication type"})}),(0,z.jsx)(w.Z,{mt:1,children:(0,z.jsx)(_.Z,{compact:!0,label:"Authentication type",onChange:function(e){var n=e.target.value;r((function(e){return D(D({},e),{},{auth_type:n})}))},value:K,children:Object.entries(i).map((function(e){var n=(0,l.Z)(e,2),t=n[0],i=n[1];return(0,z.jsx)("option",{value:i,children:t},i)}))})}),(0,z.jsx)(w.Z,{mt:H.Mq,children:K===i.SSH&&(0,z.jsxs)(C.ZP,{bold:!0,children:["You will need to ",(0,z.jsx)(x.Z,{href:"https://docs.mage.ai/development/git/generate-an-ssh-token",openNewWindow:!0,children:"set up your SSH key"})," if you have not done so already."]})}),(0,z.jsx)("form",{children:O.map((function(e){var n=e.autoComplete,i=e.disabled,l=e.label,s=e.labelDescription,c=e.required,a=e.type,u=e.uuid;return(0,z.jsxs)(w.Z,{mt:2,children:[s&&(0,z.jsx)(w.Z,{mb:1,children:(0,z.jsx)(C.ZP,{small:!0,children:s})}),(0,z.jsx)(I.Z,{autoComplete:n,disabled:i,label:l,onChange:function(e){r((function(n){return D(D({},n),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:c,setContentOnMount:!0,type:a,value:(null===t||void 0===t?void 0:t[u])||""})]},u)}))}),(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsxs)(g.ZP,{alignItems:"center",children:[(0,z.jsx)(w.Z,{mr:1,children:(0,z.jsx)(f.Z,{checked:!!G,onClick:function(){return B((function(e){var n=!e;return n||r((function(e){return D(D({},e),{},{branch:null,sync_on_pipeline_run:!1,sync_on_start:!1})})),n}))}})}),(0,z.jsxs)(C.ZP,{bold:!0,children:["Use ",(0,z.jsx)(x.Z,{bold:!0,href:"https://docs.mage.ai/production/data-sync/git-sync",openNewWindow:!0,children:"One-way git sync"})," (Click link for more info)"]})]})}),G?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Sync with a specified branch. These settings will be saved at the project level."})}),(0,z.jsx)("form",{children:P.map((function(e){var n=e.autoComplete,i=e.disabled,l=e.label,s=e.required,c=e.type,a=e.uuid;return(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(I.Z,{autoComplete:n,disabled:i,label:l,onChange:function(e){r((function(n){return D(D({},n),{},(0,o.Z)({},a,e.target.value))}))},primary:!0,required:s,setContentOnMount:!0,type:c,value:(null===t||void 0===t?void 0:t[a])||""})},a)}))}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_submodules,label:"Include submodules",onClick:function(){r((function(e){return D(D({},e),{},{sync_submodules:!(null!==t&&void 0!==t&&t.sync_submodules)})}))}})})}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(j.Z,{level:5,children:"Additional sync settings"})}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_on_pipeline_run,label:"Sync before each trigger run",onClick:function(){r((function(e){return D(D({},e),{},{sync_on_pipeline_run:!(null!==t&&void 0!==t&&t.sync_on_pipeline_run)})}))}})})}),(0,z.jsx)(g.ZP,{alignItems:"center",children:(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(f.Z,{checked:null===t||void 0===t?void 0:t.sync_on_start,label:"Sync on server start up",onClick:function(){r((function(e){return D(D({},e),{},{sync_on_start:!(null!==t&&void 0!==t&&t.sync_on_start)})}))}})})}),(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"Configure the Git authentication credentials that will be used to sync with the specified Git repository."})}),ne]}):(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(w.Z,{mt:H.Mq,children:(0,z.jsx)(C.ZP,{bold:!0,children:"These fields are required to help Mage configure your Git settings. These settings will be specific to your user."})}),ne]}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsx)(m.ZP,{loading:W,onClick:function(){return U({sync:D(D({},t),{},{user_git_settings:c})})},primary:!0,children:"Save repository settings"})}),q&&(0,z.jsx)(y.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===A||void 0===A?void 0:A(null)},children:(0,z.jsx)(b.Z,D(D({},q),{},{onClose:function(){return null===A||void 0===A?void 0:A(null)}}))}),R&&(0,z.jsxs)(w.Z,{mt:H.HN,children:[(0,z.jsx)(j.Z,{children:"Synchronize code from remote repository"}),(0,z.jsxs)(w.Z,{mt:1,children:[(0,z.jsxs)(C.ZP,{children:["Running the sync from this page will run a one time sync with the remote repository.",(0,z.jsx)("br",{}),"This may ",(0,z.jsx)(C.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," your existing data, so make sure you\u2019ve committed or backed up your current changes."]}),(0,z.jsx)(w.Z,{mt:2}),(0,z.jsxs)(C.ZP,{children:["Reset will tell Mage to try to clone your repository from remote. This will also ",(0,z.jsx)(C.ZP,{bold:!0,danger:!0,inline:!0,children:"overwrite"})," all your local changes and reset any settings you may have configured for your local Git repo. This may be helpful if you are having issues syncing your repository."]})]}),(0,z.jsx)(w.Z,{mt:2,children:(0,z.jsxs)(g.ZP,{children:[(0,z.jsx)(m.ZP,{loading:Y,onClick:function(){return J({sync:{action_type:"sync_data"}})},warning:!0,children:"Synchronize code"}),(0,z.jsx)(w.Z,{ml:2}),(0,z.jsx)(m.ZP,{danger:!0,loading:Y,onClick:function(){return J({sync:{action_type:"reset"}})},children:"Reset repository"})]})})]})]})})}A.getInitialProps=(0,r.Z)(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var E=(0,v.Z)(A)},37056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/workspace/sync-data",function(){return t(60480)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,3684,9774,2888,179],(function(){return n=37056,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1312],{66316:function(e,n,t){"use strict";t.d(n,{Z:function(){return m}});var r=t(82394),i=t(70613),o=t(68487),c=t(33591),l=t(38276),a=t(70515),u=t(28598);var s=function(e){var n=e.children,t=e.width,r=void 0===t?12:t;return(0,u.jsx)(l.Z,{px:a.zC,children:(0,u.jsx)(c.Row,{children:(0,u.jsx)(c.Col,{lg:r,md:Math.min(12,Math.round(1.5*(12-r))),sm:Math.min(12,Math.round(1.75*(12-r))),xs:12,children:n})})})},f=t(38626),d=t(46684),p=f.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-jcgu5l-0"})(["padding-top:","px;",""],d.Mz,(function(e){return e.fullHeight&&"\n height: calc(100vh);\n "}));function h(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function g(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?h(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):h(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var m=function(e){var n=e.children,t=e.headerProps,r=e.title;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(i.Z,{title:r}),(0,u.jsx)(o.Z,g({},t)),(0,u.jsx)(s,{children:(0,u.jsx)(p,{fullHeight:!0,children:n})})]})}},46568:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),l=["children","fullHeight","gutter","style"];function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,a=e.style,s=void 0===a?{}:a,f=(0,i.Z)(e,l),d=u({},s);return r&&(d.paddingLeft=r,d.paddingRight=d.paddingLeft),t&&(d.height="100%"),(0,c.jsx)(o.Col,u(u({},f),{},{style:d,children:n}))}},82682:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),l=t(28598),a=["children","fullHeight","gutter","justifyContent","style"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,u=e.justifyContent,f=e.style,d=void 0===f?{}:f,p=(0,i.Z)(e,a),h=s({},d);return r&&(h.marginLeft=-1*r,h.marginRight=h.marginLeft),t&&(h.height="100%"),(0,l.jsx)(c.Row,s(s({},p),{},{justifyContent:u,style:h,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},26314:function(e,n,t){"use strict";var r;t.d(n,{h:function(){return r}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(r||(r={}))},85854:function(e,n,t){"use strict";var r,i,o,c,l,a,u,s,f=t(82394),d=t(26304),p=t(26653),h=t(38626),g=t(33591),m=t(44897),y=t(95363),b=t(61896),j=t(30160),O=t(70515),w=t(38276),x=t(28598),v=["children","condensed","inline","level","marketing","spacingBelow"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function P(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=(0,h.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," ",""],j.IH,(function(e){return e.color&&"\n color: ".concat(e.color,"\n ")}),(function(e){return e.yellow&&"\n color: ".concat((e.theme.accent||m.Z.accent).yellow,";\n ")}),(function(e){return e.center&&"\n text-align: center;\n "}),(function(e){return!e.monospace&&0===Number(e.weightStyle)&&"\n font-family: ".concat(y.iI,";\n ")}),(function(e){return!e.monospace&&1===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&2===Number(e.weightStyle)&&"\n font-family: ".concat(y.LX,";\n ")}),(function(e){return!e.monospace&&3===Number(e.weightStyle)&&"\n font-family: ".concat(y.ry,";\n ")}),(function(e){return!e.monospace&&4===Number(e.weightStyle)&&"\n font-family: ".concat(y.YC,";\n ")}),(function(e){return!e.monospace&&5===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&(6===Number(e.weightStyle)||e.bold)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&7===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return!e.monospace&&8===Number(e.weightStyle)&&"\n font-family: ".concat(y.nF,";\n ")}),(function(e){return e.lineHeightAuto&&"\n line-height: normal !important;\n "})),C=h.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(e){return"\n color: ".concat((e.theme.content||m.Z.content).active,";\n ")})),S=h.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],_,g.media.md(r||(r=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.lg(i||(i=(0,p.Z)(["\n ","\n "])),b.aQ),g.media.xl(o||(o=(0,p.Z)(["\n ","\n "])),b.aQ)),k=h.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],_,b.MJ),I=h.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],_,g.media.xs(c||(c=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.sm(l||(l=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.md(a||(a=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.lg(u||(u=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI),g.media.xl(s||(s=(0,p.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*O.iI,7*O.iI)),N=h.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],_,b.BL),z=h.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],_),H=h.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],_),D=h.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],_),E=h.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],_,(function(e){return 1===e.level&&"\n ".concat(b.MJ,"\n ")}),(function(e){return 2===e.level&&"\n ".concat(b.BL,"\n ")}),(function(e){return 3===e.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(e){return 4===e.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),M=function(e){var n,t=e.children,r=e.condensed,i=e.inline,o=e.level,c=e.marketing,l=e.spacingBelow,a=(0,d.Z)(e,v);i?n=E:0===Number(o)?n=S:1===Number(o)?n=c?I:k:2===Number(o)?n=N:3===Number(o)?n=z:4===Number(o)?n=H:5===Number(o)&&(n=D);var u=(0,x.jsxs)(n,P(P({},a),{},{level:o,children:[l&&(0,x.jsx)(w.Z,{mb:r?2:3,children:t}),!l&&t]}));return i?u:(0,x.jsx)(C,{children:u})};M.defaultProps={level:3,weightStyle:6},n.Z=M},32223:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return A}});var r=t(77837),i=t(38860),o=t.n(i),c=t(66316),l=t(82394),a=t(75582),u=t(82684),s=t(69864),f=t(34376),d=t(40761),p=t(55485),h=t(85854),g=t(93369),m=t(38276),y=t(30160),b=t(17488),j=t(35686),O=t(38626),w=t(44897),x=t(42631),v=t(70515),Z=O.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-641xul-0"})(["border-radius:","px;padding-bottom:","px;padding-left:","px;padding-right:","px;padding-top:","px;width:100%;",""],x.TR,21*v.iI,v.Vj,v.Vj,v.Vj,(function(e){return"\n background-color: ".concat((e.theme.background||w.Z.background).panel,";\n ")})),P=O.default.div.withConfig({displayName:"indexstyle__BackgroundImageStyle",componentId:"sc-641xul-1"})(["border-radius:","px;font-size:0;overflow:hidden;",""],x.D7,(function(e){return e.src&&"\n background-image: url(".concat(e.src,");\n background-size: cover;\n background-repeat: no-repeat;\n height: 100%;\n width: 100%;\n ")})),_=t(46568),C=t(82682),S=_.Z,k=C.Z,I=t(39643),N=t(42122),z=t(72619),H=t(42041),D=t(69419),E=t(50178),M=t(72473),R=t(26314),L=t(28598);function T(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function V(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?T(Object(t),!0).forEach((function(n){(0,l.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):T(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var F="email",B="password";var U=function(e){var n=e.title,t=(0,f.useRouter)(),r=(0,u.useState)(null),i=r[0],o=r[1],c=(0,u.useState)({}),O=c[0],w=c[1],x=(0,s.Db)(j.ZP.sessions.useCreate(),{onSuccess:function(e){return(0,z.wD)(e,{callback:function(e){var n=e.session,r=n.token,i=n.user;(0,E.av)(i),d.Z.storeToken(r,(function(){var e="/",n=(0,D.iV)(window.location.href);if(n.redirect_url){var r=(0,D.uM)((0,N.gR)(n,["redirect_url","access_token","provider"]));e="".concat(n.redirect_url,"?").concat(r),window.location.href=e}else t.push(e)}))},onErrorCallback:function(e){var n=e.error;o(n)}})}}),_=(0,a.Z)(x,2),C=_[0],T=_[1].isLoading,U=(0,u.useCallback)((function(e){return d.Z.logout((function(){return C(e)}))}),[C]),X=j.ZP.oauths.detail(R.h.ACTIVE_DIRECTORY,{redirect_uri:encodeURIComponent(window.location.href)}).data,A=(0,u.useMemo)((function(){var e;return null===X||void 0===X||null===(e=X.oauth)||void 0===e?void 0:e.url}),[X]),Q=(0,D.iV)()||{},Y=Q.access_token,G=Q.provider;return(0,u.useEffect)((function(){var e;Y&&G&&C({session:(e={},(0,l.Z)(e,"provider",G),(0,l.Z)(e,"token",Y),e)})}),[Y,C,G]),(0,L.jsxs)(k,{fullHeight:!0,children:[(0,L.jsx)(S,{lg:6,md:12,children:(0,L.jsx)(p.ZP,{flexDirection:"column",fullHeight:!0,fullWidth:!0,justifyContent:"center",children:(0,L.jsx)(m.Z,{px:{xl:5*v.zC,xs:v.zC},py:v.zC,children:(0,L.jsxs)(Z,{children:[(0,L.jsx)(h.Z,{yellow:!0,children:n}),(0,L.jsxs)("form",{children:[(0,L.jsxs)(m.Z,{mt:3,children:[(0,L.jsx)(b.Z,{autoComplete:"username",label:"Email",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return w((function(n){return V(V({},n),{},(0,l.Z)({},F,e.target.value))}))},primary:!i,value:O.email}),(0,L.jsx)(m.Z,{mt:2,children:(0,L.jsx)(b.Z,{autoComplete:"current-password",label:"Password",large:!0,meta:{error:" ",touched:!!i},onChange:function(e){return w((function(n){return V(V({},n),{},(0,l.Z)({},B,e.target.value))}))},primary:!i,type:"password",value:O.password})})]}),i&&(0,L.jsx)(m.Z,{mt:2,children:(0,L.jsx)(y.ZP,{danger:!0,children:i.message})}),(0,L.jsx)(m.Z,{mt:3,children:(0,L.jsx)(g.ZP,{bold:!0,inline:!0,keyTextGroups:[[I.Lz]],keyboardShortcutValidation:function(e){var n=e.keyMapping;return(0,H.y)([I.Uq],n)},large:!0,loading:T,noHoverUnderline:!0,onClick:function(){return U({session:O})},selected:!0,uuid:"SignForm/action",wind:!0,children:"Sign into Mage"})}),A&&(0,L.jsx)(m.Z,{mt:4,children:(0,L.jsx)(g.ZP,{beforeElement:(0,L.jsx)(M.Dg,{size:2*v.iI}),bold:!0,inline:!0,onClick:function(){return d.Z.logout((function(){return t.push(A)}))},uuid:"SignForm/active_directory",children:"Sign in with Microsoft"})})]})]})})})}),(0,L.jsx)(S,{hiddenLgDown:!0,lg:6,style:{flex:1},children:(0,L.jsx)(m.Z,{fullHeight:!0,fullWidth:!0,px:v.zC,py:v.zC+8,children:(0,L.jsx)(P,{src:"".concat(t.basePath,"/images/sessions/abstract.png"),children:"Sign in abstract image"})})})]})};function X(){return(0,L.jsx)(c.Z,{title:"Sign in",children:(0,L.jsx)(U,{title:"\ud83d\udc4b Sign in"})})}X.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var A=X},6821:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/sign-in",function(){return t(32223)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,9774,2888,179],(function(){return n=6821,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4841],{94629:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(82394),o=r(21831),i=r(82684),u=r(50724),s=r(82555),c=r(97618),f=r(70613),d=r(68487),a=r(68899),l=r(28598);function h(e,t){var r=e.children,n=e.noPadding;return(0,l.jsx)(a.HS,{noPadding:n,ref:t,children:r})}var v=i.forwardRef(h),p=r(62547),b=r(82571),O=r(35686),j=r(98464),m=r(46684),w=r(70515),g=r(53808),y=r(19183);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Z(e,t){var r,n=e.addProjectBreadcrumbToCustomBreadcrumbs,h=e.after,_=e.afterHeader,Z=e.afterHidden,x=e.afterWidth,E=e.afterWidthOverride,M=e.appendBreadcrumbs,C=e.before,k=e.beforeWidth,H=e.breadcrumbs,A=e.children,S=e.errors,R=e.headerMenuItems,I=e.headerOffset,N=e.hideAfterCompletely,W=e.mainContainerHeader,B=e.navigationItems,D=e.setAfterHidden,T=e.setErrors,z=e.subheaderChildren,F=e.subheaderNoPadding,U=e.title,X=e.uuid,q=(0,y.i)().width,G="dashboard_after_width_".concat(X),J="dashboard_before_width_".concat(X),K=(0,i.useRef)(null),L=(0,i.useState)(E?x:(0,g.U2)(G,x)),Q=L[0],V=L[1],Y=(0,i.useState)(!1),$=Y[0],ee=Y[1],te=(0,i.useState)(C?Math.max((0,g.U2)(J,k),13*w.iI):null),re=te[0],ne=te[1],oe=(0,i.useState)(!1),ie=oe[0],ue=oe[1],se=(0,i.useState)(null)[1],ce=O.ZP.projects.list({},{revalidateOnFocus:!1}).data,fe=null===ce||void 0===ce?void 0:ce.projects,de={label:function(){var e;return null===fe||void 0===fe||null===(e=fe[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ae=[];H&&(n&&ae.push(de),ae.push.apply(ae,(0,o.Z)(H))),(null===H||void 0===H||!H.length||M)&&(null===fe||void 0===fe?void 0:fe.length)>=1&&(null!==H&&void 0!==H&&H.length||ae.unshift({bold:!M,label:function(){return U}}),ae.unshift(de)),(0,i.useEffect)((function(){null===K||void 0===K||!K.current||$||ie||null===se||void 0===se||se(K.current.getBoundingClientRect().width)}),[$,Q,ie,re,K,se,q]),(0,i.useEffect)((function(){$||(0,g.t8)(G,Q)}),[Z,$,Q,G]),(0,i.useEffect)((function(){ie||(0,g.t8)(J,re)}),[ie,re,J]);var le=(0,j.Z)(x);return(0,i.useEffect)((function(){E&&le!==x&&V(x)}),[E,x,le]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(f.Z,{title:U}),(0,l.jsx)(d.Z,{breadcrumbs:ae,menuItems:R,project:null===fe||void 0===fe?void 0:fe[0],version:null===fe||void 0===fe||null===(r=fe[0])||void 0===r?void 0:r.version}),(0,l.jsxs)(a.Nk,{ref:t,children:[0!==(null===B||void 0===B?void 0:B.length)&&(0,l.jsx)(a.lm,{showMore:!0,children:(0,l.jsx)(b.Z,{navigationItems:B,showMore:!0})}),(0,l.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,l.jsxs)(p.Z,{after:h,afterHeader:_,afterHeightOffset:m.Mz,afterHidden:Z,afterMousedownActive:$,afterWidth:Q,before:C,beforeHeightOffset:m.Mz,beforeMousedownActive:ie,beforeWidth:a.k1+(C?re:0),headerOffset:I,hideAfterCompletely:!D||N,leftOffset:C?a.k1:null,mainContainerHeader:W,mainContainerRef:K,setAfterHidden:D,setAfterMousedownActive:ee,setAfterWidth:V,setBeforeMousedownActive:ue,setBeforeWidth:ne,children:[z&&(0,l.jsx)(v,{noPadding:F,children:z}),A]})})]}),S&&(0,l.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===T||void 0===T?void 0:T(null)},children:(0,l.jsx)(s.Z,P(P({},S),{},{onClose:function(){return null===T||void 0===T?void 0:T(null)}}))})]})}var x=i.forwardRef(Z)},74805:function(e,t,r){"use strict";r.r(t);var n=r(77837),o=r(38860),i=r.n(o),u=(r(82684),r(56085)),s=r(94629),c=r(93808),f=r(28026),d=r(4383),a=r(50178),l=r(28598);function h(){var e=(0,a.PR)()||{},t=(0,u.ZP)((0,d.Ib)("terminal"),{queryParams:{term_name:null===e||void 0===e?void 0:e.id},shouldReconnect:function(){return!0}}),r=t.lastMessage,n=t.sendMessage;return(0,l.jsx)(s.Z,{title:"Terminal",uuid:"terminal/index",children:(0,l.jsx)(f.Z,{lastMessage:r,sendMessage:n})})}h.getInitialProps=(0,n.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,c.Z)(h)},27271:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/terminal",function(){return r(74805)}])},80022:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},99177:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}r.d(t,{Z:function(){return o}})},93189:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(12539),o=r(80022);function i(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,9774,2888,179],(function(){return t=27271,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5378],{55283:function(n,t,e){"use strict";e.d(t,{HC:function(){return C},HS:function(){return y},IN:function(){return p},Kf:function(){return g},Nk:function(){return m},PB:function(){return A},PY:function(){return O},WC:function(){return f},fk:function(){return E},gE:function(){return v},j1:function(){return k},jv:function(){return T},nz:function(){return x},oh:function(){return s},qn:function(){return h},t1:function(){return R},u2:function(){return b},y9:function(){return D}});var o=e(38626),r=e(44897),c=e(44425),i=e(42631),a=e(8059),d=e(70515),u=e(47041),l=e(91437),s=68,p=1.5*d.iI,f=3*d.iI;function b(n){var t=a.eW;return c.tf.CALLBACK===n?t=a.J:c.tf.CHART===n||c.tf.CONDITIONAL===n?t=a.Hv:c.tf.CUSTOM===n?t=a.AK:c.tf.DATA_EXPORTER===n?t=a.Sr:c.tf.DATA_LOADER===n?t=a.R2:c.tf.DBT===n?t=a.J:c.tf.EXTENSION===n?t=a.FI:c.tf.GLOBAL_DATA_PRODUCT===n?t=a.yr:c.tf.SCRATCHPAD===n?t=a.Hv:c.tf.SENSOR===n?t=a.rK:c.tf.MARKDOWN===n?t=a.RK:c.tf.TRANSFORMER===n&&(t=a.eW),t}function h(n,t){var e,o,i=((null===t||void 0===t||null===(e=t.theme)||void 0===e?void 0:e.borders)||r.Z.borders).light,a=((null===t||void 0===t||null===(o=t.theme)||void 0===o?void 0:o.monotone)||r.Z.monotone).grey500,d=t||{},u=d.blockColor,l=d.isSelected,s=d.theme;return l?i=(s||r.Z).content.active:c.tf.TRANSFORMER===n||u===c.Lq.PURPLE?(i=(s||r.Z).accent.purple,a=(s||r.Z).accent.purpleLight):c.tf.DATA_EXPORTER===n||u===c.Lq.YELLOW?(i=(s||r.Z).accent.yellow,a=(s||r.Z).accent.yellowLight):c.tf.DATA_LOADER===n||u===c.Lq.BLUE?(i=(s||r.Z).accent.blue,a=(s||r.Z).accent.blueLight):c.tf.MARKDOWN===n?(i=(s||r.Z).accent.sky,a=(s||r.Z).accent.skyLight):c.tf.SENSOR===n||u===c.Lq.PINK?(i=(s||r.Z).accent.pink,a=(s||r.Z).accent.pinkLight):c.tf.DBT===n?(i=(s||r.Z).accent.dbt,a=(s||r.Z).accent.dbtLight):c.tf.EXTENSION===n||u===c.Lq.TEAL?(i=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).teal,a=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).tealLight):c.tf.CALLBACK===n?(i=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).rose,a=((null===s||void 0===s?void 0:s.accent)||r.Z.accent).roseLight):c.tf.CONDITIONAL===n||c.tf.SCRATCHPAD===n||u===c.Lq.GREY||c.tf.CUSTOM===n&&!u?(i=(s||r.Z).content.default,a=(s||r.Z).accent.contentDefaultTransparent):c.tf.GLOBAL_DATA_PRODUCT!==n||u||(i=(s||r.Z).monotone.white,a=(s||r.Z).monotone.whiteTransparent),{accent:i,accentLight:a}}var g=(0,o.css)([""," "," "," "," "," "," ",""],(0,l.eR)(),(function(n){return!n.selected&&!n.hasError&&"\n border-color: ".concat(h(n.blockType,n).accentLight,";\n ")}),(function(n){return n.selected&&!n.hasError&&"\n border-color: ".concat(h(n.blockType,n).accent,";\n ")}),(function(n){return!n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.accent||r.Z.accent).negativeTransparent,";\n ")}),(function(n){return n.selected&&n.hasError&&"\n border-color: ".concat((n.theme.borders||r.Z.borders).danger,";\n ")}),(function(n){return n.dynamicBlock&&"\n border-style: dashed !important;\n "}),(function(n){return n.dynamicChildBlock&&"\n border-style: dotted !important;\n "})),m=o.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-s5rj34-0"})(["border-radius:","px;position:relative;"],i.n_),O=o.default.div.withConfig({displayName:"indexstyle__HiddenBlockContainerStyle",componentId:"sc-s5rj34-1"})([""," border-radius:","px;border-style:",";border-width:","px;",""],g,i.n_,i.M8,i.mP,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.content,";\n\n &:hover {\n border-color: ").concat(h(n.blockType,n).accent,";\n }\n ")})),A=o.default.div.withConfig({displayName:"indexstyle__HeaderHorizontalBorder",componentId:"sc-s5rj34-2"})(["",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme||r.Z).borders.darkLight,";\n ")})),x=o.default.div.withConfig({displayName:"indexstyle__BlockHeaderStyle",componentId:"sc-s5rj34-3"})([""," border-top-left-radius:","px;border-top-right-radius:","px;border-top-style:",";border-top-width:","px;border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;padding-bottom:","px;padding-top:","px;"," "," "," ",""],g,i.n_,i.n_,i.M8,i.mP,i.M8,i.mP,i.M8,i.mP,1*d.iI,1*d.iI,(function(n){return"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")}),(function(n){return"undefined"!==typeof n.zIndex&&null!==n.zIndex&&"\n z-index: ".concat(6+(n.zIndex||0),";\n ")}),(function(n){return!n.noSticky&&"\n // This is to hide the horizontal scrollbar in the block header when sideBySide is enabled,\n // and the screen width is too small.\n position: sticky;\n top: -5px;\n "}),(function(n){return n.noSticky&&"\n ".concat((0,u.y$)(),"\n\n overflow-x: auto;\n overflow-y: visible;\n ")})),y=o.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-s5rj34-4"})([""," "," ",""],(function(n){return!n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).darkLight,";\n ")}),(function(n){return n.darkBorder&&"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return!n.noBackground&&"\n background-color: ".concat((n.theme||r.Z).background.dashboard,";\n ")})),T=o.default.div.withConfig({displayName:"indexstyle__CodeContainerStyle",componentId:"sc-s5rj34-5"})([""," border-left-style:",";border-left-width:","px;border-right-style:",";border-right-width:","px;position:relative;"," "," "," "," .line-numbers{opacity:0;}&.selected{.line-numbers{opacity:1 !important;}}"],g,i.M8,i.mP,i.M8,i.mP,(function(n){return"\n background-color: ".concat((n.theme.background||r.Z.background).codeTextarea,";\n ")}),(function(n){return!n.noPadding&&"\n padding-bottom: ".concat(d.iI,"px;\n padding-top: ").concat(d.iI,"px;\n ")}),(function(n){return n.lightBackground&&"\n background-color: ".concat((n.theme||r.Z).background.content,";\n ")}),(function(n){return!n.hideBorderBottom&&"\n border-bottom-left-radius: ".concat(i.n_,"px;\n border-bottom-right-radius: ").concat(i.n_,"px;\n border-bottom-style: ").concat(i.M8,";\n border-bottom-width: ").concat(i.mP,"px;\n overflow: hidden;\n ")})),v=o.default.div.withConfig({displayName:"indexstyle__BlockDivider",componentId:"sc-s5rj34-6"})(["align-items:center;display:flex;height:","px;justify-content:center;position:relative;z-index:8;&:hover{"," .block-divider-inner{","}}"," "," "," ",""],2*d.iI,(function(n){return n.additionalZIndex>0&&"\n z-index: ".concat(8+n.additionalZIndex,";\n ")}),(function(n){return"\n background-color: ".concat((n.theme.text||r.Z.text).fileBrowser,";\n ")}),(function(n){return!n.height&&"\n height: ".concat(2*d.iI,"px;\n ")}),(function(n){return n.height&&"\n height: ".concat(n.height,"px;\n ")}),(function(n){return!n.bottom&&"\n bottom: ".concat(.5*d.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.bottom&&"\n bottom: ".concat(n.bottom,"px;\n ")})),R=o.default.div.withConfig({displayName:"indexstyle__BlockDividerInner",componentId:"sc-s5rj34-7"})(["height 1px;width:100%;position:absolute;z-index:-1;"," ",""],(function(n){return!n.top&&"\n top: ".concat(1.5*d.iI,"px;\n ")}),(function(n){return"undefined"!==typeof n.top&&"\n top: ".concat(n.top,"px;\n ")})),D=o.default.div.withConfig({displayName:"indexstyle__CodeHelperStyle",componentId:"sc-s5rj34-8"})([""," ",""],(function(n){return"\n border-bottom: 1px solid ".concat((n.theme.borders||r.Z.borders).medium,";\n padding-left: ").concat(n.normalPadding?d.iI:s,"px;\n ")}),(function(n){return!n.noMargin&&"\n margin-bottom: ".concat(1*d.iI,"px;\n padding-bottom: ").concat(1*d.iI,"px;\n ")})),C=o.default.div.withConfig({displayName:"indexstyle__TimeTrackerStyle",componentId:"sc-s5rj34-9"})(["bottom:","px;left:","px;position:absolute;"],1*d.iI,s),E=o.default.div.withConfig({displayName:"indexstyle__ScrollColunnsContainerStyle",componentId:"sc-s5rj34-10"})(["position:relative;",""],(function(n){return"\n z-index: ".concat((null===n||void 0===n?void 0:n.zIndex)||1,";\n ")})),k=o.default.div.attrs((function(n){var t=n.height,e=n.left,o=n.right,r=n.top;return{style:{position:"fixed",height:t,width:n.width,left:e,right:o,top:r,zIndex:(n.zIndex||0)+2}}})).withConfig({displayName:"indexstyle__ScrollColunnStyle",componentId:"sc-s5rj34-11"})([""])},44425:function(n,t,e){"use strict";e.d(t,{$W:function(){return m},DA:function(){return h},HX:function(){return y},J8:function(){return x},L8:function(){return a},LE:function(){return p},Lk:function(){return R},Lq:function(){return f},M5:function(){return b},Q3:function(){return O},Qj:function(){return T},Ut:function(){return E},V4:function(){return C},VZ:function(){return A},dO:function(){return s},f2:function(){return D},iZ:function(){return v},t6:function(){return d},tf:function(){return l}});var o,r,c,i,a,d,u=e(82394);!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(a||(a={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(d||(d={}));var l,s=(o={},(0,u.Z)(o,d.MARKDOWN,"MD"),(0,u.Z)(o,d.PYTHON,"PY"),(0,u.Z)(o,d.R,"R"),(0,u.Z)(o,d.SQL,"SQL"),(0,u.Z)(o,d.YAML,"YAML"),o),p=(r={},(0,u.Z)(r,d.MARKDOWN,"Markdown"),(0,u.Z)(r,d.PYTHON,"Python"),(0,u.Z)(r,d.R,"R"),(0,u.Z)(r,d.SQL,"SQL"),(0,u.Z)(r,d.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(l||(l={}));var f,b=[l.CALLBACK,l.CONDITIONAL,l.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(f||(f={}));var h,g,m=[l.CHART,l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],O=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN,l.TRANSFORMER],A=[l.DATA_EXPORTER,l.DATA_LOADER],x=[l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],y=[l.DATA_EXPORTER,l.DATA_LOADER,l.DBT,l.TRANSFORMER],T=[l.CHART,l.SCRATCHPAD,l.SENSOR,l.MARKDOWN],v=[l.CALLBACK,l.CHART,l.EXTENSION,l.SCRATCHPAD,l.MARKDOWN],R=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.SENSOR,l.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(h||(h={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(g||(g={}));var D=[l.CUSTOM,l.DATA_EXPORTER,l.DATA_LOADER,l.TRANSFORMER],C=(c={},(0,u.Z)(c,l.CALLBACK,"Callback"),(0,u.Z)(c,l.CHART,"Chart"),(0,u.Z)(c,l.CONDITIONAL,"Conditional"),(0,u.Z)(c,l.CUSTOM,"Custom"),(0,u.Z)(c,l.DATA_EXPORTER,"Data exporter"),(0,u.Z)(c,l.DATA_LOADER,"Data loader"),(0,u.Z)(c,l.DBT,"DBT"),(0,u.Z)(c,l.EXTENSION,"Extension"),(0,u.Z)(c,l.GLOBAL_DATA_PRODUCT,"Global data product"),(0,u.Z)(c,l.MARKDOWN,"Markdown"),(0,u.Z)(c,l.SCRATCHPAD,"Scratchpad"),(0,u.Z)(c,l.SENSOR,"Sensor"),(0,u.Z)(c,l.TRANSFORMER,"Transformer"),c),E=[l.DATA_LOADER,l.TRANSFORMER,l.DATA_EXPORTER,l.SENSOR];i={},(0,u.Z)(i,l.DATA_EXPORTER,"DE"),(0,u.Z)(i,l.DATA_LOADER,"DL"),(0,u.Z)(i,l.SCRATCHPAD,"SP"),(0,u.Z)(i,l.SENSOR,"SR"),(0,u.Z)(i,l.MARKDOWN,"MD"),(0,u.Z)(i,l.TRANSFORMER,"TF")},70652:function(n,t,e){"use strict";var o=e(21831),r=e(82394),c=e(26304),i=(e(82684),e(38626)),a=e(55485),d=e(38276),u=e(30160),l=e(44897),s=e(72473),p=e(42631),f=e(70515),b=e(28598),h=["beforeIcon","checked","disabled","errorMessage","label","labelDescription","large","meta","monospace","onClick","required","small","warning","xsmall"];function g(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function m(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?g(Object(e),!0).forEach((function(t){(0,r.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var O=i.default.div.withConfig({displayName:"Checkbox__CheckboxContainer",componentId:"sc-ujqx42-0"})(["display:inline-block;vertical-align:middle;cursor:pointer;"]),A=i.default.div.withConfig({displayName:"Checkbox__ErrorContainer",componentId:"sc-ujqx42-1"})(["margin-top:4px;"]),x=i.default.input.withConfig({displayName:"Checkbox__HiddenCheckbox",componentId:"sc-ujqx42-2"})(["border:0;clip:rect(0 0 0 0);clippath:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;",""],(function(n){return n.notClickable&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,"\n border-color: ").concat((n.theme.content||l.Z.content).disabled,"\n\n &:hover {\n cursor: not-allowed;\n }\n ")})),y=i.default.div.withConfig({displayName:"Checkbox__StyledCheckbox",componentId:"sc-ujqx42-3"})(["border-radius:","px;height:","px;transition:all 150ms;width:","px;svg{position:relative;visibility:",";}"," "," "," "," input[disabled]{cursor:default;}"," ",""],.5*f.iI,2*f.iI,2*f.iI,(function(n){return n.checked||n.required?"visible":"hidden"}),(function(n){return n.large&&"\n svg {\n left: -4px;\n top: -8px;\n }\n "}),(function(n){return!n.checked&&"\n background-color: ".concat((n.theme.background||l.Z.background).popup,";\n border: ").concat(p.PV,"px ").concat(p.M8," ").concat((n.theme.content||l.Z.content).muted,";\n ")}),(function(n){return n.checked&&"\n background-color: ".concat((n.theme.interactive||l.Z.interactive).checked,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.required&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,";\n border: ").concat(p.YF,"px ").concat(p.M8," transparent;\n ")}),(function(n){return n.disabled&&"\n background-color: ".concat((n.theme.content||l.Z.content).disabled,";\n border-color: ").concat((n.theme.content||l.Z.content).disabled,";\n\n &:hover {\n cursor: not-allowed;\n }\n ")}),(function(n){return n.warning&&"\n background-color: ".concat((n.theme.accent||l.Z.accent).warning,";\n border-color: ").concat((n.theme.interactive||l.Z.interactive).defaultBorder,"\n ")})),T=i.default.label.withConfig({displayName:"Checkbox__LabelStyle",componentId:"sc-ujqx42-4"})(["-ms-flex-direction:column;align-items:center;display:flex;flex-direction:column;flex-direction:row;&:hover{cursor:pointer;}"]);t.Z=function(n){var t=n.beforeIcon,e=n.checked,r=n.disabled,i=n.errorMessage,l=n.label,p=n.labelDescription,g=n.large,v=n.meta,R=n.monospace,D=void 0!==R&&R,C=n.onClick,E=n.required,k=n.small,_=void 0!==k&&k,Z=n.warning,w=n.xsmall,S=void 0!==w&&w,P=(0,c.Z)(n,h),L=Z||!!(i||v&&v.touched&&v.error);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(T,{onClick:function(n){n.preventDefault(),C&&!r&&C(n)},children:[(0,b.jsxs)(O,{children:[(0,b.jsx)(x,m(m({},P),{},{disabled:r?"disabled":void 0,notClickable:r})),(0,b.jsx)(y,{checked:e,disabled:r,large:g,required:E,warning:L,children:(0,b.jsx)(s.Jr,{size:f.iI*(g?3:2)})})]}),t&&(0,b.jsx)(d.Z,{ml:1,children:(0,b.jsx)(a.ZP,{children:t})}),l&&(0,b.jsxs)(d.Z,{pl:1,children:["string"===typeof l&&(0,b.jsx)(u.ZP,{disabled:r,lineThrough:r,monospace:D,small:_,xsmall:S,children:l}),"string"!==typeof l&&l,p&&(0,b.jsx)(u.ZP,{muted:!0,small:!0,children:p})]})]}),(i||v&&v.touched&&v.error)&&(0,b.jsx)(A,{children:(0,b.jsx)(u.ZP,{small:!0,warning:!0,children:i?(0,o.Z)(i):v.error})})]})}},24944:function(n,t,e){"use strict";e.d(t,{HL:function(){return d},lZ:function(){return u},qZ:function(){return a}});var o=e(38626),r=e(44897),c=e(42631),i=e(70515),a=o.default.div.withConfig({displayName:"indexstyle__DividerContainerStyle",componentId:"sc-uiq3r3-0"})([""," ",""],(function(n){return n.short&&"\n width: ".concat(21*i.iI,"px;\n ")}),(function(n){return!n.short&&"\n width: 100%;\n "})),d=o.default.div.withConfig({displayName:"indexstyle__DividerStyle",componentId:"sc-uiq3r3-1"})(["height:1px;"," "," "," "," "," ",""],(function(n){return!(n.light||n.medium)&&"\n background-color: ".concat((n.theme.monotone||r.Z.monotone).grey200,";\n ")}),(function(n){return n.muted&&"\n background-color: ".concat((n.theme.monotone||r.Z.monotone).grey500,";\n ")}),(function(n){return n.light&&"\n background-color: ".concat((n.theme.borders||r.Z.borders).light,";\n ")}),(function(n){return n.medium&&"\n background-color: ".concat((n.theme.borders||r.Z.borders).medium,";\n ")}),(function(n){return n.prominent&&"\n background-color: ".concat((n.theme.monotone||r.Z.monotone).grey300,";\n ")}),(function(n){return n.black&&"\n background-color: ".concat((n.theme.monotone||r.Z.monotone).black,";\n ")})),u=o.default.div.withConfig({displayName:"indexstyle__VerticalDividerStyle",componentId:"sc-uiq3r3-2"})(["width:1px;align-self:stretch;"," ",""],(function(n){return"\n border-left: ".concat(c.YF,"px ").concat(c.M8," ").concat((n.theme||r.Z).interactive.defaultBorder,";\n ")}),(function(n){var t=n.right;return"number"===typeof t&&"\n position: relative;\n right: ".concat(t,"px;\n ")}))},15338:function(n,t,e){"use strict";var o=e(82394),r=e(26304),c=(e(82684),e(38276)),i=e(24944),a=e(28598),d=["short"];function u(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function l(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?u(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}t.Z=function(n){var t=n.short,e=void 0!==t&&t,o=(0,r.Z)(n,d);return(0,a.jsx)(i.qZ,{short:e,children:(0,a.jsx)(c.Z,l(l({},o),{},{children:(0,a.jsx)(i.HL,l({},o))}))})}},35576:function(n,t,e){"use strict";var o=e(82394),r=e(26304),c=e(82684),i=e(38626),a=e(28968),d=e(28598),u=["rows"];function l(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function s(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?l(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):l(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var p=i.default.textarea.withConfig({displayName:"TextArea__TextInputStyle",componentId:"sc-112wx63-0"})(["",""],a.p),f=function(n,t){var e=n.rows,o=void 0===e?3:e,c=(0,r.Z)(n,u);return(0,d.jsx)(a.Z,s(s({},c),{},{input:(0,d.jsx)(p,s({rows:o},c)),ref:t}))};t.Z=c.forwardRef(f)},69650:function(n,t,e){"use strict";var o=e(82394),r=e(26304),c=e(82684),i=e(38626),a=e(28968),d=e(44897),u=e(3314),l=e(28598),s=["checked","disabled","onCheck","pauseEvent"];function p(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function f(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?p(Object(e),!0).forEach((function(t){(0,o.Z)(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}var b=i.default.label.withConfig({displayName:"ToggleSwitch__ToggleSwitchStyle",componentId:"sc-179r5zs-0"})([""," position:relative;display:inline-block;width:","px;min-width:","px;height:","px;",' & input[type="checkbox"]{display:none;}& span{position:absolute;cursor:',";background-color:",";border-radius:13px;",';top:0;right:0;bottom:0;left:0;transition:background-color 0.2s ease;}& span::before{position:absolute;content:"";left:',"px;top:","px;width:","px;height:",'px;background-color:#787A85;border-radius:50%;transition:transform 0.3s ease;}& input[type="checkbox"]:checked + span::before{transform:',";}"," ",""],a.p,46,46,26,(function(n){return n.compact&&"\n width: ".concat(35,"px;\n min-width: ").concat(35,"px;\n height: ").concat(20,"px;\n ")}),(function(n){return n.disabled?"not-allowed":"pointer"}),(function(n){return n.disabled?d.Z.monotone.white:d.Z.monotone.black}),(function(n){return n.disabled&&"border: 1px solid ".concat(d.Z.monotone.grey200)}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"1":"2"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"18":"22"}),(function(n){return n.compact?"translateX(15px)":"translateX(20px)"}),(function(n){return!n.disabled&&!n.monotone&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(d.Z.accent.sky,';\n }\n\n & input[type="checkbox"]:checked + span::before {\n background-color: ').concat(d.Z.monotone.white,";\n }\n ")}),(function(n){return n.purpleBackground&&'\n & input[type="checkbox"]:checked + span {\n background-color: '.concat(d.Z.interactive.purple,";\n }\n ")})),h=function(n,t){var e=n.checked,o=n.disabled,c=n.onCheck,i=n.pauseEvent,d=void 0===i||i,p=(0,r.Z)(n,s);return(0,l.jsx)(a.Z,f(f({},p),{},{disabled:o,input:(0,l.jsxs)(b,f(f({},p),{},{disabled:o,noBackground:!0,noBorder:!0,children:[(0,l.jsx)("input",{checked:e,readOnly:!0,type:"checkbox"}),(0,l.jsx)("span",{onClick:o?null:function(n){d&&(0,u.j)(n),null===c||void 0===c||c((function(n){return!n}))}})]})),noBackground:!0,ref:t}))};t.Z=c.forwardRef(h)},8059:function(n,t,e){"use strict";e.d(t,{eW:function(){return m},Hv:function(){return a},FI:function(){return b},Sr:function(){return d},rK:function(){return f},TD:function(){return u},R2:function(){return l},AK:function(){return s},yr:function(){return g},J:function(){return p},RK:function(){return h}});var o=e(79633),r="#FF144D",c="#DEBB92",i="#2A60FE",a="linear-gradient(90deg, #4F49F1, #A260F5)",d="linear-gradient(90deg, ".concat(c,", ").concat("#CBFE00",")"),u="linear-gradient(90deg, ".concat(r,", #C86DD7)"),l="linear-gradient(90deg, ".concat("#95ECE2",", ").concat(i,")"),s="linear-gradient(90deg, ".concat("#9B6CA7",", ").concat(c,")"),p="linear-gradient(90deg, ".concat("#C72400",", ").concat(c,")"),f="linear-gradient(100.38deg, ".concat(r," 41.11%, #FF9559 86.99%)"),b="linear-gradient(100.38deg, #37A46F 41.11%, #67B2F8 86.99%)",h=("linear-gradient(100.38deg, ".concat("#6B50D7"," 41.11%, #677FFF 86.99%)"),"linear-gradient(100.38deg, ".concat(i," 41.11%, #B880FF 86.99%)")),g="linear-gradient(90deg, ".concat(o.t4," 20.13%, #2AB2FE)"),m="linear-gradient(90deg, ".concat(o.Ck," 0%, ").concat(o.t4," 53.13%, ").concat(o.X_," 100%)")},8025:function(n,t,e){"use strict";e.r(t);var o=e(75582),r=e(69864),c=e(91749),i=e(35686),a=e(72619),d=e(28598);t.default=function(){var n="interactions_testing",t=i.ZP.pipelines.detail(n,{include_block_pipelines:!0,includes_outputs:!0}),e=t.data,u=(t.mutate,i.ZP.pipeline_interactions.detail(n)),l=u.data,s=u.mutate,p=i.ZP.interactions.pipeline_interactions.list(n),f=p.data,b=p.mutate,h=null===e||void 0===e?void 0:e.pipeline,g=null===l||void 0===l?void 0:l.pipeline_interaction,m=null===f||void 0===f?void 0:f.interactions,O=(0,r.Db)(i.ZP.pipeline_interactions.useUpdate(n),{onSuccess:function(n){return(0,a.wD)(n,{callback:function(n){s()}})}}),A=(0,o.Z)(O,2),x=A[0],y=A[1].isLoading,T=(0,r.Db)(i.ZP.interactions.pipeline_interactions.useCreate(n),{onSuccess:function(n){return(0,a.wD)(n,{callback:function(n){b(),s()}})}}),v=(0,o.Z)(T,2),R=v[0],D=v[1].isLoading;return(0,d.jsx)("div",{children:(0,d.jsx)(c.Z,{createInteraction:function(n){return R({interaction:n})},interactions:m,isLoadingCreateInteraction:D,isLoadingUpdatePipelineInteraction:y,pipeline:h,pipelineInteraction:g,updatePipelineInteraction:function(n){return x({pipeline_interaction:n})}})})}},91185:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/test",function(){return e(8025)}])}},function(n){n.O(0,[2678,1154,341,4267,7858,1769,1749,9774,2888,179],(function(){return t=91185,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{94629:function(e,n,r){"use strict";r.d(n,{Z:function(){return C}});var t=r(82394),o=r(21831),i=r(82684),l=r(50724),c=r(82555),s=r(97618),u=r(70613),a=r(68487),d=r(68899),h=r(28598);function f(e,n){var r=e.children,t=e.noPadding;return(0,h.jsx)(d.HS,{noPadding:t,ref:n,children:r})}var m=i.forwardRef(f),v=r(62547),b=r(82571),x=r(35686),g=r(98464),j=r(46684),p=r(70515),Z=r(53808),P=r(19183);function w(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function y(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?w(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function _(e,n){var r,t=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,w=e.afterHeader,_=e.afterHidden,C=e.afterWidth,k=e.afterWidthOverride,S=e.appendBreadcrumbs,I=e.before,O=e.beforeWidth,E=e.breadcrumbs,A=e.children,T=e.errors,N=e.headerMenuItems,M=e.headerOffset,B=e.hideAfterCompletely,D=e.mainContainerHeader,R=e.navigationItems,H=e.setAfterHidden,L=e.setErrors,F=e.subheaderChildren,V=e.subheaderNoPadding,G=e.title,U=e.uuid,W=(0,P.i)().width,q="dashboard_after_width_".concat(U),z="dashboard_before_width_".concat(U),Y=(0,i.useRef)(null),Q=(0,i.useState)(k?C:(0,Z.U2)(q,C)),K=Q[0],X=Q[1],J=(0,i.useState)(!1),$=J[0],ee=J[1],ne=(0,i.useState)(I?Math.max((0,Z.U2)(z,O),13*p.iI):null),re=ne[0],te=ne[1],oe=(0,i.useState)(!1),ie=oe[0],le=oe[1],ce=(0,i.useState)(null)[1],se=x.ZP.projects.list({},{revalidateOnFocus:!1}).data,ue=null===se||void 0===se?void 0:se.projects,ae={label:function(){var e;return null===ue||void 0===ue||null===(e=ue[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];E&&(t&&de.push(ae),de.push.apply(de,(0,o.Z)(E))),(null===E||void 0===E||!E.length||S)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==E&&void 0!==E&&E.length||de.unshift({bold:!S,label:function(){return G}}),de.unshift(ae)),(0,i.useEffect)((function(){null===Y||void 0===Y||!Y.current||$||ie||null===ce||void 0===ce||ce(Y.current.getBoundingClientRect().width)}),[$,K,ie,re,Y,ce,W]),(0,i.useEffect)((function(){$||(0,Z.t8)(q,K)}),[_,$,K,q]),(0,i.useEffect)((function(){ie||(0,Z.t8)(z,re)}),[ie,re,z]);var he=(0,g.Z)(C);return(0,i.useEffect)((function(){k&&he!==C&&X(C)}),[k,C,he]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{title:G}),(0,h.jsx)(a.Z,{breadcrumbs:de,menuItems:N,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(r=ue[0])||void 0===r?void 0:r.version}),(0,h.jsxs)(d.Nk,{ref:n,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,h.jsx)(d.lm,{showMore:!0,children:(0,h.jsx)(b.Z,{navigationItems:R,showMore:!0})}),(0,h.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:f,afterHeader:w,afterHeightOffset:j.Mz,afterHidden:_,afterMousedownActive:$,afterWidth:K,before:I,beforeHeightOffset:j.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(I?re:0),headerOffset:M,hideAfterCompletely:!H||B,leftOffset:I?d.k1:null,mainContainerHeader:D,mainContainerRef:Y,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:X,setBeforeMousedownActive:le,setBeforeWidth:te,children:[F&&(0,h.jsx)(m,{noPadding:V,children:F}),A]})})]}),T&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===L||void 0===L?void 0:L(null)},children:(0,h.jsx)(c.Z,y(y({},T),{},{onClose:function(){return null===L||void 0===L?void 0:L(null)}}))})]})}var C=i.forwardRef(_)},85385:function(e,n,r){"use strict";r.d(n,{Qq:function(){return f},Z7:function(){return m},cH:function(){return o},du:function(){return d},fp:function(){return a},j5:function(){return h},uM:function(){return u}});var t,o,i=r(82394),l=r(82359),c=r(72473),s=r(86735),u="sideview",a=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var d=[o.DATA];function h(e){var n,r,t=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,r=void 0===n?[]:n;return(null===r||void 0===r?void 0:r.length)>=1?"Charts (".concat(r.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:o.SECRETS},{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,r=void 0===n?{}:n,t=0;return Object.values(r).forEach((function(e){var n=e.blocks;t+=(null===n||void 0===n?void 0:n.length)||0})),t>=1?"Power ups (".concat(t,")"):"Power ups"},key:o.EXTENSIONS},{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}];return null!==e&&void 0!==e&&null!==(n=e.project)&&void 0!==n&&null!==(r=n.features)&&void 0!==r&&r[l.d.INTERACTIONS]&&t.push({key:o.INTERACTIONS,label:"Interactions"}),t}function f(e){return(0,s.HK)(h(e),(function(e){return e.key}))}var m=(t={},(0,i.Z)(t,o.ADDON_BLOCKS,c.EJ),(0,i.Z)(t,o.BLOCK_SETTINGS,c.JG),(0,i.Z)(t,o.CALLBACKS,c.AQ),(0,i.Z)(t,o.CHARTS,c.GQ),(0,i.Z)(t,o.DATA,c.iA),(0,i.Z)(t,o.EXTENSIONS,c.Bf),(0,i.Z)(t,o.INTERACTIONS,c.yd),(0,i.Z)(t,o.SECRETS,c.Yo),(0,i.Z)(t,o.SETTINGS,c.Zr),(0,i.Z)(t,o.TERMINAL,c.oI),(0,i.Z)(t,o.TREE,c.mp),(0,i.Z)(t,o.VARIABLES,c.LO),t)},89706:function(e,n,r){"use strict";r.d(n,{JD:function(){return v},Lu:function(){return i},PF:function(){return h},dT:function(){return l},n6:function(){return u},nB:function(){return m},oy:function(){return f},xF:function(){return d}});var t,o,i,l,c=r(82394),s=r(44425);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(i||(i={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(l||(l={}));var u=[i.PY,i.SQL],a=[i.JSON,i.MD,i.PY,i.R,i.SH,i.SQL,i.TXT,i.YAML,i.YML],d=new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),h=(new RegExp(a.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),f="pipelines",m=(t={},(0,c.Z)(t,i.MD,s.t6.MARKDOWN),(0,c.Z)(t,i.JSON,i.JSON),(0,c.Z)(t,i.PY,s.t6.PYTHON),(0,c.Z)(t,i.R,s.t6.R),(0,c.Z)(t,i.SQL,s.t6.SQL),(0,c.Z)(t,i.TXT,"text"),(0,c.Z)(t,i.YAML,s.t6.YAML),(0,c.Z)(t,i.YML,s.t6.YAML),t),v=(o={},(0,c.Z)(o,s.t6.MARKDOWN,i.MD),(0,c.Z)(o,s.t6.PYTHON,i.PY),(0,c.Z)(o,s.t6.R,i.R),(0,c.Z)(o,s.t6.SQL,i.SQL),(0,c.Z)(o,s.t6.YAML,i.YAML),(0,c.Z)(o,"text",i.TXT),o)},26314:function(e,n,r){"use strict";var t;r.d(n,{h:function(){return t}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(t||(t={}))},65956:function(e,n,r){"use strict";var t=r(38626),o=r(55485),i=r(38276),l=r(30160),c=r(44897),s=r(42631),u=r(47041),a=r(70515),d=r(28598),h=(0,t.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*a.iI,1.5*a.iI,1.5*a.iI),f=t.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],s.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),m=t.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],s.n_,s.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),h,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=t.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*a.iI,u.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*a.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=t.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],s.M8,s.YF,1.75*a.iI);n.Z=function(e){var n=e.borderless,r=e.children,t=e.containerRef,c=e.contentContainerRef,s=e.dark,u=e.footer,a=e.fullHeight,h=void 0===a||a,x=e.fullWidth,g=void 0===x||x,j=e.header,p=e.headerHeight,Z=e.headerIcon,P=e.headerPaddingVertical,w=e.headerTitle,y=e.maxHeight,_=e.maxWidth,C=e.minWidth,k=e.noPadding,S=e.overflowVisible,I=e.subtitle,O=e.success;return(0,d.jsxs)(f,{borderless:n,dark:s,fullHeight:h,fullWidth:g,maxHeight:y,maxWidth:_,minWidth:C,overflowVisible:S,ref:t,success:O,children:[(j||w)&&(0,d.jsxs)(m,{headerPaddingVertical:P,height:p,children:[j&&j,w&&(0,d.jsx)(o.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(o.ZP,{alignItems:"center",children:[Z&&Z,(0,d.jsx)(i.Z,{ml:Z?1:0,children:(0,d.jsx)(l.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,d.jsxs)(v,{maxHeight:y,noPadding:k,overflowVisible:S,ref:c,children:[I&&(0,d.jsx)(i.Z,{mb:2,children:(0,d.jsx)(l.ZP,{default:!0,children:I})}),r]}),u&&(0,d.jsx)(b,{children:u})]})}},35185:function(e,n,r){"use strict";var t=r(82394),o=r(91835),i=(r(82684),r(38626)),l=r(44897),c=r(42631),s=r(70515),u=r(28598);function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function d(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?a(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var h=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*s.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),f=i.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,o.Z)({},e);return(0,u.jsx)(h,d(d({},n),{},{children:(0,u.jsx)(f,d({},n))}))}},58024:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Se}});var t=r(77837),o=r(38860),i=r.n(o),l=r(93808),c=r(82394),s=r(75582),u=r(54407),a=r.n(u),d=r(82684),h=r(69864),f=r(71180),m=r(15338),v=r(55485),b=r(85854),x=r(44085),g=r(38276),j=r(4190),p=r(30160),Z=r(35576),P=r(17488),w=r(12468),y=r(35686),_=r(72473),C="clone",k="delete",S="fetch",I="merge",O="pull",E="push",A="rebase",T="git_remote_name",N="git_repository_name",M={uuid:"Branches"},B={uuid:"Files"},D={uuid:"Push"},R={uuid:"Setup"},H=[R,M,B,D],L=r(70515),F=r(81728),V=r(72619),G=r(28598);var U=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.fetchBranches,l=e.remotes,u=e.setActionRemoteName,a=e.showError,C=(0,d.useState)(""),S=C[0],O=C[1],E=(0,d.useState)(null),T=E[0],N=E[1],M=(0,d.useState)(null),D=M[0],H=M[1],U=(0,d.useState)(null),W=U[0],q=U[1],z=(0,d.useState)(""),Y=z[0],Q=z[1],K=(0,d.useMemo)((function(){return null===l||void 0===l?void 0:l.find((function(e){return e.name===n}))}),[n,l]),X=(0,d.useMemo)((function(){return(null===t||void 0===t?void 0:t.concat((null===K||void 0===K?void 0:K.refs)||[]))||[]}),[t,K]),J=(0,h.Db)(y.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){o(),i(),Q("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),$=(0,s.Z)(J,2),ee=$[0],ne=$[1].isLoading,re=(0,h.Db)(y.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){o()},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),te=(0,s.Z)(re,2),oe=te[0],ie=te[1].isLoading,le=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(e){var n=e.git_custom_branch.progress;o(),O(""),N(""),H(n),q("")},onErrorCallback:function(e,n){return a({errors:n,response:e})}})}}),ce=(0,s.Z)(le,2),se=ce[0],ue=ce[1].isLoading;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsxs)(b.Z,{children:["Branches",t?" (".concat(null===t||void 0===t?void 0:t.length,")"):""]}),(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsxs)(v.ZP,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return u(e.target.value)},placeholder:"Choose a remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsx)(w.Z,{fullSize:!0,label:"Choose a different branch to switch branches",widthFitContent:!0,children:(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{muted:!1}),beforeIconSize:2*L.iI,monospace:!0,onChange:function(e){return oe({git_custom_branch:{name:e.target.value}})},value:null===r||void 0===r?void 0:r.name,children:(null===r||void 0===r?void 0:r.name)&&(null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)})))})}),(0,G.jsx)(g.Z,{mr:L.cd}),ie&&(0,G.jsx)(j.Z,{inverted:!0})]})]})]})}),(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsx)(P.Z,{label:"New branch name",monospace:!0,onChange:function(e){var n;return Q(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:Y||""}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.mm,{size:2*L.iI}),disabled:!Y,loading:ne,onClick:function(){ee({git_custom_branch:{name:Y}})},primary:!0,children:"Create new branch"})]})})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(b.Z,{children:"Actions"}),(0,G.jsxs)(g.Z,{mt:L.Mq,children:[(0,G.jsxs)(g.Z,{mb:L.Mq,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,G.jsx)(p.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name})]}),(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return q(e.target.value)},placeholder:"Choose a branch",value:W,children:null===X||void 0===X?void 0:X.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Action"})}),(0,G.jsxs)(x.Z,{onChange:function(e){return N(e.target.value)},placeholder:"Choose action",value:T||"",children:[(0,G.jsx)("option",{value:I,children:(0,F.vg)(I)}),(0,G.jsx)("option",{value:A,children:(0,F.vg)(A)}),(0,G.jsx)("option",{value:k,children:(0,F.vg)(k)})]})]})]}),T&&[I,A].includes(T)&&(0,G.jsxs)(g.Z,{mt:L.cd,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsxs)(p.ZP,{bold:!0,muted:!0,children:["Message for ",T]})}),(0,G.jsx)(Z.Z,{monospace:!0,onChange:function(e){return O(e.target.value)},value:S||""})]}),(0,G.jsxs)(g.Z,{mt:L.cd,children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Bf,{size:2*L.iI}),disabled:!T||!W,loading:ue,onClick:function(){(k!==T||"undefined"!==typeof location&&window.confirm("Are you sure you want to delete branch ".concat(W,"?")))&&se({git_custom_branch:(0,c.Z)({action_type:T,message:S},T,{base_branch:W})})},primary:!0,children:T?(0,F.vg)(T):"Execute action"}),D&&(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsx)(p.ZP,{default:!0,monospace:!0,preWrap:!0,children:D})})]})]})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsxs)(v.ZP,{children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(R.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:R.uuid}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)(f.ZP,{afterIcon:(0,G.jsx)(_.Kw,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",B.uuid]})]})]})]})},W=r(90299),q=r(32013),z=r(98777),Y=r(48670),Q=r(75499);function K(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function X(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?K(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var J={base_branch:null,body:null,compare_branch:null,repository:null,title:null};var $=function(e){var n=e.actionRemoteName,r=e.branch,t=e.branches,o=e.fetchBranch,i=e.loading,l=e.remotes,u=e.repositories,a=e.repositoryName,w=e.setActionRemoteName,C=e.setRepositoryName,k=e.showError,S=(0,d.useState)((null===r||void 0===r?void 0:r.name)||""),I=S[0],O=S[1],A=(0,d.useState)(null),T=A[0],N=A[1],M=(0,d.useState)(null),D=M[0],R=M[1],H=(0,d.useState)(J),U=H[0],W=H[1],K=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,t=n.progress;r?(N(r),R(null)):(o(),N(null),R(t))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),$=(0,s.Z)(K,2),ee=$[0],ne=$[1].isLoading,re=y.ZP.pull_requests.list({repository:a},{},{pauseFetch:!a}),te=re.data,oe=re.mutate,ie=(0,d.useMemo)((function(){return(null===te||void 0===te?void 0:te.pull_requests)||[]}),[te]),le=(0,d.useMemo)((function(){return(0,G.jsx)(Q.Z,{columnFlex:[null,null,null,null],columns:[{uuid:"Title"},{uuid:"Author"},{uuid:"Created"},{uuid:"Last modified"}],onClickRow:function(e){var n,r=null===ie||void 0===ie||null===(n=ie[e])||void 0===n?void 0:n.url;r&&window.open(r,"_blank")},rows:null===ie||void 0===ie?void 0:ie.map((function(e){var n=e.created_at,r=e.last_modified,t=e.title,o=e.url,i=e.user;return[(0,G.jsx)(Y.Z,{default:!0,href:o,monospace:!0,openNewWindow:!0,small:!0,children:t},"title"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:i},"user"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:n},"createdAt"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r||"-"},"lastModified")]})),uuid:"pull-requests"})}),[ie]),ce=y.ZP.git_custom_branches.list({repository:a},{},{pauseFetch:!a}).data,se=(0,d.useMemo)((function(){return(null===ce||void 0===ce?void 0:ce.git_custom_branches)||[]}),[ce]);(0,d.useEffect)((function(){null!==U&&void 0!==U&&U.compare_branch||null===se||void 0===se||!se.find((function(e){return e.name===(null===r||void 0===r?void 0:r.name)}))||W((function(e){return X(X({},e),{},{compare_branch:null===r||void 0===r?void 0:r.name})}))}),[r,se,U]);var ue=(0,h.Db)(y.ZP.pull_requests.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){oe(),W(J)},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),ae=(0,s.Z)(ue,2),de=ae[0],he=ae[1].isLoading;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(b.Z,{children:(0,F.vg)(E)})}),(0,G.jsxs)(g.Z,{mt:L.Mq,children:[(0,G.jsxs)(v.ZP,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Remote"})}),i&&(0,G.jsx)(j.Z,{inverted:!0}),!i&&(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return w(e.target.value)},placeholder:"Choose remote",value:n||"",children:null===l||void 0===l?void 0:l.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Branch"})}),(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return O(e.target.value)},placeholder:"Choose branch",value:I||"",children:[(0,G.jsx)("option",{value:""}),null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsxs)(f.ZP,{beforeIcon:(0,G.jsx)(_.Bf,{size:2*L.iI}),disabled:!n||!I,loading:ne,onClick:function(){R(null),ee({git_custom_branch:(0,c.Z)({action_type:E},E,{branch:I,remote:n})})},primary:!0,children:[(0,F.vg)(E)," ",n," ",n&&I]})}),(D||T)&&(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsx)(p.ZP,{danger:!!T,default:!!D,monospace:!0,preWrap:!0,children:D||T})})]})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(b.Z,{children:"Create pull request"})}),(0,G.jsxs)(g.Z,{mt:L.Mq,children:[i&&(0,G.jsx)(j.Z,{inverted:!0}),!i&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(v.ZP,{children:[(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Repository"})}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.fy,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return C(e.target.value)},placeholder:"Choose repository",value:a||"",children:null===u||void 0===u?void 0:u.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Base branch"})}),a&&!ce&&(0,G.jsx)(j.Z,{inverted:!0}),(!a||ce)&&(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,disabled:!a,monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{base_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===U||void 0===U?void 0:U.base_branch)||"",children:null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)("div",{children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),a&&!ce&&(0,G.jsx)(j.Z,{inverted:!0}),(!a||ce||(null===U||void 0===U?void 0:U.compare_branch))&&(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,disabled:!a,monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{compare_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===U||void 0===U?void 0:U.compare_branch)||"",children:[!(null!==se&&void 0!==se&&se.length)&&(null===U||void 0===U?void 0:U.compare_branch)&&(0,G.jsx)("option",{value:null===U||void 0===U?void 0:U.compare_branch,children:null===U||void 0===U?void 0:U.compare_branch}),null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,G.jsx)(g.Z,{mt:1,children:(0,G.jsx)(P.Z,{label:"Title",monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{title:e.target.value})}))},value:(null===U||void 0===U?void 0:U.title)||""})}),(0,G.jsx)(g.Z,{mt:1,children:(0,G.jsx)(Z.Z,{label:"Description",monospace:!0,onChange:function(e){return W((function(n){return X(X({},n),{},{body:e.target.value})}))},value:(null===U||void 0===U?void 0:U.body)||""})}),(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Bf,{size:2*L.iI}),disabled:!a||!(null!==U&&void 0!==U&&U.title)||!(null!==U&&void 0!==U&&U.base_branch)||!(null!==U&&void 0!==U&&U.compare_branch),loading:he,onClick:function(){de({pull_request:X(X({},U),{},{repository:a})})},primary:!0,children:"Create new pull request"})})]})]}),(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsx)(q.Z,{visibleMapping:{0:!a},children:(0,G.jsxs)(z.Z,{noPaddingContent:!0,title:te?"Pull requests (".concat(null===ie||void 0===ie?void 0:ie.length,")"):"Pull requests",children:[!a&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Please select a repository to view open pull requests."})}),a&&(0,G.jsxs)(G.Fragment,{children:[!te&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(j.Z,{inverted:!0})}),te&&le]})]})})})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(v.ZP,{children:(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(B.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:B.uuid})})]})]})},ee=r(94629),ne=r(10553),re=r(70652),te=r(97618),oe=r(38626),ie=oe.default.div.withConfig({displayName:"indexstyle__SpacingStyle",componentId:"sc-el09vr-0"})(["margin-top:","px;"],.5*L.iI),le=r(42122);function ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function se(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ce(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var ue=function(e){var n=e.branch,r=e.fetchBranch,t=e.modifiedFiles,o=e.setSelectedFilePath,i=e.showError,l=e.stagedFiles,c=e.untrackedFiles,u=(0,d.useRef)(null),a=(0,d.useState)(""),x=a[0],P=a[1],w=(0,d.useState)({}),C=w[0],k=w[1],S=(0,d.useState)({}),I=S[0],O=S[1],E=(0,d.useMemo)((function(){return Object.keys(t).concat(Object.keys(c)).sort()}),[t,c]),A=(0,d.useMemo)((function(){return Object.keys(l||{})}),[l]),T=(0,d.useMemo)((function(){return A.length}),[A]),N=(0,d.useMemo)((function(){return Object.keys(C).length===(null===E||void 0===E?void 0:E.length)}),[C,E]),B=(0,d.useMemo)((function(){return Object.keys(I).length===(null===A||void 0===A?void 0:A.length)}),[I,A]),R=(0,d.useMemo)((function(){return{onErrorCallback:function(e,n){return i({errors:n,response:e})}}}),[i]),H=(0,d.useMemo)((function(){return{onSuccess:function(e){return(0,V.wD)(e,se({callback:function(){r(),k({})}},R))}}}),[r,R]),U=(0,d.useMemo)((function(){return y.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name)}),[n]),W=(0,h.Db)(U,H),K=(0,s.Z)(W,2),X=K[0],J=K[1].isLoading,$=(0,h.Db)(U,H),ee=(0,s.Z)($,2),ne=ee[0],oe=ee[1].isLoading,ce=(0,h.Db)(U,{onSuccess:function(e){return(0,V.wD)(e,se({callback:function(){r(),O({})}},R))}}),ue=(0,s.Z)(ce,2),ae=ue[0],de=ue[1].isLoading,he=(0,d.useCallback)((function(e,n,r,t,o){var i=(null===e||void 0===e?void 0:e.length)>=1;return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Y.Z,{block:!0,noHoverUnderline:!0,onClick:function(){r(o?{}:t)},preventDefault:!0,children:(0,G.jsxs)(v.ZP,{alignItems:"center",flexDirection:"row",children:[(0,G.jsx)(re.Z,{checked:i&&o,disabled:!i}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(p.ZP,{bold:!0,children:i&&o?"Unselect all":"Select all"})]})}),e.map((function(e){return(0,G.jsx)(ie,{children:(0,G.jsx)(Y.Z,{block:!0,noHoverUnderline:!0,onClick:function(){return r((function(n){var r=se({},n);return!(null!==r&&void 0!==r&&r[e])?r[e]=!0:delete r[e],r}))},preventDefault:!0,children:(0,G.jsxs)(v.ZP,{alignItems:"center",flexDirection:"row",children:[(0,G.jsx)(re.Z,{checked:!(null===n||void 0===n||!n[e])}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,children:e})]})})},e)}))]})}),[]),fe=(0,d.useMemo)((function(){return(0,le.Qr)(C)}),[C]),me=y.ZP.git_custom_branches.detail("with_logs",{_format:"with_logs"}),ve=me.data,be=me.mutate,xe=(0,d.useMemo)((function(){var e;return(null===ve||void 0===ve||null===(e=ve.git_custom_branch)||void 0===e?void 0:e.logs)||[]}),[ve]),ge=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){be(),r(),P("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),je=(0,s.Z)(ge,2),pe=je[0],Ze=je[1].isLoading,Pe=(0,d.useMemo)((function(){return(0,G.jsx)(Q.Z,{columnFlex:[1,1,1],columns:[{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:xe.map((function(e){var n=e.author,r=e.date,t=e.message;return[(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===n||void 0===n?void 0:n.name},"author"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:r},"date"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:t},"message")]})),uuid:"git-branch-logs"})}),[xe]);return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsxs)(v.ZP,{children:[(0,G.jsxs)(te.Z,{flex:1,flexDirection:"column",children:[(0,G.jsxs)(b.Z,{children:["Not staged ",(null===E||void 0===E?void 0:E.length)>=1&&"(".concat(null===E||void 0===E?void 0:E.length,")")]}),(0,G.jsx)(g.Z,{my:L.cd,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(g.Z,{mb:L.cd,children:(0,G.jsxs)(v.ZP,{flexDirection:"row",children:[(0,G.jsx)(f.ZP,{compact:!0,disabled:fe||de||oe,loading:J,onClick:function(){X({git_custom_branch:{action_type:"add",files:Object.keys(C)}}).then((function(e){var n,r=e.data;null!==r&&void 0!==r&&r.git_custom_branch&&(null===u||void 0===u||null===(n=u.current)||void 0===n||n.focus())}))},primary:!0,children:"Add files"}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(f.ZP,{compact:!0,disabled:fe||J||de,loading:oe,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to undo all changes in the selected files?")&&ne({git_custom_branch:{action_type:"checkout",files:Object.keys(C)}})},children:"Checkout files"})]})}),he(E,C,k,se(se({},t),c),N)]}),(0,G.jsx)(g.Z,{mr:L.cd}),(0,G.jsxs)(te.Z,{flex:1,flexDirection:"column",children:[(0,G.jsxs)(b.Z,{children:["Staged files ",(null===A||void 0===A?void 0:A.length)>=1&&"(".concat(null===A||void 0===A?void 0:A.length,")")]}),(0,G.jsx)(g.Z,{my:L.cd,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(g.Z,{mb:L.cd,children:(0,G.jsx)(v.ZP,{flexDirection:"row",children:(0,G.jsx)(f.ZP,{compact:!0,disabled:(0,le.Qr)(I)||J||oe,loading:de,onClick:function(){ae({git_custom_branch:{action_type:"reset",files:Object.keys(I)}})},secondary:!0,children:"Reset files"})})}),he(A,I,O,l,B)]})]})}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(b.Z,{children:"Commit"})}),(0,G.jsx)(g.Z,{mb:L.cd,children:(0,G.jsx)(q.Z,{children:(0,G.jsx)(z.Z,{noPaddingContent:!0,title:T>=1?"Staged files (".concat(T,")"):"No staged files",children:null===A||void 0===A?void 0:A.map((function(e){return(0,G.jsx)(g.Z,{my:1,px:L.cd,children:(0,G.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,G.jsx)(Y.Z,{default:!0,monospace:!0,onClick:function(){return o((function(n){return n===e?null:e}))},warning:null===t||void 0===t?void 0:t[e],children:e}),(0,G.jsx)(g.Z,{mr:1}),(null===t||void 0===t?void 0:t[e])&&(0,G.jsx)(p.ZP,{warning:!0,children:"Modified after staging"})]})},e)}))})})}),(0,G.jsx)(Z.Z,{label:"Commit message",monospace:!0,onChange:function(e){return P(e.target.value)},ref:u,value:x||""}),(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsxs)(f.ZP,{disabled:0===T||!((null===x||void 0===x?void 0:x.length)>=1),loading:Ze,onClick:function(){pe({git_custom_branch:{action_type:"commit",message:x}})},primary:!0,children:["Commit ",(0,F._6)("file",T,!0)," with message"]}),0===T&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(p.ZP,{danger:!0,small:!0,children:"Please stage at least 1 file before committing."})]})]})})]}),(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsx)(q.Z,{children:(0,G.jsxs)(z.Z,{noPaddingContent:!0,title:"Logs",children:[!ve&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(j.Z,{inverted:!0})}),ve&&Pe]})})}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsxs)(v.ZP,{children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Hd,{}),linkProps:{href:"/version-control?tab=".concat(M.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:M.uuid}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)(f.ZP,{afterIcon:(0,G.jsx)(_.Kw,{}),linkProps:fe?{href:"/version-control?tab=".concat(D.uuid)}:null,noHoverUnderline:!0,primary:fe,sameColorAsText:!0,secondary:!fe,children:["Next: ",D.uuid]})]})]})]})},ae=r(12691),de=r.n(ae),he=r(34376),fe=r(53808),me=r(26314),ve=r(69419);var be=function(e){var n=e.actionRemoteName,r=e.branch,t=e.fetchBranch,o=e.loading,i=e.remotes,l=e.setActionRemoteName,u=e.showError,a=(0,he.useRouter)(),Z=(0,d.useRef)(null),w=(0,d.useState)(null),k=w[0],I=w[1],E=(0,d.useState)(null),A=E[0],T=E[1],N=(0,d.useState)(null),B=N[0],D=N[1],R=(0,d.useState)(null),H=R[0],U=R[1],W=(0,d.useState)(!1),K=W[0],X=W[1],J=(0,d.useState)(null),$=J[0],ee=J[1],ne=(0,d.useState)(""),re=ne[0],oe=ne[1],ie=(0,d.useState)(""),le=ie[0],ce=ie[1],se=(0,d.useState)(null),ue=se[0],ae=se[1],be=(0,d.useMemo)((function(){return!(null===r||void 0===r||!r.name)}),[r]);(0,d.useEffect)((function(){var e,n;null!==r&&void 0!==r&&null!==(e=r.sync_config)&&void 0!==e&&e.repo_path&&null===ue&&ae(null===r||void 0===r||null===(n=r.sync_config)||void 0===n?void 0:n.repo_path)}),[r,ue]);var xe=(0,d.useMemo)((function(){var e,r;return null===i||void 0===i||null===(e=i.find((function(e){return e.name===n})))||void 0===e||null===(r=e.refs)||void 0===r?void 0:r.map((function(e){var n=e.name.split("/");return{name:n[n.length-1]}}))}),[n,i]),ge=(0,h.Db)(y.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t(),X(!1)},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),je=(0,s.Z)(ge,2),pe=je[0],Ze=je[1].isLoading,Pe=(0,h.Db)(y.ZP.oauths.useUpdate("github"),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){return window.location.href=window.location.href.split("?")[0]},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),we=(0,s.Z)(Pe,2),ye=we[0],_e=we[1].isLoading,Ce=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,o=n.progress;r?(T(r),U(null)):(t(),I(null),T(null),D(null),U(o))},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),ke=(0,s.Z)(Ce,2),Se=ke[0],Ie=ke[1].isLoading,Oe=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t(),oe(""),ce("")},onErrorCallback:function(e,n){return u({errors:n,response:e})}})}}),Ee=(0,s.Z)(Oe,2),Ae=Ee[0],Te=Ee[1].isLoading,Ne=(0,h.Db)(y.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){t(),ee(null)},onErrorCallback:function(e,n){ee(null),u({errors:n,response:e})}})}}),Me=(0,s.Z)(Ne,2),Be=Me[0],De=Me[1].isLoading,Re=y.ZP.oauths.detail(me.h.GITHUB,{redirect_uri:encodeURIComponent(window.location.href)}),He=Re.data,Le=Re.mutate,Fe=(0,d.useMemo)((function(){return(null===He||void 0===He?void 0:He.oauth)||{}}),[He]),Ve=(0,h.Db)(y.ZP.oauths.useCreate(),{onSuccess:function(e){return(0,V.wD)(e,{callback:function(){Le()},onErrorCallback:function(e,n){u({errors:n,response:e})}})}}),Ge=(0,s.Z)(Ve,2),Ue=Ge[0],We=Ge[1].isLoading,qe=(0,ve.iV)()||{},ze=qe.access_token,Ye=qe.provider;(0,d.useEffect)((function(){!Fe||null!==Fe&&void 0!==Fe&&Fe.authenticated||!ze||Ue({oauth:{provider:Ye||me.h.GITHUB,token:ze}})}),[ze,Ue,Fe,Ye]);var Qe=(0,d.useMemo)((function(){return null===i||void 0===i?void 0:i.map((function(e){var r=e.name,t=e.refs,o=e.urls;return(0,G.jsxs)(g.Z,{mt:L.Mq,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,G.jsxs)(te.Z,{alignItems:"center",children:[(0,G.jsx)(p.ZP,{bold:!0,children:r}),(0,G.jsx)(g.Z,{mx:1,children:(0,G.jsx)(_._Q,{muted:!0})}),null===o||void 0===o?void 0:o.map((function(e){return(0,G.jsx)(g.Z,{mr:1,children:(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:e})},e)}))]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(f.ZP,{compact:!0,disabled:De&&$!==r,iconOnly:!0,loading:De&&$===r,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to remove remote ".concat(r,"?"))&&(ee(r),Be({git_custom_branch:{action_type:"remove_remote",remote:{name:r}}}).then((function(){n===r&&l(null)})))},small:!0,title:"Remote remote ".concat(r),children:(0,G.jsx)(_.rF,{})})]})}),(0,G.jsx)(q.Z,{children:(0,G.jsxs)(z.Z,{noPaddingContent:!0,smallTitle:!0,title:"Refs (".concat(null===t||void 0===t?void 0:t.length,")"),children:[0===(null===t||void 0===t?void 0:t.length)&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"This remote has no refs."})}),(null===t||void 0===t?void 0:t.length)>=1&&(0,G.jsx)(Q.Z,{columnFlex:[1,1,1],columns:[{uuid:"Ref"},{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:t.map((function(e){var n,r=e.commit,t=e.name;return[(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:t},"ref-name"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r||null===(n=r.author)||void 0===n?void 0:n.name},"author"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.date},"date"),(0,G.jsx)(p.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.message},"message")]})),uuid:"git-branch-remotes-refs"})]})}),(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsx)(m.Z,{light:!0})})]},r)}))}),[De,$,i,Be]);return(0,G.jsxs)(G.Fragment,{children:[He&&(0,G.jsxs)(g.Z,{mb:L.HN,children:[(null===Fe||void 0===Fe?void 0:Fe.authenticated)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.fy,{size:2*L.iI}),disabled:!0,children:"Successfully authenticated with GitHub"}),(0,G.jsx)(g.Z,{my:1,children:(0,G.jsx)(p.ZP,{muted:!0,children:"You can pull, push, and create pull requests on GitHub."})}),(0,G.jsx)(f.ZP,{loading:_e,onClick:function(){return ye({oauth:{action_type:"reset"}})},warning:!0,children:"Reset GitHub authentication"})]}),!(null!==Fe&&void 0!==Fe&&Fe.authenticated)&&(null===Fe||void 0===Fe?void 0:Fe.url)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.fy,{size:2*L.iI}),loading:We,onClick:function(){var e=null===Fe||void 0===Fe?void 0:Fe.url,n=(0,ve.iV)(e).state;(0,fe.t8)(fe.iQ,n),a.push(null===Fe||void 0===Fe?void 0:Fe.url)},primary:!0,children:"Authenticate with GitHub"}),(0,G.jsx)(g.Z,{mt:1,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Authenticating with GitHub will allow you to pull, push, and create pull requests on GitHub."})})]})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(b.Z,{children:"Setup"}),(0,G.jsxs)(g.Z,{mt:L.Mq,children:[(0,G.jsxs)(g.Z,{mb:1,children:[(0,G.jsx)(p.ZP,{bold:!0,large:!0,children:be?"Git init directory":"Initialize Git directory"}),!be&&(0,G.jsxs)(p.ZP,{muted:!0,children:["Enter the directory you want to initialize git in. For example, ",(0,G.jsx)(p.ZP,{bold:!0,inline:!0,monospace:!0,muted:!0,children:"/home/src/default_repo"}),"."]}),be&&(0,G.jsxs)(p.ZP,{muted:!0,children:["If the directory below is blank, then the current working directory will be used to initialize git.",(0,G.jsx)("br",{}),"If git hasn\u2019t been initialized in the directory below, Mage will automatically run git init for you."]})]}),(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsx)(P.Z,{disabled:be&&!K,label:"Git directory",monospace:!0,onChange:function(e){return ae(e.target.value)},ref:Z,value:ue||""}),(0,G.jsx)(g.Z,{mr:1}),(!be||K)&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(f.ZP,{compact:!0,disabled:!be&&!ue,loading:Ze,onClick:function(){pe({sync:{repo_path:ue}})},primary:!0,small:!0,children:"Save"}),be&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(Y.Z,{onClick:function(){return X(!1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Cancel"})]})]}),be&&!K&&(0,G.jsx)(Y.Z,{onClick:function(){X(!0),setTimeout((function(){var e;return null===Z||void 0===Z||null===(e=Z.current)||void 0===e?void 0:e.focus()}),1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Edit"})]})]})]}),be&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsxs)(b.Z,{children:["Remotes",!o&&i?" (".concat(null===i||void 0===i?void 0:i.length,")"):""]}),o&&(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsx)(j.Z,{inverted:!0})}),!o&&Qe,(0,G.jsx)(g.Z,{mt:L.Mq,children:(0,G.jsxs)(v.ZP,{alignItems:"flex-start",children:[(0,G.jsx)(P.Z,{label:"New remote name",monospace:!0,onChange:function(e){var n;return oe(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:re||""}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsxs)(v.ZP,{flexDirection:"column",children:[(0,G.jsx)(P.Z,{label:"Remote URL",monospace:!0,onChange:function(e){var n;return ce(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:le||""}),(0,G.jsx)(g.Z,{mt:1,children:(0,G.jsxs)(p.ZP,{muted:!0,small:!0,children:["Use the https URL if you",(0,G.jsx)("br",{}),"authenticated with GitHub above."]})})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.mm,{size:2*L.iI}),disabled:!re||!le,loading:Te,onClick:function(){Ae({git_custom_branch:{action_type:"add_remote",remote:{name:re,url:le}}})},primary:!0,children:"Create new remote"})]})})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(b.Z,{children:"Actions"}),(0,G.jsxs)(g.Z,{mt:L.Mq,children:[(0,G.jsxs)(g.Z,{mb:L.Mq,children:[(0,G.jsx)(g.Z,{mb:1,children:(0,G.jsx)(p.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,G.jsxs)(v.ZP,{alignItems:"center",children:[(0,G.jsx)(p.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name}),(0,G.jsx)(g.Z,{mr:L.cd}),(0,G.jsx)(de(),{href:"/version-control?tab=".concat(M.uuid),passHref:!0,children:(0,G.jsx)(Y.Z,{small:!0,children:"Switch branch"})})]})]}),(0,G.jsxs)(v.ZP,{children:[(0,G.jsxs)(x.Z,{onChange:function(e){return D(e.target.value)},placeholder:"Action",value:B||"",children:[(0,G.jsx)("option",{value:S,children:(0,F.vg)(S)}),(0,G.jsx)("option",{value:O,children:(0,F.vg)(O)}),(0,G.jsx)("option",{value:"reset",children:(0,F.vg)("reset --hard")}),(0,G.jsx)("option",{value:C,children:(0,F.vg)(C)})]}),(0,G.jsx)(g.Z,{mr:1}),(0,G.jsx)(x.Z,{beforeIcon:(0,G.jsx)(_.VW,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return l(e.target.value)},placeholder:"Remote",value:n||"",children:null===i||void 0===i?void 0:i.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))}),![S,C].includes(B)&&(0,G.jsx)(g.Z,{ml:1,children:(0,G.jsxs)(x.Z,{beforeIcon:(0,G.jsx)(_.I0,{}),beforeIconSize:1.5*L.iI,monospace:!0,onChange:function(e){return I(e.target.value)},value:k||"",children:[(0,G.jsx)("option",{value:"",children:"All branches"}),null===xe||void 0===xe?void 0:xe.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))]})})]}),(0,G.jsxs)(g.Z,{mt:L.cd,children:[(0,G.jsx)(f.ZP,{beforeIcon:(0,G.jsx)(_.Bf,{size:2*L.iI}),disabled:!B||!n,loading:Ie,onClick:function(){U(null),(B!==C||"undefined"!==typeof location&&window.confirm("Are you sure you want to clone remote ".concat(n,"? This will ")+"overwrite all your local changes and may reset any settings you may have configured for your local Git repo. This action cannot be undone."))&&Se({git_custom_branch:(0,c.Z)({action_type:B},B,{branch:k,remote:n})})},primary:!0,children:B?(0,F.vg)(B):"Execute action"}),(H||A)&&(0,G.jsx)(g.Z,{mt:L.cd,children:(0,G.jsx)(p.ZP,{danger:!!A,default:!!H,monospace:!0,preWrap:!0,children:H||A})})]})]})]}),(0,G.jsxs)(g.Z,{mb:L.HN,children:[(0,G.jsx)(g.Z,{mb:L.HN,children:(0,G.jsx)(m.Z,{light:!0})}),(0,G.jsx)(v.ZP,{children:(0,G.jsxs)(f.ZP,{afterIcon:(0,G.jsx)(_.Kw,{}),linkProps:{href:"/version-control?tab=".concat(M.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",M.uuid]})})]})]})]})},xe=r(95363),ge=oe.default.div.withConfig({displayName:"indexstyle__DiffContainerStyle",componentId:"sc-1fo4nus-0"})(["pre{font-family:",";}"],xe.Vp),je={codeFoldGutter:{},content:{},contentText:{},diffAdded:{},diffContainer:{},diffRemoved:{},emptyGutter:{},emptyLine:{},gutter:{},highlightedGutter:{},highlightedLine:{},line:{},lineNumber:{},marker:{},splitView:{},titleBlock:{},variables:{dark:{addedBackground:"#044B53",addedColor:"white",addedGutterBackground:"#034148",addedGutterColor:"#8c8c8c",codeFoldBackground:"#262831",codeFoldContentColor:"#555a7b",codeFoldGutterBackground:"#21232b",diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",diffViewerTitleBackground:"#2f323e",diffViewerTitleBorderColor:"#353846",diffViewerTitleColor:"#555a7b",emptyLineBackground:"#363946",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",gutterColor:"#464c67",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",removedBackground:"#632F34",removedColor:"white",removedGutterBackground:"#632b30",removedGutterColor:"#8c8c8c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f"},light:{addedBackground:"#e6ffed",addedColor:"#24292e",addedGutterBackground:"#cdffd8",addedGutterColor:"#212529",codeFoldBackground:"#f1f8ff",codeFoldContentColor:"#212529",codeFoldGutterBackground:"#dbedff",diffViewerBackground:"#fff",diffViewerColor:"212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleBorderColor:"#eee",diffViewerTitleColor:"#212529",emptyLineBackground:"#fafbfc",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",gutterColor:"#212529",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",removedBackground:"#ffeef0",removedColor:"#24292e",removedGutterBackground:"#ffdce0",removedGutterColor:"#212529",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0"}},wordAdded:{},wordDiff:{},wordRemoved:{}},pe=r(53005),Ze=r(15610),Pe=r(86735),we=r(23780);function ye(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function _e(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ye(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ye(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var Ce=function(){var e=(0,d.useRef)(null),n=(0,d.useRef)(null),r=(0,we.VI)(null,{},[],{uuid:"VersionControlPage"}),t=(0,s.Z)(r,1)[0],o=(0,d.useState)(null),i=o[0],l=o[1],h=(0,d.useState)(null),f=h[0],v=h[1],b=(0,d.useState)(H[0]),Z=b[0],P=b[1],_=(0,ve.iV)();(0,d.useEffect)((function(){null!==_&&void 0!==_&&_.tab&&P(H.find((function(e){return e.uuid===(null===_||void 0===_?void 0:_.tab)})))}),[_]);var C=y.ZP.git_custom_branches.list({include_remote_branches:1}),k=C.data,S=C.mutate,I=(0,d.useMemo)((function(){return null===k||void 0===k?void 0:k.git_custom_branches}),[k]),O=y.ZP.git_custom_branches.detail("current",{_format:"with_files"}),E=O.data,A=O.mutate,F=(0,d.useMemo)((function(){return(null===E||void 0===E?void 0:E.git_custom_branch)||{}}),[E]),V=(0,d.useMemo)((function(){return(null===F||void 0===F?void 0:F.files)||[]}),[F]),q=y.ZP.git_custom_branches.detail("with_remotes",{_format:"with_remotes"}),z=q.data,Y=q.mutate,Q=(0,d.useMemo)((function(){return null===z||void 0===z?void 0:z.git_custom_branch}),[z]),K=(0,d.useMemo)((function(){return(null===Q||void 0===Q?void 0:Q.remotes)||[]}),[Q]),X=(0,d.useState)(null),J=X[0],re=X[1],te=(0,d.useCallback)((function(e){(0,fe.t8)(T,e),re(e)}),[]);(0,d.useEffect)((function(){var e=(0,fe.U2)(T,null);if(z&&e){var n=null===K||void 0===K?void 0:K.find((function(n){return n.name===e}));te(n?null===n||void 0===n?void 0:n.name:null)}}),[z,K,te]);var oe=(0,d.useState)((0,fe.U2)(N,"")),ie=oe[0],ce=oe[1],se=(0,d.useCallback)((function(e){(0,fe.t8)(N,e),ce(e)}),[]),ae=(0,d.useMemo)((function(){return(0,Pe.Tw)(K.reduce((function(e,n){var r;return e.concat((null===n||void 0===n||null===(r=n.repository_names)||void 0===r?void 0:r.map((function(e){var r;return{name:e,url:null===n||void 0===n||null===(r=n.urls)||void 0===r?void 0:r[0]}})))||[])}),[]),(function(e){return e.name}))}),[K]);(0,d.useEffect)((function(){var e=(0,fe.U2)(N,null);if(z&&e){var n=null===ae||void 0===ae?void 0:ae.find((function(n){return n.name===e}));se(n?null===n||void 0===n?void 0:n.name:null)}}),[z,ae,se]);var de=y.ZP.git_files.detail(f?encodeURIComponent(f):null,{base_branch:i}),he=de.data,me=de.mutate,xe=(0,d.useMemo)((function(){return null===he||void 0===he?void 0:he.git_file}),[he]);(0,d.useEffect)((function(){i&&me()}),[i,me]),(0,d.useEffect)((function(){null!==he&&void 0!==he&&he.error&&t({errors:null===he||void 0===he?void 0:he.error,response:he})}),[he,t]);var ye=(0,d.useMemo)((function(){var e,n,r;return{modifiedFiles:null===F||void 0===F||null===(e=F.modified_files)||void 0===e?void 0:e.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),stagedFiles:null===F||void 0===F||null===(n=F.staged_files)||void 0===n?void 0:n.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{}),untrackedFiles:null===F||void 0===F||null===(r=F.untracked_files)||void 0===r?void 0:r.reduce((function(e,n){return _e(_e({},e),{},(0,c.Z)({},n,!0))}),{})}}),[F]),Ce=ye.modifiedFiles,ke=void 0===Ce?{}:Ce,Se=ye.stagedFiles,Ie=void 0===Se?{}:Se,Oe=ye.untrackedFiles,Ee=void 0===Oe?{}:Oe;(0,d.useEffect)((function(){f&&(0,le.Qr)(ke)&&(0,le.Qr)(Ie)&&(0,le.Qr)(Ee)&&v(null)}),[ke,f,Ie,Ee]);var Ae=(0,d.useMemo)((function(){return(null===V||void 0===V?void 0:V.length)>=1?(0,G.jsx)(ne.Z,{allowEmptyFolders:!0,disableContextMenu:!0,fetchFileTree:A,files:V,isFileDisabled:function(){return!1},onClickFile:function(e){v((function(r){if(!r||r!==e){var t;if(!i)null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus();return e}return null}))},ref:e,renderAfterContent:function(e){var n,r,t=e.children,o=(null===t||void 0===t?void 0:t.length)>=1,i=(0,pe.a9)(e);o&&(i="".concat(i,"/"));var l={};return null!==ke&&void 0!==ke&&ke[i]?(n="M",r="Modified",l.warning=!0):null!==Ee&&void 0!==Ee&&Ee[i]?(n="U",r="Untracked",l.danger=!0):null!==Ie&&void 0!==Ie&&Ie[i]&&(n="S",r="Staged",l.success=!0),o&&!n?null:(0,G.jsx)(g.Z,{mx:1,children:(0,G.jsx)(w.Z,{appearBefore:!0,label:r,widthFitContent:!0,children:(0,G.jsx)(p.ZP,_e(_e({},l),{},{monospace:!0,rightAligned:!0,small:!0,children:n}))})})},useRootFolder:!0}):(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(p.ZP,{monospace:!0,muted:!0,children:"No files modified"})})}),[i,A,e,V,ke,n,v,Ie,Ee]),Te=(0,d.useMemo)((function(){return!he||!xe||f&&(null===xe||void 0===xe?void 0:xe.filename)!==f}),[he,xe,f]),Ne=(0,d.useMemo)((function(){if(!f)return null;var e=xe||{},n=e.content,r=e.content_from_base;return(0,G.jsxs)(ge,{children:[!i&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(p.ZP,{muted:!0,children:"Please select a base branch to see the file diffs."})}),(null===xe||void 0===xe?void 0:xe.error)&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(p.ZP,{danger:!0,monospace:!0,preWrap:!0,children:null===xe||void 0===xe?void 0:xe.error})}),i&&!(null!==xe&&void 0!==xe&&xe.error)&&(0,G.jsxs)(G.Fragment,{children:[Te&&(0,G.jsx)(g.Z,{p:L.cd,children:(0,G.jsx)(j.Z,{inverted:!0})}),!Te&&(0,G.jsx)(a(),{compareMethod:u.DiffMethod.WORDS,newValue:n||"",oldValue:r||"",renderContent:function(e){return(0,G.jsx)(p.ZP,{monospace:!0,children:e})},splitView:!0,styles:je,useDarkTheme:!0})]})]})}),[i,xe,Te,f]),Me=(0,d.useMemo)((function(){return E&&null!==F&&void 0!==F&&F.name?H:H.slice(0,1)}),[F,E]),Be=(0,d.useMemo)((function(){return(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)("div",{style:{marginBottom:.5*L.iI,marginTop:.5*L.iI},children:(0,G.jsx)(W.Z,{compact:!0,onClickTab:function(e){var n=e.uuid;(0,Ze.u7)({tab:n})},selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:Me})}),(0,G.jsx)(m.Z,{light:!0})]})}),[Z,Me]),De=(0,d.useMemo)((function(){return(0,G.jsx)(be,{actionRemoteName:J,branch:F,fetchBranch:function(){A(),Y()},loading:!z,remotes:K,setActionRemoteName:te,showError:t})}),[J,F,z,A,Y,K,te,t]),Re=(0,d.useMemo)((function(){return(0,G.jsx)(U,{actionRemoteName:J,branch:F,branches:I,fetchBranch:A,fetchBranches:S,remotes:K,setActionRemoteName:te,showError:t})}),[J,F,I,A,S,K,te,t]),He=(0,d.useMemo)((function(){return(0,G.jsx)(ue,{branch:F,fetchBranch:A,modifiedFiles:ke,setSelectedFilePath:v,showError:t,stagedFiles:Ie,untrackedFiles:Ee})}),[F,A,ke,v,t,Ie,Ee]),Le=(0,d.useMemo)((function(){return(0,G.jsx)($,{actionRemoteName:J,branch:F,branches:I,fetchBranch:A,loading:!z,modifiedFiles:ke,remotes:K,repositories:ae,repositoryName:ie,setActionRemoteName:te,setRepositoryName:se,showError:t,stagedFiles:Ie})}),[J,F,I,z,A,ke,K,ae,ie,te,se,t,Ie]);return(0,G.jsx)(ee.Z,{after:Ne,afterHidden:!f,afterWidth:40*L.iI,before:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(g.Z,{p:1,children:(0,G.jsx)(x.Z,{compact:!0,label:"Base branch",onChange:function(e){return l(e.target.value)},ref:n,small:!0,value:i||"",children:null===I||void 0===I?void 0:I.map((function(e){var n=e.name;return(0,G.jsx)("option",{value:n,children:n},n)}))})}),Ae]}),mainContainerHeader:Be,title:"Version control",uuid:"Version control/index",children:(0,G.jsxs)(g.Z,{p:L.cd,children:[!E&&(0,G.jsx)(j.Z,{inverted:!0}),E&&(0,G.jsxs)(G.Fragment,{children:[R.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&De,M.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Re,B.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&He,D.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Le]})]})})};function ke(){return(0,G.jsx)(Ce,{})}ke.getInitialProps=(0,t.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Se=(0,l.Z)(ke)},75302:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/version-control",function(){return r(58024)}])}},function(e){e.O(0,[2678,1154,844,7011,5397,4267,600,8487,8264,7858,5499,3932,553,9774,2888,179],(function(){return n=75302,e(e.s=n);var n}));var n=e.O();_N_E=n}]);