mage-ai 0.9.12__py3-none-any.whl → 0.9.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (325) hide show
  1. mage_ai/ai/generator.py +1 -1
  2. mage_ai/ai/generator_cmds.py +1 -1
  3. mage_ai/ai/llm_pipeline_wizard.py +31 -17
  4. mage_ai/api/policies/BlockPolicy.py +1 -0
  5. mage_ai/api/policies/PipelineRunPolicy.py +1 -0
  6. mage_ai/api/policies/PipelineSchedulePolicy.py +12 -0
  7. mage_ai/api/policies/TagPolicy.py +18 -0
  8. mage_ai/api/presenters/BlockRunPresenter.py +4 -1
  9. mage_ai/api/presenters/PipelineRunPresenter.py +2 -0
  10. mage_ai/api/presenters/PipelineSchedulePresenter.py +9 -2
  11. mage_ai/api/presenters/TagPresenter.py +3 -0
  12. mage_ai/api/resources/BackfillResource.py +6 -3
  13. mage_ai/api/resources/BlockResource.py +2 -0
  14. mage_ai/api/resources/BlockRunResource.py +18 -12
  15. mage_ai/api/resources/DatabaseResource.py +23 -0
  16. mage_ai/api/resources/GitBranchResource.py +8 -1
  17. mage_ai/api/resources/GlobalDataProductResource.py +5 -2
  18. mage_ai/api/resources/PipelineResource.py +30 -14
  19. mage_ai/api/resources/PipelineScheduleResource.py +157 -1
  20. mage_ai/api/resources/SearchResultResource.py +1 -0
  21. mage_ai/api/resources/TagResource.py +16 -3
  22. mage_ai/data_integrations/sources/constants.py +1 -0
  23. mage_ai/data_preparation/git/__init__.py +18 -0
  24. mage_ai/data_preparation/models/block/__init__.py +34 -11
  25. mage_ai/data_preparation/models/block/dbt/utils/__init__.py +37 -10
  26. mage_ai/data_preparation/models/block/integration/__init__.py +1 -1
  27. mage_ai/data_preparation/models/block/sql/__init__.py +44 -2
  28. mage_ai/data_preparation/models/custom_templates/utils.py +14 -4
  29. mage_ai/data_preparation/models/global_data_product/__init__.py +8 -0
  30. mage_ai/data_preparation/models/pipeline.py +4 -0
  31. mage_ai/data_preparation/models/variable.py +5 -2
  32. mage_ai/data_preparation/repo_manager.py +28 -16
  33. mage_ai/io/clickhouse.py +9 -6
  34. mage_ai/io/redshift.py +9 -10
  35. mage_ai/io/utils.py +3 -1
  36. mage_ai/orchestration/db/migrations/README.md +39 -2
  37. mage_ai/orchestration/db/migrations/env.py +1 -0
  38. mage_ai/orchestration/db/migrations/versions/386bcfebd48d_create_tag_and_tagassociation_tables.py +59 -0
  39. mage_ai/orchestration/db/models/schedules.py +29 -2
  40. mage_ai/orchestration/db/models/tags.py +57 -0
  41. mage_ai/orchestration/pipeline_scheduler.py +7 -7
  42. mage_ai/orchestration/triggers/global_data_product.py +41 -40
  43. mage_ai/orchestration/triggers/utils.py +11 -1
  44. mage_ai/server/constants.py +1 -1
  45. mage_ai/server/frontend_dist/404.html +2 -2
  46. mage_ai/server/frontend_dist/404.html.html +2 -2
  47. mage_ai/server/frontend_dist/_next/static/CNjkRIWPaAu1yJUmIaX_q/_buildManifest.js +1 -0
  48. mage_ai/server/frontend_dist/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
  49. mage_ai/server/frontend_dist/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  50. mage_ai/server/frontend_dist/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/2485-39885e5335888821.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
  54. mage_ai/server/frontend_dist/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
  56. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
  57. mage_ai/server/frontend_dist/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
  58. mage_ai/server/frontend_dist/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
  59. mage_ai/server/frontend_dist/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
  60. mage_ai/server/frontend_dist/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
  61. mage_ai/server/frontend_dist/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  62. mage_ai/server/frontend_dist/_next/static/chunks/7722-76c724a66240561b.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
  64. mage_ai/server/frontend_dist/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
  65. mage_ai/server/frontend_dist/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
  66. mage_ai/server/frontend_dist/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
  76. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
  81. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
  82. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
  83. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  84. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
  85. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
  86. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
  87. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
  88. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
  89. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
  90. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
  91. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
  92. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
  93. mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
  94. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
  95. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
  96. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
  97. mage_ai/server/frontend_dist/files.html +2 -2
  98. mage_ai/server/frontend_dist/global-data-products/[...slug].html +2 -2
  99. mage_ai/server/frontend_dist/global-data-products.html +2 -2
  100. mage_ai/server/frontend_dist/index.html +2 -2
  101. mage_ai/server/frontend_dist/manage/settings.html +2 -2
  102. mage_ai/server/frontend_dist/manage/users/[user].html +2 -2
  103. mage_ai/server/frontend_dist/manage/users/new.html +2 -2
  104. mage_ai/server/frontend_dist/manage/users.html +2 -2
  105. mage_ai/server/frontend_dist/manage.html +2 -2
  106. mage_ai/server/frontend_dist/overview.html +2 -2
  107. mage_ai/server/frontend_dist/pipeline-runs.html +2 -2
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +2 -2
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +2 -2
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  113. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  114. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +2 -2
  115. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +2 -2
  116. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +2 -2
  117. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +2 -2
  118. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +2 -2
  119. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  120. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +2 -2
  121. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  122. mage_ai/server/frontend_dist/pipelines.html +2 -2
  123. mage_ai/server/frontend_dist/settings/account/profile.html +2 -2
  124. mage_ai/server/frontend_dist/settings/workspace/preferences.html +2 -2
  125. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +2 -2
  126. mage_ai/server/frontend_dist/settings/workspace/users.html +2 -2
  127. mage_ai/server/frontend_dist/settings.html +2 -2
  128. mage_ai/server/frontend_dist/sign-in.html +11 -11
  129. mage_ai/server/frontend_dist/templates/[...slug].html +2 -2
  130. mage_ai/server/frontend_dist/templates.html +2 -2
  131. mage_ai/server/frontend_dist/terminal.html +2 -2
  132. mage_ai/server/frontend_dist/test.html +3 -3
  133. mage_ai/server/frontend_dist/triggers.html +2 -2
  134. mage_ai/server/frontend_dist/version-control.html +2 -2
  135. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  136. mage_ai/server/frontend_dist_base_path_template/404.html.html +2 -2
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-a2f0e3ee378ef02b.js +1 -0
  138. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-fca78f21a81a7183.js +1 -0
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-87d4d4a698ac63dc.js +1 -0
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-39885e5335888821.js +1 -0
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-f71862671f66d948.js +1 -0
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3391-6f0a0a5c254cd7f2.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-131cf690e54c23a3.js +1 -0
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-331193bd9b2fe777.js +1 -0
  145. mage_ai/server/{frontend_dist/_next/static/chunks/4822-045cc7cdd7c95163.js → frontend_dist_base_path_template/_next/static/chunks/4822-ee62acb1927c8150.js} +1 -1
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-bd961ea93f3eb98b.js +1 -0
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-fcb702d0f3d3291b.js +1 -0
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6422-0cdd6e596dcd43b6.js +1 -0
  149. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{6786-77c7e36678abb2c6.js → 6786-55e1bca3c897d5ee.js} +1 -1
  150. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-7e4dd11e3f3b8e79.js +1 -0
  151. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-76c724a66240561b.js +1 -0
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-8b68b0eb665fcd2d.js +1 -0
  153. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8190-d38ed1133030797d.js +1 -0
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-9d6fa18fa9378989.js +1 -0
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9605-9332e1686c46da7d.js +1 -0
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-9dae6fa5126cf001.js +1 -0
  157. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-2dc2a0dfc0ff620d.js +1 -0
  158. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-6d3d53624debede6.js +1 -0
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-2756fe6d9decae4a.js +1 -0
  160. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-6577159a0af52a78.js +1 -0
  161. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-6815a3ece7dc1678.js +1 -0
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-7f790238fe70d9ab.js +1 -0
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-33c7f2550add0719.js +1 -0
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-07e4a3a674e83578.js +1 -0
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b8b4bed1e8e50068.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-54cb4936accdd2d9.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-d331e98ad103b13e.js +1 -0
  168. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-d87d0c21758a2d7c.js +1 -0
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-68e1b861ef4fc0d7.js +1 -0
  170. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9fa0c4ce1c921a41.js +1 -0
  171. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-d5ef19ca1f9931de.js +1 -0
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-4a2671811a153411.js +1 -0
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-8872a6e00280f58c.js +1 -0
  174. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-484581ae34a1c596.js +1 -0
  175. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-ce11db27e4af7869.js +1 -0
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-624a2d7cbe6303b4.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-1169f4eecf752033.js +1 -0
  178. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-d2224a447987fa69.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-c3ff06a12baa40a2.js} +1 -1
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-60b4398d7ae00206.js +1 -0
  180. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-dd827816bf4a7908.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-05b53444f0e7449b.js} +1 -1
  181. mage_ai/server/{frontend_dist/_next/static/chunks/pages/sign-in-097aa0bef1e34cdb.js → frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-a5e9561a6c0d2e38.js} +1 -1
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/{[...slug]-78a07e7fe8973811.js → [...slug]-c21b269750441494.js} +1 -1
  183. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates-19df643f52679d5a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates-ce2a29d477a6ce94.js} +1 -1
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-71bbb30dd9b57f80.js +1 -0
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1dc780d52fbd1573.js +1 -0
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/yJvL-3bfsNF3WCStZ10Dm/_buildManifest.js +1 -0
  187. mage_ai/server/frontend_dist_base_path_template/files.html +2 -2
  188. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +2 -2
  189. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +2 -2
  190. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  191. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +2 -2
  192. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +2 -2
  193. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +2 -2
  194. mage_ai/server/frontend_dist_base_path_template/manage/users.html +2 -2
  195. mage_ai/server/frontend_dist_base_path_template/manage.html +2 -2
  196. mage_ai/server/frontend_dist_base_path_template/overview.html +2 -2
  197. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +2 -2
  198. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +2 -2
  199. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +2 -2
  200. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  201. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +2 -2
  202. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +2 -2
  203. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +2 -2
  204. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +2 -2
  205. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +2 -2
  206. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +2 -2
  207. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +2 -2
  208. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +2 -2
  209. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +2 -2
  210. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +2 -2
  211. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  212. mage_ai/server/frontend_dist_base_path_template/pipelines.html +2 -2
  213. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +2 -2
  214. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +2 -2
  215. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +2 -2
  216. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +2 -2
  217. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  218. mage_ai/server/frontend_dist_base_path_template/sign-in.html +11 -11
  219. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +2 -2
  220. mage_ai/server/frontend_dist_base_path_template/templates.html +2 -2
  221. mage_ai/server/frontend_dist_base_path_template/terminal.html +2 -2
  222. mage_ai/server/frontend_dist_base_path_template/test.html +3 -3
  223. mage_ai/server/frontend_dist_base_path_template/triggers.html +2 -2
  224. mage_ai/server/frontend_dist_base_path_template/version-control.html +2 -2
  225. mage_ai/server/server.py +53 -27
  226. mage_ai/services/spark/spark.py +75 -2
  227. mage_ai/streaming/constants.py +1 -0
  228. mage_ai/streaming/sources/kafka.py +17 -9
  229. mage_ai/tests/data_preparation/models/custom_templates/__init__.py +0 -0
  230. mage_ai/tests/data_preparation/models/custom_templates/test_utils.py +36 -0
  231. mage_ai/tests/data_preparation/models/test_block.py +48 -0
  232. mage_ai/tests/data_preparation/test_repo_manager.py +19 -1
  233. mage_ai/tests/server/test_server.py +20 -2
  234. mage_ai/tests/services/spark/__init__.py +0 -0
  235. mage_ai/tests/services/spark/test_spark.py +52 -0
  236. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/METADATA +1 -1
  237. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/RECORD +245 -233
  238. mage_ai/server/frontend_dist/_next/static/RdDEYzOW6lfmOEilKsz4V/_buildManifest.js +0 -1
  239. mage_ai/server/frontend_dist/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
  240. mage_ai/server/frontend_dist/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
  241. mage_ai/server/frontend_dist/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
  242. mage_ai/server/frontend_dist/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
  243. mage_ai/server/frontend_dist/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
  244. mage_ai/server/frontend_dist/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
  245. mage_ai/server/frontend_dist/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
  246. mage_ai/server/frontend_dist/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
  247. mage_ai/server/frontend_dist/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
  248. mage_ai/server/frontend_dist/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
  249. mage_ai/server/frontend_dist/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
  250. mage_ai/server/frontend_dist/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
  251. mage_ai/server/frontend_dist/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
  252. mage_ai/server/frontend_dist/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
  253. mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
  254. mage_ai/server/frontend_dist/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
  255. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
  256. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
  257. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
  258. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
  259. mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
  260. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
  261. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
  262. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
  263. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
  264. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
  265. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
  266. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
  267. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
  268. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
  269. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
  270. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
  271. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
  272. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
  273. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
  274. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
  275. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/4dbzHNz2XwS_s6Z0qsIGO/_buildManifest.js +0 -1
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1005-2f8ef0e28c917767.js +0 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1424-a2cd1bfc708a323b.js +0 -1
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1484-a07f74ae5c40141c.js +0 -1
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2485-b569baad92049d6b.js +0 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2786-acce6ea0d9b4898e.js +0 -1
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3654-14ee3eacc42b118a.js +0 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3881-0eb04f7f7a244347.js +0 -1
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/437-d43ccff3a064a528.js +0 -1
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/547-4ad2cdae967055b6.js +0 -1
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6299-cf188c1b7a1bc33c.js +0 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7496-ab1be388ae09d362.js +0 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7722-a74e6f977993e75e.js +0 -1
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7815-fbd99c8f259d9e8b.js +0 -1
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8952-98e54b14c1af492f.js +0 -1
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-74805cf1296fd50f.js +0 -1
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-bcdaa82adcca891d.js +0 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-abdbda772d94c386.js +0 -1
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products-01f8ef10e87ec236.js +0 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-950fbcb72961eb3c.js +0 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-c6fd44191c812edf.js +0 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-6e46ed84cf3f4e9d.js +0 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1d52bba72442c53f.js +0 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-8c33956a28fb4fa8.js +0 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-b28d151c32c2a469.js +0 -1
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-e1708e5576cd26d1.js +0 -1
  304. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-0f3468d52020dcbf.js +0 -1
  305. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-489d02937d5f4695.js +0 -1
  306. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-544475d8e841638f.js +0 -1
  307. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-e117a99f334b6022.js +0 -1
  308. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-f1ef481c7beb8aef.js +0 -1
  309. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ab52e3174c3dcf64.js +0 -1
  310. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-3e290f7d76c68b3f.js +0 -1
  311. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-1ac4dc91ec394c6d.js +0 -1
  312. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-4753de69f7e366c5.js +0 -1
  313. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-cf285c43759e9b2a.js +0 -1
  314. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3f86e7f1c8d63beb.js +0 -1
  315. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b2354688508b0755.js +0 -1
  316. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-cacb24e3632cfdfc.js +0 -1
  317. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5a6e3a62fef551f1.js +0 -1
  318. /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_middlewareManifest.js +0 -0
  319. /mage_ai/server/frontend_dist/_next/static/{RdDEYzOW6lfmOEilKsz4V → CNjkRIWPaAu1yJUmIaX_q}/_ssgManifest.js +0 -0
  320. /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_middlewareManifest.js +0 -0
  321. /mage_ai/server/frontend_dist_base_path_template/_next/static/{4dbzHNz2XwS_s6Z0qsIGO → yJvL-3bfsNF3WCStZ10Dm}/_ssgManifest.js +0 -0
  322. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/LICENSE +0 -0
  323. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/WHEEL +0 -0
  324. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/entry_points.txt +0 -0
  325. {mage_ai-0.9.12.dist-info → mage_ai-0.9.14.dist-info}/top_level.txt +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2858],{1210:function(e,n,r){"use strict";r.d(n,{Z:function(){return P}});var t=r(82394),o=r(21831),i=r(82684),l=r(47999),c=r(49894),s=r(93461),u=r(57384),a=r(41424),d=r(72454),h=r(28598);function f(e,n){var r=e.children;return(0,h.jsx)(d.HS,{ref:n,children:r})}var m=i.forwardRef(f),v=r(32063),b=r(85019),p=r(82531),g=r(66166),j=r(3055),x=r(49125),Z=r(91427),y=r(24141);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 _(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}var P=function(e){var n,r=e.addProjectBreadcrumbToCustomBreadcrumbs,t=e.after,f=e.afterHidden,w=e.afterWidth,P=e.afterWidthOverride,C=e.before,k=e.beforeWidth,S=e.breadcrumbs,O=e.children,I=e.errors,E=e.headerMenuItems,M=e.headerOffset,D=e.mainContainerHeader,A=e.navigationItems,B=e.setErrors,T=e.subheaderChildren,N=e.title,R=e.uuid,H=(0,y.i)().width,L="dashboard_after_width_".concat(R),F="dashboard_before_width_".concat(R),V=(0,i.useRef)(null),G=(0,i.useState)(P?w:(0,Z.U2)(L,w)),U=G[0],W=G[1],q=(0,i.useState)(!1),z=q[0],Y=q[1],Q=(0,i.useState)(C?Math.max((0,Z.U2)(F,k),13*x.iI):null),K=Q[0],X=Q[1],J=(0,i.useState)(!1),$=J[0],ee=J[1],ne=(0,i.useState)(null)[1],re=p.ZP.projects.list({},{revalidateOnFocus:!1}).data,te=null===re||void 0===re?void 0:re.projects,oe={label:function(){var e;return null===te||void 0===te||null===(e=te[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},ie=[];S?(r&&ie.push(oe),ie.push.apply(ie,(0,o.Z)(S))):(null===te||void 0===te?void 0:te.length)>=1&&ie.push.apply(ie,[oe,{bold:!0,label:function(){return N}}]),(0,i.useEffect)((function(){null===V||void 0===V||!V.current||z||$||null===ne||void 0===ne||ne(V.current.getBoundingClientRect().width)}),[z,U,$,K,V,ne,H]),(0,i.useEffect)((function(){z||(0,Z.t8)(L,U)}),[f,z,U,L]),(0,i.useEffect)((function(){$||(0,Z.t8)(F,K)}),[$,K,F]);var le=(0,g.Z)(w);return(0,i.useEffect)((function(){P&&le!==w&&W(w)}),[P,w,le]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(u.Z,{title:N}),(0,h.jsx)(a.Z,{breadcrumbs:ie,menuItems:E,project:null===te||void 0===te?void 0:te[0],version:null===te||void 0===te||null===(n=te[0])||void 0===n?void 0:n.version}),(0,h.jsxs)(d.Nk,{children:[0!==(null===A||void 0===A?void 0:A.length)&&(0,h.jsx)(d.lm,{showMore:!0,children:(0,h.jsx)(b.Z,{navigationItems:A,showMore:!0})}),(0,h.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,h.jsxs)(v.Z,{after:t,afterHeightOffset:j.Mz,afterHidden:f,afterMousedownActive:z,afterWidth:U,before:C,beforeHeightOffset:j.Mz,beforeMousedownActive:$,beforeWidth:d.k1+(C?K:0),headerOffset:M,hideAfterCompletely:!0,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:V,setAfterMousedownActive:Y,setAfterWidth:W,setBeforeMousedownActive:ee,setBeforeWidth:X,children:[T&&(0,h.jsx)(m,{children:T}),O]})})]}),I&&(0,h.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,h.jsx)(c.Z,_(_({},I),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}},60701:function(e,n,r){"use strict";r.d(n,{Qq:function(){return h},Z7:function(){return f},cH:function(){return o},du:function(){return a},fp:function(){return u},j5:function(){return d},uM:function(){return s}});var t,o,i=r(82394),l=r(22341),c=r(24224),s="sideview",u=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.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 a=[o.DATA],d=[{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"}],h=(0,c.HK)(d,(function(e){return e.key})),f=(t={},(0,i.Z)(t,o.ADDON_BLOCKS,l.EJ),(0,i.Z)(t,o.BLOCK_SETTINGS,l.JG),(0,i.Z)(t,o.CALLBACKS,l.AQ),(0,i.Z)(t,o.CHARTS,l.GQ),(0,i.Z)(t,o.DATA,l.iA),(0,i.Z)(t,o.EXTENSIONS,l.Bf),(0,i.Z)(t,o.SECRETS,l.Yo),(0,i.Z)(t,o.SETTINGS,l.Zr),(0,i.Z)(t,o.TERMINAL,l.oI),(0,i.Z)(t,o.TREE,l.mp),(0,i.Z)(t,o.VARIABLES,l.LO),t)},73828:function(e,n,r){"use strict";r.d(n,{JD:function(){return b},Lu:function(){return i},PF:function(){return f},d2:function(){return h},dT:function(){return l},n6:function(){return u},nB:function(){return v},oy:function(){return m},xF:function(){return d}});var t,o,i,l,c=r(82394),s=r(86422);!function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",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.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("|")),f="charts",m="pipelines",v=(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),b=(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)},55022:function(e,n,r){"use strict";var t;r.d(n,{G:function(){return t}}),function(e){e.ACTIVE_DIRECTORY="active_directory",e.GITHUB="github"}(t||(t={}))},29237:function(e,n,r){"use strict";var t=r(38626),o=r(67971),i=r(86673),l=r(19711),c=r(23831),s=r(73942),u=r(37391),a=r(49125),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,p=e.fullWidth,g=void 0===p||p,j=e.header,x=e.headerHeight,Z=e.headerIcon,y=e.headerPaddingVertical,w=e.headerTitle,_=e.maxHeight,P=e.maxWidth,C=e.minWidth,k=e.noPadding,S=e.overflowVisible,O=e.subtitle,I=e.success;return(0,d.jsxs)(f,{borderless:n,dark:s,fullHeight:h,fullWidth:g,maxHeight:_,maxWidth:P,minWidth:C,overflowVisible:S,ref:t,success:I,children:[(j||w)&&(0,d.jsxs)(m,{headerPaddingVertical:y,height:x,children:[j&&j,w&&(0,d.jsx)(o.Z,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(o.Z,{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:_,noPadding:k,overflowVisible:S,ref:c,children:[O&&(0,d.jsx)(i.Z,{mb:2,children:(0,d.jsx)(l.ZP,{default:!0,children:O})}),r]}),u&&(0,d.jsx)(b,{children:u})]})}},66176:function(e,n,r){"use strict";var t=r(82394),o=r(91835),i=(r(82684),r(38626)),l=r(23831),c=r(73942),s=r(49125),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))}))}},32316:function(e,n,r){"use strict";r.d(n,{Z:function(){return b}});var t=r(82684),o=r(60328),i=r(67971),l=r(882),c=r(86673),s=r(19711),u=r(99994),a=r(38626),d=r(49125),h=r(37391),f=a.default.div.withConfig({displayName:"indexstyle__TabsContainerStyle",componentId:"sc-segf7l-0"})(["padding-left:","px;padding-right:","px;"," "," ",""],d.cd*d.iI,d.cd*d.iI,(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.allowScroll&&"\n overflow: auto;\n "}),h.w5),m=r(66653),v=r(28598);var b=function(e){var n=e.allowScroll,r=e.compact,a=e.contained,h=e.noPadding,b=e.onClickTab,p=e.regularSizeText,g=e.selectedTabUUID,j=e.small,x=e.tabs,Z=(0,t.useMemo)((function(){var e=x.length,n=[];return x.forEach((function(t,a){var h=t.Icon,f=t.IconSelected,x=t.label,Z=t.uuid,y=Z===g,w=y&&f||h,_=x?x():Z,P=(0,v.jsxs)(i.Z,{alignItems:"center",children:[w&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(w,{default:!y,size:2*d.iI}),(0,v.jsx)(c.Z,{mr:1})]}),(0,v.jsx)(s.ZP,{bold:!0,default:!y,noWrapping:!0,small:!p,children:_})]});a>=1&&e>=2&&n.push((0,v.jsx)("div",{style:{marginLeft:1.5*d.iI}},"spacing-".concat(Z))),y?n.push((0,v.jsx)(l.Z,{backgroundGradient:u.yr,backgroundPanel:!0,borderLess:!0,borderWidth:2,compact:r||j,onClick:function(e){(0,m.j)(e),b(t)},paddingUnitsHorizontal:1.75,paddingUnitsVertical:1.25,small:j,children:P},Z)):n.push((0,v.jsx)("div",{style:{padding:2},children:(0,v.jsx)(o.Z,{borderLess:!0,compact:r||j,default:!0,onClick:function(e){(0,m.j)(e),b(t)},outline:!0,small:j,children:P})},"button-tab-".concat(Z)))})),n}),[r,b,g,j,x]),y=(0,v.jsx)(i.Z,{alignItems:"center",children:Z});return a?y:(0,v.jsx)(f,{allowScroll:n,noPadding:h,children:y})}},6343:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Ce}});var t=r(77837),o=r(38860),i=r.n(o),l=r(41788),c=r(82394),s=r(75582),u=r(54407),a=r.n(u),d=r(82684),h=r(83455),f=r(60328),m=r(34744),v=r(67971),b=r(87372),p=r(55378),g=r(86673),j=r(54283),x=r(19711),Z=r(38435),y=r(82944),w=r(46261),_=r(82531),P=r(22341),C="delete",k="merge",S="pull",O="push",I="rebase",E="git_remote_name",M="git_repository_name",D={uuid:"Branches"},A={uuid:"Files"},B={uuid:"Push"},T={uuid:"Setup"},N=[T,D,A,B],R=r(49125),H=r(90211),L=r(96510),F=r(28598);var V=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,S=(0,d.useState)(""),O=S[0],E=S[1],M=(0,d.useState)(null),D=M[0],B=M[1],N=(0,d.useState)(null),V=N[0],G=N[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)(_.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,L.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)(_.ZP.git_custom_branches.useCreate(),{onSuccess:function(e){return(0,L.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)(_.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var n=e.git_custom_branch.progress;o(),E(""),B(""),G(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,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsxs)(b.Z,{children:["Branches",X?" (".concat(null===X||void 0===X?void 0:X.length,")"):""]}),(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsxs)(v.Z,{children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Remote"})}),(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.VW,{}),beforeIconSize:1.5*R.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,F.jsx)("option",{value:n,children:n},n)}))})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsx)(w.Z,{fullSize:!0,label:"Choose a different branch to switch branches",widthFitContent:!0,children:(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{muted:!1}),beforeIconSize:2*R.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===X||void 0===X?void 0:X.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)})))})}),(0,F.jsx)(g.Z,{mr:R.cd}),ie&&(0,F.jsx)(j.Z,{inverted:!0})]})]})]})}),(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsx)(y.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,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.mm,{size:2*R.iI}),disabled:!Y,loading:ne,onClick:function(){ee({git_custom_branch:{name:Y}})},primary:!0,children:"Create new branch"})]})})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(b.Z,{children:"Actions"}),(0,F.jsxs)(g.Z,{mt:R.Mq,children:[(0,F.jsxs)(g.Z,{mb:R.Mq,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,F.jsx)(x.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name})]}),(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Base branch"})}),(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{}),beforeIconSize:1.5*R.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,F.jsx)("option",{value:n,children:n},n)}))})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Action"})}),(0,F.jsxs)(p.Z,{onChange:function(e){return B(e.target.value)},placeholder:"Choose action",value:D||"",children:[(0,F.jsx)("option",{value:k,children:(0,H.vg)(k)}),(0,F.jsx)("option",{value:I,children:(0,H.vg)(I)}),(0,F.jsx)("option",{value:C,children:(0,H.vg)(C)})]})]})]}),D&&[k,I].includes(D)&&(0,F.jsxs)(g.Z,{mt:R.cd,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsxs)(x.ZP,{bold:!0,muted:!0,children:["Message for ",D]})}),(0,F.jsx)(Z.Z,{monospace:!0,onChange:function(e){return E(e.target.value)},value:O||""})]}),(0,F.jsxs)(g.Z,{mt:R.cd,children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Bf,{size:2*R.iI}),disabled:!D||!W,loading:ue,onClick:function(){(C!==D||"undefined"!==typeof location&&window.confirm("Are you sure you want to delete branch ".concat(W,"?")))&&se({git_custom_branch:(0,c.Z)({action_type:D,message:O},D,{base_branch:W})})},primary:!0,children:D?(0,H.vg)(D):"Execute action"}),V&&(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsx)(x.ZP,{default:!0,monospace:!0,preWrap:!0,children:V})})]})]})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsxs)(v.Z,{children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Hd,{}),linkProps:{href:"/version-control?tab=".concat(T.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:T.uuid}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)(f.Z,{afterIcon:(0,F.jsx)(P.Kw,{}),linkProps:{href:"/version-control?tab=".concat(A.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",A.uuid]})]})]})]})},G=r(32316),U=r(44182),W=r(25880),q=r(10919),z=r(87815);function Y(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 Q(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Y(Object(r),!0).forEach((function(n){(0,c.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Y(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}var K={base_branch:null,body:null,compare_branch:null,repository:null,title:null};var X=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],E=S[1],M=(0,d.useState)(null),D=M[0],B=M[1],T=(0,d.useState)(null),N=T[0],V=T[1],G=(0,d.useState)(K),Y=G[0],X=G[1],J=(0,h.Db)(_.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,t=n.progress;r?(B(r),V(null)):(o(),B(null),V(t))},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),$=(0,s.Z)(J,2),ee=$[0],ne=$[1].isLoading,re=_.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,F.jsx)(z.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,F.jsx)(q.Z,{default:!0,href:o,monospace:!0,openNewWindow:!0,small:!0,children:t},"title"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:i},"user"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:n},"createdAt"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:r||"-"},"lastModified")]})),uuid:"pull-requests"})}),[ie]),ce=_.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!==Y&&void 0!==Y&&Y.compare_branch||null===se||void 0===se||!se.find((function(e){return e.name===(null===r||void 0===r?void 0:r.name)}))||X((function(e){return Q(Q({},e),{},{compare_branch:null===r||void 0===r?void 0:r.name})}))}),[r,se,Y]);var ue=(0,h.Db)(_.ZP.pull_requests.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){oe(),X(K)},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,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(b.Z,{children:(0,H.vg)(O)})}),(0,F.jsxs)(g.Z,{mt:R.Mq,children:[(0,F.jsxs)(v.Z,{children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Remote"})}),i&&(0,F.jsx)(j.Z,{inverted:!0}),!i&&(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.VW,{}),beforeIconSize:1.5*R.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,F.jsx)("option",{value:n,children:n},n)}))})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Branch"})}),(0,F.jsxs)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return E(e.target.value)},placeholder:"Choose branch",value:I||"",children:[(0,F.jsx)("option",{value:""}),null===t||void 0===t?void 0:t.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsxs)(f.Z,{beforeIcon:(0,F.jsx)(P.Bf,{size:2*R.iI}),disabled:!n||!I,loading:ne,onClick:function(){V(null),ee({git_custom_branch:(0,c.Z)({action_type:O},O,{branch:I,remote:n})})},primary:!0,children:[(0,H.vg)(O)," ",n," ",n&&I]})}),(N||D)&&(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsx)(x.ZP,{danger:!!D,default:!!N,monospace:!0,preWrap:!0,children:N||D})})]})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(b.Z,{children:"Create pull request"})}),(0,F.jsxs)(g.Z,{mt:R.Mq,children:[i&&(0,F.jsx)(j.Z,{inverted:!0}),!i&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(v.Z,{children:[(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Repository"})}),(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.fy,{}),beforeIconSize:1.5*R.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,F.jsx)("option",{value:n,children:n},n)}))})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Base branch"})}),a&&!ce&&(0,F.jsx)(j.Z,{inverted:!0}),(!a||ce)&&(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{}),beforeIconSize:1.5*R.iI,disabled:!a,monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{base_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===Y||void 0===Y?void 0:Y.base_branch)||"",children:null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)}))})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)("div",{children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Compare branch"})}),a&&!ce&&(0,F.jsx)(j.Z,{inverted:!0}),(!a||ce||(null===Y||void 0===Y?void 0:Y.compare_branch))&&(0,F.jsxs)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{}),beforeIconSize:1.5*R.iI,disabled:!a,monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{compare_branch:e.target.value})}))},placeholder:"Choose branch",value:(null===Y||void 0===Y?void 0:Y.compare_branch)||"",children:[!(null!==se&&void 0!==se&&se.length)&&(null===Y||void 0===Y?void 0:Y.compare_branch)&&(0,F.jsx)("option",{value:null===Y||void 0===Y?void 0:Y.compare_branch,children:null===Y||void 0===Y?void 0:Y.compare_branch}),null===se||void 0===se?void 0:se.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)}))]})]})]}),(0,F.jsx)(g.Z,{mt:1,children:(0,F.jsx)(y.Z,{label:"Title",monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{title:e.target.value})}))},value:(null===Y||void 0===Y?void 0:Y.title)||""})}),(0,F.jsx)(g.Z,{mt:1,children:(0,F.jsx)(Z.Z,{label:"Description",monospace:!0,onChange:function(e){return X((function(n){return Q(Q({},n),{},{body:e.target.value})}))},value:(null===Y||void 0===Y?void 0:Y.body)||""})}),(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Bf,{size:2*R.iI}),disabled:!a||!(null!==Y&&void 0!==Y&&Y.title)||!(null!==Y&&void 0!==Y&&Y.base_branch)||!(null!==Y&&void 0!==Y&&Y.compare_branch),loading:he,onClick:function(){de({pull_request:Q(Q({},Y),{},{repository:a})})},primary:!0,children:"Create new pull request"})})]})]}),(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsx)(U.Z,{visibleMapping:{0:!a},children:(0,F.jsxs)(W.Z,{noPaddingContent:!0,title:te?"Pull requests (".concat(null===ie||void 0===ie?void 0:ie.length,")"):"Pull requests",children:[!a&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(x.ZP,{muted:!0,children:"Please select a repository to view open pull requests."})}),a&&(0,F.jsxs)(F.Fragment,{children:[!te&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(j.Z,{inverted:!0})}),te&&le]})]})})})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsx)(v.Z,{children:(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Hd,{}),linkProps:{href:"/version-control?tab=".concat(A.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:A.uuid})})]})]})},J=r(1210),$=r(46299),ee=r(38341),ne=r(93461),re=r(38626),te=re.default.div.withConfig({displayName:"indexstyle__SpacingStyle",componentId:"sc-el09vr-0"})(["margin-top:","px;"],.5*R.iI),oe=r(7715);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 le(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,c.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}var ce=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)(""),p=a[0],y=a[1],w=(0,d.useState)({}),C=w[0],k=w[1],S=(0,d.useState)({}),O=S[0],I=S[1],E=(0,d.useMemo)((function(){return Object.keys(t).concat(Object.keys(c)).sort()}),[t,c]),M=(0,d.useMemo)((function(){return Object.keys(l||{})}),[l]),A=(0,d.useMemo)((function(){return M.length}),[M]),T=(0,d.useMemo)((function(){return Object.keys(C).length===(null===E||void 0===E?void 0:E.length)}),[C,E]),N=(0,d.useMemo)((function(){return Object.keys(O).length===(null===M||void 0===M?void 0:M.length)}),[O,M]),V=(0,d.useMemo)((function(){return{onErrorCallback:function(e,n){return i({errors:n,response:e})}}}),[i]),G=(0,d.useMemo)((function(){return{onSuccess:function(e){return(0,L.wD)(e,le({callback:function(){r(),k({})}},V))}}}),[r,V]),Y=(0,d.useMemo)((function(){return _.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name)}),[n]),Q=(0,h.Db)(Y,G),K=(0,s.Z)(Q,2),X=K[0],J=K[1].isLoading,$=(0,h.Db)(Y,G),re=(0,s.Z)($,2),ie=re[0],ce=re[1].isLoading,se=(0,h.Db)(Y,{onSuccess:function(e){return(0,L.wD)(e,le({callback:function(){r(),I({})}},V))}}),ue=(0,s.Z)(se,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,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(q.Z,{block:!0,noHoverUnderline:!0,onClick:function(){r(o?{}:t)},preventDefault:!0,children:(0,F.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,F.jsx)(ee.Z,{checked:i&&o,disabled:!i}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(x.ZP,{bold:!0,children:i&&o?"Unselect all":"Select all"})]})}),e.map((function(e){return(0,F.jsx)(te,{children:(0,F.jsx)(q.Z,{block:!0,noHoverUnderline:!0,onClick:function(){return r((function(n){var r=le({},n);return!(null!==r&&void 0!==r&&r[e])?r[e]=!0:delete r[e],r}))},preventDefault:!0,children:(0,F.jsxs)(v.Z,{alignItems:"center",flexDirection:"row",children:[(0,F.jsx)(ee.Z,{checked:!(null===n||void 0===n||!n[e])}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,children:e})]})})},e)}))]})}),[]),fe=(0,d.useMemo)((function(){return(0,oe.Qr)(C)}),[C]),me=_.ZP.git_custom_branches.detail("with_logs",{_format:"with_logs"}),ve=me.data,be=me.mutate,pe=(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)(_.ZP.git_custom_branches.useUpdate(null===n||void 0===n?void 0:n.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){be(),r(),y("")},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),je=(0,s.Z)(ge,2),xe=je[0],Ze=je[1].isLoading,ye=(0,d.useMemo)((function(){return(0,F.jsx)(z.Z,{columnFlex:[1,1,1],columns:[{uuid:"Author"},{uuid:"Date"},{uuid:"Message"}],rows:pe.map((function(e){var n=e.author,r=e.date,t=e.message;return[(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:null===n||void 0===n?void 0:n.name},"author"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:r},"date"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:t},"message")]})),uuid:"git-branch-logs"})}),[pe]);return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsxs)(v.Z,{children:[(0,F.jsxs)(ne.Z,{flex:1,flexDirection:"column",children:[(0,F.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,F.jsx)(g.Z,{my:R.cd,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsx)(g.Z,{mb:R.cd,children:(0,F.jsxs)(v.Z,{flexDirection:"row",children:[(0,F.jsx)(f.Z,{compact:!0,disabled:fe||de||ce,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,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(f.Z,{compact:!0,disabled:fe||J||de,loading:ce,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to undo all changes in the selected files?")&&ie({git_custom_branch:{action_type:"checkout",files:Object.keys(C)}})},children:"Checkout files"})]})}),he(E,C,k,le(le({},t),c),T)]}),(0,F.jsx)(g.Z,{mr:R.cd}),(0,F.jsxs)(ne.Z,{flex:1,flexDirection:"column",children:[(0,F.jsxs)(b.Z,{children:["Staged files ",(null===M||void 0===M?void 0:M.length)>=1&&"(".concat(null===M||void 0===M?void 0:M.length,")")]}),(0,F.jsx)(g.Z,{my:R.cd,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsx)(g.Z,{mb:R.cd,children:(0,F.jsx)(v.Z,{flexDirection:"row",children:(0,F.jsx)(f.Z,{compact:!0,disabled:(0,oe.Qr)(O)||J||ce,loading:de,onClick:function(){ae({git_custom_branch:{action_type:"reset",files:Object.keys(O)}})},secondary:!0,children:"Reset files"})})}),he(M,O,I,l,N)]})]})}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(b.Z,{children:"Commit"})}),(0,F.jsx)(g.Z,{mb:R.cd,children:(0,F.jsx)(U.Z,{children:(0,F.jsx)(W.Z,{noPaddingContent:!0,title:A>=1?"Staged files (".concat(A,")"):"No staged files",children:null===M||void 0===M?void 0:M.map((function(e){return(0,F.jsx)(g.Z,{my:1,px:R.cd,children:(0,F.jsxs)(v.Z,{justifyContent:"space-between",children:[(0,F.jsx)(q.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,F.jsx)(g.Z,{mr:1}),(null===t||void 0===t?void 0:t[e])&&(0,F.jsx)(x.ZP,{warning:!0,children:"Modified after staging"})]})},e)}))})})}),(0,F.jsx)(Z.Z,{label:"Commit message",monospace:!0,onChange:function(e){return y(e.target.value)},ref:u,value:p||""}),(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsxs)(f.Z,{disabled:0===A||!((null===p||void 0===p?void 0:p.length)>=1),loading:Ze,onClick:function(){xe({git_custom_branch:{action_type:"commit",files:M,message:p}})},primary:!0,children:["Commit ",(0,H._6)("file",A,!0)," with message"]}),0===A&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(x.ZP,{danger:!0,small:!0,children:"Please stage at least 1 file before committing."})]})]})})]}),(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsx)(U.Z,{children:(0,F.jsxs)(W.Z,{noPaddingContent:!0,title:"Logs",children:[!ve&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(j.Z,{inverted:!0})}),ve&&ye]})})}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsxs)(v.Z,{children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Hd,{}),linkProps:{href:"/version-control?tab=".concat(D.uuid)},noBackground:!0,noHoverUnderline:!0,sameColorAsText:!0,children:D.uuid}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)(f.Z,{afterIcon:(0,F.jsx)(P.Kw,{}),linkProps:fe?{href:"/version-control?tab=".concat(B.uuid)}:null,noHoverUnderline:!0,primary:fe,sameColorAsText:!0,secondary:!fe,children:["Next: ",B.uuid]})]})]})]})},se=r(12691),ue=r.n(se),ae=r(34376),de=r(55022),he=r(59e3);var fe=function(e){var n=e.actionRemoteName,r=e.branch,t=e.fetchBranch,o=e.loading,i=e.remotes,l=e.setActionRemoteName,c=e.showError,u=(0,ae.useRouter)(),a=(0,d.useRef)(null),Z=(0,d.useState)(null),w=Z[0],C=Z[1],k=(0,d.useState)(null),O=k[0],I=k[1],E=(0,d.useState)(null),M=E[0],A=E[1],B=(0,d.useState)(null),T=B[0],N=B[1],V=(0,d.useState)(!1),G=V[0],Y=V[1],Q=(0,d.useState)(null),K=Q[0],X=Q[1],J=(0,d.useState)(""),$=J[0],ee=J[1],re=(0,d.useState)(""),te=re[0],oe=re[1],ie=(0,d.useState)(null),le=ie[0],ce=ie[1],se=(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===le&&ce(null===r||void 0===r||null===(n=r.sync_config)||void 0===n?void 0:n.repo_path)}),[r,le]);var fe=(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]),me=(0,h.Db)(_.ZP.syncs.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),Y(!1)},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),ve=(0,s.Z)(me,2),be=ve[0],pe=ve[1].isLoading,ge=(0,h.Db)(_.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(e){var n=e.git_custom_branch,r=n.error,o=n.progress;r?(I(r),N(null)):(t(),C(null),I(null),A(null),N(o))},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),je=(0,s.Z)(ge,2),xe=je[0],Ze=je[1].isLoading,ye=(0,h.Db)(_.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),ee(""),oe("")},onErrorCallback:function(e,n){return c({errors:n,response:e})}})}}),we=(0,s.Z)(ye,2),_e=we[0],Pe=we[1].isLoading,Ce=(0,h.Db)(_.ZP.git_custom_branches.useUpdate(null===r||void 0===r?void 0:r.name),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){t(),X(null)},onErrorCallback:function(e,n){X(null),c({errors:n,response:e})}})}}),ke=(0,s.Z)(Ce,2),Se=ke[0],Oe=ke[1].isLoading,Ie=_.ZP.oauths.detail(de.G.GITHUB,{redirect_uri:encodeURIComponent(window.location.href)}),Ee=Ie.data,Me=Ie.mutate,De=(0,d.useMemo)((function(){return(null===Ee||void 0===Ee?void 0:Ee.oauth)||{}}),[Ee]),Ae=(0,h.Db)(_.ZP.oauths.useCreate(),{onSuccess:function(e){return(0,L.wD)(e,{callback:function(){Me()},onErrorCallback:function(e,n){c({errors:n,response:e})}})}}),Be=(0,s.Z)(Ae,2),Te=Be[0],Ne=Be[1].isLoading,Re=((0,he.iV)()||{}).access_token;(0,d.useEffect)((function(){!De||null!==De&&void 0!==De&&De.authenticated||!Re||Te({oauth:{provider:de.G.GITHUB,token:Re}})}),[Re,Te,De]);var He=(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,F.jsxs)(g.Z,{mt:R.Mq,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsxs)(v.Z,{alignItems:"center",justifyContent:"space-between",children:[(0,F.jsxs)(ne.Z,{alignItems:"center",children:[(0,F.jsx)(x.ZP,{bold:!0,children:r}),(0,F.jsx)(g.Z,{mx:1,children:(0,F.jsx)(P._Q,{muted:!0})}),null===o||void 0===o?void 0:o.map((function(e){return(0,F.jsx)(g.Z,{mr:1,children:(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:e})},e)}))]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(f.Z,{compact:!0,disabled:Oe&&K!==r,iconOnly:!0,loading:Oe&&K===r,noBackground:!0,onClick:function(){"undefined"!==typeof location&&window.confirm("Are you sure you want to remove remote ".concat(r,"?"))&&(X(r),Se({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,F.jsx)(P.rF,{})})]})}),(0,F.jsx)(U.Z,{children:(0,F.jsxs)(W.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,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(x.ZP,{muted:!0,children:"This remote has no refs."})}),(null===t||void 0===t?void 0:t.length)>=1&&(0,F.jsx)(z.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,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:t},"ref-name"),(0,F.jsx)(x.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,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.date},"date"),(0,F.jsx)(x.ZP,{default:!0,monospace:!0,small:!0,children:null===r||void 0===r?void 0:r.message},"message")]})),uuid:"git-branch-remotes-refs"})]})}),(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsx)(m.Z,{light:!0})})]},r)}))}),[Oe,K,i,Se]);return(0,F.jsxs)(F.Fragment,{children:[Ee&&(0,F.jsxs)(g.Z,{mb:R.HN,children:[(null===De||void 0===De?void 0:De.authenticated)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.fy,{size:2*R.iI}),disabled:!0,children:"Successfully authenticated with GitHub"}),(0,F.jsx)(g.Z,{mt:1,children:(0,F.jsx)(x.ZP,{muted:!0,children:"You can pull, push, and create pull requests on GitHub."})})]}),!(null!==De&&void 0!==De&&De.authenticated)&&(null===De||void 0===De?void 0:De.url)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.fy,{size:2*R.iI}),loading:Ne,onClick:function(){return u.push(null===De||void 0===De?void 0:De.url)},primary:!0,children:"Authenticate with GitHub"}),(0,F.jsx)(g.Z,{mt:1,children:(0,F.jsx)(x.ZP,{muted:!0,children:"Authenticating with GitHub will allow you to pull, push, and create pull requests on GitHub."})})]})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(b.Z,{children:"Setup"}),(0,F.jsxs)(g.Z,{mt:R.Mq,children:[(0,F.jsxs)(g.Z,{mb:1,children:[(0,F.jsx)(x.ZP,{bold:!0,large:!0,children:se?"Git init directory":"Initialize Git directory"}),!se&&(0,F.jsxs)(x.ZP,{muted:!0,children:["Enter the directory you want to initialize git in. For example, ",(0,F.jsx)(x.ZP,{bold:!0,inline:!0,monospace:!0,muted:!0,children:"/home/src/default_repo"}),"."]}),se&&(0,F.jsxs)(x.ZP,{muted:!0,children:["If the directory below is blank, then the current working directory will be used to initialize git.",(0,F.jsx)("br",{}),"If git hasn\u2019t been initialized in the directory below, Mage will automatically run git init for you."]})]}),(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsx)(y.Z,{disabled:se&&!G,label:"Git directory",monospace:!0,onChange:function(e){return ce(e.target.value)},ref:a,value:le||""}),(0,F.jsx)(g.Z,{mr:1}),(!se||G)&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(f.Z,{compact:!0,disabled:!se&&!le,loading:pe,onClick:function(){be({sync:{repo_path:le}})},primary:!0,small:!0,children:"Save"}),se&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(q.Z,{onClick:function(){return Y(!1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Cancel"})]})]}),se&&!G&&(0,F.jsx)(q.Z,{onClick:function(){Y(!0),setTimeout((function(){var e;return null===a||void 0===a||null===(e=a.current)||void 0===e?void 0:e.focus()}),1)},preventDefault:!0,sameColorAsText:!0,small:!0,children:"Edit"})]})]})]}),se&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsxs)(b.Z,{children:["Remotes",!o&&i?" (".concat(null===i||void 0===i?void 0:i.length,")"):""]}),o&&(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsx)(j.Z,{inverted:!0})}),!o&&He,(0,F.jsx)(g.Z,{mt:R.Mq,children:(0,F.jsxs)(v.Z,{alignItems:"flex-start",children:[(0,F.jsx)(y.Z,{label:"New remote name",monospace:!0,onChange:function(e){var n;return ee(null===e||void 0===e||null===(n=e.target)||void 0===n?void 0:n.value)},value:$||""}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)(v.Z,{flexDirection:"column",children:[(0,F.jsx)(y.Z,{label:"Remote URL",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:te||""}),(0,F.jsx)(g.Z,{mt:1,children:(0,F.jsxs)(x.ZP,{muted:!0,small:!0,children:["Use the https URL if you",(0,F.jsx)("br",{}),"authenticated with GitHub above."]})})]}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.mm,{size:2*R.iI}),disabled:!$||!te,loading:Pe,onClick:function(){_e({git_custom_branch:{action_type:"add_remote",remote:{name:$,url:te}}})},primary:!0,children:"Create new remote"})]})})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(b.Z,{children:"Actions"}),(0,F.jsxs)(g.Z,{mt:R.Mq,children:[(0,F.jsxs)(g.Z,{mb:R.Mq,children:[(0,F.jsx)(g.Z,{mb:1,children:(0,F.jsx)(x.ZP,{bold:!0,muted:!0,children:"Current branch"})}),(null===r||void 0===r?void 0:r.name)&&(0,F.jsxs)(v.Z,{alignItems:"center",children:[(0,F.jsx)(x.ZP,{monospace:!0,children:null===r||void 0===r?void 0:r.name}),(0,F.jsx)(g.Z,{mr:R.cd}),(0,F.jsx)(ue(),{href:"/version-control?tab=".concat(D.uuid),passHref:!0,children:(0,F.jsx)(q.Z,{small:!0,children:"Switch branch"})})]})]}),(0,F.jsxs)(v.Z,{children:[(0,F.jsx)(p.Z,{onChange:function(e){return A(e.target.value)},placeholder:"Action",value:M||"",children:(0,F.jsx)("option",{value:S,children:(0,H.vg)(S)})}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsx)(p.Z,{beforeIcon:(0,F.jsx)(P.VW,{}),beforeIconSize:1.5*R.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,F.jsx)("option",{value:n,children:n},n)}))}),(0,F.jsx)(g.Z,{mr:1}),(0,F.jsxs)(p.Z,{beforeIcon:(0,F.jsx)(P.I0,{}),beforeIconSize:1.5*R.iI,monospace:!0,onChange:function(e){return C(e.target.value)},value:w||"",children:[(0,F.jsx)("option",{value:"",children:"All branches"}),null===fe||void 0===fe?void 0:fe.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)}))]})]}),(0,F.jsxs)(g.Z,{mt:R.cd,children:[(0,F.jsx)(f.Z,{beforeIcon:(0,F.jsx)(P.Bf,{size:2*R.iI}),disabled:!M||!n,loading:Ze,onClick:function(){N(null),xe({git_custom_branch:{action_type:M,pull:{branch:w,remote:n}}})},primary:!0,children:M?(0,H.vg)(M):"Execute action"}),(T||O)&&(0,F.jsx)(g.Z,{mt:R.cd,children:(0,F.jsx)(x.ZP,{danger:!!O,default:!!T,monospace:!0,preWrap:!0,children:T||O})})]})]})]}),(0,F.jsxs)(g.Z,{mb:R.HN,children:[(0,F.jsx)(g.Z,{mb:R.HN,children:(0,F.jsx)(m.Z,{light:!0})}),(0,F.jsx)(v.Z,{children:(0,F.jsxs)(f.Z,{afterIcon:(0,F.jsx)(P.Kw,{}),linkProps:{href:"/version-control?tab=".concat(D.uuid)},noHoverUnderline:!0,sameColorAsText:!0,secondary:!0,children:["Next: ",D.uuid]})})]})]})]})},me=r(2005),ve=re.default.div.withConfig({displayName:"indexstyle__DiffContainerStyle",componentId:"sc-1fo4nus-0"})(["pre{font-family:",";}"],me.Vp),be={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(91427),ge=r(32821),je=r(33766),xe=r(24224),Ze=r(9728);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 we(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 _e=function(){var e=(0,d.useRef)(null),n=(0,d.useRef)(null),r=(0,Ze.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)(N[0]),Z=b[0],y=b[1],P=(0,he.iV)();(0,d.useEffect)((function(){null!==P&&void 0!==P&&P.tab&&y(N.find((function(e){return e.uuid===(null===P||void 0===P?void 0:P.tab)})))}),[P]);var C=_.ZP.git_custom_branches.list({include_remote_branches:1}),k=C.data,S=C.mutate,O=(0,d.useMemo)((function(){return null===k||void 0===k?void 0:k.git_custom_branches}),[k]),I=_.ZP.git_custom_branches.detail("current",{_format:"with_files"}),H=I.data,L=I.mutate,U=(0,d.useMemo)((function(){return(null===H||void 0===H?void 0:H.git_custom_branch)||{}}),[H]),W=(0,d.useMemo)((function(){return(null===U||void 0===U?void 0:U.files)||[]}),[U]),q=_.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]),ee=(0,d.useState)(null),ne=ee[0],re=ee[1],te=(0,d.useCallback)((function(e){(0,pe.t8)(E,e),re(e)}),[]);(0,d.useEffect)((function(){var e=(0,pe.U2)(E,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 ie=(0,d.useState)((0,pe.U2)(M,"")),le=ie[0],se=ie[1],ue=(0,d.useCallback)((function(e){(0,pe.t8)(M,e),se(e)}),[]),ae=(0,d.useMemo)((function(){return(0,xe.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,pe.U2)(M,null);if(z&&e){var n=null===ae||void 0===ae?void 0:ae.find((function(n){return n.name===e}));ue(n?null===n||void 0===n?void 0:n.name:null)}}),[z,ae,ue]);var de=_.ZP.git_files.detail(f?encodeURIComponent(f):null,{base_branch:i}),me=de.data,ye=de.mutate,_e=(0,d.useMemo)((function(){return null===me||void 0===me?void 0:me.git_file}),[me]);(0,d.useEffect)((function(){i&&ye()}),[i,ye]),(0,d.useEffect)((function(){null!==me&&void 0!==me&&me.error&&t({errors:null===me||void 0===me?void 0:me.error,response:me})}),[me,t]);var Pe=(0,d.useMemo)((function(){var e,n,r;return{modifiedFiles:null===U||void 0===U||null===(e=U.modified_files)||void 0===e?void 0:e.reduce((function(e,n){return we(we({},e),{},(0,c.Z)({},n,!0))}),{}),stagedFiles:null===U||void 0===U||null===(n=U.staged_files)||void 0===n?void 0:n.reduce((function(e,n){return we(we({},e),{},(0,c.Z)({},n,!0))}),{}),untrackedFiles:null===U||void 0===U||null===(r=U.untracked_files)||void 0===r?void 0:r.reduce((function(e,n){return we(we({},e),{},(0,c.Z)({},n,!0))}),{})}}),[U]),Ce=Pe.modifiedFiles,ke=void 0===Ce?{}:Ce,Se=Pe.stagedFiles,Oe=void 0===Se?{}:Se,Ie=Pe.untrackedFiles,Ee=void 0===Ie?{}:Ie;(0,d.useEffect)((function(){f&&(0,oe.Qr)(ke)&&(0,oe.Qr)(Oe)&&(0,oe.Qr)(Ee)&&v(null)}),[ke,f,Oe,Ee]);var Me=(0,d.useMemo)((function(){return(null===W||void 0===W?void 0:W.length)>=1?(0,F.jsx)($.Z,{allowEmptyFolders:!0,disableContextMenu:!0,fetchFileTree:L,files:W,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,ge.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!==Oe&&void 0!==Oe&&Oe[i]&&(n="S",r="Staged",l.success=!0),o&&!n?null:(0,F.jsx)(g.Z,{mx:1,children:(0,F.jsx)(w.Z,{appearBefore:!0,label:r,widthFitContent:!0,children:(0,F.jsx)(x.ZP,we(we({},l),{},{monospace:!0,rightAligned:!0,small:!0,children:n}))})})},useRootFolder:!0}):(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(x.ZP,{monospace:!0,muted:!0,children:"No files modified"})})}),[i,L,e,W,ke,n,v,Oe,Ee]),De=(0,d.useMemo)((function(){return!me||!_e||f&&(null===_e||void 0===_e?void 0:_e.filename)!==f}),[me,_e,f]),Ae=(0,d.useMemo)((function(){if(!f)return null;var e=_e||{},n=e.content,r=e.content_from_base;return(0,F.jsxs)(ve,{children:[!i&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(x.ZP,{muted:!0,children:"Please select a base branch to see the file diffs."})}),(null===_e||void 0===_e?void 0:_e.error)&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(x.ZP,{danger:!0,monospace:!0,preWrap:!0,children:null===_e||void 0===_e?void 0:_e.error})}),i&&!(null!==_e&&void 0!==_e&&_e.error)&&(0,F.jsxs)(F.Fragment,{children:[De&&(0,F.jsx)(g.Z,{p:R.cd,children:(0,F.jsx)(j.Z,{inverted:!0})}),!De&&(0,F.jsx)(a(),{compareMethod:u.DiffMethod.WORDS,newValue:n||"",oldValue:r||"",renderContent:function(e){return(0,F.jsx)(x.ZP,{monospace:!0,children:e})},splitView:!0,styles:be,useDarkTheme:!0})]})]})}),[i,_e,De,f]),Be=(0,d.useMemo)((function(){return H&&null!==U&&void 0!==U&&U.name?N:N.slice(0,1)}),[U,H]),Te=(0,d.useMemo)((function(){return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{marginBottom:.5*R.iI,marginTop:.5*R.iI},children:(0,F.jsx)(G.Z,{compact:!0,onClickTab:function(e){var n=e.uuid;(0,je.u7)({tab:n})},selectedTabUUID:null===Z||void 0===Z?void 0:Z.uuid,tabs:Be})}),(0,F.jsx)(m.Z,{light:!0})]})}),[Z,Be]),Ne=(0,d.useMemo)((function(){return(0,F.jsx)(fe,{actionRemoteName:ne,branch:U,fetchBranch:function(){L(),Y()},loading:!z,remotes:K,setActionRemoteName:te,showError:t})}),[ne,U,z,L,Y,K,te,t]),Re=(0,d.useMemo)((function(){return(0,F.jsx)(V,{actionRemoteName:ne,branch:U,branches:O,fetchBranch:L,fetchBranches:S,remotes:K,setActionRemoteName:te,showError:t})}),[ne,U,O,L,S,K,te,t]),He=(0,d.useMemo)((function(){return(0,F.jsx)(ce,{branch:U,fetchBranch:L,modifiedFiles:ke,setSelectedFilePath:v,showError:t,stagedFiles:Oe,untrackedFiles:Ee})}),[U,L,ke,v,t,Oe,Ee]),Le=(0,d.useMemo)((function(){return(0,F.jsx)(X,{actionRemoteName:ne,branch:U,branches:O,fetchBranch:L,loading:!z,modifiedFiles:ke,remotes:K,repositories:ae,repositoryName:le,setActionRemoteName:te,setRepositoryName:ue,showError:t,stagedFiles:Oe})}),[ne,U,O,z,L,ke,K,ae,le,te,ue,t,Oe]);return(0,F.jsx)(J.Z,{after:Ae,afterHidden:!f,afterWidth:40*R.iI,before:(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(g.Z,{p:1,children:(0,F.jsx)(p.Z,{compact:!0,label:"Base branch",onChange:function(e){return l(e.target.value)},ref:n,small:!0,value:i||"",children:null===O||void 0===O?void 0:O.map((function(e){var n=e.name;return(0,F.jsx)("option",{value:n,children:n},n)}))})}),Me]}),mainContainerHeader:Te,title:"Version control",uuid:"Version control/index",children:(0,F.jsxs)(g.Z,{p:R.cd,children:[!H&&(0,F.jsx)(j.Z,{inverted:!0}),H&&(0,F.jsxs)(F.Fragment,{children:[T.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Ne,D.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Re,A.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&He,B.uuid===(null===Z||void 0===Z?void 0:Z.uuid)&&Le]})]})})};function Pe(){return(0,F.jsx)(_e,{})}Pe.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 Ce=(0,l.Z)(Pe)},33766:function(e,n,r){"use strict";r.d(n,{O2:function(){return d},g_:function(){return f},u7:function(){return h}});var t=r(75582),o=r(82394),i=r(34376),l=r.n(i),c=r(59e3),s=r(24224);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 a(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 d="_offset";function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.preserveParams,o=n.pushHistory,i=n.replaceParams,s=(0,c.iV)(),u={};r&&r.forEach((function(e){s[e]&&(u[e]=s[e])}));var d,h=i?u:s;d=window.location.pathname;var f=o?l().push:l().replace,m=a(a({},h),e);Object.entries(e).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1];"undefined"!==typeof o&&null!==o||delete m[r]}));var v=(0,c.uM)(m);v.length>=1&&(v="?".concat(v));var b="".concat(d.split("?")[0]).concat(v),p=l().router.basePath;return p&&b.startsWith(p)&&(b=b.replace(p,"")),f(l().router.pathname,b,{shallow:!0})}function f(e,n,r){var o=r.addingMultipleValues,i=r.isList,l=r.itemsPerPage,c=r.pushHistory,u=void 0!==c&&c,f=r.resetLimitParams,m=a({},e);o?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1];if(Array.isArray(o)){var i="".concat(r,"[]");m[i]=o.map(String)}})):i?Object.entries(n).forEach((function(e){var n=(0,t.Z)(e,2),r=n[0],o=n[1],i=String(o),l="".concat(r,"[]"),c=m[l];c&&Array.isArray(c)?(c=c.map(String)).includes(i)?m[l]=(0,s.Od)(c,(function(e){return e===i})):m[l]=c.concat(i):m[l]=[i]})):m=a(a({},m),n),f&&(m._limit=l||20,m[d]=0),h(m,{pushHistory:u})}},75302:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/version-control",function(){return r(6343)}])}},function(e){e.O(0,[844,9902,7011,7768,1424,1005,7815,3654,6299,9774,2888,179],(function(){return n=75302,e(e.s=n);var n}));var n=e.O();_N_E=n}]);