mage-ai 0.9.47__py3-none-any.whl → 0.9.48__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 (309) hide show
  1. mage_ai/api/presenters/PipelinePresenter.py +1 -0
  2. mage_ai/data_preparation/executors/block_executor.py +21 -1
  3. mage_ai/data_preparation/executors/pipeline_executor.py +19 -4
  4. mage_ai/data_preparation/models/block/__init__.py +50 -20
  5. mage_ai/data_preparation/models/block/data_integration/mixins.py +6 -6
  6. mage_ai/data_preparation/models/block/data_integration/utils.py +2 -2
  7. mage_ai/data_preparation/models/block/sql/bigquery.py +2 -2
  8. mage_ai/data_preparation/models/block/sql/snowflake.py +2 -2
  9. mage_ai/data_preparation/models/block/sql/trino.py +2 -2
  10. mage_ai/data_preparation/models/block/sql/utils/shared.py +2 -2
  11. mage_ai/data_preparation/models/block/utils.py +25 -16
  12. mage_ai/data_preparation/models/pipeline.py +5 -0
  13. mage_ai/data_preparation/models/project/__init__.py +0 -2
  14. mage_ai/io/chroma.py +13 -4
  15. mage_ai/orchestration/db/models/schedules.py +71 -0
  16. mage_ai/orchestration/pipeline_scheduler.py +1 -70
  17. mage_ai/server/constants.py +1 -1
  18. mage_ai/server/frontend_dist/404.html +2 -2
  19. mage_ai/server/frontend_dist/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  20. mage_ai/server/frontend_dist/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  21. mage_ai/server/frontend_dist/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  22. mage_ai/server/frontend_dist/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  23. mage_ai/server/frontend_dist/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  24. mage_ai/server/frontend_dist/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  25. mage_ai/server/frontend_dist/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  26. mage_ai/server/frontend_dist/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  27. mage_ai/server/frontend_dist/_next/static/chunks/{7858-d9df72e95e438284.js → 7858-26a5a5d04fa3c703.js} +1 -1
  28. mage_ai/server/frontend_dist/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  29. mage_ai/server/frontend_dist/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  30. mage_ai/server/frontend_dist/_next/static/chunks/{1845-5ce774d5ab81ed57.js → 8731-2f78ec7b7760be8f.js} +1 -1
  31. mage_ai/server/frontend_dist/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  32. mage_ai/server/frontend_dist/_next/static/chunks/{9264-cc44b07f248707b0.js → 9264-727704fc34e74ae0.js} +1 -1
  33. mage_ai/server/frontend_dist/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  34. mage_ai/server/frontend_dist/_next/static/chunks/pages/{_app-78c4a077a2f279c2.js → _app-8254de4f793643d0.js} +1 -1
  35. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  36. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  37. mage_ai/server/frontend_dist/_next/static/chunks/pages/{files-b37d221eb5ddc248.js → files-85cecae037fd7a70.js} +1 -1
  38. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  39. mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  40. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/{[...slug]-7adc543fc490367a.js → [...slug]-286133386c97a2b6.js} +1 -1
  41. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-3da370825153056c.js +1 -0
  42. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{files-fe6e73463a20d67c.js → files-39b73da5a15590f6.js} +1 -1
  43. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js → frontend_dist/_next/static/chunks/pages/manage/settings-666748ff5d101411.js} +1 -1
  44. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  45. mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/{new-abd8571907664fdf.js → new-1932ce64823b372b.js} +1 -1
  46. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  47. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js → frontend_dist/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  48. mage_ai/server/frontend_dist/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  49. mage_ai/server/frontend_dist/_next/static/chunks/pages/{overview-f0c40645f385f23f.js → overview-7b2ba2d5405c05fe.js} +1 -1
  50. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  51. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  52. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  53. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-571c0962333b92f0.js → dashboard-7bca6f718b939934.js} +1 -1
  54. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  55. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  56. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-15d307e6ba934a56.js} +1 -1
  57. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  58. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-6d1afeb4a84f50f7.js → monitors-25dbd73201d99e80.js} +1 -1
  59. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  60. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  61. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js → frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js} +1 -1
  62. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  63. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  64. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  65. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  66. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js → frontend_dist/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js} +1 -1
  67. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  68. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  69. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  70. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  71. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  72. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  73. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  74. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  75. mage_ai/server/frontend_dist/_next/static/chunks/pages/{sign-in-99e2748e3c1d57a3.js → sign-in-f3a33e8f83abdb58.js} +1 -1
  76. mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  77. mage_ai/server/frontend_dist/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  78. mage_ai/server/frontend_dist/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  79. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  80. mage_ai/server/frontend_dist/_next/static/chunks/pages/{version-control-dd4fb405695f74bf.js → version-control-0e0c2713a2922be7.js} +1 -1
  81. mage_ai/server/frontend_dist/_next/static/xxcdnITr3IkTdETH5ghqw/_buildManifest.js +1 -0
  82. mage_ai/server/frontend_dist/block-layout.html +2 -2
  83. mage_ai/server/frontend_dist/compute.html +5 -5
  84. mage_ai/server/frontend_dist/files.html +5 -5
  85. mage_ai/server/frontend_dist/global-data-products/[...slug].html +5 -5
  86. mage_ai/server/frontend_dist/global-data-products.html +5 -5
  87. mage_ai/server/frontend_dist/global-hooks/[...slug].html +5 -5
  88. mage_ai/server/frontend_dist/global-hooks.html +5 -5
  89. mage_ai/server/frontend_dist/index.html +2 -2
  90. mage_ai/server/frontend_dist/manage/files.html +5 -5
  91. mage_ai/server/frontend_dist/manage/settings.html +5 -5
  92. mage_ai/server/frontend_dist/manage/users/[user].html +5 -5
  93. mage_ai/server/frontend_dist/manage/users/new.html +5 -5
  94. mage_ai/server/frontend_dist/manage/users.html +5 -5
  95. mage_ai/server/frontend_dist/manage.html +5 -5
  96. mage_ai/server/frontend_dist/oauth.html +3 -3
  97. mage_ai/server/frontend_dist/overview.html +5 -5
  98. mage_ai/server/frontend_dist/pipeline-runs.html +5 -5
  99. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  100. mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +5 -5
  101. mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +5 -5
  102. mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +2 -2
  103. mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +5 -5
  104. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  105. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  106. mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +5 -5
  107. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +5 -5
  108. mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +5 -5
  109. mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +5 -5
  110. mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +5 -5
  111. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  112. mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +5 -5
  113. mage_ai/server/frontend_dist/pipelines/[pipeline].html +2 -2
  114. mage_ai/server/frontend_dist/pipelines.html +5 -5
  115. mage_ai/server/frontend_dist/settings/account/profile.html +5 -5
  116. mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +5 -5
  117. mage_ai/server/frontend_dist/settings/workspace/permissions.html +5 -5
  118. mage_ai/server/frontend_dist/settings/workspace/preferences.html +5 -5
  119. mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +5 -5
  120. mage_ai/server/frontend_dist/settings/workspace/roles.html +5 -5
  121. mage_ai/server/frontend_dist/settings/workspace/sync-data.html +5 -5
  122. mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +5 -5
  123. mage_ai/server/frontend_dist/settings/workspace/users.html +5 -5
  124. mage_ai/server/frontend_dist/settings.html +2 -2
  125. mage_ai/server/frontend_dist/sign-in.html +11 -11
  126. mage_ai/server/frontend_dist/templates/[...slug].html +5 -5
  127. mage_ai/server/frontend_dist/templates.html +5 -5
  128. mage_ai/server/frontend_dist/terminal.html +5 -5
  129. mage_ai/server/frontend_dist/test.html +4 -4
  130. mage_ai/server/frontend_dist/triggers.html +5 -5
  131. mage_ai/server/frontend_dist/version-control.html +5 -5
  132. mage_ai/server/frontend_dist_base_path_template/404.html +2 -2
  133. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-0f9a12782f0aaae6.js +1 -0
  134. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-14191a781cf2f286.js +1 -0
  135. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-a7a52bcaaa687b07.js +1 -0
  136. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-e81a62f33337ca06.js +1 -0
  137. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-3cb1f765210dd7a4.js +1 -0
  138. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4138-2c16e6d2f22246cd.js +1 -0
  139. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{5499-76cf8f023c6b0985.js → 5499-c2853ef57d39fde8.js} +1 -1
  140. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6990-303bb87fc50f1755.js +1 -0
  141. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{7858-d9df72e95e438284.js → 7858-26a5a5d04fa3c703.js} +1 -1
  142. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-9d6a7cea289e29ff.js +1 -0
  143. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-608d62c0eef1f29a.js +1 -0
  144. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{1845-5ce774d5ab81ed57.js → 8731-2f78ec7b7760be8f.js} +1 -1
  145. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-93d18aaecef0685b.js +1 -0
  146. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{9264-cc44b07f248707b0.js → 9264-727704fc34e74ae0.js} +1 -1
  147. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-48fba6b4e6966fb7.js +1 -0
  148. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{_app-78c4a077a2f279c2.js → _app-8254de4f793643d0.js} +1 -1
  149. mage_ai/server/{frontend_dist/_next/static/chunks/pages/block-layout-a24cb24b6f08bbc9.js → frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-b926f6eb1ee9a53b.js} +1 -1
  150. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a9402b51e9fe748e.js +1 -0
  151. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{files-b37d221eb5ddc248.js → files-85cecae037fd7a70.js} +1 -1
  152. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/{[...slug]-cfd68e760ae00958.js → [...slug]-c3c9523ea8072c11.js} +1 -1
  153. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-c3b79ef31007f95b.js → global-data-products-4d046f15202a1c8d.js} +1 -1
  154. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/{[...slug]-7adc543fc490367a.js → [...slug]-286133386c97a2b6.js} +1 -1
  155. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-3da370825153056c.js +1 -0
  156. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{files-fe6e73463a20d67c.js → files-39b73da5a15590f6.js} +1 -1
  157. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/settings-60845f0b59142f32.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-666748ff5d101411.js} +1 -1
  158. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users/[user]-9384c5f1efa2ac18.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-be27631e67dbe070.js} +1 -1
  159. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/{new-abd8571907664fdf.js → new-1932ce64823b372b.js} +1 -1
  160. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage/users-28a930b148d99766.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-ed509c75cf23f0f5.js} +1 -1
  161. mage_ai/server/{frontend_dist/_next/static/chunks/pages/manage-d8a38b5d1f50e798.js → frontend_dist_base_path_template/_next/static/chunks/pages/manage-1feebec1124123fc.js} +1 -1
  162. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{oauth-8bb62c4f6a511c43.js → oauth-e9b8f19c30381c28.js} +1 -1
  163. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{overview-f0c40645f385f23f.js → overview-7b2ba2d5405c05fe.js} +1 -1
  164. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-70fc3351bd11025f.js +1 -0
  165. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-6ee3b88a5bb4ce94.js +1 -0
  166. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-c9cf383bc13ce7b8.js +1 -0
  167. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{dashboard-571c0962333b92f0.js → dashboard-7bca6f718b939934.js} +1 -1
  168. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-c119f630038b0685.js +1 -0
  169. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-146051325c92d742.js +1 -0
  170. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-ddddcddd2f74b4f6.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-15d307e6ba934a56.js} +1 -1
  171. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-4a238307feddb522.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-f6196e563b960e5c.js} +1 -1
  172. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/{monitors-6d1afeb4a84f50f7.js → monitors-25dbd73201d99e80.js} +1 -1
  173. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-06e55db757959ef8.js +1 -0
  174. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-2d20b2cd08907afd.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-ec3c45cfa027db58.js} +1 -1
  175. mage_ai/server/{frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-11363aa58d51f4e1.js → frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-495e877aa7ed709e.js} +1 -1
  176. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-49adfeed5157d92b.js +1 -0
  177. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6143e028225390f5.js +1 -0
  178. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-0886f6320fef7131.js +1 -0
  179. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-e82a763d742cc034.js +1 -0
  180. mage_ai/server/{frontend_dist/_next/static/chunks/pages/settings/account/profile-3c8f062913c66f3e.js → frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-50d20fa715d454af.js} +1 -1
  181. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-b78b1be5b9ed84b9.js → [...slug]-2bbd63b7e93a8600.js} +1 -1
  182. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{permissions-37b78a436eeab258.js → permissions-4ea156c39608caab.js} +1 -1
  183. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-f3c29ec53ee35795.js +1 -0
  184. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-db05a80d18c168e5.js → [...slug]-64ec8928d2542f3c.js} +1 -1
  185. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-f55c77e4f46c8d33.js → roles-835e6ec2a48ec583.js} +1 -1
  186. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{sync-data-2a1f8737561fdd94.js → sync-data-0769149af025de30.js} +1 -1
  187. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-e3bf6e5d8bb250c4.js → [...slug]-612a65c42bcadef0.js} +1 -1
  188. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{users-20f0a050a42a015d.js → users-e3365b4029a8db33.js} +1 -1
  189. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{sign-in-99e2748e3c1d57a3.js → sign-in-f3a33e8f83abdb58.js} +1 -1
  190. mage_ai/server/{frontend_dist/_next/static/chunks/pages/templates/[...slug]-f44ccd1499ffd23a.js → frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-f264097bf8120f31.js} +1 -1
  191. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{templates-1bfaa1c50e844813.js → templates-406e13cc5c4caab4.js} +1 -1
  192. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{terminal-ed121e305169cf1c.js → terminal-ef8ad878e5e7bb2f.js} +1 -1
  193. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-a90728798f964700.js +1 -0
  194. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{version-control-dd4fb405695f74bf.js → version-control-0e0c2713a2922be7.js} +1 -1
  195. mage_ai/server/frontend_dist_base_path_template/_next/static/gDn6inKdLyj35NvURBSCV/_buildManifest.js +1 -0
  196. mage_ai/server/frontend_dist_base_path_template/block-layout.html +2 -2
  197. mage_ai/server/frontend_dist_base_path_template/compute.html +5 -5
  198. mage_ai/server/frontend_dist_base_path_template/files.html +5 -5
  199. mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +5 -5
  200. mage_ai/server/frontend_dist_base_path_template/global-data-products.html +5 -5
  201. mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +5 -5
  202. mage_ai/server/frontend_dist_base_path_template/global-hooks.html +5 -5
  203. mage_ai/server/frontend_dist_base_path_template/index.html +2 -2
  204. mage_ai/server/frontend_dist_base_path_template/manage/files.html +5 -5
  205. mage_ai/server/frontend_dist_base_path_template/manage/settings.html +5 -5
  206. mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +5 -5
  207. mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +5 -5
  208. mage_ai/server/frontend_dist_base_path_template/manage/users.html +5 -5
  209. mage_ai/server/frontend_dist_base_path_template/manage.html +5 -5
  210. mage_ai/server/frontend_dist_base_path_template/oauth.html +3 -3
  211. mage_ai/server/frontend_dist_base_path_template/overview.html +5 -5
  212. mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +5 -5
  213. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +5 -5
  214. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +5 -5
  215. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +5 -5
  216. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +2 -2
  217. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +5 -5
  218. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +5 -5
  219. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +5 -5
  220. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +5 -5
  221. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +5 -5
  222. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +5 -5
  223. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +5 -5
  224. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +5 -5
  225. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +5 -5
  226. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +5 -5
  227. mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +2 -2
  228. mage_ai/server/frontend_dist_base_path_template/pipelines.html +5 -5
  229. mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +5 -5
  230. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +5 -5
  231. mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +5 -5
  232. mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +5 -5
  233. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +5 -5
  234. mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +5 -5
  235. mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +5 -5
  236. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +5 -5
  237. mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +5 -5
  238. mage_ai/server/frontend_dist_base_path_template/settings.html +2 -2
  239. mage_ai/server/frontend_dist_base_path_template/sign-in.html +10 -10
  240. mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +5 -5
  241. mage_ai/server/frontend_dist_base_path_template/templates.html +5 -5
  242. mage_ai/server/frontend_dist_base_path_template/terminal.html +5 -5
  243. mage_ai/server/frontend_dist_base_path_template/test.html +4 -4
  244. mage_ai/server/frontend_dist_base_path_template/triggers.html +5 -5
  245. mage_ai/server/frontend_dist_base_path_template/version-control.html +5 -5
  246. mage_ai/server/server.py +2 -0
  247. mage_ai/streaming/sources/nats_js.py +12 -1
  248. mage_ai/tests/data_preparation/executors/test_block_executor.py +2 -0
  249. mage_ai/tests/data_preparation/models/test_pipeline.py +5 -0
  250. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/METADATA +3 -3
  251. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/RECORD +257 -257
  252. mage_ai/server/frontend_dist/_next/static/N3FS4bHv0jpYeeg672uYK/_buildManifest.js +0 -1
  253. mage_ai/server/frontend_dist/_next/static/chunks/1952-57858e7445d24413.js +0 -1
  254. mage_ai/server/frontend_dist/_next/static/chunks/2717-92cdffd87b6f6e05.js +0 -1
  255. mage_ai/server/frontend_dist/_next/static/chunks/3419-715ca383fa15a5ef.js +0 -1
  256. mage_ai/server/frontend_dist/_next/static/chunks/3437-b4d6a037cf5781f8.js +0 -1
  257. mage_ai/server/frontend_dist/_next/static/chunks/3943-c9fb980f03df6450.js +0 -1
  258. mage_ai/server/frontend_dist/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  259. mage_ai/server/frontend_dist/_next/static/chunks/722-900f786d24f91b2e.js +0 -1
  260. mage_ai/server/frontend_dist/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  261. mage_ai/server/frontend_dist/_next/static/chunks/8487-8e1c09546dff4dbf.js +0 -1
  262. mage_ai/server/frontend_dist/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  263. mage_ai/server/frontend_dist/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  264. mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  265. mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +0 -1
  266. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  267. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +0 -1
  268. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +0 -1
  269. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +0 -1
  270. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  271. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +0 -1
  272. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  273. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +0 -1
  274. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +0 -1
  275. mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +0 -1
  276. mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +0 -1
  277. mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +0 -1
  278. mage_ai/server/frontend_dist_base_path_template/_next/static/aoO6jYZLVlUGCCdY-wmy8/_buildManifest.js +0 -1
  279. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-57858e7445d24413.js +0 -1
  280. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-92cdffd87b6f6e05.js +0 -1
  281. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-715ca383fa15a5ef.js +0 -1
  282. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-b4d6a037cf5781f8.js +0 -1
  283. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-c9fb980f03df6450.js +0 -1
  284. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/600-705fe234320ec5de.js +0 -1
  285. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/722-900f786d24f91b2e.js +0 -1
  286. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-0d582a6ca33c3dfa.js +0 -1
  287. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8487-8e1c09546dff4dbf.js +0 -1
  288. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/90-a7308bae028d7001.js +0 -1
  289. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-334e7db5c84cb4ea.js +0 -1
  290. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-419775ca1293b354.js +0 -1
  291. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-51d366993f6dd449.js +0 -1
  292. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-b35d37bfba8fbccc.js +0 -1
  293. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-9adc2974aada27ba.js +0 -1
  294. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-51b1311dff2a974e.js +0 -1
  295. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-2333e524d34b474a.js +0 -1
  296. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ef680455ae54ccbe.js +0 -1
  297. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-1ff9bb8e22ca1e75.js +0 -1
  298. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-b75bf17498e87354.js +0 -1
  299. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-779c3ef0676a12ac.js +0 -1
  300. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-bbea9a088657404a.js +0 -1
  301. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-3737f2b0afc2ede3.js +0 -1
  302. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-c1f4ed17d501ccca.js +0 -1
  303. mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-8bdd858240d5dbf6.js +0 -1
  304. /mage_ai/server/frontend_dist/_next/static/{N3FS4bHv0jpYeeg672uYK → xxcdnITr3IkTdETH5ghqw}/_ssgManifest.js +0 -0
  305. /mage_ai/server/frontend_dist_base_path_template/_next/static/{aoO6jYZLVlUGCCdY-wmy8 → gDn6inKdLyj35NvURBSCV}/_ssgManifest.js +0 -0
  306. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/LICENSE +0 -0
  307. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/WHEEL +0 -0
  308. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/entry_points.txt +0 -0
  309. {mage_ai-0.9.47.dist-info → mage_ai-0.9.48.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2484],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44425:function(n,e,t){"use strict";t.d(e,{$W:function(){return T},DA:function(){return d},HX:function(){return _},J8:function(){return m},L8:function(){return u},LE:function(){return p},Lk:function(){return N},Lq:function(){return A},M5:function(){return O},Q3:function(){return E},Qj:function(){return y},Ut:function(){return b},V4:function(){return C},VZ:function(){return h},dO:function(){return s},f2:function(){return S},iZ:function(){return D},t6:function(){return a},tf:function(){return f}});var r,o,i,c,u,a,l=t(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"}(u||(u={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var f,s=(r={},(0,l.Z)(r,a.MARKDOWN,"MD"),(0,l.Z)(r,a.PYTHON,"PY"),(0,l.Z)(r,a.R,"R"),(0,l.Z)(r,a.SQL,"SQL"),(0,l.Z)(r,a.YAML,"YAML"),r),p=(o={},(0,l.Z)(o,a.MARKDOWN,"Markdown"),(0,l.Z)(o,a.PYTHON,"Python"),(0,l.Z)(o,a.R,"R"),(0,l.Z)(o,a.SQL,"SQL"),(0,l.Z)(o,a.YAML,"YAML"),o);!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"}(f||(f={}));var A,O=[f.CALLBACK,f.CONDITIONAL,f.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(A||(A={}));var d,R,T=[f.CHART,f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],E=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],h=[f.DATA_EXPORTER,f.DATA_LOADER],m=[f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],_=[f.DATA_EXPORTER,f.DATA_LOADER,f.DBT,f.TRANSFORMER],y=[f.CHART,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN],D=[f.CALLBACK,f.CHART,f.EXTENSION,f.SCRATCHPAD,f.MARKDOWN],N=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SENSOR,f.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(R||(R={}));var S=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],C=(i={},(0,l.Z)(i,f.CALLBACK,"Callback"),(0,l.Z)(i,f.CHART,"Chart"),(0,l.Z)(i,f.CONDITIONAL,"Conditional"),(0,l.Z)(i,f.CUSTOM,"Custom"),(0,l.Z)(i,f.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,f.DATA_LOADER,"Data loader"),(0,l.Z)(i,f.DBT,"DBT"),(0,l.Z)(i,f.EXTENSION,"Extension"),(0,l.Z)(i,f.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,f.MARKDOWN,"Markdown"),(0,l.Z)(i,f.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,f.SENSOR,"Sensor"),(0,l.Z)(i,f.TRANSFORMER,"Transformer"),i),b=[f.DATA_LOADER,f.TRANSFORMER,f.DATA_EXPORTER,f.SENSOR];c={},(0,l.Z)(c,f.DATA_EXPORTER,"DE"),(0,l.Z)(c,f.DATA_LOADER,"DL"),(0,l.Z)(c,f.SCRATCHPAD,"SP"),(0,l.Z)(c,f.SENSOR,"SR"),(0,l.Z)(c,f.MARKDOWN,"MD"),(0,l.Z)(c,f.TRANSFORMER,"TF")},85854:function(n,e,t){"use strict";var r,o,i,c,u,a,l,f,s=t(82394),p=t(26304),A=t(26653),O=t(38626),d=t(33591),R=t(44897),T=t(95363),E=t(61896),h=t(30160),m=t(70515),_=t(38276),y=t(28598),D=["children","condensed","inline","level","marketing","spacingBelow"];function N(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?N(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,O.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],h.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||R.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(T.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(T.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(T.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),b=O.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||R.Z.content).active,";\n ")})),g=O.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,d.media.md(r||(r=(0,A.Z)(["\n ","\n "])),E.aQ),d.media.lg(o||(o=(0,A.Z)(["\n ","\n "])),E.aQ),d.media.xl(i||(i=(0,A.Z)(["\n ","\n "])),E.aQ)),L=O.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,E.MJ),P=O.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,d.media.xs(c||(c=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.sm(u||(u=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.md(a||(a=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.lg(l||(l=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.xl(f||(f=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI)),Z=O.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,E.BL),w=O.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),I=O.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),M=O.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),x=O.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(E.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(E.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 "})),H=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,u=n.spacingBelow,a=(0,p.Z)(n,D);o?e=x:0===Number(i)?e=g:1===Number(i)?e=c?P:L:2===Number(i)?e=Z:3===Number(i)?e=w:4===Number(i)?e=I:5===Number(i)&&(e=M);var l=(0,y.jsxs)(e,S(S({},a),{},{level:i,children:[u&&(0,y.jsx)(_.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?l:(0,y.jsx)(b,{children:l})};H.defaultProps={level:3,weightStyle:6},e.Z=H},6943:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(38860),i=t.n(o),c=t(39440),u=t(93808),a=t(28598);function l(){return(0,a.jsx)(c.Z,{uuid:"dashboard"})}l.getInitialProps=(0,r.Z)(i().mark((function n(){return i().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,u.Z)(l)},91162:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-layout",function(){return t(6943)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(61049);function o(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,3662,1154,6639,341,1751,5896,2714,2631,4783,4267,600,8264,5810,1550,976,9440,9774,2888,179],(function(){return e=91162,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2484],{59739:function(n,e,t){"use strict";var r=t(56669);function o(){}function i(){}i.resetWarningCache=o,n.exports=function(){function n(n,e,t,o,i,c){if(c!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44425:function(n,e,t){"use strict";t.d(e,{$W:function(){return T},DA:function(){return d},HX:function(){return _},J8:function(){return m},L8:function(){return u},LE:function(){return p},Lk:function(){return N},Lq:function(){return A},M5:function(){return O},Q3:function(){return E},Qj:function(){return y},Ut:function(){return b},V4:function(){return C},VZ:function(){return h},dO:function(){return s},f2:function(){return S},iZ:function(){return D},t6:function(){return a},tf:function(){return f}});var r,o,i,c,u,a,l=t(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"}(u||(u={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(a||(a={}));var f,s=(r={},(0,l.Z)(r,a.MARKDOWN,"MD"),(0,l.Z)(r,a.PYTHON,"PY"),(0,l.Z)(r,a.R,"R"),(0,l.Z)(r,a.SQL,"SQL"),(0,l.Z)(r,a.YAML,"YAML"),r),p=(o={},(0,l.Z)(o,a.MARKDOWN,"Markdown"),(0,l.Z)(o,a.PYTHON,"Python"),(0,l.Z)(o,a.R,"R"),(0,l.Z)(o,a.SQL,"SQL"),(0,l.Z)(o,a.YAML,"YAML"),o);!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"}(f||(f={}));var A,O=[f.CALLBACK,f.CONDITIONAL,f.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(A||(A={}));var d,R,T=[f.CHART,f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],E=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN,f.TRANSFORMER],h=[f.DATA_EXPORTER,f.DATA_LOADER],m=[f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],_=[f.DATA_EXPORTER,f.DATA_LOADER,f.DBT,f.TRANSFORMER],y=[f.CHART,f.SCRATCHPAD,f.SENSOR,f.MARKDOWN],D=[f.CALLBACK,f.CHART,f.EXTENSION,f.SCRATCHPAD,f.MARKDOWN],N=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.SENSOR,f.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(d||(d={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(R||(R={}));var S=[f.CUSTOM,f.DATA_EXPORTER,f.DATA_LOADER,f.TRANSFORMER],C=(i={},(0,l.Z)(i,f.CALLBACK,"Callback"),(0,l.Z)(i,f.CHART,"Chart"),(0,l.Z)(i,f.CONDITIONAL,"Conditional"),(0,l.Z)(i,f.CUSTOM,"Custom"),(0,l.Z)(i,f.DATA_EXPORTER,"Data exporter"),(0,l.Z)(i,f.DATA_LOADER,"Data loader"),(0,l.Z)(i,f.DBT,"DBT"),(0,l.Z)(i,f.EXTENSION,"Extension"),(0,l.Z)(i,f.GLOBAL_DATA_PRODUCT,"Global data product"),(0,l.Z)(i,f.MARKDOWN,"Markdown"),(0,l.Z)(i,f.SCRATCHPAD,"Scratchpad"),(0,l.Z)(i,f.SENSOR,"Sensor"),(0,l.Z)(i,f.TRANSFORMER,"Transformer"),i),b=[f.DATA_LOADER,f.TRANSFORMER,f.DATA_EXPORTER,f.SENSOR];c={},(0,l.Z)(c,f.DATA_EXPORTER,"DE"),(0,l.Z)(c,f.DATA_LOADER,"DL"),(0,l.Z)(c,f.SCRATCHPAD,"SP"),(0,l.Z)(c,f.SENSOR,"SR"),(0,l.Z)(c,f.MARKDOWN,"MD"),(0,l.Z)(c,f.TRANSFORMER,"TF")},85854:function(n,e,t){"use strict";var r,o,i,c,u,a,l,f,s=t(82394),p=t(26304),A=t(26653),O=t(38626),d=t(33591),R=t(44897),T=t(95363),E=t(61896),h=t(30160),m=t(70515),_=t(38276),y=t(28598),D=["children","condensed","inline","level","marketing","spacingBelow"];function N(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function S(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?N(Object(t),!0).forEach((function(e){(0,s.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var C=(0,O.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],h.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||R.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(T.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(T.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(T.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(T.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(T.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),b=O.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||R.Z.content).active,";\n ")})),g=O.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],C,d.media.md(r||(r=(0,A.Z)(["\n ","\n "])),E.aQ),d.media.lg(o||(o=(0,A.Z)(["\n ","\n "])),E.aQ),d.media.xl(i||(i=(0,A.Z)(["\n ","\n "])),E.aQ)),L=O.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],C,E.MJ),P=O.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],C,d.media.xs(c||(c=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.sm(u||(u=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.md(a||(a=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.lg(l||(l=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI),d.media.xl(f||(f=(0,A.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*m.iI,7*m.iI)),Z=O.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],C,E.BL),w=O.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],C),I=O.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],C),M=O.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],C),x=O.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],C,(function(n){return 1===n.level&&"\n ".concat(E.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(E.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 "})),H=function(n){var e,t=n.children,r=n.condensed,o=n.inline,i=n.level,c=n.marketing,u=n.spacingBelow,a=(0,p.Z)(n,D);o?e=x:0===Number(i)?e=g:1===Number(i)?e=c?P:L:2===Number(i)?e=Z:3===Number(i)?e=w:4===Number(i)?e=I:5===Number(i)&&(e=M);var l=(0,y.jsxs)(e,S(S({},a),{},{level:i,children:[u&&(0,y.jsx)(_.Z,{mb:r?2:3,children:t}),!u&&t]}));return o?l:(0,y.jsx)(b,{children:l})};H.defaultProps={level:3,weightStyle:6},e.Z=H},6943:function(n,e,t){"use strict";t.r(e);var r=t(77837),o=t(38860),i=t.n(o),c=t(39440),u=t(93808),a=t(28598);function l(){return(0,a.jsx)(c.Z,{uuid:"dashboard"})}l.getInitialProps=(0,r.Z)(i().mark((function n(){return i().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,u.Z)(l)},91162:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-layout",function(){return t(6943)}])},80022:function(n,e,t){"use strict";function r(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return r}})},15544:function(n,e,t){"use strict";function r(n){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},r(n)}t.d(e,{Z:function(){return r}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return o}});var r=t(61049);function o(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,r.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return i}});var r=t(12539),o=t(80022);function i(n,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(n)}},61049:function(n,e,t){"use strict";function r(n,e){return r=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},r(n,e)}t.d(e,{Z:function(){return r}})}},function(n){n.O(0,[2678,3662,1154,6639,341,1751,5896,2714,2631,4783,4267,6990,8264,5810,1550,976,9440,9774,2888,179],(function(){return e=91162,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{78688:function(e,n,t){"use strict";var r=t(82394),i=t(82684),l=t(15338),o=t(77456),c=t(97618),s=t(55485),u=t(85854),a=t(65956),d=t(38276),p=t(30160),f=t(72473),v=t(70515),m=t(74778),h=t(74260),j=t(81728),x=t(28598);function g(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 Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.contained,t=void 0===n||n,r=e.onClickStep,g=e.setupSteps,b=e.small,P=(0,i.useCallback)((function(e,n,i,g){var y=e.name,_=e.description,k=e.group,O=e.error,C=e.required,I=e.status_calculated,S=e.steps,E=e.tab,w=e.uuid,T=(null===S||void 0===S?void 0:S.length)||0,D=g||{completedGroup:!1,level:0,numberEl:null},M=D.completedGroup,A=D.level,R=D.numberEl,B=0===A?2*v.iI:1.5*v.iI;if(k){var N=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{p:v.cd,children:(0,x.jsx)(s.ZP,{children:(0,x.jsxs)(c.Z,{flex:1,flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,x.jsx)(u.Z,{level:b?5:4,children:y}),(0,x.jsx)(d.Z,{mr:v.cd}),h.br.COMPLETED===I&&(0,x.jsx)(f.Jr,{size:B,success:!0})]}),_&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(p.ZP,{default:!0,small:b,children:_})})]})})}),(0,x.jsx)(l.Z,{light:!0}),null===S||void 0===S?void 0:S.map((function(e,n){return P(e,n,T,{completedGroup:h.br.COMPLETED===I,level:0})}))]});return(0,x.jsxs)(d.Z,{mb:b?0:v.cd,children:[t&&(0,x.jsx)(a.Z,{noPadding:!0,children:N}),!t&&N]},w)}var F=h.br.COMPLETED===I,z=0===A?String(n+1):(0,j.bH)()[n].toLowerCase();var H=!!E&&r,L=(0,x.jsx)(d.Z,{pl:0===A?v.cd:0,children:(0,x.jsxs)(p.ZP,{large:!b,monospace:!0,muted:!0,children:[z,"."]})}),W={muted:F||M,strikethrough:F||M};return(0,x.jsx)(m.aw,{clickable:!!H,onClick:H?function(){return null===r||void 0===r?void 0:r(E)}:null,children:(0,x.jsxs)(d.Z,{py:0!==A||b?1:v.cd,children:[(0,x.jsxs)(s.ZP,{children:[R&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{opacity:0},children:R}),(0,x.jsx)(d.Z,{mr:1})]}),L,(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,x.jsxs)(s.ZP,{flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsxs)(c.Z,{flex:1,children:[0===A&&!b&&(0,x.jsx)(u.Z,Z(Z({level:5},W),{},{children:y})),0===A&&b&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!0},W),{},{children:y})),A>=1&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!b},W),{},{children:y})),!C&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(p.ZP,{muted:!0,uppercase:!0,xsmall:!0,children:"optional"})]})]}),(0,x.jsx)(d.Z,{mr:v.cd}),F&&(0,x.jsx)(f.Jr,{size:B,success:!0}),h.br.INCOMPLETE===I&&(0,x.jsx)(f.uy,{muted:!0,size:B}),h.br.ERROR===I&&(0,x.jsx)(f.uy,{danger:!0,size:B}),(0,x.jsx)(d.Z,{pr:v.cd*(I?1:2)})]}),_&&(0,x.jsx)(d.Z,{mt:1,pr:3*v.cd,children:(0,x.jsx)(p.ZP,Z(Z({default:!0},W),{},{small:b,children:_}))}),O&&(0,x.jsx)(o.Z,{error:O,small:!0,warning:!0})]})})]}),T>=1&&(0,x.jsx)(d.Z,{mt:1,children:null===S||void 0===S?void 0:S.map((function(e,n){return P(e,n,T,{completedGroup:M,level:1,numberEl:L})}))})]})},w)}),[t,r,b]),y=[],_=(null===g||void 0===g?void 0:g.length)||0;return null===g||void 0===g||g.forEach((function(e,n){e.status;y.push(P(e,n,_))})),t?(0,x.jsx)(d.Z,{p:v.cd,children:y}):(0,x.jsx)(x.Fragment,{children:y})}},89308:function(e,n,t){"use strict";var r=t(82394),i=t(75582),l=t(82684),o=t(69864),c=t(71180),s=t(26032),u=t(74260),a=t(15338),d=t(97618),p=t(55485),f=t(85854),v=t(65956),m=t(78688),h=t(38276),j=t(30160),x=t(35686),g=t(70515),Z=t(72473),b=t(81728),P=t(10332),y=t(72619),_=t(23780),k=t(28598);function O(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 C(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,r.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}n.Z=function(e){var n=e.actionsOnly,t=e.computeService,r=e.computeConnections,O=e.contained,I=void 0===O||O,S=e.fetchAll,E=e.hideDetails,w=e.onClickStep,T=e.small,D=(0,_.VI)(null,{},[],{uuid:"ConnectionSettings"}),M=(0,i.Z)(D,1)[0],A=(0,l.useState)(null),R=A[0],B=A[1],N=(0,l.useState)(null),F=N[0],z=N[1],H=(0,o.Db)((function(e){var n=e.action,r=e.uuid;return x.ZP.compute_connections.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,r)({compute_connection:{action:n}})}),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(e){var n=e.compute_connection;null===S||void 0===S||S(),z(C(C({},R),{},{computeConnection:n}))},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}}),L=(0,i.Z)(H,2),W=L[0],U=L[1].isLoading;return(0,l.useEffect)((function(){if(F){var e,n=null===r||void 0===r?void 0:r.find((function(e){var n,t=e.uuid;return(null===F||void 0===F||null===(n=F.computeConnection)||void 0===n?void 0:n.uuid)===t}));(null===n||void 0===n?void 0:n.state)!==(null===F||void 0===F||null===(e=F.computeConnection)||void 0===e?void 0:e.state)&&z(null)}}),[r,F,z]),(0,k.jsx)(h.Z,{py:I?g.cd:0,children:null===r||void 0===r?void 0:r.map((function(e,t){var r,l,o,x,y=e.actions,_=e.attributes,O=e.connection,C=e.description,S=e.name,D=e.required,M=e.status_calculated,A=e.steps,N=e.uuid;!E&&!n&&_&&(null===(r=Object.keys(_||{}))||void 0===r?void 0:r.length)>=1&&(o=(0,P.s)(Object.entries(_||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]})))),!E&&!n&&O&&(null===(l=Object.keys(O||{}))||void 0===l?void 0:l.length)>=1&&(x=(0,P.s)(Object.entries(O||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]}))));var H=(0,k.jsxs)(k.Fragment,{children:[!n&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsx)(p.ZP,{children:(0,k.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,k.jsxs)(p.ZP,{alignItems:"center",children:[(0,k.jsx)(d.Z,{flex:1,children:(0,k.jsx)(f.Z,{level:T?5:4,children:S})}),(0,k.jsx)(h.Z,{mr:g.cd}),(0,k.jsx)(Z.Fs,{danger:u.br.ERROR===M,muted:D&&u.br.INCOMPLETE===M,size:2*g.iI,success:!D||u.br.COMPLETED===M})]}),C&&(0,k.jsx)(h.Z,{mt:1,children:(0,k.jsx)(j.ZP,{default:!0,small:T,children:C})})]})})}),(null===A||void 0===A?void 0:A.length)>=1&&(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(a.Z,{light:!0}),(0,k.jsx)(m.Z,{contained:!1,onClickStep:w,setupSteps:A,small:T})]})]}),(o||x)&&(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsxs)(p.ZP,{children:[o&&(0,k.jsx)(v.Z,{noPadding:!0,children:(0,k.jsxs)(p.ZP,{flexDirection:"column",children:[(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Attributes"})}),(0,k.jsx)(a.Z,{light:!0}),o,(0,k.jsx)(h.Z,{mb:g.cd})]})}),o&&x&&(0,k.jsx)(h.Z,{pr:g.cd}),x&&(0,k.jsx)(v.Z,{noPadding:!0,children:(0,k.jsxs)(p.ZP,{flexDirection:"column",children:[(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsx)(j.ZP,{bold:!0,large:!0,children:"Connection"})}),(0,k.jsx)(a.Z,{light:!0}),x,(0,k.jsx)(h.Z,{mb:g.cd})]})})]})}),(null===y||void 0===y?void 0:y.length)>=1&&(0,k.jsxs)(k.Fragment,{children:[!n&&(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsx)(p.ZP,{children:(0,k.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,k.jsx)(p.ZP,{alignItems:"center",children:(0,k.jsx)(d.Z,{flex:1,children:(0,k.jsx)(f.Z,{level:T?5:4,children:"Actions"})})})})})}),null===y||void 0===y?void 0:y.map((function(e,t){var r,i=e.description,l=e.name,o=e.uuid,u=U&&(null===R||void 0===R?void 0:R.uuid)===N&&(null===R||void 0===R?void 0:R.actionUUID)===o||s.i.PENDING===(null===F||void 0===F||null===(r=F.computeConnection)||void 0===r?void 0:r.state);return(0,k.jsxs)("div",{children:[(!n||t>=1)&&(0,k.jsx)(a.Z,{light:!0}),(0,k.jsx)(h.Z,{p:g.cd,children:(0,k.jsx)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,k.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,k.jsx)(j.ZP,{default:!0,large:!T,children:i}),(0,k.jsx)(h.Z,{mt:g.cd,children:(0,k.jsx)(c.ZP,{compact:T,danger:[s._.DELETE].includes(o),loading:u,onClick:function(){B({actionUUID:o,uuid:N}),z(null),W({action:o,uuid:N})},primary:[s._.CREATE,s._.UPDATE].includes(o),secondary:[s._.DESELECT].includes(o),small:T,children:l})})]})})})]},o)}))]})]});return(0,k.jsxs)(h.Z,{mt:t>=1?g.cd:0,px:I?g.cd:0,children:[I&&(0,k.jsx)(v.Z,{noPadding:!0,children:H}),!I&&H]},N)}))})}},77456:function(e,n,t){"use strict";var r=t(82394),i=t(75582),l=t(43695),o=t(30160),c=t(28598);function s(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?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.danger,t=e.error,r=e.large,s=e.small,a=e.warning,d=t.message,p=t.variables,f=d;return p&&Object.entries(p||{}).forEach((function(e){var t=(0,i.Z)(e,2),d=t[0],p=t[1];f=f.replace("{{".concat(d,"}}"),(0,l.Dq)((0,c.jsx)(o.ZP,u(u({danger:n,inline:!0,large:r,muted:!n&&!a,small:s,warning:a},p||{}),{},{children:d}))))})),(0,c.jsx)(o.ZP,{danger:n,dangerouslySetInnerHTML:{__html:f},muted:!n&&!a,large:r,small:s,warning:a})}},74778:function(e,n,t){"use strict";t.d(n,{UE:function(){return s},aw:function(){return u},bC:function(){return a}});var r=t(38626),i=t(44897),l=t(42631),o=t(70515),c=t(91437),s=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-1b5e7g-0"})([""," border-radius:","px;padding:","px;"," ",""],(0,c.eR)(),l.D7,2.5*o.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.borders||i.Z.borders).darkLight,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")}),(function(e){return!e.inline&&"\n height: ".concat(28*o.iI,"px;\n width: ").concat(40*o.iI,"px;\n margin: ").concat(o.cd/2*o.iI,"px;\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__SetupStepRowStyle",componentId:"sc-1b5e7g-1"})([""," ",""],(0,c.eR)(),(function(e){return e.clickable&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverOverlay,";\n cursor: pointer;\n }\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1b5e7g-2"})([""," height:","px;padding-left:","px;padding-right:","px;"," ",""],(0,c.eR)(),7*o.iI,o.cd*o.iI,o.cd*o.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}))},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return O}});var r=t(82394),i=t(21831),l=t(82684),o=t(50724),c=t(82555),s=t(97618),u=t(70613),a=t(68487),d=t(68899),p=t(28598);function f(e,n){var t=e.children,r=e.noPadding;return(0,p.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var v=l.forwardRef(f),m=t(62547),h=t(82571),j=t(35686),x=t(98464),g=t(46684),Z=t(70515),b=t(53808),P=t(19183);function y(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function k(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,f=e.after,y=e.afterHeader,k=e.afterHidden,O=e.afterWidth,C=e.afterWidthOverride,I=e.appendBreadcrumbs,S=e.before,E=e.beforeWidth,w=e.breadcrumbs,T=e.children,D=e.errors,M=e.headerMenuItems,A=e.headerOffset,R=e.hideAfterCompletely,B=e.mainContainerHeader,N=e.navigationItems,F=e.setAfterHidden,z=e.setErrors,H=e.subheaderChildren,L=e.subheaderNoPadding,W=e.title,U=e.uuid,V=(0,P.i)().width,G="dashboard_after_width_".concat(U),X="dashboard_before_width_".concat(U),q=(0,l.useRef)(null),J=(0,l.useState)(C?O:(0,b.U2)(G,O)),K=J[0],Y=J[1],Q=(0,l.useState)(!1),$=Q[0],ee=Q[1],ne=(0,l.useState)(S?Math.max((0,b.U2)(X,E),13*Z.iI):null),te=ne[0],re=ne[1],ie=(0,l.useState)(!1),le=ie[0],oe=ie[1],ce=(0,l.useState)(null)[1],se=j.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=[];w&&(r&&de.push(ae),de.push.apply(de,(0,i.Z)(w))),(null===w||void 0===w||!w.length||I)&&(null===ue||void 0===ue?void 0:ue.length)>=1&&(null!==w&&void 0!==w&&w.length||de.unshift({bold:!I,label:function(){return W}}),de.unshift(ae)),(0,l.useEffect)((function(){null===q||void 0===q||!q.current||$||le||null===ce||void 0===ce||ce(q.current.getBoundingClientRect().width)}),[$,K,le,te,q,ce,V]),(0,l.useEffect)((function(){$||(0,b.t8)(G,K)}),[k,$,K,G]),(0,l.useEffect)((function(){le||(0,b.t8)(X,te)}),[le,te,X]);var pe=(0,x.Z)(O);return(0,l.useEffect)((function(){C&&pe!==O&&Y(O)}),[C,O,pe]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:W}),(0,p.jsx)(a.Z,{breadcrumbs:de,menuItems:M,project:null===ue||void 0===ue?void 0:ue[0],version:null===ue||void 0===ue||null===(t=ue[0])||void 0===t?void 0:t.version}),(0,p.jsxs)(d.Nk,{ref:n,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(h.Z,{navigationItems:N,showMore:!0})}),(0,p.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(m.Z,{after:f,afterHeader:y,afterHeightOffset:g.Mz,afterHidden:k,afterMousedownActive:$,afterWidth:K,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:le,beforeWidth:d.k1+(S?te:0),headerOffset:A,hideAfterCompletely:!F||R,leftOffset:S?d.k1:null,mainContainerHeader:B,mainContainerRef:q,setAfterHidden:F,setAfterMousedownActive:ee,setAfterWidth:Y,setBeforeMousedownActive:oe,setBeforeWidth:re,children:[H&&(0,p.jsx)(v,{noPadding:L,children:H}),T]})})]}),D&&(0,p.jsx)(o.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===z||void 0===z?void 0:z(null)},children:(0,p.jsx)(c.Z,_(_({},D),{},{onClose:function(){return null===z||void 0===z?void 0:z(null)}}))})]})}var O=l.forwardRef(k)},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return s},Z:function(){return c}});var r=t(38626),i=t(44897),l=t(42631),o=t(70515),c=2*o.iI,s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],l.n_,o.cd*o.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},28071:function(e,n,t){"use strict";var r;t.d(n,{X:function(){return r}}),function(e){e.BOOTSTRAPPING="BOOTSTRAPPING",e.RUNNING="RUNNING",e.STARTING="STARTING",e.TERMINATED="TERMINATED",e.TERMINATED_WITH_ERRORS="TERMINATED_WITH_ERRORS",e.TERMINATING="TERMINATING",e.WAITING="WAITING"}(r||(r={}))},26032:function(e,n,t){"use strict";var r,i;t.d(n,{_:function(){return r},i:function(){return i}}),function(e){e.CREATE="CREATE",e.DELETE="DELETE",e.DESELECT="DESELECT",e.UPDATE="UPDATE"}(r||(r={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.PENDING="PENDING"}(i||(i={}))},4910:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return qe}});var r=t(77837),i=t(38860),l=t.n(i),o=t(82684),c=t(82394),s=t(75582),u=t(69864),a=t(71180),d=t(92083),p=t.n(d),f=t(21764),v=t(28071),m=t(15338),h=t(55485),j=t(85854),x=t(97618),g=t(38276),Z=t(30160),b=t(70515),P=t(28598);function y(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 _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var k=function(e){var n=e.rows;return(0,P.jsx)(P.Fragment,{children:null===n||void 0===n?void 0:n.map((function(e){var n=e.key,t=e.textProps,r=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:n})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(Z.ZP,_(_({default:!0,large:!0},t),{},{children:r}))})]})})]},n)}))})},O=t(65956),C=t(4190),I=t(75499),S=t(69650),E=t(35686),w=t(72473),T=t(3917),D=t(38626),M=t(44897),A=D.default.div.withConfig({displayName:"indexstyle__SubheaderStyle",componentId:"sc-169asq7-0"})(["position:sticky;top:0;z-index:1;",""],(function(e){return"\n background-color: ".concat((e.theme.background||M.Z.background).codeArea,";\n ")})),R=t(81728);function B(e){var n;if(null===e||void 0===e||!e.length)return null;var t=null===e||void 0===e?void 0:e[0],r=null===(n=Object.keys(t||{}))||void 0===n?void 0:n.map((function(e){return{uuid:(0,R.vg)(e)}}));return(0,P.jsx)(I.Z,{columnFlex:null===r||void 0===r?void 0:r.map((function(e,n){return 0===n?null:1})),columns:r,rows:null===e||void 0===e?void 0:e.map((function(e){return Object.entries(e||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r},t)]}))}))})}var N=t(72619),F=t(3314),z=t(42122),H=t(70320),L=t(23780);function W(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?W(Object(t),!0).forEach((function(n){(0,c.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 V=2*b.iI,G={default:!0,monospace:!0};var X=function(e){var n=e.clusters,t=e.computeService,r=e.fetchAll,i=e.includeAllStates,l=e.loading,c=e.setIncludeAllStates,d=(0,o.useMemo)((function(){return"".concat(null===t||void 0===t?void 0:t.uuid,"/clusters")}),[t]),x=(0,H.qB)(),y=(0,o.useState)(null),_=y[0],D=y[1],M=(0,L.VI)(null,{},[],{uuid:d}),W=(0,s.Z)(M,1)[0],X=(0,u.Db)(E.ZP.compute_clusters.compute_services.useCreate(null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(){r().then((function(){return D(0)}))},onErrorCallback:function(e,n){return W({errors:n,response:e})}})}}),q=(0,s.Z)(X,2),J=q[0],K=q[1].isLoading,Y=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useDelete(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)()}),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(){r().then((function(){return D(null)}))},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,l=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:l})}})}}),Q=(0,s.Z)(Y,2),$=Q[0],ee=Q[1].isLoading,ne=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)({compute_cluster:(0,z.GL)(e,["active"])})}),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(){r()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,l=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:l})}})}}),te=(0,s.Z)(ne,2),re=te[0],ie=te[1].isLoading,le=(0,o.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)||0}),[n]),oe=(0,o.useMemo)((function(){return(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.NO,{size:V}),compact:le>=1,loading:K,onClick:function(){return J()},primary:!0,small:le>=1,children:"Launch new cluster"})}),[le,J,K]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(A,{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(j.Z,{level:4,children:(0,R._6)("cluster",le,!0)}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(S.Z,{checked:i,compact:!0,onCheck:function(e){return c(e(i))}}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(Z.ZP,{default:i,muted:!i,small:!0,children:"Include terminated clusters"})]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),le>=1&&oe]})}),(0,P.jsx)(m.Z,{light:!0})]}),(0,P.jsx)(I.Z,{apiForFetchingAfterAction:E.ZP.compute_clusters.compute_services.detail,buildApiOptionsFromObject:function(e){return[null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}]},columnFlex:[null,null,null,null,null],columns:[{uuid:"Cluster ID"},{uuid:"Cluster Name"},{uuid:"Status"},{uuid:"Created"},{center:!0,uuid:"Hours"},{label:function(){return""},rightAligned:!0,uuid:"Active"}],onClickRow:function(e,n){D((function(n){return n===e?null:e}))},renderExpandedRowWithObject:function(e,n){var t,r,i,l,o=null===n||void 0===n||null===(t=n.compute_cluster)||void 0===t?void 0:t.cluster;if(!o)return(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(C.Z,{inverted:!0})});var c=o.active,s=o.applications,u=o.ec2_instance_attributes,d=o.name,f=o.status,y=o.tags,_=null===f||void 0===f?void 0:f.state,I=[v.X.TERMINATED,v.X.TERMINATED_WITH_ERRORS,v.X.TERMINATING].includes(_),S=[v.X.RUNNING,v.X.WAITING].includes(_),E=null===f||void 0===f||null===(r=f.timeline)||void 0===r?void 0:r.creation_date_time;return(0,P.jsxs)(g.Z,{p:b.cd,children:[!I&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Actions"})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{children:[S&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.Fs,{size:V,success:c}),loading:ie,notClickable:c,onClick:c?null:function(){return re(U(U({},o),{},{active:!0}))},primary:!c,children:c?"Activated":"Activate cluster for compute"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{loading:ee,onClick:function(){window.confirm("Are you sure you want to terminate this cluster?")&&$(o)},secondary:!0,children:"Terminate cluster"})]}),!S&&(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(C.Z,{inverted:!0,small:!0}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:(null===f||void 0===f||null===(i=f.state_change_reason)||void 0===i?void 0:i.message)||"Cluster is still launching."})]})]})})]}),(0,P.jsx)(g.Z,{mb:b.cd})]}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Details"})}),(0,P.jsx)(k,{rows:[{key:"ID",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.id},{key:"Name",value:d},{key:"Master public DNS name",value:(null===o||void 0===o?void 0:o.master_public_dns_name)||"Available after cluster starts."},{key:"Created at",textProps:{monospace:!0},value:E?(0,T.XG)(p()(E).format(T.BL),x):"-"},{key:"Status message",value:(null===f||void 0===f||null===(l=f.state_change_reason)||void 0===l?void 0:l.message)||"None"},{key:"Release label",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.release_label},{key:"Service role",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.service_role},{key:"Scale down behavior",value:null!==o&&void 0!==o&&o.scale_down_behavior?(0,R.vg)(null===o||void 0===o?void 0:o.scale_down_behavior):null===o||void 0===o?void 0:o.scale_down_behavior},{key:"Auto terminate",value:null!==o&&void 0!==o&&o.auto_terminate?(0,P.jsx)(w.Jr,{size:V,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:V})},{key:"Termination protected",value:null!==o&&void 0!==o&&o.termination_protected?(0,P.jsx)(w.Jr,{size:V,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:V})},{key:"Visible to all users",value:null!==o&&void 0!==o&&o.visible_to_all_users?(0,P.jsx)(w.Jr,{size:V,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:V})},{key:"EBS root volume size",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.ebs_root_volume_size},{key:"Normalized instance hours",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.normalized_instance_hours},{key:"Step concurrency level",textProps:{monospace:!0},value:null===o||void 0===o?void 0:o.step_concurrency_level}]})]}),(0,P.jsx)(g.Z,{mb:b.cd}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"EC2 instance attributes"})}),(0,P.jsx)(k,{rows:[{key:"Availability zone",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.ec2_availability_zone},{key:"Master security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_master_security_group},{key:"Slave security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_slave_security_group},{key:"IAM profile",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.iam_instance_profile}]})]}),(0,P.jsx)(g.Z,{mb:b.cd}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{px:b.cd,py:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Applications"})}),(0,P.jsx)(m.Z,{light:!0,short:!0}),B(s||[])]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{px:b.cd,py:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Tags"})}),(0,P.jsx)(m.Z,{light:!0,short:!0}),B(y||[])]})]})]})},getObjectAtRowIndex:function(e){return null===n||void 0===n?void 0:n[e]},rows:null===n||void 0===n?void 0:n.map((function(e){var n,t,r=e.active,i=e.id,l=e.name,c=e.normalized_instance_hours,s=e.status,u=null===s||void 0===s||null===(n=s.timeline)||void 0===n?void 0:n.creation_date_time,d=null===s||void 0===s?void 0:s.state,f=null===s||void 0===s||null===(t=s.state_change_reason)||void 0===t?void 0:t.message,m=[v.X.BOOTSTRAPPING,v.X.STARTING].includes(d),j=[v.X.TERMINATING].includes(d);return[(0,o.createElement)(Z.ZP,U(U({},G),{},{key:"id",success:r}),i),(0,o.createElement)(Z.ZP,U(U({},G),{},{key:"name",monospace:!1,preWrap:!0}),l),(0,P.jsxs)("div",{children:[(0,P.jsx)(Z.ZP,U(U({},G),{},{danger:[v.X.TERMINATED_WITH_ERRORS].includes(d),default:[v.X.STARTING].includes(d),muted:[v.X.TERMINATED].includes(d),success:[v.X.RUNNING,v.X.WAITING].includes(d),warning:[v.X.TERMINATING].includes(d),children:null!==s&&void 0!==s&&s.state?(0,R.vg)(null===s||void 0===s?void 0:s.state):null===s||void 0===s?void 0:s.state})),f&&(0,P.jsx)(Z.ZP,{muted:!0,preWrap:!0,small:!0,children:f})]},"state"),(0,o.createElement)(Z.ZP,U(U({},G),{},{key:"created",preWrap:!0}),u?(0,T.XG)(p()(u).format(T.BL),x):"-"),(0,o.createElement)(Z.ZP,U(U({},G),{},{center:!0,key:"normalizedInstanceHours"}),c||0),(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:m||j?(0,P.jsx)(C.Z,{inverted:m,small:!0}):(0,P.jsx)(a.ZP,{iconOnly:!0,loading:ie,noBackground:!0,noBorder:!0,noPadding:!0,notClickable:r,onClick:r?null:function(n){(0,F.j)(n),re(U(U({},e),{},{active:!0}))},children:(0,P.jsx)(w.Fs,{muted:!r,size:V,success:r})})},"active")]})),selectedRowIndexInternal:_,uuid:d}),l&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(C.Z,{inverted:!0})}),!l&&!le&&(0,P.jsx)(g.Z,{p:b.cd,children:oe})]})},q=t(48670),J=t(90299),K=t(89308),Y=t(74521),Q=t(93004),$=t(8970);function ee(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 ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te="Applications",re="Connections",ie="Jobs",le="SQLs";var oe=function(e){var n,t=e.applications,r=e.computeConnections,i=e.computeService,l=e.connectionsLoading,c=e.fetchAll,s=e.jobs,u=e.loadingApplications,a=e.loadingJobs,d=(e.objectAttributes,e.refButtonTabs),p=(e.selectedComputeService,e.setSelectedSql),f=e.setSelectedTab,v=(0,o.useContext)(D.ThemeContext),h=(0,o.useState)(),j=h[0],x=h[1],y=(0,o.useCallback)((function(e){p((function(){return null})),x(e)}),[p,x]),_=(0,H.qB)(),k=E.ZP.spark_stages.list({details:!0,_format:"with_details"}).data,O=(0,o.useMemo)((function(){return((null===k||void 0===k?void 0:k.spark_stages)||[]).reduce((function(e,n){var t=null===n||void 0===n?void 0:n.application;return(null===t||void 0===t?void 0:t.calculated_id)in e||(e[null===t||void 0===t?void 0:t.calculated_id]={}),e[null===t||void 0===t?void 0:t.calculated_id][null===n||void 0===n?void 0:n.stage_id]=n,e}),{})}),[k]),C=(0,o.useMemo)((function(){return(0,P.jsx)(K.Z,{computeService:i,computeConnections:r,fetchAll:c,onClickStep:function(e){return f((function(){return{main:e}}))}})}),[r,i,c,f]),S=(0,o.useMemo)((function(){return(0,P.jsx)(I.Z,{columnFlex:[null,null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"URL"},{uuid:"Name"},{uuid:"Version"},{uuid:"Spark user"},{uuid:"Started at"},{rightAligned:!0,uuid:"Last updated"}],rows:null===t||void 0===t?void 0:t.map((function(e){var n=e.attempts,t=e.id,r=e.name,i=e.spark_ui_url,l=(null===n||void 0===n?void 0:n[0])||{},c=l.app_spark_version,s=l.last_updated_epoch,u=l.start_time_epoch,a=l.spark_user,d=u&&(0,T.JX)(u/1e3,{withSeconds:!0}),p=d&&(0,T.XG)(d,_);return[(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"id"}),t),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUIURL"}),i),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"name"}),r),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"version"}),c),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUser"}),a),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"startTime"}),p||"-"),(0,o.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"lastUpdated",rightAligned:!0}),s?(0,T.XG)((0,T.JX)(s/1e3,{withSeconds:!0}),_):"-")]})),uuid:"applications"})}),[t,_]),w=(0,o.useMemo)((function(){var e={};return null===s||void 0===s||s.forEach((function(n){var t,r,i=null===n||void 0===n?void 0:n.application;(null===i||void 0===i?void 0:i.calculated_id)in e||(e[null===i||void 0===i?void 0:i.calculated_id]={application:i,jobs:[]}),null===(t=e[null===i||void 0===i?void 0:i.calculated_id])||void 0===t||null===(r=t.jobs)||void 0===r||r.push(n)})),Object.values(e).map((function(e){var n=e.application,t=e.jobs;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Z.ZP,{default:!0,bold:!0,children:["Application ",null===n||void 0===n?void 0:n.calculated_id]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(Y.Z,{jobs:t,stagesMapping:O})]},null===n||void 0===n?void 0:n.calculated_id)}))}),[s,O]),M=(0,o.useMemo)((function(){return(0,P.jsx)(Q.Z,{setSelectedSql:p,stagesMapping:O})}),[p,O]),A=(0,o.useMemo)((function(){var e=[{label:function(){return(0,P.jsxs)(P.Fragment,{children:[te,"\xa0\xa0\xa0",u?"":(null===t||void 0===t?void 0:t.length)||0]})},uuid:te},{label:function(){return(0,P.jsxs)(P.Fragment,{children:[ie,"\xa0\xa0\xa0",a?"":(null===s||void 0===s?void 0:s.length)||0]})},uuid:ie},{label:function(){return le},uuid:le}];return(null===r||void 0===r?void 0:r.length)>=1&&e.unshift({label:function(){return re},uuid:re}),e}),[r,c]);return(0,o.useEffect)((function(){j||l||((null===r||void 0===r?void 0:r.length)>=1?y(re):y(te))}),[r,l,j,y]),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(J.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return y(n)},ref:d,regularSizeText:!0,selectedTabUUID:j,tabs:A,underlineColor:null===v||void 0===v||null===(n=v.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(m.Z,{light:!0}),re===j&&C,te===j&&S,ie===j&&w,le===j&&M]})},ce=t(17488),se=t(8193);function ue(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 ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=function(e){var n=e.addButtonText,t=e.addTextInputPlaceholder,r=e.alreadyExistsMessage,i=e.configurationValuePlaceholder,l=e.configurations,u=e.createButtonText,d=e.description,p=e.emptyState,f=e.setConfigurations,v=e.title,y=(0,o.useRef)(null),_=(0,o.useState)(!1),k=_[0],C=_[1],I=(0,o.useState)(null),S=I[0],E=I[1],T=(0,o.useMemo)((function(){var e;return(null===(e=Object.keys(l||{}))||void 0===e?void 0:e.length)>=1}),[l]),D=(0,o.useMemo)((function(){return S in(l||{})}),[l,S]),M=(0,o.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!k&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,F.j)(e),C(!0),setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1)},secondary:!T,small:!0,children:n||"Add configuration"}),k&&(0,P.jsxs)(P.Fragment,{children:[D&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:r||"Already exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!D,error:""},monospace:!0,onClick:function(e){return(0,F.j)(e)},paddingVertical:b.iI/2-2,placeholder:t,onChange:function(e){(0,F.j)(e),E(e.target.value)},ref:y,small:!0,value:S||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:D,compact:!0,onClick:function(e){(0,F.j)(e),D||(f(ae(ae({},l),{},(0,c.Z)({},S,""))),C(!1),E(null))},primary:!0,small:!0,children:u||"Create configuration"}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(e){(0,F.j)(e),C(!1),E(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[n,D,l,T,k,S,y,C,E]),A=(0,o.useMemo)((function(){return Object.entries(l||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)("div",{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=ae({},l);null===e||void 0===e||delete e[t],f(e)},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,monospace:!0,children:t}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return f(ae(ae({},l),{},(0,c.Z)({},t,e.target.value)))},paddingHorizontal:0,paddingVertical:0,placeholder:i,value:r||""})})]})})]},t)}))}),[l,f]);return(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:v}),d&&(0,P.jsx)(g.Z,{mt:1,children:d})]}),(0,P.jsx)(g.Z,{mr:b.cd}),T&&(0,P.jsx)(h.ZP,{alignItems:"center",children:M})]})}),!T&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[p&&(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:p})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:M})]})]}),T&&A]})},pe=t(74260);function fe(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 ve(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var me=function(e){var n,t=e.attributesTouched,r=e.isLoading,i=e.mutateObject,l=e.objectAttributes,c=e.onCancel,s=e.selectedComputeService,u=e.setObjectAttributes,d=(0,o.useCallback)((function(e){return u({emr_config:ve(ve({},null===l||void 0===l?void 0:l.emr_config),e)})}),[l,u]),p=(0,o.useCallback)((function(e){return u({spark_config:ve(ve({},null===l||void 0===l?void 0:l.spark_config),e)})}),[l,u]),f=(0,o.useMemo)((function(){return(null===l||void 0===l?void 0:l.emr_config)||{}}),[l]),v=(0,o.useMemo)((function(){return(null===l||void 0===l?void 0:l.spark_config)||{}}),[l]);return(0,P.jsxs)(se.N,{children:[(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===v||void 0===v?void 0:v.others,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"}),", e.g. ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"spark.executor.memory=4g"}),"."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(q.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no executor Spark configurations.",setConfigurations:function(e){return p({others:e})},title:"Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),pe.GO.AWS_EMR===s&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,warning:!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path),children:"Spark observability"}),(!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path))&&"ec2_key_name"in((null===t||void 0===t?void 0:t.emr_config)||{})&&"ec2_key_path"in((null===t||void 0===t?void 0:t.emr_config)||{})&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{warning:!0,children:["Without all the fields in this section present and valid, Mage won\u2019t automatically create the SSH tunnel.",(0,P.jsx)("br",{}),"You must manually create the SSH tunnel in order for Mage to retrieve and display the Spark jobs, statuses, metrics, and system information."]})})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["In order to see the Spark jobs, statuses, metrics, and system information, an SSH tunnel to the AWS EMR Master Node must be created.",(0,P.jsx)("br",{}),"Mage can automatically create the SSH tunnel for you if every field in this section is present and valid."]})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0})})]})})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key name"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["SSH tunnel into the EMR cluster using a key pair created from the ",(0,P.jsx)(q.Z,{href:"https://console.aws.amazon.com/ec2/home#KeyPairs",inline:!0,openNewWindow:!0,small:!0,children:"AWS guide"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_name)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The absolute file path to the EC2 public key that was used when creating a cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"EMR instance types"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["Refer to the ",(0,P.jsx)(q.Z,{href:"https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-supported-instance-types.html",openNewWindow:!0,children:"AWS EMR"})," documentation for all supported EMR instance types."]})})]})})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.4xlarge",value:(null===f||void 0===f?void 0:f.master_instance_type)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.2xlarge",value:(null===f||void 0===f?void 0:f.slave_instance_type)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Number of slave instances"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){var n=e.target.value||"";(""===n||/^\d+$/.exec(n))&&d({slave_instance_count:n})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. 2",value:(null===f||void 0===f?void 0:f.slave_instance_count)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.master_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the master instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(q.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no Spark configurations for the master instance.",setConfigurations:function(e){return d({master_spark_properties:e})},title:"Master Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.slave_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the slave instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(q.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no Spark configurations for the slave instance.",setConfigurations:function(e){return d({slave_spark_properties:e})},title:"Slave Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"Security"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0,children:"Configure security groups for EMR cluster instances."})})]})})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-master"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-xxxxxxxxxxxx",value:(null===f||void 0===f?void 0:f.master_security_group)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-slave"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-yyyyyyyyyyyy",value:(null===f||void 0===f?void 0:f.slave_security_group)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!t||!(null!==(n=Object.keys(t))&&void 0!==n&&n.length),loading:r,onClick:function(){return i()},primary:!0,children:"Save changes"}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===c||void 0===c?void 0:c()},secondary:!0,children:"Cancel and go back"})]})]})]})},he=t(21831),je=t(77456),xe=t(86735);function ge(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 Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var be=function(e){var n,t,r=e.attributesTouched,i=e.computeService,l=e.isLoading,c=e.mutateObject,s=e.objectAttributes,u=e.onCancel,d=e.selectedComputeService,p=e.setObjectAttributes,f=(0,o.useCallback)((function(e){return p({emr_config:Ze(Ze({},null===s||void 0===s?void 0:s.emr_config),e)})}),[s,p]),v=(0,o.useCallback)((function(e){return p({spark_config:Ze(Ze({},null===s||void 0===s?void 0:s.spark_config),e)})}),[s,p]),y=(0,o.useMemo)((function(){return(null===s||void 0===s?void 0:s.emr_config)||{}}),[s]),_=(0,o.useMemo)((function(){return(null===s||void 0===s?void 0:s.spark_config)||{}}),[s]),k=(0,o.useRef)(null),C=((0,o.useRef)(null),(0,o.useState)(!1)),I=C[0],E=C[1],T=(0,o.useState)(null),D=T[0],M=T[1],A=(0,o.useMemo)((function(){return(null===_||void 0===_?void 0:_.spark_jars)||[]}),[_]),R=(0,o.useMemo)((function(){return(null===A||void 0===A?void 0:A.length)>=1}),[A]),B=(0,o.useMemo)((function(){return(A||[]).includes(D)}),[A,D]),N=(0,o.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!I&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,F.j)(e),E(!0),setTimeout((function(){var e;return null===k||void 0===k||null===(e=k.current)||void 0===e?void 0:e.focus()}),1)},secondary:!R,small:!0,children:"Add JAR file"}),I&&(0,P.jsxs)(P.Fragment,{children:[B&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:"JAR file exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!B,error:""},monospace:!0,onClick:function(e){return(0,F.j)(e)},paddingVertical:b.iI/2-2,onChange:function(e){(0,F.j)(e),M(e.target.value)},ref:k,small:!0,value:D||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:B,compact:!0,onClick:function(e){(0,F.j)(e),B||(v({spark_jars:A.concat(D)}),E(!1),M(null))},primary:!0,small:!0,children:"Add JAR file"}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(e){(0,F.j)(e),E(!1),M(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[B,A,R,I,D,k,E,M]),z=(0,o.useMemo)((function(){return null===A||void 0===A?void 0:A.map((function(e,n){return(0,P.jsxs)("div",{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=(0,he.Z)(A);v({spark_jars:(0,xe.oM)(e,n)})},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(Z.ZP,{default:!0,large:!0,monospace:!0,children:["File ",n+1]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){var t=(0,he.Z)(A);t[n]=e.target.value,v({spark_jars:t})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /home/path/example1.jar",value:e||""})})]})})]},e)}))}),[A,v]),H=(0,o.useMemo)((function(){var e="remote_variables_dir",n=null===i||void 0===i?void 0:i.setup_steps,t=null===n||void 0===n?void 0:n.find((function(n){return n.uuid===e}));return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!(null!==s&&void 0!==s&&s.remote_variables_dir)||!(null===t||void 0===t||!t.error),default:!0,large:!0,children:["Remote variables directory ",!(null!==s&&void 0!==s&&s.remote_variables_dir)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"This S3 bucket will be used by Spark."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return p({remote_variables_dir:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. s3://magically-powerful-bucket",value:(null===s||void 0===s?void 0:s.remote_variables_dir)||""}),(null===t||void 0===t?void 0:t.error)&&(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(je.Z,{error:null===t||void 0===t?void 0:t.error})})})]})]})})]})}),[i,s,p]);return(0,P.jsxs)(se.N,{children:[(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Setup"})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(Z.ZP,{danger:"app_name"in r&&!(null!==_&&void 0!==_&&_.app_name),default:!0,large:!0,children:["Application name ","app_name"in r&&!(null!==_&&void 0!==_&&_.app_name)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return v({app_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Sparkmage",value:(null===_||void 0===_?void 0:_.app_name)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:"spark_master"in r&&!(null!==_&&void 0!==_&&_.spark_master),default:!0,large:!0,children:["Master URL ","spark_master"in r&&!(null!==_&&void 0!==_&&_.spark_master)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The URL for connecting to the master."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return v({spark_master:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. local, yarn, spark://host:port",value:(null===_||void 0===_?void 0:_.spark_master)||""})})]})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Spark home directory"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Path where Spark is installed on worker nodes."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return v({spark_home:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /usr/lib/spark",value:(null===_||void 0===_?void 0:_.spark_home)||""})})]})}),pe.GO.AWS_EMR===d&&H]}),(0,P.jsx)(g.Z,{mb:b.HN}),(null===i||void 0===i?void 0:i.connection_credentials)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Credentials"})}),null===i||void 0===i||null===(n=i.connection_credentials)||void 0===n?void 0:n.map((function(e){var n=e.description,t=e.error,r=e.name,i=e.required,l=e.uuid,o=e.valid,c=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!o,default:!0,large:!0,monospace:!r,children:[r||l," ",!o&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is invalid"})]}),n&&(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:n})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(x.Z,{flex:1,justifyContent:"flex-end",children:[!o&&(0,P.jsxs)(P.Fragment,{children:[!t&&i&&(0,P.jsx)(Z.ZP,{muted:!0,large:!0,children:"Required but missing"}),!t&&!i&&(0,P.jsx)(Z.ZP,{muted:!0,large:!0,children:"Invalid"}),t&&(0,P.jsx)(je.Z,{error:t,large:!0})]}),o&&c&&(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:c})]})]})})]},l)}))]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(j.Z,{level:4,children:"Customizations"})}),(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Use custom session"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["Whether to create custom SparkSession via",(0,P.jsx)("br",{}),"code and set it in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(S.Z,{checked:null===_||void 0===_?void 0:_.use_custom_session,compact:!0,onCheck:function(e){return v({use_custom_session:e(null===_||void 0===_?void 0:_.use_custom_session)})}})})]})}),(null===_||void 0===_?void 0:_.use_custom_session)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Custom session variable"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The variable name to set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),",",(0,P.jsx)("br",{}),"e.g. If variable name is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"spark"})," then the Spark session",(0,P.jsx)("br",{}),"is accessed using ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']['spark']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return v({custom_session_var_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. spark",value:(null===_||void 0===_?void 0:_.custom_session_var_name)||""})})]})})]}),pe.GO.AWS_EMR===d&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Bootstrap script path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Use a custom script to bootstrap the EMR cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return f({bootstrap_script_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /path/to/emr_bootstrap.sh",value:(null===y||void 0===y?void 0:y.bootstrap_script_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add environment variable",addTextInputPlaceholder:"e.g. PYTHONPATH",alreadyExistsMessage:"Environment variable exists",configurationValuePlaceholder:"e.g. /home/path",configurations:null===_||void 0===_?void 0:_.executor_env,createButtonText:"Create environment variable",description:(0,P.jsx)(Z.ZP,{muted:!0,children:"Environment variables for the executor."}),emptyState:"There are currently no executor environment variables.",setConfigurations:function(e){return v({executor_env:e})},title:"Environment variables"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"JAR files"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["These files will be to be uploaded to the cluster and added to the ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"classpath"}),"."]})})]}),(0,P.jsx)(g.Z,{mr:b.cd}),R&&(0,P.jsx)(h.ZP,{alignItems:"center",children:N})]})}),!R&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:"There are currently no JAR files."})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:N})]})]}),R&&z]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!r||!(null!==(t=Object.keys(r))&&void 0!==t&&t.length),loading:l,onClick:function(){return c()},primary:!0,children:"Save changes"}),u&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===u||void 0===u?void 0:u()},secondary:!0,children:"Cancel and go back"})]})]})]})},Pe=t(35185);var ye=function(e){var n=e.computeService,t=e.onClick,r=(0,o.useMemo)((function(){var e,t=[],r=0;return null===n||void 0===n||null===(e=n.setup_steps)||void 0===e||e.forEach((function(e){var n=e.group,i=e.required,l=e.status_calculated,o=e.steps;n?null===o||void 0===o||o.forEach((function(e){t.push(e);var n=e.required,i=e.status_calculated;n&&pe.br.COMPLETED!==i||(r+=1)})):(t.push(e),i&&pe.br.COMPLETED!==l||(r+=1))})),{steps:t,stepsCompleted:r}}),[n]),i=r.steps,l=r.stepsCompleted,c=(0,o.useMemo)((function(){return(null===i||void 0===i?void 0:i.length)||1}),[i]),s=(0,o.useMemo)((function(){return l/c}),[l,c]);return(0,P.jsxs)(q.Z,{block:!0,noHoverUnderline:!0,noOutline:!0,onClick:t?function(){return null===t||void 0===t?void 0:t()}:null,preventDefault:!0,children:[(0,P.jsx)(m.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[(0,P.jsx)(g.Z,{mb:1,children:(0,P.jsxs)(Z.ZP,{monospace:!0,muted:!0,children:[(0,P.jsx)(Z.ZP,{default:!0,inline:!0,children:l})," / ",(0,P.jsx)(Z.ZP,{default:!0,inline:!0,children:c})," ",(0,R._6)("step",c,!1,!0)," completed"]})}),(0,P.jsx)(Pe.Z,{progress:100*s})]}),(0,P.jsx)(m.Z,{light:!0})]})},_e=t(78688),ke=t(72748),Oe=t(32013),Ce=t(98777);function Ie(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 Se(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee="Environment",we="Executors";var Te=function(e){e.objectAttributes;var n,t=(0,o.useContext)(D.ThemeContext),r=(0,o.useState)(Ee),i=r[0],l=r[1],c=E.ZP.spark_executors.list().data,u=(0,o.useMemo)((function(){return null===c||void 0===c?void 0:c.spark_executors}),[c]),a=E.ZP.spark_environments.detail("0").data,d=(0,o.useMemo)((function(){return null===a||void 0===a?void 0:a.spark_environment}),[a]),p=(0,o.useMemo)((function(){var e,n,t,r,i,l,c;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsxs)(Oe.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Runtime",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(e=Object.entries((null===d||void 0===d?void 0:d.runtime)||{}))||void 0===e?void 0:e.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Hadoop properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(n=d.hadoop_properties)||void 0===n?void 0:n.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Metrics properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(t=d.metrics_properties)||void 0===t?void 0:t.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Spark properties",children:[(0,P.jsx)(I.Z,{columnFlex:[1,4],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(r=d.spark_properties)||void 0===r?void 0:r.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"System properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(i=d.system_properties)||void 0===i?void 0:i.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Classpath entries",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Type"},{uuid:"Value"}],rows:null===d||void 0===d||null===(l=d.classpath_entries)||void 0===l?void 0:l.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"type"}),e[1]),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[0])]}))}),(0,P.jsx)(g.Z,{p:1})]})]})}),null===d||void 0===d||null===(c=d.resource_profiles)||void 0===c?void 0:c.map((function(e){var n=e.executor_resources,t=e.id,r=e.task_resources;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Executor resources ID ",t]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(Oe.Z,{noBoxShadow:!0,children:Object.entries(n||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:(0,R.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,R.vg)(e[0])),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Task resources ID ",t]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(Oe.Z,{noBoxShadow:!0,children:Object.entries(r||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:(0,R.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,R.vg)(e[0])),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})})]},t)}))]})}),[d]),f=(0,o.useMemo)((function(){return null===u||void 0===u?void 0:u.map((function(e){return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Executor ",null===e||void 0===e?void 0:e.id]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsxs)(Oe.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:["active_tasks","add_time","completed_tasks","disk_used","failed_tasks","host_port","is_active","is_blacklisted","is_excluded","max_memory","max_tasks","memory_used","rdd_blocks","resource_profile_id","total_cores","total_duration","total_gc_time","total_input_bytes","total_shuffle_read","total_shuffle_write","total_tasks"].map((function(n){var t=null===e||void 0===e?void 0:e[n];return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,R.vg)(n)),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),"undefined"===typeof t?"-":"boolean"===typeof t?String(t):t)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,R.vg)(t)),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),"undefined"===typeof r?"-":"boolean"===typeof r?String(r):r)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Ce.Z,{noPaddingContent:!0,title:"Peak memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.peak_memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,R.vg)(t)),(0,o.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),"undefined"===typeof r?"-":"boolean"===typeof r?String(r):r)]}))}),(0,P.jsx)(g.Z,{p:1})]})]})})]},null===e||void 0===e?void 0:e.id)}))}),[u]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(J.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return l(n)},regularSizeText:!0,selectedTabUUID:i,tabs:[{label:function(){return Ee},uuid:Ee},{label:function(){return we},uuid:we}],underlineColor:null===t||void 0===t||null===(n=t.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(m.Z,{light:!0})}),Ee===i&&p,we===i&&f]})},De=t(62547),Me=t(23657),Ae=t(74778),Re=t(46684),Be=t(53808),Ne=t(10332),Fe=t(15610),ze=t(69419),He=t(19183);function Le(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 We(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ue=function(e){var n,t=e.contained,r=e.heightOffset,i=e.mainContainerRef,l=(0,He.i)(),d=l.height,p=(l.width,(0,o.useMemo)((function(){return"ComputeManagement/".concat(t?"contained":"open")}),[t])),f=(0,L.VI)(null,{},[],{uuid:p}),v=(0,s.Z)(f,1)[0],m=((0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null),(0,o.useRef)(null)),y=(0,o.useMemo)((function(){return d-(r||0)}),[r,d]),_=(0,o.useState)(!1),k=_[0],O=_[1],C=(0,o.useState)(null),I=C[0],S=C[1],T=(0,Me.Z)({clustersRefreshInterval:1e4,includeAllStates:k}),D=T.activeCluster,M=T.clusters,A=T.clustersLoading,R=T.computeService,B=T.connections,F=T.connectionsLoading,H=T.fetchAll,W=T.setupComplete,U=(0,o.useState)(null),V=U[0],G=U[1];(0,o.useEffect)((function(){var e;G(null===m||void 0===m||null===(e=m.current)||void 0===e?void 0:e.getBoundingClientRect())}),[d,m]);var J=(0,o.useMemo)((function(){return"compute_management_after_width_".concat(p)}),[p]),K=(0,o.useMemo)((function(){return"compute_management_before_width_".concat(p)}),[p]),Y=(0,o.useState)((0,Be.U2)(J,60*b.iI)),Q=Y[0],ee=Y[1],ne=(0,o.useCallback)((function(e){ee(e),(0,Be.t8)(J,Math.max(e,60*b.iI))}),[J,ee]),te=(0,o.useState)(!1),re=te[0],ie=te[1],le=(0,o.useState)(Math.max((0,Be.U2)(K),20*b.iI)),ce=le[0],se=le[1],ue=(0,o.useCallback)((function(e){se(e||20*b.iI),(0,Be.t8)(K,e||20*b.iI)}),[K,se]),ae=(0,o.useState)(!1),de=ae[0],pe=ae[1],fe=(0,o.useState)(!0),ve=fe[0],he=fe[1],je=(0,o.useState)(null),xe=je[0],ge=je[1],Ze=(0,o.useCallback)((function(e){ge((function(n){var t=e(n);return t&&ve?he(!1):t||ve||!W||he(!0),t}))}),[ve,he,ge,W]),Pe=(0,o.useState)(null),Oe=Pe[0],Ce=Pe[1],Ie=(0,o.useCallback)((function(e){var n;(0,Fe.u7)((0,c.Z)({},"tab",null===(n="function"===typeof e?null===e||void 0===e?void 0:e():e)||void 0===n?void 0:n.main)),Ze((function(){return null}))}),[Ze]),Se=(0,ze.iV)();(0,o.useEffect)((function(){var e=null===Se||void 0===Se?void 0:Se.tab;(null===Oe||void 0===Oe?void 0:Oe.main)!==e&&Ce(e?{main:e}:null)}),[Oe,Se]);var Ee=(0,o.useState)(null),we=Ee[0],Le=Ee[1],Ue=(0,o.useState)({}),Ve=Ue[0],Ge=Ue[1],Xe=(0,o.useCallback)((function(e){Ge((function(n){return We(We({},n),e)})),Le((function(n){return We(We({},n),e)}))}),[Ge,Le]),qe=((0,o.useCallback)((function(e){return Xe({spark_config:We(We({},null===we||void 0===we?void 0:we.spark_config),e)})}),[we,Xe]),E.ZP.projects.list({},{revalidateOnFocus:!1}).data),Je=(0,o.useMemo)((function(){var e;return null===qe||void 0===qe||null===(e=qe.projects)||void 0===e?void 0:e[0]}),[qe]),Ke=(0,o.useMemo)((function(){return null===Je||void 0===Je?void 0:Je.name}),[Je]),Ye=E.ZP.spark_applications.list().data,Qe=(0,o.useMemo)((function(){return null===Ye||void 0===Ye?void 0:Ye.spark_applications}),[Ye]),$e=E.ZP.spark_jobs.list().data,en=(0,o.useMemo)((function(){return null===$e||void 0===$e?void 0:$e.spark_jobs}),[$e]);(0,o.useEffect)((function(){he(W)}),[W]),(0,o.useEffect)((function(){Je&&(Le(Je),S((0,Ne.d)(Je)))}),[Je,Le,S,Ie]),(0,o.useEffect)((function(){!Oe&&I&&Ie({main:$.uK.SETUP})}),[I,Oe,Ie]);var nn=(0,u.Db)(E.ZP.projects.useUpdate(Ke),{onSuccess:function(e){return(0,N.wD)(e,{callback:function(e){var n=e.project;Ge({}),Le(n),H()},onErrorCallback:function(e,n){return v({errors:n,response:e})}})}}),tn=(0,s.Z)(nn,2),rn=tn[0],ln=tn[1].isLoading,on=(0,o.useCallback)((function(e){return rn({project:(0,z.GL)(We(We({},we),e),["emr_config","remote_variables_dir","spark_config"])})}),[we,rn]),cn=(0,o.useMemo)((function(){var e=(0,$.kI)(R).map((function(e){var n,t=e.Icon,r=e.renderStatus,i=e.uuid;return r&&(n=null===r||void 0===r?void 0:r({applications:Qe,applicationsLoading:!Ye,clusters:M,clustersLoading:A,computeConnections:B,computeService:R,jobs:en,jobsLoading:!$e})),(0,P.jsx)(q.Z,{block:!0,disabled:!I,noHoverUnderline:!0,noOutline:!0,onClick:function(){return Ie((function(){return{main:i}}))},preventDefault:!0,children:(0,P.jsx)(Ae.bC,{selected:(null===Oe||void 0===Oe?void 0:Oe.main)===i,children:(0,P.jsxs)(h.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{alignItems:"center",flex:1,children:[(0,P.jsx)(t,{size:2*b.iI}),(0,P.jsx)(g.Z,{mr:2}),(0,P.jsx)(Z.ZP,{bold:!0,large:!0,children:$.TD[i]})]}),n&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),n]})]})})},i)}));if(I){var n=String(I),t=$.l[n],r=$.Eb[n],i=$.LF[n];if(t&&r&&i){var l,o;null!==R&&void 0!==R&&R.setup_steps&&(o=W?D?null!==D&&void 0!==D&&D.ready?"Cluster is ready, commence coding.":"Cluster activated and initializing.":"Setup complete but no clusters activated.":"All setup steps have not been completed yet.");var c=[];null!==R&&void 0!==R&&R.setup_steps&&c.push((0,P.jsx)(g.Z,{py:1,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[W&&(0,P.jsx)(w.Fs,{muted:!(null!==D&&void 0!==D&&D.ready),size:1.5*b.iI,success:null===D||void 0===D?void 0:D.ready}),!W&&(0,P.jsx)(w.uy,{danger:!0,size:1.5*b.iI}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!W||!D,small:!0,children:W&&D?"Compute service connected":"Compute service unconnected"}),o&&(0,P.jsx)(Z.ZP,{muted:!0,xsmall:!0,children:o})]})]})},"compute-service-setup-steps")),(null===R||void 0===R||null===(l=R.setup_steps)||void 0===l?void 0:l.length)>=1&&!W&&e.unshift((0,P.jsx)(ye,{computeService:R,onClick:function(){return he(!1)}},"setupProgress")),e.unshift((0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Ae.UE,{inline:!0,children:[(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsx)(x.Z,{flex:1,children:i()}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(){S(null),Ie(null)},secondary:!0,small:!0,children:"Change"})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"flex-end",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r}),(0,P.jsx)(j.Z,{level:5,children:t})]})})}),(null===c||void 0===c?void 0:c.length)>=1&&(0,P.jsx)(g.Z,{mt:b.cd,children:c})]})},"".concat(t,"-").concat(r)))}}return e}),[D,Qe,M,A,R,B,Ye,$e,en,I,Oe,he,Ie,W]),sn=(0,o.useMemo)((function(){var e;return xe?(0,P.jsx)(ke.Z,{height:y-(((null===V||void 0===V?void 0:V.height)||0)+Re.Mz+1),model:xe}):(null===R||void 0===R||null===(e=R.setup_steps)||void 0===e?void 0:e.length)>=1?(0,P.jsx)(_e.Z,{onClickStep:function(e){return Ie((function(){return{main:e}}))},setupSteps:null===R||void 0===R?void 0:R.setup_steps}):void 0}),[R,y,xe,W]),un=(0,o.useMemo)((function(){return(0,P.jsx)(be,{attributesTouched:Ve||{},computeService:R,isLoading:ln,mutateObject:on,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Xe})}),[Ve,R,ln,we,I,Xe,on]),an=(0,o.useMemo)((function(){return(0,P.jsx)(me,{attributesTouched:Ve||{},isLoading:ln,mutateObject:on,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Xe})}),[Ve,ln,we,I,Xe,on]),dn=(0,o.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(oe,{applications:Qe,computeConnections:B,computeService:R,connectionsLoading:F,fetchAll:H,jobs:en,loadingApplications:!Ye,loadingJobs:!$e,objectAttributes:we,refButtonTabs:m,selectedComputeService:I,setSelectedSql:Ze,setSelectedTab:Ie})}),[Qe,R,B,F,H,Ye,$e,en,we,m,I,Ze,Ie]),pn=(0,o.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(Te,{objectAttributes:we})}),[we,I]),fn=(0,o.useMemo)((function(){return(0,P.jsxs)(g.Z,{mx:1,py:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,px:b.cd,children:(0,P.jsx)(j.Z,{children:"Select a compute service"})}),(0,P.jsx)(h.ZP,{alignItems:"center",flexWrap:"wrap",children:$.sY.map((function(e){var n=e.buildPayload,t=e.displayName,r=e.documentationHref,i=e.kicker,l=e.renderIcon,o=e.uuid;return(0,P.jsxs)(Ae.UE,{children:[l(),(0,P.jsxs)(g.Z,{mt:b.cd,children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:i}),(0,P.jsx)(j.Z,{level:4,children:t})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{loading:ln&&o===I,onClick:function(){S(o),on(n(we))},primary:!0,children:"Enable"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(q.Z,{href:r,default:!0,openNewWindow:!0,children:"View setup documentation"})]})})]},o)}))})]})}),[ln,we,I,S,on]),vn=(0,o.useMemo)((function(){return(0,P.jsx)(X,{clusters:M,computeService:R,fetchAll:H,includeAllStates:k,loading:A,setIncludeAllStates:O})}),[M,A,R,H,k,O]),mn=(0,o.useMemo)((function(){if(!I&&we)return fn;if(I&&Je&&null!==Oe&&void 0!==Oe&&Oe.main){var e=null===Oe||void 0===Oe?void 0:Oe.main;if($.uK.SETUP===e)return un;if($.uK.RESOURCES===e)return an;if($.uK.MONITORING===e)return dn;if($.uK.SYSTEM===e)return pn;if($.uK.CLUSTERS===e)return vn}}),[vn,fn,dn,we,Je,an,I,Oe,un,pn]);return(0,P.jsx)(De.Z,{after:sn,afterDividerContrast:!0,afterHeightOffset:Re.Mz,afterHidden:ve&&!xe,afterMousedownActive:re,afterWidth:Q,before:cn,beforeDividerContrast:!0,beforeHeightOffset:0,beforeHidden:!I,beforeMousedownActive:de,beforeWidth:ce,contained:!0,height:y,hideAfterCompletely:!(null!==R&&void 0!==R&&null!==(n=R.setup_steps)&&void 0!==n&&n.length),hideBeforeCompletely:!I,inline:!0,mainContainerRef:i,setAfterHidden:he,setAfterMousedownActive:ie,setAfterWidth:ne,setBeforeMousedownActive:pe,setBeforeWidth:ue,uuid:p,children:mn})},Ve=t(94629),Ge=t(93808);function Xe(){var e=(0,o.useRef)(null);return(0,P.jsx)(Ve.Z,{title:"Compute management",uuid:"Compute management/index",children:(0,P.jsx)("div",{ref:e,children:(0,P.jsx)(Ue,{heightOffset:Re.Mz,mainContainerRef:e})})})}Xe.getInitialProps=(0,r.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var qe=(0,Ge.Z)(Xe)},23657:function(e,n,t){"use strict";var r=t(82394),i=t(75582),l=t(82684),o=t(74260),c=t(35686),s=t(77417);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 a(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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.clustersRefreshInterval,t=e.computeServiceRefreshInterval,u=e.connectionsRefreshInterval,d=e.includeAllStates,p=(0,s.Z)(),f=p.sparkEnabled,v=c.ZP.compute_services.detail("compute-service",{},{refreshInterval:t},{pauseFetch:!f}),m=v.data,h=v.mutate,j=(0,l.useMemo)((function(){return null===m||void 0===m?void 0:m.compute_service}),[m]),x={};d&&(x.include_all_states=!0);var g=c.ZP.compute_clusters.compute_services.list(null===j||void 0===j?void 0:j.uuid,x,{refreshInterval:n},{pauseFetch:!f}),Z=g.data,b=g.mutate,P=(0,l.useMemo)((function(){return(null===Z||void 0===Z?void 0:Z.compute_clusters)||[]}),[Z]),y=(0,l.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(e){return e.cluster}))}),[P]),_=(0,l.useMemo)((function(){var e,n;return null!==j&&void 0!==j&&null!==(e=j.setup_steps)&&void 0!==e&&e.length?null===j||void 0===j||null===(n=j.setup_steps)||void 0===n?void 0:n.every((function(e){var n=e.required,t=e.status_calculated;return!n||!t||o.br.COMPLETED===t})):null}),[j]),k=((0,l.useMemo)((function(){return null===y||void 0===y?void 0:y.find((function(e){return e.active}))}),[y]),c.ZP.compute_connections.compute_services.list(null===j||void 0===j?void 0:j.uuid,{},{refreshInterval:u},{pauseFetch:!f})),O=k.data,C=k.mutate,I=(0,l.useMemo)((function(){return(null===O||void 0===O?void 0:O.compute_connections)||[]}),[O]),S=(0,l.useCallback)((function(){return new Promise((function(){null===b||void 0===b||b(),null===C||void 0===C||C(),null===h||void 0===h||h()}))}),[b,C,h]);return{activeCluster:null===y||void 0===y?void 0:y.find((function(e){return e.active})),clusters:y,clustersLoading:!Z,computeService:j,computeServiceUUIDs:Object.entries(o.GO).reduce((function(e,n){var t=(0,i.Z)(n,2),l=t[0],o=t[1];return a(a({},e),{},(0,r.Z)({},l,o))}),{}),connections:I,connectionsLoading:!O,fetchAll:S,fetchComputeClusters:b,fetchComputeConnections:C,fetchComputeService:h,setupComplete:_}}},42278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compute",function(){return t(4910)}])}},function(e){e.O(0,[9774,2678,1154,844,5820,4267,6990,8487,8264,7858,5499,4366,4138,90,2888,179],(function(){return n=42278,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,n,t){"use strict";t.d(n,{r:function(){return a}});var r=t(82684);const i=e=>{let n;const t=new Set,r=(e,r)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=r?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,o={setState:r,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(r,i,o),o};var o=t(81550);const{useSyncExternalStoreWithSelector:u}=o;const c=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=u(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,r.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var l=e=>e?c(e):c;const a=e=>{const n=l((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(r=n[e],i=t,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((n=>n[e]),[e]);return[n(i),(0,r.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,r)=>{n[e]!==r[e]&&t(n[e])}))}}}},1589:function(e,n,t){"use strict";var r=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,l=r.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),i=r[0].inst,s=r[1];return c((function(){i.value=t,i.getSnapshot=n,a(i)&&s({inst:i})}),[e,t,n]),u((function(){return a(i)&&s({inst:i}),e((function(){a(i)&&s({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,n,t){"use strict";var r=t(82684),i=t(48216);var o="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},u=i.useSyncExternalStore,c=r.useRef,l=r.useEffect,a=r.useMemo,s=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,r,i){var d=c(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a((function(){function e(e){if(!l){if(l=!0,u=e,e=r(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return c=n}return c=e}if(n=c,o(u,e))return n;var t=r(e);return void 0!==i&&i(n,t)?n:(u=e,c=t)}var u,c,l=!1,a=void 0===t?null:t;return[function(){return e(n())},null===a?void 0:function(){return e(a())}]}),[n,t,r,i]);var p=u(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p}},48216:function(e,n,t){"use strict";e.exports=t(1589)},81550:function(e,n,t){"use strict";e.exports=t(73847)},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),u=t(50724),c=t(82555),l=t(97618),a=t(70613),s=t(68487),d=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var v=o.forwardRef(p),h=t(62547),b=t(82571),g=t(35686),O=t(98464),y=t(46684),m=t(70515),S=t(53808),P=t(19183);function j(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function w(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,j=e.afterHeader,w=e.afterHidden,Z=e.afterWidth,E=e.afterWidthOverride,T=e.appendBreadcrumbs,C=e.before,_=e.beforeWidth,k=e.breadcrumbs,I=e.children,A=e.errors,R=e.headerMenuItems,N=e.headerOffset,M=e.hideAfterCompletely,D=e.mainContainerHeader,L=e.navigationItems,H=e.setAfterHidden,Y=e.setErrors,V=e.subheaderChildren,W=e.subheaderNoPadding,B=e.title,F=e.uuid,U=(0,P.i)().width,G="dashboard_after_width_".concat(F),K="dashboard_before_width_".concat(F),X=(0,o.useRef)(null),Q=(0,o.useState)(E?Z:(0,S.U2)(G,Z)),J=Q[0],z=Q[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(C?Math.max((0,S.U2)(K,_),13*m.iI):null),te=ne[0],re=ne[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],ce=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===le||void 0===le?void 0:le.projects,se={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];k&&(r&&de.push(se),de.push.apply(de,(0,i.Z)(k))),(null===k||void 0===k||!k.length||T)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==k&&void 0!==k&&k.length||de.unshift({bold:!T,label:function(){return B}}),de.unshift(se)),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||$||oe||null===ce||void 0===ce||ce(X.current.getBoundingClientRect().width)}),[$,J,oe,te,X,ce,U]),(0,o.useEffect)((function(){$||(0,S.t8)(G,J)}),[w,$,J,G]),(0,o.useEffect)((function(){oe||(0,S.t8)(K,te)}),[oe,te,K]);var fe=(0,O.Z)(Z);return(0,o.useEffect)((function(){E&&fe!==Z&&z(Z)}),[E,Z,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:B}),(0,f.jsx)(s.Z,{breadcrumbs:de,menuItems:R,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(t=ae[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===L||void 0===L?void 0:L.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:L,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:p,afterHeader:j,afterHeightOffset:y.Mz,afterHidden:w,afterMousedownActive:$,afterWidth:J,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:oe,beforeWidth:d.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||M,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:X,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:z,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[V&&(0,f.jsx)(v,{noPadding:W,children:V}),I]})})]}),A&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,f.jsx)(c.Z,x(x({},A),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))})]})}var Z=o.forwardRef(w)},28385:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(17717),u=t(82684),c=t(80329),l=t(69864),a=t(71180),s=t(75810),d=t(89706),f=t(97618),p=t(55485),v=t(85854),h=t(38276),b=t(4190),g=t(75499),O=t(30160),y=t(35686),m=t(70515),S=t(68669),P=t(3917),j=t(81728),x=t(72619),w=t(3314),Z=t(86735),E=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 C(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,r.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}n.Z=function(e){var n=e.onActionCallback,t=e.pipeline,T=e.selectedBlock,_=e.selectedFilePath,k=e.setErrors,I=e.width,A=(0,c.j)("apiReloads"),R=(0,i.Z)(A,2)[1],N=(0,u.useMemo)((function(){return _?encodeURIComponent(_):T?encodeURIComponent("".concat(null===T||void 0===T?void 0:T.type,"/").concat(null===T||void 0===T?void 0:T.uuid)):null}),[T,_]),M=y.ZP.file_versions.files.list(N,{block_uuid:null===T||void 0===T?void 0:T.uuid,pipeline_uuid:null===t||void 0===t?void 0:t.uuid}),D=M.data,L=M.mutate,H=(0,u.useMemo)((function(){return(null===D||void 0===D?void 0:D.file_versions)||[]}),[D]),Y=(0,u.useState)(null),V=Y[0],W=Y[1],B=(0,u.useMemo)((function(){return null===H||void 0===H?void 0:H[V]}),[V,H]),F=y.ZP.file_contents.detail(B?encodeURIComponent(B.path):null).data,U=(0,u.useMemo)((function(){return null===F||void 0===F?void 0:F.file_content}),[F]),G=(0,u.useMemo)((function(){return(0,S.lU)()}),[]),K=(0,u.useMemo)((function(){var e,n,t;return null===_||void 0===_||null===(e=_.match(G))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[_,G]),X=(0,l.Db)(y.ZP.file_contents.useUpdate(N),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var t;_&&L();var i=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(i);if(i){var c=i.split(o.sep);if("pipelines"===c[0]){var l=c.slice(1,c.length-1).join(o.sep);u="PipelineDetail/".concat(l)}}R((function(e){return C(C({},e),{},(0,r.Z)({},u,Number(new Date)))})),W((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content,{blockUUID:null===T||void 0===T?void 0:T.uuid})},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),Q=(0,i.Z)(X,2),J=Q[0],z=Q[1].isLoading,q=(0,u.useCallback)((function(e){var n=C({},e);return _||(n.block_uuid=null===T||void 0===T?void 0:T.uuid,n.pipeline_uuid=null===t||void 0===t?void 0:t.uuid),J({file_content:n})}),[t,T,_,J]),$=(0,u.useMemo)((function(){var e=H.map((function(e){var n=e.name,t=e.path;return[(0,E.jsxs)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,E.jsxs)(f.Z,{flex:1,children:[(0,E.jsx)(O.ZP,{default:!0,monospace:!0,children:(0,P.JX)(n,{withSeconds:!0})}),(0,E.jsx)(h.Z,{px:2*m.cd,children:(0,E.jsx)(O.ZP,{monospace:!0,children:n})})]}),B&&(null===B||void 0===B?void 0:B.path)===t&&(0,E.jsx)(a.ZP,{compact:!0,loading:z,onClick:function(e){(0,w.j)(e),q({version:n})},small:!0,children:"Replace with this version"})]},n)]}));if(B){var n=(0,E.jsx)(h.Z,{p:m.cd,children:(0,E.jsx)(b.Z,{},"spinner")});if(U&&(null===U||void 0===U?void 0:U.path)===(null===B||void 0===B?void 0:B.path)){var t=U.content,r=void 0===t?"":t;n=(0,E.jsx)(s.Z,{autoHeight:!0,language:d.nB[K],padding:2*m.iI,readOnly:!0,value:(0,j.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:I})}e=(0,Z.Hk)([n],V+1,e)}return e}),[U,K,H,z,B,V,q,I]);return(0,E.jsxs)("div",{style:{width:I},children:[(0,E.jsxs)(h.Z,{p:m.cd,children:[(0,E.jsx)(v.Z,{level:5,children:"File versions"}),(0,E.jsx)(O.ZP,{inline:!0,monospace:!0,children:_?decodeURIComponent(_):null===T||void 0===T?void 0:T.uuid})]}),(0,E.jsx)(g.Z,{buildRowProps:function(e){if(B&&V+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=H[e])||void 0===n?void 0:n.name)===(null===B||void 0===B?void 0:B.name)},onClickRow:function(e){B?e===V?W(null):e<V?W(e):e>V+1&&W(e-1):W(e)},rows:$})]})}},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return v},Z7:function(){return h},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return s}});var r,i,o=t(82394),u=t(57653),c=t(82359),l=t(72473),a=t(86735),s="sideview",d=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"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function p(e){var n,t,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.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:i.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:i.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function v(e){return(0,a.HK)(p(e),(function(e){return e.key}))}var h=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,l.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,l.JG),(0,o.Z)(r,i.CALLBACKS,l.AQ),(0,o.Z)(r,i.CHARTS,l.GQ),(0,o.Z)(r,i.DATA,l.iA),(0,o.Z)(r,i.EXTENSIONS,l.Bf),(0,o.Z)(r,i.INTERACTIONS,l.yd),(0,o.Z)(r,i.SECRETS,l.Yo),(0,o.Z)(r,i.SETTINGS,l.Zr),(0,o.Z)(r,i.TERMINAL,l.oI),(0,o.Z)(r,i.TREE,l.mp),(0,o.Z)(r,i.VARIABLES,l.LO),r)},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return h},Lu:function(){return o},PF:function(){return f},dT:function(){return u},n6:function(){return a},nB:function(){return v},oy:function(){return p},xF:function(){return d}});var r,i,o,u,c=t(82394),l=t(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"}(o||(o={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var a=[o.PY,o.SQL],s=[o.JSON,o.MD,o.PY,o.R,o.SH,o.SQL,o.TXT,o.YAML,o.YML],d=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",v=(r={},(0,c.Z)(r,o.MD,l.t6.MARKDOWN),(0,c.Z)(r,o.JSON,o.JSON),(0,c.Z)(r,o.PY,l.t6.PYTHON),(0,c.Z)(r,o.R,l.t6.R),(0,c.Z)(r,o.SQL,l.t6.SQL),(0,c.Z)(r,o.TXT,"text"),(0,c.Z)(r,o.YAML,l.t6.YAML),(0,c.Z)(r,o.YML,l.t6.YAML),r),h=(i={},(0,c.Z)(i,l.t6.MARKDOWN,o.MD),(0,c.Z)(i,l.t6.PYTHON,o.PY),(0,c.Z)(i,l.t6.R,o.R),(0,c.Z)(i,l.t6.SQL,o.SQL),(0,c.Z)(i,l.t6.YAML,o.YAML),(0,c.Z)(i,"text",o.TXT),i)},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return h},G7:function(){return O},LM:function(){return y},Mj:function(){return m},QK:function(){return v},RH:function(){return g},a_:function(){return P},fj:function(){return j},kA:function(){return S},qL:function(){return c},r0:function(){return b}});var r,i,o,u,c,l=t(75582),a=t(82394),s=t(72473),d=t(72098);function f(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?f(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var v,h,b,g=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Python"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),O=(i={},(0,a.Z)(i,c.INTEGRATION,"Integration"),(0,a.Z)(i,c.PYTHON,"Standard"),(0,a.Z)(i,c.PYSPARK,"PySpark"),(0,a.Z)(i,c.STREAMING,"Streaming"),i),y="all",m=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,y,s.ie),(0,a.Z)(o,c.INTEGRATION,s.YC),(0,a.Z)(o,c.PYTHON,s.El),(0,a.Z)(o,c.STREAMING,s.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var S=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],P=(u={},(0,a.Z)(u,c.PYTHON,d.U.PYTHON3),(0,a.Z)(u,c.PYSPARK,d.U.PYSPARK),u),j=Object.entries(P).reduce((function(e,n){var t=(0,l.Z)(n,2),r=t[0],i=t[1];return p(p({},e),{},(0,a.Z)({},i,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),u=t(30160),c=t(44897),l=t(42631),a=t(47041),s=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.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 "})),v=r.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(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 ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.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*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,f=void 0===s||s,g=e.fullWidth,O=void 0===g||g,y=e.header,m=e.headerHeight,S=e.headerIcon,P=e.headerPaddingVertical,j=e.headerTitle,x=e.maxHeight,w=e.maxWidth,Z=e.minWidth,E=e.noPadding,T=e.overflowVisible,C=e.subtitle,_=e.success;return(0,d.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:O,maxHeight:x,maxWidth:w,minWidth:Z,overflowVisible:T,ref:r,success:_,children:[(y||j)&&(0,d.jsxs)(v,{headerPaddingVertical:P,height:m,children:[y&&y,j&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[S&&S,(0,d.jsx)(o.Z,{ml:S?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(h,{maxHeight:x,noPadding:E,overflowVisible:T,ref:c,children:[C&&"string"===typeof C&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),a&&(0,d.jsx)(b,{children:a})]})}},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),u=t(44897),c=t(42631),l=t(70515),a=t(28598);function s(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=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 ")})),p=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)(f,d(d({},n),{},{children:(0,a.jsx)(p,d({},n))}))}},43173:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82394),c=t(75582),l=t(17717),a=t(82684),s=t(80329),d=t(69864),f=t(65557),p=t(94629),v=t(10553),h=t(29618),b=t(50724),g=t(55485),O=t(70374),y=t(30160),m=t(39643),S=t(87848),P=t(58325),j=t(44688),x=t(28598);var w=function(e){var n=e.children,t=e.fileVersionsVisible,r=e.onSave,i=e.setFilesVersionsVisible,o=(0,a.useState)(null),u=o[0],c=o[1],l=(0,a.useRef)(null),s=(0,a.useRef)(null),d=(0,a.useMemo)((function(){return[{disabled:!r,keyTextGroups:[[(0,P.V5)()?m.RJ:m.hE,m.SS]],label:function(){return"Save"},onClick:function(){return r?r():null},uuid:"save"}]}),[r]),f=(0,a.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return i(!t)},uuid:"versions"}]}),[t,i]),p="FileHeaderMenu/index",v=(0,j.y)(),h=v.registerOnKeyDown,w=v.unregisterOnKeyDown;return(0,a.useEffect)((function(){return function(){w(p)}}),[w,p]),h(p,(function(e,n){null!==u&&(n[m.QK]?c((function(e){return 0===e?2:e-1})):n[m.DY]&&c((function(e){return 2===e?0:e+1})))}),[u,c]),(0,x.jsx)(b.Z,{onClickOutside:function(){return c(null)},open:!0,style:{position:"relative"},children:(0,x.jsxs)(g.ZP,{children:[(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.u,{highlighted:0===u,onClick:function(){return c((function(e){return 0===e?null:0}))},onMouseEnter:function(){return c((function(e){return null!==e?0:null}))},ref:l,children:(0,x.jsx)(y.ZP,{children:"File"})}),(0,x.jsx)(O.Z,{items:d,onClickCallback:function(){return c(null)},open:0===u,parentRef:l,uuid:"FileHeaderMenu/file"})]}),(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.u,{highlighted:1===u,onClick:function(){return c((function(e){return 1===e?null:1}))},onMouseEnter:function(){return c((function(e){return null!==e?1:null}))},ref:s,children:(0,x.jsx)(y.ZP,{children:"Edit"})}),(0,x.jsx)(O.Z,{items:f,onClickCallback:function(){return c(null)},open:1===u,parentRef:s,uuid:"FileHeaderMenu/edit"})]}),n]})})},Z=t(90758),E=t(28385),T=t(35686),C=t(38626),_=t(44897),k=t(2842),I=t(46684),A=t(47041),R=72-k.uX+I.Mz,N=C.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,I.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),M=C.default.div.withConfig({displayName:"indexstyle__MenuStyle",componentId:"sc-11pty4f-1"})(["height:","px;position:relative;z-index:1;",""],36,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||_.Z.borders).medium,";\n ")})),D=C.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,A.y$)(),36),L=t(53808),H=t(86735),Y="open_files";function V(e){(0,L.t8)(Y,e)}var W=t(72619),B=t(42041),F=t(23780);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 G(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,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function K(e){var n=e.split(l.sep);return n[n.length-1]}var X=function(){var e=(0,s.j)("apiReloads"),n=(0,c.Z)(e,2)[1],t=(0,a.useRef)(null),r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current||(r.current={}),r.current=G(G({},r.current),e)}),[r]),o=(0,a.useState)([]),l=o[0],b=o[1],g=(0,a.useState)(null),O=g[0],y=g[1],S=(0,a.useState)({}),P=S[0],C=S[1],_=(0,a.useState)(!1),k=_[0],I=_[1],A=(0,a.useMemo)((function(){return l.reduce((function(e,n){var t=K(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[l]),U=(0,a.useCallback)((function(e){V(e),b(e)}),[]),X=(0,a.useCallback)((function(e){U(function(e){var n=(0,L.U2)(Y,[]);return n.includes(e)||n.push(e),V(n),n}(e))}),[U]),Q=(0,a.useCallback)((function(e){i((0,u.Z)({},e,null)),C((function(n){return G(G({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,L.U2)(Y,[]),t=(0,H.Od)(n,(function(n){return n===e}));return V(t),t}(e);U(n),O===e&&(null===n||void 0===n?void 0:n.length)>=1&&y(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&y(null)}),[O,i,U]),J=(0,a.useCallback)((function(e,n){n||(X(e),y(e))}),[X]);(0,a.useEffect)((function(){var e=(0,L.U2)(Y,[]);U(e),y((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[U]);var z=T.ZP.files.list(),q=z.data,$=z.mutate,ee=(0,a.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,F.VI)(null,{},[],{uuid:"FilesPage"}),te=(0,c.Z)(ne,1)[0],re="Files/index",ie=(0,j.y)(),oe=(ie.disableGlobalKeyboardShortcuts,ie.registerOnKeyDown),ue=ie.unregisterOnKeyDown;(0,a.useEffect)((function(){return function(){ue(re)}}),[ue,re]),oe(re,(function(e,n){var t=Object.entries(P).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0];return t[1]?e.concat(r):e}),[]);if((0,B.y)([m.zX,m.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var r="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[P]);var ce=(0,a.useMemo)((function(){return(0,x.jsx)(Z.Z,{filePaths:l,filesTouched:P,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return y(e)},onClickTabClose:function(e){return Q(e)},renderTabTitle:function(e){var n=K(e),t=A[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:O})}),[P,l,A,Q,O]),le=(0,a.useMemo)((function(){return(0,x.jsx)(v.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return J(e)},onClickFolder:function(e){return J(e,!0)},onCreateFile:function(e){var n=e.path;return J(n)},ref:t,setErrors:te})}),[$,t,ee,J,te]),ae=(0,d.Db)((function(e){return T.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,W.wD)(e,{callback:function(e){var t=e.file_content;n((function(e){return G(G({},e),{},(0,u.Z)({},"FileVersions/".concat(null===t||void 0===t?void 0:t.path),Number(new Date)))})),i((0,u.Z)({},null===t||void 0===t?void 0:t.path,null))},onErrorCallback:function(e,n){return te({errors:n,response:e})}})}}),se=(0,c.Z)(ae,1)[0],de=(0,a.useCallback)((function(e,n){se(G(G({},n),{},{content:e})),C((function(e){return G(G({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[C,se]),fe=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.map((function(e){return(0,x.jsx)("div",{style:{display:O===e?null:"none"},children:(0,x.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,x.jsx)(h.Z,{active:O===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return i((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:O,setErrors:te,setFilesTouched:C})})},e)}))}),[l,de,O,i,te]),pe=(0,a.useMemo)((function(){return(0,x.jsx)(w,{fileVersionsVisible:k,onSave:function(){var e,n;(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(n=e[O])||void 0===n?void 0:n.length)>=1&&de(r.current[O],{path:O})},setFilesVersionsVisible:I})}),[r,k,de,O,I]);return(0,x.jsx)(p.Z,{after:(0,x.jsx)(f.Z,{uuid:"FileVersions/".concat(O?decodeURIComponent(O):""),children:(0,x.jsx)(E.Z,{selectedFilePath:O,setErrors:te})}),afterHidden:!(k&&O),before:le,headerOffset:R,mainContainerHeader:(null===l||void 0===l?void 0:l.length)>=1&&(0,x.jsxs)(N,{children:[(0,x.jsx)(M,{children:pe}),(0,x.jsx)(D,{children:ce})]}),title:"Files",uuid:"Files/index",children:fe})},Q=t(93808);function J(){return(0,x.jsx)(X,{})}J.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 z=(0,Q.Z)(J)},58325:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,l=i.MAC,a=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,s=(null===(t=window)||void 0===t||null===(r=t.navigator)||void 0===r||null===(o=r.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(c=u.navigator)||void 0===c?void 0:c.platform);return s?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(s)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(s)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(s)&&(l=i.IOS):a&&(a.includes("Macintosh")?l=i.MAC:a.includes("Windows")?l=i.WINDOWS:a.includes("Linux")&&a.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(a)?l=i.IOS:a.includes("Android")&&a.includes("Mobi")?l=i.ANDROID:a.includes("CrOS")&&(l=i.CHROME_OS)),l}()===i.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(43173)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,4267,600,8487,8264,7858,5499,5810,553,9618,5638,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,n,t){"use strict";t.d(n,{r:function(){return a}});var r=t(82684);const i=e=>{let n;const t=new Set,r=(e,r)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=r?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,o={setState:r,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(r,i,o),o};var o=t(81550);const{useSyncExternalStoreWithSelector:u}=o;const c=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=u(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,r.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var l=e=>e?c(e):c;const a=e=>{const n=l((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(r=n[e],i=t,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((n=>n[e]),[e]);return[n(i),(0,r.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,r)=>{n[e]!==r[e]&&t(n[e])}))}}}},1589:function(e,n,t){"use strict";var r=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,l=r.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),i=r[0].inst,s=r[1];return c((function(){i.value=t,i.getSnapshot=n,a(i)&&s({inst:i})}),[e,t,n]),u((function(){return a(i)&&s({inst:i}),e((function(){a(i)&&s({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,n,t){"use strict";var r=t(82684),i=t(48216);var o="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},u=i.useSyncExternalStore,c=r.useRef,l=r.useEffect,a=r.useMemo,s=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,r,i){var d=c(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a((function(){function e(e){if(!l){if(l=!0,u=e,e=r(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return c=n}return c=e}if(n=c,o(u,e))return n;var t=r(e);return void 0!==i&&i(n,t)?n:(u=e,c=t)}var u,c,l=!1,a=void 0===t?null:t;return[function(){return e(n())},null===a?void 0:function(){return e(a())}]}),[n,t,r,i]);var p=u(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p}},48216:function(e,n,t){"use strict";e.exports=t(1589)},81550:function(e,n,t){"use strict";e.exports=t(73847)},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var r=t(82394),i=t(21831),o=t(82684),u=t(50724),c=t(82555),l=t(97618),a=t(70613),s=t(68487),d=t(68899),f=t(28598);function p(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var v=o.forwardRef(p),h=t(62547),b=t(82571),g=t(35686),O=t(98464),y=t(46684),m=t(70515),S=t(53808),P=t(19183);function j(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 x(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function w(e,n){var t,r=e.addProjectBreadcrumbToCustomBreadcrumbs,p=e.after,j=e.afterHeader,w=e.afterHidden,Z=e.afterWidth,E=e.afterWidthOverride,T=e.appendBreadcrumbs,C=e.before,_=e.beforeWidth,k=e.breadcrumbs,I=e.children,A=e.errors,R=e.headerMenuItems,N=e.headerOffset,M=e.hideAfterCompletely,D=e.mainContainerHeader,L=e.navigationItems,H=e.setAfterHidden,Y=e.setErrors,V=e.subheaderChildren,W=e.subheaderNoPadding,B=e.title,F=e.uuid,U=(0,P.i)().width,G="dashboard_after_width_".concat(F),K="dashboard_before_width_".concat(F),X=(0,o.useRef)(null),Q=(0,o.useState)(E?Z:(0,S.U2)(G,Z)),J=Q[0],z=Q[1],q=(0,o.useState)(!1),$=q[0],ee=q[1],ne=(0,o.useState)(C?Math.max((0,S.U2)(K,_),13*m.iI):null),te=ne[0],re=ne[1],ie=(0,o.useState)(!1),oe=ie[0],ue=ie[1],ce=(0,o.useState)(null)[1],le=g.ZP.projects.list({},{revalidateOnFocus:!1}).data,ae=null===le||void 0===le?void 0:le.projects,se={label:function(){var e;return null===ae||void 0===ae||null===(e=ae[0])||void 0===e?void 0:e.name},linkProps:{href:"/"}},de=[];k&&(r&&de.push(se),de.push.apply(de,(0,i.Z)(k))),(null===k||void 0===k||!k.length||T)&&(null===ae||void 0===ae?void 0:ae.length)>=1&&(null!==k&&void 0!==k&&k.length||de.unshift({bold:!T,label:function(){return B}}),de.unshift(se)),(0,o.useEffect)((function(){null===X||void 0===X||!X.current||$||oe||null===ce||void 0===ce||ce(X.current.getBoundingClientRect().width)}),[$,J,oe,te,X,ce,U]),(0,o.useEffect)((function(){$||(0,S.t8)(G,J)}),[w,$,J,G]),(0,o.useEffect)((function(){oe||(0,S.t8)(K,te)}),[oe,te,K]);var fe=(0,O.Z)(Z);return(0,o.useEffect)((function(){E&&fe!==Z&&z(Z)}),[E,Z,fe]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:B}),(0,f.jsx)(s.Z,{breadcrumbs:de,menuItems:R,project:null===ae||void 0===ae?void 0:ae[0],version:null===ae||void 0===ae||null===(t=ae[0])||void 0===t?void 0:t.version}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===L||void 0===L?void 0:L.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:L,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:p,afterHeader:j,afterHeightOffset:y.Mz,afterHidden:w,afterMousedownActive:$,afterWidth:J,before:C,beforeHeightOffset:y.Mz,beforeMousedownActive:oe,beforeWidth:d.k1+(C?te:0),headerOffset:N,hideAfterCompletely:!H||M,leftOffset:C?d.k1:null,mainContainerHeader:D,mainContainerRef:X,setAfterHidden:H,setAfterMousedownActive:ee,setAfterWidth:z,setBeforeMousedownActive:ue,setBeforeWidth:re,children:[V&&(0,f.jsx)(v,{noPadding:W,children:V}),I]})})]}),A&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,f.jsx)(c.Z,x(x({},A),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))})]})}var Z=o.forwardRef(w)},28385:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(17717),u=t(82684),c=t(80329),l=t(69864),a=t(71180),s=t(75810),d=t(89706),f=t(97618),p=t(55485),v=t(85854),h=t(38276),b=t(4190),g=t(75499),O=t(30160),y=t(35686),m=t(70515),S=t(68669),P=t(3917),j=t(81728),x=t(72619),w=t(3314),Z=t(86735),E=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 C(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,r.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}n.Z=function(e){var n=e.onActionCallback,t=e.pipeline,T=e.selectedBlock,_=e.selectedFilePath,k=e.setErrors,I=e.width,A=(0,c.j)("apiReloads"),R=(0,i.Z)(A,2)[1],N=(0,u.useMemo)((function(){return _?encodeURIComponent(_):T?encodeURIComponent("".concat(null===T||void 0===T?void 0:T.type,"/").concat(null===T||void 0===T?void 0:T.uuid)):null}),[T,_]),M=y.ZP.file_versions.files.list(N,{block_uuid:null===T||void 0===T?void 0:T.uuid,pipeline_uuid:null===t||void 0===t?void 0:t.uuid}),D=M.data,L=M.mutate,H=(0,u.useMemo)((function(){return(null===D||void 0===D?void 0:D.file_versions)||[]}),[D]),Y=(0,u.useState)(null),V=Y[0],W=Y[1],B=(0,u.useMemo)((function(){return null===H||void 0===H?void 0:H[V]}),[V,H]),F=y.ZP.file_contents.detail(B?encodeURIComponent(B.path):null).data,U=(0,u.useMemo)((function(){return null===F||void 0===F?void 0:F.file_content}),[F]),G=(0,u.useMemo)((function(){return(0,S.lU)()}),[]),K=(0,u.useMemo)((function(){var e,n,t;return null===_||void 0===_||null===(e=_.match(G))||void 0===e||null===(n=e[0])||void 0===n||null===(t=n.split("."))||void 0===t?void 0:t[1]}),[_,G]),X=(0,l.Db)(y.ZP.file_contents.useUpdate(N),{onSuccess:function(e){return(0,x.wD)(e,{callback:function(e){var t;_&&L();var i=null===e||void 0===e||null===(t=e.file_content)||void 0===t?void 0:t.path,u="FileEditor/".concat(i);if(i){var c=i.split(o.sep);if("pipelines"===c[0]){var l=c.slice(1,c.length-1).join(o.sep);u="PipelineDetail/".concat(l)}}R((function(e){return C(C({},e),{},(0,r.Z)({},u,Number(new Date)))})),W((function(e){return e+1})),null===n||void 0===n||n(null===e||void 0===e?void 0:e.file_content,{blockUUID:null===T||void 0===T?void 0:T.uuid})},onErrorCallback:function(e,n){return k({errors:n,response:e})}})}}),Q=(0,i.Z)(X,2),J=Q[0],z=Q[1].isLoading,q=(0,u.useCallback)((function(e){var n=C({},e);return _||(n.block_uuid=null===T||void 0===T?void 0:T.uuid,n.pipeline_uuid=null===t||void 0===t?void 0:t.uuid),J({file_content:n})}),[t,T,_,J]),$=(0,u.useMemo)((function(){var e=H.map((function(e){var n=e.name,t=e.path;return[(0,E.jsxs)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,E.jsxs)(f.Z,{flex:1,children:[(0,E.jsx)(O.ZP,{default:!0,monospace:!0,children:(0,P.JX)(n,{withSeconds:!0})}),(0,E.jsx)(h.Z,{px:2*m.cd,children:(0,E.jsx)(O.ZP,{monospace:!0,children:n})})]}),B&&(null===B||void 0===B?void 0:B.path)===t&&(0,E.jsx)(a.ZP,{compact:!0,loading:z,onClick:function(e){(0,w.j)(e),q({version:n})},small:!0,children:"Replace with this version"})]},n)]}));if(B){var n=(0,E.jsx)(h.Z,{p:m.cd,children:(0,E.jsx)(b.Z,{},"spinner")});if(U&&(null===U||void 0===U?void 0:U.path)===(null===B||void 0===B?void 0:B.path)){var t=U.content,r=void 0===t?"":t;n=(0,E.jsx)(s.Z,{autoHeight:!0,language:d.nB[K],padding:2*m.iI,readOnly:!0,value:(0,j.Pb)(r)?JSON.stringify(JSON.parse(r),null,2):r,width:I})}e=(0,Z.Hk)([n],V+1,e)}return e}),[U,K,H,z,B,V,q,I]);return(0,E.jsxs)("div",{style:{width:I},children:[(0,E.jsxs)(h.Z,{p:m.cd,children:[(0,E.jsx)(v.Z,{level:5,children:"File versions"}),(0,E.jsx)(O.ZP,{inline:!0,monospace:!0,children:_?decodeURIComponent(_):null===T||void 0===T?void 0:T.uuid})]}),(0,E.jsx)(g.Z,{buildRowProps:function(e){if(B&&V+1===e)return{renderCell:function(e){return e},renderRow:function(e){return e}}},columnFlex:[1],columns:[{uuid:"Version"}],isSelectedRow:function(e){var n;return(null===(n=H[e])||void 0===n?void 0:n.name)===(null===B||void 0===B?void 0:B.name)},onClickRow:function(e){B?e===V?W(null):e<V?W(e):e>V+1&&W(e-1):W(e)},rows:$})]})}},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return v},Z7:function(){return h},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return s}});var r,i,o=t(82394),u=t(57653),c=t(82359),l=t(72473),a=t(86735),s="sideview",d=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"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function p(e){var n,t,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.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:i.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:i.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function v(e){return(0,a.HK)(p(e),(function(e){return e.key}))}var h=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,l.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,l.JG),(0,o.Z)(r,i.CALLBACKS,l.AQ),(0,o.Z)(r,i.CHARTS,l.GQ),(0,o.Z)(r,i.DATA,l.iA),(0,o.Z)(r,i.EXTENSIONS,l.Bf),(0,o.Z)(r,i.INTERACTIONS,l.yd),(0,o.Z)(r,i.SECRETS,l.Yo),(0,o.Z)(r,i.SETTINGS,l.Zr),(0,o.Z)(r,i.TERMINAL,l.oI),(0,o.Z)(r,i.TREE,l.mp),(0,o.Z)(r,i.VARIABLES,l.LO),r)},89706:function(e,n,t){"use strict";t.d(n,{JD:function(){return h},Lu:function(){return o},PF:function(){return f},dT:function(){return u},n6:function(){return a},nB:function(){return v},oy:function(){return p},xF:function(){return d}});var r,i,o,u,c=t(82394),l=t(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"}(o||(o={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(u||(u={}));var a=[o.PY,o.SQL],s=[o.JSON,o.MD,o.PY,o.R,o.SH,o.SQL,o.TXT,o.YAML,o.YML],d=new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),f=(new RegExp(s.map((function(e){return".".concat(e,"$")})).join("|")),"charts"),p="pipelines",v=(r={},(0,c.Z)(r,o.MD,l.t6.MARKDOWN),(0,c.Z)(r,o.JSON,o.JSON),(0,c.Z)(r,o.PY,l.t6.PYTHON),(0,c.Z)(r,o.R,l.t6.R),(0,c.Z)(r,o.SQL,l.t6.SQL),(0,c.Z)(r,o.TXT,"text"),(0,c.Z)(r,o.YAML,l.t6.YAML),(0,c.Z)(r,o.YML,l.t6.YAML),r),h=(i={},(0,c.Z)(i,l.t6.MARKDOWN,o.MD),(0,c.Z)(i,l.t6.PYTHON,o.PY),(0,c.Z)(i,l.t6.R,o.R),(0,c.Z)(i,l.t6.SQL,o.SQL),(0,c.Z)(i,l.t6.YAML,o.YAML),(0,c.Z)(i,"text",o.TXT),i)},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return h},G7:function(){return O},LM:function(){return y},Mj:function(){return m},QK:function(){return v},RH:function(){return g},a_:function(){return P},fj:function(){return j},kA:function(){return S},qL:function(){return c},r0:function(){return b}});var r,i,o,u,c,l=t(75582),a=t(82394),s=t(72473),d=t(72098);function f(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?f(Object(t),!0).forEach((function(n){(0,a.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):f(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var v,h,b,g=(r={},(0,a.Z)(r,c.INTEGRATION,"Integration"),(0,a.Z)(r,c.PYTHON,"Python"),(0,a.Z)(r,c.PYSPARK,"PySpark"),(0,a.Z)(r,c.STREAMING,"Streaming"),r),O=(i={},(0,a.Z)(i,c.INTEGRATION,"Integration"),(0,a.Z)(i,c.PYTHON,"Standard"),(0,a.Z)(i,c.PYSPARK,"PySpark"),(0,a.Z)(i,c.STREAMING,"Streaming"),i),y="all",m=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,a.Z)(o,y,s.ie),(0,a.Z)(o,c.INTEGRATION,s.YC),(0,a.Z)(o,c.PYTHON,s.El),(0,a.Z)(o,c.STREAMING,s.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(h||(h={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(b||(b={}));var S=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],P=(u={},(0,a.Z)(u,c.PYTHON,d.U.PYTHON3),(0,a.Z)(u,c.PYSPARK,d.U.PYSPARK),u),j=Object.entries(P).reduce((function(e,n){var t=(0,l.Z)(n,2),r=t[0],i=t[1];return p(p({},e),{},(0,a.Z)({},i,r))}),{})},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),u=t(30160),c=t(44897),l=t(42631),a=t(47041),s=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.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 "})),v=r.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(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 ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),h=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.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*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,f=void 0===s||s,g=e.fullWidth,O=void 0===g||g,y=e.header,m=e.headerHeight,S=e.headerIcon,P=e.headerPaddingVertical,j=e.headerTitle,x=e.maxHeight,w=e.maxWidth,Z=e.minWidth,E=e.noPadding,T=e.overflowVisible,C=e.subtitle,_=e.success;return(0,d.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:O,maxHeight:x,maxWidth:w,minWidth:Z,overflowVisible:T,ref:r,success:_,children:[(y||j)&&(0,d.jsxs)(v,{headerPaddingVertical:P,height:m,children:[y&&y,j&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[S&&S,(0,d.jsx)(o.Z,{ml:S?1:0,children:(0,d.jsx)(u.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(h,{maxHeight:x,noPadding:E,overflowVisible:T,ref:c,children:[C&&"string"===typeof C&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(u.ZP,{default:!0,children:C})}),C&&"string"!==typeof C&&C,t]}),a&&(0,d.jsx)(b,{children:a})]})}},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),u=t(44897),c=t(42631),l=t(70515),a=t(28598);function s(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 d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var f=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 ")})),p=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)(f,d(d({},n),{},{children:(0,a.jsx)(p,d({},n))}))}},43173:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return z}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82394),c=t(75582),l=t(17717),a=t(82684),s=t(80329),d=t(69864),f=t(65557),p=t(94629),v=t(10553),h=t(29618),b=t(50724),g=t(55485),O=t(70374),y=t(30160),m=t(39643),S=t(87848),P=t(58325),j=t(44688),x=t(28598);var w=function(e){var n=e.children,t=e.fileVersionsVisible,r=e.onSave,i=e.setFilesVersionsVisible,o=(0,a.useState)(null),u=o[0],c=o[1],l=(0,a.useRef)(null),s=(0,a.useRef)(null),d=(0,a.useMemo)((function(){return[{disabled:!r,keyTextGroups:[[(0,P.V5)()?m.RJ:m.hE,m.SS]],label:function(){return"Save"},onClick:function(){return r?r():null},uuid:"save"}]}),[r]),f=(0,a.useMemo)((function(){return[{label:function(){return t?"Hide versions":"Show versions"},onClick:function(){return i(!t)},uuid:"versions"}]}),[t,i]),p="FileHeaderMenu/index",v=(0,j.y)(),h=v.registerOnKeyDown,w=v.unregisterOnKeyDown;return(0,a.useEffect)((function(){return function(){w(p)}}),[w,p]),h(p,(function(e,n){null!==u&&(n[m.QK]?c((function(e){return 0===e?2:e-1})):n[m.DY]&&c((function(e){return 2===e?0:e+1})))}),[u,c]),(0,x.jsx)(b.Z,{onClickOutside:function(){return c(null)},open:!0,style:{position:"relative"},children:(0,x.jsxs)(g.ZP,{children:[(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.u,{highlighted:0===u,onClick:function(){return c((function(e){return 0===e?null:0}))},onMouseEnter:function(){return c((function(e){return null!==e?0:null}))},ref:l,children:(0,x.jsx)(y.ZP,{children:"File"})}),(0,x.jsx)(O.Z,{items:d,onClickCallback:function(){return c(null)},open:0===u,parentRef:l,uuid:"FileHeaderMenu/file"})]}),(0,x.jsxs)("div",{style:{position:"relative"},children:[(0,x.jsx)(S.u,{highlighted:1===u,onClick:function(){return c((function(e){return 1===e?null:1}))},onMouseEnter:function(){return c((function(e){return null!==e?1:null}))},ref:s,children:(0,x.jsx)(y.ZP,{children:"Edit"})}),(0,x.jsx)(O.Z,{items:f,onClickCallback:function(){return c(null)},open:1===u,parentRef:s,uuid:"FileHeaderMenu/edit"})]}),n]})})},Z=t(90758),E=t(28385),T=t(35686),C=t(38626),_=t(44897),k=t(2842),I=t(46684),A=t(47041),R=72-k.uX+I.Mz,N=C.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-11pty4f-0"})(["height:","px;top:","px;z-index:3;",""],72,I.Mz,(function(e){return"\n background-color: ".concat((e.theme.background||_.Z.background).codeArea,";\n ")})),M=C.default.div.withConfig({displayName:"indexstyle__MenuStyle",componentId:"sc-11pty4f-1"})(["height:","px;position:relative;z-index:1;",""],36,(function(e){return"\n border-bottom: 1px solid ".concat((e.theme.borders||_.Z.borders).medium,";\n ")})),D=C.default.div.withConfig({displayName:"indexstyle__TabsStyle",componentId:"sc-11pty4f-2"})([""," height:","px;overflow-x:auto;position:sticky;width:100%;z-index:0;"],(0,A.y$)(),36),L=t(53808),H=t(86735),Y="open_files";function V(e){(0,L.t8)(Y,e)}var W=t(72619),B=t(42041),F=t(23780);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 G(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,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function K(e){var n=e.split(l.sep);return n[n.length-1]}var X=function(){var e=(0,s.j)("apiReloads"),n=(0,c.Z)(e,2)[1],t=(0,a.useRef)(null),r=(0,a.useRef)(null),i=(0,a.useCallback)((function(e){r.current||(r.current={}),r.current=G(G({},r.current),e)}),[r]),o=(0,a.useState)([]),l=o[0],b=o[1],g=(0,a.useState)(null),O=g[0],y=g[1],S=(0,a.useState)({}),P=S[0],C=S[1],_=(0,a.useState)(!1),k=_[0],I=_[1],A=(0,a.useMemo)((function(){return l.reduce((function(e,n){var t=K(n);return e[t]||(e[t]=[]),e[t].push(n),e}),{})}),[l]),U=(0,a.useCallback)((function(e){V(e),b(e)}),[]),X=(0,a.useCallback)((function(e){U(function(e){var n=(0,L.U2)(Y,[]);return n.includes(e)||n.push(e),V(n),n}(e))}),[U]),Q=(0,a.useCallback)((function(e){i((0,u.Z)({},e,null)),C((function(n){return G(G({},n),{},(0,u.Z)({},e,!1))}));var n=function(e){var n=(0,L.U2)(Y,[]),t=(0,H.Od)(n,(function(n){return n===e}));return V(t),t}(e);U(n),O===e&&(null===n||void 0===n?void 0:n.length)>=1&&y(n[n.length-1]),0===(null===n||void 0===n?void 0:n.length)&&y(null)}),[O,i,U]),J=(0,a.useCallback)((function(e,n){n||(X(e),y(e))}),[X]);(0,a.useEffect)((function(){var e=(0,L.U2)(Y,[]);U(e),y((function(n){return!n&&(null===e||void 0===e?void 0:e.length)>=1?e[0]:n}))}),[U]);var z=T.ZP.files.list(),q=z.data,$=z.mutate,ee=(0,a.useMemo)((function(){return(null===q||void 0===q?void 0:q.files)||[]}),[q]),ne=(0,F.VI)(null,{},[],{uuid:"FilesPage"}),te=(0,c.Z)(ne,1)[0],re="Files/index",ie=(0,j.y)(),oe=(ie.disableGlobalKeyboardShortcuts,ie.registerOnKeyDown),ue=ie.unregisterOnKeyDown;(0,a.useEffect)((function(){return function(){ue(re)}}),[ue,re]),oe(re,(function(e,n){var t=Object.entries(P).reduce((function(e,n){var t=(0,c.Z)(n,2),r=t[0];return t[1]?e.concat(r):e}),[]);if((0,B.y)([m.zX,m.hS],n)&&(null===t||void 0===t?void 0:t.length)>=1){e.preventDefault();var r="You have changes that are unsaved: ".concat(t.join(", "),". ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[P]);var ce=(0,a.useMemo)((function(){return(0,x.jsx)(Z.Z,{filePaths:l,filesTouched:P,isSelectedFilePath:function(e,n){return e===n},onClickTab:function(e){return y(e)},onClickTabClose:function(e){return Q(e)},renderTabTitle:function(e){var n=K(e),t=A[n];return t&&(null===t||void 0===t?void 0:t.length)>=2?e:n},selectedFilePath:O})}),[P,l,A,Q,O]),le=(0,a.useMemo)((function(){return(0,x.jsx)(v.Z,{fetchFileTree:$,files:ee,onClickFile:function(e){return J(e)},onClickFolder:function(e){return J(e,!0)},onCreateFile:function(e){var n=e.path;return J(n)},ref:t,setErrors:te})}),[$,t,ee,J,te]),ae=(0,d.Db)((function(e){return T.ZP.file_contents.useUpdate((null===e||void 0===e?void 0:e.path)&&encodeURIComponent(null===e||void 0===e?void 0:e.path))({file_content:e})}),{onSuccess:function(e){return(0,W.wD)(e,{callback:function(e){var t=e.file_content;n((function(e){return G(G({},e),{},(0,u.Z)({},"FileVersions/".concat(null===t||void 0===t?void 0:t.path),Number(new Date)))})),i((0,u.Z)({},null===t||void 0===t?void 0:t.path,null))},onErrorCallback:function(e,n){return te({errors:n,response:e})}})}}),se=(0,c.Z)(ae,1)[0],de=(0,a.useCallback)((function(e,n){se(G(G({},n),{},{content:e})),C((function(e){return G(G({},e),{},(0,u.Z)({},null===n||void 0===n?void 0:n.path,!1))}))}),[C,se]),fe=(0,a.useMemo)((function(){return null===l||void 0===l?void 0:l.map((function(e){return(0,x.jsx)("div",{style:{display:O===e?null:"none"},children:(0,x.jsx)(f.Z,{uuid:"FileEditor/".concat(decodeURIComponent(e)),children:(0,x.jsx)(h.Z,{active:O===e,disableRefreshWarning:!0,filePath:e?encodeURIComponent(e):null,hideHeaderButtons:!0,onContentChange:function(n){return i((0,u.Z)({},e,n))},saveFile:de,selectedFilePath:O,setErrors:te,setFilesTouched:C})})},e)}))}),[l,de,O,i,te]),pe=(0,a.useMemo)((function(){return(0,x.jsx)(w,{fileVersionsVisible:k,onSave:function(){var e,n;(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(n=e[O])||void 0===n?void 0:n.length)>=1&&de(r.current[O],{path:O})},setFilesVersionsVisible:I})}),[r,k,de,O,I]);return(0,x.jsx)(p.Z,{after:(0,x.jsx)(f.Z,{uuid:"FileVersions/".concat(O?decodeURIComponent(O):""),children:(0,x.jsx)(E.Z,{selectedFilePath:O,setErrors:te})}),afterHidden:!(k&&O),before:le,headerOffset:R,mainContainerHeader:(null===l||void 0===l?void 0:l.length)>=1&&(0,x.jsxs)(N,{children:[(0,x.jsx)(M,{children:pe}),(0,x.jsx)(D,{children:ce})]}),title:"Files",uuid:"Files/index",children:fe})},Q=t(93808);function J(){return(0,x.jsx)(X,{})}J.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 z=(0,Q.Z)(J)},58325:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,l=i.MAC,a=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,s=(null===(t=window)||void 0===t||null===(r=t.navigator)||void 0===r||null===(o=r.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(c=u.navigator)||void 0===c?void 0:c.platform);return s?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(s)?l=i.MAC:["Win32","Win64","Windows","WinCE"].includes(s)?l=i.WINDOWS:["iPhone","iPad","iPod"].includes(s)&&(l=i.IOS):a&&(a.includes("Macintosh")?l=i.MAC:a.includes("Windows")?l=i.WINDOWS:a.includes("Linux")&&a.includes("X11")?l=i.LINUX:/(iPhone|iPad)/.test(a)?l=i.IOS:a.includes("Android")&&a.includes("Mobi")?l=i.ANDROID:a.includes("CrOS")&&(l=i.CHROME_OS)),l}()===i.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(43173)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,4267,6990,8487,8264,7858,5499,5810,553,9618,5638,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5882],{16529:function(t,n,r){"use strict";r.r(n);var u=r(77837),a=r(38860),o=r.n(a),e=r(82684),l=r(94629),i=r(19396),c=r(93808),d=r(38276),s=r(4190),f=r(35686),p=r(70515),b=r(28598);function v(t){var n=t.slug,r=f.ZP.global_data_products.detail(n).data,u=(0,e.useMemo)((function(){return null===r||void 0===r?void 0:r.global_data_product}),[r]),a=(0,e.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)>=21?"".concat(null===n||void 0===n?void 0:n.slice(0,21),"..."):n}),[n]);return(0,b.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return a}}],title:n,uuid:"GlobalDataProductDetail/index",children:[!r&&(0,b.jsx)(d.Z,{p:p.cd,children:(0,b.jsx)(s.Z,{inverted:!0})}),u&&(0,b.jsx)(i.Z,{globalDataProduct:u})]})}v.getInitialProps=function(){var t=(0,u.Z)(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.query.slug,t.abrupt("return",{slug:null===r||void 0===r?void 0:r[0]});case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),n.default=(0,c.Z)(v)},49794:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products/[...slug]",function(){return r(16529)}])}},function(t){t.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,3943,9624,1845,9774,2888,179],(function(){return n=49794,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5882],{16529:function(t,n,r){"use strict";r.r(n);var u=r(77837),a=r(38860),o=r.n(a),e=r(82684),l=r(94629),i=r(19396),c=r(93808),d=r(38276),s=r(4190),f=r(35686),p=r(70515),b=r(28598);function v(t){var n=t.slug,r=f.ZP.global_data_products.detail(n).data,u=(0,e.useMemo)((function(){return null===r||void 0===r?void 0:r.global_data_product}),[r]),a=(0,e.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)>=21?"".concat(null===n||void 0===n?void 0:n.slice(0,21),"..."):n}),[n]);return(0,b.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return a}}],title:n,uuid:"GlobalDataProductDetail/index",children:[!r&&(0,b.jsx)(d.Z,{p:p.cd,children:(0,b.jsx)(s.Z,{inverted:!0})}),u&&(0,b.jsx)(i.Z,{globalDataProduct:u})]})}v.getInitialProps=function(){var t=(0,u.Z)(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.query.slug,t.abrupt("return",{slug:null===r||void 0===r?void 0:r[0]});case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),n.default=(0,c.Z)(v)},49794:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products/[...slug]",function(){return r(16529)}])}},function(t){t.O(0,[2678,1154,844,4267,6990,8487,8264,7858,5499,3943,9624,8731,9774,2888,179],(function(){return n=49794,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3928],{67355:function(e,t,u){"use strict";var n=u(12691),o=u.n(n),l=u(82684),r=u(34376),a=u(8666),d=u(48670),i=u(38276),c=u(4190),s=u(75499),p=u(30160),b=u(35686),f=u(70515),h=u(3314),j=u(28598);t.Z=function(e){var t=e.globalDataProducts,u=e.onClickRow,n=(0,r.useRouter)(),v=b.ZP.global_data_products.list({},{},{pauseFetch:!!t}).data,_=(0,l.useMemo)((function(){return t||(null===v||void 0===v?void 0:v.global_data_products)||[]}),[v,t]);return v||t?v&&0===(null===_||void 0===_?void 0:_.length)?(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(p.ZP,{children:"There are currently no global data products registered."})}):(0,j.jsx)(s.Z,{columnFlex:[1,null,null],columns:[{uuid:"UUID"},{uuid:"Object type"},{uuid:"Object UUID"}],onClickRow:function(e){var t=null===_||void 0===_?void 0:_[e];t&&(u?null===u||void 0===u||u(t):n.push("/global-data-products/[...slug]","/global-data-products/".concat(null===t||void 0===t?void 0:t.uuid)))},rows:null===_||void 0===_?void 0:_.map((function(e){var t=e.object_type,u=e.object_uuid,l=e.uuid,r={as:null,href:null};return a.b.PIPELINE===t&&(r.as="/pipelines/".concat(u,"/edit"),r.href="/pipelines/[pipeline]/edit"),[(0,j.jsx)(p.ZP,{monospace:!0,children:l},"uuid"),(0,j.jsx)(p.ZP,{default:!0,monospace:!0,children:t},"objectType"),(0,j.jsx)(o(),{as:null===r||void 0===r?void 0:r.as,href:(null===r||void 0===r?void 0:r.href)||"",passHref:!0,children:(0,j.jsx)(d.Z,{default:!0,monospace:!0,onClick:function(e){(0,h.j)(e),n.push(r.href,r.as)},preventDefault:!0,children:u})},"objectUUID")]})),uuid:"global-data-products"}):(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(c.Z,{})})}},252:function(e,t,u){"use strict";u.r(t);var n=u(77837),o=u(38860),l=u.n(o),r=u(82684),a=u(71180),d=u(94629),i=u(19396),c=u(67355),s=u(93808),p=u(38276),b=u(72473),f=u(70515),h=u(69419),j=u(28598);function v(){var e=(0,r.useState)(!1),t=e[0],u=e[1],n=(0,r.useState)(null),o=n[0],l=n[1],s=(0,r.useState)(null),v=s[0],_=s[1],x=(0,h.iV)();return(0,r.useEffect)((function(){var e=x.new,t=x.object_type,n=x.object_uuid;t&&_(t),n&&l(n),u(!!e)}),[x]),(0,j.jsxs)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:t,breadcrumbs:t?[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return"New"}}]:null,title:"Global data products",uuid:"GlobalDataProducts/index",children:[(0,j.jsx)(p.Z,{p:f.cd,children:(0,j.jsx)(a.ZP,{beforeIcon:(0,j.jsx)(b.mm,{size:2.5*f.iI}),inline:!0,linkProps:{as:"/global-data-products?new=1",href:"/global-data-products"},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"New global data product"})}),t&&(0,j.jsx)(i.Z,{globalDataProduct:{object_type:v||null,object_uuid:o},isNew:t}),!t&&(0,j.jsx)(c.Z,{})]})}v.getInitialProps=(0,n.Z)(l().mark((function e(){return l().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,s.Z)(v)},42692:function(e,t,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products",function(){return u(252)}])}},function(e){e.O(0,[2678,1154,844,4267,600,8487,8264,7858,5499,3943,9624,1845,9774,2888,179],(function(){return t=42692,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3928],{67355:function(e,t,u){"use strict";var n=u(12691),o=u.n(n),l=u(82684),r=u(34376),a=u(8666),d=u(48670),i=u(38276),c=u(4190),s=u(75499),p=u(30160),b=u(35686),f=u(70515),h=u(3314),j=u(28598);t.Z=function(e){var t=e.globalDataProducts,u=e.onClickRow,n=(0,r.useRouter)(),v=b.ZP.global_data_products.list({},{},{pauseFetch:!!t}).data,_=(0,l.useMemo)((function(){return t||(null===v||void 0===v?void 0:v.global_data_products)||[]}),[v,t]);return v||t?v&&0===(null===_||void 0===_?void 0:_.length)?(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(p.ZP,{children:"There are currently no global data products registered."})}):(0,j.jsx)(s.Z,{columnFlex:[1,null,null],columns:[{uuid:"UUID"},{uuid:"Object type"},{uuid:"Object UUID"}],onClickRow:function(e){var t=null===_||void 0===_?void 0:_[e];t&&(u?null===u||void 0===u||u(t):n.push("/global-data-products/[...slug]","/global-data-products/".concat(null===t||void 0===t?void 0:t.uuid)))},rows:null===_||void 0===_?void 0:_.map((function(e){var t=e.object_type,u=e.object_uuid,l=e.uuid,r={as:null,href:null};return a.b.PIPELINE===t&&(r.as="/pipelines/".concat(u,"/edit"),r.href="/pipelines/[pipeline]/edit"),[(0,j.jsx)(p.ZP,{monospace:!0,children:l},"uuid"),(0,j.jsx)(p.ZP,{default:!0,monospace:!0,children:t},"objectType"),(0,j.jsx)(o(),{as:null===r||void 0===r?void 0:r.as,href:(null===r||void 0===r?void 0:r.href)||"",passHref:!0,children:(0,j.jsx)(d.Z,{default:!0,monospace:!0,onClick:function(e){(0,h.j)(e),n.push(r.href,r.as)},preventDefault:!0,children:u})},"objectUUID")]})),uuid:"global-data-products"}):(0,j.jsx)(i.Z,{p:f.cd,children:(0,j.jsx)(c.Z,{})})}},252:function(e,t,u){"use strict";u.r(t);var n=u(77837),o=u(38860),l=u.n(o),r=u(82684),a=u(71180),d=u(94629),i=u(19396),c=u(67355),s=u(93808),p=u(38276),b=u(72473),f=u(70515),h=u(69419),j=u(28598);function v(){var e=(0,r.useState)(!1),t=e[0],u=e[1],n=(0,r.useState)(null),o=n[0],l=n[1],s=(0,r.useState)(null),v=s[0],_=s[1],x=(0,h.iV)();return(0,r.useEffect)((function(){var e=x.new,t=x.object_type,n=x.object_uuid;t&&_(t),n&&l(n),u(!!e)}),[x]),(0,j.jsxs)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:t,breadcrumbs:t?[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return"New"}}]:null,title:"Global data products",uuid:"GlobalDataProducts/index",children:[(0,j.jsx)(p.Z,{p:f.cd,children:(0,j.jsx)(a.ZP,{beforeIcon:(0,j.jsx)(b.mm,{size:2.5*f.iI}),inline:!0,linkProps:{as:"/global-data-products?new=1",href:"/global-data-products"},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"New global data product"})}),t&&(0,j.jsx)(i.Z,{globalDataProduct:{object_type:v||null,object_uuid:o},isNew:t}),!t&&(0,j.jsx)(c.Z,{})]})}v.getInitialProps=(0,n.Z)(l().mark((function e(){return l().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,s.Z)(v)},42692:function(e,t,u){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products",function(){return u(252)}])}},function(e){e.O(0,[2678,1154,844,4267,6990,8487,8264,7858,5499,3943,9624,8731,9774,2888,179],(function(){return t=42692,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
