mage-ai 0.9.57__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/ai/constants.py +1 -0
- mage_ai/ai/generator.py +7 -0
- mage_ai/ai/llm_pipeline_wizard.py +13 -0
- mage_ai/ai/openai_client.py +9 -1
- mage_ai/api/logging.py +11 -7
- mage_ai/api/policies/BlockPolicy.py +1 -0
- mage_ai/api/policies/CacheItemPolicy.py +16 -3
- 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/CacheItemResource.py +88 -0
- 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/ProjectResource.py +1 -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/dbt/utils.py +31 -10
- mage_ai/cache/file.py +114 -0
- mage_ai/cache/models.py +2 -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 +30 -20
- mage_ai/data_preparation/models/block/dbt/block_sql.py +93 -257
- mage_ai/data_preparation/models/block/dbt/block_yaml.py +81 -158
- mage_ai/data_preparation/models/block/dbt/constants.py +12 -0
- mage_ai/data_preparation/models/block/dbt/dbt_adapter.py +23 -10
- mage_ai/data_preparation/models/block/dbt/dbt_cli.py +124 -612
- 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 +33 -18
- 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 +23 -4
- 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 +2 -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/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
- 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/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
- 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-927ebbdc29529765.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-4f12e989e7809ef9.js +1 -0
- 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-bd8494f8875c5c97.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]-aa5d871de1f3f7b0.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]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.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]-250dfdf22bfe67e9.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-17c3a8f588f14cfd.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 +40 -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 -3
- 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/{5189.dca121eccea793be.js → 5729.0f2748e9e6dab951.js} +1 -1
- 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_base_path_template/_next/static/chunks/9264-7cd9cd0ba86ec5e4.js +1 -0
- 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-927ebbdc29529765.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-4f12e989e7809ef9.js +1 -0
- 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-bd8494f8875c5c97.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]-aa5d871de1f3f7b0.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]-88d29d1774db67e4.js → [...slug]-fa095aac732368c3.js} +1 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/{roles-d8ca763e405cd9d1.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]-250dfdf22bfe67e9.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-b55fe1e575d8ac9d.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 +40 -41
- 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 -3
- 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 +64 -20
- mage_ai/settings/platform/utils.py +4 -1
- 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 -320
- mage_ai/tests/data_preparation/models/block/dbt/test_block_yaml.py +298 -268
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_adapter.py +14 -4
- mage_ai/tests/data_preparation/models/block/dbt/test_dbt_cli.py +14 -11
- 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.57.dist-info → mage_ai-0.9.59.dist-info}/METADATA +49 -47
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/RECORD +504 -486
- mage_ai/server/frontend_dist/_next/static/A7VXVGKgLQCukXcjdysDz/_buildManifest.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1124-09b283a2f26cc576.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/1557-724bfc3eabd095f7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/161-33f26e485ddef393.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1751-5adf859690505d7b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/1821-953efd0da290d25f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2474-352ae192b826d896.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2646-78905b899b68f4eb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2717-477f64b5e272d5a3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2852872c-15b31a7081e6a868.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3859-ba594d21a1260cd2.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/3943-a49377acc514e77f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5283-8d1dacb2eeb9e652.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-261cfa2410506eb4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/5820-28adeabb5cda2b96.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/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/6563-5b3b97c9088baf69.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-1c1c93b6222d48f9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8264-68db2a8334ad48f1.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/8731-82571147875a2d58.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/9264-5df6e4c7b1e85c02.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/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
- mage_ai/server/frontend_dist/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/1124-09b283a2f26cc576.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/1557-724bfc3eabd095f7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/161-33f26e485ddef393.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/1821-953efd0da290d25f.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/2646-78905b899b68f4eb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/2717-477f64b5e272d5a3.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/2920.86a65e5f26ff1795.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3004-9fff558eeede3a83.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/341-ef0f7b98b7f69802.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3419-b8bd26f5946bec5a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3437-ce26fc28e114b44e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3540-9bb48b08f439d0a0.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3745-61b1c63bb56bb670.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/3859-ba594d21a1260cd2.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/5283-8d1dacb2eeb9e652.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-261cfa2410506eb4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5533-3455832bc3f8429b.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5729-9d8204ab91da631d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5810-addfa3491ae6b01c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/5820-28adeabb5cda2b96.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/6285-648f9a732e100b2f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/6563-5b3b97c9088baf69.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-1c1c93b6222d48f9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7361-559f4d2eca379217.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/7858-26a5a5d04fa3c703.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8146-7fc9ef7d0202e6ab.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8264-68db2a8334ad48f1.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/8731-82571147875a2d58.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/874-d9e1b3c9c00ebac9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/8998-e46ae0a83be32d42.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/9264-5df6e4c7b1e85c02.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/pages/404-5ddd12931e0e3e41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/_app-4c0239ca6203e827.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/block-layout-d40babdbf465a7e1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/compute-822e66aa2e90cf4c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-data-products/[...slug]-0325e76a2f3e08c1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks/[...slug]-a172f5a447bd8925.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/global-hooks-97bec2ac883e0c26.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/files-02d001d99eeaae3f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/settings-2e577bfd4f0db2b7.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/[user]-1827574a4ba95a72.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users/new-a913c361bcc0d1a9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage/users-4e6fdcbbfc931d67.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/manage-1c327edcf05df9c9.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/overview-5a98e6a531410afb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipeline-runs-1442183d13edec2e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills/[...slug]-38b2241cdd10320c.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/backfills-1c646dbef65d6a69.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/dashboard-35cb916a18ac4e1f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/edit-cd1918632dfef29d.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/logs-67b0572c84db0940.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runs-40201b626ea3a664.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors/block-runtime-d1f23308effebe03.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/monitors-9a116d88f00916ff.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs/[run]-2d5abcd019d4bea1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/runs-5363a7ae9afe8983.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/settings-931a1b3112866a72.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/syncs-5ec5367cb877db38.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers/[...slug]-8366661f8e2b2959.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines/[pipeline]/triggers-378f8dada7d0c1dd.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/pipelines-627be24ef4963cfb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks/[...slug]-814bbd11e10c26dc.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/platform/global-hooks-021ec25e05862f8f.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/account/profile-2b0aa123043519b8.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/preferences-05186e17c94347c1.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/platform/settings-efe8bf1bf3177a7e.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/permissions-ce45aad47049d993.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/preferences-1bc694b056ff0bcb.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/sync-data-42bd909eb8951040.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/settings/workspace/users-97c4ce119f7238b5.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/sign-in-1af3ba18ff646dd4.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates/[...slug]-ff9d49355393daea.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/templates-299a2c8f2dd89cf3.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/terminal-fb3f398009a02879.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/test-59a08e06f4ef6c3a.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/triggers-551b85802515e313.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/version-control-1362aeda4a31dd41.js +0 -1
- mage_ai/server/frontend_dist_base_path_template/_next/static/wSRrM15xnvA8lOWcaque7/_buildManifest.js +0 -1
- /mage_ai/server/frontend_dist/_next/static/{A7VXVGKgLQCukXcjdysDz → PPQxHOmWVJ0iQFzG2rc8m}/_ssgManifest.js +0 -0
- /mage_ai/server/frontend_dist_base_path_template/_next/static/{wSRrM15xnvA8lOWcaque7 → do4WOsw7lNhouR0mtPTFi}/_ssgManifest.js +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/LICENSE +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/WHEEL +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/entry_points.txt +0 -0
- {mage_ai-0.9.57.dist-info → mage_ai-0.9.59.dist-info}/top_level.txt +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2484],{59739:function(n,e,t){"use strict";var o=t(56669);function r(){}function u(){}u.resetWarningCache=r,n.exports=function(){function n(n,e,t,r,u,i){if(i!==o){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return n}n.isRequired=n;var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:u,resetWarningCache:r};return t.PropTypes=t,t}},47329:function(n,e,t){n.exports=t(59739)()},56669:function(n){"use strict";n.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},85108:function(n,e,t){"use strict";t.d(e,{G8:function(){return m},SR:function(){return p},VR:function(){return l},_H:function(){return E},x8:function(){return d}});var o,r,u,i,c,a,l,s=t(82394),f=t(35058);!function(n){n.COLUMNS="columns",n.METRICS="metrics",n.NUMBER="number"}(l||(l={}));var _={noCode:[{label:function(){return"time column"},settings:{maxValues:1},type:l.COLUMNS,uuid:f.eN},{label:function(){return"time interval"},options:[f.aE.ORIGINAL,f.aE.SECOND,f.aE.MINUTE,f.aE.HOUR,f.aE.DAY,f.aE.WEEK,f.aE.MONTH,f.aE.YEAR],uuid:f.Yg},{label:function(){return"metrics"},type:l.METRICS,uuid:f.bE}]},m=(o={},(0,s.Z)(o,f.oV.BAR_CHART,{noCode:[{label:function(){return"group by columns"},type:l.COLUMNS,uuid:f.eN},{label:function(){return"metrics"},type:l.METRICS,uuid:f.bE},{autoRun:!0,label:function(){return"chart style"},options:[f.JT.HORIZONTAL,f.JT.VERTICAL],uuid:f.R8},{autoRun:!0,label:function(){return"sort direction"},options:[null,f.MP.ASCENDING,f.MP.DESCENDING],uuid:f.$1}],code:[{label:function(){return"variable name of x-axis values"},monospace:!0,uuid:f.a3},{label:function(){return"variable name of y-axis values"},monospace:!0,uuid:f.rj}]}),(0,s.Z)(o,f.oV.HISTOGRAM,{noCode:[{label:function(){return"number column for chart"},settings:{maxValues:1},type:l.COLUMNS,uuid:f.eN},{autoRun:!0,label:function(){return"Number of buckets"},type:l.NUMBER,uuid:f.m7}],code:[{label:function(){return"variable name of values"},monospace:!0,uuid:f.a3}]}),(0,s.Z)(o,f.oV.LINE_CHART,{noCode:[{label:function(){return"group by columns"},settings:{maxValues:1},type:l.COLUMNS,uuid:f.eN},{label:function(){return"metrics"},type:l.METRICS,uuid:f.bE}],code:[{label:function(){return"variable name of x-axis values"},monospace:!0,uuid:f.a3},{label:function(){return"variable name of y-axis values"},monospace:!0,uuid:f.rj},{label:function(){return"labels of lines in chart (comma separated)"},uuid:f.e}]}),(0,s.Z)(o,f.oV.PIE_CHART,{noCode:[{label:function(){return"column for chart"},settings:{maxValues:1},type:l.COLUMNS,uuid:f.eN},{autoRun:!0,label:function(){return"Number of slices"},type:l.NUMBER,uuid:f.m7}],code:[{label:function(){return"variable name of values"},monospace:!0,uuid:f.a3}]}),(0,s.Z)(o,f.oV.TABLE,{noCode:[{label:function(){return"columns"},type:l.COLUMNS,uuid:f.eN},{label:function(){return"max number of rows"},type:l.NUMBER,uuid:f.PG}],code:[{label:function(){return"variable name of columns"},monospace:!0,uuid:f.a3},{label:function(){return"variable name of rows"},monospace:!0,uuid:f.rj}]}),(0,s.Z)(o,f.oV.TIME_SERIES_BAR_CHART,_),(0,s.Z)(o,f.oV.TIME_SERIES_LINE_CHART,_),o),d=(r={},(0,s.Z)(r,f.oV.BAR_CHART,{configuration:function(n){var e;return e={},(0,s.Z)(e,f.a3,"x"),(0,s.Z)(e,f.rj,"y"),(0,s.Z)(e,f.R8,f.JT.VERTICAL),e},content:function(n){return"columns = df_1.columns\nx = df_1.columns[:7]\ny = [[v] for v in [len(df_1[col].unique()) for col in x]]\n"}}),(0,s.Z)(r,f.oV.HISTOGRAM,{configuration:function(n){var e;return e={},(0,s.Z)(e,f.m7,10),(0,s.Z)(e,f.a3,"x"),e},content:function(n){return"columns = df_1.columns\ncol = list(filter(lambda x: df_1[x].dtype == float or df_1[x].dtype == int, columns))[0]\nx = df_1[col]\n"}}),(0,s.Z)(r,f.oV.LINE_CHART,{configuration:function(n){var e;return e={},(0,s.Z)(e,f.a3,"x"),(0,s.Z)(e,f.rj,"y"),e},content:function(n){return"columns = df_1.columns\ncols = list(filter(lambda x: df_1[x].dtype == float or df_1[x].dtype == int, columns))\nx = df_1[cols[0]]\ny = [df_1[cols[1]]]\n"}}),(0,s.Z)(r,f.oV.PIE_CHART,{configuration:function(n){var e;return e={},(0,s.Z)(e,f.m7,7),(0,s.Z)(e,f.a3,"x"),e},content:function(n){return"x = df_1[df_1.columns[0]]"}}),(0,s.Z)(r,f.oV.TABLE,{configuration:function(n){var e;return e={},(0,s.Z)(e,f.PG,10),(0,s.Z)(e,f.a3,"x"),(0,s.Z)(e,f.rj,"y"),e},content:function(n){return"x = df_1.columns\ny = df_1.to_numpy()"}}),(0,s.Z)(r,f.oV.TIME_SERIES_BAR_CHART,{configuration:function(n){return(0,s.Z)({},f.Yg,f.aE.ORIGINAL)}}),(0,s.Z)(r,f.oV.TIME_SERIES_LINE_CHART,{configuration:function(n){return(0,s.Z)({},f.Yg,f.aE.ORIGINAL)}}),r),p=(a={},(0,s.Z)(a,f.oV.BAR_CHART,(u={},(0,s.Z)(u,f.a3,(function(){return"must be a list of booleans, dates, integers, floats, or strings."})),(0,s.Z)(u,f.rj,(function(){return"must be a list of lists containing integers or floats."})),u)),(0,s.Z)(a,f.oV.HISTOGRAM,(0,s.Z)({},f.a3,(function(){return"must be a list of integers or floats."}))),(0,s.Z)(a,f.oV.LINE_CHART,(i={},(0,s.Z)(i,f.a3,(function(){return"must be a list of integers or floats."})),(0,s.Z)(i,f.rj,(function(){return"must be a list of lists containing integers or floats. Each list is a single line in the chart."})),i)),(0,s.Z)(a,f.oV.PIE_CHART,(0,s.Z)({},f.a3,(function(){return"must be a list of booleans, dates, integers, floats, or strings."}))),(0,s.Z)(a,f.oV.TABLE,(c={},(0,s.Z)(c,f.a3,(function(){return"must be a list of strings."})),(0,s.Z)(c,f.rj,(function(){return"must be a list of lists containing booleans, dates, integers, floats, or strings."})),c)),a),E=[{label:function(){return"% of missing values"},widgetTemplate:function(n){var e,t=n.block;return{name:"missing values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(e={},(0,s.Z)(e,f.a3,"columns_with_mising_values"),(0,s.Z)(e,f.rj,"percentage_of_missing_values"),(0,s.Z)(e,f.R8,f.JT.HORIZONTAL),(0,s.Z)(e,f.$1,f.MP.DESCENDING),(0,s.Z)(e,"chart_type",f.oV.BAR_CHART),e),content:"number_of_rows = len(df_1.index)\ncolumns_with_mising_values = []\npercentage_of_missing_values = []\nfor col in df_1.columns:\n missing = df_1[col].isna().sum()\n if missing > 0:\n columns_with_mising_values.append(col)\n percentage_of_missing_values.append(100 * missing / number_of_rows)\n"}}},{label:function(){return"Unique values"},widgetTemplate:function(n){var e,t=n.block;return{name:"unique values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(e={},(0,s.Z)(e,f.a3,"columns"),(0,s.Z)(e,f.rj,"number_of_unique_values"),(0,s.Z)(e,f.R8,f.JT.HORIZONTAL),(0,s.Z)(e,f.$1,f.MP.DESCENDING),(0,s.Z)(e,"chart_type",f.oV.BAR_CHART),e),content:"columns = df_1.columns\nnumber_of_unique_values = [df_1[col].nunique() for col in columns]\n"}}},{label:function(){return"Most frequent values"},widgetTemplate:function(n){var e,t=n.block;return{name:"most frequent values for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(e={},(0,s.Z)(e,f.JJ,3e3),(0,s.Z)(e,f.ED,"column_index"),(0,s.Z)(e,f.a3,"columns"),(0,s.Z)(e,f.rj,"rows"),(0,s.Z)(e,"chart_type",f.oV.TABLE),e),content:"columns = ['mode value', 'frequency', '% of values']\n\ncolumn_index = []\nrows = []\nfor col in df_1.columns:\n value_counts = df_1[col].value_counts()\n if len(value_counts.index) == 0:\n continue\n column_value = value_counts.index[0]\n value = value_counts[column_value]\n number_of_rows = df_1[col].count()\n column_index.append(col)\n rows.append([\n column_value,\n f'{round(100 * value / number_of_rows, 2)}%',\n value,\n ])\n"}}},{label:function(){return"Summary overview"},widgetTemplate:function(n){var e,t=n.block;return{name:"summary overview for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(e={},(0,s.Z)(e,f.JJ,3e3),(0,s.Z)(e,f.ED,"stats"),(0,s.Z)(e,f.a3,"headers"),(0,s.Z)(e,f.rj,"rows"),(0,s.Z)(e,"chart_type",f.oV.TABLE),e),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\n\n\nheaders = ['value']\nstats = ['Columns', 'Rows']\nrows = [[len(df_1.columns)], [len(df_1.index)]]\n\ncol_counts = {}\nfor col, col_type in infer_column_types(df_1).items():\n col_type_name = col_type.value\n if not col_counts.get(col_type_name):\n col_counts[col_type_name] = 0\n col_counts[col_type_name] += 1\n\nfor col_type, count in sorted(col_counts.items()):\n stats.append(f'# of {col_type}')\n rows.append([count])\n"}}},{label:function(){return"Feature profiles"},widgetTemplate:function(n){var e,t=n.block;return{name:"feature profiles for ".concat(null===t||void 0===t?void 0:t.uuid),configuration:(e={},(0,s.Z)(e,f.JJ,3e3),(0,s.Z)(e,f.ED,"stats"),(0,s.Z)(e,f.a3,"columns"),(0,s.Z)(e,f.rj,"rows"),(0,s.Z)(e,"chart_type",f.oV.TABLE),e),content:"from mage_ai.data_cleaner.column_types.column_type_detector import infer_column_types\nimport statistics\n\n\ncolumns_and_types = infer_column_types(df_1).items()\ncolumns = [t[0] for t in columns_and_types]\nstats = ['Type', 'Missing values', 'Unique values', 'Min', 'Max', 'Mean', 'Median', 'Mode']\nrows = [[] for _ in stats]\n\nfor col, col_type in columns_and_types:\n series = df_1[col]\n min_value = None\n max_value = None\n mean = None\n median = None\n\n not_null = series[series.notnull()]\n\n if col_type.value in ['number', 'number_with_decimals']:\n count = len(not_null.index)\n if count >= 1:\n mean = round(not_null.sum() / count, 2)\n median = sorted(not_null)[int(count / 2)]\n min_value = round(series.min(), 2)\n max_value = round(series.max(), 2)\n else:\n min_value = not_null.astype(str).min()\n max_value = not_null.astype(str).max()\n\n _, mode = sorted(\n [(v, k) for k, v in not_null.value_counts().items()],\n reverse=True,\n )[0]\n\n for idx, value in enumerate([\n col_type.value,\n len(series[series.isna()].index),\n len(series.unique()),\n min_value,\n max_value,\n mean,\n median,\n mode,\n ]):\n rows[idx].append(value)\n"}}}]},8454:function(n,e,t){"use strict";var o,r,u,i;t.d(e,{Q0:function(){return o},qs:function(){return r}}),function(n){n.ADD="add",n.AVERAGE="average",n.CLEAN_COLUMN_NAME="clean_column_name",n.COUNT="count",n.COUNT_DISTINCT="count_distinct",n.CUSTOM="custom",n.DIFF="diff",n.DROP_DUPLICATE="drop_duplicate",n.EXPAND_COLUMN="expand_column",n.EXPLODE="explode",n.FILTER="filter",n.FIRST="first",n.FIX_SYNTAX_ERRORS="fix_syntax_errors",n.GROUP="group",n.IMPUTE="impute",n.JOIN="join",n.LAST="last",n.LIMIT="limit",n.MAX="max",n.MEDIAN="median",n.MIN="min",n.MODE="mode",n.NORMALIZE="normalize",n.REFORMAT="reformat",n.REMOVE="remove",n.REMOVE_OUTLIERS="remove_outliers",n.SCALE="scale",n.SELECT="select",n.SHIFT_DOWN="shift_down",n.SHIFT_UP="shift_up",n.SORT="sort",n.STANDARDIZE="standardize",n.SUM="sum",n.UNION="union",n.UPDATE_TYPE="update_type",n.UPDATE_VALUE="update_value"}(o||(o={})),function(n){n.COLUMN="column",n.ROW="row"}(r||(r={})),function(n){n.NOT_APPLIED="not_applied",n.COMPLETED="completed"}(u||(u={})),function(n){n.FEATURE="feature"}(i||(i={}))},44425:function(n,e,t){"use strict";t.d(e,{$W:function(){return N},DA:function(){return b},GJ:function(){return O},HX:function(){return S},J8:function(){return g},L8:function(){return a},LE:function(){return E},Lk:function(){return I},Lq:function(){return A},M5:function(){return R},Q3:function(){return v},Qj:function(){return h},Ut:function(){return L},V4:function(){return M},VZ:function(){return C},dO:function(){return p},f2:function(){return Z},iZ:function(){return D},qC:function(){return T},t6:function(){return l},tf:function(){return d}});var o,r,u,i,c,a,l,s=t(75582),f=t(82394);function _(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?_(Object(t),!0).forEach((function(e){(0,f.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}!function(n){n.CONDITION="condition",n.DBT_SNAPSHOT="snapshot",n.DYNAMIC="dynamic",n.DYNAMIC_CHILD="dynamic_child",n.REDUCE_OUTPUT="reduce_output",n.REPLICA="replica"}(a||(a={})),function(n){n.MARKDOWN="markdown",n.PYTHON="python",n.R="r",n.SQL="sql",n.YAML="yaml"}(l||(l={}));var d,p=(o={},(0,f.Z)(o,l.MARKDOWN,"MD"),(0,f.Z)(o,l.PYTHON,"PY"),(0,f.Z)(o,l.R,"R"),(0,f.Z)(o,l.SQL,"SQL"),(0,f.Z)(o,l.YAML,"YAML"),o),E=(r={},(0,f.Z)(r,l.MARKDOWN,"Markdown"),(0,f.Z)(r,l.PYTHON,"Python"),(0,f.Z)(r,l.R,"R"),(0,f.Z)(r,l.SQL,"SQL"),(0,f.Z)(r,l.YAML,"YAML"),r);!function(n){n.CALLBACK="callback",n.CHART="chart",n.CONDITIONAL="conditional",n.CUSTOM="custom",n.DATA_EXPORTER="data_exporter",n.DATA_LOADER="data_loader",n.DBT="dbt",n.EXTENSION="extension",n.GLOBAL_DATA_PRODUCT="global_data_product",n.SCRATCHPAD="scratchpad",n.SENSOR="sensor",n.MARKDOWN="markdown",n.TRANSFORMER="transformer"}(d||(d={}));var A,T=(u={},(0,f.Z)(u,d.CUSTOM,d.CUSTOM),(0,f.Z)(u,d.DBT,d.DBT),u),O=Object.entries(d).reduce((function(n,e){var t=(0,s.Z)(e,2),o=t[0],r=t[1];return m(m({},n),{},(0,f.Z)({},r,o))}),{}),R=[d.CALLBACK,d.CONDITIONAL,d.EXTENSION];!function(n){n.BLUE="blue",n.GREY="grey",n.PINK="pink",n.PURPLE="purple",n.TEAL="teal",n.YELLOW="yellow"}(A||(A={}));var b,y,N=[d.CHART,d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],v=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN,d.TRANSFORMER],C=[d.DATA_EXPORTER,d.DATA_LOADER],g=[d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],S=[d.DATA_EXPORTER,d.DATA_LOADER,d.DBT,d.TRANSFORMER],h=[d.CHART,d.SCRATCHPAD,d.SENSOR,d.MARKDOWN],D=[d.CALLBACK,d.CHART,d.EXTENSION,d.SCRATCHPAD,d.MARKDOWN],I=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.SENSOR,d.TRANSFORMER];!function(n){n.EXECUTED="executed",n.FAILED="failed",n.NOT_EXECUTED="not_executed",n.UPDATED="updated"}(b||(b={})),function(n){n.BLOCK_FILE="block_file",n.CUSTOM_BLOCK_TEMPLATE="custom_block_template",n.MAGE_TEMPLATE="mage_template"}(y||(y={}));var Z=[d.CUSTOM,d.DATA_EXPORTER,d.DATA_LOADER,d.TRANSFORMER],M=(i={},(0,f.Z)(i,d.CALLBACK,"Callback"),(0,f.Z)(i,d.CHART,"Chart"),(0,f.Z)(i,d.CONDITIONAL,"Conditional"),(0,f.Z)(i,d.CUSTOM,"Custom"),(0,f.Z)(i,d.DATA_EXPORTER,"Data exporter"),(0,f.Z)(i,d.DATA_LOADER,"Data loader"),(0,f.Z)(i,d.DBT,"DBT"),(0,f.Z)(i,d.EXTENSION,"Extension"),(0,f.Z)(i,d.GLOBAL_DATA_PRODUCT,"Global data product"),(0,f.Z)(i,d.MARKDOWN,"Markdown"),(0,f.Z)(i,d.SCRATCHPAD,"Scratchpad"),(0,f.Z)(i,d.SENSOR,"Sensor"),(0,f.Z)(i,d.TRANSFORMER,"Transformer"),i),L=[d.DATA_LOADER,d.TRANSFORMER,d.DATA_EXPORTER,d.SENSOR];c={},(0,f.Z)(c,d.DATA_EXPORTER,"DE"),(0,f.Z)(c,d.DATA_LOADER,"DL"),(0,f.Z)(c,d.SCRATCHPAD,"SP"),(0,f.Z)(c,d.SENSOR,"SR"),(0,f.Z)(c,d.MARKDOWN,"MD"),(0,f.Z)(c,d.TRANSFORMER,"TF")},35058:function(n,e,t){"use strict";t.d(e,{$1:function(){return E},BD:function(){return R},CK:function(){return P},ED:function(){return a},JJ:function(){return c},JT:function(){return L},MP:function(){return w},Mi:function(){return D},Mv:function(){return y},PG:function(){return s},Pi:function(){return I},R8:function(){return u},Sv:function(){return T},Tv:function(){return M},Yf:function(){return S},Yg:function(){return _},a3:function(){return d},aE:function(){return H},aZ:function(){return h},bE:function(){return f},bk:function(){return g},bn:function(){return j},c0:function(){return U},cH:function(){return A},e:function(){return l},eN:function(){return i},eW:function(){return N},m$:function(){return b},m7:function(){return r},mW:function(){return C},nq:function(){return v},oV:function(){return o},os:function(){return x},pA:function(){return Z},rj:function(){return p},sc:function(){return O},v8:function(){return m}});var o,r="buckets",u="chart_style",i="group_by",c="height",a="index",l="legend_labels",s="limit",f="metrics",_="time_interval",m="width_percentage",d="x",p="y",E="y_sort_order",A="data_provider",T="data_provider_database",O="data_provider_profile",R="data_provider_schema",b="data_provider_table",y="dbt_profile_target",N="dbt_project_name",v="export_write_policy",C="limit",g="unique_upstream_table_name",S="upstream_block_configuration",h="table_name",D="use_raw_sql",I="dbt",Z="command",M=[d,p];!function(n){n.BAR_CHART="bar chart",n.CUSTOM="custom",n.HISTOGRAM="histogram",n.LINE_CHART="line chart",n.PIE_CHART="pie chart",n.TABLE="table",n.TIME_SERIES_BAR_CHART="time series bar chart",n.TIME_SERIES_LINE_CHART="time series line chart"}(o||(o={}));var L,x,P=[o.BAR_CHART,o.HISTOGRAM,o.LINE_CHART,o.PIE_CHART,o.TABLE,o.TIME_SERIES_BAR_CHART,o.TIME_SERIES_LINE_CHART];!function(n){n.HORIZONTAL="horizontal",n.VERTICAL="vertical"}(L||(L={})),function(n){n.AVERAGE="average",n.COUNT="count",n.COUNT_DISTINCT="count_distinct",n.MAX="max",n.MEDIAN="median",n.MIN="min",n.MODE="mode",n.SUM="sum"}(x||(x={}));var w,H,j=[x.AVERAGE,x.COUNT,x.COUNT_DISTINCT,x.MAX,x.MEDIAN,x.MIN,x.MODE,x.SUM];function U(n){return"".concat(n.aggregation,"(").concat(n.column,")")}!function(n){n.ASCENDING="ascending",n.DESCENDING="descending"}(w||(w={})),function(n){n.DAY="day",n.HOUR="hour",n.MINUTE="minute",n.MONTH="month",n.ORIGINAL="original",n.SECOND="second",n.WEEK="week",n.YEAR="year"}(H||(H={}))},46732:function(n,e,t){"use strict";var o=t(82394),r=t(26304),u=(t(82684),t(50724)),i=t(70374),c=t(28598),a=["children","items","open","onClickCallback","onClickOutside","parentRef","uuid","zIndex"];function l(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?l(Object(t),!0).forEach((function(e){(0,o.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}e.Z=function(n){var e=n.children,t=n.items,o=n.open,l=n.onClickCallback,f=n.onClickOutside,_=n.parentRef,m=n.uuid,d=n.zIndex,p=(0,r.Z)(n,a),E=(0,c.jsxs)("div",{style:{position:"relative",zIndex:(f?3:2)+(d||0)},children:[(0,c.jsx)("div",{ref:_,children:e}),(0,c.jsx)(i.Z,s(s({},p),{},{items:t,onClickCallback:l,open:o,parentRef:_,uuid:m}))]});return f?(0,c.jsx)(u.Z,{onClickOutside:f,open:!0,children:E}):E}},85854:function(n,e,t){"use strict";var o,r,u,i,c,a,l,s,f=t(82394),_=t(26304),m=t(26653),d=t(38626),p=t(33591),E=t(44897),A=t(95363),T=t(61896),O=t(30160),R=t(70515),b=t(38276),y=t(28598),N=["children","condensed","inline","level","marketing","spacingBelow"];function v(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function C(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?v(Object(t),!0).forEach((function(e){(0,f.Z)(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):v(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}var g=(0,d.css)([""," margin:0;"," "," "," "," "," "," "," "," "," "," "," "," "," ",""],O.IH,(function(n){return n.color&&"\n color: ".concat(n.color,"\n ")}),(function(n){return n.yellow&&"\n color: ".concat((n.theme.accent||E.Z.accent).yellow,";\n ")}),(function(n){return n.center&&"\n text-align: center;\n "}),(function(n){return!n.monospace&&0===Number(n.weightStyle)&&"\n font-family: ".concat(A.iI,";\n ")}),(function(n){return!n.monospace&&1===Number(n.weightStyle)&&"\n font-family: ".concat(A.LX,";\n ")}),(function(n){return!n.monospace&&2===Number(n.weightStyle)&&"\n font-family: ".concat(A.LX,";\n ")}),(function(n){return!n.monospace&&3===Number(n.weightStyle)&&"\n font-family: ".concat(A.ry,";\n ")}),(function(n){return!n.monospace&&4===Number(n.weightStyle)&&"\n font-family: ".concat(A.YC,";\n ")}),(function(n){return!n.monospace&&5===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&(6===Number(n.weightStyle)||n.bold)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&7===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return!n.monospace&&8===Number(n.weightStyle)&&"\n font-family: ".concat(A.nF,";\n ")}),(function(n){return n.lineHeightAuto&&"\n line-height: normal !important;\n "}),(function(n){return n.strikethrough&&"\n text-decoration: line-through;\n "})),S=d.default.div.withConfig({displayName:"Headline__HeadlineContainerStyle",componentId:"sc-12jzt2e-0"})(["",""],(function(n){return"\n color: ".concat((n.theme.content||E.Z.content).active,";\n ")})),h=d.default.h1.withConfig({displayName:"Headline__H1HeroStyle",componentId:"sc-12jzt2e-1"})([""," font-size:42px;line-height:56px;"," "," ",""],g,p.media.md(o||(o=(0,m.Z)(["\n ","\n "])),T.aQ),p.media.lg(r||(r=(0,m.Z)(["\n ","\n "])),T.aQ),p.media.xl(u||(u=(0,m.Z)(["\n ","\n "])),T.aQ)),D=d.default.h1.withConfig({displayName:"Headline__H1Style",componentId:"sc-12jzt2e-2"})([""," ",""],g,T.MJ),I=d.default.h1.withConfig({displayName:"Headline__H1MarketingStyle",componentId:"sc-12jzt2e-3"})([""," "," "," "," "," ",""],g,p.media.xs(i||(i=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*R.iI,7*R.iI),p.media.sm(c||(c=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*R.iI,7*R.iI),p.media.md(a||(a=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*R.iI,7*R.iI),p.media.lg(l||(l=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*R.iI,7*R.iI),p.media.xl(s||(s=(0,m.Z)(["\n font-size: ","px;\n line-height: ","px;\n "])),6*R.iI,7*R.iI)),Z=d.default.h2.withConfig({displayName:"Headline__H2Style",componentId:"sc-12jzt2e-4"})([""," ",""],g,T.BL),M=d.default.h3.withConfig({displayName:"Headline__H3Style",componentId:"sc-12jzt2e-5"})([""," font-size:24px;line-height:32px;"],g),L=d.default.h4.withConfig({displayName:"Headline__H4Style",componentId:"sc-12jzt2e-6"})([""," font-size:20px;line-height:28px;"],g),x=d.default.h5.withConfig({displayName:"Headline__H5Style",componentId:"sc-12jzt2e-7"})([""," font-size:18px;line-height:26px;"],g),P=d.default.span.withConfig({displayName:"Headline__SpanStyle",componentId:"sc-12jzt2e-8"})([""," "," "," "," ",""],g,(function(n){return 1===n.level&&"\n ".concat(T.MJ,"\n ")}),(function(n){return 2===n.level&&"\n ".concat(T.BL,"\n ")}),(function(n){return 3===n.level&&"\n font-size: 24px;\n line-height: 32px;\n "}),(function(n){return 4===n.level&&"\n font-size: 20px;\n line-height: 28px;\n "})),w=function(n){var e,t=n.children,o=n.condensed,r=n.inline,u=n.level,i=n.marketing,c=n.spacingBelow,a=(0,_.Z)(n,N);r?e=P:0===Number(u)?e=h:1===Number(u)?e=i?I:D:2===Number(u)?e=Z:3===Number(u)?e=M:4===Number(u)?e=L:5===Number(u)&&(e=x);var l=(0,y.jsxs)(e,C(C({},a),{},{level:u,children:[c&&(0,y.jsx)(b.Z,{mb:o?2:3,children:t}),!c&&t]}));return r?l:(0,y.jsx)(S,{children:l})};w.defaultProps={level:3,weightStyle:6},e.Z=w},6943:function(n,e,t){"use strict";t.r(e);var o=t(77837),r=t(38860),u=t.n(r),i=t(39440),c=t(93808),a=t(28598);function l(){return(0,a.jsx)(i.Z,{uuid:"dashboard"})}l.getInitialProps=(0,o.Z)(u().mark((function n(){return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{});case 1:case"end":return n.stop()}}),n)}))),e.default=(0,c.Z)(l)},91162:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/block-layout",function(){return t(6943)}])},80022:function(n,e,t){"use strict";function o(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}t.d(e,{Z:function(){return o}})},15544:function(n,e,t){"use strict";function o(n){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},o(n)}t.d(e,{Z:function(){return o}})},13692:function(n,e,t){"use strict";t.d(e,{Z:function(){return r}});var o=t(61049);function r(n,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&(0,o.Z)(n,e)}},93189:function(n,e,t){"use strict";t.d(e,{Z:function(){return u}});var o=t(12539),r=t(80022);function u(n,e){if(e&&("object"===o(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(n)}},61049:function(n,e,t){"use strict";function o(n,e){return o=Object.setPrototypeOf||function(n,e){return n.__proto__=e,n},o(n,e)}t.d(e,{Z:function(){return o}})}},function(n){n.O(0,[2678,3662,1154,6639,1751,341,5896,2714,2631,4783,874,8264,5810,3859,976,9440,9774,2888,179],(function(){return e=91162,n(n.s=e);var e}));var e=n.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4913],{78688:function(e,n,t){"use strict";var r=t(82394),i=t(82684),o=t(15338),l=t(77456),c=t(97618),s=t(55485),u=t(85854),a=t(65956),d=t(38276),p=t(30160),f=t(72473),m=t(70515),v=t(74778),h=t(74260),j=t(81728),x=t(28598);function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Z(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.contained,t=void 0===n||n,r=e.onClickStep,g=e.setupSteps,b=e.small,P=(0,i.useCallback)((function(e,n,i,g){var y=e.name,O=e.description,_=e.group,k=e.error,S=e.required,I=e.status_calculated,C=e.steps,E=e.tab,w=e.uuid,T=(null===C||void 0===C?void 0:C.length)||0,A=g||{completedGroup:!1,level:0,numberEl:null},D=A.completedGroup,R=A.level,M=A.numberEl,N=0===R?2*m.iI:1.5*m.iI;if(_){var B=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{p:m.cd,children:(0,x.jsx)(s.ZP,{children:(0,x.jsxs)(c.Z,{flex:1,flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,x.jsx)(u.Z,{level:b?5:4,children:y}),(0,x.jsx)(d.Z,{mr:m.cd}),h.br.COMPLETED===I&&(0,x.jsx)(f.Jr,{size:N,success:!0})]}),O&&(0,x.jsx)(d.Z,{mt:1,children:(0,x.jsx)(p.ZP,{default:!0,small:b,children:O})})]})})}),(0,x.jsx)(o.Z,{light:!0}),null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:h.br.COMPLETED===I,level:0})}))]});return(0,x.jsxs)(d.Z,{mb:b?0:m.cd,children:[t&&(0,x.jsx)(a.Z,{noPadding:!0,children:B}),!t&&B]},w)}var H=h.br.COMPLETED===I,z=0===R?String(n+1):(0,j.bH)()[n].toLowerCase();var F=!!E&&r,L=(0,x.jsx)(d.Z,{pl:0===R?m.cd:0,children:(0,x.jsxs)(p.ZP,{large:!b,monospace:!0,muted:!0,children:[z,"."]})}),G={muted:H||D,strikethrough:H||D};return(0,x.jsx)(v.aw,{clickable:!!F,onClick:F?function(){return null===r||void 0===r?void 0:r(E)}:null,children:(0,x.jsxs)(d.Z,{py:0!==R||b?1:m.cd,children:[(0,x.jsxs)(s.ZP,{children:[M&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)("div",{style:{opacity:0},children:M}),(0,x.jsx)(d.Z,{mr:1})]}),L,(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,x.jsxs)(s.ZP,{flexDirection:"column",children:[(0,x.jsxs)(s.ZP,{alignItems:"center",children:[(0,x.jsxs)(c.Z,{flex:1,children:[0===R&&!b&&(0,x.jsx)(u.Z,Z(Z({level:5},G),{},{children:y})),0===R&&b&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!0},G),{},{children:y})),R>=1&&(0,x.jsx)(p.ZP,Z(Z({bold:!0,large:!b},G),{},{children:y})),!S&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(d.Z,{mr:1}),(0,x.jsx)(p.ZP,{muted:!0,uppercase:!0,xsmall:!0,children:"optional"})]})]}),(0,x.jsx)(d.Z,{mr:m.cd}),H&&(0,x.jsx)(f.Jr,{size:N,success:!0}),h.br.INCOMPLETE===I&&(0,x.jsx)(f.uy,{muted:!0,size:N}),h.br.ERROR===I&&(0,x.jsx)(f.uy,{danger:!0,size:N}),(0,x.jsx)(d.Z,{pr:m.cd*(I?1:2)})]}),O&&(0,x.jsx)(d.Z,{mt:1,pr:3*m.cd,children:(0,x.jsx)(p.ZP,Z(Z({default:!0},G),{},{small:b,children:O}))}),k&&(0,x.jsx)(l.Z,{error:k,small:!0,warning:!0})]})})]}),T>=1&&(0,x.jsx)(d.Z,{mt:1,children:null===C||void 0===C?void 0:C.map((function(e,n){return P(e,n,T,{completedGroup:D,level:1,numberEl:L})}))})]})},w)}),[t,r,b]),y=[],O=(null===g||void 0===g?void 0:g.length)||0;return null===g||void 0===g||g.forEach((function(e,n){e.status;y.push(P(e,n,O))})),t?(0,x.jsx)(d.Z,{p:m.cd,children:y}):(0,x.jsx)(x.Fragment,{children:y})}},89308:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(82684),l=t(69864),c=t(71180),s=t(26032),u=t(74260),a=t(15338),d=t(97618),p=t(55485),f=t(85854),m=t(65956),v=t(78688),h=t(38276),j=t(30160),x=t(35686),g=t(70515),Z=t(72473),b=t(81728),P=t(10332),y=t(72619),O=t(23780),_=t(28598);function k(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?k(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.actionsOnly,t=e.computeService,r=e.computeConnections,k=e.contained,I=void 0===k||k,C=e.fetchAll,E=e.hideDetails,w=e.onClickStep,T=e.small,A=(0,O.VI)(null,{},[],{uuid:"ConnectionSettings"}),D=(0,i.Z)(A,1)[0],R=(0,o.useState)(null),M=R[0],N=R[1],B=(0,o.useState)(null),H=B[0],z=B[1],F=(0,l.Db)((function(e){var n=e.action,r=e.uuid;return x.ZP.compute_connections.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,r)({compute_connection:{action:n}})}),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(e){var n=e.compute_connection;null===C||void 0===C||C(),z(S(S({},M),{},{computeConnection:n}))},onErrorCallback:function(e,n){return D({errors:n,response:e})}})}}),L=(0,i.Z)(F,2),G=L[0],W=L[1].isLoading;return(0,o.useEffect)((function(){if(H){var e,n=null===r||void 0===r?void 0:r.find((function(e){var n,t=e.uuid;return(null===H||void 0===H||null===(n=H.computeConnection)||void 0===n?void 0:n.uuid)===t}));(null===n||void 0===n?void 0:n.state)!==(null===H||void 0===H||null===(e=H.computeConnection)||void 0===e?void 0:e.state)&&z(null)}}),[r,H,z]),(0,_.jsx)(h.Z,{py:I?g.cd:0,children:null===r||void 0===r?void 0:r.map((function(e,t){var r,o,l,x,y=e.actions,O=e.attributes,k=e.connection,S=e.description,C=e.name,A=e.required,D=e.status_calculated,R=e.steps,B=e.uuid;!E&&!n&&O&&(null===(r=Object.keys(O||{}))||void 0===r?void 0:r.length)>=1&&(l=(0,P.s)(Object.entries(O||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]})))),!E&&!n&&k&&(null===(o=Object.keys(k||{}))||void 0===o?void 0:o.length)>=1&&(x=(0,P.s)(Object.entries(k||{}).map((function(e){var n=(0,i.Z)(e,2),t=n[0],r=n[1];return[(0,b.vg)(t),r]}))));var F=(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsxs)(p.ZP,{alignItems:"center",children:[(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(f.Z,{level:T?5:4,children:C})}),(0,_.jsx)(h.Z,{mr:g.cd}),(0,_.jsx)(Z.Fs,{danger:u.br.ERROR===D,muted:A&&u.br.INCOMPLETE===D,size:2*g.iI,success:!A||u.br.COMPLETED===D})]}),S&&(0,_.jsx)(h.Z,{mt:1,children:(0,_.jsx)(j.ZP,{default:!0,small:T,children:S})})]})})}),(null===R||void 0===R?void 0:R.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(a.Z,{light:!0}),(0,_.jsx)(v.Z,{contained:!1,onClickStep:w,setupSteps:R,small:T})]})]}),(l||x)&&(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsxs)(p.ZP,{children:[l&&(0,_.jsx)(m.Z,{noPadding:!0,children:(0,_.jsxs)(p.ZP,{flexDirection:"column",children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(j.ZP,{bold:!0,large:!0,children:"Attributes"})}),(0,_.jsx)(a.Z,{light:!0}),l,(0,_.jsx)(h.Z,{mb:g.cd})]})}),l&&x&&(0,_.jsx)(h.Z,{pr:g.cd}),x&&(0,_.jsx)(m.Z,{noPadding:!0,children:(0,_.jsxs)(p.ZP,{flexDirection:"column",children:[(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(j.ZP,{bold:!0,large:!0,children:"Connection"})}),(0,_.jsx)(a.Z,{light:!0}),x,(0,_.jsx)(h.Z,{mb:g.cd})]})})]})}),(null===y||void 0===y?void 0:y.length)>=1&&(0,_.jsxs)(_.Fragment,{children:[!n&&(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{children:(0,_.jsx)(d.Z,{flex:1,flexDirection:"column",children:(0,_.jsx)(p.ZP,{alignItems:"center",children:(0,_.jsx)(d.Z,{flex:1,children:(0,_.jsx)(f.Z,{level:T?5:4,children:"Actions"})})})})})}),null===y||void 0===y?void 0:y.map((function(e,t){var r,i=e.description,o=e.name,l=e.uuid,u=W&&(null===M||void 0===M?void 0:M.uuid)===B&&(null===M||void 0===M?void 0:M.actionUUID)===l||s.i.PENDING===(null===H||void 0===H||null===(r=H.computeConnection)||void 0===r?void 0:r.state);return(0,_.jsxs)("div",{children:[(!n||t>=1)&&(0,_.jsx)(a.Z,{light:!0}),(0,_.jsx)(h.Z,{p:g.cd,children:(0,_.jsx)(p.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,_.jsxs)(d.Z,{flex:1,flexDirection:"column",children:[(0,_.jsx)(j.ZP,{default:!0,large:!T,children:i}),(0,_.jsx)(h.Z,{mt:g.cd,children:(0,_.jsx)(c.ZP,{compact:T,danger:[s._.DELETE].includes(l),loading:u,onClick:function(){N({actionUUID:l,uuid:B}),z(null),G({action:l,uuid:B})},primary:[s._.CREATE,s._.UPDATE].includes(l),secondary:[s._.DESELECT].includes(l),small:T,children:o})})]})})})]},l)}))]})]});return(0,_.jsxs)(h.Z,{mt:t>=1?g.cd:0,px:I?g.cd:0,children:[I&&(0,_.jsx)(m.Z,{noPadding:!0,children:F}),!I&&F]},B)}))})}},77456:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(43695),l=t(30160),c=t(28598);function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function u(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(e){var n=e.danger,t=e.error,r=e.large,s=e.small,a=e.warning,d=t.message,p=t.variables,f=d;return p&&Object.entries(p||{}).forEach((function(e){var t=(0,i.Z)(e,2),d=t[0],p=t[1];f=f.replace("{{".concat(d,"}}"),(0,o.Dq)((0,c.jsx)(l.ZP,u(u({danger:n,inline:!0,large:r,muted:!n&&!a,small:s,warning:a},p||{}),{},{children:d}))))})),(0,c.jsx)(l.ZP,{danger:n,dangerouslySetInnerHTML:{__html:f},muted:!n&&!a,large:r,small:s,warning:a})}},74778:function(e,n,t){"use strict";t.d(n,{UE:function(){return s},aw:function(){return u},bC:function(){return a}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),c=t(91437),s=r.default.div.withConfig({displayName:"indexstyle__CardStyle",componentId:"sc-1b5e7g-0"})([""," border-radius:","px;padding:","px;"," ",""],(0,c.eR)(),o.D7,2.5*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border: 1px solid ").concat((e.theme.borders||i.Z.borders).darkLight,";\n box-shadow: ").concat((e.theme.shadow||i.Z.shadow).frame,";\n ")}),(function(e){return!e.inline&&"\n height: ".concat(28*l.iI,"px;\n width: ").concat(40*l.iI,"px;\n margin: ").concat(l.cd/2*l.iI,"px;\n ")})),u=r.default.div.withConfig({displayName:"indexstyle__SetupStepRowStyle",componentId:"sc-1b5e7g-1"})([""," ",""],(0,c.eR)(),(function(e){return e.clickable&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).hoverOverlay,";\n cursor: pointer;\n }\n ")})),a=r.default.div.withConfig({displayName:"indexstyle__NavigationStyle",componentId:"sc-1b5e7g-2"})([""," height:","px;padding-left:","px;padding-right:","px;"," ",""],(0,c.eR)(),7*l.iI,l.cd*l.iI,l.cd*l.iI,(function(e){return!e.selected&&"\n &:hover {\n background-color: ".concat((e.theme.interactive||i.Z.interactive).rowHoverBackground,";\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}))},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),l=t(50724),c=t(82555),s=t(97618),u=t(70613),a=t(31557),d=t(68899),p=t(28598);function f(e,n){var t=e.children,r=e.noPadding;return(0,p.jsx)(d.HS,{noPadding:r,ref:n,children:t})}var m=o.forwardRef(f),v=t(62547),h=t(82571),j=t(98464),x=t(77417),g=t(46684),Z=t(70515),b=t(53808),P=t(19183);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function _(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,f=e.afterHidden,y=e.afterWidth,_=e.afterWidthOverride,k=e.appendBreadcrumbs,S=e.before,I=e.beforeWidth,C=e.breadcrumbs,E=e.children,w=e.contained,T=e.errors,A=e.headerMenuItems,D=e.headerOffset,R=e.hideAfterCompletely,M=e.mainContainerHeader,N=e.navigationItems,B=e.setAfterHidden,H=e.setErrors,z=e.subheaderChildren,F=e.subheaderNoPadding,L=e.title,G=e.uuid,W=(0,P.i)().width,U="dashboard_after_width_".concat(G),V="dashboard_before_width_".concat(G),Y=(0,o.useRef)(null),X=(0,o.useState)(_?y:(0,b.U2)(U,y)),q=X[0],J=X[1],K=(0,o.useState)(!1),Q=K[0],$=K[1],ee=(0,o.useState)(S?Math.max((0,b.U2)(V,I),13*Z.iI):null),ne=ee[0],te=ee[1],re=(0,o.useState)(!1),ie=re[0],oe=re[1],le=(0,o.useState)(null)[1],ce=(0,x.Z)().project,se=[];C&&se.push.apply(se,(0,i.Z)(C)),null!==C&&void 0!==C&&C.length&&!k||!ce||null!==C&&void 0!==C&&C.length||se.unshift({bold:!k,label:function(){return L}}),(0,o.useEffect)((function(){null===Y||void 0===Y||!Y.current||Q||ie||null===le||void 0===le||le(Y.current.getBoundingClientRect().width)}),[Q,q,ie,ne,Y,le,W]),(0,o.useEffect)((function(){Q||(0,b.t8)(U,q)}),[f,Q,q,U]),(0,o.useEffect)((function(){ie||(0,b.t8)(V,ne)}),[ie,ne,V]);var ue=(0,j.Z)(y);return(0,o.useEffect)((function(){_&&ue!==y&&J(y)}),[_,y,ue]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(u.Z,{title:L}),(0,p.jsx)(a.Z,{breadcrumbs:se,menuItems:A}),(0,p.jsxs)(d.Nk,{ref:n,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,p.jsx)(d.lm,{showMore:!0,children:(0,p.jsx)(h.Z,{navigationItems:N,showMore:!0})}),(0,p.jsx)(s.Z,{flex:1,flexDirection:"column",children:(0,p.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:g.Mz,afterHidden:f,afterMousedownActive:Q,afterWidth:q,before:S,beforeHeightOffset:g.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(S?ne:0),contained:w,headerOffset:D,hideAfterCompletely:!B||R,leftOffset:S?d.k1:null,mainContainerHeader:M,mainContainerRef:Y,setAfterHidden:B,setAfterMousedownActive:$,setAfterWidth:J,setBeforeMousedownActive:oe,setBeforeWidth:te,children:[z&&(0,p.jsx)(m,{noPadding:F,children:z}),E]})})]}),T&&(0,p.jsx)(l.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===H||void 0===H?void 0:H(null)},children:(0,p.jsx)(c.Z,O(O({},T),{},{onClose:function(){return null===H||void 0===H?void 0:H(null)}}))})]})}var k=o.forwardRef(_)},8193:function(e,n,t){"use strict";t.d(n,{N:function(){return s},Z:function(){return c}});var r=t(38626),i=t(44897),o=t(42631),l=t(70515),c=2*l.iI,s=r.default.div.withConfig({displayName:"indexstyle__ContainerStyle",componentId:"sc-1ck7mzt-0"})(["border-radius:","px;padding:","px;",""],o.n_,l.cd*l.iI,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).codeArea,";\n ")}))},28071:function(e,n,t){"use strict";var r;t.d(n,{X:function(){return r}}),function(e){e.BOOTSTRAPPING="BOOTSTRAPPING",e.RUNNING="RUNNING",e.STARTING="STARTING",e.TERMINATED="TERMINATED",e.TERMINATED_WITH_ERRORS="TERMINATED_WITH_ERRORS",e.TERMINATING="TERMINATING",e.WAITING="WAITING"}(r||(r={}))},26032:function(e,n,t){"use strict";var r,i;t.d(n,{_:function(){return r},i:function(){return i}}),function(e){e.CREATE="CREATE",e.DELETE="DELETE",e.DESELECT="DESELECT",e.UPDATE="UPDATE"}(r||(r={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE",e.PENDING="PENDING"}(i||(i={}))},72098:function(e,n,t){"use strict";var r;t.d(n,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,n,t){"use strict";t.d(n,{$1:function(){return v},G7:function(){return x},LM:function(){return g},Mj:function(){return Z},QK:function(){return m},RH:function(){return j},a_:function(){return P},fj:function(){return y},kA:function(){return b},qL:function(){return c},r0:function(){return h}});var r,i,o,l,c,s=t(75582),u=t(82394),a=t(72473),d=t(72098);function p(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 f(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?p(Object(t),!0).forEach((function(n){(0,u.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var m,v,h,j=(r={},(0,u.Z)(r,c.INTEGRATION,"Integration"),(0,u.Z)(r,c.PYTHON,"Python"),(0,u.Z)(r,c.PYSPARK,"PySpark"),(0,u.Z)(r,c.STREAMING,"Streaming"),r),x=(i={},(0,u.Z)(i,c.INTEGRATION,"Integration"),(0,u.Z)(i,c.PYTHON,"Standard"),(0,u.Z)(i,c.PYSPARK,"PySpark"),(0,u.Z)(i,c.STREAMING,"Streaming"),i),g="all",Z=(c.PYTHON,c.INTEGRATION,c.STREAMING,o={},(0,u.Z)(o,g,a.ie),(0,u.Z)(o,c.INTEGRATION,a.YC),(0,u.Z)(o,c.PYTHON,a.El),(0,u.Z)(o,c.STREAMING,a.dB),o);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(m||(m={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(v||(v={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(h||(h={}));var b=[m.ACTIVE,m.INACTIVE,m.NO_SCHEDULES],P=(l={},(0,u.Z)(l,c.PYTHON,d.U.PYTHON3),(0,u.Z)(l,c.PYSPARK,d.U.PYSPARK),l),y=Object.entries(P).reduce((function(e,n){var t=(0,s.Z)(n,2),r=t[0],i=t[1];return f(f({},e),{},(0,u.Z)({},i,r))}),{})},35185:function(e,n,t){"use strict";var r=t(82394),i=t(91835),o=(t(82684),t(38626)),l=t(44897),c=t(42631),s=t(70515),u=t(28598);function a(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var p=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarContainerStyle",componentId:"sc-10x9ojc-0"})(["border-radius:","px;height:","px;overflow:hidden;position:relative;width:100%;",""],c.BG,.75*s.iI,(function(e){return"\n background-color: ".concat((e.theme.monotone||l.Z.monotone).grey200,";\n ")})),f=o.default.div.withConfig({displayName:"ProgressBar__ProgressBarStyle",componentId:"sc-10x9ojc-1"})(["height:inherit;position:absolute;"," "," "," ",""],(function(e){return!e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).positive,";\n ")}),(function(e){return e.progress&&"\n width: ".concat(e.progress,"%;\n ")}),(function(e){return e.danger&&"\n background-color: ".concat((e.theme.progress||l.Z.progress).negative,";\n ")}),(function(e){return e.animateProgress&&"\n animation: animate-progress ".concat(e.animateProgress.duration,"ms linear forwards;\n\n @keyframes animate-progress {\n 0% {\n width: ").concat(e.animateProgress.start,"%;\n }\n\n 100% {\n width: ").concat(e.animateProgress.end,"%;\n }\n }\n ")}));n.Z=function(e){var n=(0,i.Z)({},e);return(0,u.jsx)(p,d(d({},n),{},{children:(0,u.jsx)(f,d({},n))}))}},4910:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return Xe}});var r=t(77837),i=t(38860),o=t.n(i),l=t(82684),c=t(82394),s=t(75582),u=t(69864),a=t(71180),d=t(92083),p=t.n(d),f=t(21764),m=t(28071),v=t(15338),h=t(55485),j=t(85854),x=t(97618),g=t(38276),Z=t(30160),b=t(70515),P=t(28598);function y(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function O(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?y(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):y(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var _=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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:n})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(Z.ZP,O(O({default:!0,large:!0},t),{},{children:r}))})]})})]},n)}))})},k=t(65956),S=t(4190),I=t(75499),C=t(69650),E=t(35686),w=t(72473),T=t(3917),A=t(38626),D=t(44897),R=A.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||D.Z.background).codeArea,";\n ")})),M=t(81728);function N(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,M.vg)(e)}}));return(0,P.jsx)(I.Z,{columnFlex:null===r||void 0===r?void 0:r.map((function(e,n){return 0===n?null:1})),columns:r,rows:null===e||void 0===e?void 0:e.map((function(e){return Object.entries(e||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r},t)]}))}))})}var B=t(72619),H=t(95924),z=t(42122),F=t(70320),L=t(23780);function G(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function W(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?G(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var U=2*b.iI,V={default:!0,monospace:!0};var Y=function(e){var n=e.clusters,t=e.computeService,r=e.fetchAll,i=e.includeAllStates,o=e.loading,c=e.setIncludeAllStates,d=(0,l.useMemo)((function(){return"".concat(null===t||void 0===t?void 0:t.uuid,"/clusters")}),[t]),x=(0,F.qB)(),y=(0,l.useState)(null),O=y[0],A=y[1],D=(0,L.VI)(null,{},[],{uuid:d}),G=(0,s.Z)(D,1)[0],Y=(0,u.Db)(E.ZP.compute_clusters.compute_services.useCreate(null===t||void 0===t?void 0:t.uuid),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r().then((function(){return A(0)}))},onErrorCallback:function(e,n){return G({errors:n,response:e})}})}}),X=(0,s.Z)(Y,2),q=X[0],J=X[1].isLoading,K=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useDelete(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)()}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r().then((function(){return A(null)}))},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),Q=(0,s.Z)(K,2),$=Q[0],ee=Q[1].isLoading,ne=(0,u.Db)((function(e){return E.ZP.compute_clusters.compute_services.useUpdate(null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id)({compute_cluster:(0,z.GL)(e,["active"])})}),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(){r()},onErrorCallback:function(e){var n=e.error,t=n.errors,r=n.exception,i=n.message,o=n.type;f.Am.error((null===t||void 0===t?void 0:t.error)||r||i,{position:f.Am.POSITION.BOTTOM_RIGHT,toastId:o})}})}}),te=(0,s.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)(w.NO,{size:U}),compact:oe>=1,loading:J,onClick:function(){return q()},primary:!0,small:oe>=1,children:"Launch new cluster"})}),[oe,q,J]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(R,{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsx)(j.Z,{level:4,children:(0,M._6)("cluster",oe,!0)}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(C.Z,{checked:i,compact:!0,onCheck:function(e){return c(e(i))}}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(Z.ZP,{default:i,muted:!i,small:!0,children:"Include terminated clusters"})]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),oe>=1&&le]})}),(0,P.jsx)(v.Z,{light:!0})]}),(0,P.jsx)(I.Z,{apiForFetchingAfterAction:E.ZP.compute_clusters.compute_services.detail,buildApiOptionsFromObject:function(e){return[null===t||void 0===t?void 0:t.uuid,null===e||void 0===e?void 0:e.id,{},{refreshInterval:3e3,revalidateOnFocus:!0}]},columnFlex:[null,null,null,null,null],columns:[{uuid:"Cluster ID"},{uuid:"Cluster Name"},{uuid:"Status"},{uuid:"Created"},{center:!0,uuid:"Hours"},{label:function(){return""},rightAligned:!0,uuid:"Active"}],onClickRow:function(e,n){A((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)(S.Z,{inverted:!0})});var c=l.active,s=l.applications,u=l.ec2_instance_attributes,d=l.name,f=l.status,y=l.tags,O=null===f||void 0===f?void 0:f.state,I=[m.X.TERMINATED,m.X.TERMINATED_WITH_ERRORS,m.X.TERMINATING].includes(O),C=[m.X.RUNNING,m.X.WAITING].includes(O),E=null===f||void 0===f||null===(r=f.timeline)||void 0===r?void 0:r.creation_date_time;return(0,P.jsxs)(g.Z,{p:b.cd,children:[!I&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(k.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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{children:[C&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.Fs,{size:U,success:c}),loading:ie,notClickable:c,onClick:c?null:function(){return re(W(W({},l),{},{active:!0}))},primary:!c,children:c?"Activated":"Activate cluster for compute"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{loading:ee,onClick:function(){window.confirm("Are you sure you want to terminate this cluster?")&&$(l)},secondary:!0,children:"Terminate cluster"})]}),!C&&(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(S.Z,{inverted:!0,small:!0}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:(null===f||void 0===f||null===(i=f.state_change_reason)||void 0===i?void 0:i.message)||"Cluster is still launching."})]})]})})]}),(0,P.jsx)(g.Z,{mb:b.cd})]}),(0,P.jsxs)(k.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)(_,{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:E?(0,T.XG)(p()(E).format(T.BL),x):"-"},{key:"Status message",value:(null===f||void 0===f||null===(o=f.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,M.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)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:U})},{key:"Termination protected",value:null!==l&&void 0!==l&&l.termination_protected?(0,P.jsx)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{danger:!0,size:U})},{key:"Visible to all users",value:null!==l&&void 0!==l&&l.visible_to_all_users?(0,P.jsx)(w.Jr,{size:U,success:!0}):(0,P.jsx)(w.x8,{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)(k.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)(_,{rows:[{key:"Availability zone",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.ec2_availability_zone},{key:"Master security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_master_security_group},{key:"Slave security group",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.emr_managed_slave_security_group},{key:"IAM profile",textProps:{monospace:!0},value:null===u||void 0===u?void 0:u.iam_instance_profile}]})]}),(0,P.jsx)(g.Z,{mb:b.cd}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsxs)(k.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)(v.Z,{light:!0,short:!0}),N(s||[])]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(k.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)(v.Z,{light:!0,short:!0}),N(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,c=e.normalized_instance_hours,s=e.status,u=null===s||void 0===s||null===(n=s.timeline)||void 0===n?void 0:n.creation_date_time,d=null===s||void 0===s?void 0:s.state,f=null===s||void 0===s||null===(t=s.state_change_reason)||void 0===t?void 0:t.message,v=[m.X.BOOTSTRAPPING,m.X.STARTING].includes(d),j=[m.X.TERMINATING].includes(d);return[(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"id",success:r}),i),(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"name",monospace:!1,preWrap:!0}),o),(0,P.jsxs)("div",{children:[(0,P.jsx)(Z.ZP,W(W({},V),{},{danger:[m.X.TERMINATED_WITH_ERRORS].includes(d),default:[m.X.STARTING].includes(d),muted:[m.X.TERMINATED].includes(d),success:[m.X.RUNNING,m.X.WAITING].includes(d),warning:[m.X.TERMINATING].includes(d),children:null!==s&&void 0!==s&&s.state?(0,M.vg)(null===s||void 0===s?void 0:s.state):null===s||void 0===s?void 0:s.state})),f&&(0,P.jsx)(Z.ZP,{muted:!0,preWrap:!0,small:!0,children:f})]},"state"),(0,l.createElement)(Z.ZP,W(W({},V),{},{key:"created",preWrap:!0}),u?(0,T.XG)(p()(u).format(T.BL),x):"-"),(0,l.createElement)(Z.ZP,W(W({},V),{},{center:!0,key:"normalizedInstanceHours"}),c||0),(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:v||j?(0,P.jsx)(S.Z,{inverted:v,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,H.j)(n),re(W(W({},e),{},{active:!0}))},children:(0,P.jsx)(w.Fs,{muted:!r,size:U,success:r})})},"active")]})),selectedRowIndexInternal:O,uuid:d}),o&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(S.Z,{inverted:!0})}),!o&&!oe&&(0,P.jsx)(g.Z,{p:b.cd,children:le})]})},X=t(48670),q=t(90299),J=t(89308),K=t(74521),Q=t(93004),$=t(8970);function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te="Applications",re="Connections",ie="Jobs",oe="SQLs";var le=function(e){var n,t=e.applications,r=e.computeConnections,i=e.computeService,o=e.connectionsLoading,c=e.fetchAll,s=e.jobs,u=e.loadingApplications,a=e.loadingJobs,d=(e.objectAttributes,e.refButtonTabs),p=(e.selectedComputeService,e.setSelectedSql),f=e.setSelectedTab,m=(0,l.useContext)(A.ThemeContext),h=(0,l.useState)(),j=h[0],x=h[1],y=(0,l.useCallback)((function(e){p((function(){return null})),x(e)}),[p,x]),O=(0,F.qB)(),_=E.ZP.spark_stages.list({details:!0,_format:"with_details"}).data,k=(0,l.useMemo)((function(){return((null===_||void 0===_?void 0:_.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}),{})}),[_]),S=(0,l.useMemo)((function(){return(0,P.jsx)(J.Z,{computeService:i,computeConnections:r,fetchAll:c,onClickStep:function(e){return f((function(){return{main:e}}))}})}),[r,i,c,f]),C=(0,l.useMemo)((function(){return(0,P.jsx)(I.Z,{columnFlex:[null,null,null,null,null,null,null],columns:[{uuid:"ID"},{uuid:"URL"},{uuid:"Name"},{uuid:"Version"},{uuid:"Spark user"},{uuid:"Started at"},{rightAligned:!0,uuid:"Last updated"}],rows:null===t||void 0===t?void 0:t.map((function(e){var n=e.attempts,t=e.id,r=e.name,i=e.spark_ui_url,o=(null===n||void 0===n?void 0:n[0])||{},c=o.app_spark_version,s=o.last_updated_epoch,u=o.start_time_epoch,a=o.spark_user,d=u&&(0,T.JX)(u/1e3,{withSeconds:!0}),p=d&&(0,T.XG)(d,O);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"}),c),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"sparkUser"}),a),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"startTime"}),p||"-"),(0,l.createElement)(Z.ZP,ne(ne({},$.eB),{},{key:"lastUpdated",rightAligned:!0}),s?(0,T.XG)((0,T.JX)(s/1e3,{withSeconds:!0}),O):"-")]})),uuid:"applications"})}),[t,O]),w=(0,l.useMemo)((function(){var e={};return null===s||void 0===s||s.forEach((function(n){var t,r,i=null===n||void 0===n?void 0:n.application;(null===i||void 0===i?void 0:i.calculated_id)in e||(e[null===i||void 0===i?void 0:i.calculated_id]={application:i,jobs:[]}),null===(t=e[null===i||void 0===i?void 0:i.calculated_id])||void 0===t||null===(r=t.jobs)||void 0===r||r.push(n)})),Object.values(e).map((function(e){var n=e.application,t=e.jobs;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Z.ZP,{default:!0,bold:!0,children:["Application ",null===n||void 0===n?void 0:n.calculated_id]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(K.Z,{jobs:t,stagesMapping:k})]},null===n||void 0===n?void 0:n.calculated_id)}))}),[s,k]),D=(0,l.useMemo)((function(){return(0,P.jsx)(Q.Z,{setSelectedSql:p,stagesMapping:k})}),[p,k]),R=(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===s||void 0===s?void 0:s.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,c]);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)(q.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return y(n)},ref:d,regularSizeText:!0,selectedTabUUID:j,tabs:R,underlineColor:null===m||void 0===m||null===(n=m.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(v.Z,{light:!0}),re===j&&S,te===j&&C,ie===j&&w,oe===j&&D]})},ce=t(17488),se=t(8193);function ue(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ue(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ue(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var de=function(e){var n=e.addButtonText,t=e.addTextInputPlaceholder,r=e.alreadyExistsMessage,i=e.configurationValuePlaceholder,o=e.configurations,u=e.createButtonText,d=e.description,p=e.emptyState,f=e.setConfigurations,m=e.title,y=(0,l.useRef)(null),O=(0,l.useState)(!1),_=O[0],S=O[1],I=(0,l.useState)(null),C=I[0],E=I[1],T=(0,l.useMemo)((function(){var e;return(null===(e=Object.keys(o||{}))||void 0===e?void 0:e.length)>=1}),[o]),A=(0,l.useMemo)((function(){return C in(o||{})}),[o,C]),D=(0,l.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!_&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),S(!0),setTimeout((function(){var e;return null===y||void 0===y||null===(e=y.current)||void 0===e?void 0:e.focus()}),1)},secondary:!T,small:!0,children:n||"Add configuration"}),_&&(0,P.jsxs)(P.Fragment,{children:[A&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:r||"Already exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!A,error:""},monospace:!0,onClick:function(e){return(0,H.j)(e)},paddingVertical:b.iI/2-2,placeholder:t,onChange:function(e){(0,H.j)(e),E(e.target.value)},ref:y,small:!0,value:C||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:A,compact:!0,onClick:function(e){(0,H.j)(e),A||(f(ae(ae({},o),{},(0,c.Z)({},C,""))),S(!1),E(null))},primary:!0,small:!0,children:u||"Create configuration"}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(e){(0,H.j)(e),S(!1),E(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[n,A,o,T,_,C,y,S,E]),R=(0,l.useMemo)((function(){return Object.entries(o||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=ae({},o);null===e||void 0===e||delete e[t],f(e)},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(Z.ZP,{default:!0,large:!0,monospace:!0,children:t}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){return f(ae(ae({},o),{},(0,c.Z)({},t,e.target.value)))},paddingHorizontal:0,paddingVertical:0,placeholder:i,value:r||""})})]})})]},t)}))}),[o,f]);return(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:m}),d&&(0,P.jsx)(g.Z,{mt:1,children:d})]}),(0,P.jsx)(g.Z,{mr:b.cd}),T&&(0,P.jsx)(h.ZP,{alignItems:"center",children:D})]})}),!T&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[p&&(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:p})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:D})]})]}),T&&R]})},pe=t(74260);function fe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function me(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?fe(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var ve=function(e){var n,t=e.attributesTouched,r=e.isLoading,i=e.mutateObject,o=e.objectAttributes,c=e.onCancel,s=e.selectedComputeService,u=e.setObjectAttributes,d=(0,l.useCallback)((function(e){return u({emr_config:me(me({},null===o||void 0===o?void 0:o.emr_config),e)})}),[o,u]),p=(0,l.useCallback)((function(e){return u({spark_config:me(me({},null===o||void 0===o?void 0:o.spark_config),e)})}),[o,u]),f=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.emr_config)||{}}),[o]),m=(0,l.useMemo)((function(){return(null===o||void 0===o?void 0:o.spark_config)||{}}),[o]);return(0,P.jsxs)(se.N,{children:[(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===m||void 0===m?void 0:m.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)(X.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no executor Spark configurations.",setConfigurations:function(e){return p({others:e})},title:"Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),pe.GO.AWS_EMR===s&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,warning:!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path),children:"Spark observability"}),(!(null!==f&&void 0!==f&&f.ec2_key_name)||!(null!==f&&void 0!==f&&f.ec2_key_path))&&"ec2_key_name"in((null===t||void 0===t?void 0:t.emr_config)||{})&&"ec2_key_path"in((null===t||void 0===t?void 0:t.emr_config)||{})&&(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{warning:!0,children:["Without all the fields in this section present and valid, Mage won\u2019t automatically create the SSH tunnel.",(0,P.jsx)("br",{}),"You must manually create the SSH tunnel in order for Mage to retrieve and display the Spark jobs, statuses, metrics, and system information."]})})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["In order to see the Spark jobs, statuses, metrics, and system information, an SSH tunnel to the AWS EMR Master Node must be created.",(0,P.jsx)("br",{}),"Mage can automatically create the SSH tunnel for you if every field in this section is present and valid."]})}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key name"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["SSH tunnel into the EMR cluster using a key pair created from the ",(0,P.jsx)(X.Z,{href:"https://console.aws.amazon.com/ec2/home#KeyPairs",inline:!0,openNewWindow:!0,small:!0,children:"AWS guide"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_name)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"EC2 key path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The absolute file path to the EC2 public key that was used when creating a cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({ec2_key_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. ec2_key_pair_name",value:(null===f||void 0===f?void 0:f.ec2_key_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"EMR instance types"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["Refer to the ",(0,P.jsx)(X.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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.4xlarge",value:(null===f||void 0===f?void 0:f.master_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave instance type"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_instance_type:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. r5.2xlarge",value:(null===f||void 0===f?void 0:f.slave_instance_type)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(h.ZP,{flexDirection:"column",children:(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Number of slave instances"})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){var n=e.target.value||"";(""===n||/^\d+$/.exec(n))&&d({slave_instance_count:n})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. 2",value:(null===f||void 0===f?void 0:f.slave_instance_count)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.master_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the master instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(X.Z,{href:"https://spark.apache.org/docs/latest/configuration.html",inline:!0,openNewWindow:!0,children:"Spark configuration documentation"}),"."]})]}),emptyState:"There are currently no Spark configurations for the master instance.",setConfigurations:function(e){return d({master_spark_properties:e})},title:"Master Spark configurations"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add Spark configuration",addTextInputPlaceholder:"e.g. spark.driver.cores",alreadyExistsMessage:"Spark configuration exists",configurationValuePlaceholder:"e.g. 4g",configurations:null===f||void 0===f?void 0:f.slave_spark_properties,createButtonText:"Create Spark configuration",description:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Z.ZP,{muted:!0,children:["List of key-value pairs to be set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"SparkConf"})," for the slave instance."]}),(0,P.jsxs)(Z.ZP,{muted:!0,children:["For a list of all configurations, see the ",(0,P.jsx)(X.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)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"Security"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(Z.ZP,{muted:!0,children:"Configure security groups for EMR cluster instances."})})]})})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Master security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-master"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({master_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-xxxxxxxxxxxx",value:(null===f||void 0===f?void 0:f.master_security_group)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Slave security group"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The default managed security group is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"ElasticMapReduce-slave"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return d({slave_security_group:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. sg-yyyyyyyyyyyy",value:(null===f||void 0===f?void 0:f.slave_security_group)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!t||!(null!==(n=Object.keys(t))&&void 0!==n&&n.length),loading:r,onClick:function(){return i()},primary:!0,children:"Save changes"}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===c||void 0===c?void 0:c()},secondary:!0,children:"Cancel and go back"})]})]})]})},he=t(21831),je=t(77456),xe=t(86735);function ge(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ze(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ge(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var be=function(e){var n,t,r=e.attributesTouched,i=e.computeService,o=e.isLoading,c=e.mutateObject,s=e.objectAttributes,u=e.onCancel,d=e.selectedComputeService,p=e.setObjectAttributes,f=(0,l.useCallback)((function(e){return p({emr_config:Ze(Ze({},null===s||void 0===s?void 0:s.emr_config),e)})}),[s,p]),m=(0,l.useCallback)((function(e){return p({spark_config:Ze(Ze({},null===s||void 0===s?void 0:s.spark_config),e)})}),[s,p]),y=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.emr_config)||{}}),[s]),O=(0,l.useMemo)((function(){return(null===s||void 0===s?void 0:s.spark_config)||{}}),[s]),_=(0,l.useRef)(null),S=((0,l.useRef)(null),(0,l.useState)(!1)),I=S[0],E=S[1],T=(0,l.useState)(null),A=T[0],D=T[1],R=(0,l.useMemo)((function(){return(null===O||void 0===O?void 0:O.spark_jars)||[]}),[O]),M=(0,l.useMemo)((function(){return(null===R||void 0===R?void 0:R.length)>=1}),[R]),N=(0,l.useMemo)((function(){return(R||[]).includes(A)}),[R,A]),B=(0,l.useMemo)((function(){return(0,P.jsxs)(h.ZP,{alignItems:"center",children:[!I&&(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.mm,{}),compact:!0,onClick:function(e){(0,H.j)(e),E(!0),setTimeout((function(){var e;return null===_||void 0===_||null===(e=_.current)||void 0===e?void 0:e.focus()}),1)},secondary:!M,small:!0,children:"Add JAR file"}),I&&(0,P.jsxs)(P.Fragment,{children:[N&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Z.ZP,{danger:!0,small:!0,children:"JAR file exists"}),(0,P.jsx)(g.Z,{mr:1})]}),(0,P.jsx)(ce.Z,{autoComplete:"off",compact:!0,meta:{touched:!!N,error:""},monospace:!0,onClick:function(e){return(0,H.j)(e)},paddingVertical:b.iI/2-2,onChange:function(e){(0,H.j)(e),D(e.target.value)},ref:_,small:!0,value:A||""}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsx)(a.ZP,{disabled:N,compact:!0,onClick:function(e){(0,H.j)(e),N||(m({spark_jars:R.concat(A)}),E(!1),D(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,H.j)(e),E(!1),D(null)},secondary:!0,small:!0,children:"Cancel"})]})]})}),[N,R,M,I,A,_,E,D]),z=(0,l.useMemo)((function(){return null===R||void 0===R?void 0:R.map((function(e,n){return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{iconOnly:!0,noBackground:!0,noBorder:!0,noPadding:!0,onClick:function(){var e=(0,he.Z)(R);m({spark_jars:(0,xe.oM)(e,n)})},children:(0,P.jsx)(w.rF,{default:!0,size:se.Z})}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(Z.ZP,{default:!0,large:!0,monospace:!0,children:["File ",n+1]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,fullWidth:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,onChange:function(e){var t=(0,he.Z)(R);t[n]=e.target.value,m({spark_jars:t})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /home/path/example1.jar",value:e||""})})]})})]},e)}))}),[R,m]),F=(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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!(null!==s&&void 0!==s&&s.remote_variables_dir)||!(null===t||void 0===t||!t.error),default:!0,large:!0,children:["Remote variables directory ",!(null!==s&&void 0!==s&&s.remote_variables_dir)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"This S3 bucket will be used by Spark."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return p({remote_variables_dir:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. s3://magically-powerful-bucket",value:(null===s||void 0===s?void 0:s.remote_variables_dir)||""}),(null===t||void 0===t?void 0:t.error)&&(0,P.jsx)(h.ZP,{justifyContent:"flex-end",children:(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsx)(je.Z,{error:null===t||void 0===t?void 0:t.error})})})]})]})})]})}),[i,s,p]);return(0,P.jsxs)(se.N,{children:[(0,P.jsxs)(k.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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(Z.ZP,{danger:"app_name"in r&&!(null!==O&&void 0!==O&&O.app_name),default:!0,large:!0,children:["Application name ","app_name"in r&&!(null!==O&&void 0!==O&&O.app_name)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({app_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. Sparkmage",value:(null===O||void 0===O?void 0:O.app_name)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:"spark_master"in r&&!(null!==O&&void 0!==O&&O.spark_master),default:!0,large:!0,children:["Master URL ","spark_master"in r&&!(null!==O&&void 0!==O&&O.spark_master)&&(0,P.jsx)(Z.ZP,{danger:!0,inline:!0,large:!0,children:"is required"})]}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"The URL for connecting to the master."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({spark_master:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. local, yarn, spark://host:port",value:(null===O||void 0===O?void 0:O.spark_master)||""})})]})}),(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Spark home directory"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Path where Spark is installed on worker nodes."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({spark_home:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /usr/lib/spark",value:(null===O||void 0===O?void 0:O.spark_home)||""})})]})}),pe.GO.AWS_EMR===d&&F]}),(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)(k.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,c=e.value;return(0,P.jsxs)("div",{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsxs)(Z.ZP,{danger:!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&&c&&(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:c})]})]})})]},o)}))]}),(0,P.jsx)(g.Z,{mb:b.HN})]}),(0,P.jsxs)(k.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)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Use custom session"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["Whether to create custom SparkSession via",(0,P.jsx)("br",{}),"code and set it in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,justifyContent:"flex-end",children:(0,P.jsx)(C.Z,{checked:null===O||void 0===O?void 0:O.use_custom_session,compact:!0,onCheck:function(e){return m({use_custom_session:e(null===O||void 0===O?void 0:O.use_custom_session)})}})})]})}),(null===O||void 0===O?void 0:O.use_custom_session)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Custom session variable"}),(0,P.jsxs)(Z.ZP,{muted:!0,small:!0,children:["The variable name to set in ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']"}),",",(0,P.jsx)("br",{}),"e.g. If variable name is ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"spark"})," then the Spark session",(0,P.jsx)("br",{}),"is accessed using ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,small:!0,children:"kwargs['context']['spark']"}),"."]})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,large:!0,monospace:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return m({custom_session_var_name:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. spark",value:(null===O||void 0===O?void 0:O.custom_session_var_name)||""})})]})})]}),pe.GO.AWS_EMR===d&&(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[(0,P.jsxs)(h.ZP,{flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,large:!0,children:"Bootstrap script path"}),(0,P.jsx)(Z.ZP,{muted:!0,small:!0,children:"Use a custom script to bootstrap the EMR cluster."})]}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(x.Z,{flex:1,children:(0,P.jsx)(ce.Z,{afterIcon:(0,P.jsx)(w.I8,{}),afterIconClick:function(e,n){var t;null===n||void 0===n||null===(t=n.current)||void 0===t||t.focus()},afterIconSize:se.Z,alignRight:!0,autoComplete:"off",large:!0,noBackground:!0,noBorder:!0,fullWidth:!0,onChange:function(e){return f({bootstrap_script_path:e.target.value})},paddingHorizontal:0,paddingVertical:0,placeholder:"e.g. /path/to/emr_bootstrap.sh",value:(null===y||void 0===y?void 0:y.bootstrap_script_path)||""})})]})})]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsx)(de,{addButtonText:"Add environment variable",addTextInputPlaceholder:"e.g. PYTHONPATH",alreadyExistsMessage:"Environment variable exists",configurationValuePlaceholder:"e.g. /home/path",configurations:null===O||void 0===O?void 0:O.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 m({executor_env:e})},title:"Environment variables"}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(k.Z,{noPadding:!0,children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(h.ZP,{alignItems:"flex-start",justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(j.Z,{level:4,children:"JAR files"}),(0,P.jsx)(g.Z,{mt:1,children:(0,P.jsxs)(Z.ZP,{muted:!0,children:["These files will be to be uploaded to the cluster and added to the ",(0,P.jsx)(Z.ZP,{inline:!0,monospace:!0,muted:!0,children:"classpath"}),"."]})})]}),(0,P.jsx)(g.Z,{mr:b.cd}),M&&(0,P.jsx)(h.ZP,{alignItems:"center",children:B})]})}),!M&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(v.Z,{light:!0}),(0,P.jsxs)(g.Z,{p:b.cd,children:[(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(Z.ZP,{default:!0,children:"There are currently no JAR files."})}),(0,P.jsx)(h.ZP,{alignItems:"center",children:B})]})]}),M&&z]}),(0,P.jsx)(g.Z,{mb:b.HN}),(0,P.jsxs)(h.ZP,{children:[(0,P.jsx)(a.ZP,{beforeIcon:(0,P.jsx)(w.vc,{}),disabled:!r||!(null!==(t=Object.keys(r))&&void 0!==t&&t.length),loading:o,onClick:function(){return c()},primary:!0,children:"Save changes"}),u&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(a.ZP,{onClick:function(){return null===u||void 0===u?void 0:u()},secondary:!0,children:"Cancel and go back"})]})]})]})},Pe=t(35185);var ye=function(e){var n=e.computeService,t=e.onClick,r=(0,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&&pe.br.COMPLETED!==i||(r+=1)})):(t.push(e),i&&pe.br.COMPLETED!==o||(r+=1))})),{steps:t,stepsCompleted:r}}),[n]),i=r.steps,o=r.stepsCompleted,c=(0,l.useMemo)((function(){return(null===i||void 0===i?void 0:i.length)||1}),[i]),s=(0,l.useMemo)((function(){return o/c}),[o,c]);return(0,P.jsxs)(X.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)(v.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:c})," ",(0,M._6)("step",c,!1,!0)," completed"]})}),(0,P.jsx)(Pe.Z,{progress:100*s})]}),(0,P.jsx)(v.Z,{light:!0})]})},Oe=t(78688),_e=t(72748),ke=t(32013),Se=t(98777);function Ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ce(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ie(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var Ee="Environment",we="Executors";var Te=function(e){e.objectAttributes;var n,t=(0,l.useContext)(A.ThemeContext),r=(0,l.useState)(Ee),i=r[0],o=r[1],c=E.ZP.spark_executors.list().data,u=(0,l.useMemo)((function(){return null===c||void 0===c?void 0:c.spark_executors}),[c]),a=E.ZP.spark_environments.detail("0").data,d=(0,l.useMemo)((function(){return null===a||void 0===a?void 0:a.spark_environment}),[a]),p=(0,l.useMemo)((function(){var e,n,t,r,i,o,c;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsxs)(ke.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Runtime",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(e=Object.entries((null===d||void 0===d?void 0:d.runtime)||{}))||void 0===e?void 0:e.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Hadoop properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(n=d.hadoop_properties)||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Metrics properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(t=d.metrics_properties)||void 0===t?void 0:t.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Spark properties",children:[(0,P.jsx)(I.Z,{columnFlex:[1,4],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(r=d.spark_properties)||void 0===r?void 0:r.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"System properties",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===d||void 0===d||null===(i=d.system_properties)||void 0===i?void 0:i.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),e[0]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1])]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Classpath entries",children:[(0,P.jsx)(I.Z,{columnFlex:[null,null],columns:[{uuid:"Type"},{uuid:"Value"}],rows:null===d||void 0===d||null===(o=d.classpath_entries)||void 0===o?void 0:o.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"type"}),e[1]),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[0])]}))}),(0,P.jsx)(g.Z,{p:1})]})]})}),null===d||void 0===d||null===(c=d.resource_profiles)||void 0===c?void 0:c.map((function(e){var n=e.executor_resources,t=e.id,r=e.task_resources;return(0,P.jsxs)("div",{children:[(0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(j.Z,{level:4,children:["Executor resources ID ",t]})}),(0,P.jsx)(g.Z,{px:b.cd,children:(0,P.jsx)(ke.Z,{noBoxShadow:!0,children:Object.entries(n||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(e[0])),(0,l.createElement)(Z.ZP,Ce(Ce({},$.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)(ke.Z,{noBoxShadow:!0,children:Object.entries(r||{}).map((function(e){var n,t=(0,s.Z)(e,2),r=t[0],i=t[1];return(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:(0,M.vg)(r),children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Property"},{uuid:"Value"}],rows:null===(n=Object.entries(i))||void 0===n?void 0:n.map((function(e){return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(e[0])),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),e[1]||"-")]}))}),(0,P.jsx)(g.Z,{p:1})]},r)}))})})]},t)}))]})}),[d]),f=(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)(ke.Z,{noBoxShadow:!0,children:[(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:["active_tasks","add_time","completed_tasks","disk_used","failed_tasks","host_port","is_active","is_blacklisted","is_excluded","max_memory","max_tasks","memory_used","rdd_blocks","resource_profile_id","total_cores","total_duration","total_gc_time","total_input_bytes","total_shuffle_read","total_shuffle_write","total_tasks"].map((function(n){var t=null===e||void 0===e?void 0:e[n];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(n)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),"undefined"===typeof t?"-":"boolean"===typeof t?String(t):t)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(t)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"value"}),"undefined"===typeof r?"-":"boolean"===typeof r?String(r):r)]}))}),(0,P.jsx)(g.Z,{p:1})]}),(0,P.jsxs)(Se.Z,{noPaddingContent:!0,title:"Peak memory metrics",children:[(0,P.jsx)(I.Z,{columnFlex:[1,2],columns:[{uuid:"Metric"},{uuid:"Value"}],rows:Object.entries((null===e||void 0===e?void 0:e.peak_memory_metrics)||{}).map((function(e){var n=(0,s.Z)(e,2),t=n[0],r=n[1];return[(0,l.createElement)(Z.ZP,Ce(Ce({},$.eB),{},{key:"property"}),(0,M.vg)(t)),(0,l.createElement)(Z.ZP,Ce(Ce({},$.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)(q.Z,{noPadding:!0,onClickTab:function(e){var n=e.uuid;return o(n)},regularSizeText:!0,selectedTabUUID:i,tabs:[{label:function(){return Ee},uuid:Ee},{label:function(){return we},uuid:we}],underlineColor:null===t||void 0===t||null===(n=t.accent)||void 0===n?void 0:n.blue,underlineStyle:!0})}),(0,P.jsx)(g.Z,{mb:b.cd,children:(0,P.jsx)(v.Z,{light:!0})}),Ee===i&&p,we===i&&f]})},Ae=t(62547),De=t(23657),Re=t(74778),Me=t(46684),Ne=t(53808),Be=t(10332),He=t(15610),ze=t(69419),Fe=t(19183);function Le(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function Ge(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Le(Object(t),!0).forEach((function(n){(0,c.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var We=function(e){var n,t=e.contained,r=e.heightOffset,i=e.mainContainerRef,o=(0,Fe.i)(),d=o.height,p=(o.width,(0,l.useMemo)((function(){return"ComputeManagement/".concat(t?"contained":"open")}),[t])),f=(0,L.VI)(null,{},[],{uuid:p}),m=(0,s.Z)(f,1)[0],v=((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]),O=(0,l.useState)(!1),_=O[0],k=O[1],S=(0,l.useState)(null),I=S[0],C=S[1],T=(0,De.Z)({clustersRefreshInterval:1e4,includeAllStates:_}),A=T.activeCluster,D=T.clusters,R=T.clustersLoading,M=T.computeService,N=T.connections,H=T.connectionsLoading,F=T.fetchAll,G=T.setupComplete,W=(0,l.useState)(null),U=W[0],V=W[1];(0,l.useEffect)((function(){var e;V(null===v||void 0===v||null===(e=v.current)||void 0===e?void 0:e.getBoundingClientRect())}),[d,v]);var q=(0,l.useMemo)((function(){return"compute_management_after_width_".concat(p)}),[p]),J=(0,l.useMemo)((function(){return"compute_management_before_width_".concat(p)}),[p]),K=(0,l.useState)((0,Ne.U2)(q,60*b.iI)),Q=K[0],ee=K[1],ne=(0,l.useCallback)((function(e){ee(e),(0,Ne.t8)(q,Math.max(e,60*b.iI))}),[q,ee]),te=(0,l.useState)(!1),re=te[0],ie=te[1],oe=(0,l.useState)(Math.max((0,Ne.U2)(J),20*b.iI)),ce=oe[0],se=oe[1],ue=(0,l.useCallback)((function(e){se(e||20*b.iI),(0,Ne.t8)(J,e||20*b.iI)}),[J,se]),ae=(0,l.useState)(!1),de=ae[0],pe=ae[1],fe=(0,l.useState)(!0),me=fe[0],he=fe[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&&me?he(!1):t||me||!G||he(!0),t}))}),[me,he,ge,G]),Pe=(0,l.useState)(null),ke=Pe[0],Se=Pe[1],Ie=(0,l.useCallback)((function(e){var n;(0,He.u)((0,c.Z)({},"tab",null===(n="function"===typeof e?null===e||void 0===e?void 0:e():e)||void 0===n?void 0:n.main)),Ze((function(){return null}))}),[Ze]),Ce=(0,ze.iV)();(0,l.useEffect)((function(){var e=null===Ce||void 0===Ce?void 0:Ce.tab;(null===ke||void 0===ke?void 0:ke.main)!==e&&Se(e?{main:e}:null)}),[ke,Ce]);var Ee=(0,l.useState)(null),we=Ee[0],Le=Ee[1],We=(0,l.useState)({}),Ue=We[0],Ve=We[1],Ye=(0,l.useCallback)((function(e){Ve((function(n){return Ge(Ge({},n),e)})),Le((function(n){return Ge(Ge({},n),e)}))}),[Ve,Le]),Xe=((0,l.useCallback)((function(e){return Ye({spark_config:Ge(Ge({},null===we||void 0===we?void 0:we.spark_config),e)})}),[we,Ye]),E.ZP.projects.list({},{revalidateOnFocus:!1}).data),qe=(0,l.useMemo)((function(){var e;return null===Xe||void 0===Xe||null===(e=Xe.projects)||void 0===e?void 0:e[0]}),[Xe]),Je=(0,l.useMemo)((function(){return null===qe||void 0===qe?void 0:qe.name}),[qe]),Ke=E.ZP.spark_applications.list().data,Qe=(0,l.useMemo)((function(){return null===Ke||void 0===Ke?void 0:Ke.spark_applications}),[Ke]),$e=E.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(){he(G)}),[G]),(0,l.useEffect)((function(){qe&&(Le(qe),C((0,Be.d)(qe)))}),[qe,Le,C,Ie]),(0,l.useEffect)((function(){!ke&&I&&Ie({main:$.uK.SETUP})}),[I,ke,Ie]);var nn=(0,u.Db)(E.ZP.projects.useUpdate(Je),{onSuccess:function(e){return(0,B.wD)(e,{callback:function(e){var n=e.project;Ve({}),Le(n),F()},onErrorCallback:function(e,n){return m({errors:n,response:e})}})}}),tn=(0,s.Z)(nn,2),rn=tn[0],on=tn[1].isLoading,ln=(0,l.useCallback)((function(e){return rn({project:(0,z.GL)(Ge(Ge({},we),e),["emr_config","remote_variables_dir","spark_config"])})}),[we,rn]),cn=(0,l.useMemo)((function(){var e=(0,$.kI)(M).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:!Ke,clusters:D,clustersLoading:R,computeConnections:N,computeService:M,jobs:en,jobsLoading:!$e})),(0,P.jsx)(X.Z,{block:!0,disabled:!I,noHoverUnderline:!0,noOutline:!0,onClick:function(){return Ie((function(){return{main:i}}))},preventDefault:!0,children:(0,P.jsx)(Re.bC,{selected:(null===ke||void 0===ke?void 0:ke.main)===i,children:(0,P.jsxs)(h.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"space-between",children:[(0,P.jsxs)(x.Z,{alignItems:"center",flex:1,children:[(0,P.jsx)(t,{size:2*b.iI}),(0,P.jsx)(g.Z,{mr:2}),(0,P.jsx)(Z.ZP,{bold:!0,large:!0,children:$.TD[i]})]}),n&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(g.Z,{mr:b.cd}),n]})]})})},i)}));if(I){var n=String(I),t=$.l[n],r=$.Eb[n],i=$.LF[n];if(t&&r&&i){var o,l;null!==M&&void 0!==M&&M.setup_steps&&(l=G?A?null!==A&&void 0!==A&&A.ready?"Cluster is ready, commence coding.":"Cluster activated and initializing.":"Setup complete but no clusters activated.":"All setup steps have not been completed yet.");var c=[];null!==M&&void 0!==M&&M.setup_steps&&c.push((0,P.jsx)(g.Z,{py:1,children:(0,P.jsxs)(h.ZP,{alignItems:"center",children:[G&&(0,P.jsx)(w.Fs,{muted:!(null!==A&&void 0!==A&&A.ready),size:1.5*b.iI,success:null===A||void 0===A?void 0:A.ready}),!G&&(0,P.jsx)(w.uy,{danger:!0,size:1.5*b.iI}),(0,P.jsx)(g.Z,{mr:1}),(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!G||!A,small:!0,children:G&&A?"Compute service connected":"Compute service unconnected"}),l&&(0,P.jsx)(Z.ZP,{muted:!0,xsmall:!0,children:l})]})]})},"compute-service-setup-steps")),(null===M||void 0===M||null===(o=M.setup_steps)||void 0===o?void 0:o.length)>=1&&!G&&e.unshift((0,P.jsx)(ye,{computeService:M,onClick:function(){return he(!1)}},"setupProgress")),e.unshift((0,P.jsx)(g.Z,{p:b.cd,children:(0,P.jsxs)(Re.UE,{inline:!0,children:[(0,P.jsxs)(h.ZP,{alignItems:"flex-start",children:[(0,P.jsx)(x.Z,{flex:1,children:i()}),(0,P.jsx)(a.ZP,{compact:!0,onClick:function(){C(null),Ie(null)},secondary:!0,small:!0,children:"Change"})]}),(0,P.jsx)(g.Z,{mt:b.cd,children:(0,P.jsx)(h.ZP,{alignItems:"flex-end",children:(0,P.jsxs)(x.Z,{flex:1,flexDirection:"column",children:[(0,P.jsx)(Z.ZP,{default:!0,monospace:!0,children:r}),(0,P.jsx)(j.Z,{level:5,children:t})]})})}),(null===c||void 0===c?void 0:c.length)>=1&&(0,P.jsx)(g.Z,{mt:b.cd,children:c})]})},"".concat(t,"-").concat(r)))}}return e}),[A,Qe,D,R,M,N,Ke,$e,en,I,ke,he,Ie,G]),sn=(0,l.useMemo)((function(){var e;return xe?(0,P.jsx)(_e.Z,{height:y-(((null===U||void 0===U?void 0:U.height)||0)+Me.Mz+1),model:xe}):(null===M||void 0===M||null===(e=M.setup_steps)||void 0===e?void 0:e.length)>=1?(0,P.jsx)(Oe.Z,{onClickStep:function(e){return Ie((function(){return{main:e}}))},setupSteps:null===M||void 0===M?void 0:M.setup_steps}):void 0}),[M,y,xe,G]),un=(0,l.useMemo)((function(){return(0,P.jsx)(be,{attributesTouched:Ue||{},computeService:M,isLoading:on,mutateObject:ln,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Ye})}),[Ue,M,on,we,I,Ye,ln]),an=(0,l.useMemo)((function(){return(0,P.jsx)(ve,{attributesTouched:Ue||{},isLoading:on,mutateObject:ln,objectAttributes:we,selectedComputeService:I,setObjectAttributes:Ye})}),[Ue,on,we,I,Ye,ln]),dn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(le,{applications:Qe,computeConnections:N,computeService:M,connectionsLoading:H,fetchAll:F,jobs:en,loadingApplications:!Ke,loadingJobs:!$e,objectAttributes:we,refButtonTabs:v,selectedComputeService:I,setSelectedSql:Ze,setSelectedTab:Ie})}),[Qe,M,N,H,F,Ke,$e,en,we,v,I,Ze,Ie]),pn=(0,l.useMemo)((function(){if([$.B2.AWS_EMR,$.B2.STANDALONE_CLUSTER].includes(I))return(0,P.jsx)(Te,{objectAttributes:we})}),[we,I]),fn=(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)(h.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)(Re.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)(h.ZP,{alignItems:"center",children:[(0,P.jsx)(a.ZP,{loading:on&&l===I,onClick:function(){C(l),ln(n(we))},primary:!0,children:"Enable"}),(0,P.jsx)(g.Z,{mr:b.cd}),(0,P.jsx)(X.Z,{href:r,default:!0,openNewWindow:!0,children:"View setup documentation"})]})})]},l)}))})]})}),[on,we,I,C,ln]),mn=(0,l.useMemo)((function(){return(0,P.jsx)(Y,{clusters:D,computeService:M,fetchAll:F,includeAllStates:_,loading:R,setIncludeAllStates:k})}),[D,R,M,F,_,k]),vn=(0,l.useMemo)((function(){if(!I&&we)return fn;if(I&&qe&&null!==ke&&void 0!==ke&&ke.main){var e=null===ke||void 0===ke?void 0:ke.main;if($.uK.SETUP===e)return un;if($.uK.RESOURCES===e)return an;if($.uK.MONITORING===e)return dn;if($.uK.SYSTEM===e)return pn;if($.uK.CLUSTERS===e)return mn}}),[mn,fn,dn,we,qe,an,I,ke,un,pn]);return(0,P.jsx)(Ae.Z,{after:sn,afterDividerContrast:!0,afterHeightOffset:Me.Mz,afterHidden:me&&!xe,afterMousedownActive:re,afterWidth:Q,before:cn,beforeDividerContrast:!0,beforeHeightOffset:0,beforeHidden:!I,beforeMousedownActive:de,beforeWidth:ce,contained:!0,height:y,hideAfterCompletely:!(null!==M&&void 0!==M&&null!==(n=M.setup_steps)&&void 0!==n&&n.length),hideBeforeCompletely:!I,inline:!0,mainContainerRef:i,setAfterHidden:he,setAfterMousedownActive:ie,setAfterWidth:ne,setBeforeMousedownActive:pe,setBeforeWidth:ue,uuid:p,children:vn})},Ue=t(94629),Ve=t(93808);function Ye(){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)(We,{heightOffset:Me.Mz,mainContainerRef:e})})})}Ye.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 Xe=(0,Ve.Z)(Ye)},23657:function(e,n,t){"use strict";var r=t(82394),i=t(75582),o=t(82684),l=t(74260),c=t(35686),s=t(77417);function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}n.Z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.clustersRefreshInterval,t=e.computeServiceRefreshInterval,u=e.connectionsRefreshInterval,d=e.includeAllStates,p=(0,s.Z)(),f=p.sparkEnabled,m=c.ZP.compute_services.detail("compute-service",{},{refreshInterval:t},{pauseFetch:!f}),v=m.data,h=m.mutate,j=(0,o.useMemo)((function(){return null===v||void 0===v?void 0:v.compute_service}),[v]),x={};d&&(x.include_all_states=!0);var g=c.ZP.compute_clusters.compute_services.list(null===j||void 0===j?void 0:j.uuid,x,{refreshInterval:n},{pauseFetch:!f}),Z=g.data,b=g.mutate,P=(0,o.useMemo)((function(){return(null===Z||void 0===Z?void 0:Z.compute_clusters)||[]}),[Z]),y=(0,o.useMemo)((function(){return null===P||void 0===P?void 0:P.map((function(e){return e.cluster}))}),[P]),O=(0,o.useMemo)((function(){var e,n;return null!==j&&void 0!==j&&null!==(e=j.setup_steps)&&void 0!==e&&e.length?null===j||void 0===j||null===(n=j.setup_steps)||void 0===n?void 0:n.every((function(e){var n=e.required,t=e.status_calculated;return!n||!t||l.br.COMPLETED===t})):null}),[j]),_=((0,o.useMemo)((function(){return null===y||void 0===y?void 0:y.find((function(e){return e.active}))}),[y]),c.ZP.compute_connections.compute_services.list(null===j||void 0===j?void 0:j.uuid,{},{refreshInterval:u},{pauseFetch:!f})),k=_.data,S=_.mutate,I=(0,o.useMemo)((function(){return(null===k||void 0===k?void 0:k.compute_connections)||[]}),[k]),C=(0,o.useCallback)((function(){return new Promise((function(){null===b||void 0===b||b(),null===S||void 0===S||S(),null===h||void 0===h||h()}))}),[b,S,h]);return{activeCluster:null===y||void 0===y?void 0:y.find((function(e){return e.active})),clusters:y,clustersLoading:!Z,computeService:j,computeServiceUUIDs:Object.entries(l.GO).reduce((function(e,n){var t=(0,i.Z)(n,2),o=t[0],l=t[1];return a(a({},e),{},(0,r.Z)({},o,l))}),{}),connections:I,connectionsLoading:!k,fetchAll:C,fetchComputeClusters:b,fetchComputeConnections:S,fetchComputeService:h,setupComplete:O}}},42278:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/compute",function(){return t(4910)}])}},function(e){e.O(0,[9774,2678,1154,844,5820,874,1557,8264,7858,5499,5283,3745,3004,2888,179],(function(){return n=42278,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/pages/files-373217c5de51aeef.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7869],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,u){if(u!==r){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,n,t){"use strict";t.d(n,{r:function(){return s}});var r=t(82684);const i=e=>{let n;const t=new Set,r=(e,r)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=r?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,o={setState:r,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(r,i,o),o};var o=t(81550);const{useSyncExternalStoreWithSelector:u}=o;const c=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=u(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,r.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var a=e=>e?c(e):c;const s=e=>{const n=a((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(r=n[e],i=t,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((n=>n[e]),[e]);return[n(i),(0,r.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,r)=>{n[e]!==r[e]&&t(n[e])}))}}}},1589:function(e,n,t){"use strict";var r=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},o=r.useState,u=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function s(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var d="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),i=r[0].inst,d=r[1];return c((function(){i.value=t,i.getSnapshot=n,s(i)&&d({inst:i})}),[e,t,n]),u((function(){return s(i)&&d({inst:i}),e((function(){s(i)&&d({inst:i})}))}),[e]),a(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},73847:function(e,n,t){"use strict";var r=t(82684),i=t(48216);var o="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},u=i.useSyncExternalStore,c=r.useRef,a=r.useEffect,s=r.useMemo,d=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,r,i){var l=c(null);if(null===l.current){var f={hasValue:!1,value:null};l.current=f}else f=l.current;l=s((function(){function e(e){if(!a){if(a=!0,u=e,e=r(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return c=n}return c=e}if(n=c,o(u,e))return n;var t=r(e);return void 0!==i&&i(n,t)?n:(u=e,c=t)}var u,c,a=!1,s=void 0===t?null:t;return[function(){return e(n())},null===s?void 0:function(){return e(s())}]}),[n,t,r,i]);var h=u(e,l[0],l[1]);return a((function(){f.hasValue=!0,f.value=h}),[h]),d(h),h}},48216:function(e,n,t){"use strict";e.exports=t(1589)},81550:function(e,n,t){"use strict";e.exports=t(73847)},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return I}});var r=t(82394),i=t(21831),o=t(82684),u=t(50724),c=t(82555),a=t(97618),s=t(70613),d=t(31557),l=t(68899),f=t(28598);function h(e,n){var t=e.children,r=e.noPadding;return(0,f.jsx)(l.HS,{noPadding:r,ref:n,children:t})}var p=o.forwardRef(h),v=t(62547),b=t(82571),g=t(98464),S=t(77417),m=t(46684),O=t(70515),y=t(53808),x=t(19183);function w(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?w(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function C(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,h=e.afterHidden,w=e.afterWidth,C=e.afterWidthOverride,I=e.appendBreadcrumbs,A=e.before,T=e.beforeWidth,j=e.breadcrumbs,_=e.children,P=e.contained,Z=e.errors,k=e.headerMenuItems,N=e.headerOffset,R=e.hideAfterCompletely,L=e.mainContainerHeader,W=e.navigationItems,H=e.setAfterHidden,D=e.setErrors,M=e.subheaderChildren,B=e.subheaderNoPadding,V=e.title,K=e.uuid,G=(0,x.i)().width,F="dashboard_after_width_".concat(K),X="dashboard_before_width_".concat(K),U=(0,o.useRef)(null),z=(0,o.useState)(C?w:(0,y.U2)(F,w)),Y=z[0],q=z[1],Q=(0,o.useState)(!1),J=Q[0],$=Q[1],ee=(0,o.useState)(A?Math.max((0,y.U2)(X,T),13*O.iI):null),ne=ee[0],te=ee[1],re=(0,o.useState)(!1),ie=re[0],oe=re[1],ue=(0,o.useState)(null)[1],ce=(0,S.Z)().project,ae=[];j&&ae.push.apply(ae,(0,i.Z)(j)),null!==j&&void 0!==j&&j.length&&!I||!ce||null!==j&&void 0!==j&&j.length||ae.unshift({bold:!I,label:function(){return V}}),(0,o.useEffect)((function(){null===U||void 0===U||!U.current||J||ie||null===ue||void 0===ue||ue(U.current.getBoundingClientRect().width)}),[J,Y,ie,ne,U,ue,G]),(0,o.useEffect)((function(){J||(0,y.t8)(F,Y)}),[h,J,Y,F]),(0,o.useEffect)((function(){ie||(0,y.t8)(X,ne)}),[ie,ne,X]);var se=(0,g.Z)(w);return(0,o.useEffect)((function(){C&&se!==w&&q(w)}),[C,w,se]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(s.Z,{title:V}),(0,f.jsx)(d.Z,{breadcrumbs:ae,menuItems:k}),(0,f.jsxs)(l.Nk,{ref:n,children:[0!==(null===W||void 0===W?void 0:W.length)&&(0,f.jsx)(l.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:W,showMore:!0})}),(0,f.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:m.Mz,afterHidden:h,afterMousedownActive:J,afterWidth:Y,before:A,beforeHeightOffset:m.Mz,beforeMousedownActive:ie,beforeWidth:l.k1+(A?ne:0),contained:P,headerOffset:N,hideAfterCompletely:!H||R,leftOffset:A?l.k1:null,mainContainerHeader:L,mainContainerRef:U,setAfterHidden:H,setAfterMousedownActive:$,setAfterWidth:q,setBeforeMousedownActive:oe,setBeforeWidth:te,children:[M&&(0,f.jsx)(p,{noPadding:B,children:M}),_]})})]}),Z&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(c.Z,E(E({},Z),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var I=o.forwardRef(C)},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return p},Z7:function(){return v},cH:function(){return i},du:function(){return f},fp:function(){return l},j5:function(){return h},uM:function(){return d}});var r,i,o=t(82394),u=t(57653),c=t(82359),a=t(72473),s=t(86735),d="sideview",l=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILES="files",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function h(e){var n,t,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:i.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function p(e){return(0,s.HK)(h(e),(function(e){return e.key}))}var v=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,a.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,a.JG),(0,o.Z)(r,i.CALLBACKS,a.AQ),(0,o.Z)(r,i.CHARTS,a.GQ),(0,o.Z)(r,i.DATA,a.iA),(0,o.Z)(r,i.EXTENSIONS,a.Bf),(0,o.Z)(r,i.INTERACTIONS,a.yd),(0,o.Z)(r,i.SECRETS,a.Yo),(0,o.Z)(r,i.SETTINGS,a.Zr),(0,o.Z)(r,i.TERMINAL,a.oI),(0,o.Z)(r,i.TREE,a.mp),(0,o.Z)(r,i.VARIABLES,a.LO),r)},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),u=t(30160),c=t(44897),a=t(42631),s=t(47041),d=t(70515),l=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*d.iI,1.5*d.iI,1.5*d.iI),h=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],a.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||c.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||c.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||c.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),p=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],a.n_,a.n_,(function(e){return"\n background-color: ".concat((e.theme.background||c.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||c.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*d.iI,s.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*d.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],a.M8,a.YF,1.75*d.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,c=e.contentContainerRef,a=e.dark,s=e.footer,d=e.fullHeight,f=void 0===d||d,g=e.fullWidth,S=void 0===g||g,m=e.header,O=e.headerHeight,y=e.headerIcon,x=e.headerPaddingVertical,w=e.headerTitle,E=e.maxHeight,C=e.maxWidth,I=e.minWidth,A=e.noPadding,T=e.overflowVisible,j=e.subtitle,_=e.success;return(0,l.jsxs)(h,{borderless:n,dark:a,fullHeight:f,fullWidth:S,maxHeight:E,maxWidth:C,minWidth:I,overflowVisible:T,ref:r,success:_,children:[(m||w)&&(0,l.jsxs)(p,{headerPaddingVertical:x,height:O,children:[m&&m,w&&(0,l.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,l.jsxs)(i.ZP,{alignItems:"center",children:[y&&y,(0,l.jsx)(o.Z,{ml:y?1:0,children:(0,l.jsx)(u.ZP,{bold:!0,default:!0,children:w})})]})})]}),(0,l.jsxs)(v,{maxHeight:E,noPadding:A,overflowVisible:T,ref:c,children:[j&&"string"===typeof j&&(0,l.jsx)(o.Z,{mb:2,children:(0,l.jsx)(u.ZP,{default:!0,children:j})}),j&&"string"!==typeof j&&j,t]}),s&&(0,l.jsx)(b,{children:s})]})}},98530:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return S}});var r=t(77837),i=t(38860),o=t.n(i),u=t(82684),c=t(94629),a=t(15338),s=t(55485),d=t(38276),l=t(88353),f=t(69616),h=t(46684),p=t(28598);var v=function(){var e=(0,u.useRef)(null),n=(0,u.useState)(null),t=n[0],r=n[1],i=(0,l.Z)(),o=i.browser,v=i.controller,b=i.filePaths,g=i.menu,S=i.selectedFilePath,m=i.tabs,O=i.versions,y=i.versionsVisible;return(0,u.useEffect)((function(){setTimeout((function(){var n,t;return r((null===e||void 0===e||null===(n=e.current)||void 0===n||null===(t=n.getBoundingClientRect())||void 0===t?void 0:t.height)||0)}),1)}),[b]),(0,p.jsx)(c.Z,{after:O,afterHidden:!(y&&S),before:o,contained:!0,headerOffset:t+h.Mz,mainContainerHeader:function(n){var t=n.widthOffset;return(0,p.jsxs)("div",{ref:e,style:{position:"relative",zIndex:3},children:[(0,p.jsx)(d.Z,{p:1,children:(0,p.jsx)(s.ZP,{alignItems:"center",children:g})}),(0,p.jsx)(a.Z,{light:!0}),(0,p.jsx)(f.Z,{widthOffset:t,children:m})]})},title:"Files",uuid:"Files/index",children:v})},b=t(93808);function g(){return(0,p.jsx)(v,{})}g.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 S=(0,b.Z)(g)},58325:function(e,n,t){"use strict";var r;t.d(n,{V5:function(){return o}}),function(e){e.ANDROID="Android",e.CHROME_OS="ChromeOS",e.IOS="iOS",e.LINUX="Linux",e.MAC="macOS",e.WINDOWS="Windows"}(r||(r={}));var i=r;function o(){return function(){var e,n,t,r,o,u,c,a=i.MAC,s=null===(e=window)||void 0===e||null===(n=e.navigator)||void 0===n?void 0:n.userAgent,d=(null===(t=window)||void 0===t||null===(r=t.navigator)||void 0===r||null===(o=r.userAgentData)||void 0===o?void 0:o.platform)||(null===(u=window)||void 0===u||null===(c=u.navigator)||void 0===c?void 0:c.platform);return d?["macOS","Macintosh","MacIntel","MacPPC","Mac68K"].includes(d)?a=i.MAC:["Win32","Win64","Windows","WinCE"].includes(d)?a=i.WINDOWS:["iPhone","iPad","iPod"].includes(d)&&(a=i.IOS):s&&(s.includes("Macintosh")?a=i.MAC:s.includes("Windows")?a=i.WINDOWS:s.includes("Linux")&&s.includes("X11")?a=i.LINUX:/(iPhone|iPad)/.test(s)?a=i.IOS:s.includes("Android")&&s.includes("Mobi")?a=i.ANDROID:s.includes("CrOS")&&(a=i.CHROME_OS)),a}()===i.MAC}},99017:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files",function(){return t(98530)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,874,1557,8264,7858,5499,5283,5810,2646,5533,161,9774,2888,179],(function(){return n=99017,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5882],{16529:function(t,n,r){"use strict";r.r(n);var u=r(77837),a=r(38860),o=r.n(a),e=r(82684),l=r(94629),i=r(19396),c=r(93808),d=r(38276),s=r(4190),f=r(35686),p=r(70515),b=r(28598);function v(t){var n=t.slug,r=f.ZP.global_data_products.detail(n).data,u=(0,e.useMemo)((function(){return null===r||void 0===r?void 0:r.global_data_product}),[r]),a=(0,e.useMemo)((function(){return(null===n||void 0===n?void 0:n.length)>=21?"".concat(null===n||void 0===n?void 0:n.slice(0,21),"..."):n}),[n]);return(0,b.jsxs)(l.Z,{addProjectBreadcrumbToCustomBreadcrumbs:!0,breadcrumbs:[{label:function(){return"Global data products"},linkProps:{href:"/global-data-products"}},{bold:!0,label:function(){return a}}],title:n,uuid:"GlobalDataProductDetail/index",children:[!r&&(0,b.jsx)(d.Z,{p:p.cd,children:(0,b.jsx)(s.Z,{inverted:!0})}),u&&(0,b.jsx)(i.Z,{globalDataProduct:u})]})}v.getInitialProps=function(){var t=(0,u.Z)(o().mark((function t(n){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.query.slug,t.abrupt("return",{slug:null===r||void 0===r?void 0:r[0]});case 2:case"end":return t.stop()}}),t)})));return function(n){return t.apply(this,arguments)}}(),n.default=(0,c.Z)(v)},49794:function(t,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/global-data-products/[...slug]",function(){return r(16529)}])}},function(t){t.O(0,[2678,1154,844,874,1557,8264,7858,5499,3943,9624,8731,9774,2888,179],(function(){return n=49794,t(t.s=n);var n}));var n=t.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5618],{40033:function(r,e,t){"use strict";var o=t(82684),n=t(94629),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,[2678,1154,844,874,1557,8264,7858,5283,3437,9774,2888,179],(function(){return e=98746,r(r.s=e);var e}));var e=r.O();_N_E=e}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3009],{44374:function(e,o,n){"use strict";n.d(o,{Z:function(){return T}});var t=n(82684),i=n(71180),l=n(94629),r=n(8569),u=n(82394),c=n(12691),a=n.n(c),d=n(38626),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},P=n(81728),_=n(3917),g=n(55283),y=n(86735),w=n(70320),x=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,w.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,x.jsx)(x.Fragment,{children:(0,x.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,w=b?(0,x.jsx)(a(),{as:"/pipelines/".concat(b,"/edit"),href:"/pipelines/[pipeline]/edit",passHref:!0,children:(0,x.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,y.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,x.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,x.jsx)(v.Z,O(O({},k),{},{inline:!0,openNewWindow:!0,sameColorAsText:!0,children:(0,x.jsx)(h.ZP,O(O({},k),{},{color:(0,g.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,P.j3)(s):"-"),(0,t.createElement)(h.ZP,O(O({},k),{},{key:"operationType",monospace:!1}),r?(0,P.vg)(r):"-"),w,(0,x.jsxs)("div",{children:[(null===Z||void 0===Z?void 0:Z.length)>=1&&Z,!(null!==Z&&void 0!==Z&&Z.length)&&(0,x.jsx)(h.ZP,O(O({},k),{},{muted:!0,children:"-"}))]},"outputs"),(0,x.jsx)(p.ZP,{justifyContent:"center",children:null!==l&&void 0!==l&&l.snapshot_valid?(0,x.jsx)(m.Jr,{size:j.Z,success:!0}):(0,x.jsx)(m.uy,{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,_.XG)(null===l||void 0===l?void 0:l.snapshotted_at,n):"-")]})),selectedRowIndexInternal:u,uuid:"GlobalHooks/Table"})})},C=n(70515),N=n(69419);var T=function(e){var o=e.rootProject,n=(0,t.useState)(!1),u=n[0],c=n[1],a=(0,N.iV)();(0,t.useEffect)((function(){var e=a.new;c(!!e)}),[a]);var d=o?"Platform global hooks":"Global hooks";return(0,x.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,x.jsx)(x.Fragment,{children:(0,x.jsx)(i.ZP,{beforeIcon:(0,x.jsx)(m.mm,{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,x.jsx)(r.Z,{isNew:u,rootProject:o}),!u&&(0,x.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,[2678,1154,844,874,1557,8264,7858,5499,5283,3437,9774,2888,179],(function(){return o=95140,e(e.s=o);var o}));var o=e.O();_N_E=o}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9015],{59739:function(e,n,t){"use strict";var r=t(56669);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,c){if(c!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},47329:function(e,n,t){e.exports=t(59739)()},56669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44152:function(e,n,t){"use strict";t.d(n,{r:function(){return a}});var r=t(82684);const i=e=>{let n;const t=new Set,r=(e,r)=>{const i="function"===typeof e?e(n):e;if(i!==n){const e=n;n=r?i:Object.assign({},n,i),t.forEach((t=>t(n,e)))}},i=()=>n,o={setState:r,getState:i,subscribe:e=>(t.add(e),()=>t.delete(e)),destroy:()=>t.clear()};return n=e(r,i,o),o};var o=t(81550);const{useSyncExternalStoreWithSelector:c}=o;const u=e=>{const n="function"===typeof e?(e=>e?i(e):i)(e):e,t=(e,t)=>function(e,n=e.getState,t){const i=c(e.subscribe,e.getState,e.getServerState||e.getState,n,t);return(0,r.useDebugValue)(i),i}(n,e,t);return Object.assign(t,n),t};var l=e=>e?u(e):u;const a=e=>{const n=l((()=>e)),t=(Object.keys(e),(e,t)=>{n.setState((n=>{return{[e]:(r=n[e],i=t,"function"==typeof i?i(r):i)};var r,i}))});return{useGlobalState:e=>{const i=(0,r.useCallback)((n=>n[e]),[e]);return[n(i),(0,r.useCallback)((n=>t(e,n)),[e])]},getGlobalState:e=>n.getState()[e],setGlobalState:t,subscribe:(e,t)=>{n.subscribe(((n,r)=>{n[e]!==r[e]&&t(n[e])}))}}}},1589:function(e,n,t){"use strict";var r=t(82684);var i="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},o=r.useState,c=r.useEffect,u=r.useLayoutEffect,l=r.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),i=r[0].inst,s=r[1];return u((function(){i.value=t,i.getSnapshot=n,a(i)&&s({inst:i})}),[e,t,n]),c((function(){return a(i)&&s({inst:i}),e((function(){a(i)&&s({inst:i})}))}),[e]),l(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,n,t){"use strict";var r=t(82684),i=t(48216);var o="function"===typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e===1/n)||e!==e&&n!==n},c=i.useSyncExternalStore,u=r.useRef,l=r.useEffect,a=r.useMemo,s=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,n,t,r,i){var d=u(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a((function(){function e(e){if(!l){if(l=!0,c=e,e=r(e),void 0!==i&&f.hasValue){var n=f.value;if(i(n,e))return u=n}return u=e}if(n=u,o(c,e))return n;var t=r(e);return void 0!==i&&i(n,t)?n:(c=e,u=t)}var c,u,l=!1,a=void 0===t?null:t;return[function(){return e(n())},null===a?void 0:function(){return e(a())}]}),[n,t,r,i]);var p=c(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),s(p),p}},48216:function(e,n,t){"use strict";e.exports=t(1589)},81550:function(e,n,t){"use strict";e.exports=t(73847)},65557:function(e,n,t){"use strict";var r=t(21831),i=t(75582),o=t(82684),c=t(80329);n.Z=function(e){var n=e.children,t=e.uuid,u=e.uuids,l=void 0===u?[]:u,a=(0,c.j)("apiReloads"),s=(0,i.Z)(a,1)[0],d=(0,r.Z)(l);t&&d.push(t);var f=d.map((function(e){return String(s[e])||"-"})).join("_");return o.cloneElement(n,{key:f})}},94629:function(e,n,t){"use strict";t.d(n,{Z:function(){return k}});var r=t(82394),i=t(21831),o=t(82684),c=t(50724),u=t(82555),l=t(97618),a=t(70613),s=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 h=o.forwardRef(p),v=t(62547),b=t(82571),g=t(98464),m=t(77417),y=t(46684),S=t(70515),x=t(53808),O=t(19183);function j(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?j(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):j(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function C(e,n){e.addProjectBreadcrumbToCustomBreadcrumbs;var t=e.after,r=e.afterHeader,p=e.afterHidden,j=e.afterWidth,C=e.afterWidthOverride,k=e.appendBreadcrumbs,w=e.before,P=e.beforeWidth,Z=e.breadcrumbs,T=e.children,I=e.contained,_=e.errors,R=e.headerMenuItems,A=e.headerOffset,N=e.hideAfterCompletely,H=e.mainContainerHeader,D=e.navigationItems,L=e.setAfterHidden,B=e.setErrors,F=e.subheaderChildren,W=e.subheaderNoPadding,M=e.title,V=e.uuid,U=(0,O.i)().width,G="dashboard_after_width_".concat(V),K="dashboard_before_width_".concat(V),z=(0,o.useRef)(null),X=(0,o.useState)(C?j:(0,x.U2)(G,j)),q=X[0],J=X[1],Q=(0,o.useState)(!1),Y=Q[0],$=Q[1],ee=(0,o.useState)(w?Math.max((0,x.U2)(K,P),13*S.iI):null),ne=ee[0],te=ee[1],re=(0,o.useState)(!1),ie=re[0],oe=re[1],ce=(0,o.useState)(null)[1],ue=(0,m.Z)().project,le=[];Z&&le.push.apply(le,(0,i.Z)(Z)),null!==Z&&void 0!==Z&&Z.length&&!k||!ue||null!==Z&&void 0!==Z&&Z.length||le.unshift({bold:!k,label:function(){return M}}),(0,o.useEffect)((function(){null===z||void 0===z||!z.current||Y||ie||null===ce||void 0===ce||ce(z.current.getBoundingClientRect().width)}),[Y,q,ie,ne,z,ce,U]),(0,o.useEffect)((function(){Y||(0,x.t8)(G,q)}),[p,Y,q,G]),(0,o.useEffect)((function(){ie||(0,x.t8)(K,ne)}),[ie,ne,K]);var ae=(0,g.Z)(j);return(0,o.useEffect)((function(){C&&ae!==j&&J(j)}),[C,j,ae]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:M}),(0,f.jsx)(s.Z,{breadcrumbs:le,menuItems:R}),(0,f.jsxs)(d.Nk,{ref:n,children:[0!==(null===D||void 0===D?void 0:D.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:D,showMore:!0})}),(0,f.jsx)(l.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(v.Z,{after:t,afterHeader:r,afterHeightOffset:y.Mz,afterHidden:p,afterMousedownActive:Y,afterWidth:q,before:w,beforeHeightOffset:y.Mz,beforeMousedownActive:ie,beforeWidth:d.k1+(w?ne:0),contained:I,headerOffset:A,hideAfterCompletely:!L||N,leftOffset:w?d.k1:null,mainContainerHeader:H,mainContainerRef:z,setAfterHidden:L,setAfterMousedownActive:$,setAfterWidth:J,setBeforeMousedownActive:oe,setBeforeWidth:te,children:[F&&(0,f.jsx)(h,{noPadding:W,children:F}),T]})})]}),_&&(0,f.jsx)(c.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===B||void 0===B?void 0:B(null)},children:(0,f.jsx)(u.Z,E(E({},_),{},{onClose:function(){return null===B||void 0===B?void 0:B(null)}}))})]})}var k=o.forwardRef(C)},29618:function(e,n,t){"use strict";t.d(n,{Z:function(){return H}});var r=t(82394),i=t(75582),o=t(17717),c=t(82684),u=t(80329),l=t(69864),a=t(40761),s=t(44425),d=t(71180),f=t(38626),p=t(97618),h=t(55485),v=t(28598),b=f.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),g=f.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),m=function(e){var n=e.children,t=e.divider,r=c.Children.toArray(n).length;return(0,v.jsx)(b,{children:(0,v.jsx)(h.ZP,{children:c.Children.map(n,(function(e,n){return e&&(0,v.jsxs)(p.Z,{children:[n>=1&&t&&(0,v.jsx)(g,{}),c.cloneElement(e,{borderRadiusLeft:r>=2&&0===n,borderRadiusRight:r>=2&&n===r-1,halfPaddingLeft:r>=2&&0!==n,halfPaddingRight:r>=2&&n!==r-1,noBorder:r>=2&&n>0&&n<r-1,noBorderRight:r>=2&&n!==r-1})]},"button-group-child-".concat(n))}))})})},y=t(75810),S=t(89706),x=t(93369),O=t(57653),j=t(38276),E=t(35686),C=t(39643),k=t(11498),w=t(85385),P=t(80330),Z=t(86735),T=t(81728),I=t(72619),_=t(42041),R=t(44688);function A(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?A(Object(t),!0).forEach((function(n){(0,r.Z)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):A(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var H=function(e){var n,t=e.active,f=e.addNewBlock,p=e.disableRefreshWarning,b=e.fetchPipeline,g=e.fetchVariables,A=e.filePath,H=e.hideHeaderButtons,D=e.onContentChange,L=e.onUpdateFileSuccess,B=e.openSidekickView,F=e.pipeline,W=e.saveFile,M=e.selectedFilePath,V=e.sendTerminalMessage,U=e.setDisableShortcuts,G=e.setErrors,K=e.setFilesTouched,z=e.setSelectedBlock,X=(0,u.j)("apiReloads"),q=(0,i.Z)(X,2)[1],J=(0,c.useState)(null),Q=J[0],Y=J[1],$=(0,c.useState)(!1),ee=$[0],ne=($[1],(0,c.useRef)(null)),te=(0,c.useMemo)((function(){return new a.Z}),[]),re=(0,c.useMemo)((function(){return{api_key:k.lG,token:te.decodedToken.token}}),[te]),ie=E.ZP.statuses.list().data,oe=(0,c.useMemo)((function(){var e,n;return null===ie||void 0===ie||null===(e=ie.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.repo_path}),[ie]),ce=E.ZP.file_contents.detail(A).data;(0,c.useEffect)((function(){null!==ce&&void 0!==ce&&ce.file_content?Y(ce.file_content):null!==ce&&void 0!==ce&&ce.error&&(0,I.h$)(ce,{onErrorCallback:function(e,n){return G({errors:n,response:e})}})}),[ce,G]);var ue=(0,c.useState)(null===Q||void 0===Q?void 0:Q.content),le=ue[0],ae=ue[1],se=(0,c.useCallback)((function(e){ae(e),D&&(null===D||void 0===D||D(e))}),[D]),de=(0,c.useState)(!1),fe=de[0],pe=de[1];(0,c.useEffect)((function(){t&&U&&(null===U||void 0===U||U(!0))}),[t,U]),(0,c.useEffect)((function(){var e;M&&(null===ne||void 0===ne||null===(e=ne.current)||void 0===e||e.scrollIntoView())}),[M]);var he=(0,l.Db)(E.ZP.file_contents.useUpdate((null===Q||void 0===Q?void 0:Q.path)&&encodeURIComponent(null===Q||void 0===Q?void 0:Q.path)),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(e){var n=e.file_content;q((function(e){return N(N({},e),{},(0,r.Z)({},"FileVersions/".concat(null===Q||void 0===Q?void 0:Q.path),Number(new Date)))})),L&&(null===L||void 0===L||L(n))},onErrorCallback:function(e,n){return null===G||void 0===G?void 0:G({errors:n,response:e})}})}}),ve=(0,i.Z)(he,1)[0],be=(0,c.useCallback)((function(e,n){if(W)return W(e,n);ve({file_content:N(N({},n),{},{content:e})}).then((function(){decodeURIComponent(A).split(o.sep).pop()===S.dT.METADATA_YAML&&g&&(null===g||void 0===g||g())})),null===K||void 0===K||K((function(e){return N(N({},e),{},(0,r.Z)({},null===n||void 0===n?void 0:n.path,!1))})),pe(!1)}),[g,A,W,K,ve]),ge=(0,c.useMemo)((function(){return(0,P.lU)()}),[]),me=(0,c.useMemo)((function(){var e,n,t,r;return null===(null===Q||void 0===Q||null===(e=Q.path)||void 0===e?void 0:e.match(ge))?S.Lu.TXT:null===Q||void 0===Q||null===(n=Q.path)||void 0===n||null===(t=n.match(ge))||void 0===t||null===(r=t[0])||void 0===r?void 0:r.split(".")[1]}),[ge,Q]),ye=(0,c.useMemo)((function(){if(null!==Q&&void 0!==Q&&Q.path)return(0,v.jsx)(y.Z,{autoHeight:!0,language:S.nB[me],onChange:function(e){se(e),K&&K((function(e){return null!==e&&void 0!==e&&e[null===Q||void 0===Q?void 0:Q.path]?e:N(N({},e),{},(0,r.Z)({},null===Q||void 0===Q?void 0:Q.path,!0))})),pe(!0)},onSave:function(e){be(e,Q)},padding:10,selected:!0,textareaFocused:!0,value:(0,T.Pb)(null===Q||void 0===Q?void 0:Q.content)?JSON.stringify(JSON.parse(null===Q||void 0===Q?void 0:Q.content),null,2):null===Q||void 0===Q?void 0:Q.content,width:"100%"})}),[Q,me,be,se,K]),Se=null!==F&&void 0!==F&&F.blocks?(0,Z.sE)(null===F||void 0===F?void 0:F.blocks,(function(e){var n=e.type;return s.tf.DATA_EXPORTER===n})):null,xe=(0,l.Db)(E.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===F||void 0===F?void 0:F.uuid),encodeURIComponent(null===Se||void 0===Se?void 0:Se.uuid)),{onSuccess:function(e){return(0,I.wD)(e,{callback:function(){null===b||void 0===b||b()}})}}),Oe=(0,i.Z)(xe,1)[0],je=f&&F&&Q&&S.tE.includes(me)&&(0,P.ck)(null===Q||void 0===Q||null===(n=Q.path)||void 0===n?void 0:n.split(o.sep))&&(0,v.jsx)(d.ZP,{onClick:function(){var e=(null===F||void 0===F?void 0:F.type)===O.qL.INTEGRATION,n=(0,P.TU)(Q,oe,F);f(n,(function(n){e&&Se&&Oe({block:N(N({},Se),{},{upstream_blocks:[n.uuid]})}),null===z||void 0===z||z(n)}))},primary:!0,children:"Add to current pipeline"}),Ee=V&&(0,v.jsx)(j.Z,{m:2,children:(0,v.jsx)(x.ZP,{disabled:!oe,inline:!0,loading:ee,onClick:function(){null===B||void 0===B||B(w.cH.TERMINAL),null===V||void 0===V||V(JSON.stringify(N(N({},re),{},{command:["stdin","pip install -r ".concat(oe,"/requirements.txt\r")]})))},title:oe?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ce="FileEditor/".concat(null===Q||void 0===Q?void 0:Q.path),ke=(0,R.y)(),we=ke.registerOnKeyDown,Pe=ke.unregisterOnKeyDown;return(0,c.useEffect)((function(){return function(){Pe(Ce)}}),[Pe,Ce]),we(Ce,(function(e,n){if(t&&!p)if((0,_.y)([C.zX,C.Um],n)||(0,_.y)([C.PQ,C.Um],n))e.preventDefault(),be(le,Q);else if(fe&&(0,_.y)([C.zX,C.hS],n)){e.preventDefault();var r="".concat(Q.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[t,le,p,Q,be,fe]),(0,v.jsxs)("div",{ref:ne,children:[!H&&(0,v.jsx)(j.Z,{p:2,children:(0,v.jsxs)(h.ZP,{justifyContent:"space-between",children:[(0,v.jsxs)(m,{children:[je,(0,v.jsx)(d.ZP,{disabled:!le,onClick:function(e){e.preventDefault(),be(le,Q)},title:le?null:"No changes have been made to this file.",children:"Save file content"})]}),B&&(0,v.jsx)(m,{children:(0,v.jsx)(d.ZP,{compact:!0,onClick:function(){B(w.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),ye,A===S.dT.REQS_TXT&&Ee]})}},90758:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var r=t(82394),i=t(26304),o=t(82684),c=t(38626),u=t(39867),l=t(55485),a=t(48670),s=t(38276),d=t(30160),f=t(12468),p=t(44897),h=t(29120),v=t(72473),b=t(97133),g=t(70515),m=t(15610),y=t(95924),S=t(28598),x=1.25*g.iI;var O=function(e){var n=e.filePath,t=e.filesTouched,r=void 0===t?{}:t,i=e.isLast,c=e.onClickTab,O=e.onClickTabClose,j=e.renderTabTitle,E=e.savePipelineContent,C=e.selected,k=e.themeContext,w=(0,o.useState)(!1),P=w[0],Z=w[1],T=(0,h.Z)({filePath:n,name:n,uuid:n}),I=T.BlockIcon,_=T.Icon,R=T.color,A=T.iconColor,N=T.isBlockFile;return(0,S.jsx)(l.ZP,{flexDirection:"column",fullHeight:!0,onClick:function(e){e.preventDefault(),C||(c?c(n):(null===E||void 0===E||E(),(0,m.u)({file_path:encodeURIComponent(n)})))},onMouseEnter:function(){return Z(!0)},onMouseLeave:function(){return Z(!1)},children:(0,S.jsx)(b.Gb,{last:i,selected:C,children:(0,S.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,children:[(0,S.jsx)(f.Z,{appearAbove:!0,appearBefore:!0,label:n,size:null,widthFitContent:!0,children:(0,S.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,children:[!r[n]&&(0,S.jsx)(S.Fragment,{children:N?(0,S.jsx)(I,{color:R,size:1*g.iI,square:!0}):(0,S.jsx)(_,{fill:A,size:1.5*g.iI})}),r[n]&&(0,S.jsx)(f.Z,{label:"Unsaved changes",size:null,widthFitContent:!0,children:(0,S.jsx)("div",{style:{padding:1},children:(0,S.jsx)(u.Z,{borderColor:(k||p.Z).borders.danger,size:x})})}),(0,S.jsx)(s.Z,{mr:1}),(0,S.jsx)(d.ZP,{monospace:!0,muted:!C,noWrapping:!0,small:!0,children:j?j(n):n})]})}),O&&(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(s.Z,{mr:2}),(0,S.jsx)(f.Z,{label:"Close",size:null,widthFitContent:!0,children:(0,S.jsxs)(a.Z,{autoHeight:!0,block:!0,noHoverUnderline:!0,noOutline:!0,onClick:function(e){(0,y.j)(e),null===O||void 0===O||O(n)},preventDefault:!0,children:[(P||C)&&(0,S.jsx)(v.x8,{muted:!C,size:x}),!P&&!C&&(0,S.jsx)("div",{style:{width:x}})]})})]})]})})})},j=t(86735),E=["filePaths","isSelectedFilePath","onClickTab","onClickTabClose","selectedFilePath","tabsBefore"];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 k(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}var w=function(e){var n=e.filePaths,t=e.isSelectedFilePath,r=e.onClickTab,u=e.onClickTabClose,a=e.selectedFilePath,s=e.tabsBefore,d=(0,i.Z)(e,E),f=(0,o.useContext)(c.ThemeContext),p=(0,o.useMemo)((function(){return n.map((function(e){return decodeURIComponent(e)}))}),[n]),h=(0,o.useMemo)((function(){return(null===p||void 0===p?void 0:p.length)||0}),[p]);return(0,S.jsxs)(l.ZP,{alignItems:"center",fullHeight:!0,justifyContent:"flex-start",children:[(null===s||void 0===s?void 0:s.length)>=1&&(null===s||void 0===s?void 0:s.map((function(e){var n=e.label,i=e.onClick,o=e.uuid,c=t?t(o,a):a===encodeURIComponent(o);return(0,S.jsx)(O,{onClickTab:function(){return null===i||void 0===i?void 0:i({onClickTab:r})},renderTabTitle:function(){return n?null===n||void 0===n?void 0:n():o},selected:c,themeContext:f},o)}))),null===p||void 0===p?void 0:p.map((function(e,n){var i=t?t(e,a):a===encodeURIComponent(e);return(0,o.createElement)(O,k(k({},d),{},{filePath:e,isLast:n===h-1,key:e,onClickTab:r,onClickTabClose:function(e){if(u)u(e);else{var n=(0,j.Od)(p,(function(n){return n===e})).map((function(e){return encodeURIComponent(e)}));(0,m.u)({file_path:n[n.length-1]||null,"file_paths[]":n},{pushHistory:!0})}},selected:i,themeContext:f}))}))]})}},97133:function(e,n,t){"use strict";t.d(n,{Gb:function(){return f},fm:function(){return s},lO:function(){return a},rK:function(){return d},zn:function(){return l}});var r=t(38626),i=t(44897),o=t(2842),c=t(70515),u=t(47041),l=300,a=r.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;}"],l,l),s=r.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||i.Z.background).codeArea,";\n ")})),d=r.default.div.withConfig({displayName:"indexstyle__PipelineHeaderStyle",componentId:"sc-1sv9513-2"})(["height:","px;position:sticky;top:","px;width:100%;z-index:5;"," "," "," ",""],o.Wi,o.Wi,(function(e){return"\n background-color: ".concat((e.theme.background||i.Z.background).panel,";\n border-bottom: 1px solid ").concat((e.theme.borders||i.Z.borders).medium,";\n ")}),(function(e){return e.relativePosition&&"\n position: relative;\n "}),(function(e){return e.secondary&&"\n height: ".concat(37,"px;\n top: ").concat(o.Wi,"px;\n overflow-x: auto;\n z-index: 3;\n ")}),(0,u.y$)()),f=r.default.div.withConfig({displayName:"indexstyle__FileTabStyle",componentId:"sc-1sv9513-3"})(["border-right:1px solid transparent;height:100%;padding:","px ","px;"," "," ",""],1*c.iI,1.5*c.iI,(function(e){return"\n &:hover {\n cursor: default;\n\n p {\n color: ".concat((e.theme.content||i.Z.content).active," !important;\n cursor: default;\n }\n }\n ")}),(function(e){return e.selected&&"\n background-color: ".concat((e.theme.background||i.Z.background).codeTextarea,";\n ")}),(function(e){return!e.selected&&!e.last&&"\n border-color: ".concat((e.theme.borders||i.Z.borders).light," !important;\n ")}));r.default.div.withConfig({displayName:"indexstyle__HeaderViewOptionsStyle",componentId:"sc-1sv9513-4"})(["left:50%;position:absolute;transform:translateX(-50%);"])},85385:function(e,n,t){"use strict";t.d(n,{Qq:function(){return h},Z7:function(){return v},cH:function(){return i},du:function(){return f},fp:function(){return d},j5:function(){return p},uM:function(){return s}});var r,i,o=t(82394),c=t(57653),u=t(82359),l=t(72473),a=t(86735),s="sideview",d=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILES="files",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(i||(i={}));i.BLOCK_SETTINGS,i.CALLBACKS,i.CHARTS,i.DATA,i.EXTENSIONS,i.TREE;var f=[i.DATA];function p(e){var n,t,r,o=[{key:i.TREE,label:"Tree"},{buildLabel:function(e){var n=(e.pipeline||{}).widgets,t=void 0===n?[]:n;return(null===t||void 0===t?void 0:t.length)>=1?"Charts (".concat(t.length,")"):"Charts"},key:i.CHARTS},{buildLabel:function(e){var n=e.variables;return(null===n||void 0===n?void 0:n.length)>=1?"Variables (".concat(n.length,")"):"Variables"},key:i.VARIABLES},{buildLabel:function(e){var n=e.secrets;return(null===n||void 0===n?void 0:n.length)>=1?"Secrets (".concat(n.length,")"):"Secrets"},key:i.SECRETS}];return c.qL.PYSPARK!==(null===e||void 0===e||null===(n=e.pipeline)||void 0===n?void 0:n.type)&&o.push.apply(o,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:i.ADDON_BLOCKS},{buildLabel:function(e){var n=(e.pipeline||{}).extensions,t=void 0===n?{}:n,r=0;return Object.values(t).forEach((function(e){var n=e.blocks;r+=(null===n||void 0===n?void 0:n.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:i.EXTENSIONS}]),o.push.apply(o,[{key:i.DATA,label:"Data"},{key:i.TERMINAL,label:"Terminal"},{key:i.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(t=e.project)&&void 0!==t&&null!==(r=t.features)&&void 0!==r&&r[u.d.INTERACTIONS]&&o.push({key:i.INTERACTIONS,label:"Interactions"}),o}function h(e){return(0,a.HK)(p(e),(function(e){return e.key}))}var v=(r={},(0,o.Z)(r,i.ADDON_BLOCKS,l.EJ),(0,o.Z)(r,i.BLOCK_SETTINGS,l.JG),(0,o.Z)(r,i.CALLBACKS,l.AQ),(0,o.Z)(r,i.CHARTS,l.GQ),(0,o.Z)(r,i.DATA,l.iA),(0,o.Z)(r,i.EXTENSIONS,l.Bf),(0,o.Z)(r,i.INTERACTIONS,l.yd),(0,o.Z)(r,i.SECRETS,l.Yo),(0,o.Z)(r,i.SETTINGS,l.Zr),(0,o.Z)(r,i.TERMINAL,l.oI),(0,o.Z)(r,i.TREE,l.mp),(0,o.Z)(r,i.VARIABLES,l.LO),r)},75083:function(e,n,t){"use strict";t.d(n,{HF:function(){return o},L6:function(){return r}});var r,i=t(72473);function o(e,n,t){var o=e.owner,c=(e.roles,[{Icon:i.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===t},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return o&&c.push({Icon:i.NO,id:r.USERS,isSelected:function(){return r.USERS===t},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),c.push.apply(c,[{Icon:i.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===t},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:i.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===t},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),c}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,n,t){"use strict";var r=t(82684),i=t(94629),o=t(35686),c=t(70515),u=t(75083),l=t(50178),a=t(28598);n.Z=function(e){var n=e.before,t=e.breadcrumbs,s=void 0===t?[]:t,d=e.children,f=e.errors,p=e.headerOffset,h=e.mainContainerHeader,v=e.pageName,b=e.setErrors,g=e.subheaderChildren,m=o.ZP.statuses.list().data,y=(0,r.useMemo)((function(){var e,n;return null===m||void 0===m||null===(e=m.statuses)||void 0===e||null===(n=e[0])||void 0===n?void 0:n.project_type}),[m]),S=(0,l.PR)()||{};return(0,a.jsx)(i.Z,{before:n,beforeWidth:n?50*c.iI:0,breadcrumbs:s,errors:f,headerOffset:p,mainContainerHeader:h,navigationItems:(0,u.HF)(S,y,v),setErrors:b,subheaderChildren:g,title:"Workspaces",uuid:"workspaces/index",children:d})}},65956:function(e,n,t){"use strict";var r=t(38626),i=t(55485),o=t(38276),c=t(30160),u=t(44897),l=t(42631),a=t(47041),s=t(70515),d=t(28598),f=(0,r.css)(["padding:","px;padding-bottom:","px;padding-top:","px;"],2*s.iI,1.5*s.iI,1.5*s.iI),p=r.default.div.withConfig({displayName:"Panel__PanelStyle",componentId:"sc-1ct8cgl-0"})(["border-radius:","px;overflow:hidden;"," "," "," "," "," "," "," "," "," "," "," ",""],l.n_,(function(e){return e.fullWidth&&"\n width: 100%;\n "}),(function(e){return!e.borderless&&"\n border: 1px solid ".concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).successLight,";\n ")}),(function(e){return e.success&&!e.borderless&&"\n border: 1px solid ".concat((e.theme.background||u.Z.background).success,";\n ")}),(function(e){return!e.dark&&!e.success&&"\n background-color: ".concat((e.theme.background||u.Z.background).panel,";\n ")}),(function(e){return e.dark&&"\n background-color: ".concat((e.theme.background||u.Z.background).content,";\n ")}),(function(e){return!e.fullHeight&&"\n height: fit-content;\n "}),(function(e){return e.maxHeight&&"\n max-height: ".concat(e.maxHeight,";\n ")}),(function(e){return e.maxWidth&&"\n max-width: ".concat(e.maxWidth,"px;\n ")}),(function(e){return e.minWidth&&"\n min-width: ".concat(e.minWidth,"px;\n\n @media (max-width: ").concat(e.minWidth,"px) {\n min-width: 0;\n }\n ")}),(function(e){return e.borderless&&"\n border: none;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),h=r.default.div.withConfig({displayName:"Panel__HeaderStyle",componentId:"sc-1ct8cgl-1"})(["border-top-left-radius:","px;border-top-right-radius:","px;"," "," "," ",""],l.n_,l.n_,(function(e){return"\n background-color: ".concat((e.theme.background||u.Z.background).chartBlock,";\n border-bottom: 1px solid ").concat((e.theme.interactive||u.Z.interactive).defaultBorder,";\n ")}),(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),f,(function(e){return e.headerPaddingVertical&&"\n padding-bottom: ".concat(e.headerPaddingVertical,"px;\n padding-top: ").concat(e.headerPaddingVertical,"px;\n ")})),v=r.default.div.withConfig({displayName:"Panel__ContentStyle",componentId:"sc-1ct8cgl-2"})(["overflow-y:auto;padding:","px;height:100%;"," "," "," "," ",""],1.75*s.iI,a.w5,(function(e){return e.height&&"\n height: ".concat(e.height,"px;\n ")}),(function(e){return e.maxHeight&&"\n max-height: calc(".concat(e.maxHeight," - ").concat(15*s.iI,"px);\n ")}),(function(e){return e.noPadding&&"\n padding: 0;\n "}),(function(e){return e.overflowVisible&&"\n overflow: visible;\n "})),b=r.default.div.withConfig({displayName:"Panel__FooterStyle",componentId:"sc-1ct8cgl-3"})(["border-style:",";border-top-width:","px;padding:","px;"],l.M8,l.YF,1.75*s.iI);n.Z=function(e){var n=e.borderless,t=e.children,r=e.containerRef,u=e.contentContainerRef,l=e.dark,a=e.footer,s=e.fullHeight,f=void 0===s||s,g=e.fullWidth,m=void 0===g||g,y=e.header,S=e.headerHeight,x=e.headerIcon,O=e.headerPaddingVertical,j=e.headerTitle,E=e.maxHeight,C=e.maxWidth,k=e.minWidth,w=e.noPadding,P=e.overflowVisible,Z=e.subtitle,T=e.success;return(0,d.jsxs)(p,{borderless:n,dark:l,fullHeight:f,fullWidth:m,maxHeight:E,maxWidth:C,minWidth:k,overflowVisible:P,ref:r,success:T,children:[(y||j)&&(0,d.jsxs)(h,{headerPaddingVertical:O,height:S,children:[y&&y,j&&(0,d.jsx)(i.ZP,{alignItems:"center",justifyContent:"space-between",children:(0,d.jsxs)(i.ZP,{alignItems:"center",children:[x&&x,(0,d.jsx)(o.Z,{ml:x?1:0,children:(0,d.jsx)(c.ZP,{bold:!0,default:!0,children:j})})]})})]}),(0,d.jsxs)(v,{maxHeight:E,noPadding:w,overflowVisible:P,ref:u,children:[Z&&"string"===typeof Z&&(0,d.jsx)(o.Z,{mb:2,children:(0,d.jsx)(c.ZP,{default:!0,children:Z})}),Z&&"string"!==typeof Z&&Z,t]}),a&&(0,d.jsx)(b,{children:a})]})}},83087:function(e,n,t){"use strict";t.r(n);var r=t(77837),i=t(38860),o=t.n(i),c=t(82684),u=t(65557),l=t(85533),a=t(29618),s=t(90758),d=t(93808),f=t(38276),p=t(59533),h=t(35686),v=t(86735),b=t(15610),g=t(69419),m=t(97133),y=t(75083),S=t(28598);function x(){var e=(0,c.useState)(null),n=e[0],t=e[1],r=(0,g.iV)(),i=r.file_path,o=(0,c.useMemo)((function(){var e=r["file_paths[]"]||[];return Array.isArray(e)||(e=[e]),e}),[r]),d=(0,c.useCallback)((function(e){var n=encodeURIComponent(e),t=(0,g.iV)()["file_paths[]"]||[];Array.isArray(t)||(t=[t]),t.includes(n)||t.push(n),(0,b.u)({file_path:n,"file_paths[]":t})}),[]),x=h.ZP.files.list(),O=x.data,j=x.mutate,E=(0,c.useMemo)((function(){return(null===O||void 0===O?void 0:O.files)||[]}),[O]),C=(0,c.useRef)(null),k=(0,c.useState)(null),w=k[0],P=k[1],Z=(0,c.useState)([]),T=Z[0],I=Z[1],_=(0,c.useState)({}),R=_[0],A=_[1],N=(0,c.useMemo)((function(){return(0,S.jsx)(f.Z,{ml:1,mt:1,children:(0,S.jsx)(l.Z,{fetchFiles:j,files:E,openFile:d,ref:C,showError:t})})}),[j,E,d,t]);return(0,c.useEffect)((function(){P(i)}),[i]),(0,c.useEffect)((function(){(0,v.fS)(o,T)||I(o)}),[o,T]),(0,S.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,S.jsx)(m.rK,{secondary:!0,children:(0,S.jsx)(s.Z,{filePaths:T,filesTouched:R,selectedFilePath:w})}),pageName:y.L6.FILE_BROWSER,children:null===o||void 0===o?void 0:o.map((function(e){return(0,S.jsx)("div",{style:{display:w===e?null:"none"},children:(0,S.jsx)(u.Z,{uuid:"manage/FileEditor/".concat(decodeURIComponent(e)),children:(0,S.jsx)(a.Z,{active:w===e,filePath:e,selectedFilePath:w,setErrors:t,setFilesTouched:A})})},e)}))})}x.getInitialProps=(0,r.Z)(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),n.default=(0,d.Z)(x)},80329:function(e,n,t){"use strict";t.d(n,{j:function(){return r}});var r=(0,t(44152).r)({apiReloads:{}}).useGlobalState},90205:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/files",function(){return t(83087)}])},80022:function(e,n,t){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}t.d(n,{Z:function(){return r}})},15544:function(e,n,t){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}t.d(n,{Z:function(){return r}})},13692:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(61049);function i(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&(0,r.Z)(e,n)}},93189:function(e,n,t){"use strict";t.d(n,{Z:function(){return o}});var r=t(12539),i=t(80022);function o(e,n){if(n&&("object"===r(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},61049:function(e,n,t){"use strict";function r(e,n){return r=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},r(e,n)}t.d(n,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,7011,874,1557,8264,7858,5499,5283,5810,2646,5533,9774,2888,179],(function(){return n=90205,e(e.s=n);var n}));var n=e.O();_N_E=n}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3512],{44152:function(e,t,n){"use strict";n.d(t,{r:function(){return l}});var r=n(82684);const o=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"===typeof e?e(t):e;if(o!==t){const e=t;t=r?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>n.clear()};return t=e(r,o,i),i};var i=n(81550);const{useSyncExternalStoreWithSelector:u}=i;const c=e=>{const t="function"===typeof e?(e=>e?o(e):o)(e):e,n=(e,n)=>function(e,t=e.getState,n){const o=u(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(o),o}(t,e,n);return Object.assign(n,t),n};var a=e=>e?c(e):c;const l=e=>{const t=a((()=>e)),n=(Object.keys(e),(e,n)=>{t.setState((t=>{return{[e]:(r=t[e],o=n,"function"==typeof o?o(r):o)};var r,o}))});return{useGlobalState:e=>{const o=(0,r.useCallback)((t=>t[e]),[e]);return[t(o),(0,r.useCallback)((t=>n(e,t)),[e])]},getGlobalState:e=>t.getState()[e],setGlobalState:n,subscribe:(e,n)=>{t.subscribe(((t,r)=>{t[e]!==r[e]&&n(t[e])}))}}}},1589:function(e,t,n){"use strict";var r=n(82684);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,u=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var s="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return c((function(){o.value=n,o.getSnapshot=t,l(o)&&s({inst:o})}),[e,n,t]),u((function(){return l(o)&&s({inst:o}),e((function(){l(o)&&s({inst:o})}))}),[e]),a(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},73847:function(e,t,n){"use strict";var r=n(82684),o=n(48216);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},u=o.useSyncExternalStore,c=r.useRef,a=r.useEffect,l=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=c(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=l((function(){function e(e){if(!a){if(a=!0,u=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return c=t}return c=e}if(t=c,i(u,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(u=e,c=n)}var u,c,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,o]);var p=u(e,f[0],f[1]);return a((function(){d.hasValue=!0,d.value=p}),[p]),s(p),p}},48216:function(e,t,n){"use strict";e.exports=n(1589)},81550:function(e,t,n){"use strict";e.exports=n(73847)},94629:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(82394),o=n(21831),i=n(82684),u=n(50724),c=n(82555),a=n(97618),l=n(70613),s=n(31557),f=n(68899),d=n(28598);function p(e,t){var n=e.children,r=e.noPadding;return(0,d.jsx)(f.HS,{noPadding:r,ref:t,children:n})}var v=i.forwardRef(p),S=n(62547),O=n(82571),T=n(98464),A=n(77417),E=n(46684),h=n(70515),R=n(53808),b=n(19183);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(e,t){e.addProjectBreadcrumbToCustomBreadcrumbs;var n=e.after,r=e.afterHeader,p=e.afterHidden,P=e.afterWidth,N=e.afterWidthOverride,D=e.appendBreadcrumbs,g=e.before,C=e.beforeWidth,L=e.breadcrumbs,_=e.children,m=e.contained,Z=e.errors,j=e.headerMenuItems,I=e.headerOffset,M=e.hideAfterCompletely,k=e.mainContainerHeader,w=e.navigationItems,x=e.setAfterHidden,Y=e.setErrors,H=e.subheaderChildren,B=e.subheaderNoPadding,U=e.title,G=e.uuid,K=(0,b.i)().width,F="dashboard_after_width_".concat(G),X="dashboard_before_width_".concat(G),W=(0,i.useRef)(null),V=(0,i.useState)(N?P:(0,R.U2)(F,P)),Q=V[0],q=V[1],J=(0,i.useState)(!1),$=J[0],z=J[1],ee=(0,i.useState)(g?Math.max((0,R.U2)(X,C),13*h.iI):null),te=ee[0],ne=ee[1],re=(0,i.useState)(!1),oe=re[0],ie=re[1],ue=(0,i.useState)(null)[1],ce=(0,A.Z)().project,ae=[];L&&ae.push.apply(ae,(0,o.Z)(L)),null!==L&&void 0!==L&&L.length&&!D||!ce||null!==L&&void 0!==L&&L.length||ae.unshift({bold:!D,label:function(){return U}}),(0,i.useEffect)((function(){null===W||void 0===W||!W.current||$||oe||null===ue||void 0===ue||ue(W.current.getBoundingClientRect().width)}),[$,Q,oe,te,W,ue,K]),(0,i.useEffect)((function(){$||(0,R.t8)(F,Q)}),[p,$,Q,F]),(0,i.useEffect)((function(){oe||(0,R.t8)(X,te)}),[oe,te,X]);var le=(0,T.Z)(P);return(0,i.useEffect)((function(){N&&le!==P&&q(P)}),[N,P,le]),(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(l.Z,{title:U}),(0,d.jsx)(s.Z,{breadcrumbs:ae,menuItems:j}),(0,d.jsxs)(f.Nk,{ref:t,children:[0!==(null===w||void 0===w?void 0:w.length)&&(0,d.jsx)(f.lm,{showMore:!0,children:(0,d.jsx)(O.Z,{navigationItems:w,showMore:!0})}),(0,d.jsx)(a.Z,{flex:1,flexDirection:"column",children:(0,d.jsxs)(S.Z,{after:n,afterHeader:r,afterHeightOffset:E.Mz,afterHidden:p,afterMousedownActive:$,afterWidth:Q,before:g,beforeHeightOffset:E.Mz,beforeMousedownActive:oe,beforeWidth:f.k1+(g?te:0),contained:m,headerOffset:I,hideAfterCompletely:!x||M,leftOffset:g?f.k1:null,mainContainerHeader:k,mainContainerRef:W,setAfterHidden:x,setAfterMousedownActive:z,setAfterWidth:q,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[H&&(0,d.jsx)(v,{noPadding:B,children:H}),_]})})]}),Z&&(0,d.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===Y||void 0===Y?void 0:Y(null)},children:(0,d.jsx)(c.Z,y(y({},Z),{},{onClose:function(){return null===Y||void 0===Y?void 0:Y(null)}}))})]})}var D=i.forwardRef(N)},29618:function(e,t,n){"use strict";n.d(t,{Z:function(){return k}});var r=n(82394),o=n(75582),i=n(17717),u=n(82684),c=n(80329),a=n(69864),l=n(40761),s=n(44425),f=n(71180),d=n(38626),p=n(97618),v=n(55485),S=n(28598),O=d.default.div.withConfig({displayName:"ButtonGroup__ButtonGroupStyle",componentId:"sc-15vbmc8-0"})([""]),T=d.default.div.withConfig({displayName:"ButtonGroup__VerticalDivider",componentId:"sc-15vbmc8-1"})(["width:1px;"]),A=function(e){var t=e.children,n=e.divider,r=u.Children.toArray(t).length;return(0,S.jsx)(O,{children:(0,S.jsx)(v.ZP,{children:u.Children.map(t,(function(e,t){return e&&(0,S.jsxs)(p.Z,{children:[t>=1&&n&&(0,S.jsx)(T,{}),u.cloneElement(e,{borderRadiusLeft:r>=2&&0===t,borderRadiusRight:r>=2&&t===r-1,halfPaddingLeft:r>=2&&0!==t,halfPaddingRight:r>=2&&t!==r-1,noBorder:r>=2&&t>0&&t<r-1,noBorderRight:r>=2&&t!==r-1})]},"button-group-child-".concat(t))}))})})},E=n(75810),h=n(89706),R=n(93369),b=n(57653),P=n(38276),y=n(35686),N=n(39643),D=n(11498),g=n(85385),C=n(80330),L=n(86735),_=n(81728),m=n(72619),Z=n(42041),j=n(44688);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k=function(e){var t,n=e.active,d=e.addNewBlock,p=e.disableRefreshWarning,O=e.fetchPipeline,T=e.fetchVariables,I=e.filePath,k=e.hideHeaderButtons,w=e.onContentChange,x=e.onUpdateFileSuccess,Y=e.openSidekickView,H=e.pipeline,B=e.saveFile,U=e.selectedFilePath,G=e.sendTerminalMessage,K=e.setDisableShortcuts,F=e.setErrors,X=e.setFilesTouched,W=e.setSelectedBlock,V=(0,c.j)("apiReloads"),Q=(0,o.Z)(V,2)[1],q=(0,u.useState)(null),J=q[0],$=q[1],z=(0,u.useState)(!1),ee=z[0],te=(z[1],(0,u.useRef)(null)),ne=(0,u.useMemo)((function(){return new l.Z}),[]),re=(0,u.useMemo)((function(){return{api_key:D.lG,token:ne.decodedToken.token}}),[ne]),oe=y.ZP.statuses.list().data,ie=(0,u.useMemo)((function(){var e,t;return null===oe||void 0===oe||null===(e=oe.statuses)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.repo_path}),[oe]),ue=y.ZP.file_contents.detail(I).data;(0,u.useEffect)((function(){null!==ue&&void 0!==ue&&ue.file_content?$(ue.file_content):null!==ue&&void 0!==ue&&ue.error&&(0,m.h$)(ue,{onErrorCallback:function(e,t){return F({errors:t,response:e})}})}),[ue,F]);var ce=(0,u.useState)(null===J||void 0===J?void 0:J.content),ae=ce[0],le=ce[1],se=(0,u.useCallback)((function(e){le(e),w&&(null===w||void 0===w||w(e))}),[w]),fe=(0,u.useState)(!1),de=fe[0],pe=fe[1];(0,u.useEffect)((function(){n&&K&&(null===K||void 0===K||K(!0))}),[n,K]),(0,u.useEffect)((function(){var e;U&&(null===te||void 0===te||null===(e=te.current)||void 0===e||e.scrollIntoView())}),[U]);var ve=(0,a.Db)(y.ZP.file_contents.useUpdate((null===J||void 0===J?void 0:J.path)&&encodeURIComponent(null===J||void 0===J?void 0:J.path)),{onSuccess:function(e){return(0,m.wD)(e,{callback:function(e){var t=e.file_content;Q((function(e){return M(M({},e),{},(0,r.Z)({},"FileVersions/".concat(null===J||void 0===J?void 0:J.path),Number(new Date)))})),x&&(null===x||void 0===x||x(t))},onErrorCallback:function(e,t){return null===F||void 0===F?void 0:F({errors:t,response:e})}})}}),Se=(0,o.Z)(ve,1)[0],Oe=(0,u.useCallback)((function(e,t){if(B)return B(e,t);Se({file_content:M(M({},t),{},{content:e})}).then((function(){decodeURIComponent(I).split(i.sep).pop()===h.dT.METADATA_YAML&&T&&(null===T||void 0===T||T())})),null===X||void 0===X||X((function(e){return M(M({},e),{},(0,r.Z)({},null===t||void 0===t?void 0:t.path,!1))})),pe(!1)}),[T,I,B,X,Se]),Te=(0,u.useMemo)((function(){return(0,C.lU)()}),[]),Ae=(0,u.useMemo)((function(){var e,t,n,r;return null===(null===J||void 0===J||null===(e=J.path)||void 0===e?void 0:e.match(Te))?h.Lu.TXT:null===J||void 0===J||null===(t=J.path)||void 0===t||null===(n=t.match(Te))||void 0===n||null===(r=n[0])||void 0===r?void 0:r.split(".")[1]}),[Te,J]),Ee=(0,u.useMemo)((function(){if(null!==J&&void 0!==J&&J.path)return(0,S.jsx)(E.Z,{autoHeight:!0,language:h.nB[Ae],onChange:function(e){se(e),X&&X((function(e){return null!==e&&void 0!==e&&e[null===J||void 0===J?void 0:J.path]?e:M(M({},e),{},(0,r.Z)({},null===J||void 0===J?void 0:J.path,!0))})),pe(!0)},onSave:function(e){Oe(e,J)},padding:10,selected:!0,textareaFocused:!0,value:(0,_.Pb)(null===J||void 0===J?void 0:J.content)?JSON.stringify(JSON.parse(null===J||void 0===J?void 0:J.content),null,2):null===J||void 0===J?void 0:J.content,width:"100%"})}),[J,Ae,Oe,se,X]),he=null!==H&&void 0!==H&&H.blocks?(0,L.sE)(null===H||void 0===H?void 0:H.blocks,(function(e){var t=e.type;return s.tf.DATA_EXPORTER===t})):null,Re=(0,a.Db)(y.ZP.blocks.pipelines.useUpdate(encodeURIComponent(null===H||void 0===H?void 0:H.uuid),encodeURIComponent(null===he||void 0===he?void 0:he.uuid)),{onSuccess:function(e){return(0,m.wD)(e,{callback:function(){null===O||void 0===O||O()}})}}),be=(0,o.Z)(Re,1)[0],Pe=d&&H&&J&&h.tE.includes(Ae)&&(0,C.ck)(null===J||void 0===J||null===(t=J.path)||void 0===t?void 0:t.split(i.sep))&&(0,S.jsx)(f.ZP,{onClick:function(){var e=(null===H||void 0===H?void 0:H.type)===b.qL.INTEGRATION,t=(0,C.TU)(J,ie,H);d(t,(function(t){e&&he&&be({block:M(M({},he),{},{upstream_blocks:[t.uuid]})}),null===W||void 0===W||W(t)}))},primary:!0,children:"Add to current pipeline"}),ye=G&&(0,S.jsx)(P.Z,{m:2,children:(0,S.jsx)(R.ZP,{disabled:!ie,inline:!0,loading:ee,onClick:function(){null===Y||void 0===Y||Y(g.cH.TERMINAL),null===G||void 0===G||G(JSON.stringify(M(M({},re),{},{command:["stdin","pip install -r ".concat(ie,"/requirements.txt\r")]})))},title:ie?"Pip install packages from your saved requirements.txt file (\u2318+S to save).":"Please use right panel terminal to install packages.",uuid:"FileEditor/InstallPackages",children:"Install packages"})}),Ne="FileEditor/".concat(null===J||void 0===J?void 0:J.path),De=(0,j.y)(),ge=De.registerOnKeyDown,Ce=De.unregisterOnKeyDown;return(0,u.useEffect)((function(){return function(){Ce(Ne)}}),[Ce,Ne]),ge(Ne,(function(e,t){if(n&&!p)if((0,Z.y)([N.zX,N.Um],t)||(0,Z.y)([N.PQ,N.Um],t))e.preventDefault(),Oe(ae,J);else if(de&&(0,Z.y)([N.zX,N.hS],t)){e.preventDefault();var r="".concat(J.path," has changes that are unsaved. ")+"Click cancel and save your changes before reloading page.";"undefined"!==typeof location&&window.confirm(r)&&location.reload()}}),[n,ae,p,J,Oe,de]),(0,S.jsxs)("div",{ref:te,children:[!k&&(0,S.jsx)(P.Z,{p:2,children:(0,S.jsxs)(v.ZP,{justifyContent:"space-between",children:[(0,S.jsxs)(A,{children:[Pe,(0,S.jsx)(f.ZP,{disabled:!ae,onClick:function(e){e.preventDefault(),Oe(ae,J)},title:ae?null:"No changes have been made to this file.",children:"Save file content"})]}),Y&&(0,S.jsx)(A,{children:(0,S.jsx)(f.ZP,{compact:!0,onClick:function(){Y(g.cH.FILE_VERSIONS)},small:!0,title:"View previous changes to this file.",children:"Show versions"})})]})}),Ee,I===h.dT.REQS_TXT&&ye]})}},80330:function(e,t,n){"use strict";n.d(t,{TU:function(){return v},lU:function(){return p},ck:function(){return d}});var r=n(21831),o=n(17717),i=n(44425),u=n(57653),c=n(89706),a=n(86735);function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||(n?null:null===e||void 0===e?void 0:e.name);if(null!==e&&void 0!==e&&e.parent){var i=[e.parent.name];return(null===r||void 0===r?void 0:r.length)>=1&&i.push(r),l(e.parent,i.join(o.sep))}return null!==e&&void 0!==e&&e.path?null===e||void 0===e?void 0:e.path:r}var s=n(81728),f=n(42122),d=function(e){var t;if(null===e||void 0===e||e.forEach((function(e){if((null===e||void 0===e?void 0:e.length)>=1){var n=null===e||void 0===e?void 0:e.toLowerCase();(n in i.qC||(n=(0,s.C5)(n))in i.GJ)&&(t=n)}})),!t){var n=["\\.".concat(c.Lu.SQL),"\\.".concat(c.Lu.YAML),"\\.".concat(c.Lu.YML)].join("|"),r=new RegExp("".concat(n,"$"));if(e.join(o.sep).match(r))return i.tf.DBT}return t};function p(){return new RegExp(Object.keys(c.nB).map((function(e){return".(".concat(e,")$")})).join("|"))}function v(e,t,n){var v,S,O=null===e||void 0===e||null===(v=e.path.match(p())[0])||void 0===v?void 0:v.split(".")[1],T=n.type===u.qL.INTEGRATION,A=(0,a.sE)(null===n||void 0===n?void 0:n.blocks,(function(e){var t=e.type;return i.tf.DATA_EXPORTER===t})),E=e.path.replace(t,"").split(o.sep),h=d(e.path.split(o.sep)),R=i.tf.DBT===h,b=(S=E)[0]===i.tf.DBT?S.slice(1).join(o.sep):function(e){return e.at(-1)}(S).split(".")[0];if(E.length>=3&&!R){var P=E.slice(1,E.length-1).join(o.sep);b="".concat(P,"/").concat(b)}var y=c.nB[O],N={configuration:(0,f.hB)({file_path:R&&i.t6.SQL===y?b:null,file_source:{path:l(e)}}),language:y,name:(0,s.wE)(b),type:h};if(h===i.tf.CUSTOM&&(N.color=i.Lq.TEAL),T){var D=(0,a.sE)(n.blocks,(function(e){var t=e.type;return i.tf.DATA_LOADER===t})),g=(0,a.sE)(n.blocks,(function(e){var t=e.type;return i.tf.TRANSFORMER===t})),C=[];g?C.push(g.uuid):null!==A&&void 0!==A&&A.upstream_blocks?C.push.apply(C,(0,r.Z)(A.upstream_blocks)):D&&C.push(D.uuid),N.upstream_blocks=C}return N}},85385:function(e,t,n){"use strict";n.d(t,{Qq:function(){return v},Z7:function(){return S},cH:function(){return o},du:function(){return d},fp:function(){return f},j5:function(){return p},uM:function(){return s}});var r,o,i=n(82394),u=n(57653),c=n(82359),a=n(72473),l=n(86735),s="sideview",f=90;!function(e){e.ADDON_BLOCKS="addon_blocks",e.BLOCK_SETTINGS="block_settings",e.CALLBACKS="callbacks",e.CHARTS="charts",e.DATA="data",e.EXTENSIONS="power_ups",e.FILES="files",e.FILE_VERSIONS="file_versions",e.GRAPHS="graphs",e.INTERACTIONS="interactions",e.REPORTS="reports",e.SECRETS="secrets",e.SETTINGS="settings",e.TERMINAL="terminal",e.TREE="tree",e.VARIABLES="variables"}(o||(o={}));o.BLOCK_SETTINGS,o.CALLBACKS,o.CHARTS,o.DATA,o.EXTENSIONS,o.TREE;var d=[o.DATA];function p(e){var t,n,r,i=[{key:o.TREE,label:"Tree"},{buildLabel:function(e){var t=(e.pipeline||{}).widgets,n=void 0===t?[]:t;return(null===n||void 0===n?void 0:n.length)>=1?"Charts (".concat(n.length,")"):"Charts"},key:o.CHARTS},{buildLabel:function(e){var t=e.variables;return(null===t||void 0===t?void 0:t.length)>=1?"Variables (".concat(t.length,")"):"Variables"},key:o.VARIABLES},{buildLabel:function(e){var t=e.secrets;return(null===t||void 0===t?void 0:t.length)>=1?"Secrets (".concat(t.length,")"):"Secrets"},key:o.SECRETS}];return u.qL.PYSPARK!==(null===e||void 0===e||null===(t=e.pipeline)||void 0===t?void 0:t.type)&&i.push.apply(i,[{buildLabel:function(e){e.pipeline;return"Add-on blocks"},key:o.ADDON_BLOCKS},{buildLabel:function(e){var t=(e.pipeline||{}).extensions,n=void 0===t?{}:t,r=0;return Object.values(n).forEach((function(e){var t=e.blocks;r+=(null===t||void 0===t?void 0:t.length)||0})),r>=1?"Power ups (".concat(r,")"):"Power ups"},key:o.EXTENSIONS}]),i.push.apply(i,[{key:o.DATA,label:"Data"},{key:o.TERMINAL,label:"Terminal"},{key:o.BLOCK_SETTINGS,label:"Block settings"}]),null!==e&&void 0!==e&&null!==(n=e.project)&&void 0!==n&&null!==(r=n.features)&&void 0!==r&&r[c.d.INTERACTIONS]&&i.push({key:o.INTERACTIONS,label:"Interactions"}),i}function v(e){return(0,l.HK)(p(e),(function(e){return e.key}))}var S=(r={},(0,i.Z)(r,o.ADDON_BLOCKS,a.EJ),(0,i.Z)(r,o.BLOCK_SETTINGS,a.JG),(0,i.Z)(r,o.CALLBACKS,a.AQ),(0,i.Z)(r,o.CHARTS,a.GQ),(0,i.Z)(r,o.DATA,a.iA),(0,i.Z)(r,o.EXTENSIONS,a.Bf),(0,i.Z)(r,o.INTERACTIONS,a.yd),(0,i.Z)(r,o.SECRETS,a.Yo),(0,i.Z)(r,o.SETTINGS,a.Zr),(0,i.Z)(r,o.TERMINAL,a.oI),(0,i.Z)(r,o.TREE,a.mp),(0,i.Z)(r,o.VARIABLES,a.LO),r)},75083:function(e,t,n){"use strict";n.d(t,{HF:function(){return i},L6:function(){return r}});var r,o=n(72473);function i(e,t,n){var i=e.owner,u=(e.roles,[{Icon:o.Vz,id:r.WORKSPACES,isSelected:function(){return r.WORKSPACES===n},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&u.push({Icon:o.NO,id:r.USERS,isSelected:function(){return r.USERS===n},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),u.push.apply(u,[{Icon:o.Zr,id:r.SETTINGS,isSelected:function(){return r.SETTINGS===n},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:r.FILE_BROWSER,isSelected:function(){return r.FILE_BROWSER===n},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),u}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(r||(r={}))},59533:function(e,t,n){"use strict";var r=n(82684),o=n(94629),i=n(35686),u=n(70515),c=n(75083),a=n(50178),l=n(28598);t.Z=function(e){var t=e.before,n=e.breadcrumbs,s=void 0===n?[]:n,f=e.children,d=e.errors,p=e.headerOffset,v=e.mainContainerHeader,S=e.pageName,O=e.setErrors,T=e.subheaderChildren,A=i.ZP.statuses.list().data,E=(0,r.useMemo)((function(){var e,t;return null===A||void 0===A||null===(e=A.statuses)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.project_type}),[A]),h=(0,a.PR)()||{};return(0,l.jsx)(o.Z,{before:t,beforeWidth:t?50*u.iI:0,breadcrumbs:s,errors:d,headerOffset:p,mainContainerHeader:v,navigationItems:(0,c.HF)(h,E,S),setErrors:O,subheaderChildren:T,title:"Workspaces",uuid:"workspaces/index",children:f})}},44425:function(e,t,n){"use strict";n.d(t,{$W:function(){return P},DA:function(){return R},GJ:function(){return E},HX:function(){return g},J8:function(){return D},L8:function(){return a},LE:function(){return O},Lk:function(){return _},Lq:function(){return T},M5:function(){return h},Q3:function(){return y},Qj:function(){return C},Ut:function(){return j},V4:function(){return Z},VZ:function(){return N},dO:function(){return S},f2:function(){return m},iZ:function(){return L},qC:function(){return A},t6:function(){return l},tf:function(){return v}});var r,o,i,u,c,a,l,s=n(75582),f=n(82394);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,f.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.CONDITION="condition",e.DBT_SNAPSHOT="snapshot",e.DYNAMIC="dynamic",e.DYNAMIC_CHILD="dynamic_child",e.REDUCE_OUTPUT="reduce_output",e.REPLICA="replica"}(a||(a={})),function(e){e.MARKDOWN="markdown",e.PYTHON="python",e.R="r",e.SQL="sql",e.YAML="yaml"}(l||(l={}));var v,S=(r={},(0,f.Z)(r,l.MARKDOWN,"MD"),(0,f.Z)(r,l.PYTHON,"PY"),(0,f.Z)(r,l.R,"R"),(0,f.Z)(r,l.SQL,"SQL"),(0,f.Z)(r,l.YAML,"YAML"),r),O=(o={},(0,f.Z)(o,l.MARKDOWN,"Markdown"),(0,f.Z)(o,l.PYTHON,"Python"),(0,f.Z)(o,l.R,"R"),(0,f.Z)(o,l.SQL,"SQL"),(0,f.Z)(o,l.YAML,"YAML"),o);!function(e){e.CALLBACK="callback",e.CHART="chart",e.CONDITIONAL="conditional",e.CUSTOM="custom",e.DATA_EXPORTER="data_exporter",e.DATA_LOADER="data_loader",e.DBT="dbt",e.EXTENSION="extension",e.GLOBAL_DATA_PRODUCT="global_data_product",e.SCRATCHPAD="scratchpad",e.SENSOR="sensor",e.MARKDOWN="markdown",e.TRANSFORMER="transformer"}(v||(v={}));var T,A=(i={},(0,f.Z)(i,v.CUSTOM,v.CUSTOM),(0,f.Z)(i,v.DBT,v.DBT),i),E=Object.entries(v).reduce((function(e,t){var n=(0,s.Z)(t,2),r=n[0],o=n[1];return p(p({},e),{},(0,f.Z)({},o,r))}),{}),h=[v.CALLBACK,v.CONDITIONAL,v.EXTENSION];!function(e){e.BLUE="blue",e.GREY="grey",e.PINK="pink",e.PURPLE="purple",e.TEAL="teal",e.YELLOW="yellow"}(T||(T={}));var R,b,P=[v.CHART,v.CUSTOM,v.DATA_EXPORTER,v.DATA_LOADER,v.SCRATCHPAD,v.SENSOR,v.MARKDOWN,v.TRANSFORMER],y=[v.CUSTOM,v.DATA_EXPORTER,v.DATA_LOADER,v.SCRATCHPAD,v.SENSOR,v.MARKDOWN,v.TRANSFORMER],N=[v.DATA_EXPORTER,v.DATA_LOADER],D=[v.DATA_EXPORTER,v.DATA_LOADER,v.TRANSFORMER],g=[v.DATA_EXPORTER,v.DATA_LOADER,v.DBT,v.TRANSFORMER],C=[v.CHART,v.SCRATCHPAD,v.SENSOR,v.MARKDOWN],L=[v.CALLBACK,v.CHART,v.EXTENSION,v.SCRATCHPAD,v.MARKDOWN],_=[v.CUSTOM,v.DATA_EXPORTER,v.DATA_LOADER,v.SENSOR,v.TRANSFORMER];!function(e){e.EXECUTED="executed",e.FAILED="failed",e.NOT_EXECUTED="not_executed",e.UPDATED="updated"}(R||(R={})),function(e){e.BLOCK_FILE="block_file",e.CUSTOM_BLOCK_TEMPLATE="custom_block_template",e.MAGE_TEMPLATE="mage_template"}(b||(b={}));var m=[v.CUSTOM,v.DATA_EXPORTER,v.DATA_LOADER,v.TRANSFORMER],Z=(u={},(0,f.Z)(u,v.CALLBACK,"Callback"),(0,f.Z)(u,v.CHART,"Chart"),(0,f.Z)(u,v.CONDITIONAL,"Conditional"),(0,f.Z)(u,v.CUSTOM,"Custom"),(0,f.Z)(u,v.DATA_EXPORTER,"Data exporter"),(0,f.Z)(u,v.DATA_LOADER,"Data loader"),(0,f.Z)(u,v.DBT,"DBT"),(0,f.Z)(u,v.EXTENSION,"Extension"),(0,f.Z)(u,v.GLOBAL_DATA_PRODUCT,"Global data product"),(0,f.Z)(u,v.MARKDOWN,"Markdown"),(0,f.Z)(u,v.SCRATCHPAD,"Scratchpad"),(0,f.Z)(u,v.SENSOR,"Sensor"),(0,f.Z)(u,v.TRANSFORMER,"Transformer"),u),j=[v.DATA_LOADER,v.TRANSFORMER,v.DATA_EXPORTER,v.SENSOR];c={},(0,f.Z)(c,v.DATA_EXPORTER,"DE"),(0,f.Z)(c,v.DATA_LOADER,"DL"),(0,f.Z)(c,v.SCRATCHPAD,"SP"),(0,f.Z)(c,v.SENSOR,"SR"),(0,f.Z)(c,v.MARKDOWN,"MD"),(0,f.Z)(c,v.TRANSFORMER,"TF")},89706:function(e,t,n){"use strict";n.d(t,{JD:function(){return A},Lu:function(){return u},PF:function(){return S},aZ:function(){return i},d2:function(){return v},dT:function(){return c},n6:function(){return s},nB:function(){return T},oy:function(){return O},tE:function(){return f},xF:function(){return p}});var r,o,i,u,c,a=n(82394),l=n(44425);!function(e){e.DBT="dbt"}(i||(i={})),function(e){e.CSV="csv",e.JSON="json",e.MD="md",e.PY="py",e.R="r",e.SH="sh",e.SQL="sql",e.TXT="txt",e.YAML="yaml",e.YML="yml"}(u||(u={})),function(e){e.INIT_PY="__init__.py",e.METADATA_YAML="metadata.yaml",e.REQS_TXT="requirements.txt"}(c||(c={}));var s=[u.PY,u.SQL],f=[u.MD,u.PY,u.R,u.SQL,u.YAML],d=[u.JSON,u.MD,u.PY,u.R,u.SH,u.SQL,u.TXT,u.YAML,u.YML],p=new RegExp(d.map((function(e){return".".concat(e,"$")})).join("|")),v=new RegExp([u.CSV,u.JSON,u.MD,u.PY,u.R,u.SH,u.SQL,u.TXT,u.YAML,u.YML].map((function(e){return".".concat(e,"$")})).join("|")),S="charts",O="pipelines",T=(r={},(0,a.Z)(r,u.MD,l.t6.MARKDOWN),(0,a.Z)(r,u.JSON,u.JSON),(0,a.Z)(r,u.PY,l.t6.PYTHON),(0,a.Z)(r,u.R,l.t6.R),(0,a.Z)(r,u.SQL,l.t6.SQL),(0,a.Z)(r,u.TXT,"text"),(0,a.Z)(r,u.YAML,l.t6.YAML),(0,a.Z)(r,u.YML,l.t6.YAML),r),A=(o={},(0,a.Z)(o,l.t6.MARKDOWN,u.MD),(0,a.Z)(o,l.t6.PYTHON,u.PY),(0,a.Z)(o,l.t6.R,u.R),(0,a.Z)(o,l.t6.SQL,u.SQL),(0,a.Z)(o,l.t6.YAML,u.YAML),(0,a.Z)(o,"text",u.TXT),o)},72098:function(e,t,n){"use strict";var r;n.d(t,{U:function(){return r}}),function(e){e.PYSPARK="pysparkkernel",e.PYTHON3="python3"}(r||(r={}))},57653:function(e,t,n){"use strict";n.d(t,{$1:function(){return S},G7:function(){return A},LM:function(){return E},Mj:function(){return h},QK:function(){return v},RH:function(){return T},a_:function(){return b},fj:function(){return P},kA:function(){return R},qL:function(){return c},r0:function(){return O}});var r,o,i,u,c,a=n(75582),l=n(82394),s=n(72473),f=n(72098);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}!function(e){e.INTEGRATION="integration",e.PYTHON="python",e.PYSPARK="pyspark",e.STREAMING="streaming"}(c||(c={}));var v,S,O,T=(r={},(0,l.Z)(r,c.INTEGRATION,"Integration"),(0,l.Z)(r,c.PYTHON,"Python"),(0,l.Z)(r,c.PYSPARK,"PySpark"),(0,l.Z)(r,c.STREAMING,"Streaming"),r),A=(o={},(0,l.Z)(o,c.INTEGRATION,"Integration"),(0,l.Z)(o,c.PYTHON,"Standard"),(0,l.Z)(o,c.PYSPARK,"PySpark"),(0,l.Z)(o,c.STREAMING,"Streaming"),o),E="all",h=(c.PYTHON,c.INTEGRATION,c.STREAMING,i={},(0,l.Z)(i,E,s.ie),(0,l.Z)(i,c.INTEGRATION,s.YC),(0,l.Z)(i,c.PYTHON,s.El),(0,l.Z)(i,c.STREAMING,s.dB),i);!function(e){e.ACTIVE="active",e.INACTIVE="inactive",e.NO_SCHEDULES="no_schedules",e.RETRY="retry",e.RETRY_INCOMPLETE_BLOCK_RUNS="retry_incomplete_block_runs"}(v||(v={})),function(e){e.GROUP="group_by",e.HISTORY_DAYS="from_history_days",e.NO_TAGS="no_tags",e.SEARCH="search",e.STATUS="status[]",e.TAG="tag[]",e.TYPE="type[]"}(S||(S={})),function(e){e.STATUS="status",e.TAG="tag",e.TYPE="type"}(O||(O={}));var R=[v.ACTIVE,v.INACTIVE,v.NO_SCHEDULES],b=(u={},(0,l.Z)(u,c.PYTHON,f.U.PYTHON3),(0,l.Z)(u,c.PYSPARK,f.U.PYSPARK),u),P=Object.entries(b).reduce((function(e,t){var n=(0,a.Z)(t,2),r=n[0],o=n[1];return p(p({},e),{},(0,l.Z)({},o,r))}),{})},27216:function(e,t,n){"use strict";n.r(t);var r=n(77837),o=n(38860),i=n.n(o),u=n(82684),c=n(29618),a=n(93808),l=n(59533),s=n(75083),f=n(28598);function d(){var e=(0,u.useState)(null),t=e[0];e[1];return(0,f.jsx)(l.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)(c.Z,{active:!0,filePath:"metadata.yaml",selectedFilePath:"metadata.yaml",setFilesTouched:function(){return null}})})}d.getInitialProps=(0,r.Z)(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)}))),t.default=(0,a.Z)(d)},80329:function(e,t,n){"use strict";n.d(t,{j:function(){return r}});var r=(0,n(44152).r)({apiReloads:{}}).useGlobalState},1116:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/settings",function(){return n(27216)}])},80022:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},15544:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},13692:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(61049);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},93189:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(12539),o=n(80022);function i(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},61049:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})}},function(e){e.O(0,[2678,1154,844,6639,874,1557,8264,5810,9774,2888,179],(function(){return t=1116,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4496],{94629:function(e,r,n){"use strict";n.d(r,{Z:function(){return Z}});var t=n(82394),o=n(21831),i=n(82684),u=n(50724),s=n(82555),c=n(97618),a=n(70613),l=n(31557),d=n(68899),f=n(28598);function v(e,r){var n=e.children,t=e.noPadding;return(0,f.jsx)(d.HS,{noPadding:t,ref:r,children:n})}var p=i.forwardRef(v),h=n(62547),b=n(82571),m=n(98464),O=n(77417),j=n(46684),w=n(70515),g=n(53808),y=n(19183);function P(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function S(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,t.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}function _(e,r){e.addProjectBreadcrumbToCustomBreadcrumbs;var n=e.after,t=e.afterHeader,v=e.afterHidden,P=e.afterWidth,_=e.afterWidthOverride,Z=e.appendBreadcrumbs,E=e.before,k=e.beforeWidth,x=e.breadcrumbs,C=e.children,R=e.contained,I=e.errors,M=e.headerMenuItems,W=e.headerOffset,H=e.hideAfterCompletely,A=e.mainContainerHeader,N=e.navigationItems,T=e.setAfterHidden,D=e.setErrors,U=e.subheaderChildren,B=e.subheaderNoPadding,F=e.title,L=e.uuid,G=(0,y.i)().width,z="dashboard_after_width_".concat(L),K="dashboard_before_width_".concat(L),X=(0,i.useRef)(null),q=(0,i.useState)(_?P:(0,g.U2)(z,P)),V=q[0],$=q[1],J=(0,i.useState)(!1),Q=J[0],Y=J[1],ee=(0,i.useState)(E?Math.max((0,g.U2)(K,k),13*w.iI):null),re=ee[0],ne=ee[1],te=(0,i.useState)(!1),oe=te[0],ie=te[1],ue=(0,i.useState)(null)[1],se=(0,O.Z)().project,ce=[];x&&ce.push.apply(ce,(0,o.Z)(x)),null!==x&&void 0!==x&&x.length&&!Z||!se||null!==x&&void 0!==x&&x.length||ce.unshift({bold:!Z,label:function(){return F}}),(0,i.useEffect)((function(){null===X||void 0===X||!X.current||Q||oe||null===ue||void 0===ue||ue(X.current.getBoundingClientRect().width)}),[Q,V,oe,re,X,ue,G]),(0,i.useEffect)((function(){Q||(0,g.t8)(z,V)}),[v,Q,V,z]),(0,i.useEffect)((function(){oe||(0,g.t8)(K,re)}),[oe,re,K]);var ae=(0,m.Z)(P);return(0,i.useEffect)((function(){_&&ae!==P&&$(P)}),[_,P,ae]),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(a.Z,{title:F}),(0,f.jsx)(l.Z,{breadcrumbs:ce,menuItems:M}),(0,f.jsxs)(d.Nk,{ref:r,children:[0!==(null===N||void 0===N?void 0:N.length)&&(0,f.jsx)(d.lm,{showMore:!0,children:(0,f.jsx)(b.Z,{navigationItems:N,showMore:!0})}),(0,f.jsx)(c.Z,{flex:1,flexDirection:"column",children:(0,f.jsxs)(h.Z,{after:n,afterHeader:t,afterHeightOffset:j.Mz,afterHidden:v,afterMousedownActive:Q,afterWidth:V,before:E,beforeHeightOffset:j.Mz,beforeMousedownActive:oe,beforeWidth:d.k1+(E?re:0),contained:R,headerOffset:W,hideAfterCompletely:!T||H,leftOffset:E?d.k1:null,mainContainerHeader:A,mainContainerRef:X,setAfterHidden:T,setAfterMousedownActive:Y,setAfterWidth:$,setBeforeMousedownActive:ie,setBeforeWidth:ne,children:[U&&(0,f.jsx)(p,{noPadding:B,children:U}),C]})})]}),I&&(0,f.jsx)(u.Z,{disableClickOutside:!0,isOpen:!0,onClickOutside:function(){return null===D||void 0===D?void 0:D(null)},children:(0,f.jsx)(s.Z,S(S({},I),{},{onClose:function(){return null===D||void 0===D?void 0:D(null)}}))})]})}var Z=i.forwardRef(_)},75083:function(e,r,n){"use strict";n.d(r,{HF:function(){return i},L6:function(){return t}});var t,o=n(72473);function i(e,r,n){var i=e.owner,u=(e.roles,[{Icon:o.Vz,id:t.WORKSPACES,isSelected:function(){return t.WORKSPACES===n},label:function(){return"Workspaces"},linkProps:{href:"/manage"}}]);return i&&u.push({Icon:o.NO,id:t.USERS,isSelected:function(){return t.USERS===n},label:function(){return"Users"},linkProps:{href:"/manage/users"}}),u.push.apply(u,[{Icon:o.Zr,id:t.SETTINGS,isSelected:function(){return t.SETTINGS===n},label:function(){return"Settings"},linkProps:{href:"/manage/settings"}},{Icon:o.$B,id:t.FILE_BROWSER,isSelected:function(){return t.FILE_BROWSER===n},label:function(){return"File browser"},linkProps:{href:"/manage/files"}}]),u}!function(e){e.WORKSPACES="workspaces",e.USERS="users",e.SETTINGS="settings",e.FILE_BROWSER="file_browser"}(t||(t={}))},59533:function(e,r,n){"use strict";var t=n(82684),o=n(94629),i=n(35686),u=n(70515),s=n(75083),c=n(50178),a=n(28598);r.Z=function(e){var r=e.before,n=e.breadcrumbs,l=void 0===n?[]:n,d=e.children,f=e.errors,v=e.headerOffset,p=e.mainContainerHeader,h=e.pageName,b=e.setErrors,m=e.subheaderChildren,O=i.ZP.statuses.list().data,j=(0,t.useMemo)((function(){var e,r;return null===O||void 0===O||null===(e=O.statuses)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.project_type}),[O]),w=(0,c.PR)()||{};return(0,a.jsx)(o.Z,{before:r,beforeWidth:r?50*u.iI:0,breadcrumbs:l,errors:f,headerOffset:v,mainContainerHeader:p,navigationItems:(0,s.HF)(w,j,h),setErrors:b,subheaderChildren:m,title:"Workspaces",uuid:"workspaces/index",children:d})}},5178:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return I}});var t=n(77837),o=n(38860),i=n.n(o),u=n(82684),s=n(34376),c=n(93808),a=n(38276),l=n(36043),d=n(75582),f=n(21831),v=n(82394),p=n(21764),h=n(69864),b=n(71180),m=n(44085),O=n(75499),j=n(30160),w=n(35686),g=n(86735),y=n(72619),P=n(28598);function S(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function _(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?S(Object(n),!0).forEach((function(r){(0,v.Z)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}var Z=function(e){e.fetchUser;var r=e.user,n=e.workspaces,t=(0,s.useRouter)(),o=(0,u.useState)(),i=o[0],c=o[1],l=(0,u.useState)(!0),S=l[0],Z=l[1];(0,u.useEffect)((function(){r&&c(r)}),[r]);var E=null===n||void 0===n?void 0:n.map((function(e){return e.project_uuid})),k=w.ZP.roles.list({entity:"project",entity_ids:E},{},{}),x=k.data,C=(k.mutate,(0,u.useMemo)((function(){var e=(null===x||void 0===x?void 0:x.roles)||[];return null===e||void 0===e?void 0:e.reduce((function(e,r){var n=r.permissions[0].entity_id,t=e[n]||[];return _(_({},e),{},(0,v.Z)({},n,[].concat((0,f.Z)(t),[r])))}),{})}),[x])),R=(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,t,o=null===r||void 0===r||null===(n=r.permissions)||void 0===n||null===(t=n[0])||void 0===t?void 0:t.entity_id;return _(_({},e),{},(0,v.Z)({},o,r))}),{})}),[i,r]),I=(0,h.Db)(w.ZP.users.useUpdate(null===r||void 0===r?void 0:r.id),{onSuccess:function(e){return(0,y.wD)(e,{callback:function(){t.push("/manage/users")},onErrorCallback:function(e){var r=e.error,n=r.errors,t=r.exception,o=r.message,i=r.type;p.Am.error((null===n||void 0===n?void 0:n.error)||t||o,{position:p.Am.POSITION.BOTTOM_RIGHT,toastId:i})}})}}),M=(0,d.Z)(I,2),W=M[0],H=M[1].isLoading;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(a.Z,{p:2,children:(0,P.jsx)(b.ZP,{disabled:S,loading:H,onClick:function(){var e,r=_(_({},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}))});W({user:r})},primary:!0,children:"Update workspace roles"})}),(0,P.jsx)(O.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,t=(null===C||void 0===C?void 0:C[n])||[],o=null===R||void 0===R?void 0:R[n];return[(0,P.jsx)(j.ZP,{bold:!0,children:r},"name"),(0,P.jsx)(m.Z,{onChange:function(e){Z(!1);var r=(0,g.sE)(t,(function(r){return r.id==e.target.value}));r&&c((function(e){var n,t=(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)})))||[],o={roles_new:[].concat((0,f.Z)(t),[r])};return _(_({},e),o)}))},placeholder:"No access",primary:!0,setContentOnMount:!0,value:null===o||void 0===o?void 0:o.id,children:t.map((function(e){var r=e.id,n=e.name;return(0,P.jsx)("option",{value:r,children:n},n)}))},"project_role")]}))})]})},E=n(59533),k=n(70515),x=n(14875),C=n(75083);function R(e){var r=e.user,n=(0,s.useRouter)(),t=(0,u.useState)(null),o=t[0],i=t[1],c=null===r||void 0===r?void 0:r.id,d=w.ZP.users.detail(c),f=d.data,v=d.mutate,p=w.ZP.statuses.list().data,h=(0,u.useMemo)((function(){var e,r;return null===p||void 0===p||null===(e=p.statuses)||void 0===e||null===(r=e[0])||void 0===r?void 0:r.instance_type}),[p]),b=(0,u.useMemo)((function(){return null===f||void 0===f?void 0:f.user}),[f]);(0,u.useEffect)((function(){(0,y.bB)(f,i)}),[f]);var m=w.ZP.workspaces.list({cluster_type:h,user_id:c},{refreshInterval:5e3,revalidateOnFocus:!0}).data,O=(0,u.useMemo)((function(){return(0,P.jsx)(a.Z,{p:k.cd,children:(0,P.jsx)(l.Z,{hideFields:[x.s7],onDeleteSuccess:function(){return n.push("/manage/users")},onSaveSuccess:function(){return n.push("/manage/users")},showDelete:!0,title:"Edit user",user:b})})}),[n,b]),j=(0,u.useMemo)((function(){return null===m||void 0===m?void 0:m.workspaces}),[m]);return(0,P.jsx)(E.Z,{before:O,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===b||void 0===b?void 0:b.username)||"User"}}],errors:o,pageName:C.L6.USERS,children:(0,P.jsx)(Z,{fetchUser:v,user:b,workspaces:j})})}R.getInitialProps=function(){var e=(0,t.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 I=(0,c.Z)(R)},11976:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage/users/[user]",function(){return n(5178)}])},80022:function(e,r,n){"use strict";function t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(r,{Z:function(){return t}})},15544:function(e,r,n){"use strict";function t(e){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(e)}n.d(r,{Z:function(){return t}})},13692:function(e,r,n){"use strict";n.d(r,{Z:function(){return o}});var t=n(61049);function o(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&(0,t.Z)(e,r)}},93189:function(e,r,n){"use strict";n.d(r,{Z:function(){return i}});var t=n(12539),o=n(80022);function i(e,r){if(r&&("object"===t(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},61049:function(e,r,n){"use strict";function t(e,r){return t=Object.setPrototypeOf||function(e,r){return e.__proto__=r,e},t(e,r)}n.d(r,{Z:function(){return t}})}},function(e){e.O(0,[2678,1154,844,874,1557,8264,7858,5499,6043,9774,2888,179],(function(){return r=11976,e(e.s=r);var r}));var r=e.O();_N_E=r}]);
|