mage-ai 0.9.58__py3-none-any.whl → 0.9.59__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.
- mage_ai/api/logging.py +11 -7
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/CommandCenterItemPolicy.py +56 -0
- mage_ai/api/policies/CustomTemplatePolicy.py +0 -3
- mage_ai/api/policies/GitBranchPolicy.py +8 -1
- mage_ai/api/policies/GitFilePolicy.py +1 -0
- mage_ai/api/policies/PipelinePolicy.py +2 -0
- mage_ai/api/policies/PipelineSchedulePolicy.py +1 -0
- mage_ai/api/policies/VersionControlBranchPolicy.py +98 -0
- mage_ai/api/policies/VersionControlFilePolicy.py +96 -0
- mage_ai/api/policies/VersionControlProjectPolicy.py +92 -0
- mage_ai/api/policies/VersionControlRemotePolicy.py +94 -0
- mage_ai/api/presenters/CommandCenterItemPresenter.py +19 -0
- mage_ai/api/presenters/GitBranchPresenter.py +2 -0
- mage_ai/api/presenters/GitCustomBranchPresenter.py +1 -0
- mage_ai/api/presenters/PipelinePresenter.py +5 -5
- mage_ai/api/presenters/PipelineSchedulePresenter.py +4 -0
- mage_ai/api/presenters/VersionControlBranchPresenter.py +15 -0
- mage_ai/api/presenters/VersionControlFilePresenter.py +15 -0
- mage_ai/api/presenters/VersionControlProjectPresenter.py +14 -0
- mage_ai/api/presenters/VersionControlRemotePresenter.py +15 -0
- mage_ai/api/resources/BlockResource.py +110 -80
- mage_ai/api/resources/CommandCenterItemResource.py +29 -0
- mage_ai/api/resources/FileResource.py +15 -1
- mage_ai/api/resources/FolderResource.py +2 -1
- mage_ai/api/resources/GitBranchResource.py +183 -108
- mage_ai/api/resources/GitCustomBranchResource.py +9 -2
- mage_ai/api/resources/GitFileResource.py +26 -13
- mage_ai/api/resources/KernelResource.py +9 -1
- mage_ai/api/resources/LogResource.py +1 -1
- mage_ai/api/resources/OauthResource.py +4 -5
- mage_ai/api/resources/PipelineResource.py +71 -38
- mage_ai/api/resources/PipelineRunResource.py +7 -2
- mage_ai/api/resources/PullRequestResource.py +12 -3
- mage_ai/api/resources/SearchResultResource.py +4 -4
- mage_ai/api/resources/VersionControlBranchResource.py +85 -0
- mage_ai/api/resources/VersionControlFileResource.py +65 -0
- mage_ai/api/resources/VersionControlProjectResource.py +46 -0
- mage_ai/api/resources/VersionControlRemoteResource.py +64 -0
- mage_ai/authentication/oauth/constants.py +13 -16
- mage_ai/authentication/operation_history/models.py +11 -32
- mage_ai/authentication/operation_history/utils.py +14 -14
- mage_ai/authentication/permissions/constants.py +5 -0
- mage_ai/authentication/providers/active_directory.py +2 -2
- mage_ai/authentication/providers/bitbucket.py +2 -2
- mage_ai/authentication/providers/constants.py +6 -12
- mage_ai/authentication/providers/ghe.py +2 -2
- mage_ai/authentication/providers/google.py +2 -2
- mage_ai/authentication/providers/okta.py +2 -2
- mage_ai/cache/base.py +11 -3
- mage_ai/cache/block.py +116 -32
- mage_ai/cache/block_action_object/__init__.py +52 -43
- mage_ai/cache/constants.py +1 -0
- mage_ai/cache/file.py +114 -0
- mage_ai/cache/pipeline.py +34 -8
- mage_ai/cache/tag.py +51 -10
- mage_ai/cache/utils.py +44 -3
- mage_ai/cluster_manager/kubernetes/workload_manager.py +9 -1
- mage_ai/command_center/__init__.py +0 -0
- mage_ai/command_center/applications/__init__.py +0 -0
- mage_ai/command_center/applications/constants.py +96 -0
- mage_ai/command_center/applications/factory.py +54 -0
- mage_ai/command_center/blocks/__init__.py +0 -0
- mage_ai/command_center/blocks/factory.py +39 -0
- mage_ai/command_center/blocks/utils.py +127 -0
- mage_ai/command_center/constants.py +66 -0
- mage_ai/command_center/factory.py +161 -0
- mage_ai/command_center/files/__init__.py +0 -0
- mage_ai/command_center/files/constants.py +235 -0
- mage_ai/command_center/files/factory.py +86 -0
- mage_ai/command_center/models.py +442 -0
- mage_ai/command_center/pipeline_runs/__init__.py +0 -0
- mage_ai/command_center/pipeline_runs/utils.py +141 -0
- mage_ai/command_center/pipelines/__init__.py +0 -0
- mage_ai/command_center/pipelines/constants.py +118 -0
- mage_ai/command_center/pipelines/factory.py +132 -0
- mage_ai/command_center/pipelines/utils.py +120 -0
- mage_ai/command_center/service.py +45 -0
- mage_ai/command_center/settings.py +37 -0
- mage_ai/command_center/support/__init__.py +0 -0
- mage_ai/command_center/support/constants.py +46 -0
- mage_ai/command_center/triggers/__init__.py +0 -0
- mage_ai/command_center/triggers/factory.py +49 -0
- mage_ai/command_center/triggers/utils.py +463 -0
- mage_ai/command_center/utils.py +30 -0
- mage_ai/data_preparation/executors/azure_container_instance_executor.py +1 -1
- mage_ai/data_preparation/executors/block_executor.py +68 -19
- mage_ai/data_preparation/executors/ecs_block_executor.py +2 -2
- mage_ai/data_preparation/executors/executor_factory.py +2 -0
- mage_ai/data_preparation/executors/gcp_cloud_run_block_executor.py +1 -1
- mage_ai/data_preparation/executors/k8s_block_executor.py +2 -2
- mage_ai/data_preparation/executors/pyspark_block_executor.py +7 -1
- mage_ai/data_preparation/git/__init__.py +29 -11
- mage_ai/data_preparation/git/api.py +14 -13
- mage_ai/data_preparation/git/clients/base.py +4 -8
- mage_ai/data_preparation/git/clients/github.py +1 -0
- mage_ai/data_preparation/git/utils.py +5 -7
- mage_ai/data_preparation/models/block/__init__.py +556 -329
- mage_ai/data_preparation/models/block/content.py +111 -0
- mage_ai/data_preparation/models/block/data_integration/mixins.py +1 -0
- mage_ai/data_preparation/models/block/dbt/block.py +29 -19
- mage_ai/data_preparation/models/block/dbt/block_sql.py +50 -260
- mage_ai/data_preparation/models/block/dbt/block_yaml.py +74 -156
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +22 -10
- mage_ai/data_preparation/models/block/dbt/profiles.py +19 -15
- mage_ai/data_preparation/models/block/dbt/project.py +3 -0
- mage_ai/data_preparation/models/block/dynamic/constants.py +0 -0
- mage_ai/data_preparation/models/block/dynamic/dynamic_child.py +507 -47
- mage_ai/data_preparation/models/block/dynamic/utils.py +432 -1
- mage_ai/data_preparation/models/block/platform/mixins.py +68 -44
- mage_ai/data_preparation/models/block/r/__init__.py +19 -9
- mage_ai/data_preparation/models/block/sql/__init__.py +34 -20
- mage_ai/data_preparation/models/block/sql/utils/shared.py +4 -1
- mage_ai/data_preparation/models/block/utils.py +176 -71
- mage_ai/data_preparation/models/constants.py +7 -0
- mage_ai/data_preparation/models/file.py +21 -2
- mage_ai/data_preparation/models/pipeline.py +20 -8
- mage_ai/data_preparation/models/project/__init__.py +12 -7
- mage_ai/data_preparation/models/project/constants.py +1 -0
- mage_ai/data_preparation/models/triggers/__init__.py +7 -0
- mage_ai/data_preparation/models/utils.py +20 -0
- mage_ai/data_preparation/models/variable.py +113 -15
- mage_ai/data_preparation/shared/utils.py +6 -3
- mage_ai/data_preparation/storage/base_storage.py +17 -0
- mage_ai/data_preparation/storage/gcs_storage.py +4 -0
- mage_ai/data_preparation/storage/local_storage.py +15 -0
- mage_ai/data_preparation/storage/s3_storage.py +4 -0
- mage_ai/data_preparation/templates/data_exporters/qdrant.py +0 -1
- mage_ai/data_preparation/templates/data_loaders/qdrant.py +2 -1
- mage_ai/data_preparation/variable_manager.py +1 -0
- mage_ai/io/base.py +4 -1
- mage_ai/io/bigquery.py +25 -16
- mage_ai/io/clickhouse.py +3 -0
- mage_ai/io/druid.py +3 -0
- mage_ai/io/mongodb.py +1 -1
- mage_ai/io/pinot.py +3 -0
- mage_ai/io/postgres.py +13 -0
- mage_ai/io/snowflake.py +4 -0
- mage_ai/io/spark.py +8 -3
- mage_ai/io/sql.py +6 -0
- mage_ai/orchestration/db/__init__.py +26 -19
- mage_ai/orchestration/db/cache.py +4 -3
- mage_ai/orchestration/db/models/schedules.py +72 -16
- mage_ai/orchestration/db/models/schedules_project_platform.py +2 -3
- mage_ai/orchestration/pipeline_scheduler_original.py +19 -11
- mage_ai/orchestration/pipeline_scheduler_project_platform.py +20 -11
- mage_ai/presenters/interactions/constants.py +1 -0
- mage_ai/presenters/interactions/models.py +4 -3
- mage_ai/presenters/pages/models/client_pages/pipeline_schedules.py +1 -1
- mage_ai/server/constants.py +1 -1
- mage_ai/server/frontend_dist/404.html +11 -11
- mage_ai/server/frontend_dist/_next/static/PPQxHOmWVJ0iQFzG2rc8m/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist_base_path_template/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist/_next/static/chunks/{webpack-fea697dd168c6d0c.js → webpack-efa55343114c8128.js} +1 -1
- mage_ai/server/{frontend_dist_base_path_template/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist/block-layout.html +3 -3
- mage_ai/server/frontend_dist/compute.html +11 -11
- mage_ai/server/frontend_dist/files.html +11 -11
- mage_ai/server/frontend_dist/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-data-products.html +11 -11
- mage_ai/server/frontend_dist/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/index.html +3 -3
- mage_ai/server/frontend_dist/manage/files.html +11 -11
- mage_ai/server/frontend_dist/manage/settings.html +11 -11
- mage_ai/server/frontend_dist/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist/manage/users.html +11 -11
- mage_ai/server/frontend_dist/manage.html +11 -11
- mage_ai/server/frontend_dist/oauth.html +8 -8
- mage_ai/server/frontend_dist/overview.html +11 -11
- mage_ai/server/frontend_dist/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist/pipelines.html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist/settings.html +3 -3
- mage_ai/server/frontend_dist/sign-in.html +41 -41
- mage_ai/server/frontend_dist/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist/templates.html +11 -11
- mage_ai/server/frontend_dist/terminal.html +11 -11
- mage_ai/server/frontend_dist/test.html +3 -5
- mage_ai/server/frontend_dist/triggers.html +11 -11
- mage_ai/server/frontend_dist/version-control.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/404.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.c9ed47779baccc05.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/125-029194ff22eb33a5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-4f7485c2e2228f77.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-8e702cea23ddd16d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2479-727fa69ee9be6fab.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/26-38bc9380422f3900.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-3e7ea8543b3825b7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3366-420721116ea5a665.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-a9c98239582cd6f0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3548-13563a1ff815f922.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-9e0a8ba0db34b35f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4371-ef23f95888d6cd11.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4632.a4171dbf46b31c7c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/523-be11ad59861d00ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-d582b00545b4cb5e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5831-2abc4063e887a03e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6085-692d2f784c0504f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/635-1e8857c2b6dde289.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-0d52dd8868621fb0.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7264-d05f4b7088533f6f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-b3d661ec743bfadf.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/737-cc6467310a130dd9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{4495-4f0340aa82e0c623.js → 7674-9ec4fe64b5bf64d5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8038-85d715c8c8394827.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8095-bdce03896ef9639a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-6bed4e7401e067e6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8192-0c0b91523a38c4ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-f736d101fc6d9215.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8513-d207733b485c8d03.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/9264-e7e040a54d34360c.js → frontend_dist_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9265-d2a1aaec75ec69b8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-54add041c392517f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-59b2f803f9c88cd6.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9832-67896490f6e8a014.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/bd1a647f.fe5d87096be24a62.js → frontend_dist_base_path_template/_next/static/chunks/bd1a647f.04f7913662092327.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-7cabe357906f44f2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-a11bd2ebe11b3fd2.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-ffca51945cd154ef.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-3ba957769292db80.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-45679fd18b3edd82.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-95735a218106aa99.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/{global-data-products-cf98c2e4d20fd92c.js → global-data-products-81d6c7fd9a9cff38.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-a8c712e20512fede.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-f1be1d4735ba6919.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-febe676687966276.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-0914c36b3c8fd59f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/{users-81e6e5319a59cd07.js → users-4f12e989e7809ef9.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-809d4c99b44991a1.js +1 -0
- mage_ai/server/{frontend_dist/_next/static/chunks/pages/oauth-0436d395963cd27a.js → frontend_dist_base_path_template/_next/static/chunks/pages/oauth-aa9079c8dbaea3a5.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-4e30fb5b18383b71.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-5d31c3aace39182d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-85a80ee66f60a65c.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-0bd74047e257e6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-80619dc504d0103b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-3cc8d74ff8525bfd.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-cdc379ff24ff8858.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-03396d6086003e16.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d6d920758654f6d9.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-27727bb87be506c3.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-16aab67743651a0b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-e3ca1bedb660b252.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-9d58701fe7213727.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-0041fd76ee15e49f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-780be9a2da697915.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-db8bb970b1f2273f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a3422b0ab1dbacd7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-987a1603f4201943.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-3dc8bf89cab2722b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-43d3f2a5071b9537.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-c97b1a39b22c112a.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-49efb66da67554ca.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions/{[...slug]-be6aaec07c138656.js → [...slug]-5117d3555972484c.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ee1c19d4a192ae4d.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-4dc5724486ee3396.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/roles/{[...slug]-f380d293cff7592b.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-ddce04fae28bd7f6.js → roles-db6d71f8692a33e7.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-99c6a263d2ab9553.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users/{[...slug]-213a43564fdfbe17.js → [...slug]-9d881ac0a3db9baa.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-bee414d57c4b55d7.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-e7030e1a7a9e88e1.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-312afc9a3f8d0a4f.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-e5300c340aa94c6b.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fa7ca0c86142d146.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-bd51b3918b39329e.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-5158a9d98d2459e8.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-5ce099a7abb354ff.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/{webpack-d30cb09c85b4c4f0.js → webpack-bd35e1c7bd7b5a9a.js} +1 -1
- mage_ai/server/{frontend_dist/_next/static/css/d1e8e64d0b07af2f.css → frontend_dist_base_path_template/_next/static/css/b59541b123fd7191.css} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/do4WOsw7lNhouR0mtPTFi/_buildManifest.js +1 -0
- mage_ai/server/frontend_dist_base_path_template/block-layout.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/compute.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-data-products.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/index.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/manage/files.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/[user].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users/new.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/manage.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/oauth.html +8 -8
- mage_ai/server/frontend_dist_base_path_template/overview.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipeline-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/backfills.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/dashboard.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/edit.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/logs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors/block-runtime.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/monitors.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs/[run].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/runs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/syncs.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline]/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/pipelines/[pipeline].html +3 -3
- mage_ai/server/frontend_dist_base_path_template/pipelines.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/platform/global-hooks.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/account/profile.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/platform/settings.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/permissions.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/preferences.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/roles.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/sync-data.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings/workspace/users.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/settings.html +3 -3
- mage_ai/server/frontend_dist_base_path_template/sign-in.html +39 -39
- mage_ai/server/frontend_dist_base_path_template/templates/[...slug].html +11 -11
- mage_ai/server/frontend_dist_base_path_template/templates.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/terminal.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/test.html +3 -5
- mage_ai/server/frontend_dist_base_path_template/triggers.html +11 -11
- mage_ai/server/frontend_dist_base_path_template/version-control.html +11 -11
- mage_ai/server/logger.py +8 -2
- mage_ai/server/server.py +18 -1
- mage_ai/services/aws/ecs/config.py +3 -3
- mage_ai/services/aws/ecs/ecs.py +2 -2
- mage_ai/services/search/block_action_objects.py +59 -5
- mage_ai/settings/models/configuration_option.py +3 -1
- mage_ai/settings/platform/__init__.py +54 -18
- mage_ai/settings/repo.py +5 -4
- mage_ai/shared/custom_logger.py +213 -0
- mage_ai/shared/environments.py +4 -0
- mage_ai/shared/files.py +52 -1
- mage_ai/shared/models.py +2 -1
- mage_ai/shared/parsers.py +8 -1
- mage_ai/shared/path_fixer.py +62 -5
- mage_ai/shared/retry.py +4 -0
- mage_ai/shared/strings.py +4 -0
- mage_ai/tests/api/endpoints/test_blocks.py +101 -1
- mage_ai/tests/api/operations/base/test_base_with_user_permissions.py +4 -1
- mage_ai/tests/base_test.py +21 -2
- mage_ai/tests/cache/test_pipeline_cache.py +11 -8
- mage_ai/tests/data_preparation/executors/test_block_executor.py +55 -45
- mage_ai/tests/data_preparation/git/test_api.py +4 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_block.py +75 -43
- mage_ai/tests/data_preparation/models/block/dbt/test_block_sql.py +329 -329
- mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +296 -296
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +4 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_profiles.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_project.py +2 -2
- mage_ai/tests/data_preparation/models/block/dbt/test_sources.py +2 -2
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_child_block_factory.py +477 -474
- mage_ai/tests/data_preparation/models/block/dynamic/test_dynamic_helpers.py +25 -24
- mage_ai/tests/data_preparation/models/block/platform/test_mixins.py +16 -25
- mage_ai/tests/data_preparation/models/block/test_utils.py +8 -8
- mage_ai/tests/data_preparation/models/test_block.py +6 -8
- mage_ai/tests/data_preparation/models/test_project.py +10 -5
- mage_ai/tests/data_preparation/models/test_variable.py +51 -4
- mage_ai/tests/orchestration/test_pipeline_scheduler_project_platform.py +1 -0
- mage_ai/version_control/__init__.py +0 -0
- mage_ai/version_control/models.py +288 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/METADATA +6 -6
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/RECORD +490 -476
- mage_ai/server/frontend_dist/_next/static/0XnQ0C0nTr1w0o9CGC7wQ/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2512-46141494a1b75897.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3745-3662911c364d917b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/4804-1254a474f238d078.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7858-677c641010ac9160.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/RC0Yenm06LvZI-RWFoT5C/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-d8fc76201b83b376.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1154-2f262f7eb38ebaa1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1235.53172e14801844e5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1550-32333b36ac6b061b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1557-7cfe722a9b83b935.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1598-dd776e3a92e9cccd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1952-b2197a87dd67d8e0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2056-0ea1faa46646a77e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2213-52267f1e9ef5751c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2512-46141494a1b75897.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-accc279ae116b1b9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2886-9e73e1f48f248741.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-6055fd5aa82880f6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3449-214fce1a0e623b47.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3494-23a9cc2cd649abac.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-3662911c364d917b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3763-70c7eb1fc203c903.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4052-f89c85d2c8f51931.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4296-14eaf96d6479e673.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4804-1254a474f238d078.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5283-9df961e430a79bea.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5457-b373ebdf4d05d8e2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5499-bc2528f8e18f61a6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-e66141c1271bced6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5849-f30d8694e3318a81.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5896-7b8e36634d7d94eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6043-728790621ca9014c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6050-e48b7f97e96bbcb6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6639-74eefed142e14ea6.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6965-c613d1834c8ed92d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7022-ea92cb336bd1aab8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-06ef4c642a8fe8c4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-677c641010ac9160.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8125-b9d53e425b6ddc7e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-fb8f445644e573b0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8432-0ace6fb7bdbc6864.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/844-1e171f361e63b36d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9269-40e2101f56399dcc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9302-913007e2f801ad65.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9440-c51bf1e8f271cb25.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9624-89a4b20eb3b3c754.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/976-0a8c2c4d7acd957b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9775-c1142b1312e8f95d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-ec5e62e8e5bb4e4c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-44d7291d8f29eb36.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-a6661a9c3647532a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-26b899d3adb4ed19.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-9bd164317e652311.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-c87d46dc53e35638.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-24785a5ed4eb340d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-2c5fd116ecfacb33.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-8c9285af31efa3fd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-ec7e0419a64ae3b2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-039e083cc068da54.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-8e4d4f6edc515265.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-b73185fdcb7a131c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-97b3335bf60f8b07.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-83de126136539668.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-50f45e96892cfb63.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-5fe0f1de6fd365f8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-306db9e11fa94d21.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-ebea4be0562b08e3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-f09d21d5c2661504.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-61e770f155ae22ef.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-d347a4614130e2ab.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-056c5e5080a3754f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-208fa8de91f152bc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-a32e02f46a816eb3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-8012388b15f0e0a5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-6714c72f90923cfb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-afc0525ef27fe1f2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-a91e7d86cd0540d9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-7c8e5a8908fe9c83.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-be0684d1527587d8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-147660a34351147c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-ec5f01b683920ced.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-28aa4512c0e23ec5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-a2850b2e0a282d16.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-b1df80674dca4713.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-41abcd2241958dc8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-a2c5859f53b5e9e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1aea2a0c373bc6ae.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-e7485742708215d2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-b4086d30a89d6801.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-3cd171f43f0a0df8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-6a22493285c47ba2.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-ad20a31dde4fe59b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-267952b4c87927c7.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{0XnQ0C0nTr1w0o9CGC7wQ → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{RC0Yenm06LvZI-RWFoT5C → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.58.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2484],{54750:function(e,n,r){"use strict";var t=r(82394),o=r(12691),i=r.n(o),u=r(55485),l=r(48670),c=r(44085),a=r(38276),d=r(4190),E=r(30160),s=r(72473),_=r(70515),f=r(28598),T=r(82684);function I(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function v(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?I(Object(r),!0).forEach((function(n){(0,t.Z)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}n.Z=function(e){var n=e.breadcrumbs,r=e.noMarginLeft,t=n.length,o=[];return n.forEach((function(e,n){var I=e.bold,p=e.danger,O=e.label,A=e.linkProps,R=e.loading,b=e.monospace,h=void 0===b||b,C=e.onClick,m=e.options,g=O();t>=2&&n>=1&&o.push((0,f.jsx)(a.Z,{mx:1,children:(0,f.jsx)(s.ChevronRight,{muted:!0})},"divider-".concat(g)));var M=(0,f.jsx)(E.ZP,{bold:I,danger:p,default:!I,monospace:h,children:g});if((null===m||void 0===m?void 0:m.length)>=1){var N,Z,D=null===m||void 0===m?void 0:m.find((function(e){return!!e.selected}));if(D)(N=((null===D||void 0===D||null===(Z=D.uuid)||void 0===Z?void 0:Z.length)||0)*_.ro)&&(N+=3*_.iI,R&&(N+=2*_.iI));M=(0,f.jsx)(u.ZP,{alignItems:"center",children:(0,f.jsx)(c.Z,{afterIcon:R?(0,f.jsx)(d.Z,{inverted:!0,small:!0}):null,danger:p,defaultTextColor:!I,maxWidth:N||null,monospace:h,noBackground:!0,noBorder:!0,onChange:function(e){var n,r=e.target.value,t=null===m||void 0===m?void 0:m.find((function(e){return e.uuid===r}));t&&null!==t&&void 0!==t&&t.onClick&&(null===t||void 0===t||null===(n=t.onClick)||void 0===n||n.call(t,r))},paddingHorizontal:0,paddingVertical:0,value:(null===D||void 0===D?void 0:D.uuid)||"",children:null===m||void 0===m?void 0:m.map((function(e){var n=e.label,r=e.selected,t=e.uuid,o=n?null===n||void 0===n?void 0:n():t;return(0,f.jsx)("option",{value:t,children:r?t:o},t)}))})})}var j=(0,f.jsx)(a.Z,{ml:r||0!==n?0:2,children:M},"breadcrumb-".concat(g));A?j=(0,T.createElement)(i(),v(v({},A),{},{key:"breadcrumb-link-".concat(g),passHref:!0}),(0,f.jsx)(l.Z,{block:!0,default:!I,noOutline:!0,sameColorAsText:I,children:j})):C&&(j=(0,f.jsx)(l.Z,{block:!0,default:!I,noOutline:!0,onClick:C,preventDefault:!0,sameColorAsText:I,children:j})),o.push(j)})),(0,f.jsx)(u.ZP,{alignItems:"center",children:o})}},89370:function(e,n,r){"use strict";r.d(n,{P_:function(){return u},RL:function(){return o},Rp:function(){return l}});var t,o,i=r(82394);!function(e){e.CATEGORY="category",e.CATEGORY_HIGH_CARDINALITY="category_high_cardinality",e.DATETIME="datetime",e.EMAIL="email",e.LIST="list",e.NUMBER="number",e.NUMBER_WITH_DECIMALS="number_with_decimals",e.PHONE_NUMBER="phone_number",e.TEXT="text",e.TRUE_OR_FALSE="true_or_false",e.UUID="uuid",e.ZIP_CODE="zip_code"}(o||(o={}));o.NUMBER,o.NUMBER_WITH_DECIMALS,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.DATETIME,o.NUMBER,o.NUMBER_WITH_DECIMALS,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT,o.TRUE_OR_FALSE,o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY,o.DATETIME,o.EMAIL,o.PHONE_NUMBER,o.TEXT;var u=[o.CATEGORY,o.CATEGORY_HIGH_CARDINALITY],l=(t={},(0,i.Z)(t,o.NUMBER,"Number"),(0,i.Z)(t,o.NUMBER_WITH_DECIMALS,"Decimal number"),(0,i.Z)(t,o.CATEGORY,"Category"),(0,i.Z)(t,o.CATEGORY_HIGH_CARDINALITY,"Category (high cardinality)"),(0,i.Z)(t,o.DATETIME,"Date/Time"),(0,i.Z)(t,o.EMAIL,"Email"),(0,i.Z)(t,o.LIST,"List"),(0,i.Z)(t,o.PHONE_NUMBER,"Phone number"),(0,i.Z)(t,o.TEXT,"Text"),(0,i.Z)(t,o.TRUE_OR_FALSE,"Boolean"),(0,i.Z)(t,o.ZIP_CODE,"Zip code"),t)},6943:function(e,n,r){"use strict";r.r(n);var t=r(77837),o=r(38860),i=r.n(o),u=r(39440),l=r(93808),c=r(28598);function a(){return(0,c.jsx)(u.Z,{uuid:"dashboard"})}a.getInitialProps=(0,t.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,l.Z)(a)},91162:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-layout",function(){return r(6943)}])}},function(e){e.O(0,[3662,125,2714,2631,4783,8038,8095,635,9440,9774,2888,179],(function(){return n=91162,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{4230:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var r=t(82394),i=t(21831),o=t(82684),l=t(50724),s=t(1402),c=t(97618),u=t(70613),a=t(31557),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),m=t(82571),j=t(77417),x=t(46684),g=t(98464),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}var k=25*Z.iI,O=2*k;function w(e,n,t){var r=t.disable,i=t.refOther,l=t.setWidth,s=t.width,c=t.widthOverride,u=t.widthWindow,a=(0,o.useMemo)((function(){return"".concat(e,"_width")}),[e]),d=(0,b.U2)(a),f=(0,o.useState)(!1),p=f[0],v=f[1],h=(0,o.useState)(d||s),m=h[0],j=h[1],x=(0,o.useMemo)((function(){var e="undefined"!==typeof s&&c?s:m;return n.current=_(_({},n.current),{},{widthOverride:c,widthProp:s}),e||k}),[l,c,s,m]),Z=(0,o.useCallback)((function(e){if(!r){var t,o,s,c,d,f=Math.max(u-(O+(null!==i&&void 0!==i&&null!==(t=i.current)&&void 0!==t&&t.disable?0:(null!==i&&void 0!==i&&null!==(o=i.current)&&void 0!==o&&o.widthOverride?null===i||void 0===i||null===(s=i.current)||void 0===s?void 0:s.widthProp:null===i||void 0===i||null===(c=i.current)||void 0===c?void 0:c.width)||k)),k+O+(null!==i&&void 0!==i&&null!==(d=i.current)&&void 0!==d&&d.disable?0:k)),p=Math.max(k,Math.min(f,e));e&&(j(p),(0,b.uN)(a,p),l&&l(p)),n.current=_(_({},n.current),{},{disable:r,width:p})}}),[r,a,i,l,u]),P=(0,g.Z)(u);(0,o.useEffect)((function(){u!==P&&Z(u*(x/P))}),[x,u,P]);var y=(0,g.Z)(s);return(0,o.useEffect)((function(){!r&&c&&y!==s&&Z(s)}),[r,Z,c,s,y]),{mousedownActive:p,setMousedownActive:v,setWidth:Z,width:x}}function C(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function S(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?C(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):C(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function I(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,p=e.afterHidden,g=e.afterWidth,Z=e.afterWidthOverride,b=e.appendBreadcrumbs,y=e.before,_=e.beforeHeader,k=e.beforeWidth,C=e.breadcrumbs,I=e.children,E=e.contained,A=e.errors,M=e.headerMenuItems,B=e.headerOffset,T=e.hideAfterCompletely,D=e.mainContainerHeader,R=e.navigationItems,W=e.setAfterHidden,N=e.setAfterWidth,z=e.setBeforeWidth,H=e.setErrors,F=e.subheaderChildren,V=e.subheaderNoPadding,L=e.title,U=function(e,n){var t=n.disableAfter,r=n.disableBefore,i=n.setWidthAfter,l=n.setWidthBefore,s=n.widthAfter,c=n.widthBefore,u=n.widthOverrideAfter,a=n.widthOverrideBefore,d=(0,P.i)().width,f=(0,o.useMemo)((function(){return"layout_after_".concat(e)}),[e]),p=(0,o.useMemo)((function(){return"layout_before_".concat(e)}),[e]),v=(0,o.useRef)(null),h=(0,o.useState)(null),m=h[0],j=h[1],x=((0,o.useMemo)((function(){return Math.max(m-O,O)}),[m]),(0,o.useRef)({disable:t,widthOverride:u,width:null,widthProp:s})),g=(0,o.useRef)({disable:r,widthOverride:a,width:null,widthProp:c}),Z=w(f,x,{disable:t,refOther:g,setWidth:i,width:s,widthOverride:u,widthWindow:d}),b=Z.mousedownActive,y=Z.setMousedownActive,_=Z.setWidth,k=Z.width,C=w(p,g,{disable:r,refOther:x,setWidth:l,width:c,widthOverride:a,widthWindow:d}),S=C.mousedownActive,I=C.setMousedownActive,E=C.setWidth,A=C.width;return(0,o.useEffect)((function(){g.current={disable:r,width:A,widthOverride:a,widthProp:c}}),[r,A,a]),(0,o.useEffect)((function(){var e,n;null===v||void 0===v||!v.current||b||S||null===j||void 0===j||j(null===v||void 0===v||null===(e=v.current)||void 0===e||null===(n=e.getBoundingClientRect())||void 0===n?void 0:n.width)}),[b,S,j,k,A,d]),{mainContainerRef:v,mousedownActiveAfter:b,mousedownActiveBefore:S,setMousedownActiveAfter:y,setMousedownActiveBefore:I,setWidthAfter:_,setWidthBefore:E,widthAfter:k,widthBefore:A}}(e.uuid,{setWidthAfter:N,setWidthBefore:z,widthAfter:g,widthBefore:k,widthOverrideAfter:Z}),G=U.mainContainerRef,X=U.mousedownActiveAfter,q=U.mousedownActiveBefore,J=U.setMousedownActiveAfter,K=U.setMousedownActiveBefore,Y=U.setWidthAfter,Q=U.setWidthBefore,$=U.widthAfter,ee=U.widthBefore,ne=(0,j.Z)().project,te=[];return C&&te.push.apply(te,(0,i.Z)(C)),null!==C&&void 0!==C&&C.length&&!b||!ne||null!==C&&void 0!==C&&C.length||te.unshift({bold:!b,label:function(){return L}}),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(u.Z,{title:L}),(0,f.jsx)(a.Z,{breadcrumbs:te,menuItems:M}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(m.Z,{navigationItems:R,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:t,afterHeader:r,afterHeightOffset:x.Mz,afterHidden:p,afterMousedownActive:X,afterWidth:$,before:y,beforeHeader:_,beforeHeightOffset:x.Mz,beforeMousedownActive:q,beforeWidth:y?ee:d.k1,contained:E,headerOffset:B,hideAfterCompletely:!t||T,leftOffset:y?d.k1:null,mainContainerHeader:D,mainContainerRef:G,setAfterHidden:W,setAfterMousedownActive:J,setAfterWidth:Y,setBeforeMousedownActive:K,setBeforeWidth:Q,children:[F&&(0,f.jsx)(v,{noPadding:V,children:F}),I]})})]}),A&&(0,f.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,f.jsx)(s.Z,S(S({},A),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var E=o.forwardRef(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),o=t.n(i),l=t(82684),s=t(82394),c=t(75582),u=t(69864),a=t(71180),d=t(92083),f=t.n(d),p=t(21764),v=t(28071),h=t(15338),m=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,s.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.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),w=t(4190),C=t(75499),S=t(69650),I=t(35686),E=t(72473),A=t(3917),M=t(25976),B=t(44897),T=M.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||B.Z.background).codeArea,";\n ")})),D=t(81728);function R(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,D.vg)(e)}}));return(0,P.jsx)(C.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,c.Z)(e,2),t=n[0],r=n[1];return[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r},t)]}))}))})}var W=t(72619),N=t(95924),z=t(42122),H=t(70320),F=t(23780);function V(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 L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?V(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=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,o=e.loading,s=e.setIncludeAllStates,d=(0,l.useMemo)((function(){return"".concat(null===t||void 0===t?void 0:t.uuid,"/clusters")}),[t]),x=(0,H.qB)(),y=(0,l.useState)(null),_=y[0],M=y[1],B=(0,F.VI)(null,{},[],{uuid:d}),V=(0,c.Z)(B,1)[0],X=(0,u.Db)(I.ZP.compute_clusters.compute_services.useCreate(null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,W.wD)(e,{callback:function(){r().then((function(){return M(0)}))},onErrorCallback:function(e,n){return V({errors:n,response:e})}})}}),q=(0,c.Z)(X,2),J=q[0],K=q[1].isLoading,Y=(0,u.Db)((function(e){return I.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,W.wD)(e,{callback:function(){r().then((function(){return M(null)}))},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;p.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),Q=(0,c.Z)(Y,2),$=Q[0],ee=Q[1].isLoading,ne=(0,u.Db)((function(e){return I.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,W.wD)(e,{callback:function(){r()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;p.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),te=(0,c.Z)(ne,2),re=te[0],ie=te[1].isLoading,oe=(0,l.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)||0}),[n]),le=(0,l.useMemo)((function(){return(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.WorkspacesUsersIcon,{size:U}),compact:oe>=1,loading:K,onClick:function(){return J()},primary:!0,small:oe>=1,children:"Launch new cluster"})}),[oe,J,K]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(T,{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(m.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(j.Z,{level:4,children:(0,D._6)("cluster",oe,!0)}),s&&(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 s(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}),oe>=1&&le]})}),(0,P.jsx)(h.Z,{light:!0})]}),(0,P.jsx)(C.Z,{apiForFetchingAfterAction:I.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){M((function(n){return n===e?null:e}))},renderExpandedRowWithObject:function(e,n){var t,r,i,o,l=null===n||void 0===n||null===(t=n.compute_cluster)||void 0===t?void 0:t.cluster;if(!l)return(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(w.Z,{inverted:!0})});var s=l.active,c=l.applications,u=l.ec2_instance_attributes,d=l.name,p=l.status,y=l.tags,_=null===p||void 0===p?void 0:p.state,C=[v.X.TERMINATED,v.X.TERMINATED_WITH_ERRORS,v.X.TERMINATING].includes(_),S=[v.X.RUNNING,v.X.WAITING].includes(_),I=null===p||void 0===p||null===(r=p.timeline)||void 0===r?void 0:r.creation_date_time;return(0,P.jsxs)(g.Z,{p:b.cd,children:[!C&&(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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{children:[S&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.PowerOnOffButton,{size:U,success:s}),loading:ie,notClickable:s,onClick:s?null:function(){return re(L(L({},l),{},{active:!0}))},primary:!s,children:s?"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?")&&$(l)},secondary:!0,children:"Terminate cluster"})]}),!S&&(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(w.Z,{inverted:!0,small:!0}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:(null===p||void 0===p||null===(i=p.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===l||void 0===l?void 0:l.id},{key:"Name",value:d},{key:"Master public DNS name",value:(null===l||void 0===l?void 0:l.master_public_dns_name)||"Available after cluster starts."},{key:"Created at",textProps:{monospace:!0},value:I?(0,A.XG)(f()(I).format(A.BL),x):"-"},{key:"Status message",value:(null===p||void 0===p||null===(o=p.state_change_reason)||void 0===o?void 0:o.message)||"None"},{key:"Release label",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.release_label},{key:"Service role",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.service_role},{key:"Scale down behavior",value:null!==l&&void 0!==l&&l.scale_down_behavior?(0,D.vg)(null===l||void 0===l?void 0:l.scale_down_behavior):null===l||void 0===l?void 0:l.scale_down_behavior},{key:"Auto terminate",value:null!==l&&void 0!==l&&l.auto_terminate?(0,P.jsx)(E.Check,{size:U,success:!0}):(0,P.jsx)(E.Close,{danger:!0,size:U})},{key:"Termination protected",value:null!==l&&void 0!==l&&l.termination_protected?(0,P.jsx)(E.Check,{size:U,success:!0}):(0,P.jsx)(E.Close,{danger:!0,size:U})},{key:"Visible to all users",value:null!==l&&void 0!==l&&l.visible_to_all_users?(0,P.jsx)(E.Check,{size:U,success:!0}):(0,P.jsx)(E.Close,{danger:!0,size:U})},{key:"EBS root volume size",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.ebs_root_volume_size},{key:"Normalized instance hours",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.normalized_instance_hours},{key:"Step concurrency level",textProps:{monospace:!0},value:null===l||void 0===l?void 0:l.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)(m.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)(h.Z,{light:!0,short:!0}),R(c||[])]}),(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)(h.Z,{light:!0,short:!0}),R(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,o=e.name,s=e.normalized_instance_hours,c=e.status,u=null===c||void 0===c||null===(n=c.timeline)||void 0===n?void 0:n.creation_date_time,d=null===c||void 0===c?void 0:c.state,p=null===c||void 0===c||null===(t=c.state_change_reason)||void 0===t?void 0:t.message,h=[v.X.BOOTSTRAPPING,v.X.STARTING].includes(d),j=[v.X.TERMINATING].includes(d);return[(0,l.createElement)(Z.ZP,L(L({},G),{},{key:"id",success:r}),i),(0,l.createElement)(Z.ZP,L(L({},G),{},{key:"name",monospace:!1,preWrap:!0}),o),(0,P.jsxs)("div",{children:[(0,P.jsx)(Z.ZP,L(L({},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!==c&&void 0!==c&&c.state?(0,D.vg)(null===c||void 0===c?void 0:c.state):null===c||void 0===c?void 0:c.state})),p&&(0,P.jsx)(Z.ZP,{muted:!0,preWrap:!0,small:!0,children:p})]},"state"),(0,l.createElement)(Z.ZP,L(L({},G),{},{key:"created",preWrap:!0}),u?(0,A.XG)(f()(u).format(A.BL),x):"-"),(0,l.createElement)(Z.ZP,L(L({},G),{},{center:!0,key:"normalizedInstanceHours"}),s||0),(0,P.jsx)(m.ZP,{justifyContent:"flex-end",children:h||j?(0,P.jsx)(w.Z,{inverted:h,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,N.j)(n),re(L(L({},e),{},{active:!0}))},children:(0,P.jsx)(E.PowerOnOffButton,{muted:!r,size:U,success:r})})},"active")]})),selectedRowIndexInternal:_,uuid:d}),o&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(w.Z,{inverted:!0})}),!o&&!oe&&(0,P.jsx)(g.Z,{p:b.cd,children:le})]})},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,s.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",oe="SQLs";var le=function(e){var n,t=e.applications,r=e.computeConnections,i=e.computeService,o=e.connectionsLoading,s=e.fetchAll,c=e.jobs,u=e.loadingApplications,a=e.loadingJobs,d=(e.objectAttributes,e.refButtonTabs),f=(e.selectedComputeService,e.setSelectedSql),p=e.setSelectedTab,v=(0,l.useContext)(M.ThemeContext),m=(0,l.useState)(),j=m[0],x=m[1],y=(0,l.useCallback)((function(e){f((function(){return null})),x(e)}),[f,x]),_=(0,H.qB)(),k=I.ZP.spark_stages.list({details:!0,_format:"with_details"}).data,O=(0,l.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]),w=(0,l.useMemo)((function(){return(0,P.jsx)(K.Z,{computeService:i,computeConnections:r,fetchAll:s,onClickStep:function(e){return p((function(){return{main:e}}))}})}),[r,i,s,p]),S=(0,l.useMemo)((function(){return(0,P.jsx)(C.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,o=(null===n||void 0===n?void 0:n[0])||{},s=o.app_spark_version,c=o.last_updated_epoch,u=o.start_time_epoch,a=o.spark_user,d=u&&(0,A.JX)(u/1e3,{withSeconds:!0}),f=d&&(0,A.XG)(d,_);return[(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"id"}),t),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUIURL"}),i),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"name"}),r),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"version"}),s),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUser"}),a),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"startTime"}),f||"-"),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"lastUpdated",rightAligned:!0}),c?(0,A.XG)((0,A.JX)(c/1e3,{withSeconds:!0}),_):"-")]})),uuid:"applications"})}),[t,_]),E=(0,l.useMemo)((function(){var e={};return null===c||void 0===c||c.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)(h.Z,{light:!0}),(0,P.jsx)(Y.Z,{jobs:t,stagesMapping:O})]},null===n||void 0===n?void 0:n.calculated_id)}))}),[c,O]),B=(0,l.useMemo)((function(){return(0,P.jsx)(Q.Z,{setSelectedSql:f,stagesMapping:O})}),[f,O]),T=(0,l.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===c||void 0===c?void 0:c.length)||0]})},uuid:ie},{label:function(){return oe},uuid:oe}];return(null===r||void 0===r?void 0:r.length)>=1&&e.unshift({label:function(){return re},uuid:re}),e}),[r,s]);return(0,l.useEffect)((function(){j||o||((null===r||void 0===r?void 0:r.length)>=1?y(re):y(te))}),[r,o,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:T,underlineColor:null===v||void 0===v||null===(n=v.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(h.Z,{light:!0}),re===j&&w,te===j&&S,ie===j&&E,oe===j&&B]})},se=t(17488),ce=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,s.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,o=e.configurations,u=e.createButtonText,d=e.description,f=e.emptyState,p=e.setConfigurations,v=e.title,y=(0,l.useRef)(null),_=(0,l.useState)(!1),k=_[0],w=_[1],C=(0,l.useState)(null),S=C[0],I=C[1],A=(0,l.useMemo)((function(){var e;return(null===(e=Object.keys(o||{}))||void 0===e?void 0:e.length)>=1}),[o]),M=(0,l.useMemo)((function(){return S in(o||{})}),[o,S]),B=(0,l.useMemo)((function(){return(0,P.jsxs)(m.ZP,{alignItems:"center",children:[!k&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.Add,{}),compact:!0,onClick:function(e){(0,N.j)(e),w(!0),setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1)},secondary:!A,small:!0,children:n||"Add configuration"}),k&&(0,P.jsxs)(P.Fragment,{children:[M&&(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)(se.Z,{autoComplete:"off",compact:!0,meta:{touched:!!M,error:""},monospace:!0,onClick:function(e){return(0,N.j)(e)},paddingVertical:b.iI/2-2,placeholder:t,onChange:function(e){(0,N.j)(e),I(e.target.value)},ref:y,small:!0,value:S||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:M,compact:!0,onClick:function(e){(0,N.j)(e),M||(p(ae(ae({},o),{},(0,s.Z)({},S,""))),w(!1),I(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,N.j)(e),w(!1),I(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[n,M,o,A,k,S,y,w,I]),T=(0,l.useMemo)((function(){return Object.entries(o||{}).map((function(e){var n=(0,c.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)("div",{children:[(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=ae({},o);null===e||void 0===e||delete e[t],p(e)},children:(0,P.jsx)(E.Trash,{default:!0,size:ce.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return p(ae(ae({},o),{},(0,s.Z)({},t,e.target.value)))},paddingHorizontal:0,paddingVertical:0,placeholder:i,value:r||""})})]})})]},t)}))}),[o,p]);return(0,P.jsxs)(O.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.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}),A&&(0,P.jsx)(m.ZP,{alignItems:"center",children:B})]})}),!A&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[f&&(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:f})}),(0,P.jsx)(m.ZP,{alignItems:"center",children:B})]})]}),A&&T]})},fe=t(74260);function pe(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?pe(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var he=function(e){var n,t=e.attributesTouched,r=e.isLoading,i=e.mutateObject,o=e.objectAttributes,s=e.onCancel,c=e.selectedComputeService,u=e.setObjectAttributes,d=(0,l.useCallback)((function(e){return u({emr_config:ve(ve({},null===o||void 0===o?void 0:o.emr_config),e)})}),[o,u]),f=(0,l.useCallback)((function(e){return u({spark_config:ve(ve({},null===o||void 0===o?void 0:o.spark_config),e)})}),[o,u]),p=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.emr_config)||{}}),[o]),v=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.spark_config)||{}}),[o]);return(0,P.jsxs)(ce.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 f({others:e})},title:"Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),fe.GO.AWS_EMR===c&&(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)(m.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!==p&&void 0!==p&&p.ec2_key_name)||!(null!==p&&void 0!==p&&p.ec2_key_path),children:"Spark observability"}),(!(null!==p&&void 0!==p&&p.ec2_key_name)||!(null!==p&&void 0!==p&&p.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.ec2_key_name)||""})})]})}),(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.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)(m.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.master_instance_type)||""})})]})}),(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.slave_instance_type)||""})})]})}),(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.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===p||void 0===p?void 0:p.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===p||void 0===p?void 0:p.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)(m.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.master_security_group)||""})})]})}),(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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===p||void 0===p?void 0:p.slave_security_group)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(m.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.Save,{}),disabled:!t||!(null!==(n=Object.keys(t))&&void 0!==n&&n.length),loading:r,onClick:function(){return i()},primary:!0,children:"Save changes"}),s&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===s||void 0===s?void 0:s()},secondary:!0,children:"Cancel and go back"})]})]})]})},me=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,s.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,o=e.isLoading,s=e.mutateObject,c=e.objectAttributes,u=e.onCancel,d=e.selectedComputeService,f=e.setObjectAttributes,p=(0,l.useCallback)((function(e){return f({emr_config:Ze(Ze({},null===c||void 0===c?void 0:c.emr_config),e)})}),[c,f]),v=(0,l.useCallback)((function(e){return f({spark_config:Ze(Ze({},null===c||void 0===c?void 0:c.spark_config),e)})}),[c,f]),y=(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.emr_config)||{}}),[c]),_=(0,l.useMemo)((function(){return(null===c||void 0===c?void 0:c.spark_config)||{}}),[c]),k=(0,l.useRef)(null),w=((0,l.useRef)(null),(0,l.useState)(!1)),C=w[0],I=w[1],A=(0,l.useState)(null),M=A[0],B=A[1],T=(0,l.useMemo)((function(){return(null===_||void 0===_?void 0:_.spark_jars)||[]}),[_]),D=(0,l.useMemo)((function(){return(null===T||void 0===T?void 0:T.length)>=1}),[T]),R=(0,l.useMemo)((function(){return(T||[]).includes(M)}),[T,M]),W=(0,l.useMemo)((function(){return(0,P.jsxs)(m.ZP,{alignItems:"center",children:[!C&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.Add,{}),compact:!0,onClick:function(e){(0,N.j)(e),I(!0),setTimeout((function(){var e;return null===k||void 0===k||null===(e=k.current)||void 0===e?void 0:e.focus()}),1)},secondary:!D,small:!0,children:"Add JAR file"}),C&&(0,P.jsxs)(P.Fragment,{children:[R&&(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)(se.Z,{autoComplete:"off",compact:!0,meta:{touched:!!R,error:""},monospace:!0,onClick:function(e){return(0,N.j)(e)},paddingVertical:b.iI/2-2,onChange:function(e){(0,N.j)(e),B(e.target.value)},ref:k,small:!0,value:M||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:R,compact:!0,onClick:function(e){(0,N.j)(e),R||(v({spark_jars:T.concat(M)}),I(!1),B(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,N.j)(e),I(!1),B(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[R,T,D,C,M,k,I,B]),z=(0,l.useMemo)((function(){return null===T||void 0===T?void 0:T.map((function(e,n){return(0,P.jsxs)("div",{children:[(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=(0,me.Z)(T);v({spark_jars:(0,xe.oM)(e,n)})},children:(0,P.jsx)(E.Trash,{default:!0,size:ce.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){var t=(0,me.Z)(T);t[n]=e.target.value,v({spark_jars:t})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /home/path/example1.jar",value:e||""})})]})})]},e)}))}),[T,v]),H=(0,l.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!(null!==c&&void 0!==c&&c.remote_variables_dir)||!(null===t||void 0===t||!t.error),default:!0,large:!0,children:["Remote variables directory ",!(null!==c&&void 0!==c&&c.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return f({remote_variables_dir:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. s3://magically-powerful-bucket",value:(null===c||void 0===c?void 0:c.remote_variables_dir)||""}),(null===t||void 0===t?void 0:t.error)&&(0,P.jsx)(m.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,c,f]);return(0,P.jsxs)(ce.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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)||""})})]})}),fe.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,o=e.uuid,l=e.valid,s=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!l,default:!0,large:!0,monospace:!r,children:[r||o," ",!l&&(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:[!l&&(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})]}),l&&s&&(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:s})]})]})})]},o)}))]}),(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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.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)(h.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.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)||""})})]})})]}),fe.GO.AWS_EMR===d&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[(0,P.jsxs)(m.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)(se.Z,{afterIcon:(0,P.jsx)(E.Edit,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:ce.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return p({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)(m.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}),D&&(0,P.jsx)(m.ZP,{alignItems:"center",children:W})]})}),!D&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(h.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)(m.ZP,{alignItems:"center",children:W})]})]}),D&&z]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(m.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(E.Save,{}),disabled:!r||!(null!==(t=Object.keys(r))&&void 0!==t&&t.length),loading:o,onClick:function(){return s()},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,l.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,o=e.status_calculated,l=e.steps;n?null===l||void 0===l||l.forEach((function(e){t.push(e);var n=e.required,i=e.status_calculated;n&&fe.br.COMPLETED!==i||(r+=1)})):(t.push(e),i&&fe.br.COMPLETED!==o||(r+=1))})),{steps:t,stepsCompleted:r}}),[n]),i=r.steps,o=r.stepsCompleted,s=(0,l.useMemo)((function(){return(null===i||void 0===i?void 0:i.length)||1}),[i]),c=(0,l.useMemo)((function(){return o/s}),[o,s]);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)(h.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:o})," / ",(0,P.jsx)(Z.ZP,{default:!0,inline:!0,children:s})," ",(0,D._6)("step",s,!1,!0)," completed"]})}),(0,P.jsx)(Pe.Z,{progress:100*c})]}),(0,P.jsx)(h.Z,{light:!0})]})},_e=t(78688),ke=t(72748),Oe=t(32013),we=t(98777);function Ce(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?Ce(Object(t),!0).forEach((function(n){(0,s.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ie="Environment",Ee="Executors";var Ae=function(e){e.objectAttributes;var n,t=(0,l.useContext)(M.ThemeContext),r=(0,l.useState)(Ie),i=r[0],o=r[1],s=I.ZP.spark_executors.list().data,u=(0,l.useMemo)((function(){return null===s||void 0===s?void 0:s.spark_executors}),[s]),a=I.ZP.spark_environments.detail("0").data,d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.spark_environment}),[a]),f=(0,l.useMemo)((function(){var e,n,t,r,i,o,s;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)(we.Z,{noPaddingContent:!0,title:"Runtime",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:"Hadoop properties",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:"Metrics properties",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:"Spark properties",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:"System properties",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:"Classpath entries",children:[(0,P.jsx)(C.Z,{columnFlex:[null,null],columns:[{uuid:"Type"},{uuid:"Value"}],rows:null===d||void 0===d||null===(o=d.classpath_entries)||void 0===o?void 0:o.map((function(e){return[(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"type"}),e[1]),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[0])]}))}),(0,P.jsx)(g.Z,{p:1})]})]})}),null===d||void 0===d||null===(s=d.resource_profiles)||void 0===s?void 0:s.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,c.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:(0,D.vg)(r),children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,D.vg)(e[0])),(0,l.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,c.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(we.Z,{noPaddingContent:!0,title:(0,D.vg)(r),children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,D.vg)(e[0])),(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})})]},t)}))]})}),[d]),p=(0,l.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)(we.Z,{noPaddingContent:!0,title:"Metrics",children:[(0,P.jsx)(C.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,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,D.vg)(n)),(0,l.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)(we.Z,{noPaddingContent:!0,title:"Memory metrics",children:[(0,P.jsx)(C.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,c.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,D.vg)(t)),(0,l.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)(we.Z,{noPaddingContent:!0,title:"Peak memory metrics",children:[(0,P.jsx)(C.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,c.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Se(Se({},$.eB),{},{key:"property"}),(0,D.vg)(t)),(0,l.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 o(n)},regularSizeText:!0,selectedTabUUID:i,tabs:[{label:function(){return Ie},uuid:Ie},{label:function(){return Ee},uuid:Ee}],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)(h.Z,{light:!0})}),Ie===i&&f,Ee===i&&p]})},Me=t(62547),Be=t(23657),Te=t(74778),De=t(46684),Re=t(53808),We=t(10332),Ne=t(15610),ze=t(69419),He=t(19183);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,s.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 Le=function(e){var n,t=e.contained,r=e.heightOffset,i=e.mainContainerRef,o=(0,He.i)(),d=o.height,f=(o.width,(0,l.useMemo)((function(){return"ComputeManagement/".concat(t?"contained":"open")}),[t])),p=(0,F.VI)(null,{},[],{uuid:f}),v=(0,c.Z)(p,1)[0],h=((0,l.useRef)(null),(0,l.useRef)(null),(0,l.useRef)(null),(0,l.useRef)(null)),y=(0,l.useMemo)((function(){return d-(r||0)}),[r,d]),_=(0,l.useState)(!1),k=_[0],O=_[1],w=(0,l.useState)(null),C=w[0],S=w[1],A=(0,Be.Z)({clustersRefreshInterval:1e4,includeAllStates:k}),M=A.activeCluster,B=A.clusters,T=A.clustersLoading,D=A.computeService,R=A.connections,N=A.connectionsLoading,H=A.fetchAll,V=A.setupComplete,L=(0,l.useState)(null),U=L[0],G=L[1];(0,l.useEffect)((function(){var e;G(null===h||void 0===h||null===(e=h.current)||void 0===e?void 0:e.getBoundingClientRect())}),[d,h]);var J=(0,l.useMemo)((function(){return"compute_management_after_width_".concat(f)}),[f]),K=(0,l.useMemo)((function(){return"compute_management_before_width_".concat(f)}),[f]),Y=(0,l.useState)((0,Re.U2)(J,60*b.iI)),Q=Y[0],ee=Y[1],ne=(0,l.useCallback)((function(e){ee(e),(0,Re.t8)(J,Math.max(e,60*b.iI))}),[J,ee]),te=(0,l.useState)(!1),re=te[0],ie=te[1],oe=(0,l.useState)(Math.max((0,Re.U2)(K),20*b.iI)),se=oe[0],ce=oe[1],ue=(0,l.useCallback)((function(e){ce(e||20*b.iI),(0,Re.t8)(K,e||20*b.iI)}),[K,ce]),ae=(0,l.useState)(!1),de=ae[0],fe=ae[1],pe=(0,l.useState)(!0),ve=pe[0],me=pe[1],je=(0,l.useState)(null),xe=je[0],ge=je[1],Ze=(0,l.useCallback)((function(e){ge((function(n){var t=e(n);return t&&ve?me(!1):t||ve||!V||me(!0),t}))}),[ve,me,ge,V]),Pe=(0,l.useState)(null),Oe=Pe[0],we=Pe[1],Ce=(0,l.useCallback)((function(e){var n;(0,Ne.u)((0,s.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,l.useEffect)((function(){var e=null===Se||void 0===Se?void 0:Se.tab;(null===Oe||void 0===Oe?void 0:Oe.main)!==e&&we(e?{main:e}:null)}),[Oe,Se]);var Ie=(0,l.useState)(null),Ee=Ie[0],Fe=Ie[1],Le=(0,l.useState)({}),Ue=Le[0],Ge=Le[1],Xe=(0,l.useCallback)((function(e){Ge((function(n){return Ve(Ve({},n),e)})),Fe((function(n){return Ve(Ve({},n),e)}))}),[Ge,Fe]),qe=((0,l.useCallback)((function(e){return Xe({spark_config:Ve(Ve({},null===Ee||void 0===Ee?void 0:Ee.spark_config),e)})}),[Ee,Xe]),I.ZP.projects.list({},{revalidateOnFocus:!1}).data),Je=(0,l.useMemo)((function(){var e;return null===qe||void 0===qe||null===(e=qe.projects)||void 0===e?void 0:e[0]}),[qe]),Ke=(0,l.useMemo)((function(){return null===Je||void 0===Je?void 0:Je.name}),[Je]),Ye=I.ZP.spark_applications.list().data,Qe=(0,l.useMemo)((function(){return null===Ye||void 0===Ye?void 0:Ye.spark_applications}),[Ye]),$e=I.ZP.spark_jobs.list().data,en=(0,l.useMemo)((function(){return null===$e||void 0===$e?void 0:$e.spark_jobs}),[$e]);(0,l.useEffect)((function(){me(V)}),[V]),(0,l.useEffect)((function(){Je&&(Fe(Je),S((0,We.d)(Je)))}),[Je,Fe,S,Ce]),(0,l.useEffect)((function(){!Oe&&C&&Ce({main:$.uK.SETUP})}),[C,Oe,Ce]);var nn=(0,u.Db)(I.ZP.projects.useUpdate(Ke),{onSuccess:function(e){return(0,W.wD)(e,{callback:function(e){var n=e.project;Ge({}),Fe(n),H()},onErrorCallback:function(e,n){return v({errors:n,response:e})}})}}),tn=(0,c.Z)(nn,2),rn=tn[0],on=tn[1].isLoading,ln=(0,l.useCallback)((function(e){return rn({project:(0,z.GL)(Ve(Ve({},Ee),e),["emr_config","remote_variables_dir","spark_config"])})}),[Ee,rn]),sn=(0,l.useMemo)((function(){var e=(0,$.kI)(D).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:B,clustersLoading:T,computeConnections:R,computeService:D,jobs:en,jobsLoading:!$e})),(0,P.jsx)(q.Z,{block:!0,disabled:!C,noHoverUnderline:!0,noOutline:!0,onClick:function(){return Ce((function(){return{main:i}}))},preventDefault:!0,children:(0,P.jsx)(Te.bC,{selected:(null===Oe||void 0===Oe?void 0:Oe.main)===i,children:(0,P.jsxs)(m.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(C){var n=String(C),t=$.l[n],r=$.Eb[n],i=$.LF[n];if(t&&r&&i){var o,l;null!==D&&void 0!==D&&D.setup_steps&&(l=V?M?null!==M&&void 0!==M&&M.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 s=[];null!==D&&void 0!==D&&D.setup_steps&&s.push((0,P.jsx)(g.Z,{py:1,children:(0,P.jsxs)(m.ZP,{alignItems:"center",children:[V&&(0,P.jsx)(E.PowerOnOffButton,{muted:!(null!==M&&void 0!==M&&M.ready),size:1.5*b.iI,success:null===M||void 0===M?void 0:M.ready}),!V&&(0,P.jsx)(E.AlertTriangle,{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:!V||!M,small:!0,children:V&&M?"Compute service connected":"Compute service unconnected"}),l&&(0,P.jsx)(Z.ZP,{muted:!0,xsmall:!0,children:l})]})]})},"compute-service-setup-steps")),(null===D||void 0===D||null===(o=D.setup_steps)||void 0===o?void 0:o.length)>=1&&!V&&e.unshift((0,P.jsx)(ye,{computeService:D,onClick:function(){return me(!1)}},"setupProgress")),e.unshift((0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Te.UE,{inline:!0,children:[(0,P.jsxs)(m.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),Ce(null)},secondary:!0,small:!0,children:"Change"})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsx)(m.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===s||void 0===s?void 0:s.length)>=1&&(0,P.jsx)(g.Z,{mt:b.cd,children:s})]})},"".concat(t,"-").concat(r)))}}return e}),[M,Qe,B,T,D,R,Ye,$e,en,C,Oe,me,Ce,V]),cn=(0,l.useMemo)((function(){var e;return xe?(0,P.jsx)(ke.Z,{height:y-(((null===U||void 0===U?void 0:U.height)||0)+De.Mz+1),model:xe}):(null===D||void 0===D||null===(e=D.setup_steps)||void 0===e?void 0:e.length)>=1?(0,P.jsx)(_e.Z,{onClickStep:function(e){return Ce((function(){return{main:e}}))},setupSteps:null===D||void 0===D?void 0:D.setup_steps}):void 0}),[D,y,xe,V]),un=(0,l.useMemo)((function(){return(0,P.jsx)(be,{attributesTouched:Ue||{},computeService:D,isLoading:on,mutateObject:ln,objectAttributes:Ee,selectedComputeService:C,setObjectAttributes:Xe})}),[Ue,D,on,Ee,C,Xe,ln]),an=(0,l.useMemo)((function(){return(0,P.jsx)(he,{attributesTouched:Ue||{},isLoading:on,mutateObject:ln,objectAttributes:Ee,selectedComputeService:C,setObjectAttributes:Xe})}),[Ue,on,Ee,C,Xe,ln]),dn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(C))return(0,P.jsx)(le,{applications:Qe,computeConnections:R,computeService:D,connectionsLoading:N,fetchAll:H,jobs:en,loadingApplications:!Ye,loadingJobs:!$e,objectAttributes:Ee,refButtonTabs:h,selectedComputeService:C,setSelectedSql:Ze,setSelectedTab:Ce})}),[Qe,D,R,N,H,Ye,$e,en,Ee,h,C,Ze,Ce]),fn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(C))return(0,P.jsx)(Ae,{objectAttributes:Ee})}),[Ee,C]),pn=(0,l.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)(m.ZP,{alignItems:"center",flexWrap:"wrap",children:$.sY.map((function(e){var n=e.buildPayload,t=e.displayName,r=e.documentationHref,i=e.kicker,o=e.renderIcon,l=e.uuid;return(0,P.jsxs)(Te.UE,{children:[o(),(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)(m.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{loading:on&&l===C,onClick:function(){S(l),ln(n(Ee))},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"})]})})]},l)}))})]})}),[on,Ee,C,S,ln]),vn=(0,l.useMemo)((function(){return(0,P.jsx)(X,{clusters:B,computeService:D,fetchAll:H,includeAllStates:k,loading:T,setIncludeAllStates:O})}),[B,T,D,H,k,O]),hn=(0,l.useMemo)((function(){if(!C&&Ee)return pn;if(C&&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 fn;if($.uK.CLUSTERS===e)return vn}}),[vn,pn,dn,Ee,Je,an,C,Oe,un,fn]);return(0,P.jsx)(Me.Z,{after:cn,afterDividerContrast:!0,afterHeightOffset:De.Mz,afterHidden:ve&&!xe,afterMousedownActive:re,afterWidth:Q,before:sn,beforeDividerContrast:!0,beforeHeightOffset:0,beforeHidden:!C,beforeMousedownActive:de,beforeWidth:se,contained:!0,height:y,hideAfterCompletely:!(null!==D&&void 0!==D&&null!==(n=D.setup_steps)&&void 0!==n&&n.length),hideBeforeCompletely:!C,inline:!0,mainContainerRef:i,setAfterHidden:me,setAfterMousedownActive:ie,setAfterWidth:ne,setBeforeMousedownActive:fe,setBeforeWidth:ue,uuid:f,children:hn})},Ue=t(4230),Ge=t(93808);function Xe(){var e=(0,l.useRef)(null);return(0,P.jsx)(Ue.Z,{title:"Compute management",uuid:"Compute management/index",children:(0,P.jsx)("div",{ref:e,children:(0,P.jsx)(Le,{heightOffset:De.Mz,mainContainerRef:e})})})}Xe.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 qe=(0,Ge.Z)(Xe)},42278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compute",function(){return t(4910)}])},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,[9774,6085,1557,8038,3366,2888,179],(function(){return n=42278,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{4230:function(e,t,r){"use strict";r.d(t,{Z:function(){return C}});var n=r(82394),i=r(21831),o=r(82684),u=r(50724),d=r(1402),f=r(97618),s=r(70613),c=r(31557),l=r(68899),a=r(28598);function h(e,t){var r=e.children,n=e.noPadding;return(0,a.jsx)(l.HS,{noPadding:n,ref:t,children:r})}var v=o.forwardRef(h),w=r(62547),b=r(82571),p=r(77417),O=r(46684),m=r(98464),y=r(70515),j=r(53808),g=r(19183);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=25*y.iI,Z=2*x;function _(e,t,r){var n=r.disable,i=r.refOther,u=r.setWidth,d=r.width,f=r.widthOverride,s=r.widthWindow,c=(0,o.useMemo)((function(){return"".concat(e,"_width")}),[e]),l=(0,j.U2)(c),a=(0,o.useState)(!1),h=a[0],v=a[1],w=(0,o.useState)(l||d),b=w[0],p=w[1],O=(0,o.useMemo)((function(){var e="undefined"!==typeof d&&f?d:b;return t.current=P(P({},t.current),{},{widthOverride:f,widthProp:d}),e||x}),[u,f,d,b]),y=(0,o.useCallback)((function(e){if(!n){var r,o,d,f,l,a=Math.max(s-(Z+(null!==i&&void 0!==i&&null!==(r=i.current)&&void 0!==r&&r.disable?0:(null!==i&&void 0!==i&&null!==(o=i.current)&&void 0!==o&&o.widthOverride?null===i||void 0===i||null===(d=i.current)||void 0===d?void 0:d.widthProp:null===i||void 0===i||null===(f=i.current)||void 0===f?void 0:f.width)||x)),x+Z+(null!==i&&void 0!==i&&null!==(l=i.current)&&void 0!==l&&l.disable?0:x)),h=Math.max(x,Math.min(a,e));e&&(p(h),(0,j.uN)(c,h),u&&u(h)),t.current=P(P({},t.current),{},{disable:n,width:h})}}),[n,c,i,u,s]),g=(0,m.Z)(s);(0,o.useEffect)((function(){s!==g&&y(s*(O/g))}),[O,s,g]);var A=(0,m.Z)(d);return(0,o.useEffect)((function(){!n&&f&&A!==d&&y(d)}),[n,y,f,d,A]),{mousedownActive:h,setMousedownActive:v,setWidth:y,width:O}}function M(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?M(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function B(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,n=e.afterHeader,h=e.afterHidden,m=e.afterWidth,y=e.afterWidthOverride,j=e.appendBreadcrumbs,A=e.before,P=e.beforeHeader,x=e.beforeWidth,M=e.breadcrumbs,B=e.children,C=e.contained,E=e.errors,H=e.headerMenuItems,R=e.headerOffset,S=e.hideAfterCompletely,k=e.mainContainerHeader,D=e.navigationItems,I=e.setAfterHidden,N=e.setAfterWidth,T=e.setBeforeWidth,F=e.setErrors,q=e.subheaderChildren,z=e.subheaderNoPadding,X=e.title,U=function(e,t){var r=t.disableAfter,n=t.disableBefore,i=t.setWidthAfter,u=t.setWidthBefore,d=t.widthAfter,f=t.widthBefore,s=t.widthOverrideAfter,c=t.widthOverrideBefore,l=(0,g.i)().width,a=(0,o.useMemo)((function(){return"layout_after_".concat(e)}),[e]),h=(0,o.useMemo)((function(){return"layout_before_".concat(e)}),[e]),v=(0,o.useRef)(null),w=(0,o.useState)(null),b=w[0],p=w[1],O=((0,o.useMemo)((function(){return Math.max(b-Z,Z)}),[b]),(0,o.useRef)({disable:r,widthOverride:s,width:null,widthProp:d})),m=(0,o.useRef)({disable:n,widthOverride:c,width:null,widthProp:f}),y=_(a,O,{disable:r,refOther:m,setWidth:i,width:d,widthOverride:s,widthWindow:l}),j=y.mousedownActive,A=y.setMousedownActive,P=y.setWidth,x=y.width,M=_(h,m,{disable:n,refOther:O,setWidth:u,width:f,widthOverride:c,widthWindow:l}),W=M.mousedownActive,B=M.setMousedownActive,C=M.setWidth,E=M.width;return(0,o.useEffect)((function(){m.current={disable:n,width:E,widthOverride:c,widthProp:f}}),[n,E,c]),(0,o.useEffect)((function(){var e,t;null===v||void 0===v||!v.current||j||W||null===p||void 0===p||p(null===v||void 0===v||null===(e=v.current)||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.width)}),[j,W,p,x,E,l]),{mainContainerRef:v,mousedownActiveAfter:j,mousedownActiveBefore:W,setMousedownActiveAfter:A,setMousedownActiveBefore:B,setWidthAfter:P,setWidthBefore:C,widthAfter:x,widthBefore:E}}(e.uuid,{setWidthAfter:N,setWidthBefore:T,widthAfter:m,widthBefore:x,widthOverrideAfter:y}),V=U.mainContainerRef,$=U.mousedownActiveAfter,G=U.mousedownActiveBefore,J=U.setMousedownActiveAfter,K=U.setMousedownActiveBefore,L=U.setWidthAfter,Q=U.setWidthBefore,Y=U.widthAfter,ee=U.widthBefore,te=(0,p.Z)().project,re=[];return M&&re.push.apply(re,(0,i.Z)(M)),null!==M&&void 0!==M&&M.length&&!j||!te||null!==M&&void 0!==M&&M.length||re.unshift({bold:!j,label:function(){return X}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.Z,{title:X}),(0,a.jsx)(c.Z,{breadcrumbs:re,menuItems:H}),(0,a.jsxs)(l.Nk,{ref:t,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,a.jsx)(l.lm,{showMore:!0,children:(0,a.jsx)(b.Z,{navigationItems:D,showMore:!0})}),(0,a.jsx)(f.Z,{flex:1,flexDirection:"column",children:(0,a.jsxs)(w.Z,{after:r,afterHeader:n,afterHeightOffset:O.Mz,afterHidden:h,afterMousedownActive:$,afterWidth:Y,before:A,beforeHeader:P,beforeHeightOffset:O.Mz,beforeMousedownActive:G,beforeWidth:A?ee:l.k1,contained:C,headerOffset:R,hideAfterCompletely:!r||S,leftOffset:A?l.k1:null,mainContainerHeader:k,mainContainerRef:V,setAfterHidden:I,setAfterMousedownActive:J,setAfterWidth:L,setBeforeMousedownActive:K,setBeforeWidth:Q,children:[q&&(0,a.jsx)(v,{noPadding:z,children:q}),B]})})]}),E&&(0,a.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===F||void 0===F?void 0:F(null)},children:(0,a.jsx)(d.Z,W(W({},E),{},{onClose:function(){return null===F||void 0===F?void 0:F(null)}}))})]})}var C=o.forwardRef(B)},69616:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(82684),i=r(25976),o=r(47041),u=i.default.div.withConfig({displayName:"indexstyle__ScrollerStyle",componentId:"sc-16b7ntp-0"})([""," align-items:center;display:flex;flex-direction:row;height:100%;overflow:auto;"],(0,o.y$)()),d=r(28598);var f=function(e){var t=e.children,r=(e.widthOffset,(0,n.useRef)(null)),i=(0,n.useRef)(null),o=(0,n.useState)(null),f=(o[0],o[1]);return(0,n.useEffect)((function(){setTimeout((function(){var e,t,n,o;f({scroll:(null===r||void 0===r||null===(e=r.current)||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.width)||0,tabs:(null===i||void 0===i||null===(n=i.current)||void 0===n||null===(o=n.getBoundingClientRect())||void 0===o?void 0:o.width)||0})}),1)}),[]),(0,d.jsx)(u,{ref:r,children:(0,d.jsx)("div",{ref:i,style:{height:"100%"},children:t})})}},98530:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return O}});var n=r(77837),i=r(38860),o=r.n(i),u=r(82684),d=r(4230),f=r(15338),s=r(55485),c=r(38276),l=r(68192),a=r(69616),h=r(46684),v=r(28598);var w=function(e){var t=e.query,r=(0,u.useRef)(null),n=(0,u.useState)(null),i=n[0],o=n[1],w=(0,l.Z)({selectedFilePath:null===t||void 0===t?void 0:t.file_path,showHiddenFilesSetting:!0}),b=w.browser,p=w.controller,O=w.filePaths,m=w.menu,y=w.selectedFilePath,j=w.tabs,g=w.versions,A=w.versionsVisible;return(0,u.useEffect)((function(){setTimeout((function(){var e,t;return o((null===r||void 0===r||null===(e=r.current)||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.height)||0)}),1)}),[O]),(0,v.jsx)(d.Z,{after:g,afterHidden:!(A&&y),before:b,contained:!0,headerOffset:i+h.Mz,mainContainerHeader:function(e){var t=e.widthOffset;return(0,v.jsxs)("div",{ref:r,style:{position:"relative",zIndex:3},children:[(0,v.jsx)(c.Z,{p:1,children:(0,v.jsx)(s.ZP,{alignItems:"center",children:m})}),(0,v.jsx)(f.Z,{light:!0}),(0,v.jsx)(a.Z,{widthOffset:t,children:j})]})},title:"Files",uuid:"Files/index",children:p})},b=r(93808);function p(e){var t=e.query;return(0,v.jsx)(w,{query:t})}p.getInitialProps=function(){var e=(0,n.Z)(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{query:t.query});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();var O=(0,b.Z)(p)},99017:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return r(98530)}])},80022:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},13692:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n.Z)(e,t)}},93189:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(12539),i=r(80022);function o(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})}},function(e){e.O(0,[6085,7011,1557,8038,2479,3449,8192,9774,2888,179],(function(){return t=99017,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -0,0 +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(4230),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,[6085,1557,8038,3943,9624,7264,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(95924),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(
|
|
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(95924),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(4230),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.Add,{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,[6085,1557,8038,3943,9624,7264,9774,2888,179],(function(){return t=42692,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-eb4421d51fb7368f.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{40033:function(r,e,t){"use strict";var o=t(82684),n=t(4230),u=t(8569),c=t(81728),i=t(28598);e.Z=function(r){var e=r.operationType,t=r.resourceType,l=r.rootProject,a=r.slug,s=(0,o.useMemo)((function(){var r=[a,t?(0,c.j3)(t):t,e?(0,c.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,t,a]);return(0,i.jsx)(n.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return l?"Platform global hooks":"Global hooks"},linkProps:{href:"/".concat(l?"platform/":"","global-hooks")}},{bold:!0,label:function(){return s}}],title:a,uuid:"GlobalHookDetail/index",children:(0,i.jsx)(u.Z,{operationType:e,resourceType:t,rootProject:l,uuid:a})})}},1368:function(r,e,t){"use strict";t.r(e);var o=t(77837),n=t(82394),u=t(91835),c=t(38860),i=t.n(c),l=t(40033),a=t(93808),s=t(28598);function p(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,o)}return t}function f(r){var e=(0,u.Z)({},r);return(0,s.jsx)(l.Z,function(r){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){(0,n.Z)(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}({},e))}f.getInitialProps=function(){var r=(0,o.Z)(i().mark((function r(e){var t,o,n,u;return i().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return t=e.query,o=t.operation_type,n=t.resource_type,u=t.slug,r.abrupt("return",{operationType:o,resourceType:n,slug:null===u||void 0===u?void 0:u[0]});case 2:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),e.default=(0,a.Z)(f)},98746:function(r,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks/[...slug]",function(){return t(1368)}])}},function(r){r.O(0,[6085,1557,8038,737,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],{44374:function(e,o,n){"use strict";n.d(o,{Z:function(){return A}});var t=n(82684),i=n(71180),l=n(4230),r=n(8569),u=n(82394),c=n(12691),a=n.n(c),d=n(25976),s=n(34376),p=n(55485),v=n(48670),f=n(75499),h=n(30160),b=n(35686),m=n(72473),j=n(8193),k={default:!0,monospace:!0},g=n(81728),P=n(3917),_=n(55283),w=n(86735),x=n(70320),y=n(28598);function Z(e,o){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);o&&(t=t.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),n.push.apply(n,t)}return n}function O(e){for(var o=1;o<arguments.length;o++){var n=null!=arguments[o]?arguments[o]:{};o%2?Z(Object(n),!0).forEach((function(o){(0,u.Z)(e,o,n[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))}))}return e}var E=function(e){var o=e.rootProject,n=(0,x.qB)(),i=(0,t.useContext)(d.ThemeContext),l=(0,s.useRouter)(),r=(0,t.useState)(null),u=r[0],c=(r[1],b.ZP.global_hooks.list(O({_format:"with_pipeline_details",include_snapshot_validation:1},o?{root_project:o}:{})).data),Z=(0,t.useMemo)((function(){return(null===c||void 0===c?void 0:c.global_hooks)||[]}),[c]);return(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(f.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 t=null===Z||void 0===Z?void 0:Z[e],i=t.operation_type,r=t.resource_type,u=t.uuid;l.push("/".concat(o?"platform/":"","global-hooks/").concat(u,"?operation_type=").concat(i,"&resource_type=").concat(r))},getObjectAtRowIndex:function(e){return null===Z||void 0===Z?void 0:Z[e]},rows:null===Z||void 0===Z?void 0:Z.map((function(e){var o,l=e.metadata,r=e.operation_type,u=e.outputs,c=e.pipeline,d=e.pipeline_details,s=e.resource_type,f=e.uuid,b=null===c||void 0===c?void 0:c.uuid,x=b?(0,y.jsx)(a(),{as:"/pipelines/".concat(b,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,y.jsx)(v.Z,O(O({},k),{},{openNewWindow:!0,children:b}))},"pipeline"):(0,t.createElement)(h.ZP,O(O({},k),{},{key:"pipeline",muted:!0}),"-"),Z=[];if((null===u||void 0===u?void 0:u.length)>=1&&(null===d||void 0===d||null===(o=d.blocks)||void 0===o?void 0:o.length)>=1){var E=(0,w.HK)((null===d||void 0===d?void 0:d.blocks)||[],(function(e){return e.uuid}));null===u||void 0===u||u.forEach((function(e,o){var n;if(null!==e&&void 0!==e&&null!==(n=e.block)&&void 0!==n&&n.uuid){var l,r=null===E||void 0===E?void 0:E[null===e||void 0===e||null===(l=e.block)||void 0===l?void 0:l.uuid];r&&(o>=1&&Z.push((0,t.createElement)(h.ZP,O(O({},k),{},{inline:!0,key:"".concat(null===r||void 0===r?void 0:r.uuid,"-").concat(o,"-comma"),muted:!0}),",\xa0")),Z.push((0,y.jsx)(a(),{as:"/pipelines/".concat(b,"/edit?block_uuid=").concat(null===r||void 0===r?void 0:r.uuid),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,y.jsx)(v.Z,O(O({},k),{},{inline:!0,openNewWindow:!0,sameColorAsText:!0,children:(0,y.jsx)(h.ZP,O(O({},k),{},{color:(0,_.qn)(null===r||void 0===r?void 0:r.type,{blockColor:null===r||void 0===r?void 0:r.color,theme:i}).accent,inline:!0,children:null===r||void 0===r?void 0:r.uuid}))}))},"".concat(null===r||void 0===r?void 0:r.uuid,"-").concat(o,"-link"))))}}))}return[(0,t.createElement)(h.ZP,O(O({},k),{},{key:"uuid"}),f),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"resourceType",monospace:!1}),s?(0,g.j3)(s):"-"),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"operationType",monospace:!1}),r?(0,g.vg)(r):"-"),x,(0,y.jsxs)("div",{children:[(null===Z||void 0===Z?void 0:Z.length)>=1&&Z,!(null!==Z&&void 0!==Z&&Z.length)&&(0,y.jsx)(h.ZP,O(O({},k),{},{muted:!0,children:"-"}))]},"outputs"),(0,y.jsx)(p.ZP,{justifyContent:"center",children:null!==l&&void 0!==l&&l.snapshot_valid?(0,y.jsx)(m.Check,{size:j.Z,success:!0}):(0,y.jsx)(m.AlertTriangle,{danger:!0,size:j.Z})},"valid"),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"snapshottedAt",rightAligned:!0}),null!==l&&void 0!==l&&l.snapshotted_at?(0,P.XG)(null===l||void 0===l?void 0:l.snapshotted_at,n):"-")]})),selectedRowIndexInternal:u,uuid:"GlobalHooks/Table"})})},C=n(70515),T=n(69419);var A=function(e){var o=e.rootProject,n=(0,t.useState)(!1),u=n[0],c=n[1],a=(0,T.iV)();(0,t.useEffect)((function(){var e=a.new;c(!!e)}),[a]);var d=o?"Platform global hooks":"Global hooks";return(0,y.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:u,breadcrumbs:u?[{label:function(){return d},linkProps:{href:"/".concat(o?"platform/":"","global-hooks")}},{bold:!0,label:function(){return"New"}}]:null,subheaderChildren:!u&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(i.ZP,{beforeIcon:(0,y.jsx)(m.Add,{size:2.5*C.iI}),inline:!0,linkProps:{as:"/".concat(o?"platform/":"","global-hooks?new=1"),href:"/".concat(o?"platform/":"","global-hooks")},noHoverUnderline:!0,primary:!0,sameColorAsText:!0,children:"Add new global hook"})}),title:d,uuid:"GlobalHooks/index",children:[u&&(0,y.jsx)(r.Z,{isNew:u,rootProject:o}),!u&&(0,y.jsx)(E,{rootProject:o})]})}},60921:function(e,o,n){"use strict";n.r(o);var t=n(77837),i=n(38860),l=n.n(i),r=n(44374),u=n(93808),c=n(28598);function a(){return(0,c.jsx)(r.Z,{})}a.getInitialProps=(0,t.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)}))),o.default=(0,u.Z)(a)},95140:function(e,o,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-hooks",function(){return n(60921)}])}},function(e){e.O(0,[6085,1557,8038,737,9774,2888,179],(function(){return o=95140,e(e.s=o);var o}));var o=e.O();_N_E=o}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9015],{65557:function(e,n,t){"use strict";var i=t(21831),o=t(75582),r=t(82684),l=t(49555);n.Z=function(e){var n=e.children,t=e.uuid,c=e.uuids,a=void 0===c?[]:c,s=(0,l.j)("apiReloads"),u=(0,o.Z)(s,1)[0],d=(0,i.Z)(a);t&&d.push(t);var f=d.map((function(e){return String(u[e])||"-"})).join("_");return r.cloneElement(n,{key:f})}},90758:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(82394),o=t(26304),r=t(82684),l=t(25976),c=t(39867),a=t(55485),s=t(48670),u=t(38276),d=t(30160),f=t(12468),p=t(44897),h=t(79899),m=t(72473),v=t(97133),b=t(70515),x=t(15610),g=t(95924),y=t(28598),C=1.25*b.iI;var j=function(e){var n=e.filePath,t=e.filesTouched,i=void 0===t?{}:t,o=e.isLast,l=e.onClickTab,j=e.onClickTabClose,k=e.renderTabTitle,P=e.savePipelineContent,Z=e.selected,_=e.themeContext,w=(0,r.useState)(!1),O=w[0],I=w[1],T=(0,h.Z)({filePath:n,name:n,uuid:n}),F=T.BlockIcon,E=T.Icon,S=T.color,z=T.iconColor,N=T.isBlockFile;return(0,y.jsx)(a.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),Z||(l?l(n):(null===P||void 0===P||P(),(0,x.u)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)},children:(0,y.jsx)(v.Gb,{last:o,selected:Z,children:(0,y.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[(0,y.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,y.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,children:[!i[n]&&(0,y.jsx)(y.Fragment,{children:N?(0,y.jsx)(F,{color:S,size:1*b.iI,square:!0}):(0,y.jsx)(E,{fill:z,size:1.5*b.iI})}),i[n]&&(0,y.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,y.jsx)("div",{style:{padding:1},children:(0,y.jsx)(c.Z,{borderColor:(_||p.Z).borders.danger,size:C})})}),(0,y.jsx)(u.Z,{mr:1}),(0,y.jsx)(d.ZP,{monospace:!0,muted:!Z,noWrapping:!0,small:!0,children:k?k(n):n})]})}),j&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(u.Z,{mr:2}),(0,y.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,y.jsxs)(s.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,g.j)(e),null===j||void 0===j||j(n)},preventDefault:!0,children:[(O||Z)&&(0,y.jsx)(m.Close,{muted:!Z,size:C}),!O&&!Z&&(0,y.jsx)("div",{style:{width:C}})]})})]})]})})})},k=t(86735),P=["filePaths","isSelectedFilePath","onClickTab","onClickTabClose","selectedFilePath","tabsBefore"];function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}return t}function _(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach((function(n){(0,i.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var w=function(e){var n=e.filePaths,t=e.isSelectedFilePath,i=e.onClickTab,c=e.onClickTabClose,s=e.selectedFilePath,u=e.tabsBefore,d=(0,o.Z)(e,P),f=(0,r.useContext)(l.ThemeContext),p=(0,r.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),h=(0,r.useMemo)((function(){return(null===p||void 0===p?void 0:p.length)||0}),[p]);return(0,y.jsxs)(a.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"flex-start",children:[(null===u||void 0===u?void 0:u.length)>=1&&(null===u||void 0===u?void 0:u.map((function(e){var n=e.label,o=e.onClick,r=e.uuid,l=t?t(r,s):s===encodeURIComponent(r);return(0,y.jsx)(j,{onClickTab:function(){return null===o||void 0===o?void 0:o({onClickTab:i})},renderTabTitle:function(){return n?null===n||void 0===n?void 0:n():r},selected:l,themeContext:f},r)}))),null===p||void 0===p?void 0:p.map((function(e,n){var o=t?t(e,s):s===encodeURIComponent(e);return(0,r.createElement)(j,_(_({},d),{},{filePath:e,isLast:n===h-1,key:e,onClickTab:i,onClickTabClose:function(e){if(c)c(e);else{var n=(0,k.Od)(p,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,x.u)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:o,themeContext:f}))}))]})}},97133:function(e,n,t){"use strict";t.d(n,{Gb:function(){return f},fm:function(){return u},lO:function(){return s},rK:function(){return d},zn:function(){return a}});var i=t(25976),o=t(44897),r=t(2842),l=t(70515),c=t(47041),a=300,s=i.default.div.withConfig({displayName:"indexstyle__PipelineContainerStyle",componentId:"sc-1sv9513-0"})([".pipeline-detail-enter-active{opacity:1;transition:opacity ","ms linear;}.pipeline-detail-enter-done{opacity:0;transition:opacity ","ms linear;}"],a,a),u=i.default.div.withConfig({displayName:"indexstyle__OverlayStyle",componentId:"sc-1sv9513-1"})(["height:100vh;opacity:1;position:fixed;width:100vw;z-index:9999;",""],(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).codeArea,";\n ")})),d=i.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],r.Wi,r.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||o.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||o.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(r.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,c.y$)()),f=i.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],1*l.iI,1.5*l.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||o.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||o.Z.background).codeTextarea,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||o.Z.borders).light," !important;\n ")}));i.default.div.withConfig({displayName:"indexstyle__HeaderViewOptionsStyle",componentId:"sc-1sv9513-4"})(["left:50%;position:absolute;transform:translateX(-50%);"])},83087:function(e,n,t){"use strict";t.r(n);var i=t(77837),o=t(38860),r=t.n(o),l=t(82684),c=t(65557),a=t(52479),s=t(43449),u=t(90758),d=t(93808),f=t(38276),p=t(59533),h=t(35686),m=t(86735),v=t(15610),b=t(69419),x=t(97133),g=t(75083),y=t(28598);function C(){var e=(0,l.useState)(null),n=e[0],t=e[1],i=(0,b.iV)(),o=i.file_path,r=(0,l.useMemo)((function(){var e=i["file_paths[]"]||[];return Array.isArray(e)||(e=[e]),e}),[i]),d=(0,l.useCallback)((function(e){var n=encodeURIComponent(e),t=(0,b.iV)()["file_paths[]"]||[];Array.isArray(t)||(t=[t]),t.includes(n)||t.push(n),(0,v.u)({file_path:n,"file_paths[]":t})}),[]),C=h.ZP.files.list(),j=C.data,k=C.mutate,P=(0,l.useMemo)((function(){return(null===j||void 0===j?void 0:j.files)||[]}),[j]),Z=(0,l.useRef)(null),_=(0,l.useState)(null),w=_[0],O=_[1],I=(0,l.useState)([]),T=I[0],F=I[1],E=(0,l.useState)({}),S=E[0],z=E[1],N=(0,l.useMemo)((function(){return(0,y.jsx)(f.Z,{ml:1,mt:1,children:(0,y.jsx)(a.Z,{fetchFiles:k,files:P,openFile:d,ref:Z,showError:t})})}),[k,P,d,t]);return(0,l.useEffect)((function(){O(o)}),[o]),(0,l.useEffect)((function(){(0,m.fS)(r,T)||F(r)}),[r,T]),(0,y.jsx)(p.Z,{before:N,breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"File browser"}}],errors:n,mainContainerHeader:(0,y.jsx)(x.rK,{secondary:!0,children:(0,y.jsx)(u.Z,{filePaths:T,filesTouched:S,selectedFilePath:w})}),pageName:g.L6.FILE_BROWSER,children:null===r||void 0===r?void 0:r.map((function(e){return(0,y.jsx)("div",{style:{display:w===e?null:"none"},children:(0,y.jsx)(c.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,y.jsx)(s.Z,{active:w===e,filePath:e,selectedFilePath:w,setErrors:t,setFilesTouched:z})})},e)}))})}C.getInitialProps=(0,i.Z)(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(C)},90205:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/files",function(){return t(83087)}])}},function(e){e.O(0,[6085,7011,1557,8038,4371,2479,3449,9774,2888,179],(function(){return n=90205,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3512],{68669:function(n,t,e){"use strict";e.d(t,{TU:function(){return p},ck:function(){return v},lU:function(){return d}});var i=e(21831),u=e(17717),r=e(44425),o=e(57653),l=e(89706),a=e(86735),c=e(74401),s=e(81728),f=e(42122),v=function(n){var t;if(null===n||void 0===n||n.forEach((function(n){if((null===n||void 0===n?void 0:n.length)>=1){var e=null===n||void 0===n?void 0:n.toLowerCase();(e in r.qC||(e=(0,s.C5)(e))in r.GJ)&&(t=e)}})),!t){var e=["\\.".concat(l.Lu.SQL),"\\.".concat(l.Lu.YAML),"\\.".concat(l.Lu.YML)].join("|"),i=new RegExp("".concat(e,"$"));if(n.join(u.sep).match(i))return r.tf.DBT}return t};function d(){return new RegExp(Object.keys(l.nB).map((function(n){return".(".concat(n,")$")})).join("|"))}function p(n,t,e){var p,h,E=null===n||void 0===n||null===(p=n.path.match(d())[0])||void 0===p?void 0:p.split(".")[1],_=e.type===o.qL.INTEGRATION,g=(0,a.sE)(null===e||void 0===e?void 0:e.blocks,(function(n){var t=n.type;return r.tf.DATA_EXPORTER===t})),m=n.path.replace(t,"").split(u.sep),T=v(n.path.split(u.sep)),b=r.tf.DBT===T,k=(h=m)[0]===r.tf.DBT?h.slice(1).join(u.sep):function(n){return n.at(-1)}(h).split(".")[0];if(m.length>=3&&!b){var L,w,N=null===m||void 0===m?void 0:m.findIndex((function(n){return null===n||void 0===n?void 0:n.startsWith(T)})),y=null!==m&&void 0!==m&&null!==(L=m[(null===m||void 0===m?void 0:m.length)-1])&&void 0!==L&&L.startsWith(k)?(null===m||void 0===m?void 0:m.length)-1:null===m||void 0===m?void 0:m.length,A=null===m||void 0===m||null===(w=m.slice(N+1,y))||void 0===w?void 0:w.join(u.sep);(null===A||void 0===A?void 0:A.length)>=1&&(k="".concat(A,"/").concat(k))}var R=l.nB[E],j={configuration:(0,f.hB)({file_path:b&&r.t6.SQL===R?(0,c.a)(n):null,file_source:{path:(0,c.a)(n)}}),language:R,name:(0,s.wE)(k),type:T};if(T===r.tf.CUSTOM&&(j.color=r.Lq.TEAL),_){var O=(0,a.sE)(e.blocks,(function(n){var t=n.type;return r.tf.DATA_LOADER===t})),S=(0,a.sE)(e.blocks,(function(n){var t=n.type;return r.tf.TRANSFORMER===t})),P=[];S?P.push(S.uuid):null!==g&&void 0!==g&&g.upstream_blocks?P.push.apply(P,(0,i.Z)(g.upstream_blocks)):O&&P.push(O.uuid),j.upstream_blocks=P}return j}},27216:function(n,t,e){"use strict";e.r(t);var i=e(77837),u=e(38860),r=e.n(u),o=e(82684),l=e(43449),a=e(93808),c=e(59533),s=e(75083),f=e(28598);function v(){var n=(0,o.useState)(null),t=n[0];n[1];return(0,f.jsx)(c.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"Settings"}}],errors:t,pageName:s.L6.SETTINGS,children:(0,f.jsx)(l.Z,{active:!0,filePath:"metadata.yaml",selectedFilePath:"metadata.yaml",setFilesTouched:function(){return null}})})}v.getInitialProps=(0,i.Z)(r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),t.default=(0,a.Z)(v)},1116:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/settings",function(){return e(27216)}])}},function(n){n.O(0,[6085,1557,8038,4371,3449,9774,2888,179],(function(){return t=1116,n(n.s=t);var t}));var t=n.O();_N_E=t}]);
|
mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-70efe222130490b5.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4496],{14875:function(e,r,n){"use strict";n.d(r,{Z3:function(){return o},ms:function(){return i},s7:function(){return t}});var o=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],t="password_current",i=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:t},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},36043:function(e,r,n){"use strict";var o=n(82394),t=n(21831),i=n(75582),u=n(21764),s=n(82684),l=n(69864),a=n(71180),d=n(31882),c=n(55485),v=n(85854),p=n(44085),f=n(38276),m=n(30160),w=n(17488),b=n(35686),h=n(98464),j=n(82359),Z=n(14875),y=n(86735),O=n(50178),_=n(42122),g=n(72619),P=n(28598);function x(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?x(Object(n),!0).forEach((function(r){(0,o.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}r.Z=function(e){var r=e.disabledFields,n=e.hideFields,x=e.newUser,k=e.onDeleteSuccess,S=e.onSaveSuccess,E=e.showDelete,D=e.title,M=e.user,T=(0,s.useState)(!0),I=T[0],N=T[1],U=(0,s.useState)({}),q=U[0],R=U[1],A=(0,s.useState)(null),F=A[0],L=A[1],B=((0,O.PR)()||{}).owner,G=b.ZP.statuses.list().data,H=(0,s.useMemo)((function(){var e;return(null===G||void 0===G||null===(e=G.statuses)||void 0===e?void 0:e[0])||{}}),[G]),W=H.project_type,X=H.project_uuid,Q="global",z=null,J=null;W===j.k.SUB?(Q="project",z=X):W===j.k.MAIN&&(J="The roles selected here will apply to this user globally.\n If a user has both a global role and a workspace role,\n then the role with higher access will take precedence.");var K=b.ZP.roles.list({entity:Q,entity_ids:z?[z]:[],limit_roles:!!x},{revalidateOnFocus:!1}),V=K.data,Y=(K.mutate,(0,s.useMemo)((function(){return(null===V||void 0===V?void 0:V.roles)||[]}),[null===V||void 0===V?void 0:V.roles])),$=(0,l.Db)(x?b.ZP.users.useCreate():b.ZP.users.useUpdate(null===M||void 0===M?void 0:M.id),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(e){var r=e.user,n=Z.Z3.concat(Z.ms).map((function(e){return e.uuid}));n.push("id");var o=(0,_.GL)(r,n);L(o),u.Am.success(x?"New user created successfully.":"User profile successfully updated.",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(r.id)}),null===S||void 0===S||S(o)},onErrorCallback:function(e){var r=e.error,n=r.errors,o=r.exception,t=r.message,i=r.type;u.Am.error((null===n||void 0===n?void 0:n.error)||o||t,{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),ee=(0,i.Z)($,2),re=ee[0],ne=ee[1].isLoading,oe=(0,l.Db)(b.ZP.users.useDelete(null===M||void 0===M?void 0:M.id),{onSuccess:function(e){return(0,g.wD)(e,{callback:function(){null===k||void 0===k||k()},onErrorCallback:function(e){var r=e.error,n=r.errors,o=r.message;alert(o),console.log(n)}})}}),te=(0,i.Z)(oe,2),ie=te[0],ue=te[1].isLoading,se=n?(0,t.Z)(n):[];x&&se.push(Z.s7);var le=!se||!se.includes(Z.s7),ae=(0,h.Z)(M);(0,s.useEffect)((function(){if(M&&(!F||(null===ae||void 0===ae?void 0:ae.id)!==(null===M||void 0===M?void 0:M.id))){var e=Z.Z3.concat(Z.ms).map((function(e){return e.uuid}));L((0,_.GL)(M,e))}null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation?(null===F||void 0===F?void 0:F.password)!==(null===F||void 0===F?void 0:F.password_confirmation)?R({password_confirmation:"Password confirmation does not match."}):!le||null!==F&&void 0!==F&&F.password_current?R(null):R({password_current:"This field is required."}):null!==F&&void 0!==F&&F.password_current&&le?null!==F&&void 0!==F&&F.password&&null!==F&&void 0!==F&&F.password_confirmation?R(null):R({password:"This field is required.",password_confirmation:"This field is required."}):null!==F&&void 0!==F&&F.password_current||null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation||R(null)}),[F,le,M,ae]);var de=(0,s.useState)(!1),ce=de[0],ve=de[1],pe=(0,s.useMemo)((function(){return(ce?null===F||void 0===F?void 0:F.roles_new:null===M||void 0===M?void 0:M.roles_new)||[]}),[F,ce,M]),fe=(0,s.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.map((function(e){return e.id})))||[];return null===pe||void 0===pe?void 0:pe.filter((function(r){var n=r.id;return e.includes(n)}))}),[pe,Y]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{children:D||"Edit profile"}),(0,P.jsxs)("form",{children:[Z.Z3.filter((function(e){var r=e.uuid;return!se||!se.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,t=e.label,i=e.required,u=e.type,s=e.uuid;return(0,P.jsx)(f.Z,{mt:2,children:(0,P.jsx)(w.Z,{autoComplete:r,disabled:n&&!x,label:t,onChange:function(e){N(!1),L((function(r){return C(C({},r),{},(0,o.Z)({},s,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===F||void 0===F?void 0:F[s])||""})},s)})),!(null!==M&&void 0!==M&&M.owner)&&!(null!==se&&void 0!==se&&se.includes("roles"))&&(0,P.jsxs)(f.Z,{mt:2,children:[J&&(0,P.jsx)(f.Z,{mb:1,children:(0,P.jsx)(m.ZP,{children:J})}),(0,P.jsx)(p.Z,{disabled:null===r||void 0===r?void 0:r.includes("roles"),label:"Roles",onChange:function(e){var r=(0,y.sE)(Y,(function(r){return r.id==e.target.value}));r&&(N(!1),ve(!0),L((function(e){var n={};return(0,y.sE)(pe,(function(e){return e.id==(null===r||void 0===r?void 0:r.id)}))||(n={roles_new:[].concat((0,t.Z)(pe),[r])}),C(C({},e),n)})))},primary:!0,setContentOnMount:!0,children:Y.map((function(e){var r=e.id,n=e.name;return(0,P.jsx)("option",{value:r,children:n},n)}))}),(0,P.jsx)(f.Z,{mb:1}),(0,P.jsx)(c.ZP,{alignItems:"center",flexWrap:"wrap",children:null===fe||void 0===fe?void 0:fe.map((function(e){var n=e.id,o=e.name;return(0,P.jsx)(f.Z,{mb:1,mr:1,children:(0,P.jsx)(d.Z,{disabled:null===r||void 0===r?void 0:r.includes("roles"),label:o,onClick:function(){N(!1),ve(!0),L((function(e){return C(C({},e),{},{roles_new:(0,y.Od)(pe,(function(e){return e.id===n}))})}))},primary:!0})},"user_roles/".concat(o))}))})]}),(0,P.jsxs)(f.Z,{mt:5,children:[(0,P.jsx)(v.Z,{children:x?"Password":"Change password"}),Z.ms.filter((function(e){var r=e.uuid;return!se||!se.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,t=e.label,i=e.required,u=e.type,s=e.uuid;return(0,P.jsx)(f.Z,{mt:2,children:(0,P.jsx)(w.Z,{autoComplete:r,disabled:n,label:t,meta:{error:null===q||void 0===q?void 0:q[s],touched:!(null===q||void 0===q||!q[s])},onChange:function(e){N(!1),L((function(r){return C(C({},r),{},(0,o.Z)({},s,e.target.value))}))},primary:!0,required:i,setContentOnMount:!0,type:u,value:(null===F||void 0===F?void 0:F[s])||""})},s)}))]}),(0,P.jsx)(f.Z,{mt:5,children:(0,P.jsxs)(c.ZP,{children:[(0,P.jsx)(a.ZP,{disabled:I||q&&!(0,_.Qr)(q),loading:ne,onClick:function(){var e,r=C({},F);"roles_new"in r&&(r.roles_new=null===(e=F.roles_new)||void 0===e?void 0:e.map((function(e){return e.id})));re({user:r})},primary:!0,children:x?"Create new user":"Update user profile"}),E&&B&&(0,P.jsx)(f.Z,{ml:1,children:(0,P.jsx)(a.ZP,{danger:!0,loading:ue,onClick:function(){window.confirm("Are you sure you want to delete ".concat(F.username||F.email,"?"))&&ie()},children:"Delete user"})})]})})]})]})}},5178:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return M}});var o=n(77837),t=n(38860),i=n.n(t),u=n(82684),s=n(34376),l=n(93808),a=n(38276),d=n(36043),c=n(75582),v=n(21831),p=n(82394),f=n(21764),m=n(69864),w=n(71180),b=n(44085),h=n(75499),j=n(30160),Z=n(35686),y=n(86735),O=n(72619),_=n(28598);function g(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function P(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?g(Object(n),!0).forEach((function(r){(0,p.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var x=function(e){e.fetchUser;var r=e.user,n=e.workspaces,o=(0,s.useRouter)(),t=(0,u.useState)(),i=t[0],l=t[1],d=(0,u.useState)(!0),g=d[0],x=d[1];(0,u.useEffect)((function(){r&&l(r)}),[r]);var C=null===n||void 0===n?void 0:n.map((function(e){return e.project_uuid})),k=Z.ZP.roles.list({entity:"project",entity_ids:C},{},{}),S=k.data,E=(k.mutate,(0,u.useMemo)((function(){var e=(null===S||void 0===S?void 0:S.roles)||[];return null===e||void 0===e?void 0:e.reduce((function(e,r){var n=r.permissions[0].entity_id,o=e[n]||[];return P(P({},e),{},(0,p.Z)({},n,[].concat((0,v.Z)(o),[r])))}),{})}),[S])),D=(0,u.useMemo)((function(){var e=i||r,n=null===e||void 0===e?void 0:e.roles_new;return null===n||void 0===n?void 0:n.reduce((function(e,r){var n,o,t=null===r||void 0===r||null===(n=r.permissions)||void 0===n||null===(o=n[0])||void 0===o?void 0:o.entity_id;return P(P({},e),{},(0,p.Z)({},t,r))}),{})}),[i,r]),M=(0,m.Db)(Z.ZP.users.useUpdate(null===r||void 0===r?void 0:r.id),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(){o.push("/manage/users")},onErrorCallback:function(e){var r=e.error,n=r.errors,o=r.exception,t=r.message,i=r.type;f.Am.error((null===n||void 0===n?void 0:n.error)||o||t,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),T=(0,c.Z)(M,2),I=T[0],N=T[1].isLoading;return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.Z,{p:2,children:(0,_.jsx)(w.ZP,{disabled:g,loading:N,onClick:function(){var e,r=P(P({},i),{},{roles_new:null===i||void 0===i||null===(e=i.roles_new)||void 0===e?void 0:e.map((function(e){return e.id}))});I({user:r})},primary:!0,children:"Update workspace roles"})}),(0,_.jsx)(h.Z,{columnFlex:[1,1],columns:[{uuid:"Workspace"},{uuid:"Role"}],rows:null===n||void 0===n?void 0:n.map((function(e){var r=e.name,n=e.project_uuid,o=(null===E||void 0===E?void 0:E[n])||[],t=null===D||void 0===D?void 0:D[n];return[(0,_.jsx)(j.ZP,{bold:!0,children:r},"name"),(0,_.jsx)(b.Z,{onChange:function(e){x(!1);var r=(0,y.sE)(o,(function(r){return r.id==e.target.value}));r&&l((function(e){var n,o=(null===e||void 0===e||null===(n=e.roles_new)||void 0===n?void 0:n.filter((function(e){return e.id!=(null===r||void 0===r?void 0:r.id)})))||[],t={roles_new:[].concat((0,v.Z)(o),[r])};return P(P({},e),t)}))},placeholder:"No access",primary:!0,setContentOnMount:!0,value:null===t||void 0===t?void 0:t.id,children:o.map((function(e){var r=e.id,n=e.name;return(0,_.jsx)("option",{value:r,children:n},n)}))},"project_role")]}))})]})},C=n(59533),k=n(70515),S=n(14875),E=n(75083);function D(e){var r=e.user,n=(0,s.useRouter)(),o=(0,u.useState)(null),t=o[0],i=o[1],l=null===r||void 0===r?void 0:r.id,c=Z.ZP.users.detail(l),v=c.data,p=c.mutate,f=Z.ZP.statuses.list().data,m=(0,u.useMemo)((function(){var e,r;return null===f||void 0===f||null===(e=f.statuses)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.instance_type}),[f]),w=(0,u.useMemo)((function(){return null===v||void 0===v?void 0:v.user}),[v]);(0,u.useEffect)((function(){(0,O.bB)(v,i)}),[v]);var b=Z.ZP.workspaces.list({cluster_type:m,user_id:l},{refreshInterval:5e3,revalidateOnFocus:!0}).data,h=(0,u.useMemo)((function(){return(0,_.jsx)(a.Z,{p:k.cd,children:(0,_.jsx)(d.Z,{hideFields:[S.s7],onDeleteSuccess:function(){return n.push("/manage/users")},onSaveSuccess:function(){return n.push("/manage/users")},showDelete:!0,title:"Edit user",user:w})})}),[n,w]),j=(0,u.useMemo)((function(){return null===b||void 0===b?void 0:b.workspaces}),[b]);return(0,_.jsx)(C.Z,{before:h,breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{label:function(){return"Users"},linkProps:{as:"/manage/users",href:"/manage/users"}},{bold:!0,label:function(){return(null===w||void 0===w?void 0:w.username)||"User"}}],errors:t,pageName:E.L6.USERS,children:(0,_.jsx)(x,{fetchUser:p,user:w,workspaces:j})})}D.getInitialProps=function(){var e=(0,o.Z)(i().mark((function e(r){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.query.user,e.abrupt("return",{user:{id:n}});case 2:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}();var M=(0,l.Z)(D)},11976:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users/[user]",function(){return n(5178)}])}},function(e){e.O(0,[6085,1557,8038,4371,9774,2888,179],(function(){return r=11976,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3277],{14875:function(e,r,n){"use strict";n.d(r,{Z3:function(){return o},ms:function(){return t},s7:function(){return i}});var o=[{autoComplete:"username",label:"Username",required:!0,uuid:"username"},{autoComplete:"email",disabled:!1,label:"Email",required:!0,type:"email",uuid:"email"}],i="password_current",t=[{autoComplete:"current-password",label:"Current password",type:"password",uuid:i},{autoComplete:"new-password",label:"New password",type:"password",uuid:"password"},{autoComplete:"new-password",label:"Confirm new password",type:"password",uuid:"password_confirmation"}]},36043:function(e,r,n){"use strict";var o=n(82394),i=n(21831),t=n(75582),s=n(21764),u=n(82684),l=n(69864),a=n(71180),d=n(31882),c=n(55485),p=n(85854),v=n(44085),f=n(38276),m=n(30160),w=n(17488),h=n(35686),b=n(98464),Z=n(82359),j=n(14875),_=n(86735),g=n(50178),y=n(42122),O=n(72619),x=n(28598);function P(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?P(Object(n),!0).forEach((function(r){(0,o.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}r.Z=function(e){var r=e.disabledFields,n=e.hideFields,P=e.newUser,k=e.onDeleteSuccess,S=e.onSaveSuccess,E=e.showDelete,T=e.title,D=e.user,I=(0,u.useState)(!0),N=I[0],M=I[1],q=(0,u.useState)({}),U=q[0],A=q[1],R=(0,u.useState)(null),F=R[0],L=R[1],G=((0,g.PR)()||{}).owner,B=h.ZP.statuses.list().data,H=(0,u.useMemo)((function(){var e;return(null===B||void 0===B||null===(e=B.statuses)||void 0===e?void 0:e[0])||{}}),[B]),W=H.project_type,X=H.project_uuid,Q="global",z=null,J=null;W===Z.k.SUB?(Q="project",z=X):W===Z.k.MAIN&&(J="The roles selected here will apply to this user globally.\n If a user has both a global role and a workspace role,\n then the role with higher access will take precedence.");var K=h.ZP.roles.list({entity:Q,entity_ids:z?[z]:[],limit_roles:!!P},{revalidateOnFocus:!1}),V=K.data,Y=(K.mutate,(0,u.useMemo)((function(){return(null===V||void 0===V?void 0:V.roles)||[]}),[null===V||void 0===V?void 0:V.roles])),$=(0,l.Db)(P?h.ZP.users.useCreate():h.ZP.users.useUpdate(null===D||void 0===D?void 0:D.id),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(e){var r=e.user,n=j.Z3.concat(j.ms).map((function(e){return e.uuid}));n.push("id");var o=(0,y.GL)(r,n);L(o),s.Am.success(P?"New user created successfully.":"User profile successfully updated.",{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:"user-update-success-".concat(r.id)}),null===S||void 0===S||S(o)},onErrorCallback:function(e){var r=e.error,n=r.errors,o=r.exception,i=r.message,t=r.type;s.Am.error((null===n||void 0===n?void 0:n.error)||o||i,{position:s.Am.POSITION.BOTTOM_RIGHT,toastId:t})}})}}),ee=(0,t.Z)($,2),re=ee[0],ne=ee[1].isLoading,oe=(0,l.Db)(h.ZP.users.useDelete(null===D||void 0===D?void 0:D.id),{onSuccess:function(e){return(0,O.wD)(e,{callback:function(){null===k||void 0===k||k()},onErrorCallback:function(e){var r=e.error,n=r.errors,o=r.message;alert(o),console.log(n)}})}}),ie=(0,t.Z)(oe,2),te=ie[0],se=ie[1].isLoading,ue=n?(0,i.Z)(n):[];P&&ue.push(j.s7);var le=!ue||!ue.includes(j.s7),ae=(0,b.Z)(D);(0,u.useEffect)((function(){if(D&&(!F||(null===ae||void 0===ae?void 0:ae.id)!==(null===D||void 0===D?void 0:D.id))){var e=j.Z3.concat(j.ms).map((function(e){return e.uuid}));L((0,y.GL)(D,e))}null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation?(null===F||void 0===F?void 0:F.password)!==(null===F||void 0===F?void 0:F.password_confirmation)?A({password_confirmation:"Password confirmation does not match."}):!le||null!==F&&void 0!==F&&F.password_current?A(null):A({password_current:"This field is required."}):null!==F&&void 0!==F&&F.password_current&&le?null!==F&&void 0!==F&&F.password&&null!==F&&void 0!==F&&F.password_confirmation?A(null):A({password:"This field is required.",password_confirmation:"This field is required."}):null!==F&&void 0!==F&&F.password_current||null!==F&&void 0!==F&&F.password||null!==F&&void 0!==F&&F.password_confirmation||A(null)}),[F,le,D,ae]);var de=(0,u.useState)(!1),ce=de[0],pe=de[1],ve=(0,u.useMemo)((function(){return(ce?null===F||void 0===F?void 0:F.roles_new:null===D||void 0===D?void 0:D.roles_new)||[]}),[F,ce,D]),fe=(0,u.useMemo)((function(){var e=(null===Y||void 0===Y?void 0:Y.map((function(e){return e.id})))||[];return null===ve||void 0===ve?void 0:ve.filter((function(r){var n=r.id;return e.includes(n)}))}),[ve,Y]);return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(p.Z,{children:T||"Edit profile"}),(0,x.jsxs)("form",{children:[j.Z3.filter((function(e){var r=e.uuid;return!ue||!ue.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,i=e.label,t=e.required,s=e.type,u=e.uuid;return(0,x.jsx)(f.Z,{mt:2,children:(0,x.jsx)(w.Z,{autoComplete:r,disabled:n&&!P,label:i,onChange:function(e){M(!1),L((function(r){return C(C({},r),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:t,setContentOnMount:!0,type:s,value:(null===F||void 0===F?void 0:F[u])||""})},u)})),!(null!==D&&void 0!==D&&D.owner)&&!(null!==ue&&void 0!==ue&&ue.includes("roles"))&&(0,x.jsxs)(f.Z,{mt:2,children:[J&&(0,x.jsx)(f.Z,{mb:1,children:(0,x.jsx)(m.ZP,{children:J})}),(0,x.jsx)(v.Z,{disabled:null===r||void 0===r?void 0:r.includes("roles"),label:"Roles",onChange:function(e){var r=(0,_.sE)(Y,(function(r){return r.id==e.target.value}));r&&(M(!1),pe(!0),L((function(e){var n={};return(0,_.sE)(ve,(function(e){return e.id==(null===r||void 0===r?void 0:r.id)}))||(n={roles_new:[].concat((0,i.Z)(ve),[r])}),C(C({},e),n)})))},primary:!0,setContentOnMount:!0,children:Y.map((function(e){var r=e.id,n=e.name;return(0,x.jsx)("option",{value:r,children:n},n)}))}),(0,x.jsx)(f.Z,{mb:1}),(0,x.jsx)(c.ZP,{alignItems:"center",flexWrap:"wrap",children:null===fe||void 0===fe?void 0:fe.map((function(e){var n=e.id,o=e.name;return(0,x.jsx)(f.Z,{mb:1,mr:1,children:(0,x.jsx)(d.Z,{disabled:null===r||void 0===r?void 0:r.includes("roles"),label:o,onClick:function(){M(!1),pe(!0),L((function(e){return C(C({},e),{},{roles_new:(0,_.Od)(ve,(function(e){return e.id===n}))})}))},primary:!0})},"user_roles/".concat(o))}))})]}),(0,x.jsxs)(f.Z,{mt:5,children:[(0,x.jsx)(p.Z,{children:P?"Password":"Change password"}),j.ms.filter((function(e){var r=e.uuid;return!ue||!ue.includes(r)})).map((function(e){var r=e.autoComplete,n=e.disabled,i=e.label,t=e.required,s=e.type,u=e.uuid;return(0,x.jsx)(f.Z,{mt:2,children:(0,x.jsx)(w.Z,{autoComplete:r,disabled:n,label:i,meta:{error:null===U||void 0===U?void 0:U[u],touched:!(null===U||void 0===U||!U[u])},onChange:function(e){M(!1),L((function(r){return C(C({},r),{},(0,o.Z)({},u,e.target.value))}))},primary:!0,required:t,setContentOnMount:!0,type:s,value:(null===F||void 0===F?void 0:F[u])||""})},u)}))]}),(0,x.jsx)(f.Z,{mt:5,children:(0,x.jsxs)(c.ZP,{children:[(0,x.jsx)(a.ZP,{disabled:N||U&&!(0,y.Qr)(U),loading:ne,onClick:function(){var e,r=C({},F);"roles_new"in r&&(r.roles_new=null===(e=F.roles_new)||void 0===e?void 0:e.map((function(e){return e.id})));re({user:r})},primary:!0,children:P?"Create new user":"Update user profile"}),E&&G&&(0,x.jsx)(f.Z,{ml:1,children:(0,x.jsx)(a.ZP,{danger:!0,loading:se,onClick:function(){window.confirm("Are you sure you want to delete ".concat(F.username||F.email,"?"))&&te()},children:"Delete user"})})]})})]})]})}},37560:function(e,r,n){"use strict";n.r(r);var o=n(77837),i=n(38860),t=n.n(i),s=(n(82684),n(34376)),u=n(93808),l=n(38276),a=n(36043),d=n(59533),c=n(70515),p=n(75083),v=n(28598);function f(){var e=(0,s.useRouter)();return(0,v.jsx)(d.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{label:function(){return"Users"},linkProps:{as:"/manage/users",href:"/manage/users"}},{bold:!0,label:function(){return"New"}}],pageName:p.L6.USERS,children:(0,v.jsx)(l.Z,{p:c.cd,children:(0,v.jsx)(a.Z,{hideFields:["roles"],newUser:!0,onSaveSuccess:function(r){e.push("/manage/users/[user]","/manage/users/".concat(null===r||void 0===r?void 0:r.id))},title:"Add new user",user:{}})})})}f.getInitialProps=function(){var e=(0,o.Z)(t().mark((function e(r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),r.default=(0,u.Z)(f)},94e3:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users/new",function(){return n(37560)}])}},function(e){e.O(0,[6085,1557,8038,4371,9774,2888,179],(function(){return r=94e3,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1911],{12222:function(e,r,n){"use strict";n.r(r);var u=n(77837),t=n(82394),s=n(38860),i=n.n(s),o=n(82684),a=n(34376),c=n(71180),l=n(85854),d=n(93808),f=n(38276),p=n(75499),v=n(30160),
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1911],{12222:function(e,r,n){"use strict";n.r(r);var u=n(77837),t=n(82394),s=n(38860),i=n.n(s),o=n(82684),a=n(34376),c=n(71180),l=n(85854),d=n(93808),f=n(38276),p=n(75499),v=n(30160),b=n(59533),m=n(35686),w=n(98464),_=n(72473),j=n(70515),O=n(75083),h=n(72619),P=n(50178),g=n(42122),Z=n(69419),y=n(28598);function x(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);r&&(u=u.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,u)}return n}function E(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?x(Object(n),!0).forEach((function(r){(0,t.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}function k(){var e=(0,a.useRouter)(),r=(0,o.useState)(null),n=r[0],u=r[1],t=((0,P.PR)()||{}).owner,s=(0,o.useState)(null),i=s[0],d=s[1],x=m.ZP.users.list({},{revalidateOnFocus:!1}),k=x.data;x.mutate;(0,o.useEffect)((function(){(0,h.bB)(k,u)}),[k]);var S=(0,o.useMemo)((function(){return(null===k||void 0===k?void 0:k.users)||[]}),[null===k||void 0===k?void 0:k.users]),N=m.ZP.users.detail(null===i||void 0===i?void 0:i.user_id,{},{revalidateOnFocus:!1}),R=N.data;N.mutate;(0,o.useEffect)((function(){(0,h.bB)(R,u)}),[R]);var C=null===R||void 0===R?void 0:R.user,D=(0,Z.iV)(),U=(0,w.Z)(D);return(0,o.useEffect)((function(){var e=D.add_new_user,r=D.user_id;if(!(0,g.Xy)(D,U)){var n=E(E({},U),D);r?n.user_id=r:delete n.user_id,e?n.add_new_user=e:delete n.add_new_user,d(n)}}),[D,U]),(0,y.jsxs)(b.Z,{breadcrumbs:[{label:function(){return"Workspaces"},linkProps:{as:"/manage",href:"/manage"}},{bold:!0,label:function(){return"Users"}}],errors:n,pageName:O.L6.USERS,children:[t&&(0,y.jsx)(f.Z,{p:j.cd,children:(0,y.jsx)(c.ZP,{beforeIcon:(0,y.jsx)(_.Add,{}),onClick:function(){return e.push("/manage/users/new")},primary:!0,children:"Add new user"})}),(0,y.jsx)(f.Z,{p:j.cd,children:(0,y.jsx)(l.Z,{children:"Users"})}),(0,y.jsx)(p.Z,{columnFlex:[1,1,1],columns:[{uuid:"Username"},{uuid:"Email"},{uuid:"Role"}],isSelectedRow:function(e){var r;return(null===(r=S[e])||void 0===r?void 0:r.id)===(null===C||void 0===C?void 0:C.id)},onClickRow:function(r){var n,u=null===(n=S[r])||void 0===n?void 0:n.id;e.push("/manage/users/[user]","/manage/users/".concat(u))},rows:S.map((function(e){var r=e.email,n=e.roles_display,u=e.roles_new,t=e.username;return[(0,y.jsx)(v.ZP,{bold:!0,children:t},"username"),(0,y.jsx)(v.ZP,{default:!0,children:r},"email"),(0,y.jsx)(v.ZP,{default:!0,children:u&&u[0]?u[0].name:n},"roles")]})),uuid:"pipeline-runs"})]})}k.getInitialProps=(0,u.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),r.default=(0,d.Z)(k)},72695:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users",function(){return n(12222)}])}},function(e){e.O(0,[6085,1557,8038,4371,9774,2888,179],(function(){return r=72695,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8867],{53779:function(e,n,t){"use strict";t.d(n,{C:function(){return p},X$:function(){return h},eD:function(){return d}});var r=t(25976),i=t(44897),o=t(42631),c=t(70515),s=t(47041),l=t(91437),a=6.25*c.iI,u=(c.iI,100*c.iI),d=r.default.div.withConfig({displayName:"indexstyle__WindowContainerStyle",componentId:"sc-g0cszf-0"})(["border-radius:","px;width:100%;max-width:","px;z-index:101;position:absolute;overflow:hidden;top:50%;left:50%;transform:translate(-50%,-50%);",""],o.n_,u,(function(e){return"\n box-shadow: ".concat((e.theme||i.Z).shadow.window,";\n background-color: ").concat((e.theme||i.Z).background.panel,";\n ")})),f=(0,r.css)(["display:flex;align-items:center;justify-content:space-between;height:","px;padding:","px ","px;",""],a,c.iI,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).background.output,";\n ")})),h=r.default.div.withConfig({displayName:"indexstyle__WindowHeaderStyle",componentId:"sc-g0cszf-1"})([""," border-top-left-radius:","px;border-top-right-radius:","px;",""],f,o.n_,o.n_,(function(e){return"\n border-bottom: ".concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")})),p=r.default.div.withConfig({displayName:"indexstyle__WindowContentStyle",componentId:"sc-g0cszf-2"})(["overflow:auto;padding:","px 0;"," "," "," ",""],c.iI,s.w5,(0,l.eR)(),(function(e){return e.minMaxHeight&&"\n max-height: ".concat(7*c.iI,"px;\n ")}),(function(e){return!e.minMaxHeight&&"\n max-height: calc(100vh - ".concat(6.5*a,"px);\n ")}));r.default.div.withConfig({displayName:"indexstyle__WindowFooterStyle",componentId:"sc-g0cszf-3"})([""," justify-content:flex-end;border-bottom-left-radius:","px;border-bottom-right-radius:","px;",""],f,o.n_,o.n_,(function(e){return"\n border-top: ".concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")})),r.default.div.withConfig({displayName:"indexstyle__InputRowStyle",componentId:"sc-g0cszf-4"})(["padding:","px ","px;",""],.75*c.iI,2*c.iI,(function(e){return"\n border-bottom: ".concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")}))},29480:function(e,n,t){"use strict";t.d(n,{$W:function(){return u},cl:function(){return d},cv:function(){return f},dE:function(){return l},zG:function(){return a}});var r=t(25976),i=t(44897),o=t(42631),c=t(70515),s=t(47041),l=r.default.div.withConfig({displayName:"indexstyle__SectionStyle",componentId:"sc-7a1uhf-0"})(["border-radius:","px;padding:","px;",""],o.n_,c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).popup,";\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__DocsStyle",componentId:"sc-7a1uhf-1"})(["> div{overflow:initial;}> div img{max-width:80%;background:white;padding:1rem;max-height:20vh;}"]),u=r.default.div.withConfig({displayName:"indexstyle__CodeEditorStyle",componentId:"sc-7a1uhf-2"})(["padding-top:","px;",""],c.cd*c.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__TableContainerStyle",componentId:"sc-7a1uhf-3"})(["overflow:auto;max-height:90vh;width:100%;"," "," "," "," ",""],s.w5,(function(e){return e.hideHorizontalScrollbar&&"\n overflow-x: hidden;\n "}),(function(e){return e.width&&"\n width: ".concat(e.width,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,";\n ")}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")})),f=r.default.div.withConfig({displayName:"indexstyle__HeaderRowStyle",componentId:"sc-7a1uhf-4"})(["padding:","px;"," "," ",""],2*c.iI,(function(e){return"\n background-color: ".concat((e.theme||i.Z).interactive.defaultBackground,";\n border-bottom: ").concat(o.YF,"px ").concat(o.M8," ").concat((e.theme||i.Z).borders.medium,";\n ")}),(function(e){return e.padding&&"\n padding: ".concat(e.padding,"px;\n ")}),(function(e){return e.rounded&&"\n border-top-left-radius: ".concat(o.n_,"px;\n border-top-right-radius: ").concat(o.n_,"px;\n ")}))},4611:function(e,n,t){"use strict";t.d(n,{f:function(){return s}});var r=t(25976),i=t(44897),o=t(70515),c=t(42631),s=r.default.div.withConfig({displayName:"Tablestyle__PopupContainerStyle",componentId:"sc-8ammqd-0"})(["position:absolute;max-height:","px;z-index:10;border-radius:","px;padding:","px;"," "," "," ",""],58*o.iI,c.TR,2*o.iI,(function(e){return"\n box-shadow: ".concat((e.theme.shadow||i.Z.shadow).popup,";\n background-color: ").concat((e.theme.interactive||i.Z.interactive).defaultBackground,";\n ")}),(function(e){return e.leftOffset&&"\n left: ".concat(e.leftOffset,"px;\n ")}),(function(e){return e.topOffset&&"\n top: ".concat(e.topOffset,"px;\n ")}),(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}))},11074:function(e,n,t){"use strict";t.d(n,{Z:function(){return l}});var r=t(25976),i=t(44897),o=t(42631),c=r.default.div.withConfig({displayName:"indexstyle__PanelStyle",componentId:"sc-1rfr5wd-0"})(["border-radius:","px;"," ",""],o.n_,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),s=t(28598);var l=function(e){var n=e.children,t=e.fullWidth,r=void 0===t||t;return(0,s.jsx)(c,{fullWidth:r,children:n})}},2182:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var r,i=t(77837),o=t(75582),c=t(38860),s=t.n(c),l=t(82684),a=t(69864),u=t(71180),d=t(50724),f=t(82394),h=t(32013),p=t(98777),m=t(89083),x=t(15338),j=t(52479),Z=t(97618),v=t(55485),g=t(85854),b=t(93369),y=t(11074),_=t(44085),w=t(38276),k=t(30160),C=t(17488),P=t(69650),I=t(35686),O=["ReadWriteOnce","ReadWriteMany","ReadOnlyMany"],S=[{label:"Workspace name",required:!0,uuid:"name"}],N=[{label:"Service account name",placeholder:"default",uuid:"service_account_name"},{label:"Ingress name",labelDescription:"If you want to add the workspace to an existing ingress, enter the name of the ingress here. Otherwise, the workspace can be accessed through the service.",placeholder:"my-ingress",uuid:"ingress_name"}],D=[{label:"Storage class name",placeholder:"default",uuid:"storage_class_name"},{label:"Storage request size (in GB)",type:"number",uuid:"storage_request_size"}],E=t(44425),M=t(72473);!function(e){e.K8S="k8s",e.ECS="ecs",e.CLOUD_RUN="cloud_run",e.EMR="emr"}(r||(r={}));var F=t(29480),W=t(79633),R=t(53779),z=t(72619),T=t(81728),A=t(89538),q=t(28598);function B(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?B(Object(t),!0).forEach((function(n){(0,f.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):B(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n=e.clusterType,t=e.onCancel,i=e.onCreate,c=e.project,s=(0,l.useState)(),d=s[0],B=s[1],H=(0,l.useState)(),U=H[0],L=H[1],Y=(0,l.useState)(null),$=Y[0],K=Y[1],X=(0,l.useState)(null),V=X[0],J=X[1],Q=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.workspace_config_defaults}),[c]);(0,l.useEffect)((function(){if(Q&&(V||J(null===Q||void 0===Q?void 0:Q.lifecycle_config),!$)){var e=G(G({},null===Q||void 0===Q?void 0:Q.k8s),{},{name:null===Q||void 0===Q?void 0:Q.name});K(e)}}),[Q,V,$]);var ee=(0,a.Db)(I.ZP.workspaces.useCreate(),{onSuccess:function(e){return(0,z.wD)(e,{callback:function(e){e.error_message?B(e.error_message):i()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.message;B(r),console.log(t,r)}})}}),ne=(0,o.Z)(ee,2),te=ne[0],re=ne[1].isLoading,ie=I.ZP.files.list(),oe=ie.data,ce=ie.mutate,se=(0,l.useMemo)((function(){return(null===oe||void 0===oe?void 0:oe.files)||[]}),[oe]),le=(0,A.dd)((function(e){return(0,q.jsxs)(R.eD,{children:[(0,q.jsxs)(R.X$,{children:[(0,q.jsx)(Z.Z,{alignItems:"center",children:(0,q.jsx)(k.ZP,{disableWordBreak:!0,monospace:!0,children:"Select file"})}),(0,q.jsx)(u.ZP,{iconOnly:!0,onClick:de,children:(0,q.jsx)(M.Close,{muted:!0})})]}),(0,q.jsx)(R.C,{children:(0,q.jsx)(j.Z,{disableContextMenu:!0,fetchFiles:ce,files:se,isFileDisabled:null===e||void 0===e?void 0:e.isFileDisabled,openFile:e.onFileOpen})})]})}),{},[se,ce],{background:!0,uuid:"file_selector"}),ae=(0,o.Z)(le,2),ue=ae[0],de=ae[1],fe=(0,l.useCallback)((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.labelDescription,o=e.placeholder,c=e.required,s=e.type,l=e.uuid;return(0,q.jsxs)("div",{children:[(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsxs)(Z.Z,{flex:2,flexDirection:"column",children:[(0,q.jsx)(k.ZP,{children:r}),i&&(0,q.jsx)(k.ZP,{muted:!0,children:i})]}),(0,q.jsx)(Z.Z,{flex:1}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(C.Z,{autoComplete:n,disabled:t,onChange:function(e){K((function(n){return G(G({},n),{},(0,f.Z)({},l,e.target.value))}))},placeholder:o,required:c,setContentOnMount:!0,type:s,value:(null===$||void 0===$?void 0:$[l])||""})})]})})]},l)}),[$,K]),he=(0,l.useMemo)((function(){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(v.ZP,{children:(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"General"})})}),N.map((function(e){return fe(e)})),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(v.ZP,{children:(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"Volume claim params"})})}),D.map((function(e){return fe(e)})),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsx)(Z.Z,{flex:3,children:(0,q.jsx)(k.ZP,{children:"Access mode"})}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(_.Z,{fullWidth:!0,label:"Access mode",onChange:function(e){e.preventDefault(),K((function(n){return G(G({},n),{},{storage_access_mode:e.target.value})}))},placeholder:"Access mode",value:null===$||void 0===$?void 0:$.storage_access_mode,children:O.map((function(e){return(0,q.jsx)("option",{value:e,children:e},e)}))})})]})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsxs)(v.ZP,{alignItems:"center",children:[(0,q.jsx)(P.Z,{checked:U,compact:!0,onCheck:function(){return L((function(e){return!e}))}}),(0,q.jsx)(w.Z,{ml:1,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"Configure container"})})]})}),(0,q.jsx)(x.Z,{muted:!0}),U&&(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsx)(F.$W,{children:(0,q.jsx)(m.Z,{autoHeight:!0,fontSize:12,language:E.t6.YAML,onChange:function(e){K((function(n){return G(G({},n),{},{container_config:e})}))},tabSize:2,value:null===$||void 0===$?void 0:$.container_config,width:"100%"})})})]})}),[fe,U,$]),pe=(0,l.useMemo)((function(){var e,n,t,r;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(v.ZP,{children:(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"Termination policy"})})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsx)(Z.Z,{flex:3,children:(0,q.jsx)(k.ZP,{children:"Enable auto termination"})}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsxs)(_.Z,{fullWidth:!0,onChange:function(e){e.preventDefault(),J((function(n){return G(G({},n),{},{termination_policy:G(G({},null===n||void 0===n?void 0:n.termination_policy),{},{enable_auto_termination:"true"===e.target.value})})}))},value:(null===V||void 0===V||null===(e=V.termination_policy)||void 0===e?void 0:e.enable_auto_termination)||"false",children:[(0,q.jsx)("option",{value:"true",children:"True"},"true"),(0,q.jsx)("option",{value:"false",children:"False"},"false")]})})]})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsx)(Z.Z,{flex:3,children:(0,q.jsx)(k.ZP,{children:"Max idle time (in seconds)"})}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(C.Z,{onChange:function(e){J((function(n){return G(G({},n),{},{termination_policy:G(G({},null===n||void 0===n?void 0:n.termination_policy),{},{max_idle_seconds:e.target.value})})}))},setContentOnMount:!0,type:"number",value:(null===V||void 0===V||null===(n=V.termination_policy)||void 0===n?void 0:n.max_idle_seconds)||""})})]})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(v.ZP,{children:(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"Pre start"})})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsxs)(Z.Z,{flex:3,justifyContent:"space-between",children:[(0,q.jsx)(k.ZP,{children:"Path to pre start script"}),(0,q.jsx)(w.Z,{mr:1,children:(0,q.jsx)(u.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({isFileDisabled:function(e,n){return!n&&!e.endsWith(".py")},onFileOpen:function(e){J((function(n){return G(G({},n),{},{pre_start_script_path:e})})),de()}})},children:(0,q.jsx)(M.Folder,{})})})]}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(C.Z,{onChange:function(e){J((function(n){return G(G({},n),{},{pre_start_script_path:e.target.value})}))},placeholder:"/",setContentOnMount:!0,value:(null===V||void 0===V?void 0:V.pre_start_script_path)||""})})]})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(v.ZP,{children:(0,q.jsx)(w.Z,{ml:2,my:2,children:(0,q.jsx)(k.ZP,{bold:!0,sky:!0,children:"Post start"})})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsx)(Z.Z,{flex:3,children:(0,q.jsx)(k.ZP,{children:"Command"})}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(C.Z,{monospace:!0,onChange:function(e){J((function(n){return G(G({},n),{},{post_start:G(G({},null===n||void 0===n?void 0:n.post_start),{},{command:e.target.value})})}))},setContentOnMount:!0,value:(null===V||void 0===V||null===(t=V.post_start)||void 0===t?void 0:t.command)||""})})]})}),(0,q.jsx)(x.Z,{muted:!0}),(0,q.jsx)(w.Z,{ml:3,mr:2,my:1,children:(0,q.jsxs)(v.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,q.jsxs)(Z.Z,{flex:3,justifyContent:"space-between",children:[(0,q.jsx)(k.ZP,{children:"Path to hook (optional)"}),(0,q.jsx)(w.Z,{mr:1,children:(0,q.jsx)(u.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,onClick:function(){return ue({onFileOpen:function(e){J((function(n){return G(G({},n),{},{post_start:G(G({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e})})})),de()}})},children:(0,q.jsx)(M.Folder,{})})})]}),(0,q.jsx)(Z.Z,{flex:1,children:(0,q.jsx)(C.Z,{onChange:function(e){J((function(n){return G(G({},n),{},{post_start:G(G({},null===n||void 0===n?void 0:n.post_start),{},{hook_path:e.target.value})})}))},placeholder:"/",setContentOnMount:!0,value:(null===V||void 0===V||null===(r=V.post_start)||void 0===r?void 0:r.hook_path)||""})})]})}),(0,q.jsx)(x.Z,{muted:!0})]})}),[de,V,J,ue]);return(0,q.jsx)(y.Z,{children:(0,q.jsx)("div",{style:{width:"750px"},children:(0,q.jsxs)(w.Z,{p:2,children:[(0,q.jsx)(g.Z,{level:4,children:"Create workspace"}),(0,q.jsxs)("form",{children:[S.map((function(e){var n=e.autoComplete,t=e.disabled,r=e.label,i=e.required,o=e.type,c=e.uuid;return(0,q.jsx)(w.Z,{mt:2,children:(0,q.jsx)(C.Z,{autoComplete:n,disabled:t,label:r,onChange:function(e){K((function(n){return G(G({},n),{},(0,f.Z)({},c,e.target.value))}))},required:i,setContentOnMount:!0,type:o,value:(null===$||void 0===$?void 0:$[c])||""})},c)})),(0,q.jsx)(w.Z,{mt:2,children:(0,q.jsxs)(h.Z,{noPaddingContent:!0,children:[n===r.K8S&&(0,q.jsx)(p.Z,{title:"Kubernetes",children:he}),(0,q.jsx)(p.Z,{title:"Lifecycle (optional)",children:pe})]})})]}),re&&(0,q.jsx)(w.Z,{mt:1,children:(0,q.jsx)(k.ZP,{small:!0,warning:!0,children:"This may take up to a few minutes... Once the service is created, it may take another 5-10 minutes for the service to be accessible."})}),!re&&d&&(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(w.Z,{mt:1,children:(0,q.jsx)(k.ZP,{danger:!0,small:!0,children:"Failed to create instance, see error below."})}),(0,q.jsx)(w.Z,{mt:1,children:(0,q.jsx)(k.ZP,{danger:!0,small:!0,children:d})})]}),(0,q.jsx)(w.Z,{my:2,children:(0,q.jsxs)(v.ZP,{flexDirection:"row-reverse",children:[(0,q.jsx)(b.ZP,{background:W.a$,bold:!0,inline:!0,loading:re,onClick:function(){var e=$||{},t=e.name,r=e.container_config;if(t){var i=G({},$);i.name=function(e){return"ecs"===n?(0,T.We)(e,"_"):(0,T.We)(e,"-")}(t),i.container_config=U&&r,te({workspace:G(G({},i),{},{cluster_type:n,lifecycle_config:V})})}else B("Please enter a valid name!")},uuid:"workspaces/create",children:"Create"}),(0,q.jsx)(w.Z,{ml:1}),(0,q.jsx)(b.ZP,{bold:!0,inline:!0,onClick:t,uuid:"workspaces/cancel",children:"Cancel"})]})})]})})})},U=t(70374),L=t(93808),Y=t(75499),$=t(59533),K=t(42631),X=t(8059),V=t(4611),J=t(70515),Q=t(75083);function ee(e){var n=e.clusterType,t=e.fetchWorkspaces,r=e.instance,i=e.setErrors,c=(0,l.useRef)(null),s=(0,l.useState)(),f=s[0],h=s[1],p=(0,l.useState)(),m=p[0],x=p[1],j=r.name,Z=(r.task_arn,{cluster_type:n}),g=(0,a.Db)(I.ZP.workspaces.useUpdate(j,Z),{onSuccess:function(e){return(0,z.wD)(e,{callback:function(){t(),h(!1)},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),b=(0,o.Z)(g,1)[0],y=(0,a.Db)(I.ZP.workspaces.useDelete(j,Z),{onSuccess:function(e){return(0,z.wD)(e,{callback:function(){t(),h(!1)},onErrorCallback:function(e,n){return i({errors:n,response:e})}})}}),_=(0,o.Z)(y,1)[0],C=(0,l.useMemo)((function(){var e=r.status,t=[{label:function(){return(0,q.jsx)(k.ZP,{children:"Delete workspace"})},onClick:function(){return x(!0)},uuid:"delete_workspace"}];return"ecs"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,q.jsx)(k.ZP,{children:"Resume instance"})},onClick:function(){return b({workspace:{action:"resume",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,q.jsx)(k.ZP,{children:"Stop instance"})},onClick:function(){return b({workspace:{action:"stop",cluster_type:n,name:r.name,task_arn:r.task_arn}})},uuid:"stop_instance"})),"k8s"===n&&("STOPPED"===e?t.unshift({label:function(){return(0,q.jsx)(k.ZP,{children:"Resume instance"})},onClick:function(){return b({workspace:{action:"resume",cluster_type:n,name:r.name}})},uuid:"resume_instance"}):"RUNNING"===e&&t.unshift({label:function(){return(0,q.jsx)(k.ZP,{children:"Stop instance"})},onClick:function(){return b({workspace:{action:"stop",cluster_type:n,name:r.name}})},uuid:"stop_instance"})),t}),[n,r,b]);return(0,q.jsx)(q.Fragment,{children:["ecs","k8s"].includes(n)&&(0,q.jsxs)("div",{ref:c,style:{position:"relative",zIndex:"1"},children:[(0,q.jsx)(u.ZP,{iconOnly:!0,onClick:function(){return h(!f)},children:(0,q.jsx)(M.Ellipsis,{size:2*J.iI})}),(0,q.jsx)(d.Z,{disableEscape:!0,onClickOutside:function(){h(!1),x(!1)},open:f,children:m?(0,q.jsxs)(V.f,{leftOffset:30*-J.iI,topOffset:3*-J.iI,width:30*J.iI,children:[(0,q.jsx)(k.ZP,{children:"Are you sure you want to delete"}),(0,q.jsx)(k.ZP,{children:"this instance? You may not be"}),(0,q.jsx)(k.ZP,{children:"able to recover your data."}),(0,q.jsx)(w.Z,{mt:1}),(0,q.jsxs)(v.ZP,{children:[(0,q.jsx)(u.ZP,{danger:!0,onClick:_,children:"Confirm"}),(0,q.jsx)(w.Z,{ml:1}),(0,q.jsx)(u.ZP,{default:!0,onClick:function(){return x(!1)},children:"Cancel"})]})]}):(0,q.jsx)(U.Z,{items:C,left:25*-J.iI,open:f,parentRef:c,topOffset:3*-J.iI,uuid:"workspaces/more_actions",width:25*J.iI})})]})})}function ne(){var e=I.ZP.statuses.list().data,n=(0,l.useState)(null),t=n[0],r=n[1],i=(0,l.useMemo)((function(){var n,t;return(null===e||void 0===e||null===(n=e.statuses)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.instance_type)||"ecs"}),[e]),c=I.ZP.projects.list({},{revalidateOnFocus:!1}).data,s=(0,l.useMemo)((function(){var e;return null===c||void 0===c||null===(e=c.projects)||void 0===e?void 0:e[0]}),[c]),a=I.ZP.workspaces.list({cluster_type:i},{refreshInterval:1e4,revalidateOnFocus:!0}),d=a.data,f=a.mutate,h=(0,l.useMemo)((function(){var e;return null===d||void 0===d||null===(e=d.workspaces)||void 0===e?void 0:e.filter((function(e){return e.name}))}),[d]),p=(0,A.dd)((function(){return(0,q.jsx)(H,{clusterType:i,onCancel:j,onCreate:function(){f(),j()},project:s})}),{},[i,f,s],{background:!0,disableClickOutside:!0,disableEscape:!0,uuid:"configure_workspace"}),m=(0,o.Z)(p,2),x=m[0],j=m[1];return(0,q.jsx)($.Z,{breadcrumbs:[{bold:!0,label:function(){return"Workspaces"}}],errors:t,pageName:Q.L6.WORKSPACES,setErrors:r,subheaderChildren:(0,q.jsx)(b.ZP,{background:X.eW,beforeElement:(0,q.jsx)(M.Add,{size:2.5*J.iI}),bold:!0,inline:!0,onClick:function(){return x()},uuid:"workspaces/new",children:"Create new workspace"}),children:(0,q.jsx)(Y.Z,{columnFlex:[2,4,2,3,1,null],columns:[{uuid:"Status"},{uuid:"Instance Name"},{uuid:"Type"},{uuid:"URL/IP"},{uuid:"Open"},{label:function(){return""},uuid:"Actions"}],rows:null===h||void 0===h?void 0:h.map((function(e){var n=e.instance,t=e.url,o=n.ip,c=n.name,s=n.status,l=n.type,a=t||o,d=a;return a&&!a.includes("http")&&(d="http://".concat(a),"ecs"===i&&(d="http://".concat(a,":6789"))),[(0,q.jsx)(u.ZP,{borderRadius:"".concat(K.D7,"px"),danger:"STOPPED"===s,default:"PROVISIONING"===s,notClickable:!0,padding:"6px",primary:"RUNNING"===s,warning:"PENDING"===s,children:(0,T.vg)(s)},"status"),(0,q.jsx)(k.ZP,{children:c},"name"),(0,q.jsx)(k.ZP,{children:(0,T.vg)(l)},"type"),(0,q.jsx)(k.ZP,{children:a||"N/A"},"ip"),(0,q.jsx)(u.ZP,{disabled:!a,iconOnly:!0,onClick:function(){return window.open(d)},children:(0,q.jsx)(M.Expand,{size:2*J.iI})},"open_button"),(0,q.jsx)(ee,{clusterType:i,fetchWorkspaces:f,instance:n,setErrors:r},"more_actions")]}))})})}ne.getInitialProps=(0,i.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var te=(0,L.Z)(ne)},13157:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage",function(){return t(2182)}])}},function(e){e.O(0,[6085,7011,1557,8038,4371,2479,9774,2888,179],(function(){return n=13157,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([[4688],{66316:function(t,e,r){"use strict";r.d(e,{Z:function(){return j}});var n=r(82394),o=r(70613),i=r(31557),c=r(33591),u=r(38276),a=r(70515),s=r(28598);var l=function(t){var e=t.children,r=t.width,n=void 0===r?12:r;return(0,s.jsx)(u.Z,{px:a.zC,children:(0,s.jsx)(c.Row,{children:(0,s.jsx)(c.Col,{lg:n,md:Math.min(12,Math.round(1.5*(12-n))),sm:Math.min(12,Math.round(1.75*(12-n))),xs:12,children:e})})})},f=r(
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4688],{66316:function(t,e,r){"use strict";r.d(e,{Z:function(){return j}});var n=r(82394),o=r(70613),i=r(31557),c=r(33591),u=r(38276),a=r(70515),s=r(28598);var l=function(t){var e=t.children,r=t.width,n=void 0===r?12:r;return(0,s.jsx)(u.Z,{px:a.zC,children:(0,s.jsx)(c.Row,{children:(0,s.jsx)(c.Col,{lg:n,md:Math.min(12,Math.round(1.5*(12-n))),sm:Math.min(12,Math.round(1.75*(12-n))),xs:12,children:e})})})},f=r(25976),p=r(46684),d=f.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-jcgu5l-0"})(["padding-top:","px;",""],p.Mz,(function(t){return t.fullHeight&&"\n height: calc(100vh);\n "}));function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?O(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var j=function(t){var e=t.children,r=t.headerProps,n=t.title;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(o.Z,{title:n}),(0,s.jsx)(i.Z,h({},r)),(0,s.jsx)(l,{children:(0,s.jsx)(d,{fullHeight:!0,children:e})})]})}},77429:function(t,e,r){"use strict";r.r(e);var n=r(77837),o=r(82394),i=r(38860),c=r.n(i),u=r(21764),a=r(82684),s=r(34376),l=r(66316),f=r(35686),p=r(53808),d=r(69419),O=r(28598);function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function j(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){(0,o.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(){var t=(0,s.useRouter)(),e=(0,d.iV)(),r=null===e||void 0===e?void 0:e.state,n=(0,p.U2)(r),o=null===n||void 0===n?void 0:n.provider,i=e;n&&(i=j(j({},e),n));var c=f.ZP.oauths.detail(o,i).data,h=(0,a.useMemo)((function(){var t;return null===c||void 0===c||null===(t=c.oauth)||void 0===t?void 0:t.url}),[c]);return(0,a.useEffect)((function(){h&&(n?((0,p.Od)(r),t.push(h)):n||u.Am.error("Oauth failed due to state not matching!",{position:u.Am.POSITION.BOTTOM_RIGHT,toastId:"oauth-state-error"}))}),[n,h,t,e,r]),(0,O.jsx)(l.Z,{title:"Oauth",children:(0,O.jsx)(O.Fragment,{})})}b.getInitialProps=(0,n.Z)(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",{});case 1:case"end":return t.stop()}}),t)}))),e.default=b},39341:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/oauth",function(){return r(77429)}])}},function(t){t.O(0,[6085,1557,9774,2888,179],(function(){return e=39341,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1709],{81066:function(e,n,t){"use strict";t.d(n,{B:function(){return p}});var r=t(82394),i=t(46732),o=t(93369),c=t(72473),a=t(8059),u=t(70515),d=t(28598);function l(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?l(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p={bold:!0,greyBorder:!0,paddingBottom:9,paddingTop:9};n.Z=function(e){var n=e.addButtonMenuOpen,t=e.addButtonMenuRef,r=e.isLoading,l=e.label,f=e.menuItems,h=e.onClick,m=e.onClickCallback;return(0,d.jsx)(i.Z,{disableKeyboardShortcuts:!0,items:f,onClickCallback:m,onClickOutside:m,open:n,parentRef:t,roundedStyle:!0,topOffset:1,uuid:"Table/Toolbar/NewItemMenu",children:(0,d.jsx)(o.ZP,s(s({},p),{},{background:a.eW,beforeElement:(0,d.jsx)(c.Add,{size:2.5*u.iI}),loading:r,onClick:function(e){e.preventDefault(),null===h||void 0===h||h()},uuid:"shared/AddButton/index",children:l}))})}},46568:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=(t(82684),t(33591)),c=t(28598),a=["children","fullHeight","gutter","style"];function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,u=e.style,l=void 0===u?{}:u,s=(0,i.Z)(e,a),p=d({},l);return r&&(p.paddingLeft=r,p.paddingRight=p.paddingLeft),t&&(p.height="100%"),(0,c.jsx)(o.Col,d(d({},s),{},{style:p,children:n}))}},82682:function(e,n,t){"use strict";var r=t(82394),i=t(26304),o=t(82684),c=t(33591),a=t(28598),u=["children","fullHeight","gutter","justifyContent","style"];function d(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 l(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.children,t=e.fullHeight,r=e.gutter,d=e.justifyContent,s=e.style,p=void 0===s?{}:s,f=(0,i.Z)(e,u),h=l({},p);return r&&(h.marginLeft=-1*r,h.marginRight=h.marginLeft),t&&(h.height="100%"),(0,a.jsx)(c.Row,l(l({},f),{},{justifyContent:d,style:h,children:o.Children.map(n,(function(e,n){return e&&o.cloneElement(e,{gutter:r,key:n})}))}))}},94542:function(e,n,t){"use strict";t.d(n,{J:function(){return o},X:function(){return c}});var r=t(46568),i=t(82682),o=r.Z,c=i.Z},29241:function(e,n,t){"use strict";var r=t(25976),i=t(44897),o=r.default.div.withConfig({displayName:"PageSectionHeader",componentId:"sc-1wznrcv-0"})(["left:0;position:sticky;top:0;width:100%;z-index:3;",""],(function(e){return"\n background-color: ".concat(e.backgroundColor||(e.theme.background||i.Z.background).page,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")}));n.Z=o},96348:function(e,n,t){"use strict";t.d(n,{g:function(){return g},Z:function(){return x}});var r=t(82684),i=t(25976),o=t(44897),c=t(42631),a=t(47041),u=t(70515),d=1.5*u.iI,l=1.5*u.iI,s=i.default.div.withConfig({displayName:"indexstyle__TableStyle",componentId:"sc-13p7y8j-0"})(["border-radius:","px;overflow:hidden;width:100%;"," "," "," ",""],c.n_,(function(e){return e.width&&"\n width: ".concat(e.width,"px;\n ")}),(function(e){return"\n background-color: ".concat((e.theme||o.Z).background.page,";\n border: ").concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).interactive.defaultBorder,";\n box-shadow: ").concat((e.theme||o.Z).shadow.frame,";\n ")}),(function(e){return e.noBackground&&"\n background-color: transparent;\n "}),(function(e){return e.noBoxShadow&&"\n box-shadow: none;\n "})),p=i.default.div.withConfig({displayName:"indexstyle__RowContainerStyle",componentId:"sc-13p7y8j-1"})(["overflow:auto;border-bottom-left-radius:","px;border-bottom-right-radius:","px;"," "," "," ",""],c.n_,c.n_,a.w5,(function(e){return e.maxHeight>0&&"\n max-height: ".concat(e.maxHeight,"px;\n ")}),(function(e){return e.minHeight>0&&"\n min-height: ".concat(e.minHeight,"px;\n ")}),(function(e){return e.scrollable&&"\n margin-bottom: ".concat(u.iI,"px;\n overflow-y: auto;\n padding-top: ").concat(3,"px;\n padding-left: ").concat(3,"px;\n padding-right: ").concat(3,"px;\n ")})),f=i.default.div.withConfig({displayName:"indexstyle__HeaderStyle",componentId:"sc-13p7y8j-2"})(["border-top-left-radius:","px;border-top-right-radius:","px;padding:","px ","px;",""],c.n_,c.n_,d,2*u.iI,(function(e){return"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme.interactive||o.Z.interactive).defaultBorder,";\n ")})),h=i.default.div.withConfig({displayName:"indexstyle__RowStyle",componentId:"sc-13p7y8j-3"})(["padding:","px ","px;"," "," "," "," "," ",""],l,2*u.iI,(function(e){return"\n border-bottom: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).borders.medium2,";\n ")}),(function(e){return e.sameColorBorders&&"\n border-bottom-color: ".concat((e.theme||o.Z).interactive.defaultBorder,";\n ")}),(function(e){return e.noHorizontalPadding&&"\n padding-left: 0;\n padding-right: 0;\n "}),(function(e){return e.condensed&&"\n padding-top: ".concat(9,"px;\n padding-bottom: ").concat(9,"px;\n ")}),(function(e){return e.secondary&&"\n background-color: ".concat((e.theme.background||o.Z.background).row2,";\n ")}),(function(e){return e.last&&e.noBorder&&"\n border-bottom-left-radius: ".concat(c.n_,"px;\n border-bottom-right-radius: ").concat(c.n_,"px;\n border-bottom: none;\n ")})),m=i.default.div.withConfig({displayName:"indexstyle__FooterStyle",componentId:"sc-13p7y8j-4"})(["border-bottom-left-radius:","px;border-bottom-right-radius:","px;padding:","px ","px;",""],c.n_,c.n_,d,2*u.iI,(function(e){return"\n border-top: ".concat(c.YF,"px ").concat(c.M8," ").concat((e.theme||o.Z).borders.medium2,";\n ")})),b=t(28598),g=h;var x=function(e){var n=e.alternating,t=e.children,i=e.footer,o=e.header,c=e.maxHeight,a=e.minHeight,u=e.noBackground,d=e.noBoxShadow,l=e.sameColorBorders,h=e.scrollable,g=e.width,x=[].concat(t).filter((function(e){return null!==e}));return(0,b.jsxs)(s,{noBackground:u,noBoxShadow:d,width:g,children:[o&&(0,b.jsx)(f,{children:o}),(0,b.jsx)(p,{maxHeight:c,minHeight:a,scrollable:h,children:r.Children.map(x,(function(e,t){return e&&r.cloneElement(e,{last:t===x.length-1,sameColorBorders:l,secondary:n&&t%2===1})}))}),i&&(0,b.jsx)(m,{children:i})]})}},17380:function(e,n,t){"use strict";t.d(n,{i:function(){return l}});t(82684);var r=t(25976),i=(t(97618),t(55485),t(48670),t(38276),t(47329)),o=t.n(i);o().node,o().node,o().node.isRequired,o().bool,o().string.isRequired;t(30160);var c=t(70987),a=t(95363),u=t(70515),d=t(42631),l=(t(28598),"tab");r.default.div.withConfig({displayName:"Tabs__TabHeaderContainerStyle",componentId:"sc-rojme5-0"})(["",""],(function(e){return e.containerWidthPercentage&&"\n width: ".concat(e.containerWidthPercentage,"%;\n ")})),r.default.div.withConfig({displayName:"Tabs__TabHeader",componentId:"sc-rojme5-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;margin-right:","px;position:relative;z-index:2;"," "," ",""],d.BG,d.BG,6*u.iI,(function(e){return e.noBottomBorder&&"\n border-bottom: none;\n "}),(function(e){return e.active&&"\n border-bottom: ".concat(u.cd,"px solid;\n border-color: ").concat((e.theme.interactive||c.Z.interactive).linkPrimary,";\n ")}),(function(e){return e.fullWidth&&"\n width: 100%;\n "})),r.default.div.withConfig({displayName:"Tabs__LinkStyle",componentId:"sc-rojme5-2"})(["align-items:center;display:flex;"," "," ",""],(function(e){return e.bold&&"\n font-family: ".concat(a.nF,";\n ")}),(function(e){return e.fullWidth&&"\n justify-content: center;\n "}),(function(e){return!e.disabled&&"\n &:hover {\n path {\n fill: ".concat((e.theme.content||c.Z.interactive).linkPrimary," !important;\n }\n }\n ")}))},98941:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Ue}});var r=t(77837),i=t(75582),o=t(82394),c=t(38860),a=t.n(c),u=t(69864),d=t(82684),l=t(34376),s=t(92083),p=t.n(s),f=t(52749),h=t(81066),m=t(53998),b=t(39440),g=t(60523),x=t(90299),j=t(4230),y=t(55485),v=t(85854),O=t(48670),Z=t(97618),_=t(38276),w=t(30160),P=t(25976),C=t(44897),k=t(42631),I=t(70515),T=12.5*I.iI,E=8*I.iI,N=5*I.iI,D=3*I.iI,S=P.default.div.withConfig({displayName:"indexstyle__TileContainerStyle",componentId:"sc-c3nc3q-0"})(["padding:","px;border-radius:","px;height:","px;width:","px;"," ",""],2.5*I.iI,k.TR,T,T,(function(e){return"\n background-color: ".concat((e.theme||C.Z).background.chartBlock,";\n ")}),(function(e){return e.compact&&"\n height: ".concat(E,"px;\n width: ").concat(E,"px;\n ")})),R=t(28598);var M=function(e){var n=e.Icon,t=e.compact,r=e.label;return(0,R.jsx)(S,{compact:t,children:(0,R.jsxs)(y.ZP,{alignItems:"center",flexDirection:"column",justifyContent:"center",children:[(0,R.jsx)(n,{size:t?D:N}),(0,R.jsx)(_.Z,{mb:"4px"}),(0,R.jsx)(w.ZP,{bold:!0,small:t,children:r})]})})},B=t(12468),L=P.default.div.withConfig({displayName:"indexstyle__MetricsSummaryContainerStyle",componentId:"sc-nu65g1-0"})(["width:100%;padding:","px;border-radius:","px;",""],2*I.iI,k.n_,(function(e){return"\n border: ".concat(k.YF,"px ").concat(k.M8," ").concat((e.theme||C.Z).interactive.defaultBorder,";\n box-shadow: ").concat((e.theme||C.Z).shadow.frame,";\n ")})),A=P.default.div.withConfig({displayName:"indexstyle__MetricContainerStyle",componentId:"sc-nu65g1-1"})(["display:flex;flex:1;align-items:center;justify-content:space-between;",""],(function(e){return e.includeLeftBorder&&"\n @media (min-width: 1200px) {\n padding-left: 24px;\n border-left: ".concat(k.YF,"px ").concat(k.M8," ").concat((e.theme||C.Z).interactive.defaultBorder,";\n }\n ")})),H=t(57653),Y=t(94542),F=t(41143),U={muted:!0,size:t(72191)._k,widthFitContent:!0},V=t(81728),q=t(48277),G=t(79221),W=t(70320),X=t(86735);function z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function J(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?z(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var K=function(e){var n=e.pipelineRunCountByPipelineType,t=(0,W.qB)(),r=(0,d.useMemo)((function(){if(!n)return[];var e=JSON.parse(JSON.stringify(n)),t=e[H.qL.PYTHON]||{};return Object.entries(e[H.qL.PYSPARK]||{}).forEach((function(e){var n=(0,i.Z)(e,2),r=n[0],o=n[1];t[r]?t[r]+=o:t[r]=o})),e[H.qL.PYTHON]=t,delete e[H.qL.PYSPARK],(0,X.mr)(Object.entries(e).filter((function(e){var n=(0,i.Z)(e,2),t=(n[0],n[1]);return 0!==Object.keys(t).length})))}),[n]),o=(0,d.useMemo)((function(){return t?(0,R.jsx)(_.Z,{ml:"4px",children:(0,R.jsx)(B.Z,J(J({},U),{},{label:"Please note that these metrics are based on UTC time."}))}):null}),[t]);return(0,R.jsxs)(L,{children:[(0,R.jsxs)(y.ZP,{alignItems:"center",children:[(0,R.jsx)(w.ZP,{bold:!0,large:!0,children:"Pipeline run metrics"}),o]}),(0,R.jsx)(_.Z,{mb:2}),(0,R.jsx)(Y.X,{style:{gap:"16px"},children:r.map((function(e,n){var t=(0,i.Z)(e,2),o=t[0],c=t[1];return(0,R.jsxs)(A,{includeLeftBorder:0!==n,children:[(0,R.jsx)(M,{Icon:H.Mj[o],label:H.G7[o]}),(0,X.mr)(Object.entries(c)).map((function(e,n){var t=(0,i.Z)(e,2),r=t[0],o=t[1];return(0,R.jsx)(_.Z,{px:1,children:(0,R.jsxs)(Z.Z,{flexDirection:"column",children:[(0,R.jsx)(w.ZP,{children:(0,V.kC)(r)}),(0,R.jsx)(w.ZP,{bold:!0,danger:r===F.V.FAILED&&o>0,title:(0,q.uf)(o),xlarge:!0,children:(0,G.P5)(o,{maxFractionDigits:1,minAmount:1e3})})]})},"".concat(r,"_").concat(n))})),(0,R.jsx)(_.Z,{pr:n!==r.length-1?2:0})]},"".concat(o,"_metric"))}))})]})},$=t(29241),Q=t(65956),ee=t(55729),ne=t(93808),te=t(82359),re=t(4190),ie=t(12691),oe=t.n(ie),ce=t(71180),ae=t(96348),ue=t(68899),de=t(17380),le=t(3917),se=t(69419);function pe(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 fe(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?pe(Object(t),!0).forEach((function(n){(0,o.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var he=40*I.iI,me=40*I.iI;var be=function(e){var n=e.pipelineType,t=e.pipelineRuns,r=void 0===t?[]:t,i=(0,l.useRouter)(),o=(0,se.iV)(),c=(null===o||void 0===o?void 0:o[de.i])||le.vk.TODAY,a=(0,W.qB)(),u=n===H.LM,s=u?H.LM:H.G7[n],p=H.Mj[n],f=r.length,h=0===f?"":"(".concat(f,")"),m=(0,d.useMemo)((function(){return a?(0,R.jsx)(_.Z,{ml:"4px",children:(0,R.jsx)(B.Z,fe(fe({},U),{},{label:"The pipeline run failures are displayed in local time.",maxWidth:24*I.iI,widthFitContent:!1}))}):null}),[a]);return(0,R.jsx)(ae.Z,{footer:(0,R.jsx)(y.ZP,{alignItems:"center",justifyContent:"center",children:(0,R.jsx)(oe(),{as:"/pipeline-runs?status=failed",href:"/pipeline-runs",passHref:!0,children:(0,R.jsx)(O.Z,{sameColorAsText:!0,children:"View more"})})}),header:(0,R.jsxs)(y.ZP,{alignItems:"center",children:[(0,R.jsx)(ce.ZP,{beforeIcon:(0,R.jsx)(p,{size:2.5*I.iI}),compact:!0,notClickable:!0,children:(0,V.kC)(s)}),(0,R.jsx)(_.Z,{ml:2}),(0,R.jsxs)(w.ZP,{bold:!0,children:["Latest ",u?"":"".concat((0,V.wX)(s)," "),"pipeline run failures ",h]}),m]}),maxHeight:he,minHeight:me,children:0===f?(0,R.jsx)(y.ZP,{alignItems:"center",fullWidth:!0,justifyContent:"center",children:(0,R.jsx)(_.Z,{px:5,py:10,children:(0,R.jsxs)(y.ZP,{alignItems:"center",flexDirection:"column",children:[(0,R.jsx)(ue.Hn,{imageUrl:"".concat(i.basePath,"/images/blocks/grey_block.webp")}),(0,R.jsx)(_.Z,{mb:3}),(0,R.jsxs)(w.ZP,{large:!0,children:["No ",u?"":"".concat((0,V.wX)(s)," "),"pipeline run failures for ",le.s8[c]]})]})})}):r.map((function(e){var n=e.created_at,t=e.id,r=e.pipeline_uuid;return(0,R.jsx)(ae.g,{children:(0,R.jsxs)(y.ZP,{alignItems:"center",children:[(0,R.jsx)(oe(),{as:"/pipelines/".concat(r),href:"/pipelines/[pipeline]",passHref:!0,children:(0,R.jsx)(O.Z,{monospace:!0,sameColorAsText:!0,small:!0,children:r})}),(0,R.jsx)(w.ZP,{monospace:!0,small:!0,children:"\xa0>\xa0"}),(0,R.jsx)(oe(),{as:"/pipelines/".concat(r,"/runs/").concat(t),href:"/pipelines/[pipeline]/runs/[run]",passHref:!0,children:(0,R.jsxs)(O.Z,{danger:!0,monospace:!0,sameColorAsText:!0,small:!0,children:["Run created on\xa0",a?(0,le.XG)(n,a):n]})})]})},"pipeline_run_".concat(t))}))})},ge=t(35686),xe=t(98464),je=t(35058),ye=t(64657),ve=t(44425),Oe=t(75399),Ze=t(23780),_e=t(46684),we=t(61556),Pe=t(32929),Ce=t(72473),ke={Icon:Ce.Smiley,label:function(){return(0,V.kC)(le.s8[le.vk.TODAY])},uuid:le.vk.TODAY},Ie={Icon:Ce.WeekDots,label:function(){return(0,V.kC)(le.s8[le.vk.WEEK])},uuid:le.vk.WEEK},Te={Icon:Ce.CalendarRounded,label:function(){return(0,V.kC)(le.s8[le.vk.MONTH])},uuid:le.vk.MONTH},Ee={Icon:Ce.NavDashboard,label:function(){return"Dashboard"},uuid:"Dashboard"},Ne=[ke,Ie,Te],De=t(24491),Se=t(65458),Re=t(15610),Me=t(72619),Be=t(89538);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 Ae(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,o.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 He={mt:2,mx:3},Ye={refreshInterval:6e4,revalidateOnFocus:!1};function Fe(){var e,n,t,r=(0,d.useRef)(null),c=(0,se.iV)(),a=(0,l.useRouter)(),s=(0,d.useRef)(null),Z=(0,d.useState)(ke),P=Z[0],k=Z[1],T=(0,d.useState)(!1),E=T[0],N=T[1],D=(0,d.useState)(null),S=D[0],M=D[1],L=null===P||void 0===P?void 0:P.uuid,A=(0,d.useMemo)((function(){return Ne.concat(Ee)}),[]),Y=(0,xe.Z)(P);(0,d.useEffect)((function(){var e=c[de.i];e&&k(A.find((function(n){return n.uuid===e})))}),[A,c,P,Y]);var G=(0,d.useMemo)((function(){return(0,le.jV)(L,{isoString:!0})}),[L]),z=(0,d.useMemo)((function(){return{group_by_pipeline_type:1,start_time:G}}),[G]),J=ge.ZP.monitor_stats.detail(we.h.PIPELINE_RUN_COUNT,z,Ae({},Ye)),ne=J.data,ie=J.isValidating,oe=J.mutate,ce=ge.ZP.pipeline_runs.list({_limit:50,include_pipeline_type:1,"order_by[]":"created_at desc",start_timestamp:(0,le.A5)(G),status:F.V.FAILED},Ae({},Ye)).data,ae=(0,d.useMemo)((function(){return((null===ce||void 0===ce?void 0:ce.pipeline_runs)||[]).filter((function(e){return null!==e.pipeline_type}))}),[null===ce||void 0===ce?void 0:ce.pipeline_runs]),ue=(0,d.useMemo)((function(){return(0,X.vM)(ae,(function(e){return e.pipeline_type}))}),[ae]),pe=ue.integration,fe=void 0===pe?[]:pe,he=ue.python,me=void 0===he?[]:he,Ce=ue.streaming,Ie=void 0===Ce?[]:Ce;(0,d.useEffect)((function(){Y&&(null===P||void 0===P?void 0:P.uuid)!==(null===Y||void 0===Y?void 0:Y.uuid)&&oe()}),[oe,P,Y]);var Te,Le=(0,d.useMemo)((function(){return(0,le.Y_)(le.yD[L]+1)}),[L]),Fe=(0,d.useMemo)((function(){var e,n=(null===ne||void 0===ne||null===(e=ne.monitor_stat)||void 0===e?void 0:e.stats)||{};return(0,De.i)(n,Le)}),[null===ne||void 0===ne||null===(e=ne.monitor_stat)||void 0===e?void 0:e.stats,Le]),Ue=Fe.pipelineRunCountByPipelineType,Ve=Fe.totalPipelineRunCount,qe=Fe.ungroupedPipelineRunData,Ge=(0,d.useMemo)((function(){return(0,le.Ro)(le.yD[L],{endDateOnly:L===le.vk.TODAY})}),[L]),We=(Te=function(e){return a.push("/pipelines/[pipeline]/edit","/pipelines/".concat(e,"/edit"))},(0,u.Db)(ge.ZP.pipelines.useCreate(),{onSuccess:function(e){return(0,Me.wD)(e,{callback:function(e){var n=e.pipeline.uuid;null===Te||void 0===Te||Te(n)},onErrorCallback:function(e,n){return M({errors:n,response:e})}})}})),Xe=(0,i.Z)(We,2),ze=Xe[0],Je=Xe[1].isLoading,Ke=ge.ZP.projects.list(),$e=Ke.data,Qe=Ke.mutate,en=(0,d.useMemo)((function(){var e;return null===$e||void 0===$e||null===(e=$e.projects)||void 0===e?void 0:e[0]}),[$e]),nn=(0,d.useMemo)((function(){var e;return(0,W.hY)(null===en||void 0===en||null===(e=en.features)||void 0===e?void 0:e[te.d.LOCAL_TIMEZONE])}),[null===en||void 0===en?void 0:en.features]),tn=(0,Be.dd)((function(){return(0,R.jsx)(Ze.BC,{children:(0,R.jsx)(g.Z,{contained:!0,onClickCustomTemplate:function(e){ze({pipeline:{custom_template_uuid:null===e||void 0===e?void 0:e.template_uuid,name:(0,V.Y6)()}}).then((function(){cn()}))},showBreadcrumbs:!0,tabs:[Pe.A2]})})}),{},[],{background:!0,uuid:"browse_templates"}),rn=(0,i.Z)(tn,2),on=rn[0],cn=rn[1],an=(0,Be.dd)((function(e){var n=e.cancelButtonText,t=(e.header,e.onCancel),r=e.onSaveSuccess;return(0,R.jsx)(Ze.BC,{children:(0,R.jsx)(ee.Z,{cancelButtonText:n,contained:!0,header:(0,R.jsx)(_.Z,{mb:I.HN,children:(0,R.jsxs)(Q.Z,{children:[(0,R.jsx)(w.ZP,{warning:!0,children:"You need to add an OpenAI API key to your project before you can generate pipelines using AI."}),(0,R.jsx)(_.Z,{mt:1,children:(0,R.jsxs)(w.ZP,{warning:!0,children:["Read ",(0,R.jsx)(O.Z,{href:"https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key",openNewWindow:!0,children:"OpenAI\u2019s documentation"})," to get your API key."]})})]})}),onCancel:function(){null===t||void 0===t||t(),ln()},onSaveSuccess:function(e){Qe(),ln(),null===r||void 0===r||r(e)}})})}),{},[Qe],{background:!0,uuid:"configure_project"}),un=(0,i.Z)(an,2),dn=un[0],ln=un[1],sn=(0,Be.dd)((function(){return(0,R.jsx)(Ze.BC,{children:(0,R.jsx)(f.Z,{createPipeline:ze,isLoading:Je,onClose:hn})})}),{},[ze,Je],{background:!0,disableClickOutside:!0,disableCloseButton:!0,uuid:"AI_modal"}),pn=(0,i.Z)(sn,2),fn=pn[0],hn=pn[1],mn=(0,d.useMemo)((function(){return(0,Se.d)(ze,{showAIModal:function(){null!==en&&void 0!==en&&en.openai_api_key?fn():dn({onSaveSuccess:function(){fn()}})},showBrowseTemplates:on})}),[ze,en,fn,on,dn]),bn=(0,d.useMemo)((function(){return(0,R.jsx)(h.Z,{addButtonMenuOpen:E,addButtonMenuRef:s,isLoading:Je,label:"New pipeline",menuItems:mn,onClick:function(){return N((function(e){return!e}))},onClickCallback:function(){return N(!1)}})}),[E,Je,mn]),gn=(0,d.useMemo)((function(){return nn?(0,R.jsx)(_.Z,{ml:"4px",children:(0,R.jsx)(B.Z,Ae(Ae({},U),{},{label:"Please note that these counts are based on UTC time."}))}):null}),[nn]),xn=(0,d.useMemo)((function(){var e,n,t,r,i,c,a="Pipelines",u=(0,V.kE)("".concat(a,"_overview_dashboard_").concat((0,V.Lo)())),d="Trigger active status",l=(0,V.kE)("".concat(d,"_overview_dashboard_").concat((0,V.Lo)())),s="Pipeline run status",p=(0,V.kE)("".concat(s,"_overview_dashboard_").concat((0,V.Lo)())),f="Pipeline runs daily",h=(0,V.kE)("".concat(f,"_overview_dashboard_").concat((0,V.Lo)())),m="Completed pipeline runs daily",b=(0,V.kE)("".concat(m,"_overview_dashboard_").concat((0,V.Lo)())),g="Failed pipeline runs daily",x=(0,V.kE)("".concat(g,"_overview_dashboard_").concat((0,V.Lo)())),j="Running pipelines",y=(0,V.kE)("".concat(j,"_overview_dashboard_").concat((0,V.Lo)())),v={type:Oe.XO.PIPELINE_SCHEDULES},O={type:Oe.XO.PIPELINE_RUNS},Z={configuration:(e={},(0,o.Z)(e,je.eN,["execution_date"]),(0,o.Z)(e,je.bE,[{aggregation:je.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(e,je.Yg,je.aE.DAY),(0,o.Z)(e,"chart_type",je.oV.TIME_SERIES_LINE_CHART),e),data_source:O,type:ve.tf.CHART};return{blocks:(c={},(0,o.Z)(c,u,{configuration:(n={},(0,o.Z)(n,je.eN,["type"]),(0,o.Z)(n,je.bE,[{aggregation:je.os.COUNT_DISTINCT,column:"uuid"}]),(0,o.Z)(n,je.$1,je.MP.DESCENDING),(0,o.Z)(n,"chart_style",je.JT.HORIZONTAL),(0,o.Z)(n,"chart_type",je.oV.BAR_CHART),n),data_source:{type:Oe.XO.PIPELINES},name:a,type:ve.tf.CHART,uuid:u}),(0,o.Z)(c,l,{configuration:(t={},(0,o.Z)(t,je.eN,["status"]),(0,o.Z)(t,je.bE,[{aggregation:je.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(t,je.$1,je.MP.DESCENDING),(0,o.Z)(t,"chart_type",je.oV.BAR_CHART),t),data_source:v,name:d,type:ve.tf.CHART,uuid:l}),(0,o.Z)(c,p,{configuration:(r={},(0,o.Z)(r,je.eN,["status"]),(0,o.Z)(r,je.bE,[{aggregation:je.os.COUNT_DISTINCT,column:"id"}]),(0,o.Z)(r,je.$1,je.MP.DESCENDING),(0,o.Z)(r,"chart_style",je.JT.HORIZONTAL),(0,o.Z)(r,"chart_type",je.oV.BAR_CHART),r),data_source:O,name:s,type:ve.tf.CHART,uuid:p}),(0,o.Z)(c,h,Ae(Ae({},Z),{},{name:f,uuid:h})),(0,o.Z)(c,b,Ae(Ae({},Z),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(F.V.COMPLETED,"']\n"),name:m,uuid:b})),(0,o.Z)(c,x,Ae(Ae({},Z),{},{content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(F.V.FAILED,"']\n"),name:g,uuid:x})),(0,o.Z)(c,y,{configuration:(i={},(0,o.Z)(i,je.eN,["backfill_id","completed_at","created_at","execution_date","executor_type","id","pipeline_schedule_id","pipeline_uuid","started_at","status"]),(0,o.Z)(i,"chart_type",je.oV.TABLE),i),content:"\n@data_source\ndef d(df):\n return df[df['status'] == '".concat(F.V.RUNNING,"']\n"),data_source:O,name:j,type:ve.tf.CHART,uuid:y}),c),layout:[[{block_uuid:u,width:1},{block_uuid:l,width:1}],[{block_uuid:p,width:1},{block_uuid:h,width:2}],[{block_uuid:b,width:1},{block_uuid:x,width:1}],[{block_uuid:y,width:1}]]}}),[]);return(0,R.jsxs)(j.Z,{errors:S,setErrors:M,title:"Overview",uuid:"overview/index",children:[(0,R.jsx)($.Z,{backgroundColor:C.Z.background.panel,ref:r,children:(0,R.jsx)(_.Z,{py:2,children:(0,R.jsxs)(y.ZP,{alignItems:"center",children:[(0,R.jsx)(_.Z,{ml:3,children:bn}),(0,R.jsx)(x.Z,{onClickTab:function(e){var n=e.uuid;(0,Re.u)((0,o.Z)({},de.i,n),{replaceParams:!0})},regularSizeText:!0,selectedTabUUID:L,tabs:A})]})})}),Ee.uuid===(null===P||void 0===P?void 0:P.uuid)&&(0,R.jsx)(b.Z,{leftOffset:9*I.iI,pageBlockLayoutTemplate:xn,topOffset:_e.Mz+(null===r||void 0===r||null===(n=r.current)||void 0===n||null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.height),uuid:"overview/dashboard"}),Ee.uuid!==(null===P||void 0===P?void 0:P.uuid)&&(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)(_.Z,{mx:3,my:2,children:[(0,R.jsxs)(v.Z,{level:4,children:[L===le.vk.TODAY&&"".concat((0,V.kC)(le.vk.TODAY)," (UTC): ").concat(Ge),L!==le.vk.TODAY&&"".concat((0,V.kC)(le.s8[L])," (UTC): ").concat(Ge)]}),(0,R.jsx)(_.Z,{mt:2,children:ie?(0,R.jsx)(_.Z,{mx:2,my:11,children:(0,R.jsx)(re.Z,{inverted:!0})}):(0,R.jsx)(K,{pipelineRunCountByPipelineType:Ue})}),(0,R.jsxs)(_.Z,{mt:2,children:[(0,R.jsx)(_.Z,{ml:2,children:(0,R.jsxs)(y.ZP,{alignItems:"center",children:[(0,R.jsxs)(w.ZP,{bold:!0,large:!0,children:[ie?"--":(0,q.uf)(Ve)," total pipeline runs"]}),gn]})}),(0,R.jsx)(_.Z,{mt:1,children:(0,R.jsx)(m.Z,{backgroundColor:C.Z.background.panel,colors:ye.NU,data:qe,getXValue:function(e){return e.date},height:200,keys:ye.hu,margin:{bottom:30,left:35,right:0,top:10},tooltipLeftOffset:ye.CD,xLabelFormat:function(e){return p()(e).format("MMM DD")}})})]})]}),(0,R.jsx)(_.Z,Ae(Ae({},He),{},{children:(0,R.jsxs)(y.ZP,{alignItems:"center",justifyContent:"center",children:[(0,R.jsx)(be,{pipelineRuns:ae,pipelineType:H.LM}),(0,R.jsx)(_.Z,{ml:2}),(0,R.jsx)(be,{pipelineRuns:me,pipelineType:H.qL.PYTHON})]})})),(0,R.jsx)(_.Z,Ae(Ae({},He),{},{children:(0,R.jsxs)(y.ZP,{alignItems:"center",justifyContent:"center",children:[(0,R.jsx)(be,{pipelineRuns:fe,pipelineType:H.qL.INTEGRATION}),(0,R.jsx)(_.Z,{ml:2}),(0,R.jsx)(be,{pipelineRuns:Ie,pipelineType:H.qL.STREAMING})]})})),(0,R.jsx)(_.Z,{mb:2})]})]})}Fe.getInitialProps=(0,r.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})));var Ue=(0,ne.Z)(Fe)},56655:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/overview",function(){return t(98941)}])}},function(e){e.O(0,[3662,6085,125,2714,2631,4783,1557,8038,9264,8095,635,523,9440,3548,5831,8513,9774,2888,179],(function(){return n=56655,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1009],{4230:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n=r(82394),i=r(21831),o=r(82684),u=r(50724),d=r(1402),s=r(97618),c=r(70613),f=r(31557),l=r(68899),a=r(28598);function p(e,t){var r=e.children,n=e.noPadding;return(0,a.jsx)(l.HS,{noPadding:n,ref:t,children:r})}var h=o.forwardRef(p),v=r(62547),w=r(82571),b=r(77417),O=r(46684),m=r(98464),j=r(70515),g=r(53808),P=r(19183);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var _=25*j.iI,M=2*_;function Z(e,t,r){var n=r.disable,i=r.refOther,u=r.setWidth,d=r.width,s=r.widthOverride,c=r.widthWindow,f=(0,o.useMemo)((function(){return"".concat(e,"_width")}),[e]),l=(0,g.U2)(f),a=(0,o.useState)(!1),p=a[0],h=a[1],v=(0,o.useState)(l||d),w=v[0],b=v[1],O=(0,o.useMemo)((function(){var e="undefined"!==typeof d&&s?d:w;return t.current=A(A({},t.current),{},{widthOverride:s,widthProp:d}),e||_}),[u,s,d,w]),j=(0,o.useCallback)((function(e){if(!n){var r,o,d,s,l,a=Math.max(c-(M+(null!==i&&void 0!==i&&null!==(r=i.current)&&void 0!==r&&r.disable?0:(null!==i&&void 0!==i&&null!==(o=i.current)&&void 0!==o&&o.widthOverride?null===i||void 0===i||null===(d=i.current)||void 0===d?void 0:d.widthProp:null===i||void 0===i||null===(s=i.current)||void 0===s?void 0:s.width)||_)),_+M+(null!==i&&void 0!==i&&null!==(l=i.current)&&void 0!==l&&l.disable?0:_)),p=Math.max(_,Math.min(a,e));e&&(b(p),(0,g.uN)(f,p),u&&u(p)),t.current=A(A({},t.current),{},{disable:n,width:p})}}),[n,f,i,u,c]),P=(0,m.Z)(c);(0,o.useEffect)((function(){c!==P&&j(c*(O/P))}),[O,c,P]);var y=(0,m.Z)(d);return(0,o.useEffect)((function(){!n&&s&&y!==d&&j(d)}),[n,j,s,d,y]),{mousedownActive:p,setMousedownActive:h,setWidth:j,width:O}}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function W(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var r=e.after,n=e.afterHeader,p=e.afterHidden,m=e.afterWidth,j=e.afterWidthOverride,g=e.appendBreadcrumbs,y=e.before,A=e.beforeHeader,_=e.beforeWidth,x=e.breadcrumbs,W=e.children,B=e.contained,C=e.errors,D=e.headerMenuItems,k=e.headerOffset,S=e.hideAfterCompletely,H=e.mainContainerHeader,R=e.navigationItems,I=e.setAfterHidden,N=e.setAfterWidth,T=e.setBeforeWidth,F=e.setErrors,U=e.subheaderChildren,L=e.subheaderNoPadding,Q=e.title,q=function(e,t){var r=t.disableAfter,n=t.disableBefore,i=t.setWidthAfter,u=t.setWidthBefore,d=t.widthAfter,s=t.widthBefore,c=t.widthOverrideAfter,f=t.widthOverrideBefore,l=(0,P.i)().width,a=(0,o.useMemo)((function(){return"layout_after_".concat(e)}),[e]),p=(0,o.useMemo)((function(){return"layout_before_".concat(e)}),[e]),h=(0,o.useRef)(null),v=(0,o.useState)(null),w=v[0],b=v[1],O=((0,o.useMemo)((function(){return Math.max(w-M,M)}),[w]),(0,o.useRef)({disable:r,widthOverride:c,width:null,widthProp:d})),m=(0,o.useRef)({disable:n,widthOverride:f,width:null,widthProp:s}),j=Z(a,O,{disable:r,refOther:m,setWidth:i,width:d,widthOverride:c,widthWindow:l}),g=j.mousedownActive,y=j.setMousedownActive,A=j.setWidth,_=j.width,x=Z(p,m,{disable:n,refOther:O,setWidth:u,width:s,widthOverride:f,widthWindow:l}),E=x.mousedownActive,W=x.setMousedownActive,B=x.setWidth,C=x.width;return(0,o.useEffect)((function(){m.current={disable:n,width:C,widthOverride:f,widthProp:s}}),[n,C,f]),(0,o.useEffect)((function(){var e,t;null===h||void 0===h||!h.current||g||E||null===b||void 0===b||b(null===h||void 0===h||null===(e=h.current)||void 0===e||null===(t=e.getBoundingClientRect())||void 0===t?void 0:t.width)}),[g,E,b,_,C,l]),{mainContainerRef:h,mousedownActiveAfter:g,mousedownActiveBefore:E,setMousedownActiveAfter:y,setMousedownActiveBefore:W,setWidthAfter:A,setWidthBefore:B,widthAfter:_,widthBefore:C}}(e.uuid,{setWidthAfter:N,setWidthBefore:T,widthAfter:m,widthBefore:_,widthOverrideAfter:j}),z=q.mainContainerRef,V=q.mousedownActiveAfter,X=q.mousedownActiveBefore,Y=q.setMousedownActiveAfter,G=q.setMousedownActiveBefore,K=q.setWidthAfter,J=q.setWidthBefore,$=q.widthAfter,ee=q.widthBefore,te=(0,b.Z)().project,re=[];return x&&re.push.apply(re,(0,i.Z)(x)),null!==x&&void 0!==x&&x.length&&!g||!te||null!==x&&void 0!==x&&x.length||re.unshift({bold:!g,label:function(){return Q}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{title:Q}),(0,a.jsx)(f.Z,{breadcrumbs:re,menuItems:D}),(0,a.jsxs)(l.Nk,{ref:t,children:[0!==(null===R||void 0===R?void 0:R.length)&&(0,a.jsx)(l.lm,{showMore:!0,children:(0,a.jsx)(w.Z,{navigationItems:R,showMore:!0})}),(0,a.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,a.jsxs)(v.Z,{after:r,afterHeader:n,afterHeightOffset:O.Mz,afterHidden:p,afterMousedownActive:V,afterWidth:$,before:y,beforeHeader:A,beforeHeightOffset:O.Mz,beforeMousedownActive:X,beforeWidth:y?ee:l.k1,contained:B,headerOffset:k,hideAfterCompletely:!r||S,leftOffset:y?l.k1:null,mainContainerHeader:H,mainContainerRef:z,setAfterHidden:I,setAfterMousedownActive:Y,setAfterWidth:K,setBeforeMousedownActive:G,setBeforeWidth:J,children:[U&&(0,a.jsx)(h,{noPadding:L,children:U}),W]})})]}),C&&(0,a.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===F||void 0===F?void 0:F(null)},children:(0,a.jsx)(d.Z,E(E({},C),{},{onClose:function(){return null===F||void 0===F?void 0:F(null)}}))})]})}var B=o.forwardRef(W)},78234:function(e,t,r){"use strict";r.r(t);var n=r(77837),i=r(82394),o=r(38860),u=r.n(o),d=r(82684),s=r(34376),c=r(4230),f=r(55072),l=r(53943),a=r(93808),p=r(82359),h=r(38276),v=r(4190),w=r(85544),b=r(35686),O=r(44265),m=r(70515),j=r(69419),g=r(86735),P=r(70320),y=r(28598);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,i.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(){var e=(0,s.useRouter)(),t=(0,d.useState)(null),r=t[0],n=t[1],o=(0,j.iV)(),u=null!==o&&void 0!==o&&o.page?o.page:0,a=(0,j.DQ)(o,[O.P0.PIPELINE_UUID,O.P0.STATUS,O.P0.TAG]),A=b.ZP.projects.list().data,M=(0,d.useMemo)((function(){var e;return null===A||void 0===A||null===(e=A.projects)||void 0===e?void 0:e[0]}),[A]),Z=((0,d.useMemo)((function(){var e;return(0,P.hY)(null===M||void 0===M||null===(e=M.features)||void 0===e?void 0:e[p.d.LOCAL_TIMEZONE])}),[null===M||void 0===M?void 0:M.features]),_(_({},a),{},{_limit:f.Q,_offset:u*f.Q,disable_retries_grouping:!0,include_pipeline_tags:!0,include_pipeline_uuids:!0}));null!==o&&void 0!==o&&o.status&&(Z.status=o.status);var x=b.ZP.pipeline_runs.list(Z,{refreshInterval:3e3,revalidateOnFocus:!0}),E=x.data,W=x.mutate,B=b.ZP.tags.list().data,C=(0,d.useMemo)((function(){return(0,g.YC)((null===B||void 0===B?void 0:B.tags)||[],(function(e){return e.uuid}))}),[B]),D=(0,d.useMemo)((function(){return(null===E||void 0===E?void 0:E.pipeline_runs)||[]}),[E]),k=(0,d.useMemo)((function(){var e;return(null===E||void 0===E||null===(e=E.metadata)||void 0===e?void 0:e.count)||[]}),[E]),S=(0,d.useMemo)((function(){var e;return(null===E||void 0===E||null===(e=E.metadata)||void 0===e?void 0:e.pipeline_uuids)||[]}),[E]),H=(0,d.useMemo)((function(){return(0,y.jsx)(w.Z,{filterOptions:{pipeline_uuid:S,pipeline_tag:C.map((function(e){return e.uuid})),status:O.IK},filterValueLabelMapping:{pipeline_tag:C.reduce((function(e,t){var r=t.uuid;return _(_({},e),{},(0,i.Z)({},r,r))}),{}),status:O.Do},onClickFilterDefaults:function(){e.push("/pipeline-runs")},query:a,resetPageOnFilterApply:!0})}),[S,a,e,C]);return(0,y.jsx)(c.Z,{errors:r,setErrors:n,subheaderChildren:H,title:"Pipeline runs",uuid:"pipeline_runs/index",children:E?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(l.Z,{fetchPipelineRuns:W,includePipelineTags:!0,pipelineRuns:D,setErrors:n}),(0,y.jsx)(h.Z,{p:2,children:(0,y.jsx)(f.ZP,{maxPages:f.Et,onUpdate:function(t){var r=Number(t),n=_(_({},o),{},{page:r>=0?r:0});e.push("/pipeline-runs","/pipeline-runs?".concat((0,j.uM)(n)))},page:Number(u),totalPages:Math.ceil(k/f.Q)})})]}):(0,y.jsx)(h.Z,{p:m.Mq,children:(0,y.jsx)(v.Z,{inverted:!0,large:!0})})})}M.getInitialProps=(0,n.Z)(u().mark((function e(){return u().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,a.Z)(M)},60710:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/pipeline-runs",function(){return r(78234)}])},80022:function(e,t,r){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}r.d(t,{Z:function(){return n}})},15544:function(e,t,r){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}r.d(t,{Z:function(){return n}})},13692:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(61049);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,n.Z)(e,t)}},93189:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(12539),i=r(80022);function o(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,t,r){"use strict";function n(e,t){return n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{Z:function(){return n}})}},function(e){e.O(0,[6085,1557,8038,3943,2474,9774,2888,179],(function(){return t=60710,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|