@@ -1 +1 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{1368:function(r,e,n){"use strict";n.r(e);var o=n(77837),u=n(38860),t=n.n(u),i=n(82684),l=n(94629),a=n(8569),c=n(93808),s=n(81728),p=n(28598);function d(r){var e=r.operationType,n=r.resourceType,o=r.slug,u=(0,i.useMemo)((function(){var r=[o,n?(0,s.j3)(n):n,e?(0,s.vg)(e):e].filter((function(r){return(null===r||void 0===r?void 0:r.length)>=1})).join(" ");return(null===r||void 0===r?void 0:r.length)>=40?"".concat(null===r||void 0===r?void 0:r.slice(0,40),"..."):r}),[e,n,o]);return(0,p.jsx)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global hooks"},linkProps:{href:"/global-hooks"}},{bold:!0,label:function(){return u}}],title:o,uuid:"GlobalHookDetail/index",children:(0,p.jsx)(a.Z,{operationType:e,resourceType:n,uuid:o})})}d.getInitialProps=function(){var r=(0,o.Z)(t().mark((function r(e){var n,o,u,i;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.query,o=n.operation_type,u=n.resource_type,i=n.slug,r.abrupt("return",{operationType:o,resourceType:u,slug:null===i||void 0===i?void 0:i[0]});case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),e.default=(0,c.Z)(d)},98746:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks/[...slug]",function(){return n(1368)}])}},function(r){r.O(0,[2678,1154,844,4267,600,8487,8264,7858,3437,9774,2888,179],(function(){return e=98746,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{1368:function(r,e,n){"use strict";n.r(e);var o=n(77837),u=n(38860),t=n.n(u),i=n(82684),l=n(94629),a=n(8569),c=n(93808),s=n(81728),p=n(28598);function d(r){var e=r.operationType,n=r.resourceType,o=r.slug,u=(0,i.useMemo)((function(){var r=[o,n?(0,s.j3)(n):n,e?(0,s.vg)(e):e].filter((function(r){return(null===r||void 0===r?void 0:r.length)>=1})).join(" ");return(null===r||void 0===r?void 0:r.length)>=40?"".concat(null===r||void 0===r?void 0:r.slice(0,40),"..."):r}),[e,n,o]);return(0,p.jsx)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global hooks"},linkProps:{href:"/global-hooks"}},{bold:!0,label:function(){return u}}],title:o,uuid:"GlobalHookDetail/index",children:(0,p.jsx)(a.Z,{operationType:e,resourceType:n,uuid:o})})}d.getInitialProps=function(){var r=(0,o.Z)(t().mark((function r(e){var n,o,u,i;return t().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.query,o=n.operation_type,u=n.resource_type,i=n.slug,r.abrupt("return",{operationType:o,resourceType:u,slug:null===i||void 0===i?void 0:i[0]});case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),e.default=(0,c.Z)(d)},98746:function(r,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks/[...slug]",function(){return n(1368)}])}},function(r){r.O(0,[2678,1154,844,4267,6990,8487,8264,7858,3437,9774,2888,179],(function(){return e=98746,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
@@ -0,0 +1 @@
1
+ (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3009],{92656:function(e,n,o){"use strict";o.r(n),o.d(n,{default:function(){return G}});var i=o(77837),t=o(38860),l=o.n(t),u=o(82684),r=o(71180),d=o(94629),s=o(8569),c=o(82394),a=o(12691),p=o.n(a),v=o(38626),h=o(34376),f=o(55485),b=o(48670),m=o(75499),k=o(30160),j=o(35686),_=o(72473),g=o(8193),y={default:!0,monospace:!0},w=o(81728),x=o(3917),P=o(55283),O=o(86735),Z=o(70320),E=o(28598);function C(e,n){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),o.push.apply(o,i)}return o}function N(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?C(Object(o),!0).forEach((function(n){(0,c.Z)(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):C(Object(o)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))}))}return e}var T=function(){var e=(0,Z.qB)(),n=(0,u.useContext)(v.ThemeContext),o=(0,h.useRouter)(),i=(0,u.useState)(null),t=i[0],l=(i[1],j.ZP.global_hooks.list({_format:"with_pipeline_details",include_snapshot_validation:1}).data),r=(0,u.useMemo)((function(){return(null===l||void 0===l?void 0:l.global_hooks)||[]}),[l]);return(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(m.Z,{columnFlex:[null,null,null,null,1,null,null],columns:[{uuid:"UUID"},{uuid:"Resource"},{uuid:"Operation"},{uuid:"Pipeline"},{uuid:"Outputs"},{center:!0,uuid:"Valid"},{rightAligned:!0,uuid:"Snapshotted at"}],onClickRow:function(e,n){var i=null===r||void 0===r?void 0:r[e],t=i.operation_type,l=i.resource_type,u=i.uuid;o.push("/global-hooks/".concat(u,"?operation_type=").concat(t,"&resource_type=").concat(l))},getObjectAtRowIndex:function(e){return null===r||void 0===r?void 0:r[e]},rows:null===r||void 0===r?void 0:r.map((function(o){var i,t=o.metadata,l=o.operation_type,r=o.outputs,d=o.pipeline,s=o.pipeline_details,c=o.resource_type,a=o.uuid,v=null===d||void 0===d?void 0:d.uuid,h=v?(0,E.jsx)(p(),{as:"/pipelines/".concat(v,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsx)(b.Z,N(N({},y),{},{openNewWindow:!0,children:v}))},"pipeline"):(0,u.createElement)(k.ZP,N(N({},y),{},{key:"pipeline",muted:!0}),"-"),m=[];if((null===r||void 0===r?void 0:r.length)>=1&&(null===s||void 0===s||null===(i=s.blocks)||void 0===i?void 0:i.length)>=1){var j=(0,O.HK)((null===s||void 0===s?void 0:s.blocks)||[],(function(e){return e.uuid}));null===r||void 0===r||r.forEach((function(e,o){var i;if(null!==e&&void 0!==e&&null!==(i=e.block)&&void 0!==i&&i.uuid){var t,l=null===j||void 0===j?void 0:j[null===e||void 0===e||null===(t=e.block)||void 0===t?void 0:t.uuid];l&&(o>=1&&m.push((0,u.createElement)(k.ZP,N(N({},y),{},{inline:!0,key:"".concat(null===l||void 0===l?void 0:l.uuid,"-").concat(o,"-comma"),muted:!0}),",\xa0")),m.push((0,E.jsx)(p(),{as:"/pipelines/".concat(v,"/edit?block_uuid=").concat(null===l||void 0===l?void 0:l.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,E.jsx)(b.Z,N(N({},y),{},{inline:!0,openNewWindow:!0,sameColorAsText:!0,children:(0,E.jsx)(k.ZP,N(N({},y),{},{color:(0,P.qn)(null===l||void 0===l?void 0:l.type,{blockColor:null===l||void 0===l?void 0:l.color,theme:n}).accent,inline:!0,children:null===l||void 0===l?void 0:l.uuid}))}))},"".concat(null===l||void 0===l?void 0:l.uuid,"-").concat(o,"-link"))))}}))}return[(0,u.createElement)(k.ZP,N(N({},y),{},{key:"uuid"}),a),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"resourceType",monospace:!1}),c?(0,w.j3)(c):"-"),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"operationType",monospace:!1}),l?(0,w.vg)(l):"-"),h,(0,E.jsxs)("div",{children:[(null===m||void 0===m?void 0:m.length)>=1&&m,!(null!==m&&void 0!==m&&m.length)&&(0,E.jsx)(k.ZP,N(N({},y),{},{muted:!0,children:"-"}))]},"outputs"),(0,E.jsx)(f.ZP,{justifyContent:"center",children:null!==t&&void 0!==t&&t.snapshot_valid?(0,E.jsx)(_.Jr,{size:g.Z,success:!0}):(0,E.jsx)(_.uy,{danger:!0,size:g.Z})},"valid"),(0,u.createElement)(k.ZP,N(N({},y),{},{key:"snapshottedAt",rightAligned:!0}),null!==t&&void 0!==t&&t.snapshotted_at?(0,x.XG)(null===t||void 0===t?void 0:t.snapshotted_at,e):"-")]})),selectedRowIndexInternal:t,uuid:"GlobalHooks/Table"})})},A=o(93808),I=o(70515),H=o(69419);function D(){var e=(0,u.useState)(!1),n=e[0],o=e[1],i=(0,H.iV)();return(0,u.useEffect)((function(){var e=i.new;o(!!e)}),[i]),(0,E.jsxs)(d.Z,{addProjectBreadcrumbToCustomBreadcrumbs:n,breadcrumbs:n?[{label:function(){return"Global hooks"},linkProps:{href:"/global-hooks"}},{bold:!0,label:function(){return"New"}}]:null,subheaderChildren:!n&&(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(r.ZP,{beforeIcon:(0,E.jsx)(_.mm,{size:2.5*I.iI}),inline:!0,linkProps:{as:"/global-hooks?new=1",href:"/global-hooks"},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"Add new global hook"})}),title:"Global hooks",uuid:"GlobalHooks/index",children:[n&&(0,E.jsx)(s.Z,{isNew:n}),!n&&(0,E.jsx)(T,{})]})}D.getInitialProps=(0,i.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var G=(0,A.Z)(D)},95140:function(e,n,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks",function(){return o(92656)}])}},function(e){e.O(0,[2678,1154,844,4267,6990,8487,8264,7858,5499,3437,9774,2888,179],(function(){return n=95140,e(e.s=n);var n}));var n=e.O();_N_E=n}]);